From ce89a4088bbc57d8d5155fdf5c36169b830b0ec1 Mon Sep 17 00:00:00 2001 From: eduauto Date: Thu, 26 Jun 2025 15:04:29 +0800 Subject: [PATCH] autoUpdataFile --- index.html | 2 +- layouts__index.359c419c.async.js | 1 + layouts__index.8516850e.async.js | 1 - p__NewCompetitions__index.82607796.async.js | 1 + p__NewCompetitions__index.86f6f67d.async.js | 1 - umi.77e3c68b.js => umi.ea80c614.js | 2 +- 6 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 layouts__index.359c419c.async.js delete mode 100644 layouts__index.8516850e.async.js create mode 100644 p__NewCompetitions__index.82607796.async.js delete mode 100644 p__NewCompetitions__index.86f6f67d.async.js rename umi.77e3c68b.js => umi.ea80c614.js (99%) diff --git a/index.html b/index.html index e40c083609..6bd8d3bf62 100644 --- a/index.html +++ b/index.html @@ -183,7 +183,7 @@ display: block !important; } - + \ No newline at end of file diff --git a/layouts__index.359c419c.async.js b/layouts__index.359c419c.async.js new file mode 100644 index 0000000000..5ca0b92dc0 --- /dev/null +++ b/layouts__index.359c419c.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1717],{40001:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(14809),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(7657),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},84105:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(14809),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(7657),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},18785:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(14809),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(7657),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},15277:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(14809),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=n(7657),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},33853:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(14809),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(7657),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},38819:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(14809),r=n(59301),i={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"},a=n(7657),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},47472:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(14809),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n(7657),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},65966:function(e,t,n){n.d(t,{Z:function(){return X}});var o=n(20439),r=n(50298),i=n(62646),a=n(43403),l=n(92310),c=n.n(l),s=n(29301),u=n(76846),d=n(96452),f=n(6089),p=n(80402),m=n(34280),g=n(49658),h=n(59301),v=n(14809),b=n(77900),y=n(8654);function x(e){var t=e.prefixCls,n=e.align,o=e.arrow,r=e.arrowPos,i=o||{},a=i.className,l=i.content,s=r.x,u=void 0===s?0:s,d=r.y,f=void 0===d?0:d,p=h.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],v=n.points[1],b=g[0],y=g[1],x=v[0],w=v[1];b!==x&&["t","b"].includes(b)?"t"===b?m.top=0:m.bottom=0:m.top=f,y!==w&&["l","r"].includes(y)?"l"===y?m.left=0:m.right=0:m.left=u}return h.createElement("div",{ref:p,className:c()("".concat(t,"-arrow"),a),style:m},l)}function w(e){var t=e.prefixCls,n=e.open,o=e.zIndex,r=e.mask,i=e.motion;return r?h.createElement(b.ZP,(0,v.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return h.createElement("div",{style:{zIndex:o},className:c()("".concat(t,"-mask"),n)})})):null}var C=h.memo((function(e){return e.children}),(function(e,t){return t.cache}));var S=h.forwardRef((function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,l=e.style,u=e.target,d=e.onVisibleChanged,f=e.open,p=e.keepDom,g=e.fresh,S=e.onClick,E=e.mask,k=e.arrow,I=e.arrowPos,j=e.align,N=e.motion,M=e.maskMotion,Z=e.forceRender,O=e.getPopupContainer,$=e.autoDestroy,A=e.portal,z=e.zIndex,T=e.onMouseEnter,P=e.onMouseLeave,L=e.onPointerEnter,R=e.onPointerDownCapture,B=e.ready,D=e.offsetX,H=e.offsetY,W=e.offsetR,F=e.offsetB,K=e.onAlign,V=e.onPrepare,q=e.stretch,X=e.targetWidth,G=e.targetHeight,Q="function"==typeof n?n():n,_=f||p,U=(null==O?void 0:O.length)>0,Y=h.useState(!O||!U),J=(0,r.Z)(Y,2),ee=J[0],te=J[1];if((0,m.Z)((function(){!ee&&U&&u&&te(!0)}),[ee,U,u]),!ee)return null;var ne="auto",oe={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(B||!f){var re,ie=j.points,ae=j.dynamicInset||(null===(re=j._experimental)||void 0===re?void 0:re.dynamicInset),le=ae&&"r"===ie[0][1],ce=ae&&"b"===ie[0][0];le?(oe.right=W,oe.left=ne):(oe.left=D,oe.right=ne),ce?(oe.bottom=F,oe.top=ne):(oe.top=H,oe.bottom=ne)}var se={};return q&&(q.includes("height")&&G?se.height=G:q.includes("minHeight")&&G&&(se.minHeight=G),q.includes("width")&&X?se.width=X:q.includes("minWidth")&&X&&(se.minWidth=X)),f||(se.pointerEvents="none"),h.createElement(A,{open:Z||_,getContainer:O&&function(){return O(u)},autoDestroy:$},h.createElement(w,{prefixCls:a,open:f,zIndex:z,mask:E,motion:M}),h.createElement(s.Z,{onResize:K,disabled:!f},(function(e){return h.createElement(b.ZP,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Z,leavedClassName:"".concat(a,"-hidden")},N,{onAppearPrepare:V,onEnterPrepare:V,visible:f,onVisibleChanged:function(e){var t;null==N||null===(t=N.onVisibleChanged)||void 0===t||t.call(N,e),d(e)}}),(function(n,r){var s=n.className,u=n.style,d=c()(a,s,i);return h.createElement("div",{ref:(0,y.sQ)(e,t,r),className:d,style:(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({"--arrow-x":"".concat(I.x||0,"px"),"--arrow-y":"".concat(I.y||0,"px")},oe),se),u),{},{boxSizing:"border-box",zIndex:z},l),onMouseEnter:T,onMouseLeave:P,onPointerEnter:L,onClick:S,onPointerDownCapture:R},k&&h.createElement(x,{prefixCls:a,arrow:k,arrowPos:I,align:j}),h.createElement(C,{cache:!f&&!g},Q))}))})))}));var E=h.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,r=(0,y.Yr)(n),i=h.useCallback((function(e){(0,y.mH)(t,o?o(e):e)}),[o]),a=(0,y.x1)(i,(0,y.C4)(n));return r?h.cloneElement(n,{ref:a}):n})),k=h.createContext(null);function I(e){return e?Array.isArray(e)?e:[e]:[]}function j(e,t,n,o){return h.useMemo((function(){var r=I(null!=n?n:t),i=I(null!=o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}var N=n(29194);function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Z(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function T(e){return z(parseFloat(e),0)}function P(e,t){var n=(0,o.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=$(e).getComputedStyle(e),o=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=T(i),g=T(a),h=T(l),v=T(c),b=z(Math.round(s.width/f*1e3)/1e3),y=z(Math.round(s.height/u*1e3)/1e3),x=(f-p-h-v)*b,w=(u-d-m-g)*y,C=m*y,S=g*y,E=h*b,k=v*b,I=0,j=0;if("clip"===o){var N=T(r);I=N*b,j=N*y}var M=s.x+E-I,Z=s.y+C-j,O=M+s.width+2*I-E-k-x,A=Z+s.height+2*j-C-S-w;n.left=Math.max(n.left,M),n.top=Math.max(n.top,Z),n.right=Math.min(n.right,O),n.bottom=Math.min(n.bottom,A)}})),n}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),o=n.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(n)}function R(e,t){var n=t||[],o=(0,r.Z)(n,2),i=o[0],a=o[1];return[L(e.width,i),L(e.height,a)]}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function D(e,t){var n,o=t[0],r=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function H(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,o){return o===t?n[e]||"c":e})).join("")}function W(e,t,n,i,a,l,c){var s=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[i]||{}}),d=(0,r.Z)(s,2),p=d[0],g=d[1],v=h.useRef(0),b=h.useMemo((function(){return t?A(t):[]}),[t]),y=h.useRef({});e||(y.current={});var x=(0,f.Z)((function(){if(t&&n&&e){var s,d,f,p,m,h=t,v=h.ownerDocument,x=$(h),w=x.getComputedStyle(h).position,C=h.style.left,S=h.style.top,E=h.style.right,k=h.style.bottom,I=h.style.overflow,j=(0,o.Z)((0,o.Z)({},a[i]),l),M=v.createElement("div");if(null===(s=h.parentElement)||void 0===s||s.appendChild(M),M.style.left="".concat(h.offsetLeft,"px"),M.style.top="".concat(h.offsetTop,"px"),M.style.position=w,M.style.height="".concat(h.offsetHeight,"px"),M.style.width="".concat(h.offsetWidth,"px"),h.style.left="0",h.style.top="0",h.style.right="auto",h.style.bottom="auto",h.style.overflow="hidden",Array.isArray(n))m={x:n[0],y:n[1],width:0,height:0};else{var Z,O,A=n.getBoundingClientRect();A.x=null!==(Z=A.x)&&void 0!==Z?Z:A.left,A.y=null!==(O=A.y)&&void 0!==O?O:A.top,m={x:A.x,y:A.y,width:A.width,height:A.height}}var T=h.getBoundingClientRect(),L=x.getComputedStyle(h),W=L.height,F=L.width;T.x=null!==(d=T.x)&&void 0!==d?d:T.left,T.y=null!==(f=T.y)&&void 0!==f?f:T.top;var K=v.documentElement,V=K.clientWidth,q=K.clientHeight,X=K.scrollWidth,G=K.scrollHeight,Q=K.scrollTop,_=K.scrollLeft,U=T.height,Y=T.width,J=m.height,ee=m.width,te={left:0,top:0,right:V,bottom:q},ne={left:-_,top:-Q,right:X-_,bottom:G-Q},oe=j.htmlRegion,re="visible",ie="visibleFirst";"scroll"!==oe&&oe!==ie&&(oe=re);var ae=oe===ie,le=P(ne,b),ce=P(te,b),se=oe===re?ce:le,ue=ae?ce:se;h.style.left="auto",h.style.top="auto",h.style.right="0",h.style.bottom="0";var de=h.getBoundingClientRect();h.style.left=C,h.style.top=S,h.style.right=E,h.style.bottom=k,h.style.overflow=I,null===(p=h.parentElement)||void 0===p||p.removeChild(M);var fe=z(Math.round(Y/parseFloat(F)*1e3)/1e3),pe=z(Math.round(U/parseFloat(W)*1e3)/1e3);if(0===fe||0===pe||(0,u.Sh)(n)&&!(0,N.Z)(n))return;var me=j.offset,ge=j.targetOffset,he=R(T,me),ve=(0,r.Z)(he,2),be=ve[0],ye=ve[1],xe=R(m,ge),we=(0,r.Z)(xe,2),Ce=we[0],Se=we[1];m.x-=Ce,m.y-=Se;var Ee=j.points||[],ke=(0,r.Z)(Ee,2),Ie=ke[0],je=B(ke[1]),Ne=B(Ie),Me=D(m,je),Ze=D(T,Ne),Oe=(0,o.Z)({},j),$e=Me.x-Ze.x+be,Ae=Me.y-Ze.y+ye;function It(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:se,o=T.x+e,r=T.y+t,i=o+Y,a=r+U,l=Math.max(o,n.left),c=Math.max(r,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var ze,Te,Pe,Le,Re=It($e,Ae),Be=It($e,Ae,ce),De=D(m,["t","l"]),He=D(T,["t","l"]),We=D(m,["b","r"]),Fe=D(T,["b","r"]),Ke=j.overflow||{},Ve=Ke.adjustX,qe=Ke.adjustY,Xe=Ke.shiftX,Ge=Ke.shiftY,Qe=function(e){return"boolean"==typeof e?e:e>=0};function jt(){ze=T.y+Ae,Te=ze+U,Pe=T.x+$e,Le=Pe+Y}jt();var _e=Qe(qe),Ue=Ne[0]===je[0];if(_e&&"t"===Ne[0]&&(Te>ue.bottom||y.current.bt)){var Ye=Ae;Ue?Ye-=U-J:Ye=De.y-Fe.y-ye;var Je=It($e,Ye),et=It($e,Ye,ce);Je>Re||Je===Re&&(!ae||et>=Be)?(y.current.bt=!0,Ae=Ye,ye=-ye,Oe.points=[H(Ne,0),H(je,0)]):y.current.bt=!1}if(_e&&"b"===Ne[0]&&(zeRe||nt===Re&&(!ae||ot>=Be)?(y.current.tb=!0,Ae=tt,ye=-ye,Oe.points=[H(Ne,0),H(je,0)]):y.current.tb=!1}var rt=Qe(Ve),it=Ne[1]===je[1];if(rt&&"l"===Ne[1]&&(Le>ue.right||y.current.rl)){var at=$e;it?at-=Y-ee:at=De.x-Fe.x-be;var lt=It(at,Ae),ct=It(at,Ae,ce);lt>Re||lt===Re&&(!ae||ct>=Be)?(y.current.rl=!0,$e=at,be=-be,Oe.points=[H(Ne,1),H(je,1)]):y.current.rl=!1}if(rt&&"r"===Ne[1]&&(PeRe||ut===Re&&(!ae||dt>=Be)?(y.current.lr=!0,$e=st,be=-be,Oe.points=[H(Ne,1),H(je,1)]):y.current.lr=!1}jt();var ft=!0===Xe?0:Xe;"number"==typeof ft&&(Pece.right&&($e-=Le-ce.right-be,m.x>ce.right-ft&&($e+=m.x-ce.right+ft)));var pt=!0===Ge?0:Ge;"number"==typeof pt&&(zece.bottom&&(Ae-=Te-ce.bottom-ye,m.y>ce.bottom-pt&&(Ae+=m.y-ce.bottom+pt)));var mt=T.x+$e,gt=mt+Y,ht=T.y+Ae,vt=ht+U,bt=m.x,yt=bt+ee,xt=m.y,wt=xt+J,Ct=(Math.max(mt,bt)+Math.min(gt,yt))/2-mt,St=(Math.max(ht,xt)+Math.min(vt,wt))/2-ht;null==c||c(t,Oe);var Et=de.right-T.x-($e+T.width),kt=de.bottom-T.y-(Ae+T.height);1===fe&&($e=Math.round($e),Et=Math.round(Et)),1===pe&&(Ae=Math.round(Ae),kt=Math.round(kt)),g({ready:!0,offsetX:$e/fe,offsetY:Ae/pe,offsetR:Et/fe,offsetB:kt/pe,arrowX:Ct/fe,arrowY:St/pe,scaleX:fe,scaleY:pe,align:Oe})}})),w=function(){g((function(e){return(0,o.Z)((0,o.Z)({},e),{},{ready:!1})}))};return(0,m.Z)(w,[i]),(0,m.Z)((function(){e||w()}),[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,function(){v.current+=1;var e=v.current;Promise.resolve().then((function(){v.current===e&&x()}))}]}var F=n(95190);function K(e,t,n,o,r){(0,m.Z)((function(){if(e&&t&&n){var i=n,a=A(t),l=A(i),c=$(i),s=new Set([c].concat((0,F.Z)(a),(0,F.Z)(l)));function u(){o(),r()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),o(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}n(48736);function V(e,t,n,o,r,i,a,l){var c=h.useRef(e);c.current=e;var s=h.useRef(!1);return h.useEffect((function(){if(t&&o&&(!r||i)){var e=function(){s.current=!1},u=function(e){var t;!c.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||s.current||l(!1)},f=$(o);f.addEventListener("pointerdown",e,!0),f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0);var p=(0,d.A)(n);return p&&(p.addEventListener("mousedown",u,!0),p.addEventListener("contextmenu",u,!0)),function(){f.removeEventListener("pointerdown",e,!0),f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0),p&&(p.removeEventListener("mousedown",u,!0),p.removeEventListener("contextmenu",u,!0))}}}),[t,n,o,r,i]),function(){s.current=!0}}var q=["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"];var X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,t=h.forwardRef((function(t,n){var a=t.prefixCls,l=void 0===a?"rc-trigger-popup":a,v=t.children,b=t.action,y=void 0===b?"hover":b,x=t.showAction,w=t.hideAction,C=t.popupVisible,I=t.defaultPopupVisible,N=t.onPopupVisibleChange,M=t.afterPopupVisibleChange,$=t.mouseEnterDelay,A=t.mouseLeaveDelay,z=void 0===A?.1:A,T=t.focusDelay,P=t.blurDelay,L=t.mask,R=t.maskClosable,B=void 0===R||R,D=t.getPopupContainer,H=t.forceRender,F=t.autoDestroy,X=t.destroyPopupOnHide,G=t.popup,Q=t.popupClassName,_=t.popupStyle,U=t.popupPlacement,Y=t.builtinPlacements,J=void 0===Y?{}:Y,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,oe=t.getPopupClassNameFromAlign,re=t.fresh,ie=t.alignPoint,ae=t.onPopupClick,le=t.onPopupAlign,ce=t.arrow,se=t.popupMotion,ue=t.maskMotion,de=t.popupTransitionName,fe=t.popupAnimation,pe=t.maskTransitionName,me=t.maskAnimation,ge=t.className,he=t.getTriggerDOMNode,ve=(0,i.Z)(t,q),be=F||X||!1,ye=h.useState(!1),xe=(0,r.Z)(ye,2),we=xe[0],Ce=xe[1];(0,m.Z)((function(){Ce((0,g.Z)())}),[]);var Se=h.useRef({}),Ee=h.useContext(k),ke=h.useMemo((function(){return{registerSubPopup:function(e,t){Se.current[e]=t,null==Ee||Ee.registerSubPopup(e,t)}}}),[Ee]),Ie=(0,p.Z)(),je=h.useState(null),Ne=(0,r.Z)(je,2),Me=Ne[0],Ze=Ne[1],Oe=h.useRef(null),$e=(0,f.Z)((function(e){Oe.current=e,(0,u.Sh)(e)&&Me!==e&&Ze(e),null==Ee||Ee.registerSubPopup(Ie,e)})),Ae=h.useState(null),ze=(0,r.Z)(Ae,2),Te=ze[0],Pe=ze[1],Le=h.useRef(null),Re=(0,f.Z)((function(e){(0,u.Sh)(e)&&Te!==e&&(Pe(e),Le.current=e)})),Be=h.Children.only(v),De=(null==Be?void 0:Be.props)||{},He={},We=(0,f.Z)((function(e){var t,n,o=Te;return(null==o?void 0:o.contains(e))||(null===(t=(0,d.A)(o))||void 0===t?void 0:t.host)===e||e===o||(null==Me?void 0:Me.contains(e))||(null===(n=(0,d.A)(Me))||void 0===n?void 0:n.host)===e||e===Me||Object.values(Se.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Fe=O(l,se,fe,de),Ke=O(l,ue,me,pe),Ve=h.useState(I||!1),qe=(0,r.Z)(Ve,2),Xe=qe[0],Ge=qe[1],Qe=null!=C?C:Xe,_e=(0,f.Z)((function(e){void 0===C&&Ge(e)}));(0,m.Z)((function(){Ge(C||!1)}),[C]);var Ue=h.useRef(Qe);Ue.current=Qe;var Ye=h.useRef([]);Ye.current=[];var Je=(0,f.Z)((function(e){var t;_e(e),(null!==(t=Ye.current[Ye.current.length-1])&&void 0!==t?t:Qe)!==e&&(Ye.current.push(e),null==N||N(e))})),et=h.useRef(),tt=function(){clearTimeout(et.current)},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tt(),0===t?Je(e):et.current=setTimeout((function(){Je(e)}),1e3*t)};h.useEffect((function(){return tt}),[]);var ot=h.useState(!1),rt=(0,r.Z)(ot,2),it=rt[0],at=rt[1];(0,m.Z)((function(e){e&&!Qe||at(!0)}),[Qe]);var lt=h.useState(null),ct=(0,r.Z)(lt,2),st=ct[0],ut=ct[1],dt=h.useState(null),ft=(0,r.Z)(dt,2),pt=ft[0],mt=ft[1],gt=function(e){mt([e.clientX,e.clientY])},ht=W(Qe,Me,ie&&null!==pt?pt:Te,U,J,ee,le),vt=(0,r.Z)(ht,11),bt=vt[0],yt=vt[1],xt=vt[2],wt=vt[3],Ct=vt[4],St=vt[5],Et=vt[6],kt=vt[7],It=vt[8],jt=vt[9],Nt=vt[10],Mt=j(we,y,x,w),Zt=(0,r.Z)(Mt,2),Ot=Zt[0],$t=Zt[1],At=Ot.has("click"),zt=$t.has("click")||$t.has("contextMenu"),Tt=(0,f.Z)((function(){it||Nt()}));K(Qe,Te,Me,Tt,(function(){Ue.current&&ie&&zt&&nt(!1)})),(0,m.Z)((function(){Tt()}),[pt,U]),(0,m.Z)((function(){!Qe||null!=J&&J[U]||Tt()}),[JSON.stringify(ee)]);var Pt=h.useMemo((function(){var e=Z(J,l,jt,ie);return c()(e,null==oe?void 0:oe(jt))}),[jt,oe,J,l,ie]);h.useImperativeHandle(n,(function(){return{nativeElement:Le.current,popupElement:Oe.current,forceAlign:Tt}}));var Lt=h.useState(0),Rt=(0,r.Z)(Lt,2),Bt=Rt[0],Dt=Rt[1],Ht=h.useState(0),Wt=(0,r.Z)(Ht,2),Ft=Wt[0],Kt=Wt[1],Vt=function(){if(ne&&Te){var e=Te.getBoundingClientRect();Dt(e.width),Kt(e.height)}};function qt(e,t,n,o){He[e]=function(r){var i;null==o||o(r),nt(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c1?n-1:0),r=1;r1?n-1:0),r=1;r({background:e,border:`${(0,L.bf)(o.lineWidth)} ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),H=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:s,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},(0,R.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${s}, opacity ${n} ${s},\n padding-top ${n} ${s}, padding-bottom ${n} ${s},\n margin-bottom ${n} ${s}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:r,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},W=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:c,colorErrorBorder:s,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":D(r,o,n,e,t),"&-info":D(p,f,d,e,t),"&-warning":D(l,a,i,e,t),"&-error":Object.assign(Object.assign({},D(u,s,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},F=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:(0,L.bf)(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${o}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${o}`,"&:hover":{color:l}}}}};var K=(0,B.I$)("Alert",(e=>[H(e),W(e),F(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}))),V=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{icon:t,prefixCls:n,type:o}=e,r=q[o]||null;return t?(0,T.wm)(t,p.createElement("span",{className:`${n}-icon`},t),(()=>({className:O()(`${n}-icon`,t.props.className)}))):p.createElement(r,{className:`${n}-icon`})},G=e=>{const{isClosable:t,prefixCls:n,closeIcon:o,handleClose:r,ariaProps:i}=e,a=!0===o||void 0===o?p.createElement(E.Z,null):o;return t?p.createElement("button",Object.assign({type:"button",onClick:r,className:`${n}-close-icon`,tabIndex:0},i),a):null},Q=p.forwardRef(((e,t)=>{const{description:n,prefixCls:o,message:r,banner:i,className:a,rootClassName:l,style:c,onMouseEnter:s,onMouseLeave:u,onClick:d,afterClose:f,showIcon:m,closable:g,closeText:h,closeIcon:v,action:b,id:y}=e,x=V(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[w,C]=p.useState(!1);const S=p.useRef(null);p.useImperativeHandle(t,(()=>({nativeElement:S.current})));const{getPrefixCls:E,direction:k,closable:I,closeIcon:j,className:N,style:M}=(0,P.dj)("alert"),Z=E("alert",o),[T,L,R]=K(Z),B=t=>{var n;C(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},D=p.useMemo((()=>void 0!==e.type?e.type:i?"warning":"info"),[e.type,i]),H=p.useMemo((()=>!("object"!=typeof g||!g.closeIcon)||(!!h||("boolean"==typeof g?g:!1!==v&&null!=v||!!I))),[h,v,g,I]),W=!(!i||void 0!==m)||m,F=O()(Z,`${Z}-${D}`,{[`${Z}-with-description`]:!!n,[`${Z}-no-icon`]:!W,[`${Z}-banner`]:!!i,[`${Z}-rtl`]:"rtl"===k},N,a,l,R,L),q=(0,A.Z)(x,{aria:!0,data:!0}),Q=p.useMemo((()=>"object"==typeof g&&g.closeIcon?g.closeIcon:h||(void 0!==v?v:"object"==typeof I&&I.closeIcon?I.closeIcon:j)),[v,g,h,j]),_=p.useMemo((()=>{const e=null!=g?g:I;if("object"==typeof e){const{closeIcon:t}=e;return V(e,["closeIcon"])}return{}}),[g,I]);return T(p.createElement($.ZP,{visible:!w,motionName:`${Z}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:f},((t,o)=>{let{className:i,style:a}=t;return p.createElement("div",Object.assign({id:y,ref:(0,z.sQ)(S,o),"data-show":!w,className:O()(F,i),style:Object.assign(Object.assign(Object.assign({},M),c),a),onMouseEnter:s,onMouseLeave:u,onClick:d,role:"alert"},q),W?p.createElement(X,{description:n,icon:e.icon,prefixCls:Z,type:D}):null,p.createElement("div",{className:`${Z}-content`},r?p.createElement("div",{className:`${Z}-message`},r):null,n?p.createElement("div",{className:`${Z}-description`},n):null),b?p.createElement("div",{className:`${Z}-action`},b):null,p.createElement(G,{isClosable:H,prefixCls:Z,closeIcon:Q,handleClose:B,ariaProps:_}))})))}));var _=Q,U=n(99153),Y=n(84851),J=n(92359),ee=n(61230),te=n(88243);function ne(e,t,n){return t=(0,J.Z)(t),(0,te.Z)(e,(0,ee.Z)()?Reflect.construct(t,n||[],(0,J.Z)(e).constructor):t.apply(e,n))}var oe=n(19257);let re=function(e){function t(){var e;return(0,U.Z)(this,t),(e=ne(this,t,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,oe.Z)(t,e),(0,Y.Z)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,id:n,children:o}=this.props,{error:r,info:i}=this.state,a=(null==i?void 0:i.componentStack)||null,l=void 0===e?(r||"").toString():e,c=void 0===t?a:t;return r?p.createElement(_,{id:n,type:"error",message:l,description:p.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},c)}):o}}])}(p.Component);var ie=re;const ae=_;ae.ErrorBoundary=ie;var le=ae,ce=n(37712),se=(0,v.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.dispatch,n=(e.setType,e.data),o=e.accountInfo,i=e.open,l=b.Z.useForm(),s=u()(l,1)[0],d=(0,v.useSearchParams)(),f=u()(d,1)[0],m=(0,v.useLocation)(),h=(0,p.useState)(!1),w=u()(h,2),C=w[0],E=w[1],I=(0,p.useState)(""),j=u()(I,2),N=(j[0],j[1]),M=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;(0,p.useEffect)((function(){E(i)}),[i]);var Z=[{title:"IP地址",dataIndex:"ip",key:"ip",render:function(e){return(0,ce.jsx)("span",{className:e.indexOf("异常")>-1||e.indexOf("登录")>-1?"c-red":"c-green",children:e})}},{title:"浏览器",dataIndex:"browser",key:"browser",render:function(e){return(0,ce.jsx)("span",{className:e.indexOf("异常")>-1||e.indexOf("登录")>-1?"c-red":"c-green",children:e})}},{title:"上次登录时间",dataIndex:"last_login_time",key:"last_login_time"}],O=function(){var e=c()(r()().mark((function e(){var n,i,l,c,u;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.validateFields();case 2:if(null==o||!o.code){e.next=8;break}return e.next=5,(0,S.Gq)(a()(a()({},o),{},{phone:null==o?void 0:o.login},s.getFieldValue()));case 5:i=e.sent,e.next=11;break;case 8:return e.next=10,(0,S.Es)(a()(a()({},o),s.getFieldValue()));case 10:i=e.sent;case 11:if(!i.status){e.next=18;break}if(-4!==i.status){e.next=16;break}return t({type:"user/showPopLogin",payload:{showPopLogin:!1}}),t({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!0,userInfoForBindAccountModal:i.user,loginInfo:o}}),e.abrupt("return");case 16:return N(null===(l=i)||void 0===l?void 0:l.message),e.abrupt("return");case 18:if(E(!1),null!==(n=i)&&void 0!==n&&n.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null===(c=i)||void 0===c?void 0:c.start_date)):localStorage.removeItem("extension-modal"),"/user/login"!==m.pathname&&"/login"!==m.pathname){e.next=35;break}if(!(u=f.get("form")||f.get("back_url"))){e.next=26;break}window.location.href=decodeURIComponent(u),e.next=33;break;case 26:if(M.test(o.password)||null!=o&&o.code){e.next=31;break}y.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/account/secure",e.next=33;break;case 31:return window.location.href="/",e.abrupt("return");case 33:e.next=43;break;case 35:if(M.test(o.password)||null!=o&&o.code){e.next=41;break}y.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/account/secure?active=3",t({type:"user/showPopLogin",payload:{showPopLogin:!1}}),e.next=43;break;case 41:return window.location.reload(),e.abrupt("return");case 43:s.resetFields();case 44:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,ce.jsxs)(g.Z,{title:"登录提示",width:600,onOk:O,onCancel:function(){return E(!1)},centered:!0,keyboard:!1,closable:!1,maskClosable:!1,open:C,children:[(0,ce.jsx)("p",{className:"tc",children:"该账号已经存在异常情况,若非本人操作,请联系监考老师说明情况。"}),(0,ce.jsx)("div",{className:"mt20",children:(0,ce.jsx)(k.Z,{pagination:{hideOnSinglePage:!0},dataSource:n||[],columns:Z})}),(0,ce.jsx)("div",{className:"mt20 mb20",children:(0,ce.jsx)(le,{message:"请监考老师输入的考试解锁码,授权当前学生登录平台。",type:"warning"})}),(0,ce.jsx)(b.Z,{name:"global_state",autoComplete:"off",form:s,children:(0,ce.jsx)(b.Z.Item,{name:"unlock_key",label:"考试解锁码",rules:[{required:!0,message:"请输入解锁码"}],children:(0,ce.jsx)(x.Z.Password,{autoComplete:"off"})})})]})})),ue="login-panel-wrapper2___HuMNJ",de="login-panel-right-wrp___vWD_i",fe="res-error-values___hV1lz",pe="tabs___EwOAX",me=n(28209),ge=n.n(me),he={height:48,borderRadius:4},ve=(0,v.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.dispatch,n=e.setType,o=e.user,i=e.setusername,l=b.Z.useForm(),s=u()(l,1)[0],d=(0,v.useSearchParams)(),f=u()(d,1)[0],m=(0,v.useLocation)(),g=(0,p.useState)(""),h=u()(g,2),k=h[0],I=h[1],j=(0,p.useState)([]),N=u()(j,2),M=N[0],Z=N[1],O=(0,p.useState)({}),$=u()(O,2),A=$[0],z=$[1],T=(0,p.useState)(!1),P=u()(T,2),L=P[0],R=P[1],B=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,D=function(){var e=c()(r()().mark((function e(n){var o,l,c,u,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R(!1),B.test(n.password)||(i(n.login),I("系统检测您的密码强度过低,请及时修改")),o=a()({},n),l=ge().enc.Utf8.parse("5183666c72eec9e4"),c=ge().AES.encrypt(n.password||"",l,{iv:l,mode:ge().mode.CBC}),o.password=c.toString(),z(a()({},n)),e.next=9,(0,S.Es)(o);case 9:if(!(u=e.sent).status){e.next=24;break}if(-4!==u.status){e.next=18;break}return t({type:"user/showPopLogin",payload:{showPopLogin:!1}}),t({type:"user/getUserInfo",payload:{websiteName:"educoder"}}),t({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!0,userInfoForBindAccountModal:u.user,loginInfo:n}}),e.abrupt("return");case 18:if(-5!==u.status){e.next=22;break}return Z([null==u?void 0:u.message]),R(!0),e.abrupt("return");case 22:return I(null==u?void 0:u.message),e.abrupt("return");case 24:if(null!=u&&u.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==u?void 0:u.start_date)):localStorage.removeItem("extension-modal"),"/user/login"!==m.pathname&&"/login"!==m.pathname){e.next=40;break}if(!(d=f.get("form")||f.get("back_url"))){e.next=31;break}window.location.href=decodeURIComponent(d),e.next=38;break;case 31:if(B.test(n.password)){e.next=36;break}y.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/",e.next=38;break;case 36:return window.location.reload(),e.abrupt("return");case 38:e.next=48;break;case 40:if(B.test(n.password)){e.next=46;break}y.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/",t({type:"user/showPopLogin",payload:{showPopLogin:!1}}),e.next=48;break;case 46:return window.location.reload(),e.abrupt("return");case 48:s.resetFields();case 49:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsxs)(b.Z,{layout:"vertical",form:s,initialValues:{autologin:!0,login:o.actionTabs.phone},onFinish:D,onValuesChange:function(e){I("");if("password"in e){var t=e.password.replace(/[\u4e00-\u9fa5]/g,"");s.setFieldsValue({password:t})}},children:[!!k&&(0,ce.jsxs)("div",{className:fe,children:[(0,ce.jsx)("span",{children:k}),(0,ce.jsx)(E.Z,{onClick:function(){return I("")}})]}),(0,ce.jsx)(b.Z.Item,{name:"login",rules:[{required:!0,message:"请输入用户名、手机号或邮箱"}],children:(0,ce.jsx)(x.Z,{style:he,size:"middle",placeholder:"请输入有效的手机号/邮箱号/账号",onBlur:function(){t({type:"user/setActionTabs",payload:{phone:s.getFieldValue("login")}})}})}),(0,ce.jsx)(b.Z.Item,{name:"password",rules:[{required:!0,message:"请输入8-16位密码,区分大小写、不能使用空格"}],children:(0,ce.jsx)(x.Z.Password,{style:he,size:"middle",placeholder:"密码"})}),(0,ce.jsx)(b.Z.Item,{children:(0,ce.jsxs)("div",{className:"flex-container",style:{justifyContent:"space-between"},children:[(0,ce.jsx)(b.Z.Item,{name:"autologin",noStyle:!0,valuePropName:"checked",children:(0,ce.jsx)(w.Z,{children:"下次自动登录"})}),(0,ce.jsx)("div",{children:(0,ce.jsx)("span",{className:"current font14 c-blue",onClick:function(){return n(4)},children:"找回密码"})})]})}),(0,ce.jsx)(b.Z.Item,{children:(0,ce.jsx)(C.ZP,{size:"middle",type:"primary",htmlType:"submit",block:!0,className:"font16",style:he,children:"登录"})})]}),(0,ce.jsx)(se,{open:L,data:M,accountInfo:a()({},A)})]})})),be=n(55544),ye=n(1079),xe=function(e,t){return xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},xe(e,t)};function we(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}xe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ce=function(){return Ce=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}Object.create;"function"==typeof SuppressedError&&SuppressedError;var je=function(){var e=(0,p.useRef)(!1);return(0,p.useEffect)((function(){return e.current=!1,function(){e.current=!0}}),[]),e};var Ne=function(e){var t=je(),n=Ie((0,p.useState)(e),2),o=n[0],r=n[1];return[o,(0,p.useCallback)((function(e){t.current||r(e)}),[])]};var Me=function(e){var t=(0,p.useRef)(e);return t.current=e,t},Ze=function(e){(0,p.useEffect)((function(){e()}),[])};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}("@-webkit-keyframes slider-icon-animate_spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes slider-icon-animate_spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.rc-slider-captcha-icon {\n display: inline-block;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.rc-slider-captcha-icon > svg {\n line-height: 1;\n}\n.rc-slider-captcha-icon-spin {\n -webkit-animation: slider-icon-animate_spin 1s infinite linear;\n animation: slider-icon-animate_spin 1s infinite linear;\n}\n.rc-slider-captcha-button {\n display: inline-block;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 40px;\n height: 100%;\n padding: 5px 0;\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n font-size: 22px;\n line-height: 1;\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);\n cursor: -webkit-grab;\n cursor: grab;\n transition-timing-function: linear;\n transition-duration: 0.2s;\n transition-property: background-color, color;\n touch-action: none;\n}\n.rc-slider-captcha-button-active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-verify {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-pc:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-active,\n.rc-slider-captcha-button:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.rc-slider-captcha-button-verify,\n.rc-slider-captcha-button-verify:active {\n cursor: wait;\n}\n.rc-slider-captcha-button-error {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-error:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-error:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-success {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-success:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-success:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-disabled {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-button-disabled:hover {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-button-disabled:active {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-control {\n position: relative;\n box-sizing: border-box;\n width: 100%;\n height: 42px;\n height: var(--rcsc-control-height, 42px);\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n /* stylelint-disable-next-line declaration-property-value-no-unknown */\n border: 1px solid #e4e7eb;\n border: 1px solid var(--rcsc-border-color, #e4e7eb);\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-button {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-indicator {\n position: absolute;\n top: -1px;\n bottom: -1px;\n left: -1px;\n display: none;\n box-sizing: border-box;\n width: 0;\n background-color: #d1e9fe;\n background-color: var(--rcsc-primary-light, #d1e9fe);\n /* stylelint-disable-next-line declaration-property-value-no-unknown */\n border: 1px solid #1991fa;\n border: 1px solid var(--rcsc-primary, #1991fa);\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-tips {\n position: relative;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n color: #45494c;\n color: var(--rcsc-text-color, #45494c);\n font-size: 14px;\n line-height: 20px;\n text-align: center;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.rc-slider-captcha-control-moving .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-verify .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-error .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-success .rc-slider-captcha-control-indicator {\n display: block;\n}\n.rc-slider-captcha-control-error .rc-slider-captcha-control-indicator {\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-success .rc-slider-captcha-control-indicator {\n background-color: #d2f4ef;\n background-color: var(--rcsc-success-light, #d2f4ef);\n border-color: #52ccba;\n border-color: var(--rcsc-success, #52ccba);\n}\n.rc-slider-captcha-control-errors {\n padding-left: 0;\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-load-failed {\n padding-left: 0;\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-button,\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-button,\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-indicator {\n display: none;\n}\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-tips {\n color: #f57a7a;\n color: var(--rcsc-error, #f57a7a);\n cursor: pointer;\n}\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-tips {\n color: #f57a7a;\n color: var(--rcsc-error, #f57a7a);\n cursor: pointer;\n}\n.rc-slider-captcha-jigsaw {\n position: relative;\n background-color: #f7f9fa;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.rc-slider-captcha-jigsaw img {\n position: absolute;\n}\n.rc-slider-captcha-jigsaw-bg {\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n.rc-slider-captcha-jigsaw-puzzle {\n width: 60px;\n height: 100%;\n touch-action: none;\n}\n.rc-slider-captcha-jigsaw-puzzle:hover {\n cursor: -webkit-grab;\n cursor: grab;\n}\n.rc-slider-captcha-jigsaw-puzzle:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.rc-slider-captcha-jigsaw-refresh {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 2;\n padding: 5px;\n color: #fff;\n font-size: 22px;\n line-height: 0;\n cursor: pointer;\n opacity: 0.75;\n transition: opacity 0.2s linear;\n}\n.rc-slider-captcha-jigsaw-refresh:hover {\n opacity: 1;\n}\n.rc-slider-captcha-jigsaw-refresh-disabled {\n cursor: not-allowed;\n}\n.rc-slider-captcha-jigsaw-refresh-disabled:hover {\n opacity: 0.75;\n}\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle {\n pointer-events: none;\n}\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle:hover,\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle:active {\n cursor: default;\n}\n.rc-slider-captcha-loading {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n padding: 15px;\n color: #45494c;\n color: var(--rcsc-text-color, #45494c);\n font-size: 14px;\n text-align: center;\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n}\n.rc-slider-captcha-loading-icon {\n font-size: 30px;\n}\n.rc-slider-captcha-loading-text {\n margin-top: 5px;\n}\n.rc-slider-captcha-load-failed {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n color: #ccc;\n font-size: 85px;\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n}\n.rc-slider-captcha {\n position: relative;\n}\n.rc-slider-captcha > * {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.rc-slider-captcha-panel {\n padding-bottom: 15px;\n}\n.rc-slider-captcha-panel-inner {\n overflow: hidden;\n border-radius: 2px;\n border-radius: var(--rcsc-panel-border-radius, 2px);\n}\n.rc-slider-captcha-float .rc-slider-captcha-panel {\n position: absolute;\n left: 0;\n display: none;\n opacity: 0;\n transition-timing-function: ease-out;\n transition-duration: 0.3s;\n transition-property: top, bottom, opacity;\n}\n.rc-slider-captcha-float-top .rc-slider-captcha-panel {\n bottom: 22px;\n}\n.rc-slider-captcha-float-bottom .rc-slider-captcha-panel {\n top: 22px;\n padding: 15px 0 0;\n}\n");var Oe="rc-slider-captcha";function $e(e){var t=0,n=0;return"number"==typeof e.clientX&&"number"==typeof e.clientY?(t=e.clientX,n=e.clientY):e.touches&&e.touches[0]?(t=e.touches[0].clientX,n=e.touches[0].clientY):e.changedTouches&&e.changedTouches[0]&&(t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY),{clientX:t,clientY:n}}function Ae(e,t){if(void 0===t&&(t={}),e)for(var n in t)e.style[n]=t[n]}var ze="object"==typeof window&&window&&"object"==typeof document&&document&&window.document===document&&!!document.addEventListener,Te=ze&&"onpointerdown"in window,Pe=ze&&"ontouchstart"in window;function Le(e,t){return"number"==typeof e&&!Number.isNaN(e)&&"number"==typeof t&&t>0?Number(e.toFixed(t)):e}var Re="".concat(Oe,"-button"),Be=function(e){var t,n=e.className,o=e.disabled,r=e.active,i=e.success,a=e.error,l=e.verify,c=e.buttonRef,s=Se(e,["className","disabled","active","success","error","verify","buttonRef"]);return p.createElement("span",Ce({className:O()(Re,n,(t={},t["".concat(Re,"-disabled")]=o,t["".concat(Re,"-active")]=r,t["".concat(Re,"-verify")]=l,t["".concat(Re,"-success")]=i,t["".concat(Re,"-error")]=a,t["".concat(Re,"-pc")]=!Pe,t)),ref:c},s))};Be.displayName="SliderButton";var De,He="".concat(Oe,"-icon"),We=function(e){var t,n=e.className,o=e.spin,r=Se(e,["className","spin"]);return p.createElement("span",Ce({className:O()(He,(t={},t["".concat(He,"-spin")]=o,t),n)},r))},Fe={arrowRight:p.createElement((function(e){return p.createElement("svg",Ce({viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),p.createElement("path",{d:"M116.9408 561.4592m0-40.96l0 0q0-40.96 40.96-40.96l573.44 0q40.96 0 40.96 40.96l0 0q0 40.96-40.96 40.96l-573.44 0q-40.96 0-40.96-40.96Z"}),p.createElement("path",{d:"M769.82272 519.43424l-203.22304-203.22304a40.96 40.96 0 1 1 57.91744-57.91744l231.71072 231.71072a40.96 40.96 0 0 1 0.45056 58.44992L624.9472 780.12416a40.96 40.96 0 0 1-57.93792-57.91744l202.79296-202.79296z"}))}),null),check:p.createElement((function(e){return p.createElement("svg",Ce({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),p.createElement("path",{d:"M864.554667 268.501333a42.666667 42.666667 0 0 1 0 60.330667L412.032 781.397333a42.453333 42.453333 0 0 1-22.613333 11.818667l-5.034667 0.597333H379.306667a42.496 42.496 0 0 1-27.648-12.416l-211.2-211.2a42.666667 42.666667 0 1 1 60.330666-60.330666l180.992 180.992 422.4-422.4a42.666667 42.666667 0 0 1 60.330667 0z"}))}),null),loading:p.createElement((function(e){return p.createElement("svg",Ce({viewBox:"0 0 120 120",width:"1em",height:"1em"},e),p.createElement("defs",null,p.createElement("line",{id:"l",x1:"60",x2:"60",y1:"7",y2:"27",stroke:"currentColor",strokeWidth:"11",strokeLinecap:"round"})),p.createElement("g",null,p.createElement("use",{xlinkHref:"#l",opacity:".27"}),p.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(30 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(60 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(90 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(120 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(150 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".37",transform:"rotate(180 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".46",transform:"rotate(210 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".56",transform:"rotate(240 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".66",transform:"rotate(270 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".75",transform:"rotate(300 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".85",transform:"rotate(330 60,60)"})))}),null),refresh:p.createElement((function(e){return p.createElement("svg",Ce({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),p.createElement("path",{d:"M866.133333 573.013333a42.666667 42.666667 0 0 0-53.333333 27.733334A304.64 304.64 0 0 1 519.68 810.666667 302.933333 302.933333 0 0 1 213.333333 512a302.933333 302.933333 0 0 1 306.346667-298.666667 309.76 309.76 0 0 1 198.4 71.253334l-92.586667-15.36a42.666667 42.666667 0 0 0-49.066666 35.413333 42.666667 42.666667 0 0 0 35.413333 49.066667l180.906667 29.866666h7.253333a42.666667 42.666667 0 0 0 14.506667-2.56 14.08 14.08 0 0 0 4.266666-2.56 33.28 33.28 0 0 0 8.533334-4.693333l3.84-4.693333c0-2.133333 3.84-3.84 5.546666-6.4s0-4.266667 2.133334-5.973334a57.173333 57.173333 0 0 0 2.986666-7.68l32-170.666666a42.666667 42.666667 0 0 0-85.333333-16.213334l-11.52 61.866667A392.96 392.96 0 0 0 519.68 128 388.266667 388.266667 0 0 0 128 512a388.266667 388.266667 0 0 0 391.68 384A389.12 389.12 0 0 0 896 626.346667a42.666667 42.666667 0 0 0-29.866667-53.333334z"}))}),null),x:p.createElement((function(e){return p.createElement("svg",Ce({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),p.createElement("path",{d:"M572.96896 524.6976l217.23136 217.25184a40.96 40.96 0 1 1-57.93792 57.91744L515.072 582.63552l-212.3776 212.3776a40.96 40.96 0 1 1-57.9584-57.91744l212.39808-212.3776-217.21088-217.23136a40.96 40.96 0 1 1 57.91744-57.91744l217.23136 217.21088L737.0752 244.736a40.96 40.96 0 1 1 57.93792 57.91744L572.96896 524.71808z"}))}),null),imageFill:p.createElement((function(e){return p.createElement("svg",Ce({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16"},e),p.createElement("path",{d:"M.002 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-12a2 2 0 0 1-2-2zm1 9v1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062zm5-6.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"}))}),null)},Ke=function(e){var t=e.type,n=Se(e,["type"]);return p.createElement(We,Ce({},n),Fe[t])};!function(e){e[e.Default=1]="Default",e[e.Loading=2]="Loading",e[e.Moving=3]="Moving",e[e.Verify=4]="Verify",e[e.Success=5]="Success",e[e.Error=6]="Error",e[e.LoadFailed=7]="LoadFailed"}(De||(De={}));var Ve,qe="".concat(Oe,"-control"),Xe=function(e){var t,n=e.status,o=void 0===n?De.Default:n,r=e.isLimitErrors,i=e.tipText,a=e.tipIcon,l=e.sliderButtonProps,c=e.indicatorProps,s=e.controlRef,u=Se(e,["status","isLimitErrors","tipText","tipIcon","sliderButtonProps","indicatorProps","controlRef"]),d=(0,p.useRef)(null),f=(0,p.useRef)(null),m=(0,p.useRef)(null),g=(0,p.useRef)({}),h=(0,p.useMemo)((function(){return Ce({default:"向右拖动滑块填充拼图",loading:"加载中...",moving:null,verifying:null,success:null,error:null,errors:p.createElement(p.Fragment,null,p.createElement(Ke,{type:"x",style:{fontSize:20}})," 失败过多,点击重试"),loadFailed:"加载失败,点击重试"},i)}),[i]),v=(0,p.useMemo)((function(){return Ce({default:p.createElement(Ke,{type:"arrowRight"}),loading:p.createElement(Ke,{type:"loading",spin:!0}),error:p.createElement(Ke,{type:"x"}),success:p.createElement(Ke,{type:"check"})},a)}),[a]),b=(0,p.useMemo)((function(){var e;return(e={})[De.Default]=[h.default,v.default],e[De.Loading]=[h.loading,v.default],e[De.Moving]=[h.moving,v.default],e[De.Verify]=[h.verifying,v.loading],e[De.Error]=[h.error,v.error],e[De.Success]=[h.success,v.success],e[De.LoadFailed]=[h.loadFailed,v.default],e}),[h,v]),y=function(e){var t;return(e||"number"!=typeof g.current.sliderButtonWidth)&&(g.current.sliderButtonWidth=(null===(t=f.current)||void 0===t?void 0:t.clientWidth)||40),g.current.sliderButtonWidth},x=function(e){if(e||"number"!=typeof g.current.indicatorBorderWidth)if(m.current){var t=window.getComputedStyle(m.current);g.current.indicatorBorderWidth=parseInt(t.borderLeftWidth)+parseInt(t.borderRightWidth)}else g.current.indicatorBorderWidth=2;return g.current.indicatorBorderWidth},w=function(e){var t;return!e&&g.current.rect||d.current&&(g.current.rect=null===(t=d.current)||void 0===t?void 0:t.getBoundingClientRect()),g.current.rect};(0,p.useImperativeHandle)(s,(function(){return{getSliderButtonWidth:y,getIndicatorBorderWidth:x,getRect:w,updateLeft:function(e){var t=y(),n=x();Ae(f.current,{left:e+"px"}),Ae(m.current,{width:e+t+n+"px"})}}}),[]);var C=o===De.Loading,S=o===De.Moving,E=o===De.Verify,k=o===De.Success,I=o===De.Error,j=o===De.LoadFailed,N=r?h.errors:b[o][0];return p.createElement("div",Ce({},u,{className:O()(qe,(t={},t["".concat(qe,"-loading")]=C,t["".concat(qe,"-moving")]=S,t["".concat(qe,"-verify")]=E,t["".concat(qe,"-success")]=k,t["".concat(qe,"-error")]=I,t["".concat(qe,"-errors")]=r,t["".concat(qe,"-load-failed")]=j,t),u.className),ref:d}),p.createElement("div",Ce({},c,{className:O()("".concat(qe,"-indicator"),null==c?void 0:c.className),ref:m})),p.createElement(Be,Ce({},l,{className:O()("".concat(qe,"-button"),null==l?void 0:l.className),disabled:C,active:S,verify:E,success:k,error:I,buttonRef:f}),b[o][1]),p.createElement("div",{className:O()("".concat(qe,"-tips")),style:N?{}:{display:"none"}},N))},Ge="".concat(Oe,"-loading"),Qe=function(e){var t=e.icon,n=void 0===t?p.createElement(Ke,{type:"loading",spin:!0}):t,o=e.text,r=void 0===o?"加载中...":o,i=e.className,a=Se(e,["icon","text","className"]);return p.createElement("div",Ce({className:O()(Ge,i)},a),p.createElement("div",{className:"".concat(Ge,"-icon")},n),p.createElement("div",{className:"".concat(Ge,"-text")},r))},_e="".concat(Oe,"-jigsaw"),Ue={bgSize:{width:320,height:160},puzzleSize:{width:60,left:0},loadFailedIcon:p.createElement(Ke,{type:"imageFill"}),refreshIcon:p.createElement(Ke,{type:"refresh"})},Ye=function(e){var t,n,o=e.status,r=e.bgSize,i=void 0===r?Ue.bgSize:r,a=e.puzzleSize,l=void 0===a?Ue.puzzleSize:a,c=e.bgUrl,s=e.puzzleUrl,u=e.bgImgProps,d=e.puzzleImgProps,f=e.jigsawRef,m=e.loadingBoxProps,g=e.loadFailedIcon,h=void 0===g?Ue.loadFailedIcon:g,v=e.showRefreshIcon,b=void 0===v||v,y=e.refreshIcon,x=void 0===y?Ue.refreshIcon:y,w=e.disabledRefresh,C=e.onRefresh,S=e.style,E=e.className,k=e.children,I=Se(e,["status","bgSize","puzzleSize","bgUrl","puzzleUrl","bgImgProps","puzzleImgProps","jigsawRef","loadingBoxProps","loadFailedIcon","showRefreshIcon","refreshIcon","disabledRefresh","onRefresh","style","className","children"]),j=(0,p.useRef)(null);if((0,p.useImperativeHandle)(f,(function(){return{updateLeft:function(e){Ae(j.current,{left:e+"px"})}}})),o===De.Loading)return p.createElement(Qe,Ce({},m,{style:Ce(Ce({},null==m?void 0:m.style),i)}));if(o===De.LoadFailed)return p.createElement("div",{className:"".concat(Oe,"-load-failed"),style:i},h);var N=o===De.Verify||o===De.Error||o===De.Success;return p.createElement("div",Ce({className:O()(_e,(t={},t["".concat(_e,"-stop")]=N,t),E),style:Ce(Ce({},S),i)},I),p.createElement("img",Ce({src:c,alt:""},u,{className:O()("".concat(_e,"-bg"),null==u?void 0:u.className),style:Ce(Ce({},null==u?void 0:u.style),i)})),p.createElement("img",Ce({src:s,alt:""},d,{className:O()("".concat(_e,"-puzzle"),null==d?void 0:d.className),style:Ce(Ce({},null==d?void 0:d.style),l),ref:j})),b&&o!==De.Success&&x&&p.createElement("div",{className:O()("".concat(_e,"-refresh"),(n={},n["".concat(_e,"-refresh-disabled")]=o===De.Verify||w,n)),onClick:function(){o===De.Verify||w||null==C||C()}},x),k)},Je=Te?{move:"pointermove",end:"pointerup",cancel:"pointercancel"}:Pe?{move:"touchmove",end:"touchend",cancel:"touchcancel"}:{move:"mousemove",end:"mouseup",cancel:"touchcancel"},et=Te?"onPointerDown":Pe?"onTouchStart":"onMouseDown";!function(e){e.Puzzle="puzzle",e.Button="button"}(Ve||(Ve={}));var tt=function(e){var t,n,o,r=e.mode,i=void 0===r?"embed":r,a=e.limitErrorCount,l=void 0===a?0:a,c=e.tipText,s=e.tipIcon,u=e.refreshIcon,d=e.bgSize,f=e.puzzleSize,m=e.request,g=e.autoRequest,h=void 0===g||g,v=e.onVerify,b=e.autoRefreshOnError,y=void 0===b||b,x=e.actionRef,w=e.showRefreshIcon,C=void 0===w||w,S=e.jigsawContent,E=e.errorHoldDuration,k=void 0===E?500:E,I=e.loadingDelay,j=void 0===I?0:I,N=e.placement,M=void 0===N?"top":N,Z=e.loadingBoxProps,$=e.sliderButtonProps,A=e.precision,z=void 0===A?7:A,T=e.className,P=e.style,L=e.styles,R=Ne(),B=R[0],D=R[1],H=Ne((function(){return!ee&&m&&h?De.Loading:De.Default})),W=H[0],F=H[1],K=Me(W),V=(0,p.useRef)(null),q=(0,p.useRef)(null),X=(0,p.useRef)(null),G=(0,p.useMemo)((function(){return"float"===i||"slider"===i?i:"embed"}),[i]),Q=(0,p.useMemo)((function(){return void 0!==u?u:void 0!==(null==s?void 0:s.refresh)?s.refresh:void 0}),[u,s]),_=(0,p.useMemo)((function(){return Ce(Ce({},Ue.bgSize),d)}),[d]),U=(0,p.useMemo)((function(){return Ce(Ce({},Ue.puzzleSize),f)}),[f]),Y=(0,p.useMemo)((function(){return"bottom"===M?"top":"bottom"}),[M]),J=(0,p.useRef)({isPressed:!1,trail:[],errorCount:0,startInfo:{x:0,y:0,timestamp:0},currentTargetType:Ve.Button,floatTransitionTimer:null,floatDelayShowTimer:null,floatDelayHideTimer:null,refreshTimer:null,loadingTimer:null,sliderButtonWidth:40,indicatorBorderWidth:2,ratio:1,buttonMaxDistance:0,puzzleMaxDistance:0}),ee="slider"===G,te="number"==typeof j&&j>0,ne=W===De.Error&&l>0&&J.current.errorCount>=l,oe=function(){var e;return(null===(e=V.current)||void 0===e?void 0:e.getRect(!0).height)||42},re=function(){return Ee(void 0,void 0,void 0,(function(){var e;return ke(this,(function(t){switch(t.label){case 0:if(ee)return[2];if(!m)return[3,4];te?J.current.loadingTimer=setTimeout((function(){F(De.Loading)}),j):F(De.Loading),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,m()];case 2:return e=t.sent(),te&&clearTimeout(J.current.loadingTimer),D(e),F(De.Default),[3,4];case 3:return t.sent(),te&&clearTimeout(J.current.loadingTimer),D(void 0),F(De.LoadFailed),[3,4];case 4:return[2]}}))}))},ie=function(e){void 0===e&&(e=300),"float"===G&&K.current!==De.Success&&(clearTimeout(J.current.floatTransitionTimer),clearTimeout(J.current.floatDelayHideTimer),clearTimeout(J.current.floatDelayShowTimer),J.current.floatDelayShowTimer=setTimeout((function(){var e,t;Ae(X.current,{display:"block"}),null==(t=X.current)||t.scrollTop;var n=oe()+"px";Ae(X.current,((e={})[Y]=n,e.opacity="1",e))}),e))},ae=function(e){void 0===e&&(e=300),"float"===G&&(clearTimeout(J.current.floatTransitionTimer),clearTimeout(J.current.floatDelayHideTimer),clearTimeout(J.current.floatDelayShowTimer),J.current.floatDelayHideTimer=setTimeout((function(){var e,t=oe()/2+"px";Ae(X.current,((e={})[Y]=t,e.opacity="0",e)),J.current.floatTransitionTimer=setTimeout((function(){Ae(X.current,{display:"none"})}),300)}),e))},le=function(e){var t;ee||null===(t=q.current)||void 0===t||t.updateLeft(e)},ce=function(){var e;J.current.isPressed=!1,F(De.Default),null===(e=V.current)||void 0===e||e.updateLeft(0),le(U.left)},se=function(e){void 0===e&&(e=!1),e&&(J.current.errorCount=0),clearTimeout(J.current.refreshTimer),K.current!==De.Loading&&(ce(),re())},ue=function(e){if(K.current===De.Default){e.preventDefault();var t=$e(e),n=t.clientX,o=t.clientY;J.current.startInfo={x:n,y:o,timestamp:(new Date).getTime()},J.current.trail=[[n,o]],V.current&&(J.current.sliderButtonWidth=V.current.getSliderButtonWidth(!0),J.current.indicatorBorderWidth=V.current.getIndicatorBorderWidth(!0)),J.current.buttonMaxDistance=_.width-J.current.sliderButtonWidth-J.current.indicatorBorderWidth,J.current.puzzleMaxDistance=_.width-U.width-U.left,J.current.ratio=J.current.puzzleMaxDistance/J.current.buttonMaxDistance,J.current.currentTargetType===Ve.Puzzle&&(J.current.ratio=1/J.current.ratio),(Pe||"pen"===e.pointerType||"touch"===e.pointerType)&&ie(0),J.current.isPressed=!0,document.addEventListener(Je.move,de),document.addEventListener(Je.end,fe),document.addEventListener(Je.cancel,fe)}},de=function(e){var t;if(J.current.isPressed){e.preventDefault();var n=$e(e),o=n.clientX,r=n.clientY,i=o-J.current.startInfo.x;J.current.trail.push([o,r]),K.current!==De.Moving&&i>0&&F(De.Moving);var a=i,l=i;J.current.currentTargetType===Ve.Puzzle?(a=(i=Math.max(0,Math.min(i,J.current.puzzleMaxDistance)))+U.left,l=i*J.current.ratio):(l=i=Math.max(0,Math.min(i,J.current.buttonMaxDistance)),a=i*J.current.ratio+U.left),null===(t=V.current)||void 0===t||t.updateLeft(l),le(a)}},fe=function(e){if(document.removeEventListener(Je.move,de),document.removeEventListener(Je.end,fe),document.removeEventListener(Je.cancel,fe),J.current.isPressed){if(K.current!==De.Moving)return J.current.isPressed=!1,void(Pe&&ae());if(v){J.current.isPressed=!1,F(De.Verify);var t=(new Date).getTime(),n=$e(e),o=n.clientX,r=n.clientY-J.current.startInfo.y,i=o-J.current.startInfo.x,a=i;J.current.currentTargetType===Ve.Puzzle?a=(i=Math.max(0,Math.min(i,J.current.puzzleMaxDistance)))*J.current.ratio:(a=i=Math.max(0,Math.min(i,J.current.buttonMaxDistance)),i*=J.current.ratio),v({x:Le(i,z),y:Le(r,z),sliderOffsetX:Le(a,z),duration:t-J.current.startInfo.timestamp,trail:J.current.trail,targetType:J.current.currentTargetType,errorCount:J.current.errorCount}).then((function(){J.current.errorCount=0,F(De.Success),ae()})).catch((function(){J.current.errorCount+=1,F(De.Error),(Pe||"pen"===e.pointerType||"touch"===e.pointerType)&&ae(),(l<=0||J.current.errorCount0)&&(o.forEach((function(e){e.wrap.apply(e.context,t)})),!0)},e}(),ot={},rt=function(){function e(e){void 0===e&&(e="default"),this.scope=e,ot[this.scope]||(ot[this.scope]={}),this.data=ot[this.scope]}return e.prototype.getItem=function(e){return e in this.data?this.data[e]:null},e.prototype.setItem=function(e,t){this.data[e]=t},e.prototype.removeItem=function(e){delete this.data[e]},e.prototype.clear=function(){ot[this.scope]={},this.data=ot[this.scope]},e}();function it(e){try{var t="object"==typeof e&&null!==e&&!!e.setItem&&!!e.getItem&&!!e.removeItem;if(t){var n=Math.random().toString(16).substring(2,8)+(new Date).getTime();if(e.setItem(n,"1"),"1"!==e.getItem(n))return!1;e.removeItem(n)}return t}catch(t){return console.error("[cache2] ".concat(e," is not supported. The default memory cache will be used.")),!1}}var at=function(){function e(e,t){void 0===t&&(t={});var n=!!e&&it(e);this.options=Ce({needParsed:n,prefix:""},t),this.storage=n?e:new rt(this.options.memoryScope)}return e.prototype.getKey=function(e){return this.options.prefix+e},e.prototype.get=function(e){var t=this.storage.getItem(this.getKey(e));return this.options.needParsed?function(e,t){try{return JSON.parse(e,t)}catch(t){return e}}(t,this.options.reviver):t},e.prototype.set=function(e,t){this.storage.setItem(this.getKey(e),this.options.needParsed?function(e,t){return JSON.stringify(e,t)}(t,this.options.replacer):t)},e.prototype.del=function(e){this.storage.removeItem(this.getKey(e))},e.prototype.clear=function(){"function"==typeof this.storage.clear&&this.storage.clear()},e}(),lt="default",ct=function(e){function t(t,n){var o,r=e.call(this)||this,i=lt;return"string"==typeof t?i=t||lt:"object"==typeof t&&(o=t),o||"object"!=typeof n||(o=n),r.options=Ce({max:-1,stdTTL:0,maxStrategy:"limited",checkperiod:0,prefix:"cache2_"},o),r.storage=new at(r.options.storage,Ce({memoryScope:i},r.options)),r.cacheKey=i,r.startCheckperiod(),r}return we(t,e),t.prototype._check=function(e,t){var n=!0;return 0!==t.t&&t.t0?n+o:0,n:n}},t.prototype._isLimited=function(e){return this.options.max>-1&&e>=this.options.max},t.prototype._getReplaceKey=function(e,t){var n=e[0];return e.forEach((function(e){(t[e].t0&&this.setCacheValues(n),o},t.prototype.clear=function(){this.storage.del(this.cacheKey)},t.prototype.keys=function(){var e=this,t=this.cacheValues;return Object.keys(t).filter((function(n){return e._check(n,t[n])}))},t.prototype.has=function(e){var t=this.cacheValues[e];return!(!t||!this._check(e,t))},t.prototype.take=function(e){var t,n=this.cacheValues[e];return n&&this._check(e,n)&&(t=n.v,this.del(e)),t},t.prototype.ttl=function(e,t){var n=this.cacheValues,o=n[e];return!(!o||!this._check(e,o))&&(n[e]=this._wrap(o.v,t),!0)},t.prototype.getTtl=function(e){var t=this.cacheValues,n=t[e];if(n&&this._check(e,n))return t[e].t},t.prototype.getLastModified=function(e){var t=this.cacheValues,n=t[e];if(n&&this._check(e,n))return t[e].n},t.prototype.startCheckperiod=function(){var e=this;this.keys(),this.options.checkperiod>0&&(clearTimeout(this._checkTimeout),this._checkTimeout=setTimeout((function(){e.startCheckperiod()}),this.options.checkperiod))},t.prototype.stopCheckperiod=function(){clearTimeout(this._checkTimeout)},t}(nt),st="undefined",ut="object",dt=Object.prototype,ft=dt.toString,pt=(dt.hasOwnProperty,dt.propertyIsEnumerable,Object.getOwnPropertySymbols,Object.getPrototypeOf,Object.keys,Function.prototype.toString,typeof Symbol!==st&&Symbol.prototype,Array.prototype.slice,Math.min),mt=Math.max,gt=Math.random,ht=Math.floor,vt=Math.ceil,bt=(Math.abs,Number.isFinite,Number.isInteger,Number.isSafeInteger,typeof globalThis===ut&&globalThis,typeof n.g===ut&&n.g,typeof self===ut&&self,Number.MAX_SAFE_INTEGER,Number.MIN_SAFE_INTEGER,"[object "),yt=bt+"String]",xt=bt+"Symbol]",wt=(["Function","AsyncFunction","GeneratorFunction","Proxy"].map((function(e){return bt+e+"]"})),bt+"Blob]");function Ct(e){return ft.call(e)}var St=function(){function e(e,t){void 0===t&&(t="uh_async_memo"),this.promiseCache={},this.cache=new ct(t,e)}return e.prototype.run=function(e,t,n){var o,r=this;if(!t||"string"!=typeof(o=t)&&Ct(o)!==yt)return e();var i=Ce({persisted:!0},n);if(i.persisted){var a=this.cache.get(t);if(a)return Promise.resolve(a)}return this.promiseCache[t]||(this.promiseCache[t]=e().then((function(e){return delete r.promiseCache[t],r.cache.set(t,e,i.ttl),e})).catch((function(e){return delete r.promiseCache[t],Promise.reject(e)}))),this.promiseCache[t]},e}(),Et=typeof Blob!==st;function kt(e){return!!(Et&&e instanceof Blob)||Ct(e)===wt}var It,jt="undefined"!=typeof URL,Nt=Object.keys,Mt=(Object.values,jt?URL.createObjectURL:(It="",function(){return It})),Zt=jt?URL.revokeObjectURL:function(){};var Ot=[200,304];function $t(e,t){return new Promise((function(n,o){var r,i,a,l,c,s,u,d,f,p,m,g,h,v,b,y,x,w,C,S,E,k,I,j,N,M;kt(e)?n(e):(r=e,i=Ce({responseType:"blob"},t),a=i||{},l=a.method,c=void 0===l?"get":l,s=a.data,u=void 0===s?null:s,d=a.timeout,f=a.headers,p=a.withCredentials,m=void 0!==p&&p,g=a.async,h=void 0===g||g,v=a.user,b=void 0===v?null:v,y=a.password,x=void 0===y?null:y,w=a.responseType,C=a.onReadyStateChange,S=a.onLoadStart,E=a.onProgress,k=a.onAbort,I=a.onTimeout,j=a.onError,N=a.onLoad,M=a.onLoadEnd,new Promise((function(e,t){var n=new XMLHttpRequest;n.open(c.toLowerCase(),r,h,b,x),C&&(n.onreadystatechange=C),"number"==typeof d&&d>0&&(n.timeout=d),n.withCredentials=m,w&&(n.responseType=w),"object"==typeof f&&Nt(f).map((function(e){n.setRequestHeader(e,f[e])}));var o,i=function(e){return function(o){t(o),null==e||e.call(n,o)}},a={loadstart:S,progress:E,abort:i(k),timeout:i(I),error:i(j),load:(o=N,function(t){e(t),null==o||o.call(n,t)}),loadend:M};Nt(a).forEach((function(e){var t=a[e];t&&n.addEventListener(e,t)})),n.send(u)}))).then((function(t){var r=t.target.status;if(-1!==Ot.indexOf(r))n(t.target.response);else{var i=new Error("The file does not support get requests, responseStatus ".concat(r,", '").concat(e,"'."));console.error(i),o(i)}})).catch((function(e){console.error(new Error("Failed to request file. ".concat(e))),o(e)}))}))}function At(e,t){return $t(e,t).then((function(e){return function(e){return new Promise((function(t,n){var o=kt(e),r=o?Mt(e):e,i=new Image;o||(i.crossOrigin="anonymous"),i.onload=function(){t(i)},i.onerror=function(t){o&&Zt(r),console.error("[loadImage] The image load failed, '".concat(e,"'.")),n(t)},i.src=r}))}(e).then((function(t){return{blob:e,image:t}}))}))}function zt(e){return"function"==typeof e||function(e){return null!==e&&"object"==typeof e}(e)}var Tt=/^0b[01]+$/i,Pt=/^0o[0-7]+$/i,Lt=/^[-+]0x[0-9a-f]+$/i;function Rt(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||Ct(e)===xt}(e))return NaN;if(zt(e)&&(e=Number(e)),"string"!=typeof e)return 0===e?e:+e;e=e.trim();var t=Tt.test(e);return t||Pt.test(e)?parseInt(e.slice(2),t?2:8):Lt.test(e)?NaN:+e}function Bt(e){return e?(e=Rt(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Dt(e,t){void 0===e&&(e=0),void 0===t&&(t=1),e=Bt(e),t=Bt(t);var n=vt(pt(e,t)||0),o=ht(mt(e,t)||0);if(n>o){var r=n;n=o,o=r}return ht(n+gt()*(o-n+1))}var Ht,Wt=Math.PI;!function(e){e[e.None=0]="None",e[e.Outer=1]="Outer",e[e.Inner=2]="Inner"}(Ht||(Ht={}));var Ft=[Ht.None,Ht.Outer,Ht.Inner];function Kt(e){return e[Dt(0,e.length-1)]}function Vt(e){var t={top:Kt(Ft),right:Kt(Ft),bottom:Kt(Ft),left:Kt(Ft)},n=Object.keys(t),o=["top","bottom"],r=["left","right"];if(t.top===Ht.Outer&&t.bottom===Ht.Outer?t[Kt(o)]=Ht.Inner:t.top!==Ht.Outer&&t.bottom!==Ht.Outer&&(t[Kt(o)]=Ht.Outer),t.left===Ht.Outer&&t.right===Ht.Outer?t[Kt(r)]=Ht.Inner:t.left!==Ht.Outer&&t.right!==Ht.Outer&&(t[Kt(r)]=Ht.Outer),e){var i=[],a=[];n.forEach((function(e){t[e]===Ht.Inner?i.push(e):t[e]===Ht.None&&a.push(e)})),2===e?i.forEach((function(e){return t[e]=Ht.None})):3===e?0===i.length?t[Kt(a)]=Ht.Inner:2===i.length&&(t[Kt(i)]=Ht.None):4==e&&a.forEach((function(e){return t[e]=Ht.Inner}))}return t}function qt(e,t){void 0===t&&(t={});var n=t.x,o=void 0===n?0:n,r=t.y,i=void 0===r?0:r,a=t.w,l=void 0===a?60:a,c=t.h,s=void 0===c?60:c,u=t.needClosePath,d=void 0===u||u,f=t.points,p=t.margin,m=void 0===p?0:p;m=m<=0?0:m,"number"!=typeof f&&f||(f=Vt(f));var g=.15*(Math.min(l,s)-2*m),h=Math.hypot(g,g)/2,v=g+h,b={x:o+m,y:i+m,w:l-v-2*m,h:s-v-2*m},y=b.w/2,x=b.h/2;f.left===Ht.Outer&&(b.x+=v),f.top===Ht.Outer&&(b.y+=v),e.beginPath(),e.lineWidth=2,e.moveTo(b.x,b.y),f.top!==Ht.None&&(e.lineTo(b.x+y-h,b.y),f.top===Ht.Inner?e.arc(b.x+y,b.y+h,g,1.25*Wt,1.75*Wt,!0):e.arc(b.x+y,b.y-h,g,.75*Wt,.25*Wt)),e.lineTo(b.x+b.w,b.y),f.right!==Ht.None&&(e.lineTo(b.x+b.w,b.y+x-h),f.right===Ht.Inner?e.arc(b.x+b.w-h,b.y+x,g,1.75*Wt,.25*Wt,!0):e.arc(b.x+b.w+h,b.y+x,g,1.25*Wt,.75*Wt)),e.lineTo(b.x+b.w,b.y+b.h),f.bottom!==Ht.None&&(e.lineTo(b.x+y+h,b.y+b.h),f.bottom===Ht.Inner?e.arc(b.x+y,b.y+b.h-h,g,.25*Wt,.75*Wt,!0):e.arc(b.x+y,b.y+b.h+h,g,1.75*Wt,1.25*Wt)),e.lineTo(b.x,b.y+b.h),f.left!==Ht.None&&(e.lineTo(b.x,b.y+x+h),f.left===Ht.Inner?e.arc(b.x+h,b.y+x,g,.75*Wt,1.25*Wt,!0):e.arc(b.x-h,b.y+x,g,.25*Wt,1.75*Wt)),e.lineTo(b.x,b.y),e.stroke(),d&&e.closePath()}function Xt(e,t,n,o){return new Promise((function(r){t?e.toBlob((function(t){r(t?URL.createObjectURL(t):e.toDataURL(n,o))}),n,o):r(e.toDataURL(n,o))}))}var Gt=new St({max:5,maxStrategy:"replaced"});Gt.cache.on("del",(function(e,t){try{t.image.src&&URL.revokeObjectURL(t.image.src)}catch(e){}}));var Qt=new WeakMap,_t="image/jpeg",Ut="image/png",Yt=[];function Jt(e,t){void 0===t&&(t={});var n=t.borderWidth,o=void 0===n?2:n,r=t.borderColor,i=void 0===r?"rgba(255,255,255,0.7)":r,a=t.fillColor,l=void 0===a?"rgba(255,255,255,0.7)":a,c=t.points,s=t.width,u=void 0===s?60:s,d=t.height,f=void 0===d?60:d,p=t.x,m=t.y,g=t.margin,h=void 0===g?2:g,v=t.equalHeight,b=void 0===v||v,y=t.imageWidth,x=t.imageHeight,w=t.bgWidth,C=t.bgHeight,S=t.bgOffset,E=void 0===S?[0,0]:S,k=t.bgImageType,I=void 0===k?_t:k,j=t.quality,N=void 0===j?.8:j,M=t.format,Z=void 0===M?"dataURL":M,O=t.cacheImage,$=void 0===O||O,A=t.autoRevokePreviousBlobUrl,z=void 0===A||A,T=t.ajaxOptions;return new Promise((function(t,n){var r=document.createElement("canvas"),a=document.createElement("canvas"),s=r.getContext("2d"),d=a.getContext("2d"),g=$?function(e){if(!zt(e))return String(e);if(!Qt.get(e)){var t="_"+Date.now();Qt.set(e,t)}return Qt.get(e)}(e):void 0;Gt.run((function(){return At(e,T)}),g).then((function(e){var g=e.image;y&&(g.width=y),x&&(g.height=x);var v="number"==typeof w&&w>0?w>u?w:u:g.width,S="number"==typeof C&&C>0?C>f?C:f:g.height;r.width=v,r.height=S;var k=v-u,j=S-f,M=void 0===p?Dt(u,k):p||0,O=void 0===m?Dt(0,j):m||0;M<0?M=0:M>k&&(M=k),O<0?O=0:O>j&&(O=j);var $="number"!=typeof c&&c?c:Vt(c),A="function"==typeof E?E(g.width,g.height):E;s.strokeStyle=i,s.lineWidth=o,s.fillStyle=l,qt(s,{x:M,y:O,w:u,h:f,points:$,margin:h}),s.fillStyle=l,s.fill(),s.globalCompositeOperation="destination-over",s.drawImage(g,A[0],A[1],g.width,g.height),a.width=v,a.height=S,d.strokeStyle=i,d.lineWidth=o,qt(d,{x:M,y:O,w:u,h:f,points:$,margin:h}),d.globalCompositeOperation="destination-over",d.clip(),d.drawImage(g,A[0],A[1],g.width,g.height);var T=d.getImageData(M,O,u,f);d.clearRect(0,0,v,S),a.width=u,a.height=b?S:f,d.putImageData(T,0,b?O:0);var P="blob"===Z,L=Xt(a,P,Ut,N),R=Xt(r,P,I,N);Promise.all([L,R]).then((function(e){var n=e[0],o=e[1];z&&(Yt.length&&(Yt.forEach((function(e){URL.revokeObjectURL(e)})),Yt.length=0),P&&Yt.push(o,n)),t({puzzleUrl:n,bgUrl:o,x:M,y:b?0:O})})).catch(n)})).catch(n)}))}var en=function(e){var t=e.ModalProps,n=e.onFinish,o=(0,p.useState)(),i=u()(o,2),l=i[0],s=i[1],d=(0,p.useRef)(),f=function(){var e=c()(r()().mark((function e(){var t,n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="/react/build/images/VerifCodeBg/img".concat(Math.floor(23*Math.random())+1,".jpg"),e.next=3,Jt(t,{imageHeight:180,imageWidth:360});case 3:return n=e.sent,s(n),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var e=c()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null!=t&&t.x&&t.x>l.x-5&&t.x-1)){e.next=6;break}return g.setFields([{name:"login",errors:["请输入正确的手机号或邮箱"]}]),o=1,e.abrupt("return",o);case 6:return e.next=8,t({login:n,type:1});case 8:return i=e.sent,a=i.status,l=i.message,a>0?o=2:(g.setFields([{name:"login",errors:[l]}]),o=1),e.abrupt("return",o);case 14:case"end":return e.stop()}}),e)}))),z.apply(this,arguments)}var T=function(){var e=c()(r()().mark((function e(){var o,i,a,l,c;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I(!0),g.getFieldValue("verify"),o=g.getFieldValue("login")){e.next=7;break}g.validateFields(["login"]),e.next=21;break;case 7:return e.next=9,t({login:o,type:1});case 9:if(1===(null==(i=e.sent)?void 0:i.status)){e.next=14;break}return g.setFields([{name:"login",errors:[null==i?void 0:i.message]}]),I(!1),e.abrupt("return");case 14:return e.next=16,n({login:o,type:1,smscode:(0,ye.M)(o)});case 16:a=e.sent,l=a.status,c=a.message,l<0&&(g.setFields([{name:"code",errors:[c]}]),I(!1)),w({type:ln.setTimer,payload:60});case 21:I(!1);case 22:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,p.useEffect)((function(){j>0&&setTimeout((function(){w({type:ln.setTimer,payload:j-1})}),1e3)}),[j]);var P=(0,p.useState)(0),L=u()(P,2),R=L[0];L[1],(0,p.useMemo)((function(){return"/rucaptcha?t="+(new Date).getTime()}),[R]);return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsxs)(b.Z,{layout:"vertical",form:g,style:a,initialValues:{autologin:!0,protool:!1},onFinish:function(e){return $.apply(this,arguments)},children:[(0,ce.jsx)(b.Z.Item,{name:"login",rules:[{required:!0,message:"请输入正确的手机号或邮箱"},{validator:function(e,t){return t?t.indexOf(" ")>-1?Promise.reject("请输入正确的手机号或邮箱"):on.test(t)?Promise.resolve():Promise.reject("请输入正确的手机号或邮箱"):Promise.resolve()}}],children:(0,ce.jsx)(x.Z,{style:nn,autoComplete:"new-login",size:"middle",placeholder:"请输入有效的手机号/邮箱号",onBlur:function(){return A},onChange:function(){return g.setFieldsValue({verify:0})}})}),(0,ce.jsx)(b.Z.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}],children:(0,ce.jsx)(x.Z,{suffix:(0,ce.jsxs)(C.ZP,{loading:k,type:"link",onClick:function(e){e.stopPropagation(),g.getFieldValue("login")?O(!0):g.validateFields(["login"])},disabled:j>0,children:[" ",0===j?"获取验证码":"".concat(j,"秒可重新获取")]}),style:{paddingRight:2,height:48},placeholder:"请输入验证码",size:"middle"})}),(0,ce.jsx)(be.Z,{title:(0,ce.jsxs)("div",{children:[(0,ce.jsx)("span",{children:"长度为8-16位字符"}),(0,ce.jsx)("br",{}),(0,ce.jsx)("span",{children:"字母/数字以及标点符号至少包含2种"}),(0,ce.jsx)("br",{}),(0,ce.jsx)("span",{children:"不允许有空格、中文"})]}),placement:"topRight",children:(0,ce.jsx)(b.Z.Item,{name:"password",rules:[{required:!0,message:"请输入8-16位密码,区分大小写、不能使用空格"},{validator:function(e,t){if(!t)return Promise.resolve();if(!rn.test(t))return Promise.reject("请输入8~16位字符,字母、数字和特殊符号至少包含2种");if(t.indexOf(" ")>-1)return Promise.reject("请输入8-16位密码,区分大小写、不能使用空格");var n=t.length;return n>=8&&n<=16?Promise.resolve():Promise.reject("请输入8-16位密码,区分大小写、不能使用空格")}}],children:(0,ce.jsx)(x.Z.Password,{autoComplete:"new-password",style:nn,size:"middle",placeholder:"请输入8~16位字符,字母、数字和特殊符号至少包含2种"})})}),(0,ce.jsx)(b.Z.Item,{children:(0,ce.jsxs)(C.ZP,{size:"middle",type:"primary",htmlType:"submit",block:!0,style:nn,className:"font16",children:[" ",s," "]})})]}),(0,ce.jsx)(tn,{ModalProps:{open:Z,onCancel:function(){O(!1)}},onFinish:function(){O(!1),T()}})]})})),un=n(89392),dn={height:48},fn=/(\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b)|(^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$)/i,pn=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,mn={timer:0},gn=function(e){return e[e.setTimer=0]="setTimer",e}(gn||{});function hn(e,t){if(t.type===gn.setTimer)return a()(a()({},e),{},{timer:t.payload});throw new Error}var vn=(0,v.connect)((function(e){return{globalSetting:e.globalSetting}}))((function(e){var t=e.validateName,n=e.getCode,o=e.register,i=e.style,a=void 0===i?{}:i,l=e.buttonText,s=void 0===l?"注册":l,d=(e.globalSetting,b.Z.useForm()),f=u()(d,1)[0],m=(0,p.useReducer)(hn,mn),g=u()(m,2),h=g[0],v=g[1],y=(0,p.useState)(!1),w=u()(y,2),S=w[0],E=w[1],k=h.timer,I=(0,p.useState)(!1),j=u()(I,2),N=j[0],M=j[1];function Z(){return Z=c()(r()().mark((function e(t){var n,i,a,l,c;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.login,i=t.new_password,a=t.code,e.next=3,o({login:n,new_password:i,code:a});case 3:if(l=e.sent,c=l.message,!(l.status<0)){e.next=9;break}return f.setFields([{name:"code",errors:[c]}]),e.abrupt("return");case 9:location.reload();case 10:case"end":return e.stop()}}),e)}))),Z.apply(this,arguments)}var O=function(){var e=c()(r()().mark((function e(){var t,o,i,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f.getFieldValue("verify"),t=f.getFieldValue("login"),e.next=4,f.validateFields(["login"]);case 4:if(t){e.next=8;break}f.validateFields(["login"]),e.next=17;break;case 8:return E(!0),e.next=11,n({login:t,type:2,smscode:(0,ye.M)(t)});case 11:o=e.sent,i=o.status,a=o.message,i<0&&f.setFields([{name:"code",errors:[a]}]),v({type:gn.setTimer,payload:60}),E(!1);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,p.useEffect)((function(){k>0&&setTimeout((function(){v({type:gn.setTimer,payload:k-1})}),1e3)}),[k]);var $=function(){var e=c()(r()().mark((function e(n,o){var i,a,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:if(!(o.indexOf(" ")>-1)){e.next=4;break}return e.abrupt("return",Promise.reject("请输入正确的手机号或邮箱"));case 4:if(!fn.test(o)){e.next=18;break}return e.next=7,t({login:o,type:2});case 7:if(i=e.sent,a=i.status,l=i.message,!(a>0)){e.next=15;break}return e.abrupt("return",Promise.resolve());case 15:return e.abrupt("return",Promise.reject(l));case 16:e.next=19;break;case 18:return e.abrupt("return",Promise.reject("请输入正确的手机号或邮箱"));case 19:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsxs)(b.Z,{layout:"vertical",form:f,style:a,initialValues:{autologin:!0,protool:!1},onFinish:(0,un.throttle)((function(e){return Z.apply(this,arguments)}),2e3),children:[(0,ce.jsx)(b.Z.Item,{name:"login",rules:[{required:!0,message:"请输入正确的手机号或邮箱"},{validator:(0,un.throttle)($,400)}],children:(0,ce.jsx)(x.Z,{style:dn,autoComplete:"new-login",size:"middle",placeholder:"请输入有效的手机号/邮箱号",onChange:function(){return f.setFieldsValue({verify:0})}})}),(0,ce.jsx)(be.Z,{title:(0,ce.jsxs)("div",{children:[(0,ce.jsx)("span",{children:"长度为8-16位字符"}),(0,ce.jsx)("br",{}),(0,ce.jsx)("span",{children:"字母/数字以及标点符号至少包含2种"}),(0,ce.jsx)("br",{}),(0,ce.jsx)("span",{children:"不允许有空格、中文"})]}),placement:"topRight",children:(0,ce.jsx)(b.Z.Item,{name:"new_password",rules:[{required:!0,message:"请输入8-16位新密码,区分大小写、不能使用空格"},{validator:function(e,t){if(!t)return Promise.resolve();if(!pn.test(t))return Promise.reject("请输入8~16位字符,字母、数字和特殊符号至少包含2种");if(t.indexOf(" ")>-1)return Promise.reject("请输入8-16位新密码,区分大小写、不能使用空格");var n=t.length;return n>=8&&n<=16?Promise.resolve():Promise.reject("请输入8-16位新密码,区分大小写、不能使用空格")}}],children:(0,ce.jsx)(x.Z.Password,{autoComplete:"new-password",style:dn,size:"middle",placeholder:"输入8~16位新密码,区分大小写"})})}),(0,ce.jsx)(b.Z.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}],children:(0,ce.jsx)(x.Z,{suffix:(0,ce.jsxs)(C.ZP,{loading:S,type:"link",onClick:function(e){e.stopPropagation(),f.getFieldValue("login")?M(!0):f.validateFields(["login"])},disabled:k>0,children:[" ",0===k?"获取验证码":"".concat(k,"秒可重新获取")]}),style:{paddingRight:2,height:48},placeholder:"请输入验证码",size:"middle"})}),(0,ce.jsx)(b.Z.Item,{children:(0,ce.jsxs)(C.ZP,{size:"middle",type:"primary",htmlType:"submit",block:!0,style:dn,className:"font16",children:[" ",s," "]})})]}),(0,ce.jsx)(tn,{ModalProps:{open:N,onCancel:function(){M(!1)}},onFinish:function(){M(!1),O()}})]})}));Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var bn="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSLlm77lsYJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4PSIwIiB5PSIwIiB2aWV3Qm94PSIwIDAgNjYgNjYiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDY2IDY2IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGU+LnN0MXtmaWxsOiMwMGI5MTN9PC9zdHlsZT48ZyBpZD0i6aG16Z2iLTEiPjxnIGlkPSLnmbvlvZVfeDJGX+azqOWGjCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEwODEgLTM4MCkiPjxnIGlkPSLnvJbnu4QtMTjlpIfku70iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwNjMgMjM4KSI+PGcgaWQ9Iue8lue7hC0xMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTggMTQyKSI+PGcgaWQ9Iue8lue7hC0xMCI+PGNpcmNsZSBpZD0i5qSt5ZyG5b2iIiBjeD0iMzMiIGN5PSIzMyIgcj0iMzMiIHN0eWxlPSJmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsOiNjNmY0YzkiLz48ZyBpZD0i57yW57uEIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMiAxNS40MjkpIj48cGF0aCBpZD0i6Lev5b6EIiBjbGFzcz0ic3QxIiBkPSJNMTYuMyAyMi44YzAtNi42IDYtMTIuMSAxMy43LTEyLjFoLjRDMjkuMSA0LjYgMjIuNyAwIDE1LjQgMCA3LjIgMCAuNCA1LjguNCAxMy4xYzAgNC4zIDIuMiA3LjcgNiAxMC41bC0xLjUgNC43IDUuMi0yLjdjMS43LjQgMy41LjcgNS4zLjguNSAwIC45IDAgMS40LS4xbC4xLS4xYy0uNC0xLjEtLjYtMi4zLS42LTMuNHoiLz48cGF0aCBpZD0i6Lev5b6EXzFfIiBjbGFzcz0ic3QxIiBkPSJNNDIuNCAyMi40YzAtNi4yLTUuOC0xMS4yLTEyLjQtMTEuMi03IDAtMTIuNCA1LjEtMTIuNCAxMS4yUzIzLjEgMzMuNiAzMCAzMy42YzEuNS0uMSAzLS4zIDQuNC0uOGw0IDIuMy0xLTMuOGMyLjgtMi4zIDUtNS41IDUtOC45eiIvPjxwYXRoIGlkPSLlvaLnirYiIGQ9Ik0yMS42IDZjMS0uMSAxLjguNyAxLjkgMS43VjhjLjEgMS0uNyAxLjktMS42IDJoLS4yYy0xLjEuMS0yLjEtLjgtMi4yLTIgMC0xLjIgMS0yLjEgMi4xLTJ6TTExLjIgOS45QzEwLjEgMTAgOS4xIDkuMiA5IDhjLjEtMS4yIDEuMS0yLjEgMi4yLTIgMS0uMSAxLjguNyAxLjggMS44VjhjLjEgMS0uNyAxLjktMS42IDJoLS4yem0xNS4yIDEwLjdjLS44LS4xLTEuNC0uNy0xLjUtMS42LjEtLjguNy0xLjUgMS41LTEuNi45LS4xIDEuNy42IDEuOSAxLjYtLjIgMS0xIDEuNy0xLjkgMS42em04LjIgMGMtLjgtLjEtMS40LS43LTEuNS0xLjYuMS0uOC43LTEuNSAxLjUtMS42LjktLjEgMS43LjYgMS45IDEuNi0uMiAxLTEgMS43LTEuOSAxLjZ6IiBzdHlsZT0iZmlsbDojZmZmIi8+PC9nPjwvZz48L2c+PC9nPjwvZz48L2c+PC9zdmc+";Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var yn="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTUxMiAwQzIyOS4zNTYgMCAwIDIyOS4zNTYgMCA1MTJzMjI5LjM1NiA1MTIgNTEyIDUxMiA1MTItMjI5LjM1NiA1MTItNTEyUzc5NC42NDQgMCA1MTIgMHptMjM1Ljc1IDY0Ny42MDNjLTEwLjcgNS40MTctMjcuNDE3LTYuOTYzLTQzLjM0LTMwLjE1Ny02LjI2NyAyNS4yNjItMjEuNjczIDQ3Ljk1LTQzLjYwNyA2Ni4yNTMgMjMuMjQ0IDguNTA1IDM4LjEyMyAyMi4xNyAzOC4xMjMgMzcuODk4IDAgMjUuNTE5LTQwLjk5IDQ2LjQwMy05MS4zODcgNDYuNDAzLTQ1LjQzIDAtODMuMjg3LTE3LjAxNC05MC4wNzYtMzguOTI3aC0xMC45NjdDNDk5LjQ0NiA3NTEuMjQzIDQ2MS44NSA3NjggNDE2LjQyIDc2OGMtNTAuMzk2IDAtOTEuMzg3LTIwLjYyMy05MS4zODctNDYuNDAzIDAtMTUuNzI4IDE1LjE0NS0yOS4zODggMzguMTE4LTM3Ljg5OC0yMS45MjktMTguMzA0LTM3LjU5Ni00MS4yNTItNDMuNjAyLTY2LjI1My0xNS42NjcgMjMuMTk0LTMyLjYzNCAzNS44My00My4zNCAzMC4xNTctMTUuNjY4LTcuOTg3LTEyLjUzNC01MS4wNDYgNy4wNS05Ni4xNTkgMTUuMTQ1LTM1LjMxNyAzNi4wMy02MS42MTQgNTEuNjk3LTY3LjI4Ny0uMjYyLTIuMzE5LS4yNjItNC42MzgtLjI2Mi02LjcwNyAwLTEzLjY2IDMuOTE3LTI2LjI5MSAxMC40NDUtMzYuNjA4di0yLjMxNGMwLTYuMTkgMS41NjctMTIuMTE5IDQuMTc4LTE3LjI3NUMzNTMuMjMgMzI5LjIxNiA0MTQuMDcgMjU2IDUxMi4yNDEgMjU2czE1OS4wMDYgNzMuMjE2IDE2Mi45MjMgMTY1LjI1M2EzOC4zNzQgMzguMzc0IDAgMCAxIDQuMTc4IDE3LjI3NXYyLjMyYzYuNTI4IDEwLjMxMSAxMC40NDUgMjIuOTQyIDEwLjQ0NSAzNi42MDcgMCAyLjMyIDAgNC42NC0uMjYxIDYuNzAyIDE1LjkyMyA1LjY3MyAzNi41NTcgMzEuOTcgNTEuNjk2IDY3LjI4NyAxOS4wNjIgNDUuMTE4IDIyLjE5NiA4OC4xNjcgNi41MjggOTYuMTZ6IiBmaWxsPSIjMzc4QUZFIi8+PC9zdmc+",xn="other-login___Jd48Z",wn="wechat-qrcode___bLWkh",Cn="driver___IuicK",Sn=n(67390),En=window.location.host,kn=Sn.Z.QQLoginCB,In=function(e){var t=e.onWechatLogin,n=e.setType,o=e.loginType;function r(){return(0,ye.b9)()?"https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=".concat(kn,"%2fotherloginqq&state=null,").concat(En,"&response_type=code"):"https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=".concat(kn,"%2fotherloginqq&state=null,").concat(En,"&response_type=code")}return(0,ce.jsxs)(ce.Fragment,{children:[(1===o||2===o)&&(0,ce.jsxs)("div",{style:{marginTop:(0,ye.WX)()?192:92,marginBottom:60},className:"font16 tc",children:["没有账号?",(0,ce.jsx)("span",{onClick:function(){return n(3)},className:"c-blue current",children:"免费注册"})]}),(3===o||4===o||5===o)&&(0,ce.jsxs)("div",{style:{marginTop:(0,ye.WX)()?192:92,marginBottom:60},className:"font16 tc",children:["已有账号?",(0,ce.jsx)("span",{onClick:function(){return n(1)},className:"c-blue current",children:"立即登录"})]}),!(0,ye.WX)()&&(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("p",{className:Cn,children:(0,ce.jsx)("span",{style:{color:"#444444"},children:"快速登录"})}),(0,ce.jsxs)("div",{className:xn,children:[(0,ye.s2)()&&(0,ye.IS)()&&(0,ce.jsx)("a",{title:"微信登录",style:{margin:0},onClick:t,children:(0,ce.jsx)("img",{src:bn,alt:"微信",width:66})}),(0,ye.s2)()&&!(0,ye.IS)()&&(0,ce.jsx)("a",{title:"qq登录",rel:"noreferrer noopener nofollow",style:{margin:0},href:r(),children:(0,ce.jsx)("img",{src:yn,alt:"QQ",width:66})}),(0,ye.b9)()&&(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("a",{title:"微信登录",style:{marginRight:(0,ye.IS)()?0:40},onClick:t,children:(0,ce.jsx)("img",{src:bn,alt:"微信",width:66})}),!(0,ye.IS)()&&(0,ce.jsx)("a",{title:"qq登录",href:r(),children:(0,ce.jsx)("img",{src:yn,alt:"QQ",width:66})})]})]})]})]})};function jn(e){e.onBack;var t=e.setType;return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("div",{style:{overflow:"hidden",width:300,height:300,margin:"20px auto 0 auto"},children:(0,ce.jsx)("iframe",{className:wn,frameBorder:"0",sandbox:"allow-scripts allow-same-origin allow-top-navigation",scrolling:"no",src:"https://open.weixin.qq.com/connect/qrconnect?appid=wx6b119e2d829c13fa&redirect_uri=".concat(kn,"%2fotherloginstart&response_type=code&scope=snsapi_login&state=null,").concat(En,"#wechat_redirect")})}),(0,ce.jsx)("div",{style:{marginTop:17,marginBottom:10},className:"font16 bold tc c-blue current",children:(0,ce.jsx)("span",{onClick:function(){return t(1)},style:{borderBottom:"2px solid #0152d9"},children:"返回账号登录"})}),(0,ce.jsxs)("div",{className:"tc",style:{paddingTop:14,paddingBottom:40},children:["登录即代表您已阅读并同意",(0,ce.jsx)("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank",children:"《服务协议条款》"})]})]})}var Nn={height:48},Mn=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,Zn={timer:0},On=function(e){return e[e.setTimer=0]="setTimer",e}(On||{});function $n(e,t){if(t.type===On.setTimer)return a()(a()({},e),{},{timer:t.payload});throw new Error}var An=(0,v.connect)((function(e){return{globalSetting:e.globalSetting}}))((function(e){e.validateName,e.getCode;var t=e.register,n=e.style,o=void 0===n?{}:n,i=e.buttonText,a=void 0===i?"注册":i,l=(e.globalSetting,b.Z.useForm()),s=u()(l,1)[0],d=(0,p.useReducer)($n,Zn),f=u()(d,2),m=f[0],g=f[1],h=(0,p.useState)(!1),v=u()(h,2),y=(v[0],v[1],m.timer);function w(){return w=c()(r()().mark((function e(n){var o,i,a,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.old_password,i=n.newPassword,e.next=3,t({old_password:o,newPassword:i});case 3:if(a=e.sent,l=a.message,!(a.status<0)){e.next=9;break}return s.setFields([{name:"code",errors:[l]}]),e.abrupt("return");case 9:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}return(0,p.useEffect)((function(){y>0&&setTimeout((function(){g({type:On.setTimer,payload:y-1})}),1e3)}),[y]),(0,ce.jsxs)(b.Z,{layout:"vertical",form:s,style:o,initialValues:{autologin:!0,protool:!1},onFinish:function(e){return w.apply(this,arguments)},children:[(0,ce.jsx)(b.Z.Item,{name:"old_password",rules:[{required:!0,message:"请输入8~16位密码,区分大小写"}],children:(0,ce.jsx)(x.Z,{style:Nn,autoComplete:"new-login",size:"middle",type:"password",placeholder:"请输入旧密码",onChange:function(){return s.setFieldsValue({verify:0})}})}),(0,ce.jsx)(be.Z,{title:(0,ce.jsxs)("div",{children:[(0,ce.jsx)("span",{children:"长度为8-16位字符"}),(0,ce.jsx)("br",{}),(0,ce.jsx)("span",{children:"字母/数字以及标点符号至少包含2种"}),(0,ce.jsx)("br",{}),(0,ce.jsx)("span",{children:"不允许有空格、中文"})]}),placement:"topRight",children:(0,ce.jsx)(b.Z.Item,{name:"newPassword",rules:[{required:!0,message:"请输入8-16位新密码,区分大小写、不能使用空格"},{validator:function(e,t,n){t?t.indexOf(" ")>-1?n("请输入8-16位密码,区分大小写、不能使用空格"):t.length<8||t.length>16?n("请输入8-16位字符的新密码,区分大小写!"):Mn.test(t)?n():n("请输入8~16位字符,字母、数字和特殊符号至少包含2种"):n("请输入8-16位字符的新密码,区分大小写!")}}],children:(0,ce.jsx)(x.Z.Password,{autoComplete:"new-password",style:Nn,size:"middle",placeholder:"输入8~16位新密码,区分大小写"})})}),(0,ce.jsx)(be.Z,{title:(0,ce.jsxs)("div",{children:[(0,ce.jsx)("span",{children:"长度为8-16位字符"}),(0,ce.jsx)("br",{}),(0,ce.jsx)("span",{children:"字母/数字以及标点符号至少包含2种"}),(0,ce.jsx)("br",{}),(0,ce.jsx)("span",{children:"不允许有空格、中文"})]}),placement:"topRight",children:(0,ce.jsx)(b.Z.Item,{name:"againPassword",rules:[{required:!0,message:"请再次输入新密码"},{validator:function(e,t,n){t!=s.getFieldsValue().newPassword?n("两次输入的新密码必须一致!"):n()}}],children:(0,ce.jsx)(x.Z.Password,{autoComplete:"new-password",style:Nn,size:"middle",placeholder:"请再次输入新密码"})})}),(0,ce.jsx)(b.Z.Item,{children:(0,ce.jsxs)(C.ZP,{size:"middle",type:"primary",htmlType:"submit",block:!0,style:Nn,className:"font16",children:[" ",a," "]})})]})})),zn=n(52017),Tn=n(77019),Pn=n(5269),Ln=zn.Z.TabPane,Rn=function(e){e.dispatch,e.is_main_site;var t=e.is_local,n=e.style,o=void 0===n?{}:n,i=(0,p.useState)(!1),l=u()(i,2),s=(l[0],l[1]),d=(0,p.useState)("1"),f=u()(d,2),m=f[0],g=f[1],h=(0,p.useState)(1),v=u()(h,2),b=v[0],x=v[1],w=(0,p.useState)(),C=u()(w,2),E=C[0],k=C[1];function I(){x(1),s(!1)}function j(e){console.log(e),g(e)}S.Ol,S.o1,N=c()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.Gq)({phone:t.login,code:t.code});case 2:if(0!==(n=e.sent).status){e.next=7;break}return null!=n&&n.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==n?void 0:n.start_date)):localStorage.removeItem("extension-modal"),window.location.reload(),e.abrupt("return","/");case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})));var N,M,Z,O,$={buttonText:"注册并登录",validateName:S.Ol,getCode:S.o1,register:(M=c()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.z2)(a()({},t));case 2:if(0!==(n=e.sent).status){e.next=9;break}return"1"===localStorage.getItem("addinfo")?localStorage.setItem("addinfo","2"):localStorage.setItem("registeruser","1"),localStorage.removeItem("extension-modal"),y.ZP.info("注册并登陆成功"),e.abrupt("return","/");case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e)}))),function(e){return M.apply(this,arguments)})},A={buttonText:"修改密码",validateName:S.Ol,getCode:S.o1,register:(Z=c()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.Ex)(a()({login:E},t));case 2:return n=e.sent,y.ZP.info("修改密码成功"),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)}))),function(e){return Z.apply(this,arguments)})},z={buttonText:"修改并登录",validateName:S.Ol,getCode:S.o1,register:(O=c()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=c()(r()().mark((function e(n){var o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.new_password_confirmation=t.new_password,e.next=3,(0,S.c0)(a()({},t));case 3:if(0!==(o=e.sent).status){e.next=9;break}return null!=o&&o.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==o?void 0:o.start_date)):localStorage.removeItem("extension-modal"),y.ZP.info("修改成功"),n("/"),e.abrupt("return","/");case 9:return n(o),e.abrupt("return",o);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return O.apply(this,arguments)})},T=(0,p.useCallback)((function(){switch(b){case 1:return(0,ce.jsxs)(zn.Z,{defaultActiveKey:m,onChange:j,className:pe,children:[(0,ce.jsx)(Ln,{tab:"账号登录",children:(0,ce.jsx)("div",{className:"mt20",children:"1"===m&&(0,ce.jsx)(ve,{setusername:k,setType:x})})},"1"),(0,ce.jsx)(Ln,{tab:"新用户注册",children:(0,ce.jsx)("div",{className:"mt20",children:(0,ce.jsx)(sn,a()({},$))})},"3")]});case 2:return(0,ce.jsx)(jn,{setType:x,onBack:I});case 3:return(0,ce.jsxs)("div",{className:"ml40 mr40",children:[(0,ce.jsx)("h1",{className:"font18 mb20 mt35",children:"新用户注册"}),(0,ce.jsx)(sn,a()({},$))]});case 4:return(0,ce.jsxs)("div",{className:"ml40 mr40",children:[(0,ce.jsxs)("div",{className:"flex item-center gap-20px",children:[(0,ce.jsx)("h1",{className:"font18 mb20 mt35 current-primary-hover",onClick:function(){x(1)},children:"返回登录"}),(0,ce.jsx)("h1",{className:"font18 mb20 mt35",children:"找回密码"})]}),(0,ce.jsx)(vn,a()({},z))]});case 5:return(0,ce.jsxs)("div",{className:"ml40",children:[(0,ce.jsx)("h1",{className:"font18 mb20 mt35",children:"修改密码"}),(0,ce.jsx)(An,a()({},A))]})}}),[b,m]);return(0,ce.jsx)("div",{className:ue,style:o,children:(0,ce.jsxs)(Tn.Z,{children:[(0,ce.jsx)(Pn.Z,{flex:"1",children:T()}),(0,ce.jsx)(Pn.Z,{flex:"295px",className:de,children:!t&&(0,ce.jsx)(In,{loginType:b,setType:x,onWechatLogin:function(){(0,ye.s2)()||(0,ye.IS)()?(0,ye.Or)():(x(2),s(!0))}})})]})})},Bn="popLogin___R8wQQ",Dn=(0,v.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t,n,o=e.user,r=e.globalSetting,i=(e.loading,e.dispatch),a=null===(t=r.setting)||void 0===t?void 0:t.main_site,l=null===(n=r.setting)||void 0===n?void 0:n.is_local;return(0,ce.jsx)(g.Z,{centered:!0,open:o.showPopLogin,footer:null,width:l?420:765,keyboard:!1,maskClosable:!1,wrapClassName:Bn,closable:o.showClosable,onCancel:function(){i({type:"user/showPopLogin",payload:{showPopLogin:!1,showClosable:!1}})},children:o.showPopLogin&&(0,ce.jsx)(Rn,{is_main_site:a,is_local:l})})})),Hn=n(75914),Wn=n(1560),Fn=n(79723),Kn={modalWrap:"modalWrap___bBTZj",formWrap:"formWrap___aTC2c",staffWrap:"staffWrap___Vt2Lh"},Vn=n.p+"static/touge_code.728ce351.jpg",qn=n.p+"static/touge_code6.e67b4cee.jpg",Xn=n(56007),Gn="tilte___IfiMG",Qn="flexRow___pQP78",_n="flexColumn___xrBZQ",Un="img___GoWZu",Yn="content___pumTK",Jn=(0,v.connect)((function(e){var t=e.paperlibrary,n=e.loading;return{paperlibrary:t,globalSetting:e.globalSetting,loading:n.effects}}))((function(e){var t=e.visible,n=e.occupationValue,o=e.onCancel,r=void 0===o?function(){}:o,i=function(){return(0,ce.jsxs)("div",{className:_n,children:[(0,ce.jsx)("img",{className:Un,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM64NPsll7YCZBYQtQMAmFPayz2ZPcNCFmvpdxrzR56bG+WPGqQc79PoShOEKGLMQ1hbcOstfsSA8j4wpcrIbQbDFTFzfmaeSlY0ZkB14bT5suIFBtGUXMzj6YzTChbQvXMifN+ghemtMw8Z90WT+74gBWbu9Cv0979HJyvyllI6JkKcjRkQ/MJvR1LbamKUlEWUpNyDbt6oJpeJ2GmCdeDQaAp7ayN14B4b1VVVYapo39Wd1KwJywVy/Tnjt3VnlcsHosixEIleZrNa+cCF/3hzGhOq2bFBq2am7NJ3q2l1GZgSDQTMw9U2gqsmty/0pXQTOrmVMQ950xp4xXZjevthPX3RadMl/u1kzmTTpnM/Dy9xsDZ2FwBXWqG7L+aPJukepHQBF6oE6I5Ex7RCfwCpVUVOwx5/jabJ7dSKX+xucvBxoeBw4vRG4djBSl1M1kcFMfRHo5ym/9H3aTLYGNYVBsMDc8YU7fdxGTMXiBhR5bZTYhOe1kAdD5MIv/RgtrH+MY6IgTebqGaQl799DW7G+8LwmdpxOaYOG4RCyfz3DS89+p8Jx8xlvEZF7GcyN8pKgGhjkmTj9QVk2nl5gnjJ3ftsZ1VBxeIU7EAqhFkUWYv+iEydnPgcmd7BTJaOIBJ0LOyKkVZZw2b/mXbrsJzaxgpJOY48va8bg0FkO0gVOQQUli+PS8w1WKN+0oIj6idMKGBjsYNBRMBq8cKHMhlI7ijSAFhZwze06Aq6fBE5+FI/HMJi2z1iGOgoYLrVrhnIdll1VBjihFZjCB39xgCm6yszVAZMeAM7/AFz9hyvTHsvpinecjTcotRd4Yma6QMRxxXqu0DS5eSpommRc/6D8Akff5n10GGheBMxmodc9xMI+yomsx4yDzJAHa6YE1JIEpM6EC2UXRNLyb8PDRGeQzhmMXID9vzAGHuVGBtT7VY6BMQJkARR4d7REOyn7GVcvqGV6eOQv/sR0xce+xNQN/k7k7qEJ3uSlK2lTFRvOIA7DgMJhCytQCGV3EElzfxtZKwHPwsWf6ZioOOJ6GTfcz6Dm8vgz2MRmrJJiGX/G2IDGTrnbWW5od3PGXG9R5dmbtukR+qLBCxIQ17jGwM67JwAg8ypL5lVPOfUTHdc/VWBAvTR8VypwHWhBCxfyIW+eB1z+k6fpDCfieWEDR3j0z/HC5LxsQmQChKMKRMo2Zd6glwgVTyTPIjEgz6QEDdmJ7oJ9N0deMwuonR6hoTIfBUFpwjTqtMYIxIiornBp7rkY8+jZeSLgK8SeCDZxGDsXLs0tiLn0xalw2b3Que5IpvpuQ9QXuZCipPPF4dguud/XeRt2FXAj3IkgLDIdlY+ODMIJ/LfOB4b5rnPhV0LOADVlWsBn99Ix5VOo9/enLrb8H80nuXyh1Jldgek42Me0dJfTxB1qyiRy3bXfb+JxL/JIy9F3utxxSZrok+MWzjPgxjmxTG0ySKcjvKJ1m4UH+6L3oVK4JUehcpELioYOrWcdsUbmfRY9LrQmxEmBr7XztgHV5KKXciyBSSAaoM8ZA0kwc2R3tO4j4m1JWkTqIRopebLZy4G57/De2Q90PxshVt0ILPqGyPD74MBaPlIYmNoY3V6PefoY8+tefIUJhWtShSxoZIval4mz395l4fICbCNS1VOABV/GwRCZIx9HaOhhSJDxEYr7hr5jShCSsf16xiaYcGVyb+juEq2sgFU/5xXgvlfp/BrTV8M0vc+2Ue2nOdVTiLnZYLNZdnKVKkY1pKNC22reD10OKb+Ik5x7hSvFK7s/wNfhQ5uiYP7YCuxfV64Rh06MtI+22JbGYw7x6VGyd5XZztYmDPKl2OZ9KKpWDq+9Lb61/bkcRBUiww/F+vo2s+RYf3aFP3Z9u62pieHzU9q2pzAe7VHiVo4SgD8vH4gwS83z/algRCWdMreIqqJY98Ripm9z6phWpCC+9v1jL3096tr350GbtJ0XjLivSFkcU8LsJ7Xz+e6V/3dMRZFmBD6ixvRw+2vMC1f5oBuZxgxIl9oPq5ewCOVzaSFl0WPGd+gUMwEh/sPK8A+rl250qq3R+LgDUiN2a2Mzwsv8GJP6sjMp5xuna6LSGzXzL8HvQjBpp3n5Up9MjJf+B5WVB7lfjXHfAAAAAElFTkSuQmCC"}),(0,ce.jsx)("span",{className:Yn,children:"未职业认证"})]})},a=function(){return(0,ce.jsxs)("div",{className:_n,children:[(0,ce.jsx)("img",{className:Un,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjPjBP0aCsjr1D01USCQ6oosyiLF8xMGqc2BHauUj1I2Ntghs7dqytuu99/j7nfOee9/73js+jKd53+d5n3Oe5/zO8zznOafX4EO2ta/bhqlJfM4adFJ1hQWyxiIrM5QNG2CY7EnKei5agMf7V5pR9X3QRv0P1pr77WaO3AGLDoKokZYlY2hBtFqLDHLse9ZE2De41hyoNiYte19AzX22nfPdT8NtnJr6UgkIAl/dTLKXwHupeM9gqzmcBpH8rm6JI7ZYm3nhBfyAQHYlFcr4NL6yTn4kEamPxkxkutevx+5Hjcmnh+u7KqB1fXbR+Az2U195UmyWnjH8E1ULvGgsKDlRghTg8MnhPQvrsPVYqxnziqV3BSCBGZuUe21LMUGUKGx6F42K14rZJ6oWeFG19+w3eGnhPLSlQUVOM34pTGfHsR95tCBPozlOFCh5q++YOj7uqyfUxhqDbAYQjxzB8JFuoJ739qRrZ22L5tKcSQx+KbFk1VN2b8Fa5ky8QvojhEVDAh9C1DAH2NYIdFwMNM3TCIsT5wwOnbH45SlgIufDG8arv+RnsQb0SPe/rzdd0lYrAmr+s23PWzznxdXfyRzK1gEPrgU+cbHBa5MWr07KmsHq+RaXLTAYGAe29wFDMyVb6RC62YmxJjKbBj/td5+rJ1LJzeL+ihWUbHkuzpe5GYM9lwsM8MSbwLcGDMZmqc1cWlhrsOsyi20rgTubDb45YDGl0MZNPio1yS1yec2NdsldDq18jEUvzzqjjVj2UMF9i/JRDpFeMc/ihqUWT71p8fU+i3fO0eisRZ4hOjNl8f1/MWxvG3wha/GxedKVntct0SB3tM1hCIAwix0+YZWEVKRhPYF3SRjLxa+tN6hlGX56hHky7RNXyevHAe/OWPxpyCoUuKpem0F9frGBaqGBd5QYOAI1Kw7aBjuFDuWbckQt0DQfYr5srhuGkXdJ5cG4JZP+P+pjWzIn9gR5Vx746ajrLc3Fc7BDWCJM4EZu0xoXkmJ4OLqMl9HYY6Svj3vgrQ00SI9Z5Y+ewJOua/BjBrjj5IEybzjbmkN2YyoMxBJR0OmF5UreSDAmygmoLHqY5/kb3FlfWgWsJygdAu4giOnVlG39KHCcO63/HfXRd/HkgQZbgcquKaAz85GbvrMTBduEApFqUYGKTz2mIH8D4zMGs+Q/swK4Zhkno+w8vbCEpeCLBPmNq4HFDOuP+4G/vBHblN3UIz1LmajnzShD5e8yHO4BcE4HxAnKX/STE0TUPsyJjjUBG5YC937ccE2hz+DEWYs9PNN/N0hjBc0mo2waIz4ey7xxcznq+pGtYf5wc/oW95eqZcjiosRiOYvebWssNrMOLb7IYHSaRXEUGGMBHJ0G/j5icZS16QTDZQjcY/AzsHw54MKoFrAFvBRla2xeFz3fUgugMED1dDUT9YFrgdalBi++Rf6IxaFTrENTCiHcExblLIYP0lpWvFuvZLjPA799+QLzcd8oZCMEUu+HlCCE70DXLAEeuN5g1SLgJ89b/PwYcPoce90yw6hy/RCSWh6fX+Ex87UNwKkJ4DfMLdcI1EVPwH0bUciGWRdW6ztZR+IBjlzCg/NHvBk1EvZ9h4BH+lmV6bQwXkUyp4RNeMQpckwdD6fbrgJ2f5IX7bME1cMebfVqLcJwZHK8kMfb0m098qJ6pDiHS7j3U8Dliw26/0Yw9EyBVVw6GjOHbtjUaFGrpbp646n4OoZ8+zrgbl5+jzPPup4AnmeIHSDaZrr4UhLzZrZwMioU8GSpcGkSDeJS4wlX8zTvbAaO0NCv/0Exz6zk+C0twE8/b3B7qyE4r6t+VgB8dYNBF8G8+jaw6zHgRR4nwa5bcGoBNh/11GQKOJjPubXRueU+l/0tTMT5LP8PHy1gbJKAKSuGnEw/i+QwQ3F3h/4VsfjZEYMMd9fOjcAdGw3+yR131x+BV1ggK1rZdCYXZfC4s738u/Zp5tG1aYV6LvNXtwDLmcg3/4ITaytzkEC5pjAxqdfw5P/hTbwLXcLb1iGL+XUG2wmoj7Xqrj8Ag6fD8PIrb3Lf89r7zNC3zXX0Clse+1gxCSis30+5gMnc1GDwylvAmQkaUxgJItyZg68Ghgx2/p4Xtpt5B7qGt0CiPnqSYA4wd04HmzEoT/w7rI6U69onIasDz6X7zAEeC71lhx0nj5iw2rITU8AMjwuf6J6K97nk6ctDwM79zBN65a/HPX+ctcrbFE3yRED7ShRRLrRXGIRFGF3L7rHtVHou6QHxlzKpx3gBm2AVDttcVI1QijIn4KuZ9WqaJ//QmDdOGKVJXM2iRJStOFfGbBr+nr/CFgFpQOOd+b08M3cVk0S9CYvvB6iyvwRK9uNzxFMncCHqHnow0xV/+pCFj7aN0W7DrRfqhLs5qlZc8AZJ26pXcn1iC/twSq5weuqvvxrH77j+mELUoznD/KJlHpKgqcsumjlve2mqJeWg0nIrtKSpVqHhxcU3wZTGvFRXa9pO7C3/77WqaYE6P23380rRGaaQzcqQVOZQce73YLhLe+rmmq1pMFJxuyytq4Ht15nP8ljpdpX7QiFRyU+EIIQiUJUJ8aKOp51MIereRNvVwAhHVQ8lAWZv588xBf0cY6v8HJMcSXCxQVG14F1ReqWXpeWe4Yf+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC"}),(0,ce.jsx)("span",{className:Yn,children:"未实名认证"})]})};return(0,ce.jsxs)(g.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:t,title:"因为以下原因,您暂时不能进行操作",okText:"立即认证",cancelText:"取消",width:"600px",onOk:function(){r(),v.history.push("/account/certification")},onCancel:function(){r()},children:[(0,ce.jsx)("div",{className:Gn,children:"请在完成条件后重试"}),(0,ce.jsx)("div",{className:Qn,children:3===n?(0,ce.jsxs)(ce.Fragment,{children:[a(),i()]}):2===n?i():a()})]})})),eo=n(14809),to={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},no=n(7657),oo=function(e,t){return p.createElement(no.Z,(0,eo.Z)({},e,{ref:t,icon:to}))};var ro=p.forwardRef(oo),io="bottom___z0ujX",ao="yes___hodnN",lo=n(32637),co=(0,v.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t=e.classroomList,n=e.dispatch;e.user;return(0,ce.jsxs)(g.Z,{open:"到期提示"===t.actionTabs.key,width:464,centered:!0,title:(0,ce.jsxs)("span",{children:[(0,ce.jsx)(ro,{style:{color:"#faad14",fontSize:"18px"}})," 提示"]}),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{key:""}})},footer:null,children:[(0,ce.jsxs)("div",{style:{textAlign:"center",marginBottom:30},children:[(0,ce.jsxs)("div",{style:{marginBottom:20,textAlign:"left"},children:["该教学课堂的试用已到期,目前无法支持",(0,ce.jsx)("span",{style:{color:"#FF9D18"},children:"超过50"}),"人的教学活动。如有任何疑问,请随时联系我们。感谢您的理解与支持!"]}),(0,ce.jsx)("img",{style:{width:130,height:130},src:lo})]}),(0,ce.jsx)("div",{className:io,children:(0,ce.jsx)(C.ZP,{className:ao,onClick:function(){n({type:"classroomList/setActionTabs",payload:{key:""}})},children:"我知道了"})})]})})),so=function(e){return e[e.Professor=1]="Professor",e[e.AssistantProfessor=2]="AssistantProfessor",e[e.Student=3]="Student",e}(so||{}),uo=(0,v.connect)((function(e){return{user:e.user,account:e.account}}))((function(e){var t=e.visible,n=e.user,o=(e.account,e.onCancel),i=void 0===o?function(){}:o,a=e.dispatch,l=(0,p.useState)(),s=u()(l,2),d=s[0],f=s[1],m=(0,p.useState)([]),h=u()(m,2),v=h[0],b=h[1],C=(0,p.useState)(!1),S=u()(C,2),E=S[0],k=S[1],I=(0,p.useState)(!1),j=u()(I,2),N=j[0],M=j[1],Z=(0,p.useState)(),O=u()(Z,2),$=O[0],A=O[1],z=(0,p.useState)(!1),T=u()(z,2);T[0],T[1];(0,p.useEffect)((function(){var e,t;null!=n&&null!==(e=n.userInfo)&&void 0!==e&&e.identity&&b(["student"===(null==n||null===(t=n.userInfo)||void 0===t?void 0:t.identity)?3:1])}),[n]);var P=function(e){var t=function(){window.location.href=(null==e?void 0:e.jump_url)||"/classrooms/".concat(null==e?void 0:e.course_id)};v.includes(so.Professor)?g.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,ce.jsx)("div",{className:"tc",children:(null==e?void 0:e.message)||"申请已提交,请等待审核"}),onOk:function(){t()}}):t()},L=function(){var e=c()(r()().mark((function e(){var t,n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=3;break}return y.ZP.info("邀请码不能为空"),e.abrupt("return");case 3:return e.next=5,(0,Fn.ZP)("/api/courses/get_pro_info.json",{method:"get",params:{invite_code:d}});case 5:if(null==(t=e.sent)||!t.need_pro_auth||v.includes(1)||v.includes(2)){e.next=10;break}return a({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth",code:d,checkedList:v}}),R(),e.abrupt("return");case 10:return k(!0),e.next=13,(0,Xn.cR)({invite_code:d,professor:v.includes(so.Professor)?1:null,assistant_professor:v.includes(so.AssistantProfessor)?1:null,student:v.includes(so.Student)?1:null});case 13:if(n=e.sent,k(!1),-4===(null==n?void 0:n.status)&&(i(),a({type:"classroomList/setActionTabs",payload:{key:"到期提示"}})),-12===(null==n?void 0:n.status)&&y.ZP.warning(null==n?void 0:n.message),-2!==(null==n?void 0:n.status)){e.next=31;break}if(R(),"该课堂要求成员完成实名认证"!==n.message){e.next=23;break}return M(!0),A(1),e.abrupt("return");case 23:if("该课堂要求成员完成职业认证"!==n.message){e.next=27;break}return M(!0),A(2),e.abrupt("return");case 27:if("该课堂要求成员完成实名和职业认证"!==n.message){e.next=31;break}return M(!0),A(3),e.abrupt("return");case 31:if(0!==(null==n?void 0:n.status)){e.next=36;break}return(0,ye.L9)(["教学课堂","首页","加入课堂"]),R(),null!=n&&n.course_id?P(n):y.ZP.success(n.message),e.abrupt("return");case 36:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=c()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(g.Z,{centered:!0,keyboard:!1,closable:!1,title:"加入课堂",open:t,confirmLoading:E,onOk:L,onCancel:R,children:(0,ce.jsxs)("div",{className:"tc",children:[(0,ce.jsxs)("div",{children:[(0,ce.jsx)("span",{children:"课堂邀请码:"}),(0,ce.jsx)(x.Z,{placeholder:"请输入5位课堂邀请码或6位分班邀请码",style:{width:270},value:d,onChange:function(e){e.target.value.length>=7?y.ZP.info("请输入5位课堂邀请码或6位分班邀请码!"):f(e.target.value)}})]}),(0,ce.jsxs)("div",{className:"mt10 font14",children:[(0,ce.jsx)("span",{children:"身份:"}),(0,ce.jsxs)(w.Z.Group,{value:v,onChange:function(e){return b(e)},children:[(0,ce.jsx)(w.Z,{value:so.Professor,disabled:v.includes(2),children:"教师"}),(0,ce.jsx)(w.Z,{value:so.AssistantProfessor,disabled:v.includes(1),children:"助教"}),(0,ce.jsx)(w.Z,{value:so.Student,children:"学生/参赛者"})]})]})]})}),(0,ce.jsx)(co,{}),(0,ce.jsx)(Jn,{visible:N,onCancel:function(){return M(!1)},occupationValue:$})]})})),fo=(0,v.connect)((function(e){var t=e.user,n=e.account,o=e.loading;return{user:t,account:n,globalSetting:e.globalSetting,loading:o.models.index}}))((function(e){var t=e.user,n=e.account,o=e.globalSetting,i=(e.loading,e.dispatch),l=b.Z.useForm(),s=u()(l,1)[0],d=Hn.default.Option,f=(0,p.useState)({}),m=u()(f,2),h=m[0],w=m[1],C=(0,p.useState)(""),S=u()(C,2),E=S[0],k=S[1],I=(0,p.useState)(!0),j=u()(I,2),N=j[0],M=j[1],Z=(0,p.useState)([]),O=u()(Z,2),$=O[0],A=O[1],z=(0,p.useState)(!1),T=u()(z,2),P=T[0],L=T[1],R=(0,p.useState)(!1),B=u()(R,2),D=B[0],H=B[1],W=b.Z.useForm(),F=u()(W,1)[0],K=(0,p.useState)(!1),V=u()(K,2),q=V[0],X=V[1],G=(0,p.useState)(!1),Q=u()(G,2),_=Q[0],U=Q[1],Y=(0,p.useRef)((0,un.throttle)((function(e){return te(e)}),1200,{leading:!0,trailing:!0})).current,J=function(){var e={identity:"",name:"",school_id:"",staff_id:"",student_id:"",technical_title:""};s.setFieldsValue(a()({},e)),w(a()({},e))};(0,p.useEffect)((function(){N||!h.school||$.find((function(e){return e.name===h.school}))?k(""):k("error")}),[N,h.school,$]);var ee,te=function(){var e=c()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return M(!0),e.next=3,i({type:"account/getSchoolOption",payload:{keyword:t,limit:99999,display_aliases:!0}});case 3:n=e.sent,A(null==n?void 0:n.schools),M(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ne=function(e){var t,n,r,i;return"number"===e?"teacher"===h.identity?"".concat(null==o||null===(t=o.setting)||void 0===t?void 0:t.homepage_tea_qq_number):"".concat(null==o||null===(n=o.setting)||void 0===n?void 0:n.homepage_stu_qq_number):"code"===e?"teacher"===h.identity?"".concat(Sn.Z.IMG_SERVER,"/").concat(null==o||null===(r=o.setting)||void 0===r?void 0:r.homepage_tea_qq_qrcode_url):"".concat(Sn.Z.IMG_SERVER,"/").concat(null==o||null===(i=o.setting)||void 0===i?void 0:i.homepage_stu_qq_qrcode_url):void 0},oe=function(){var e=c()(r()().mark((function e(o){var a,l,c,s,u,d,f,p,m,h,v,b;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(L(!0),c=o.name,s=o.identity,u=o.studentNo,d=o.jobTitle,f=o.manager,p=o.staff_id,m=o.school,h=null===(a=$.find((function(e){return e.name===m})))||void 0===a?void 0:a.id){e.next=6;break}return g.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,ce.jsxs)("div",{style:{textAlign:"center"},children:[(0,ce.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入头歌官方交流QQ群:",ne("number"),",联系群内的运营进行咨询和申请新增学校名称。"]}),(0,ce.jsx)("img",{src:ne("code"),style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"}),e.abrupt("return");case 6:return e.next=8,i({type:"account/updateAccount",payload:{id:null==t||null===(l=t.userInfo)||void 0===l?void 0:l.user_id,identity:s,name:c,school_id:h,staff_id:p,student_id:"student"===s?u:null,technical_title:d||f}});case 8:if(-1!==(null==(v=e.sent)?void 0:v.status)){e.next=11;break}return e.abrupt("return");case 11:v&&(y.ZP.info("保存成功"),null!==(b=n.basicInfo)&&void 0!==b&&b.base_info_completed||i({type:"user/getUserInfo"})),L(!1),J(),v&&(t.isCurrentPage?t.backurl?location.reload():U(!0):t.backurl&&(0,ye.xg)(t.backurl)),i({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!1,showClosable:!1,backurl:"",isCurrentPage:!1}});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(g.Z,{centered:!0,open:t.showUpdateProfilePanel,title:"完善个人资料",width:800,keyboard:!1,maskClosable:!1,wrapClassName:Kn.modalWrap,closable:t.showClosable,onCancel:function(){J(),t.backurl&&t.isCurrentPage&&v.history.replace(t.backurl),i({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!1,showClosable:!1,backurl:"",isCurrentPage:!1}})},onOk:c()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return X(!0),e.next=3,s.submit();case 3:case"end":return e.stop()}}),e)}))),okButtonProps:{loading:P},children:(0,ce.jsxs)("div",{children:[(0,ce.jsx)("div",{className:"mb30",children:"您还未完善个人资料,完善后即可使用此功能。"}),(0,ce.jsxs)(b.Z,{form:s,className:Kn.formWrap,layout:"horizontal",onValuesChange:function(e){w(a()({},s.getFieldsValue()))},onFinish:oe,scrollToFirstError:!0,size:"large",labelAlign:"right",children:[(0,ce.jsx)(b.Z.Item,{label:"姓名",name:"name",rules:[{required:!0,message:"请输入真实姓名,最大限制".concat(20,"个字符")},{validator:ye.HJ}],children:(0,ce.jsx)(x.Z,{placeholder:"请输入真实姓名,最大限制".concat(20,"个字符"),maxLength:20,showCount:!0})}),(0,ce.jsxs)(Tn.Z,{gutter:[10,0],children:[(0,ce.jsx)(Pn.Z,{children:(0,ce.jsx)(b.Z.Item,{label:"职业",name:"identity",rules:[{required:!0,message:"请先选择职业"}],children:(0,ce.jsxs)(Hn.default,{style:{width:120},placeholder:"请选择职业",children:[(0,ce.jsx)(d,{value:"teacher",children:"教师"}),(0,ce.jsx)(d,{value:"student",children:"学生"}),(0,ce.jsx)(d,{value:"professional",children:"专业人士"})]})})}),"student"===h.identity&&(0,ce.jsx)(Pn.Z,{flex:1,children:(0,ce.jsx)(b.Z.Item,{name:"studentNo",validateTrigger:"onBlur",dependencies:["school"],rules:[{whitespace:!0,message:"不能全为空"},{required:!0,message:"请输入学号"},{validator:(ee=c()(r()().mark((function e(n,o){var i,a,l,c;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Fn.ZP)("/api/users/accounts/".concat(null==t||null===(i=t.userInfo)||void 0===i?void 0:i.user_id,"/valid_student_id"),{method:"get",params:{school_id:(null==$||null===(a=$.find((function(e){return e.name===h.school})))||void 0===a?void 0:a.id)||(null==t||null===(l=t.userInfo)||void 0===l?void 0:l.school_id),student_id:o}});case 2:return(null==(c=e.sent)?void 0:c.status)<-1&&q&&(H(!0),X(!1)),e.abrupt("return",(null==c?void 0:c.status)<-1?Promise.reject((0,ce.jsxs)("span",{children:["该学号已被使用,如需继续使用该学号,请先",(0,ce.jsx)("a",{onClick:function(){H(!0)},children:"解绑学号"})]})):Promise.resolve());case 5:case"end":return e.stop()}}),e)}))),function(e,t){return ee.apply(this,arguments)})}],children:(0,ce.jsx)(x.Z,{size:"large",type:"text",placeholder:"请输入学号",showCount:!0,maxLength:20})})}),"teacher"===h.identity&&(0,ce.jsx)(Pn.Z,{children:(0,ce.jsx)(b.Z.Item,{initialValue:h.jobTitle,name:"jobTitle",rules:[{required:!0,message:"请先选择职称"}],children:(0,ce.jsxs)(Hn.default,{style:{width:120},size:"large",placeholder:"请选择职称",children:[(0,ce.jsx)(d,{value:"教授",children:"教授"}),(0,ce.jsx)(d,{value:"研究员",children:"研究员"}),(0,ce.jsx)(d,{value:"副教授",children:"副教授"}),(0,ce.jsx)(d,{value:"副研究员",children:"副研究员"}),(0,ce.jsx)(d,{value:"讲师",children:"讲师"}),(0,ce.jsx)(d,{value:"助理研究员",children:"助理研究员"}),(0,ce.jsx)(d,{value:"助理教授",children:"助理教授"})]})})}),"professional"===h.identity&&(0,ce.jsx)(Pn.Z,{children:(0,ce.jsx)(b.Z.Item,{initialValue:h.manager,name:"manager",rules:[{required:!0,message:"请先选择职称"}],children:(0,ce.jsxs)(Hn.default,{style:{width:180},size:"large",placeholder:"请选择职称",children:[(0,ce.jsx)(d,{value:"企业管理者",children:"企业管理者"}),(0,ce.jsx)(d,{value:"部门管理者",children:"部门管理者"}),(0,ce.jsx)(d,{value:"高级工程师",children:"高级工程师"}),(0,ce.jsx)(d,{value:"工程师",children:"工程师"}),(0,ce.jsx)(d,{value:"助理工程师",children:"助理工程师"})]})})}),("teacher"===h.identity||"professional"===h.identity)&&(0,ce.jsx)(Pn.Z,{flex:1,className:Kn.staffWrap,children:(0,ce.jsx)(b.Z.Item,{label:"工号",name:"staff_id",rules:[{validator:function(e,t){if(null===t||""===t||void 0===t)return Promise.resolve();return/[\u4E00-\u9FA5]/g.test(t)?Promise.reject("请勿输入中文字符"):t.length>20?Promise.reject("最大限制20个字符"):Promise.resolve()}}],children:(0,ce.jsx)(x.Z,{placeholder:"请输入工号",className:Kn.staffidInput,suffix:" ",showCount:!0,maxLength:20})})})]}),(0,ce.jsx)(b.Z.Item,{label:"学校/单位",name:"school",extra:!N&&h.school&&!(null!=$&&$.find((function(e){return e.name===h.school})))&&(0,ce.jsx)("div",{className:Kn.schoolHintWrap,children:(0,ce.jsxs)("span",{className:Kn.colorCDCDCD,children:["未找到包含“",h.school,"”的高校,如有需要,请",(0,ce.jsx)("span",{style:{color:"blue",cursor:"pointer"},onClick:function(){g.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,ce.jsxs)("div",{style:{textAlign:"center"},children:[(0,ce.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入头歌官方交流QQ群:","teacher"===h.identity?"727685969":"816055138",",联系群内的运营进行咨询和申请新增学校名称。"]}),(0,ce.jsx)("img",{src:"teacher"===h.identity?Vn:qn,style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"})},children:"联系平台运营"}),"申请新增"]})}),rules:[{required:!0,message:"请先选择学校/单位"},{whitespace:!0,message:"请先选择学校/单位"}],children:(0,ce.jsx)(Wn.Z,{status:E,size:"large",showSearch:!0,onChange:Y,placeholder:"请输入单位名称",suffixIcon:(0,ce.jsx)("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:(0,ce.jsx)("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"})}),children:$.map((function(e,t){return(0,ce.jsx)(d,{value:e.name,children:e.name},t)}))})})]})]})}),(0,ce.jsx)(g.Z,{title:"解绑学号",open:D,centered:!0,destroyOnClose:!0,onCancel:function(){H(!1),F.resetFields()},onOk:function(){F.submit()},children:(0,ce.jsxs)(b.Z,{form:F,size:"large",onFinish:function(){var e=c()(r()().mark((function e(n){var o,i,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Fn.ZP)("/api/users/accounts/".concat(null==t||null===(o=t.userInfo)||void 0===o?void 0:o.user_id,"/unbind_student_id.json"),{method:"post",body:a()({student_id:h.studentNo||s.getFieldValue("studentNo"),school_id:(null==$||null===(i=$.find((function(e){return e.name===h.school})))||void 0===i?void 0:i.id)||(null==t||null===(l=t.userInfo)||void 0===l?void 0:l.school_id),check_type:4},n)});case 2:0==e.sent.status&&(y.ZP.success("解绑成功"),s.validateFields(),F.resetFields(),H(!1));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,ce.jsxs)("div",{className:"mb20",children:["很抱歉,该学号(",h.studentNo||s.getFieldValue("studentNo"),")在",h.school,"内已被使用,您可以提供",(0,ce.jsx)("span",{style:{color:"#3061d0"},children:"当前账号所在学校中任意一位已职业认证的教师姓名"}),"进行解绑:"]}),(0,ce.jsx)(b.Z.Item,{name:"check_value",rules:[{required:!0,message:"请填写".concat(null==h?void 0:h.school,"中任意一位已职业认证的教师姓名")}],style:{marginBottom:"10px"},children:(0,ce.jsx)(x.Z,{type:"text",placeholder:"请填写".concat(null==h?void 0:h.school,"中任意一位已职业认证的教师姓名")})}),(0,ce.jsxs)("div",{children:["请注意,每位学生每天仅有 ",(0,ce.jsx)("span",{style:{color:"#FA6400"},children:"2"})," 次成功解绑学号的机会,请谨慎操作"]})]})}),(0,ce.jsx)(uo,{visible:_,onCancel:function(){return U(!1)}})]})})),po="popLogin___u08I8",mo="tips___U2xQw",go=/^1\d{10}$/,ho=/^[a-zA-Z0-9]+([.\-_\\]*[a-zA-Z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/,vo=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,bo=(0,v.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.user,n=(e.globalSetting,e.dispatch),o=(0,v.useSearchParams)(),i=u()(o,1)[0],a={height:48,borderRadius:4},l=b.Z.useForm(),s=u()(l,1)[0],d=(0,p.useState)(60),f=u()(d,2),m=f[0],h=f[1],w=(0,p.useMemo)((function(){return m<60&&m>0}),[m]),E=(0,p.useRef)(),k=function(){var e=c()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:clearInterval(E.current),h(60),E.current=setInterval(function e(){return h((function(e){return e-1})),e}(),1e3);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=(0,p.useState)(!1),j=u()(I,2),N=j[0],M=j[1],Z=(0,p.useState)(!1),O=u()(Z,2),$=O[0],A=O[1];(0,p.useEffect)((function(){t.bindAccountModalVisible?A(!0):A(!1)}),[t]);var z=function(){var e=c()(r()().mark((function e(){var o,i,a,l,c,u,d,f;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=s.getFieldValue("userInput"),i=go.test(o),a=ho.test(o),i||a){e.next=6;break}return y.ZP.error("请输入有效的手机号/邮箱号"),e.abrupt("return");case 6:if(M(!0),!i){e.next=20;break}return e.next=10,(0,Fn.ZP)("/api/users/accounts/".concat(null===(l=t.userInfoForBindAccountModal)||void 0===l?void 0:l.login,"/valid_phone.json"),{method:"get",params:{phone:o}});case 10:if(-1!==(null==(c=e.sent)?void 0:c.status)){e.next=14;break}return M(!1),e.abrupt("return");case 14:if(null==c||!c.is_exists){e.next=18;break}return y.ZP.info("该手机号已被其它账号绑定"),M(!1),e.abrupt("return");case 18:e.next=27;break;case 20:return e.next=22,(0,Fn.ZP)("/api/accounts/valid_email_and_phone",{method:"get",params:{login:o,type:1}});case 22:if(-3!==(null==(u=e.sent)?void 0:u.status)){e.next=27;break}return y.ZP.info("该邮箱已被注册"),M(!1),e.abrupt("return");case 27:return d=(0,ye.M)(o),e.next=30,n({type:"account/getCode",payload:{login:o,type:i?3:4,smscode:d}});case 30:f=e.sent,M(!1),1===f.status&&(y.ZP.info("验证码已发送,请注意查收"),k());case 33:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),T=function(){var e=c()(r()().mark((function e(){var o,i,a,l,c,u,d,f;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.validateFields();case 2:if(o=s.getFieldValue("userInput"),i=s.getFieldValue("code"),a=go.test(o),l=ho.test(o),a||l){e.next=9;break}return y.ZP.error("请输入有效的手机号/邮箱号"),e.abrupt("return");case 9:if(!a){e.next=16;break}return e.next=12,n({type:"account/bindPhone",payload:{login:null===(c=t.userInfoForBindAccountModal)||void 0===c?void 0:c.login,phone:o,code:i}});case 12:return u=e.sent,e.abrupt("return",0===u.status);case 16:return e.next=18,n({type:"account/bindEmail",payload:{login:null===(d=t.userInfoForBindAccountModal)||void 0===d?void 0:d.login,email:o,code:i}});case 18:return f=e.sent,e.abrupt("return",0===f.status);case 20:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),P=function(){var e=c()(r()().mark((function e(){var o,a,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.loginInfo,vo.test(o.password)||y.ZP.error("系统检测您的密码强度过低,请及时修改"),e.next=4,(0,S.Es)(o);case 4:if(!(a=e.sent).status){e.next=8;break}return y.ZP.error(null==a?void 0:a.message),e.abrupt("return");case 8:null!=a&&a.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==a?void 0:a.start_date)):localStorage.removeItem("extension-modal"),"/user/login"===location.pathname||"/login"===location.pathname?(l=i.get("from")||i.get("back_url"))?window.location.href=decodeURIComponent(l):(vo.test(o.password)||y.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/"):(vo.test(o.password)||(y.ZP.info("系统检测您的密码强度过低,请及时修改"),n({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!1}})),window.location.reload()),s.resetFields();case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),L=function(){var e=c()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T();case 2:if(!e.sent){e.next=6;break}return e.next=6,P();case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,ce.jsxs)(g.Z,{centered:!0,open:$,footer:null,width:596,keyboard:!1,maskClosable:!0,wrapClassName:po,closable:!0,onCancel:function(){n({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!1}}),s.resetFields()},children:[(0,ce.jsx)("h1",{className:"font18 mb20",children:"手机号/邮箱绑定"}),(0,ce.jsxs)(b.Z,{layout:"vertical",form:s,autoComplete:"off",preserve:!1,children:[(0,ce.jsx)(b.Z.Item,{name:"userInput",rules:[{required:!0,message:"请输入正确的手机号/邮箱"},{validator:function(e,t){return t?t.indexOf(" ")>-1?Promise.reject("请输入正确的手机号或邮箱"):go.test(t)||ho.test(t)?Promise.resolve():Promise.reject("请输入正确的手机号或邮箱"):Promise.resolve()}}],children:(0,ce.jsx)(x.Z,{style:a,size:"middle",placeholder:"请输入有效的手机号/邮箱号"})}),(0,ce.jsx)(b.Z.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}],children:(0,ce.jsx)(x.Z,{suffix:(0,ce.jsx)(C.ZP,{loading:N,type:"link",onClick:z,disabled:w,children:w?"".concat(m,"秒可重新获取"):"获取验证码"}),style:{paddingRight:2,height:48},placeholder:"请输入验证码",size:"middle"})})]}),(0,ce.jsx)("div",{className:mo,children:"为了账号安全性,绑定后可通过该手机号或邮箱找回密码"}),(0,ce.jsx)(C.ZP,{size:"middle",type:"primary",block:!0,style:a,className:"font16",onClick:L,children:"绑定并登录"}),(0,ce.jsxs)("div",{className:mo,children:["登录即代表您已阅读并同意",(0,ce.jsx)("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank",children:"《服务协议条款》"})]})]})})),yo=n(41622),xo=n(61186),wo=n.n(xo),Co=n(91232),So=n.n(Co),Eo=n(95190),ko=n(2738),Io=n(6989),jo=n(11592),No=n(24303);var Mo=n(48923),Zo=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rp.forwardRef(((o,r)=>p.createElement(e,Object.assign({ref:r,suffixCls:t,tagName:n},o))))}const $o=p.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:o,className:r,tagName:i}=e,a=Zo(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=p.useContext(P.E_),c=l("layout",n),[s,u,d]=(0,Mo.ZP)(c),f=o?`${c}-${o}`:c;return s(p.createElement(i,Object.assign({className:O()(n||f,r,u,d),ref:t},a)))})),Ao=p.forwardRef(((e,t)=>{const{direction:n}=p.useContext(P.E_),[o,r]=p.useState([]),{prefixCls:i,className:a,rootClassName:l,children:c,hasSider:s,tagName:u,style:d}=e,f=Zo(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),m=(0,ko.Z)(f,["suffixCls"]),{getPrefixCls:g,className:h,style:v}=(0,P.dj)("layout"),b=g("layout",i),y=function(e,t,n){return"boolean"==typeof n?n:!!e.length||(0,jo.Z)(t).some((e=>e.type===No.Z))}(o,c,s),[x,w,C]=(0,Mo.ZP)(b),S=O()(b,{[`${b}-has-sider`]:y,[`${b}-rtl`]:"rtl"===n},h,a,l,w,C),E=p.useMemo((()=>({siderHook:{addSider:e=>{r((t=>[].concat((0,Eo.Z)(t),[e])))},removeSider:e=>{r((t=>t.filter((t=>t!==e))))}}})),[]);return x(p.createElement(Io.V.Provider,{value:E},p.createElement(u,Object.assign({ref:t,className:S,style:Object.assign(Object.assign({},v),d)},m),c)))})),zo=Oo({tagName:"div",displayName:"Layout"})(Ao),To=Oo({suffixCls:"header",tagName:"header",displayName:"Header"})($o),Po=Oo({suffixCls:"footer",tagName:"footer",displayName:"Footer"})($o),Lo=Oo({suffixCls:"content",tagName:"main",displayName:"Content"})($o);const Ro=zo;Ro.Header=To,Ro.Footer=Po,Ro.Content=Lo,Ro.Sider=No.Z,Ro._InternalSiderContext=No.D;var Bo=Ro,Do="header___Wn4fJ",Ho="logo___QnotM",Wo="menu___twLGR",Fo="dropDown___Cwaoa",Ko="line___D1auu",Vo="subName___gql7K",qo="name___dR5V2",Xo="actived___ohMks",Go="edu-menu___iWLK0",Qo="newslight___lSZjL",_o="header-iearning___LZfyg",Uo="headerFixed___QLwBd",Yo=n(93041),Jo=n(22173),er=n(47889),tr=function(e){return e.Manager="manager",e.Developer="developer",e.Reporter="reporter",e}(tr||{}),nr=function(e){var t=e.visible,n=e.onCancel,o=void 0===n?function(){}:n,i=(0,p.useState)(),a=u()(i,2),l=a[0],s=a[1],d=(0,p.useState)(),f=u()(d,2),m=f[0],h=f[1],b=(0,p.useState)(!1),w=u()(b,2),C=w[0],S=w[1],E=function(){var e=c()(r()().mark((function e(){var t,n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=3;break}return y.ZP.info("请输入开发项目邀请码!"),e.abrupt("return");case 3:if(6===l.length){e.next=6;break}return y.ZP.info("请输入6位项目邀请码!"),e.abrupt("return");case 6:if(m){e.next=9;break}return y.ZP.info("请选择一个身份!"),e.abrupt("return");case 9:return S(!0),e.next=12,(0,Xn.vm)({code:l,role:m});case 12:if(t=e.sent,S(!1),k(),!(n={1:"您输入的邀请码错误",2:"您已经是该项目成员",3:"请选择一个角色",4:"您的申请已提交,请等待项目管理员审批",5:"您已经申请加入该项目了,请耐心等待",6:"您已成功加入项目"})[t.status]){e.next=19;break}return y.ZP.info(n[t.status]),e.abrupt("return");case 19:if(0!==t.status){e.next=22;break}return"reporter"===m?(y.ZP.success("您加入项目成功!"),(0,ye.L9)(["开发项目","加入项目成功"]),v.history.push("/projects/".concat(null==t?void 0:t.project_id))):((0,ye.L9)(["开发项目","加入项目等待审批"]),y.ZP.success("您的申请已提交,请等待项目管理员审批!")),e.abrupt("return");case 22:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=function(){var e=c()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,ce.jsx)(ce.Fragment,{children:(0,ce.jsx)(g.Z,{centered:!0,keyboard:!1,closable:!1,title:"加入项目",open:t,confirmLoading:C,onOk:E,onCancel:k,children:(0,ce.jsxs)("div",{className:"tc",children:[(0,ce.jsxs)("div",{children:[(0,ce.jsx)("span",{children:"项目邀请码:"}),(0,ce.jsx)(x.Z,{placeholder:"请输入6位开发项目邀请码",style:{width:270},value:l,onChange:function(e){e.target.value.length>=7?y.ZP.info("请输入6位开发项目邀请码!"):s(e.target.value)}})]}),(0,ce.jsxs)("div",{className:"mt10 font14",children:[(0,ce.jsx)("span",{children:"身份:"}),(0,ce.jsxs)(er.ZP.Group,{value:m,onChange:function(e){return h(e.target.value)},children:[(0,ce.jsx)(er.ZP,{value:tr.Manager,children:"管理人员"}),(0,ce.jsx)(er.ZP,{value:tr.Developer,children:"开发人员"}),(0,ce.jsx)(er.ZP,{value:tr.Reporter,children:"报告人员"})]})]})]})})})},or="rightMenu___ADTOX",rr="joinMenu___aRGsf",ir="joinBoard___AeUvr",ar="joinCol___fV4uL",lr=n(71283),cr=n(13071),sr=(0,v.connect)((function(e){return{user:e.user,globalSetting:e.globalSetting,loading:e.loading}}))((function(e){e.globalSetting;var t=e.dispatch,n=e.user,o=e.open,i=e.onCancel,a=void 0===i?function(){}:i,l=(0,p.useState)([]),s=u()(l,2),d=s[0],f=s[1],m=(0,p.useState)([]),h=u()(m,2),v=h[0],w=h[1],C=(0,p.useState)([]),S=u()(C,2),E=S[0],k=S[1],I=b.Z.useForm(),j=u()(I,1)[0],N=(0,p.useState)(!1),M=u()(N,2),Z=M[0],O=M[1],$=(0,p.useState)(!1),A=u()($,2),z=A[0],T=A[1],P=(0,p.useRef)(null),L=(0,p.useRef)(1),R=(0,p.useState)({keyword:"",source:"",status:"",page:1,limit:20}),B=u()(R,2),D=B[0];B[1];(0,p.useEffect)((function(){o&&H()}),[o]);var H=function(){var e=c()(r()().mark((function e(){var o,i,a,l,c,s,u,d,f,p,m,g;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W(D);case 2:if(i=e.sent,(0,lr.o1)(t)){e.next=5;break}return e.abrupt("return");case 5:return a=n.userInfo||{},l=a.user_school_id,c=void 0===l?"":l,s=a.department_id,u=void 0===s?"":s,d=a.school_name,f=void 0===d?"":d,p=a.department_name,m=void 0===p?"":p,g=null==i||null===(o=i.graduation_years)||void 0===o?void 0:o.at(-1),w([{id:c,name:f}]),e.next=10,F(c);case 10:j.setFieldsValue({year:g,school_id:c,department_id:Number(u),name:"".concat(g).concat(f).concat(m,"毕业设计")});case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),W=function(){var e=c()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,cr.J3)(t);case 2:return 0===(n=e.sent).status&&f((null==n?void 0:n.graduation_years)||[]),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),F=function(){var e=c()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,cr.Ps)({page:1,limit:9999,id:t});case 4:0===(n=e.sent).status&&k((null==n?void 0:n.departments)||[]);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,ce.jsx)(g.Z,{centered:!0,keyboard:!1,destroyOnClose:!0,open:o,title:"开启新一届毕业设计",width:578,confirmLoading:Z,onCancel:a,onOk:function(){return j.submit()},children:(0,ce.jsxs)(b.Z,{colon:!1,form:j,initialValues:{},labelCol:{span:7},size:"large",wrapperCol:{span:17},onValuesChange:function(e,t){e.school_id&&(F(t.school_id),j.setFieldValue("department_id",null))},onFinish:function(){var e=c()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O(!0),e.next=3,(0,cr.Wz)(t);case 3:0===(n=e.sent).status&&(y.ZP.success("创建成功"),j.resetFields(),a(),(0,ye.xg)("/graduations/".concat(null==n?void 0:n.identifier,"/index"))),O(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,ce.jsx)(b.Z.Item,{name:"year",label:"选择届别",rules:[{required:!0,message:"请选择届别"}],children:(0,ce.jsx)(Hn.default,{style:{width:344},size:"large",options:d.map((function(e){return{value:e,label:e}}))})}),(0,ce.jsx)(b.Z.Item,{name:"school_id",label:"学校",rules:[{required:!0,message:"请选择学校"}],children:(0,ce.jsx)(Hn.default,{showSearch:!0,filterOption:!1,onSearch:function(e){!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;T(!0),clearTimeout(P.current),P.current=setTimeout(c()(r()().mark((function t(){var n,o;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return L.current+=1,n=L.current,t.next=4,(0,cr.NT)({keyword:e});case 4:0===(o=t.sent).status&&L.current===n&&(w((null==o?void 0:o.schools)||[]),T(!1));case 6:case"end":return t.stop()}}),t)}))),t)}(e)},loading:z,size:"large",style:{width:344},options:v.map((function(e){return{value:e.id,label:e.name}}))})}),(0,ce.jsx)(b.Z.Item,{name:"department_id",label:"学院",rules:[{required:!0,message:"请选择学院"}],children:(0,ce.jsx)(Hn.default,{showSearch:!0,optionFilterProp:"label",style:{width:344},size:"large",options:E.map((function(e){return{value:e.id,label:e.name}}))})}),(0,ce.jsx)(b.Z.Item,{name:"name",label:"毕业设计名称",style:{marginBottom:0},rules:[{required:!0,message:"请输入毕业设计名称"},{max:60,message:"输入超限,请缩减字符数"},{type:"string",whitespace:!0,message:"请输入毕业设计名称"}],children:(0,ce.jsx)(x.Z,{showCount:!0,style:{width:344},maxLength:60})})]})})})),ur=(0,v.connect)((function(e){return{user:e.user,globalSetting:e.globalSetting}}))((function(e){e.globalSetting,e.dispatch;var t=e.user,n=e.open,o=e.onCancel,i=void 0===o?function(){}:o,l=b.Z.useForm(),s=u()(l,1)[0],d=(0,p.useState)(!1),f=u()(d,2),m=f[0],h=f[1],v=(0,p.useState)(null),w=u()(v,2),C=w[0],S=w[1];return(0,p.useEffect)((function(){if(n){var e,o={code:"",user_type:"student"===(null==t||null===(e=t.userInfo)||void 0===e?void 0:e.identity)?2:1,major:""};s.setFieldsValue(o),S(a()({},o))}}),[n]),(0,ce.jsx)(g.Z,{centered:!0,keyboard:!1,destroyOnClose:!0,open:n,title:"加入毕设",width:527,confirmLoading:m,onCancel:i,onOk:function(){return s.submit()},children:(0,ce.jsxs)(b.Z,{colon:!1,form:s,initialValues:{user_type:1},labelCol:{span:5},wrapperCol:{span:19},size:"large",onValuesChange:function(e,t){return S(a()({},t))},onFinish:function(){var e=c()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(!0),e.next=3,(0,Fn.ZP)("/api/graduations/join.json",{method:"post",body:t});case 3:0===(n=e.sent).status&&(i(),null!=n&&n.identifier?(0,ye.xg)("/graduations/".concat(null==n?void 0:n.identifier,"/index")):y.ZP.success(null==n?void 0:n.message)),h(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,ce.jsx)(b.Z.Item,{name:"code",label:"毕设邀请码",rules:[{required:!0,message:"请输入毕设邀请码"}],children:(0,ce.jsx)(x.Z,{placeholder:"请输入毕设邀请码",size:"large"})}),(0,ce.jsx)(b.Z.Item,{name:"user_type",label:"身份",rules:[{required:!0,message:"请输入毕设邀请码"}],children:(0,ce.jsxs)(er.ZP.Group,{children:[(0,ce.jsx)(er.ZP,{value:1,style:{color:"#000"},children:"管理员(教师)"}),(0,ce.jsx)(er.ZP,{className:"ml30",style:{color:"#000"},value:2,children:"学生"})]})}),2===(null==C?void 0:C.user_type)&&(0,ce.jsx)(b.Z.Item,{style:{marginBottom:0},name:"major",label:"专业",rules:[{required:!0,message:"请输入专业名称"},{max:60,message:"输入超限,请缩减字符数"},{whitespace:!0,message:"请输入专业名称"}],children:(0,ce.jsx)(x.Z,{showCount:!0,maxLength:60})})]})})})),dr=["homePage","user","globalSetting","loading","dispatch"],fr=function(e){return e.Projects="projects",e.Shixuns="shixuns",e.Classrooms="classrooms",e}(fr||{}),pr=function(e){return e.Classrooms="classrooms",e.Shixuns="shixuns",e.Paths="paths",e.Projects="projects",e.Videos="videos",e.Topics="topics",e}(pr||{}),mr=(0,v.connect)((function(e){var t=e.homePage,n=e.loading;return{homePage:t,user:e.user,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){e.homePage;var t,n,o,r,i,l,c,s,d=e.user,m=e.globalSetting,g=(e.loading,e.dispatch),h=(f()(e,dr),(0,p.useState)()),v=u()(h,2),b=v[0],x=v[1],w=(0,p.useState)(),C=u()(w,2),S=C[0],E=C[1],k=(0,p.useState)(!1),I=u()(k,2),j=I[0],N=I[1],M=(0,p.useState)(!1),Z=u()(M,2),O=Z[0],$=Z[1],A=function(e){var t;(0,lr.tJ)(g,!1,e===fr.Classrooms,"",!0)&&(e!==fr.Projects||null!==(t=d.userInfo)&&void 0!==t&&t.email?e===fr.Classrooms?x(!0):e===fr.Projects&&E(!0):y.ZP.info("请先绑定邮箱,谢谢"))},z=function(e,t){var n;(0,lr.tJ)(g)&&(t!==fr.Projects||null!==(n=d.userInfo)&&void 0!==n&&n.email?(t!==fr.Shixuns||(0,lr.xY)())&&e&&(window.location.href=e):y.ZP.info("请先绑定邮箱,谢谢"))},T=null===(t=((null===(n=m.setting)||void 0===n?void 0:n.navbar)||[]).find((function(e){return e.link==="/".concat(pr.Classrooms)})))||void 0===t?void 0:t.hidden,P=null===(o=((null===(r=m.setting)||void 0===r?void 0:r.navbar)||[]).find((function(e){return e.link==="/".concat(pr.Shixuns)})))||void 0===o?void 0:o.hidden,L=null===(i=((null===(l=m.setting)||void 0===l?void 0:l.navbar)||[]).find((function(e){return e.link==="/".concat(pr.Paths)})))||void 0===i?void 0:i.hidden;null!=m&&null!==(c=m.setting)&&void 0!==c&&c.is_local&&(null!=d&&null!==(s=d.userInfo)&&void 0!==s&&s.is_shixun_marker||(P=!0));var R=function(e){var t,n,o,r,i,l,c,s,u,f,p,h,v,b,y,x,w,C,S;return(0,ce.jsx)(ce.Fragment,{children:(0,ce.jsxs)(Tn.Z,{justify:"space-around",className:"pt5 pb5",children:[(0,ce.jsxs)(Pn.Z,{className:ar,children:["学生"!==(null===(t=d.userInfo)||void 0===t?void 0:t.user_identity)&&!T&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{children:(0,ce.jsx)("a",{onClick:function(){return z("/classrooms/new")},children:null!==(n=d.userInfo)&&void 0!==n&&n.main_site?"新建教学课堂":"新建课堂"})})),!P&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{children:(0,ce.jsx)("a",{onClick:function(){return z("/shixuns/new",fr.Shixuns)},children:"新建实践项目"})})),((null===(o=d.userInfo)||void 0===o?void 0:o.main_site)||!(null!==(r=d.userInfo)&&void 0!==r&&r.main_site)&&!L&&((null===(i=d.userInfo)||void 0===i?void 0:i.admin)||(null===(l=d.userInfo)||void 0===l?void 0:l.is_teacher)||(null===(c=d.userInfo)||void 0===c?void 0:c.business)))&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{children:(0,ce.jsx)("a",{onClick:function(){return z("/paths/new")},children:"新建实践课程"})})),!(null!=m&&null!==(s=m.setting)&&void 0!==s&&s.is_local)&&(null===(u=d.userInfo)||void 0===u?void 0:u.main_site)&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{children:(0,ce.jsx)("a",{onClick:function(){var e;return z("".concat(null==m||null===(e=m.setting)||void 0===e?void 0:e.old_url,"/projects/deposit/new"),fr.Projects)},children:"新建开发项目"})})),"narl.educoder.net"!==window.location.host&&"student"!==(null==d||null===(f=d.userInfo)||void 0===f?void 0:f.identity)&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{onClick:function(){(0,lr.o1)(g)&&N(!0)},children:(0,ce.jsx)("a",{children:"新建毕业设计"})})),!(null!==(p=d.userInfo)&&void 0!==p&&p.main_site)&&(0,ce.jsxs)("div",{children:[!T&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{children:(0,ce.jsx)("a",{onClick:function(){return A(fr.Classrooms)},children:null!==(h=d.userInfo)&&void 0!==h&&h.main_site?"加入教学课堂":"加入课堂"})})),(null===(v=d.userInfo)||void 0===v?void 0:v.main_site)&&!(null!=m&&null!==(b=m.setting)&&void 0!==b&&b.is_local)&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{children:(0,ce.jsx)("a",{onClick:function(){return A(fr.Projects)},children:"加入开发项目"})}))]})]}),(null===(y=d.userInfo)||void 0===y?void 0:y.main_site)&&(0,ce.jsx)(Pn.Z,{children:(0,ce.jsx)("div",{className:ir})}),(null===(x=d.userInfo)||void 0===x?void 0:x.main_site)&&(0,ce.jsxs)(Pn.Z,{className:ar,children:[!T&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{children:(0,ce.jsx)("a",{onClick:function(){return A(fr.Classrooms)},children:null!==(w=d.userInfo)&&void 0!==w&&w.main_site?"加入教学课堂":"加入课堂"})})),(null===(C=d.userInfo)||void 0===C?void 0:C.main_site)&&!(null!=m&&null!==(S=m.setting)&&void 0!==S&&S.is_local)&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{children:(0,ce.jsx)("a",{onClick:function(){return A(fr.Projects)},children:"加入开发项目"})})),(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{onClick:function(){(0,lr.o1)(g)&&$(!0)},children:(0,ce.jsx)("a",{children:"加入毕业设计"})}))]})]})})};return(0,ce.jsxs)("section",{children:[(0,ce.jsx)(Jo.Z,{dropdownRender:function(){return(0,ce.jsx)(Yo.Z,{className:"".concat(or," ").concat(rr," mt10"),children:(0,ce.jsx)(R,{})})},placement:"bottomRight",children:(0,ce.jsx)("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})}),(0,ce.jsx)(uo,{visible:b,onCancel:function(){return x(!1)}}),(0,ce.jsx)(nr,{visible:S,onCancel:function(){return E(!1)}}),(0,ce.jsx)(sr,{open:j,onCancel:function(){return N(!1)}}),(0,ce.jsx)(ur,{open:O,onCancel:function(){return $(!1)}})]})})),gr=n(29091),hr="tip___a6MfI",vr=(0,v.connect)((function(e){return{user:e.user}}))((function(e){e.visible;var t,n,o,i=e.user,a=(e.onCancel,e.dispatch,(0,p.useState)()),l=u()(a,2),s=(l[0],l[1],(0,p.useState)([])),d=u()(s,2),f=(d[0],d[1]),m=(0,p.useState)(!1),g=u()(m,2),h=(g[0],g[1],(0,p.useState)(!1)),v=u()(h,2),b=(v[0],v[1],(0,p.useState)()),x=u()(b,2),w=(x[0],x[1],(0,p.useState)(!1)),C=u()(w,2),S=C[0],E=C[1],k=null===(t=window.location.pathname)||void 0===t?void 0:t.includes("classrooms/");(0,p.useEffect)((function(){var e,t;null!=i&&null!==(e=i.userInfo)&&void 0!==e&&e.identity&&f(["student"===(null==i||null===(t=i.userInfo)||void 0===t?void 0:t.identity)?3:1])}),[i]),(0,p.useEffect)((function(){var e;if(console.log(null==i?void 0:i.userInfo),null!=i&&null!==(e=i.userInfo)&&void 0!==e&&e.user_status){var t;if(15===(null==i||null===(t=i.userInfo)||void 0===t?void 0:t.role))return void E(!1);var n,o,r,a=k?JSON.parse(null===(n=localStorage)||void 0===n?void 0:n.getItem("delaytip_class")):JSON.parse(null===(o=localStorage)||void 0===o?void 0:o.getItem("delaytip_user"));a&&(null==a?void 0:a.login)===(null==i||null===(r=i.userInfo)||void 0===r?void 0:r.login)?(console.log(wo()(null==a?void 0:a.time).add(1,"days")),console.log(wo()(new Date)),wo()(null==a?void 0:a.time).add(1,"days").set({hour:0,minute:0,second:0})3)||null!==(e=n[4])&&void 0!==e&&e.includes("newgold")||null!==(t=n[5])&&void 0!==t&&t.includes("newgold")||"coursesId"===n[2]||(o.course_id=n[2]),"shixuns"===n[1]&&n.length>3&&(o.objective_type="shixun",o.objective_id=n[2]),"paths"===n[1]&&n.length>3&&(o.objective_type="path",o.objective_id=n[2]),a()(a()({},o),{school:1})}var kr=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Ir=((0,v.connect)((function(e){var t=e.homePage,n=e.loading,o=e.user,r=e.globalSetting,i=e.shixunHomeworks;return{homePage:t,user:o,globalSetting:r,loading:n.models.index,shixunHomeworks:i}}))((function(e){e.homePage;var t,n=e.user,o=e.globalSetting,i=(e.loading,e.dispatch),l=e.isLogin,s=void 0!==l&&l,d=e.shixunHomeworks,m=(f()(e,wr),(0,v.useLocation)()),h=(0,p.useState)(!1),b=u()(h,2),y=b[0],x=b[1],w=(0,p.useState)(""),C=u()(w,2),E=C[0],k=C[1],I=(0,p.useState)(!1),j=u()(I,2),N=j[0],M=j[1],Z=Er();(0,p.useEffect)((function(){i({type:"user/getNavigationInfo",payload:a()({},Z)})}),[o.name]),(0,p.useEffect)((function(){"底部弹窗"===d.actionTabs.key&&(null!=kr&&kr.includes(null==m?void 0:m.pathname)||0===(null==m?void 0:m.pathname.indexOf("/classrooms"))||i({type:"shixunHomeworks/setActionTabs",payload:{key:"隐藏"}}))}),[m.pathname]),(0,p.useEffect)((function(){"底部弹窗"===d.actionTabs.key||d.actionTabs.key||localStorage.setItem("Noviceguide","0")}),[d.actionTabs.key]),(0,p.useEffect)((function(){if(null!=o&&o.setting){var e,t,n,r=(0,un.cloneDeep)(null==o||null===(e=o.setting)||void 0===e?void 0:e.navbar);r=null===(t=r)||void 0===t?void 0:t.filter((function(e){var t;return!(null!=e&&e.hidden||(0,br.JA)()&&null!==(t=["/paperlibrary","/problemset"])&&void 0!==t&&t.includes(e.link))}));var i,a=So()(r);try{for(a.s();!(i=a.n()).done;){var l=i.value;l.subitem&&(l.subitem=l.subitem.filter((function(e){var t;return!(null!=e&&e.hidden||(0,br.JA)()&&null!==(t=["/paperlibrary","/problemset"])&&void 0!==t&&t.includes(e.link))})))}}catch(e){a.e(e)}finally{a.f()}var c=!1;null===(n=r)||void 0===n||n.map((function(e,t){var n,i,a,l=m.pathname;e.link===l&&(k(null==e?void 0:e.link),(0,ye.Dk)("/"===l?null==o||null===(i=o.setting)||void 0===i?void 0:i.name:G(null==e?void 0:e.name)),V(X(t,{name:null==e?void 0:e.name,link:null==e?void 0:e.link},r)),c=!0);null!=e&&null!==(n=e.subitem)&&void 0!==n&&n.length&&(null==e||null===(a=e.subitem)||void 0===a||a.map((function(e){e.link===l&&(k(null==e?void 0:e.link),"/"!==l&&(0,ye.Dk)(G(null==e?void 0:e.name)),V(X(t,{name:null==e?void 0:e.name,link:null==e?void 0:e.link},r)),c=!0)})))})),c||V(r)}}),[null==o?void 0:o.setting,n]);var O=(0,p.useMemo)((function(){var e,t;return null!=o&&null!==(e=o.setting)&&void 0!==e&&e.nav_logo_url?"".concat(Sn.Z.IMG_SERVER,"/").concat(null==o||null===(t=o.setting)||void 0===t?void 0:t.nav_logo_url):"".concat(Sn.Z.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat((new Date).getTime())}),[null==o||null===(t=o.setting)||void 0===t?void 0:t.nav_logo_url]);function $(e){v.history.push("/search?value="+e)}var A,z,T,P,L,R,B,D,H=function(){return y?(0,ce.jsx)("div",{onBlur:function(){setTimeout((function(){x(!1)}),300)},children:(0,ce.jsx)(Sr,{placeholder:"实践课程/教学课堂/实践项目/交流问答",className:"search-input mr20",onSearch:$,autoFocus:!0})}):(0,ce.jsx)("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){v.history.push("/search?value=")}})},W=(0,p.useState)([]),F=u()(W,2),K=F[0],V=F[1],q=function(){var e=c()(r()().mark((function e(t,n){var o,a,l,c,s,u;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("工程认证"!==(null==t?void 0:t.name)){e.next=6;break}return e.next=3,(0,S.IU)();case 3:return null!=(l=e.sent)&&null!==(a=l.data)&&void 0!==a&&a.engineer_url?null!=l&&null!==(c=l.data)&&void 0!==c&&null!==(c=c.engineer_url)&&void 0!==c&&c.includes("http")?(0,ye.xg)(null==l||null===(s=l.data)||void 0===s?void 0:s.engineer_url):v.history.push(null==l||null===(u=l.data)||void 0===u?void 0:u.engineer_url):401!=(null==l?void 0:l.status)&&M(!0),e.abrupt("return");case 6:null!=t&&null!==(o=t.link)&&void 0!==o&&o.includes("http")?(0,ye.xg)(null==t?void 0:t.link):((0,ye.Dk)(null==t?void 0:t.name),v.history.push(null==t?void 0:t.link)),"教学课堂"===(null==t?void 0:t.name)&&"0"!==localStorage.getItem("Noviceguide")&&i({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:5,text:(0,ce.jsx)("div",{children:"非常棒,咱们已经到达【教学课堂】,平台上已经有几千位老师创建了自己的教学课堂,你也可以轻松完成哟!现在请您点击页面上 “新建课堂”按钮开始新建自己的课堂~"})}});case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),X=function(e,t,n){var o=n.slice();return o[e]&&(o[e].name=t.name,o[e].link=t.link),o||[]},G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.indexOf("<")>-1?e.slice(0,e.indexOf("<")):e};return o.showHeader&&o.showHeaderFooter?(0,ce.jsxs)(Bo,{style:{background:"".concat("/training"==m.pathname?"rgba(0,0,0,0)":"")},className:"".concat(o.isIlearning?_o:Do," ").concat(o.showHeaderFixed?Uo:""),children:[(null==o?void 0:o.showTip)&&(0,ce.jsx)(vr,{}),(0,ce.jsxs)(Cr,{className:"header",style:{background:"".concat("/training"==m.pathname?"rgba(0,0,0,0)":""),zIndex:"".concat("/training"==m.pathname?"999":"")},children:[(0,ce.jsxs)("section",{className:Go,children:[(!!o.isIlearning||!(null!=o&&null!==(A=o.setting)&&void 0!==A&&A.main_site)&&!(null==o||null===(z=o.setting)||void 0===z||!z.navbar))&&(0,ce.jsx)(v.Link,{style:{display:"flex",alignItems:"center"},onClick:function(){i({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/",children:(0,ce.jsx)("img",{className:Ho,title:null===(T=o.setting)||void 0===T?void 0:T.name,src:O||"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNi41NzggOC44Yy4xNjItLjY4Mi4zLS43MzcuOTgyLS43MzcuNjg5IDAgLjc5My4wNTUuNjMyLjczNy0uMTY0LjY4OS0uMjk4Ljc2LS45ODcuNzYtLjY4MiAwLS43OS0uMDcxLS42MjctLjc2Wm0tLjIyMiAxLjE5OGgxLjQ4OGwtMS4wMDQgNC4yM0g1LjM1MmwxLjAwNC00LjIzWk04LjQ2NSAxMS4yNDRoMi40NzRsLS4yNzUgMS4xNkg4LjE4OXpNMTUuMTIgMTIuODg5bC0uMzE3IDEuMzRIMTEuMjNsMS4yOTEtNS40MzdoMS41NmwtLjk3NCA0LjA5N3pNMTguNjg4IDExLjU1Yy4wNzYtLjMyMi4wMS0uNTQxLS40NTktLjU0MS0uNTAxIDAtLjc0OC4xMTctLjkwNS42NDJsMS4zNjQtLjEwMlptMS4wNDEuOTU1LTIuNjM2LjE1NmMtLjAwMi4zNjkuMy41MTcuODQuNTE3LjU3MSAwIDEuMjU5LS4xNTUgMS41NDUtLjMwNWwtLjI2IDEuMDk3Yy0uMzAxLjE4LTEuMDEyLjMzNy0xLjg1LjMzNy0xLjMzMiAwLTIuMDM5LS40NTQtMS42MjYtMi4xOTQuNDEzLTEuNzM5IDEuMzM2LTIuMTkzIDIuNzM4LTIuMTkzIDEuNTA0IDAgMS43NjIuNjI2IDEuNDU1IDEuOTItLjA4Mi4zNDQtLjE2Ni42MDItLjIwNi42NjVaTTIyLjgwNiAxMi45MzZsLjA3OS0uMzNoLS41OTVjLS40NyAwLS42MzYuMDcxLS42OTUuMzIyLS4wNTIuMjIuMDk4LjI3NC40MDQuMjc0LjM2OCAwIC42NTUtLjExNy44MDctLjI2Nm0xLjg1Ny0xLjU4My0uNjgzIDIuODc1aC0xLjM0N2wtLjAyNS0uMzkxYy0uMTc1LjIxMi0uNTk2LjQ3LTEuMzQuNDctLjg4NSAwLTEuMzQ3LS40LTEuMTMxLTEuMzA4LjIzLS45NzIuODcyLTEuMzMyIDIuMTAxLTEuMzMyaC44N2MuMDgtLjQzLS4wNjMtLjQ5NC0uNjgyLS40OTQtLjMwNSAwLS42LjAyNC0uODg1LjA3bC4yOTUtMS4yNDVjLjMzNC0uMDU0Ljc5Mi0uMDcgMS4wOTgtLjA3IDEuNDggMCAxLjk2My40MzggMS43MjkgMS40MjVNMjguNjkxIDkuOTJsLS4zNDYgMS4zMjRoLS4xMThjLS40OTMgMC0xLjA1NS4xODgtMS4yNTcuNzc2bC0uNTI1IDIuMjA4aC0xLjQ4OGwxLjAwNS00LjIzaDEuNDg4bC0uMTc1LjczN2MuNDEtLjY3NC44MjgtLjgxNSAxLjMyOS0uODE1aC4wODdaTTMzLjA4NCAxMS4zNjlsLS42OCAyLjg2aC0xLjQ4OGwuNi0yLjUyM2MuMTI0LS41MjUuMDEyLS42MTEtLjQ1OC0uNjExLS4zNzYgMC0uNTcyLjEzMy0uNjg1LjM0NWwtLjY2MyAyLjc4OGgtMS40ODhsMS4wMDUtNC4yM2gxLjQ4OGwtLjEwMi40MzFjLjI4LS4yOS43NC0uNTEgMS40My0uNTEuOTkzIDAgMS4yODUuNDI0IDEuMDQxIDEuNDVNMzQuNTA3IDguOGMuMTYyLS42ODIuMy0uNzM3Ljk4Mi0uNzM3LjY4OCAwIC43OTMuMDU1LjYzMS43MzctLjE2My42ODktLjI5Ny43Ni0uOTg3Ljc2LS42ODEgMC0uNzktLjA3MS0uNjI2LS43NlptLS4yMjIgMS4xOThoMS40ODhsLTEuMDA0IDQuMjNIMzMuMjhsMS4wMDQtNC4yM1oiIGZpbGw9IiMxOTZFRkQiLz48cGF0aCBkPSJNMzQuNTA3IDguOGMuMTYyLS42ODIuMy0uNzM3Ljk4Mi0uNzM3LjY4OCAwIC43OTMuMDU1LjYzMS43MzctLjE2My42ODktLjI5Ny43Ni0uOTg3Ljc2LS42ODEgMC0uNzktLjA3MS0uNjI2LS43NlptLS4yMjIgMS4xOThoMS40ODhsLTEuMDA0IDQuMjNIMzMuMjhsMS4wMDQtNC4yM1pNNDAuNTIyIDExLjM2OWwtLjY4IDIuODZoLTEuNDg4bC42LTIuNTIzYy4xMjQtLjUyNS4wMTEtLjYxMS0uNDU4LS42MTEtLjM3NiAwLS41NzMuMTMzLS42ODUuMzQ1bC0uNjYzIDIuNzg4SDM1LjY2bDEuMDA0LTQuMjNoMS40ODlsLS4xMDIuNDMxYy4yOC0uMjkuNzQtLjUxIDEuNDI4LS41MS45OTYgMCAxLjI4Ni40MjQgMS4wNDMgMS40NSIgZmlsbD0iIzE5NkVGRCIvPjxwYXRoIGQ9Ik00NC4wMjUgMTIuMDcxYy0uMTczLjcyMS0uMzE3IDEuMTMyLTEuMDIzIDEuMTMyLS42MDYgMC0uNTc3LS41MTktLjQzMy0xLjEzMi4xMzctLjU3LjM1My0xLjA4OC45NTktMS4wODguNzE0IDAgLjY2My40MS40OTcgMS4wODhabS40MjUtMi4wNzYtLjA4Ni4zNjhjLS4wOTQtLjMxLS4zODItLjQ0LTEuMTAzLS40NC0xLjM0IDAtMS45MTcuOTk1LTIuMTk5IDIuMTQ4LS4zMDIgMS4yOS0uMTY1IDIuMTU2IDEuMTc1IDIuMTU2LjcxNCAwIDEuMDg5LS4xOCAxLjMyLS40ODNsLS4wMjIuMTA4Yy0uMTg3Ljc4Ni0uNDEgMi4wMDQtMS4zMiAyLjI1Ni0uNjYyLjE4OC0xLjQ2My0uMzM5LTIuMDktLjU0OGExMy45ODEgMTMuOTgxIDAgMCAwLTIuNDA4LS41OWMtMS45MTctLjI5Ni0zLjg3OC0uMTc0LTUuNzMuNDEtMy4yODcgMS4wNDItNi43NzUgMS4zMTUtMTAuMjA1IDEuMzUyLTMuNTA5LjAzNy02Ljk0My0uMDUyLTEwLjM3NC0uOTA3LTEuMDcxLS4yNjctMi4wODQtLjgyNS0zLjE2Ny0xLjAwMS0xLjc0LS4yODQtMy45NC40NjUtNS4yMi0xLjE2LS41ODQtLjczNS0uOTE1LTEuNi0uOTE1LTIuNTE1IDAtMS43NjcgMS4yMjUtMy4zMjQgMy4wODUtNC4yMjVsLjU5MS0uNzY0Yy0uMTEuMTQ1LTEuMTc0LjIxOC0xLjM5Ny4yODVhOC40NzggOC40NzggMCAwIDAtMS41MjQuNjE3Yy0uOTM2LjQ5MS0xLjgyIDEuMTc4LTIuMzc0IDIuMDkzLTEuMDAzIDEuNjU0LS4zNDYgMy44MDkuOTY4IDUuMTA5LjkxNC45MDMgMi4xMjIgMS40NTQgMy4zNjggMS43MiAxLjI5OC4yNzcgMi42ODQtLjE2NyAzLjk0My4yNzcgMS4xMzQuNCAyLjE0NC44MzEgMy4zNDIgMS4wNzVhMzEuNDIgMzEuNDIgMCAwIDAgMy44NzQuNTI2YzIuOTMxLjIyNCA1Ljg1OS4wODMgOC43OS0uMDU1YTI5Ljg4NCAyOS44ODQgMCAwIDAgNy41Ni0xLjMzMWMxLjgxNy0uNTc3IDMuNzYzLS42NDIgNS42My0uMjgxIDEuNDcxLjI4IDMuMTg3IDEuNDEzIDQuNjg2Ljk0NCAxLjQyOC0uNDQgMi4wMzMtMS45MzIgMi4zNS0zLjI2NWwuOTIzLTMuODc5aC0xLjQ3WiIgZmlsbD0iIzIzREQ3RiIvPjxwYXRoIGQ9Im0yMC4zODcgNC4xNi0uNzM1LjA3OWMtMS4yODMtMS42ODctMy41MTgtMi43OTctNi4wNDgtMi43OTctMy4xOCAwLTUuODc2IDEuNzUyLTYuODM0IDQuMThsLTEuODEuMTk2QzUuMTcgMi41OCA4LjYzNyAwIDEyLjg4MyAwYzMuNDg5IDAgNi40NTIgMS43MzcgNy41MDQgNC4xNiIgZmlsbD0iIzE5NkVGRCIvPjxwYXRoIGQ9Ik0yOC4wODYgNi40ODhoLTIuNTA4Yy0xLjAwMy0xLjA3NC0zLjA4Ni0xLjgwMi01LjQ4Ni0xLjgwMi0yLjQwOCAwLTQuNDkxLjczNS01LjQ5NCAxLjgxLjczNi0xLjM2MyAzLjA0My0yLjU2NyA1Ljg3Ni0yLjkyIDMuNDQ2LS40MjYgNy4xMzcgMS4yMSA3LjYxMiAyLjkxMiIgZmlsbD0iIzE5NkVGRCIvPjwvZz48L3N2Zz4="})}),(0,ce.jsxs)("ul",{className:"".concat(Wo," ").concat((0,ye.Ll)()&&"ml0"),children:[(0,ye.Ll)()&&(0,ce.jsx)("li",{children:(0,ce.jsx)("a",{href:"/",children:"考试系统"})}),!(0,ye.Ll)()&&o.setting&&K.map((function(e,t){var n,o,r,i,a,l,c;return(0,ce.jsxs)("li",{className:(null==e||null===(n=e.subitem)||void 0===n||!n.length)&&E===(null==e?void 0:e.link)||null!=e&&null!==(o=e.subitem)&&void 0!==o&&o.some((function(e){return E===(null==e?void 0:e.link)}))?Xo:"",children:[(0,ce.jsxs)("div",{onClick:function(){return q(e,t)},className:qo,children:[(0,ce.jsx)("span",{dangerouslySetInnerHTML:{__html:(c=null==e?void 0:e.name,null==e||null===(l=e.subitem)||void 0===l||l.map((function(e,t){return e.link===m.pathname&&(c=e.name),e})),c)}}),(null==e||null===(r=e.subitem)||void 0===r?void 0:r.length)>0&&(0,ce.jsx)("i",{className:"iconfont icon-zhankai4"})]}),(null==e||null===(i=e.subitem)||void 0===i?void 0:i.length)>0&&(0,ce.jsx)("div",{className:Fo,children:null==e||null===(a=e.subitem)||void 0===a?void 0:a.map((function(e,n){return(0,ce.jsxs)("div",{className:Vo,onClick:function(){return q(e,t)},children:[!!n&&(0,ce.jsx)("div",{className:Ko}),(0,ce.jsx)("aside",{className:"font16 c-black",children:G(e.name)}),(0,ce.jsx)("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"},children:e.content})]},t+"-"+n)}))})]},t)}))]}),(0,ce.jsxs)("div",{className:"search-bar",style:{flex:o.isIlearning?"initial":"1 0 auto"},children:[!(0,ye.Ll)()&&!(null!=o&&o.isIlearning)&&(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(H,{}),!s&&(0,ce.jsx)(mr,{}),!s&&!(null==n||null===(P=n.userInfo)||void 0===P||!P.login)&&(0,ce.jsx)(v.Link,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(null==n||null===(L=n.userInfo)||void 0===L?void 0:L.login,"/user_tidings"),children:(null==n||null===(R=n.navigationInfo)||void 0===R?void 0:R.new_message)&&(0,ce.jsx)("span",{className:Qo})})]}),!s&&(0,ce.jsx)(gr.Z,{payload:Z})]})]}),(0,ce.jsx)(g.Z,{centered:!0,destroyOnClose:!0,open:N,title:"提示",width:"500px",okText:"立即联系",cancelText:"取消",onOk:function(){(0,ye.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:function(){return M(!1)},children:(0,ce.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,ce.jsx)("p",{children:"您可以在QQ服务群向管理员申请,获得继续操作的权限"}),(0,ce.jsx)("img",{src:"".concat(Sn.Z.IMG_SERVER,"/").concat(null==o||null===(B=o.setting)||void 0===B?void 0:B.homepage_tea_qq_qrcode_url),width:200,height:200,className:"mb10"}),(0,ce.jsxs)("p",{children:["群号:",null==o||null===(D=o.setting)||void 0===D?void 0:D.homepage_tea_qq_number]})]})})]}),(0,ce.jsx)(xr,{})]}):(0,ce.jsx)(ce.Fragment,{})})),n(37205)),jr=n.n(Ir),Nr=n(70236),Mr=n.n(Nr),Zr="wrap___q9xAc",Or="list___qjgdz",$r="name___ncYhC",Ar="tag___Paafn",zr=n(1499),Tr=function(e){Mr()(e);var t=(0,p.useState)(!1),n=u()(t,2),o=n[0],i=n[1],a=(0,p.useState)([]),l=u()(a,2),s=l[0],d=l[1],f=(0,p.useState)([]),m=u()(f,2),h=m[0],b=m[1],y=(0,p.useState)(!1),x=u()(y,2),S=x[0],E=x[1],k=(0,p.useState)(!1),I=u()(k,2),j=I[0],N=I[1],M=(0,v.useLocation)(),Z=(0,v.useSearchParams)(),O=u()(Z,1)[0];(0,p.useEffect)((function(){zr.Z.subscribe("pod-restrict-data",(function(e){console.log(e,"data"),i(e.identifier||!1),d(e.data_list||[]),b([]),E(!1)}))}),[]);var $=function(){var e=c()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),t=s.filter((function(e){return h.includes(e.tpi_id)})),e.next=4,(0,Fn.ZP)("/api/myshixuns/batch_del_pods.json",{method:"delete",body:{del_pods:t}});case 4:0===e.sent.status&&window.location.reload(),N(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),A=function(){var e;if(console.log(M,"location"),null===(e=M.pathname)||void 0===e||!e.includes("/challenges"))return"exercises"===O.get("type")?(window.parent.postMessage("backExercise","*"),void zr.Z.publish("pod-restrict-data",{identifier:!1,data_list:[]})):void(window.location.href="/shixuns/".concat(o,"/challenges"));window.location.href="/shixuns"};return(0,ce.jsx)(g.Z,{centered:!0,keyboard:!1,destroyOnClose:!0,open:o,title:"通知",width:"600px",footer:(0,ce.jsxs)(Tn.Z,{align:"middle",justify:"center",children:[(0,ce.jsx)(w.Z,{onChange:function(e){var t;(console.log(e,222),E(e.target.checked),e.target.checked)?b(null==s||null===(t=s.filter((function(e){return!e.is_current_shixun})))||void 0===t?void 0:t.map((function(e){return e.tpi_id}))):b([])},checked:S,children:"全选"}),(0,ce.jsx)(C.ZP,{style:{marginLeft:"auto"},onClick:A,children:"取消"}),(0,ce.jsx)(C.ZP,{disabled:!h.length,loading:j,type:"primary",onClick:$,children:"关闭实训"})]}),onCancel:A,children:(0,ce.jsx)(yo.Z,{spinning:j,children:(0,ce.jsxs)("div",{className:Zr,children:[(0,ce.jsx)("p",{children:"单个账号最多可同时开启10个实验环境,若想开启该实训请关闭其他实训。"}),null==s?void 0:s.map((function(e){return(0,ce.jsxs)("div",{className:Or,children:[(0,ce.jsx)(w.Z,{disabled:e.is_current_shixun,onChange:function(t){var n=jr()(h);t.target.checked?n.push(e.tpi_id):n=h.filter((function(t){return t!==e.tpi_id})),b(n),E(n.length===s.length)},checked:null==h?void 0:h.includes(e.tpi_id)}),(0,ce.jsxs)("span",{className:$r,onClick:function(){return(0,ye.xg)("/shixuns/".concat(e.shixun_identifier,"/challenges"))},title:e.shixun_name,children:[(0,ce.jsx)("b",{children:e.shixun_name}),e.is_current_shixun&&(0,ce.jsx)("span",{className:Ar,children:"当前实训"})]}),(0,ce.jsxs)("span",{style:{color:"#53d1a3"},children:["运行中的环境:",e.pod_num,"个"]})]},e.tpi_id)}))]})})})},Pr={token:{colorPrimary:"#3061D0",colorInfo:"#3061D0",colorLink:"#3061D0",borderRadius:2,fontSizeLG:14},components:{Radio:{radioSize:16,dotSize:6},Modal:{titleFontSize:16,titleColor:"#000"}}},Lr=["loading","globalSetting","dispatch"],Rr=(0,v.connect)((function(e){return{loading:e.loading,globalSetting:e.globalSetting}}))((function(e){e.loading;var t=e.globalSetting,n=e.dispatch,o=(f()(e,Lr),"https://educoder-public.oss-cn-hangzhou.aliyuncs.com/Cover/logo_simple?x-oss-process=image/resize,h_200,w_200,m_pad");(0,p.useEffect)((function(){(0,ye.IS)()&&function(){a.apply(this,arguments)}()}),[]),(0,p.useEffect)((function(){n({type:"globalSetting/setShareData",payload:{desc:"头歌,全称“头歌实践教学平台”,是国内高校广泛使用的在线实践教学服务平台与创新环境,为高校和企业的实践与创新能力提升赋能,是中国高校计算机教育MOOC联盟实践教学工委、全国人工智能职业教育集团实践教学工作委员会官方合作平台。",title:document.title,imgUrl:o}})}),[location.pathname]),(0,p.useEffect)((function(){i()}),[null==t?void 0:t.shareData]);var i=function(){var e;null===(e=window.wx)||void 0===e||e.ready((function(){var e,n,r,i,a,l={title:(null==t||null===(e=t.shareData)||void 0===e?void 0:e.title)||document.title,desc:(null==t||null===(n=t.shareData)||void 0===n?void 0:n.desc)||"头歌,全称“头歌实践教学平台”,是国内高校广泛使用的在线实践教学服务平台与创新环境,为高校和企业的实践与创新能力提升赋能,是中国高校计算机教育MOOC联盟实践教学工委、全国人工智能职业教育集团实践教学工作委员会官方合作平台。",link:window.location.href,imgUrl:(null==t||null===(r=t.shareData)||void 0===r||null===(r=r.imgUrl)||void 0===r?void 0:r.replace("https://public.educoder.net","https://educoder-public.oss-cn-hangzhou.aliyuncs.com/"))||o};null===(i=window.wx)||void 0===i||i.onMenuShareAppMessage(l),null===(a=window.wx)||void 0===a||a.onMenuShareTimeline(l)}))};function a(){return(a=c()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Fn.ZP)("/api/users/js_sdk_data.json?url=".concat(encodeURIComponent(location.href)),{method:"get"});case 2:0===(null==(t=e.sent)?void 0:t.status)&&l(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e){window.wx.config({debug:!1,appId:(null==e?void 0:e.appid)||"wx2402d86a6b534f77",timestamp:(null==e?void 0:e.timestamp)||1716781260,nonceStr:(null==e?void 0:e.noncestr)||"WjRUMvS[",signature:(null==e?void 0:e.signature)||"0e182307b372cf71796c33e01b462cbfca0b9930",jsApiList:["checkJsApi","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone"]})}return(0,ce.jsx)(ce.Fragment,{})})),Br=(n(65517),["loading","globalSetting","user","dispatch"]);wo().locale("zh-cn");var Dr=(0,v.connect)((function(e){return{loading:e.loading,globalSetting:e.globalSetting,user:e.user}}))((function(e){e.loading;var t,n=e.globalSetting,o=(e.user,e.dispatch),i=(f()(e,Br),(0,v.useLocation)()),l=Er(),s=(0,v.useSearchParams)(),d=(u()(s,1)[0],n.globalLoading),b=function(){var e=c()(r()().mark((function e(){var t,n,c,s,u,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=i.pathname.split("/"),null==i||!i.search){e.next=9;break}return s.includes("paths")?u=s[2]:s.includes("tasks")&&(d=s[2]),e.next=6,o({type:"user/getUserInfo",payload:a()(a()(a()({},l),(0,ye.oP)()),{},{subject_id:u,game_id:d,websiteName:"educoder"})});case 6:n=e.sent,e.next=14;break;case 9:return s.includes("tasks")&&(c=s[2]),e.next=13,o({type:"user/getUserInfo",payload:a()(a()({},l),{},{game_id:c})});case 13:n=e.sent;case 14:"游客"!==(null===(t=n)||void 0===t?void 0:t.username)&&("/login"===i.pathname&&(window.location.href="/"),"/user/login"!==i.pathname&&"/login"!==i.pathname&&window.sessionStorage.getItem("download_url")&&((0,ye.Nd)("educoder",window.sessionStorage.getItem("download_url")),window.sessionStorage.removeItem("download_url")));case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,p.useEffect)((function(){m.ZP.config({prefixCls:"ant",iconPrefixCls:"anticon",theme:a()({},Pr)})}),[n.theme]),(0,p.useEffect)((function(){b(),(0,ye.Il)(),function(){function e(){var e=document.documentElement,t=e.clientWidth/1920;t=t>2?2:t<.6?.6:t,e.style.fontSize=t+"px"}window.addEventListener("resize",e),e()}()}),[]),(0,p.useEffect)((function(){o({type:"globalSetting/query",payload:{}});try{window.top.location.origin}catch(e){-1===document.referrer.indexOf("educoder.net")&&(window.location.href=window.atob("Jy80MDMn"))}}),[]),(0,p.useEffect)((function(){var e,t;if(i.pathname.indexOf("classrooms")>-1&&-1===i.pathname.indexOf("detail")||document.body.scrollIntoView(),i.pathname.indexOf("/classrooms/4RW9CYHY")>-1&&"localhost"!==document.domain&&"kepukehuan.educoder.net"!==document.domain)window.location.href="https://kepukehuan.educoder.net/classrooms/4RW9CYHY/exercise";else if(i.pathname.indexOf("/classrooms/qb4ft587")>-1&&"localhost"!==document.domain&&"kepukehuan.educoder.net"!==document.domain)window.location.href="https://kepukehuan.educoder.net/classrooms/qb4ft587/exercise";else if(i.pathname.indexOf("/classrooms/c5q9bsp2")>-1&&"localhost"!==document.domain&&"kepukehuan.educoder.net"!==document.domain)window.location.href="https://kepukehuan.educoder.net/classrooms/c5q9bsp2/exercise";else if(o({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),"https://jetcoder.educoder.net"!==window.location.href&&"https://jetcoder.educoder.net/"!==window.location.href)if(null!==(e=window.location.href)&&void 0!==e&&e.includes("/problems")&&null!==(t=window.location.href)&&void 0!==t&&t.includes("/share")){var n,r=null===(n=window.location)||void 0===n||null===(n=n.pathname)||void 0===n||null===(n=n.split("/"))||void 0===n?void 0:n[2];(0,Fn.ZP)("/api/practices/".concat(r,"/start"),{method:"get"}).then((function(e){0===(null==e?void 0:e.status)&&v.history.replace("/problems/".concat(null==e?void 0:e.identifier,"/oj/").concat(r))}))}else{if("/admins"===i.pathname||"/sidekiq"===i.pathname){var a=document.domain;if(a.indexOf("educoder.net")>-1)switch(a){case"www.educoder.net":case"educoder.net":window.location.href="https://data.educoder.net".concat(i.pathname);break;default:var l=document.domain.split(".");l[0]=l[0]+"-data",window.location.href="https://".concat(l.join(".")).concat(i.pathname)}}g.Z.destroyAll()}else window.location.href="https://www.educoder.net/problems"}),[i.pathname]),(0,p.useEffect)((function(){n.updateData.system_update?localStorage.updateEndTime||(new Date).getTime()0&&g.Z.info({title:"客户端版本过低",centered:!0,content:(0,ce.jsxs)("div",{children:[(0,ce.jsx)("span",{className:"c-red",children:"您的头歌考试系统柜客户端版本过低"}),',请升级至最新版本后再使用,点击"确定"后将下载最新版本的客户端,',(0,ce.jsx)("span",{className:"c-red",children:"下载后请先退出客户端再安装"})]}),okText:"立即升级",visible:!0,maskClosable:!1,onOk:function(){return(0,ye.FH)("Educoder.exe","https://www-cdn.educoder.net/app/Educoder.exe"),new Promise((function(){}))}})}}),[null==n||null===(t=n.setting)||void 0===t?void 0:t.version]),(0,p.useEffect)((function(){1===performance.navigation.type&&document.body.scrollIntoView()}),[performance.navigation.type]);return(0,ce.jsx)(L.V9,{transformers:[L.IJ],hashPriority:"high",children:(0,ce.jsxs)(m.ZP,{locale:h.Z,autoInsertSpaceInButton:!1,componentSize:"middle",theme:Pr,children:[(0,ce.jsx)(Dn,{}),(0,ce.jsx)(fo,{}),(0,ce.jsx)(bo,{}),(0,ce.jsx)(Rr,{}),(0,ce.jsx)(Tr,{}),(0,ce.jsx)(yo.Z,{size:"middle",spinning:d.show,tip:d.text,className:"ant-spin-nested-loading-black",children:(0,ce.jsx)(v.Outlet,{})})]})})}))},71283:function(e,t,n){n.d(t,{rX:function(){return m},xY:function(){return p},tJ:function(){return s},o1:function(){return u}});n(7557),n(41498);var o=n(94706),r=n(91662),i=n(13277),a=n(1079),l=n.p+"static/newqrcode.a8740efb.png",c=(n(32637),n(37712)),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return!(!u(e)||!d(e,t,n,o,r))},u=function(e){return!!(0,i.bg)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},d=function(e){var t,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=(0,o.getDvaApp)()._store.getState(),s=c.user;return!(null===(t=s.userInfo)||void 0===t||!t.profile_completed)||(n?e({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:i,isCurrentPage:l}}):r.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,a.xg)("/account/profile/edit"),f()}}),!1)},f=function(){r.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料?请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},p=function(){return!!(0,i.V9)()||(r.Z.warning({centered:!0,width:530,title:"提示",content:(0,c.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,c.jsx)("p",{children:"扫码加头歌助教,申请操作权限"}),(0,c.jsx)("img",{src:l,width:200})]}),okText:"我知道了",maskClosable:!0}),!1)},m=function(e,t){return!!e||(r.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{children:t||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"}),(0,c.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,c.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABgILAMgwe5cwJ5O3jVtaWgp+z8KKW+bOPvjuwq1bMaTD+OLG2+ks2/aSSS78FTMcYQEAIQgsACADgQUAZCCwAIAMBBYAkIHAAgAyLBnW4CxnS/fb9k4r7nk7W8LBClZUQbBiYIEVI2ycnXjFIjjCAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQU4bAGK25Fu/Besm03wm27i2/bEATbNmTbN6QoRzDkhCMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5F7Xpnpy2w7Ta8bawo4eDC6RVIf0YmufBXzCwKLIvaCgC2ceevGKeEAEAGAgsAyEBgAQAZCCwAIMPsRfdVq1aFw2GrW7llyxZ7dgfACEToV8ydvd9vkhV1CPBOvHOkvdNZeY0IwSkhAJCBwAIAMhBYAEAGAgsAyEBgAQAZCCwAICOPcVhUnke3rcg/lYktbLuT7eyet+0zIo16j3CEBQBkILAAgAwEFgCQgcACADIQWABABgILAMjIo1pDHit19K6zFXfxXTiwgMqz+FZ004Wc/YidHSJjsuILqjUAQHFCYAEAGQgsACADgQUAZCCwAIAMBBYAkGF21hxnKxZQqdJvW5Nsm1LEinbmXNy2vlNZ3DhnfwgWjbDBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgw+ywBpOsuMlKZZ3GN2RycdsKcriQC3cIlclH3FkOBEdYAEAGAgsAyEBgAQAZCCwAIAOBBQBkILAAgAz7JqHIiUqZfeONN8nZ4gS29d2KggcmWbF1Z4tnGN8QlZk+GI6wAIAQBBYAkIHAAgAyEFgAQAYCCwDIQGABABl5VGuw7Z63FSMYSN/NpTK1hEkuHC5AZdzMyPl14AgLAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkGG2WoMLa++bbKdxzvbIZN+pVL9wdqyDs01y4eKO/95xhAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIyKNaQ0623bA3eUPUhdMBmOym8XdaMdOH8b67cLYLZ1kxdsS2ARDOThTCcIQFAIQgsACADAQWAJCBwAIAMhBYAEAGAgsAyDBbrSGPLbmvEgDpDRnfum3VGqzYEJXSCC5skjtnkTAJR1gAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyqNdh2x93kOq1ovLM9smIQgG1lDEw2ydlhNzk5+7lb0U1n5+/AJBQAUJwQWABABgILAMhAYAEAGQgsACADgQUAZJidhMI2VlTpt22sQ045t27baAPjO8TZ2S5sG/hiRa0IZ4tSWNFO4zAJBQCMdAgsACADgQUAZCCwAIAMBBYAkIHAAgAyzA5rcPYpc2ebZFvjTXJ2h9h2v9/Zxhtf3OSGrJjpw2Q7c7LogyMzDguMsOKbN5LbCW6DU0IYcdasWTNhwgSnWwHDkce8hM7OOmcclUHtJtcJJi1ZsmTNmjU9/+vCT9PxankONn4gOMKCEeqZZ55ZtmyZ062A/OAIq8AbyglHWK510003rV27lrny08QRVo7VIrAKu6GcEFhuNnHixIMHD7rw00Rg5Vitsx2wIu+c/c2T/pIZbXkyqbceUxsOqrV16r46rf6A1tist7Xp7e2iIyYyaZFRGWPco3CPl5eEpNJSadQoeXy1PHmiMm2qUjNVmXSaVD6G+/1Od4Uxxp599tlFixbl7qkF/5wbX9x4k6xIB3d+FRFYdnQzJyo96m5DJqO3HM7s2p1+f3vmo13q3lrtaKuIdghVZcabxzlXFB4pkSvKlek1nlkzvXPneGbOkMZWcY/Hwd5VVlYePXo0R68RWMNd3CIILDu6mROJHolMRqs/kNr2burNrentO7SDjSKVKuD6uc8nnzbeO2e279KLffPOlydPdCS5+t0x7O0+Amu4i1sEgWVHN3NyeY/01mOpbe8mNm5ObXtHa2xmmmbt9mRZHl/tm3dB4Nr5vnnnS+Vj7OzsunXrbrzxxlNfR2ANe3GLILDs6GZOLu2REGp9Q/KFl+Lrn8/s2i2SSfs23bUH/H7PzBnBry70XzNfmTyR2fJoTlNT0/jx43PtDATWMBe3CALLjm7m5LoeCaHW1cfXPBv/w3Nq3X6m63ZsdCCSpNRMCS66PnjTDcrUyTbElhWJg8AqOASWHd3MyVU90ppb4qvXxZ56Rt1Xl8dFdKtxrkybGrp1SfDmRXL1WIs3hcAqZI8sYsk4LLNtct84F+Mc/0TzbnA8kXjx5c5fPpbevsPyC1XDI8veObPD3/1W4OoreTBg0UZcOGrJihGFtpVbsGjXIbAKjFZgZT7e3bHq0cTzm0Q84XRbhsCDgcDCBSU/uNNz9gxL1o/AcmhDeUFgFRiVwBLJZGL9xuhDP1f31Trdljwo02oi99wV+Oq1BR90isByakN5QWAVGInA0pqaOx56JLZ6rYjFnW5L3ngoGLp5cck935fHVRdytQgshzaUFwRWgbk/sNLvf9i+/GeprW+76OJ6vjj3Xfy50vt/4p17buFWicByZkN5QXmZkUQXyc2vHL/tjtSWtwinFWNMiNSWt47fdkdy8ytMp9wRyBMCa8RQ1dhTq9u+czeti1aDdWhfbdt37o49tZqpqtNtAZvYV17GOCqFPqwYSGXRiYlIZ2KPPxG9f6XeHjW5KreRSiOR5ctCS2/nXlMPIbpwAJ0Lf0dWbD0vmISi+Il0pvNXj0UfeFh0djrdlsLT26PtP/03kcmEv/Mtk5kF7odTwmKnqrHHnyjWtOoiOjujDzwce/wJnBsWPQRWURMi9vTa6P0rizitujva2Rm9f2Xs6bW0bybAUBBYxSy5+dXoigeL77pVTnp7NLriweTmV51uCFgIgVW00u9vP/GjFdrhI043xD7a4SMnfrQi/f52pxsCVkFgFSetqbl9+X3q3iIZwWCcure2ffl9WlOz0w0BS5gtL0Nlghxnh0rYPGhYpFLt9/yk87EnzGyUtPC3bi996Gfc5zO+CJXyMjk5+8CJSZhIdaRLPLsh9vRap1vhpNjTaxPPbnC6FVB4CKxik9m1O7ryEYpPNReQiMWjKx/JfLzb6YZAgSGwioqIJzoeeXQEXro6lbq3tuPnj7q/zhfkBYFVVBKbXkps2OR0K9wisWFTYtNLTrcCCgmBVTy05pbOXz2OY4oeIp7o/NXjWnOL0w2BgkFgFY/46nXp9z90uhXukn7/w/jqdU63AgrGbLUG45ytbeBsqQnzd4iH3CdqbV3rdUtw9epUyvSa8g3PKDVTB3+bC2d1craIgjtLOOAIq0jE16xHWuWk7q2Nr1nvdCugMBBYxUCtq4+ve86SVQvBdL3Pn7z0WzbfP13/IJtpAGOMsfi659S6ekv2D9gL9bCKQXLTS+q+usKvVzBp9Gipopyxk0fyqqodbBSZjKHFZVmedBr3+XsXz4uua43NTFXl08Yz5eQXNZPRDjUZbcBJ6r665KaXwt/7duF3EdgLgUWe3nosvn6j0bIqksR0vXvCVM67/wy4ai2wcH5k+bLu4xpJ0hqbjn9tqbq/nklDHZsLIZWWjvrFv3tmnT2c+Vk5F52x40u/q+5vGPX/fqlMnsR0nUmy+vc9x267Qxw5mt/k9ULE128M3nyjVD6mwHsf7IXAIi+17d3Mro+NvJN7veE7vyVVVqh792kNB9WDh/Rjx0VHh0ilezOF8z5hJMty9djedNB1pshGWyZLUlXFsKeYF50x7vMxIeSKip4ZvdRP9opEcoh0zpVlmV0fp7a9G7h2fmF2OjgEgUVcRk1s3CySqaHfKQTz+fxXXub73IVMFyKR0KMd+uEjWlOzWrtf3V+v7m/Qmpr11mPakaO9pTu7LiT1REC+53ambgoJJgQPBJjX2/OS1tTCFZmXlrIBDrBEOiOSyRyvJ1OJjZsDV13OPPjOE2b2wzN+N9f4XVKT91OtmA7AhVN1dFHrG1Lb3jHaNq9HKokwxpjEeSgoh4JydZXn3HO6m5hIing88/dPjn/j21r9gazjLBPtNPdJMsakkrAU6J3k2ff5C8f84XcDLiFJsaeeiT+1JudBVmrbO2p9gzK9Jo8WOPqltYJtG7II/rWhLbXtXe1Qk6G3CsH9fl4Szv23nPNggAcDUqSEJVMDXiHiLI8Q0nX9SKvW3DLErT0heDgklZX1vhCL6+3tojMmkkmpojy7zfKE8fKE8YNsMfa71UzXmZzjvFU71JTa9m5egQVug8AiTGQyqTe3Gr/TL0VKeCAw+Hu0xmY9Gu0bWKInpISqCdXYHTrO9RPtbf/0z0MXpdL14A3XRZYv6zmmS7zyWvS+h5imaQcOhW67mfv9Q26te00n2tVP9g2yodSbW0M3L2IeTK5DFQKLML35cHr7jjzeH4+n3tyqnHWmXFXRHV6nHImo++tFKt3zv9zr7XMNXlVZMmX0IEvTtLp6MUSecsaE1nI4+zq6ONGu/v0TputMUTyzzzF+Q1A/clRrbB7k/entO7Tmw/LECeZ2PDgGgUVY5uPd2qFGo++WJO3AobZv38VLI3L5GKmqUh43VpkyWamZKk86TR5fLY0qk8JhdX89U9WeIOM+b/Y6RDotdN3oSaEQ8qSJ/su/yBUl9309SdIONSZe+m/GeZ8Q5IzJMhNCKh/jmTPr1NX2+d+seFIPHtJPnBgksLRDjZmPdyOw6EJgEZb+4END9wd7CCHSaXHkqN5yhO36G2OMSRLzeKRwSBpVJo+rlieMT3/4Ud8xVn1+/CKeyGPuP133nHl62cr7BjwP5Tz15p+Tb2wdqLWeGWcoU6f0vKDure38zX+JRKI7knThn//lwIKret+we4+IxQcJLJFMpT/40H/llwr9UYBNEFhUiWQys2Nn/osJxhiT+5zl6W0n9ONt6r46JgST5d4fPOc8FOyzdCwm8p2sdPCxqQP9jRBMUQJXXymVRnpeS7ywufPRx5jouqYmmCR5P31eVke0zK7dTNNyXnHvkdmxUySTxq+LgavkEVi2VUGwYl4M295pxfiJnFvXW4/l/bSzokiREhGLi1Sqz0jRfoNFszfc9+BI7+hkeT4WM0y6rpx5uv/qK3pfaDuRfOX1rl507Slp9CjPWWf2viEazezeM+SK1b21euuxwW41DsW2CU2cnZnCtqIUecERFlVqwwHtaGseC+i6MmVS2cMPiERSO9SoHWpUDxzS6hu0I0f1Y20imWSZDBOMSVnhJUk80mcYhIh2iIya32MxgxtoVUJ4Pz1XmXRazwuZ7TsyH+3qbZsQ8tgqOesNWlOzdvDQkM8MaUdb1YYDZgILHITAokqt3S+iHXksIIQ0epT3U+dJo8q6X0ilRWen3npMa2pWGw6otfvV+gPq7j2Z3Xt6Hh6USkuz16G3nRjOg4Enpf705/T/fsCknlNOSd1XK9JdNyX7/YPMpdKSnvQRGTX+x436ifbswFKmTZVGj+rdIX//RD/eNmSYimiHWrvfN++Cgn8iYAMEFlXqvrr8ihYIIZWEs0dFcZ+X+0ZLY0YrZ0z3nXxPfN1zbd/8btdYBK7I2eM5GWPakaNM14d+8nkAiU0vd/z8l4xLJ69ddT/003/wBOt/bSvz0c7ky6/1eUmWvZ+em30pKv3RLpFKDdk2oWY0KypbgC0QWFRp9QfyXYSXlAwxZpJzrflwdw4Kwf3+7GveTNf1I0eMloXIxTN7ZuAr1/E+mSKYzxf4yrW5joxOjlZNp2NPrtYam7IPr6RIxPuZub1ricUzH+401DbB1Px3HbgEAosqrdHYEzk9OJdGj+LyoAcgQmj1Dd032oTgoSAv6z0lFKqqHztu5nnm0C2LgzfdcErDJN7/gWTOOJfC3ZfPUlu3JZ57oU+i6bo8ZZJy5unZeyOzZ6/Bi2taIyaypwqBRZXediK/BSQp/Zf3o//678q0GnnSBLm6WhpdJoVCvbXxGBPxhLq/oXeJsrLsi0QintBaj5l6nlmWuTx0dRqhaUywrrIKasOBjodW6a3H+p3reT8zVy4f031IxXnmk3264SJZelubiT6Ak/IILGdnfLDz1qkZtg2A0Nvb821ZZseuzI6dzOORgkFpzChp7FhlyiRl8iRl+lR5XLVUVck0TWts6v7ZCyFPGN9zmMMYEx0d+rHjhbxFOFDXWg4zXWNcUusb2u/5SWrbu/2vTMlyZuff2u76IdNPBtbHu0UyaTSwcu06275Lzs5yYtvvyKIN4QiLKtERy3sZiTPGmabp0aje3s5q96fffofJEvMo3B+QIiVSaUStb2C8Ox2UaVN5VmkXrblFb80zsPKq7sAYY0zd35B85XXGeeqtbcmXXhlo4rL0O++ls+vqSJLxWwHD2XXgDggsqkQmPfyF+40+VzXR0aFFo9qhRiZJ3Qnj8XjOOrPPk3r7G0RHNJ/A4npbe+qd97jPa/DKl360Nfbk6vT2HUySUlve6r4jKQQvKQl/8zZ5fLXQdc640NT46nV9hmXZtuvAUQgsqkTGwCMyeR2BnzwT7PqvFClRzpie/feZj3eL5FDjBrLjTJbS23ccW/T1PI6x0hmRSPYO1OralhBSaST09SU97RGpVGrL28N5Msn4rgNXQmAVL865z9f748+LpnvOmenJCiyRTKqf1HK/f/Ca7iKj9j4d3dUAzvOolOz19taHEEwkEl3jVLnPx/xZdbXSGZFIOLRbwUkILKq4RxGDDDoXQopEIivuVaZMEnr+VzqFUCaM7zPHjCSF71wa/NriQU4JucRjT61JrN/IZIkJIZWVlj74U+X0acOZTJBzEU+0/+S+zPsfMsZ4KCiFQj1/qcfjejQ67ALMHGXdycInRxX3eIeoLePz+i660DPzrMJszuv1fW7ox1lS297rPQ/1eLxzZnlmnzO8LYrOmFRa2lXuVCorzb78Lzpjoj067AEW3OMd5pLgNEsCy4q7pC4cwWCFPEaElIRYx6DPEgphbtKaYenb1OEc3GUtffKCGpPHVmXPnSNiMb0zNuwBFrwkNLwFuxe3ax4HF/6OrKg/kVeTMFU9Vf0eS87N/hlS+KD/O9x1yuOqedZDRfrxNpFIDnt9hnYduBJOCamSRo0a8j0ik2GaJvKrr8C595TnDVV1qNLsjDHGJalPLQchWEY10gAuyQNfyxdM8chTJmW/pB05KmIxpmmMc2Zg6Pwwdh24EwKLKnl89WB/zbmIdrT/aIUUKTU0uIGzrnKjodtu8V/+xey/UffVdqz8hX7ixBDHS5wxxjJ/29NdzpRz0dHR/uP7pNIhGiCEHvjSpaF//HrPgInUn7fFf79WpNPqnr1MkngwoNRMyV5ECocDV1/BGNdjsfT/vNdbNLkguw5cDIFFlTJ5Iht0wIBIp1NvbDU+FEvoeuCqL3tmnd3nxXi84//+R+y3vzfarKwR5yKVTr2xZYjDK86ZEHL5mFBWO9VP9sV+t7q7XjNjckW5Mmli9kL+L1/q++IljDMR7Tj29aWp1/6Ux3EWZ8rkiUbfDC6DwKJKnjaVK54hSmIZ/xlrmnfunNIHfypXj81+ObFhU/zZ57sLvZ+afYMf1wghjRmjnD6NDVgigov29szuPUyS+xy+SZx5PN2DIXRdHlctVVb0WU5RuMIYY7x8THDhgtSWt42PnOCKR5421eTOB6cgsKhSaqbwSIk4drwA69J1efKk0gdX9BsDkd7+UfShn4vOTibLgQVXej/7aSZO5gKXUlvfSr765mCnibrumTNr9G9/wwP+nEeCXJaTW986/rWlg48sVc48XcqesFqI7KD0XXKRMnWy+sk+g4/p8EiJUoPAosq+SSiMs+22scm+G2+8FVMMKJMmyhXluvnA0nV5bFXpA//iv/TiPi+3Hove/1DXVSSmatznC3/7H7MrfPo+d37mw51ay5FBBtNzRZFKI4NMNy2FQkMcpnm93s/MzQ4jtW4/D4XlsZXd+6Fmiv/KL3UOMuFzX3JFeXap+N6mWvCtM/m1Mfnjsq1HxhtvHoY1UCWVj1Gm15hdi65LY0aXPvAvweuvyQ4OkUp1PPLr5CuvdyeFxJNvbEn/dXv2op45s/3XXJXHYzfDap5cUe6dOyf7tcSml1Ov/ylrR0iBa6+Wxow2eLVOmV7TZwQ/kILAoor7/cMeRN5N16XKitL7fxJc/NU+51NCxH+/tvM3/5U9FZjeeiz+hz9mT0rIPZ7QLTdKVZVmiiYPeRXMc+45ytTJvS8kEqktbyde2CySveOwvHNm+y660OBlLM/sczApIV24hkWY97xzud+X3+TPPbrOBB/8aXDxV/pd/Um+sTX64MOis7P/6y+/pn7zNs+smT2veM6dFbjyy7EnnzY4qiCzZ6/WcKDn+jqXpfT2j5jWFYK5Uk9R/Jd9gQd7J3PVmlvUv38iMhl1X13PFTceDAQWLki+8vrJCXgGxP0+73nnWvBRgE0QWIR5zp4hTxivDmMOGE2Xp0ws+7efBa6d3y+V0n/9oH3Z8u7CWNkkSWtsSrz4SnZgcZ8v9A83J17+b4PlieO/W9356ONZNw050zQRT+SeHVrX5dMm+C65qE/zPtihtbSIVDr56uvZtwh8F12onDE9s2Pn4Jfe5QnjPWfPsO4TAavhlJAwqbrKO2d23ovpuufsM0c9uipw3YJ+P291z94Td/+fzMe7c//sdT2xYZN2qDH7Nc95cwLzLzd4VshDIamyQqqsPPmnQqquUmac4bvw/BxbFML3+QuVrCEIIpNJvvq6iCeYpiVffi27qr08YVzg6iuGDE3vnNlydZUFHwXYBEdYhHGPx3fpxfE/bjQ6CkkIxpjvC58vffCn3jmz+v2lure27a4fpt/73wEPUiQps3tP4sVXw3fc3tsGryd065LE5leNHGSF7/hG8KYb+oyEEIx7PNLJW349a2VCSKPKgjfdkD2RorqvLrX17a7DsfSOnem/vJ89KD9wzVWx3z6tNTUP0n7fpRcPMdEZuJvZSSisWNzZMQRWjN6wbqyDb9758oRx2oFDRjrGFCV4/TWR+5b3GzjOGFPr6k/84N7UG1uGGM2UTifWbwguWiiNHt3zmue82f4vXxp/ai2Th2i8NGa0NGY0G5IQTNd9l32hX0Gb5Euvage7z1VFtCPx4sv+yy7pGRyrnHWm79LPx3+/dqC1yhPG+eadP/A2C/+1Mcn4Ol04g4ZFTcIpIW3K5EmGZl3Xdam0NPLDH5T9x8pT0yqzY2fbHd9LvvanocdeSlJ6+0ept9/Nfo37fKHbbpEqy03dLsxubNsJqaI8fMc3sgdwaQcb4+s2ZB9Lpv68Tc06P+Veb/ArC3kkMlAzfPMuUPo+RA3kILCI8yiBa+fz7PLBpxJCmXHGqF+vKrnnrn5TzzNdT/152/Gl/5Ta+rahUjCci46O+Nr12aMKGGPez3wqMP+KggSW3h5N/c97wZtu8F3wmezXEy9szvwt6+KaJGn7G1JvvZP9Hu9nP+U556ycJ8jc7wtcOz97EkagCJ8feb5553tmnp3+6wcDvcH76fMiP7zbM2eWfuRoVqZwpmuJza92rHpUO3Awj+lnJCm15a3ka3/yfmpO70AtWfZ96QuJjS/qJ9r7DEBNJrXGZh7wG6sYwUVnLPbkav3o0eCy72tHjnZHjySp9Q2djz3B0pnsdopkMrFhk2/eZ7nXe3JGVcl3wWfT7/zl1HV7Zp49yPkgUMGtGOlv2+UAF17DcuRiWecvfn3i3hW5Q4FzuapSKivNUdBK07RDTSKRGMZkWXJVJS/rWzdG1bRDh0Q662FswXgoKI+vNl77RcTjWlOLFCnpMx6Vc9HRqTXlmF+e+3zyhPG94yS63tnc0n9XcF724Irw976dbzdtu2SDeYKNNgCBNezF3RNYal1968LF6t7agbY04AFOzgFQRugix1DPXEMT8j5PlKTcS+VMVcF6n8ce+J3K9Jry59dmj5g3CIHl1A4ZCK5hFQNl6uTgousH/GvOu8tUnfpn2Hd+pVzrzGvTA/0ZaKncXWNG3hlcdP0w0gpcKI8jrNzLO/pEuLP/BJnse2Ebr9bWtV63ZMCDrBFMmV5TvuEZR0rKOPvrsGJDVnQTk1CMRErN1NCtS4Y3dXsxk6TQrUtQAKto4PtdPII3L/LOPdfpVriLd+65wZsXOd0KKBgEVvGQq8eGv7OUBwPmV1UceDAQ/s7SfkWfgTQEVlEJLLgqcN0Cp1vhFoHrFgQWXOV0K6CQEFhFhQcDJXfdqUyf5nRDnKdMn1Zy15043iwyCKxi4zl7RmTZ93goaH5VdPFQMLLseyh9VXzsq9aQk8nn0W2r0p9znS4c19clcMN16b9u73zsCacb4pjQLYsDN1xn0cptG0FtG5M/Lju7iSOsIsR9vpJl3+9Xq3Pk8F1yUcmy72cX0oKigcAqTvK46tL7f1yAaXWoUabXlN7/Y3kcJqMvTgisouWdO6fsgRVyVaX5VVEhV1WWPbCi37RgUEwQWMXMP//yyIp7pdKI0w2xg1Qaiay41z//cqcbAhZCYBU1zkO3LI4sX8bDYfMrczMeDkeWLwvdsnj4j3MDBQisYqcooaW3R350dxFnFg+HIz+6O7T0dhQULXpurNZgkhWjDWwr5mVRj0Q6E3v8iej9K/X2aMF3jrOk0khk+bLQ0tu519R0OLaVHLCi7ogLG29ReRUEVoG76c7AYowxVY09vTa64kHt8JGC7x+nyFWVkRX3hm5ZbP7YyoW/edKNtyiwcEo4YihK6NYlo371sDKtSMY6KNNqRv3q4dCtS3AmOHIgsEYSSfLPv2L0k//pu+Qi2henOfddctHoJ//TP/8KlAAbUXBKWOBuuveUMIvW1Nzx0COx1WtFLF7YNduAh4KhmxeX3PP9wo4OdeFZFenG4xqWUQgsQ+tMJhPrN0Yf+rm6j1JVZWVaTeSeuwJfvZb7/YVdswt/86Qbj8AyCoFlXObj3R2rHk08v0nEExZtolB4MBBYuKDkB3daVIPBhb950o13PrBsa6sVc2oZZ1veuaTYg4gnEi++3PnLx9Lbd/ROjOoqsuydMzv83W8Frr7SuvpWVvzmXbhO4xvKCYFV+A2ZNNICq4vW3BJfvS721DPqvrqCzDhfGJwr06aGbl0SvHmR1ZWOXRguLvzOI7AKvyGTRmZgdTVIrauPr3k2/ofn1Lr97NSZou0kScrUKcEbrw/edIMydbIN9zRdGC4u/M4jsAq/IZNGbmCdbJZafyD5wub4+uczu3aLZNLm7XO/3zNzRvCrC/3XzFcmT7Rt+IULw8WF33kEVuE3ZNJID6yT9NZjqW3vJjZuTm17R2tstvzylizL46t98y4IXDvfN+98qXyMzf11Ybi48DuPwCr8hkxCYPVpZCaj1R9IbXs39ebW9PYd2sFGkUoVcs/4fPJp471zZvsuvdg373x58kTuMfVI4PBb4r5wceF3HoFV+A2ZhMDKSWQyesvhzK7d6fe3Zz7ape6t1Y62imiHUNU8LtJzzhWFR0rkinJleo1n1kzv3DmemTOksVVO5VR200ztHwTWcN+ZF7PjsKzolXG0fvNGkIg2kUzqrcfUhoNqbZ26r06rP6A1NultJ/T2dtERE5m0yKiMMe5RuMfLS0JSaak0qkweP06ePFGZNlWpmapMOk0qH1PwwZ/2sO3fY5NNMs62wYPm+47AchcSgTXCIbCGvU7zfceDowBABgILAMhAYAEAGQgsqtauXet0EwDshovu7pLXrqusrLzssssWLlx40UUXjR1r7aN20AMX3Ye9TvN9t6S2rMm2OjsOy2Q3c7KikowVWzfZ95Hzsyl4O40vnrOdVnwczn5pB4JTQgAgA4EFAGQgsACADAQWAJCBwAIAMhBYAECGfeVlnOXCqXSojMexopvO7qWcRsiX1njf3VlnCUdYAEAGAgsAyEBgAQAZCCwAIAOBBQBkILAAgIw8qjXYdpPVtkodVgzUoHIr2rbBCiZ7ZFvfnS0xYlvtDePFHoyz89eBIywAIAOBBQBkILAAgAwEFgCQgcACADIQWABARh7DGpx97N62ev5W3KO1besmpy0wyYXDBXKiUmLEWVZMgYFqDQAwgiCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIyGMSCks2774n161op8l12nbH3YUzkpCelcMkZ7+fJjdkUQkHHGEBABkILAAgA4EFAGQgsACADAQWAJCBwAIAMsgMa3DhU/vO3sV34Z1sk+s0zoVbd+E4D2fLq1gER1gAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDwmoTDOihoMxhc3eefVZEV9K7hwAg6T7XR2ZgrH780XvEkunGPFor7jCAsAyEBgAQAZCCwAIAOBBQBkILAAgAwEFgCQkUe1BmfLGFixIdv6bnydLpwXwzjbboTbtnXbyi04O6TD2flQMKwBAIoTAgsAyEBgAQAZCCwAIAOBBQBkILAAgIw8qjWYLGNg2/wIVrBitIELZ9BwdoeYXNy2cR623e/PyYq+W7FOi3YIjrAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGXlUazC7JUeLEzhbK8K2IR3FN3bEhTVCrOhmTi4cVGFbjwaCIywAIAOBBQBkILAAgAwEFgCQgcACADIQWABARh7VGkxytjyAyQ1ZcdvYtjoEVgyAoDLbhbPrNF7LxHiTbCvI4WydjIHgCAsAyEBgAQAZCCwAIAOBBQBkILAAgAwEFgCQkcewBioPvlsxAMK2u/gunHPB5OJWjJ+wbeSKs1u3YnHqRT5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIMFutYefOnRUVFVa3ctWqVStXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",width:200}),(0,c.jsxs)("div",{style:{marginLeft:"35px"},children:["群号:","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,a.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)}},86013:function(e,t,n){var o=n(59301),r=n(19248);t.Z=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:o.createElement(r.Z,null)}),t}},40192:function(e,t,n){n.d(t,{Z:function(){return r}});var o=n(59301);function r(){const[,e]=o.useReducer((e=>e+1),0);return e}},52838:function(e,t,n){n.d(t,{Z:function(){return l}});var o=n(37645);const r={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"]}},i={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"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:l,offset:c,borderRadius:s,visibleFirst:u}=e,d=t/2,f={};return Object.keys(r).forEach((e=>{const p=l&&i[e]||r[e],m=Object.assign(Object.assign({},p),{offset:[0,0],dynamicInset:!0});switch(f[e]=m,a.has(e)&&(m.autoArrow=!1),e){case"top":case"topLeft":case"topRight":m.offset[1]=-d-c;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=d+c;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-d-c;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=d+c}const g=(0,o.wZ)({contentRadius:s,limitVerticalRadius:!0});if(l)switch(e){case"topLeft":case"bottomLeft":m.offset[0]=-g.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":m.offset[0]=g.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":m.offset[1]=2*-g.arrowOffsetHorizontal+d;break;case"leftBottom":case"rightBottom":m.offset[1]=2*g.arrowOffsetHorizontal-d}m.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=o&&"object"==typeof o?o:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,g,t,n),u&&(m.htmlRegion="visibleFirst")})),f}},47999:function(e,t,n){n.d(t,{c4:function(){return i}});var o=n(59301),r=n(57700);const i=["xxl","xl","lg","md","sm","xs"];t.ZP=()=>{const[,e]=(0,r.ZP)(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(i).reverse();return n.forEach(((e,o)=>{const r=e.toUpperCase(),i=`screen${r}Min`,a=`screen${r}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(o{const e=new Map;let n=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return o=t,e.forEach((e=>e(o))),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(o),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.keys(t).forEach((e=>{const n=t[e],r=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},o),{[e]:n}))},i=window.matchMedia(n);i.addListener(r),this.matchHandlers[n]={mql:i,listener:r},r(i)}))},unregister(){Object.keys(t).forEach((e=>{const n=t[e],o=this.matchHandlers[n];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),e.clear()}}}),[e])}},82855:function(e,t,n){n.d(t,{F:function(){return a},Z:function(){return i}});var o=n(92310),r=n.n(o);function i(e,t,n){return r()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const a=(e,t)=>t||e},1560:function(e,t,n){n.d(t,{Z:function(){return y}});var o=n(2738),r=n(45915),i=n(75914),a=n(59301),l=n(92310),c=n.n(l),s=n(11592),u=n(75030),d=n(48755);const{Option:f}=i.default;function p(e){return(null==e?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const m=(e,t)=>{var n;const{prefixCls:r,className:l,popupClassName:m,dropdownClassName:g,children:h,dataSource:v}=e,b=(0,s.Z)(h);let y;1===b.length&&a.isValidElement(b[0])&&!p(b[0])&&([y]=b);const x=y?()=>y:void 0;let w;w=b.length&&p(b[0])?h:v?v.map((e=>{if(a.isValidElement(e))return e;switch(typeof e){case"string":return a.createElement(f,{key:e,value:e},e);case"object":{const{value:t}=e;return a.createElement(f,{key:t,value:t},e.text)}default:return}})):[];const{getPrefixCls:C}=a.useContext(d.E_),S=C("select",r),[E]=(0,u.Cn)("SelectLike",null===(n=e.dropdownStyle)||void 0===n?void 0:n.zIndex);return a.createElement(i.default,Object.assign({ref:t,suffixIcon:null},(0,o.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:S,popupClassName:m||g,dropdownStyle:Object.assign(Object.assign({},e.dropdownStyle),{zIndex:E}),className:c()(`${S}-auto-complete`,l),mode:i.default.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:x}),w)};var g=a.forwardRef(m);const{Option:h}=i.default,v=(0,r.Z)(g,"dropdownAlign",(e=>(0,o.Z)(e,["visible"]))),b=g;b.Option=h,b._InternalPanelDoNotUseOrYouWillBeFired=v;var y=b},62673:function(e,t,n){n.d(t,{Z:function(){return I}});var o=n(59301),r=n(92310),i=n.n(r),a=n(16632),l=n(8654),c=n(12919),s=n(63872),u=n(48755),d=n(2171),f=n(83397),p=n(56553);var m=o.createContext(null),g=n(36170),h=n(74632),v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,className:b,rootClassName:y,children:x,indeterminate:w=!1,style:C,onMouseEnter:S,onMouseLeave:E,skipGroup:k=!1,disabled:I}=e,j=v(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:N,direction:M,checkbox:Z}=o.useContext(u.E_),O=o.useContext(m),{isFormItemInput:$}=o.useContext(p.aM),A=o.useContext(d.Z),z=null!==(n=(null==O?void 0:O.disabled)||I)&&void 0!==n?n:A,T=o.useRef(j.value),P=o.useRef(null),L=(0,l.sQ)(t,P);o.useEffect((()=>{null==O||O.registerValue(j.value)}),[]),o.useEffect((()=>{if(!k)return j.value!==T.current&&(null==O||O.cancelValue(T.current),null==O||O.registerValue(j.value),T.current=j.value),()=>null==O?void 0:O.cancelValue(j.value)}),[j.value]),o.useEffect((()=>{var e;(null===(e=P.current)||void 0===e?void 0:e.input)&&(P.current.input.indeterminate=w)}),[w]);const R=N("checkbox",r),B=(0,f.Z)(R),[D,H,W]=(0,g.ZP)(R,B),F=Object.assign({},j);O&&!k&&(F.onChange=function(){j.onChange&&j.onChange.apply(j,arguments),O.toggleOption&&O.toggleOption({label:x,value:j.value})},F.name=O.name,F.checked=O.value.includes(j.value));const K=i()(`${R}-wrapper`,{[`${R}-rtl`]:"rtl"===M,[`${R}-wrapper-checked`]:F.checked,[`${R}-wrapper-disabled`]:z,[`${R}-wrapper-in-form-item`]:$},null==Z?void 0:Z.className,b,y,W,B,H),V=i()({[`${R}-indeterminate`]:w},s.A,H),[q,X]=(0,h.Z)(F.onClick);return D(o.createElement(c.Z,{component:"Checkbox",disabled:z},o.createElement("label",{className:K,style:Object.assign(Object.assign({},null==Z?void 0:Z.style),C),onMouseEnter:S,onMouseLeave:E,onClick:q},o.createElement(a.Z,Object.assign({},F,{onClick:X,prefixCls:R,className:V,disabled:z,ref:L})),void 0!==x&&o.createElement("span",{className:`${R}-label`},x))))};var y=o.forwardRef(b),x=n(95190),w=n(2738),C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{defaultValue:n,children:r,options:a=[],prefixCls:l,className:c,rootClassName:s,style:d,onChange:p}=e,h=C(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:v,direction:b}=o.useContext(u.E_),[S,E]=o.useState(h.value||n||[]),[k,I]=o.useState([]);o.useEffect((()=>{"value"in h&&E(h.value||[])}),[h.value]);const j=o.useMemo((()=>a.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[a]),N=v("checkbox",l),M=`${N}-group`,Z=(0,f.Z)(N),[O,$,A]=(0,g.ZP)(N,Z),z=(0,w.Z)(h,["value","disabled"]),T=a.length?j.map((e=>o.createElement(y,{prefixCls:N,key:e.value.toString(),disabled:"disabled"in e?e.disabled:h.disabled,value:e.value,checked:S.includes(e.value),onChange:e.onChange,className:`${M}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):r,P={toggleOption:e=>{const t=S.indexOf(e.value),n=(0,x.Z)(S);-1===t?n.push(e.value):n.splice(t,1),"value"in h||E(n),null==p||p(n.filter((e=>k.includes(e))).sort(((e,t)=>j.findIndex((t=>t.value===e))-j.findIndex((e=>e.value===t)))))},value:S,disabled:h.disabled,name:h.name,registerValue:e=>{I((t=>[].concat((0,x.Z)(t),[e])))},cancelValue:e=>{I((t=>t.filter((t=>t!==e))))}},L=i()(M,{[`${M}-rtl`]:"rtl"===b},c,s,A,Z,$);return O(o.createElement("div",Object.assign({className:L,style:d},z,{ref:t}),o.createElement(m.Provider,{value:P},T)))}));var E=S;const k=y;k.Group=E,k.__ANT_CHECKBOX=!0;var I=k},36170:function(e,t,n){n.d(t,{C2:function(){return c}});var o=n(66604),r=n(63356),i=n(51636),a=n(16931);const l=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,r.Wf)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},(0,r.Wf)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,r.oN)(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${(0,o.bf)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function c(e,t){const n=(0,i.IX)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[l(n)]}t.ZP=(0,a.I$)("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[c(n,e)]}))},74632:function(e,t,n){n.d(t,{Z:function(){return i}});var o=n(59301),r=n(16089);function i(e){const t=o.useRef(null),n=()=>{r.Z.cancel(t.current),t.current=null};return[()=>{n(),t.current=(0,r.Z)((()=>{t.current=null}))},o=>{t.current&&(o.stopPropagation(),n()),null==e||e(o)}]}},5269:function(e,t,n){var o=n(5472);t.Z=o.Z},38406:function(e,t,n){var o=n(59301),r=n(48755),i=n(584);t.Z=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,o.useContext)(r.E_),a=n("empty");switch(t){case"Table":case"List":return o.createElement(i.Z,{image:i.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(i.Z,{image:i.Z.PRESENTED_IMAGE_SIMPLE,className:`${a}-small`});case"Table.filter":return null;default:return o.createElement(i.Z,null)}}},22173:function(e,t,n){n.d(t,{Z:function(){return X}});var o=n(59301),r=n(33853),i=n(38819),a=n(92310),l=n.n(a),c=n(96478),s=n(6089),u=n(18929),d=n(2738),f=n(75030);var p=e=>"object"!=typeof e&&"function"!=typeof e||null===e,m=n(52838),g=n(45915),h=n(22703),v=n(32383),b=n(55743),y=n(48755),x=n(83397),w=n(93041),C=n(78857),S=n(57700),E=n(66604),k=n(63356),I=n(46e3),j=n(93873),N=n(34925),M=n(37645),Z=n(36305),O=n(16931),$=n(51636);var A=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}};const z=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:s,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:I.fJ},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:I.Qt},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:I.Uw},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:I.ly}}},(0,M.ZP)(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},(0,k.Wf)(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,k.Qy)(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${(0,E.bf)(s)} ${(0,E.bf)(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,E.bf)(s)} ${(0,E.bf)(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,k.Qy)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,E.bf)(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${(0,E.bf)(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[(0,I.oN)(e,"slide-up"),(0,I.oN)(e,"slide-down"),(0,j.Fm)(e,"move-up"),(0,j.Fm)(e,"move-down"),(0,N._y)(e,"zoom-big")]]};var T=(0,O.I$)("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:o,componentCls:r}=e,i=(0,$.IX)(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:o});return[z(i),A(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},(0,M.wZ)({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),(0,Z.w)(e))),{resetStyle:!1});const P=e=>{var t;const{menu:n,arrow:a,prefixCls:g,children:E,trigger:k,disabled:I,dropdownRender:j,getPopupContainer:N,overlayClassName:M,rootClassName:Z,overlayStyle:O,open:$,onOpenChange:A,visible:z,onVisibleChange:P,mouseEnterDelay:L=.15,mouseLeaveDelay:R=.1,autoAdjustOverflow:B=!0,placement:D="",overlay:H,transitionName:W}=e,{getPopupContainer:F,getPrefixCls:K,direction:V,dropdown:q}=o.useContext(y.E_);(0,v.ln)("Dropdown");const X=o.useMemo((()=>{const e=K();return void 0!==W?W:D.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[K,D,W]),G=o.useMemo((()=>D?D.includes("Center")?D.slice(0,D.indexOf("Center")):D:"rtl"===V?"bottomRight":"bottomLeft"),[D,V]);const Q=K("dropdown",g),_=(0,x.Z)(Q),[U,Y,J]=T(Q,_),[,ee]=(0,S.ZP)(),te=o.Children.only(p(E)?o.createElement("span",null,E):E),ne=(0,h.Tm)(te,{className:l()(`${Q}-trigger`,{[`${Q}-rtl`]:"rtl"===V},te.props.className),disabled:null!==(t=te.props.disabled)&&void 0!==t?t:I}),oe=I?[]:k,re=!!(null==oe?void 0:oe.includes("contextMenu")),[ie,ae]=(0,u.Z)(!1,{value:null!=$?$:z}),le=(0,s.Z)((e=>{null==A||A(e,{source:"trigger"}),null==P||P(e),ae(e)})),ce=l()(M,Z,Y,J,_,null==q?void 0:q.className,{[`${Q}-rtl`]:"rtl"===V}),se=(0,m.Z)({arrowPointAtCenter:"object"==typeof a&&a.pointAtCenter,autoAdjustOverflow:B,offset:ee.marginXXS,arrowWidth:a?ee.sizePopupArrow:0,borderRadius:ee.borderRadius}),ue=o.useCallback((()=>{(null==n?void 0:n.selectable)&&(null==n?void 0:n.multiple)||(null==A||A(!1,{source:"menu"}),ae(!1))}),[null==n?void 0:n.selectable,null==n?void 0:n.multiple]),[de,fe]=(0,f.Cn)("Dropdown",null==O?void 0:O.zIndex);let pe=o.createElement(c.Z,Object.assign({alignPoint:re},(0,d.Z)(e,["rootClassName"]),{mouseEnterDelay:L,mouseLeaveDelay:R,visible:ie,builtinPlacements:se,arrow:!!a,overlayClassName:ce,prefixCls:Q,getPopupContainer:N||F,transitionName:X,trigger:oe,overlay:()=>{let e;return e=(null==n?void 0:n.items)?o.createElement(w.Z,Object.assign({},n)):"function"==typeof H?H():H,j&&(e=j(e)),e=o.Children.only("string"==typeof e?o.createElement("span",null,e):e),o.createElement(C.J,{prefixCls:`${Q}-menu`,rootClassName:l()(J,_),expandIcon:o.createElement("span",{className:`${Q}-menu-submenu-arrow`},"rtl"===V?o.createElement(r.Z,{className:`${Q}-menu-submenu-arrow-icon`}):o.createElement(i.Z,{className:`${Q}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ue,validator:e=>{let{mode:t}=e}},e)},placement:G,onVisibleChange:le,overlayStyle:Object.assign(Object.assign(Object.assign({},null==q?void 0:q.style),O),{zIndex:de})}),ne);return de&&(pe=o.createElement(b.Z.Provider,{value:fe},pe)),U(pe)},L=(0,g.Z)(P,"align",void 0,"dropdown",(e=>e));P._InternalPanelDoNotUseOrYouWillBeFired=e=>o.createElement(L,Object.assign({},e),o.createElement("span",null));var R=P,B=n(18785),D=n(20743),H=n(77736),W=n(70045),F=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{getPopupContainer:t,getPrefixCls:n,direction:r}=o.useContext(y.E_),{prefixCls:i,type:a="default",danger:c,disabled:s,loading:u,onClick:d,htmlType:f,children:p,className:m,menu:g,arrow:h,autoFocus:v,overlay:b,trigger:x,align:w,open:C,onOpenChange:S,placement:E,getPopupContainer:k,href:I,icon:j=o.createElement(B.Z,null),title:N,buttonsRender:M=(e=>e),mouseEnterDelay:Z,mouseLeaveDelay:O,overlayClassName:$,overlayStyle:A,destroyPopupOnHide:z,dropdownRender:T}=e,P=F(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),L=n("dropdown",i),K=`${L}-button`,V={menu:g,arrow:h,autoFocus:v,align:w,disabled:s,trigger:s?[]:x,onOpenChange:S,getPopupContainer:k||t,mouseEnterDelay:Z,mouseLeaveDelay:O,overlayClassName:$,overlayStyle:A,destroyPopupOnHide:z,dropdownRender:T},{compactSize:q,compactItemClassnames:X}=(0,W.ri)(L,r),G=l()(K,X,m);"overlay"in e&&(V.overlay=b),"open"in e&&(V.open=C),V.placement="placement"in e?E:"rtl"===r?"bottomLeft":"bottomRight";const Q=o.createElement(D.ZP,{type:a,danger:c,disabled:s,loading:u,onClick:d,htmlType:f,href:I,title:N},p),_=o.createElement(D.ZP,{type:a,danger:c,icon:j}),[U,Y]=M([Q,_]);return o.createElement(H.Z.Compact,Object.assign({className:G,size:q,block:!0},P),U,o.createElement(R,Object.assign({},V),Y))};K.__ANT_BUTTON=!0;var V=K;const q=R;q.Button=V;var X=q},584:function(e,t,n){n.d(t,{Z:function(){return x}});var o=n(59301),r=n(92310),i=n.n(r),a=n(9017),l=n(17835),c=n(57700);var s=()=>{const[,e]=(0,c.ZP)(),[t]=(0,a.Z)("Empty"),n=new l.t(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(null==t?void 0:t.description)||"Empty"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),o.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),o.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),o.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),o.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};var u=()=>{const[,e]=(0,c.ZP)(),[t]=(0,a.Z)("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:s}=e,{borderColor:u,shadowColor:d,contentColor:f}=(0,o.useMemo)((()=>({borderColor:new l.t(n).onBackground(s).toHexString(),shadowColor:new l.t(r).onBackground(s).toHexString(),contentColor:new l.t(i).onBackground(s).toHexString()})),[n,r,i,s]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(null==t?void 0:t.description)||"Empty"),o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:d,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:u},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:f}))))},d=n(16931),f=n(51636);const p=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var m=(0,d.I$)("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,r=(0,f.IX)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return[p(r)]})),g=n(48755),h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{className:t,rootClassName:n,prefixCls:r,image:l=v,description:c,children:s,imageStyle:u,style:d,classNames:f,styles:p}=e,y=h(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:x,direction:w,className:C,style:S,classNames:E,styles:k}=(0,g.dj)("empty"),I=x("empty",r),[j,N,M]=m(I),[Z]=(0,a.Z)("Empty"),O=void 0!==c?c:null==Z?void 0:Z.description,$="string"==typeof O?O:"empty";let A=null;return A="string"==typeof l?o.createElement("img",{alt:$,src:l}):l,j(o.createElement("div",Object.assign({className:i()(N,M,I,C,{[`${I}-normal`]:l===b,[`${I}-rtl`]:"rtl"===w},t,n,E.root,null==f?void 0:f.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},k.root),S),null==p?void 0:p.root),d)},y),o.createElement("div",{className:i()(`${I}-image`,E.image,null==f?void 0:f.image),style:Object.assign(Object.assign(Object.assign({},u),k.image),null==p?void 0:p.image)},A),O&&o.createElement("div",{className:i()(`${I}-description`,E.description,null==f?void 0:f.description),style:Object.assign(Object.assign({},k.description),null==p?void 0:p.description)},O),s&&o.createElement("div",{className:i()(`${I}-footer`,E.footer,null==f?void 0:f.footer),style:Object.assign(Object.assign({},k.footer),null==p?void 0:p.footer)},s)))};y.PRESENTED_IMAGE_DEFAULT=v,y.PRESENTED_IMAGE_SIMPLE=b;var x=y},24971:function(e,t,n){var o=n(59301),r=n(56553),i=n(48755);t.Z=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var a,l;const{variant:c,[e]:s}=o.useContext(i.E_),u=o.useContext(r.pg),d=null==s?void 0:s.variant;let f;f=void 0!==t?t:!1===n?"borderless":null!==(l=null!==(a=null!=u?u:d)&&void 0!==a?a:c)&&void 0!==l?l:"outlined";const p=i.tr.includes(f);return[f,p]}},43830:function(e,t,n){n.d(t,{Z:function(){return Xe}});var o=n(56553),r=n(95190),i=n(59301),a=n(92310),l=n.n(a),c=n(77900),s=n(86641),u=n(83397);function d(e){const[t,n]=i.useState(e);return i.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}var f=n(66604),p=n(63356),m=n(34925),g=n(34961),h=n(51636),v=n(16931);var b=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},\n opacity ${e.motionDurationFast} ${e.motionEaseInOut},\n transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}};const y=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,f.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,f.bf)(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),x=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},w=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,p.Wf)(e)),y(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},x(e,e.controlHeightSM)),"&-large":Object.assign({},x(e,e.controlHeightLG))})}},C=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:o,antCls:r,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:s,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},(0,p.Wf)(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden${r}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:s,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:m.kr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},S=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},E=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:o}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:o,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},k=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),I=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${n} ${n}-label`]:k(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${o}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},j=e=>{const{componentCls:t,formItemCls:n,antCls:o}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n ${o}-col-24${n}-label,\n ${o}-col-xl-24${n}-label`]:k(e)}},[`@media (max-width: ${(0,f.bf)(e.screenXSMax)})`]:[I(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-xs-24${n}-label`]:k(e)}}}],[`@media (max-width: ${(0,f.bf)(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-sm-24${n}-label`]:k(e)}}},[`@media (max-width: ${(0,f.bf)(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-md-24${n}-label`]:k(e)}}},[`@media (max-width: ${(0,f.bf)(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-lg-24${n}-label`]:k(e)}}}}},N=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,\n ${n}-col-24${t}-label,\n ${n}-col-xl-24${t}-label`]:k(e),[`@media (max-width: ${(0,f.bf)(e.screenXSMax)})`]:[I(e),{[t]:{[`${n}-col-xs-24${t}-label`]:k(e)}}],[`@media (max-width: ${(0,f.bf)(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:k(e)}},[`@media (max-width: ${(0,f.bf)(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:k(e)}},[`@media (max-width: ${(0,f.bf)(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:k(e)}}}},M=(e,t)=>(0,h.IX)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t});var Z=(0,v.I$)("Form",((e,t)=>{let{rootPrefixCls:n}=t;const o=M(e,n);return[w(o),C(o),b(o),S(o,o.componentCls),S(o,o.formItemCls),E(o),j(o),N(o),(0,g.Z)(o),m.kr]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0})),{order:-1e3});const O=[];function $(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"==typeof e?e:`${t}-${o}`,error:e,errorStatus:n}}var A=e=>{let{help:t,helpStatus:n,errors:a=O,warnings:f=O,className:p,fieldId:m,onVisibleChanged:g}=e;const{prefixCls:h}=i.useContext(o.Rk),v=`${h}-item-explain`,b=(0,u.Z)(h),[y,x,w]=Z(h,b),C=i.useMemo((()=>(0,s.Z)(h)),[h]),S=d(a),E=d(f),k=i.useMemo((()=>null!=t?[$(t,"help",n)]:[].concat((0,r.Z)(S.map(((e,t)=>$(e,"error","error",t)))),(0,r.Z)(E.map(((e,t)=>$(e,"warning","warning",t)))))),[t,n,S,E]),I=i.useMemo((()=>{const e={};return k.forEach((t=>{let{key:n}=t;e[n]=(e[n]||0)+1})),k.map(((t,n)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key})))}),[k]),j={};return m&&(j.id=`${m}_help`),y(i.createElement(c.ZP,{motionDeadline:C.motionDeadline,motionName:`${h}-show-help`,visible:!!I.length,onVisibleChanged:g},(e=>{const{className:t,style:n}=e;return i.createElement("div",Object.assign({},j,{className:l()(v,t,w,b,p,x),style:n}),i.createElement(c.V4,Object.assign({keys:I},(0,s.Z)(h),{motionName:`${h}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:o,className:r,style:a}=e;return i.createElement("div",{key:t,className:l()(r,{[`${v}-${o}`]:o}),style:a},n)})))})))},z=n(74034),T=n(48755),P=n(2171),L=n(31756),R=n(23069),B=n(76846);const D=e=>"object"==typeof e&&null!=e&&1===e.nodeType,H=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,W=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&l>=n?i-e-o:a>t&&ln?a-t+r:0,K=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},V=(e,t)=>{var n,o,r,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:c,boundary:s,skipOverflowHiddenElements:u}=t,d="function"==typeof s?s:e=>e!==s;if(!D(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let m=e;for(;D(m)&&d(m);){if(m=K(m),m===f){p.push(m);break}null!=m&&m===document.body&&W(m)&&!W(document.documentElement)||null!=m&&W(m,u)&&p.push(m)}const g=null!=(o=null==(n=window.visualViewport)?void 0:n.width)?o:innerWidth,h=null!=(i=null==(r=window.visualViewport)?void 0:r.height)?i:innerHeight,{scrollX:v,scrollY:b}=window,{height:y,width:x,top:w,right:C,bottom:S,left:E}=e.getBoundingClientRect(),{top:k,right:I,bottom:j,left:N}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let M="start"===l||"nearest"===l?w-k:"end"===l?S+j:w+y/2-k+j,Z="center"===c?E+x/2-N+I:"end"===c?C+I:E-N;const O=[];for(let e=0;e=0&&E>=0&&S<=h&&C<=g&&(t===f&&!W(t)||w>=r&&S<=s&&E>=u&&C<=i))return O;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),k=parseInt(d.borderTopWidth,10),I=parseInt(d.borderRightWidth,10),j=parseInt(d.borderBottomWidth,10);let N=0,$=0;const A="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-I:0,z="offsetHeight"in t?t.offsetHeight-t.clientHeight-k-j:0,T="offsetWidth"in t?0===t.offsetWidth?0:o/t.offsetWidth:0,P="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)N="start"===l?M:"end"===l?M-h:"nearest"===l?F(b,b+h,h,k,j,b+M,b+M+y,y):M-h/2,$="start"===c?Z:"center"===c?Z-g/2:"end"===c?Z-g:F(v,v+g,g,m,I,v+Z,v+Z+x,x),N=Math.max(0,N+b),$=Math.max(0,$+v);else{N="start"===l?M-r-k:"end"===l?M-s+j+z:"nearest"===l?F(r,s,n,k,j+z,M,M+y,y):M-(r+n/2)+z/2,$="start"===c?Z-u-m:"center"===c?Z-(u+o/2)+A/2:"end"===c?Z-i+I+A:F(u,i,o,m,I+A,Z,Z+x,x);const{scrollLeft:e,scrollTop:a}=t;N=0===P?0:Math.max(0,Math.min(a+N/P,t.scrollHeight-n/P+z)),$=0===T?0:Math.max(0,Math.min(e+$/T,t.scrollWidth-o/T+A)),M+=a-N,Z+=e-$}O.push({el:t,top:N,left:$})}return O};function q(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(V(e,t));const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:r,top:i,left:a}of V(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;r.scroll({top:e,left:t,behavior:o})}}const X=["parentNode"];function G(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function Q(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return X.includes(n)?`form_item_${n}`:n}function _(e,t,n,o,r,i){let a=o;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||r&&n.validated)&&(a="success"),a}var U=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rnull!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const o=Y(e);t?n.current[o]=t:delete n.current[o]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{focus:n}=t,r=U(t,["focus"]),i=J(e,o);i&&(q(i,Object.assign({scrollMode:"if-needed",block:"nearest"},r)),n&&o.focusField(e))},focusField:e=>{var t,n;const r=o.getFieldInstance(e);"function"==typeof(null==r?void 0:r.focus)?r.focus():null===(n=null===(t=J(e,o))||void 0===t?void 0:t.focus)||void 0===n||n.call(t)},getFieldInstance:e=>{const t=Y(e);return n.current[t]}})),[e,t]);return[o]}var te=n(98350),ne=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const n=i.useContext(P.Z),{getPrefixCls:r,direction:a,requiredMark:c,colon:s,scrollToFirstError:d,className:f,style:p}=(0,T.dj)("form"),{prefixCls:m,className:g,rootClassName:h,size:v,disabled:b=n,form:y,colon:x,labelAlign:w,labelWrap:C,labelCol:S,wrapperCol:E,hideRequiredMark:k,layout:I="horizontal",scrollToFirstError:j,requiredMark:N,onFinishFailed:M,name:O,style:$,feedbackIcons:A,variant:B}=e,D=ne(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),H=(0,L.Z)(v),W=i.useContext(te.Z);const F=i.useMemo((()=>void 0!==N?N:!k&&(void 0===c||c)),[k,N,c]),K=null!=x?x:s,V=r("form",m),q=(0,u.Z)(V),[X,G,Q]=Z(V,q),_=l()(V,`${V}-${I}`,{[`${V}-hide-required-mark`]:!1===F,[`${V}-rtl`]:"rtl"===a,[`${V}-${H}`]:H},Q,q,G,f,g,h),[U]=ee(y),{__INTERNAL__:Y}=U;Y.name=O;const J=i.useMemo((()=>({name:O,labelAlign:w,labelCol:S,labelWrap:C,wrapperCol:E,vertical:"vertical"===I,colon:K,requiredMark:F,itemRef:Y.itemRef,form:U,feedbackIcons:A})),[O,w,S,E,I,K,F,U,A]),oe=i.useRef(null);i.useImperativeHandle(t,(()=>{var e;return Object.assign(Object.assign({},U),{nativeElement:null===(e=oe.current)||void 0===e?void 0:e.nativeElement})}));const re=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=Object.assign(Object.assign({},n),e)),U.scrollToField(t,n)}};return X(i.createElement(o.pg.Provider,{value:B},i.createElement(P.n,{disabled:b},i.createElement(R.Z.Provider,{value:H},i.createElement(o.RV,{validateMessages:W},i.createElement(o.q3.Provider,{value:J},i.createElement(z.ZP,Object.assign({id:O},D,{name:O,onFinishFailed:e=>{if(null==M||M(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==j)return void re(j,t);void 0!==d&&re(d,t)}},form:U,ref:oe,style:Object.assign(Object.assign({},p),$),className:_}))))))))};var re=i.forwardRef(oe),ie=n(41799),ae=n(8654),le=n(22703),ce=n(32383),se=n(11592);const ue=()=>{const{status:e,errors:t=[],warnings:n=[]}=i.useContext(o.aM);return{status:e,errors:t,warnings:n}};ue.Context=o.aM;var de=ue,fe=n(16089);var pe=n(29194),me=n(34280),ge=n(2738),he=n(65970),ve=n(70425),be=n(5472);const ye=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}};var xe=(0,v.bk)(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const o=M(e,n);return[ye(o)]})),we=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,status:n,labelCol:r,wrapperCol:a,children:c,errors:s,warnings:u,_internalItemRender:d,extra:f,help:p,fieldId:m,marginBottom:g,onErrorVisibleChanged:h,label:v}=e,b=`${t}-item`,y=i.useContext(o.q3),x=i.useMemo((()=>{let e=Object.assign({},a||y.wrapperCol||{});if(null===v&&!r&&!a&&y.labelCol){[void 0,"xs","sm","md","lg","xl","xxl"].forEach((t=>{const n=t?[t]:[],o=(0,ve.U2)(y.labelCol,n),r="object"==typeof o?o:{},i=(0,ve.U2)(e,n);"span"in r&&!("offset"in("object"==typeof i?i:{}))&&r.span<24&&(e=(0,ve.t8)(e,[].concat(n,["offset"]),r.span))}))}return e}),[a,y]),w=l()(`${b}-control`,x.className),C=i.useMemo((()=>{const{labelCol:e,wrapperCol:t}=y;return we(y,["labelCol","wrapperCol"])}),[y]),S=i.useRef(null),[E,k]=i.useState(0);(0,me.Z)((()=>{f&&S.current?k(S.current.clientHeight):k(0)}),[f]);const I=i.createElement("div",{className:`${b}-control-input`},i.createElement("div",{className:`${b}-control-input-content`},c)),j=i.useMemo((()=>({prefixCls:t,status:n})),[t,n]),N=null!==g||s.length||u.length?i.createElement(o.Rk.Provider,{value:j},i.createElement(A,{fieldId:m,errors:s,warnings:u,help:p,helpStatus:n,className:`${b}-explain-connected`,onVisibleChanged:h})):null,M={};m&&(M.id=`${m}_extra`);const Z=f?i.createElement("div",Object.assign({},M,{className:`${b}-extra`,ref:S}),f):null,O=N||Z?i.createElement("div",{className:`${b}-additional`,style:g?{minHeight:g+E}:{}},N,Z):null,$=d&&"pro_table_render"===d.mark&&d.render?d.render(e,{input:I,errorList:N,extra:Z}):i.createElement(i.Fragment,null,I,O);return i.createElement(o.q3.Provider,{value:C},i.createElement(be.Z,Object.assign({},x,{className:w}),$),i.createElement(xe,{prefixCls:t}))},Se=n(14809),Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},ke=n(7657),Ie=function(e,t){return i.createElement(ke.Z,(0,Se.Z)({},e,{ref:t,icon:Ee}))};var je=i.forwardRef(Ie),Ne=n(9017),Me=n(85981),Ze=n(55544),Oe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,label:n,htmlFor:r,labelCol:a,labelAlign:c,colon:s,required:u,requiredMark:d,tooltip:f,vertical:p}=e;var m;const[g]=(0,Ne.Z)("Form"),{labelAlign:h,labelCol:v,labelWrap:b,colon:y}=i.useContext(o.q3);if(!n)return null;const x=a||v||{},w=c||h,C=`${t}-item-label`,S=l()(C,"left"===w&&`${C}-left`,x.className,{[`${C}-wrap`]:!!b});let E=n;const k=!0===s||!1!==y&&!1!==s;k&&!p&&"string"==typeof n&&n.trim()&&(E=n.replace(/[:|:]\s*$/,""));const I=function(e){return e?"object"!=typeof e||i.isValidElement(e)?{title:e}:e:null}(f);if(I){const{icon:e=i.createElement(je,null)}=I,n=Oe(I,["icon"]),o=i.createElement(Ze.Z,Object.assign({},n),i.cloneElement(e,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));E=i.createElement(i.Fragment,null,E,o)}const j="optional"===d,N="function"==typeof d,M=!1===d;let Z;N?E=d(E,{required:!!u}):j&&!u&&(E=i.createElement(i.Fragment,null,E,i.createElement("span",{className:`${t}-item-optional`,title:""},(null==g?void 0:g.optional)||(null===(m=Me.Z.Form)||void 0===m?void 0:m.optional)))),M?Z="hidden":(j||N)&&(Z="optional");const O=l()({[`${t}-item-required`]:u,[`${t}-item-required-mark-${Z}`]:Z,[`${t}-item-no-colon`]:!k});return i.createElement(be.Z,Object.assign({},x,{className:S}),i.createElement("label",{htmlFor:r,className:O,title:"string"==typeof n?n:""},E))},Ae=n(29679),ze=n(19248),Te=n(96512),Pe=n(58617);const Le={success:Ae.Z,warning:Te.Z,error:ze.Z,validating:Pe.Z};function Re(e){let{children:t,errors:n,warnings:r,hasFeedback:a,validateStatus:c,prefixCls:s,meta:u,noStyle:d}=e;const f=`${s}-item`,{feedbackIcons:p}=i.useContext(o.q3),m=_(n,r,u,null,!!a,c),{isFormItemInput:g,status:h,hasFeedback:v,feedbackIcon:b}=i.useContext(o.aM),y=i.useMemo((()=>{var e;let t;if(a){const o=!0!==a&&a.icons||p,c=m&&(null===(e=null==o?void 0:o({status:m,errors:n,warnings:r}))||void 0===e?void 0:e[m]),s=m&&Le[m];t=!1!==c&&s?i.createElement("span",{className:l()(`${f}-feedback-icon`,`${f}-feedback-icon-${m}`)},c||i.createElement(s,null)):null}const o={status:m||"",errors:n,warnings:r,hasFeedback:!!a,feedbackIcon:t,isFormItemInput:!0};return d&&(o.status=(null!=m?m:h)||"",o.isFormItemInput=g,o.hasFeedback=!!(null!=a?a:v),o.feedbackIcon=void 0!==a?o.feedbackIcon:b),o}),[m,a,d,g,h]);return i.createElement(o.aM.Provider,{value:y},t)}var Be=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{if(O&&j.current){const e=getComputedStyle(j.current);z(parseInt(e.marginBottom,10))}}),[O,$]);const T=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=e?N:p.errors,n=e?M:p.warnings;return _(t,n,p,"",!!m,f)}(),P=l()(S,n,r,{[`${S}-with-help`]:Z||N.length||M.length,[`${S}-has-feedback`]:T&&m,[`${S}-has-success`]:"success"===T,[`${S}-has-warning`]:"warning"===T,[`${S}-has-error`]:"error"===T,[`${S}-is-validating`]:"validating"===T,[`${S}-hidden`]:g,[`${S}-${w}`]:w});return i.createElement("div",{className:P,style:a,ref:j},i.createElement(he.Z,Object.assign({className:`${S}-row`},(0,ge.Z)(C,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),i.createElement($e,Object.assign({htmlFor:v},e,{requiredMark:E,required:null!=b?b:y,prefixCls:t,vertical:I})),i.createElement(Ce,Object.assign({},e,p,{errors:N,warnings:M,prefixCls:t,status:T,help:c,marginBottom:A,onErrorVisibleChanged:e=>{e||z(null)}}),i.createElement(o.qI.Provider,{value:x},i.createElement(Re,{prefixCls:t,meta:p,errors:p.errors,warnings:p.warnings,hasFeedback:m,validateStatus:T},h)))),!!A&&i.createElement("div",{className:`${S}-margin-offset`,style:{marginBottom:-A}}))}const He=i.memo((e=>{let{children:t}=e;return t}),((e,t)=>function(e,t){const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>{const o=e[n],r=t[n];return o===r||"function"==typeof o||"function"==typeof r}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const We=function(e){const{name:t,noStyle:n,className:a,dependencies:c,prefixCls:s,shouldUpdate:d,rules:f,children:p,required:m,label:g,messageVariables:h,trigger:v="onChange",validateTrigger:b,hidden:y,help:x,layout:w}=e,{getPrefixCls:C}=i.useContext(T.E_),{name:S}=i.useContext(o.q3),E=function(e){if("function"==typeof e)return e;const t=(0,se.Z)(e);return t.length<=1?t[0]:t}(p),k="function"==typeof E,I=i.useContext(o.qI),{validateTrigger:j}=i.useContext(z.zb),N=void 0!==b?b:j,M=!(null==t),O=C("form",s),$=(0,u.Z)(O),[A,P,L]=Z(O,$);(0,ce.ln)("Form.Item");const R=i.useContext(z.ZM),B=i.useRef(null),[D,H]=function(e){const[t,n]=i.useState(e),o=i.useRef(null),r=i.useRef([]),a=i.useRef(!1);return i.useEffect((()=>(a.current=!1,()=>{a.current=!0,fe.Z.cancel(o.current),o.current=null})),[]),[t,function(e){a.current||(null===o.current&&(r.current=[],o.current=(0,fe.Z)((()=>{o.current=null,n((e=>{let t=e;return r.current.forEach((e=>{t=e(t)})),t}))}))),r.current.push(e))}]}({}),[W,F]=(0,ie.Z)((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),K=(e,t)=>{H((n=>{const o=Object.assign({},n),i=[].concat((0,r.Z)(e.name.slice(0,-1)),(0,r.Z)(t)).join("__SPLIT__");return e.destroy?delete o[i]:o[i]=e,o}))},[V,q]=i.useMemo((()=>{const e=(0,r.Z)(W.errors),t=(0,r.Z)(W.warnings);return Object.values(D).forEach((n=>{e.push.apply(e,(0,r.Z)(n.errors||[])),t.push.apply(t,(0,r.Z)(n.warnings||[]))})),[e,t]}),[D,W.errors,W.warnings]),X=function(){const{itemRef:e}=i.useContext(o.q3),t=i.useRef({});return function(n,o){const r=o&&"object"==typeof o&&(0,ae.C4)(o),i=n.join("_");return t.current.name===i&&t.current.originRef===r||(t.current.name=i,t.current.originRef=r,t.current.ref=(0,ae.sQ)(e(n),r)),t.current.ref}}();function _(t,o,r){return n&&!y?i.createElement(Re,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:W,errors:V,warnings:q,noStyle:!0},t):i.createElement(De,Object.assign({key:"row"},e,{className:l()(a,L,$,P),prefixCls:O,fieldId:o,isRequired:r,errors:V,warnings:q,meta:W,onSubItemMetaChange:K,layout:w}),t)}if(!M&&!k&&!c)return A(_(E));let U={};return"string"==typeof g?U.label=g:t&&(U.label=String(t)),h&&(U=Object.assign(Object.assign({},U),h)),A(i.createElement(z.gN,Object.assign({},e,{messageVariables:U,trigger:v,validateTrigger:N,onMetaChange:e=>{const t=null==R?void 0:R.getKey(e.name);if(F(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==x&&I){let n=e.name;if(e.destroy)n=B.current||n;else if(void 0!==t){const[e,o]=t;n=[e].concat((0,r.Z)(o)),B.current=n}I(e,n)}}}),((n,o,a)=>{const l=G(t).length&&o?o.name:[],s=Q(l,S),u=void 0!==m?m:!!(null==f?void 0:f.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(a);return(null==t?void 0:t.required)&&!(null==t?void 0:t.warningOnly)}return!1}))),p=Object.assign({},n);let g=null;if(Array.isArray(E)&&M)g=E;else if(k&&(!d&&!c||M));else if(!c||k||M)if(i.isValidElement(E)){const t=Object.assign(Object.assign({},E.props),p);if(t.id||(t.id=s),x||V.length>0||q.length>0||e.extra){const n=[];(x||V.length>0)&&n.push(`${s}_help`),e.extra&&n.push(`${s}_extra`),t["aria-describedby"]=n.join(" ")}V.length>0&&(t["aria-invalid"]="true"),u&&(t["aria-required"]="true"),(0,ae.Yr)(E)&&(t.ref=X(l,E));new Set([].concat((0,r.Z)(G(v)),(0,r.Z)(G(N)))).forEach((e=>{t[e]=function(){for(var t,n,o,r,i,a=arguments.length,l=new Array(a),c=0;c{var{prefixCls:t,children:n}=e,r=Ke(e,["prefixCls","children"]);const{getPrefixCls:a}=i.useContext(T.E_),l=a("form",t),c=i.useMemo((()=>({prefixCls:l,status:"error"})),[l]);return i.createElement(z.aV,Object.assign({},r),((e,t,r)=>i.createElement(o.Rk.Provider,{value:c},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))};const qe=re;qe.Item=Fe,qe.List=Ve,qe.ErrorList=A,qe.useForm=ee,qe.useFormInstance=function(){const{form:e}=i.useContext(o.q3);return e},qe.useWatch=z.qo,qe.Provider=o.RV,qe.create=()=>{};var Xe=qe},98283:function(e,t,n){const o=(0,n(59301).createContext)({});t.Z=o},5472:function(e,t,n){var o=n(59301),r=n(92310),i=n.n(r),a=n(48755),l=n(98283),c=n(26705),s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=o.useContext(a.E_),{gutter:f,wrap:p}=o.useContext(l.Z),{prefixCls:m,span:g,order:h,offset:v,push:b,pull:y,className:x,children:w,flex:C,style:S}=e,E=s(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),k=n("col",m),[I,j,N]=(0,c.cG)(k),M={};let Z={};d.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete E[t],Z=Object.assign(Object.assign({},Z),{[`${k}-${t}-${n.span}`]:void 0!==n.span,[`${k}-${t}-order-${n.order}`]:n.order||0===n.order,[`${k}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${k}-${t}-push-${n.push}`]:n.push||0===n.push,[`${k}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${k}-rtl`]:"rtl"===r}),n.flex&&(Z[`${k}-${t}-flex`]=!0,M[`--${k}-${t}-flex`]=u(n.flex))}));const O=i()(k,{[`${k}-${g}`]:void 0!==g,[`${k}-order-${h}`]:h,[`${k}-offset-${v}`]:v,[`${k}-push-${b}`]:b,[`${k}-pull-${y}`]:y},x,Z,j,N),$={};if(f&&f[0]>0){const e=f[0]/2;$.paddingLeft=e,$.paddingRight=e}return C&&($.flex=u(C),!1!==p||$.minWidth||($.minWidth=0)),I(o.createElement("div",Object.assign({},E,{style:Object.assign(Object.assign(Object.assign({},$),S),M),className:O,ref:t}),w))}));t.Z=f},13783:function(e,t,n){var o=n(59301),r=n(34280),i=n(40192),a=n(47999);t.Z=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,o.useRef)(t),l=(0,i.Z)(),c=(0,a.ZP)();return(0,r.Z)((()=>{const t=c.subscribe((t=>{n.current=t,e&&l()}));return()=>c.unsubscribe(t)}),[]),n.current}},65970:function(e,t,n){n.d(t,{Z:function(){return p}});var o=n(59301),r=n(92310),i=n.n(r),a=n(47999),l=n(48755),c=n(13783);var s=n(98283),u=n(26705),d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n{const{prefixCls:n,justify:r,align:p,className:m,style:g,children:h,gutter:v=0,wrap:b}=e,y=d(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:x,direction:w}=o.useContext(l.E_),C=(0,c.Z)(!0,null),S=f(p,C),E=f(r,C),k=x("row",n),[I,j,N]=(0,u.VM)(k),M=function(e,t){const n=[void 0,void 0],o=Array.isArray(e)?e:[e,void 0],r=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return o.forEach(((e,t)=>{if("object"==typeof e&&null!==e)for(let o=0;o0?M[0]/-2:void 0;$&&(O.marginLeft=$,O.marginRight=$);const[A,z]=M;O.rowGap=z;const T=o.useMemo((()=>({gutter:[A,z],wrap:b})),[A,z,b]);return I(o.createElement(s.Z.Provider,{value:T},o.createElement("div",Object.assign({},y,{className:Z,style:Object.assign(Object.assign({},O),g),ref:t}),h)))}))},49397:function(e,t,n){n.d(t,{Z:function(){return w}});var o=n(59301),r=n(92310),i=n.n(r),a=n(36901),l=n(8654),c=n(62487),s=n(86013),u=n(82855),d=n(48755),f=n(2171),p=n(83397),m=n(31756),g=n(56553),h=n(24971),v=n(70045),b=n(23826),y=n(53075);var x=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,bordered:r=!0,status:w,size:C,disabled:S,onBlur:E,onFocus:k,suffix:I,allowClear:j,addonAfter:N,addonBefore:M,className:Z,style:O,styles:$,rootClassName:A,onChange:z,classNames:T,variant:P}=e,L=x(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:R,direction:B,allowClear:D,autoComplete:H,className:W,style:F,classNames:K,styles:V}=(0,d.dj)("input"),q=R("input",n),X=(0,o.useRef)(null),G=(0,p.Z)(q),[Q,_,U]=(0,y.TI)(q,A),[Y]=(0,y.ZP)(q,G),{compactSize:J,compactItemClassnames:ee}=(0,v.ri)(q,B),te=(0,m.Z)((e=>{var t;return null!==(t=null!=C?C:J)&&void 0!==t?t:e})),ne=o.useContext(f.Z),oe=null!=S?S:ne,{status:re,hasFeedback:ie,feedbackIcon:ae}=(0,o.useContext)(g.aM),le=(0,u.F)(re,w),ce=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!ie;(0,o.useRef)(ce);const se=(0,b.Z)(X,!0),ue=(ie||I)&&o.createElement(o.Fragment,null,I,ie&&ae),de=(0,s.Z)(null!=j?j:D),[fe,pe]=(0,h.Z)("input",P,r);return Q(Y(o.createElement(a.Z,Object.assign({ref:(0,l.sQ)(t,X),prefixCls:q,autoComplete:H},L,{disabled:oe,onBlur:e=>{se(),null==E||E(e)},onFocus:e=>{se(),null==k||k(e)},style:Object.assign(Object.assign({},F),O),styles:Object.assign(Object.assign({},V),$),suffix:ue,allowClear:de,className:i()(Z,A,U,G,ee,W),onChange:e=>{se(),null==z||z(e)},addonBefore:M&&o.createElement(c.Z,{form:!0,space:!0},M),addonAfter:N&&o.createElement(c.Z,{form:!0,space:!0},N),classNames:Object.assign(Object.assign(Object.assign({},T),K),{input:i()({[`${q}-sm`]:"small"===te,[`${q}-lg`]:"large"===te,[`${q}-rtl`]:"rtl"===B},null==T?void 0:T.input,K.input,_),variant:i()({[`${q}-${fe}`]:pe},(0,u.Z)(q,le)),affixWrapper:i()({[`${q}-affix-wrapper-sm`]:"small"===te,[`${q}-affix-wrapper-lg`]:"large"===te,[`${q}-affix-wrapper-rtl`]:"rtl"===B},_),wrapper:i()({[`${q}-group-rtl`]:"rtl"===B},_),groupWrapper:i()({[`${q}-group-wrapper-sm`]:"small"===te,[`${q}-group-wrapper-lg`]:"large"===te,[`${q}-group-wrapper-rtl`]:"rtl"===B,[`${q}-group-wrapper-${fe}`]:pe},(0,u.Z)(`${q}-group-wrapper`,le,ie),_)})}))))}))},23826:function(e,t,n){n.d(t,{Z:function(){return r}});var o=n(59301);function r(e,t){const n=(0,o.useRef)([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,o,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=e.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return(0,o.useEffect)((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}},10975:function(e,t,n){n.d(t,{Z:function(){return Se}});var o=n(59301),r=n(92310),i=n.n(r),a=n(48755),l=n(56553),c=n(53075);var s=e=>{const{getPrefixCls:t,direction:n}=(0,o.useContext)(a.E_),{prefixCls:r,className:s}=e,u=t("input-group",r),d=t("input"),[f,p,m]=(0,c.ZP)(d),g=i()(u,m,{[`${u}-lg`]:"large"===e.size,[`${u}-sm`]:"small"===e.size,[`${u}-compact`]:e.compact,[`${u}-rtl`]:"rtl"===n},p,s),h=(0,o.useContext)(l.aM),v=(0,o.useMemo)((()=>Object.assign(Object.assign({},h),{isFormItemInput:!1})),[h]);return f(o.createElement("span",{className:g,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},o.createElement(l.aM.Provider,{value:v},e.children)))},u=n(49397),d=n(95190),f=n(6089),p=n(26112),m=n(82855),g=n(31756),h=n(16931),v=n(51636),b=n(64910);const y=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};var x=(0,h.I$)(["Input","OTP"],(e=>{const t=(0,v.IX)(e,(0,b.e)(e));return[y(t)]}),b.T),w=n(16089),C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{value:n,onChange:r,onActiveChange:i,index:a,mask:l}=e,c=C(e,["value","onChange","onActiveChange","index","mask"]),s=n&&"string"==typeof l?l:n,d=o.useRef(null);o.useImperativeHandle(t,(()=>d.current));const f=()=>{(0,w.Z)((()=>{var e;const t=null===(e=d.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return o.createElement(u.Z,Object.assign({type:!0===l?"password":"text"},c,{ref:d,value:s,onInput:e=>{r(a,e.target.value)},onFocus:f,onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:o}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t?i(a+1):"z"===t&&(n||o)&&e.preventDefault(),f()},onKeyUp:e=>{"Backspace"!==e.key||n||i(a-1),f()},onMouseDown:f,onMouseUp:f}))})),E=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{index:t,prefixCls:n,separator:r}=e,i="function"==typeof r?r(t):r;return i?o.createElement("span",{className:`${n}-separator`},i):null};var j=o.forwardRef(((e,t)=>{const{prefixCls:n,length:r=6,size:c,defaultValue:s,value:u,onChange:h,formatter:v,separator:b,variant:y,disabled:w,status:C,autoFocus:j,mask:N,type:M,onInput:Z,inputMode:O}=e,$=E(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);const{getPrefixCls:A,direction:z}=o.useContext(a.E_),T=A("otp",n),P=(0,p.Z)($,{aria:!0,data:!0,attr:!0}),[L,R,B]=x(T),D=(0,g.Z)((e=>null!=c?c:e)),H=o.useContext(l.aM),W=(0,m.F)(H.status,C),F=o.useMemo((()=>Object.assign(Object.assign({},H),{status:W,hasFeedback:!1,feedbackIcon:null})),[H,W]),K=o.useRef(null),V=o.useRef({});o.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=V.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;tv?v(e):e,[X,G]=o.useState((()=>k(q(s||""))));o.useEffect((()=>{void 0!==u&&G(k(u))}),[u]);const Q=(0,f.Z)((e=>{G(e),Z&&Z(e),h&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>X[t]!==e))&&h(e.join(""))})),_=(0,f.Z)(((e,t)=>{let n=(0,d.Z)(X);for(let t=0;t=0&&!n[e];e-=1)n.pop();const o=q(n.map((e=>e||" ")).join(""));return n=k(o).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),U=(e,t)=>{var n;const o=_(e,t),i=Math.min(e+t.length,r-1);i!==e&&void 0!==o[e]&&(null===(n=V.current[i])||void 0===n||n.focus()),Q(o)},Y=e=>{var t;null===(t=V.current[e])||void 0===t||t.focus()},J={variant:y,disabled:w,status:W,mask:N,type:M,inputMode:O};return L(o.createElement("div",Object.assign({},P,{ref:K,className:i()(T,{[`${T}-sm`]:"small"===D,[`${T}-lg`]:"large"===D,[`${T}-rtl`]:"rtl"===z},B,R)}),o.createElement(l.aM.Provider,{value:F},Array.from({length:r}).map(((e,t)=>{const n=`otp-${t}`,i=X[t]||"";return o.createElement(o.Fragment,{key:n},o.createElement(S,Object.assign({ref:e=>{V.current[t]=e},index:t,size:D,htmlSize:1,className:`${T}-input`,onChange:U,value:i,onActiveChange:Y,autoFocus:0===t&&j},J)),te?o.createElement(A.Z,null):o.createElement($,null),D={click:"onClick",hover:"onMouseOver"};var H=o.forwardRef(((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:l=!0,iconRender:c=B}=e,s=o.useContext(P.Z),d=null!=n?n:s,f="object"==typeof l&&void 0!==l.visible,[p,m]=(0,o.useState)((()=>!!f&&l.visible)),g=(0,o.useRef)(null);o.useEffect((()=>{f&&m(l.visible)}),[f,l]);const h=(0,L.Z)(g),v=()=>{var e;if(d)return;p&&h();const t=!p;m(t),"object"==typeof l&&(null===(e=l.onVisibleChange)||void 0===e||e.call(l,t))},{className:b,prefixCls:y,inputPrefixCls:x,size:w}=e,C=R(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=o.useContext(a.E_),E=S("input",x),k=S("input-password",y),I=l&&(e=>{const t=D[r]||"",n=c(p),i={[t]:v,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return o.cloneElement(o.isValidElement(n)?n:o.createElement("span",null,n),i)})(k),j=i()(k,b,{[`${k}-${w}`]:!!w}),N=Object.assign(Object.assign({},(0,z.Z)(C,["suffix","iconRender","visibilityToggle"])),{type:p?"text":"password",className:j,prefixCls:E,suffix:I});return w&&(N.size=w),o.createElement(u.Z,Object.assign({ref:(0,T.sQ)(t,g)},N))})),W=n(47472),F=n(22703),K=n(20743),V=n(70045),q=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,inputPrefixCls:r,className:l,size:c,suffix:s,enterButton:d=!1,addonAfter:f,loading:p,disabled:m,onSearch:h,onChange:v,onCompositionStart:b,onCompositionEnd:y}=e,x=q(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:w,direction:C}=o.useContext(a.E_),S=o.useRef(!1),E=w("input-search",n),k=w("input",r),{compactSize:I}=(0,V.ri)(E,C),j=(0,g.Z)((e=>{var t;return null!==(t=null!=c?c:I)&&void 0!==t?t:e})),N=o.useRef(null),M=e=>{var t;document.activeElement===(null===(t=N.current)||void 0===t?void 0:t.input)&&e.preventDefault()},Z=e=>{var t,n;h&&h(null===(n=null===(t=N.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},O="boolean"==typeof d?o.createElement(W.Z,null):null,$=`${E}-button`;let A;const z=d||{},P=z.type&&!0===z.type.__ANT_BUTTON;A=P||"button"===z.type?(0,F.Tm)(z,Object.assign({onMouseDown:M,onClick:e=>{var t,n;null===(n=null===(t=null==z?void 0:z.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),Z(e)},key:"enterButton"},P?{className:$,size:j}:{})):o.createElement(K.ZP,{className:$,type:d?"primary":void 0,size:j,disabled:m,key:"enterButton",onMouseDown:M,onClick:Z,loading:p,icon:O},d),f&&(A=[A,(0,F.Tm)(f,{key:"addonAfter"})]);const L=i()(E,{[`${E}-rtl`]:"rtl"===C,[`${E}-${j}`]:!!j,[`${E}-with-button`]:!!d},l),R=Object.assign(Object.assign({},x),{className:L,prefixCls:k,type:"search"});return o.createElement(u.Z,Object.assign({ref:(0,T.sQ)(N,t),onPressEnter:e=>{S.current||p||Z(e)}},R,{size:j,onCompositionStart:e=>{S.current=!0,null==b||b(e)},onCompositionEnd:e=>{S.current=!1,null==y||y(e)},addonAfter:A,suffix:s,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&h&&h(e.target.value,e,{source:"clear"}),null==v||v(e)},disabled:m}))})),Q=n(4635),_=n(20439),U=n(50298),Y=n(62646),J=n(36901),ee=n(66003),te=n(30292),ne=n(18929),oe=n(93664),re=n(29301),ie=n(34280),ae="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n",le=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ce={};function se(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&ce[n])return ce[n];var o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),l=le.map((function(e){return"".concat(e,":").concat(o.getPropertyValue(e))})).join(";"),c={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&(ce[n]=c),c}var ue=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],de=o.forwardRef((function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,l=n.value,c=n.autoSize,s=n.onResize,u=n.className,d=n.style,f=n.disabled,p=n.onChange,m=(n.onInternalAutoSize,(0,Y.Z)(n,ue)),g=(0,ne.Z)(a,{value:l,postState:function(e){return null!=e?e:""}}),h=(0,U.Z)(g,2),v=h[0],b=h[1],y=o.useRef();o.useImperativeHandle(t,(function(){return{textArea:y.current}}));var x=o.useMemo((function(){return c&&"object"===(0,oe.Z)(c)?[c.minRows,c.maxRows]:[]}),[c]),C=(0,U.Z)(x,2),S=C[0],E=C[1],k=!!c,I=o.useState(2),j=(0,U.Z)(I,2),M=j[0],Z=j[1],O=o.useState(),$=(0,U.Z)(O,2),A=$[0],z=$[1],T=function(){Z(0)};(0,ie.Z)((function(){k&&T()}),[l,S,E,k]),(0,ie.Z)((function(){if(0===M)Z(1);else if(1===M){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;X||((X=document.createElement("textarea")).setAttribute("tab-index","-1"),X.setAttribute("aria-hidden","true"),X.setAttribute("name","hiddenTextarea"),document.body.appendChild(X)),e.getAttribute("wrap")?X.setAttribute("wrap",e.getAttribute("wrap")):X.removeAttribute("wrap");var r=se(e,t),i=r.paddingSize,a=r.borderSize,l=r.boxSizing,c=r.sizingStyle;X.setAttribute("style","".concat(c,";").concat(ae)),X.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=X.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==o){X.value=" ";var p=X.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==o&&(d=p*o,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:s,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}(y.current,!1,S,E);Z(2),z(e)}else!function(){try{if(document.activeElement===y.current){var e=y.current,t=e.selectionStart,n=e.selectionEnd,o=e.scrollTop;y.current.setSelectionRange(t,n),y.current.scrollTop=o}}catch(e){}}()}),[M]);var P=o.useRef(),L=function(){w.Z.cancel(P.current)};o.useEffect((function(){return L}),[]);var R=k?A:null,B=(0,_.Z)((0,_.Z)({},d),R);return 0!==M&&1!==M||(B.overflowY="hidden",B.overflowX="hidden"),o.createElement(re.Z,{onResize:function(e){2===M&&(null==s||s(e),c&&(L(),P.current=(0,w.Z)((function(){T()}))))},disabled:!(c||s)},o.createElement("textarea",(0,N.Z)({},m,{ref:y,style:B,className:i()(r,u,(0,Q.Z)({},"".concat(r,"-disabled"),f)),disabled:f,value:v,onChange:function(e){b(e.target.value),null==p||p(e)}})))})),fe=de,pe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],me=o.forwardRef((function(e,t){var n,r=e.defaultValue,a=e.value,l=e.onFocus,c=e.onBlur,s=e.onChange,u=e.allowClear,f=e.maxLength,p=e.onCompositionStart,m=e.onCompositionEnd,g=e.suffix,h=e.prefixCls,v=void 0===h?"rc-textarea":h,b=e.showCount,y=e.count,x=e.className,w=e.style,C=e.disabled,S=e.hidden,E=e.classNames,k=e.styles,I=e.onResize,j=e.onClear,M=e.onPressEnter,Z=e.readOnly,O=e.autoSize,$=e.onKeyDown,A=(0,Y.Z)(e,pe),z=(0,ne.Z)(r,{value:a,defaultValue:r}),T=(0,U.Z)(z,2),P=T[0],L=T[1],R=null==P?"":String(P),B=o.useState(!1),D=(0,U.Z)(B,2),H=D[0],W=D[1],F=o.useRef(!1),K=o.useState(null),V=(0,U.Z)(K,2),q=V[0],X=V[1],G=(0,o.useRef)(null),oe=(0,o.useRef)(null),re=function(){var e;return null===(e=oe.current)||void 0===e?void 0:e.textArea},ie=function(){re().focus()};(0,o.useImperativeHandle)(t,(function(){var e;return{resizableTextArea:oe.current,focus:ie,blur:function(){re().blur()},nativeElement:(null===(e=G.current)||void 0===e?void 0:e.nativeElement)||re()}})),(0,o.useEffect)((function(){W((function(e){return!C&&e}))}),[C]);var ae=o.useState(null),le=(0,U.Z)(ae,2),ce=le[0],se=le[1];o.useEffect((function(){var e;ce&&(e=re()).setSelectionRange.apply(e,(0,d.Z)(ce))}),[ce]);var ue,de=(0,ee.Z)(y,b),me=null!==(n=de.max)&&void 0!==n?n:f,ge=Number(me)>0,he=de.strategy(R),ve=!!me&&he>me,be=function(e,t){var n=t;!F.current&&de.exceedFormatter&&de.max&&de.strategy(t)>de.max&&t!==(n=de.exceedFormatter(t,{max:de.max}))&&se([re().selectionStart||0,re().selectionEnd||0]),L(n),(0,te.rJ)(e.currentTarget,e,s,n)},ye=g;de.show&&(ue=de.showFormatter?de.showFormatter({value:R,count:he,maxLength:me}):"".concat(he).concat(ge?" / ".concat(me):""),ye=o.createElement(o.Fragment,null,ye,o.createElement("span",{className:i()("".concat(v,"-data-count"),null==E?void 0:E.count),style:null==k?void 0:k.count},ue)));var xe=!O&&!b&&!u;return o.createElement(J.Q,{ref:G,value:R,allowClear:u,handleReset:function(e){L(""),ie(),(0,te.rJ)(re(),e,s)},suffix:ye,prefixCls:v,classNames:(0,_.Z)((0,_.Z)({},E),{},{affixWrapper:i()(null==E?void 0:E.affixWrapper,(0,Q.Z)((0,Q.Z)({},"".concat(v,"-show-count"),b),"".concat(v,"-textarea-allow-clear"),u))}),disabled:C,focused:H,className:i()(x,ve&&"".concat(v,"-out-of-range")),style:(0,_.Z)((0,_.Z)({},w),q&&!xe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ue?ue:void 0}},hidden:S,readOnly:Z,onClear:j},o.createElement(fe,(0,N.Z)({},A,{autoSize:O,maxLength:f,onKeyDown:function(e){"Enter"===e.key&&M&&M(e),null==$||$(e)},onChange:function(e){be(e,e.target.value)},onFocus:function(e){W(!0),null==l||l(e)},onBlur:function(e){W(!1),null==c||c(e)},onCompositionStart:function(e){F.current=!0,null==p||p(e)},onCompositionEnd:function(e){F.current=!1,be(e,e.currentTarget.value),null==m||m(e)},className:i()(null==E?void 0:E.textarea),style:(0,_.Z)((0,_.Z)({},null==k?void 0:k.textarea),{},{resize:null==w?void 0:w.resize}),disabled:C,prefixCls:v,onResize:function(e){var t;null==I||I(e),null!==(t=re())&&void 0!==t&&t.style.height&&X(!0)},ref:oe,readOnly:Z})))})),ge=n(86013),he=n(83397),ve=n(24971);const be=e=>{const{componentCls:t,paddingLG:n}=e,o=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[o]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${o}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}};var ye=(0,h.I$)(["Input","TextArea"],(e=>{const t=(0,v.IX)(e,(0,b.e)(e));return[be(t)]}),b.T,{resetFont:!1}),xe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,bordered:s=!0,size:u,disabled:d,status:f,allowClear:p,classNames:h,rootClassName:v,className:b,style:y,styles:x,variant:w,showCount:C,onMouseDown:S,onResize:E}=e,k=xe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);const{getPrefixCls:I,direction:j,allowClear:N,autoComplete:M,className:Z,style:O,classNames:$,styles:A}=(0,a.dj)("textArea"),z=o.useContext(P.Z),T=null!=d?d:z,{status:L,hasFeedback:R,feedbackIcon:B}=o.useContext(l.aM),D=(0,m.F)(L,f),H=o.useRef(null);o.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=H.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;(0,te.nH)(null===(n=null===(t=H.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=H.current)||void 0===e?void 0:e.blur()}}}));const W=I("input",r),F=(0,he.Z)(W),[K,q,X]=(0,c.TI)(W,v),[G]=ye(W,F),{compactSize:Q,compactItemClassnames:_}=(0,V.ri)(W,j),U=(0,g.Z)((e=>{var t;return null!==(t=null!=u?u:Q)&&void 0!==t?t:e})),[Y,J]=(0,ve.Z)("textArea",w,s),ee=(0,ge.Z)(null!=p?p:N),[ne,oe]=o.useState(!1),[re,ie]=o.useState(!1);return K(G(o.createElement(me,Object.assign({autoComplete:M},k,{style:Object.assign(Object.assign({},O),y),styles:Object.assign(Object.assign({},A),x),disabled:T,allowClear:ee,className:i()(X,F,b,v,_,Z,re&&`${W}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},h),$),{textarea:i()({[`${W}-sm`]:"small"===U,[`${W}-lg`]:"large"===U},q,null==h?void 0:h.textarea,$.textarea,ne&&`${W}-mouse-active`),variant:i()({[`${W}-${Y}`]:J},(0,m.Z)(W,D)),affixWrapper:i()(`${W}-textarea-affix-wrapper`,{[`${W}-affix-wrapper-rtl`]:"rtl"===j,[`${W}-affix-wrapper-sm`]:"small"===U,[`${W}-affix-wrapper-lg`]:"large"===U,[`${W}-textarea-show-count`]:C||(null===(n=e.count)||void 0===n?void 0:n.show)},q)}),prefixCls:W,suffix:R&&o.createElement("span",{className:`${W}-textarea-suffix`},B),showCount:C,ref:H,onResize:e=>{var t,n;if(null==E||E(e),ne&&"function"==typeof getComputedStyle){const e=null===(n=null===(t=H.current)||void 0===t?void 0:t.nativeElement)||void 0===n?void 0:n.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&ie(!0)}},onMouseDown:e=>{oe(!0),null==S||S(e);const t=()=>{oe(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}}))))}));const Ce=u.Z;Ce.Group=s,Ce.Search=G,Ce.TextArea=we,Ce.Password=H,Ce.OTP=j;var Se=Ce},53075:function(e,t,n){n.d(t,{TI:function(){return w},ik:function(){return p},nz:function(){return u},s7:function(){return m},x0:function(){return f}});var o=n(66604),r=n(63356),i=n(56119),a=n(16931),l=n(51636),c=n(64910),s=n(39082);const u=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),d=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${(0,o.bf)(t)} ${(0,o.bf)(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},f=e=>({padding:`${(0,o.bf)(e.paddingBlockSM)} ${(0,o.bf)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),p=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,o.bf)(e.paddingBlock)} ${(0,o.bf)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},u(e.colorTextPlaceholder)),{"&-lg":Object.assign({},d(e)),"&-sm":Object.assign({},f(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),m=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},d(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},f(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,o.bf)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${(0,o.bf)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,o.bf)(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${(0,o.bf)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${(0,o.bf)(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,r.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},g=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:i}=e,a=i(n).sub(i(o).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,r.Wf)(e)),p(e)),(0,s.qG)(e)),(0,s.H8)(e)),(0,s.Mu)(e)),(0,s.vc)(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},h=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,o.bf)(e.inputAffixPadding)}`}}}},v=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper-disabled`;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},p(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),h(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},b=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,r.Wf)(e)),m(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:o}}},(0,s.ir)(e)),(0,s.S5)(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},y=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${o}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${o}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},x=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},w=(0,a.I$)(["Input","Shared"],(e=>{const t=(0,l.IX)(e,(0,c.e)(e));return[g(t),v(t)]}),c.T,{resetFont:!1});t.ZP=(0,a.I$)(["Input","Component"],(e=>{const t=(0,l.IX)(e,(0,c.e)(e));return[b(t),y(t),x(t),(0,i.c)(t)]}),c.T,{resetFont:!1})},64910:function(e,t,n){n.d(t,{T:function(){return i},e:function(){return r}});var o=n(51636);function r(e){return(0,o.IX)(e,{inputAffixPadding:e.paddingXXS})}const i=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:g,controlOutline:h,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y,inputFontSize:x,inputFontSizeLG:w,inputFontSizeSM:C}=e,S=x||n,E=C||S,k=w||l,I=Math.round((t-S*o)/2*10)/10-r,j=Math.round((i-E*o)/2*10)/10-r,N=Math.ceil((a-k*c)/2*10)/10-r;return{paddingBlock:Math.max(I,0),paddingBlockSM:Math.max(j,0),paddingBlockLG:Math.max(N,0),paddingInline:s-r,paddingInlineSM:u-r,paddingInlineLG:d-r,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${h}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:S,inputFontSizeLG:k,inputFontSizeSM:E}}},39082:function(e,t,n){n.d(t,{$U:function(){return l},H8:function(){return g},Mu:function(){return f},S5:function(){return v},Xy:function(){return a},ir:function(){return d},qG:function(){return s},vc:function(){return x}});var o=n(66604),r=n(51636);const i=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),a=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},i((0,r.IX)(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),l=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),c=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},l(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),s=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},l(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},a(e))}),c(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),c(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),u=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),d=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},u(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),u(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},a(e))}})}),f=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},p=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null!==(n=null==t?void 0:t.inputColor)&&void 0!==n?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},m=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},p(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),g=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},a(e))}),m(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),m(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),h=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),v=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},h(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),h(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),b=(e,t)=>({background:e.colorBgContainer,borderWidth:`${(0,o.bf)(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),y=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},b(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),x=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},b(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),y(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),y(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)})},24303:function(e,t,n){n.d(t,{D:function(){return S},Z:function(){return I}});var o=n(59301),r=n(14809),i={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"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l),s=n(33853),u=n(38819),d=n(92310),f=n.n(d),p=n(2738),m=n(48755),g=n(6989),h=n(66604),v=n(48923),b=n(16931);const y=e=>{const{componentCls:t,siderBg:n,motionDurationMid:o,motionDurationSlow:r,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:c,headerHeight:s,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${o}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:(0,h.bf)(a),textAlign:"center",background:c,cursor:"pointer",transition:`all ${o}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:s,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,h.bf)(f)} ${(0,h.bf)(f)} 0`,cursor:"pointer",transition:`background ${r} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${r}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,h.bf)(f)} 0 0 ${(0,h.bf)(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};var x=(0,b.I$)(["Layout","Sider"],(e=>[y(e)]),v.eh,{deprecatedTokens:v.jn}),w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let e=0;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,`${t}${e}`}})(),k=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:l=!1,theme:d="dark",style:h={},collapsible:v=!1,reverseArrow:b=!1,width:y=200,collapsedWidth:k=80,zeroWidthTriggerStyle:I,breakpoint:j,onCollapse:N,onBreakpoint:M}=e,Z=w(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:O}=(0,o.useContext)(g.V),[$,A]=(0,o.useState)("collapsed"in e?e.collapsed:l),[z,T]=(0,o.useState)(!1);(0,o.useEffect)((()=>{"collapsed"in e&&A(e.collapsed)}),[e.collapsed]);const P=(t,n)=>{"collapsed"in e||A(t),null==N||N(t,n)},{getPrefixCls:L,direction:R}=(0,o.useContext)(m.E_),B=L("layout-sider",n),[D,H,W]=x(B),F=(0,o.useRef)(null);F.current=e=>{T(e.matches),null==M||M(e.matches),$!==e.matches&&P(e.matches,"responsive")},(0,o.useEffect)((()=>{function e(e){return F.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&j&&j in C){t=n(`screen and (max-width: ${C[j]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[j]),(0,o.useEffect)((()=>{const e=E("ant-sider-");return O.addSider(e),()=>O.removeSider(e)}),[]);const K=()=>{P(!$,"clickTrigger")},V=(0,p.Z)(Z,["collapsed"]),q=$?k:y,X=(G=q,!Number.isNaN(Number.parseFloat(G))&&isFinite(G)?`${q}px`:String(q));var G;const Q=0===parseFloat(String(k||0))?o.createElement("span",{onClick:K,className:f()(`${B}-zero-width-trigger`,`${B}-zero-width-trigger-${b?"right":"left"}`),style:I},i||o.createElement(c,null)):null,_="rtl"===R==!b,U={expanded:_?o.createElement(u.Z,null):o.createElement(s.Z,null),collapsed:_?o.createElement(s.Z,null):o.createElement(u.Z,null)}[$?"collapsed":"expanded"],Y=null!==i?Q||o.createElement("div",{className:`${B}-trigger`,onClick:K,style:{width:X}},i||U):null,J=Object.assign(Object.assign({},h),{flex:`0 0 ${X}`,maxWidth:X,minWidth:X,width:X}),ee=f()(B,`${B}-${d}`,{[`${B}-collapsed`]:!!$,[`${B}-has-trigger`]:v&&null!==i&&!Q,[`${B}-below`]:!!z,[`${B}-zero-width`]:0===parseFloat(X)},r,H,W),te=o.useMemo((()=>({siderCollapsed:$})),[$]);return D(o.createElement(S.Provider,{value:te},o.createElement("aside",Object.assign({className:ee},V,{style:J,ref:t}),o.createElement("div",{className:`${B}-children`},a),v||z&&Q?Y:null)))}));var I=k},6989:function(e,t,n){n.d(t,{V:function(){return o}});const o=n(59301).createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(e,t,n){n.d(t,{eh:function(){return a},jn:function(){return l}});var o=n(66604),r=n(16931);const i=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:l,headerColor:c,footerPadding:s,fontSize:u,bodyBg:d,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:l,color:c,lineHeight:(0,o.bf)(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:s,color:r,fontSize:u,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},a=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:o,colorText:r,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*o;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:r,footerPadding:`${i}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:o+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:r}},l=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];t.ZP=(0,r.I$)("Layout",(e=>[i(e)]),a,{deprecatedTokens:l})},78857:function(e,t,n){n.d(t,{J:function(){return c}});var o=n(59301),r=n(8654),i=n(62487),a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{children:n}=e,c=a(e,["children"]),s=o.useContext(l),u=o.useMemo((()=>Object.assign(Object.assign({},s),c)),[s,c.prefixCls,c.mode,c.selectable,c.rootClassName]),d=(0,r.t4)(n),f=(0,r.x1)(t,d?(0,r.C4)(n):null);return o.createElement(l.Provider,{value:u},o.createElement(i.Z,{space:!0},d?o.cloneElement(n,{ref:f}):n))}));t.Z=l},93041:function(e,t,n){n.d(t,{Z:function(){return Q}});var o=n(59301),r=n(28321),i=n(24303),a=n(18785),l=n(92310),c=n.n(l),s=n(6089),u=n(2738),d=n(86641),f=n(22703),p=n(48755),m=n(83397);var g=(0,o.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,dashed:i}=e,a=h(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=o.useContext(p.E_),s=l("menu",t),u=c()({[`${s}-item-divider-dashed`]:!!i},n);return o.createElement(r.iz,Object.assign({className:u},a))},b=n(11592),y=n(55544);var x=e=>{var t;const{className:n,children:a,icon:l,title:s,danger:d,extra:p}=e,{prefixCls:m,firstLevel:h,direction:v,disableMenuItemTitleTooltip:x,inlineCollapsed:w}=o.useContext(g),{siderCollapsed:C}=o.useContext(i.D);let S=s;void 0===s?S=h?a:"":!1===s&&(S="");const E={title:S};C||w||(E.title=null,E.open=!1);const k=(0,b.Z)(a).length;let I=o.createElement(r.ck,Object.assign({},(0,u.Z)(e,["title","icon","danger"]),{className:c()({[`${m}-item-danger`]:d,[`${m}-item-only-child`]:1===(l?k+1:k)},n),title:"string"==typeof s?s:void 0}),(0,f.Tm)(l,{className:c()(o.isValidElement(l)?null===(t=l.props)||void 0===t?void 0:t.className:"",`${m}-item-icon`)}),(e=>{const t=null==a?void 0:a[0],n=o.createElement("span",{className:c()(`${m}-title-content`,{[`${m}-title-content-with-extra`]:!!p||0===p})},a);return(!l||o.isValidElement(a)&&"span"===a.type)&&a&&e&&h&&"string"==typeof t?o.createElement("div",{className:`${m}-inline-collapsed-noicon`},t.charAt(0)):n})(w));return x||(I=o.createElement(y.Z,Object.assign({},E,{placement:"rtl"===v?"left":"right",classNames:{root:`${m}-inline-collapsed-tooltip`}}),I)),I},w=n(78857),C=n(66604),S=n(17835),E=n(63356),k=n(34961),I=n(46e3),j=n(34925),N=n(16931),M=n(51636);var Z=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:o,colorSplit:r,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${(0,C.bf)(i)} ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}};var O=e=>{let{componentCls:t,menuArrowOffset:n,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,C.bf)(o(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,C.bf)(n)})`}}}}};const $=e=>Object.assign({},(0,E.oN)(e));var A=(e,t)=>{const{componentCls:n,itemColor:o,itemSelectedColor:r,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:l,subMenuItemBg:c,itemSelectedBg:s,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:h,motionDurationMid:v,itemHoverColor:b,lineType:y,colorSplit:x,itemDisabledColor:w,dangerItemColor:S,dangerItemHoverColor:E,dangerItemSelectedColor:k,dangerItemActiveBg:I,dangerItemSelectedBg:j,popupBg:N,itemHoverBg:M,itemActiveBg:Z,menuSubMenuBg:O,horizontalItemSelectedColor:A,horizontalItemSelectedBg:z,horizontalItemBorderRadius:T,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:l,[`&${n}-root:focus-visible`]:Object.assign({},$(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:o,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},$(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:Z}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:Z}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:I}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:k},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:j}},[`&${n}-submenu > ${n}`]:{backgroundColor:O},[`&${n}-popup > ${n}`]:{backgroundColor:N},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:N},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:T,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${(0,C.bf)(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:z,"&:hover":{backgroundColor:z},"&::after":{borderBottomWidth:u,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${(0,C.bf)(f)} ${y} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,C.bf)(d)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:k}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${m}`,`opacity ${v} ${m}`].join(",")}}}}}};const z=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(i).add(r).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:(0,C.bf)(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:l,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:(0,C.bf)(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}};var T=e=>{const{componentCls:t,iconCls:n,itemHeight:o,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:c,itemMarginInline:s,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,v={height:o,lineHeight:(0,C.bf)(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},z(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},z(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${(0,C.bf)(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${d} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,C.bf)(e.calc(h).div(2).equal())} - ${(0,C.bf)(s)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:(0,C.bf)(o),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},E.vS),{paddingInline:p})}}]};const P=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:o,motionEaseInOut:r,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${r}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${o} ${i}`,`margin ${n} ${r}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${r}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},(0,E.Ro)()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},L=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,C.bf)(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,C.bf)(a)})`}}}}},R=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:g,lineType:h,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},(0,E.dF)()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,E.Wf)(e)),(0,E.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${(0,C.bf)(l)} ${(0,C.bf)(c)}`,fontSize:b,lineHeight:v,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:h,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),P(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${(0,C.bf)(e.calc(o).mul(2).equal())} ${(0,C.bf)(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},P(e)),L(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),L(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,C.bf)(g)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,C.bf)(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${(0,C.bf)(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,C.bf)(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,C.bf)(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},B=e=>{var t,n,o;const{colorPrimary:r,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:h,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:w,fontSize:C,controlHeightSM:E,fontSizeLG:k,colorTextLightSolid:I,colorErrorHover:j}=e,N=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,M=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,Z=null!==(o=e.itemMarginInline)&&void 0!==o?o:e.marginXXS,O=new S.t(I).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:r,itemSelectedColor:r,subMenuItemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:u,itemBg:u,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:N,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:M,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:Z,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:x,itemPaddingInline:w,horizontalLineHeight:1.15*v+"px",iconSize:C,iconMarginInlineEnd:E-C,collapsedIconSize:k,groupTitleFontSize:C,darkItemDisabledColor:new S.t(I).setA(.25).toRgbString(),darkItemColor:O,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:I,darkItemSelectedBg:r,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:O,darkItemHoverColor:I,darkDangerItemHoverColor:j,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:i,itemWidth:N?`calc(100% + ${M}px)`:`calc(100% - ${2*Z}px)`}};var D=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=(0,N.I$)("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:o,darkItemColor:r,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:h,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,x=e.calc(o).div(7).mul(5).equal(),w=(0,M.IX)(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),C=(0,M.IX)(w,{itemColor:r,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:h,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[R(w),Z(w),T(w),A(w,"light"),A(C,"dark"),O(w),(0,k.Z)(w),(0,I.oN)(w,"slide-up"),(0,I.oN)(w,"slide-down"),(0,j._y)(w,"zoom-big")]}),B,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}});return o(e,t)},H=n(75030);var W=e=>{var t;const{popupClassName:n,icon:i,title:a,theme:l}=e,s=o.useContext(g),{prefixCls:d,inlineCollapsed:p,theme:m}=s,h=(0,r.Xl)();let v;if(i){const e=o.isValidElement(a)&&"span"===a.type;v=o.createElement(o.Fragment,null,(0,f.Tm)(i,{className:c()(o.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${d}-item-icon`)}),e?a:o.createElement("span",{className:`${d}-title-content`},a))}else v=p&&!h.length&&a&&"string"==typeof a?o.createElement("div",{className:`${d}-inline-collapsed-noicon`},a.charAt(0)):o.createElement("span",{className:`${d}-title-content`},a);const b=o.useMemo((()=>Object.assign(Object.assign({},s),{firstLevel:!1})),[s]),[y]=(0,H.Cn)("Menu");return o.createElement(g.Provider,{value:b},o.createElement(r.Wd,Object.assign({},(0,u.Z)(e,["icon"]),{title:v,popupClassName:c()(d,n,`${d}-${l||m}`),popupStyle:Object.assign({zIndex:y},e.popupStyle)})))},F=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n;const i=o.useContext(w.Z),l=i||{},{getPrefixCls:h,getPopupContainer:v,direction:b,menu:y}=o.useContext(p.E_),x=h(),{prefixCls:C,className:S,style:E,theme:k="light",expandIcon:I,_internalDisableMenuItemTitleTooltip:j,inlineCollapsed:N,siderCollapsed:M,rootClassName:Z,mode:O,selectable:$,onClick:A,overflowedIndicatorPopupClassName:z}=e,T=F(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),P=(0,u.Z)(T,["collapsedWidth"]);null===(n=l.validator)||void 0===n||n.call(l,{mode:O});const L=(0,s.Z)((function(){var e;null==A||A.apply(void 0,arguments),null===(e=l.onClick)||void 0===e||e.call(l)})),R=l.mode||O,B=null!=$?$:l.selectable,H=null!=N?N:M,W={horizontal:{motionName:`${x}-slide-up`},inline:(0,d.Z)(x),other:{motionName:`${x}-zoom-big`}},q=h("menu",C||l.prefixCls),X=(0,m.Z)(q),[G,Q,_]=D(q,X,!i),U=c()(`${q}-${k}`,null==y?void 0:y.className,S),Y=o.useMemo((()=>{var e,t;if("function"==typeof I||K(I))return I||null;if("function"==typeof l.expandIcon||K(l.expandIcon))return l.expandIcon||null;if("function"==typeof(null==y?void 0:y.expandIcon)||K(null==y?void 0:y.expandIcon))return(null==y?void 0:y.expandIcon)||null;const n=null!==(e=null!=I?I:null==l?void 0:l.expandIcon)&&void 0!==e?e:null==y?void 0:y.expandIcon;return(0,f.Tm)(n,{className:c()(`${q}-submenu-expand-icon`,o.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[I,null==l?void 0:l.expandIcon,null==y?void 0:y.expandIcon,q]),J=o.useMemo((()=>({prefixCls:q,inlineCollapsed:H||!1,direction:b,firstLevel:!0,theme:k,mode:R,disableMenuItemTitleTooltip:j})),[q,H,b,j,k]);return G(o.createElement(w.Z.Provider,{value:null},o.createElement(g.Provider,{value:J},o.createElement(r.ZP,Object.assign({getPopupContainer:v,overflowedIndicator:o.createElement(a.Z,null),overflowedIndicatorPopupClassName:c()(q,`${q}-${k}`,z),mode:R,selectable:B,onClick:L},P,{inlineCollapsed:H,style:Object.assign(Object.assign({},null==y?void 0:y.style),E),className:U,prefixCls:q,direction:b,defaultMotions:W,expandIcon:Y,ref:t,rootClassName:c()(Z,Q,l.rootClassName,_,X),_internalComponents:V})))))}));var X=q;const G=(0,o.forwardRef)(((e,t)=>{const n=(0,o.useRef)(null),r=o.useContext(i.D);return(0,o.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),o.createElement(X,Object.assign({ref:n},e,r))}));G.Item=x,G.SubMenu=W,G.Divider=v,G.ItemGroup=r.BW;var Q=G},98012:function(e,t,n){n.d(t,{Z:function(){return le}});var o=n(59301),r=n(14809),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},u=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:s}))};var d=o.forwardRef(u),f=n(33853),p=n(38819),m=n(92310),g=n.n(m),h=n(4635),v=n(93664),b=n(20439),y=n(50298),x=n(18929),w=n(10228),C=n(26112),S=(n(48736),n(17119)),E=[10,20,50,100];var k=function(e){var t=e.pageSizeOptions,n=void 0===t?E:t,r=e.locale,i=e.changeSize,a=e.pageSize,l=e.goButton,c=e.quickGo,s=e.rootPrefixCls,u=e.disabled,d=e.buildOptionText,f=e.showSizeChanger,p=e.sizeChangerRender,m=o.useState(""),g=(0,y.Z)(m,2),h=g[0],v=g[1],b=function(){return!h||Number.isNaN(h)?void 0:Number(h)},x="function"==typeof d?d:function(e){return"".concat(e," ").concat(r.items_per_page)},C=function(e){""!==h&&(e.keyCode!==w.Z.ENTER&&"click"!==e.type||(v(""),null==c||c(b())))},S="".concat(s,"-options");if(!f&&!c)return null;var k=null,I=null,j=null;return f&&p&&(k=p({disabled:u,size:a,onSizeChange:function(e){null==i||i(Number(e))},"aria-label":r.page_size,className:"".concat(S,"-size-changer"),options:(n.some((function(e){return e.toString()===a.toString()}))?n:n.concat([a]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e){return{label:x(e),value:e}}))})),c&&(l&&(j="boolean"==typeof l?o.createElement("button",{type:"button",onClick:C,onKeyUp:C,disabled:u,className:"".concat(S,"-quick-jumper-button")},r.jump_to_confirm):o.createElement("span",{onClick:C,onKeyUp:C},l)),I=o.createElement("div",{className:"".concat(S,"-quick-jumper")},r.jump_to,o.createElement("input",{disabled:u,type:"text",value:h,onChange:function(e){v(e.target.value)},onKeyUp:C,onBlur:function(e){l||""===h||(v(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(s,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(s,"-item"))>=0)||null==c||c(b()))},"aria-label":r.page}),r.page,j)),o.createElement("li",{className:S},k,I)};var I=function(e){var t=e.rootPrefixCls,n=e.page,r=e.active,i=e.className,a=e.showTitle,l=e.onClick,c=e.onKeyPress,s=e.itemRender,u="".concat(t,"-item"),d=g()(u,"".concat(u,"-").concat(n),(0,h.Z)((0,h.Z)({},"".concat(u,"-active"),r),"".concat(u,"-disabled"),!n),i),f=s(n,"page",o.createElement("a",{rel:"nofollow"},n));return f?o.createElement("li",{title:a?String(n):null,className:d,onClick:function(){l(n)},onKeyDown:function(e){c(e,l,n)},tabIndex:0},f):null},j=function(e,t,n){return n};function N(){}function M(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Z(e,t,n){var o=void 0===e?t:e;return Math.floor((n-1)/o)+1}var O=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,i=e.selectPrefixCls,a=void 0===i?"rc-select":i,l=e.className,c=e.current,s=e.defaultCurrent,u=void 0===s?1:s,d=e.total,f=void 0===d?0:d,p=e.pageSize,m=e.defaultPageSize,E=void 0===m?10:m,O=e.onChange,$=void 0===O?N:O,A=e.hideOnSinglePage,z=e.align,T=e.showPrevNextJumpers,P=void 0===T||T,L=e.showQuickJumper,R=e.showLessItems,B=e.showTitle,D=void 0===B||B,H=e.onShowSizeChange,W=void 0===H?N:H,F=e.locale,K=void 0===F?S.Z:F,V=e.style,q=e.totalBoundaryShowSizeChanger,X=void 0===q?50:q,G=e.disabled,Q=e.simple,_=e.showTotal,U=e.showSizeChanger,Y=void 0===U?f>X:U,J=e.sizeChangerRender,ee=e.pageSizeOptions,te=e.itemRender,ne=void 0===te?j:te,oe=e.jumpPrevIcon,re=e.jumpNextIcon,ie=e.prevIcon,ae=e.nextIcon,le=o.useRef(null),ce=(0,x.Z)(10,{value:p,defaultValue:E}),se=(0,y.Z)(ce,2),ue=se[0],de=se[1],fe=(0,x.Z)(1,{value:c,defaultValue:u,postState:function(e){return Math.max(1,Math.min(e,Z(void 0,ue,f)))}}),pe=(0,y.Z)(fe,2),me=pe[0],ge=pe[1],he=o.useState(me),ve=(0,y.Z)(he,2),be=ve[0],ye=ve[1];(0,o.useEffect)((function(){ye(me)}),[me]);var xe=Math.max(1,me-(R?3:5)),we=Math.min(Z(void 0,ue,f),me+(R?3:5));function Ce(t,r){var i=t||o.createElement("button",{type:"button","aria-label":r,className:"".concat(n,"-item-link")});return"function"==typeof t&&(i=o.createElement(t,(0,b.Z)({},e))),i}function Se(e){var t=e.target.value,n=Z(void 0,ue,f);return""===t?t:Number.isNaN(Number(t))?be:t>=n?n:Number(t)}var Ee=f>ue&&L;function ke(e){var t=Se(e);switch(t!==be&&ye(t),e.keyCode){case w.Z.ENTER:Ie(t);break;case w.Z.UP:Ie(t-1);break;case w.Z.DOWN:Ie(t+1)}}function Ie(e){if(function(e){return M(e)&&e!==me&&M(f)&&f>0}(e)&&!G){var t=Z(void 0,ue,f),n=e;return e>t?n=t:e<1&&(n=1),n!==be&&ye(n),ge(n),null==$||$(n,ue),n}return me}var je=me>1,Ne=me2?n-2:0),r=2;rf?f:me*ue])),Re=null,Be=Z(void 0,ue,f);if(A&&f<=ue)return null;var De=[],He={rootPrefixCls:n,onClick:Ie,onKeyPress:Ae,showTitle:D,itemRender:ne,page:-1},We=me-1>0?me-1:0,Fe=me+1=2*Ge&&3!==me&&(De[0]=o.cloneElement(De[0],{className:g()("".concat(n,"-item-after-jump-prev"),De[0].props.className)}),De.unshift(Te)),Be-me>=2*Ge&&me!==Be-2){var ot=De[De.length-1];De[De.length-1]=o.cloneElement(ot,{className:g()("".concat(n,"-item-before-jump-next"),ot.props.className)}),De.push(Re)}1!==et&&De.unshift(o.createElement(I,(0,r.Z)({},He,{key:1,page:1}))),tt!==Be&&De.push(o.createElement(I,(0,r.Z)({},He,{key:Be,page:Be})))}var rt=function(e){var t=ne(e,"prev",Ce(ie,"prev page"));return o.isValidElement(t)?o.cloneElement(t,{disabled:!je}):t}(We);if(rt){var it=!je||!Be;rt=o.createElement("li",{title:D?K.prev_page:null,onClick:Me,tabIndex:it?null:0,onKeyDown:function(e){Ae(e,Me)},className:g()("".concat(n,"-prev"),(0,h.Z)({},"".concat(n,"-disabled"),it)),"aria-disabled":it},rt)}var at,lt,ct=function(e){var t=ne(e,"next",Ce(ae,"next page"));return o.isValidElement(t)?o.cloneElement(t,{disabled:!Ne}):t}(Fe);ct&&(Q?(at=!Ne,lt=je?0:null):lt=(at=!Ne||!Be)?null:0,ct=o.createElement("li",{title:D?K.next_page:null,onClick:Ze,tabIndex:lt,onKeyDown:function(e){Ae(e,Ze)},className:g()("".concat(n,"-next"),(0,h.Z)({},"".concat(n,"-disabled"),at)),"aria-disabled":at},ct));var st=g()(n,l,(0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)({},"".concat(n,"-start"),"start"===z),"".concat(n,"-center"),"center"===z),"".concat(n,"-end"),"end"===z),"".concat(n,"-simple"),Q),"".concat(n,"-disabled"),G));return o.createElement("ul",(0,r.Z)({className:st,style:V,ref:le},Pe),Le,rt,Q?Xe:De,ct,o.createElement(k,{locale:K,rootPrefixCls:n,disabled:G,selectPrefixCls:a,changeSize:function(e){var t=Z(e,ue,f),n=me>t&&0!==t?t:me;de(e),ye(n),null==W||W(me,e),ge(n),null==$||$(n,e)},pageSize:ue,pageSizeOptions:ee,quickGo:Ee?Ie:null,goButton:qe,showSizeChanger:Y,sizeChangerRender:J}))},$=n(61852),A=n(48755),z=n(31756),T=n(13783),P=n(9017),L=n(75914),R=n(57700),B=n(66604),D=n(53075),H=n(64910),W=n(39082),F=n(63356),K=n(51636),V=n(16931);const q=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},X=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:(0,B.bf)(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,B.bf)(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,B.bf)(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:(0,B.bf)(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:(0,B.bf)(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:(0,B.bf)(e.itemSizeSM),input:Object.assign(Object.assign({},(0,D.x0)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},G=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:(0,B.bf)(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:(0,B.bf)(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,B.bf)(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${(0,B.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${(0,B.bf)(e.inputOutlineOffset)} 0 ${(0,B.bf)(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Q=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:(0,B.bf)(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,B.bf)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:(0,B.bf)(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,D.ik)(e)),(0,W.$U)(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},(0,W.Xy)(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},_=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:(0,B.bf)(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${(0,B.bf)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,B.bf)(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},U=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,F.Wf)(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:(0,B.bf)(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),_(e)),Q(e)),G(e)),X(e)),q(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Y=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,F.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,F.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,F.oN)(e))}}}},J=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},(0,H.T)(e)),ee=e=>(0,K.IX)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,H.e)(e));var te=(0,V.I$)("Pagination",(e=>{const t=ee(e);return[U(t),Y(t)]}),J);const ne=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${(0,B.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}};var oe=(0,V.bk)(["Pagination","bordered"],(e=>{const t=ee(e);return[ne(t)]}),J);function re(e){return(0,o.useMemo)((()=>"boolean"==typeof e?[e,{}]:e&&"object"==typeof e?[!0,e]:[void 0,void 0]),[e])}var ie=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:l,size:s,locale:u,responsive:m,showSizeChanger:h,selectComponentClass:v,pageSizeOptions:b}=e,y=ie(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:x}=(0,T.Z)(m),[,w]=(0,R.ZP)(),{getPrefixCls:C,direction:S,showSizeChanger:E,className:k,style:I}=(0,A.dj)("pagination"),j=C("pagination",n),[N,M,Z]=te(j),B=(0,z.Z)(s),D="small"===B||!(!x||B||!m),[H]=(0,P.Z)("Pagination",$.Z),W=Object.assign(Object.assign({},H),u),[F,K]=re(h),[V,q]=re(E),X=null!=F?F:V,G=null!=K?K:q,Q=v||L.default,_=o.useMemo((()=>b?b.map((e=>Number(e))):void 0),[b]);const U=o.useMemo((()=>{const e=o.createElement("span",{className:`${j}-item-ellipsis`},"•••");return{prevIcon:o.createElement("button",{className:`${j}-item-link`,type:"button",tabIndex:-1},"rtl"===S?o.createElement(p.Z,null):o.createElement(f.Z,null)),nextIcon:o.createElement("button",{className:`${j}-item-link`,type:"button",tabIndex:-1},"rtl"===S?o.createElement(f.Z,null):o.createElement(p.Z,null)),jumpPrevIcon:o.createElement("a",{className:`${j}-item-link`},o.createElement("div",{className:`${j}-item-container`},"rtl"===S?o.createElement(d,{className:`${j}-item-link-icon`}):o.createElement(c,{className:`${j}-item-link-icon`}),e)),jumpNextIcon:o.createElement("a",{className:`${j}-item-link`},o.createElement("div",{className:`${j}-item-container`},"rtl"===S?o.createElement(c,{className:`${j}-item-link-icon`}):o.createElement(d,{className:`${j}-item-link-icon`}),e))}}),[S,j]),Y=C("select",r),J=g()({[`${j}-${t}`]:!!t,[`${j}-mini`]:D,[`${j}-rtl`]:"rtl"===S,[`${j}-bordered`]:w.wireframe},k,i,a,M,Z),ee=Object.assign(Object.assign({},I),l);return N(o.createElement(o.Fragment,null,w.wireframe&&o.createElement(oe,{prefixCls:j}),o.createElement(O,Object.assign({},U,y,{style:ee,prefixCls:j,selectPrefixCls:Y,className:J,locale:W,pageSizeOptions:_,showSizeChanger:X,sizeChangerRender:e=>{var t;const{disabled:n,size:r,onSizeChange:i,"aria-label":a,className:l,options:c}=e,{className:s,onChange:u}=G||{},d=null===(t=c.find((e=>String(e.value)===String(r))))||void 0===t?void 0:t.value;return o.createElement(Q,Object.assign({disabled:n,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":a,options:c},G,{value:d,onChange:(e,t)=>{null==i||i(e),null==u||u(e,t)},size:D?"small":"middle",className:g()(l,s)}))}}))))},le=ae},47889:function(e,t,n){n.d(t,{ZP:function(){return H}});var o=n(59301),r=n(92310),i=n.n(r),a=n(18929),l=n(26112),c=n(48755),s=n(83397),u=n(31756);const d=o.createContext(null),f=d.Provider;var p=d;const m=o.createContext(null),g=m.Provider;var h=n(16632),v=n(8654),b=n(12919),y=n(63872),x=n(74632),w=n(2171),C=n(56553),S=n(66604),E=n(63356),k=n(16931),I=n(51636);const j=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:Object.assign(Object.assign({},(0,E.Wf)(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`&${o}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},N=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:o,radioSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:m,lineType:g,radioColor:h,radioBgColor:v,calc:b}=e,y=`${t}-inner`,x=b(r).sub(b(4).mul(2)),w=b(1).mul(r).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,E.Wf)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,S.bf)(u)} ${g} ${o}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},(0,E.Wf)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:o},[`${t}-input:focus-visible + ${y}`]:Object.assign({},(0,E.oN)(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:w,height:w,marginBlockStart:b(1).mul(r).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(r).div(-2).equal({unit:!0}),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:o,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(r).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(x).div(r).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},M=e=>{const{buttonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:m,paddingXS:g,borderRadius:h,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:w,colorBgContainerDisabled:C,buttonCheckedBgDisabled:k,buttonCheckedColorDisabled:I,colorPrimary:j,colorPrimaryHover:N,colorPrimaryActive:M,buttonSolidCheckedBg:Z,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:$,calc:A}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:(0,S.bf)(A(n).sub(A(r).mul(2)).equal()),background:d,border:`${(0,S.bf)(r)} ${i} ${a}`,borderBlockStartWidth:A(r).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:A(r).mul(-1).equal(),insetInlineStart:A(r).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,S.bf)(r)} ${i} ${a}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${o}-group-large &`]:{height:p,fontSize:f,lineHeight:(0,S.bf)(A(p).sub(A(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${o}-group-small &`]:{height:m,paddingInline:A(g).sub(r).equal(),paddingBlock:0,lineHeight:(0,S.bf)(A(m).sub(A(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:j},"&:has(:focus-visible)":Object.assign({},(0,E.oN)(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:j,background:y,borderColor:j,"&::before":{backgroundColor:j},"&:first-child":{borderColor:j},"&:hover":{color:N,borderColor:N,"&::before":{backgroundColor:N}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:x,background:Z,borderColor:Z,"&:hover":{color:x,background:O,borderColor:O},"&:active":{color:x,background:$,borderColor:$}},"&-disabled":{color:w,backgroundColor:C,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:C,borderColor:a}},[`&-disabled${o}-button-wrapper-checked`]:{color:I,backgroundColor:k,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}};var Z=(0,k.I$)("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,o=`0 0 0 ${(0,S.bf)(n)} ${t}`,r=o,i=(0,I.IX)(e,{radioFocusShadow:o,radioButtonFocusShadow:r});return[j(i),N(i),M(i)]}),(e=>{const{wireframe:t,padding:n,marginXS:o,lineWidth:r,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+r),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-r,wrapperMarginInlineEnd:o,radioColor:t?d:m,radioBgColor:t?l:d}}),{unitless:{radioSize:!0,dotSize:!0}}),O=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n,r;const a=o.useContext(p),l=o.useContext(m),{getPrefixCls:u,direction:d,radio:f}=o.useContext(c.E_),g=o.useRef(null),S=(0,v.sQ)(t,g),{isFormItemInput:E}=o.useContext(C.aM);const k=t=>{var n,o;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(o=null==a?void 0:a.onChange)||void 0===o||o.call(a,t)},{prefixCls:I,className:j,rootClassName:N,children:M,style:$,title:A}=e,z=O(e,["prefixCls","className","rootClassName","children","style","title"]),T=u("radio",I),P="button"===((null==a?void 0:a.optionType)||l),L=P?`${T}-button`:T,R=(0,s.Z)(T),[B,D,H]=Z(T,R),W=Object.assign({},z),F=o.useContext(w.Z);a&&(W.name=a.name,W.onChange=k,W.checked=e.value===a.value,W.disabled=null!==(n=W.disabled)&&void 0!==n?n:a.disabled),W.disabled=null!==(r=W.disabled)&&void 0!==r?r:F;const K=i()(`${L}-wrapper`,{[`${L}-wrapper-checked`]:W.checked,[`${L}-wrapper-disabled`]:W.disabled,[`${L}-wrapper-rtl`]:"rtl"===d,[`${L}-wrapper-in-form-item`]:E,[`${L}-wrapper-block`]:!!(null==a?void 0:a.block)},null==f?void 0:f.className,j,N,D,H,R),[V,q]=(0,x.Z)(W.onClick);return B(o.createElement(b.Z,{component:"Radio",disabled:W.disabled},o.createElement("label",{className:K,style:Object.assign(Object.assign({},null==f?void 0:f.style),$),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:A,onClick:V},o.createElement(h.Z,Object.assign({},W,{className:i()(W.className,{[y.A]:!P}),type:"radio",prefixCls:L,ref:S,onClick:q})),void 0!==M?o.createElement("span",{className:`${L}-label`},M):null)))};var A=o.forwardRef($),z=n(80402);const T=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(c.E_),d=(0,z.Z)(),{prefixCls:p,className:m,rootClassName:g,options:h,buttonStyle:v="outline",disabled:b,children:y,size:x,style:w,id:C,optionType:S,name:E=d,defaultValue:k,value:I,block:j=!1,onChange:N,onMouseEnter:M,onMouseLeave:O,onFocus:$,onBlur:T}=e,[P,L]=(0,a.Z)(k,{value:I}),R=o.useCallback((t=>{const n=P,o=t.target.value;"value"in e||L(o),o!==n&&(null==N||N(t))}),[P,L,N]),B=n("radio",p),D=`${B}-group`,H=(0,s.Z)(B),[W,F,K]=Z(B,H);let V=y;h&&h.length>0&&(V=h.map((e=>"string"==typeof e||"number"==typeof e?o.createElement(A,{key:e.toString(),prefixCls:B,disabled:b,value:e,checked:P===e},e):o.createElement(A,{key:`radio-group-value-options-${e.value}`,prefixCls:B,disabled:e.disabled||b,value:e.value,checked:P===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const q=(0,u.Z)(x),X=i()(D,`${D}-${v}`,{[`${D}-${q}`]:q,[`${D}-rtl`]:"rtl"===r,[`${D}-block`]:j},m,g,F,K,H),G=o.useMemo((()=>({onChange:R,value:P,disabled:b,name:E,optionType:S,block:j})),[R,P,b,E,S,j]);return W(o.createElement("div",Object.assign({},(0,l.Z)(e,{aria:!0,data:!0}),{className:X,style:w,onMouseEnter:M,onMouseLeave:O,onFocus:$,onBlur:T,id:C,ref:t}),o.createElement(f,{value:G},V)))}));var P=o.memo(T),L=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n}=o.useContext(c.E_),{prefixCls:r}=e,i=L(e,["prefixCls"]),a=n("radio",r);return o.createElement(g,{value:"button"},o.createElement(A,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))};var B=o.forwardRef(R);const D=A;D.Button=B,D.Group=P,D.__ANT_RADIO=!0;var H=D},77019:function(e,t,n){var o=n(65970);t.Z=o.Z},75914:function(e,t,n){n.d(t,{default:function(){return Ct}});var o=n(59301),r=n(92310),i=n.n(r),a=n(14809),l=n(95190),c=n(4635),s=n(20439),u=n(50298),d=n(62646),f=n(93664),p=n(18929),m=n(48736),g=n(34280),h=n(49658),v=n(8654),b=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,a=e.children,l=e.onMouseDown,c=e.onClick,s="function"==typeof n?n(r):n;return o.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==l||l(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:c,"aria-hidden":!0},void 0!==s?s:o.createElement("span",{className:i()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},a))},y=o.createContext(null);function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=o.useRef(null),n=o.useRef(null);function r(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return o.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var w=n(10228);var C=n(26112),S=n(11780);var E=function(e,t,n){var o=(0,s.Z)((0,s.Z)({},e),n?t:{});return Object.keys(t).forEach((function(n){var r=t[n];"function"==typeof r&&(o[n]=function(){for(var t,o=arguments.length,i=new Array(o),a=0;aN&&(i="".concat(a.slice(0,N),"..."))}var l=function(t){t&&t.stopPropagation(),L(e)};return"function"==typeof T?re(o,i,t,r,l):oe(e,i,t,r,l)},renderRest:function(e){if(!l.length)return null;var t="function"==typeof z?z(e):z;return"function"==typeof T?re(void 0,t,!1,!1,void 0,!0):oe({title:t},t,!1)},suffix:ie,itemKey:$,maxCount:I});return o.createElement("span",{className:"".concat(ee,"-wrap")},ae,!l.length&&!te&&o.createElement("span",{className:"".concat(ee,"-placeholder")},m))},T=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,a=e.disabled,l=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,d=e.mode,f=e.open,p=e.values,m=e.placeholder,g=e.tabIndex,h=e.showSearch,v=e.searchValue,b=e.activeValue,y=e.maxLength,x=e.onInputKeyDown,w=e.onInputMouseDown,S=e.onInputChange,E=e.onInputPaste,k=e.onInputCompositionStart,I=e.onInputCompositionEnd,N=e.onInputBlur,M=e.title,Z=o.useState(!1),$=(0,u.Z)(Z,2),A=$[0],z=$[1],T="combobox"===d,P=T||h,L=p[0],R=v||"";T&&b&&!A&&(R=b),o.useEffect((function(){T&&z(!1)}),[T,b]);var B=!("combobox"!==d&&!f&&!h)&&!!R,D=void 0===M?O(L):M,H=o.useMemo((function(){return L?null:o.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:B?{visibility:"hidden"}:void 0},m)}),[L,B,m,n]);return o.createElement("span",{className:"".concat(n,"-selection-wrap")},o.createElement("span",{className:"".concat(n,"-selection-search")},o.createElement(j,{ref:i,prefixCls:n,id:r,open:f,inputElement:t,disabled:a,autoFocus:l,autoComplete:c,editable:P,activeDescendantId:s,value:R,onKeyDown:x,onMouseDown:w,onChange:function(e){z(!0),S(e)},onPaste:E,onCompositionStart:k,onCompositionEnd:I,onBlur:N,tabIndex:g,attrs:(0,C.Z)(e,!0),maxLength:T?y:void 0})),!T&&L?o.createElement("span",{className:"".concat(n,"-selection-item"),title:D,style:B?{visibility:"hidden"}:void 0},L.label):null,H)},P=function(e,t){var n=(0,o.useRef)(null),r=(0,o.useRef)(!1),i=e.prefixCls,l=e.open,c=e.mode,s=e.showSearch,d=e.tokenWithEnter,f=e.disabled,p=e.prefix,m=e.autoClearSearchValue,g=e.onSearch,h=e.onSearchSubmit,v=e.onToggleOpen,b=e.onInputKeyDown,y=e.onInputBlur,C=e.domRef;o.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var S=x(0),E=(0,u.Z)(S,2),k=E[0],I=E[1],j=(0,o.useRef)(null),N=function(e){!1!==g(e,!0,r.current)&&v(!0)},M={inputRef:n,onInputKeyDown:function(e){var t,o=e.which,i=n.current instanceof HTMLTextAreaElement;(i||!l||o!==w.Z.UP&&o!==w.Z.DOWN||e.preventDefault(),b&&b(e),o!==w.Z.ENTER||"tags"!==c||r.current||l||null==h||h(e.target.value),i&&!l&&~[w.Z.UP,w.Z.DOWN,w.Z.LEFT,w.Z.RIGHT].indexOf(o))||(t=o)&&![w.Z.ESC,w.Z.SHIFT,w.Z.BACKSPACE,w.Z.TAB,w.Z.WIN_KEY,w.Z.ALT,w.Z.META,w.Z.WIN_KEY_RIGHT,w.Z.CTRL,w.Z.SEMICOLON,w.Z.EQUALS,w.Z.CAPS_LOCK,w.Z.CONTEXT_MENU,w.Z.F1,w.Z.F2,w.Z.F3,w.Z.F4,w.Z.F5,w.Z.F6,w.Z.F7,w.Z.F8,w.Z.F9,w.Z.F10,w.Z.F11,w.Z.F12].includes(t)&&v(!0)},onInputMouseDown:function(){I(!0)},onInputChange:function(e){var t=e.target.value;if(d&&j.current&&/[\r\n]/.test(j.current)){var n=j.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,j.current)}j.current=null,N(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");j.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==c&&N(e.target.value)},onInputBlur:y},Z="multiple"===c||"tags"===c?o.createElement(z,(0,a.Z)({},e,M)):o.createElement(T,(0,a.Z)({},e,M));return o.createElement("div",{ref:C,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=k();e.target===n.current||t||"combobox"===c&&f||e.preventDefault(),("combobox"===c||s&&t)&&l||(l&&!1!==m&&g("",!0,!1),v())}},p&&o.createElement("div",{className:"".concat(i,"-prefix")},p),Z)};var L=o.forwardRef(P),R=n(65966),B=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],D=function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),l=e.children,u=e.popupElement,f=e.animation,p=e.transitionName,m=e.dropdownStyle,g=e.dropdownClassName,h=e.direction,v=void 0===h?"ltr":h,b=e.placement,y=e.builtinPlacements,x=e.dropdownMatchSelectWidth,w=e.dropdownRender,C=e.dropdownAlign,S=e.getPopupContainer,E=e.empty,k=e.getTriggerDOMNode,I=e.onPopupVisibleChange,j=e.onPopupMouseEnter,N=(0,d.Z)(e,B),M="".concat(n,"-dropdown"),Z=u;w&&(Z=w(u));var O=o.useMemo((function(){return y||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(x)}),[y,x]),$=f?"".concat(M,"-").concat(f):p,A="number"==typeof x,z=o.useMemo((function(){return A?null:!1===x?"minWidth":"width"}),[x,A]),T=m;A&&(T=(0,s.Z)((0,s.Z)({},T),{},{width:x}));var P=o.useRef(null);return o.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=P.current)||void 0===e?void 0:e.popupElement}}})),o.createElement(R.Z,(0,a.Z)({},N,{showAction:I?["click"]:[],hideAction:I?["click"]:[],popupPlacement:b||("rtl"===v?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:M,popupTransitionName:$,popup:o.createElement("div",{onMouseEnter:j},Z),ref:P,stretch:z,popupAlign:C,popupVisible:r,getPopupContainer:S,popupClassName:i()(g,(0,c.Z)({},"".concat(M,"-empty"),E)),popupStyle:T,getTriggerDOMNode:k,onPopupVisibleChange:I}),l)};var H=o.forwardRef(D),W=n(21696);function F(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!=o?o:void 0!==n?n:"rc-index-key-".concat(t)}function K(e){return void 0!==e&&!Number.isNaN(e)}function V(e,t){var n=e||{},o=n.label||(t?"children":"label");return{label:o,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||o}}function q(e){var t=(0,s.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,m.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var X=o.createContext(null);function G(e){var t=e.visible,n=e.values;if(!t)return null;return o.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes((0,f.Z)(t))?t:n})).join(", ")),n.length>50?", ...":null)}var Q=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],_=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],U=function(e){return"tags"===e||"multiple"===e},Y=o.forwardRef((function(e,t){var n,r=e.id,m=e.prefixCls,w=e.className,C=e.showSearch,S=e.tagRender,E=e.direction,k=e.omitDomProps,I=e.displayValues,j=e.onDisplayValuesChange,N=e.emptyOptions,M=e.notFoundContent,Z=void 0===M?"Not Found":M,O=e.onClear,$=e.mode,A=e.disabled,z=e.loading,T=e.getInputElement,P=e.getRawInputElement,R=e.open,B=e.defaultOpen,D=e.onDropdownVisibleChange,F=e.activeValue,V=e.onActiveValueChange,q=e.activeDescendantId,Y=e.searchValue,J=e.autoClearSearchValue,ee=e.onSearch,te=e.onSearchSplit,ne=e.tokenSeparators,oe=e.allowClear,re=e.prefix,ie=e.suffixIcon,ae=e.clearIcon,le=e.OptionList,ce=e.animation,se=e.transitionName,ue=e.dropdownStyle,de=e.dropdownClassName,fe=e.dropdownMatchSelectWidth,pe=e.dropdownRender,me=e.dropdownAlign,ge=e.placement,he=e.builtinPlacements,ve=e.getPopupContainer,be=e.showAction,ye=void 0===be?[]:be,xe=e.onFocus,we=e.onBlur,Ce=e.onKeyUp,Se=e.onKeyDown,Ee=e.onMouseDown,ke=(0,d.Z)(e,Q),Ie=U($),je=(void 0!==C?C:Ie)||"combobox"===$,Ne=(0,s.Z)({},ke);_.forEach((function(e){delete Ne[e]})),null==k||k.forEach((function(e){delete Ne[e]}));var Me=o.useState(!1),Ze=(0,u.Z)(Me,2),Oe=Ze[0],$e=Ze[1];o.useEffect((function(){$e((0,h.Z)())}),[]);var Ae=o.useRef(null),ze=o.useRef(null),Te=o.useRef(null),Pe=o.useRef(null),Le=o.useRef(null),Re=o.useRef(!1),Be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=o.useState(!1),n=(0,u.Z)(t,2),r=n[0],i=n[1],a=o.useRef(null),l=function(){window.clearTimeout(a.current)};return o.useEffect((function(){return l}),[]),[r,function(t,n){l(),a.current=window.setTimeout((function(){i(t),n&&n()}),e)},l]}(),De=(0,u.Z)(Be,3),He=De[0],We=De[1],Fe=De[2];o.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Pe.current)||void 0===e?void 0:e.focus,blur:null===(t=Pe.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Le.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:Ae.current||ze.current}}));var Ke=o.useMemo((function(){var e;if("combobox"!==$)return Y;var t=null===(e=I[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[Y,$,I]),Ve="combobox"===$&&"function"==typeof T&&T()||null,qe="function"==typeof P&&P(),Xe=(0,v.x1)(ze,null==qe||null===(n=qe.props)||void 0===n?void 0:n.ref),Ge=o.useState(!1),Qe=(0,u.Z)(Ge,2),_e=Qe[0],Ue=Qe[1];(0,g.Z)((function(){Ue(!0)}),[]);var Ye=(0,p.Z)(!1,{defaultValue:B,value:R}),Je=(0,u.Z)(Ye,2),et=Je[0],tt=Je[1],nt=!!_e&&et,ot=!Z&&N;(A||ot&&nt&&"combobox"===$)&&(nt=!1);var rt=!ot&&nt,it=o.useCallback((function(e){var t=void 0!==e?e:!nt;A||(tt(t),nt!==t&&(null==D||D(t)))}),[A,nt,tt,D]),at=o.useMemo((function(){return(ne||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ne]),lt=o.useContext(X)||{},ct=lt.maxCount,st=lt.rawValues,ut=function(e,t,n){if(!(Ie&&K(ct)&&(null==st?void 0:st.size)>=ct)){var o=!0,r=e;null==V||V(null);var i=function(e,t,n){if(!t||!t.length)return null;var o=!1,r=function e(t,n){var r=(0,W.Z)(n),i=r[0],a=r.slice(1);if(!i)return[t];var c=t.split(i);return o=o||c.length>1,c.reduce((function(t,n){return[].concat((0,l.Z)(t),(0,l.Z)(e(n,a)))}),[]).filter(Boolean)}(e,t);return o?void 0!==n?r.slice(0,n):r:null}(e,ne,K(ct)?ct-st.size:void 0),a=n?null:i;return"combobox"!==$&&a&&(r="",null==te||te(a),it(!1),o=!1),ee&&Ke!==r&&ee(r,{source:t?"typing":"effect"}),o}};o.useEffect((function(){nt||Ie||"combobox"===$||ut("",!1,!1)}),[nt]),o.useEffect((function(){et&&A&&tt(!1),A&&!Re.current&&We(!1)}),[A]);var dt=x(),ft=(0,u.Z)(dt,2),pt=ft[0],mt=ft[1],gt=o.useRef(!1),ht=o.useRef(!1),vt=[];o.useEffect((function(){return function(){vt.forEach((function(e){return clearTimeout(e)})),vt.splice(0,vt.length)}}),[]);var bt,yt=o.useState({}),xt=(0,u.Z)(yt,2)[1];qe&&(bt=function(e){it(e)}),function(e,t,n,r){var i=o.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},o.useEffect((function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var o=t.target;o.shadowRoot&&t.composed&&(o=t.composedPath()[0]||o),i.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Ae.current,null===(e=Te.current)||void 0===e?void 0:e.getPopupElement()]}),rt,it,!!qe);var wt,Ct=o.useMemo((function(){return(0,s.Z)((0,s.Z)({},e),{},{notFoundContent:Z,open:nt,triggerOpen:rt,id:r,showSearch:je,multiple:Ie,toggleOpen:it})}),[e,Z,rt,nt,r,je,Ie,it]),St=!!ie||z;St&&(wt=o.createElement(b,{className:i()("".concat(m,"-arrow"),(0,c.Z)({},"".concat(m,"-arrow-loading"),z)),customizeIcon:ie,customizeIconProps:{loading:z,searchValue:Ke,open:nt,focused:He,showSearch:je}}));var Et,kt=function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=o.useMemo((function(){return"object"===(0,f.Z)(r)?r.clearIcon:i||void 0}),[r,i]),u=o.useMemo((function(){return!(a||!r||!n.length&&!l||"combobox"===c&&""===l)}),[r,a,n.length,l,c]);return{allowClear:u,clearIcon:o.createElement(b,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"×")}}(m,(function(){var e;null==O||O(),null===(e=Pe.current)||void 0===e||e.focus(),j([],{type:"clear",values:I}),ut("",!1,!1)}),I,oe,ae,A,Ke,$),It=kt.allowClear,jt=kt.clearIcon,Nt=o.createElement(le,{ref:Le}),Mt=i()(m,w,(0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)({},"".concat(m,"-focused"),He),"".concat(m,"-multiple"),Ie),"".concat(m,"-single"),!Ie),"".concat(m,"-allow-clear"),oe),"".concat(m,"-show-arrow"),St),"".concat(m,"-disabled"),A),"".concat(m,"-loading"),z),"".concat(m,"-open"),nt),"".concat(m,"-customize-input"),Ve),"".concat(m,"-show-search"),je)),Zt=o.createElement(H,{ref:Te,disabled:A,prefixCls:m,visible:rt,popupElement:Nt,animation:ce,transitionName:se,dropdownStyle:ue,dropdownClassName:de,direction:E,dropdownMatchSelectWidth:fe,dropdownRender:pe,dropdownAlign:me,placement:ge,builtinPlacements:he,getPopupContainer:ve,empty:N,getTriggerDOMNode:function(e){return ze.current||e},onPopupVisibleChange:bt,onPopupMouseEnter:function(){xt({})}},qe?o.cloneElement(qe,{ref:Xe}):o.createElement(L,(0,a.Z)({},e,{domRef:ze,prefixCls:m,inputElement:Ve,ref:Pe,id:r,prefix:re,showSearch:je,autoClearSearchValue:J,mode:$,activeDescendantId:q,tagRender:S,values:I,open:nt,onToggleOpen:it,activeValue:F,searchValue:Ke,onSearch:ut,onSearchSubmit:function(e){e&&e.trim()&&ee(e,{source:"submit"})},onRemove:function(e){var t=I.filter((function(t){return t!==e}));j(t,{type:"remove",values:[e]})},tokenWithEnter:at,onInputBlur:function(){gt.current=!1}})));return Et=qe?Zt:o.createElement("div",(0,a.Z)({className:Mt},Ne,{ref:Ae,onMouseDown:function(e){var t,n=e.target,o=null===(t=Te.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout((function(){var e,t=vt.indexOf(r);-1!==t&&vt.splice(t,1),Fe(),Oe||o.contains(document.activeElement)||null===(e=Pe.current)||void 0===e||e.focus()}));vt.push(r)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l=0;c-=1){var s=i[c];if(!s.disabled){i.splice(c,1),a=s;break}}a&&j(i,{type:"remove",values:[a]})}for(var u=arguments.length,d=new Array(u>1?u-1:0),f=1;f1?t-1:0),o=1;o=E}),[p,E,null==Z?void 0:Z.size]),H=function(e){e.preventDefault()},W=function(e){var t;null===(t=B.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},F=o.useCallback((function(e){return"combobox"!==m&&Z.has(e)}),[m,(0,l.Z)(Z).toString(),Z.size]),V=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=R.length,o=0;o1&&void 0!==arguments[1]&&arguments[1];_(e);var n={source:t?"keyboard":"mouse"},o=R[e];o?I(o.value,e,n):I(null,-1,n)};(0,o.useEffect)((function(){U(!1!==j?V(0):-1)}),[R.length,g]);var Y=o.useCallback((function(e){return"combobox"===m?String(e).toLowerCase()===g.toLowerCase():Z.has(e)}),[m,g,(0,l.Z)(Z).toString(),Z.size]);(0,o.useEffect)((function(){var e,t=setTimeout((function(){if(!p&&f&&1===Z.size){var e=Array.from(Z)[0],t=R.findIndex((function(t){var n=t.data;return g?String(n.value).startsWith(g):n.value===e}));-1!==t&&(U(t),W(t))}}));f&&(null===(e=B.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[f,g]);var J=function(e){void 0!==e&&N(e,{selected:!Z.has(e)}),p||h(!1)};if(o.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case w.Z.N:case w.Z.P:case w.Z.UP:case w.Z.DOWN:var o=0;if(t===w.Z.UP?o=-1:t===w.Z.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===w.Z.N?o=1:t===w.Z.P&&(o=-1)),0!==o){var r=V(Q+o,o);W(r),U(r,!0)}break;case w.Z.TAB:case w.Z.ENTER:var i,a=R[Q];!a||null!=a&&null!==(i=a.data)&&void 0!==i&&i.disabled||D?J(void 0):J(a.value),f&&e.preventDefault();break;case w.Z.ESC:h(!1),f&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){W(e)}}})),0===R.length)return o.createElement("div",{role:"listbox",id:"".concat(s,"_list"),className:"".concat(L,"-empty"),onMouseDown:H},v);var ee=Object.keys(O).map((function(e){return O[e]})),te=function(e){return e.label};function ne(e,t){return{role:e.group?"presentation":"option",id:"".concat(s,"_list_").concat(t)}}var oe=function(e){var t=R[e];if(!t)return null;var n=t.data||{},r=n.value,i=t.group,l=(0,C.Z)(n,!0),c=te(t);return t?o.createElement("div",(0,a.Z)({"aria-label":"string"!=typeof c||i?null:c},l,{key:e},ne(t,e),{"aria-selected":Y(r)}),r):null},se={role:"listbox",id:"".concat(s,"_list")};return o.createElement(o.Fragment,null,$&&o.createElement("div",(0,a.Z)({},se,{style:{height:0,width:0,overflow:"hidden"}}),oe(Q-1),oe(Q),oe(Q+1)),o.createElement(ae.Z,{itemKey:"key",ref:B,data:R,height:z,itemHeight:T,fullHeight:!1,onMouseDown:H,onScroll:x,virtual:$,direction:A,innerProps:$?null:se},(function(e,t){var n=e.group,r=e.groupOption,l=e.data,s=e.label,u=e.value,f=l.key;if(n){var p,m=null!==(p=l.title)&&void 0!==p?p:ce(s)?s.toString():void 0;return o.createElement("div",{className:i()(L,"".concat(L,"-group"),l.className),title:m},void 0!==s?s:f)}var g=l.disabled,h=l.title,v=(l.children,l.style),y=l.className,x=(0,d.Z)(l,le),w=(0,ie.Z)(x,ee),S=F(u),E=g||!S&&D,k="".concat(L,"-option"),I=i()(L,k,y,(0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)({},"".concat(k,"-grouped"),r),"".concat(k,"-active"),Q===t&&!E),"".concat(k,"-disabled"),E),"".concat(k,"-selected"),S)),j=te(e),N=!M||"function"==typeof M||S,Z="number"==typeof j?j:j||u,O=ce(Z)?Z.toString():void 0;return void 0!==h&&(O=h),o.createElement("div",(0,a.Z)({},(0,C.Z)(w),$?{}:ne(e,t),{"aria-selected":Y(u),className:I,title:O,onMouseMove:function(){Q===t||E||U(t)},onClick:function(){E||J(u)},style:v}),o.createElement("div",{className:"".concat(k,"-content")},"function"==typeof P?P(e,{index:t}):Z),o.isValidElement(M)||S,N&&o.createElement(b,{className:"".concat(L,"-option-state"),customizeIcon:M,customizeIconProps:{value:u,disabled:E,isSelected:S}},S?"✓":null))})))};var ue=o.forwardRef(se);function de(e,t){return N(e).join("").toUpperCase().includes(t)}var fe=n(47273),pe=0,me=(0,fe.Z)();function ge(e){var t=o.useState(),n=(0,u.Z)(t,2),r=n[0],i=n[1];return o.useEffect((function(){var e;i("rc_select_".concat((me?(e=pe,pe+=1):e="TEST_OR_SSR",e)))}),[]),e||r}var he=n(11592),ve=["children","value"],be=["children"];function ye(e){var t=e,n=t.key,o=t.props,r=o.children,i=o.value,a=(0,d.Z)(o,ve);return(0,s.Z)({key:n,value:void 0!==i?i:n,children:r},a)}function xe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,he.Z)(e).map((function(e,n){if(!o.isValidElement(e)||!e.type)return null;var r=e,i=r.type.isSelectOptGroup,a=r.key,l=r.props,c=l.children,u=(0,d.Z)(l,be);return t||!i?ye(e):(0,s.Z)((0,s.Z)({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},u),{},{options:xe(c)})})).filter((function(e){return e}))}var we=function(e,t,n,r,i){return o.useMemo((function(){var o=e;!e&&(o=xe(t));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s0?e(t.options):t.options}):t}))},Le=o.useMemo((function(){return j?Pe(Te):Te}),[Te,j,ce]),Re=o.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=V(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;function u(e,t){Array.isArray(e)&&e.forEach((function(e){if(t||!(c in e)){var n=e[l];r.push({key:F(e,r.length),groupOption:t,data:e,label:e[a],value:n})}else{var i=e[s];void 0===i&&o&&(i=e.label),r.push({key:F(e,r.length),group:!0,data:e,label:i}),u(e[c],!0)}}))}return u(e,!1),r}(Le,{fieldNames:ie,childrenAsData:oe})}),[Le,ie,oe]),Be=function(e){var t=ve(e);if(ke(t),_&&(t.length!==Me.length||t.some((function(e,t){var n;return(null===(n=Me[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=Q?t:t.map((function(e){return e.value})),o=t.map((function(e){return q(Ze(e.value))}));_(ne?n:n[0],ne?o:o[0])}},De=o.useState(null),He=(0,u.Z)(De,2),We=He[0],Fe=He[1],Ke=o.useState(0),Ve=(0,u.Z)(Ke,2),qe=Ve[0],Xe=Ve[1],Ge=void 0!==z?z:"combobox"!==r,Qe=o.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.source,i=void 0===o?"keyboard":o;Xe(t),g&&"combobox"===r&&null!==e&&"keyboard"===i&&Fe(String(e))}),[g,r]),_e=function(e,t,n){var o=function(){var t,n=Ze(e);return[Q?{label:null==n?void 0:n[ie.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,q(n)]};if(t&&C){var r=o(),i=(0,u.Z)(r,2),a=i[0],l=i[1];C(a,l)}else if(!t&&S&&"clear"!==n){var c=o(),s=(0,u.Z)(c,2),d=s[0],f=s[1];S(d,f)}},Ue=Ce((function(e,t){var n,o=!ne||t.selected;n=o?ne?[].concat((0,l.Z)(Me),[e]):[e]:Me.filter((function(t){return t.value!==e})),Be(n),_e(e,o),"combobox"===r?Fe(""):U&&!w||(se(""),Fe(""))})),Ye=o.useMemo((function(){var e=!1!==P&&!1!==k;return(0,s.Z)((0,s.Z)({},fe),{},{flattenOptions:Re,onActiveValue:Qe,defaultActiveFirstOption:Ge,onSelect:Ue,menuItemSelectedIcon:T,rawValues:$e,fieldNames:ie,virtual:e,direction:L,listHeight:B,listItemHeight:H,childrenAsData:oe,maxCount:Y,optionRender:$})}),[Y,fe,Re,Qe,Ge,Ue,T,$e,ie,P,k,L,B,H,oe,$]);return o.createElement(X.Provider,{value:Ye},o.createElement(J,(0,a.Z)({},ee,{id:te,prefixCls:m,ref:t,omitDomProps:Ee,mode:r,displayValues:Oe,onDisplayValuesChange:function(e,t){Be(e);var n=t.type,o=t.values;"remove"!==n&&"clear"!==n||o.forEach((function(e){_e(e.value,!1,n)}))},direction:L,searchValue:ce,onSearch:function(e,t){if(se(e),Fe(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&Be(e),null==y||y(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat((0,l.Z)($e),[n])));Be(o),_e(n,!0),se("")}}},autoClearSearchValue:w,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=me.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,l.Z)($e),(0,l.Z)(t))));Be(n),n.forEach((function(e){_e(e,!0)}))},dropdownMatchSelectWidth:k,OptionList:ue,emptyOptions:!Re.length,activeValue:We,activeDescendantId:"".concat(te,"_list_").concat(qe)})))}));var Ie=ke;Ie.Option=oe,Ie.OptGroup=te;var je=Ie,Ne=n(75030),Me=n(86641),Ze=n(45915),Oe=n(82855),$e=n(48755),Ae=n(38406),ze=n(2171),Te=n(83397),Pe=n(31756),Le=n(56553),Re=n(24971),Be=n(70045),De=n(57700);var He=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},We=n(63356),Fe=n(56119),Ke=n(16931),Ve=n(51636),qe=n(46e3),Xe=n(93873);const Ge=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}};var Qe=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,c=`${o}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,We.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${r}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:qe.fJ},[`\n ${r}${l}topLeft,\n ${i}${l}topLeft,\n ${r}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:qe.Qt},[`${a}${l}bottomLeft`]:{animationName:qe.Uw},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:qe.ly},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},Ge(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},We.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ge(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,qe.oN)(e,"slide-up"),(0,qe.oN)(e,"slide-down"),(0,Xe.Fm)(e,"move-up"),(0,Xe.Fm)(e,"move-down")]},_e=n(26743),Ue=n(66604);function Ye(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal();return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},(0,We.Wf)(e,!0)),{display:"flex",borderRadius:r,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:(0,Ue.bf)(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{display:"block",padding:0,lineHeight:(0,Ue.bf)(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-search,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Ue.bf)(o)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:(0,Ue.bf)(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Ue.bf)(o)}`,"&:after":{display:"none"}}}}}}}function Je(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Ye(e),Ye((0,Ve.IX)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${(0,Ue.bf)(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Ye((0,Ve.IX)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const et=(e,t)=>{const{componentCls:n,antCls:o,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${(0,Ue.bf)(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${(0,Ue.bf)(r)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},tt=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},et(e,t))}),nt=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},et(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),tt(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),tt(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,Ue.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),ot=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${(0,Ue.bf)(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},rt=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ot(e,t))}),it=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ot(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),rt(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),rt(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${(0,Ue.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),at=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${(0,Ue.bf)(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,Ue.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),lt=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${(0,Ue.bf)(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},ct=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},lt(e,t))}),st=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},lt(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),ct(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),ct(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,Ue.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})});var ut=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},nt(e)),it(e)),at(e)),st(e))});const dt=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ft=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},pt=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},(0,We.Wf)(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},dt(e)),ft(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},We.vS),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},We.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},(0,We.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},mt=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},pt(e),Je(e),(0,_e.ZP)(e),Qe(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,Fe.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var gt=(0,Ke.I$)("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=(0,Ve.IX)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[mt(o),ut(o)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeight:r,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:h,colorTextDisabled:v,colorPrimaryHover:b,colorPrimary:y,controlOutline:x}=e,w=2*l,C=2*o,S=Math.min(r-w,r-C),E=Math.min(i-w,i-C),k=Math.min(a-w,a-C);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(r-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:E,multipleItemHeightLG:k,multipleSelectorBgDisabled:h,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:x,selectAffixPadding:l}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),ht=n(68525);var vt=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,bordered:a,className:l,rootClassName:c,getPopupContainer:s,popupClassName:u,dropdownClassName:d,listHeight:f=256,placement:p,listItemHeight:m,size:g,disabled:h,notFoundContent:v,status:b,builtinPlacements:y,dropdownMatchSelectWidth:x,popupMatchSelectWidth:w,direction:C,style:S,allowClear:E,variant:k,dropdownStyle:I,transitionName:j,tagRender:N,maxCount:M,prefix:Z}=e,O=vt(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:$,getPrefixCls:A,renderEmpty:z,direction:T,virtual:P,popupMatchSelectWidth:L,popupOverflow:R}=o.useContext($e.E_),B=(0,$e.dj)("select"),[,D]=(0,De.ZP)(),H=null!=m?m:null==D?void 0:D.controlHeight,W=A("select",r),F=A(),K=null!=C?C:T,{compactSize:V,compactItemClassnames:q}=(0,Be.ri)(W,K),[X,G]=(0,Re.Z)("select",k,a),Q=(0,Te.Z)(W),[_,U,Y]=gt(W,Q),J=o.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===bt?"combobox":t}),[e.mode]),ee="multiple"===J||"tags"===J,te=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ne=null!==(n=null!=w?w:x)&&void 0!==n?n:L,{status:oe,hasFeedback:re,isFormItemInput:ae,feedbackIcon:le}=o.useContext(Le.aM),ce=(0,Oe.F)(oe,b);let se;se=void 0!==v?v:"combobox"===J?null:(null==z?void 0:z("Select"))||o.createElement(Ae.Z,{componentName:"Select"});const{suffixIcon:ue,itemIcon:de,removeIcon:fe,clearIcon:pe}=(0,ht.Z)(Object.assign(Object.assign({},O),{multiple:ee,hasFeedback:re,feedbackIcon:le,showSuffixIcon:te,prefixCls:W,componentName:"Select"})),me=!0===E?{clearIcon:pe}:E,ge=(0,ie.Z)(O,["suffixIcon","itemIcon"]),he=i()(u||d,{[`${W}-dropdown-${K}`]:"rtl"===K},c,Y,Q,U),ve=(0,Pe.Z)((e=>{var t;return null!==(t=null!=g?g:V)&&void 0!==t?t:e})),be=o.useContext(ze.Z),ye=null!=h?h:be,xe=i()({[`${W}-lg`]:"large"===ve,[`${W}-sm`]:"small"===ve,[`${W}-rtl`]:"rtl"===K,[`${W}-${X}`]:G,[`${W}-in-form-item`]:ae},(0,Oe.Z)(W,ce,re),q,B.className,l,c,Y,Q,U),we=o.useMemo((()=>void 0!==p?p:"rtl"===K?"bottomRight":"bottomLeft"),[p,K]);const[Ce]=(0,Ne.Cn)("SelectLike",null==I?void 0:I.zIndex);return _(o.createElement(je,Object.assign({ref:t,virtual:P,showSearch:B.showSearch},ge,{style:Object.assign(Object.assign({},B.style),S),dropdownMatchSelectWidth:ne,transitionName:(0,Me.m)(F,"slide-up",j),builtinPlacements:He(y,R),listHeight:f,listItemHeight:H,mode:J,prefixCls:W,placement:we,direction:K,prefix:Z,suffixIcon:ue,menuItemSelectedIcon:de,removeIcon:fe,allowClear:me,notFoundContent:se,className:xe,getPopupContainer:s||$,dropdownClassName:he,disabled:ye,dropdownStyle:Object.assign(Object.assign({},I),{zIndex:Ce}),maxCount:ee?M:void 0,tagRender:ee?N:void 0})))};const xt=o.forwardRef(yt),wt=(0,Ze.Z)(xt,"dropdownAlign");xt.SECRET_COMBOBOX_MODE_DO_NOT_USE=bt,xt.Option=oe,xt.OptGroup=te,xt._InternalPanelDoNotUseOrYouWillBeFired=wt;var Ct=xt},26743:function(e,t,n){n.d(t,{_z:function(){return l},gp:function(){return a}});var o=n(66604),r=n(63356),i=n(51636);const a=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(i).equal(),0),itemHeight:(0,o.bf)(t),itemLineHeight:(0,o.bf)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},l=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:o,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:l,multipleItemBorderColorDisabled:c,colorIcon:s,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:o,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:l,borderColor:c,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,r.Ro)()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},c=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,c=e.multipleSelectItemHeight,s=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:o}=e;return e.calc(n).sub(t).div(2).sub(o).equal()})(e),u=t?`${n}-${t}`:"",d=a(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},l(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:d.basePadding,paddingBlock:d.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,o.bf)(r)} 0`,lineHeight:(0,o.bf)(c),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:d.itemHeight,lineHeight:(0,o.bf)(d.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,o.bf)(c),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal()},[`${i}-item + ${i}-item,\n ${n}-prefix + ${n}-selection-wrap\n `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:d.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s).equal(),"\n &-input,\n &-mirror\n ":{height:c,fontFamily:e.fontFamily,lineHeight:(0,o.bf)(c),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function s(e,t){const{componentCls:n}=e,o={[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[c(e,t),o]}t.ZP=e=>{const{componentCls:t}=e,n=(0,i.IX)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=(0,i.IX)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[s(e),s(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},s(o,"lg")]}},68525:function(e,t,n){n.d(t,{Z:function(){return u}});var o=n(59301),r=n(40001),i=n(19248),a=n(99267),l=n(84105),c=n(58617),s=n(47472);function u(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:u,removeIcon:d,loading:f,multiple:p,hasFeedback:m,prefixCls:g,showSuffixIcon:h,feedbackIcon:v,showArrow:b,componentName:y}=e;const x=null!=n?n:o.createElement(i.Z,null),w=e=>null!==t||m||b?o.createElement(o.Fragment,null,!1!==h&&e,m&&v):null;let C=null;if(void 0!==t)C=w(t);else if(f)C=w(o.createElement(c.Z,{spin:!0}));else{const e=`${g}-suffix`;C=t=>{let{open:n,showSearch:r}=t;return w(n&&r?o.createElement(s.Z,{className:e}):o.createElement(l.Z,{className:e}))}}let S=null;S=void 0!==u?u:p?o.createElement(r.Z,null):null;let E=null;return E=void 0!==d?d:o.createElement(a.Z,null),{clearIcon:x,suffixIcon:C,itemIcon:S,removeIcon:E}}},77736:function(e,t,n){n.d(t,{Z:function(){return v}});var o=n(59301),r=n(92310),i=n.n(r),a=n(11592);function l(e){return["small","middle","large"].includes(e)}function c(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}var s=n(48755),u=n(70045);const d=o.createContext({latestIndex:0}),f=d.Provider;var p=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:l}=o.useContext(d);return null==r?null:o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:a},r),n{var n;const{getPrefixCls:r,direction:u,size:d,className:h,style:v,classNames:b,styles:y}=(0,s.dj)("space"),{size:x=(null!=d?d:"small"),align:w,className:C,rootClassName:S,children:E,direction:k="horizontal",prefixCls:I,split:j,style:N,wrap:M=!1,classNames:Z,styles:O}=e,$=g(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[A,z]=Array.isArray(x)?x:[x,x],T=l(z),P=l(A),L=c(z),R=c(A),B=(0,a.Z)(E,{keepEmpty:!0}),D=void 0===w&&"horizontal"===k?"center":w,H=r("space",I),[W,F,K]=(0,m.Z)(H),V=i()(H,h,F,`${H}-${k}`,{[`${H}-rtl`]:"rtl"===u,[`${H}-align-${D}`]:D,[`${H}-gap-row-${z}`]:T,[`${H}-gap-col-${A}`]:P},C,S,K),q=i()(`${H}-item`,null!==(n=null==Z?void 0:Z.item)&&void 0!==n?n:b.item);let X=0;const G=B.map(((e,t)=>{var n;null!=e&&(X=t);const r=(null==e?void 0:e.key)||`${q}-${t}`;return o.createElement(p,{className:q,key:r,index:t,split:j,style:null!==(n=null==O?void 0:O.item)&&void 0!==n?n:y.item},e)})),Q=o.useMemo((()=>({latestIndex:X})),[X]);if(0===B.length)return null;const _={};return M&&(_.flexWrap="wrap"),!P&&R&&(_.columnGap=A),!T&&L&&(_.rowGap=z),W(o.createElement("div",Object.assign({ref:t,className:V,style:Object.assign(Object.assign(Object.assign({},_),v),N)},$),o.createElement(f,{value:Q},G)))}));h.Compact=u.ZP;var v=h},34961:function(e,t){t.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},93873:function(e,t,n){n.d(t,{Fm:function(){return f}});var o=n(66604),r=n(48746);const i=new o.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new o.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),l=new o.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),c=new o.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),s=new o.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new o.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d={"move-up":{inKeyframes:new o.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new o.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:i,outKeyframes:a},"move-left":{inKeyframes:l,outKeyframes:c},"move-right":{inKeyframes:s,outKeyframes:u}},f=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=d[t];return[(0,r.R)(o,i,a,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},46e3:function(e,t,n){n.d(t,{Qt:function(){return l},Uw:function(){return a},fJ:function(){return i},ly:function(){return c},oN:function(){return m}});var o=n(66604),r=n(48746);const i=new o.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new o.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new o.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),c=new o.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),s=new o.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),u=new o.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),d=new o.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),f=new o.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),p={"slide-up":{inKeyframes:i,outKeyframes:a},"slide-down":{inKeyframes:l,outKeyframes:c},"slide-left":{inKeyframes:s,outKeyframes:u},"slide-right":{inKeyframes:d,outKeyframes:f}},m=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=p[t];return[(0,r.R)(o,i,a,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},37645:function(e,t,n){n.d(t,{ZP:function(){return c},qN:function(){return i},wZ:function(){return a}});var o=n(66604),r=n(36305);const i=8;function a(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?i:o}}function l(e,t){return e?t:{}}function c(e,t,n){const{componentCls:i,boxShadowPopoverArrow:a,arrowOffsetVertical:c,arrowOffsetHorizontal:s}=e,{arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[i]:Object.assign(Object.assign(Object.assign(Object.assign({[`${i}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,r.W)(e,t,a)),{"&:before":{background:t}})]},l(!!d.top,{[[`&-placement-top > ${i}-arrow`,`&-placement-topLeft > ${i}-arrow`,`&-placement-topRight > ${i}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,o.bf)(s)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),l(!!d.bottom,{[[`&-placement-bottom > ${i}-arrow`,`&-placement-bottomLeft > ${i}-arrow`,`&-placement-bottomRight > ${i}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,o.bf)(s)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),l(!!d.left,{[[`&-placement-left > ${i}-arrow`,`&-placement-leftTop > ${i}-arrow`,`&-placement-leftBottom > ${i}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${i}-arrow`]:{top:c},[`&-placement-leftBottom > ${i}-arrow`]:{bottom:c}})),l(!!d.right,{[[`&-placement-right > ${i}-arrow`,`&-placement-rightTop > ${i}-arrow`,`&-placement-rightBottom > ${i}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${i}-arrow`]:{top:c},[`&-placement-rightBottom > ${i}-arrow`]:{bottom:c}}))}}},36305:function(e,t,n){n.d(t,{W:function(){return i},w:function(){return r}});var o=n(66604);function r(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,r=t/2,i=r,a=1*o/Math.sqrt(2),l=r-o*(1-1/Math.sqrt(2)),c=r-n*(1/Math.sqrt(2)),s=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*r-c,d=s,f=2*r-a,p=l,m=2*r-0,g=i,h=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),v=o*(Math.sqrt(2)-1);return{arrowShadowWidth:h,arrowPath:`path('M 0 ${i} A ${o} ${o} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${o} ${o} 0 0 0 ${m} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*r-v}px 100%, ${v}px 100%)`}}const i=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:l,borderRadiusXS:c,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,o.bf)(c)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}}},80480:function(e,t,n){n.d(t,{Z:function(){return di}});var o=n(59301),r={},i="rc-table-internal-hook",a=n(50298),l=n(6089),c=n(34280),s=n(13697),u=n(4676);function d(e){var t=o.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,r=e.children,i=o.useRef(n);i.current=n;var l=o.useState((function(){return{getValue:function(){return i.current},listeners:new Set}})),s=(0,a.Z)(l,1)[0];return(0,c.Z)((function(){(0,u.unstable_batchedUpdates)((function(){s.listeners.forEach((function(e){e(n)}))}))}),[n]),o.createElement(t.Provider,{value:s},r)},defaultValue:e}}function f(e,t){var n=(0,l.Z)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),r=o.useContext(null==e?void 0:e.Context),i=r||{},u=i.listeners,d=i.getValue,f=o.useRef();f.current=n(r?d():null==e?void 0:e.defaultValue);var p=o.useState({}),m=(0,a.Z)(p,2)[1];return(0,c.Z)((function(){if(r)return u.add(e),function(){u.delete(e)};function e(e){var t=n(e);(0,s.Z)(f.current,t,!0)||m({})}}),[r]),f.current}var p=n(14809),m=n(8654);function g(){var e=o.createContext(null);function t(){return o.useContext(e)}return{makeImmutable:function(n,r){var i=(0,m.Yr)(n),a=function(a,l){var c=i?{ref:l}:{},s=o.useRef(0),u=o.useRef(a);return null!==t()?o.createElement(n,(0,p.Z)({},a,c)):(r&&!r(u.current,a)||(s.current+=1),u.current=a,o.createElement(e.Provider,{value:s.current},o.createElement(n,(0,p.Z)({},a,c))))};return i?o.forwardRef(a):a},responseImmutable:function(e,n){var r=(0,m.Yr)(e),i=function(n,i){var a=r?{ref:i}:{};return t(),o.createElement(e,(0,p.Z)({},n,a))};return r?o.memo(o.forwardRef(i),n):o.memo(i,n)},useImmutableMark:t}}var h=g(),v=(h.makeImmutable,h.responseImmutable,h.useImmutableMark,g()),b=v.makeImmutable,y=v.responseImmutable,x=v.useImmutableMark,w=d();var C=n(93664),S=n(20439),E=n(4635),k=n(92310),I=n.n(k),j=n(80547),N=n(97938),M=n(48736),Z=o.createContext({renderWithProps:!1});function O(e){var t=[],n={};return e.forEach((function(e){for(var o,r=e||{},i=r.key,a=r.dataIndex,l=i||(o=a,null==o?[]:Array.isArray(o)?o:[o]).join("-")||"RC_TABLE_KEY";n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)})),t}function $(e){return null!=e}function A(e,t,n,r,i,l){var c=o.useContext(Z),u=x();return(0,j.Z)((function(){if($(r))return[r];var a,l=null==t||""===t?[]:Array.isArray(t)?t:[t],s=(0,N.Z)(e,l),u=s,d=void 0;if(i){var f=i(s,e,n);!(a=f)||"object"!==(0,C.Z)(a)||Array.isArray(a)||o.isValidElement(a)?u=f:(u=f.children,d=f.props,c.renderWithProps=!0)}return[u,d]}),[u,e,r,t,i,n],(function(e,t){if(l){var n=(0,a.Z)(e,2)[1],o=(0,a.Z)(t,2)[1];return l(o,n)}return!!c.renderWithProps||!(0,s.Z)(e,t,!0)}))}var z=n(70425);function T(e){var t,n,r,i,l,c,s,u;var d=e.component,m=e.children,g=e.ellipsis,h=e.scope,v=e.prefixCls,b=e.className,y=e.align,x=e.record,k=e.render,j=e.dataIndex,N=e.renderIndex,M=e.shouldCellUpdate,Z=e.index,O=e.rowType,$=e.colSpan,T=e.rowSpan,P=e.fixLeft,L=e.fixRight,R=e.firstFixLeft,B=e.lastFixLeft,D=e.firstFixRight,H=e.lastFixRight,W=e.appendNode,F=e.additionalProps,K=void 0===F?{}:F,V=e.isSticky,q="".concat(v,"-cell"),X=f(w,["supportSticky","allColumnsFixedLeft","rowHoverable"]),G=X.supportSticky,Q=X.allColumnsFixedLeft,_=X.rowHoverable,U=A(x,j,N,m,k,M),Y=(0,a.Z)(U,2),J=Y[0],ee=Y[1],te={},ne="number"==typeof P&&G,oe="number"==typeof L&&G;ne&&(te.position="sticky",te.left=P),oe&&(te.position="sticky",te.right=L);var re=null!==(t=null!==(n=null!==(r=null==ee?void 0:ee.colSpan)&&void 0!==r?r:K.colSpan)&&void 0!==n?n:$)&&void 0!==t?t:1,ie=null!==(i=null!==(l=null!==(c=null==ee?void 0:ee.rowSpan)&&void 0!==c?c:K.rowSpan)&&void 0!==l?l:T)&&void 0!==i?i:1,ae=function(e,t){return f(w,(function(n){var o,r,i,a;return[(o=e,r=t||1,i=n.hoverStartRow,a=n.hoverEndRow,o<=a&&o+r-1>=i),n.onHover]}))}(Z,ie),le=(0,a.Z)(ae,2),ce=le[0],se=le[1],ue=(0,z.zX)((function(e){var t;x&&se(Z,Z+ie-1),null==K||null===(t=K.onMouseEnter)||void 0===t||t.call(K,e)})),de=(0,z.zX)((function(e){var t;x&&se(-1,-1),null==K||null===(t=K.onMouseLeave)||void 0===t||t.call(K,e)}));if(0===re||0===ie)return null;var fe=null!==(s=K.title)&&void 0!==s?s:function(e){var t,n=e.ellipsis,r=e.rowType,i=e.children,a=!0===n?{showTitle:!0}:n;return a&&(a.showTitle||"header"===r)&&("string"==typeof i||"number"==typeof i?t=i.toString():o.isValidElement(i)&&"string"==typeof i.props.children&&(t=i.props.children)),t}({rowType:O,ellipsis:g,children:J}),pe=I()(q,b,(u={},(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)(u,"".concat(q,"-fix-left"),ne&&G),"".concat(q,"-fix-left-first"),R&&G),"".concat(q,"-fix-left-last"),B&&G),"".concat(q,"-fix-left-all"),B&&Q&&G),"".concat(q,"-fix-right"),oe&&G),"".concat(q,"-fix-right-first"),D&&G),"".concat(q,"-fix-right-last"),H&&G),"".concat(q,"-ellipsis"),g),"".concat(q,"-with-append"),W),"".concat(q,"-fix-sticky"),(ne||oe)&&V&&G),(0,E.Z)(u,"".concat(q,"-row-hover"),!ee&&ce)),K.className,null==ee?void 0:ee.className),me={};y&&(me.textAlign=y);var ge=(0,S.Z)((0,S.Z)((0,S.Z)((0,S.Z)({},null==ee?void 0:ee.style),te),me),K.style),he=J;return"object"!==(0,C.Z)(he)||Array.isArray(he)||o.isValidElement(he)||(he=null),g&&(B||D)&&(he=o.createElement("span",{className:"".concat(q,"-content")},he)),o.createElement(d,(0,p.Z)({},ee,K,{className:pe,style:ge,title:fe,scope:h,onMouseEnter:_?ue:void 0,onMouseLeave:_?de:void 0,colSpan:1!==re?re:null,rowSpan:1!==ie?ie:null}),W,he)}var P=o.memo(T);function L(e,t,n,o,r){var i,a,l=n[e]||{},c=n[t]||{};"left"===l.fixed?i=o.left["rtl"===r?t:e]:"right"===c.fixed&&(a=o.right["rtl"===r?e:t]);var s=!1,u=!1,d=!1,f=!1,p=n[t+1],m=n[e-1],g=p&&!p.fixed||m&&!m.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===r){if(void 0!==i)f=!(m&&"left"===m.fixed)&&g;else if(void 0!==a){d=!(p&&"right"===p.fixed)&&g}}else if(void 0!==i){s=!(p&&"left"===p.fixed)&&g}else if(void 0!==a){u=!(m&&"right"===m.fixed)&&g}return{fixLeft:i,fixRight:a,lastFixLeft:s,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:o.isSticky}}var R=o.createContext({});var B=n(62646),D=["children"];function H(e){return e.children}H.Row=function(e){var t=e.children,n=(0,B.Z)(e,D);return o.createElement("tr",n,t)},H.Cell=function(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,a=void 0===i?1:i,l=e.rowSpan,c=e.align,s=f(w,["prefixCls","direction"]),u=s.prefixCls,d=s.direction,m=o.useContext(R),g=m.scrollColumnIndex,h=m.stickyOffsets,v=n+a-1+1===g?a+1:a,b=L(n,n+v-1,m.flattenColumns,h,d);return o.createElement(P,(0,p.Z)({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:c,colSpan:v,rowSpan:l,render:function(){return r}},b))};var W=H;var F=y((function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=f(w,"prefixCls"),a=r.length-1,l=r[a],c=o.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=l&&l.scrollbar?a:null}}),[l,r,a,n]);return o.createElement(R.Provider,{value:c},o.createElement("tfoot",{className:"".concat(i,"-summary")},t))})),K=W,V=n(29301),q=n(47273),X=function(e){if((0,q.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function G(e,t){return Array.isArray(e)||void 0===t?X(e):function(e,t){if(!X(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o}(e,t)}var Q=n(75152),_=n(26112);function U(e,t,n,o,r,i,a){e.push({record:t,indent:n,index:a});var l=i(t),c=null==r?void 0:r.has(l);if(t&&Array.isArray(t[o])&&c)for(var s=0;s1?n-1:0),r=1;r=1)),style:(0,S.Z)((0,S.Z)({},n),null==y?void 0:y.style)}),h.map((function(e,t){var n=e.render,l=e.dataIndex,c=e.className,u=oe(m,e,t,s,i),h=u.key,v=u.fixedInfo,b=u.appendCellNode,y=u.additionalCellProps;return o.createElement(P,(0,p.Z)({className:c,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?f:d,prefixCls:g,key:h,record:r,index:i,renderIndex:a,dataIndex:l,render:n,shouldCellUpdate:e.shouldCellUpdate},v,{appendNode:b,additionalProps:y}))})));if(w&&(C.current||x)){var M=b(r,i,s+1,x);k=o.createElement(ee,{expanded:x,className:I()("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(s+1),j),prefixCls:g,component:u,cellComponent:d,colSpan:h.length,isEmpty:!1},M)}return o.createElement(o.Fragment,null,N,k)}));function ie(e){var t=e.columnKey,n=e.onColumnResize,r=o.useRef();return(0,c.Z)((function(){r.current&&n(t,r.current.offsetWidth)}),[]),o.createElement(V.Z,{data:t},o.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}var ae=n(29194);function le(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,i=o.useRef(null);return o.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0},ref:i},o.createElement(V.Z.Collection,{onBatchResize:function(e){(0,ae.Z)(i.current)&&e.forEach((function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)}))}},n.map((function(e){return o.createElement(ie,{key:e,columnKey:e,onColumnResize:r})}))))}var ce=y((function(e){var t,n=e.data,r=e.measureColumnWidth,i=f(w,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=i.prefixCls,l=i.getComponent,c=i.onColumnResize,s=i.flattenColumns,u=i.getRowKey,d=i.expandedKeys,p=i.childrenColumnName,m=i.emptyNode,g=Y(n,p,d,u),h=o.useRef({renderWithProps:!1}),v=l(["body","wrapper"],"tbody"),b=l(["body","row"],"tr"),y=l(["body","cell"],"td"),x=l(["body","cell"],"th");t=n.length?g.map((function(e,t){var n=e.record,r=e.indent,i=e.index,a=u(n,t);return o.createElement(re,{key:a,rowKey:a,record:n,index:t,renderIndex:i,rowComponent:b,cellComponent:y,scopeCellComponent:x,indent:r})})):o.createElement(ee,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:b,cellComponent:y,colSpan:s.length,isEmpty:!0},m);var C=O(s);return o.createElement(Z.Provider,{value:h.current},o.createElement(v,{className:"".concat(a,"-tbody")},r&&o.createElement(le,{prefixCls:a,columnsKey:C,onColumnResize:c}),t))})),se=["expandable"],ue="RC_TABLE_INTERNAL_COL_DEFINE";var de=["columnType"];var fe=function(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=f(w,["tableLayout"]).tableLayout,a=[],l=!1,c=(r||n.length)-1;c>=0;c-=1){var s=t[c],u=n&&n[c],d=void 0,m=void 0;if(u&&(d=u[ue],"auto"===i&&(m=u.minWidth)),s||m||d||l){var g=d||{},h=(g.columnType,(0,B.Z)(g,de));a.unshift(o.createElement("col",(0,p.Z)({key:c,style:{width:s,minWidth:m}},h))),l=!0}}return o.createElement("colgroup",null,a)},pe=n(95190),me=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var ge=o.forwardRef((function(e,t){var n=e.className,r=e.noData,i=e.columns,a=e.flattenColumns,l=e.colWidths,c=e.columCount,s=e.stickyOffsets,u=e.direction,d=e.fixHeader,p=e.stickyTopOffset,g=e.stickyBottomOffset,h=e.stickyClassName,v=e.onScroll,b=e.maxContentScroll,y=e.children,x=(0,B.Z)(e,me),C=f(w,["prefixCls","scrollbarSize","isSticky","getComponent"]),k=C.prefixCls,j=C.scrollbarSize,N=C.isSticky,M=(0,C.getComponent)(["header","table"],"table"),Z=N&&!d?0:j,O=o.useRef(null),$=o.useCallback((function(e){(0,m.mH)(t,e),(0,m.mH)(O,e)}),[]);o.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,o=t.deltaX;o&&(v({currentTarget:n,scrollLeft:n.scrollLeft+o}),e.preventDefault())}return null===(e=O.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),function(){var e;null===(e=O.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var A=o.useMemo((function(){return a.every((function(e){return e.width}))}),[a]),z=a[a.length-1],T={fixed:z?z.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(k,"-cell-scrollbar")}}},P=(0,o.useMemo)((function(){return Z?[].concat((0,pe.Z)(i),[T]):i}),[Z,i]),L=(0,o.useMemo)((function(){return Z?[].concat((0,pe.Z)(a),[T]):a}),[Z,a]),R=(0,o.useMemo)((function(){var e=s.right,t=s.left;return(0,S.Z)((0,S.Z)({},s),{},{left:"rtl"===u?[].concat((0,pe.Z)(t.map((function(e){return e+Z}))),[0]):t,right:"rtl"===u?e:[].concat((0,pe.Z)(e.map((function(e){return e+Z}))),[0]),isSticky:N})}),[Z,s,N]),D=function(e,t){return(0,o.useMemo)((function(){for(var n=[],o=0;o1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:l,prefixCls:d,key:g[t]},c,{additionalProps:n,rowType:"header"}))})))};var be=y((function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,i=e.onHeaderRow,a=f(w,["prefixCls","getComponent"]),l=a.prefixCls,c=a.getComponent,s=o.useMemo((function(){return function(e){var t=[];!function e(n,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];var i=o;return n.filter(Boolean).map((function(n){var o={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,l=n.children;return l&&l.length>0&&(a=e(l,i,r+1).reduce((function(e,t){return e+t}),0),o.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(o.rowSpan=n.rowSpan),o.colSpan=a,o.colEnd=o.colStart+a-1,t[r].push(o),i+=a,a}))}(e,0);for(var n=t.length,o=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},r=0;r1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var we=["children"],Ce=["fixed"];function Se(e){return(0,ye.Z)(e).filter((function(e){return o.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,o=n.children,r=(0,B.Z)(n,we),i=(0,S.Z)({key:t},r);return o&&(i.children=Se(o)),i}))}function Ee(e){return e.filter((function(e){return e&&"object"===(0,C.Z)(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?(0,S.Z)((0,S.Z)({},e),{},{children:Ee(t)}):e}))}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===(0,C.Z)(e)})).reduce((function(e,n,o){var r=n.fixed,i=!0===r?"left":r,a="".concat(t,"-").concat(o),l=n.children;return l&&l.length>0?[].concat((0,pe.Z)(e),(0,pe.Z)(ke(l,a).map((function(e){return(0,S.Z)({fixed:i},e)})))):[].concat((0,pe.Z)(e),[(0,S.Z)((0,S.Z)({key:a},n),{},{fixed:i})])}),[])}var Ie=function(e,t){var n=e.prefixCls,i=e.columns,l=e.children,c=e.expandable,s=e.expandedKeys,u=e.columnTitle,d=e.getRowKey,f=e.onTriggerExpand,p=e.expandIcon,m=e.rowExpandable,g=e.expandIconColumnIndex,h=e.direction,v=e.expandRowByClick,b=e.columnWidth,y=e.fixed,x=e.scrollWidth,w=e.clientWidth,C=o.useMemo((function(){return Ee((i||Se(l)||[]).slice())}),[i,l]),k=o.useMemo((function(){if(c){var e=C.slice();if(!e.includes(r)){var t=g||0;t>=0&&(t||"left"===y||!y)&&e.splice(t,0,r),"right"===y&&e.splice(C.length,0,r)}0;var i=e.indexOf(r);e=e.filter((function(e,t){return e!==r||t===i}));var a,l=C[i];a=y||(l?l.fixed:null);var h=(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({},ue,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",u),"fixed",a),"className","".concat(n,"-row-expand-icon-cell")),"width",b),"render",(function(e,t,r){var i=d(t,r),a=s.has(i),l=!m||m(t),c=p({prefixCls:n,expanded:a,expandable:l,record:t,onExpand:f});return v?o.createElement("span",{onClick:function(e){return e.stopPropagation()}},c):c}));return e.map((function(e){return e===r?h:e}))}return C.filter((function(e){return e!==r}))}),[c,C,d,s,p,h]),I=o.useMemo((function(){var e=k;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,k,h]),j=o.useMemo((function(){return"rtl"===h?function(e){return e.map((function(e){var t=e.fixed,n=(0,B.Z)(e,Ce),o=t;return"left"===t?o="right":"right"===t&&(o="left"),(0,S.Z)({fixed:o},n)}))}(ke(I)):ke(I)}),[I,h,x]),N=o.useMemo((function(){for(var e=-1,t=j.length-1;t>=0;t-=1){var n=j[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var o=0;o<=e;o+=1){var r=j[o].fixed;if("left"!==r&&!0!==r)return!0}var i=j.findIndex((function(e){return"right"===e.fixed}));if(i>=0)for(var a=i;a0){var o=0,r=0;e.forEach((function(e){var n=xe(t,e.width);n?o+=n:r+=1}));var i=Math.max(t,n),a=Math.max(i-o,r),l=r,c=a/r,s=0,u=e.map((function(e){var n=(0,S.Z)({},e),o=xe(t,n.width);if(o)n.width=o;else{var r=Math.floor(c);n.width=1===l?a:r,a-=r,l-=1}return s+=n.width,n}));if(s=n-g?Z((function(e){return(0,S.Z)((0,S.Z)({},e),{},{isHiddenScrollBar:!0})})):Z((function(e){return(0,S.Z)((0,S.Z)({},e),{},{isHiddenScrollBar:!1})}))}}))},D=function(e){Z((function(t){return(0,S.Z)((0,S.Z)({},t),{},{scrollLeft:e/y*x||0})}))};return o.useImperativeHandle(t,(function(){return{setScrollLeft:D,checkScrollBarVisible:B}})),o.useEffect((function(){var e=Oe(document.body,"mouseup",L,!1),t=Oe(document.body,"mousemove",R,!1);return B(),function(){e.remove(),t.remove()}}),[C,z]),o.useEffect((function(){if(p.current){for(var e=[],t=(0,Ae.bn)(p.current);t;)e.push(t),t=t.parentElement;return e.forEach((function(e){return e.addEventListener("scroll",B,!1)})),window.addEventListener("resize",B,!1),window.addEventListener("scroll",B,!1),h.addEventListener("scroll",B,!1),function(){e.forEach((function(e){return e.removeEventListener("scroll",B)})),window.removeEventListener("resize",B),window.removeEventListener("scroll",B),h.removeEventListener("scroll",B)}}}),[h]),o.useEffect((function(){M.isHiddenScrollBar||Z((function(e){var t=p.current;return t?(0,S.Z)((0,S.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[M.isHiddenScrollBar]),y<=x||!C||M.isHiddenScrollBar?null:o.createElement("div",{style:{height:(0,Q.Z)(),width:x,bottom:g},className:"".concat(b,"-sticky-scroll")},o.createElement("div",{onMouseDown:function(e){e.persist(),O.current.delta=e.pageX-M.scrollLeft,O.current.x=0,T(!0),e.preventDefault()},ref:k,className:I()("".concat(b,"-sticky-scroll-bar"),(0,E.Z)({},"".concat(b,"-sticky-scroll-bar-active"),z)),style:{width:"".concat(C,"px"),transform:"translate3d(".concat(M.scrollLeft,"px, 0, 0)")}}))},Pe=o.forwardRef(Te);var Le=function(e){return null};var Re=function(e){return null},Be="rc-table",De=[],He={};function We(){return"No Data"}function Fe(e,t){var n=(0,S.Z)({rowKey:"key",prefixCls:Be,emptyText:We},e),r=n.prefixCls,u=n.className,d=n.rowClassName,f=n.style,m=n.data,g=n.rowKey,h=n.scroll,v=n.tableLayout,b=n.direction,y=n.title,x=n.footer,k=n.summary,M=n.caption,Z=n.id,A=n.showHeader,z=n.components,T=n.emptyText,P=n.onRow,R=n.onHeaderRow,B=n.onScroll,D=n.internalHooks,H=n.transformColumns,K=n.internalRefs,q=n.tailor,X=n.getContainerWidth,U=n.sticky,Y=n.rowHoverable,J=void 0===Y||Y,ee=m||De,te=!!ee.length,ne=D===i;var oe=o.useCallback((function(e,t){return(0,N.Z)(z,e)||t}),[z]),re=o.useMemo((function(){return"function"==typeof g?g:function(e){return e&&e[g]}}),[g]),ie=oe(["body"]),ae=function(){var e=o.useState(-1),t=(0,a.Z)(e,2),n=t[0],r=t[1],i=o.useState(-1),l=(0,a.Z)(i,2),c=l[0],s=l[1];return[n,c,o.useCallback((function(e,t){r(e),s(t)}),[])]}(),le=(0,a.Z)(ae,3),se=le[0],ue=le[1],de=le[2],pe=je(n,ee,re),me=(0,a.Z)(pe,6),ge=me[0],ve=me[1],ye=me[2],xe=me[3],we=me[4],Ce=me[5],Se=null==h?void 0:h.x,Ee=o.useState(0),ke=(0,a.Z)(Ee,2),Oe=ke[0],$e=ke[1],ze=Ie((0,S.Z)((0,S.Z)((0,S.Z)({},n),ge),{},{expandable:!!ge.expandedRowRender,columnTitle:ge.columnTitle,expandedKeys:ye,getRowKey:re,onTriggerExpand:Ce,expandIcon:xe,expandIconColumnIndex:ge.expandIconColumnIndex,direction:b,scrollWidth:ne&&q&&"number"==typeof Se?Se:null,clientWidth:Oe}),ne?H:null),Te=(0,a.Z)(ze,4),Le=Te[0],Re=Te[1],Fe=Te[2],Ke=Te[3],Ve=null!=Fe?Fe:Se,qe=o.useMemo((function(){return{columns:Le,flattenColumns:Re}}),[Le,Re]),Xe=o.useRef(),Ge=o.useRef(),Qe=o.useRef(),_e=o.useRef();o.useImperativeHandle(t,(function(){return{nativeElement:Xe.current,scrollTo:function(e){var t,n;if(Qe.current instanceof HTMLElement){var o=e.index,r=e.top,i=e.key;if("number"!=typeof(n=r)||Number.isNaN(n)){var a,l=null!=i?i:re(ee[o]);null===(a=Qe.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===a||a.scrollIntoView()}else{var c;null===(c=Qe.current)||void 0===c||c.scrollTo({top:r})}}else null!==(t=Qe.current)&&void 0!==t&&t.scrollTo&&Qe.current.scrollTo(e)}}}));var Ue,Ye,Je,et=o.useRef(),tt=o.useState(!1),nt=(0,a.Z)(tt,2),ot=nt[0],rt=nt[1],it=o.useState(!1),at=(0,a.Z)(it,2),lt=at[0],ct=at[1],st=o.useState(new Map),ut=(0,a.Z)(st,2),dt=ut[0],ft=ut[1],pt=O(Re).map((function(e){return dt.get(e)})),mt=o.useMemo((function(){return pt}),[pt.join("_")]),gt=Me(mt,Re,b),ht=h&&$(h.y),vt=h&&$(Ve)||Boolean(ge.fixed),bt=vt&&Re.some((function(e){return e.fixed})),yt=o.useRef(),xt=function(e,t){var n="object"===(0,C.Z)(e)?e:{},r=n.offsetHeader,i=void 0===r?0:r,a=n.offsetSummary,l=void 0===a?0:a,c=n.offsetScroll,s=void 0===c?0:c,u=n.getContainer,d=(void 0===u?function(){return Ne}:u)()||Ne,f=!!e;return o.useMemo((function(){return{isSticky:f,stickyClassName:f?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:l,offsetScroll:s,container:d}}),[f,s,i,l,t,d])}(U,r),wt=xt.isSticky,Ct=xt.offsetHeader,St=xt.offsetSummary,Et=xt.offsetScroll,kt=xt.stickyClassName,It=xt.container,jt=o.useMemo((function(){return null==k?void 0:k(ee)}),[k,ee]),Nt=(ht||wt)&&o.isValidElement(jt)&&jt.type===W&&jt.props.fixed;ht&&(Ye={overflowY:te?"scroll":"auto",maxHeight:h.y}),vt&&(Ue={overflowX:"auto"},ht||(Ye={overflowY:"hidden"}),Je={width:!0===Ve?"auto":Ve,minWidth:"100%"});var Mt=o.useCallback((function(e,t){ft((function(n){if(n.get(e)!==t){var o=new Map(n);return o.set(e,t),o}return n}))}),[]),Zt=function(e){var t=(0,o.useRef)(e||null),n=(0,o.useRef)();function r(){window.clearTimeout(n.current)}return(0,o.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),Ot=(0,a.Z)(Zt,2),$t=Ot[0],At=Ot[1];function zt(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var Tt=(0,l.Z)((function(e){var t,n=e.currentTarget,o=e.scrollLeft,r="rtl"===b,i="number"==typeof o?o:n.scrollLeft,a=n||He;At()&&At()!==a||($t(a),zt(i,Ge.current),zt(i,Qe.current),zt(i,et.current),zt(i,null===(t=yt.current)||void 0===t?void 0:t.setScrollLeft));var l=n||Ge.current;if(l){var c=ne&&q&&"number"==typeof Ve?Ve:l.scrollWidth,s=l.clientWidth;if(c===s)return rt(!1),void ct(!1);r?(rt(-i0)):(rt(i>0),ct(i1?y-A:0,T=(0,S.Z)((0,S.Z)((0,S.Z)({},N),u),{},{flex:"0 0 ".concat(A,"px"),width:"".concat(A,"px"),marginRight:z,pointerEvents:"auto"}),L=o.useMemo((function(){return m?$<=1:0===Z||0===$||$>1}),[$,Z,m]);L?T.visibility="hidden":m&&(T.height=null==g?void 0:g($));var R=L?function(){return null}:h,B={};return 0!==$&&0!==Z||(B.rowSpan=1,B.colSpan=1),o.createElement(P,(0,p.Z)({className:I()(b,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:l,prefixCls:t.prefixCls,key:C,record:s,index:a,renderIndex:c,dataIndex:v,render:R,shouldCellUpdate:n.shouldCellUpdate},E,{appendNode:k,additionalProps:(0,S.Z)((0,S.Z)({},j),{},{style:T},B)}))},Ye=["data","index","className","rowKey","style","extra","getHeight"],Je=o.forwardRef((function(e,t){var n,r=e.data,i=e.index,a=e.className,l=e.rowKey,c=e.style,s=e.extra,u=e.getHeight,d=(0,B.Z)(e,Ye),m=r.record,g=r.indent,h=r.index,v=f(w,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),b=v.scrollX,y=v.flattenColumns,x=v.prefixCls,C=v.fixColumn,k=v.componentWidth,j=f(Qe,["getComponent"]).getComponent,N=J(m,l,i,g),M=j(["body","row"],"div"),Z=j(["body","cell"],"div"),O=N.rowSupportExpand,$=N.expanded,A=N.rowProps,z=N.expandedRowRender,T=N.expandedRowClassName;if(O&&$){var L=z(m,i,g+1,$),R=ne(T,m,i,g),D={};C&&(D={style:(0,E.Z)({},"--virtual-width","".concat(k,"px"))});var H="".concat(x,"-expanded-row-cell");n=o.createElement(M,{className:I()("".concat(x,"-expanded-row"),"".concat(x,"-expanded-row-level-").concat(g+1),R)},o.createElement(P,{component:Z,prefixCls:x,className:I()(H,(0,E.Z)({},"".concat(H,"-fixed"),C)),additionalProps:D},L))}var W=(0,S.Z)((0,S.Z)({},c),{},{width:b});s&&(W.position="absolute",W.pointerEvents="none");var F=o.createElement(M,(0,p.Z)({},A,d,{"data-row-key":l,ref:O?null:t,className:I()(a,"".concat(x,"-row"),null==A?void 0:A.className,(0,E.Z)({},"".concat(x,"-row-extra"),s)),style:(0,S.Z)((0,S.Z)({},W),null==A?void 0:A.style)}),y.map((function(e,t){return o.createElement(Ue,{key:t,component:Z,rowInfo:N,column:e,colIndex:t,indent:g,index:i,renderIndex:h,record:m,inverse:s,getHeight:u})})));return O?o.createElement("div",{ref:t},F,n):F}));var et=y(Je),tt=o.forwardRef((function(e,t){var n=e.data,r=e.onScroll,i=f(w,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),l=i.flattenColumns,c=i.onColumnResize,s=i.getRowKey,u=i.expandedKeys,d=i.prefixCls,p=i.childrenColumnName,m=i.scrollX,g=i.direction,h=f(Qe),v=h.sticky,b=h.scrollY,y=h.listItemHeight,x=h.getComponent,S=h.onScroll,E=o.useRef(),k=Y(n,p,u,s),I=o.useMemo((function(){var e=0;return l.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[l]),j=o.useMemo((function(){return I.map((function(e){return e[2]}))}),[I]);o.useEffect((function(){I.forEach((function(e){var t=(0,a.Z)(e,2),n=t[0],o=t[1];c(n,o)}))}),[I]),o.useImperativeHandle(t,(function(){var e,t={scrollTo:function(e){var t;null===(t=E.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=E.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=E.current)||void 0===t||t.scrollTo({left:e})}}),t}));var N=function(e,t){var n,o=null===(n=k[t])||void 0===n?void 0:n.record,r=e.onCell;if(r){var i,a=r(o,t);return null!==(i=null==a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},M=o.useMemo((function(){return{columnsOffset:j}}),[j]),Z="".concat(d,"-tbody"),O=x(["body","wrapper"]),$={};return v&&($.position="sticky",$.bottom=0,"object"===(0,C.Z)(v)&&v.offsetScroll&&($.bottom=v.offsetScroll)),o.createElement(_e.Provider,{value:M},o.createElement(Ge.Z,{fullHeight:!1,ref:E,prefixCls:"".concat(Z,"-virtual"),styles:{horizontalScrollBar:$},className:Z,height:b,itemHeight:y||24,data:k,itemKey:function(e){return s(e.record)},component:O,scrollWidth:m,direction:g,onVirtualScroll:function(e){var t,n=e.x;r({currentTarget:null===(t=E.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:S,extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,i=e.offsetY;if(n<0)return null;for(var a=l.filter((function(e){return 0===N(e,t)})),c=t,u=function(e){if(!(a=a.filter((function(t){return 0===N(t,e)}))).length)return c=e,1},d=t;d>=0&&!u(d);d-=1);for(var f=l.filter((function(e){return 1!==N(e,n)})),p=n,m=function(e){if(!(f=f.filter((function(t){return 1!==N(t,e)}))).length)return p=Math.max(e-1,n),1},g=n;g1}))&&h.push(e)},b=c;b<=p;b+=1)v(b);return h.map((function(e){var t=k[e],n=s(t.record,e),a=r(n);return o.createElement(et,{key:e,data:t,rowKey:n,index:e,style:{top:-i+a.top},extra:!0,getHeight:function(t){var o=e+t-1,i=s(k[o].record,o),a=r(n,i);return a.bottom-a.top}})}))}},(function(e,t,n){var r=s(e.record,t);return o.createElement(et,{data:e,rowKey:r,index:t,style:n.style})})))}));var nt=y(tt),ot=function(e,t){var n=t.ref,r=t.onScroll;return o.createElement(nt,{ref:n,data:e,onScroll:r})};function rt(e,t){var n=e.data,r=e.columns,a=e.scroll,l=e.sticky,c=e.prefixCls,s=void 0===c?Be:c,u=e.className,d=e.listItemHeight,f=e.components,m=e.onScroll,g=a||{},h=g.x,v=g.y;"number"!=typeof h&&(h=1),"number"!=typeof v&&(v=500);var b=(0,z.zX)((function(e,t){return(0,N.Z)(f,e)||t})),y=(0,z.zX)(m),x=o.useMemo((function(){return{sticky:l,scrollY:v,listItemHeight:d,getComponent:b,onScroll:y}}),[l,v,d,b,y]);return o.createElement(Qe.Provider,{value:x},o.createElement(Xe,(0,p.Z)({},e,{className:I()(u,"".concat(s,"-virtual")),scroll:(0,S.Z)((0,S.Z)({},a),{},{x:h}),components:(0,S.Z)((0,S.Z)({},f),{},{body:null!=n&&n.length?ot:void 0}),columns:r,internalHooks:i,tailor:!0,ref:t})))}var it=o.forwardRef(rt);function at(e){return b(it,e)}at();var lt=e=>null;var ct=e=>null,st=n(84105),ut=o.createContext(null),dt=o.createContext({}),ft=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,i=e.isEnd,a="".concat(t,"-indent-unit"),l=[],c=0;c1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(s,u){for(var d,f=vt(o?o.pos:"0",u),p=bt(s[i],f),m=0;m1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,o=t.processEntity,r=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,s=i||c,u={},d={},f={posEntities:u,keyEntities:d};return n&&(f=n(f)||f),Ct(e,(function(e){var t=e.node,n=e.index,r=e.pos,i=e.key,a=e.parentPos,l=e.level,c={node:t,nodes:e.nodes,index:n,key:i,pos:r,level:l},s=bt(i,r);u[r]=c,d[s]=c,c.parent=u[a],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),o&&o(c,f)}),{externalGetKey:s,childrenPropName:a,fieldNames:l}),r&&r(f),f}function Et(e,t){var n=t.expandedKeys,o=t.selectedKeys,r=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,s=t.dropPosition,u=mt(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==o.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function kt(e){var t=e.data,n=e.expanded,o=e.selected,r=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,s=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,f=e.active,p=e.eventKey,m=(0,S.Z)((0,S.Z)({},t),{},{expanded:n,selected:o,checked:r,loaded:i,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:s,dragOverGapBottom:u,pos:d,active:f,key:p});return"props"in m||Object.defineProperty(m,"props",{get:function(){return(0,M.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}var It=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],jt="open",Nt="close",Mt=function(e){var t,n,r,i=e.eventKey,l=e.className,c=e.style,s=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.isLeaf,m=e.isStart,g=e.isEnd,h=e.expanded,v=e.selected,b=e.checked,y=e.halfChecked,x=e.loading,w=e.domRef,C=e.active,k=e.data,j=e.onMouseMove,N=e.selectable,M=(0,B.Z)(e,It),Z=o.useContext(ut),O=o.useContext(dt),$=o.useRef(null),A=o.useState(!1),z=(0,a.Z)(A,2),T=z[0],P=z[1],L=!!(Z.disabled||e.disabled||null!==(t=O.nodeDisabled)&&void 0!==t&&t.call(O,k)),R=o.useMemo((function(){return!(!Z.checkable||!1===e.checkable)&&Z.checkable}),[Z.checkable,e.checkable]),D=function(t){L||R&&!e.disableCheckbox&&Z.onNodeCheck(t,kt(e),!b)},H=o.useMemo((function(){return"boolean"==typeof N?N:Z.selectable}),[N,Z.selectable]),W=function(t){Z.onNodeClick(t,kt(e)),H?function(t){L||Z.onNodeSelect(t,kt(e))}(t):D(t)},F=function(t){Z.onNodeDoubleClick(t,kt(e))},K=function(t){Z.onNodeMouseEnter(t,kt(e))},V=function(t){Z.onNodeMouseLeave(t,kt(e))},q=function(t){Z.onNodeContextMenu(t,kt(e))},X=o.useMemo((function(){return!(!Z.draggable||Z.draggable.nodeDraggable&&!Z.draggable.nodeDraggable(k))}),[Z.draggable,k]),G=function(t){x||Z.onNodeExpand(t,kt(e))},Q=o.useMemo((function(){var e=(mt(Z.keyEntities,i)||{}).children;return Boolean((e||[]).length)}),[Z.keyEntities,i]),U=o.useMemo((function(){return!1!==f&&(f||!Z.loadData&&!Q||Z.loadData&&e.loaded&&!Q)}),[f,Z.loadData,Q,e.loaded]);o.useEffect((function(){x||"function"!=typeof Z.loadData||!h||U||e.loaded||Z.onNodeLoad(kt(e))}),[x,Z.loadData,Z.onNodeLoad,h,U,e]);var Y=o.useMemo((function(){var e;return null!==(e=Z.draggable)&&void 0!==e&&e.icon?o.createElement("span",{className:"".concat(Z.prefixCls,"-draggable-icon")},Z.draggable.icon):null}),[Z.draggable]),J=function(t){var n=e.switcherIcon||Z.switcherIcon;return"function"==typeof n?n((0,S.Z)((0,S.Z)({},e),{},{isLeaf:t})):n},ee=o.useMemo((function(){if(!R)return null;var t="boolean"!=typeof R?R:null;return o.createElement("span",{className:I()("".concat(Z.prefixCls,"-checkbox"),(0,E.Z)((0,E.Z)((0,E.Z)({},"".concat(Z.prefixCls,"-checkbox-checked"),b),"".concat(Z.prefixCls,"-checkbox-indeterminate"),!b&&y),"".concat(Z.prefixCls,"-checkbox-disabled"),L||e.disableCheckbox)),onClick:D,role:"checkbox","aria-checked":y?"mixed":b,"aria-disabled":L||e.disableCheckbox,"aria-label":"Select ".concat("string"==typeof e.title?e.title:"tree node")},t)}),[R,b,y,L,e.disableCheckbox,e.title]),te=o.useMemo((function(){return U?null:h?jt:Nt}),[U,h]),ne=o.useMemo((function(){return o.createElement("span",{className:I()("".concat(Z.prefixCls,"-iconEle"),"".concat(Z.prefixCls,"-icon__").concat(te||"docu"),(0,E.Z)({},"".concat(Z.prefixCls,"-icon_loading"),x))})}),[Z.prefixCls,te,x]),oe=o.useMemo((function(){var t=Boolean(Z.draggable);return!e.disabled&&t&&Z.dragOverNodeKey===i?Z.dropIndicatorRender({dropPosition:Z.dropPosition,dropLevelOffset:Z.dropLevelOffset,indent:Z.indent,prefixCls:Z.prefixCls,direction:Z.direction}):null}),[Z.dropPosition,Z.dropLevelOffset,Z.indent,Z.prefixCls,Z.direction,Z.draggable,Z.dragOverNodeKey,Z.dropIndicatorRender]),re=o.useMemo((function(){var t,n,r=e.title,i=void 0===r?"---":r,a="".concat(Z.prefixCls,"-node-content-wrapper");if(Z.showIcon){var l=e.icon||Z.icon;t=l?o.createElement("span",{className:I()("".concat(Z.prefixCls,"-iconEle"),"".concat(Z.prefixCls,"-icon__customize"))},"function"==typeof l?l(e):l):ne}else Z.loadData&&x&&(t=ne);return n="function"==typeof i?i(k):Z.titleRender?Z.titleRender(k):i,o.createElement("span",{ref:$,title:"string"==typeof i?i:"",className:I()(a,"".concat(a,"-").concat(te||"normal"),(0,E.Z)({},"".concat(Z.prefixCls,"-node-selected"),!L&&(v||T))),onMouseEnter:K,onMouseLeave:V,onContextMenu:q,onClick:W,onDoubleClick:F},t,o.createElement("span",{className:"".concat(Z.prefixCls,"-title")},n),oe)}),[Z.prefixCls,Z.showIcon,e,Z.icon,ne,Z.titleRender,k,te,K,V,q,W,F]),ie=(0,_.Z)(M,{aria:!0,data:!0}),ae=(mt(Z.keyEntities,i)||{}).level,le=g[g.length-1],ce=!L&&X,se=Z.draggingNodeKey===i,ue=void 0!==N?{"aria-selected":!!N}:void 0;return o.createElement("div",(0,p.Z)({ref:w,role:"treeitem","aria-expanded":f?void 0:h,className:I()(l,"".concat(Z.prefixCls,"-treenode"),(r={},(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)(r,"".concat(Z.prefixCls,"-treenode-disabled"),L),"".concat(Z.prefixCls,"-treenode-switcher-").concat(h?"open":"close"),!f),"".concat(Z.prefixCls,"-treenode-checkbox-checked"),b),"".concat(Z.prefixCls,"-treenode-checkbox-indeterminate"),y),"".concat(Z.prefixCls,"-treenode-selected"),v),"".concat(Z.prefixCls,"-treenode-loading"),x),"".concat(Z.prefixCls,"-treenode-active"),C),"".concat(Z.prefixCls,"-treenode-leaf-last"),le),"".concat(Z.prefixCls,"-treenode-draggable"),X),"dragging",se),(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)(r,"drop-target",Z.dropTargetKey===i),"drop-container",Z.dropContainerKey===i),"drag-over",!L&&s),"drag-over-gap-top",!L&&u),"drag-over-gap-bottom",!L&&d),"filter-node",null===(n=Z.filterTreeNode)||void 0===n?void 0:n.call(Z,kt(e))),"".concat(Z.prefixCls,"-treenode-leaf"),U))),style:c,draggable:ce,onDragStart:ce?function(t){t.stopPropagation(),P(!0),Z.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch(e){}}:void 0,onDragEnter:X?function(t){t.preventDefault(),t.stopPropagation(),Z.onNodeDragEnter(t,e)}:void 0,onDragOver:X?function(t){t.preventDefault(),t.stopPropagation(),Z.onNodeDragOver(t,e)}:void 0,onDragLeave:X?function(t){t.stopPropagation(),Z.onNodeDragLeave(t,e)}:void 0,onDrop:X?function(t){t.preventDefault(),t.stopPropagation(),P(!1),Z.onNodeDrop(t,e)}:void 0,onDragEnd:X?function(t){t.stopPropagation(),P(!1),Z.onNodeDragEnd(t,e)}:void 0,onMouseMove:j},ue,ie),o.createElement(pt,{prefixCls:Z.prefixCls,level:ae,isStart:m,isEnd:g}),Y,function(){if(U){var e=J(!0);return!1!==e?o.createElement("span",{className:I()("".concat(Z.prefixCls,"-switcher"),"".concat(Z.prefixCls,"-switcher-noop"))},e):null}var t=J(!1);return!1!==t?o.createElement("span",{onClick:G,className:I()("".concat(Z.prefixCls,"-switcher"),"".concat(Z.prefixCls,"-switcher_").concat(h?jt:Nt))},t):null}(),ee,re)};Mt.isTreeNode=1;var Zt=Mt;function Ot(e,t){if(!e)return[];var n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function $t(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function At(e){return e.split("-")}function zt(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var o=t.key,r=t.children;n.push(o),e(r)}))}(mt(t,e).children),n}function Tt(e){if(e.parent){var t=At(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Pt(e,t,n,o,r,i,a,l,c,s){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,g=p.height,h=(("rtl"===s?-1:1)*(((null==r?void 0:r.x)||0)-d)-12)/o,v=c.filter((function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),b=mt(l,n.eventKey);if(f-1.5?i({dragNode:N,dropNode:M,dropPosition:1})?E=1:Z=!1:i({dragNode:N,dropNode:M,dropPosition:0})?E=0:i({dragNode:N,dropNode:M,dropPosition:1})?E=1:Z=!1:i({dragNode:N,dropNode:M,dropPosition:1})?E=1:Z=!1,{dropPosition:E,dropLevelOffset:k,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:S,dropContainerKey:0===E?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:Z}}function Lt(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function Rt(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,C.Z)(e))return(0,M.ZP)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function Bt(e,t){var n=new Set;function o(e){if(!n.has(e)){var r=mt(t,e);if(r){n.add(e);var i=r.parent;r.node.disabled||i&&o(i.key)}}}return(e||[]).forEach((function(e){o(e)})),(0,pe.Z)(n)}function Dt(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function Ht(e){var t=e||{},n=t.disabled,o=t.disableCheckbox,r=t.checkable;return!(!n&&!o)||!1===r}function Wt(e,t,n,o){var r,i=[];r=o||Ht;var a,l=new Set(e.filter((function(e){var t=!!mt(n,e);return t||i.push(e),t}))),c=new Map,s=0;return Object.keys(n).forEach((function(e){var t=n[e],o=t.level,r=c.get(o);r||(r=new Set,c.set(o,r)),r.add(t),s=Math.max(s,o)})),(0,M.ZP)(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,o){for(var r=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;r.has(t)&&!o(n)&&a.filter((function(e){return!o(e.node)})).forEach((function(e){r.add(e.key)}))}));for(var l=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!l.has(e.parent.key))if(o(e.parent.node))l.add(t.key);else{var a=!0,c=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=r.has(t);a&&!n&&(a=!1),c||!n&&!i.has(t)||(c=!0)})),a&&r.add(t.key),c&&i.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(Dt(i,r))}}(l,c,s,r):function(e,t,n,o,r){for(var i=new Set(e),a=new Set(t),l=0;l<=o;l+=1)(n.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,o=e.children,l=void 0===o?[]:o;i.has(t)||a.has(t)||r(n)||l.filter((function(e){return!r(e.node)})).forEach((function(e){i.delete(e.key)}))}));a=new Set;for(var c=new Set,s=o;s>=0;s-=1)(n.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!c.has(e.parent.key))if(r(e.parent.node))c.add(t.key);else{var o=!0,l=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);o&&!n&&(o=!1),l||!n&&!a.has(t)||(l=!0)})),o||i.delete(t.key),l&&a.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Dt(a,i))}}(l,t.halfCheckedKeys,c,s,r),a}var Ft=n(18929);var Kt=n(32383),Vt=n(62673),qt=n(22173),Xt=n(47889);const Gt={},Qt="SELECT_ALL",_t="SELECT_INVERT",Ut="SELECT_NONE",Yt=[],Jt=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,pe.Z)(n),(0,pe.Z)(Jt(e,t[e]))))})),n};var en=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,onChange:l,onSelect:c,onSelectAll:s,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:g,fixed:h,renderCell:v,hideSelectAll:b,checkStrictly:y=!0}=t||{},{prefixCls:x,data:w,pageData:C,getRecordByKey:S,getRowKey:E,expandType:k,childrenColumnName:j,locale:N,getPopupContainer:M}=e,Z=(0,Kt.ln)("Table"),[O,$]=function(e){const[t,n]=(0,o.useState)(null);return[(0,o.useCallback)(((o,r,i)=>{const a=null!=t?t:o,l=Math.min(a||0,o),c=Math.max(a||0,o),s=r.slice(l,c+1).map((t=>e(t))),u=s.some((e=>!i.has(e))),d=[];return s.forEach((e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))})),n(u?c:null),d}),[t]),e=>{n(e)}]}((e=>e)),[A,z]=(0,Ft.Z)(r||i||Yt,{value:r}),T=o.useRef(new Map),P=(0,o.useCallback)((e=>{if(n){const t=new Map;e.forEach((e=>{let n=S(e);!n&&T.current.has(e)&&(n=T.current.get(e)),t.set(e,n)})),T.current=t}}),[S,n]);o.useEffect((()=>{P(A)}),[A]);const L=(0,o.useMemo)((()=>Jt(j,C)),[j,C]),{keyEntities:R}=(0,o.useMemo)((()=>{if(y)return{keyEntities:null};let e=w;if(n){const t=new Set(L.map(((e,t)=>E(e,t)))),n=Array.from(T.current).reduce(((e,n)=>{let[o,r]=n;return t.has(o)?e:e.concat(r)}),[]);e=[].concat((0,pe.Z)(e),(0,pe.Z)(n))}return St(e,{externalGetKey:E,childrenPropName:j})}),[w,E,y,j,n,L]),B=(0,o.useMemo)((()=>{const e=new Map;return L.forEach(((t,n)=>{const o=E(t,n),r=(a?a(t):null)||{};e.set(o,r)})),e}),[L,E,a]),D=(0,o.useCallback)((e=>{const t=E(e);let n;return n=B.has(t)?B.get(E(e)):a?a(e):void 0,!!(null==n?void 0:n.disabled)}),[B,E]),[H,W]=(0,o.useMemo)((()=>{if(y)return[A||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=Wt(A,!0,R,D);return[e||[],t]}),[A,y,R,D]),F=(0,o.useMemo)((()=>{const e="radio"===m?H.slice(0,1):H;return new Set(e)}),[H,m]),K=(0,o.useMemo)((()=>"radio"===m?new Set:new Set(W)),[W,m]);o.useEffect((()=>{t||z(Yt)}),[!!t]);const V=(0,o.useCallback)(((e,t)=>{let o,r;P(e),n?(o=e,r=e.map((e=>T.current.get(e)))):(o=[],r=[],e.forEach((e=>{const t=S(e);void 0!==t&&(o.push(e),r.push(t))}))),z(o),null==l||l(o,r,{type:t})}),[z,S,l,n]),q=(0,o.useCallback)(((e,t,n,o)=>{if(c){const r=n.map((e=>S(e)));c(S(e),t,r,o)}V(n,"single")}),[c,S,V]),X=(0,o.useMemo)((()=>{if(!g||b)return null;return(!0===g?[Qt,_t,Ut]:g).map((e=>e===Qt?{key:"all",text:N.selectionAll,onSelect(){V(w.map(((e,t)=>E(e,t))).filter((e=>{const t=B.get(e);return!(null==t?void 0:t.disabled)||F.has(e)})),"all")}}:e===_t?{key:"invert",text:N.selectInvert,onSelect(){const e=new Set(F);C.forEach(((t,n)=>{const o=E(t,n),r=B.get(o);(null==r?void 0:r.disabled)||(e.has(o)?e.delete(o):e.add(o))}));const t=Array.from(e);u&&(Z.deprecated(!1,"onSelectInvert","onChange"),u(t)),V(t,"invert")}}:e===Ut?{key:"none",text:N.selectNone,onSelect(){null==d||d(),V(Array.from(F).filter((e=>{const t=B.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,o=arguments.length,r=new Array(o),i=0;i{var n;if(!t)return e.filter((e=>e!==Gt));let r=(0,pe.Z)(e);const i=new Set(F),a=L.map(E).filter((e=>!B.get(e).disabled)),l=a.every((e=>i.has(e))),c=a.some((e=>i.has(e))),u=()=>{const e=[];l?a.forEach((t=>{i.delete(t),e.push(t)})):a.forEach((t=>{i.has(t)||(i.add(t),e.push(t))}));const t=Array.from(i);null==s||s(!l,t.map((e=>S(e))),e.map((e=>S(e)))),V(t,"all"),$(null)};let d,w,C;if("radio"!==m){let e;if(X){const t={getPopupContainer:M,items:X.map(((e,t)=>{const{key:n,text:o,onSelect:r}=e;return{key:null!=n?n:t,onClick:()=>{null==r||r(a)},label:o}}))};e=o.createElement("div",{className:`${x}-selection-extra`},o.createElement(qt.Z,{menu:t,getPopupContainer:M},o.createElement("span",null,o.createElement(st.Z,null))))}const t=L.map(((e,t)=>{const n=E(e,t),o=B.get(n)||{};return Object.assign({checked:i.has(n)},o)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===L.length,r=n&&t.every((e=>{let{checked:t}=e;return t})),s=n&&t.some((e=>{let{checked:t}=e;return t}));w=o.createElement(Vt.Z,{checked:n?r:!!L.length&&l,indeterminate:n?!r&&s:!l&&c,onChange:u,disabled:0===L.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),d=!b&&o.createElement("div",{className:`${x}-selection`},w,e)}C="radio"===m?(e,t,n)=>{const r=E(t,n),a=i.has(r),l=B.get(r);return{node:o.createElement(Xt.ZP,Object.assign({},l,{checked:a,onClick:e=>{var t;e.stopPropagation(),null===(t=null==l?void 0:l.onClick)||void 0===t||t.call(l,e)},onChange:e=>{var t;i.has(r)||q(r,!0,[r],e.nativeEvent),null===(t=null==l?void 0:l.onChange)||void 0===t||t.call(l,e)}})),checked:a}}:(e,t,n)=>{var r;const l=E(t,n),c=i.has(l),s=K.has(l),u=B.get(l);let d;return d="nest"===k?s:null!==(r=null==u?void 0:u.indeterminate)&&void 0!==r?r:s,{node:o.createElement(Vt.Z,Object.assign({},u,{indeterminate:d,checked:c,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),null===(t=null==u?void 0:u.onClick)||void 0===t||t.call(u,e)},onChange:e=>{var t;const{nativeEvent:n}=e,{shiftKey:o}=n,r=a.findIndex((e=>e===l)),s=H.some((e=>a.includes(e)));if(o&&y&&s){const e=O(r,a,i),t=Array.from(i);null==f||f(!c,t.map((e=>S(e))),e.map((e=>S(e)))),V(t,"multiple")}else{const e=H;if(y){const t=c?Ot(e,l):$t(e,l);q(l,!c,t,n)}else{const t=Wt([].concat((0,pe.Z)(e),[l]),!0,R,D),{checkedKeys:o,halfCheckedKeys:r}=t;let i=o;if(c){const e=new Set(o);e.delete(l),i=Wt(Array.from(e),{checked:!1,halfCheckedKeys:r},R,D).checkedKeys}q(l,!c,i,n)}}$(c?null:r),null===(t=null==u?void 0:u.onChange)||void 0===t||t.call(u,e)}})),checked:c}};if(!r.includes(Gt))if(0===r.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[ue])||void 0===t?void 0:t.columnType)}))){const[e,...t]=r;r=[e,Gt].concat((0,pe.Z)(t))}else r=[Gt].concat((0,pe.Z)(r));const j=r.indexOf(Gt);r=r.filter(((e,t)=>e!==Gt||t===j));const N=r[j-1],Z=r[j+1];let A=h;void 0===A&&(void 0!==(null==Z?void 0:Z.fixed)?A=Z.fixed:void 0!==(null==N?void 0:N.fixed)&&(A=N.fixed)),A&&N&&"EXPAND_COLUMN"===(null===(n=N[ue])||void 0===n?void 0:n.columnType)&&void 0===N.fixed&&(N.fixed=A);const z=I()(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:g&&"checkbox"===m}),T={fixed:A,width:p,className:`${x}-selection-column`,title:(null==t?void 0:t.columnTitle)?"function"==typeof t.columnTitle?t.columnTitle(w):t.columnTitle:d,render:(e,t,n)=>{const{node:o,checked:r}=C(e,t,n);return v?v(r,t,n,o):o},onCell:t.onCell,[ue]:{className:z}};return r.map((e=>e===Gt?T:e))}),[E,L,t,H,F,K,p,X,k,B,f,q,D]);return[G,F]};function tn(e,t){return(0,o.useImperativeHandle)(e,(()=>{const e=t(),{nativeElement:n}=e;return"undefined"!=typeof Proxy?new Proxy(n,{get(t,n){return e[n]?e[n]:Reflect.get(t,n)}}):(r=e,(o=n)._antProxy=o._antProxy||{},Object.keys(r).forEach((e=>{if(!(e in o._antProxy)){const t=o[e];o._antProxy[e]=t,o[e]=r[e]}})),o);var o,r}))}function nn(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}function on(e){return null!=e&&e===e.window}var rn=e=>{var t,n;if("undefined"==typeof window)return 0;let o=0;return on(e)?o=e.pageYOffset:e instanceof Document?o=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(o=e.scrollTop),e&&!on(e)&&"number"!=typeof o&&(o=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),o};function an(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:o,duration:r=450}=t,i=n(),a=rn(i),l=Date.now(),c=()=>{const t=Date.now()-l,n=nn(t>r?r:t,a,e,r);on(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t{const{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:l}=t,c=`${n}-row-expand-icon`;return o.createElement("button",{type:"button",onClick:e=>{r(i,e),e.stopPropagation()},className:I()(c,{[`${c}-spaced`]:!l,[`${c}-expanded`]:l&&a,[`${c}-collapsed`]:l&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}};const vn=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function bn(e,t){return t?`${t}-${e}`:`${e}`}const yn=(e,t)=>"function"==typeof e?e(t):e;var xn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},wn=n(7657),Cn=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:xn}))};var Sn=o.forwardRef(Cn);var En=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=n[t];void 0!==o&&(e[t]=o)}))}return e},kn=n(40192);var In=n(20743),jn=n(584),Nn=n(93041),Mn=n(78857),Zn=n(99153),On=n(84851),$n=n(13028),An=n(19257),zn=n(93046),Tn=n(10228);var Pn=function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r}return o.createElement("div",{style:i})};function Ln(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var Rn=n(77900);var Bn=function(e,t){var n=o.useState(!1),r=(0,a.Z)(n,2),i=r[0],l=r[1];(0,c.Z)((function(){if(i)return e(),function(){t()}}),[i]),(0,c.Z)((function(){return l(!0),function(){l(!1)}}),[])},Dn=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Hn=o.forwardRef((function(e,t){var n=e.className,r=e.style,i=e.motion,l=e.motionNodes,s=e.motionType,u=e.onMotionStart,d=e.onMotionEnd,f=e.active,m=e.treeNodeRequiredProps,g=(0,B.Z)(e,Dn),h=o.useState(!0),v=(0,a.Z)(h,2),b=v[0],y=v[1],x=o.useContext(ut).prefixCls,w=l&&"hide"!==s;(0,c.Z)((function(){l&&w!==b&&y(w)}),[l]);var C=o.useRef(!1),S=function(){l&&!C.current&&(C.current=!0,d())};Bn((function(){l&&u()}),S);return l?o.createElement(Rn.ZP,(0,p.Z)({ref:t,visible:b},i,{motionAppear:"show"===s,onVisibleChanged:function(e){w===e&&S()}}),(function(e,t){var n=e.className,r=e.style;return o.createElement("div",{ref:t,className:I()("".concat(x,"-treenode-motion"),n),style:r},l.map((function(e){var t=Object.assign({},(Ln(e.data),e.data)),n=e.title,r=e.key,i=e.isStart,a=e.isEnd;delete t.children;var l=Et(r,m);return o.createElement(Zt,(0,p.Z)({},t,l,{title:n,active:f,data:e.data,key:r,isStart:i,isEnd:a}))})))})):o.createElement(Zt,(0,p.Z)({domRef:t,className:n,style:r},g,{active:f}))}));var Wn=Hn;function Fn(e,t,n){var o=e.findIndex((function(e){return e.key===n})),r=e[o+1],i=t.findIndex((function(e){return e.key===n}));if(r){var a=t.findIndex((function(e){return e.key===r.key}));return t.slice(i+1,a)}return t.slice(i+1)}var Kn=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Vn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},qn=function(){},Xn="RC_TREE_MOTION_".concat(Math.random()),Gn={key:Xn},Qn={key:Xn,level:0,index:0,pos:"0",node:Gn,nodes:[Gn]},_n={parent:null,children:[],pos:Qn.pos,data:Gn,title:null,key:Xn,isStart:[],isEnd:[]};function Un(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function Yn(e){return bt(e.key,e.pos)}var Jn=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.data,i=(e.selectable,e.checkable,e.expandedKeys),l=e.selectedKeys,s=e.checkedKeys,u=e.loadedKeys,d=e.loadingKeys,f=e.halfCheckedKeys,m=e.keyEntities,g=e.disabled,h=e.dragging,v=e.dragOverNodeKey,b=e.dropPosition,y=e.motion,x=e.height,w=e.itemHeight,C=e.virtual,S=e.scrollWidth,E=e.focusable,k=e.activeItem,I=e.focused,j=e.tabIndex,N=e.onKeyDown,M=e.onFocus,Z=e.onBlur,O=e.onActiveChange,$=e.onListChangeStart,A=e.onListChangeEnd,z=(0,B.Z)(e,Kn),T=o.useRef(null),P=o.useRef(null);o.useImperativeHandle(t,(function(){return{scrollTo:function(e){T.current.scrollTo(e)},getIndentWidth:function(){return P.current.offsetWidth}}}));var L=o.useState(i),R=(0,a.Z)(L,2),D=R[0],H=R[1],W=o.useState(r),F=(0,a.Z)(W,2),K=F[0],V=F[1],q=o.useState(r),X=(0,a.Z)(q,2),G=X[0],Q=X[1],_=o.useState([]),U=(0,a.Z)(_,2),Y=U[0],J=U[1],ee=o.useState(null),te=(0,a.Z)(ee,2),ne=te[0],oe=te[1],re=o.useRef(r);function ie(){var e=re.current;V(e),Q(e),J([]),oe(null),A()}re.current=r,(0,c.Z)((function(){H(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var o=t.filter((function(e){return!n.has(e)}));return 1===o.length?o[0]:null}return n ").concat(t);return t}(k)),o.createElement("div",null,o.createElement("input",{style:Vn,disabled:!1===E||g,tabIndex:!1!==E?j:null,onKeyDown:N,onFocus:M,onBlur:Z,value:"",onChange:qn,"aria-label":"for screen reader"})),o.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},o.createElement("div",{className:"".concat(n,"-indent")},o.createElement("div",{ref:P,className:"".concat(n,"-indent-unit")}))),o.createElement(Ge.Z,(0,p.Z)({},z,{data:ae,itemKey:Yn,height:x,fullHeight:!1,virtual:C,itemHeight:w,scrollWidth:S,prefixCls:"".concat(n,"-list"),ref:T,role:"tree",onVisibleChange:function(e){e.every((function(e){return Yn(e)!==Xn}))&&ie()}}),(function(e){var t=e.pos,n=Object.assign({},(Ln(e.data),e.data)),r=e.title,i=e.key,a=e.isStart,l=e.isEnd,c=bt(i,t);delete n.key,delete n.children;var s=Et(c,le);return o.createElement(Wn,(0,p.Z)({},n,s,{title:r,active:!!k&&i===k.key,pos:t,data:e.data,isStart:a,isEnd:l,motion:y,motionNodes:i===Xn?Y:null,motionType:ne,onMotionStart:$,onMotionEnd:ie,treeNodeRequiredProps:le,onMouseMove:function(){O(null)}}))})))}));var eo=Jn,to=function(e){(0,An.Z)(n,e);var t=(0,zn.Z)(n);function n(){var e;(0,Zn.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,c=i.dropTargetKey,s=i.dropTargetPos,u=i.dropAllowed;if(u){var d=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var f=(0,S.Z)((0,S.Z)({},Et(c,e.getTreeNodeRequiredProps())),{},{active:(null===(o=e.getActiveItem())||void 0===o?void 0:o.key)===c,data:mt(e.state.keyEntities,c).node}),p=a.includes(c);(0,M.ZP)(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var m=At(s),g={event:t,node:kt(f),dragNode:e.dragNodeProps?kt(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(m[m.length-1])};r||null==d||d(g),e.dragNodeProps=null}}})),(0,E.Z)((0,$n.Z)(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),(0,E.Z)((0,$n.Z)(e),"triggerExpandActionExpand",(function(t,n){var o=e.state,r=o.expandedKeys,i=o.flattenNodes,a=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var c=i.filter((function(e){return e.key===l}))[0],s=kt((0,S.Z)((0,S.Z)({},Et(l,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(a?Ot(r,l):$t(r,l)),e.onNodeExpand(t,s)}})),(0,E.Z)((0,$n.Z)(e),"onNodeClick",(function(t,n){var o=e.props,r=o.onClick;"click"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)})),(0,E.Z)((0,$n.Z)(e),"onNodeDoubleClick",(function(t,n){var o=e.props,r=o.onDoubleClick;"doubleClick"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)})),(0,E.Z)((0,$n.Z)(e),"onNodeSelect",(function(t,n){var o=e.state.selectedKeys,r=e.state,i=r.keyEntities,a=r.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=n.selected,d=n[a.key],f=!u,p=(o=f?s?$t(o,d):[d]:Ot(o,d)).map((function(e){var t=mt(i,e);return t?t.node:null})).filter(Boolean);e.setUncontrolledState({selectedKeys:o}),null==c||c(o,{event:"select",selected:f,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})})),(0,E.Z)((0,$n.Z)(e),"onNodeCheck",(function(t,n,o){var r,i=e.state,a=i.keyEntities,l=i.checkedKeys,c=i.halfCheckedKeys,s=e.props,u=s.checkStrictly,d=s.onCheck,f=n.key,p={event:"check",node:n,checked:o,nativeEvent:t.nativeEvent};if(u){var m=o?$t(l,f):Ot(l,f);r={checked:m,halfChecked:Ot(c,f)},p.checkedNodes=m.map((function(e){return mt(a,e)})).filter(Boolean).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var g=Wt([].concat((0,pe.Z)(l),[f]),!0,a),h=g.checkedKeys,v=g.halfCheckedKeys;if(!o){var b=new Set(h);b.delete(f);var y=Wt(Array.from(b),{checked:!1,halfCheckedKeys:v},a);h=y.checkedKeys,v=y.halfCheckedKeys}r=h,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,h.forEach((function(e){var t=mt(a,e);if(t){var n=t.node,o=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:o})}})),e.setUncontrolledState({checkedKeys:h},!1,{halfCheckedKeys:v})}null==d||d(r,p)})),(0,E.Z)((0,$n.Z)(e),"onNodeLoad",(function(t){var n,o=t.key,r=mt(e.state.keyEntities,o);if(null==r||null===(n=r.children)||void 0===n||!n.length){var i=new Promise((function(n,r){e.setState((function(i){var a=i.loadedKeys,l=void 0===a?[]:a,c=i.loadingKeys,s=void 0===c?[]:c,u=e.props,d=u.loadData,f=u.onLoad;return!d||l.includes(o)||s.includes(o)?null:(d(t).then((function(){var r=$t(e.state.loadedKeys,o);null==f||f(r,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:r}),e.setState((function(e){return{loadingKeys:Ot(e.loadingKeys,o)}})),n()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:Ot(e.loadingKeys,o)}})),e.loadingRetryTimes[o]=(e.loadingRetryTimes[o]||0)+1,e.loadingRetryTimes[o]>=10){var i=e.state.loadedKeys;(0,M.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:$t(i,o)}),n()}r(t)})),{loadingKeys:$t(s,o)})}))}));return i.catch((function(){})),i}})),(0,E.Z)((0,$n.Z)(e),"onNodeMouseEnter",(function(t,n){var o=e.props.onMouseEnter;null==o||o({event:t,node:n})})),(0,E.Z)((0,$n.Z)(e),"onNodeMouseLeave",(function(t,n){var o=e.props.onMouseLeave;null==o||o({event:t,node:n})})),(0,E.Z)((0,$n.Z)(e),"onNodeContextMenu",(function(t,n){var o=e.props.onRightClick;o&&(t.preventDefault(),o({event:t,node:n}))})),(0,E.Z)((0,$n.Z)(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,o=new Array(n),r=0;r1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,i=!0,a={};Object.keys(t).forEach((function(n){e.props.hasOwnProperty(n)?i=!1:(r=!0,a[n]=t[n])})),!r||n&&!i||e.setState((0,S.Z)((0,S.Z)({},a),o))}})),(0,E.Z)((0,$n.Z)(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return(0,On.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,o=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:o}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,r=t.flattenNodes,i=t.keyEntities,a=t.draggingNodeKey,l=t.activeKey,c=t.dropLevelOffset,s=t.dropContainerKey,u=t.dropTargetKey,d=t.dropPosition,f=t.dragOverNodeKey,m=t.indent,g=this.props,h=g.prefixCls,v=g.className,b=g.style,y=g.showLine,x=g.focusable,w=g.tabIndex,S=void 0===w?0:w,k=g.selectable,j=g.showIcon,N=g.icon,M=g.switcherIcon,Z=g.draggable,O=g.checkable,$=g.checkStrictly,A=g.disabled,z=g.motion,T=g.loadData,P=g.filterTreeNode,L=g.height,R=g.itemHeight,B=g.scrollWidth,D=g.virtual,H=g.titleRender,W=g.dropIndicatorRender,F=g.onContextMenu,K=g.onScroll,V=g.direction,q=g.rootClassName,X=g.rootStyle,G=(0,_.Z)(this.props,{aria:!0,data:!0});Z&&(e="object"===(0,C.Z)(Z)?Z:"function"==typeof Z?{nodeDraggable:Z}:{});var Q={prefixCls:h,selectable:k,showIcon:j,icon:N,switcherIcon:M,draggable:e,draggingNodeKey:a,checkable:O,checkStrictly:$,disabled:A,keyEntities:i,dropLevelOffset:c,dropContainerKey:s,dropTargetKey:u,dropPosition:d,dragOverNodeKey:f,indent:m,direction:V,dropIndicatorRender:W,loadData:T,filterTreeNode:P,titleRender:H,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return o.createElement(ut.Provider,{value:Q},o.createElement("div",{className:I()(h,v,q,(0,E.Z)((0,E.Z)((0,E.Z)({},"".concat(h,"-show-line"),y),"".concat(h,"-focused"),n),"".concat(h,"-active-focused"),null!==l)),style:X},o.createElement(eo,(0,p.Z)({ref:this.listRef,prefixCls:h,style:b,data:r,disabled:A,selectable:k,checkable:!!O,motion:z,dragging:null!==a,height:L,itemHeight:R,virtual:D,focusable:x,focused:n,tabIndex:S,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:F,onScroll:K,scrollWidth:B},this.getTreeNodeRequiredProps(),G))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o=t.prevProps,r={prevProps:e};function i(t){return!o&&e.hasOwnProperty(t)||o&&o[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=yt(e.fieldNames),r.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&((0,M.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=xt(e.children)),n){r.treeData=n;var l=St(n,{fieldNames:a});r.keyEntities=(0,S.Z)((0,E.Z)({},Xn,Qn),l.keyEntities)}var c,s=r.keyEntities||t.keyEntities;if(i("expandedKeys")||o&&i("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?Bt(e.expandedKeys,s):e.expandedKeys;else if(!o&&e.defaultExpandAll){var u=(0,S.Z)({},s);delete u[Xn];var d=[];Object.keys(u).forEach((function(e){var t=u[e];t.children&&t.children.length&&d.push(t.key)})),r.expandedKeys=d}else!o&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Bt(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,n||r.expandedKeys){var f=wt(n||t.treeData,r.expandedKeys||t.expandedKeys,a);r.flattenNodes=f}if((e.selectable&&(i("selectedKeys")?r.selectedKeys=Lt(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(r.selectedKeys=Lt(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?c=Rt(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?c=Rt(e.defaultCheckedKeys)||{}:n&&(c=Rt(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var p=c,m=p.checkedKeys,g=void 0===m?[]:m,h=p.halfCheckedKeys,v=void 0===h?[]:h;if(!e.checkStrictly){var b=Wt(g,!0,s);g=b.checkedKeys,v=b.halfCheckedKeys}r.checkedKeys=g,r.halfCheckedKeys=v}return i("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}]),n}(o.Component);(0,E.Z)(to,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Pn,allowDrop:function(){return!0},expandAction:!1}),(0,E.Z)(to,"TreeNode",Zt);var no=to,oo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},ro=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:oo}))};var io=o.forwardRef(ro),ao={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},lo=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:ao}))};var co=o.forwardRef(lo),so={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},uo=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:so}))};var fo=o.forwardRef(uo),po={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},mo=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:po}))};var go=o.forwardRef(mo),ho=n(86641),vo=n(66604),bo=n(36170),yo=n(63356),xo=n(34961),wo=n(51636),Co=n(16931);const So=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:o,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:l}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${i}`,content:'""',borderRadius:a},"&:hover:before":{background:l}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:r},[`${t}-node-content-wrapper`]:{color:r,background:"transparent","&:before, &:hover:before":{background:o}}}}}},Eo=new vo.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ko=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Io=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,vo.bf)(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),jo=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,titleHeight:i,indentSize:a,nodeSelectedBg:l,nodeHoverBg:c,colorTextQuaternary:s,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},(0,yo.Wf)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},(0,yo.oN)(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Eo,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[o]:{display:"flex",alignItems:"flex-start",marginBottom:r,lineHeight:(0,vo.bf)(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:r},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${o}-disabled${o}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${o}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:s},[`&${o}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},ko(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},Io(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${o}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,vo.bf)(t.calc(i).div(2).equal())} !important`}})}},No=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=`.${e}`,r=`${o}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=(0,wo.IX)(t,{treeCls:o,treeNodeCls:r,treeNodePadding:i});return[jo(e,a),n&&So(a)].filter(Boolean)};var Mo=(0,Co.I$)("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:(0,bo.C2)(`${n}-checkbox`,e)},No(n,e),(0,xo.Z)(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:o}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:o,nodeSelectedColor:e.colorText}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));var Zo=function(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a="ltr"}=e,l="ltr"===a?"left":"right",c={[l]:-n*i+4,["ltr"===a?"right":"left"]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[l]=i+4}return o.createElement("div",{style:c,className:`${r}-drop-indicator`})},Oo={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},$o=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:Oo}))};var Ao=o.forwardRef($o),zo=n(58617),To={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Po=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:To}))};var Lo=o.forwardRef(Po),Ro={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Bo=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:Ro}))};var Do=o.forwardRef(Bo),Ho=n(22703);var Wo=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:l,expanded:c,loading:s}=r;if(s)return o.isValidElement(a)?a:o.createElement(zo.Z,{className:`${t}-switcher-loading-icon`});let u;if(i&&"object"==typeof i&&(u=i.showLeafIcon),l){if(!i)return null;if("boolean"!=typeof u&&u){const e="function"==typeof u?u(r):u,n=`${t}-switcher-line-custom-icon`;return o.isValidElement(e)?(0,Ho.Tm)(e,{className:I()(e.props.className||"",n)}):e}return u?o.createElement(io,{className:`${t}-switcher-line-icon`}):o.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f="function"==typeof n?n(r):n;return o.isValidElement(f)?(0,Ho.Tm)(f,{className:I()(f.props.className||"",d)}):void 0!==f?f:i?c?o.createElement(Lo,{className:`${t}-switcher-line-icon`}):o.createElement(Do,{className:`${t}-switcher-line-icon`}):o.createElement(Ao,{className:d})};const Fo=o.forwardRef(((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:a,tree:l}=o.useContext(ln.E_),{prefixCls:c,className:s,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:p,blockNode:m=!1,children:g,checkable:h=!1,selectable:v=!0,draggable:b,motion:y,style:x}=e,w=r("tree",c),C=r(),S=null!=y?y:Object.assign(Object.assign({},(0,ho.Z)(C)),{motionAppear:!1}),E=Object.assign(Object.assign({},e),{checkable:h,selectable:v,showIcon:u,motion:S,blockNode:m,showLine:Boolean(d),dropIndicatorRender:Zo}),[k,j,N]=Mo(w),[,M]=(0,gn.ZP)(),Z=M.paddingXS/2+((null===(n=M.Tree)||void 0===n?void 0:n.titleHeight)||M.controlHeightSM),O=o.useMemo((()=>{if(!b)return!1;let e={};switch(typeof b){case"function":e.nodeDraggable=b;break;case"object":e=Object.assign({},b)}return!1!==e.icon&&(e.icon=e.icon||o.createElement(go,null)),e}),[b]);return k(o.createElement(no,Object.assign({itemHeight:Z,ref:t,virtual:a},E,{style:Object.assign(Object.assign({},null==l?void 0:l.style),x),prefixCls:w,className:I()({[`${w}-icon-hide`]:!u,[`${w}-block-node`]:m,[`${w}-unselectable`]:!v,[`${w}-rtl`]:"rtl"===i},null==l?void 0:l.className,s,j,N),direction:i,checkable:h?o.createElement("span",{className:`${w}-checkbox-inner`}):h,selectable:v,switcherIcon:e=>o.createElement(Wo,{prefixCls:w,switcherIcon:f,switcherLoadingIcon:p,treeNodeProps:e,showLine:d}),draggable:O}),g))}));var Ko=Fo;function Vo(e,t,n){const{key:o,children:r}=n;e.forEach((function(e){const i=e[o],a=e[r];!1!==t(i,e)&&Vo(a||[],t,n)}))}function qo(e){let{treeData:t,expandedKeys:n,startKey:o,endKey:r,fieldNames:i}=e;const a=[];let l=0;if(o&&o===r)return[o];if(!o||!r)return[];return Vo(t,(e=>{if(2===l)return!1;if(function(e){return e===o||e===r}(e)){if(a.push(e),0===l)l=1;else if(1===l)return l=2,!1}else 1===l&&a.push(e);return n.includes(e)}),yt(i)),a}function Xo(e,t,n){const o=(0,pe.Z)(t),r=[];return Vo(e,((e,t)=>{const n=o.indexOf(e);return-1!==n&&(r.push(t),o.splice(n,1)),!!o.length}),yt(n)),r}var Go=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=Go(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const l=o.useRef(null),c=o.useRef(null),[s,u]=o.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=o.useState((()=>(()=>{const{keyEntities:e}=St(_o(a));let t;return t=n?Object.keys(e):r?Bt(a.expandedKeys||i||[],e):a.expandedKeys||i||[],t})()));o.useEffect((()=>{"selectedKeys"in a&&u(a.selectedKeys)}),[a.selectedKeys]),o.useEffect((()=>{"expandedKeys"in a&&f(a.expandedKeys)}),[a.expandedKeys]);const{getPrefixCls:p,direction:m}=o.useContext(ln.E_),{prefixCls:g,className:h,showIcon:v=!0,expandAction:b="click"}=a,y=Go(a,["prefixCls","className","showIcon","expandAction"]),x=p("tree",g),w=I()(`${x}-directory`,{[`${x}-directory-rtl`]:"rtl"===m},h);return o.createElement(Ko,Object.assign({icon:Qo,ref:t,blockNode:!0},y,{showIcon:v,expandAction:b,prefixCls:x,className:w,expandedKeys:d,selectedKeys:s,onSelect:(e,t)=>{var n;const{multiple:o,fieldNames:r}=a,{node:i,nativeEvent:s}=t,{key:f=""}=i,p=_o(a),m=Object.assign(Object.assign({},t),{selected:!0}),g=(null==s?void 0:s.ctrlKey)||(null==s?void 0:s.metaKey),h=null==s?void 0:s.shiftKey;let v;o&&g?(v=e,l.current=f,c.current=v,m.selectedNodes=Xo(p,v,r)):o&&h?(v=Array.from(new Set([].concat((0,pe.Z)(c.current||[]),(0,pe.Z)(qo({treeData:p,expandedKeys:d,startKey:f,endKey:l.current,fieldNames:r}))))),m.selectedNodes=Xo(p,v,r)):(v=[f],l.current=f,c.current=v,m.selectedNodes=Xo(p,v,r)),null===(n=a.onSelect)||void 0===n||n.call(a,v,m),"selectedKeys"in a||u(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in a||f(e),null===(n=a.onExpand)||void 0===n?void 0:n.call(a,e,t)}}))};var Yo=o.forwardRef(Uo);const Jo=Ko;Jo.DirectoryTree=Yo,Jo.TreeNode=Zt;var er=Jo,tr=n(47472),nr=n(49397);var or=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?o.createElement("div",{className:`${r}-filter-dropdown-search`},o.createElement(nr.Z,{prefix:o.createElement(tr.Z,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null};const rr=e=>{const{keyCode:t}=e;t===Tn.Z.ENTER&&e.stopPropagation()};var ir=o.forwardRef(((e,t)=>o.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:rr,ref:t},e.children)));function ar(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:o}=e;t.push(n),o&&(t=[].concat((0,pe.Z)(t),(0,pe.Z)(ar(o))))})),t}function lr(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function cr(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:l}=e;return t.map(((e,t)=>{const c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:cr({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:l})};const s=i?Vt.Z:Xt.ZP,u={key:void 0!==e.value?c:t,label:o.createElement(o.Fragment,null,o.createElement(s,{checked:r.includes(c)}),o.createElement("span",null,e.text))};return a.trim()?"function"==typeof l?l(a,e)?u:null:lr(a,e.text)?u:null:u}))}function sr(e){return e||[]}var ur=e=>{var t,n,r,i;const{tablePrefixCls:a,prefixCls:l,column:c,dropdownPrefixCls:u,columnKey:d,filterOnClose:f,filterMultiple:p,filterMode:m="menu",filterSearch:g=!1,filterState:h,triggerFilter:v,locale:b,children:y,getPopupContainer:x,rootClassName:w}=e,{filterResetToDefaultFilteredValue:C,defaultFilteredValue:S,filterDropdownProps:E={},filterDropdownOpen:k,filterDropdownVisible:j,onFilterDropdownVisibleChange:N,onFilterDropdownOpenChange:M}=c,[Z,O]=o.useState(!1),$=!(!h||!(null===(t=h.filteredKeys)||void 0===t?void 0:t.length)&&!h.forceFiltered),A=e=>{var t;O(e),null===(t=E.onOpenChange)||void 0===t||t.call(E,e),null==M||M(e),null==N||N(e)};const z=null!==(i=null!==(r=null!==(n=E.open)&&void 0!==n?n:k)&&void 0!==r?r:j)&&void 0!==i?i:Z,T=null==h?void 0:h.filteredKeys,[P,L]=function(e){const t=o.useRef(e),n=(0,kn.Z)();return[()=>t.current,e=>{t.current=e,n()}]}(sr(T)),R=e=>{let{selectedKeys:t}=e;L(t)},B=(e,t)=>{let{node:n,checked:o}=t;R(p?{selectedKeys:e}:{selectedKeys:o&&n.key?[n.key]:[]})};o.useEffect((()=>{Z&&R({selectedKeys:sr(T)})}),[T]);const[D,H]=o.useState([]),W=e=>{H(e)},[F,K]=o.useState(""),V=e=>{const{value:t}=e.target;K(t)};o.useEffect((()=>{Z||K("")}),[Z]);const q=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||h&&h.filteredKeys?(0,s.Z)(t,null==h?void 0:h.filteredKeys,!0)?null:void v({column:c,key:d,filteredKeys:t}):null},X=()=>{A(!1),q(P())},G=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&q([]),t&&A(!1),K(""),L(C?(S||[]).map((e=>String(e))):[])},Q=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&A(!1),q(P())},_=I()({[`${u}-menu-without-submenu`]:(U=c.filters||[],!U.some((e=>{let{children:t}=e;return t})))});var U;const Y=e=>{if(e.target.checked){const e=ar(null==c?void 0:c.filters).map((e=>String(e)));L(e)}else L([])},J=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),o={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(o.children=J({filters:e.children})),o}))},ee=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>ee(e))))||[]})};let te;const{direction:ne,renderEmpty:oe}=o.useContext(ln.E_);if("function"==typeof c.filterDropdown)te=c.filterDropdown({prefixCls:`${u}-custom`,setSelectedKeys:e=>R({selectedKeys:e}),selectedKeys:P(),confirm:Q,clearFilters:G,filters:c.filters,visible:z,close:()=>{A(!1)}});else if(c.filterDropdown)te=c.filterDropdown;else{const e=P()||[],t=()=>{var t,n;const r=null!==(t=null==oe?void 0:oe("Table.filter"))&&void 0!==t?t:o.createElement(jn.Z,{image:jn.Z.PRESENTED_IMAGE_SIMPLE,description:b.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(c.filters||[]).length)return r;if("tree"===m)return o.createElement(o.Fragment,null,o.createElement(or,{filterSearch:g,value:F,onChange:V,tablePrefixCls:a,locale:b}),o.createElement("div",{className:`${a}-filter-dropdown-tree`},p?o.createElement(Vt.Z,{checked:e.length===ar(c.filters).length,indeterminate:e.length>0&&e.length"function"==typeof g?g(F,ee(e)):lr(F,e.title):void 0})));const i=cr({filters:c.filters||[],filterSearch:g,prefixCls:l,filteredKeys:P(),filterMultiple:p,searchValue:F}),s=i.every((e=>null===e));return o.createElement(o.Fragment,null,o.createElement(or,{filterSearch:g,value:F,onChange:V,tablePrefixCls:a,locale:b}),s?r:o.createElement(Nn.Z,{selectable:!0,multiple:p,prefixCls:`${u}-menu`,className:_,onSelect:R,onDeselect:R,selectedKeys:e,getPopupContainer:x,openKeys:D,onOpenChange:W,items:i}))},n=()=>C?(0,s.Z)((S||[]).map((e=>String(e))),e,!0):0===e.length;te=o.createElement(o.Fragment,null,t(),o.createElement("div",{className:`${l}-dropdown-btns`},o.createElement(In.ZP,{type:"link",size:"small",disabled:n(),onClick:()=>G()},b.filterReset),o.createElement(In.ZP,{type:"primary",size:"small",onClick:X},b.filterConfirm)))}c.filterDropdown&&(te=o.createElement(Mn.J,{selectable:void 0},te)),te=o.createElement(ir,{className:`${l}-dropdown`},te);const re=En({trigger:["click"],placement:"rtl"===ne?"bottomLeft":"bottomRight",children:(()=>{let e;return e="function"==typeof c.filterIcon?c.filterIcon($):c.filterIcon?c.filterIcon:o.createElement(Sn,null),o.createElement("span",{role:"button",tabIndex:-1,className:I()(`${l}-trigger`,{active:$}),onClick:e=>{e.stopPropagation()}},e)})(),getPopupContainer:x},Object.assign(Object.assign({},E),{rootClassName:I()(w,E.rootClassName),open:z,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==T&&L(sr(T)),A(e),e||c.filterDropdown||!f||X())},dropdownRender:()=>"function"==typeof(null==E?void 0:E.dropdownRender)?E.dropdownRender(te):te}));return o.createElement("div",{className:`${l}-column`},o.createElement("span",{className:`${a}-column-title`},y),o.createElement(qt.Z,Object.assign({},re)))};const dr=(e,t,n)=>{let o=[];return(e||[]).forEach(((e,r)=>{var i;const a=bn(r,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),o.push({column:e,key:vn(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:vn(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[].concat((0,pe.Z)(o),(0,pe.Z)(dr(e.children,t,a))))})),o};function fr(e,t,n,r,i,a,l,c,s){return n.map(((n,u)=>{const d=bn(u,c),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:m,filterSearch:g}=n;let h=n;if(h.filters||h.filterDropdown){const c=vn(h,d),u=r.find((e=>{let{key:t}=e;return c===t}));h=Object.assign(Object.assign({},h),{title:r=>o.createElement(ur,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:c,filterState:u,filterOnClose:f,filterMultiple:p,filterMode:m,filterSearch:g,triggerFilter:a,locale:i,getPopupContainer:l,rootClassName:s},yn(n.title,r))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:fr(e,t,h.children,r,i,a,l,d,s)})),h}))}const pr=e=>{const t={};return e.forEach((e=>{let{key:n,filteredKeys:o,column:r}=e;const i=n,{filters:a,filterDropdown:l}=r;if(l)t[i]=o||null;else if(Array.isArray(o)){const e=ar(a);t[i]=e.filter((e=>o.includes(String(e))))}else t[i]=null})),t},mr=(e,t,n)=>t.reduce(((e,o)=>{const{column:{onFilter:r,filters:i},filteredKeys:a}=o;return r&&a&&a.length?e.map((e=>Object.assign({},e))).filter((e=>a.some((o=>{const a=ar(i),l=a.findIndex((e=>String(e)===String(o))),c=-1!==l?a[l]:o;return e[n]&&(e[n]=mr(e[n],t,n)),r(c,e)})))):e}),e),gr=e=>e.flatMap((e=>"children"in e?[e].concat((0,pe.Z)(gr(e.children||[]))):[e]));var hr=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:l,rootClassName:c}=e,s=((0,Kt.ln)("Table"),o.useMemo((()=>gr(r||[])),[r])),[u,d]=o.useState((()=>dr(s,!0))),f=o.useMemo((()=>{const e=dr(s,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:o}=e;void 0!==o?t=!1:n=!1})),t){const e=(s||[]).map(((e,t)=>vn(e,bn(t))));return u.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=s[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[s,u]),p=o.useMemo((()=>pr(f)),[f]),m=e=>{const t=f.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),d(t),i(pr(t),t)};return[e=>fr(t,n,e,f,l,m,a,void 0,c),f,p]};var vr=(e,t,n)=>{const r=o.useRef({});return[function(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){const a=new Map;function l(e){e.forEach(((e,o)=>{const r=n(e,o);a.set(r,e),e&&"object"==typeof e&&t in e&&l(e[t]||[])}))}l(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return null===(i=r.current.kvMap)||void 0===i?void 0:i.get(o)}]},br=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:yr}))),s=En(l,a,{total:i>0?i:e}),u=Math.ceil((i||e)/s.pageSize);s.current>u&&(s.current=u||1);const d=(e,t)=>{c({current:null!=e?e:1,pageSize:t||s.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:(e,o)=>{var r;n&&(null===(r=n.onChange)||void 0===r||r.call(n,e,o)),d(e,o),t(e,o||(null==s?void 0:s.pageSize))}}),d]},wr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Cr=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:wr}))};var Sr=o.forwardRef(Cr),Er={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},kr=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:Er}))};var Ir=o.forwardRef(kr),jr=n(55544);const Nr="ascend",Mr="descend",Zr=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,Or=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,$r=(e,t,n)=>{let o=[];const r=(e,t)=>{o.push({column:e,key:vn(e,t),multiplePriority:Zr(e),sortOrder:e.sortOrder})};return(e||[]).forEach(((e,i)=>{const a=bn(i,n);e.children?("sortOrder"in e&&r(e,a),o=[].concat((0,pe.Z)(o),(0,pe.Z)($r(e.children,t,a)))):e.sorter&&("sortOrder"in e?r(e,a):t&&e.defaultSortOrder&&o.push({column:e,key:vn(e,a),multiplePriority:Zr(e),sortOrder:e.defaultSortOrder}))})),o},Ar=(e,t,n,r,i,a,l,c)=>{const s=(t||[]).map(((t,s)=>{const u=bn(s,c);let d=t;if(d.sorter){const c=d.sortDirections||i,s=void 0===d.showSorterTooltip?l:d.showSorterTooltip,f=vn(d,u),p=n.find((e=>{let{key:t}=e;return t===f})),m=p?p.sortOrder:null,g=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(c,m);let h;if(t.sortIcon)h=t.sortIcon({sortOrder:m});else{const t=c.includes(Nr)&&o.createElement(Ir,{className:I()(`${e}-column-sorter-up`,{active:m===Nr})}),n=c.includes(Mr)&&o.createElement(Sr,{className:I()(`${e}-column-sorter-down`,{active:m===Mr})});h=o.createElement("span",{className:I()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},o.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:v,triggerAsc:b,triggerDesc:y}=a||{};let x=v;g===Mr?x=y:g===Nr&&(x=b);const w="object"==typeof s?Object.assign({title:x},s):{title:x};d=Object.assign(Object.assign({},d),{className:I()(d.className,{[`${e}-column-sort`]:m}),title:n=>{const r=`${e}-column-sorters`,i=o.createElement("span",{className:`${e}-column-title`},yn(t.title,n)),a=o.createElement("div",{className:r},i,h);return s?"boolean"!=typeof s&&"sorter-icon"===(null==s?void 0:s.target)?o.createElement("div",{className:`${r} ${e}-column-sorters-tooltip-target-sorter`},i,o.createElement(jr.Z,Object.assign({},w),h)):o.createElement(jr.Z,Object.assign({},w),a):a},onHeaderCell:n=>{var o;const i=(null===(o=t.onHeaderCell)||void 0===o?void 0:o.call(t,n))||{},a=i.onClick,l=i.onKeyDown;i.onClick=e=>{r({column:t,key:f,sortOrder:g,multiplePriority:Zr(t)}),null==a||a(e)},i.onKeyDown=e=>{e.keyCode===Tn.Z.ENTER&&(r({column:t,key:f,sortOrder:g,multiplePriority:Zr(t)}),null==l||l(e))};const c=((e,t)=>{const n=yn(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),s=null==c?void 0:c.toString();return m&&(i["aria-sort"]="ascend"===m?"ascending":"descending"),i["aria-label"]=s||"",i.className=I()(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(null!=c?c:"").toString()),i}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:Ar(e,d.children,n,r,i,a,l,u)})),d}));return s},zr=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Tr=e=>{const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(zr);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},zr(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Pr=(e,t,n)=>{const o=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),r=e.slice(),i=o.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return Or(t)&&n}));return i.length?r.sort(((e,t)=>{for(let n=0;n{const o=e[n];return o?Object.assign(Object.assign({},e),{[n]:Pr(o,t,n)}):e})):r};var Lr=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:l}=e,[c,s]=o.useState($r(n,!0)),u=(e,t)=>{const n=[];return e.forEach(((e,o)=>{const r=bn(o,t);if(n.push(vn(e,r)),Array.isArray(e.children)){const t=u(e.children,r);n.push.apply(n,(0,pe.Z)(t))}})),n},d=o.useMemo((()=>{let e=!0;const t=$r(n,!1);if(!t.length){const e=u(n);return c.filter((t=>{let{key:n}=t;return e.includes(n)}))}const o=[];function r(t){e?o.push(t):o.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),r(t))})),o}),[n,c]),f=o.useMemo((()=>{var e,t;const n=d.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}}),[d]),p=e=>{let t;t=!1!==e.multiplePriority&&d.length&&!1!==d[0].multiplePriority?[].concat((0,pe.Z)(d.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],s(t),l(Tr(t),t)};return[e=>Ar(t,e,d,p,r,i,a),d,f,()=>Tr(d)]};const Rr=(e,t)=>e.map((e=>{const n=Object.assign({},e);return n.title=yn(e.title,t),"children"in n&&(n.children=Rr(n.children,t)),n}));var Br=e=>[o.useCallback((t=>Rr(t,e)),[e])];var Dr=Ve(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o}));var Hr=at(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o})),Wr=n(17835);var Fr=e=>{const{componentCls:t,lineWidth:n,lineType:o,tableBorderColor:r,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:c}=e,s=`${(0,vo.bf)(n)} ${o} ${r}`,u=(e,o,r)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,vo.bf)(c(o).mul(-1).equal())}\n ${(0,vo.bf)(c(c(r).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:s,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:s,borderTop:s,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:s},"> thead":{"> tr:not(:last-child) > th":{borderBottom:s},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:s}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,vo.bf)(c(a).mul(-1).equal())} ${(0,vo.bf)(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:s,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:s,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,vo.bf)(n)} 0 ${(0,vo.bf)(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:s}}}};var Kr=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},yo.vS),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}};var Vr=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}};var qr=e=>{const{componentCls:t,antCls:n,motionDurationSlow:o,lineWidth:r,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:s,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:g,expandIconSize:h,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,x=`${(0,vo.bf)(r)} ${a} ${l}`,w=y(m).sub(r).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:s},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},(0,yo.Nd)(e)),{position:"relative",float:"left",width:h,height:h,color:"inherit",lineHeight:(0,vo.bf)(h),background:c,border:x,borderRadius:u,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:w,insetInlineStart:w,height:r},"&::after":{top:w,bottom:w,insetInlineStart:v,width:r,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${(0,vo.bf)(y(d).mul(-1).equal())} ${(0,vo.bf)(y(f).mul(-1).equal())}`,padding:`${(0,vo.bf)(d)} ${(0,vo.bf)(f)}`}}}};var Xr=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:h,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:w,tableFilterDropdownHeight:C,controlItemBgHover:S,controlItemBgActive:E,boxShadowSecondary:k,filterDropdownMenuBg:I,calc:j}=e,N=`${n}-dropdown`,M=`${t}-filter-dropdown`,Z=`${n}-tree`,O=`${(0,vo.bf)(s)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:j(a).mul(-1).equal(),marginInline:`${(0,vo.bf)(a)} ${(0,vo.bf)(j(m).div(2).mul(-1).equal())}`,padding:`0 ${(0,vo.bf)(a)}`,color:f,fontSize:p,borderRadius:g,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[M]:Object.assign(Object.assign({},(0,yo.Wf)(e)),{minWidth:r,backgroundColor:w,borderRadius:g,boxShadow:k,overflow:"hidden",[`${N}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:I,"&:empty::after":{display:"block",padding:`${(0,vo.bf)(l)} 0`,color:x,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${(0,vo.bf)(l)} 0`,paddingInline:l,[Z]:{padding:0},[`${Z}-treenode ${Z}-node-content-wrapper:hover`]:{backgroundColor:S},[`${Z}-treenode-checkbox-checked ${Z}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:E}}},[`${M}-search`]:{padding:l,borderBottom:O,"&-input":{input:{minWidth:i},[o]:{color:x}}},[`${M}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,vo.bf)(j(l).sub(s).equal())} ${(0,vo.bf)(l)}`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};var Gr=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:c}=e,s=o;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}};var Qr=e=>{const{componentCls:t,antCls:n,margin:o}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${(0,vo.bf)(o)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}};var _r=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${(0,vo.bf)(n)} ${(0,vo.bf)(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${(0,vo.bf)(n)} ${(0,vo.bf)(n)}`}}}}};var Ur=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}};var Yr=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:s,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(r).add(m(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(s).add(m(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(r).add(m(i).div(4)).add(m(a).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,vo.bf)(m(p).div(4).equal()),[o]:{color:l,fontSize:r,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}};var Jr=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:o}=e,r=(e,r,i,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${(0,vo.bf)(r)} ${(0,vo.bf)(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:(0,vo.bf)(o(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${(0,vo.bf)(o(r).mul(-1).equal())} ${(0,vo.bf)(o(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:(0,vo.bf)(o(r).mul(-1).equal()),marginInline:`${(0,vo.bf)(o(n).sub(i).equal())} ${(0,vo.bf)(o(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:(0,vo.bf)(o(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}};var ei=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,headerIconColor:r,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}};var ti=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:s,lineType:u,tableBorderColor:d}=e,f=`${(0,vo.bf)(s)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,vo.bf)(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:o,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}};var ni=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o,calc:r}=e,i=`${(0,vo.bf)(n)} ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${(0,vo.bf)(r(n).mul(-1).equal())} 0 ${o}`}}}};var oi=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:o,lineType:r,tableBorderColor:i,calc:a}=e,l=`${(0,vo.bf)(o)} ${r} ${i}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row, \n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,vo.bf)(o)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(o).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}};const ri=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:c,tableFontSize:s,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:g,tableFooterTextColor:h,tableFooterBg:v,calc:b}=e,y=`${(0,vo.bf)(a)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,yo.dF)()),{[t]:Object.assign(Object.assign({},(0,yo.Wf)(e)),{fontSize:s,background:u,borderRadius:`${(0,vo.bf)(d)} ${(0,vo.bf)(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,vo.bf)(d)} ${(0,vo.bf)(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${(0,vo.bf)(o)} ${(0,vo.bf)(r)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${(0,vo.bf)(o)} ${(0,vo.bf)(r)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:(0,vo.bf)(b(o).mul(-1).equal()),marginInline:`${(0,vo.bf)(b(i).sub(r).equal())}\n ${(0,vo.bf)(b(r).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${(0,vo.bf)(o)} ${(0,vo.bf)(r)}`,color:h,background:v}})}};var ii=(0,Co.I$)("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:o,controlInteractiveSize:r,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:s,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:g,cellPaddingBlockMD:h,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:x,footerBg:w,footerColor:C,headerBorderRadius:S,cellFontSize:E,cellFontSizeMD:k,cellFontSizeSM:I,headerSplitColor:j,fixedHeaderSortActiveBg:N,headerFilterHoverBg:M,filterDropdownBg:Z,expandIconBg:O,selectionColumnWidth:$,stickyScrollBarBg:A,calc:z}=e,T=(0,wo.IX)(e,{tableFontSize:E,tableBg:o,tableRadius:S,tablePaddingVertical:m,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:x,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:C,tableFooterBg:w,tableHeaderCellSplitColor:j,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:s,tableFixedHeaderSortActiveBg:N,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:Z,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:2,zIndexTableSticky:z(2).add(1).equal({unit:!1}),tableFontSizeMiddle:k,tableFontSizeSmall:I,tableSelectionColumnWidth:$,tableExpandIconBg:O,tableExpandColumnWidth:z(r).add(z(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:A,tableScrollThumbBgHover:t,tableScrollBg:n});return[ri(T),Qr(T),ni(T),ei(T),Xr(T),Fr(T),_r(T),qr(T),ni(T),Vr(T),Yr(T),Gr(T),ti(T),Kr(T),Jr(T),Ur(T),oi(T)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:o,colorFillSecondary:r,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:g,fontSizeSM:h,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:x,opacityLoading:w,controlInteractiveSize:C}=e,S=new Wr.t(r).onBackground(n).toHexString(),E=new Wr.t(i).onBackground(n).toHexString(),k=new Wr.t(t).onBackground(n).toHexString(),I=new Wr.t(y),j=new Wr.t(x),N=C/2-b,M=2*N+3*b;return{headerBg:k,headerColor:o,headerSortActiveBg:S,headerSortHoverBg:E,bodySortBg:k,rowHoverBg:k,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:k,footerColor:o,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:S,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-3*b)/2-Math.ceil((1.4*h-3*b)/2),headerIconColor:I.clone().setA(I.a*w).toRgbString(),headerIconHoverColor:j.clone().setA(j.a*w).toRgbString(),expandIconHalfInner:N,expandIconSize:M,expandIconScale:C/M}}),{unitless:{expandIconScale:!0}});const ai=[],li=(e,t)=>{var n,r;const{prefixCls:a,className:l,rootClassName:c,style:s,size:u,bordered:d,dropdownPrefixCls:f,dataSource:p,pagination:m,rowSelection:g,rowKey:h="key",rowClassName:v,columns:b,children:y,childrenColumnName:x,onChange:w,getPopupContainer:C,loading:S,expandIcon:E,expandable:k,expandedRowRender:j,expandIconColumnIndex:N,indentSize:M,scroll:Z,sortDirections:O,locale:$,showSorterTooltip:A={target:"full-header"},virtual:z}=e;(0,Kt.ln)("Table");const T=o.useMemo((()=>b||Se(y)),[b,y]),P=o.useMemo((()=>T.some((e=>e.responsive))),[T]),L=(0,dn.Z)(P),R=o.useMemo((()=>{const e=new Set(Object.keys(L).filter((e=>L[e])));return T.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[T,L]),B=(0,gt.Z)(e,["className","style","columns"]),{locale:D=fn.Z,direction:H,table:W,renderEmpty:F,getPrefixCls:K,getPopupContainer:V}=o.useContext(ln.E_),q=(0,un.Z)(u),X=Object.assign(Object.assign({},D.Table),$),G=p||ai,Q=K("table",a),_=K("dropdown",f),[,U]=(0,gn.ZP)(),Y=(0,sn.Z)(Q),[J,ee,te]=ii(Q,Y),ne=Object.assign(Object.assign({childrenColumnName:x,expandIconColumnIndex:N},k),{expandIcon:null!==(n=null==k?void 0:k.expandIcon)&&void 0!==n?n:null===(r=null==W?void 0:W.expandable)||void 0===r?void 0:r.expandIcon}),{childrenColumnName:oe="children"}=ne,re=o.useMemo((()=>G.some((e=>null==e?void 0:e[oe]))?"nest":j||(null==k?void 0:k.expandedRowRender)?"row":null),[G]),ie={body:o.useRef(null)},ae=function(e){return(t,n)=>{const o=t.querySelector(`.${e}-container`);let r=n;if(o){const e=getComputedStyle(o);r=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return r}}(Q),le=o.useRef(null),ce=o.useRef(null);tn(t,(()=>Object.assign(Object.assign({},ce.current),{nativeElement:le.current})));const se=o.useMemo((()=>"function"==typeof h?h:e=>null==e?void 0:e[h]),[h]),[ue]=vr(G,oe,se),de={},fe=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var o,r,i,a;const l=Object.assign(Object.assign({},de),e);n&&(null===(o=de.resetPagination)||void 0===o||o.call(de),(null===(r=l.pagination)||void 0===r?void 0:r.current)&&(l.pagination.current=1),m&&(null===(i=m.onChange)||void 0===i||i.call(m,1,null===(a=l.pagination)||void 0===a?void 0:a.pageSize))),Z&&!1!==Z.scrollToFirstRowOnChange&&ie.body.current&&an(0,{getContainer:()=>ie.body.current}),null==w||w(l.pagination,l.filters,l.sorter,{currentDataSource:mr(Pr(G,l.sorterStates,oe),l.filterStates,oe),action:t})},[pe,me,ge,he]=Lr({prefixCls:Q,mergedColumns:R,onSorterChange:(e,t)=>{fe({sorter:e,sorterStates:t},"sort",!1)},sortDirections:O||["ascend","descend"],tableLocale:X,showSorterTooltip:A}),ve=o.useMemo((()=>Pr(G,me,oe)),[G,me]);de.sorter=he(),de.sorterStates=me;const[be,ye,xe]=hr({prefixCls:Q,locale:X,dropdownPrefixCls:_,mergedColumns:R,onFilterChange:(e,t)=>{fe({filters:e,filterStates:t},"filter",!0)},getPopupContainer:C||V,rootClassName:I()(c,Y)}),we=mr(ve,ye,oe);de.filters=xe,de.filterStates=ye;const Ce=o.useMemo((()=>{const e={};return Object.keys(xe).forEach((t=>{null!==xe[t]&&(e[t]=xe[t])})),Object.assign(Object.assign({},ge),{filters:e})}),[ge,xe]),[Ee]=Br(Ce),[ke,Ie]=xr(we.length,((e,t)=>{fe({pagination:Object.assign(Object.assign({},de.pagination),{current:e,pageSize:t})},"paginate")}),m);de.pagination=!1===m?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},o=t&&"object"==typeof t?t:{};return Object.keys(o).forEach((t=>{const o=e[t];"function"!=typeof o&&(n[t]=o)})),n}(ke,m),de.resetPagination=Ie;const je=o.useMemo((()=>{if(!1===m||!ke.pageSize)return we;const{current:e=1,total:t,pageSize:n=yr}=ke;return we.lengthn?we.slice((e-1)*n,e*n):we:we.slice((e-1)*n,e*n)}),[!!m,we,null==ke?void 0:ke.current,null==ke?void 0:ke.pageSize,null==ke?void 0:ke.total]),[Ne,Me]=en({prefixCls:Q,data:we,pageData:je,getRowKey:se,getRecordByKey:ue,expandType:re,childrenColumnName:oe,locale:X,getPopupContainer:C||V},g);ne.__PARENT_RENDER_ICON__=ne.expandIcon,ne.expandIcon=ne.expandIcon||E||hn(X),"nest"===re&&void 0===ne.expandIconColumnIndex?ne.expandIconColumnIndex=g?1:0:ne.expandIconColumnIndex>0&&g&&(ne.expandIconColumnIndex-=1),"number"!=typeof ne.indentSize&&(ne.indentSize="number"==typeof M?M:15);const Ze=o.useCallback((e=>Ee(Ne(be(pe(e))))),[pe,be,Ne]);let Oe,$e,Ae;if(!1!==m&&(null==ke?void 0:ke.total)){let e;e=ke.size?ke.size:"small"===q||"middle"===q?"small":void 0;const t=t=>o.createElement(pn.Z,Object.assign({},ke,{className:I()(`${Q}-pagination ${Q}-pagination-${t}`,ke.className),size:e})),n="rtl"===H?"left":"right",{position:r}=ke;if(null!==r&&Array.isArray(r)){const e=r.find((e=>e.includes("top"))),o=r.find((e=>e.includes("bottom"))),i=r.every((e=>"none"==`${e}`));e||o||i||($e=t(n)),e&&(Oe=t(e.toLowerCase().replace("top",""))),o&&($e=t(o.toLowerCase().replace("bottom","")))}else $e=t(n)}"boolean"==typeof S?Ae={spinning:S}:"object"==typeof S&&(Ae=Object.assign({spinning:!0},S));const ze=I()(te,Y,`${Q}-wrapper`,null==W?void 0:W.className,{[`${Q}-wrapper-rtl`]:"rtl"===H},l,c,ee),Te=Object.assign(Object.assign({},null==W?void 0:W.style),s),Pe=void 0!==(null==$?void 0:$.emptyText)?$.emptyText:(null==F?void 0:F("Table"))||o.createElement(cn.Z,{componentName:"Table"}),Le=z?Hr:Dr,Re={},Be=o.useMemo((()=>{const{fontSize:e,lineHeight:t,lineWidth:n,padding:o,paddingXS:r,paddingSM:i}=U,a=Math.floor(e*t);switch(q){case"middle":return 2*i+a+n;case"small":return 2*r+a+n;default:return 2*o+a+n}}),[U,q]);return z&&(Re.listItemHeight=Be),J(o.createElement("div",{ref:le,className:ze,style:Te},o.createElement(mn.Z,Object.assign({spinning:!1},Ae),Oe,o.createElement(Le,Object.assign({},Re,B,{ref:ce,columns:R,direction:H,expandable:ne,prefixCls:Q,className:I()({[`${Q}-middle`]:"middle"===q,[`${Q}-small`]:"small"===q,[`${Q}-bordered`]:d,[`${Q}-empty`]:0===G.length},te,Y,ee),data:je,rowKey:se,rowClassName:(e,t,n)=>{let o;return o="function"==typeof v?I()(v(e,t,n)):I()(v),I()({[`${Q}-row-selected`]:Me.has(se(e,t))},o)},emptyText:Pe,internalHooks:i,internalRefs:ie,transformColumns:Ze,getContainerWidth:ae})),$e)))};var ci=o.forwardRef(li);const si=(e,t)=>{const n=o.useRef(0);return n.current+=1,o.createElement(ci,Object.assign({},e,{ref:t,_renderTimes:n.current}))},ui=o.forwardRef(si);ui.SELECTION_COLUMN=Gt,ui.EXPAND_COLUMN=r,ui.SELECTION_ALL=Qt,ui.SELECTION_INVERT=_t,ui.SELECTION_NONE=Ut,ui.Column=lt,ui.ColumnGroup=ct,ui.Summary=K;var di=ui},52017:function(e,t,n){n.d(t,{Z:function(){return Ze}});var o=n(59301),r=n(99267),i=n(18785),a=n(14809),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},c=n(7657),s=function(e,t){return o.createElement(c.Z,(0,a.Z)({},e,{ref:t,icon:l}))};var u=o.forwardRef(s),d=n(92310),f=n.n(d),p=n(4635),m=n(20439),g=n(50298),h=n(93664),v=n(62646),b=n(18929),y=n(49658),x=(0,o.createContext)(null),w=n(95190),C=n(29301),S=n(6089),E=n(8654),k=n(16089),I=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,i=e.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=(0,o.useState)(),d=(0,g.Z)(u,2),f=d[0],p=d[1],m=(0,o.useRef)(),h=o.useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function v(){k.Z.cancel(m.current)}return(0,o.useEffect)((function(){var e={};if(t)if(n){e.width=h(t.width);var o=r?"right":"left";"start"===s&&(e[o]=t[o]),"center"===s&&(e[o]=t[o]+t.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[o]=t[o]+t.width,e.transform="translateX(-100%)")}else e.height=h(t.height),"start"===s&&(e.top=t.top),"center"===s&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return v(),m.current=(0,k.Z)((function(){p(e)})),v}),[t,n,r,s,h]),{style:f}},j={width:0,height:0,left:0,top:0};function N(e,t){var n=o.useRef(e),r=o.useState({}),i=(0,g.Z)(r,2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,i({})}]}var M=Math.pow(.995,20);var Z=n(34280);function O(e){var t=(0,o.useState)(0),n=(0,g.Z)(t,2),r=n[0],i=n[1],a=(0,o.useRef)(0),l=(0,o.useRef)();return l.current=e,(0,Z.o)((function(){var e;null===(e=l.current)||void 0===e||e.call(l)}),[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}var $={width:0,height:0,left:0,top:0,right:0};function A(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function z(e){return String(e).replace(/"/g,"TABS_DQ")}function T(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var P=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return r&&!1!==r.showAdd?o.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null})),L=P;var R=o.forwardRef((function(e,t){var n,r=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==(0,h.Z)(a)||o.isValidElement(a)?l.right=a:l=a,"right"===r&&(n=l.right),"left"===r&&(n=l.left),n?o.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null})),B=n(96478),D=n(28321),H=n(10228),W=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,l=e.locale,c=e.mobile,s=e.more,u=void 0===s?{}:s,d=e.style,m=e.className,h=e.editable,v=e.tabBarGutter,b=e.rtl,y=e.removeAriaLabel,x=e.onTabClick,w=e.getPopupContainer,C=e.popupClassName,S=(0,o.useState)(!1),E=(0,g.Z)(S,2),k=E[0],I=E[1],j=(0,o.useState)(null),N=(0,g.Z)(j,2),M=N[0],Z=N[1],O=u.icon,$=void 0===O?"More":O,A="".concat(r,"-more-popup"),z="".concat(n,"-dropdown"),P=null!==M?"".concat(A,"-").concat(M):null,R=null==l?void 0:l.dropdownAriaLabel;var W=o.createElement(D.ZP,{onClick:function(e){var t=e.key,n=e.domEvent;x(t,n),I(!1)},prefixCls:"".concat(z,"-menu"),id:A,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[M],"aria-label":void 0!==R?R:"expanded dropdown"},i.map((function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,a=e.key,l=e.label,c=T(t,i,h,n);return o.createElement(D.sN,{key:a,id:"".concat(A,"-").concat(a),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(a),disabled:n},o.createElement("span",null,l),c&&o.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(z,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),h.onEdit("remove",{key:t,event:e})}(e,a)}},i||h.removeIcon||"×"))})));function F(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===M}))||0,o=t.length,r=0;rt?"left":"right"})})),te=(0,g.Z)(ee,2),ne=te[0],oe=te[1],re=N(0,(function(e,t){!J&&Z&&Z({direction:e>t?"top":"bottom"})})),ie=(0,g.Z)(re,2),ae=ie[0],le=ie[1],ce=(0,o.useState)([0,0]),se=(0,g.Z)(ce,2),ue=se[0],de=se[1],fe=(0,o.useState)([0,0]),pe=(0,g.Z)(fe,2),me=pe[0],ge=pe[1],he=(0,o.useState)([0,0]),ve=(0,g.Z)(he,2),be=ve[0],ye=ve[1],xe=(0,o.useState)([0,0]),we=(0,g.Z)(xe,2),Ce=we[0],Se=we[1],Ee=function(e){var t=(0,o.useRef)([]),n=(0,o.useState)({}),r=(0,g.Z)(n,2)[1],i=(0,o.useRef)("function"==typeof e?e():e),a=O((function(){var e=i.current;t.current.forEach((function(t){e=t(e)})),t.current=[],i.current=e,r({})}));return[i.current,function(e){t.current.push(e),a()}]}(new Map),ke=(0,g.Z)(Ee,2),Ie=ke[0],je=ke[1],Ne=function(e,t,n){return(0,o.useMemo)((function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||j,i=r.left+r.width,a=0;aLe?Le:e}J&&s?(Pe=0,Le=Math.max(0,Ze-ze)):(Pe=Math.min(0,ze-Ze),Le=0);var Be=(0,o.useRef)(null),De=(0,o.useState)(),He=(0,g.Z)(De,2),We=He[0],Fe=He[1];function Ke(){Fe(Date.now())}function Ve(){Be.current&&clearTimeout(Be.current)}!function(e,t){var n=(0,o.useState)(),r=(0,g.Z)(n,2),i=r[0],a=r[1],l=(0,o.useState)(0),c=(0,g.Z)(l,2),s=c[0],u=c[1],d=(0,o.useState)(0),f=(0,g.Z)(d,2),p=f[0],m=f[1],h=(0,o.useState)(),v=(0,g.Z)(h,2),b=v[0],y=v[1],x=(0,o.useRef)(),w=(0,o.useRef)(),C=(0,o.useRef)(null);C.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;a({x:n,y:o}),window.clearInterval(x.current)},onTouchMove:function(e){if(i){var n=e.touches[0],o=n.screenX,r=n.screenY;a({x:o,y:r});var l=o-i.x,c=r-i.y;t(l,c);var d=Date.now();u(d),m(d-s),y({x:l,y:c})}},onTouchEnd:function(){if(i&&(a(null),y(null),b)){var e=b.x/p,n=b.y/p,o=Math.abs(e),r=Math.abs(n);if(Math.max(o,r)<.1)return;var l=e,c=n;x.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(x.current):t(20*(l*=M),20*(c*=M))}),20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,r=0,i=Math.abs(n),a=Math.abs(o);i===a?r="x"===w.current?n:o:i>a?(r=n,w.current="x"):(r=o,w.current="y"),t(-r,-r)&&e.preventDefault()}},o.useEffect((function(){function t(e){C.current.onTouchMove(e)}function n(e){C.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){C.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){C.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(Q,(function(e,t){function n(e,t){e((function(e){return Re(e+t)}))}return!!Ae&&(J?n(oe,e):n(le,t),Ve(),Ke(),!0)})),(0,o.useEffect)((function(){return Ve(),We&&(Be.current=setTimeout((function(){Fe(0)}),100)),Ve}),[We]);var qe=function(e,t,n,r,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(n)):(c="height",s="top",u=-n),(0,o.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,o=n,r=0;rMath.floor(u+t)){o=r-1;break}}for(var a=0,l=n-1;l>=0;l-=1)if((e.get(d[l].key)||$)[s]=o?[0,0]:[a,o]}),[e,t,r,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(Ne,ze,J?ne:ae,Ze,Oe,$e,(0,m.Z)((0,m.Z)({},e),{},{tabs:H})),Xe=(0,g.Z)(qe,2),Ge=Xe[0],Qe=Xe[1],_e=(0,S.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=Ne.get(e)||{width:0,height:0,left:0,right:0,top:0};if(J){var n=ne;s?t.rightne+ze&&(n=t.right+t.width-ze):t.left<-ne?n=-t.left:t.left+t.width>-ne+ze&&(n=-(t.left+t.width-ze)),le(0),oe(Re(n))}else{var o=ae;t.top<-ae?o=-t.top:t.top+t.height>-ae+ze&&(o=-(t.top+t.height-ze)),oe(0),le(Re(o))}})),Ue=(0,o.useState)(),Ye=(0,g.Z)(Ue,2),Je=Ye[0],et=Ye[1],tt=(0,o.useState)(!1),nt=(0,g.Z)(tt,2),ot=nt[0],rt=nt[1],it=H.filter((function(e){return!e.disabled})).map((function(e){return e.key})),at=function(e){var t=it.indexOf(Je||c),n=it.length,o=it[(t+e+n)%n];et(o)},lt=function(e){var t=e.code,n=s&&J,o=it[0],r=it[it.length-1];switch(t){case"ArrowLeft":J&&at(n?1:-1);break;case"ArrowRight":J&&at(n?-1:1);break;case"ArrowUp":e.preventDefault(),J||at(-1);break;case"ArrowDown":e.preventDefault(),J||at(1);break;case"Home":e.preventDefault(),et(o);break;case"End":e.preventDefault(),et(r);break;case"Enter":case"Space":e.preventDefault(),k(c,e);break;case"Backspace":case"Delete":var i=it.indexOf(Je),a=H.find((function(e){return e.key===Je}));T(null==a?void 0:a.closable,null==a?void 0:a.closeIcon,d,null==a?void 0:a.disabled)&&(e.preventDefault(),e.stopPropagation(),d.onEdit("remove",{key:Je,event:e}),i===it.length-1?at(-1):at(1))}},ct={};J?ct[s?"marginRight":"marginLeft"]=b:ct.marginTop=b;var st=H.map((function(e,t){var n=e.key;return o.createElement(K,{id:i,prefixCls:D,key:n,tab:e,style:0===t?void 0:ct,closable:e.closable,editable:d,active:n===c,focus:n===Je,renderWrapper:y,removeAriaLabel:null==h?void 0:h.removeAriaLabel,tabCount:it.length,currentPosition:t+1,onClick:function(e){k(n,e)},onKeyDown:lt,onFocus:function(){ot||et(n),_e(n),Ke(),Q.current&&(s||(Q.current.scrollLeft=0),Q.current.scrollTop=0)},onBlur:function(){et(void 0)},onMouseDown:function(){rt(!0)},onMouseUp:function(){rt(!1)}})})),ut=function(){return je((function(){var e,t=new Map,n=null===(e=_.current)||void 0===e?void 0:e.getBoundingClientRect();return H.forEach((function(e){var o,r=e.key,i=null===(o=_.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat(z(r),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,o=e.offsetHeight,r=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.left,u=a.top;return Math.abs(l-n)<1?[l,c,s-t.left,u-t.top]:[n,o,i,r]}(i,n),l=(0,g.Z)(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(r,{width:c,height:s,left:u,top:d})}})),t}))};(0,o.useEffect)((function(){ut()}),[H.map((function(e){return e.key})).join("_")]);var dt=O((function(){var e=V(W),t=V(X),n=V(G);de([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=V(Y);ye(o);var r=V(U);Se(r);var i=V(_);ge([i[0]-o[0],i[1]-o[1]]),ut()})),ft=H.slice(0,Ge),pt=H.slice(Qe+1),mt=[].concat((0,w.Z)(ft),(0,w.Z)(pt)),gt=Ne.get(c),ht=I({activeTabOffset:gt,horizontal:J,indicator:P,rtl:s}).style;(0,o.useEffect)((function(){_e()}),[c,Pe,Le,A(gt),A(Ne),J]),(0,o.useEffect)((function(){dt()}),[s]);var vt,bt,yt,xt,wt=!!mt.length,Ct="".concat(D,"-nav-wrap");return J?s?(bt=ne>0,vt=ne!==Le):(vt=ne<0,bt=ne!==Pe):(yt=ae<0,xt=ae!==Pe),o.createElement(C.Z,{onResize:dt},o.createElement("div",{ref:(0,E.x1)(t,W),role:"tablist","aria-orientation":J?"horizontal":"vertical",className:f()("".concat(D,"-nav"),n),style:r,onKeyDown:function(){Ke()}},o.createElement(R,{ref:X,position:"left",extra:u,prefixCls:D}),o.createElement(C.Z,{onResize:dt},o.createElement("div",{className:f()(Ct,(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(Ct,"-ping-left"),vt),"".concat(Ct,"-ping-right"),bt),"".concat(Ct,"-ping-top"),yt),"".concat(Ct,"-ping-bottom"),xt)),ref:Q},o.createElement(C.Z,{onResize:dt},o.createElement("div",{ref:_,className:"".concat(D,"-nav-list"),style:{transform:"translate(".concat(ne,"px, ").concat(ae,"px)"),transition:We?"none":void 0}},st,o.createElement(L,{ref:Y,prefixCls:D,locale:h,editable:d,style:(0,m.Z)((0,m.Z)({},0===st.length?void 0:ct),{},{visibility:wt?"hidden":null})}),o.createElement("div",{className:f()("".concat(D,"-ink-bar"),(0,p.Z)({},"".concat(D,"-ink-bar-animated"),l.inkBar)),style:ht}))))),o.createElement(F,(0,a.Z)({},e,{removeAriaLabel:null==h?void 0:h.removeAriaLabel,ref:U,prefixCls:D,tabs:mt,className:!wt&&Te,tabMoving:!!We})),o.createElement(R,{ref:G,position:"right",extra:u,prefixCls:D})))})),G=X,Q=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,l=e.active,c=e.tabKey,s=e.children;return o.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!l,style:i,className:f()(n,l&&"".concat(n,"-active"),r),ref:t},s)}));var _=Q,U=["renderTabBar"],Y=["label","key"];var J=function(e){var t=e.renderTabBar,n=(0,v.Z)(e,U),r=o.useContext(x).tabs;return t?t((0,m.Z)((0,m.Z)({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=(0,v.Z)(e,Y);return o.createElement(_,(0,a.Z)({tab:t,key:n,tabKey:n},r))}))}),G):o.createElement(G,n)},ee=n(77900),te=["key","forceRender","style","className","destroyInactiveTabPane"],ne=function(e){var t=e.id,n=e.activeKey,r=e.animated,i=e.tabPosition,l=e.destroyInactiveTabPane,c=o.useContext(x),s=c.prefixCls,u=c.tabs,d=r.tabPane,g="".concat(s,"-tabpane");return o.createElement("div",{className:f()("".concat(s,"-content-holder"))},o.createElement("div",{className:f()("".concat(s,"-content"),"".concat(s,"-content-").concat(i),(0,p.Z)({},"".concat(s,"-content-animated"),d))},u.map((function(e){var i=e.key,c=e.forceRender,s=e.style,u=e.className,p=e.destroyInactiveTabPane,h=(0,v.Z)(e,te),b=i===n;return o.createElement(ee.ZP,(0,a.Z)({key:i,visible:b,forceRender:c,removeOnLeave:!(!l&&!p),leavedClassName:"".concat(g,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,l=e.className;return o.createElement(_,(0,a.Z)({},h,{prefixCls:g,id:t,tabKey:i,animated:d,active:b,style:(0,m.Z)((0,m.Z)({},s),r),className:f()(u,l),ref:n}))}))}))))};n(48736);var oe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],re=0,ie=o.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,i=void 0===r?"rc-tabs":r,l=e.className,c=e.items,s=e.direction,u=e.activeKey,d=e.defaultActiveKey,w=e.editable,C=e.animated,S=e.tabPosition,E=void 0===S?"top":S,k=e.tabBarGutter,I=e.tabBarStyle,j=e.tabBarExtraContent,N=e.locale,M=e.more,Z=e.destroyInactiveTabPane,O=e.renderTabBar,$=e.onChange,A=e.onTabClick,z=e.onTabScroll,T=e.getPopupContainer,P=e.popupClassName,L=e.indicator,R=(0,v.Z)(e,oe),B=o.useMemo((function(){return(c||[]).filter((function(e){return e&&"object"===(0,h.Z)(e)&&"key"in e}))}),[c]),D="rtl"===s,H=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,m.Z)({inkBar:!0},"object"===(0,h.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(C),W=(0,o.useState)(!1),F=(0,g.Z)(W,2),K=F[0],V=F[1];(0,o.useEffect)((function(){V((0,y.Z)())}),[]);var q=(0,b.Z)((function(){var e;return null===(e=B[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:d}),X=(0,g.Z)(q,2),G=X[0],Q=X[1],_=(0,o.useState)((function(){return B.findIndex((function(e){return e.key===G}))})),U=(0,g.Z)(_,2),Y=U[0],ee=U[1];(0,o.useEffect)((function(){var e,t=B.findIndex((function(e){return e.key===G}));-1===t&&(t=Math.max(0,Math.min(Y,B.length-1)),Q(null===(e=B[t])||void 0===e?void 0:e.key));ee(t)}),[B.map((function(e){return e.key})).join("_"),G,Y]);var te=(0,b.Z)(null,{value:n}),ie=(0,g.Z)(te,2),ae=ie[0],le=ie[1];(0,o.useEffect)((function(){n||(le("rc-tabs-".concat(re)),re+=1)}),[]);var ce={id:ae,activeKey:G,animated:H,tabPosition:E,rtl:D,mobile:K},se=(0,m.Z)((0,m.Z)({},ce),{},{editable:w,locale:N,more:M,tabBarGutter:k,onTabClick:function(e,t){null==A||A(e,t);var n=e!==G;Q(e),n&&(null==$||$(e))},onTabScroll:z,extra:j,style:I,panes:null,getPopupContainer:T,popupClassName:P,indicator:L});return o.createElement(x.Provider,{value:{tabs:B,prefixCls:i}},o.createElement("div",(0,a.Z)({ref:t,id:n,className:f()(i,"".concat(i,"-").concat(E),(0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(i,"-mobile"),K),"".concat(i,"-editable"),w),"".concat(i,"-rtl"),D),l)},R),o.createElement(J,(0,a.Z)({},se,{renderTabBar:O})),o.createElement(ne,(0,a.Z)({destroyInactiveTabPane:Z},ce,{animated:H}))))}));var ae=ie,le=n(48755),ce=n(83397),se=n(31756),ue=n(86641);const de={motionAppear:!1,motionEnter:!0,motionLeave:!0};var fe=n(11592),pe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,be.oN)(e,"slide-up"),(0,be.oN)(e,"slide-down")]]};const xe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:o,cardGutter:r,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${(0,me.bf)(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},(0,ge.oN)(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,me.bf)(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,me.bf)(e.borderRadiusLG)} ${(0,me.bf)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,me.bf)(e.borderRadiusLG)} ${(0,me.bf)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,me.bf)(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,me.bf)(e.borderRadiusLG)} 0 0 ${(0,me.bf)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,me.bf)(e.borderRadiusLG)} ${(0,me.bf)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},we=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,ge.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,me.bf)(o)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ge.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,me.bf)(e.paddingXXS)} ${(0,me.bf)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Ce=e=>{const{componentCls:t,margin:n,colorBorderSecondary:o,horizontalMargin:r,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,me.bf)(e.lineWidth)} ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,me.bf)(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,me.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,me.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Se=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:o,horizontalItemPaddingSM:r,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,me.bf)(e.borderRadius)} ${(0,me.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,me.bf)(e.borderRadius)} ${(0,me.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,me.bf)(e.borderRadius)} ${(0,me.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,me.bf)(e.borderRadius)} 0 0 ${(0,me.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}}}}}},Ee=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:o,iconCls:r,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},(0,ge.Qy)(e)),"&:hover":{color:o},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-focus ${s}-btn`]:Object.assign({},(0,ge.oN)(e)),[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${r}`]:{margin:0},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},ke=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:o,cardGutter:r,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,me.bf)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,me.bf)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,me.bf)(i(e.marginXXS).mul(-1).equal())},[o]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ie=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:o,cardGutter:r,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:o,marginLeft:{_skip_check_:!0,value:r},padding:(0,me.bf)(e.paddingXS),background:"transparent",border:`${(0,me.bf)(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${(0,me.bf)(e.borderRadiusLG)} ${(0,me.bf)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},(0,ge.Qy)(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Ee(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},(0,ge.Qy)(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}};var je=(0,he.I$)("Tabs",(e=>{const t=(0,ve.IX)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,me.bf)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,me.bf)(e.horizontalItemGutter)}`});return[Se(t),ke(t),Ce(t),we(t),xe(t),Ie(t),ye(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));var Ne=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var t,n,a,l,c,s,d,p,m,g,h;const{type:v,className:b,rootClassName:y,size:x,onEdit:w,hideAdd:C,centered:S,addIcon:E,removeIcon:k,moreIcon:I,more:j,popupClassName:N,children:M,items:Z,animated:O,style:$,indicatorSize:A,indicator:z}=e,T=Ne(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:P}=T,{direction:L,tabs:R,getPrefixCls:B,getPopupContainer:D}=o.useContext(le.E_),H=B("tabs",P),W=(0,ce.Z)(H),[F,K,V]=je(H,W);let q;"editable-card"===v&&(q={onEdit:(e,t)=>{let{key:n,event:o}=t;null==w||w("add"===e?o:n,e)},removeIcon:null!==(t=null!=k?k:null==R?void 0:R.removeIcon)&&void 0!==t?t:o.createElement(r.Z,null),addIcon:(null!=E?E:null==R?void 0:R.addIcon)||o.createElement(u,null),showAdd:!0!==C});const X=B();const G=(0,se.Z)(x),Q=function(e,t){return e||function(e){return e.filter((e=>e))}((0,fe.Z)(t).map((e=>{if(o.isValidElement(e)){const{key:t,props:n}=e,o=n||{},{tab:r}=o,i=pe(o,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:r})}return null})))}(Z,M),_=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},de),{motionName:(0,ue.m)(e,"switch")})),t}(H,O),U=Object.assign(Object.assign({},null==R?void 0:R.style),$),Y={align:null!==(n=null==z?void 0:z.align)&&void 0!==n?n:null===(a=null==R?void 0:R.indicator)||void 0===a?void 0:a.align,size:null!==(d=null!==(c=null!==(l=null==z?void 0:z.size)&&void 0!==l?l:A)&&void 0!==c?c:null===(s=null==R?void 0:R.indicator)||void 0===s?void 0:s.size)&&void 0!==d?d:null==R?void 0:R.indicatorSize};return F(o.createElement(ae,Object.assign({direction:L,getPopupContainer:D},T,{items:Q,className:f()({[`${H}-${G}`]:G,[`${H}-card`]:["card","editable-card"].includes(v),[`${H}-editable-card`]:"editable-card"===v,[`${H}-centered`]:S},null==R?void 0:R.className,b,y,K,V,W),popupClassName:f()(N,K,V,W),style:U,editable:q,more:Object.assign({icon:null!==(h=null!==(g=null!==(m=null===(p=null==R?void 0:R.more)||void 0===p?void 0:p.icon)&&void 0!==m?m:null==R?void 0:R.moreIcon)&&void 0!==g?g:I)&&void 0!==h?h:o.createElement(i.Z,null),transitionName:`${X}-slide-up`},j),prefixCls:H,animated:_,indicator:Y})))};Me.TabPane=()=>null;var Ze=Me},55544:function(e,t,n){n.d(t,{Z:function(){return X}});var o=n(59301),r=n(92310),i=n.n(r);function a(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,l=e.bodyClassName,c=e.className,s=e.style;return o.createElement("div",{className:i()("".concat(n,"-content"),c),style:s},o.createElement("div",{className:i()("".concat(n,"-inner"),l),id:r,role:"tooltip",style:a},"function"==typeof t?t():t))}var l=n(14809),c=n(20439),s=n(62646),u=n(65966),d={shiftX:64,adjustY:1},f={adjustX:1,shiftY:!0},p=[0,0],m={left:{points:["cr","cl"],overflow:f,offset:[-4,0],targetOffset:p},right:{points:["cl","cr"],overflow:f,offset:[4,0],targetOffset:p},top:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:p},bottom:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:p},topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:p},leftTop:{points:["tr","tl"],overflow:f,offset:[-4,0],targetOffset:p},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:p},rightTop:{points:["tl","tr"],overflow:f,offset:[4,0],targetOffset:p},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:p},rightBottom:{points:["bl","br"],overflow:f,offset:[4,0],targetOffset:p},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:p},leftBottom:{points:["br","bl"],overflow:f,offset:[-4,0],targetOffset:p}},g=n(80402),h=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],v=function(e,t){var n=e.overlayClassName,r=e.trigger,d=void 0===r?["hover"]:r,f=e.mouseEnterDelay,p=void 0===f?0:f,v=e.mouseLeaveDelay,b=void 0===v?.1:v,y=e.overlayStyle,x=e.prefixCls,w=void 0===x?"rc-tooltip":x,C=e.children,S=e.onVisibleChange,E=e.afterVisibleChange,k=e.transitionName,I=e.animation,j=e.motion,N=e.placement,M=void 0===N?"right":N,Z=e.align,O=void 0===Z?{}:Z,$=e.destroyTooltipOnHide,A=void 0!==$&&$,z=e.defaultVisible,T=e.getTooltipContainer,P=e.overlayInnerStyle,L=(e.arrowContent,e.overlay),R=e.id,B=e.showArrow,D=void 0===B||B,H=e.classNames,W=e.styles,F=(0,s.Z)(e,h),K=(0,g.Z)(R),V=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,(function(){return V.current}));var q=(0,c.Z)({},F);"visible"in e&&(q.popupVisible=e.visible);var X,G,Q;return o.createElement(u.Z,(0,l.Z)({popupClassName:i()(n,null==H?void 0:H.root),prefixCls:w,popup:function(){return o.createElement(a,{key:"content",prefixCls:w,id:K,bodyClassName:null==H?void 0:H.body,overlayInnerStyle:(0,c.Z)((0,c.Z)({},P),null==W?void 0:W.body)},L)},action:d,builtinPlacements:m,popupPlacement:M,ref:V,popupAlign:O,getPopupContainer:T,onPopupVisibleChange:S,afterPopupVisibleChange:E,popupTransitionName:k,popupAnimation:I,popupMotion:j,defaultPopupVisible:z,autoDestroy:A,mouseLeaveDelay:b,popupStyle:(0,c.Z)((0,c.Z)({},y),null==W?void 0:W.root),mouseEnterDelay:p,arrow:D},q),(X=o.Children.only(C),G=(null==X?void 0:X.props)||{},Q=(0,c.Z)((0,c.Z)({},G),{},{"aria-describedby":L?K:null}),o.cloneElement(C,Q)))},b=(0,o.forwardRef)(v),y=n(18929),x=n(62487),w=n(75030),C=n(86641),S=n(52838),E=n(22703),k=n(32383),I=n(55743),j=n(57700),N=n(48755),M=n(66604),Z=n(63356),O=n(34925),$=n(37645),A=n(36305),z=n(34998);function T(e,t){return z.i.reduce(((n,o)=>{const r=e[`${o}1`],i=e[`${o}3`],a=e[`${o}6`],l=e[`${o}7`];return Object.assign(Object.assign({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}var P=n(51636),L=n(16931);const R=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:o,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:c,boxShadowSecondary:s,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p}=e,m=t(a).add(p).add(f).equal(),g=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Z.Wf)(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:o,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:g,minHeight:c,padding:`${(0,M.bf)(e.calc(u).div(2).equal())} ${(0,M.bf)(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:s,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,$.qN)}},[`${n}-content`]:{position:"relative"}}),T(e,((e,t)=>{let{darkColor:o}=t;return{[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:o},[`${n}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},(0,$.ZP)(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},B=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,$.wZ)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,A.w)((0,P.IX)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var D=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=(0,L.I$)("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=(0,P.IX)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[R(r),(0,O._y)(e,"zoom-big-fast")]}),B,{resetStyle:!1,injectStyle:t});return n(e)},H=n(95190);const W=z.i.map((e=>`${e}-inverse`));function F(e,t){const n=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?[].concat((0,H.Z)(W),(0,H.Z)(z.i)).includes(e):z.i.includes(e)}(t),o=i()({[`${e}-${t}`]:t&&n}),r={},a={};return t&&!n&&(r.background=t,a["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:a}}var K=e=>{const{prefixCls:t,className:n,placement:r="top",title:l,color:c,overlayInnerStyle:s}=e,{getPrefixCls:u}=o.useContext(N.E_),d=u("tooltip",t),[f,p,m]=D(d),g=F(d,c),h=g.arrowStyle,v=Object.assign(Object.assign({},s),g.overlayStyle),b=i()(p,m,d,`${d}-pure`,`${d}-placement-${r}`,n,g.className);return f(o.createElement("div",{className:b,style:h},o.createElement("div",{className:`${d}-arrow`}),o.createElement(a,Object.assign({},e,{className:p,prefixCls:d,overlayInnerStyle:v}),l)))},V=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n,r;const{prefixCls:a,openClassName:l,getTooltipContainer:c,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:m,arrow:g=!0,title:h,overlay:v,builtinPlacements:M,arrowPointAtCenter:Z=!1,autoAdjustOverflow:O=!0,motion:$,getPopupContainer:A,placement:z="top",mouseEnterDelay:T=.1,mouseLeaveDelay:P=.1,overlayStyle:L,rootClassName:R,overlayClassName:B,styles:H,classNames:W}=e,K=V(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),q=!!g,[,X]=(0,j.ZP)(),{getPopupContainer:G,getPrefixCls:Q,direction:_,className:U,style:Y,classNames:J,styles:ee}=(0,N.dj)("tooltip"),te=(0,k.ln)("Tooltip"),ne=o.useRef(null),oe=()=>{var e;null===(e=ne.current)||void 0===e||e.forceAlign()};o.useImperativeHandle(t,(()=>{var e,t;return{forceAlign:oe,forcePopupAlign:()=>{te.deprecated(!1,"forcePopupAlign","forceAlign"),oe()},nativeElement:null===(e=ne.current)||void 0===e?void 0:e.nativeElement,popupElement:null===(t=ne.current)||void 0===t?void 0:t.popupElement}}));const[re,ie]=(0,y.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),ae=!h&&!v&&0!==h,le=o.useMemo((()=>{var e,t;let n=Z;return"object"==typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:Z),M||(0,S.Z)({arrowPointAtCenter:n,autoAdjustOverflow:O,arrowWidth:q?X.sizePopupArrow:0,borderRadius:X.borderRadius,offset:X.marginXXS,visibleFirst:!0})}),[Z,g,M,X]),ce=o.useMemo((()=>0===h?h:v||h||""),[v,h]),se=o.createElement(x.Z,{space:!0},"function"==typeof ce?ce():ce),ue=Q("tooltip",a),de=Q(),fe=e["data-popover-inject"];let pe=re;"open"in e||"visible"in e||!ae||(pe=!1);const me=o.isValidElement(d)&&!(0,E.M2)(d)?d:o.createElement("span",null,d),ge=me.props,he=ge.className&&"string"!=typeof ge.className?ge.className:i()(ge.className,l||`${ue}-open`),[ve,be,ye]=D(ue,!fe),xe=F(ue,s),we=xe.arrowStyle,Ce=i()(B,{[`${ue}-rtl`]:"rtl"===_},xe.className,R,be,ye,U,J.root,null==W?void 0:W.root),Se=i()(J.body,null==W?void 0:W.body),[Ee,ke]=(0,w.Cn)("Tooltip",K.zIndex),Ie=o.createElement(b,Object.assign({},K,{zIndex:Ee,showArrow:q,placement:z,mouseEnterDelay:T,mouseLeaveDelay:P,prefixCls:ue,classNames:{root:Ce,body:Se},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},we),ee.root),Y),L),null==H?void 0:H.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},ee.body),u),null==H?void 0:H.body),xe.overlayStyle)},getTooltipContainer:A||c||G,ref:ne,builtinPlacements:le,overlay:se,visible:pe,onVisibleChange:t=>{var n,o;ie(!ae&&t),ae||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(o=e.onVisibleChange)||void 0===o||o.call(e,t))},afterVisibleChange:null!=f?f:p,arrowContent:o.createElement("span",{className:`${ue}-arrow-content`}),motion:{motionName:(0,C.m)(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),pe?(0,E.Tm)(me,{className:he}):me);return ve(o.createElement(I.Z.Provider,{value:ke},Ie))}));q._InternalPanelDoNotUseOrYouWillBeFired=K;var X=q},16632:function(e,t,n){var o=n(14809),r=n(20439),i=n(4635),a=n(50298),l=n(62646),c=n(92310),s=n.n(c),u=n(18929),d=n(59301),f=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],p=(0,d.forwardRef)((function(e,t){var n=e.prefixCls,c=void 0===n?"rc-checkbox":n,p=e.className,m=e.style,g=e.checked,h=e.disabled,v=e.defaultChecked,b=void 0!==v&&v,y=e.type,x=void 0===y?"checkbox":y,w=e.title,C=e.onChange,S=(0,l.Z)(e,f),E=(0,d.useRef)(null),k=(0,d.useRef)(null),I=(0,u.Z)(b,{value:g}),j=(0,a.Z)(I,2),N=j[0],M=j[1];(0,d.useImperativeHandle)(t,(function(){return{focus:function(e){var t;null===(t=E.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=E.current)||void 0===e||e.blur()},input:E.current,nativeElement:k.current}}));var Z=s()(c,p,(0,i.Z)((0,i.Z)({},"".concat(c,"-checked"),N),"".concat(c,"-disabled"),h));return d.createElement("span",{className:Z,title:w,style:m,ref:k},d.createElement("input",(0,o.Z)({},S,{className:"".concat(c,"-input"),ref:E,onChange:function(t){h||("checked"in e||M(t.target.checked),null==C||C({target:(0,r.Z)((0,r.Z)({},e),{},{type:x,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:h,checked:!!N,type:x})),d.createElement("span",{className:"".concat(c,"-inner")}))}));t.Z=p},96478:function(e,t,n){n.d(t,{Z:function(){return C}});var o=n(14809),r=n(4635),i=n(50298),a=n(62646),l=n(65966),c=n(92310),s=n.n(c),u=n(8654),d=n(59301),f=n(10228),p=n(16089),m=f.Z.ESC,g=f.Z.TAB;var h=(0,d.forwardRef)((function(e,t){var n=e.overlay,o=e.arrow,r=e.prefixCls,i=(0,d.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=(0,u.sQ)(t,(0,u.C4)(i));return d.createElement(d.Fragment,null,o&&d.createElement("div",{className:"".concat(r,"-arrow")}),d.cloneElement(i,{ref:(0,u.Yr)(i)?a:void 0}))})),v={adjustX:1,adjustY:1},b=[0,0],y={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:b},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:b},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:b},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:b},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:b},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:b}},x=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function w(e,t){var n,c=e.arrow,f=void 0!==c&&c,v=e.prefixCls,b=void 0===v?"rc-dropdown":v,w=e.transitionName,C=e.animation,S=e.align,E=e.placement,k=void 0===E?"bottomLeft":E,I=e.placements,j=void 0===I?y:I,N=e.getPopupContainer,M=e.showAction,Z=e.hideAction,O=e.overlayClassName,$=e.overlayStyle,A=e.visible,z=e.trigger,T=void 0===z?["hover"]:z,P=e.autoFocus,L=e.overlay,R=e.children,B=e.onVisibleChange,D=(0,a.Z)(e,x),H=d.useState(),W=(0,i.Z)(H,2),F=W[0],K=W[1],V="visible"in e?A:F,q=d.useRef(null),X=d.useRef(null),G=d.useRef(null);d.useImperativeHandle(t,(function(){return q.current}));var Q=function(e){K(e),null==B||B(e)};!function(e){var t=e.visible,n=e.triggerRef,o=e.onVisibleChange,r=e.autoFocus,i=e.overlayRef,a=d.useRef(!1),l=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==o||o(!1))},c=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},s=function(e){switch(e.keyCode){case m:l();break;case g:var t=!1;a.current||(t=c()),t?e.preventDefault():l()}};d.useEffect((function(){return t?(window.addEventListener("keydown",s),r&&(0,p.Z)(c,3),function(){window.removeEventListener("keydown",s),a.current=!1}):function(){a.current=!1}}),[t])}({visible:V,triggerRef:G,onVisibleChange:Q,autoFocus:P,overlayRef:X});var _,U,Y,J=function(){return d.createElement(h,{ref:X,overlay:L,prefixCls:b,arrow:f})},ee=d.cloneElement(R,{className:s()(null===(n=R.props)||void 0===n?void 0:n.className,V&&(_=e.openClassName,void 0!==_?_:"".concat(b,"-open"))),ref:(0,u.Yr)(R)?(0,u.sQ)(G,(0,u.C4)(R)):void 0}),te=Z;return te||-1===T.indexOf("contextMenu")||(te=["click"]),d.createElement(l.Z,(0,o.Z)({builtinPlacements:j},D,{prefixCls:b,ref:q,popupClassName:s()(O,(0,r.Z)({},"".concat(b,"-show-arrow"),f)),popupStyle:$,action:T,showAction:M,hideAction:te,popupPlacement:k,popupAlign:S,popupTransitionName:w,popupAnimation:C,popupVisible:V,stretch:(U=e.minOverlayWidthMatchTrigger,Y=e.alignPoint,("minOverlayWidthMatchTrigger"in e?U:!Y)?"minWidth":""),popup:"function"==typeof L?J:J(),onPopupVisibleChange:Q,onPopupClick:function(t){var n=e.onOverlayClick;K(!1),n&&n(t)},getPopupContainer:N}),ee)}var C=d.forwardRef(w)},66003:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(62646),r=n(20439),i=n(93664),a=n(59301),l=["show"];function c(e,t){return a.useMemo((function(){var n={};t&&(n.show="object"===(0,i.Z)(t)&&t.formatter?t.formatter:!!t);var a=n=(0,r.Z)((0,r.Z)({},n),e),c=a.show,s=(0,o.Z)(a,l);return(0,r.Z)((0,r.Z)({},s),{},{show:!!c,showFormatter:"function"==typeof c?c:void 0,strategy:s.strategy||function(e){return e.length}})}),[e,t])}},36901:function(e,t,n){n.d(t,{Q:function(){return d},Z:function(){return y}});var o=n(20439),r=n(14809),i=n(4635),a=n(93664),l=n(92310),c=n.n(l),s=n(59301),u=n(30292),d=s.forwardRef((function(e,t){var n,l,d,f=e.inputElement,p=e.children,m=e.prefixCls,g=e.prefix,h=e.suffix,v=e.addonBefore,b=e.addonAfter,y=e.className,x=e.style,w=e.disabled,C=e.readOnly,S=e.focused,E=e.triggerFocus,k=e.allowClear,I=e.value,j=e.handleReset,N=e.hidden,M=e.classes,Z=e.classNames,O=e.dataAttrs,$=e.styles,A=e.components,z=e.onClear,T=null!=p?p:f,P=(null==A?void 0:A.affixWrapper)||"span",L=(null==A?void 0:A.groupWrapper)||"span",R=(null==A?void 0:A.wrapper)||"span",B=(null==A?void 0:A.groupAddon)||"span",D=(0,s.useRef)(null),H=(0,u.X3)(e),W=(0,s.cloneElement)(T,{value:I,className:c()(null===(n=T.props)||void 0===n?void 0:n.className,!H&&(null==Z?void 0:Z.variant))||null}),F=(0,s.useRef)(null);if(s.useImperativeHandle(t,(function(){return{nativeElement:F.current||D.current}})),H){var K=null;if(k){var V=!w&&!C&&I,q="".concat(m,"-clear-icon"),X="object"===(0,a.Z)(k)&&null!=k&&k.clearIcon?k.clearIcon:"✖";K=s.createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null==j||j(e),null==z||z()},onMouseDown:function(e){return e.preventDefault()},className:c()(q,(0,i.Z)((0,i.Z)({},"".concat(q,"-hidden"),!V),"".concat(q,"-has-suffix"),!!h))},X)}var G="".concat(m,"-affix-wrapper"),Q=c()(G,(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(m,"-disabled"),w),"".concat(G,"-disabled"),w),"".concat(G,"-focused"),S),"".concat(G,"-readonly"),C),"".concat(G,"-input-with-clear-btn"),h&&k&&I),null==M?void 0:M.affixWrapper,null==Z?void 0:Z.affixWrapper,null==Z?void 0:Z.variant),_=(h||k)&&s.createElement("span",{className:c()("".concat(m,"-suffix"),null==Z?void 0:Z.suffix),style:null==$?void 0:$.suffix},K,h);W=s.createElement(P,(0,r.Z)({className:Q,style:null==$?void 0:$.affixWrapper,onClick:function(e){var t;null!==(t=D.current)&&void 0!==t&&t.contains(e.target)&&(null==E||E())}},null==O?void 0:O.affixWrapper,{ref:D}),g&&s.createElement("span",{className:c()("".concat(m,"-prefix"),null==Z?void 0:Z.prefix),style:null==$?void 0:$.prefix},g),W,_)}if((0,u.He)(e)){var U="".concat(m,"-group"),Y="".concat(U,"-addon"),J="".concat(U,"-wrapper"),ee=c()("".concat(m,"-wrapper"),U,null==M?void 0:M.wrapper,null==Z?void 0:Z.wrapper),te=c()(J,(0,i.Z)({},"".concat(J,"-disabled"),w),null==M?void 0:M.group,null==Z?void 0:Z.groupWrapper);W=s.createElement(L,{className:te,ref:F},s.createElement(R,{className:ee},v&&s.createElement(B,{className:Y},v),W,b&&s.createElement(B,{className:Y},b)))}return s.cloneElement(W,{className:c()(null===(l=W.props)||void 0===l?void 0:l.className,y)||null,style:(0,o.Z)((0,o.Z)({},null===(d=W.props)||void 0===d?void 0:d.style),x),hidden:N})})),f=n(95190),p=n(50298),m=n(62646),g=n(18929),h=n(2738),v=n(66003),b=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],y=(0,s.forwardRef)((function(e,t){var n=e.autoComplete,a=e.onChange,l=e.onFocus,y=e.onBlur,x=e.onPressEnter,w=e.onKeyDown,C=e.onKeyUp,S=e.prefixCls,E=void 0===S?"rc-input":S,k=e.disabled,I=e.htmlSize,j=e.className,N=e.maxLength,M=e.suffix,Z=e.showCount,O=e.count,$=e.type,A=void 0===$?"text":$,z=e.classes,T=e.classNames,P=e.styles,L=e.onCompositionStart,R=e.onCompositionEnd,B=(0,m.Z)(e,b),D=(0,s.useState)(!1),H=(0,p.Z)(D,2),W=H[0],F=H[1],K=(0,s.useRef)(!1),V=(0,s.useRef)(!1),q=(0,s.useRef)(null),X=(0,s.useRef)(null),G=function(e){q.current&&(0,u.nH)(q.current,e)},Q=(0,g.Z)(e.defaultValue,{value:e.value}),_=(0,p.Z)(Q,2),U=_[0],Y=_[1],J=null==U?"":String(U),ee=(0,s.useState)(null),te=(0,p.Z)(ee,2),ne=te[0],oe=te[1],re=(0,v.Z)(O,Z),ie=re.max||N,ae=re.strategy(J),le=!!ie&&ae>ie;(0,s.useImperativeHandle)(t,(function(){var e;return{focus:G,blur:function(){var e;null===(e=q.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=q.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=q.current)||void 0===e||e.select()},input:q.current,nativeElement:(null===(e=X.current)||void 0===e?void 0:e.nativeElement)||q.current}})),(0,s.useEffect)((function(){V.current&&(V.current=!1),F((function(e){return(!e||!k)&&e}))}),[k]);var ce=function(e,t,n){var o,r,i=t;if(!K.current&&re.exceedFormatter&&re.max&&re.strategy(t)>re.max)t!==(i=re.exceedFormatter(t,{max:re.max}))&&oe([(null===(o=q.current)||void 0===o?void 0:o.selectionStart)||0,(null===(r=q.current)||void 0===r?void 0:r.selectionEnd)||0]);else if("compositionEnd"===n.source)return;Y(i),q.current&&(0,u.rJ)(q.current,e,a,i)};(0,s.useEffect)((function(){var e;ne&&(null===(e=q.current)||void 0===e||e.setSelectionRange.apply(e,(0,f.Z)(ne)))}),[ne]);var se,ue=function(e){ce(e,e.target.value,{source:"change"})},de=function(e){K.current=!1,ce(e,e.currentTarget.value,{source:"compositionEnd"}),null==R||R(e)},fe=function(e){x&&"Enter"===e.key&&!V.current&&(V.current=!0,x(e)),null==w||w(e)},pe=function(e){"Enter"===e.key&&(V.current=!1),null==C||C(e)},me=function(e){F(!0),null==l||l(e)},ge=function(e){V.current&&(V.current=!1),F(!1),null==y||y(e)},he=le&&"".concat(E,"-out-of-range");return s.createElement(d,(0,r.Z)({},B,{prefixCls:E,className:c()(j,he),handleReset:function(e){Y(""),G(),q.current&&(0,u.rJ)(q.current,e,a)},value:J,focused:W,triggerFocus:G,suffix:function(){var e=Number(ie)>0;if(M||re.show){var t=re.showFormatter?re.showFormatter({value:J,count:ae,maxLength:ie}):"".concat(ae).concat(e?" / ".concat(ie):"");return s.createElement(s.Fragment,null,re.show&&s.createElement("span",{className:c()("".concat(E,"-show-count-suffix"),(0,i.Z)({},"".concat(E,"-show-count-has-suffix"),!!M),null==T?void 0:T.count),style:(0,o.Z)({},null==P?void 0:P.count)},t),M)}return null}(),disabled:k,classes:z,classNames:T,styles:P}),(se=(0,h.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),s.createElement("input",(0,r.Z)({autoComplete:n},se,{onChange:ue,onFocus:me,onBlur:ge,onKeyDown:fe,onKeyUp:pe,className:c()(E,(0,i.Z)({},"".concat(E,"-disabled"),k),null==T?void 0:T.input),style:null==P?void 0:P.input,ref:q,size:I,type:A,onCompositionStart:function(e){K.current=!0,null==L||L(e)},onCompositionEnd:de}))))}))},30292:function(e,t,n){function o(e){return!(!e.addonBefore&&!e.addonAfter)}function r(e){return!!(e.prefix||e.suffix||e.allowClear)}function i(e,t,n){var o=t.cloneNode(!0),r=Object.create(e,{target:{value:o},currentTarget:{value:o}});return o.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(o.selectionStart=t.selectionStart,o.selectionEnd=t.selectionEnd),o.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},r}function a(e,t,n,o){if(n){var r=t;"click"!==t.type?"file"===e.type||void 0===o?n(r):n(r=i(t,e,o)):n(r=i(t,e,""))}}function l(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}n.d(t,{He:function(){return o},X3:function(){return r},nH:function(){return l},rJ:function(){return a}})},28321:function(e,t,n){n.d(t,{iz:function(){return De},ck:function(){return ye},BW:function(){return Fe},sN:function(){return ye},Wd:function(){return Re},ZP:function(){return Ue},Xl:function(){return N}});var o=n(14809),r=n(4635),i=n(20439),a=n(95190),l=n(50298),c=n(62646),s=n(92310),u=n.n(s),d=n(11780),f=n(18929),p=n(13697),m=n(48736),g=n(59301),h=n(4676),v=g.createContext(null);function b(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function y(e){return b(g.useContext(v),e)}var x=n(80547),w=["children","locked"],C=g.createContext(null);function S(e){var t=e.children,n=e.locked,o=(0,c.Z)(e,w),r=g.useContext(C),a=(0,x.Z)((function(){return e=r,t=o,n=(0,i.Z)({},e),Object.keys(t).forEach((function(e){var o=t[e];void 0!==o&&(n[e]=o)})),n;var e,t,n}),[r,o],(function(e,t){return!(n||e[0]===t[0]&&(0,p.Z)(e[1],t[1],!0))}));return g.createElement(C.Provider,{value:a},t)}var E=[],k=g.createContext(null);function I(){return g.useContext(k)}var j=g.createContext(E);function N(e){var t=g.useContext(j);return g.useMemo((function(){return void 0!==e?[].concat((0,a.Z)(t),[e]):t}),[t,e])}var M=g.createContext(null),Z=g.createContext({}),O=n(29194);function $(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,O.Z)(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),a=null;return r&&!Number.isNaN(i)?a=i:o&&null===a&&(a=0),o&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function A(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,a.Z)(e.querySelectorAll("*")).filter((function(e){return $(e,t)}));return $(e,t)&&n.unshift(e),n}var z=n(10228),T=n(16089),P=z.Z.LEFT,L=z.Z.RIGHT,R=z.Z.UP,B=z.Z.DOWN,D=z.Z.ENTER,H=z.Z.ESC,W=z.Z.HOME,F=z.Z.END,K=[R,B,P,L];function V(e,t){return A(e,!0).filter((function(e){return t.has(e)}))}function q(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=V(e,t),i=r.length,a=r.findIndex((function(e){return n===e}));return o<0?-1===a?a=i-1:a-=1:o>0&&(a+=1),r[a=(a+i)%i]}var X=function(e,t){var n=new Set,o=new Map,r=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(b(t,e),"']"));i&&(n.add(i),r.set(i,e),o.set(e,i))})),{elements:n,key2element:o,element2key:r}};function G(e,t,n,o,i,a,l,c,s,u){var d=g.useRef(),f=g.useRef();f.current=t;var p=function(){T.Z.cancel(d.current)};return g.useEffect((function(){return function(){p()}}),[]),function(m){var g=m.which;if([].concat(K,[D,H,W,F]).includes(g)){var h=a(),v=X(h,o),b=v,y=b.elements,x=b.key2element,w=b.element2key,C=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(x.get(t),y),S=w.get(C),E=function(e,t,n,o){var i,a="prev",l="next",c="children",s="parent";if("inline"===e&&o===D)return{inlineTrigger:!0};var u=(0,r.Z)((0,r.Z)({},R,a),B,l),d=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},P,n?l:a),L,n?a:l),B,c),D,c),f=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},R,a),B,l),D,c),H,s),P,n?c:s),L,n?s:c);switch(null===(i={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f}["".concat(e).concat(t?"":"Sub")])||void 0===i?void 0:i[o]){case a:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}(e,1===l(S,!0).length,n,g);if(!E&&g!==W&&g!==F)return;(K.includes(g)||[W,F].includes(g))&&m.preventDefault();var k=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var o=w.get(e);c(o),p(),d.current=(0,T.Z)((function(){f.current===o&&t.focus()}))}};if([W,F].includes(g)||E.sibling||!C){var I,j,N=V(I=C&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(C):i.current,y);j=g===W?N[0]:g===F?N[N.length-1]:q(I,y,C,E.offset),k(j)}else if(E.inlineTrigger)s(S);else if(E.offset>0)s(S,!0),p(),d.current=(0,T.Z)((function(){v=X(h,o);var e=C.getAttribute("aria-controls"),t=q(document.getElementById(e),v.elements);k(t)}),5);else if(E.offset<0){var M=l(S,!0),Z=M[M.length-2],O=x.get(Z);s(Z,!1),k(O)}}null==u||u(m)}}var Q="__RC_UTIL_PATH_SPLIT__",_=function(e){return e.join(Q)},U="rc-menu-more";function Y(){var e=g.useState({}),t=(0,l.Z)(e,2)[1],n=(0,g.useRef)(new Map),o=(0,g.useRef)(new Map),r=g.useState([]),i=(0,l.Z)(r,2),c=i[0],s=i[1],u=(0,g.useRef)(0),d=(0,g.useRef)(!1),f=(0,g.useCallback)((function(e,r){var i=_(r);o.current.set(i,e),n.current.set(e,i),u.current+=1;var a,l=u.current;a=function(){l===u.current&&(d.current||t({}))},Promise.resolve().then(a)}),[]),p=(0,g.useCallback)((function(e,t){var r=_(t);o.current.delete(r),n.current.delete(e)}),[]),m=(0,g.useCallback)((function(e){s(e)}),[]),h=(0,g.useCallback)((function(e,t){var o=n.current.get(e)||"",r=o.split(Q);return t&&c.includes(r[0])&&r.unshift(U),r}),[c]),v=(0,g.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return h(e,!0).includes(t)}))}),[h]),b=(0,g.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(Q),r=new Set;return(0,a.Z)(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return g.useEffect((function(){return function(){d.current=!0}}),[]),{registerPath:f,unregisterPath:p,refreshOverflowKeys:m,isSubPathKey:v,getKeyPath:h,getKeys:function(){var e=(0,a.Z)(n.current.keys());return c.length&&e.push(U),e},getSubPathKeys:b}}function J(e){var t=g.useRef(e);t.current=e;var n=g.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r1&&(E.motionAppear=!1);var k=E.onVisibleChanged;return E.onVisibleChanged=function(e){return h.current||e||x(!0),null==k?void 0:k(e)},y?null:g.createElement(S,{mode:c,locked:!h.current},g.createElement(Ae.ZP,(0,o.Z)({visible:w},E,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),(function(e){var n=e.className,o=e.style;return g.createElement(Se,{id:t,className:n,style:o},a)})))}var Te=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Pe=["active"],Le=g.forwardRef((function(e,t){var n=e.style,a=e.className,s=e.title,f=e.eventKey,p=(e.warnKey,e.disabled),m=e.internalPopupClose,h=e.children,v=e.itemIcon,b=e.expandIcon,x=e.popupClassName,w=e.popupOffset,E=e.popupStyle,k=e.onClick,I=e.onMouseEnter,j=e.onMouseLeave,O=e.onTitleClick,$=e.onTitleMouseEnter,A=e.onTitleMouseLeave,z=(0,c.Z)(e,Te),T=y(f),P=g.useContext(C),L=P.prefixCls,R=P.mode,B=P.openKeys,D=P.disabled,H=P.overflowDisabled,W=P.activeKey,F=P.selectedKeys,K=P.itemIcon,V=P.expandIcon,q=P.onItemClick,X=P.onOpenChange,G=P.onActive,Q=g.useContext(Z)._internalRenderSubMenuItem,_=g.useContext(M).isSubPathKey,U=N(),Y="".concat(L,"-submenu"),ee=D||p,te=g.useRef(),ne=g.useRef();var oe=null!=v?v:K,re=null!=b?b:V,ie=B.includes(f),ae=!H&&ie,le=_(F,f),de=ce(f,ee,$,A),pe=de.active,me=(0,c.Z)(de,Pe),ge=g.useState(!1),he=(0,l.Z)(ge,2),ve=he[0],be=he[1],ye=function(e){ee||be(e)},xe=g.useMemo((function(){return pe||"inline"!==R&&(ve||_([W],f))}),[R,pe,W,ve,f,_]),we=se(U.length),Ce=J((function(e){null==k||k(fe(e)),q(e)})),Ee=T&&"".concat(T,"-popup"),ke=g.useMemo((function(){return g.createElement(ue,{icon:"horizontal"!==R?re:void 0,props:(0,i.Z)((0,i.Z)({},e),{},{isOpen:ae,isSubMenu:!0})},g.createElement("i",{className:"".concat(Y,"-arrow")}))}),[R,re,e,ae,Y]),Ie=g.createElement("div",(0,o.Z)({role:"menuitem",style:we,className:"".concat(Y,"-title"),tabIndex:ee?null:-1,ref:te,title:"string"==typeof s?s:null,"data-menu-id":H&&T?null:T,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":Ee,"aria-disabled":ee,onClick:function(e){ee||(null==O||O({key:f,domEvent:e}),"inline"===R&&X(f,!ie))},onFocus:function(){G(f)}},me),s,ke),je=g.useRef(R);if("inline"!==R&&U.length>1?je.current="vertical":je.current=R,!H){var Ne=je.current;Ie=g.createElement($e,{mode:Ne,prefixCls:Y,visible:!m&&ae&&"inline"!==R,popupClassName:x,popupOffset:w,popupStyle:E,popup:g.createElement(S,{mode:"horizontal"===Ne?"vertical":Ne},g.createElement(Se,{id:Ee,ref:ne},h)),disabled:ee,onVisibleChange:function(e){"inline"!==R&&X(f,e)}},Ie)}var Me=g.createElement(d.Z.Item,(0,o.Z)({ref:t,role:"none"},z,{component:"li",style:n,className:u()(Y,"".concat(Y,"-").concat(R),a,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(Y,"-open"),ae),"".concat(Y,"-active"),xe),"".concat(Y,"-selected"),le),"".concat(Y,"-disabled"),ee)),onMouseEnter:function(e){ye(!0),null==I||I({key:f,domEvent:e})},onMouseLeave:function(e){ye(!1),null==j||j({key:f,domEvent:e})}}),Ie,!H&&g.createElement(ze,{id:Ee,open:ae,keyPath:U},h));return Q&&(Me=Q(Me,e,{selected:le,active:xe,open:ae,disabled:ee})),g.createElement(S,{onItemClick:Ce,mode:"horizontal"===R?"vertical":R,itemIcon:oe,expandIcon:re},Me)}));var Re=g.forwardRef((function(e,t){var n,r=e.eventKey,i=e.children,a=N(r),l=ke(i,a),c=I();return g.useEffect((function(){if(c)return c.registerPath(r,a),function(){c.unregisterPath(r,a)}}),[a]),n=c?l:g.createElement(Le,(0,o.Z)({ref:t},e),l),g.createElement(j.Provider,{value:a},n)})),Be=n(93664);function De(e){var t=e.className,n=e.style,o=g.useContext(C).prefixCls;return I()?null:g.createElement("li",{role:"separator",className:u()("".concat(o,"-item-divider"),t),style:n})}var He=["className","title","eventKey","children"],We=g.forwardRef((function(e,t){var n=e.className,r=e.title,i=(e.eventKey,e.children),a=(0,c.Z)(e,He),l=g.useContext(C).prefixCls,s="".concat(l,"-item-group");return g.createElement("li",(0,o.Z)({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:u()(s,n)}),g.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:"string"==typeof r?r:void 0},r),g.createElement("ul",{role:"group",className:"".concat(s,"-list")},i))}));var Fe=g.forwardRef((function(e,t){var n=e.eventKey,r=ke(e.children,N(n));return I()?r:g.createElement(We,(0,o.Z)({ref:t},(0,ae.Z)(e,["warnKey"])),r)})),Ke=["label","children","key","type","extra"];function Ve(e,t,n){var r=t.item,i=t.group,a=t.submenu,l=t.divider;return(e||[]).map((function(e,s){if(e&&"object"===(0,Be.Z)(e)){var u=e,d=u.label,f=u.children,p=u.key,m=u.type,h=u.extra,v=(0,c.Z)(u,Ke),b=null!=p?p:"tmp-".concat(s);return f||"group"===m?"group"===m?g.createElement(i,(0,o.Z)({key:b},v,{title:d}),Ve(f,t,n)):g.createElement(a,(0,o.Z)({key:b},v,{title:d}),Ve(f,t,n)):"divider"===m?g.createElement(l,(0,o.Z)({key:b},v)):g.createElement(r,(0,o.Z)({key:b},v,{extra:h}),d,(!!h||0===h)&&g.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null})).filter((function(e){return e}))}function qe(e,t,n,o,r){var a=e,l=(0,i.Z)({divider:De,item:ye,group:Fe,submenu:Re},o);return t&&(a=Ve(t,l,r)),ke(a,n)}var Xe=["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"],Ge=[],Qe=g.forwardRef((function(e,t){var n,s=e,m=s.prefixCls,b=void 0===m?"rc-menu":m,y=s.rootClassName,x=s.style,w=s.className,C=s.tabIndex,E=void 0===C?0:C,I=s.items,j=s.children,N=s.direction,O=s.id,$=s.mode,A=void 0===$?"vertical":$,z=s.inlineCollapsed,T=s.disabled,P=s.disabledOverflow,L=s.subMenuOpenDelay,R=void 0===L?.1:L,B=s.subMenuCloseDelay,D=void 0===B?.1:B,H=s.forceSubMenuRender,W=s.defaultOpenKeys,F=s.openKeys,K=s.activeKey,q=s.defaultActiveFirst,Q=s.selectable,_=void 0===Q||Q,ne=s.multiple,oe=void 0!==ne&&ne,re=s.defaultSelectedKeys,ie=s.selectedKeys,ae=s.onSelect,le=s.onDeselect,ce=s.inlineIndent,se=void 0===ce?24:ce,ue=s.motion,de=s.defaultMotions,pe=s.triggerSubMenuAction,me=void 0===pe?"hover":pe,ge=s.builtinPlacements,he=s.itemIcon,ve=s.expandIcon,be=s.overflowedIndicator,xe=void 0===be?"...":be,we=s.overflowedIndicatorPopupClassName,Ce=s.getPopupContainer,Se=s.onClick,Ee=s.onOpenChange,ke=s.onKeyDown,Ie=(s.openAnimation,s.openTransitionName,s._internalRenderMenuItem),je=s._internalRenderSubMenuItem,Ne=s._internalComponents,Me=(0,c.Z)(s,Xe),Ze=g.useMemo((function(){return[qe(j,I,Ge,Ne,b),qe(j,I,Ge,{},b)]}),[j,I,Ne]),Oe=(0,l.Z)(Ze,2),$e=Oe[0],Ae=Oe[1],ze=g.useState(!1),Te=(0,l.Z)(ze,2),Pe=Te[0],Le=Te[1],Be=g.useRef(),De=function(e){var t=(0,f.Z)(e,{value:e}),n=(0,l.Z)(t,2),o=n[0],r=n[1];return g.useEffect((function(){te+=1;var e="".concat(ee,"-").concat(te);r("rc-menu-uuid-".concat(e))}),[]),o}(O),He="rtl"===N;var We=(0,f.Z)(W,{value:F,postState:function(e){return e||Ge}}),Fe=(0,l.Z)(We,2),Ke=Fe[0],Ve=Fe[1],Qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){Ve(e),null==Ee||Ee(e)}t?(0,h.flushSync)(n):n()},_e=g.useState(Ke),Ue=(0,l.Z)(_e,2),Ye=Ue[0],Je=Ue[1],et=g.useRef(!1),tt=g.useMemo((function(){return"inline"!==A&&"vertical"!==A||!z?[A,!1]:["vertical",z]}),[A,z]),nt=(0,l.Z)(tt,2),ot=nt[0],rt=nt[1],it="inline"===ot,at=g.useState(ot),lt=(0,l.Z)(at,2),ct=lt[0],st=lt[1],ut=g.useState(rt),dt=(0,l.Z)(ut,2),ft=dt[0],pt=dt[1];g.useEffect((function(){st(ot),pt(rt),et.current&&(it?Ve(Ye):Qe(Ge))}),[ot,rt]);var mt=g.useState(0),gt=(0,l.Z)(mt,2),ht=gt[0],vt=gt[1],bt=ht>=$e.length-1||"horizontal"!==ct||P;g.useEffect((function(){it&&Je(Ke)}),[Ke]),g.useEffect((function(){return et.current=!0,function(){et.current=!1}}),[]);var yt=Y(),xt=yt.registerPath,wt=yt.unregisterPath,Ct=yt.refreshOverflowKeys,St=yt.isSubPathKey,Et=yt.getKeyPath,kt=yt.getKeys,It=yt.getSubPathKeys,jt=g.useMemo((function(){return{registerPath:xt,unregisterPath:wt}}),[xt,wt]),Nt=g.useMemo((function(){return{isSubPathKey:St}}),[St]);g.useEffect((function(){Ct(bt?Ge:$e.slice(ht+1).map((function(e){return e.key})))}),[ht,bt]);var Mt=(0,f.Z)(K||q&&(null===(n=$e[0])||void 0===n?void 0:n.key),{value:K}),Zt=(0,l.Z)(Mt,2),Ot=Zt[0],$t=Zt[1],At=J((function(e){$t(e)})),zt=J((function(){$t(void 0)}));(0,g.useImperativeHandle)(t,(function(){return{list:Be.current,focus:function(e){var t,n,o=kt(),r=X(o,De),i=r.elements,a=r.key2element,l=r.element2key,c=V(Be.current,i),s=null!=Ot?Ot:c[0]?l.get(c[0]):null===(t=$e.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var Tt=(0,f.Z)(re||[],{value:ie,postState:function(e){return Array.isArray(e)?e:null==e?Ge:[e]}}),Pt=(0,l.Z)(Tt,2),Lt=Pt[0],Rt=Pt[1],Bt=J((function(e){null==Se||Se(fe(e)),function(e){if(_){var t,n=e.key,o=Lt.includes(n);t=oe?o?Lt.filter((function(e){return e!==n})):[].concat((0,a.Z)(Lt),[n]):[n],Rt(t);var r=(0,i.Z)((0,i.Z)({},e),{},{selectedKeys:t});o?null==le||le(r):null==ae||ae(r)}!oe&&Ke.length&&"inline"!==ct&&Qe(Ge)}(e)})),Dt=J((function(e,t){var n=Ke.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==ct){var o=It(e);n=n.filter((function(e){return!o.has(e)}))}(0,p.Z)(Ke,n,!0)||Qe(n,!0)})),Ht=G(ct,Ot,He,De,Be,kt,Et,$t,(function(e,t){var n=null!=t?t:!Ke.includes(e);Dt(e,n)}),ke);g.useEffect((function(){Le(!0)}),[]);var Wt=g.useMemo((function(){return{_internalRenderMenuItem:Ie,_internalRenderSubMenuItem:je}}),[Ie,je]),Ft="horizontal"!==ct||P?$e:$e.map((function(e,t){return g.createElement(S,{key:e.key,overflowDisabled:t>ht},e)})),Kt=g.createElement(d.Z,(0,o.Z)({id:O,ref:Be,prefixCls:"".concat(b,"-overflow"),component:"ul",itemComponent:ye,className:u()(b,"".concat(b,"-root"),"".concat(b,"-").concat(ct),w,(0,r.Z)((0,r.Z)({},"".concat(b,"-inline-collapsed"),ft),"".concat(b,"-rtl"),He),y),dir:N,style:x,role:"menu",tabIndex:E,data:Ft,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?$e.slice(-t):null;return g.createElement(Re,{eventKey:U,title:xe,disabled:bt,internalPopupClose:0===t,popupClassName:we},n)},maxCount:"horizontal"!==ct||P?d.Z.INVALIDATE:d.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){vt(e)},onKeyDown:Ht},Me));return g.createElement(Z.Provider,{value:Wt},g.createElement(v.Provider,{value:De},g.createElement(S,{prefixCls:b,rootClassName:y,mode:ct,openKeys:Ke,rtl:He,disabled:T,motion:Pe?ue:null,defaultMotions:Pe?de:null,activeKey:Ot,onActive:At,onInactive:zt,selectedKeys:Lt,inlineIndent:se,subMenuOpenDelay:R,subMenuCloseDelay:D,forceSubMenuRender:H,builtinPlacements:ge,triggerSubMenuAction:me,getPopupContainer:Ce,itemIcon:he,expandIcon:ve,onItemClick:Bt,onOpenChange:Dt},g.createElement(M.Provider,{value:Nt},Kt),g.createElement("div",{style:{display:"none"},"aria-hidden":!0},g.createElement(k.Provider,{value:jt},Ae)))))})),_e=Qe;_e.Item=ye,_e.SubMenu=Re,_e.ItemGroup=Fe,_e.Divider=De;var Ue=_e},11780:function(e,t,n){n.d(t,{Z:function(){return T}});var o=n(14809),r=n(20439),i=n(50298),a=n(62646),l=n(59301),c=n(92310),s=n.n(c),u=n(29301),d=n(34280),f=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],p=void 0;function m(e,t){var n=e.prefixCls,i=e.invalidate,c=e.item,d=e.renderItem,m=e.responsive,g=e.responsiveDisabled,h=e.registerSize,v=e.itemKey,b=e.className,y=e.style,x=e.children,w=e.display,C=e.order,S=e.component,E=void 0===S?"div":S,k=(0,a.Z)(e,f),I=m&&!w;function j(e){h(v,e)}l.useEffect((function(){return function(){j(null)}}),[]);var N,M=d&&c!==p?d(c,{index:C}):x;i||(N={opacity:I?0:1,height:I?0:p,overflowY:I?"hidden":p,order:m?C:p,pointerEvents:I?"none":p,position:I?"absolute":p});var Z={};I&&(Z["aria-hidden"]=!0);var O=l.createElement(E,(0,o.Z)({className:s()(!i&&n,b),style:(0,r.Z)((0,r.Z)({},N),y)},Z,k,{ref:t}),M);return m&&(O=l.createElement(u.Z,{onResize:function(e){j(e.offsetWidth)},disabled:g},O)),O}var g=l.forwardRef(m);g.displayName="Item";var h=g,v=n(6089),b=n(4676),y=n(16089);function x(){var e=l.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,y.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,b.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function w(e,t){var n=l.useState(t),o=(0,i.Z)(n,2),r=o[0],a=o[1];return[r,(0,v.Z)((function(t){e((function(){a(t)}))}))]}var C=l.createContext(null),S=["component"],E=["className"],k=["className"],I=function(e,t){var n=l.useContext(C);if(!n){var r=e.component,i=void 0===r?"div":r,c=(0,a.Z)(e,S);return l.createElement(i,(0,o.Z)({},c,{ref:t}))}var u=n.className,d=(0,a.Z)(n,E),f=e.className,p=(0,a.Z)(e,k);return l.createElement(C.Provider,{value:null},l.createElement(h,(0,o.Z)({ref:t,className:s()(u,f)},d,p)))},j=l.forwardRef(I);j.displayName="RawItem";var N=j,M=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Z="responsive",O="invalidate";function $(e){return"+ ".concat(e.length," ...")}function A(e,t){var n=e.prefixCls,c=void 0===n?"rc-overflow":n,f=e.data,p=void 0===f?[]:f,m=e.renderItem,g=e.renderRawItem,v=e.itemKey,b=e.itemWidth,y=void 0===b?10:b,S=e.ssr,E=e.style,k=e.className,I=e.maxCount,j=e.renderRest,N=e.renderRawRest,A=e.suffix,z=e.component,T=void 0===z?"div":z,P=e.itemComponent,L=e.onVisibleChange,R=(0,a.Z)(e,M),B="full"===S,D=x(),H=w(D,null),W=(0,i.Z)(H,2),F=W[0],K=W[1],V=F||0,q=w(D,new Map),X=(0,i.Z)(q,2),G=X[0],Q=X[1],_=w(D,0),U=(0,i.Z)(_,2),Y=U[0],J=U[1],ee=w(D,0),te=(0,i.Z)(ee,2),ne=te[0],oe=te[1],re=w(D,0),ie=(0,i.Z)(re,2),ae=ie[0],le=ie[1],ce=(0,l.useState)(null),se=(0,i.Z)(ce,2),ue=se[0],de=se[1],fe=(0,l.useState)(null),pe=(0,i.Z)(fe,2),me=pe[0],ge=pe[1],he=l.useMemo((function(){return null===me&&B?Number.MAX_SAFE_INTEGER:me||0}),[me,F]),ve=(0,l.useState)(!1),be=(0,i.Z)(ve,2),ye=be[0],xe=be[1],we="".concat(c,"-item"),Ce=Math.max(Y,ne),Se=I===Z,Ee=p.length&&Se,ke=I===O,Ie=Ee||"number"==typeof I&&p.length>I,je=(0,l.useMemo)((function(){var e=p;return Ee?e=null===F&&B?p:p.slice(0,Math.min(p.length,V/y)):"number"==typeof I&&(e=p.slice(0,I)),e}),[p,y,F,I,Ee]),Ne=(0,l.useMemo)((function(){return Ee?p.slice(he+1):p.slice(je.length)}),[p,je,Ee,he]),Me=(0,l.useCallback)((function(e,t){var n;return"function"==typeof v?v(e):null!==(n=v&&(null==e?void 0:e[v]))&&void 0!==n?n:t}),[v]),Ze=(0,l.useCallback)(m||function(e){return e},[m]);function Oe(e,t,n){(me!==e||void 0!==t&&t!==ue)&&(ge(e),n||(xe(eV){Oe(o-1,e-r-ae+ne);break}}A&&Ae(0)+ae>V&&de(null)}}),[V,G,ne,ae,Me,je]);var ze=ye&&!!Ne.length,Te={};null!==ue&&Ee&&(Te={position:"absolute",left:ue,top:0});var Pe={prefixCls:we,responsive:Ee,component:P,invalidate:ke},Le=g?function(e,t){var n=Me(e,t);return l.createElement(C.Provider,{key:n,value:(0,r.Z)((0,r.Z)({},Pe),{},{order:t,item:e,itemKey:n,registerSize:$e,display:t<=he})},g(e,t))}:function(e,t){var n=Me(e,t);return l.createElement(h,(0,o.Z)({},Pe,{order:t,key:n,item:e,renderItem:Ze,itemKey:n,registerSize:$e,display:t<=he}))},Re={order:ze?he:Number.MAX_SAFE_INTEGER,className:"".concat(we,"-rest"),registerSize:function(e,t){oe(t),J(ne)},display:ze},Be=j||$,De=N?l.createElement(C.Provider,{value:(0,r.Z)((0,r.Z)({},Pe),Re)},N(Ne)):l.createElement(h,(0,o.Z)({},Pe,Re),"function"==typeof Be?Be(Ne):Be),He=l.createElement(T,(0,o.Z)({className:s()(!ke&&c,k),style:E,ref:t},R),je.map(Le),Ie?De:null,A&&l.createElement(h,(0,o.Z)({},Pe,{responsive:Se,responsiveDisabled:!Ee,order:he,className:"".concat(we,"-suffix"),registerSize:function(e,t){le(t)},display:!0,style:Te}),A));return Se?l.createElement(u.Z,{onResize:function(e,t){K(t.clientWidth)},disabled:!Ee},He):He}var z=l.forwardRef(A);z.displayName="Overflow",z.Item=N,z.RESPONSIVE=Z,z.INVALIDATE=O;var T=z},29301:function(e,t,n){n.d(t,{Z:function(){return S}});var o=n(14809),r=n(59301),i=n(11592),a=(n(48736),n(20439)),l=n(93664),c=n(76846),s=n(8654),u=r.createContext(null);var d=n(76374),f=new Map;var p=new d.Z((function(e){e.forEach((function(e){var t,n=e.target;null===(t=f.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var m=n(99153),g=n(84851),h=n(19257),v=n(93046),b=function(e){(0,h.Z)(n,e);var t=(0,v.Z)(n);function n(){return(0,m.Z)(this,n),t.apply(this,arguments)}return(0,g.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function y(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),d=r.useRef(null),m=r.useContext(u),g="function"==typeof n,h=g?n(i):n,v=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),y=!g&&r.isValidElement(h)&&(0,s.Yr)(h),x=y?(0,s.C4)(h):null,w=(0,s.x1)(x,i),C=function(){var e;return(0,c.ZP)(i.current)||(i.current&&"object"===(0,l.Z)(i.current)?(0,c.ZP)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,c.ZP)(d.current)};r.useImperativeHandle(t,(function(){return C()}));var S=r.useRef(e);S.current=e;var E=r.useCallback((function(e){var t=S.current,n=t.onResize,o=t.data,r=e.getBoundingClientRect(),i=r.width,l=r.height,c=e.offsetWidth,s=e.offsetHeight,u=Math.floor(i),d=Math.floor(l);if(v.current.width!==u||v.current.height!==d||v.current.offsetWidth!==c||v.current.offsetHeight!==s){var f={width:u,height:d,offsetWidth:c,offsetHeight:s};v.current=f;var p=c===Math.round(i)?i:c,g=s===Math.round(l)?l:s,h=(0,a.Z)((0,a.Z)({},f),{},{offsetWidth:p,offsetHeight:g});null==m||m(h,e,o),n&&Promise.resolve().then((function(){n(h,e)}))}}),[]);return r.useEffect((function(){var e,t,n=C();return n&&!o&&(e=n,t=E,f.has(e)||(f.set(e,new Set),p.observe(e)),f.get(e).add(t)),function(){return function(e,t){f.has(e)&&(f.get(e).delete(t),f.get(e).size||(p.unobserve(e),f.delete(e)))}(n,E)}}),[i.current,o]),r.createElement(b,{ref:d},y?r.cloneElement(h,{ref:w}):h)}var x=r.forwardRef(y);function w(e,t){var n=e.children;return("function"==typeof n?[n]:(0,i.Z)(n)).map((function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return r.createElement(x,(0,o.Z)({},e,{key:a,ref:0===i?t:void 0}),n)}))}var C=r.forwardRef(w);C.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(u),l=r.useCallback((function(e,t,r){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){l===o.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(u.Provider,{value:l},t)};var S=C},49658:function(e,t){t.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)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(null==e?void 0:e.substr(0,4))}},6790:function(e,t,n){n.d(t,{Z:function(){return R}});var o=n(14809),r=n(93664),i=n(20439),a=n(4635),l=n(50298),c=n(62646),s=n(92310),u=n.n(s),d=n(29301),f=n(70425),p=n(34280),m=n(59301),g=n(4676),h=m.forwardRef((function(e,t){var n=e.height,r=e.offsetY,l=e.offsetX,c=e.children,s=e.prefixCls,f=e.onInnerResize,p=e.innerProps,g=e.rtl,h=e.extra,v={},b={display:"flex",flexDirection:"column"};return void 0!==r&&(v={height:n,position:"relative",overflow:"hidden"},b=(0,i.Z)((0,i.Z)({},b),{},(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({transform:"translateY(".concat(r,"px)")},g?"marginRight":"marginLeft",-l),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:v},m.createElement(d.Z,{onResize:function(e){e.offsetHeight&&f&&f()}},m.createElement("div",(0,o.Z)({style:b,className:u()((0,a.Z)({},"".concat(s,"-holder-inner"),s)),ref:t},p),c,h)))}));h.displayName="Filler";var v=h;function b(e){var t=e.children,n=e.setRef,o=m.useCallback((function(e){n(e)}),[]);return m.cloneElement(t,{ref:o})}function y(e,t,n){var o=m.useState(e),r=(0,l.Z)(o,2),i=r[0],a=r[1],c=m.useState(null),s=(0,l.Z)(c,2),u=s[0],d=s[1];return m.useEffect((function(){var o=function(e,t,n){var o,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i2&&void 0!==arguments[2]&&arguments[2],o=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&o?(clearTimeout(i.current),r.current=!1):o&&!r.current||a(),!r.current&&o}};function S(e,t,n,o,r,i,a){var l=(0,m.useRef)(0),c=(0,m.useRef)(null),s=(0,m.useRef)(null),u=(0,m.useRef)(!1),d=C(t,n,o,r);var f=(0,m.useRef)(null),p=(0,m.useRef)(null);return[function(t){if(e){x.Z.cancel(p.current),p.current=(0,x.Z)((function(){f.current=null}),2);var n=t.deltaX,o=t.deltaY,r=t.shiftKey,m=n,g=o;("sx"===f.current||!f.current&&r&&o&&!n)&&(m=o,g=0,f.current="sx");var h=Math.abs(m),v=Math.abs(g);null===f.current&&(f.current=i&&h>v?"x":"y"),"y"===f.current?function(e,t){if(x.Z.cancel(c.current),!d(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,l.current+=t,s.current=t,w||n.preventDefault(),c.current=(0,x.Z)((function(){var e=u.current?10:1;a(l.current*e,!1),l.current=0})))}}(t,g):function(e,t){a(t,!0),w||e.preventDefault()}(t,m)}},function(t){e&&(u.current=t.detail===s.current)}]}var E=n(99153),k=n(84851),I=function(){function e(){(0,E.Z)(this,e),(0,a.Z)(this,"maps",void 0),(0,a.Z)(this,"id",0),(0,a.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,k.Z)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function j(e){var t=parseFloat(e);return isNaN(t)?0:t}var N=14/15;function M(e){return Math.floor(Math.pow(e,.5))}function Z(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var O=m.forwardRef((function(e,t){var n=e.prefixCls,o=e.rtl,r=e.scrollOffset,c=e.scrollRange,s=e.onStartMove,d=e.onStopMove,f=e.onScroll,p=e.horizontal,g=e.spinSize,h=e.containerSize,v=e.style,b=e.thumbStyle,y=e.showScrollBar,w=m.useState(!1),C=(0,l.Z)(w,2),S=C[0],E=C[1],k=m.useState(null),I=(0,l.Z)(k,2),j=I[0],N=I[1],M=m.useState(null),O=(0,l.Z)(M,2),$=O[0],A=O[1],z=!o,T=m.useRef(),P=m.useRef(),L=m.useState(y),R=(0,l.Z)(L,2),B=R[0],D=R[1],H=m.useRef(),W=function(){!0!==y&&!1!==y&&(clearTimeout(H.current),D(!0),H.current=setTimeout((function(){D(!1)}),3e3))},F=c-h||0,K=h-g||0,V=m.useMemo((function(){return 0===r||0===F?0:r/F*K}),[r,F,K]),q=m.useRef({top:V,dragging:S,pageY:j,startTop:$});q.current={top:V,dragging:S,pageY:j,startTop:$};var X=function(e){E(!0),N(Z(e,p)),A(q.current.top),s(),e.stopPropagation(),e.preventDefault()};m.useEffect((function(){var e=function(e){e.preventDefault()},t=T.current,n=P.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",X,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",X)}}),[]);var G=m.useRef();G.current=F;var Q=m.useRef();Q.current=K,m.useEffect((function(){if(S){var e,t=function(t){var n=q.current,o=n.dragging,r=n.pageY,i=n.startTop;x.Z.cancel(e);var a=T.current.getBoundingClientRect(),l=h/(p?a.width:a.height);if(o){var c=(Z(t,p)-r)*l,s=i;!z&&p?s-=c:s+=c;var u=G.current,d=Q.current,m=d?s/d:0,g=Math.ceil(m*u);g=Math.max(g,0),g=Math.min(g,u),e=(0,x.Z)((function(){f(g,p)}))}},n=function(){E(!1),d()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),x.Z.cancel(e)}}}),[S]),m.useEffect((function(){return W(),function(){clearTimeout(H.current)}}),[r]),m.useImperativeHandle(t,(function(){return{delayHidden:W}}));var _="".concat(n,"-scrollbar"),U={position:"absolute",visibility:B?null:"hidden"},Y={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return p?(Object.assign(U,{height:8,left:0,right:0,bottom:0}),Object.assign(Y,(0,a.Z)({height:"100%",width:g},z?"left":"right",V))):(Object.assign(U,(0,a.Z)({width:8,top:0,bottom:0},z?"right":"left",0)),Object.assign(Y,{width:"100%",height:g,top:V})),m.createElement("div",{ref:T,className:u()(_,(0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(_,"-horizontal"),p),"".concat(_,"-vertical"),!p),"".concat(_,"-visible"),B)),style:(0,i.Z)((0,i.Z)({},U),v),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:W},m.createElement("div",{ref:P,className:u()("".concat(_,"-thumb"),(0,a.Z)({},"".concat(_,"-thumb-moving"),S)),style:(0,i.Z)((0,i.Z)({},Y),b),onMouseDown:X}))}));function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,20),Math.floor(n)}var A=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],z=[],T={overflowY:"auto",overflowAnchor:"none"};function P(e,t){var n=e.prefixCls,s=void 0===n?"rc-virtual-list":n,h=e.className,w=e.height,E=e.itemHeight,k=e.fullHeight,P=void 0===k||k,L=e.style,R=e.data,B=e.children,D=e.itemKey,H=e.virtual,W=e.direction,F=e.scrollWidth,K=e.component,V=void 0===K?"div":K,q=e.onScroll,X=e.onVirtualScroll,G=e.onVisibleChange,Q=e.innerProps,_=e.extraRender,U=e.styles,Y=e.showScrollBar,J=void 0===Y?"optional":Y,ee=(0,c.Z)(e,A),te=m.useCallback((function(e){return"function"==typeof D?D(e):null==e?void 0:e[D]}),[D]),ne=function(e,t,n){var o=m.useState(0),r=(0,l.Z)(o,2),i=r[0],a=r[1],c=(0,m.useRef)(new Map),s=(0,m.useRef)(new I),u=(0,m.useRef)(0);function d(){u.current+=1}function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){var e=!1;c.current.forEach((function(t,n){if(t&&t.offsetParent){var o=t.offsetHeight,r=getComputedStyle(t),i=r.marginTop,a=r.marginBottom,l=o+j(i)+j(a);s.current.get(n)!==l&&(s.current.set(n,l),e=!0)}})),e&&a((function(e){return e+1}))};if(e)t();else{u.current+=1;var n=u.current;Promise.resolve().then((function(){n===u.current&&t()}))}}return(0,m.useEffect)((function(){return d}),[]),[function(o,r){var i=e(o),a=c.current.get(i);r?(c.current.set(i,r),f()):c.current.delete(i),!a!=!r&&(r?null==t||t(o):null==n||n(o))},f,s.current,i]}(te,null,null),oe=(0,l.Z)(ne,4),re=oe[0],ie=oe[1],ae=oe[2],le=oe[3],ce=!(!1===H||!w||!E),se=m.useMemo((function(){return Object.values(ae.maps).reduce((function(e,t){return e+t}),0)}),[ae.id,ae.maps]),ue=ce&&R&&(Math.max(E*R.length,se)>w||!!F),de="rtl"===W,fe=u()(s,(0,a.Z)({},"".concat(s,"-rtl"),de),h),pe=R||z,me=(0,m.useRef)(),ge=(0,m.useRef)(),he=(0,m.useRef)(),ve=(0,m.useState)(0),be=(0,l.Z)(ve,2),ye=be[0],xe=be[1],we=(0,m.useState)(0),Ce=(0,l.Z)(we,2),Se=Ce[0],Ee=Ce[1],ke=(0,m.useState)(!1),Ie=(0,l.Z)(ke,2),je=Ie[0],Ne=Ie[1],Me=function(){Ne(!0)},Ze=function(){Ne(!1)},Oe={getKey:te};function $e(e){xe((function(t){var n=function(e){var t=e;Number.isNaN(Ue.current)||(t=Math.min(t,Ue.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return me.current.scrollTop=n,n}))}var Ae=(0,m.useRef)({start:0,end:pe.length}),ze=(0,m.useRef)(),Te=y(pe,te),Pe=(0,l.Z)(Te,1)[0];ze.current=Pe;var Le=m.useMemo((function(){if(!ce)return{scrollHeight:void 0,start:0,end:pe.length-1,offset:void 0};var e;if(!ue)return{scrollHeight:(null===(e=ge.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:pe.length-1,offset:void 0};for(var t,n,o,r=0,i=pe.length,a=0;a=ye&&void 0===t&&(t=a,n=r),u>ye+w&&void 0===o&&(o=a),r=u}return void 0===t&&(t=0,n=0,o=Math.ceil(w/E)),void 0===o&&(o=pe.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,pe.length-1),offset:n}}),[ue,ce,ye,pe,le,w]),Re=Le.scrollHeight,Be=Le.start,De=Le.end,He=Le.offset;Ae.current.start=Be,Ae.current.end=De,m.useLayoutEffect((function(){var e=ae.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),o=pe[Be];if(o&&void 0===n)if(te(o)===t){var r=ae.get(t)-E;$e((function(e){return e+r}))}}ae.resetRecord()}),[Re]);var We=m.useState({width:0,height:w}),Fe=(0,l.Z)(We,2),Ke=Fe[0],Ve=Fe[1],qe=(0,m.useRef)(),Xe=(0,m.useRef)(),Ge=m.useMemo((function(){return $(Ke.width,F)}),[Ke.width,F]),Qe=m.useMemo((function(){return $(Ke.height,Re)}),[Ke.height,Re]),_e=Re-w,Ue=(0,m.useRef)(_e);Ue.current=_e;var Ye=ye<=0,Je=ye>=_e,et=Se<=0,tt=Se>=F,nt=C(Ye,Je,et,tt),ot=function(){return{x:de?-Se:Se,y:ye}},rt=(0,m.useRef)(ot()),it=(0,f.zX)((function(e){if(X){var t=(0,i.Z)((0,i.Z)({},ot()),e);rt.current.x===t.x&&rt.current.y===t.y||(X(t),rt.current=t)}}));function at(e,t){var n=e;t?((0,g.flushSync)((function(){Ee(n)})),it()):$e(n)}var lt=function(e){var t=e,n=F?F-Ke.width:0;return t=Math.max(t,0),t=Math.min(t,n)},ct=(0,f.zX)((function(e,t){t?((0,g.flushSync)((function(){Ee((function(t){return lt(t+(de?-e:e))}))})),it()):$e((function(t){return t+e}))})),st=S(ce,Ye,Je,et,tt,!!F,ct),ut=(0,l.Z)(st,2),dt=ut[0],ft=ut[1];!function(e,t,n){var o,r=(0,m.useRef)(!1),i=(0,m.useRef)(0),a=(0,m.useRef)(0),l=(0,m.useRef)(null),c=(0,m.useRef)(null),s=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageX),o=Math.ceil(e.touches[0].pageY),l=i.current-t,s=a.current-o,u=Math.abs(l)>Math.abs(s);u?i.current=t:a.current=o;var d=n(u,u?l:s,!1,e);d&&e.preventDefault(),clearInterval(c.current),d&&(c.current=setInterval((function(){u?l*=N:s*=N;var e=Math.floor(u?l:s);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)}),16))}},u=function(){r.current=!1,o()},d=function(e){o(),1!==e.touches.length||r.current||(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",s,{passive:!1}),l.current.addEventListener("touchend",u,{passive:!0}))};o=function(){l.current&&(l.current.removeEventListener("touchmove",s),l.current.removeEventListener("touchend",u))},(0,p.Z)((function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),o(),clearInterval(c.current)}}),[e])}(ce,me,(function(e,t,n,o){var r=o;return!nt(e,t,n)&&((!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),dt({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),function(e,t,n){m.useEffect((function(){var o=t.current;if(e&&o){var r,i,a=!1,l=function(){x.Z.cancel(r)},c=function e(){l(),r=(0,x.Z)((function(){n(i),e()}))},s=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},u=function(){a=!1,l()},d=function(e){if(a){var t=Z(e,!1),n=o.getBoundingClientRect(),r=n.top,s=n.bottom;t<=r?(i=-M(r-t),c()):t>=s?(i=M(t-s),c()):l()}};return o.addEventListener("mousedown",s),o.ownerDocument.addEventListener("mouseup",u),o.ownerDocument.addEventListener("mousemove",d),function(){o.removeEventListener("mousedown",s),o.ownerDocument.removeEventListener("mouseup",u),o.ownerDocument.removeEventListener("mousemove",d),l()}}}),[e])}(ue,me,(function(e){$e((function(t){return t+e}))})),(0,p.Z)((function(){function e(e){var t=Ye&&e.detail<0,n=Je&&e.detail>0;!ce||t||n||e.preventDefault()}var t=me.current;return t.addEventListener("wheel",dt,{passive:!1}),t.addEventListener("DOMMouseScroll",ft,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",dt),t.removeEventListener("DOMMouseScroll",ft),t.removeEventListener("MozMousePixelScroll",e)}}),[ce,Ye,Je]),(0,p.Z)((function(){if(F){var e=lt(Se);Ee(e),it({x:e})}}),[Ke.width,F]);var pt=function(){var e,t;null===(e=qe.current)||void 0===e||e.delayHidden(),null===(t=Xe.current)||void 0===t||t.delayHidden()},mt=function(e,t,n,o,a,c,s,u){var d=m.useRef(),f=m.useState(null),g=(0,l.Z)(f,2),h=g[0],v=g[1];return(0,p.Z)((function(){if(h&&h.times<10){if(!e.current)return void v((function(e){return(0,i.Z)({},e)}));c();var r=h.targetAlign,l=h.originAlign,u=h.index,d=h.offset,f=e.current.clientHeight,p=!1,m=r,g=null;if(f){for(var b=r||l,y=0,x=0,w=0,C=Math.min(t.length-1,u),S=0;S<=C;S+=1){var E=a(t[S]);x=y;var k=n.get(E);y=w=x+(void 0===k?o:k)}for(var I="top"===b?d:f-d,j=C;j>=0;j-=1){var N=a(t[j]),M=n.get(N);if(void 0===M){p=!0;break}if((I-=M)<=0)break}switch(b){case"top":g=x-d;break;case"bottom":g=w-f+d;break;default:var Z=e.current.scrollTop;xZ+f&&(m="bottom")}null!==g&&s(g),g!==h.lastTop&&(p=!0)}p&&v((0,i.Z)((0,i.Z)({},h),{},{times:h.times+1,targetAlign:m,lastTop:g}))}}),[h,e.current]),function(e){if(null!=e){if(x.Z.cancel(d.current),"number"==typeof e)s(e);else if(e&&"object"===(0,r.Z)(e)){var n,o=e.align;n="index"in e?e.index:t.findIndex((function(t){return a(t)===e.key}));var i=e.offset;v({times:0,index:n,offset:void 0===i?0:i,originAlign:o})}}else u()}}(me,pe,ae,E,te,(function(){return ie(!0)}),$e,pt);m.useImperativeHandle(t,(function(){return{nativeElement:he.current,getScrollInfo:ot,scrollTo:function(e){var t;(t=e)&&"object"===(0,r.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Ee(lt(e.left)),mt(e.top)):mt(e)}}})),(0,p.Z)((function(){if(G){var e=pe.slice(Be,De+1);G(e,pe)}}),[Be,De,pe]);var gt=function(e,t,n,o){var r=m.useMemo((function(){return[new Map,[]]}),[e,n.id,o]),i=(0,l.Z)(r,2),a=i[0],c=i[1];return function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,l=a.get(r),s=a.get(i);if(void 0===l||void 0===s)for(var u=e.length,d=c.length;dw&&m.createElement(O,{ref:qe,prefixCls:s,scrollOffset:ye,scrollRange:Re,rtl:de,onScroll:at,onStartMove:Me,onStopMove:Ze,spinSize:Qe,containerSize:Ke.height,style:null==U?void 0:U.verticalScrollBar,thumbStyle:null==U?void 0:U.verticalScrollBarThumb,showScrollBar:J}),ue&&F>Ke.width&&m.createElement(O,{ref:Xe,prefixCls:s,scrollOffset:Se,scrollRange:F,rtl:de,onScroll:at,onStartMove:Me,onStopMove:Ze,spinSize:Ge,containerSize:Ke.width,horizontal:!0,style:null==U?void 0:U.horizontalScrollBar,thumbStyle:null==U?void 0:U.horizontalScrollBarThumb,showScrollBar:J}))}var L=m.forwardRef(P);L.displayName="List";var R=L},76374:function(e,t,n){var o=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,o=Object.keys(t);n0},e}(),C="undefined"!=typeof WeakMap?new WeakMap:new o,S=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),o=new w(t,n,this);C.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){S.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}}));var E=void 0!==i.ResizeObserver?i.ResizeObserver:S;t.Z=E},32637:function(e,t,n){e.exports=n.p+"static/AssistantCode3.a8740efb.jpeg"}}]); \ No newline at end of file diff --git a/layouts__index.8516850e.async.js b/layouts__index.8516850e.async.js deleted file mode 100644 index 749002b083..0000000000 --- a/layouts__index.8516850e.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1717],{40001:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(14809),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(7657),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},84105:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(14809),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(7657),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},18785:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(14809),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(7657),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},15277:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(14809),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=n(7657),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},33853:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(14809),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(7657),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},38819:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(14809),r=n(59301),i={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"},a=n(7657),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},47472:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(14809),r=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n(7657),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var c=r.forwardRef(l)},65352:function(e,t,n){n.d(t,{Z:function(){return X}});var o=n(20439),r=n(50298),i=n(62646),a=n(43403),l=n(92310),c=n.n(l),s=n(29301),u=n(76846),d=n(96452),f=n(6089),p=n(80402),m=n(34280),g=n(49658),h=n(59301),v=n(14809),b=n(77900),y=n(8654);function x(e){var t=e.prefixCls,n=e.align,o=e.arrow,r=e.arrowPos,i=o||{},a=i.className,l=i.content,s=r.x,u=void 0===s?0:s,d=r.y,f=void 0===d?0:d,p=h.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],v=n.points[1],b=g[0],y=g[1],x=v[0],w=v[1];b!==x&&["t","b"].includes(b)?"t"===b?m.top=0:m.bottom=0:m.top=f,y!==w&&["l","r"].includes(y)?"l"===y?m.left=0:m.right=0:m.left=u}return h.createElement("div",{ref:p,className:c()("".concat(t,"-arrow"),a),style:m},l)}function w(e){var t=e.prefixCls,n=e.open,o=e.zIndex,r=e.mask,i=e.motion;return r?h.createElement(b.ZP,(0,v.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return h.createElement("div",{style:{zIndex:o},className:c()("".concat(t,"-mask"),n)})})):null}var C=h.memo((function(e){return e.children}),(function(e,t){return t.cache}));var S=h.forwardRef((function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,l=e.style,u=e.target,d=e.onVisibleChanged,f=e.open,p=e.keepDom,g=e.fresh,S=e.onClick,E=e.mask,k=e.arrow,I=e.arrowPos,j=e.align,N=e.motion,M=e.maskMotion,Z=e.forceRender,O=e.getPopupContainer,$=e.autoDestroy,A=e.portal,z=e.zIndex,T=e.onMouseEnter,P=e.onMouseLeave,L=e.onPointerEnter,R=e.onPointerDownCapture,B=e.ready,D=e.offsetX,H=e.offsetY,W=e.offsetR,F=e.offsetB,K=e.onAlign,V=e.onPrepare,q=e.stretch,X=e.targetWidth,G=e.targetHeight,Q="function"==typeof n?n():n,_=f||p,U=(null==O?void 0:O.length)>0,Y=h.useState(!O||!U),J=(0,r.Z)(Y,2),ee=J[0],te=J[1];if((0,m.Z)((function(){!ee&&U&&u&&te(!0)}),[ee,U,u]),!ee)return null;var ne="auto",oe={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(B||!f){var re,ie=j.points,ae=j.dynamicInset||(null===(re=j._experimental)||void 0===re?void 0:re.dynamicInset),le=ae&&"r"===ie[0][1],ce=ae&&"b"===ie[0][0];le?(oe.right=W,oe.left=ne):(oe.left=D,oe.right=ne),ce?(oe.bottom=F,oe.top=ne):(oe.top=H,oe.bottom=ne)}var se={};return q&&(q.includes("height")&&G?se.height=G:q.includes("minHeight")&&G&&(se.minHeight=G),q.includes("width")&&X?se.width=X:q.includes("minWidth")&&X&&(se.minWidth=X)),f||(se.pointerEvents="none"),h.createElement(A,{open:Z||_,getContainer:O&&function(){return O(u)},autoDestroy:$},h.createElement(w,{prefixCls:a,open:f,zIndex:z,mask:E,motion:M}),h.createElement(s.Z,{onResize:K,disabled:!f},(function(e){return h.createElement(b.ZP,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Z,leavedClassName:"".concat(a,"-hidden")},N,{onAppearPrepare:V,onEnterPrepare:V,visible:f,onVisibleChanged:function(e){var t;null==N||null===(t=N.onVisibleChanged)||void 0===t||t.call(N,e),d(e)}}),(function(n,r){var s=n.className,u=n.style,d=c()(a,s,i);return h.createElement("div",{ref:(0,y.sQ)(e,t,r),className:d,style:(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({"--arrow-x":"".concat(I.x||0,"px"),"--arrow-y":"".concat(I.y||0,"px")},oe),se),u),{},{boxSizing:"border-box",zIndex:z},l),onMouseEnter:T,onMouseLeave:P,onPointerEnter:L,onClick:S,onPointerDownCapture:R},k&&h.createElement(x,{prefixCls:a,arrow:k,arrowPos:I,align:j}),h.createElement(C,{cache:!f&&!g},Q))}))})))}));var E=h.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,r=(0,y.Yr)(n),i=h.useCallback((function(e){(0,y.mH)(t,o?o(e):e)}),[o]),a=(0,y.x1)(i,(0,y.C4)(n));return r?h.cloneElement(n,{ref:a}):n})),k=h.createContext(null);function I(e){return e?Array.isArray(e)?e:[e]:[]}function j(e,t,n,o){return h.useMemo((function(){var r=I(null!=n?n:t),i=I(null!=o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}var N=n(29194);function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Z(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function T(e){return z(parseFloat(e),0)}function P(e,t){var n=(0,o.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=$(e).getComputedStyle(e),o=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=T(i),g=T(a),h=T(l),v=T(c),b=z(Math.round(s.width/f*1e3)/1e3),y=z(Math.round(s.height/u*1e3)/1e3),x=(f-p-h-v)*b,w=(u-d-m-g)*y,C=m*y,S=g*y,E=h*b,k=v*b,I=0,j=0;if("clip"===o){var N=T(r);I=N*b,j=N*y}var M=s.x+E-I,Z=s.y+C-j,O=M+s.width+2*I-E-k-x,A=Z+s.height+2*j-C-S-w;n.left=Math.max(n.left,M),n.top=Math.max(n.top,Z),n.right=Math.min(n.right,O),n.bottom=Math.min(n.bottom,A)}})),n}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),o=n.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(n)}function R(e,t){var n=t||[],o=(0,r.Z)(n,2),i=o[0],a=o[1];return[L(e.width,i),L(e.height,a)]}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function D(e,t){var n,o=t[0],r=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function H(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,o){return o===t?n[e]||"c":e})).join("")}function W(e,t,n,i,a,l,c){var s=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[i]||{}}),d=(0,r.Z)(s,2),p=d[0],g=d[1],v=h.useRef(0),b=h.useMemo((function(){return t?A(t):[]}),[t]),y=h.useRef({});e||(y.current={});var x=(0,f.Z)((function(){if(t&&n&&e){var s,d,f,p,m,h=t,v=h.ownerDocument,x=$(h).getComputedStyle(h),w=x.width,C=x.height,S=x.position,E=h.style.left,k=h.style.top,I=h.style.right,j=h.style.bottom,M=h.style.overflow,Z=(0,o.Z)((0,o.Z)({},a[i]),l),O=v.createElement("div");if(null===(s=h.parentElement)||void 0===s||s.appendChild(O),O.style.left="".concat(h.offsetLeft,"px"),O.style.top="".concat(h.offsetTop,"px"),O.style.position=S,O.style.height="".concat(h.offsetHeight,"px"),O.style.width="".concat(h.offsetWidth,"px"),h.style.left="0",h.style.top="0",h.style.right="auto",h.style.bottom="auto",h.style.overflow="hidden",Array.isArray(n))m={x:n[0],y:n[1],width:0,height:0};else{var A,T,L=n.getBoundingClientRect();L.x=null!==(A=L.x)&&void 0!==A?A:L.left,L.y=null!==(T=L.y)&&void 0!==T?T:L.top,m={x:L.x,y:L.y,width:L.width,height:L.height}}var W=h.getBoundingClientRect();W.x=null!==(d=W.x)&&void 0!==d?d:W.left,W.y=null!==(f=W.y)&&void 0!==f?f:W.top;var F=v.documentElement,K=F.clientWidth,V=F.clientHeight,q=F.scrollWidth,X=F.scrollHeight,G=F.scrollTop,Q=F.scrollLeft,_=W.height,U=W.width,Y=m.height,J=m.width,ee={left:0,top:0,right:K,bottom:V},te={left:-Q,top:-G,right:q-Q,bottom:X-G},ne=Z.htmlRegion,oe="visible",re="visibleFirst";"scroll"!==ne&&ne!==re&&(ne=oe);var ie=ne===re,ae=P(te,b),le=P(ee,b),ce=ne===oe?le:ae,se=ie?le:ce;h.style.left="auto",h.style.top="auto",h.style.right="0",h.style.bottom="0";var ue=h.getBoundingClientRect();h.style.left=E,h.style.top=k,h.style.right=I,h.style.bottom=j,h.style.overflow=M,null===(p=h.parentElement)||void 0===p||p.removeChild(O);var de=z(Math.round(U/parseFloat(w)*1e3)/1e3),fe=z(Math.round(_/parseFloat(C)*1e3)/1e3);if(0===de||0===fe||(0,u.Sh)(n)&&!(0,N.Z)(n))return;var pe=Z.offset,me=Z.targetOffset,ge=R(W,pe),he=(0,r.Z)(ge,2),ve=he[0],be=he[1],ye=R(m,me),xe=(0,r.Z)(ye,2),we=xe[0],Ce=xe[1];m.x-=we,m.y-=Ce;var Se=Z.points||[],Ee=(0,r.Z)(Se,2),ke=Ee[0],Ie=B(Ee[1]),je=B(ke),Ne=D(m,Ie),Me=D(W,je),Ze=(0,o.Z)({},Z),Oe=Ne.x-Me.x+ve,$e=Ne.y-Me.y+be;function kt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ce,o=W.x+e,r=W.y+t,i=o+U,a=r+_,l=Math.max(o,n.left),c=Math.max(r,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var Ae,ze,Te,Pe,Le=kt(Oe,$e),Re=kt(Oe,$e,le),Be=D(m,["t","l"]),De=D(W,["t","l"]),He=D(m,["b","r"]),We=D(W,["b","r"]),Fe=Z.overflow||{},Ke=Fe.adjustX,Ve=Fe.adjustY,qe=Fe.shiftX,Xe=Fe.shiftY,Ge=function(e){return"boolean"==typeof e?e:e>=0};function It(){Ae=W.y+$e,ze=Ae+_,Te=W.x+Oe,Pe=Te+U}It();var Qe=Ge(Ve),_e=je[0]===Ie[0];if(Qe&&"t"===je[0]&&(ze>se.bottom||y.current.bt)){var Ue=$e;_e?Ue-=_-Y:Ue=Be.y-We.y-be;var Ye=kt(Oe,Ue),Je=kt(Oe,Ue,le);Ye>Le||Ye===Le&&(!ie||Je>=Re)?(y.current.bt=!0,$e=Ue,be=-be,Ze.points=[H(je,0),H(Ie,0)]):y.current.bt=!1}if(Qe&&"b"===je[0]&&(AeLe||tt===Le&&(!ie||nt>=Re)?(y.current.tb=!0,$e=et,be=-be,Ze.points=[H(je,0),H(Ie,0)]):y.current.tb=!1}var ot=Ge(Ke),rt=je[1]===Ie[1];if(ot&&"l"===je[1]&&(Pe>se.right||y.current.rl)){var it=Oe;rt?it-=U-J:it=Be.x-We.x-ve;var at=kt(it,$e),lt=kt(it,$e,le);at>Le||at===Le&&(!ie||lt>=Re)?(y.current.rl=!0,Oe=it,ve=-ve,Ze.points=[H(je,1),H(Ie,1)]):y.current.rl=!1}if(ot&&"r"===je[1]&&(TeLe||st===Le&&(!ie||ut>=Re)?(y.current.lr=!0,Oe=ct,ve=-ve,Ze.points=[H(je,1),H(Ie,1)]):y.current.lr=!1}It();var dt=!0===qe?0:qe;"number"==typeof dt&&(Tele.right&&(Oe-=Pe-le.right-ve,m.x>le.right-dt&&(Oe+=m.x-le.right+dt)));var ft=!0===Xe?0:Xe;"number"==typeof ft&&(Aele.bottom&&($e-=ze-le.bottom-be,m.y>le.bottom-ft&&($e+=m.y-le.bottom+ft)));var pt=W.x+Oe,mt=pt+U,gt=W.y+$e,ht=gt+_,vt=m.x,bt=vt+J,yt=m.y,xt=yt+Y,wt=(Math.max(pt,vt)+Math.min(mt,bt))/2-pt,Ct=(Math.max(gt,yt)+Math.min(ht,xt))/2-gt;null==c||c(t,Ze);var St=ue.right-W.x-(Oe+W.width),Et=ue.bottom-W.y-($e+W.height);1===de&&(Oe=Math.round(Oe),St=Math.round(St)),1===fe&&($e=Math.round($e),Et=Math.round(Et)),g({ready:!0,offsetX:Oe/de,offsetY:$e/fe,offsetR:St/de,offsetB:Et/fe,arrowX:wt/de,arrowY:Ct/fe,scaleX:de,scaleY:fe,align:Ze})}})),w=function(){g((function(e){return(0,o.Z)((0,o.Z)({},e),{},{ready:!1})}))};return(0,m.Z)(w,[i]),(0,m.Z)((function(){e||w()}),[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,function(){v.current+=1;var e=v.current;Promise.resolve().then((function(){v.current===e&&x()}))}]}var F=n(95190);function K(e,t,n,o,r){(0,m.Z)((function(){if(e&&t&&n){var i=n,a=A(t),l=A(i),c=$(i),s=new Set([c].concat((0,F.Z)(a),(0,F.Z)(l)));function u(){o(),r()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),o(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}n(48736);function V(e,t,n,o,r,i,a,l){var c=h.useRef(e);c.current=e;var s=h.useRef(!1);return h.useEffect((function(){if(t&&o&&(!r||i)){var e=function(){s.current=!1},u=function(e){var t;!c.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||s.current||l(!1)},f=$(o);f.addEventListener("pointerdown",e,!0),f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0);var p=(0,d.A)(n);return p&&(p.addEventListener("mousedown",u,!0),p.addEventListener("contextmenu",u,!0)),function(){f.removeEventListener("pointerdown",e,!0),f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0),p&&(p.removeEventListener("mousedown",u,!0),p.removeEventListener("contextmenu",u,!0))}}}),[t,n,o,r,i]),function(){s.current=!0}}var q=["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"];var X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,t=h.forwardRef((function(t,n){var a=t.prefixCls,l=void 0===a?"rc-trigger-popup":a,v=t.children,b=t.action,y=void 0===b?"hover":b,x=t.showAction,w=t.hideAction,C=t.popupVisible,I=t.defaultPopupVisible,N=t.onPopupVisibleChange,M=t.afterPopupVisibleChange,$=t.mouseEnterDelay,A=t.mouseLeaveDelay,z=void 0===A?.1:A,T=t.focusDelay,P=t.blurDelay,L=t.mask,R=t.maskClosable,B=void 0===R||R,D=t.getPopupContainer,H=t.forceRender,F=t.autoDestroy,X=t.destroyPopupOnHide,G=t.popup,Q=t.popupClassName,_=t.popupStyle,U=t.popupPlacement,Y=t.builtinPlacements,J=void 0===Y?{}:Y,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,oe=t.getPopupClassNameFromAlign,re=t.fresh,ie=t.alignPoint,ae=t.onPopupClick,le=t.onPopupAlign,ce=t.arrow,se=t.popupMotion,ue=t.maskMotion,de=t.popupTransitionName,fe=t.popupAnimation,pe=t.maskTransitionName,me=t.maskAnimation,ge=t.className,he=t.getTriggerDOMNode,ve=(0,i.Z)(t,q),be=F||X||!1,ye=h.useState(!1),xe=(0,r.Z)(ye,2),we=xe[0],Ce=xe[1];(0,m.Z)((function(){Ce((0,g.Z)())}),[]);var Se=h.useRef({}),Ee=h.useContext(k),ke=h.useMemo((function(){return{registerSubPopup:function(e,t){Se.current[e]=t,null==Ee||Ee.registerSubPopup(e,t)}}}),[Ee]),Ie=(0,p.Z)(),je=h.useState(null),Ne=(0,r.Z)(je,2),Me=Ne[0],Ze=Ne[1],Oe=h.useRef(null),$e=(0,f.Z)((function(e){Oe.current=e,(0,u.Sh)(e)&&Me!==e&&Ze(e),null==Ee||Ee.registerSubPopup(Ie,e)})),Ae=h.useState(null),ze=(0,r.Z)(Ae,2),Te=ze[0],Pe=ze[1],Le=h.useRef(null),Re=(0,f.Z)((function(e){(0,u.Sh)(e)&&Te!==e&&(Pe(e),Le.current=e)})),Be=h.Children.only(v),De=(null==Be?void 0:Be.props)||{},He={},We=(0,f.Z)((function(e){var t,n,o=Te;return(null==o?void 0:o.contains(e))||(null===(t=(0,d.A)(o))||void 0===t?void 0:t.host)===e||e===o||(null==Me?void 0:Me.contains(e))||(null===(n=(0,d.A)(Me))||void 0===n?void 0:n.host)===e||e===Me||Object.values(Se.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Fe=O(l,se,fe,de),Ke=O(l,ue,me,pe),Ve=h.useState(I||!1),qe=(0,r.Z)(Ve,2),Xe=qe[0],Ge=qe[1],Qe=null!=C?C:Xe,_e=(0,f.Z)((function(e){void 0===C&&Ge(e)}));(0,m.Z)((function(){Ge(C||!1)}),[C]);var Ue=h.useRef(Qe);Ue.current=Qe;var Ye=h.useRef([]);Ye.current=[];var Je=(0,f.Z)((function(e){var t;_e(e),(null!==(t=Ye.current[Ye.current.length-1])&&void 0!==t?t:Qe)!==e&&(Ye.current.push(e),null==N||N(e))})),et=h.useRef(),tt=function(){clearTimeout(et.current)},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tt(),0===t?Je(e):et.current=setTimeout((function(){Je(e)}),1e3*t)};h.useEffect((function(){return tt}),[]);var ot=h.useState(!1),rt=(0,r.Z)(ot,2),it=rt[0],at=rt[1];(0,m.Z)((function(e){e&&!Qe||at(!0)}),[Qe]);var lt=h.useState(null),ct=(0,r.Z)(lt,2),st=ct[0],ut=ct[1],dt=h.useState(null),ft=(0,r.Z)(dt,2),pt=ft[0],mt=ft[1],gt=function(e){mt([e.clientX,e.clientY])},ht=W(Qe,Me,ie&&null!==pt?pt:Te,U,J,ee,le),vt=(0,r.Z)(ht,11),bt=vt[0],yt=vt[1],xt=vt[2],wt=vt[3],Ct=vt[4],St=vt[5],Et=vt[6],kt=vt[7],It=vt[8],jt=vt[9],Nt=vt[10],Mt=j(we,y,x,w),Zt=(0,r.Z)(Mt,2),Ot=Zt[0],$t=Zt[1],At=Ot.has("click"),zt=$t.has("click")||$t.has("contextMenu"),Tt=(0,f.Z)((function(){it||Nt()}));K(Qe,Te,Me,Tt,(function(){Ue.current&&ie&&zt&&nt(!1)})),(0,m.Z)((function(){Tt()}),[pt,U]),(0,m.Z)((function(){!Qe||null!=J&&J[U]||Tt()}),[JSON.stringify(ee)]);var Pt=h.useMemo((function(){var e=Z(J,l,jt,ie);return c()(e,null==oe?void 0:oe(jt))}),[jt,oe,J,l,ie]);h.useImperativeHandle(n,(function(){return{nativeElement:Le.current,popupElement:Oe.current,forceAlign:Tt}}));var Lt=h.useState(0),Rt=(0,r.Z)(Lt,2),Bt=Rt[0],Dt=Rt[1],Ht=h.useState(0),Wt=(0,r.Z)(Ht,2),Ft=Wt[0],Kt=Wt[1],Vt=function(){if(ne&&Te){var e=Te.getBoundingClientRect();Dt(e.width),Kt(e.height)}};function qt(e,t,n,o){He[e]=function(r){var i;null==o||o(r),nt(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c1?n-1:0),r=1;r1?n-1:0),r=1;r({background:e,border:`${(0,L.bf)(o.lineWidth)} ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),H=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:s,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},(0,R.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${s}, opacity ${n} ${s},\n padding-top ${n} ${s}, padding-bottom ${n} ${s},\n margin-bottom ${n} ${s}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:r,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},W=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:c,colorErrorBorder:s,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":D(r,o,n,e,t),"&-info":D(p,f,d,e,t),"&-warning":D(l,a,i,e,t),"&-error":Object.assign(Object.assign({},D(u,s,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},F=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:(0,L.bf)(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${o}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${o}`,"&:hover":{color:l}}}}};var K=(0,B.I$)("Alert",(e=>[H(e),W(e),F(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}))),V=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{icon:t,prefixCls:n,type:o}=e,r=q[o]||null;return t?(0,T.wm)(t,p.createElement("span",{className:`${n}-icon`},t),(()=>({className:O()(`${n}-icon`,t.props.className)}))):p.createElement(r,{className:`${n}-icon`})},G=e=>{const{isClosable:t,prefixCls:n,closeIcon:o,handleClose:r,ariaProps:i}=e,a=!0===o||void 0===o?p.createElement(E.Z,null):o;return t?p.createElement("button",Object.assign({type:"button",onClick:r,className:`${n}-close-icon`,tabIndex:0},i),a):null},Q=p.forwardRef(((e,t)=>{const{description:n,prefixCls:o,message:r,banner:i,className:a,rootClassName:l,style:c,onMouseEnter:s,onMouseLeave:u,onClick:d,afterClose:f,showIcon:m,closable:g,closeText:h,closeIcon:v,action:b,id:y}=e,x=V(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[w,C]=p.useState(!1);const S=p.useRef(null);p.useImperativeHandle(t,(()=>({nativeElement:S.current})));const{getPrefixCls:E,direction:k,closable:I,closeIcon:j,className:N,style:M}=(0,P.dj)("alert"),Z=E("alert",o),[T,L,R]=K(Z),B=t=>{var n;C(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},D=p.useMemo((()=>void 0!==e.type?e.type:i?"warning":"info"),[e.type,i]),H=p.useMemo((()=>!("object"!=typeof g||!g.closeIcon)||(!!h||("boolean"==typeof g?g:!1!==v&&null!=v||!!I))),[h,v,g,I]),W=!(!i||void 0!==m)||m,F=O()(Z,`${Z}-${D}`,{[`${Z}-with-description`]:!!n,[`${Z}-no-icon`]:!W,[`${Z}-banner`]:!!i,[`${Z}-rtl`]:"rtl"===k},N,a,l,R,L),q=(0,A.Z)(x,{aria:!0,data:!0}),Q=p.useMemo((()=>"object"==typeof g&&g.closeIcon?g.closeIcon:h||(void 0!==v?v:"object"==typeof I&&I.closeIcon?I.closeIcon:j)),[v,g,h,j]),_=p.useMemo((()=>{const e=null!=g?g:I;if("object"==typeof e){const{closeIcon:t}=e;return V(e,["closeIcon"])}return{}}),[g,I]);return T(p.createElement($.ZP,{visible:!w,motionName:`${Z}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:f},((t,o)=>{let{className:i,style:a}=t;return p.createElement("div",Object.assign({id:y,ref:(0,z.sQ)(S,o),"data-show":!w,className:O()(F,i),style:Object.assign(Object.assign(Object.assign({},M),c),a),onMouseEnter:s,onMouseLeave:u,onClick:d,role:"alert"},q),W?p.createElement(X,{description:n,icon:e.icon,prefixCls:Z,type:D}):null,p.createElement("div",{className:`${Z}-content`},r?p.createElement("div",{className:`${Z}-message`},r):null,n?p.createElement("div",{className:`${Z}-description`},n):null),b?p.createElement("div",{className:`${Z}-action`},b):null,p.createElement(G,{isClosable:H,prefixCls:Z,closeIcon:Q,handleClose:B,ariaProps:_}))})))}));var _=Q,U=n(99153),Y=n(84851),J=n(92359),ee=n(61230),te=n(88243);function ne(e,t,n){return t=(0,J.Z)(t),(0,te.Z)(e,(0,ee.Z)()?Reflect.construct(t,n||[],(0,J.Z)(e).constructor):t.apply(e,n))}var oe=n(19257);let re=function(e){function t(){var e;return(0,U.Z)(this,t),(e=ne(this,t,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,oe.Z)(t,e),(0,Y.Z)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,id:n,children:o}=this.props,{error:r,info:i}=this.state,a=(null==i?void 0:i.componentStack)||null,l=void 0===e?(r||"").toString():e,c=void 0===t?a:t;return r?p.createElement(_,{id:n,type:"error",message:l,description:p.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},c)}):o}}])}(p.Component);var ie=re;const ae=_;ae.ErrorBoundary=ie;var le=ae,ce=n(37712),se=(0,v.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.dispatch,n=(e.setType,e.data),o=e.accountInfo,i=e.open,l=b.Z.useForm(),s=u()(l,1)[0],d=(0,v.useSearchParams)(),f=u()(d,1)[0],m=(0,v.useLocation)(),h=(0,p.useState)(!1),w=u()(h,2),C=w[0],E=w[1],I=(0,p.useState)(""),j=u()(I,2),N=(j[0],j[1]),M=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;(0,p.useEffect)((function(){E(i)}),[i]);var Z=[{title:"IP地址",dataIndex:"ip",key:"ip",render:function(e){return(0,ce.jsx)("span",{className:e.indexOf("异常")>-1||e.indexOf("登录")>-1?"c-red":"c-green",children:e})}},{title:"浏览器",dataIndex:"browser",key:"browser",render:function(e){return(0,ce.jsx)("span",{className:e.indexOf("异常")>-1||e.indexOf("登录")>-1?"c-red":"c-green",children:e})}},{title:"上次登录时间",dataIndex:"last_login_time",key:"last_login_time"}],O=function(){var e=c()(r()().mark((function e(){var n,i,l,c,u;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.validateFields();case 2:if(null==o||!o.code){e.next=8;break}return e.next=5,(0,S.Gq)(a()(a()({},o),{},{phone:null==o?void 0:o.login},s.getFieldValue()));case 5:i=e.sent,e.next=11;break;case 8:return e.next=10,(0,S.Es)(a()(a()({},o),s.getFieldValue()));case 10:i=e.sent;case 11:if(!i.status){e.next=18;break}if(-4!==i.status){e.next=16;break}return t({type:"user/showPopLogin",payload:{showPopLogin:!1}}),t({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!0,userInfoForBindAccountModal:i.user,loginInfo:o}}),e.abrupt("return");case 16:return N(null===(l=i)||void 0===l?void 0:l.message),e.abrupt("return");case 18:if(E(!1),null!==(n=i)&&void 0!==n&&n.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null===(c=i)||void 0===c?void 0:c.start_date)):localStorage.removeItem("extension-modal"),"/user/login"!==m.pathname&&"/login"!==m.pathname){e.next=35;break}if(!(u=f.get("form")||f.get("back_url"))){e.next=26;break}window.location.href=decodeURIComponent(u),e.next=33;break;case 26:if(M.test(o.password)||null!=o&&o.code){e.next=31;break}y.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/account/secure",e.next=33;break;case 31:return window.location.href="/",e.abrupt("return");case 33:e.next=43;break;case 35:if(M.test(o.password)||null!=o&&o.code){e.next=41;break}y.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/account/secure?active=3",t({type:"user/showPopLogin",payload:{showPopLogin:!1}}),e.next=43;break;case 41:return window.location.reload(),e.abrupt("return");case 43:s.resetFields();case 44:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,ce.jsxs)(g.Z,{title:"登录提示",width:600,onOk:O,onCancel:function(){return E(!1)},centered:!0,keyboard:!1,closable:!1,maskClosable:!1,open:C,children:[(0,ce.jsx)("p",{className:"tc",children:"该账号已经存在异常情况,若非本人操作,请联系监考老师说明情况。"}),(0,ce.jsx)("div",{className:"mt20",children:(0,ce.jsx)(k.Z,{pagination:{hideOnSinglePage:!0},dataSource:n||[],columns:Z})}),(0,ce.jsx)("div",{className:"mt20 mb20",children:(0,ce.jsx)(le,{message:"请监考老师输入的考试解锁码,授权当前学生登录平台。",type:"warning"})}),(0,ce.jsx)(b.Z,{name:"global_state",autoComplete:"off",form:s,children:(0,ce.jsx)(b.Z.Item,{name:"unlock_key",label:"考试解锁码",rules:[{required:!0,message:"请输入解锁码"}],children:(0,ce.jsx)(x.Z.Password,{autoComplete:"off"})})})]})})),ue="login-panel-wrapper2___HuMNJ",de="login-panel-right-wrp___vWD_i",fe="res-error-values___hV1lz",pe="tabs___EwOAX",me=n(28209),ge=n.n(me),he={height:48,borderRadius:4},ve=(0,v.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.dispatch,n=e.setType,o=e.user,i=e.setusername,l=b.Z.useForm(),s=u()(l,1)[0],d=(0,v.useSearchParams)(),f=u()(d,1)[0],m=(0,v.useLocation)(),g=(0,p.useState)(""),h=u()(g,2),k=h[0],I=h[1],j=(0,p.useState)([]),N=u()(j,2),M=N[0],Z=N[1],O=(0,p.useState)({}),$=u()(O,2),A=$[0],z=$[1],T=(0,p.useState)(!1),P=u()(T,2),L=P[0],R=P[1],B=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,D=function(){var e=c()(r()().mark((function e(n){var o,l,c,u,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R(!1),B.test(n.password)||(i(n.login),I("系统检测您的密码强度过低,请及时修改")),o=a()({},n),l=ge().enc.Utf8.parse("5183666c72eec9e4"),c=ge().AES.encrypt(n.password||"",l,{iv:l,mode:ge().mode.CBC}),o.password=c.toString(),z(a()({},n)),e.next=9,(0,S.Es)(o);case 9:if(!(u=e.sent).status){e.next=24;break}if(-4!==u.status){e.next=18;break}return t({type:"user/showPopLogin",payload:{showPopLogin:!1}}),t({type:"user/getUserInfo",payload:{websiteName:"educoder"}}),t({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!0,userInfoForBindAccountModal:u.user,loginInfo:n}}),e.abrupt("return");case 18:if(-5!==u.status){e.next=22;break}return Z([null==u?void 0:u.message]),R(!0),e.abrupt("return");case 22:return I(null==u?void 0:u.message),e.abrupt("return");case 24:if(null!=u&&u.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==u?void 0:u.start_date)):localStorage.removeItem("extension-modal"),"/user/login"!==m.pathname&&"/login"!==m.pathname){e.next=40;break}if(!(d=f.get("form")||f.get("back_url"))){e.next=31;break}window.location.href=decodeURIComponent(d),e.next=38;break;case 31:if(B.test(n.password)){e.next=36;break}y.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/",e.next=38;break;case 36:return window.location.reload(),e.abrupt("return");case 38:e.next=48;break;case 40:if(B.test(n.password)){e.next=46;break}y.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/",t({type:"user/showPopLogin",payload:{showPopLogin:!1}}),e.next=48;break;case 46:return window.location.reload(),e.abrupt("return");case 48:s.resetFields();case 49:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsxs)(b.Z,{layout:"vertical",form:s,initialValues:{autologin:!0,login:o.actionTabs.phone},onFinish:D,onValuesChange:function(e){I("");if("password"in e){var t=e.password.replace(/[\u4e00-\u9fa5]/g,"");s.setFieldsValue({password:t})}},children:[!!k&&(0,ce.jsxs)("div",{className:fe,children:[(0,ce.jsx)("span",{children:k}),(0,ce.jsx)(E.Z,{onClick:function(){return I("")}})]}),(0,ce.jsx)(b.Z.Item,{name:"login",rules:[{required:!0,message:"请输入用户名、手机号或邮箱"}],children:(0,ce.jsx)(x.Z,{style:he,size:"middle",placeholder:"请输入有效的手机号/邮箱号/账号",onBlur:function(){t({type:"user/setActionTabs",payload:{phone:s.getFieldValue("login")}})}})}),(0,ce.jsx)(b.Z.Item,{name:"password",rules:[{required:!0,message:"请输入8-16位密码,区分大小写、不能使用空格"}],children:(0,ce.jsx)(x.Z.Password,{style:he,size:"middle",placeholder:"密码"})}),(0,ce.jsx)(b.Z.Item,{children:(0,ce.jsxs)("div",{className:"flex-container",style:{justifyContent:"space-between"},children:[(0,ce.jsx)(b.Z.Item,{name:"autologin",noStyle:!0,valuePropName:"checked",children:(0,ce.jsx)(w.Z,{children:"下次自动登录"})}),(0,ce.jsx)("div",{children:(0,ce.jsx)("span",{className:"current font14 c-blue",onClick:function(){return n(4)},children:"找回密码"})})]})}),(0,ce.jsx)(b.Z.Item,{children:(0,ce.jsx)(C.ZP,{size:"middle",type:"primary",htmlType:"submit",block:!0,className:"font16",style:he,children:"登录"})})]}),(0,ce.jsx)(se,{open:L,data:M,accountInfo:a()({},A)})]})})),be=n(55544),ye=n(1079),xe=function(e,t){return xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},xe(e,t)};function we(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}xe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ce=function(){return Ce=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}Object.create;"function"==typeof SuppressedError&&SuppressedError;var je=function(){var e=(0,p.useRef)(!1);return(0,p.useEffect)((function(){return e.current=!1,function(){e.current=!0}}),[]),e};var Ne=function(e){var t=je(),n=Ie((0,p.useState)(e),2),o=n[0],r=n[1];return[o,(0,p.useCallback)((function(e){t.current||r(e)}),[])]};var Me=function(e){var t=(0,p.useRef)(e);return t.current=e,t},Ze=function(e){(0,p.useEffect)((function(){e()}),[])};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}("@-webkit-keyframes slider-icon-animate_spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes slider-icon-animate_spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.rc-slider-captcha-icon {\n display: inline-block;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.rc-slider-captcha-icon > svg {\n line-height: 1;\n}\n.rc-slider-captcha-icon-spin {\n -webkit-animation: slider-icon-animate_spin 1s infinite linear;\n animation: slider-icon-animate_spin 1s infinite linear;\n}\n.rc-slider-captcha-button {\n display: inline-block;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 40px;\n height: 100%;\n padding: 5px 0;\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n font-size: 22px;\n line-height: 1;\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);\n cursor: -webkit-grab;\n cursor: grab;\n transition-timing-function: linear;\n transition-duration: 0.2s;\n transition-property: background-color, color;\n touch-action: none;\n}\n.rc-slider-captcha-button-active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-verify {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-pc:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #1991fa;\n background-color: var(--rcsc-primary, #1991fa);\n}\n.rc-slider-captcha-button-active,\n.rc-slider-captcha-button:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.rc-slider-captcha-button-verify,\n.rc-slider-captcha-button-verify:active {\n cursor: wait;\n}\n.rc-slider-captcha-button-error {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-error:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-error:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #f57a7a;\n background-color: var(--rcsc-error, #f57a7a);\n cursor: default;\n}\n.rc-slider-captcha-button-success {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-success:hover {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-success:active {\n color: #fff;\n color: var(--rcsc-button-hover-color, #fff);\n background-color: #52ccba;\n background-color: var(--rcsc-success, #52ccba);\n cursor: default;\n}\n.rc-slider-captcha-button-disabled {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-button-disabled:hover {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-button-disabled:active {\n color: #676d73;\n color: var(--rcsc-button-color, #676d73);\n background-color: #fff;\n background-color: var(--rcsc-button-bg-color, #fff);\n cursor: no-drop;\n opacity: 0.7;\n}\n.rc-slider-captcha-control {\n position: relative;\n box-sizing: border-box;\n width: 100%;\n height: 42px;\n height: var(--rcsc-control-height, 42px);\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n border: 1px solid #e4e7eb;\n border: 1px solid var(--rcsc-border-color, #e4e7eb);\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-button {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-indicator {\n position: absolute;\n top: -1px;\n bottom: -1px;\n left: -1px;\n display: none;\n box-sizing: border-box;\n width: 0;\n background-color: #d1e9fe;\n background-color: var(--rcsc-primary-light, #d1e9fe);\n border: 1px solid #1991fa;\n border: 1px solid var(--rcsc-primary, #1991fa);\n border-radius: 2px;\n border-radius: var(--rcsc-control-border-radius, 2px);\n}\n.rc-slider-captcha-control-tips {\n position: relative;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n color: #45494c;\n color: var(--rcsc-text-color, #45494c);\n font-size: 14px;\n line-height: 20px;\n text-align: center;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.rc-slider-captcha-control-moving .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-verify .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-error .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-success .rc-slider-captcha-control-indicator {\n display: block;\n}\n.rc-slider-captcha-control-error .rc-slider-captcha-control-indicator {\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-success .rc-slider-captcha-control-indicator {\n background-color: #d2f4ef;\n background-color: var(--rcsc-success-light, #d2f4ef);\n border-color: #52ccba;\n border-color: var(--rcsc-success, #52ccba);\n}\n.rc-slider-captcha-control-errors {\n padding-left: 0;\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-load-failed {\n padding-left: 0;\n background-color: #fce1e1;\n background-color: var(--rcsc-error-light, #fce1e1);\n border-color: #f57a7a;\n border-color: var(--rcsc-error, #f57a7a);\n}\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-button,\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-indicator,\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-button,\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-indicator {\n display: none;\n}\n.rc-slider-captcha-control-errors .rc-slider-captcha-control-tips {\n color: #f57a7a;\n color: var(--rcsc-error, #f57a7a);\n cursor: pointer;\n}\n.rc-slider-captcha-control-load-failed .rc-slider-captcha-control-tips {\n color: #f57a7a;\n color: var(--rcsc-error, #f57a7a);\n cursor: pointer;\n}\n.rc-slider-captcha-jigsaw {\n position: relative;\n background-color: #f7f9fa;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.rc-slider-captcha-jigsaw img {\n position: absolute;\n}\n.rc-slider-captcha-jigsaw-bg {\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n.rc-slider-captcha-jigsaw-puzzle {\n width: 60px;\n height: 100%;\n touch-action: none;\n}\n.rc-slider-captcha-jigsaw-puzzle:hover {\n cursor: -webkit-grab;\n cursor: grab;\n}\n.rc-slider-captcha-jigsaw-puzzle:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.rc-slider-captcha-jigsaw-refresh {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 2;\n padding: 5px;\n color: #fff;\n font-size: 22px;\n line-height: 0;\n cursor: pointer;\n opacity: 0.75;\n transition: opacity 0.2s linear;\n}\n.rc-slider-captcha-jigsaw-refresh:hover {\n opacity: 1;\n}\n.rc-slider-captcha-jigsaw-refresh-disabled {\n cursor: not-allowed;\n}\n.rc-slider-captcha-jigsaw-refresh-disabled:hover {\n opacity: 0.75;\n}\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle {\n pointer-events: none;\n}\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle:hover,\n.rc-slider-captcha-jigsaw-stop .rc-slider-captcha-jigsaw-puzzle:active {\n cursor: default;\n}\n.rc-slider-captcha-loading {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n padding: 15px;\n color: #45494c;\n color: var(--rcsc-text-color, #45494c);\n font-size: 14px;\n text-align: center;\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n}\n.rc-slider-captcha-loading-icon {\n font-size: 30px;\n}\n.rc-slider-captcha-loading-text {\n margin-top: 5px;\n}\n.rc-slider-captcha-load-failed {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n color: #ccc;\n font-size: 85px;\n background-color: #f7f9fa;\n background-color: var(--rcsc-bg-color, #f7f9fa);\n}\n.rc-slider-captcha {\n position: relative;\n}\n.rc-slider-captcha > * {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.rc-slider-captcha-panel {\n padding-bottom: 15px;\n}\n.rc-slider-captcha-panel-inner {\n overflow: hidden;\n border-radius: 2px;\n border-radius: var(--rcsc-panel-border-radius, 2px);\n}\n.rc-slider-captcha-float .rc-slider-captcha-panel {\n position: absolute;\n left: 0;\n display: none;\n opacity: 0;\n transition-timing-function: ease-out;\n transition-duration: 0.3s;\n transition-property: top, bottom, opacity;\n}\n.rc-slider-captcha-float-top .rc-slider-captcha-panel {\n bottom: 22px;\n}\n.rc-slider-captcha-float-bottom .rc-slider-captcha-panel {\n top: 22px;\n padding: 15px 0 0;\n}\n");var Oe="rc-slider-captcha";function $e(e){var t=0,n=0;return"number"==typeof e.clientX&&"number"==typeof e.clientY?(t=e.clientX,n=e.clientY):e.touches&&e.touches[0]?(t=e.touches[0].clientX,n=e.touches[0].clientY):e.changedTouches&&e.changedTouches[0]&&(t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY),{clientX:t,clientY:n}}function Ae(e,t){if(void 0===t&&(t={}),e)for(var n in t)e.style[n]=t[n]}var ze="object"==typeof window&&window&&"object"==typeof document&&document&&window.document===document&&!!document.addEventListener,Te=ze&&"onpointerdown"in window,Pe=ze&&"ontouchstart"in window;function Le(e,t){return"number"==typeof e&&!Number.isNaN(e)&&"number"==typeof t&&t>0?Number(e.toFixed(t)):e}var Re="".concat(Oe,"-button"),Be=function(e){var t,n=e.className,o=e.disabled,r=e.active,i=e.success,a=e.error,l=e.verify,c=e.buttonRef,s=Se(e,["className","disabled","active","success","error","verify","buttonRef"]);return p.createElement("span",Ce({className:O()(Re,n,(t={},t["".concat(Re,"-disabled")]=o,t["".concat(Re,"-active")]=r,t["".concat(Re,"-verify")]=l,t["".concat(Re,"-success")]=i,t["".concat(Re,"-error")]=a,t["".concat(Re,"-pc")]=!Pe,t)),ref:c},s))};Be.displayName="SliderButton";var De,He="".concat(Oe,"-icon"),We=function(e){var t,n=e.className,o=e.spin,r=Se(e,["className","spin"]);return p.createElement("span",Ce({className:O()(He,(t={},t["".concat(He,"-spin")]=o,t),n)},r))},Fe={arrowRight:p.createElement((function(e){return p.createElement("svg",Ce({viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),p.createElement("path",{d:"M116.9408 561.4592m0-40.96l0 0q0-40.96 40.96-40.96l573.44 0q40.96 0 40.96 40.96l0 0q0 40.96-40.96 40.96l-573.44 0q-40.96 0-40.96-40.96Z"}),p.createElement("path",{d:"M769.82272 519.43424l-203.22304-203.22304a40.96 40.96 0 1 1 57.91744-57.91744l231.71072 231.71072a40.96 40.96 0 0 1 0.45056 58.44992L624.9472 780.12416a40.96 40.96 0 0 1-57.93792-57.91744l202.79296-202.79296z"}))}),null),check:p.createElement((function(e){return p.createElement("svg",Ce({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),p.createElement("path",{d:"M864.554667 268.501333a42.666667 42.666667 0 0 1 0 60.330667L412.032 781.397333a42.453333 42.453333 0 0 1-22.613333 11.818667l-5.034667 0.597333H379.306667a42.496 42.496 0 0 1-27.648-12.416l-211.2-211.2a42.666667 42.666667 0 1 1 60.330666-60.330666l180.992 180.992 422.4-422.4a42.666667 42.666667 0 0 1 60.330667 0z"}))}),null),loading:p.createElement((function(e){return p.createElement("svg",Ce({viewBox:"0 0 120 120",width:"1em",height:"1em"},e),p.createElement("defs",null,p.createElement("line",{id:"l",x1:"60",x2:"60",y1:"7",y2:"27",stroke:"currentColor",strokeWidth:"11",strokeLinecap:"round"})),p.createElement("g",null,p.createElement("use",{xlinkHref:"#l",opacity:".27"}),p.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(30 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(60 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(90 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(120 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".27",transform:"rotate(150 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".37",transform:"rotate(180 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".46",transform:"rotate(210 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".56",transform:"rotate(240 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".66",transform:"rotate(270 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".75",transform:"rotate(300 60,60)"}),p.createElement("use",{xlinkHref:"#l",opacity:".85",transform:"rotate(330 60,60)"})))}),null),refresh:p.createElement((function(e){return p.createElement("svg",Ce({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),p.createElement("path",{d:"M866.133333 573.013333a42.666667 42.666667 0 0 0-53.333333 27.733334A304.64 304.64 0 0 1 519.68 810.666667 302.933333 302.933333 0 0 1 213.333333 512a302.933333 302.933333 0 0 1 306.346667-298.666667 309.76 309.76 0 0 1 198.4 71.253334l-92.586667-15.36a42.666667 42.666667 0 0 0-49.066666 35.413333 42.666667 42.666667 0 0 0 35.413333 49.066667l180.906667 29.866666h7.253333a42.666667 42.666667 0 0 0 14.506667-2.56 14.08 14.08 0 0 0 4.266666-2.56 33.28 33.28 0 0 0 8.533334-4.693333l3.84-4.693333c0-2.133333 3.84-3.84 5.546666-6.4s0-4.266667 2.133334-5.973334a57.173333 57.173333 0 0 0 2.986666-7.68l32-170.666666a42.666667 42.666667 0 0 0-85.333333-16.213334l-11.52 61.866667A392.96 392.96 0 0 0 519.68 128 388.266667 388.266667 0 0 0 128 512a388.266667 388.266667 0 0 0 391.68 384A389.12 389.12 0 0 0 896 626.346667a42.666667 42.666667 0 0 0-29.866667-53.333334z"}))}),null),x:p.createElement((function(e){return p.createElement("svg",Ce({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e),p.createElement("path",{d:"M572.96896 524.6976l217.23136 217.25184a40.96 40.96 0 1 1-57.93792 57.91744L515.072 582.63552l-212.3776 212.3776a40.96 40.96 0 1 1-57.9584-57.91744l212.39808-212.3776-217.21088-217.23136a40.96 40.96 0 1 1 57.91744-57.91744l217.23136 217.21088L737.0752 244.736a40.96 40.96 0 1 1 57.93792 57.91744L572.96896 524.71808z"}))}),null),imageFill:p.createElement((function(e){return p.createElement("svg",Ce({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16"},e),p.createElement("path",{d:"M.002 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-12a2 2 0 0 1-2-2zm1 9v1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062zm5-6.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"}))}),null)},Ke=function(e){var t=e.type,n=Se(e,["type"]);return p.createElement(We,Ce({},n),Fe[t])};!function(e){e[e.Default=1]="Default",e[e.Loading=2]="Loading",e[e.Moving=3]="Moving",e[e.Verify=4]="Verify",e[e.Success=5]="Success",e[e.Error=6]="Error",e[e.LoadFailed=7]="LoadFailed"}(De||(De={}));var Ve,qe="".concat(Oe,"-control"),Xe=function(e){var t,n=e.status,o=void 0===n?De.Default:n,r=e.isLimitErrors,i=e.tipText,a=e.tipIcon,l=e.sliderButtonProps,c=e.indicatorProps,s=e.controlRef,u=Se(e,["status","isLimitErrors","tipText","tipIcon","sliderButtonProps","indicatorProps","controlRef"]),d=(0,p.useRef)(null),f=(0,p.useRef)(null),m=(0,p.useRef)(null),g=(0,p.useRef)({}),h=(0,p.useMemo)((function(){return Ce({default:"向右拖动滑块填充拼图",loading:"加载中...",moving:null,verifying:null,success:null,error:null,errors:p.createElement(p.Fragment,null,p.createElement(Ke,{type:"x",style:{fontSize:20}})," 失败过多,点击重试"),loadFailed:"加载失败,点击重试"},i)}),[i]),v=(0,p.useMemo)((function(){return Ce({default:p.createElement(Ke,{type:"arrowRight"}),loading:p.createElement(Ke,{type:"loading",spin:!0}),error:p.createElement(Ke,{type:"x"}),success:p.createElement(Ke,{type:"check"})},a)}),[a]),b=(0,p.useMemo)((function(){var e;return(e={})[De.Default]=[h.default,v.default],e[De.Loading]=[h.loading,v.default],e[De.Moving]=[h.moving,v.default],e[De.Verify]=[h.verifying,v.loading],e[De.Error]=[h.error,v.error],e[De.Success]=[h.success,v.success],e[De.LoadFailed]=[h.loadFailed,v.default],e}),[h,v]),y=function(e){var t;return(e||"number"!=typeof g.current.sliderButtonWidth)&&(g.current.sliderButtonWidth=(null===(t=f.current)||void 0===t?void 0:t.clientWidth)||40),g.current.sliderButtonWidth},x=function(e){if(e||"number"!=typeof g.current.indicatorBorderWidth)if(m.current){var t=window.getComputedStyle(m.current);g.current.indicatorBorderWidth=parseInt(t.borderLeftWidth)+parseInt(t.borderRightWidth)}else g.current.indicatorBorderWidth=2;return g.current.indicatorBorderWidth},w=function(e){var t;return!e&&g.current.rect||d.current&&(g.current.rect=null===(t=d.current)||void 0===t?void 0:t.getBoundingClientRect()),g.current.rect};(0,p.useImperativeHandle)(s,(function(){return{getSliderButtonWidth:y,getIndicatorBorderWidth:x,getRect:w,updateLeft:function(e){var t=y(),n=x();Ae(f.current,{left:e+"px"}),Ae(m.current,{width:e+t+n+"px"})}}}),[]);var C=o===De.Loading,S=o===De.Moving,E=o===De.Verify,k=o===De.Success,I=o===De.Error,j=o===De.LoadFailed,N=r?h.errors:b[o][0];return p.createElement("div",Ce({},u,{className:O()(qe,(t={},t["".concat(qe,"-loading")]=C,t["".concat(qe,"-moving")]=S,t["".concat(qe,"-verify")]=E,t["".concat(qe,"-success")]=k,t["".concat(qe,"-error")]=I,t["".concat(qe,"-errors")]=r,t["".concat(qe,"-load-failed")]=j,t),u.className),ref:d}),p.createElement("div",Ce({},c,{className:O()("".concat(qe,"-indicator"),null==c?void 0:c.className),ref:m})),p.createElement(Be,Ce({},l,{className:O()("".concat(qe,"-button"),null==l?void 0:l.className),disabled:C,active:S,verify:E,success:k,error:I,buttonRef:f}),b[o][1]),p.createElement("div",{className:O()("".concat(qe,"-tips")),style:N?{}:{display:"none"}},N))},Ge="".concat(Oe,"-loading"),Qe=function(e){var t=e.icon,n=void 0===t?p.createElement(Ke,{type:"loading",spin:!0}):t,o=e.text,r=void 0===o?"加载中...":o,i=e.className,a=Se(e,["icon","text","className"]);return p.createElement("div",Ce({className:O()(Ge,i)},a),p.createElement("div",{className:"".concat(Ge,"-icon")},n),p.createElement("div",{className:"".concat(Ge,"-text")},r))},_e="".concat(Oe,"-jigsaw"),Ue={bgSize:{width:320,height:160},puzzleSize:{width:60,left:0},loadFailedIcon:p.createElement(Ke,{type:"imageFill"}),refreshIcon:p.createElement(Ke,{type:"refresh"})},Ye=function(e){var t,n,o=e.status,r=e.bgSize,i=void 0===r?Ue.bgSize:r,a=e.puzzleSize,l=void 0===a?Ue.puzzleSize:a,c=e.bgUrl,s=e.puzzleUrl,u=e.bgImgProps,d=e.puzzleImgProps,f=e.jigsawRef,m=e.loadingBoxProps,g=e.loadFailedIcon,h=void 0===g?Ue.loadFailedIcon:g,v=e.showRefreshIcon,b=void 0===v||v,y=e.refreshIcon,x=void 0===y?Ue.refreshIcon:y,w=e.disabledRefresh,C=e.onRefresh,S=e.style,E=e.className,k=e.children,I=Se(e,["status","bgSize","puzzleSize","bgUrl","puzzleUrl","bgImgProps","puzzleImgProps","jigsawRef","loadingBoxProps","loadFailedIcon","showRefreshIcon","refreshIcon","disabledRefresh","onRefresh","style","className","children"]),j=(0,p.useRef)(null);if((0,p.useImperativeHandle)(f,(function(){return{updateLeft:function(e){Ae(j.current,{left:e+"px"})}}})),o===De.Loading)return p.createElement(Qe,Ce({},m,{style:Ce(Ce({},null==m?void 0:m.style),i)}));if(o===De.LoadFailed||!c||!s)return p.createElement("div",{className:"".concat(Oe,"-load-failed"),style:i},h);var N=o===De.Verify||o===De.Error||o===De.Success;return p.createElement("div",Ce({className:O()(_e,(t={},t["".concat(_e,"-stop")]=N,t),E),style:Ce(Ce({},S),i)},I),p.createElement("img",Ce({src:c,alt:""},u,{className:O()("".concat(_e,"-bg"),null==u?void 0:u.className),style:Ce(Ce({},null==u?void 0:u.style),i)})),p.createElement("img",Ce({src:s,alt:""},d,{className:O()("".concat(_e,"-puzzle"),null==d?void 0:d.className),style:Ce(Ce({},null==d?void 0:d.style),l),ref:j})),b&&o!==De.Success&&x&&p.createElement("div",{className:O()("".concat(_e,"-refresh"),(n={},n["".concat(_e,"-refresh-disabled")]=o===De.Verify||w,n)),onClick:function(){o===De.Verify||w||null==C||C()}},x),k)},Je=Te?{start:"pointerdown",move:"pointermove",end:"pointerup",cancel:"pointercancel"}:Pe?{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"}:{start:"mousedown",move:"mousemove",end:"mouseup",cancel:"touchcancel"},et=Te?"onPointerDown":Pe?"onTouchStart":"onMouseDown";!function(e){e.Puzzle="puzzle",e.Button="button"}(Ve||(Ve={}));var tt=function(e){var t,n,o,r=e.mode,i=void 0===r?"embed":r,a=e.limitErrorCount,l=void 0===a?0:a,c=e.tipText,s=e.tipIcon,u=e.refreshIcon,d=e.bgSize,f=e.puzzleSize,m=e.request,g=e.autoRequest,h=void 0===g||g,v=e.onVerify,b=e.autoRefreshOnError,y=void 0===b||b,x=e.actionRef,w=e.showRefreshIcon,C=void 0===w||w,S=e.jigsawContent,E=e.errorHoldDuration,k=void 0===E?500:E,I=e.loadingDelay,j=void 0===I?0:I,N=e.placement,M=void 0===N?"top":N,Z=e.loadingBoxProps,$=e.sliderButtonProps,A=e.precision,z=void 0===A?7:A,T=e.className,P=e.style,L=e.styles,R=Ne(),B=R[0],D=R[1],H=Ne(De.Default),W=H[0],F=H[1],K=Me(W),V=(0,p.useRef)(null),q=(0,p.useRef)(null),X=(0,p.useRef)(null),G=(0,p.useMemo)((function(){return"float"===i||"slider"===i?i:"embed"}),[i]),Q=(0,p.useMemo)((function(){return void 0!==u?u:void 0!==(null==s?void 0:s.refresh)?s.refresh:void 0}),[u,s]),_=(0,p.useMemo)((function(){return Ce(Ce({},Ue.bgSize),d)}),[d]),U=(0,p.useMemo)((function(){return Ce(Ce({},Ue.puzzleSize),f)}),[f]),Y=(0,p.useMemo)((function(){return"bottom"===M?"top":"bottom"}),[M]),J=(0,p.useRef)({isPressed:!1,trail:[],errorCount:0,startInfo:{x:0,y:0,timestamp:0},currentTargetType:Ve.Button,floatTransitionTimer:null,floatDelayShowTimer:null,floatDelayHideTimer:null,refreshTimer:null,loadingTimer:null,sliderButtonWidth:40,indicatorBorderWidth:2,ratio:1,buttonMaxDistance:0,puzzleMaxDistance:0}),ee="slider"===G,te="number"==typeof j&&j>0,ne=W===De.Error&&l>0&&J.current.errorCount>=l,oe=function(){var e;return(null===(e=V.current)||void 0===e?void 0:e.getRect(!0).height)||42},re=function(){return Ee(void 0,void 0,void 0,(function(){var e;return ke(this,(function(t){switch(t.label){case 0:if(ee)return[2];if(!m)return[3,4];te?J.current.loadingTimer=setTimeout((function(){F(De.Loading)}),j):F(De.Loading),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,m()];case 2:return e=t.sent(),te&&clearTimeout(J.current.loadingTimer),D(e),F(De.Default),[3,4];case 3:return t.sent(),te&&clearTimeout(J.current.loadingTimer),F(De.LoadFailed),[3,4];case 4:return[2]}}))}))},ie=function(e){void 0===e&&(e=300),"float"===G&&K.current!==De.Success&&(clearTimeout(J.current.floatTransitionTimer),clearTimeout(J.current.floatDelayHideTimer),clearTimeout(J.current.floatDelayShowTimer),J.current.floatDelayShowTimer=setTimeout((function(){var e,t;Ae(X.current,{display:"block"}),null==(t=X.current)||t.scrollTop;var n=oe()+"px";Ae(X.current,((e={})[Y]=n,e.opacity="1",e))}),e))},ae=function(e){void 0===e&&(e=300),"float"===G&&(clearTimeout(J.current.floatTransitionTimer),clearTimeout(J.current.floatDelayHideTimer),clearTimeout(J.current.floatDelayShowTimer),J.current.floatDelayHideTimer=setTimeout((function(){var e,t=oe()/2+"px";Ae(X.current,((e={})[Y]=t,e.opacity="0",e)),J.current.floatTransitionTimer=setTimeout((function(){Ae(X.current,{display:"none"})}),300)}),e))},le=function(e){var t;ee||null===(t=q.current)||void 0===t||t.updateLeft(e)},ce=function(){var e;J.current.isPressed=!1,F(De.Default),null===(e=V.current)||void 0===e||e.updateLeft(0),le(U.left)},se=function(e){void 0===e&&(e=!1),e&&(J.current.errorCount=0),clearTimeout(J.current.refreshTimer),K.current!==De.Loading&&(ce(),re())},ue=function(e){if(K.current===De.Default){e.preventDefault();var t=$e(e),n=t.clientX,o=t.clientY;J.current.startInfo={x:n,y:o,timestamp:(new Date).getTime()},J.current.trail=[[n,o]],V.current&&(J.current.sliderButtonWidth=V.current.getSliderButtonWidth(!0),J.current.indicatorBorderWidth=V.current.getIndicatorBorderWidth(!0)),J.current.buttonMaxDistance=_.width-J.current.sliderButtonWidth-J.current.indicatorBorderWidth,J.current.puzzleMaxDistance=_.width-U.width-U.left,J.current.ratio=J.current.puzzleMaxDistance/J.current.buttonMaxDistance,J.current.currentTargetType===Ve.Puzzle&&(J.current.ratio=1/J.current.ratio),(Pe||"pen"===e.pointerType||"touch"===e.pointerType)&&ie(0),J.current.isPressed=!0,document.addEventListener(Je.move,de),document.addEventListener(Je.end,fe),document.addEventListener(Je.cancel,fe)}},de=function(e){var t;if(J.current.isPressed){e.preventDefault();var n=$e(e),o=n.clientX,r=n.clientY,i=o-J.current.startInfo.x;J.current.trail.push([o,r]),K.current!==De.Moving&&i>0&&F(De.Moving);var a=i,l=i;J.current.currentTargetType===Ve.Puzzle?(a=(i=Math.max(0,Math.min(i,J.current.puzzleMaxDistance)))+U.left,l=i*J.current.ratio):(l=i=Math.max(0,Math.min(i,J.current.buttonMaxDistance)),a=i*J.current.ratio+U.left),null===(t=V.current)||void 0===t||t.updateLeft(l),le(a)}},fe=function(e){if(document.removeEventListener(Je.move,de),document.removeEventListener(Je.end,fe),document.removeEventListener(Je.cancel,fe),J.current.isPressed){if(K.current!==De.Moving)return J.current.isPressed=!1,void(Pe&&ae());if(v){J.current.isPressed=!1,F(De.Verify);var t=(new Date).getTime(),n=$e(e),o=n.clientX,r=n.clientY-J.current.startInfo.y,i=o-J.current.startInfo.x,a=i;J.current.currentTargetType===Ve.Puzzle?a=(i=Math.max(0,Math.min(i,J.current.puzzleMaxDistance)))*J.current.ratio:(a=i=Math.max(0,Math.min(i,J.current.buttonMaxDistance)),i*=J.current.ratio),v({x:Le(i,z),y:Le(r,z),sliderOffsetX:Le(a,z),duration:t-J.current.startInfo.timestamp,trail:J.current.trail,targetType:J.current.currentTargetType,errorCount:J.current.errorCount}).then((function(){J.current.errorCount=0,F(De.Success),ae()})).catch((function(){J.current.errorCount+=1,F(De.Error),(Pe||"pen"===e.pointerType||"touch"===e.pointerType)&&ae(),(l<=0||J.current.errorCount0)&&(o.forEach((function(e){e.wrap.apply(e.context,t)})),!0)},e}(),ot={},rt=function(){function e(e){void 0===e&&(e="default"),this.scope=e,ot[this.scope]||(ot[this.scope]={}),this.data=ot[this.scope]}return e.prototype.getItem=function(e){return e in this.data?this.data[e]:null},e.prototype.setItem=function(e,t){this.data[e]=t},e.prototype.removeItem=function(e){delete this.data[e]},e.prototype.clear=function(){ot[this.scope]={},this.data=ot[this.scope]},e}();function it(e){try{var t="object"==typeof e&&null!==e&&!!e.setItem&&!!e.getItem&&!!e.removeItem;if(t){var n=Math.random().toString(16).substring(2,8)+(new Date).getTime();if(e.setItem(n,"1"),"1"!==e.getItem(n))return!1;e.removeItem(n)}return t}catch(t){return console.error("[cache2] ".concat(e," is not supported. The default memory cache will be used.")),!1}}var at=function(){function e(e,t){void 0===t&&(t={});var n=!!e&&it(e);this.options=Ce({needParsed:n,prefix:""},t),this.storage=n?e:new rt(this.options.memoryScope)}return e.prototype.getKey=function(e){return this.options.prefix+e},e.prototype.get=function(e){var t=this.storage.getItem(this.getKey(e));return this.options.needParsed?function(e,t){try{return JSON.parse(e,t)}catch(t){return e}}(t,this.options.reviver):t},e.prototype.set=function(e,t){this.storage.setItem(this.getKey(e),this.options.needParsed?function(e,t){return JSON.stringify(e,t)}(t,this.options.replacer):t)},e.prototype.del=function(e){this.storage.removeItem(this.getKey(e))},e.prototype.clear=function(){"function"==typeof this.storage.clear&&this.storage.clear()},e}(),lt="default",ct=function(e){function t(t,n){var o,r=e.call(this)||this,i=lt;return"string"==typeof t?i=t||lt:"object"==typeof t&&(o=t),o||"object"!=typeof n||(o=n),r.options=Ce({max:-1,stdTTL:0,maxStrategy:"limited",checkperiod:0,prefix:"cache2_"},o),r.storage=new at(r.options.storage,Ce({memoryScope:i},r.options)),r.cacheKey=i,r.startCheckperiod(),r}return we(t,e),t.prototype._check=function(e,t){var n=!0;return 0!==t.t&&t.t0?n+o:0,n:n}},t.prototype._isLimited=function(e){return this.options.max>-1&&e>=this.options.max},t.prototype._getReplaceKey=function(e,t){var n=e[0];return e.forEach((function(e){(t[e].t0&&this.setCacheValues(n),o},t.prototype.clear=function(){this.storage.del(this.cacheKey)},t.prototype.keys=function(){var e=this,t=this.cacheValues;return Object.keys(t).filter((function(n){return e._check(n,t[n])}))},t.prototype.has=function(e){var t=this.cacheValues[e];return!(!t||!this._check(e,t))},t.prototype.take=function(e){var t,n=this.cacheValues[e];return n&&this._check(e,n)&&(t=n.v,this.del(e)),t},t.prototype.ttl=function(e,t){var n=this.cacheValues,o=n[e];return!(!o||!this._check(e,o))&&(n[e]=this._wrap(o.v,t),!0)},t.prototype.getTtl=function(e){var t=this.cacheValues,n=t[e];if(n&&this._check(e,n))return t[e].t},t.prototype.getLastModified=function(e){var t=this.cacheValues,n=t[e];if(n&&this._check(e,n))return t[e].n},t.prototype.startCheckperiod=function(){var e=this;this.keys(),this.options.checkperiod>0&&(clearTimeout(this._checkTimeout),this._checkTimeout=setTimeout((function(){e.startCheckperiod()}),this.options.checkperiod))},t.prototype.stopCheckperiod=function(){clearTimeout(this._checkTimeout)},t}(nt),st="undefined",ut="object",dt=Object.prototype,ft=dt.toString,pt=(dt.hasOwnProperty,dt.propertyIsEnumerable,Object.getOwnPropertySymbols,Object.getPrototypeOf,Object.keys,Function.prototype.toString,typeof Symbol!==st&&Symbol.prototype,Array.prototype.slice,Math.min),mt=Math.max,gt=Math.random,ht=Math.floor,vt=Math.ceil,bt=(Math.abs,Number.isFinite,Number.isInteger,Number.isSafeInteger,typeof globalThis===ut&&globalThis,typeof n.g===ut&&n.g,typeof self===ut&&self,Number.MAX_SAFE_INTEGER,Number.MIN_SAFE_INTEGER,"[object "),yt=bt+"String]",xt=bt+"Symbol]",wt=(["Function","AsyncFunction","GeneratorFunction","Proxy"].map((function(e){return bt+e+"]"})),bt+"Blob]");function Ct(e){return ft.call(e)}var St=function(){function e(e,t){void 0===t&&(t="uh_async_memo"),this.promiseCache={},this.cache=new ct(t,e)}return e.prototype.run=function(e,t,n){var o,r=this;if(!t||"string"!=typeof(o=t)&&Ct(o)!==yt)return e();var i=Ce({persisted:!0},n);if(i.persisted){var a=this.cache.get(t);if(a)return Promise.resolve(a)}return this.promiseCache[t]||(this.promiseCache[t]=e().then((function(e){return delete r.promiseCache[t],r.cache.set(t,e,i.ttl),e})).catch((function(e){return delete r.promiseCache[t],Promise.reject(e)}))),this.promiseCache[t]},e}(),Et=typeof Blob!==st;function kt(e){return!!(Et&&e instanceof Blob)||Ct(e)===wt}var It,jt="undefined"!=typeof URL,Nt=Object.keys,Mt=(Object.values,jt?URL.createObjectURL:(It="",function(){return It})),Zt=jt?URL.revokeObjectURL:function(){};var Ot=[200,304];function $t(e,t){return new Promise((function(n,o){var r,i,a,l,c,s,u,d,f,p,m,g,h,v,b,y,x,w,C,S,E,k,I,j,N,M;kt(e)?n(e):(r=e,i=Ce({responseType:"blob"},t),a=i||{},l=a.method,c=void 0===l?"get":l,s=a.data,u=void 0===s?null:s,d=a.timeout,f=a.headers,p=a.withCredentials,m=void 0!==p&&p,g=a.async,h=void 0===g||g,v=a.user,b=void 0===v?null:v,y=a.password,x=void 0===y?null:y,w=a.responseType,C=a.onReadyStateChange,S=a.onLoadStart,E=a.onProgress,k=a.onAbort,I=a.onTimeout,j=a.onError,N=a.onLoad,M=a.onLoadEnd,new Promise((function(e,t){var n=new XMLHttpRequest;n.open(c.toLowerCase(),r,h,b,x),C&&(n.onreadystatechange=C),"number"==typeof d&&d>0&&(n.timeout=d),n.withCredentials=m,w&&(n.responseType=w),"object"==typeof f&&Nt(f).map((function(e){n.setRequestHeader(e,f[e])}));var o,i=function(e){return function(o){t(o),null==e||e.call(n,o)}},a={loadstart:S,progress:E,abort:i(k),timeout:i(I),error:i(j),load:(o=N,function(t){e(t),null==o||o.call(n,t)}),loadend:M};Nt(a).forEach((function(e){var t=a[e];t&&n.addEventListener(e,t)})),n.send(u)}))).then((function(t){var r=t.target.status;if(-1!==Ot.indexOf(r))n(t.target.response);else{var i=new Error("The file does not support get requests, responseStatus ".concat(r,", '").concat(e,"'."));console.error(i),o(i)}})).catch((function(e){console.error(new Error("Failed to request file. ".concat(e))),o(e)}))}))}function At(e,t){return $t(e,t).then((function(e){return function(e){return new Promise((function(t,n){var o=kt(e),r=o?Mt(e):e,i=new Image;o||(i.crossOrigin="anonymous"),i.onload=function(){t(i)},i.onerror=function(t){o&&Zt(r),console.error("[loadImage] The image load failed, '".concat(e,"'.")),n(t)},i.src=r}))}(e).then((function(t){return{blob:e,image:t}}))}))}function zt(e){return"function"==typeof e||function(e){return null!==e&&"object"==typeof e}(e)}var Tt=/^0b[01]+$/i,Pt=/^0o[0-7]+$/i,Lt=/^[-+]0x[0-9a-f]+$/i;function Rt(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||Ct(e)===xt}(e))return NaN;if(zt(e)&&(e=Number(e)),"string"!=typeof e)return 0===e?e:+e;e=e.trim();var t=Tt.test(e);return t||Pt.test(e)?parseInt(e.slice(2),t?2:8):Lt.test(e)?NaN:+e}function Bt(e){return e?(e=Rt(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Dt(e,t){void 0===e&&(e=0),void 0===t&&(t=1),e=Bt(e),t=Bt(t);var n=vt(pt(e,t)||0),o=ht(mt(e,t)||0);if(n>o){var r=n;n=o,o=r}return ht(n+gt()*(o-n+1))}var Ht,Wt=Math.PI;!function(e){e[e.None=0]="None",e[e.Outer=1]="Outer",e[e.Inner=2]="Inner"}(Ht||(Ht={}));var Ft=[Ht.None,Ht.Outer,Ht.Inner];function Kt(e){return e[Dt(0,e.length-1)]}function Vt(e){var t={top:Kt(Ft),right:Kt(Ft),bottom:Kt(Ft),left:Kt(Ft)},n=Object.keys(t),o=["top","bottom"],r=["left","right"];if(t.top===Ht.Outer&&t.bottom===Ht.Outer?t[Kt(o)]=Ht.Inner:t.top!==Ht.Outer&&t.bottom!==Ht.Outer&&(t[Kt(o)]=Ht.Outer),t.left===Ht.Outer&&t.right===Ht.Outer?t[Kt(r)]=Ht.Inner:t.left!==Ht.Outer&&t.right!==Ht.Outer&&(t[Kt(r)]=Ht.Outer),e){var i=[],a=[];n.forEach((function(e){t[e]===Ht.Inner?i.push(e):t[e]===Ht.None&&a.push(e)})),2===e?i.forEach((function(e){return t[e]=Ht.None})):3===e?0===i.length?t[Kt(a)]=Ht.Inner:2===i.length&&(t[Kt(i)]=Ht.None):4==e&&a.forEach((function(e){return t[e]=Ht.Inner}))}return t}function qt(e,t){void 0===t&&(t={});var n=t.x,o=void 0===n?0:n,r=t.y,i=void 0===r?0:r,a=t.w,l=void 0===a?60:a,c=t.h,s=void 0===c?60:c,u=t.needClosePath,d=void 0===u||u,f=t.points,p=t.margin,m=void 0===p?0:p;m=m<=0?0:m,"number"!=typeof f&&f||(f=Vt(f));var g=.15*(Math.min(l,s)-2*m),h=Math.hypot(g,g)/2,v=g+h,b={x:o+m,y:i+m,w:l-v-2*m,h:s-v-2*m},y=b.w/2,x=b.h/2;f.left===Ht.Outer&&(b.x+=v),f.top===Ht.Outer&&(b.y+=v),e.beginPath(),e.lineWidth=2,e.moveTo(b.x,b.y),f.top!==Ht.None&&(e.lineTo(b.x+y-h,b.y),f.top===Ht.Inner?e.arc(b.x+y,b.y+h,g,1.25*Wt,1.75*Wt,!0):e.arc(b.x+y,b.y-h,g,.75*Wt,.25*Wt)),e.lineTo(b.x+b.w,b.y),f.right!==Ht.None&&(e.lineTo(b.x+b.w,b.y+x-h),f.right===Ht.Inner?e.arc(b.x+b.w-h,b.y+x,g,1.75*Wt,.25*Wt,!0):e.arc(b.x+b.w+h,b.y+x,g,1.25*Wt,.75*Wt)),e.lineTo(b.x+b.w,b.y+b.h),f.bottom!==Ht.None&&(e.lineTo(b.x+y+h,b.y+b.h),f.bottom===Ht.Inner?e.arc(b.x+y,b.y+b.h-h,g,.25*Wt,.75*Wt,!0):e.arc(b.x+y,b.y+b.h+h,g,1.75*Wt,1.25*Wt)),e.lineTo(b.x,b.y+b.h),f.left!==Ht.None&&(e.lineTo(b.x,b.y+x+h),f.left===Ht.Inner?e.arc(b.x+h,b.y+x,g,.75*Wt,1.25*Wt,!0):e.arc(b.x-h,b.y+x,g,.25*Wt,1.75*Wt)),e.lineTo(b.x,b.y),e.stroke(),d&&e.closePath()}function Xt(e,t,n,o){return new Promise((function(r){t?e.toBlob((function(t){r(t?URL.createObjectURL(t):e.toDataURL(n,o))}),n,o):r(e.toDataURL(n,o))}))}var Gt=new St({max:5,maxStrategy:"replaced"});Gt.cache.on("del",(function(e,t){try{t.image.src&&URL.revokeObjectURL(t.image.src)}catch(e){}}));var Qt=new WeakMap,_t="image/jpeg",Ut="image/png",Yt=[];function Jt(e,t){void 0===t&&(t={});var n=t.borderWidth,o=void 0===n?2:n,r=t.borderColor,i=void 0===r?"rgba(255,255,255,0.7)":r,a=t.fillColor,l=void 0===a?"rgba(255,255,255,0.7)":a,c=t.points,s=t.width,u=void 0===s?60:s,d=t.height,f=void 0===d?60:d,p=t.x,m=t.y,g=t.margin,h=void 0===g?2:g,v=t.equalHeight,b=void 0===v||v,y=t.imageWidth,x=t.imageHeight,w=t.bgWidth,C=t.bgHeight,S=t.bgOffset,E=void 0===S?[0,0]:S,k=t.bgImageType,I=void 0===k?_t:k,j=t.quality,N=void 0===j?.8:j,M=t.format,Z=void 0===M?"dataURL":M,O=t.cacheImage,$=void 0===O||O,A=t.autoRevokePreviousBlobUrl,z=void 0===A||A,T=t.ajaxOptions;return new Promise((function(t,n){var r=document.createElement("canvas"),a=document.createElement("canvas"),s=r.getContext("2d"),d=a.getContext("2d"),g=$?function(e){if(!zt(e))return String(e);if(!Qt.get(e)){var t="_"+Date.now();Qt.set(e,t)}return Qt.get(e)}(e):void 0;Gt.run((function(){return At(e,T)}),g).then((function(e){var g=e.image;y&&(g.width=y),x&&(g.height=x);var v="number"==typeof w&&w>0?w>u?w:u:g.width,S="number"==typeof C&&C>0?C>f?C:f:g.height;r.width=v,r.height=S;var k=v-u,j=S-f,M=void 0===p?Dt(u,k):p||0,O=void 0===m?Dt(0,j):m||0;M<0?M=0:M>k&&(M=k),O<0?O=0:O>j&&(O=j);var $="number"!=typeof c&&c?c:Vt(c),A="function"==typeof E?E(g.width,g.height):E;s.strokeStyle=i,s.lineWidth=o,s.fillStyle=l,qt(s,{x:M,y:O,w:u,h:f,points:$,margin:h}),s.fillStyle=l,s.fill(),s.globalCompositeOperation="destination-over",s.drawImage(g,A[0],A[1],g.width,g.height),a.width=v,a.height=S,d.strokeStyle=i,d.lineWidth=o,qt(d,{x:M,y:O,w:u,h:f,points:$,margin:h}),d.globalCompositeOperation="destination-over",d.clip(),d.drawImage(g,A[0],A[1],g.width,g.height);var T=d.getImageData(M,O,u,f);d.clearRect(0,0,v,S),a.width=u,a.height=b?S:f,d.putImageData(T,0,b?O:0);var P="blob"===Z,L=Xt(a,P,Ut,N),R=Xt(r,P,I,N);Promise.all([L,R]).then((function(e){var n=e[0],o=e[1];z&&(Yt.length&&(Yt.forEach((function(e){URL.revokeObjectURL(e)})),Yt.length=0),P&&Yt.push(o,n)),t({puzzleUrl:n,bgUrl:o,x:M,y:b?0:O})})).catch(n)})).catch(n)}))}var en=function(e){var t=e.ModalProps,n=e.onFinish,o=(0,p.useState)(),i=u()(o,2),l=i[0],s=i[1],d=(0,p.useRef)(),f=function(){var e=c()(r()().mark((function e(){var t,n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="/react/build/images/VerifCodeBg/img".concat(Math.floor(23*Math.random())+1,".jpg"),e.next=3,Jt(t,{imageHeight:180,imageWidth:360});case 3:return n=e.sent,s(n),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var e=c()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null!=t&&t.x&&t.x>l.x-5&&t.x-1)){e.next=6;break}return g.setFields([{name:"login",errors:["请输入正确的手机号或邮箱"]}]),o=1,e.abrupt("return",o);case 6:return e.next=8,t({login:n,type:1});case 8:return i=e.sent,a=i.status,l=i.message,a>0?o=2:(g.setFields([{name:"login",errors:[l]}]),o=1),e.abrupt("return",o);case 14:case"end":return e.stop()}}),e)}))),z.apply(this,arguments)}var T=function(){var e=c()(r()().mark((function e(){var o,i,a,l,c;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I(!0),g.getFieldValue("verify"),o=g.getFieldValue("login")){e.next=7;break}g.validateFields(["login"]),e.next=21;break;case 7:return e.next=9,t({login:o,type:1});case 9:if(1===(null==(i=e.sent)?void 0:i.status)){e.next=14;break}return g.setFields([{name:"login",errors:[null==i?void 0:i.message]}]),I(!1),e.abrupt("return");case 14:return e.next=16,n({login:o,type:1,smscode:(0,ye.M)(o)});case 16:a=e.sent,l=a.status,c=a.message,l<0&&(g.setFields([{name:"code",errors:[c]}]),I(!1)),w({type:ln.setTimer,payload:60});case 21:I(!1);case 22:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,p.useEffect)((function(){j>0&&setTimeout((function(){w({type:ln.setTimer,payload:j-1})}),1e3)}),[j]);var P=(0,p.useState)(0),L=u()(P,2),R=L[0];L[1],(0,p.useMemo)((function(){return"/rucaptcha?t="+(new Date).getTime()}),[R]);return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsxs)(b.Z,{layout:"vertical",form:g,style:a,initialValues:{autologin:!0,protool:!1},onFinish:function(e){return $.apply(this,arguments)},children:[(0,ce.jsx)(b.Z.Item,{name:"login",rules:[{required:!0,message:"请输入正确的手机号或邮箱"},{validator:function(e,t){return t?t.indexOf(" ")>-1?Promise.reject("请输入正确的手机号或邮箱"):on.test(t)?Promise.resolve():Promise.reject("请输入正确的手机号或邮箱"):Promise.resolve()}}],children:(0,ce.jsx)(x.Z,{style:nn,autoComplete:"new-login",size:"middle",placeholder:"请输入有效的手机号/邮箱号",onBlur:function(){return A},onChange:function(){return g.setFieldsValue({verify:0})}})}),(0,ce.jsx)(b.Z.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}],children:(0,ce.jsx)(x.Z,{suffix:(0,ce.jsxs)(C.ZP,{loading:k,type:"link",onClick:function(e){e.stopPropagation(),g.getFieldValue("login")?O(!0):g.validateFields(["login"])},disabled:j>0,children:[" ",0===j?"获取验证码":"".concat(j,"秒可重新获取")]}),style:{paddingRight:2,height:48},placeholder:"请输入验证码",size:"middle"})}),(0,ce.jsx)(be.Z,{title:(0,ce.jsxs)("div",{children:[(0,ce.jsx)("span",{children:"长度为8-16位字符"}),(0,ce.jsx)("br",{}),(0,ce.jsx)("span",{children:"字母/数字以及标点符号至少包含2种"}),(0,ce.jsx)("br",{}),(0,ce.jsx)("span",{children:"不允许有空格、中文"})]}),placement:"topRight",children:(0,ce.jsx)(b.Z.Item,{name:"password",rules:[{required:!0,message:"请输入8-16位密码,区分大小写、不能使用空格"},{validator:function(e,t){if(!t)return Promise.resolve();if(!rn.test(t))return Promise.reject("请输入8~16位字符,字母、数字和特殊符号至少包含2种");if(t.indexOf(" ")>-1)return Promise.reject("请输入8-16位密码,区分大小写、不能使用空格");var n=t.length;return n>=8&&n<=16?Promise.resolve():Promise.reject("请输入8-16位密码,区分大小写、不能使用空格")}}],children:(0,ce.jsx)(x.Z.Password,{autoComplete:"new-password",style:nn,size:"middle",placeholder:"请输入8~16位字符,字母、数字和特殊符号至少包含2种"})})}),(0,ce.jsx)(b.Z.Item,{children:(0,ce.jsxs)(C.ZP,{size:"middle",type:"primary",htmlType:"submit",block:!0,style:nn,className:"font16",children:[" ",s," "]})})]}),(0,ce.jsx)(tn,{ModalProps:{open:Z,onCancel:function(){O(!1)}},onFinish:function(){O(!1),T()}})]})})),un=n(89392),dn={height:48},fn=/(\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b)|(^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$)/i,pn=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,mn={timer:0},gn=function(e){return e[e.setTimer=0]="setTimer",e}(gn||{});function hn(e,t){if(t.type===gn.setTimer)return a()(a()({},e),{},{timer:t.payload});throw new Error}var vn=(0,v.connect)((function(e){return{globalSetting:e.globalSetting}}))((function(e){var t=e.validateName,n=e.getCode,o=e.register,i=e.style,a=void 0===i?{}:i,l=e.buttonText,s=void 0===l?"注册":l,d=(e.globalSetting,b.Z.useForm()),f=u()(d,1)[0],m=(0,p.useReducer)(hn,mn),g=u()(m,2),h=g[0],v=g[1],y=(0,p.useState)(!1),w=u()(y,2),S=w[0],E=w[1],k=h.timer,I=(0,p.useState)(!1),j=u()(I,2),N=j[0],M=j[1];function Z(){return Z=c()(r()().mark((function e(t){var n,i,a,l,c;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.login,i=t.new_password,a=t.code,e.next=3,o({login:n,new_password:i,code:a});case 3:if(l=e.sent,c=l.message,!(l.status<0)){e.next=9;break}return f.setFields([{name:"code",errors:[c]}]),e.abrupt("return");case 9:location.reload();case 10:case"end":return e.stop()}}),e)}))),Z.apply(this,arguments)}var O=function(){var e=c()(r()().mark((function e(){var t,o,i,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f.getFieldValue("verify"),t=f.getFieldValue("login"),e.next=4,f.validateFields(["login"]);case 4:if(t){e.next=8;break}f.validateFields(["login"]),e.next=17;break;case 8:return E(!0),e.next=11,n({login:t,type:2,smscode:(0,ye.M)(t)});case 11:o=e.sent,i=o.status,a=o.message,i<0&&f.setFields([{name:"code",errors:[a]}]),v({type:gn.setTimer,payload:60}),E(!1);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,p.useEffect)((function(){k>0&&setTimeout((function(){v({type:gn.setTimer,payload:k-1})}),1e3)}),[k]);var $=function(){var e=c()(r()().mark((function e(n,o){var i,a,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:if(!(o.indexOf(" ")>-1)){e.next=4;break}return e.abrupt("return",Promise.reject("请输入正确的手机号或邮箱"));case 4:if(!fn.test(o)){e.next=18;break}return e.next=7,t({login:o,type:2});case 7:if(i=e.sent,a=i.status,l=i.message,!(a>0)){e.next=15;break}return e.abrupt("return",Promise.resolve());case 15:return e.abrupt("return",Promise.reject(l));case 16:e.next=19;break;case 18:return e.abrupt("return",Promise.reject("请输入正确的手机号或邮箱"));case 19:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsxs)(b.Z,{layout:"vertical",form:f,style:a,initialValues:{autologin:!0,protool:!1},onFinish:(0,un.throttle)((function(e){return Z.apply(this,arguments)}),2e3),children:[(0,ce.jsx)(b.Z.Item,{name:"login",rules:[{required:!0,message:"请输入正确的手机号或邮箱"},{validator:(0,un.throttle)($,400)}],children:(0,ce.jsx)(x.Z,{style:dn,autoComplete:"new-login",size:"middle",placeholder:"请输入有效的手机号/邮箱号",onChange:function(){return f.setFieldsValue({verify:0})}})}),(0,ce.jsx)(be.Z,{title:(0,ce.jsxs)("div",{children:[(0,ce.jsx)("span",{children:"长度为8-16位字符"}),(0,ce.jsx)("br",{}),(0,ce.jsx)("span",{children:"字母/数字以及标点符号至少包含2种"}),(0,ce.jsx)("br",{}),(0,ce.jsx)("span",{children:"不允许有空格、中文"})]}),placement:"topRight",children:(0,ce.jsx)(b.Z.Item,{name:"new_password",rules:[{required:!0,message:"请输入8-16位新密码,区分大小写、不能使用空格"},{validator:function(e,t){if(!t)return Promise.resolve();if(!pn.test(t))return Promise.reject("请输入8~16位字符,字母、数字和特殊符号至少包含2种");if(t.indexOf(" ")>-1)return Promise.reject("请输入8-16位新密码,区分大小写、不能使用空格");var n=t.length;return n>=8&&n<=16?Promise.resolve():Promise.reject("请输入8-16位新密码,区分大小写、不能使用空格")}}],children:(0,ce.jsx)(x.Z.Password,{autoComplete:"new-password",style:dn,size:"middle",placeholder:"输入8~16位新密码,区分大小写"})})}),(0,ce.jsx)(b.Z.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}],children:(0,ce.jsx)(x.Z,{suffix:(0,ce.jsxs)(C.ZP,{loading:S,type:"link",onClick:function(e){e.stopPropagation(),f.getFieldValue("login")?M(!0):f.validateFields(["login"])},disabled:k>0,children:[" ",0===k?"获取验证码":"".concat(k,"秒可重新获取")]}),style:{paddingRight:2,height:48},placeholder:"请输入验证码",size:"middle"})}),(0,ce.jsx)(b.Z.Item,{children:(0,ce.jsxs)(C.ZP,{size:"middle",type:"primary",htmlType:"submit",block:!0,style:dn,className:"font16",children:[" ",s," "]})})]}),(0,ce.jsx)(tn,{ModalProps:{open:N,onCancel:function(){M(!1)}},onFinish:function(){M(!1),O()}})]})}));Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var bn="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSLlm77lsYJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4PSIwIiB5PSIwIiB2aWV3Qm94PSIwIDAgNjYgNjYiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDY2IDY2IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGU+LnN0MXtmaWxsOiMwMGI5MTN9PC9zdHlsZT48ZyBpZD0i6aG16Z2iLTEiPjxnIGlkPSLnmbvlvZVfeDJGX+azqOWGjCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEwODEgLTM4MCkiPjxnIGlkPSLnvJbnu4QtMTjlpIfku70iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwNjMgMjM4KSI+PGcgaWQ9Iue8lue7hC0xMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTggMTQyKSI+PGcgaWQ9Iue8lue7hC0xMCI+PGNpcmNsZSBpZD0i5qSt5ZyG5b2iIiBjeD0iMzMiIGN5PSIzMyIgcj0iMzMiIHN0eWxlPSJmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsOiNjNmY0YzkiLz48ZyBpZD0i57yW57uEIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMiAxNS40MjkpIj48cGF0aCBpZD0i6Lev5b6EIiBjbGFzcz0ic3QxIiBkPSJNMTYuMyAyMi44YzAtNi42IDYtMTIuMSAxMy43LTEyLjFoLjRDMjkuMSA0LjYgMjIuNyAwIDE1LjQgMCA3LjIgMCAuNCA1LjguNCAxMy4xYzAgNC4zIDIuMiA3LjcgNiAxMC41bC0xLjUgNC43IDUuMi0yLjdjMS43LjQgMy41LjcgNS4zLjguNSAwIC45IDAgMS40LS4xbC4xLS4xYy0uNC0xLjEtLjYtMi4zLS42LTMuNHoiLz48cGF0aCBpZD0i6Lev5b6EXzFfIiBjbGFzcz0ic3QxIiBkPSJNNDIuNCAyMi40YzAtNi4yLTUuOC0xMS4yLTEyLjQtMTEuMi03IDAtMTIuNCA1LjEtMTIuNCAxMS4yUzIzLjEgMzMuNiAzMCAzMy42YzEuNS0uMSAzLS4zIDQuNC0uOGw0IDIuMy0xLTMuOGMyLjgtMi4zIDUtNS41IDUtOC45eiIvPjxwYXRoIGlkPSLlvaLnirYiIGQ9Ik0yMS42IDZjMS0uMSAxLjguNyAxLjkgMS43VjhjLjEgMS0uNyAxLjktMS42IDJoLS4yYy0xLjEuMS0yLjEtLjgtMi4yLTIgMC0xLjIgMS0yLjEgMi4xLTJ6TTExLjIgOS45QzEwLjEgMTAgOS4xIDkuMiA5IDhjLjEtMS4yIDEuMS0yLjEgMi4yLTIgMS0uMSAxLjguNyAxLjggMS44VjhjLjEgMS0uNyAxLjktMS42IDJoLS4yem0xNS4yIDEwLjdjLS44LS4xLTEuNC0uNy0xLjUtMS42LjEtLjguNy0xLjUgMS41LTEuNi45LS4xIDEuNy42IDEuOSAxLjYtLjIgMS0xIDEuNy0xLjkgMS42em04LjIgMGMtLjgtLjEtMS40LS43LTEuNS0xLjYuMS0uOC43LTEuNSAxLjUtMS42LjktLjEgMS43LjYgMS45IDEuNi0uMiAxLTEgMS43LTEuOSAxLjZ6IiBzdHlsZT0iZmlsbDojZmZmIi8+PC9nPjwvZz48L2c+PC9nPjwvZz48L2c+PC9zdmc+";Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var yn="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTUxMiAwQzIyOS4zNTYgMCAwIDIyOS4zNTYgMCA1MTJzMjI5LjM1NiA1MTIgNTEyIDUxMiA1MTItMjI5LjM1NiA1MTItNTEyUzc5NC42NDQgMCA1MTIgMHptMjM1Ljc1IDY0Ny42MDNjLTEwLjcgNS40MTctMjcuNDE3LTYuOTYzLTQzLjM0LTMwLjE1Ny02LjI2NyAyNS4yNjItMjEuNjczIDQ3Ljk1LTQzLjYwNyA2Ni4yNTMgMjMuMjQ0IDguNTA1IDM4LjEyMyAyMi4xNyAzOC4xMjMgMzcuODk4IDAgMjUuNTE5LTQwLjk5IDQ2LjQwMy05MS4zODcgNDYuNDAzLTQ1LjQzIDAtODMuMjg3LTE3LjAxNC05MC4wNzYtMzguOTI3aC0xMC45NjdDNDk5LjQ0NiA3NTEuMjQzIDQ2MS44NSA3NjggNDE2LjQyIDc2OGMtNTAuMzk2IDAtOTEuMzg3LTIwLjYyMy05MS4zODctNDYuNDAzIDAtMTUuNzI4IDE1LjE0NS0yOS4zODggMzguMTE4LTM3Ljg5OC0yMS45MjktMTguMzA0LTM3LjU5Ni00MS4yNTItNDMuNjAyLTY2LjI1My0xNS42NjcgMjMuMTk0LTMyLjYzNCAzNS44My00My4zNCAzMC4xNTctMTUuNjY4LTcuOTg3LTEyLjUzNC01MS4wNDYgNy4wNS05Ni4xNTkgMTUuMTQ1LTM1LjMxNyAzNi4wMy02MS42MTQgNTEuNjk3LTY3LjI4Ny0uMjYyLTIuMzE5LS4yNjItNC42MzgtLjI2Mi02LjcwNyAwLTEzLjY2IDMuOTE3LTI2LjI5MSAxMC40NDUtMzYuNjA4di0yLjMxNGMwLTYuMTkgMS41NjctMTIuMTE5IDQuMTc4LTE3LjI3NUMzNTMuMjMgMzI5LjIxNiA0MTQuMDcgMjU2IDUxMi4yNDEgMjU2czE1OS4wMDYgNzMuMjE2IDE2Mi45MjMgMTY1LjI1M2EzOC4zNzQgMzguMzc0IDAgMCAxIDQuMTc4IDE3LjI3NXYyLjMyYzYuNTI4IDEwLjMxMSAxMC40NDUgMjIuOTQyIDEwLjQ0NSAzNi42MDcgMCAyLjMyIDAgNC42NC0uMjYxIDYuNzAyIDE1LjkyMyA1LjY3MyAzNi41NTcgMzEuOTcgNTEuNjk2IDY3LjI4NyAxOS4wNjIgNDUuMTE4IDIyLjE5NiA4OC4xNjcgNi41MjggOTYuMTZ6IiBmaWxsPSIjMzc4QUZFIi8+PC9zdmc+",xn="other-login___Jd48Z",wn="wechat-qrcode___bLWkh",Cn="driver___IuicK",Sn=n(67390),En=window.location.host,kn=Sn.Z.QQLoginCB,In=function(e){var t=e.onWechatLogin,n=e.setType,o=e.loginType;function r(){return(0,ye.b9)()?"https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=".concat(kn,"%2fotherloginqq&state=null,").concat(En,"&response_type=code"):"https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=".concat(kn,"%2fotherloginqq&state=null,").concat(En,"&response_type=code")}return(0,ce.jsxs)(ce.Fragment,{children:[(1===o||2===o)&&(0,ce.jsxs)("div",{style:{marginTop:(0,ye.WX)()?192:92,marginBottom:60},className:"font16 tc",children:["没有账号?",(0,ce.jsx)("span",{onClick:function(){return n(3)},className:"c-blue current",children:"免费注册"})]}),(3===o||4===o||5===o)&&(0,ce.jsxs)("div",{style:{marginTop:(0,ye.WX)()?192:92,marginBottom:60},className:"font16 tc",children:["已有账号?",(0,ce.jsx)("span",{onClick:function(){return n(1)},className:"c-blue current",children:"立即登录"})]}),!(0,ye.WX)()&&(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("p",{className:Cn,children:(0,ce.jsx)("span",{style:{color:"#444444"},children:"快速登录"})}),(0,ce.jsxs)("div",{className:xn,children:[(0,ye.s2)()&&(0,ye.IS)()&&(0,ce.jsx)("a",{title:"微信登录",style:{margin:0},onClick:t,children:(0,ce.jsx)("img",{src:bn,alt:"微信",width:66})}),(0,ye.s2)()&&!(0,ye.IS)()&&(0,ce.jsx)("a",{title:"qq登录",rel:"noreferrer noopener nofollow",style:{margin:0},href:r(),children:(0,ce.jsx)("img",{src:yn,alt:"QQ",width:66})}),(0,ye.b9)()&&(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("a",{title:"微信登录",style:{marginRight:(0,ye.IS)()?0:40},onClick:t,children:(0,ce.jsx)("img",{src:bn,alt:"微信",width:66})}),!(0,ye.IS)()&&(0,ce.jsx)("a",{title:"qq登录",href:r(),children:(0,ce.jsx)("img",{src:yn,alt:"QQ",width:66})})]})]})]})]})};function jn(e){e.onBack;var t=e.setType;return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("div",{style:{overflow:"hidden",width:300,height:300,margin:"20px auto 0 auto"},children:(0,ce.jsx)("iframe",{className:wn,frameBorder:"0",sandbox:"allow-scripts allow-same-origin allow-top-navigation",scrolling:"no",src:"https://open.weixin.qq.com/connect/qrconnect?appid=wx6b119e2d829c13fa&redirect_uri=".concat(kn,"%2fotherloginstart&response_type=code&scope=snsapi_login&state=null,").concat(En,"#wechat_redirect")})}),(0,ce.jsx)("div",{style:{marginTop:17,marginBottom:10},className:"font16 bold tc c-blue current",children:(0,ce.jsx)("span",{onClick:function(){return t(1)},style:{borderBottom:"2px solid #0152d9"},children:"返回账号登录"})}),(0,ce.jsxs)("div",{className:"tc",style:{paddingTop:14,paddingBottom:40},children:["登录即代表您已阅读并同意",(0,ce.jsx)("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank",children:"《服务协议条款》"})]})]})}var Nn={height:48},Mn=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,Zn={timer:0},On=function(e){return e[e.setTimer=0]="setTimer",e}(On||{});function $n(e,t){if(t.type===On.setTimer)return a()(a()({},e),{},{timer:t.payload});throw new Error}var An=(0,v.connect)((function(e){return{globalSetting:e.globalSetting}}))((function(e){e.validateName,e.getCode;var t=e.register,n=e.style,o=void 0===n?{}:n,i=e.buttonText,a=void 0===i?"注册":i,l=(e.globalSetting,b.Z.useForm()),s=u()(l,1)[0],d=(0,p.useReducer)($n,Zn),f=u()(d,2),m=f[0],g=f[1],h=(0,p.useState)(!1),v=u()(h,2),y=(v[0],v[1],m.timer);function w(){return w=c()(r()().mark((function e(n){var o,i,a,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.old_password,i=n.newPassword,e.next=3,t({old_password:o,newPassword:i});case 3:if(a=e.sent,l=a.message,!(a.status<0)){e.next=9;break}return s.setFields([{name:"code",errors:[l]}]),e.abrupt("return");case 9:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}return(0,p.useEffect)((function(){y>0&&setTimeout((function(){g({type:On.setTimer,payload:y-1})}),1e3)}),[y]),(0,ce.jsxs)(b.Z,{layout:"vertical",form:s,style:o,initialValues:{autologin:!0,protool:!1},onFinish:function(e){return w.apply(this,arguments)},children:[(0,ce.jsx)(b.Z.Item,{name:"old_password",rules:[{required:!0,message:"请输入8~16位密码,区分大小写"}],children:(0,ce.jsx)(x.Z,{style:Nn,autoComplete:"new-login",size:"middle",type:"password",placeholder:"请输入旧密码",onChange:function(){return s.setFieldsValue({verify:0})}})}),(0,ce.jsx)(be.Z,{title:(0,ce.jsxs)("div",{children:[(0,ce.jsx)("span",{children:"长度为8-16位字符"}),(0,ce.jsx)("br",{}),(0,ce.jsx)("span",{children:"字母/数字以及标点符号至少包含2种"}),(0,ce.jsx)("br",{}),(0,ce.jsx)("span",{children:"不允许有空格、中文"})]}),placement:"topRight",children:(0,ce.jsx)(b.Z.Item,{name:"newPassword",rules:[{required:!0,message:"请输入8-16位新密码,区分大小写、不能使用空格"},{validator:function(e,t,n){t?t.indexOf(" ")>-1?n("请输入8-16位密码,区分大小写、不能使用空格"):t.length<8||t.length>16?n("请输入8-16位字符的新密码,区分大小写!"):Mn.test(t)?n():n("请输入8~16位字符,字母、数字和特殊符号至少包含2种"):n("请输入8-16位字符的新密码,区分大小写!")}}],children:(0,ce.jsx)(x.Z.Password,{autoComplete:"new-password",style:Nn,size:"middle",placeholder:"输入8~16位新密码,区分大小写"})})}),(0,ce.jsx)(be.Z,{title:(0,ce.jsxs)("div",{children:[(0,ce.jsx)("span",{children:"长度为8-16位字符"}),(0,ce.jsx)("br",{}),(0,ce.jsx)("span",{children:"字母/数字以及标点符号至少包含2种"}),(0,ce.jsx)("br",{}),(0,ce.jsx)("span",{children:"不允许有空格、中文"})]}),placement:"topRight",children:(0,ce.jsx)(b.Z.Item,{name:"againPassword",rules:[{required:!0,message:"请再次输入新密码"},{validator:function(e,t,n){t!=s.getFieldsValue().newPassword?n("两次输入的新密码必须一致!"):n()}}],children:(0,ce.jsx)(x.Z.Password,{autoComplete:"new-password",style:Nn,size:"middle",placeholder:"请再次输入新密码"})})}),(0,ce.jsx)(b.Z.Item,{children:(0,ce.jsxs)(C.ZP,{size:"middle",type:"primary",htmlType:"submit",block:!0,style:Nn,className:"font16",children:[" ",a," "]})})]})})),zn=n(52017),Tn=n(77019),Pn=n(5269),Ln=zn.Z.TabPane,Rn=function(e){e.dispatch,e.is_main_site;var t=e.is_local,n=e.style,o=void 0===n?{}:n,i=(0,p.useState)(!1),l=u()(i,2),s=(l[0],l[1]),d=(0,p.useState)("1"),f=u()(d,2),m=f[0],g=f[1],h=(0,p.useState)(1),v=u()(h,2),b=v[0],x=v[1],w=(0,p.useState)(),C=u()(w,2),E=C[0],k=C[1];function I(){x(1),s(!1)}function j(e){console.log(e),g(e)}S.Ol,S.o1,N=c()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.Gq)({phone:t.login,code:t.code});case 2:if(0!==(n=e.sent).status){e.next=7;break}return null!=n&&n.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==n?void 0:n.start_date)):localStorage.removeItem("extension-modal"),window.location.reload(),e.abrupt("return","/");case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})));var N,M,Z,O,$={buttonText:"注册并登录",validateName:S.Ol,getCode:S.o1,register:(M=c()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.z2)(a()({},t));case 2:if(0!==(n=e.sent).status){e.next=9;break}return"1"===localStorage.getItem("addinfo")?localStorage.setItem("addinfo","2"):localStorage.setItem("registeruser","1"),localStorage.removeItem("extension-modal"),y.ZP.info("注册并登陆成功"),e.abrupt("return","/");case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e)}))),function(e){return M.apply(this,arguments)})},A={buttonText:"修改密码",validateName:S.Ol,getCode:S.o1,register:(Z=c()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.Ex)(a()({login:E},t));case 2:return n=e.sent,y.ZP.info("修改密码成功"),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)}))),function(e){return Z.apply(this,arguments)})},z={buttonText:"修改并登录",validateName:S.Ol,getCode:S.o1,register:(O=c()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=c()(r()().mark((function e(n){var o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.new_password_confirmation=t.new_password,e.next=3,(0,S.c0)(a()({},t));case 3:if(0!==(o=e.sent).status){e.next=9;break}return null!=o&&o.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==o?void 0:o.start_date)):localStorage.removeItem("extension-modal"),y.ZP.info("修改成功"),n("/"),e.abrupt("return","/");case 9:return n(o),e.abrupt("return",o);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return O.apply(this,arguments)})},T=(0,p.useCallback)((function(){switch(b){case 1:return(0,ce.jsxs)(zn.Z,{defaultActiveKey:m,onChange:j,className:pe,children:[(0,ce.jsx)(Ln,{tab:"账号登录",children:(0,ce.jsx)("div",{className:"mt20",children:"1"===m&&(0,ce.jsx)(ve,{setusername:k,setType:x})})},"1"),(0,ce.jsx)(Ln,{tab:"新用户注册",children:(0,ce.jsx)("div",{className:"mt20",children:(0,ce.jsx)(sn,a()({},$))})},"3")]});case 2:return(0,ce.jsx)(jn,{setType:x,onBack:I});case 3:return(0,ce.jsxs)("div",{className:"ml40 mr40",children:[(0,ce.jsx)("h1",{className:"font18 mb20 mt35",children:"新用户注册"}),(0,ce.jsx)(sn,a()({},$))]});case 4:return(0,ce.jsxs)("div",{className:"ml40 mr40",children:[(0,ce.jsxs)("div",{className:"flex item-center gap-20px",children:[(0,ce.jsx)("h1",{className:"font18 mb20 mt35 current-primary-hover",onClick:function(){x(1)},children:"返回登录"}),(0,ce.jsx)("h1",{className:"font18 mb20 mt35",children:"找回密码"})]}),(0,ce.jsx)(vn,a()({},z))]});case 5:return(0,ce.jsxs)("div",{className:"ml40",children:[(0,ce.jsx)("h1",{className:"font18 mb20 mt35",children:"修改密码"}),(0,ce.jsx)(An,a()({},A))]})}}),[b,m]);return(0,ce.jsx)("div",{className:ue,style:o,children:(0,ce.jsxs)(Tn.Z,{children:[(0,ce.jsx)(Pn.Z,{flex:"1",children:T()}),(0,ce.jsx)(Pn.Z,{flex:"295px",className:de,children:!t&&(0,ce.jsx)(In,{loginType:b,setType:x,onWechatLogin:function(){(0,ye.s2)()||(0,ye.IS)()?(0,ye.Or)():(x(2),s(!0))}})})]})})},Bn="popLogin___R8wQQ",Dn=(0,v.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t,n,o=e.user,r=e.globalSetting,i=(e.loading,e.dispatch),a=null===(t=r.setting)||void 0===t?void 0:t.main_site,l=null===(n=r.setting)||void 0===n?void 0:n.is_local;return(0,ce.jsx)(g.Z,{centered:!0,open:o.showPopLogin,footer:null,width:l?420:765,keyboard:!1,maskClosable:!1,wrapClassName:Bn,closable:o.showClosable,onCancel:function(){i({type:"user/showPopLogin",payload:{showPopLogin:!1,showClosable:!1}})},children:o.showPopLogin&&(0,ce.jsx)(Rn,{is_main_site:a,is_local:l})})})),Hn=n(75914),Wn=n(1560),Fn=n(79723),Kn={modalWrap:"modalWrap___bBTZj",formWrap:"formWrap___aTC2c",staffWrap:"staffWrap___Vt2Lh"},Vn=n.p+"static/touge_code.728ce351.jpg",qn=n.p+"static/touge_code6.e67b4cee.jpg",Xn=n(56007),Gn="tilte___IfiMG",Qn="flexRow___pQP78",_n="flexColumn___xrBZQ",Un="img___GoWZu",Yn="content___pumTK",Jn=(0,v.connect)((function(e){var t=e.paperlibrary,n=e.loading;return{paperlibrary:t,globalSetting:e.globalSetting,loading:n.effects}}))((function(e){var t=e.visible,n=e.occupationValue,o=e.onCancel,r=void 0===o?function(){}:o,i=function(){return(0,ce.jsxs)("div",{className:_n,children:[(0,ce.jsx)("img",{className:Un,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM64NPsll7YCZBYQtQMAmFPayz2ZPcNCFmvpdxrzR56bG+WPGqQc79PoShOEKGLMQ1hbcOstfsSA8j4wpcrIbQbDFTFzfmaeSlY0ZkB14bT5suIFBtGUXMzj6YzTChbQvXMifN+ghemtMw8Z90WT+74gBWbu9Cv0979HJyvyllI6JkKcjRkQ/MJvR1LbamKUlEWUpNyDbt6oJpeJ2GmCdeDQaAp7ayN14B4b1VVVYapo39Wd1KwJywVy/Tnjt3VnlcsHosixEIleZrNa+cCF/3hzGhOq2bFBq2am7NJ3q2l1GZgSDQTMw9U2gqsmty/0pXQTOrmVMQ950xp4xXZjevthPX3RadMl/u1kzmTTpnM/Dy9xsDZ2FwBXWqG7L+aPJukepHQBF6oE6I5Ex7RCfwCpVUVOwx5/jabJ7dSKX+xucvBxoeBw4vRG4djBSl1M1kcFMfRHo5ym/9H3aTLYGNYVBsMDc8YU7fdxGTMXiBhR5bZTYhOe1kAdD5MIv/RgtrH+MY6IgTebqGaQl799DW7G+8LwmdpxOaYOG4RCyfz3DS89+p8Jx8xlvEZF7GcyN8pKgGhjkmTj9QVk2nl5gnjJ3ftsZ1VBxeIU7EAqhFkUWYv+iEydnPgcmd7BTJaOIBJ0LOyKkVZZw2b/mXbrsJzaxgpJOY48va8bg0FkO0gVOQQUli+PS8w1WKN+0oIj6idMKGBjsYNBRMBq8cKHMhlI7ijSAFhZwze06Aq6fBE5+FI/HMJi2z1iGOgoYLrVrhnIdll1VBjihFZjCB39xgCm6yszVAZMeAM7/AFz9hyvTHsvpinecjTcotRd4Yma6QMRxxXqu0DS5eSpommRc/6D8Akff5n10GGheBMxmodc9xMI+yomsx4yDzJAHa6YE1JIEpM6EC2UXRNLyb8PDRGeQzhmMXID9vzAGHuVGBtT7VY6BMQJkARR4d7REOyn7GVcvqGV6eOQv/sR0xce+xNQN/k7k7qEJ3uSlK2lTFRvOIA7DgMJhCytQCGV3EElzfxtZKwHPwsWf6ZioOOJ6GTfcz6Dm8vgz2MRmrJJiGX/G2IDGTrnbWW5od3PGXG9R5dmbtukR+qLBCxIQ17jGwM67JwAg8ypL5lVPOfUTHdc/VWBAvTR8VypwHWhBCxfyIW+eB1z+k6fpDCfieWEDR3j0z/HC5LxsQmQChKMKRMo2Zd6glwgVTyTPIjEgz6QEDdmJ7oJ9N0deMwuonR6hoTIfBUFpwjTqtMYIxIiornBp7rkY8+jZeSLgK8SeCDZxGDsXLs0tiLn0xalw2b3Que5IpvpuQ9QXuZCipPPF4dguud/XeRt2FXAj3IkgLDIdlY+ODMIJ/LfOB4b5rnPhV0LOADVlWsBn99Ix5VOo9/enLrb8H80nuXyh1Jldgek42Me0dJfTxB1qyiRy3bXfb+JxL/JIy9F3utxxSZrok+MWzjPgxjmxTG0ySKcjvKJ1m4UH+6L3oVK4JUehcpELioYOrWcdsUbmfRY9LrQmxEmBr7XztgHV5KKXciyBSSAaoM8ZA0kwc2R3tO4j4m1JWkTqIRopebLZy4G57/De2Q90PxshVt0ILPqGyPD74MBaPlIYmNoY3V6PefoY8+tefIUJhWtShSxoZIval4mz395l4fICbCNS1VOABV/GwRCZIx9HaOhhSJDxEYr7hr5jShCSsf16xiaYcGVyb+juEq2sgFU/5xXgvlfp/BrTV8M0vc+2Ue2nOdVTiLnZYLNZdnKVKkY1pKNC22reD10OKb+Ik5x7hSvFK7s/wNfhQ5uiYP7YCuxfV64Rh06MtI+22JbGYw7x6VGyd5XZztYmDPKl2OZ9KKpWDq+9Lb61/bkcRBUiww/F+vo2s+RYf3aFP3Z9u62pieHzU9q2pzAe7VHiVo4SgD8vH4gwS83z/algRCWdMreIqqJY98Ripm9z6phWpCC+9v1jL3096tr350GbtJ0XjLivSFkcU8LsJ7Xz+e6V/3dMRZFmBD6ixvRw+2vMC1f5oBuZxgxIl9oPq5ewCOVzaSFl0WPGd+gUMwEh/sPK8A+rl250qq3R+LgDUiN2a2Mzwsv8GJP6sjMp5xuna6LSGzXzL8HvQjBpp3n5Up9MjJf+B5WVB7lfjXHfAAAAAElFTkSuQmCC"}),(0,ce.jsx)("span",{className:Yn,children:"未职业认证"})]})},a=function(){return(0,ce.jsxs)("div",{className:_n,children:[(0,ce.jsx)("img",{className:Un,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjPjBP0aCsjr1D01USCQ6oosyiLF8xMGqc2BHauUj1I2Ntghs7dqytuu99/j7nfOee9/73js+jKd53+d5n3Oe5/zO8zznOafX4EO2ta/bhqlJfM4adFJ1hQWyxiIrM5QNG2CY7EnKei5agMf7V5pR9X3QRv0P1pr77WaO3AGLDoKokZYlY2hBtFqLDHLse9ZE2De41hyoNiYte19AzX22nfPdT8NtnJr6UgkIAl/dTLKXwHupeM9gqzmcBpH8rm6JI7ZYm3nhBfyAQHYlFcr4NL6yTn4kEamPxkxkutevx+5Hjcmnh+u7KqB1fXbR+Az2U195UmyWnjH8E1ULvGgsKDlRghTg8MnhPQvrsPVYqxnziqV3BSCBGZuUe21LMUGUKGx6F42K14rZJ6oWeFG19+w3eGnhPLSlQUVOM34pTGfHsR95tCBPozlOFCh5q++YOj7uqyfUxhqDbAYQjxzB8JFuoJ739qRrZ22L5tKcSQx+KbFk1VN2b8Fa5ky8QvojhEVDAh9C1DAH2NYIdFwMNM3TCIsT5wwOnbH45SlgIufDG8arv+RnsQb0SPe/rzdd0lYrAmr+s23PWzznxdXfyRzK1gEPrgU+cbHBa5MWr07KmsHq+RaXLTAYGAe29wFDMyVb6RC62YmxJjKbBj/td5+rJ1LJzeL+ihWUbHkuzpe5GYM9lwsM8MSbwLcGDMZmqc1cWlhrsOsyi20rgTubDb45YDGl0MZNPio1yS1yec2NdsldDq18jEUvzzqjjVj2UMF9i/JRDpFeMc/ihqUWT71p8fU+i3fO0eisRZ4hOjNl8f1/MWxvG3wha/GxedKVntct0SB3tM1hCIAwix0+YZWEVKRhPYF3SRjLxa+tN6hlGX56hHky7RNXyevHAe/OWPxpyCoUuKpem0F9frGBaqGBd5QYOAI1Kw7aBjuFDuWbckQt0DQfYr5srhuGkXdJ5cG4JZP+P+pjWzIn9gR5Vx746ajrLc3Fc7BDWCJM4EZu0xoXkmJ4OLqMl9HYY6Svj3vgrQ00SI9Z5Y+ewJOua/BjBrjj5IEybzjbmkN2YyoMxBJR0OmF5UreSDAmygmoLHqY5/kb3FlfWgWsJygdAu4giOnVlG39KHCcO63/HfXRd/HkgQZbgcquKaAz85GbvrMTBduEApFqUYGKTz2mIH8D4zMGs+Q/swK4Zhkno+w8vbCEpeCLBPmNq4HFDOuP+4G/vBHblN3UIz1LmajnzShD5e8yHO4BcE4HxAnKX/STE0TUPsyJjjUBG5YC937ccE2hz+DEWYs9PNN/N0hjBc0mo2waIz4ey7xxcznq+pGtYf5wc/oW95eqZcjiosRiOYvebWssNrMOLb7IYHSaRXEUGGMBHJ0G/j5icZS16QTDZQjcY/AzsHw54MKoFrAFvBRla2xeFz3fUgugMED1dDUT9YFrgdalBi++Rf6IxaFTrENTCiHcExblLIYP0lpWvFuvZLjPA799+QLzcd8oZCMEUu+HlCCE70DXLAEeuN5g1SLgJ89b/PwYcPoce90yw6hy/RCSWh6fX+Ex87UNwKkJ4DfMLdcI1EVPwH0bUciGWRdW6ztZR+IBjlzCg/NHvBk1EvZ9h4BH+lmV6bQwXkUyp4RNeMQpckwdD6fbrgJ2f5IX7bME1cMebfVqLcJwZHK8kMfb0m098qJ6pDiHS7j3U8Dliw26/0Yw9EyBVVw6GjOHbtjUaFGrpbp646n4OoZ8+zrgbl5+jzPPup4AnmeIHSDaZrr4UhLzZrZwMioU8GSpcGkSDeJS4wlX8zTvbAaO0NCv/0Exz6zk+C0twE8/b3B7qyE4r6t+VgB8dYNBF8G8+jaw6zHgRR4nwa5bcGoBNh/11GQKOJjPubXRueU+l/0tTMT5LP8PHy1gbJKAKSuGnEw/i+QwQ3F3h/4VsfjZEYMMd9fOjcAdGw3+yR131x+BV1ggK1rZdCYXZfC4s738u/Zp5tG1aYV6LvNXtwDLmcg3/4ITaytzkEC5pjAxqdfw5P/hTbwLXcLb1iGL+XUG2wmoj7Xqrj8Ag6fD8PIrb3Lf89r7zNC3zXX0Clse+1gxCSis30+5gMnc1GDwylvAmQkaUxgJItyZg68Ghgx2/p4Xtpt5B7qGt0CiPnqSYA4wd04HmzEoT/w7rI6U69onIasDz6X7zAEeC71lhx0nj5iw2rITU8AMjwuf6J6K97nk6ctDwM79zBN65a/HPX+ctcrbFE3yRED7ShRRLrRXGIRFGF3L7rHtVHou6QHxlzKpx3gBm2AVDttcVI1QijIn4KuZ9WqaJ//QmDdOGKVJXM2iRJStOFfGbBr+nr/CFgFpQOOd+b08M3cVk0S9CYvvB6iyvwRK9uNzxFMncCHqHnow0xV/+pCFj7aN0W7DrRfqhLs5qlZc8AZJ26pXcn1iC/twSq5weuqvvxrH77j+mELUoznD/KJlHpKgqcsumjlve2mqJeWg0nIrtKSpVqHhxcU3wZTGvFRXa9pO7C3/77WqaYE6P23380rRGaaQzcqQVOZQce73YLhLe+rmmq1pMFJxuyytq4Ht15nP8ljpdpX7QiFRyU+EIIQiUJUJ8aKOp51MIereRNvVwAhHVQ8lAWZv588xBf0cY6v8HJMcSXCxQVG14F1ReqWXpeWe4Yf+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC"}),(0,ce.jsx)("span",{className:Yn,children:"未实名认证"})]})};return(0,ce.jsxs)(g.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:t,title:"因为以下原因,您暂时不能进行操作",okText:"立即认证",cancelText:"取消",width:"600px",onOk:function(){r(),v.history.push("/account/certification")},onCancel:function(){r()},children:[(0,ce.jsx)("div",{className:Gn,children:"请在完成条件后重试"}),(0,ce.jsx)("div",{className:Qn,children:3===n?(0,ce.jsxs)(ce.Fragment,{children:[a(),i()]}):2===n?i():a()})]})})),eo=n(14809),to={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},no=n(7657),oo=function(e,t){return p.createElement(no.Z,(0,eo.Z)({},e,{ref:t,icon:to}))};var ro=p.forwardRef(oo),io="bottom___z0ujX",ao="yes___hodnN",lo=n(32637),co=(0,v.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t=e.classroomList,n=e.dispatch;e.user;return(0,ce.jsxs)(g.Z,{open:"到期提示"===t.actionTabs.key,width:464,centered:!0,title:(0,ce.jsxs)("span",{children:[(0,ce.jsx)(ro,{style:{color:"#faad14",fontSize:"18px"}})," 提示"]}),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{key:""}})},footer:null,children:[(0,ce.jsxs)("div",{style:{textAlign:"center",marginBottom:30},children:[(0,ce.jsxs)("div",{style:{marginBottom:20,textAlign:"left"},children:["该教学课堂的试用已到期,目前无法支持",(0,ce.jsx)("span",{style:{color:"#FF9D18"},children:"超过50"}),"人的教学活动。如有任何疑问,请随时联系我们。感谢您的理解与支持!"]}),(0,ce.jsx)("img",{style:{width:130,height:130},src:lo})]}),(0,ce.jsx)("div",{className:io,children:(0,ce.jsx)(C.ZP,{className:ao,onClick:function(){n({type:"classroomList/setActionTabs",payload:{key:""}})},children:"我知道了"})})]})})),so=function(e){return e[e.Professor=1]="Professor",e[e.AssistantProfessor=2]="AssistantProfessor",e[e.Student=3]="Student",e}(so||{}),uo=(0,v.connect)((function(e){return{user:e.user,account:e.account}}))((function(e){var t=e.visible,n=e.user,o=(e.account,e.onCancel),i=void 0===o?function(){}:o,a=e.dispatch,l=(0,p.useState)(),s=u()(l,2),d=s[0],f=s[1],m=(0,p.useState)([]),h=u()(m,2),v=h[0],b=h[1],C=(0,p.useState)(!1),S=u()(C,2),E=S[0],k=S[1],I=(0,p.useState)(!1),j=u()(I,2),N=j[0],M=j[1],Z=(0,p.useState)(),O=u()(Z,2),$=O[0],A=O[1],z=(0,p.useState)(!1),T=u()(z,2);T[0],T[1];(0,p.useEffect)((function(){var e,t;null!=n&&null!==(e=n.userInfo)&&void 0!==e&&e.identity&&b(["student"===(null==n||null===(t=n.userInfo)||void 0===t?void 0:t.identity)?3:1])}),[n]);var P=function(e){var t=function(){window.location.href=(null==e?void 0:e.jump_url)||"/classrooms/".concat(null==e?void 0:e.course_id)};v.includes(so.Professor)?g.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,ce.jsx)("div",{className:"tc",children:(null==e?void 0:e.message)||"申请已提交,请等待审核"}),onOk:function(){t()}}):t()},L=function(){var e=c()(r()().mark((function e(){var t,n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=3;break}return y.ZP.info("邀请码不能为空"),e.abrupt("return");case 3:return e.next=5,(0,Fn.ZP)("/api/courses/get_pro_info.json",{method:"get",params:{invite_code:d}});case 5:if(null==(t=e.sent)||!t.need_pro_auth||v.includes(1)||v.includes(2)){e.next=10;break}return a({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth",code:d,checkedList:v}}),R(),e.abrupt("return");case 10:return k(!0),e.next=13,(0,Xn.cR)({invite_code:d,professor:v.includes(so.Professor)?1:null,assistant_professor:v.includes(so.AssistantProfessor)?1:null,student:v.includes(so.Student)?1:null});case 13:if(n=e.sent,k(!1),-4===(null==n?void 0:n.status)&&(i(),a({type:"classroomList/setActionTabs",payload:{key:"到期提示"}})),-12===(null==n?void 0:n.status)&&y.ZP.warning(null==n?void 0:n.message),-2!==(null==n?void 0:n.status)){e.next=31;break}if(R(),"该课堂要求成员完成实名认证"!==n.message){e.next=23;break}return M(!0),A(1),e.abrupt("return");case 23:if("该课堂要求成员完成职业认证"!==n.message){e.next=27;break}return M(!0),A(2),e.abrupt("return");case 27:if("该课堂要求成员完成实名和职业认证"!==n.message){e.next=31;break}return M(!0),A(3),e.abrupt("return");case 31:if(0!==(null==n?void 0:n.status)){e.next=36;break}return(0,ye.L9)(["教学课堂","首页","加入课堂"]),R(),null!=n&&n.course_id?P(n):y.ZP.success(n.message),e.abrupt("return");case 36:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=c()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(g.Z,{centered:!0,keyboard:!1,closable:!1,title:"加入课堂",open:t,confirmLoading:E,onOk:L,onCancel:R,children:(0,ce.jsxs)("div",{className:"tc",children:[(0,ce.jsxs)("div",{children:[(0,ce.jsx)("span",{children:"课堂邀请码:"}),(0,ce.jsx)(x.Z,{placeholder:"请输入5位课堂邀请码或6位分班邀请码",style:{width:270},value:d,onChange:function(e){e.target.value.length>=7?y.ZP.info("请输入5位课堂邀请码或6位分班邀请码!"):f(e.target.value)}})]}),(0,ce.jsxs)("div",{className:"mt10 font14",children:[(0,ce.jsx)("span",{children:"身份:"}),(0,ce.jsxs)(w.Z.Group,{value:v,onChange:function(e){return b(e)},children:[(0,ce.jsx)(w.Z,{value:so.Professor,disabled:v.includes(2),children:"教师"}),(0,ce.jsx)(w.Z,{value:so.AssistantProfessor,disabled:v.includes(1),children:"助教"}),(0,ce.jsx)(w.Z,{value:so.Student,children:"学生/参赛者"})]})]})]})}),(0,ce.jsx)(co,{}),(0,ce.jsx)(Jn,{visible:N,onCancel:function(){return M(!1)},occupationValue:$})]})})),fo=(0,v.connect)((function(e){var t=e.user,n=e.account,o=e.loading;return{user:t,account:n,globalSetting:e.globalSetting,loading:o.models.index}}))((function(e){var t=e.user,n=e.account,o=e.globalSetting,i=(e.loading,e.dispatch),l=b.Z.useForm(),s=u()(l,1)[0],d=Hn.default.Option,f=(0,p.useState)({}),m=u()(f,2),h=m[0],w=m[1],C=(0,p.useState)(""),S=u()(C,2),E=S[0],k=S[1],I=(0,p.useState)(!0),j=u()(I,2),N=j[0],M=j[1],Z=(0,p.useState)([]),O=u()(Z,2),$=O[0],A=O[1],z=(0,p.useState)(!1),T=u()(z,2),P=T[0],L=T[1],R=(0,p.useState)(!1),B=u()(R,2),D=B[0],H=B[1],W=b.Z.useForm(),F=u()(W,1)[0],K=(0,p.useState)(!1),V=u()(K,2),q=V[0],X=V[1],G=(0,p.useState)(!1),Q=u()(G,2),_=Q[0],U=Q[1],Y=(0,p.useRef)((0,un.throttle)((function(e){return te(e)}),1200,{leading:!0,trailing:!0})).current,J=function(){var e={identity:"",name:"",school_id:"",staff_id:"",student_id:"",technical_title:""};s.setFieldsValue(a()({},e)),w(a()({},e))};(0,p.useEffect)((function(){N||!h.school||$.find((function(e){return e.name===h.school}))?k(""):k("error")}),[N,h.school,$]);var ee,te=function(){var e=c()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return M(!0),e.next=3,i({type:"account/getSchoolOption",payload:{keyword:t,limit:99999,display_aliases:!0}});case 3:n=e.sent,A(null==n?void 0:n.schools),M(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ne=function(e){var t,n,r,i;return"number"===e?"teacher"===h.identity?"".concat(null==o||null===(t=o.setting)||void 0===t?void 0:t.homepage_tea_qq_number):"".concat(null==o||null===(n=o.setting)||void 0===n?void 0:n.homepage_stu_qq_number):"code"===e?"teacher"===h.identity?"".concat(Sn.Z.IMG_SERVER,"/").concat(null==o||null===(r=o.setting)||void 0===r?void 0:r.homepage_tea_qq_qrcode_url):"".concat(Sn.Z.IMG_SERVER,"/").concat(null==o||null===(i=o.setting)||void 0===i?void 0:i.homepage_stu_qq_qrcode_url):void 0},oe=function(){var e=c()(r()().mark((function e(o){var a,l,c,s,u,d,f,p,m,h,v,b;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(L(!0),c=o.name,s=o.identity,u=o.studentNo,d=o.jobTitle,f=o.manager,p=o.staff_id,m=o.school,h=null===(a=$.find((function(e){return e.name===m})))||void 0===a?void 0:a.id){e.next=6;break}return g.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,ce.jsxs)("div",{style:{textAlign:"center"},children:[(0,ce.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入头歌官方交流QQ群:",ne("number"),",联系群内的运营进行咨询和申请新增学校名称。"]}),(0,ce.jsx)("img",{src:ne("code"),style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"}),e.abrupt("return");case 6:return e.next=8,i({type:"account/updateAccount",payload:{id:null==t||null===(l=t.userInfo)||void 0===l?void 0:l.user_id,identity:s,name:c,school_id:h,staff_id:p,student_id:"student"===s?u:null,technical_title:d||f}});case 8:if(-1!==(null==(v=e.sent)?void 0:v.status)){e.next=11;break}return e.abrupt("return");case 11:v&&(y.ZP.info("保存成功"),null!==(b=n.basicInfo)&&void 0!==b&&b.base_info_completed||i({type:"user/getUserInfo"})),L(!1),J(),v&&(t.isCurrentPage?t.backurl?location.reload():U(!0):t.backurl&&(0,ye.xg)(t.backurl)),i({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!1,showClosable:!1,backurl:"",isCurrentPage:!1}});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(g.Z,{centered:!0,open:t.showUpdateProfilePanel,title:"完善个人资料",width:800,keyboard:!1,maskClosable:!1,wrapClassName:Kn.modalWrap,closable:t.showClosable,onCancel:function(){J(),t.backurl&&t.isCurrentPage&&v.history.replace(t.backurl),i({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!1,showClosable:!1,backurl:"",isCurrentPage:!1}})},onOk:c()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return X(!0),e.next=3,s.submit();case 3:case"end":return e.stop()}}),e)}))),okButtonProps:{loading:P},children:(0,ce.jsxs)("div",{children:[(0,ce.jsx)("div",{className:"mb30",children:"您还未完善个人资料,完善后即可使用此功能。"}),(0,ce.jsxs)(b.Z,{form:s,className:Kn.formWrap,layout:"horizontal",onValuesChange:function(e){w(a()({},s.getFieldsValue()))},onFinish:oe,scrollToFirstError:!0,size:"large",labelAlign:"right",children:[(0,ce.jsx)(b.Z.Item,{label:"姓名",name:"name",rules:[{required:!0,message:"请输入真实姓名,最大限制".concat(20,"个字符")},{validator:ye.HJ}],children:(0,ce.jsx)(x.Z,{placeholder:"请输入真实姓名,最大限制".concat(20,"个字符"),maxLength:20,showCount:!0})}),(0,ce.jsxs)(Tn.Z,{gutter:[10,0],children:[(0,ce.jsx)(Pn.Z,{children:(0,ce.jsx)(b.Z.Item,{label:"职业",name:"identity",rules:[{required:!0,message:"请先选择职业"}],children:(0,ce.jsxs)(Hn.default,{style:{width:120},placeholder:"请选择职业",children:[(0,ce.jsx)(d,{value:"teacher",children:"教师"}),(0,ce.jsx)(d,{value:"student",children:"学生"}),(0,ce.jsx)(d,{value:"professional",children:"专业人士"})]})})}),"student"===h.identity&&(0,ce.jsx)(Pn.Z,{flex:1,children:(0,ce.jsx)(b.Z.Item,{name:"studentNo",validateTrigger:"onBlur",dependencies:["school"],rules:[{whitespace:!0,message:"不能全为空"},{required:!0,message:"请输入学号"},{validator:(ee=c()(r()().mark((function e(n,o){var i,a,l,c;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Fn.ZP)("/api/users/accounts/".concat(null==t||null===(i=t.userInfo)||void 0===i?void 0:i.user_id,"/valid_student_id"),{method:"get",params:{school_id:(null==$||null===(a=$.find((function(e){return e.name===h.school})))||void 0===a?void 0:a.id)||(null==t||null===(l=t.userInfo)||void 0===l?void 0:l.school_id),student_id:o}});case 2:return(null==(c=e.sent)?void 0:c.status)<-1&&q&&(H(!0),X(!1)),e.abrupt("return",(null==c?void 0:c.status)<-1?Promise.reject((0,ce.jsxs)("span",{children:["该学号已被使用,如需继续使用该学号,请先",(0,ce.jsx)("a",{onClick:function(){H(!0)},children:"解绑学号"})]})):Promise.resolve());case 5:case"end":return e.stop()}}),e)}))),function(e,t){return ee.apply(this,arguments)})}],children:(0,ce.jsx)(x.Z,{size:"large",type:"text",placeholder:"请输入学号",showCount:!0,maxLength:20})})}),"teacher"===h.identity&&(0,ce.jsx)(Pn.Z,{children:(0,ce.jsx)(b.Z.Item,{initialValue:h.jobTitle,name:"jobTitle",rules:[{required:!0,message:"请先选择职称"}],children:(0,ce.jsxs)(Hn.default,{style:{width:120},size:"large",placeholder:"请选择职称",children:[(0,ce.jsx)(d,{value:"教授",children:"教授"}),(0,ce.jsx)(d,{value:"研究员",children:"研究员"}),(0,ce.jsx)(d,{value:"副教授",children:"副教授"}),(0,ce.jsx)(d,{value:"副研究员",children:"副研究员"}),(0,ce.jsx)(d,{value:"讲师",children:"讲师"}),(0,ce.jsx)(d,{value:"助理研究员",children:"助理研究员"}),(0,ce.jsx)(d,{value:"助理教授",children:"助理教授"})]})})}),"professional"===h.identity&&(0,ce.jsx)(Pn.Z,{children:(0,ce.jsx)(b.Z.Item,{initialValue:h.manager,name:"manager",rules:[{required:!0,message:"请先选择职称"}],children:(0,ce.jsxs)(Hn.default,{style:{width:180},size:"large",placeholder:"请选择职称",children:[(0,ce.jsx)(d,{value:"企业管理者",children:"企业管理者"}),(0,ce.jsx)(d,{value:"部门管理者",children:"部门管理者"}),(0,ce.jsx)(d,{value:"高级工程师",children:"高级工程师"}),(0,ce.jsx)(d,{value:"工程师",children:"工程师"}),(0,ce.jsx)(d,{value:"助理工程师",children:"助理工程师"})]})})}),("teacher"===h.identity||"professional"===h.identity)&&(0,ce.jsx)(Pn.Z,{flex:1,className:Kn.staffWrap,children:(0,ce.jsx)(b.Z.Item,{label:"工号",name:"staff_id",rules:[{validator:function(e,t){if(null===t||""===t||void 0===t)return Promise.resolve();return/[\u4E00-\u9FA5]/g.test(t)?Promise.reject("请勿输入中文字符"):t.length>20?Promise.reject("最大限制20个字符"):Promise.resolve()}}],children:(0,ce.jsx)(x.Z,{placeholder:"请输入工号",className:Kn.staffidInput,suffix:" ",showCount:!0,maxLength:20})})})]}),(0,ce.jsx)(b.Z.Item,{label:"学校/单位",name:"school",extra:!N&&h.school&&!(null!=$&&$.find((function(e){return e.name===h.school})))&&(0,ce.jsx)("div",{className:Kn.schoolHintWrap,children:(0,ce.jsxs)("span",{className:Kn.colorCDCDCD,children:["未找到包含“",h.school,"”的高校,如有需要,请",(0,ce.jsx)("span",{style:{color:"blue",cursor:"pointer"},onClick:function(){g.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,ce.jsxs)("div",{style:{textAlign:"center"},children:[(0,ce.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入头歌官方交流QQ群:","teacher"===h.identity?"727685969":"816055138",",联系群内的运营进行咨询和申请新增学校名称。"]}),(0,ce.jsx)("img",{src:"teacher"===h.identity?Vn:qn,style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"})},children:"联系平台运营"}),"申请新增"]})}),rules:[{required:!0,message:"请先选择学校/单位"},{whitespace:!0,message:"请先选择学校/单位"}],children:(0,ce.jsx)(Wn.Z,{status:E,size:"large",showSearch:!0,onChange:Y,placeholder:"请输入单位名称",suffixIcon:(0,ce.jsx)("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:(0,ce.jsx)("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"})}),children:$.map((function(e,t){return(0,ce.jsx)(d,{value:e.name,children:e.name},t)}))})})]})]})}),(0,ce.jsx)(g.Z,{title:"解绑学号",open:D,centered:!0,destroyOnClose:!0,onCancel:function(){H(!1),F.resetFields()},onOk:function(){F.submit()},children:(0,ce.jsxs)(b.Z,{form:F,size:"large",onFinish:function(){var e=c()(r()().mark((function e(n){var o,i,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Fn.ZP)("/api/users/accounts/".concat(null==t||null===(o=t.userInfo)||void 0===o?void 0:o.user_id,"/unbind_student_id.json"),{method:"post",body:a()({student_id:h.studentNo||s.getFieldValue("studentNo"),school_id:(null==$||null===(i=$.find((function(e){return e.name===h.school})))||void 0===i?void 0:i.id)||(null==t||null===(l=t.userInfo)||void 0===l?void 0:l.school_id),check_type:4},n)});case 2:0==e.sent.status&&(y.ZP.success("解绑成功"),s.validateFields(),F.resetFields(),H(!1));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,ce.jsxs)("div",{className:"mb20",children:["很抱歉,该学号(",h.studentNo||s.getFieldValue("studentNo"),")在",h.school,"内已被使用,您可以提供",(0,ce.jsx)("span",{style:{color:"#3061d0"},children:"当前账号所在学校中任意一位已职业认证的教师姓名"}),"进行解绑:"]}),(0,ce.jsx)(b.Z.Item,{name:"check_value",rules:[{required:!0,message:"请填写".concat(null==h?void 0:h.school,"中任意一位已职业认证的教师姓名")}],style:{marginBottom:"10px"},children:(0,ce.jsx)(x.Z,{type:"text",placeholder:"请填写".concat(null==h?void 0:h.school,"中任意一位已职业认证的教师姓名")})}),(0,ce.jsxs)("div",{children:["请注意,每位学生每天仅有 ",(0,ce.jsx)("span",{style:{color:"#FA6400"},children:"2"})," 次成功解绑学号的机会,请谨慎操作"]})]})}),(0,ce.jsx)(uo,{visible:_,onCancel:function(){return U(!1)}})]})})),po="popLogin___u08I8",mo="tips___U2xQw",go=/^1\d{10}$/,ho=/^[a-zA-Z0-9]+([.\-_\\]*[a-zA-Z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/,vo=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,bo=(0,v.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.user,n=(e.globalSetting,e.dispatch),o=(0,v.useSearchParams)(),i=u()(o,1)[0],a={height:48,borderRadius:4},l=b.Z.useForm(),s=u()(l,1)[0],d=(0,p.useState)(60),f=u()(d,2),m=f[0],h=f[1],w=(0,p.useMemo)((function(){return m<60&&m>0}),[m]),E=(0,p.useRef)(),k=function(){var e=c()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:clearInterval(E.current),h(60),E.current=setInterval(function e(){return h((function(e){return e-1})),e}(),1e3);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=(0,p.useState)(!1),j=u()(I,2),N=j[0],M=j[1],Z=(0,p.useState)(!1),O=u()(Z,2),$=O[0],A=O[1];(0,p.useEffect)((function(){t.bindAccountModalVisible?A(!0):A(!1)}),[t]);var z=function(){var e=c()(r()().mark((function e(){var o,i,a,l,c,u,d,f;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=s.getFieldValue("userInput"),i=go.test(o),a=ho.test(o),i||a){e.next=6;break}return y.ZP.error("请输入有效的手机号/邮箱号"),e.abrupt("return");case 6:if(M(!0),!i){e.next=20;break}return e.next=10,(0,Fn.ZP)("/api/users/accounts/".concat(null===(l=t.userInfoForBindAccountModal)||void 0===l?void 0:l.login,"/valid_phone.json"),{method:"get",params:{phone:o}});case 10:if(-1!==(null==(c=e.sent)?void 0:c.status)){e.next=14;break}return M(!1),e.abrupt("return");case 14:if(null==c||!c.is_exists){e.next=18;break}return y.ZP.info("该手机号已被其它账号绑定"),M(!1),e.abrupt("return");case 18:e.next=27;break;case 20:return e.next=22,(0,Fn.ZP)("/api/accounts/valid_email_and_phone",{method:"get",params:{login:o,type:1}});case 22:if(-3!==(null==(u=e.sent)?void 0:u.status)){e.next=27;break}return y.ZP.info("该邮箱已被注册"),M(!1),e.abrupt("return");case 27:return d=(0,ye.M)(o),e.next=30,n({type:"account/getCode",payload:{login:o,type:i?3:4,smscode:d}});case 30:f=e.sent,M(!1),1===f.status&&(y.ZP.info("验证码已发送,请注意查收"),k());case 33:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),T=function(){var e=c()(r()().mark((function e(){var o,i,a,l,c,u,d,f;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.validateFields();case 2:if(o=s.getFieldValue("userInput"),i=s.getFieldValue("code"),a=go.test(o),l=ho.test(o),a||l){e.next=9;break}return y.ZP.error("请输入有效的手机号/邮箱号"),e.abrupt("return");case 9:if(!a){e.next=16;break}return e.next=12,n({type:"account/bindPhone",payload:{login:null===(c=t.userInfoForBindAccountModal)||void 0===c?void 0:c.login,phone:o,code:i}});case 12:return u=e.sent,e.abrupt("return",0===u.status);case 16:return e.next=18,n({type:"account/bindEmail",payload:{login:null===(d=t.userInfoForBindAccountModal)||void 0===d?void 0:d.login,email:o,code:i}});case 18:return f=e.sent,e.abrupt("return",0===f.status);case 20:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),P=function(){var e=c()(r()().mark((function e(){var o,a,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.loginInfo,vo.test(o.password)||y.ZP.error("系统检测您的密码强度过低,请及时修改"),e.next=4,(0,S.Es)(o);case 4:if(!(a=e.sent).status){e.next=8;break}return y.ZP.error(null==a?void 0:a.message),e.abrupt("return");case 8:null!=a&&a.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==a?void 0:a.start_date)):localStorage.removeItem("extension-modal"),"/user/login"===location.pathname||"/login"===location.pathname?(l=i.get("from")||i.get("back_url"))?window.location.href=decodeURIComponent(l):(vo.test(o.password)||y.ZP.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/"):(vo.test(o.password)||(y.ZP.info("系统检测您的密码强度过低,请及时修改"),n({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!1}})),window.location.reload()),s.resetFields();case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),L=function(){var e=c()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T();case 2:if(!e.sent){e.next=6;break}return e.next=6,P();case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,ce.jsxs)(g.Z,{centered:!0,open:$,footer:null,width:596,keyboard:!1,maskClosable:!0,wrapClassName:po,closable:!0,onCancel:function(){n({type:"user/setBindAccountModal",payload:{bindAccountModalVisible:!1}}),s.resetFields()},children:[(0,ce.jsx)("h1",{className:"font18 mb20",children:"手机号/邮箱绑定"}),(0,ce.jsxs)(b.Z,{layout:"vertical",form:s,autoComplete:"off",preserve:!1,children:[(0,ce.jsx)(b.Z.Item,{name:"userInput",rules:[{required:!0,message:"请输入正确的手机号/邮箱"},{validator:function(e,t){return t?t.indexOf(" ")>-1?Promise.reject("请输入正确的手机号或邮箱"):go.test(t)||ho.test(t)?Promise.resolve():Promise.reject("请输入正确的手机号或邮箱"):Promise.resolve()}}],children:(0,ce.jsx)(x.Z,{style:a,size:"middle",placeholder:"请输入有效的手机号/邮箱号"})}),(0,ce.jsx)(b.Z.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}],children:(0,ce.jsx)(x.Z,{suffix:(0,ce.jsx)(C.ZP,{loading:N,type:"link",onClick:z,disabled:w,children:w?"".concat(m,"秒可重新获取"):"获取验证码"}),style:{paddingRight:2,height:48},placeholder:"请输入验证码",size:"middle"})})]}),(0,ce.jsx)("div",{className:mo,children:"为了账号安全性,绑定后可通过该手机号或邮箱找回密码"}),(0,ce.jsx)(C.ZP,{size:"middle",type:"primary",block:!0,style:a,className:"font16",onClick:L,children:"绑定并登录"}),(0,ce.jsxs)("div",{className:mo,children:["登录即代表您已阅读并同意",(0,ce.jsx)("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank",children:"《服务协议条款》"})]})]})})),yo=n(41622),xo=n(61186),wo=n.n(xo),Co=n(91232),So=n.n(Co),Eo=n(95190),ko=n(2738),Io=n(6989),jo=n(11592),No=n(24303);var Mo=n(48923),Zo=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rp.forwardRef(((o,r)=>p.createElement(e,Object.assign({ref:r,suffixCls:t,tagName:n},o))))}const $o=p.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:o,className:r,tagName:i}=e,a=Zo(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=p.useContext(P.E_),c=l("layout",n),[s,u,d]=(0,Mo.ZP)(c),f=o?`${c}-${o}`:c;return s(p.createElement(i,Object.assign({className:O()(n||f,r,u,d),ref:t},a)))})),Ao=p.forwardRef(((e,t)=>{const{direction:n}=p.useContext(P.E_),[o,r]=p.useState([]),{prefixCls:i,className:a,rootClassName:l,children:c,hasSider:s,tagName:u,style:d}=e,f=Zo(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),m=(0,ko.Z)(f,["suffixCls"]),{getPrefixCls:g,className:h,style:v}=(0,P.dj)("layout"),b=g("layout",i),y=function(e,t,n){return"boolean"==typeof n?n:!!e.length||(0,jo.Z)(t).some((e=>e.type===No.Z))}(o,c,s),[x,w,C]=(0,Mo.ZP)(b),S=O()(b,{[`${b}-has-sider`]:y,[`${b}-rtl`]:"rtl"===n},h,a,l,w,C),E=p.useMemo((()=>({siderHook:{addSider:e=>{r((t=>[].concat((0,Eo.Z)(t),[e])))},removeSider:e=>{r((t=>t.filter((t=>t!==e))))}}})),[]);return x(p.createElement(Io.V.Provider,{value:E},p.createElement(u,Object.assign({ref:t,className:S,style:Object.assign(Object.assign({},v),d)},m),c)))})),zo=Oo({tagName:"div",displayName:"Layout"})(Ao),To=Oo({suffixCls:"header",tagName:"header",displayName:"Header"})($o),Po=Oo({suffixCls:"footer",tagName:"footer",displayName:"Footer"})($o),Lo=Oo({suffixCls:"content",tagName:"main",displayName:"Content"})($o);const Ro=zo;Ro.Header=To,Ro.Footer=Po,Ro.Content=Lo,Ro.Sider=No.Z,Ro._InternalSiderContext=No.D;var Bo=Ro,Do="header___Wn4fJ",Ho="logo___QnotM",Wo="menu___twLGR",Fo="dropDown___Cwaoa",Ko="line___D1auu",Vo="subName___gql7K",qo="name___dR5V2",Xo="actived___ohMks",Go="edu-menu___iWLK0",Qo="newslight___lSZjL",_o="header-iearning___LZfyg",Uo="headerFixed___QLwBd",Yo=n(93041),Jo=n(22173),er=n(47889),tr=function(e){return e.Manager="manager",e.Developer="developer",e.Reporter="reporter",e}(tr||{}),nr=function(e){var t=e.visible,n=e.onCancel,o=void 0===n?function(){}:n,i=(0,p.useState)(),a=u()(i,2),l=a[0],s=a[1],d=(0,p.useState)(),f=u()(d,2),m=f[0],h=f[1],b=(0,p.useState)(!1),w=u()(b,2),C=w[0],S=w[1],E=function(){var e=c()(r()().mark((function e(){var t,n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=3;break}return y.ZP.info("请输入开发项目邀请码!"),e.abrupt("return");case 3:if(6===l.length){e.next=6;break}return y.ZP.info("请输入6位项目邀请码!"),e.abrupt("return");case 6:if(m){e.next=9;break}return y.ZP.info("请选择一个身份!"),e.abrupt("return");case 9:return S(!0),e.next=12,(0,Xn.vm)({code:l,role:m});case 12:if(t=e.sent,S(!1),k(),!(n={1:"您输入的邀请码错误",2:"您已经是该项目成员",3:"请选择一个角色",4:"您的申请已提交,请等待项目管理员审批",5:"您已经申请加入该项目了,请耐心等待",6:"您已成功加入项目"})[t.status]){e.next=19;break}return y.ZP.info(n[t.status]),e.abrupt("return");case 19:if(0!==t.status){e.next=22;break}return"reporter"===m?(y.ZP.success("您加入项目成功!"),(0,ye.L9)(["开发项目","加入项目成功"]),v.history.push("/projects/".concat(null==t?void 0:t.project_id))):((0,ye.L9)(["开发项目","加入项目等待审批"]),y.ZP.success("您的申请已提交,请等待项目管理员审批!")),e.abrupt("return");case 22:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=function(){var e=c()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,ce.jsx)(ce.Fragment,{children:(0,ce.jsx)(g.Z,{centered:!0,keyboard:!1,closable:!1,title:"加入项目",open:t,confirmLoading:C,onOk:E,onCancel:k,children:(0,ce.jsxs)("div",{className:"tc",children:[(0,ce.jsxs)("div",{children:[(0,ce.jsx)("span",{children:"项目邀请码:"}),(0,ce.jsx)(x.Z,{placeholder:"请输入6位开发项目邀请码",style:{width:270},value:l,onChange:function(e){e.target.value.length>=7?y.ZP.info("请输入6位开发项目邀请码!"):s(e.target.value)}})]}),(0,ce.jsxs)("div",{className:"mt10 font14",children:[(0,ce.jsx)("span",{children:"身份:"}),(0,ce.jsxs)(er.ZP.Group,{value:m,onChange:function(e){return h(e.target.value)},children:[(0,ce.jsx)(er.ZP,{value:tr.Manager,children:"管理人员"}),(0,ce.jsx)(er.ZP,{value:tr.Developer,children:"开发人员"}),(0,ce.jsx)(er.ZP,{value:tr.Reporter,children:"报告人员"})]})]})]})})})},or="rightMenu___ADTOX",rr="joinMenu___aRGsf",ir="joinBoard___AeUvr",ar="joinCol___fV4uL",lr=n(71283),cr=n(13071),sr=(0,v.connect)((function(e){return{user:e.user,globalSetting:e.globalSetting,loading:e.loading}}))((function(e){e.globalSetting;var t=e.dispatch,n=e.user,o=e.open,i=e.onCancel,a=void 0===i?function(){}:i,l=(0,p.useState)([]),s=u()(l,2),d=s[0],f=s[1],m=(0,p.useState)([]),h=u()(m,2),v=h[0],w=h[1],C=(0,p.useState)([]),S=u()(C,2),E=S[0],k=S[1],I=b.Z.useForm(),j=u()(I,1)[0],N=(0,p.useState)(!1),M=u()(N,2),Z=M[0],O=M[1],$=(0,p.useState)(!1),A=u()($,2),z=A[0],T=A[1],P=(0,p.useRef)(null),L=(0,p.useRef)(1),R=(0,p.useState)({keyword:"",source:"",status:"",page:1,limit:20}),B=u()(R,2),D=B[0];B[1];(0,p.useEffect)((function(){o&&H()}),[o]);var H=function(){var e=c()(r()().mark((function e(){var o,i,a,l,c,s,u,d,f,p,m,g;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W(D);case 2:if(i=e.sent,(0,lr.o1)(t)){e.next=5;break}return e.abrupt("return");case 5:return a=n.userInfo||{},l=a.user_school_id,c=void 0===l?"":l,s=a.department_id,u=void 0===s?"":s,d=a.school_name,f=void 0===d?"":d,p=a.department_name,m=void 0===p?"":p,g=null==i||null===(o=i.graduation_years)||void 0===o?void 0:o.at(-1),w([{id:c,name:f}]),e.next=10,F(c);case 10:j.setFieldsValue({year:g,school_id:c,department_id:Number(u),name:"".concat(g).concat(f).concat(m,"毕业设计")});case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),W=function(){var e=c()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,cr.J3)(t);case 2:return 0===(n=e.sent).status&&f((null==n?void 0:n.graduation_years)||[]),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),F=function(){var e=c()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,cr.Ps)({page:1,limit:9999,id:t});case 4:0===(n=e.sent).status&&k((null==n?void 0:n.departments)||[]);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,ce.jsx)(g.Z,{centered:!0,keyboard:!1,destroyOnClose:!0,open:o,title:"开启新一届毕业设计",width:578,confirmLoading:Z,onCancel:a,onOk:function(){return j.submit()},children:(0,ce.jsxs)(b.Z,{colon:!1,form:j,initialValues:{},labelCol:{span:7},size:"large",wrapperCol:{span:17},onValuesChange:function(e,t){e.school_id&&(F(t.school_id),j.setFieldValue("department_id",null))},onFinish:function(){var e=c()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O(!0),e.next=3,(0,cr.Wz)(t);case 3:0===(n=e.sent).status&&(y.ZP.success("创建成功"),j.resetFields(),a(),(0,ye.xg)("/graduations/".concat(null==n?void 0:n.identifier,"/index"))),O(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,ce.jsx)(b.Z.Item,{name:"year",label:"选择届别",rules:[{required:!0,message:"请选择届别"}],children:(0,ce.jsx)(Hn.default,{style:{width:344},size:"large",options:d.map((function(e){return{value:e,label:e}}))})}),(0,ce.jsx)(b.Z.Item,{name:"school_id",label:"学校",rules:[{required:!0,message:"请选择学校"}],children:(0,ce.jsx)(Hn.default,{showSearch:!0,filterOption:!1,onSearch:function(e){!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;T(!0),clearTimeout(P.current),P.current=setTimeout(c()(r()().mark((function t(){var n,o;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return L.current+=1,n=L.current,t.next=4,(0,cr.NT)({keyword:e});case 4:0===(o=t.sent).status&&L.current===n&&(w((null==o?void 0:o.schools)||[]),T(!1));case 6:case"end":return t.stop()}}),t)}))),t)}(e)},loading:z,size:"large",style:{width:344},options:v.map((function(e){return{value:e.id,label:e.name}}))})}),(0,ce.jsx)(b.Z.Item,{name:"department_id",label:"学院",rules:[{required:!0,message:"请选择学院"}],children:(0,ce.jsx)(Hn.default,{showSearch:!0,optionFilterProp:"label",style:{width:344},size:"large",options:E.map((function(e){return{value:e.id,label:e.name}}))})}),(0,ce.jsx)(b.Z.Item,{name:"name",label:"毕业设计名称",style:{marginBottom:0},rules:[{required:!0,message:"请输入毕业设计名称"},{max:60,message:"输入超限,请缩减字符数"},{type:"string",whitespace:!0,message:"请输入毕业设计名称"}],children:(0,ce.jsx)(x.Z,{showCount:!0,style:{width:344},maxLength:60})})]})})})),ur=(0,v.connect)((function(e){return{user:e.user,globalSetting:e.globalSetting}}))((function(e){e.globalSetting,e.dispatch;var t=e.user,n=e.open,o=e.onCancel,i=void 0===o?function(){}:o,l=b.Z.useForm(),s=u()(l,1)[0],d=(0,p.useState)(!1),f=u()(d,2),m=f[0],h=f[1],v=(0,p.useState)(null),w=u()(v,2),C=w[0],S=w[1];return(0,p.useEffect)((function(){if(n){var e,o={code:"",user_type:"student"===(null==t||null===(e=t.userInfo)||void 0===e?void 0:e.identity)?2:1,major:""};s.setFieldsValue(o),S(a()({},o))}}),[n]),(0,ce.jsx)(g.Z,{centered:!0,keyboard:!1,destroyOnClose:!0,open:n,title:"加入毕设",width:527,confirmLoading:m,onCancel:i,onOk:function(){return s.submit()},children:(0,ce.jsxs)(b.Z,{colon:!1,form:s,initialValues:{user_type:1},labelCol:{span:5},wrapperCol:{span:19},size:"large",onValuesChange:function(e,t){return S(a()({},t))},onFinish:function(){var e=c()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(!0),e.next=3,(0,Fn.ZP)("/api/graduations/join.json",{method:"post",body:t});case 3:0===(n=e.sent).status&&(i(),null!=n&&n.identifier?(0,ye.xg)("/graduations/".concat(null==n?void 0:n.identifier,"/index")):y.ZP.success(null==n?void 0:n.message)),h(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,ce.jsx)(b.Z.Item,{name:"code",label:"毕设邀请码",rules:[{required:!0,message:"请输入毕设邀请码"}],children:(0,ce.jsx)(x.Z,{placeholder:"请输入毕设邀请码",size:"large"})}),(0,ce.jsx)(b.Z.Item,{name:"user_type",label:"身份",rules:[{required:!0,message:"请输入毕设邀请码"}],children:(0,ce.jsxs)(er.ZP.Group,{children:[(0,ce.jsx)(er.ZP,{value:1,style:{color:"#000"},children:"管理员(教师)"}),(0,ce.jsx)(er.ZP,{className:"ml30",style:{color:"#000"},value:2,children:"学生"})]})}),2===(null==C?void 0:C.user_type)&&(0,ce.jsx)(b.Z.Item,{style:{marginBottom:0},name:"major",label:"专业",rules:[{required:!0,message:"请输入专业名称"},{max:60,message:"输入超限,请缩减字符数"},{whitespace:!0,message:"请输入专业名称"}],children:(0,ce.jsx)(x.Z,{showCount:!0,maxLength:60})})]})})})),dr=["homePage","user","globalSetting","loading","dispatch"],fr=function(e){return e.Projects="projects",e.Shixuns="shixuns",e.Classrooms="classrooms",e}(fr||{}),pr=function(e){return e.Classrooms="classrooms",e.Shixuns="shixuns",e.Paths="paths",e.Projects="projects",e.Videos="videos",e.Topics="topics",e}(pr||{}),mr=(0,v.connect)((function(e){var t=e.homePage,n=e.loading;return{homePage:t,user:e.user,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){e.homePage;var t,n,o,r,i,l,c,s,d=e.user,m=e.globalSetting,g=(e.loading,e.dispatch),h=(f()(e,dr),(0,p.useState)()),v=u()(h,2),b=v[0],x=v[1],w=(0,p.useState)(),C=u()(w,2),S=C[0],E=C[1],k=(0,p.useState)(!1),I=u()(k,2),j=I[0],N=I[1],M=(0,p.useState)(!1),Z=u()(M,2),O=Z[0],$=Z[1],A=function(e){var t;(0,lr.tJ)(g,!1,e===fr.Classrooms,"",!0)&&(e!==fr.Projects||null!==(t=d.userInfo)&&void 0!==t&&t.email?e===fr.Classrooms?x(!0):e===fr.Projects&&E(!0):y.ZP.info("请先绑定邮箱,谢谢"))},z=function(e,t){var n;(0,lr.tJ)(g)&&(t!==fr.Projects||null!==(n=d.userInfo)&&void 0!==n&&n.email?(t!==fr.Shixuns||(0,lr.xY)())&&e&&(window.location.href=e):y.ZP.info("请先绑定邮箱,谢谢"))},T=null===(t=((null===(n=m.setting)||void 0===n?void 0:n.navbar)||[]).find((function(e){return e.link==="/".concat(pr.Classrooms)})))||void 0===t?void 0:t.hidden,P=null===(o=((null===(r=m.setting)||void 0===r?void 0:r.navbar)||[]).find((function(e){return e.link==="/".concat(pr.Shixuns)})))||void 0===o?void 0:o.hidden,L=null===(i=((null===(l=m.setting)||void 0===l?void 0:l.navbar)||[]).find((function(e){return e.link==="/".concat(pr.Paths)})))||void 0===i?void 0:i.hidden;null!=m&&null!==(c=m.setting)&&void 0!==c&&c.is_local&&(null!=d&&null!==(s=d.userInfo)&&void 0!==s&&s.is_shixun_marker||(P=!0));var R=function(e){var t,n,o,r,i,l,c,s,u,f,p,h,v,b,y,x,w,C,S;return(0,ce.jsx)(ce.Fragment,{children:(0,ce.jsxs)(Tn.Z,{justify:"space-around",className:"pt5 pb5",children:[(0,ce.jsxs)(Pn.Z,{className:ar,children:["学生"!==(null===(t=d.userInfo)||void 0===t?void 0:t.user_identity)&&!T&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{children:(0,ce.jsx)("a",{onClick:function(){return z("/classrooms/new")},children:null!==(n=d.userInfo)&&void 0!==n&&n.main_site?"新建教学课堂":"新建课堂"})})),!P&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{children:(0,ce.jsx)("a",{onClick:function(){return z("/shixuns/new",fr.Shixuns)},children:"新建实践项目"})})),((null===(o=d.userInfo)||void 0===o?void 0:o.main_site)||!(null!==(r=d.userInfo)&&void 0!==r&&r.main_site)&&!L&&((null===(i=d.userInfo)||void 0===i?void 0:i.admin)||(null===(l=d.userInfo)||void 0===l?void 0:l.is_teacher)||(null===(c=d.userInfo)||void 0===c?void 0:c.business)))&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{children:(0,ce.jsx)("a",{onClick:function(){return z("/paths/new")},children:"新建实践课程"})})),!(null!=m&&null!==(s=m.setting)&&void 0!==s&&s.is_local)&&(null===(u=d.userInfo)||void 0===u?void 0:u.main_site)&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{children:(0,ce.jsx)("a",{onClick:function(){var e;return z("".concat(null==m||null===(e=m.setting)||void 0===e?void 0:e.old_url,"/projects/deposit/new"),fr.Projects)},children:"新建开发项目"})})),"narl.educoder.net"!==window.location.host&&"student"!==(null==d||null===(f=d.userInfo)||void 0===f?void 0:f.identity)&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{onClick:function(){(0,lr.o1)(g)&&N(!0)},children:(0,ce.jsx)("a",{children:"新建毕业设计"})})),!(null!==(p=d.userInfo)&&void 0!==p&&p.main_site)&&(0,ce.jsxs)("div",{children:[!T&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{children:(0,ce.jsx)("a",{onClick:function(){return A(fr.Classrooms)},children:null!==(h=d.userInfo)&&void 0!==h&&h.main_site?"加入教学课堂":"加入课堂"})})),(null===(v=d.userInfo)||void 0===v?void 0:v.main_site)&&!(null!=m&&null!==(b=m.setting)&&void 0!==b&&b.is_local)&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{children:(0,ce.jsx)("a",{onClick:function(){return A(fr.Projects)},children:"加入开发项目"})}))]})]}),(null===(y=d.userInfo)||void 0===y?void 0:y.main_site)&&(0,ce.jsx)(Pn.Z,{children:(0,ce.jsx)("div",{className:ir})}),(null===(x=d.userInfo)||void 0===x?void 0:x.main_site)&&(0,ce.jsxs)(Pn.Z,{className:ar,children:[!T&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{children:(0,ce.jsx)("a",{onClick:function(){return A(fr.Classrooms)},children:null!==(w=d.userInfo)&&void 0!==w&&w.main_site?"加入教学课堂":"加入课堂"})})),(null===(C=d.userInfo)||void 0===C?void 0:C.main_site)&&!(null!=m&&null!==(S=m.setting)&&void 0!==S&&S.is_local)&&(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{children:(0,ce.jsx)("a",{onClick:function(){return A(fr.Projects)},children:"加入开发项目"})})),(0,ce.jsx)(Yo.Z.Item,a()(a()({},e),{},{onClick:function(){(0,lr.o1)(g)&&$(!0)},children:(0,ce.jsx)("a",{children:"加入毕业设计"})}))]})]})})};return(0,ce.jsxs)("section",{children:[(0,ce.jsx)(Jo.Z,{dropdownRender:function(){return(0,ce.jsx)(Yo.Z,{className:"".concat(or," ").concat(rr," mt10"),children:(0,ce.jsx)(R,{})})},placement:"bottomRight",children:(0,ce.jsx)("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})}),(0,ce.jsx)(uo,{visible:b,onCancel:function(){return x(!1)}}),(0,ce.jsx)(nr,{visible:S,onCancel:function(){return E(!1)}}),(0,ce.jsx)(sr,{open:j,onCancel:function(){return N(!1)}}),(0,ce.jsx)(ur,{open:O,onCancel:function(){return $(!1)}})]})})),gr=n(29091),hr="tip___a6MfI",vr=(0,v.connect)((function(e){return{user:e.user}}))((function(e){e.visible;var t,n,o,i=e.user,a=(e.onCancel,e.dispatch,(0,p.useState)()),l=u()(a,2),s=(l[0],l[1],(0,p.useState)([])),d=u()(s,2),f=(d[0],d[1]),m=(0,p.useState)(!1),g=u()(m,2),h=(g[0],g[1],(0,p.useState)(!1)),v=u()(h,2),b=(v[0],v[1],(0,p.useState)()),x=u()(b,2),w=(x[0],x[1],(0,p.useState)(!1)),C=u()(w,2),S=C[0],E=C[1],k=null===(t=window.location.pathname)||void 0===t?void 0:t.includes("classrooms/");(0,p.useEffect)((function(){var e,t;null!=i&&null!==(e=i.userInfo)&&void 0!==e&&e.identity&&f(["student"===(null==i||null===(t=i.userInfo)||void 0===t?void 0:t.identity)?3:1])}),[i]),(0,p.useEffect)((function(){var e;if(console.log(null==i?void 0:i.userInfo),null!=i&&null!==(e=i.userInfo)&&void 0!==e&&e.user_status){var t;if(15===(null==i||null===(t=i.userInfo)||void 0===t?void 0:t.role))return void E(!1);var n,o,r,a=k?JSON.parse(null===(n=localStorage)||void 0===n?void 0:n.getItem("delaytip_class")):JSON.parse(null===(o=localStorage)||void 0===o?void 0:o.getItem("delaytip_user"));a&&(null==a?void 0:a.login)===(null==i||null===(r=i.userInfo)||void 0===r?void 0:r.login)?(console.log(wo()(null==a?void 0:a.time).add(1,"days")),console.log(wo()(new Date)),wo()(null==a?void 0:a.time).add(1,"days").set({hour:0,minute:0,second:0})3)||null!==(e=n[4])&&void 0!==e&&e.includes("newgold")||null!==(t=n[5])&&void 0!==t&&t.includes("newgold")||"coursesId"===n[2]||(o.course_id=n[2]),"shixuns"===n[1]&&n.length>3&&(o.objective_type="shixun",o.objective_id=n[2]),"paths"===n[1]&&n.length>3&&(o.objective_type="path",o.objective_id=n[2]),a()(a()({},o),{school:1})}var kr=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Ir=((0,v.connect)((function(e){var t=e.homePage,n=e.loading,o=e.user,r=e.globalSetting,i=e.shixunHomeworks;return{homePage:t,user:o,globalSetting:r,loading:n.models.index,shixunHomeworks:i}}))((function(e){e.homePage;var t,n=e.user,o=e.globalSetting,i=(e.loading,e.dispatch),l=e.isLogin,s=void 0!==l&&l,d=e.shixunHomeworks,m=(f()(e,wr),(0,v.useLocation)()),h=(0,p.useState)(!1),b=u()(h,2),y=b[0],x=b[1],w=(0,p.useState)(""),C=u()(w,2),E=C[0],k=C[1],I=(0,p.useState)(!1),j=u()(I,2),N=j[0],M=j[1],Z=Er();(0,p.useEffect)((function(){i({type:"user/getNavigationInfo",payload:a()({},Z)})}),[o.name]),(0,p.useEffect)((function(){"底部弹窗"===d.actionTabs.key&&(null!=kr&&kr.includes(null==m?void 0:m.pathname)||0===(null==m?void 0:m.pathname.indexOf("/classrooms"))||i({type:"shixunHomeworks/setActionTabs",payload:{key:"隐藏"}}))}),[m.pathname]),(0,p.useEffect)((function(){"底部弹窗"===d.actionTabs.key||d.actionTabs.key||localStorage.setItem("Noviceguide","0")}),[d.actionTabs.key]),(0,p.useEffect)((function(){if(null!=o&&o.setting){var e,t,n,r=(0,un.cloneDeep)(null==o||null===(e=o.setting)||void 0===e?void 0:e.navbar);r=null===(t=r)||void 0===t?void 0:t.filter((function(e){var t;return!(null!=e&&e.hidden||(0,br.JA)()&&null!==(t=["/paperlibrary","/problemset"])&&void 0!==t&&t.includes(e.link))}));var i,a=So()(r);try{for(a.s();!(i=a.n()).done;){var l=i.value;l.subitem&&(l.subitem=l.subitem.filter((function(e){var t;return!(null!=e&&e.hidden||(0,br.JA)()&&null!==(t=["/paperlibrary","/problemset"])&&void 0!==t&&t.includes(e.link))})))}}catch(e){a.e(e)}finally{a.f()}var c=!1;null===(n=r)||void 0===n||n.map((function(e,t){var n,i,a,l=m.pathname;e.link===l&&(k(null==e?void 0:e.link),(0,ye.Dk)("/"===l?null==o||null===(i=o.setting)||void 0===i?void 0:i.name:G(null==e?void 0:e.name)),V(X(t,{name:null==e?void 0:e.name,link:null==e?void 0:e.link},r)),c=!0);null!=e&&null!==(n=e.subitem)&&void 0!==n&&n.length&&(null==e||null===(a=e.subitem)||void 0===a||a.map((function(e){e.link===l&&(k(null==e?void 0:e.link),"/"!==l&&(0,ye.Dk)(G(null==e?void 0:e.name)),V(X(t,{name:null==e?void 0:e.name,link:null==e?void 0:e.link},r)),c=!0)})))})),c||V(r)}}),[null==o?void 0:o.setting,n]);var O=(0,p.useMemo)((function(){var e,t;return null!=o&&null!==(e=o.setting)&&void 0!==e&&e.nav_logo_url?"".concat(Sn.Z.IMG_SERVER,"/").concat(null==o||null===(t=o.setting)||void 0===t?void 0:t.nav_logo_url):"".concat(Sn.Z.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat((new Date).getTime())}),[null==o||null===(t=o.setting)||void 0===t?void 0:t.nav_logo_url]);function $(e){v.history.push("/search?value="+e)}var A,z,T,P,L,R,B,D,H=function(){return y?(0,ce.jsx)("div",{onBlur:function(){setTimeout((function(){x(!1)}),300)},children:(0,ce.jsx)(Sr,{placeholder:"实践课程/教学课堂/实践项目/交流问答",className:"search-input mr20",onSearch:$,autoFocus:!0})}):(0,ce.jsx)("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){v.history.push("/search?value=")}})},W=(0,p.useState)([]),F=u()(W,2),K=F[0],V=F[1],q=function(){var e=c()(r()().mark((function e(t,n){var o,a,l,c,s,u;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("工程认证"!==(null==t?void 0:t.name)){e.next=6;break}return e.next=3,(0,S.IU)();case 3:return null!=(l=e.sent)&&null!==(a=l.data)&&void 0!==a&&a.engineer_url?null!=l&&null!==(c=l.data)&&void 0!==c&&null!==(c=c.engineer_url)&&void 0!==c&&c.includes("http")?(0,ye.xg)(null==l||null===(s=l.data)||void 0===s?void 0:s.engineer_url):v.history.push(null==l||null===(u=l.data)||void 0===u?void 0:u.engineer_url):401!=(null==l?void 0:l.status)&&M(!0),e.abrupt("return");case 6:null!=t&&null!==(o=t.link)&&void 0!==o&&o.includes("http")?(0,ye.xg)(null==t?void 0:t.link):((0,ye.Dk)(null==t?void 0:t.name),v.history.push(null==t?void 0:t.link)),"教学课堂"===(null==t?void 0:t.name)&&"0"!==localStorage.getItem("Noviceguide")&&i({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:5,text:(0,ce.jsx)("div",{children:"非常棒,咱们已经到达【教学课堂】,平台上已经有几千位老师创建了自己的教学课堂,你也可以轻松完成哟!现在请您点击页面上 “新建课堂”按钮开始新建自己的课堂~"})}});case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),X=function(e,t,n){var o=n.slice();return o[e]&&(o[e].name=t.name,o[e].link=t.link),o||[]},G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.indexOf("<")>-1?e.slice(0,e.indexOf("<")):e};return o.showHeader&&o.showHeaderFooter?(0,ce.jsxs)(Bo,{style:{background:"".concat("/training"==m.pathname?"rgba(0,0,0,0)":"")},className:"".concat(o.isIlearning?_o:Do," ").concat(o.showHeaderFixed?Uo:""),children:[(null==o?void 0:o.showTip)&&(0,ce.jsx)(vr,{}),(0,ce.jsxs)(Cr,{className:"header",style:{background:"".concat("/training"==m.pathname?"rgba(0,0,0,0)":""),zIndex:"".concat("/training"==m.pathname?"999":"")},children:[(0,ce.jsxs)("section",{className:Go,children:[(!!o.isIlearning||!(null!=o&&null!==(A=o.setting)&&void 0!==A&&A.main_site)&&!(null==o||null===(z=o.setting)||void 0===z||!z.navbar))&&(0,ce.jsx)(v.Link,{style:{display:"flex",alignItems:"center"},onClick:function(){i({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/",children:(0,ce.jsx)("img",{className:Ho,title:null===(T=o.setting)||void 0===T?void 0:T.name,src:O||"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNi41NzggOC44Yy4xNjItLjY4Mi4zLS43MzcuOTgyLS43MzcuNjg5IDAgLjc5My4wNTUuNjMyLjczNy0uMTY0LjY4OS0uMjk4Ljc2LS45ODcuNzYtLjY4MiAwLS43OS0uMDcxLS42MjctLjc2Wm0tLjIyMiAxLjE5OGgxLjQ4OGwtMS4wMDQgNC4yM0g1LjM1MmwxLjAwNC00LjIzWk04LjQ2NSAxMS4yNDRoMi40NzRsLS4yNzUgMS4xNkg4LjE4OXpNMTUuMTIgMTIuODg5bC0uMzE3IDEuMzRIMTEuMjNsMS4yOTEtNS40MzdoMS41NmwtLjk3NCA0LjA5N3pNMTguNjg4IDExLjU1Yy4wNzYtLjMyMi4wMS0uNTQxLS40NTktLjU0MS0uNTAxIDAtLjc0OC4xMTctLjkwNS42NDJsMS4zNjQtLjEwMlptMS4wNDEuOTU1LTIuNjM2LjE1NmMtLjAwMi4zNjkuMy41MTcuODQuNTE3LjU3MSAwIDEuMjU5LS4xNTUgMS41NDUtLjMwNWwtLjI2IDEuMDk3Yy0uMzAxLjE4LTEuMDEyLjMzNy0xLjg1LjMzNy0xLjMzMiAwLTIuMDM5LS40NTQtMS42MjYtMi4xOTQuNDEzLTEuNzM5IDEuMzM2LTIuMTkzIDIuNzM4LTIuMTkzIDEuNTA0IDAgMS43NjIuNjI2IDEuNDU1IDEuOTItLjA4Mi4zNDQtLjE2Ni42MDItLjIwNi42NjVaTTIyLjgwNiAxMi45MzZsLjA3OS0uMzNoLS41OTVjLS40NyAwLS42MzYuMDcxLS42OTUuMzIyLS4wNTIuMjIuMDk4LjI3NC40MDQuMjc0LjM2OCAwIC42NTUtLjExNy44MDctLjI2Nm0xLjg1Ny0xLjU4My0uNjgzIDIuODc1aC0xLjM0N2wtLjAyNS0uMzkxYy0uMTc1LjIxMi0uNTk2LjQ3LTEuMzQuNDctLjg4NSAwLTEuMzQ3LS40LTEuMTMxLTEuMzA4LjIzLS45NzIuODcyLTEuMzMyIDIuMTAxLTEuMzMyaC44N2MuMDgtLjQzLS4wNjMtLjQ5NC0uNjgyLS40OTQtLjMwNSAwLS42LjAyNC0uODg1LjA3bC4yOTUtMS4yNDVjLjMzNC0uMDU0Ljc5Mi0uMDcgMS4wOTgtLjA3IDEuNDggMCAxLjk2My40MzggMS43MjkgMS40MjVNMjguNjkxIDkuOTJsLS4zNDYgMS4zMjRoLS4xMThjLS40OTMgMC0xLjA1NS4xODgtMS4yNTcuNzc2bC0uNTI1IDIuMjA4aC0xLjQ4OGwxLjAwNS00LjIzaDEuNDg4bC0uMTc1LjczN2MuNDEtLjY3NC44MjgtLjgxNSAxLjMyOS0uODE1aC4wODdaTTMzLjA4NCAxMS4zNjlsLS42OCAyLjg2aC0xLjQ4OGwuNi0yLjUyM2MuMTI0LS41MjUuMDEyLS42MTEtLjQ1OC0uNjExLS4zNzYgMC0uNTcyLjEzMy0uNjg1LjM0NWwtLjY2MyAyLjc4OGgtMS40ODhsMS4wMDUtNC4yM2gxLjQ4OGwtLjEwMi40MzFjLjI4LS4yOS43NC0uNTEgMS40My0uNTEuOTkzIDAgMS4yODUuNDI0IDEuMDQxIDEuNDVNMzQuNTA3IDguOGMuMTYyLS42ODIuMy0uNzM3Ljk4Mi0uNzM3LjY4OCAwIC43OTMuMDU1LjYzMS43MzctLjE2My42ODktLjI5Ny43Ni0uOTg3Ljc2LS42ODEgMC0uNzktLjA3MS0uNjI2LS43NlptLS4yMjIgMS4xOThoMS40ODhsLTEuMDA0IDQuMjNIMzMuMjhsMS4wMDQtNC4yM1oiIGZpbGw9IiMxOTZFRkQiLz48cGF0aCBkPSJNMzQuNTA3IDguOGMuMTYyLS42ODIuMy0uNzM3Ljk4Mi0uNzM3LjY4OCAwIC43OTMuMDU1LjYzMS43MzctLjE2My42ODktLjI5Ny43Ni0uOTg3Ljc2LS42ODEgMC0uNzktLjA3MS0uNjI2LS43NlptLS4yMjIgMS4xOThoMS40ODhsLTEuMDA0IDQuMjNIMzMuMjhsMS4wMDQtNC4yM1pNNDAuNTIyIDExLjM2OWwtLjY4IDIuODZoLTEuNDg4bC42LTIuNTIzYy4xMjQtLjUyNS4wMTEtLjYxMS0uNDU4LS42MTEtLjM3NiAwLS41NzMuMTMzLS42ODUuMzQ1bC0uNjYzIDIuNzg4SDM1LjY2bDEuMDA0LTQuMjNoMS40ODlsLS4xMDIuNDMxYy4yOC0uMjkuNzQtLjUxIDEuNDI4LS41MS45OTYgMCAxLjI4Ni40MjQgMS4wNDMgMS40NSIgZmlsbD0iIzE5NkVGRCIvPjxwYXRoIGQ9Ik00NC4wMjUgMTIuMDcxYy0uMTczLjcyMS0uMzE3IDEuMTMyLTEuMDIzIDEuMTMyLS42MDYgMC0uNTc3LS41MTktLjQzMy0xLjEzMi4xMzctLjU3LjM1My0xLjA4OC45NTktMS4wODguNzE0IDAgLjY2My40MS40OTcgMS4wODhabS40MjUtMi4wNzYtLjA4Ni4zNjhjLS4wOTQtLjMxLS4zODItLjQ0LTEuMTAzLS40NC0xLjM0IDAtMS45MTcuOTk1LTIuMTk5IDIuMTQ4LS4zMDIgMS4yOS0uMTY1IDIuMTU2IDEuMTc1IDIuMTU2LjcxNCAwIDEuMDg5LS4xOCAxLjMyLS40ODNsLS4wMjIuMTA4Yy0uMTg3Ljc4Ni0uNDEgMi4wMDQtMS4zMiAyLjI1Ni0uNjYyLjE4OC0xLjQ2My0uMzM5LTIuMDktLjU0OGExMy45ODEgMTMuOTgxIDAgMCAwLTIuNDA4LS41OWMtMS45MTctLjI5Ni0zLjg3OC0uMTc0LTUuNzMuNDEtMy4yODcgMS4wNDItNi43NzUgMS4zMTUtMTAuMjA1IDEuMzUyLTMuNTA5LjAzNy02Ljk0My0uMDUyLTEwLjM3NC0uOTA3LTEuMDcxLS4yNjctMi4wODQtLjgyNS0zLjE2Ny0xLjAwMS0xLjc0LS4yODQtMy45NC40NjUtNS4yMi0xLjE2LS41ODQtLjczNS0uOTE1LTEuNi0uOTE1LTIuNTE1IDAtMS43NjcgMS4yMjUtMy4zMjQgMy4wODUtNC4yMjVsLjU5MS0uNzY0Yy0uMTEuMTQ1LTEuMTc0LjIxOC0xLjM5Ny4yODVhOC40NzggOC40NzggMCAwIDAtMS41MjQuNjE3Yy0uOTM2LjQ5MS0xLjgyIDEuMTc4LTIuMzc0IDIuMDkzLTEuMDAzIDEuNjU0LS4zNDYgMy44MDkuOTY4IDUuMTA5LjkxNC45MDMgMi4xMjIgMS40NTQgMy4zNjggMS43MiAxLjI5OC4yNzcgMi42ODQtLjE2NyAzLjk0My4yNzcgMS4xMzQuNCAyLjE0NC44MzEgMy4zNDIgMS4wNzVhMzEuNDIgMzEuNDIgMCAwIDAgMy44NzQuNTI2YzIuOTMxLjIyNCA1Ljg1OS4wODMgOC43OS0uMDU1YTI5Ljg4NCAyOS44ODQgMCAwIDAgNy41Ni0xLjMzMWMxLjgxNy0uNTc3IDMuNzYzLS42NDIgNS42My0uMjgxIDEuNDcxLjI4IDMuMTg3IDEuNDEzIDQuNjg2Ljk0NCAxLjQyOC0uNDQgMi4wMzMtMS45MzIgMi4zNS0zLjI2NWwuOTIzLTMuODc5aC0xLjQ3WiIgZmlsbD0iIzIzREQ3RiIvPjxwYXRoIGQ9Im0yMC4zODcgNC4xNi0uNzM1LjA3OWMtMS4yODMtMS42ODctMy41MTgtMi43OTctNi4wNDgtMi43OTctMy4xOCAwLTUuODc2IDEuNzUyLTYuODM0IDQuMThsLTEuODEuMTk2QzUuMTcgMi41OCA4LjYzNyAwIDEyLjg4MyAwYzMuNDg5IDAgNi40NTIgMS43MzcgNy41MDQgNC4xNiIgZmlsbD0iIzE5NkVGRCIvPjxwYXRoIGQ9Ik0yOC4wODYgNi40ODhoLTIuNTA4Yy0xLjAwMy0xLjA3NC0zLjA4Ni0xLjgwMi01LjQ4Ni0xLjgwMi0yLjQwOCAwLTQuNDkxLjczNS01LjQ5NCAxLjgxLjczNi0xLjM2MyAzLjA0My0yLjU2NyA1Ljg3Ni0yLjkyIDMuNDQ2LS40MjYgNy4xMzcgMS4yMSA3LjYxMiAyLjkxMiIgZmlsbD0iIzE5NkVGRCIvPjwvZz48L3N2Zz4="})}),(0,ce.jsxs)("ul",{className:"".concat(Wo," ").concat((0,ye.Ll)()&&"ml0"),children:[(0,ye.Ll)()&&(0,ce.jsx)("li",{children:(0,ce.jsx)("a",{href:"/",children:"考试系统"})}),!(0,ye.Ll)()&&o.setting&&K.map((function(e,t){var n,o,r,i,a,l,c;return(0,ce.jsxs)("li",{className:(null==e||null===(n=e.subitem)||void 0===n||!n.length)&&E===(null==e?void 0:e.link)||null!=e&&null!==(o=e.subitem)&&void 0!==o&&o.some((function(e){return E===(null==e?void 0:e.link)}))?Xo:"",children:[(0,ce.jsxs)("div",{onClick:function(){return q(e,t)},className:qo,children:[(0,ce.jsx)("span",{dangerouslySetInnerHTML:{__html:(c=null==e?void 0:e.name,null==e||null===(l=e.subitem)||void 0===l||l.map((function(e,t){return e.link===m.pathname&&(c=e.name),e})),c)}}),(null==e||null===(r=e.subitem)||void 0===r?void 0:r.length)>0&&(0,ce.jsx)("i",{className:"iconfont icon-zhankai4"})]}),(null==e||null===(i=e.subitem)||void 0===i?void 0:i.length)>0&&(0,ce.jsx)("div",{className:Fo,children:null==e||null===(a=e.subitem)||void 0===a?void 0:a.map((function(e,n){return(0,ce.jsxs)("div",{className:Vo,onClick:function(){return q(e,t)},children:[!!n&&(0,ce.jsx)("div",{className:Ko}),(0,ce.jsx)("aside",{className:"font16 c-black",children:G(e.name)}),(0,ce.jsx)("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"},children:e.content})]},t+"-"+n)}))})]},t)}))]}),(0,ce.jsxs)("div",{className:"search-bar",style:{flex:o.isIlearning?"initial":"1 0 auto"},children:[!(0,ye.Ll)()&&!(null!=o&&o.isIlearning)&&(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(H,{}),!s&&(0,ce.jsx)(mr,{}),!s&&!(null==n||null===(P=n.userInfo)||void 0===P||!P.login)&&(0,ce.jsx)(v.Link,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(null==n||null===(L=n.userInfo)||void 0===L?void 0:L.login,"/user_tidings"),children:(null==n||null===(R=n.navigationInfo)||void 0===R?void 0:R.new_message)&&(0,ce.jsx)("span",{className:Qo})})]}),!s&&(0,ce.jsx)(gr.Z,{payload:Z})]})]}),(0,ce.jsx)(g.Z,{centered:!0,destroyOnClose:!0,open:N,title:"提示",width:"500px",okText:"立即联系",cancelText:"取消",onOk:function(){(0,ye.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:function(){return M(!1)},children:(0,ce.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,ce.jsx)("p",{children:"您可以在QQ服务群向管理员申请,获得继续操作的权限"}),(0,ce.jsx)("img",{src:"".concat(Sn.Z.IMG_SERVER,"/").concat(null==o||null===(B=o.setting)||void 0===B?void 0:B.homepage_tea_qq_qrcode_url),width:200,height:200,className:"mb10"}),(0,ce.jsxs)("p",{children:["群号:",null==o||null===(D=o.setting)||void 0===D?void 0:D.homepage_tea_qq_number]})]})})]}),(0,ce.jsx)(xr,{})]}):(0,ce.jsx)(ce.Fragment,{})})),n(37205)),jr=n.n(Ir),Nr=n(70236),Mr=n.n(Nr),Zr="wrap___q9xAc",Or="list___qjgdz",$r="name___ncYhC",Ar="tag___Paafn",zr=n(1499),Tr=function(e){Mr()(e);var t=(0,p.useState)(!1),n=u()(t,2),o=n[0],i=n[1],a=(0,p.useState)([]),l=u()(a,2),s=l[0],d=l[1],f=(0,p.useState)([]),m=u()(f,2),h=m[0],b=m[1],y=(0,p.useState)(!1),x=u()(y,2),S=x[0],E=x[1],k=(0,p.useState)(!1),I=u()(k,2),j=I[0],N=I[1],M=(0,v.useLocation)(),Z=(0,v.useSearchParams)(),O=u()(Z,1)[0];(0,p.useEffect)((function(){zr.Z.subscribe("pod-restrict-data",(function(e){console.log(e,"data"),i(e.identifier||!1),d(e.data_list||[]),b([]),E(!1)}))}),[]);var $=function(){var e=c()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),t=s.filter((function(e){return h.includes(e.tpi_id)})),e.next=4,(0,Fn.ZP)("/api/myshixuns/batch_del_pods.json",{method:"delete",body:{del_pods:t}});case 4:0===e.sent.status&&window.location.reload(),N(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),A=function(){var e;if(console.log(M,"location"),null===(e=M.pathname)||void 0===e||!e.includes("/challenges"))return"exercises"===O.get("type")?(window.parent.postMessage("backExercise","*"),void zr.Z.publish("pod-restrict-data",{identifier:!1,data_list:[]})):void(window.location.href="/shixuns/".concat(o,"/challenges"));window.location.href="/shixuns"};return(0,ce.jsx)(g.Z,{centered:!0,keyboard:!1,destroyOnClose:!0,open:o,title:"通知",width:"600px",footer:(0,ce.jsxs)(Tn.Z,{align:"middle",justify:"center",children:[(0,ce.jsx)(w.Z,{onChange:function(e){var t;(console.log(e,222),E(e.target.checked),e.target.checked)?b(null==s||null===(t=s.filter((function(e){return!e.is_current_shixun})))||void 0===t?void 0:t.map((function(e){return e.tpi_id}))):b([])},checked:S,children:"全选"}),(0,ce.jsx)(C.ZP,{style:{marginLeft:"auto"},onClick:A,children:"取消"}),(0,ce.jsx)(C.ZP,{disabled:!h.length,loading:j,type:"primary",onClick:$,children:"关闭实训"})]}),onCancel:A,children:(0,ce.jsx)(yo.Z,{spinning:j,children:(0,ce.jsxs)("div",{className:Zr,children:[(0,ce.jsx)("p",{children:"单个账号最多可同时开启10个实验环境,若想开启该实训请关闭其他实训。"}),null==s?void 0:s.map((function(e){return(0,ce.jsxs)("div",{className:Or,children:[(0,ce.jsx)(w.Z,{disabled:e.is_current_shixun,onChange:function(t){var n=jr()(h);t.target.checked?n.push(e.tpi_id):n=h.filter((function(t){return t!==e.tpi_id})),b(n),E(n.length===s.length)},checked:null==h?void 0:h.includes(e.tpi_id)}),(0,ce.jsxs)("span",{className:$r,onClick:function(){return(0,ye.xg)("/shixuns/".concat(e.shixun_identifier,"/challenges"))},title:e.shixun_name,children:[(0,ce.jsx)("b",{children:e.shixun_name}),e.is_current_shixun&&(0,ce.jsx)("span",{className:Ar,children:"当前实训"})]}),(0,ce.jsxs)("span",{style:{color:"#53d1a3"},children:["运行中的环境:",e.pod_num,"个"]})]},e.tpi_id)}))]})})})},Pr={token:{colorPrimary:"#3061D0",colorInfo:"#3061D0",colorLink:"#3061D0",borderRadius:2,fontSizeLG:14},components:{Radio:{radioSize:16,dotSize:6},Modal:{titleFontSize:16,titleColor:"#000"}}},Lr=["loading","globalSetting","dispatch"],Rr=(0,v.connect)((function(e){return{loading:e.loading,globalSetting:e.globalSetting}}))((function(e){e.loading;var t=e.globalSetting,n=e.dispatch,o=(f()(e,Lr),"https://educoder-public.oss-cn-hangzhou.aliyuncs.com/Cover/logo_simple?x-oss-process=image/resize,h_200,w_200,m_pad");(0,p.useEffect)((function(){(0,ye.IS)()&&function(){a.apply(this,arguments)}()}),[]),(0,p.useEffect)((function(){n({type:"globalSetting/setShareData",payload:{desc:"头歌,全称“头歌实践教学平台”,是国内高校广泛使用的在线实践教学服务平台与创新环境,为高校和企业的实践与创新能力提升赋能,是中国高校计算机教育MOOC联盟实践教学工委、全国人工智能职业教育集团实践教学工作委员会官方合作平台。",title:document.title,imgUrl:o}})}),[location.pathname]),(0,p.useEffect)((function(){i()}),[null==t?void 0:t.shareData]);var i=function(){var e;null===(e=window.wx)||void 0===e||e.ready((function(){var e,n,r,i,a,l={title:(null==t||null===(e=t.shareData)||void 0===e?void 0:e.title)||document.title,desc:(null==t||null===(n=t.shareData)||void 0===n?void 0:n.desc)||"头歌,全称“头歌实践教学平台”,是国内高校广泛使用的在线实践教学服务平台与创新环境,为高校和企业的实践与创新能力提升赋能,是中国高校计算机教育MOOC联盟实践教学工委、全国人工智能职业教育集团实践教学工作委员会官方合作平台。",link:window.location.href,imgUrl:(null==t||null===(r=t.shareData)||void 0===r||null===(r=r.imgUrl)||void 0===r?void 0:r.replace("https://public.educoder.net","https://educoder-public.oss-cn-hangzhou.aliyuncs.com/"))||o};null===(i=window.wx)||void 0===i||i.onMenuShareAppMessage(l),null===(a=window.wx)||void 0===a||a.onMenuShareTimeline(l)}))};function a(){return(a=c()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Fn.ZP)("/api/users/js_sdk_data.json?url=".concat(encodeURIComponent(location.href)),{method:"get"});case 2:0===(null==(t=e.sent)?void 0:t.status)&&l(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e){window.wx.config({debug:!1,appId:(null==e?void 0:e.appid)||"wx2402d86a6b534f77",timestamp:(null==e?void 0:e.timestamp)||1716781260,nonceStr:(null==e?void 0:e.noncestr)||"WjRUMvS[",signature:(null==e?void 0:e.signature)||"0e182307b372cf71796c33e01b462cbfca0b9930",jsApiList:["checkJsApi","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone"]})}return(0,ce.jsx)(ce.Fragment,{})})),Br=(n(65517),["loading","globalSetting","user","dispatch"]);wo().locale("zh-cn");var Dr=(0,v.connect)((function(e){return{loading:e.loading,globalSetting:e.globalSetting,user:e.user}}))((function(e){e.loading;var t,n=e.globalSetting,o=(e.user,e.dispatch),i=(f()(e,Br),(0,v.useLocation)()),l=Er(),s=(0,v.useSearchParams)(),d=(u()(s,1)[0],n.globalLoading),b=function(){var e=c()(r()().mark((function e(){var t,n,c,s,u,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=i.pathname.split("/"),null==i||!i.search){e.next=9;break}return s.includes("paths")?u=s[2]:s.includes("tasks")&&(d=s[2]),e.next=6,o({type:"user/getUserInfo",payload:a()(a()(a()({},l),(0,ye.oP)()),{},{subject_id:u,game_id:d,websiteName:"educoder"})});case 6:n=e.sent,e.next=14;break;case 9:return s.includes("tasks")&&(c=s[2]),e.next=13,o({type:"user/getUserInfo",payload:a()(a()({},l),{},{game_id:c})});case 13:n=e.sent;case 14:"游客"!==(null===(t=n)||void 0===t?void 0:t.username)&&("/login"===i.pathname&&(window.location.href="/"),"/user/login"!==i.pathname&&"/login"!==i.pathname&&window.sessionStorage.getItem("download_url")&&((0,ye.Nd)("educoder",window.sessionStorage.getItem("download_url")),window.sessionStorage.removeItem("download_url")));case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,p.useEffect)((function(){m.ZP.config({prefixCls:"ant",iconPrefixCls:"anticon",theme:a()({},Pr)})}),[n.theme]),(0,p.useEffect)((function(){b(),(0,ye.Il)(),function(){function e(){var e=document.documentElement,t=e.clientWidth/1920;t=t>2?2:t<.6?.6:t,e.style.fontSize=t+"px"}window.addEventListener("resize",e),e()}()}),[]),(0,p.useEffect)((function(){o({type:"globalSetting/query",payload:{}});try{window.top.location.origin}catch(e){-1===document.referrer.indexOf("educoder.net")&&(window.location.href=window.atob("Jy80MDMn"))}}),[]),(0,p.useEffect)((function(){var e,t;if(i.pathname.indexOf("classrooms")>-1&&-1===i.pathname.indexOf("detail")||document.body.scrollIntoView(),i.pathname.indexOf("/classrooms/4RW9CYHY")>-1&&"localhost"!==document.domain&&"kepukehuan.educoder.net"!==document.domain)window.location.href="https://kepukehuan.educoder.net/classrooms/4RW9CYHY/exercise";else if(i.pathname.indexOf("/classrooms/qb4ft587")>-1&&"localhost"!==document.domain&&"kepukehuan.educoder.net"!==document.domain)window.location.href="https://kepukehuan.educoder.net/classrooms/qb4ft587/exercise";else if(i.pathname.indexOf("/classrooms/c5q9bsp2")>-1&&"localhost"!==document.domain&&"kepukehuan.educoder.net"!==document.domain)window.location.href="https://kepukehuan.educoder.net/classrooms/c5q9bsp2/exercise";else if(o({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),"https://jetcoder.educoder.net"!==window.location.href&&"https://jetcoder.educoder.net/"!==window.location.href)if(null!==(e=window.location.href)&&void 0!==e&&e.includes("/problems")&&null!==(t=window.location.href)&&void 0!==t&&t.includes("/share")){var n,r=null===(n=window.location)||void 0===n||null===(n=n.pathname)||void 0===n||null===(n=n.split("/"))||void 0===n?void 0:n[2];(0,Fn.ZP)("/api/practices/".concat(r,"/start"),{method:"get"}).then((function(e){0===(null==e?void 0:e.status)&&v.history.replace("/problems/".concat(null==e?void 0:e.identifier,"/oj/").concat(r))}))}else{if("/admins"===i.pathname||"/sidekiq"===i.pathname){var a=document.domain;if(a.indexOf("educoder.net")>-1)switch(a){case"www.educoder.net":case"educoder.net":window.location.href="https://data.educoder.net".concat(i.pathname);break;default:var l=document.domain.split(".");l[0]=l[0]+"-data",window.location.href="https://".concat(l.join(".")).concat(i.pathname)}}g.Z.destroyAll()}else window.location.href="https://www.educoder.net/problems"}),[i.pathname]),(0,p.useEffect)((function(){n.updateData.system_update?localStorage.updateEndTime||(new Date).getTime()0&&g.Z.info({title:"客户端版本过低",centered:!0,content:(0,ce.jsxs)("div",{children:[(0,ce.jsx)("span",{className:"c-red",children:"您的头歌考试系统柜客户端版本过低"}),',请升级至最新版本后再使用,点击"确定"后将下载最新版本的客户端,',(0,ce.jsx)("span",{className:"c-red",children:"下载后请先退出客户端再安装"})]}),okText:"立即升级",visible:!0,maskClosable:!1,onOk:function(){return(0,ye.FH)("Educoder.exe","https://www-cdn.educoder.net/app/Educoder.exe"),new Promise((function(){}))}})}}),[null==n||null===(t=n.setting)||void 0===t?void 0:t.version]),(0,p.useEffect)((function(){1===performance.navigation.type&&document.body.scrollIntoView()}),[performance.navigation.type]);return(0,ce.jsx)(L.V9,{transformers:[L.IJ],hashPriority:"high",children:(0,ce.jsxs)(m.ZP,{locale:h.Z,autoInsertSpaceInButton:!1,componentSize:"middle",theme:Pr,children:[(0,ce.jsx)(Dn,{}),(0,ce.jsx)(fo,{}),(0,ce.jsx)(bo,{}),(0,ce.jsx)(Rr,{}),(0,ce.jsx)(Tr,{}),(0,ce.jsx)(yo.Z,{size:"middle",spinning:d.show,tip:d.text,className:"ant-spin-nested-loading-black",children:(0,ce.jsx)(v.Outlet,{})})]})})}))},71283:function(e,t,n){n.d(t,{rX:function(){return m},xY:function(){return p},tJ:function(){return s},o1:function(){return u}});n(7557),n(41498);var o=n(94706),r=n(91662),i=n(13277),a=n(1079),l=n.p+"static/newqrcode.a8740efb.png",c=(n(32637),n(37712)),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return!(!u(e)||!d(e,t,n,o,r))},u=function(e){return!!(0,i.bg)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},d=function(e){var t,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=(0,o.getDvaApp)()._store.getState(),s=c.user;return!(null===(t=s.userInfo)||void 0===t||!t.profile_completed)||(n?e({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:i,isCurrentPage:l}}):r.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,a.xg)("/account/profile/edit"),f()}}),!1)},f=function(){r.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料?请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},p=function(){return!!(0,i.V9)()||(r.Z.warning({centered:!0,width:530,title:"提示",content:(0,c.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,c.jsx)("p",{children:"扫码加头歌助教,申请操作权限"}),(0,c.jsx)("img",{src:l,width:200})]}),okText:"我知道了",maskClosable:!0}),!1)},m=function(e,t){return!!e||(r.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{children:t||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"}),(0,c.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,c.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABgILAMgwe5cwJ5O3jVtaWgp+z8KKW+bOPvjuwq1bMaTD+OLG2+ks2/aSSS78FTMcYQEAIQgsACADgQUAZCCwAIAMBBYAkIHAAgAyLBnW4CxnS/fb9k4r7nk7W8LBClZUQbBiYIEVI2ycnXjFIjjCAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQU4bAGK25Fu/Besm03wm27i2/bEATbNmTbN6QoRzDkhCMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5F7Xpnpy2w7Ta8bawo4eDC6RVIf0YmufBXzCwKLIvaCgC2ceevGKeEAEAGAgsAyEBgAQAZCCwAIMPsRfdVq1aFw2GrW7llyxZ7dgfACEToV8ydvd9vkhV1CPBOvHOkvdNZeY0IwSkhAJCBwAIAMhBYAEAGAgsAyEBgAQAZCCwAICOPcVhUnke3rcg/lYktbLuT7eyet+0zIo16j3CEBQBkILAAgAwEFgCQgcACADIQWABABgILAMjIo1pDHit19K6zFXfxXTiwgMqz+FZ004Wc/YidHSJjsuILqjUAQHFCYAEAGQgsACADgQUAZCCwAIAMBBYAkGF21hxnKxZQqdJvW5Nsm1LEinbmXNy2vlNZ3DhnfwgWjbDBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgw+ywBpOsuMlKZZ3GN2RycdsKcriQC3cIlclH3FkOBEdYAEAGAgsAyEBgAQAZCCwAIAOBBQBkILAAgAz7JqHIiUqZfeONN8nZ4gS29d2KggcmWbF1Z4tnGN8QlZk+GI6wAIAQBBYAkIHAAgAyEFgAQAYCCwDIQGABABl5VGuw7Z63FSMYSN/NpTK1hEkuHC5AZdzMyPl14AgLAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkGG2WoMLa++bbKdxzvbIZN+pVL9wdqyDs01y4eKO/95xhAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIyKNaQ0623bA3eUPUhdMBmOym8XdaMdOH8b67cLYLZ1kxdsS2ARDOThTCcIQFAIQgsACADAQWAJCBwAIAMhBYAEAGAgsAyDBbrSGPLbmvEgDpDRnfum3VGqzYEJXSCC5skjtnkTAJR1gAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyqNdh2x93kOq1ovLM9smIQgG1lDEw2ydlhNzk5+7lb0U1n5+/AJBQAUJwQWABABgILAMhAYAEAGQgsACADgQUAZJidhMI2VlTpt22sQ045t27baAPjO8TZ2S5sG/hiRa0IZ4tSWNFO4zAJBQCMdAgsACADgQUAZCCwAIAMBBYAkIHAAgAyzA5rcPYpc2ebZFvjTXJ2h9h2v9/Zxhtf3OSGrJjpw2Q7c7LogyMzDguMsOKbN5LbCW6DU0IYcdasWTNhwgSnWwHDkce8hM7OOmcclUHtJtcJJi1ZsmTNmjU9/+vCT9PxankONn4gOMKCEeqZZ55ZtmyZ062A/OAIq8AbyglHWK510003rV27lrny08QRVo7VIrAKu6GcEFhuNnHixIMHD7rw00Rg5Vitsx2wIu+c/c2T/pIZbXkyqbceUxsOqrV16r46rf6A1tist7Xp7e2iIyYyaZFRGWPco3CPl5eEpNJSadQoeXy1PHmiMm2qUjNVmXSaVD6G+/1Od4Uxxp599tlFixbl7qkF/5wbX9x4k6xIB3d+FRFYdnQzJyo96m5DJqO3HM7s2p1+f3vmo13q3lrtaKuIdghVZcabxzlXFB4pkSvKlek1nlkzvXPneGbOkMZWcY/Hwd5VVlYePXo0R68RWMNd3CIILDu6mROJHolMRqs/kNr2burNrentO7SDjSKVKuD6uc8nnzbeO2e279KLffPOlydPdCS5+t0x7O0+Amu4i1sEgWVHN3NyeY/01mOpbe8mNm5ObXtHa2xmmmbt9mRZHl/tm3dB4Nr5vnnnS+Vj7OzsunXrbrzxxlNfR2ANe3GLILDs6GZOLu2REGp9Q/KFl+Lrn8/s2i2SSfs23bUH/H7PzBnBry70XzNfmTyR2fJoTlNT0/jx43PtDATWMBe3CALLjm7m5LoeCaHW1cfXPBv/w3Nq3X6m63ZsdCCSpNRMCS66PnjTDcrUyTbElhWJg8AqOASWHd3MyVU90ppb4qvXxZ56Rt1Xl8dFdKtxrkybGrp1SfDmRXL1WIs3hcAqZI8sYsk4LLNtct84F+Mc/0TzbnA8kXjx5c5fPpbevsPyC1XDI8veObPD3/1W4OoreTBg0UZcOGrJihGFtpVbsGjXIbAKjFZgZT7e3bHq0cTzm0Q84XRbhsCDgcDCBSU/uNNz9gxL1o/AcmhDeUFgFRiVwBLJZGL9xuhDP1f31Trdljwo02oi99wV+Oq1BR90isByakN5QWAVGInA0pqaOx56JLZ6rYjFnW5L3ngoGLp5cck935fHVRdytQgshzaUFwRWgbk/sNLvf9i+/GeprW+76OJ6vjj3Xfy50vt/4p17buFWicByZkN5QXmZkUQXyc2vHL/tjtSWtwinFWNMiNSWt47fdkdy8ytMp9wRyBMCa8RQ1dhTq9u+czeti1aDdWhfbdt37o49tZqpqtNtAZvYV17GOCqFPqwYSGXRiYlIZ2KPPxG9f6XeHjW5KreRSiOR5ctCS2/nXlMPIbpwAJ0Lf0dWbD0vmISi+Il0pvNXj0UfeFh0djrdlsLT26PtP/03kcmEv/Mtk5kF7odTwmKnqrHHnyjWtOoiOjujDzwce/wJnBsWPQRWURMi9vTa6P0rizitujva2Rm9f2Xs6bW0bybAUBBYxSy5+dXoigeL77pVTnp7NLriweTmV51uCFgIgVW00u9vP/GjFdrhI043xD7a4SMnfrQi/f52pxsCVkFgFSetqbl9+X3q3iIZwWCcure2ffl9WlOz0w0BS5gtL0Nlghxnh0rYPGhYpFLt9/yk87EnzGyUtPC3bi996Gfc5zO+CJXyMjk5+8CJSZhIdaRLPLsh9vRap1vhpNjTaxPPbnC6FVB4CKxik9m1O7ryEYpPNReQiMWjKx/JfLzb6YZAgSGwioqIJzoeeXQEXro6lbq3tuPnj7q/zhfkBYFVVBKbXkps2OR0K9wisWFTYtNLTrcCCgmBVTy05pbOXz2OY4oeIp7o/NXjWnOL0w2BgkFgFY/46nXp9z90uhXukn7/w/jqdU63AgrGbLUG45ytbeBsqQnzd4iH3CdqbV3rdUtw9epUyvSa8g3PKDVTB3+bC2d1craIgjtLOOAIq0jE16xHWuWk7q2Nr1nvdCugMBBYxUCtq4+ve86SVQvBdL3Pn7z0WzbfP13/IJtpAGOMsfi659S6ekv2D9gL9bCKQXLTS+q+usKvVzBp9Gipopyxk0fyqqodbBSZjKHFZVmedBr3+XsXz4uua43NTFXl08Yz5eQXNZPRDjUZbcBJ6r665KaXwt/7duF3EdgLgUWe3nosvn6j0bIqksR0vXvCVM67/wy4ai2wcH5k+bLu4xpJ0hqbjn9tqbq/nklDHZsLIZWWjvrFv3tmnT2c+Vk5F52x40u/q+5vGPX/fqlMnsR0nUmy+vc9x267Qxw5mt/k9ULE128M3nyjVD6mwHsf7IXAIi+17d3Mro+NvJN7veE7vyVVVqh792kNB9WDh/Rjx0VHh0ilezOF8z5hJMty9djedNB1pshGWyZLUlXFsKeYF50x7vMxIeSKip4ZvdRP9opEcoh0zpVlmV0fp7a9G7h2fmF2OjgEgUVcRk1s3CySqaHfKQTz+fxXXub73IVMFyKR0KMd+uEjWlOzWrtf3V+v7m/Qmpr11mPakaO9pTu7LiT1REC+53ambgoJJgQPBJjX2/OS1tTCFZmXlrIBDrBEOiOSyRyvJ1OJjZsDV13OPPjOE2b2wzN+N9f4XVKT91OtmA7AhVN1dFHrG1Lb3jHaNq9HKokwxpjEeSgoh4JydZXn3HO6m5hIing88/dPjn/j21r9gazjLBPtNPdJMsakkrAU6J3k2ff5C8f84XcDLiFJsaeeiT+1JudBVmrbO2p9gzK9Jo8WOPqltYJtG7II/rWhLbXtXe1Qk6G3CsH9fl4Szv23nPNggAcDUqSEJVMDXiHiLI8Q0nX9SKvW3DLErT0heDgklZX1vhCL6+3tojMmkkmpojy7zfKE8fKE8YNsMfa71UzXmZzjvFU71JTa9m5egQVug8AiTGQyqTe3Gr/TL0VKeCAw+Hu0xmY9Gu0bWKInpISqCdXYHTrO9RPtbf/0z0MXpdL14A3XRZYv6zmmS7zyWvS+h5imaQcOhW67mfv9Q26te00n2tVP9g2yodSbW0M3L2IeTK5DFQKLML35cHr7jjzeH4+n3tyqnHWmXFXRHV6nHImo++tFKt3zv9zr7XMNXlVZMmX0IEvTtLp6MUSecsaE1nI4+zq6ONGu/v0TputMUTyzzzF+Q1A/clRrbB7k/entO7Tmw/LECeZ2PDgGgUVY5uPd2qFGo++WJO3AobZv38VLI3L5GKmqUh43VpkyWamZKk86TR5fLY0qk8JhdX89U9WeIOM+b/Y6RDotdN3oSaEQ8qSJ/su/yBUl9309SdIONSZe+m/GeZ8Q5IzJMhNCKh/jmTPr1NX2+d+seFIPHtJPnBgksLRDjZmPdyOw6EJgEZb+4END9wd7CCHSaXHkqN5yhO36G2OMSRLzeKRwSBpVJo+rlieMT3/4Ud8xVn1+/CKeyGPuP133nHl62cr7BjwP5Tz15p+Tb2wdqLWeGWcoU6f0vKDure38zX+JRKI7knThn//lwIKret+we4+IxQcJLJFMpT/40H/llwr9UYBNEFhUiWQys2Nn/osJxhiT+5zl6W0n9ONt6r46JgST5d4fPOc8FOyzdCwm8p2sdPCxqQP9jRBMUQJXXymVRnpeS7ywufPRx5jouqYmmCR5P31eVke0zK7dTNNyXnHvkdmxUySTxq+LgavkEVi2VUGwYl4M295pxfiJnFvXW4/l/bSzokiREhGLi1Sqz0jRfoNFszfc9+BI7+hkeT4WM0y6rpx5uv/qK3pfaDuRfOX1rl507Slp9CjPWWf2viEazezeM+SK1b21euuxwW41DsW2CU2cnZnCtqIUecERFlVqwwHtaGseC+i6MmVS2cMPiERSO9SoHWpUDxzS6hu0I0f1Y20imWSZDBOMSVnhJUk80mcYhIh2iIya32MxgxtoVUJ4Pz1XmXRazwuZ7TsyH+3qbZsQ8tgqOesNWlOzdvDQkM8MaUdb1YYDZgILHITAokqt3S+iHXksIIQ0epT3U+dJo8q6X0ilRWen3npMa2pWGw6otfvV+gPq7j2Z3Xt6Hh6USkuz16G3nRjOg4Enpf705/T/fsCknlNOSd1XK9JdNyX7/YPMpdKSnvQRGTX+x436ifbswFKmTZVGj+rdIX//RD/eNmSYimiHWrvfN++Cgn8iYAMEFlXqvrr8ihYIIZWEs0dFcZ+X+0ZLY0YrZ0z3nXxPfN1zbd/8btdYBK7I2eM5GWPakaNM14d+8nkAiU0vd/z8l4xLJ69ddT/003/wBOt/bSvz0c7ky6/1eUmWvZ+em30pKv3RLpFKDdk2oWY0KypbgC0QWFRp9QfyXYSXlAwxZpJzrflwdw4Kwf3+7GveTNf1I0eMloXIxTN7ZuAr1/E+mSKYzxf4yrW5joxOjlZNp2NPrtYam7IPr6RIxPuZub1ricUzH+401DbB1Px3HbgEAosqrdHYEzk9OJdGj+LyoAcgQmj1Dd032oTgoSAv6z0lFKqqHztu5nnm0C2LgzfdcErDJN7/gWTOOJfC3ZfPUlu3JZ57oU+i6bo8ZZJy5unZeyOzZ6/Bi2taIyaypwqBRZXediK/BSQp/Zf3o//678q0GnnSBLm6WhpdJoVCvbXxGBPxhLq/oXeJsrLsi0QintBaj5l6nlmWuTx0dRqhaUywrrIKasOBjodW6a3H+p3reT8zVy4f031IxXnmk3264SJZelubiT6Ak/IILGdnfLDz1qkZtg2A0Nvb821ZZseuzI6dzOORgkFpzChp7FhlyiRl8iRl+lR5XLVUVck0TWts6v7ZCyFPGN9zmMMYEx0d+rHjhbxFOFDXWg4zXWNcUusb2u/5SWrbu/2vTMlyZuff2u76IdNPBtbHu0UyaTSwcu06275Lzs5yYtvvyKIN4QiLKtERy3sZiTPGmabp0aje3s5q96fffofJEvMo3B+QIiVSaUStb2C8Ox2UaVN5VmkXrblFb80zsPKq7sAYY0zd35B85XXGeeqtbcmXXhlo4rL0O++ls+vqSJLxWwHD2XXgDggsqkQmPfyF+40+VzXR0aFFo9qhRiZJ3Qnj8XjOOrPPk3r7G0RHNJ/A4npbe+qd97jPa/DKl360Nfbk6vT2HUySUlve6r4jKQQvKQl/8zZ5fLXQdc640NT46nV9hmXZtuvAUQgsqkTGwCMyeR2BnzwT7PqvFClRzpie/feZj3eL5FDjBrLjTJbS23ccW/T1PI6x0hmRSPYO1OralhBSaST09SU97RGpVGrL28N5Msn4rgNXQmAVL865z9f748+LpnvOmenJCiyRTKqf1HK/f/Ca7iKj9j4d3dUAzvOolOz19taHEEwkEl3jVLnPx/xZdbXSGZFIOLRbwUkILKq4RxGDDDoXQopEIivuVaZMEnr+VzqFUCaM7zPHjCSF71wa/NriQU4JucRjT61JrN/IZIkJIZWVlj74U+X0acOZTJBzEU+0/+S+zPsfMsZ4KCiFQj1/qcfjejQ67ALMHGXdycInRxX3eIeoLePz+i660DPzrMJszuv1fW7ox1lS297rPQ/1eLxzZnlmnzO8LYrOmFRa2lXuVCorzb78Lzpjoj067AEW3OMd5pLgNEsCy4q7pC4cwWCFPEaElIRYx6DPEgphbtKaYenb1OEc3GUtffKCGpPHVmXPnSNiMb0zNuwBFrwkNLwFuxe3ax4HF/6OrKg/kVeTMFU9Vf0eS87N/hlS+KD/O9x1yuOqedZDRfrxNpFIDnt9hnYduBJOCamSRo0a8j0ik2GaJvKrr8C595TnDVV1qNLsjDHGJalPLQchWEY10gAuyQNfyxdM8chTJmW/pB05KmIxpmmMc2Zg6Pwwdh24EwKLKnl89WB/zbmIdrT/aIUUKTU0uIGzrnKjodtu8V/+xey/UffVdqz8hX7ixBDHS5wxxjJ/29NdzpRz0dHR/uP7pNIhGiCEHvjSpaF//HrPgInUn7fFf79WpNPqnr1MkngwoNRMyV5ECocDV1/BGNdjsfT/vNdbNLkguw5cDIFFlTJ5Iht0wIBIp1NvbDU+FEvoeuCqL3tmnd3nxXi84//+R+y3vzfarKwR5yKVTr2xZYjDK86ZEHL5mFBWO9VP9sV+t7q7XjNjckW5Mmli9kL+L1/q++IljDMR7Tj29aWp1/6Ux3EWZ8rkiUbfDC6DwKJKnjaVK54hSmIZ/xlrmnfunNIHfypXj81+ObFhU/zZ57sLvZ+afYMf1wghjRmjnD6NDVgigov29szuPUyS+xy+SZx5PN2DIXRdHlctVVb0WU5RuMIYY7x8THDhgtSWt42PnOCKR5421eTOB6cgsKhSaqbwSIk4drwA69J1efKk0gdX9BsDkd7+UfShn4vOTibLgQVXej/7aSZO5gKXUlvfSr765mCnibrumTNr9G9/wwP+nEeCXJaTW986/rWlg48sVc48XcqesFqI7KD0XXKRMnWy+sk+g4/p8EiJUoPAosq+SSiMs+22scm+G2+8FVMMKJMmyhXluvnA0nV5bFXpA//iv/TiPi+3Hove/1DXVSSmatznC3/7H7MrfPo+d37mw51ay5FBBtNzRZFKI4NMNy2FQkMcpnm93s/MzQ4jtW4/D4XlsZXd+6Fmiv/KL3UOMuFzX3JFeXap+N6mWvCtM/m1Mfnjsq1HxhtvHoY1UCWVj1Gm15hdi65LY0aXPvAvweuvyQ4OkUp1PPLr5CuvdyeFxJNvbEn/dXv2op45s/3XXJXHYzfDap5cUe6dOyf7tcSml1Ov/ylrR0iBa6+Wxow2eLVOmV7TZwQ/kILAoor7/cMeRN5N16XKitL7fxJc/NU+51NCxH+/tvM3/5U9FZjeeiz+hz9mT0rIPZ7QLTdKVZVmiiYPeRXMc+45ytTJvS8kEqktbyde2CySveOwvHNm+y660OBlLM/sczApIV24hkWY97xzud+X3+TPPbrOBB/8aXDxV/pd/Um+sTX64MOis7P/6y+/pn7zNs+smT2veM6dFbjyy7EnnzY4qiCzZ6/WcKDn+jqXpfT2j5jWFYK5Uk9R/Jd9gQd7J3PVmlvUv38iMhl1X13PFTceDAQWLki+8vrJCXgGxP0+73nnWvBRgE0QWIR5zp4hTxivDmMOGE2Xp0ws+7efBa6d3y+V0n/9oH3Z8u7CWNkkSWtsSrz4SnZgcZ8v9A83J17+b4PlieO/W9356ONZNw050zQRT+SeHVrX5dMm+C65qE/zPtihtbSIVDr56uvZtwh8F12onDE9s2Pn4Jfe5QnjPWfPsO4TAavhlJAwqbrKO2d23ovpuufsM0c9uipw3YJ+P291z94Td/+fzMe7c//sdT2xYZN2qDH7Nc95cwLzLzd4VshDIamyQqqsPPmnQqquUmac4bvw/BxbFML3+QuVrCEIIpNJvvq6iCeYpiVffi27qr08YVzg6iuGDE3vnNlydZUFHwXYBEdYhHGPx3fpxfE/bjQ6CkkIxpjvC58vffCn3jmz+v2lure27a4fpt/73wEPUiQps3tP4sVXw3fc3tsGryd065LE5leNHGSF7/hG8KYb+oyEEIx7PNLJW349a2VCSKPKgjfdkD2RorqvLrX17a7DsfSOnem/vJ89KD9wzVWx3z6tNTUP0n7fpRcPMdEZuJvZSSisWNzZMQRWjN6wbqyDb9758oRx2oFDRjrGFCV4/TWR+5b3GzjOGFPr6k/84N7UG1uGGM2UTifWbwguWiiNHt3zmue82f4vXxp/ai2Th2i8NGa0NGY0G5IQTNd9l32hX0Gb5Euvage7z1VFtCPx4sv+yy7pGRyrnHWm79LPx3+/dqC1yhPG+eadP/A2C/+1Mcn4Ol04g4ZFTcIpIW3K5EmGZl3Xdam0NPLDH5T9x8pT0yqzY2fbHd9LvvanocdeSlJ6+0ept9/Nfo37fKHbbpEqy03dLsxubNsJqaI8fMc3sgdwaQcb4+s2ZB9Lpv68Tc06P+Veb/ArC3kkMlAzfPMuUPo+RA3kILCI8yiBa+fz7PLBpxJCmXHGqF+vKrnnrn5TzzNdT/152/Gl/5Ta+rahUjCci46O+Nr12aMKGGPez3wqMP+KggSW3h5N/c97wZtu8F3wmezXEy9szvwt6+KaJGn7G1JvvZP9Hu9nP+U556ycJ8jc7wtcOz97EkagCJ8feb5553tmnp3+6wcDvcH76fMiP7zbM2eWfuRoVqZwpmuJza92rHpUO3Awj+lnJCm15a3ka3/yfmpO70AtWfZ96QuJjS/qJ9r7DEBNJrXGZh7wG6sYwUVnLPbkav3o0eCy72tHjnZHjySp9Q2djz3B0pnsdopkMrFhk2/eZ7nXe3JGVcl3wWfT7/zl1HV7Zp49yPkgUMGtGOlv2+UAF17DcuRiWecvfn3i3hW5Q4FzuapSKivNUdBK07RDTSKRGMZkWXJVJS/rWzdG1bRDh0Q662FswXgoKI+vNl77RcTjWlOLFCnpMx6Vc9HRqTXlmF+e+3zyhPG94yS63tnc0n9XcF724Irw976dbzdtu2SDeYKNNgCBNezF3RNYal1968LF6t7agbY04AFOzgFQRugix1DPXEMT8j5PlKTcS+VMVcF6n8ce+J3K9Jry59dmj5g3CIHl1A4ZCK5hFQNl6uTgousH/GvOu8tUnfpn2Hd+pVzrzGvTA/0ZaKncXWNG3hlcdP0w0gpcKI8jrNzLO/pEuLP/BJnse2Ebr9bWtV63ZMCDrBFMmV5TvuEZR0rKOPvrsGJDVnQTk1CMRErN1NCtS4Y3dXsxk6TQrUtQAKto4PtdPII3L/LOPdfpVriLd+65wZsXOd0KKBgEVvGQq8eGv7OUBwPmV1UceDAQ/s7SfkWfgTQEVlEJLLgqcN0Cp1vhFoHrFgQWXOV0K6CQEFhFhQcDJXfdqUyf5nRDnKdMn1Zy15043iwyCKxi4zl7RmTZ93goaH5VdPFQMLLseyh9VXzsq9aQk8nn0W2r0p9znS4c19clcMN16b9u73zsCacb4pjQLYsDN1xn0cptG0FtG5M/Lju7iSOsIsR9vpJl3+9Xq3Pk8F1yUcmy72cX0oKigcAqTvK46tL7f1yAaXWoUabXlN7/Y3kcJqMvTgisouWdO6fsgRVyVaX5VVEhV1WWPbCi37RgUEwQWMXMP//yyIp7pdKI0w2xg1Qaiay41z//cqcbAhZCYBU1zkO3LI4sX8bDYfMrczMeDkeWLwvdsnj4j3MDBQisYqcooaW3R350dxFnFg+HIz+6O7T0dhQULXpurNZgkhWjDWwr5mVRj0Q6E3v8iej9K/X2aMF3jrOk0khk+bLQ0tu519R0OLaVHLCi7ogLG29ReRUEVoG76c7AYowxVY09vTa64kHt8JGC7x+nyFWVkRX3hm5ZbP7YyoW/edKNtyiwcEo4YihK6NYlo371sDKtSMY6KNNqRv3q4dCtS3AmOHIgsEYSSfLPv2L0k//pu+Qi2henOfddctHoJ//TP/8KlAAbUXBKWOBuuveUMIvW1Nzx0COx1WtFLF7YNduAh4KhmxeX3PP9wo4OdeFZFenG4xqWUQgsQ+tMJhPrN0Yf+rm6j1JVZWVaTeSeuwJfvZb7/YVdswt/86Qbj8AyCoFlXObj3R2rHk08v0nEExZtolB4MBBYuKDkB3daVIPBhb950o13PrBsa6sVc2oZZ1veuaTYg4gnEi++3PnLx9Lbd/ROjOoqsuydMzv83W8Frr7SuvpWVvzmXbhO4xvKCYFV+A2ZNNICq4vW3BJfvS721DPqvrqCzDhfGJwr06aGbl0SvHmR1ZWOXRguLvzOI7AKvyGTRmZgdTVIrauPr3k2/ofn1Lr97NSZou0kScrUKcEbrw/edIMydbIN9zRdGC4u/M4jsAq/IZNGbmCdbJZafyD5wub4+uczu3aLZNLm7XO/3zNzRvCrC/3XzFcmT7Rt+IULw8WF33kEVuE3ZNJID6yT9NZjqW3vJjZuTm17R2tstvzylizL46t98y4IXDvfN+98qXyMzf11Ybi48DuPwCr8hkxCYPVpZCaj1R9IbXs39ebW9PYd2sFGkUoVcs/4fPJp471zZvsuvdg373x58kTuMfVI4PBb4r5wceF3HoFV+A2ZhMDKSWQyesvhzK7d6fe3Zz7ape6t1Y62imiHUNU8LtJzzhWFR0rkinJleo1n1kzv3DmemTOksVVO5VR200ztHwTWcN+ZF7PjsKzolXG0fvNGkIg2kUzqrcfUhoNqbZ26r06rP6A1NultJ/T2dtERE5m0yKiMMe5RuMfLS0JSaak0qkweP06ePFGZNlWpmapMOk0qH1PwwZ/2sO3fY5NNMs62wYPm+47AchcSgTXCIbCGvU7zfceDowBABgILAMhAYAEAGQgsqtauXet0EwDshovu7pLXrqusrLzssssWLlx40UUXjR1r7aN20AMX3Ye9TvN9t6S2rMm2OjsOy2Q3c7KikowVWzfZ95Hzsyl4O40vnrOdVnwczn5pB4JTQgAgA4EFAGQgsACADAQWAJCBwAIAMhBYAECGfeVlnOXCqXSojMexopvO7qWcRsiX1njf3VlnCUdYAEAGAgsAyEBgAQAZCCwAIAOBBQBkILAAgIw8qjXYdpPVtkodVgzUoHIr2rbBCiZ7ZFvfnS0xYlvtDePFHoyz89eBIywAIAOBBQBkILAAgAwEFgCQgcACADIQWABARh7DGpx97N62ev5W3KO1besmpy0wyYXDBXKiUmLEWVZMgYFqDQAwgiCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIyGMSCks2774n161op8l12nbH3YUzkpCelcMkZ7+fJjdkUQkHHGEBABkILAAgA4EFAGQgsACADAQWAJCBwAIAMsgMa3DhU/vO3sV34Z1sk+s0zoVbd+E4D2fLq1gER1gAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDwmoTDOihoMxhc3eefVZEV9K7hwAg6T7XR2ZgrH780XvEkunGPFor7jCAsAyEBgAQAZCCwAIAOBBQBkILAAgAwEFgCQkUe1BmfLGFixIdv6bnydLpwXwzjbboTbtnXbyi04O6TD2flQMKwBAIoTAgsAyEBgAQAZCCwAIAOBBQBkILAAgIw8qjWYLGNg2/wIVrBitIELZ9BwdoeYXNy2cR623e/PyYq+W7FOi3YIjrAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGXlUazC7JUeLEzhbK8K2IR3FN3bEhTVCrOhmTi4cVGFbjwaCIywAIAOBBQBkILAAgAwEFgCQgcACADIQWABARh7VGkxytjyAyQ1ZcdvYtjoEVgyAoDLbhbPrNF7LxHiTbCvI4WydjIHgCAsAyEBgAQAZCCwAIAOBBQBkILAAgAwEFgCQkcewBioPvlsxAMK2u/gunHPB5OJWjJ+wbeSKs1u3YnHqRT5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIMFutYefOnRUVFVa3ctWqVStXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",width:200}),(0,c.jsxs)("div",{style:{marginLeft:"35px"},children:["群号:","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,a.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)}},86013:function(e,t,n){var o=n(59301),r=n(19248);t.Z=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:o.createElement(r.Z,null)}),t}},40192:function(e,t,n){n.d(t,{Z:function(){return r}});var o=n(59301);function r(){const[,e]=o.useReducer((e=>e+1),0);return e}},52838:function(e,t,n){n.d(t,{Z:function(){return l}});var o=n(37645);const r={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"]}},i={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"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:l,offset:c,borderRadius:s,visibleFirst:u}=e,d=t/2,f={};return Object.keys(r).forEach((e=>{const p=l&&i[e]||r[e],m=Object.assign(Object.assign({},p),{offset:[0,0],dynamicInset:!0});switch(f[e]=m,a.has(e)&&(m.autoArrow=!1),e){case"top":case"topLeft":case"topRight":m.offset[1]=-d-c;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=d+c;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-d-c;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=d+c}const g=(0,o.wZ)({contentRadius:s,limitVerticalRadius:!0});if(l)switch(e){case"topLeft":case"bottomLeft":m.offset[0]=-g.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":m.offset[0]=g.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":m.offset[1]=2*-g.arrowOffsetHorizontal+d;break;case"leftBottom":case"rightBottom":m.offset[1]=2*g.arrowOffsetHorizontal-d}m.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=o&&"object"==typeof o?o:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,g,t,n),u&&(m.htmlRegion="visibleFirst")})),f}},47999:function(e,t,n){n.d(t,{c4:function(){return i}});var o=n(59301),r=n(57700);const i=["xxl","xl","lg","md","sm","xs"];t.ZP=()=>{const[,e]=(0,r.ZP)(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(i).reverse();return n.forEach(((e,o)=>{const r=e.toUpperCase(),i=`screen${r}Min`,a=`screen${r}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(o{const e=new Map;let n=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return o=t,e.forEach((e=>e(o))),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(o),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.keys(t).forEach((e=>{const n=t[e],r=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},o),{[e]:n}))},i=window.matchMedia(n);i.addListener(r),this.matchHandlers[n]={mql:i,listener:r},r(i)}))},unregister(){Object.keys(t).forEach((e=>{const n=t[e],o=this.matchHandlers[n];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),e.clear()}}}),[e])}},82855:function(e,t,n){n.d(t,{F:function(){return a},Z:function(){return i}});var o=n(92310),r=n.n(o);function i(e,t,n){return r()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const a=(e,t)=>t||e},1560:function(e,t,n){n.d(t,{Z:function(){return y}});var o=n(2738),r=n(45915),i=n(75914),a=n(59301),l=n(92310),c=n.n(l),s=n(11592),u=n(75030),d=n(48755);const{Option:f}=i.default;function p(e){return(null==e?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const m=(e,t)=>{var n;const{prefixCls:r,className:l,popupClassName:m,dropdownClassName:g,children:h,dataSource:v}=e,b=(0,s.Z)(h);let y;1===b.length&&a.isValidElement(b[0])&&!p(b[0])&&([y]=b);const x=y?()=>y:void 0;let w;w=b.length&&p(b[0])?h:v?v.map((e=>{if(a.isValidElement(e))return e;switch(typeof e){case"string":return a.createElement(f,{key:e,value:e},e);case"object":{const{value:t}=e;return a.createElement(f,{key:t,value:t},e.text)}default:return}})):[];const{getPrefixCls:C}=a.useContext(d.E_),S=C("select",r),[E]=(0,u.Cn)("SelectLike",null===(n=e.dropdownStyle)||void 0===n?void 0:n.zIndex);return a.createElement(i.default,Object.assign({ref:t,suffixIcon:null},(0,o.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:S,popupClassName:m||g,dropdownStyle:Object.assign(Object.assign({},e.dropdownStyle),{zIndex:E}),className:c()(`${S}-auto-complete`,l),mode:i.default.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:x}),w)};var g=a.forwardRef(m);const{Option:h}=i.default,v=(0,r.Z)(g,"dropdownAlign",(e=>(0,o.Z)(e,["visible"]))),b=g;b.Option=h,b._InternalPanelDoNotUseOrYouWillBeFired=v;var y=b},62673:function(e,t,n){n.d(t,{Z:function(){return I}});var o=n(59301),r=n(92310),i=n.n(r),a=n(16632),l=n(8654),c=n(12919),s=n(63872),u=n(48755),d=n(2171),f=n(83397),p=n(56553);var m=o.createContext(null),g=n(36170),h=n(74632),v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,className:b,rootClassName:y,children:x,indeterminate:w=!1,style:C,onMouseEnter:S,onMouseLeave:E,skipGroup:k=!1,disabled:I}=e,j=v(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:N,direction:M,checkbox:Z}=o.useContext(u.E_),O=o.useContext(m),{isFormItemInput:$}=o.useContext(p.aM),A=o.useContext(d.Z),z=null!==(n=(null==O?void 0:O.disabled)||I)&&void 0!==n?n:A,T=o.useRef(j.value),P=o.useRef(null),L=(0,l.sQ)(t,P);o.useEffect((()=>{null==O||O.registerValue(j.value)}),[]),o.useEffect((()=>{if(!k)return j.value!==T.current&&(null==O||O.cancelValue(T.current),null==O||O.registerValue(j.value),T.current=j.value),()=>null==O?void 0:O.cancelValue(j.value)}),[j.value]),o.useEffect((()=>{var e;(null===(e=P.current)||void 0===e?void 0:e.input)&&(P.current.input.indeterminate=w)}),[w]);const R=N("checkbox",r),B=(0,f.Z)(R),[D,H,W]=(0,g.ZP)(R,B),F=Object.assign({},j);O&&!k&&(F.onChange=function(){j.onChange&&j.onChange.apply(j,arguments),O.toggleOption&&O.toggleOption({label:x,value:j.value})},F.name=O.name,F.checked=O.value.includes(j.value));const K=i()(`${R}-wrapper`,{[`${R}-rtl`]:"rtl"===M,[`${R}-wrapper-checked`]:F.checked,[`${R}-wrapper-disabled`]:z,[`${R}-wrapper-in-form-item`]:$},null==Z?void 0:Z.className,b,y,W,B,H),V=i()({[`${R}-indeterminate`]:w},s.A,H),[q,X]=(0,h.Z)(F.onClick);return D(o.createElement(c.Z,{component:"Checkbox",disabled:z},o.createElement("label",{className:K,style:Object.assign(Object.assign({},null==Z?void 0:Z.style),C),onMouseEnter:S,onMouseLeave:E,onClick:q},o.createElement(a.Z,Object.assign({},F,{onClick:X,prefixCls:R,className:V,disabled:z,ref:L})),void 0!==x&&o.createElement("span",{className:`${R}-label`},x))))};var y=o.forwardRef(b),x=n(95190),w=n(2738),C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{defaultValue:n,children:r,options:a=[],prefixCls:l,className:c,rootClassName:s,style:d,onChange:p}=e,h=C(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:v,direction:b}=o.useContext(u.E_),[S,E]=o.useState(h.value||n||[]),[k,I]=o.useState([]);o.useEffect((()=>{"value"in h&&E(h.value||[])}),[h.value]);const j=o.useMemo((()=>a.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[a]),N=v("checkbox",l),M=`${N}-group`,Z=(0,f.Z)(N),[O,$,A]=(0,g.ZP)(N,Z),z=(0,w.Z)(h,["value","disabled"]),T=a.length?j.map((e=>o.createElement(y,{prefixCls:N,key:e.value.toString(),disabled:"disabled"in e?e.disabled:h.disabled,value:e.value,checked:S.includes(e.value),onChange:e.onChange,className:`${M}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):r,P={toggleOption:e=>{const t=S.indexOf(e.value),n=(0,x.Z)(S);-1===t?n.push(e.value):n.splice(t,1),"value"in h||E(n),null==p||p(n.filter((e=>k.includes(e))).sort(((e,t)=>j.findIndex((t=>t.value===e))-j.findIndex((e=>e.value===t)))))},value:S,disabled:h.disabled,name:h.name,registerValue:e=>{I((t=>[].concat((0,x.Z)(t),[e])))},cancelValue:e=>{I((t=>t.filter((t=>t!==e))))}},L=i()(M,{[`${M}-rtl`]:"rtl"===b},c,s,A,Z,$);return O(o.createElement("div",Object.assign({className:L,style:d},z,{ref:t}),o.createElement(m.Provider,{value:P},T)))}));var E=S;const k=y;k.Group=E,k.__ANT_CHECKBOX=!0;var I=k},36170:function(e,t,n){n.d(t,{C2:function(){return c}});var o=n(66604),r=n(63356),i=n(51636),a=n(16931);const l=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,r.Wf)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},(0,r.Wf)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,r.oN)(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${(0,o.bf)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function c(e,t){const n=(0,i.IX)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[l(n)]}t.ZP=(0,a.I$)("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[c(n,e)]}))},74632:function(e,t,n){n.d(t,{Z:function(){return i}});var o=n(59301),r=n(16089);function i(e){const t=o.useRef(null),n=()=>{r.Z.cancel(t.current),t.current=null};return[()=>{n(),t.current=(0,r.Z)((()=>{t.current=null}))},o=>{t.current&&(o.stopPropagation(),n()),null==e||e(o)}]}},5269:function(e,t,n){var o=n(5472);t.Z=o.Z},38406:function(e,t,n){var o=n(59301),r=n(48755),i=n(584);t.Z=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,o.useContext)(r.E_),a=n("empty");switch(t){case"Table":case"List":return o.createElement(i.Z,{image:i.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(i.Z,{image:i.Z.PRESENTED_IMAGE_SIMPLE,className:`${a}-small`});case"Table.filter":return null;default:return o.createElement(i.Z,null)}}},22173:function(e,t,n){n.d(t,{Z:function(){return X}});var o=n(59301),r=n(33853),i=n(38819),a=n(92310),l=n.n(a),c=n(96478),s=n(6089),u=n(18929),d=n(2738),f=n(75030);var p=e=>"object"!=typeof e&&"function"!=typeof e||null===e,m=n(52838),g=n(45915),h=n(22703),v=n(32383),b=n(55743),y=n(48755),x=n(83397),w=n(93041),C=n(78857),S=n(57700),E=n(66604),k=n(63356),I=n(46e3),j=n(93873),N=n(34925),M=n(37645),Z=n(36305),O=n(16931),$=n(51636);var A=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}};const z=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:s,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:I.fJ},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:I.Qt},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:I.Uw},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:I.ly}}},(0,M.ZP)(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},(0,k.Wf)(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,k.Qy)(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${(0,E.bf)(s)} ${(0,E.bf)(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,E.bf)(s)} ${(0,E.bf)(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,k.Qy)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,E.bf)(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${(0,E.bf)(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[(0,I.oN)(e,"slide-up"),(0,I.oN)(e,"slide-down"),(0,j.Fm)(e,"move-up"),(0,j.Fm)(e,"move-down"),(0,N._y)(e,"zoom-big")]]};var T=(0,O.I$)("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:o,componentCls:r}=e,i=(0,$.IX)(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:o});return[z(i),A(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},(0,M.wZ)({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),(0,Z.w)(e))),{resetStyle:!1});const P=e=>{var t;const{menu:n,arrow:a,prefixCls:g,children:E,trigger:k,disabled:I,dropdownRender:j,getPopupContainer:N,overlayClassName:M,rootClassName:Z,overlayStyle:O,open:$,onOpenChange:A,visible:z,onVisibleChange:P,mouseEnterDelay:L=.15,mouseLeaveDelay:R=.1,autoAdjustOverflow:B=!0,placement:D="",overlay:H,transitionName:W}=e,{getPopupContainer:F,getPrefixCls:K,direction:V,dropdown:q}=o.useContext(y.E_);(0,v.ln)("Dropdown");const X=o.useMemo((()=>{const e=K();return void 0!==W?W:D.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[K,D,W]),G=o.useMemo((()=>D?D.includes("Center")?D.slice(0,D.indexOf("Center")):D:"rtl"===V?"bottomRight":"bottomLeft"),[D,V]);const Q=K("dropdown",g),_=(0,x.Z)(Q),[U,Y,J]=T(Q,_),[,ee]=(0,S.ZP)(),te=o.Children.only(p(E)?o.createElement("span",null,E):E),ne=(0,h.Tm)(te,{className:l()(`${Q}-trigger`,{[`${Q}-rtl`]:"rtl"===V},te.props.className),disabled:null!==(t=te.props.disabled)&&void 0!==t?t:I}),oe=I?[]:k,re=!!(null==oe?void 0:oe.includes("contextMenu")),[ie,ae]=(0,u.Z)(!1,{value:null!=$?$:z}),le=(0,s.Z)((e=>{null==A||A(e,{source:"trigger"}),null==P||P(e),ae(e)})),ce=l()(M,Z,Y,J,_,null==q?void 0:q.className,{[`${Q}-rtl`]:"rtl"===V}),se=(0,m.Z)({arrowPointAtCenter:"object"==typeof a&&a.pointAtCenter,autoAdjustOverflow:B,offset:ee.marginXXS,arrowWidth:a?ee.sizePopupArrow:0,borderRadius:ee.borderRadius}),ue=o.useCallback((()=>{(null==n?void 0:n.selectable)&&(null==n?void 0:n.multiple)||(null==A||A(!1,{source:"menu"}),ae(!1))}),[null==n?void 0:n.selectable,null==n?void 0:n.multiple]),[de,fe]=(0,f.Cn)("Dropdown",null==O?void 0:O.zIndex);let pe=o.createElement(c.Z,Object.assign({alignPoint:re},(0,d.Z)(e,["rootClassName"]),{mouseEnterDelay:L,mouseLeaveDelay:R,visible:ie,builtinPlacements:se,arrow:!!a,overlayClassName:ce,prefixCls:Q,getPopupContainer:N||F,transitionName:X,trigger:oe,overlay:()=>{let e;return e=(null==n?void 0:n.items)?o.createElement(w.Z,Object.assign({},n)):"function"==typeof H?H():H,j&&(e=j(e)),e=o.Children.only("string"==typeof e?o.createElement("span",null,e):e),o.createElement(C.J,{prefixCls:`${Q}-menu`,rootClassName:l()(J,_),expandIcon:o.createElement("span",{className:`${Q}-menu-submenu-arrow`},"rtl"===V?o.createElement(r.Z,{className:`${Q}-menu-submenu-arrow-icon`}):o.createElement(i.Z,{className:`${Q}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ue,validator:e=>{let{mode:t}=e}},e)},placement:G,onVisibleChange:le,overlayStyle:Object.assign(Object.assign(Object.assign({},null==q?void 0:q.style),O),{zIndex:de})}),ne);return de&&(pe=o.createElement(b.Z.Provider,{value:fe},pe)),U(pe)},L=(0,g.Z)(P,"align",void 0,"dropdown",(e=>e));P._InternalPanelDoNotUseOrYouWillBeFired=e=>o.createElement(L,Object.assign({},e),o.createElement("span",null));var R=P,B=n(18785),D=n(20743),H=n(77736),W=n(70045),F=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{getPopupContainer:t,getPrefixCls:n,direction:r}=o.useContext(y.E_),{prefixCls:i,type:a="default",danger:c,disabled:s,loading:u,onClick:d,htmlType:f,children:p,className:m,menu:g,arrow:h,autoFocus:v,overlay:b,trigger:x,align:w,open:C,onOpenChange:S,placement:E,getPopupContainer:k,href:I,icon:j=o.createElement(B.Z,null),title:N,buttonsRender:M=(e=>e),mouseEnterDelay:Z,mouseLeaveDelay:O,overlayClassName:$,overlayStyle:A,destroyPopupOnHide:z,dropdownRender:T}=e,P=F(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),L=n("dropdown",i),K=`${L}-button`,V={menu:g,arrow:h,autoFocus:v,align:w,disabled:s,trigger:s?[]:x,onOpenChange:S,getPopupContainer:k||t,mouseEnterDelay:Z,mouseLeaveDelay:O,overlayClassName:$,overlayStyle:A,destroyPopupOnHide:z,dropdownRender:T},{compactSize:q,compactItemClassnames:X}=(0,W.ri)(L,r),G=l()(K,X,m);"overlay"in e&&(V.overlay=b),"open"in e&&(V.open=C),V.placement="placement"in e?E:"rtl"===r?"bottomLeft":"bottomRight";const Q=o.createElement(D.ZP,{type:a,danger:c,disabled:s,loading:u,onClick:d,htmlType:f,href:I,title:N},p),_=o.createElement(D.ZP,{type:a,danger:c,icon:j}),[U,Y]=M([Q,_]);return o.createElement(H.Z.Compact,Object.assign({className:G,size:q,block:!0},P),U,o.createElement(R,Object.assign({},V),Y))};K.__ANT_BUTTON=!0;var V=K;const q=R;q.Button=V;var X=q},584:function(e,t,n){n.d(t,{Z:function(){return x}});var o=n(59301),r=n(92310),i=n.n(r),a=n(9017),l=n(17835),c=n(57700);var s=()=>{const[,e]=(0,c.ZP)(),[t]=(0,a.Z)("Empty"),n=new l.t(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(null==t?void 0:t.description)||"Empty"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),o.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),o.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),o.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),o.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};var u=()=>{const[,e]=(0,c.ZP)(),[t]=(0,a.Z)("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:s}=e,{borderColor:u,shadowColor:d,contentColor:f}=(0,o.useMemo)((()=>({borderColor:new l.t(n).onBackground(s).toHexString(),shadowColor:new l.t(r).onBackground(s).toHexString(),contentColor:new l.t(i).onBackground(s).toHexString()})),[n,r,i,s]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(null==t?void 0:t.description)||"Empty"),o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:d,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:u},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:f}))))},d=n(16931),f=n(51636);const p=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var m=(0,d.I$)("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,r=(0,f.IX)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return[p(r)]})),g=n(48755),h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{className:t,rootClassName:n,prefixCls:r,image:l=v,description:c,children:s,imageStyle:u,style:d,classNames:f,styles:p}=e,y=h(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:x,direction:w,className:C,style:S,classNames:E,styles:k}=(0,g.dj)("empty"),I=x("empty",r),[j,N,M]=m(I),[Z]=(0,a.Z)("Empty"),O=void 0!==c?c:null==Z?void 0:Z.description,$="string"==typeof O?O:"empty";let A=null;return A="string"==typeof l?o.createElement("img",{alt:$,src:l}):l,j(o.createElement("div",Object.assign({className:i()(N,M,I,C,{[`${I}-normal`]:l===b,[`${I}-rtl`]:"rtl"===w},t,n,E.root,null==f?void 0:f.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},k.root),S),null==p?void 0:p.root),d)},y),o.createElement("div",{className:i()(`${I}-image`,E.image,null==f?void 0:f.image),style:Object.assign(Object.assign(Object.assign({},u),k.image),null==p?void 0:p.image)},A),O&&o.createElement("div",{className:i()(`${I}-description`,E.description,null==f?void 0:f.description),style:Object.assign(Object.assign({},k.description),null==p?void 0:p.description)},O),s&&o.createElement("div",{className:i()(`${I}-footer`,E.footer,null==f?void 0:f.footer),style:Object.assign(Object.assign({},k.footer),null==p?void 0:p.footer)},s)))};y.PRESENTED_IMAGE_DEFAULT=v,y.PRESENTED_IMAGE_SIMPLE=b;var x=y},24971:function(e,t,n){var o=n(59301),r=n(56553),i=n(48755);t.Z=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var a,l;const{variant:c,[e]:s}=o.useContext(i.E_),u=o.useContext(r.pg),d=null==s?void 0:s.variant;let f;f=void 0!==t?t:!1===n?"borderless":null!==(l=null!==(a=null!=u?u:d)&&void 0!==a?a:c)&&void 0!==l?l:"outlined";const p=i.tr.includes(f);return[f,p]}},43830:function(e,t,n){n.d(t,{Z:function(){return Xe}});var o=n(56553),r=n(95190),i=n(59301),a=n(92310),l=n.n(a),c=n(77900),s=n(86641),u=n(83397);function d(e){const[t,n]=i.useState(e);return i.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}var f=n(66604),p=n(63356),m=n(34925),g=n(34961),h=n(51636),v=n(16931);var b=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},\n opacity ${e.motionDurationFast} ${e.motionEaseInOut},\n transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}};const y=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,f.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,f.bf)(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),x=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},w=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,p.Wf)(e)),y(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},x(e,e.controlHeightSM)),"&-large":Object.assign({},x(e,e.controlHeightLG))})}},C=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:o,antCls:r,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:s,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},(0,p.Wf)(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden${r}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:s,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:m.kr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},S=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},E=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:o}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:o,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},k=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),I=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${n} ${n}-label`]:k(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${o}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},j=e=>{const{componentCls:t,formItemCls:n,antCls:o}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n ${o}-col-24${n}-label,\n ${o}-col-xl-24${n}-label`]:k(e)}},[`@media (max-width: ${(0,f.bf)(e.screenXSMax)})`]:[I(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-xs-24${n}-label`]:k(e)}}}],[`@media (max-width: ${(0,f.bf)(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-sm-24${n}-label`]:k(e)}}},[`@media (max-width: ${(0,f.bf)(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-md-24${n}-label`]:k(e)}}},[`@media (max-width: ${(0,f.bf)(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-lg-24${n}-label`]:k(e)}}}}},N=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,\n ${n}-col-24${t}-label,\n ${n}-col-xl-24${t}-label`]:k(e),[`@media (max-width: ${(0,f.bf)(e.screenXSMax)})`]:[I(e),{[t]:{[`${n}-col-xs-24${t}-label`]:k(e)}}],[`@media (max-width: ${(0,f.bf)(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:k(e)}},[`@media (max-width: ${(0,f.bf)(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:k(e)}},[`@media (max-width: ${(0,f.bf)(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:k(e)}}}},M=(e,t)=>(0,h.IX)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t});var Z=(0,v.I$)("Form",((e,t)=>{let{rootPrefixCls:n}=t;const o=M(e,n);return[w(o),C(o),b(o),S(o,o.componentCls),S(o,o.formItemCls),E(o),j(o),N(o),(0,g.Z)(o),m.kr]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0})),{order:-1e3});const O=[];function $(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"==typeof e?e:`${t}-${o}`,error:e,errorStatus:n}}var A=e=>{let{help:t,helpStatus:n,errors:a=O,warnings:f=O,className:p,fieldId:m,onVisibleChanged:g}=e;const{prefixCls:h}=i.useContext(o.Rk),v=`${h}-item-explain`,b=(0,u.Z)(h),[y,x,w]=Z(h,b),C=i.useMemo((()=>(0,s.Z)(h)),[h]),S=d(a),E=d(f),k=i.useMemo((()=>null!=t?[$(t,"help",n)]:[].concat((0,r.Z)(S.map(((e,t)=>$(e,"error","error",t)))),(0,r.Z)(E.map(((e,t)=>$(e,"warning","warning",t)))))),[t,n,S,E]),I=i.useMemo((()=>{const e={};return k.forEach((t=>{let{key:n}=t;e[n]=(e[n]||0)+1})),k.map(((t,n)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key})))}),[k]),j={};return m&&(j.id=`${m}_help`),y(i.createElement(c.ZP,{motionDeadline:C.motionDeadline,motionName:`${h}-show-help`,visible:!!I.length,onVisibleChanged:g},(e=>{const{className:t,style:n}=e;return i.createElement("div",Object.assign({},j,{className:l()(v,t,w,b,p,x),style:n}),i.createElement(c.V4,Object.assign({keys:I},(0,s.Z)(h),{motionName:`${h}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:o,className:r,style:a}=e;return i.createElement("div",{key:t,className:l()(r,{[`${v}-${o}`]:o}),style:a},n)})))})))},z=n(74034),T=n(48755),P=n(2171),L=n(31756),R=n(23069),B=n(76846);const D=e=>"object"==typeof e&&null!=e&&1===e.nodeType,H=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,W=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&l>=n?i-e-o:a>t&&ln?a-t+r:0,K=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},V=(e,t)=>{var n,o,r,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:c,boundary:s,skipOverflowHiddenElements:u}=t,d="function"==typeof s?s:e=>e!==s;if(!D(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let m=e;for(;D(m)&&d(m);){if(m=K(m),m===f){p.push(m);break}null!=m&&m===document.body&&W(m)&&!W(document.documentElement)||null!=m&&W(m,u)&&p.push(m)}const g=null!=(o=null==(n=window.visualViewport)?void 0:n.width)?o:innerWidth,h=null!=(i=null==(r=window.visualViewport)?void 0:r.height)?i:innerHeight,{scrollX:v,scrollY:b}=window,{height:y,width:x,top:w,right:C,bottom:S,left:E}=e.getBoundingClientRect(),{top:k,right:I,bottom:j,left:N}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let M="start"===l||"nearest"===l?w-k:"end"===l?S+j:w+y/2-k+j,Z="center"===c?E+x/2-N+I:"end"===c?C+I:E-N;const O=[];for(let e=0;e=0&&E>=0&&S<=h&&C<=g&&(t===f&&!W(t)||w>=r&&S<=s&&E>=u&&C<=i))return O;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),k=parseInt(d.borderTopWidth,10),I=parseInt(d.borderRightWidth,10),j=parseInt(d.borderBottomWidth,10);let N=0,$=0;const A="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-I:0,z="offsetHeight"in t?t.offsetHeight-t.clientHeight-k-j:0,T="offsetWidth"in t?0===t.offsetWidth?0:o/t.offsetWidth:0,P="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)N="start"===l?M:"end"===l?M-h:"nearest"===l?F(b,b+h,h,k,j,b+M,b+M+y,y):M-h/2,$="start"===c?Z:"center"===c?Z-g/2:"end"===c?Z-g:F(v,v+g,g,m,I,v+Z,v+Z+x,x),N=Math.max(0,N+b),$=Math.max(0,$+v);else{N="start"===l?M-r-k:"end"===l?M-s+j+z:"nearest"===l?F(r,s,n,k,j+z,M,M+y,y):M-(r+n/2)+z/2,$="start"===c?Z-u-m:"center"===c?Z-(u+o/2)+A/2:"end"===c?Z-i+I+A:F(u,i,o,m,I+A,Z,Z+x,x);const{scrollLeft:e,scrollTop:a}=t;N=0===P?0:Math.max(0,Math.min(a+N/P,t.scrollHeight-n/P+z)),$=0===T?0:Math.max(0,Math.min(e+$/T,t.scrollWidth-o/T+A)),M+=a-N,Z+=e-$}O.push({el:t,top:N,left:$})}return O};function q(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(V(e,t));const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:r,top:i,left:a}of V(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;r.scroll({top:e,left:t,behavior:o})}}const X=["parentNode"];function G(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function Q(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return X.includes(n)?`form_item_${n}`:n}function _(e,t,n,o,r,i){let a=o;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||r&&n.validated)&&(a="success"),a}var U=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rnull!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const o=Y(e);t?n.current[o]=t:delete n.current[o]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{focus:n}=t,r=U(t,["focus"]),i=J(e,o);i&&(q(i,Object.assign({scrollMode:"if-needed",block:"nearest"},r)),n&&o.focusField(e))},focusField:e=>{var t,n;const r=o.getFieldInstance(e);"function"==typeof(null==r?void 0:r.focus)?r.focus():null===(n=null===(t=J(e,o))||void 0===t?void 0:t.focus)||void 0===n||n.call(t)},getFieldInstance:e=>{const t=Y(e);return n.current[t]}})),[e,t]);return[o]}var te=n(98350),ne=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const n=i.useContext(P.Z),{getPrefixCls:r,direction:a,requiredMark:c,colon:s,scrollToFirstError:d,className:f,style:p}=(0,T.dj)("form"),{prefixCls:m,className:g,rootClassName:h,size:v,disabled:b=n,form:y,colon:x,labelAlign:w,labelWrap:C,labelCol:S,wrapperCol:E,hideRequiredMark:k,layout:I="horizontal",scrollToFirstError:j,requiredMark:N,onFinishFailed:M,name:O,style:$,feedbackIcons:A,variant:B}=e,D=ne(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),H=(0,L.Z)(v),W=i.useContext(te.Z);const F=i.useMemo((()=>void 0!==N?N:!k&&(void 0===c||c)),[k,N,c]),K=null!=x?x:s,V=r("form",m),q=(0,u.Z)(V),[X,G,Q]=Z(V,q),_=l()(V,`${V}-${I}`,{[`${V}-hide-required-mark`]:!1===F,[`${V}-rtl`]:"rtl"===a,[`${V}-${H}`]:H},Q,q,G,f,g,h),[U]=ee(y),{__INTERNAL__:Y}=U;Y.name=O;const J=i.useMemo((()=>({name:O,labelAlign:w,labelCol:S,labelWrap:C,wrapperCol:E,vertical:"vertical"===I,colon:K,requiredMark:F,itemRef:Y.itemRef,form:U,feedbackIcons:A})),[O,w,S,E,I,K,F,U,A]),oe=i.useRef(null);i.useImperativeHandle(t,(()=>{var e;return Object.assign(Object.assign({},U),{nativeElement:null===(e=oe.current)||void 0===e?void 0:e.nativeElement})}));const re=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=Object.assign(Object.assign({},n),e)),U.scrollToField(t,n)}};return X(i.createElement(o.pg.Provider,{value:B},i.createElement(P.n,{disabled:b},i.createElement(R.Z.Provider,{value:H},i.createElement(o.RV,{validateMessages:W},i.createElement(o.q3.Provider,{value:J},i.createElement(z.ZP,Object.assign({id:O},D,{name:O,onFinishFailed:e=>{if(null==M||M(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==j)return void re(j,t);void 0!==d&&re(d,t)}},form:U,ref:oe,style:Object.assign(Object.assign({},p),$),className:_}))))))))};var re=i.forwardRef(oe),ie=n(41799),ae=n(8654),le=n(22703),ce=n(32383),se=n(11592);const ue=()=>{const{status:e,errors:t=[],warnings:n=[]}=i.useContext(o.aM);return{status:e,errors:t,warnings:n}};ue.Context=o.aM;var de=ue,fe=n(16089);var pe=n(29194),me=n(34280),ge=n(2738),he=n(65970),ve=n(70425),be=n(5472);const ye=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}};var xe=(0,v.bk)(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const o=M(e,n);return[ye(o)]})),we=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,status:n,labelCol:r,wrapperCol:a,children:c,errors:s,warnings:u,_internalItemRender:d,extra:f,help:p,fieldId:m,marginBottom:g,onErrorVisibleChanged:h,label:v}=e,b=`${t}-item`,y=i.useContext(o.q3),x=i.useMemo((()=>{let e=Object.assign({},a||y.wrapperCol||{});if(null===v&&!r&&!a&&y.labelCol){[void 0,"xs","sm","md","lg","xl","xxl"].forEach((t=>{const n=t?[t]:[],o=(0,ve.U2)(y.labelCol,n),r="object"==typeof o?o:{},i=(0,ve.U2)(e,n);"span"in r&&!("offset"in("object"==typeof i?i:{}))&&r.span<24&&(e=(0,ve.t8)(e,[].concat(n,["offset"]),r.span))}))}return e}),[a,y]),w=l()(`${b}-control`,x.className),C=i.useMemo((()=>{const{labelCol:e,wrapperCol:t}=y;return we(y,["labelCol","wrapperCol"])}),[y]),S=i.useRef(null),[E,k]=i.useState(0);(0,me.Z)((()=>{f&&S.current?k(S.current.clientHeight):k(0)}),[f]);const I=i.createElement("div",{className:`${b}-control-input`},i.createElement("div",{className:`${b}-control-input-content`},c)),j=i.useMemo((()=>({prefixCls:t,status:n})),[t,n]),N=null!==g||s.length||u.length?i.createElement(o.Rk.Provider,{value:j},i.createElement(A,{fieldId:m,errors:s,warnings:u,help:p,helpStatus:n,className:`${b}-explain-connected`,onVisibleChanged:h})):null,M={};m&&(M.id=`${m}_extra`);const Z=f?i.createElement("div",Object.assign({},M,{className:`${b}-extra`,ref:S}),f):null,O=N||Z?i.createElement("div",{className:`${b}-additional`,style:g?{minHeight:g+E}:{}},N,Z):null,$=d&&"pro_table_render"===d.mark&&d.render?d.render(e,{input:I,errorList:N,extra:Z}):i.createElement(i.Fragment,null,I,O);return i.createElement(o.q3.Provider,{value:C},i.createElement(be.Z,Object.assign({},x,{className:w}),$),i.createElement(xe,{prefixCls:t}))},Se=n(14809),Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},ke=n(7657),Ie=function(e,t){return i.createElement(ke.Z,(0,Se.Z)({},e,{ref:t,icon:Ee}))};var je=i.forwardRef(Ie),Ne=n(9017),Me=n(85981),Ze=n(55544),Oe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,label:n,htmlFor:r,labelCol:a,labelAlign:c,colon:s,required:u,requiredMark:d,tooltip:f,vertical:p}=e;var m;const[g]=(0,Ne.Z)("Form"),{labelAlign:h,labelCol:v,labelWrap:b,colon:y}=i.useContext(o.q3);if(!n)return null;const x=a||v||{},w=c||h,C=`${t}-item-label`,S=l()(C,"left"===w&&`${C}-left`,x.className,{[`${C}-wrap`]:!!b});let E=n;const k=!0===s||!1!==y&&!1!==s;k&&!p&&"string"==typeof n&&n.trim()&&(E=n.replace(/[:|:]\s*$/,""));const I=function(e){return e?"object"!=typeof e||i.isValidElement(e)?{title:e}:e:null}(f);if(I){const{icon:e=i.createElement(je,null)}=I,n=Oe(I,["icon"]),o=i.createElement(Ze.Z,Object.assign({},n),i.cloneElement(e,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));E=i.createElement(i.Fragment,null,E,o)}const j="optional"===d,N="function"==typeof d,M=!1===d;let Z;N?E=d(E,{required:!!u}):j&&!u&&(E=i.createElement(i.Fragment,null,E,i.createElement("span",{className:`${t}-item-optional`,title:""},(null==g?void 0:g.optional)||(null===(m=Me.Z.Form)||void 0===m?void 0:m.optional)))),M?Z="hidden":(j||N)&&(Z="optional");const O=l()({[`${t}-item-required`]:u,[`${t}-item-required-mark-${Z}`]:Z,[`${t}-item-no-colon`]:!k});return i.createElement(be.Z,Object.assign({},x,{className:S}),i.createElement("label",{htmlFor:r,className:O,title:"string"==typeof n?n:""},E))},Ae=n(29679),ze=n(19248),Te=n(96512),Pe=n(58617);const Le={success:Ae.Z,warning:Te.Z,error:ze.Z,validating:Pe.Z};function Re(e){let{children:t,errors:n,warnings:r,hasFeedback:a,validateStatus:c,prefixCls:s,meta:u,noStyle:d}=e;const f=`${s}-item`,{feedbackIcons:p}=i.useContext(o.q3),m=_(n,r,u,null,!!a,c),{isFormItemInput:g,status:h,hasFeedback:v,feedbackIcon:b}=i.useContext(o.aM),y=i.useMemo((()=>{var e;let t;if(a){const o=!0!==a&&a.icons||p,c=m&&(null===(e=null==o?void 0:o({status:m,errors:n,warnings:r}))||void 0===e?void 0:e[m]),s=m&&Le[m];t=!1!==c&&s?i.createElement("span",{className:l()(`${f}-feedback-icon`,`${f}-feedback-icon-${m}`)},c||i.createElement(s,null)):null}const o={status:m||"",errors:n,warnings:r,hasFeedback:!!a,feedbackIcon:t,isFormItemInput:!0};return d&&(o.status=(null!=m?m:h)||"",o.isFormItemInput=g,o.hasFeedback=!!(null!=a?a:v),o.feedbackIcon=void 0!==a?o.feedbackIcon:b),o}),[m,a,d,g,h]);return i.createElement(o.aM.Provider,{value:y},t)}var Be=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{if(O&&j.current){const e=getComputedStyle(j.current);z(parseInt(e.marginBottom,10))}}),[O,$]);const T=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=e?N:p.errors,n=e?M:p.warnings;return _(t,n,p,"",!!m,f)}(),P=l()(S,n,r,{[`${S}-with-help`]:Z||N.length||M.length,[`${S}-has-feedback`]:T&&m,[`${S}-has-success`]:"success"===T,[`${S}-has-warning`]:"warning"===T,[`${S}-has-error`]:"error"===T,[`${S}-is-validating`]:"validating"===T,[`${S}-hidden`]:g,[`${S}-${w}`]:w});return i.createElement("div",{className:P,style:a,ref:j},i.createElement(he.Z,Object.assign({className:`${S}-row`},(0,ge.Z)(C,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),i.createElement($e,Object.assign({htmlFor:v},e,{requiredMark:E,required:null!=b?b:y,prefixCls:t,vertical:I})),i.createElement(Ce,Object.assign({},e,p,{errors:N,warnings:M,prefixCls:t,status:T,help:c,marginBottom:A,onErrorVisibleChanged:e=>{e||z(null)}}),i.createElement(o.qI.Provider,{value:x},i.createElement(Re,{prefixCls:t,meta:p,errors:p.errors,warnings:p.warnings,hasFeedback:m,validateStatus:T},h)))),!!A&&i.createElement("div",{className:`${S}-margin-offset`,style:{marginBottom:-A}}))}const He=i.memo((e=>{let{children:t}=e;return t}),((e,t)=>function(e,t){const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>{const o=e[n],r=t[n];return o===r||"function"==typeof o||"function"==typeof r}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const We=function(e){const{name:t,noStyle:n,className:a,dependencies:c,prefixCls:s,shouldUpdate:d,rules:f,children:p,required:m,label:g,messageVariables:h,trigger:v="onChange",validateTrigger:b,hidden:y,help:x,layout:w}=e,{getPrefixCls:C}=i.useContext(T.E_),{name:S}=i.useContext(o.q3),E=function(e){if("function"==typeof e)return e;const t=(0,se.Z)(e);return t.length<=1?t[0]:t}(p),k="function"==typeof E,I=i.useContext(o.qI),{validateTrigger:j}=i.useContext(z.zb),N=void 0!==b?b:j,M=!(null==t),O=C("form",s),$=(0,u.Z)(O),[A,P,L]=Z(O,$);(0,ce.ln)("Form.Item");const R=i.useContext(z.ZM),B=i.useRef(null),[D,H]=function(e){const[t,n]=i.useState(e),o=i.useRef(null),r=i.useRef([]),a=i.useRef(!1);return i.useEffect((()=>(a.current=!1,()=>{a.current=!0,fe.Z.cancel(o.current),o.current=null})),[]),[t,function(e){a.current||(null===o.current&&(r.current=[],o.current=(0,fe.Z)((()=>{o.current=null,n((e=>{let t=e;return r.current.forEach((e=>{t=e(t)})),t}))}))),r.current.push(e))}]}({}),[W,F]=(0,ie.Z)((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),K=(e,t)=>{H((n=>{const o=Object.assign({},n),i=[].concat((0,r.Z)(e.name.slice(0,-1)),(0,r.Z)(t)).join("__SPLIT__");return e.destroy?delete o[i]:o[i]=e,o}))},[V,q]=i.useMemo((()=>{const e=(0,r.Z)(W.errors),t=(0,r.Z)(W.warnings);return Object.values(D).forEach((n=>{e.push.apply(e,(0,r.Z)(n.errors||[])),t.push.apply(t,(0,r.Z)(n.warnings||[]))})),[e,t]}),[D,W.errors,W.warnings]),X=function(){const{itemRef:e}=i.useContext(o.q3),t=i.useRef({});return function(n,o){const r=o&&"object"==typeof o&&(0,ae.C4)(o),i=n.join("_");return t.current.name===i&&t.current.originRef===r||(t.current.name=i,t.current.originRef=r,t.current.ref=(0,ae.sQ)(e(n),r)),t.current.ref}}();function _(t,o,r){return n&&!y?i.createElement(Re,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:W,errors:V,warnings:q,noStyle:!0},t):i.createElement(De,Object.assign({key:"row"},e,{className:l()(a,L,$,P),prefixCls:O,fieldId:o,isRequired:r,errors:V,warnings:q,meta:W,onSubItemMetaChange:K,layout:w}),t)}if(!M&&!k&&!c)return A(_(E));let U={};return"string"==typeof g?U.label=g:t&&(U.label=String(t)),h&&(U=Object.assign(Object.assign({},U),h)),A(i.createElement(z.gN,Object.assign({},e,{messageVariables:U,trigger:v,validateTrigger:N,onMetaChange:e=>{const t=null==R?void 0:R.getKey(e.name);if(F(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==x&&I){let n=e.name;if(e.destroy)n=B.current||n;else if(void 0!==t){const[e,o]=t;n=[e].concat((0,r.Z)(o)),B.current=n}I(e,n)}}}),((n,o,a)=>{const l=G(t).length&&o?o.name:[],s=Q(l,S),u=void 0!==m?m:!!(null==f?void 0:f.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(a);return(null==t?void 0:t.required)&&!(null==t?void 0:t.warningOnly)}return!1}))),p=Object.assign({},n);let g=null;if(Array.isArray(E)&&M)g=E;else if(k&&(!d&&!c||M));else if(!c||k||M)if(i.isValidElement(E)){const t=Object.assign(Object.assign({},E.props),p);if(t.id||(t.id=s),x||V.length>0||q.length>0||e.extra){const n=[];(x||V.length>0)&&n.push(`${s}_help`),e.extra&&n.push(`${s}_extra`),t["aria-describedby"]=n.join(" ")}V.length>0&&(t["aria-invalid"]="true"),u&&(t["aria-required"]="true"),(0,ae.Yr)(E)&&(t.ref=X(l,E));new Set([].concat((0,r.Z)(G(v)),(0,r.Z)(G(N)))).forEach((e=>{t[e]=function(){for(var t,n,o,r,i,a=arguments.length,l=new Array(a),c=0;c{var{prefixCls:t,children:n}=e,r=Ke(e,["prefixCls","children"]);const{getPrefixCls:a}=i.useContext(T.E_),l=a("form",t),c=i.useMemo((()=>({prefixCls:l,status:"error"})),[l]);return i.createElement(z.aV,Object.assign({},r),((e,t,r)=>i.createElement(o.Rk.Provider,{value:c},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))};const qe=re;qe.Item=Fe,qe.List=Ve,qe.ErrorList=A,qe.useForm=ee,qe.useFormInstance=function(){const{form:e}=i.useContext(o.q3);return e},qe.useWatch=z.qo,qe.Provider=o.RV,qe.create=()=>{};var Xe=qe},98283:function(e,t,n){const o=(0,n(59301).createContext)({});t.Z=o},5472:function(e,t,n){var o=n(59301),r=n(92310),i=n.n(r),a=n(48755),l=n(98283),c=n(26705),s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=o.useContext(a.E_),{gutter:f,wrap:p}=o.useContext(l.Z),{prefixCls:m,span:g,order:h,offset:v,push:b,pull:y,className:x,children:w,flex:C,style:S}=e,E=s(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),k=n("col",m),[I,j,N]=(0,c.cG)(k),M={};let Z={};d.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete E[t],Z=Object.assign(Object.assign({},Z),{[`${k}-${t}-${n.span}`]:void 0!==n.span,[`${k}-${t}-order-${n.order}`]:n.order||0===n.order,[`${k}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${k}-${t}-push-${n.push}`]:n.push||0===n.push,[`${k}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${k}-rtl`]:"rtl"===r}),n.flex&&(Z[`${k}-${t}-flex`]=!0,M[`--${k}-${t}-flex`]=u(n.flex))}));const O=i()(k,{[`${k}-${g}`]:void 0!==g,[`${k}-order-${h}`]:h,[`${k}-offset-${v}`]:v,[`${k}-push-${b}`]:b,[`${k}-pull-${y}`]:y},x,Z,j,N),$={};if(f&&f[0]>0){const e=f[0]/2;$.paddingLeft=e,$.paddingRight=e}return C&&($.flex=u(C),!1!==p||$.minWidth||($.minWidth=0)),I(o.createElement("div",Object.assign({},E,{style:Object.assign(Object.assign(Object.assign({},$),S),M),className:O,ref:t}),w))}));t.Z=f},13783:function(e,t,n){var o=n(59301),r=n(34280),i=n(40192),a=n(47999);t.Z=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,o.useRef)(t),l=(0,i.Z)(),c=(0,a.ZP)();return(0,r.Z)((()=>{const t=c.subscribe((t=>{n.current=t,e&&l()}));return()=>c.unsubscribe(t)}),[]),n.current}},65970:function(e,t,n){n.d(t,{Z:function(){return p}});var o=n(59301),r=n(92310),i=n.n(r),a=n(47999),l=n(48755),c=n(13783);var s=n(98283),u=n(26705),d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n{const{prefixCls:n,justify:r,align:p,className:m,style:g,children:h,gutter:v=0,wrap:b}=e,y=d(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:x,direction:w}=o.useContext(l.E_),C=(0,c.Z)(!0,null),S=f(p,C),E=f(r,C),k=x("row",n),[I,j,N]=(0,u.VM)(k),M=function(e,t){const n=[void 0,void 0],o=Array.isArray(e)?e:[e,void 0],r=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return o.forEach(((e,t)=>{if("object"==typeof e&&null!==e)for(let o=0;o0?M[0]/-2:void 0;$&&(O.marginLeft=$,O.marginRight=$);const[A,z]=M;O.rowGap=z;const T=o.useMemo((()=>({gutter:[A,z],wrap:b})),[A,z,b]);return I(o.createElement(s.Z.Provider,{value:T},o.createElement("div",Object.assign({},y,{className:Z,style:Object.assign(Object.assign({},O),g),ref:t}),h)))}))},49397:function(e,t,n){n.d(t,{Z:function(){return w}});var o=n(59301),r=n(92310),i=n.n(r),a=n(36901),l=n(8654),c=n(62487),s=n(86013),u=n(82855),d=n(48755),f=n(2171),p=n(83397),m=n(31756),g=n(56553),h=n(24971),v=n(70045),b=n(23826),y=n(53075);var x=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,bordered:r=!0,status:w,size:C,disabled:S,onBlur:E,onFocus:k,suffix:I,allowClear:j,addonAfter:N,addonBefore:M,className:Z,style:O,styles:$,rootClassName:A,onChange:z,classNames:T,variant:P}=e,L=x(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:R,direction:B,allowClear:D,autoComplete:H,className:W,style:F,classNames:K,styles:V}=(0,d.dj)("input"),q=R("input",n),X=(0,o.useRef)(null),G=(0,p.Z)(q),[Q,_,U]=(0,y.TI)(q,A),[Y]=(0,y.ZP)(q,G),{compactSize:J,compactItemClassnames:ee}=(0,v.ri)(q,B),te=(0,m.Z)((e=>{var t;return null!==(t=null!=C?C:J)&&void 0!==t?t:e})),ne=o.useContext(f.Z),oe=null!=S?S:ne,{status:re,hasFeedback:ie,feedbackIcon:ae}=(0,o.useContext)(g.aM),le=(0,u.F)(re,w),ce=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!ie;(0,o.useRef)(ce);const se=(0,b.Z)(X,!0),ue=(ie||I)&&o.createElement(o.Fragment,null,I,ie&&ae),de=(0,s.Z)(null!=j?j:D),[fe,pe]=(0,h.Z)("input",P,r);return Q(Y(o.createElement(a.Z,Object.assign({ref:(0,l.sQ)(t,X),prefixCls:q,autoComplete:H},L,{disabled:oe,onBlur:e=>{se(),null==E||E(e)},onFocus:e=>{se(),null==k||k(e)},style:Object.assign(Object.assign({},F),O),styles:Object.assign(Object.assign({},V),$),suffix:ue,allowClear:de,className:i()(Z,A,U,G,ee,W),onChange:e=>{se(),null==z||z(e)},addonBefore:M&&o.createElement(c.Z,{form:!0,space:!0},M),addonAfter:N&&o.createElement(c.Z,{form:!0,space:!0},N),classNames:Object.assign(Object.assign(Object.assign({},T),K),{input:i()({[`${q}-sm`]:"small"===te,[`${q}-lg`]:"large"===te,[`${q}-rtl`]:"rtl"===B},null==T?void 0:T.input,K.input,_),variant:i()({[`${q}-${fe}`]:pe},(0,u.Z)(q,le)),affixWrapper:i()({[`${q}-affix-wrapper-sm`]:"small"===te,[`${q}-affix-wrapper-lg`]:"large"===te,[`${q}-affix-wrapper-rtl`]:"rtl"===B},_),wrapper:i()({[`${q}-group-rtl`]:"rtl"===B},_),groupWrapper:i()({[`${q}-group-wrapper-sm`]:"small"===te,[`${q}-group-wrapper-lg`]:"large"===te,[`${q}-group-wrapper-rtl`]:"rtl"===B,[`${q}-group-wrapper-${fe}`]:pe},(0,u.Z)(`${q}-group-wrapper`,le,ie),_)})}))))}))},23826:function(e,t,n){n.d(t,{Z:function(){return r}});var o=n(59301);function r(e,t){const n=(0,o.useRef)([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,o,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=e.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return(0,o.useEffect)((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}},10975:function(e,t,n){n.d(t,{Z:function(){return Se}});var o=n(59301),r=n(92310),i=n.n(r),a=n(48755),l=n(56553),c=n(53075);var s=e=>{const{getPrefixCls:t,direction:n}=(0,o.useContext)(a.E_),{prefixCls:r,className:s}=e,u=t("input-group",r),d=t("input"),[f,p,m]=(0,c.ZP)(d),g=i()(u,m,{[`${u}-lg`]:"large"===e.size,[`${u}-sm`]:"small"===e.size,[`${u}-compact`]:e.compact,[`${u}-rtl`]:"rtl"===n},p,s),h=(0,o.useContext)(l.aM),v=(0,o.useMemo)((()=>Object.assign(Object.assign({},h),{isFormItemInput:!1})),[h]);return f(o.createElement("span",{className:g,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},o.createElement(l.aM.Provider,{value:v},e.children)))},u=n(49397),d=n(95190),f=n(6089),p=n(26112),m=n(82855),g=n(31756),h=n(16931),v=n(51636),b=n(64910);const y=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};var x=(0,h.I$)(["Input","OTP"],(e=>{const t=(0,v.IX)(e,(0,b.e)(e));return[y(t)]}),b.T),w=n(16089),C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{value:n,onChange:r,onActiveChange:i,index:a,mask:l}=e,c=C(e,["value","onChange","onActiveChange","index","mask"]),s=n&&"string"==typeof l?l:n,d=o.useRef(null);o.useImperativeHandle(t,(()=>d.current));const f=()=>{(0,w.Z)((()=>{var e;const t=null===(e=d.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return o.createElement(u.Z,Object.assign({type:!0===l?"password":"text"},c,{ref:d,value:s,onInput:e=>{r(a,e.target.value)},onFocus:f,onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:o}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t?i(a+1):"z"===t&&(n||o)&&e.preventDefault(),f()},onKeyUp:e=>{"Backspace"!==e.key||n||i(a-1),f()},onMouseDown:f,onMouseUp:f}))})),E=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{index:t,prefixCls:n,separator:r}=e,i="function"==typeof r?r(t):r;return i?o.createElement("span",{className:`${n}-separator`},i):null};var j=o.forwardRef(((e,t)=>{const{prefixCls:n,length:r=6,size:c,defaultValue:s,value:u,onChange:h,formatter:v,separator:b,variant:y,disabled:w,status:C,autoFocus:j,mask:N,type:M,onInput:Z,inputMode:O}=e,$=E(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);const{getPrefixCls:A,direction:z}=o.useContext(a.E_),T=A("otp",n),P=(0,p.Z)($,{aria:!0,data:!0,attr:!0}),[L,R,B]=x(T),D=(0,g.Z)((e=>null!=c?c:e)),H=o.useContext(l.aM),W=(0,m.F)(H.status,C),F=o.useMemo((()=>Object.assign(Object.assign({},H),{status:W,hasFeedback:!1,feedbackIcon:null})),[H,W]),K=o.useRef(null),V=o.useRef({});o.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=V.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;tv?v(e):e,[X,G]=o.useState((()=>k(q(s||""))));o.useEffect((()=>{void 0!==u&&G(k(u))}),[u]);const Q=(0,f.Z)((e=>{G(e),Z&&Z(e),h&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>X[t]!==e))&&h(e.join(""))})),_=(0,f.Z)(((e,t)=>{let n=(0,d.Z)(X);for(let t=0;t=0&&!n[e];e-=1)n.pop();const o=q(n.map((e=>e||" ")).join(""));return n=k(o).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),U=(e,t)=>{var n;const o=_(e,t),i=Math.min(e+t.length,r-1);i!==e&&void 0!==o[e]&&(null===(n=V.current[i])||void 0===n||n.focus()),Q(o)},Y=e=>{var t;null===(t=V.current[e])||void 0===t||t.focus()},J={variant:y,disabled:w,status:W,mask:N,type:M,inputMode:O};return L(o.createElement("div",Object.assign({},P,{ref:K,className:i()(T,{[`${T}-sm`]:"small"===D,[`${T}-lg`]:"large"===D,[`${T}-rtl`]:"rtl"===z},B,R)}),o.createElement(l.aM.Provider,{value:F},Array.from({length:r}).map(((e,t)=>{const n=`otp-${t}`,i=X[t]||"";return o.createElement(o.Fragment,{key:n},o.createElement(S,Object.assign({ref:e=>{V.current[t]=e},index:t,size:D,htmlSize:1,className:`${T}-input`,onChange:U,value:i,onActiveChange:Y,autoFocus:0===t&&j},J)),te?o.createElement(A.Z,null):o.createElement($,null),D={click:"onClick",hover:"onMouseOver"};var H=o.forwardRef(((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:l=!0,iconRender:c=B}=e,s=o.useContext(P.Z),d=null!=n?n:s,f="object"==typeof l&&void 0!==l.visible,[p,m]=(0,o.useState)((()=>!!f&&l.visible)),g=(0,o.useRef)(null);o.useEffect((()=>{f&&m(l.visible)}),[f,l]);const h=(0,L.Z)(g),v=()=>{var e;if(d)return;p&&h();const t=!p;m(t),"object"==typeof l&&(null===(e=l.onVisibleChange)||void 0===e||e.call(l,t))},{className:b,prefixCls:y,inputPrefixCls:x,size:w}=e,C=R(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=o.useContext(a.E_),E=S("input",x),k=S("input-password",y),I=l&&(e=>{const t=D[r]||"",n=c(p),i={[t]:v,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return o.cloneElement(o.isValidElement(n)?n:o.createElement("span",null,n),i)})(k),j=i()(k,b,{[`${k}-${w}`]:!!w}),N=Object.assign(Object.assign({},(0,z.Z)(C,["suffix","iconRender","visibilityToggle"])),{type:p?"text":"password",className:j,prefixCls:E,suffix:I});return w&&(N.size=w),o.createElement(u.Z,Object.assign({ref:(0,T.sQ)(t,g)},N))})),W=n(47472),F=n(22703),K=n(20743),V=n(70045),q=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,inputPrefixCls:r,className:l,size:c,suffix:s,enterButton:d=!1,addonAfter:f,loading:p,disabled:m,onSearch:h,onChange:v,onCompositionStart:b,onCompositionEnd:y}=e,x=q(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:w,direction:C}=o.useContext(a.E_),S=o.useRef(!1),E=w("input-search",n),k=w("input",r),{compactSize:I}=(0,V.ri)(E,C),j=(0,g.Z)((e=>{var t;return null!==(t=null!=c?c:I)&&void 0!==t?t:e})),N=o.useRef(null),M=e=>{var t;document.activeElement===(null===(t=N.current)||void 0===t?void 0:t.input)&&e.preventDefault()},Z=e=>{var t,n;h&&h(null===(n=null===(t=N.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},O="boolean"==typeof d?o.createElement(W.Z,null):null,$=`${E}-button`;let A;const z=d||{},P=z.type&&!0===z.type.__ANT_BUTTON;A=P||"button"===z.type?(0,F.Tm)(z,Object.assign({onMouseDown:M,onClick:e=>{var t,n;null===(n=null===(t=null==z?void 0:z.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),Z(e)},key:"enterButton"},P?{className:$,size:j}:{})):o.createElement(K.ZP,{className:$,type:d?"primary":void 0,size:j,disabled:m,key:"enterButton",onMouseDown:M,onClick:Z,loading:p,icon:O},d),f&&(A=[A,(0,F.Tm)(f,{key:"addonAfter"})]);const L=i()(E,{[`${E}-rtl`]:"rtl"===C,[`${E}-${j}`]:!!j,[`${E}-with-button`]:!!d},l),R=Object.assign(Object.assign({},x),{className:L,prefixCls:k,type:"search"});return o.createElement(u.Z,Object.assign({ref:(0,T.sQ)(N,t),onPressEnter:e=>{S.current||p||Z(e)}},R,{size:j,onCompositionStart:e=>{S.current=!0,null==b||b(e)},onCompositionEnd:e=>{S.current=!1,null==y||y(e)},addonAfter:A,suffix:s,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&h&&h(e.target.value,e,{source:"clear"}),null==v||v(e)},disabled:m}))})),Q=n(4635),_=n(20439),U=n(50298),Y=n(62646),J=n(36901),ee=n(66003),te=n(30292),ne=n(18929),oe=n(93664),re=n(29301),ie=n(34280),ae="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n",le=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ce={};function se(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&ce[n])return ce[n];var o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),l=le.map((function(e){return"".concat(e,":").concat(o.getPropertyValue(e))})).join(";"),c={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&(ce[n]=c),c}var ue=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],de=o.forwardRef((function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,l=n.value,c=n.autoSize,s=n.onResize,u=n.className,d=n.style,f=n.disabled,p=n.onChange,m=(n.onInternalAutoSize,(0,Y.Z)(n,ue)),g=(0,ne.Z)(a,{value:l,postState:function(e){return null!=e?e:""}}),h=(0,U.Z)(g,2),v=h[0],b=h[1],y=o.useRef();o.useImperativeHandle(t,(function(){return{textArea:y.current}}));var x=o.useMemo((function(){return c&&"object"===(0,oe.Z)(c)?[c.minRows,c.maxRows]:[]}),[c]),C=(0,U.Z)(x,2),S=C[0],E=C[1],k=!!c,I=o.useState(2),j=(0,U.Z)(I,2),M=j[0],Z=j[1],O=o.useState(),$=(0,U.Z)(O,2),A=$[0],z=$[1],T=function(){Z(0)};(0,ie.Z)((function(){k&&T()}),[l,S,E,k]),(0,ie.Z)((function(){if(0===M)Z(1);else if(1===M){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;X||((X=document.createElement("textarea")).setAttribute("tab-index","-1"),X.setAttribute("aria-hidden","true"),X.setAttribute("name","hiddenTextarea"),document.body.appendChild(X)),e.getAttribute("wrap")?X.setAttribute("wrap",e.getAttribute("wrap")):X.removeAttribute("wrap");var r=se(e,t),i=r.paddingSize,a=r.borderSize,l=r.boxSizing,c=r.sizingStyle;X.setAttribute("style","".concat(c,";").concat(ae)),X.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=X.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==o){X.value=" ";var p=X.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==o&&(d=p*o,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:s,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}(y.current,!1,S,E);Z(2),z(e)}else!function(){try{if(document.activeElement===y.current){var e=y.current,t=e.selectionStart,n=e.selectionEnd,o=e.scrollTop;y.current.setSelectionRange(t,n),y.current.scrollTop=o}}catch(e){}}()}),[M]);var P=o.useRef(),L=function(){w.Z.cancel(P.current)};o.useEffect((function(){return L}),[]);var R=k?A:null,B=(0,_.Z)((0,_.Z)({},d),R);return 0!==M&&1!==M||(B.overflowY="hidden",B.overflowX="hidden"),o.createElement(re.Z,{onResize:function(e){2===M&&(null==s||s(e),c&&(L(),P.current=(0,w.Z)((function(){T()}))))},disabled:!(c||s)},o.createElement("textarea",(0,N.Z)({},m,{ref:y,style:B,className:i()(r,u,(0,Q.Z)({},"".concat(r,"-disabled"),f)),disabled:f,value:v,onChange:function(e){b(e.target.value),null==p||p(e)}})))})),fe=de,pe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],me=o.forwardRef((function(e,t){var n,r=e.defaultValue,a=e.value,l=e.onFocus,c=e.onBlur,s=e.onChange,u=e.allowClear,f=e.maxLength,p=e.onCompositionStart,m=e.onCompositionEnd,g=e.suffix,h=e.prefixCls,v=void 0===h?"rc-textarea":h,b=e.showCount,y=e.count,x=e.className,w=e.style,C=e.disabled,S=e.hidden,E=e.classNames,k=e.styles,I=e.onResize,j=e.onClear,M=e.onPressEnter,Z=e.readOnly,O=e.autoSize,$=e.onKeyDown,A=(0,Y.Z)(e,pe),z=(0,ne.Z)(r,{value:a,defaultValue:r}),T=(0,U.Z)(z,2),P=T[0],L=T[1],R=null==P?"":String(P),B=o.useState(!1),D=(0,U.Z)(B,2),H=D[0],W=D[1],F=o.useRef(!1),K=o.useState(null),V=(0,U.Z)(K,2),q=V[0],X=V[1],G=(0,o.useRef)(null),oe=(0,o.useRef)(null),re=function(){var e;return null===(e=oe.current)||void 0===e?void 0:e.textArea},ie=function(){re().focus()};(0,o.useImperativeHandle)(t,(function(){var e;return{resizableTextArea:oe.current,focus:ie,blur:function(){re().blur()},nativeElement:(null===(e=G.current)||void 0===e?void 0:e.nativeElement)||re()}})),(0,o.useEffect)((function(){W((function(e){return!C&&e}))}),[C]);var ae=o.useState(null),le=(0,U.Z)(ae,2),ce=le[0],se=le[1];o.useEffect((function(){var e;ce&&(e=re()).setSelectionRange.apply(e,(0,d.Z)(ce))}),[ce]);var ue,de=(0,ee.Z)(y,b),me=null!==(n=de.max)&&void 0!==n?n:f,ge=Number(me)>0,he=de.strategy(R),ve=!!me&&he>me,be=function(e,t){var n=t;!F.current&&de.exceedFormatter&&de.max&&de.strategy(t)>de.max&&t!==(n=de.exceedFormatter(t,{max:de.max}))&&se([re().selectionStart||0,re().selectionEnd||0]),L(n),(0,te.rJ)(e.currentTarget,e,s,n)},ye=g;de.show&&(ue=de.showFormatter?de.showFormatter({value:R,count:he,maxLength:me}):"".concat(he).concat(ge?" / ".concat(me):""),ye=o.createElement(o.Fragment,null,ye,o.createElement("span",{className:i()("".concat(v,"-data-count"),null==E?void 0:E.count),style:null==k?void 0:k.count},ue)));var xe=!O&&!b&&!u;return o.createElement(J.Q,{ref:G,value:R,allowClear:u,handleReset:function(e){L(""),ie(),(0,te.rJ)(re(),e,s)},suffix:ye,prefixCls:v,classNames:(0,_.Z)((0,_.Z)({},E),{},{affixWrapper:i()(null==E?void 0:E.affixWrapper,(0,Q.Z)((0,Q.Z)({},"".concat(v,"-show-count"),b),"".concat(v,"-textarea-allow-clear"),u))}),disabled:C,focused:H,className:i()(x,ve&&"".concat(v,"-out-of-range")),style:(0,_.Z)((0,_.Z)({},w),q&&!xe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ue?ue:void 0}},hidden:S,readOnly:Z,onClear:j},o.createElement(fe,(0,N.Z)({},A,{autoSize:O,maxLength:f,onKeyDown:function(e){"Enter"===e.key&&M&&M(e),null==$||$(e)},onChange:function(e){be(e,e.target.value)},onFocus:function(e){W(!0),null==l||l(e)},onBlur:function(e){W(!1),null==c||c(e)},onCompositionStart:function(e){F.current=!0,null==p||p(e)},onCompositionEnd:function(e){F.current=!1,be(e,e.currentTarget.value),null==m||m(e)},className:i()(null==E?void 0:E.textarea),style:(0,_.Z)((0,_.Z)({},null==k?void 0:k.textarea),{},{resize:null==w?void 0:w.resize}),disabled:C,prefixCls:v,onResize:function(e){var t;null==I||I(e),null!==(t=re())&&void 0!==t&&t.style.height&&X(!0)},ref:oe,readOnly:Z})))})),ge=n(86013),he=n(83397),ve=n(24971);const be=e=>{const{componentCls:t,paddingLG:n}=e,o=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[o]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${o}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}};var ye=(0,h.I$)(["Input","TextArea"],(e=>{const t=(0,v.IX)(e,(0,b.e)(e));return[be(t)]}),b.T,{resetFont:!1}),xe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,bordered:s=!0,size:u,disabled:d,status:f,allowClear:p,classNames:h,rootClassName:v,className:b,style:y,styles:x,variant:w,showCount:C,onMouseDown:S,onResize:E}=e,k=xe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);const{getPrefixCls:I,direction:j,allowClear:N,autoComplete:M,className:Z,style:O,classNames:$,styles:A}=(0,a.dj)("textArea"),z=o.useContext(P.Z),T=null!=d?d:z,{status:L,hasFeedback:R,feedbackIcon:B}=o.useContext(l.aM),D=(0,m.F)(L,f),H=o.useRef(null);o.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=H.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;(0,te.nH)(null===(n=null===(t=H.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=H.current)||void 0===e?void 0:e.blur()}}}));const W=I("input",r),F=(0,he.Z)(W),[K,q,X]=(0,c.TI)(W,v),[G]=ye(W,F),{compactSize:Q,compactItemClassnames:_}=(0,V.ri)(W,j),U=(0,g.Z)((e=>{var t;return null!==(t=null!=u?u:Q)&&void 0!==t?t:e})),[Y,J]=(0,ve.Z)("textArea",w,s),ee=(0,ge.Z)(null!=p?p:N),[ne,oe]=o.useState(!1),[re,ie]=o.useState(!1);return K(G(o.createElement(me,Object.assign({autoComplete:M},k,{style:Object.assign(Object.assign({},O),y),styles:Object.assign(Object.assign({},A),x),disabled:T,allowClear:ee,className:i()(X,F,b,v,_,Z,re&&`${W}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},h),$),{textarea:i()({[`${W}-sm`]:"small"===U,[`${W}-lg`]:"large"===U},q,null==h?void 0:h.textarea,$.textarea,ne&&`${W}-mouse-active`),variant:i()({[`${W}-${Y}`]:J},(0,m.Z)(W,D)),affixWrapper:i()(`${W}-textarea-affix-wrapper`,{[`${W}-affix-wrapper-rtl`]:"rtl"===j,[`${W}-affix-wrapper-sm`]:"small"===U,[`${W}-affix-wrapper-lg`]:"large"===U,[`${W}-textarea-show-count`]:C||(null===(n=e.count)||void 0===n?void 0:n.show)},q)}),prefixCls:W,suffix:R&&o.createElement("span",{className:`${W}-textarea-suffix`},B),showCount:C,ref:H,onResize:e=>{var t,n;if(null==E||E(e),ne&&"function"==typeof getComputedStyle){const e=null===(n=null===(t=H.current)||void 0===t?void 0:t.nativeElement)||void 0===n?void 0:n.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&ie(!0)}},onMouseDown:e=>{oe(!0),null==S||S(e);const t=()=>{oe(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}}))))}));const Ce=u.Z;Ce.Group=s,Ce.Search=G,Ce.TextArea=we,Ce.Password=H,Ce.OTP=j;var Se=Ce},53075:function(e,t,n){n.d(t,{TI:function(){return w},ik:function(){return p},nz:function(){return u},s7:function(){return m},x0:function(){return f}});var o=n(66604),r=n(63356),i=n(56119),a=n(16931),l=n(51636),c=n(64910),s=n(39082);const u=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),d=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${(0,o.bf)(t)} ${(0,o.bf)(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},f=e=>({padding:`${(0,o.bf)(e.paddingBlockSM)} ${(0,o.bf)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),p=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,o.bf)(e.paddingBlock)} ${(0,o.bf)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},u(e.colorTextPlaceholder)),{"&-lg":Object.assign({},d(e)),"&-sm":Object.assign({},f(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),m=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},d(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},f(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,o.bf)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${(0,o.bf)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,o.bf)(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${(0,o.bf)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${(0,o.bf)(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,r.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},g=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:i}=e,a=i(n).sub(i(o).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,r.Wf)(e)),p(e)),(0,s.qG)(e)),(0,s.H8)(e)),(0,s.Mu)(e)),(0,s.vc)(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},h=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,o.bf)(e.inputAffixPadding)}`}}}},v=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper-disabled`;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},p(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),h(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},b=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,r.Wf)(e)),m(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:o}}},(0,s.ir)(e)),(0,s.S5)(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},y=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${o}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${o}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},x=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},w=(0,a.I$)(["Input","Shared"],(e=>{const t=(0,l.IX)(e,(0,c.e)(e));return[g(t),v(t)]}),c.T,{resetFont:!1});t.ZP=(0,a.I$)(["Input","Component"],(e=>{const t=(0,l.IX)(e,(0,c.e)(e));return[b(t),y(t),x(t),(0,i.c)(t)]}),c.T,{resetFont:!1})},64910:function(e,t,n){n.d(t,{T:function(){return i},e:function(){return r}});var o=n(51636);function r(e){return(0,o.IX)(e,{inputAffixPadding:e.paddingXXS})}const i=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:g,controlOutline:h,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y,inputFontSize:x,inputFontSizeLG:w,inputFontSizeSM:C}=e,S=x||n,E=C||S,k=w||l,I=Math.round((t-S*o)/2*10)/10-r,j=Math.round((i-E*o)/2*10)/10-r,N=Math.ceil((a-k*c)/2*10)/10-r;return{paddingBlock:Math.max(I,0),paddingBlockSM:Math.max(j,0),paddingBlockLG:Math.max(N,0),paddingInline:s-r,paddingInlineSM:u-r,paddingInlineLG:d-r,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${h}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:S,inputFontSizeLG:k,inputFontSizeSM:E}}},39082:function(e,t,n){n.d(t,{$U:function(){return l},H8:function(){return g},Mu:function(){return f},S5:function(){return v},Xy:function(){return a},ir:function(){return d},qG:function(){return s},vc:function(){return x}});var o=n(66604),r=n(51636);const i=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),a=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},i((0,r.IX)(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),l=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),c=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},l(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),s=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},l(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},a(e))}),c(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),c(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),u=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),d=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},u(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),u(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},a(e))}})}),f=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},p=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null!==(n=null==t?void 0:t.inputColor)&&void 0!==n?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},m=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},p(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),g=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},a(e))}),m(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),m(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),h=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),v=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},h(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),h(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),b=(e,t)=>({background:e.colorBgContainer,borderWidth:`${(0,o.bf)(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),y=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},b(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),x=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},b(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),y(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),y(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)})},24303:function(e,t,n){n.d(t,{D:function(){return S},Z:function(){return I}});var o=n(59301),r=n(14809),i={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"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l),s=n(33853),u=n(38819),d=n(92310),f=n.n(d),p=n(2738),m=n(48755),g=n(6989),h=n(66604),v=n(48923),b=n(16931);const y=e=>{const{componentCls:t,siderBg:n,motionDurationMid:o,motionDurationSlow:r,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:c,headerHeight:s,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${o}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:(0,h.bf)(a),textAlign:"center",background:c,cursor:"pointer",transition:`all ${o}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:s,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,h.bf)(f)} ${(0,h.bf)(f)} 0`,cursor:"pointer",transition:`background ${r} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${r}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,h.bf)(f)} 0 0 ${(0,h.bf)(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};var x=(0,b.I$)(["Layout","Sider"],(e=>[y(e)]),v.eh,{deprecatedTokens:v.jn}),w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let e=0;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,`${t}${e}`}})(),k=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:l=!1,theme:d="dark",style:h={},collapsible:v=!1,reverseArrow:b=!1,width:y=200,collapsedWidth:k=80,zeroWidthTriggerStyle:I,breakpoint:j,onCollapse:N,onBreakpoint:M}=e,Z=w(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:O}=(0,o.useContext)(g.V),[$,A]=(0,o.useState)("collapsed"in e?e.collapsed:l),[z,T]=(0,o.useState)(!1);(0,o.useEffect)((()=>{"collapsed"in e&&A(e.collapsed)}),[e.collapsed]);const P=(t,n)=>{"collapsed"in e||A(t),null==N||N(t,n)},{getPrefixCls:L,direction:R}=(0,o.useContext)(m.E_),B=L("layout-sider",n),[D,H,W]=x(B),F=(0,o.useRef)(null);F.current=e=>{T(e.matches),null==M||M(e.matches),$!==e.matches&&P(e.matches,"responsive")},(0,o.useEffect)((()=>{function e(e){return F.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&j&&j in C){t=n(`screen and (max-width: ${C[j]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[j]),(0,o.useEffect)((()=>{const e=E("ant-sider-");return O.addSider(e),()=>O.removeSider(e)}),[]);const K=()=>{P(!$,"clickTrigger")},V=(0,p.Z)(Z,["collapsed"]),q=$?k:y,X=(G=q,!Number.isNaN(Number.parseFloat(G))&&isFinite(G)?`${q}px`:String(q));var G;const Q=0===parseFloat(String(k||0))?o.createElement("span",{onClick:K,className:f()(`${B}-zero-width-trigger`,`${B}-zero-width-trigger-${b?"right":"left"}`),style:I},i||o.createElement(c,null)):null,_="rtl"===R==!b,U={expanded:_?o.createElement(u.Z,null):o.createElement(s.Z,null),collapsed:_?o.createElement(s.Z,null):o.createElement(u.Z,null)}[$?"collapsed":"expanded"],Y=null!==i?Q||o.createElement("div",{className:`${B}-trigger`,onClick:K,style:{width:X}},i||U):null,J=Object.assign(Object.assign({},h),{flex:`0 0 ${X}`,maxWidth:X,minWidth:X,width:X}),ee=f()(B,`${B}-${d}`,{[`${B}-collapsed`]:!!$,[`${B}-has-trigger`]:v&&null!==i&&!Q,[`${B}-below`]:!!z,[`${B}-zero-width`]:0===parseFloat(X)},r,H,W),te=o.useMemo((()=>({siderCollapsed:$})),[$]);return D(o.createElement(S.Provider,{value:te},o.createElement("aside",Object.assign({className:ee},V,{style:J,ref:t}),o.createElement("div",{className:`${B}-children`},a),v||z&&Q?Y:null)))}));var I=k},6989:function(e,t,n){n.d(t,{V:function(){return o}});const o=n(59301).createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(e,t,n){n.d(t,{eh:function(){return a},jn:function(){return l}});var o=n(66604),r=n(16931);const i=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:l,headerColor:c,footerPadding:s,fontSize:u,bodyBg:d,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:l,color:c,lineHeight:(0,o.bf)(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:s,color:r,fontSize:u,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},a=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:o,colorText:r,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*o;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:r,footerPadding:`${i}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:o+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:r}},l=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];t.ZP=(0,r.I$)("Layout",(e=>[i(e)]),a,{deprecatedTokens:l})},78857:function(e,t,n){n.d(t,{J:function(){return c}});var o=n(59301),r=n(8654),i=n(62487),a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{children:n}=e,c=a(e,["children"]),s=o.useContext(l),u=o.useMemo((()=>Object.assign(Object.assign({},s),c)),[s,c.prefixCls,c.mode,c.selectable,c.rootClassName]),d=(0,r.t4)(n),f=(0,r.x1)(t,d?(0,r.C4)(n):null);return o.createElement(l.Provider,{value:u},o.createElement(i.Z,{space:!0},d?o.cloneElement(n,{ref:f}):n))}));t.Z=l},93041:function(e,t,n){n.d(t,{Z:function(){return Q}});var o=n(59301),r=n(28321),i=n(24303),a=n(18785),l=n(92310),c=n.n(l),s=n(6089),u=n(2738),d=n(86641),f=n(22703),p=n(48755),m=n(83397);var g=(0,o.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,dashed:i}=e,a=h(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=o.useContext(p.E_),s=l("menu",t),u=c()({[`${s}-item-divider-dashed`]:!!i},n);return o.createElement(r.iz,Object.assign({className:u},a))},b=n(11592),y=n(55544);var x=e=>{var t;const{className:n,children:a,icon:l,title:s,danger:d,extra:p}=e,{prefixCls:m,firstLevel:h,direction:v,disableMenuItemTitleTooltip:x,inlineCollapsed:w}=o.useContext(g),{siderCollapsed:C}=o.useContext(i.D);let S=s;void 0===s?S=h?a:"":!1===s&&(S="");const E={title:S};C||w||(E.title=null,E.open=!1);const k=(0,b.Z)(a).length;let I=o.createElement(r.ck,Object.assign({},(0,u.Z)(e,["title","icon","danger"]),{className:c()({[`${m}-item-danger`]:d,[`${m}-item-only-child`]:1===(l?k+1:k)},n),title:"string"==typeof s?s:void 0}),(0,f.Tm)(l,{className:c()(o.isValidElement(l)?null===(t=l.props)||void 0===t?void 0:t.className:"",`${m}-item-icon`)}),(e=>{const t=null==a?void 0:a[0],n=o.createElement("span",{className:c()(`${m}-title-content`,{[`${m}-title-content-with-extra`]:!!p||0===p})},a);return(!l||o.isValidElement(a)&&"span"===a.type)&&a&&e&&h&&"string"==typeof t?o.createElement("div",{className:`${m}-inline-collapsed-noicon`},t.charAt(0)):n})(w));return x||(I=o.createElement(y.Z,Object.assign({},E,{placement:"rtl"===v?"left":"right",classNames:{root:`${m}-inline-collapsed-tooltip`}}),I)),I},w=n(78857),C=n(66604),S=n(17835),E=n(63356),k=n(34961),I=n(46e3),j=n(34925),N=n(16931),M=n(51636);var Z=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:o,colorSplit:r,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${(0,C.bf)(i)} ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}};var O=e=>{let{componentCls:t,menuArrowOffset:n,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,C.bf)(o(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,C.bf)(n)})`}}}}};const $=e=>Object.assign({},(0,E.oN)(e));var A=(e,t)=>{const{componentCls:n,itemColor:o,itemSelectedColor:r,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:l,subMenuItemBg:c,itemSelectedBg:s,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:h,motionDurationMid:v,itemHoverColor:b,lineType:y,colorSplit:x,itemDisabledColor:w,dangerItemColor:S,dangerItemHoverColor:E,dangerItemSelectedColor:k,dangerItemActiveBg:I,dangerItemSelectedBg:j,popupBg:N,itemHoverBg:M,itemActiveBg:Z,menuSubMenuBg:O,horizontalItemSelectedColor:A,horizontalItemSelectedBg:z,horizontalItemBorderRadius:T,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:l,[`&${n}-root:focus-visible`]:Object.assign({},$(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:o,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},$(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:Z}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:Z}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:I}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:k},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:j}},[`&${n}-submenu > ${n}`]:{backgroundColor:O},[`&${n}-popup > ${n}`]:{backgroundColor:N},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:N},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:T,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${(0,C.bf)(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:z,"&:hover":{backgroundColor:z},"&::after":{borderBottomWidth:u,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${(0,C.bf)(f)} ${y} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,C.bf)(d)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:k}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${m}`,`opacity ${v} ${m}`].join(",")}}}}}};const z=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(i).add(r).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:(0,C.bf)(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:l,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:(0,C.bf)(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}};var T=e=>{const{componentCls:t,iconCls:n,itemHeight:o,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:c,itemMarginInline:s,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,v={height:o,lineHeight:(0,C.bf)(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},z(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},z(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${(0,C.bf)(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${d} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,C.bf)(e.calc(h).div(2).equal())} - ${(0,C.bf)(s)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:(0,C.bf)(o),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},E.vS),{paddingInline:p})}}]};const P=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:o,motionEaseInOut:r,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${r}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${o} ${i}`,`margin ${n} ${r}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${r}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},(0,E.Ro)()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},L=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,C.bf)(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,C.bf)(a)})`}}}}},R=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:g,lineType:h,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},(0,E.dF)()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,E.Wf)(e)),(0,E.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${(0,C.bf)(l)} ${(0,C.bf)(c)}`,fontSize:b,lineHeight:v,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:h,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),P(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${(0,C.bf)(e.calc(o).mul(2).equal())} ${(0,C.bf)(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},P(e)),L(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),L(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,C.bf)(g)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,C.bf)(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${(0,C.bf)(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,C.bf)(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,C.bf)(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},B=e=>{var t,n,o;const{colorPrimary:r,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:h,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:w,fontSize:C,controlHeightSM:E,fontSizeLG:k,colorTextLightSolid:I,colorErrorHover:j}=e,N=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,M=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,Z=null!==(o=e.itemMarginInline)&&void 0!==o?o:e.marginXXS,O=new S.t(I).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:r,itemSelectedColor:r,subMenuItemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:u,itemBg:u,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:N,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:M,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:Z,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:x,itemPaddingInline:w,horizontalLineHeight:1.15*v+"px",iconSize:C,iconMarginInlineEnd:E-C,collapsedIconSize:k,groupTitleFontSize:C,darkItemDisabledColor:new S.t(I).setA(.25).toRgbString(),darkItemColor:O,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:I,darkItemSelectedBg:r,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:O,darkItemHoverColor:I,darkDangerItemHoverColor:j,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:i,itemWidth:N?`calc(100% + ${M}px)`:`calc(100% - ${2*Z}px)`}};var D=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=(0,N.I$)("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:o,darkItemColor:r,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:h,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,x=e.calc(o).div(7).mul(5).equal(),w=(0,M.IX)(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),C=(0,M.IX)(w,{itemColor:r,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:h,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[R(w),Z(w),T(w),A(w,"light"),A(C,"dark"),O(w),(0,k.Z)(w),(0,I.oN)(w,"slide-up"),(0,I.oN)(w,"slide-down"),(0,j._y)(w,"zoom-big")]}),B,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}});return o(e,t)},H=n(75030);var W=e=>{var t;const{popupClassName:n,icon:i,title:a,theme:l}=e,s=o.useContext(g),{prefixCls:d,inlineCollapsed:p,theme:m}=s,h=(0,r.Xl)();let v;if(i){const e=o.isValidElement(a)&&"span"===a.type;v=o.createElement(o.Fragment,null,(0,f.Tm)(i,{className:c()(o.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${d}-item-icon`)}),e?a:o.createElement("span",{className:`${d}-title-content`},a))}else v=p&&!h.length&&a&&"string"==typeof a?o.createElement("div",{className:`${d}-inline-collapsed-noicon`},a.charAt(0)):o.createElement("span",{className:`${d}-title-content`},a);const b=o.useMemo((()=>Object.assign(Object.assign({},s),{firstLevel:!1})),[s]),[y]=(0,H.Cn)("Menu");return o.createElement(g.Provider,{value:b},o.createElement(r.Wd,Object.assign({},(0,u.Z)(e,["icon"]),{title:v,popupClassName:c()(d,n,`${d}-${l||m}`),popupStyle:Object.assign({zIndex:y},e.popupStyle)})))},F=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n;const i=o.useContext(w.Z),l=i||{},{getPrefixCls:h,getPopupContainer:v,direction:b,menu:y}=o.useContext(p.E_),x=h(),{prefixCls:C,className:S,style:E,theme:k="light",expandIcon:I,_internalDisableMenuItemTitleTooltip:j,inlineCollapsed:N,siderCollapsed:M,rootClassName:Z,mode:O,selectable:$,onClick:A,overflowedIndicatorPopupClassName:z}=e,T=F(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),P=(0,u.Z)(T,["collapsedWidth"]);null===(n=l.validator)||void 0===n||n.call(l,{mode:O});const L=(0,s.Z)((function(){var e;null==A||A.apply(void 0,arguments),null===(e=l.onClick)||void 0===e||e.call(l)})),R=l.mode||O,B=null!=$?$:l.selectable,H=null!=N?N:M,W={horizontal:{motionName:`${x}-slide-up`},inline:(0,d.Z)(x),other:{motionName:`${x}-zoom-big`}},q=h("menu",C||l.prefixCls),X=(0,m.Z)(q),[G,Q,_]=D(q,X,!i),U=c()(`${q}-${k}`,null==y?void 0:y.className,S),Y=o.useMemo((()=>{var e,t;if("function"==typeof I||K(I))return I||null;if("function"==typeof l.expandIcon||K(l.expandIcon))return l.expandIcon||null;if("function"==typeof(null==y?void 0:y.expandIcon)||K(null==y?void 0:y.expandIcon))return(null==y?void 0:y.expandIcon)||null;const n=null!==(e=null!=I?I:null==l?void 0:l.expandIcon)&&void 0!==e?e:null==y?void 0:y.expandIcon;return(0,f.Tm)(n,{className:c()(`${q}-submenu-expand-icon`,o.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[I,null==l?void 0:l.expandIcon,null==y?void 0:y.expandIcon,q]),J=o.useMemo((()=>({prefixCls:q,inlineCollapsed:H||!1,direction:b,firstLevel:!0,theme:k,mode:R,disableMenuItemTitleTooltip:j})),[q,H,b,j,k]);return G(o.createElement(w.Z.Provider,{value:null},o.createElement(g.Provider,{value:J},o.createElement(r.ZP,Object.assign({getPopupContainer:v,overflowedIndicator:o.createElement(a.Z,null),overflowedIndicatorPopupClassName:c()(q,`${q}-${k}`,z),mode:R,selectable:B,onClick:L},P,{inlineCollapsed:H,style:Object.assign(Object.assign({},null==y?void 0:y.style),E),className:U,prefixCls:q,direction:b,defaultMotions:W,expandIcon:Y,ref:t,rootClassName:c()(Z,Q,l.rootClassName,_,X),_internalComponents:V})))))}));var X=q;const G=(0,o.forwardRef)(((e,t)=>{const n=(0,o.useRef)(null),r=o.useContext(i.D);return(0,o.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),o.createElement(X,Object.assign({ref:n},e,r))}));G.Item=x,G.SubMenu=W,G.Divider=v,G.ItemGroup=r.BW;var Q=G},98012:function(e,t,n){n.d(t,{Z:function(){return le}});var o=n(59301),r=n(14809),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},a=n(7657),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},u=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:s}))};var d=o.forwardRef(u),f=n(33853),p=n(38819),m=n(92310),g=n.n(m),h=n(4635),v=n(93664),b=n(20439),y=n(50298),x=n(18929),w=n(10228),C=n(26112),S=(n(48736),n(17119)),E=[10,20,50,100];var k=function(e){var t=e.pageSizeOptions,n=void 0===t?E:t,r=e.locale,i=e.changeSize,a=e.pageSize,l=e.goButton,c=e.quickGo,s=e.rootPrefixCls,u=e.disabled,d=e.buildOptionText,f=e.showSizeChanger,p=e.sizeChangerRender,m=o.useState(""),g=(0,y.Z)(m,2),h=g[0],v=g[1],b=function(){return!h||Number.isNaN(h)?void 0:Number(h)},x="function"==typeof d?d:function(e){return"".concat(e," ").concat(r.items_per_page)},C=function(e){""!==h&&(e.keyCode!==w.Z.ENTER&&"click"!==e.type||(v(""),null==c||c(b())))},S="".concat(s,"-options");if(!f&&!c)return null;var k=null,I=null,j=null;return f&&p&&(k=p({disabled:u,size:a,onSizeChange:function(e){null==i||i(Number(e))},"aria-label":r.page_size,className:"".concat(S,"-size-changer"),options:(n.some((function(e){return e.toString()===a.toString()}))?n:n.concat([a]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e){return{label:x(e),value:e}}))})),c&&(l&&(j="boolean"==typeof l?o.createElement("button",{type:"button",onClick:C,onKeyUp:C,disabled:u,className:"".concat(S,"-quick-jumper-button")},r.jump_to_confirm):o.createElement("span",{onClick:C,onKeyUp:C},l)),I=o.createElement("div",{className:"".concat(S,"-quick-jumper")},r.jump_to,o.createElement("input",{disabled:u,type:"text",value:h,onChange:function(e){v(e.target.value)},onKeyUp:C,onBlur:function(e){l||""===h||(v(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(s,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(s,"-item"))>=0)||null==c||c(b()))},"aria-label":r.page}),r.page,j)),o.createElement("li",{className:S},k,I)};var I=function(e){var t=e.rootPrefixCls,n=e.page,r=e.active,i=e.className,a=e.showTitle,l=e.onClick,c=e.onKeyPress,s=e.itemRender,u="".concat(t,"-item"),d=g()(u,"".concat(u,"-").concat(n),(0,h.Z)((0,h.Z)({},"".concat(u,"-active"),r),"".concat(u,"-disabled"),!n),i),f=s(n,"page",o.createElement("a",{rel:"nofollow"},n));return f?o.createElement("li",{title:a?String(n):null,className:d,onClick:function(){l(n)},onKeyDown:function(e){c(e,l,n)},tabIndex:0},f):null},j=function(e,t,n){return n};function N(){}function M(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Z(e,t,n){var o=void 0===e?t:e;return Math.floor((n-1)/o)+1}var O=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,i=e.selectPrefixCls,a=void 0===i?"rc-select":i,l=e.className,c=e.current,s=e.defaultCurrent,u=void 0===s?1:s,d=e.total,f=void 0===d?0:d,p=e.pageSize,m=e.defaultPageSize,E=void 0===m?10:m,O=e.onChange,$=void 0===O?N:O,A=e.hideOnSinglePage,z=e.align,T=e.showPrevNextJumpers,P=void 0===T||T,L=e.showQuickJumper,R=e.showLessItems,B=e.showTitle,D=void 0===B||B,H=e.onShowSizeChange,W=void 0===H?N:H,F=e.locale,K=void 0===F?S.Z:F,V=e.style,q=e.totalBoundaryShowSizeChanger,X=void 0===q?50:q,G=e.disabled,Q=e.simple,_=e.showTotal,U=e.showSizeChanger,Y=void 0===U?f>X:U,J=e.sizeChangerRender,ee=e.pageSizeOptions,te=e.itemRender,ne=void 0===te?j:te,oe=e.jumpPrevIcon,re=e.jumpNextIcon,ie=e.prevIcon,ae=e.nextIcon,le=o.useRef(null),ce=(0,x.Z)(10,{value:p,defaultValue:E}),se=(0,y.Z)(ce,2),ue=se[0],de=se[1],fe=(0,x.Z)(1,{value:c,defaultValue:u,postState:function(e){return Math.max(1,Math.min(e,Z(void 0,ue,f)))}}),pe=(0,y.Z)(fe,2),me=pe[0],ge=pe[1],he=o.useState(me),ve=(0,y.Z)(he,2),be=ve[0],ye=ve[1];(0,o.useEffect)((function(){ye(me)}),[me]);var xe=Math.max(1,me-(R?3:5)),we=Math.min(Z(void 0,ue,f),me+(R?3:5));function Ce(t,r){var i=t||o.createElement("button",{type:"button","aria-label":r,className:"".concat(n,"-item-link")});return"function"==typeof t&&(i=o.createElement(t,(0,b.Z)({},e))),i}function Se(e){var t=e.target.value,n=Z(void 0,ue,f);return""===t?t:Number.isNaN(Number(t))?be:t>=n?n:Number(t)}var Ee=f>ue&&L;function ke(e){var t=Se(e);switch(t!==be&&ye(t),e.keyCode){case w.Z.ENTER:Ie(t);break;case w.Z.UP:Ie(t-1);break;case w.Z.DOWN:Ie(t+1)}}function Ie(e){if(function(e){return M(e)&&e!==me&&M(f)&&f>0}(e)&&!G){var t=Z(void 0,ue,f),n=e;return e>t?n=t:e<1&&(n=1),n!==be&&ye(n),ge(n),null==$||$(n,ue),n}return me}var je=me>1,Ne=me2?n-2:0),r=2;rf?f:me*ue])),Re=null,Be=Z(void 0,ue,f);if(A&&f<=ue)return null;var De=[],He={rootPrefixCls:n,onClick:Ie,onKeyPress:Ae,showTitle:D,itemRender:ne,page:-1},We=me-1>0?me-1:0,Fe=me+1=2*Ge&&3!==me&&(De[0]=o.cloneElement(De[0],{className:g()("".concat(n,"-item-after-jump-prev"),De[0].props.className)}),De.unshift(Te)),Be-me>=2*Ge&&me!==Be-2){var ot=De[De.length-1];De[De.length-1]=o.cloneElement(ot,{className:g()("".concat(n,"-item-before-jump-next"),ot.props.className)}),De.push(Re)}1!==et&&De.unshift(o.createElement(I,(0,r.Z)({},He,{key:1,page:1}))),tt!==Be&&De.push(o.createElement(I,(0,r.Z)({},He,{key:Be,page:Be})))}var rt=function(e){var t=ne(e,"prev",Ce(ie,"prev page"));return o.isValidElement(t)?o.cloneElement(t,{disabled:!je}):t}(We);if(rt){var it=!je||!Be;rt=o.createElement("li",{title:D?K.prev_page:null,onClick:Me,tabIndex:it?null:0,onKeyDown:function(e){Ae(e,Me)},className:g()("".concat(n,"-prev"),(0,h.Z)({},"".concat(n,"-disabled"),it)),"aria-disabled":it},rt)}var at,lt,ct=function(e){var t=ne(e,"next",Ce(ae,"next page"));return o.isValidElement(t)?o.cloneElement(t,{disabled:!Ne}):t}(Fe);ct&&(Q?(at=!Ne,lt=je?0:null):lt=(at=!Ne||!Be)?null:0,ct=o.createElement("li",{title:D?K.next_page:null,onClick:Ze,tabIndex:lt,onKeyDown:function(e){Ae(e,Ze)},className:g()("".concat(n,"-next"),(0,h.Z)({},"".concat(n,"-disabled"),at)),"aria-disabled":at},ct));var st=g()(n,l,(0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)({},"".concat(n,"-start"),"start"===z),"".concat(n,"-center"),"center"===z),"".concat(n,"-end"),"end"===z),"".concat(n,"-simple"),Q),"".concat(n,"-disabled"),G));return o.createElement("ul",(0,r.Z)({className:st,style:V,ref:le},Pe),Le,rt,Q?Xe:De,ct,o.createElement(k,{locale:K,rootPrefixCls:n,disabled:G,selectPrefixCls:a,changeSize:function(e){var t=Z(e,ue,f),n=me>t&&0!==t?t:me;de(e),ye(n),null==W||W(me,e),ge(n),null==$||$(n,e)},pageSize:ue,pageSizeOptions:ee,quickGo:Ee?Ie:null,goButton:qe,showSizeChanger:Y,sizeChangerRender:J}))},$=n(61852),A=n(48755),z=n(31756),T=n(13783),P=n(9017),L=n(75914),R=n(57700),B=n(66604),D=n(53075),H=n(64910),W=n(39082),F=n(63356),K=n(51636),V=n(16931);const q=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},X=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:(0,B.bf)(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,B.bf)(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,B.bf)(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:(0,B.bf)(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:(0,B.bf)(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:(0,B.bf)(e.itemSizeSM),input:Object.assign(Object.assign({},(0,D.x0)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},G=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:(0,B.bf)(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:(0,B.bf)(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,B.bf)(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${(0,B.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${(0,B.bf)(e.inputOutlineOffset)} 0 ${(0,B.bf)(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Q=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:(0,B.bf)(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,B.bf)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:(0,B.bf)(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,D.ik)(e)),(0,W.$U)(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},(0,W.Xy)(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},_=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:(0,B.bf)(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${(0,B.bf)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,B.bf)(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},U=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,F.Wf)(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:(0,B.bf)(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),_(e)),Q(e)),G(e)),X(e)),q(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Y=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,F.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,F.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,F.oN)(e))}}}},J=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},(0,H.T)(e)),ee=e=>(0,K.IX)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,H.e)(e));var te=(0,V.I$)("Pagination",(e=>{const t=ee(e);return[U(t),Y(t)]}),J);const ne=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${(0,B.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}};var oe=(0,V.bk)(["Pagination","bordered"],(e=>{const t=ee(e);return[ne(t)]}),J);function re(e){return(0,o.useMemo)((()=>"boolean"==typeof e?[e,{}]:e&&"object"==typeof e?[!0,e]:[void 0,void 0]),[e])}var ie=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:l,size:s,locale:u,responsive:m,showSizeChanger:h,selectComponentClass:v,pageSizeOptions:b}=e,y=ie(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:x}=(0,T.Z)(m),[,w]=(0,R.ZP)(),{getPrefixCls:C,direction:S,showSizeChanger:E,className:k,style:I}=(0,A.dj)("pagination"),j=C("pagination",n),[N,M,Z]=te(j),B=(0,z.Z)(s),D="small"===B||!(!x||B||!m),[H]=(0,P.Z)("Pagination",$.Z),W=Object.assign(Object.assign({},H),u),[F,K]=re(h),[V,q]=re(E),X=null!=F?F:V,G=null!=K?K:q,Q=v||L.default,_=o.useMemo((()=>b?b.map((e=>Number(e))):void 0),[b]);const U=o.useMemo((()=>{const e=o.createElement("span",{className:`${j}-item-ellipsis`},"•••");return{prevIcon:o.createElement("button",{className:`${j}-item-link`,type:"button",tabIndex:-1},"rtl"===S?o.createElement(p.Z,null):o.createElement(f.Z,null)),nextIcon:o.createElement("button",{className:`${j}-item-link`,type:"button",tabIndex:-1},"rtl"===S?o.createElement(f.Z,null):o.createElement(p.Z,null)),jumpPrevIcon:o.createElement("a",{className:`${j}-item-link`},o.createElement("div",{className:`${j}-item-container`},"rtl"===S?o.createElement(d,{className:`${j}-item-link-icon`}):o.createElement(c,{className:`${j}-item-link-icon`}),e)),jumpNextIcon:o.createElement("a",{className:`${j}-item-link`},o.createElement("div",{className:`${j}-item-container`},"rtl"===S?o.createElement(c,{className:`${j}-item-link-icon`}):o.createElement(d,{className:`${j}-item-link-icon`}),e))}}),[S,j]),Y=C("select",r),J=g()({[`${j}-${t}`]:!!t,[`${j}-mini`]:D,[`${j}-rtl`]:"rtl"===S,[`${j}-bordered`]:w.wireframe},k,i,a,M,Z),ee=Object.assign(Object.assign({},I),l);return N(o.createElement(o.Fragment,null,w.wireframe&&o.createElement(oe,{prefixCls:j}),o.createElement(O,Object.assign({},U,y,{style:ee,prefixCls:j,selectPrefixCls:Y,className:J,locale:W,pageSizeOptions:_,showSizeChanger:X,sizeChangerRender:e=>{var t;const{disabled:n,size:r,onSizeChange:i,"aria-label":a,className:l,options:c}=e,{className:s,onChange:u}=G||{},d=null===(t=c.find((e=>String(e.value)===String(r))))||void 0===t?void 0:t.value;return o.createElement(Q,Object.assign({disabled:n,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":a,options:c},G,{value:d,onChange:(e,t)=>{null==i||i(e),null==u||u(e,t)},size:D?"small":"middle",className:g()(l,s)}))}}))))},le=ae},47889:function(e,t,n){n.d(t,{ZP:function(){return H}});var o=n(59301),r=n(92310),i=n.n(r),a=n(18929),l=n(26112),c=n(48755),s=n(83397),u=n(31756);const d=o.createContext(null),f=d.Provider;var p=d;const m=o.createContext(null),g=m.Provider;var h=n(16632),v=n(8654),b=n(12919),y=n(63872),x=n(74632),w=n(2171),C=n(56553),S=n(66604),E=n(63356),k=n(16931),I=n(51636);const j=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:Object.assign(Object.assign({},(0,E.Wf)(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`&${o}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},N=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:o,radioSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:m,lineType:g,radioColor:h,radioBgColor:v,calc:b}=e,y=`${t}-inner`,x=b(r).sub(b(4).mul(2)),w=b(1).mul(r).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,E.Wf)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,S.bf)(u)} ${g} ${o}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},(0,E.Wf)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:o},[`${t}-input:focus-visible + ${y}`]:Object.assign({},(0,E.oN)(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:w,height:w,marginBlockStart:b(1).mul(r).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(r).div(-2).equal({unit:!0}),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:o,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(r).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(x).div(r).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},M=e=>{const{buttonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:m,paddingXS:g,borderRadius:h,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:w,colorBgContainerDisabled:C,buttonCheckedBgDisabled:k,buttonCheckedColorDisabled:I,colorPrimary:j,colorPrimaryHover:N,colorPrimaryActive:M,buttonSolidCheckedBg:Z,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:$,calc:A}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:(0,S.bf)(A(n).sub(A(r).mul(2)).equal()),background:d,border:`${(0,S.bf)(r)} ${i} ${a}`,borderBlockStartWidth:A(r).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:A(r).mul(-1).equal(),insetInlineStart:A(r).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,S.bf)(r)} ${i} ${a}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${o}-group-large &`]:{height:p,fontSize:f,lineHeight:(0,S.bf)(A(p).sub(A(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${o}-group-small &`]:{height:m,paddingInline:A(g).sub(r).equal(),paddingBlock:0,lineHeight:(0,S.bf)(A(m).sub(A(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:j},"&:has(:focus-visible)":Object.assign({},(0,E.oN)(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:j,background:y,borderColor:j,"&::before":{backgroundColor:j},"&:first-child":{borderColor:j},"&:hover":{color:N,borderColor:N,"&::before":{backgroundColor:N}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:x,background:Z,borderColor:Z,"&:hover":{color:x,background:O,borderColor:O},"&:active":{color:x,background:$,borderColor:$}},"&-disabled":{color:w,backgroundColor:C,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:C,borderColor:a}},[`&-disabled${o}-button-wrapper-checked`]:{color:I,backgroundColor:k,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}};var Z=(0,k.I$)("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,o=`0 0 0 ${(0,S.bf)(n)} ${t}`,r=o,i=(0,I.IX)(e,{radioFocusShadow:o,radioButtonFocusShadow:r});return[j(i),N(i),M(i)]}),(e=>{const{wireframe:t,padding:n,marginXS:o,lineWidth:r,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+r),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-r,wrapperMarginInlineEnd:o,radioColor:t?d:m,radioBgColor:t?l:d}}),{unitless:{radioSize:!0,dotSize:!0}}),O=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n,r;const a=o.useContext(p),l=o.useContext(m),{getPrefixCls:u,direction:d,radio:f}=o.useContext(c.E_),g=o.useRef(null),S=(0,v.sQ)(t,g),{isFormItemInput:E}=o.useContext(C.aM);const k=t=>{var n,o;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(o=null==a?void 0:a.onChange)||void 0===o||o.call(a,t)},{prefixCls:I,className:j,rootClassName:N,children:M,style:$,title:A}=e,z=O(e,["prefixCls","className","rootClassName","children","style","title"]),T=u("radio",I),P="button"===((null==a?void 0:a.optionType)||l),L=P?`${T}-button`:T,R=(0,s.Z)(T),[B,D,H]=Z(T,R),W=Object.assign({},z),F=o.useContext(w.Z);a&&(W.name=a.name,W.onChange=k,W.checked=e.value===a.value,W.disabled=null!==(n=W.disabled)&&void 0!==n?n:a.disabled),W.disabled=null!==(r=W.disabled)&&void 0!==r?r:F;const K=i()(`${L}-wrapper`,{[`${L}-wrapper-checked`]:W.checked,[`${L}-wrapper-disabled`]:W.disabled,[`${L}-wrapper-rtl`]:"rtl"===d,[`${L}-wrapper-in-form-item`]:E,[`${L}-wrapper-block`]:!!(null==a?void 0:a.block)},null==f?void 0:f.className,j,N,D,H,R),[V,q]=(0,x.Z)(W.onClick);return B(o.createElement(b.Z,{component:"Radio",disabled:W.disabled},o.createElement("label",{className:K,style:Object.assign(Object.assign({},null==f?void 0:f.style),$),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:A,onClick:V},o.createElement(h.Z,Object.assign({},W,{className:i()(W.className,{[y.A]:!P}),type:"radio",prefixCls:L,ref:S,onClick:q})),void 0!==M?o.createElement("span",{className:`${L}-label`},M):null)))};var A=o.forwardRef($),z=n(80402);const T=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(c.E_),d=(0,z.Z)(),{prefixCls:p,className:m,rootClassName:g,options:h,buttonStyle:v="outline",disabled:b,children:y,size:x,style:w,id:C,optionType:S,name:E=d,defaultValue:k,value:I,block:j=!1,onChange:N,onMouseEnter:M,onMouseLeave:O,onFocus:$,onBlur:T}=e,[P,L]=(0,a.Z)(k,{value:I}),R=o.useCallback((t=>{const n=P,o=t.target.value;"value"in e||L(o),o!==n&&(null==N||N(t))}),[P,L,N]),B=n("radio",p),D=`${B}-group`,H=(0,s.Z)(B),[W,F,K]=Z(B,H);let V=y;h&&h.length>0&&(V=h.map((e=>"string"==typeof e||"number"==typeof e?o.createElement(A,{key:e.toString(),prefixCls:B,disabled:b,value:e,checked:P===e},e):o.createElement(A,{key:`radio-group-value-options-${e.value}`,prefixCls:B,disabled:e.disabled||b,value:e.value,checked:P===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const q=(0,u.Z)(x),X=i()(D,`${D}-${v}`,{[`${D}-${q}`]:q,[`${D}-rtl`]:"rtl"===r,[`${D}-block`]:j},m,g,F,K,H),G=o.useMemo((()=>({onChange:R,value:P,disabled:b,name:E,optionType:S,block:j})),[R,P,b,E,S,j]);return W(o.createElement("div",Object.assign({},(0,l.Z)(e,{aria:!0,data:!0}),{className:X,style:w,onMouseEnter:M,onMouseLeave:O,onFocus:$,onBlur:T,id:C,ref:t}),o.createElement(f,{value:G},V)))}));var P=o.memo(T),L=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n}=o.useContext(c.E_),{prefixCls:r}=e,i=L(e,["prefixCls"]),a=n("radio",r);return o.createElement(g,{value:"button"},o.createElement(A,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))};var B=o.forwardRef(R);const D=A;D.Button=B,D.Group=P,D.__ANT_RADIO=!0;var H=D},77019:function(e,t,n){var o=n(65970);t.Z=o.Z},75914:function(e,t,n){n.d(t,{default:function(){return Ct}});var o=n(59301),r=n(92310),i=n.n(r),a=n(14809),l=n(95190),c=n(4635),s=n(20439),u=n(50298),d=n(62646),f=n(93664),p=n(18929),m=n(48736),g=n(34280),h=n(49658),v=n(8654),b=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,a=e.children,l=e.onMouseDown,c=e.onClick,s="function"==typeof n?n(r):n;return o.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==l||l(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:c,"aria-hidden":!0},void 0!==s?s:o.createElement("span",{className:i()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},a))},y=o.createContext(null);function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=o.useRef(null),n=o.useRef(null);function r(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return o.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var w=n(10228);var C=n(26112),S=n(11780);var E=function(e,t,n){var o=(0,s.Z)((0,s.Z)({},e),n?t:{});return Object.keys(t).forEach((function(n){var r=t[n];"function"==typeof r&&(o[n]=function(){for(var t,o=arguments.length,i=new Array(o),a=0;aN&&(i="".concat(a.slice(0,N),"..."))}var l=function(t){t&&t.stopPropagation(),L(e)};return"function"==typeof T?re(o,i,t,r,l):oe(e,i,t,r,l)},renderRest:function(e){if(!l.length)return null;var t="function"==typeof z?z(e):z;return"function"==typeof T?re(void 0,t,!1,!1,void 0,!0):oe({title:t},t,!1)},suffix:ie,itemKey:$,maxCount:I});return o.createElement("span",{className:"".concat(ee,"-wrap")},ae,!l.length&&!te&&o.createElement("span",{className:"".concat(ee,"-placeholder")},m))},T=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,a=e.disabled,l=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,d=e.mode,f=e.open,p=e.values,m=e.placeholder,g=e.tabIndex,h=e.showSearch,v=e.searchValue,b=e.activeValue,y=e.maxLength,x=e.onInputKeyDown,w=e.onInputMouseDown,S=e.onInputChange,E=e.onInputPaste,k=e.onInputCompositionStart,I=e.onInputCompositionEnd,N=e.onInputBlur,M=e.title,Z=o.useState(!1),$=(0,u.Z)(Z,2),A=$[0],z=$[1],T="combobox"===d,P=T||h,L=p[0],R=v||"";T&&b&&!A&&(R=b),o.useEffect((function(){T&&z(!1)}),[T,b]);var B=!("combobox"!==d&&!f&&!h)&&!!R,D=void 0===M?O(L):M,H=o.useMemo((function(){return L?null:o.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:B?{visibility:"hidden"}:void 0},m)}),[L,B,m,n]);return o.createElement("span",{className:"".concat(n,"-selection-wrap")},o.createElement("span",{className:"".concat(n,"-selection-search")},o.createElement(j,{ref:i,prefixCls:n,id:r,open:f,inputElement:t,disabled:a,autoFocus:l,autoComplete:c,editable:P,activeDescendantId:s,value:R,onKeyDown:x,onMouseDown:w,onChange:function(e){z(!0),S(e)},onPaste:E,onCompositionStart:k,onCompositionEnd:I,onBlur:N,tabIndex:g,attrs:(0,C.Z)(e,!0),maxLength:T?y:void 0})),!T&&L?o.createElement("span",{className:"".concat(n,"-selection-item"),title:D,style:B?{visibility:"hidden"}:void 0},L.label):null,H)},P=function(e,t){var n=(0,o.useRef)(null),r=(0,o.useRef)(!1),i=e.prefixCls,l=e.open,c=e.mode,s=e.showSearch,d=e.tokenWithEnter,f=e.disabled,p=e.prefix,m=e.autoClearSearchValue,g=e.onSearch,h=e.onSearchSubmit,v=e.onToggleOpen,b=e.onInputKeyDown,y=e.onInputBlur,C=e.domRef;o.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var S=x(0),E=(0,u.Z)(S,2),k=E[0],I=E[1],j=(0,o.useRef)(null),N=function(e){!1!==g(e,!0,r.current)&&v(!0)},M={inputRef:n,onInputKeyDown:function(e){var t,o=e.which,i=n.current instanceof HTMLTextAreaElement;(i||!l||o!==w.Z.UP&&o!==w.Z.DOWN||e.preventDefault(),b&&b(e),o!==w.Z.ENTER||"tags"!==c||r.current||l||null==h||h(e.target.value),i&&!l&&~[w.Z.UP,w.Z.DOWN,w.Z.LEFT,w.Z.RIGHT].indexOf(o))||(t=o)&&![w.Z.ESC,w.Z.SHIFT,w.Z.BACKSPACE,w.Z.TAB,w.Z.WIN_KEY,w.Z.ALT,w.Z.META,w.Z.WIN_KEY_RIGHT,w.Z.CTRL,w.Z.SEMICOLON,w.Z.EQUALS,w.Z.CAPS_LOCK,w.Z.CONTEXT_MENU,w.Z.F1,w.Z.F2,w.Z.F3,w.Z.F4,w.Z.F5,w.Z.F6,w.Z.F7,w.Z.F8,w.Z.F9,w.Z.F10,w.Z.F11,w.Z.F12].includes(t)&&v(!0)},onInputMouseDown:function(){I(!0)},onInputChange:function(e){var t=e.target.value;if(d&&j.current&&/[\r\n]/.test(j.current)){var n=j.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,j.current)}j.current=null,N(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");j.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==c&&N(e.target.value)},onInputBlur:y},Z="multiple"===c||"tags"===c?o.createElement(z,(0,a.Z)({},e,M)):o.createElement(T,(0,a.Z)({},e,M));return o.createElement("div",{ref:C,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=k();e.target===n.current||t||"combobox"===c&&f||e.preventDefault(),("combobox"===c||s&&t)&&l||(l&&!1!==m&&g("",!0,!1),v())}},p&&o.createElement("div",{className:"".concat(i,"-prefix")},p),Z)};var L=o.forwardRef(P),R=n(65352),B=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],D=function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),l=e.children,u=e.popupElement,f=e.animation,p=e.transitionName,m=e.dropdownStyle,g=e.dropdownClassName,h=e.direction,v=void 0===h?"ltr":h,b=e.placement,y=e.builtinPlacements,x=e.dropdownMatchSelectWidth,w=e.dropdownRender,C=e.dropdownAlign,S=e.getPopupContainer,E=e.empty,k=e.getTriggerDOMNode,I=e.onPopupVisibleChange,j=e.onPopupMouseEnter,N=(0,d.Z)(e,B),M="".concat(n,"-dropdown"),Z=u;w&&(Z=w(u));var O=o.useMemo((function(){return y||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(x)}),[y,x]),$=f?"".concat(M,"-").concat(f):p,A="number"==typeof x,z=o.useMemo((function(){return A?null:!1===x?"minWidth":"width"}),[x,A]),T=m;A&&(T=(0,s.Z)((0,s.Z)({},T),{},{width:x}));var P=o.useRef(null);return o.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=P.current)||void 0===e?void 0:e.popupElement}}})),o.createElement(R.Z,(0,a.Z)({},N,{showAction:I?["click"]:[],hideAction:I?["click"]:[],popupPlacement:b||("rtl"===v?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:M,popupTransitionName:$,popup:o.createElement("div",{onMouseEnter:j},Z),ref:P,stretch:z,popupAlign:C,popupVisible:r,getPopupContainer:S,popupClassName:i()(g,(0,c.Z)({},"".concat(M,"-empty"),E)),popupStyle:T,getTriggerDOMNode:k,onPopupVisibleChange:I}),l)};var H=o.forwardRef(D),W=n(21696);function F(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!=o?o:void 0!==n?n:"rc-index-key-".concat(t)}function K(e){return void 0!==e&&!Number.isNaN(e)}function V(e,t){var n=e||{},o=n.label||(t?"children":"label");return{label:o,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||o}}function q(e){var t=(0,s.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,m.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var X=o.createContext(null);function G(e){var t=e.visible,n=e.values;if(!t)return null;return o.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes((0,f.Z)(t))?t:n})).join(", ")),n.length>50?", ...":null)}var Q=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],_=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],U=function(e){return"tags"===e||"multiple"===e},Y=o.forwardRef((function(e,t){var n,r=e.id,m=e.prefixCls,w=e.className,C=e.showSearch,S=e.tagRender,E=e.direction,k=e.omitDomProps,I=e.displayValues,j=e.onDisplayValuesChange,N=e.emptyOptions,M=e.notFoundContent,Z=void 0===M?"Not Found":M,O=e.onClear,$=e.mode,A=e.disabled,z=e.loading,T=e.getInputElement,P=e.getRawInputElement,R=e.open,B=e.defaultOpen,D=e.onDropdownVisibleChange,F=e.activeValue,V=e.onActiveValueChange,q=e.activeDescendantId,Y=e.searchValue,J=e.autoClearSearchValue,ee=e.onSearch,te=e.onSearchSplit,ne=e.tokenSeparators,oe=e.allowClear,re=e.prefix,ie=e.suffixIcon,ae=e.clearIcon,le=e.OptionList,ce=e.animation,se=e.transitionName,ue=e.dropdownStyle,de=e.dropdownClassName,fe=e.dropdownMatchSelectWidth,pe=e.dropdownRender,me=e.dropdownAlign,ge=e.placement,he=e.builtinPlacements,ve=e.getPopupContainer,be=e.showAction,ye=void 0===be?[]:be,xe=e.onFocus,we=e.onBlur,Ce=e.onKeyUp,Se=e.onKeyDown,Ee=e.onMouseDown,ke=(0,d.Z)(e,Q),Ie=U($),je=(void 0!==C?C:Ie)||"combobox"===$,Ne=(0,s.Z)({},ke);_.forEach((function(e){delete Ne[e]})),null==k||k.forEach((function(e){delete Ne[e]}));var Me=o.useState(!1),Ze=(0,u.Z)(Me,2),Oe=Ze[0],$e=Ze[1];o.useEffect((function(){$e((0,h.Z)())}),[]);var Ae=o.useRef(null),ze=o.useRef(null),Te=o.useRef(null),Pe=o.useRef(null),Le=o.useRef(null),Re=o.useRef(!1),Be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=o.useState(!1),n=(0,u.Z)(t,2),r=n[0],i=n[1],a=o.useRef(null),l=function(){window.clearTimeout(a.current)};return o.useEffect((function(){return l}),[]),[r,function(t,n){l(),a.current=window.setTimeout((function(){i(t),n&&n()}),e)},l]}(),De=(0,u.Z)(Be,3),He=De[0],We=De[1],Fe=De[2];o.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Pe.current)||void 0===e?void 0:e.focus,blur:null===(t=Pe.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Le.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:Ae.current||ze.current}}));var Ke=o.useMemo((function(){var e;if("combobox"!==$)return Y;var t=null===(e=I[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[Y,$,I]),Ve="combobox"===$&&"function"==typeof T&&T()||null,qe="function"==typeof P&&P(),Xe=(0,v.x1)(ze,null==qe||null===(n=qe.props)||void 0===n?void 0:n.ref),Ge=o.useState(!1),Qe=(0,u.Z)(Ge,2),_e=Qe[0],Ue=Qe[1];(0,g.Z)((function(){Ue(!0)}),[]);var Ye=(0,p.Z)(!1,{defaultValue:B,value:R}),Je=(0,u.Z)(Ye,2),et=Je[0],tt=Je[1],nt=!!_e&&et,ot=!Z&&N;(A||ot&&nt&&"combobox"===$)&&(nt=!1);var rt=!ot&&nt,it=o.useCallback((function(e){var t=void 0!==e?e:!nt;A||(tt(t),nt!==t&&(null==D||D(t)))}),[A,nt,tt,D]),at=o.useMemo((function(){return(ne||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ne]),lt=o.useContext(X)||{},ct=lt.maxCount,st=lt.rawValues,ut=function(e,t,n){if(!(Ie&&K(ct)&&(null==st?void 0:st.size)>=ct)){var o=!0,r=e;null==V||V(null);var i=function(e,t,n){if(!t||!t.length)return null;var o=!1,r=function e(t,n){var r=(0,W.Z)(n),i=r[0],a=r.slice(1);if(!i)return[t];var c=t.split(i);return o=o||c.length>1,c.reduce((function(t,n){return[].concat((0,l.Z)(t),(0,l.Z)(e(n,a)))}),[]).filter(Boolean)}(e,t);return o?void 0!==n?r.slice(0,n):r:null}(e,ne,K(ct)?ct-st.size:void 0),a=n?null:i;return"combobox"!==$&&a&&(r="",null==te||te(a),it(!1),o=!1),ee&&Ke!==r&&ee(r,{source:t?"typing":"effect"}),o}};o.useEffect((function(){nt||Ie||"combobox"===$||ut("",!1,!1)}),[nt]),o.useEffect((function(){et&&A&&tt(!1),A&&!Re.current&&We(!1)}),[A]);var dt=x(),ft=(0,u.Z)(dt,2),pt=ft[0],mt=ft[1],gt=o.useRef(!1),ht=o.useRef(!1),vt=[];o.useEffect((function(){return function(){vt.forEach((function(e){return clearTimeout(e)})),vt.splice(0,vt.length)}}),[]);var bt,yt=o.useState({}),xt=(0,u.Z)(yt,2)[1];qe&&(bt=function(e){it(e)}),function(e,t,n,r){var i=o.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},o.useEffect((function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var o=t.target;o.shadowRoot&&t.composed&&(o=t.composedPath()[0]||o),i.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Ae.current,null===(e=Te.current)||void 0===e?void 0:e.getPopupElement()]}),rt,it,!!qe);var wt,Ct=o.useMemo((function(){return(0,s.Z)((0,s.Z)({},e),{},{notFoundContent:Z,open:nt,triggerOpen:rt,id:r,showSearch:je,multiple:Ie,toggleOpen:it})}),[e,Z,rt,nt,r,je,Ie,it]),St=!!ie||z;St&&(wt=o.createElement(b,{className:i()("".concat(m,"-arrow"),(0,c.Z)({},"".concat(m,"-arrow-loading"),z)),customizeIcon:ie,customizeIconProps:{loading:z,searchValue:Ke,open:nt,focused:He,showSearch:je}}));var Et,kt=function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=o.useMemo((function(){return"object"===(0,f.Z)(r)?r.clearIcon:i||void 0}),[r,i]),u=o.useMemo((function(){return!(a||!r||!n.length&&!l||"combobox"===c&&""===l)}),[r,a,n.length,l,c]);return{allowClear:u,clearIcon:o.createElement(b,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"×")}}(m,(function(){var e;null==O||O(),null===(e=Pe.current)||void 0===e||e.focus(),j([],{type:"clear",values:I}),ut("",!1,!1)}),I,oe,ae,A,Ke,$),It=kt.allowClear,jt=kt.clearIcon,Nt=o.createElement(le,{ref:Le}),Mt=i()(m,w,(0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)({},"".concat(m,"-focused"),He),"".concat(m,"-multiple"),Ie),"".concat(m,"-single"),!Ie),"".concat(m,"-allow-clear"),oe),"".concat(m,"-show-arrow"),St),"".concat(m,"-disabled"),A),"".concat(m,"-loading"),z),"".concat(m,"-open"),nt),"".concat(m,"-customize-input"),Ve),"".concat(m,"-show-search"),je)),Zt=o.createElement(H,{ref:Te,disabled:A,prefixCls:m,visible:rt,popupElement:Nt,animation:ce,transitionName:se,dropdownStyle:ue,dropdownClassName:de,direction:E,dropdownMatchSelectWidth:fe,dropdownRender:pe,dropdownAlign:me,placement:ge,builtinPlacements:he,getPopupContainer:ve,empty:N,getTriggerDOMNode:function(e){return ze.current||e},onPopupVisibleChange:bt,onPopupMouseEnter:function(){xt({})}},qe?o.cloneElement(qe,{ref:Xe}):o.createElement(L,(0,a.Z)({},e,{domRef:ze,prefixCls:m,inputElement:Ve,ref:Pe,id:r,prefix:re,showSearch:je,autoClearSearchValue:J,mode:$,activeDescendantId:q,tagRender:S,values:I,open:nt,onToggleOpen:it,activeValue:F,searchValue:Ke,onSearch:ut,onSearchSubmit:function(e){e&&e.trim()&&ee(e,{source:"submit"})},onRemove:function(e){var t=I.filter((function(t){return t!==e}));j(t,{type:"remove",values:[e]})},tokenWithEnter:at,onInputBlur:function(){gt.current=!1}})));return Et=qe?Zt:o.createElement("div",(0,a.Z)({className:Mt},Ne,{ref:Ae,onMouseDown:function(e){var t,n=e.target,o=null===(t=Te.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout((function(){var e,t=vt.indexOf(r);-1!==t&&vt.splice(t,1),Fe(),Oe||o.contains(document.activeElement)||null===(e=Pe.current)||void 0===e||e.focus()}));vt.push(r)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l=0;c-=1){var s=i[c];if(!s.disabled){i.splice(c,1),a=s;break}}a&&j(i,{type:"remove",values:[a]})}for(var u=arguments.length,d=new Array(u>1?u-1:0),f=1;f1?t-1:0),o=1;o=E}),[p,E,null==Z?void 0:Z.size]),H=function(e){e.preventDefault()},W=function(e){var t;null===(t=B.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},F=o.useCallback((function(e){return"combobox"!==m&&Z.has(e)}),[m,(0,l.Z)(Z).toString(),Z.size]),V=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=R.length,o=0;o1&&void 0!==arguments[1]&&arguments[1];_(e);var n={source:t?"keyboard":"mouse"},o=R[e];o?I(o.value,e,n):I(null,-1,n)};(0,o.useEffect)((function(){U(!1!==j?V(0):-1)}),[R.length,g]);var Y=o.useCallback((function(e){return"combobox"===m?String(e).toLowerCase()===g.toLowerCase():Z.has(e)}),[m,g,(0,l.Z)(Z).toString(),Z.size]);(0,o.useEffect)((function(){var e,t=setTimeout((function(){if(!p&&f&&1===Z.size){var e=Array.from(Z)[0],t=R.findIndex((function(t){var n=t.data;return g?String(n.value).startsWith(g):n.value===e}));-1!==t&&(U(t),W(t))}}));f&&(null===(e=B.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[f,g]);var J=function(e){void 0!==e&&N(e,{selected:!Z.has(e)}),p||h(!1)};if(o.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case w.Z.N:case w.Z.P:case w.Z.UP:case w.Z.DOWN:var o=0;if(t===w.Z.UP?o=-1:t===w.Z.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===w.Z.N?o=1:t===w.Z.P&&(o=-1)),0!==o){var r=V(Q+o,o);W(r),U(r,!0)}break;case w.Z.TAB:case w.Z.ENTER:var i,a=R[Q];!a||null!=a&&null!==(i=a.data)&&void 0!==i&&i.disabled||D?J(void 0):J(a.value),f&&e.preventDefault();break;case w.Z.ESC:h(!1),f&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){W(e)}}})),0===R.length)return o.createElement("div",{role:"listbox",id:"".concat(s,"_list"),className:"".concat(L,"-empty"),onMouseDown:H},v);var ee=Object.keys(O).map((function(e){return O[e]})),te=function(e){return e.label};function ne(e,t){return{role:e.group?"presentation":"option",id:"".concat(s,"_list_").concat(t)}}var oe=function(e){var t=R[e];if(!t)return null;var n=t.data||{},r=n.value,i=t.group,l=(0,C.Z)(n,!0),c=te(t);return t?o.createElement("div",(0,a.Z)({"aria-label":"string"!=typeof c||i?null:c},l,{key:e},ne(t,e),{"aria-selected":Y(r)}),r):null},se={role:"listbox",id:"".concat(s,"_list")};return o.createElement(o.Fragment,null,$&&o.createElement("div",(0,a.Z)({},se,{style:{height:0,width:0,overflow:"hidden"}}),oe(Q-1),oe(Q),oe(Q+1)),o.createElement(ae.Z,{itemKey:"key",ref:B,data:R,height:z,itemHeight:T,fullHeight:!1,onMouseDown:H,onScroll:x,virtual:$,direction:A,innerProps:$?null:se},(function(e,t){var n=e.group,r=e.groupOption,l=e.data,s=e.label,u=e.value,f=l.key;if(n){var p,m=null!==(p=l.title)&&void 0!==p?p:ce(s)?s.toString():void 0;return o.createElement("div",{className:i()(L,"".concat(L,"-group"),l.className),title:m},void 0!==s?s:f)}var g=l.disabled,h=l.title,v=(l.children,l.style),y=l.className,x=(0,d.Z)(l,le),w=(0,ie.Z)(x,ee),S=F(u),E=g||!S&&D,k="".concat(L,"-option"),I=i()(L,k,y,(0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)({},"".concat(k,"-grouped"),r),"".concat(k,"-active"),Q===t&&!E),"".concat(k,"-disabled"),E),"".concat(k,"-selected"),S)),j=te(e),N=!M||"function"==typeof M||S,Z="number"==typeof j?j:j||u,O=ce(Z)?Z.toString():void 0;return void 0!==h&&(O=h),o.createElement("div",(0,a.Z)({},(0,C.Z)(w),$?{}:ne(e,t),{"aria-selected":Y(u),className:I,title:O,onMouseMove:function(){Q===t||E||U(t)},onClick:function(){E||J(u)},style:v}),o.createElement("div",{className:"".concat(k,"-content")},"function"==typeof P?P(e,{index:t}):Z),o.isValidElement(M)||S,N&&o.createElement(b,{className:"".concat(L,"-option-state"),customizeIcon:M,customizeIconProps:{value:u,disabled:E,isSelected:S}},S?"✓":null))})))};var ue=o.forwardRef(se);function de(e,t){return N(e).join("").toUpperCase().includes(t)}var fe=n(47273),pe=0,me=(0,fe.Z)();function ge(e){var t=o.useState(),n=(0,u.Z)(t,2),r=n[0],i=n[1];return o.useEffect((function(){var e;i("rc_select_".concat((me?(e=pe,pe+=1):e="TEST_OR_SSR",e)))}),[]),e||r}var he=n(11592),ve=["children","value"],be=["children"];function ye(e){var t=e,n=t.key,o=t.props,r=o.children,i=o.value,a=(0,d.Z)(o,ve);return(0,s.Z)({key:n,value:void 0!==i?i:n,children:r},a)}function xe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,he.Z)(e).map((function(e,n){if(!o.isValidElement(e)||!e.type)return null;var r=e,i=r.type.isSelectOptGroup,a=r.key,l=r.props,c=l.children,u=(0,d.Z)(l,be);return t||!i?ye(e):(0,s.Z)((0,s.Z)({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},u),{},{options:xe(c)})})).filter((function(e){return e}))}var we=function(e,t,n,r,i){return o.useMemo((function(){var o=e;!e&&(o=xe(t));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s0?e(t.options):t.options}):t}))},Le=o.useMemo((function(){return j?Pe(Te):Te}),[Te,j,ce]),Re=o.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=V(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;function u(e,t){Array.isArray(e)&&e.forEach((function(e){if(t||!(c in e)){var n=e[l];r.push({key:F(e,r.length),groupOption:t,data:e,label:e[a],value:n})}else{var i=e[s];void 0===i&&o&&(i=e.label),r.push({key:F(e,r.length),group:!0,data:e,label:i}),u(e[c],!0)}}))}return u(e,!1),r}(Le,{fieldNames:ie,childrenAsData:oe})}),[Le,ie,oe]),Be=function(e){var t=ve(e);if(ke(t),_&&(t.length!==Me.length||t.some((function(e,t){var n;return(null===(n=Me[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=Q?t:t.map((function(e){return e.value})),o=t.map((function(e){return q(Ze(e.value))}));_(ne?n:n[0],ne?o:o[0])}},De=o.useState(null),He=(0,u.Z)(De,2),We=He[0],Fe=He[1],Ke=o.useState(0),Ve=(0,u.Z)(Ke,2),qe=Ve[0],Xe=Ve[1],Ge=void 0!==z?z:"combobox"!==r,Qe=o.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.source,i=void 0===o?"keyboard":o;Xe(t),g&&"combobox"===r&&null!==e&&"keyboard"===i&&Fe(String(e))}),[g,r]),_e=function(e,t,n){var o=function(){var t,n=Ze(e);return[Q?{label:null==n?void 0:n[ie.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,q(n)]};if(t&&C){var r=o(),i=(0,u.Z)(r,2),a=i[0],l=i[1];C(a,l)}else if(!t&&S&&"clear"!==n){var c=o(),s=(0,u.Z)(c,2),d=s[0],f=s[1];S(d,f)}},Ue=Ce((function(e,t){var n,o=!ne||t.selected;n=o?ne?[].concat((0,l.Z)(Me),[e]):[e]:Me.filter((function(t){return t.value!==e})),Be(n),_e(e,o),"combobox"===r?Fe(""):U&&!w||(se(""),Fe(""))})),Ye=o.useMemo((function(){var e=!1!==P&&!1!==k;return(0,s.Z)((0,s.Z)({},fe),{},{flattenOptions:Re,onActiveValue:Qe,defaultActiveFirstOption:Ge,onSelect:Ue,menuItemSelectedIcon:T,rawValues:$e,fieldNames:ie,virtual:e,direction:L,listHeight:B,listItemHeight:H,childrenAsData:oe,maxCount:Y,optionRender:$})}),[Y,fe,Re,Qe,Ge,Ue,T,$e,ie,P,k,L,B,H,oe,$]);return o.createElement(X.Provider,{value:Ye},o.createElement(J,(0,a.Z)({},ee,{id:te,prefixCls:m,ref:t,omitDomProps:Ee,mode:r,displayValues:Oe,onDisplayValuesChange:function(e,t){Be(e);var n=t.type,o=t.values;"remove"!==n&&"clear"!==n||o.forEach((function(e){_e(e.value,!1,n)}))},direction:L,searchValue:ce,onSearch:function(e,t){if(se(e),Fe(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&Be(e),null==y||y(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat((0,l.Z)($e),[n])));Be(o),_e(n,!0),se("")}}},autoClearSearchValue:w,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=me.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,l.Z)($e),(0,l.Z)(t))));Be(n),n.forEach((function(e){_e(e,!0)}))},dropdownMatchSelectWidth:k,OptionList:ue,emptyOptions:!Re.length,activeValue:We,activeDescendantId:"".concat(te,"_list_").concat(qe)})))}));var Ie=ke;Ie.Option=oe,Ie.OptGroup=te;var je=Ie,Ne=n(75030),Me=n(86641),Ze=n(45915),Oe=n(82855),$e=n(48755),Ae=n(38406),ze=n(2171),Te=n(83397),Pe=n(31756),Le=n(56553),Re=n(24971),Be=n(70045),De=n(57700);var He=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},We=n(63356),Fe=n(56119),Ke=n(16931),Ve=n(51636),qe=n(46e3),Xe=n(93873);const Ge=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}};var Qe=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,c=`${o}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,We.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${r}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:qe.fJ},[`\n ${r}${l}topLeft,\n ${i}${l}topLeft,\n ${r}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:qe.Qt},[`${a}${l}bottomLeft`]:{animationName:qe.Uw},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:qe.ly},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},Ge(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},We.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ge(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,qe.oN)(e,"slide-up"),(0,qe.oN)(e,"slide-down"),(0,Xe.Fm)(e,"move-up"),(0,Xe.Fm)(e,"move-down")]},_e=n(26743),Ue=n(66604);function Ye(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal();return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},(0,We.Wf)(e,!0)),{display:"flex",borderRadius:r,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:(0,Ue.bf)(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{display:"block",padding:0,lineHeight:(0,Ue.bf)(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-search,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Ue.bf)(o)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:(0,Ue.bf)(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Ue.bf)(o)}`,"&:after":{display:"none"}}}}}}}function Je(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Ye(e),Ye((0,Ve.IX)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${(0,Ue.bf)(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Ye((0,Ve.IX)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const et=(e,t)=>{const{componentCls:n,antCls:o,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${(0,Ue.bf)(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${(0,Ue.bf)(r)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},tt=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},et(e,t))}),nt=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},et(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),tt(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),tt(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,Ue.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),ot=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${(0,Ue.bf)(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},rt=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ot(e,t))}),it=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ot(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),rt(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),rt(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${(0,Ue.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),at=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${(0,Ue.bf)(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,Ue.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),lt=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${(0,Ue.bf)(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},ct=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},lt(e,t))}),st=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},lt(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),ct(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),ct(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,Ue.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})});var ut=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},nt(e)),it(e)),at(e)),st(e))});const dt=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ft=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},pt=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},(0,We.Wf)(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},dt(e)),ft(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},We.vS),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},We.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},(0,We.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},mt=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},pt(e),Je(e),(0,_e.ZP)(e),Qe(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,Fe.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var gt=(0,Ke.I$)("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=(0,Ve.IX)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[mt(o),ut(o)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeight:r,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:h,colorTextDisabled:v,colorPrimaryHover:b,colorPrimary:y,controlOutline:x}=e,w=2*l,C=2*o,S=Math.min(r-w,r-C),E=Math.min(i-w,i-C),k=Math.min(a-w,a-C);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(r-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:E,multipleItemHeightLG:k,multipleSelectorBgDisabled:h,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:x,selectAffixPadding:l}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),ht=n(68525);var vt=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,bordered:a,className:l,rootClassName:c,getPopupContainer:s,popupClassName:u,dropdownClassName:d,listHeight:f=256,placement:p,listItemHeight:m,size:g,disabled:h,notFoundContent:v,status:b,builtinPlacements:y,dropdownMatchSelectWidth:x,popupMatchSelectWidth:w,direction:C,style:S,allowClear:E,variant:k,dropdownStyle:I,transitionName:j,tagRender:N,maxCount:M,prefix:Z}=e,O=vt(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:$,getPrefixCls:A,renderEmpty:z,direction:T,virtual:P,popupMatchSelectWidth:L,popupOverflow:R}=o.useContext($e.E_),B=(0,$e.dj)("select"),[,D]=(0,De.ZP)(),H=null!=m?m:null==D?void 0:D.controlHeight,W=A("select",r),F=A(),K=null!=C?C:T,{compactSize:V,compactItemClassnames:q}=(0,Be.ri)(W,K),[X,G]=(0,Re.Z)("select",k,a),Q=(0,Te.Z)(W),[_,U,Y]=gt(W,Q),J=o.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===bt?"combobox":t}),[e.mode]),ee="multiple"===J||"tags"===J,te=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ne=null!==(n=null!=w?w:x)&&void 0!==n?n:L,{status:oe,hasFeedback:re,isFormItemInput:ae,feedbackIcon:le}=o.useContext(Le.aM),ce=(0,Oe.F)(oe,b);let se;se=void 0!==v?v:"combobox"===J?null:(null==z?void 0:z("Select"))||o.createElement(Ae.Z,{componentName:"Select"});const{suffixIcon:ue,itemIcon:de,removeIcon:fe,clearIcon:pe}=(0,ht.Z)(Object.assign(Object.assign({},O),{multiple:ee,hasFeedback:re,feedbackIcon:le,showSuffixIcon:te,prefixCls:W,componentName:"Select"})),me=!0===E?{clearIcon:pe}:E,ge=(0,ie.Z)(O,["suffixIcon","itemIcon"]),he=i()(u||d,{[`${W}-dropdown-${K}`]:"rtl"===K},c,Y,Q,U),ve=(0,Pe.Z)((e=>{var t;return null!==(t=null!=g?g:V)&&void 0!==t?t:e})),be=o.useContext(ze.Z),ye=null!=h?h:be,xe=i()({[`${W}-lg`]:"large"===ve,[`${W}-sm`]:"small"===ve,[`${W}-rtl`]:"rtl"===K,[`${W}-${X}`]:G,[`${W}-in-form-item`]:ae},(0,Oe.Z)(W,ce,re),q,B.className,l,c,Y,Q,U),we=o.useMemo((()=>void 0!==p?p:"rtl"===K?"bottomRight":"bottomLeft"),[p,K]);const[Ce]=(0,Ne.Cn)("SelectLike",null==I?void 0:I.zIndex);return _(o.createElement(je,Object.assign({ref:t,virtual:P,showSearch:B.showSearch},ge,{style:Object.assign(Object.assign({},B.style),S),dropdownMatchSelectWidth:ne,transitionName:(0,Me.m)(F,"slide-up",j),builtinPlacements:He(y,R),listHeight:f,listItemHeight:H,mode:J,prefixCls:W,placement:we,direction:K,prefix:Z,suffixIcon:ue,menuItemSelectedIcon:de,removeIcon:fe,allowClear:me,notFoundContent:se,className:xe,getPopupContainer:s||$,dropdownClassName:he,disabled:ye,dropdownStyle:Object.assign(Object.assign({},I),{zIndex:Ce}),maxCount:ee?M:void 0,tagRender:ee?N:void 0})))};const xt=o.forwardRef(yt),wt=(0,Ze.Z)(xt,"dropdownAlign");xt.SECRET_COMBOBOX_MODE_DO_NOT_USE=bt,xt.Option=oe,xt.OptGroup=te,xt._InternalPanelDoNotUseOrYouWillBeFired=wt;var Ct=xt},26743:function(e,t,n){n.d(t,{_z:function(){return l},gp:function(){return a}});var o=n(66604),r=n(63356),i=n(51636);const a=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(i).equal(),0),itemHeight:(0,o.bf)(t),itemLineHeight:(0,o.bf)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},l=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:o,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:l,multipleItemBorderColorDisabled:c,colorIcon:s,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:o,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:l,borderColor:c,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,r.Ro)()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},c=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,c=e.multipleSelectItemHeight,s=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:o}=e;return e.calc(n).sub(t).div(2).sub(o).equal()})(e),u=t?`${n}-${t}`:"",d=a(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},l(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:d.basePadding,paddingBlock:d.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,o.bf)(r)} 0`,lineHeight:(0,o.bf)(c),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:d.itemHeight,lineHeight:(0,o.bf)(d.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,o.bf)(c),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal()},[`${i}-item + ${i}-item,\n ${n}-prefix + ${n}-selection-wrap\n `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:d.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s).equal(),"\n &-input,\n &-mirror\n ":{height:c,fontFamily:e.fontFamily,lineHeight:(0,o.bf)(c),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function s(e,t){const{componentCls:n}=e,o={[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[c(e,t),o]}t.ZP=e=>{const{componentCls:t}=e,n=(0,i.IX)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=(0,i.IX)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[s(e),s(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},s(o,"lg")]}},68525:function(e,t,n){n.d(t,{Z:function(){return u}});var o=n(59301),r=n(40001),i=n(19248),a=n(99267),l=n(84105),c=n(58617),s=n(47472);function u(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:u,removeIcon:d,loading:f,multiple:p,hasFeedback:m,prefixCls:g,showSuffixIcon:h,feedbackIcon:v,showArrow:b,componentName:y}=e;const x=null!=n?n:o.createElement(i.Z,null),w=e=>null!==t||m||b?o.createElement(o.Fragment,null,!1!==h&&e,m&&v):null;let C=null;if(void 0!==t)C=w(t);else if(f)C=w(o.createElement(c.Z,{spin:!0}));else{const e=`${g}-suffix`;C=t=>{let{open:n,showSearch:r}=t;return w(n&&r?o.createElement(s.Z,{className:e}):o.createElement(l.Z,{className:e}))}}let S=null;S=void 0!==u?u:p?o.createElement(r.Z,null):null;let E=null;return E=void 0!==d?d:o.createElement(a.Z,null),{clearIcon:x,suffixIcon:C,itemIcon:S,removeIcon:E}}},77736:function(e,t,n){n.d(t,{Z:function(){return v}});var o=n(59301),r=n(92310),i=n.n(r),a=n(11592);function l(e){return["small","middle","large"].includes(e)}function c(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}var s=n(48755),u=n(70045);const d=o.createContext({latestIndex:0}),f=d.Provider;var p=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:l}=o.useContext(d);return null==r?null:o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:a},r),n{var n;const{getPrefixCls:r,direction:u,size:d,className:h,style:v,classNames:b,styles:y}=(0,s.dj)("space"),{size:x=(null!=d?d:"small"),align:w,className:C,rootClassName:S,children:E,direction:k="horizontal",prefixCls:I,split:j,style:N,wrap:M=!1,classNames:Z,styles:O}=e,$=g(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[A,z]=Array.isArray(x)?x:[x,x],T=l(z),P=l(A),L=c(z),R=c(A),B=(0,a.Z)(E,{keepEmpty:!0}),D=void 0===w&&"horizontal"===k?"center":w,H=r("space",I),[W,F,K]=(0,m.Z)(H),V=i()(H,h,F,`${H}-${k}`,{[`${H}-rtl`]:"rtl"===u,[`${H}-align-${D}`]:D,[`${H}-gap-row-${z}`]:T,[`${H}-gap-col-${A}`]:P},C,S,K),q=i()(`${H}-item`,null!==(n=null==Z?void 0:Z.item)&&void 0!==n?n:b.item);let X=0;const G=B.map(((e,t)=>{var n;null!=e&&(X=t);const r=(null==e?void 0:e.key)||`${q}-${t}`;return o.createElement(p,{className:q,key:r,index:t,split:j,style:null!==(n=null==O?void 0:O.item)&&void 0!==n?n:y.item},e)})),Q=o.useMemo((()=>({latestIndex:X})),[X]);if(0===B.length)return null;const _={};return M&&(_.flexWrap="wrap"),!P&&R&&(_.columnGap=A),!T&&L&&(_.rowGap=z),W(o.createElement("div",Object.assign({ref:t,className:V,style:Object.assign(Object.assign(Object.assign({},_),v),N)},$),o.createElement(f,{value:Q},G)))}));h.Compact=u.ZP;var v=h},34961:function(e,t){t.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},93873:function(e,t,n){n.d(t,{Fm:function(){return f}});var o=n(66604),r=n(48746);const i=new o.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new o.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),l=new o.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),c=new o.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),s=new o.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new o.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d={"move-up":{inKeyframes:new o.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new o.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:i,outKeyframes:a},"move-left":{inKeyframes:l,outKeyframes:c},"move-right":{inKeyframes:s,outKeyframes:u}},f=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=d[t];return[(0,r.R)(o,i,a,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},46e3:function(e,t,n){n.d(t,{Qt:function(){return l},Uw:function(){return a},fJ:function(){return i},ly:function(){return c},oN:function(){return m}});var o=n(66604),r=n(48746);const i=new o.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new o.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new o.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),c=new o.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),s=new o.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),u=new o.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),d=new o.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),f=new o.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),p={"slide-up":{inKeyframes:i,outKeyframes:a},"slide-down":{inKeyframes:l,outKeyframes:c},"slide-left":{inKeyframes:s,outKeyframes:u},"slide-right":{inKeyframes:d,outKeyframes:f}},m=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=p[t];return[(0,r.R)(o,i,a,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},37645:function(e,t,n){n.d(t,{ZP:function(){return c},qN:function(){return i},wZ:function(){return a}});var o=n(66604),r=n(36305);const i=8;function a(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?i:o}}function l(e,t){return e?t:{}}function c(e,t,n){const{componentCls:i,boxShadowPopoverArrow:a,arrowOffsetVertical:c,arrowOffsetHorizontal:s}=e,{arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[i]:Object.assign(Object.assign(Object.assign(Object.assign({[`${i}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,r.W)(e,t,a)),{"&:before":{background:t}})]},l(!!d.top,{[[`&-placement-top > ${i}-arrow`,`&-placement-topLeft > ${i}-arrow`,`&-placement-topRight > ${i}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,o.bf)(s)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),l(!!d.bottom,{[[`&-placement-bottom > ${i}-arrow`,`&-placement-bottomLeft > ${i}-arrow`,`&-placement-bottomRight > ${i}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,o.bf)(s)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),l(!!d.left,{[[`&-placement-left > ${i}-arrow`,`&-placement-leftTop > ${i}-arrow`,`&-placement-leftBottom > ${i}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${i}-arrow`]:{top:c},[`&-placement-leftBottom > ${i}-arrow`]:{bottom:c}})),l(!!d.right,{[[`&-placement-right > ${i}-arrow`,`&-placement-rightTop > ${i}-arrow`,`&-placement-rightBottom > ${i}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${i}-arrow`]:{top:c},[`&-placement-rightBottom > ${i}-arrow`]:{bottom:c}}))}}},36305:function(e,t,n){n.d(t,{W:function(){return i},w:function(){return r}});var o=n(66604);function r(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,r=t/2,i=r,a=1*o/Math.sqrt(2),l=r-o*(1-1/Math.sqrt(2)),c=r-n*(1/Math.sqrt(2)),s=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*r-c,d=s,f=2*r-a,p=l,m=2*r-0,g=i,h=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),v=o*(Math.sqrt(2)-1);return{arrowShadowWidth:h,arrowPath:`path('M 0 ${i} A ${o} ${o} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${o} ${o} 0 0 0 ${m} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*r-v}px 100%, ${v}px 100%)`}}const i=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:l,borderRadiusXS:c,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,o.bf)(c)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}}},80480:function(e,t,n){n.d(t,{Z:function(){return di}});var o=n(59301),r={},i="rc-table-internal-hook",a=n(50298),l=n(6089),c=n(34280),s=n(13697),u=n(4676);function d(e){var t=o.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,r=e.children,i=o.useRef(n);i.current=n;var l=o.useState((function(){return{getValue:function(){return i.current},listeners:new Set}})),s=(0,a.Z)(l,1)[0];return(0,c.Z)((function(){(0,u.unstable_batchedUpdates)((function(){s.listeners.forEach((function(e){e(n)}))}))}),[n]),o.createElement(t.Provider,{value:s},r)},defaultValue:e}}function f(e,t){var n=(0,l.Z)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),r=o.useContext(null==e?void 0:e.Context),i=r||{},u=i.listeners,d=i.getValue,f=o.useRef();f.current=n(r?d():null==e?void 0:e.defaultValue);var p=o.useState({}),m=(0,a.Z)(p,2)[1];return(0,c.Z)((function(){if(r)return u.add(e),function(){u.delete(e)};function e(e){var t=n(e);(0,s.Z)(f.current,t,!0)||m({})}}),[r]),f.current}var p=n(14809),m=n(8654);function g(){var e=o.createContext(null);function t(){return o.useContext(e)}return{makeImmutable:function(n,r){var i=(0,m.Yr)(n),a=function(a,l){var c=i?{ref:l}:{},s=o.useRef(0),u=o.useRef(a);return null!==t()?o.createElement(n,(0,p.Z)({},a,c)):(r&&!r(u.current,a)||(s.current+=1),u.current=a,o.createElement(e.Provider,{value:s.current},o.createElement(n,(0,p.Z)({},a,c))))};return i?o.forwardRef(a):a},responseImmutable:function(e,n){var r=(0,m.Yr)(e),i=function(n,i){var a=r?{ref:i}:{};return t(),o.createElement(e,(0,p.Z)({},n,a))};return r?o.memo(o.forwardRef(i),n):o.memo(i,n)},useImmutableMark:t}}var h=g(),v=(h.makeImmutable,h.responseImmutable,h.useImmutableMark,g()),b=v.makeImmutable,y=v.responseImmutable,x=v.useImmutableMark,w=d();var C=n(93664),S=n(20439),E=n(4635),k=n(92310),I=n.n(k),j=n(80547),N=n(97938),M=n(48736),Z=o.createContext({renderWithProps:!1});function O(e){var t=[],n={};return e.forEach((function(e){for(var o,r=e||{},i=r.key,a=r.dataIndex,l=i||(o=a,null==o?[]:Array.isArray(o)?o:[o]).join("-")||"RC_TABLE_KEY";n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)})),t}function $(e){return null!=e}function A(e,t,n,r,i,l){var c=o.useContext(Z),u=x();return(0,j.Z)((function(){if($(r))return[r];var a,l=null==t||""===t?[]:Array.isArray(t)?t:[t],s=(0,N.Z)(e,l),u=s,d=void 0;if(i){var f=i(s,e,n);!(a=f)||"object"!==(0,C.Z)(a)||Array.isArray(a)||o.isValidElement(a)?u=f:(u=f.children,d=f.props,c.renderWithProps=!0)}return[u,d]}),[u,e,r,t,i,n],(function(e,t){if(l){var n=(0,a.Z)(e,2)[1],o=(0,a.Z)(t,2)[1];return l(o,n)}return!!c.renderWithProps||!(0,s.Z)(e,t,!0)}))}var z=n(70425);function T(e){var t,n,r,i,l,c,s,u;var d=e.component,m=e.children,g=e.ellipsis,h=e.scope,v=e.prefixCls,b=e.className,y=e.align,x=e.record,k=e.render,j=e.dataIndex,N=e.renderIndex,M=e.shouldCellUpdate,Z=e.index,O=e.rowType,$=e.colSpan,T=e.rowSpan,P=e.fixLeft,L=e.fixRight,R=e.firstFixLeft,B=e.lastFixLeft,D=e.firstFixRight,H=e.lastFixRight,W=e.appendNode,F=e.additionalProps,K=void 0===F?{}:F,V=e.isSticky,q="".concat(v,"-cell"),X=f(w,["supportSticky","allColumnsFixedLeft","rowHoverable"]),G=X.supportSticky,Q=X.allColumnsFixedLeft,_=X.rowHoverable,U=A(x,j,N,m,k,M),Y=(0,a.Z)(U,2),J=Y[0],ee=Y[1],te={},ne="number"==typeof P&&G,oe="number"==typeof L&&G;ne&&(te.position="sticky",te.left=P),oe&&(te.position="sticky",te.right=L);var re=null!==(t=null!==(n=null!==(r=null==ee?void 0:ee.colSpan)&&void 0!==r?r:K.colSpan)&&void 0!==n?n:$)&&void 0!==t?t:1,ie=null!==(i=null!==(l=null!==(c=null==ee?void 0:ee.rowSpan)&&void 0!==c?c:K.rowSpan)&&void 0!==l?l:T)&&void 0!==i?i:1,ae=function(e,t){return f(w,(function(n){var o,r,i,a;return[(o=e,r=t||1,i=n.hoverStartRow,a=n.hoverEndRow,o<=a&&o+r-1>=i),n.onHover]}))}(Z,ie),le=(0,a.Z)(ae,2),ce=le[0],se=le[1],ue=(0,z.zX)((function(e){var t;x&&se(Z,Z+ie-1),null==K||null===(t=K.onMouseEnter)||void 0===t||t.call(K,e)})),de=(0,z.zX)((function(e){var t;x&&se(-1,-1),null==K||null===(t=K.onMouseLeave)||void 0===t||t.call(K,e)}));if(0===re||0===ie)return null;var fe=null!==(s=K.title)&&void 0!==s?s:function(e){var t,n=e.ellipsis,r=e.rowType,i=e.children,a=!0===n?{showTitle:!0}:n;return a&&(a.showTitle||"header"===r)&&("string"==typeof i||"number"==typeof i?t=i.toString():o.isValidElement(i)&&"string"==typeof i.props.children&&(t=i.props.children)),t}({rowType:O,ellipsis:g,children:J}),pe=I()(q,b,(u={},(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)(u,"".concat(q,"-fix-left"),ne&&G),"".concat(q,"-fix-left-first"),R&&G),"".concat(q,"-fix-left-last"),B&&G),"".concat(q,"-fix-left-all"),B&&Q&&G),"".concat(q,"-fix-right"),oe&&G),"".concat(q,"-fix-right-first"),D&&G),"".concat(q,"-fix-right-last"),H&&G),"".concat(q,"-ellipsis"),g),"".concat(q,"-with-append"),W),"".concat(q,"-fix-sticky"),(ne||oe)&&V&&G),(0,E.Z)(u,"".concat(q,"-row-hover"),!ee&&ce)),K.className,null==ee?void 0:ee.className),me={};y&&(me.textAlign=y);var ge=(0,S.Z)((0,S.Z)((0,S.Z)((0,S.Z)({},null==ee?void 0:ee.style),te),me),K.style),he=J;return"object"!==(0,C.Z)(he)||Array.isArray(he)||o.isValidElement(he)||(he=null),g&&(B||D)&&(he=o.createElement("span",{className:"".concat(q,"-content")},he)),o.createElement(d,(0,p.Z)({},ee,K,{className:pe,style:ge,title:fe,scope:h,onMouseEnter:_?ue:void 0,onMouseLeave:_?de:void 0,colSpan:1!==re?re:null,rowSpan:1!==ie?ie:null}),W,he)}var P=o.memo(T);function L(e,t,n,o,r){var i,a,l=n[e]||{},c=n[t]||{};"left"===l.fixed?i=o.left["rtl"===r?t:e]:"right"===c.fixed&&(a=o.right["rtl"===r?e:t]);var s=!1,u=!1,d=!1,f=!1,p=n[t+1],m=n[e-1],g=p&&!p.fixed||m&&!m.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===r){if(void 0!==i)f=!(m&&"left"===m.fixed)&&g;else if(void 0!==a){d=!(p&&"right"===p.fixed)&&g}}else if(void 0!==i){s=!(p&&"left"===p.fixed)&&g}else if(void 0!==a){u=!(m&&"right"===m.fixed)&&g}return{fixLeft:i,fixRight:a,lastFixLeft:s,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:o.isSticky}}var R=o.createContext({});var B=n(62646),D=["children"];function H(e){return e.children}H.Row=function(e){var t=e.children,n=(0,B.Z)(e,D);return o.createElement("tr",n,t)},H.Cell=function(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,a=void 0===i?1:i,l=e.rowSpan,c=e.align,s=f(w,["prefixCls","direction"]),u=s.prefixCls,d=s.direction,m=o.useContext(R),g=m.scrollColumnIndex,h=m.stickyOffsets,v=n+a-1+1===g?a+1:a,b=L(n,n+v-1,m.flattenColumns,h,d);return o.createElement(P,(0,p.Z)({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:c,colSpan:v,rowSpan:l,render:function(){return r}},b))};var W=H;var F=y((function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=f(w,"prefixCls"),a=r.length-1,l=r[a],c=o.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=l&&l.scrollbar?a:null}}),[l,r,a,n]);return o.createElement(R.Provider,{value:c},o.createElement("tfoot",{className:"".concat(i,"-summary")},t))})),K=W,V=n(29301),q=n(47273),X=function(e){if((0,q.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function G(e,t){return Array.isArray(e)||void 0===t?X(e):function(e,t){if(!X(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o}(e,t)}var Q=n(75152),_=n(26112);function U(e,t,n,o,r,i,a){e.push({record:t,indent:n,index:a});var l=i(t),c=null==r?void 0:r.has(l);if(t&&Array.isArray(t[o])&&c)for(var s=0;s1?n-1:0),r=1;r=1)),style:(0,S.Z)((0,S.Z)({},n),null==y?void 0:y.style)}),h.map((function(e,t){var n=e.render,l=e.dataIndex,c=e.className,u=oe(m,e,t,s,i),h=u.key,v=u.fixedInfo,b=u.appendCellNode,y=u.additionalCellProps;return o.createElement(P,(0,p.Z)({className:c,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?f:d,prefixCls:g,key:h,record:r,index:i,renderIndex:a,dataIndex:l,render:n,shouldCellUpdate:e.shouldCellUpdate},v,{appendNode:b,additionalProps:y}))})));if(w&&(C.current||x)){var M=b(r,i,s+1,x);k=o.createElement(ee,{expanded:x,className:I()("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(s+1),j),prefixCls:g,component:u,cellComponent:d,colSpan:h.length,isEmpty:!1},M)}return o.createElement(o.Fragment,null,N,k)}));function ie(e){var t=e.columnKey,n=e.onColumnResize,r=o.useRef();return(0,c.Z)((function(){r.current&&n(t,r.current.offsetWidth)}),[]),o.createElement(V.Z,{data:t},o.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}var ae=n(29194);function le(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,i=o.useRef(null);return o.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0},ref:i},o.createElement(V.Z.Collection,{onBatchResize:function(e){(0,ae.Z)(i.current)&&e.forEach((function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)}))}},n.map((function(e){return o.createElement(ie,{key:e,columnKey:e,onColumnResize:r})}))))}var ce=y((function(e){var t,n=e.data,r=e.measureColumnWidth,i=f(w,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=i.prefixCls,l=i.getComponent,c=i.onColumnResize,s=i.flattenColumns,u=i.getRowKey,d=i.expandedKeys,p=i.childrenColumnName,m=i.emptyNode,g=Y(n,p,d,u),h=o.useRef({renderWithProps:!1}),v=l(["body","wrapper"],"tbody"),b=l(["body","row"],"tr"),y=l(["body","cell"],"td"),x=l(["body","cell"],"th");t=n.length?g.map((function(e,t){var n=e.record,r=e.indent,i=e.index,a=u(n,t);return o.createElement(re,{key:a,rowKey:a,record:n,index:t,renderIndex:i,rowComponent:b,cellComponent:y,scopeCellComponent:x,indent:r})})):o.createElement(ee,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:b,cellComponent:y,colSpan:s.length,isEmpty:!0},m);var C=O(s);return o.createElement(Z.Provider,{value:h.current},o.createElement(v,{className:"".concat(a,"-tbody")},r&&o.createElement(le,{prefixCls:a,columnsKey:C,onColumnResize:c}),t))})),se=["expandable"],ue="RC_TABLE_INTERNAL_COL_DEFINE";var de=["columnType"];var fe=function(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=f(w,["tableLayout"]).tableLayout,a=[],l=!1,c=(r||n.length)-1;c>=0;c-=1){var s=t[c],u=n&&n[c],d=void 0,m=void 0;if(u&&(d=u[ue],"auto"===i&&(m=u.minWidth)),s||m||d||l){var g=d||{},h=(g.columnType,(0,B.Z)(g,de));a.unshift(o.createElement("col",(0,p.Z)({key:c,style:{width:s,minWidth:m}},h))),l=!0}}return o.createElement("colgroup",null,a)},pe=n(95190),me=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var ge=o.forwardRef((function(e,t){var n=e.className,r=e.noData,i=e.columns,a=e.flattenColumns,l=e.colWidths,c=e.columCount,s=e.stickyOffsets,u=e.direction,d=e.fixHeader,p=e.stickyTopOffset,g=e.stickyBottomOffset,h=e.stickyClassName,v=e.onScroll,b=e.maxContentScroll,y=e.children,x=(0,B.Z)(e,me),C=f(w,["prefixCls","scrollbarSize","isSticky","getComponent"]),k=C.prefixCls,j=C.scrollbarSize,N=C.isSticky,M=(0,C.getComponent)(["header","table"],"table"),Z=N&&!d?0:j,O=o.useRef(null),$=o.useCallback((function(e){(0,m.mH)(t,e),(0,m.mH)(O,e)}),[]);o.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,o=t.deltaX;o&&(v({currentTarget:n,scrollLeft:n.scrollLeft+o}),e.preventDefault())}return null===(e=O.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),function(){var e;null===(e=O.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var A=o.useMemo((function(){return a.every((function(e){return e.width}))}),[a]),z=a[a.length-1],T={fixed:z?z.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(k,"-cell-scrollbar")}}},P=(0,o.useMemo)((function(){return Z?[].concat((0,pe.Z)(i),[T]):i}),[Z,i]),L=(0,o.useMemo)((function(){return Z?[].concat((0,pe.Z)(a),[T]):a}),[Z,a]),R=(0,o.useMemo)((function(){var e=s.right,t=s.left;return(0,S.Z)((0,S.Z)({},s),{},{left:"rtl"===u?[].concat((0,pe.Z)(t.map((function(e){return e+Z}))),[0]):t,right:"rtl"===u?e:[].concat((0,pe.Z)(e.map((function(e){return e+Z}))),[0]),isSticky:N})}),[Z,s,N]),D=function(e,t){return(0,o.useMemo)((function(){for(var n=[],o=0;o1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:l,prefixCls:d,key:g[t]},c,{additionalProps:n,rowType:"header"}))})))};var be=y((function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,i=e.onHeaderRow,a=f(w,["prefixCls","getComponent"]),l=a.prefixCls,c=a.getComponent,s=o.useMemo((function(){return function(e){var t=[];!function e(n,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];var i=o;return n.filter(Boolean).map((function(n){var o={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,l=n.children;return l&&l.length>0&&(a=e(l,i,r+1).reduce((function(e,t){return e+t}),0),o.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(o.rowSpan=n.rowSpan),o.colSpan=a,o.colEnd=o.colStart+a-1,t[r].push(o),i+=a,a}))}(e,0);for(var n=t.length,o=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},r=0;r1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var we=["children"],Ce=["fixed"];function Se(e){return(0,ye.Z)(e).filter((function(e){return o.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,o=n.children,r=(0,B.Z)(n,we),i=(0,S.Z)({key:t},r);return o&&(i.children=Se(o)),i}))}function Ee(e){return e.filter((function(e){return e&&"object"===(0,C.Z)(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?(0,S.Z)((0,S.Z)({},e),{},{children:Ee(t)}):e}))}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===(0,C.Z)(e)})).reduce((function(e,n,o){var r=n.fixed,i=!0===r?"left":r,a="".concat(t,"-").concat(o),l=n.children;return l&&l.length>0?[].concat((0,pe.Z)(e),(0,pe.Z)(ke(l,a).map((function(e){return(0,S.Z)({fixed:i},e)})))):[].concat((0,pe.Z)(e),[(0,S.Z)((0,S.Z)({key:a},n),{},{fixed:i})])}),[])}var Ie=function(e,t){var n=e.prefixCls,i=e.columns,l=e.children,c=e.expandable,s=e.expandedKeys,u=e.columnTitle,d=e.getRowKey,f=e.onTriggerExpand,p=e.expandIcon,m=e.rowExpandable,g=e.expandIconColumnIndex,h=e.direction,v=e.expandRowByClick,b=e.columnWidth,y=e.fixed,x=e.scrollWidth,w=e.clientWidth,C=o.useMemo((function(){return Ee((i||Se(l)||[]).slice())}),[i,l]),k=o.useMemo((function(){if(c){var e=C.slice();if(!e.includes(r)){var t=g||0;t>=0&&(t||"left"===y||!y)&&e.splice(t,0,r),"right"===y&&e.splice(C.length,0,r)}0;var i=e.indexOf(r);e=e.filter((function(e,t){return e!==r||t===i}));var a,l=C[i];a=y||(l?l.fixed:null);var h=(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({},ue,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",u),"fixed",a),"className","".concat(n,"-row-expand-icon-cell")),"width",b),"render",(function(e,t,r){var i=d(t,r),a=s.has(i),l=!m||m(t),c=p({prefixCls:n,expanded:a,expandable:l,record:t,onExpand:f});return v?o.createElement("span",{onClick:function(e){return e.stopPropagation()}},c):c}));return e.map((function(e){return e===r?h:e}))}return C.filter((function(e){return e!==r}))}),[c,C,d,s,p,h]),I=o.useMemo((function(){var e=k;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,k,h]),j=o.useMemo((function(){return"rtl"===h?function(e){return e.map((function(e){var t=e.fixed,n=(0,B.Z)(e,Ce),o=t;return"left"===t?o="right":"right"===t&&(o="left"),(0,S.Z)({fixed:o},n)}))}(ke(I)):ke(I)}),[I,h,x]),N=o.useMemo((function(){for(var e=-1,t=j.length-1;t>=0;t-=1){var n=j[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var o=0;o<=e;o+=1){var r=j[o].fixed;if("left"!==r&&!0!==r)return!0}var i=j.findIndex((function(e){return"right"===e.fixed}));if(i>=0)for(var a=i;a0){var o=0,r=0;e.forEach((function(e){var n=xe(t,e.width);n?o+=n:r+=1}));var i=Math.max(t,n),a=Math.max(i-o,r),l=r,c=a/r,s=0,u=e.map((function(e){var n=(0,S.Z)({},e),o=xe(t,n.width);if(o)n.width=o;else{var r=Math.floor(c);n.width=1===l?a:r,a-=r,l-=1}return s+=n.width,n}));if(s=n-g?Z((function(e){return(0,S.Z)((0,S.Z)({},e),{},{isHiddenScrollBar:!0})})):Z((function(e){return(0,S.Z)((0,S.Z)({},e),{},{isHiddenScrollBar:!1})}))}}))},D=function(e){Z((function(t){return(0,S.Z)((0,S.Z)({},t),{},{scrollLeft:e/y*x||0})}))};return o.useImperativeHandle(t,(function(){return{setScrollLeft:D,checkScrollBarVisible:B}})),o.useEffect((function(){var e=Oe(document.body,"mouseup",L,!1),t=Oe(document.body,"mousemove",R,!1);return B(),function(){e.remove(),t.remove()}}),[C,z]),o.useEffect((function(){if(p.current){for(var e=[],t=(0,Ae.bn)(p.current);t;)e.push(t),t=t.parentElement;return e.forEach((function(e){return e.addEventListener("scroll",B,!1)})),window.addEventListener("resize",B,!1),window.addEventListener("scroll",B,!1),h.addEventListener("scroll",B,!1),function(){e.forEach((function(e){return e.removeEventListener("scroll",B)})),window.removeEventListener("resize",B),window.removeEventListener("scroll",B),h.removeEventListener("scroll",B)}}}),[h]),o.useEffect((function(){M.isHiddenScrollBar||Z((function(e){var t=p.current;return t?(0,S.Z)((0,S.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[M.isHiddenScrollBar]),y<=x||!C||M.isHiddenScrollBar?null:o.createElement("div",{style:{height:(0,Q.Z)(),width:x,bottom:g},className:"".concat(b,"-sticky-scroll")},o.createElement("div",{onMouseDown:function(e){e.persist(),O.current.delta=e.pageX-M.scrollLeft,O.current.x=0,T(!0),e.preventDefault()},ref:k,className:I()("".concat(b,"-sticky-scroll-bar"),(0,E.Z)({},"".concat(b,"-sticky-scroll-bar-active"),z)),style:{width:"".concat(C,"px"),transform:"translate3d(".concat(M.scrollLeft,"px, 0, 0)")}}))},Pe=o.forwardRef(Te);var Le=function(e){return null};var Re=function(e){return null},Be="rc-table",De=[],He={};function We(){return"No Data"}function Fe(e,t){var n=(0,S.Z)({rowKey:"key",prefixCls:Be,emptyText:We},e),r=n.prefixCls,u=n.className,d=n.rowClassName,f=n.style,m=n.data,g=n.rowKey,h=n.scroll,v=n.tableLayout,b=n.direction,y=n.title,x=n.footer,k=n.summary,M=n.caption,Z=n.id,A=n.showHeader,z=n.components,T=n.emptyText,P=n.onRow,R=n.onHeaderRow,B=n.onScroll,D=n.internalHooks,H=n.transformColumns,K=n.internalRefs,q=n.tailor,X=n.getContainerWidth,U=n.sticky,Y=n.rowHoverable,J=void 0===Y||Y,ee=m||De,te=!!ee.length,ne=D===i;var oe=o.useCallback((function(e,t){return(0,N.Z)(z,e)||t}),[z]),re=o.useMemo((function(){return"function"==typeof g?g:function(e){return e&&e[g]}}),[g]),ie=oe(["body"]),ae=function(){var e=o.useState(-1),t=(0,a.Z)(e,2),n=t[0],r=t[1],i=o.useState(-1),l=(0,a.Z)(i,2),c=l[0],s=l[1];return[n,c,o.useCallback((function(e,t){r(e),s(t)}),[])]}(),le=(0,a.Z)(ae,3),se=le[0],ue=le[1],de=le[2],pe=je(n,ee,re),me=(0,a.Z)(pe,6),ge=me[0],ve=me[1],ye=me[2],xe=me[3],we=me[4],Ce=me[5],Se=null==h?void 0:h.x,Ee=o.useState(0),ke=(0,a.Z)(Ee,2),Oe=ke[0],$e=ke[1],ze=Ie((0,S.Z)((0,S.Z)((0,S.Z)({},n),ge),{},{expandable:!!ge.expandedRowRender,columnTitle:ge.columnTitle,expandedKeys:ye,getRowKey:re,onTriggerExpand:Ce,expandIcon:xe,expandIconColumnIndex:ge.expandIconColumnIndex,direction:b,scrollWidth:ne&&q&&"number"==typeof Se?Se:null,clientWidth:Oe}),ne?H:null),Te=(0,a.Z)(ze,4),Le=Te[0],Re=Te[1],Fe=Te[2],Ke=Te[3],Ve=null!=Fe?Fe:Se,qe=o.useMemo((function(){return{columns:Le,flattenColumns:Re}}),[Le,Re]),Xe=o.useRef(),Ge=o.useRef(),Qe=o.useRef(),_e=o.useRef();o.useImperativeHandle(t,(function(){return{nativeElement:Xe.current,scrollTo:function(e){var t,n;if(Qe.current instanceof HTMLElement){var o=e.index,r=e.top,i=e.key;if("number"!=typeof(n=r)||Number.isNaN(n)){var a,l=null!=i?i:re(ee[o]);null===(a=Qe.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===a||a.scrollIntoView()}else{var c;null===(c=Qe.current)||void 0===c||c.scrollTo({top:r})}}else null!==(t=Qe.current)&&void 0!==t&&t.scrollTo&&Qe.current.scrollTo(e)}}}));var Ue,Ye,Je,et=o.useRef(),tt=o.useState(!1),nt=(0,a.Z)(tt,2),ot=nt[0],rt=nt[1],it=o.useState(!1),at=(0,a.Z)(it,2),lt=at[0],ct=at[1],st=o.useState(new Map),ut=(0,a.Z)(st,2),dt=ut[0],ft=ut[1],pt=O(Re).map((function(e){return dt.get(e)})),mt=o.useMemo((function(){return pt}),[pt.join("_")]),gt=Me(mt,Re,b),ht=h&&$(h.y),vt=h&&$(Ve)||Boolean(ge.fixed),bt=vt&&Re.some((function(e){return e.fixed})),yt=o.useRef(),xt=function(e,t){var n="object"===(0,C.Z)(e)?e:{},r=n.offsetHeader,i=void 0===r?0:r,a=n.offsetSummary,l=void 0===a?0:a,c=n.offsetScroll,s=void 0===c?0:c,u=n.getContainer,d=(void 0===u?function(){return Ne}:u)()||Ne,f=!!e;return o.useMemo((function(){return{isSticky:f,stickyClassName:f?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:l,offsetScroll:s,container:d}}),[f,s,i,l,t,d])}(U,r),wt=xt.isSticky,Ct=xt.offsetHeader,St=xt.offsetSummary,Et=xt.offsetScroll,kt=xt.stickyClassName,It=xt.container,jt=o.useMemo((function(){return null==k?void 0:k(ee)}),[k,ee]),Nt=(ht||wt)&&o.isValidElement(jt)&&jt.type===W&&jt.props.fixed;ht&&(Ye={overflowY:te?"scroll":"auto",maxHeight:h.y}),vt&&(Ue={overflowX:"auto"},ht||(Ye={overflowY:"hidden"}),Je={width:!0===Ve?"auto":Ve,minWidth:"100%"});var Mt=o.useCallback((function(e,t){ft((function(n){if(n.get(e)!==t){var o=new Map(n);return o.set(e,t),o}return n}))}),[]),Zt=function(e){var t=(0,o.useRef)(e||null),n=(0,o.useRef)();function r(){window.clearTimeout(n.current)}return(0,o.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),Ot=(0,a.Z)(Zt,2),$t=Ot[0],At=Ot[1];function zt(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var Tt=(0,l.Z)((function(e){var t,n=e.currentTarget,o=e.scrollLeft,r="rtl"===b,i="number"==typeof o?o:n.scrollLeft,a=n||He;At()&&At()!==a||($t(a),zt(i,Ge.current),zt(i,Qe.current),zt(i,et.current),zt(i,null===(t=yt.current)||void 0===t?void 0:t.setScrollLeft));var l=n||Ge.current;if(l){var c=ne&&q&&"number"==typeof Ve?Ve:l.scrollWidth,s=l.clientWidth;if(c===s)return rt(!1),void ct(!1);r?(rt(-i0)):(rt(i>0),ct(i1?y-A:0,T=(0,S.Z)((0,S.Z)((0,S.Z)({},N),u),{},{flex:"0 0 ".concat(A,"px"),width:"".concat(A,"px"),marginRight:z,pointerEvents:"auto"}),L=o.useMemo((function(){return m?$<=1:0===Z||0===$||$>1}),[$,Z,m]);L?T.visibility="hidden":m&&(T.height=null==g?void 0:g($));var R=L?function(){return null}:h,B={};return 0!==$&&0!==Z||(B.rowSpan=1,B.colSpan=1),o.createElement(P,(0,p.Z)({className:I()(b,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:l,prefixCls:t.prefixCls,key:C,record:s,index:a,renderIndex:c,dataIndex:v,render:R,shouldCellUpdate:n.shouldCellUpdate},E,{appendNode:k,additionalProps:(0,S.Z)((0,S.Z)({},j),{},{style:T},B)}))},Ye=["data","index","className","rowKey","style","extra","getHeight"],Je=o.forwardRef((function(e,t){var n,r=e.data,i=e.index,a=e.className,l=e.rowKey,c=e.style,s=e.extra,u=e.getHeight,d=(0,B.Z)(e,Ye),m=r.record,g=r.indent,h=r.index,v=f(w,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),b=v.scrollX,y=v.flattenColumns,x=v.prefixCls,C=v.fixColumn,k=v.componentWidth,j=f(Qe,["getComponent"]).getComponent,N=J(m,l,i,g),M=j(["body","row"],"div"),Z=j(["body","cell"],"div"),O=N.rowSupportExpand,$=N.expanded,A=N.rowProps,z=N.expandedRowRender,T=N.expandedRowClassName;if(O&&$){var L=z(m,i,g+1,$),R=ne(T,m,i,g),D={};C&&(D={style:(0,E.Z)({},"--virtual-width","".concat(k,"px"))});var H="".concat(x,"-expanded-row-cell");n=o.createElement(M,{className:I()("".concat(x,"-expanded-row"),"".concat(x,"-expanded-row-level-").concat(g+1),R)},o.createElement(P,{component:Z,prefixCls:x,className:I()(H,(0,E.Z)({},"".concat(H,"-fixed"),C)),additionalProps:D},L))}var W=(0,S.Z)((0,S.Z)({},c),{},{width:b});s&&(W.position="absolute",W.pointerEvents="none");var F=o.createElement(M,(0,p.Z)({},A,d,{"data-row-key":l,ref:O?null:t,className:I()(a,"".concat(x,"-row"),null==A?void 0:A.className,(0,E.Z)({},"".concat(x,"-row-extra"),s)),style:(0,S.Z)((0,S.Z)({},W),null==A?void 0:A.style)}),y.map((function(e,t){return o.createElement(Ue,{key:t,component:Z,rowInfo:N,column:e,colIndex:t,indent:g,index:i,renderIndex:h,record:m,inverse:s,getHeight:u})})));return O?o.createElement("div",{ref:t},F,n):F}));var et=y(Je),tt=o.forwardRef((function(e,t){var n=e.data,r=e.onScroll,i=f(w,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),l=i.flattenColumns,c=i.onColumnResize,s=i.getRowKey,u=i.expandedKeys,d=i.prefixCls,p=i.childrenColumnName,m=i.scrollX,g=i.direction,h=f(Qe),v=h.sticky,b=h.scrollY,y=h.listItemHeight,x=h.getComponent,S=h.onScroll,E=o.useRef(),k=Y(n,p,u,s),I=o.useMemo((function(){var e=0;return l.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[l]),j=o.useMemo((function(){return I.map((function(e){return e[2]}))}),[I]);o.useEffect((function(){I.forEach((function(e){var t=(0,a.Z)(e,2),n=t[0],o=t[1];c(n,o)}))}),[I]),o.useImperativeHandle(t,(function(){var e,t={scrollTo:function(e){var t;null===(t=E.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=E.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=E.current)||void 0===t||t.scrollTo({left:e})}}),t}));var N=function(e,t){var n,o=null===(n=k[t])||void 0===n?void 0:n.record,r=e.onCell;if(r){var i,a=r(o,t);return null!==(i=null==a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},M=o.useMemo((function(){return{columnsOffset:j}}),[j]),Z="".concat(d,"-tbody"),O=x(["body","wrapper"]),$={};return v&&($.position="sticky",$.bottom=0,"object"===(0,C.Z)(v)&&v.offsetScroll&&($.bottom=v.offsetScroll)),o.createElement(_e.Provider,{value:M},o.createElement(Ge.Z,{fullHeight:!1,ref:E,prefixCls:"".concat(Z,"-virtual"),styles:{horizontalScrollBar:$},className:Z,height:b,itemHeight:y||24,data:k,itemKey:function(e){return s(e.record)},component:O,scrollWidth:m,direction:g,onVirtualScroll:function(e){var t,n=e.x;r({currentTarget:null===(t=E.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:S,extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,i=e.offsetY;if(n<0)return null;for(var a=l.filter((function(e){return 0===N(e,t)})),c=t,u=function(e){if(!(a=a.filter((function(t){return 0===N(t,e)}))).length)return c=e,1},d=t;d>=0&&!u(d);d-=1);for(var f=l.filter((function(e){return 1!==N(e,n)})),p=n,m=function(e){if(!(f=f.filter((function(t){return 1!==N(t,e)}))).length)return p=Math.max(e-1,n),1},g=n;g1}))&&h.push(e)},b=c;b<=p;b+=1)v(b);return h.map((function(e){var t=k[e],n=s(t.record,e),a=r(n);return o.createElement(et,{key:e,data:t,rowKey:n,index:e,style:{top:-i+a.top},extra:!0,getHeight:function(t){var o=e+t-1,i=s(k[o].record,o),a=r(n,i);return a.bottom-a.top}})}))}},(function(e,t,n){var r=s(e.record,t);return o.createElement(et,{data:e,rowKey:r,index:t,style:n.style})})))}));var nt=y(tt),ot=function(e,t){var n=t.ref,r=t.onScroll;return o.createElement(nt,{ref:n,data:e,onScroll:r})};function rt(e,t){var n=e.data,r=e.columns,a=e.scroll,l=e.sticky,c=e.prefixCls,s=void 0===c?Be:c,u=e.className,d=e.listItemHeight,f=e.components,m=e.onScroll,g=a||{},h=g.x,v=g.y;"number"!=typeof h&&(h=1),"number"!=typeof v&&(v=500);var b=(0,z.zX)((function(e,t){return(0,N.Z)(f,e)||t})),y=(0,z.zX)(m),x=o.useMemo((function(){return{sticky:l,scrollY:v,listItemHeight:d,getComponent:b,onScroll:y}}),[l,v,d,b,y]);return o.createElement(Qe.Provider,{value:x},o.createElement(Xe,(0,p.Z)({},e,{className:I()(u,"".concat(s,"-virtual")),scroll:(0,S.Z)((0,S.Z)({},a),{},{x:h}),components:(0,S.Z)((0,S.Z)({},f),{},{body:null!=n&&n.length?ot:void 0}),columns:r,internalHooks:i,tailor:!0,ref:t})))}var it=o.forwardRef(rt);function at(e){return b(it,e)}at();var lt=e=>null;var ct=e=>null,st=n(84105),ut=o.createContext(null),dt=o.createContext({}),ft=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,i=e.isEnd,a="".concat(t,"-indent-unit"),l=[],c=0;c1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(s,u){for(var d,f=vt(o?o.pos:"0",u),p=bt(s[i],f),m=0;m1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,o=t.processEntity,r=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,s=i||c,u={},d={},f={posEntities:u,keyEntities:d};return n&&(f=n(f)||f),Ct(e,(function(e){var t=e.node,n=e.index,r=e.pos,i=e.key,a=e.parentPos,l=e.level,c={node:t,nodes:e.nodes,index:n,key:i,pos:r,level:l},s=bt(i,r);u[r]=c,d[s]=c,c.parent=u[a],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),o&&o(c,f)}),{externalGetKey:s,childrenPropName:a,fieldNames:l}),r&&r(f),f}function Et(e,t){var n=t.expandedKeys,o=t.selectedKeys,r=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,s=t.dropPosition,u=mt(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==o.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function kt(e){var t=e.data,n=e.expanded,o=e.selected,r=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,s=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,f=e.active,p=e.eventKey,m=(0,S.Z)((0,S.Z)({},t),{},{expanded:n,selected:o,checked:r,loaded:i,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:s,dragOverGapBottom:u,pos:d,active:f,key:p});return"props"in m||Object.defineProperty(m,"props",{get:function(){return(0,M.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}var It=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],jt="open",Nt="close",Mt=function(e){var t,n,r,i=e.eventKey,l=e.className,c=e.style,s=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.isLeaf,m=e.isStart,g=e.isEnd,h=e.expanded,v=e.selected,b=e.checked,y=e.halfChecked,x=e.loading,w=e.domRef,C=e.active,k=e.data,j=e.onMouseMove,N=e.selectable,M=(0,B.Z)(e,It),Z=o.useContext(ut),O=o.useContext(dt),$=o.useRef(null),A=o.useState(!1),z=(0,a.Z)(A,2),T=z[0],P=z[1],L=!!(Z.disabled||e.disabled||null!==(t=O.nodeDisabled)&&void 0!==t&&t.call(O,k)),R=o.useMemo((function(){return!(!Z.checkable||!1===e.checkable)&&Z.checkable}),[Z.checkable,e.checkable]),D=function(t){L||R&&!e.disableCheckbox&&Z.onNodeCheck(t,kt(e),!b)},H=o.useMemo((function(){return"boolean"==typeof N?N:Z.selectable}),[N,Z.selectable]),W=function(t){Z.onNodeClick(t,kt(e)),H?function(t){L||Z.onNodeSelect(t,kt(e))}(t):D(t)},F=function(t){Z.onNodeDoubleClick(t,kt(e))},K=function(t){Z.onNodeMouseEnter(t,kt(e))},V=function(t){Z.onNodeMouseLeave(t,kt(e))},q=function(t){Z.onNodeContextMenu(t,kt(e))},X=o.useMemo((function(){return!(!Z.draggable||Z.draggable.nodeDraggable&&!Z.draggable.nodeDraggable(k))}),[Z.draggable,k]),G=function(t){x||Z.onNodeExpand(t,kt(e))},Q=o.useMemo((function(){var e=(mt(Z.keyEntities,i)||{}).children;return Boolean((e||[]).length)}),[Z.keyEntities,i]),U=o.useMemo((function(){return!1!==f&&(f||!Z.loadData&&!Q||Z.loadData&&e.loaded&&!Q)}),[f,Z.loadData,Q,e.loaded]);o.useEffect((function(){x||"function"!=typeof Z.loadData||!h||U||e.loaded||Z.onNodeLoad(kt(e))}),[x,Z.loadData,Z.onNodeLoad,h,U,e]);var Y=o.useMemo((function(){var e;return null!==(e=Z.draggable)&&void 0!==e&&e.icon?o.createElement("span",{className:"".concat(Z.prefixCls,"-draggable-icon")},Z.draggable.icon):null}),[Z.draggable]),J=function(t){var n=e.switcherIcon||Z.switcherIcon;return"function"==typeof n?n((0,S.Z)((0,S.Z)({},e),{},{isLeaf:t})):n},ee=o.useMemo((function(){if(!R)return null;var t="boolean"!=typeof R?R:null;return o.createElement("span",{className:I()("".concat(Z.prefixCls,"-checkbox"),(0,E.Z)((0,E.Z)((0,E.Z)({},"".concat(Z.prefixCls,"-checkbox-checked"),b),"".concat(Z.prefixCls,"-checkbox-indeterminate"),!b&&y),"".concat(Z.prefixCls,"-checkbox-disabled"),L||e.disableCheckbox)),onClick:D,role:"checkbox","aria-checked":y?"mixed":b,"aria-disabled":L||e.disableCheckbox,"aria-label":"Select ".concat("string"==typeof e.title?e.title:"tree node")},t)}),[R,b,y,L,e.disableCheckbox,e.title]),te=o.useMemo((function(){return U?null:h?jt:Nt}),[U,h]),ne=o.useMemo((function(){return o.createElement("span",{className:I()("".concat(Z.prefixCls,"-iconEle"),"".concat(Z.prefixCls,"-icon__").concat(te||"docu"),(0,E.Z)({},"".concat(Z.prefixCls,"-icon_loading"),x))})}),[Z.prefixCls,te,x]),oe=o.useMemo((function(){var t=Boolean(Z.draggable);return!e.disabled&&t&&Z.dragOverNodeKey===i?Z.dropIndicatorRender({dropPosition:Z.dropPosition,dropLevelOffset:Z.dropLevelOffset,indent:Z.indent,prefixCls:Z.prefixCls,direction:Z.direction}):null}),[Z.dropPosition,Z.dropLevelOffset,Z.indent,Z.prefixCls,Z.direction,Z.draggable,Z.dragOverNodeKey,Z.dropIndicatorRender]),re=o.useMemo((function(){var t,n,r=e.title,i=void 0===r?"---":r,a="".concat(Z.prefixCls,"-node-content-wrapper");if(Z.showIcon){var l=e.icon||Z.icon;t=l?o.createElement("span",{className:I()("".concat(Z.prefixCls,"-iconEle"),"".concat(Z.prefixCls,"-icon__customize"))},"function"==typeof l?l(e):l):ne}else Z.loadData&&x&&(t=ne);return n="function"==typeof i?i(k):Z.titleRender?Z.titleRender(k):i,o.createElement("span",{ref:$,title:"string"==typeof i?i:"",className:I()(a,"".concat(a,"-").concat(te||"normal"),(0,E.Z)({},"".concat(Z.prefixCls,"-node-selected"),!L&&(v||T))),onMouseEnter:K,onMouseLeave:V,onContextMenu:q,onClick:W,onDoubleClick:F},t,o.createElement("span",{className:"".concat(Z.prefixCls,"-title")},n),oe)}),[Z.prefixCls,Z.showIcon,e,Z.icon,ne,Z.titleRender,k,te,K,V,q,W,F]),ie=(0,_.Z)(M,{aria:!0,data:!0}),ae=(mt(Z.keyEntities,i)||{}).level,le=g[g.length-1],ce=!L&&X,se=Z.draggingNodeKey===i,ue=void 0!==N?{"aria-selected":!!N}:void 0;return o.createElement("div",(0,p.Z)({ref:w,role:"treeitem","aria-expanded":f?void 0:h,className:I()(l,"".concat(Z.prefixCls,"-treenode"),(r={},(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)(r,"".concat(Z.prefixCls,"-treenode-disabled"),L),"".concat(Z.prefixCls,"-treenode-switcher-").concat(h?"open":"close"),!f),"".concat(Z.prefixCls,"-treenode-checkbox-checked"),b),"".concat(Z.prefixCls,"-treenode-checkbox-indeterminate"),y),"".concat(Z.prefixCls,"-treenode-selected"),v),"".concat(Z.prefixCls,"-treenode-loading"),x),"".concat(Z.prefixCls,"-treenode-active"),C),"".concat(Z.prefixCls,"-treenode-leaf-last"),le),"".concat(Z.prefixCls,"-treenode-draggable"),X),"dragging",se),(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)(r,"drop-target",Z.dropTargetKey===i),"drop-container",Z.dropContainerKey===i),"drag-over",!L&&s),"drag-over-gap-top",!L&&u),"drag-over-gap-bottom",!L&&d),"filter-node",null===(n=Z.filterTreeNode)||void 0===n?void 0:n.call(Z,kt(e))),"".concat(Z.prefixCls,"-treenode-leaf"),U))),style:c,draggable:ce,onDragStart:ce?function(t){t.stopPropagation(),P(!0),Z.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch(e){}}:void 0,onDragEnter:X?function(t){t.preventDefault(),t.stopPropagation(),Z.onNodeDragEnter(t,e)}:void 0,onDragOver:X?function(t){t.preventDefault(),t.stopPropagation(),Z.onNodeDragOver(t,e)}:void 0,onDragLeave:X?function(t){t.stopPropagation(),Z.onNodeDragLeave(t,e)}:void 0,onDrop:X?function(t){t.preventDefault(),t.stopPropagation(),P(!1),Z.onNodeDrop(t,e)}:void 0,onDragEnd:X?function(t){t.stopPropagation(),P(!1),Z.onNodeDragEnd(t,e)}:void 0,onMouseMove:j},ue,ie),o.createElement(pt,{prefixCls:Z.prefixCls,level:ae,isStart:m,isEnd:g}),Y,function(){if(U){var e=J(!0);return!1!==e?o.createElement("span",{className:I()("".concat(Z.prefixCls,"-switcher"),"".concat(Z.prefixCls,"-switcher-noop"))},e):null}var t=J(!1);return!1!==t?o.createElement("span",{onClick:G,className:I()("".concat(Z.prefixCls,"-switcher"),"".concat(Z.prefixCls,"-switcher_").concat(h?jt:Nt))},t):null}(),ee,re)};Mt.isTreeNode=1;var Zt=Mt;function Ot(e,t){if(!e)return[];var n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function $t(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function At(e){return e.split("-")}function zt(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var o=t.key,r=t.children;n.push(o),e(r)}))}(mt(t,e).children),n}function Tt(e){if(e.parent){var t=At(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Pt(e,t,n,o,r,i,a,l,c,s){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,g=p.height,h=(("rtl"===s?-1:1)*(((null==r?void 0:r.x)||0)-d)-12)/o,v=c.filter((function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),b=mt(l,n.eventKey);if(f-1.5?i({dragNode:N,dropNode:M,dropPosition:1})?E=1:Z=!1:i({dragNode:N,dropNode:M,dropPosition:0})?E=0:i({dragNode:N,dropNode:M,dropPosition:1})?E=1:Z=!1:i({dragNode:N,dropNode:M,dropPosition:1})?E=1:Z=!1,{dropPosition:E,dropLevelOffset:k,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:S,dropContainerKey:0===E?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:Z}}function Lt(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function Rt(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,C.Z)(e))return(0,M.ZP)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function Bt(e,t){var n=new Set;function o(e){if(!n.has(e)){var r=mt(t,e);if(r){n.add(e);var i=r.parent;r.node.disabled||i&&o(i.key)}}}return(e||[]).forEach((function(e){o(e)})),(0,pe.Z)(n)}function Dt(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function Ht(e){var t=e||{},n=t.disabled,o=t.disableCheckbox,r=t.checkable;return!(!n&&!o)||!1===r}function Wt(e,t,n,o){var r,i=[];r=o||Ht;var a,l=new Set(e.filter((function(e){var t=!!mt(n,e);return t||i.push(e),t}))),c=new Map,s=0;return Object.keys(n).forEach((function(e){var t=n[e],o=t.level,r=c.get(o);r||(r=new Set,c.set(o,r)),r.add(t),s=Math.max(s,o)})),(0,M.ZP)(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,o){for(var r=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;r.has(t)&&!o(n)&&a.filter((function(e){return!o(e.node)})).forEach((function(e){r.add(e.key)}))}));for(var l=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!l.has(e.parent.key))if(o(e.parent.node))l.add(t.key);else{var a=!0,c=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=r.has(t);a&&!n&&(a=!1),c||!n&&!i.has(t)||(c=!0)})),a&&r.add(t.key),c&&i.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(Dt(i,r))}}(l,c,s,r):function(e,t,n,o,r){for(var i=new Set(e),a=new Set(t),l=0;l<=o;l+=1)(n.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,o=e.children,l=void 0===o?[]:o;i.has(t)||a.has(t)||r(n)||l.filter((function(e){return!r(e.node)})).forEach((function(e){i.delete(e.key)}))}));a=new Set;for(var c=new Set,s=o;s>=0;s-=1)(n.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!c.has(e.parent.key))if(r(e.parent.node))c.add(t.key);else{var o=!0,l=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);o&&!n&&(o=!1),l||!n&&!a.has(t)||(l=!0)})),o||i.delete(t.key),l&&a.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Dt(a,i))}}(l,t.halfCheckedKeys,c,s,r),a}var Ft=n(18929);var Kt=n(32383),Vt=n(62673),qt=n(22173),Xt=n(47889);const Gt={},Qt="SELECT_ALL",_t="SELECT_INVERT",Ut="SELECT_NONE",Yt=[],Jt=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,pe.Z)(n),(0,pe.Z)(Jt(e,t[e]))))})),n};var en=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,onChange:l,onSelect:c,onSelectAll:s,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:g,fixed:h,renderCell:v,hideSelectAll:b,checkStrictly:y=!0}=t||{},{prefixCls:x,data:w,pageData:C,getRecordByKey:S,getRowKey:E,expandType:k,childrenColumnName:j,locale:N,getPopupContainer:M}=e,Z=(0,Kt.ln)("Table"),[O,$]=function(e){const[t,n]=(0,o.useState)(null);return[(0,o.useCallback)(((o,r,i)=>{const a=null!=t?t:o,l=Math.min(a||0,o),c=Math.max(a||0,o),s=r.slice(l,c+1).map((t=>e(t))),u=s.some((e=>!i.has(e))),d=[];return s.forEach((e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))})),n(u?c:null),d}),[t]),e=>{n(e)}]}((e=>e)),[A,z]=(0,Ft.Z)(r||i||Yt,{value:r}),T=o.useRef(new Map),P=(0,o.useCallback)((e=>{if(n){const t=new Map;e.forEach((e=>{let n=S(e);!n&&T.current.has(e)&&(n=T.current.get(e)),t.set(e,n)})),T.current=t}}),[S,n]);o.useEffect((()=>{P(A)}),[A]);const L=(0,o.useMemo)((()=>Jt(j,C)),[j,C]),{keyEntities:R}=(0,o.useMemo)((()=>{if(y)return{keyEntities:null};let e=w;if(n){const t=new Set(L.map(((e,t)=>E(e,t)))),n=Array.from(T.current).reduce(((e,n)=>{let[o,r]=n;return t.has(o)?e:e.concat(r)}),[]);e=[].concat((0,pe.Z)(e),(0,pe.Z)(n))}return St(e,{externalGetKey:E,childrenPropName:j})}),[w,E,y,j,n,L]),B=(0,o.useMemo)((()=>{const e=new Map;return L.forEach(((t,n)=>{const o=E(t,n),r=(a?a(t):null)||{};e.set(o,r)})),e}),[L,E,a]),D=(0,o.useCallback)((e=>{const t=E(e);let n;return n=B.has(t)?B.get(E(e)):a?a(e):void 0,!!(null==n?void 0:n.disabled)}),[B,E]),[H,W]=(0,o.useMemo)((()=>{if(y)return[A||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=Wt(A,!0,R,D);return[e||[],t]}),[A,y,R,D]),F=(0,o.useMemo)((()=>{const e="radio"===m?H.slice(0,1):H;return new Set(e)}),[H,m]),K=(0,o.useMemo)((()=>"radio"===m?new Set:new Set(W)),[W,m]);o.useEffect((()=>{t||z(Yt)}),[!!t]);const V=(0,o.useCallback)(((e,t)=>{let o,r;P(e),n?(o=e,r=e.map((e=>T.current.get(e)))):(o=[],r=[],e.forEach((e=>{const t=S(e);void 0!==t&&(o.push(e),r.push(t))}))),z(o),null==l||l(o,r,{type:t})}),[z,S,l,n]),q=(0,o.useCallback)(((e,t,n,o)=>{if(c){const r=n.map((e=>S(e)));c(S(e),t,r,o)}V(n,"single")}),[c,S,V]),X=(0,o.useMemo)((()=>{if(!g||b)return null;return(!0===g?[Qt,_t,Ut]:g).map((e=>e===Qt?{key:"all",text:N.selectionAll,onSelect(){V(w.map(((e,t)=>E(e,t))).filter((e=>{const t=B.get(e);return!(null==t?void 0:t.disabled)||F.has(e)})),"all")}}:e===_t?{key:"invert",text:N.selectInvert,onSelect(){const e=new Set(F);C.forEach(((t,n)=>{const o=E(t,n),r=B.get(o);(null==r?void 0:r.disabled)||(e.has(o)?e.delete(o):e.add(o))}));const t=Array.from(e);u&&(Z.deprecated(!1,"onSelectInvert","onChange"),u(t)),V(t,"invert")}}:e===Ut?{key:"none",text:N.selectNone,onSelect(){null==d||d(),V(Array.from(F).filter((e=>{const t=B.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,o=arguments.length,r=new Array(o),i=0;i{var n;if(!t)return e.filter((e=>e!==Gt));let r=(0,pe.Z)(e);const i=new Set(F),a=L.map(E).filter((e=>!B.get(e).disabled)),l=a.every((e=>i.has(e))),c=a.some((e=>i.has(e))),u=()=>{const e=[];l?a.forEach((t=>{i.delete(t),e.push(t)})):a.forEach((t=>{i.has(t)||(i.add(t),e.push(t))}));const t=Array.from(i);null==s||s(!l,t.map((e=>S(e))),e.map((e=>S(e)))),V(t,"all"),$(null)};let d,w,C;if("radio"!==m){let e;if(X){const t={getPopupContainer:M,items:X.map(((e,t)=>{const{key:n,text:o,onSelect:r}=e;return{key:null!=n?n:t,onClick:()=>{null==r||r(a)},label:o}}))};e=o.createElement("div",{className:`${x}-selection-extra`},o.createElement(qt.Z,{menu:t,getPopupContainer:M},o.createElement("span",null,o.createElement(st.Z,null))))}const t=L.map(((e,t)=>{const n=E(e,t),o=B.get(n)||{};return Object.assign({checked:i.has(n)},o)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===L.length,r=n&&t.every((e=>{let{checked:t}=e;return t})),s=n&&t.some((e=>{let{checked:t}=e;return t}));w=o.createElement(Vt.Z,{checked:n?r:!!L.length&&l,indeterminate:n?!r&&s:!l&&c,onChange:u,disabled:0===L.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),d=!b&&o.createElement("div",{className:`${x}-selection`},w,e)}C="radio"===m?(e,t,n)=>{const r=E(t,n),a=i.has(r),l=B.get(r);return{node:o.createElement(Xt.ZP,Object.assign({},l,{checked:a,onClick:e=>{var t;e.stopPropagation(),null===(t=null==l?void 0:l.onClick)||void 0===t||t.call(l,e)},onChange:e=>{var t;i.has(r)||q(r,!0,[r],e.nativeEvent),null===(t=null==l?void 0:l.onChange)||void 0===t||t.call(l,e)}})),checked:a}}:(e,t,n)=>{var r;const l=E(t,n),c=i.has(l),s=K.has(l),u=B.get(l);let d;return d="nest"===k?s:null!==(r=null==u?void 0:u.indeterminate)&&void 0!==r?r:s,{node:o.createElement(Vt.Z,Object.assign({},u,{indeterminate:d,checked:c,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),null===(t=null==u?void 0:u.onClick)||void 0===t||t.call(u,e)},onChange:e=>{var t;const{nativeEvent:n}=e,{shiftKey:o}=n,r=a.findIndex((e=>e===l)),s=H.some((e=>a.includes(e)));if(o&&y&&s){const e=O(r,a,i),t=Array.from(i);null==f||f(!c,t.map((e=>S(e))),e.map((e=>S(e)))),V(t,"multiple")}else{const e=H;if(y){const t=c?Ot(e,l):$t(e,l);q(l,!c,t,n)}else{const t=Wt([].concat((0,pe.Z)(e),[l]),!0,R,D),{checkedKeys:o,halfCheckedKeys:r}=t;let i=o;if(c){const e=new Set(o);e.delete(l),i=Wt(Array.from(e),{checked:!1,halfCheckedKeys:r},R,D).checkedKeys}q(l,!c,i,n)}}$(c?null:r),null===(t=null==u?void 0:u.onChange)||void 0===t||t.call(u,e)}})),checked:c}};if(!r.includes(Gt))if(0===r.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[ue])||void 0===t?void 0:t.columnType)}))){const[e,...t]=r;r=[e,Gt].concat((0,pe.Z)(t))}else r=[Gt].concat((0,pe.Z)(r));const j=r.indexOf(Gt);r=r.filter(((e,t)=>e!==Gt||t===j));const N=r[j-1],Z=r[j+1];let A=h;void 0===A&&(void 0!==(null==Z?void 0:Z.fixed)?A=Z.fixed:void 0!==(null==N?void 0:N.fixed)&&(A=N.fixed)),A&&N&&"EXPAND_COLUMN"===(null===(n=N[ue])||void 0===n?void 0:n.columnType)&&void 0===N.fixed&&(N.fixed=A);const z=I()(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:g&&"checkbox"===m}),T={fixed:A,width:p,className:`${x}-selection-column`,title:(null==t?void 0:t.columnTitle)?"function"==typeof t.columnTitle?t.columnTitle(w):t.columnTitle:d,render:(e,t,n)=>{const{node:o,checked:r}=C(e,t,n);return v?v(r,t,n,o):o},onCell:t.onCell,[ue]:{className:z}};return r.map((e=>e===Gt?T:e))}),[E,L,t,H,F,K,p,X,k,B,f,q,D]);return[G,F]};function tn(e,t){return(0,o.useImperativeHandle)(e,(()=>{const e=t(),{nativeElement:n}=e;return"undefined"!=typeof Proxy?new Proxy(n,{get(t,n){return e[n]?e[n]:Reflect.get(t,n)}}):(r=e,(o=n)._antProxy=o._antProxy||{},Object.keys(r).forEach((e=>{if(!(e in o._antProxy)){const t=o[e];o._antProxy[e]=t,o[e]=r[e]}})),o);var o,r}))}function nn(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}function on(e){return null!=e&&e===e.window}var rn=e=>{var t,n;if("undefined"==typeof window)return 0;let o=0;return on(e)?o=e.pageYOffset:e instanceof Document?o=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(o=e.scrollTop),e&&!on(e)&&"number"!=typeof o&&(o=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),o};function an(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:o,duration:r=450}=t,i=n(),a=rn(i),l=Date.now(),c=()=>{const t=Date.now()-l,n=nn(t>r?r:t,a,e,r);on(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t{const{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:l}=t,c=`${n}-row-expand-icon`;return o.createElement("button",{type:"button",onClick:e=>{r(i,e),e.stopPropagation()},className:I()(c,{[`${c}-spaced`]:!l,[`${c}-expanded`]:l&&a,[`${c}-collapsed`]:l&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}};const vn=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function bn(e,t){return t?`${t}-${e}`:`${e}`}const yn=(e,t)=>"function"==typeof e?e(t):e;var xn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},wn=n(7657),Cn=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:xn}))};var Sn=o.forwardRef(Cn);var En=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=n[t];void 0!==o&&(e[t]=o)}))}return e},kn=n(40192);var In=n(20743),jn=n(584),Nn=n(93041),Mn=n(78857),Zn=n(99153),On=n(84851),$n=n(13028),An=n(19257),zn=n(93046),Tn=n(10228);var Pn=function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r}return o.createElement("div",{style:i})};function Ln(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var Rn=n(77900);var Bn=function(e,t){var n=o.useState(!1),r=(0,a.Z)(n,2),i=r[0],l=r[1];(0,c.Z)((function(){if(i)return e(),function(){t()}}),[i]),(0,c.Z)((function(){return l(!0),function(){l(!1)}}),[])},Dn=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Hn=o.forwardRef((function(e,t){var n=e.className,r=e.style,i=e.motion,l=e.motionNodes,s=e.motionType,u=e.onMotionStart,d=e.onMotionEnd,f=e.active,m=e.treeNodeRequiredProps,g=(0,B.Z)(e,Dn),h=o.useState(!0),v=(0,a.Z)(h,2),b=v[0],y=v[1],x=o.useContext(ut).prefixCls,w=l&&"hide"!==s;(0,c.Z)((function(){l&&w!==b&&y(w)}),[l]);var C=o.useRef(!1),S=function(){l&&!C.current&&(C.current=!0,d())};Bn((function(){l&&u()}),S);return l?o.createElement(Rn.ZP,(0,p.Z)({ref:t,visible:b},i,{motionAppear:"show"===s,onVisibleChanged:function(e){w===e&&S()}}),(function(e,t){var n=e.className,r=e.style;return o.createElement("div",{ref:t,className:I()("".concat(x,"-treenode-motion"),n),style:r},l.map((function(e){var t=Object.assign({},(Ln(e.data),e.data)),n=e.title,r=e.key,i=e.isStart,a=e.isEnd;delete t.children;var l=Et(r,m);return o.createElement(Zt,(0,p.Z)({},t,l,{title:n,active:f,data:e.data,key:r,isStart:i,isEnd:a}))})))})):o.createElement(Zt,(0,p.Z)({domRef:t,className:n,style:r},g,{active:f}))}));var Wn=Hn;function Fn(e,t,n){var o=e.findIndex((function(e){return e.key===n})),r=e[o+1],i=t.findIndex((function(e){return e.key===n}));if(r){var a=t.findIndex((function(e){return e.key===r.key}));return t.slice(i+1,a)}return t.slice(i+1)}var Kn=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Vn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},qn=function(){},Xn="RC_TREE_MOTION_".concat(Math.random()),Gn={key:Xn},Qn={key:Xn,level:0,index:0,pos:"0",node:Gn,nodes:[Gn]},_n={parent:null,children:[],pos:Qn.pos,data:Gn,title:null,key:Xn,isStart:[],isEnd:[]};function Un(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function Yn(e){return bt(e.key,e.pos)}var Jn=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.data,i=(e.selectable,e.checkable,e.expandedKeys),l=e.selectedKeys,s=e.checkedKeys,u=e.loadedKeys,d=e.loadingKeys,f=e.halfCheckedKeys,m=e.keyEntities,g=e.disabled,h=e.dragging,v=e.dragOverNodeKey,b=e.dropPosition,y=e.motion,x=e.height,w=e.itemHeight,C=e.virtual,S=e.scrollWidth,E=e.focusable,k=e.activeItem,I=e.focused,j=e.tabIndex,N=e.onKeyDown,M=e.onFocus,Z=e.onBlur,O=e.onActiveChange,$=e.onListChangeStart,A=e.onListChangeEnd,z=(0,B.Z)(e,Kn),T=o.useRef(null),P=o.useRef(null);o.useImperativeHandle(t,(function(){return{scrollTo:function(e){T.current.scrollTo(e)},getIndentWidth:function(){return P.current.offsetWidth}}}));var L=o.useState(i),R=(0,a.Z)(L,2),D=R[0],H=R[1],W=o.useState(r),F=(0,a.Z)(W,2),K=F[0],V=F[1],q=o.useState(r),X=(0,a.Z)(q,2),G=X[0],Q=X[1],_=o.useState([]),U=(0,a.Z)(_,2),Y=U[0],J=U[1],ee=o.useState(null),te=(0,a.Z)(ee,2),ne=te[0],oe=te[1],re=o.useRef(r);function ie(){var e=re.current;V(e),Q(e),J([]),oe(null),A()}re.current=r,(0,c.Z)((function(){H(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var o=t.filter((function(e){return!n.has(e)}));return 1===o.length?o[0]:null}return n ").concat(t);return t}(k)),o.createElement("div",null,o.createElement("input",{style:Vn,disabled:!1===E||g,tabIndex:!1!==E?j:null,onKeyDown:N,onFocus:M,onBlur:Z,value:"",onChange:qn,"aria-label":"for screen reader"})),o.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},o.createElement("div",{className:"".concat(n,"-indent")},o.createElement("div",{ref:P,className:"".concat(n,"-indent-unit")}))),o.createElement(Ge.Z,(0,p.Z)({},z,{data:ae,itemKey:Yn,height:x,fullHeight:!1,virtual:C,itemHeight:w,scrollWidth:S,prefixCls:"".concat(n,"-list"),ref:T,role:"tree",onVisibleChange:function(e){e.every((function(e){return Yn(e)!==Xn}))&&ie()}}),(function(e){var t=e.pos,n=Object.assign({},(Ln(e.data),e.data)),r=e.title,i=e.key,a=e.isStart,l=e.isEnd,c=bt(i,t);delete n.key,delete n.children;var s=Et(c,le);return o.createElement(Wn,(0,p.Z)({},n,s,{title:r,active:!!k&&i===k.key,pos:t,data:e.data,isStart:a,isEnd:l,motion:y,motionNodes:i===Xn?Y:null,motionType:ne,onMotionStart:$,onMotionEnd:ie,treeNodeRequiredProps:le,onMouseMove:function(){O(null)}}))})))}));var eo=Jn,to=function(e){(0,An.Z)(n,e);var t=(0,zn.Z)(n);function n(){var e;(0,Zn.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,c=i.dropTargetKey,s=i.dropTargetPos,u=i.dropAllowed;if(u){var d=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var f=(0,S.Z)((0,S.Z)({},Et(c,e.getTreeNodeRequiredProps())),{},{active:(null===(o=e.getActiveItem())||void 0===o?void 0:o.key)===c,data:mt(e.state.keyEntities,c).node}),p=a.includes(c);(0,M.ZP)(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var m=At(s),g={event:t,node:kt(f),dragNode:e.dragNodeProps?kt(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(m[m.length-1])};r||null==d||d(g),e.dragNodeProps=null}}})),(0,E.Z)((0,$n.Z)(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),(0,E.Z)((0,$n.Z)(e),"triggerExpandActionExpand",(function(t,n){var o=e.state,r=o.expandedKeys,i=o.flattenNodes,a=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var c=i.filter((function(e){return e.key===l}))[0],s=kt((0,S.Z)((0,S.Z)({},Et(l,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(a?Ot(r,l):$t(r,l)),e.onNodeExpand(t,s)}})),(0,E.Z)((0,$n.Z)(e),"onNodeClick",(function(t,n){var o=e.props,r=o.onClick;"click"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)})),(0,E.Z)((0,$n.Z)(e),"onNodeDoubleClick",(function(t,n){var o=e.props,r=o.onDoubleClick;"doubleClick"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)})),(0,E.Z)((0,$n.Z)(e),"onNodeSelect",(function(t,n){var o=e.state.selectedKeys,r=e.state,i=r.keyEntities,a=r.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=n.selected,d=n[a.key],f=!u,p=(o=f?s?$t(o,d):[d]:Ot(o,d)).map((function(e){var t=mt(i,e);return t?t.node:null})).filter(Boolean);e.setUncontrolledState({selectedKeys:o}),null==c||c(o,{event:"select",selected:f,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})})),(0,E.Z)((0,$n.Z)(e),"onNodeCheck",(function(t,n,o){var r,i=e.state,a=i.keyEntities,l=i.checkedKeys,c=i.halfCheckedKeys,s=e.props,u=s.checkStrictly,d=s.onCheck,f=n.key,p={event:"check",node:n,checked:o,nativeEvent:t.nativeEvent};if(u){var m=o?$t(l,f):Ot(l,f);r={checked:m,halfChecked:Ot(c,f)},p.checkedNodes=m.map((function(e){return mt(a,e)})).filter(Boolean).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var g=Wt([].concat((0,pe.Z)(l),[f]),!0,a),h=g.checkedKeys,v=g.halfCheckedKeys;if(!o){var b=new Set(h);b.delete(f);var y=Wt(Array.from(b),{checked:!1,halfCheckedKeys:v},a);h=y.checkedKeys,v=y.halfCheckedKeys}r=h,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,h.forEach((function(e){var t=mt(a,e);if(t){var n=t.node,o=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:o})}})),e.setUncontrolledState({checkedKeys:h},!1,{halfCheckedKeys:v})}null==d||d(r,p)})),(0,E.Z)((0,$n.Z)(e),"onNodeLoad",(function(t){var n,o=t.key,r=mt(e.state.keyEntities,o);if(null==r||null===(n=r.children)||void 0===n||!n.length){var i=new Promise((function(n,r){e.setState((function(i){var a=i.loadedKeys,l=void 0===a?[]:a,c=i.loadingKeys,s=void 0===c?[]:c,u=e.props,d=u.loadData,f=u.onLoad;return!d||l.includes(o)||s.includes(o)?null:(d(t).then((function(){var r=$t(e.state.loadedKeys,o);null==f||f(r,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:r}),e.setState((function(e){return{loadingKeys:Ot(e.loadingKeys,o)}})),n()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:Ot(e.loadingKeys,o)}})),e.loadingRetryTimes[o]=(e.loadingRetryTimes[o]||0)+1,e.loadingRetryTimes[o]>=10){var i=e.state.loadedKeys;(0,M.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:$t(i,o)}),n()}r(t)})),{loadingKeys:$t(s,o)})}))}));return i.catch((function(){})),i}})),(0,E.Z)((0,$n.Z)(e),"onNodeMouseEnter",(function(t,n){var o=e.props.onMouseEnter;null==o||o({event:t,node:n})})),(0,E.Z)((0,$n.Z)(e),"onNodeMouseLeave",(function(t,n){var o=e.props.onMouseLeave;null==o||o({event:t,node:n})})),(0,E.Z)((0,$n.Z)(e),"onNodeContextMenu",(function(t,n){var o=e.props.onRightClick;o&&(t.preventDefault(),o({event:t,node:n}))})),(0,E.Z)((0,$n.Z)(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,o=new Array(n),r=0;r1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,i=!0,a={};Object.keys(t).forEach((function(n){e.props.hasOwnProperty(n)?i=!1:(r=!0,a[n]=t[n])})),!r||n&&!i||e.setState((0,S.Z)((0,S.Z)({},a),o))}})),(0,E.Z)((0,$n.Z)(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return(0,On.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,o=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:o}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,r=t.flattenNodes,i=t.keyEntities,a=t.draggingNodeKey,l=t.activeKey,c=t.dropLevelOffset,s=t.dropContainerKey,u=t.dropTargetKey,d=t.dropPosition,f=t.dragOverNodeKey,m=t.indent,g=this.props,h=g.prefixCls,v=g.className,b=g.style,y=g.showLine,x=g.focusable,w=g.tabIndex,S=void 0===w?0:w,k=g.selectable,j=g.showIcon,N=g.icon,M=g.switcherIcon,Z=g.draggable,O=g.checkable,$=g.checkStrictly,A=g.disabled,z=g.motion,T=g.loadData,P=g.filterTreeNode,L=g.height,R=g.itemHeight,B=g.scrollWidth,D=g.virtual,H=g.titleRender,W=g.dropIndicatorRender,F=g.onContextMenu,K=g.onScroll,V=g.direction,q=g.rootClassName,X=g.rootStyle,G=(0,_.Z)(this.props,{aria:!0,data:!0});Z&&(e="object"===(0,C.Z)(Z)?Z:"function"==typeof Z?{nodeDraggable:Z}:{});var Q={prefixCls:h,selectable:k,showIcon:j,icon:N,switcherIcon:M,draggable:e,draggingNodeKey:a,checkable:O,checkStrictly:$,disabled:A,keyEntities:i,dropLevelOffset:c,dropContainerKey:s,dropTargetKey:u,dropPosition:d,dragOverNodeKey:f,indent:m,direction:V,dropIndicatorRender:W,loadData:T,filterTreeNode:P,titleRender:H,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return o.createElement(ut.Provider,{value:Q},o.createElement("div",{className:I()(h,v,q,(0,E.Z)((0,E.Z)((0,E.Z)({},"".concat(h,"-show-line"),y),"".concat(h,"-focused"),n),"".concat(h,"-active-focused"),null!==l)),style:X},o.createElement(eo,(0,p.Z)({ref:this.listRef,prefixCls:h,style:b,data:r,disabled:A,selectable:k,checkable:!!O,motion:z,dragging:null!==a,height:L,itemHeight:R,virtual:D,focusable:x,focused:n,tabIndex:S,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:F,onScroll:K,scrollWidth:B},this.getTreeNodeRequiredProps(),G))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o=t.prevProps,r={prevProps:e};function i(t){return!o&&e.hasOwnProperty(t)||o&&o[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=yt(e.fieldNames),r.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&((0,M.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=xt(e.children)),n){r.treeData=n;var l=St(n,{fieldNames:a});r.keyEntities=(0,S.Z)((0,E.Z)({},Xn,Qn),l.keyEntities)}var c,s=r.keyEntities||t.keyEntities;if(i("expandedKeys")||o&&i("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?Bt(e.expandedKeys,s):e.expandedKeys;else if(!o&&e.defaultExpandAll){var u=(0,S.Z)({},s);delete u[Xn];var d=[];Object.keys(u).forEach((function(e){var t=u[e];t.children&&t.children.length&&d.push(t.key)})),r.expandedKeys=d}else!o&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Bt(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,n||r.expandedKeys){var f=wt(n||t.treeData,r.expandedKeys||t.expandedKeys,a);r.flattenNodes=f}if((e.selectable&&(i("selectedKeys")?r.selectedKeys=Lt(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(r.selectedKeys=Lt(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?c=Rt(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?c=Rt(e.defaultCheckedKeys)||{}:n&&(c=Rt(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var p=c,m=p.checkedKeys,g=void 0===m?[]:m,h=p.halfCheckedKeys,v=void 0===h?[]:h;if(!e.checkStrictly){var b=Wt(g,!0,s);g=b.checkedKeys,v=b.halfCheckedKeys}r.checkedKeys=g,r.halfCheckedKeys=v}return i("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}]),n}(o.Component);(0,E.Z)(to,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Pn,allowDrop:function(){return!0},expandAction:!1}),(0,E.Z)(to,"TreeNode",Zt);var no=to,oo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},ro=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:oo}))};var io=o.forwardRef(ro),ao={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},lo=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:ao}))};var co=o.forwardRef(lo),so={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},uo=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:so}))};var fo=o.forwardRef(uo),po={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},mo=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:po}))};var go=o.forwardRef(mo),ho=n(86641),vo=n(66604),bo=n(36170),yo=n(63356),xo=n(34961),wo=n(51636),Co=n(16931);const So=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:o,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:l}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${i}`,content:'""',borderRadius:a},"&:hover:before":{background:l}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:r},[`${t}-node-content-wrapper`]:{color:r,background:"transparent","&:before, &:hover:before":{background:o}}}}}},Eo=new vo.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ko=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Io=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,vo.bf)(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),jo=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,titleHeight:i,indentSize:a,nodeSelectedBg:l,nodeHoverBg:c,colorTextQuaternary:s,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},(0,yo.Wf)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},(0,yo.oN)(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Eo,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[o]:{display:"flex",alignItems:"flex-start",marginBottom:r,lineHeight:(0,vo.bf)(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:r},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${o}-disabled${o}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${o}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:s},[`&${o}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},ko(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},Io(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${o}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,vo.bf)(t.calc(i).div(2).equal())} !important`}})}},No=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=`.${e}`,r=`${o}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=(0,wo.IX)(t,{treeCls:o,treeNodeCls:r,treeNodePadding:i});return[jo(e,a),n&&So(a)].filter(Boolean)};var Mo=(0,Co.I$)("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:(0,bo.C2)(`${n}-checkbox`,e)},No(n,e),(0,xo.Z)(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:o}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:o,nodeSelectedColor:e.colorText}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));var Zo=function(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a="ltr"}=e,l="ltr"===a?"left":"right",c={[l]:-n*i+4,["ltr"===a?"right":"left"]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[l]=i+4}return o.createElement("div",{style:c,className:`${r}-drop-indicator`})},Oo={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},$o=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:Oo}))};var Ao=o.forwardRef($o),zo=n(58617),To={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Po=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:To}))};var Lo=o.forwardRef(Po),Ro={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Bo=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:Ro}))};var Do=o.forwardRef(Bo),Ho=n(22703);var Wo=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:l,expanded:c,loading:s}=r;if(s)return o.isValidElement(a)?a:o.createElement(zo.Z,{className:`${t}-switcher-loading-icon`});let u;if(i&&"object"==typeof i&&(u=i.showLeafIcon),l){if(!i)return null;if("boolean"!=typeof u&&u){const e="function"==typeof u?u(r):u,n=`${t}-switcher-line-custom-icon`;return o.isValidElement(e)?(0,Ho.Tm)(e,{className:I()(e.props.className||"",n)}):e}return u?o.createElement(io,{className:`${t}-switcher-line-icon`}):o.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f="function"==typeof n?n(r):n;return o.isValidElement(f)?(0,Ho.Tm)(f,{className:I()(f.props.className||"",d)}):void 0!==f?f:i?c?o.createElement(Lo,{className:`${t}-switcher-line-icon`}):o.createElement(Do,{className:`${t}-switcher-line-icon`}):o.createElement(Ao,{className:d})};const Fo=o.forwardRef(((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:a,tree:l}=o.useContext(ln.E_),{prefixCls:c,className:s,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:p,blockNode:m=!1,children:g,checkable:h=!1,selectable:v=!0,draggable:b,motion:y,style:x}=e,w=r("tree",c),C=r(),S=null!=y?y:Object.assign(Object.assign({},(0,ho.Z)(C)),{motionAppear:!1}),E=Object.assign(Object.assign({},e),{checkable:h,selectable:v,showIcon:u,motion:S,blockNode:m,showLine:Boolean(d),dropIndicatorRender:Zo}),[k,j,N]=Mo(w),[,M]=(0,gn.ZP)(),Z=M.paddingXS/2+((null===(n=M.Tree)||void 0===n?void 0:n.titleHeight)||M.controlHeightSM),O=o.useMemo((()=>{if(!b)return!1;let e={};switch(typeof b){case"function":e.nodeDraggable=b;break;case"object":e=Object.assign({},b)}return!1!==e.icon&&(e.icon=e.icon||o.createElement(go,null)),e}),[b]);return k(o.createElement(no,Object.assign({itemHeight:Z,ref:t,virtual:a},E,{style:Object.assign(Object.assign({},null==l?void 0:l.style),x),prefixCls:w,className:I()({[`${w}-icon-hide`]:!u,[`${w}-block-node`]:m,[`${w}-unselectable`]:!v,[`${w}-rtl`]:"rtl"===i},null==l?void 0:l.className,s,j,N),direction:i,checkable:h?o.createElement("span",{className:`${w}-checkbox-inner`}):h,selectable:v,switcherIcon:e=>o.createElement(Wo,{prefixCls:w,switcherIcon:f,switcherLoadingIcon:p,treeNodeProps:e,showLine:d}),draggable:O}),g))}));var Ko=Fo;function Vo(e,t,n){const{key:o,children:r}=n;e.forEach((function(e){const i=e[o],a=e[r];!1!==t(i,e)&&Vo(a||[],t,n)}))}function qo(e){let{treeData:t,expandedKeys:n,startKey:o,endKey:r,fieldNames:i}=e;const a=[];let l=0;if(o&&o===r)return[o];if(!o||!r)return[];return Vo(t,(e=>{if(2===l)return!1;if(function(e){return e===o||e===r}(e)){if(a.push(e),0===l)l=1;else if(1===l)return l=2,!1}else 1===l&&a.push(e);return n.includes(e)}),yt(i)),a}function Xo(e,t,n){const o=(0,pe.Z)(t),r=[];return Vo(e,((e,t)=>{const n=o.indexOf(e);return-1!==n&&(r.push(t),o.splice(n,1)),!!o.length}),yt(n)),r}var Go=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=Go(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const l=o.useRef(null),c=o.useRef(null),[s,u]=o.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=o.useState((()=>(()=>{const{keyEntities:e}=St(_o(a));let t;return t=n?Object.keys(e):r?Bt(a.expandedKeys||i||[],e):a.expandedKeys||i||[],t})()));o.useEffect((()=>{"selectedKeys"in a&&u(a.selectedKeys)}),[a.selectedKeys]),o.useEffect((()=>{"expandedKeys"in a&&f(a.expandedKeys)}),[a.expandedKeys]);const{getPrefixCls:p,direction:m}=o.useContext(ln.E_),{prefixCls:g,className:h,showIcon:v=!0,expandAction:b="click"}=a,y=Go(a,["prefixCls","className","showIcon","expandAction"]),x=p("tree",g),w=I()(`${x}-directory`,{[`${x}-directory-rtl`]:"rtl"===m},h);return o.createElement(Ko,Object.assign({icon:Qo,ref:t,blockNode:!0},y,{showIcon:v,expandAction:b,prefixCls:x,className:w,expandedKeys:d,selectedKeys:s,onSelect:(e,t)=>{var n;const{multiple:o,fieldNames:r}=a,{node:i,nativeEvent:s}=t,{key:f=""}=i,p=_o(a),m=Object.assign(Object.assign({},t),{selected:!0}),g=(null==s?void 0:s.ctrlKey)||(null==s?void 0:s.metaKey),h=null==s?void 0:s.shiftKey;let v;o&&g?(v=e,l.current=f,c.current=v,m.selectedNodes=Xo(p,v,r)):o&&h?(v=Array.from(new Set([].concat((0,pe.Z)(c.current||[]),(0,pe.Z)(qo({treeData:p,expandedKeys:d,startKey:f,endKey:l.current,fieldNames:r}))))),m.selectedNodes=Xo(p,v,r)):(v=[f],l.current=f,c.current=v,m.selectedNodes=Xo(p,v,r)),null===(n=a.onSelect)||void 0===n||n.call(a,v,m),"selectedKeys"in a||u(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in a||f(e),null===(n=a.onExpand)||void 0===n?void 0:n.call(a,e,t)}}))};var Yo=o.forwardRef(Uo);const Jo=Ko;Jo.DirectoryTree=Yo,Jo.TreeNode=Zt;var er=Jo,tr=n(47472),nr=n(49397);var or=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?o.createElement("div",{className:`${r}-filter-dropdown-search`},o.createElement(nr.Z,{prefix:o.createElement(tr.Z,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null};const rr=e=>{const{keyCode:t}=e;t===Tn.Z.ENTER&&e.stopPropagation()};var ir=o.forwardRef(((e,t)=>o.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:rr,ref:t},e.children)));function ar(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:o}=e;t.push(n),o&&(t=[].concat((0,pe.Z)(t),(0,pe.Z)(ar(o))))})),t}function lr(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function cr(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:l}=e;return t.map(((e,t)=>{const c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:cr({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:l})};const s=i?Vt.Z:Xt.ZP,u={key:void 0!==e.value?c:t,label:o.createElement(o.Fragment,null,o.createElement(s,{checked:r.includes(c)}),o.createElement("span",null,e.text))};return a.trim()?"function"==typeof l?l(a,e)?u:null:lr(a,e.text)?u:null:u}))}function sr(e){return e||[]}var ur=e=>{var t,n,r,i;const{tablePrefixCls:a,prefixCls:l,column:c,dropdownPrefixCls:u,columnKey:d,filterOnClose:f,filterMultiple:p,filterMode:m="menu",filterSearch:g=!1,filterState:h,triggerFilter:v,locale:b,children:y,getPopupContainer:x,rootClassName:w}=e,{filterResetToDefaultFilteredValue:C,defaultFilteredValue:S,filterDropdownProps:E={},filterDropdownOpen:k,filterDropdownVisible:j,onFilterDropdownVisibleChange:N,onFilterDropdownOpenChange:M}=c,[Z,O]=o.useState(!1),$=!(!h||!(null===(t=h.filteredKeys)||void 0===t?void 0:t.length)&&!h.forceFiltered),A=e=>{var t;O(e),null===(t=E.onOpenChange)||void 0===t||t.call(E,e),null==M||M(e),null==N||N(e)};const z=null!==(i=null!==(r=null!==(n=E.open)&&void 0!==n?n:k)&&void 0!==r?r:j)&&void 0!==i?i:Z,T=null==h?void 0:h.filteredKeys,[P,L]=function(e){const t=o.useRef(e),n=(0,kn.Z)();return[()=>t.current,e=>{t.current=e,n()}]}(sr(T)),R=e=>{let{selectedKeys:t}=e;L(t)},B=(e,t)=>{let{node:n,checked:o}=t;R(p?{selectedKeys:e}:{selectedKeys:o&&n.key?[n.key]:[]})};o.useEffect((()=>{Z&&R({selectedKeys:sr(T)})}),[T]);const[D,H]=o.useState([]),W=e=>{H(e)},[F,K]=o.useState(""),V=e=>{const{value:t}=e.target;K(t)};o.useEffect((()=>{Z||K("")}),[Z]);const q=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||h&&h.filteredKeys?(0,s.Z)(t,null==h?void 0:h.filteredKeys,!0)?null:void v({column:c,key:d,filteredKeys:t}):null},X=()=>{A(!1),q(P())},G=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&q([]),t&&A(!1),K(""),L(C?(S||[]).map((e=>String(e))):[])},Q=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&A(!1),q(P())},_=I()({[`${u}-menu-without-submenu`]:(U=c.filters||[],!U.some((e=>{let{children:t}=e;return t})))});var U;const Y=e=>{if(e.target.checked){const e=ar(null==c?void 0:c.filters).map((e=>String(e)));L(e)}else L([])},J=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),o={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(o.children=J({filters:e.children})),o}))},ee=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>ee(e))))||[]})};let te;const{direction:ne,renderEmpty:oe}=o.useContext(ln.E_);if("function"==typeof c.filterDropdown)te=c.filterDropdown({prefixCls:`${u}-custom`,setSelectedKeys:e=>R({selectedKeys:e}),selectedKeys:P(),confirm:Q,clearFilters:G,filters:c.filters,visible:z,close:()=>{A(!1)}});else if(c.filterDropdown)te=c.filterDropdown;else{const e=P()||[],t=()=>{var t,n;const r=null!==(t=null==oe?void 0:oe("Table.filter"))&&void 0!==t?t:o.createElement(jn.Z,{image:jn.Z.PRESENTED_IMAGE_SIMPLE,description:b.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(c.filters||[]).length)return r;if("tree"===m)return o.createElement(o.Fragment,null,o.createElement(or,{filterSearch:g,value:F,onChange:V,tablePrefixCls:a,locale:b}),o.createElement("div",{className:`${a}-filter-dropdown-tree`},p?o.createElement(Vt.Z,{checked:e.length===ar(c.filters).length,indeterminate:e.length>0&&e.length"function"==typeof g?g(F,ee(e)):lr(F,e.title):void 0})));const i=cr({filters:c.filters||[],filterSearch:g,prefixCls:l,filteredKeys:P(),filterMultiple:p,searchValue:F}),s=i.every((e=>null===e));return o.createElement(o.Fragment,null,o.createElement(or,{filterSearch:g,value:F,onChange:V,tablePrefixCls:a,locale:b}),s?r:o.createElement(Nn.Z,{selectable:!0,multiple:p,prefixCls:`${u}-menu`,className:_,onSelect:R,onDeselect:R,selectedKeys:e,getPopupContainer:x,openKeys:D,onOpenChange:W,items:i}))},n=()=>C?(0,s.Z)((S||[]).map((e=>String(e))),e,!0):0===e.length;te=o.createElement(o.Fragment,null,t(),o.createElement("div",{className:`${l}-dropdown-btns`},o.createElement(In.ZP,{type:"link",size:"small",disabled:n(),onClick:()=>G()},b.filterReset),o.createElement(In.ZP,{type:"primary",size:"small",onClick:X},b.filterConfirm)))}c.filterDropdown&&(te=o.createElement(Mn.J,{selectable:void 0},te)),te=o.createElement(ir,{className:`${l}-dropdown`},te);const re=En({trigger:["click"],placement:"rtl"===ne?"bottomLeft":"bottomRight",children:(()=>{let e;return e="function"==typeof c.filterIcon?c.filterIcon($):c.filterIcon?c.filterIcon:o.createElement(Sn,null),o.createElement("span",{role:"button",tabIndex:-1,className:I()(`${l}-trigger`,{active:$}),onClick:e=>{e.stopPropagation()}},e)})(),getPopupContainer:x},Object.assign(Object.assign({},E),{rootClassName:I()(w,E.rootClassName),open:z,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==T&&L(sr(T)),A(e),e||c.filterDropdown||!f||X())},dropdownRender:()=>"function"==typeof(null==E?void 0:E.dropdownRender)?E.dropdownRender(te):te}));return o.createElement("div",{className:`${l}-column`},o.createElement("span",{className:`${a}-column-title`},y),o.createElement(qt.Z,Object.assign({},re)))};const dr=(e,t,n)=>{let o=[];return(e||[]).forEach(((e,r)=>{var i;const a=bn(r,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),o.push({column:e,key:vn(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:vn(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[].concat((0,pe.Z)(o),(0,pe.Z)(dr(e.children,t,a))))})),o};function fr(e,t,n,r,i,a,l,c,s){return n.map(((n,u)=>{const d=bn(u,c),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:m,filterSearch:g}=n;let h=n;if(h.filters||h.filterDropdown){const c=vn(h,d),u=r.find((e=>{let{key:t}=e;return c===t}));h=Object.assign(Object.assign({},h),{title:r=>o.createElement(ur,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:c,filterState:u,filterOnClose:f,filterMultiple:p,filterMode:m,filterSearch:g,triggerFilter:a,locale:i,getPopupContainer:l,rootClassName:s},yn(n.title,r))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:fr(e,t,h.children,r,i,a,l,d,s)})),h}))}const pr=e=>{const t={};return e.forEach((e=>{let{key:n,filteredKeys:o,column:r}=e;const i=n,{filters:a,filterDropdown:l}=r;if(l)t[i]=o||null;else if(Array.isArray(o)){const e=ar(a);t[i]=e.filter((e=>o.includes(String(e))))}else t[i]=null})),t},mr=(e,t,n)=>t.reduce(((e,o)=>{const{column:{onFilter:r,filters:i},filteredKeys:a}=o;return r&&a&&a.length?e.map((e=>Object.assign({},e))).filter((e=>a.some((o=>{const a=ar(i),l=a.findIndex((e=>String(e)===String(o))),c=-1!==l?a[l]:o;return e[n]&&(e[n]=mr(e[n],t,n)),r(c,e)})))):e}),e),gr=e=>e.flatMap((e=>"children"in e?[e].concat((0,pe.Z)(gr(e.children||[]))):[e]));var hr=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:l,rootClassName:c}=e,s=((0,Kt.ln)("Table"),o.useMemo((()=>gr(r||[])),[r])),[u,d]=o.useState((()=>dr(s,!0))),f=o.useMemo((()=>{const e=dr(s,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:o}=e;void 0!==o?t=!1:n=!1})),t){const e=(s||[]).map(((e,t)=>vn(e,bn(t))));return u.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=s[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[s,u]),p=o.useMemo((()=>pr(f)),[f]),m=e=>{const t=f.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),d(t),i(pr(t),t)};return[e=>fr(t,n,e,f,l,m,a,void 0,c),f,p]};var vr=(e,t,n)=>{const r=o.useRef({});return[function(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){const a=new Map;function l(e){e.forEach(((e,o)=>{const r=n(e,o);a.set(r,e),e&&"object"==typeof e&&t in e&&l(e[t]||[])}))}l(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return null===(i=r.current.kvMap)||void 0===i?void 0:i.get(o)}]},br=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:yr}))),s=En(l,a,{total:i>0?i:e}),u=Math.ceil((i||e)/s.pageSize);s.current>u&&(s.current=u||1);const d=(e,t)=>{c({current:null!=e?e:1,pageSize:t||s.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:(e,o)=>{var r;n&&(null===(r=n.onChange)||void 0===r||r.call(n,e,o)),d(e,o),t(e,o||(null==s?void 0:s.pageSize))}}),d]},wr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Cr=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:wr}))};var Sr=o.forwardRef(Cr),Er={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},kr=function(e,t){return o.createElement(wn.Z,(0,p.Z)({},e,{ref:t,icon:Er}))};var Ir=o.forwardRef(kr),jr=n(55544);const Nr="ascend",Mr="descend",Zr=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,Or=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,$r=(e,t,n)=>{let o=[];const r=(e,t)=>{o.push({column:e,key:vn(e,t),multiplePriority:Zr(e),sortOrder:e.sortOrder})};return(e||[]).forEach(((e,i)=>{const a=bn(i,n);e.children?("sortOrder"in e&&r(e,a),o=[].concat((0,pe.Z)(o),(0,pe.Z)($r(e.children,t,a)))):e.sorter&&("sortOrder"in e?r(e,a):t&&e.defaultSortOrder&&o.push({column:e,key:vn(e,a),multiplePriority:Zr(e),sortOrder:e.defaultSortOrder}))})),o},Ar=(e,t,n,r,i,a,l,c)=>{const s=(t||[]).map(((t,s)=>{const u=bn(s,c);let d=t;if(d.sorter){const c=d.sortDirections||i,s=void 0===d.showSorterTooltip?l:d.showSorterTooltip,f=vn(d,u),p=n.find((e=>{let{key:t}=e;return t===f})),m=p?p.sortOrder:null,g=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(c,m);let h;if(t.sortIcon)h=t.sortIcon({sortOrder:m});else{const t=c.includes(Nr)&&o.createElement(Ir,{className:I()(`${e}-column-sorter-up`,{active:m===Nr})}),n=c.includes(Mr)&&o.createElement(Sr,{className:I()(`${e}-column-sorter-down`,{active:m===Mr})});h=o.createElement("span",{className:I()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},o.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:v,triggerAsc:b,triggerDesc:y}=a||{};let x=v;g===Mr?x=y:g===Nr&&(x=b);const w="object"==typeof s?Object.assign({title:x},s):{title:x};d=Object.assign(Object.assign({},d),{className:I()(d.className,{[`${e}-column-sort`]:m}),title:n=>{const r=`${e}-column-sorters`,i=o.createElement("span",{className:`${e}-column-title`},yn(t.title,n)),a=o.createElement("div",{className:r},i,h);return s?"boolean"!=typeof s&&"sorter-icon"===(null==s?void 0:s.target)?o.createElement("div",{className:`${r} ${e}-column-sorters-tooltip-target-sorter`},i,o.createElement(jr.Z,Object.assign({},w),h)):o.createElement(jr.Z,Object.assign({},w),a):a},onHeaderCell:n=>{var o;const i=(null===(o=t.onHeaderCell)||void 0===o?void 0:o.call(t,n))||{},a=i.onClick,l=i.onKeyDown;i.onClick=e=>{r({column:t,key:f,sortOrder:g,multiplePriority:Zr(t)}),null==a||a(e)},i.onKeyDown=e=>{e.keyCode===Tn.Z.ENTER&&(r({column:t,key:f,sortOrder:g,multiplePriority:Zr(t)}),null==l||l(e))};const c=((e,t)=>{const n=yn(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),s=null==c?void 0:c.toString();return m&&(i["aria-sort"]="ascend"===m?"ascending":"descending"),i["aria-label"]=s||"",i.className=I()(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(null!=c?c:"").toString()),i}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:Ar(e,d.children,n,r,i,a,l,u)})),d}));return s},zr=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Tr=e=>{const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(zr);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},zr(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Pr=(e,t,n)=>{const o=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),r=e.slice(),i=o.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return Or(t)&&n}));return i.length?r.sort(((e,t)=>{for(let n=0;n{const o=e[n];return o?Object.assign(Object.assign({},e),{[n]:Pr(o,t,n)}):e})):r};var Lr=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:l}=e,[c,s]=o.useState($r(n,!0)),u=(e,t)=>{const n=[];return e.forEach(((e,o)=>{const r=bn(o,t);if(n.push(vn(e,r)),Array.isArray(e.children)){const t=u(e.children,r);n.push.apply(n,(0,pe.Z)(t))}})),n},d=o.useMemo((()=>{let e=!0;const t=$r(n,!1);if(!t.length){const e=u(n);return c.filter((t=>{let{key:n}=t;return e.includes(n)}))}const o=[];function r(t){e?o.push(t):o.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),r(t))})),o}),[n,c]),f=o.useMemo((()=>{var e,t;const n=d.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}}),[d]),p=e=>{let t;t=!1!==e.multiplePriority&&d.length&&!1!==d[0].multiplePriority?[].concat((0,pe.Z)(d.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],s(t),l(Tr(t),t)};return[e=>Ar(t,e,d,p,r,i,a),d,f,()=>Tr(d)]};const Rr=(e,t)=>e.map((e=>{const n=Object.assign({},e);return n.title=yn(e.title,t),"children"in n&&(n.children=Rr(n.children,t)),n}));var Br=e=>[o.useCallback((t=>Rr(t,e)),[e])];var Dr=Ve(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o}));var Hr=at(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o})),Wr=n(17835);var Fr=e=>{const{componentCls:t,lineWidth:n,lineType:o,tableBorderColor:r,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:c}=e,s=`${(0,vo.bf)(n)} ${o} ${r}`,u=(e,o,r)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,vo.bf)(c(o).mul(-1).equal())}\n ${(0,vo.bf)(c(c(r).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:s,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:s,borderTop:s,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:s},"> thead":{"> tr:not(:last-child) > th":{borderBottom:s},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:s}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,vo.bf)(c(a).mul(-1).equal())} ${(0,vo.bf)(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:s,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:s,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,vo.bf)(n)} 0 ${(0,vo.bf)(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:s}}}};var Kr=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},yo.vS),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}};var Vr=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}};var qr=e=>{const{componentCls:t,antCls:n,motionDurationSlow:o,lineWidth:r,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:s,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:g,expandIconSize:h,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,x=`${(0,vo.bf)(r)} ${a} ${l}`,w=y(m).sub(r).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:s},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},(0,yo.Nd)(e)),{position:"relative",float:"left",width:h,height:h,color:"inherit",lineHeight:(0,vo.bf)(h),background:c,border:x,borderRadius:u,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:w,insetInlineStart:w,height:r},"&::after":{top:w,bottom:w,insetInlineStart:v,width:r,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${(0,vo.bf)(y(d).mul(-1).equal())} ${(0,vo.bf)(y(f).mul(-1).equal())}`,padding:`${(0,vo.bf)(d)} ${(0,vo.bf)(f)}`}}}};var Xr=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:h,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:w,tableFilterDropdownHeight:C,controlItemBgHover:S,controlItemBgActive:E,boxShadowSecondary:k,filterDropdownMenuBg:I,calc:j}=e,N=`${n}-dropdown`,M=`${t}-filter-dropdown`,Z=`${n}-tree`,O=`${(0,vo.bf)(s)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:j(a).mul(-1).equal(),marginInline:`${(0,vo.bf)(a)} ${(0,vo.bf)(j(m).div(2).mul(-1).equal())}`,padding:`0 ${(0,vo.bf)(a)}`,color:f,fontSize:p,borderRadius:g,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[M]:Object.assign(Object.assign({},(0,yo.Wf)(e)),{minWidth:r,backgroundColor:w,borderRadius:g,boxShadow:k,overflow:"hidden",[`${N}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:I,"&:empty::after":{display:"block",padding:`${(0,vo.bf)(l)} 0`,color:x,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${(0,vo.bf)(l)} 0`,paddingInline:l,[Z]:{padding:0},[`${Z}-treenode ${Z}-node-content-wrapper:hover`]:{backgroundColor:S},[`${Z}-treenode-checkbox-checked ${Z}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:E}}},[`${M}-search`]:{padding:l,borderBottom:O,"&-input":{input:{minWidth:i},[o]:{color:x}}},[`${M}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,vo.bf)(j(l).sub(s).equal())} ${(0,vo.bf)(l)}`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};var Gr=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:c}=e,s=o;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}};var Qr=e=>{const{componentCls:t,antCls:n,margin:o}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${(0,vo.bf)(o)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}};var _r=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${(0,vo.bf)(n)} ${(0,vo.bf)(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${(0,vo.bf)(n)} ${(0,vo.bf)(n)}`}}}}};var Ur=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}};var Yr=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:s,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(r).add(m(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(s).add(m(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(r).add(m(i).div(4)).add(m(a).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,vo.bf)(m(p).div(4).equal()),[o]:{color:l,fontSize:r,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}};var Jr=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:o}=e,r=(e,r,i,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${(0,vo.bf)(r)} ${(0,vo.bf)(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:(0,vo.bf)(o(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${(0,vo.bf)(o(r).mul(-1).equal())} ${(0,vo.bf)(o(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:(0,vo.bf)(o(r).mul(-1).equal()),marginInline:`${(0,vo.bf)(o(n).sub(i).equal())} ${(0,vo.bf)(o(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:(0,vo.bf)(o(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}};var ei=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,headerIconColor:r,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}};var ti=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:s,lineType:u,tableBorderColor:d}=e,f=`${(0,vo.bf)(s)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,vo.bf)(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:o,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}};var ni=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o,calc:r}=e,i=`${(0,vo.bf)(n)} ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${(0,vo.bf)(r(n).mul(-1).equal())} 0 ${o}`}}}};var oi=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:o,lineType:r,tableBorderColor:i,calc:a}=e,l=`${(0,vo.bf)(o)} ${r} ${i}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row, \n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,vo.bf)(o)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(o).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}};const ri=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:c,tableFontSize:s,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:g,tableFooterTextColor:h,tableFooterBg:v,calc:b}=e,y=`${(0,vo.bf)(a)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,yo.dF)()),{[t]:Object.assign(Object.assign({},(0,yo.Wf)(e)),{fontSize:s,background:u,borderRadius:`${(0,vo.bf)(d)} ${(0,vo.bf)(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,vo.bf)(d)} ${(0,vo.bf)(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${(0,vo.bf)(o)} ${(0,vo.bf)(r)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${(0,vo.bf)(o)} ${(0,vo.bf)(r)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:(0,vo.bf)(b(o).mul(-1).equal()),marginInline:`${(0,vo.bf)(b(i).sub(r).equal())}\n ${(0,vo.bf)(b(r).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${(0,vo.bf)(o)} ${(0,vo.bf)(r)}`,color:h,background:v}})}};var ii=(0,Co.I$)("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:o,controlInteractiveSize:r,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:s,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:g,cellPaddingBlockMD:h,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:x,footerBg:w,footerColor:C,headerBorderRadius:S,cellFontSize:E,cellFontSizeMD:k,cellFontSizeSM:I,headerSplitColor:j,fixedHeaderSortActiveBg:N,headerFilterHoverBg:M,filterDropdownBg:Z,expandIconBg:O,selectionColumnWidth:$,stickyScrollBarBg:A,calc:z}=e,T=(0,wo.IX)(e,{tableFontSize:E,tableBg:o,tableRadius:S,tablePaddingVertical:m,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:x,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:C,tableFooterBg:w,tableHeaderCellSplitColor:j,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:s,tableFixedHeaderSortActiveBg:N,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:Z,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:2,zIndexTableSticky:z(2).add(1).equal({unit:!1}),tableFontSizeMiddle:k,tableFontSizeSmall:I,tableSelectionColumnWidth:$,tableExpandIconBg:O,tableExpandColumnWidth:z(r).add(z(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:A,tableScrollThumbBgHover:t,tableScrollBg:n});return[ri(T),Qr(T),ni(T),ei(T),Xr(T),Fr(T),_r(T),qr(T),ni(T),Vr(T),Yr(T),Gr(T),ti(T),Kr(T),Jr(T),Ur(T),oi(T)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:o,colorFillSecondary:r,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:g,fontSizeSM:h,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:x,opacityLoading:w,controlInteractiveSize:C}=e,S=new Wr.t(r).onBackground(n).toHexString(),E=new Wr.t(i).onBackground(n).toHexString(),k=new Wr.t(t).onBackground(n).toHexString(),I=new Wr.t(y),j=new Wr.t(x),N=C/2-b,M=2*N+3*b;return{headerBg:k,headerColor:o,headerSortActiveBg:S,headerSortHoverBg:E,bodySortBg:k,rowHoverBg:k,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:k,footerColor:o,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:S,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-3*b)/2-Math.ceil((1.4*h-3*b)/2),headerIconColor:I.clone().setA(I.a*w).toRgbString(),headerIconHoverColor:j.clone().setA(j.a*w).toRgbString(),expandIconHalfInner:N,expandIconSize:M,expandIconScale:C/M}}),{unitless:{expandIconScale:!0}});const ai=[],li=(e,t)=>{var n,r;const{prefixCls:a,className:l,rootClassName:c,style:s,size:u,bordered:d,dropdownPrefixCls:f,dataSource:p,pagination:m,rowSelection:g,rowKey:h="key",rowClassName:v,columns:b,children:y,childrenColumnName:x,onChange:w,getPopupContainer:C,loading:S,expandIcon:E,expandable:k,expandedRowRender:j,expandIconColumnIndex:N,indentSize:M,scroll:Z,sortDirections:O,locale:$,showSorterTooltip:A={target:"full-header"},virtual:z}=e;(0,Kt.ln)("Table");const T=o.useMemo((()=>b||Se(y)),[b,y]),P=o.useMemo((()=>T.some((e=>e.responsive))),[T]),L=(0,dn.Z)(P),R=o.useMemo((()=>{const e=new Set(Object.keys(L).filter((e=>L[e])));return T.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[T,L]),B=(0,gt.Z)(e,["className","style","columns"]),{locale:D=fn.Z,direction:H,table:W,renderEmpty:F,getPrefixCls:K,getPopupContainer:V}=o.useContext(ln.E_),q=(0,un.Z)(u),X=Object.assign(Object.assign({},D.Table),$),G=p||ai,Q=K("table",a),_=K("dropdown",f),[,U]=(0,gn.ZP)(),Y=(0,sn.Z)(Q),[J,ee,te]=ii(Q,Y),ne=Object.assign(Object.assign({childrenColumnName:x,expandIconColumnIndex:N},k),{expandIcon:null!==(n=null==k?void 0:k.expandIcon)&&void 0!==n?n:null===(r=null==W?void 0:W.expandable)||void 0===r?void 0:r.expandIcon}),{childrenColumnName:oe="children"}=ne,re=o.useMemo((()=>G.some((e=>null==e?void 0:e[oe]))?"nest":j||(null==k?void 0:k.expandedRowRender)?"row":null),[G]),ie={body:o.useRef(null)},ae=function(e){return(t,n)=>{const o=t.querySelector(`.${e}-container`);let r=n;if(o){const e=getComputedStyle(o);r=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return r}}(Q),le=o.useRef(null),ce=o.useRef(null);tn(t,(()=>Object.assign(Object.assign({},ce.current),{nativeElement:le.current})));const se=o.useMemo((()=>"function"==typeof h?h:e=>null==e?void 0:e[h]),[h]),[ue]=vr(G,oe,se),de={},fe=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var o,r,i,a;const l=Object.assign(Object.assign({},de),e);n&&(null===(o=de.resetPagination)||void 0===o||o.call(de),(null===(r=l.pagination)||void 0===r?void 0:r.current)&&(l.pagination.current=1),m&&(null===(i=m.onChange)||void 0===i||i.call(m,1,null===(a=l.pagination)||void 0===a?void 0:a.pageSize))),Z&&!1!==Z.scrollToFirstRowOnChange&&ie.body.current&&an(0,{getContainer:()=>ie.body.current}),null==w||w(l.pagination,l.filters,l.sorter,{currentDataSource:mr(Pr(G,l.sorterStates,oe),l.filterStates,oe),action:t})},[pe,me,ge,he]=Lr({prefixCls:Q,mergedColumns:R,onSorterChange:(e,t)=>{fe({sorter:e,sorterStates:t},"sort",!1)},sortDirections:O||["ascend","descend"],tableLocale:X,showSorterTooltip:A}),ve=o.useMemo((()=>Pr(G,me,oe)),[G,me]);de.sorter=he(),de.sorterStates=me;const[be,ye,xe]=hr({prefixCls:Q,locale:X,dropdownPrefixCls:_,mergedColumns:R,onFilterChange:(e,t)=>{fe({filters:e,filterStates:t},"filter",!0)},getPopupContainer:C||V,rootClassName:I()(c,Y)}),we=mr(ve,ye,oe);de.filters=xe,de.filterStates=ye;const Ce=o.useMemo((()=>{const e={};return Object.keys(xe).forEach((t=>{null!==xe[t]&&(e[t]=xe[t])})),Object.assign(Object.assign({},ge),{filters:e})}),[ge,xe]),[Ee]=Br(Ce),[ke,Ie]=xr(we.length,((e,t)=>{fe({pagination:Object.assign(Object.assign({},de.pagination),{current:e,pageSize:t})},"paginate")}),m);de.pagination=!1===m?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},o=t&&"object"==typeof t?t:{};return Object.keys(o).forEach((t=>{const o=e[t];"function"!=typeof o&&(n[t]=o)})),n}(ke,m),de.resetPagination=Ie;const je=o.useMemo((()=>{if(!1===m||!ke.pageSize)return we;const{current:e=1,total:t,pageSize:n=yr}=ke;return we.lengthn?we.slice((e-1)*n,e*n):we:we.slice((e-1)*n,e*n)}),[!!m,we,null==ke?void 0:ke.current,null==ke?void 0:ke.pageSize,null==ke?void 0:ke.total]),[Ne,Me]=en({prefixCls:Q,data:we,pageData:je,getRowKey:se,getRecordByKey:ue,expandType:re,childrenColumnName:oe,locale:X,getPopupContainer:C||V},g);ne.__PARENT_RENDER_ICON__=ne.expandIcon,ne.expandIcon=ne.expandIcon||E||hn(X),"nest"===re&&void 0===ne.expandIconColumnIndex?ne.expandIconColumnIndex=g?1:0:ne.expandIconColumnIndex>0&&g&&(ne.expandIconColumnIndex-=1),"number"!=typeof ne.indentSize&&(ne.indentSize="number"==typeof M?M:15);const Ze=o.useCallback((e=>Ee(Ne(be(pe(e))))),[pe,be,Ne]);let Oe,$e,Ae;if(!1!==m&&(null==ke?void 0:ke.total)){let e;e=ke.size?ke.size:"small"===q||"middle"===q?"small":void 0;const t=t=>o.createElement(pn.Z,Object.assign({},ke,{className:I()(`${Q}-pagination ${Q}-pagination-${t}`,ke.className),size:e})),n="rtl"===H?"left":"right",{position:r}=ke;if(null!==r&&Array.isArray(r)){const e=r.find((e=>e.includes("top"))),o=r.find((e=>e.includes("bottom"))),i=r.every((e=>"none"==`${e}`));e||o||i||($e=t(n)),e&&(Oe=t(e.toLowerCase().replace("top",""))),o&&($e=t(o.toLowerCase().replace("bottom","")))}else $e=t(n)}"boolean"==typeof S?Ae={spinning:S}:"object"==typeof S&&(Ae=Object.assign({spinning:!0},S));const ze=I()(te,Y,`${Q}-wrapper`,null==W?void 0:W.className,{[`${Q}-wrapper-rtl`]:"rtl"===H},l,c,ee),Te=Object.assign(Object.assign({},null==W?void 0:W.style),s),Pe=void 0!==(null==$?void 0:$.emptyText)?$.emptyText:(null==F?void 0:F("Table"))||o.createElement(cn.Z,{componentName:"Table"}),Le=z?Hr:Dr,Re={},Be=o.useMemo((()=>{const{fontSize:e,lineHeight:t,lineWidth:n,padding:o,paddingXS:r,paddingSM:i}=U,a=Math.floor(e*t);switch(q){case"middle":return 2*i+a+n;case"small":return 2*r+a+n;default:return 2*o+a+n}}),[U,q]);return z&&(Re.listItemHeight=Be),J(o.createElement("div",{ref:le,className:ze,style:Te},o.createElement(mn.Z,Object.assign({spinning:!1},Ae),Oe,o.createElement(Le,Object.assign({},Re,B,{ref:ce,columns:R,direction:H,expandable:ne,prefixCls:Q,className:I()({[`${Q}-middle`]:"middle"===q,[`${Q}-small`]:"small"===q,[`${Q}-bordered`]:d,[`${Q}-empty`]:0===G.length},te,Y,ee),data:je,rowKey:se,rowClassName:(e,t,n)=>{let o;return o="function"==typeof v?I()(v(e,t,n)):I()(v),I()({[`${Q}-row-selected`]:Me.has(se(e,t))},o)},emptyText:Pe,internalHooks:i,internalRefs:ie,transformColumns:Ze,getContainerWidth:ae})),$e)))};var ci=o.forwardRef(li);const si=(e,t)=>{const n=o.useRef(0);return n.current+=1,o.createElement(ci,Object.assign({},e,{ref:t,_renderTimes:n.current}))},ui=o.forwardRef(si);ui.SELECTION_COLUMN=Gt,ui.EXPAND_COLUMN=r,ui.SELECTION_ALL=Qt,ui.SELECTION_INVERT=_t,ui.SELECTION_NONE=Ut,ui.Column=lt,ui.ColumnGroup=ct,ui.Summary=K;var di=ui},52017:function(e,t,n){n.d(t,{Z:function(){return Ze}});var o=n(59301),r=n(99267),i=n(18785),a=n(14809),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},c=n(7657),s=function(e,t){return o.createElement(c.Z,(0,a.Z)({},e,{ref:t,icon:l}))};var u=o.forwardRef(s),d=n(92310),f=n.n(d),p=n(4635),m=n(20439),g=n(50298),h=n(93664),v=n(62646),b=n(18929),y=n(49658),x=(0,o.createContext)(null),w=n(95190),C=n(29301),S=n(6089),E=n(8654),k=n(16089),I=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,i=e.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=(0,o.useState)(),d=(0,g.Z)(u,2),f=d[0],p=d[1],m=(0,o.useRef)(),h=o.useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function v(){k.Z.cancel(m.current)}return(0,o.useEffect)((function(){var e={};if(t)if(n){e.width=h(t.width);var o=r?"right":"left";"start"===s&&(e[o]=t[o]),"center"===s&&(e[o]=t[o]+t.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[o]=t[o]+t.width,e.transform="translateX(-100%)")}else e.height=h(t.height),"start"===s&&(e.top=t.top),"center"===s&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return v(),m.current=(0,k.Z)((function(){p(e)})),v}),[t,n,r,s,h]),{style:f}},j={width:0,height:0,left:0,top:0};function N(e,t){var n=o.useRef(e),r=o.useState({}),i=(0,g.Z)(r,2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,i({})}]}var M=Math.pow(.995,20);var Z=n(34280);function O(e){var t=(0,o.useState)(0),n=(0,g.Z)(t,2),r=n[0],i=n[1],a=(0,o.useRef)(0),l=(0,o.useRef)();return l.current=e,(0,Z.o)((function(){var e;null===(e=l.current)||void 0===e||e.call(l)}),[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}var $={width:0,height:0,left:0,top:0,right:0};function A(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function z(e){return String(e).replace(/"/g,"TABS_DQ")}function T(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var P=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return r&&!1!==r.showAdd?o.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null})),L=P;var R=o.forwardRef((function(e,t){var n,r=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==(0,h.Z)(a)||o.isValidElement(a)?l.right=a:l=a,"right"===r&&(n=l.right),"left"===r&&(n=l.left),n?o.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null})),B=n(96478),D=n(28321),H=n(10228),W=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,l=e.locale,c=e.mobile,s=e.more,u=void 0===s?{}:s,d=e.style,m=e.className,h=e.editable,v=e.tabBarGutter,b=e.rtl,y=e.removeAriaLabel,x=e.onTabClick,w=e.getPopupContainer,C=e.popupClassName,S=(0,o.useState)(!1),E=(0,g.Z)(S,2),k=E[0],I=E[1],j=(0,o.useState)(null),N=(0,g.Z)(j,2),M=N[0],Z=N[1],O=u.icon,$=void 0===O?"More":O,A="".concat(r,"-more-popup"),z="".concat(n,"-dropdown"),P=null!==M?"".concat(A,"-").concat(M):null,R=null==l?void 0:l.dropdownAriaLabel;var W=o.createElement(D.ZP,{onClick:function(e){var t=e.key,n=e.domEvent;x(t,n),I(!1)},prefixCls:"".concat(z,"-menu"),id:A,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[M],"aria-label":void 0!==R?R:"expanded dropdown"},i.map((function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,a=e.key,l=e.label,c=T(t,i,h,n);return o.createElement(D.sN,{key:a,id:"".concat(A,"-").concat(a),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(a),disabled:n},o.createElement("span",null,l),c&&o.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(z,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),h.onEdit("remove",{key:t,event:e})}(e,a)}},i||h.removeIcon||"×"))})));function F(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===M}))||0,o=t.length,r=0;rt?"left":"right"})})),te=(0,g.Z)(ee,2),ne=te[0],oe=te[1],re=N(0,(function(e,t){!J&&Z&&Z({direction:e>t?"top":"bottom"})})),ie=(0,g.Z)(re,2),ae=ie[0],le=ie[1],ce=(0,o.useState)([0,0]),se=(0,g.Z)(ce,2),ue=se[0],de=se[1],fe=(0,o.useState)([0,0]),pe=(0,g.Z)(fe,2),me=pe[0],ge=pe[1],he=(0,o.useState)([0,0]),ve=(0,g.Z)(he,2),be=ve[0],ye=ve[1],xe=(0,o.useState)([0,0]),we=(0,g.Z)(xe,2),Ce=we[0],Se=we[1],Ee=function(e){var t=(0,o.useRef)([]),n=(0,o.useState)({}),r=(0,g.Z)(n,2)[1],i=(0,o.useRef)("function"==typeof e?e():e),a=O((function(){var e=i.current;t.current.forEach((function(t){e=t(e)})),t.current=[],i.current=e,r({})}));return[i.current,function(e){t.current.push(e),a()}]}(new Map),ke=(0,g.Z)(Ee,2),Ie=ke[0],je=ke[1],Ne=function(e,t,n){return(0,o.useMemo)((function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||j,i=r.left+r.width,a=0;aLe?Le:e}J&&s?(Pe=0,Le=Math.max(0,Ze-ze)):(Pe=Math.min(0,ze-Ze),Le=0);var Be=(0,o.useRef)(null),De=(0,o.useState)(),He=(0,g.Z)(De,2),We=He[0],Fe=He[1];function Ke(){Fe(Date.now())}function Ve(){Be.current&&clearTimeout(Be.current)}!function(e,t){var n=(0,o.useState)(),r=(0,g.Z)(n,2),i=r[0],a=r[1],l=(0,o.useState)(0),c=(0,g.Z)(l,2),s=c[0],u=c[1],d=(0,o.useState)(0),f=(0,g.Z)(d,2),p=f[0],m=f[1],h=(0,o.useState)(),v=(0,g.Z)(h,2),b=v[0],y=v[1],x=(0,o.useRef)(),w=(0,o.useRef)(),C=(0,o.useRef)(null);C.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;a({x:n,y:o}),window.clearInterval(x.current)},onTouchMove:function(e){if(i){var n=e.touches[0],o=n.screenX,r=n.screenY;a({x:o,y:r});var l=o-i.x,c=r-i.y;t(l,c);var d=Date.now();u(d),m(d-s),y({x:l,y:c})}},onTouchEnd:function(){if(i&&(a(null),y(null),b)){var e=b.x/p,n=b.y/p,o=Math.abs(e),r=Math.abs(n);if(Math.max(o,r)<.1)return;var l=e,c=n;x.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(x.current):t(20*(l*=M),20*(c*=M))}),20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,r=0,i=Math.abs(n),a=Math.abs(o);i===a?r="x"===w.current?n:o:i>a?(r=n,w.current="x"):(r=o,w.current="y"),t(-r,-r)&&e.preventDefault()}},o.useEffect((function(){function t(e){C.current.onTouchMove(e)}function n(e){C.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){C.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){C.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(Q,(function(e,t){function n(e,t){e((function(e){return Re(e+t)}))}return!!Ae&&(J?n(oe,e):n(le,t),Ve(),Ke(),!0)})),(0,o.useEffect)((function(){return Ve(),We&&(Be.current=setTimeout((function(){Fe(0)}),100)),Ve}),[We]);var qe=function(e,t,n,r,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(n)):(c="height",s="top",u=-n),(0,o.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,o=n,r=0;rMath.floor(u+t)){o=r-1;break}}for(var a=0,l=n-1;l>=0;l-=1)if((e.get(d[l].key)||$)[s]=o?[0,0]:[a,o]}),[e,t,r,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(Ne,ze,J?ne:ae,Ze,Oe,$e,(0,m.Z)((0,m.Z)({},e),{},{tabs:H})),Xe=(0,g.Z)(qe,2),Ge=Xe[0],Qe=Xe[1],_e=(0,S.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=Ne.get(e)||{width:0,height:0,left:0,right:0,top:0};if(J){var n=ne;s?t.rightne+ze&&(n=t.right+t.width-ze):t.left<-ne?n=-t.left:t.left+t.width>-ne+ze&&(n=-(t.left+t.width-ze)),le(0),oe(Re(n))}else{var o=ae;t.top<-ae?o=-t.top:t.top+t.height>-ae+ze&&(o=-(t.top+t.height-ze)),oe(0),le(Re(o))}})),Ue=(0,o.useState)(),Ye=(0,g.Z)(Ue,2),Je=Ye[0],et=Ye[1],tt=(0,o.useState)(!1),nt=(0,g.Z)(tt,2),ot=nt[0],rt=nt[1],it=H.filter((function(e){return!e.disabled})).map((function(e){return e.key})),at=function(e){var t=it.indexOf(Je||c),n=it.length,o=it[(t+e+n)%n];et(o)},lt=function(e){var t=e.code,n=s&&J,o=it[0],r=it[it.length-1];switch(t){case"ArrowLeft":J&&at(n?1:-1);break;case"ArrowRight":J&&at(n?-1:1);break;case"ArrowUp":e.preventDefault(),J||at(-1);break;case"ArrowDown":e.preventDefault(),J||at(1);break;case"Home":e.preventDefault(),et(o);break;case"End":e.preventDefault(),et(r);break;case"Enter":case"Space":e.preventDefault(),k(c,e);break;case"Backspace":case"Delete":var i=it.indexOf(Je),a=H.find((function(e){return e.key===Je}));T(null==a?void 0:a.closable,null==a?void 0:a.closeIcon,d,null==a?void 0:a.disabled)&&(e.preventDefault(),e.stopPropagation(),d.onEdit("remove",{key:Je,event:e}),i===it.length-1?at(-1):at(1))}},ct={};J?ct[s?"marginRight":"marginLeft"]=b:ct.marginTop=b;var st=H.map((function(e,t){var n=e.key;return o.createElement(K,{id:i,prefixCls:D,key:n,tab:e,style:0===t?void 0:ct,closable:e.closable,editable:d,active:n===c,focus:n===Je,renderWrapper:y,removeAriaLabel:null==h?void 0:h.removeAriaLabel,tabCount:it.length,currentPosition:t+1,onClick:function(e){k(n,e)},onKeyDown:lt,onFocus:function(){ot||et(n),_e(n),Ke(),Q.current&&(s||(Q.current.scrollLeft=0),Q.current.scrollTop=0)},onBlur:function(){et(void 0)},onMouseDown:function(){rt(!0)},onMouseUp:function(){rt(!1)}})})),ut=function(){return je((function(){var e,t=new Map,n=null===(e=_.current)||void 0===e?void 0:e.getBoundingClientRect();return H.forEach((function(e){var o,r=e.key,i=null===(o=_.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat(z(r),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,o=e.offsetHeight,r=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.left,u=a.top;return Math.abs(l-n)<1?[l,c,s-t.left,u-t.top]:[n,o,i,r]}(i,n),l=(0,g.Z)(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(r,{width:c,height:s,left:u,top:d})}})),t}))};(0,o.useEffect)((function(){ut()}),[H.map((function(e){return e.key})).join("_")]);var dt=O((function(){var e=V(W),t=V(X),n=V(G);de([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=V(Y);ye(o);var r=V(U);Se(r);var i=V(_);ge([i[0]-o[0],i[1]-o[1]]),ut()})),ft=H.slice(0,Ge),pt=H.slice(Qe+1),mt=[].concat((0,w.Z)(ft),(0,w.Z)(pt)),gt=Ne.get(c),ht=I({activeTabOffset:gt,horizontal:J,indicator:P,rtl:s}).style;(0,o.useEffect)((function(){_e()}),[c,Pe,Le,A(gt),A(Ne),J]),(0,o.useEffect)((function(){dt()}),[s]);var vt,bt,yt,xt,wt=!!mt.length,Ct="".concat(D,"-nav-wrap");return J?s?(bt=ne>0,vt=ne!==Le):(vt=ne<0,bt=ne!==Pe):(yt=ae<0,xt=ae!==Pe),o.createElement(C.Z,{onResize:dt},o.createElement("div",{ref:(0,E.x1)(t,W),role:"tablist","aria-orientation":J?"horizontal":"vertical",className:f()("".concat(D,"-nav"),n),style:r,onKeyDown:function(){Ke()}},o.createElement(R,{ref:X,position:"left",extra:u,prefixCls:D}),o.createElement(C.Z,{onResize:dt},o.createElement("div",{className:f()(Ct,(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(Ct,"-ping-left"),vt),"".concat(Ct,"-ping-right"),bt),"".concat(Ct,"-ping-top"),yt),"".concat(Ct,"-ping-bottom"),xt)),ref:Q},o.createElement(C.Z,{onResize:dt},o.createElement("div",{ref:_,className:"".concat(D,"-nav-list"),style:{transform:"translate(".concat(ne,"px, ").concat(ae,"px)"),transition:We?"none":void 0}},st,o.createElement(L,{ref:Y,prefixCls:D,locale:h,editable:d,style:(0,m.Z)((0,m.Z)({},0===st.length?void 0:ct),{},{visibility:wt?"hidden":null})}),o.createElement("div",{className:f()("".concat(D,"-ink-bar"),(0,p.Z)({},"".concat(D,"-ink-bar-animated"),l.inkBar)),style:ht}))))),o.createElement(F,(0,a.Z)({},e,{removeAriaLabel:null==h?void 0:h.removeAriaLabel,ref:U,prefixCls:D,tabs:mt,className:!wt&&Te,tabMoving:!!We})),o.createElement(R,{ref:G,position:"right",extra:u,prefixCls:D})))})),G=X,Q=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,l=e.active,c=e.tabKey,s=e.children;return o.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!l,style:i,className:f()(n,l&&"".concat(n,"-active"),r),ref:t},s)}));var _=Q,U=["renderTabBar"],Y=["label","key"];var J=function(e){var t=e.renderTabBar,n=(0,v.Z)(e,U),r=o.useContext(x).tabs;return t?t((0,m.Z)((0,m.Z)({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=(0,v.Z)(e,Y);return o.createElement(_,(0,a.Z)({tab:t,key:n,tabKey:n},r))}))}),G):o.createElement(G,n)},ee=n(77900),te=["key","forceRender","style","className","destroyInactiveTabPane"],ne=function(e){var t=e.id,n=e.activeKey,r=e.animated,i=e.tabPosition,l=e.destroyInactiveTabPane,c=o.useContext(x),s=c.prefixCls,u=c.tabs,d=r.tabPane,g="".concat(s,"-tabpane");return o.createElement("div",{className:f()("".concat(s,"-content-holder"))},o.createElement("div",{className:f()("".concat(s,"-content"),"".concat(s,"-content-").concat(i),(0,p.Z)({},"".concat(s,"-content-animated"),d))},u.map((function(e){var i=e.key,c=e.forceRender,s=e.style,u=e.className,p=e.destroyInactiveTabPane,h=(0,v.Z)(e,te),b=i===n;return o.createElement(ee.ZP,(0,a.Z)({key:i,visible:b,forceRender:c,removeOnLeave:!(!l&&!p),leavedClassName:"".concat(g,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,l=e.className;return o.createElement(_,(0,a.Z)({},h,{prefixCls:g,id:t,tabKey:i,animated:d,active:b,style:(0,m.Z)((0,m.Z)({},s),r),className:f()(u,l),ref:n}))}))}))))};n(48736);var oe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],re=0,ie=o.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,i=void 0===r?"rc-tabs":r,l=e.className,c=e.items,s=e.direction,u=e.activeKey,d=e.defaultActiveKey,w=e.editable,C=e.animated,S=e.tabPosition,E=void 0===S?"top":S,k=e.tabBarGutter,I=e.tabBarStyle,j=e.tabBarExtraContent,N=e.locale,M=e.more,Z=e.destroyInactiveTabPane,O=e.renderTabBar,$=e.onChange,A=e.onTabClick,z=e.onTabScroll,T=e.getPopupContainer,P=e.popupClassName,L=e.indicator,R=(0,v.Z)(e,oe),B=o.useMemo((function(){return(c||[]).filter((function(e){return e&&"object"===(0,h.Z)(e)&&"key"in e}))}),[c]),D="rtl"===s,H=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,m.Z)({inkBar:!0},"object"===(0,h.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(C),W=(0,o.useState)(!1),F=(0,g.Z)(W,2),K=F[0],V=F[1];(0,o.useEffect)((function(){V((0,y.Z)())}),[]);var q=(0,b.Z)((function(){var e;return null===(e=B[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:d}),X=(0,g.Z)(q,2),G=X[0],Q=X[1],_=(0,o.useState)((function(){return B.findIndex((function(e){return e.key===G}))})),U=(0,g.Z)(_,2),Y=U[0],ee=U[1];(0,o.useEffect)((function(){var e,t=B.findIndex((function(e){return e.key===G}));-1===t&&(t=Math.max(0,Math.min(Y,B.length-1)),Q(null===(e=B[t])||void 0===e?void 0:e.key));ee(t)}),[B.map((function(e){return e.key})).join("_"),G,Y]);var te=(0,b.Z)(null,{value:n}),ie=(0,g.Z)(te,2),ae=ie[0],le=ie[1];(0,o.useEffect)((function(){n||(le("rc-tabs-".concat(re)),re+=1)}),[]);var ce={id:ae,activeKey:G,animated:H,tabPosition:E,rtl:D,mobile:K},se=(0,m.Z)((0,m.Z)({},ce),{},{editable:w,locale:N,more:M,tabBarGutter:k,onTabClick:function(e,t){null==A||A(e,t);var n=e!==G;Q(e),n&&(null==$||$(e))},onTabScroll:z,extra:j,style:I,panes:null,getPopupContainer:T,popupClassName:P,indicator:L});return o.createElement(x.Provider,{value:{tabs:B,prefixCls:i}},o.createElement("div",(0,a.Z)({ref:t,id:n,className:f()(i,"".concat(i,"-").concat(E),(0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(i,"-mobile"),K),"".concat(i,"-editable"),w),"".concat(i,"-rtl"),D),l)},R),o.createElement(J,(0,a.Z)({},se,{renderTabBar:O})),o.createElement(ne,(0,a.Z)({destroyInactiveTabPane:Z},ce,{animated:H}))))}));var ae=ie,le=n(48755),ce=n(83397),se=n(31756),ue=n(86641);const de={motionAppear:!1,motionEnter:!0,motionLeave:!0};var fe=n(11592),pe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,be.oN)(e,"slide-up"),(0,be.oN)(e,"slide-down")]]};const xe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:o,cardGutter:r,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${(0,me.bf)(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},(0,ge.oN)(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,me.bf)(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,me.bf)(e.borderRadiusLG)} ${(0,me.bf)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,me.bf)(e.borderRadiusLG)} ${(0,me.bf)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,me.bf)(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,me.bf)(e.borderRadiusLG)} 0 0 ${(0,me.bf)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,me.bf)(e.borderRadiusLG)} ${(0,me.bf)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},we=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,ge.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,me.bf)(o)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ge.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,me.bf)(e.paddingXXS)} ${(0,me.bf)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Ce=e=>{const{componentCls:t,margin:n,colorBorderSecondary:o,horizontalMargin:r,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,me.bf)(e.lineWidth)} ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,me.bf)(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,me.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,me.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Se=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:o,horizontalItemPaddingSM:r,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,me.bf)(e.borderRadius)} ${(0,me.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,me.bf)(e.borderRadius)} ${(0,me.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,me.bf)(e.borderRadius)} ${(0,me.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,me.bf)(e.borderRadius)} 0 0 ${(0,me.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}}}}}},Ee=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:o,iconCls:r,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},(0,ge.Qy)(e)),"&:hover":{color:o},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-focus ${s}-btn`]:Object.assign({},(0,ge.oN)(e)),[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${r}`]:{margin:0},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},ke=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:o,cardGutter:r,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,me.bf)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,me.bf)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,me.bf)(i(e.marginXXS).mul(-1).equal())},[o]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ie=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:o,cardGutter:r,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:o,marginLeft:{_skip_check_:!0,value:r},padding:(0,me.bf)(e.paddingXS),background:"transparent",border:`${(0,me.bf)(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${(0,me.bf)(e.borderRadiusLG)} ${(0,me.bf)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},(0,ge.Qy)(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Ee(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},(0,ge.Qy)(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}};var je=(0,he.I$)("Tabs",(e=>{const t=(0,ve.IX)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,me.bf)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,me.bf)(e.horizontalItemGutter)}`});return[Se(t),ke(t),Ce(t),we(t),xe(t),Ie(t),ye(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));var Ne=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var t,n,a,l,c,s,d,p,m,g,h;const{type:v,className:b,rootClassName:y,size:x,onEdit:w,hideAdd:C,centered:S,addIcon:E,removeIcon:k,moreIcon:I,more:j,popupClassName:N,children:M,items:Z,animated:O,style:$,indicatorSize:A,indicator:z}=e,T=Ne(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:P}=T,{direction:L,tabs:R,getPrefixCls:B,getPopupContainer:D}=o.useContext(le.E_),H=B("tabs",P),W=(0,ce.Z)(H),[F,K,V]=je(H,W);let q;"editable-card"===v&&(q={onEdit:(e,t)=>{let{key:n,event:o}=t;null==w||w("add"===e?o:n,e)},removeIcon:null!==(t=null!=k?k:null==R?void 0:R.removeIcon)&&void 0!==t?t:o.createElement(r.Z,null),addIcon:(null!=E?E:null==R?void 0:R.addIcon)||o.createElement(u,null),showAdd:!0!==C});const X=B();const G=(0,se.Z)(x),Q=function(e,t){return e||function(e){return e.filter((e=>e))}((0,fe.Z)(t).map((e=>{if(o.isValidElement(e)){const{key:t,props:n}=e,o=n||{},{tab:r}=o,i=pe(o,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:r})}return null})))}(Z,M),_=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},de),{motionName:(0,ue.m)(e,"switch")})),t}(H,O),U=Object.assign(Object.assign({},null==R?void 0:R.style),$),Y={align:null!==(n=null==z?void 0:z.align)&&void 0!==n?n:null===(a=null==R?void 0:R.indicator)||void 0===a?void 0:a.align,size:null!==(d=null!==(c=null!==(l=null==z?void 0:z.size)&&void 0!==l?l:A)&&void 0!==c?c:null===(s=null==R?void 0:R.indicator)||void 0===s?void 0:s.size)&&void 0!==d?d:null==R?void 0:R.indicatorSize};return F(o.createElement(ae,Object.assign({direction:L,getPopupContainer:D},T,{items:Q,className:f()({[`${H}-${G}`]:G,[`${H}-card`]:["card","editable-card"].includes(v),[`${H}-editable-card`]:"editable-card"===v,[`${H}-centered`]:S},null==R?void 0:R.className,b,y,K,V,W),popupClassName:f()(N,K,V,W),style:U,editable:q,more:Object.assign({icon:null!==(h=null!==(g=null!==(m=null===(p=null==R?void 0:R.more)||void 0===p?void 0:p.icon)&&void 0!==m?m:null==R?void 0:R.moreIcon)&&void 0!==g?g:I)&&void 0!==h?h:o.createElement(i.Z,null),transitionName:`${X}-slide-up`},j),prefixCls:H,animated:_,indicator:Y})))};Me.TabPane=()=>null;var Ze=Me},55544:function(e,t,n){n.d(t,{Z:function(){return X}});var o=n(59301),r=n(92310),i=n.n(r);function a(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,l=e.bodyClassName,c=e.className,s=e.style;return o.createElement("div",{className:i()("".concat(n,"-content"),c),style:s},o.createElement("div",{className:i()("".concat(n,"-inner"),l),id:r,role:"tooltip",style:a},"function"==typeof t?t():t))}var l=n(14809),c=n(20439),s=n(62646),u=n(65352),d={shiftX:64,adjustY:1},f={adjustX:1,shiftY:!0},p=[0,0],m={left:{points:["cr","cl"],overflow:f,offset:[-4,0],targetOffset:p},right:{points:["cl","cr"],overflow:f,offset:[4,0],targetOffset:p},top:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:p},bottom:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:p},topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:p},leftTop:{points:["tr","tl"],overflow:f,offset:[-4,0],targetOffset:p},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:p},rightTop:{points:["tl","tr"],overflow:f,offset:[4,0],targetOffset:p},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:p},rightBottom:{points:["bl","br"],overflow:f,offset:[4,0],targetOffset:p},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:p},leftBottom:{points:["br","bl"],overflow:f,offset:[-4,0],targetOffset:p}},g=n(80402),h=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],v=function(e,t){var n=e.overlayClassName,r=e.trigger,d=void 0===r?["hover"]:r,f=e.mouseEnterDelay,p=void 0===f?0:f,v=e.mouseLeaveDelay,b=void 0===v?.1:v,y=e.overlayStyle,x=e.prefixCls,w=void 0===x?"rc-tooltip":x,C=e.children,S=e.onVisibleChange,E=e.afterVisibleChange,k=e.transitionName,I=e.animation,j=e.motion,N=e.placement,M=void 0===N?"right":N,Z=e.align,O=void 0===Z?{}:Z,$=e.destroyTooltipOnHide,A=void 0!==$&&$,z=e.defaultVisible,T=e.getTooltipContainer,P=e.overlayInnerStyle,L=(e.arrowContent,e.overlay),R=e.id,B=e.showArrow,D=void 0===B||B,H=e.classNames,W=e.styles,F=(0,s.Z)(e,h),K=(0,g.Z)(R),V=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,(function(){return V.current}));var q=(0,c.Z)({},F);"visible"in e&&(q.popupVisible=e.visible);var X,G,Q;return o.createElement(u.Z,(0,l.Z)({popupClassName:i()(n,null==H?void 0:H.root),prefixCls:w,popup:function(){return o.createElement(a,{key:"content",prefixCls:w,id:K,bodyClassName:null==H?void 0:H.body,overlayInnerStyle:(0,c.Z)((0,c.Z)({},P),null==W?void 0:W.body)},L)},action:d,builtinPlacements:m,popupPlacement:M,ref:V,popupAlign:O,getPopupContainer:T,onPopupVisibleChange:S,afterPopupVisibleChange:E,popupTransitionName:k,popupAnimation:I,popupMotion:j,defaultPopupVisible:z,autoDestroy:A,mouseLeaveDelay:b,popupStyle:(0,c.Z)((0,c.Z)({},y),null==W?void 0:W.root),mouseEnterDelay:p,arrow:D},q),(X=o.Children.only(C),G=(null==X?void 0:X.props)||{},Q=(0,c.Z)((0,c.Z)({},G),{},{"aria-describedby":L?K:null}),o.cloneElement(C,Q)))},b=(0,o.forwardRef)(v),y=n(18929),x=n(62487),w=n(75030),C=n(86641),S=n(52838),E=n(22703),k=n(32383),I=n(55743),j=n(57700),N=n(48755),M=n(66604),Z=n(63356),O=n(34925),$=n(37645),A=n(36305),z=n(34998);function T(e,t){return z.i.reduce(((n,o)=>{const r=e[`${o}1`],i=e[`${o}3`],a=e[`${o}6`],l=e[`${o}7`];return Object.assign(Object.assign({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}var P=n(51636),L=n(16931);const R=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:o,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:c,boxShadowSecondary:s,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p}=e,m=t(a).add(p).add(f).equal(),g=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Z.Wf)(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:o,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:g,minHeight:c,padding:`${(0,M.bf)(e.calc(u).div(2).equal())} ${(0,M.bf)(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:s,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,$.qN)}},[`${n}-content`]:{position:"relative"}}),T(e,((e,t)=>{let{darkColor:o}=t;return{[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:o},[`${n}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},(0,$.ZP)(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},B=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,$.wZ)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,A.w)((0,P.IX)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var D=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=(0,L.I$)("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=(0,P.IX)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[R(r),(0,O._y)(e,"zoom-big-fast")]}),B,{resetStyle:!1,injectStyle:t});return n(e)},H=n(95190);const W=z.i.map((e=>`${e}-inverse`));function F(e,t){const n=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?[].concat((0,H.Z)(W),(0,H.Z)(z.i)).includes(e):z.i.includes(e)}(t),o=i()({[`${e}-${t}`]:t&&n}),r={},a={};return t&&!n&&(r.background=t,a["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:a}}var K=e=>{const{prefixCls:t,className:n,placement:r="top",title:l,color:c,overlayInnerStyle:s}=e,{getPrefixCls:u}=o.useContext(N.E_),d=u("tooltip",t),[f,p,m]=D(d),g=F(d,c),h=g.arrowStyle,v=Object.assign(Object.assign({},s),g.overlayStyle),b=i()(p,m,d,`${d}-pure`,`${d}-placement-${r}`,n,g.className);return f(o.createElement("div",{className:b,style:h},o.createElement("div",{className:`${d}-arrow`}),o.createElement(a,Object.assign({},e,{className:p,prefixCls:d,overlayInnerStyle:v}),l)))},V=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var n,r;const{prefixCls:a,openClassName:l,getTooltipContainer:c,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:m,arrow:g=!0,title:h,overlay:v,builtinPlacements:M,arrowPointAtCenter:Z=!1,autoAdjustOverflow:O=!0,motion:$,getPopupContainer:A,placement:z="top",mouseEnterDelay:T=.1,mouseLeaveDelay:P=.1,overlayStyle:L,rootClassName:R,overlayClassName:B,styles:H,classNames:W}=e,K=V(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),q=!!g,[,X]=(0,j.ZP)(),{getPopupContainer:G,getPrefixCls:Q,direction:_,className:U,style:Y,classNames:J,styles:ee}=(0,N.dj)("tooltip"),te=(0,k.ln)("Tooltip"),ne=o.useRef(null),oe=()=>{var e;null===(e=ne.current)||void 0===e||e.forceAlign()};o.useImperativeHandle(t,(()=>{var e,t;return{forceAlign:oe,forcePopupAlign:()=>{te.deprecated(!1,"forcePopupAlign","forceAlign"),oe()},nativeElement:null===(e=ne.current)||void 0===e?void 0:e.nativeElement,popupElement:null===(t=ne.current)||void 0===t?void 0:t.popupElement}}));const[re,ie]=(0,y.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),ae=!h&&!v&&0!==h,le=o.useMemo((()=>{var e,t;let n=Z;return"object"==typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:Z),M||(0,S.Z)({arrowPointAtCenter:n,autoAdjustOverflow:O,arrowWidth:q?X.sizePopupArrow:0,borderRadius:X.borderRadius,offset:X.marginXXS,visibleFirst:!0})}),[Z,g,M,X]),ce=o.useMemo((()=>0===h?h:v||h||""),[v,h]),se=o.createElement(x.Z,{space:!0},"function"==typeof ce?ce():ce),ue=Q("tooltip",a),de=Q(),fe=e["data-popover-inject"];let pe=re;"open"in e||"visible"in e||!ae||(pe=!1);const me=o.isValidElement(d)&&!(0,E.M2)(d)?d:o.createElement("span",null,d),ge=me.props,he=ge.className&&"string"!=typeof ge.className?ge.className:i()(ge.className,l||`${ue}-open`),[ve,be,ye]=D(ue,!fe),xe=F(ue,s),we=xe.arrowStyle,Ce=i()(B,{[`${ue}-rtl`]:"rtl"===_},xe.className,R,be,ye,U,J.root,null==W?void 0:W.root),Se=i()(J.body,null==W?void 0:W.body),[Ee,ke]=(0,w.Cn)("Tooltip",K.zIndex),Ie=o.createElement(b,Object.assign({},K,{zIndex:Ee,showArrow:q,placement:z,mouseEnterDelay:T,mouseLeaveDelay:P,prefixCls:ue,classNames:{root:Ce,body:Se},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},we),ee.root),Y),L),null==H?void 0:H.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},ee.body),u),null==H?void 0:H.body),xe.overlayStyle)},getTooltipContainer:A||c||G,ref:ne,builtinPlacements:le,overlay:se,visible:pe,onVisibleChange:t=>{var n,o;ie(!ae&&t),ae||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(o=e.onVisibleChange)||void 0===o||o.call(e,t))},afterVisibleChange:null!=f?f:p,arrowContent:o.createElement("span",{className:`${ue}-arrow-content`}),motion:{motionName:(0,C.m)(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),pe?(0,E.Tm)(me,{className:he}):me);return ve(o.createElement(I.Z.Provider,{value:ke},Ie))}));q._InternalPanelDoNotUseOrYouWillBeFired=K;var X=q},16632:function(e,t,n){var o=n(14809),r=n(20439),i=n(4635),a=n(50298),l=n(62646),c=n(92310),s=n.n(c),u=n(18929),d=n(59301),f=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],p=(0,d.forwardRef)((function(e,t){var n=e.prefixCls,c=void 0===n?"rc-checkbox":n,p=e.className,m=e.style,g=e.checked,h=e.disabled,v=e.defaultChecked,b=void 0!==v&&v,y=e.type,x=void 0===y?"checkbox":y,w=e.title,C=e.onChange,S=(0,l.Z)(e,f),E=(0,d.useRef)(null),k=(0,d.useRef)(null),I=(0,u.Z)(b,{value:g}),j=(0,a.Z)(I,2),N=j[0],M=j[1];(0,d.useImperativeHandle)(t,(function(){return{focus:function(e){var t;null===(t=E.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=E.current)||void 0===e||e.blur()},input:E.current,nativeElement:k.current}}));var Z=s()(c,p,(0,i.Z)((0,i.Z)({},"".concat(c,"-checked"),N),"".concat(c,"-disabled"),h));return d.createElement("span",{className:Z,title:w,style:m,ref:k},d.createElement("input",(0,o.Z)({},S,{className:"".concat(c,"-input"),ref:E,onChange:function(t){h||("checked"in e||M(t.target.checked),null==C||C({target:(0,r.Z)((0,r.Z)({},e),{},{type:x,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:h,checked:!!N,type:x})),d.createElement("span",{className:"".concat(c,"-inner")}))}));t.Z=p},96478:function(e,t,n){n.d(t,{Z:function(){return C}});var o=n(14809),r=n(4635),i=n(50298),a=n(62646),l=n(65352),c=n(92310),s=n.n(c),u=n(8654),d=n(59301),f=n(10228),p=n(16089),m=f.Z.ESC,g=f.Z.TAB;var h=(0,d.forwardRef)((function(e,t){var n=e.overlay,o=e.arrow,r=e.prefixCls,i=(0,d.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=(0,u.sQ)(t,(0,u.C4)(i));return d.createElement(d.Fragment,null,o&&d.createElement("div",{className:"".concat(r,"-arrow")}),d.cloneElement(i,{ref:(0,u.Yr)(i)?a:void 0}))})),v={adjustX:1,adjustY:1},b=[0,0],y={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:b},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:b},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:b},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:b},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:b},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:b}},x=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function w(e,t){var n,c=e.arrow,f=void 0!==c&&c,v=e.prefixCls,b=void 0===v?"rc-dropdown":v,w=e.transitionName,C=e.animation,S=e.align,E=e.placement,k=void 0===E?"bottomLeft":E,I=e.placements,j=void 0===I?y:I,N=e.getPopupContainer,M=e.showAction,Z=e.hideAction,O=e.overlayClassName,$=e.overlayStyle,A=e.visible,z=e.trigger,T=void 0===z?["hover"]:z,P=e.autoFocus,L=e.overlay,R=e.children,B=e.onVisibleChange,D=(0,a.Z)(e,x),H=d.useState(),W=(0,i.Z)(H,2),F=W[0],K=W[1],V="visible"in e?A:F,q=d.useRef(null),X=d.useRef(null),G=d.useRef(null);d.useImperativeHandle(t,(function(){return q.current}));var Q=function(e){K(e),null==B||B(e)};!function(e){var t=e.visible,n=e.triggerRef,o=e.onVisibleChange,r=e.autoFocus,i=e.overlayRef,a=d.useRef(!1),l=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==o||o(!1))},c=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},s=function(e){switch(e.keyCode){case m:l();break;case g:var t=!1;a.current||(t=c()),t?e.preventDefault():l()}};d.useEffect((function(){return t?(window.addEventListener("keydown",s),r&&(0,p.Z)(c,3),function(){window.removeEventListener("keydown",s),a.current=!1}):function(){a.current=!1}}),[t])}({visible:V,triggerRef:G,onVisibleChange:Q,autoFocus:P,overlayRef:X});var _,U,Y,J=function(){return d.createElement(h,{ref:X,overlay:L,prefixCls:b,arrow:f})},ee=d.cloneElement(R,{className:s()(null===(n=R.props)||void 0===n?void 0:n.className,V&&(_=e.openClassName,void 0!==_?_:"".concat(b,"-open"))),ref:(0,u.Yr)(R)?(0,u.sQ)(G,(0,u.C4)(R)):void 0}),te=Z;return te||-1===T.indexOf("contextMenu")||(te=["click"]),d.createElement(l.Z,(0,o.Z)({builtinPlacements:j},D,{prefixCls:b,ref:q,popupClassName:s()(O,(0,r.Z)({},"".concat(b,"-show-arrow"),f)),popupStyle:$,action:T,showAction:M,hideAction:te,popupPlacement:k,popupAlign:S,popupTransitionName:w,popupAnimation:C,popupVisible:V,stretch:(U=e.minOverlayWidthMatchTrigger,Y=e.alignPoint,("minOverlayWidthMatchTrigger"in e?U:!Y)?"minWidth":""),popup:"function"==typeof L?J:J(),onPopupVisibleChange:Q,onPopupClick:function(t){var n=e.onOverlayClick;K(!1),n&&n(t)},getPopupContainer:N}),ee)}var C=d.forwardRef(w)},66003:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(62646),r=n(20439),i=n(93664),a=n(59301),l=["show"];function c(e,t){return a.useMemo((function(){var n={};t&&(n.show="object"===(0,i.Z)(t)&&t.formatter?t.formatter:!!t);var a=n=(0,r.Z)((0,r.Z)({},n),e),c=a.show,s=(0,o.Z)(a,l);return(0,r.Z)((0,r.Z)({},s),{},{show:!!c,showFormatter:"function"==typeof c?c:void 0,strategy:s.strategy||function(e){return e.length}})}),[e,t])}},36901:function(e,t,n){n.d(t,{Q:function(){return d},Z:function(){return y}});var o=n(20439),r=n(14809),i=n(4635),a=n(93664),l=n(92310),c=n.n(l),s=n(59301),u=n(30292),d=s.forwardRef((function(e,t){var n,l,d,f=e.inputElement,p=e.children,m=e.prefixCls,g=e.prefix,h=e.suffix,v=e.addonBefore,b=e.addonAfter,y=e.className,x=e.style,w=e.disabled,C=e.readOnly,S=e.focused,E=e.triggerFocus,k=e.allowClear,I=e.value,j=e.handleReset,N=e.hidden,M=e.classes,Z=e.classNames,O=e.dataAttrs,$=e.styles,A=e.components,z=e.onClear,T=null!=p?p:f,P=(null==A?void 0:A.affixWrapper)||"span",L=(null==A?void 0:A.groupWrapper)||"span",R=(null==A?void 0:A.wrapper)||"span",B=(null==A?void 0:A.groupAddon)||"span",D=(0,s.useRef)(null),H=(0,u.X3)(e),W=(0,s.cloneElement)(T,{value:I,className:c()(null===(n=T.props)||void 0===n?void 0:n.className,!H&&(null==Z?void 0:Z.variant))||null}),F=(0,s.useRef)(null);if(s.useImperativeHandle(t,(function(){return{nativeElement:F.current||D.current}})),H){var K=null;if(k){var V=!w&&!C&&I,q="".concat(m,"-clear-icon"),X="object"===(0,a.Z)(k)&&null!=k&&k.clearIcon?k.clearIcon:"✖";K=s.createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null==j||j(e),null==z||z()},onMouseDown:function(e){return e.preventDefault()},className:c()(q,(0,i.Z)((0,i.Z)({},"".concat(q,"-hidden"),!V),"".concat(q,"-has-suffix"),!!h))},X)}var G="".concat(m,"-affix-wrapper"),Q=c()(G,(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(m,"-disabled"),w),"".concat(G,"-disabled"),w),"".concat(G,"-focused"),S),"".concat(G,"-readonly"),C),"".concat(G,"-input-with-clear-btn"),h&&k&&I),null==M?void 0:M.affixWrapper,null==Z?void 0:Z.affixWrapper,null==Z?void 0:Z.variant),_=(h||k)&&s.createElement("span",{className:c()("".concat(m,"-suffix"),null==Z?void 0:Z.suffix),style:null==$?void 0:$.suffix},K,h);W=s.createElement(P,(0,r.Z)({className:Q,style:null==$?void 0:$.affixWrapper,onClick:function(e){var t;null!==(t=D.current)&&void 0!==t&&t.contains(e.target)&&(null==E||E())}},null==O?void 0:O.affixWrapper,{ref:D}),g&&s.createElement("span",{className:c()("".concat(m,"-prefix"),null==Z?void 0:Z.prefix),style:null==$?void 0:$.prefix},g),W,_)}if((0,u.He)(e)){var U="".concat(m,"-group"),Y="".concat(U,"-addon"),J="".concat(U,"-wrapper"),ee=c()("".concat(m,"-wrapper"),U,null==M?void 0:M.wrapper,null==Z?void 0:Z.wrapper),te=c()(J,(0,i.Z)({},"".concat(J,"-disabled"),w),null==M?void 0:M.group,null==Z?void 0:Z.groupWrapper);W=s.createElement(L,{className:te,ref:F},s.createElement(R,{className:ee},v&&s.createElement(B,{className:Y},v),W,b&&s.createElement(B,{className:Y},b)))}return s.cloneElement(W,{className:c()(null===(l=W.props)||void 0===l?void 0:l.className,y)||null,style:(0,o.Z)((0,o.Z)({},null===(d=W.props)||void 0===d?void 0:d.style),x),hidden:N})})),f=n(95190),p=n(50298),m=n(62646),g=n(18929),h=n(2738),v=n(66003),b=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],y=(0,s.forwardRef)((function(e,t){var n=e.autoComplete,a=e.onChange,l=e.onFocus,y=e.onBlur,x=e.onPressEnter,w=e.onKeyDown,C=e.onKeyUp,S=e.prefixCls,E=void 0===S?"rc-input":S,k=e.disabled,I=e.htmlSize,j=e.className,N=e.maxLength,M=e.suffix,Z=e.showCount,O=e.count,$=e.type,A=void 0===$?"text":$,z=e.classes,T=e.classNames,P=e.styles,L=e.onCompositionStart,R=e.onCompositionEnd,B=(0,m.Z)(e,b),D=(0,s.useState)(!1),H=(0,p.Z)(D,2),W=H[0],F=H[1],K=(0,s.useRef)(!1),V=(0,s.useRef)(!1),q=(0,s.useRef)(null),X=(0,s.useRef)(null),G=function(e){q.current&&(0,u.nH)(q.current,e)},Q=(0,g.Z)(e.defaultValue,{value:e.value}),_=(0,p.Z)(Q,2),U=_[0],Y=_[1],J=null==U?"":String(U),ee=(0,s.useState)(null),te=(0,p.Z)(ee,2),ne=te[0],oe=te[1],re=(0,v.Z)(O,Z),ie=re.max||N,ae=re.strategy(J),le=!!ie&&ae>ie;(0,s.useImperativeHandle)(t,(function(){var e;return{focus:G,blur:function(){var e;null===(e=q.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=q.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=q.current)||void 0===e||e.select()},input:q.current,nativeElement:(null===(e=X.current)||void 0===e?void 0:e.nativeElement)||q.current}})),(0,s.useEffect)((function(){V.current&&(V.current=!1),F((function(e){return(!e||!k)&&e}))}),[k]);var ce=function(e,t,n){var o,r,i=t;if(!K.current&&re.exceedFormatter&&re.max&&re.strategy(t)>re.max)t!==(i=re.exceedFormatter(t,{max:re.max}))&&oe([(null===(o=q.current)||void 0===o?void 0:o.selectionStart)||0,(null===(r=q.current)||void 0===r?void 0:r.selectionEnd)||0]);else if("compositionEnd"===n.source)return;Y(i),q.current&&(0,u.rJ)(q.current,e,a,i)};(0,s.useEffect)((function(){var e;ne&&(null===(e=q.current)||void 0===e||e.setSelectionRange.apply(e,(0,f.Z)(ne)))}),[ne]);var se,ue=function(e){ce(e,e.target.value,{source:"change"})},de=function(e){K.current=!1,ce(e,e.currentTarget.value,{source:"compositionEnd"}),null==R||R(e)},fe=function(e){x&&"Enter"===e.key&&!V.current&&(V.current=!0,x(e)),null==w||w(e)},pe=function(e){"Enter"===e.key&&(V.current=!1),null==C||C(e)},me=function(e){F(!0),null==l||l(e)},ge=function(e){V.current&&(V.current=!1),F(!1),null==y||y(e)},he=le&&"".concat(E,"-out-of-range");return s.createElement(d,(0,r.Z)({},B,{prefixCls:E,className:c()(j,he),handleReset:function(e){Y(""),G(),q.current&&(0,u.rJ)(q.current,e,a)},value:J,focused:W,triggerFocus:G,suffix:function(){var e=Number(ie)>0;if(M||re.show){var t=re.showFormatter?re.showFormatter({value:J,count:ae,maxLength:ie}):"".concat(ae).concat(e?" / ".concat(ie):"");return s.createElement(s.Fragment,null,re.show&&s.createElement("span",{className:c()("".concat(E,"-show-count-suffix"),(0,i.Z)({},"".concat(E,"-show-count-has-suffix"),!!M),null==T?void 0:T.count),style:(0,o.Z)({},null==P?void 0:P.count)},t),M)}return null}(),disabled:k,classes:z,classNames:T,styles:P}),(se=(0,h.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),s.createElement("input",(0,r.Z)({autoComplete:n},se,{onChange:ue,onFocus:me,onBlur:ge,onKeyDown:fe,onKeyUp:pe,className:c()(E,(0,i.Z)({},"".concat(E,"-disabled"),k),null==T?void 0:T.input),style:null==P?void 0:P.input,ref:q,size:I,type:A,onCompositionStart:function(e){K.current=!0,null==L||L(e)},onCompositionEnd:de}))))}))},30292:function(e,t,n){function o(e){return!(!e.addonBefore&&!e.addonAfter)}function r(e){return!!(e.prefix||e.suffix||e.allowClear)}function i(e,t,n){var o=t.cloneNode(!0),r=Object.create(e,{target:{value:o},currentTarget:{value:o}});return o.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(o.selectionStart=t.selectionStart,o.selectionEnd=t.selectionEnd),o.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},r}function a(e,t,n,o){if(n){var r=t;"click"!==t.type?"file"===e.type||void 0===o?n(r):n(r=i(t,e,o)):n(r=i(t,e,""))}}function l(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}n.d(t,{He:function(){return o},X3:function(){return r},nH:function(){return l},rJ:function(){return a}})},28321:function(e,t,n){n.d(t,{iz:function(){return De},ck:function(){return ye},BW:function(){return Fe},sN:function(){return ye},Wd:function(){return Re},ZP:function(){return Ue},Xl:function(){return N}});var o=n(14809),r=n(4635),i=n(20439),a=n(95190),l=n(50298),c=n(62646),s=n(92310),u=n.n(s),d=n(11780),f=n(18929),p=n(13697),m=n(48736),g=n(59301),h=n(4676),v=g.createContext(null);function b(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function y(e){return b(g.useContext(v),e)}var x=n(80547),w=["children","locked"],C=g.createContext(null);function S(e){var t=e.children,n=e.locked,o=(0,c.Z)(e,w),r=g.useContext(C),a=(0,x.Z)((function(){return e=r,t=o,n=(0,i.Z)({},e),Object.keys(t).forEach((function(e){var o=t[e];void 0!==o&&(n[e]=o)})),n;var e,t,n}),[r,o],(function(e,t){return!(n||e[0]===t[0]&&(0,p.Z)(e[1],t[1],!0))}));return g.createElement(C.Provider,{value:a},t)}var E=[],k=g.createContext(null);function I(){return g.useContext(k)}var j=g.createContext(E);function N(e){var t=g.useContext(j);return g.useMemo((function(){return void 0!==e?[].concat((0,a.Z)(t),[e]):t}),[t,e])}var M=g.createContext(null),Z=g.createContext({}),O=n(29194);function $(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,O.Z)(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),a=null;return r&&!Number.isNaN(i)?a=i:o&&null===a&&(a=0),o&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function A(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,a.Z)(e.querySelectorAll("*")).filter((function(e){return $(e,t)}));return $(e,t)&&n.unshift(e),n}var z=n(10228),T=n(16089),P=z.Z.LEFT,L=z.Z.RIGHT,R=z.Z.UP,B=z.Z.DOWN,D=z.Z.ENTER,H=z.Z.ESC,W=z.Z.HOME,F=z.Z.END,K=[R,B,P,L];function V(e,t){return A(e,!0).filter((function(e){return t.has(e)}))}function q(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=V(e,t),i=r.length,a=r.findIndex((function(e){return n===e}));return o<0?-1===a?a=i-1:a-=1:o>0&&(a+=1),r[a=(a+i)%i]}var X=function(e,t){var n=new Set,o=new Map,r=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(b(t,e),"']"));i&&(n.add(i),r.set(i,e),o.set(e,i))})),{elements:n,key2element:o,element2key:r}};function G(e,t,n,o,i,a,l,c,s,u){var d=g.useRef(),f=g.useRef();f.current=t;var p=function(){T.Z.cancel(d.current)};return g.useEffect((function(){return function(){p()}}),[]),function(m){var g=m.which;if([].concat(K,[D,H,W,F]).includes(g)){var h=a(),v=X(h,o),b=v,y=b.elements,x=b.key2element,w=b.element2key,C=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(x.get(t),y),S=w.get(C),E=function(e,t,n,o){var i,a="prev",l="next",c="children",s="parent";if("inline"===e&&o===D)return{inlineTrigger:!0};var u=(0,r.Z)((0,r.Z)({},R,a),B,l),d=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},P,n?l:a),L,n?a:l),B,c),D,c),f=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},R,a),B,l),D,c),H,s),P,n?c:s),L,n?s:c);switch(null===(i={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f}["".concat(e).concat(t?"":"Sub")])||void 0===i?void 0:i[o]){case a:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}(e,1===l(S,!0).length,n,g);if(!E&&g!==W&&g!==F)return;(K.includes(g)||[W,F].includes(g))&&m.preventDefault();var k=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var o=w.get(e);c(o),p(),d.current=(0,T.Z)((function(){f.current===o&&t.focus()}))}};if([W,F].includes(g)||E.sibling||!C){var I,j,N=V(I=C&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(C):i.current,y);j=g===W?N[0]:g===F?N[N.length-1]:q(I,y,C,E.offset),k(j)}else if(E.inlineTrigger)s(S);else if(E.offset>0)s(S,!0),p(),d.current=(0,T.Z)((function(){v=X(h,o);var e=C.getAttribute("aria-controls"),t=q(document.getElementById(e),v.elements);k(t)}),5);else if(E.offset<0){var M=l(S,!0),Z=M[M.length-2],O=x.get(Z);s(Z,!1),k(O)}}null==u||u(m)}}var Q="__RC_UTIL_PATH_SPLIT__",_=function(e){return e.join(Q)},U="rc-menu-more";function Y(){var e=g.useState({}),t=(0,l.Z)(e,2)[1],n=(0,g.useRef)(new Map),o=(0,g.useRef)(new Map),r=g.useState([]),i=(0,l.Z)(r,2),c=i[0],s=i[1],u=(0,g.useRef)(0),d=(0,g.useRef)(!1),f=(0,g.useCallback)((function(e,r){var i=_(r);o.current.set(i,e),n.current.set(e,i),u.current+=1;var a,l=u.current;a=function(){l===u.current&&(d.current||t({}))},Promise.resolve().then(a)}),[]),p=(0,g.useCallback)((function(e,t){var r=_(t);o.current.delete(r),n.current.delete(e)}),[]),m=(0,g.useCallback)((function(e){s(e)}),[]),h=(0,g.useCallback)((function(e,t){var o=n.current.get(e)||"",r=o.split(Q);return t&&c.includes(r[0])&&r.unshift(U),r}),[c]),v=(0,g.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return h(e,!0).includes(t)}))}),[h]),b=(0,g.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(Q),r=new Set;return(0,a.Z)(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return g.useEffect((function(){return function(){d.current=!0}}),[]),{registerPath:f,unregisterPath:p,refreshOverflowKeys:m,isSubPathKey:v,getKeyPath:h,getKeys:function(){var e=(0,a.Z)(n.current.keys());return c.length&&e.push(U),e},getSubPathKeys:b}}function J(e){var t=g.useRef(e);t.current=e;var n=g.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r1&&(E.motionAppear=!1);var k=E.onVisibleChanged;return E.onVisibleChanged=function(e){return h.current||e||x(!0),null==k?void 0:k(e)},y?null:g.createElement(S,{mode:c,locked:!h.current},g.createElement(Ae.ZP,(0,o.Z)({visible:w},E,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),(function(e){var n=e.className,o=e.style;return g.createElement(Se,{id:t,className:n,style:o},a)})))}var Te=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Pe=["active"],Le=g.forwardRef((function(e,t){var n=e.style,a=e.className,s=e.title,f=e.eventKey,p=(e.warnKey,e.disabled),m=e.internalPopupClose,h=e.children,v=e.itemIcon,b=e.expandIcon,x=e.popupClassName,w=e.popupOffset,E=e.popupStyle,k=e.onClick,I=e.onMouseEnter,j=e.onMouseLeave,O=e.onTitleClick,$=e.onTitleMouseEnter,A=e.onTitleMouseLeave,z=(0,c.Z)(e,Te),T=y(f),P=g.useContext(C),L=P.prefixCls,R=P.mode,B=P.openKeys,D=P.disabled,H=P.overflowDisabled,W=P.activeKey,F=P.selectedKeys,K=P.itemIcon,V=P.expandIcon,q=P.onItemClick,X=P.onOpenChange,G=P.onActive,Q=g.useContext(Z)._internalRenderSubMenuItem,_=g.useContext(M).isSubPathKey,U=N(),Y="".concat(L,"-submenu"),ee=D||p,te=g.useRef(),ne=g.useRef();var oe=null!=v?v:K,re=null!=b?b:V,ie=B.includes(f),ae=!H&&ie,le=_(F,f),de=ce(f,ee,$,A),pe=de.active,me=(0,c.Z)(de,Pe),ge=g.useState(!1),he=(0,l.Z)(ge,2),ve=he[0],be=he[1],ye=function(e){ee||be(e)},xe=g.useMemo((function(){return pe||"inline"!==R&&(ve||_([W],f))}),[R,pe,W,ve,f,_]),we=se(U.length),Ce=J((function(e){null==k||k(fe(e)),q(e)})),Ee=T&&"".concat(T,"-popup"),ke=g.useMemo((function(){return g.createElement(ue,{icon:"horizontal"!==R?re:void 0,props:(0,i.Z)((0,i.Z)({},e),{},{isOpen:ae,isSubMenu:!0})},g.createElement("i",{className:"".concat(Y,"-arrow")}))}),[R,re,e,ae,Y]),Ie=g.createElement("div",(0,o.Z)({role:"menuitem",style:we,className:"".concat(Y,"-title"),tabIndex:ee?null:-1,ref:te,title:"string"==typeof s?s:null,"data-menu-id":H&&T?null:T,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":Ee,"aria-disabled":ee,onClick:function(e){ee||(null==O||O({key:f,domEvent:e}),"inline"===R&&X(f,!ie))},onFocus:function(){G(f)}},me),s,ke),je=g.useRef(R);if("inline"!==R&&U.length>1?je.current="vertical":je.current=R,!H){var Ne=je.current;Ie=g.createElement($e,{mode:Ne,prefixCls:Y,visible:!m&&ae&&"inline"!==R,popupClassName:x,popupOffset:w,popupStyle:E,popup:g.createElement(S,{mode:"horizontal"===Ne?"vertical":Ne},g.createElement(Se,{id:Ee,ref:ne},h)),disabled:ee,onVisibleChange:function(e){"inline"!==R&&X(f,e)}},Ie)}var Me=g.createElement(d.Z.Item,(0,o.Z)({ref:t,role:"none"},z,{component:"li",style:n,className:u()(Y,"".concat(Y,"-").concat(R),a,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(Y,"-open"),ae),"".concat(Y,"-active"),xe),"".concat(Y,"-selected"),le),"".concat(Y,"-disabled"),ee)),onMouseEnter:function(e){ye(!0),null==I||I({key:f,domEvent:e})},onMouseLeave:function(e){ye(!1),null==j||j({key:f,domEvent:e})}}),Ie,!H&&g.createElement(ze,{id:Ee,open:ae,keyPath:U},h));return Q&&(Me=Q(Me,e,{selected:le,active:xe,open:ae,disabled:ee})),g.createElement(S,{onItemClick:Ce,mode:"horizontal"===R?"vertical":R,itemIcon:oe,expandIcon:re},Me)}));var Re=g.forwardRef((function(e,t){var n,r=e.eventKey,i=e.children,a=N(r),l=ke(i,a),c=I();return g.useEffect((function(){if(c)return c.registerPath(r,a),function(){c.unregisterPath(r,a)}}),[a]),n=c?l:g.createElement(Le,(0,o.Z)({ref:t},e),l),g.createElement(j.Provider,{value:a},n)})),Be=n(93664);function De(e){var t=e.className,n=e.style,o=g.useContext(C).prefixCls;return I()?null:g.createElement("li",{role:"separator",className:u()("".concat(o,"-item-divider"),t),style:n})}var He=["className","title","eventKey","children"],We=g.forwardRef((function(e,t){var n=e.className,r=e.title,i=(e.eventKey,e.children),a=(0,c.Z)(e,He),l=g.useContext(C).prefixCls,s="".concat(l,"-item-group");return g.createElement("li",(0,o.Z)({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:u()(s,n)}),g.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:"string"==typeof r?r:void 0},r),g.createElement("ul",{role:"group",className:"".concat(s,"-list")},i))}));var Fe=g.forwardRef((function(e,t){var n=e.eventKey,r=ke(e.children,N(n));return I()?r:g.createElement(We,(0,o.Z)({ref:t},(0,ae.Z)(e,["warnKey"])),r)})),Ke=["label","children","key","type","extra"];function Ve(e,t,n){var r=t.item,i=t.group,a=t.submenu,l=t.divider;return(e||[]).map((function(e,s){if(e&&"object"===(0,Be.Z)(e)){var u=e,d=u.label,f=u.children,p=u.key,m=u.type,h=u.extra,v=(0,c.Z)(u,Ke),b=null!=p?p:"tmp-".concat(s);return f||"group"===m?"group"===m?g.createElement(i,(0,o.Z)({key:b},v,{title:d}),Ve(f,t,n)):g.createElement(a,(0,o.Z)({key:b},v,{title:d}),Ve(f,t,n)):"divider"===m?g.createElement(l,(0,o.Z)({key:b},v)):g.createElement(r,(0,o.Z)({key:b},v,{extra:h}),d,(!!h||0===h)&&g.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null})).filter((function(e){return e}))}function qe(e,t,n,o,r){var a=e,l=(0,i.Z)({divider:De,item:ye,group:Fe,submenu:Re},o);return t&&(a=Ve(t,l,r)),ke(a,n)}var Xe=["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"],Ge=[],Qe=g.forwardRef((function(e,t){var n,s=e,m=s.prefixCls,b=void 0===m?"rc-menu":m,y=s.rootClassName,x=s.style,w=s.className,C=s.tabIndex,E=void 0===C?0:C,I=s.items,j=s.children,N=s.direction,O=s.id,$=s.mode,A=void 0===$?"vertical":$,z=s.inlineCollapsed,T=s.disabled,P=s.disabledOverflow,L=s.subMenuOpenDelay,R=void 0===L?.1:L,B=s.subMenuCloseDelay,D=void 0===B?.1:B,H=s.forceSubMenuRender,W=s.defaultOpenKeys,F=s.openKeys,K=s.activeKey,q=s.defaultActiveFirst,Q=s.selectable,_=void 0===Q||Q,ne=s.multiple,oe=void 0!==ne&&ne,re=s.defaultSelectedKeys,ie=s.selectedKeys,ae=s.onSelect,le=s.onDeselect,ce=s.inlineIndent,se=void 0===ce?24:ce,ue=s.motion,de=s.defaultMotions,pe=s.triggerSubMenuAction,me=void 0===pe?"hover":pe,ge=s.builtinPlacements,he=s.itemIcon,ve=s.expandIcon,be=s.overflowedIndicator,xe=void 0===be?"...":be,we=s.overflowedIndicatorPopupClassName,Ce=s.getPopupContainer,Se=s.onClick,Ee=s.onOpenChange,ke=s.onKeyDown,Ie=(s.openAnimation,s.openTransitionName,s._internalRenderMenuItem),je=s._internalRenderSubMenuItem,Ne=s._internalComponents,Me=(0,c.Z)(s,Xe),Ze=g.useMemo((function(){return[qe(j,I,Ge,Ne,b),qe(j,I,Ge,{},b)]}),[j,I,Ne]),Oe=(0,l.Z)(Ze,2),$e=Oe[0],Ae=Oe[1],ze=g.useState(!1),Te=(0,l.Z)(ze,2),Pe=Te[0],Le=Te[1],Be=g.useRef(),De=function(e){var t=(0,f.Z)(e,{value:e}),n=(0,l.Z)(t,2),o=n[0],r=n[1];return g.useEffect((function(){te+=1;var e="".concat(ee,"-").concat(te);r("rc-menu-uuid-".concat(e))}),[]),o}(O),He="rtl"===N;var We=(0,f.Z)(W,{value:F,postState:function(e){return e||Ge}}),Fe=(0,l.Z)(We,2),Ke=Fe[0],Ve=Fe[1],Qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){Ve(e),null==Ee||Ee(e)}t?(0,h.flushSync)(n):n()},_e=g.useState(Ke),Ue=(0,l.Z)(_e,2),Ye=Ue[0],Je=Ue[1],et=g.useRef(!1),tt=g.useMemo((function(){return"inline"!==A&&"vertical"!==A||!z?[A,!1]:["vertical",z]}),[A,z]),nt=(0,l.Z)(tt,2),ot=nt[0],rt=nt[1],it="inline"===ot,at=g.useState(ot),lt=(0,l.Z)(at,2),ct=lt[0],st=lt[1],ut=g.useState(rt),dt=(0,l.Z)(ut,2),ft=dt[0],pt=dt[1];g.useEffect((function(){st(ot),pt(rt),et.current&&(it?Ve(Ye):Qe(Ge))}),[ot,rt]);var mt=g.useState(0),gt=(0,l.Z)(mt,2),ht=gt[0],vt=gt[1],bt=ht>=$e.length-1||"horizontal"!==ct||P;g.useEffect((function(){it&&Je(Ke)}),[Ke]),g.useEffect((function(){return et.current=!0,function(){et.current=!1}}),[]);var yt=Y(),xt=yt.registerPath,wt=yt.unregisterPath,Ct=yt.refreshOverflowKeys,St=yt.isSubPathKey,Et=yt.getKeyPath,kt=yt.getKeys,It=yt.getSubPathKeys,jt=g.useMemo((function(){return{registerPath:xt,unregisterPath:wt}}),[xt,wt]),Nt=g.useMemo((function(){return{isSubPathKey:St}}),[St]);g.useEffect((function(){Ct(bt?Ge:$e.slice(ht+1).map((function(e){return e.key})))}),[ht,bt]);var Mt=(0,f.Z)(K||q&&(null===(n=$e[0])||void 0===n?void 0:n.key),{value:K}),Zt=(0,l.Z)(Mt,2),Ot=Zt[0],$t=Zt[1],At=J((function(e){$t(e)})),zt=J((function(){$t(void 0)}));(0,g.useImperativeHandle)(t,(function(){return{list:Be.current,focus:function(e){var t,n,o=kt(),r=X(o,De),i=r.elements,a=r.key2element,l=r.element2key,c=V(Be.current,i),s=null!=Ot?Ot:c[0]?l.get(c[0]):null===(t=$e.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var Tt=(0,f.Z)(re||[],{value:ie,postState:function(e){return Array.isArray(e)?e:null==e?Ge:[e]}}),Pt=(0,l.Z)(Tt,2),Lt=Pt[0],Rt=Pt[1],Bt=J((function(e){null==Se||Se(fe(e)),function(e){if(_){var t,n=e.key,o=Lt.includes(n);t=oe?o?Lt.filter((function(e){return e!==n})):[].concat((0,a.Z)(Lt),[n]):[n],Rt(t);var r=(0,i.Z)((0,i.Z)({},e),{},{selectedKeys:t});o?null==le||le(r):null==ae||ae(r)}!oe&&Ke.length&&"inline"!==ct&&Qe(Ge)}(e)})),Dt=J((function(e,t){var n=Ke.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==ct){var o=It(e);n=n.filter((function(e){return!o.has(e)}))}(0,p.Z)(Ke,n,!0)||Qe(n,!0)})),Ht=G(ct,Ot,He,De,Be,kt,Et,$t,(function(e,t){var n=null!=t?t:!Ke.includes(e);Dt(e,n)}),ke);g.useEffect((function(){Le(!0)}),[]);var Wt=g.useMemo((function(){return{_internalRenderMenuItem:Ie,_internalRenderSubMenuItem:je}}),[Ie,je]),Ft="horizontal"!==ct||P?$e:$e.map((function(e,t){return g.createElement(S,{key:e.key,overflowDisabled:t>ht},e)})),Kt=g.createElement(d.Z,(0,o.Z)({id:O,ref:Be,prefixCls:"".concat(b,"-overflow"),component:"ul",itemComponent:ye,className:u()(b,"".concat(b,"-root"),"".concat(b,"-").concat(ct),w,(0,r.Z)((0,r.Z)({},"".concat(b,"-inline-collapsed"),ft),"".concat(b,"-rtl"),He),y),dir:N,style:x,role:"menu",tabIndex:E,data:Ft,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?$e.slice(-t):null;return g.createElement(Re,{eventKey:U,title:xe,disabled:bt,internalPopupClose:0===t,popupClassName:we},n)},maxCount:"horizontal"!==ct||P?d.Z.INVALIDATE:d.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){vt(e)},onKeyDown:Ht},Me));return g.createElement(Z.Provider,{value:Wt},g.createElement(v.Provider,{value:De},g.createElement(S,{prefixCls:b,rootClassName:y,mode:ct,openKeys:Ke,rtl:He,disabled:T,motion:Pe?ue:null,defaultMotions:Pe?de:null,activeKey:Ot,onActive:At,onInactive:zt,selectedKeys:Lt,inlineIndent:se,subMenuOpenDelay:R,subMenuCloseDelay:D,forceSubMenuRender:H,builtinPlacements:ge,triggerSubMenuAction:me,getPopupContainer:Ce,itemIcon:he,expandIcon:ve,onItemClick:Bt,onOpenChange:Dt},g.createElement(M.Provider,{value:Nt},Kt),g.createElement("div",{style:{display:"none"},"aria-hidden":!0},g.createElement(k.Provider,{value:jt},Ae)))))})),_e=Qe;_e.Item=ye,_e.SubMenu=Re,_e.ItemGroup=Fe,_e.Divider=De;var Ue=_e},11780:function(e,t,n){n.d(t,{Z:function(){return T}});var o=n(14809),r=n(20439),i=n(50298),a=n(62646),l=n(59301),c=n(92310),s=n.n(c),u=n(29301),d=n(34280),f=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],p=void 0;function m(e,t){var n=e.prefixCls,i=e.invalidate,c=e.item,d=e.renderItem,m=e.responsive,g=e.responsiveDisabled,h=e.registerSize,v=e.itemKey,b=e.className,y=e.style,x=e.children,w=e.display,C=e.order,S=e.component,E=void 0===S?"div":S,k=(0,a.Z)(e,f),I=m&&!w;function j(e){h(v,e)}l.useEffect((function(){return function(){j(null)}}),[]);var N,M=d&&c!==p?d(c,{index:C}):x;i||(N={opacity:I?0:1,height:I?0:p,overflowY:I?"hidden":p,order:m?C:p,pointerEvents:I?"none":p,position:I?"absolute":p});var Z={};I&&(Z["aria-hidden"]=!0);var O=l.createElement(E,(0,o.Z)({className:s()(!i&&n,b),style:(0,r.Z)((0,r.Z)({},N),y)},Z,k,{ref:t}),M);return m&&(O=l.createElement(u.Z,{onResize:function(e){j(e.offsetWidth)},disabled:g},O)),O}var g=l.forwardRef(m);g.displayName="Item";var h=g,v=n(6089),b=n(4676),y=n(16089);function x(){var e=l.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,y.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,b.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function w(e,t){var n=l.useState(t),o=(0,i.Z)(n,2),r=o[0],a=o[1];return[r,(0,v.Z)((function(t){e((function(){a(t)}))}))]}var C=l.createContext(null),S=["component"],E=["className"],k=["className"],I=function(e,t){var n=l.useContext(C);if(!n){var r=e.component,i=void 0===r?"div":r,c=(0,a.Z)(e,S);return l.createElement(i,(0,o.Z)({},c,{ref:t}))}var u=n.className,d=(0,a.Z)(n,E),f=e.className,p=(0,a.Z)(e,k);return l.createElement(C.Provider,{value:null},l.createElement(h,(0,o.Z)({ref:t,className:s()(u,f)},d,p)))},j=l.forwardRef(I);j.displayName="RawItem";var N=j,M=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Z="responsive",O="invalidate";function $(e){return"+ ".concat(e.length," ...")}function A(e,t){var n=e.prefixCls,c=void 0===n?"rc-overflow":n,f=e.data,p=void 0===f?[]:f,m=e.renderItem,g=e.renderRawItem,v=e.itemKey,b=e.itemWidth,y=void 0===b?10:b,S=e.ssr,E=e.style,k=e.className,I=e.maxCount,j=e.renderRest,N=e.renderRawRest,A=e.suffix,z=e.component,T=void 0===z?"div":z,P=e.itemComponent,L=e.onVisibleChange,R=(0,a.Z)(e,M),B="full"===S,D=x(),H=w(D,null),W=(0,i.Z)(H,2),F=W[0],K=W[1],V=F||0,q=w(D,new Map),X=(0,i.Z)(q,2),G=X[0],Q=X[1],_=w(D,0),U=(0,i.Z)(_,2),Y=U[0],J=U[1],ee=w(D,0),te=(0,i.Z)(ee,2),ne=te[0],oe=te[1],re=w(D,0),ie=(0,i.Z)(re,2),ae=ie[0],le=ie[1],ce=(0,l.useState)(null),se=(0,i.Z)(ce,2),ue=se[0],de=se[1],fe=(0,l.useState)(null),pe=(0,i.Z)(fe,2),me=pe[0],ge=pe[1],he=l.useMemo((function(){return null===me&&B?Number.MAX_SAFE_INTEGER:me||0}),[me,F]),ve=(0,l.useState)(!1),be=(0,i.Z)(ve,2),ye=be[0],xe=be[1],we="".concat(c,"-item"),Ce=Math.max(Y,ne),Se=I===Z,Ee=p.length&&Se,ke=I===O,Ie=Ee||"number"==typeof I&&p.length>I,je=(0,l.useMemo)((function(){var e=p;return Ee?e=null===F&&B?p:p.slice(0,Math.min(p.length,V/y)):"number"==typeof I&&(e=p.slice(0,I)),e}),[p,y,F,I,Ee]),Ne=(0,l.useMemo)((function(){return Ee?p.slice(he+1):p.slice(je.length)}),[p,je,Ee,he]),Me=(0,l.useCallback)((function(e,t){var n;return"function"==typeof v?v(e):null!==(n=v&&(null==e?void 0:e[v]))&&void 0!==n?n:t}),[v]),Ze=(0,l.useCallback)(m||function(e){return e},[m]);function Oe(e,t,n){(me!==e||void 0!==t&&t!==ue)&&(ge(e),n||(xe(eV){Oe(o-1,e-r-ae+ne);break}}A&&Ae(0)+ae>V&&de(null)}}),[V,G,ne,ae,Me,je]);var ze=ye&&!!Ne.length,Te={};null!==ue&&Ee&&(Te={position:"absolute",left:ue,top:0});var Pe={prefixCls:we,responsive:Ee,component:P,invalidate:ke},Le=g?function(e,t){var n=Me(e,t);return l.createElement(C.Provider,{key:n,value:(0,r.Z)((0,r.Z)({},Pe),{},{order:t,item:e,itemKey:n,registerSize:$e,display:t<=he})},g(e,t))}:function(e,t){var n=Me(e,t);return l.createElement(h,(0,o.Z)({},Pe,{order:t,key:n,item:e,renderItem:Ze,itemKey:n,registerSize:$e,display:t<=he}))},Re={order:ze?he:Number.MAX_SAFE_INTEGER,className:"".concat(we,"-rest"),registerSize:function(e,t){oe(t),J(ne)},display:ze},Be=j||$,De=N?l.createElement(C.Provider,{value:(0,r.Z)((0,r.Z)({},Pe),Re)},N(Ne)):l.createElement(h,(0,o.Z)({},Pe,Re),"function"==typeof Be?Be(Ne):Be),He=l.createElement(T,(0,o.Z)({className:s()(!ke&&c,k),style:E,ref:t},R),je.map(Le),Ie?De:null,A&&l.createElement(h,(0,o.Z)({},Pe,{responsive:Se,responsiveDisabled:!Ee,order:he,className:"".concat(we,"-suffix"),registerSize:function(e,t){le(t)},display:!0,style:Te}),A));return Se?l.createElement(u.Z,{onResize:function(e,t){K(t.clientWidth)},disabled:!Ee},He):He}var z=l.forwardRef(A);z.displayName="Overflow",z.Item=N,z.RESPONSIVE=Z,z.INVALIDATE=O;var T=z},29301:function(e,t,n){n.d(t,{Z:function(){return S}});var o=n(14809),r=n(59301),i=n(11592),a=(n(48736),n(20439)),l=n(93664),c=n(76846),s=n(8654),u=r.createContext(null);var d=n(76374),f=new Map;var p=new d.Z((function(e){e.forEach((function(e){var t,n=e.target;null===(t=f.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var m=n(99153),g=n(84851),h=n(19257),v=n(93046),b=function(e){(0,h.Z)(n,e);var t=(0,v.Z)(n);function n(){return(0,m.Z)(this,n),t.apply(this,arguments)}return(0,g.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function y(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),d=r.useRef(null),m=r.useContext(u),g="function"==typeof n,h=g?n(i):n,v=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),y=!g&&r.isValidElement(h)&&(0,s.Yr)(h),x=y?(0,s.C4)(h):null,w=(0,s.x1)(x,i),C=function(){var e;return(0,c.ZP)(i.current)||(i.current&&"object"===(0,l.Z)(i.current)?(0,c.ZP)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,c.ZP)(d.current)};r.useImperativeHandle(t,(function(){return C()}));var S=r.useRef(e);S.current=e;var E=r.useCallback((function(e){var t=S.current,n=t.onResize,o=t.data,r=e.getBoundingClientRect(),i=r.width,l=r.height,c=e.offsetWidth,s=e.offsetHeight,u=Math.floor(i),d=Math.floor(l);if(v.current.width!==u||v.current.height!==d||v.current.offsetWidth!==c||v.current.offsetHeight!==s){var f={width:u,height:d,offsetWidth:c,offsetHeight:s};v.current=f;var p=c===Math.round(i)?i:c,g=s===Math.round(l)?l:s,h=(0,a.Z)((0,a.Z)({},f),{},{offsetWidth:p,offsetHeight:g});null==m||m(h,e,o),n&&Promise.resolve().then((function(){n(h,e)}))}}),[]);return r.useEffect((function(){var e,t,n=C();return n&&!o&&(e=n,t=E,f.has(e)||(f.set(e,new Set),p.observe(e)),f.get(e).add(t)),function(){return function(e,t){f.has(e)&&(f.get(e).delete(t),f.get(e).size||(p.unobserve(e),f.delete(e)))}(n,E)}}),[i.current,o]),r.createElement(b,{ref:d},y?r.cloneElement(h,{ref:w}):h)}var x=r.forwardRef(y);function w(e,t){var n=e.children;return("function"==typeof n?[n]:(0,i.Z)(n)).map((function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return r.createElement(x,(0,o.Z)({},e,{key:a,ref:0===i?t:void 0}),n)}))}var C=r.forwardRef(w);C.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(u),l=r.useCallback((function(e,t,r){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){l===o.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(u.Provider,{value:l},t)};var S=C},49658:function(e,t){t.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)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(null==e?void 0:e.substr(0,4))}},65283:function(e,t,n){n.d(t,{Z:function(){return R}});var o=n(14809),r=n(93664),i=n(20439),a=n(4635),l=n(50298),c=n(62646),s=n(92310),u=n.n(s),d=n(29301),f=n(70425),p=n(34280),m=n(59301),g=n(4676),h=m.forwardRef((function(e,t){var n=e.height,r=e.offsetY,l=e.offsetX,c=e.children,s=e.prefixCls,f=e.onInnerResize,p=e.innerProps,g=e.rtl,h=e.extra,v={},b={display:"flex",flexDirection:"column"};return void 0!==r&&(v={height:n,position:"relative",overflow:"hidden"},b=(0,i.Z)((0,i.Z)({},b),{},(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({transform:"translateY(".concat(r,"px)")},g?"marginRight":"marginLeft",-l),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:v},m.createElement(d.Z,{onResize:function(e){e.offsetHeight&&f&&f()}},m.createElement("div",(0,o.Z)({style:b,className:u()((0,a.Z)({},"".concat(s,"-holder-inner"),s)),ref:t},p),c,h)))}));h.displayName="Filler";var v=h;function b(e){var t=e.children,n=e.setRef,o=m.useCallback((function(e){n(e)}),[]);return m.cloneElement(t,{ref:o})}function y(e,t,n){var o=m.useState(e),r=(0,l.Z)(o,2),i=r[0],a=r[1],c=m.useState(null),s=(0,l.Z)(c,2),u=s[0],d=s[1];return m.useEffect((function(){var o=function(e,t,n){var o,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i2&&void 0!==arguments[2]&&arguments[2],o=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&o?(clearTimeout(i.current),r.current=!1):o&&!r.current||a(),!r.current&&o}};function S(e,t,n,o,r,i,a){var l=(0,m.useRef)(0),c=(0,m.useRef)(null),s=(0,m.useRef)(null),u=(0,m.useRef)(!1),d=C(t,n,o,r);var f=(0,m.useRef)(null),p=(0,m.useRef)(null);return[function(t){if(e){x.Z.cancel(p.current),p.current=(0,x.Z)((function(){f.current=null}),2);var n=t.deltaX,o=t.deltaY,r=t.shiftKey,m=n,g=o;("sx"===f.current||!f.current&&r&&o&&!n)&&(m=o,g=0,f.current="sx");var h=Math.abs(m),v=Math.abs(g);null===f.current&&(f.current=i&&h>v?"x":"y"),"y"===f.current?function(e,t){if(x.Z.cancel(c.current),!d(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,l.current+=t,s.current=t,w||n.preventDefault(),c.current=(0,x.Z)((function(){var e=u.current?10:1;a(l.current*e,!1),l.current=0})))}}(t,g):function(e,t){a(t,!0),w||e.preventDefault()}(t,m)}},function(t){e&&(u.current=t.detail===s.current)}]}var E=n(99153),k=n(84851),I=function(){function e(){(0,E.Z)(this,e),(0,a.Z)(this,"maps",void 0),(0,a.Z)(this,"id",0),(0,a.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,k.Z)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function j(e){var t=parseFloat(e);return isNaN(t)?0:t}var N=14/15;function M(e){return Math.floor(Math.pow(e,.5))}function Z(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var O=m.forwardRef((function(e,t){var n=e.prefixCls,o=e.rtl,r=e.scrollOffset,c=e.scrollRange,s=e.onStartMove,d=e.onStopMove,f=e.onScroll,p=e.horizontal,g=e.spinSize,h=e.containerSize,v=e.style,b=e.thumbStyle,y=e.showScrollBar,w=m.useState(!1),C=(0,l.Z)(w,2),S=C[0],E=C[1],k=m.useState(null),I=(0,l.Z)(k,2),j=I[0],N=I[1],M=m.useState(null),O=(0,l.Z)(M,2),$=O[0],A=O[1],z=!o,T=m.useRef(),P=m.useRef(),L=m.useState(y),R=(0,l.Z)(L,2),B=R[0],D=R[1],H=m.useRef(),W=function(){!0!==y&&!1!==y&&(clearTimeout(H.current),D(!0),H.current=setTimeout((function(){D(!1)}),3e3))},F=c-h||0,K=h-g||0,V=m.useMemo((function(){return 0===r||0===F?0:r/F*K}),[r,F,K]),q=m.useRef({top:V,dragging:S,pageY:j,startTop:$});q.current={top:V,dragging:S,pageY:j,startTop:$};var X=function(e){E(!0),N(Z(e,p)),A(q.current.top),s(),e.stopPropagation(),e.preventDefault()};m.useEffect((function(){var e=function(e){e.preventDefault()},t=T.current,n=P.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",X,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",X)}}),[]);var G=m.useRef();G.current=F;var Q=m.useRef();Q.current=K,m.useEffect((function(){if(S){var e,t=function(t){var n=q.current,o=n.dragging,r=n.pageY,i=n.startTop;x.Z.cancel(e);var a=T.current.getBoundingClientRect(),l=h/(p?a.width:a.height);if(o){var c=(Z(t,p)-r)*l,s=i;!z&&p?s-=c:s+=c;var u=G.current,d=Q.current,m=d?s/d:0,g=Math.ceil(m*u);g=Math.max(g,0),g=Math.min(g,u),e=(0,x.Z)((function(){f(g,p)}))}},n=function(){E(!1),d()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),x.Z.cancel(e)}}}),[S]),m.useEffect((function(){return W(),function(){clearTimeout(H.current)}}),[r]),m.useImperativeHandle(t,(function(){return{delayHidden:W}}));var _="".concat(n,"-scrollbar"),U={position:"absolute",visibility:B?null:"hidden"},Y={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return p?(U.height=8,U.left=0,U.right=0,U.bottom=0,Y.height="100%",Y.width=g,z?Y.left=V:Y.right=V):(U.width=8,U.top=0,U.bottom=0,z?U.right=0:U.left=0,Y.width="100%",Y.height=g,Y.top=V),m.createElement("div",{ref:T,className:u()(_,(0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(_,"-horizontal"),p),"".concat(_,"-vertical"),!p),"".concat(_,"-visible"),B)),style:(0,i.Z)((0,i.Z)({},U),v),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:W},m.createElement("div",{ref:P,className:u()("".concat(_,"-thumb"),(0,a.Z)({},"".concat(_,"-thumb-moving"),S)),style:(0,i.Z)((0,i.Z)({},Y),b),onMouseDown:X}))}));function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,20),Math.floor(n)}var A=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],z=[],T={overflowY:"auto",overflowAnchor:"none"};function P(e,t){var n=e.prefixCls,s=void 0===n?"rc-virtual-list":n,h=e.className,w=e.height,E=e.itemHeight,k=e.fullHeight,P=void 0===k||k,L=e.style,R=e.data,B=e.children,D=e.itemKey,H=e.virtual,W=e.direction,F=e.scrollWidth,K=e.component,V=void 0===K?"div":K,q=e.onScroll,X=e.onVirtualScroll,G=e.onVisibleChange,Q=e.innerProps,_=e.extraRender,U=e.styles,Y=e.showScrollBar,J=void 0===Y?"optional":Y,ee=(0,c.Z)(e,A),te=m.useCallback((function(e){return"function"==typeof D?D(e):null==e?void 0:e[D]}),[D]),ne=function(e,t,n){var o=m.useState(0),r=(0,l.Z)(o,2),i=r[0],a=r[1],c=(0,m.useRef)(new Map),s=(0,m.useRef)(new I),u=(0,m.useRef)(0);function d(){u.current+=1}function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){var e=!1;c.current.forEach((function(t,n){if(t&&t.offsetParent){var o=t.offsetHeight,r=getComputedStyle(t),i=r.marginTop,a=r.marginBottom,l=o+j(i)+j(a);s.current.get(n)!==l&&(s.current.set(n,l),e=!0)}})),e&&a((function(e){return e+1}))};if(e)t();else{u.current+=1;var n=u.current;Promise.resolve().then((function(){n===u.current&&t()}))}}return(0,m.useEffect)((function(){return d}),[]),[function(o,r){var i=e(o),a=c.current.get(i);r?(c.current.set(i,r),f()):c.current.delete(i),!a!=!r&&(r?null==t||t(o):null==n||n(o))},f,s.current,i]}(te,null,null),oe=(0,l.Z)(ne,4),re=oe[0],ie=oe[1],ae=oe[2],le=oe[3],ce=!(!1===H||!w||!E),se=m.useMemo((function(){return Object.values(ae.maps).reduce((function(e,t){return e+t}),0)}),[ae.id,ae.maps]),ue=ce&&R&&(Math.max(E*R.length,se)>w||!!F),de="rtl"===W,fe=u()(s,(0,a.Z)({},"".concat(s,"-rtl"),de),h),pe=R||z,me=(0,m.useRef)(),ge=(0,m.useRef)(),he=(0,m.useRef)(),ve=(0,m.useState)(0),be=(0,l.Z)(ve,2),ye=be[0],xe=be[1],we=(0,m.useState)(0),Ce=(0,l.Z)(we,2),Se=Ce[0],Ee=Ce[1],ke=(0,m.useState)(!1),Ie=(0,l.Z)(ke,2),je=Ie[0],Ne=Ie[1],Me=function(){Ne(!0)},Ze=function(){Ne(!1)},Oe={getKey:te};function $e(e){xe((function(t){var n=function(e){var t=e;Number.isNaN(Ue.current)||(t=Math.min(t,Ue.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return me.current.scrollTop=n,n}))}var Ae=(0,m.useRef)({start:0,end:pe.length}),ze=(0,m.useRef)(),Te=y(pe,te),Pe=(0,l.Z)(Te,1)[0];ze.current=Pe;var Le=m.useMemo((function(){if(!ce)return{scrollHeight:void 0,start:0,end:pe.length-1,offset:void 0};var e;if(!ue)return{scrollHeight:(null===(e=ge.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:pe.length-1,offset:void 0};for(var t,n,o,r=0,i=pe.length,a=0;a=ye&&void 0===t&&(t=a,n=r),u>ye+w&&void 0===o&&(o=a),r=u}return void 0===t&&(t=0,n=0,o=Math.ceil(w/E)),void 0===o&&(o=pe.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,pe.length-1),offset:n}}),[ue,ce,ye,pe,le,w]),Re=Le.scrollHeight,Be=Le.start,De=Le.end,He=Le.offset;Ae.current.start=Be,Ae.current.end=De,m.useLayoutEffect((function(){var e=ae.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),o=pe[Be];if(o&&void 0===n)if(te(o)===t){var r=ae.get(t)-E;$e((function(e){return e+r}))}}ae.resetRecord()}),[Re]);var We=m.useState({width:0,height:w}),Fe=(0,l.Z)(We,2),Ke=Fe[0],Ve=Fe[1],qe=(0,m.useRef)(),Xe=(0,m.useRef)(),Ge=m.useMemo((function(){return $(Ke.width,F)}),[Ke.width,F]),Qe=m.useMemo((function(){return $(Ke.height,Re)}),[Ke.height,Re]),_e=Re-w,Ue=(0,m.useRef)(_e);Ue.current=_e;var Ye=ye<=0,Je=ye>=_e,et=Se<=0,tt=Se>=F,nt=C(Ye,Je,et,tt),ot=function(){return{x:de?-Se:Se,y:ye}},rt=(0,m.useRef)(ot()),it=(0,f.zX)((function(e){if(X){var t=(0,i.Z)((0,i.Z)({},ot()),e);rt.current.x===t.x&&rt.current.y===t.y||(X(t),rt.current=t)}}));function at(e,t){var n=e;t?((0,g.flushSync)((function(){Ee(n)})),it()):$e(n)}var lt=function(e){var t=e,n=F?F-Ke.width:0;return t=Math.max(t,0),t=Math.min(t,n)},ct=(0,f.zX)((function(e,t){t?((0,g.flushSync)((function(){Ee((function(t){return lt(t+(de?-e:e))}))})),it()):$e((function(t){return t+e}))})),st=S(ce,Ye,Je,et,tt,!!F,ct),ut=(0,l.Z)(st,2),dt=ut[0],ft=ut[1];!function(e,t,n){var o,r=(0,m.useRef)(!1),i=(0,m.useRef)(0),a=(0,m.useRef)(0),l=(0,m.useRef)(null),c=(0,m.useRef)(null),s=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageX),o=Math.ceil(e.touches[0].pageY),l=i.current-t,s=a.current-o,u=Math.abs(l)>Math.abs(s);u?i.current=t:a.current=o;var d=n(u,u?l:s,!1,e);d&&e.preventDefault(),clearInterval(c.current),d&&(c.current=setInterval((function(){u?l*=N:s*=N;var e=Math.floor(u?l:s);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)}),16))}},u=function(){r.current=!1,o()},d=function(e){o(),1!==e.touches.length||r.current||(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",s,{passive:!1}),l.current.addEventListener("touchend",u,{passive:!0}))};o=function(){l.current&&(l.current.removeEventListener("touchmove",s),l.current.removeEventListener("touchend",u))},(0,p.Z)((function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),o(),clearInterval(c.current)}}),[e])}(ce,me,(function(e,t,n,o){var r=o;return!nt(e,t,n)&&((!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),dt({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),function(e,t,n){m.useEffect((function(){var o=t.current;if(e&&o){var r,i,a=!1,l=function(){x.Z.cancel(r)},c=function e(){l(),r=(0,x.Z)((function(){n(i),e()}))},s=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},u=function(){a=!1,l()},d=function(e){if(a){var t=Z(e,!1),n=o.getBoundingClientRect(),r=n.top,s=n.bottom;t<=r?(i=-M(r-t),c()):t>=s?(i=M(t-s),c()):l()}};return o.addEventListener("mousedown",s),o.ownerDocument.addEventListener("mouseup",u),o.ownerDocument.addEventListener("mousemove",d),function(){o.removeEventListener("mousedown",s),o.ownerDocument.removeEventListener("mouseup",u),o.ownerDocument.removeEventListener("mousemove",d),l()}}}),[e])}(ue,me,(function(e){$e((function(t){return t+e}))})),(0,p.Z)((function(){function e(e){var t=Ye&&e.detail<0,n=Je&&e.detail>0;!ce||t||n||e.preventDefault()}var t=me.current;return t.addEventListener("wheel",dt,{passive:!1}),t.addEventListener("DOMMouseScroll",ft,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",dt),t.removeEventListener("DOMMouseScroll",ft),t.removeEventListener("MozMousePixelScroll",e)}}),[ce,Ye,Je]),(0,p.Z)((function(){if(F){var e=lt(Se);Ee(e),it({x:e})}}),[Ke.width,F]);var pt=function(){var e,t;null===(e=qe.current)||void 0===e||e.delayHidden(),null===(t=Xe.current)||void 0===t||t.delayHidden()},mt=function(e,t,n,o,a,c,s,u){var d=m.useRef(),f=m.useState(null),g=(0,l.Z)(f,2),h=g[0],v=g[1];return(0,p.Z)((function(){if(h&&h.times<10){if(!e.current)return void v((function(e){return(0,i.Z)({},e)}));c();var r=h.targetAlign,l=h.originAlign,u=h.index,d=h.offset,f=e.current.clientHeight,p=!1,m=r,g=null;if(f){for(var b=r||l,y=0,x=0,w=0,C=Math.min(t.length-1,u),S=0;S<=C;S+=1){var E=a(t[S]);x=y;var k=n.get(E);y=w=x+(void 0===k?o:k)}for(var I="top"===b?d:f-d,j=C;j>=0;j-=1){var N=a(t[j]),M=n.get(N);if(void 0===M){p=!0;break}if((I-=M)<=0)break}switch(b){case"top":g=x-d;break;case"bottom":g=w-f+d;break;default:var Z=e.current.scrollTop;xZ+f&&(m="bottom")}null!==g&&s(g),g!==h.lastTop&&(p=!0)}p&&v((0,i.Z)((0,i.Z)({},h),{},{times:h.times+1,targetAlign:m,lastTop:g}))}}),[h,e.current]),function(e){if(null!=e){if(x.Z.cancel(d.current),"number"==typeof e)s(e);else if(e&&"object"===(0,r.Z)(e)){var n,o=e.align;n="index"in e?e.index:t.findIndex((function(t){return a(t)===e.key}));var i=e.offset;v({times:0,index:n,offset:void 0===i?0:i,originAlign:o})}}else u()}}(me,pe,ae,E,te,(function(){return ie(!0)}),$e,pt);m.useImperativeHandle(t,(function(){return{nativeElement:he.current,getScrollInfo:ot,scrollTo:function(e){var t;(t=e)&&"object"===(0,r.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Ee(lt(e.left)),mt(e.top)):mt(e)}}})),(0,p.Z)((function(){if(G){var e=pe.slice(Be,De+1);G(e,pe)}}),[Be,De,pe]);var gt=function(e,t,n,o){var r=m.useMemo((function(){return[new Map,[]]}),[e,n.id,o]),i=(0,l.Z)(r,2),a=i[0],c=i[1];return function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,l=a.get(r),s=a.get(i);if(void 0===l||void 0===s)for(var u=e.length,d=c.length;dw&&m.createElement(O,{ref:qe,prefixCls:s,scrollOffset:ye,scrollRange:Re,rtl:de,onScroll:at,onStartMove:Me,onStopMove:Ze,spinSize:Qe,containerSize:Ke.height,style:null==U?void 0:U.verticalScrollBar,thumbStyle:null==U?void 0:U.verticalScrollBarThumb,showScrollBar:J}),ue&&F>Ke.width&&m.createElement(O,{ref:Xe,prefixCls:s,scrollOffset:Se,scrollRange:F,rtl:de,onScroll:at,onStartMove:Me,onStopMove:Ze,spinSize:Ge,containerSize:Ke.width,horizontal:!0,style:null==U?void 0:U.horizontalScrollBar,thumbStyle:null==U?void 0:U.horizontalScrollBarThumb,showScrollBar:J}))}var L=m.forwardRef(P);L.displayName="List";var R=L},76374:function(e,t,n){var o=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,o=Object.keys(t);n0},e}(),C="undefined"!=typeof WeakMap?new WeakMap:new o,S=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),o=new w(t,n,this);C.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){S.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}}));var E=void 0!==i.ResizeObserver?i.ResizeObserver:S;t.Z=E},32637:function(e,t,n){e.exports=n.p+"static/AssistantCode3.a8740efb.jpeg"}}]); \ No newline at end of file diff --git a/p__NewCompetitions__index.82607796.async.js b/p__NewCompetitions__index.82607796.async.js new file mode 100644 index 0000000000..626dbbee39 --- /dev/null +++ b/p__NewCompetitions__index.82607796.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[7665],{40001:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(7657),s=function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var l=r.forwardRef(s)},84105:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(7657),s=function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var l=r.forwardRef(s)},18785:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(7657),s=function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var l=r.forwardRef(s)},15277:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=n(7657),s=function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var l=r.forwardRef(s)},33853:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(7657),s=function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var l=r.forwardRef(s)},38819:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(14809),r=n(59301),o={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"},a=n(7657),s=function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var l=r.forwardRef(s)},47472:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(14809),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n(7657),s=function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var l=r.forwardRef(s)},65966:function(e,t,n){"use strict";n.d(t,{Z:function(){return V}});var i=n(20439),r=n(50298),o=n(62646),a=n(43403),s=n(92310),l=n.n(s),c=n(29301),u=n(76846),h=n(96452),d=n(6089),p=n(80402),f=n(34280),g=n(49658),m=n(59301),v=n(14809),y=n(77900),b=n(8654);function w(e){var t=e.prefixCls,n=e.align,i=e.arrow,r=e.arrowPos,o=i||{},a=o.className,s=o.content,c=r.x,u=void 0===c?0:c,h=r.y,d=void 0===h?0:h,p=m.useRef();if(!n||!n.points)return null;var f={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],v=n.points[1],y=g[0],b=g[1],w=v[0],x=v[1];y!==w&&["t","b"].includes(y)?"t"===y?f.top=0:f.bottom=0:f.top=d,b!==x&&["l","r"].includes(b)?"l"===b?f.left=0:f.right=0:f.left=u}return m.createElement("div",{ref:p,className:l()("".concat(t,"-arrow"),a),style:f},s)}function x(e){var t=e.prefixCls,n=e.open,i=e.zIndex,r=e.mask,o=e.motion;return r?m.createElement(y.ZP,(0,v.Z)({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return m.createElement("div",{style:{zIndex:i},className:l()("".concat(t,"-mask"),n)})})):null}var S=m.memo((function(e){return e.children}),(function(e,t){return t.cache}));var k=m.forwardRef((function(e,t){var n=e.popup,o=e.className,a=e.prefixCls,s=e.style,u=e.target,h=e.onVisibleChanged,d=e.open,p=e.keepDom,g=e.fresh,k=e.onClick,_=e.mask,C=e.arrow,P=e.arrowPos,E=e.align,M=e.motion,L=e.maskMotion,A=e.forceRender,T=e.getPopupContainer,D=e.autoDestroy,N=e.portal,I=e.zIndex,B=e.onMouseEnter,R=e.onMouseLeave,O=e.onPointerEnter,F=e.onPointerDownCapture,z=e.ready,j=e.offsetX,$=e.offsetY,H=e.offsetR,Z=e.offsetB,K=e.onAlign,G=e.onPrepare,U=e.stretch,V=e.targetWidth,W=e.targetHeight,q="function"==typeof n?n():n,Y=d||p,X=(null==T?void 0:T.length)>0,Q=m.useState(!T||!X),J=(0,r.Z)(Q,2),ee=J[0],te=J[1];if((0,f.Z)((function(){!ee&&X&&u&&te(!0)}),[ee,X,u]),!ee)return null;var ne="auto",ie={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(z||!d){var re,oe=E.points,ae=E.dynamicInset||(null===(re=E._experimental)||void 0===re?void 0:re.dynamicInset),se=ae&&"r"===oe[0][1],le=ae&&"b"===oe[0][0];se?(ie.right=H,ie.left=ne):(ie.left=j,ie.right=ne),le?(ie.bottom=Z,ie.top=ne):(ie.top=$,ie.bottom=ne)}var ce={};return U&&(U.includes("height")&&W?ce.height=W:U.includes("minHeight")&&W&&(ce.minHeight=W),U.includes("width")&&V?ce.width=V:U.includes("minWidth")&&V&&(ce.minWidth=V)),d||(ce.pointerEvents="none"),m.createElement(N,{open:A||Y,getContainer:T&&function(){return T(u)},autoDestroy:D},m.createElement(x,{prefixCls:a,open:d,zIndex:I,mask:_,motion:L}),m.createElement(c.Z,{onResize:K,disabled:!d},(function(e){return m.createElement(y.ZP,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:A,leavedClassName:"".concat(a,"-hidden")},M,{onAppearPrepare:G,onEnterPrepare:G,visible:d,onVisibleChanged:function(e){var t;null==M||null===(t=M.onVisibleChanged)||void 0===t||t.call(M,e),h(e)}}),(function(n,r){var c=n.className,u=n.style,h=l()(a,c,o);return m.createElement("div",{ref:(0,b.sQ)(e,t,r),className:h,style:(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({"--arrow-x":"".concat(P.x||0,"px"),"--arrow-y":"".concat(P.y||0,"px")},ie),ce),u),{},{boxSizing:"border-box",zIndex:I},s),onMouseEnter:B,onMouseLeave:R,onPointerEnter:O,onClick:k,onPointerDownCapture:F},C&&m.createElement(w,{prefixCls:a,arrow:C,arrowPos:P,align:E}),m.createElement(S,{cache:!d&&!g},q))}))})))}));var _=m.forwardRef((function(e,t){var n=e.children,i=e.getTriggerDOMNode,r=(0,b.Yr)(n),o=m.useCallback((function(e){(0,b.mH)(t,i?i(e):e)}),[i]),a=(0,b.x1)(o,(0,b.C4)(n));return r?m.cloneElement(n,{ref:a}):n})),C=m.createContext(null);function P(e){return e?Array.isArray(e)?e:[e]:[]}function E(e,t,n,i){return m.useMemo((function(){var r=P(null!=n?n:t),o=P(null!=i?i:t),a=new Set(r),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,i])}var M=n(29194);function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function A(e,t,n,i){for(var r=n.points,o=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function B(e){return I(parseFloat(e),0)}function R(e,t){var n=(0,i.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=D(e).getComputedStyle(e),i=t.overflow,r=t.overflowClipMargin,o=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,h=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,f=B(o),g=B(a),m=B(s),v=B(l),y=I(Math.round(c.width/d*1e3)/1e3),b=I(Math.round(c.height/u*1e3)/1e3),w=(d-p-m-v)*y,x=(u-h-f-g)*b,S=f*b,k=g*b,_=m*y,C=v*y,P=0,E=0;if("clip"===i){var M=B(r);P=M*y,E=M*b}var L=c.x+_-P,A=c.y+S-E,T=L+c.width+2*P-_-C-w,N=A+c.height+2*E-S-k-x;n.left=Math.max(n.left,L),n.top=Math.max(n.top,A),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,N)}})),n}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),i=n.match(/^(.*)\%$/);return i?e*(parseFloat(i[1])/100):parseFloat(n)}function F(e,t){var n=t||[],i=(0,r.Z)(n,2),o=i[0],a=i[1];return[O(e.width,o),O(e.height,a)]}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function j(e,t){var n,i=t[0],r=t[1];return n="t"===i?e.y:"b"===i?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function $(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,i){return i===t?n[e]||"c":e})).join("")}function H(e,t,n,o,a,s,l){var c=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),h=(0,r.Z)(c,2),p=h[0],g=h[1],v=m.useRef(0),y=m.useMemo((function(){return t?N(t):[]}),[t]),b=m.useRef({});e||(b.current={});var w=(0,d.Z)((function(){if(t&&n&&e){var c,h,d,p,f,m=t,v=m.ownerDocument,w=D(m),x=w.getComputedStyle(m).position,S=m.style.left,k=m.style.top,_=m.style.right,C=m.style.bottom,P=m.style.overflow,E=(0,i.Z)((0,i.Z)({},a[o]),s),L=v.createElement("div");if(null===(c=m.parentElement)||void 0===c||c.appendChild(L),L.style.left="".concat(m.offsetLeft,"px"),L.style.top="".concat(m.offsetTop,"px"),L.style.position=x,L.style.height="".concat(m.offsetHeight,"px"),L.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(n))f={x:n[0],y:n[1],width:0,height:0};else{var A,T,N=n.getBoundingClientRect();N.x=null!==(A=N.x)&&void 0!==A?A:N.left,N.y=null!==(T=N.y)&&void 0!==T?T:N.top,f={x:N.x,y:N.y,width:N.width,height:N.height}}var B=m.getBoundingClientRect(),O=w.getComputedStyle(m),H=O.height,Z=O.width;B.x=null!==(h=B.x)&&void 0!==h?h:B.left,B.y=null!==(d=B.y)&&void 0!==d?d:B.top;var K=v.documentElement,G=K.clientWidth,U=K.clientHeight,V=K.scrollWidth,W=K.scrollHeight,q=K.scrollTop,Y=K.scrollLeft,X=B.height,Q=B.width,J=f.height,ee=f.width,te={left:0,top:0,right:G,bottom:U},ne={left:-Y,top:-q,right:V-Y,bottom:W-q},ie=E.htmlRegion,re="visible",oe="visibleFirst";"scroll"!==ie&&ie!==oe&&(ie=re);var ae=ie===oe,se=R(ne,y),le=R(te,y),ce=ie===re?le:se,ue=ae?le:ce;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var he=m.getBoundingClientRect();m.style.left=S,m.style.top=k,m.style.right=_,m.style.bottom=C,m.style.overflow=P,null===(p=m.parentElement)||void 0===p||p.removeChild(L);var de=I(Math.round(Q/parseFloat(Z)*1e3)/1e3),pe=I(Math.round(X/parseFloat(H)*1e3)/1e3);if(0===de||0===pe||(0,u.Sh)(n)&&!(0,M.Z)(n))return;var fe=E.offset,ge=E.targetOffset,me=F(B,fe),ve=(0,r.Z)(me,2),ye=ve[0],be=ve[1],we=F(f,ge),xe=(0,r.Z)(we,2),Se=xe[0],ke=xe[1];f.x-=Se,f.y-=ke;var _e=E.points||[],Ce=(0,r.Z)(_e,2),Pe=Ce[0],Ee=z(Ce[1]),Me=z(Pe),Le=j(f,Ee),Ae=j(B,Me),Te=(0,i.Z)({},E),De=Le.x-Ae.x+ye,Ne=Le.y-Ae.y+be;function Pt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ce,i=B.x+e,r=B.y+t,o=i+Q,a=r+X,s=Math.max(i,n.left),l=Math.max(r,n.top),c=Math.min(o,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var Ie,Be,Re,Oe,Fe=Pt(De,Ne),ze=Pt(De,Ne,le),je=j(f,["t","l"]),$e=j(B,["t","l"]),He=j(f,["b","r"]),Ze=j(B,["b","r"]),Ke=E.overflow||{},Ge=Ke.adjustX,Ue=Ke.adjustY,Ve=Ke.shiftX,We=Ke.shiftY,qe=function(e){return"boolean"==typeof e?e:e>=0};function Et(){Ie=B.y+Ne,Be=Ie+X,Re=B.x+De,Oe=Re+Q}Et();var Ye=qe(Ue),Xe=Me[0]===Ee[0];if(Ye&&"t"===Me[0]&&(Be>ue.bottom||b.current.bt)){var Qe=Ne;Xe?Qe-=X-J:Qe=je.y-Ze.y-be;var Je=Pt(De,Qe),et=Pt(De,Qe,le);Je>Fe||Je===Fe&&(!ae||et>=ze)?(b.current.bt=!0,Ne=Qe,be=-be,Te.points=[$(Me,0),$(Ee,0)]):b.current.bt=!1}if(Ye&&"b"===Me[0]&&(IeFe||nt===Fe&&(!ae||it>=ze)?(b.current.tb=!0,Ne=tt,be=-be,Te.points=[$(Me,0),$(Ee,0)]):b.current.tb=!1}var rt=qe(Ge),ot=Me[1]===Ee[1];if(rt&&"l"===Me[1]&&(Oe>ue.right||b.current.rl)){var at=De;ot?at-=Q-ee:at=je.x-Ze.x-ye;var st=Pt(at,Ne),lt=Pt(at,Ne,le);st>Fe||st===Fe&&(!ae||lt>=ze)?(b.current.rl=!0,De=at,ye=-ye,Te.points=[$(Me,1),$(Ee,1)]):b.current.rl=!1}if(rt&&"r"===Me[1]&&(ReFe||ut===Fe&&(!ae||ht>=ze)?(b.current.lr=!0,De=ct,ye=-ye,Te.points=[$(Me,1),$(Ee,1)]):b.current.lr=!1}Et();var dt=!0===Ve?0:Ve;"number"==typeof dt&&(Rele.right&&(De-=Oe-le.right-ye,f.x>le.right-dt&&(De+=f.x-le.right+dt)));var pt=!0===We?0:We;"number"==typeof pt&&(Iele.bottom&&(Ne-=Be-le.bottom-be,f.y>le.bottom-pt&&(Ne+=f.y-le.bottom+pt)));var ft=B.x+De,gt=ft+Q,mt=B.y+Ne,vt=mt+X,yt=f.x,bt=yt+ee,wt=f.y,xt=wt+J,St=(Math.max(ft,yt)+Math.min(gt,bt))/2-ft,kt=(Math.max(mt,wt)+Math.min(vt,xt))/2-mt;null==l||l(t,Te);var _t=he.right-B.x-(De+B.width),Ct=he.bottom-B.y-(Ne+B.height);1===de&&(De=Math.round(De),_t=Math.round(_t)),1===pe&&(Ne=Math.round(Ne),Ct=Math.round(Ct)),g({ready:!0,offsetX:De/de,offsetY:Ne/pe,offsetR:_t/de,offsetB:Ct/pe,arrowX:St/de,arrowY:kt/pe,scaleX:de,scaleY:pe,align:Te})}})),x=function(){g((function(e){return(0,i.Z)((0,i.Z)({},e),{},{ready:!1})}))};return(0,f.Z)(x,[o]),(0,f.Z)((function(){e||x()}),[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,function(){v.current+=1;var e=v.current;Promise.resolve().then((function(){v.current===e&&w()}))}]}var Z=n(95190);function K(e,t,n,i,r){(0,f.Z)((function(){if(e&&t&&n){var o=n,a=N(t),s=N(o),l=D(o),c=new Set([l].concat((0,Z.Z)(a),(0,Z.Z)(s)));function u(){i(),r()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),i(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[e,t,n])}n(48736);function G(e,t,n,i,r,o,a,s){var l=m.useRef(e);l.current=e;var c=m.useRef(!1);return m.useEffect((function(){if(t&&i&&(!r||o)){var e=function(){c.current=!1},u=function(e){var t;!l.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||c.current||s(!1)},d=D(i);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var p=(0,h.A)(n);return p&&(p.addEventListener("mousedown",u,!0),p.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),p&&(p.removeEventListener("mousedown",u,!0),p.removeEventListener("contextmenu",u,!0))}}}),[t,n,i,r,o]),function(){c.current=!0}}var U=["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"];var V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,t=m.forwardRef((function(t,n){var a=t.prefixCls,s=void 0===a?"rc-trigger-popup":a,v=t.children,y=t.action,b=void 0===y?"hover":y,w=t.showAction,x=t.hideAction,S=t.popupVisible,P=t.defaultPopupVisible,M=t.onPopupVisibleChange,L=t.afterPopupVisibleChange,D=t.mouseEnterDelay,N=t.mouseLeaveDelay,I=void 0===N?.1:N,B=t.focusDelay,R=t.blurDelay,O=t.mask,F=t.maskClosable,z=void 0===F||F,j=t.getPopupContainer,$=t.forceRender,Z=t.autoDestroy,V=t.destroyPopupOnHide,W=t.popup,q=t.popupClassName,Y=t.popupStyle,X=t.popupPlacement,Q=t.builtinPlacements,J=void 0===Q?{}:Q,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,ie=t.getPopupClassNameFromAlign,re=t.fresh,oe=t.alignPoint,ae=t.onPopupClick,se=t.onPopupAlign,le=t.arrow,ce=t.popupMotion,ue=t.maskMotion,he=t.popupTransitionName,de=t.popupAnimation,pe=t.maskTransitionName,fe=t.maskAnimation,ge=t.className,me=t.getTriggerDOMNode,ve=(0,o.Z)(t,U),ye=Z||V||!1,be=m.useState(!1),we=(0,r.Z)(be,2),xe=we[0],Se=we[1];(0,f.Z)((function(){Se((0,g.Z)())}),[]);var ke=m.useRef({}),_e=m.useContext(C),Ce=m.useMemo((function(){return{registerSubPopup:function(e,t){ke.current[e]=t,null==_e||_e.registerSubPopup(e,t)}}}),[_e]),Pe=(0,p.Z)(),Ee=m.useState(null),Me=(0,r.Z)(Ee,2),Le=Me[0],Ae=Me[1],Te=m.useRef(null),De=(0,d.Z)((function(e){Te.current=e,(0,u.Sh)(e)&&Le!==e&&Ae(e),null==_e||_e.registerSubPopup(Pe,e)})),Ne=m.useState(null),Ie=(0,r.Z)(Ne,2),Be=Ie[0],Re=Ie[1],Oe=m.useRef(null),Fe=(0,d.Z)((function(e){(0,u.Sh)(e)&&Be!==e&&(Re(e),Oe.current=e)})),ze=m.Children.only(v),je=(null==ze?void 0:ze.props)||{},$e={},He=(0,d.Z)((function(e){var t,n,i=Be;return(null==i?void 0:i.contains(e))||(null===(t=(0,h.A)(i))||void 0===t?void 0:t.host)===e||e===i||(null==Le?void 0:Le.contains(e))||(null===(n=(0,h.A)(Le))||void 0===n?void 0:n.host)===e||e===Le||Object.values(ke.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Ze=T(s,ce,de,he),Ke=T(s,ue,fe,pe),Ge=m.useState(P||!1),Ue=(0,r.Z)(Ge,2),Ve=Ue[0],We=Ue[1],qe=null!=S?S:Ve,Ye=(0,d.Z)((function(e){void 0===S&&We(e)}));(0,f.Z)((function(){We(S||!1)}),[S]);var Xe=m.useRef(qe);Xe.current=qe;var Qe=m.useRef([]);Qe.current=[];var Je=(0,d.Z)((function(e){var t;Ye(e),(null!==(t=Qe.current[Qe.current.length-1])&&void 0!==t?t:qe)!==e&&(Qe.current.push(e),null==M||M(e))})),et=m.useRef(),tt=function(){clearTimeout(et.current)},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tt(),0===t?Je(e):et.current=setTimeout((function(){Je(e)}),1e3*t)};m.useEffect((function(){return tt}),[]);var it=m.useState(!1),rt=(0,r.Z)(it,2),ot=rt[0],at=rt[1];(0,f.Z)((function(e){e&&!qe||at(!0)}),[qe]);var st=m.useState(null),lt=(0,r.Z)(st,2),ct=lt[0],ut=lt[1],ht=m.useState(null),dt=(0,r.Z)(ht,2),pt=dt[0],ft=dt[1],gt=function(e){ft([e.clientX,e.clientY])},mt=H(qe,Le,oe&&null!==pt?pt:Be,X,J,ee,se),vt=(0,r.Z)(mt,11),yt=vt[0],bt=vt[1],wt=vt[2],xt=vt[3],St=vt[4],kt=vt[5],_t=vt[6],Ct=vt[7],Pt=vt[8],Et=vt[9],Mt=vt[10],Lt=E(xe,b,w,x),At=(0,r.Z)(Lt,2),Tt=At[0],Dt=At[1],Nt=Tt.has("click"),It=Dt.has("click")||Dt.has("contextMenu"),Bt=(0,d.Z)((function(){ot||Mt()}));K(qe,Be,Le,Bt,(function(){Xe.current&&oe&&It&&nt(!1)})),(0,f.Z)((function(){Bt()}),[pt,X]),(0,f.Z)((function(){!qe||null!=J&&J[X]||Bt()}),[JSON.stringify(ee)]);var Rt=m.useMemo((function(){var e=A(J,s,Et,oe);return l()(e,null==ie?void 0:ie(Et))}),[Et,ie,J,s,oe]);m.useImperativeHandle(n,(function(){return{nativeElement:Oe.current,popupElement:Te.current,forceAlign:Bt}}));var Ot=m.useState(0),Ft=(0,r.Z)(Ot,2),zt=Ft[0],jt=Ft[1],$t=m.useState(0),Ht=(0,r.Z)($t,2),Zt=Ht[0],Kt=Ht[1],Gt=function(){if(ne&&Be){var e=Be.getBoundingClientRect();jt(e.width),Kt(e.height)}};function Ut(e,t,n,i){$e[e]=function(r){var o;null==i||i(r),nt(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l1?n-1:0),r=1;r1?n-1:0),r=1;ri.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+i.defaultValue);var r=go.Shape._FigureParameters[t];r||(r=[],go.Shape._FigureParameters[t]=r),r[n]=i};var t=[];function n(e,n){var i=t.pop();return void 0===i?new go.Point(e,n):(i.x=e,i.y=n,i)}function i(){var e=t.pop();return void 0===e?new go.Point:e}function r(e){t.push(e)}function o(e,t,n,i,r,o,a,s,l){l||(l=new go.Point);var c,u,h,d=e-n,p=r-a,f=NaN,g=NaN;0===d?0===p?e===n&&(f=e,g=t):g=(u=(o-s)/p)*(f=e)+(o-u*r):g=0===p?(c=(t-i)/d)*(f=r)+(h=t-c*e):(c=(t-i)/d)*(f=(o-(u=(o-s)/p)*r-(h=t-c*e))/(c-u))+h;return l.x=f,l.y=g,l}function a(e,t,n,i,r,o,a,s,l,c,u,h,d,p){var f=1-l,g=e*f+n*l,m=t*f+i*l,v=n*f+r*l,y=i*f+o*l,b=r*f+a*l,w=o*f+s*l,x=g*f+v*l,S=m*f+y*l,k=v*f+b*l,_=y*f+w*l,C=x*f+k*l,P=S*f+_*l;c.x=g,c.y=m,u.x=x,u.y=S,h.x=C,h.y=P,d.x=k,d.y=_,p.x=b,p.y=w}var s=new go.Spot(.156,.156),l=new go.Spot(.844,.844),c=(Math.sqrt(2)-1)/3*4;go.Shape.setFigureParameter("RoundedRectangle",0,new e("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",(function(e,t,n){var i=e?e.parameter1:NaN;(isNaN(i)||i<0)&&(i=5),i=Math.min(i,t/3);var r=(i=Math.min(i,n/3))*c,o=(new go.Geometry).add(new go.PathFigure(i,0,!0).add(new go.PathSegment(go.PathSegment.Line,t-i,0)).add(new go.PathSegment(go.PathSegment.Bezier,t,i,t-r,0,t,r)).add(new go.PathSegment(go.PathSegment.Line,t,n-i)).add(new go.PathSegment(go.PathSegment.Bezier,t-i,n,t,n-r,t-r,n)).add(new go.PathSegment(go.PathSegment.Line,i,n)).add(new go.PathSegment(go.PathSegment.Bezier,0,n-i,r,n,0,n-r)).add(new go.PathSegment(go.PathSegment.Line,0,i)).add(new go.PathSegment(go.PathSegment.Bezier,i,0,0,r,r,0).close()));return r>1&&(o.spot1=new go.Spot(0,0,r,r),o.spot2=new go.Spot(1,1,-r,-r)),o})),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,.25,.5,.75)})),go.Shape.defineFigureGenerator("TriangleDown",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,.5*t,n).close())).setSpots(.25,0,.75,.5)})),go.Shape.defineFigureGenerator("TriangleLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,n).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,0).close())).setSpots(.5,.25,1,.75)})),go.Shape.defineFigureGenerator("TriangleUp",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,n).add(new go.PathSegment(go.PathSegment.Line,0,n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,0).close())).setSpots(.25,.5,.75,1)})),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n).close())).setSpots(.25,.25,.75,.75)})),go.Shape.defineFigureGenerator("LineH",(function(e,t,n){var i=new go.Geometry(go.Geometry.Line);return i.startX=0,i.startY=n/2,i.endX=t,i.endY=n/2,i})),go.Shape.defineFigureGenerator("LineV",(function(e,t,n){var i=new go.Geometry(go.Geometry.Line);return i.startX=t/2,i.startY=0,i.endX=t/2,i.endY=n,i})),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n/2,!1).add(new go.PathSegment(go.PathSegment.Line,t,n/2)).add(new go.PathSegment(go.PathSegment.Move,t/2,0)).add(new go.PathSegment(go.PathSegment.Line,t/2,n)))})),go.Shape.defineFigureGenerator("XLine",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)))})),go.Shape.defineFigureGenerator("LineRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.25*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.25*t,n)))})),go.Shape.defineFigureGenerator("LineDown",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,.25*n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)).add(new go.PathSegment(go.PathSegment.Line,t,.25*n)))})),go.Shape.defineFigureGenerator("LineLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.75*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.75*t,n)))})),go.Shape.defineFigureGenerator("LineUp",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,.75*n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,.25*n)).add(new go.PathSegment(go.PathSegment.Line,t,.75*n)))})),go.Shape.defineFigureGenerator("AsteriskLine",(function(e,t,n){var i=.2/Math.SQRT2;return(new go.Geometry).add(new go.PathFigure(i*t,(1-i)*n,!1).add(new go.PathSegment(go.PathSegment.Line,(1-i)*t,i*n)).add(new go.PathSegment(go.PathSegment.Move,i*t,i*n)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*t,(1-i)*n)).add(new go.PathSegment(go.PathSegment.Move,0,n/2)).add(new go.PathSegment(go.PathSegment.Line,t,n/2)).add(new go.PathSegment(go.PathSegment.Move,t/2,0)).add(new go.PathSegment(go.PathSegment.Line,t/2,n)))})),go.Shape.defineFigureGenerator("CircleLine",(function(e,t,n){var i=t/2,r=(new go.Geometry).add(new go.PathFigure(t,t/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,i,i,i,i).close()));return r.spot1=s,r.spot2=l,r.defaultStretch=go.GraphObject.Uniform,r})),go.Shape.defineFigureGenerator("Line1",(function(e,t,n){var i=new go.Geometry(go.Geometry.Line);return i.startX=0,i.startY=0,i.endX=t,i.endY=n,i})),go.Shape.defineFigureGenerator("Line2",(function(e,t,n){var i=new go.Geometry(go.Geometry.Line);return i.startX=t,i.startY=0,i.endX=0,i.endY=n,i})),go.Shape.defineFigureGenerator("Curve1",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,t,n,c*t,0,t,(1-c)*n)))})),go.Shape.defineFigureGenerator("Curve2",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,t,n,0,c*n,(1-c)*t,n)))})),go.Shape.defineFigureGenerator("Curve3",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,c*n,c*t,n)))})),go.Shape.defineFigureGenerator("Curve4",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,n,(1-c)*t,0,0,(1-c)*n)))})),go.Shape.defineFigureGenerator("TriangleDownLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,.5,.5,1)})),go.Shape.defineFigureGenerator("TriangleDownRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(.5,.5,1,1)})),go.Shape.defineFigureGenerator("TriangleUpLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,0,.5,.5)})),go.Shape.defineFigureGenerator("TriangleUpRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n).close())).setSpots(.5,0,1,.5)})),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new e("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)?i=.1:i<-1?i=-1:i>1&&(i=1);var r=Math.abs(i)*t;if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=t,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-r,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t-r,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())),rt&&(i=t);var r=Math.abs(i);if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=t,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-r,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t-r,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())),r.5&&(i=.5);var r=Math.abs(i)*t;if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=t,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,t-r,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-r,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())),rt&&(i=t/2);var r=Math.abs(i);if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=t,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,t-r,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-r,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())),rt&&(i=t/2);var r=Math.abs(i);if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=t,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-r,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())):o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,t-r,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())),r0&&(a.add(new go.PathSegment(go.PathSegment.Move,t/2+c,t/2)),a.add(new go.PathSegment(go.PathSegment.Arc,0,-360,r,r,c,c).close())),o.spot1=s,o.spot2=l,o.defaultStretch=go.GraphObject.Uniform,o})),go.Shape.defineFigureGenerator("Cloud",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.08034461*t,.1944299*n,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*t,.05349299*n,-.09239631*t,.07836421*n,.1406031*t,-.0542823*n)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*t,.074219*n,.2450511*t,-.00697547*n,.3776197*t,-.01112067*n)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*t,.07004196*n,.4539471*t,0,.6066018*t,-.02526587*n)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*t,.08370865*n,.6914277*t,-.01904177*n,.8921095*t,-.01220843*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*t,.3194596*n,1.036446*t,.04105738*n,1.020377*t,.3022052*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*t,.562044*n,1.04448*t,.360238*n,.992256*t,.5219009*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*t,.8217117*n,1.032337*t,.5771781*n,1.018411*t,.8120651*n)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*t,.9156953*n,1.028411*t,.9571472*n,.8556702*t,1.052487*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*t,.9310455*n,.7431877*t,1.009325*n,.5624123*t,1.021761*n)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*t,.9344623*n,.4820677*t,1.031761*n,.3030112*t,1.002796*n)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*t,.870098*n,.2329994*t,1.01518*n,.03213784*t,1.01518*n)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*t,.6545475*n,-.02812061*t,.9032597*n,-.01205169*t,.6835638*n)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*t,.4265613*n,-.01812061*t,.6089503*n,-.00606892*t,.4555777*n)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*t,.1944299*n,-.01606892*t,.3892545*n,-.01205169*t,.1944299*n))).setSpots(.1,.1,.9,.9)})),go.Shape.defineFigureGenerator("StopSign",(function(e,t,n){var i=1/(Math.SQRT2+2);return(new go.Geometry).add(new go.PathFigure(i*t,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-i)*t,0)).add(new go.PathSegment(go.PathSegment.Line,t,i*n)).add(new go.PathSegment(go.PathSegment.Line,t,(1-i)*n)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*t,n)).add(new go.PathSegment(go.PathSegment.Line,i*t,n)).add(new go.PathSegment(go.PathSegment.Line,0,(1-i)*n)).add(new go.PathSegment(go.PathSegment.Line,0,i*n).close())).setSpots(i/2,i/2,1-i/2,1-i/2)})),go.Shape.setFigureParameter("Pie",0,new e("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new e("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",(function(e,t,n){var i=e?e.parameter1:NaN,r=e?e.parameter2:NaN;isNaN(i)&&(i=0),isNaN(r)&&(r=315);var o=i%360;o<0&&(o+=360);var a=r%360,s=Math.min(t,n)/2;return(new go.Geometry).add(new go.PathFigure(s,s).add(new go.PathSegment(go.PathSegment.Arc,o,a,s,s,s,s).close()))})),go.Shape.defineFigureGenerator("PiePiece",(function(e,t,n){var i=c/Math.SQRT2*.5,r=Math.SQRT2/2,o=1-Math.SQRT2/2;return(new go.Geometry).add(new go.PathFigure(t,n,!0).add(new go.PathSegment(go.PathSegment.Bezier,r*t,o*n,t,(1-i)*n,(r+i)*t,(o+i)*n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close()))})),go.Shape.setFigureParameter("ThickCross",0,new e("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",(function(e,t,n){var i=e?e.parameter1:NaN;(isNaN(i)||i<0)&&(i=30);var r=Math.min(i,t)/2,o=t/2,a=n/2;return(new go.Geometry).add(new go.PathFigure(o-r,0,!0).add(new go.PathSegment(go.PathSegment.Line,o+r,0)).add(new go.PathSegment(go.PathSegment.Line,o+r,a-r)).add(new go.PathSegment(go.PathSegment.Line,t,a-r)).add(new go.PathSegment(go.PathSegment.Line,t,a+r)).add(new go.PathSegment(go.PathSegment.Line,o+r,a+r)).add(new go.PathSegment(go.PathSegment.Line,o+r,n)).add(new go.PathSegment(go.PathSegment.Line,o-r,n)).add(new go.PathSegment(go.PathSegment.Line,o-r,a+r)).add(new go.PathSegment(go.PathSegment.Line,0,a+r)).add(new go.PathSegment(go.PathSegment.Line,0,a-r)).add(new go.PathSegment(go.PathSegment.Line,o-r,a-r).close()))})),go.Shape.setFigureParameter("ThinCross",0,new e("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",(function(e,t,n){var i=e?e.parameter1:NaN;(isNaN(i)||i<0)&&(i=10);var r=Math.min(i,t)/2,o=t/2,a=n/2;return(new go.Geometry).add(new go.PathFigure(o-r,0,!0).add(new go.PathSegment(go.PathSegment.Line,o+r,0)).add(new go.PathSegment(go.PathSegment.Line,o+r,a-r)).add(new go.PathSegment(go.PathSegment.Line,t,a-r)).add(new go.PathSegment(go.PathSegment.Line,t,a+r)).add(new go.PathSegment(go.PathSegment.Line,o+r,a+r)).add(new go.PathSegment(go.PathSegment.Line,o+r,n)).add(new go.PathSegment(go.PathSegment.Line,o-r,n)).add(new go.PathSegment(go.PathSegment.Line,o-r,a+r)).add(new go.PathSegment(go.PathSegment.Line,0,a+r)).add(new go.PathSegment(go.PathSegment.Line,0,a-r)).add(new go.PathSegment(go.PathSegment.Line,o-r,a-r).close()))})),go.Shape.setFigureParameter("ThickX",0,new e("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",(function(e,t,n){var i=e?e.parameter1:NaN;if((isNaN(i)||i<0)&&(i=30),0===t||0===n)return(c=new go.Geometry(go.Geometry.Rectangle)).startX=0,c.startY=0,c.endX=t,c.endY=n,c;var r=t/2,o=n/2,a=Math.atan2(n,t),s=i-Math.min(Math.cos(a)*i/2,r),l=i-Math.min(Math.sin(a)*i/2,o),c=new go.Geometry,u=new go.PathFigure(s,0,!0);return c.add(u),u.add(new go.PathSegment(go.PathSegment.Line,r,.2*n)),u.add(new go.PathSegment(go.PathSegment.Line,t-s,0)),u.add(new go.PathSegment(go.PathSegment.Line,t,l)),u.add(new go.PathSegment(go.PathSegment.Line,.8*t,o)),u.add(new go.PathSegment(go.PathSegment.Line,t,n-l)),u.add(new go.PathSegment(go.PathSegment.Line,t-s,n)),u.add(new go.PathSegment(go.PathSegment.Line,r,.8*n)),u.add(new go.PathSegment(go.PathSegment.Line,s,n)),u.add(new go.PathSegment(go.PathSegment.Line,0,n-l)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,o)),u.add(new go.PathSegment(go.PathSegment.Line,0,l).close()),c})),go.Shape.setFigureParameter("ThinX",0,new e("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",(function(e,t,n){var i=e?e.parameter1:NaN;(isNaN(i)||i<0)&&(i=10);var r=new go.Geometry,o=new go.PathFigure(.1*t,0,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.1*n).close()),r})),go.Shape.setFigureParameter("SquareIBeam",0,new e("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.2);var r=new go.Geometry,o=new go.PathFigure(0,0,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,i*n)),o.add(new go.PathSegment(go.PathSegment.Line,(.5+i/2)*t,i*n)),o.add(new go.PathSegment(go.PathSegment.Line,(.5+i/2)*t,(1-i)*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,(1-i)*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,(1-i)*n)),o.add(new go.PathSegment(go.PathSegment.Line,(.5-i/2)*t,(1-i)*n)),o.add(new go.PathSegment(go.PathSegment.Line,(.5-i/2)*t,i*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,i*n).close()),r})),go.Shape.setFigureParameter("RoundedIBeam",0,new e("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.5);var r=new go.Geometry,o=new go.PathFigure(0,0,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,n,Math.abs(1-i)*t,.25*n,Math.abs(1-i)*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,0,i*t,.75*n,i*t,.25*n).close()),r})),go.Shape.defineFigureGenerator("HalfEllipse",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,c*t,0,t,(.5-c/2)*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,(.5+c/2)*n,c*t,n).close())).setSpots(0,.156,.844,.844)})),go.Shape.defineFigureGenerator("Crescent",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,0,t,n)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*t,.75*n,.5*t,.25*n).close())).setSpots(.311,.266,.744,.744)})),go.Shape.defineFigureGenerator("Heart",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,n,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*n,.1*t,.8*n,0,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.3*n,0,0,.45*t,0)).add(new go.PathSegment(go.PathSegment.Bezier,t,.3*n,.55*t,0,t,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,.5*n,.9*t,.8*n).close())).setSpots(.14,.29,.86,.78)})),go.Shape.defineFigureGenerator("Spade",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*t,.01*n)).add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,.6*t,.2*n,t,.25*n)).add(new go.PathSegment(go.PathSegment.Bezier,.55*t,.7*n,t,.8*n,.6*t,.8*n)).add(new go.PathSegment(go.PathSegment.Bezier,.75*t,n,.5*t,.75*n,.55*t,.95*n)).add(new go.PathSegment(go.PathSegment.Line,.25*t,n)).add(new go.PathSegment(go.PathSegment.Bezier,.45*t,.7*n,.45*t,.95*n,.5*t,.75*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.4*t,.8*n,0,.8*n)).add(new go.PathSegment(go.PathSegment.Bezier,.49*t,.01*n,0,.25*n,.4*t,.2*n).close())).setSpots(.14,.26,.86,.78)})),go.Shape.defineFigureGenerator("Club",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.4*t,.6*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.15*t,n,.5*t,.75*n,.45*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.6*t,.6*n,.55*t,.95*n,.5*t,.75*n));var o=.2,a=.3,s=0,l=o*c;return r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*t,(.5+o+s)*n,(.5-o+a)*t,(.5+l+s)*n,(.5-l+a)*t,(.5+o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o+a)*t,(.5+s)*n,(.5+l+a)*t,(.5+o+s)*n,(.5+o+a)*t,(.5+l+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*t,(.5-o+s)*n,(.5+o+a)*t,(.5-l+s)*n,(.5+l+a)*t,(.5-o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.65*t,.36771243*n,(.5-l+a)*t,(.5-o+s)*n,(.5-o+a+.05)*t,(.5-l+s-.02)*n)),a=0,s=-.3,l=(o=.2)*c,r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o+a)*t,(.5+s)*n,(.5+l+a)*t,(.5+o+s)*n,(.5+o+a)*t,(.5+l+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*t,(.5-o+s)*n,(.5+o+a)*t,(.5-l+s)*n,(.5+l+a)*t,(.5-o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5-o+a)*t,(.5+s)*n,(.5-l+a)*t,(.5-o+s)*n,(.5-o+a)*t,(.5-l+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5-l+a)*t,(.5+o+s)*n,(.5-o+a)*t,(.5+l+s)*n,(.5-l+a)*t,(.5+o+s)*n)),a=-.3,s=0,l=(o=.2)*c,r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*t,(.5-o+s)*n,(.5+o+a-.05)*t,(.5-l+s-.02)*n,(.5+l+a)*t,(.5-o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5-o+a)*t,(.5+s)*n,(.5-l+a)*t,(.5-o+s)*n,(.5-o+a)*t,(.5-l+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*t,(.5+o+s)*n,(.5-o+a)*t,(.5+l+s)*n,(.5-l+a)*t,(.5+o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,.6*n,(.5+l+a)*t,(.5+o+s)*n,(.5+o+a)*t,(.5+l+s)*n).close()),i.setSpots(.06,.33,.93,.68),i})),go.Shape.defineFigureGenerator("YinYang",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,270,180,.5*t,.5*t,.5*t,.5*t)),r.add(new go.PathSegment(go.PathSegment.Arc,90,-180,.5*t,.75*t,.25*t,.25*t)),r.add(new go.PathSegment(go.PathSegment.Arc,90,180,.5*t,.25*t,.25*t,.25*t));var o=.1,a=.5,s=.25;return r.add(new go.PathSegment(go.PathSegment.Move,.6*t,s*n)),r.add(new go.PathSegment(go.PathSegment.Arc,0,-360,t*a,n*s,o*t,o*t).close()),r=new go.PathFigure(.5*t,0,!1),i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,270,-180,.5*t,.5*t,.5*t,.5*t)),s=.75,r=new go.PathFigure(.6*t,s*n,!0),i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,0,360,t*a,n*s,o*t,o*t).close()),i.defaultStretch=go.GraphObject.Uniform,i})),go.Shape.defineFigureGenerator("Peace",(function(e,t,n){var i=.8535533905932737,r=.5*t,o=.5*n;return(new go.Geometry).add(new go.PathFigure(r,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,r,o,r,o)).add(new go.PathSegment(go.PathSegment.Line,r,n)).add(new go.PathSegment(go.PathSegment.Move,r,o)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*t,i*n)).add(new go.PathSegment(go.PathSegment.Move,r,o)).add(new go.PathSegment(go.PathSegment.Line,i*t,i*n)))})),go.Shape.defineFigureGenerator("NotAllowed",(function(e,t,n){var o=new go.Geometry,s=.5*c,l=.5,u=.5,h=.5,d=new go.PathFigure(u*t,(h-l)*n);o.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,(u-l)*t,h*n,(u-s)*t,(h-l)*n,(u-l)*t,(h-s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h+l)*n,(u-l)*t,(h+s)*n,(u-s)*t,(h+l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(u+l)*t,h*n,(u+s)*t,(h+l)*n,(u+l)*t,(h+s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h-l)*n,(u+l)*t,(h-s)*n,(u+s)*t,(h-l)*n)),l=.4,s=.4*c;var p=i(),f=i(),g=i(),m=i();a(u,h-l,u+s,h-l,u+l,h-s,u+l,h,.42,p,f,g,m,m);var v=i(),y=i(),b=i();a(u,h-l,u+s,h-l,u+l,h-s,u+l,h,.58,m,m,b,v,y);var w=i(),x=i(),S=i();a(u,h+l,u-s,h+l,u-l,h+s,u-l,h,.42,w,x,S,m,m);var k=i(),_=i(),C=i();return a(u,h+l,u-s,h+l,u-l,h+s,u-l,h,.58,m,m,C,k,_),d.add(new go.PathSegment(go.PathSegment.Move,C.x*t,C.y*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(u-l)*t,h*n,k.x*t,k.y*n,_.x*t,_.y*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h-l)*n,(u-l)*t,(h-s)*n,(u-s)*t,(h-l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,g.x*t,g.y*n,p.x*t,p.y*n,f.x*t,f.y*n)),d.add(new go.PathSegment(go.PathSegment.Line,C.x*t,C.y*n).close()),d.add(new go.PathSegment(go.PathSegment.Move,S.x*t,S.y*n)),d.add(new go.PathSegment(go.PathSegment.Line,b.x*t,b.y*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(u+l)*t,h*n,v.x*t,v.y*n,y.x*t,y.y*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h+l)*n,(u+l)*t,(h+s)*n,(u+s)*t,(h+l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,S.x*t,S.y*n,w.x*t,w.y*n,x.x*t,x.y*n).close()),r(p),r(f),r(g),r(m),r(v),r(y),r(b),r(w),r(x),r(S),r(k),r(_),r(C),o.defaultStretch=go.GraphObject.Uniform,o})),go.Shape.defineFigureGenerator("Fragile",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*t,0)).add(new go.PathSegment(go.PathSegment.Line,.2*t,.15*n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.25*n)).add(new go.PathSegment(go.PathSegment.Line,.29*t,.33*n)).add(new go.PathSegment(go.PathSegment.Line,.35*t,.25*n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.15*n)).add(new go.PathSegment(go.PathSegment.Line,.4*t,0)).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*t,.5*n,t,.25*n,.75*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.55*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.45*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.45*t,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.5*n,0,.25*n).close()))})),go.Shape.setFigureParameter("HourGlass",0,new e("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",(function(e,t,n){var i=e?e.parameter1:NaN;(isNaN(i)||i<0)&&(i=30),i>t&&(i=t);var r=(t-i)/2,o=r+i;return(new go.Geometry).add(new go.PathFigure(o,.5*n).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n)).add(new go.PathSegment(go.PathSegment.Line,r,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,t,0).close()))})),go.Shape.defineFigureGenerator("Lightning",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,.55*n).add(new go.PathSegment(go.PathSegment.Line,.6*t,0)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.45*n)).add(new go.PathSegment(go.PathSegment.Line,t,.45*n)).add(new go.PathSegment(go.PathSegment.Line,.4*t,n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.55*n).close()))})),go.Shape.defineFigureGenerator("GenderMale",(function(e,t,o){var s=new go.Geometry,l=.4*c,u=.4,h=.5,d=.5,p=i(),f=i(),g=i(),m=i(),v=new go.PathFigure((h-u)*t,d*o,!1);s.add(v),v.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d-u)*o,(h-u)*t,(d-l)*o,(h-l)*t,(d-u)*o)),a(h,d-u,h+l,d-u,h+u,d-l,h+u,d,.44,g,m,f,p,p),v.add(new go.PathSegment(go.PathSegment.Bezier,f.x*t,f.y*o,g.x*t,g.y*o,m.x*t,m.y*o));var y=n(f.x,f.y);a(h,d-u,h+l,d-u,h+u,d-l,h+u,d,.56,p,p,f,g,m);var b=n(f.x,f.y);v.add(new go.PathSegment(go.PathSegment.Line,(.1*y.x+.855)*t,.1*y.y*o)),v.add(new go.PathSegment(go.PathSegment.Line,.85*t,.1*y.y*o)),v.add(new go.PathSegment(go.PathSegment.Line,.85*t,0)),v.add(new go.PathSegment(go.PathSegment.Line,t,0)),v.add(new go.PathSegment(go.PathSegment.Line,t,.15*o)),v.add(new go.PathSegment(go.PathSegment.Line,(.1*b.x+.9)*t,.15*o)),v.add(new go.PathSegment(go.PathSegment.Line,(.1*b.x+.9)*t,(.1*b.y+.05*.9)*o)),v.add(new go.PathSegment(go.PathSegment.Line,b.x*t,b.y*o)),v.add(new go.PathSegment(go.PathSegment.Bezier,(h+u)*t,d*o,g.x*t,g.y*o,m.x*t,m.y*o)),v.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d+u)*o,(h+u)*t,(d+l)*o,(h+l)*t,(d+u)*o)),v.add(new go.PathSegment(go.PathSegment.Bezier,(h-u)*t,d*o,(h-l)*t,(d+u)*o,(h-u)*t,(d+l)*o)),u=.35,l=.35*c;var w=new go.PathFigure(h*t,(d-u)*o,!1);s.add(w),w.add(new go.PathSegment(go.PathSegment.Bezier,(h-u)*t,d*o,(h-l)*t,(d-u)*o,(h-u)*t,(d-l)*o)),w.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d+u)*o,(h-u)*t,(d+l)*o,(h-l)*t,(d+u)*o)),w.add(new go.PathSegment(go.PathSegment.Bezier,(h+u)*t,d*o,(h+l)*t,(d+u)*o,(h+u)*t,(d+l)*o)),w.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d-u)*o,(h+u)*t,(d-l)*o,(h+l)*t,(d-u)*o));var x=new go.PathFigure((h-u)*t,d*o,!1);return s.add(x),r(p),r(f),r(g),r(m),r(y),r(b),s.spot1=new go.Spot(.202,.257),s.spot2=new go.Spot(.792,.739),s.defaultStretch=go.GraphObject.Uniform,s})),go.Shape.defineFigureGenerator("GenderFemale",(function(e,t,n){var i=new go.Geometry,r=.375,o=0,a=-.125,s=r*c,l=new go.PathFigure((.525+o)*t,(.5+r+a)*n,!1);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+r+o)*t,(.5+a)*n,(.5+s+o)*t,(.5+r+a)*n,(.5+r+o)*t,(.5+s+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o)*t,(.5-r+a)*n,(.5+r+o)*t,(.5-s+a)*n,(.5+s+o)*t,(.5-r+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5-r+o)*t,(.5+a)*n,(.5-s+o)*t,(.5-r+a)*n,(.5-r+o)*t,(.5-s+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.475+o)*t,(.5+r+a)*n,(.5-r+o)*t,(.5+s+a)*n,(.5-s+o)*t,(.5+r+a)*n)),l.add(new go.PathSegment(go.PathSegment.Line,.475*t,.85*n)),l.add(new go.PathSegment(go.PathSegment.Line,.425*t,.85*n)),l.add(new go.PathSegment(go.PathSegment.Line,.425*t,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.475*t,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.475*t,n)),l.add(new go.PathSegment(go.PathSegment.Line,.525*t,n)),l.add(new go.PathSegment(go.PathSegment.Line,.525*t,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.575*t,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.575*t,.85*n)),l.add(new go.PathSegment(go.PathSegment.Line,.525*t,.85*n).close()),o=0,a=-.125,s=(r=.325)*c;l=new go.PathFigure((.5+r+o)*t,(.5+a)*n,!1);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o)*t,(.5+r+a)*n,(.5+r+o)*t,(.5+s+a)*n,(.5+s+o)*t,(.5+r+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5-r+o)*t,(.5+a)*n,(.5-s+o)*t,(.5+r+a)*n,(.5-r+o)*t,(.5+s+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o)*t,(.5-r+a)*n,(.5-r+o)*t,(.5-s+a)*n,(.5-s+o)*t,(.5-r+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+r+o)*t,(.5+a)*n,(.5+s+o)*t,(.5-r+a)*n,(.5+r+o)*t,(.5-s+a)*n));l=new go.PathFigure((.525+o)*t,(.5+r+a)*n,!1);return i.add(l),i.spot1=new go.Spot(.232,.136),i.spot2=new go.Spot(.682,.611),i.defaultStretch=go.GraphObject.Uniform,i})),go.Shape.defineFigureGenerator("LogicImplies",(function(e,t,n){var i=e?e.parameter1:NaN;return isNaN(i)&&(i=.2),(new go.Geometry).add(new go.PathFigure((1-i)*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*t,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n))).setSpots(0,0,.8,.5)})),go.Shape.defineFigureGenerator("LogicIff",(function(e,t,n){var i=e?e.parameter1:NaN;return isNaN(i)&&(i=.2),(new go.Geometry).add(new go.PathFigure((1-i)*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*t,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Move,i*t,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,i*t,n))).setSpots(.2,0,.8,.5)})),go.Shape.defineFigureGenerator("LogicNot",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)))})),go.Shape.defineFigureGenerator("LogicAnd",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n))).setSpots(.25,.5,.75,1)})),go.Shape.defineFigureGenerator("LogicOr",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,t,0))).setSpots(.219,0,.78,.409)})),go.Shape.defineFigureGenerator("LogicXor",(function(e,t,n){var i=(new go.Geometry).add(new go.PathFigure(.5*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*t,.5*n,.5*t,.5*n)));return i.defaultStretch=go.GraphObject.Uniform,i})),go.Shape.defineFigureGenerator("LogicTruth",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,.5*t,0)).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)))})),go.Shape.defineFigureGenerator("LogicFalsity",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Move,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,0)))})),go.Shape.defineFigureGenerator("LogicThereExists",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Move,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n)))})),go.Shape.defineFigureGenerator("LogicForAll",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,.25*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.75*t,.5*n))).setSpots(.25,0,.75,.5)})),go.Shape.defineFigureGenerator("LogicIsDefinedAs",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Move,0,n)).add(new go.PathSegment(go.PathSegment.Line,t,n))).setSpots(.01,.01,.99,.49)})),go.Shape.defineFigureGenerator("LogicIntersect",(function(e,t,n){var i=.5;return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,0,i*n)).add(new go.PathSegment(go.PathSegment.Arc,180,180,i*t,i*n,i*t,i*n)).add(new go.PathSegment(go.PathSegment.Line,t,n))).setSpots(0,.5,1,1)})),go.Shape.defineFigureGenerator("LogicUnion",(function(e,t,n){var i=.5;return(new go.Geometry).add(new go.PathFigure(t,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,i*n)).add(new go.PathSegment(go.PathSegment.Arc,0,180,i*t,i*n,i*t,i*n)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)})),go.Shape.setFigureParameter("Arrow",0,new e("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new e("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.3);var s=e?e.parameter2:NaN;isNaN(s)&&(s=.3);var l=(1-a)*t,c=(.5-s/2)*n,u=(.5+s/2)*n,h=new go.Geometry,d=new go.PathFigure(0,c,!0);h.add(d),d.add(new go.PathSegment(go.PathSegment.Line,l,c)),d.add(new go.PathSegment(go.PathSegment.Line,l,0)),d.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),d.add(new go.PathSegment(go.PathSegment.Line,l,n)),d.add(new go.PathSegment(go.PathSegment.Line,l,u)),d.add(new go.PathSegment(go.PathSegment.Line,0,u).close()),h.spot1=new go.Spot(0,c/n);var p=o(0,u/n,1,u/n,l/t,1,1,.5,i());return h.spot2=new go.Spot(p.x,p.y),r(p),h})),go.Shape.setFigureParameter("Arrow2",0,new e("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new e("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=30),a>t&&(a=t);var s=e?e.parameter2:NaN;isNaN(s)&&(s=30);var l=t-a,c=(n-(s=Math.min(s,n/2)))/2,u=c+s,h=new go.Geometry,d=new go.PathFigure(0,c,!0);h.add(d),d.add(new go.PathSegment(go.PathSegment.Line,l,c)),d.add(new go.PathSegment(go.PathSegment.Line,l,0)),d.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),d.add(new go.PathSegment(go.PathSegment.Line,l,n)),d.add(new go.PathSegment(go.PathSegment.Line,l,u)),d.add(new go.PathSegment(go.PathSegment.Line,0,u).close()),h.spot1=new go.Spot(0,c/n);var p=o(0,u/n,1,u/n,l/t,1,1,.5,i());return h.spot2=new go.Spot(p.x,p.y),r(p),h})),go.Shape.defineFigureGenerator("Chevron",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n).close()),i})),go.Shape.defineFigureGenerator("DoubleArrow",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,.214*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,.786*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,1*n).close()),i})),go.Shape.setFigureParameter("DoubleEndArrow",0,new e("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.3);var s=(.5-a/2)*n,l=(.5+a/2)*n,c=new go.Geometry,u=new go.PathFigure(t,.5*n,!0);c.add(u),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,l)),u.add(new go.PathSegment(go.PathSegment.Line,.3*t,l)),u.add(new go.PathSegment(go.PathSegment.Line,.3*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),u.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),u.add(new go.PathSegment(go.PathSegment.Line,.3*t,s)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,s)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close());var h=o(0,.5,.3,0,0,s/n,.1,s/n,i());return c.spot1=new go.Spot(h.x,h.y),h=o(.7,1,1,.5,0,l/n,1,l/n,h),c.spot2=new go.Spot(h.x,h.y),r(h),c})),go.Shape.setFigureParameter("DoubleEndArrow2",0,new e("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new e("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=40);var s=e?e.parameter2:NaN;isNaN(s)&&(s=100);var l=(n-a)/2,c=l+a,u=(n-s)/2,h=u+s;(a>n||s>n)&&(s>a?(c=(l=(n-(a=a*n/s))/2)+a,u=0,h=n):(l=0,c=n,u=0,h=n));var d=new go.Geometry,p=new go.PathFigure(t,.5*n,!0);d.add(p),p.add(new go.PathSegment(go.PathSegment.Line,.7*t,h)),p.add(new go.PathSegment(go.PathSegment.Line,.7*t,c)),p.add(new go.PathSegment(go.PathSegment.Line,.3*t,c)),p.add(new go.PathSegment(go.PathSegment.Line,.3*t,h)),p.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),p.add(new go.PathSegment(go.PathSegment.Line,.3*t,u)),p.add(new go.PathSegment(go.PathSegment.Line,.3*t,l)),p.add(new go.PathSegment(go.PathSegment.Line,.7*t,l)),p.add(new go.PathSegment(go.PathSegment.Line,.7*t,u).close());var f=o(0,.5,.3,u/n,0,l/n,1,l/n,i());return d.spot1=new go.Spot(f.x,f.y),f=o(.7,h/n,1,.5,0,c/n,1,c/n,f),d.spot2=new go.Spot(f.x,f.y),r(f),d})),go.Shape.setFigureParameter("IBeamArrow",0,new e("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.3);var s=(.5-a/2)*n,l=(.5+a/2)*n,c=new go.Geometry,u=new go.PathFigure(t,.5*n,!0);c.add(u),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,l)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,l)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,0,n)),u.add(new go.PathSegment(go.PathSegment.Line,0,0)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,0)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,s)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,s)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),c.spot1=new go.Spot(0,s/n);var h=o(.7,1,1,.5,0,l/n,1,l/n,i());return c.spot2=new go.Spot(h.x,h.y),r(h),c})),go.Shape.setFigureParameter("IBeamArrow2",0,new e("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new e("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=40);var s=e?e.parameter2:NaN;isNaN(s)&&(s=100);var l=(n-a)/2,c=l+a,u=(n-s)/2,h=u+s;(a>n||s>n)&&(s>a?(c=(l=(n-(a=a*n/s))/2)+a,u=0,h=n):(l=0,c=n,u=0,h=n));var d=new go.Geometry,p=new go.PathFigure(t,.5*n,!0);d.add(p),p.add(new go.PathSegment(go.PathSegment.Line,.7*t,h)),p.add(new go.PathSegment(go.PathSegment.Line,.7*t,c)),p.add(new go.PathSegment(go.PathSegment.Line,.2*t,c)),p.add(new go.PathSegment(go.PathSegment.Line,.2*t,h)),p.add(new go.PathSegment(go.PathSegment.Line,0,h)),p.add(new go.PathSegment(go.PathSegment.Line,0,u)),p.add(new go.PathSegment(go.PathSegment.Line,.2*t,u)),p.add(new go.PathSegment(go.PathSegment.Line,.2*t,l)),p.add(new go.PathSegment(go.PathSegment.Line,.7*t,l)),p.add(new go.PathSegment(go.PathSegment.Line,.7*t,u).close()),d.spot1=new go.Spot(0,l/n);var f=o(.7,h/n,1,.5,0,c/n,1,c/n,i());return d.spot2=new go.Spot(f.x,f.y),r(f),d})),go.Shape.setFigureParameter("Pointer",0,new e("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.1);var s=new go.Geometry,l=new go.PathFigure(t,.5*n,!0);s.add(l),l.add(new go.PathSegment(go.PathSegment.Line,0,n)),l.add(new go.PathSegment(go.PathSegment.Line,a*t,.5*n)),l.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),s.spot1=new go.Spot(a,.35);var c=o(.2,.65,1,.65,0,1,1,.5,i());return s.spot2=new go.Spot(c.x,c.y),r(c),s})),go.Shape.setFigureParameter("RoundedPointer",0,new e("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.3);var s=new go.Geometry,l=new go.PathFigure(t,.5*n,!0);s.add(l),l.add(new go.PathSegment(go.PathSegment.Line,0,n)),l.add(new go.PathSegment(go.PathSegment.Bezier,0,0,a*t,.75*n,a*t,.25*n).close()),s.spot1=new go.Spot(a,.35);var c=o(0,.65,1,.65,0,1,1,.5,i());return s.spot2=new go.Spot(c.x,c.y),r(c),s})),go.Shape.setFigureParameter("SplitEndArrow",0,new e("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.4);var s=(.5-a/2)*n,l=(.5+a/2)*n,c=new go.Geometry,u=new go.PathFigure(t,.5*n,!0);c.add(u),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,l)),u.add(new go.PathSegment(go.PathSegment.Line,0,l)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),u.add(new go.PathSegment(go.PathSegment.Line,0,s)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,s)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),c.spot1=new go.Spot(.2,.3);var h=o(.7,1,1,.5,0,l/n,1,l/n,i());return c.spot2=new go.Spot(h.x,h.y),r(h),c})),go.Shape.setFigureParameter("SplitEndArrow2",0,new e("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=50);var s=(n-a)/2,l=s+a;a>n&&(s=0,l=n);var c=new go.Geometry,u=new go.PathFigure(t,.5*n,!0);c.add(u),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,l)),u.add(new go.PathSegment(go.PathSegment.Line,0,l)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),u.add(new go.PathSegment(go.PathSegment.Line,0,s)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,s)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),c.spot1=new go.Spot(.2,s/n);var h=o(.7,1,1,.5,0,l/n,1,l/n,i());return c.spot2=new go.Spot(h.x,h.y),r(h),c})),go.Shape.setFigureParameter("SquareArrow",0,new e("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.7);var r=new go.Geometry,o=new go.PathFigure(t,.5*n,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,i*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,i*t,0).close()),r.spot1=go.Spot.TopLeft,r.spot2=new go.Spot(i,1),r})),go.Shape.defineFigureGenerator("Cone1",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.1*c,a=new go.PathFigure(0,.9*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),a.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.9+o)*n,(.5+r)*t,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-r)*t,n,0,(.9+o)*n).close()),i.spot1=new go.Spot(.25,.5),i.spot2=new go.Spot(.75,.97),i})),go.Shape.defineFigureGenerator("Cone2",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.9*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.9*n,(1-.85/.9)*t,n,.85/.9*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,.9*n).close());var o=new go.PathFigure(0,.9*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.9*n,(1-.85/.9)*t,.8*n,.85/.9*t,.8*n)),i.spot1=new go.Spot(.25,.5),i.spot2=new go.Spot(.75,.82),i})),go.Shape.defineFigureGenerator("Cube1",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.85*n).close());var o=new go.PathFigure(.5*t,n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.15*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),i.spot1=new go.Spot(0,.3),i.spot2=new go.Spot(.5,.85),i})),go.Shape.defineFigureGenerator("Cube2",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.3*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,0).close());var o=new go.PathFigure(0,.3*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Move,.7*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),i.spot1=new go.Spot(0,.3),i.spot2=new go.Spot(.7,1),i})),go.Shape.defineFigureGenerator("Cylinder1",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=5),i=Math.min(i,n/3);var r=new go.Geometry,o=.5*c,a=new go.PathFigure(0,i,!0);r.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,c*i,(.5-o)*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,1*t,i,(.5+o)*t,0,1*t,c*i)),a.add(new go.PathSegment(go.PathSegment.Line,t,n-i)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,1*n,1*t,n-c*i,(.5+o)*t,1*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,n-i,(.5-o)*t,1*n,0,n-c*i)),a.add(new go.PathSegment(go.PathSegment.Line,0,i));var s=new go.PathFigure(t,i,!1);return r.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,2*i,1*t,2*i-c*i,(.5+o)*t,2*i)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,i,(.5-o)*t,2*i,0,2*i-c*i)),r.spot1=new go.Spot(0,0,0,2*i),r.spot2=new go.Spot(1,1),r})),go.Shape.defineFigureGenerator("Cylinder2",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=5),i=Math.min(i,n/3);var r=new go.Geometry,o=.5*c,a=new go.PathFigure(0,n-i,!0);r.add(a),a.add(new go.PathSegment(go.PathSegment.Line,0,i)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,c*i,(.5-o)*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,i,(.5+o)*t,0,t,c*i)),a.add(new go.PathSegment(go.PathSegment.Line,t,n-i)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,n-c*i,(.5+o)*t,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,n-i,(.5-o)*t,n,0,n-c*i));var s=new go.PathFigure(0,n-i,!1);return r.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n-2*i,0,n-i-c*i,(.5-o)*t,n-2*i)),s.add(new go.PathSegment(go.PathSegment.Bezier,t,n-i,(.5+o)*t,n-2*i,t,n-i-c*i)),r.spot1=new go.Spot(0,0),r.spot2=new go.Spot(1,1,0,-2*i),r})),go.Shape.defineFigureGenerator("Cylinder3",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=5),i=Math.min(i,t/3);var r=new go.Geometry,o=.5*c,a=new go.PathFigure(i,0,!0);r.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t-i,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,t-c*i,0,t,(.5-o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,t-i,n,t,(.5+o)*n,t-c*i,n)),a.add(new go.PathSegment(go.PathSegment.Line,i,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,c*i,n,0,(.5+o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,i,0,0,(.5-o)*n,c*i,0));var s=new go.PathFigure(i,0,!1);return r.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,2*i,.5*n,i+c*i,0,2*i,(.5-o)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,i,n,2*i,(.5+o)*n,i+c*i,n)),r.spot1=new go.Spot(0,0,2*i,0),r.spot2=new go.Spot(1,1),r})),go.Shape.defineFigureGenerator("Cylinder4",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=5),i=Math.min(i,t/3);var r=new go.Geometry,o=.5*c,a=new go.PathFigure(t-i,0,!0);r.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,t-c*i,0,t,(.5-o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,t-i,n,t,(.5+o)*n,t-c*i,n)),a.add(new go.PathSegment(go.PathSegment.Line,i,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,c*i,n,0,(.5+o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,i,0,0,(.5-o)*n,c*i,0)),a.add(new go.PathSegment(go.PathSegment.Line,t-i,0));var s=new go.PathFigure(t-i,0,!1);return r.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,t-2*i,.5*n,t-i-c*i,0,t-2*i,(.5-o)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,t-i,n,t-2*i,(.5+o)*n,t-i-c*i,n)),r.spot1=new go.Spot(0,0),r.spot2=new go.Spot(1,1,-2*i,0),r})),go.Shape.defineFigureGenerator("Prism1",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.25*t,.25*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var o=new go.PathFigure(.25*t,.25*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),i.spot1=new go.Spot(.408,.172),i.spot2=new go.Spot(.833,.662),i})),go.Shape.defineFigureGenerator("Prism2",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.25*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var o=new go.PathFigure(0,n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Move,0,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.5*n)),i.spot1=new go.Spot(.25,.5),i.spot2=new go.Spot(.75,.75),i})),go.Shape.defineFigureGenerator("Pyramid1",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.75*n).close());var o=new go.PathFigure(.5*t,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),i.spot1=new go.Spot(.25,.367),i.spot2=new go.Spot(.75,.875),i})),go.Shape.defineFigureGenerator("Pyramid2",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.85*n).close());var o=new go.PathFigure(.5*t,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.85*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),i.spot1=new go.Spot(.25,.367),i.spot2=new go.Spot(.75,.875),i})),go.Shape.defineFigureGenerator("Actor",(function(e,t,n){var i=new go.Geometry,r=.2,o=.1,a=c*r,s=c*o,l=.5,u=.1,h=new go.PathFigure(l*t,(u+o)*n,!0);i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,(l-r)*t,u*n,(l-a)*t,(u+o)*n,(l-r)*t,(u+s)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u-o)*n,(l-r)*t,(u-s)*n,(l-a)*t,(u-o)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(l+r)*t,u*n,(l+a)*t,(u-o)*n,(l+r)*t,(u-s)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u+o)*n,(l+r)*t,(u+s)*n,(l+a)*t,(u+o)*n));var d=.05,p=c*d;l=.05,u=.25;var f=new go.PathFigure(.5*t,.2*n,!0);return i.add(f),f.add(new go.PathSegment(go.PathSegment.Line,.95*t,.2*n)),l=.95,u=.25,f.add(new go.PathSegment(go.PathSegment.Bezier,(l+d)*t,u*n,(l+p)*t,(u-d)*n,(l+d)*t,(u-p)*n)),f.add(new go.PathSegment(go.PathSegment.Line,t,.6*n)),f.add(new go.PathSegment(go.PathSegment.Line,.85*t,.6*n)),f.add(new go.PathSegment(go.PathSegment.Line,.85*t,.35*n)),p=c*(d=.025),l=.825,u=.35,f.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u-d)*n,(l+d)*t,(u-p)*n,(l+p)*t,(u-d)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(l-d)*t,u*n,(l-p)*t,(u-d)*n,(l-d)*t,(u-p)*n)),f.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),f.add(new go.PathSegment(go.PathSegment.Line,.55*t,n)),f.add(new go.PathSegment(go.PathSegment.Line,.55*t,.7*n)),p=c*(d=.05),l=.5,u=.7,f.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u-d)*n,(l+d)*t,(u-p)*n,(l+p)*t,(u-d)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(l-d)*t,u*n,(l-p)*t,(u-d)*n,(l-d)*t,(u-p)*n)),f.add(new go.PathSegment(go.PathSegment.Line,.45*t,n)),f.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),f.add(new go.PathSegment(go.PathSegment.Line,.2*t,.35*n)),p=c*(d=.025),l=.175,u=.35,f.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u-d)*n,(l+d)*t,(u-p)*n,(l+p)*t,(u-d)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(l-d)*t,u*n,(l-p)*t,(u-d)*n,(l-d)*t,(u-p)*n)),f.add(new go.PathSegment(go.PathSegment.Line,.15*t,.6*n)),f.add(new go.PathSegment(go.PathSegment.Line,0,.6*n)),f.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),p=c*(d=.05),l=.05,u=.25,f.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u-d)*n,(l-d)*t,(u-p)*n,(l-p)*t,(u-d)*n)),f.add(new go.PathSegment(go.PathSegment.Line,.5*t,.2*n)),i.spot1=new go.Spot(.2,.2),i.spot2=new go.Spot(.8,.65),i})),go.Shape.setFigureParameter("Card",0,new e("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.2);var r=new go.Geometry,o=new go.PathFigure(t,0,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,i*n)),o.add(new go.PathSegment(go.PathSegment.Line,i*t,0).close()),r.spot1=new go.Spot(0,i),r.spot2=go.Spot.BottomRight,r})),go.Shape.defineFigureGenerator("Collate",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,.5*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n));var o=new go.PathFigure(.5*t,.5*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),i.spot1=new go.Spot(.25,0),i.spot2=new go.Spot(.75,.25),i})),go.Shape.defineFigureGenerator("CreateRequest",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure(0,r*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t,r*n)),a.add(new go.PathSegment(go.PathSegment.Move,0,(1-r)*n)),a.add(new go.PathSegment(go.PathSegment.Line,t,(1-r)*n)),i})),go.Shape.defineFigureGenerator("Database",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.1*c,a=new go.PathFigure(t,.1*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.9+o)*n,(.5+r)*t,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-r)*t,n,0,(.9+o)*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,(.1-o)*n,(.5-r)*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,.1*n,(.5+r)*t,0,t,(.1-o)*n));var s=new go.PathFigure(t,.1*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,t,(.1+o)*n,(.5+r)*t,.2*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*n,(.5-r)*t,.2*n,0,(.1+o)*n)),s.add(new go.PathSegment(go.PathSegment.Move,t,.2*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.3*n,t,(.2+o)*n,(.5+r)*t,.3*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*n,(.5-r)*t,.3*n,0,(.2+o)*n)),s.add(new go.PathSegment(go.PathSegment.Move,t,.3*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.4*n,t,(.3+o)*n,(.5+r)*t,.4*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*n,(.5-r)*t,.4*n,0,(.3+o)*n)),i.spot1=new go.Spot(0,.4),i.spot2=new go.Spot(1,.9),i})),go.Shape.defineFigureGenerator("DataStorage",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.75*t,n,t,0,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.9*n,.25*t,.1*n).close()),i.spot1=new go.Spot(.226,0),i.spot2=new go.Spot(.81,1),i})),go.Shape.defineFigureGenerator("DiskStorage",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.1*c,a=new go.PathFigure(t,.1*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.9+o)*n,(.5+r)*t,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-r)*t,n,0,(.9+o)*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,(.1-o)*n,(.5-r)*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,.1*n,(.5+r)*t,0,t,(.1-o)*n));var s=new go.PathFigure(t,.1*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,t,(.1+o)*n,(.5+r)*t,.2*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*n,(.5-r)*t,.2*n,0,(.1+o)*n)),s.add(new go.PathSegment(go.PathSegment.Move,t,.2*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.3*n,t,(.2+o)*n,(.5+r)*t,.3*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*n,(.5-r)*t,.3*n,0,(.2+o)*n)),i.spot1=new go.Spot(0,.3),i.spot2=new go.Spot(1,.9),i})),go.Shape.defineFigureGenerator("Display",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.25*t,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.75*t,n,t,0,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close()),i.spot1=new go.Spot(.25,0),i.spot2=new go.Spot(.75,1),i})),go.Shape.defineFigureGenerator("DividedEvent",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)?r=.2:r<.15&&(r=.15);var o=.2*c,a=new go.PathFigure(0,.2*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,0,(.2-o)*n,(.2-o)*t,0)),a.add(new go.PathSegment(go.PathSegment.Line,.8*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,.2*n,(.8+o)*t,0,t,(.2-o)*n)),a.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,n,t,(.8+o)*n,(.8+o)*t,n)),a.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*n,(.2-o)*t,n,0,(.8+o)*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.2*n));var s=new go.PathFigure(0,r*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,t,r*n)),i})),go.Shape.defineFigureGenerator("DividedProcess",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;(isNaN(r)||r<.1)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure(0,r*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t,r*n)),i})),go.Shape.defineFigureGenerator("Document",(function(e,t,n){var i=new go.Geometry;n/=.8;var r=new go.PathFigure(0,.7*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*t,.4*n,.5*t,n).close()),i.spot1=go.Spot.TopLeft,i.spot2=new go.Spot(1,.6),i})),go.Shape.defineFigureGenerator("ExternalOrganization",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;(isNaN(r)||r<.2)&&(r=.2);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure(r*t,0,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,0,r*n)),a.add(new go.PathSegment(go.PathSegment.Move,t,r*n)),a.add(new go.PathSegment(go.PathSegment.Line,(1-r)*t,0)),a.add(new go.PathSegment(go.PathSegment.Move,0,(1-r)*n)),a.add(new go.PathSegment(go.PathSegment.Line,r*t,n)),a.add(new go.PathSegment(go.PathSegment.Move,(1-r)*t,n)),a.add(new go.PathSegment(go.PathSegment.Line,t,(1-r)*n)),i})),go.Shape.defineFigureGenerator("ExternalProcess",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close());var o=new go.PathFigure(.1*t,.4*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Move,.9*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Move,.6*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Move,.4*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.9*n)),i.spot1=new go.Spot(.25,.25),i.spot2=new go.Spot(.75,.75),i})),go.Shape.defineFigureGenerator("File",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var o=new go.PathFigure(.75*t,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),i.spot1=new go.Spot(0,.25),i.spot2=go.Spot.BottomRight,i})),go.Shape.defineFigureGenerator("Interrupt",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(t,.5*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n));var o=new go.PathFigure(t,.5*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,n));var a=new go.PathFigure(t,.5*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t,0)),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.5,.75),i})),go.Shape.defineFigureGenerator("InternalStorage",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN,o=e?e.parameter2:NaN;isNaN(r)&&(r=.1),isNaN(o)&&(o=.1);var a=new go.PathFigure(0,0,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t,0)),a.add(new go.PathSegment(go.PathSegment.Line,t,n)),a.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var s=new go.PathFigure(r*t,0,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,r*t,n)),s.add(new go.PathSegment(go.PathSegment.Move,0,o*n)),s.add(new go.PathSegment(go.PathSegment.Line,t,o*n)),i})),go.Shape.defineFigureGenerator("Junction",(function(e,t,n){var i=new go.Geometry,r=1/Math.SQRT2,o=(1-1/Math.SQRT2)/2,a=.5*c,s=.5,l=new go.PathFigure(t,s*n,!0);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,s*t,n,t,(s+a)*n,(s+a)*t,n)),l.add(new go.PathSegment(go.PathSegment.Bezier,0,s*n,(s-a)*t,n,0,(s+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,s*t,0,0,(s-a)*n,(s-a)*t,0)),l.add(new go.PathSegment(go.PathSegment.Bezier,t,s*n,(s+a)*t,0,t,(s-a)*n));var u=new go.PathFigure((o+r)*t,(o+r)*n,!1);return i.add(u),u.add(new go.PathSegment(go.PathSegment.Line,o*t,o*n)),u.add(new go.PathSegment(go.PathSegment.Move,o*t,(o+r)*n)),u.add(new go.PathSegment(go.PathSegment.Line,(o+r)*t,o*n)),i})),go.Shape.defineFigureGenerator("LinedDocument",(function(e,t,n){var i=new go.Geometry;n/=.8;var r=new go.PathFigure(0,.7*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*t,.4*n,.5*t,n).close());var o=new go.PathFigure(.1*t,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.75*n)),i.spot1=new go.Spot(.1,0),i.spot2=new go.Spot(1,.6),i})),go.Shape.defineFigureGenerator("LoopLimit",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n).close()),i.spot1=new go.Spot(0,.25),i.spot2=go.Spot.BottomRight,i})),go.Shape.defineFigureGenerator("MagneticTape",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.5,a=new go.PathFigure(.5*t,n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,0,o*n,(o-r)*t,n,0,(o+r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,o*t,0,0,(o-r)*n,(o-r)*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,o*n,(o+r)*t,0,t,(o-r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.6*t,.9*n,t,(o+r)*n,(o+r)*t,.9*n)),a.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),a.add(new go.PathSegment(go.PathSegment.Line,t,n)),a.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),i.spot1=new go.Spot(.15,.15),i.spot2=new go.Spot(.85,.8),i})),go.Shape.defineFigureGenerator("ManualInput",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(t,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.25*n).close()),i.spot1=new go.Spot(0,.25),i.spot2=go.Spot.BottomRight,i})),go.Shape.defineFigureGenerator("MessageFromUser",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)&&(r=.7);var o=new go.PathFigure(0,0,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,r*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=go.Spot.TopLeft,i})),go.Shape.defineFigureGenerator("MicroformProcessing",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)&&(r=.25);var o=new go.PathFigure(0,0,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,r*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,(1-r)*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i})),go.Shape.defineFigureGenerator("MicroformRecording",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(1,.75),i})),go.Shape.defineFigureGenerator("MultiDocument",(function(e,t,n){var i=new go.Geometry;n/=.8;var r=new go.PathFigure(t,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,.44*n,.96*t,.47*n,.93*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.54*n,.86*t,.57*n,.83*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.4*t,.4*n,.4*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,0).close());var o=new go.PathFigure(.1*t,.2*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.54*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.44*n)),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.8,.77),i})),go.Shape.defineFigureGenerator("MultiProcess",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.1*t,.1*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,.2*n).close());var o=new go.PathFigure(.2*t,.1*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Move,.1*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.9*n)),i.spot1=new go.Spot(0,.2),i.spot2=new go.Spot(.8,1),i})),go.Shape.defineFigureGenerator("OfflineStorage",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n).close());var a=new go.PathFigure(.5*r*t,r*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,(1-.5*r)*t,r*n)),i})),go.Shape.defineFigureGenerator("OffPageConnector",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=go.Spot.TopLeft,i.spot2=new go.Spot(.75,1),i})),go.Shape.defineFigureGenerator("Or",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.5,a=new go.PathFigure(t,o*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,o*t,n,t,(o+r)*n,(o+r)*t,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,o*n,(o-r)*t,n,0,(o+r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,o*t,0,0,(o-r)*n,(o-r)*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,o*n,(o+r)*t,0,t,(o-r)*n));var s=new go.PathFigure(t,.5*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),s.add(new go.PathSegment(go.PathSegment.Move,.5*t,n)),s.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),i})),go.Shape.defineFigureGenerator("PaperTape",(function(e,t,n){var i=new go.Geometry;n/=.8;var r=new go.PathFigure(0,.7*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.3*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.3*n,.5*t,.6*n,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*t,.4*n,.5*t,n).close()),i.spot1=new go.Spot(0,.49),i.spot2=new go.Spot(1,.75),i})),go.Shape.defineFigureGenerator("PrimitiveFromCall",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN,o=e?e.parameter2:NaN;isNaN(r)&&(r=.1),isNaN(o)&&(o=.3);var a=new go.PathFigure(0,0,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t,0)),a.add(new go.PathSegment(go.PathSegment.Line,(1-o)*t,.5*n)),a.add(new go.PathSegment(go.PathSegment.Line,t,n)),a.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i})),go.Shape.defineFigureGenerator("PrimitiveToCall",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN,o=e?e.parameter2:NaN;isNaN(r)&&(r=.1),isNaN(o)&&(o=.3);var a=new go.PathFigure(0,0,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,(1-o)*t,0)),a.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),a.add(new go.PathSegment(go.PathSegment.Line,(1-o)*t,n)),a.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i})),go.Shape.defineFigureGenerator("Procedure",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure((1-r)*t,0,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,(1-r)*t,n)),a.add(new go.PathSegment(go.PathSegment.Move,r*t,0)),a.add(new go.PathSegment(go.PathSegment.Line,r*t,n)),i})),go.Shape.defineFigureGenerator("Process",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure(r*t,0,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,r*t,n)),i.spot2=go.Spot.BottomRight,i})),go.Shape.defineFigureGenerator("Sort",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close());var o=new go.PathFigure(0,.5*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),i.spot1=new go.Spot(.25,.25),i.spot2=new go.Spot(.75,.5),i})),go.Shape.defineFigureGenerator("Start",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)&&(r=.25);var o=new go.PathFigure(r*t,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*t,.5*n,.25*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*t,.5*n,.25*t,.5*n));var a=new go.PathFigure(r*t,0,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,r*t,n)),a.add(new go.PathSegment(go.PathSegment.Move,(1-r)*t,0)),a.add(new go.PathSegment(go.PathSegment.Line,(1-r)*t,n)),i.spot1=new go.Spot(r,0),i.spot2=new go.Spot(1-r,1),i})),go.Shape.defineFigureGenerator("Terminator",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.25*t,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*t,.5*n,.25*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*t,.5*n,.25*t,.5*n)),i.spot1=new go.Spot(.23,0),i.spot2=new go.Spot(.77,1),i})),go.Shape.defineFigureGenerator("TransmittalTape",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,(1-r)*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,(1-r)*n).close()),i.spot1=go.Spot.TopLeft,i})),go.Shape.defineFigureGenerator("AndGate",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=new go.PathFigure(0,0,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,(.5+r)*t,0,t,(.5-r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.5+r)*n,(.5+r)*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=go.Spot.TopLeft,i.spot2=new go.Spot(.55,1),i})),go.Shape.defineFigureGenerator("Buffer",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.5,.75),i})),go.Shape.defineFigureGenerator("Clock",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.5,a=new go.PathFigure(t,o*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,o*t,n,t,(o+r)*n,(o+r)*t,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,o*n,(o-r)*t,n,0,(o+r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,o*t,0,0,(o-r)*n,(o-r)*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,o*n,(o+r)*t,0,t,(o-r)*n));var s=new go.PathFigure(t,o*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,t,o*n));var l=new go.PathFigure(.8*t,.75*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.8*t,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.6*t,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.6*t,.75*n)),l.add(new go.PathSegment(go.PathSegment.Line,.4*t,.75*n)),l.add(new go.PathSegment(go.PathSegment.Line,.4*t,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.2*t,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.2*t,.75*n)),i})),go.Shape.defineFigureGenerator("Ground",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Move,.2*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Move,.3*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Move,.4*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,n)),i})),go.Shape.defineFigureGenerator("Inverter",(function(e,t,n){var i=new go.Geometry,r=.1*c,o=.9,a=.5,s=new go.PathFigure(.8*t,.5*n,!0);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,0,n)),s.add(new go.PathSegment(go.PathSegment.Line,0,0)),s.add(new go.PathSegment(go.PathSegment.Line,.8*t,.5*n));var l=new go.PathFigure(1*t,a*n,!0);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,o*t,.6*n,1*t,(a+r)*n,(o+r)*t,.6*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,a*n,(o-r)*t,.6*n,.8*t,(a+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,o*t,.4*n,.8*t,(a-r)*n,(o-r)*t,.4*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,1*t,a*n,(o+r)*t,.4*n,1*t,(a-r)*n)),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.4,.75),i})),go.Shape.defineFigureGenerator("NandGate",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.4*c,a=.1*c,s=.9,l=.5,u=new go.PathFigure(.8*t,.5*n,!0);i.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,n,.8*t,(.5+o)*n,(.4+r)*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,0,n)),u.add(new go.PathSegment(go.PathSegment.Line,0,0)),u.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),u.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(.4+r)*t,0,.8*t,(.5-o)*n));var h=new go.PathFigure(1*t,l*n,!0);return i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,s*t,.6*n,1*t,(l+a)*n,(s+a)*t,.6*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,l*n,(s-a)*t,.6*n,.8*t,(l+a)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,s*t,.4*n,.8*t,(l-a)*n,(s-a)*t,.4*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,1*t,l*n,(s+a)*t,.4*n,1*t,(l-a)*n)),i.spot1=new go.Spot(0,.05),i.spot2=new go.Spot(.55,.95),i})),go.Shape.defineFigureGenerator("NorGate",(function(e,t,n){var i=new go.Geometry,r=.5,o=c*r,a=0,s=.5,l=new go.PathFigure(.8*t,.5*n,!0);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.7*t,(s+o)*n,(a+o)*t,(s+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.75*n,.25*t,.25*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(a+o)*t,(s-r)*n,.7*t,(s-o)*n)),r=.1,o=.1*c,a=.9,s=.5;var u=new go.PathFigure((a-r)*t,s*n,!0);return i.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s-r)*n,(a-r)*t,(s-o)*n,(a-o)*t,(s-r)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(a+r)*t,s*n,(a+o)*t,(s-r)*n,(a+r)*t,(s-o)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s+r)*n,(a+r)*t,(s+o)*n,(a+o)*t,(s+r)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(a-r)*t,s*n,(a-o)*t,(s+r)*n,(a-r)*t,(s+o)*n)),i.spot1=new go.Spot(.2,.25),i.spot2=new go.Spot(.6,.75),i})),go.Shape.defineFigureGenerator("OrGate",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.5,a=new go.PathFigure(0,0,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,(0+r+r)*t,0*n,.8*t,(o-r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.8*t,(o+r)*n,(0+r+r)*t,1*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.75*n,.25*t,.25*n).close()),i.spot1=new go.Spot(.2,.25),i.spot2=new go.Spot(.75,.75),i})),go.Shape.defineFigureGenerator("XnorGate",(function(e,t,n){var i=new go.Geometry,r=.5,o=c*r,a=.2,s=.5,l=new go.PathFigure(.1*t,0,!1);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,n,.35*t,.25*n,.35*t,.75*n));var u=new go.PathFigure(.8*t,.5*n,!0);i.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,n,.7*t,(s+o)*n,(a+o)*t,(s+r)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,.45*t,.75*n,.45*t,.25*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(a+o)*t,(s-r)*n,.7*t,(s-o)*n)),r=.1,o=.1*c,a=.9,s=.5;var h=new go.PathFigure((a-r)*t,s*n,!0);return i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s-r)*n,(a-r)*t,(s-o)*n,(a-o)*t,(s-r)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(a+r)*t,s*n,(a+o)*t,(s-r)*n,(a+r)*t,(s-o)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s+r)*n,(a+r)*t,(s+o)*n,(a+o)*t,(s+r)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(a-r)*t,s*n,(a-o)*t,(s+r)*n,(a-r)*t,(s+o)*n)),i.spot1=new go.Spot(.4,.25),i.spot2=new go.Spot(.65,.75),i})),go.Shape.defineFigureGenerator("XorGate",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.5,a=new go.PathFigure(.1*t,0,!1);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,n,.35*t,.25*n,.35*t,.75*n));var s=new go.PathFigure(.2*t,0,!0);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,(.2+r)*t,0*n,.9*t,(o-r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,n,.9*t,(o+r)*n,(.2+r)*t,1*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,.45*t,.75*n,.45*t,.25*n).close()),i.spot1=new go.Spot(.4,.25),i.spot2=new go.Spot(.8,.75),i})),go.Shape.defineFigureGenerator("Capacitor",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),i})),go.Shape.defineFigureGenerator("Resistor",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,.5*n)),i})),go.Shape.defineFigureGenerator("Inductor",(function(e,t,n){var i=new go.Geometry,r=.1*c,o=.1,a=.1,s=new go.PathFigure((a-.5*r)*t,n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*t,0,(a-r)*t,n,(a-o)*t,0)),a=.3,s.add(new go.PathSegment(go.PathSegment.Bezier,a*t,n,(a+o)*t,0,(a+r)*t,n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*t,0,(a-r)*t,n,(a-o)*t,0)),a=.5,s.add(new go.PathSegment(go.PathSegment.Bezier,a*t,n,(a+o)*t,0,(a+r)*t,n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*t,0,(a-r)*t,n,(a-o)*t,0)),a=.7,s.add(new go.PathSegment(go.PathSegment.Bezier,a*t,n,(a+o)*t,0,(a+r)*t,n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*t,0,(a-r)*t,n,(a-o)*t,0)),a=.9,s.add(new go.PathSegment(go.PathSegment.Bezier,(a+.5*r)*t,n,(a+o)*t,0,(a+r)*t,n)),i})),go.Shape.defineFigureGenerator("ACvoltageSource",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.5,a=.5,s=new go.PathFigure(0*t,a*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,o*t,0*n,0*t,(a-r)*n,(o-r)*t,0*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,1*t,a*n,(o+r)*t,0*n,1*t,(a-r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,o*t,1*n,1*t,(a+r)*n,(o+r)*t,1*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0*t,a*n,(o-r)*t,1*n,0*t,(a+r)*n)),s.add(new go.PathSegment(go.PathSegment.Move,.1*t,a*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,a*n,o*t,0*n,o*t,1*n)),i})),go.Shape.defineFigureGenerator("DCvoltageSource",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.75*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),r.add(new go.PathSegment(go.PathSegment.Move,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),i})),go.Shape.defineFigureGenerator("Diode",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(t,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.5,.75),i})),go.Shape.defineFigureGenerator("Wifi",(function(e,t,n){var i=new go.Geometry,r=.8*c,o=.8,a=0,s=.5,l=(t-(t*=.38))/2,u=(n-(n*=.6))/2,h=new go.PathFigure(a*t+l,(s+o)*n+u,!0);i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,(a-o)*t+l,s*n+u,(a-r)*t+l,(s+o)*n+u,(a-o)*t+l,(s+r)*n+u)),h.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s-o)*n+u,(a-o)*t+l,(s-r)*n+u,(a-r)*t+l,(s-o)*n+u)),h.add(new go.PathSegment(go.PathSegment.Bezier,(a-o+.5*r)*t+l,s*n+u,a*t+l,(s-o)*n+u,(a-o+.5*r)*t+l,(s-r)*n+u)),h.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s+o)*n+u,(a-o+.5*r)*t+l,(s+r)*n+u,a*t+l,(s+o)*n+u).close()),r=.4*c,o=.4,a=.2,s=.5;var d=new go.PathFigure(a*t+l,(s+o)*n+u,!0);i.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,(a-o)*t+l,s*n+u,(a-r)*t+l,(s+o)*n+u,(a-o)*t+l,(s+r)*n+u)),d.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s-o)*n+u,(a-o)*t+l,(s-r)*n+u,(a-r)*t+l,(s-o)*n+u)),d.add(new go.PathSegment(go.PathSegment.Bezier,(a-o+.5*r)*t+l,s*n+u,a*t+l,(s-o)*n+u,(a-o+.5*r)*t+l,(s-r)*n+u)),d.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s+o)*n+u,(a-o+.5*r)*t+l,(s+r)*n+u,a*t+l,(s+o)*n+u).close()),r=.2*c,o=.2,a=.5,s=.5;var p=new go.PathFigure((a-o)*t+l,s*n+u,!0);i.add(p),p.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s-o)*n+u,(a-o)*t+l,(s-r)*n+u,(a-r)*t+l,(s-o)*n+u)),p.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*t+l,s*n+u,(a+r)*t+l,(s-o)*n+u,(a+o)*t+l,(s-r)*n+u)),p.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s+o)*n+u,(a+o)*t+l,(s+r)*n+u,(a+r)*t+l,(s+o)*n+u)),p.add(new go.PathSegment(go.PathSegment.Bezier,(a-o)*t+l,s*n+u,(a-r)*t+l,(s+o)*n+u,(a-o)*t+l,(s+r)*n+u)),r=.4*c,o=.4,a=.8,s=.5;var f=new go.PathFigure(a*t+l,(s-o)*n+u,!0);i.add(f),f.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*t+l,s*n+u,(a+r)*t+l,(s-o)*n+u,(a+o)*t+l,(s-r)*n+u)),f.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s+o)*n+u,(a+o)*t+l,(s+r)*n+u,(a+r)*t+l,(s+o)*n+u)),f.add(new go.PathSegment(go.PathSegment.Bezier,(a+o-.5*r)*t+l,s*n+u,a*t+l,(s+o)*n+u,(a+o-.5*r)*t+l,(s+r)*n+u)),f.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s-o)*n+u,(a+o-.5*r)*t+l,(s-r)*n+u,a*t+l,(s-o)*n+u).close()),r=.8*c,o=.8,a=1,s=.5;var g=new go.PathFigure(a*t+l,(s-o)*n+u,!0);return i.add(g),g.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*t+l,s*n+u,(a+r)*t+l,(s-o)*n+u,(a+o)*t+l,(s-r)*n+u)),g.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s+o)*n+u,(a+o)*t+l,(s+r)*n+u,(a+r)*t+l,(s+o)*n+u)),g.add(new go.PathSegment(go.PathSegment.Bezier,(a+o-.5*r)*t+l,s*n+u,a*t+l,(s+o)*n+u,(a+o-.5*r)*t+l,(s+r)*n+u)),g.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s-o)*n+u,(a+o-.5*r)*t+l,(s-r)*n+u,a*t+l,(s-o)*n+u).close()),i})),go.Shape.defineFigureGenerator("Email",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var o=new go.PathFigure(0,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Move,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.54*n)),o.add(new go.PathSegment(go.PathSegment.Move,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.54*n)),i})),go.Shape.defineFigureGenerator("Ethernet",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.35*t,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,0).close());var o=new go.PathFigure(.1*t,n,!0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,n).close());var a=new go.PathFigure(.6*t,n,!0,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),a.add(new go.PathSegment(go.PathSegment.Line,.9*t,.6*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*t,.6*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*t,n).close());var s=new go.PathFigure(0,.5*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Move,.5*t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),s.add(new go.PathSegment(go.PathSegment.Move,.75*t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.75*t,.6*n)),s.add(new go.PathSegment(go.PathSegment.Move,.25*t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.25*t,.6*n)),i})),go.Shape.defineFigureGenerator("Power",(function(e,t,o){var s=new go.Geometry,l=.4*c,u=.4,h=.5,d=.5,p=i(),f=i(),g=i(),m=i();a(h,d-u,h+l,d-u,h+u,d-l,h+u,d,.5,p,p,f,g,m);var v=n(f.x,f.y),y=new go.PathFigure(f.x*t,f.y*o,!0);s.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,(h+u)*t,d*o,g.x*t,g.y*o,m.x*t,m.y*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d+u)*o,(h+u)*t,(d+l)*o,(h+l)*t,(d+u)*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,(h-u)*t,d*o,(h-l)*t,(d+u)*o,(h-u)*t,(d+l)*o)),a(h-u,d,h-u,d-l,h-l,d-u,h,d-u,.5,g,m,f,p,p),y.add(new go.PathSegment(go.PathSegment.Bezier,f.x*t,f.y*o,g.x*t,g.y*o,m.x*t,m.y*o)),a(h-(u=.3),d,h-u,d-(l=.3*c),h-l,d-u,h,d-u,.5,g,m,f,p,p),y.add(new go.PathSegment(go.PathSegment.Line,f.x*t,f.y*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,(h-u)*t,d*o,m.x*t,m.y*o,g.x*t,g.y*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d+u)*o,(h-u)*t,(d+l)*o,(h-l)*t,(d+u)*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,(h+u)*t,d*o,(h+l)*t,(d+u)*o,(h+u)*t,(d+l)*o)),a(h,d-u,h+l,d-u,h+u,d-l,h+u,d,.5,p,p,f,g,m),y.add(new go.PathSegment(go.PathSegment.Bezier,f.x*t,f.y*o,m.x*t,m.y*o,g.x*t,g.y*o).close());y=new go.PathFigure(.45*t,0,!0);return s.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*t,.5*o)),y.add(new go.PathSegment(go.PathSegment.Line,.55*t,.5*o)),y.add(new go.PathSegment(go.PathSegment.Line,.55*t,0).close()),r(p),r(f),r(g),r(m),r(v),s.spot1=new go.Spot(.25,.45),s.spot2=new go.Spot(.75,.8),s})),go.Shape.defineFigureGenerator("Fallout",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,n/2,!0);function o(e,i,r){e.add(new go.PathSegment(go.PathSegment.Move,(.3+i)*t,(.8+r)*n)),e.add(new go.PathSegment(go.PathSegment.Line,(.5+i)*t,(.5+r)*n)),e.add(new go.PathSegment(go.PathSegment.Line,(.1+i)*t,(.5+r)*n)),e.add(new go.PathSegment(go.PathSegment.Line,(.3+i)*t,(.8+r)*n).close())}return i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,180,360,t/2,n/2,t/2,n/2)),o(r,0,0),o(r,.4,0),o(r,.2,-.3),i})),go.Shape.defineFigureGenerator("IrritationHazard",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.2*t,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.2*n).close()),i.spot1=new go.Spot(.3,.3),i.spot2=new go.Spot(.7,.7),i})),go.Shape.defineFigureGenerator("ElectricalHazard",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.37*t,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.11*n)),r.add(new go.PathSegment(go.PathSegment.Line,.77*t,.04*n)),r.add(new go.PathSegment(go.PathSegment.Line,.33*t,.49*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.37*n)),r.add(new go.PathSegment(go.PathSegment.Line,.63*t,.86*n)),r.add(new go.PathSegment(go.PathSegment.Line,.77*t,.91*n)),r.add(new go.PathSegment(go.PathSegment.Line,.34*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.34*t,.78*n)),r.add(new go.PathSegment(go.PathSegment.Line,.44*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,.56*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.68*n).close()),i})),go.Shape.defineFigureGenerator("FireHazard",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.1*t,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.29*t,0,-.25*t,.63*n,.45*t,.44*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.51*t,.42*n,.48*t,.17*n,.54*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.59*t,.18*n,.59*t,.29*n,.58*t,.28*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.75*t,.6*n,.8*t,.34*n,.88*t,.43*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.88*t,.31*n,.87*t,.48*n,.88*t,.43*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,n,1.17*t,.76*n,.82*t,.8*n).close()),i.spot1=new go.Spot(.07,.445),i.spot2=new go.Spot(.884,.958),i})),go.Shape.defineFigureGenerator("BpmnActivityLoop",(function(e,t,n){var i=new go.Geometry,r=.5,o=r*c,a=.4*Math.SQRT2/2+.5,s=.5-.5*Math.SQRT2/2,l=new go.PathFigure(a*t,(1-s)*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,1*t,.5*n,1*t,.7*n,1*t,.5*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0*n,1*t,(.5-o+0)*n,(.5+o+0)*t,0*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,0*t,.5*n,(.5-o+0)*t,0*n,0*t,(.5-o+0)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.35*t,.9*n,0*t,(.5+o+0)*n,(.5-o+0)*t,.9*n)),l.add(new go.PathSegment(go.PathSegment.Move,.25*t,.8*n)),l.add(new go.PathSegment(go.PathSegment.Line,.35*t,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.2*t,.95*n)),i})),go.Shape.defineFigureGenerator("BpmnActivityParallel",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Move,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),i})),go.Shape.defineFigureGenerator("BpmnActivitySequential",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Move,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Move,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),i})),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);i.add(r);var o=new go.PathFigure(t,n,!1);i.add(o);var a=new go.PathFigure(0,.5*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.5*n,.2*t,.35*n,.3*t,.35*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,.7*t,.65*n,.8*t,.65*n)),i})),go.Shape.defineFigureGenerator("BpmnActivityCompensation",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n).close()),i})),go.Shape.defineFigureGenerator("BpmnTaskMessage",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.2*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n).close());r=new go.PathFigure(0,.2*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),i})),go.Shape.defineFigureGenerator("BpmnTaskScript",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.7*t,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,0,.6*t,.5*n,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.7*t,n,.4*t,.5*n,t,.5*n).close());var o=new go.PathFigure(.45*t,.73*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.73*n)),o.add(new go.PathSegment(go.PathSegment.Move,.38*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.63*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Move,.31*t,.27*n)),o.add(new go.PathSegment(go.PathSegment.Line,.56*t,.27*n)),i})),go.Shape.defineFigureGenerator("BpmnTaskUser",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);i.add(r);var o=new go.PathFigure(.335*t,(1-.555)*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.335*t,.595*n)),o.add(new go.PathSegment(go.PathSegment.Line,.665*t,.595*n)),o.add(new go.PathSegment(go.PathSegment.Line,.665*t,(1-.555)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.68*n,.88*t,.46*n,.98*t,.54*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.68*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.335*t,(1-.555)*n,.02*t,.54*n,.12*t,.46*n)),o.add(new go.PathSegment(go.PathSegment.Line,.365*t,.405*n));var a=.5-.285,s=.5,l=a,c=Math.PI/4,u=4*(1-Math.cos(c))/(3*Math.sin(c)),h=a,d=a,p=u*h,f=u*d;o.add(new go.PathSegment(go.PathSegment.Bezier,.285*t,l*n,(s-(p+h)/2)*t,(l+(d+f)/2)*n,.285*t,(l+f)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,s*t,0*n,.285*t,(l-f)*n,(s-p)*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(s+h)*t,l*n,(s+p)*t,0*n,(s+h)*t,(l-f)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.635*t,.405*n,(s+h)*t,(l+f)*n,(s+(p+h)/2)*t,(l+(d+f)/2)*n)),o.add(new go.PathSegment(go.PathSegment.Line,.635*t,.405*n)),o.add(new go.PathSegment(go.PathSegment.Line,.665*t,(1-.555)*n)),o.add(new go.PathSegment(go.PathSegment.Line,.665*t,.595*n)),o.add(new go.PathSegment(go.PathSegment.Line,.335*t,.595*n));var g=new go.PathFigure(.2*t,n,!1);i.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.2*t,.8*n));var m=new go.PathFigure(.8*t,n,!1);return i.add(m),m.add(new go.PathSegment(go.PathSegment.Line,.8*t,.8*n)),i})),go.Shape.defineFigureGenerator("BpmnEventConditional",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.1*t,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,n).close());var o=new go.PathFigure(.2*t,.2*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.8*n)),i})),go.Shape.defineFigureGenerator("BpmnEventError",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.33*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.33*t,.5*n).close()),i})),go.Shape.defineFigureGenerator("BpmnEventEscalation",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);i.add(r);var o=new go.PathFigure(t,n,!1);i.add(o);var a=new go.PathFigure(.1*t,n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),a.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),a.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n).close()),i})),go.Shape.defineFigureGenerator("Caution",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.05*t,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,.8*n,0,n,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.55*t,.1*n,.5*t,0,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.95*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,n,t,n,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.05*t,n));var o=.05;return r.add(new go.PathSegment(go.PathSegment.Move,.45*t,.875*n)),r.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*t,.875*n,o*t,o*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.325*n,.575*t,.725*n,.625*t,.375*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.75*n,.375*t,.375*n,.425*t,.725*n)),i})),go.Shape.defineFigureGenerator("Recycle",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.45*t,.95*n,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.185*t,.85*n,.17*t,.95*n,.15*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.235*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,.625*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.275*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.05*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.05*t,.575*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.1875*t,.95*n,0,.675*n,0,.7*n)),r.add(new go.PathSegment(go.PathSegment.Move,.45*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.775*n)),r.add(new go.PathSegment(go.PathSegment.Line,.22*t,.775*n));var o=new go.PathFigure(.475*t,.2*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.225*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.275*t,.175*n)),o.add(new go.PathSegment(go.PathSegment.Line,.325*t,.05*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,.05*n,.35*t,0,.375*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.575*t,.375*n)),o.add(new go.PathSegment(go.PathSegment.Line,.525*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.475*n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,.315*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.32*n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.05*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.575*t,0,.65*t,.05*n,.625*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.38*t,.0105*n));var a=new go.PathFigure(.675*t,.575*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.875*t,.525*n)),a.add(new go.PathSegment(go.PathSegment.Line,t,.775*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.85*t,.95*n,t,.8*n,t,.85*n)),a.add(new go.PathSegment(go.PathSegment.Line,.65*t,.95*n)),a.add(new go.PathSegment(go.PathSegment.Line,.65*t,n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*t,.85*n)),a.add(new go.PathSegment(go.PathSegment.Line,.65*t,.725*n)),a.add(new go.PathSegment(go.PathSegment.Line,.65*t,.775*n)),a.add(new go.PathSegment(go.PathSegment.Line,.7*t,.775*n)),a.add(new go.PathSegment(go.PathSegment.Line,t,.775*n)),a.add(new go.PathSegment(go.PathSegment.Move,.675*t,.575*n)),a.add(new go.PathSegment(go.PathSegment.Line,.775*t,.775*n)),i})),go.Shape.defineFigureGenerator("BpmnEventTimer",(function(e,t,n){var i=new go.Geometry,r=.5,o=.5*c,a=new go.PathFigure(t,r*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,r*t,n,t,(r+o)*n,(r+o)*t,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,r*n,(r-o)*t,n,0,(r+o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,r*t,0,0,(r-o)*n,(r-o)*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,r*n,(r+o)*t,0,t,(r-o)*n));var s=new go.PathFigure(r*t,0,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,r*t,.15*n)),s.add(new go.PathSegment(go.PathSegment.Move,r*t,n)),s.add(new go.PathSegment(go.PathSegment.Line,r*t,.85*n)),s.add(new go.PathSegment(go.PathSegment.Move,0,r*n)),s.add(new go.PathSegment(go.PathSegment.Line,.15*t,r*n)),s.add(new go.PathSegment(go.PathSegment.Move,t,r*n)),s.add(new go.PathSegment(go.PathSegment.Line,.85*t,r*n)),s.add(new go.PathSegment(go.PathSegment.Move,r*t,r*n)),s.add(new go.PathSegment(go.PathSegment.Line,.58*t,.1*n)),s.add(new go.PathSegment(go.PathSegment.Move,r*t,r*n)),s.add(new go.PathSegment(go.PathSegment.Line,.78*t,.54*n)),i})),go.Shape.defineFigureGenerator("Package",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.15*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var o=new go.PathFigure(0,.15*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.15*n).close()),i.spot1=new go.Spot(0,.1),i.spot2=new go.Spot(1,1),i})),go.Shape.defineFigureGenerator("Class",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var o=new go.PathFigure(0,.2*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.2*n).close());var a=new go.PathFigure(0,.5*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t,.5*n).close()),i})),go.Shape.defineFigureGenerator("Component",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(t,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n).close());var o=new go.PathFigure(0,.2*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.2*n).close());var a=new go.PathFigure(0,.6*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.45*t,.6*n)),a.add(new go.PathSegment(go.PathSegment.Line,.45*t,.8*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.6*n).close()),i})),go.Shape.defineFigureGenerator("Boat Shipment",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.15*t,.6*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,.6*n));var o=new go.PathFigure(.15*t,.6*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,.6*n)),i})),go.Shape.defineFigureGenerator("Customer/Supplier",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(t,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.33*t,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,.33*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n).close()),i})),go.Shape.defineFigureGenerator("Workcell",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i})),go.Shape.defineFigureGenerator("Supermarket",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.33*n)),r.add(new go.PathSegment(go.PathSegment.Move,t,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.66*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.66*n)),r.add(new go.PathSegment(go.PathSegment.Move,t,.66*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),i})),go.Shape.defineFigureGenerator("TruckShipment",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var o=new go.PathFigure(t,.8*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.8*n).close());var a=.1,s=.1*c,l=.2,u=.9,h=new go.PathFigure((l-a)*t,u*n,!0);i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u-a)*n,(l-a)*t,(u-s)*n,(l-s)*t,(u-a)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(l+a)*t,u*n,(l+s)*t,(u-a)*n,(l+a)*t,(u-s)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u+a)*n,(l+a)*t,(u+s)*n,(l+s)*t,(u+a)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(l-a)*t,u*n,(l-s)*t,(u+a)*n,(l-a)*t,(u+s)*n).close()),a=.1,s=.1*c,l=.8,u=.9;var d=new go.PathFigure((l-a)*t,u*n,!0);return i.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u-a)*n,(l-a)*t,(u-s)*n,(l-s)*t,(u-a)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(l+a)*t,u*n,(l+s)*t,(u-a)*n,(l+a)*t,(u-s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u+a)*n,(l+a)*t,(u+s)*n,(l+s)*t,(u+a)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(l-a)*t,u*n,(l-s)*t,(u+a)*n,(l-a)*t,(u+s)*n).close()),i})),go.Shape.defineFigureGenerator("KanbanPost",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.2*t,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,0)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),i})),go.Shape.defineFigureGenerator("Forklift",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,0));var o=new go.PathFigure(0,.5*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var a=new go.PathFigure(.5*t,.8*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.5*t,.1*n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*t,.1*n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*t,.8*n)),a.add(new go.PathSegment(go.PathSegment.Line,.5*t,.8*n));var s=new go.PathFigure(.5*t,.7*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,t,.7*n));var l=.1,u=.1*c,h=.1,d=.9,p=new go.PathFigure((h-l)*t,d*n,!0);i.add(p),p.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d-l)*n,(h-l)*t,(d-u)*n,(h-u)*t,(d-l)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(h+l)*t,d*n,(h+u)*t,(d-l)*n,(h+l)*t,(d-u)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d+l)*n,(h+l)*t,(d+u)*n,(h+u)*t,(d+l)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(h-l)*t,d*n,(h-u)*t,(d+l)*n,(h-l)*t,(d+u)*n)),l=.1,u=.1*c,h=.4,d=.9;var f=new go.PathFigure((h-l)*t,d*n,!0);return i.add(f),f.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d-l)*n,(h-l)*t,(d-u)*n,(h-u)*t,(d-l)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(h+l)*t,d*n,(h+u)*t,(d-l)*n,(h+l)*t,(d-u)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d+l)*n,(h+l)*t,(d+u)*n,(h+u)*t,(d+l)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(h-l)*t,d*n,(h-u)*t,(d+l)*n,(h-l)*t,(d+u)*n)),i})),go.Shape.defineFigureGenerator("RailShipment",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.1*t,.4*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,.4*n).close());var o=new go.PathFigure(.45*t,.7*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.7*n));var a=new go.PathFigure(.55*t,.4*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),a.add(new go.PathSegment(go.PathSegment.Line,.9*t,.9*n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*t,.9*n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*t,.4*n).close());var s=.05,l=.05*c,u=.175,h=.95,d=new go.PathFigure((u-s)*t,h*n,!0);i.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h-s)*n,(u-s)*t,(h-l)*n,(u-l)*t,(h-s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(u+s)*t,h*n,(u+l)*t,(h-s)*n,(u+s)*t,(h-l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h+s)*n,(u+s)*t,(h+l)*n,(u+l)*t,(h+s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(u-s)*t,h*n,(u-l)*t,(h+s)*n,(u-s)*t,(h+l)*n));s=.05,l=.05*c,u=.375,h=.95;var p=new go.PathFigure((u-s)*t,h*n,!0);i.add(p),p.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h-s)*n,(u-s)*t,(h-l)*n,(u-l)*t,(h-s)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(u+s)*t,h*n,(u+l)*t,(h-s)*n,(u+s)*t,(h-l)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h+s)*n,(u+s)*t,(h+l)*n,(u+l)*t,(h+s)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(u-s)*t,h*n,(u-l)*t,(h+s)*n,(u-s)*t,(h+l)*n));s=.05,l=.05*c,u=.625,h=.95;var f=new go.PathFigure((u-s)*t,h*n,!0);i.add(f),f.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h-s)*n,(u-s)*t,(h-l)*n,(u-l)*t,(h-s)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(u+s)*t,h*n,(u+l)*t,(h-s)*n,(u+s)*t,(h-l)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h+s)*n,(u+s)*t,(h+l)*n,(u+l)*t,(h+s)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(u-s)*t,h*n,(u-l)*t,(h+s)*n,(u-s)*t,(h+l)*n));s=.05,l=.05*c,u=.825,h=.95;var g=new go.PathFigure((u-s)*t,h*n,!0);i.add(g),g.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h-s)*n,(u-s)*t,(h-l)*n,(u-l)*t,(h-s)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,(u+s)*t,h*n,(u+l)*t,(h-s)*n,(u+s)*t,(h-l)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h+s)*n,(u+s)*t,(h+l)*n,(u+l)*t,(h+s)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,(u-s)*t,h*n,(u-l)*t,(h+s)*n,(u-s)*t,(h+l)*n).close());var m=new go.PathFigure(0,n,!1);return i.add(m),m.add(new go.PathSegment(go.PathSegment.Line,t,n).close()),i})),go.Shape.defineFigureGenerator("Warehouse",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var o=new go.PathFigure(0,.2*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.2*n).close());var a=new go.PathFigure(.15*t,n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.15*t,.5*n)),a.add(new go.PathSegment(go.PathSegment.Line,.4*t,.5*n)),a.add(new go.PathSegment(go.PathSegment.Line,.4*t,n)),a.add(new go.PathSegment(go.PathSegment.Line,.15*t,n).close());var s=.05,l=.05*c,u=.35,h=.775,d=new go.PathFigure(.3*t,h*n,!0);return i.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,u*t,.725*n,.3*t,(h-l)*n,(u-l)*t,.725*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(u+s)*t,h*n,(u+l)*t,.725*n,(u+s)*t,(h-l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h+s)*n,(u+s)*t,(h+l)*n,(u+l)*t,(h+s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,h*n,(u-l)*t,(h+s)*n,.3*t,(h+l)*n).close()),i})),go.Shape.defineFigureGenerator("ControlCenter",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,.1*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n).close()),i})),go.Shape.defineFigureGenerator("Bluetooth",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.75*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),i})),go.Shape.defineFigureGenerator("Bookmark",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Move,.2*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Move,.2*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),i})),go.Shape.defineFigureGenerator("Bookmark",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Move,.2*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Move,.2*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),i})),go.Shape.defineFigureGenerator("Globe",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Move,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,.75*t,0,t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,.75*n,.75*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.25*t,n,0,.75*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,.25*n,.25*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,.15*t,.25*n,.15*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,.85*t,.75*n,.85*t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Move,.1675*t,.15*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8325*t,.15*n,.35*t,.3*n,.65*t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Move,.1675*t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8325*t,.85*n,.35*t,.7*n,.65*t,.7*n)),i})),go.Shape.defineFigureGenerator("Wave",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.25*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.25*n,.1*t,0,.2*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.7*t,.25*n,.425*t,.5*n,.575*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.25*n,.8*t,0,.9*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Move,0,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.75*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.75*n,.1*t,.5*n,.2*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.7*t,.75*n,.425*t,n,.575*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.75*n,.8*t,.5*n,.9*t,.5*n)),i})),go.Shape.defineFigureGenerator("Operator",(function(e,t,n){var i=new go.Geometry,r=.3,o=.3*c,a=.5,s=.7,l=new go.PathFigure(.2*t,s*n,!0);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s-r)*n,.2*t,(s-o)*n,(a-o)*t,(s-r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,s*n,(a+o)*t,(s-r)*n,.8*t,(s-o)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,a*t,1*n,.8*t,(s+o)*n,(a+o)*t,1*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,s*n,(a-o)*t,1*n,.2*t,(s+o)*n));var u=new go.PathFigure(0,.7*n,!1);return i.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,t,.7*n,0,0,t,0)),i})),go.Shape.defineFigureGenerator("TripleFanBlades",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.65*n,.65*t,.3*n,.65*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,.35*t,.5*n,.35*t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,.65*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.3*t,.6*n,.1*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.65*n,.2*t,n,.35*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,.65*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,n,.7*t,.6*n,.9*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.65*n,.8*t,n,.65*t,.95*n)),i})),go.Shape.defineFigureGenerator("CentrifugalPump",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(t,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,0,.075*n,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,n,0,n,.4*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.4*n,.8*t,n,.85*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),i})),go.Shape.defineFigureGenerator("Battery",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,.4*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.1*n));var o=new go.PathFigure(0,.6*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Move,0,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.4*n)),i})),go.Shape.defineFigureGenerator("Delete",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.5,a=.5,s=new go.PathFigure(0*t,a*n,!0);i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,o*t,0*n,0*t,(a-r)*n,(o-r)*t,0*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,1*t,a*n,(o+r)*t,0*n,1*t,(a-r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,o*t,1*n,1*t,(a+r)*n,(o+r)*t,1*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0*t,a*n,(o-r)*t,1*n,0*t,(a+r)*n));var l=new go.PathFigure(.15*t,.5*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.85*t,.5*n)),i})),go.Shape.defineFigureGenerator("Flag",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.1*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,0,.1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.1*n,.15*t,0,.35*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.1*n,.65*t,.2*n,.85*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.5*n,.85*t,.6*n,.65*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.35*t,.4*n,.15*t,.4*n).close()),i})),go.Shape.defineFigureGenerator("Help",(function(e,t,n){var i=new go.Geometry,r=.5,o=.5*c,a=.5,s=.5,l=new go.PathFigure((a-r)*t,s*n,!1);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s-r)*n,(a-r)*t,(s-o)*n,(a-o)*t,(s-r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(a+r)*t,s*n,(a+o)*t,(s-r)*n,(a+r)*t,(s-o)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s+r)*n,(a+r)*t,(s+o)*n,(a+o)*t,(s+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(a-r)*t,s*n,(a-o)*t,(s+r)*n,(a-r)*t,(s+o)*n).close()),r=.05,o=.05*c,a=.5,s=.8;var u=new go.PathFigure((a-r)*t,s*n,!1);return i.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s-r)*n,(a-r)*t,(s-o)*n,(a-o)*t,(s-r)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(a+r)*t,s*n,(a+o)*t,(s-r)*n,(a+r)*t,(s-o)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s+r)*n,(a+r)*t,(s+o)*n,(a+o)*t,(s+r)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(a-r)*t,s*n,(a-o)*t,(s+r)*n,(a-r)*t,(s+o)*n).close()),u.add(new go.PathSegment(go.PathSegment.Move,.5*t,.7*n)),u.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,.75*t,.475*n,.75*t,.225*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.35*n,.4*t,.2*n,.3*t,.25*n)),i})),go.Shape.defineFigureGenerator("Location",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,n,!0).add(new go.PathSegment(go.PathSegment.Line,.75*t,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,.975*t,.025*n,.5*t,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*t,.5*n,.5*t,0,.025*t,.025*n).close()).add(new go.PathSegment(go.PathSegment.Move,.5*t,.2*n)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*t,.3*n,.1*t,.1*n).close()))})),go.Shape.defineFigureGenerator("Lock",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var o=new go.PathFigure(.2*t,.5*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.3*n,.25*t,0,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.3*n)),i})),go.Shape.defineFigureGenerator("Unlocked",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var o=new go.PathFigure(.2*t,.5*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.3*n,.25*t,0,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.35*n)),i})),go.Shape.defineFigureGenerator("Gear",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.9375*t,.56246875*n,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*t,.4375*n)).add(new go.PathSegment(go.PathSegment.Line,.80621875*t,.4375*n)).add(new go.PathSegment(go.PathSegment.Bezier,.763*t,.3316875*n,.79840625*t,.39915625*n,.7834375*t,.3635*n)).add(new go.PathSegment(go.PathSegment.Line,.8566875*t,.23796875*n)).add(new go.PathSegment(go.PathSegment.Line,.76825*t,.14959375*n)).add(new go.PathSegment(go.PathSegment.Line,.67596875*t,.24184375*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*t,.19378125*n,.64228125*t,.2188125*n,.603875*t,.2021875*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*t,.0625*n)).add(new go.PathSegment(go.PathSegment.Line,.4375*t,.0625*n)).add(new go.PathSegment(go.PathSegment.Line,.4375*t,.19378125*n)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*t,.239375*n,.39759375*t,.20190625*n,.36053125*t,.2176875*n)).add(new go.PathSegment(go.PathSegment.Line,.2379375*t,.14959375*n)).add(new go.PathSegment(go.PathSegment.Line,.14953125*t,.2379375*n)).add(new go.PathSegment(go.PathSegment.Line,.23934375*t,.3278125*n)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*t,.4375*n,.21765625*t,.36059375*n,.201875*t,.397625*n)).add(new go.PathSegment(go.PathSegment.Line,.0625*t,.4375*n)).add(new go.PathSegment(go.PathSegment.Line,.0625*t,.5625*n)).add(new go.PathSegment(go.PathSegment.Line,.1938125*t,.5625*n)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*t,.67596875*n,.20221875*t,.603875*n,.21884375*t,.64228125*n)).add(new go.PathSegment(go.PathSegment.Line,.1495625*t,.76825*n)).add(new go.PathSegment(go.PathSegment.Line,.238*t,.8566875*n)).add(new go.PathSegment(go.PathSegment.Line,.3316875*t,.76296875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*t,.80621875*n,.36353125*t,.78340625*n,.3991875*t,.79840625*n)).add(new go.PathSegment(go.PathSegment.Line,.43753125*t,.9375*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*t,.9375*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*t,.80621875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*t,.760625*n,.602375*t,.79809375*n,.63946875*t,.78234375*n)).add(new go.PathSegment(go.PathSegment.Line,.76828125*t,.8566875*n)).add(new go.PathSegment(go.PathSegment.Line,.85671875*t,.76825*n)).add(new go.PathSegment(go.PathSegment.Line,.76065625*t,.67221875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*t,.56246875*n,.78234375*t,.63940625*n,.798125*t,.602375*n)).add(new go.PathSegment(go.PathSegment.Line,.9375*t,.56246875*n).close()).add(new go.PathSegment(go.PathSegment.Move,.5*t,.6*n)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*t,.5*n,.1*t,.1*n).close()))})),go.Shape.defineFigureGenerator("Hand",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,.3*n,0,.375*n,.05*t,.325*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.45*t,.075*n,.3*t,.225*n,.4*t,.175*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.525*t,.075*n,.46*t,.05*n,.525*t,.05*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.4*n,.525*t,.275*n,.475*t,.325*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,.55*n,t,.4*n,t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.425*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.6*t,.7*n,.675*t,.55*n,.675*t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,.575*t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.575*t,.85*n,.65*t,.7*n,.65*t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.525*t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.535*t,n,.61*t,.85*n,.61*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,.435*t,n,0,n).close()),i})),go.Shape.defineFigureGenerator("Map",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.2*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),r.add(new go.PathSegment(go.PathSegment.Move,.25*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Move,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.8*n)),i})),go.Shape.defineFigureGenerator("Eject",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.7*n).close());var o=new go.PathFigure(0,.6*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0).close()),i})),go.Shape.defineFigureGenerator("Pencil",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*t,.1*n)).add(new go.PathSegment(go.PathSegment.Line,t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.9*t,n)).add(new go.PathSegment(go.PathSegment.Line,.1*t,.2*n).close()))})),go.Shape.defineFigureGenerator("Building",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(1*t,1*n,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.046*t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.046*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,.046*t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.954*t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.954*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.954*t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.85*n).close());var o=new go.PathFigure(.126*t,.85*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.126*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.322*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.322*t,.85*n).close());var a=new go.PathFigure(.402*t,.85*n,!1);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.402*t,.45*n)),a.add(new go.PathSegment(go.PathSegment.Line,.598*t,.45*n)),a.add(new go.PathSegment(go.PathSegment.Line,.598*t,.85*n).close());var s=new go.PathFigure(.678*t,.85*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.678*t,.45*n)),s.add(new go.PathSegment(go.PathSegment.Line,.874*t,.45*n)),s.add(new go.PathSegment(go.PathSegment.Line,.874*t,.85*n).close());var l=new go.PathFigure(.5*t,.1*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.196*t,.3*n)),l.add(new go.PathSegment(go.PathSegment.Line,.804*t,.3*n).close()),i})),go.Shape.defineFigureGenerator("Staircase",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,1*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.95*n).close()),i})),go.Shape.defineFigureGenerator("5Bars",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,1*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.184*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.184*t,n*(1-.184)).close());var o=new go.PathFigure(.204*t,n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.204*t,n*(1-.184))),o.add(new go.PathSegment(go.PathSegment.Line,.388*t,.632*n)),o.add(new go.PathSegment(go.PathSegment.Line,.388*t,1*n).close());var a=new go.PathFigure(.408*t,n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.408*t,.632*n)),a.add(new go.PathSegment(go.PathSegment.Line,.592*t,n*(1-.552))),a.add(new go.PathSegment(go.PathSegment.Line,.592*t,1*n).close());var s=new go.PathFigure(.612*t,n,!0);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.612*t,n*(1-.552))),s.add(new go.PathSegment(go.PathSegment.Line,.796*t,.264*n)),s.add(new go.PathSegment(go.PathSegment.Line,.796*t,1*n).close());var l=new go.PathFigure(.816*t,n,!0);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.816*t,.264*n)),l.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-.184*5))),l.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n).close()),i})),go.Shape.defineFigureGenerator("PC",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,0).close());var o=new go.PathFigure(.055*t,.07*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.245*t,.07*n)),o.add(new go.PathSegment(go.PathSegment.Line,.245*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.055*t,.1*n).close());var a=new go.PathFigure(.055*t,.13*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.245*t,.13*n)),a.add(new go.PathSegment(go.PathSegment.Line,.245*t,.16*n)),a.add(new go.PathSegment(go.PathSegment.Line,.055*t,.16*n).close());var s=new go.PathFigure(.055*t,.18*n,!0);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.245*t,.18*n)),s.add(new go.PathSegment(go.PathSegment.Line,.245*t,.21*n)),s.add(new go.PathSegment(go.PathSegment.Line,.055*t,.21*n).close());var l=new go.PathFigure(1*t,0,!0);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),l.add(new go.PathSegment(go.PathSegment.Line,.4*t,.65*n)),l.add(new go.PathSegment(go.PathSegment.Line,1*t,.65*n).close()),i})),go.Shape.defineFigureGenerator("Plane",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.55*t,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,.475*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.35*t,.525*n,0,.4*n,.225*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,.475*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,.325*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.325*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,.2*n,.975*t,0,t,.08*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,n).close()),i})),go.Shape.defineFigureGenerator("Key",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(1*t,.5*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*t,.575*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.6*n).close()),r.add(new go.PathSegment(go.PathSegment.Move,.17*t,.425*n)),r.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*t,.5*n,.075*t,.075*n).close()),i})),go.Shape.defineFigureGenerator("FilmTape",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,270,180,0*t,.3*t,.055*t)),r.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.08*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.08*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.136*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.136*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.192*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.192*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.248*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.248*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.304*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.304*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.28),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.28),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.336),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.336),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.392),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.392),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.528*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.528*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.584*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.584*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.64*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.64*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.696*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.696*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.752*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.752*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.728),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.728),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.864*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.864*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.84),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.84),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n));var o=new go.PathFigure(0,0,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,1*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Arc,270,-180,1*t,.3*t,.055*t)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n));var a=new go.PathFigure(.11*t,.1*n,!1);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.35133333*t,.1*n)),a.add(new go.PathSegment(go.PathSegment.Line,.35133333*t,.8*n)),a.add(new go.PathSegment(go.PathSegment.Line,.11*t,.8*n).close());var s=new go.PathFigure(.37933333*t,.1*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.62066666*t,.1*n)),s.add(new go.PathSegment(go.PathSegment.Line,.62066666*t,.8*n)),s.add(new go.PathSegment(go.PathSegment.Line,.37933333*t,.8*n).close());var l=new go.PathFigure(t*(.59266666+.056),.1*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,t*(.83399999+.056),.1*n)),l.add(new go.PathSegment(go.PathSegment.Line,t*(.83399999+.056),.8*n)),l.add(new go.PathSegment(go.PathSegment.Line,t*(.59266666+.056),.8*n).close()),i})),go.Shape.defineFigureGenerator("FloppyDisk",(function(e,t,n){var i=new go.Geometry,r=8*c,o=new go.PathFigure(8,0,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.86*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.14*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n-8)),o.add(new go.PathSegment(go.PathSegment.Bezier,t-8,n,t,n-r,t-r,n)),o.add(new go.PathSegment(go.PathSegment.Line,8,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,n-8,r,n,0,n-r)),o.add(new go.PathSegment(go.PathSegment.Line,0,8)),o.add(new go.PathSegment(go.PathSegment.Bezier,8,0,0,r,r,0).close());var a=new go.PathFigure(.83*t,0,!1);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.83*t,.3*n)),a.add(new go.PathSegment(go.PathSegment.Line,.17*t,.3*n)),a.add(new go.PathSegment(go.PathSegment.Line,.17*t,0*n).close());var s=new go.PathFigure(.83*t,1*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.83*t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.17*t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.17*t,1*n).close());var l=new go.PathFigure(.78*t,.05*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.66*t,.05*n)),l.add(new go.PathSegment(go.PathSegment.Line,.66*t,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.78*t,.25*n).close()),i})),go.Shape.defineFigureGenerator("SpeechBubble",(function(e,t,n){var i=e?e.parameter1:NaN;(isNaN(i)||i<0)&&(i=15),i=Math.min(i,t/3);var r=(i=Math.min(i,n/3))*c,o=.8*n,a=new go.Geometry,s=new go.PathFigure(i,0,!0);return a.add(s),s.add(new go.PathSegment(go.PathSegment.Line,t-i,0)),s.add(new go.PathSegment(go.PathSegment.Bezier,t,i,t-r,0,t,r)),s.add(new go.PathSegment(go.PathSegment.Line,t,o-i)),s.add(new go.PathSegment(go.PathSegment.Bezier,t-i,o,t,o-r,t-r,o)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,o)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),s.add(new go.PathSegment(go.PathSegment.Line,.55*t,o)),s.add(new go.PathSegment(go.PathSegment.Line,i,o)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,o-i,r,o,0,o-r)),s.add(new go.PathSegment(go.PathSegment.Line,0,i)),s.add(new go.PathSegment(go.PathSegment.Bezier,i,0,0,r,r,0).close()),r>1?(a.spot1=new go.Spot(0,0,r,r),a.spot2=new go.Spot(1,.8,-r,-r)):(a.spot1=go.Spot.TopLeft,a.spot2=new go.Spot(1,.8)),a})),go.Shape.defineFigureGenerator("Repeat",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0*t,.45*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,.45*n).close());var o=new go.PathFigure(1*t,.55*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.55*n).close()),i})),go.Shape.defineFigureGenerator("Windows",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close()).add(new go.PathSegment(go.PathSegment.Move,.4*t,.4*n)).add(new go.PathSegment(go.PathSegment.Line,.4*t,.8*n)).add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)).add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n).close()).add(new go.PathSegment(go.PathSegment.Move,.2*t,.1*n)).add(new go.PathSegment(go.PathSegment.Line,.2*t,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.1*n).close()).add(new go.PathSegment(go.PathSegment.Move,.1*t,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.1*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n).close()))})),go.Shape.defineFigureGenerator("Terminal",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0*t,.1*n,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,1*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*t,.9*n).close());var o=new go.PathFigure(.1*t,.2*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.22*t,.285*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.32*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.37*n)),o.add(new go.PathSegment(go.PathSegment.Line,.275*t,.32*n)),o.add(new go.PathSegment(go.PathSegment.Line,.275*t,.25*n).close());var a=new go.PathFigure(.28*t,.37*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.45*t,.37*n)),a.add(new go.PathSegment(go.PathSegment.Line,.45*t,.41*n)),a.add(new go.PathSegment(go.PathSegment.Line,.28*t,.41*n).close()),i})),go.Shape.defineFigureGenerator("Beaker",(function(e,t,n){var i=new go.Geometry,r=15*c,o=new go.PathFigure(.62*t,.475*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,n-15)),o.add(new go.PathSegment(go.PathSegment.Bezier,t-15,n,t,n-r,t-r,n)),o.add(new go.PathSegment(go.PathSegment.Line,15,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,n-15,r,n,0,n-r)),o.add(new go.PathSegment(go.PathSegment.Line,.38*t,.475*n)),o.add(new go.PathSegment(go.PathSegment.Line,.38*t,.03*n)),o.add(new go.PathSegment(go.PathSegment.Line,.36*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.62*t,.03*n).close()),r>1?(i.spot1=new go.Spot(0,0,r,r),i.spot2=new go.Spot(1,1,-r,-r)):(i.spot1=go.Spot.TopLeft,i.spot2=go.Spot.BottomRight),i})),go.Shape.defineFigureGenerator("Download",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0*t,1*n,!0);i.add(r);var o=.1/.3;r.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.755*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.93*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.64*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.61*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.39*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.36*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.07*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.245*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.8),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*t,n*(1-o)).close());var a=new go.PathFigure(.4*t,0*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.4*t,.44*n)),a.add(new go.PathSegment(go.PathSegment.Line,.26*t,.44*n)),a.add(new go.PathSegment(go.PathSegment.Line,.5*t,.66*n)),a.add(new go.PathSegment(go.PathSegment.Line,.74*t,.44*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*t,.44*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*t,0*n).close()),i})),go.Shape.defineFigureGenerator("Bin",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0*t,1*n,!0);i.add(r);var o=.1/.3;return r.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.755*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.93*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.64*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.61*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.39*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.36*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.07*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.245*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.8),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*t,n*(1-o)).close()),i})),go.Shape.defineFigureGenerator("Upload",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0*t,1*n,!0);i.add(r);var o=.1/.3;r.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.755*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.93*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.64*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.61*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.39*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.36*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.07*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.245*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.8),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*t,n*(1-o)).close());var a=new go.PathFigure(.5*t,0*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.26*t,.25*n)),a.add(new go.PathSegment(go.PathSegment.Line,.4*t,.25*n)),a.add(new go.PathSegment(go.PathSegment.Line,.4*t,.63*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*t,.63*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*t,.25*n)),a.add(new go.PathSegment(go.PathSegment.Line,.74*t,.25*n).close()),i})),go.Shape.defineFigureGenerator("EmptyDrink",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.15*t,0*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.85*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n).close()),i})),go.Shape.defineFigureGenerator("Drink",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.15*t,0*n,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.85*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n).close());var o=new go.PathFigure(.235*t,.28*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.765*t,.28*n)),o.add(new go.PathSegment(go.PathSegment.Line,.655*t,.97*n)),o.add(new go.PathSegment(go.PathSegment.Line,.345*t,.97*n).close()),i})),go.Shape.defineFigureGenerator("4Arrows",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,.25*n).close()),i})),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},35702:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,r=!1,o=!1,a=null,s=!1,l=null,c=null,u=0;u4?parseFloat(e):5};function S(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,O(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(l=e,R(e,t))},e.getHTML5CodebaseVersion=function(){return g},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){w=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,r="auto",o=n.id,a=!1,l=0;l=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var E=function(e){return e&&"false"!==e},M=function(t,n,i){x(g)<=4.2&&(i=!0);var r=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==g||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(r=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var o=document.createElement("div");o.classList.add("appletParameters","notranslate");var a=n.width,s=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(g)<=4.4)E(n.showToolBar)&&(n.height-=7),E(n.showAlgebraInput)&&(n.height-=37),n.width<605&&E(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(E(n.showToolBar)||E(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=E(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(y),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||y.appendChild(S)):o.appendChild(S),y.appendChild(o),b||t.appendChild(y),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),F("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function _(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(g)<5&&(e.className+=" geogebraweb")):k(e,t)}if(r){scriptLoadStarted=!0;for(var C=0;C0?(r.remove(),s.attr("id","fullscreencontent").show(),jQuery(o).append(s),window.dispatchEvent(new Event("resize"))):M(r,t,!1),window.GGBT_wsf_view.launchFullScreen(o)}else f=i,M(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(s=e/4*3),l=s/5.8,a.setAttribute("src",b),a.setAttribute("width",s),a.setAttribute("height",l);var u=(e-s)/2,h=(t-l)/2;a.style.left=u+"px",a.style.top=h+"px",r.appendChild(a)}return r.appendChild(c),r},I=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},B=["web","webSimple","web3d","tablet","tablet3d","phone"],R=function(e,t){if(g=e,t)O(g,!0);else{var o,a,s=!r;if(s){var l=x(g);!isNaN(l)&&l<4.4&&(s=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=g.indexOf("//");for(var u in a=c>0?g:0===c?o+g:"https://www.geogebra.org/apps/5.2.814.0/",B)if(g.slice(-1*B[u].length)===B[u]||g.slice(-1*(B[u].length+1))===B[u]+"/")return void O(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||E(n.showToolBar)||E(n.showMenuBar)||E(n.showAlgebraInput)||E(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",O(a,!1)}},O=function(e,t){if(e.requirejs)d=e;else{"/"!==e.slice(-1)&&(e+="/"),d=e,null===t&&(t=-1===e.indexOf("http")),p=t,m="web.nocache.js",v=!1;var n=d.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?B.indexOf(n[n.length-2])>=0&&(m=n[n.length-2]+".nocache.js"):(m="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(g=n[n.length-3]).substr(0,4)?g=g.substr(4,1)+"."+g.substr(5,1):"war"!==g.substr(0,3)&&"beta"!==g.substr(0,4)||(g="5.0");var i=parseFloat(g);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),R("5.0",t))}},F=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function z(){var e=t;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),R(e,!1),null!==c&&O(c,p),s=!0}return void 0!==n.material_id?_(z):z(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,r){if(e.isScreenshoGenerator)return 1;var o,a=void 0!==i&&i,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(o=e.autoHeight)&&"false"!==o,c=function(e,t,n,i,r,o){var a=null;if(null!=o&&""!=o)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+o+" ")>-1){a=s;break}s=s.parentNode}var l=0,c=0,u=0,h=0,d=0,p=0,f=0;if(a)l=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=l):(l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var g=e.getBoundingClientRect();g.left>0&&g.left<=l&&(void 0===r||!r)&&("rtl"===document.dir?(d=l-g.width-g.left,p=u<=480?10:30):(p=g.left,d=u<=480?10:30),h=p+d)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(h=40,f=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(h=0,f=40))}return e&&((void 0===n||!n)&&t>0&&t+h1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?o:(r=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==o?Math.min(o,r):r)}function r(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),r=(t-i.width)/2,o=(n-i.height)/2;o<0&&(o=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=r<40?"40px":r+"px",e.style.top=o+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=o<40?"40px":o+"px",e.style.left=r+"px")}return{responsiveResize:function(n,o){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(o.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var s=i(o,n);e()&&a.setAttribute("data-param-scale",s);for(var l=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var s in n)a[n[s]]=s;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],r=O;r"],E=new(S().Renderer),M=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function L(){C.length=0,P=["
    "]}var A={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function T(e,t,n,i){if(t>=e.length||e[t].level<=n)return t;var r=e[t];i.push("
  • "+r.text+"");var o=[];return t=T(e,++t,r.level,o),o.length>0&&(i.push("
      "),o.forEach((function(e){i.push(e)})),i.push("
    ")),i.push("
  • "),t=T(e,t,n,i)}function D(){return T(C,0,0,P),P.push("
"),P.join("")}var N={heading:function(e){var t=M.exec(e);if(_+=1,t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},fences:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:l()(t,1)[0].length>=i.length?e.slice(i.length):e})).join("\n")}(n,t[3]||""),r=t[2]?t[2].trim():t[2];if(["latex","katex","math"].indexOf(r)>=0){var o=R(),a=i;i=o,O[o]={type:"block",expression:a}}return{type:"code",raw:n,lang:r,text:i}}}},I=/(?:\${2})([^\n`]+?)(?:\${2})/gi,B=0,R=function(){return"__special_katext_id_".concat(B++,"__")},O={};function F(){return O}function z(){B=0,O={}}function j(e){return e=e.replace(I,(function(e,t){var n=R();return O[n]={type:"inline",expression:t},n}))}var $=E.listitem;E.listitem=function(e){return $(j(e))};var H=E.paragraph;E.paragraph=function(e){return H(j(e))};var Z=E.tablecell;E.tablecell=function(e,t){return Z(j(e),t)},E.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];return i?["latex","katex","math"].indexOf(i)>=0?"

".concat(e,"

"):'
').concat(n?e:(0,k.escape)(e,!0),"
\n"):'
'+(n?e:(0,k.escape)(e,!0))+"
"},E.heading=function(e,t,n){var i=this.options.headerPrefix+n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return C.push({anchor:i,level:t,text:e}),"'+e+""},S().setOptions({silent:!0,gfm:!0,pedantic:!1}),S().use({tokenizer:N,renderer:E});var K=S();n(64018);const G=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},U=Number.isSafeInteger||function(e){return"number"==typeof e&&Math.abs(e)<=V},V=Number.MAX_SAFE_INTEGER||9007199254740991;let W=function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e}({}),q=function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",e.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",e.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ERROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.ASSET_LIST_LOAD_ERROR="assetListLoadError",e.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",e.ASSET_LIST_PARSING_ERROR="assetListParsingError",e.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.ATTACH_MEDIA_ERROR="attachMediaError",e.UNKNOWN="unknown",e}({}),Y=function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.MEDIA_ENDED="hlsMediaEnded",e.STALL_RESOLVED="hlsStallResolved",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFERED_TO_END="hlsBufferedToEnd",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",e.ASSET_LIST_LOADING="hlsAssetListLoading",e.ASSET_LIST_LOADED="hlsAssetListLoaded",e.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",e.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",e.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",e.INTERSTITIAL_STARTED="hlsInterstitialStarted",e.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",e.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",e.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",e.INTERSTITIAL_ENDED="hlsInterstitialEnded",e.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",e.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",e.EVENT_CUE_ENTER="hlsEventCueEnter",e}({});var X="manifest",Q="level",J="audioTrack",ee="subtitleTrack",te="main",ne="audio",ie="subtitle";class re{constructor(e,t=0,n=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class oe{constructor(e,t,n,i=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new re(e),this.fast_=new re(t),this.defaultTTFB_=i,this.ttfb_=new re(e)}update(e,t){const{slow_:n,fast_:i,ttfb_:r}=this;n.halfLife!==e&&(this.slow_=new re(e,n.getEstimate(),n.getTotalWeight())),i.halfLife!==t&&(this.fast_=new re(t,i.getEstimate(),i.getTotalWeight())),r.halfLife!==e&&(this.ttfb_=new re(e,r.getEstimate(),r.getTotalWeight()))}sample(e,t){const n=(e=Math.max(e,this.minDelayMs_))/1e3,i=8*t/n;this.fast_.sample(n,i),this.slow_.sample(n,i)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function ae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t`):he}(e,n)}const ge=pe();const me=ge;function ve(e=!0){if("undefined"==typeof self)return;return(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function ye(e,t){const n=Object.keys(e),i=Object.keys(t),r=n.length,o=i.length;return!r||!o||r===o&&!n.some((e=>-1===i.indexOf(e)))}function be(e,t=!1){if("undefined"!=typeof TextDecoder){const n=new TextDecoder("utf-8").decode(e);if(t){const e=n.indexOf("\0");return-1!==e?n.substring(0,e):n}return n.replace(/\0/g,"")}const n=e.length;let i,r,o,a="",s=0;for(;s>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:a+=String.fromCharCode(i);break;case 12:case 13:r=e[s++],a+=String.fromCharCode((31&i)<<6|63&r);break;case 14:r=e[s++],o=e[s++],a+=String.fromCharCode((15&i)<<12|(63&r)<<6|(63&o)<<0)}}return a}const we=function(e){let t="";for(let n=0;n1||1===t&&this.levelkeys[e[0]].encrypted)return!0}return!1}get programDateTime(){return null===this._programDateTime&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){G(e)?this._programDateTime=e:this._programDateTime=this.rawProgramDateTime=null}get ref(){return Be(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;null==(e=this.loader)||e.abort(),null==(t=this.keyLoader)||t.abort()}setElementaryStreamInfo(e,t,n,i,r,o=!1){const{elementaryStreams:a}=this,s=a[e];s?(s.startPTS=Math.min(s.startPTS,t),s.endPTS=Math.max(s.endPTS,n),s.startDTS=Math.min(s.startDTS,i),s.endDTS=Math.max(s.endDTS,r)):a[e]={startPTS:t,endPTS:n,startDTS:i,endDTS:r,partial:o}}}class Oe extends Ie{constructor(e,t,n,i,r){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=i;const o=e.enumeratedString("BYTERANGE");o&&this.setByteRange(o,r),r&&(this.fragOffset=r.fragOffset+r.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}function Fe(e,t){const n=Object.getPrototypeOf(e);if(n){const e=Object.getOwnPropertyDescriptor(n,t);return e||Fe(n,t)}}const ze=Math.pow(2,32)-1,je=[].push,$e={video:1,audio:2,id3:3,text:4};function He(e){return String.fromCharCode.apply(null,e)}function Ze(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function Ke(e,t){const n=Ue(e,t);return n<0?4294967296+n:n}function Ge(e,t){let n=Ke(e,t);return n*=Math.pow(2,32),n+=Ke(e,t+4),n}function Ue(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function Ve(e,t,n){e[t]=n>>24,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function We(e,t){const n=[];if(!t.length)return n;const i=e.byteLength;for(let r=0;r1?r+o:i;if(He(e.subarray(r+4,r+8))===t[0])if(1===t.length)n.push(e.subarray(r+8,a));else{const i=We(e.subarray(r+8,a),t.slice(1));i.length&&je.apply(n,i)}r=a}return n}function qe(e){const t=[],n=e[0];let i=8;const r=Ke(e,i);i+=4;let o=0,a=0;0===n?(o=Ke(e,i),a=Ke(e,i+4),i+=8):(o=Ge(e,i),a=Ge(e,i+8),i+=16),i+=2;let s=e.length+a;const l=Ze(e,i);i+=2;for(let n=0;n>>31)return me.warn("SIDX has hierarchical references (not supported)"),null;const l=Ke(e,n);n+=4,t.push({referenceSize:a,subsegmentDuration:l,info:{duration:l/r,start:s,end:s+a-1}}),s+=a,n+=4,i=n}return{earliestPresentationTime:o,timescale:r,version:n,referencesCount:l,references:t}}function Ye(e){const t=[],n=We(e,["moov","trak"]);for(let e=0;e{const n=Ke(e,4),i=t[n];i&&(i.default={duration:Ke(e,12),flags:Ke(e,20)})})),t}function Xe(e){const t=e.subarray(8),n=t.subarray(86),i=He(t.subarray(4,8));let r,o=i;const a="enca"===i||"encv"===i;if(a){const e=We(t,[i])[0];We(e.subarray("enca"===i?28:78),["sinf"]).forEach((e=>{const t=We(e,["schm"])[0];if(t){const n=He(t.subarray(4,8));if("cbcs"===n||"cenc"===n){const t=We(e,["frma"])[0];t&&(o=He(t))}}}))}const s=o;switch(o){case"avc1":case"avc2":case"avc3":case"avc4":{const e=We(n,["avcC"])[0];e&&e.length>3&&(o+="."+et(e[1])+et(e[2])+et(e[3]),r=Qe("avc1"===s?"dva1":"dvav",n));break}case"mp4a":{const e=We(t,[i])[0],n=We(e.subarray(28),["esds"])[0];if(n&&n.length>7){let e=4;if(3!==n[e++])break;e=Je(n,e),e+=2;const t=n[e++];if(128&t&&(e+=2),64&t&&(e+=n[e++]),4!==n[e++])break;e=Je(n,e);const i=n[e++];if(64!==i)break;if(o+="."+et(i),e+=12,5!==n[e++])break;e=Je(n,e);const r=n[e++];let a=(248&r)>>3;31===a&&(a+=1+((7&r)<<3)+((224&n[e])>>5)),o+="."+a}break}case"hvc1":case"hev1":{const e=We(n,["hvcC"])[0];if(e&&e.length>12){const t=e[1],n=["","A","B","C"][t>>6],i=31&t,r=Ke(e,2),a=(32&t)>>5?"H":"L",s=e[12],l=e.subarray(6,12);o+="."+n+i,o+="."+function(e){let t=0;for(let n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}(r).toString(16).toUpperCase(),o+="."+a+s;let c="";for(let e=l.length;e--;){const t=l[e];if(t||c){c="."+t.toString(16).toUpperCase()+c}}o+=c}r=Qe("hev1"==s?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":o=Qe(o,n)||o;break;case"vp09":{const e=We(n,["vpcC"])[0];if(e&&e.length>6){const t=e[4],n=e[5],i=e[6]>>4&15;o+="."+tt(t)+"."+tt(n)+"."+tt(i)}break}case"av01":{const e=We(n,["av1C"])[0];if(e&&e.length>2){const t=e[1]>>>5,i=31&e[1],a=e[2]>>>7?"H":"M",s=(64&e[2])>>6,l=(32&e[2])>>5,c=2===t&&s?l?12:10:s?10:8,u=(16&e[2])>>4,h=(8&e[2])>>3,d=(4&e[2])>>2,p=3&e[2],f=1,g=1,m=1,v=0;o+="."+t+"."+tt(i)+a+"."+tt(c)+"."+u+"."+h+d+p+"."+tt(f)+"."+tt(g)+"."+tt(m)+"."+v,r=Qe("dav1",n)}break}}return{codec:o,encrypted:a,supplemental:r}}function Qe(e,t){const n=We(t,["dvvC"]),i=n.length?n[0]:We(t,["dvcC"])[0];if(i){const t=i[2]>>1&127,n=i[2]<<5&32|i[3]>>3&31;return e+"."+tt(t)+"."+tt(n)}}function Je(e,t){const n=t+5;for(;128&e[t++]&&t{const l=s.byteOffset-8;We(s,["traf"]).map((s=>{const c=We(s,["tfdt"]).map((e=>{const t=e[0];let n=Ke(e,4);return 1===t&&(n*=Math.pow(2,32),n+=Ke(e,8)),n/r}))[0];return void 0!==c&&(e=c),We(s,["tfhd"]).map((c=>{const u=Ke(c,4),h=16777215&Ke(c,0);let d=0;const p=0!=(16&h);let f=0;const g=0!=(32&h);let m=8;u===o&&(0!=(1&h)&&(m+=8),0!=(2&h)&&(m+=4),0!=(8&h)&&(d=Ke(c,m),m+=4),p&&(f=Ke(c,m),m+=4),g&&(m+=4),"video"===t.type&&(a=ot(t.codec)),We(s,["trun"]).map((o=>{const s=o[0],c=16777215&Ke(o,0),u=0!=(1&c);let h=0;const p=0!=(4&c),g=0!=(256&c);let m=0;const v=0!=(512&c);let y=0;const b=0!=(1024&c),w=0!=(2048&c);let x=0;const S=Ke(o,4);let k=8;u&&(h=Ke(o,k),k+=4),p&&(k+=4);let _=h+l;for(let l=0;l>1&63;return 39===e||40===e}return 6===(31&t)}function st(e,t,n,i){const r=lt(e);let o=0;o+=t;let a=0,s=0,l=0;for(;o=r.length)break;l=r[o++],a+=l}while(255===l);s=0;do{if(o>=r.length)break;l=r[o++],s+=l}while(255===l);const e=r.length-o;let t=o;if(se){me.error(`Malformed SEI payload. ${s} is too small, only ${e} bytes left to parse.`);break}if(4===a){if(181===r[t++]){const e=Ze(r,t);if(t+=2,49===e){const e=Ke(r,t);if(t+=4,1195456820===e){const e=r[t++];if(3===e){const o=r[t++],s=64&o,l=s?2+3*(31&o):0,c=new Uint8Array(l);if(s){c[0]=o;for(let e=1;e16){const e=[];for(let n=0;n<16;n++){const i=r[t++].toString(16);e.push(1==i.length?"0"+i:i),3!==n&&5!==n&&7!==n&&9!==n||e.push("-")}const o=s-16,l=new Uint8Array(o);for(let e=0;e0&&new DataView(a.buffer).setUint32(0,n.byteLength,!1),function(e,...t){const n=t.length;let i=8,r=n;for(;r--;)i+=t[r].byteLength;const o=new Uint8Array(i);for(o[0]=i>>24&255,o[1]=i>>16&255,o[2]=i>>8&255,o[3]=255&i,o.set(e,4),r=0,i=8;r>>24;if(0!==r&&1!==r)return{offset:n,size:t};const o=e.buffer,a=we(new Uint8Array(o,n+12,16)),s=e.getUint32(28);let l=null,c=null;if(0===r){if(t-32/\(Windows.+Firefox\//i.test(navigator.userAgent),dt={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function pt(e,t){const n=dt[t];return!!n&&!!n[e.slice(0,4)]}function ft(e,t,n=!0){return!e.split(",").some((e=>!gt(e,t,n)))}function gt(e,t,n=!0){var i;const r=ve(n);return null!=(i=null==r?void 0:r.isTypeSupported(mt(e,t)))&&i}function mt(e,t){return`${t}/mp4;codecs=${e}`}function vt(e){if(e){const t=e.substring(0,4);return dt.video[t]}return 2}function yt(e){const t=ht();return e.split(",").reduce(((e,n)=>{const i=t&&ot(n)?9:dt.video[n];return i?(2*i+e)/(e?3:2):(dt.audio[n]+e)/(e?2:1)}),0)}const bt={};const wt=/flac|opus|mp4a\.40\.34/i;function xt(e,t=!0){return e.replace(wt,(e=>function(e,t=!0){if(bt[e])return bt[e];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let r=0;r4||-1!==["ac-3","ec-3","alac","fLaC","Opus"].indexOf(e)))return e;if(t){const n=t.split(",");if(n.length>1){if(e)for(let t=n.length;t--;)if(n[t].substring(0,4)===e.substring(0,4))return n[t];return n[0]}}return t||e}function kt(e){if(e.startsWith("av01.")){const t=e.split("."),n=["0","111","01","01","01","0"];for(let e=t.length;e>4&&e<10;e++)t[e]=n[e-4];return t.join(".")}return e}function _t(e){const t=ve(e)||{isTypeSupported:()=>!1};return{mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:t.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Ct(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Pt={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function Et(e,t){return{supported:!1,configurations:t,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:e}}const Mt={};function Lt(e,t,n,i,r,o){const a=e.audioCodec?e.audioGroups:null,s=null==o?void 0:o.audioCodec,l=null==o?void 0:o.channels,c=l?parseInt(l):s?1/0:2;let u=null;if(null!=a&&a.length)try{u=1===a.length&&a[0]?t.groups[a[0]].channels:a.reduce(((e,n)=>{if(n){const i=t.groups[n];if(!i)throw new Error(`Audio track group ${n} not found`);Object.keys(i.channels).forEach((t=>{e[t]=(e[t]||0)+i.channels[t]}))}return e}),{2:0})}catch(e){return!0}return void 0!==e.videoCodec&&(e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(i,30)||"SDR"!==e.videoRange&&e.videoRange!==n||e.bitrate>Math.max(r,8e6))||!!u&&G(c)&&Object.keys(u).some((e=>parseInt(e)>c))}function At(e,t,n){const i=e.videoCodec,r=e.audioCodec;if(!i&&!r||!n)return Promise.resolve(Pt);const o=[];if(i){const t={width:e.width,height:e.height,bitrate:Math.ceil(Math.max(.9*e.bitrate,e.averageBitrate)),framerate:e.frameRate||30},n=e.videoRange;"SDR"!==n&&(t.transferFunction=n.toLowerCase());const r=i.split(","),a=navigator.userAgent;if(r.some((e=>ot(e)))&&ht())return Promise.resolve(Et(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent sting: (${a})`),o));o.push.apply(o,r.map((e=>({type:"media-source",video:ce(ce({},t),{},{contentType:mt(kt(e),"video")})}))))}return r&&e.audioGroups&&e.audioGroups.forEach((e=>{var n;e&&(null==(n=t.groups[e])||n.tracks.forEach((t=>{if(t.groupId===e){const e=t.channels||"",n=parseFloat(e);G(n)&&n>2&&o.push.apply(o,r.split(",").map((e=>({type:"media-source",audio:{contentType:mt(e,"audio"),channels:""+n}}))))}})))})),Promise.all(o.map((e=>{const t=function(e){const{audio:t,video:n}=e,i=n||t;if(i){const e=Ct(i.contentType);if(n)return`r${n.height}x${n.width}f${Math.ceil(n.framerate)}${n.transferFunction||"sd"}_${e}_${Math.ceil(n.bitrate/1e5)}`;if(t)return`c${t.channels}${t.spatialRendering?"s":"n"}_${e}`}return""}(e);return Mt[t]||(Mt[t]=n.decodingInfo(e))}))).then((e=>({supported:!e.some((e=>!e.supported)),configurations:o,decodingInfoResults:e}))).catch((e=>({supported:!1,configurations:o,decodingInfoResults:[],error:e})))}const Tt=["NONE","TYPE-0","TYPE-1",null];const Dt=["SDR","PQ","HLG"];var Nt="",It="YES",Bt="v2";function Rt(e){const{canSkipUntil:t,canSkipDateRanges:n,age:i}=e;return t&&i!!e)).map((e=>e.substring(0,4))).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const n=null==(t=e.supplemental)?void 0:t.videoCodec;n&&n!==e.videoCodec&&(this.codecSet+=`,${n.substring(0,4)}`)}this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return zt(this._audioGroups,e)}hasSubtitleGroup(e){return zt(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t)if("audio"===e){let e=this._audioGroups;e||(e=this._audioGroups=[]),-1===e.indexOf(t)&&e.push(t)}else if("text"===e){let e=this._subtitleGroups;e||(e=this._subtitleGroups=[]),-1===e.indexOf(t)&&e.push(t)}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return null==(e=this.audioGroups)?void 0:e[0]}get textGroupId(){var e;return null==(e=this.subtitleGroups)?void 0:e[0]}addFallback(){}}function zt(e,t){return!(!t||!e)&&-1!==e.indexOf(t)}function jt(e,t){let n=!1,i=[];if(e&&(n="SDR"!==e,i=[e]),t){i=t.allowedVideoRanges||Dt.slice(0);const e="SDR"!==i.join("")&&!t.videoCodec;n=void 0!==t.preferHDR?t.preferHDR:e&&function(){if("function"==typeof matchMedia){const e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return!0===e.matches}return!1}(),n||(i=["SDR"])}return{preferHDR:n,allowedVideoRanges:i}}const $t=(e,t)=>JSON.stringify(e,(e=>{const t=new WeakSet;return(n,i)=>{if(e&&(i=e(n,i)),"object"==typeof i&&null!==i){if(t.has(i))return;t.add(i)}return i}})(t));function Ht(e,t){me.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function Zt(e){return e.reduce(((e,t)=>{let n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);const i=t.channels||"2";return n.channels[i]=(n.channels[i]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e}),{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function Kt(e){if(!e)return e;const{lang:t,assocLang:n,characteristics:i,channels:r,audioCodec:o}=e;return{lang:t,assocLang:n,characteristics:i,channels:r,audioCodec:o}}function Gt(e,t,n){if("attrs"in e){const n=t.indexOf(e);if(-1!==n)return n}for(let i=0;i-1===i.indexOf(e)))}(e.characteristics||"",t.characteristics))&&(void 0===n||n(e,t))}function Vt(e,t){const{audioCodec:n,channels:i}=e;return!(void 0!==n&&(t.audioCodec||"").substring(0,4)!==n.substring(0,4)||void 0!==i&&i!==(t.channels||"2"))}function Wt(e,t,n){for(let i=t;i>-1;i--)if(n(e[i]))return i;for(let i=t+1;i0)n=r+1;else{if(!(a<0))return o;i=r-1}}return null};function Xt(e,t,n=0,i=0,r=.005){let o=null;if(e){o=t[1+e.sn-t[0].sn]||null;const i=e.endDTS-n;i>0&&i<15e-7&&(n+=15e-7),o&&e.level!==o.level&&o.end<=e.end&&(o=t[2+e.sn-t[0].sn]||null)}else 0===n&&0===t[0].start&&(o=t[0]);if(o&&((!e||e.level===o.level)&&0===Qt(n,i,o)||function(e,t,n){if(t&&0===t.start&&t.level0){const i=t.tagList.reduce(((e,t)=>("INF"===t[0]&&(e+=parseFloat(t[1])),e)),n);return e.start<=i}return!1}(o,e,Math.min(r,i))))return o;const a=Yt(t,Qt.bind(null,n,i));return!a||a===e&&o?o:a}function Qt(e=0,t=0,n){if(n.start<=e&&n.start+n.duration>e)return 0;const i=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-i<=e?1:n.start-i>e&&n.start?-1:0}function Jt(e,t,n){const i=1e3*Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return(n.endProgramDateTime||0)-i>e}function en(e,t,n){if(e&&e.startCC<=t&&e.endCC>=t){let i=e.fragments;const{fragmentHint:r}=e;let o;return r&&(i=i.concat(r)),Yt(i,(e=>e.cct?-1:(o=e,e.end<=n?1:e.start>n?-1:0))),o||null}return null}function tn(e){switch(e.details){case q.FRAG_LOAD_TIMEOUT:case q.KEY_LOAD_TIMEOUT:case q.LEVEL_LOAD_TIMEOUT:case q.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function nn(e,t){const n=tn(t);return e.default[(n?"timeout":"error")+"Retry"]}function rn(e,t){const n="linear"===e.backoff?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function on(e){return ce(ce({},e),{errorRetry:null,timeoutRetry:null})}function an(e,t,n,i){if(!e)return!1;const r=null==i?void 0:i.code,o=t499)}(r)||!!n);return e.shouldRetry?e.shouldRetry(e,t,n,i,o):o}var sn=0,ln=2,cn=3,un=5,hn=0,dn=1,pn=2;function fn(e){const t={action:sn,flags:hn};return e&&(t.resolved=!0),t}var gn="NOT_LOADED",mn="APPENDING",vn="PARTIAL",yn="OK";class bn{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.BUFFER_APPENDED,this.onBufferAppended,this),e.on(Y.FRAG_BUFFERED,this.onFragBuffered,this),e.on(Y.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.BUFFER_APPENDED,this.onBufferAppended,this),e.off(Y.FRAG_BUFFERED,this.onFragBuffered,this),e.off(Y.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const n=this.activePartLists[t];if(n)for(let t=n.length;t--;){const i=n[t];if(!i)break;const r=i.end;if(i.start<=e&&null!==r&&e<=r)return i}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){const{fragments:i}=this,r=Object.keys(i);for(let o=r.length;o--;){const a=i[r[o]];if((null==a?void 0:a.body.type)===t&&(!n||a.buffered)){const t=a.body;if(t.start<=e&&e<=t.end)return t}}return null}detectEvictedFragments(e,t,n,i,r){this.timeRanges&&(this.timeRanges[e]=t);const o=(null==i?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach((i=>{const a=this.fragments[i];if(!a)return;if(o>=a.body.sn)return;if(!a.buffered&&(!a.loaded||r))return void(a.body.type===n&&this.removeFragment(a.body));const s=a.range[e];s&&(0!==s.time.length?s.time.some((e=>{const n=!this.isTimeBuffered(e.startPTS,e.endPTS,t);return n&&this.removeFragment(a.body),n})):this.removeFragment(a.body))}))}detectPartialFragments(e){const t=this.timeRanges;if(!t||"initSegment"===e.frag.sn)return;const n=e.frag,i=xn(n),r=this.fragments[i];if(!r||r.buffered&&n.gap)return;const o=!n.relurl;if(Object.keys(t).forEach((i=>{const a=n.elementaryStreams[i];if(!a)return;const s=t[i],l=o||!0===a.partial;r.range[i]=this.getBufferedTimes(n,e.part,l,s)})),r.loaded=null,Object.keys(r.range).length){r.buffered=!0;(r.body.endList=n.endList||r.body.endList)&&(this.endListFragments[r.body.type]=r),wn(r)||this.removeParts(n.sn-1,n.type)}else this.removeFragment(r.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=Sn(n,(t=>t.fragment.sn>=e)))}fragBuffered(e,t){const n=xn(e);let i=this.fragments[n];!i&&t&&(i=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)}getBufferedTimes(e,t,n,i){const r={time:[],partial:n},o=e.start,a=e.end,s=e.minEndPTS||a,l=e.maxStartPTS||o;for(let e=0;e=t&&s<=n){r.time.push({startPTS:Math.max(o,i.start(e)),endPTS:Math.min(a,i.end(e))});break}if(ot){const t=Math.max(o,i.start(e)),n=Math.min(a,i.end(e));n>t&&(r.partial=!0,r.time.push({startPTS:t,endPTS:n}))}else if(a<=t)break}return r}getPartialFragment(e){let t,n,i,r=null,o=0;const{bufferPadding:a,fragments:s}=this;return Object.keys(s).forEach((l=>{const c=s[l];c&&wn(c)&&(n=c.body.start-a,i=c.body.end+a,e>=n&&e<=i&&(t=Math.min(e-n,i-e),o<=t&&(r=c.body,o=t)))})),r}isEndListAppended(e){const t=this.endListFragments[e];return void 0!==t&&(t.buffered||wn(t))}getState(e){const t=xn(e),n=this.fragments[t];return n?n.buffered?wn(n)?vn:yn:mn:gn}isTimeBuffered(e,t,n){let i,r;for(let o=0;o=i&&t<=r)return!0;if(t<=i)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if("initSegment"===t.frag.sn||t.frag.bitrateTest)return;const n=t.frag,i=t.part?null:t,r=xn(n);this.fragments[r]={body:n,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:i,timeRanges:r,type:o}=t;if("initSegment"===n.sn)return;const a=n.type;if(i){let e=this.activePartLists[a];e||(this.activePartLists[a]=e=[]),e.push(i)}this.timeRanges=r;const s=r[o];this.detectEvictedFragments(o,s,a,i)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=xn(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let i=n.length;i--;){const r=t[n[i]];if((null==r?void 0:r.body.type)===e)return!0}return!1}hasParts(e){var t;return!(null==(t=this.activePartLists[e])||!t.length)}removeFragmentsInRange(e,t,n,i,r){i&&!this.hasGaps||Object.keys(this.fragments).forEach((o=>{const a=this.fragments[o];if(!a)return;const s=a.body;s.type!==n||i&&!s.gap||s.starte&&(a.buffered||r)&&this.removeFragment(s)}))}removeFragment(e){const t=xn(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const t=e.sn;this.activePartLists[e.type]=Sn(n,(e=>e.fragment.sn!==t))}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e,t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const n=null==(e=this.hls)||null==(t=e.latestLevelDetails)?void 0:t.partList;n&&n.forEach((e=>e.clearElementaryStreamInfo()))}}function wn(e){var t,n,i;return e.buffered&&(e.body.gap||(null==(t=e.range.video)?void 0:t.partial)||(null==(n=e.range.audio)?void 0:n.partial)||(null==(i=e.range.audiovideo)?void 0:i.partial))}function xn(e){return`${e.type}_${e.level}_${e.sn}`}function Sn(e,t){return e.filter((e=>{const n=t(e);return n||e.clearElementaryStreamInfo(),n}))}var kn=0,_n=1;class Cn{constructor(e,t,n){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=n}decrypt(e,t){switch(this.aesMode){case kn:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case _n:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}class Pn{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),n=new Uint32Array(4);for(let e=0;e<4;e++)n[e]=t.getUint32(4*e);return n}initTable(){const e=this.sBox,t=this.invSBox,n=this.subMix,i=n[0],r=n[1],o=n[2],a=n[3],s=this.invSubMix,l=s[0],c=s[1],u=s[2],h=s[3],d=new Uint32Array(256);let p=0,f=0,g=0;for(g=0;g<256;g++)d[g]=g<128?g<<1:g<<1^283;for(g=0;g<256;g++){let n=f^f<<1^f<<2^f<<3^f<<4;n=n>>>8^255&n^99,e[p]=n,t[n]=p;const s=d[p],g=d[s],m=d[g];let v=257*d[n]^16843008*n;i[p]=v<<24|v>>>8,r[p]=v<<16|v>>>16,o[p]=v<<8|v>>>24,a[p]=v,v=16843009*m^65537*g^257*s^16843008*p,l[n]=v<<24|v>>>8,c[n]=v<<16|v>>>16,u[n]=v<<8|v>>>24,h[n]=v,p?(p=s^d[d[d[m^s]]],f^=d[d[f]]):p=f=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,i=0;for(;i{const a=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(a,t,n,i);const s=this.flush();s?r(s.buffer):o(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(e),t,n,i)}softwareDecrypt(e,t,n,i){const{currentIV:r,currentResult:o,remainderData:a}=this;if(i!==kn||16!==t.byteLength)return me.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),a&&(e=it(a,e),this.remainderData=null);const s=this.getValidChunk(e);if(!s.length)return null;r&&(n=r);let l=this.softwareDecrypter;l||(l=this.softwareDecrypter=new Pn),l.expandKey(t);const c=o;return this.currentResult=l.decrypt(s.buffer,0,n),this.currentIV=s.slice(-16).buffer,c||null}webCryptoDecrypt(e,t,n,i){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n,i));this.key=t,this.fastAesKey=new En(this.subtle,t,i)}return this.fastAesKey.expandKey().then((t=>{if(!this.subtle)return Promise.reject(new Error("web crypto not initialized"));this.logOnce("WebCrypto AES decrypt");return new Cn(this.subtle,new Uint8Array(n),i).decrypt(e.buffer,t)})).catch((r=>(me.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${r.name}: ${r.message}`),this.onWebCryptoError(e,t,n,i))))}onWebCryptoError(e,t,n,i){const r=this.enableSoftwareAES;if(r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,i);const r=this.flush();if(r)return r.buffer}throw new Error("WebCrypto"+(r?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%16;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(me.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const Ln=Math.pow(2,17);class An{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){const n=e.url;if(!n)return Promise.reject(new Nn({type:W.NETWORK_ERROR,details:q.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error("Fragment does not have a "+(n?"part list":"url")),networkDetails:null}));this.abort();const i=this.config,r=i.fLoader,o=i.loader;return new Promise(((a,s)=>{if(this.loader&&this.loader.destroy(),e.gap){if(e.tagList.some((e=>"GAP"===e[0])))return void s(Dn(e));e.gap=!1}const l=this.loader=r?new r(i):new o(i),c=Tn(e);e.loader=l;const u=on(i.fragLoadPolicy.default),h={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===e.sn?1/0:Ln};e.stats=l.stats;const d={onSuccess:(t,n,i,r)=>{this.resetLoader(e,l);let o=t.data;i.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(o.slice(0,16)),o=o.slice(16)),a({frag:e,part:null,payload:o,networkDetails:r})},onError:(t,i,r,o)=>{this.resetLoader(e,l),s(new Nn({type:W.NETWORK_ERROR,details:q.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:ce({url:n,data:void 0},t),error:new Error(`HTTP Error ${t.code} ${t.text}`),networkDetails:r,stats:o}))},onAbort:(t,n,i)=>{this.resetLoader(e,l),s(new Nn({type:W.NETWORK_ERROR,details:q.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:i,stats:t}))},onTimeout:(t,n,i)=>{this.resetLoader(e,l),s(new Nn({type:W.NETWORK_ERROR,details:q.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${h.timeout}ms`),networkDetails:i,stats:t}))}};t&&(d.onProgress=(n,i,r,o)=>t({frag:e,part:null,payload:r,networkDetails:o})),l.load(c,h,d)}))}loadPart(e,t,n){this.abort();const i=this.config,r=i.fLoader,o=i.loader;return new Promise(((a,s)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap)return void s(Dn(e,t));const l=this.loader=r?new r(i):new o(i),c=Tn(e,t);e.loader=l;const u=on(i.fragLoadPolicy.default),h={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Ln};t.stats=l.stats,l.load(c,h,{onSuccess:(i,r,o,s)=>{this.resetLoader(e,l),this.updateStatsFromPart(e,t);const c={frag:e,part:t,payload:i.data,networkDetails:s};n(c),a(c)},onError:(n,i,r,o)=>{this.resetLoader(e,l),s(new Nn({type:W.NETWORK_ERROR,details:q.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:ce({url:c.url,data:void 0},n),error:new Error(`HTTP Error ${n.code} ${n.text}`),networkDetails:r,stats:o}))},onAbort:(n,i,r)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,l),s(new Nn({type:W.NETWORK_ERROR,details:q.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:r,stats:n}))},onTimeout:(n,i,r)=>{this.resetLoader(e,l),s(new Nn({type:W.NETWORK_ERROR,details:q.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${h.timeout}ms`),networkDetails:r,stats:n}))}})}))}updateStatsFromPart(e,t){const n=e.stats,i=t.stats,r=i.total;if(n.loaded+=i.loaded,r){const i=Math.round(e.duration/t.duration),o=Math.min(Math.round(n.loaded/r),i),a=(i-o)*Math.round(n.loaded/o);n.total=n.loaded+a}else n.total=Math.max(n.loaded,n.total);const o=n.loading,a=i.loading;o.start?o.first+=a.first-a.start:(o.start=a.start,o.first=a.first),o.end=a.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function Tn(e,t=null){const n=t||e,i={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},r=n.byteRangeStartOffset,o=n.byteRangeEndOffset;if(G(r)&&G(o)){var a;let t=r,n=o;if("initSegment"===e.sn&&("AES-128"===(s=null==(a=e.decryptdata)?void 0:a.method)||"AES-256"===s)){const e=o-r;e%16&&(n=o+(16-e%16)),0!==r&&(i.resetIV=!0,t=r-16)}i.rangeStart=t,i.rangeEnd=n}var s;return i}function Dn(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),i={type:W.MEDIA_ERROR,details:q.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(i.part=t),(t||e).stats.aborted=!0,new Nn(i)}class Nn extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class In extends ue{constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)}clearNextTick(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)}tick(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class Bn{constructor(e,t,n,i=0,r=-1,o=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=e,this.sn=t,this.id=n,this.size=i,this.part=r,this.partial=o}}const Rn={length:0,start:()=>0,end:()=>0};class On{static isBuffered(e,t){if(e){const n=On.getBuffered(e);for(let e=n.length;e--;)if(t>=n.start(e)&&t<=n.end(e))return!0}return!1}static bufferedRanges(e){if(e){const t=On.getBuffered(e);return On.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let n=0;n1&&e.sort(((e,t)=>e.start-t.start||t.end-e.end));let i=-1,r=[];if(n)for(let o=0;o=e[o].start&&t<=e[o].end&&(i=o);const a=r.length;if(a){const t=r[a-1].end;e[o].start-tt&&(r[a-1].end=e[o].end):r.push(e[o])}else r.push(e[o])}else r=e;let o,a=0,s=t,l=t;for(let e=0;e=c&&t<=u&&(i=e),t+n>=c&&t{const i=t.substring(2,t.length-1),r=null==n?void 0:n[i];return void 0===r?(e.playlistParsingError||(e.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),t):r}))}return t}function $n(e,t,n){let i,r,o=e.variableList;if(o||(e.variableList=o={}),"QUERYPARAM"in t){i=t.QUERYPARAM;try{const e=new self.URL(n).searchParams;if(!e.has(i))throw new Error(`"${i}" does not match any query parameter in URI: "${n}"`);r=e.get(i)}catch(t){e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${t.message}`))}}else i=t.NAME,r=t.VALUE;i in o?e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):o[i]=r||""}function Hn(e,t,n){const i=t.IMPORT;if(n&&i in n){let t=e.variableList;t||(e.variableList=t={}),t[i]=n[i]}else e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${i}"`))}const Zn=/^(\d+)x(\d+)$/,Kn=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Gn{constructor(e,t){"string"==typeof e&&(e=Gn.parseAttrList(e,t)),se(this,e)}get clientAttrs(){return Object.keys(this).filter((e=>"X-"===e.substring(0,2)))}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(1&t.length?"0":"")+t;const n=new Uint8Array(t.length/2);for(let e=0;eNumber.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const n=this[e];return(n?n.split(/[ ,]+/):[]).reduce(((e,t)=>(e[t.toLowerCase()]=!0,e)),t)}bool(e){return"YES"===this[e]}decimalResolution(e){const t=Zn.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let n;const i={};for(Kn.lastIndex=0;null!==(n=Kn.exec(e));){const r=n[1].trim();let o=n[2];const a=0===o.indexOf('"')&&o.lastIndexOf('"')===o.length-1;let s=!1;if(a)o=o.slice(1,-1);else switch(r){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":s=!0}if(t&&(a||s))o=jn(t,o);else if(!s&&!a)switch(r){case"CLOSED-CAPTIONS":if("NONE"===o)break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":me.warn(`${e}: attribute ${r} is missing quotes`)}i[r]=o}return i}}function Un(e){return"SCTE35-OUT"===e||"SCTE35-IN"===e||"SCTE35-CMD"===e}class Vn{constructor(e,t,n=0){var i;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(null==t?void 0:t.tagAnchor)||null,this.tagOrder=null!=(i=null==t?void 0:t.tagOrder)?i:n,t){const n=t.attr;for(const t in n)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==n[t]){me.warn(`DATERANGE tag attribute: "${t}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=t;break}e=se(new Gn({}),n,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const e=(null==t?void 0:t.endDate)||new Date(this.attr["END-DATE"]);G(e.getTime())&&(this._endDate=e)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const e=this._cue;return void 0===e?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){const{tagAnchor:e}=this;return null===e||null===e.programDateTime?(me.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const e=this._endDate||this._dateAtEnd;if(e)return e;const t=this.duration;return null!==t?this._dateAtEnd=new Date(this._startDate.getTime()+1e3*t):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(G(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return"com.apple.hls.interstitial"===this.class}get isValid(){return!!this.id&&!this._badValueForSameId&&G(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}class Wn{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e)return this.advanced=!0,void(this.updated=!0);const t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||0===t&&n>0,this.updated||this.advanced?this.misses=Math.floor(.6*e.misses):this.misses=e.misses+1}get hasProgramDateTime(){return!!this.fragments.length&&G(this.fragments[this.fragments.length-1].programDateTime)}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||10}get drift(){const e=this.driftEndTime-this.driftStartTime;if(e>0){return 1e3*(this.driftEnd-this.driftStart)/e}return 1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var e;return null!=(e=this.fragments)&&e.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){var e;return null!=(e=this.fragments)&&e.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const e=this.partList;if(e){const t=this.lastPartIndex;if(-1!==t){for(let n=e.length;n--;)if(e[n].index>t)return e[n].index;return t}}return 0}get lastPartSn(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function qn(e){return"AES-128"===e||"AES-256"===e||"AES-256-CTR"===e}function Yn(e){switch(e){case"AES-128":case"AES-256":return kn;case"AES-256-CTR":return _n;default:throw new Error(`invalid full segment method ${e}`)}}function Xn(e){return Uint8Array.from(atob(e),(e=>e.charCodeAt(0)))}function Qn(e){return Uint8Array.from(unescape(encodeURIComponent(e)),(e=>e.charCodeAt(0)))}function Jn(e){const t=e.split(":");let n=null;if("data"===t[0]&&2===t.length){const e=t[1].split(";"),i=e[e.length-1].split(",");if(2===i.length){const t="base64"===i[0],r=i[1];t?(e.splice(-1,1),n=Xn(r)):n=function(e){const t=Qn(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}(r)}}return n}const ei="undefined"!=typeof self?self:void 0;var ti={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},ni="org.w3.clearkey",ii="com.apple.streamingkeydelivery",ri="com.microsoft.playready",oi="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function ai(e){switch(e){case ii:return ti.FAIRPLAY;case ri:return ti.PLAYREADY;case oi:return ti.WIDEVINE;case ni:return ti.CLEARKEY}}var si="1077efecc0b24d02ace33c1e52e2fb4b",li="e2719d58a985b3c9781ab030af78d30e",ci="9a04f07998404286ab92e65be0885f95",ui="edef8ba979d64acea3c827dcd51d21ed";function hi(e){return e===ui?ti.WIDEVINE:e===ci?ti.PLAYREADY:e===si||e===li?ti.CLEARKEY:void 0}function di(e){switch(e){case ti.FAIRPLAY:return ii;case ti.PLAYREADY:return ri;case ti.WIDEVINE:return oi;case ti.CLEARKEY:return ni}}function pi(e){const{drmSystems:t,widevineLicenseUrl:n}=e,i=t?[ti.FAIRPLAY,ti.WIDEVINE,ti.PLAYREADY,ti.CLEARKEY].filter((e=>!!t[e])):[];return!i[ti.WIDEVINE]&&n&&i.push(ti.WIDEVINE),i}const fi=null!=ei&&null!=(gi=ei.navigator)&&gi.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;var gi;function mi(e){const t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n=String.fromCharCode.apply(null,Array.from(t)),i=n.substring(n.indexOf("<"),n.length),r=(new DOMParser).parseFromString(i,"text/xml").getElementsByTagName("KID")[0];if(r){const e=r.childNodes[0]?r.childNodes[0].nodeValue:r.getAttribute("VALUE");if(e){const t=Xn(e).subarray(0,16);return function(e){const t=function(e,t,n){const i=e[t];e[t]=e[n],e[n]=i};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}(t),t}}return null}let vi={};class yi{static clearKeyUriToKeyIdMap(){vi={}}constructor(e,t,n,i=[1],r=null){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=i,this.iv=r,this.encrypted=!!e&&"NONE"!==e,this.isCommonEncryption=this.encrypted&&!qn(e)}isSupported(){if(this.method){if(qn(this.method)||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case ii:case oi:case ri:case ni:return-1!==["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(qn(this.method)&&this.uri&&!this.iv){"number"!=typeof e&&(me.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const t=function(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}(e);return new yi(this.method,this.uri,"identity",this.keyFormatVersions,t)}const t=Jn(this.uri);if(t)switch(this.keyFormat){case oi:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case ri:{const e=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=ct(e,0,t),this.keyId=mi(t);break}default:{let e=t.subarray(0,16);if(16!==e.length){const t=new Uint8Array(16);t.set(e,16-e.length),e=t}this.keyId=e;break}}if(!this.keyId||16!==this.keyId.byteLength){let e=vi[this.uri];if(!e){const t=Object.keys(vi).length%Number.MAX_SAFE_INTEGER;e=new Uint8Array(16);new DataView(e.buffer,12,4).setUint32(0,t),vi[this.uri]=e}this.keyId=e}return this}}const bi=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,wi=/#EXT-X-MEDIA:(.*)/g,xi=/^#EXT(?:INF|-X-TARGETDURATION):/m,Si=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),ki=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class _i{static findGroup(e,t){for(let n=0;n0&&i.length({id:e.attrs.AUDIO,audioCodec:e.audioCodec}))),SUBTITLES:o.map((e=>({id:e.attrs.SUBTITLES,textCodec:e.textCodec}))),"CLOSED-CAPTIONS":[]};let s=0;for(wi.lastIndex=0;null!==(i=wi.exec(e));){const e=new Gn(i[1],n),o=e.TYPE;if(o){const n=a[o],i=r[o]||[];r[o]=i;const l=e.LANGUAGE,c=e["ASSOC-LANGUAGE"],u=e.CHANNELS,h=e.CHARACTERISTICS,d=e["INSTREAM-ID"],p={attrs:e,bitrate:0,id:s++,groupId:e["GROUP-ID"]||"",name:e.NAME||l||"",type:o,default:e.bool("DEFAULT"),autoselect:e.bool("AUTOSELECT"),forced:e.bool("FORCED"),lang:l,url:e.URI?_i.resolve(e.URI,t):""};if(c&&(p.assocLang=c),u&&(p.channels=u),h&&(p.characteristics=h),d&&(p.instreamId=d),null!=n&&n.length){const e=_i.findGroup(n,p.groupId)||n[0];Ai(p,e,"audioCodec"),Ai(p,e,"textCodec")}i.push(p)}}return r}static parseLevelPlaylist(e,t,n,i,r,o){var a;const s={url:t},l=new Wn(t),c=l.fragments,u=[];let h,d,p,f,g=null,m=0,v=0,y=0,b=0,w=0,x=null,S=new Re(i,s),k=-1,_=!1,C=null;if(Si.lastIndex=0,l.m3u8=e,l.hasVariableRefs=zn(e),"#EXTM3U"!==(null==(a=Si.exec(e))?void 0:a[0]))return l.playlistParsingError=new Error("Missing format identifier #EXTM3U"),l;for(;null!==(h=Si.exec(e));){_&&(_=!1,S=new Re(i,s),S.playlistOffset=y,S.start=y,S.sn=m,S.cc=b,w&&(S.bitrate=w),S.level=n,g&&(S.initSegment=g,g.rawProgramDateTime&&(S.rawProgramDateTime=g.rawProgramDateTime,g.rawProgramDateTime=null),C&&(S.setByteRange(C),C=null)));const e=h[1];if(e){S.duration=parseFloat(e);const t=(" "+h[2]).slice(1);S.title=t||null,S.tagList.push(t?["INF",e,t]:["INF",e])}else if(h[3]){if(G(S.duration)){S.playlistOffset=y,S.start=y,p&&Ni(S,p,l),S.sn=m,S.level=n,S.cc=b,c.push(S);const e=(" "+h[3]).slice(1);S.relurl=jn(l,e),Ti(S,x,u),x=S,y+=S.duration,m++,v=0,_=!0}}else{if(h=h[0].match(ki),!h){me.warn("No matches on slow regex match for level playlist!");continue}for(d=1;d0&&Bi(l,e,h),m=l.startSN=parseInt(r);break;case"SKIP":{l.skippedSegments&&Ii(l,e,h);const t=new Gn(r,l),n=t.decimalInteger("SKIPPED-SEGMENTS");if(G(n)){l.skippedSegments+=n;for(let e=n;e--;)c.push(null);m+=n}const i=t.enumeratedString("RECENTLY-REMOVED-DATERANGES");i&&(l.recentlyRemovedDateranges=(l.recentlyRemovedDateranges||[]).concat(i.split("\t")));break}case"TARGETDURATION":0!==l.targetduration&&Ii(l,e,h),l.targetduration=Math.max(parseInt(r),1);break;case"VERSION":null!==l.version&&Ii(l,e,h),l.version=parseInt(r);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":l.live||Ii(l,e,h),l.live=!1;break;case"#":(r||a)&&S.tagList.push(a?[r,a]:[r]);break;case"DISCONTINUITY":b++,S.tagList.push(["DIS"]);break;case"GAP":S.gap=!0,S.tagList.push([e]);break;case"BITRATE":S.tagList.push([e,r]),w=1e3*parseInt(r),G(w)?S.bitrate=w:w=0;break;case"DATERANGE":{const e=new Gn(r,l),t=new Vn(e,l.dateRanges[e.ID],l.dateRangeTagCount);l.dateRangeTagCount++,t.isValid||l.skippedSegments?l.dateRanges[t.id]=t:me.warn(`Ignoring invalid DATERANGE tag: "${r}"`),S.tagList.push(["EXT-X-DATERANGE",r]);break}case"DEFINE":{const e=new Gn(r,l);"IMPORT"in e?Hn(l,e,o):$n(l,e,t)}break;case"DISCONTINUITY-SEQUENCE":0!==l.startCC?Ii(l,e,h):c.length>0&&Bi(l,e,h),l.startCC=b=parseInt(r);break;case"KEY":{const e=Ei(r,t,l);if(e.isSupported()){if("NONE"===e.method){p=void 0;break}p||(p={}),p[e.keyFormat]&&(p=se({},p)),p[e.keyFormat]=e}else me.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${r}"`);break}case"START":l.startTimeOffset=Mi(r);break;case"MAP":{const e=new Gn(r,l);if(S.duration){const t=new Re(i,s);Di(t,e,n,p),g=t,S.initSegment=g,g.rawProgramDateTime&&!S.rawProgramDateTime&&(S.rawProgramDateTime=g.rawProgramDateTime)}else{const t=S.byteRangeEndOffset;if(t){const e=S.byteRangeStartOffset;C=`${t-e}@${e}`}else C=null;Di(S,e,n,p),g=S,_=!0}g.cc=b;break}case"SERVER-CONTROL":f&&Ii(l,e,h),f=new Gn(r),l.canBlockReload=f.bool("CAN-BLOCK-RELOAD"),l.canSkipUntil=f.optionalFloat("CAN-SKIP-UNTIL",0),l.canSkipDateRanges=l.canSkipUntil>0&&f.bool("CAN-SKIP-DATERANGES"),l.partHoldBack=f.optionalFloat("PART-HOLD-BACK",0),l.holdBack=f.optionalFloat("HOLD-BACK",0);break;case"PART-INF":{l.partTarget&&Ii(l,e,h);const t=new Gn(r);l.partTarget=t.decimalFloatingPoint("PART-TARGET");break}case"PART":{let e=l.partList;e||(e=l.partList=[]);const t=v>0?e[e.length-1]:void 0,n=v++,i=new Gn(r,l),o=new Oe(i,S,s,n,t);e.push(o),S.duration+=o.duration;break}case"PRELOAD-HINT":{const e=new Gn(r,l);l.preloadHint=e;break}case"RENDITION-REPORT":{const e=new Gn(r,l);l.renditionReports=l.renditionReports||[],l.renditionReports.push(e);break}default:me.warn(`line parsed but not handled: ${h}`)}}}x&&!x.relurl?(c.pop(),y-=x.duration,l.partList&&(l.fragmentHint=x)):l.partList&&(Ti(S,x,u),S.cc=b,l.fragmentHint=S,p&&Ni(S,p,l)),l.targetduration||(l.playlistParsingError=new Error("#EXT-X-TARGETDURATION is required"));const P=c.length,E=c[0],M=c[P-1];if(y+=l.skippedSegments*l.targetduration,y>0&&P&&M){l.averagetargetduration=y/P;const e=M.sn;l.endSN="initSegment"!==e?e:0,l.live||(M.endList=!0),E&&void 0===l.startCC&&(l.startCC=E.cc),k>0&&(!function(e,t){let n=e[t];for(let i=t;i--;){const t=e[i];if(!t)return;t.programDateTime=n.programDateTime-1e3*t.duration,n=t}}(c,k),E&&u.unshift(E))}else l.endSN=0,l.startCC=0;return l.fragmentHint&&(y+=l.fragmentHint.duration),l.totalduration=y,u.length&&l.dateRangeTagCount&&E&&Ci(u,l),l.endCC=b,l}}function Ci(e,t){const n=e.length;if(!n)return;const i=e[n-1],r=t.live?1/0:t.totalduration,o=Object.keys(t.dateRanges);for(let a=o.length;a--;){const s=t.dateRanges[o[a]],l=s.startDate.getTime();s.tagAnchor=i.ref;for(let i=n;i--;){const n=Pi(t,l,e,i,r);if(-1!==n){s.tagAnchor=t.fragments[n].ref;break}}}}function Pi(e,t,n,i,r){const o=n[i];if(o){const s=o.programDateTime;if(t>=s||0===i){var a;if(t<=s+1e3*(((null==(a=n[i+1])?void 0:a.start)||r)-o.start)){const r=n[i].sn-e.startSN,o=e.fragments;if(o.length>n.length){for(let a=(n[i+1]||o[o.length-1]).sn-e.startSN;a>r;a--){const e=o[a].programDateTime;if(t>=e&&te));["video","audio","text"].forEach((e=>{const i=n.filter((t=>pt(t,e)));i.length&&(t[`${e}Codec`]=i.map((e=>e.split("/")[0])).join(","),n=n.filter((e=>-1===i.indexOf(e))))})),t.unknownCodecs=n}function Ai(e,t,n){const i=t[n];i&&(e[n]=i)}function Ti(e,t,n){e.rawProgramDateTime?n.push(e):null!=t&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function Di(e,t,n,i){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",i&&(e.levelkeys=i),e.initSegment=null}function Ni(e,t,n){e.levelkeys=t;const{encryptedFragments:i}=n;i.length&&i[i.length-1].levelkeys===t||!Object.keys(t).some((e=>t[e].isCommonEncryption))||i.push(e)}function Ii(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must not appear more than once (${n[0]})`)}function Bi(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must appear before the first Media Segment (${n[0]})`)}function Ri(e,t){const n=t.startPTS;if(G(n)){let i,r=0;t.sn>e.sn?(r=n-e.start,i=e):(r=e.start-n,i=t),i.duration!==r&&i.setDuration(r)}else if(t.sn>e.sn){e.cc===t.cc&&e.minEndPTS?t.setStart(e.start+(e.minEndPTS-e.start)):t.setStart(e.start+e.duration)}else t.setStart(Math.max(e.start-t.duration,0))}function Oi(e,t,n,i,r,o){i-n<=0&&(me.warn("Fragment should have a positive duration",t),i=n+t.duration,o=r+t.duration);let a=n,s=i;const l=t.startPTS,c=t.endPTS;if(G(l)){const e=Math.abs(l-n);G(t.deltaPTS)?t.deltaPTS=Math.max(e,t.deltaPTS):t.deltaPTS=e,a=Math.max(n,l),n=Math.min(n,l),r=Math.min(r,t.startDTS),s=Math.min(i,c),i=Math.max(i,c),o=Math.max(o,t.endDTS)}const u=n-t.start;0!==t.start&&t.setStart(n),t.setDuration(i-t.start),t.startPTS=n,t.maxStartPTS=a,t.startDTS=r,t.endPTS=i,t.minEndPTS=s,t.endDTS=o;const h=t.sn;if(!e||he.endSN)return 0;let d;const p=h-e.startSN,f=e.fragments;for(f[p]=t,d=p;d>0;d--)Ri(f[d],f[d-1]);for(d=p;d=0;e--){const t=i[e].initSegment;if(t){n=t;break}}let r;e.fragmentHint&&delete e.fragmentHint.endPTS,function(e,t,n){const i=t.skippedSegments,r=Math.max(e.startSN,t.startSN)-t.startSN,o=(e.fragmentHint?1:0)+(i?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,a=t.startSN-e.startSN,s=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments;for(let c=r;c<=o;c++){const r=l[a+c];let o=s[c];if(i&&!o&&r&&(o=t.fragments[c]=r),r&&o){if(n(r,o,c,s),r.url&&r.url!==o.url)return void(t.playlistParsingError=zi(`media sequence mismatch ${o.sn}:`,e,t,r,o));if(r.cc!==o.cc)return void(t.playlistParsingError=zi(`discontinuity sequence mismatch (${r.cc}!=${o.cc})`,e,t,r,o))}}}(e,t,((e,i,o,a)=>{if((!t.startCC||t.skippedSegments)&&i.cc!==e.cc){const n=e.cc-i.cc;for(let e=o;e{var t;!e||e.initSegment&&e.initSegment.relurl!==(null==(t=n)?void 0:t.relurl)||(e.initSegment=n)})),t.skippedSegments){if(t.deltaUpdateFailed=o.some((e=>!e)),t.deltaUpdateFailed){me.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let e=t.skippedSegments;e--;)o.shift();t.startSN=o[0].sn}else{t.canSkipDateRanges&&(t.dateRanges=function(e,t){const{dateRanges:n,recentlyRemovedDateranges:i}=t,r=se({},e);i&&i.forEach((e=>{delete r[e]}));const o=Object.keys(r).length;o&&Object.keys(n).forEach((e=>{const t=r[e],i=new Vn(n[e].attr,t);i.isValid?(r[e]=i,t||(i.tagOrder+=o)):me.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${$t(n[e].attr)}"`)}));return r}(e.dateRanges,t));const n=e.fragments.filter((e=>e.rawProgramDateTime));if(e.hasProgramDateTime&&!t.hasProgramDateTime)for(let e=1;e{t.elementaryStreams=e.elementaryStreams,t.stats=e.stats})),r?Oi(t,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):ji(e,t),o.length&&(t.totalduration=t.edge-o[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;const l=t.advancedDateTime;if(t.advanced&&l){const e=t.edge;t.driftStart||(t.driftStartTime=l,t.driftStart=e),t.driftEndTime=l,t.driftEnd=e}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime;-1===t.requestScheduled&&(t.requestScheduled=e.requestScheduled)}function zi(e,t,n,i,r){return new Error(`${e} ${r.url}\nPlaylist starting @${t.startSN}\n${t.m3u8}\n\nPlaylist starting @${n.startSN}\n${n.m3u8}`)}function ji(e,t,n=!0){const i=t.startSN+t.skippedSegments-e.startSN,r=e.fragments,o=i>=0;let a=0;if(o&&it){const e=1e3*i[i.length-1].duration;e{var n;null==(n=e.details)||n.fragments.forEach((e=>{e.level=t,e.initSegment&&(e.initSegment.level=t)}))}))}function Vi(e,t){for(let i=0,r=e.length;ie.startCC)}(t,e))return;const n=Math.min(t.endCC,e.endCC),i=Vi(t.fragments,n),r=Vi(e.fragments,n);if(!i||!r)return;me.log(`Aligning playlist at start of dicontinuity sequence ${n}`);qi(i.start-r.start,e)}function Xi(e,t){if(!e.hasProgramDateTime||!t.hasProgramDateTime)return;const n=e.fragments,i=t.fragments;if(!n.length||!i.length)return;let r,o;const a=Math.min(t.endCC,e.endCC);t.startCC{const{config:e,fragCurrent:t,media:n,mediaBuffer:i,state:r}=this,o=n?n.currentTime:0,a=On.bufferInfo(i||n,o,e.maxBufferHole);if(this.log(`media seeking to ${G(o)?o.toFixed(3):o}, state: ${r}`),this.state===sr)this.resetLoadingState();else if(t){const n=e.maxFragLookUpTolerance,i=t.start-n,r=t.start+t.duration+n;if(!a.len||ra.end){const e=o>r;(othis.lastCurrentTime&&(this.lastCurrentTime=o),!this.loadingParts){const e=Math.max(a.end,o),t=this.shouldLoadParts(this.getLevelDetails(),e);t&&(this.log(`LL-Part loading ON after seeking to ${o.toFixed(2)} with buffer @${e.toFixed(2)}`),this.loadingParts=t)}}this.hls.hasEnoughToStart||a.len||(this.log(`setting startPosition to ${o} because of seek before start`),this.nextLoadPosition=this.startPosition=o),this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=r,this.hls=e,this.fragmentLoader=new An(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Mn(e.config)}registerListeners(){const{hls:e}=this;e.on(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(Y.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(Y.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===Ji)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;null!=e&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Ji}get startPositionValue(){const{nextLoadPosition:e,startPosition:t}=this;return-1===t&&e?e:t}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;const n=e.end||0,i=this.config.timelineOffset||0;if(n<=i)return!1;const r=e.buffered;this.config.maxBufferHole&&r&&r.length>1&&(e=On.bufferedInfo(r,e.start,0));const o=e.nextStart;if(o&&o>i&&o{const t=e.frag;if(this.fragContextChanged(t))return this.warn(`${t.type} sn: ${t.sn}${e.part?" part: "+e.part.index:""} of ${this.fragInfo(t,!1,e.part)}) was dropped during download.`),void this.fragmentTracker.removeFragment(t);t.stats.chunkCount++,this._handleFragmentLoadProgress(e)})).then((e=>{if(!e)return;const t=this.state,n=e.frag;this.fragContextChanged(n)?(t===nr||!this.fragCurrent&&t===or)&&(this.fragmentTracker.removeFragment(n),this.state=er):("payload"in e&&(this.log(`Loaded ${n.type} sn: ${n.sn} of ${this.playlistLabel()} ${n.level}`),this.hls.trigger(Y.FRAG_LOADED,e)),this._handleFragmentLoadComplete(e))})).catch((t=>{this.state!==Ji&&this.state!==lr&&(this.warn(`Frag error: ${(null==t?void 0:t.message)||t}`),this.resetFragmentLoading(e))}))}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===mn){const t=e.type,i=this.getFwdBufferInfo(this.mediaBuffer,t),r=Math.max(e.duration,i?i.len:this.config.maxBufferLength),o=this.backtrackFragment;(1===(o?e.sn-o.sn:0)||this.reduceMaxBufferLength(r,e.duration))&&n.removeFragment(e)}else 0===(null==(t=this.mediaBuffer)?void 0:t.buffered.length)?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===vn&&n.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}waitForLive(e){const t=e.details;return(null==t?void 0:t.live)&&"EVENT"!==t.type&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const i={startOffset:e,endOffset:t,type:n};this.hls.trigger(Y.BUFFER_FLUSHING,i)}_loadInitSegment(e,t){this._doFragLoad(e,t).then((e=>{const t=null==e?void 0:e.frag;if(!t||this.fragContextChanged(t)||!this.levels)throw new Error("init load aborted");return e})).then((e=>{const{hls:t}=this,{frag:n,payload:i}=e,r=n.decryptdata;if(i&&i.byteLength>0&&null!=r&&r.key&&r.iv&&qn(r.method)){const o=self.performance.now();return this.decrypter.decrypt(new Uint8Array(i),r.key.buffer,r.iv.buffer,Yn(r.method)).catch((e=>{throw t.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:n}),e})).then((i=>{const r=self.performance.now();return t.trigger(Y.FRAG_DECRYPTED,{frag:n,payload:i,stats:{tstart:o,tdecrypt:r}}),e.payload=i,this.completeInitSegmentLoad(e)}))}return this.completeInitSegmentLoad(e)})).catch((t=>{this.state!==Ji&&this.state!==lr&&(this.warn(t),this.resetFragmentLoading(e))}))}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const n=e.frag.stats;this.state!==Ji&&(this.state=er),e.frag.data=new Uint8Array(e.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){const n=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)} > buffer:${n?Qi(On.getBuffered(n)):"(detached)"})`),Be(e)){var i;if(e.type!==ie){const t=e.elementaryStreams;if(!Object.keys(t).some((e=>!!t[e])))return void(this.state=er)}const t=null==(i=this.levels)?void 0:i[e.level];null!=t&&t.fragmentError&&(this.log(`Resetting level fragment error count of ${t.fragmentError} on frag buffered`),t.fragmentError=0)}this.state=er}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:i,partsLoaded:r}=e,o=!r||0===r.length||r.some((e=>!e)),a=new Bn(n.level,n.sn,n.stats.chunkCount+1,0,i?i.index:-1,!o);t.flush(a)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,i){var r;this.fragCurrent=e;const o=null==t?void 0:t.details;if(!this.levels||!o)throw new Error(`frag load aborted, missing level${o?"":" detail"}s`);let a=null;!e.encrypted||null!=(r=e.decryptdata)&&r.key?e.encrypted||(a=this.keyLoader.loadClear(e,o.encryptedFragments),a&&this.log("[eme] blocking frag load until media-keys acquired")):(this.log(`Loading key for ${e.sn} of [${o.startSN}-${o.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=tr,this.fragCurrent=e,a=this.keyLoader.load(e).then((e=>{if(!this.fragContextChanged(e.frag))return this.hls.trigger(Y.KEY_LOADED,e),this.state===tr&&(this.state=er),e})),this.hls.trigger(Y.KEY_LOADING,{frag:e}),null===this.fragCurrent&&(a=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING"))));const s=this.fragPrevious;if(Be(e)&&(!s||e.sn!==s.sn)){const n=this.shouldLoadParts(t.details,e.end);n!==this.loadingParts&&(this.log(`LL-Part loading ${n?"ON":"OFF"} loading sn ${null==s?void 0:s.sn}->${e.sn}`),this.loadingParts=n)}if(n=Math.max(e.start,n||0),this.loadingParts&&Be(e)){const r=o.partList;if(r&&i){n>e.end&&o.fragmentHint&&(e=o.fragmentHint);const s=this.getNextPart(r,e,n);if(s>-1){const l=r[s];let c;return e=this.fragCurrent=l.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${l.index} (${s}/${r.length-1}) of ${this.fragInfo(e,!1,l)}) cc: ${e.cc} [${o.startSN}-${o.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=l.start+l.duration,this.state=nr,c=a?a.then((n=>!n||this.fragContextChanged(n.frag)?null:this.doFragPartsLoad(e,l,t,i))).catch((e=>this.handleFragLoadError(e))):this.doFragPartsLoad(e,l,t,i).catch((e=>this.handleFragLoadError(e))),this.hls.trigger(Y.FRAG_LOADING,{frag:e,part:l,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):c}if(!e.url||this.loadedEndOfParts(r,n))return Promise.resolve(null)}}if(Be(e)&&this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)}`),this.loadingParts=!1;else if(!e.url)return Promise.resolve(null);this.log(`Loading ${e.type} sn: ${e.sn} of ${this.fragInfo(e,!1)}) cc: ${e.cc} ${o?"["+o.startSN+"-"+o.endSN+"]":""}, target: ${parseFloat(n.toFixed(3))}`),G(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=nr;const l=this.config.progressive;let c;return c=l&&a?a.then((t=>!t||this.fragContextChanged(null==t?void 0:t.frag)?null:this.fragmentLoader.load(e,i))).catch((e=>this.handleFragLoadError(e))):Promise.all([this.fragmentLoader.load(e,l?i:void 0),a]).then((([e])=>(!l&&e&&i&&i(e),e))).catch((e=>this.handleFragLoadError(e))),this.hls.trigger(Y.FRAG_LOADING,{frag:e,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):c}doFragPartsLoad(e,t,n,i){return new Promise(((r,o)=>{var a;const s=[],l=null==(a=n.details)?void 0:a.partList,c=t=>{this.fragmentLoader.loadPart(e,t,i).then((i=>{s[t.index]=i;const o=i.part;this.hls.trigger(Y.FRAG_LOADED,i);const a=Ki(n.details,e.sn,t.index+1)||Gi(l,e.sn,t.index+1);if(!a)return r({frag:e,part:o,partsLoaded:s});c(a)})).catch(o)};c(t)}))}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===q.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(Y.ERROR,t)}else this.hls.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==or)return void(this.fragCurrent||this.state===Ji||this.state===lr||(this.state=er));const{frag:n,part:i,level:r}=t,o=self.performance.now();n.stats.parsing.end=o,i&&(i.stats.parsing.end=o);const a=this.getLevelDetails(),s=a&&n.sn>a.endSN||this.shouldLoadParts(a,n.end);s!==this.loadingParts&&(this.log(`LL-Part loading ${s?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=s),this.updateLevelTiming(n,i,r,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(null!=e&&e.partList){var n;const r=e.partList[0];if(t>=r.end+((null==(n=e.fragmentHint)?void 0:n.duration)||0)){var i;if((this.hls.hasEnoughToStart?(null==(i=this.media)?void 0:i.currentTime)||this.lastCurrentTime:this.getLoadPosition())>r.start-r.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:i,sn:r,part:o}=e;if(null==t||!t[i])return this.warn(`Levels object was unset while buffering fragment ${r} of ${this.playlistLabel()} ${i}. The current chunk will not be buffered.`),null;const a=t[i],s=a.details,l=o>-1?Ki(s,r,o):null,c=l?l.fragment:Zi(s,r,n);return c?(n&&n!==c&&(c.stats=n.stats),{frag:c,part:l,level:a}):null}bufferFragmentData(e,t,n,i,r){var o;if(!e||this.state!==or)return;const{data1:a,data2:s}=e;let l=a;if(a&&s&&(l=it(a,s)),null==(o=l)||!o.length)return;const c={type:e.type,frag:t,part:n,chunkMeta:i,parent:t.type,data:l};if(this.hls.trigger(Y.BUFFER_APPENDING,c),e.dropped&&e.independent&&!n){if(r)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!On.isBuffered(t,t.currentTime))return void this.flushMainBuffer(0,e.start);const n=t.currentTime,i=On.bufferInfo(t,n,0),r=e.duration,o=Math.min(2*this.config.maxFragLookUpTolerance,.25*r),a=Math.max(Math.min(e.start-o,i.end-o),n+o);e.start-a>o&&this.flushMainBuffer(a,e.start)}getFwdBufferInfo(e,t){var n;const i=this.getLoadPosition();if(!G(i))return null;const r=this.lastCurrentTime>i||null!=(n=this.media)&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,i,t,r)}getFwdBufferInfoAtPos(e,t,n,i){const r=On.bufferInfo(e,t,i);if(0===r.len&&void 0!==r.nextStart){const o=this.fragmentTracker.getBufferedFrag(t,n);if(o&&(r.nextStart<=o.end||o.gap)){const n=Math.max(Math.min(r.nextStart,o.end)-t,i);return On.bufferInfo(e,t,n)}}return r}getMaxBufferLength(e){const{config:t}=this;let n;return n=e?Math.max(8*t.maxBufferSize/e,t.maxBufferLength):t.maxBufferLength,Math.min(n,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const n=this.config,i=Math.max(Math.min(e-t,n.maxBufferLength),t),r=Math.max(e-3*t,n.maxMaxBufferLength/2,i);return r>=i&&(n.maxMaxBufferLength=r,this.warn(`Reduce max buffer length to ${r}s`),!0)}getAppendedFrag(e,t=te){var n;const i=null==(n=this.fragmentTracker)?void 0:n.getAppendedFrag(e,t);return i&&"fragment"in i?i.fragment:i}getNextFragment(e,t){const n=t.fragments,i=n.length;if(!i)return null;const{config:r}=this,o=n[0].start,a=r.lowLatencyMode&&!!t.partList;let s=null;if(t.live){const n=r.initialLiveManifestSize;if(i=o?n:i)||s.start:e;this.log(`Setting startPosition to ${r} to match start frag at live edge. mainStart: ${n} liveSyncPosition: ${i} frag.start: ${null==(l=s)?void 0:l.start}`),this.startPosition=this.nextLoadPosition=r}}else e<=o&&(s=n[0]);if(!s){const n=this.loadingParts?t.partEnd:t.fragmentEnd;s=this.getFragmentAtPosition(e,n,t)}let c=this.filterReplacedPrimary(s,t);if(!c&&s){const e=s.sn-t.startSN;c=this.filterReplacedPrimary(n[e+1]||null,t)}return this.mapToInitFragWhenRequired(c)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===yn||n===vn&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,i,r){let o=null;if(e.gap&&(o=this.getNextFragment(this.nextLoadPosition,t),o&&!o.gap&&n.nextStart)){const e=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,i,0);if(null!==e&&n.len+e.len>=r){const e=o.sn;return this.loopSn!==e&&(this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${e}`),this.loopSn=e),null}}return this.loopSn=void 0,o}get primaryPrefetch(){if(dr(this.hls.config)){var e,t;if(null==(e=this.hls.interstitialsManager)||null==(t=e.playingItem)?void 0:t.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(dr(this.hls.config)&&e.type!==ie){const n=this.hls.interstitialsManager,i=null==n?void 0:n.bufferingItem;if(i){const n=i.event;if(n){if(n.appendInPlace||Math.abs(e.start-i.start)>1||0===i.start)return null}else{if(e.end<=i.start&&!1===(null==t?void 0:t.live))return null;if(e.start>i.end&&i.nextEvent&&(i.nextEvent.appendInPlace||e.start-i.end>1))return null}}const r=null==n?void 0:n.playerQueue;if(r)for(let t=r.length;t--;){const n=r[t].interstitial;if(n.appendInPlace&&e.start>=n.startTime&&e.end<=n.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return null==e||!e.initSegment||null!=e&&e.initSegment.data||this.bitrateTest?e:e.initSegment}getNextPart(e,t,n){let i=-1,r=!1,o=!0;for(let a=0,s=e.length;a-1&&nn.start&&n.loaded}getInitialLiveFragment(e){const t=e.fragments,n=this.fragPrevious;let i=null;if(n){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),i=function(e,t,n){if(null===t||!Array.isArray(e)||!e.length||!G(t))return null;if(t<(e[0].programDateTime||0))return null;if(t>=(e[e.length-1].endProgramDateTime||0))return null;for(let i=0;i=e.startSN&&r<=e.endSN){const o=t[r-e.startSN];n.cc===o.cc&&(i=o,this.log(`Live playlist, switching playlist, load frag with next SN: ${i.sn}`))}i||(i=en(e,n.cc,n.end),i&&this.log(`Live playlist, switching playlist, load frag with same CC: ${i.sn}`))}}else{const t=this.hls.liveSyncPosition;null!==t&&(i=this.getFragmentAtPosition(t,this.bitrateTest?e.fragmentEnd:e.edge,e))}return i}getFragmentAtPosition(e,t,n){const{config:i}=this;let{fragPrevious:r}=this,{fragments:o,endSN:a}=n;const{fragmentHint:s}=n,{maxFragLookUpTolerance:l}=i,c=n.partList,u=!!(this.loadingParts&&null!=c&&c.length&&s);let h;if(u&&s&&!this.bitrateTest&&c[c.length-1].fragment.sn===s.sn&&(o=o.concat(s),a=s.sn),et-l||null!=(d=this.media)&&d.paused||!this.startFragRequested?0:l)}else h=o[o.length-1];if(h){const e=h.sn-n.startSN,t=this.fragmentTracker.getState(h);if((t===yn||t===vn&&h.gap)&&(r=h),r&&h.sn===r.sn&&(!u||c[0].fragment.sn>h.sn||!n.live&&!u)){if(r&&h.level===r.level){const t=o[e+1];h=h.sn${e.startSN} fragments: ${i}`),r}return r}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,3*e.partTarget)}setStartPosition(e,t){let n=this.startPosition;n=0&&(n=this.nextLoadPosition),n}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&Be(e)&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of ${this.playlistLabel()} ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){this.fragCurrent&&(this.fragContextChanged(e)||this.state===ir)||(this.state=er)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const e=this.getCurrentContext(t.chunkMeta);e&&(t.frag=e.frag)}const n=t.frag;if(!n||n.type!==e||!this.levels)return;var i;if(this.fragContextChanged(n))return void this.warn(`Frag load error must match current frag to retry ${n.url} > ${null==(i=this.fragCurrent)?void 0:i.url}`);const r=t.details===q.FRAG_GAP;r&&this.fragmentTracker.fragBuffered(n,!0);const o=t.errorAction,{action:a,flags:s,retryCount:l=0,retryConfig:c}=o||{},u=!!o&&!!c,h=u&&a===un,d=u&&!o.resolved&&s===dn;if(!h&&d&&Be(n)&&!n.endList)this.resetFragmentErrors(e),this.treatAsGap(n),o.resolved=!0;else if((h||d)&&l.5;r&&this.reduceMaxBufferLength(i.len,(null==t?void 0:t.duration)||10);const o=!r;return o&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),o}return!1}resetFragmentErrors(e){e===ne&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==Ji&&(this.state=er)}afterBufferFlushed(e,t,n){if(!e)return;const i=On.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,i,n),this.state===sr&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==Ji&&(this.state=er)}resetStartWhenNotLoaded(e){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=e?e.details:null;null!=t&&t.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(t,t.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of ${this.playlistLabel()} ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,i){const r=n.details;if(!r)return void this.warn("level.details undefined");var o;if(!Object.keys(e.elementaryStreams).reduce(((t,o)=>{const a=e.elementaryStreams[o];if(a){const s=a.endPTS-a.startPTS;if(s<=0)return this.warn(`Could not parse fragment ${e.sn} ${o} duration reliably (${s})`),t||!1;const l=i?0:Oi(r,e,a.startPTS,a.endPTS,a.startDTS,a.endDTS);return this.hls.trigger(Y.LEVEL_PTS_UPDATED,{details:r,level:n,drift:l,type:o,frag:e,start:a.startPTS,end:a.endPTS}),!0}return t}),!1)&&(0===n.fragmentError&&this.treatAsGap(e,n),null===(null==(o=this.transmuxer)?void 0:o.error))){const t=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(t.message),this.hls.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.FRAG_PARSING_ERROR,fatal:!1,error:t,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=ar,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(Y.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===te?"level":"track"}fragInfo(e,t=!0,n){var i,r;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${(null!=(i=t&&!n?e.startPTS:(n||e).start)?i:NaN).toFixed(3)}-${(null!=(r=t&&!n?e.endPTS:(n||e).end)?r:NaN).toFixed(3)}]${n&&"main"===e.type?"INDEPENDENT="+(n.independent?"YES":"NO"):""}`}treatAsGap(e,t){t&&t.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)}resetTransmuxer(){var e;null==(e=this.transmuxer)||e.reset()}recoverWorkerError(e){"demuxerWorker"===e.event&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}function dr(e){return!!e.interstitialsController&&!1!==e.enableInterstitialPlayback}class pr{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let n;return e.length?(n=1===e.length?e[0]:function(e,t){const n=new Uint8Array(t);let i=0;for(let t=0;t0)return e.subarray(n,n+i)}function _r(e,t){return 255===e[t]&&240==(246&e[t+1])}function Cr(e,t){return 1&e[t+1]?7:9}function Pr(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}function Er(e,t){return t+1=e.length)return!1;const i=Pr(e,t);if(i<=n)return!1;const r=t+i;return r===e.length||Er(e,r)}return!1}function Lr(e,t,n,i,r){if(!e.samplerate){const o=function(e,t,n,i){const r=t[n+2],o=r>>2&15;if(o>12){const t=new Error(`invalid ADTS sampling index:${o}`);return void e.emit(Y.ERROR,Y.ERROR,{type:W.MEDIA_ERROR,details:q.FRAG_PARSING_ERROR,fatal:!0,error:t,reason:t.message})}const a=1+(r>>6&3),s=t[n+3]>>6&3|(1&r)<<2,l="mp4a.40."+a,c=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350][o];let u=o;5!==a&&29!==a||(u-=3);const h=[a<<3|(14&u)>>1,(1&u)<<7|s<<3];return me.log(`manifest codec:${i}, parsed codec:${l}, channels:${s}, rate:${c} (ADTS object type:${a} sampling index:${o})`),{config:h,samplerate:c,channelCount:s,codec:l,parsedCodec:l,manifestCodec:i}}(t,n,i,r);if(!o)return;se(e,o)}}function Ar(e){return 9216e4/e}function Tr(e,t,n,i,r){const o=i+r*Ar(e.samplerate),a=function(e,t){const n=Cr(e,t);if(t+n<=e.length){const i=Pr(e,t)-n;if(i>0)return{headerLength:n,frameLength:i}}}(t,n);let s;if(a){const{frameLength:i,headerLength:r}=a,l=r+i,c=Math.max(0,n+l-t.length);c?(s=new Uint8Array(l-r),s.set(t.subarray(n+r,t.length),0)):s=t.subarray(n+r,n+l);const u={unit:s,pts:o};return c||e.samples.push(u),{sample:u,length:l,missing:c}}const l=t.length-n;s=new Uint8Array(l),s.set(t.subarray(n,t.length),0);return{sample:{unit:s,pts:o},length:l,missing:-1}}function Dr(e,t){return xr(e,t)&&Sr(e,t+6)+10<=e.length-t}function Nr(e,t=0,n=1/0){return function(e,t,n,i){const r=function(e){return e instanceof ArrayBuffer?e:e.buffer}(e);let o=1;"BYTES_PER_ELEMENT"in i&&(o=i.BYTES_PER_ELEMENT);const a=(h=e,h&&h.buffer instanceof ArrayBuffer&&void 0!==h.byteLength&&void 0!==h.byteOffset?e.byteOffset:0),s=(a+e.byteLength)/o,l=(a+t)/o,c=Math.floor(Math.max(0,Math.min(l,s))),u=Math.floor(Math.min(c+Math.max(n,0),s));var h;return new i(r,c,u-c)}(e,t,n,Uint8Array)}function Ir(e){const t={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if(e.size<2)return;if(3!==e.data[0])return void console.log("Ignore frame with unrecognized character encoding");const n=e.data.subarray(1).indexOf(0);if(-1===n)return;const i=be(Nr(e.data,1,n)),r=e.data[2+n],o=e.data.subarray(3+n).indexOf(0);if(-1===o)return;const a=be(Nr(e.data,3+n,o));let s;return s="--\x3e"===i?be(Nr(e.data,4+n+o)):function(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}(e.data.subarray(4+n+o)),t.mimeType=i,t.pictureType=r,t.description=a,t.data=s,t}function Br(e){return"PRIV"===e.type?function(e){if(e.size<2)return;const t=be(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}(e):"W"===e.type[0]?function(e){if("WXXX"===e.type){if(e.size<2)return;let t=1;const n=be(e.data.subarray(t),!0);t+=n.length+1;const i=be(e.data.subarray(t));return{key:e.type,info:n,data:i}}const t=be(e.data);return{key:e.type,info:"",data:t}}(e):"APIC"===e.type?Ir(e):function(e){if(e.size<2)return;if("TXXX"===e.type){let t=1;const n=be(e.data.subarray(t),!0);t+=n.length+1;const i=be(e.data.subarray(t));return{key:e.type,info:n,data:i}}const t=be(e.data.subarray(1));return{key:e.type,info:"",data:t}}(e)}function Rr(e){const t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=Sr(e,4);return{type:t,size:n,data:e.subarray(10,10+n)}}function Or(e){let t=0;const n=[];for(;xr(e,t);){const i=Sr(e,t+6);e[t+5]>>6&1&&(t+=10),t+=10;const r=t+i;for(;t+100&&a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:$r.audioId3,duration:Number.POSITIVE_INFINITY});r{if(G(e))return 90*e;return 9e4*t+(n?9e4*n.baseTime/n.timescale:0)};let Gr=null;const Ur=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],Vr=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Wr=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],qr=[0,1,1,4];function Yr(e,t,n,i,r){if(n+24>t.length)return;const o=Xr(t,n);if(o&&n+o.frameLength<=t.length){const a=i+r*(9e4*o.samplesPerFrame/o.sampleRate),s={unit:t.subarray(n,n+o.frameLength),pts:a,dts:a};return e.config=[],e.channelCount=o.channelCount,e.samplerate=o.sampleRate,e.samples.push(s),{sample:s,length:o.frameLength,missing:0}}}function Xr(e,t){const n=e[t+1]>>3&3,i=e[t+1]>>1&3,r=e[t+2]>>4&15,o=e[t+2]>>2&3;if(1!==n&&0!==r&&15!==r&&3!==o){const a=e[t+2]>>1&1,s=e[t+3]>>6,l=1e3*Ur[14*(3===n?3-i:3===i?3:4)+r-1],c=Vr[3*(3===n?0:2===n?1:2)+o],u=3===s?1:2,h=Wr[n][i],d=qr[i],p=8*h*d,f=Math.floor(h*l/c+a)*d;if(null===Gr){const e=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Gr=e?parseInt(e[1]):0}return!!Gr&&Gr<=87&&2===i&&l>=224e3&&0===s&&(e[t+3]=128|e[t+3]),{sampleRate:c,channelCount:u,frameLength:f,samplesPerFrame:p}}}function Qr(e,t){return 255===e[t]&&224==(224&e[t+1])&&0!=(6&e[t+1])}function Jr(e,t){return t+1{let n=0,i=5;t+=i;const r=new Uint32Array(1),o=new Uint32Array(1),a=new Uint8Array(1);for(;i>0;){a[0]=e[t];const s=Math.min(i,8),l=8-s;o[0]=4278190080>>>24+l<>l,n=n?n<t.length)return-1;if(11!==t[n]||119!==t[n+1])return-1;const o=t[n+4]>>6;if(o>=3)return-1;const a=[48e3,44100,32e3][o],s=63&t[n+4],l=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*s+o];if(n+l>t.length)return-1;const c=t[n+6]>>5;let u=0;2===c?u+=2:(1&c&&1!==c&&(u+=2),4&c&&(u+=2));const h=(t[n+6]<<8|t[n+7])>>12-u&1,d=[2,1,2,3,3,4,4,5][c]+h,p=t[n+5]>>3,f=7&t[n+5],g=new Uint8Array([o<<6|p<<1|f>>2,(3&f)<<6|c<<3|h<<2|s>>4,s<<4&224]),m=i+r*(1536/a*9e4),v=t.subarray(n,n+l);return e.config=g,e.channelCount=d,e.samplerate=a,e.samples.push({unit:v,pts:m}),l}const ro=/\/emsg[-/]ID3/i;function oo(e,t){return G(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class ao{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new Mn(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,kn)}decryptAacSample(e,t,n){const i=e[t].unit;if(i.length<=16)return;const r=i.subarray(16,i.length-i.length%16),o=r.buffer.slice(r.byteOffset,r.byteOffset+r.length);this.decryptBuffer(o).then((r=>{const o=new Uint8Array(r);i.set(o,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)}))}decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length)return void n();if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=16*Math.floor((e.length-48)/160)+16,n=new Int8Array(t);let i=0;for(let t=32;t{r.data=this.getAvcDecryptedUnit(o,a),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,i)}))}decryptAvcSamples(e,t,n,i){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length)return void i();const r=e[t].units;for(;!(n>=r.length);n++){const o=r[n];if(!(o.data.length<=48||1!==o.type&&5!==o.type||(this.decryptAvcSample(e,t,n,i,o),this.decrypter.isSync())))return}}}}class so{constructor(){this.VideoSample=null}createVideoSample(e,t,n){return{key:e,frame:!1,pts:t,dts:n,units:[],length:0}}getLastNalUnit(e){var t;let n,i=this.VideoSample;if(i&&0!==i.units.length||(i=e[e.length-1]),null!=(t=i)&&t.units){const e=i.units;n=e[e.length-1]}return n}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(void 0===e.pts){const n=t.samples,i=n.length;if(!i)return void t.dropped++;{const t=n[i-1];e.pts=t.pts,e.dts=t.dts}}t.samples.push(e)}}parseNALu(e,t,n){const i=t.byteLength;let r=e.naluState||0;const o=r,a=[];let s,l,c,u=0,h=-1,d=0;for(-1===r&&(h=0,d=this.getNALuType(t,0),r=0,u=1);u=0){const e={data:t.subarray(h,l),type:d};a.push(e)}else{const n=this.getLastNalUnit(e.samples);n&&(o&&u<=4-o&&n.state&&(n.data=n.data.subarray(0,n.data.byteLength-o)),l>0&&(n.data=it(n.data,t.subarray(0,l)),n.state=0))}u=0&&r>=0){const e={data:t.subarray(h,i),type:d,state:r};a.push(e)}if(0===a.length){const n=this.getLastNalUnit(e.samples);n&&(n.data=it(n.data,t))}return e.naluState=r,a}}class lo{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,n=e.byteLength-t,i=new Uint8Array(4),r=Math.min(4,t);if(0===r)throw new Error("no bytes available");i.set(e.subarray(n,n+r)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=8*r,this.bytesAvailable-=r}skipBits(e){let t;e=Math.min(e,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(t=(e-=this.bitsAvailable)>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const n=this.word>>>32-t;if(e>32&&me.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return t=e-t,t>0&&this.bitsAvailable?n<>>e))return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return 1===this.readBits(1)}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class co extends so{parsePES(e,t,n,i){const r=this.parseNALu(e,n.data,i);let o,a=this.VideoSample,s=!1;n.data=null,a&&r.length&&!e.audFound&&(this.pushAccessUnit(a,e),a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),r.forEach((i=>{var r,l;switch(i.type){case 1:{let t=!1;o=!0;const r=i.data;if(s&&r.length>4){const e=this.readSliceType(r);2!==e&&4!==e&&7!==e&&9!==e||(t=!0)}var c;if(t)null!=(c=a)&&c.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null);a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.frame=!0,a.key=t;break}case 5:o=!0,null!=(r=a)&&r.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 6:o=!0,st(i.data,1,n.pts,t.samples);break;case 7:{var u,h;o=!0,s=!0;const t=i.data,n=this.readSPS(t);if(!e.sps||e.width!==n.width||e.height!==n.height||(null==(u=e.pixelRatio)?void 0:u[0])!==n.pixelRatio[0]||(null==(h=e.pixelRatio)?void 0:h[1])!==n.pixelRatio[1]){e.width=n.width,e.height=n.height,e.pixelRatio=n.pixelRatio,e.sps=[t];const i=t.subarray(1,4);let r="avc1.";for(let e=0;e<3;e++){let t=i[e].toString(16);t.length<2&&(t="0"+t),r+=t}e.codec=r}break}case 8:o=!0,e.pps=[i.data];break;case 9:o=!0,e.audFound=!0,null!=(l=a)&&l.frame&&(this.pushAccessUnit(a,e),a=null),a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:o=!0;break;default:o=!1}if(a&&o){a.units.push(i)}})),i&&a&&(this.pushAccessUnit(a,e),this.VideoSample=null)}getNALuType(e,t){return 31&e[t]}readSliceType(e){const t=new lo(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n,i=8,r=8;for(let o=0;o{var r,l;switch(i.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),a.frame=!0,o=!0;break;case 16:case 17:case 18:case 21:var c;if(o=!0,s)null!=(c=a)&&c.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null);a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 19:case 20:o=!0,null!=(r=a)&&r.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 39:o=!0,st(i.data,2,n.pts,t.samples);break;case 32:o=!0,e.vps||("object"!=typeof e.params&&(e.params={}),e.params=se(e.params,this.readVPS(i.data)),this.initVPS=i.data),e.vps=[i.data];break;case 33:if(o=!0,s=!0,void 0===e.vps||e.vps[0]===this.initVPS||void 0===e.sps||this.matchSPS(e.sps[0],i.data)||(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const t=this.readSPS(i.data);e.width=t.width,e.height=t.height,e.pixelRatio=t.pixelRatio,e.codec=t.codecString,e.sps=[],"object"!=typeof e.params&&(e.params={});for(const n in t.params)e.params[n]=t.params[n]}this.pushParameterSet(e.sps,i.data,e.vps),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0;break;case 34:if(o=!0,"object"==typeof e.params){if(!e.pps){e.pps=[];const t=this.readPPS(i.data);for(const n in t)e.params[n]=t[n]}this.pushParameterSet(e.pps,i.data,e.vps)}break;case 35:o=!0,e.audFound=!0,null!=(l=a)&&l.frame&&(this.pushAccessUnit(a,e),a=null),a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:o=!1}if(a&&o){a.units.push(i)}})),i&&a&&(this.pushAccessUnit(a,e),this.VideoSample=null)}pushParameterSet(e,t,n){(n&&n[0]===this.initVPS||!n&&!e.length)&&e.push(t)}getNALuType(e,t){return(126&e[t])>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let n=0;for(let i=0;i=2&&3===e[i]&&0===e[i-1]&&0===e[i-2]||(t[n]=e[i],n++);return new Uint8Array(t.buffer,0,n)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new lo(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);return{numTemporalLayers:t.readBits(3)+1,temporalIdNested:t.readBoolean()}}readSPS(e){const t=new lo(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const n=t.readBits(3);t.readBoolean();const i=t.readBits(2),r=t.readBoolean(),o=t.readBits(5),a=t.readUByte(),s=t.readUByte(),l=t.readUByte(),c=t.readUByte(),u=t.readUByte(),h=t.readUByte(),d=t.readUByte(),p=t.readUByte(),f=t.readUByte(),g=t.readUByte(),m=t.readUByte(),v=[],y=[];for(let e=0;e0)for(let e=n;e<8;e++)t.readBits(2);for(let e=0;e1&&t.readEG();for(let e=0;e0&&e<16?(N=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][e-1],I=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][e-1]):255===e&&(N=t.readBits(16),I=t.readBits(16))}t.readBoolean()&&t.readBoolean();if(t.readBoolean()){t.readBits(3),t.readBoolean();t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())}t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),F=t.readBoolean(),F&&(k+=t.readUEG(),_+=t.readUEG(),C+=t.readUEG(),P+=t.readUEG());if(t.readBoolean()){R=t.readBits(32),O=t.readBits(32);t.readBoolean()&&t.readUEG();if(t.readBoolean()){const e=t.readBoolean(),i=t.readBoolean();let r=!1;(e||i)&&(r=t.readBoolean(),r&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),r&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let o=0;o<=n;o++){B=t.readBoolean();let n=!1;B||t.readBoolean()?t.readEG():n=t.readBoolean();const o=n?1:t.readUEG()+1;if(e)for(let e=0;e>e&1)<<31-e)>>>0;let K=Z.toString(16);1===o&&"2"===K&&(K="6");return{codecString:`hvc1.${$}${o}.${K}.${r?"H":"L"}${m}.B0`,params:{general_tier_flag:r,general_profile_idc:o,general_profile_space:i,general_profile_compatibility_flags:[a,s,l,c],general_constraint_indicator_flags:[u,h,d,p,f,g],general_level_idc:m,bit_depth:E+8,bit_depth_luma_minus8:E,bit_depth_chroma_minus8:M,min_spatial_segmentation_idc:D,chroma_format_idc:b,frame_rate:{fixed:B,fps:O/R}},width:z,height:j,pixelRatio:[N,I]}}readPPS(e){const t=new lo(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2);t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);const n=t.readBoolean(),i=t.readBoolean();let r=1;return i&&n?r=0:i?r=3:n&&(r=2),{parallelismType:r}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const ho=188;class po{constructor(e,t,n,i){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=i,this.videoParser=null}static probe(e,t){const n=po.syncOffset(e);return n>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),-1!==n}static syncOffset(e){const t=e.length;let n=Math.min(940,t-ho)+1,i=0;for(;i1&&(0===o&&a>2||s+ho>n))return o}i++}return-1}static createTrack(e,t){return{container:"video"===e||"audio"===e?"video/mp2t":void 0,type:e,id:$e[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===e?t:void 0}}resetInitSegment(e,t,n,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=po.createTrack("video"),this._videoTrack.duration=i,this._audioTrack=po.createTrack("audio",i),this._id3Track=po.createTrack("id3"),this._txtTrack=po.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n=!1,i=!1){let r;n||(this.sampleAes=null);const o=this._videoTrack,a=this._audioTrack,s=this._id3Track,l=this._txtTrack;let c=o.pid,u=o.pesData,h=a.pid,d=s.pid,p=a.pesData,f=s.pesData,g=null,m=this.pmtParsed,v=this._pmtId,y=e.length;if(this.remainderData&&(y=(e=it(this.remainderData,e)).length,this.remainderData=null),y>4>1){if(w=t+5+e[t+4],w===t+ho)continue}else w=t+4;switch(y){case c:if(i){if(u&&(r=wo(u,this.logger))){if(null===this.videoParser)switch(o.segmentCodec){case"avc":this.videoParser=new co;break;case"hevc":this.videoParser=new uo}null!==this.videoParser&&this.videoParser.parsePES(o,l,r,!1)}u={data:[],size:0}}u&&(u.data.push(e.subarray(w,t+ho)),u.size+=t+ho-w);break;case h:if(i){if(p&&(r=wo(p,this.logger)))switch(a.segmentCodec){case"aac":this.parseAACPES(a,r);break;case"mp3":this.parseMPEGPES(a,r);break;case"ac3":this.parseAC3PES(a,r)}p={data:[],size:0}}p&&(p.data.push(e.subarray(w,t+ho)),p.size+=t+ho-w);break;case d:i&&(f&&(r=wo(f,this.logger))&&this.parseID3PES(s,r),f={data:[],size:0}),f&&(f.data.push(e.subarray(w,t+ho)),f.size+=t+ho-w);break;case 0:i&&(w+=e[w]+1),v=this._pmtId=mo(e,w);break;case v:{i&&(w+=e[w]+1);const r=vo(e,w,this.typeSupported,n,this.observer,this.logger);c=r.videoPid,c>0&&(o.pid=c,o.segmentCodec=r.segmentVideoCodec),h=r.audioPid,h>0&&(a.pid=h,a.segmentCodec=r.segmentAudioCodec),d=r.id3Pid,d>0&&(s.pid=d),null===g||m||(this.logger.warn(`MPEG-TS PMT found at ${t} after unknown PID '${g}'. Backtracking to sync byte @${b} to parse all TS packets.`),g=null,t=b-188),m=this.pmtParsed=!0;break}case 17:case 8191:break;default:g=y}}else w++;w>0&&yo(this.observer,new Error(`Found ${w} TS packet/s that do not start with 0x47`),void 0,this.logger),o.pesData=u,a.pesData=p,s.pesData=f;const x={audioTrack:a,videoTrack:o,id3Track:s,textTrack:l};return i&&this.extractRemainingSamples(x),x}flush(){const{remainderData:e}=this;let t;return this.remainderData=null,t=e?this.demux(e,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:n,id3Track:i,textTrack:r}=e,o=n.pesData,a=t.pesData,s=i.pesData;let l;if(o&&(l=wo(o,this.logger))){if(null===this.videoParser)switch(n.segmentCodec){case"avc":this.videoParser=new co;break;case"hevc":this.videoParser=new uo}null!==this.videoParser&&(this.videoParser.parsePES(n,r,l,!0),n.pesData=null)}else n.pesData=o;if(a&&(l=wo(a,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,l);break;case"mp3":this.parseMPEGPES(t,l);break;case"ac3":this.parseAC3PES(t,l)}t.pesData=null}else null!=a&&a.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=a;s&&(l=wo(s,this.logger))?(this.parseID3PES(i,l),i.pesData=null):i.pesData=s}demuxSampleAes(e,t,n){const i=this.demux(e,n,!0,!this.config.progressive),r=this.sampleAes=new ao(this.observer,this.config,t);return this.decrypt(i,r)}decrypt(e,t){return new Promise((n=>{const{audioTrack:i,videoTrack:r}=e;i.samples&&"aac"===i.segmentCodec?t.decryptAacSamples(i.samples,0,(()=>{r.samples?t.decryptAvcSamples(r.samples,0,0,(()=>{n(e)})):n(e)})):r.samples&&t.decryptAvcSamples(r.samples,0,0,(()=>{n(e)}))}))}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(e,t){let n=0;const i=this.aacOverFlow;let r,o,a,s=t.data;if(i){this.aacOverFlow=null;const t=i.missing,r=i.sample.unit.byteLength;if(-1===t)s=it(i.sample.unit,s);else{const o=r-t;i.sample.unit.set(s.subarray(0,t),o),e.samples.push(i.sample),n=i.missing}}for(r=n,o=s.length;r0;)s+=o}}parseID3PES(e,t){if(void 0===t.pts)return void this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");const n=se({},t,{type:this._videoTrack?$r.emsg:$r.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function fo(e,t){return((31&e[t+1])<<8)+e[t+2]}function mo(e,t){return(31&e[t+10])<<8|e[t+11]}function vo(e,t,n,i,r,o){const a={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},s=t+3+((15&e[t+1])<<8|e[t+2])-4;for(t+=12+((15&e[t+10])<<8|e[t+11]);t0){let i=t+5,r=l;for(;r>2;){if(106===e[i])!0!==n.ac3?o.log("AC-3 audio found, not supported in this browser for now"):(a.audioPid=s,a.segmentAudioCodec="ac3");const t=e[i+1]+2;i+=t,r-=t}}break;case 194:case 135:return yo(r,new Error("Unsupported EC-3 in M2TS found"),void 0,o),a;case 36:-1===a.videoPid&&(a.videoPid=s,a.segmentVideoCodec="hevc",o.log("HEVC in M2TS found"))}t+=l+5}return a}function yo(e,t,n,i){i.warn(`parsing error: ${t.message}`),e.emit(Y.ERROR,Y.ERROR,{type:W.MEDIA_ERROR,details:q.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function bo(e,t){t.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function wo(e,t){let n,i,r,o,a,s=0;const l=e.data;if(!e||0===e.size)return null;for(;l[0].length<19&&l.length>1;)l[0]=it(l[0],l[1]),l.splice(1,1);n=l[0];if(1===(n[0]<<16)+(n[1]<<8)+n[2]){if(i=(n[4]<<8)+n[5],i&&i>e.size-6)return null;const c=n[7];192&c&&(o=536870912*(14&n[9])+4194304*(255&n[10])+16384*(254&n[11])+128*(255&n[12])+(254&n[13])/2,64&c?(a=536870912*(14&n[14])+4194304*(255&n[15])+16384*(254&n[16])+128*(255&n[17])+(254&n[18])/2,o-a>54e5&&(t.warn(`${Math.round((o-a)/9e4)}s delta between PTS and DTS, align them`),o=a)):a=o),r=n[8];let u=r+9;if(e.size<=u)return null;e.size-=u;const h=new Uint8Array(e.size);for(let e=0,t=l.length;et){u-=t;continue}n=n.subarray(u),t-=u,u=0}h.set(n,s),s+=t}return i&&(i-=r+3),{data:h,pts:o,dts:a,len:i}}return null}class xo{static getSilentFrame(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}}}const So=Math.pow(2,32)-1;class ko{static init(){let e;for(e in ko.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},ko.types)ko.types.hasOwnProperty(e)&&(ko.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const t=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);ko.HDLR_TYPES={video:t,audio:n};const i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),r=new Uint8Array([0,0,0,0,0,0,0,0]);ko.STTS=ko.STSC=ko.STCO=r,ko.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ko.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),ko.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ko.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const o=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),s=new Uint8Array([0,0,0,1]);ko.FTYP=ko.box(ko.types.ftyp,o,s,o,a),ko.DINF=ko.box(ko.types.dinf,ko.box(ko.types.dref,i))}static box(e,...t){let n=8,i=t.length;const r=i;for(;i--;)n+=t[i].byteLength;const o=new Uint8Array(n);for(o[0]=n>>24&255,o[1]=n>>16&255,o[2]=n>>8&255,o[3]=255&n,o.set(e,4),i=0,n=8;i>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))}static mdia(e){return ko.box(ko.types.mdia,ko.mdhd(e.timescale||0,e.duration||0),ko.hdlr(e.type),ko.minf(e))}static mfhd(e){return ko.box(ko.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))}static minf(e){return"audio"===e.type?ko.box(ko.types.minf,ko.box(ko.types.smhd,ko.SMHD),ko.DINF,ko.stbl(e)):ko.box(ko.types.minf,ko.box(ko.types.vmhd,ko.VMHD),ko.DINF,ko.stbl(e))}static moof(e,t,n){return ko.box(ko.types.moof,ko.mfhd(e),ko.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=ko.trak(e[t]);return ko.box.apply(null,[ko.types.moov,ko.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(ko.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=ko.trex(e[t]);return ko.box.apply(null,[ko.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(So+1)),i=Math.floor(t%(So+1)),r=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return ko.box(ko.types.mvhd,r)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let i,r;for(i=0;i>>8&255),r.push(255&i),r=r.concat(Array.prototype.slice.call(n));for(t=0;t>>8&255),o.push(255&i),o=o.concat(Array.prototype.slice.call(n));const a=ko.box(ko.types.avcC,new Uint8Array([1,r[3],r[4],r[5],255,224|e.sps.length].concat(r).concat([e.pps.length]).concat(o))),s=e.width,l=e.height,c=e.pixelRatio[0],u=e.pixelRatio[1];return ko.box(ko.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,s>>8&255,255&s,l>>8&255,255&l,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),a,ko.box(ko.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),ko.box(ko.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,u>>24,u>>16&255,u>>8&255,255&u])))}static esds(e){const t=e.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...t,6,1,2])}static audioStsd(e){const t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,255&t,0,0])}static mp4a(e){return ko.box(ko.types.mp4a,ko.audioStsd(e),ko.box(ko.types.esds,ko.esds(e)))}static mp3(e){return ko.box(ko.types[".mp3"],ko.audioStsd(e))}static ac3(e){return ko.box(ko.types["ac-3"],ko.audioStsd(e),ko.box(ko.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if("audio"===e.type){if("aac"===t)return ko.box(ko.types.stsd,ko.STSD,ko.mp4a(e));if("ac3"===t&&e.config)return ko.box(ko.types.stsd,ko.STSD,ko.ac3(e));if("mp3"===t&&"mp3"===e.codec)return ko.box(ko.types.stsd,ko.STSD,ko.mp3(e))}else{if(!e.pps||!e.sps)throw new Error("video track missing pps or sps");if("avc"===t)return ko.box(ko.types.stsd,ko.STSD,ko.avc1(e));if("hevc"===t&&e.vps)return ko.box(ko.types.stsd,ko.STSD,ko.hvc1(e))}throw new Error(`unsupported ${e.type} segment codec (${t}/${e.codec})`)}static tkhd(e){const t=e.id,n=(e.duration||0)*(e.timescale||0),i=e.width||0,r=e.height||0,o=Math.floor(n/(So+1)),a=Math.floor(n%(So+1));return ko.box(ko.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,0,0,0,0,o>>24,o>>16&255,o>>8&255,255&o,a>>24,a>>16&255,a>>8&255,255&a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,255&i,0,0,r>>8&255,255&r,0,0]))}static traf(e,t){const n=ko.sdtp(e),i=e.id,r=Math.floor(t/(So+1)),o=Math.floor(t%(So+1));return ko.box(ko.types.traf,ko.box(ko.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),ko.box(ko.types.tfdt,new Uint8Array([1,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,o>>24,o>>16&255,o>>8&255,255&o])),ko.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,ko.box(ko.types.trak,ko.tkhd(e),ko.mdia(e))}static trex(e){const t=e.id;return ko.box(ko.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const n=e.samples||[],i=n.length,r=12+16*i,o=new Uint8Array(r);let a,s,l,c,u,h;for(t+=8+r,o.set(["video"===e.type?1:0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,255&i,t>>>24&255,t>>>16&255,t>>>8&255,255&t],0),a=0;a>>24&255,l>>>16&255,l>>>8&255,255&l,c>>>24&255,c>>>16&255,c>>>8&255,255&c,u.isLeading<<2|u.dependsOn,u.isDependedOn<<6|u.hasRedundancy<<4|u.paddingValue<<1|u.isNonSync,61440&u.degradPrio,15&u.degradPrio,h>>>24&255,h>>>16&255,h>>>8&255,255&h],12+16*a);return ko.box(ko.types.trun,o)}static initSegment(e){ko.types||ko.init();const t=ko.moov(e);return it(ko.FTYP,t)}static hvc1(e){const t=e.params,n=[e.vps,e.sps,e.pps],i=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),3|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),n.length]);let r=i.length;for(let e=0;e>8,255&n[e][t].length]),r),r+=2,o.set(n[e][t],r),r+=n[e][t].length}const s=ko.box(ko.types.hvcC,o),l=e.width,c=e.height,u=e.pixelRatio[0],h=e.pixelRatio[1];return ko.box(ko.types.hvc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,255&l,c>>8&255,255&c,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,ko.box(ko.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),ko.box(ko.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,255&u,h>>24,h>>16&255,h>>8&255,255&h])))}}ko.types=void 0,ko.HDLR_TYPES=void 0,ko.STTS=void 0,ko.STSC=void 0,ko.STCO=void 0,ko.STSZ=void 0,ko.VMHD=void 0,ko.SMHD=void 0,ko.STSD=void 0,ko.FTYP=void 0,ko.DINF=void 0;function _o(e,t,n=1,i=!1){const r=e*t*n;return i?Math.round(r):r}function Co(e,t=!1){return _o(e,1e3,1/9e4,t)}let Po,Eo=null,Mo=null;function Lo(e,t,n,i){return{duration:t,size:n,cts:i,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class Ao{constructor(e,t,n,i){if(this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=i,this.ISGenerated=!1,null===Eo){const e=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Eo=e?parseInt(e[1]):0}if(null===Mo){const e=navigator.userAgent.match(/Safari\/(\d+)/i);Mo=e?parseInt(e[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){this.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const n=e[0].pts,i=e.reduce(((e,i)=>{let r=i.pts,o=r-e;return o<-4294967296&&(t=!0,r=To(r,n),o=r-e),o>0?e:r}),n);return t&&this.logger.debug("PTS rollover detected"),i}remux(e,t,n,i,r,o,a,s){let l,c,u,h,d,p,f=r,g=r;const m=e.pid>-1,v=t.pid>-1,y=t.samples.length,b=e.samples.length>0,w=a&&y>0||y>1;if((!m||b)&&(!v||w)||this.ISGenerated||a){if(this.ISGenerated){var x,S,k,_;const e=this.videoTrackConfig;(e&&(t.width!==e.width||t.height!==e.height||(null==(x=t.pixelRatio)?void 0:x[0])!==(null==(S=e.pixelRatio)?void 0:S[0])||(null==(k=t.pixelRatio)?void 0:k[1])!==(null==(_=e.pixelRatio)?void 0:_[1]))||!e&&w||null===this.nextAudioPts&&b)&&this.resetInitSegment()}this.ISGenerated||(u=this.generateIS(e,t,r,o));const n=this.isVideoContiguous;let i,a=-1;if(w&&(a=function(e){for(let t=0;t0){this.logger.warn(`[mp4-remuxer]: Dropped ${a} out of ${y} video samples due to a missing keyframe`);const e=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(a),t.dropped+=a,g+=(t.samples[0].pts-e)/t.inputTimeScale,i=g}else-1===a&&(this.logger.warn(`[mp4-remuxer]: No keyframe found out of ${y} video samples`),p=!1);if(this.ISGenerated){if(b&&w){const n=this.getVideoStartPts(t.samples),i=(To(e.samples[0].pts,n)-n)/t.inputTimeScale;f+=Math.max(0,i),g+=Math.max(0,-i)}if(b){if(e.samplerate||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),u=this.generateIS(e,t,r,o)),c=this.remuxAudio(e,f,this.isAudioContiguous,o,v||w||s===ne?g:void 0),w){const i=c?c.endPTS-c.startPTS:0;t.inputTimeScale||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),u=this.generateIS(e,t,r,o)),l=this.remuxVideo(t,g,n,i)}}else w&&(l=this.remuxVideo(t,g,n,0));l&&(l.firstKeyFrame=a,l.independent=-1!==a,l.firstKeyFramePTS=i)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(d=Do(n,r,this._initPTS,this._initDTS)),i.samples.length&&(h=No(i,r,this._initPTS))),{audio:c,video:l,initSegment:u,independent:p,text:h,id3:d}}generateIS(e,t,n,i){const r=e.samples,o=t.samples,a=this.typeSupported,s={},l=this._initPTS;let c,u,h,d,p=!l||i,f="audio/mp4";if(p&&(c=u=1/0),e.config&&r.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":a.mpeg?(f="audio/mpeg",e.codec=""):a.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3"}s.audio={id:"audio",container:f,codec:e.codec,initSegment:"mp3"===e.segmentCodec&&a.mpeg?new Uint8Array(0):ko.initSegment([e]),metadata:{channelCount:e.channelCount}},p&&(d=e.id,h=e.inputTimeScale,l&&h===l.timescale?p=!1:c=u=r[0].pts-Math.round(h*n))}if(t.sps&&t.pps&&o.length){if(t.timescale=t.inputTimeScale,s.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:ko.initSegment([t]),metadata:{width:t.width,height:t.height}},p)if(d=t.id,h=t.inputTimeScale,l&&h===l.timescale)p=!1;else{const e=this.getVideoStartPts(o),t=Math.round(h*n);u=Math.min(u,To(o[0].dts,e)-t),c=Math.min(c,e-t)}this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(s).length)return this.ISGenerated=!0,p?(this._initPTS={baseTime:c,timescale:h},this._initDTS={baseTime:u,timescale:h}):c=h=void 0,{tracks:s,initPTS:c,timescale:h,trackId:d}}remuxVideo(e,t,n,i){const r=e.inputTimeScale,o=e.samples,a=[],s=o.length,l=this._initPTS;let c,u,h=this.nextAvcDts,d=8,p=this.videoSampleDuration,f=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,m=!1;if(!n||null===h){const e=t*r,i=o[0].pts-To(o[0].dts,o[0].pts);Eo&&null!==h&&Math.abs(e-i-h)<15e3?n=!0:h=e-i}const v=l.baseTime*r/l.timescale;for(let e=0;e0?e-1:e].dts&&(m=!0)}m&&o.sort((function(e,t){const n=e.dts-t.dts,i=e.pts-t.pts;return n||i})),c=o[0].dts,u=o[o.length-1].dts;const y=u-c,b=y?Math.round(y/(s-1)):p||e.inputTimeScale/30;if(n){const n=c-h,i=n>b,r=n<-1;if((i||r)&&(i?this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Co(n,!0)} ms (${n}dts) hole between fragments detected at ${t.toFixed(3)}`):this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Co(-n,!0)} ms (${n}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!r||h>=o[0].pts||Eo)){c=h;const e=o[0].pts-n;if(i)o[0].dts=c,o[0].pts=e;else{let t=!0;for(let i=0;ie&&t);i++){const e=o[i].pts;if(o[i].dts-=n,o[i].pts-=n,i0?t.dts-o[e-1].dts:b;if(l=e>0?t.pts-o[e-1].pts:b,n.stretchShortVideoTrack&&null!==this.nextAudioPts){const e=Math.floor(n.maxBufferHole*r),o=(i?f+i*r:this.nextAudioPts)-t.pts;o>e?(p=o-a,p<0?p=a:P=!0,this.logger.log(`[mp4-remuxer]: It is approximately ${o/90} ms to the next segment; using duration ${p/90} ms for the last video frame.`)):p=a}else p=a}const u=Math.round(t.pts-t.dts);E=Math.min(E,p),L=Math.max(L,p),M=Math.min(M,l),A=Math.max(A,l),a.push(Lo(t.key,p,c,u))}if(a.length)if(Eo){if(Eo<70){const e=a[0].flags;e.dependsOn=2,e.isNonSync=0}}else if(Mo&&A-M0&&(i&&Math.abs(m-g)<9e3||Math.abs(To(p[0].pts-v,m)-g)<20*l),p.forEach((function(e){e.pts=To(e.pts-v,m)})),!n||g<0){if(p=p.filter((e=>e.pts>=0)),!p.length)return;g=0===r?0:i&&!d?Math.max(0,m):p[0].pts}if("aac"===e.segmentCodec){const t=this.config.maxAudioFramesDrift;for(let n=0,i=g;n=t*l&&c<1e4&&d){let t=Math.round(s/l);i=a-t*l,i<0&&(t--,i+=l),0===n&&(this.nextAudioPts=g=i),this.logger.warn(`[mp4-remuxer]: Injecting ${t} audio frame @ ${(i/o).toFixed(3)}s due to ${Math.round(1e3*s/o)} ms gap.`);for(let o=0;o0))return;x+=f;try{y=new Uint8Array(x)}catch(e){return void this.observer.emit(Y.ERROR,Y.ERROR,{type:W.MUX_ERROR,details:q.REMUX_ALLOC_ERROR,fatal:!1,error:e,bytes:x,reason:`fail allocating audio mdat ${x}`})}if(!u){new DataView(y.buffer).setUint32(0,x),y.set(ko.types.mdat,4)}}y.set(r,f);const l=r.byteLength;f+=l,h.push(Lo(!0,s,l,0)),w=o}const k=h.length;if(!k)return;const _=h[h.length-1];this.nextAudioPts=g=w+a*_.duration;const C=u?new Uint8Array(0):ko.moof(e.sequenceNumber++,b/a,se({},e,{samples:h}));e.samples=[];const P=b/o,E=g/o,M={data1:C,data2:y,startPTS:P,endPTS:E,startDTS:P,endDTS:E,type:"audio",hasAudio:!0,hasVideo:!1,nb:k};return this.isAudioContiguous=!0,M}}function To(e,t){let n;if(null===t)return e;for(n=t4294967296;)e+=n;return e}function Do(e,t,n,i){const r=e.samples.length;if(!r)return;const o=e.inputTimeScale;for(let a=0;ae.pts-t.pts));const o=e.samples;return e.samples=[],{samples:o}}function Io(e,t,n=!1){return void 0!==(null==e?void 0:e.start)?(e.start+(n?e.duration:0))/e.timescale:t}function Bo(e,t,n){const i=null==e?void 0:e.codec;if(i&&i.length>4)return i;if(t===Te){if("ec-3"===i||"ac-3"===i||"alac"===i)return i;if("fLaC"===i||"Opus"===i){return xt(i,!1)}return n.warn(`Unhandled audio codec "${i}" in mp4 MAP`),i||"mp4a"}return n.warn(`Unhandled video codec "${i}" in mp4 MAP`),i||"avc1"}try{Po=self.performance.now.bind(self.performance)}catch(e){Po=Date.now}const Ro=[{demux:class{constructor(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}resetTimeStamp(){}resetInitSegment(e,t,n,i){const r=this.videoTrack=Hr("video",1),o=this.audioTrack=Hr("audio",1),a=this.txtTrack=Hr("text",1);if(this.id3Track=Hr("id3",1),this.timeOffset=0,null==e||!e.byteLength)return;const s=Ye(e);if(s.video){const{id:e,timescale:t,codec:n,supplemental:i}=s.video;r.id=e,r.timescale=a.timescale=t,r.codec=n,r.supplemental=i}if(s.audio){const{id:e,timescale:t,codec:n}=s.audio;o.id=e,o.timescale=t,o.codec=n}a.id=$e.text,r.sampleDuration=0,r.duration=o.duration=i}resetContiguity(){this.remainderData=null}static probe(e){return function(e){const t=e.byteLength;for(let n=0;n8&&109===e[n+4]&&111===e[n+5]&&111===e[n+6]&&102===e[n+7])return!0;n=i>1?n+i:t}return!1}(e)}demux(e,t){this.timeOffset=t;let n=e;const i=this.videoTrack,r=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=it(this.remainderData,e));const t=function(e){const t={valid:null,remainder:null},n=We(e,["moof"]);if(n.length<2)return t.remainder=e,t;const i=n[n.length-1];return t.valid=e.slice(0,i.byteOffset-8),t.remainder=e.slice(i.byteOffset-8),t}(n);this.remainderData=t.remainder,i.samples=t.valid||new Uint8Array}else i.samples=n;const o=this.extractID3Track(i,t);return r.samples=rt(t,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:o,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const i=this.extractID3Track(t,this.timeOffset);return n.samples=rt(e,t),{videoTrack:t,audioTrack:Hr(),id3Track:i,textTrack:Hr()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const i=We(e.samples,["emsg"]);i&&i.forEach((e=>{const i=function(e){const t=e[0];let n="",i="",r=0,o=0,a=0,s=0,l=0,c=0;if(0===t){for(;"\0"!==He(e.subarray(c,c+1));)n+=He(e.subarray(c,c+1)),c+=1;for(n+=He(e.subarray(c,c+1)),c+=1;"\0"!==He(e.subarray(c,c+1));)i+=He(e.subarray(c,c+1)),c+=1;i+=He(e.subarray(c,c+1)),c+=1,r=Ke(e,12),o=Ke(e,16),s=Ke(e,20),l=Ke(e,24),c=28}else if(1===t){c+=4,r=Ke(e,c),c+=4;const t=Ke(e,c);c+=4;const o=Ke(e,c);for(c+=4,a=2**32*t+o,U(a)||(a=Number.MAX_SAFE_INTEGER,me.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),s=Ke(e,c),c+=4,l=Ke(e,c),c+=4;"\0"!==He(e.subarray(c,c+1));)n+=He(e.subarray(c,c+1)),c+=1;for(n+=He(e.subarray(c,c+1)),c+=1;"\0"!==He(e.subarray(c,c+1));)i+=He(e.subarray(c,c+1)),c+=1;i+=He(e.subarray(c,c+1)),c+=1}return{schemeIdUri:n,value:i,timeScale:r,presentationTime:a,presentationTimeDelta:o,eventDuration:s,id:l,payload:e.subarray(c,e.byteLength)}}(e);if(ro.test(i.schemeIdUri)){const e=oo(i,t);let r=4294967295===i.eventDuration?Number.POSITIVE_INFINITY:i.eventDuration/i.timeScale;r<=.001&&(r=Number.POSITIVE_INFINITY);const o=i.payload;n.samples.push({data:o,len:o.byteLength,dts:e,pts:e,type:$r.emsg,duration:r})}else if(this.config.enableEmsgKLVMetadata&&i.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const e=oo(i,t);n.samples.push({data:i.payload,len:i.payload.byteLength,dts:e,pts:e,type:$r.misbklv,duration:Number.POSITIVE_INFINITY})}}))}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}},remux:class{constructor(e,t,n,i){this.logger=void 0,this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1,this.logger=i}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(e,t,n,i){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(function(e,t){if(!e||!t)return e;const n=t.keyId;n&&t.isCommonEncryption&&We(e,["moov","trak"]).forEach((e=>{const t=We(e,["mdia","minf","stbl","stsd"])[0].subarray(8);let i=We(t,["enca"]);const r=i.length>0;r||(i=We(t,["encv"])),i.forEach((e=>{We(r?e.subarray(28):e.subarray(78),["sinf"]).forEach((e=>{const t=nt(e);if(t){const e=t.subarray(8,24);e.some((e=>0!==e))||(me.log(`[eme] Patching keyId in 'enc${r?"a":"v"}>sinf>>tenc' box: ${we(e)} -> ${we(n)}`),t.set(n,8))}}))}))}));return e}(e,i)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:n}=this;if(null==e||!e.byteLength)return this.initTracks=void 0,void(this.initData=void 0);const i=this.initData=Ye(e);i.audio&&(t=Bo(i.audio,Te,this.logger)),i.video&&(n=Bo(i.video,De,this.logger));const r={};i.audio&&i.video?r.audiovideo={container:"video/mp4",codec:t+","+n,supplemental:i.video.supplemental,initSegment:e,id:"main"}:i.audio?r.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:i.video?r.video={container:"video/mp4",codec:n,supplemental:i.video.supplemental,initSegment:e,id:"main"}:this.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=r}remux(e,t,n,i,r,o){var a,s;let{initPTS:l,lastEndTime:c}=this;const u={audio:void 0,video:void 0,text:i,id3:n,initSegment:void 0};G(c)||(c=this.lastEndTime=r||0);const h=t.samples;if(null==h||!h.length)return u;const d={initPTS:void 0,timescale:void 0,trackId:void 0};let p=this.initData;if(null!=(a=p)&&a.length||(this.generateInitSegment(h),p=this.initData),null==(s=p)||!s.length)return this.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),u;this.emitInitSegment&&(d.tracks=this.initTracks,this.emitInitSegment=!1);const f=function(e,t,n){const i={},r=We(e,["moof","traf"]);for(let e=0;ei[e].duration))){let t=1/0,n=0;const r=We(e,["sidx"]);for(let e=0;ee+t.info.duration||0),0);n=Math.max(n,e+i.earliestPresentationTime/i.timescale)}}n&&G(n)&&Object.keys(i).forEach((e=>{i[e].duration||(i[e].duration=n*i[e].timescale-i[e].start)}))}return i}(h,p,this.logger),g=p.audio?f[p.audio.id]:null,m=p.video?f[p.video.id]:null,v=Io(m,1/0),y=Io(g,1/0),b=Io(m,0,!0),w=Io(g,0,!0);let x,S=r,k=0;if(g&&(!m||!l&&yr}(l,S,r,k)&&d.timescale===l.timescale||(d.initPTS=S-r,l&&1===l.timescale&&this.logger.warn(`Adjusting initPTS @${r} from ${l.baseTime/l.timescale} to ${d.initPTS}`),this.initPTS=l={baseTime:d.initPTS,timescale:1});const _=e?S-l.baseTime/l.timescale:c;!function(e,t,n){We(t,["moof","traf"]).forEach((t=>{We(t,["tfhd"]).forEach((i=>{const r=Ke(i,4),o=e[r];if(!o)return;const a=o.timescale||9e4;We(t,["tfdt"]).forEach((e=>{const t=e[0],i=n*a;if(i){let n=Ke(e,4);if(0===t)n-=i,n=Math.max(n,0),Ve(e,4,n);else{n*=Math.pow(2,32),n+=Ke(e,8),n-=i,n=Math.max(n,0);const t=Math.floor(n/(ze+1)),r=Math.floor(n%(ze+1));Ve(e,4,t),Ve(e,8,r)}}}))}))}))}(p,h,l.baseTime/l.timescale);const C=_+k;k>0?this.lastEndTime=C:(this.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const P=!!p.audio,E=!!p.video;let M="";P&&(M+="audio"),E&&(M+="video");const L={data1:h,startPTS:_,startDTS:_,endPTS:C,endDTS:C,type:M,hasAudio:P,hasVideo:E,nb:1,dropped:0};u.audio=P&&!E?L:void 0,u.video=E?L:void 0;const A=null==m?void 0:m.sampleCount;if(A){const e=m.keyFrameIndex,t=-1!==e;L.nb=A,L.dropped=0===e||this.isVideoContiguous?0:t?e:A,L.independent=t,L.firstKeyFrame=e,t&&m.keyFrameStart&&(L.firstKeyFramePTS=m.keyFrameStart-l.baseTime/l.timescale),this.isVideoContiguous||(u.independent=t),this.isVideoContiguous||(this.isVideoContiguous=t),L.dropped&&this.logger.warn(`fmp4 does not start with IDR: firstIDR ${e}/${A} dropped: ${L.dropped} pts: ${L.firstKeyFramePTS||"NA"}`)}return u.initSegment=d,u.id3=Do(n,r,l,l),i.samples.length&&(u.text=No(i,r,l)),u}}},{demux:po,remux:Ao},{demux:class extends Zr{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,i){super.resetInitSegment(e,t,n,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const n=kr(e,0);let i=(null==n?void 0:n.length)||0;if(eo(e,i))return!1;for(let n=e.length;i0&&null!=(null==t?void 0:t.key)&&null!==t.iv&&null!=t.method&&(n=t);return n}(o,t);if(b&&qn(b.method)){const e=this.getDecrypter(),t=Yn(b.method);if(!e.isSync())return this.asyncResult=!0,this.decryptionPromise=e.webCryptoDecrypt(o,b.key.buffer,b.iv.buffer,t).then((e=>{const t=this.push(e,null,n);return this.decryptionPromise=null,t})),this.decryptionPromise;{let i=e.softwareDecrypt(o,b.key.buffer,b.iv.buffer,t);if(n.part>-1){const t=e.flush();i=t?t.buffer:t}if(!i)return r.executeEnd=Po(),Fo(n);o=new Uint8Array(i)}}const w=this.needsProbing(c,u);if(w){const e=this.configureTransmuxer(o);if(e)return this.logger.warn(`[transmuxer] ${e.message}`),this.observer.emit(Y.ERROR,Y.ERROR,{type:W.MEDIA_ERROR,details:q.FRAG_PARSING_ERROR,fatal:!1,error:e,reason:e.message}),r.executeEnd=Po(),Fo(n)}(c||u||p||w)&&this.resetInitSegment(y,f,g,v,t),(c||p||w)&&this.resetInitialTimestamp(m),l||this.resetContiguity();const x=this.transmux(o,b,d,h,n);this.asyncResult=zo(x);const S=this.currentTransmuxState;return S.contiguous=!0,S.discontinuity=!1,S.trackSwitch=!1,r.executeEnd=Po(),x}flush(e){const t=e.transmuxing;t.executeStart=Po();const{decrypter:n,currentTransmuxState:i,decryptionPromise:r}=this;if(r)return this.asyncResult=!0,r.then((()=>this.flush(e)));const o=[],{timeOffset:a}=i;if(n){const t=n.flush();t&&o.push(this.push(t.buffer,null,e))}const{demuxer:s,remuxer:l}=this;if(!s||!l){t.executeEnd=Po();const n=[Fo(e)];return this.asyncResult?Promise.resolve(n):n}const c=s.flush(a);return zo(c)?(this.asyncResult=!0,c.then((t=>(this.flushRemux(o,t,e),o)))):(this.flushRemux(o,c,e),this.asyncResult?Promise.resolve(o):o)}flushRemux(e,t,n){const{audioTrack:i,videoTrack:r,id3Track:o,textTrack:a}=t,{accurateTimeOffset:s,timeOffset:l}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===te?"level":"track"} ${n.level}`);const c=this.remuxer.remux(i,r,o,a,l,s,!0,this.id);e.push({remuxResult:c,chunkMeta:n}),n.transmuxing.executeEnd=Po()}resetInitialTimestamp(e){const{demuxer:t,remuxer:n}=this;t&&n&&(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;e&&t&&(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,i,r){const{demuxer:o,remuxer:a}=this;o&&a&&(o.resetInitSegment(e,t,n,i),a.resetInitSegment(e,t,n,r))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,i,r){let o;return o=t&&"SAMPLE-AES"===t.method?this.transmuxSampleAes(e,t,n,i,r):this.transmuxUnencrypted(e,n,i,r),o}transmuxUnencrypted(e,t,n,i){const{audioTrack:r,videoTrack:o,id3Track:a,textTrack:s}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(r,o,a,s,t,n,!1,this.id),chunkMeta:i}}transmuxSampleAes(e,t,n,i,r){return this.demuxer.demuxSampleAes(e,t,n).then((e=>({remuxResult:this.remuxer.remux(e.audioTrack,e.videoTrack,e.id3Track,e.textTrack,n,i,!1,this.id),chunkMeta:r})))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:i}=this;let r;for(let t=0,n=Ro.length;t({remuxResult:{},chunkMeta:e});function zo(e){return"then"in e&&e.then instanceof Function}class jo{constructor(e,t,n,i,r){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=n,this.duration=i,this.defaultInitPts=r||null}}class $o{constructor(e,t,n,i,r,o){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=i,this.timeOffset=r,this.initSegmentChange=o}}let Ho=0;class Zo{constructor(e,t,n,i){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Ho++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=e=>{const t=e.data,n=this.hls;if(n&&null!=t&&t.event&&t.instanceNo===this.instanceNo)switch(t.event){case"init":{var i;const e=null==(i=this.workerContext)?void 0:i.objectURL;e&&self.URL.revokeObjectURL(e);break}case"transmuxComplete":this.handleTransmuxComplete(t.data);break;case"flush":this.onFlush(t.data);break;case"workerLog":n.logger[t.data.logType]&&n.logger[t.data.logType](t.data.message);break;default:t.data=t.data||{},t.data.frag=this.frag,t.data.part=this.part,t.data.id=this.id,n.trigger(t.event,t.data)}},this.onWorkerError=e=>{if(!this.hls)return;const t=new Error(`${e.message} (${e.filename}:${e.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:t})};const r=e.config;this.hls=e,this.id=t,this.useWorker=!!r.enableWorker,this.onTransmuxComplete=n,this.onFlush=i;const o=(e,t)=>{(t=t||{}).frag=this.frag||void 0,e===Y.ERROR&&(t.parent=this.id,t.part=this.part,this.error=t.error),this.hls.trigger(e,t)};this.observer=new vr,this.observer.on(Y.FRAG_DECRYPTED,o),this.observer.on(Y.ERROR,o);const a=_t(r.preferManagedMediaSource);if(this.useWorker&&"undefined"!=typeof Worker){const n=this.hls.logger;if(r.workerPath||"function"==typeof __HLS_WORKER_BUNDLE__){try{r.workerPath?(n.log(`loading Web Worker ${r.workerPath} for "${t}"`),this.workerContext=function(e){const t=br[e];if(t)return t.clientCount++,t;const n=new self.URL(e,self.location.href).href,i={worker:new self.Worker(n),scriptURL:n,clientCount:1};return br[e]=i,i}(r.workerPath)):(n.log(`injecting Web Worker for "${t}"`),this.workerContext=function(){const e=br[yr];if(e)return e.clientCount++,e;const t=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),n=self.URL.createObjectURL(t),i={worker:new self.Worker(n),objectURL:n,clientCount:1};return br[yr]=i,i}());const{worker:e}=this.workerContext;e.addEventListener("message",this.onWorkerMessage),e.addEventListener("error",this.onWorkerError),e.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:a,id:t,config:$t(r)})}catch(i){n.warn(`Error setting up "${t}" Web Worker, fallback to inline`,i),this.terminateWorker(),this.error=null,this.transmuxer=new Oo(this.observer,a,r,"",t,e.logger)}return}}this.transmuxer=new Oo(this.observer,a,r,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=Ho++;const t=this.hls.config,n=_t(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:$t(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),function(e){const t=br[e||yr];if(t&&1==t.clientCount--){const{worker:n,objectURL:i}=t;delete br[e||yr],i&&self.URL.revokeObjectURL(i),n.terminate()}}(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const e=this.transmuxer;e&&(e.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,n,i,r,o,a,s,l,c){var u,h;l.transmuxing.start=self.performance.now();const{instanceNo:d,transmuxer:p}=this,f=o?o.start:r.start,g=r.decryptdata,m=this.frag,v=!(m&&r.cc===m.cc),y=!(m&&l.level===m.level),b=m?l.sn-m.sn:-1,w=this.part?l.part-this.part.index:-1,x=0===b&&l.id>1&&l.id===(null==m?void 0:m.stats.chunkCount),S=!y&&(1===b||0===b&&(1===w||x&&w<=0)),k=self.performance.now();(y||b||0===r.stats.parsing.start)&&(r.stats.parsing.start=k),!o||!w&&S||(o.stats.parsing.start=k);const _=!(m&&(null==(u=r.initSegment)?void 0:u.url)===(null==(h=m.initSegment)?void 0:h.url)),C=new $o(v,S,s,y,f,_);if(!S||v||_){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${r.type} sn: ${l.sn}${l.part>-1?" part: "+l.part:""} ${this.id===te?"level":"track"}: ${l.level} id: ${l.id}\n discontinuity: ${v}\n trackSwitch: ${y}\n contiguous: ${S}\n accurateTimeOffset: ${s}\n timeOffset: ${f}\n initSegmentChange: ${_}`);const e=new jo(n,i,t,a,c);this.configureTransmuxer(e)}if(this.frag=r,this.part=o,this.workerContext)this.workerContext.worker.postMessage({instanceNo:d,cmd:"demux",data:e,decryptdata:g,chunkMeta:l,state:C},e instanceof ArrayBuffer?[e]:[]);else if(p){const t=p.push(e,g,l,C);zo(t)?t.then((e=>{this.handleTransmuxComplete(e)})).catch((e=>{this.transmuxerError(e,l,"transmuxer-interface push error")})):this.handleTransmuxComplete(t)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(n){const t=n.flush(e);zo(t)?t.then((t=>{this.handleFlushResult(t,e)})).catch((t=>{this.transmuxerError(t,e,"transmuxer-interface flush error")})):this.handleFlushResult(t,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach((e=>{this.handleTransmuxComplete(e)})),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):n&&n.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}class Ko extends ue{constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const i=null==t?void 0:t.renditionReports;if(i){let r=-1;for(let n=0;n=0&&e>t.partTarget&&(a+=1)}const s=n&&Rt(n);return new Ot(o,a>=0?a:void 0,s)}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(e){this.warn(`Could not construct new URL with HLS Delivery Directives: ${e}`)}return e}playlistLoaded(e,t,n){const{details:i,stats:r}=t,o=self.performance.now(),a=r.loading.first?Math.max(0,o-r.loading.first):0;i.advancedDateTime=Date.now()-a;const s=this.hls.config.timelineOffset;if(s!==i.appliedTimelineOffset){const e=Math.max(s||0,0);i.appliedTimelineOffset=e,i.fragments.forEach((t=>{t.start=t.playlistOffset+e}))}if(i.live||null!=n&&n.live){const s="levelInfo"in t?t.levelInfo:t.track;if(i.reloaded(n),n&&i.fragments.length>0){Fi(n,i);const e=i.playlistParsingError;if(e){this.warn(e);const n=this.hls;if(!n.config.ignorePlaylistParsingErrors){var l;const{networkDetails:o}=t;return void n.trigger(Y.ERROR,{type:W.NETWORK_ERROR,details:q.LEVEL_PARSING_ERROR,fatal:!1,url:i.url,error:e,reason:e.message,level:t.level||void 0,parent:null==(l=i.fragments[0])?void 0:l.type,networkDetails:o,stats:r})}i.playlistParsingError=null}}-1===i.requestScheduled&&(i.requestScheduled=r.loading.start);const c=this.hls.mainForwardBufferInfo,u=c?c.end-c.len:0,h=Hi(i,1e3*(i.edge-u));if(i.requestScheduled+h0){if(h>3*i.targetduration)this.log(`Playlist last advanced ${u.toFixed(2)}s ago. Omitting segment and part directives.`),p=void 0,f=void 0;else if(null!=n&&n.tuneInGoal&&h-i.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${g} with playlist age: ${i.age}`),g=0;else{const e=Math.floor(g/i.targetduration);if(p+=e,void 0!==f){f+=Math.round(g%i.targetduration/i.partTarget)}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${u.toFixed(2)}s goal: ${g} skip sn ${e} to part ${f}`)}i.tuneInGoal=g}if(d=this.getDeliveryDirectives(i,t.deliveryDirectives,p,f),e||!c)return i.requestScheduled=o,void this.loadingPlaylist(s,d)}else(i.canBlockReload||i.canSkipUntil)&&(d=this.getDeliveryDirectives(i,t.deliveryDirectives,p,f));d&&void 0!==p&&i.canBlockReload&&(i.requestScheduled=r.loading.first+Math.max(h-2*a,h/2)),this.scheduleLoading(s,d,i)}else this.clearTimer()}scheduleLoading(e,t,n){const i=n||e.details;if(!i)return void this.loadingPlaylist(e,t);const r=self.performance.now(),o=i.requestScheduled;if(r>=o)return void this.loadingPlaylist(e,t);const a=o-r;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(a)} ms`),this.clearTimer(),this.timer=self.setTimeout((()=>this.loadingPlaylist(e,t)),a)}getDeliveryDirectives(e,t,n,i){let r=Rt(e);return null!=t&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,i=t.part,r=Nt),new Ot(n,i,r)}checkRetry(e){const t=e.details,n=tn(e),i=e.errorAction,{action:r,retryCount:o=0,retryConfig:a}=i||{},s=!!i&&!!a&&(r===un||!i.resolved&&r===ln);if(s){var l;if(o>=a.maxNumRetry)return!1;if(n&&null!=(l=e.context)&&l.deliveryDirectives)this.warn(`Retrying playlist loading ${o+1}/${a.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const e=rn(a,o);this.clearTimer(),this.timer=self.setTimeout((()=>this.loadPlaylist()),e),this.warn(`Retrying playlist loading ${o+1}/${a.maxNumRetry} after "${t}" in ${e}ms`)}e.levelRetry=!0,i.resolved=!0}return s}}function Go(e,t){if(e.length!==t.length)return!1;for(let n=0;ne[n]!==t[n]))}function Vo(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class Wo{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,n){if(null===this.queues||null===this.tracks)return;const i=this.queues[t];i.push(e),1!==i.length||n||this.executeNext(t)}appendBlocker(e){return new Promise((t=>{const n={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(n,e)}))}prependBlocker(e){return new Promise((t=>{if(this.queues){const n={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(n)}}))}removeBlockers(){null!==this.queues&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach((e=>{var t;const n=null==(t=e[0])?void 0:t.label;"async-blocker"!==n&&"async-blocker-prepend"!==n||(e[0].execute(),e.splice(0,1))}))}unblockAudio(e){if(null===this.queues)return;this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio")}executeNext(e){if(null===this.queues||null===this.tracks)return;const t=this.queues[e];if(t.length){const i=t[0];try{i.execute()}catch(t){var n;if(i.onError(t),null===this.queues||null===this.tracks)return;const r=null==(n=this.tracks[e])?void 0:n.buffer;null!=r&&r.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){null!==this.queues&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return(null==(t=this.queues)?void 0:t[e][0])||null}toString(){const{queues:e,tracks:t}=this;return null===e||null===t?"":`\n${this.list("video")}\n${this.list("audio")}\n${this.list("audiovideo")}}`}list(e){var t,n;return null!=(t=this.queues)&&t[e]||null!=(n=this.tracks)&&n[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const n=null==(t=this.tracks)?void 0:t[e],i=null==n?void 0:n.buffer;return i?`SourceBuffer${i.updating?" updating":""}${n.ended?" ended":""}${n.ending?" ending":""}`:"none"}listOps(e){var t;return(null==(t=this.queues)?void 0:t[e].map((e=>e.label)).join(", "))||""}}const qo=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,Yo="HlsJsTrackRemovedError";class Xo extends Error{constructor(e){super(e),this.name=Yo}}function Qo(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach((t=>{e.removeChild(t)}))}function Jo(e){return"audio"===e?1:0}class ea{constructor(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:e}=this;e.on(Y.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(Y.BUFFER_CODECS,this.onBufferCodecs,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(Y.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(Y.BUFFER_CODECS,this.onBufferCodecs,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const n=this.hls.levels[t.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){const n=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,n.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&G(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0)return void(this.clientRect=null);const e=this.hls.levels;if(e.length){const t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const n=t.filter(((t,n)=>this.isLevelAllowed(t)&&n<=e));return this.clientRect=null,ea.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,t.width||t.height||(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(e){}return Math.min(e,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(e){return!this.restrictedLevels.some((t=>e.bitrate===t.bitrate&&e.width===t.width&&e.height===t.height))}static getMaxLevelByMediaSize(e,t,n){if(null==e||!e.length)return-1;let i=e.length-1;const r=Math.max(t,n);for(let t=0;t=r||n.height>=r)&&(o=n,!(a=e[t+1])||o.width!==a.width||o.height!==a.height)){i=t;break}}var o,a;return i}}const ta={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},na={HLS:"h"},ia="CMCD-Request",ra={["CMCD-Object"]:["br","d","ot","tb"],[ia]:["bl","dl","mtp","nor","nrr","su"],["CMCD-Session"]:["cid","pr","sf","sid","st","v"],["CMCD-Status"]:["bs","rtp"]};class oa{constructor(e,t){Array.isArray(e)&&(e=e.map((e=>e instanceof oa?e:new oa(e)))),this.value=e,this.params=t}}function aa(e,t,n,i){return new Error(`failed to ${e} "${r=t,Array.isArray(r)?JSON.stringify(r):r instanceof Map?"Map{}":r instanceof Set?"Set{}":"object"==typeof r?JSON.stringify(r):String(r)}" as ${n}`,{cause:i});var r}function sa(e,t,n){return aa("serialize",e,t,n)}class la{constructor(e){this.description=e}}const ca="Bare Item";function ua(e){if(!1===ArrayBuffer.isView(e))throw sa(e,"Byte Sequence");return`:${t=e,btoa(String.fromCharCode(...t))}:`;var t}function ha(e){if(function(e){return e<-999999999999999||99999999999999912)throw sa(e,"Decimal");const n=t.toString();return n.includes(".")?n:`${n}.0`}const fa=/[\x00-\x1f\x7f]+/;function ga(e){const t=(n=e).description||n.toString().slice(7,-1);var n;if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t))throw sa(t,"Token");return t}function ma(e){switch(typeof e){case"number":if(!G(e))throw sa(e,ca);return Number.isInteger(e)?ha(e):pa(e);case"string":return function(e){if(fa.test(e))throw sa(e,"String");return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}(e);case"symbol":return ga(e);case"boolean":return function(e){if("boolean"!=typeof e)throw sa(e,"Boolean");return e?"?1":"?0"}(e);case"object":if(e instanceof Date)return function(e){return`@${ha(e.getTime()/1e3)}`}(e);if(e instanceof Uint8Array)return ua(e);if(e instanceof la)return ga(e);default:throw sa(e,ca)}}function va(e){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(e))throw sa(e,"Key");return e}function ya(e){return null==e?"":Object.entries(e).map((([e,t])=>!0===t?`;${va(e)}`:`;${va(e)}=${ma(t)}`)).join("")}function ba(e){return e instanceof oa?`${ma(e.value)}${ya(e.params)}`:ma(e)}function wa(e,t={whitespace:!0}){if("object"!=typeof e)throw sa(e,"Dict");const n=e instanceof Map?e.entries():Object.entries(e),i=(null==t?void 0:t.whitespace)?" ":"";return Array.from(n).map((([e,t])=>{t instanceof oa==!1&&(t=new oa(t));let n=va(e);var i;return!0===t.value?n+=ya(t.params):(n+="=",Array.isArray(t.value)?n+=`(${(i=t).value.map(ba).join(" ")})${ya(i.params)}`:n+=ba(t)),n})).join(`,${i}`)}const xa=e=>Math.round(e),Sa=e=>100*xa(e/100),ka={br:xa,d:xa,bl:Sa,dl:Sa,mtp:Sa,nor:(e,t)=>((null==t?void 0:t.baseUrl)&&(e=function(e,t){const n=new URL(e),i=new URL(t);if(n.origin!==i.origin)return e;const r=n.pathname.split("/").slice(1),o=i.pathname.split("/").slice(1,-1);for(;r[0]===o[0];)r.shift(),o.shift();for(;o.length;)o.shift(),r.unshift("..");return r.join("/")}(e,t.baseUrl)),encodeURIComponent(e)),rtp:Sa,tb:xa};function _a(e,t){const n={};if(null==e||"object"!=typeof e)return n;const i=Object.keys(e).sort(),r=se({},ka,null==t?void 0:t.formatters),o=null==t?void 0:t.filter;return i.forEach((i=>{if(null==o?void 0:o(i))return;let a=e[i];const s=r[i];s&&(a=s(a,t)),"v"===i&&1===a||"pr"==i&&1===a||function(e){return"number"==typeof e?G(e):null!=e&&""!==e&&!1!==e}(a)&&(function(e){return"ot"===e||"sf"===e||"st"===e}(i)&&"string"==typeof a&&(a=new la(a)),n[i]=a)})),n}function Ca(e,t={}){return e?function(e,t){return wa(e,t)}(_a(e,t),se({whitespace:!1},t)):""}function Pa(e,t,n){return se(e,function(e,t={}){const n={};if(!e)return n;const i=Object.entries(e),r=Object.entries(ra).concat(Object.entries((null==t?void 0:t.customHeaderMap)||{})),o=i.reduce(((e,t)=>{var n,i;const[o,a]=t,s=(null===(n=r.find((e=>e[1].includes(o))))||void 0===n?void 0:n[0])||ia;return null!==(i=e[s])&&void 0!==i||(e[s]={}),e[s][o]=a,e}),{});return Object.entries(o).reduce(((e,[n,i])=>(e[n]=Ca(i,t),e)),n)}(t,n))}const Ea=/CMCD=[^&#]+/;function Ma(e,t,n){const i=function(e,t={}){if(!e)return"";const n=Ca(e,t);return`CMCD=${encodeURIComponent(n)}`}(t,n);if(!i)return e;if(Ea.test(e))return e.replace(Ea,i);const r=e.includes("?")?"&":"?";return`${e}${r}${i}`}function La(e,t,n,i){e&&Object.keys(t).forEach((r=>{const o=e.filter((e=>e.groupId===r)).map((e=>{const o=se({},e);return o.details=void 0,o.attrs=new Gn(o.attrs),o.url=o.attrs.URI=Aa(e.url,e.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),o.groupId=o.attrs["GROUP-ID"]=t[r],o.attrs["PATHWAY-ID"]=i,o}));e.push(...o)}))}function Aa(e,t,n,i){const{HOST:r,PARAMS:o,[n]:a}=i;let s;t&&(s=null==a?void 0:a[t],s&&(e=s));const l=new self.URL(e);return r&&!s&&(l.host=r),o&&Object.keys(o).sort().forEach((e=>{e&&l.searchParams.set(e,o[e])})),l.href}function Ta(e,t,n){Da(e,t,n),e.addEventListener(t,n)}function Da(e,t,n){e.removeEventListener(t,n)}class Na extends ue{constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.mediaKeys=null,this.setMediaKeysQueue=Na.CDMCleanupPromise?[Na.CDMCleanupPromise]:[],this.onMediaEncrypted=e=>{const{initDataType:t,initData:n}=e,i=`"${e.type}" event: init data type: "${t}"`;if(this.debug(i),null!==n){if(!this.keyFormatPromise){let e=Object.keys(this.keySystemAccessPromises);e.length||(e=pi(this.config));const t=e.map(di).filter((e=>!!e));this.keyFormatPromise=this.getKeyFormatPromise(t)}this.keyFormatPromise.then((r=>{const o=ai(r);let a,s;if("sinf"===t){if(o!==ti.FAIRPLAY)return void this.warn(`Ignoring unexpected "${e.type}" event with init data type: "${t}" for selected key-system ${o}`);const r=He(new Uint8Array(n));try{const e=nt(Xn(JSON.parse(r).sinf));if(!e)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");a=new Uint8Array(e.subarray(8,24)),s=ti.FAIRPLAY}catch(e){return void this.warn(`${i} Failed to parse sinf: ${e}`)}}else{if(o!==ti.WIDEVINE&&o!==ti.PLAYREADY)return void this.warn(`Ignoring unexpected "${e.type}" event with init data type: "${t}" for selected key-system ${o}`);const r=function(e){const t=[];if(e instanceof ArrayBuffer){const n=e.byteLength;let i=0;for(;i+32!!e.systemId&&hi(e.systemId)===o));l.length>1&&this.warn(`${i} Using first of ${l.length} pssh found for selected key-system ${o}`);const c=l[0];if(!c)return void(0===r.length||r.some((e=>!e.systemId))?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${r.map((e=>hi(e.systemId))).join(",")} pssh data in favor of playlist keys`));if(s=hi(c.systemId),0===c.version&&c.data)if(s===ti.WIDEVINE){const e=c.data.length-22;a=new Uint8Array(c.data.subarray(e,e+16))}else s===ti.PLAYREADY&&(a=mi(c.data))}if(!s||!a)return;const l=we(a),{keyIdToKeySessionPromise:c,mediaKeySessions:u}=this;let h=c[l];for(let e=0;ethis.generateRequestWithPreferredKeySession(i,t,n,"encrypted-event-key-match"))),h.catch((e=>this.handleError(e)));break}}if(!h){if(s!==o)return void this.log(`Ignoring "${e.type}" event with ${s} init data for selected key-system ${o}`);h=c[l]=this.getKeySystemSelectionPromise([s]).then((({keySystem:e,mediaKeys:i})=>{var r;this.throwIfDestroyed();const o=new yi("ISO-23001-7",l,null!=(r=di(e))?r:"");return o.pssh=new Uint8Array(n),o.keyId=a,this.attemptSetMediaKeys(e,i).then((()=>{this.throwIfDestroyed();const r=this.createMediaKeySessionContext({decryptdata:o,keySystem:e,mediaKeys:i});return this.generateRequestWithPreferredKeySession(r,t,n,"encrypted-event-no-match")}))})),h.catch((e=>this.handleError(e)))}}))}},this.onWaitingForKey=e=>{this.log(`"${e.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(Y.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(Y.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(Y.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(Y.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(Y.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(Y.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(Y.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(Y.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,i=t[e];return i?i.licenseUrl:e===ti.WIDEVINE&&n?n:void 0}getLicenseServerUrlOrThrow(e){const t=this.getLicenseServerUrl(e);if(void 0===t)throw new Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){const{drmSystems:t}=this.config,n=t[e];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,n=(e,t,n)=>!!e&&n.indexOf(e)===t,i=t.map((e=>e.audioCodec)).filter(n),r=t.map((e=>e.videoCodec)).filter(n);return i.length+r.length===0&&r.push("avc1.42e01e"),new Promise(((t,n)=>{const o=e=>{const a=e.shift();this.getMediaKeysPromise(a,i,r).then((e=>t({keySystem:a,mediaKeys:e}))).catch((t=>{e.length?o(e):n(t instanceof Ia?t:new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_NO_ACCESS,error:t,fatal:!0},t.message))}))};o(e)}))}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if("function"!=typeof n){let e=`Configured requestMediaKeySystemAccess is not a function ${n}`;return null===fi&&"http:"===self.location.protocol&&(e=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(e))}return n(e,t)}getMediaKeysPromise(e,t,n){const i=function(e,t,n,i){let r;switch(e){case ti.FAIRPLAY:r=["cenc","sinf"];break;case ti.WIDEVINE:case ti.PLAYREADY:r=["cenc"];break;case ti.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return function(e,t,n,i){return[{initDataTypes:e,persistentState:i.persistentState||"optional",distinctiveIdentifier:i.distinctiveIdentifier||"optional",sessionTypes:i.sessionTypes||[i.sessionType||"temporary"],audioCapabilities:t.map((e=>({contentType:`audio/mp4; codecs=${e}`,robustness:i.audioRobustness||"",encryptionScheme:i.audioEncryptionScheme||null}))),videoCapabilities:n.map((e=>({contentType:`video/mp4; codecs=${e}`,robustness:i.videoRobustness||"",encryptionScheme:i.videoEncryptionScheme||null})))}]}(r,t,n,i)}(e,t,n,this.config.drmSystemOptions),r=this.keySystemAccessPromises[e];let o=null==r?void 0:r.keySystemAccess;if(!o){this.log(`Requesting encrypted media "${e}" key-system access with config: ${$t(i)}`),o=this.requestMediaKeySystemAccess(e,i);const t=this.keySystemAccessPromises[e]={keySystemAccess:o};return o.catch((t=>{this.log(`Failed to obtain access to key-system "${e}": ${t}`)})),o.then((n=>{this.log(`Access for key-system "${n.keySystem}" obtained`);const i=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),t.mediaKeys=n.createMediaKeys().then((n=>(this.log(`Media-keys created for "${e}"`),t.hasMediaKeys=!0,i.then((t=>t?this.setMediaKeysServerCertificate(n,e,t):n))))),t.mediaKeys.catch((t=>{this.error(`Failed to create media-keys for "${e}"}: ${t}`)})),t.mediaKeys}))}return o.then((()=>r.mediaKeys))}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${we(e.keyId||[])}`);const i=n.createSession(),r={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(r),r}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),i=this.getKeyIdString(t),r="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(n,r,t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(null===e.keyId)throw new Error("keyId is null");return we(e.keyId)}updateKeySession(e,t){var n;const i=e.mediaKeysSession;return this.log(`Updating key-session "${i.sessionId}" for keyID ${we((null==(n=e.decryptdata)?void 0:n.keyId)||[])}\n } (data length: ${t?t.byteLength:t})`),i.update(t)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map((e=>({keySystem:e,hasMediaKeys:this.keySystemAccessPromises[e].hasMediaKeys}))).filter((({hasMediaKeys:e})=>!!e)).map((({keySystem:e})=>di(e))).filter((e=>!!e))}getKeySystemAccess(e){return this.getKeySystemSelectionPromise(e).then((({keySystem:e,mediaKeys:t})=>this.attemptSetMediaKeys(e,t)))}selectKeySystem(e){return new Promise(((t,n)=>this.getKeySystemSelectionPromise(e).then((({keySystem:e})=>{const i=di(e);i?t(i):n(new Error(`Unable to find format for key-system "${e}"`))})).catch(n)))}selectKeySystemFormat(e){const t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){const t=pi(this.config),n=e.map(ai).filter((e=>!!e&&-1!==t.indexOf(e)));return this.selectKeySystem(n)}loadKey(e){const t=e.keyInfo.decryptdata,n=this.getKeyIdString(t),i=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${i}`);let r=this.keyIdToKeySessionPromise[n];if(!r){r=this.getKeySystemForKeyPromise(t).then((({keySystem:n,mediaKeys:r})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${i}`),this.attemptSetMediaKeys(n,r).then((()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:n,mediaKeys:r,decryptdata:t})))))));(this.keyIdToKeySessionPromise[n]=r.then((e=>{const n=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(e,"cenc",n,"playlist-key")}))).catch((e=>this.handleError(e)))}return r}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof Ia?this.hls.trigger(Y.ERROR,e.data):this.hls.trigger(Y.ERROR,{type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){const t=ai(e.keyFormat),n=t?[t]:pi(this.config);return this.attemptKeySystemAccess(n)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=pi(this.config)),0===e.length)throw new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${$t({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){if(this.mediaKeys===t)return Promise.resolve();const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const i=Promise.all(n).then((()=>{if(!this.media)throw this.mediaKeys=null,new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)}));return this.mediaKeys=t,this.setMediaKeysQueue.push(i),i.then((()=>{this.log(`Media-keys set for "${e}"`),n.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter((e=>-1===n.indexOf(e)))}))}generateRequestWithPreferredKeySession(e,t,n,i){var r,o;const a=null==(r=this.config.drmSystems)||null==(o=r[e.keySystem])?void 0:o.generateRequest;if(a)try{const i=a.call(this.hls,t,n,e);if(!i)throw new Error("Invalid response from configured generateRequest filter");t=i.initDataType,n=i.initData?i.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(e){var s;if(this.warn(e.message),null!=(s=this.hls)&&s.config.debug)throw e}if(null===n)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(e);const l=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${i}": ${l} (init data type: ${t} length: ${n?n.byteLength:null})`);const c=new vr,u=e._onmessage=t=>{const n=e.mediaKeysSession;if(!n)return void c.emit("error",new Error("invalid state"));const{messageType:i,message:r}=t;this.log(`"${i}" message event for session "${n.sessionId}" message size: ${r.byteLength}`),"license-request"===i||"license-renewal"===i?this.renewLicense(e,r).catch((e=>{c.eventNames().length?c.emit("error",e):this.handleError(e)})):"license-release"===i?e.keySystem===ti.FAIRPLAY&&(this.updateKeySession(e,Qn("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${i}"`)},h=e._onkeystatuseschange=t=>{if(!e.mediaKeysSession)return void c.emit("error",new Error("invalid state"));this.onKeyStatusChange(e);const n=e.keyStatus;c.emit("keyStatus",n),"expired"===n&&(this.warn(`${e.keySystem} expired for key ${l}`),this.renewKeySession(e))};Ta(e.mediaKeysSession,"message",u),Ta(e.mediaKeysSession,"keystatuseschange",h);const d=new Promise(((e,t)=>{c.on("error",t),c.on("keyStatus",(n=>{n.startsWith("usable")?e():"output-restricted"===n?t(new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):"internal-error"===n?t(new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${n}"`)):"expired"===n?t(new Error("key expired while generating request")):this.warn(`unhandled key status change "${n}"`)}))}));return e.mediaKeysSession.generateRequest(t,n).then((()=>{var t;this.log(`Request generated for key-session "${null==(t=e.mediaKeysSession)?void 0:t.sessionId}" keyId: ${l}`)})).catch((e=>{throw new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_NO_SESSION,error:e,fatal:!1},`Error generating key-session request: ${e}`)})).then((()=>d)).catch((t=>{throw c.removeAllListeners(),this.removeSession(e),t})).then((()=>(c.removeAllListeners(),e)))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach(((t,n)=>{if("string"==typeof n&&"object"==typeof t){const e=n;n=t,t=e}this.log(`key status change "${t}" for keyStatuses keyId: ${we("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${we(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t}))}fetchServerCertificate(e){const t=this.config,n=new(0,t.loader)(t),i=this.getServerCertificateUrl(e);return i?(this.log(`Fetching server certificate for "${e}"`),new Promise(((r,o)=>{const a={responseType:"arraybuffer",url:i},s=t.certLoadPolicy.default,l={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(e,t,n,i)=>{r(e.data)},onError:(t,n,r,s)=>{o(new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:ce({url:a.url,data:void 0},t)},`"${e}" certificate request failed (${i}). Status: ${t.code} (${t.text})`))},onTimeout:(t,n,r)=>{o(new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:{url:a.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(e,t,n)=>{o(new Error("aborted"))}};n.load(a,l,c)}))):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise(((i,r)=>{e.setServerCertificate(n).then((r=>{this.log(`setServerCertificate ${r?"success":"not supported by CDM"} (${null==n?void 0:n.byteLength}) on "${t}"`),i(e)})).catch((e=>{r(new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:e,fatal:!0},e.message))}))}))}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then((t=>this.updateKeySession(e,new Uint8Array(t)).catch((e=>{throw new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:e,fatal:!0},e.message)}))))}unpackPlayReadyKeyMessage(e,t){const n=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const i=(new DOMParser).parseFromString(n,"application/xml"),r=i.querySelectorAll("HttpHeader");if(r.length>0){let t;for(let n=0,i=r.length;n in key message");return Qn(atob(l))}setupLicenseXHR(e,t,n,i){const r=this.config.licenseXhrSetup;return r?Promise.resolve().then((()=>{if(!n.decryptdata)throw new Error("Key removed");return r.call(this.hls,e,t,n,i)})).catch((o=>{if(!n.decryptdata)throw o;return e.open("POST",t,!0),r.call(this.hls,e,t,n,i)})).then((n=>{e.readyState||e.open("POST",t,!0);return{xhr:e,licenseChallenge:n||i}})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:i}))}requestLicense(e,t){const n=this.config.keyLoadPolicy.default;return new Promise(((i,r)=>{const o=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${o}`);const a=new XMLHttpRequest;a.responseType="arraybuffer",a.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return r(new Error("invalid state"));if(4===a.readyState)if(200===a.status){this._requestLicenseFailureCount=0;let t=a.response;this.log(`License received ${t instanceof ArrayBuffer?t.byteLength:t}`);const n=this.config.licenseResponseCallback;if(n)try{t=n.call(this.hls,a,o,e)}catch(e){this.error(e)}i(t)}else{const s=n.errorRetry,l=s?s.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>l||a.status>=400&&a.status<500)r(new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:a,response:{url:o,data:void 0,code:a.status,text:a.statusText}},`License Request XHR failed (${o}). Status: ${a.status} (${a.statusText})`));else{const n=l-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${n} attempts left`),this.requestLicense(e,t).then(i,r)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=a,this.setupLicenseXHR(a,o,e,t).then((({xhr:t,licenseChallenge:n})=>{e.keySystem==ti.PLAYREADY&&(n=this.unpackPlayReadyKeyMessage(t,n)),t.send(n)}))}))}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,Ta(n,"encrypted",this.onMediaEncrypted),Ta(n,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(Da(e,"encrypted",this.onMediaEncrypted),Da(e,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var e;if(this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},!this.mediaKeys&&!this.mediaKeySessions.length)return;const t=this.media,n=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,yi.clearKeyUriToKeyIdMap();const i=n.length;Na.CDMCleanupPromise=Promise.all(n.map((e=>this.removeSession(e))).concat(null==t||null==(e=t.setMediaKeys(null))?void 0:e.catch((e=>{var t;this.log(`Could not clear media keys: ${e}`),null==(t=this.hls)||t.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${e}`)})})))).catch((e=>{var t;this.log(`Could not close sessions and clear media keys: ${e}`),null==(t=this.hls)||t.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${e}`)})})).then((()=>{i&&this.log("finished closing key sessions and clearing media keys")}))}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(t&&this.config.emeEnabled&&!this.keyFormatPromise){const e=t.reduce(((e,t)=>(-1===e.indexOf(t.keyFormat)&&e.push(t.keyFormat),e)),[]);this.log(`Selecting key-system from session-keys ${e.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(e)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n}=e;if(t){this.log(`Remove licenses and keys and close session ${t.sessionId}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const i=this.mediaKeySessions.indexOf(e);i>-1&&this.mediaKeySessions.splice(i,1);const{drmSystemOptions:r}=this.config,o=function(e){var t;return"persistent-license"===e.sessionType||!(null==(t=e.sessionTypes)||!t.some((e=>"persistent-license"===e)))}(r)?new Promise(((e,n)=>{self.setTimeout((()=>n(new Error("MediaKeySession.remove() timeout"))),8e3),t.remove().then(e)})):Promise.resolve();return o.catch((e=>{var t;this.log(`Could not remove session: ${e}`),null==(t=this.hls)||t.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${e}`)})})).then((()=>t.close())).catch((e=>{var t;this.log(`Could not close session: ${e}`),null==(t=this.hls)||t.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${e}`)})}))}}}Na.CDMCleanupPromise=void 0;class Ia extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}function Ba(e,t){let n;try{n=new Event("addtrack")}catch(e){n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=e,t.dispatchEvent(n)}function Ra(e,t){const n=e.mode;if("disabled"===n&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error(`addCue is failed for: ${t}`)}catch(n){me.debug(`[texttrack-utils]: ${n}`);try{const n=new self.TextTrackCue(t.startTime,t.endTime,t.text);n.id=t.id,e.addCue(n)}catch(e){me.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${e}`)}}"disabled"===n&&(e.mode=n)}function Oa(e,t){const n=e.mode;if("disabled"===n&&(e.mode="hidden"),e.cues)for(let n=e.cues.length;n--;)t&&e.cues[n].removeEventListener("enter",t),e.removeCue(e.cues[n]);"disabled"===n&&(e.mode=n)}function Fa(e,t,n,i){const r=e.mode;if("disabled"===r&&(e.mode="hidden"),e.cues&&e.cues.length>0){const r=function(e,t,n){const i=[],r=function(e,t){if(t<=e[0].startTime)return 0;const n=e.length-1;if(t>e[n].endTime)return-1;let i,r=0,o=n;for(;r<=o;)if(i=Math.floor((o+r)/2),te[i].startTime&&r-1)for(let o=r,a=e.length;o=t&&r.endTime<=n)i.push(r);else if(r.startTime>n)return i}return i}(e.cues,t,n);for(let t=0;t>>0).toString()}const $a=.025;let Ha=function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e}({});function Za(e,t,n){return`${e.identifier}-${n+1}-${ja(t)}`}class Ka{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,null==(e=this.assetListLoader)||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){var t;if(e>0&&e>=this.assetList.length)return!0;const n=this.playoutLimit;if(e<=0||isNaN(n))return!1;if(0===n)return!0;return((null==(t=this.assetList[e])?void 0:t.startOffset)||0)>n}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const e=this.dateRange.startTime;if(this.snapOptions.out){const t=this.dateRange.tagAnchor;if(t)return Ga(e,t)}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(0===this.startTime||this.snapOptions.out)return!0;const e=this.dateRange.tagAnchor;if(e){const t=this.dateRange.startTime;return t-Ga(t,e)<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=G(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){const e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const t=this.resumeAnchor;if(t)return Ga(e,t)}return e}get appendInPlace(){return!!this.appendInPlaceStarted||!this.appendInPlaceDisabled&&!(this.cue.once||this.cue.pre||!this.startIsAligned||!(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<$a))}set appendInPlace(e){this.appendInPlaceStarted?this.resetOnResume=!e:this.appendInPlaceDisabled=!e}get timelineStart(){return null!==this._timelineStart?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){const e=this.playoutLimit;let t;return t=null!==this._duration?this._duration:this.dateRange.duration?this.dateRange.duration:this.dateRange.plannedDuration||0,!isNaN(e)&&e0||null!==this.assetListResponse}toString(){return`["${(e=this).identifier}" ${e.cue.pre?"
":e.cue.post?"":""}${e.timelineStart.toFixed(2)}-${e.resumeTime.toFixed(2)}]`;var e}}function Ga(e,t){return e-t.start{this.reachedPlayout(this.currentTime)&&this.hls.trigger(Y.PLAYOUT_LIMIT_REACHED,{})};const r=this.hls=new e(t);this.interstitial=n,this.assetItem=i;let o=i.uri;try{o=Ua(o,t.primarySessionId).href}catch(e){}r.loadSource(o);const a=()=>{this.hasDetails=!0};r.once(Y.LEVEL_LOADED,a),r.once(Y.AUDIO_TRACK_LOADED,a),r.once(Y.SUBTITLE_TRACK_LOADED,a),r.on(Y.MEDIA_ATTACHING,((e,{media:t})=>{this.removeMediaListeners(),this.mediaAttached=t;this.interstitial.playoutLimit&&(t.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&r.on(Y.BUFFER_APPENDED,(()=>{const e=this.bufferedEnd;this.reachedPlayout(e)&&(this._bufferedEosTime=e,r.trigger(Y.BUFFERED_TO_END,void 0))})))}))}get appendInPlace(){var e;return(null==(e=this.interstitial)?void 0:e.appendInPlace)||!1}bufferedInPlaceToEnd(e){var t;if(!this.appendInPlace)return!1;if(null!=(t=this.hls)&&t.bufferedToEnd)return!0;if(!e||!this._bufferedEosTime)return!1;const n=this.timelineOffset,i=On.bufferInfo(e,n,0);return this.getAssetTime(i.end)>=this._bufferedEosTime-.02}reachedPlayout(e){const t=this.interstitial.playoutLimit;return this.startOffset+e>=t}get destroyed(){var e;return!(null!=(e=this.hls)&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return(null==(e=this.hls)?void 0:e.media)||null}get bufferedEnd(){const e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const t=On.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){const e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){const e=this.assetItem.duration;return e||0}get remaining(){const e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return(null==(e=this.hls)?void 0:e.config.timelineOffset)||0}set timelineOffset(e){const t=this.timelineOffset;if(e!==t){const n=e-t;if(Math.abs(n)>1/9e4){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}}getAssetTime(e){const t=this.timelineOffset,n=this.duration;return Math.min(Math.max(0,e-t),n)}removeMediaListeners(){const e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){var e;this.mediaAttached&&(null!=(e=this.hls)&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd))}destroy(){this.removeMediaListeners(),this.hls.destroy(),this.hls=this.interstitial=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){this.hls.attachMedia(e)}detachMedia(){this.removeMediaListeners(),this.mediaAttached=null,this.hls.detachMedia()}resumeBuffering(){this.hls.resumeBuffering()}pauseBuffering(){this.hls.pauseBuffering()}transferMedia(){return this.bufferSnapShot(),this.hls.transferMedia()}resetDetails(){const e=this.hls;if(this.hasDetails){e.stopLoad();const t=e=>delete e.details;e.levels.forEach(t),e.allAudioTracks.forEach(t),e.allSubtitleTracks.forEach(t),this.hasDetails=!1}}on(e,t,n){this.hls.on(e,t)}once(e,t,n){this.hls.once(e,t)}off(e,t,n){this.hls.off(e,t)}toString(){var e;return`HlsAssetPlayer: ${Wa(this.assetItem)} ${null==(e=this.hls)?void 0:e.sessionId} ${this.appendInPlace?"append-in-place":""}`}}class Ya extends ue{constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach((e=>e.reset())),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce(((n,i)=>e<=i.startOffset&&t>i.startOffset?(delete i.error,n+1):n),0):0}get duration(){const e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let n=-1;e.nextEvent?n=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(n=this.findEventIndex(e.previousEvent.identifier)+1);const i=this.items;if(i)for(i[n]||(void 0===t&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&null!=(r=i[n])&&r.event;){var r;n--}return n}findItemIndexAtTime(e,t){const n=this.items;if(n)for(let i=0;ir.start&&e1)for(let e=0;en&&t!a.includes(e.identifier))):[];o.length&&o.sort(((e,t)=>{const n=e.cue.pre,i=e.cue.post,r=t.cue.pre,o=t.cue.post;if(n&&!r)return-1;if(r&&!n)return 1;if(i&&!o)return 1;if(o&&!i)return-1;if(!(n||r||i||o)){const n=e.startTime,i=t.startTime;if(n!==i)return n-i}return e.dateRange.tagOrder-t.dateRange.tagOrder})),this.events=o,s.forEach((e=>{this.removeEvent(e)})),this.updateSchedule(e,s)}updateSchedule(e,t=[]){const n=this.events||[];if(n.length||t.length||this.length<2){const i=this.items,r=this.parseSchedule(n,e),o=t.length||(null==i?void 0:i.length)!==r.length||r.some(((e,t)=>Math.abs(e.playout.start-i[t].playout.start)>.005||Math.abs(e.playout.end-i[t].playout.end)>.005));o&&(this.items=r,this.onScheduleUpdate(t,i))}}parseDateRanges(e,t,n){const i=[],r=Object.keys(e);for(let o=0;o!(e.error||e.cue.once&&e.hasPlayed)))).length){this.resolveOffsets(e,t);let i=0,s=0;if(e.forEach(((t,a)=>{const l=t.cue.pre,c=t.cue.post,u=e[a-1]||null,h=t.appendInPlace,d=c?r:t.startOffset,p=t.duration,f=t.timelineOccupancy===Ha.Range?p:0,g=t.resumptionOffset,m=(null==u?void 0:u.startTime)===d,v=d+t.cumulativeDuration;let y=h?v+p:d+g;if(l||!c&&d<=0){const e=s;s+=f,t.timelineStart=v;const i=o;o+=p,n.push({event:t,start:v,end:y,playout:{start:i,end:o},integrated:{start:e,end:s}})}else{if(!(d<=r))return;{if(!m){const r=d-i;if(r>.033){const l=i,c=s;s+=r;const u=o;o+=r;const h={previousEvent:e[a-1]||null,nextEvent:t,start:l,end:l+r,playout:{start:u,end:o},integrated:{start:c,end:s}};n.push(h)}else r>0&&u&&(u.cumulativeDuration+=r,n[n.length-1].end=d)}c&&(y=v),t.timelineStart=v;const r=s;s+=f;const l=o;o+=p,n.push({event:t,start:v,end:y,playout:{start:l,end:o},integrated:{start:r,end:s}})}}const b=t.resumeTime;i=c||b>r?r:b})),i{const l=a.cue.pre,c=a.cue.post,u=l?0:c?i:a.startTime;this.updateAssetDurations(a);if(o===u?a.cumulativeDuration=r:(r=0,o=u),!c&&a.snapOptions.in&&(a.resumeAnchor=Xt(null,n.fragments,a.startOffset+a.resumptionOffset,0,0)||void 0),a.appendInPlace&&!a.appendInPlaceStarted){this.primaryCanResumeInPlaceAt(a,t)||(a.appendInPlace=!1)}if(!a.appendInPlace&&s+1$a)return this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${i}`),!1;if(!t)return this.log(`"${e.identifier}" resumption ${n} can not be aligned with media (none selected)`),!1;return!Object.keys(t).some((i=>{const r=t[i].details,o=r.edge;if(n>=o)return this.log(`"${e.identifier}" resumption ${n} past ${i} playlist end ${o}`),!1;const a=Xt(null,r.fragments,n);if(!a)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${i} playlist (${r.fragStart}-${r.fragmentEnd})`),!0;const s="audio"===i?.175:0;return!(Math.abs(a.start-n)<$a+s||Math.abs(a.end-n)<$a+s)&&(this.log(`"${e.identifier}" resumption ${n} not aligned with ${i} fragment bounds (${a.start}-${a.end} sn: ${a.sn} cc: ${a.cc})`),!0)}))}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,i=!1,r=!1;e.assetList.forEach(((e,o)=>{const a=t+n;e.startOffset=n,e.timelineStart=a,i||(i=null===e.duration),r||(r=!!e.error);const s=e.error?0:e.duration||0;n+=s})),e.duration=i&&!r?Math.max(n,e.duration):n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function Xa(e){return`[${e.event?'"'+e.event.identifier+'"':"primary"}: ${e.start.toFixed(2)}-${e.end.toFixed(2)}]`}class Qa{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let i;try{i=Ua(n,this.hls.sessionId,e.baseUrl)}catch(t){const i=this.assignAssetListError(e,q.ASSET_LIST_LOAD_ERROR,t,n);return void this.hls.trigger(Y.ERROR,i)}t&&"data:"!==i.protocol&&i.searchParams.set("_HLS_start_offset",""+t);const r=this.hls.config,o=new(0,r.loader)(r),a={responseType:"json",url:i.href},s=r.interstitialAssetListLoadPolicy.default,l={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(t,n,i,r)=>{const o=t.data,a=null==o?void 0:o.ASSETS;if(Array.isArray(a))e.assetListResponse=o,this.hls.trigger(Y.ASSET_LIST_LOADED,{event:e,assetListResponse:o,networkDetails:r});else{const t=this.assignAssetListError(e,q.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),i.url,n,r);this.hls.trigger(Y.ERROR,t)}},onError:(t,n,i,r)=>{const o=this.assignAssetListError(e,q.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${t.code} ${t.text} (${n.url})`),n.url,r,i);this.hls.trigger(Y.ERROR,o)},onTimeout:(t,n,i)=>{const r=this.assignAssetListError(e,q.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${n.url})`),n.url,t,i);this.hls.trigger(Y.ERROR,r)}};return o.load(a,l,c),this.hls.trigger(Y.ASSET_LIST_LOADING,{event:e}),o}assignAssetListError(e,t,n,i,r,o){return e.error=n,{type:W.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:i,error:n,networkDetails:o,stats:r}}}function Ja(e){null==e||e.play().catch((()=>{}))}class es{constructor(e){this.buffered=void 0;const t=(t,n,i)=>{if((n>>>=0)>i-1)throw new DOMException(`Failed to execute '${t}' on 'TimeRanges': The index provided (${n}) is greater than the maximum bound (${i})`);return e[n][t]};this.buffered={get length(){return e.length},end(n){return t("end",n,e.length)},start(n){return t("start",n,e.length)}}}}const ts={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},ns=e=>String.fromCharCode(ts[e]||e),is=15,rs=100,os={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},as={17:2,18:4,21:6,22:8,23:10,19:13,20:15},ss={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},ls={25:2,26:4,29:6,30:8,31:10,27:13,28:15},cs=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class us{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n="function"==typeof t?t():t;me.log(`${this.time} [${e}] ${n}`)}}}const hs=function(e){const t=[];for(let n=0;nrs&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=rs)}moveCursor(e){const t=this.pos+e;if(e>1)for(let e=this.pos+1;e=144&&this.backSpace();const t=ns(e);this.pos>=rs?this.logger.log(0,(()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!")):(this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1))}clearFromPos(e){let t;for(t=e;t"pacData = "+$t(e)));let t=e.row-1;if(this.nrRollUpRows&&t"bkgData = "+$t(e))),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(null===this.nrRollUpRows)return void this.logger.log(3,"roll_up but nrRollUpRows not set yet");this.logger.log(1,(()=>this.getDisplayText()));const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let n="",i=-1;for(let n=0;n0&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n}getTextAndFormat(){return this.rows}}class ms{constructor(e,t,n){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new gs(n),this.nonDisplayedMemory=new gs(n),this.lastOutputScreen=new gs(n),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,(()=>"MODE="+e)),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let t=0;tt+": "+this.writeScreen.getDisplayText(!0))),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(1,(()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0))),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,(()=>"DISP: "+this.displayedMemory.getDisplayText()))}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2==1,t.italics=e>=46,t.italics)t.foreground="white";else{const n=Math.floor(e/2)-16,i=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=i[n]}this.logger.log(2,"MIDROW: "+$t(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;null!==t&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class vs{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0;const i=this.logger=new us;this.channels=[null,new ms(e,t,i),new ms(e+1,n,i)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let e=0;e"["+hs([t[e],t[e+1]])+"] -> ("+hs([n,i])+")"));const a=this.cmdHistory;if(n>=16&&n<=31){if(bs(n,i,a)){ys(null,null,a),this.logger.log(3,(()=>"Repeated command ("+hs([n,i])+") is dropped"));continue}ys(n,i,this.cmdHistory),r=this.parseCmd(n,i),r||(r=this.parseMidrow(n,i)),r||(r=this.parsePAC(n,i)),r||(r=this.parseBackgroundAttributes(n,i))}else ys(null,null,a);if(!r&&(o=this.parseChars(n,i),o)){const e=this.currentChannel;if(e&&e>0){this.channels[e].insertChars(o)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}r||o||this.logger.log(2,(()=>"Couldn't parse cleaned data "+hs([n,i])+" orig: "+hs([t[e],t[e+1]])))}}parseCmd(e,t){if(!((20===e||28===e||21===e||29===e)&&t>=32&&t<=47)&&!((23===e||31===e)&&t>=33&&t<=35))return!1;const n=20===e||21===e||23===e?1:2,i=this.channels[n];return 20===e||21===e||28===e||29===e?32===t?i.ccRCL():33===t?i.ccBS():34===t?i.ccAOF():35===t?i.ccAON():36===t?i.ccDER():37===t?i.ccRU(2):38===t?i.ccRU(3):39===t?i.ccRU(4):40===t?i.ccFON():41===t?i.ccRDC():42===t?i.ccTR():43===t?i.ccRTD():44===t?i.ccEDM():45===t?i.ccCR():46===t?i.ccENM():47===t&&i.ccEOC():i.ccTO(t-32),this.currentChannel=n,!0}parseMidrow(e,t){let n=0;if((17===e||25===e)&&t>=32&&t<=47){if(n=17===e?1:2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const i=this.channels[n];return!!i&&(i.ccMIDROW(t),this.logger.log(3,(()=>"MIDROW ("+hs([e,t])+")")),!0)}return!1}parsePAC(e,t){let n;if(!((e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127)&&!((16===e||24===e)&&t>=64&&t<=95))return!1;const i=e<=23?1:2;n=t>=64&&t<=95?1===i?os[e]:ss[e]:1===i?as[e]:ls[e];const r=this.channels[i];return!!r&&(r.setPAC(this.interpretPAC(n,t)),this.currentChannel=i,!0)}interpretPAC(e,t){let n;const i={color:null,italics:!1,indent:null,underline:!1,row:e};return n=t>95?t-96:t-64,i.underline=1==(1&n),n<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(i.italics=!0,i.color="white"):i.indent=4*Math.floor((n-16)/2),i}parseChars(e,t){let n,i=null,r=null;if(e>=25?(n=2,r=e-8):(n=1,r=e),r>=17&&r<=19){let e;e=17===r?t+80:18===r?t+112:t+144,this.logger.log(2,(()=>"Special char '"+ns(e)+"' in channel "+n)),i=[e]}else e>=32&&e<=127&&(i=0===t?[e]:[e,t]);return i&&this.logger.log(3,(()=>"Char codes =  "+hs(i).join(","))),i}parseBackgroundAttributes(e,t){if(!((16===e||24===e)&&t>=32&&t<=47)&&!((23===e||31===e)&&t>=45&&t<=47))return!1;let n;const i={};16===e||24===e?(n=Math.floor((t-32)/2),i.background=cs[n],t%2==1&&(i.background=i.background+"_semi")):45===t?i.background="transparent":(i.foreground="black",47===t&&(i.underline=!0));const r=e<=23?1:2;return this.channels[r].setBkgData(i),!0}reset(){for(let e=0;e100)throw new Error("Position must be between 0 and 100.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",r({},l,{get:function(){return w},set:function(e){const t=i(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");w=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",r({},l,{get:function(){return x},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");x=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",r({},l,{get:function(){return S},set:function(e){const t=i(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");S=t,this.hasBeenReset=!0}})),s.displayState=void 0}return o.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},o}();class xs{decode(e,t){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function Ss(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+parseFloat(i||0)}const n=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?t(n[2],n[3],0,n[4]):t(n[1],n[2],n[3],n[4]):null}class ks{constructor(){this.values=Object.create(null)}set(e,t){this.get(e)||""===t||(this.values[e]=t)}get(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,n){for(let i=0;i=0&&n<=100)return this.set(e,n),!0}return!1}}function _s(e,t,n,i){const r=i?e.split(i):[e];for(const e in r){if("string"!=typeof r[e])continue;const i=r[e].split(n);if(2!==i.length)continue;t(i[0],i[1])}}const Cs=new ws(0,0,""),Ps="middle"===Cs.align?"middle":"center";function Es(e,t,n){const i=e;function r(){const t=Ss(e);if(null===t)throw new Error("Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function o(){e=e.replace(/^\s+/,"")}if(o(),t.startTime=r(),o(),"--\x3e"!==e.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);e=e.slice(3),o(),t.endTime=r(),o(),function(e,t){const i=new ks;_s(e,(function(e,t){let r;switch(e){case"region":for(let r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":r=t.split(","),i.integer(e,r[0]),i.percent(e,r[0])&&i.set("snapToLines",!1),i.alt(e,r[0],["auto"]),2===r.length&&i.alt("lineAlign",r[1],["start",Ps,"end"]);break;case"position":r=t.split(","),i.percent(e,r[0]),2===r.length&&i.alt("positionAlign",r[1],["start",Ps,"end","line-left","line-right","auto"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start",Ps,"end","left","right"])}}),/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");let r=i.get("line","auto");"auto"===r&&-1===Cs.line&&(r=-1),t.line=r,t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100),t.align=i.get("align",Ps);let o=i.get("position","auto");"auto"===o&&50===Cs.position&&(o="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=o}(e,t)}function Ms(e){return e.replace(//gi,"\n")}class Ls{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new xs,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;function n(){let e=t.buffer,n=0;for(e=Ms(e);n0&&c.push(e)},s.onparsingerror=function(e){h=e},s.onflush=function(){h?a(h):o(c)},l.forEach((e=>{if(g){if(Ts(e,"X-TIMESTAMP-MAP=")){g=!1,e.slice(16).split(",").forEach((e=>{Ts(e,"LOCAL:")?d=e.slice(6):Ts(e,"MPEGTS:")&&(p=parseInt(e.slice(7)))}));try{f=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),i=parseInt(e.slice(-9,-7)),r=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!(G(t)&&G(n)&&G(i)&&G(r)))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=6e4*i,t+=36e5*r,t}(d)/1e3}catch(e){h=e}return}""===e&&(g=!1)}s.parse(e+"\n")})),s.flush()}const Is="stpp.ttml.im1t",Bs=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Rs=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Os={left:"start",center:"center",right:"end",start:"start",end:"end"};function Fs(e,t,n,i){const r=We(new Uint8Array(e),["mdat"]);if(0===r.length)return void i(new Error("Could not parse IMSC1 mdat"));const o=r.map((e=>be(e))),a=function(e,t,n=1,i=!1){return _o(e,t,1/n,i)}(t.baseTime,1,t.timescale);try{o.forEach((e=>n(function(e,t){const n=(new DOMParser).parseFromString(e,"text/xml"),i=n.getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const r={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},o=Object.keys(r).reduce(((e,t)=>(e[t]=i.getAttribute(`ttp:${t}`)||r[t],e)),{}),a="preserve"!==i.getAttribute("xml:space"),s=js(zs(i,"styling","style")),l=js(zs(i,"layout","region")),c=zs(i,"body","[begin]");return[].map.call(c,(e=>{const n=$s(e,a);if(!n||!e.hasAttribute("begin"))return null;const i=Ks(e.getAttribute("begin"),o),r=Ks(e.getAttribute("dur"),o);let c=Ks(e.getAttribute("end"),o);if(null===i)throw Zs(e);if(null===c){if(null===r)throw Zs(e);c=i+r}const u=new ws(i-t,c-t,n);u.id=Ds(u.startTime,u.endTime,u.text);const h=function(e,t,n){const i="http://www.w3.org/ns/ttml#styling";let r=null;const o=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],a=null!=e&&e.hasAttribute("style")?e.getAttribute("style"):null;a&&n.hasOwnProperty(a)&&(r=n[a]);return o.reduce(((n,o)=>{const a=Hs(t,i,o)||Hs(e,i,o)||Hs(r,i,o);return a&&(n[o]=a),n}),{})}(l[e.getAttribute("region")],s[e.getAttribute("style")],s),{textAlign:d}=h;if(d){const e=Os[d];e&&(u.lineAlign=e),u.align=d}return se(u,h),u})).filter((e=>null!==e))}(e,a))))}catch(e){i(e)}}function zs(e,t,n){const i=e.getElementsByTagName(t)[0];return i?[].slice.call(i.querySelectorAll(n)):[]}function js(e){return e.reduce(((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e}),{})}function $s(e,t){return[].slice.call(e.childNodes).reduce(((e,n,i)=>{var r;return"br"===n.nodeName&&i?e+"\n":null!=(r=n.childNodes)&&r.length?$s(n,t):t?e+n.textContent.trim().replace(/\s+/g," "):e+n.textContent}),"")}function Hs(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function Zs(e){return new Error(`Could not parse ttml timestamp ${e}`)}function Ks(e,t){if(!e)return null;let n=Ss(e);return null===n&&(Bs.test(e)?n=function(e,t){const n=Bs.exec(e),i=(0|n[4])+(0|n[5])/t.subFrameRate;return 3600*(0|n[1])+60*(0|n[2])+(0|n[3])+i/t.frameRate}(e,t):Rs.test(e)&&(n=function(e,t){const n=Rs.exec(e),i=Number(n[1]);switch(n[2]){case"h":return 3600*i;case"m":return 60*i;case"ms":return 1e3*i;case"f":return i/t.frameRate;case"t":return i/t.tickRate}return i}(e,t))),n}class Gs{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(null===this.startTime||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}function Us(e){return e.characteristics&&/transcribes-spoken-dialog/gi.test(e.characteristics)&&/describes-music-and-sound/gi.test(e.characteristics)?"captions":"subtitles"}function Vs(e,t){return!!e&&e.kind===Us(t)&&Vo(t,e)}const Ws=/\s/,qs={newCue(e,t,n,i){const r=[];let o,a,s,l,c;const u=self.VTTCue||self.TextTrackCue;for(let d=0;d=16?l--:l++;const i=Ms(c.trim()),p=Ds(t,n,i);null!=e&&null!=(h=e.cues)&&h.getCueById(p)||(a=new u(t,n,i),a.id=p,a.line=d+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*l/32)),r.push(a))}return e&&r.length&&(r.sort(((e,t)=>"auto"===e.line||"auto"===t.line?0:e.line>8&&t.line>8?t.line-e.line:e.line-t.line)),r.forEach((t=>Ra(e,t)))),r}};const Ys=/(\d+)-(\d+)\/(\d+)/;class Xs{constructor(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||Qs,this.controller=new self.AbortController,this.stats=new Ae}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,n){const i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();const r=function(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(se({},e.headers))};e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1));return n}(e,this.controller.signal),o="arraybuffer"===e.responseType,a=o?"byteLength":"length",{maxTimeToFirstByteMs:s,maxLoadTimeMs:l}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,r),self.clearTimeout(this.requestTimeout),t.timeout=s&&G(s)?s:l,this.requestTimeout=self.setTimeout((()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(i,e,this.response))}),t.timeout);(zo(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then((n=>{var r;this.response=this.loader=n;const a=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=l,this.requestTimeout=self.setTimeout((()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(i,e,this.response))}),l-(a-i.loading.start)),!n.ok){const{status:e,statusText:t}=n;throw new Js(t||"fetch, bad network response",e,n)}i.loading.first=a,i.total=function(e){const t=e.get("Content-Range");if(t){const e=function(e){const t=Ys.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}(t);if(G(e))return e}const n=e.get("Content-Length");if(n)return parseInt(n)}(n.headers)||i.total;const s=null==(r=this.callbacks)?void 0:r.onProgress;return s&&G(t.highWaterMark)?this.loadProgressively(n,i,e,t.highWaterMark,s):o?n.arrayBuffer():"json"===e.responseType?n.json():n.text()})).then((n=>{var r,o;const s=this.response;if(!s)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);const l=n[a];l&&(i.loaded=i.total=l);const c={url:s.url,data:n,code:s.status},u=null==(r=this.callbacks)?void 0:r.onProgress;u&&!G(t.highWaterMark)&&u(i,e,n,s),null==(o=this.callbacks)||o.onSuccess(c,i,e,s)})).catch((t=>{var n;if(self.clearTimeout(this.requestTimeout),i.aborted)return;const r=t&&t.code||0,o=t?t.message:null;null==(n=this.callbacks)||n.onError({code:r,text:o},e,t?t.details:null,i)}))}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,n,i=0,r){const o=new pr,a=e.body.getReader(),s=()=>a.read().then((a=>{if(a.done)return o.dataLength&&r(t,n,o.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const l=a.value,c=l.length;return t.loaded+=c,c=i&&r(t,n,o.flush().buffer,e)):r(t,n,l.buffer,e),s()})).catch((()=>Promise.reject()));return s()}}function Qs(e,t){return new self.Request(e.url,t)}class Js extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const el=/^age:\s*[\d.]+\s*$/im;class tl{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new Ae,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,4!==e.readyState&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const n=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;const r=this.xhrSetup;r?Promise.resolve().then((()=>{if(this.loader===n&&!this.stats.aborted)return r(n,t.url)})).catch((e=>{if(this.loader===n&&!this.stats.aborted)return n.open("GET",t.url,!0),r(n,t.url)})).then((()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)})).catch((e=>{var r;null==(r=this.callbacks)||r.onError({code:n.status,text:e.message},t,n,i)})):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const i=t.headers,{maxTimeToFirstByteMs:r,maxLoadTimeMs:o}=n.loadPolicy;if(i)for(const t in i)e.setRequestHeader(t,i[t]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),n.timeout=r&&G(r)?r:o,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:n}=this;if(!e||!t)return;const i=t.readyState,r=this.config;if(!n.aborted&&i>=2&&(0===n.loading.first&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),r.timeout!==r.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),r.timeout=r.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),4===i)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const i=t.status,l="text"===t.responseType?t.responseText:null;if(i>=200&&i<300){const r=null!=l?l:t.response;if(null!=r){var o,a;n.loading.end=Math.max(self.performance.now(),n.loading.first);const s="arraybuffer"===t.responseType?r.byteLength:r.length;n.loaded=n.total=s,n.bwEstimate=8e3*n.total/(n.loading.end-n.loading.first);const l=null==(o=this.callbacks)?void 0:o.onProgress;l&&l(n,e,r,t);const c={url:t.responseURL,data:r,code:i};return void(null==(a=this.callbacks)||a.onSuccess(c,n,e,t))}}const c=r.loadPolicy.errorRetry;var s;if(an(c,n.retry,!1,{url:e.url,data:void 0,code:i}))this.retry(c);else me.error(`${i} while loading ${e.url}`),null==(s=this.callbacks)||s.onError({code:i,text:t.statusText},e,t,n)}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry;if(an(e,this.stats.retry,!0))this.retry(e);else{var t;me.warn(`timeout while loading ${null==(t=this.context)?void 0:t.url}`);const e=this.callbacks;e&&(this.abortInternal(),e.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:n}=this;this.retryDelay=rn(e,n.retry),n.retry++,me.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${null==t?void 0:t.url}, retrying ${n.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&el.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}const nl=ce(ce({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:6e7,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:tl,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:class extends ue{constructor(e){super("abr",e.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.bwEstimator=void 0,this._abandonRulesCheck=e=>{var t;const{fragCurrent:n,partCurrent:i,hls:r}=this,{autoLevelEnabled:o,media:a}=r;if(!n||!a)return;const s=performance.now(),l=i?i.stats:n.stats,c=i?i.duration:n.duration,u=s-l.loading.start,h=r.minAutoLevel,d=n.level,p=this._nextAutoLevel;if(l.aborted||l.loaded&&l.loaded===l.total||d<=h)return this.clearTimer(),void(this._nextAutoLevel=-1);if(!o)return;const f=p>-1&&p!==d,g=!!e||f;if(!g&&(a.paused||!a.playbackRate||!a.readyState))return;const m=r.mainForwardBufferInfo;if(!g&&null===m)return;const v=this.bwEstimator.getEstimateTTFB(),y=Math.abs(a.playbackRate);if(u<=Math.max(v,c/(2*y)*1e3))return;const b=m?m.len/y:0,w=l.loading.first?l.loading.first-l.loading.start:-1,x=l.loaded&&w>-1,S=this.getBwEstimate(),k=r.levels,_=k[d],C=Math.max(l.loaded,Math.round(c*(n.bitrate||_.averageBitrate)/8));let P=x?u-w:u;P<1&&x&&(P=Math.min(u,8*l.loaded/S));const E=x?1e3*l.loaded/P:0,M=v/1e3,L=E?(C-l.loaded)/E:8*C/S+M;if(L<=b)return;const A=E?8*E:S,T=!0===(null==(t=(null==e?void 0:e.details)||this.hls.latestLevelDetails)?void 0:t.live),D=this.hls.config.abrBandWidthUpFactor;let N,I=Number.POSITIVE_INFINITY;for(N=d-1;N>h;N--){const e=k[N].maxBitrate,t=!k[N].details||T;if(I=this.getTimeToLoadFrag(M,A,c*e,t),I=L)return;if(I>10*c)return;x?this.bwEstimator.sample(u-Math.min(v,w),l.loaded):this.bwEstimator.sampleTTFB(u);const B=k[N].maxBitrate;this.getBwEstimate()*D>B&&this.resetEstimator(B);const R=this.findBestLevel(B,h,N,0,b,1,1);R>-1&&(N=R),this.warn(`Fragment ${n.sn}${i?" part "+i.index:""} of level ${d} is loading too slowly;\n      Fragment duration: ${n.duration.toFixed(3)}\n      Time to underbuffer: ${b.toFixed(3)} s\n      Estimated load time for current fragment: ${L.toFixed(3)} s\n      Estimated load time for down switch fragment: ${I.toFixed(3)} s\n      TTFB estimate: ${0|w} ms\n      Current BW estimate: ${G(S)?0|S:"Unknown"} bps\n      New BW estimate: ${0|this.getBwEstimate()} bps\n      Switching to level ${N} @ ${0|B} bps`),r.nextLoadLevel=r.nextAutoLevel=N,this.clearTimer();const O=()=>{if(this.clearTimer(),this.fragCurrent===n&&this.hls.loadLevel===N&&N>0){const e=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${N>0?"and switching down":""}\n      Fragment duration: ${n.duration.toFixed(3)} s\n      Time to underbuffer: ${e.toFixed(3)} s`),n.abortRequests(),this.fragCurrent=this.partCurrent=null,N>h){let t=this.findBestLevel(this.hls.levels[h].bitrate,h,N,0,e,1,1);-1===t&&(t=h),this.hls.nextLoadLevel=this.hls.nextAutoLevel=t,this.resetEstimator(this.hls.levels[t].bitrate)}}};f||L>2*I?O():this.timer=self.setInterval(O,1e3*I),r.trigger(Y.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,part:i,stats:l})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(this.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new oe(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.FRAG_LOADING,this.onFragLoading,this),e.on(Y.FRAG_LOADED,this.onFragLoaded,this),e.on(Y.FRAG_BUFFERED,this.onFragBuffered,this),e.on(Y.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(Y.LEVEL_LOADED,this.onLevelLoaded,this),e.on(Y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(Y.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(Y.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.FRAG_LOADING,this.onFragLoading,this),e.off(Y.FRAG_LOADED,this.onFragLoaded,this),e.off(Y.FRAG_BUFFERED,this.onFragBuffered,this),e.off(Y.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(Y.LEVEL_LOADED,this.onLevelLoaded,this),e.off(Y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(Y.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(Y.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const n=t.frag;if(!this.ignoreFragment(n)){var i;if(!n.bitrateTest)this.fragCurrent=n,this.partCurrent=null!=(i=t.part)?i:null;this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case q.BUFFER_ADD_CODEC_ERROR:case q.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case q.FRAG_LOAD_TIMEOUT:{const e=t.frag,{fragCurrent:n,partCurrent:i}=this;if(e&&n&&e.sn===n.sn&&e.level===n.level){const t=performance.now(),n=i?i.stats:e.stats,r=t-n.loading.start,o=n.loading.first?n.loading.first-n.loading.start:-1;if(n.loaded&&o>-1){const e=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(r-Math.min(e,o),n.loaded)}else this.bwEstimator.sampleTTFB(r)}break}}}getTimeToLoadFrag(e,t,n,i){return e+n/t+(i?e+this.lastLevelLoadSec:0)}onLevelLoaded(e,t){const n=this.hls.config,{loading:i}=t.stats,r=i.end-i.first;G(r)&&(this.lastLevelLoadSec=r/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,{frag:t,part:n}){const i=n?n.stats:t.stats;if(t.type===te&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const e=n?n.duration:t.duration,r=this.hls.levels[t.level],o=(r.loaded?r.loaded.bytes:0)+i.loaded,a=(r.loaded?r.loaded.duration:0)+e;r.loaded={bytes:o,duration:a},r.realBitrate=Math.round(8*o/a)}if(t.bitrateTest){const e={stats:i,frag:t,part:n,id:t.type};this.onFragBuffered(Y.FRAG_BUFFERED,e),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:n,part:i}=t,r=null!=i&&i.stats.loaded?i.stats:n.stats;if(r.aborted)return;if(this.ignoreFragment(n))return;const o=r.parsing.end-r.loading.start-Math.min(r.loading.first-r.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(o,r.loaded),r.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=o/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==te||"initSegment"===e.sn}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,n=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,r=this.findBestLevel(n,t,e,0,i,1,1);if(r>-1)return r;const o=this.hls.firstLevel,a=Math.min(Math.max(o,t),e);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${o} clamped to ${a}`),a}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,t=this.bwEstimator.canEstimate(),n=this.lastLoadedFragLevel>-1;if(!(-1===e||t&&n&&this.nextAutoLevelKey!==this.getAutoLevelKey()))return e;const i=t&&n?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==e){const t=this.hls.levels;if(t.length>Math.max(e,i)&&t[e].loadError<=t[i].loadError)return e}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:i,config:r,minAutoLevel:o}=n,a=t?t.duration:e?e.duration:0,s=this.getBwEstimate(),l=this.getStarvationDelay();let c=r.abrBandWidthFactor,u=r.abrBandWidthUpFactor;if(l){const e=this.findBestLevel(s,o,i,l,0,c,u);if(e>=0)return this.rebufferNotice=-1,e}let h=a?Math.min(a,r.maxStarvationDelay):r.maxStarvationDelay;if(!l){const e=this.bitrateTestDelay;if(e){h=(a?Math.min(a,r.maxLoadingDelay):r.maxLoadingDelay)-e,this.info(`bitrate test took ${Math.round(1e3*e)}ms, set first fragment max fetchDuration to ${Math.round(1e3*h)} ms`),c=u=1}}const d=this.findBestLevel(s,o,i,l,h,c,u);if(this.rebufferNotice!==d&&(this.rebufferNotice=d,this.info(`${l?"rebuffering expected":"buffer is empty"}, optimal quality level ${d}`)),d>-1)return d;const p=n.levels[o],f=n.loadLevelObj;return f&&(null==p?void 0:p.bitrate){if(!n.codecSet)return e;const r=n.audioGroups;let o=e[n.codecSet];o||(e[n.codecSet]=o={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:i,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!r,fragmentError:0}),o.minBitrate=Math.min(o.minBitrate,n.bitrate);const a=Math.min(n.height,n.width);return o.minHeight=Math.min(o.minHeight,a),o.minFramerate=Math.min(o.minFramerate,n.frameRate),o.minIndex=Math.min(o.minIndex,i),o.maxScore=Math.max(o.maxScore,n.score),o.fragmentError+=n.fragmentError,o.videoRanges[n.videoRange]=(o.videoRanges[n.videoRange]||0)+1,r&&r.forEach((e=>{if(!e)return;const n=t.groups[e];n&&(o.hasDefaultAudio=o.hasDefaultAudio||t.hasDefaultAudio?n.hasDefault:n.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(n.channels).forEach((e=>{o.channels[e]=(o.channels[e]||0)+n.channels[e]})))})),e}),{})}(p,C,t,n)),r=function(e,t,n,i,r){const o=Object.keys(e),a=null==i?void 0:i.channels,s=null==i?void 0:i.audioCodec,l=null==r?void 0:r.videoCodec,c=a&&2===parseInt(a);let u=!1,h=!1,d=1/0,p=1/0,f=1/0,g=1/0,m=0,v=[];const{preferHDR:y,allowedVideoRanges:b}=jt(t,r);for(let t=o.length;t--;){const n=e[o[t]];u||(u=n.channels[2]>0),d=Math.min(d,n.minHeight),p=Math.min(p,n.minFramerate),f=Math.min(f,n.minBitrate);const i=b.filter((e=>n.videoRanges[e]>0));i.length>0&&(h=!0)}d=G(d)?d:0,p=G(p)?p:0;const w=Math.max(1080,d),x=Math.max(30,p);f=G(f)?f:n,n=Math.max(f,n),h||(t=void 0);const S=o.length>1,k=o.reduce(((t,i)=>{const r=e[i];if(i===t)return t;if(v=h?b.filter((e=>r.videoRanges[e]>0)):[],S){if(r.minBitrate>n)return Ht(i,`min bitrate of ${r.minBitrate} > current estimate of ${n}`),t;if(!r.hasDefaultAudio)return Ht(i,"no renditions with default or auto-select sound found"),t;if(s&&i.indexOf(s.substring(0,4))%5!=0)return Ht(i,`audio codec preference "${s}" not found`),t;if(a&&!c){if(!r.channels[a])return Ht(i,`no renditions with ${a} channel sound found (channels options: ${Object.keys(r.channels)})`),t}else if((!s||c)&&u&&0===r.channels[2])return Ht(i,"no renditions with stereo sound found"),t;if(r.minHeight>w)return Ht(i,`min resolution of ${r.minHeight} > maximum of ${w}`),t;if(r.minFramerate>x)return Ht(i,`min framerate of ${r.minFramerate} > maximum of ${x}`),t;if(!v.some((e=>r.videoRanges[e]>0)))return Ht(i,`no variants with VIDEO-RANGE of ${$t(v)} found`),t;if(l&&i.indexOf(l.substring(0,4))%5!=0)return Ht(i,`video codec preference "${l}" not found`),t;if(r.maxScore=yt(t)||r.fragmentError>e[t].fragmentError)?t:(g=r.minIndex,m=r.maxScore,i)}),void 0);return{codecSet:k,videoRanges:v,preferHDR:y,minFramerate:p,minBitrate:f,minIndex:g}}(i,x,e,k,_),{codecSet:o,videoRanges:a,minFramerate:s,minBitrate:l,minIndex:c,preferHDR:u}=r;P=c,w=o,x=u?a[a.length-1]:a[0],S=s,e=Math.max(e,l),this.log(`picked start tier ${$t(r)}`)}else w=null==v?void 0:v.codecSet,x=null==v?void 0:v.videoRange;const E=d?d.duration:h?h.duration:0,M=this.bwEstimator.getEstimateTTFB()/1e3,L=[];for(let s=n;s>=t;s--){var A;const t=p[s],h=s>u;if(!t)continue;if(m.useMediaCapabilities&&!t.supportedResult&&!t.supportedPromise){const n=navigator.mediaCapabilities;"function"==typeof(null==n?void 0:n.decodingInfo)&&(Lt(t,C,x,S,e,k)||ot(t.videoCodec))?(t.supportedPromise=At(t,C,n),t.supportedPromise.then((e=>{if(!this.hls)return;t.supportedResult=e;const n=this.hls.levels,i=n.indexOf(t);e.error?this.warn(`MediaCapabilities decodingInfo error: "${e.error}" for level ${i} ${$t(e)}`):e.supported||(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${i} ${$t(e)}`),i>-1&&n.length>1&&(this.log(`Removing unsupported level ${i}`),this.hls.removeLevel(i),-1===this.hls.loadLevel&&(this.hls.nextLoadLevel=0)))}))):t.supportedResult=Pt}if((w&&t.codecSet!==w||x&&t.videoRange!==x||h&&S>t.frameRate||!h&&S>0&&S=2*E&&0===r?t.averageBitrate:t.maxBitrate,D=this.getTimeToLoadFrag(M,_,T*v,void 0===f);if(_>=T&&(s===c||0===t.loadError&&0===t.fragmentError)&&(D<=M||!G(D)||y&&!this.bitrateTestDelay||D${s} adjustedbw(${Math.round(_)})-bitrate=${Math.round(_-T)} ttfb:${M.toFixed(1)} avgDuration:${v.toFixed(1)} maxFetchDuration:${l.toFixed(1)} fetchDuration:${D.toFixed(1)} firstSelection:${b} codecSet:${t.codecSet} videoRange:${t.videoRange} hls.loadLevel:${g}`)),b&&(this.firstSelection=s),s}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:n}=this.hls;return Math.min(Math.max(e,n),t)}},bufferController:class extends ue{constructor(e,t){var n;super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=e=>{var t;this.hls&&"open"===(null==(t=this.mediaSource)?void 0:t.readyState)&&this.hls.pauseBuffering()},this._onStartStreaming=e=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=e=>{const{media:t,mediaSource:n}=this;e&&this.log("Media source opened"),t&&n&&(n.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(Y.MEDIA_ATTACHED,{media:t,mediaSource:n}),null!==this.mediaSource&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:e,_objectUrl:t}=this;e!==t&&this.error(`Media element src was set while attaching MediaSource (${t} > ${e})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=(n=ve(e.config.preferManagedMediaSource),"undefined"!=typeof self&&n===self.ManagedMediaSource),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:e}=this;e.on(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Y.BUFFER_RESET,this.onBufferReset,this),e.on(Y.BUFFER_APPENDING,this.onBufferAppending,this),e.on(Y.BUFFER_CODECS,this.onBufferCodecs,this),e.on(Y.BUFFER_EOS,this.onBufferEos,this),e.on(Y.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(Y.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(Y.FRAG_PARSED,this.onFragParsed,this),e.on(Y.FRAG_CHANGED,this.onFragChanged,this),e.on(Y.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Y.BUFFER_RESET,this.onBufferReset,this),e.off(Y.BUFFER_APPENDING,this.onBufferAppending,this),e.off(Y.BUFFER_CODECS,this.onBufferCodecs,this),e.off(Y.BUFFER_EOS,this.onBufferEos,this),e.off(Y.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(Y.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(Y.FRAG_PARSED,this.onFragParsed,this),e.off(Y.FRAG_CHANGED,this.onFragChanged,this),e.off(Y.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const n={};if(this.operationQueue){const e=this.isUpdating();e||this.operationQueue.removeBlockers();const t=this.isQueued();(e||t)&&this.warn(`Transfering MediaSource with${t?" operations in queue":""}${e?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const i=this.transferData;return!this.sourceBufferCount&&i&&i.mediaSource===t?se(n,i.tracks):this.sourceBuffers.forEach((e=>{const[t]=e;t&&(n[t]=se({},this.tracks[t]),this.removeBuffer(t)),e[0]=e[1]=null})),{media:e,mediaSource:t,tracks:n}}initTracks(){this.sourceBuffers=[[null,null],[null,null]],this.tracks={},this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){var n;let i=2;(t.audio&&!t.video||!t.altAudio)&&(i=1),this.bufferCodecEventsTotal=i,this.log(`${i} bufferCodec event(s) expected.`),null!=(n=this.transferData)&&n.mediaSource&&this.sourceBufferCount&&i&&this.bufferCreated()}onMediaAttaching(e,t){const n=this.media=t.media,i=ve(this.appendSource);if(this.transferData=this.overrides=void 0,n&&i){const e=!!t.mediaSource;(e||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const r=this.mediaSource=t.mediaSource||new i;if(this.assignMediaSource(r),e)this._objectUrl=n.src,this.attachTransferred();else{const e=this._objectUrl=self.URL.createObjectURL(r);if(this.appendSource)try{n.removeAttribute("src");const t=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||t&&r instanceof t,Qo(n),function(e,t){const n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}(n,e),n.load()}catch(t){n.src=e}else n.src=e}n.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,n;this.log(`${(null==(t=this.transferData)?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${null==(n=e.constructor)?void 0:n.name}`),e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.addEventListener("startstreaming",this._onStartStreaming),e.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const e=this.media,t=this.transferData;if(!t||!e)return;const n=this.tracks,i=t.tracks,r=i?Object.keys(i):null,o=r?r.length:0,a=()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()};if(i&&r&&o){if(!this.tracksReady)return this.hls.config.startFragPrefetch=!0,void this.log("attachTransferred: waiting for SourceBuffer track info");if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})\nrequired tracks: ${$t(n,((e,t)=>"initSegment"===e?void 0:t))};\ntransfer tracks: ${$t(i,((e,t)=>"initSegment"===e?void 0:t))}}`),!ye(i,n)){t.mediaSource=null,t.tracks=void 0;const r=e.currentTime,o=this.details,a=Math.max(r,(null==o?void 0:o.fragments[0].start)||0);return a-r>1?void this.log(`attachTransferred: waiting for playback to reach new tracks start time ${r} -> ${a}`):(this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(i)}"->"${Object.keys(n)}") start time: ${a} currentTime: ${r}`),this.onMediaDetaching(Y.MEDIA_DETACHING,{}),this.onMediaAttaching(Y.MEDIA_ATTACHING,t),void(e.currentTime=a))}this.transferData=void 0,r.forEach((e=>{const t=e,n=i[t];if(n){const e=n.buffer;if(e){const i=this.fragmentTracker,r=n.id;if(i.hasFragments(r)||i.hasParts(r)){const n=On.getBuffered(e);i.detectEvictedFragments(t,n,r,null,!0)}const o=Jo(t),a=[t,e];this.sourceBuffers[o]=a,e.updating&&this.operationQueue&&this.operationQueue.prependBlocker(t),this.trackSourceBuffer(t,n)}}})),a(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),a()}get mediaSourceOpenOrEnded(){var e;const t=null==(e=this.mediaSource)?void 0:e.readyState;return"open"===t||"ended"===t}onMediaDetaching(e,t){const n=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:i,mediaSource:r,_objectUrl:o}=this;if(r){if(this.log("media source "+(n?"transferring":"detaching")),n)this.sourceBuffers.forEach((([e])=>{e&&this.removeBuffer(e)})),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const e="open"===r.readyState;try{const t=r.sourceBuffers;for(let n=t.length;n--;)e&&t[n].abort(),r.removeSourceBuffer(t[n]);e&&r.endOfStream()}catch(e){this.warn(`onMediaDetaching: ${e.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}r.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("sourceended",this._onMediaSourceEnded),r.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(r.removeEventListener("startstreaming",this._onStartStreaming),r.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}i&&(i.removeEventListener("emptied",this._onMediaEmptied),n||(o&&self.URL.revokeObjectURL(o),this.mediaSrc===o?(i.removeAttribute("src"),this.appendSource&&Qo(i),i.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(Y.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach((([e])=>{e&&this.resetBuffer(e)})),this.initTracks()}resetBuffer(e){var t;const n=null==(t=this.tracks[e])?void 0:t.buffer;if(this.removeBuffer(e),n)try{var i;null!=(i=this.mediaSource)&&i.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}catch(t){this.warn(`onBufferReset ${e}`,t)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[Jo(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new Wo(this.tracks)}onBufferCodecs(e,t){const n=this.tracks,i=Object.keys(t);this.log(`BUFFER_CODECS: "${i}" (current SB count ${this.sourceBufferCount})`);const r="audiovideo"in t&&(n.audio||n.video)||n.audiovideo&&("audio"in t||"video"in t),o=!r&&this.sourceBufferCount&&this.media&&i.some((e=>!n[e]));r||o?this.warn(`Unsupported transition between "${Object.keys(n)}" and "${i}" SourceBuffers`):(i.forEach((e=>{var i,r,o;const a=t[e],{id:s,codec:l,levelCodec:c,container:u,metadata:h,supplemental:d}=a;let p=n[e];const f=null==(i=this.transferData)||null==(r=i.tracks)?void 0:r[e],g=null!=f&&f.buffer?f:p,m=(null==g?void 0:g.pendingCodec)||(null==g?void 0:g.codec),v=null==g?void 0:g.levelCodec;p||(p=n[e]={buffer:void 0,listeners:[],codec:l,supplemental:d,container:u,levelCodec:c,metadata:h,id:s});const y=St(m,v),b=null==y?void 0:y.replace(qo,"$1");let w=St(l,c);const x=null==(o=w)?void 0:o.replace(qo,"$1");w&&y&&b!==x&&("audio"===e.slice(0,5)&&(w=xt(w,this.appendSource)),this.log(`switching codec ${m} to ${w}`),w!==(p.pendingCodec||p.codec)&&(p.pendingCodec=w),p.container=u,this.appendChangeType(e,u,w))})),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),this.sourceBufferCount||this.mediaSourceOpenOrEnded&&this.checkPendingTracks())}get sourceBufferTracks(){return Object.keys(this.tracks).reduce(((e,t)=>{const n=this.tracks[t];return e[t]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},e}),{})}appendChangeType(e,t,n){const i=`${t};codecs=${n}`,r={label:`change-type=${i}`,execute:()=>{const r=this.tracks[e];if(r){const o=r.buffer;null!=o&&o.changeType&&(this.log(`changing ${e} sourceBuffer type to ${i}`),o.changeType(i),r.codec=n,r.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:t=>{this.warn(`Failed to change ${e} SourceBuffer type`,t)}};this.append(r,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const n=e.start,i=n+.05*e.duration;if(!0===(null==(t=this.fragmentTracker.getAppendedFrag(n,te))?void 0:t.gap))return;const r={label:"block-audio",execute:()=>{var e;const t=this.tracks.video;(this.lastVideoAppendEnd>i||null!=t&&t.buffer&&On.isBuffered(t.buffer,i)||!0===(null==(e=this.fragmentTracker.getAppendedFrag(i,te))?void 0:e.gap))&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:e=>{this.warn("Error executing block-audio operation",e)}};this.blockedAudioAppend={op:r,frag:e},this.append(r,"audio",!0)}unblockAudio(){const{blockedAudioAppend:e,operationQueue:t}=this;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))}onBufferAppending(e,t){const{tracks:n}=this,{data:i,type:r,parent:o,frag:a,part:s,chunkMeta:l}=t,c=l.buffering[r],u=a.sn,h=self.performance.now();c.start=h;const d=a.stats.buffering,p=s?s.stats.buffering:null;0===d.start&&(d.start=h),p&&0===p.start&&(p.start=h);const f=n.audio;let g=!1;"audio"===r&&"audio/mpeg"===(null==f?void 0:f.container)&&(g=!this.lastMpegAudioChunk||1===l.id||this.lastMpegAudioChunk.sn!==l.sn,this.lastMpegAudioChunk=l);const m=this.tracks.video,v=null==m?void 0:m.buffer;if(v&&"initSegment"!==u){const e=s||a,t=this.blockedAudioAppend;if("audio"!==r||"main"===o||this.blockedAudioAppend){if("video"===r){const n=e.end;if(t){const e=t.frag.start;(n>e||n{if(c.executeStart=self.performance.now(),g){const e=this.tracks[r];if(e){const t=e.buffer;if(t){const e=y-t.timestampOffset;Math.abs(e)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${y} (delta: ${e}) sn: ${u})`),t.timestampOffset=y)}}}this.appendExecutor(i,r)},onStart:()=>{},onComplete:()=>{const e=self.performance.now();c.executeEnd=c.end=e,0===d.first&&(d.first=e),p&&0===p.first&&(p.first=e);const t={};this.sourceBuffers.forEach((([e,n])=>{e&&(t[e]=On.getBuffered(n))})),this.appendErrors[r]=0,"audio"===r||"video"===r?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(Y.BUFFER_APPENDED,{type:r,frag:a,part:s,chunkMeta:l,parent:a.type,timeRanges:t})},onError:e=>{var t;const n={type:W.MEDIA_ERROR,parent:a.type,details:q.BUFFER_APPEND_ERROR,sourceBufferName:r,frag:a,part:s,chunkMeta:l,error:e,err:e,fatal:!1},i=null==(t=this.media)?void 0:t.error;if(e.code===DOMException.QUOTA_EXCEEDED_ERR)n.details=q.BUFFER_FULL_ERROR;else if(e.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!i)n.errorAction=fn(!0);else if(e.name===Yo&&0===this.sourceBufferCount)n.errorAction=fn(!0);else{const e=++this.appendErrors[r];this.warn(`Failed ${e}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${r}" sourceBuffer (${i||"no media error"})`),(e>=this.hls.config.appendErrorMaxRetry||i)&&(n.fatal=!0)}this.hls.trigger(Y.ERROR,n)}};this.append(b,r,this.isPending(this.tracks[r]))}getFlushOp(e,t,n){return this.log(`queuing "${e}" remove ${t}-${n}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,n)},onStart:()=>{},onComplete:()=>{this.hls.trigger(Y.BUFFER_FLUSHED,{type:e})},onError:i=>{this.warn(`Failed to remove ${t}-${n} from "${e}" SourceBuffer`,i)}}}onBufferFlushing(e,t){const{type:n,startOffset:i,endOffset:r}=t;n?this.append(this.getFlushOp(n,i,r),n):this.sourceBuffers.forEach((([e])=>{e&&this.append(this.getFlushOp(e,i,r),e)}))}onFragParsed(e,t){const{frag:n,part:i}=t,r=[],o=i?i.elementaryStreams:n.elementaryStreams;o[Ne]?r.push("audiovideo"):(o[Te]&&r.push("audio"),o[De]&&r.push("video"));0===r.length&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers((()=>{const e=self.performance.now();n.stats.buffering.end=e,i&&(i.stats.buffering.end=e);const t=i?i.stats:n.stats;this.hls.trigger(Y.FRAG_BUFFERED,{frag:n,part:i,stats:t,id:n.type})}),r).catch((e=>{this.warn(`Fragment buffered callback ${e}`),this.stepOperationQueue(this.sourceBufferTypes)}))}onFragChanged(e,t){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some((([e])=>{var t,n;return e&&(!(null!=(t=this.tracks[e])&&t.ended)||(null==(n=this.tracks[e])?void 0:n.ending))}))}onBufferEos(e,t){var n;this.sourceBuffers.forEach((([e])=>{if(e){const n=this.tracks[e];t.type&&t.type!==e||(n.ending=!0,n.ended||(n.ended=!0,this.log(`${e} buffer reached EOS`)))}}));const i=!1!==(null==(n=this.overrides)?void 0:n.endOfStream);this.sourceBufferCount>0&&!this.sourceBuffers.some((([e])=>{var t;return e&&!(null!=(t=this.tracks[e])&&t.ended)}))&&(i?(this.log("Queueing EOS"),this.blockUntilOpen((()=>{this.tracksEnded();const{mediaSource:e}=this;e&&"open"===e.readyState?(this.log("Calling mediaSource.endOfStream()"),e.endOfStream(),this.hls.trigger(Y.BUFFERED_TO_END,void 0)):e&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${e.readyState}`)}))):(this.tracksEnded(),this.hls.trigger(Y.BUFFERED_TO_END,void 0)))}tracksEnded(){this.sourceBuffers.forEach((([e])=>{if(null!==e){const t=this.tracks[e];t&&(t.ending=!1)}}))}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.updateDuration())}updateDuration(){const e=this.getDurationAndRange();e&&this.blockUntilOpen((()=>this.updateMediaSource(e)))}onError(e,t){if(t.details===q.BUFFER_APPEND_ERROR&&t.frag){var n;const e=null==(n=t.errorAction)?void 0:n.nextAutoLevel;G(e)&&e!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:e,details:t,media:n}=this;if(!n||null===t)return;if(!this.sourceBufferCount)return;const i=e.config,r=n.currentTime,o=t.levelTargetDuration,a=t.live&&null!==i.liveBackBufferLength?i.liveBackBufferLength:i.backBufferLength;if(G(a)&&a>=0){const e=Math.max(a,o),t=Math.floor(r/o)*o-e;this.flushBackBuffer(r,o,t)}if(G(i.frontBufferFlushThreshold)&&i.frontBufferFlushThreshold>0){const e=Math.max(i.maxBufferLength,i.frontBufferFlushThreshold),t=Math.max(e,o),n=Math.floor(r/o)*o+t;this.flushFrontBuffer(r,o,n)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach((([e,t])=>{if(t){const r=On.getBuffered(t);if(r.length>0&&n>r.start(0)){var i;this.hls.trigger(Y.BACK_BUFFER_REACHED,{bufferEnd:n});const t=this.tracks[e];if(null!=(i=this.details)&&i.live)this.hls.trigger(Y.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(null!=t&&t.ended)return void this.log(`Cannot flush ${e} back buffer while SourceBuffer is in ended state`);this.hls.trigger(Y.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:e})}}}))}flushFrontBuffer(e,t,n){this.sourceBuffers.forEach((([t,i])=>{if(i){const r=On.getBuffered(i),o=r.length;if(o<2)return;const a=r.start(o-1),s=r.end(o-1);if(n>a||e>=a&&e<=s)return;this.hls.trigger(Y.BUFFER_FLUSHING,{startOffset:a,endOffset:1/0,type:t})}}))}getDurationAndRange(){var e;const{details:t,mediaSource:n}=this;if(!t||!this.media||"open"!==(null==n?void 0:n.readyState))return null;const i=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&t.live&&n.setLiveSeekableRange){const e=Math.max(0,t.fragmentStart);return{duration:1/0,start:e,end:Math.max(e,i)}}return{duration:1/0}}const r=null==(e=this.overrides)?void 0:e.duration;if(r)return G(r)?{duration:r}:null;const o=this.media.duration;return i>(G(n.duration)?n.duration:0)&&i>o||!G(o)?{duration:i}:null}updateMediaSource({duration:e,start:t,end:n}){const i=this.mediaSource;this.media&&i&&"open"===i.readyState&&(i.duration!==e&&(G(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),i.duration=e),void 0!==t&&void 0!==n&&(this.log(`MediaSource duration is set to ${i.duration}. Setting seekable range to ${t}-${n}.`),i.setLiveSeekableRange(t,n)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:n}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${$t(n)}`),this.tracksReady){var i;const e=null==(i=this.transferData)?void 0:i.tracks;e&&Object.keys(e).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach((([t,n])=>{if(t){const i=this.tracks[t];e[t]={buffer:n,container:i.container,codec:i.codec,supplemental:i.supplemental,levelCodec:i.levelCodec,id:i.id,metadata:i.metadata}}})),this.hls.trigger(Y.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach((([e])=>{this.executeNext(e)}))}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:n}=this;if(!n)throw new Error("createSourceBuffers called when mediaSource was null");for(const r in e){const o=r,a=e[o];if(this.isPending(a)){const e=this.getTrackCodec(a,o),r=`${a.container};codecs=${e}`;a.codec=e,this.log(`creating sourceBuffer(${r})${this.currentOp(o)?" Queued":""} ${$t(a)}`);try{const e=n.addSourceBuffer(r),i=Jo(o),s=[o,e];t[i]=s,a.buffer=e}catch(e){var i;return this.error(`error while trying to add sourceBuffer: ${e.message}`),this.shiftAndExecuteNext(o),null==(i=this.operationQueue)||i.removeBlockers(),delete this.tracks[o],void this.hls.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:e,sourceBufferName:o,mimeType:r,parent:a.id})}this.trackSourceBuffer(o,a)}}this.bufferCreated()}getTrackCodec(e,t){const n=e.supplemental;let i=e.codec;n&&("video"===t||"audiovideo"===t)&&ft(n,"video")&&(i=function(e,t){const n=[];if(e){const t=e.split(",");for(let e=0;e{const n=t.removedRanges;null!=n&&n.length&&this.hls.trigger(Y.BUFFER_FLUSHED,{type:e})}))}get mediaSrc(){var e,t;const n=(null==(e=this.media)||null==(t=e.querySelector)?void 0:t.call(e,"source"))||this.media;return null==n?void 0:n.src}onSBUpdateStart(e){const t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t;if("closed"===(null==(t=this.mediaSource)?void 0:t.readyState))return void this.resetBuffer(e);const n=this.currentOp(e);n&&(n.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var n;const i=new Error(`${e} SourceBuffer error. MediaSource readyState: ${null==(n=this.mediaSource)?void 0:n.readyState}`);this.error(`${i}`,t),this.hls.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:i,fatal:!1});const r=this.currentOp(e);r&&r.onError(i)}removeExecutor(e,t,n){const{media:i,mediaSource:r}=this,o=this.tracks[e],a=null==o?void 0:o.buffer;if(!i||!r||!a)return this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),void this.shiftAndExecuteNext(e);const s=G(i.duration)?i.duration:1/0,l=G(r.duration)?r.duration:1/0,c=Math.max(0,t),u=Math.min(n,s,l);u>c&&(!o.ending||o.ended)?(o.ended=!1,this.log(`Removing [${c},${u}] from the ${e} SourceBuffer`),a.remove(c,u)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],i=null==n?void 0:n.buffer;if(!i)throw new Xo(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,i.appendBuffer(e)}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch((e=>{this.warn(`SourceBuffer blocked callback ${e}`),this.stepOperationQueue(this.sourceBufferTypes)}));else try{e()}catch(e){this.warn(`Callback run without blocking ${this.operationQueue} ${e}`)}}isUpdating(){return this.sourceBuffers.some((([e,t])=>e&&t.updating))}isQueued(){return this.sourceBuffers.some((([e])=>e&&!!this.currentOp(e)))}isPending(e){return!!e&&!e.buffer}blockBuffers(e,t=this.sourceBufferTypes){if(!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);const{operationQueue:n}=this,i=t.map((e=>this.appendBlocker(e)));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(i).then((t=>{n===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))}))}stepOperationQueue(e){e.forEach((e=>{var t;const n=null==(t=this.tracks[e])?void 0:t.buffer;n&&!n.updating&&this.shiftAndExecuteNext(e)}))}append(e,t,n){this.operationQueue&&this.operationQueue.append(e,t,n)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce(((e,t)=>e+(this.isPending(this.tracks[t])?1:0)),0)}get sourceBufferCount(){return this.sourceBuffers.reduce(((e,[t])=>e+(t?1:0)),0)}get sourceBufferTypes(){return this.sourceBuffers.map((([e])=>e)).filter((e=>!!e))}addBufferListener(e,t,n){const i=this.tracks[e];if(!i)return;const r=i.buffer;if(!r)return;const o=n.bind(this,e);i.listeners.push({event:t,listener:o}),r.addEventListener(t,o)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const n=t.buffer;n&&(t.listeners.forEach((e=>{n.removeEventListener(e.event,e.listener)})),t.listeners.length=0)}},capLevelController:ea,errorController:class extends ue{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(Y.ERROR,this.onError,this),e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(Y.ERROR,this.onError,this),e.off(Y.ERROR,this.onErrorOut,this),e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(null==e?void 0:e.type)===te?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n;if(t.fatal)return;const i=this.hls,r=t.context;switch(t.details){case q.FRAG_LOAD_ERROR:case q.FRAG_LOAD_TIMEOUT:case q.KEY_LOAD_ERROR:case q.KEY_LOAD_TIMEOUT:return void(t.errorAction=this.getFragRetryOrSwitchAction(t));case q.FRAG_PARSING_ERROR:if(null!=(n=t.frag)&&n.gap)return void(t.errorAction=fn());case q.FRAG_GAP:case q.FRAG_DECRYPT_ERROR:return t.errorAction=this.getFragRetryOrSwitchAction(t),void(t.errorAction.action=ln);case q.LEVEL_EMPTY_ERROR:case q.LEVEL_PARSING_ERROR:{var o,a;const e=t.parent===te?t.level:i.loadLevel;t.details===q.LEVEL_EMPTY_ERROR&&null!=(o=t.context)&&null!=(a=o.levelDetails)&&a.live?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,e):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,e))}return;case q.LEVEL_LOAD_ERROR:case q.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==r?void 0:r.level)&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.level)));case q.AUDIO_TRACK_LOAD_ERROR:case q.AUDIO_TRACK_LOAD_TIMEOUT:case q.SUBTITLE_LOAD_ERROR:case q.SUBTITLE_TRACK_LOAD_TIMEOUT:if(r){const e=i.loadLevelObj;if(e&&(r.type===J&&e.hasAudioGroup(r.groupId)||r.type===ee&&e.hasSubtitleGroup(r.groupId)))return t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=ln,void(t.errorAction.flags=dn)}return;case q.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const e=i.loadLevelObj,n=null==e?void 0:e.attrs["HDCP-LEVEL"];n?t.errorAction={action:ln,flags:pn,hdcpLevel:n}:this.keySystemError(t)}return;case q.BUFFER_ADD_CODEC_ERROR:case q.REMUX_ALLOC_ERROR:case q.BUFFER_APPEND_ERROR:var s;if(!t.errorAction)t.errorAction=this.getLevelSwitchAction(t,null!=(s=t.level)?s:i.loadLevel);return;case q.INTERNAL_EXCEPTION:case q.BUFFER_APPENDING_ERROR:case q.BUFFER_FULL_ERROR:case q.LEVEL_SWITCH_ERROR:case q.BUFFER_STALLED_ERROR:case q.BUFFER_SEEK_OVER_HOLE:case q.BUFFER_NUDGE_ON_STALL:return void(t.errorAction=fn())}t.type===W.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const n=nn(this.hls.config.playlistLoadPolicy,e),i=this.playlistError++;if(an(n,i,tn(e),e.response))return{action:un,flags:hn,retryConfig:n,retryCount:i};const r=this.getLevelSwitchAction(e,t);return n&&(r.retryConfig=n,r.retryCount=i),r}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),i=t.levels[n],{fragLoadPolicy:r,keyLoadPolicy:o}=t.config,a=nn(e.details.startsWith("key")?o:r,e),s=t.levels.reduce(((e,t)=>e+t.fragmentError),0);if(i){e.details!==q.FRAG_GAP&&i.fragmentError++;if(an(a,s,tn(e),e.response))return{action:un,flags:hn,retryConfig:a,retryCount:s}}const l=this.getLevelSwitchAction(e,n);return a&&(l.retryConfig=a,l.retryCount=s),l}getLevelSwitchAction(e,t){const n=this.hls;null==t&&(t=n.loadLevel);const i=this.hls.levels[t];if(i){var r,o;const t=e.details;i.loadError++,t===q.BUFFER_APPEND_ERROR&&i.fragmentError++;let l=-1;const{levels:c,loadLevel:u,minAutoLevel:h,maxAutoLevel:d}=n;n.autoLevelEnabled||n.config.preserveManualLevelOnError||(n.loadLevel=-1);const p=null==(r=e.frag)?void 0:r.type,f=(p===ne&&t===q.FRAG_PARSING_ERROR||"audio"===e.sourceBufferName&&(t===q.BUFFER_ADD_CODEC_ERROR||t===q.BUFFER_APPEND_ERROR))&&c.some((({audioCodec:e})=>i.audioCodec!==e)),g="video"===e.sourceBufferName&&(t===q.BUFFER_ADD_CODEC_ERROR||t===q.BUFFER_APPEND_ERROR)&&c.some((({codecSet:e,audioCodec:t})=>i.codecSet!==e&&i.audioCodec===t)),{type:m,groupId:v}=null!=(o=e.context)?o:{};for(let n=c.length;n--;){const r=(n+u)%c.length;if(r!==u&&r>=h&&r<=d&&0===c[r].loadError){var a,s;const n=c[r];if(t===q.FRAG_GAP&&p===te&&e.frag){const t=c[r].details;if(t){const n=Xt(e.frag,t.fragments,e.frag.start);if(null!=n&&n.gap)continue}}else{if(m===J&&n.hasAudioGroup(v)||m===ee&&n.hasSubtitleGroup(v))continue;if(p===ne&&null!=(a=i.audioGroups)&&a.some((e=>n.hasAudioGroup(e)))||p===ie&&null!=(s=i.subtitleGroups)&&s.some((e=>n.hasSubtitleGroup(e)))||f&&i.audioCodec===n.audioCodec||!f&&i.audioCodec!==n.audioCodec||g&&i.codecSet===n.codecSet)continue}l=r;break}}if(l>-1&&n.loadLevel!==l)return e.levelRetry=!0,this.playlistError=0,{action:ln,flags:hn,nextAutoLevel:l}}return{action:ln,flags:dn}}onErrorOut(e,t){var n;switch(null==(n=t.errorAction)?void 0:n.action){case sn:break;case ln:this.sendAlternateToPenaltyBox(t),t.errorAction.resolved||t.details===q.FRAG_GAP?/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError()):t.fatal=!0}t.fatal&&this.hls.stopLoad()}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:i,hdcpLevel:r,nextAutoLevel:o}=n;switch(i){case hn:this.switchLevel(e,o);break;case pn:r&&(t.maxHdcpLevel=Tt[Tt.indexOf(r)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`)}n.resolved||this.switchLevel(e,o)}switchLevel(e,t){if(void 0!==t&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===q.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&"audiovideo"!==e.sourceBufferName)){const t=Ct(e.mimeType),n=this.hls.levels;for(let i=n.length;i--;)n[i][`${e.sourceBufferName}Codec`]===t&&this.hls.removeLevel(i)}}},fpsController:class{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}registerListeners(){this.hls.on(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const n=this.hls.config;if(n.capLevelOnFPSDrop){const e=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=e,e&&"function"==typeof e.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,n){const i=performance.now();if(t){if(this.lastTime){const e=i-this.lastTime,r=n-this.lastDroppedFrames,o=t-this.lastDecodedFrames,a=1e3*r/e,s=this.hls;if(s.trigger(Y.FPS_DROP,{currentDropped:r,currentDecoded:o,totalDroppedFrames:n}),a>0&&r>s.config.fpsDroppedMonitoringThreshold*o){let e=s.currentLevel;s.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+e),e>0&&(-1===s.autoLevelCapping||s.autoLevelCapping>=e)&&(e-=1,s.trigger(Y.FPS_DROP_LEVEL_CAPPING,{level:e,droppedLevel:s.currentLevel}),s.autoLevelCapping=e,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}},stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:fi,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:qs,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:class extends hr{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",ie),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(Y.LEVEL_LOADED,this.onLevelLoaded,this),e.on(Y.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(Y.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(Y.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(Y.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(Y.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(Y.LEVEL_LOADED,this.onLevelLoaded,this),e.off(Y.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(Y.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(Y.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(Y.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(Y.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=er,this.setInterval(500),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(e,t){this.tracksBuffered=[],super.onMediaDetaching(e,t)}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:n,success:i}=t;if(Be(n)&&(this.fragPrevious=n),this.state=er,!i)return;const r=this.tracksBuffered[this.currentTrackId];if(!r)return;let o;const a=n.start;for(let e=0;e=r[e].start&&a<=r[e].end){o=r[e];break}const s=n.start+n.duration;o?o.end=s:(o={start:a,end:s},r.push(o)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:n,endOffset:i}=t;if(0===n&&i!==Number.POSITIVE_INFINITY){const e=i-1;if(e<=0)return;t.endOffsetSubtitles=Math.max(0,e),this.tracksBuffered.forEach((t=>{for(let n=0;nnew Ft(e))):(this.tracksBuffered=[],this.levels=t.map((e=>{const t=new Ft(e);return this.tracksBuffered[t.id]=[],t})),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,ie),this.fragPrevious=null,this.mediaBuffer=null)}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,null==(n=this.levels)||!n.length||-1===this.currentTrackId)return void this.clearInterval();const i=this.levels[this.currentTrackId];null!=i&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.state!==Ji&&this.setInterval(500)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:i,levels:r}=this,{details:o,id:a}=t;if(!r)return void this.warn(`Subtitle tracks were reset while loading level ${a}`);const s=r[a];if(a>=r.length||!s)return;this.log(`Subtitle track ${a} loaded [${o.startSN},${o.endSN}]${o.lastPartSn?`[part-${o.lastPartSn}-${o.lastPartIndex}]`:""},duration:${o.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let l=0;if(o.live||null!=(n=s.details)&&n.live){const e=this.mainDetails;if(o.deltaUpdateFailed||!e)return;const t=e.fragments[0];var c;if(s.details)l=this.alignPlaylists(o,s.details,null==(c=this.levelLastLoaded)?void 0:c.details),0===l&&t&&(l=t.start,$i(o,l));else o.hasProgramDateTime&&e.hasProgramDateTime?(Xi(o,e),l=o.fragmentStart):t&&(l=t.start,$i(o,l))}if(s.details=o,this.levelLastLoaded=s,a===i&&(this.hls.trigger(Y.SUBTITLE_TRACK_UPDATED,{details:o,id:a,groupId:t.groupId}),this.tick(),o.live&&!this.fragCurrent&&this.media&&this.state===er)){Xt(null,o.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),s.details=void 0)}}_handleFragmentLoadComplete(e){const{frag:t,payload:n}=e,i=t.decryptdata,r=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&null!=i&&i.key&&i.iv&&qn(i.method)){const e=performance.now();this.decrypter.decrypt(new Uint8Array(n),i.key.buffer,i.iv.buffer,Yn(i.method)).catch((e=>{throw r.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:t}),e})).then((n=>{const i=performance.now();r.trigger(Y.FRAG_DECRYPTED,{frag:t,payload:n,stats:{tstart:e,tdecrypt:i}})})).catch((e=>{this.warn(`${e.name}: ${e.message}`),this.state=er}))}}doTick(){if(this.media){if(this.state===er){const{currentTrackId:e,levels:t}=this,n=null==t?void 0:t[e];if(!n||!t.length||!n.details)return;if(this.waitForLive(n))return;const{config:i}=this,r=this.getLoadPosition(),o=On.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],r,i.maxBufferHole),{end:a,len:s}=o,l=n.details;if(s>this.hls.maxBufferLength+l.levelTargetDuration)return;const c=l.fragments,u=c.length,h=l.edge;let d=null;const p=this.fragPrevious;if(ah-e?0:e;d=Xt(p,c,Math.max(c[0].start,a),t),!d&&p&&p.startthis.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let e=null;const t=za(this.media.textTracks);for(let n=0;n-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Y.LEVEL_LOADING,this.onLevelLoading,this),e.on(Y.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(Y.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(Y.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Y.LEVEL_LOADING,this.onLevelLoading,this),e.off(Y.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(Y.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(Y.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(e,t){const n=this.media;if(!n)return;const i=!!t.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||n.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,i)return;za(n.textTracks).forEach((e=>{Oa(e)}))}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:n,groupId:i,details:r}=t,o=this.tracksInGroup[n];if(!o||o.groupId!==i)return void this.warn(`Subtitle track with id:${n} and group:${i} not found in active group ${null==o?void 0:o.groupId}`);const a=o.details;o.details=t.details,this.log(`Subtitle track ${n} "${o.name}" lang:${o.lang} group:${i} loaded [${r.startSN}-${r.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,a)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.subtitleGroups||null,i=this.groupIds;let r=this.currentTrack;if(!n||(null==i?void 0:i.length)!==(null==n?void 0:n.length)||null!=n&&n.some((e=>-1===(null==i?void 0:i.indexOf(e))))){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const e=this.tracks.filter((e=>!n||-1!==n.indexOf(e.groupId)));if(e.length)this.selectDefaultTrack&&!e.some((e=>e.default))&&(this.selectDefaultTrack=!1),e.forEach(((e,t)=>{e.id=t}));else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=e;const t=this.hls.config.subtitlePreference;if(!r&&t){this.selectDefaultTrack=!1;const n=Gt(t,e);if(n>-1)r=e[n];else{const e=Gt(t,this.tracks);r=this.tracks[e]}}let i=this.findTrackId(r);-1===i&&r&&(i=this.findTrackId(null));const o={subtitleTracks:e};this.log(`Updating subtitle tracks, ${e.length} track(s) found in "${null==n?void 0:n.join(",")}" group-id`),this.hls.trigger(Y.SUBTITLE_TRACKS_UPDATED,o),-1!==i&&-1===this.trackId&&this.setSubtitleTrack(i)}}findTrackId(e){const t=this.tracksInGroup,n=this.selectDefaultTrack;for(let i=0;i-1){const e=this.tracksInGroup[i];return this.setSubtitleTrack(i),e}if(n)return null;{const n=Gt(e,t);if(n>-1)return t[n]}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,i=e.groupId,r=this.getUrlWithDirectives(e.url,t),o=e.details,a=null==o?void 0:o.age;this.log(`Loading subtitle ${n} "${e.name}" lang:${e.lang} group:${i}${void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:""}${a&&o.live?" age "+a.toFixed(1)+(o.type?" "+o.type||0:""):""} ${r}`),this.hls.trigger(Y.SUBTITLE_TRACK_LOADING,{url:r,id:n,groupId:i,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=za(e.textTracks),n=this.currentTrack;let i;if(n&&(i=t.filter((e=>Vo(n,e)))[0],i||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(t).forEach((e=>{"disabled"!==e.mode&&e!==i&&(e.mode="disabled")})),i){const e=this.subtitleDisplay?"showing":"hidden";i.mode!==e&&(i.mode=e)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media)return void(this.queuedDefaultTrack=e);if(e<-1||e>=t.length||!G(e))return void this.warn(`Invalid subtitle track id: ${e}`);this.selectDefaultTrack=!1;const n=this.currentTrack,i=t[e]||null;if(this.trackId=e,this.currentTrack=i,this.toggleTrackModes(),!i)return void this.hls.trigger(Y.SUBTITLE_TRACK_SWITCH,{id:e});const r=!!i.details&&!i.details.live;if(e===this.trackId&&i===n&&r)return;this.log(`Switching to subtitle-track ${e}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));const{id:o,groupId:a="",name:s,type:l,url:c}=i;this.hls.trigger(Y.SUBTITLE_TRACK_SWITCH,{id:o,groupId:a,name:s,type:l,url:c});const u=this.switchParams(i.url,null==n?void 0:n.details,i.details);this.loadPlaylist(u)}},timelineController:class{constructor(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},e.on(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(Y.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(Y.FRAG_LOADING,this.onFragLoading,this),e.on(Y.FRAG_LOADED,this.onFragLoaded,this),e.on(Y.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(Y.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(Y.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(Y.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(Y.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(Y.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(Y.FRAG_LOADING,this.onFragLoading,this),e.off(Y.FRAG_LOADED,this.onFragLoaded,this),e.off(Y.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(Y.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(Y.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(Y.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(Y.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new Gs(this,"textTrack1"),t=new Gs(this,"textTrack2"),n=new Gs(this,"textTrack3"),i=new Gs(this,"textTrack4");this.cea608Parser1=new vs(1,e,t),this.cea608Parser2=new vs(3,n,i)}addCues(e,t,n,i,r){let o=!1;for(let e=r.length;e--;){const i=r[e],u=(a=i[0],s=i[1],l=t,c=n,Math.min(s,c)-Math.max(a,l));if(u>=0&&(i[0]=Math.min(i[0],t),i[1]=Math.max(i[1],n),o=!0,u/(n-t)>.5))return}var a,s,l,c;if(o||r.push([t,n]),this.config.renderTextTracksNatively){const r=this.captionsTracks[e];this.Cues.newCue(r,t,n,i)}else{const r=this.Cues.newCue(null,t,n,i);this.hls.trigger(Y.CUES_PARSED,{type:"captions",cues:r,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:i,timescale:r}){const{unparsedVttFrags:o}=this;n===te&&(this.initPTS[t.cc]={baseTime:i,timescale:r}),o.length&&(this.unparsedVttFrags=[],o.forEach((e=>{this.onFragLoaded(Y.FRAG_LOADED,e)})))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let i=0;i{Oa(i[e]),delete i[e]})),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:e}=this;if(!e)return;const t=e.textTracks;if(t)for(let e=0;ee.textCodec===Is));if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(Go(this.tracks,n))return void(this.tracks=n);if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const e=this.media,t=e?za(e.textTracks):null;if(this.tracks.forEach(((e,n)=>{let i;if(t){let n=null;for(let i=0;inull!==e)).map((e=>e.label));e.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${e.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const e=this.tracks.map((e=>({label:e.name,kind:e.type.toLowerCase(),default:e.default,subtitleTrack:e})));this.hls.trigger(Y.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:e})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach((e=>{const t=/(?:CC|SERVICE)([1-4])/.exec(e.instreamId);if(!t)return;const n=`textTrack${t[1]}`,i=this.captionsProperties[n];i&&(i.label=e.name,e.lang&&(i.languageCode=e.lang),i.media=e)}))}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return null==t?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===te){var n,i;const{cea608Parser1:e,cea608Parser2:r,lastSn:o}=this,{cc:a,sn:s}=t.frag,l=null!=(n=null==(i=t.part)?void 0:i.index)?n:-1;e&&r&&(s!==o+1||s===o&&l!==this.lastPartIndex+1||a!==this.lastCc)&&(e.reset(),r.reset()),this.lastCc=a,this.lastSn=s,this.lastPartIndex=l}}onFragLoaded(e,t){const{frag:n,payload:i}=t;if(n.type===ie)if(i.byteLength){const e=n.decryptdata,r="stats"in t;if(null==e||!e.encrypted||r){const e=this.tracks[n.level],r=this.vttCCs;r[n.cc]||(r[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),e&&e.textCodec===Is?this._parseIMSC1(n,i):this._parseVTTs(t)}}else this.hls.trigger(Y.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;Fs(t,this.initPTS[e.cc],(t=>{this._appendCues(t,e.level),n.trigger(Y.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})}),(t=>{n.logger.log(`Failed to parse IMSC1: ${t}`),n.trigger(Y.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:t})}))}_parseVTTs(e){var t;const{frag:n,payload:i}=e,{initPTS:r,unparsedVttFrags:o}=this,a=r.length-1;if(!r[n.cc]&&-1===a)return void o.push(e);const s=this.hls;Ns(null!=(t=n.initSegment)&&t.data?it(n.initSegment.data,new Uint8Array(i)).buffer:i,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,(e=>{this._appendCues(e,n.level),s.trigger(Y.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})}),(t=>{const r="Missing initPTS for VTT MPEGTS"===t.message;r?o.push(e):this._fallbackToIMSC1(n,i),s.logger.log(`Failed to parse VTT cue: ${t}`),r&&a>n.cc||s.trigger(Y.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:t})}))}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||Fs(t,this.initPTS[e.cc],(()=>{n.textCodec=Is,this._parseIMSC1(e,t)}),(()=>{n.textCodec="wvtt"}))}_appendCues(e,t){const n=this.hls;if(this.config.renderTextTracksNatively){const n=this.textTracks[t];if(!n||"disabled"===n.mode)return;e.forEach((e=>Ra(n,e)))}else{const i=this.tracks[t];if(!i)return;const r=i.default?"default":"subtitles"+t;n.trigger(Y.CUES_PARSED,{type:"subtitles",cues:e,track:r})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===ie&&this.onFragLoaded(Y.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:n,samples:i}=t;if(n.type!==te||"NONE"!==this.closedCaptionsForLevel(n))for(let e=0;eFa(e[i],t,n)))}if(this.config.renderTextTracksNatively&&0===t&&void 0!==i){const{textTracks:e}=this;Object.keys(e).forEach((n=>Fa(e[n],t,i)))}}}extractCea608Data(e){const t=[[],[]],n=31&e[0];let i=2;for(let r=0;r=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(e,t){var n;const i=(null==(n=this.mainFragLoading)?void 0:n.frag)||null;if(t&&(null==i?void 0:i.cc)===t.cc)return;const r=(i||e).cc,o=en(this.getLevelDetails(),r,this.getLoadPosition());o&&(this.log(`Waiting fragment cc (${null==t?void 0:t.cc}) cancelled because video is at cc ${e.cc}`),this.startFragRequested=!1,this.nextLoadPosition=o.start,this.resetLoadingState(),this.state===er&&this.doTickIdle())}startLoad(e,t){if(!this.levels)return this.startPosition=e,void(this.state=Ji);const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),n>0&&-1===e?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=er):this.state=rr,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case er:this.doTickIdle();break;case rr:{const{levels:e,trackId:t}=this,n=null==e?void 0:e[t],i=null==n?void 0:n.details;if(i&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(i))break;this.state=cr}break}case ir:{var e;const t=performance.now(),n=this.retryDate;if(!n||t>=n||null!=(e=this.media)&&e.seeking){const{levels:e,trackId:t}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((null==e?void 0:e[t])||null),this.state=er}break}case cr:{const e=this.waitingData;if(e){const{frag:t,part:n,cache:i,complete:r}=e,o=this.mainAnchor;if(void 0!==this.initPTS[t.cc]){this.waitingData=null,this.state=nr;const e={frag:t,part:n,payload:i.flush().buffer,networkDetails:null};this._handleFragmentLoadProgress(e),r&&super._handleFragmentLoadComplete(e)}else o&&o.cc!==e.frag.cc&&this.syncWithAnchor(o,e.frag)}else this.state=er}}this.onTickEnd()}resetLoadingState(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){const{media:e}=this;null!=e&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;const{hls:t,levels:n,media:i,trackId:r}=this,o=t.config;if(!this.buffering||!i&&!this.primaryPrefetch&&(this.startFragRequested||!o.startFragPrefetch)||null==n||!n[r])return;const a=n[r],s=a.details;if(!s||this.waitForLive(a)||this.waitForCdnTuneIn(s))return this.state=rr,void(this.startFragRequested=!1);const l=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&l&&(this.bufferFlushed=!1,this.afterBufferFlushed(l,Te,ne));const c=this.getFwdBufferInfo(l,ne);if(null===c)return;if(!this.switchingTrack&&this._streamEnded(c,s))return t.trigger(Y.BUFFER_EOS,{type:"audio"}),void(this.state=sr);const u=c.len,h=t.maxBufferLength,d=s.fragments,p=d[0].start,f=this.getLoadPosition(),g=this.flushing?f:c.end;if(this.switchingTrack&&i){const e=f;s.PTSKnown&&ep||c.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),i.currentTime=p+.05)}if(u>=h&&!this.switchingTrack&&gv.end){const e=this.fragmentTracker.getFragAtPos(g,te);e&&e.end>v.end&&(v=e,this.mainFragLoading={frag:e,targetBufferTime:null})}if(m.start>v.end)return}this.loadFragment(m,a,g)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map((e=>new Ft(e)))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),n?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==Ji&&(this.setInterval(100),this.state=er,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;const n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(Y.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(e,t){var n;const{levels:i}=this,{details:r,id:o,groupId:a,track:s}=t;if(!i)return void this.warn(`Audio tracks reset while loading track ${o} "${s.name}" of "${a}"`);const l=this.mainDetails;if(!l||r.endCC>l.endCC||l.expired)return this.cachedTrackLoadedData=t,void(this.state!==Ji&&(this.state=rr));this.cachedTrackLoadedData=null,this.log(`Audio track ${o} "${s.name}" of "${a}" loaded [${r.startSN},${r.endSN}]${r.lastPartSn?`[part-${r.lastPartSn}-${r.lastPartIndex}]`:""},duration:${r.totalduration}`);const c=i[o];let u=0;if(r.live||null!=(n=c.details)&&n.live){if(this.checkLiveUpdate(r),r.deltaUpdateFailed)return;var h;if(c.details)u=this.alignPlaylists(r,c.details,null==(h=this.levelLastLoaded)?void 0:h.details);r.alignedSliding||(Yi(r,l),r.alignedSliding||Xi(r,l),u=r.fragmentStart)}c.details=r,this.levelLastLoaded=c,this.startFragRequested||this.setStartPosition(l,u),this.hls.trigger(Y.AUDIO_TRACK_UPDATED,{details:r,id:o,groupId:t.groupId}),this.state!==rr||this.waitForCdnTuneIn(r)||(this.state=er),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:i,payload:r}=e,{config:o,trackId:a,levels:s}=this;if(!s)return void this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);const l=s[a];if(!l)return void this.warn("Audio track is undefined on fragment load progress");const c=l.details;if(!c)return this.warn("Audio track details undefined on fragment load progress"),void this.removeUnbufferedFrags(n.start);const u=o.defaultAudioCodec||l.audioCodec||"mp4a.40.2";let h=this.transmuxer;h||(h=this.transmuxer=new Zo(this.hls,ne,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const d=this.initPTS[n.cc],p=null==(t=n.initSegment)?void 0:t.data;if(void 0!==d){const e=!1,t=i?i.index:-1,o=-1!==t,a=new Bn(n.level,n.sn,n.stats.chunkCount,r.byteLength,t,o);h.push(r,p,u,"",n,i,c.totalduration,e,a,d)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${c.startSN} ,${c.endSN}],track ${a}`);const{cache:e}=this.waitingData=this.waitingData||{frag:n,part:i,cache:new pr,complete:!1};e.push(new Uint8Array(r)),this.state!==Ji&&(this.state=cr)}}_handleFragmentLoadComplete(e){this.waitingData?this.waitingData.complete=!0:super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;const n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===te&&Be(t.frag)&&(this.mainFragLoading=t,this.state===er&&this.tick())}onFragBuffered(e,t){const{frag:n,part:i}=t;if(n.type===ne)if(this.fragContextChanged(n))this.warn(`Fragment ${n.sn}${i?" p: "+i.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);else{if(Be(n)){this.fragPrevious=n;const e=this.switchingTrack;e&&(this.bufferedTrack=e,this.switchingTrack=null,this.hls.trigger(Y.AUDIO_TRACK_SWITCHED,ce({},e)))}this.fragBufferedComplete(n,i),this.media&&this.tick()}else this.audioOnly||n.type!==te||n.elementaryStreams.video||n.elementaryStreams.audiovideo||(this.audioOnly=!0,this.mainFragLoading=null)}onError(e,t){var n;if(t.fatal)this.state=lr;else switch(t.details){case q.FRAG_GAP:case q.FRAG_PARSING_ERROR:case q.FRAG_DECRYPT_ERROR:case q.FRAG_LOAD_ERROR:case q.FRAG_LOAD_TIMEOUT:case q.KEY_LOAD_ERROR:case q.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(ne,t);break;case q.AUDIO_TRACK_LOAD_ERROR:case q.AUDIO_TRACK_LOAD_TIMEOUT:case q.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==rr||(null==(n=t.context)?void 0:n.type)!==J||(this.state=er);break;case q.BUFFER_ADD_CODEC_ERROR:case q.BUFFER_APPEND_ERROR:if("audio"!==t.parent)return;this.resetLoadingState();break;case q.BUFFER_FULL_ERROR:if("audio"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case q.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}onBufferFlushing(e,{type:t}){t!==De&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==De){this.flushing=!1,this.bufferFlushed=!0,this.state===sr&&(this.state=er);const e=this.mediaBuffer||this.media;e&&(this.afterBufferFlushed(e,t,ne),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:i}=this,{remuxResult:r,chunkMeta:o}=e,a=this.getCurrentContext(o);if(!a)return void this.resetWhenMissingContext(o);const{frag:s,part:l,level:c}=a,{details:u}=c,{audio:h,text:d,id3:p,initSegment:f}=r;if(!this.fragContextChanged(s)&&u){if(this.state=or,this.switchingTrack&&h&&this.completeAudioSwitch(this.switchingTrack),null!=f&&f.tracks){const e=s.initSegment||s;this._bufferInitSegment(c,f.tracks,e,o),i.trigger(Y.FRAG_PARSING_INIT_SEGMENT,{frag:e,id:n,tracks:f.tracks})}if(h){const{startPTS:e,endPTS:t,startDTS:n,endDTS:i}=h;l&&(l.elementaryStreams[Te]={startPTS:e,endPTS:t,startDTS:n,endDTS:i}),s.setElementaryStreamInfo(Te,e,t,n,i),this.bufferFragmentData(h,s,l,o)}if(null!=p&&null!=(t=p.samples)&&t.length){const e=se({id:n,frag:s,details:u},p);i.trigger(Y.FRAG_PARSING_METADATA,e)}if(d){const e=se({id:n,frag:s,details:u},d);i.trigger(Y.FRAG_PARSING_USERDATA,e)}}else this.fragmentTracker.removeFragment(s)}_bufferInitSegment(e,t,n,i){if(this.state!==or)return;if(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio)return;const r=t.audio;r.id=ne;const o=e.audioCodec;this.log(`Init audio buffer, container:${r.container}, codecs[level/parsed]=[${o}/${r.codec}]`),o&&1===o.split(",").length&&(r.levelCodec=o),this.hls.trigger(Y.BUFFER_CODECS,t);const a=r.initSegment;if(null!=a&&a.byteLength){const e={type:"audio",frag:n,part:null,chunkMeta:i,parent:n.type,data:a};this.hls.trigger(Y.BUFFER_APPENDING,e)}this.tickImmediate()}loadFragment(e,t,n){const i=this.fragmentTracker.getState(e);var r;if(this.switchingTrack||i===gn||i===vn)if(Be(e))if(null!=(r=t.details)&&r.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=cr;const n=this.mainDetails;n&&n.fragmentStart!==t.details.fragmentStart&&Xi(t.details,n)}else super.loadFragment(e,t,n);else this._loadInitSegment(e,t);else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:n,assocLang:i,characteristics:r,audioCodec:o,channels:a}=this.bufferedTrack;Ut({name:t,lang:n,assocLang:i,characteristics:r,audioCodec:o,channels:a},e,Vt)||(qt(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(Y.AUDIO_TRACK_SWITCHED,ce({},e))}},audioTrackController:class extends Ko{constructor(e){super(e,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:e}=this;e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Y.LEVEL_LOADING,this.onLevelLoading,this),e.on(Y.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(Y.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(Y.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Y.LEVEL_LOADING,this.onLevelLoading,this),e.off(Y.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(Y.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(Y.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:n,groupId:i,details:r}=t,o=this.tracksInGroup[n];if(!o||o.groupId!==i)return void this.warn(`Audio track with id:${n} and group:${i} not found in active group ${null==o?void 0:o.groupId}`);const a=o.details;o.details=t.details,this.log(`Audio track ${n} "${o.name}" lang:${o.lang} group:${i} loaded [${r.startSN}-${r.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,a)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.audioGroups||null,i=this.groupIds;let r=this.currentTrack;if(!n||(null==i?void 0:i.length)!==(null==n?void 0:n.length)||null!=n&&n.some((e=>-1===(null==i?void 0:i.indexOf(e))))){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const e=this.tracks.filter((e=>!n||-1!==n.indexOf(e.groupId)));if(e.length)this.selectDefaultTrack&&!e.some((e=>e.default))&&(this.selectDefaultTrack=!1),e.forEach(((e,t)=>{e.id=t}));else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=e;const t=this.hls.config.audioPreference;if(!r&&t){const n=Gt(t,e,Vt);if(n>-1)r=e[n];else{const e=Gt(t,this.tracks);r=this.tracks[e]}}let i=this.findTrackId(r);-1===i&&r&&(i=this.findTrackId(null));const a={audioTracks:e};this.log(`Updating audio tracks, ${e.length} track(s) found in group(s): ${null==n?void 0:n.join(",")}`),this.hls.trigger(Y.AUDIO_TRACKS_UPDATED,a);const s=this.trackId;if(-1!==i&&-1===s)this.setAudioTrack(i);else if(e.length&&-1===s){var o;const t=new Error(`No audio track selected for current audio group-ID(s): ${null==(o=this.groupIds)?void 0:o.join(",")} track count: ${e.length}`);this.warn(t.message),this.hls.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:t})}}}onError(e,t){!t.fatal&&t.context&&(t.context.type!==J||t.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||this.checkRetry(t))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const i=this.currentTrack;if(i&&Ut(e,i,Vt))return i;const r=Gt(e,this.tracksInGroup,Vt);if(r>-1){const e=this.tracksInGroup[r];return this.setAudioTrack(r),e}if(i){let i=t.loadLevel;-1===i&&(i=t.firstAutoLevel);const r=function(e,t,n,i,r){const o=t[i],a=t.reduce(((e,t,n)=>{const i=t.uri;return(e[i]||(e[i]=[])).push(n),e}),{}),s=a[o.uri];s.length>1&&(i=Math.max.apply(Math,s));const l=o.videoRange,c=o.frameRate,u=o.codecSet.substring(0,4),h=Wt(t,i,(t=>{if(t.videoRange!==l||t.frameRate!==c||t.codecSet.substring(0,4)!==u)return!1;const i=t.audioGroups,o=n.filter((e=>!i||-1!==i.indexOf(e.groupId)));return Gt(e,o,r)>-1}));return h>-1?h:Wt(t,i,(t=>{const i=t.audioGroups,o=n.filter((e=>!i||-1!==i.indexOf(e.groupId)));return Gt(e,o,r)>-1}))}(e,t.levels,n,i,Vt);if(-1===r)return null;t.nextLoadLevel=r}if(e.channels||e.audioCodec){const t=Gt(e,n);if(t>-1)return n[t]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length)return void this.warn(`Invalid audio track id: ${e}`);this.selectDefaultTrack=!1;const n=this.currentTrack,i=t[e],r=i.details&&!i.details.live;if(e===this.trackId&&i===n&&r)return;if(this.log(`Switching to audio-track ${e} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=e,this.currentTrack=i,this.hls.trigger(Y.AUDIO_TRACK_SWITCHING,ce({},i)),r)return;const o=this.switchParams(i.url,null==n?void 0:n.details,i.details);this.loadPlaylist(o)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=e=>{try{this.apply(e,{ot:ta.MANIFEST,su:!this.initialized})}catch(e){this.hls.logger.warn("Could not generate manifest CMCD data.",e)}},this.applyFragmentData=e=>{try{const{frag:t,part:n}=e,i=this.hls.levels[t.level],r=this.getObjectType(t),o={d:1e3*(n||t).duration,ot:r};r!==ta.VIDEO&&r!==ta.AUDIO&&r!=ta.MUXED||(o.br=i.bitrate/1e3,o.tb=this.getTopBandwidth(r)/1e3,o.bl=this.getBufferLength(r));const a=n?this.getNextPart(n):this.getNextFrag(t);null!=a&&a.url&&a.url!==t.url&&(o.nor=a.url),this.apply(e,o)}catch(e){this.hls.logger.warn("Could not generate segment CMCD data.",e)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;null!=n&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||e.sessionId,this.cid=n.contentId,this.useHeaders=!0===n.useHeaders,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Y.MEDIA_DETACHED,this.onMediaDetached,this),e.on(Y.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Y.MEDIA_DETACHED,this.onMediaDetached,this),e.off(Y.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var n,i;this.audioBuffer=null==(n=t.tracks.audio)?void 0:n.buffer,this.videoBuffer=null==(i=t.tracks.video)?void 0:i.buffer}createData(){var e;return{v:1,sf:na.HLS,sid:this.sid,cid:this.cid,pr:null==(e=this.media)?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){se(t,this.createData());const n=t.ot===ta.INIT||t.ot===ta.VIDEO||t.ot===ta.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),null==t.su&&(t.su=this.buffering);const{includeKeys:i}=this;i&&(t=Object.keys(t).reduce(((e,n)=>(i.includes(n)&&(e[n]=t[n]),e)),{}));const r={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),Pa(e.headers,t,r)):e.url=Ma(e.url,t,r)}getNextFrag(e){var t;const n=null==(t=this.hls.levels[e.level])?void 0:t.details;if(n){const t=e.sn-n.startSN;return n.fragments[t+1]}}getNextPart(e){var t,n;const{index:i,fragment:r}=e,o=null==(t=this.hls.levels[r.level])||null==(n=t.details)?void 0:n.partList;if(o){const{sn:e}=r;for(let t=o.length-1;t>=0;t--){const n=o[t];if(n.index===i&&n.fragment.sn===e)return o[t+1]}}}getObjectType(e){const{type:t}=e;return"subtitle"===t?ta.TIMED_TEXT:"initSegment"===e.sn?ta.INIT:"audio"===t?ta.AUDIO:"main"===t?this.hls.audioTracks.length?ta.VIDEO:ta.MUXED:void 0}getTopBandwidth(e){let t,n=0;const i=this.hls;if(e===ta.AUDIO)t=i.audioTracks;else{const e=i.maxAutoLevel,n=e>-1?e+1:i.levels.length;t=i.levels.slice(0,n)}return t.forEach((e=>{e.bitrate>n&&(n=e.bitrate)})),n>0?n:NaN}getBufferLength(e){const t=this.media,n=e===ta.AUDIO?this.audioBuffer:this.videoBuffer;if(!n||!t)return NaN;return 1e3*On.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,n=e||this.config.loader;return class{constructor(e){this.loader=void 0,this.loader=new n(e)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(e,n,i){t(e),this.loader.load(e,n,i)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(e){this.loader=void 0,this.loader=new n(e)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(e,n,i){t(e),this.loader.load(e,n,i)}}}},contentSteeringController:class extends ue{constructor(e){super("content-steering",e.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Y.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Y.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce(((e,t)=>(-1===e.indexOf(t.pathwayId)&&e.push(t.pathwayId),e)),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=1e3*this.timeToLoad-(performance.now()-this.updated);if(e>0)return void this.scheduleRefresh(this.uri,e)}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){-1!==this.reloadTimer&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter((t=>t!==e)))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:n}=t;null!==n&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:n}=t;if((null==n?void 0:n.action)===ln&&n.flags===dn){const e=this.levels;let i=this._pathwayPriority,r=this.pathwayId;if(t.context){const{groupId:n,pathwayId:i,type:o}=t.context;n&&e?r=this.getPathwayForGroupId(n,o,r):i&&(r=i)}r in this.penalizedPathways||(this.penalizedPathways[r]=performance.now()),!i&&e&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==r),n.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${r} levels: ${e?e.length:e} priorities: ${$t(i)} penalized: ${$t(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(0===t.length){const n=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),t=this.getLevelsForPathway(n),this.pathwayId=n}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return null===this.levels?[]:this.levels.filter((t=>e===t.pathwayId))}updatePathwayPriority(e){let t;this._pathwayPriority=e;const n=this.penalizedPathways,i=performance.now();Object.keys(n).forEach((e=>{i-n[e]>3e5&&delete n[e]}));for(let i=0;i0){this.log(`Setting Pathway to "${r}"`),this.pathwayId=r,Ui(t),this.hls.trigger(Y.LEVELS_UPDATED,{levels:t});const e=this.hls.levels[o];a&&e&&this.levels&&(e.attrs["STABLE-VARIANT-ID"]!==a.attrs["STABLE-VARIANT-ID"]&&e.bitrate!==a.bitrate&&this.log(`Unstable Pathways change from bitrate ${a.bitrate} to ${e.bitrate}`),this.hls.nextLoadLevel=o);break}}}getPathwayForGroupId(e,t,n){const i=this.getLevelsForPathway(n).concat(this.levels||[]);for(let n=0;n{const{ID:r,"BASE-ID":o,"URI-REPLACEMENT":a}=e;if(t.some((e=>e.pathwayId===r)))return;const s=this.getLevelsForPathway(o).map((e=>{const t=new Gn(e.attrs);t["PATHWAY-ID"]=r;const o=t.AUDIO&&`${t.AUDIO}_clone_${r}`,s=t.SUBTITLES&&`${t.SUBTITLES}_clone_${r}`;o&&(n[t.AUDIO]=o,t.AUDIO=o),s&&(i[t.SUBTITLES]=s,t.SUBTITLES=s);const l=Aa(e.uri,t["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",a),c=new Ft({attrs:t,audioCodec:e.audioCodec,bitrate:e.bitrate,height:e.height,name:e.name,url:l,videoCodec:e.videoCodec,width:e.width});if(e.audioGroups)for(let t=1;t{this.log(`Loaded steering manifest: "${i}"`);const o=e.data;if(1!==(null==o?void 0:o.VERSION))return void this.log(`Steering VERSION ${o.VERSION} not supported!`);this.updated=performance.now(),this.timeToLoad=o.TTL;const{"RELOAD-URI":a,"PATHWAY-CLONES":s,"PATHWAY-PRIORITY":l}=o;if(a)try{this.uri=new self.URL(a,i).href}catch(e){return this.enabled=!1,void this.log(`Failed to parse Steering Manifest RELOAD-URI: ${a}`)}this.scheduleRefresh(this.uri||n.url),s&&this.clonePathways(s);const c={steeringManifest:o,url:i.toString()};this.hls.trigger(Y.STEERING_MANIFEST_LOADED,c),l&&this.updatePathwayPriority(l)},onError:(e,t,n,i)=>{if(this.log(`Error loading steering manifest: ${e.code} ${e.text} (${t.url})`),this.stopLoad(),410===e.code)return this.enabled=!1,void this.log(`Steering manifest ${t.url} no longer available`);let r=1e3*this.timeToLoad;if(429!==e.code)this.scheduleRefresh(this.uri||t.url,r);else{const e=this.loader;if("function"==typeof(null==e?void 0:e.getResponseHeader)){const t=e.getResponseHeader("Retry-After");t&&(r=1e3*parseFloat(t))}this.log(`Steering manifest ${t.url} rate limited`)}},onTimeout:(e,t,n)=>{this.log(`Timeout loading steering manifest (${t.url})`),this.scheduleRefresh(this.uri||t.url)}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(r,s,l)}scheduleRefresh(e,t=1e3*this.timeToLoad){this.clearTimeout(),this.reloadTimer=self.setTimeout((()=>{var t;const n=null==(t=this.hls)?void 0:t.media;!n||n.ended?this.scheduleRefresh(e,1e3*this.timeToLoad):this.loadSteeringManifest(e)}),t)}},interstitialsController:class extends ue{constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const e=this.currentTime;if(void 0===e||this.playbackDisabled)return;const t=e-this.timelinePos;if(Math.abs(t)<1/7056e5)return;const n=t<=-.01;this.timelinePos=e,this.bufferedPos=e;const i=this.playingItem;if(!i)return void this.checkBuffer();if(n){this.schedule.resetErrorsInRange(e,e-t)&&this.updateSchedule()}if(this.checkBuffer(),n&&e=i.end){var r;const e=this.schedule.findItemIndexAtTime(this.timelinePos);if(!this.isInterstitial(i)&&null!=(r=this.media)&&r.paused&&(this.shouldPlay=!1),!n){const t=this.findItemIndex(i);if(e>t){const n=this.schedule.findJumpRestrictedIndex(t+1,e);if(n>t)return void this.setSchedulePosition(n)}}return void this.setSchedulePosition(e)}const o=this.playingAsset;if(!o){if(this.playingLastItem&&this.isInterstitial(i)){const t=i.event.assetList[0];t&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(e,t))}return}const a=o.timelineStart,s=o.duration||0;(n&&e=a+s)&&this.setScheduleToAssetAtTime(e,o)},this.onTimeupdate=()=>{const e=this.currentTime;if(void 0===e||this.playbackDisabled)return;if(!(e>this.timelinePos))return;this.timelinePos=e,e>this.bufferedPos&&this.checkBuffer();const t=this.playingItem;if(!t||this.playingLastItem)return;if(e>=t.end){this.timelinePos=t.end;const e=this.findItemIndex(t);this.setSchedulePosition(e+1)}const n=this.playingAsset;if(!n)return;e>=n.timelineStart+(n.duration||0)&&this.setScheduleToAssetAtTime(e,n)},this.onScheduleUpdate=(e,t)=>{const n=this.schedule,i=this.playingItem,r=n.events||[],o=n.items||[],a=n.durations,s=e.map((e=>e.identifier)),l=!(!r.length&&!s.length);(l||t)&&this.log(`INTERSTITIALS_UPDATED (${r.length}): ${r}\nSchedule: ${o.map((e=>Xa(e)))} pos: ${this.timelinePos}`),s.length&&this.log(`Removed events ${s}`),this.playerQueue.forEach((e=>{if(e.interstitial.appendInPlace){const t=e.assetItem.timelineStart,n=e.timelineOffset-t;if(n)try{e.timelineOffset=t}catch(i){Math.abs(n)>$a&&this.warn(`${i} ("${e.assetId}" ${e.timelineOffset}->${t})`)}}}));let c=null;if(i){const e=this.updateItem(i,this.timelinePos);this.itemsMatch(i,e)&&(this.playingItem=e,this.waitingItem=this.endedItem=null,c=()=>this.trimInPlace(e,i))}else this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const u=this.bufferingItem;if(u){const e=this.updateItem(u,this.bufferedPos);this.itemsMatch(u,e)?(this.bufferingItem=e,c||(c=()=>this.trimInPlace(e,u))):u.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(u.event,null))}if(e.forEach((e=>{e.assetList.forEach((e=>{this.clearAssetPlayer(e.identifier,null)}))})),l||t){if(this.hls.trigger(Y.INTERSTITIALS_UPDATED,{events:r.slice(0),schedule:o.slice(0),durations:a,removedIds:s}),this.isInterstitial(i)&&s.includes(i.event.identifier))return this.warn(`Interstitial "${i.event.identifier}" removed while playing`),void this.primaryFallback(i.event);c&&c(),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Qa(e),this.schedule=new Ya(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e.on(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(Y.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(Y.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(Y.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(Y.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(Y.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(Y.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(Y.BUFFER_APPENDED,this.onBufferAppended,this),e.on(Y.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(Y.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(Y.MEDIA_ENDED,this.onMediaEnded,this),e.on(Y.ERROR,this.onError,this),e.on(Y.DESTROYING,this.onDestroying,this)}unregisterListeners(){const e=this.hls;e&&(e.off(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(Y.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(Y.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(Y.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(Y.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(Y.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(Y.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(Y.BUFFER_CODECS,this.onBufferCodecs,this),e.off(Y.BUFFER_APPENDED,this.onBufferAppended,this),e.off(Y.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(Y.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(Y.MEDIA_ENDED,this.onMediaEnded,this),e.off(Y.ERROR,this.onError,this),e.off(Y.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;null==(e=this.getBufferingPlayer())||e.resumeBuffering()}pauseBuffering(){var e;null==(e=this.getBufferingPlayer())||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.manager=null,this.hls=this.HlsPlayerClass=this.schedule=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){Da(e,"play",this.onPlay),Da(e,"pause",this.onPause),Da(e,"seeking",this.onSeeking),Da(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;Ta(n,"seeking",this.onSeeking),Ta(n,"timeupdate",this.onTimeupdate),Ta(n,"play",this.onPlay),Ta(n,"pause",this.onPause)}onMediaAttached(e,t){const n=this.effectivePlayingItem,i=this.detachedData;if(this.detachedData=null,null===n)this.checkStart();else if(!i){this.clearScheduleState();const e=this.findItemIndex(n);this.setSchedulePosition(e)}}clearScheduleState(){this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){const n=!!t.transferMedia,i=this.media;if(this.media=null,!n&&(i&&this.removeMediaListeners(i),this.detachedData)){const e=this.getBufferingPlayer();e&&(this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,e.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.manager){if(!this.hls)return null;const e=this,t=()=>e.bufferingItem||e.waitingItem,n=t=>t?e.getAssetPlayer(t.identifier):t,i=(t,i,r,a,s)=>{if(t){let l=t[i].start;const c=t.event;if(c){if("playout"===i||c.timelineOccupancy!==Ha.Point){const e=n(r);(null==e?void 0:e.interstitial)===c&&(l+=e.assetItem.startOffset+e[s])}}else{l+=("bufferedPos"===a?o():e[a])-t.start}return l}return 0},r=(t,n)=>{if(0!==t&&"primary"!==n&&e.schedule.length){var i;const r=e.schedule.findItemIndexAtTime(t),o=null==(i=e.schedule.items)?void 0:i[r];if(o){return t+(o[n].start-o.start)}}return t},o=()=>{const t=e.bufferedPos;return t===Number.MAX_VALUE?a("primary"):Math.max(t,0)},a=t=>{var n;return null!=(n=e.primaryDetails)&&n.live?e.primaryDetails.edge:e.schedule.durations[t]},s=(t,r)=>{var o,a;const s=e.effectivePlayingItem;if(null!=s&&null!=(o=s.event)&&o.restrictions.skip)return;e.log(`seek to ${t} "${r}"`);const l=e.effectivePlayingItem,c=e.schedule.findItemIndexAtTime(t,r),u=null==(a=e.schedule.items)?void 0:a[c],h=e.getBufferingPlayer(),d=null==h?void 0:h.interstitial,p=null==d?void 0:d.appendInPlace,f=l&&e.itemsMatch(l,u);if(l&&(p||f)){const o=n(e.playingAsset),a=(null==o?void 0:o.media)||e.primaryMedia;if(a){const n="primary"===r?a.currentTime:i(l,r,e.playingAsset,"timelinePos","currentTime"),s=t-n,c=(p?n:a.currentTime)+s;if(c>=0&&(!o||p||c<=o.duration))return void(a.currentTime=c)}}if(u){let n=t;if("primary"!==r){const e=t-u[r].start;n=u.start+e}const i=!e.isInterstitial(u);if(e.isInterstitial(l)&&!l.event.appendInPlace||!i&&!u.event.appendInPlace){if(l){const o=e.findItemIndex(l);if(c>o){const t=e.schedule.findJumpRestrictedIndex(o+1,c);if(t>o)return void e.setSchedulePosition(t)}let a=0;if(i)e.timelinePos=n,e.checkBuffer();else{var g;const e=null==u||null==(g=u.event)?void 0:g.assetList;if(e){const n=t-(u[r]||u).start;for(let t=e.length;t--;){const i=e[t];if(i.duration&&n>=i.startOffset&&n{const n=e.effectivePlayingItem;if(e.isInterstitial(n))return n;const i=t();return e.isInterstitial(i)?i:null},c={get currentTime(){const t=l(),n=e.effectivePlayingItem;return n&&n===t?i(n,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-n.playout.start:0},set currentTime(t){const n=l(),i=e.effectivePlayingItem;i&&i===n&&s(t+i.playout.start,"playout")},get duration(){const e=l();return e?e.playout.end-e.playout.start:0},get assetPlayers(){var t;const n=null==(t=l())?void 0:t.event.assetList;return n?n.map((t=>e.getAssetPlayer(t.identifier))):[]},get playingIndex(){var t;const n=null==(t=l())?void 0:t.event;return n&&e.effectivePlayingAsset?n.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return l()}};this.manager={get events(){var t,n;return(null==(t=e.schedule)||null==(n=t.events)?void 0:n.slice(0))||[]},get schedule(){var t,n;return(null==(t=e.schedule)||null==(n=t.items)?void 0:n.slice(0))||[]},get interstitialPlayer(){return l()?c:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const n=t();return e.findItemIndex(n)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const t=e.effectivePlayingItem;return e.findItemIndex(t)},primary:{get bufferedEnd(){return o()},get currentTime(){const t=e.timelinePos;return t>0?t:0},set currentTime(e){s(e,"primary")},get duration(){return a("primary")},get seekableStart(){var t;return(null==(t=e.primaryDetails)?void 0:t.fragmentStart)||0}},integrated:{get bufferedEnd(){return i(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return i(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(e){s(e,"integrated")},get duration(){return a("integrated")},get seekableStart(){var t;return r((null==(t=e.primaryDetails)?void 0:t.fragmentStart)||0,"integrated")}},skip:()=>{const t=e.effectivePlayingItem,n=null==t?void 0:t.event;if(n&&!n.restrictions.skip){const i=e.findItemIndex(t);if(n.appendInPlace){const e=t.playout.start+t.event.duration;s(e+.001,"playout")}else e.advanceAfterAssetEnded(n,i,1/0)}}}}return this.manager}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;const t=this.playingItem,n=null==(e=this.schedule)?void 0:e.items;return!!(this.playbackStarted&&t&&n)&&this.findItemIndex(t)===n.length-1}get playbackStarted(){return null!==this.effectivePlayingItem}get currentTime(){var e,t,n;if(null===this.mediaSelection)return;const i=this.waitingItem||this.playingItem;if(this.isInterstitial(i)&&!i.event.appendInPlace)return;let r=this.media;!r&&null!=(e=this.bufferingItem)&&null!=(t=e.event)&&t.appendInPlace&&(r=this.primaryMedia);const o=null==(n=r)?void 0:n.currentTime;return void 0!==o&&G(o)?o:void 0}get primaryMedia(){var e;return this.media||(null==(e=this.detachedData)?void 0:e.media)||null}isInterstitial(e){return!(null==e||!e.event)}retreiveMediaSource(e,t){const n=this.getAssetPlayer(e);n&&this.transferMediaFromPlayer(n,t)}transferMediaFromPlayer(e,t){const n=e.interstitial.appendInPlace,i=e.media;if(n&&i===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&i)return void(this.detachedData={media:i});const n=e.transferMedia();this.log(`transfer MediaSource from ${e} ${$t(n)}`),this.detachedData=n}else t&&i&&(this.shouldPlay||(this.shouldPlay=!i.paused))}transferMediaTo(e,t){var n,i;if(e.media===t)return;let r=null;const o=this.hls,a=e!==o,s=a&&e.interstitial.appendInPlace,l=null==(n=this.detachedData)?void 0:n.mediaSource;let c;if(o.media)s&&(r=o.transferMedia(),this.detachedData=r),c="Primary";else if(l){const e=this.getBufferingPlayer();e?(r=e.transferMedia(),c=`${e}`):c="detached MediaSource"}else c="detached media";if(!r)if(l)r=this.detachedData,this.log(`using detachedData: MediaSource ${$t(r)}`);else if(!this.detachedData||o.media===t){const e=this.playerQueue;e.length>1&&e.forEach((e=>{if(a&&e.interstitial.appendInPlace!==s){const t=e.interstitial;this.clearInterstitial(e.interstitial,null),t.appendInPlace=!1,t.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${t}`)}})),this.hls.detachMedia(),this.detachedData={media:t}}const u=r&&"mediaSource"in r&&"closed"!==(null==(i=r.mediaSource)?void 0:i.readyState),h=u&&r?r:t;if(this.log(`${u?"transfering MediaSource":"attaching media"} to ${a?e:"Primary"} from ${c}`),h===r){const t=a&&e.assetId===this.schedule.assetIdAtEnd;h.overrides={duration:this.schedule.duration,endOfStream:!a||t,cueRemoval:!a}}e.attachMedia(h)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=e.events;if(!t||this.playbackDisabled||!this.media)return;-1===this.bufferedPos&&(this.bufferedPos=0);const n=this.timelinePos,i=this.effectivePlayingItem;if(-1===n){const n=this.hls.startPosition;if(this.timelinePos=n,t.length&&t[0].cue.pre){const n=e.findEventIndex(t[0].identifier);this.setSchedulePosition(n)}else if(n>=0||!this.primaryLive){const t=this.timelinePos=n>0?n:0,i=e.findItemIndexAtTime(t);this.setSchedulePosition(i)}}else if(i&&!this.playingItem){const t=e.findItemIndex(i);this.setSchedulePosition(t)}}advanceAfterAssetEnded(e,t,n){const i=Va(e,n);if(e.isAssetPastPlayoutLimit(i)){const n=this.schedule.items;if(n){const i=t+1;if(i>=n.length)return void this.setSchedulePosition(-1);const r=e.resumeTime;this.timelinePos=0?n[e]:null,r=this.playingItem,o=this.playingLastItem;if(this.isInterstitial(r)){var a;const l=r.event,c=this.playingAsset,u=null==c?void 0:c.identifier,h=u?this.getAssetPlayer(u):null;if(h&&u&&(!this.eventItemsMatch(r,i)||void 0!==t&&u!==(null==(a=l.assetList)?void 0:a[t].identifier))){var s;const t=l.findAssetIndex(c);this.log(`INTERSTITIAL_ASSET_ENDED ${t+1}/${l.assetList.length} ${Wa(c)}`),this.endedAsset=c,this.playingAsset=null,this.hls.trigger(Y.INTERSTITIAL_ASSET_ENDED,{asset:c,assetListIndex:t,event:l,schedule:n.slice(0),scheduleIndex:e,player:h}),this.retreiveMediaSource(u,i),!h.media||null!=(s=this.detachedData)&&s.mediaSource||h.detachMedia()}if(!this.eventItemsMatch(r,i)&&(this.endedItem=r,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${l} ${Xa(r)}`),l.hasPlayed=!0,this.hls.trigger(Y.INTERSTITIAL_ENDED,{event:l,schedule:n.slice(0),scheduleIndex:e}),l.cue.once)){this.updateSchedule();const e=this.schedule.items;if(i&&e){const n=this.schedule.findItemIndex(i);this.advanceSchedule(n,e,t,r,o)}return}}this.advanceSchedule(e,n,t,r,o)}advanceSchedule(e,t,n,i,r){const o=e>=0?t[e]:null,a=this.primaryMedia,s=this.playerQueue;if(s.length&&s.forEach((t=>{const n=t.interstitial,i=this.schedule.findEventIndex(n.identifier);(ie+1)&&this.clearInterstitial(n,o)})),this.isInterstitial(o)){this.timelinePos=Math.min(Math.max(this.timelinePos,o.start),o.end);const r=o.event;if(void 0===n){const t=Va(r,(n=this.schedule.findAssetIndex(r,this.timelinePos))-1);if(r.isAssetPastPlayoutLimit(t))return void this.advanceAfterAssetEnded(r,e,n);n=t}const s=this.waitingItem;this.assetsBuffered(o,a)||this.setBufferingItem(o);let l=this.preloadAssets(r,n);if(this.eventItemsMatch(o,s||i)||(this.waitingItem=o,this.log(`INTERSTITIAL_STARTED ${Xa(o)} ${r.appendInPlace?"append in place":""}`),this.hls.trigger(Y.INTERSTITIAL_STARTED,{event:r,schedule:t.slice(0),scheduleIndex:e})),!r.assetListLoaded)return void this.log(`Waiting for ASSET-LIST to complete loading ${r}`);if(r.assetListLoader&&(r.assetListLoader.destroy(),r.assetListLoader=void 0),!a)return void this.log(`Waiting for attachMedia to start Interstitial ${r}`);this.waitingItem=this.endedItem=null,this.playingItem=o;const c=r.assetList[n];if(!c){const i=t[e+1],o=this.media;return i&&o&&!this.isInterstitial(i)&&o.currentTime=e.end)&&(n=this.getPrimaryResumption(e,t),this.timelinePos=n),this.attachPrimary(n,e)}if(!n)return;const r=this.schedule.items;r&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${Xa(e)}`),this.hls.trigger(Y.INTERSTITIALS_PRIMARY_RESUMED,{schedule:r.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const n=e.start;if(this.primaryLive){const e=this.primaryDetails;if(0===t)return this.hls.startPosition;if(e&&(ne.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);if(null!=t&&t.hls)return t.hls.bufferedToEnd;return On.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,n){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const i=this.primaryMedia;if(!i)return;const r=this.hls;r.media?this.checkBuffer():(this.transferMediaTo(r,i),n&&this.startLoadingPrimaryAt(e,n)),n||(this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}startLoadingPrimaryAt(e,t){var n;const i=this.hls;!i.loadingEnabled||!i.media||Math.abs(((null==(n=i.mainForwardBufferInfo)?void 0:n.start)||i.media.currentTime)-e)>.5?i.startLoad(e,t):i.bufferingEnabled||i.resumeBuffering()}onManifestLoading(){this.stopLoad(),this.schedule.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(Y.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(Y.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(-1===t.level)return;const n=this.hls.levels[t.level],i=ce(ce({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=i,this.schedule.parseInterstitialDateRanges(i,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const n=this.hls.audioTracks[t.id],i=this.mediaSelection;if(!i)return void(this.altSelection=ce(ce({},this.altSelection),{},{audio:n}));const r=ce(ce({},i),{},{audio:n});this.mediaSelection=r}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],i=this.mediaSelection;if(!i)return void(this.altSelection=ce(ce({},this.altSelection),{},{subtitles:n}));const r=ce(ce({},i),{},{subtitles:n});this.mediaSelection=r}onAudioTrackSwitching(e,t){const n=Kt(t);this.playerQueue.forEach((e=>e.hls.setAudioOption(t)||e.hls.setAudioOption(n)))}onSubtitleTrackSwitch(e,t){const n=Kt(t);this.playerQueue.forEach((e=>e.hls.setSubtitleOption(t)||-1!==t.id&&e.hls.setSubtitleOption(n)))}onBufferCodecs(e,t){const n=t.tracks;n&&(this.requiredTracks=n)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const n=this.playingItem;if(n&&!this.itemsMatch(n,this.bufferingItem)&&!this.isInterstitial(n)){const e=this.timelinePos;this.bufferedPos=e,this.checkBuffer()}}onBufferedToEnd(e){const t=this.schedule.events;if(this.bufferedPos.25){e.event.assetList.forEach(((t,n)=>{e.event.isAssetPastPlayoutLimit(n)&&this.clearAssetPlayer(t.identifier,null)}));const t=e.end+.25,n=On.bufferInfo(this.primaryMedia,t,0);(n.end>t||(n.nextStart||0)>t)&&(this.attachPrimary(t,null),this.flushFrontBuffer(t))}}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var n;return!!t&&(e===t||e.event.identifier===(null==(n=t.event)?void 0:n.identifier))}findItemIndex(e,t){return e?this.schedule.findItemIndex(e,t):-1}updateSchedule(){const e=this.mediaSelection;e&&this.schedule.updateSchedule(e,[])}checkBuffer(e){const t=this.schedule.items;if(!t)return;const n=On.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=n.len<1),this.updateBufferedPos(n.end,t,e)}updateBufferedPos(e,t,n){const i=this.schedule,r=this.bufferingItem;if(this.bufferedPos>e)return;if(1===t.length&&this.itemsMatch(t[0],r))return void(this.bufferedPos=e);const o=this.playingItem,a=this.findItemIndex(o);let s=i.findItemIndexAtTime(e);if(this.bufferedPos=r.end||null!=(l=o.event)&&l.appendInPlace&&e+.01>=o.start)&&(s=i),i-a>1&&!1===(null==r||null==(c=r.event)?void 0:c.appendInPlace))return;if(this.bufferedPos=e,s>n&&s>a)this.bufferedToItem(o);else{const t=this.primaryDetails;this.primaryLive&&t&&e>t.edge-t.targetduration&&o.start{const n=this.getAssetPlayer(e.identifier);return!(null!=n&&n.bufferedInPlaceToEnd(t))}))}setBufferingItem(e){const t=this.bufferingItem,n=this.schedule;if(this.itemsMatch(e,t))this.bufferingItem!==e&&(this.bufferingItem=e);else{const{items:i,events:r}=n;if(!i||!r)return t;const o=this.isInterstitial(e),a=this.getBufferingPlayer();this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos));const s=a?a.remaining:t?t.end-this.timelinePos:0;this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${Xa(e)}`+(t?` (${s.toFixed(2)} remaining)`:"")),this.playbackDisabled||(o?e.event.assetList.forEach((e=>{const t=this.getAssetPlayer(e.identifier);t&&t.resumeBuffering()})):(this.hls.resumeBuffering(),this.playerQueue.forEach((e=>e.pauseBuffering())))),this.hls.trigger(Y.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:r.slice(0),schedule:i.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}return t}bufferedToItem(e,t=0){const n=this.setBufferingItem(e);if(!this.playbackDisabled)if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(null!==n){this.bufferingAsset=null;const t=this.detachedData;if(t)if(t.mediaSource){const t=!0;this.attachPrimary(e.start,e,t)}else this.preloadPrimary(e);else this.preloadPrimary(e)}}preloadPrimary(e){const t=this.findItemIndex(e),n=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(n)}bufferedToEvent(e,t){const n=e.event,i=0===n.assetList.length&&!n.assetListLoader,r=n.cue.once;if(i||!r){const e=this.preloadAssets(n,t);if(null!=e&&e.interstitial.appendInPlace){const i=n.assetList[t],r=this.primaryMedia;i&&r&&this.bufferAssetPlayer(e,r)}}}preloadAssets(e,t){const n=e.assetUrl,i=e.assetList.length,r=0===i&&!e.assetListLoader,o=e.cue.once;if(r){const r=e.timelineStart;if(e.appendInPlace){var a;const t=this.playingItem;this.isInterstitial(t)||(null==t||null==(a=t.nextEvent)?void 0:a.identifier)!==e.identifier||this.flushFrontBuffer(r+.25)}let o,s=0;if(!this.playingItem&&this.primaryLive&&(s=this.hls.startPosition,-1===s&&(s=this.hls.liveSyncPosition||0)),s&&!e.cue.pre&&!e.cue.post){const e=s-r;e>0&&(o=Math.round(1e3*e)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:i} ${e}${o?` live-start: ${s} start-offset: ${o}`:""}`),n)return this.createAsset(e,0,0,r,e.duration,n);const l=this.assetListLoader.loadAssetList(e,o);l&&(e.assetListLoader=l)}else if(!o&&i){for(let n=t;n{this.hls.trigger(Y.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:t})}))}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let n=0;n1){const n=t.duration;n&&e{if(i.live){const t=new Error(`Interstitials MUST be VOD assets ${e}`),i={fatal:!0,type:W.OTHER_ERROR,details:q.INTERSTITIAL_ASSET_ITEM_ERROR,error:t};return void this.handleAssetItemError(i,e,this.schedule.findEventIndex(e.identifier),n,t.message)}const r=i.edge-i.fragmentStart,o=t.duration;(null===o||r>o)&&(this.log(`Interstitial asset "${u}" duration change ${o} > ${r}`),t.duration=r,this.updateSchedule())};p.on(Y.LEVEL_UPDATED,((e,{details:t})=>f(t))),p.on(Y.LEVEL_PTS_UPDATED,((e,{details:t})=>f(t)));const g=(e,t)=>{const n=this.getAssetPlayer(u);if(n&&t.tracks){n.off(Y.BUFFER_CODECS,g),n.tracks=t.tracks;const e=this.primaryMedia;this.bufferingAsset===n.assetItem&&e&&!n.media&&this.bufferAssetPlayer(n,e)}};p.on(Y.BUFFER_CODECS,g);const m=()=>{var n;const i=this.getAssetPlayer(u);if(this.log(`buffered to end of asset ${i}`),!i)return;const r=this.schedule.findEventIndex(e.identifier),o=null==(n=this.schedule.items)?void 0:n[r];if(this.isInterstitial(o)){const n=e.findAssetIndex(t),i=Va(e,n);if(e.isAssetPastPlayoutLimit(i)){var a;const e=null==(a=this.schedule.items)?void 0:a[r+1];e&&this.bufferedToItem(e)}else this.bufferedToItem(o,i)}};p.on(Y.BUFFERED_TO_END,m);const v=t=>()=>{if(!this.getAssetPlayer(u))return;this.shouldPlay=!0;const n=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,n,t)};return p.once(Y.MEDIA_ENDED,v(n)),p.once(Y.PLAYOUT_LIMIT_REACHED,v(1/0)),p.on(Y.ERROR,((t,i)=>{const r=this.getAssetPlayer(u);if(i.details!==q.BUFFER_STALLED_ERROR)this.handleAssetItemError(i,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${i.error} ${e}`);else if(null!=r&&r.media){const t=r.currentTime,n=r.duration-t;t&&e.appendInPlace&&n/r.media.playbackRate<.5?(this.log(`Advancing buffer past end of asset ${u} ${e} at ${r.media.currentTime}`),m()):(this.warn(`Stalled at ${t} of ${t+n} in asset ${u} ${e}`),this.onTimeupdate(),this.checkBuffer(!0))}})),p.on(Y.DESTROYING,(()=>{if(!this.getAssetPlayer(u))return;const t=new Error(`Asset player destroyed unexpectedly ${u}`),i={fatal:!0,type:W.OTHER_ERROR,details:q.INTERSTITIAL_ASSET_ITEM_ERROR,error:t};this.handleAssetItemError(i,e,this.schedule.findEventIndex(e.identifier),n,t.message)})),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${Wa(t)}`),this.hls.trigger(Y.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:p}),p}clearInterstitial(e,t){e.assetList.forEach((e=>{this.clearAssetPlayer(e.identifier,t)})),e.reset()}resetAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);if(-1!==t){this.log(`reset asset player "${e}" after error`);const n=this.playerQueue[t];this.transferMediaFromPlayer(n,null),n.resetDetails()}}clearAssetPlayer(e,t){const n=this.getAssetPlayerQueueIndex(e);if(-1!==n){this.log(`clear asset player "${e}" toSegment: ${t?Xa(t):t}`);const i=this.playerQueue[n];this.transferMediaFromPlayer(i,t),this.playerQueue.splice(n,1),i.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,n,i,r){const{interstitial:o,assetItem:a,assetId:s}=e,l=o.assetList.length,c=this.playingAsset;this.endedAsset=null,this.playingAsset=a,c&&c.identifier===s||(c&&(this.clearAssetPlayer(c.identifier,n[i]),delete c.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${l} ${Wa(a)}`),this.hls.trigger(Y.INTERSTITIAL_ASSET_STARTED,{asset:a,assetListIndex:t,event:o,schedule:n.slice(0),scheduleIndex:i,player:e})),this.bufferAssetPlayer(e,r)}bufferAssetPlayer(e,t){var n,i;const{interstitial:r,assetItem:o}=e,a=this.schedule.findEventIndex(r.identifier),s=null==(n=this.schedule.items)?void 0:n[a];if(!s)return;this.setBufferingItem(s),this.bufferingAsset=o;const l=this.getBufferingPlayer();if(l===e)return;const c=r.appendInPlace;if(c&&!1===(null==l?void 0:l.interstitial.appendInPlace))return;const u=(null==l?void 0:l.tracks)||(null==(i=this.detachedData)?void 0:i.tracks)||this.requiredTracks;if(c&&o!==this.playingAsset){if(!e.tracks)return;if(u&&!ye(u,e.tracks)){const t=new Error(`Asset ${Wa(o)} SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(u)}')`),n={fatal:!0,type:W.OTHER_ERROR,details:q.INTERSTITIAL_ASSET_ITEM_ERROR,error:t},i=r.findAssetIndex(o);return void this.handleAssetItemError(n,r,a,i,t.message)}}this.transferMediaTo(e,t)}handleAssetItemError(e,t,n,i,r){if(e.details===q.BUFFER_STALLED_ERROR)return;const o=t.assetList[i];this.warn(`INTERSTITIAL_ASSET_ERROR ${o?Wa(o):o} ${e.error}`);const a=null==o?void 0:o.identifier,s=this.getAssetPlayerQueueIndex(a),l=this.playerQueue[s]||null,c=this.schedule.items,u=se({},e,{fatal:!1,errorAction:fn(!0),asset:o,assetListIndex:i,event:t,schedule:c,scheduleIndex:n,player:l});if(this.hls.trigger(Y.INTERSTITIAL_ASSET_ERROR,u),!e.fatal)return;const h=this.playingAsset,d=new Error(r);if(o&&(this.clearAssetPlayer(a,null),o.error=d),t.assetList.some((e=>!e.error))){if(t.appendInPlace){for(let e=i;e"} error: ${e.error}`);let i=this.timelinePos;-1===i&&(i=this.hls.startPosition);const r=this.updateItem(n,i);this.itemsMatch(n,r)&&this.clearInterstitial(e,null),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t));const o=this.schedule.findItemIndexAtTime(i);this.setSchedulePosition(o)}else this.checkStart()}onAssetListLoaded(e,t){var n;const i=t.event,r=i.identifier,o=t.assetListResponse.ASSETS;if(!this.schedule.hasEvent(r))return;const a=i.timelineStart,s=i.duration;let l=0;o.forEach(((e,t)=>{const n=parseFloat(e.DURATION);this.createAsset(i,t,l,a+l,n,e.URI),l+=n})),i.duration=l,this.log(`Loaded asset-list with duration: ${l} (was: ${s}) ${i}`);const c=this.waitingItem,u=(null==c?void 0:c.event.identifier)===r;this.updateSchedule();const h=null==(n=this.bufferingItem)?void 0:n.event;if(u){var d;const e=this.schedule.findEventIndex(r),t=null==(d=this.schedule.items)?void 0:d[e];if(t){if(!this.playingItem&&this.timelinePos>t.end){if(this.schedule.findItemIndexAtTime(this.timelinePos)!==e)return i.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${i}`),void this.primaryFallback(i)}this.setBufferingItem(t)}this.setSchedulePosition(e)}else if((null==h?void 0:h.identifier)===r&&h.appendInPlace){const e=i.assetList[0],t=this.getAssetPlayer(e.identifier),n=this.primaryMedia;e&&t&&n&&this.bufferAssetPlayer(t,n)}}onError(e,t){switch(t.details){case q.ASSET_LIST_PARSING_ERROR:case q.ASSET_LIST_LOAD_ERROR:case q.ASSET_LIST_LOAD_TIMEOUT:{const e=t.interstitial;e&&this.primaryFallback(e);break}case q.BUFFER_STALLED_ERROR:this.onTimeupdate(),this.checkBuffer(!0)}}}});function il(e){return e&&"object"==typeof e?Array.isArray(e)?e.map(il):Object.keys(e).reduce(((t,n)=>(t[n]=il(e[n]),t)),{}):e}function rl(e,t){const n=e.loader;if(n!==Xs&&n!==tl)t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1;else{(function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(e){}return!1})()&&(e.loader=Xs,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}}class ol extends In{constructor(e,t){super("gap-controller",e.logger),this.hls=null,this.fragmentTracker=null,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var e;null!=(e=this.media)&&e.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{var e;this.hls&&(this.ended=(null==(e=this.media)?void 0:e.currentTime)||1,this.hls.trigger(Y.MEDIA_ENDED,{stalled:!1}))},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;e&&(e.on(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Y.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Y.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(100),this.mediaSource=t.mediaSource;const n=this.media=t.media;Ta(n,"playing",this.onMediaPlaying),Ta(n,"waiting",this.onMediaWaiting),Ta(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(Da(n,"playing",this.onMediaPlaying),Da(n,"waiting",this.onMediaWaiting),Da(n,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var e;if(null==(e=this.media)||!e.readyState||!this.hasBuffered)return;const t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}poll(e,t){var n,i;const r=null==(n=this.hls)?void 0:n.config;if(!r)return;const o=this.media;if(!o)return;const{seeking:a}=o,s=this.seeking&&!a,l=!this.seeking&&a,c=o.paused&&!a||o.ended||0===o.playbackRate;if(this.seeking=a,e!==t)return t&&(this.ended=0),this.moved=!0,a||(this.nudgeRetry=0,r.nudgeOnVideoHole&&!c&&e>t&&this.nudgeOnVideoHole(e,t)),void(0===this.waiting&&this.stallResolved(e));if(l||s)return void(s&&this.stallResolved(e));if(c)return this.nudgeRetry=0,this.stallResolved(e),void(!this.ended&&o.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(Y.MEDIA_ENDED,{stalled:!1})));if(!On.getBuffered(o).length)return void(this.nudgeRetry=0);const u=On.bufferInfo(o,e,0),h=u.nextStart||0,d=this.fragmentTracker;if(a&&d&&this.hls){const t=al(this.hls.inFlightFragments,e),n=u.len>2,i=!h||t||h-e>2&&!d.getPartialFragment(e);if(n||i)return;this.moved=!1}const p=null==(i=this.hls)?void 0:i.latestLevelDetails;if(!this.moved&&null!==this.stalled&&d){if(!(u.len>0)&&!h)return;const t=Math.max(h,u.start||0)-e,n=!(null==p||!p.live)?2*p.targetduration:2,i=d.getPartialFragment(e);if(t>0&&(t<=n||i))return void(o.paused||this._trySkipBufferHole(i))}const f=r.detectStallWithCurrentTimeMs,g=self.performance.now(),m=this.waiting;let v=this.stalled;if(null===v){if(!(m>0&&g-m=f||m)&&this.hls){var b;if("ended"===(null==(b=this.mediaSource)?void 0:b.readyState)&&(null==p||!p.live)&&Math.abs(e-((null==p?void 0:p.edge)||0))<1){if(this.ended)return;return this.ended=e||1,void this.hls.trigger(Y.MEDIA_ENDED,{stalled:!0})}if(this._reportStall(u),!this.media||!this.hls)return}const w=On.bufferInfo(o,e,r.maxBufferHole);this._tryFixBufferStall(w,y,e)}stallResolved(e){const t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){const n=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(n)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(Y.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var n;const i=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&null!=(n=this.buffered.audio)&&n.length&&i&&i.length>1&&e>i.end(0)){const n=On.bufferedInfo(On.timeRangesToArray(this.buffered.audio),e,0);if(n.len>1&&t>=n.start){const n=On.timeRangesToArray(i),r=On.bufferedInfo(n,t,0).bufferedIndex;if(r>-1&&rr)&&o-i<1&&e-i<2){const n=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${i} -> ${o} buffered index: ${t}`);this.warn(n.message),this.media.currentTime+=1e-6;const r=this.fragmentTracker.getPartialFragment(e)||void 0,a=On.bufferInfo(this.media,e,0);this.hls.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:n,reason:n.message,frag:r,buffer:a.len,bufferInfo:a})}}}}}_tryFixBufferStall(e,t,n){var i,r;const{fragmentTracker:o,media:a}=this,s=null==(i=this.hls)?void 0:i.config;if(!a||!o||!s)return;const l=null==(r=this.hls)?void 0:r.latestLevelDetails,c=o.getPartialFragment(n);if(c||null!=l&&l.live&&n1&&e.len>s.maxBufferHole||e.nextStart&&(e.nextStart-n1e3*s.highBufferWatchdogPeriod||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}adjacentTraversal(e,t){const n=this.fragmentTracker,i=e.nextStart;if(n&&i){const e=n.getFragAtPos(t,te),r=n.getFragAtPos(i,te);if(e&&r)return r.sn-e.sn<2}return!1}_reportStall(e){const{hls:t,media:n,stallReported:i,stalled:r}=this;if(!i&&null!==r&&n&&t){this.stallReported=!0;const i=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${$t(e)})`);this.warn(i.message),t.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:e.len,bufferInfo:e,stalled:{start:r}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:n,media:i}=this,r=null==(t=this.hls)?void 0:t.config;if(!i||!n||!r)return 0;const o=i.currentTime,a=On.bufferInfo(i,o,0),s=o0&&a.len<1&&i.readyState<3,u=s-o;if(u>0&&(t||c)){if(u>r.maxBufferHole){let t=!1;if(0===o){const e=n.getAppendedFrag(0,te);e&&s{const e=ll();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class hl{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(Y.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:e}=this;e.on(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(Y.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(Y.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(Y.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(Y.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(Y.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(Y.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}onMediaAttaching(e,t){var n;this.media=t.media,!1===(null==(n=t.overrides)?void 0:n.cueRemoval)&&(this.removeCues=!1)}onMediaAttached(){const e=this.hls.latestLevelDetails;e&&this.updateDateRangeCues(e)}onMediaDetaching(e,t){this.media=null;!!t.transferMedia||(this.id3Track&&(this.removeCues&&Oa(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;tul&&(i=ul);i-n<=0&&(i=n+.25);for(let e=0;ee.type===$r.audioId3&&s:"video"===i?e=>e.type===$r.emsg&&a:e=>e.type===$r.audioId3&&s||e.type===$r.emsg&&a,Fa(r,t,n,e)}}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.media||!e.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{id3Track:n}=this,{dateRanges:i}=e,r=Object.keys(i);let o=this.dateRangeCuesAppended;var a;if(n&&t)if(null!=(a=n.cues)&&a.length){const e=Object.keys(o).filter((e=>!r.includes(e)));for(let t=e.length;t--;){const i=e[t],r=o[i].cues;delete o[i],Object.keys(r).forEach((e=>{try{const t=r[e];t.removeEventListener("enter",this.onEventCueEnter),n.removeCue(t)}catch(e){}}))}}else o=this.dateRangeCuesAppended={};const s=e.fragments[e.fragments.length-1];if(0===r.length||!G(null==s?void 0:s.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const l=ll();for(let e=0;e{if(t!==n.id){const r=i[t];if(r.class===n.class&&r.startDate>n.startDate&&(!e||n.startDate.01&&(r.startTime=a,r.endTime=p);else if(l){let e=n.attr[i];Un(i)&&(c=e,e=Uint8Array.from(c.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer);const r=cl(l,a,p,{key:i,data:e},$r.dateRange);r&&(r.id=t,this.id3Track.addCue(r),h[i]=r,this.hls.config.interstitialsController&&("X-ASSET-LIST"!==i&&"X-ASSET-URL"!==i||r.addEventListener("enter",this.onEventCueEnter)))}}o[t]={cues:h,dateRange:n,durationKnown:d}}var c,u}}class dl{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:e}=this,t=this.levelDetails;if(!e||!t)return;this.currentTime=e.currentTime;const n=this.computeLatency();if(null===n)return;this._latency=n;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:r}=this.config;if(!i||1===r||!t.live)return;const o=this.targetLatency;if(null===o)return;const a=n-o;if(a.05&&this.forwardBufferLength>1){const t=Math.min(2,Math.max(1,r)),n=Math.round(2/(1+Math.exp(-.75*a-this.edgeStalled))*20)/20,i=Math.min(t,Math.max(1,n));this.changeMediaPlaybackRate(e,i)}else 1!==e.playbackRate&&0!==e.playbackRate&&this.changeMediaPlaybackRate(e,1)},this.hls=e,this.config=e.config,this.registerListeners()}get levelDetails(){var e;return(null==(e=this.hls)?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:e}=this;if(void 0!==e.liveMaxLatencyDuration)return e.liveMaxLatencyDuration;const t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const e=this.levelDetails;if(null===e||null===this.hls)return null;const{holdBack:t,partHoldBack:n,targetduration:i}=e,{liveSyncDuration:r,liveSyncDurationCount:o,lowLatencyMode:a}=this.config,s=this.hls.userConfig;let l=a&&n||t;(this._targetLatencyUpdated||s.liveSyncDuration||s.liveSyncDurationCount||0===l)&&(l=void 0!==r?r:o*i);const c=i;return l+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,c)}set targetLatency(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency;if(null===e||null===t)return null;const n=this.levelDetails;if(null===n)return null;const i=n.edge,r=e-t-this.edgeStalled,o=i-n.totalduration,a=i-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(o,r),a)}get drift(){const e=this.levelDetails;return null===e?1:e.drift}get edgeStalled(){const e=this.levelDetails;if(null===e)return 0;const t=3*(this.config.lowLatencyMode&&e.partTarget||e.targetduration);return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e}=this,t=this.levelDetails;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;e&&(e.on(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(Y.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(Y.ERROR,this.onError,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(e,t){var n;t.details===q.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&null!=(n=this.levelDetails)&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var n,i;e.playbackRate!==t&&(null==(n=this.hls)||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${null==(i=this.targetLatency)?void 0:i.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return null===e?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return null===e?null:e-this.currentTime}}class pl extends Ko{constructor(e,t){super(e,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=t,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(Y.LEVEL_LOADED,this.onLevelLoaded,this),e.on(Y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(Y.FRAG_BUFFERED,this.onFragBuffered,this),e.on(Y.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(Y.LEVEL_LOADED,this.onLevelLoaded,this),e.off(Y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(Y.FRAG_BUFFERED,this.onFragBuffered,this),e.off(Y.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach((e=>{e.loadError=0,e.fragmentError=0})),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){const n=this.hls.config.preferManagedMediaSource,i=[],r={},o={};let a=!1,s=!1,l=!1;t.levels.forEach((e=>{const t=e.attrs;let{audioCodec:c,videoCodec:u}=e;c&&(e.audioCodec=c=xt(c,n)||void 0),u&&(u=e.videoCodec=function(e){const t=e.split(",");for(let e=0;e2&&"avc1"===n[0]&&(t[e]=`avc1.${parseInt(n[1]).toString(16)}${("000"+parseInt(n[2]).toString(16)).slice(-4)}`)}return t.join(",")}(u));const{width:h,height:d,unknownCodecs:p}=e;let f=p?p.length:0;if(p)for(let t=f;t--;){const n=p[t];this.isAudioSupported(n)?(e.audioCodec=c=c?`${c},${n}`:n,f--,dt.audio[c.substring(0,4)]=2):this.isVideoSupported(n)&&(e.videoCodec=u=u?`${u},${n}`:n,f--,dt.video[u.substring(0,4)]=2)}if(a||(a=!(!h||!d)),s||(s=!!u),l||(l=!!c),f||c&&!this.isAudioSupported(c)||u&&!this.isVideoSupported(u))return void this.log(`Some or all CODECS not supported "${t.CODECS}"`);const{CODECS:g,"FRAME-RATE":m,"HDCP-LEVEL":v,"PATHWAY-ID":y,RESOLUTION:b,"VIDEO-RANGE":w}=t,x=`${`${y||"."}-`}${e.bitrate}-${b}-${m}-${g}-${w}-${v}`;if(r[x])if(r[x].uri===e.url||e.attrs["PATHWAY-ID"])r[x].addGroupId("audio",t.AUDIO),r[x].addGroupId("text",t.SUBTITLES);else{const t=o[x]+=1;e.attrs["PATHWAY-ID"]=new Array(t+1).join(".");const n=this.createLevel(e);r[x]=n,i.push(n)}else{const t=this.createLevel(e);r[x]=t,o[x]=1,i.push(t)}})),this.filterAndSortMediaOptions(i,t,a,s,l)}createLevel(e){const t=new Ft(e),n=e.supplemental;if(null!=n&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){const e=new Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(e.message),t.supportedResult=Et(e,[])}return t}isAudioSupported(e){return ft(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return ft(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,i,r){let o=[],a=[],s=e;if((n||i)&&r&&(s=s.filter((({videoCodec:e,videoRange:t,width:n,height:i})=>{return(!!e||!(!n||!i))&&(!!(r=t)&&Dt.indexOf(r)>-1);var r}))),0===s.length)return void Promise.resolve().then((()=>{if(this.hls){let e="no level with compatible codecs found in manifest",n=e;t.levels.length&&(n=`one or more CODECS in variant not supported: ${$t(t.levels.map((e=>e.attrs.CODECS)).filter(((e,t,n)=>n.indexOf(e)===t)))}`,this.warn(n),e+=` (${n})`);const i=new Error(e);this.hls.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:i,reason:n})}}));t.audioTracks&&(o=t.audioTracks.filter((e=>!e.audioCodec||this.isAudioSupported(e.audioCodec))),fl(o)),t.subtitles&&(a=t.subtitles,fl(a));const l=s.slice(0);s.sort(((e,t)=>{if(e.attrs["HDCP-LEVEL"]!==t.attrs["HDCP-LEVEL"])return(e.attrs["HDCP-LEVEL"]||"")>(t.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&e.height!==t.height)return e.height-t.height;if(e.frameRate!==t.frameRate)return e.frameRate-t.frameRate;if(e.videoRange!==t.videoRange)return Dt.indexOf(e.videoRange)-Dt.indexOf(t.videoRange);if(e.videoCodec!==t.videoCodec){const n=vt(e.videoCodec),i=vt(t.videoCodec);if(n!==i)return i-n}if(e.uri===t.uri&&e.codecSet!==t.codecSet){const n=yt(e.codecSet),i=yt(t.codecSet);if(n!==i)return i-n}return e.averageBitrate!==t.averageBitrate?e.averageBitrate-t.averageBitrate:0}));let c=l[0];if(this.steering&&(s=this.steering.filterParsedLevels(s),s.length!==l.length))for(let e=0;en&&n===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=e)}break}const h=r&&!i,d=this.hls.config,p=!(!d.audioStreamController||!d.audioTrackController),f={levels:s,audioTracks:o,subtitleTracks:a,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:r,video:i,altAudio:p&&!h&&o.some((e=>!!e.url))};this.hls.trigger(Y.MANIFEST_PARSED,f)}get levels(){return 0===this._levels.length?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(0===t.length)return;if(e<0||e>=t.length){const n=new Error("invalid level idx"),i=e<0;if(this.hls.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.LEVEL_SWITCH_ERROR,level:e,fatal:i,error:n,reason:n.message}),i)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,i=this.currentLevel,r=i?i.attrs["PATHWAY-ID"]:void 0,o=t[e],a=o.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=o,n===e&&i&&r===a)return;this.log(`Switching to level ${e} (${o.height?o.height+"p ":""}${o.videoRange?o.videoRange+" ":""}${o.codecSet?o.codecSet+" ":""}@${o.bitrate})${a?" with Pathway "+a:""} from level ${n}${r?" with Pathway "+r:""}`);const s={level:e,attrs:o.attrs,details:o.details,bitrate:o.bitrate,averageBitrate:o.averageBitrate,maxBitrate:o.maxBitrate,realBitrate:o.realBitrate,width:o.width,height:o.height,codecSet:o.codecSet,audioCodec:o.audioCodec,videoCodec:o.videoCodec,audioGroups:o.audioGroups,subtitleGroups:o.subtitleGroups,loaded:o.loaded,loadError:o.loadError,fragmentError:o.fragmentError,name:o.name,id:o.id,uri:o.uri,url:o.url,urlId:0,audioGroupIds:o.audioGroupIds,textGroupIds:o.textGroupIds};this.hls.trigger(Y.LEVEL_SWITCHING,s);const l=o.details;if(!l||l.live){const e=this.switchParams(o.uri,null==i?void 0:i.details,l);this.loadPlaylist(e)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,void 0===this._startLevel&&(this._startLevel=e),-1!==e&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(void 0===this._startLevel){const e=this.hls.config.startLevel;return void 0!==e?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){const t=this.steering.pathways(),n=e.filter((e=>-1!==t.indexOf(e)));if(e.length<1)return void this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);this.steering.pathwayPriority=n}}onError(e,t){!t.fatal&&t.context&&t.context.type===Q&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(void 0!==t&&t.type===te){const e=t.elementaryStreams;if(!Object.keys(e).some((t=>!!e[t])))return;const n=this._levels[t.level];null!=n&&n.loadError&&(this.log(`Resetting level error count of ${n.loadError} on frag buffered`),n.loadError=0)}}onLevelLoaded(e,t){var n;const{level:i,details:r}=t,o=t.levelInfo;var a;if(!o)return this.warn(`Invalid level index ${i}`),void(null!=(a=t.deliveryDirectives)&&a.skip&&(r.deltaUpdateFailed=!0));if(o===this.currentLevel||t.withoutMultiVariant){0===o.fragmentError&&(o.loadError=0);let e=o.details;e===t.details&&e.advanced&&(e=void 0),this.playlistLoaded(i,t,e)}else null!=(n=t.deliveryDirectives)&&n.skip&&(r.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=this.getUrlWithDirectives(e.uri,t),i=this.currentLevelIndex,r=e.attrs["PATHWAY-ID"],o=e.details,a=null==o?void 0:o.age;this.log(`Loading level index ${i}${void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:""}${r?" Pathway "+r:""}${a&&o.live?" age "+a.toFixed(1)+(o.type?" "+o.type||0:""):""} ${n}`),this.hls.trigger(Y.LEVEL_LOADING,{url:n,level:i,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(1===this._levels.length)return;const n=this._levels.filter(((t,n)=>n!==e||(this.steering&&this.steering.removeLevel(t),t===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,t.details&&t.details.fragments.forEach((e=>e.level=-1))),!1)));Ui(n),this._levels=n,this.currentLevelIndex>-1&&null!=(t=this.currentLevel)&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const i=n.length-1;this._firstLevel=Math.min(this._firstLevel,i),this._startLevel&&(this._startLevel=Math.min(this._startLevel,i)),this.hls.trigger(Y.LEVELS_UPDATED,{levels:n})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:n}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(Y.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function fl(e){const t={};e.forEach((e=>{const n=e.groupId||"";e.id=t[n]=t[n]||0,t[n]++}))}function gl(){return self.SourceBuffer||self.WebKitSourceBuffer}function ml(){if(!ve())return!1;const e=gl();return!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove}class vl extends hr{constructor(e,t,n){super(e,t,n,"stream-controller",te),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const e=this.media,t=e?e.currentTime:null;if(null===t||!G(t))return;if(this.log(`Media seeked to ${t.toFixed(3)}`),!this.getBufferedFrag(t))return;const n=this.getFwdBufferInfoAtPos(e,t,te,0);null!==n&&0!==n.len?this.tick():this.warn(`Main forward buffer length at ${t} on "seeked" event ${n?n.len:"empty"})`)},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Y.LEVEL_LOADING,this.onLevelLoading,this),e.on(Y.LEVEL_LOADED,this.onLevelLoaded,this),e.on(Y.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(Y.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(Y.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(Y.BUFFER_CREATED,this.onBufferCreated,this),e.on(Y.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(Y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(Y.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Y.LEVEL_LOADED,this.onLevelLoaded,this),e.off(Y.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(Y.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(Y.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(Y.BUFFER_CREATED,this.onBufferCreated,this),e.off(Y.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(Y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(Y.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(e,t){if(this.levels){const{lastCurrentTime:n,hls:i}=this;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){let e=i.startLevel;-1===e&&(i.config.testBandwidth&&this.levels.length>1?(e=0,this.bitrateTest=!0):e=i.firstAutoLevel),i.nextLoadLevel=e,this.level=i.loadLevel,this._hasEnoughToStart=!!t}n>0&&-1===e&&!t&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=er,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=Ji}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case ur:{const{levels:e,level:t}=this,n=null==e?void 0:e[t],i=null==n?void 0:n.details;if(i&&(!i.live||this.levelLastLoaded===n&&!this.waitForLive(n))){if(this.waitForCdnTuneIn(i))break;this.state=er;break}if(this.hls.nextLoadLevel!==this.level){this.state=er;break}break}case ir:{var e;const t=self.performance.now(),n=this.retryDate;if(!n||t>=n||null!=(e=this.media)&&e.seeking){const{levels:e,level:t}=this,n=null==e?void 0:e[t];this.resetStartWhenNotLoaded(n||null),this.state=er}}}this.state===er&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),null!=(e=this.media)&&e.readyState&&!1===this.media.seeking&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:i}=this;if(null===t||!i&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;const r=this.buffering?e.nextLoadLevel:e.loadLevel;if(null==n||!n[r])return;const o=n[r],a=this.getMainFwdBufferInfo();if(null===a)return;const s=this.getLevelDetails();if(s&&this._streamEnded(a,s)){const e={};return 2===this.altAudio&&(e.type="video"),this.hls.trigger(Y.BUFFER_EOS,e),void(this.state=sr)}if(!this.buffering)return;e.loadLevel!==r&&-1===e.manualLevel&&this.log(`Adapting to level ${r} from level ${this.level}`),this.level=e.nextLoadLevel=r;const l=o.details;if(!l||this.state===ur||this.waitForLive(o))return this.level=r,this.state=ur,void(this.startFragRequested=!1);const c=a.len,u=this.getMaxBufferLength(o.maxBitrate);if(c>=u)return;this.backtrackFragment&&this.backtrackFragment.start>a.end&&(this.backtrackFragment=null);const h=this.backtrackFragment?this.backtrackFragment.start:a.end;let d=this.getNextFragment(h,l);if(this.couldBacktrack&&!this.fragPrevious&&d&&Be(d)&&this.fragmentTracker.getState(d)!==yn){var p;const e=(null!=(p=this.backtrackFragment)?p:d).sn-l.startSN,t=l.fragments[e-1];t&&d.cc===t.cc&&(d=t,this.fragmentTracker.removeFragment(t))}else this.backtrackFragment&&a.len&&(this.backtrackFragment=null);if(d&&this.isLoopLoading(d,h)){if(!d.gap){const e=this.audioOnly&&!this.altAudio?Te:De,t=(e===De?this.videoBuffer:this.mediaBuffer)||this.media;t&&this.afterBufferFlushed(t,e,te)}d=this.getNextFragmentLoopLoading(d,l,a,te,u)}d&&(!d.initSegment||d.initSegment.data||this.bitrateTest||(d=d.initSegment),this.loadFragment(d,o,h))}loadFragment(e,t,n){const i=this.fragmentTracker.getState(e);i===gn||i===vn?Be(e)?this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):super.loadFragment(e,t,n):this._loadInitSegment(e,t):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,te)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:e,media:t}=this;if(null!=t&&t.readyState){let n;const i=this.getAppendedFrag(t.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);const r=this.getLevelDetails();if(null!=r&&r.live){const e=this.getMainFwdBufferInfo();if(!e||e.len<2*r.targetduration)return}if(!t.paused&&e){const t=e[this.hls.nextLoadLevel],i=this.fragLastKbps;n=i&&this.fragCurrent?this.fragCurrent.duration*t.maxBitrate/(1e3*i)+1:0}else n=0;const o=this.getBufferedFrag(t.currentTime+n);if(o){const e=this.followingBufferedFrag(o);if(e){this.abortCurrentFrag();const t=e.maxStartPTS?e.maxStartPTS:e.start,n=e.duration,i=Math.max(o.end,t+Math.min(Math.max(n-this.config.maxFragLookUpTolerance,n*(this.couldBacktrack?.5:.125)),n*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(i,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case tr:case nr:case ir:case or:case ar:this.state=er}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,2===this.altAudio?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const n=t.media;Ta(n,"playing",this.onMediaPlaying),Ta(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(Da(n,"playing",this.onMediaPlaying),Da(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(e,t);!!t.transferMedia||(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(Y.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(e,t){let n=!1,i=!1;t.levels.forEach((e=>{const t=e.audioCodec;t&&(n=n||-1!==t.indexOf("mp4a.40.2"),i=i||-1!==t.indexOf("mp4a.40.5"))})),this.audioCodecSwitch=n&&i&&!function(){var e;const t=gl();return"function"==typeof(null==t||null==(e=t.prototype)?void 0:e.changeType)}(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){const{levels:n}=this;if(!n||this.state!==er)return;const i=t.levelInfo;(!i.details||i.details.live&&(this.levelLastLoaded!==i||i.details.expired)||this.waitForCdnTuneIn(i.details))&&(this.state=ur)}onLevelLoaded(e,t){var n;const{levels:i,startFragRequested:r}=this,o=t.level,a=t.details,s=a.totalduration;if(!i)return void this.warn(`Levels were reset while loading level ${o}`);this.log(`Level ${o} loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""}, cc [${a.startCC}, ${a.endCC}] duration:${s}`);const l=t.levelInfo,c=this.fragCurrent;!c||this.state!==nr&&this.state!==ir||c.level!==t.level&&c.loader&&this.abortCurrentFrag();let u=0;if(a.live||null!=(n=l.details)&&n.live){var h;if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;u=this.alignPlaylists(a,l.details,null==(h=this.levelLastLoaded)?void 0:h.details)}if(l.details=a,this.levelLastLoaded=l,r||this.setStartPosition(a,u),this.hls.trigger(Y.LEVEL_UPDATED,{details:a,level:o}),this.state===ur){if(this.waitForCdnTuneIn(a))return;this.state=er}r&&a.live&&this.synchronizeToLiveEdge(a),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const i=this.hls.liveSyncPosition,r=this.getLoadPosition(),o=e.fragmentStart,a=e.edge,s=r>=o-t.maxFragLookUpTolerance&&r<=a;if(null!==i&&n.duration>i&&(r{var e;null==(e=this.hls)||e.trigger(Y.AUDIO_TRACK_SWITCHED,t)})),void n.trigger(Y.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});n.trigger(Y.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=qt(t.url,this.hls);if(n){const e=this.videoBuffer;e&&this.mediaBuffer!==e&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=e)}this.altAudio=n?2:0,this.tick()}onBufferCreated(e,t){const n=t.tracks;let i,r,o=!1;for(const e in n){const t=n[e];if("main"===t.id){if(r=e,i=t,"video"===e){const t=n[e];t&&(this.videoBuffer=t.buffer)}}else o=!0}o&&i?(this.log(`Alternate track found, use ${r}.buffered to schedule main fragment loading`),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:i}=t,r=n.type===te;if(r){if(this.fragContextChanged(n))return this.warn(`Fragment ${n.sn}${i?" p: "+i.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),void(this.state===ar&&(this.state=er));const e=i?i.stats:n.stats;this.fragLastKbps=Math.round(8*e.total/(e.buffering.end-e.loading.first)),Be(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,i)}const o=this.media;o&&(!this._hasEnoughToStart&&On.getBuffered(o).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),r&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal)this.state=lr;else switch(t.details){case q.FRAG_GAP:case q.FRAG_PARSING_ERROR:case q.FRAG_DECRYPT_ERROR:case q.FRAG_LOAD_ERROR:case q.FRAG_LOAD_TIMEOUT:case q.KEY_LOAD_ERROR:case q.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(te,t);break;case q.LEVEL_LOAD_ERROR:case q.LEVEL_LOAD_TIMEOUT:case q.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==ur||(null==(n=t.context)?void 0:n.type)!==Q||(this.state=er);break;case q.BUFFER_ADD_CODEC_ERROR:case q.BUFFER_APPEND_ERROR:if("main"!==t.parent)return;this.resetLoadingState();break;case q.BUFFER_FULL_ERROR:if("main"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case q.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}onFragLoadEmergencyAborted(){this.state=er,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==Te||!this.altAudio){const e=(t===De?this.videoBuffer:this.mediaBuffer)||this.media;e&&(this.afterBufferFlushed(e,t,te),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,-1===this.level&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let n=this.startPosition;if(n>=0&&t0&&(s{const{hls:n}=this,i=null==e?void 0:e.frag;if(!i||this.fragContextChanged(i))return;t.fragmentError=0,this.state=er,this.startFragRequested=!1,this.bitrateTest=!1;const r=i.stats;r.parsing.start=r.parsing.end=r.buffering.start=r.buffering.end=self.performance.now(),n.trigger(Y.FRAG_LOADED,e),i.bitrateTest=!1}))}_handleTransmuxComplete(e){var t;const n=this.playlistType,{hls:i}=this,{remuxResult:r,chunkMeta:o}=e,a=this.getCurrentContext(o);if(!a)return void this.resetWhenMissingContext(o);const{frag:s,part:l,level:c}=a,{video:u,text:h,id3:d,initSegment:p}=r,{details:f}=c,g=this.altAudio?void 0:r.audio;if(this.fragContextChanged(s))this.fragmentTracker.removeFragment(s);else{if(this.state=or,p){if(null!=p&&p.tracks){const e=s.initSegment||s;this._bufferInitSegment(c,p.tracks,e,o),i.trigger(Y.FRAG_PARSING_INIT_SEGMENT,{frag:e,id:n,tracks:p.tracks})}const e=p.initPTS,t=p.timescale;G(e)&&(this.initPTS[s.cc]={baseTime:e,timescale:t},i.trigger(Y.INIT_PTS_FOUND,{frag:s,id:n,initPTS:e,timescale:t}))}if(u&&f){g&&"audiovideo"===u.type&&this.logMuxedErr(s);const e=f.fragments[s.sn-1-f.startSN],t=s.sn===f.startSN,n=!e||s.cc>e.cc;if(!1!==r.independent){const{startPTS:e,endPTS:i,startDTS:r,endDTS:a}=u;if(l)l.elementaryStreams[u.type]={startPTS:e,endPTS:i,startDTS:r,endDTS:a};else if(u.firstKeyFrame&&u.independent&&1===o.id&&!n&&(this.couldBacktrack=!0),u.dropped&&u.independent){const r=this.getMainFwdBufferInfo(),o=(r?r.end:this.getLoadPosition())+this.config.maxBufferHole,l=u.firstKeyFramePTS?u.firstKeyFramePTS:e;if(!t&&o2&&(s.gap=!0);s.setElementaryStreamInfo(u.type,e,i,r,a),this.backtrackFragment&&(this.backtrackFragment=s),this.bufferFragmentData(u,s,l,o,t||n)}else{if(!t&&!n)return void this.backtrack(s);s.gap=!0}}if(g){const{startPTS:e,endPTS:t,startDTS:n,endDTS:i}=g;l&&(l.elementaryStreams[Te]={startPTS:e,endPTS:t,startDTS:n,endDTS:i}),s.setElementaryStreamInfo(Te,e,t,n,i),this.bufferFragmentData(g,s,l,o)}if(f&&null!=d&&null!=(t=d.samples)&&t.length){const e={id:n,frag:s,details:f,samples:d.samples};i.trigger(Y.FRAG_PARSING_METADATA,e)}if(f&&h){const e={id:n,frag:s,details:f,samples:h.samples};i.trigger(Y.FRAG_PARSING_USERDATA,e)}}}logMuxedErr(e){this.warn(`${Be(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,i){if(this.state!==or)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));const{audio:r,video:o,audiovideo:a}=t;if(r){let n=St(r.codec,e.audioCodec);"mp4a"===n&&(n="mp4a.40.5");const i=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){n&&(n=-1!==n.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5");const e=r.metadata;e&&"channelCount"in e&&1!==(e.channelCount||1)&&-1===i.indexOf("firefox")&&(n="mp4a.40.5")}n&&-1!==n.indexOf("mp4a.40.5")&&-1!==i.indexOf("android")&&"audio/mpeg"!==r.container&&(n="mp4a.40.2",this.log(`Android: force audio codec to ${n}`)),e.audioCodec&&e.audioCodec!==n&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${n}"`),r.levelCodec=n,r.id=te,this.log(`Init audio buffer, container:${r.container}, codecs[selected/level/parsed]=[${n||""}/${e.audioCodec||""}/${r.codec}]`),delete t.audiovideo}if(o){o.levelCodec=e.videoCodec,o.id=te;const n=o.codec;if(4===(null==n?void 0:n.length))switch(n){case"hvc1":case"hev1":o.codec="hvc1.1.6.L120.90";break;case"av01":o.codec="av01.0.04M.08";break;case"avc1":o.codec="avc1.42e01e"}this.log(`Init video buffer, container:${o.container}, codecs[level/parsed]=[${e.videoCodec||""}/${n}]${o.codec!==n?" parsed-corrected="+o.codec:""}${o.supplemental?" supplemental="+o.supplemental:""}`),delete t.audiovideo}a&&(this.log(`Init audiovideo buffer, container:${a.container}, codecs[level/parsed]=[${e.codecs}/${a.codec}]`),delete t.video,delete t.audio);const s=Object.keys(t);if(s.length){if(this.hls.trigger(Y.BUFFER_CODECS,t),!this.hls)return;s.forEach((e=>{const r=t[e].initSegment;null!=r&&r.byteLength&&this.hls.trigger(Y.BUFFER_APPENDING,{type:e,data:r,frag:n,part:null,chunkMeta:i,parent:n.type})}))}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&2===this.altAudio?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,te)}get maxBufferLength(){const{levels:e,level:t}=this,n=null==e?void 0:e[t];return n?this.getMaxBufferLength(n.maxBitrate):this.config.maxBufferLength}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=er}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&!1===e.seeking){const n=e.currentTime;if(On.isBuffered(e,n)?t=this.getAppendedFrag(n):On.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;const e=this.fragPlaying,n=t.level;e&&t.sn===e.sn&&e.level===n||(this.fragPlaying=t,this.hls.trigger(Y.FRAG_CHANGED,{frag:t}),e&&e.level===n||this.hls.trigger(Y.LEVEL_SWITCHED,{level:n}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;return G(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;if(G(t)){const e=this.getLevelDetails(),n=this.currentFrag||(e?Xt(null,e.fragments,t):null);if(n){const e=n.programDateTime;if(null!==e){const i=e+1e3*(t-n.start);return new Date(i)}}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class yl{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyUriToKeyInfo){const i=this.keyUriToKeyInfo[n].loader;if(i){var t;if(e&&e!==(null==(t=i.context)?void 0:t.frag.type))return;i.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=q.KEY_LOAD_ERROR,n,i,r){return new Nn({type:W.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:r,error:n,networkDetails:i})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length)if(t.length){const{sn:n,cc:i}=e;for(let e=0;e{if(r.setKeyFormat(e),this.emeController&&this.config.requireKeySystemAccessOnStart){const t=ai(e);if(t)return this.emeController.getKeySystemAccess([t])}}))}}else if(this.config.requireKeySystemAccessOnStart){const e=pi(this.config);if(e.length)return this.emeController.getKeySystemAccess(e)}return null}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then((t=>this.loadInternal(e,t))):this.loadInternal(e)}loadInternal(e,t){var n,i;t&&e.setKeyFormat(t);const r=e.decryptdata;if(!r){const n=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,q.KEY_LOAD_ERROR,n))}const o=r.uri;if(!o)return Promise.reject(this.createKeyLoadError(e,q.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${o}"`)));let a=this.keyUriToKeyInfo[o];if(null!=(n=a)&&n.decryptdata.key)return r.key=a.decryptdata.key,Promise.resolve({frag:e,keyInfo:a});var s;if(null!=(i=a)&&i.keyLoadPromise)switch(null==(s=a.mediaKeySessionContext)?void 0:s.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return a.keyLoadPromise.then((t=>(r.key=t.keyInfo.decryptdata.key,{frag:e,keyInfo:a})))}switch(a=this.keyUriToKeyInfo[o]={decryptdata:r,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},r.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===r.keyFormat?this.loadKeyHTTP(a,e):this.loadKeyEME(a,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(a,e);default:return Promise.reject(this.createKeyLoadError(e,q.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${r.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const t=this.emeController.loadKey(n);if(t)return(e.keyLoadPromise=t.then((t=>(e.mediaKeySessionContext=t,n)))).catch((t=>{throw e.keyLoadPromise=null,t}))}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,i=new(0,n.loader)(n);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise(((r,o)=>{const a={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},s=n.keyLoadPolicy.default,l={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(e,t,n,i)=>{const{frag:a,keyInfo:s,url:l}=n;if(!a.decryptdata||s!==this.keyUriToKeyInfo[l])return o(this.createKeyLoadError(a,q.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),i));s.decryptdata.key=a.decryptdata.key=new Uint8Array(e.data),a.keyLoader=null,s.loader=null,r({frag:a,keyInfo:s})},onError:(e,n,i,r)=>{this.resetLoader(n),o(this.createKeyLoadError(t,q.KEY_LOAD_ERROR,new Error(`HTTP Error ${e.code} loading key ${e.text}`),i,ce({url:a.url,data:void 0},e)))},onTimeout:(e,n,i)=>{this.resetLoader(n),o(this.createKeyLoadError(t,q.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),i))},onAbort:(e,n,i)=>{this.resetLoader(n),o(this.createKeyLoadError(t,q.INTERNAL_ABORTED,new Error("key loading aborted"),i))}};i.load(a,l,c)}))}resetLoader(e){const{frag:t,keyInfo:n,url:i}=e,r=n.loader;t.keyLoader===r&&(t.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[i],r&&r.destroy()}}function bl(e){const{type:t}=e;switch(t){case J:return ne;case ee:return ie;default:return te}}function wl(e,t){let n=e.url;return void 0!==n&&0!==n.indexOf("data:")||(n=t.url),n}class xl{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.LEVEL_LOADING,this.onLevelLoading,this),e.on(Y.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(Y.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(Y.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.LEVEL_LOADING,this.onLevelLoading,this),e.off(Y.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(Y.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(Y.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,i=t.loader,r=new(n||i)(t);return this.loaders[e.type]=r,r}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:X,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:n,level:i,pathwayId:r,url:o,deliveryDirectives:a,levelInfo:s}=t;this.load({id:n,level:i,pathwayId:r,responseType:"text",type:Q,url:o,deliveryDirectives:a,levelOrTrack:s})}onAudioTrackLoading(e,t){const{id:n,groupId:i,url:r,deliveryDirectives:o,track:a}=t;this.load({id:n,groupId:i,level:null,responseType:"text",type:J,url:r,deliveryDirectives:o,levelOrTrack:a})}onSubtitleTrackLoading(e,t){const{id:n,groupId:i,url:r,deliveryDirectives:o,track:a}=t;this.load({id:n,groupId:i,level:null,responseType:"text",type:ee,url:r,deliveryDirectives:o,levelOrTrack:a})}onLevelsUpdated(e,t){const n=this.loaders[Q];if(n){const e=n.context;e&&!t.levels.some((t=>t===e.levelOrTrack))&&(n.abort(),delete this.loaders[Q])}}load(e){var t;const n=this.hls.config;let i,r=this.getInternalLoader(e);if(r){const t=this.hls.logger,n=r.context;if(n&&n.levelOrTrack===e.levelOrTrack&&(n.url===e.url||n.deliveryDirectives&&!e.deliveryDirectives))return void(n.url===e.url?t.log(`[playlist-loader]: ignore ${e.url} ongoing request`):t.log(`[playlist-loader]: ignore ${e.url} in favor of ${n.url}`));t.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}if(i=e.type===X?n.manifestLoadPolicy.default:se({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),G(null==(t=e.deliveryDirectives)?void 0:t.part)){let t;if(e.type===Q&&null!==e.level?t=this.hls.levels[e.level].details:e.type===J&&null!==e.id?t=this.hls.audioTracks[e.id].details:e.type===ee&&null!==e.id&&(t=this.hls.subtitleTracks[e.id].details),t){const e=t.partTarget,n=t.targetduration;if(e&&n){const t=1e3*Math.max(3*e,.8*n);i=se({},i,{maxTimeToFirstByteMs:Math.min(t,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(t,i.maxTimeToFirstByteMs)})}}}const o=i.errorRetry||i.timeoutRetry||{},a={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:o.maxNumRetry||0,retryDelay:o.retryDelayMs||0,maxRetryDelay:o.maxRetryDelayMs||0},s={onSuccess:(e,t,n,i)=>{const r=this.getInternalLoader(n);this.resetInternalLoader(n.type);const o=e.data;0===o.indexOf("#EXTM3U")?(t.parsing.start=performance.now(),_i.isMediaPlaylist(o)||n.type!==X?this.handleTrackOrLevelPlaylist(e,t,n,i||null,r):this.handleMasterPlaylist(e,t,n,i)):this.handleManifestParsingError(e,n,new Error("no EXTM3U delimiter"),i||null,t)},onError:(e,t,n,i)=>{this.handleNetworkError(t,n,!1,e,i)},onTimeout:(e,t,n)=>{this.handleNetworkError(t,n,!0,void 0,e)}};r.load(e,a,s)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:n}=this.hls;(e||n)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,n,i){const r=this.hls,o=e.data,a=wl(e,n),s=_i.parseMasterPlaylist(o,a);if(s.playlistParsingError)return void this.handleManifestParsingError(e,n,s.playlistParsingError,i,t);const{contentSteering:l,levels:c,sessionData:u,sessionKeys:h,startTimeOffset:d,variableList:p}=s;this.variableList=p;const{AUDIO:f=[],SUBTITLES:g,"CLOSED-CAPTIONS":m}=_i.parseMasterPlaylistMedia(o,a,s);if(f.length){f.some((e=>!e.url))||!c[0].audioCodec||c[0].attrs.AUDIO||(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),f.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Gn({}),bitrate:0,url:""}))}r.trigger(Y.MANIFEST_LOADED,{levels:c,audioTracks:f,subtitles:g,captions:m,contentSteering:l,url:a,stats:t,networkDetails:i,sessionData:u,sessionKeys:h,startTimeOffset:d,variableList:p})}handleTrackOrLevelPlaylist(e,t,n,i,r){const o=this.hls,{id:a,level:s,type:l}=n,c=wl(e,n),u=G(s)?s:G(a)?a:0,h=bl(n),d=_i.parseLevelPlaylist(e.data,c,u,h,0,this.variableList);if(l===X){const e={attrs:new Gn({}),bitrate:0,details:d,name:"",url:c};d.requestScheduled=t.loading.start+Hi(d,0),o.trigger(Y.MANIFEST_LOADED,{levels:[e],audioTracks:[],url:c,stats:t,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=d,this.handlePlaylistLoaded(d,e,t,n,i,r)}handleManifestParsingError(e,t,n,i,r){this.hls.trigger(Y.ERROR,{type:W.NETWORK_ERROR,details:q.MANIFEST_PARSING_ERROR,fatal:t.type===X,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:i,stats:r})}handleNetworkError(e,t,n=!1,i,r){let o=`A network ${n?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${e.type}`;e.type===Q?o+=`: ${e.level} id: ${e.id}`:e.type!==J&&e.type!==ee||(o+=` id: ${e.id} group-id: "${e.groupId}"`);const a=new Error(o);this.hls.logger.warn(`[playlist-loader]: ${o}`);let s=q.UNKNOWN,l=!1;const c=this.getInternalLoader(e);switch(e.type){case X:s=n?q.MANIFEST_LOAD_TIMEOUT:q.MANIFEST_LOAD_ERROR,l=!0;break;case Q:s=n?q.LEVEL_LOAD_TIMEOUT:q.LEVEL_LOAD_ERROR,l=!1;break;case J:s=n?q.AUDIO_TRACK_LOAD_TIMEOUT:q.AUDIO_TRACK_LOAD_ERROR,l=!1;break;case ee:s=n?q.SUBTITLE_TRACK_LOAD_TIMEOUT:q.SUBTITLE_LOAD_ERROR,l=!1}c&&this.resetInternalLoader(e.type);const u={type:W.NETWORK_ERROR,details:s,fatal:l,url:e.url,loader:c,context:e,error:a,networkDetails:t,stats:r};if(i){const n=(null==t?void 0:t.url)||e.url;u.response=ce({url:n,data:void 0},i)}this.hls.trigger(Y.ERROR,u)}handlePlaylistLoaded(e,t,n,i,r,o){const a=this.hls,{type:s,level:l,id:c,groupId:u,deliveryDirectives:h}=i,d=wl(t,i),p=bl(i),f="number"==typeof i.level&&p===te?l:void 0;if(!e.fragments.length){const o=e.playlistParsingError=new Error("No Segments found in Playlist");return void a.trigger(Y.ERROR,{type:W.NETWORK_ERROR,details:q.LEVEL_EMPTY_ERROR,fatal:!1,url:d,error:o,reason:o.message,response:t,context:i,level:f,parent:p,networkDetails:r,stats:n})}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const g=e.playlistParsingError;if(g){if(this.hls.logger.warn(g),!a.config.ignorePlaylistParsingErrors)return void a.trigger(Y.ERROR,{type:W.NETWORK_ERROR,details:q.LEVEL_PARSING_ERROR,fatal:!1,url:d,error:g,reason:g.message,response:t,context:i,level:f,parent:p,networkDetails:r,stats:n});e.playlistParsingError=null}switch(e.live&&o&&(o.getCacheAge&&(e.ageHeader=o.getCacheAge()||0),o.getCacheAge&&!isNaN(e.ageHeader)||(e.ageHeader=0)),s){case X:case Q:a.trigger(Y.LEVEL_LOADED,{details:e,levelInfo:i.levelOrTrack||a.levels[0],level:f||0,id:c||0,stats:n,networkDetails:r,deliveryDirectives:h,withoutMultiVariant:s===X});break;case J:a.trigger(Y.AUDIO_TRACK_LOADED,{details:e,track:i.levelOrTrack,id:c||0,groupId:u||"",stats:n,networkDetails:r,deliveryDirectives:h});break;case ee:a.trigger(Y.SUBTITLE_TRACK_LOADED,{details:e,track:i.levelOrTrack,id:c||0,groupId:u||"",stats:n,networkDetails:r,deliveryDirectives:h})}}}class Sl{static get version(){return yr}static isMSESupported(){return ml()}static isSupported(){return function(){if(!ml())return!1;const e=ve();return"function"==typeof(null==e?void 0:e.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some((t=>e.isTypeSupported(mt(t,"video"))))||["mp4a.40.2","fLaC"].some((t=>e.isTypeSupported(mt(t,"audio")))))}()}static getMediaSource(){return ve()}static get Events(){return Y}static get MetadataSchema(){return $r}static get ErrorTypes(){return W}static get ErrorDetails(){return q}static get DefaultConfig(){return Sl.defaultConfig?Sl.defaultConfig:nl}static set DefaultConfig(e){Sl.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new vr,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const t=this.logger=function(e,t,n){const i=pe();if("object"==typeof console&&!0===e||"object"==typeof e){const r=["debug","log","info","warn","error"];r.forEach((t=>{i[t]=fe(t,e,n)}));try{i.log(`Debug logs enabled for "${t}" in hls.js version 1.6.5`)}catch(e){return pe()}r.forEach((t=>{ge[t]=fe(t,e)}))}else se(ge,i);return i}(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=function(e,t,n){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==t.liveMaxLatencyDurationCount&&(void 0===t.liveSyncDurationCount||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==t.liveMaxLatencyDuration&&(void 0===t.liveSyncDuration||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const i=il(e),r=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((e=>{const o=`${"level"===e?"playlist":e}LoadPolicy`,a=void 0===t[o],s=[];r.forEach((n=>{const r=`${e}Loading${n}`,l=t[r];if(void 0!==l&&a){s.push(r);const e=i[o].default;switch(t[o]={default:e},n){case"TimeOut":e.maxLoadTimeMs=l,e.maxTimeToFirstByteMs=l;break;case"MaxRetry":e.errorRetry.maxNumRetry=l,e.timeoutRetry.maxNumRetry=l;break;case"RetryDelay":e.errorRetry.retryDelayMs=l,e.timeoutRetry.retryDelayMs=l;break;case"MaxRetryTimeout":e.errorRetry.maxRetryDelayMs=l,e.timeoutRetry.maxRetryDelayMs=l}}})),s.length&&n.warn(`hls.js config: "${s.join('", "')}" setting(s) are deprecated, use "${o}": ${$t(t[o])}`)})),ce(ce({},i),t)}(Sl.DefaultConfig,e,t);this.userConfig=e,n.progressive&&rl(n,t);const{abrController:i,bufferController:r,capLevelController:o,errorController:a,fpsController:s}=n,l=new a(this),c=this.abrController=new i(this),u=new bn(this),h=n.interstitialsController,d=h?this.interstitialsController=new h(this,Sl):null,p=this.bufferController=new r(this,u),f=this.capLevelController=new o(this),g=new s(this),m=new xl(this),v=n.contentSteeringController,y=v?new v(this):null,b=this.levelController=new pl(this,y),w=new hl(this),x=new yl(this.config),S=this.streamController=new vl(this,u,x),k=this.gapController=new ol(this,u);f.setStreamController(S),g.setStreamController(S);const _=[m,b,S];d&&_.splice(1,0,d),y&&_.splice(1,0,y),this.networkControllers=_;const C=[c,p,k,f,g,w,u];this.audioTrackController=this.createController(n.audioTrackController,_);const P=n.audioStreamController;P&&_.push(this.audioStreamController=new P(this,u,x)),this.subtitleTrackController=this.createController(n.subtitleTrackController,_);const E=n.subtitleStreamController;E&&_.push(this.subtititleStreamController=new E(this,u,x)),this.createController(n.timelineController,C),x.emeController=this.emeController=this.createController(n.emeController,C),this.cmcdController=this.createController(n.cmcdController,C),this.latencyController=this.createController(dl,C),this.coreComponents=C,_.push(l);const M=l.onErrorOut;"function"==typeof M&&this.on(Y.ERROR,M,l),this.on(Y.MANIFEST_LOADED,m.onManifestLoaded,m)}createController(e,t){if(e){const n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,i){this._emitter.off(e,t,n,i)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(t){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+t.message+'". Here is a stacktrace:',t),!this.triggeringException){this.triggeringException=!0;const n=e===Y.ERROR;this.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.INTERNAL_EXCEPTION,fatal:n,event:e,error:t}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(Y.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach((e=>e.destroy())),this.networkControllers.length=0,this.coreComponents.forEach((e=>e.destroy())),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){const t=new Error(`attachMedia failed: invalid argument (${e})`);return void this.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.ATTACH_MEDIA_ERROR,fatal:!0,error:t})}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const t="media"in e,n=t?e.media:e,i=t?e:{media:n};this._media=n,this.trigger(Y.MEDIA_ATTACHING,i)}detachMedia(){this.logger.log("detachMedia"),this.trigger(Y.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(Y.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();const t=this.media,n=this._url,i=this._url=Le.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${i}`),t&&n&&(n!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(Y.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(e=-1,t){this.logger.log(`startLoad(${e+(t?", ":"")})`),this.started=!0,this.resumeBuffering();for(let n=0;n{e.resumeBuffering&&e.resumeBuffering()})))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach((e=>{e.pauseBuffering&&e.pauseBuffering()})))}get inFlightFragments(){const e={[te]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[ne]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[ie]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const e=this._media,t=null==e?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&this.startLoad(t))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=function(){try{return crypto.randomUUID()}catch(e){try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){let t=(new Date).getTime();const n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)}));return n}}}()),e}get levels(){const e=this.levelController.levels;return e||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){this.logger.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return-1===e&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log(`set startLevel:${e}`),-1!==e&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get abrEwmaDefaultEstimate(){const{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){(function(e){return Tt.indexOf(e)>-1})(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return-1===this.levelController.manualLevel}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const n=e.length;for(let i=0;i=t)return i;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let i;if(i=-1===t&&null!=e&&e.length?e.length-1:t,n)for(let t=i;t--;){const i=e[t].attrs["HDCP-LEVEL"];if(i&&i<=n)return t}return i}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return(null==(t=this.audioTrackController)?void 0:t.setAudioOption(e))||null}setSubtitleOption(e){var t;return(null==(t=this.subtitleTrackController)?void 0:t.setSubtitleOption(e))||null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return!!e&&e.subtitleDisplay}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(e){this.latencyController.targetLatency=e}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!(null==(e=this.bufferController)||!e.bufferedToEnd)}get interstitialsManager(){var e;return(null==(e=this.interstitialsController)?void 0:e.interstitialsManager)||null}getMediaDecodingInfo(e,t=this.allAudioTracks){return At(e,Zt(t),navigator.mediaCapabilities)}}Sl.defaultConfig=void 0;var kl=n(67390),_l=n(1079),Cl=n(15342),Pl=n(1012),El={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Ml=n(20743),Ll=n(14809),Al={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},Tl=n(7657),Dl=function(e,t){return c.createElement(Tl.Z,(0,Ll.Z)({},e,{ref:t,icon:Al}))};var Nl=c.forwardRef(Dl),Il=n(39647),Bl=n.n(Il),Rl=n(76374),Ol={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Fl={quickKey:[{label:"main",content:["public static void main(String[] args) {","\t$0","}"].join("\n")},{label:"System.out.println",content:["System.out.println($0)"].join("\n")},{label:"System.out.print",content:["System.out.print($0)"].join("\n")}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},zl={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {","\t$0","} else {","\t","}"].join("\n")},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {","\t$0","}"].join("\n")},{label:"if",content:["if () {","\t$0","}"].join("\n")},{label:"for",content:["for(int j=0 ; j<10; j++){","\t$0","}"].join("\n")},{label:"trycatch",content:["try{","\t$0","}catch(ExceptionName e){","}"].join("\n")},{label:"using namespace std;",content:["using namespace std;"].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")}]},jl={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join("\n")}]},$l={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join("\n")}]},Hl=n(53184),Zl=n.n(Hl),Kl={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}};var Gl=n(82100),Ul=n.n(Gl),Vl=n(29186),Wl=n.n(Vl),ql=n(85573),Yl=n.n(ql),Xl=function(){function e(t,n,i){var r=this;Ul()(this,e),this.placeholder=t,this.editor=n,this.monaco=i,n.onDidChangeModelContent((function(){return r.onDidChangeModelContent()})),this.onDidChangeModelContent()}return Wl()(e,[{key:"onDidChangeModelContent",value:function(){""===this.editor.getValue()?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}},{key:"getId",value:function(){return e.ID}},{key:"getDomNode",value:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}},{key:"getPosition",value:function(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}},{key:"dispose",value:function(){this.editor.removeContentWidget(this)}}]),e}();Yl()(Xl,"ID","editor.widget.placeholderHint");var Ql=Xl,Jl=n(96236),ec=n(6767),tc=n(55544),nc=n(89392),ic=n(1499),rc=n(56102),oc=["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"];function ac(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function sc(){}var lc={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function cc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;if(Array.isArray(e)){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!e||""===e.trim())return!0;for(var n=ne.current.instance.getModel(),i=n.getLineTokens(t),r=!1,o=0;o<2;o++)1===i.getStandardTokenType(o)&&(r=!0);return r};function ge(e){(window.navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)&&83==e.keyCode&&(e.preventDefault(),M())}(0,c.useEffect)((function(){var e,t=null===(e=ne.current)||void 0===e?void 0:e.instance;if(t&&de&&D){var n=t.onDidBlurEditorWidget((function(){ce.current=!1})),i=t.onDidFocusEditorText((function(){ce.current=!0}));return function(){n.dispose(),i.dispose()}}}),[ne.current,de,D]),(0,c.useEffect)((function(){var e;if(null!==(e=ne.current)&&void 0!==e&&e.instance&&de&&Y){var t=ne.current.instance,n=t.getModel();if(!n)return;!function(){var e,i=[],r=[],o=n.getAllDecorations(),a=w()(o);try{for(a.s();!(e=a.n()).done;){var s,l=e.value;if("highlighted-line"===l.options.className)i.push(null==l||null===(s=l.range)||void 0===s?void 0:s.startLineNumber),r.push(null==l?void 0:l.id)}}catch(e){a.e(e)}finally{a.f()}if(W!==i[0]){n.deltaDecorations(r,[]);var c=n.getLineCount();W&&W<=c&&(t.deltaDecorations([],[{range:new uc.Range(W,1,W,n.getLineMaxColumn(W)),options:{isWholeLine:!0,className:"highlighted-line"}}]),t.revealLineInCenter(W))}}();var i=function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=[],r=[],o=n.getAllDecorations(),a=w()(o);try{for(a.s();!(e=a.n()).done;){var s,l=e.value;if("breakpoints-select"===l.options.linesDecorationsClassName)i.push(null==l||null===(s=l.range)||void 0===s?void 0:s.startLineNumber),r.push(null==l?void 0:l.id)}}catch(e){a.e(e)}finally{a.f()}if(t)return{lines:i,ids:r};j(i)},o=function(){var e=a()(r()().mark((function e(t){var o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={range:new uc.Range(t,1,t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}},e.next=3,n.deltaDecorations([],[o]);case 3:i();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),s=function(){var e=a()(r()().mark((function e(o){var a,s,l,c,u;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=[],s=t.getLineDecorations(o),l=w()(s);try{for(l.s();!(c=l.n()).done;)"breakpoints-select"===(u=c.value).options.linesDecorationsClassName&&a.push(u.id)}catch(e){l.e(e)}finally{l.f()}return e.next=6,n.deltaDecorations(a,[]);case 6:i();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(e){var n,i=t.getLineDecorations(e),r=w()(i);try{for(r.s();!(n=r.n()).done;){if("breakpoints-select"===n.value.options.linesDecorationsClassName)return!0}}catch(e){r.e(e)}finally{r.f()}return!1};if(!(0,nc.isEqual)(H,i(!0).lines)){n.deltaDecorations(i(!0).ids,[]);var c=H.map((function(e){return{range:new uc.Range(e,1,e,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}}));n.deltaDecorations([],c)}var u=t.onDidChangeModelContent((function(e){var r=t.getPosition();if(r){var a=r.lineNumber;clearTimeout(le.current),le.current=setTimeout((function(){fe(n.getLineContent(a),a)?s(a):l(a)?(s(a),o(a)):i()}),100)}})),h=t.onMouseDown((function(e){var t;if(e.target.detail&&null!==(t=e.target)&&void 0!==t&&null!==(t=t.element)&&void 0!==t&&null!==(t=t.className)&&void 0!==t&&t.includes("line-numbers")){var i=e.target.position.lineNumber;if(fe(n.getLineContent(i),i))return;l(i)?s(i):o(i)}})),d=function(){oe.current=t.deltaDecorations(oe.current,[])},p=t.onMouseMove((function(e){var i;if(d(),e.target.detail&&null!==(i=e.target)&&void 0!==i&&null!==(i=i.element)&&void 0!==i&&null!==(i=i.className)&&void 0!==i&&i.includes("line-numbers")){var r=e.target.position.lineNumber;if(fe(n.getLineContent(r),r))return;!function(e){var n={range:new uc.Range(e,1,e,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};oe.current=t.deltaDecorations(oe.current,[n])}(r)}})),f=t.onMouseLeave((function(){d()}));return function(){u.dispose(),h.dispose(),p.dispose(),f.dispose()}}}),[ne.current,de,H,W,Y,p]),(0,c.useEffect)((function(){var e;null!==(e=ne.current)&&void 0!==e&&e.instance&&Y&&ne.current.instance.setPosition({lineNumber:0,column:0})}),[W]);var me=function(){if(A&&ne.current.instance){var e=ne.current.instance.getContentHeight();Ce(e0||i.target.offsetWidth>0)&&ne.current.instance.layout()}}catch(e){n.e(e)}finally{n.f()}}))).observe(te.current),e}();return Q&&"string"==typeof Q&&new Ql(Q,t,uc),pe(!0),function(){var e=ne.current.instance;e.dispose();var t=e.getModel();t&&t.dispose(),ne.current.subscription&&ne.current.subscription.dispose(),o.unobserve(te.current)}}catch(e){}}))}),[]),(0,c.useEffect)((function(){if(ne.current.instance&&de)return document.addEventListener("keydown",ge,!1),function(){document.removeEventListener("keydown",ge)}}),[M,de]),(0,c.useEffect)((function(){var e=ne.current.instance;if(e&&de){var t=cc(p);uc.editor.setModelLanguage(e.getModel(),t)}}),[p,de]),(0,c.useEffect)((function(){ne.current.instance&&de&&uc.editor.setTheme(_)}),[_,de]),(0,c.useEffect)((function(){var e=ne.current.instance;ie.current=b,e&&de&&(e.updateOptions(h()({},b)),setTimeout((function(){e.getModel().updateOptions(h()({},b))}),200))}),[JSON.stringify(b),de]),(0,c.useEffect)((function(){var e=ne.current.instance;e&&de&&e.layout()}),[i,s,de]);var be=(0,c.useState)(ac(i)),we=l()(be,2),xe=we[0],Se=(we[1],(0,c.useState)(ac(s))),ke=l()(Se,2),_e=ke[0],Ce=ke[1],Pe=h()(h()({},m),{},{width:xe,height:_e,position:"relative"});return(0,g.jsx)("div",{className:"my-monaco-editor",ref:te,style:Pe,children:E&&(0,g.jsx)(rc.CopyToClipboard,{text:u,onCopy:function(){return ec.ZP.success("复制成功")},children:(0,g.jsx)(tc.Z,{title:"复制代码",children:(0,g.jsxs)("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"},children:[(0,g.jsx)("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," 复制代码"]})})})})};var pc=n(26613),fc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg==",gc=function(e){var t=e.img,n=e.buttonProps,i=void 0===n?{}:n,r=e.styles,o=void 0===r?{}:r,a=e.customText,s=e.ButtonText,l=e.ButtonClick,c=e.Buttonclass,u=e.ButtonTwo,d=e.imgStyles,p=e.loading,f=void 0!==p&&p,m=e.className,v=void 0===m?"":m;return(0,g.jsxs)("section",{className:"tc animated fadeIn ".concat(v),style:h()({color:"#999",margin:"100px auto",visibility:f?"hidden":"visible"},o),children:[(0,g.jsx)("img",{src:t||fc,style:h()(h()({},d),{},{pointerEvents:"none",userSelect:"none"})}),(0,g.jsx)("p",{className:"mt20 font14",children:a||"暂时还没有相关数据哦!"}),s&&(0,g.jsx)(Ml.ZP,h()(h()({className:c,onClick:l},i),{},{children:s})),u&&u]})},mc=n(78318),vc=function(e){var t,n,i,o,s,u,d=e.editOffice,p=void 0===d?"view":d,f=e.data,m=e.issaver,v=e.onSaver,y=(e.theme,e.type),b=e.filename,w=e.monacoEditor,x=e.className,S=e.style,k=e.close,_=e.onClose,C=e.hasMask,P=e.disabledDownload,E=e.onImgDimensions,M=e.showNodata,L=e.recordInfo,A=(0,c.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),T=l()(A,2),D=(T[0],T[1],(0,c.useState)("")),N=l()(D,2),I=(N[0],N[1]),B=(0,c.useState)(),R=l()(B,2),O=R[0],F=R[1],z="build"===window.ENV?"/react/build":"",j=location.host.startsWith("localhost")?kl.Z.PROXY_SERVER:kl.Z.API_SERVER,$=(0,c.useRef)();null!==(t=f)&&void 0!==t&&t.startsWith("/api")&&"txt"!==y&&(f=kl.Z.API_SERVER+f);function H(e){return Z.apply(this,arguments)}function Z(){return(Z=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"pdfdata"===t.data.type&&(v(t.data.data),window.removeEventListener("message",H,!1)),console.log("mess---:",t.data);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}b&&w&&(w.filename=b),(0,c.useEffect)((function(){var e,t=null===(e=document.cookie)||void 0===e||null===(e=e.replace(/\s/g,""))||void 0===e?void 0:e.split(";");null==t||t.map((function(e){var t=e.split("=");"_educoder_session"===t[0]&&I(t[1])}))}),[]),(0,c.useEffect)((function(){var e;"office"===y&&(f.indexOf("bigfilescdn.")>-1||f.indexOf("bigfiles1")>-1?F({url:f,fileType:(e=f,e.substring(e.lastIndexOf("/")+1).split(".").pop()),model:f.indexOf("model=edit")?"edit":"view"}):K())}),[y,f]);var K=function(){var e=a()(r()().mark((function e(){var t,n,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("data:",f),t=f,f.startsWith("http")||(t=location.origin+t),n=new URL(t).pathname.split("/").pop(),e.next=6,(0,pc.gJ)({attachment_id:n});case 6:(i=e.sent).url=j+i.url,F(i);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),G=function(){f.startsWith("http")||f.startsWith("blob:")?U():(0,_l.Sv)(b||"educoder",f,b)},U=function(){L&&(0,mc.fc)({id:null==L?void 0:L.id,watch_type:1,course_id:null==L?void 0:L.course_id}),(0,_l.Nd)(b||"educoder",decodeURIComponent(f))};return(0,g.jsxs)("div",{style:h()({},S||{}),className:"".concat(C&&El.bgBlack," ").concat(y?El.wrp:"hide"),children:[k&&(0,g.jsxs)("div",{className:El.close,ref:$,children:[!!E&&(0,g.jsx)(tc.Z,{title:"点击对图片进行批注",getPopupContainer:function(){return $.current},children:(0,g.jsx)("span",{onClick:function(){_(),E()},children:(0,g.jsx)("i",{className:"icon-yulanpizhu"})})}),!P&&(0,g.jsx)(tc.Z,{title:"点击下载此文件",getPopupContainer:function(){return $.current},children:(0,g.jsx)("span",{onClick:U,children:(0,g.jsx)("i",{className:"icon-quxiaozhiding"})})}),m&&(0,g.jsx)(tc.Z,{title:"保存pdf并退出",getPopupContainer:function(){return $.current},children:(0,g.jsx)("span",{className:"",onClick:function(){var e=document.getElementById("pdfiframe");window.addEventListener("message",H,!1),setTimeout((function(){e.contentWindow.postMessage("getData","*")}),300)},children:(0,g.jsx)("i",{className:"icon-baocun"})})}),(0,g.jsx)(tc.Z,{title:"关闭",getPopupContainer:function(){return $.current},children:(0,g.jsx)("span",{className:"",onClick:function(){_()},children:(0,g.jsx)("i",{className:"icon-guanbi1"})})})]}),(0,g.jsx)("div",{className:"".concat(El[x]," ").concat(x," ").concat(El.monaco," ").concat("txt"===y?"show":"hide"),children:"txt"===y&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(dc,h()({},w))})}),"audio"===y&&(0,g.jsx)("audio",{src:"".concat((null===(n=f)||void 0===n?void 0:n.indexOf("http://"))>-1||(null===(i=f)||void 0===i?void 0:i.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(f),autoPlay:!0}),"video"===y&&(0,g.jsx)(g.Fragment,{children:(null===(o=f)||void 0===o?void 0:o.indexOf("http"))>-1?(0,g.jsx)("video",{controls:!0,src:"".concat(f),autoPlay:!0}):(0,g.jsx)("video",{controls:!0,src:"data:video/mp4;base64,".concat(f),autoPlay:!0})}),"office"===y&&O&&(0,g.jsx)("iframe",{src:"".concat(z,"/office.html?key=").concat(O.key,"&url=").concat(btoa(O.url),"&callbackUrl=").concat(j+(O.callbackUrl||""),"&fileType=").concat(O.fileType,"&title=").concat(O.title||"","&model=").concat(p,"&officeServer=").concat(kl.Z.ONLYOFFICE,"&disabledDownload=").concat(!!P)}),"html"===y&&(0,g.jsx)("iframe",{src:f+"&disposition=inline"}),"pdf"===y&&(0,g.jsx)("iframe",{id:"pdfiframe",src:"".concat(z,"/js/pdfview/index.html?filename=").concat(b||"educoder.pdf","&url=").concat(encodeURIComponent(f),"&disabledDownload=").concat(!!P,"&model=").concat(p)}),"image"===y&&(0,g.jsx)("img",{src:"".concat((null===(s=f)||void 0===s?void 0:s.indexOf("http://"))>-1||(null===(u=f)||void 0===u?void 0:u.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(f)}),("other"===y||"download"===y)&&(0,g.jsx)(g.Fragment,{children:M?(0,g.jsx)(gc,{customText:"当前文件不支持预览,可点击下载查看",ButtonTwo:(0,g.jsx)(Ml.ZP,{icon:(0,g.jsx)("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:G,disabled:P,children:"下载"})}):(0,g.jsxs)(Ml.ZP,{type:"primary",size:"middle",onClick:G,disabled:P,children:[(0,g.jsx)(Nl,{}),"点击下载"]})})]})},yc=function(e){var t=e.html,n=(0,c.useRef)(null),i=(0,c.useRef)(null);return(0,c.useEffect)((function(){var e=n.current.attachShadow({mode:"open"});i.current=document.createElement("div"),i.current.className="markdown-body",i.current.innerHTML=t,e.appendChild(i.current);var r=document.createElement("style");return r.textContent='.markdown-body p {\n      margin: 0 0 16px 0 !important;\n      line-height: 28px;\n      white-space: pre-wrap;\n    }\n\n    ol,\n    ul,\n    li {\n      list-style-type: none\n    }\n\n    ol,\n    ul,\n    dl {\n      margin-bottom: 0px;\n    }\n\n    .markdown-body {\n      -ms-text-size-adjust: 100%;\n      -webkit-text-size-adjust: 100%;\n      color: #333;\n      overflow: hidden;\n      font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "华文细黑", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "宋体", Heiti, "黑体", sans-serif;\n      word-break: break-word;\n      font-size: 16px;\n      line-height: 1.6;\n      white-space: normal;\n      word-wrap: break-word;\n      position: relative;\n    }\n\n    .markdown-body ul>li {\n      list-style-type: disc;\n    }\n\n    .markdown-body ol>li {\n      list-style-type: decimal;\n    }\n\n    .markdown-body a {\n      background: transparent;\n    }\n\n    .markdown-body a:active,\n    .markdown-body a:hover {\n      outline: 0;\n    }\n\n    .markdown-body strong {\n      font-weight: bold;\n    }\n\n    .markdown-body h1 {\n      font-size: 2em;\n      margin: 0.67em 0;\n    }\n\n    .markdown-body img {\n      border: 0;\n    }\n\n    .markdown-body hr {\n      -moz-box-sizing: content-box;\n      box-sizing: content-box;\n      height: 0;\n    }\n\n    .markdown-body pre {\n      overflow: auto;\n    }\n\n    .markdown-body code,\n    .markdown-body kbd,\n    .markdown-body pre {\n      font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;\n      font-size: 1em;\n    }\n\n    .markdown-body input {\n      color: inherit;\n      font: inherit;\n      margin: 0;\n    }\n\n    .markdown-body html input[disabled] {\n      cursor: default;\n    }\n\n    .markdown-body input {\n      line-height: normal;\n    }\n\n    .markdown-body input[type="checkbox"] {\n      -moz-box-sizing: border-box;\n      box-sizing: border-box;\n      padding: 0;\n    }\n\n    .markdown-body table {\n      border-collapse: collapse;\n      border-spacing: 0;\n    }\n\n    .markdown-body td,\n    .markdown-body th {\n      padding: 0;\n    }\n\n    .markdown-body * {\n      -moz-box-sizing: border-box;\n      box-sizing: border-box;\n    }\n\n    .markdown-body input {\n      font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";\n    }\n\n    .markdown-body a {\n      color: #4183c4;\n      text-decoration: none;\n    }\n\n    .markdown-body a:hover,\n    .markdown-body a:active {\n      text-decoration: underline;\n    }\n\n    .markdown-body hr {\n      height: 0;\n      margin: 15px 0;\n      overflow: hidden;\n      background: transparent;\n      border: 0;\n      border-bottom: 1px solid #ddd;\n    }\n\n    .markdown-body hr:before {\n      display: table;\n      content: "";\n    }\n\n    .markdown-body hr:after {\n      display: table;\n      clear: both;\n      content: "";\n    }\n\n    .markdown-body h1,\n    .markdown-body h2,\n    .markdown-body h3,\n    .markdown-body h4,\n    .markdown-body h5,\n    .markdown-body h6 {\n      margin-top: 15px;\n      margin-bottom: 15px;\n      line-height: 1.1;\n    }\n\n    .markdown-body h1 {\n      font-size: 30px;\n    }\n\n    .markdown-body h2 {\n      font-size: 21px;\n    }\n\n    .markdown-body h3 {\n      font-size: 16px;\n    }\n\n    .markdown-body h4 {\n      font-size: 14px;\n    }\n\n    .markdown-body h5 {\n      font-size: 12px;\n    }\n\n    .markdown-body h6 {\n      font-size: 11px;\n    }\n\n    .markdown-body blockquote {\n      margin: 0;\n    }\n\n    .markdown-body ul,\n    .markdown-body ol {\n      padding: 0;\n      margin-top: 0;\n      margin-bottom: 0;\n    }\n\n    ul.linenums,\n    ol.linenums {\n      padding: 16px 0 0 56px !important;\n    }\n\n    .markdown-body ul,\n    .markdown-body ol {\n      padding-left: 2em;\n    }\n\n\n    .markdown-body ol ol,\n    .markdown-body ul ol {\n      list-style-type: lower-roman;\n    }\n\n    .markdown-body ul ul ol,\n    .markdown-body ul ol ol,\n    .markdown-body ol ul ol,\n    .markdown-body ol ol ol {\n      list-style-type: lower-alpha;\n    }\n\n    .markdown-body dd {\n      margin-left: 0;\n    }\n\n    .markdown-body code {\n      font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;\n      font-size: 12px;\n    }\n\n    .markdown-body pre {\n      margin-top: 0;\n      margin-bottom: 0;\n      font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;\n    }\n\n    .markdown-body .octicon {\n      font: normal normal 16px octicons-anchor;\n      line-height: 1;\n      display: inline-block;\n      text-decoration: none;\n      -webkit-font-smoothing: antialiased;\n      -moz-osx-font-smoothing: grayscale;\n      -webkit-user-select: none;\n      -moz-user-select: none;\n      -ms-user-select: none;\n      user-select: none;\n    }\n\n    .markdown-body .octicon-link:before {\n      content: \'\f05c\';\n    }\n\n    .markdown-body>*:first-child {\n      margin-top: 0 !important;\n    }\n\n    .markdown-body>*:last-child {\n      margin-bottom: 0 !important;\n    }\n\n    .markdown-body .anchor {\n      position: absolute;\n      top: 0;\n      left: 0;\n      display: block;\n      padding-right: 6px;\n      padding-left: 30px;\n      margin-left: -30px;\n    }\n\n    .markdown-body .anchor:focus {\n      outline: none;\n    }\n\n    .markdown-body h1,\n    .markdown-body h2,\n    .markdown-body h3,\n    .markdown-body h4,\n    .markdown-body h5,\n    .markdown-body h6 {\n      position: relative;\n      margin-top: 1em;\n      margin-bottom: 16px;\n      font-weight: bold;\n      line-height: 1.4;\n    }\n\n    .markdown-body h1 .octicon-link,\n    .markdown-body h2 .octicon-link,\n    .markdown-body h3 .octicon-link,\n    .markdown-body h4 .octicon-link,\n    .markdown-body h5 .octicon-link,\n    .markdown-body h6 .octicon-link {\n      display: none;\n      color: #000;\n      vertical-align: middle;\n    }\n\n    .markdown-body h1:hover .anchor,\n    .markdown-body h2:hover .anchor,\n    .markdown-body h3:hover .anchor,\n    .markdown-body h4:hover .anchor,\n    .markdown-body h5:hover .anchor,\n    .markdown-body h6:hover .anchor {\n      padding-left: 8px;\n      margin-left: -30px;\n      text-decoration: none;\n    }\n\n    .markdown-body h1:hover .anchor .octicon-link,\n    .markdown-body h2:hover .anchor .octicon-link,\n    .markdown-body h3:hover .anchor .octicon-link,\n    .markdown-body h4:hover .anchor .octicon-link,\n    .markdown-body h5:hover .anchor .octicon-link,\n    .markdown-body h6:hover .anchor .octicon-link {\n      display: inline-block;\n    }\n\n    .markdown-body h1 {\n      padding-bottom: 0.3em;\n      font-size: 2.25em;\n      line-height: 1.2;\n      border-bottom: 1px solid #eee;\n    }\n\n    .markdown-body h1 .anchor {\n      line-height: 1;\n    }\n\n    .markdown-body h2 {\n      padding-bottom: 0.3em;\n      font-size: 1.75em;\n      line-height: 1.225;\n      border-bottom: 1px solid #eee;\n    }\n\n    .markdown-body h2 .anchor {\n      line-height: 1;\n    }\n\n    .markdown-body h3 {\n      font-size: 1.5em;\n      line-height: 1.43;\n    }\n\n    .markdown-body h3 .anchor {\n      line-height: 1.2;\n    }\n\n    .markdown-body h4 {\n      font-size: 1.25em;\n    }\n\n    .markdown-body h4 .anchor {\n      line-height: 1.2;\n    }\n\n    .markdown-body h5 {\n      font-size: 1em;\n    }\n\n    .markdown-body h5 .anchor {\n      line-height: 1.1;\n    }\n\n    .markdown-body h6 {\n      font-size: 1em;\n      color: #777;\n    }\n\n    .markdown-body h6 .anchor {\n      line-height: 1.1;\n    }\n\n    .markdown-body p,\n    .markdown-body blockquote,\n    .markdown-body ul,\n    .markdown-body ol,\n    .markdown-body dl,\n    .markdown-body table,\n    .markdown-body pre {\n      margin-top: 0;\n      margin-bottom: 16px;\n    }\n\n    .markdown-body ul ul,\n    .markdown-body ul ol,\n    .markdown-body ol ol,\n    .markdown-body ol ul {\n      margin-top: 0;\n      margin-bottom: 0;\n    }\n\n    .markdown-body li>p {\n      margin-top: 16px;\n    }\n\n    .markdown-body dl {\n      padding: 0;\n    }\n\n    .markdown-body dl dt {\n      padding: 0;\n      margin-top: 16px;\n      font-size: 1em;\n      font-style: italic;\n      font-weight: bold;\n    }\n\n    .markdown-body dl dd {\n      padding: 0 16px;\n      margin-bottom: 16px;\n    }\n\n    .markdown-body blockquote {\n      padding: 0 15px;\n      color: #777;\n      border-left: 4px solid #ddd;\n    }\n\n    .markdown-body blockquote> :first-child {\n      margin-top: 0;\n    }\n\n    .markdown-body blockquote> :last-child {\n      margin-bottom: 0;\n    }\n\n    .markdown-body table {\n      display: block;\n      width: 100%;\n      overflow: auto;\n      word-break: normal;\n      word-break: keep-all;\n    }\n\n    .markdown-body table th {\n      font-weight: bold;\n      text-align: revert;\n    }\n\n    .markdown-body table th,\n    .markdown-body table td {\n      padding: 6px 13px;\n      border: 1px solid #ddd;\n    }\n\n    .markdown-body table tr {\n      background-color: #fff;\n      border-top: 1px solid #ccc;\n    }\n\n    .markdown-body table tr:nth-child(2n) {\n      background-color: #f8f8f8;\n    }\n\n    .markdown-body img {\n      max-width: 100%;\n      -moz-box-sizing: border-box;\n      box-sizing: border-box;\n    }\n\n    .markdown-body code {\n      padding: 0;\n      padding-top: 0.2em;\n      padding-bottom: 0.2em;\n      margin: 0;\n      font-size: 85%;\n      background-color: rgba(0, 0, 0, 0.04);\n      border-radius: 3px;\n    }\n\n    .markdown-body code:has(.katex) {\n      background-color: transparent;\n    }\n\n    .markdown-body code:before,\n    .markdown-body code:after {\n      letter-spacing: -0.2em;\n      content: "\\00a0";\n    }\n\n    .markdown-body pre>code {\n      padding: 0;\n      margin: 0;\n      font-size: 100%;\n      word-break: normal;\n      white-space: pre;\n      background: transparent;\n      border: 0;\n    }\n\n    .markdown-body .highlight {\n      margin-bottom: 16px;\n    }\n\n    .markdown-body .highlight pre,\n    .markdown-body pre {\n      padding: 16px;\n      overflow: auto;\n      font-size: 85%;\n      line-height: 1.45;\n      background-color: #f7f7f7;\n      border-radius: 3px;\n    }\n\n    .markdown-body .highlight pre {\n      margin-bottom: 0;\n      word-break: normal;\n    }\n\n    .markdown-body pre {\n      word-wrap: normal;\n    }\n\n    .markdown-body pre code {\n      display: inline;\n      max-width: initial;\n      padding: 0;\n      margin: 0;\n      overflow: initial;\n      line-height: inherit;\n      word-wrap: normal;\n      background-color: transparent;\n      border: 0;\n    }\n\n    .markdown-body pre code:before,\n    .markdown-body pre code:after {\n      content: normal;\n    }\n\n    .markdown-body kbd {\n      display: inline-block;\n      padding: 3px 5px;\n      font-size: 11px;\n      line-height: 10px;\n      color: #555;\n      vertical-align: middle;\n      background-color: #fcfcfc;\n      border: solid 1px #ccc;\n      border-bottom-color: #bbb;\n      border-radius: 3px;\n      box-shadow: inset 0 -1px 0 #bbb;\n    }\n\n    .markdown-body .pl-c {\n      color: #969896;\n    }\n\n    .markdown-body .pl-c1,\n    .markdown-body .pl-mdh,\n    .markdown-body .pl-mm,\n    .markdown-body .pl-mp,\n    .markdown-body .pl-mr,\n    .markdown-body .pl-s1 .pl-v,\n    .markdown-body .pl-s3,\n    .markdown-body .pl-sc,\n    .markdown-body .pl-sv {\n      color: #0086b3;\n    }\n\n    .markdown-body .pl-e,\n    .markdown-body .pl-en {\n      color: #795da3;\n    }\n\n    .markdown-body .pl-s1 .pl-s2,\n    .markdown-body .pl-smi,\n    .markdown-body .pl-smp,\n    .markdown-body .pl-stj,\n    .markdown-body .pl-vo,\n    .markdown-body .pl-vpf {\n      color: #333;\n    }\n\n    .markdown-body .pl-ent {\n      color: #63a35c;\n    }\n\n    .markdown-body .pl-k,\n    .markdown-body .pl-s,\n    .markdown-body .pl-st {\n      color: #a71d5d;\n    }\n\n    .markdown-body .pl-pds,\n    .markdown-body .pl-s1,\n    .markdown-body .pl-s1 .pl-pse .pl-s2,\n    .markdown-body .pl-sr,\n    .markdown-body .pl-sr .pl-cce,\n    .markdown-body .pl-sr .pl-sra,\n    .markdown-body .pl-sr .pl-sre,\n    .markdown-body .pl-src {\n      color: #df5000;\n    }\n\n    .markdown-body .pl-mo,\n    .markdown-body .pl-v {\n      color: #1d3e81;\n    }\n\n    .markdown-body .pl-id {\n      color: #b52a1d;\n    }\n\n    .markdown-body .pl-ii {\n      background-color: #b52a1d;\n      color: #f8f8f8;\n    }\n\n    .markdown-body .pl-sr .pl-cce {\n      color: #63a35c;\n      font-weight: bold;\n    }\n\n    .markdown-body .pl-ml {\n      color: #693a17;\n    }\n\n    .markdown-body .pl-mh,\n    .markdown-body .pl-mh .pl-en,\n    .markdown-body .pl-ms {\n      color: #1d3e81;\n      font-weight: bold;\n    }\n\n    .markdown-body .pl-mq {\n      color: #008080;\n    }\n\n    .markdown-body .pl-mi {\n      color: #333;\n      font-style: italic;\n    }\n\n    .markdown-body .pl-mb {\n      color: #333;\n      font-weight: bold;\n    }\n\n    .markdown-body .pl-md,\n    .markdown-body .pl-mdhf {\n      background-color: #ffecec;\n      color: #bd2c00;\n    }\n\n    .markdown-body .pl-mdht,\n    .markdown-body .pl-mi1 {\n      background-color: #eaffea;\n      color: #55a532;\n    }\n\n    .markdown-body .pl-mdr {\n      color: #795da3;\n      font-weight: bold;\n    }\n\n    .markdown-body kbd {\n      display: inline-block;\n      padding: 3px 5px;\n      font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;\n      line-height: 10px;\n      color: #555;\n      vertical-align: middle;\n      background-color: #fcfcfc;\n      border: solid 1px #ccc;\n      border-bottom-color: #bbb;\n      border-radius: 3px;\n      box-shadow: inset 0 -1px 0 #bbb;\n    }\n\n    .markdown-body .task-list-item {\n      list-style-type: none;\n    }\n\n    .markdown-body .task-list-item+.task-list-item {\n      margin-top: 3px;\n    }\n\n    .markdown-body .task-list-item input {\n      float: left;\n      margin: 0.3em 0 0.25em -1.6em;\n      vertical-align: middle;\n    }\n\n    .markdown-body :checked+.radio-label {\n      z-index: 1;\n      position: relative;\n      border-color: #4183c4;\n    }\n\n\n    /*! Pretty printing styles. Used with prettify.js. */\n    /* SPAN elements with the classes below are added by prettyprint. */\n    .pln {\n      color: #000\n    }\n\n    /* plain text */\n\n    @media screen {\n      .str {\n        color: #080\n      }\n\n      /* string content */\n      .kwd {\n        color: #008\n      }\n\n      /* a keyword */\n      .com {\n        color: #800\n      }\n\n      /* a comment */\n      .typ {\n        color: #606\n      }\n\n      /* a type name */\n      .lit {\n        color: #066\n      }\n\n      /* a literal value */\n      /* punctuation, lisp open bracket, lisp close bracket */\n      .pun,\n      .opn,\n      .clo {\n        color: #660\n      }\n\n      .tag {\n        color: #008\n      }\n\n      /* a markup tag name */\n      .atn {\n        color: #606\n      }\n\n      /* a markup attribute name */\n      .atv {\n        color: #080\n      }\n\n      /* a markup attribute value */\n      .dec,\n      .var {\n        color: #606\n      }\n\n      /* a declaration; a variable name */\n      .fun {\n        color: red\n      }\n\n      /* a function name */\n    }\n\n    /* Use higher contrast and text-weight for printable form. */\n    @media print,\n    projection {\n      .str {\n        color: #060\n      }\n\n      .kwd {\n        color: #006;\n        font-weight: bold\n      }\n\n      .com {\n        color: #600;\n        font-style: italic\n      }\n\n      .typ {\n        color: #404;\n        font-weight: bold\n      }\n\n      .lit {\n        color: #044\n      }\n\n      .pun,\n      .opn,\n      .clo {\n        color: #440\n      }\n\n      .tag {\n        color: #006;\n        font-weight: bold\n      }\n\n      .atn {\n        color: #404\n      }\n\n      .atv {\n        color: #060\n      }\n    }\n\n    /* Put a border around prettyprinted code snippets. */\n    pre.prettyprint {\n      padding: 2px;\n      /* border: 1px solid #888 */\n    }\n\n    /* Specify class=linenums on a pre to get line numbering */\n    ol.linenums {\n      margin-top: 0;\n      margin-bottom: 0\n    }\n\n    /* IE indents via margin-left */\n    li.L0,\n    li.L1,\n    li.L2,\n    li.L3,\n    li.L5,\n    li.L6,\n    li.L7,\n    li.L8 {\n      list-style-type: none\n    }\n\n    /* Alternate shading for lines */\n    li.L1,\n    li.L3,\n    li.L5,\n    li.L7,\n    li.L9 {\n      background: #eee\n    }\n\n    .markdown-body p,\n    .markdown-body blockquote,\n    .markdown-body ul,\n    .markdown-body ol,\n    .markdown-body dl,\n    .markdown-body table,\n    .markdown-body pre {\n      margin-top: 0;\n      margin-bottom: 16px;\n    }',e.appendChild(r),function(){e.innerHTML=""}}),[]),(0,c.useEffect)((function(){i.current&&(i.current.innerHTML=t)}),[t]),(0,g.jsx)("div",{ref:n})};var bc="@▁@",wc=/]*>/g;var xc=function(e){var t=e.value,n=void 0===t?"":t,i=e.className,r=e.showTextOnly,o=e.showLines,a=e.style,s=void 0===a?{}:a,u=e.stylesPrev,d=void 0===u?{}:u,p=e.highlightKeywords,f=e.showProgramFill,m=(e.isProgramFill,e.disabledFill),v=void 0!==m&&m,b=e.programFillValue,x=e.onFillChange,S=void 0===x?function(e){}:x,k=e.onFillBlur,_=void 0===k?function(){}:k,C=e.onFillFocus,P=void 0===C?function(){}:C,E=function(e){var t=new RegExp("\\b(".concat(["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"].join("|"),")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s>]*)"),"gi");return e.replace(t,"").trim()}(String(n||"")),M=(0,c.useState)(""),T=l()(M,2),N=T[0],I=T[1],B=(0,c.useState)("office"),R=l()(B,2),O=R[0],j=R[1],$=(0,c.useState)([]),H=l()($,2),Z=H[0],G=H[1],U=(0,c.useRef)("a"+(0,Pl.Z)()),V={},W=function(e){return//i.test(e||"")};var q=function(e){return!r&&W(E)?e:e.replace(/([\s\S]+?)<\/style>/gim,(function(e,t){var n=t.replace(/(\n|\r)/g,"").split("}"),i=[];return n.map((function(e){""!=e&&i.push(".".concat(U.current," ").concat(e))})),"")}))},Y=(0,c.useMemo)((function(){try{E=E.replace(/\(\/attachments\/download\//g,"("+kl.Z.API_SERVER+"/attachments/download/").replace(/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,"("+kl.Z.API_SERVER+"/api/attachments/").replace(/\"\/api\/attachments\/|\"\/attachments\/download\//g,'"'+kl.Z.API_SERVER+"/api/attachments/").replace(/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,'"'+kl.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,"\n")}catch(e){}if(f){var e=-1;return E=E.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,(function(t,n,i){var r;return function(e,t,n){var i=document.createElement(e===bc?"input":"textarea");i.style.width="100%",i.style.height=e===bc?"40px":"151px",i.rows=5,i.spellcheck=!1,i.name="edu-program-fill",i.placeholder="请输入",i.dataset.id=t;var r=Object.keys(V).length;return V[r]=i,'')}(t,++e,null==b||null===(r=b[e])||void 0===r?void 0:r.value.replaceAll("<","<").replaceAll(">",">"))})),'
'.concat(q(E||""),"
")}var t=q(E);t=K(t);var n=F();E.match(/\[TOC\]/)&&(t=t.replace("

[TOC]

",D()),L()),t=t.replace(/(__special_katext_id_\d+__)/g,(function(e,t){var i=n[t],r=i.type,o=i.expression;return(0,Cl.renderToString)(function(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}(o)||"",{displayMode:"block"===r,throwOnError:!1,output:"html"})})),t=t.replace(/▁/g,"▁▁▁▁▁"),z();var i=document.createElement("div");return i.innerHTML=t,r?i.innerText:p?(ee(i,p.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),i.innerHTML):(setTimeout((function(){return ie()}),500),i.innerHTML)}),[E,p]);(0,c.useEffect)((function(){te.current&&te.current.querySelectorAll(["input","textarea"]).forEach((function(e){e.oninput=X,e.onblur=Q,e.onfocus=J}))}),[Z]),(0,c.useEffect)((function(){if(null!=b&&b.length)try{var e,t=te.current.querySelectorAll(".edu-program-fill-score"),n=te.current.querySelectorAll('[name="edu-program-fill"]'),i=w()(n.entries());try{for(i.s();!(e=i.n()).done;){var r,o,a,s=l()(e.value,2),c=s[0],u=s[1];u.value=(null==b||null===(r=b[c])||void 0===r?void 0:r.value)||"","warning"===(null==b||null===(o=b[c])||void 0===o?void 0:o.type)?u.className="program-fill-warning":"success"===(null==b||null===(a=b[c])||void 0===a?void 0:a.type)?u.className="program-fill-success":u.className=""}}catch(e){i.e(e)}finally{i.f()}var h,d=w()(t.entries());try{for(d.s();!(h=d.n()).done;){var p,f,g=l()(h.value,2),m=g[0];g[1].innerHTML=null!=b&&null!==(p=b[m])&&void 0!==p&&p.score?"".concat(null==b||null===(f=b[m])||void 0===f?void 0:f.score,"分"):""}}catch(e){d.e(e)}finally{d.f()}G(b)}catch(e){console.log(e,"error")}}),[b]);var X=function(e){Z[e.target.dataset.id]=Z[e.target.dataset.id]||{},Z[e.target.dataset.id].value=e.target.value,G(y()(Z)),S(Z,e.target.dataset.id)},Q=function(e){Z[e.target.dataset.id]=Z[e.target.dataset.id]||{},Z[e.target.dataset.id].value=e.target.value,G(y()(Z)),_(Z,e.target.dataset.id)},J=function(e){Z[e.target.dataset.id]=Z[e.target.dataset.id]||{},Z[e.target.dataset.id].value=e.target.value,G(y()(Z)),P(Z,e.target.dataset.id)};function ee(e,t){return e.childNodes.forEach((function(e){if(e.childNodes.length>0)ee(e,t);else if("IMG"!==e.nodeName)if(e.innerHTML){var n;e.innerHTML=null===(n=e.innerHTML)||void 0===n?void 0:n.replace(new RegExp(t,"gi"),'$&')}else{var i=document.createElement("span");i.innerHTML=e.textContent.replace(new RegExp(t,"gi"),'$&'),e.replaceWith(i)}}))}var te=(0,c.useRef)();function ne(e){var t=e.target;if("A"===t.tagName.toUpperCase()){var n=t.getAttribute("href");if(n.indexOf("office")>-1)e.preventDefault(),I(n),j("office");else if(n.indexOf("application/pdf")>-1)e.preventDefault(),I(n),j("pdf");else if(n.indexOf("text/html")>-1)e.preventDefault(),I(n),j("html");else if(n.startsWith("#")){e.preventDefault();var i=document.getElementById(n.replace("#",""));i&&i.scrollIntoView(!0)}}}A.WebkitLineClamp=o,o&&(s=h()(h()({},s),A));var ie=function(){var e,t=null===(e=te.current)||void 0===e?void 0:e.querySelectorAll("video");null==t||t.forEach((function(e){if(e.oncontextmenu=function(){return!1},e.src.indexOf(".m3u8")>-1)if(e.canPlayType("application/vnd.apple.mpegurl"));else if(Sl.isSupported()){var t=new Sl;t.loadSource(e.src),t.attachMedia(e)}}))};return(0,c.useEffect)((function(){if(te.current&&Y&&Y.match(wc)&&window.PR.prettyPrint(),te.current)return te.current.addEventListener("click",ne),function(){var e;null===(e=te.current)||void 0===e||e.removeEventListener("click",ne),z(),L()}}),[Y,te.current,ne]),(0,c.useEffect)((function(){var e,t=function(e){e.preventDefault(),e.clipboardData.setData("text",window.getSelection().toString())};return null===(e=te.current)||void 0===e||e.addEventListener("copy",t),function(){var e;null===(e=te.current)||void 0===e||e.removeEventListener("copy",t)}}),[te.current]),(0,g.jsxs)(g.Fragment,{children:[r&&(0,g.jsx)("div",{ref:te,children:Y}),!r&&!W(Y)&&(0,g.jsx)("div",{ref:te,style:h()({},s),className:"".concat(i||""," ").concat(v?"disabled-fill":""," markdown-body ").concat(U.current),dangerouslySetInnerHTML:{__html:Y}}),!r&&W(Y)&&(0,g.jsx)(yc,{html:Y}),(0,g.jsx)(vc,{close:!0,data:N,type:null!=N&&N.length?O:"",style:h()({},d),onClose:function(){return I("")}})]})},Sc=n(43830),kc=n(10975),_c=n(89780),Cc=n.n(_c),Pc=(n(6313),n(25717),n(99498),n(25419),n(67549),function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})}),Ec=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Mc(e){var t=e.onActionCallback,n=e.title,i=e.icon,r=e.actionName,o=e.className,a=void 0===o?"":o,s=e.children;return(0,g.jsxs)("a",{title:n,className:a,onClick:function(){t(r)},children:[(0,g.jsx)("i",{className:"".concat(i)}),s]})}var Lc=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,r=e.onActionCallback,o=e.fullScreen,a=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(Ec,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,g.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&c.map((function(e,t){return(0,g.jsx)("li",{children:e.actionName?(0,g.jsx)(Mc,h()(h()({},e),{},{onActionCallback:r})):(0,g.jsx)("span",{className:"v-line"})},t)})),n?(0,g.jsx)("li",{children:(0,g.jsx)(Mc,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:r,children:(0,g.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("li",{children:(0,g.jsx)(Mc,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:r,children:(0,g.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,g.jsx)("li",{children:(0,g.jsx)(Mc,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:r,children:(0,g.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,g.jsx)("li",{children:(0,g.jsx)(Mc,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:r,children:(0,g.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,g.jsx)("li",{children:l}),(0,g.jsx)("li",{className:"btn-full-screen",children:(0,g.jsx)(Mc,{icon:"".concat(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:r})})]})},Ac=n(80619),Tc=n.n(Ac),Dc=n(47074),Nc=n.n(Dc),Ic=n(4676),Bc=function(e){Tc()(n,e);var t=Nc()(n);function n(e){var i;Ul()(this,n),i=t.call(this,e);var r=window.document;return i.node=r.createElement("div"),r.body.appendChild(i.node),i}return Wl()(n,[{key:"render",value:function(){var e=this.props.children;return(0,Ic.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),n}(c.Component),Rc={labelCol:{span:4},wrapperCol:{span:20}},Oc=function(e){var t=e.callback,n=e.onCancel;return(0,g.jsxs)(Sc.Z,h()(h()({},Rc),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,g.jsx)(Sc.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,g.jsx)(kc.Z,{})}),(0,g.jsx)(Sc.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,g.jsx)(kc.Z,{})}),(0,g.jsxs)("div",{className:"flex-container flex-end",children:[(0,g.jsx)(Ml.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,g.jsx)(Ml.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},Fc=n(75914),zc=Fc.default.Option,jc={labelCol:{span:4},wrapperCol:{span:20}},$c={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]},Hc=function(e){var t=e.callback,n=e.onCancel,i=(0,c.useState)("python"),r=l()(i,2),o=r[0],a=r[1];return(0,g.jsxs)(Sc.Z,h()(h()({},jc),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,g.jsx)(Sc.Z.Item,{label:"代码语言",name:"language",children:(0,g.jsx)(Fc.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){a($c[e][1])},children:Object.keys($c).map((function(e){return(0,g.jsx)(zc,{value:e,children:$c[e][0]},e)}))})}),(0,g.jsx)(Sc.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,g.jsx)(Zc,{mode:o})}),(0,g.jsxs)("div",{className:"flex-container flex-end",children:[(0,g.jsx)(Ml.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,g.jsx)(Ml.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))};function Zc(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,o=void 0===r?{}:r,a=(0,c.useRef)(),s=(0,c.useState)(),u=l()(s,2),d=u[0],p=u[1];return(0,c.useEffect)((function(){if(d){var e=function(e){var t=e.getValue();n&&n(t)};return d.on("change",e),function(){d.off("change",e)}}}),[d,n]),(0,c.useEffect)((function(){d&&d.setOption("mode",i)}),[d,i]),(0,c.useEffect)((function(){d&&(t===d.getValue()&&""!==t||setTimeout((function(){d.setValue(t||"")}),300))}),[d,t]),(0,c.useEffect)((function(){if(a.current&&!d){var e=Cc().fromTextArea(a.current,h()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},o));p(e)}}),[a.current,d]),(0,g.jsx)("div",{className:"my-codemirror-container",children:(0,g.jsx)("textarea",{ref:a})})}var Kc=n(77736),Gc=n(84105),Uc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Vc=function(e,t){return c.createElement(Tl.Z,(0,Ll.Z)({},e,{ref:t,icon:Uc}))};var Wc=c.forwardRef(Vc),qc=n(4635),Yc=n(93664),Xc=n(50298),Qc=n(62646),Jc=n(99153),eu=n(84851);function tu(){return"function"==typeof BigInt}function nu(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function iu(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var i=t||"0",r=i.split("."),o=r[0]||"0",a=r[1]||"0";"0"===o&&"0"===a&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:i,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(i)}}function ru(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ou(e){var t=String(e);if(ru(e)){var n=Number(t.slice(t.indexOf("e-")+2)),i=t.match(/\.(\d+)/);return null!=i&&i[1]&&(n+=i[1].length),n}return t.includes(".")&&su(t)?t.length-t.indexOf(".")-1:0}function au(e){var t=String(e);if(ru(e)){if(e>Number.MAX_SAFE_INTEGER)return String(tu()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":iu("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),cu=function(){function e(t){(0,Jc.Z)(this,e),(0,qc.Z)(this,"origin",""),(0,qc.Z)(this,"number",void 0),(0,qc.Z)(this,"empty",void 0),nu(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return(0,eu.Z)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var i=this.number+n;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":au(this.number):this.origin}}]),e}();function uu(e){return tu()?new lu(e):new cu(e)}function hu(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var r=iu(e),o=r.negativeStr,a=r.integerStr,s=r.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!i){var h=uu(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u));return hu(h.toString(),t,n,i)}return 0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return".0"===l?c:"".concat(c).concat(l)}var du=uu,pu=n(36901),fu=n(34280);var gu=n(8654),mu=n(48736);var vu=n(49658),yu=function(){var e=(0,c.useState)(!1),t=(0,Xc.Z)(e,2),n=t[0],i=t[1];return(0,fu.Z)((function(){i((0,vu.Z)())}),[]),n},bu=n(16089);function wu(e){var t=e.prefixCls,n=e.upNode,i=e.downNode,r=e.upDisabled,o=e.downDisabled,a=e.onStep,s=c.useRef(),l=c.useRef([]),u=c.useRef();u.current=a;var h=function(){clearTimeout(s.current)},d=function(e,t){e.preventDefault(),h(),u.current(t),s.current=setTimeout((function e(){u.current(t),s.current=setTimeout(e,200)}),600)};if(c.useEffect((function(){return function(){h(),l.current.forEach((function(e){return bu.Z.cancel(e)}))}}),[]),yu())return null;var p="".concat(t,"-handler"),g=f()(p,"".concat(p,"-up"),(0,qc.Z)({},"".concat(p,"-up-disabled"),r)),m=f()(p,"".concat(p,"-down"),(0,qc.Z)({},"".concat(p,"-down-disabled"),o)),v=function(){return l.current.push((0,bu.Z)(h))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return c.createElement("div",{className:"".concat(p,"-wrap")},c.createElement("span",(0,Ll.Z)({},y,{onMouseDown:function(e){d(e,!0)},"aria-label":"Increase Value","aria-disabled":r,className:g}),n||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),c.createElement("span",(0,Ll.Z)({},y,{onMouseDown:function(e){d(e,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:m}),i||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function xu(e){var t="number"==typeof e?au(e):iu(e).fullStr;return t.includes(".")?iu(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var Su=n(30292),ku=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],_u=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Cu=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Pu=function(e){var t=du(e);return t.isInvalidate()?null:t},Eu=c.forwardRef((function(e,t){var n=e.prefixCls,i=e.className,r=e.style,o=e.min,a=e.max,s=e.step,l=void 0===s?1:s,u=e.defaultValue,h=e.value,d=e.disabled,p=e.readOnly,g=e.upHandler,m=e.downHandler,v=e.keyboard,y=e.changeOnWheel,b=void 0!==y&&y,w=e.controls,x=void 0===w||w,S=(e.classNames,e.stringMode),k=e.parser,_=e.formatter,C=e.precision,P=e.decimalSeparator,E=e.onChange,M=e.onInput,L=e.onPressEnter,A=e.onStep,T=e.changeOnBlur,D=void 0===T||T,N=e.domRef,I=(0,Qc.Z)(e,ku),B="".concat(n,"-input"),R=c.useRef(null),O=c.useState(!1),F=(0,Xc.Z)(O,2),z=F[0],j=F[1],$=c.useRef(!1),H=c.useRef(!1),Z=c.useRef(!1),K=c.useState((function(){return du(null!=h?h:u)})),G=(0,Xc.Z)(K,2),U=G[0],V=G[1];var W=c.useCallback((function(e,t){if(!t)return C>=0?C:Math.max(ou(e),ou(l))}),[C,l]),q=c.useCallback((function(e){var t=String(e);if(k)return k(t);var n=t;return P&&(n=n.replace(P,".")),n.replace(/[^\w.-]+/g,"")}),[k,P]),Y=c.useRef(""),X=c.useCallback((function(e,t){if(_)return _(e,{userTyping:t,input:String(Y.current)});var n="number"==typeof e?au(e):e;if(!t){var i=W(n,t);if(su(n)&&(P||i>=0))n=hu(n,P||".",i)}return n}),[_,W,P]),Q=c.useState((function(){var e=null!=u?u:h;return U.isInvalidate()&&["string","number"].includes((0,Yc.Z)(e))?Number.isNaN(e)?"":e:X(U.toString(),!1)})),J=(0,Xc.Z)(Q,2),ee=J[0],te=J[1];function ne(e,t){te(X(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}Y.current=ee;var ie,re,oe=c.useMemo((function(){return Pu(a)}),[a,C]),ae=c.useMemo((function(){return Pu(o)}),[o,C]),se=c.useMemo((function(){return!(!oe||!U||U.isInvalidate())&&oe.lessEquals(U)}),[oe,U]),le=c.useMemo((function(){return!(!ae||!U||U.isInvalidate())&&U.lessEquals(ae)}),[ae,U]),ce=function(e,t){var n=(0,c.useRef)(null);return[function(){try{var t=e.selectionStart,i=e.selectionEnd,r=e.value,o=r.substring(0,t),a=r.substring(i);n.current={start:t,end:i,value:r,beforeTxt:o,afterTxt:a}}catch(e){}},function(){if(e&&n.current&&t)try{var i=e.value,r=n.current,o=r.beforeTxt,a=r.afterTxt,s=r.start,l=i.length;if(i.startsWith(o))l=o.length;else if(i.endsWith(a))l=i.length-n.current.afterTxt.length;else{var c=o[s-1],u=i.indexOf(c,s-1);-1!==u&&(l=u+1)}e.setSelectionRange(l,l)}catch(e){(0,mu.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]}(R.current,z),ue=(0,Xc.Z)(ce,2),he=ue[0],de=ue[1],pe=function(e){return oe&&!e.lessEquals(oe)?oe:ae&&!ae.lessEquals(e)?ae:null},fe=function(e){return!pe(e)},ge=function(e,t){var n,i=e,r=fe(i)||i.isEmpty();if(i.isEmpty()||t||(i=pe(i)||i,r=!0),!p&&!d&&r){var o=i.toString(),a=W(o,t);return a>=0&&(i=du(hu(o,".",a)),fe(i)||(i=du(hu(o,".",a,!0)))),i.equals(U)||(n=i,void 0===h&&V(n),null==E||E(i.isEmpty()?null:Cu(S,i)),void 0===h&&ne(i,t)),i}return U},me=(ie=(0,c.useRef)(0),re=function(){bu.Z.cancel(ie.current)},(0,c.useEffect)((function(){return re}),[]),function(e){re(),ie.current=(0,bu.Z)((function(){e()}))}),ve=function e(t){if(he(),Y.current=t,te(t),!H.current){var n=q(t),i=du(n);i.isNaN()||ge(i,!0)}null==M||M(t),me((function(){var n=t;k||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},ye=function(e){var t;if(!(e&&se||!e&&le)){$.current=!1;var n=du(Z.current?xu(l):l);e||(n=n.negate());var i=(U||du(0)).add(n.toString()),r=ge(i,!1);null==A||A(Cu(S,r),{offset:Z.current?xu(l):l,type:e?"up":"down"}),null===(t=R.current)||void 0===t||t.focus()}},be=function(e){var t,n=du(q(ee));t=n.isNaN()?ge(U,e):ge(n,e),void 0!==h?ne(U,!1):t.isNaN()||ne(t,!1)};c.useEffect((function(){if(b&&z){var e=function(e){ye(e.deltaY<0),e.preventDefault()},t=R.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}}));return(0,fu.o)((function(){U.isInvalidate()||ne(U,!1)}),[C,_]),(0,fu.o)((function(){var e=du(h);V(e);var t=du(q(ee));e.equals(t)&&$.current&&!_||ne(e,$.current)}),[h]),(0,fu.o)((function(){_&&de()}),[ee]),c.createElement("div",{ref:N,className:f()(n,i,(0,qc.Z)((0,qc.Z)((0,qc.Z)((0,qc.Z)((0,qc.Z)({},"".concat(n,"-focused"),z),"".concat(n,"-disabled"),d),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),U.isNaN()),"".concat(n,"-out-of-range"),!U.isInvalidate()&&!fe(U))),style:r,onFocus:function(){j(!0)},onBlur:function(){D&&be(!1),j(!1),$.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;$.current=!0,Z.current=n,"Enter"===t&&(H.current||($.current=!1),be(!1),null==L||L(e)),!1!==v&&!H.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(ye("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){$.current=!1,Z.current=!1},onCompositionStart:function(){H.current=!0},onCompositionEnd:function(){H.current=!1,ve(R.current.value)},onBeforeInput:function(){$.current=!0}},x&&c.createElement(wu,{prefixCls:n,upNode:g,downNode:m,upDisabled:se,downDisabled:le,onStep:ye}),c.createElement("div",{className:"".concat(B,"-wrap")},c.createElement("input",(0,Ll.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":U.isInvalidate()?null:U.toString(),step:l},I,{ref:(0,gu.sQ)(R,t),className:B,value:ee,onChange:function(e){ve(e.target.value)},disabled:d,readOnly:p}))))})),Mu=c.forwardRef((function(e,t){var n=e.disabled,i=e.style,r=e.prefixCls,o=void 0===r?"rc-input-number":r,a=e.value,s=e.prefix,l=e.suffix,u=e.addonBefore,h=e.addonAfter,d=e.className,p=e.classNames,f=(0,Qc.Z)(e,_u),g=c.useRef(null),m=c.useRef(null),v=c.useRef(null),y=function(e){v.current&&(0,Su.nH)(v.current,e)};return c.useImperativeHandle(t,(function(){return e=v.current,t={focus:y,nativeElement:g.current.nativeElement||m.current},"undefined"!=typeof Proxy&&e?new Proxy(e,{get:function(e,n){if(t[n])return t[n];var i=e[n];return"function"==typeof i?i.bind(e):i}}):e;var e,t})),c.createElement(pu.Q,{className:d,triggerFocus:y,prefixCls:o,value:a,disabled:n,style:i,prefix:s,suffix:l,addonAfter:h,addonBefore:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:g},c.createElement(Eu,(0,Ll.Z)({prefixCls:o,disabled:n,ref:v,domRef:m,className:null==p?void 0:p.input},f)))}));var Lu=Mu,Au=n(62487),Tu=n(82855),Du=n(48755),Nu=n(60840),Iu=n(2171),Bu=n(83397),Ru=n(31756),Ou=n(56553),Fu=n(24971),zu=n(70045),ju=n(66604),$u=n(53075),Hu=n(64910),Zu=n(39082),Ku=n(63356),Gu=n(56119),Uu=n(16931),Vu=n(51636),Wu=n(17835);const qu=(e,t)=>{let{componentCls:n,borderRadiusSM:i,borderRadiusLG:r}=e;const o="lg"===t?r:i;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},Yu=e=>{const{componentCls:t,lineWidth:n,lineType:i,borderRadius:r,inputFontSizeSM:o,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:h,paddingBlockLG:d,paddingInlineLG:p,colorTextDescription:f,motionDurationMid:g,handleHoverColor:m,handleOpacity:v,paddingInline:y,paddingBlock:b,handleBg:w,handleActiveBg:x,colorTextDisabled:S,borderRadiusSM:k,borderRadiusLG:_,controlWidth:C,handleBorderColor:P,filledHandleBg:E,lineHeightLG:M,calc:L}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ku.Wf)(e)),(0,$u.ik)(e)),{display:"inline-block",width:C,margin:0,padding:0,borderRadius:r}),(0,Zu.qG)(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${(0,ju.bf)(n)} ${i} ${P}`}}})),(0,Zu.H8)(e,{[`${t}-handler-wrap`]:{background:E,[`${t}-handler-down`]:{borderBlockStart:`${(0,ju.bf)(n)} ${i} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),(0,Zu.vc)(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${(0,ju.bf)(n)} ${i} ${P}`}}})),(0,Zu.Mu)(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:M,borderRadius:_,[`input${t}-input`]:{height:L(s).sub(L(n).mul(2)).equal(),padding:`${(0,ju.bf)(d)} ${(0,ju.bf)(p)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:k,[`input${t}-input`]:{height:L(l).sub(L(n).mul(2)).equal(),padding:`${(0,ju.bf)(h)} ${(0,ju.bf)(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Ku.Wf)(e)),(0,$u.s7)(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:_,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:k}}},(0,Zu.ir)(e)),(0,Zu.S5)(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ku.Wf)(e)),{width:"100%",padding:`${(0,ju.bf)(b)} ${(0,ju.bf)(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:r,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),(0,$u.nz)(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:v,height:"100%",borderStartStartRadius:0,borderStartEndRadius:r,borderEndEndRadius:r,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:f,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ju.bf)(n)} ${i} ${P}`,transition:`all ${g} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:m}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Ku.Ro)()),{color:f,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:r},[`${t}-handler-down`]:{borderEndEndRadius:r}},qu(e,"lg")),qu(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:S}})}]},Xu=e=>{const{componentCls:t,paddingBlock:n,paddingInline:i,inputAffixPadding:r,controlWidth:o,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:h,motionDurationMid:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${(0,ju.bf)(n)} 0`}},(0,$u.ik)(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:i,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${(0,ju.bf)(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${(0,ju.bf)(h)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:i,marginInlineStart:r,transition:`margin ${d}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(i).equal()}})}};var Qu=(0,Uu.I$)("InputNumber",(e=>{const t=(0,Vu.IX)(e,(0,Hu.e)(e));return[Yu(t),Xu(t),(0,Gu.c)(t)]}),(e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto",i=e.controlHeightSM-2*e.lineWidth;return Object.assign(Object.assign({},(0,Hu.T)(e)),{controlWidth:90,handleWidth:i,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Wu.t(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0,handleVisibleWidth:!0===n?i:0})}),{unitless:{handleOpacity:!0}}),Ju=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:i}=c.useContext(Du.E_),r=c.useRef(null);c.useImperativeHandle(t,(()=>r.current));const{className:o,rootClassName:a,size:s,disabled:l,prefixCls:u,addonBefore:h,addonAfter:d,prefix:p,suffix:g,bordered:m,readOnly:v,status:y,controls:b,variant:w}=e,x=Ju(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",u),k=(0,Bu.Z)(S),[_,C,P]=Qu(S,k),{compactSize:E,compactItemClassnames:M}=(0,zu.ri)(S,i);let L=c.createElement(Wc,{className:`${S}-handler-up-inner`}),A=c.createElement(Gc.Z,{className:`${S}-handler-down-inner`});const T="boolean"==typeof b?b:void 0;"object"==typeof b&&(L=void 0===b.upIcon?L:c.createElement("span",{className:`${S}-handler-up-inner`},b.upIcon),A=void 0===b.downIcon?A:c.createElement("span",{className:`${S}-handler-down-inner`},b.downIcon));const{hasFeedback:D,status:N,isFormItemInput:I,feedbackIcon:B}=c.useContext(Ou.aM),R=(0,Tu.F)(N,y),O=(0,Ru.Z)((e=>{var t;return null!==(t=null!=s?s:E)&&void 0!==t?t:e})),F=c.useContext(Iu.Z),z=null!=l?l:F,[j,$]=(0,Fu.Z)("inputNumber",w,m),H=D&&c.createElement(c.Fragment,null,B),Z=f()({[`${S}-lg`]:"large"===O,[`${S}-sm`]:"small"===O,[`${S}-rtl`]:"rtl"===i,[`${S}-in-form-item`]:I},C),K=`${S}-group`;return _(c.createElement(Lu,Object.assign({ref:r,disabled:z,className:f()(P,k,o,a,M),upHandler:L,downHandler:A,prefixCls:S,readOnly:v,controls:T,prefix:p,suffix:H||g,addonBefore:h&&c.createElement(Au.Z,{form:!0,space:!0},h),addonAfter:d&&c.createElement(Au.Z,{form:!0,space:!0},d),classNames:{input:Z,variant:f()({[`${S}-${j}`]:$},(0,Tu.Z)(S,R,D)),affixWrapper:f()({[`${S}-affix-wrapper-sm`]:"small"===O,[`${S}-affix-wrapper-lg`]:"large"===O,[`${S}-affix-wrapper-rtl`]:"rtl"===i,[`${S}-affix-wrapper-without-controls`]:!1===b||z},C),wrapper:f()({[`${K}-rtl`]:"rtl"===i},C),groupWrapper:f()({[`${S}-group-wrapper-sm`]:"small"===O,[`${S}-group-wrapper-lg`]:"large"===O,[`${S}-group-wrapper-rtl`]:"rtl"===i,[`${S}-group-wrapper-${j}`]:$},(0,Tu.Z)(`${S}-group-wrapper`,R,D),C)}},x)))})),th=eh;th._InternalPanelDoNotUseOrYouWillBeFired=e=>c.createElement(Nu.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},c.createElement(eh,Object.assign({},e)));var nh=th,ih=n(47889);var rh=kl.Z.API_SERVER,oh=Sc.Z.useForm,ah={width:280,marginRight:10},sh={labelCol:{span:5},wrapperCol:{span:19}},lh=function(e){var t=e.callback,n=e.onCancel,i=oh(),r=l()(i,1)[0],o=(0,c.useRef)();function a(e,t){-1!==e.status?r.setFieldsValue({src:"/api/attachments/".concat(e.id),type:t.type}):ec.ZP.error(e.message)}return(0,g.jsxs)(Sc.Z,h()(h()({form:r},sh),{},{className:"upload-image-panel",onFinish:function(e){o.current.width=r.getFieldValue("width"),o.current.align=r.getFieldValue("align"),t(e,o.current)},style:{width:470,overflow:"hidden"},children:[(0,g.jsx)(Sc.Z.Item,{label:"图片地址",required:!0,children:(0,g.jsxs)("div",{className:"flex-container",children:[(0,g.jsx)(Sc.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,g.jsx)(kc.Z,{style:ah})}),(0,g.jsx)(ch,{onFileChange:function(e){var t=e.target.files[0];o.current=t,uh(t,a)}})]})}),(0,g.jsx)(Sc.Z.Item,{label:"图片描述",name:"alt",children:(0,g.jsx)(kc.Z,{style:{width:264}})}),(0,g.jsx)(Sc.Z.Item,{label:"图片宽度",name:"width",children:(0,g.jsxs)(Kc.Z,{children:[(0,g.jsx)(Sc.Z.Item,{name:"width",style:{margin:0},children:(0,g.jsx)(nh,{style:{width:264}})}),(0,g.jsx)("span",{className:"ml8",children:"%"})]})}),(0,g.jsx)(Sc.Z.Item,{label:"对齐方式",name:"align",children:(0,g.jsx)(ih.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"左对齐"},{value:"center",label:"居中对齐"},{value:"right",label:"右对齐"}]})}),(0,g.jsx)("aside",{children:(0,g.jsxs)(Sc.Z.Item,{style:{textAlign:"right",position:"relative",right:-98},children:[(0,g.jsx)(Ml.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,g.jsx)(Ml.ZP,{type:"default",onClick:n,children:"取消"})]})})]}))};function ch(e){var t=e.onFileChange;return(0,g.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,g.jsx)("input",{type:"file",onChange:t})]})}function uh(e,t){if(!e)throw new String("没有文件");var n=new FormData;n.append("editormd-image-file",e),n.append("file_param_name","editormd-image-file"),n.append("byxhr","true");var i=new window.XMLHttpRequest;i.withCredentials=!0,i.addEventListener("load",(function(n){t(JSON.parse(n.target.responseText),e)}),!1),i.addEventListener("error",(function(e){console.error(e)}),!1),i.open("POST","".concat(rh,"/api/attachments.json")),i.send(n)}var hh=n(91662),dh=n(77019),ph="imageDimensions___a7crR",fh="img___Kroat",gh="fullWidth___c492T",mh=n(41622),vh=function(e,t){return(vh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function yh(e,t){function n(){this.constructor=e}vh(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function bh(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function wh(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]',"select"),this.addActionButton(n,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(n,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(n,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(n,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(n,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(n,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(n,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach((function(e){var n=document.createElement("div");n.className=""+t.toolbarButtonStyleClass.name,n.setAttribute("data-type-name",e.typeName),n.innerHTML=e.icon,n.addEventListener("click",(function(){t.markerToolbarButtonClicked(n,e)})),t.buttons.push(n),t.markerButtons.push(n)})),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var i=document.createElement("div");i.className=this.toolbarBlockStyleClass.name,i.style.whiteSpace="nowrap",i.style.display=!1!==this.uiStyleSettings.resultButtonBlockVisible?"":"none",this.uiContainer.appendChild(i),this.addActionButton(i,'',"render"),this.addActionButton(i,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},e.prototype.addButtonClickListener=function(e){this.buttonClickListeners.push(e)},e.prototype.removeButtonClickListener=function(e){this.buttonClickListeners.indexOf(e)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(e),1)},e.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},e.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var e=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var t=0;t0&&this.buttonClickListeners.forEach((function(e){return e("marker",t)})),this.markerButtonOverflowBlock.style.display="none"},e.prototype.actionToolbarButtonClicked=function(e,t){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach((function(e){return e("action",t)})),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},e.prototype.setActiveButton=function(e){this.resetButtonStyles(),e.className=e.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),e.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},e.prototype.setActiveMarkerButton=function(e){var t=this.markerButtons.find((function(t){return t.getAttribute("data-type-name")===e}));t&&this.setActiveButton(t)},e.prototype.setCurrentMarker=function(e){var t=this;this.currentMarker=e,this.buttons.filter((function(e){return/delete|notes/.test(e.getAttribute("data-action"))})).forEach((function(e){void 0===t.currentMarker?(e.style.fillOpacity="0.4",e.style.pointerEvents="none"):(e.style.fillOpacity="1",e.style.pointerEvents="all")}))},e}(),Ah=function(){function e(e,t,n,i){this.panels=[],this.panelButtons=[],this.markerjsContainer=e,this.displayMode=t,this.uiStyleSettings=n,this.styles=i,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return e.prototype.addStyles=function(){var e;this.toolboxStyleClass=this.styles.addClass(new Mh("toolbox","\n width: 100%;\n flex-shrink: 0;\n display: flex;\n flex-direction: column;\n font-family: sans-serif;\n "+("popup"===this.displayMode?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+"\n box-sizing: content-box;\n "+("popup"===this.displayMode?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+"\n "+("inline"===this.displayMode?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n "+("inline"===this.displayMode?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n overflow: hidden;\n ")),this.toolboxStyleColorsClass=this.styles.addClass(new Mh("toolbox_colors","\n color: "+this.uiStyleSettings.toolboxColor+";\n "));var t=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Mh("toolbox-button-row","\n display: flex;\n cursor: default;\n box-sizing: content-box;\n ")),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Mh("toolbox-button-row_colors","\n background-color: "+this.uiStyleSettings.toolbarBackgroundColor+";\n ")),this.toolboxPanelRowStyleClass=this.styles.addClass(new Mh("toolbox-panel-row","\n display: flex;\n "+("inline"===this.displayMode?"position: absolute;":"")+"\n "+("inline"===this.displayMode?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+"\n cursor: default;\n height: "+1.5*this.uiStyleSettings.toolbarHeight+"px;\n "+("inline"===this.displayMode?"width: 100%;":"")+"\n box-sizing: content-box;\n ")),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Mh("toolbox-panel-row_colors","\n background-color: "+(null!==(e=this.uiStyleSettings.toolboxBackgroundColor)&&void 0!==e?e:this.uiStyleSettings.toolbarBackgroundHoverColor)+";\n ")),this.toolboxButtonStyleClass=this.styles.addClass(new Mh("toolbox_button","\n display: inline-block;\n width: "+(this.uiStyleSettings.toolbarHeight-2*t)+"px;\n height: "+(this.uiStyleSettings.toolbarHeight-2*t)+"px;\n padding: "+t+"px;\n box-sizing: content-box;\n ")),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Mh("toolbox-button_colors","\n fill: "+this.uiStyleSettings.toolbarColor+";\n ")),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Mh("toolbox-active-button_colors","\n background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+";\n fill: "+this.uiStyleSettings.toolbarColor+";\n ")),this.styles.addRule(new Eh("."+this.toolboxButtonStyleColorsClass.name+":hover","\n background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+"\n ")),this.styles.addRule(new Eh("."+this.toolboxButtonStyleClass.name+" svg","\n height: "+this.uiStyleSettings.toolbarHeight/2+"px;\n "))},e.prototype.show=function(e){var t;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=e,this.uiContainer.className=this.toolboxStyleClass.name+" "+(null!==(t=this.uiStyleSettings.toolboxStyleColorsClassName)&&void 0!==t?t:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},e.prototype.setPanelButtons=function(e){var t,n,i=this;this.panels=e,void 0!==this.uiContainer&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+(null!==(t=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)&&void 0!==t?t:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+(null!==(n=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)&&void 0!==n?n:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach((function(e){var t;e.uiStyleSettings=i.uiStyleSettings;var n=document.createElement("div");n.className=i.toolboxButtonStyleClass.name+" "+(null!==(t=i.uiStyleSettings.toolboxButtonStyleColorsClassName)&&void 0!==t?t:i.toolboxButtonStyleColorsClass.name),n.innerHTML=e.icon,n.title=e.title,n.addEventListener("click",(function(){i.panelButtonClick(e)})),i.panelButtons.push(n),i.buttonRow.appendChild(n)})),"inline"===this.displayMode?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},e.prototype.panelButtonClick=function(e){var t=this,n=-1;if(e!==this.activePanel){n=this.panels.indexOf(e),this.panelRow.innerHTML="";var i=e.getUi();i.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(i),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=e}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout((function(){"inline"===t.displayMode?t.panelRow.style.display="none":t.panelRow.style.visibility="hidden"}),200);this.panelButtons.forEach((function(e,i){var r,o;e.className=t.toolboxButtonStyleClass.name+" "+(i===n?""+(null!==(r=t.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)&&void 0!==r?r:t.toolboxActiveButtonStyleColorsClass.name):""+(null!==(o=t.uiStyleSettings.toolboxButtonStyleColorsClassName)&&void 0!==o?o:t.toolboxButtonStyleColorsClass.name))}))},e}(),Th=function(e,t){this.title=e,this.icon=t},Dh=function(e){function t(t,n,i,r){var o=e.call(this,t,r||'')||this;return o.colors=[],o.addTransparent=!1,o.colorBoxes=[],o.colors=n,o.currentColor=i,o.setCurrentColor=o.setCurrentColor.bind(o),o.getColorBox=o.getColorBox.bind(o),o}return yh(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");return t.style.overflow="hidden",t.style.whiteSpace="nowrap",this.colors.forEach((function(n){var i=e.getColorBox(n);t.appendChild(i),e.colorBoxes.push(i)})),t},t.prototype.getColorBox=function(e){var t=this,n=this.uiStyleSettings.toolbarHeight/4,i=this.uiStyleSettings.toolbarHeight-n,r=document.createElement("div");r.style.display="inline-block",r.style.boxSizing="content-box",r.style.width=i-2+"px",r.style.height=i-2+"px",r.style.padding="1px",r.style.marginRight="2px",r.style.marginBottom="2px",r.style.borderWidth="2px",r.style.borderStyle="solid",r.style.borderRadius=(i+2)/2+"px",r.style.borderColor=e===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",r.addEventListener("click",(function(){t.setCurrentColor(e,r)}));var o=document.createElement("div");return o.style.display="inline-block",o.style.width=i-2+"px",o.style.height=i-2+"px",o.style.backgroundColor=e,o.style.borderRadius=i/2+"px","transparent"===e&&(o.style.fill=this.uiStyleSettings.toolboxAccentColor,o.innerHTML='\n \n '),r.appendChild(o),r},t.prototype.setCurrentColor=function(e,t){var n=this;this.currentColor=e,this.colorBoxes.forEach((function(e){e.style.borderColor=e===t?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onColorChanged&&this.onColorChanged(e)},t}(Th),Nh=function(){function e(e,t,n){this._state="new",this._isSelected=!1,this._container=e,this._overlayContainer=t,this.globalSettings=n,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(e.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.ownsTarget=function(e){return!1},Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),e.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},e.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},e.prototype.pointerDown=function(e,t){},e.prototype.dblClick=function(e,t){},e.prototype.manipulate=function(e){},e.prototype.pointerUp=function(e){this.stateChanged()},e.prototype.dispose=function(){},e.prototype.addMarkerVisualToContainer=function(e){this.container.childNodes.length>0?this.container.insertBefore(e,this.container.childNodes[0]):this.container.appendChild(e)},e.prototype.getState=function(){return{typeName:e.typeName,state:this.state,notes:this.notes}},e.prototype.restoreState=function(e){this._state=e.state,this.notes=e.notes},e.prototype.scale=function(e,t){},e.prototype.colorChanged=function(e){this.onColorChanged&&this.onColorChanged(e),this.stateChanged()},e.prototype.fillColorChanged=function(e){this.onFillColorChanged&&this.onFillColorChanged(e),this.stateChanged()},e.prototype.stateChanged=function(){if(this.onStateChanged&&"creating"!==this.state&&"new"!==this.state){var e=this.getState();void 0!==this.manipulationStartState&&(this.manipulationStartState.state="select"),e.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(e)&&this.onStateChanged(this)}},e.typeName="MarkerBase",e}(),Ih=function(){function e(){this.findGripByVisual=this.findGripByVisual.bind(this)}return e.prototype.findGripByVisual=function(e){return this.topLeft.ownsTarget(e)?this.topLeft:this.topCenter.ownsTarget(e)?this.topCenter:this.topRight.ownsTarget(e)?this.topRight:this.centerLeft.ownsTarget(e)?this.centerLeft:this.centerRight.ownsTarget(e)?this.centerRight:this.bottomLeft.ownsTarget(e)?this.bottomLeft:this.bottomCenter.ownsTarget(e)?this.bottomCenter:this.bottomRight.ownsTarget(e)?this.bottomRight:void 0},e}(),Bh=function(){function e(){this.GRIP_SIZE=10,this.visual=Sh.createGroup(),this.visual.appendChild(Sh.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Sh.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return e.prototype.ownsTarget=function(e){return e===this.visual||e===this.visual.childNodes[0]||e===this.visual.childNodes[1]},e}(),Rh=function(){function e(){}return e.toITransformMatrix=function(e){return{a:e.a,b:e.b,c:e.c,d:e.d,e:e.e,f:e.f}},e.toSVGMatrix=function(e,t){return e.a=t.a,e.b=t.b,e.c=t.c,e.d=t.d,e.e=t.e,e.f=t.f,e},e}(),Oh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.left=0,r.top=0,r.width=0,r.height=0,r.defaultSize={x:50,y:20},r.offsetX=0,r.offsetY=0,r.rotationAngle=0,r.CB_DISTANCE=10,r._suppressMarkerCreateEvent=!1,r.container.transform.baseVal.appendItem(Sh.createTransform()),r.setupControlBox(),r}return yh(t,e),Object.defineProperty(t.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visual",{get:function(){return this._visual},set:function(e){this._visual=e;var t=Sh.createTransform();this._visual.transform.baseVal.appendItem(t)},enumerable:!1,configurable:!0}),t.prototype.ownsTarget=function(t){return!!e.prototype.ownsTarget.call(this,t)||!!(void 0!==this.controlGrips.findGripByVisual(t)||void 0!==this.rotatorGrip&&this.rotatorGrip.ownsTarget(t))},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),"new"===this.state&&(this.left=t.x,this.top=t.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var i=this.unrotatePoint(t);if(this.manipulationStartX=i.x,this.manipulationStartY=i.y,this.offsetX=i.x-this.left,this.offsetY=i.y-this.top,"new"!==this.state)if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(n),void 0!==this.activeGrip)this._state="resize";else if(void 0!==this.rotatorGrip&&this.rotatorGrip.ownsTarget(n)){this.activeGrip=this.rotatorGrip;var r=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=r.x-this.width/2,this.top=r.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var o=this.container.transform.baseVal.getItem(0);o.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(o,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},t.prototype.pointerUp=function(t){var n=this.state;e.prototype.pointerUp.call(this,t),"creating"===this.state&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(t),this._state="select","creating"===n&&this.onMarkerCreated&&!1===this._suppressMarkerCreateEvent&&this.onMarkerCreated(this)},t.prototype.moveVisual=function(e){this.visual.style.transform="translate("+e.x+"px, "+e.y+"px)"},t.prototype.manipulate=function(e){var t=this.unrotatePoint(e);"creating"===this.state?this.resize(e):"move"===this.state?(this.left=this.manipulationStartLeft+(t.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(t.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):"resize"===this.state?this.resize(t):"rotate"===this.state&&this.rotate(e)},t.prototype.resize=function(e){var t=this.manipulationStartLeft,n=this.manipulationStartWidth,i=this.manipulationStartTop,r=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:t=this.manipulationStartLeft+e.x-this.manipulationStartX,n=this.manipulationStartWidth+this.manipulationStartLeft-t;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:n=this.manipulationStartWidth+e.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:i=this.manipulationStartTop+e.y-this.manipulationStartY,r=this.manipulationStartHeight+this.manipulationStartTop-i;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:r=this.manipulationStartHeight+e.y-this.manipulationStartY}n>=0?(this.left=t,this.width=n):(this.left=t+n,this.width=-n),r>=0?(this.top=i,this.height=r):(this.top=i+r,this.height=-r),this.setSize()},t.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},t.prototype.rotate=function(e){if(Math.abs(e.x-this.centerX)>.1){var t=Math.sign(e.x-this.centerX);this.rotationAngle=180*Math.atan((e.y-this.centerY)/(e.x-this.centerX))/Math.PI+90*t,this.applyRotation()}},t.prototype.applyRotation=function(){var e=this.container.transform.baseVal.getItem(0);e.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(e,0)},t.prototype.rotatePoint=function(e){if(0===this.rotationAngle)return e;var t=this.container.getCTM(),n=Sh.createPoint(e.x,e.y);return{x:(n=n.matrixTransform(t)).x,y:n.y}},t.prototype.unrotatePoint=function(e){if(0===this.rotationAngle)return e;var t=this.container.getCTM();t=t.inverse();var n=Sh.createPoint(e.x,e.y);return{x:(n=n.matrixTransform(t)).x,y:n.y}},t.prototype.select=function(){e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},t.prototype.deselect=function(){e.prototype.deselect.call(this),this.controlBox.style.display="none"},t.prototype.setupControlBox=function(){this.controlBox=Sh.createGroup();var e=Sh.createTransform();e.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(e),this.container.appendChild(this.controlBox),this.controlRect=Sh.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),!0!==this.globalSettings.disableRotation&&(this.rotatorGripLine=Sh.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ih,this.addControlGrips(),this.controlBox.style.display="none"},t.prototype.adjustControlBox=function(){var e=this.controlBox.transform.baseVal.getItem(0);e.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(e,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),void 0!==this.rotatorGripLine&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},t.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),!0!==this.globalSettings.disableRotation&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},t.prototype.createGrip=function(){var e=new Bh;return e.visual.transform.baseVal.appendItem(Sh.createTransform()),this.controlBox.appendChild(e.visual),e},t.prototype.positionGrips=function(){var e=this.controlGrips.topLeft.GRIP_SIZE,t=-e/2,n=t,i=(this.width+this.CB_DISTANCE)/2-e/2,r=(this.height+this.CB_DISTANCE)/2-e/2,o=this.height+this.CB_DISTANCE-e/2,a=this.width+this.CB_DISTANCE-e/2;this.positionGrip(this.controlGrips.topLeft.visual,t,n),this.positionGrip(this.controlGrips.topCenter.visual,i,n),this.positionGrip(this.controlGrips.topRight.visual,a,n),this.positionGrip(this.controlGrips.centerLeft.visual,t,r),this.positionGrip(this.controlGrips.centerRight.visual,a,r),this.positionGrip(this.controlGrips.bottomLeft.visual,t,o),this.positionGrip(this.controlGrips.bottomCenter.visual,i,o),this.positionGrip(this.controlGrips.bottomRight.visual,a,o),void 0!==this.rotatorGrip&&this.positionGrip(this.rotatorGrip.visual,i,n-3*this.CB_DISTANCE)},t.prototype.positionGrip=function(e,t,n){var i=e.transform.baseVal.getItem(0);i.setTranslate(t,n),e.transform.baseVal.replaceItem(i,0)},t.prototype.hideControlBox=function(){this.controlBox.style.display="none"},t.prototype.showControlBox=function(){this.controlBox.style.display=""},t.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Rh.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Rh.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},e.prototype.getState.call(this))},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t);var n=t;this.left=n.left,this.top=n.top,this.width=n.width,this.height=n.height,this.rotationAngle=n.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Rh.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,n.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Rh.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,n.containerTransformMatrix))},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n);var i=this.rotatePoint({x:this.left,y:this.top}),r=this.unrotatePoint({x:i.x*t,y:i.y*n});this.left=r.x,this.top=r.y,this.width=this.width*t,this.height=this.height*n,this.adjustControlBox()},t}(Nh),Fh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.fillColor="transparent",r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.opacity=1,r.setStrokeColor=r.setStrokeColor.bind(r),r.setFillColor=r.setFillColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.createVisual=r.createVisual.bind(r),r}return yh(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.visual)},t.prototype.createVisual=function(){this.visual=Sh.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),"new"===this.state&&(this.createVisual(),this.moveVisual(t),this._state="creating")},t.prototype.manipulate=function(t){e.prototype.manipulate.call(this,t)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this.setSize()},t.prototype.setSize=function(){e.prototype.setSize.call(this),Sh.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},t.prototype.pointerUp=function(t){e.prototype.pointerUp.call(this,t),this.setSize()},t.prototype.setStrokeColor=function(e){this.strokeColor=e,this.visual&&Sh.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(e),this.stateChanged()},t.prototype.setFillColor=function(e){this.fillColor=e,this.visual&&Sh.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},t.prototype.setStrokeWidth=function(e){this.strokeWidth=e,this.visual&&Sh.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},t.prototype.setStrokeDasharray=function(e){this.strokeDasharray=e,this.visual&&Sh.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},t.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},e.prototype.getState.call(this))},t.prototype.restoreState=function(t){var n=t;this.fillColor=n.fillColor,this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.opacity=n.opacity,this.createVisual(),e.prototype.restoreState.call(this,t),this.setSize()},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.setSize()},t.title="Rectangle marker",t}(Oh),zh=function(e){function t(t,n,i,r){var o=e.call(this,t,r||'')||this;return o.widths=[],o.widthBoxes=[],o.widths=n,o.currentWidth=i,o.setCurrentWidth=o.setCurrentWidth.bind(o),o}return yh(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");return t.style.display="flex",t.style.overflow="hidden",t.style.flexGrow="2",this.widths.forEach((function(n){var i=document.createElement("div");i.style.display="flex",i.style.flexGrow="2",i.style.alignItems="center",i.style.justifyContent="space-between",i.style.padding="5px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.borderColor=n===e.currentWidth?e.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){e.setCurrentWidth(n,i)})),t.appendChild(i);var r=document.createElement("div");r.innerText=n.toString(),r.style.marginRight="5px",i.appendChild(r);var o=document.createElement("div");o.style.minHeight="20px",o.style.flexGrow="2",o.style.display="flex",o.style.alignItems="center";var a=document.createElement("hr");a.style.minWidth="20px",a.style.border="0px",a.style.borderTop=n+"px solid "+e.uiStyleSettings.toolboxColor,a.style.flexGrow="2",o.appendChild(a),i.appendChild(o),e.widthBoxes.push(i)})),t},t.prototype.setCurrentWidth=function(e,t){var n=this;this.currentWidth=e,this.widthBoxes.forEach((function(e){e.style.borderColor=e===t?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},t}(Th),jh=function(e){function t(t,n,i,r){var o=e.call(this,t,r||'')||this;return o.styles=[],o.styleBoxes=[],o.styles=n,o.currentStyle=i,o.setCurrentStyle=o.setCurrentStyle.bind(o),o}return yh(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");return t.style.display="flex",t.style.overflow="hidden",t.style.flexGrow="2",this.styles.forEach((function(n){var i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="space-between",i.style.padding="5px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.overflow="hidden",i.style.maxWidth=100/e.styles.length-5+"%",i.style.borderColor=n===e.currentStyle?e.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){e.setCurrentStyle(n,i)})),t.appendChild(i);var r=document.createElement("div");r.style.minHeight="20px",r.style.flexGrow="2",r.style.overflow="hidden";var o='\n \n ";r.innerHTML=o,i.appendChild(r),e.styleBoxes.push(i)})),t},t.prototype.setCurrentStyle=function(e,t){var n=this;this.currentStyle=e,this.styleBoxes.forEach((function(e){e.style.borderColor=e===t?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},t}(Th),$h=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.strokePanel=new Dh("Line color",i.defaultColorSet,i.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.strokeWidthPanel=new zh("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new jh("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r}return yh(t,e),Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=e.prototype.getState.call(this);return n.typeName=t.typeName,n},t.typeName="FrameMarker",t.title="Frame marker",t.icon='',t}(Fh),Hh=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Zh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.x1=0,r.y1=0,r.x2=0,r.y2=0,r.defaultLength=50,r.manipulationStartX=0,r.manipulationStartY=0,r.manipulationStartX1=0,r.manipulationStartY1=0,r.manipulationStartX2=0,r.manipulationStartY2=0,r.setupControlBox(),r}return yh(t,e),t.prototype.ownsTarget=function(t){return!!e.prototype.ownsTarget.call(this,t)||!(!this.grip1.ownsTarget(t)&&!this.grip2.ownsTarget(t))},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),this.manipulationStartX=t.x,this.manipulationStartY=t.y,"new"===this.state&&(this.x1=t.x,this.y1=t.y,this.x2=t.x,this.y2=t.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,"new"!==this.state&&(this.select(),this.grip1.ownsTarget(n)?this.activeGrip=this.grip1:this.grip2.ownsTarget(n)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},t.prototype.pointerUp=function(t){var n=this.state;e.prototype.pointerUp.call(this,t),"creating"===this.state&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(t),this._state="select","creating"===n&&this.onMarkerCreated&&this.onMarkerCreated(this)},t.prototype.adjustVisual=function(){},t.prototype.manipulate=function(e){"creating"===this.state?this.resize(e):"move"===this.state?(this.x1=this.manipulationStartX1+e.x-this.manipulationStartX,this.y1=this.manipulationStartY1+e.y-this.manipulationStartY,this.x2=this.manipulationStartX2+e.x-this.manipulationStartX,this.y2=this.manipulationStartY2+e.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):"resize"===this.state&&this.resize(e)},t.prototype.resize=function(e){switch(this.activeGrip){case this.grip1:this.x1=e.x,this.y1=e.y;break;case this.grip2:case void 0:this.x2=e.x,this.y2=e.y}this.adjustVisual(),this.adjustControlBox()},t.prototype.select=function(){e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},t.prototype.deselect=function(){e.prototype.deselect.call(this),this.controlBox.style.display="none"},t.prototype.setupControlBox=function(){this.controlBox=Sh.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},t.prototype.adjustControlBox=function(){this.positionGrips()},t.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},t.prototype.createGrip=function(){var e=new Bh;return e.visual.transform.baseVal.appendItem(Sh.createTransform()),this.controlBox.appendChild(e.visual),e},t.prototype.positionGrips=function(){var e=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-e/2,this.y1-e/2),this.positionGrip(this.grip2.visual,this.x2-e/2,this.y2-e/2)},t.prototype.positionGrip=function(e,t,n){var i=e.transform.baseVal.getItem(0);i.setTranslate(t,n),e.transform.baseVal.replaceItem(i,0)},t.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},e.prototype.getState.call(this))},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t);var n=t;this.x1=n.x1,this.y1=n.y1,this.x2=n.x2,this.y2=n.y2},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.x1=this.x1*t,this.y1=this.y1*n,this.x2=this.x2*t,this.y2=this.y2*n,this.adjustVisual(),this.adjustControlBox()},t}(Nh),Kh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.setStrokeColor=r.setStrokeColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.strokePanel=new Dh("Line color",i.defaultColorSet,i.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.strokeWidthPanel=new zh("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new jh("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r}return yh(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.visual&&t!==this.selectorLine&&t!==this.visibleLine)},t.prototype.createVisual=function(){this.visual=Sh.createGroup(),this.selectorLine=Sh.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Sh.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),"new"===this.state&&(this.createVisual(),this.adjustVisual(),this._state="creating")},t.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Sh.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Sh.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Sh.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},t.prototype.setStrokeColor=function(e){this.strokeColor=e,this.adjustVisual(),this.colorChanged(e)},t.prototype.setStrokeWidth=function(e){this.strokeWidth=e,this.adjustVisual()},t.prototype.setStrokeDasharray=function(e){this.strokeDasharray=e,this.adjustVisual(),this.stateChanged()},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t);var n=t;this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.createVisual(),this.adjustVisual()},t.typeName="LineMarker",t.title="Line marker",t.icon='',t}(Zh),Gh=function(e){function t(t,n,i,r){var o=e.call(this,t,r||'')||this;return o.fonts=[],o.fontBoxes=[],o.fonts=n,o.currentFont=i,o.setCurrentFont=o.setCurrentFont.bind(o),o}return yh(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");return t.style.overflow="hidden",t.style.flexGrow="2",this.fonts.forEach((function(n){var i=document.createElement("div");i.style.display="inline-block",i.style.alignItems="center",i.style.justifyContent="space-between",i.style.padding="5px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.overflow="hidden",i.style.maxWidth=100/e.fonts.length-5+"%",i.style.borderColor=n===e.currentFont?e.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){e.setCurrentFont(n,i)})),t.appendChild(i);var r=document.createElement("div");r.style.display="flex",r.style.minHeight="20px",r.style.flexGrow="2",r.style.fontFamily=n,r.style.overflow="hidden";var o=document.createElement("div");o.style.whiteSpace="nowrap",o.style.overflow="hidden",o.style.textOverflow="ellipsis",o.innerHTML="The quick brown fox jumps over the lazy dog",r.appendChild(o),i.appendChild(r),e.fontBoxes.push(i)})),t},t.prototype.setCurrentFont=function(e,t){var n=this;this.currentFont=e,this.fontBoxes.forEach((function(e){e.style.borderColor=e===t?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onFontChanged&&this.onFontChanged(this.currentFont)},t}(Th),Uh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.color="transparent",r.padding=5,r.DEFAULT_TEXT="请输入文本",r.text=r.DEFAULT_TEXT,r.isMoved=!1,r.color=i.defaultColor,r.fontFamily=i.defaultFontFamily,r.defaultSize={x:100,y:30},r.setColor=r.setColor.bind(r),r.setFont=r.setFont.bind(r),r.renderText=r.renderText.bind(r),r.sizeText=r.sizeText.bind(r),r.textEditDivClicked=r.textEditDivClicked.bind(r),r.showTextEditor=r.showTextEditor.bind(r),r.setSize=r.setSize.bind(r),r.positionTextEditor=r.positionTextEditor.bind(r),r.colorPanel=new Dh("Color",i.defaultColorSet,i.defaultColor),r.colorPanel.onColorChanged=r.setColor,r.fontFamilyPanel=new Gh("Font",i.defaultFontFamilies,i.defaultFontFamily),r.fontFamilyPanel.onFontChanged=r.setFont,r}return yh(t,e),t.prototype.ownsTarget=function(t){if(e.prototype.ownsTarget.call(this,t)||t===this.visual||t===this.textElement||t===this.bgRectangle)return!0;var n=!1;return this.textElement.childNodes.forEach((function(e){e===t&&(n=!0)})),n},t.prototype.createVisual=function(){this.visual=Sh.createGroup(),this.bgRectangle=Sh.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Sh.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Sh.createTransform()),this.textElement.transform.baseVal.appendItem(Sh.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),this.isMoved=!1,this.pointerDownPoint=t,this.pointerDownTimestamp=Date.now(),"new"===this.state&&(this.createVisual(),this.moveVisual(t),this._state="creating")},t.prototype.renderText=function(){var e=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach((function(t){e.textElement.appendChild(Sh.createTSpan(""===t.trim()?" ":t.trim(),[["x","0"],["dy","1.2em"]]))})),setTimeout(this.sizeText,10)}},t.prototype.getTextScale=function(){var e=this.textElement.getBBox(),t=1;if(e.width>0&&e.height>0){var n=(1*this.width-this.width*this.padding*2/100)/e.width,i=(1*this.height-this.height*this.padding*2/100)/e.height;t=Math.min(n,i)}return t},t.prototype.getTextPosition=function(e){var t=this.textElement.getBBox(),n=0,i=0;return t.width>0&&t.height>0&&(n=(this.width-t.width*e)/2,i=this.height/2-t.height*e/2),{x:n,y:i}},t.prototype.sizeText=function(){var e=this.textElement.getBBox(),t=this.getTextScale(),n=this.getTextPosition(t);n.y-=e.y*t,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+n.x+"px, "+n.y+"px) scale("+t+", "+t+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(n.x,n.y),this.textElement.transform.baseVal.getItem(1).setScale(t,t))},t.prototype.manipulate=function(t){e.prototype.manipulate.call(this,t),void 0!==this.pointerDownPoint&&(this.isMoved=Math.abs(t.x-this.pointerDownPoint.x)>5||Math.abs(t.y-this.pointerDownPoint.y)>5)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this.isMoved=!0,this.setSize(),this.sizeText()},t.prototype.setSize=function(){e.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Sh.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Sh.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},t.prototype.pointerUp=function(t){var n=this.state;"creating"===n&&(this._suppressMarkerCreateEvent=!0),e.prototype.pointerUp.call(this,t),this.setSize(),("creating"===n||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},t.prototype.showTextEditor=function(){var e=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",(function(e){e.stopPropagation()})),this.textEditor.addEventListener("input",(function(){for(var t=Number.parseFloat(e.textEditor.style.fontSize);e.textEditor.clientWidth>=Number.parseInt(e.textEditor.style.maxWidth)&&t>.9;)t-=.1,e.textEditor.style.fontSize=Math.max(t,.9)+"em"})),this.textEditor.addEventListener("keyup",(function(e){e.cancelBubble=!0})),this.textEditor.addEventListener("paste",(function(e){if(e.clipboardData){var t=e.clipboardData.getData("text"),n=window.getSelection();if(!n.rangeCount)return!1;n.deleteFromDocument(),n.getRangeAt(0).insertNode(document.createTextNode(t)),e.preventDefault()}})),this.textEditDiv.addEventListener("pointerup",(function(){e.textEditDivClicked(e.textEditor.innerText)})),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},t.prototype.positionTextEditor=function(){if("edit"===this.state)if(void 0===this.textEditor)this.showTextEditor();else{this.textElement.style.display="";var e=this.getTextScale(),t=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),n=this.textElement.getBBox(),i={x:n.width*e,y:n.height*e};t.x-=i.x/2,t.y-=i.y/2,this.textEditor.style.top=t.y+"px",this.textEditor.style.left=t.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-t.x+"px",this.textEditor.style.fontSize=Math.max(16*e,12)+"px",this.textElement.style.display="none"}},t.prototype.textEditDivClicked=function(e){this.text=e.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},t.prototype.select=function(){e.prototype.select.call(this),"edit"===this.state&&this.textEditDivClicked(this.textEditor.innerText)},t.prototype.deselect=function(){"edit"===this.state&&this.textEditDivClicked(this.textEditor.innerText),e.prototype.deselect.call(this)},t.prototype.dblClick=function(t,n){e.prototype.dblClick.call(this,t,n),this.showTextEditor()},t.prototype.setColor=function(e){this.textElement&&Sh.setAttributes(this.textElement,[["fill",e]]),this.color=e,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(e)},t.prototype.setFont=function(e){this.textElement&&Sh.setAttributes(this.textElement,[["font-family",e]]),this.fontFamily=e,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},t.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},t.prototype.showVisual=function(){"edit"===this.state&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){var n=t;this.color=n.color,this.fontFamily=n.fontFamily,this.padding=n.padding,this.text=n.text,this.createVisual(),e.prototype.restoreState.call(this,t),this.setSize()},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.setSize(),this.sizeText(),this.positionTextEditor()},t.typeName="TextMarker",t.title="Text marker",t.icon='',t}(Oh),Vh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.color="transparent",r.lineWidth=3,r.drawing=!1,r.pixelRatio=1,r.color=i.defaultColor,r.lineWidth=i.defaultStrokeWidth,r.pixelRatio=i.freehandPixelRatio,r.setColor=r.setColor.bind(r),r.addCanvas=r.addCanvas.bind(r),r.finishCreation=r.finishCreation.bind(r),r.setLineWidth=r.setLineWidth.bind(r),r.colorPanel=new Dh("Color",i.defaultColorSet,i.defaultColor),r.colorPanel.onColorChanged=r.setColor,r.lineWidthPanel=new zh("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.lineWidthPanel.onWidthChanged=r.setLineWidth,r}return yh(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.visual&&t!==this.drawingImage)},t.prototype.createVisual=function(){this.visual=Sh.createGroup(),this.drawingImage=Sh.createImage(),this.visual.appendChild(this.drawingImage);var e=Sh.createTransform();this.visual.transform.baseVal.appendItem(e),this.addMarkerVisualToContainer(this.visual)},t.prototype.pointerDown=function(t,n){"new"===this.state&&(this.addCanvas(),this.createVisual(),this._state="creating"),"creating"===this.state?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(t.x,t.y),this.drawing=!0):e.prototype.pointerDown.call(this,t,n)},t.prototype.manipulate=function(t){"creating"===this.state?this.drawing&&(this.canvasContext.lineTo(t.x,t.y),this.canvasContext.stroke()):e.prototype.manipulate.call(this,t)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),Sh.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Sh.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},t.prototype.pointerUp=function(t){"creating"===this._state?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):e.prototype.pointerUp.call(this,t)},t.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},t.prototype.select=function(){"creating"===this.state&&this.finishCreation(),e.prototype.select.call(this)},t.prototype.deselect=function(){"creating"===this.state&&this.finishCreation(),e.prototype.deselect.call(this)},t.prototype.finishCreation=function(){for(var e=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),t=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],n=t[0],i=t[1],r=t[2],o=t[3],a=!1,s=0;s0&&(a=!0,so&&(o=s),l>r&&(r=l));if(a){this.left=n/this.pixelRatio,this.top=i/this.pixelRatio,this.width=(r-n)/this.pixelRatio,this.height=(o-i)/this.pixelRatio;var c=document.createElement("canvas");c.width=r-n,c.height=o-i,c.getContext("2d").putImageData(this.canvasContext.getImageData(n,i,r-n,o-i),0,0),this.drawingImgUrl=c.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},t.prototype.setDrawingImage=function(){Sh.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Sh.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},t.prototype.setColor=function(e){this.color=e,this.colorChanged(e)},t.prototype.setLineWidth=function(e){this.lineWidth=e},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return"new"===this.state||"creating"===this.state?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=Object.assign({drawingImgUrl:this.drawingImgUrl},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){this.createVisual(),e.prototype.restoreState.call(this,t),this.drawingImgUrl=t.drawingImgUrl,this.setDrawingImage()},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.setDrawingImage()},t.typeName="FreehandMarker",t.title="Freehand marker",t.icon='',t}(Oh),Wh=function(e){function t(t,n,i){var r=e.call(this,t,i||'')||this;return r.typeBoxes=[],r.currentType=n,r.setCurrentType=r.setCurrentType.bind(r),r}return yh(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");t.style.display="flex",t.style.overflow="hidden",t.style.flexGrow="2";for(var n=function(n){var r="both";switch(n){case 0:r="both";break;case 1:r="start";break;case 2:r="end";break;case 3:r="none"}var o=document.createElement("div");if(o.style.display="flex",o.style.flexGrow="2",o.style.alignItems="center",o.style.justifyContent="space-between",o.style.padding="5px",o.style.borderWidth="2px",o.style.borderStyle="solid",o.style.borderColor=r===i.currentType?i.uiStyleSettings.toolboxAccentColor:"transparent",o.addEventListener("click",(function(){e.setCurrentType(r,o)})),t.appendChild(o),"both"===r||"start"===r){var a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.minHeight="20px",a.innerHTML='\n \n ',a.style.marginLeft="5px",o.appendChild(a)}var s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.minHeight="20px",s.style.flexGrow="2";var l=document.createElement("hr");if(l.style.minWidth="20px",l.style.border="0px",l.style.borderTop="3px solid "+(void 0!==i.uiStyleSettings?i.uiStyleSettings.toolboxColor:"#eeeeee"),l.style.flexGrow="2",s.appendChild(l),o.appendChild(s),"both"===r||"end"===r){var c=document.createElement("div");c.style.display="flex",c.style.alignItems="center",c.style.minHeight="20px",c.innerHTML='\n \n ',c.style.marginRight="5px",o.appendChild(c)}i.typeBoxes.push(o)},i=this,r=0;r<4;r++)n(r);return t},t.prototype.setCurrentType=function(e,t){var n=this;this.currentType=e,this.typeBoxes.forEach((function(e){e.style.borderColor=e===t?void 0!==n.uiStyleSettings?n.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"})),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},t}(Th),qh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.arrowType="end",r.arrowBaseHeight=10,r.arrowBaseWidth=10,r.getArrowPoints=r.getArrowPoints.bind(r),r.setArrowType=r.setArrowType.bind(r),r.arrowTypePanel=new Wh("Arrow type","end"),r.arrowTypePanel.onArrowTypeChanged=r.setArrowType,r}return yh(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.arrow1&&t!==this.arrow2)},t.prototype.getArrowPoints=function(e,t){var n=this.arrowBaseWidth+2*this.strokeWidth,i=this.arrowBaseHeight+2*this.strokeWidth;return e-n/2+","+(t+i/2)+" "+e+","+(t-i/2)+" "+(e+n/2)+","+(t+i/2)},t.prototype.createTips=function(){this.arrow1=Sh.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Sh.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Sh.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Sh.createTransform()),this.visual.appendChild(this.arrow2)},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),"creating"===this.state&&this.createTips()},t.prototype.adjustVisual=function(){if(e.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display="both"===this.arrowType||"start"===this.arrowType?"":"none",this.arrow2.style.display="both"===this.arrowType||"end"===this.arrowType?"":"none",Sh.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Sh.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var t=0;Math.abs(this.x1-this.x2)>.1&&(t=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var n=this.arrow1.transform.baseVal.getItem(0);n.setRotate(t,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(n,0);var i=this.arrow2.transform.baseVal.getItem(0);i.setRotate(t+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(i,0)}},t.prototype.setArrowType=function(e){this.arrowType=e,this.adjustVisual(),this.stateChanged()},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=Object.assign({arrowType:this.arrowType},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t);var n=t;this.arrowType=n.arrowType,this.createTips(),this.adjustVisual()},t.typeName="ArrowMarker",t.title="Arrow marker",t.icon='',t}(Kh),Yh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.fillColor=i.defaultFillColor,r.strokeWidth=0,r.fillPanel=new Dh("Color",i.defaultColorSet,i.defaultFillColor),r.fillPanel.onColorChanged=r.setFillColor,r}return yh(t,e),Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=e.prototype.getState.call(this);return n.typeName=t.typeName,n},t.typeName="CoverMarker",t.title="Cover marker",t.icon='',t}(Fh),Xh=function(e){function t(t,n,i,r){var o=e.call(this,t,r||'')||this;return o.opacities=[],o.opacityBoxes=[],o.opacities=n,o.currentOpacity=i,o.setCurrentOpacity=o.setCurrentOpacity.bind(o),o}return yh(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");return t.style.display="flex",t.style.overflow="hidden",t.style.flexGrow="2",t.style.justifyContent="space-between",this.opacities.forEach((function(n){var i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="center",i.style.padding="5px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.borderColor=n===e.currentOpacity?e.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){e.setCurrentOpacity(n,i)})),t.appendChild(i);var r=document.createElement("div");r.innerText=100*n+"%",i.appendChild(r),e.opacityBoxes.push(i)})),t},t.prototype.setCurrentOpacity=function(e,t){var n=this;this.currentOpacity=e,this.opacityBoxes.forEach((function(e){e.style.borderColor=e===t?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},t}(Th),Qh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.setOpacity=r.setOpacity.bind(r),r.fillColor=i.defaultHighlightColor,r.strokeWidth=0,r.opacity=i.defaultHighlightOpacity,r.fillPanel=new Dh("Color",i.defaultColorSet,r.fillColor),r.fillPanel.onColorChanged=r.setFillColor,r.opacityPanel=new Xh("Opacity",i.defaultOpacitySteps,r.opacity),r.opacityPanel.onOpacityChanged=r.setOpacity,r}return yh(t,e),t.prototype.setOpacity=function(e){this.opacity=e,this.visual&&Sh.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=e.prototype.getState.call(this);return n.typeName=t.typeName,n},t.typeName="HighlightMarker",t.title="Highlight marker",t.icon='',t}(Yh),Jh='',ed='',td=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.bgColor="transparent",r.tipPosition={x:0,y:0},r.tipBase1Position={x:0,y:0},r.tipBase2Position={x:0,y:0},r.tipMoving=!1,r.color=i.defaultStrokeColor,r.bgColor=i.defaultFillColor,r.fontFamily=i.defaultFontFamily,r.defaultSize={x:100,y:30},r.setBgColor=r.setBgColor.bind(r),r.getTipPoints=r.getTipPoints.bind(r),r.positionTip=r.positionTip.bind(r),r.setTipPoints=r.setTipPoints.bind(r),r.colorPanel=new Dh("Text color",i.defaultColorSet,r.color,Jh),r.colorPanel.onColorChanged=r.setColor,r.bgColorPanel=new Dh("Fill color",i.defaultColorSet,r.bgColor,ed),r.bgColorPanel.onColorChanged=r.setBgColor,r.fontFamilyPanel=new Gh("Font",i.defaultFontFamilies,i.defaultFontFamily),r.fontFamilyPanel.onFontChanged=r.setFont,r.tipGrip=new Bh,r.tipGrip.visual.transform.baseVal.appendItem(Sh.createTransform()),r.controlBox.appendChild(r.tipGrip.visual),r}return yh(t,e),t.prototype.ownsTarget=function(t){return e.prototype.ownsTarget.call(this,t)||this.tipGrip.ownsTarget(t)||this.tip===t},t.prototype.createTip=function(){Sh.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Sh.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},t.prototype.pointerDown=function(t,n){"new"===this.state&&e.prototype.pointerDown.call(this,t,n),"creating"===this.state?this.createTip():this.tipGrip.ownsTarget(n)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):e.prototype.pointerDown.call(this,t,n)},t.prototype.pointerUp=function(t){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,e.prototype.pointerUp.call(this,t);else{var n="creating"===this.state;e.prototype.pointerUp.call(this,t),this.setTipPoints(n),this.positionTip()}},t.prototype.manipulate=function(t){if(this.tipMoving){var n=this.unrotatePoint(t);this.tipPosition={x:n.x-this.manipulationStartLeft,y:n.y-this.manipulationStartTop},this.positionTip()}else e.prototype.manipulate.call(this,t)},t.prototype.setBgColor=function(e){this.bgRectangle&&this.tip&&(Sh.setAttributes(this.bgRectangle,[["fill",e]]),Sh.setAttributes(this.tip,[["fill",e]])),this.bgColor=e,this.fillColorChanged(e)},t.prototype.getTipPoints=function(){return this.setTipPoints("creating"===this.state),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},t.prototype.setTipPoints=function(e){void 0===e&&(e=!1);var t=Math.min(this.height/2,15),n=this.height/5;e&&(this.tipPosition={x:t+n/2,y:this.height+20});var i=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?i.1)){var t=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),n=this.tip1.transform.baseVal.getItem(0);n.setRotate(t,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(n,0);var i=this.tip2.transform.baseVal.getItem(0);i.setRotate(t+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(i,0)}},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=e.prototype.getState.call(this);return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t),this.createTips(),this.adjustVisual()},t.typeName="MeasurementMarker",t.title="Measurement marker",t.icon='',t}(Kh),rd=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.strokePanel.colors=i.defaultColorSet,r.fillColor="transparent",r}return yh(t,e),Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=e.prototype.getState.call(this);return n.typeName=t.typeName,n},t.typeName="EllipseFrameMarker",t.title="Ellipse frame marker",t.icon='',t}(nd),od=function(){function e(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(e.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),e.prototype.addUndoStep=function(e){0!==this.undoStack.length&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(e)||(this.undoStack.push(e),JSON.stringify(this.lastRedoStep)!==JSON.stringify(e)&&this.redoStack.splice(0,this.redoStack.length))},e.prototype.replaceLastUndoStep=function(e){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=e)},e.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},e.prototype.undo=function(){if(this.undoStack.length>1){var e=this.undoStack.pop();return void 0!==e&&this.redoStack.push(e),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},e.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},e}(),ad=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.curveX=0,r.curveY=0,r.manipulationStartCurveX=0,r.manipulationStartCurveY=0,r.setStrokeColor=r.setStrokeColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.positionGrips=r.positionGrips.bind(r),r.addControlGrips=r.addControlGrips.bind(r),r.adjustVisual=r.adjustVisual.bind(r),r.setupControlBox=r.setupControlBox.bind(r),r.resize=r.resize.bind(r),r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.strokePanel=new Dh("Line color",i.defaultColorSet,i.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.strokeWidthPanel=new zh("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new jh("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r}return yh(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.visual&&t!==this.selectorCurve&&t!==this.visibleCurve&&!this.curveGrip.ownsTarget(t))},t.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},t.prototype.createVisual=function(){this.visual=Sh.createGroup(),this.selectorCurve=Sh.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Sh.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,"new"===this.state&&(this.curveX=t.x,this.curveY=t.y),"new"===this.state?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(n)&&(this.activeGrip=this.curveGrip,this._state="resize")},t.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Sh.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Sh.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Sh.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},t.prototype.setupControlBox=function(){e.prototype.setupControlBox.call(this),this.curveControlLine1=Sh.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Sh.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},t.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,e.prototype.addControlGrips.call(this)},t.prototype.positionGrips=function(){e.prototype.positionGrips.call(this);var t=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-t/2,this.curveY-t/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},t.prototype.manipulate=function(t){"move"===this.state&&(this.curveX=this.manipulationStartCurveX+t.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+t.y-this.manipulationStartY),e.prototype.manipulate.call(this,t)},t.prototype.resize=function(t){this.activeGrip===this.curveGrip&&(this.curveX=t.x,this.curveY=t.y),e.prototype.resize.call(this,t),"creating"===this.state&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},t.prototype.setStrokeColor=function(e){this.strokeColor=e,this.adjustVisual(),this.colorChanged(e)},t.prototype.setStrokeWidth=function(e){this.strokeWidth=e,this.adjustVisual()},t.prototype.setStrokeDasharray=function(e){this.strokeDasharray=e,this.adjustVisual()},t.prototype.scale=function(t,n){this.curveX=this.curveX*t,this.curveY=this.curveY*n,e.prototype.scale.call(this,t,n)},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t);var n=t;this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.curveX=n.curveX,this.curveY=n.curveY,this.createVisual(),this.adjustVisual()},t.typeName="CurveMarker",t.title="Curve marker",t.icon='',t}(Zh),sd=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.fillColor="transparent",r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.textColor="transparent",r.fontSize="1rem",r.isMoved=!1,r.captionText="Caption",r.PADDING=5,r.captionBoxWidth=0,r.captionBoxHeight=0,r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.fillColor=i.defaultFillColor,r.textColor=i.defaultStrokeColor,r.fontFamily=i.defaultFontFamily,r.fontSize=i.defaultCaptionFontSize,r.captionText=i.defaultCaptionText,r.setStrokeColor=r.setStrokeColor.bind(r),r.setFillColor=r.setFillColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.createVisual=r.createVisual.bind(r),r.sizeCaption=r.sizeCaption.bind(r),r.setCaptionText=r.setCaptionText.bind(r),r.showTextEditor=r.showTextEditor.bind(r),r.positionTextEditor=r.positionTextEditor.bind(r),r.finishTextEditing=r.finishTextEditing.bind(r),r.setFont=r.setFont.bind(r),r.setTextColor=r.setTextColor.bind(r),r.strokePanel=new Dh("Line color",xh(i.defaultColorSet,["transparent"]),r.strokeColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.fillPanel=new Dh("Fill color",xh(i.defaultColorSet,["transparent"]),r.fillColor,ed),r.fillPanel.onColorChanged=r.setFillColor,r.strokeWidthPanel=new zh("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new jh("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r.fontFamilyPanel=new Gh("Font",i.defaultFontFamilies,i.defaultFontFamily),r.fontFamilyPanel.onFontChanged=r.setFont,r.textColorPanel=new Dh("Text color",i.defaultColorSet,r.textColor,Jh),r.textColorPanel.onColorChanged=r.setTextColor,r}return yh(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.visual&&t!==this.frame&&t!==this.captionBg&&t!==this.captionElement)},t.prototype.createVisual=function(){this.visual=Sh.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Sh.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Sh.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Sh.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},t.prototype.setCaptionText=function(e){this.captionText=e,this.captionElement.textContent=this.captionText,this.sizeCaption()},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),this.isMoved=!1,this.pointerDownPoint=t,this.pointerDownTimestamp=Date.now(),"new"===this.state&&(this.createVisual(),this.moveVisual(t),this._state="creating")},t.prototype.manipulate=function(t){e.prototype.manipulate.call(this,t),void 0!==this.pointerDownPoint&&(this.isMoved=Math.abs(t.x-this.pointerDownPoint.x)>5||Math.abs(t.y-this.pointerDownPoint.y)>5)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this.setSize()},t.prototype.sizeCaption=function(){var e=this.captionElement.getBBox();""!==this.captionText.trim()?(this.captionBoxWidth=e.width+2*this.PADDING,this.captionBoxHeight=e.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Sh.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Sh.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},t.prototype.showTextEditor=function(){var e=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",(function(e){e.stopPropagation()})),this.textEditBox.addEventListener("keypress",(function(t){"Enter"===t.key&&e.finishTextEditing(e.textEditBox.value)})),this.textEditBox.addEventListener("keyup",(function(e){e.cancelBubble=!0})),this.textEditBox.addEventListener("blur",(function(){e.finishTextEditing(e.textEditBox.value)})),this.textEditDiv.addEventListener("pointerup",(function(){e.finishTextEditing(e.textEditBox.value)})),this.positionTextEditor(),this.textEditBox.focus()},t.prototype.positionTextEditor=function(){"edit"===this.state&&(void 0===this.textEditBox?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},t.prototype.finishTextEditing=function(e){this.setCaptionText(e.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},t.prototype.setFont=function(e){this.captionElement&&Sh.setAttributes(this.captionElement,[["font-family",e]]),this.fontFamily=e,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},t.prototype.setTextColor=function(e){this.captionElement&&Sh.setAttributes(this.captionElement,[["fill",e]]),this.textColor=e,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},t.prototype.setSize=function(){e.prototype.setSize.call(this),Sh.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},t.prototype.pointerUp=function(t){e.prototype.pointerUp.call(this,t),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},t.prototype.dblClick=function(t,n){e.prototype.dblClick.call(this,t,n),this.showTextEditor()},t.prototype.setStrokeColor=function(e){this.strokeColor=e,this.frame&&Sh.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(e),this.stateChanged()},t.prototype.setFillColor=function(e){this.fillColor=e,this.captionBg&&Sh.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(e),this.stateChanged()},t.prototype.setStrokeWidth=function(e){this.strokeWidth=e,this.frame&&Sh.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},t.prototype.setStrokeDasharray=function(e){this.strokeDasharray=e,this.frame&&Sh.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var t=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},e.prototype.getState.call(this));return t.typeName=this.typeName,t},t.prototype.restoreState=function(t){var n=t;this.fillColor=n.fillColor,this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.textColor=n.textColor,this.fontFamily=n.fontFamily,this.captionText=n.captionText,this.fontSize=n.fontSize,this.createVisual(),e.prototype.restoreState.call(this,t),this.setSize()},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.setSize()},t.typeName="CaptionFrameMarker",t.title="Caption frame marker",t.icon='',t}(Oh),ld=function(){function e(e,t){void 0===t&&(t=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=e,this.cancelable=t}return Object.defineProperty(e.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),e.prototype.preventDefault=function(){this._defaultPrevented=!0},e}(),cd=function(e){function t(t,n,i){var r=e.call(this,t,!1)||this;return r.dataUrl=n,r.state=i,r}return yh(t,e),t}(ld),ud=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,i)||this;return r.marker=n,r}return yh(t,e),t}(ld),hd=function(){function e(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return e.prototype.addEventListener=function(e,t){this[e].push(t)},e.prototype.removeEventListener=function(e,t){var n=this[e].indexOf(t);n>-1&&this[e].splice(n,1)},e}(),dd=function(){function e(t){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Hh,this._isOpen=!1,this.undoRedoManager=new od,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new hd,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=e.instanceCounter++,this.styles=new Ph(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=t,this.targetRoot=document.body,this.width=t.clientWidth,this.height=t.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(e.prototype,"ALL_MARKER_TYPES",{get:function(){return[$h,Vh,qh,Uh,rd,nd,Qh,td,id,Yh,Kh,ad,sd]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[$h,Vh,qh,Uh,nd,Qh,td]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"BASIC_MARKER_TYPES",{get:function(){return[$h,Vh,qh,Uh,Qh]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(e){var t=this;this._availableMarkerTypes.splice(0),e.forEach((function(e){if("string"==typeof e){var n=t.ALL_MARKER_TYPES.find((function(t){return t.typeName===e}));void 0!==n&&t._availableMarkerTypes.push(n)}else t._availableMarkerTypes.push(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(e){this._zoomLevel=e,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),e.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),"popup"===this.settings.displayMode&&this.onPopupTargetResize(),kh.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},e.prototype.show=function(){var e=this;void 0===this.styles.styleSheetRoot&&void 0!==Ch.styleSheetRoot&&(this.styles.styleSheetRoot=Ch.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach((function(t){return t(new ld(e))}))},e.prototype.render=function(){return bh(this,void 0,void 0,(function(){var e;return wh(this,(function(t){switch(t.label){case 0:return this.setCurrentMarker(),(e=new _h).naturalSize=this.renderAtNaturalSize,e.imageType=this.renderImageType,e.imageQuality=this.renderImageQuality,e.markersOnly=this.renderMarkersOnly,e.width=this.renderWidth,e.height=this.renderHeight,[4,e.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return t.sent(),[4,e.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,t.sent()]}}))}))},e.prototype.close=function(e){var t=this;if(void 0===e&&(e=!1),this.isOpen){var n=!1;e||this.eventListeners.beforeclose.forEach((function(e){var i=new ld(t,!0);e(i),i.defaultPrevented&&(n=!0)})),n||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),"popup"===this.settings.displayMode&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach((function(e){return e(new ld(t))})),this.detachEvents(),this._isOpen=!1)}},e.prototype.addMarkersToToolbar=function(){for(var e,t=[],n=0;nthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*e:this.editorCanvas.clientWidth,n=t',e.title="Powered by marker.js",e.style.display="grid",e.style.alignItems="center",e.style.justifyItems="center",e.style.padding="3px",e.style.width="20px",e.style.height="20px",this.logoUI.appendChild(e),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},e.prototype.positionLogo=function(){this.logoUI&&("right"!==this.uiStyleSettings.logoPosition?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},e.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},e.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},e.prototype.showUI=function(){switch("popup"===this.settings.displayMode&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var e=void 0!==this.settings.uiOffsetTop?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=e+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=void 0!==this.uiStyleSettings.zIndex?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=void 0!==this.uiStyleSettings.zIndex?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin="popup"===this.settings.displayMode?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Lh(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1","popup"===this.settings.displayMode&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex","popup"===this.settings.displayMode&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),void 0===this.settings.uiOffsetTop&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(e),1),e.dispose()},e.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),void 0!==this._currentMarker&&("new"!==this._currentMarker.state?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},e.prototype.toolbarButtonClicked=function(e,t){if("marker"===e&&void 0!==t)this.createNewMarker(t);else if("action"===e)switch(t){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":void 0===this.notesArea?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},e.prototype.deleteSelectedMarker=function(){var e=this;if(void 0!==this._currentMarker){var t=!1;if(this.eventListeners.markerbeforedelete.forEach((function(n){var i=new ud(e,e._currentMarker,!0);n(i),i.defaultPrevented&&(t=!0)})),!t){var n=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach((function(t){return t(new ud(e,n))}))}}},e.prototype.clear=function(){var e=this,t=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach((function(n){var i=new ud(e,void 0,!0);n(i),i.defaultPrevented&&(t=!0)})),!t)){this.setCurrentMarker();for(var n=function(t){var n=i.markers[t];i.setCurrentMarker(i.markers[t]),i._currentMarker.dispose(),i.markerImage.removeChild(i._currentMarker.container),i.markers.splice(i.markers.indexOf(i._currentMarker),1),i.eventListeners.markerdelete.forEach((function(t){return t(new ud(e,n))}))},i=this,r=this.markers.length-1;r>=0;r--)n(r);this.addUndoStep()}},Object.defineProperty(e.prototype,"isNotesAreaOpen",{get:function(){return void 0!==this.notesArea},enumerable:!1,configurable:!0}),e.prototype.showNotesEditor=function(){var e;void 0!==this._currentMarker&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=null!==(e=this._currentMarker.notes)&&void 0!==e?e:"",this.overlayContainer.appendChild(this.notesArea))},e.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(void 0!==this._currentMarker&&(this._currentMarker.notes=""!==this.notesArea.value.trim()?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},e.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},e.prototype.addUndoStep=function(){var e=this;if(void 0===this._currentMarker||"edit"!==this._currentMarker.state){var t=this.getState(),n=this.undoRedoManager.getLastUndoStep();if(!n||n.width===t.width&&n.height===t.height){var i=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(t),i1&&this.panTo({x:e.clientX,y:e.clientY}))},e.prototype.onPointerUp=function(e){this.touchPoints>0&&this.touchPoints--,0===this.touchPoints&&this.isDragging&&void 0!==this._currentMarker&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(e.clientX,e.clientY)),this.isDragging=!1,this.addUndoStep()},e.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},e.prototype.onKeyUp=function(e){void 0===this._currentMarker||void 0!==this.notesArea||"Delete"!==e.key&&"Backspace"!==e.key||this.deleteSelectedMarker()},e.prototype.clientToLocalCoordinates=function(e,t){var n=this.markerImage.getBoundingClientRect();return{x:(e-n.left)/this.zoomLevel,y:(t-n.top)/this.zoomLevel}},e.prototype.onWindowResize=function(){this.positionUI()},e.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var e=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=e+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},e.prototype.addLicenseKey=function(e){kh.addKey(e)},e.prototype.addEventListener=function(e,t){this.eventListeners.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventListeners.removeEventListener(e,t)},e.prototype.renderState=function(e){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(e),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),e.prototype.focus=function(){var e=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,void 0!==this._previousCurrentMarker&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach((function(t){return t(new ld(e))})))},e.prototype.blur=function(){var e=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach((function(t){return t(new ld(e))})))},e.instanceCounter=0,e}(),pd=n(79723),fd=function(e){var t=e.data,n=e.className,i=e.fullWidth,o=e.style,s=void 0===o?{}:o,u=e.onClose,h=e.onOk,d=e.showFullTools,p=e.noAssociationId,m=(0,c.useRef)(null),v=(0,c.useRef)(null),y=(0,c.useRef)(null),b=(0,c.useRef)(null),w=(0,c.useState)(!1),x=l()(w,2),S=x[0],k=x[1],_=(0,c.useState)("正在加载中"),C=l()(_,2),P=C[0],E=C[1];(0,c.useEffect)((function(){return y.current||(y.current=document.createElement("style"),document.head.appendChild(y.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),y.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&M()):(document.body.removeAttribute("data-custom"),y.current&&(document.head.removeChild(y.current),y.current=null)),function(){document.body.removeAttribute("data-custom"),y.current&&(document.head.removeChild(y.current),y.current=null)}}),[null==t?void 0:t.visible]);var M=function(){var e=a()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!0),E("正在加载中"),e.next=4,(0,_l.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,m.current.src="",m.current.src=n,m.current.onload=function(){A()},k(!1),E("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),L=function(){var e=a()(r()().mark((function e(n){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!0),E("正在保存中"),e.next=4,(0,pd.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(i=e.sent)||!i.id||p){e.next=12;break}return e.next=8,(0,pd.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==i?void 0:i.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&h(),e.next=13;break;case 12:null!=i&&i.id&&h(i);case 13:k(!1),E("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),A=function(){v.current=new dd(m.current),v.current.targetRoot=b.current,v.current.addEventListener("render",L),v.current.addEventListener("beforeclose",u),d&&(v.current.availableMarkerTypes=v.current.ALL_MARKER_TYPES,v.current.uiStyleSettings.redoButtonVisible=!0,v.current.uiStyleSettings.notesButtonVisible=!0,v.current.uiStyleSettings.zoomButtonVisible=!0,v.current.uiStyleSettings.zoomOutButtonVisible=!0,v.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=v.current.uiStyleSettings,v.current.show(),null!=t&&t.snapshotData&&v.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,g.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,g.jsx)(mh.Z,{spinning:S,tip:P,style:{position:"absolute",width:"100vw"},children:(0,g.jsx)("div",{ref:b,className:f()(ph,n,i?gh:""),style:s,children:(0,g.jsx)("img",{className:fh,ref:m})})})})},gd=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),r=i.getContext("2d");i.width=1e3,i.height=800,r.fillStyle="#ffffff",r.fillRect(0,0,i.width,i.height);var o=i.toDataURL("image/png");return(0,g.jsx)(hh.Z,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1,children:(0,g.jsx)(dh.Z,{style:{height:"100vh"},children:(0,g.jsx)(fd,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})})},md=n(12378);function vd(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(vd,go.CommandHandler),vd.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},vd.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},vd.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},vd.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},vd.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},vd.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},vd.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},vd.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(s-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(o)}else if("Down"===n.key){var r;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(r=this._sortTreeChildrenByY(t).first())&&e.select(r);else for(;null!==t;){var o,a,s;if(null===(o=t.findTreeParentNode()))break;if((s=(a=this._sortTreeChildrenByY(o)).indexOf(t))i.y?1:n.xi.x?1:0})),t},vd.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},vd.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(vd.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(vd.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var yd=vd,bd=(n(77164),n(5269)),wd="myPaletteDiv___Xjz2I",xd="flowChartWrp____f45r",Sd=n(13277);var kd=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),s=(0,c.useRef)(),u=(0,c.useRef)(!1),h=(0,c.useRef)(!1),d=(0,c.useState)(0),p=l()(d,2),f=p[0],m=p[1],v=function(){var e=a()(r()().mark((function e(){var t,o,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=i.current.makeImage(),e.next=3,(0,pd.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:o.src,file_data:JSON.stringify({login:null===(t=(0,Sd.eY)())||void 0===t?void 0:t.login,data:JSON.parse(i.current.model.toJson())})}});case 3:a=e.sent,n({src:a.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){return setTimeout((function(){!function(){var e=md.bx.make,t="#ff3333",n="#3358ff",r="#25ad23",a="#d533ff",l="#7d33ff",c="#ff6233",u="#ffffff",h="#000000",d="#fffcd5",p="#d5ebff",f="#f2dfe0",g="#a5d2fa",m="#cccccc",v="#b3e6b3",b="#fcbbbd";function w(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var r=n.part.adornedPart,o=(new md.E9).setRectSpot(r.actualBounds,t);o.subtract(r.location),o.scale(2,2),o.x+=130*Math.sign(o.x),o.y+=130*Math.sign(o.y),o.add(r.location),o.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(r.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(r.data)),i.addNodeData(a);var s={from:r.key,to:i.getKeyForNodeData(a)};i.addLinkData(s);var l=e.diagram.findNodeForData(a);l.location=o,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(md.bn,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(md.z6.Top)||t.equals(md.z6.Bottom)?25:18,height:t.equals(md.z6.Top)||t.equals(md.z6.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function x(t){return e(md.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function S(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function k(t,n){return n||(n="color"),e(md.bn,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:S(n,t),contextClick:S(n,t)})}function _(){return[e("ContextMenuButton",e(md.s_,"Horizontal",k(u,"fill"),k(d,"fill"),k(p,"fill"),k(f,"fill"))),e("ContextMenuButton",e(md.s_,"Horizontal",k(m,"fill"),k(v,"fill"),k(g,"fill"),k(b,"fill")))]}function C(){return[e("ContextMenuButton",e(md.s_,"Horizontal",k(h),k(r),k(n),k(t))),e("ContextMenuButton",e(md.s_,"Horizontal",k(u),k(a),k(l),k(c)))]}function P(t,n){return n||(n="thickness"),e(md.bn,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:S(n,t),contextClick:S(n,t)})}function E(t,n){return n||(n="dash"),e(md.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:S(n,t),contextClick:S(n,t)})}function M(){return[e("ContextMenuButton",e(md.s_,"Horizontal",P(1),P(2),P(3),P(4))),e("ContextMenuButton",e(md.s_,"Horizontal",E(null),E([2,4]),E([4,4])))]}function L(t,n){return n||(n="figure"),e(md.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:S(n,t),contextClick:S(n,t)})}function A(t){return e(md.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function T(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(md.bn,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:S("dir",t),contextClick:S("dir",t)})}function D(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",md.z6.stringify(md.z6.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(md.bn,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function N(t,n){var i=0,r=md.z6.RightSide;t.equals(md.z6.Top)?(i=270,r=md.z6.TopSide):t.equals(md.z6.Left)?(i=180,r=md.z6.LeftSide):t.equals(md.z6.Bottom)&&(i=90,r=md.z6.BottomSide),n||(i-=180);var o=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",md.z6.stringify(r)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(md.bn,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:o,contextClick:o})}i.current=new md.S0(o.current,{padding:20,grid:e(md.s_,"Grid",e(md.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(md.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(yd),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject,setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(md.NB,"Auto",{locationSpot:md.z6.Center,locationObjectName:"SHAPE",desiredSize:new md.$u(120,60),minSize:new md.$u(40,40),resizable:!0,resizeCellSize:new md.$u(10,10),rotatable:!0},new md.KX("location","loc",md.E9.parse).makeTwoWay(md.E9.stringify),new md.KX("desiredSize","size",md.$u.parse).makeTwoWay(md.$u.stringify),e(md.bn,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:md.z6.AllSides,toSpot:md.z6.AllSides},new md.KX("figure"),new md.KX("fill"),new md.KX("stroke","borderColor"),new md.KX("strokeWidth","thickness"),new md.KX("strokeDashArray","dash")),e(md.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(md.al,{margin:1,textAlign:"center",overflow:md.al.OverflowEllipsis,editable:!0},new md.KX("text").makeTwoWay(),new md.KX("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(md.s_,"Vertical",{maxSize:new md.$u(200,NaN)},e(md.al,{font:"bold 10pt sans-serif",textAlign:"center"},new md.KX("text")),e(md.al,{font:"10pt sans-serif",textAlign:"center"},new md.KX("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(md.uz,"Spot",e(md.Vm,{padding:10}),w(md.z6.Top,"TriangleUp"),w(md.z6.Left,"TriangleLeft"),w(md.z6.Right,"TriangleRight"),w(md.z6.Bottom,"TriangleDown"),x({alignment:new md.z6(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(md.s_,"Horizontal",L("Rectangle"),L("RoundedRectangle"),L("Ellipse"),L("Diamond"))),e("ContextMenuButton",e(md.s_,"Horizontal",L("Parallelogram2"),L("ManualOperation"),L("Procedure"),L("Cylinder1"))),e("ContextMenuButton",e(md.s_,"Horizontal",L("Terminator"),L("CreateRequest"),L("Document"),L("TriangleDown"))),_(),C(),M()),i.current.groupTemplate=e(md.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:md.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new md.KX("location","loc",md.E9.parse).makeTwoWay(md.E9.stringify),e(md.s_,"Auto",{name:"BODY"},e(md.bn,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:md.z6.AllSides,toSpot:md.z6.AllSides},new md.KX("fill"),new md.KX("stroke","color"),new md.KX("strokeWidth","thickness"),new md.KX("strokeDashArray","dash")),e(md.Vm,{background:"transparent",margin:20})),e(md.al,{alignment:md.z6.Top,alignmentFocus:md.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new md.KX("text"),new md.KX("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(md.uz,"Spot",e(md.s_,"Auto",e(md.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(md.Vm,{margin:1.5})),x({alignment:md.z6.TopRight,alignmentFocus:md.z6.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",_(),C(),M()),i.current.linkTemplate=e(md.rU,{layerName:"Foreground",routing:md.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new md.KX("fromSpot","fromSpot",md.z6.parse),new md.KX("toSpot","toSpot",md.z6.parse),new md.KX("fromShortLength","dir",(function(e){return e>=1?10:0})),new md.KX("toShortLength","dir",(function(e){return e>=1?10:0})),new md.KX("points").makeTwoWay(),e(md.bn,{strokeWidth:2},new md.KX("stroke","color"),new md.KX("strokeWidth","thickness"),new md.KX("strokeDashArray","dash")),e(md.bn,{segmentIndex:0,segmentOffset:new md.E9(15,0),segmentOrientation:md.rU.OrientAlong,alignmentFocus:md.z6.Right,figure:"circle",width:10,strokeWidth:0},new md.KX("fill","color"),new md.KX("visible","dir",(function(e){return 1===e}))),e(md.bn,{segmentIndex:-1,segmentOffset:new md.E9(-10,6),segmentOrientation:md.rU.OrientPlus90,alignmentFocus:md.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new md.KX("fill","color"),new md.KX("visible","dir",(function(e){return e>=1})),new md.KX("width","thickness",(function(e){return 7+3*e})),new md.KX("height","thickness",(function(e){return 7+3*e})),new md.KX("segmentOffset","thickness",(function(e){return new md.E9(-15,4+1.5*e)}))),e(md.bn,{segmentIndex:0,segmentOffset:new md.E9(15,-6),segmentOrientation:md.rU.OrientMinus90,alignmentFocus:md.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new md.KX("fill","color"),new md.KX("visible","dir",(function(e){return 2===e})),new md.KX("width","thickness",(function(e){return 7+3*e})),new md.KX("height","thickness",(function(e){return 7+3*e})),new md.KX("segmentOffset","thickness",(function(e){return new md.E9(-15,4+1.5*e)}))),e(md.al,{alignmentFocus:new md.z6(0,1,-4,0),editable:!0},new md.KX("text").makeTwoWay(),new md.KX("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(md.uz,e(md.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:A(2)},new md.KX("pathPattern","thickness",A)),x({alignmentFocus:new md.z6(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",C(),M(),e("ContextMenuButton",e(md.s_,"Horizontal",T(0),T(1),T(2))),e("ContextMenuButton",e(md.s_,"Horizontal",e(md.s_,"Spot",D(!1),N(md.z6.Top,!1),N(md.z6.Left,!1),N(md.z6.Right,!1),N(md.z6.Bottom,!1)),e(md.s_,"Spot",{margin:new md.Zt(0,0,0,2)},D(!0),N(md.z6.Top,!0),N(md.z6.Left,!0),N(md.z6.Right,!0),N(md.z6.Bottom,!0)))));var I=new md.YI(s.current,{maxSelectionCount:1,linkTemplate:e(md.rU,{locationSpot:md.z6.Center,selectionAdornmentTemplate:e(md.uz,"Link",{locationSpot:md.z6.Center},e(md.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(md.bn,{toArrow:"Standard",stroke:null}))},{routing:md.rU.AvoidsNodes,curve:md.rU.JumpOver,corner:5,toShortLength:4},new md.KX("points"),e(md.bn,{isPanelMain:!0,strokeWidth:2}),e(md.bn,{toArrow:"Standard",stroke:null})),model:new md.FJ([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(y()(md.bn.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))});i.current.addDiagramListener("TextEdited",(function(e){var t,n=e.subject.part,r=null===(t=document.activeElement)||void 0===t?void 0:t.value;"string"==typeof r&&""===r.trim()&&i.current.model.commit((function(e){e.set(n.data,"text","未命名"),i.current.commandHandler.stopCommand()}),"increment")})),I.nodeTemplate=e(md.NB,"Auto",{locationSpot:md.z6.Center},new md.KX("location","location",md.E9.parse).makeTwoWay(md.E9.stringify),e(md.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new md.KX("stroke").makeTwoWay(),new md.KX("fill").makeTwoWay(),new md.KX("figure")),e(md.al,{margin:new md.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new md.$u(16,16),maxSize:new md.$u(10,NaN),textAlign:"center",editable:!0},new md.KX("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(md.s_,"Grid",e(md.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(md.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),i.current.grid.visible=!0,i.current.grid.gridCellStroke="darkgray",i.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=i.current,i.current}()}),500),m(f+1),function(){i.current=null}}),[]),(0,g.jsx)("div",{ref:h,className:"body-overflow-initial",children:(0,g.jsx)(hh.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:(0,g.jsxs)(dh.Z,{children:[(0,g.jsx)(bd.Z,{flex:1,children:"插入流程图"}),(0,g.jsx)(bd.Z,{onClick:function(){var e=i.current.selection.first();if(u.current=!u.current,document.activeElement&&e){var t,n=null===(t=document.activeElement)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.trim();"string"==typeof n&&i.current.model.commit((function(t){t.set(e.data,"text",n||"未命名"),i.current.commandHandler.stopCommand()}),"increment")}m(f+1)},children:(0,g.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,g.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:u.current?"none":"block"},className:xd,children:[(0,g.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,g.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,g.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,g.jsx)("div",{style:{height:"calc(100% - 50px)"},className:wd,ref:s})]}),(0,g.jsx)("div",{style:{flex:1,position:"relative"},children:(0,g.jsx)("div",{ref:o,style:{height:"80vh"}})})]}),(0,g.jsx)("div",{className:"tr",children:(0,g.jsx)(Ml.ZP,{size:"large",onClick:v,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},_d=ih.ZP.Group,Cd={margin:"0 8px"},Pd=function(e){var t=e.callback,n=e.onCancel;return(0,g.jsxs)(Sc.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,g.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,g.jsx)("span",{style:Cd,children:"单元格数:"}),(0,g.jsx)("span",{style:Cd,children:"行数"}),(0,g.jsx)(Sc.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,g.jsx)(nh,{})}),(0,g.jsx)("span",{style:Cd,children:"列数"}),(0,g.jsx)(Sc.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,g.jsx)(nh,{})})]}),(0,g.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,g.jsx)("span",{style:Cd,children:"对齐方式:"}),(0,g.jsx)(Sc.Z.Item,{name:"align",children:(0,g.jsxs)(_d,{children:[(0,g.jsx)(ih.ZP,{value:"default",children:(0,g.jsx)("i",{className:"fa fa-align-justify"})}),(0,g.jsx)(ih.ZP,{value:"left",children:(0,g.jsx)("i",{className:"fa fa-align-left"})}),(0,g.jsx)(ih.ZP,{value:"center",children:(0,g.jsx)("i",{className:"fa fa-align-center"})}),(0,g.jsx)(ih.ZP,{value:"right",children:(0,g.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,g.jsxs)("div",{className:"flex-container flex-end",children:[(0,g.jsx)(Ml.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,g.jsx)(Ml.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Ed=n(58617),Md=n(18929),Ld=n(10228),Ad=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Td=c.forwardRef((function(e,t){var n,i=e.prefixCls,r=void 0===i?"rc-switch":i,o=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,u=e.loadingIcon,h=e.checkedChildren,d=e.unCheckedChildren,p=e.onClick,g=e.onChange,m=e.onKeyDown,v=(0,Qc.Z)(e,Ad),y=(0,Md.Z)(!1,{value:a,defaultValue:s}),b=(0,Xc.Z)(y,2),w=b[0],x=b[1];function S(e,t){var n=w;return l||(x(n=e),null==g||g(n,t)),n}var k=f()(r,o,(n={},(0,qc.Z)(n,"".concat(r,"-checked"),w),(0,qc.Z)(n,"".concat(r,"-disabled"),l),n));return c.createElement("button",(0,Ll.Z)({},v,{type:"button",role:"switch","aria-checked":w,disabled:l,className:k,ref:t,onKeyDown:function(e){e.which===Ld.Z.LEFT?S(!1,e):e.which===Ld.Z.RIGHT&&S(!0,e),null==m||m(e)},onClick:function(e){var t=S(!w,e);null==p||p(t,e)}}),u,c.createElement("span",{className:"".concat(r,"-inner")},c.createElement("span",{className:"".concat(r,"-inner-checked")},h),c.createElement("span",{className:"".concat(r,"-inner-unchecked")},d)))}));Td.displayName="Switch";var Dd=Td,Nd=n(12919);const Id=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:i,trackMinWidthSM:r,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=(0,ju.bf)(l(s).add(l(i).mul(2)).equal()),h=(0,ju.bf)(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:r,height:n,lineHeight:(0,ju.bf)(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${h})`,marginInlineEnd:`calc(100% - ${u} + ${h})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${h})`,marginInlineEnd:`calc(-100% + ${u} - ${h})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${(0,ju.bf)(l(s).add(i).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},Bd=e=>{const{componentCls:t,handleSize:n,calc:i}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:i(i(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Rd=e=>{const{componentCls:t,trackPadding:n,handleBg:i,handleShadow:r,handleSize:o,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:i,borderRadius:a(o).div(2).equal(),boxShadow:r,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${(0,ju.bf)(a(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Od=e=>{const{componentCls:t,trackHeight:n,trackPadding:i,innerMinMargin:r,innerMaxMargin:o,handleSize:a,calc:s}=e,l=`${t}-inner`,c=(0,ju.bf)(s(a).add(s(i).mul(2)).equal()),u=(0,ju.bf)(s(o).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:r,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:r,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(i).mul(2).equal(),marginInlineEnd:s(i).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(i).mul(-1).mul(2).equal(),marginInlineEnd:s(i).mul(2).equal()}}}}}},Fd=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:i}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ku.Wf)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:i,height:n,lineHeight:(0,ju.bf)(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),(0,Ku.Qy)(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}};var zd=(0,Uu.I$)("Switch",(e=>{const t=(0,Vu.IX)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Fd(t),Od(t),Rd(t),Bd(t),Id(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:i,colorWhite:r}=e,o=t*n,a=i/2,s=o-4,l=a-4;return{trackHeight:o,trackHeightSM:a,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:r,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new Wu.t("#00230b").setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}})),jd=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,size:i,disabled:r,loading:o,className:a,rootClassName:s,style:l,checked:u,value:h,defaultChecked:d,defaultValue:p,onChange:g}=e,m=jd(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,y]=(0,Md.Z)(!1,{value:null!=u?u:h,defaultValue:null!=d?d:p}),{getPrefixCls:b,direction:w,switch:x}=c.useContext(Du.E_),S=c.useContext(Iu.Z),k=(null!=r?r:S)||o,_=b("switch",n),C=c.createElement("div",{className:`${_}-handle`},o&&c.createElement(Ed.Z,{className:`${_}-loading-icon`})),[P,E,M]=zd(_),L=(0,Ru.Z)(i),A=f()(null==x?void 0:x.className,{[`${_}-small`]:"small"===L,[`${_}-loading`]:o,[`${_}-rtl`]:"rtl"===w},a,s,E,M),T=Object.assign(Object.assign({},null==x?void 0:x.style),l);return P(c.createElement(Nd.Z,{component:"Switch"},c.createElement(Dd,Object.assign({},m,{checked:v,onChange:function(){y(arguments.length<=0?void 0:arguments[0]),null==g||g.apply(void 0,arguments)},prefixCls:_,className:A,style:T,disabled:k,ref:t,loadingIcon:C}))))})),Hd=$d;Hd.__ANT_SWITCH=!0;var Zd=Hd,Kd=n(35702),Gd=n.n(Kd),Ud=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,r=e.height,o=e.callback,a=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),h=l()(u,2),d=h[0],p=h[1],f=(0,c.useRef)({id:a,appName:"graphing",width:i||1e3,height:r||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(Gd())(f.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var m=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return o&&o(e),e};return(0,c.useEffect)((function(){f.current.appName=d?"3D":"graphing",s.current.inject("applet_container")}),[d]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:m}})),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:a}),(0,g.jsxs)(dh.Z,{align:"middle",children:[(0,g.jsx)(bd.Z,{flex:1,children:(0,g.jsx)(Zd,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:d,onChange:function(e){return p(e)}})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Ml.ZP,{size:"large",onClick:m,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),Vd=Ud,Wd=n(52017),qd={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"},Yd=Object.defineProperty,Xd=Object.defineProperties,Qd=Object.getOwnPropertyDescriptors,Jd=Object.getOwnPropertySymbols,ep=Object.prototype.hasOwnProperty,tp=Object.prototype.propertyIsEnumerable,np=(e,t,n)=>t in e?Yd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ip=(e,t)=>{for(var n in t||(t={}))ep.call(t,n)&&np(e,n,t[n]);if(Jd)for(var n of Jd(t))tp.call(t,n)&&np(e,n,t[n]);return e},rp=(e,t)=>Xd(e,Qd(t)),op=e=>"symbol"==typeof e?e:e+"",ap=(e,t)=>{var n={};for(var i in e)ep.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&Jd)for(var i of Jd(e))t.indexOf(i)<0&&tp.call(e,i)&&(n[i]=e[i]);return n};function sp(e){return Array.isArray(e)}function lp(){return"window"in globalThis&&"document"in globalThis}function cp(){return"function"==typeof navigator.vibrate}function up(){var e,t;if(!lp())return"other";const n=null!=(t=null==(e=navigator.userAgentData)?void 0:e.platform)?t:navigator.platform;return/^mac/i.test(n)?5===navigator.maxTouchPoints?"ios":"macos":/^win/i.test(n)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function hp(){return HTMLElement.prototype.hasOwnProperty("popover")}var dp={strings:{en:{"keyboard.tooltip.symbols":"符号","keyboard.tooltip.greek":"希腊字母","keyboard.tooltip.numeric":"数字","keyboard.tooltip.alphabetic":"罗马字母","tooltip.cut to clipboard":"剪切到剪贴板","tooltip.copy to clipboard":"复制到剪贴板","tooltip.paste from clipboard":"粘贴","tooltip.redo":"重做","tooltip.toggle virtual keyboard":"切换虚拟键盘","tooltip.undo":"撤消","menu.insert matrix":"插入矩阵","menu.borders":"矩阵分隔符","menu.array.add row above":"在后面添加行","menu.array.add row below":"在前面添加行","menu.array.add column after":"在后面添加列r","menu.array.add column before":"在前面添加列","menu.array.delete row":"删除行","menu.array.delete rows":"删除选定行","menu.array.delete column":"删除列","menu.array.delete columns":"删除选定的列","menu.mode":"模式","menu.mode-math":"数学","menu.mode-text":"文本","menu.mode-latex":"LaTeX","tooltip.blackboard":"黑板","tooltip.bold":"粗体","tooltip.italic":"斜体","tooltip.fraktur":"Fraktur","tooltip.script":"脚本","tooltip.caligraphic":"草书","tooltip.typewriter":"打字机","tooltip.roman-upright":"罗马直立","tooltip.row-by-col":"%@ × %@","menu.font-style":"字体样式","menu.accent":"重音","menu.decoration":"装饰","menu.color":"颜色","menu.background-color":"背景","menu.evaluate":"计算","menu.simplify":"简化","menu.solve":"求解","menu.solve-for":"求解 %@","menu.cut":"剪切","menu.copy":"复制","menu.copy-as-latex":"复制为 LaTeX","menu.copy-as-ascii-math":"复制为 ASCII Math","menu.copy-as-mathml":"复制为 MathML","menu.paste":"粘贴","menu.select-all":"全选","color.red":"红色","color.orange":"橙色","color.yellow":"黄色","color.lime":"绿黄色","color.green":"绿色","color.teal":"青色","color.cyan":"蓝绿色","color.blue":"蓝色","color.indigo":"靛蓝色","color.purple":"紫色","color.magenta":"洋红色","color.black":"黑色","color.dark-grey":"深灰色","color.grey":"灰色","color.light-grey":"浅灰色","color.white":"白色"}},_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return dp._locale||(dp._locale=lp()?navigator.language.slice(0,5):"en-US"),dp._locale},set locale(e){dp._locale=e,dp._numberFormatter=void 0,dp.dirty=!0},get numberFormatter(){return dp._numberFormatter||(dp._numberFormatter=new Intl.NumberFormat(dp.locale)),dp._numberFormatter},merge(e,t){if("string"==typeof e&&t)dp.strings[e]=ip(ip({},dp.strings[e]),t),dp.dirty=!0;else for(const t of Object.keys(e))dp.merge(t,e[t])},get dirty(){return dp._dirty},set dirty(e){dp._dirty||dp._dirty===e||(dp._dirty=!0,setTimeout((()=>{dp._dirty=!1,this._subscribers.forEach((e=>null==e?void 0:e()))}),0))},subscribe(e){return dp._subscribers.push(e),dp._subscribers.length-1},unsubscribe(e){e<0||e>=dp._subscribers.length||(dp._subscribers[e]=void 0)},update(e){let t=e.querySelectorAll("[data-l10n-tooltip]");for(const e of t){const t=e.getAttribute("data-l10n-tooltip");if(t){const n=pp(t);n&&e.setAttribute("data-tooltip",n)}}t=e.querySelectorAll("[data-l10n-arial-label]");for(const e of t){const t=e.getAttribute("data-l10n-arial-label");if(t){const n=pp(t);n&&e.setAttribute("aria-label",n)}}}};function pp(e,...t){if(void 0===e)return;let n="";const i=dp.locale;dp.strings[i]&&(n=dp.strings[i][e]);const r=i.slice(0,2);if(!n&&dp.strings[r]&&(n=dp.strings[r][e]),n||(n=dp.strings.en[e]),!n)return;const o=/(%@|%([0-9]+)\$@)/g;let a=o.exec(n),s=0;for(;a;){if(t[s++]){let e=t[a[2]?parseInt(a[2],10)-1:s-1];"number"==typeof e&&(e=dp.numberFormatter.format(e)),n=n.replace(a[1],e)}a=o.exec(n)}return n=n.replace(/%%/g,"%"),n}var fp={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},gp={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},mp={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},vp={red:"#d7170b",orange:"#fe8a2b",yellow:"#ffc02b",lime:"#63b215",green:"#21ba3a",teal:"#17cfcf",cyan:"#13a7ec",blue:"#0d80f2",indigo:"#63c",purple:"#a219e6",magenta:"#eb4799",black:"#000","dark-grey":"#666",grey:"#A6A6A6","light-grey":"#d4d5d2",white:"#ffffff"},yp={Red:"red",Orange:"orange",Yellow:"yellow",LimeGreen:"lime",Green:"green",TealBlue:"teal",Blue:"blue",Violet:"indigo",Purple:"purple",Magenta:"magenta",Black:"black",Gray:"grey",White:"white"},bp={Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D",CadetBlue:"#74729A",CarnationPink:"#F282B4",Cerulean:"#00A2E3",CornflowerBlue:"#41B0E4",Cyan:"#00AEEF",Dandelion:"#FDBC42",DarkOrchid:"#A4538A",Emerald:"#00A99D",ForestGreen:"#009B55",Fuchsia:"#8C368C",Goldenrod:"#FFDF42",Gray:"#949698",Green:"#00A64F",GreenYellow:"#DFE674",JungleGreen:"#00A99A",Lavender:"#F49EC4",Limegreen:"#8DC73E",Magenta:"#EC008C",Mahogany:"#A9341F",Maroon:"#AF3235",Melon:"#F89E7B",MidnightBlue:"#006795",Mulberry:"#A93C93",NavyBlue:"#006EB8",OliveGreen:"#3C8031",Orange:"#F58137",OrangeRed:"#ED135A",Orchid:"#AF72B0",Peach:"#F7965A",Periwinkle:"#7977B8",PineGreen:"#008B72",Plum:"#92268F",ProcessBlue:"#00B0F0",Purple:"#99479B",RawSienna:"#974006",Red:"#ED1B23",RedOrange:"#F26035",RedViolet:"#A1246B",Rhodamine:"#EF559F",RoyalBlue:"#0071BC",RoyalPurple:"#613F99",RubineRed:"#ED017D",Salmon:"#F69289",SeaGreen:"#3FBC9D",Sepia:"#671800",SkyBlue:"#46C5DD",SpringGreen:"#C6DC67",Tan:"#DA9D76",TealBlue:"#00AEB3",Thistle:"#D883B7",Turquoise:"#00B4CE",Violet:"#58429B",VioletRed:"#EF58A0",White:"#FFFFFF",WildStrawberry:"#EE2967",Yellow:"#FFF200",YellowGreen:"#98CC70",YellowOrange:"#FAA21A"};function wp(e){var t,n,i,r,o,a;const s=e.split("!");let l,c,u,h=255,d=255,p=255,f=-1;const g=s.length>0&&s[0].startsWith("-");g&&(s[0]=s[0].slice(1));for(let e=0;e=0&&(h=(1-f)*h+f*l,d=(1-f)*d+f*c,p=(1-f)*p+f*u,f=-1),e+1=0&&(h=f*h+(1-f)*l,d=f*d+(1-f)*c,p=f*p+(1-f)*u),g&&(h=255-h,d=255-d,p=255-p),"#"+("00"+Math.round(h).toString(16)).slice(-2)+("00"+Math.round(d).toString(16)).slice(-2)+("00"+Math.round(p).toString(16)).slice(-2)}function xp(e){var t,n;return e=e.trim(),null!=(n=null!=(t=mp[e.toLowerCase()])?t:mp[yp[e]])?n:wp(e)}function Sp(e,t,n){return n<0&&(n+=6),n>=6&&(n-=6),n<1?(t-e)*n+e:n<3?t:n<4?(t-e)*(4-n)+e:e}function kp(e){return e<0?0:e>255?255:Math.round(e)}function _p(e){let t=function(e){if(!e)return;if("#"!==e[0])return;let t;return(e=e.slice(1)).length<=4?(t={r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)},4===e.length&&(t.a=parseInt(e[3]+e[3],16)/255)):(t={r:parseInt(e[0]+e[1],16),g:parseInt(e[2]+e[3],16),b:parseInt(e[4]+e[5],16)},8===e.length&&(t.a=parseInt(e[6]+e[7],16)/255)),t&&void 0===t.a&&(t.a=1),t}(e);if(!t)return e;let{h:n,s:i,l:r}=function(e){let{r:t,g:n,b:i}=e;t/=255,n/=255,i/=255;const r=Math.min(t,n,i),o=Math.max(t,n,i),a=o-r;let s,l;o===r?s=0:t===o?s=(n-i)/a:n===o?s=2+(i-t)/a:i===o&&(s=4+(t-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const c=(r+o)/2;return l=o===r?0:c<=.5?a/(o+r):a/(2-o-r),{h:s,s:l,l:c}}(t);return i+=.1,r-=.1,function(e){const{r:t,g:n,b:i}=e;let r=((1<<24)+(kp(t)<<16)+(kp(n)<<8)+kp(i)).toString(16).slice(1);return r[0]===r[1]&&r[2]===r[3]&&r[4]===r[5]&&r[6]===r[7]&&(r=r[0]+r[2]+r[4]),"#"+r}(function(e){let[t,n,i]=[e.h,e.s,e.l];t=(t+360)%360/60,i=Math.max(0,Math.min(i,1)),n=Math.max(0,Math.min(n,1));const r=i<=.5?i*(n+1):i+n-i*n,o=2*i-r;return{r:Math.round(255*Sp(o,r,t+2)),g:Math.round(255*Sp(o,r,t)),b:Math.round(255*Sp(o,r,t-2))}}({h:n,s:i,l:r}))}var Cp={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},Pp={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},Ep=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function Mp(e,t,n){if(!/[A-Za-z\d]/.test(e))return e;if("up"===n&&(n=void 0),!t&&!n)return e;const i=e.codePointAt(0);if(void 0===i)return e;for(const e of Ep)if((!t||e.variant===t)&&(!n||e.style===n)&&i>=e.offset&&i120831)&&(e<8448||e>8527))return{char:String.fromCodePoint(e)};for(const n in Pp)if(Pp[n]===e){e=null!=(t=n.codePointAt(0))?t:0;break}for(const t of Ep)if(e>=t.start&&e`|$%#&^" ]/;function $p(e,t,n="mord",i){void 0!==t&&(Ip[e]={definitionType:"symbol",type:n,variant:i,codepoint:t},Bp[t]||(Bp[t]=e))}function Hp(e,t,n){if("string"!=typeof e)for(const[i,r,o,a]of e)$p(i,r,null!=o?o:t,null!=a?a:n);else for(let t=0;tzp[e]===t));return e||String.fromCodePoint(t)}return String.fromCodePoint(t)}!function(){if(!lp())return!0;if(/firefox/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/firefox\/(\d+)/i);if(!e)return!1;return parseInt(e[1])>=78}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/edg\/(\d+)/i);if(!e)return!1;return parseInt(e[1])>=79}return!0}()?(Tp=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,Dp=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/):(Tp=new RegExp("\\p{Letter}","u"),Dp=new RegExp("[0-9\\p{Letter}]","u"));var nf=[0,.68889,0,0,.72222],rf=[0,.68889,0,0,.66667],of=[0,.68889,0,0,.77778],af=[0,.68889,0,0,.61111],sf=[.16667,.68889,0,0,.77778],lf=[0,.68889,0,0,.55556],cf=[0,0,0,0,.25],uf=[0,.825,0,0,2.33334],hf=[0,.9,0,0,2.33334],df=[0,.68889,0,0,.54028],pf=[-.03598,.46402,0,0,.5],ff=[-.13313,.36687,0,0,1],gf=[.01354,.52239,0,0,1],mf=[.01354,.52239,0,0,1.11111],vf=[0,.54986,0,0,1],yf=[0,.69224,0,0,.5],bf=[0,.43056,0,0,1],wf=[.08198,.58198,0,0,.77778],xf=[.19444,.69224,0,0,.41667],Sf=[.1808,.675,0,0,1],kf=[.19444,.69224,0,0,.83334],_f=[.13667,.63667,0,0,1],Cf=[-.064,.437,0,0,1.334],Pf=[.08167,.58167,0,0,.77778],Ef=[0,.69224,0,0,.72222],Mf=[0,.69224,0,0,.66667],Lf=[-.13313,.36687,0,0,.77778],Af=[.06062,.54986,0,0,.77778],Tf=[0,.69224,0,0,.77778],Df=[.25583,.75583,0,0,.77778],Nf=[.25142,.75726,0,0,.77778],If=[.20576,.70576,0,0,.77778],Bf=[.30274,.79383,0,0,.77778],Rf=[.22958,.72958,0,0,.77778],Of=[.1808,.675,0,0,.77778],Ff=[.13667,.63667,0,0,.77778],zf=[.13597,.63597,0,0,.77778],jf=[.03517,.54986,0,0,.77778],$f=[0,.675,0,0,.77778],Hf=[.19444,.69224,0,0,.61111],Zf=[0,.54986,0,0,.76042],Kf=[0,.54986,0,0,.66667],Gf=[.0391,.5391,0,0,.77778],Uf=[.03517,.54986,0,0,1.33334],Vf=[.38569,.88569,0,0,.77778],Wf=[.23222,.74111,0,0,.77778],qf=[.19444,.69224,0,0,.77778],Yf=[0,.37788,0,0,.5],Xf=[0,.54986,0,0,.72222],Qf=[0,.69224,0,0,.83334],Jf=[.11111,.69224,0,0,.66667],eg=[.26167,.75726,0,0,.77778],tg=[.48256,.98256,0,0,.77778],ng=[.28481,.79383,0,0,.77778],ig=[.08167,.58167,0,0,.22222],rg=[.08167,.58167,0,0,.38889],og=[0,.43056,.04028,0,.66667],ag=[.41951,.91951,0,0,.77778],sg=[.24982,.74947,0,0,.38865],lg=[.08319,.58283,0,0,.75623],cg=[0,.10803,0,0,.27764],ug=[0,.47534,0,0,.50181],hg=[.18906,.47534,0,0,.50181],dg=[0,.69141,0,0,.50181],pg=[.24982,.74947,0,0,.27764],fg=[0,.69141,0,0,.21471],gg=[.25,.75,0,0,.44722],mg=[0,.64444,0,0,.575],vg=[.08556,.58556,0,0,.89444],yg=[0,.69444,0,0,.89444],bg=[0,.68611,0,0,.9],wg=[0,.68611,0,0,.86944],xg=[.25,.75,0,0,.575],Sg=[.25,.75,0,0,.31944],kg=[0,.69444,0,0,.63889],_g=[0,.69444,0,0,.31944],Cg=[0,.44444,0,0,.63889],Pg=[0,.44444,0,0,.51111],Eg=[0,.69444,0,0,.575],Mg=[.13333,.63333,0,0,.89444],Lg=[0,.44444,0,0,.31944],Ag=[0,.69444,0,0,.86944],Tg=[0,.68611,0,0,.69166],Dg=[0,.68611,0,0,.83055],Ng=[0,.68611,0,0,.89444],Ig=[0,.69444,0,0,.60278],Bg=[.19444,.69444,0,0,.51111],Rg=[0,.69444,0,0,.83055],Og=[-.10889,.39111,0,0,1.14999],Fg=[.19444,.69444,0,0,.575],zg=[.19444,.69444,0,0,1.14999],jg=[.19444,.69444,0,0,.70277],$g=[.05556,.75,0,0,.575],Hg=[0,.68611,0,0,.95833],Zg=[.08556,.58556,0,0,.76666],Kg=[-.02639,.47361,0,0,.575],Gg=[0,.44444,0,0,.89444],Ug=[0,.55556,0,0,.76666],Vg=[-.10889,.39111,0,0,.89444],Wg=[.00222,.50222,0,0,.89444],qg=[.19667,.69667,0,0,.89444],Yg=[.08556,.58556,0,0,1.14999],Xg=[0,.69444,0,0,.70277],Qg=[-.02778,.47222,0,0,.575],Jg=[.25,.75,0,0,.51111],em=[-.13889,.36111,0,0,1.14999],tm=[.19444,.69444,0,0,1.02222],nm=[.12963,.69444,0,0,.89444],im=[.19444,.69444,0,0,.44722],rm=[0,.64444,.13167,0,.59111],om=[.19444,.64444,.13167,0,.59111],am=[0,.68611,.17208,0,.8961],sm=[.19444,.44444,.105,0,.53222],lm=[0,.44444,.085,0,.82666],cm=[0,.69444,.06709,0,.59111],um=[0,.69444,.12945,0,.35555],hm=[0,.69444,0,0,.94888],dm=[0,.69444,.11472,0,.59111],pm=[0,.68611,.10778,0,.88555],fm=[0,.69444,.07939,0,.62055],gm=[0,.69444,.12417,0,.30667],mm=[0,.64444,.13556,0,.51111],vm=[.19444,.64444,.13556,0,.51111],ym=[0,.68333,.16389,0,.74333],bm=[.19444,.43056,.08847,0,.46],wm=[0,.43056,.07514,0,.71555],xm=[0,.69444,.06646,0,.51111],Sm=[0,.69444,0,0,.83129],km=[0,.69444,.1225,0,.51111],_m=[0,.68333,.09403,0,.76666],Cm=[0,.68333,.11111,0,.76666],Pm=[0,.69444,.06961,0,.51444],Em=[0,.69444,0,0,.27778],Mm=[.25,.75,0,0,.38889],Lm=[0,.64444,0,0,.5],Am=[0,.69444,0,0,.77778],Tm=[0,.68333,0,0,.75],Dm=[0,.68333,0,0,.77778],Nm=[0,.68333,0,0,.68056],Im=[0,.68333,0,0,.72222],Bm=[.25,.75,0,0,.5],Rm=[.25,.75,0,0,.27778],Om=[0,.69444,0,0,.5],Fm=[0,.69444,0,0,.55556],zm=[0,.43056,0,0,.44445],jm=[0,.43056,0,0,.5],$m=[.19444,.43056,0,0,.55556],Hm=[0,.43056,0,0,.55556],Zm=[.08333,.58333,0,0,.77778],Km=[0,.43056,0,0,.27778],Gm=[0,.66786,0,0,.27778],Um=[0,.69444,0,0,.75],Vm=[0,.66786,0,0,.5],Wm=[0,.68333,0,0,.625],qm=[.19444,.69444,0,0,.44445],Ym=[0,.69444,0,0,.72222],Xm=[.19444,.69444,0,0,.5],Qm=[.19444,.69444,0,0,1],Jm=[.011,.511,0,0,1.126],ev=[.19444,.69444,0,0,.61111],tv=[.05556,.75,0,0,.5],nv=[0,.68333,0,0,.83334],iv=[.0391,.5391,0,0,.66667],rv=[-.05555,.44445,0,0,.5],ov=[0,.43056,0,0,.77778],av=[0,.55556,0,0,.66667],sv=[-.03625,.46375,0,0,.77778],lv=[-.01688,.48312,0,0,.77778],cv=[.0391,.5391,0,0,1],uv=[0,.69444,0,0,.61111],hv=[-.03472,.46528,0,0,.5],dv=[.25,.75,0,0,.44445],pv=[-.14236,.35764,0,0,1],fv=[.244,.744,0,0,.412],gv=[.19444,.69444,0,0,.88889],mv=[.12963,.69444,0,0,.77778],vv=[.19444,.69444,0,0,.38889],yv=[.011,.511,0,0,1.638],bv=[.19444,.69444,0,0,0],wv=[0,.44444,0,0,.575],xv=[.19444,.44444,0,0,.575],Sv=[0,.68611,0,0,.75555],kv=[0,.69444,0,0,.66759],_v=[0,.68611,0,0,.80555],Cv=[0,.68611,.08229,0,.98229],Pv=[0,.68611,0,0,.76666],Ev=[0,.44444,0,0,.58472],Mv=[.19444,.44444,0,0,.6118],Lv=[.19444,.43056,0,0,.5],Av=[0,.68333,.02778,.08334,.76278],Tv=[0,.68333,.08125,.05556,.83125],Dv=[0,.43056,0,.05556,.48472],Nv=[.19444,.43056,0,.08334,.51702],Iv=[.25,.75,0,0,.42778],Bv=[0,.69444,0,0,.55],Rv=[0,.69444,0,0,.73334],Ov=[0,.69444,0,0,.79445],Fv=[0,.69444,0,0,.51945],zv=[0,.69444,0,0,.70278],jv=[0,.69444,0,0,.76389],$v=[.25,.75,0,0,.34306],Hv=[0,.69444,0,0,.56111],Zv=[0,.69444,0,0,.25556],Kv=[.19444,.45833,0,0,.56111],Gv=[0,.45833,0,0,.56111],Uv=[0,.69444,0,0,.30556],Vv=[0,.69444,0,0,.58056],Wv=[0,.69444,0,0,.67223],qv=[0,.69444,0,0,.85556],Yv=[0,.69444,0,0,.55834],Xv=[0,.65556,.11156,0,.5],Qv=[0,.69444,.08094,0,.70834],Jv=[.17014,0,0,0,.44445],ey=[0,.69444,.0799,0,.5],ty=[0,.69444,0,0,.73752],ny=[0,.69444,.09205,0,.5],iy=[0,.69444,.09031,0,.77778],ry=[0,.69444,.07816,0,.27778],oy=[0,.69444,.00316,0,.5],ay=[.19444,.69444,0,0,.83334],sy=[.05556,.75,0,0,.83334],ly=[0,.75,0,0,.5],cy=[.125,.08333,0,0,.27778],uy=[0,.08333,0,0,.27778],hy=[0,.65556,0,0,.5],dy=[0,.69444,0,0,.47222],py=[0,.69444,0,0,.66667],fy=[0,.69444,0,0,.59722],gy=[0,.69444,0,0,.54167],my=[0,.69444,0,0,.70834],vy=[.25,.75,0,0,.28889],yy=[0,.69444,0,0,.51667],by=[0,.44444,0,0,.44445],wy=[.19444,.44444,0,0,.51667],xy=[0,.44444,0,0,.38333],Sy=[0,.44444,0,0,.51667],ky=[0,.69444,0,0,.83334],_y=[.35001,.85,0,0,.45834],Cy=[.35001,.85,0,0,.57778],Py=[.35001,.85,0,0,.41667],Ey=[.35001,.85,0,0,.58334],My=[0,.72222,0,0,.55556],Ly=[1e-5,.6,0,0,.66667],Ay=[1e-5,.6,0,0,.77778],Ty=[.25001,.75,0,0,.94445],Dy=[.306,.805,.19445,0,.47222],Ny=[.30612,.805,.19445,0,.47222],Iy=[.25001,.75,0,0,.83334],By=[.35001,.85,0,0,.47222],Ry=[.25001,.75,0,0,1.11111],Oy=[.65002,1.15,0,0,.59722],Fy=[.65002,1.15,0,0,.81111],zy=[.65002,1.15,0,0,.47222],jy=[.65002,1.15,0,0,.66667],$y=[0,.75,0,0,1],Hy=[.55001,1.05,0,0,1.27778],Zy=[.862,1.36,.44445,0,.55556],Ky=[.86225,1.36,.44445,0,.55556],Gy=[.55001,1.05,0,0,1.11111],Uy=[.65002,1.15,0,0,.52778],Vy=[.65002,1.15,0,0,.61111],Wy=[.55001,1.05,0,0,1.51112],qy=[.95003,1.45,0,0,.73611],Yy=[.95003,1.45,0,0,1.04445],Xy=[.95003,1.45,0,0,.52778],Qy=[.95003,1.45,0,0,.75],Jy=[0,.75,0,0,1.44445],eb=[.95003,1.45,0,0,.58334],tb=[1.25003,1.75,0,0,.79167],nb=[1.25003,1.75,0,0,1.27778],ib=[1.25003,1.75,0,0,.58334],rb=[1.25003,1.75,0,0,.80556],ob=[0,.825,0,0,1.8889],ab=[1.25003,1.75,0,0,.63889],sb=[.64502,1.155,0,0,.875],lb=[1e-5,.6,0,0,.875],cb=[-99e-5,.601,0,0,.66667],ub=[.64502,1.155,0,0,.66667],hb=[1e-5,.9,0,0,.88889],db=[.65002,1.15,0,0,.88889],pb=[.90001,0,0,0,.88889],fb=[-.00499,.605,0,0,1.05556],gb=[0,.12,0,0,.45],mb=[0,.61111,0,0,.525],vb=[.08333,.69444,0,0,.525],yb=[-.08056,.53055,0,0,.525],bb=[-.05556,.55556,0,0,.525],wb=[0,.43056,0,0,.525],xb=[.22222,.43056,0,0,.525],Sb=[0,0,0,0,.525],kb={"AMS-Regular":{32:cf,65:nf,66:rf,67:nf,68:nf,69:rf,70:af,71:of,72:of,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:of,76:rf,77:[0,.68889,0,0,.94445],78:nf,79:sf,80:af,81:sf,82:nf,83:lf,84:rf,85:nf,86:nf,87:[0,.68889,0,0,1],88:nf,89:nf,90:rf,107:lf,160:cf,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:lf,295:df,710:uf,732:hf,770:uf,771:hf,989:Pf,1008:og,8245:[0,.54986,0,0,.275],8463:df,8487:nf,8498:lf,8502:rf,8503:[0,.68889,0,0,.44445],8504:rf,8513:[0,.68889,0,0,.63889],8592:pf,8594:pf,8602:ff,8603:ff,8606:gf,8608:gf,8610:mf,8611:mf,8619:vf,8620:vf,8621:[-.13313,.37788,0,0,1.38889],8622:ff,8624:yf,8625:yf,8630:bf,8631:bf,8634:wf,8635:wf,8638:xf,8639:xf,8642:xf,8643:xf,8644:Sf,8646:Sf,8647:Sf,8648:kf,8649:Sf,8650:kf,8651:gf,8652:gf,8653:ff,8654:ff,8655:ff,8666:_f,8667:_f,8669:[-.13313,.37788,0,0,1],8672:Cf,8674:Cf,8705:[0,.825,0,0,.5],8708:lf,8709:Pf,8717:[0,.43056,0,0,.42917],8722:pf,8724:[.08198,.69224,0,0,.77778],8726:Pf,8733:Tf,8736:Ef,8737:Ef,8738:[.03517,.52239,0,0,.72222],8739:ig,8740:[.25142,.74111,0,0,.27778],8741:rg,8742:[.25142,.74111,0,0,.5],8756:Mf,8757:Mf,8764:Lf,8765:[-.13313,.37788,0,0,.77778],8769:Lf,8770:sv,8774:Bf,8776:lv,8778:Pf,8782:Af,8783:Af,8785:wf,8786:wf,8787:wf,8790:Tf,8791:Rf,8796:[.08198,.91667,0,0,.77778],8806:Df,8807:Df,8808:Nf,8809:Nf,8812:[.25583,.75583,0,0,.5],8814:If,8815:If,8816:Bf,8817:Bf,8818:Rf,8819:Rf,8822:Of,8823:Of,8828:Ff,8829:Ff,8830:Rf,8831:Rf,8832:If,8833:If,8840:Bf,8841:Bf,8842:zf,8843:zf,8847:jf,8848:jf,8858:wf,8859:wf,8861:wf,8862:$f,8863:$f,8864:$f,8865:$f,8872:[0,.69224,0,0,.61111],8873:Ef,8874:[0,.69224,0,0,.88889],8876:af,8877:af,8878:nf,8879:nf,8882:jf,8883:jf,8884:Ff,8885:Ff,8888:[0,.54986,0,0,1.11111],8890:$m,8891:Hf,8892:Hf,8901:[0,.54986,0,0,.27778],8903:Pf,8905:Pf,8906:Pf,8907:Tf,8908:Tf,8909:[-.03598,.46402,0,0,.77778],8910:Zf,8911:Zf,8912:jf,8913:jf,8914:Kf,8915:Kf,8916:Mf,8918:Gf,8919:Gf,8920:Uf,8921:Uf,8922:Vf,8923:Vf,8926:Ff,8927:Ff,8928:Bf,8929:Bf,8934:Wf,8935:Wf,8936:Wf,8937:Wf,8938:If,8939:If,8940:Bf,8941:Bf,8994:qf,8995:qf,9416:[.15559,.69224,0,0,.90222],9484:yf,9488:yf,9492:Yf,9496:Yf,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:$f,9633:$f,9650:Xf,9651:Xf,9654:jf,9660:Xf,9661:Xf,9664:jf,9674:Jf,9733:[.19444,.69224,0,0,.94445],10003:Qf,10016:Qf,10731:Jf,10846:[.19444,.75583,0,0,.61111],10877:Ff,10878:Ff,10885:Df,10886:Df,10887:zf,10888:zf,10889:eg,10890:eg,10891:tg,10892:tg,10901:Ff,10902:Ff,10933:Nf,10934:Nf,10935:eg,10936:eg,10937:eg,10938:eg,10949:Df,10950:Df,10955:ng,10956:ng,57350:ig,57351:rg,57352:Pf,57353:og,57356:Nf,57357:Nf,57358:ag,57359:Bf,57360:Bf,57361:ag,57366:Nf,57367:Nf,57368:Nf,57369:Nf,57370:zf,57371:zf},"Caligraphic-Regular":{32:cf,65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:cf},"Fraktur-Regular":{32:cf,33:[0,.69141,0,0,.29574],34:fg,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:sg,41:sg,42:[0,.62119,0,0,.27764],43:lg,44:cg,45:lg,46:cg,47:[.24982,.74947,0,0,.50181],48:ug,49:ug,50:ug,51:hg,52:hg,53:hg,54:dg,55:hg,56:dg,57:hg,58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:pg,93:pg,94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:cf,8216:fg,8217:fg,58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:cf,33:[0,.69444,0,0,.35],34:Ig,35:[.19444,.69444,0,0,.95833],36:$g,37:[.05556,.75,0,0,.95833],38:yg,39:_g,40:gg,41:gg,42:[0,.75,0,0,.575],43:Mg,44:[.19444,.15556,0,0,.31944],45:xy,46:[0,.15556,0,0,.31944],47:xg,48:mg,49:mg,50:mg,51:mg,52:mg,53:mg,54:mg,55:mg,56:mg,57:mg,58:Lg,59:[.19444,.44444,0,0,.31944],60:vg,61:Vg,62:vg,63:[0,.69444,0,0,.54305],64:yg,65:wg,66:[0,.68611,0,0,.81805],67:Dg,68:[0,.68611,0,0,.88194],69:Sv,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:bg,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:Tg,77:[0,.68611,0,0,1.09166],78:bg,79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:wg,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Sg,92:xg,93:Sg,94:Eg,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:kg,99:Pg,100:kg,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:kg,105:_g,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:_g,109:[0,.44444,0,0,.95833],110:Cg,111:wv,112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:Cg,118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:Pg,123:xg,124:Sg,125:xg,126:[.35,.34444,0,0,.575],160:cf,163:[0,.69444,0,0,.86853],168:Eg,172:[0,.44444,0,0,.76666],176:Ag,177:Mg,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Mg,216:[.04861,.73472,0,0,.89444],223:fy,230:[0,.44444,0,0,.83055],247:Mg,248:[.09722,.54167,0,0,.575],305:Lg,338:[0,.68611,0,0,1.16944],339:Gg,567:[.19444,.44444,0,0,.35139],710:Eg,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Eg,715:Eg,728:Eg,729:_g,730:Ag,732:Eg,733:Eg,915:Tg,916:Hg,920:Ng,923:_v,926:Pv,928:bg,931:Dg,933:Ng,934:Dg,936:Ng,937:Dg,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:_g,8217:_g,8220:Ig,8221:Ig,8224:Bg,8225:Bg,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:kv,8465:Rg,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:Rg,8501:Xg,8592:Og,8593:Fg,8594:Og,8595:Fg,8596:Og,8597:xg,8598:zg,8599:zg,8600:zg,8601:zg,8636:Og,8637:Og,8640:Og,8641:Og,8656:Og,8657:jg,8658:Og,8659:jg,8660:Og,8661:[.25,.75,0,0,.70277],8704:kg,8706:[0,.69444,.06389,0,.62847],8707:kg,8709:$g,8711:Hg,8712:Zg,8715:Zg,8722:Mg,8723:Mg,8725:xg,8726:xg,8727:Qg,8728:Kg,8729:Kg,8730:[.18,.82,0,0,.95833],8733:Gg,8734:[0,.44444,0,0,1.14999],8736:Ef,8739:Sg,8741:xg,8743:Ug,8744:Ug,8745:Ug,8746:Ug,8747:[.19444,.69444,.12778,0,.56875],8764:Vg,8768:[.19444,.69444,0,0,.31944],8771:Wg,8776:[.02444,.52444,0,0,.89444],8781:Wg,8801:Wg,8804:qg,8805:qg,8810:Yg,8811:Yg,8826:vg,8827:vg,8834:vg,8835:vg,8838:qg,8839:qg,8846:Ug,8849:qg,8850:qg,8851:Ug,8852:Ug,8853:Mg,8854:Mg,8855:Mg,8856:Mg,8857:Mg,8866:Xg,8867:Xg,8868:yg,8869:yg,8900:Kg,8901:[-.02639,.47361,0,0,.31944],8902:Qg,8968:Jg,8969:Jg,8970:Jg,8971:Jg,8994:em,8995:em,9651:tm,9657:Qg,9661:tm,9667:Qg,9711:zg,9824:nm,9825:nm,9826:nm,9827:nm,9837:[0,.75,0,0,.44722],9838:im,9839:im,10216:gg,10217:gg,10815:bg,10927:qg,10928:qg,57376:bv},"Main-BoldItalic":{32:cf,33:[0,.69444,.11417,0,.38611],34:fm,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:um,40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:rm,49:rm,50:rm,51:rm,52:om,53:rm,54:rm,55:om,56:rm,57:rm,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:dm,64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:am,73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:am,79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:cm,95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:sm,104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:sm,114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:cf,168:[0,.69444,.11473,0,.59111],176:hm,184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:lm,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:lm,567:[.19444,.44444,.04611,0,.385],710:cm,711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:um,730:hm,732:dm,733:dm,915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:am,931:[0,.68611,.11431,0,.82666],933:pm,934:[0,.68611,.05632,0,.82666],936:pm,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:um,8217:um,8220:[0,.69444,.16772,0,.62055],8221:fm},"Main-Italic":{32:cf,33:gm,34:Pm,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:gm,40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:mm,49:mm,50:mm,51:mm,52:vm,53:mm,54:mm,55:vm,56:mm,57:mm,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:km,64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:ym,73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:ym,79:_m,80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:ym,86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:xm,95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:bm,104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:bm,114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:cf,168:[0,.66786,.10474,0,.51111],176:Sm,184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:wm,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:wm,710:xm,711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:Sm,732:[0,.66786,.11585,0,.51111],733:km,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:_m,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:ym,931:[0,.68333,.12028,0,.71555],933:Cm,934:[0,.68333,.05986,0,.71555],936:Cm,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:gm,8217:gm,8220:[0,.69444,.1685,0,.51444],8221:Pm,8463:df},"Main-Regular":{32:cf,33:Em,34:Om,35:ay,36:tv,37:sy,38:Am,39:Em,40:Mm,41:Mm,42:ly,43:Zm,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:Bm,48:Lm,49:Lm,50:Lm,51:Lm,52:Lm,53:Lm,54:Lm,55:Lm,56:Lm,57:Lm,58:Km,59:[.19444,.43056,0,0,.27778],60:Gf,61:Lf,62:Gf,63:dy,64:Am,65:Tm,66:[0,.68333,0,0,.70834],67:Im,68:[0,.68333,0,0,.76389],69:Nm,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Tm,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Dm,76:Wm,77:[0,.68333,0,0,.91667],78:Tm,79:Dm,80:Nm,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Im,85:Tm,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Tm,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:Rm,92:Bm,93:Rm,94:Om,95:[.31,.12056,.02778,0,.5],97:jm,98:Fm,99:zm,100:Fm,101:zm,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:Fm,105:Gm,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:Em,109:[0,.43056,0,0,.83334],110:Hm,111:jm,112:$m,113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:Hm,118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:zm,123:Bm,124:Rm,125:Bm,126:[.35,.31786,0,0,.5],160:cf,163:[0,.69444,0,0,.76909],167:qm,168:Vm,172:[0,.43056,0,0,.66667],176:Um,177:Zm,182:ev,184:Jv,198:[0,.68333,0,0,.90278],215:Zm,216:[.04861,.73194,0,0,.77778],223:Om,230:[0,.43056,0,0,.72222],247:Zm,248:[.09722,.52778,0,0,.5],305:Km,338:[0,.68333,0,0,1.01389],339:ov,567:[.19444,.43056,0,0,.30556],710:Om,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Om,715:Om,728:Om,729:Gm,730:Um,732:Vm,733:Om,915:Wm,916:nv,920:Dm,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Tm,931:Im,933:Dm,934:Im,936:Dm,937:Im,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:Em,8217:Em,8220:Om,8221:Om,8224:qm,8225:qm,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:df,8465:Ym,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Ym,8501:uv,8592:ff,8593:Xm,8594:ff,8595:Xm,8596:ff,8597:Bm,8598:Qm,8599:Qm,8600:Qm,8601:Qm,8614:[.011,.511,0,0,1],8617:Jm,8618:Jm,8636:ff,8637:ff,8640:ff,8641:ff,8652:[.011,.671,0,0,1],8656:ff,8657:ev,8658:ff,8659:ev,8660:ff,8661:[.25,.75,0,0,.61111],8704:Fm,8706:[0,.69444,.05556,.08334,.5309],8707:Fm,8709:tv,8711:nv,8712:iv,8715:iv,8722:Zm,8723:Zm,8725:Bm,8726:Bm,8727:hv,8728:rv,8729:rv,8730:[.2,.8,0,0,.83334],8733:ov,8734:bf,8736:Ef,8739:Rm,8741:Bm,8743:av,8744:av,8745:av,8746:av,8747:[.19444,.69444,.11111,0,.41667],8764:Lf,8768:[.19444,.69444,0,0,.27778],8771:sv,8773:[-.022,.589,0,0,1],8776:lv,8781:sv,8784:[-.133,.67,0,0,.778],8801:sv,8804:zf,8805:zf,8810:cv,8811:cv,8826:Gf,8827:Gf,8834:Gf,8835:Gf,8838:zf,8839:zf,8846:av,8849:zf,8850:zf,8851:av,8852:av,8853:Zm,8854:Zm,8855:Zm,8856:Zm,8857:Zm,8866:uv,8867:uv,8868:Am,8869:Am,8872:[.249,.75,0,0,.867],8900:rv,8901:[-.05555,.44445,0,0,.27778],8902:hv,8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:dv,8969:dv,8970:dv,8971:dv,8994:pv,8995:pv,9136:fv,9137:fv,9651:gv,9657:hv,9661:gv,9667:hv,9711:Qm,9824:mv,9825:mv,9826:mv,9827:mv,9837:[0,.75,0,0,.38889],9838:vv,9839:vv,10216:Mm,10217:Mm,10222:fv,10223:fv,10229:[.011,.511,0,0,1.609],10230:yv,10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:yv,10815:Tm,10927:zf,10928:zf,57376:bv},"Math-BoldItalic":{32:cf,48:wv,49:wv,50:wv,51:xv,52:xv,53:xv,54:mg,55:xv,56:mg,57:xv,65:wg,66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:Cv,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Sv,77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:kv,105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:Ev,112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:cf,915:[0,.68611,.15972,0,.65694],916:Hg,920:[0,.68611,.03194,0,.86722],923:_v,926:[0,.68611,.07458,0,.84125],928:Cv,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:Pv,936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:Ev,960:[0,.44444,.03704,0,.68241],961:Mv,962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:Mv,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:cf,48:jm,49:jm,50:jm,51:Lv,52:Lv,53:Lv,54:Lm,55:Lv,56:Lm,57:Lv,65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:Tv,73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:Av,80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:Dv,112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:cf,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:Av,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Tv,931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:Dv,960:[0,.43056,.03588,0,.57003],961:Nv,962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:Nv,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:cf,33:[0,.69444,0,0,.36667],34:Yv,35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:Uv,40:Iv,41:Iv,42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:Bv,49:Bv,50:Bv,51:Bv,52:Bv,53:Bv,54:Bv,55:Bv,56:Bv,57:Bv,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Fv,64:Rv,65:Rv,66:Rv,67:zv,68:Ov,69:[0,.69444,0,0,.64167],70:uv,71:Rv,72:Ov,73:[0,.69444,0,0,.33056],74:Fv,75:jv,76:Vv,77:[0,.69444,0,0,.97778],78:Ov,79:Ov,80:zv,81:[.10556,.69444,0,0,.79445],82:zv,83:uv,84:Rv,85:jv,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Rv,89:[0,.69444,.0275,0,.73334],90:Wv,91:$v,93:$v,94:Bv,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:Hv,99:[0,.45833,0,0,.48889],100:Hv,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:Hv,105:Zv,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Zv,109:[0,.45833,0,0,.86667],110:Gv,111:[0,.45833,0,0,.55],112:Kv,113:Kv,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:Gv,118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:cf,168:Bv,176:Rv,180:Bv,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:Bv,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:Bv,729:Uv,730:Rv,732:Bv,733:Bv,915:Vv,916:[0,.69444,0,0,.91667],920:qv,923:Wv,926:Rv,928:Ov,931:Ov,933:qv,934:Ov,936:qv,937:Ov,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Uv,8217:Uv,8220:Yv,8221:Yv},"SansSerif-Italic":{32:cf,33:[0,.69444,.05733,0,.31945],34:oy,35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:ry,40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:cy,45:[0,.44444,.01946,0,.33333],46:uy,47:[.25,.75,.13164,0,.5],48:Xv,49:Xv,50:Xv,51:Xv,52:Xv,53:Xv,54:Xv,55:Xv,56:Xv,57:Xv,58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:py,66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:Qv,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:gy,77:[0,.69444,.08094,0,.875],78:Qv,79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:ey,95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:cf,168:[0,.67937,.06385,0,.5],176:ty,184:Jv,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:ey,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:ny,715:Om,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:ty,732:[0,.67659,.08826,0,.5],733:ny,915:[0,.69444,.13372,0,.54167],916:ky,920:[0,.69444,.07555,0,.77778],923:uv,926:[0,.69444,.12816,0,.66667],928:Qv,931:[0,.69444,.11983,0,.72222],933:iy,934:[0,.69444,.04603,0,.72222],936:iy,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:ry,8217:ry,8220:[0,.69444,.14205,0,.5],8221:oy},"SansSerif-Regular":{32:cf,33:[0,.69444,0,0,.31945],34:Om,35:ay,36:tv,37:sy,38:[0,.69444,0,0,.75834],39:Em,40:Mm,41:Mm,42:ly,43:Zm,44:cy,45:[0,.44444,0,0,.33333],46:uy,47:Bm,48:hy,49:hy,50:hy,51:hy,52:hy,53:hy,54:hy,55:hy,56:hy,57:hy,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:dy,64:py,65:py,66:py,67:kg,68:[0,.69444,0,0,.72223],69:fy,70:[0,.69444,0,0,.56945],71:py,72:my,73:Em,74:dy,75:[0,.69444,0,0,.69445],76:gy,77:[0,.69444,0,0,.875],78:my,79:[0,.69444,0,0,.73611],80:kg,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:Fm,84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:py,89:[0,.69444,.025,0,.66667],90:uv,91:vy,93:vy,94:Om,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:yy,99:by,100:yy,101:by,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:yy,105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:Sy,111:[0,.44444,0,0,.5],112:wy,113:wy,114:[0,.44444,.01389,0,.34167],115:xy,116:[0,.57143,0,0,.36111],117:Sy,118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:cf,168:[0,.67937,0,0,.5],176:py,184:Jv,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Om,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Om,715:Om,728:Om,729:[0,.67937,0,0,.27778],730:py,732:[0,.67659,0,0,.5],733:Om,915:gy,916:ky,920:Am,923:uv,926:py,928:my,931:Ym,933:Am,934:Ym,936:Am,937:Ym,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:Em,8217:Em,8220:Om,8221:Om},"Script-Regular":{32:cf,65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:cf},"Size1-Regular":{32:cf,40:_y,41:_y,47:Cy,91:Py,92:Cy,93:Py,123:Ey,125:Ey,160:cf,710:My,732:My,770:My,771:My,8214:[-99e-5,.601,0,0,.77778],8593:Ly,8595:Ly,8657:Ay,8659:Ay,8719:Ty,8720:Ty,8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:Ny,8748:Dy,8749:Dy,8750:Ny,8896:Iy,8897:Iy,8898:Iy,8899:Iy,8968:By,8969:By,8970:By,8971:By,9168:cb,10216:By,10217:By,10752:Ry,10753:Ry,10754:Ry,10756:Iy,10758:Iy},"Size2-Regular":{32:cf,40:Oy,41:Oy,47:Fy,91:zy,92:Fy,93:zy,123:jy,125:jy,160:cf,710:$y,732:$y,770:$y,771:$y,8719:Hy,8720:Hy,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:Ky,8748:Zy,8749:Zy,8750:Ky,8896:Gy,8897:Gy,8898:Gy,8899:Gy,8968:Uy,8969:Uy,8970:Uy,8971:Uy,10216:Vy,10217:Vy,10752:Wy,10753:Wy,10754:Wy,10756:Gy,10758:Gy},"Size3-Regular":{32:cf,40:qy,41:qy,47:Yy,91:Xy,92:Yy,93:Xy,123:Qy,125:Qy,160:cf,710:Jy,732:Jy,770:Jy,771:Jy,8730:[.95003,1.45,0,0,1],8968:eb,8969:eb,8970:eb,8971:eb,10216:Qy,10217:Qy},"Size4-Regular":{32:cf,40:tb,41:tb,47:nb,91:ib,92:nb,93:ib,123:rb,125:rb,160:cf,710:ob,732:ob,770:ob,771:ob,8730:[1.25003,1.75,0,0,1],8968:ab,8969:ab,8970:ab,8971:ab,9115:sb,9116:lb,9117:sb,9118:sb,9119:lb,9120:sb,9121:ub,9122:cb,9123:ub,9124:ub,9125:cb,9126:ub,9127:hb,9128:db,9129:pb,9130:[0,.3,0,0,.88889],9131:hb,9132:db,9133:pb,9143:[.88502,.915,0,0,1.05556],10216:rb,10217:rb,57344:fb,57345:fb,57680:gb,57681:gb,57682:gb,57683:gb},"Typewriter-Regular":{32:Sb,33:mb,34:mb,35:mb,36:vb,37:vb,38:mb,39:mb,40:vb,41:vb,42:[0,.52083,0,0,.525],43:yb,44:[.13889,.125,0,0,.525],45:yb,46:[0,.125,0,0,.525],47:vb,48:mb,49:mb,50:mb,51:mb,52:mb,53:mb,54:mb,55:mb,56:mb,57:mb,58:wb,59:[.13889,.43056,0,0,.525],60:bb,61:[-.19549,.41562,0,0,.525],62:bb,63:mb,64:mb,65:mb,66:mb,67:mb,68:mb,69:mb,70:mb,71:mb,72:mb,73:mb,74:mb,75:mb,76:mb,77:mb,78:mb,79:mb,80:mb,81:[.13889,.61111,0,0,.525],82:mb,83:mb,84:mb,85:mb,86:mb,87:mb,88:mb,89:mb,90:mb,91:vb,92:vb,93:vb,94:mb,95:[.09514,0,0,0,.525],96:mb,97:wb,98:mb,99:wb,100:mb,101:wb,102:mb,103:xb,104:mb,105:mb,106:[.22222,.61111,0,0,.525],107:mb,108:mb,109:wb,110:wb,111:wb,112:xb,113:xb,114:wb,115:wb,116:[0,.55358,0,0,.525],117:wb,118:wb,119:wb,120:wb,121:xb,122:wb,123:vb,124:vb,125:vb,126:mb,127:mb,160:Sb,176:mb,184:[.19445,0,0,0,.525],305:wb,567:xb,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:mb,715:mb,728:mb,730:mb,770:mb,771:mb,776:mb,915:mb,916:mb,920:mb,923:mb,926:mb,928:mb,931:mb,933:mb,934:mb,936:mb,937:mb,8216:mb,8217:mb,8242:mb,9251:[.11111,.21944,0,0,.525]}},_b=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,Cb=10,Pb=.25,Eb=.431,Mb={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[Eb,Eb,Eb],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.5,.732,.925],num2:[.394,.384,.5],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[Pb,Pb,Pb],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04]},Lb=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ab={" ":" ","​":" ","Å":"A","Ç":"C","Ð":"D","Þ":"o","å":"a","ç":"c","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function Tb(e,t){void 0===e&&(e=77);const n=kb[t][e];if(n)return{defaultMetrics:!1,depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]};if(11034===e)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const i=String.fromCodePoint(e);if(i in Ab)e=Ab[i].codePointAt(0);else if(_b.test(i))return e=77,{defaultMetrics:!0,depth:.2,height:.9,italic:0,skew:0,width:1};return{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0,width:.8}}var Db={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],longrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],longleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],longleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],longrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],longleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],longleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],longRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716],longLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Nb={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34],overarc:[1061,159,.3],underarc:[1061,159,.3]},Ib={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",overarc:"M529 0c179 0 524 115 524 115 5 1 9 5 9 10 0 1-1 2-1 3l-4 22c-1 5-5 9-11 9h-2s-338-93-512-92c-174 0-513 92-513 92h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13 0 0 342-115 520-115z",underarc:"m 529 160\n c -179 0 -524 -115 -524 -115\n c -5 -1 -9 -5 -9 -10\n c 0 -1 1 -2 1 -3\n l 4 -22\n c 1 -5 5 -9 11 -9\n h 2\n s 338 93 512 92\n c 174 0 513 -92 513 -92\n h 2\n c 5 0 9 4 11 9\n l 5 22\n c 1 6 -2 12 -8 13\n c 0 0 -342 115 -520 115\n z\n ",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",widetilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",widetilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",widetilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",widetilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};var Bb,Rb=8205,Ob=[[Rb,1],[65038,2],[127995,5],[129456,4],[917536,96]],Fb=[127462,127487];function zb(e){var t;if(void 0===Bb){Bb={};for(const e of Ob)for(let t=e[0];t<=e[0]+e[1]-1;t++)Bb[t]=!0}return null!=(t=Bb[e])&&t}function jb(e){return e>=Fb[0]&&e<=Fb[1]}function $b(e){if(/^[\u0020-\u00FF]*$/.test(e))return e;const t=[],n=function(e){const t=[];for(let n=0;n=55296&&i<=56319){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(i=65536+1024*(i-55296)+(t-56320),n++)}t.push(i)}return t}(e);let i=0;for(;i");else if("\\egroup"===s)a.push("<}>");else if("\\string"===s){if(s=e.next(),s)if(s.startsWith("\\"))for(const e of s)a.push("\\"===e?"\\backslash":e);else"<{>"===s?a.push("\\{"):""===s?a.push("~"):"<}>"===s&&a.push("\\}")}else if("\\csname"===s){for(;""===e.peek();)e.next();let r="",o=!1,l=[];do{if(0===l.length)if(/^#[\d?@]$/.test(e.peek())){const r=e.get().slice(1);l=Zb(null!=(i=null!=(n=null==t?void 0:t(r))?n:null==t?void 0:t("?"))?i:"\\placeholder{}",t),s=l[0]}else s=e.next(),l=s?[s]:[];o=0===l.length,o||"\\endcsname"!==s||(o=!0,l.shift()),o||(o="<$>"===s||"<$$>"===s||"<{>"===s||"<}>"===s||"string"==typeof s&&s.length>1&&s.startsWith("\\")),o||(r+=l.shift())}while(!o);r&&a.push("\\"+r),a.push(...l)}else if("\\endcsname"===s);else if(s.length>1&&s.startsWith("#")){const e=s.slice(1);a.push(...Zb(null!=(o=null!=(r=null==t?void 0:t(e))?r:null==t?void 0:t("?"))?o:"\\placeholder{}",t))}else a.push(s);return a}function Zb(e,t=null){const n=[];let i="";for(const t of e.toString().split(/\r?\n/)){i&&n.push(i),i=" ";const e=t.match(/((?:\\%)|[^%])*/);null!==e&&n.push(e[0])}const r=new class{constructor(e){this.obeyspaces=!1,this.pos=0,this.s=$b(e)}end(){return this.pos>=this.s.length}get(){return this.pos";if(this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]/))return"";const e=this.get();if("\\"===e){if(!this.end()){let e=this.match(/^[a-zA-Z\*]+/);return e?this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]*/):e=this.get(),"\\"+e}}else{if("{"===e)return"<{>";if("}"===e)return"<}>";if("^"===e){if("^"===this.peek()){this.get();const e=this.match(/^(\^(\^(\^(\^[\da-f])?[\da-f])?[\da-f])?[\da-f])?[\da-f]{2}/);if(e)return String.fromCodePoint(Number.parseInt(e.slice(e.lastIndexOf("^")+1),16))}return e}if("#"===e){if(!this.end()){let e=!1;if(/[\d?@]/.test(this.peek())&&(e=!0,this.pos+1"):"<$>"}return e}}(function(e){var t;let n="";for(const i of e){if("{}<>[]$&#^_%:'˜".includes(i)){n+=i;continue}const e=null!=(t=i.codePointAt(0))?t:0;let r=Cp[e];if(r)r.startsWith("\\")?n+=r+" ":n+=r;else{const{char:t,variant:i,style:o}=Lp(e);switch(r=t,i){case"double-struck":r=`\\mathbb{${r}}`;break;case"fraktur":r=`\\mathfrak{${r}}`;break;case"script":r=`\\mathscr{${r}}`;break;case"sans-serif":r=`\\mathsf{${r}}`;break;case"monospace":r=`\\mathtt{${r}}`;break;case"calligraphic":r=`\\mathcal{${r}}`}switch(o){case"bold":r=`\\mathbf{${r}}`;break;case"italic":r=`\\mathit{${r}}`;break;case"bolditalic":r=`\\mathbfit{${r}}`}n+=r}}return n}(n.join(""))),o=[];do{o.push(...Hb(r,t))}while(!r.end());return o}function Kb(e){let t="";const n=[];for(const i of e)i&&(t&&/^[a-zA-Z\*]/.test(i)&&n.push(t),n.push(i),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(i)&&n.push(" "),t=/\\[a-zA-Z]+\*?$/.test(i)?" ":"");return n.join("")}function Gb(e,...t){return console.assert(e.startsWith("\\")),0===t.length?e:Kb([e,...t.map((e=>`{${e}}`))])}function Ub(e){return Kb(e.map((e=>{var t;return null!=(t={"":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[e])?t:e})))}var Vb=class e{constructor(t){e._registry[t]=this}static createAtom(t,n,i){return e._registry[t].createAtom(n,Jp(n,t),i)}static serialize(t,n){var i;if(!t||0===t.length)return"";if(null!=(i=n.skipStyles)&&i){const i=[];for(const r of qb(t)){const t=e._registry[r[0].mode];i.push(...t.serialize(r,n))}return Kb(i)}return Kb(function(e,t){if(0===e.length)return[];const{parent:n}=e[0],i=null==n?void 0:n.computedStyle.fontSize,r=[];for(const o of Yb(e,"fontSize")){const e=o[0].computedStyle.fontSize,a=Qb(o,t);a&&(!e||"auto"===e||n&&i===e?r.push(...a):r.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][e],...a))}return r}(t,n))}static getFont(t,n,i){return e._registry[t].getFont(n,i)}};Vb._registry={};var Wb=Vb;function qb(e){const t=[];let n=[],i="NONE";for(const r of e)"first"!==r.type&&(r.mode!==i?(n.length>0&&t.push(n),n=[r],i=r.mode):n.push(r));return n.length>0&&t.push(n),t}function Yb(e,t){const n=[];let i,r=[];for(const o of e)if("first"!==o.type&&o.style){let e;"variant"===t?(e=o.style.variant,o.style.variantStyle&&"up"!==o.style.variantStyle&&(e+="-"+o.style.variantStyle)):e=o.style[t],e===i?r.push(o):(r.length>0&&n.push(r),r=[o],i=e)}return r.length>0&&n.push(r),n}function Xb(e,t){var n;const{parent:i}=e[0],r=null==i?void 0:i.computedStyle.color,o=[];for(const a of qb(e)){const e=t.defaultMode;for(const s of Yb(a,"color")){const a=s[0].computedStyle,l=Wb._registry[s[0].mode].serialize(s,rp(ip({},t),{defaultMode:"text"===e?"text":"math"}));t.skipStyles||!a.color||"none"===a.color||i&&r===a.color?o.push(Kb(l)):o.push(Gb("\\textcolor",null!=(n=a.verbatimColor)?n:a.color,Kb(l)))}}return o}function Qb(e,t){const{parent:n}=e[0],i=null==n?void 0:n.computedStyle.backgroundColor;return Yb(e,"backgroundColor").map((e=>{var r;if(e.length>0||"box"!==e[0].type){const o=e[0].computedStyle;if(o.backgroundColor&&"none"!==o.backgroundColor&&(!n||i!==o.backgroundColor))return Gb("\\colorbox",null!=(r=o.verbatimBackgroundColor)?r:o.backgroundColor,Kb(Xb(e,rp(ip({},t),{defaultMode:"text"}))))}return Kb(Xb(e,t))}))}function Jb(e){if(!e)return;return{mord:"ord",mbin:"bin",mop:"op",mrel:"rel",mopen:"open",mclose:"close",mpunct:"punct",minner:"inner",spacing:"ignore",latex:"latex",composition:"inner",error:"inner",placeholder:"ord",supsub:"ignore"}[e]}function ew(e){if(0===e.length)return"ord";const t=Jb(e[0].type),n=Jb(e[e.length-1].type);return t&&t===n?t:"ord"}function tw(e,t){if("string"==typeof e)return e;if("number"==typeof e){console.assert(Number.isFinite(e));const n=Math.ceil(100*e)/100;return 0===n?"0":n.toString()+(null!=t?t:"")}return""}var nw=class e{constructor(t,n){var i,r,o,a,s;if("number"==typeof t?this.value=String.fromCodePoint(t):"string"==typeof t?this.value=t:sp(t)?this.children=t.filter((e=>null!==e)):t&&t instanceof e&&(this.children=[t]),this.children)for(const e of this.children)e.parent=this;this.type=null!=(i=null==n?void 0:n.type)?i:"ignore",this.isSelected=!0===(null==n?void 0:n.isSelected),(null==n?void 0:n.caret)&&(this.caret=n.caret),this.classes=null!=(r=null==n?void 0:n.classes)?r:"",this.isTight=null!=(o=null==n?void 0:n.isTight)&&o,(null==n?void 0:n.attributes)&&(this.attributes=n.attributes);let l=null==n?void 0:n.fontFamily;(null==n?void 0:n.style)&&this.value&&(l=null!=(s=Wb.getFont(null!=(a=n.mode)?a:"math",this,rp(ip({variant:"normal"},n.style),{letterShapeStyle:n.letterShapeStyle})))?s:void 0),l||(l="Main-Regular"),this._height=0,this._depth=0,this._width=0,this.hasExplicitWidth=!1,this.skew=0,this.italic=0,this.maxFontSize=0,this.scale=1,void 0!==(null==n?void 0:n.maxFontSize)&&(this.maxFontSize=n.maxFontSize),function(e,t){var n;if("latex"===e.type)return e.height=.9,e.depth=.2,void(e._width=1);if(e.value){e.height=-1/0,e.depth=-1/0,e._width=0,e.skew=-1/0,e.italic=-1/0;for(let n=0;n0){let t=-1/0,i=-1/0,r=0;for(const o of e.children)o.height>t&&(t=o.height),o.depth>i&&(i=o.depth),r=Math.max(r,null!=(n=o.maxFontSize)?n:0);e.height=t,e.depth=i,e._width=e.children.reduce(((e,t)=>e+t.width),0),e.maxFontSize=r}}(this,l)}set atomID(e){void 0!==e&&0!==e.length&&(this.id=e)}selected(e){if(this.isSelected!==e&&(this.isSelected=e,this.children))for(const t of this.children)t.selected(e)}setStyle(e,t,n){if(void 0===t)return;const i=tw(t,n);i.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[e]=i)}setTop(e){Number.isFinite(e)&&Math.abs(e)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=tw(e,"em"),this.height-=e,this.depth+=e)}get left(){var e;return(null==(e=this.cssProperties)?void 0:e["margin-left"])?Number.parseFloat(this.cssProperties["margin-left"]):0}set left(e){Number.isFinite(e)&&(0===e?this.cssProperties&&delete this.cssProperties["margin-left"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-left"]=tw(e,"em")))}set right(e){Number.isFinite(e)&&(0===e?this.cssProperties&&delete this.cssProperties["margin-right"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-right"]=tw(e,"em")))}set bottom(e){Number.isFinite(e)&&(0===e?this.cssProperties&&delete this.cssProperties["margin-bottom"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-bottom"]=tw(e,"em")))}get width(){return this._width*this.scale}set width(e){this._width=e,this.hasExplicitWidth=!0}set softWidth(e){}get height(){return this._height*this.scale}set height(e){this._height=e}get depth(){return this._depth*this.scale}set depth(e){this._depth=e}wrap(e){const t=e.parent;if(!t)return this;e.isPhantom&&this.setStyle("opacity",0);const n=e.color;n&&n!==t.color&&this.setStyle("color",n);let i=e.backgroundColor;this.isSelected&&(i=_p(i)),i&&i!==t.backgroundColor&&(this.setStyle("background-color",i),this.setStyle("display","inline-block"));const r=e.scalingFactor;return this.scale=r,this.skew*=r,this.italic*=r,this}toMarkup(){var e,t,n,i;let r=null!=(e=this.value)?e:"";if(this.children)for(const e of this.children)r+=e.toMarkup();let o="";if(this.svgBody)o=function(e){if(Nb[e]){const[t,n,i]=Nb[e],r=``;return`${r}`}const[t,n,i,r]=Db[e];let o,a;const s=i/1e3;3===t.length?(o=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],a=["xMinYMin","xMidYMin","xMaxYMin"]):2===t.length?(o=["slice-1-of-2","slice-2-of-2"],a=["xMinYMin","xMaxYMin"]):(o=["slice-1-of-1"],a=[r]);const l=t.map(((e,t)=>``)).join("");return`${l}`}(this.svgBody);else if(this.svgOverlay){o='',o+=r,o+="",o+='${this.svgOverlay}`}let a="";const s=this.classes.split(" ");s.push(null!=(n={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])?n:""),"latex"===this.caret&&s.push("ML__latex-caret"),this.isSelected&&s.push("ML__selected");const l=1===s.length?s[0]:s.filter(((e,t,n)=>e.length>0&&n.indexOf(e)===t)).join(" ");if(l.length>0&&(a+=` class="${l}"`),this.id&&(a+=` data-atom-id=${this.id}`),this.cssId&&(a+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(a+=" "+Object.keys(this.attributes).map((e=>`${e}="${this.attributes[e]}"`)).join(" ")),this.htmlData){const e=this.htmlData.split(",");for(const t of e){const e=t.match(/([^=]+)=(.+$)/);if(e){const t=e[1].trim().replace(/ /g,"-");t&&(a+=` data-${t}="${e[2]}" `)}else{const e=t.trim().replace(/ /g,"-");e&&(a+=` data-${e} `)}}}const c=null!=(i=this.cssProperties)?i:{};this.hasExplicitWidth&&void 0===c.width&&(c.width=Math.ceil(100*this._width)/100+"em");const u=Object.keys(c).map((e=>`${e}:${c[e]}`));if(void 0!==this.scale&&1!==this.scale&&(r.length>0||o.length>0)&&u.push(`font-size: ${Math.ceil(1e4*this.scale)/100}%`),this.htmlStyle){const e=this.htmlStyle.split(";");let t="";for(const n of e){const e=n.match(/([^=]+):(.+$)/);if(e){const n=e[1].trim().replace(/ /g,"-");n&&(t+=`${n}:${e[2]};`)}}t&&(a+=` style="${t}"`)}u.length>0&&(a+=` style="${u.join(";")}"`);let h="";return h=a.length>0||o.length>0?`${r}${o}`:r,"text"===this.caret?h+='':"math"===this.caret&&(h+=''),h}tryCoalesceWith(e){if(this.svgBody||!this.value)return!1;if(e.svgBody||!e.value)return!1;const t=this.children&&this.children.length>0,n=e.children&&e.children.length>0;if(t||n)return!1;if(e.cssProperties||this.cssProperties)for(const t of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"]){if(e.cssProperties&&t in e.cssProperties)return!1;if(this.cssProperties&&t in this.cssProperties)return!1}const i=this.cssProperties?Object.keys(this.cssProperties).length:0;if(i!==(e.cssProperties?Object.keys(e.cssProperties).length:0))return!1;if(i>0)for(const t of Object.keys(this.cssProperties))if(this.cssProperties[t]!==e.cssProperties[t])return!1;const r=this.classes.trim().replace(/\s+/g," ").split(" "),o=e.classes.trim().replace(/\s+/g," ").split(" ");if(r.length!==o.length)return!1;r.sort(),o.sort();for(const[e,t]of r.entries()){if("vertical-separator"===t)return!1;if(t!==o[e])return!1}return this.value+=e.value,this.height=Math.max(this.height,e.height),this.depth=Math.max(this.depth,e.depth),this._width=this._width+e._width,this.maxFontSize=Math.max(this.maxFontSize,e.maxFontSize),this.italic=e.italic,!0}};function iw(e){if(!e||0===e.length)return[];e[0].children=iw(e[0].children);const t=[e[0]];for(let n=1;n{e.softWidth=u}));const h=new nw(a,{classes:"vlist"});if(h.softWidth=u,h.height=l,h.setStyle("height",l,"em"),s>=0)return[[new nw(h,{classes:"vlist-r"})],l,-s];const d=new nw(new nw(null),{classes:"vlist"});d.height=-s,d.setStyle("height",-s,"em");const p=new nw(8203,{classes:"vlist-s",maxFontSize:0});return p.softWidth=0,p.height=0,p.depth=0,[[new nw([h,p],{classes:"vlist-r"}),new nw(d,{classes:"vlist-r"})],l,-s]}var lw=class extends nw{constructor(e,t){var n;const[i,r,o]=sw(e);super(1===i.length?i[0]:i,{type:null==t?void 0:t.type,classes:(null!=(n=null==t?void 0:t.classes)?n:"")+" vlist-t"+(2===i.length?" vlist-t2":"")}),this.height=r,this.depth=o,this.softWidth=i.reduce(((e,t)=>Math.max(e,t.width)),0)}};var cw=class{constructor(e,t,n){this.id=e,this.sizeDelta=t,this.cramped=n;const i={"-4":2,"-3":1,0:0}[t];this.metrics=Object.keys(Mb).reduce(((e,t)=>rp(ip({},e),{[t]:Mb[t][i]})),{})}getFontSize(e){return Math.max(1,e+this.sizeDelta)}get sup(){return hw[[0,1,0,1,2,3,2,3][this.id]]}get sub(){return hw[[0,0,0,0,2,2,2,2][this.id]]}get fracNum(){return hw[[0,1,0,1,2,3,4,5][this.id]]}get fracDen(){return hw[[0,0,0,0,2,2,4,4][this.id]]}get cramp(){return hw[[0,0,2,2,4,4,6,6][this.id]]}get isTight(){return this.sizeDelta<0}},uw={7:new cw(7,0,!1),6:new cw(6,0,!0),5:new cw(5,0,!1),4:new cw(4,0,!0),3:new cw(3,-3,!1),2:new cw(2,-3,!0),1:new cw(1,-4,!1),0:new cw(0,-4,!0)},hw=rp(ip({},uw),{displaystyle:uw[7],textstyle:uw[5],scriptstyle:uw[3],scriptscriptstyle:uw[1]});function dw(e,t){var n;if(!e)return 0;const i={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:Cb,bp:1.00375,dd:1238/1157,pc:12,in:72.27,mu:10/18}[null!=(n=e.unit)?n:"pt"];if(Number.isFinite(t)){const n=10**t;return Math.round(e.dimension/Cb*i*n)/n}return e.dimension*i}function pw(e,t){if(null===e)return 0;const n=dw(e)/Cb;if(Number.isFinite(t)){const e=10**t;return Math.round(n*e)/e}return n}function fw(e){var t;return`${e.dimension}${null!=(t=e.unit)?t:"pt"}`}function gw(e){var t,n;if(null==e)return null;let i="";if("dimension"in e&&(i=`${e.dimension}${null!=(t=e.unit)?t:"pt"}`),"glue"in e&&(i=function(e){let t=fw(e.glue);return e.grow&&0!==e.grow.dimension&&(t+=` plus ${fw(e.grow)}`),e.shrink&&0!==e.shrink.dimension&&(t+=` minus ${fw(e.shrink)}`),t}(e)),"number"in e)if("base"in e&&"decimal"!==e.base)if("alpha"===e.base)i=`\`${String.fromCodePoint(e.number)}`;else{const t=Math.round(e.number)>>>0;"hexadecimal"===e.base?(i=Number(t).toString(16).toUpperCase(),i=t<=255?i.padStart(2,"0"):t<=65535?i.padStart(4,"0"):t<=16777215?i.padStart(6,"0"):i.padStart(8,"0"),i=`"${i}`):"octal"===e.base&&(i=Number(t).toString(8),i=t<=63?i.padStart(2,"0"):t<=30583?i.padStart(4,"0"):i.padStart(8,"0"),i=`'${i}`)}else i=Number(e.number).toString();return"register"in e&&("factor"in e&&(-1===e.factor?i="-":1!==e.factor&&(i=Number(e.factor).toString())),"global"in e&&e.global&&(i+="\\global"),i+=`\\${e.register}`),"string"in e&&(i=e.string),null!=(n=e.relax)&&n&&(i+="\\relax"),i}function mw(e,t){return null==e?null:"number"in e?rp(ip({},e),{number:e.number*t}):"register"in e?"factor"in e&&e.factor?rp(ip({},e),{factor:e.factor*t}):rp(ip({},e),{factor:t}):"dimension"in e?rp(ip({},e),{dimension:e.dimension*t}):"glue"in e?e.shrink&&e.grow?{glue:mw(e.glue,t),shrink:mw(e.shrink,t),grow:mw(e.grow,t)}:e.shrink?{glue:mw(e.glue,t),shrink:mw(e.shrink,t)}:e.grow?{glue:mw(e.glue,t),grow:mw(e.grow,t)}:{glue:mw(e.glue,t)}:null}var vw={"p@":{dimension:1},"z@":{dimension:0},maxdimen:{dimension:16383.99999},hfuzz:{dimension:.1},vfuzz:{dimension:.1},overfullrule:{dimension:5},hsize:{dimension:6.5,unit:"in"},vsize:{dimension:8.9,unit:"in"},parindent:{dimension:20},maxdepth:{dimension:4},splitmaxdepth:{register:"maxdimen"},boxmaxdepth:{register:"maxdimen"},delimitershortfall:{dimension:5},nulldelimiterspace:{dimension:1.2,unit:"pt"},scriptspace:{dimension:.5},topskip:{dimension:10},splittopskip:{dimension:10},normalbaselineskip:{dimension:12},normallineskip:{dimension:1},normallineskiplimit:{dimension:0},jot:{dimension:3},doublerulesep:{dimension:2},arrayrulewidth:{dimension:.4},arraycolsep:{dimension:5},fboxsep:{dimension:3},fboxrule:{dimension:.4},"z@skip":{glue:{dimension:0},shrink:{dimension:0},grow:{dimension:0}},hideskip:{glue:{dimension:-1e3},grow:{dimension:1,unit:"fill"}},"@flushglue":{glue:{dimension:0},grow:{dimension:1,unit:"fill"}},parskip:{glue:{dimension:0},grow:{dimension:1}},abovedisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},abovedisplayshortskip:{glue:{dimension:0},grow:{dimension:3}},belowdisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},belowdisplayshortskip:{glue:{dimension:7},grow:{dimension:3},shrink:{dimension:4}},parfillskip:{glue:{dimension:0},grow:{dimension:1,unit:"fil"}},thinmuskip:{glue:{dimension:3,unit:"mu"}},medmuskip:{glue:{dimension:4,unit:"mu"},grow:{dimension:2,unit:"mu"},shrink:{dimension:4,unit:"mu"}},thickmuskip:{glue:{dimension:5,unit:"mu"},grow:{dimension:5,unit:"mu"}},smallskipamount:{glue:{dimension:3},grow:{dimension:1},shrink:{dimension:1}},medskipamount:{glue:{dimension:6},grow:{dimension:2},shrink:{dimension:3}},bigskipamount:{glue:{dimension:12},grow:{dimension:2},shrink:{dimension:4}},pretolerance:100,tolerance:200,hbadness:1e3,vbadness:1e3,linepenalty:10,hyphenpenalty:50,exhyphenpenalty:50,binoppenalty:700,relpenalty:500,clubpenalty:150,widowpenalty:150,displaywidowpenalty:50,brokenpenalty:100,predisplaypenalty:1e4,doublehyphendemerits:1e4,finalhyphendemerits:5e3,adjdemerits:1e4,tracinglostchars:1,uchyph:1,delimiterfactor:901,defaulthyphenchar:"\\-",defaultskewchar:-1,newlinechar:-1,showboxbreadth:5,showboxdepth:3,errorcontextlines:5,interdisplaylinepenalty:100,interfootnotelinepenalty:100,baselineSkip:1.2,arraystretch:1,month:(new Date).getMonth()+1,day:(new Date).getDate(),year:(new Date).getFullYear()};function yw(){return ip({},vw)}function bw(){return{registers:yw(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"▢",letterShapeStyle:dp.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:wp,backgroundColorMap:xp,getMacro:e=>ef(e,Yp())}}var ww=class e{constructor(t,n){var i,r,o,a,s,l,c,u,h,d,p,f,g,m,v;let y;(null==t?void 0:t.parent)?(this.parent=t.parent,y=t.parent,this.registers={}):(y=ip(ip({},bw()),null!=(i=null==t?void 0:t.from)?i:{}),this.registers=y.registers),y.atomIdsSettings&&(this.atomIdsSettings=ip({},y.atomIdsSettings)),this.renderPlaceholder=y.renderPlaceholder,this.isPhantom=null!=(a=null!=(o=null==t?void 0:t.isPhantom)?o:null==(r=this.parent)?void 0:r.isPhantom)&&a,this.letterShapeStyle=y.letterShapeStyle,this.minFontScale=y.minFontScale,(null==n?void 0:n.color)&&"none"!==n.color?this.color=n.color:this.color=null!=(l=null==(s=this.parent)?void 0:s.color)?l:"",(null==n?void 0:n.backgroundColor)&&"none"!==n.backgroundColor?this.backgroundColor=n.backgroundColor:this.backgroundColor=null!=(u=null==(c=this.parent)?void 0:c.backgroundColor)?u:"",(null==n?void 0:n.fontSize)&&"auto"!==n.fontSize&&n.fontSize!==(null==(h=this.parent)?void 0:h.size)?this.size=n.fontSize:this.size=null!=(p=null==(d=this.parent)?void 0:d.size)?p:5;let b=null!=(g=null==(f=this.parent)?void 0:f.mathstyle)?g:hw.displaystyle;if("string"==typeof(null==t?void 0:t.mathstyle)){if(y instanceof e)switch(t.mathstyle){case"cramp":b=b.cramp;break;case"superscript":b=b.sup;break;case"subscript":b=b.sub;break;case"numerator":b=b.fracNum;break;case"denominator":b=b.fracDen}switch(t.mathstyle){case"textstyle":b=hw.textstyle;break;case"displaystyle":b=hw.displaystyle;break;case"scriptstyle":b=hw.scriptstyle;break;case"scriptscriptstyle":b=hw.scriptscriptstyle}}this.mathstyle=b,this.smartFence=y.smartFence,this.placeholderSymbol=y.placeholderSymbol,this.colorMap=null!=(m=y.colorMap)?m:e=>e,this.backgroundColorMap=null!=(v=y.backgroundColorMap)?v:e=>e,this.getMacro=y.getMacro,console.assert(void 0!==this.parent||void 0!==this.registers)}makeID(){if(!this.atomIdsSettings)return;if(this.atomIdsSettings.overrideID)return this.atomIdsSettings.overrideID;if("number"!=typeof this.atomIdsSettings.seed)return`${Date.now().toString(36).slice(-2)}${Math.floor(1e5*Math.random()).toString(36)}`;const e=this.atomIdsSettings.seed.toString(36);return this.atomIdsSettings.seed+=1,e}scale(e){return e*this.effectiveFontSize}get scalingFactor(){return this.parent?this.effectiveFontSize/this.parent.effectiveFontSize:1}get isDisplayStyle(){return 7===this.mathstyle.id||6===this.mathstyle.id}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(Lb[Math.max(1,this.size+this.mathstyle.sizeDelta)],this.minFontScale)}getRegister(e){var t;return(null==(t=this.registers)?void 0:t[e])?this.registers[e]:this.parent?this.parent.getRegister(e):void 0}getRegisterAsNumber(e){const t=this.getRegister(e);return"number"==typeof t?t:"string"==typeof t?Number(t):void 0}getRegisterAsGlue(e){var t;if(null==(t=this.registers)?void 0:t[e]){const t=this.registers[e];return"object"==typeof t&&"glue"in t?t:"object"==typeof t&&"dimension"in t?{glue:{dimension:t.dimension}}:"number"==typeof t?{glue:{dimension:t}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(e)}getRegisterAsEm(e,t){return pw(this.getRegisterAsDimension(e),t)}getRegisterAsDimension(e){var t;if(null==(t=this.registers)?void 0:t[e]){const t=this.registers[e];return"object"==typeof t&&"glue"in t?t.glue:"object"==typeof t&&"dimension"in t?t:"number"==typeof t?{dimension:t}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(e)}setRegister(e,t){void 0!==t?this.registers[e]=t:delete this.registers[e]}evaluate(e){if(!e||!("register"in e))return e;let t=this;if("global"in e&&e.global)for(;t.parent;)t=t.parent;let n=1;"factor"in e&&1!==e.factor&&void 0!==e.factor&&(n=e.factor);const i=t.getRegister(e.register);if(void 0===i)return;if("string"==typeof i)return{string:Number(i).toString()+i};if("number"==typeof i)return{number:n*i};const r=t.evaluate(i);return void 0!==r?"string"in r?{string:Number(i).toString()+r.string}:"number"in r?{number:n*r.number}:"dimension"in r?rp(ip({},r),{dimension:n*r.dimension}):"glue"in r?rp(ip({},r),{glue:rp(ip({},r.glue),{dimension:n*r.glue.dimension}),shrink:r.shrink?rp(ip({},r.shrink),{dimension:n*r.shrink.dimension}):void 0,grow:r.grow?rp(ip({},r.grow),{dimension:n*r.grow.dimension}):void 0}):e:void 0}toDimension(e){const t=this.evaluate(e);return void 0===t?null:"dimension"in t?t:"glue"in t?t.glue:"number"in t?{dimension:t.number}:null}toEm(e,t){if(null===e)return 0;const n=this.toDimension(e);return null===n?0:dw(n,t)/Cb}toNumber(e){if(null===e)return null;const t=this.evaluate(e);return void 0===t?null:"number"in t?t.number:"dimension"in t?t.dimension:"glue"in t?t.glue.dimension:"string"in t?Number(t.string):null}toColor(e){var t,n;if(null===e)return null;const i=this.evaluate(e);return void 0===i?null:"string"in i?null!=(n=null==(t=this.colorMap)?void 0:t.call(this,i.string))?n:i.string:null}toBackgroundColor(e){var t,n;if(null===e)return null;const i=this.evaluate(e);return void 0===i?null:"string"in i?null!=(n=null==(t=this.backgroundColorMap)?void 0:t.call(this,i.string))?n:i.string:null}},xw=["body","above","below","superscript","subscript"];function Sw(e){return"string"==typeof e&&xw.includes(e)}function kw(e){return void 0!==e&&Array.isArray(e)&&2===e.length}var _w=class e{constructor(e){var t,n,i,r,o,a;this.type=e.type,"string"==typeof e.value&&(this.value=e.value),this.command=null!=(n=null!=(t=e.command)?t:this.value)?n:"",this.mode=null!=(i=e.mode)?i:"math",e.isFunction&&(this.isFunction=!0),e.limits&&(this.subsupPlacement=e.limits),this.style=ip({},e.style),this.displayContainsHighlight=null!=(r=e.displayContainsHighlight)&&r,this.captureSelection=null!=(o=e.captureSelection)&&o,this.skipBoundary=null!=(a=e.skipBoundary)&&a,void 0!==e.verbatimLatex&&null!==e.verbatimLatex&&(this.verbatimLatex=e.verbatimLatex),e.args&&(this.args=e.args),e.body&&(this.body=e.body),this._changeCounter=0}static createBox(e,t,n){var i;if(!t)return null;const r=function(e){let t;const n=[];let i=[];for(const r of e)if(t||r.style){const e=r.computedStyle;t&&e.color===t.color&&e.backgroundColor===t.backgroundColor&&e.fontSize===t.fontSize?i.push(r):(i.length>0&&n.push(i),i=[r],t=e)}else i.push(r);i.length>0&&n.push(i);return n}(t),o=[];for(const t of r){const n=t[0].style,i=Cw(e,t,{style:{color:n.color,backgroundColor:n.backgroundColor,fontSize:n.fontSize}});i&&o.push(i)}if(0===o.length)return null;const a=(null!=(i=null==n?void 0:n.classes)?i:"").trim();return 1!==o.length||a||(null==n?void 0:n.type)?new nw(o,{classes:a,type:null==n?void 0:n.type}).wrap(e):o[0].wrap(e)}static serialize(e,t){return Wb.serialize(e,t)}static commonAncestor(e,t){if(e===t)return e.parent;if(e.parent===t.parent)return e.parent;const n=new WeakSet;let{parent:i}=e;for(;i;)n.add(i),i=i.parent;for(i=t.parent;i;){if(n.has(i))return i;i=i.parent}console.assert(Boolean(i))}static fromJson(t){return new e("string"==typeof t?{type:"mord",value:t,mode:"math"}:t)}get latexMode(){return"math"===this.mode?"math":"text"}toJson(){const e={};if(this.type&&(e.type=this.type),"math"!==this.mode&&(e.mode=this.mode),this.command&&this.command!==this.value&&(e.command=this.command),void 0!==this.value&&(e.value=this.value),this.style&&Object.keys(this.style).length>0&&(e.style=ip({},this.style)),void 0!==this.verbatimLatex&&(e.verbatimLatex=this.verbatimLatex),this.subsupPlacement&&(e.subsupPlacement=this.subsupPlacement),this.explicitSubsupPlacement&&(e.explicitSubsupPlacement=!0),this.isFunction&&(e.isFunction=!0),this.displayContainsHighlight&&(e.displayContainsHighlight=!0),this.isExtensibleSymbol&&(e.isExtensibleSymbol=!0),this.skipBoundary&&(e.skipBoundary=!0),this.captureSelection&&(e.captureSelection=!0),this.args&&(e.args=this.args.map((e=>null===e?"":Array.isArray(e)&&e[0]instanceof _w?{atoms:e.map((e=>e.toJson()))}:"object"==typeof e&&"group"in e?{group:e.group.map((e=>e.toJson()))}:e))),this._branches)for(const t of Object.keys(this._branches))this._branches[t]&&(e[t]=this._branches[t].filter((e=>"first"!==e.type)).map((e=>e.toJson())));return"mord"===e.type&&2===Object.keys(e).length&&"value"in e?e.value:e}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(e){if(e){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:e}=this;for(;e;)e.parent||e._changeCounter++,"verbatimLatex"in e&&(e.verbatimLatex=void 0),e._children=void 0,e=e.parent}}_serialize(e){if(!(e.expandMacro||e.skipStyles||e.skipPlaceholders)&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const t=Jp(this.command,this.mode);return(null==t?void 0:t.serialize)?t.serialize(this,e):this.body&&this.command?Kb([Gb(this.command,this.bodyToLatex(e)),this.supsubToLatex(e)]):this.body?Kb([this.bodyToLatex(e),this.supsubToLatex(e)]):this.value&&"​"!==this.value?this.command:""}bodyToLatex(e){var t;return Wb.serialize(this.body,rp(ip({},e),{defaultMode:null!=(t=e.defaultMode)?t:this.latexMode}))}aboveToLatex(e){return Wb.serialize(this.above,e)}belowToLatex(e){return Wb.serialize(this.below,e)}supsubToLatex(e){let t="";if(e=rp(ip({},e),{defaultMode:"math"}),void 0!==this.branch("subscript")){const n=Wb.serialize(this.subscript,e);0===n.length?t+="_{}":1===n.length&&/^[0-9]$/.test(n)?t+=`_${n}`:t+=`_{${n}}`}if(void 0!==this.branch("superscript")){const n=Wb.serialize(this.superscript,e);0===n.length?t+="^{}":1===n.length?"′"===n?t+="^\\prime ":"″"===n?t+="^\\doubleprime ":/^[0-9]$/.test(n)?t+=`^${n}`:t+=`^{${n}}`:t+=`^{${n}}`}return t}get treeDepth(){let e=1,t=this.parent;for(;t;)t=t.parent,e+=1;return e}get inCaptureSelection(){let e=this;for(;e;){if(e.captureSelection)return!0;e=e.parent}return!1}get parentPrompt(){let e=this.parent;for(;e;){if("prompt"===e.type&&!e.captureSelection)return e;e=e.parent}return null}branch(e){if(Sw(e)&&this._branches)return this._branches[e]}get branches(){if(!this._branches)return[];const e=[];for(const t of xw)this._branches[t]&&e.push(t);return e}createBranch(e){return console.assert(Sw(e)),Sw(e)?(this._branches?this._branches[e]||(this._branches[e]=[this.makeFirstAtom(e)]):this._branches={[e]:[this.makeFirstAtom(e)]},this.isDirty=!0,this._branches[e]):[]}get row(){return kw(this.parentBranch)?this.parentBranch[0]:-1}get col(){return kw(this.parentBranch)?this.parentBranch[1]:-1}get body(){var e;return null==(e=this._branches)?void 0:e.body}set body(e){this.setChildren(e,"body")}get superscript(){var e;return null==(e=this._branches)?void 0:e.superscript}set superscript(e){this.setChildren(e,"superscript")}get subscript(){var e;return null==(e=this._branches)?void 0:e.subscript}set subscript(e){this.setChildren(e,"subscript")}get above(){var e;return null==(e=this._branches)?void 0:e.above}set above(e){this.setChildren(e,"above")}get below(){var e;return null==(e=this._branches)?void 0:e.below}set below(e){this.setChildren(e,"below")}get computedStyle(){var e,t;const n="string"==typeof this.style.verbatimColor,i="string"==typeof this.style.verbatimBackgroundColor,r=ip(ip({},null!=(t=null==(e=this.parent)?void 0:e.computedStyle)?t:{}),this.style);return delete r.variant,delete r.variantStyle,i||delete r.verbatimBackgroundColor,n||delete r.verbatimColor,r}applyStyle(e){this.isDirty=!0,this.style=ip(ip({},this.style),e),"none"===this.style.fontFamily&&delete this.style.fontFamily,"auto"===this.style.fontShape&&delete this.style.fontShape,"auto"===this.style.fontSeries&&delete this.style.fontSeries,"none"===this.style.color&&(delete this.style.color,delete this.style.verbatimColor),"none"===this.style.backgroundColor&&(delete this.style.backgroundColor,delete this.style.verbatimBackgroundColor),"auto"===this.style.fontSize&&delete this.style.fontSize;for(const t of this.children)t.applyStyle(e)}getInitialBaseElement(){var e,t,n;return this.hasEmptyBranch("body")?this:(console.assert("first"===(null==(e=this.body)?void 0:e[0].type)),null!=(n=null==(t=this.body[1])?void 0:t.getInitialBaseElement())?n:this)}getFinalBaseElement(){return this.hasEmptyBranch("body")?this:this.body[this.body.length-1].getFinalBaseElement()}isCharacterBox(){return"leftright"!==this.type&&"genfrac"!==this.type&&"subsup"!==this.type&&"delim"!==this.type&&"array"!==this.type&&"surd"!==this.type&&"mord"===this.getFinalBaseElement().type}hasEmptyBranch(e){const t=this.branch(e);return!t||(console.assert(t.length>0),console.assert("first"===t[0].type),1===t.length)}setChildren(e,t){var n;if(!e)return;if(console.assert(Sw(t)),!Sw(t))return;console.assert("first"!==(null==(n=e[0])?void 0:n.type));const i=[this.makeFirstAtom(t),...e];this._branches?this._branches[t]=i:this._branches={[t]:i};for(const n of e)n.parent=this,n.parentBranch=t;this.isDirty=!0}makeFirstAtom(t){const n=new e({type:"first",mode:this.mode});return n.parent=this,n.parentBranch=t,n}addChild(e,t){console.assert("first"!==e.type),this.createBranch(t).push(e),this.isDirty=!0,e.parent=this,e.parentBranch=t}addChildBefore(e,t){console.assert(void 0!==t.parentBranch);const n=this.createBranch(t.parentBranch);n.splice(n.indexOf(t),0,e),this.isDirty=!0,e.parent=this,e.parentBranch=t.parentBranch}addChildAfter(e,t){console.assert(void 0!==t.parentBranch);const n=this.createBranch(t.parentBranch);n.splice(n.indexOf(t)+1,0,e),this.isDirty=!0,e.parent=this,e.parentBranch=t.parentBranch}addChildren(e,t){const n=this.createBranch(t);for(const i of e)i.parent=this,i.parentBranch=t,n.push(i);this.isDirty=!0}addChildrenAfter(e,t){console.assert(0===e.length||"first"!==e[0].type),console.assert(void 0!==t.parentBranch);const n=this.createBranch(t.parentBranch);n.splice(n.indexOf(t)+1,0,...e),this.isDirty=!0;for(const n of e)n.parent=this,n.parentBranch=t.parentBranch;return e[e.length-1]}removeBranch(e){const t=this.branch(e);if(Sw(e)&&(this._branches[e]=void 0),!t)return[];for(const e of t)e.parent=void 0,e.parentBranch=void 0;return console.assert("first"===t[0].type),t.shift(),this.isDirty=!0,t}removeChild(e){if(console.assert(e.parent===this),"first"===e.type)return;const t=this.branch(e.parentBranch),n=t.indexOf(e);console.assert(n>=0),t.splice(n,1),this.isDirty=!0,e.parent=void 0,e.parentBranch=void 0}get siblings(){return this.parent?this.parent.branch(this.parentBranch):[]}get firstSibling(){return this.siblings[0]}get lastSibling(){const{siblings:e}=this;return e[e.length-1]}get isFirstSibling(){return this===this.firstSibling}get isLastSibling(){return this===this.lastSibling}get hasNoSiblings(){return 1===this.siblings.length}get leftSibling(){console.assert(void 0!==this.parent);const e=this.parent.branch(this.parentBranch);return e[e.indexOf(this)-1]}get rightSibling(){console.assert(void 0!==this.parent);const e=this.parent.branch(this.parentBranch);return e[e.indexOf(this)+1]}get hasChildren(){return Boolean(this._branches&&this.children.length>0)}get firstChild(){return console.assert(this.hasChildren),this.children[0]}get lastChild(){console.assert(this.hasChildren);const{children:e}=this;return e[e.length-1]}get children(){if(this._children)return this._children;if(!this._branches)return[];const e=[];for(const t of xw)if(this._branches[t])for(const n of this._branches[t])e.push(...n.children),e.push(n);return this._children=e,e}render(e){if("first"===this.type&&!e.atomIdsSettings)return null;const t=Jp(this.command,this.mode);if(null==t?void 0:t.render)return t.render(this,e);const n=new ww({parent:e},this.style);let i=this.createBox(n,{classes:this.parent?"":"ML__base"});return i?(this.subsupPlacement||!this.superscript&&!this.subscript||(i=this.attachSupsub(n,{base:i})),i.wrap(n)):null}attachSupsub(t,n){var i;const r=n.base,o=this.superscript,a=this.subscript;if(!o&&!a)return r;let s=null,l=null;const c=null!=(i=n.isCharacterBox)?i:this.isCharacterBox();let u=0;if(o){const n=new ww({parent:t,mathstyle:"superscript"});s=e.createBox(n,o),c||(u=r.height-t.metrics.supDrop*n.scalingFactor)}let h,d=0;if(a){const n=new ww({parent:t,mathstyle:"subscript"});l=e.createBox(n,a),c||(d=r.depth+t.metrics.subDrop*n.scalingFactor)}h=t.isDisplayStyle?t.metrics.sup1:t.isCramped?t.metrics.sup3:t.metrics.sup2;const p=.05/t.scalingFactor;let f=null;if(l&&s){u=Math.max(u,h,s.depth+.25*t.metrics.xHeight),d=Math.max(d,t.metrics.sub2);const e=t.metrics.defaultRuleThickness;if(u-s.depth-(l.height-d)<4*e){d=4*e-(u-s.depth)+l.height;const n=.8*t.metrics.xHeight-(u-s.depth);n>0&&(u+=n,d-=n)}const n=this.isExtensibleSymbol&&r.italic?-r.italic:0;f=new lw({individualShift:[{box:l,shift:d,marginLeft:n},{box:s,shift:-u}]}).wrap(t)}else l&&!s?(d=Math.max(d,t.metrics.sub1,l.height-.3448),f=new lw({shift:d,children:[{box:l,marginRight:p,marginLeft:this.isCharacterBox()?-r.italic:0}]})):!l&&s&&(u=Math.max(u,h,s.depth+.10775),f=new lw({shift:-u,children:[{box:s,marginRight:p}]}));return new nw([r,new nw(f,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:n.type})}attachLimits(t,n){const i=this.superscript?e.createBox(new ww({parent:t,mathstyle:"superscript"},this.style),this.superscript):null,r=this.subscript?e.createBox(new ww({parent:t,mathstyle:"subscript"},this.style),this.subscript):null;return i||r?function(e,t){var n,i,r,o,a;const s=e.metrics,l=new nw(t.base),c=null!=(n=t.baseShift)?n:0,u=null!=(i=t.slant)?i:0;let h=0,d=0;t.above&&(h=null!=(r=t.aboveShift)?r:Math.max(s.bigOpSpacing1,s.bigOpSpacing3-t.above.depth)),t.below&&(d=null!=(o=t.belowShift)?o:Math.max(s.bigOpSpacing2,s.bigOpSpacing4-t.below.height));let p=null;if(t.below&&t.above){const n=s.bigOpSpacing5+t.below.height+t.below.depth+d+l.depth+c;p=new lw({bottom:n,children:[s.bigOpSpacing5,{box:t.below,marginLeft:-u,classes:["ML__center"]},d,{box:l,classes:["ML__center"]},h,{box:t.above,marginLeft:u,classes:["ML__center"]},s.bigOpSpacing5]}).wrap(e)}else if(t.below&&!t.above)p=new lw({top:l.height-c,children:[s.bigOpSpacing5,{box:t.below,marginLeft:-u,classes:["ML__center"]},d,{box:l,classes:["ML__center"]}]}).wrap(e);else if(!t.below&&t.above){const n=l.depth+c;p=new lw({bottom:n,children:[{box:l,classes:["ML__center"]},h,{box:t.above,marginLeft:u,classes:["ML__center"]},s.bigOpSpacing5]}).wrap(e)}else{const t=l.depth+c;p=new lw({bottom:t,children:[{box:l},s.bigOpSpacing5]}).wrap(e)}return new nw(p,{type:null!=(a=t.type)?a:"op"})}(t,rp(ip({},n),{above:i,below:r})):n.base.wrap(t)}bind(e,t){if(!t||e.isPhantom||"​"===this.value)return t;let n=this.parent;for(;n&&!n.captureSelection;)n=n.parent;return(null==n?void 0:n.captureSelection)||(this.id||(this.id=e.makeID()),t.atomID=this.id),t}createBox(t,n){var i,r,o,a;const s=null!=(i=this.value)?i:this.body,l=null!=(r=null==n?void 0:n.boxType)?r:Jb(this.type);let c=null!=(o=null==n?void 0:n.classes)?o:"";"text"===this.mode&&(c+=" ML__text");const u="string"==typeof s||void 0===s?new nw(null!=s?s:null,{type:l,isSelected:this.isSelected,mode:this.mode,maxFontSize:t.scalingFactor,style:rp(ip({variant:"normal"},this.style),{fontSize:Math.max(1,t.size+t.mathstyle.sizeDelta)}),letterShapeStyle:t.letterShapeStyle,classes:c}):null!=(a=e.createBox(t,s,{type:l,classes:c}))?a:new nw(null);return t.isTight&&(u.isTight=!0),"math"===this.mode&&"main"!==this.style.variant||(u.italic=0),u.right=u.italic,this.bind(t,u),this.caret&&(this.superscript||this.subscript||(u.caret=this.caret)),u}isDigit(){var e;return"mord"===this.type&&this.value?/^[\d,\.]$/.test(this.value):"group"===this.type&&2===(null==(e=this.body)?void 0:e.length)&&("first"===this.body[0].type&&","===this.body[1].value)}asDigit(){var e;return"mord"===this.type&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:"group"===this.type&&2===(null==(e=this.body)?void 0:e.length)&&"first"===this.body[0].type&&","===this.body[1].value?".":""}};function Cw(e,t,n){var i,r,o,a,s;if(!t||0===t.length)return null;const l=new ww({parent:e},n.style),c=!(null==(i=l.atomIdsSettings)?void 0:i.groupNumbers);let u=[];if(1===t.length){const e=t[0],n=e.render(l);n&&(c&&e.isSelected&&n.selected(!0),u=[n])}else{let e="",n=!0;for(const i of t){(null==(r=l.atomIdsSettings)?void 0:r.groupNumbers)&&e&&(n&&i.isDigit()||!n&&Pw(i))&&(l.atomIdsSettings.overrideID=e);const t=i.render(l);l.atomIdsSettings&&(l.atomIdsSettings.overrideID=void 0),t&&((null==(o=l.atomIdsSettings)?void 0:o.groupNumbers)&&((i.isDigit()||Pw(i))&&(e&&n===i.isDigit()||(n=i.isDigit(),e=null!=(a=i.id)?a:"")),!e||(i.isDigit()||Pw(i))&&i.hasEmptyBranch("superscript")&&i.hasEmptyBranch("subscript")||(e="")),c&&i.isSelected&&t.selected(!0),u.push(t))}}if(0===u.length)return null;const h=new nw(u,rp(ip({isTight:l.isTight},n),{type:null!=(s=n.type)?s:"lift"}));return h.isSelected=u.every((e=>e.isSelected)),h.wrap(l)}function Pw(e){return"text"===e.mode}var Ew=class e extends _w{constructor(e,t,n){super({type:"text",command:e,mode:"text",displayContainsHighlight:!0}),this.value=t,this.verbatimLatex=t,this.applyStyle(n)}static fromJson(t){return new e(t.command,t.value,t.style)}render(e){const t=this.createBox(e);return this.caret&&(t.caret=this.caret),t}_serialize(e){var t;return null!=(t=this.verbatimLatex)?t:tf("text",this.value.codePointAt(0))}};function Mw(e,t){return e[0]===t[0]&&e[1]===t[1]?"equal":"different"}function Lw(e){let t=1/0,n=-1/0;for(const i of e.ranges)t=Math.min(t,i[0],i[1]),n=Math.max(n,i[0],i[1]);return[t,n]}function Aw(e){return"number"==typeof e&&!Number.isNaN(e)}function Tw(e){return Array.isArray(e)&&2===e.length}function Dw(e){return null!=e&&"object"==typeof e&&"ranges"in e&&Array.isArray(e.ranges)}function Nw(e,t,n){return n?function(e,t){if(!t)return"";if("string"==typeof t)return t;if(!e||void 0===t.after)return t.value;let n=!1,i=!1,r=!1,o=!1,a=!1,s=!1,l=!1,c=!1,u=!1,h=!1,d=!1,p=!1,f=!1,g=!1,m=!1,v=e[0],y=0;for(;(null==v?void 0:v.type)&&/^(subsup|placeholder)$/.test(v.type);)y+=1,v=e[y];return n=!v||"first"===v.type,v&&(g="text"===v.mode,i=!g&&"mord"===v.type&&Tp.test(v.value),r=!g&&"mord"===v.type&&/\d+$/.test(v.value),o=!g&&v.isFunction,a="genfrac"===v.type,s="surd"===v.type,l="mbin"===v.type,c="mrel"===v.type,u="mop"===v.type||"operator"===v.type||"extensible-symbol"===v.type,h="mpunct"===v.type||"minner"===v.type,d="array"===v.type,p="mopen"===v.type,f="mclose"===v.type||"leftright"===v.type,m="space"===v.type),t.after.includes("nothing")&&n||t.after.includes("letter")&&i||t.after.includes("digit")&&r||t.after.includes("function")&&o||t.after.includes("frac")&&a||t.after.includes("surd")&&s||t.after.includes("binop")&&l||t.after.includes("relop")&&c||t.after.includes("operator")&&u||t.after.includes("punct")&&h||t.after.includes("array")&&d||t.after.includes("openfence")&&p||t.after.includes("closefence")&&f||t.after.includes("text")&&g||t.after.includes("space")&&m?t.value:""}(e,n[t]):""}var Iw={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\doubleprime}","'''":"^{\\prime\\prime\\prime}","''''":"^{\\prime\\prime\\prime\\prime}",alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:"\\pi",Pi:"\\Pi",theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:"\\nabla",grad:"\\nabla",del:"\\partial",deg:{after:"digit+space",value:"\\degree"},infty:"\\infty","∞":"\\infty",oo:{after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"∑":"\\sum",sum:"\\sum_{#?}^{#?}",int:"\\int_{#?}^{#?}",prod:"\\prod_{#?}^{#?}",sqrt:"\\sqrt{#?}","∆":"\\differentialD","∂":"\\differentialD",arcsin:"\\arcsin",arccos:"\\arccos",arctan:"\\arctan",arcsec:"\\arcsec",arccsc:"\\arccsc",arsinh:"\\arsinh",arcosh:"\\arcosh",artanh:"\\artanh",arcsech:"\\arcsech",arccsch:"\\arccsch",arg:"\\arg",ch:"\\ch",cosec:"\\cosec",cosh:"\\cosh",cot:"\\cot",cotg:"\\cotg",coth:"\\coth",csc:"\\csc",ctg:"\\ctg",cth:"\\cth",sec:"\\sec",sinh:"\\sinh",sh:"\\sh",tanh:"\\tanh",tg:"\\tg",th:"\\th",sin:"\\sin",cos:"\\cos",tan:"\\tan",lg:"\\lg",lb:"\\lb",log:"\\log",ln:"\\ln",exp:"\\exp",lim:"\\lim_{#?}",dx:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:"\\forall",EE:"\\exists","!EE":"\\nexists","&&":"\\land",xin:{after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},sint:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\sin t"},in:{after:"nothing+letter+closefence",value:"\\in"},"!in":"\\notin",NN:"\\mathbb{N}",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",xx:"\\times","+-":"\\pm","≠":"\\ne","!=":"\\ne","≥":"\\ge",">=":"\\ge","≤":"\\le","<=":"\\le","<<":"\\ll",">>":"\\gg","~~":"\\approx","≈":"\\approx","?=":"\\questeq","÷":"\\div","¬":"\\neg",":=":"\\coloneq","::":"\\Colon","(:":"\\langle",":)":"\\rangle",beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},nu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},"µ":"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega","Ω":"\\omega",forall:"\\forall",exists:"\\exists","!exists":"\\nexists",":.":"\\therefore",liminf:"\\liminf_{#?}",limsup:"\\limsup_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:"\\bmod{#?}","(mod":"\\pmod{#?}",max:"\\max",min:"\\min",erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:"\\operatorname{bessel}",mean:"\\operatorname{mean}",median:"\\operatorname{median}",fft:"\\operatorname{fft}",lcm:"\\operatorname{lcm}",gcd:"\\operatorname{gcd}",randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:"\\operatorname{Re}",Im:"\\operatorname{Im}",mm:{after:"nothing+digit+operator",value:"\\operatorname{mm}"},cm:{after:"nothing+digit+operator",value:"\\operatorname{cm}"},km:{after:"nothing+digit+operator",value:"\\operatorname{km}"},kg:{after:"nothing+digit+operator",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","--\x3e...":"\\longrightarrow\\cdots","->":"\\to","|->":"\\mapsto","--\x3e":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","*":"\\cdot","**":"\\star","***":"\\ast","//":"\\slash","\\\\":"\\backslash",setminus:"\\backslash","|><":"\\ltimes","><|":"\\rtimes","|><|":"\\bowtie","-:":"\\div",divide:"\\div","@":"\\circ","^^":"\\wedge","^^^":"\\bigwedge",vv:"\\vee",vvv:"\\bigvee",nn:"\\cap",nnn:"\\bigcap",uu:"\\cup",uuu:"\\bigcup","-=":"\\equiv","~=":"\\cong",lt:"<","lt=":"\\leq",gt:">","gt=":"\\geq","-<":"\\prec","-lt":"\\prec","-<=":"\\preceq",">-=":"\\succeq",prop:"\\propto",diamond:"\\diamond",square:"\\square",iff:"\\iff",sub:"\\subset",sup:"\\supset",sube:"\\subseteq",supe:"\\supseteq",uarr:"\\uparrow",darr:"\\downarrow",rarr:"\\rightarrow",rArr:"\\Rightarrow",larr:"\\leftarrow",lArr:"\\Leftarrow",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",aleph:"\\aleph",and:"\\land",or:"\\lor",not:"\\neg","_|_":"\\bot",TT:"\\top","|--":"\\vdash","|==":"\\models","|__":"\\lfloor","__|":"\\rfloor","|~":"\\lceil","~|":"\\rceil",">->":"\\rightarrowtail","->>":"\\twoheadrightarrow",">->>":"\\twoheadrightarrowtail",frac:"\\frac{#?}{#?}",cbrt:"\\sqrt[3]{#?}",nthroot:"\\sqrt[#?]{#?}"};function Bw(e,t){var n;let i=null!=(n=null==t?void 0:t.format)?n:"auto";return"auto"===i&&([i,e]=function(e){if(e=e.trim(),e.length<=1)return["latex",e];let t;if([t,e]=jw(e),t)return["latex",e];if(e.startsWith("`")&&e.endsWith("`"))return["ascii-math",e=e.substring(1,e.length-1)];if(e.includes("\\"))return["latex",e];if(/\$.+\$/.test(e))return["latex",`\\text{${e}}`];return[void 0,e]}(e)),"ascii-math"===i?["ascii-math",Rw(e=(e=(e=(e=(e=(e=e.replace(/\u2061/gu,"")).replace(/\u3016/gu,"{")).replace(/\u3017/gu,"}")).replace(/([^\\])sinx/g,"$1\\sin x")).replace(/([^\\])cosx/g,"$1\\cos x ")).replace(/\u2013/g,"-"),{inlineShortcuts:null==t?void 0:t.inlineShortcuts})]:["latex",e]}function Rw(e,t){var n,i,r;if(!e)return"";let o,a=!1;const s=null!=(n=t.inlineShortcuts)?n:Iw;if(a||!e.startsWith("^")&&!e.startsWith("_")||(o=Ow(e.slice(1),{inlineShortcuts:s,noWrap:!0}),e=e[0]+"{"+o.match+"}",e+=Rw(o.rest,t),a=!0),!a&&(o=e.match(/^(sqrt|\u221A)(.*)/),o)){o=Ow(o[2],{inlineShortcuts:s,noWrap:!0});e="\\sqrt{"+(null!=(i=o.match)?i:"\\placeholder{}")+"}",e+=Rw(o.rest,t),a=!0}if(!a&&(o=e.match(/^(\\cbrt|\u221B)(.*)/),o)){o=Ow(o[2],{inlineShortcuts:s,noWrap:!0});e="\\sqrt[3]{"+(null!=(r=o.match)?r:"\\placeholder{}")+"}",e+=Rw(o.rest,t),a=!0}if(a||(o=e.match(/^abs(.*)/),o&&(o=Ow(o[1],{inlineShortcuts:s,noWrap:!0}),e="\\left|"+o.match+"\\right|",e+=Rw(o.rest,t),a=!0)),a||(o=e.match(/^["”“](.*?)["”“](.*)/),o&&(e="\\text{"+o[1]+"}",e+=Rw(o[2],t),a=!0)),a||(o=e.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),o&&(e=Fw(o[1],s),e+=Rw(o[2],t),a=!0)),!a&&/^([fgh])[^a-zA-Z]/.test(e)&&(o=Ow(e.slice(1),{inlineShortcuts:s,noWrap:!0}),e="("===e[1]?e[0]+"\\left("+o.match+"\\right)":e[0]+o.match,e+=Rw(o.rest,t),a=!0),a||(o=e.match(/^([a-zA-Z]+)(.*)/),o&&(e=Fw(o[1],s),e+=Rw(o[2],t),a=!0)),!a)if(o=Ow(e,{inlineShortcuts:s,noWrap:!0}),o.match&&"/"===o.rest[0]){const n=Ow(o.rest.slice(1),{inlineShortcuts:s,noWrap:!0});n.match&&(e="\\frac{"+o.match+"}{"+n.match+"}"+Rw(n.rest,t)),a=!0}else o.match&&(e=e.startsWith("(")?"\\left("+o.match+"\\right)"+Rw(o.rest,t):o.match+Rw(o.rest,t),a=!0);return a||(o=e.match(/^(\s+)(.*)$/),o&&(e=" "+Rw(o[2],t),a=!0)),e}function Ow(e,t){let n="",i=e=e.trim(),r=e.charAt(0),o={"(":")","{":"}","[":"]"}[r];if(o){let a=1,s=1;for(;s0;)e[s]===r&&a++,e[s]===o&&a--,s++;0===a?(t.noWrap&&"("===r?n=Rw(e.substring(1,s-1),t):("{"===r&&"}"===o&&(r="\\{",o="\\}"),n="\\left"+r+Rw(e.substring(1,s-1),t)+"\\right"+o),i=e.slice(Math.max(0,s))):(n=e.substring(1,s),i="")}else{let r=e.match(/^([a-zA-Z]+)/);if(r){let n=Nw(null,e,t.inlineShortcuts);if(n)return n=n.replace("_{#?}",""),n=n.replace("^{#?}",""),{match:n,rest:e.slice(n.length)}}if(r=e.match(/^([a-zA-Z])/),r)return{match:r[1],rest:e.slice(1)};if(r=e.match(/^(-)?\d+(\.\d*)?/),r)return{match:r[0],rest:e.slice(r[0].length)};/^\\(left|right)/.test(e)||(r=e.match(/^(\\[a-zA-Z]+)/),r&&(i=e.slice(r[1].length),n=r[1]))}return{match:n,rest:i}}function Fw(e,t){let n=Nw(null,e,t);return n?(n=n.replace("_{#?}",""),n=n.replace("^{#?}",""),n+=" "):n=e,n}var zw=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function jw(e){const t=e.trim();for(const e of zw)if(t.startsWith(e[0])&&t.endsWith(e[1]))return[!0,t.substring(e[0].length,t.length-e[1].length)];return[!1,e]}var $w=(e,t,n)=>(zw.some((e=>t.startsWith(e[0])&&t.endsWith(e[1])))||(t=`$$ ${t} $$`),t),Hw=class e{constructor(t){e._modes[t]=this}static onPaste(t,n,i){var r;if(!n.contentEditable&&"none"===n.userSelect)return n.model.announce("plonk"),!1;if("string"==typeof i){const e=new DataTransfer;e.setData("text/plain",i),i=e}const o=new ClipboardEvent("paste",{clipboardData:i,cancelable:!0});return!!(null==(r=n.host)?void 0:r.dispatchEvent(o))&&e._modes[t].onPaste(n,i)}static copyToClipboard(e,t){if(!e.contentEditable&&"none"===e.userSelect)return void e.model.announce("plonk");const n=e.model,i=n.selectionIsCollapsed?[0,n.lastOffset]:Lw(n.selection),r=n.getValue(i,t);navigator.clipboard.writeText(r).then((()=>{}),(()=>e.model.announce("plonk")))}static onCopy(e,t){var n;if(!t.clipboardData)return;if(!e.contentEditable&&"none"===e.userSelect)return void e.model.announce("plonk");const i=e.model,r=i.selectionIsCollapsed?[0,i.lastOffset]:Lw(i.selection);let o=i.getAtoms(r);if(o.every((e=>"text"===e.mode||!e.mode)))t.clipboardData.setData("text/plain",o.filter((e=>e instanceof Ew)).map((e=>e.value)).join(""));else if(o.every((e=>"latex"===e.mode)))t.clipboardData.setData("text/plain",i.getAtoms(r,{includeChildren:!0}).map((e=>{var t;return null!=(t=e.value)?t:""})).join(""));else{let a;a=1===o.length&&void 0!==o[0].verbatimLatex?o[0].verbatimLatex:i.getValue(r,"latex-expanded"),t.clipboardData.setData("application/x-latex",a);try{t.clipboardData.setData("text/plain",e.options.onExport(e,a,r))}catch(e){}if(1===o.length){const e=o[0];"root"!==e.type&&"group"!==e.type||(o=e.body.filter((e=>"first"!==e.type)))}try{t.clipboardData.setData("application/json+mathlive",JSON.stringify(o.map((e=>e.toJson()))))}catch(e){}if(null==(n=window[Symbol.for("io.cortexjs.compute-engine")])?void 0:n.ComputeEngine){const e=window.MathfieldElement.computeEngine;if(e)try{const n=e.jsonSerializationOptions;e.jsonSerializationOptions={metadata:["latex"]};const o=e.parse(i.getValue(r,"latex-unstyled"));e.jsonSerializationOptions=n;const a=JSON.stringify(o.json);a&&t.clipboardData.setData("application/json",a)}catch(e){}}}t.preventDefault()}static insert(t,n,i={}){var r;const o="auto"===i.mode?t.mode:null!=(r=i.mode)?r:t.mode;return e._modes[o].insert(t,n,i)}onPaste(e,t){return!1}insert(e,t,n){return!1}};Hw._modes={};var Zw=Hw,Kw=[{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendSelectionBackward"},{key:"shift+[ArrowRight]",command:"extendSelectionForward"},{key:"shift+[ArrowUp]",command:"extendSelectionUpward"},{key:"shift+[ArrowDown]",command:"extendSelectionDownward"},{key:"[Backspace]",command:"deleteBackward"},{key:"alt+[Delete]",command:"deleteBackward"},{key:"[Delete]",command:"deleteForward"},{key:"alt+[Backspace]",command:"deleteForward"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"shift+alt+[ArrowLeft]",command:"extendToPreviousWord"},{key:"shift+alt+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"shift+ctrl+[ArrowLeft]",command:"extendToGroupStart"},{key:"shift+ctrl+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Home]",command:"moveToMathfieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathfieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"shift+cmd+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathfieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathfieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"shift+cmd+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",command:"moveToNextGroup"},{key:"shift+[Tab]",command:"moveToPreviousGroup"},{key:"[Escape]",ifMode:"math",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"text",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"latex",command:["complete","complete",{selectItem:"true"}]},{key:"\\",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[IntlBackslash]",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[Tab]",ifMode:"latex",command:["complete","accept-suggestion"]},{key:"[Return]",ifMode:"latex",command:"complete"},{key:"[Enter]",ifMode:"latex",command:"complete"},{key:"shift+[Escape]",ifMode:"latex",command:["complete","reject"]},{key:"[ArrowDown]",ifMode:"latex",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"latex",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deleteBackward"},{key:"[Undo]",command:"undo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"cmd+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"ctrl+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"cmd+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"ctrl+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"cmd+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+y",command:"redo"},{key:"shift+ctrl+z",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+z",command:"redo"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathfieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathfieldEnd"},{key:"shift+ctrl+b",ifPlatform:"macos",command:"extendSelectionBackward"},{key:"shift+ctrl+f",ifPlatform:"macos",command:"extendSelectionForward"},{key:"shift+ctrl+p",ifPlatform:"macos",command:"extendSelectionUpward"},{key:"shift+ctrl+n",ifPlatform:"macos",command:"extendSelectionDownward"},{key:"shift+ctrl+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"shift+ctrl+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"alt+ctrl+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"alt+ctrl+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"shift+alt+ctrl+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"shift+alt+ctrl+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deleteBackward"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteForward"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"alt+p",ifMode:"math",command:["insert","\\pi"]},{key:"alt+v",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"alt+o",ifMode:"math",command:["insert","\\emptyset"]},{key:"alt+d",ifMode:"math",command:["insert","\\differentialD"]},{key:"shift+alt+o",ifMode:"math",command:["insert","\\varnothing"]},{key:"shift+alt+d",ifMode:"math",command:["insert","\\partial"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","\\backslash"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+alt+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleContextMenu"},{key:"alt+shift+[Space]",command:"toggleVirtualKeyboard"},{key:"alt+ctrl+[ArrowUp]",command:["speak","all",{withHighlighting:!1}]},{key:"alt+ctrl+[ArrowDown]",command:["speak","selection",{withHighlighting:!1}]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["switchMode","text","",""]},{key:"shift+alt+[KeyT]",ifMode:"math",command:["switchMode","text","",""]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"text",command:["switchMode","math","",""]},{key:"shift+alt+[KeyT]",ifMode:"text",command:["switchMode","math","",""]},{key:"/",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+shift+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrack #0 \\right\\rbrack"]},{key:"ctrl+[Minus]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"moveToSubscript"},{key:"shift+alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrace #0 \\right\\rbrace"]},{key:"ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"shift+ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"shift+cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Backspace]",ifMode:"math",command:"removeRow"},{key:"cmd+[Backspace]",ifMode:"math",command:"removeRow"},{key:"alt+[Tab]",ifMode:"math",command:"addColumnAfter"},{key:"shift+alt+[Tab]",ifMode:"math",command:"addColumnBefore"},{key:"alt+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Enter]",ifMode:"math",command:"addRowBefore"},{key:"alt+[Return]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Return]",ifMode:"math",command:"addRowBefore"},{key:"shift+[Backspace]",ifMode:"math",command:"removeColumn"},{key:"alt+[Digit5]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","$\\infty"]},{key:"alt+[Digit9]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert",")"]},{key:"alt+|",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","|"]},{key:"shift+[Backquote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\~"]},{key:"[Backquote]",ifLayout:["windows.french","linux.french"],ifMode:"math",command:["insert","^2"]},{key:"[Backquote]",ifLayout:["windows.german","linux.german"],ifMode:"math",command:["insert","^"]},{key:"[IntlBackslash]",ifLayout:["apple.german"],ifMode:"math",command:["insert","^"]}],Gw={"\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\infty":"alt+[Digit5]","\\differentialD":"alt+d","\\partial":"shift+alt+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"shift+alt+o","\\~":"~"};function Uw(e){var t;return(null==(t=e.element)?void 0:t.mathfield)===e}function Vw(e){const t=function(e){var t,n;return null!=(n=null!=(t=e.querySelector(".ML__caret"))?t:e.querySelector(".ML__text-caret"))?n:e.querySelector(".ML__latex-caret")}(e);if(!t)return null;const n=t.getBoundingClientRect();return{x:n.right,y:n.bottom,height:n.height}}function Ww(e){var t;if(!e.parent)return"root";let n=null!=(t=e.parent.id)?t:"";return n+="string"==typeof e.parentBranch?"-"+e.parentBranch:`-${e.parentBranch[0]}/${e.parentBranch[0]}`,n}function qw(e,t,n){if(!t)return null;const i=e.field.getBoundingClientRect(),r=t.right-t.left,o=t.bottom-t.top,a=Math.ceil(t.left-i.left+e.field.scrollLeft*n),s=Math.ceil(t.top-i.top);return{left:a,right:a+r,top:s,bottom:s+o}}function Yw(e){const t=e.getBoundingClientRect(),n=parseInt(getComputedStyle(e).marginRight),i={top:t.top-1,bottom:t.bottom,left:t.left,right:t.right-1+n};if(0===e.children.length||"SVG"===e.tagName.toUpperCase())return i;for(const t of e.children)if(1===t.nodeType&&"atomId"in t.dataset&&!t.classList.contains("pstrut")){const e=Yw(t);i.left=Math.min(i.left,e.left),i.right=Math.max(i.right,e.right),i.top=Math.min(i.top,e.top),i.bottom=Math.max(i.bottom,e.bottom)}return i}function Xw(e,t){var n,i;if(!t.id)return null;let r=null!=(i=null==(n=e.atomBoundsCache)?void 0:n.get(t.id))?i:null;if(null!==r)return r;const o=e.field.querySelector(`[data-atom-id="${t.id}"]`);return r=o?Yw(o):null,e.atomBoundsCache&&(r?e.atomBoundsCache.set(t.id,r):e.atomBoundsCache.delete(t.id)),null!=r?r:null}function Qw(e,t){return e.model.selection.ranges.reduce(((n,i)=>n.concat(...function(e,t,n){const i=new Map;for(const r of e.model.getAtoms(t,{includeChildren:!0})){if((null==n?void 0:n.excludeAtomsWithBackground)&&r.style.backgroundColor)continue;const t=e.field,o=t.offsetWidth;let a=Math.floor(t.getBoundingClientRect().width)/o;a=isNaN(a)?1:a;const s=qw(e,Xw(e,r),a);if(s){const e=Ww(r);if(i.has(e)){const t=i.get(e);i.set(e,{left:Math.min(t.left,s.left),right:Math.max(t.right,s.right),top:Math.min(t.top,s.top),bottom:Math.max(t.bottom,s.bottom)})}else i.set(e,s)}}return[...i.values()]}(e,i,t))),[])}function Jw(e,t){return"*"===e||"none"===t||("same-origin"===t?!window.origin||e===window.origin:"function"==typeof t&&t(e))}function ex(e){let t=0,n=0;const i=e.offsetWidth,r=e.offsetHeight;for(;e instanceof HTMLElement;)t+=e.offsetTop,n+=e.offsetLeft,e=e.offsetParent;return new DOMRect(n,t,i,r)}var tx,nx;function ix(e){let t="";switch(e){case"mathfield-element":t="\n :host { display: inline-block; background-color: field; color: fieldtext; border-width: 1px; border-style: solid; border-color: #acacac; border-radius: 2px; padding:4px;}\n :host([hidden]) { display: none; }\n :host([disabled]), :host([disabled]:focus), :host([disabled]:focus-within) { outline: none; opacity: .5; }\n :host(:focus), :host(:focus-within) {\n outline: Highlight auto 1px; /* For Firefox */\n outline: -webkit-focus-ring-color auto 1px;\n }\n :host([readonly]:focus), :host([readonly]:focus-within),\n :host([read-only]:focus), :host([read-only]:focus-within) {\n outline: none;\n }\n @media (hover: none) and (pointer: coarse) {\n :host(:not(:focus)) :first-child { pointer-events: none !important; }\n }";break;case"core":t=".ML__container {\n min-height: auto !important;\n --_hue: var(--hue, 212);\n --_placeholder-color: var(--placeholder-color, hsl(var(--_hue), 40%, 49%));\n --_placeholder-opacity: var(--placeholder-opacity, 0.4);\n --_text-font-family: var(--text-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);\n}\n.ML__sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n.ML__is-inline {\n display: inline-block;\n}\n.ML__base {\n visibility: inherit;\n display: inline-block;\n position: relative;\n cursor: text;\n padding: 0;\n margin: 0;\n box-sizing: content-box;\n border: 0;\n outline: 0;\n vertical-align: baseline;\n font-weight: inherit;\n font-family: inherit;\n font-style: inherit;\n text-decoration: none;\n width: min-content;\n}\n.ML__strut,\n.ML__strut--bottom {\n display: inline-block;\n min-height: 0.5em;\n}\n.ML__small-delim {\n font-family: KaTeX_Main;\n}\n/* Text mode */\n.ML__text {\n font-family: var(--_text-font-family);\n white-space: pre;\n}\n/* Use cmr for 'math upright' */\n.ML__cmr {\n font-family: KaTeX_Main;\n font-style: normal;\n}\n.ML__mathit {\n font-family: KaTeX_Math;\n /* The KaTeX_Math font is italic by default, so the font-style below is only \n useful when a fallback font is used\n */\n font-style: italic;\n}\n.ML__mathbf {\n font-family: KaTeX_Main;\n font-weight: bold;\n}\n/* Lowercase greek symbols should stick to math font when \\mathbf is applied \n to match TeX idiosyncratic behavior */\n.lcGreek.ML__mathbf {\n font-family: KaTeX_Math;\n font-weight: normal;\n}\n.ML__mathbfit {\n font-family: KaTeX_Math;\n font-weight: bold;\n font-style: italic;\n}\n.ML__ams {\n font-family: KaTeX_AMS;\n}\n/* Blackboard */\n.ML__bb {\n font-family: KaTeX_AMS;\n}\n.ML__cal {\n font-family: KaTeX_Caligraphic;\n}\n.ML__frak {\n font-family: KaTeX_Fraktur;\n}\n.ML__tt {\n font-family: KaTeX_Typewriter;\n}\n.ML__script {\n font-family: KaTeX_Script;\n}\n.ML__sans {\n font-family: KaTeX_SansSerif;\n}\n.ML__series_ul {\n font-weight: 100;\n}\n.ML__series_el {\n font-weight: 100;\n}\n.ML__series_l {\n font-weight: 200;\n}\n.ML__series_sl {\n font-weight: 300;\n}\n.ML__series_sb {\n font-weight: 500;\n}\n.ML__bold,\n.ML__boldsymbol {\n font-weight: 700;\n}\n.ML__series_eb {\n font-weight: 800;\n}\n.ML__series_ub {\n font-weight: 900;\n}\n.ML__series_uc {\n font-stretch: ultra-condensed;\n}\n.ML__series_ec {\n font-stretch: extra-condensed;\n}\n.ML__series_c {\n font-stretch: condensed;\n}\n.ML__series_sc {\n font-stretch: semi-condensed;\n}\n.ML__series_sx {\n font-stretch: semi-expanded;\n}\n.ML__series_x {\n font-stretch: expanded;\n}\n.ML__series_ex {\n font-stretch: extra-expanded;\n}\n.ML__series_ux {\n font-stretch: ultra-expanded;\n}\n.ML__it {\n font-style: italic;\n}\n.ML__shape_ol {\n -webkit-text-stroke: 1px black;\n text-stroke: 1px black;\n color: transparent;\n}\n.ML__shape_sc {\n font-variant: small-caps;\n}\n.ML__shape_sl {\n font-style: oblique;\n}\n/* First level emphasis */\n.ML__emph {\n color: #bc2612;\n}\n/* Second level emphasis */\n.ML__emph .ML__emph {\n color: #0c7f99;\n}\n.ML__highlight {\n color: #007cb2;\n background: #edd1b0;\n}\n.ML__center {\n text-align: center;\n}\n.ML__label_padding {\n padding: 0 0.5em;\n}\n.ML__frac-line {\n width: 100%;\n min-height: 1px;\n}\n.ML__frac-line:after {\n content: '';\n display: block;\n margin-top: max(-1px, -0.04em);\n min-height: max(1px, 0.04em);\n /* Ensure the line is visible when printing even if \"turn off background images\" is on*/\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n /* There's a bug since Chrome 62 where \n sub-pixel border lines don't draw at some zoom \n levels (110%, 90%). \n Setting the min-height used to work around it, but that workaround\n broke in Chrome 84 or so.\n Setting the background (and the min-height) seems to work for now.\n */\n background: currentColor;\n box-sizing: content-box;\n /* Vuetify sets the box-sizing to inherit \n causes the fraction line to not draw at all sizes (see #26) */\n /* On some versions of Firefox on Windows, the line fails to \n draw at some zoom levels, but setting the transform triggers\n the hardware accelerated path, which works */\n transform: translate(0, 0);\n}\n.ML__sqrt {\n display: inline-block;\n}\n.ML__sqrt-sign {\n display: inline-block;\n position: relative;\n}\n.ML__sqrt-line {\n display: inline-block;\n height: max(1px, 0.04em);\n width: 100%;\n}\n.ML__sqrt-line:before {\n content: '';\n display: block;\n margin-top: min(-1px, -0.04em);\n min-height: max(1px, 0.04em);\n /* Ensure the line is visible when printing even if \"turn off background images\" is on*/\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n background: currentColor;\n /* On some versions of Firefox on Windows, the line fails to \n draw at some zoom levels, but setting the transform triggers\n the hardware accelerated path, which works */\n transform: translate(0, 0);\n}\n.ML__sqrt-line:after {\n border-bottom-width: 1px;\n content: ' ';\n display: block;\n margin-top: -0.1em;\n}\n.ML__sqrt-index {\n margin-left: 0.27777778em;\n margin-right: -0.55555556em;\n}\n.ML__delim-size1 {\n font-family: KaTeX_Size1;\n}\n.ML__delim-size2 {\n font-family: KaTeX_Size2;\n}\n.ML__delim-size3 {\n font-family: KaTeX_Size3;\n}\n.ML__delim-size4 {\n font-family: KaTeX_Size4;\n}\n.ML__delim-mult .delim-size1 > span {\n font-family: KaTeX_Size1;\n}\n.ML__delim-mult .delim-size4 > span {\n font-family: KaTeX_Size4;\n}\n.ML__accent-body > span {\n font-family: KaTeX_Main;\n width: 0;\n}\n.ML__accent-vec {\n position: relative;\n left: 0.24em;\n}\n/** The markup for a LaTeX formula, either in an editable mathfield or \n in a static display.\n*/\n.ML__latex {\n display: inline-block;\n direction: ltr;\n text-align: left;\n text-indent: 0;\n text-rendering: auto;\n font-family: KaTeX_Main, 'Times New Roman', serif;\n font-style: normal;\n font-size-adjust: none;\n font-stretch: normal;\n font-variant-caps: normal;\n letter-spacing: normal;\n line-height: 1.2;\n word-wrap: normal;\n word-spacing: normal;\n white-space: nowrap;\n text-shadow: none;\n -webkit-user-select: none;\n user-select: none;\n width: min-content;\n}\n.ML__latex .style-wrap {\n position: relative;\n}\n.ML__latex .mfrac {\n display: inline-block;\n}\n.ML__latex .left-right {\n display: inline-block;\n}\n.ML__latex .vlist-t {\n display: inline-table;\n table-layout: fixed;\n border-collapse: collapse;\n}\n.ML__latex .vlist-r {\n display: table-row;\n}\n.ML__latex .vlist {\n display: table-cell;\n vertical-align: bottom;\n position: relative;\n}\n.ML__latex .vlist > span {\n display: block;\n height: 0;\n position: relative;\n}\n.ML__latex .vlist > span > span {\n display: inline-block;\n}\n.ML__latex .vlist > span > .pstrut {\n overflow: hidden;\n width: 0;\n}\n.ML__latex .vlist-t2 {\n margin-right: -2px;\n}\n.ML__latex .vlist-s {\n display: table-cell;\n vertical-align: bottom;\n font-size: 1px;\n width: 2px;\n min-width: 2px;\n}\n.ML__latex .msubsup {\n text-align: left;\n}\n.ML__latex .negativethinspace {\n display: inline-block;\n margin-left: -0.16667em;\n height: 0.71em;\n}\n.ML__latex .thinspace {\n display: inline-block;\n width: 0.16667em;\n height: 0.71em;\n}\n.ML__latex .mediumspace {\n display: inline-block;\n width: 0.22222em;\n height: 0.71em;\n}\n.ML__latex .thickspace {\n display: inline-block;\n width: 0.27778em;\n height: 0.71em;\n}\n.ML__latex .enspace {\n display: inline-block;\n width: 0.5em;\n height: 0.71em;\n}\n.ML__latex .quad {\n display: inline-block;\n width: 1em;\n height: 0.71em;\n}\n.ML__latex .qquad {\n display: inline-block;\n width: 2em;\n height: 0.71em;\n}\n.ML__latex .llap,\n.ML__latex .rlap {\n width: 0;\n position: relative;\n display: inline-block;\n}\n.ML__latex .llap > .inner,\n.ML__latex .rlap > .inner {\n position: absolute;\n}\n.ML__latex .llap > .fix,\n.ML__latex .rlap > .fix {\n display: inline-block;\n}\n.ML__latex .llap > .inner {\n right: 0;\n}\n.ML__latex .rlap > .inner {\n left: 0;\n}\n.ML__latex .rule {\n display: inline-block;\n border: solid 0;\n position: relative;\n box-sizing: border-box;\n}\n.ML__latex .overline .overline-line,\n.ML__latex .underline .underline-line {\n width: 100%;\n}\n.ML__latex .overline .overline-line:before,\n.ML__latex .underline .underline-line:before {\n content: '';\n border-bottom-style: solid;\n border-bottom-width: max(1px, 0.04em);\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n display: block;\n}\n.ML__latex .overline .overline-line:after,\n.ML__latex .underline .underline-line:after {\n border-bottom-style: solid;\n border-bottom-width: max(1px, 0.04em);\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n content: '';\n display: block;\n margin-top: -1px;\n}\n.ML__latex .stretchy {\n display: block;\n position: absolute;\n width: 100%;\n left: 0;\n overflow: hidden;\n}\n.ML__latex .stretchy:before,\n.ML__latex .stretchy:after {\n content: '';\n}\n.ML__latex .stretchy svg {\n display: block;\n position: absolute;\n width: 100%;\n height: inherit;\n fill: currentColor;\n stroke: currentColor;\n fill-rule: nonzero;\n fill-opacity: 1;\n stroke-width: 1;\n stroke-linecap: butt;\n stroke-linejoin: miter;\n stroke-miterlimit: 4;\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n stroke-opacity: 1;\n}\n.ML__latex .slice-1-of-2 {\n display: inline-flex;\n position: absolute;\n left: 0;\n width: 50.2%;\n overflow: hidden;\n}\n.ML__latex .slice-2-of-2 {\n display: inline-flex;\n position: absolute;\n right: 0;\n width: 50.2%;\n overflow: hidden;\n}\n.ML__latex .slice-1-of-3 {\n display: inline-flex;\n position: absolute;\n left: 0;\n width: 25.1%;\n overflow: hidden;\n}\n.ML__latex .slice-2-of-3 {\n display: inline-flex;\n position: absolute;\n left: 25%;\n width: 50%;\n overflow: hidden;\n}\n.ML__latex .slice-3-of-3 {\n display: inline-flex;\n position: absolute;\n right: 0;\n width: 25.1%;\n overflow: hidden;\n}\n.ML__latex .slice-1-of-1 {\n display: inline-flex;\n position: absolute;\n width: 100%;\n left: 0;\n overflow: hidden;\n}\n.ML__latex .nulldelimiter {\n display: inline-block;\n}\n.ML__latex .op-group {\n display: inline-block;\n}\n.ML__latex .op-symbol {\n position: relative;\n}\n.ML__latex .op-symbol.small-op {\n font-family: KaTeX_Size1;\n}\n.ML__latex .op-symbol.large-op {\n font-family: KaTeX_Size2;\n}\n.ML__latex .mtable .vertical-separator {\n display: inline-block;\n min-width: 1px;\n box-sizing: border-box;\n}\n.ML__latex .mtable .arraycolsep {\n display: inline-block;\n}\n.ML__latex .mtable .col-align-m > .vlist-t {\n text-align: center;\n}\n.ML__latex .mtable .col-align-c > .vlist-t {\n text-align: center;\n}\n.ML__latex .mtable .col-align-l > .vlist-t {\n text-align: left;\n}\n.ML__latex .mtable .col-align-r > .vlist-t {\n text-align: right;\n}\n.ML__error {\n display: inline-block;\n background-image: radial-gradient(ellipse at center, hsl(341, 100%, 40%), rgba(0, 0, 0, 0) 70%);\n background-color: hsla(341, 100%, 40%, 0.1);\n background-repeat: repeat-x;\n background-size: 3px 3px;\n padding-bottom: 3px;\n background-position: 0 100%;\n}\n.ML__error > .ML__error {\n background: transparent;\n padding: 0;\n}\n.ML__placeholder {\n color: var(--_placeholder-color);\n opacity: var(--_placeholder-opacity);\n padding-left: 0.4ex;\n padding-right: 0.4ex;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n}\n.ML__notation {\n position: absolute;\n box-sizing: border-box;\n line-height: 0;\n}\n/* This class is used to implement the `\\mathtip` and `\\texttip` commands\n For UI elements, see `[data-ML__tooltip]`\n*/\n.ML__tooltip-container {\n position: relative;\n transform: scale(0);\n}\n.ML__tooltip-container .ML__tooltip-content {\n position: fixed;\n display: inline-table;\n visibility: hidden;\n z-index: 2;\n width: max-content;\n max-width: 400px;\n padding: 12px 12px;\n border-radius: 8px;\n background: #616161;\n --_selection-color: #fff;\n color: #fff;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n opacity: 0;\n transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);\n}\n.ML__tooltip-container .ML__tooltip-content .ML__text {\n white-space: normal;\n}\n.ML__tooltip-container .ML__tooltip-content .ML__base {\n display: contents;\n}\n.ML__tooltip-container:hover .ML__tooltip-content {\n visibility: visible;\n opacity: 1;\n font-size: 0.75em;\n transform: scale(1) translate(0, 3em);\n}\n";break;case"mathfield":t="@keyframes ML__caret-blink {\n 0%,\n 100% {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n }\n}\n.ML__container {\n display: inline-flex;\n flex-flow: row;\n justify-content: space-between;\n align-items: flex-end;\n min-height: 39px;\n /* Need some room for the virtual keyboard toggle */\n width: 100%;\n /* Encourage browsers to consider allocating a hardware accelerated\n layer for this element. */\n isolation: isolate;\n /* Prevent the browser from trying to interpret touch gestures in the field */\n /* \"Disabling double-tap to zoom removes the need for browsers to\n delay the generation of click events when the user taps the screen.\" */\n touch-action: none;\n --_caret-color: var(--caret-color, hsl(var(--_hue), 40%, 49%));\n --_selection-color: var(--selection-color, #000);\n --_selection-background-color: var(--selection-background-color, hsl(var(--_hue), 70%, 85%));\n --_text-highlight-background-color: var(--highlight-text, hsla(var(--_hue), 40%, 50%, 0.1));\n --_contains-highlight-background-color: var(--contains-highlight-background-color, hsl(var(--_hue), 40%, 95%));\n --_smart-fence-color: var(--smart-fence-color, currentColor);\n --_smart-fence-opacity: var(--smart-fence-opacity, 0.5);\n --_latex-color: var(--latex-color, hsl(var(--_hue), 80%, 40%));\n --_correct-color: var(--correct-color, #10a000);\n --_incorrect-color: var(--incorrect-color, #a01b00);\n --_composition-background-color: var(--composition-background-color, #fff1c2);\n --_composition-text-color: var(--composition-text-color, black);\n --_composition-underline-color: var(--composition-underline-color, transparent);\n}\n/* This is the actual field content (formula) */\n.ML__content {\n display: flex;\n align-items: center;\n align-self: center;\n position: relative;\n overflow: hidden;\n padding: 2px 3px 2px 1px;\n width: 100%;\n}\n.ML__virtual-keyboard-toggle,\n.ML__menu-toggle {\n box-sizing: border-box;\n display: flex;\n align-self: center;\n align-items: center;\n flex-shrink: 0;\n flex-direction: column;\n justify-content: center;\n width: 34px;\n height: 34px;\n padding: 0;\n margin-right: 4px;\n cursor: pointer;\n /* Avoid some weird blinking with :hover */\n border-radius: 8px;\n border: 1px solid transparent;\n transition: background 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);\n color: hsl(var(--_hue), 40%, 50%);\n fill: currentColor;\n background: transparent;\n}\n.ML__virtual-keyboard-toggle:hover,\n.ML__menu-toggle:hover {\n background: hsla(0, 0%, 70%, 0.3);\n color: #333;\n fill: currentColor;\n}\n.ML__virtual-keyboard-toggle > span,\n.ML__menu-toggle > span {\n display: flex;\n align-self: center;\n align-items: center;\n}\n/* The invisible element used to capture keyboard events. We're just trying\n really hard to make sure it doesn't show. */\n.ML__keyboard-sink {\n display: inline-block;\n resize: none;\n outline: none;\n border: none;\n /* Need these for Microsoft Edge */\n position: fixed;\n clip: rect(0 0 0 0);\n /* Need this to prevent iOS Safari from auto-zooming */\n font-size: 1em;\n font-family: KaTeX_Main;\n line-height: 0.5;\n /* On Chromium, if this is 0, no keyboard events are received */\n}\n[part=\"placeholder\"] {\n color: var(--neutral-400);\n}\n.ML__composition {\n background: var(--_composition-background-color);\n color: var(--_composition-text-color);\n text-decoration: underline var(--_composition-underline-color);\n}\n.ML__caret::after {\n content: '';\n visibility: hidden;\n width: 0;\n display: inline-block;\n height: 0.76em;\n --_caret-width: clamp(2px, 0.08em, 10px);\n border: none;\n border-radius: calc(var(--_caret-width) / 2);\n border-right: var(--_caret-width) solid var(--_caret-color);\n margin-right: calc(-1 * var(--_caret-width));\n position: relative;\n left: -0.045em;\n bottom: -0.05em;\n animation: ML__caret-blink 1.05s step-end forwards infinite;\n}\n.ML__text-caret::after {\n content: '';\n visibility: hidden;\n width: 0;\n display: inline-block;\n height: 0.76em;\n --_caret-width: clamp(2px, 0.08em, 10px);\n border: none;\n border-radius: calc(var(--_caret-width) / 2);\n border-right: var(--_caret-width) solid var(--_caret-color);\n margin-right: calc(-1 * var(--_caret-width));\n position: relative;\n left: -0.045em;\n bottom: -0.05em;\n animation: ML__caret-blink 1.05s step-end forwards infinite;\n}\n.ML__latex-caret::after {\n content: '';\n visibility: hidden;\n --_caret-width: clamp(2px, 0.08em, 10px);\n border: none;\n border-radius: calc(var(--_caret-width) / 2);\n border-right: var(--_caret-width) solid var(--_latex-color);\n margin-right: calc(-1 * var(--_caret-width));\n position: relative;\n left: -0.019em;\n animation: ML__caret-blink 1.05s step-end forwards infinite;\n}\n.ML__focused .ML__latex-caret::after,\n.ML__focused .ML__text-caret::after,\n.ML__focused .ML__caret::after {\n visibility: visible;\n}\n.ML__focused .ML__text {\n background: var(--_text-highlight-background-color);\n}\n/* When using smartFence, the anticipated closing fence is displayed\nwith this style */\n.ML__smart-fence__close {\n opacity: var(--_smart-fence-opacity);\n color: var(--_smart-fence-color);\n}\n.ML__selected,\n.ML__focused .ML__selected .ML__contains-caret,\n.ML__focused .ML__selected .ML__smart-fence__close,\n.ML__focused .ML__selected .ML__placeholder {\n color: var(--_selection-color);\n opacity: 1;\n}\n.ML__selection {\n box-sizing: border-box;\n background: var(--_selection-background-color) !important;\n}\n.ML__contains-caret.ML__close,\n.ML__contains-caret.ML__open,\n.ML__contains-caret > .ML__close,\n.ML__contains-caret > .ML__open,\n.ML__contains-caret .ML__sqrt-sign,\n.ML__contains-caret .ML__sqrt-line {\n color: var(--_caret-color);\n}\n.ML__contains-highlight {\n box-sizing: border-box;\n background: transparent;\n}\n.ML__focused .ML__contains-highlight {\n background: var(--_contains-highlight-background-color);\n}\n.ML__raw-latex {\n font-family: 'Berkeley Mono', 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;\n font-weight: 400;\n font-size: 0.8em;\n letter-spacing: -0.05em;\n color: var(--_latex-color);\n}\n.ML__suggestion {\n color: var(--neutral-500);\n}\n.ML__virtual-keyboard-toggle.is-visible.is-pressed:hover {\n background: hsl(var(--_hue), 25%, 35%);\n color: #fafafa;\n fill: currentColor;\n}\n.ML__virtual-keyboard-toggle:focus {\n outline: none;\n border-radius: 8px;\n border: 2px solid hsl(var(--_hue), 40%, 50%);\n}\n.ML__virtual-keyboard-toggle.is-pressed,\n.ML__virtual-keyboard-toggle.is-active:hover,\n.ML__virtual-keyboard-toggle.is-active {\n background: hsl(var(--_hue), 25%, 35%);\n color: #fafafa;\n fill: currentColor;\n}\n/* Add an attribute 'data-tooltip' to automatically show a\n tooltip over a element on hover.\n*/\n[data-tooltip] {\n position: relative;\n}\n[data-tooltip]::after {\n content: attr(data-tooltip);\n position: absolute;\n display: block;\n z-index: 2;\n pointer-events: none;\n right: auto;\n top: calc(-100% - 4px);\n width: max-content;\n max-width: 200px;\n padding: 8px 8px;\n border-radius: 4px;\n background: #616161;\n color: #fff;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n text-align: center;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n font-style: normal;\n font-weight: 400;\n font-size: 13px;\n /* Phone */\n opacity: 0;\n transform: scale(0.5);\n}\n@media only screen and (max-width: 767px) {\n [data-tooltip]::after {\n padding: 8px 16px;\n font-size: 16px;\n }\n}\nmenu [data-tooltip]::after {\n left: 100%;\n top: 0%;\n}\nmenu .ML__base {\n cursor: default;\n}\n/** Don't display if we're tracking, i.e. have the pointer down */\n.tracking [data-tooltip]:hover::after {\n /* Use visibility, not display. Display will remove the after from the DOM, and the override below will not work */\n visibility: hidden;\n}\n/** But do display if tracking and inside a menu */\n.tracking menu li[data-tooltip]:hover::after,\n[data-tooltip]:hover::after {\n visibility: visible;\n opacity: 1;\n transform: scale(1);\n transition-property: opacity, scale;\n transition-duration: 0.15s;\n transition-delay: 1s;\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.ML__prompt {\n border-radius: 2px;\n}\n.ML__editablePromptBox {\n outline: 1px solid #acacac;\n border-radius: 2px;\n z-index: -1;\n}\n.ML__focusedPromptBox {\n outline: highlight auto 1px;\n}\n.ML__lockedPromptBox {\n background-color: rgba(142, 142, 141, 0.4);\n z-index: -1;\n}\n.ML__correctPromptBox {\n outline: 1px solid var(--_correct-color);\n box-shadow: 0 0 5px var(--_correct-color);\n}\n.ML__incorrectPromptBox {\n outline: 1px solid var(--_incorrect-color);\n box-shadow: 0 0 5px var(--_incorrect-color);\n}\n.variant-submenu {\n display: flex;\n flex-direction: column;\n padding: 8px;\n}\n.variant-submenu [part=menu-item] {\n font-size: 2rem;\n text-align: center;\n margin: 0;\n}\n.insert-matrix-submenu {\n display: grid;\n padding: 8px;\n align-content: center;\n justify-content: center;\n grid-template-columns: repeat(5, minmax(0, 1fr));\n}\n.insert-matrix-submenu [part=menu-item] {\n font-size: 21px;\n border: none;\n border-radius: 0;\n line-height: 21px;\n text-align: center;\n padding: 0;\n margin: 0;\n}\n.border-submenu [part=menu-item] {\n font-size: 2rem;\n line-height: 1.2;\n text-align: center;\n}\n.swatches-submenu {\n --_swatch-size: 2rem;\n --_columns: 4;\n display: flex;\n flex-flow: wrap;\n padding: 8px;\n max-width: calc(var(--_columns) * (var(--_swatch-size) + 18px) + 16px);\n box-sizing: border-box;\n}\n.menu-swatch {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: fit-content;\n height: fit-content;\n margin: 2px;\n padding: 0;\n background: var(--neutral-200);\n}\n.menu-swatch > .label {\n padding: 0;\n margin: 0;\n line-height: 0;\n}\n.menu-swatch > .label > span {\n display: inline-block;\n margin: 6px;\n min-width: var(--_swatch-size);\n min-height: var(--_swatch-size);\n border-radius: 50%;\n}\n.menu-swatch.active {\n background: var(--neutral-100);\n scale: 1.4;\n}\n.menu-swatch.active > .label > span {\n border-radius: 2px;\n}\n.menu-swatch .ui-checkmark,\n.menu-swatch .ui-mixedmark {\n position: absolute;\n margin: 0;\n padding: 0;\n color: white;\n}\n.menu-swatch.dark-contrast .ui-checkmark,\n.menu-swatch.dark-contrast .ui-mixedmark {\n color: #000;\n}\n";break;case"environment-popover":t="#mathlive-environment-popover.is-visible {\n visibility: visible;\n}\n#mathlive-environment-popover {\n --_environment-panel-height: var(--environment-panel-height, 70px);\n --_accent-color: var(--accent-color, #aaa);\n --_background: var(--environment-panel-background, #fff);\n --_button-background: var(--environment-panel-button-background, white);\n --_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);\n --_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);\n --_button-text: var(--environment-panel-button-text, #e3e4e8);\n position: absolute;\n width: calc(var(--_environment-panel-height) * 2);\n height: var(--_environment-panel-height);\n border-radius: 4px;\n border: 1.5px solid var(--_accent-color);\n background-color: var(--_background);\n box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));\n pointer-events: all;\n visibility: hidden;\n}\n#mathlive-environment-popover .MLEP__array-buttons {\n height: calc(var(--_environment-panel-height) * 5/4);\n width: calc(var(--_environment-panel-height) * 5/4);\n margin-left: calc(0px - var(--_environment-panel-height) * 0.16);\n margin-top: calc(0px - var(--_environment-panel-height) * 0.19);\n}\n#mathlive-environment-popover .MLEP__array-buttons .font {\n fill: white;\n}\n#mathlive-environment-popover .MLEP__array-buttons circle {\n fill: #7f7f7f;\n transition: fill 300ms;\n}\n#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {\n fill-opacity: 1;\n fill: var(--_background);\n stroke: var(--_accent-color);\n stroke-width: 3px;\n}\n#mathlive-environment-popover .MLEP__array-buttons line {\n stroke: var(--_accent-color);\n stroke-opacity: 0;\n stroke-width: 40;\n pointer-events: none;\n transition: stroke-opacity 300ms;\n stroke-linecap: round;\n}\n#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {\n fill: var(--_accent-color);\n}\n#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {\n stroke-opacity: 1;\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls {\n height: 100%;\n width: 50%;\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {\n width: var(--_environment-panel-height);\n height: var(--_environment-panel-height);\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n justify-content: space-around;\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {\n pointer-events: all;\n margin-top: 2px;\n width: calc(var(--_environment-panel-height) / 3 * 28 / 24);\n height: calc(var(--_environment-panel-height) / 3 - 2px);\n border-radius: calc(var(--_environment-panel-height) / 25);\n background-color: var(--_button-background);\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {\n background-color: var(--_button-background-hover);\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {\n stroke: var(--_button-text);\n stroke-width: 2;\n stroke-linecap: round;\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {\n fill-opacity: 0;\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {\n pointer-events: none;\n background-color: var(--_button-background-active);\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {\n stroke: var(--_accent-color);\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {\n fill: var(--_accent-color);\n}\n";break;case"suggestion-popover":t="/* The element that display info while in latex mode */\n#mathlive-suggestion-popover {\n background-color: rgba(97, 97, 97);\n color: #fff;\n text-align: center;\n border-radius: 8px;\n position: fixed;\n z-index: 1;\n display: none;\n flex-direction: column;\n justify-content: center;\n box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);\n}\n#mathlive-suggestion-popover.top-tip::after {\n content: '';\n position: absolute;\n top: -15px;\n left: calc(50% - 15px);\n width: 0;\n height: 0;\n border-left: 15px solid transparent;\n border-right: 15px solid transparent;\n border-bottom: 15px solid rgba(97, 97, 97);\n font-size: 1rem;\n}\n#mathlive-suggestion-popover.bottom-tip::after {\n content: '';\n position: absolute;\n bottom: -15px;\n left: calc(50% - 15px);\n width: 0;\n height: 0;\n border-left: 15px solid transparent;\n border-right: 15px solid transparent;\n border-top: 15px solid rgba(97, 97, 97);\n font-size: 1rem;\n}\n#mathlive-suggestion-popover.is-animated {\n transition: all 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);\n animation: ML__fade-in cubic-bezier(0, 0, 0.2, 1) 0.15s;\n}\n#mathlive-suggestion-popover.is-visible {\n display: flex;\n}\n@keyframes ML__fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n/* The wrapper class for the entire content of the popover panel */\n#mathlive-suggestion-popover ul {\n display: flex;\n flex-flow: column;\n list-style: none;\n margin: 0;\n padding: 0;\n align-items: flex-start;\n max-height: 400px;\n overflow-y: auto;\n}\n#mathlive-suggestion-popover li {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n margin: 8px;\n padding: 8px;\n width: calc(100% - 16px - 16px);\n column-gap: 1em;\n border-radius: 8px;\n cursor: pointer;\n /* Since the content can be clicked on, provide feedback on hover */\n}\n#mathlive-suggestion-popover li a {\n color: #5ea6fd;\n padding-top: 0.3em;\n margin-top: 0.4em;\n display: block;\n}\n#mathlive-suggestion-popover li a:hover {\n color: #5ea6fd;\n text-decoration: underline;\n}\n#mathlive-suggestion-popover li:hover,\n#mathlive-suggestion-popover li.is-pressed,\n#mathlive-suggestion-popover li.is-active {\n background: rgba(255, 255, 255, 0.1);\n}\n/* The command inside a popover (inside a #mathlive-suggestion-popover) */\n.ML__popover__command {\n font-size: 1.6rem;\n font-family: KaTeX_Main;\n}\n.ML__popover__current {\n background: #5ea6fd;\n color: #fff;\n}\n.ML__popover__latex {\n font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;\n align-self: center;\n}\n/* The keyboard shortcuts for a symbol as displayed in the popover */\n.ML__popover__keybinding {\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n font-size: 0.8em;\n opacity: 0.7;\n}\n/* Style for the character that joins the modifiers of a keyboard shortcut \n(usually a \"+\" sign)*/\n.ML__shortcut-join {\n opacity: 0.5;\n}\n";break;case"keystroke-caption":t="/* The element that displays the keys as the user type them */\n#mathlive-keystroke-caption-panel {\n visibility: hidden;\n /*min-width: 160px;*/\n /*background-color: rgba(97, 97, 200, .95);*/\n background: var(--secondary, hsl(var(--_hue), 19%, 26%));\n border-color: var(--secondary-border, hsl(0, 0%, 91%));\n box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);\n text-align: center;\n border-radius: 6px;\n padding: 16px;\n position: absolute;\n z-index: 1;\n display: flex;\n flex-direction: row-reverse;\n justify-content: center;\n --keystroke: white;\n --on-keystroke: #555;\n --keystroke-border: #f7f7f7;\n}\n@media (prefers-color-scheme: dark) {\n body:not([theme='light']) #mathlive-keystroke-caption-panel {\n --keystroke: hsl(var(--_hue), 50%, 30%);\n --on-keystroke: hsl(0, 0%, 98%);\n --keystroke-border: hsl(var(--_hue), 50%, 25%);\n }\n}\nbody[theme='dark'] #mathlive-keystroke-caption-panel {\n --keystroke: hsl(var(--_hue), 50%, 30%);\n --on-keystroke: hsl(0, 0%, 98%);\n --keystroke-border: hsl(var(--_hue), 50%, 25%);\n}\n#mathlive-keystroke-caption-panel > span {\n min-width: 14px;\n /*height: 8px;*/\n margin: 0 8px 0 0;\n padding: 4px;\n background-color: var(--keystroke);\n color: var(--on-keystroke);\n fill: currentColor;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n font-size: 1em;\n border-radius: 6px;\n border: 2px solid var(--keystroke-border);\n /*box-shadow: 0 7px 14px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);*/\n}\n";break;case"virtual-keyboard":t=".ML__keyboard {\n --_keyboard-height: 0;\n --_keyboard-zindex: var(--keyboard-zindex, 105);\n --_accent-color: var(--keyboard-accent-color, #0c75d8);\n --_background: var(--keyboard-background, #cacfd7);\n --_border: var(--keyboard-border, #ddd);\n --_padding-horizontal: var(--keyboard-padding-horizontal, 0px);\n --_padding-top: var(--keyboard-padding-top, 5px);\n --_padding-bottom: var(--keyboard-padding-bottom, 0px);\n --_row-padding-left: var(--keyboard-row-padding-left, 0px);\n --_row-padding-right: var(--keyboard-row-padding-right, 0px);\n --_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);\n --_toolbar-text-active: var(--keyboard-toolbar-text-active, var(--_accent-color));\n --_toolbar-background: var(--keyboard-toolbar-background, transparent);\n --_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);\n --_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);\n --_toolbar-font-size: var(--keyboard-toolbar-font-size, '135%');\n --_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);\n --_keycap-background: var(--keycap-background, white);\n --_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);\n --_keycap-background-active: var(--keycap-background-active, var(--_accent-color));\n --_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));\n --_keycap-border: var(--keycap-border, #e5e6e9);\n --_keycap-border-bottom: var(--keycap-border-bottom, #8d8f92);\n --_keycap-text: var(--keycap-text, #000);\n --_keycap-text-active: var(--keycap-text-active, #fff);\n --_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));\n --_keycap-text-pressed: var(--keycap-text-pressed, #fff);\n --_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));\n --_keycap-primary-background: var(--keycap-primary-background, var(--_accent-color));\n --_keycap-primary-text: var(--keycap-primary-text, #ddd);\n --_keycap-primary-background-hover: var(--keycap-primary-background-hover, #0d80f2);\n --_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);\n --_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);\n --_keycap-secondary-text: var(--keycap-secondary-text, #060707);\n --_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);\n --_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);\n --_keycap-height: var(--keycap-height, 60px);\n /* Keycap width (incl. margin) */\n --_keycap-max-width: var(--keycap-max-width, 100px);\n --_keycap-gap: var(--keycap-gap, 8px);\n --_keycap-font-size: var(--keycap-font-size, clamp(16px, 4cqw, 24px));\n --_keycap-small-font-size: var(--keycap-small-font-size, calc(var(--keycap-font-size) * 0.8));\n --_keycap-extra-small-font-size: var(--keycap-extra-small-font-size, calc(var(--keycap-font-size) / 1.42));\n --_variant-panel-background: var(--variant-panel-background, #fff);\n --_variant-keycap-text: var(--variant-keycap-text, var(--_keycap-text));\n --_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));\n --_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));\n --_variant-keycap-length: var(--variant-keycap-length, 70px);\n --_variant-keycap-font-size: var(--variant-keycap-font-size, 30px);\n --_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 12px);\n --_keycap-shift-font-size: var(--keycap-shift-font-size, 16px);\n --_keycap-shift-color: var(--keycap-shift-color, var(--_accent-color));\n --_box-placeholder-color: var(--box-placeholder-color, var(--_accent-color));\n --_box-placeholder-pressed-color: var(--box-placeholder-pressed-color, var(--keycap-text-pressed));\n}\n.is-math-mode .MLK__rows .if-text-mode,\n.is-text-mode .MLK__rows .if-math-mode {\n display: none;\n}\n.if-can-undo,\n.if-can-redo,\n.if-can-copy,\n.if-can-cut,\n.if-can-paste {\n opacity: 0.4;\n pointer-events: none;\n}\n.can-undo .if-can-undo,\n.can-redo .if-can-redo,\n.can-copy .if-can-copy,\n.can-cut .if-can-cut,\n.can-paste .if-can-paste {\n opacity: 1;\n pointer-events: all;\n}\nbody > .ML__keyboard {\n position: fixed;\n --_padding-bottom: calc(var(--keyboard-padding-bottom, 0px) + env(safe-area-inset-bottom, 0));\n}\nbody > .ML__keyboard.is-visible > .MLK__backdrop {\n box-shadow: 0 -5px 6px rgba(0, 0, 0, 0.08);\n border-top: 1px solid var(--_border);\n}\nbody > .ML__keyboard.backdrop-is-transparent.is-visible > .MLK__backdrop {\n box-shadow: none;\n border: none;\n}\nbody > .ML__keyboard.is-visible.animate > .MLK__backdrop {\n transition: 0.28s cubic-bezier(0, 0, 0.2, 1);\n transition-property: transform, opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.ML__keyboard {\n position: relative;\n overflow: hidden;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: var(--_keyboard-zindex);\n box-sizing: border-box;\n outline: none;\n border: none;\n margin: 0;\n padding: 0;\n line-height: 1;\n overflow-wrap: unset;\n text-align: left;\n vertical-align: baseline;\n cursor: auto;\n white-space: pre;\n box-shadow: none;\n opacity: 1;\n transform: none;\n pointer-events: none;\n}\n.ML__keyboard :where(div) {\n box-sizing: border-box;\n outline: none;\n border: none;\n margin: 0;\n padding: 0;\n line-height: 1;\n overflow-wrap: unset;\n text-align: left;\n vertical-align: baseline;\n cursor: auto;\n white-space: pre;\n box-shadow: none;\n transform: none;\n}\n.MLK__backdrop {\n position: absolute;\n bottom: calc(-1 * var(--_keyboard-height));\n width: 100%;\n height: var(--_keyboard-height);\n box-sizing: border-box;\n padding-top: var(--_padding-top);\n padding-bottom: var(--_padding-bottom);\n padding-left: var(--_padding-horizontal);\n padding-right: var(--_padding-horizontal);\n opacity: 0;\n visibility: hidden;\n transform: translate(0, 0);\n background: var(--_background);\n}\n.backdrop-is-transparent .MLK__backdrop {\n background: transparent;\n}\n/* If a custom layout has a custom container/backdrop\n (backdrop-is-transparent), make sure to let pointer event go through. */\n.backdrop-is-transparent .MLK__plate {\n background: transparent;\n pointer-events: none;\n}\n/* If a custom layout has a custom container/backdrop, make sure to \n allow pointer events on it. */\n.backdrop-is-transparent .MLK__layer > div > div {\n pointer-events: all;\n}\n.ML__keyboard.is-visible > .MLK__backdrop {\n transform: translate(0, calc(-1 * var(--_keyboard-height)));\n opacity: 1;\n visibility: visible;\n}\n.caps-lock-indicator {\n display: none;\n width: 8px;\n height: 8px;\n background: #0cbc0c;\n box-shadow: inset 0 0 4px 0 #13ca13, 0 0 4px 0 #a9ef48;\n border-radius: 8px;\n right: 8px;\n top: 8px;\n position: absolute;\n}\n.ML__keyboard.is-caps-lock .caps-lock-indicator {\n display: block;\n}\n.ML__keyboard.is-caps-lock .shift {\n background: var(--_keycap-background-active);\n color: var(--_keycap-text-active);\n}\n.MLK__plate {\n position: absolute;\n top: var(--_padding-top);\n left: var(--_padding-horizontal);\n width: calc(100% - 2 * var(--_padding-horizontal));\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n container-type: inline-size;\n touch-action: none;\n -webkit-user-select: none;\n user-select: none;\n pointer-events: all;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n font-size: 16px;\n /* Size of toolbar labels */\n font-weight: 400;\n text-shadow: none;\n}\n.ML__box-placeholder {\n color: var(--_box-placeholder-color);\n}\n.MLK__tex {\n font-family: KaTeX_Main, KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;\n}\n.MLK__tex-math {\n font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;\n font-style: italic;\n}\n.MLK__layer {\n display: none;\n outline: none;\n}\n.MLK__layer.is-visible {\n display: flex;\n flex-flow: column;\n}\n/* Keyboard layouts are made or rows of keys... */\n.MLK__rows {\n --_keycap-width: min(var(--_keycap-max-width), 10cqw);\n display: flex;\n flex-flow: column;\n align-items: center;\n border-collapse: separate;\n clear: both;\n border: 0;\n margin: 0;\n margin-bottom: var(--_keycap-gap);\n gap: var(--_keycap-gap);\n /* If the styling include, e.g., some shadows, they will be\n cut off by the overflow. In that case, set the padding to \n compensate. */\n padding-left: var(--_row-padding-left);\n padding-right: var(--_row-padding-right);\n overflow: visible;\n touch-action: none;\n}\n.MLK__rows > .MLK__row {\n display: flex;\n flex-flow: row;\n justify-content: center;\n width: 100%;\n gap: var(--_keycap-gap);\n margin: 0;\n padding: 0;\n /* For the alignment of the text on some modifiers (e.g. shift) */\n /* Extra spacing between two adjacent keys */\n}\n.MLK__rows > .MLK__row .tex {\n font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;\n}\n.MLK__rows > .MLK__row .tex-math {\n font-family: KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;\n}\n.MLK__rows > .MLK__row .big-op {\n font-size: calc(1.25 * var(--_keycap-font-size));\n}\n.MLK__rows > .MLK__row .small {\n font-size: var(--_keycap-small-font-size);\n}\n.MLK__rows > .MLK__row .bottom {\n justify-content: flex-end;\n}\n.MLK__rows > .MLK__row .left {\n align-items: flex-start;\n padding-left: 12px;\n}\n.MLK__rows > .MLK__row .right {\n align-items: flex-end;\n padding-right: 12px;\n}\n.MLK__rows > .MLK__row .w0 {\n width: 0;\n}\n.MLK__rows > .MLK__row .w5 {\n width: calc(0.5 * var(--_keycap-width) - var(--_keycap-gap));\n}\n.MLK__rows > .MLK__row .w15 {\n width: calc(1.5 * var(--_keycap-width) - var(--_keycap-gap));\n}\n.MLK__rows > .MLK__row .w20 {\n width: calc(2 * var(--_keycap-width) - var(--_keycap-gap));\n}\n.MLK__rows > .MLK__row .w40 {\n width: calc(4 * var(--_keycap-width) - var(--_keycap-gap));\n}\n.MLK__rows > .MLK__row .w50 {\n width: calc(5 * var(--_keycap-width) - var(--_keycap-gap));\n}\n.MLK__rows > .MLK__row .MLK__keycap.w50 {\n font-size: 80%;\n padding-top: 10px;\n font-weight: 100;\n}\n.MLK__rows > .MLK__row .separator {\n background: transparent;\n border: none;\n pointer-events: none;\n}\n.MLK__rows > .MLK__row .horizontal-rule {\n height: 6px;\n margin-top: 3px;\n margin-bottom: 0;\n width: 100%;\n border-radius: 0;\n border-top: var(--_horizontal-rule);\n}\n.MLK__rows > .MLK__row .ghost {\n background: var(--_toolbar-background);\n border: none;\n color: var(--_toolbar-text);\n}\n.MLK__rows > .MLK__row .ghost:hover {\n background: var(--_toolbar-background-hover);\n}\n.MLK__rows > .MLK__row .bigfnbutton {\n font-size: var(--_keycap-extra-small-font-size);\n}\n.MLK__rows > .MLK__row .shift,\n.MLK__rows > .MLK__row .action {\n color: var(--_keycap-secondary-text);\n background: var(--_keycap-secondary-background);\n border-color: var(--_keycap-secondary-border);\n border-bottom-color: var(--_keycap-secondary-border-bottom);\n line-height: 0.8;\n font-size: min(1rem, var(--_keycap-small-font-size));\n font-weight: 600;\n padding: 8px 12px 8px 12px;\n}\n.MLK__rows > .MLK__row .shift:hover,\n.MLK__rows > .MLK__row .action:hover {\n background: var(--_keycap-secondary-background-hover);\n}\n.MLK__rows > .MLK__row .action.primary {\n background: var(--_keycap-primary-background);\n color: var(--_keycap-primary-text);\n}\n.MLK__rows > .MLK__row .action.primary:hover {\n background: var(--_keycap-primary-background-hover);\n color: var(--_keycap-primary-text);\n}\n.MLK__rows > .MLK__row .shift.selected,\n.MLK__rows > .MLK__row .action.selected {\n color: var(--_toolbar-text-active);\n}\n.MLK__rows > .MLK__row .shift.selected.is-pressed,\n.MLK__rows > .MLK__row .action.selected.is-pressed,\n.MLK__rows > .MLK__row .shift.selected.is-active,\n.MLK__rows > .MLK__row .action.selected.is-active {\n color: white;\n}\n.MLK__rows > .MLK__row .warning {\n background: #cd0030;\n color: white;\n}\n.MLK__rows > .MLK__row .warning svg.svg-glyph {\n width: 24px;\n height: 24px;\n min-height: 24px;\n}\n/** A regular keycap\n * Use the :where() pseudo-class to give it a very low specifity, \n * so that it can be overriden by custom style.\n */\n:where(.MLK__rows > .MLK__row div) {\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: space-evenly;\n width: calc(var(--_keycap-width) - var(--_keycap-gap));\n height: var(--_keycap-height);\n box-sizing: border-box;\n padding: 0;\n vertical-align: top;\n text-align: center;\n float: left;\n color: var(--_keycap-text);\n fill: currentColor;\n font-size: var(--_keycap-font-size);\n background: var(--_keycap-background);\n border: 1px solid var(--_keycap-border);\n border-bottom-color: var(--_keycap-border-bottom);\n border-radius: 6px;\n cursor: pointer;\n touch-action: none;\n /* Keys with a variants panel */\n position: relative;\n overflow: hidden;\n -webkit-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n}\n:where(.MLK__rows > .MLK__row div):hover {\n overflow: visible;\n background: var(--_keycap-background-hover);\n}\n:where(.MLK__rows > .MLK__row div) .ML__latex {\n pointer-events: none;\n touch-action: none;\n}\n:where(.MLK__rows > .MLK__row div) svg.svg-glyph {\n margin: 8px 0;\n width: 20px;\n height: 20px;\n min-height: 20px;\n}\n:where(.MLK__rows > .MLK__row div) svg.svg-glyph-lg {\n margin: 8px 0;\n width: 24px;\n height: 24px;\n min-height: 24px;\n}\n:where(.MLK__rows > .MLK__row div).MLK__tex-math {\n font-size: 25px;\n}\n:where(.MLK__rows > .MLK__row div).is-pressed {\n background: var(--_keycap-background-pressed);\n color: var(--_keycap-text-pressed);\n --_box-placeholder-color: var(--_box-placeholder-pressed-color);\n}\n:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,\n:where(.MLK__rows > .MLK__row div).action.is-active,\n:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,\n:where(.MLK__rows > .MLK__row div).action.is-pressed {\n z-index: calc(var(--_keyboard-zindex) - 5);\n}\n:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active aside,\n:where(.MLK__rows > .MLK__row div).action.is-active aside,\n:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed aside,\n:where(.MLK__rows > .MLK__row div).action.is-pressed aside {\n display: none;\n}\n:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active .MLK__shift,\n:where(.MLK__rows > .MLK__row div).action.is-active .MLK__shift,\n:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed .MLK__shift,\n:where(.MLK__rows > .MLK__row div).action.is-pressed .MLK__shift {\n display: none;\n}\n:where(.MLK__rows > .MLK__row div).shift.is-pressed,\n:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,\n:where(.MLK__rows > .MLK__row div).action.is-pressed {\n background: var(--_keycap-background-pressed);\n color: var(--_keycap-text-pressed);\n}\n:where(.MLK__rows > .MLK__row div).shift.is-active,\n:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,\n:where(.MLK__rows > .MLK__row div).action.is-active {\n background: var(--_keycap-background-active);\n color: var(--_keycap-text-active);\n --_box-placeholder-color: var(--_box-placeholder-pressed-color);\n}\n:where(.MLK__rows > .MLK__row div) small {\n color: var(--_keycap-secondary-text);\n}\n:where(.MLK__rows > .MLK__row div) aside {\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n font-size: 10px;\n line-height: 10px;\n color: var(--_keycap-secondary-text);\n}\n/* Add an attribute 'data-tooltip' to display a tooltip on hover.\nNote there are a different set of tooltip rules for the keyboard toggle\n(it's in a different CSS tree) */\n.ML__keyboard [data-tooltip] {\n position: relative;\n}\n.ML__keyboard [data-tooltip]::after {\n position: absolute;\n display: inline-table;\n content: attr(data-tooltip);\n top: inherit;\n bottom: 100%;\n width: max-content;\n max-width: 200px;\n padding: 8px 8px;\n background: #616161;\n color: #fff;\n text-align: center;\n z-index: 2;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n border-radius: 2px;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n font-weight: 400;\n font-size: 12px;\n transition: all 0.15s cubic-bezier(0.4, 0, 1, 1) 1s;\n opacity: 0;\n transform: scale(0.5);\n}\n.ML__keyboard [data-tooltip]:hover {\n position: relative;\n}\n.ML__keyboard [data-tooltip]:hover::after {\n opacity: 1;\n transform: scale(1);\n}\n.MLK__toolbar {\n align-self: center;\n display: flex;\n flex-flow: row;\n justify-content: space-between;\n width: 100%;\n max-width: 996px;\n min-height: 32px;\n /* Icons for undo/redo, etc. */\n}\n.MLK__toolbar svg {\n height: 20px;\n width: 20px;\n}\n.MLK__toolbar > .left {\n position: relative;\n display: flex;\n justify-content: flex-start;\n flex-flow: row;\n}\n.MLK__toolbar > .right {\n display: flex;\n justify-content: flex-end;\n flex-flow: row;\n}\n.MLK__toolbar > div > div {\n /* \"button\" in the toolbar */\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--_toolbar-text);\n fill: currentColor;\n background: var(--_toolbar-background);\n font-size: var(--_toolbar-font-size);\n padding: 4px 15px;\n cursor: pointer;\n width: max-content;\n min-width: 42px;\n min-height: 34px;\n border: none;\n padding-left: 10px;\n padding-right: 10px;\n padding-bottom: 8px;\n padding-top: 8px;\n margin-top: 0;\n margin-bottom: 4px;\n margin-left: 4px;\n margin-right: 4px;\n border-radius: 8px;\n box-shadow: none;\n border-bottom: 2px solid transparent;\n}\n.MLK__toolbar > div > div:not(.disabled):not(.selected):hover {\n background: var(--_toolbar-background-hover);\n}\n.MLK__toolbar > div > div.disabled svg,\n.MLK__toolbar > div > div.disabled:hover svg,\n.MLK__toolbar > div > div.disabled.is-pressed svg {\n color: var(--_toolbar-text);\n opacity: 0.2;\n}\n.MLK__toolbar > div > div:hover,\n.MLK__toolbar > div > div:active,\n.MLK__toolbar > div > div.is-pressed,\n.MLK__toolbar > div > div.is-active {\n color: var(--_toolbar-text-active);\n}\n.MLK__toolbar > div > div.selected {\n color: var(--_toolbar-text-active);\n background: var(--_toolbar-background-selected);\n border-radius: 0;\n border-bottom-color: var(--_toolbar-text-active);\n padding-bottom: 4px;\n margin-bottom: 8px;\n}\n/* This is the element that displays variants on press+hold */\n.MLK__variant-panel {\n visibility: hidden;\n position: fixed;\n display: flex;\n flex-flow: row wrap-reverse;\n justify-content: center;\n align-content: center;\n margin: 0;\n padding: 0;\n bottom: auto;\n top: 0;\n box-sizing: content-box;\n transform: none;\n z-index: calc(var(--_keyboard-zindex) + 1);\n touch-action: none;\n max-width: 350px;\n background: var(--_variant-panel-background);\n text-align: center;\n border-radius: 6px;\n padding: 6px;\n box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);\n transition: none;\n}\n.MLK__variant-panel.is-visible {\n visibility: visible;\n}\n.MLK__variant-panel.compact {\n --_variant-keycap-length: var(--variant-keycap-length, 50px);\n --_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);\n --_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 10px);\n}\n.MLK__variant-panel .item {\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n font-size: var(--_variant-keycap-font-size);\n height: var(--_variant-keycap-length);\n width: var(--_variant-keycap-length);\n margin: 0;\n box-sizing: border-box;\n border-radius: 5px;\n border: 1px solid transparent;\n background: transparent;\n pointer-events: all;\n cursor: pointer;\n color: var(--_variant-keycap-text);\n fill: currentColor;\n}\n@media (max-height: 412px) {\n .MLK__variant-panel .item {\n --_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);\n --_variant-keycap-length: var(--variant-keycap-length, 50px);\n }\n}\n.MLK__variant-panel .item .ML__latex {\n pointer-events: none;\n}\n.MLK__variant-panel .item.is-active {\n background: var(--_variant-keycap-background-active);\n color: var(--_variant-keycap-text-active);\n}\n.MLK__variant-panel .item.is-pressed {\n background: var(--_variant-keycap-background-pressed);\n color: var(--_variant-keycap-text-pressed);\n}\n.MLK__variant-panel .item.small {\n font-size: var(--_keycap-small-font-size);\n}\n.MLK__variant-panel .item.swatch-button {\n box-sizing: border-box;\n background: #fbfbfb;\n}\n.MLK__variant-panel .item.swatch-button > span {\n display: inline-block;\n margin: 6px;\n width: calc(100% - 12px);\n height: calc(100% - 12px);\n border-radius: 50%;\n}\n.MLK__variant-panel .item.swatch-button:hover {\n background: #f0f0f0;\n}\n.MLK__variant-panel .item.swatch-button:hover > span {\n border-radius: 2px;\n}\n.MLK__variant-panel .item.box > div,\n.MLK__variant-panel .item.box > span {\n border: 1px dashed rgba(0, 0, 0, 0.24);\n}\n.MLK__variant-panel .item .warning {\n min-height: 60px;\n min-width: 60px;\n background: #cd0030;\n color: white;\n padding: 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 5px;\n}\n.MLK__variant-panel .item .warning.is-pressed,\n.MLK__variant-panel .item .warning.is-active {\n background: red;\n}\n.MLK__variant-panel .item .warning svg.svg-glyph {\n width: 50px;\n height: 50px;\n}\n.MLK__variant-panel .item aside {\n font-size: var(--_variant-keycap-aside-font-size);\n line-height: 12px;\n opacity: 0.78;\n padding-top: 2px;\n}\n.MLK__keycap {\n position: relative;\n}\n.MLK__shift {\n display: block;\n position: absolute;\n right: 4px;\n top: 4px;\n font-size: var(--_keycap-shift-font-size);\n color: var(--_keycap-shift-color);\n}\n.hide-shift .MLK__shift {\n display: none;\n}\n@media (max-width: 414px) {\n .MLK__variant-panel {\n max-width: 350px;\n --_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);\n --_variant-keycap-length: var(--variant-keycap-length, 50px);\n }\n}\n/* @xs breakpoint: iPhone 5 */\n@container (max-width: 414px) {\n .MLK__rows {\n --_keycap-gap: max(var(--_keycap-gap, 2px), 2px);\n --_keycap-height: max(var(--_keycap-height), 42px);\n --_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);\n }\n .MLK__toolbar > div > div {\n font-size: 100%;\n margin-left: 2px;\n margin-right: 2px;\n }\n .MLK__rows .shift,\n .MLK__rows .action {\n font-size: 65%;\n }\n .MLK__rows .warning svg.svg-glyph {\n width: 14px;\n height: 14px;\n min-height: 14px;\n }\n}\n@container (max-width: 744px) {\n .MLK__rows {\n --_keycap-gap: max(var(--keycap-gap, 2px), 2px);\n --_keycap-height: max(var(--keycap-height, 52px), 52px);\n --_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);\n }\n .MLK__toolbar > div > div {\n padding-left: 0;\n padding-right: 0;\n }\n .MLK__tooltip::after {\n padding: 8px 16px;\n font-size: 16px;\n }\n .MLK__rows > .MLK__row > div.fnbutton {\n font-size: 16px;\n }\n .MLK__rows > .MLK__row > div.bigfnbutton {\n font-size: calc(var(--_keycap-extra-small-font-size) / 1.55);\n }\n .MLK__rows > .MLK__row > div.small {\n font-size: 13px;\n }\n .MLK__rows > .MLK__row > div > aside {\n display: none;\n }\n .MLK__shift {\n display: none;\n }\n}\n/* Medium breakpoint: larger phones */\n@container (max-width: 768px) {\n .MLK__rows {\n --_keycap-height: max(var(--keycap-height, 42px), 42px);\n }\n .MLK__rows > .MLK__row > div > small {\n font-size: 14px;\n }\n}\n@media (max-height: 768px) {\n .MLK__rows {\n --_keycap-height: max(var(--keycap-height, 42px), 42px);\n }\n .MLK__rows > .MLK__row > div > small {\n font-size: 14px;\n }\n}\n@container (max-width: 1444px) {\n .MLK__rows .if-wide {\n display: none;\n }\n}\n@media (prefers-color-scheme: dark) {\n .ML__keyboard {\n --_accent-color: var(--keyboard-accent-color, #0b5c9c);\n --_background: var(--keyboard-background, #151515);\n --_border: var(--keyboard-border, transparent);\n --_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);\n --_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);\n --keyboard-toolbar-background-hover: #303030;\n --_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);\n --_keycap-background: var(--keycap-background, #1f2022);\n --_keycap-background-hover: var(--keycap-background-hover, #2f3032);\n --_keycap-border: var(--_keycap-border, transparent);\n --_keycap-border-bottom: var(--_keycap-border-bottom, transparent);\n --_keycap-text: var(--keycap-text, #e3e4e8);\n --_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);\n --_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);\n --_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);\n --keycap-secondary-border: transparent;\n --keycap-secondary-border-bottom: transparent;\n --_keycap-secondary-border: var(--keycap-secondary-border, transparent);\n --_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);\n --_variant-panel-background: var(--variant-panel-background, #303030);\n --_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);\n }\n}\n/* Same as the media query, but with a class */\n[theme='dark'] .ML__keyboard {\n --_accent-color: var(--keyboard-accent-color, #0b5c9c);\n --_background: var(--keyboard-background, #151515);\n --_border: var(--keyboard-border, transparent);\n --_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);\n --_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);\n --keyboard-toolbar-background-hover: #303030;\n --_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);\n --_keycap-background: var(--keycap-background, #1f2022);\n --_keycap-background-hover: var(--keycap-background-hover, #2f3032);\n --_keycap-border: var(--_keycap-border, transparent);\n --_keycap-border-bottom: var(--_keycap-border-bottom, transparent);\n --_keycap-text: var(--keycap-text, #e3e4e8);\n --_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);\n --_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);\n --_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);\n --keycap-secondary-border: transparent;\n --keycap-secondary-border-bottom: transparent;\n --_keycap-secondary-border: var(--keycap-secondary-border, transparent);\n --_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);\n --_variant-panel-background: var(--variant-panel-background, #303030);\n --_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);\n}\n[theme='light'] .ML__keyboard {\n --_accent-color: var(--keyboard-accent-color, #0c75d8);\n --_background: var(--keyboard-background, #cacfd7);\n --_border: var(--keyboard-border, #ddd);\n --_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);\n --_toolbar-background: var(--keyboard-toolbar-background, transparent);\n --_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);\n --_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);\n --_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);\n --_keycap-background: var(--keycap-background, white);\n --_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);\n --_keycap-background-active: var(--keycap-background-active, var(--_accent-color));\n --_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));\n --_keycap-border: var(--_keycap-border, #e5e6e9);\n --_keycap-border-bottom: var(--_keycap-border-bottom, #8d8f92);\n --_keycap-text: var(--keycap-text, #000);\n --_keycap-text-active: var(--keycap-text-active, #fff);\n --_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));\n --_keycap-text-pressed: var(--keycap-text-pressed, #fff);\n --_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));\n --_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);\n --_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);\n --_keycap-secondary-text: var(--keycap-secondary-text, #060707);\n --_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);\n --_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);\n --_variant-panel-background: var(--variant-panel-background, #fff);\n --_variant-keycap-text: var(--variant-keycap-textvar, var(--_keycap-text));\n --_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));\n --_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));\n}\n";break;case"ui":t=":host {\n --primary-color: #5898ff;\n --primary-color-dimmed: #c0c0f0;\n --primary-color-dark: var(--blue-500);\n --primary-color-light: var(--blue-100);\n --primary-color-reverse: #ffffff;\n --secondary-color: #ff8a65;\n --secondary-color-dimmed: #f0d5c5;\n --secondary-color-dark: var(--orange-500);\n --secondary-color-light: var(--orange-100);\n --secondary-color-reverse: #ffffff;\n --link-color: #5898ff;\n --link-color-dimmed: #c5c5c5;\n --link-color-dark: #121212;\n --link-color-light: #e2e2e2;\n --link-color-reverse: #ffffff;\n --semantic-blue: var(--blue-700);\n --semantic-red: var(--red-400);\n --semantic-orange: var(--orange-400);\n --semantic-green: var(--green-700);\n --neutral-100: #f5f5f5;\n --neutral-200: #eeeeee;\n --neutral-300: #e0e0e0;\n --neutral-400: #bdbdbd;\n --neutral-500: #9e9e9e;\n --neutral-600: #757575;\n --neutral-700: #616161;\n --neutral-800: #424242;\n --neutral-900: #212121;\n --red-25: #fff8f7;\n --red-50: #fff1ef;\n --red-100: #ffeae6;\n --red-200: #ffcac1;\n --red-300: #ffa495;\n --red-400: #ff7865;\n --red-500: #f21c0d;\n --red-600: #e50018;\n --red-700: #d30024;\n --red-800: #bd002c;\n --red-900: #a1002f;\n --orange-25: #fffbf8;\n --orange-50: #fff7f1;\n --orange-100: #fff3ea;\n --orange-200: #ffe1c9;\n --orange-300: #ffcca2;\n --orange-400: #ffb677;\n --orange-500: #fe9310;\n --orange-600: #f58700;\n --orange-700: #ea7c00;\n --orange-800: #dc6d00;\n --orange-900: #ca5b00;\n --brown-25: #fff8ef;\n --brown-50: #fff1df;\n --brown-100: #ffe9ce;\n --brown-200: #ebcca6;\n --brown-300: #cdaf8a;\n --brown-400: #af936f;\n --brown-500: #856a47;\n --brown-600: #7f5e34;\n --brown-700: #78511f;\n --brown-800: #6e4200;\n --brown-900: #593200;\n --yellow-25: #fffdf9;\n --yellow-50: #fffcf2;\n --yellow-100: #fffaec;\n --yellow-200: #fff2ce;\n --yellow-300: #ffe8ab;\n --yellow-400: #ffdf85;\n --yellow-500: #ffcf33;\n --yellow-600: #f1c000;\n --yellow-700: #dfb200;\n --yellow-800: #c9a000;\n --yellow-900: #ad8a00;\n --lime-25: #f4ffee;\n --lime-50: #e9ffdd;\n --lime-100: #ddffca;\n --lime-200: #a8fb6f;\n --lime-300: #94e659;\n --lime-400: #80d142;\n --lime-500: #63b215;\n --lime-600: #45a000;\n --lime-700: #268e00;\n --lime-800: #007417;\n --lime-900: #005321;\n --green-25: #f5fff5;\n --green-50: #ebffea;\n --green-100: #e0ffdf;\n --green-200: #a7ffa7;\n --green-300: #5afa65;\n --green-400: #45e953;\n --green-500: #17cf36;\n --green-600: #00b944;\n --green-700: #00a34a;\n --green-800: #008749;\n --green-900: #00653e;\n --teal-25: #f3ffff;\n --teal-50: #e6fffe;\n --teal-100: #d9fffe;\n --teal-200: #8dfffe;\n --teal-300: #57f4f4;\n --teal-400: #43e5e5;\n --teal-500: #17cfcf;\n --teal-600: #00c2c0;\n --teal-700: #00b5b1;\n --teal-800: #00a49e;\n --teal-900: #009087;\n --cyan-25: #f7fcff;\n --cyan-50: #eff8ff;\n --cyan-100: #e7f5ff;\n --cyan-200: #c2e6ff;\n --cyan-300: #95d5ff;\n --cyan-400: #61c4ff;\n --cyan-500: #13a7ec;\n --cyan-600: #069eda;\n --cyan-700: #0095c9;\n --cyan-800: #0088b2;\n --cyan-900: #0a7897;\n --blue-25: #f7faff;\n --blue-50: #eef5ff;\n --blue-100: #e5f1ff;\n --blue-200: #bfdbff;\n --blue-300: #92c2ff;\n --blue-400: #63a8ff;\n --blue-500: #0d80f2;\n --blue-600: #0077db;\n --blue-700: #006dc4;\n --blue-800: #0060a7;\n --blue-900: #005086;\n --indigo-25: #f8f7ff;\n --indigo-50: #f1efff;\n --indigo-100: #eae7ff;\n --indigo-200: #ccc3ff;\n --indigo-300: #ac99ff;\n --indigo-400: #916aff;\n --indigo-500: #63c;\n --indigo-600: #5a21b2;\n --indigo-700: #4e0b99;\n --indigo-800: #3b0071;\n --indigo-900: #220040;\n --purple-25: #fbf7ff;\n --purple-50: #f8f0ff;\n --purple-100: #f4e8ff;\n --purple-200: #e4c4ff;\n --purple-300: #d49aff;\n --purple-400: #c36aff;\n --purple-500: #a219e6;\n --purple-600: #9000c4;\n --purple-700: #7c009f;\n --purple-800: #600073;\n --purple-900: #3d0043;\n --magenta-25: #fff8fb;\n --magenta-50: #fff2f6;\n --magenta-100: #ffebf2;\n --magenta-200: #ffcddf;\n --magenta-300: #ffa8cb;\n --magenta-400: #ff7fb7;\n --magenta-500: #eb4799;\n --magenta-600: #da3689;\n --magenta-700: #c82179;\n --magenta-800: #b00065;\n --magenta-900: #8a004c;\n}\n@media (prefers-color-scheme: dark) {\n :host {\n --semantic-blue: var(--blue-700);\n --semantic-red: var(--red-400);\n --semantic-orange: var(--orange-400);\n --semantic-green: var(--green-700);\n --semantic-bg-blue: var(--blue-25);\n --semantic-bg-red: var(--red-25);\n --semantic-bg-orange: var(--orange-25);\n --semantic-bg-green: var(--green-25);\n --neutral-100: #121212;\n --neutral-200: #424242;\n --neutral-300: #616161;\n --neutral-400: #757575;\n --neutral-500: #9e9e9e;\n --neutral-600: #bdbdbd;\n --neutral-700: #e0e0e0;\n --neutral-800: #eeeeee;\n --neutral-900: #f5f5f5;\n }\n}\n:host([theme='dark']) {\n --semantic-blue: var(--blue-700);\n --semantic-red: var(--red-400);\n --semantic-orange: var(--orange-400);\n --semantic-green: var(--green-700);\n --semantic-bg-blue: var(--blue-25);\n --semantic-bg-red: var(--red-25);\n --semantic-bg-orange: var(--orange-25);\n --semantic-bg-green: var(--green-25);\n --neutral-100: #121212;\n --neutral-200: #424242;\n --neutral-300: #616161;\n --neutral-400: #757575;\n --neutral-500: #9e9e9e;\n --neutral-600: #bdbdbd;\n --neutral-700: #e0e0e0;\n --neutral-800: #eeeeee;\n --neutral-900: #f5f5f5;\n}\n/* @media (prefers-color-scheme: dark) {\n :host {\n --label-color: #fff;\n --active-label-color: #000;\n --menu-bg: #525252;\n --active-bg: #5898ff;\n --active-bg-dimmed: #5c5c5c;\n }\n} */\n:host {\n --ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol';\n --ui-font-size: 14px;\n --ui-line-height: 1.5;\n --ui-letter-spacing: 0.007em;\n --mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',\n 'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;\n --ui-layer-1: var(--neutral-100);\n --ui-layer-2: var(--neutral-200);\n --ui-layer-3: var(--neutral-300);\n --ui-layer-4: var(--neutral-400);\n --ui-layer-5: var(--neutral-500);\n --ui-layer-6: var(--neutral-600);\n --ui-border-color: var(--primary-color);\n --ui-border-radius: 4px;\n --ui-text: var(--neutral-900);\n --ui-text-secondary: var(--neutral-700);\n --ui-text-placeholder: var(--neutral-500);\n --ui-text-muted: var(--neutral-300);\n /** A field is a UI element in which a user can type data, for\n * example an input or textarea element.\n */\n --ui-field-bg: var(--neutral-100);\n --ui-field-bg-hover: var(--neutral-100);\n --ui-field-bg-disabled: var(--neutral-300);\n --ui-field-bg-invalid: var(--red-100);\n --ui-field-bg-focus: var(--neutral-100);\n --ui-field-border: 0.5px solid var(--border-color);\n --ui-field-border-hover: 0.5px solid var(--border-color);\n --ui-field-border-disabled: 0.5px solid var(--border-color);\n --ui-field-border-invalid: 0.5px solid var(--border-color);\n --ui-field-border-focus: 0.5px solid var(--border-color);\n --ui-menu-bg: var(--neutral-100);\n --ui-menu-text: var(--neutral-900);\n --ui-menu-bg-hover: var(--neutral-200);\n --ui-menu-text-hover: var(--neutral-900);\n /** The `active` state is used for the state of menu items\n * when they are selected.\n */\n --ui-menu-bg-active: var(--primary-color);\n --ui-menu-text-active: var(--primary-color-reverse);\n /** The `active-muted` set is used for the state of\n * submenus when they are open.\n */\n --ui-menu-bg-active-muted: var(--neutral-300);\n --ui-menu-text-active-muted: var(--neutral-900);\n /* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),\n0 2px 6px 2px rgba(60, 64, 67, 0.149); */\n --ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);\n --ui-menu-divider: 0.5px solid #c7c7c7;\n /* var(--neutral-300); */\n --ui-menu-z-index: 10000;\n --page-bg: var(--neutral-100);\n --content-bg: var(--neutral-200);\n}\n@media (prefers-color-scheme: dark) {\n :host {\n --ui-menu-bg: var(--neutral-200);\n }\n}\n:host([theme='dark']) {\n --ui-menu-bg: var(--neutral-200);\n}\n/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font. \n Noto is a Linux/Android font.\n*/\n:lang(zh-cn),\n:lang(zh-sg),\n:lang(zh-my),\n:lang(zh) {\n --ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',\n 'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',\n 'Microsoft YaHei New', 'Microsoft Yahei', '微软雅黑', SimSun, '宋体',\n STXihei, '华文细黑', sans-serif;\n}\n:lang(zh-tw),\n:lang(zh-hk),\n:lang(zh-mo) {\n --ui-font-family: -apple-system, system-ui, 'Noto Sans',\n 'Microsoft JhengHei UI', 'Microsoft JhengHei', '微軟正黑體', '新細明體',\n 'PMingLiU', '細明體', 'MingLiU', sans-serif;\n}\n:lang(ja),\n:lang(ja-jp),\n:lang(ja-jp-mac) {\n --ui-font-family: -apple-system, system-ui, 'Hiragino Sans',\n 'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',\n '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'メイリオ', Meiryo,\n 'MS Pゴシック', 'MS PGothic', sans-serif;\n}\n:lang(ko),\n:lang(ko-kr),\n:lang(ko-kr-std) {\n --ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',\n 'Noto Sans', 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo',\n '애플 SD 산돌고딕 Neo', 'Apple SD 산돌고딕 Neo', '돋움', Dotum, sans-serif;\n}\n:lang(ko-kr-apple) {\n --ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',\n 'Noto Sans', 'Apple SD Gothic Neo', '애플 SD 산돌고딕 Neo',\n 'Apple SD 산돌고딕 Neo', '돋움', Dotum, sans-serif;\n}\n:lang(zh-cn),\n:lang(zh-sg),\n:lang(zh-my),\n:lang(zh),\n:lang(zh-tw),\n:lang(zh-hk),\n:lang(zh-mo),\n:lang(ja),\n:lang(ja-jp),\n:lang(ja-jp-mac),\n:lang(ko),\n:lang(ko-kr),\n:lang(ko-kr-std),\n:lang(ko-kr-apple) {\n --ui-font-size: 1rem;\n --ui-line-height: 1.7;\n --ui-letter-spacing: 0;\n}\n:dir(rtl) {\n --ui-line-height: auto;\n --ui-letter-spacing: 0;\n}\n";break;case"menu":t=".ui-menu *,\n.ui-menu ::before,\n.ui-menu ::after {\n box-sizing: border-box;\n}\n.ui-menu {\n display: none;\n color-scheme: light dark;\n -webkit-user-select: none;\n /* Important: Safari iOS doesn't respect user-select */\n user-select: none;\n cursor: default;\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0 0 0 0);\n --active-label-color: #fff;\n /* ui-menu-text-active */\n --label-color: #121212;\n /* ui-menu-text */\n --menu-bg: #e2e2e2;\n /* ui-menu-background */\n --active-bg: #5898ff;\n /* ui-menu-background-active */\n --active-bg-dimmed: #c5c5c5;\n /* ui-menu-background-active-muted */\n}\n/** Use the :where pseudo selector to make the specificity of the\n * selector 0, so that it can be overridden by the user.\n */\n:where(.ui-menu-container) {\n position: absolute;\n overflow: visible;\n width: auto;\n height: auto;\n z-index: 10000;\n border-radius: 8px;\n background: var(--ui-menu-bg);\n box-shadow: var(--ui-menu-shadow);\n list-style: none;\n padding: 6px 0 6px 0;\n margin: 0;\n user-select: none;\n cursor: default;\n color: var(--ui-menu-text);\n font-weight: normal;\n font-style: normal;\n text-shadow: none;\n text-transform: none;\n letter-spacing: 0;\n outline: none;\n opacity: 1;\n /* The [popover] elements have a 1px solid black border. Ugh. */\n border: none;\n width: fit-content;\n height: fit-content;\n}\n:where(.ui-menu-container > li) {\n display: flex;\n flex-flow: row;\n align-items: center;\n padding: 1px 7px 1px 7px;\n margin-top: 0;\n margin-left: 6px;\n margin-right: 6px;\n border-radius: 4px;\n white-space: nowrap;\n position: relative;\n outline: none;\n fill: currentColor;\n user-select: none;\n cursor: default;\n text-align: left;\n color: inherit;\n font-family: var(--ui-font-family);\n font-size: var(--ui-font-size);\n line-height: var(--ui-line-height);\n letter-spacing: var(--ui-letter-spacing);\n}\n:where(.ui-menu-container > li > .label) {\n appearance: none;\n background: none;\n outline: none;\n width: 100%;\n margin: 0;\n padding: 1px 2px 1px 1px;\n overflow: visible;\n border: 1px solid transparent;\n white-space: nowrap;\n text-align: start;\n}\n:where(.ui-menu-container > li:has(.heading)) {\n margin-top: 0.5em;\n}\n:where(.ui-menu-container > li > .label.heading) {\n font-weight: bold;\n opacity: 0.4;\n}\n:where(.ui-menu-container > li.indent > .label) {\n margin-inline-start: 12px;\n}\n:where(.ui-menu-container > li > .label.indent) {\n margin-inline-start: 12px;\n}\n:where(.ui-menu-container > li[role='divider']) {\n border-bottom: 1px solid var(--ui-menu-divider);\n border-radius: 0;\n padding: 0;\n margin-left: 15px;\n margin-right: 15px;\n padding-top: 5px;\n margin-bottom: 5px;\n width: calc(100% - 30px);\n /** 100% - (margin-left + margin-right) */\n}\n:where(.ui-menu-container > li[aria-disabled='true']) {\n opacity: 0.5;\n}\n:where(.ui-menu-container > li.active) {\n background: var(--ui-menu-bg-active);\n background: -apple-system-control-accent;\n color: var(--ui-menu-text-active);\n}\n:where(.ui-menu-container > li.active.is-submenu-open) {\n background: var(--ui-menu-bg-active-muted);\n color: inherit;\n}\n:where(.ui-menu-container > li[aria-haspopup='true'] > .label) {\n padding-inline-end: 0;\n}\n:where(.ui-menu-container > li[aria-haspopup='true'].active::after) {\n color: var(--ui-menu-text-active);\n}\n/** Keyboard shortcut */\n:where(.ui-menu-container > li > kbd) {\n font-family: var(--ui-font-family);\n margin-inline-start: 12px;\n opacity: 0.4;\n}\n:where(.ui-menu-container > li.active > kbd) {\n opacity: 0.85;\n}\n.ui-trailing-chevron {\n display: flex;\n margin-inline-start: 24px;\n width: 10px;\n height: 10px;\n margin-bottom: 4px;\n}\n.ui-trailing-chevron:dir(rtl) {\n transform: scaleX(-1);\n}\n.ui-checkmark {\n display: flex;\n margin-inline-end: -11px;\n margin-inline-start: -4px;\n margin-top: 2px;\n width: 16px;\n height: 16px;\n}\n.ui-mixedmark {\n display: flex;\n margin-inline-end: -11px;\n margin-inline-start: -4px;\n margin-top: 2px;\n width: 16px;\n height: 16px;\n}\n"}return t}function rx(e){return tx||(tx={}),tx[e]||(tx[e]=new CSSStyleSheet,tx[e].replaceSync(ix(e))),tx[e]}function ox(e){var t;if(!("adoptedStyleSheets"in document)){if(window.document.getElementById(`mathlive-style-${e}`))return;const t=window.document.createElement("style");return t.id=`mathlive-style-${e}`,t.append(window.document.createTextNode(ix(e))),void window.document.head.appendChild(t)}if(nx||(nx={}),0!==(null!=(t=nx[e])?t:0))nx[e]+=1;else{const t=rx(e);document.adoptedStyleSheets=[...document.adoptedStyleSheets,t],nx[e]=1}}function ax(e){if("adoptedStyleSheets"in document&&(null==nx?void 0:nx[e])&&(nx[e]-=1,nx[e]<=0)){const t=tx[e];document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==t))}}var sx=class e extends _w{constructor(e){var t;super(rp(ip({},e),{type:"accent",body:null!=(t=e.body)?t:void 0})),e.accentChar?this.accent=e.accentChar:this.svgAccent=null==e?void 0:e.svgAccent,this.skipBoundary=!0,this.captureSelection=!0}static fromJson(t){return new e(t)}toJson(){return rp(ip({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(e){var t;const n=new ww({parent:e,mathstyle:"cramp"},this.style),i=null!=(t=_w.createBox(n,this.body))?t:new nw("▢",{style:this.style});let r=0;!this.hasEmptyBranch("body")&&2===this.body.length&&this.body[1].isCharacterBox()&&(r=i.skew);let o,a=Math.min(i.height,Eb);if(this.svgAccent)o=aw(this.svgAccent),a=n.metrics.bigOpSpacing1-a;else if(this.accent){const e=new nw(this.accent,{fontFamily:"Main-Regular"});e.italic=0;const t=8407===this.accent?" ML__accent-vec":"";o=new nw(new nw(e),{classes:"ML__accent-body"+t})}o=new lw({shift:0,children:[{box:new nw(i)},-a,{box:o,marginLeft:i.left+2*r,classes:["ML__center"]}]});const s=new nw(o,{type:"lift"});return this.caret&&(s.caret=this.caret),this.bind(n,s.wrap(n)),this.attachSupsub(n,{base:s})}},lx={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},cx=Object.fromEntries(Object.entries(lx).map((([e,t])=>[t,e])));function ux(e){var t;return null!=(t={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"∣":8739,"∥":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[e])?t:e.codePointAt(0)}function hx(e,t,n,i,r){var o,a;const s=new ww({parent:i,mathstyle:"textstyle"},null==r?void 0:r.style),l=new nw(ux(e),{fontFamily:`Size${t}-Regular`,isSelected:r.isSelected,classes:(null!=(o=r.classes)?o:"")+` ML__delim-size${t}`,type:null!=(a=r.type)?a:"ignore"}).wrap(s);return n&&l.setTop((1-s.scalingFactor)*Pb),l}function dx(e,t,n,i,r){var o;let a,s,l,c;a=l=c=ux(e),s=null;let u="Size1-Regular";"\\vert"===e||"\\lvert"===e||"\\rvert"===e||"\\mvert"===e||"\\mid"===e?l=a=c=8739:"\\Vert"===e||"\\lVert"===e||"\\rVert"===e||"\\mVert"===e||"\\|"===e?l=a=c=8741:"\\uparrow"===e?l=c=9168:"\\Uparrow"===e?l=c=8214:"\\downarrow"===e?a=l=9168:"\\Downarrow"===e?a=l=8214:"\\updownarrow"===e?(a=8593,l=9168,c=8595):"\\Updownarrow"===e?(a=8657,l=8214,c=8659):"["===e||"\\lbrack"===e?(a=9121,l=9122,c=9123,u="Size4-Regular"):"]"===e||"\\rbrack"===e?(a=9124,l=9125,c=9126,u="Size4-Regular"):"\\lfloor"===e||"⌊"===e?(l=a=9122,c=9123,u="Size4-Regular"):"\\lceil"===e||"⌈"===e?(a=9121,l=c=9122,u="Size4-Regular"):"\\rfloor"===e||"⌋"===e?(l=a=9125,c=9126,u="Size4-Regular"):"\\rceil"===e||"⌉"===e?(a=9124,l=c=9125,u="Size4-Regular"):"("===e||"\\lparen"===e?(a=9115,l=9116,c=9117,u="Size4-Regular"):")"===e||"\\rparen"===e?(a=9118,l=9119,c=9120,u="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(a=9127,s=9128,c=9129,l=9130,u="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a=9131,s=9132,c=9133,l=9130,u="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(a=9127,c=9129,l=9130,u="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(a=9131,c=9133,l=9130,u="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(a=9127,c=9133,l=9130,u="Size4-Regular"):"\\rmoustache"===e||"⎱"===e?(a=9131,c=9129,l=9130,u="Size4-Regular"):"\\surd"===e?(a=57345,c=9143,l=57344,u="Size4-Regular"):"\\ulcorner"===e?(a=9484,l=c=32):"\\urcorner"===e?(a=9488,l=c=32):"\\llcorner"===e?(c=9492,l=a=32):"\\lrcorner"===e&&(a=9496,l=a=32);const h=Tb(a,u),d=h.height+h.depth,p=Tb(l,u),f=p.height+p.depth,g=Tb(c,u),m=g.height+g.depth;let v=0,y=1;if(null!==s){const e=Tb(s,u);v=e.height+e.depth,y=2}const b=d+m+v,w=Math.max(0,Math.ceil((t-b)/(y*f))),x=b+w*y*f;let S=Pb;n&&(S*=i.scalingFactor);const k=x/2-S,_=[];_.push({box:new nw(c,{fontFamily:u})}),_.push(-.008);const C=new nw(l,{fontFamily:u});if(null===s)for(let e=0;e","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),mx=[0,1.2,1.8,2.4,3];var vx=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],yx=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],bx=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];function wx(e,t,n,i,r,o){if(!t||0===t.length||"."===t)return Sx(r);let a;"<"===t||"\\lt"===t?t="\\langle":">"!==t&&"\\gt"!==t||(t="\\rangle"),a=gx.has(t)?vx:px.has(t)?bx:yx;const s=function(e,t,n,i){for(let o={"-4":0,"-3":1,0:2}[i.mathstyle.sizeDelta];ot)return n[o]}var r;return n[n.length-1]}(ux(t),n,a,r),l=new ww({parent:r,mathstyle:s.mathstyle},null==o?void 0:o.style);return"small"===s.type?function(e,t,n,i){var r;const o=new nw(ux(e),{fontFamily:"Main-Regular",isSelected:i.isSelected,classes:"ML__small-delim "+(null!=(r=i.classes)?r:"")}).wrap(t);return n&&o.setTop((1-t.scalingFactor)*Pb),o}(t,l,i,rp(ip({},o),{type:e})):"large"===s.type?hx(t,s.size,i,l,rp(ip({},o),{type:e})):(console.assert("stack"===s.type),dx(t,n,i,l,rp(ip({},o),{type:e})))}function xx(e,t,n,i,r,o){if("."===t)return Sx(r,null==o?void 0:o.classes);const a=Pb*r.scalingFactor,s=Math.max(n-a,i+a);return wx(e,t,Math.max(s/500*901,2*s-.5),!0,r,o)}function Sx(e,t){const n=new nw(null,{classes:" nulldelimiter "+(null!=t?t:""),type:"ignore"});return n.width=e.getRegisterAsEm("nulldelimiterspace"),n.wrap(new ww({parent:e,mathstyle:"textstyle"}))}var kx=class e extends _w{constructor(e){var t;super({type:"placeholder",command:"\\placeholder",mode:null!=(t=null==e?void 0:e.mode)?t:"math",style:null==e?void 0:e.style}),this.captureSelection=!0}static fromJson(t){return new e(t)}toJson(){return super.toJson()}render(e){let t;return this.value=e.placeholderSymbol,t="function"==typeof e.renderPlaceholder?e.renderPlaceholder(e):this.createBox(e),this.caret&&(t.classes+=" ML__placeholder-selected"),t}_serialize(e){return e.skipPlaceholders?"":"\\placeholder{}"}},_x=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],Cx=["cases","dcases","rcases"],Px=["align","align*","aligned","gather","gathered","split"],Ex=["array","subequations","eqnarray"];function Mx(e){return _x.includes(e)}var Lx=class e extends _w{constructor(e,t,n,i={}){var r;super({type:"array"}),this.environmentName=e,this.rowGaps=n,i.mathstyleName&&(this.mathstyleName=i.mathstyleName),i.columns&&(0===i.columns.length?this.colFormat=[{align:"l"}]:this.colFormat=i.columns),this.colFormat||(this.colFormat=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]),this.array=function(e,t,n){let i=0;for(const e of n)"align"in e&&(i+=1);let r=0;const o=[];for(const n of t){let t=0;for(r=Math.max(r,Math.min(n.length,i));t"first"===e.type))),r.push(i)),t+=1}o.push(r)}}o.length>0&&1===o[o.length-1].length&&1===o[o.length-1][0].length&&"first"===o[o.length-1][0][0].type&&o.pop();const a=[];for(const t of o){if(t.length!==r)for(let n=t.length;ne.map((e=>e.map((e=>e.toJson())))))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return void 0!==this.arraystretch&&(e.arraystretch=this.arraystretch),void 0!==this.arraycolsep&&(e.arraycolsep=this.arraycolsep),this.leftDelim&&(e.leftDelim=this.leftDelim),this.rightDelim&&(e.rightDelim=this.rightDelim),e}branch(e){var t;if(kw(e))return null!=(t=this.array[e[0]][e[1]])?t:void 0}createBranch(e){var t;return kw(e)?(this.isDirty=!0,null!=(t=this.branch(e))?t:[]):[]}get rowCount(){return this.array.length}get colCount(){return this.array[0].length}get maxColumns(){return this.colFormat.filter((e=>Boolean(e.align))).length}removeBranch(e){if(Sw(e))return super.removeBranch(e);const t=this.branch(e);return this.array[e[0]][e[1]]=void 0,t.forEach((e=>{e.parent=void 0,e.parentBranch=void 0})),console.assert("first"===t[0].type),t.shift(),this.isDirty=!0,t}get hasChildren(){return this.children.length>0}get children(){const e=[];for(const t of this.array)for(const n of t)if(n)for(const t of n)e.push(...t.children),e.push(t);return[...e,...super.children]}render(e){var t,n,i,r,o,a;const s=new ww({parent:e,mathstyle:this.mathstyleName},this.style),l=s.getRegisterAsEm("arrayrulewidth"),c=s.getRegisterAsEm("arraycolsep"),u=s.getRegisterAsEm("doublerulesep"),h=null!=(n=null!=(t=this.arraystretch)?t:s.getRegisterAsNumber("arraystretch"))?n:1;let d="number"==typeof this.arraycolsep?this.arraycolsep:c;if("small"===this.colSeparationType){d=new ww({parent:e,mathstyle:"scriptstyle"}).scalingFactor/e.scalingFactor*.2778}const p=1.2*h,f=.7*p,g=.3*p;let m=0;const v=[];let y=0;const b=this.array.length;for(let e=0;e0&&(c+=g,a=Math.max(a,c),c=0),e0&&x.push(new lw({individualShift:t}))}const S=[];let k=!1,_=!1,C=0,P=!this.leftDelim;const{colFormat:E}=this;for(const t of E){if("align"in t&&C>=x.length)break;if("align"in t)k?S.push(Tx(2*d)):(_||P)&&S.push(Tx(d)),S.push(new nw(x[C],{classes:"col-align-"+t.align})),C++,k=!0,_=!1,P=!1;else if("gap"in t){if("number"==typeof t.gap)S.push(Tx(t.gap));else{const n=Dx(e,v,w,t.gap);n&&S.push(n)}k=!1,_=!1,P=!1}else if("separator"in t){const e=new nw(null,{classes:"vertical-separator"});e.height=m,e.setStyle("height",m,"em"),e.setStyle("border-right",`${l}em ${t.separator} currentColor`),e.setStyle("vertical-align",-(m-w),"em");let n=0;_?n=u-l:k&&(n=d-l),e.left=n,S.push(e),k=!1,_=!0,P=!1}}k&&!this.rightDelim&&S.push(Tx(d));const M=new nw(S,{classes:"mtable"});if(!(this.leftDelim&&"."!==this.leftDelim||this.rightDelim&&"."!==this.rightDelim))return this.caret&&(M.caret=this.caret),this.bind(e,M);const L=M.height,A=M.depth,T=this.bind(e,new nw([this.bind(e,xx("open",null!=(o=this.leftDelim)?o:".",L,A,s,{isSelected:this.isSelected})),M,this.bind(e,xx("close",null!=(a=this.rightDelim)?a:".",L,A,s,{isSelected:this.isSelected}))],{type:"ord"}));return T?(T.setStyle("display","inline-block"),this.caret&&(T.caret=this.caret),this.bind(e,this.attachSupsub(e,{base:T}))):null}_serialize(e){var t;const n=[];if("lines"===this.environmentName?n.push("{\\displaylines"):n.push(`\\begin{${this.environmentName}}`),"array"===this.environmentName){if(n.push("{"),void 0!==this.colFormat)for(const e of this.colFormat)"align"in e&&"string"==typeof e.align?n.push(e.align):"separator"in e&&"solid"===e.separator?n.push("|"):"separator"in e&&"dashed"===e.separator&&n.push(":");n.push("}")}for(let i=0;i0&&n.push(" & "),n.push(_w.serialize(this.array[i][t],e));if(ie);const t=this.array.splice(e,1);for(const e of t)for(const t of e)if(t)for(const e of t)e.parent=void 0,e.parentBranch=void 0;for(let t=e;te);for(const t of this.array){const n=t.splice(e,1);for(const e of n)if(e)for(const t of e)t.parent=void 0,t.parentBranch=void 0}for(let t=0;t"first"!==e.type)));return e}};function Ax(e){const t=new _w({type:"first",mode:e.mode});t.parent=e;const n=new kx;return n.parent=e,[t,n]}function Tx(e){const t=new nw(null,{classes:"arraycolsep"});return t.width=e,t}function Dx(e,t,n,i){if(!i)return null;const r=[];for(const o of t){const t=_w.createBox(e,i,{type:"ignore"});t&&(t.depth=o.depth,t.height=o.height,r.push({box:t,shift:o.pos-n}))}return new lw({individualShift:r}).wrap(e)}var Nx=class e extends _w{constructor(e){super({mode:e.mode,command:e.command,style:e.style,body:e.body,type:"box"}),this.framecolor=e.framecolor,this.backgroundcolor=e.backgroundcolor,this.padding=e.padding,this.offset=e.offset,this.border=e.border}static fromJson(t){return new e(t)}toJson(){return rp(ip({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(e){var t,n,i,r;const o=_w.createBox(e,this.body,{type:"lift"});if(!o)return null;const a=e.toEm(null!=(t=this.offset)?t:{dimension:0});o.depth+=a,o.setStyle("display","inline-block"),o.setStyle("position","relative"),o.setStyle("height",Math.floor(100*o.height+o.depth)/100,"em"),o.setStyle("vertical-align",-Math.floor(100*o.height)/100,"em");const s=new ww({parent:e},this.style),l=s.toEm(null!=(n=this.padding)?n:{register:"fboxsep"}),c=new nw(null,{classes:"ML__box"});c.height=o.height+l,c.depth=o.depth+l,c.setStyle("box-sizing","border-box"),c.setStyle("position","absolute"),c.setStyle("top",.3-l,"em"),c.setStyle("left",0),c.setStyle("height",c.height+c.depth,"em"),c.setStyle("width","100%"),this.backgroundcolor&&c.setStyle("background-color",null!=(i=s.toColor(this.backgroundcolor))?i:"transparent"),this.framecolor&&c.setStyle("border",`${s.getRegisterAsEm("fboxrule",2)}em solid ${null!=(r=s.toColor(this.framecolor))?r:"black"}`),this.border&&c.setStyle("border",this.border);const u=new nw([c,o],{type:"lift"});return u.setStyle("display","inline-block"),u.setStyle("position","relative"),u.setStyle("line-height",0),u.height=o.height+l+(a>0?a:0),u.depth=o.depth+l+(a<0?-a:0),u.setStyle("padding-left",l,"em"),u.setStyle("padding-right",l,"em"),u.setStyle("height",Math.floor(100*(o.height+o.depth+2*l+Math.abs(a)))/100,"em"),u.setStyle("margin-top",-l,"em"),u.setStyle("top",Math.floor(100*(o.depth-o.height+2*l-a))/100,"em"),u.setStyle("vertical-align",Math.floor(100*(o.depth+2*l))/100,"em"),this.caret&&(u.caret=this.caret),this.attachSupsub(e,{base:u})}_serialize(e){return e.skipStyles?Kb([this.bodyToLatex(e),this.supsubToLatex(e)]):super._serialize(e)}},Ix=class e extends _w{constructor(e,t){var n;super({type:"composition",mode:null!=(n=null==t?void 0:t.mode)?n:"math",value:e})}static fromJson(t){return new e(t.value,t)}toJson(){return super.toJson()}get computedStyle(){return{}}render(e){const t=new nw(this.value,{classes:"ML__composition",type:"composition"});return this.bind(e,t),this.caret&&(t.caret=this.caret),t}_serialize(e){return""}},Bx=class e extends _w{constructor(e){super({type:"error",value:e,command:e,mode:"math"}),this.verbatimLatex=e}static fromJson(t){return new e(t.command)}toJson(){return super.toJson()}render(e){const t=this.createBox(e,{classes:"ML__error"});return this.caret&&(t.caret=this.caret),t}},Rx=class e extends _w{constructor(e,t,n){super({type:"group",mode:t,style:n}),this.body=e,this.boxType=e.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,e&&1===e.length&&","===e[0].command&&(this.captureSelection=!0)}static fromJson(t){return new e(t.body,t.mode,t.style)}render(e){const t=_w.createBox(e,this.body,{type:this.boxType});return t?(this.caret&&(t.caret=this.caret),this.bind(e,t)):null}_serialize(e){if(!(e.expandMacro||e.skipStyles||e.skipPlaceholders)&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const t=Jp(this.command,this.mode);return(null==t?void 0:t.serialize)?t.serialize(this,e):`{${this.bodyToLatex(e)}}`}},Ox=class e extends _w{constructor(e,t,n){super({type:"leftright",style:n.style,displayContainsHighlight:!0}),this.variant=e,this.body=t,this.leftDelim=n.leftDelim,this.rightDelim=n.rightDelim}static fromJson(t){var n;return new e(null!=(n=t.variant)?n:"",t.body,t)}toJson(){const e=super.toJson();return this.variant&&(e.variant=this.variant),this.leftDelim&&(e.leftDelim=this.leftDelim),this.rightDelim&&(e.rightDelim=this.rightDelim),e}_serialize(e){var t,n;const i=this.matchingRightDelim();return"left...right"===this.variant?Kb(["\\left",null!=(t=this.leftDelim)?t:".",this.bodyToLatex(e),"\\right",i]):"mleft...mright"===this.variant?Kb(["\\mleft",null!=(n=this.leftDelim)?n:".",this.bodyToLatex(e),"\\mright",i]):Kb([this.leftDelim&&"."!==this.leftDelim?this.leftDelim:"",this.bodyToLatex(e),i])}matchingRightDelim(){var e,t;if(this.rightDelim&&"?"!==this.rightDelim)return this.rightDelim;const n=null!=(e=this.leftDelim)?e:".";return null!=(t=lx[n])?t:n}render(e){var t,n;const i=new ww({parent:e},this.style);console.assert(void 0!==this.body);const r=new ww({parent:e,mathstyle:"textstyle"},this.style),o=null!=(t=_w.createBox(i,this.body,{type:"inner"}))?t:new nw(null,{type:"inner"}),a=o.height/r.scalingFactor,s=o.depth/r.scalingFactor,l=[];if(this.leftDelim&&l.push(this.bind(r,xx("open",this.leftDelim,a,s,r,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),o&&(Fx(o.children,this,i,a,s),l.push(o)),this.rightDelim){let e=this.containsCaret?" ML__contains-caret":"",t=this.rightDelim;"?"===t&&(i.smartFence?(t=this.matchingRightDelim(),e+=" ML__smart-fence__close"):t="."),l.push(this.bind(r,xx("close",t,a,s,r,{isSelected:this.isSelected,classes:e+" ML__close",mode:this.mode,style:this.style})))}let c="mleft...mright"===this.variant;const u=this.leftSibling;u&&(!c&&u.isFunction&&(c=!0),!c&&"subsup"===u.type&&(null==(n=u.leftSibling)?void 0:n.isFunction)&&(c=!0));const h=new nw(l,{type:c?"close":"inner",classes:"left-right"});return h.setStyle("margin-top",-o.depth+"em"),h.setStyle("height",`${o.height+o.depth}em`),this.caret&&(h.caret=this.caret),this.bind(i,h.wrap(i))}};function Fx(e,t,n,i,r){if(e)for(let o=0;o"first"!==e.type)).map((e=>e.toJson()))),this.correctness&&(e.correctness=this.correctness),e.locked=this.locked,e}render(e){const t=new ww({parent:e}),n=t.getRegisterAsEm("fboxsep"),i=n,r=n,o=_w.createBox(e,this.body);if(!o)return null;o.height||(o.height=t.metrics.xHeight),o.setStyle("vertical-align",-o.height,"em"),"correct"===this.correctness?o.setStyle("color","var(--correct-color, var(--ML__correct-color))"):"incorrect"===this.correctness&&o.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const a=new nw(o,{type:"ord"});a.setStyle("display","inline-block"),a.setStyle("height",o.height+o.depth,"em"),a.setStyle("vertical-align",-r,"em");let s="ML__prompt ";this.locked?s+=" ML__lockedPromptBox ":s+=" ML__editablePromptBox ","correct"===this.correctness?s+=" ML__correctPromptBox ":"incorrect"===this.correctness&&(s+=" ML__incorrectPromptBox "),this.containsCaret&&(s+=" ML__focusedPromptBox ");const l=new nw(null,{classes:s,attributes:{part:"prompt"}});l.height=a.height+r,l.depth=a.depth+r,l.width=a.width+2*i,l.setStyle("box-sizing","border-box"),l.setStyle("position","absolute"),l.setStyle("height",a.height+a.depth+2*r,"em"),0===i&&l.setStyle("width","100%"),0!==i&&(l.setStyle("width",`calc(100% + ${2*i}em)`),l.setStyle("top",n,"em"),l.setStyle("left",-i,"em")),this.body&&1!==this.body.length||(l.width=3*i,l.setStyle("width",`calc(100% + ${3*i}em)`),l.setStyle("left",-1.5*i,"em"));let c="";"incorrect"===this.correctness&&(c+=''),c&&(l.svgOverlay=c);const u=new nw([l,a],{classes:"ML__prompt-atom"});return u.setStyle("position","relative"),u.setStyle("display","inline-block"),u.setStyle("line-height",0),u.height=a.height+r+.2,u.depth=a.depth+r,u.left=i,u.right=i,u.setStyle("height",a.height+r,"em"),u.setStyle("top",a.depth-a.height,"em"),u.setStyle("vertical-align",a.depth+r,"em"),u.setStyle("margin-left",.5,"em"),u.setStyle("margin-right",.5,"em"),this.caret&&(u.caret=this.caret),this.bind(t,this.attachSupsub(e,{base:u}))}_serialize(e){var t;const n=null!=(t=this.bodyToLatex(e))?t:"";if(e.skipPlaceholders)return n;let i="\\placeholder";return this.placeholderId&&(i+=`[${this.placeholderId}]`),"correct"===this.correctness?i+="[correct]":"incorrect"===this.correctness&&(i+="[incorrect]"),this.locked&&(i+="[locked]"),Gb(i,n)}},Hx=class e extends _w{constructor(e){super({type:"subsup",style:null==e?void 0:e.style}),this.subsupPlacement="auto"}static fromJson(t){const n=new e(t);for(const e of xw)t[e]&&n.setChildren(t[e],e);return n}render(e){var t;const n=new ww({parent:e,isPhantom:!0}),i=this.leftSibling,r=null!=(t=i.render(n))?t:new nw(null),o=new nw(null);return o.height=r.height,o.depth=r.depth,this.attachSupsub(e,{base:o,isCharacterBox:i.isCharacterBox(),type:"ignore"})}_serialize(e){return this.supsubToLatex(e)}};function Zx(e){return!!e&&!/^(<$$>|<$>||<{>|<}>|#[0-9\?]|\\.+)$/.test(e)}var Kx=class{constructor(e,t,n){var i,r,o,a;this.errors=[],this.index=0,this.endCount=0,null!=n||(n={}),this.tokens=e,this.context=t instanceof ww&&!(null==n?void 0:n.parseMode)&&!n.mathstyle?t:new ww({from:t,mathstyle:n.mathstyle},n.style),this.args=null!=(i=n.args)?i:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:null!=(r=n.style)?r:{},parseMode:null!=(o=n.parseMode)?o:"math",mathstyle:null!=(a=n.mathstyle)?a:"displaystyle",tabular:!1}}beginContext(e){var t,n,i;const r=this.parsingContext,o={parent:r,mathlist:[],style:ip({},r.style),parseMode:null!=(t=null==e?void 0:e.mode)?t:r.parseMode,mathstyle:null!=(n=null==e?void 0:e.mathstyle)?n:r.mathstyle,tabular:null!=(i=null==e?void 0:e.tabular)&&i};this.parsingContext=o}endContext(){this.parsingContext=this.parsingContext.parent}onError(e){this.errors.push(ip({before:Ub(this.tokens.slice(this.index,this.index+10)),after:Ub(this.tokens.slice(Math.max(0,this.index-10),this.index))},e))}get mathlist(){return this.parsingContext.mathlist}set mathlist(e){this.parsingContext.mathlist=e}get parseMode(){return this.parsingContext.parseMode}set parseMode(e){this.parsingContext.parseMode=e}get tabularMode(){return this.parsingContext.tabular}get style(){let e=this.parsingContext;for(;e;){if(e.style)return ip({},e.style);e=e.parent}return{}}set style(e){this.parsingContext.style=e}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}next(){this.index+=1}get(){return this.endCount=0,this.index0){if(e=this.mathlist[this.mathlist.length-1],"subsup"===e.type)return e;if(void 0!==e.subsupPlacement)return e}return e=new Hx({style:this.style}),this.mathlist.push(e),e}hasPattern(e){return e.test(this.tokens[this.index])}hasInfixCommand(){var e;const{index:t}=this;if(t"););}skipUntilToken(e){let t=this.tokens[this.index];for(;t&&t!==e;)t=this.tokens[++this.index];t===e&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match(""););}matchKeyword(e){const t=this.index;let n=this.end(),i="";for(;!n;){const t=this.get();Zx(t)?(i+=t,n=this.end()||i.length>=e.length):n=!0}const r=e.toUpperCase()===i.toUpperCase();return r||(this.index=t),r}scanString(){let e="";for(;!this.end();){const t=this.peek();if("]"===t)return e;if(""===t)e+=" ";else if(t.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),e+=t.substring(1);else{if(!Zx(t))return e;e+=t}this.next()}return e}scanBalancedString(){let e="",t=this.end(),n=1;for(;!t;){const i=this.get();""===i?e+=" ":"<{>"===i?(e+="{",n+=1):"<}>"===i?(n-=1,n>0?e+="}":this.index-=1):e+="<$>"===i?"$":"<$$>"===i?"$$":i,t=0===n||this.end()}return e}scanLiteralGroup(){var e;if(!this.match("<{>"))return"";let t="",n=1;for(;n>0&&!this.end();){const i=this.get();"<}>"===i?(n-=1,n>0&&(t+="}")):"<{>"===i?(n+=1,t+="{"):(/\\[a-zA-Z]+$/.test(t)&&/^[a-zA-Z]/.test(i)&&(t+=" "),t+=null!=(e={"":" ","<$$>":"$$","<$>":"$"}[i])?e:i)}return t}scanNumber(e=!0){var t,n;let i=!1,r=this.peek();for(;""===r||"+"===r||"-"===r;)this.get(),"-"===r&&(i=!i),r=this.peek();e=Boolean(e);let o=10,a=/\d/;if(this.match("'"))o=8,a=/[0-7]/,e=!0;else if(this.match('"'))o=16,a=/[\dA-F]/,e=!0;else if(this.match("x"))o=16,a=/[\dA-Fa-f]/,e=!0;else if(this.match("`"))return r=this.get(),r?2===r.length&&r.startsWith("\\")?{number:(i?-1:1)*(null!=(t=r.codePointAt(1))?t:0),base:"alpha"}:{number:(i?-1:1)*(null!=(n=r.codePointAt(0))?n:0),base:"alpha"}:null;let s="";for(;this.hasPattern(a);)s+=this.get();if(!e&&(this.match(".")||this.match(",")))for(s+=".";this.hasPattern(a);)s+=this.get();const l=e?Number.parseInt(s,o):Number.parseFloat(s);return Number.isNaN(l)?null:{number:i?-l:l,base:16===o?"hexadecimal":8===o?"octal":"decimal"}}scanRegister(){var e;const t=this.index,n=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return n;let i=!1;if(null===n)for(;;){const e=this.peek();if("-"===e)i=!i;else if("+"!==e)break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const e=this.get();return e.startsWith("\\")?n?{register:e,global:!0,factor:(i?-1:1)*n.number}:i?{register:e,global:!0,factor:-1}:{register:e,global:!0}:(this.index=t,null)}let r=this.get();return(null==r?void 0:r.startsWith("\\"))?(r=r.substring(1),this.context.registers[r]?i&&null===n?{register:r}:{register:r,factor:(i?-1:1)*(null!=(e=null==n?void 0:n.number)?e:1)}:(this.index=t,null)):(this.index=t,null)}scanValue(){const e=this.scanRegister();if(e)return e;const t=this.index,n=this.scanGlueOrDimen();if(n&&("unit"in n||"glue"in n&&"unit"in n.glue))return n;this.index=t;const i=this.scanNumber();if(i)return i;if(this.end()||!Zx(this.peek()))return null;const r=this.scanString();return r.length>0?{string:r}:null}scanDimen(){const e=this.scanNumber(!1);if(null===e)return null;const t=e.number;let n;return this.skipWhitespace(),this.matchKeyword("true"),this.skipWhitespace(),this.matchKeyword("pt")?n="pt":this.matchKeyword("mm")?n="mm":this.matchKeyword("cm")?n="cm":this.matchKeyword("ex")?n="ex":this.matchKeyword("px")?n="px":this.matchKeyword("em")?n="em":this.matchKeyword("bp")?n="bp":this.matchKeyword("dd")?n="dd":this.matchKeyword("pc")?n="pc":this.matchKeyword("in")?n="in":this.matchKeyword("mu")&&(n="mu"),n?{dimension:t,unit:n}:{dimension:t}}scanGlueOrDimen(){const e=this.scanDimen();if(null===e)return null;if(this.skipWhitespace(),this.match("\\relax"))return e;const t={glue:e};if(this.matchKeyword("plus")){const e=this.scanDimen();if(!e)return t;t.grow=e}if(this.skipWhitespace(),this.match("\\relax"))return t;if(this.skipWhitespace(),this.matchKeyword("minus")){const e=this.scanDimen();if(!e)return t;t.shrink=e}return t.grow||t.shrink?t:e}scanColspec(){this.skipWhitespace();const e=[];for(;!this.end()&&"<}>"!==this.peek()&&"]"!==this.peek();){const t=this.get();"c"===t||"r"===t||"l"===t?e.push({align:t}):"|"===t?e.push({separator:"solid"}):":"===t?e.push({separator:"dashed"}):"@"===t&&(this.match("<{>")&&(this.beginContext({mode:"math"}),e.push({gap:this.scan((e=>"<}>"===e))}),this.endContext()),this.match("<}>")||this.onError({code:"unbalanced-braces"}))}return e}scanModeSet(){let e;if(this.match("\\(")&&(e="textstyle"),!e&&this.match("\\[")&&(e="displaystyle"),!e)return null;this.beginContext({mode:"math",mathstyle:e});const t=this.scan((t=>t===("displaystyle"===e?"\\]":"\\)")));return this.match("displaystyle"===e?"\\]":"\\)")||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),t}scanModeShift(){let e="";if(this.match("<$>")&&(e="<$>"),!e&&this.match("<$$>")&&(e="<$$>"),!e)return null;this.beginContext({mode:"math",mathstyle:"textstyle"});const t=this.scan((t=>t===e));return this.match(e)||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),t}scanEnvironment(){if(!this.match("\\begin"))return null;const e=this.scanArgument("string");if(!e)return null;const t=null!=(n=Op[e])?n:null;var n;if(!t)return this.onError({code:"unknown-environment",arg:e}),null;const i=[];if(t.params)for(const n of t.params)if(n.isOptional)i.push(this.scanOptionalArgument(n.type));else{const t=this.scanArgument(n.type);t||this.onError({code:"missing-argument",arg:e}),i.push(t)}this.beginContext({tabular:t.tabular});const r=[],o=[];let a=[],s=!1;do{if(this.end()&&(this.onError({code:"unbalanced-environment",arg:e}),s=!0),!s&&this.match("\\end")&&(this.scanArgument("string")!==e&&this.onError({code:"unbalanced-environment",arg:e}),s=!0),!s)if(this.matchColumnSeparator())a.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){a.push(this.mathlist),this.mathlist=[];let e=null;this.skipWhitespace(),this.match("[")&&(e=this.scanDimen(),this.skipWhitespace(),this.match("]")),o.push(null!=e?e:{dimension:0}),r.push(a),a=[]}else this.mathlist.push(...this.scan((e=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(e))))}while(!s);return a.push(this.mathlist),a.length>0&&r.push(a),this.endContext(),t.createAtom(e,r,o,i)}scanExpression(){const e=this.mathlist;if(this.mathlist=[],this.parseExpression()){const t=this.mathlist;return this.mathlist=e,t}return this.mathlist=e,null}scan(e){this.beginContext(),e||(e=e=>"<}>"===e);let t,n="",i=null,r=[],o=null;for(;!this.end()&&!e(this.peek());)this.hasInfixCommand()&&!n?(n=this.get(),i=Jp(n,"math"),i&&(r=this.scanArguments(i)[1]),o=this.mathlist,this.mathlist=[]):this.parseExpression();return n?(console.assert(Boolean(i)),r.unshift(this.mathlist),o&&r.unshift(o),t=[i.createAtom({command:n,args:r,style:this.style,mode:this.parseMode})]):t=this.mathlist,this.endContext(),t}scanGroup(){const e=this.index;if(!this.match("<{>"))return null;const t=this.scan((e=>"<}>"===e));this.match("<}>")||this.onError({code:"unbalanced-braces"});const n=new Rx(t,this.parseMode,this.style);return n.verbatimLatex=Ub(this.tokens.slice(e,this.index)),n}scanSmartFence(){if(this.skipWhitespace(),!this.match("("))return null;this.beginContext();let e=1;for(;!this.end()&&0!==e;)this.match("(")&&(e+=1),this.match(")")&&(e-=1),0!==e&&this.parseExpression();const t=new Ox("",this.mathlist,{leftDelim:"(",rightDelim:0===e?")":"?"});return this.endContext(),t}scanDelim(){this.skipWhitespace();const e=this.peek();if(!e)return this.onError({code:"unexpected-end-of-string"}),null;if(!Zx(e)&&!e.startsWith("\\"))return null;this.next();const t=Jp(e,"math");return t?"function"===t.definitionType&&t.ifMode&&!t.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:e}),null):"symbol"!==t.definitionType||"mopen"!==t.type&&"mclose"!==t.type?/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(e)?e:(this.onError({code:"unexpected-delimiter",arg:e}),null):e:(this.onError({code:"unknown-command",arg:e}),null)}scanLeftRight(){var e;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new Bx("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Bx("\\mright");let t="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;t="\\mright"}const n=this.scanDelim();if(!n)return this.onError({code:"unexpected-delimiter"}),new Bx("\\right"===t?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(t);)this.parseExpression();const i=this.mathlist;this.endContext();const r=null!=(e=this.scanDelim())?e:".";return new Ox("\\right"===t?"left...right":"mleft...mright",i,{leftDelim:n,rightDelim:r,style:this.style})}parseSupSub(){if("math"!==this.parseMode)return!1;let e=this.peek();if("^"!==e&&"_"!==e&&"'"!==e)return!1;const t=this.lastSubsupAtom();for(;"^"===e||"_"===e||"'"===e;)this.match("'")?this.match("'")?t.addChild(new _w({type:"mord",command:"\\doubleprime",mode:"math",value:"′′"}),"superscript"):t.addChild(new _w({type:"mord",command:"\\prime",mode:"math",value:"′"}),"superscript"):(this.match("^")||this.match("_"))&&t.addChildren(Ap(this.scanArgument("expression")),"_"===e?"subscript":"superscript"),e=this.peek();return!0}parseLimits(){if("math"!==this.parseMode)return!1;const e=this.match("\\limits"),t=!e&&this.match("\\nolimits"),n=!t&&!e&&this.match("\\displaylimits");if(!e&&!t&&!n)return!1;const i=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return null!==i&&(i.explicitSubsupPlacement=!0,e&&(i.subsupPlacement="over-under"),t&&(i.subsupPlacement="adjacent"),n&&(i.subsupPlacement="auto"),!0)}scanArguments(e){if(!(null==e?void 0:e.params))return[void 0,[]];let t;const n=[];let i=e.infix?2:0;for(;i["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(e)))):r.isOptional?n.push(this.scanOptionalArgument(r.type)):r.type.endsWith("*")?t=r.type.slice(0,-1):n.push(this.scanArgument(r.type)),i+=1}return[t,n]}scanSymbolOrLiteral(){const e=this.peek();if(!e)return null;let t;if(this.next(),Zx(e)){const t=Wb.createAtom(this.parseMode,e,ip({},this.style));return t?[t]:null}if(t=this.scanMacro(e),t)return[t];if(e.startsWith("\\")){const n=Jp(e,this.parseMode);if(!n)return this.onError({code:"unknown-command",arg:e}),[new Bx(e)];if("symbol"===n.definitionType){const i=ip({},this.style);n.variant&&(i.variant=n.variant),t=new _w({type:n.type,command:e,style:i,value:String.fromCodePoint(n.codepoint),mode:this.parseMode,verbatimLatex:e})}else{if(n.applyMode||n.applyStyle||n.infix)return this.onError({code:"invalid-command",arg:e}),[new Bx(e)];n.createAtom&&(t=n.createAtom({command:e,args:[],style:this.style,mode:this.parseMode}))}}return t?[t]:null}scanArgument(e){var t;this.skipFiller();const n=this.parseMode;if("auto"===e&&(e=n),!this.match("<{>")){if("string"===e)return this.scanString();if("value"===e)return this.scanValue();if("delim"===e)return null!=(t=this.scanDelim())?t:".";if("expression"===e)return this.scanExpression();if("math"===e){e!==n&&this.beginContext({mode:"math"});const t=this.scanSymbolOrLiteral();return e!==n&&this.endContext(),t}if("text"===e){e!==n&&this.beginContext({mode:"text"});const t=this.scanSymbolOrLiteral();return e!==n&&this.endContext(),t}return"balanced-string"===e||console.assert(!1),null}if("text"===e){this.beginContext({mode:"text"});do{this.mathlist.push(...this.scan())}while(!this.match("<}>")&&!this.end());const e=this.mathlist;return this.endContext(),{group:e}}if("math"===e){this.beginContext({mode:"math"});do{this.mathlist.push(...this.scan())}while(!this.match("<}>")&&!this.end());const e=this.mathlist;return this.endContext(),{group:e}}let i=null;if("expression"===e){this.beginContext({mode:"math"});do{this.mathlist.push(...this.scan())}while(!this.match("<}>")&&!this.end());const e=this.mathlist;return this.endContext(),{group:e}}return"string"===e?i=this.scanString():"balanced-string"===e?i=this.scanBalancedString():"colspec"===e?i=this.scanColspec():"value"===e&&(i=this.scanValue()),this.skipUntilToken("<}>"),i}scanOptionalArgument(e){if(e="auto"===e?this.parseMode:e,this.skipFiller(),!this.match("["))return null;let t=null;for(;!this.end()&&!this.match("]");)if("string"===e)t=this.scanString();else if("value"===e)t=this.scanValue();else if("colspec"===e)t=this.scanColspec();else if("bbox"===e){const e={},n=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const t of n){const n=t.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(n)e.padding={dimension:parseInt(n[1]),unit:n[2]};else{const n=t.match(/^\s*border\s*:\s*(.*)/);n?e.border=n[1]:e.backgroundcolor={string:t}}}t=e}else"math"===e&&(this.beginContext({mode:"math"}),t=this.mathlist.concat(this.scan((e=>"]"===e))),this.endContext());return t}scanSymbolOrCommand(e){var t,n,i;if("\\placeholder"===e){const e=this.scanOptionalArgument("string"),t=this.scanOptionalArgument("math"),n=_w.serialize(t,{defaultMode:"math"});let i,r=[];i||"correct"!==n?i||"incorrect"!==n?""!==n&&(r=t):i="incorrect":i="correct";const o="locked"===this.scanOptionalArgument("string"),a=this.scanArgument("auto");let s;return s=a&&Array.isArray(a)&&a.length>0?a:a&&"object"==typeof a&&"group"in a?a.group:r,e?[new $x(e,i,o,null!=s?s:r,{mode:this.parseMode,style:this.style})]:[new kx({mode:this.parseMode,style:this.style})]}if("\\renewcommand"===e||"\\newcommand"===e||"\\providecommand"===e||"\\def"===e){const t=this.index,n=this.scanLiteralGroup()||this.next();if(!n)return null;if(this.context.registers[n.substring(1)]){const i=this.scanArgument("string");null!==i&&(this.context.registers[n.substring(1)]=i);const r=Kb([e,Ub(this.tokens.slice(t,this.index))]);return[new _w({type:"text",value:"",verbatimLatex:r})]}}let r=this.scanMacro(e);if(r)return[r];const o=Jp(e,this.parseMode);if(!o)return"text"===this.parseMode?(/[a-zA-Z]/.test(null!=(t=this.peek())?t:"")&&(e+=" "),[...e].map((e=>new _w({type:"text",value:e,mode:"text",style:this.style})))):(this.onError({code:"unknown-command",arg:e}),[new Bx(e)]);const a=this.index;if("symbol"===o.definitionType){const t=ip({},this.style);o.variant&&(t.variant=o.variant),r=new _w({type:o.type,command:e,style:t,value:String.fromCodePoint(o.codepoint),mode:this.parseMode})}else{if(o.ifMode&&!o.ifMode.includes(this.parseMode))return[];const t=this.parseMode;let a;o.applyMode&&(this.parseMode=o.applyMode);let s=[];if(o.parse?s=o.parse(this):[a,s]=this.scanArguments(o),this.parseMode=t,o.applyMode&&!o.applyStyle&&!o.createAtom)return Ap(s[0]);if(o.infix)return this.onError({code:"too-many-infix-commands",arg:e}),null;if("function"==typeof o.createAtom)r=o.createAtom({command:e,args:s,style:this.style,mode:this.parseMode}),a&&(r.body=Ap(this.scanArgument(a)));else if("function"==typeof o.applyStyle){const t=ip(ip({},this.style),o.applyStyle(e,s,this.context)),n=this.parseMode;if(o.applyMode&&(this.parseMode=o.applyMode),a){const e=this.style;this.style=t;const i=this.scanArgument(a);return this.style=e,this.parseMode=n,Ap(i)}this.style=t}else r=new _w({type:"mord",command:null!=(n=o.command)?n:e,style:ip({},this.style),value:e,mode:null!=(i=o.applyMode)?i:this.parseMode})}if(!r)return null;if(r instanceof _w&&void 0===r.verbatimLatex&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(e)){const t=Kb([e,Ub(this.tokens.slice(a,this.index))]);t&&(r.verbatimLatex=t)}if(null===r.verbatimLatex&&(r.verbatimLatex=void 0),r.isFunction&&this.smartFence){const e=this.scanSmartFence();if(e)return[r,e]}return[r]}scanSymbolCommandOrLiteral(){const e=this.get();if(!e)return null;if(Zx(e)){const t=Wb.createAtom(this.parseMode,e,ip({},this.style));if(!t)return null;if(t.isFunction&&this.smartFence){const e=this.scanSmartFence();if(e)return[t,e]}return[t]}return e.startsWith("\\")?this.scanSymbolOrCommand(e):""===e?"text"===this.parseMode?[new Ew(" "," ",this.style)]:null:("<}>"===e?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:e}),null)}scanMacro(e){var t;const n=this.context.getMacro(e);if(!n)return null;const i=this.index,r=n.args,o={"?":null==(t=this.args)?void 0:t.call(this,"?")};for(let e=1;e<=r;e++){let t=this.scanLiteralGroup();if(!t){const e=this.index;this.scanExpression(),t=Ub(this.tokens.slice(e,this.index))}o[e]=t}return new zx(e,{expand:n.expand,captureSelection:n.captureSelection,args:i===this.index?null:Ub(this.tokens.slice(i,this.index)),style:this.parsingContext.style,body:Gx(n.def,{context:this.context,parseMode:this.parseMode,args:e=>o[e],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var e,t,n,i;let r=null!=(i=null!=(n=null!=(t=null!=(e=this.scanEnvironment())?e:this.scanModeShift())?t:this.scanModeSet())?n:this.scanGroup())?i:this.scanLeftRight();if(null===r){if(this.parseSupSub())return!0;if(this.parseLimits())return!0;r=this.scanSymbolCommandOrLiteral()}return!!r&&(Array.isArray(r)?this.mathlist.push(...r):this.mathlist.push(r),!0)}};function Gx(e,t){var n,i,r,o;const a=null!=(n=null==t?void 0:t.args)?n:void 0,s=new Kx(Zb(e,a),null==t?void 0:t.context,{args:a,mathstyle:null!=(i=null==t?void 0:t.mathstyle)?i:"displaystyle",parseMode:null!=(r=null==t?void 0:t.parseMode)?r:"math",style:null!=(o=null==t?void 0:t.style)?o:{}}),l=[];for(;!s.end();)l.push(...s.scan((()=>!1)));return l}function Ux(e,t){var n;const i=new Kx(Zb(e,null),null==t?void 0:t.context,{mathstyle:"displaystyle",parseMode:null!=(n=null==t?void 0:t.parseMode)?n:"math"});for(;!i.end();)i.scan();return i.errors}var Vx=class e extends _w{constructor(e,t){super({type:"chem"},{command:e,mode:"math"});const n=qx.go(Wx.go(t,"\\pu"===e?"pu":"ce"),!1);this.body=Gx(n),this._verbatimLatex=e+"{"+t+"}",this.arg=t,this.captureSelection=!0}static fromJson(t){return new e(t.command,t.arg)}set verbatimLatex(e){}get verbatimLatex(){return this._verbatimLatex}toJson(){return rp(ip({},super.toJson()),{arg:this.arg})}render(e){const t=_w.createBox(e,this.body,{type:"inner"});return this.caret&&(t.caret=this.caret),this.bind(e,t)}_serialize(e){return console.assert(void 0!==this.verbatimLatex),this.verbatimLatex}};qp(["ce","pu"],"{chemformula:balanced-string}",{createAtom:e=>{var t;return new Vx(e.command,null!=(t=e.args[0])?t:"")}});var Wx={go:function(e,t){if(!e)return[];void 0===t&&(t="ce");var n,i="0",r={};r.parenthesisLevel=0,e=(e=(e=e.replace(/\n/g," ")).replace(/[\u2212\u2013\u2014\u2010]/g,"-")).replace(/[\u2026]/g,"...");for(var o=10,a=[];;){n!==e?(o=10,n=e):o--;var s=Wx.stateMachines[t],l=s.transitions[i]||s.transitions["*"];e:for(var c=0;c0))return a;if(h.revisit||(e=u.remainder),!h.toContinue)break e}}if(o<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if("[object Array]"===Object.prototype.toString.call(t))for(var n=0;n":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return Wx.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return Wx.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return Wx.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return Wx.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return Wx.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return Wx.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return Wx.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return Wx.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return Wx.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return Wx.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return Wx.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return Wx.patterns.findObserveGroups(e,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;if(t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/))return{match_:t[0],remainder:e.substr(t[0].length)};var n=Wx.patterns.findObserveGroups(e,"","$","$","");return n&&(t=n.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/))?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,n,i,r,o,a,s,l,c){var u=function(e,t){if("string"==typeof t)return 0!==e.indexOf(t)?null:t;var n=e.match(t);return n?n[0]:null},h=u(e,t);if(null===h)return null;if(e=e.substr(h.length),null===(h=u(e,n)))return null;var d=function(e,t,n){for(var i=0;t":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var n;if((e.d||"").match(/^[0-9]+$/)){var i=e.d;e.d=void 0,n=this.output(e),e.b=i}else n=this.output(e);return Wx.actions["o="](e,t),n},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var n=[];return Wx.concatArray(n,this.output(e)),Wx.concatArray(n,Wx.actions.bond(e,t,"-")),n}e.d=t},"- after o/d":function(e,t,n){var i=Wx.patterns.match_("orbital",e.o||""),r=Wx.patterns.match_("one lowercase greek letter $",e.o||""),o=Wx.patterns.match_("one lowercase latin letter $",e.o||""),a=Wx.patterns.match_("$one lowercase latin letter$ $",e.o||""),s="-"===t&&(i&&""===i.remainder||r||o||a);!s||e.a||e.b||e.p||e.d||e.q||i||!o||(e.o="$"+e.o+"$");var l=[];return s?(Wx.concatArray(l,this.output(e)),l.push({type_:"hyphen"})):(i=Wx.patterns.match_("digits",e.d||""),n&&i&&""===i.remainder?(Wx.concatArray(l,Wx.actions["d="](e,t)),Wx.concatArray(l,this.output(e))):(Wx.concatArray(l,this.output(e)),Wx.concatArray(l,Wx.actions.bond(e,t,"-")))),l},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:Wx.go(t,"o")}},comma:function(e,t){var n=t.replace(/\s*$/,"");return n!==t&&0===e.parenthesisLevel?{type_:"comma enumeration L",p1:n}:{type_:"comma enumeration M",p1:n}},output:function(e,t,n){var i,r,o;e.r?(r="M"===e.rdt?Wx.go(e.rd,"tex-math"):"T"===e.rdt?[{type_:"text",p1:e.rd||""}]:Wx.go(e.rd),o="M"===e.rqt?Wx.go(e.rq,"tex-math"):"T"===e.rqt?[{type_:"text",p1:e.rq||""}]:Wx.go(e.rq),i={type_:"arrow",r:e.r,rd:r,rq:o}):(i=[],(e.a||e.b||e.p||e.o||e.q||e.d||n)&&(e.sb&&i.push({type_:"entitySkip"}),e.o||e.q||e.d||e.b||e.p||2===n?e.o||e.q||e.d||!e.b&&!e.p?e.o&&"kv"===e.dType&&Wx.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&"kv"===e.dType&&!e.q&&(e.dType=void 0):(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):(e.o=e.a,e.a=void 0),i.push({type_:"chemfive",a:Wx.go(e.a,"a"),b:Wx.go(e.b,"bd"),p:Wx.go(e.p,"pq"),o:Wx.go(e.o,"o"),q:Wx.go(e.q,"pq"),d:Wx.go(e.d,"oxidation"===e.dType?"oxidation":"bd"),dType:e.dType})));for(var a in e)"parenthesisLevel"!==a&&"beginsWithBond"!==a&&delete e[a];return i},"oxidation-output":function(e,t){var n=["{"];return Wx.concatArray(n,Wx.go(t,"oxidation")),n.push("}"),n},"frac-output":function(e,t){return{type_:"frac-ce",p1:Wx.go(t[0]),p2:Wx.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:Wx.go(t[0]),p2:Wx.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:Wx.go(t[0]),p2:Wx.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:Wx.go(t[0]),p2:Wx.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:Wx.go(t[1])}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,n){return{type_:"operator",kind_:n||t}}}},a:{transitions:Wx.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:Wx.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:Wx.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var n in e)delete e[n];return t}}}},pq:{transitions:Wx.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:Wx.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:Wx.go(t[1],"pq")}}}},bd:{transitions:Wx.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:Wx.go(t[1],"bd")}}}},oxidation:{transitions:Wx.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t||""}}}},"tex-math":{transitions:Wx.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var n in e)delete e[n];return t}}}},"tex-math tight":{transitions:Wx.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var n in e)delete e[n];return t}}}},"9,9":{transitions:Wx.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:Wx.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var n=[];return"+-"===t[0]||"+/-"===t[0]?n.push("\\pm "):t[0]&&n.push(t[0]),t[1]&&(Wx.concatArray(n,Wx.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?Wx.concatArray(n,Wx.go(t[2],"pu-9,9")):n.push(t[2])),(t[3]||t[4])&&("e"===t[3]||"*"===t[4]?n.push({type_:"cdot"}):n.push({type_:"times"}))),t[5]&&n.push("10^{"+t[5]+"}"),n},"number^":function(e,t){var n=[];return"+-"===t[0]||"+/-"===t[0]?n.push("\\pm "):t[0]&&n.push(t[0]),Wx.concatArray(n,Wx.go(t[1],"pu-9,9")),n.push("^{"+t[2]+"}"),n},operator:function(e,t,n){return{type_:"operator",kind_:n||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,n=Wx.patterns.match_("{(...)}",e.d||"");n&&""===n.remainder&&(e.d=n.match_);var i=Wx.patterns.match_("{(...)}",e.q||"");if(i&&""===i.remainder&&(e.q=i.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var r={d:Wx.go(e.d,"pu"),q:Wx.go(e.q,"pu")};"//"===e.o?t={type_:"pu-frac",p1:r.d,p2:r.q}:(t=r.d,r.d.length>1||r.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),Wx.concatArray(t,r.q))}else t=Wx.go(e.d,"pu-2");for(var o in e)delete e[o];return t}}},"pu-2":{transitions:Wx.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var n=Wx.patterns.match_("{(...)}",e.rm||"");t=n&&""===n.remainder?Wx.go(n.match_,"pu"):{type_:"rm",p1:e.rm}}for(var i in e)delete e[i];return t}}},"pu-9,9":{transitions:Wx.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var n=e.text_.length%3;0===n&&(n=3);for(var i=e.text_.length-3;i>0;i-=3)t.push(e.text_.substr(i,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,n)),t.reverse()}else t.push(e.text_);for(var r in e)delete e[r];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){for(var n=e.text_.length-3,i=0;i"===e.r||"<=>>"===e.r||"<<=>"===e.r||"<--\x3e"===e.r?(a="\\long"+a,o.rd&&(a="\\overset{"+o.rd+"}{"+a+"}"),o.rq&&(a="<--\x3e"===e.r?"\\underset{\\lower2mu{"+o.rq+"}}{"+a+"}":"\\underset{\\lower6mu{"+o.rq+"}}{"+a+"}"),a=" {}\\mathrel{"+a+"}{} "):(o.rq&&(a+="[{"+o.rq+"}]"),a=" {}\\mathrel{\\x"+(a+="{"+o.rd+"}")+"}{} "):a=" {}\\mathrel{\\long"+a+"}{} ",t=a;break;case"operator":t=qx._getOperator(e.kind_);break;case"space":t=" ";break;case"entitySkip":case"pu-space-1":t="~";break;case"pu-space-2":t="\\mkern3mu ";break;case"1000 separator":t="\\mkern2mu ";break;case"commaDecimal":t="{,}";break;case"comma enumeration L":t="{"+e.p1+"}\\mkern6mu ";break;case"comma enumeration M":t="{"+e.p1+"}\\mkern3mu ";break;case"comma enumeration S":t="{"+e.p1+"}\\mkern1mu ";break;case"hyphen":t="\\text{-}";break;case"addition compound":t="\\,{\\cdot}\\,";break;case"electron dot":t="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":t="{\\times}";break;case"prime":t="\\prime ";break;case"cdot":t="\\cdot ";break;case"tight cdot":t="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":t="\\times ";break;case"circa":t="{\\sim}";break;case"^":t="uparrow";break;case"v":t="downarrow";break;case"ellipsis":t="\\ldots ";break;case"/":t="/";break;case" / ":t="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return t},_getArrow:function(e){switch(e){case"->":case"→":case"⟶":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<--\x3e":return"leftrightarrows";case"<=>":case"⇌":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":case"1":return"{-}";case"=":case"2":return"{=}";case"#":case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":case"$\\approx$":return" {}\\approx{} ";case"v":case"(v)":return" \\downarrow{} ";case"^":case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};var Yx=class e extends _w{constructor(e){super(rp(ip({},e),{type:"delim"})),this.value=e.delim,this.size=e.size}static fromJson(t){return new e(t)}toJson(){return rp(ip({},super.toJson()),{delim:this.value,size:this.size})}render(e){return new nw(this.value,{type:"middle"})}_serialize(e){if(!(e.expandMacro||e.skipStyles||e.skipPlaceholders)&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const t=Jp(this.command,this.mode);return(null==t?void 0:t.serialize)?t.serialize(this,e):Gb(this.command,this.value)}},Xx=class e extends _w{constructor(e){super(rp(ip({},e),{type:"sizeddelim",value:e.delim})),this.delimType=e.delimType,this.size=e.size}static fromJson(t){return new e(t)}toJson(){return rp(ip({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(e){let t=function(e,t,n,i){return void 0===e||"."===e?Sx(n,i.classes):("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),px.has(e)||gx.has(e)?hx(e,t,!1,n,i):fx.has(e)?dx(e,mx[t],!1,n,i):(console.assert(!1,"Unknown delimiter '"+e+"'"),null))}(this.value,this.size,e,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return t?(t=this.bind(e,t),this.caret&&(t.caret=this.caret),t):null}_serialize(e){if(!(e.expandMacro||e.skipStyles||e.skipPlaceholders)&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const t=Jp(this.command,this.mode);return(null==t?void 0:t.serialize)?t.serialize(this,e):Gb(this.command,this.value)}},Qx=class e extends _w{constructor(e,t,n,i){var r,o;super({type:"enclose",command:e,style:i.style}),this.body=t,this.backgroundcolor=i.backgroundcolor,n.updiagonalarrow&&(n.updiagonalstrike=!1),n.box&&(n.left=!1,n.right=!1,n.bottom=!1,n.top=!1),this.notation=n,this.shadow=null!=(r=i.shadow)?r:"none",this.strokeWidth=null!=(o=i.strokeWidth)?o:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=i.strokeStyle,this.svgStrokeStyle=i.svgStrokeStyle,this.strokeColor=i.strokeColor,this.borderStyle=i.borderStyle,this.padding=i.padding,this.captureSelection=!1}static fromJson(t){return new e(t.command,t.body,t.notation,t)}toJson(){return rp(ip({},super.toJson()),{notation:this.notation,shadow:this.shadow,strokeWidth:this.strokeWidth,strokeStyle:this.strokeStyle,svgStrokeStyle:this.svgStrokeStyle,strokeColor:this.strokeColor,borderStyle:this.borderStyle,padding:this.padding})}_serialize(e){var t;if(!(e.expandMacro||e.skipStyles||e.skipPlaceholders)&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const n=Jp(this.command,this.mode);if(null==n?void 0:n.serialize)return n.serialize(this,e);let i=null!=(t=this.command)?t:"";if("\\enclose"===this.command){i+="{"+Object.keys(this.notation).join(" ")+"}";let e="",t="";this.backgroundcolor&&"transparent"!==this.backgroundcolor&&(e+=t+'mathbackground="'+this.backgroundcolor+'"',t=","),this.shadow&&"auto"!==this.shadow&&(e+=t+'shadow="'+this.shadow+'"',t=","),this.strokeWidth||"solid"!==this.strokeStyle?(e+=t+this.borderStyle,t=","):this.strokeColor&&"currentColor"!==this.strokeColor&&(e+=t+'mathcolor="'+this.strokeColor+'"',t=","),e&&(i+=`[${e}]`)}return Gb(i,this.bodyToLatex(e))}render(e){const t=new ww({parent:e},this.style),n=_w.createBox(t,this.body);if(!n)return null;const i=function(e){if(!e)return"1px";const t=e.match(/([0-9][a-zA-Z\%]+)/);return null===t?"1px":t[1]}(this.borderStyle),r=t.toEm(this.padding&&"auto"!==this.padding?{string:this.padding}:{register:"fboxsep"});n.setStyle("position","relative"),n.setStyle("display","inline-block"),n.setStyle("top",r,"em"),n.setStyle("height",n.height+n.depth,"em"),n.setStyle("width",n.width,"em");const o=new nw(null,{classes:"ML__notation"});let a=n.height+n.depth+2*r;const s=n.width+2*r;let l="";if(this.notation.horizontalstrike&&(l+=this.line(3,50,97,50)),this.notation.verticalstrike&&(l+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(l+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(l+=this.line(3,3,97,97)),this.notation.updiagonalarrow){l+=this.line(r.toString(),(r+n.depth+n.height).toString(),(r+n.width).toString(),r.toString());const e=1,t=.03*Math.sqrt(s*s+a*a)*e,i=n.width*t,o=(n.depth+n.height)*t,c=r+n.width;let u=r;u+o-.4*i<0&&(u=.4*i-o),l+='`}};function Jx(e){return"number"==typeof e?Math.floor(100*e)/100+"%":e}function eS(e){const t=e.isDisplayStyle?Eb:e.metrics.defaultRuleThickness;return e.metrics.defaultRuleThickness+e.scalingFactor*t/4}var tS=class e extends _w{constructor(e,t,n){var i,r;super(rp(ip({},n),{type:"genfrac",displayContainsHighlight:!0})),this.above=e,this.below=t,this.hasBarLine=null==(i=null==n?void 0:n.hasBarLine)||i,this.continuousFraction=null!=(r=null==n?void 0:n.continuousFraction)&&r,this.numerPrefix=null==n?void 0:n.numerPrefix,this.denomPrefix=null==n?void 0:n.denomPrefix,this.mathstyleName=null==n?void 0:n.mathstyleName,this.leftDelim=null==n?void 0:n.leftDelim,this.rightDelim=null==n?void 0:n.rightDelim,this.fractionNavigationOrder=null==n?void 0:n.fractionNavigationOrder}static fromJson(t){return new e(t.above,t.below,t)}toJson(){const e={};return this.continuousFraction&&(e.continuousFraction=!0),this.numerPrefix&&(e.numerPrefix=this.numerPrefix),this.denomPrefix&&(e.denomPrefix=this.denomPrefix),this.leftDelim&&(e.leftDelim=this.leftDelim),this.rightDelim&&(e.rightDelim=this.rightDelim),this.hasBarLine||(e.hasBarLine=!1),this.mathstyleName&&(e.mathstyleName=this.mathstyleName),this.fractionNavigationOrder&&(e.fractionNavigationOrder=this.fractionNavigationOrder),ip(ip({},super.toJson()),e)}get children(){if(this._children)return this._children;const e=[];if("denominator-numerator"===this.fractionNavigationOrder){for(const t of this.below)e.push(...t.children),e.push(t);for(const t of this.above)e.push(...t.children),e.push(t)}else{for(const t of this.above)e.push(...t.children),e.push(t);for(const t of this.below)e.push(...t.children),e.push(t)}return this._children=e,e}render(e){var t,n;const i=new ww({parent:e,mathstyle:this.mathstyleName},this.style),r=i.metrics,o=new ww({parent:i,mathstyle:this.continuousFraction?"":"numerator"},this.style),a=this.numerPrefix?new nw([new nw(this.numerPrefix),_w.createBox(o,this.above)],{isTight:o.isTight,type:"ignore"}):null!=(t=_w.createBox(o,this.above,{type:"ignore"}))?t:new nw(null,{type:"ignore"}),s=new ww({parent:i,mathstyle:this.continuousFraction?"":"denominator"},this.style),l=this.denomPrefix?new nw([new nw(this.denomPrefix),_w.createBox(s,this.below,{type:"ignore"})]):null!=(n=_w.createBox(s,this.below,{type:"ignore"}))?n:new nw(null,{type:"ignore"}),c=this.hasBarLine?r.defaultRuleThickness:0;let u,h,d=0;i.isDisplayStyle?(u=o.metrics.num1,d=c>0?3*c:7*c,h=s.metrics.denom1):(c>0?(u=o.metrics.num2,d=c):(u=o.metrics.num3,d=3*r.defaultRuleThickness),h=s.metrics.denom2);const p=[];this.isSelected&&p.push("ML__selected");const f=a.depth,g=l.height;let m;if(c<=0){const e=u-f-(g-h);enew nS(e))),this.skipBoundary=!1}static fromJson(t){return new e("")}toJson(){return super.toJson()}render(e){const t=_w.createBox(e,this.body);return t?(this.caret&&(t.caret=this.caret),this.bind(e,t)):null}_serialize(e){var t,n;return null!=(n=null==(t=this.body)?void 0:t.map((e=>e.value)).join(""))?n:""}},rS=class e extends _w{constructor(e,t){super(rp(ip({},t),{type:"extensible-symbol",isFunction:null==t?void 0:t.isFunction})),this.value=e,this.variant=null==t?void 0:t.variant,this.subsupPlacement=null==t?void 0:t.limits}static fromJson(t){return new e(t.symbol,t)}toJson(){const e=super.toJson();return this.variant&&(e.variant=this.variant),this.subsupPlacement&&(e.limits=this.subsupPlacement),this.isExtensibleSymbol&&(e.isExtensibleSymbol=!0),this.value&&(e.symbol=this.value),e}render(e){var t;const n=e.isDisplayStyle&&"\\smallint"!==this.value,i=new nw(this.value,{fontFamily:n?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(n?"large-op":"small-op"),type:"op",maxFontSize:e.scalingFactor,isSelected:this.isSelected});if(!i)return null;i.right=i.italic;const r=(i.height-i.depth)/2-Pb*e.scalingFactor,o=i.italic;i.setTop(r);let a=i;if(this.superscript||this.subscript){const n=null!=(t=this.subsupPlacement)?t:"auto";a="over-under"===n||"auto"===n&&e.isDisplayStyle?this.attachLimits(e,{base:i,baseShift:r,slant:o}):this.attachSupsub(e,{base:i})}return new nw(this.bind(e,a),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(e)}_serialize(e){if(!(e.expandMacro||e.skipStyles||e.skipPlaceholders)&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const t=Jp(this.command,this.mode);if(null==t?void 0:t.serialize)return t.serialize(this,e);const n=[];return n.push(this.command),this.explicitSubsupPlacement&&("over-under"===this.subsupPlacement&&n.push("\\limits"),"adjacent"===this.subsupPlacement&&n.push("\\nolimits"),"auto"===this.subsupPlacement&&n.push("\\displaylimits")),n.push(this.supsubToLatex(e)),Kb(n)}},oS=class e extends _w{constructor(e){const t=e.body;super(rp(ip({},e),{type:"overlap",body:"string"==typeof t?[new _w({value:t})]:t,style:null==e?void 0:e.style})),this.skipBoundary=!0,this.align=null==e?void 0:e.align,this.boxType=null==e?void 0:e.boxType}static fromJson(t){return new e(t)}toJson(){const e={};return this.align&&(e.align=this.align),this.boxType&&(e.boxType=this.boxType),ip(ip({},super.toJson()),e)}render(e){const t=_w.createBox(e,this.body,{classes:"inner"});return t?(this.caret&&(t.caret=this.caret),this.bind(e,new nw([t,new nw(null,{classes:"fix"})],{classes:"right"===this.align?"rlap":"llap",type:this.boxType}))):null}},aS=class e extends _w{constructor(e){var t,n,i,r;super({type:"overunder",command:e.command,style:e.style,mode:e.mode,body:e.body,skipBoundary:null==(t=e.skipBoundary)||t}),this.subsupPlacement=e.supsubPlacement,this.svgAbove=e.svgAbove,this.svgBelow=e.svgBelow,this.svgBody=e.svgBody,this.above=e.above,this.below=e.below,this.boxType=null!=(n=e.boxType)?n:"ord",this.paddedBody=null!=(i=e.paddedBody)&&i,this.paddedLabels=null!=(r=e.paddedLabels)&&r}static fromJson(t){return new e(t)}toJson(){const e=super.toJson();return this.skipBoundary||(e.skipBoundary=!1),this.subsupPlacement&&(e.subsupPlacement=this.subsupPlacement),this.svgAbove&&(e.svgAbove=this.svgAbove),this.svgBelow&&(e.svgBelow=this.svgBelow),this.svgBody&&(e.svgBody=this.svgBody),"ord"!==this.boxType&&(e.boxType=this.boxType),this.paddedBody&&(e.paddedBody=!0),this.paddedLabels&&(e.paddedLabels=!0),e}render(e){let t=this.svgBody?aw(this.svgBody):_w.createBox(e,this.body,{type:"ignore"});const n=new ww({parent:e,mathstyle:"scriptstyle"},this.style);let i=null;this.svgAbove?i=aw(this.svgAbove):this.above&&(i=_w.createBox(n,this.above,{type:"ignore"}));let r=null;this.svgBelow?r=aw(this.svgBelow):this.below&&(r=_w.createBox(n,this.below,{type:"ignore"})),this.paddedBody&&(t=new nw([Sx(e,"open"),t,Sx(e,"close")],{type:"ignore"}));let o=function(e,t){if(!t.base)return null;if(!t.above&&!t.below){const e=new nw(t.base,{type:t.type});return e.setStyle("position","relative"),e}let n=0;t.above&&(n=e.metrics.bigOpSpacing5);let i=null;const r=t.base,o=0,a=["ML__center"];t.paddedAboveBelow&&a.push("ML__label_padding");if(t.below&&t.above){const s=e.metrics.bigOpSpacing5+t.below.height+t.below.depth+r.depth+o;i=new lw({bottom:s,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:a},{box:r,classes:["ML__center"]},n,{box:t.above,classes:a},e.metrics.bigOpSpacing5]})}else t.below?i=new lw({top:r.height-o,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:a},{box:r,classes:["ML__center"]}]}):t.above&&(i=new lw({bottom:r.depth+o,children:[{box:r,classes:["ML__center"]},n,{box:t.above,classes:a},e.metrics.bigOpSpacing5]}));return new nw(i,{type:t.type})}(e,{base:t,above:i,below:r,type:"bin"===this.boxType||"rel"===this.boxType?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return o?(o="over-under"===this.subsupPlacement?this.attachLimits(e,{base:o,type:o.type}):this.attachSupsub(e,{base:o}),this.caret&&(o.caret=this.caret),this.bind(e,o)):null}};var sS=class e extends _w{constructor(e){var t,n,i,r;super(rp(ip({},e),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=null!=(t=e.isInvisible)&&t,this.smashDepth=null!=(n=e.smashDepth)&&n,this.smashHeight=null!=(i=e.smashHeight)&&i,this.smashWidth=null!=(r=e.smashWidth)&&r}static fromJson(t){return new e(t)}toJson(){const e={};return this.isInvisible&&(e.isInvisible=!0),this.smashDepth&&(e.smashDepth=!0),this.smashHeight&&(e.smashHeight=!0),this.smashWidth&&(e.smashWidth=!0),ip(ip({},super.toJson()),e)}render(e){const t=new ww({parent:e,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),_w.createBox(t,this.body,{classes:"inner"});const n=_w.createBox(this.isInvisible?t:e,this.body);if(!n)return null;if(this.smashWidth){const t=new nw(null,{classes:"fix"});return new nw([n,t],{classes:"rlap"}).wrap(e)}if(!this.smashHeight&&!this.smashDepth)return n;if(this.smashHeight&&(n.height=0),this.smashDepth&&(n.depth=0),n.children)for(const e of n.children)this.smashHeight&&(e.height=0),this.smashDepth&&(e.depth=0);return new lw({firstBaseline:[{box:n}]},{type:n.type}).wrap(e)}},lS=class e extends _w{constructor(e){var t;super(ip({type:"spacing"},e)),this.width=null==e?void 0:e.width,this._braced=null!=(t=null==e?void 0:e.braced)&&t}static fromJson(t){return new e(t)}toJson(){const e=super.toJson();return void 0!==this.width&&(e.width=this.width),this._braced&&(e.braced=!0),e}render(e){var t;if("space"===this.command)return new nw("math"===this.mode?null:" ");let n;if(void 0!==this.width)n=new nw(null,{classes:"mspace"}),n.left=e.toEm(this.width);else{const e=null!=(t={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])?t:"mediumspace";n=new nw(null,{classes:e})}return n=this.bind(e,n),this.caret&&(n.caret=this.caret),n}_serialize(e){var t;if(!e.expandMacro&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const n=Jp(this.command,this.mode);if(null==n?void 0:n.serialize)return n.serialize(this,e);const i=null!=(t=this.command)?t:"";return void 0===this.width?i:this._braced&&!("register"in this.width)?`${i}{${gw(this.width)}}`:`${i}${gw(this.width)}`}},cS=class e extends _w{constructor(e){var t;super(rp(ip({},e),{type:"surd",mode:null!=(t=e.mode)?t:"math",style:e.style,displayContainsHighlight:!0,body:e.body})),this.above=e.index}static fromJson(t){return new e(rp(ip({},t),{index:t.above}))}_serialize(e){if(!(e.expandMacro||e.skipStyles||e.skipPlaceholders)&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const t=Jp(this.command,this.mode);if(null==t?void 0:t.serialize)return t.serialize(this,e);const n=this.command,i=this.bodyToLatex(e);return this.above&&!this.hasEmptyBranch("above")?Gb(`${n}[${this.aboveToLatex(e)}]`,i):/^[0-9]$/.test(i)?`${n}${i}`:Gb(n,i)}get children(){if(this._children)return this._children;const e=[];if(this.above)for(const t of this.above)e.push(...t.children),e.push(t);if(this.body)for(const t of this.body)e.push(...t.children),e.push(t);return this._children=e,e}render(e){var t;const n=new ww({parent:e,mathstyle:"cramp"},this.style),i=null!=(t=_w.createBox(n,this.body,{type:"inner"}))?t:new nw(null),r=n.scalingFactor,o=n.metrics.defaultRuleThickness/r,a=e.isDisplayStyle?Eb:o,s=new nw(null,{classes:"ML__sqrt-line",style:this.style});s.height=o,s.softWidth=i.width;let l=r*(o+a/4);const c=Math.max(2*r*a,i.height+i.depth)+l+o,u=new ww({parent:e},this.style),h=this.bind(u,new nw(wx("inner","\\surd",c,!1,u,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!h)return null;const d=h.height+h.depth-o;d>i.height+i.depth+l&&(l=(l+d-(i.height+i.depth))/2),h.setTop(h.height-i.height-l);const p=this.bind(e,new lw({firstBaseline:[{box:new nw(i)},l-2*o,{box:s},o]})),f=_w.createBox(new ww({parent:e,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!f){const t=new nw([h,p],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return t.setStyle("display","inline-block"),t.setStyle("height",t.height+t.depth,"em"),this.caret&&(t.caret=this.caret),this.bind(e,t)}const g=new lw({shift:-.6*(Math.max(h.height,p.height)-Math.max(h.depth,p.depth)),children:[{box:f}]}),m=new nw([new nw(g,{classes:"ML__sqrt-index",type:"ignore"}),h,p],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return m.height=h.height,m.depth=h.depth,this.caret&&(m.caret=this.caret),this.bind(e,m)}},uS=class extends nw{constructor(e){super(null,{type:"skip"}),this._width=e}toMarkup(){return``}};function hS(e,t){if(!e.parent)return;const n=e.parent.children,i=n.indexOf(e);let r=i-1;for(;r>=0&&"ignore"===n[r].type;)r-=1;r<0&&e.parent.parent&&"lift"===e.parent.type?hS(e.parent,t):i>0&&"skip"===n[i-1].type?n[i-1].width+=t:n.splice(i,0,new uS(t))}var dS={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},pS={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function fS(e,t){if(!e.children)return e;const n=e.children;!function(e){gS(e,((e,t)=>{"bin"!==t.type||e&&!/^(middle|bin|op|rel|open|punct)$/.test(e.type)||(t.type="ord"),"bin"===(null==e?void 0:e.type)&&/^(rel|close|punct)$/.test(t.type)&&(e.type="ord"),"ignore"!==t.type&&(e=t)}))}(n);const i=t.getRegisterAsEm("thinmuskip"),r=t.getRegisterAsEm("medmuskip"),o=t.getRegisterAsEm("thickmuskip");return gS(n,((e,t)=>{var n,a,s;if(!e)return;const l=e.type,c=t.isTight?null!=(n=pS[l])?n:null:null!=(a=dS[l])?a:null,u=null!=(s=null==c?void 0:c[t.type])?s:null;3===u&&hS(t,i),4===u&&hS(t,r),5===u&&hS(t,o)})),e}function gS(e,t,n){if(!e)return n;e=[...e];for(const i of e)"lift"===i.type?n=gS(i.children,t,n):"ignore"===i.type?gS(i.children,t):(t(n,i),gS(i.children,t),n=i);return n}var mS=class e extends _w{constructor(e){super({type:"tooltip",command:e.command,mode:e.mode,style:e.style,body:e.body,displayContainsHighlight:!0}),this.tooltip=new _w({type:"root",mode:e.content,body:e.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(t){return new e(rp(ip({},t),{tooltip:yS(t.tooltip)}))}toJson(){var e;const t=null==(e=this.tooltip.body)?void 0:e.filter((e=>"first"!==e.type)).map((e=>e.toJson()));return rp(ip({},super.toJson()),{tooltip:t})}render(e){const t=_w.createBox(new ww,this.body);if(!t)return null;const n=new ww({parent:e,mathstyle:"displaystyle"},{fontSize:5}),i=rw(fS(new nw(this.tooltip.render(n),{classes:"ML__tooltip-content"}),n)),r=new nw([i,t],{classes:"ML__tooltip-container"});return this.caret&&(r.caret=this.caret),this.bind(e,r)}},vS=class e extends _w{constructor(e,t){super(rp(ip({},t),{type:"operator",isFunction:null==t?void 0:t.isFunction})),this.value=e,this.variant=null==t?void 0:t.variant,this.variantStyle=null==t?void 0:t.variantStyle,this.subsupPlacement=null==t?void 0:t.limits}static fromJson(t){return new e(t.symbol,t)}toJson(){const e=super.toJson();return this.variant&&(e.variant=this.variant),this.variantStyle&&(e.variantStyle=this.variantStyle),this.subsupPlacement&&(e.limits=this.subsupPlacement),this.value&&(e.symbol=this.value),e}render(e){var t;const n=new nw(this.value,{type:"op",mode:"math",maxFontSize:e.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:e.letterShapeStyle});let i=n;if(this.superscript||this.subscript){const r=null!=(t=this.subsupPlacement)?t:"auto";i="over-under"===r||"auto"===r&&e.isDisplayStyle?this.attachLimits(e,{base:n}):this.attachSupsub(e,{base:n})}return new nw(this.bind(e,i),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(e)}_serialize(e){if(!(e.expandMacro||e.skipStyles||e.skipPlaceholders)&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const t=Jp(this.command,this.mode);if(null==t?void 0:t.serialize)return t.serialize(this,e);const n=[this.command];return this.explicitSubsupPlacement&&("over-under"===this.subsupPlacement&&n.push("\\limits"),"adjacent"===this.subsupPlacement&&n.push("\\nolimits"),"auto"===this.subsupPlacement&&n.push("\\displaylimits")),n.push(this.supsubToLatex(e)),Kb(n)}};function yS(e){if(sp(e))return e.map((e=>yS(e)));if("string"==typeof e)return _w.fromJson(e);e=ip({},e);for(const t of xw)e[t]&&(e[t]=yS(e[t]));e.args&&(e.args=function(e){return e&&Array.isArray(e)?e.map((e=>""===e?null:"object"==typeof e&&"group"in e?{group:e.group.map((e=>yS(e)))}:"object"==typeof e&&"atoms"in e?e.atoms.map((e=>yS(e))):e)):void 0}(e.args)),e.array&&(e.array=yS(e.array));const t=e.type;let n;"accent"===t&&(n=sx.fromJson(e)),"array"===t&&(n=Lx.fromJson(e)),"box"===t&&(n=Nx.fromJson(e)),"chem"===t&&(n=Vx.fromJson(e)),"composition"===t&&(n=Ix.fromJson(e)),"delim"===t&&(n=Yx.fromJson(e)),"enclose"===t&&(n=Qx.fromJson(e)),"error"===t&&(n=Bx.fromJson(e)),"extensible-symbol"===t&&(n=rS.fromJson(e)),"genfrac"===t&&(n=tS.fromJson(e)),"group"===t&&(n=Rx.fromJson(e)),"latex"===t&&(n=nS.fromJson(e)),"latexgroup"===t&&(n=iS.fromJson(e)),"leftright"===t&&(n=Ox.fromJson(e)),"macro"===t&&(n=zx.fromJson(e)),"macro-argument"===t&&(n=jx.fromJson(e)),"operator"===t&&(n=vS.fromJson(e)),"overlap"===t&&(n=oS.fromJson(e)),"overunder"===t&&(n=aS.fromJson(e)),"placeholder"===t&&(n=kx.fromJson(e)),"prompt"===t&&(n=$x.fromJson(e)),"phantom"===t&&(n=sS.fromJson(e)),"sizeddelim"===t&&(n=Xx.fromJson(e)),"spacing"===t&&(n=lS.fromJson(e)),"subsup"===t&&(n=Hx.fromJson(e)),"surd"===t&&(n=cS.fromJson(e)),"text"===t&&(n=Ew.fromJson(e)),"tooltip"===t&&(n=mS.fromJson(e)),n||(console.assert(!t||["first","mbin","mrel","mclose","minner","mop","mopen","mord","mpunct","root","space"].includes(t),`MathLive 0.98.5: an unexpected atom type "${t}" was encountered. Add new atom constructors to \`fromJson()\` in "atom.ts"`),n=_w.fromJson(e));for(const t of xw)e[t]&&n.setChildren(e[t],t);return void 0!==e.verbatimLatex&&(n.verbatimLatex=e.verbatimLatex),e.subsupPlacement&&(n.subsupPlacement=e.subsupPlacement),e.explicitSubsupPlacement&&(n.explicitSubsupPlacement=!0),e.isFunction&&(n.isFunction=!0),e.isExtensibleSymbol&&(n.isExtensibleSymbol=!0),e.skipBoundary&&(n.skipBoundary=!0),e.captureSelection&&(n.captureSelection=!0),n}var bS={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},wS={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^’‘]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},xS=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,SS=[/^[a-z]$/,/^[A-Z]$/,xS,/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/],kS={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]};function _S(e){if(!e)return"";const{style:t}=e;if(void 0===t.variant)return"";let n=t.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(t.variant)&&t.variantStyle&&"up"!==t.variantStyle&&(n+="-"+t.variantStyle),n}function CS(e,t){return Yb(e,"fontSeries").map((e=>{const n=function(e,t){return Yb(e,"fontShape").map((e=>{const n=function(e,t){return e.map((e=>e._serialize(t)))}(e,t),{fontShape:i}=e[0].style;let r="";return"it"===i&&(r="\\textit"),"sl"===i&&(r="\\textsl"),"sc"===i&&(r="\\textsc"),"n"===i&&(r="\\textup"),!r&&i?`{${Gb("\\fontshape",i)}${Kb(n)}}`:r?Gb(r,Kb(n)):Kb(n)}))}(e,t),{fontSeries:i}=e[0].style;let r="";return"b"===i&&(r="\\textbf"),"l"===i&&(r="\\textlf"),"m"===i&&(r="\\textmd"),i&&!r?`{${Gb("\\fontseries",i)}${Kb(n)}}`:r?Gb(r,Kb(n)):Kb(n)}))}function PS(e,t,n){return Yb(e,"fontFamily").map((e=>{var i,r;const o=function(e,t){return Yb(e,"fontSize").map((e=>{var n,i;const r=CS(e,t),o=null!=(i=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][null!=(n=e[0].style.fontSize)?n:""])?i:"";return o?`${o} ${Kb(r)}`:Kb(r)}))}(e,t),a=null!=(r={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[null!=(i=e[0].style.fontFamily)?i:""])?r:"";return a?`\\${a}{${Kb(o)}}`:e[0].style.fontFamily?`{\\fontfamily{${e[0].style.fontFamily}} ${Kb(o)}}`:n?`\\text{${Kb(o)}}`:Kb(o)}))}new class extends Wb{constructor(){super("math")}createAtom(e,t,n){var i,r,o,a;if(null===t)return new _w({type:"mord",mode:"math",command:e,value:e,style:n});const s=window.MathfieldElement.isFunction(null!=(i=t.command)?i:e);if("symbol"===t.definitionType){const i=new _w({type:null!=(r=t.type)?r:"mord",mode:"math",command:null!=(o=t.command)?o:e,value:String.fromCodePoint(t.codepoint),style:n});return s&&(i.isFunction=!0),e.startsWith("\\")&&(i.verbatimLatex=e),i}const l=new _w({type:"mord",mode:"math",command:null!=(a=t.command)?a:e,value:e,style:n});return s&&(l.isFunction=!0),e.startsWith("\\")&&(l.verbatimLatex=e),l}serialize(e,t){const n=function(e,t){const{parent:n}=e[0],i=_S(n);return Yb(e,"variant").map((e=>{const n=_S(e[0]);let r="";n&&n!==i&&(r={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[n],console.assert(void 0!==r));const o=Kb(e.map((e=>e._serialize(t))));return r?Gb(r,o):o}))}(e,rp(ip({},t),{defaultMode:"math"}));return 0===n.length||"text"!==t.defaultMode?n:["$ ",...n," $"]}getFont(e,t){console.assert(void 0!==t.variant);let{variant:n}=t,{variantStyle:i}=t;"normal"===n&&!i&&/[\u00A3\u0131\u0237]/.test(e.value)&&(n="main",i="italic"),"normal"!==n||i||1!==e.value.length||SS.forEach(((n,r)=>{var o;n.test(e.value)&&"it"===kS[null!=(o=t.letterShapeStyle)?o:"tex"][r]&&(i="italic")})),"up"===i&&(i=void 0);const r=i?n+"-"+i:n;console.assert(void 0!==bS[r]);const[o,a]=bS[r];return wS[n]&&!wS[n].test(e.value)?(e.value=Mp(e.value,n,i),null):(xS.test(e.value)&&(e.classes+=" lcGreek"),a&&(e.classes+=" "+a),o)}};var ES={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"};new class extends Wb{constructor(){super("text")}createAtom(e,t,n){return t&&"symbol"===t.definitionType?new Ew(e,String.fromCodePoint(t.codepoint),null!=n?n:{}):null}serialize(e,t){return PS(e,rp(ip({},t),{defaultMode:"text"}),"text"!==t.defaultMode)}getFont(e,t){var n,i,r,o,a;const{fontFamily:s}=t;if(ES[s]?e.classes+=" "+ES[s]:s&&e.setStyle("font-family",s),t.fontShape&&(e.classes+=" ",e.classes+=null!=(n={it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[t.fontShape])?n:""),t.fontSeries){const n=t.fontSeries.match(/(.?[lbm])?(.?[cx])?/);n&&(e.classes+=" ",e.classes+=null!=(r={ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[null!=(i=n[1])?i:""])?r:"",e.classes+=" ",e.classes+=null!=(a={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[null!=(o=n[2])?o:""])?a:"")}return"Main-Regular"}};new class extends Wb{constructor(){super("latex")}createAtom(e){return new nS(e)}serialize(e,t){return e.filter((e=>e instanceof nS&&!e.isSuggestion)).map((e=>e.value))}getFont(){return null}};var MS={id:"apple.en-intl",displayName:"English (international)",virtualLayout:"qwerty",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","∫","ı"],KeyC:["c","C","ç","Ç"],KeyD:["d","D","∂","Î"],KeyE:["e","E","´","´"],KeyF:["f","F","ƒ","Ï"],KeyG:["g","G","©","˝"],KeyH:["h","H","˙","Ó"],KeyI:["i","I","ˆ","ˆ"],KeyJ:["j","J","∆","Ô"],KeyK:["k","K","˚",""],KeyL:["l","L","¬","Ò"],KeyM:["m","M","µ","Â"],KeyN:["n","N","˜","˜"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","œ","Œ"],KeyR:["r","R","®","‰"],KeyS:["s","S","ß","Í"],KeyT:["t","T","†","ˇ"],KeyU:["u","U","¨","¨"],KeyV:["v","V","√","◊"],KeyW:["w","W","∑","„"],KeyX:["x","X","≈","˛"],KeyY:["y","Y","¥","Á"],KeyZ:["z","Z","Ω","¸"],Digit1:["1","!","¡","⁄"],Digit2:["2","@","™","€"],Digit3:["3","#","£","‹"],Digit4:["4","$","¢","›"],Digit5:["5","%","∞","fi"],Digit6:["6","^","§","fl"],Digit7:["7","&","¶","‡"],Digit8:["8","*","•","°"],Digit9:["9","(","ª","·"],Digit0:["0",")","º","‚"],Space:[" "," "," "," "],Minus:["-","_","–","—"],Equal:["=","+","≠","±"],BracketLeft:["[","{","“","”"],BracketRight:["]","}","‘","’"],Backslash:["\\","|","«","»"],Semicolon:[";",":","…","Ú"],Quote:["'",'"',"æ","Æ"],Backquote:["`","˜","`","`"],Comma:[",","<","≤","¯"],Period:[".",">","≥","˘"],Slash:["/","?","÷","¿"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["§","±","§","±"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},LS={id:"windows.en-intl",displayName:"English (international)",platform:"windows",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","á","Á"],KeyB:["b","B","",""],KeyC:["c","C","©","¢"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","é","É"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","í","Í"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","ø","Ø"],KeyM:["m","M","µ",""],KeyN:["n","N","ñ","Ñ"],KeyO:["o","O","ó","Ó"],KeyP:["p","P","ö","Ö"],KeyQ:["q","Q","ä","Ä"],KeyR:["r","R","®",""],KeyS:["s","S","ß","§"],KeyT:["t","T","þ","Þ"],KeyU:["u","U","ú","Ú"],KeyV:["v","V","",""],KeyW:["w","W","å","Å"],KeyX:["x","X","",""],KeyY:["y","Y","ü","Ü"],KeyZ:["z","Z","æ","Æ"],Digit1:["1","!","¡","¹"],Digit2:["2","@","²",""],Digit3:["3","#","³",""],Digit4:["4","$","¤","£"],Digit5:["5","%","€",""],Digit6:["6","^","¼",""],Digit7:["7","&","½",""],Digit8:["8","*","¾",""],Digit9:["9","(","‘",""],Digit0:["0",")","’",""],Space:[" "," ","",""],Minus:["-","_","¥",""],Equal:["=","+","×","÷"],BracketLeft:["[","{","«",""],BracketRight:["]","}","»",""],Backslash:["\\","|","¬","¦"],Semicolon:[";",":","¶","°"],Quote:["'",'"',"´","¨"],Backquote:["`","~","",""],Comma:[",","<","ç","Ç"],Period:[".",">","",""],Slash:["/","?","¿",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}},AS={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}};function TS(e){const t=e.split("+"),n={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:t.pop()};return t.includes("shift")&&(n.shift=!0),t.includes("alt")&&(n.alt=!0),t.includes("ctrl")&&(n.ctrl=!0),t.includes("cmd")&&(n.cmd=!0),t.includes("win")&&(n.win=!0),t.includes("meta")&&(n.meta=!0),n}function DS(e){let t="";return e.shift&&(t+="shift+"),e.alt&&(t+="alt+"),e.ctrl&&(t+="ctrl+"),e.cmd&&(t+="cmd+"),e.win&&(t+="win+"),e.meta&&(t+="meta+"),t+e.key}var NS,IS={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},BS=[];function RS(){switch(up()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function OS(e){e.platform&&e.platform!==RS()||BS.push(e)}function FS(){return null!=NS?NS:BS[0]}switch(RS()){case"apple":OS(MS),OS({id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","‡","Ω"],KeyB:["b","B","ß","∫"],KeyC:["c","C","©","¢"],KeyD:["d","D","∂","∆"],KeyE:["e","E","ê","Ê"],KeyF:["f","F","ƒ","·"],KeyG:["g","G","fi","fl"],KeyH:["h","H","Ì","Î"],KeyI:["i","I","î","ï"],KeyJ:["j","J","Ï","Í"],KeyK:["k","K","È","Ë"],KeyL:["l","L","¬","|"],KeyM:[",","?","∞","¿"],KeyN:["n","N","~","ı"],KeyO:["o","O","œ","Œ"],KeyP:["p","P","π","∏"],KeyQ:["a","A","æ","Æ"],KeyR:["r","R","®","‚"],KeyS:["s","S","Ò","∑"],KeyT:["t","T","†","™"],KeyU:["u","U","º","ª"],KeyV:["v","V","◊","√"],KeyW:["z","Z","Â","Å"],KeyX:["x","X","≈","⁄"],KeyY:["y","Y","Ú","Ÿ"],KeyZ:["w","W","‹","›"],Digit1:["&","1","","´"],Digit2:["é","2","ë","„"],Digit3:['"',"3","“","”"],Digit4:["'","4","‘","’"],Digit5:["(","5","{","["],Digit6:["§","6","¶","å"],Digit7:["è","7","«","»"],Digit8:["!","8","¡","Û"],Digit9:["ç","9","Ç","Á"],Digit0:["à","0","ø","Ø"],Space:[" "," "," "," "],Minus:[")","°","}","]"],Equal:["-","_","—","–"],BracketLeft:["^","¨","ô","Ô"],BracketRight:["$","*","€","¥"],Backslash:["`","£","@","#"],Semicolon:["m","M","µ","Ó"],Quote:["ù","%","Ù","‰"],Backquote:["<",">","≤","≥"],Comma:[";",".","…","•"],Period:[":","/","÷","\\"],Slash:["=","+","≠","±"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","•","Ÿ"],NumpadEqual:["=","=","=","="]}}),OS({id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","ß",""],KeyC:["c","C","©"," "],KeyD:["d","D","∂","∆"],KeyE:["e","E","€","€"],KeyF:["f","F","ƒ","fi"],KeyG:["g","G","","fl"],KeyH:["h","H","™"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","¶","¯"],KeyK:["k","K","§","ˇ"],KeyL:["l","L"," ","˘"],KeyM:["m","M","µ","˚"],KeyN:["n","N"," ","˙"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","œ","Œ"],KeyR:["r","R","®"," "],KeyS:["s","S","∫"," "],KeyT:["t","T","†","‡"],KeyU:["u","U"," "," "],KeyV:["v","V","√","◊"],KeyW:["w","W","æ","Æ"],KeyX:["x","X","∑","›"],KeyY:["y","Y","¥"," "],KeyZ:["z","Z","Ω","‹"],Digit1:["1","!","|","ı"],Digit2:["2",'"',"@","˝"],Digit3:["3","·","#","•"],Digit4:["4","$","¢","£"],Digit5:["5","%","∞","‰"],Digit6:["6","&","¬"," "],Digit7:["7","/","÷","⁄"],Digit8:["8","(","“","‘"],Digit9:["9",")","”","’"],Digit0:["0","=","≠","≈"],Space:[" "," "," "," "],Minus:["'","?","´","¸"],Equal:["¡","¿","‚","˛"],BracketLeft:["`","^","[","ˆ"],BracketRight:["+","*","]","±"],Backslash:["ç","Ç","}","»"],Semicolon:["ñ","Ñ","~","˜"],Quote:["´","¨","{","«"],Backquote:["<",">","≤","≥"],Comma:[",",";","„",""],Period:[".",":","…","…"],Slash:["-","_","–","—"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["º","ª","\\","°"]}}),OS({id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","∫","‹"],KeyC:["c","C","ç","Ç"],KeyD:["d","D","∂","™"],KeyE:["e","E","€","‰"],KeyF:["f","F","ƒ","Ï"],KeyG:["g","G","©","Ì"],KeyH:["h","H","ª","Ó"],KeyI:["i","I","⁄","Û"],KeyJ:["j","J","º","ı"],KeyK:["k","K","∆","ˆ"],KeyL:["l","L","@","fl"],KeyM:["m","M","µ","˘"],KeyN:["n","N","~","›"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","«","»"],KeyR:["r","R","®","¸"],KeyS:["s","S","‚","Í"],KeyT:["t","T","†","˝"],KeyU:["u","U","¨","Á"],KeyV:["v","V","√","◊"],KeyW:["w","W","∑","„"],KeyX:["x","X","≈","Ù"],KeyY:["z","Z","Ω","ˇ"],KeyZ:["y","Y","¥","‡"],Digit1:["1","!","¡","¬"],Digit2:["2",'"',"“","”"],Digit3:["3","§","¶","#"],Digit4:["4","$","¢","£"],Digit5:["5","%","[","fi"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","˜"],Digit9:["9",")","}","·"],Digit0:["0","=","≠","¯"],Space:[" "," "," "," "],Minus:["ß","?","¿","˙"],Equal:["´","`","'","˚"],BracketLeft:["ü","Ü","•","°"],BracketRight:["+","*","±",""],Backslash:["#","'","‘","’"],Semicolon:["ö","Ö","œ","Œ"],Quote:["ä","Ä","æ","Æ"],Backquote:["<",">","≤","≥"],Comma:[",",";","∞","˛"],Period:[".",":","…","÷"],Slash:["-","_","–","—"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","°","„","“"],NumpadEqual:["=","=","=","="]}});break;case"windows":OS(LS),OS({id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["é","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["è","7","`",""],Digit8:["_","8","\\",""],Digit9:["ç","9","^",""],Digit0:["à","0","@",""],Space:[" "," ","",""],Minus:[")","°","]",""],Equal:["=","+","}",""],BracketLeft:["^","¨","",""],BracketRight:["$","£","¤",""],Backslash:["*","µ","",""],Semicolon:["m","M","",""],Quote:["ù","%","",""],Backquote:["²","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","§","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}}),OS({id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","·","#",""],Digit4:["4","$","~",""],Digit5:["5","%","€",""],Digit6:["6","&","¬",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["¡","¿","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["ç","Ç","}",""],Semicolon:["ñ","Ñ","",""],Quote:["´","¨","{",""],Backquote:["º","ª","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}}),OS({id:"windows.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","µ",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"²",""],Digit3:["3","§","³",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["ß","?","\\","ẞ"],Equal:["´","`","",""],BracketLeft:["ü","Ü","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["ö","Ö","",""],Quote:["ä","Ä","",""],Backquote:["^","°","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}});break;case"linux":OS(AS),OS({id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","Ω"],KeyB:["b","B","”","’"],KeyC:["c","C","¢","©"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","€","¢"],KeyF:["f","F","đ","ª"],KeyG:["g","G","ŋ","Ŋ"],KeyH:["h","H","ħ","Ħ"],KeyI:["i","I","→","ı"],KeyJ:["j","J","̉","̛"],KeyK:["k","K","ĸ","&"],KeyL:["l","L","ł","Ł"],KeyM:[",","?","́","̋"],KeyN:["n","N","n","N"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","þ","Þ"],KeyQ:["a","A","æ","Æ"],KeyR:["r","R","¶","®"],KeyS:["s","S","ß","§"],KeyT:["t","T","ŧ","Ŧ"],KeyU:["u","U","↓","↑"],KeyV:["v","V","“","‘"],KeyW:["z","Z","«","<"],KeyX:["x","X","»",">"],KeyY:["y","Y","←","¥"],KeyZ:["w","W","ł","Ł"],Digit1:["&","1","¹","¡"],Digit2:["é","2","~","⅛"],Digit3:['"',"3","#","£"],Digit4:["'","4","{","$"],Digit5:["(","5","[","⅜"],Digit6:["-","6","|","⅝"],Digit7:["è","7","`","⅞"],Digit8:["_","8","\\","™"],Digit9:["ç","9","^","±"],Digit0:["à","0","@","°"],Enter:["\r","\r","\r","\r"],Escape:["","","",""],Backspace:["\b","\b","\b","\b"],Tab:["\t","","\t",""],Space:[" "," "," "," "],Minus:[")","°","]","¿"],Equal:["=","+","}","̨"],BracketLeft:["̂","̈","̈","̊"],BracketRight:["$","£","¤","̄"],Backslash:["*","µ","̀","̆"],Semicolon:["m","M","µ","º"],Quote:["ù","%","̂","̌"],Backquote:["²","~","¬","¬"],Comma:[";",".","─","×"],Period:[":","/","·","÷"],Slash:["!","§","̣","̇"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"]}}),OS({id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","æ","Æ"],KeyB:["b","B","”","’"],KeyC:["c","C","¢","©"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","€","¢"],KeyF:["f","F","đ","ª"],KeyG:["g","G","ŋ","Ŋ"],KeyH:["h","H","ħ","Ħ"],KeyI:["i","I","→","ı"],KeyJ:["j","J","̉","̛"],KeyK:["k","K","ĸ","&"],KeyL:["l","L","ł","Ł"],KeyM:["m","M","µ","º"],KeyN:["n","N","n","N"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","þ","Þ"],KeyQ:["q","Q","@","Ω"],KeyR:["r","R","¶","®"],KeyS:["s","S","ß","§"],KeyT:["t","T","ŧ","Ŧ"],KeyU:["u","U","↓","↑"],KeyV:["v","V","“","‘"],KeyW:["w","W","ł","Ł"],KeyX:["x","X","»",">"],KeyY:["y","Y","←","¥"],KeyZ:["z","Z","«","<"],Digit1:["1","!","|","¡"],Digit2:["2",'"',"@","⅛"],Digit3:["3","·","#","£"],Digit4:["4","$","~","$"],Digit5:["5","%","½","⅜"],Digit6:["6","&","¬","⅝"],Digit7:["7","/","{","⅞"],Digit8:["8","(","[","™"],Digit9:["9",")","]","±"],Digit0:["0","=","}","°"],Enter:["\r","\r","\r","\r"],Escape:["","","",""],Backspace:["\b","\b","\b","\b"],Tab:["\t","","\t",""],Space:[" "," "," "," "],Minus:["'","?","\\","¿"],Equal:["¡","¿","̃","~"],BracketLeft:["̀","̂","[","̊"],BracketRight:["+","*","]","̄"],Backslash:["ç","Ç","}","̆"],Semicolon:["ñ","Ñ","~","̋"],Quote:["́","̈","{","{"],Backquote:["º","ª","\\","\\"],Comma:[",",";","─","×"],Period:[".",":","·","÷"],Slash:["-","_","̣","̇"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}}),OS({id:"linux.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","æ","Æ"],KeyB:["b","B","“","‘"],KeyC:["c","C","¢","©"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","€","€"],KeyF:["f","F","đ","ª"],KeyG:["g","G","ŋ","Ŋ"],KeyH:["h","H","ħ","Ħ"],KeyI:["i","I","→","ı"],KeyJ:["j","J","̣","̇"],KeyK:["k","K","ĸ","&"],KeyL:["l","L","ł","Ł"],KeyM:["m","M","µ","º"],KeyN:["n","N","”","’"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","þ","Þ"],KeyQ:["q","Q","@","Ω"],KeyR:["r","R","¶","®"],KeyS:["s","S","ſ","ẞ"],KeyT:["t","T","ŧ","Ŧ"],KeyU:["u","U","↓","↑"],KeyV:["v","V","„","‚"],KeyW:["w","W","ł","Ł"],KeyX:["x","X","«","‹"],KeyY:["z","Z","←","¥"],KeyZ:["y","Y","»","›"],Digit1:["1","!","¹","¡"],Digit2:["2",'"',"²","⅛"],Digit3:["3","§","³","£"],Digit4:["4","$","¼","¤"],Digit5:["5","%","½","⅜"],Digit6:["6","&","¬","⅝"],Digit7:["7","/","{","⅞"],Digit8:["8","(","[","™"],Digit9:["9",")","]","±"],Digit0:["0","=","}","°"],Enter:["\r","\r","\r","\r"],Escape:["","","",""],Backspace:["\b","\b","\b","\b"],Tab:["\t","","\t",""],Space:[" "," "," "," "],Minus:["ß","?","\\","¿"],Equal:["́","̀","̧","̨"],BracketLeft:["ü","Ü","̈","̊"],BracketRight:["+","*","~","¯"],Backslash:["#","'","’","̆"],Semicolon:["ö","Ö","̋","̣"],Quote:["ä","Ä","̂","̌"],Backquote:["̂","°","′","″"],Comma:[",",";","·","×"],Period:[".",":","…","÷"],Slash:["-","_","–","—"],PrintScreen:["","","",""],PageUp:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",",","",","],IntlBackslash:["<",">","|","̱"],AltRight:["\r","\r","\r","\r"],MetaRight:[".",".",".","."]}})}function zS(e){var t;const n=/macos|ios/.test(up()),i=e.split("+");let r="";for(const e of i)r&&(r+=n?" ":'+'),e.startsWith("[Key")?r+=e.slice(4,5):e.startsWith("Key")?r+=e.slice(3,4):e.startsWith("[Digit")?r+=e.slice(6,7):e.startsWith("Digit")?r+=e.slice(5,6):r+=null!=(t={cmd:"⌘",meta:n?"⌘":"Ctrl",shift:n?"⇧":"Shift",alt:n?"⌥":"Alt",ctrl:n?"⌃":"Ctrl","\n":n?"⏎":"Return","[return]":n?"⏎":"Return","[enter]":n?"⌤":"Enter","[tab]":n?"⇥":"Tab","[escape]":"Esc","[backspace]":n?"⌫":"Backspace","[delete]":n?"⌦":"Del","[pageup]":n?"⇞":"Page Up","[pagedown]":n?"⇟":"Page Down","[home]":n?"⤒":"Home","[end]":n?"⤓":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* 🔢",numpaddivide:"/ 🔢",numpadsubtract:"- 🔢",numpadadd:"+ 🔢",numpaddecimal:". 🔢",numpadcomma:", 🔢",help:"help",left:"⇠",up:"⇡",right:"⇢",down:"⇣","[arrowleft]":"⇠","[arrowup]":"⇡","[arrowright]":"⇢","[arrowdown]":"⇣"}[e.toLowerCase()])?t:e.toUpperCase();return r}function jS(e){if(e instanceof MouseEvent||e instanceof PointerEvent)return{x:e.clientX,y:e.clientY};if(e instanceof TouchEvent){const t=[...e.touches].reduce(((e,t)=>({x:e.x+t.clientX,y:e.y+t.clientY})),{x:0,y:0}),n=e.touches.length;return{x:t.x/n,y:t.y/n}}}function $S(e){const t={alt:!1,control:!1,shift:!1,meta:!1};return(e instanceof MouseEvent||e instanceof PointerEvent||e instanceof TouchEvent||e instanceof KeyboardEvent)&&(e.altKey&&(t.alt=!0),e.ctrlKey&&(t.control=!0),e.metaKey&&(t.meta=!0),e.shiftKey&&(t.shift=!0)),t}OS({id:"dvorak",locale:"en",displayName:"Dvorak",virtualLayout:"dvorak",platform:"",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["x","X","≈","˛"],KeyC:["j","J","∆","Ô"],KeyD:["e","E","´","´"],KeyE:[".",">","≥","˘"],KeyF:["u","U","¨","¨"],KeyG:["i","I","ˆ","ˆ"],KeyH:["d","D","∂","Î"],KeyI:["c","C","ç","Ç"],KeyJ:["h","H","˙","Ó"],KeyK:["t","T","†","ˇ"],KeyL:["n","N","˜","˜"],KeyM:["m","M","µ","Â"],KeyN:["b","B","∫","ı"],KeyO:["r","R","®","‰"],KeyP:["l","L","¬","Ò"],KeyQ:["'",'"',"æ","Æ"],KeyR:["p","P","π","∏"],KeyS:["o","O","ø","Ø"],KeyT:["y","Y","¥","Á"],KeyU:["g","G","©","˝"],KeyV:["k","K","˚",""],KeyW:[",","<","≤","¯"],KeyX:["q","Q","œ","Œ"],KeyY:["f","F","ƒ","Ï"],KeyZ:[";",":","…","Ú"],Digit1:["1","!","¡","⁄"],Digit2:["2","@","™","€"],Digit3:["3","#","£","‹"],Digit4:["4","$","¢","›"],Digit5:["5","%","∞","fi"],Digit6:["6","^","§","fl"],Digit7:["7","&","¶","‡"],Digit8:["8","*","•","°"],Digit9:["9","(","ª","·"],Digit0:["0",")","º","‚"],Space:[" "," "," "," "],Minus:["[","{","“","”"],Equal:["]","}","‘","’"],BracketLeft:["/","?","÷","¿"],BracketRight:["=","+","≠","±"],Backslash:["\\","|","«","»"],Semicolon:["s","S","ß","Í"],Quote:["-","_","–","—"],Backquote:["`","~","`","`"],Comma:["w","W","∑","„"],Period:["v","V","√","◊"],Slash:["z","Z","Ω","¸"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["§","±","§","±"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}});var HS=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function ZS(e){return!e.ctrlKey&&!e.metaKey&&(!["Dead","Process"].includes(e.key)&&(""===e.code||HS.has(e.code)))}function KS(){var e;let t=document.activeElement;for(;null==(e=null==t?void 0:t.shadowRoot)?void 0:e.activeElement;)t=t.shadowRoot.activeElement;return t}var GS=class e{static get scrim(){return e._scrim||(e._scrim=new e),e._scrim}static open(t){e.scrim.open(t)}static close(){e.scrim.close()}static get state(){return e.scrim.state}static get element(){return e.scrim.element}constructor(e){var t,n;this.lightDismiss=null==(t=null==e?void 0:e.lightDismiss)||t,this.translucent=null!=(n=null==e?void 0:e.translucent)&&n,this.state="closed"}get element(){if(this._element)return this._element;const e=document.createElement("div");return e.setAttribute("role","presentation"),e.style.position="fixed",e.style.contain="content",e.style.top="0",e.style.left="0",e.style.right="0",e.style.bottom="0",e.style.zIndex="var(--scrim-zindex, 10099)",e.style.outline="none",this.translucent?(e.style.background="rgba(255, 255, 255, .2)",e.style.backdropFilter="contrast(40%)"):e.style.background="transparent",this._element=e,e}open(e){var t;if("closed"!==this.state)return;this.state="opening",this.onDismiss=null==e?void 0:e.onDismiss,this.savedActiveElement=KS();const{element:n}=this;(null!=(t=null==e?void 0:e.root)?t:document.body).appendChild(n),n.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const i=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const r=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${r+i}px`,(null==e?void 0:e.child)&&n.append(e.child),this.state="open"}close(){var e,t,n,i;if("open"!==this.state)return void console.assert(null!==this.element.parentElement);this.state="closing","function"==typeof this.onDismiss&&this.onDismiss(),this.onDismiss=void 0;const{element:r}=this;r.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),r.remove(),document.body.style.overflow=null!=(e=this.savedOverflow)?e:"",document.body.style.marginRight=null!=(t=this.savedMarginRight)?t:"",KS()!==this.savedActiveElement&&(null==(i=null==(n=this.savedActiveElement)?void 0:n.focus)||i.call(n)),r.innerHTML="",this.state="closed"}handleEvent(e){this.lightDismiss&&(e.target===this._element&&"click"===e.type?(this.close(),e.preventDefault(),e.stopPropagation()):e.target!==document||"touchmove"!==e.type&&"scroll"!==e.type||(this.close(),e.preventDefault(),e.stopPropagation()))}};function US(e){var t;if(!e||!ZS(e))return"";let n;return"Unidentified"===e.key&&e.target&&(n=e.target.value),n=null!=(t=null!=n?n:e.key)?t:e.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(n)&&(n=""),n}function VS(e){e=function(e){if(e.code)return e;const t=Object.entries(FS().mapping);let n=!1,i=!1,r="";for(let o=0;o<4;o++){for(const[a,s]of t)if(s[o]===e.key){r=a,3===o?(n=!0,i=!0):2===o?n=!0:1===o&&(i=!0);break}if(r)break}return new KeyboardEvent(e.type,rp(ip({},e),{altKey:n,shiftKey:i,code:r}))}(e);const t=[];return e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),0===t.length?`[${e.code}]`:(t.push(`[${e.code}]`),t.join("+"))}function WS(e){let t=e;return sp(t)&&(t=t.length>0?t[0]+"("+t.slice(1).join("")+")":""),t}function qS(e,t){let n=[];if("string"==typeof t){const e=Gw[t];sp(e)?n=e.slice():e&&n.push(e)}const i=WS(t),r=new RegExp("^"+i.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const t of e)r.test(WS(t.command))&&n.push(t.key);return n.map(zS)}function YS(e,t){if(e.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(e.ifPlatform))throw new Error(`Unexpected platform "${e.ifPlatform}" for keybinding ${e.key}`);if(void 0!==e.ifLayout&&(0===t.score||!e.ifLayout.includes(t.id)))return;const n=TS(e.key);let i=e.ifPlatform;if(n.cmd){if(i&&"macos"!==i&&"ios"!==i)throw new Error('Unexpected "cmd" modifier with platform "'+i+'"\n"cmd" modifier can only be used with macOS or iOS platform.');i||(i="ios"===up()?"ios":"macos"),n.win=!1,n.cmd=!1,n.meta=!0}if(n.win){if(i&&"windows"!==i)throw new Error('Unexpected "win" modifier with platform "'+i+'"\n"win" modifier can only be used with Windows platform.');i="windows",n.win=!1,n.cmd=!1,n.meta=!0}if(i&&!function(e){if(lp()){const t=up(),n=e.startsWith("!"),i=e.endsWith(t);if(n&&!i)return!0;if(!n&&i)return!0}return"!other"!==e&&"other"===e}(i))return;if(/^\[.+\]$/.test(n.key))return rp(ip({},e),{key:DS(n)});const r=function(e,t){var n;const i={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!e)return i;for(const[n,r]of Object.entries(t.mapping)){if(r[0]===e)return i.key=`[${n}]`,i;if(r[1]===e)return i.shift=!0,i.key=`[${n}]`,i;if(r[2]===e)return i.alt=!0,i.key=`[${n}]`,i;if(r[3]===e)return i.shift=!0,i.alt=!0,i.key=`[${n}]`,i}return i.key=null!=(n=IS[e])?n:"",i}(n.key,t);if(!r)return rp(ip({},e),{key:DS(n)});if(r.shift&&n.shift||r.alt&&n.alt)throw new Error(`The keybinding ${e.key} (${XS(e.command)}) is conflicting with the key combination ${DS(r)} using the ${t.displayName} keyboard layout`);return r.shift=r.shift||n.shift,r.alt=r.alt||n.alt,r.meta=n.meta,r.ctrl=n.ctrl,rp(ip({},e),{key:DS(r)})}function XS(e){if(Array.isArray(e)){const t=[...e];return t.shift()+"("+t.map((e=>"string"==typeof e?`"${e}"`:e.toString())).join(", ")+")"}return e}function QS(e){var t,n;const i=e.atoms.find((e=>"latexgroup"===e.type));return i&&null!=(n=null==(t=i.body)?void 0:t.filter((e=>"latex"===e.type)))?n:[]}function JS(e,t){var n;let i=0,r=!1;const o=Number.isFinite(null==t?void 0:t.before)?null!=(n=null==t?void 0:t.before)?n:0:e.lastOffset;for(;i<=o&&!r;){const t=e.at(i);r=t instanceof nS&&t.isSuggestion,r||i++}if(!r)return[void 0,void 0];let a=i,s=!1;for(;a<=o&&!s;){const t=e.at(a);s=!(t instanceof nS&&t.isSuggestion),s||a++}return[i-1,a-1]}function ek(e){const t=QS(e.model).filter((e=>e.isSuggestion));if(0!==t.length){e.model.position=e.model.offsetOf(t[0].leftSibling);for(const e of t)e.parent.removeChild(e)}}function tk(e,t){var n;const{model:i}=e;ek(e);for(const e of QS(i))e.isError=!1;if(!i.selectionIsCollapsed||"off"===e.options.popoverPolicy)return void ck(e);const r=[];let o=i.at(i.position);for(;o&&o instanceof nS&&/^[a-zA-Z\*]$/.test(o.value);)o=o.leftSibling;if(o&&o instanceof nS&&"\\"===o.value)for(r.push(o),o=o.rightSibling;o&&o instanceof nS&&/^[a-zA-Z\*]$/.test(o.value);)r.push(o),o=o.rightSibling;const a=r.map((e=>e.value)).join(""),s=function(e,t){var n,i;if(0===t.length||"\\"===t||!t.startsWith("\\"))return[];const r=[];for(const e in Rp)e.startsWith(t)&&!Rp[e].infix&&r.push({match:e,frequency:null!=(n=Rp[e].frequency)?n:0});for(const e in Ip)e.startsWith(t)&&r.push({match:e,frequency:null!=(i=Ip[e].frequency)?i:0});const o=t.substring(1);for(const t of Object.keys(e.options.macros))t.startsWith(o)&&r.push({match:"\\"+t,frequency:0});return r.sort(((e,t)=>{var n,i;return e.frequency===t.frequency?e.match.length===t.match.length?e.matche.match))}(e,a);if(0===s.length){if(/^\\[a-zA-Z\*]+$/.test(a))for(const e of r)e.isError=!0;return void ck(e)}const l=null!=(n=null==t?void 0:t.atIndex)?n:0;e.suggestionIndex=l<0?s.length-1:l%s.length;const c=s[e.suggestionIndex];if(c!==a){const t=r[r.length-1];t.parent.addChildrenAfter([...c.slice(a.length-c.length)].map((e=>new nS(e,{isSuggestion:!0}))),t),wk(e,{interactive:!0})}!function(e,t){var n;if(0===t.length)return void ck(e);let i="";for(const[n,r]of t.entries()){const t=r,o=ak(e,r),a=qS(e.keybindings,t).join("
");i+=`
  • ${t}${o}`,a&&(i+=`${a}`),i+="
  • "}const r=function(e,t){let n=document.getElementById("mathlive-suggestion-popover");n||(n=rk("mathlive-suggestion-popover"),ox("suggestion-popover"),ox("core"),n.addEventListener("pointerdown",(e=>e.preventDefault())),n.addEventListener("click",(t=>{let n=t.target;for(;n&&!n.dataset.command;)n=n.parentElement;n&&(ik(e,"reject"),Zw.insert(e.model,n.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),e.dirty=!0,e.focus())})));return n.innerHTML=window.MathfieldElement.createHTML(t),n}(e,`
      ${i}
    `);sk()&&(null==(n=r.querySelector(".ML__popover__current"))||n.scrollIntoView({block:"nearest",inline:"nearest"}));setTimeout((()=>{var t;r&&!sk()&&(r.classList.add("is-visible"),lk(e),null==(t=r.querySelector(".ML__popover__current"))||t.scrollIntoView({block:"nearest",inline:"nearest"}))}),32)}(e,s)}function nk(e){const[t,n]=JS(e,{before:e.position});if(void 0===t||void 0===n)return!1;let i=!1;return e.getAtoms([t,n]).forEach((e=>{e.isSuggestion&&(e.isSuggestion=!1,i=!0)})),i}function ik(e,t="accept",n){var i,r;ck(e);const o=e.model.atoms.find((e=>"latexgroup"===e.type));if(!o)return!1;if("accept-suggestion"===t||"accept-all"===t){const n=QS(e.model).filter((e=>e.isSuggestion));if(0!==n.length){for(const e of n)e.isSuggestion=!1;e.model.position=e.model.offsetOf(n[n.length-1])}if("accept-suggestion"===t)return 0!==n.length}const a=QS(e.model).filter((e=>!e.isSuggestion)),s=a.map((e=>e.value)).join(""),l=o.leftSibling;return o.parent.removeChild(o),e.model.position=e.model.offsetOf(l),e.switchMode(null!=(i=null==n?void 0:n.mode)?i:"math"),"reject"===t||(Zw.insert(e.model,s,{selectionMode:null!=(r=null==n?void 0:n.selectItem)&&r?"item":"placeholder",format:"latex",mode:"math"}),e.snapshot(),e.model.announce("replacement"),e.switchMode("math")),!0}function rk(e){var t;let n=document.getElementById(e);return n?n.dataset.refcount=Number(Number.parseInt(null!=(t=n.dataset.refcount)?t:"0")+1).toString():(n=document.createElement("div"),n.setAttribute("aria-hidden","true"),n.dataset.refcount="1",n.id=e,document.body.append(n)),n}function ok(e){var t;const n=document.getElementById(e);if(!n)return;const i=Number.parseInt(null!=(t=n.getAttribute("data-refcount"))?t:"0");i<=1?n.remove():n.dataset.refcount=Number(i-1).toString()}function ak(e,t){const n=new ww({from:e.context}),i=new _w({mode:"math",type:"root",body:Gx(t,{context:n})});return ow(rw(fS(new nw(i.render(n),{classes:"ML__base"}),n)),{classes:"ML__latex"}).toMarkup()}function sk(){const e=document.getElementById("mathlive-suggestion-popover");return!!e&&e.classList.contains("is-visible")}function lk(e,t){var n;if(!e.element||e.element.mathfield!==e)return;if(!sk())return;if("latex"!==(null==(n=e.model.at(e.model.position))?void 0:n.type))return void ck(e);if(null==t?void 0:t.deferred)return void setTimeout((()=>lk(e)),32);const i=Vw(e.field);if(!i)return;const r=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,o=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a=window.innerWidth-document.documentElement.clientWidth,s=window.innerHeight-document.documentElement.clientHeight,l=window.mathVirtualKeyboard.boundingRect.height,c=document.getElementById("mathlive-suggestion-popover");i.x+c.offsetWidth/2>o-a?c.style.left=o-c.offsetWidth-a+"px":i.x-c.offsetWidth/2<0?c.style.left="0":c.style.left=i.x-c.offsetWidth/2+"px";const u=i.y-i.height;r-s-l-i.ye.family));if(e.every((e=>t.includes(e))))return void(gk="ready");if(!window.MathfieldElement.fontsDirectory)return void(gk="not-loaded");const n=await fk(window.MathfieldElement.fontsDirectory);if(!n)return document.body.classList.add("ML__fonts-did-not-load"),void(gk="error");const i=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map((e=>function(e,t,n={}){return new FontFace(e,`url(${t}.woff2) format('woff2')`,n)}(e[0].replace(/-[a-zA-Z]+$/,""),`${n}/${e[0]}`,e[1])));try{const e=await Promise.all(i.map((e=>{try{return e.load()}catch(e){}})));return e.forEach((e=>document.fonts.add(e))),void(gk="ready")}catch(e){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${n}"`,{cause:e}),document.body.classList.add("ML__fonts-did-not-load")}gk="error"}}function vk(e){let t=0;for(let n=0;n{Uw(e)&&e.dirty&&(e.atomBoundsCache=new Map,wk(e,t),e.atomBoundsCache=void 0)}))))}function bk(e,t){const{model:n}=e;n.root.caret=void 0,n.root.isSelected=!1,n.root.containsCaret=!0;for(const e of n.atoms)e.caret=void 0,e.isSelected=!1,e.containsCaret=!1;if(n.selectionIsCollapsed){const t=n.at(n.position);t.caret=e.model.mode;let i=t.parent;for(;i;)i.containsCaret=!0,i=i.parent}else{const e=n.getAtoms(n.selection,{includeChildren:!0});for(const t of e)t.isSelected=!0}const i=function(e,t){var n;t=null!=t?t:{};const i=new ww({from:rp(ip({},e.context),{atomIdsSettings:{seed:t.forHighlighting?vk(_w.serialize([e.model.root],{expandMacro:!1,defaultMode:e.options.defaultMode})):"random",groupNumbers:null!=(n=t.forHighlighting)&&n},letterShapeStyle:e.options.letterShapeStyle}),mathstyle:"inline-math"===e.options.defaultMode?"textstyle":"displaystyle"});return ow(fS(e.model.root.render(i),i),{classes:e.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}(e,t);return i.toMarkup()}function wk(e,t){if(!Uw(e))return;null!=t||(t={});const n=e.element.querySelector("[part=virtual-keyboard-toggle]");n&&(n.style.display=e.hasEditableContent?"":"none");const i=e.field;if(!i)return;const r=e.isSelectionEditable&&e.hasFocus(),o=i.classList.contains("ML__focused");o&&!r?i.classList.remove("ML__focused"):!o&&r&&i.classList.add("ML__focused");let a=bk(e,t);const s=e.element.querySelector("[part=menu-toggle]");if(s&&(e.model.atoms.length<=1||e.disabled||e.readOnly&&!e.hasEditableContent||"none"===e.userSelect?s.style.display="none":s.style.display=""),e.model.atoms.length<=1){const t=e.options.contentPlaceholder;t&&(a+=`${dP(t)}`)}i.innerHTML=window.MathfieldElement.createHTML(a),xk(e,t.interactive),e.dirty=!1}function xk(e,t){const n=e.field;if(!n)return;for(const e of n.querySelectorAll(".ML__selection, .ML__contains-highlight"))e.remove();null!=t&&t||"error"===gk||"ready"===gk||setTimeout((()=>{"ready"===gk?xk(e):setTimeout((()=>xk(e)),128)}),32);const i=e.model,r=n.offsetWidth,o=n.getBoundingClientRect().width;let a=Math.floor(o)/r;if(a=isNaN(a)?1:a,i.selectionIsCollapsed){lk(e,{deferred:!0});let t=i.at(i.position);for(;t&&"prompt"!==t.type&&(!t.containsCaret||!t.displayContainsHighlight);)t=t.parent;if((null==t?void 0:t.containsCaret)&&t.displayContainsHighlight){const i=qw(e,Xw(e,t),a);if(i){i.left/=a,i.right/=a,i.top/=a,i.bottom/=a;const e=document.createElement("div");e.classList.add("ML__contains-highlight"),e.style.position="absolute",e.style.left=`${i.left+1}px`,e.style.top=`${Math.ceil(i.top)}px`,e.style.width=`${Math.ceil(i.right-i.left)}px`,e.style.height=`${Math.ceil(i.bottom-i.top)}px`,n.insertBefore(e,n.childNodes[0])}}}else for(const t of function(e){let t=[];for(const n of e){let e=!1;for(const i of t)if(n.left===i.left&&n.right===i.right&&n.top===i.top&&n.bottom===i.bottom){e=!0;break}e||t.push(n)}e=t,t=[];for(const n of e){let i=0;for(const t of e)if(n.left>=t.left&&n.right<=t.right&&n.top>=t.top&&n.bottom<=t.bottom&&(i+=1,i>1))break;1===i&&t.push(n)}return t}(Qw(e,{excludeAtomsWithBackground:!0}))){t.left/=a,t.right/=a,t.top/=a,t.bottom/=a;const e=document.createElement("div");e.classList.add("ML__selection"),e.style.position="absolute",e.style.left=`${t.left}px`,e.style.top=`${t.top}px`,e.style.width=`${Math.ceil(t.right-t.left)}px`,e.style.height=`${Math.ceil(t.bottom-t.top-1)}px`,n.insertBefore(e,n.childNodes[0])}}var Sk;function kk(e,t){t=ip({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},null!=t?t:{}),Sk||(Sk={});for(const n of Object.keys(e))console.assert(!Sk[n],"Selector already defined: ",n),Sk[n]=rp(ip({},t),{fn:e[n]})}function _k(e){let t;if(Array.isArray(e)){if("performWithFeedback"===e[0])return _k(e[1]);t=e[0]}else t=e;return t=t.replace(/-\w/g,(e=>e[1].toUpperCase())),Sk[t]}function Ck(e){var t;return null==(t=_k(e))?void 0:t.target}kk({performWithFeedback:(e,t)=>function(e,t){var n;if(!e)return!1;e.focus(),rE.keypressVibration&&cp()&&navigator.vibrate(3);const i=_k(t);window.MathfieldElement.playSound(null!=(n=null==i?void 0:i.audioFeedback)?n:"keypress");const r=e.executeCommand(t);return e.scrollIntoView(),r}(e,t)}),kk({complete:ik},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),kk({nextSuggestion:function(e){return tk(e,{atIndex:e.suggestionIndex+1}),!1},previousSuggestion:function(e){return tk(e,{atIndex:e.suggestionIndex-1}),!1}},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Pk="mathlive#virtual-keyboard-message";function Ek(e){var t;if("message"!==e.type)return!1;return(null==(t=e.data)?void 0:t.type)===Pk}var Mk,Lk=class e{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new e),this._singleton}set alphabeticLayout(e){this.sendMessage("update-setting",{alphabeticLayout:e})}set layouts(e){this.sendMessage("update-setting",{layouts:e})}get normalizedLayouts(){return[]}set editToolbar(e){this.sendMessage("update-setting",{editToolbar:e})}set actionKeycap(e){this.sendMessage("update-setting",{actionKeycap:e})}set shiftKeycap(e){this.sendMessage("update-setting",{shiftKeycap:e})}set backspaceKeycap(e){this.sendMessage("update-setting",{backspaceKeycap:e})}set tabKeycap(e){this.sendMessage("update-setting",{tabKeycap:e})}set container(e){throw new Error("Container inside an iframe cannot be changed")}show(e){this.sendMessage("show",e)}hide(e){this.sendMessage("hide",e)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(e){e?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(e){return this.sendMessage("execute-command",{command:e}),!0}updateToolbar(e){this.sendMessage("update-toolbar",e)}update(e){this.sendMessage("update-setting",e)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(e,t,n){this.listeners[e]||(this.listeners[e]=new Set),this.listeners[e].has(t)||this.listeners[e].add(t)}dispatchEvent(e){return!this.listeners[e.type]||0===this.listeners[e.type].size||(this.listeners[e.type].forEach((t=>{"function"==typeof t?t(e):null==t||t.handleEvent(e)})),!e.defaultPrevented)}removeEventListener(e,t,n){this.listeners[e]&&this.listeners[e].delete(t)}handleEvent(e){if(Ek(e)){if(!Jw(e.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${e.origin}) cannot be handled`,"SecurityError");this.handleMessage(e.data)}}handleMessage(e){const{action:t}=e;if("execute-command"!==t)return"synchronize-proxy"===t?(this._boundingRect=e.boundingRect,void(this._isShifted=e.isShifted)):"geometry-changed"===t?(this._boundingRect=e.boundingRect,void this.dispatchEvent(new Event("geometrychange"))):void 0;{const{command:t}=e;"virtual-keyboard"===Ck(t)&&this.executeCommand(t)}}sendMessage(e,t={}){if(!window.top)throw new DOMException("A frame does not have access to the top window and can‘t communicate with the keyboard. Review virtualKeyboardTargetOrigin and originValidator on mathfields embedded in an iframe","SecurityError");window.top.postMessage(ip({type:Pk,action:e},t),this.targetOrigin)}},Ak={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"≤"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"≥"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"αβγ",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"φ",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"ς",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"ϵ",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"ρ",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"τ",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"υ",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"θ",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"ι",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"ο",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"π",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"α",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"σ",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"δ",class:"MLK__tex hide-shift",insert:"\\delta",aside:"delta",shift:"\\Delta"},{latex:"\\phi",class:"MLK__tex hide-shift",insert:"\\phi",aside:"phi",shift:"\\Phi"},{label:"γ",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"η",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"ξ",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"κ",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"λ",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"ζ",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"χ",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"ψ",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"ω",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"β",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"ν",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"μ",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"ε",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"ϑ",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"ϰ",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"ϖ",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"ϱ",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"∞≠∈",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:"\n .minimalist-backdrop {\n display: flex;\n justify-content: center;\n } \n .minimalist-container {\n --keycap-height: 40px;\n --keycap-max-width: 53px;\n --keycap-small-font-size: 12px;\n background: var(--keyboard-background);\n padding: 20px;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n border: 1px solid var(--keyboard-border);\n box-shadow: 0 0 32px rgb(0 0 0 / 30%);\n } \n ",backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},Tk={0:["\\varnothing","\\infty"],1:["\\frac{1}{#@}","#@^{-1}","\\times 10^{#?}","\\phi","\\imaginaryI"],2:["\\frac{1}{2}","#@^2","\\sqrt2","\\exponentialE"],3:["\\frac{1}{3}","#@^3","\\sqrt3","\\pi"],4:["\\frac{1}{4}","#@^4"],5:["\\frac{1}{5}","#@^5","\\sqrt5"],6:["\\frac{1}{6}","#@^6"],7:["\\frac{1}{7}","#@^7"],8:["\\frac{1}{8}","#@^8"],9:["\\frac{1}{9}","#@^9"],".":[".",",",";","\\colon"],",":["{,}",".",";","\\colon"],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"},"à","á","â","ä","æ"],b:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"},"ç"],d:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn’t"},"è","é","ê","ë"],g:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"},"ì","í","î","ï"],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\mathbb{N}",aside:"set of natural numbers"},"ñ"],o:["ø","œ","ò","ó","ô","ö","œ"],p:[{latex:"\\mathbb{P}",aside:"set of primes"}],q:[{latex:"\\mathbb{Q}",aside:"set of rational numbers"}],r:[{latex:"\\mathbb{R}",aside:"set of real numbers"}],u:["ù","ú","û","ü"],z:[{latex:"\\mathbb{Z}",aside:"set of integers"}],y:["ý","ÿ"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space
    ⁻³⧸₁₈ em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space
    ³⧸₁₈ em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space
    ⁴⧸₁₈ em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space
    ⁵⧸₁₈ em"},{latex:'\\char"203A\\ \\char"2039',insert:"\\ ",aside:"⅓ em"},{latex:'\\char"203A\\enspace\\char"2039',insert:"\\enspace",aside:"½ em"},{latex:'\\char"203A\\quad\\char"2039',insert:"\\quad",aside:"1 em"},{latex:'\\char"203A\\qquad\\char"2039',insert:"\\qquad",aside:"2 em"}]};function Dk(e,t){var n,i,r;const o=e_.singleton;if(!o)return;const a=Qk(e),s=null!=(i=null==(n=o.getKeycap(null==a?void 0:a.id))?void 0:n.variants)?i:"";if("string"==typeof s&&!Ik(s)||Array.isArray(s)&&0===s.length)return void(null==t||t());const l={};let c="";for(const e of function(e){var t;if("string"!=typeof e)return e;Tk[e]||(Tk[e]=null!=(t=function(e){if("foreground-color"===e){const e=[];for(const t of Object.keys(vp))e.push({class:"swatch-button",label:'',command:["applyStyle",{color:t}]});return e}if("background-color"===e){const e=[];for(const t of Object.keys(mp))e.push({class:"swatch-button",label:'',command:["applyStyle",{backgroundColor:t}]});return e}return}(e))?t:[]);return Tk[e]}(s)){const t=Vk(e),n=Date.now().toString(36).slice(-2)+Math.floor(1e5*Math.random()).toString(36);l[n]=t;const[i,r]=Kk(t);c+=`
    ${i}
    `}const u=document.createElement("div");u.setAttribute("aria-hidden","true"),u.className="MLK__variant-panel",u.style.height="auto";const h=Object.keys(l).length;let d=5;1===h?d=1:2===h||4===h?d=2:3===h||5===h||6===h?d=3:h>=7&&h<14&&(d=4),u.style.width=`calc(var(--variant-keycap-length) * ${d} + 12px)`,u.innerHTML=rE.createHTML(c),GS.open({root:null==(r=null==o?void 0:o.container)?void 0:r.querySelector(".ML__keyboard"),child:u}),Mk=new AbortController;const{signal:p}=Mk,f=null==e?void 0:e.getBoundingClientRect();if(f){f.top-u.clientHeight<0&&(u.style.width="auto",h<=6?u.style.height="56px":h<=12?u.style.height="108px":h<=18?u.style.height="205px":u.classList.add("compact"));const e=Math.max(0,Math.min(window.innerWidth-u.offsetWidth,(f.left+f.right-u.offsetWidth)/2)),n=f.top-u.clientHeight+5;u.style.transform=`translate(${e}px, ${n}px)`,u.classList.add("is-visible"),requestAnimationFrame((()=>{u.addEventListener("pointerup",(e=>{const n=Qk(e.target);(null==n?void 0:n.id)&&l[n.id]&&(Yk(l[n.id]),Nk(),null==t||t(),e.preventDefault())}),{capture:!0,passive:!1,signal:p}),u.addEventListener("pointerenter",(e=>{const t=Qk(e.target);(null==t?void 0:t.id)&&l[t.id]&&t.classList.add("is-active")}),{capture:!0,signal:p}),u.addEventListener("pointerleave",(e=>{const t=Qk(e.target);(null==t?void 0:t.id)&&l[t.id]&&t.classList.remove("is-active")}),{capture:!0,signal:p}),window.addEventListener("pointercancel",(()=>{Nk(),null==t||t()}),{signal:p}),window.addEventListener("pointerup",(()=>{Nk(),null==t||t()}),{signal:p})}))}}function Nk(){null==Mk||Mk.abort(),Mk=null,"open"===GS.state&&GS.close()}function Ik(e){return void 0!==Tk[e]}function Bk(e){return Object.keys(e).map((t=>`${t} {${function(e){return"string"==typeof e?e:Object.entries(e).map((([e,t])=>`${e}:${t} !important`)).join(";")}(e[t])}}`)).join("")}function Rk(e){if(!e)return"";const t=new ww,n=new _w({mode:"math",type:"root",body:Gx(e,{context:t,args:e=>"@"===e?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})});return ow(rw(fS(new nw(n.render(t),{classes:"ML__base"}),t)),{classes:"ML__latex"}).toMarkup()}function Ok(e){if(Array.isArray(e))return e.map((e=>Ok(e))).flat();const t="string"==typeof e?{markup:e}:e;return"rows"in t&&Array.isArray(t.rows)&&(t.rows=t.rows.map((e=>e.map((e=>Vk(e)))))),null!=t.id||(t.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(1e5*Math.random()).toString(36)),[t]}function Fk(e){if("alphabetic"===e)return function(){var e,t;let n=window.mathVirtualKeyboard.alphabeticLayout;if("auto"===n){const t=FS();t&&(n=t.virtualLayout),n&&"auto"!==n||(n=null!=(e={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[dp.locale.slice(0,2)])?e:"qwerty")}const i={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},r=null!=(t=i[n])?t:i.qwerty,o="azerty"===n?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"é"},variants:"2"},{label:"3",shift:{latex:"ù"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"è"},variants:"7"},{label:"8",shift:{latex:"ê"},variants:"8"},{label:"9",shift:{latex:"ç"},variants:"9"},{label:"0",shift:{latex:"à"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const e of r){const t=[];for(const i of e)/[a-z]/.test(i)?t.push({label:i,class:"hide-shift",shift:{label:i.toUpperCase()},variants:Ik(i)?i:void 0}):"~"===i?"dvorak"!==n?t.push("[backspace]"):t.push({label:"[backspace]",width:1}):"^"===i?t.push("[shift]"):" "===i&&t.push("[separator-5]");o.push(t)}return o.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:Ok({rows:o})}}();if("string"==typeof e)return console.assert(void 0!==Ak[e],`MathLive 0.98.5: unknown keyboard layout "${e}"`),Fk(Ak[e]);let t;if("rows"in e&&Array.isArray(e.rows)){console.assert(!("layers"in e||"markup"in e),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const n=e,{rows:i}=n,r=ap(n,["rows"]);t=rp(ip({},r),{layers:Ok({rows:e.rows})})}else if("markup"in e&&"string"==typeof e.markup){const n=e,{markup:i}=n,r=ap(n,["markup"]);t=rp(ip({},r),{layers:Ok(e.markup)})}else t=ip({},e),"layers"in e?t.layers=Ok(e.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let n=!1,i=!1;for(const e of t.layers)if(e.rows)for(const t of e.rows.flat()){Jk(t)&&(n=!0);const e=t.command;"string"==typeof e&&["undo","redo","cut","copy","paste"].includes(e)&&(i=!0)}return"displayShiftedKeycaps"in e&&void 0!==e.displayShiftedKeycaps||(t.displayShiftedKeycaps=n),"displayEditToolbar"in e&&void 0!==e.displayEditToolbar||(t.displayEditToolbar=!i),t}function zk(e,t){var n,i;let r='
    ';if(e.normalizedLayouts.length>1)for(const[o,a]of e.normalizedLayouts.entries()){const e=a,s=[o===t?"selected":"layer-switch"];e.tooltip&&s.push("MLK__tooltip"),e.labelClass&&s.push(...e.labelClass.split(" ")),r+=`
    ${null!=(i=e.label)?i:"untitled"}
    `}return r+="
    ",r}function jk(e,t){let n="";if("none"===e.editToolbar)return"";const i=[];t.selectionIsCollapsed?i.push("undo","redo","pasteFromClipboard"):i.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const r={undo:`
    \n \n
    `,redo:`
    \n \n
    `,cutToClipboard:`\n
    \n \n
    \n `,copyToClipboard:`\n
    \n \n
    \n `,pasteFromClipboard:`\n
    \n \n
    \n `};return n+=i.map((e=>r[e])).join(""),n}function $k(e){const t=e_.singleton;if(!t)return;const n={};if(!e.id){if(e.hasAttribute("data-label")&&(n.label=e.dataset.label),e.hasAttribute("data-latex")&&(n.latex=e.dataset.latex),e.hasAttribute("data-key")&&(n.key=e.dataset.key),e.hasAttribute("data-insert")&&(n.insert=e.dataset.insert),e.hasAttribute("data-variants")&&(n.variants=e.dataset.variants),e.hasAttribute("data-aside")&&(n.aside=e.dataset.aside),e.className&&(n.class=e.className),n.label||n.latex||n.key||n.insert||(n.latex=e.innerText,n.label=e.innerHTML),e.hasAttribute("data-command"))try{n.command=JSON.parse(e.dataset.command)}catch(e){}e.id=t.registerKeycap(n)}if(!e.innerHTML){const[t,i]=Kk(n);e.innerHTML=window.MathfieldElement.createHTML(t)}}function Hk(e){e.resetKeycapRegistry(),ox("virtual-keyboard"),ox("core"),mk();const t=document.createElement("div");t.className="ML__keyboard";const n=document.createElement("div");n.className="MLK__plate",n.innerHTML=window.MathfieldElement.createHTML('\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n\n\n\n \n\n\n\n \n\n\n \n\n\n \n\n\n \n\n\n \n\n\n\n\n\n\n\n\n\n\n \n\n\n'+e.normalizedLayouts.map(((t,n)=>function(e,t,n){const i=[];if(!("layers"in t))return"";for(const r of t.layers)i.push(`
    `),(e.normalizedLayouts.length>1||t.displayEditToolbar)&&(i.push("")),i.push(Zk(e,r)),i.push("
    ");return i.join("")}(e,t,n))).join(""));const i=document.createElement("div");i.className="MLK__backdrop",i.appendChild(n),t.appendChild(i),t.addEventListener("pointerdown",Wk,{passive:!1});const r=t.querySelectorAll(".ML__edit-toolbar");if(r)for(const t of r)t.addEventListener("click",(t=>{var n,i;let r=t.target,o="";for(;r&&!o;)o=null!=(n=null==r?void 0:r.getAttribute("data-command"))?n:"",r=null!=(i=null==r?void 0:r.parentElement)?i:null;o&&e.executeCommand(JSON.parse(o))}));!function(e){for(const t of e)$k(t)}(t.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const o=t.querySelectorAll(".MLK__layer");console.assert(o.length>0,"No virtual keyboards available");for(const e of o)e.addEventListener("pointerdown",(e=>e.preventDefault()));return e.currentLayer=e.latentLayer,t}function Zk(e,t){if("string"==typeof t)return t;let n="";if("string"==typeof t.style?n+=``:"object"==typeof t.style&&(n+=``),t.backdrop&&(n+=`
    `),t.container&&(n+=`
    `),t.rows){n+="
    ";for(const i of t.rows){n+="
    ";for(const t of i)if(t){const i=e.registerKeycap(t),[r,o]=Kk(t);/(^|\s)separator/.test(o)?n+=`
    ${r}
    `}n+="
    "}n+="
    "}else t.markup&&(n+=t.markup);return t.container&&(n+="
    "),t.backdrop&&(n+="
    "),n}function Kk(e,t={shifted:!1}){var n,i,r,o,a,s,l;let c="",u=null!=(n=e.class)?n:"";if(t.shifted&&Jk(e)&&(u+=" is-active"),t.shifted&&"shift"in e)"string"==typeof e.shift?c=Rk(e.shift):"object"==typeof e.shift&&(c=e.shift.label?e.shift.label:null!=(i=Rk(e.shift.latex||e.shift.insert||"")||e.shift.key)?i:""),"object"==typeof e.shift&&(u=null!=(o=null!=(r=e.shift.class)?r:e.class)?o:"");else{if(c=e.label?e.label:null!=(a=Rk(e.latex||e.insert||"")||e.key)?a:"",e.shift){let t;t="string"==typeof e.shift?Rk(e.shift):e.shift.label?e.shift.label:null!=(s=Rk(e.shift.latex||e.shift.insert||"")||e.shift.key)?s:"",c+=`${t}`}e.aside&&(c+=``)}return e.layer&&!/layer-switch/.test(u)&&(u+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(u)||(u+=" MLK__keycap"),!/\bw[0-9]+\b/.test(u)&&e.width&&(u+=null!=(l={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[e.width])?l:""),[c,u||"MLK__keycap"]}var Gk,Uk={"[left]":{class:"action hide-shift",label:"",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"",command:["performWithFeedback","moveToNextChar"],shift:{label:"",command:["performWithFeedback","extendSelectionForward"]}},"[up]":{class:"action hide-shift",label:"↑",command:["performWithFeedback","moveUp"],shift:{label:"↟",command:["performWithFeedback","extendSelectionUpward"]}},"[down]":{class:"action hide-shift",label:"↓",command:["performWithFeedback","moveDown"],shift:{label:"↡",command:["performWithFeedback","extendSelectionDownward"]}},"[return]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{command:["performWithFeedback","addRowAfter"]},width:1.5,label:""},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"",command:["performWithFeedback","addRowAfter"]},width:1.5,label:""},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:""},"[.]":{variants:".",command:["performWithFeedback","insertDecimalSeparator"],shift:",",class:"big-op hide-shift",label:"."},"[,]":{variants:",",command:["performWithFeedback","insertDecimalSeparator"],shift:".",class:"big-op hide-shift",label:","},"[+]":{variants:[{latex:"\\sum_{#0}^{#0}",class:"small"},"\\oplus"],latex:"+",label:"+",class:"big-op hide-shift",shift:{latex:"\\sum",insert:"\\sum",class:"small"}},"[-]":{variants:["\\pm","\\ominus"],latex:"-",label:"−",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"÷"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"×",shift:{latex:"\\times"},class:"big-op hide-shift"},"[=]":{variants:["\\neq","\\equiv","\\varpropto","\\thickapprox","\\lt","\\gt","\\le","\\ge"],latex:"=",label:"=",shift:{label:"≠",latex:"\\ne"},class:"big-op hide-shift"},"[backspace]":{class:"action bottom right hide-shift",width:1.5,command:["performWithFeedback","deleteBackward"],label:"",shift:{class:"action warning",label:"",command:"deleteAll"}},"[undo]":{class:"ghost if-can-undo",command:"undo",label:"",tooltip:"tooltip.undo"},"[redo]":{class:"ghost if-can-redo",command:"redo",label:"",tooltip:"tooltip.redo"},"[(]":{variants:[{latex:"\\lbrack",key:"["},"\\langle","\\lfloor","\\lceil",{latex:"\\lbrace",key:"{"}],key:"(",label:"(",shift:{label:"[",key:"["},class:"hide-shift"},"[)]":{variants:[{latex:"\\rbrack",key:"]"},"\\rangle","\\rfloor","\\rceil",{latex:"\\rbrace",key:"]"}],key:")",label:")",shift:{label:"]",latex:"\\rbrack"},class:"hide-shift"},"[0]":{variants:"0",latex:"0",label:"0",shift:"\\infty",class:"hide-shift"},"[1]":{variants:"1",latex:"1",label:"1",shift:"#@^{-1}",class:"hide-shift"},"[2]":{variants:"2",latex:"2",label:"2",shift:"#@^2",class:"hide-shift"},"[3]":{variants:"3",latex:"3",label:"3",shift:"#@^3",class:"hide-shift"},"[4]":{variants:"4",latex:"4",label:"4",shift:"#@^4",class:"hide-shift"},"[5]":{variants:"5",latex:"5",label:"5",shift:"#@^5",class:"hide-shift"},"[6]":{variants:"6",latex:"6",label:"6",shift:"#@^6",class:"hide-shift"},"[7]":{variants:"7",latex:"7",label:"7",shift:"#@^7",class:"hide-shift"},"[8]":{variants:"8",latex:"8",label:"8",shift:"#@^8",class:"hide-shift"},"[9]":{variants:"9",latex:"9",label:"9",shift:"#@^9",class:"hide-shift"},"[separator-5]":{class:"separator",width:.5},"[separator]":{class:"separator"},"[separator-10]":{class:"separator"},"[separator-15]":{class:"separator",width:1.5},"[separator-20]":{class:"separator",width:2},"[separator-50]":{class:"separator",width:5},"[shift]":{class:"shift bottom left",width:1.5,label:""},"[foreground-color]":{variants:"foreground-color",command:["applyStyle",{color:"red"}],label:""},"[background-color]":{variants:"background-color",command:["applyStyle",{backgroundColor:"yellow"}],label:""}};function Vk(e){var t;if("string"==typeof e){if("[.]"===e&&","===window.MathfieldElement.decimalSeparator&&(e="[,]"),!Uk[e])return{latex:e};e={label:e}}let n;return"label"in e&&e.label&&Uk[e.label]&&(n=rp(ip(ip({},Uk[e.label]),e),{label:Uk[e.label].label})),"key"in e&&e.key&&Uk[e.key]&&(n=rp(ip(ip({},Uk[e.key]),e),{key:Uk[e.key].key})),n?("insertDecimalSeparator"===n.command&&(n.label=null!=(t=window.MathfieldElement.decimalSeparator)?t:"."),"[action]"===e.label&&(n=ip(ip({},n),window.mathVirtualKeyboard.actionKeycap)),"[shift]"===e.label&&(n=ip(ip({},n),window.mathVirtualKeyboard.shiftKeycap)),"[backspace]"===e.label&&(n=ip(ip({},n),window.mathVirtualKeyboard.backspaceKeycap)),"[tab]"===e.label&&(n=ip(ip({},n),window.mathVirtualKeyboard.tabKeycap)),n):e}function Wk(e){var t;if(0!==e.button)return;const n=e_.singleton;if(!n)return;let i=e.target;for(;i&&!i.getAttribute("data-layer");)i=i.parentElement;if(i)return n.currentLayer=null!=(t=i.getAttribute("data-layer"))?t:"",void e.preventDefault();const r=Qk(e.target);if(!(null==r?void 0:r.id))return;const o=n.getKeycap(r.id);if(!o)return;console.assert("pointerdown"===e.type);const a=new AbortController,s=a.signal;r.classList.add("is-pressed"),r.addEventListener("pointerenter",qk(a),{capture:!0,signal:s}),r.addEventListener("pointerleave",qk(a),{capture:!0,signal:s}),r.addEventListener("pointercancel",qk(a),{signal:s}),r.addEventListener("pointerup",qk(a),{signal:s}),Jk(o)&&(r.classList.add("is-active"),n.shiftPressCount++),o.variants&&(Gk&&clearTimeout(Gk),Gk=setTimeout((()=>{r.classList.contains("is-pressed")&&(r.classList.remove("is-pressed"),r.classList.add("is-active"),e.target&&"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId),Dk(r,(()=>{a.abort(),null==r||r.classList.remove("is-active")})))}),300)),e.preventDefault()}function qk(e){return t=>{const n=Qk(t.target);if(!(null==n?void 0:n.id))return;const i=e_.singleton;if(!i)return;const r=i.getKeycap(n.id);if(r){if("pointerenter"===t.type&&t.target===n){t.isPrimary&&n.classList.add("is-pressed")}return"pointercancel"===t.type?(n.classList.remove("is-pressed"),Jk(r)&&(i.shiftPressCount--,n.classList.toggle("is-active",i.isShifted)),void e.abort()):"pointerleave"===t.type&&t.target===n?(n.classList.remove("is-pressed"),void(Jk(r)&&(i.shiftPressCount--,n.classList.toggle("is-active",i.isShifted)))):"pointerup"===t.type?(Gk&&clearTimeout(Gk),Jk(r)?n.classList.toggle("is-active",i.isShifted):n.classList.contains("is-pressed")&&(n.classList.remove("is-pressed"),i.isShifted&&r.shift?"string"==typeof r.shift?i.executeCommand(["insert",r.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):Yk(r.shift):Yk(r),1!==i.shiftPressCount||t.shiftKey||(i.shiftPressCount=0)),e.abort(),void t.preventDefault()):void 0}}}function Yk(e){var t;let n=e.command;!n&&e.insert&&(n=["insert",e.insert,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),!n&&e.key&&(n=["typedText",e.key,{focus:!0,feedback:!0,simulateKeystroke:!0}]),!n&&e.latex&&(n=["insert",e.latex,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),n||(n=["typedText",e.label,{focus:!0,feedback:!0,simulateKeystroke:!0}]),null==(t=e_.singleton)||t.executeCommand(n)}function Xk(e){if(1!==e.nodeType)return!1;const t=e.classList;return t.contains("MLK__keycap")||t.contains("shift")||t.contains("action")||t.contains("fnbutton")||t.contains("bigfnbutton")}function Qk(e){if(!e)return;let t=e;for(;t&&!Xk(t);)t=t.parentElement;return null!=t?t:void 0}function Jk(e){return!!e.class&&/(^|\s)shift($|\s)/.test(e.class)}var e_=class e{constructor(){var e,t,n;this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0,this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=null!=(t=null==(e=window.document)?void 0:e.body)?t:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver((e=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})})),this.listeners={};try{null==(n=window.top)||n.addEventListener("message",this)}catch(e){window.addEventListener("message",this)}document.body.addEventListener("focusin",(e=>{const t=e.target;(null==t?void 0:t.isConnected)&&setTimeout((()=>{const e=t_();e&&!e.readOnly&&"auto"===e.mathVirtualKeyboardPolicy&&("matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0)&&this.show({animate:!0})}),300)})),document.addEventListener("focusout",(e=>{"manual"!==e.target.mathVirtualKeyboardPolicy&&setTimeout((()=>{t_()||this.hide()}),300)}))}get currentLayer(){var e,t,n;return null!=(n=null==(t=null==(e=this._element)?void 0:e.querySelector(".MLK__layer.is-visible"))?void 0:t.id)?n:""}set currentLayer(e){var t;if(!this._element)return void(this.latentLayer=e);let n=e?this._element.querySelector(`#${e}.MLK__layer`):null;n||(n=this._element.querySelector(".MLK__layer")),n&&(null==(t=this._element.querySelector(".MLK__layer.is-visible"))||t.classList.remove("is-visible"),n.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(e){var t;this._shiftPressCount=e>2||e<0?0:e,null==(t=this._element)||t.classList.toggle("is-caps-lock",2===this.shiftPressCount),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(e){const t="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(1e5*Math.random()).toString(36);return this.keycapRegistry[t]=e,t}getKeycap(e){return e?this.keycapRegistry[e]:void 0}getLayer(e){const t=this.normalizedLayouts;for(const n of t)for(const t of n.layers)if(t.id===e)return t}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(e){this._alphabeticLayout=e,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(e){this._actionKeycap="string"==typeof e?{label:e}:e}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(e){this._shiftKeycap="string"==typeof e?{label:e}:e}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(e){this._backspaceKeycap="string"==typeof e?{label:e}:e}get tabKeycap(){return this._tabKeycap}set tabKeycap(e){this._tabKeycap="string"==typeof e?{label:e}:e}get layouts(){return this._layouts}set layouts(e){this.updateNormalizedLayouts(e),this.rebuild()}updateNormalizedLayouts(e){const t=Array.isArray(e)?[...e]:[e],n=t.findIndex((e=>"default"===e));n>=0&&t.splice(n,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(t),this._normalizedLayouts=t.map((e=>Fk(e)))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(e){this._editToolbar=e,this.rebuild()}get container(){return this._container}set container(e){this._container=e,this.rebuild()}static get singleton(){if(void 0===this._singleton)try{this._singleton=new e}catch(e){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(e,t,n){this.listeners[e]||(this.listeners[e]=new Set),this.listeners[e].has(t)||this.listeners[e].add(t)}dispatchEvent(e){return!this.listeners[e.type]||0===this.listeners[e.type].size||(this.listeners[e.type].forEach((t=>{"function"==typeof t?t(e):null==t||t.handleEvent(e)})),!e.defaultPrevented)}removeEventListener(e,t,n){this.listeners[e]&&this.listeners[e].delete(t)}get element(){return this._element}set element(e){var t;this._element!==e&&(null==(t=this._element)||t.remove(),this._element=e)}get visible(){return this._visible}set visible(e){e?this.show():this.hide()}get boundingRect(){var e;if(!this._visible)return new DOMRect;const t=null==(e=this._element)?void 0:e.getElementsByClassName("MLK__plate")[0];return t?t.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var e,t;const n=this.boundingRect.height;if(this.container===document.body){null==(e=this._element)||e.style.setProperty("--_keyboard-height",`calc(${n}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const t=n-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${t}px)`:`${t}px`}else null==(t=this._element)||t.style.setProperty("--_keyboard-height",`${n}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const e=this.currentLayer;requestAnimationFrame((()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=e,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))}))}render(){if(!this._element)return;const e=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",Boolean(e&&(e.backdrop||e.container)));const t=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(t)for(const e of t){const t=this.getKeycap(e.id);if(t){const[n,i]=Kk(t,{shifted:this.isShifted});e.innerHTML=window.MathfieldElement.createHTML(n),e.className=i}}}show(e){var t;if(this._visible)return;const n=this.container;if(n&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const e=this._element.getElementsByClassName("MLK__plate")[0];if(e&&this.observer.observe(e),n===window.document.body){const t=n.style.paddingBottom;this.originalContainerBottomPadding=t;const i=e.offsetHeight-1;n.style.paddingBottom=t?`calc(${t} + ${i}px)`:`${i}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),null==(t=this._element)||t.classList.toggle("is-caps-lock",2===this.shiftPressCount),this.currentLayer=this.latentLayer}this._visible=!0,(null==e?void 0:e.animate)?requestAnimationFrame((()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",(()=>{var e;return null==(e=this._element)?void 0:e.classList.remove("animate")}),{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())})):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(e){var t;const n=this.container;if(n&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const e=this._element.getElementsByClassName("MLK__plate")[0];e&&this.observer.unobserve(e),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),Nk(),ax("core"),ax("virtual-keyboard"),null==(t=this._element)||t.remove(),this._element=void 0,null!==this.originalContainerBottomPadding&&(n.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var e,t;return null!=(t=null==(e=this.element)?void 0:e.offsetHeight)?t:0}buildAndAttachElement(){var e;console.assert(!this.element),this.element=Hk(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",(e=>{e.shiftKey||((e.ctrlKey||2===e.button)&&Dk(e.target),e.preventDefault(),e.stopPropagation())}),{capture:!0}),null==(e=this.container)||e.appendChild(this.element)}handleEvent(e){if(Ek(e)){if(!Jw(e.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${e.origin}) cannot be handled`,"SecurityError");"disconnect"===e.data.action?this.connectedMathfieldWindow=void 0:"update-setting"!==e.data.action&&"proxy-created"!==e.data.action&&"execute-command"!==e.data.action&&(console.assert(void 0!==e.source),this.connectedMathfieldWindow=e.source),this.handleMessage(e.data,e.source)}if(this._element)switch(e.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":2!==e.button&&e.preventDefault();break;case"keydown":"Shift"!==e.key||e.repeat||(this.shiftPressCount=1);break;case"keyup":("Shift"===e.key||!e.getModifierState("Shift")&&2!==this.shiftPressCount)&&(this.shiftPressCount=0)}}handleMessage(e,t){const{action:n}=e;if("execute-command"!==n){if("connect"!==n&&"show"!==n||this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},t),"disconnect"!==n&&window===window.top)if("show"!==n){if("hide"!==n)return"update-setting"===n?(e.alphabeticLayout&&(this.alphabeticLayout=e.alphabeticLayout),e.layouts&&(this.layouts=e.layouts),void(e.editToolbar&&(this.editToolbar=e.editToolbar))):void("proxy-created"!==n||this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},t));void 0!==e.animate?this.hide({animate:e.animate}):this.hide()}else void 0!==e.animate?this.show({animate:e.animate}):this.show()}else{const{command:t}=e,n=Ck(t);if(void 0!==window.top&&"virtual-keyboard"!==n)return;this.executeCommand(t)}}sendMessage(e,t,n){if(n||(n=this.connectedMathfieldWindow),null!==this.targetOrigin&&"null"!==this.targetOrigin&&n!==window){if(n)n.postMessage(ip({type:Pk,action:e},t),{targetOrigin:this.targetOrigin});else if(t.command&&this.dispatchEvent(new CustomEvent("math-virtual-keyboard-command",{detail:t.command})),"execute-command"===e&&Array.isArray(t.command)&&"insert"===t.command[0]){const e=t.command[1].split("");for(const t of e)this.dispatchEvent(new KeyboardEvent("keydown",{key:t,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:t,bubbles:!0}))}}else window.dispatchEvent(new MessageEvent("message",{source:window,data:ip({type:Pk,action:e},t)}))}stateWillChange(e){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:e},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(e){const t=this._element;if(!t)return;t.classList.toggle("is-math-mode","math"===e.mode),t.classList.toggle("is-text-mode","text"===e.mode),t.classList.toggle("can-undo",e.canUndo),t.classList.toggle("can-redo",e.canRedo),t.classList.toggle("can-copy",!e.selectionIsCollapsed),t.classList.toggle("can-copy",!e.selectionIsCollapsed),t.classList.toggle("can-paste",!0);const n=t.querySelectorAll(".ML__edit-toolbar");if(n)for(const t of n)t.innerHTML=jk(this,e)}update(e){this._style=e.style,this.updateToolbar(e)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(e){let t,n=[],i=Ck(e);return sp(e)?(t=e[0],"performWithFeedback"===t&&(i=Ck(e=e.slice(1))),n=e.slice(1)):t=e,t=t.replace(/-\w/g,(e=>e[1].toUpperCase())),"virtual-keyboard"===i?Sk[t].fn(void 0,...n):(this.sendMessage("execute-command",{command:e}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function t_(){var e,t;let n=KS(),i=null;for(;n;){if("host"in n&&"math-field"===(null==(t=null==(e=n.host)?void 0:e.tagName)?void 0:t.toLowerCase())){i=n.host;break}n=n.parentNode}return i}if(lp()&&!("mathVirtualKeyboard"in window))if(window===window.top){const e=e_.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>e})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>Lk.singleton,configurable:!0});function n_(e){const t={};for(const n of Object.keys(e))switch(n){case"scriptDepth":const i=e.scriptDepth;if(sp(i))t.scriptDepth=[i[0],i[1]];else if("number"==typeof i)t.scriptDepth=[i,i];else{if("string"!=typeof i)throw new TypeError("Unexpected value for scriptDepth");{const[e,n]=i.split(",").map((e=>parseInt(e.trim())));t.scriptDepth=[e,n]}}break;case"mathVirtualKeyboardPolicy":let r=e.mathVirtualKeyboardPolicy.toLowerCase();if("sandboxed"===r){if(window!==window.top){const e=e_.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>e})}r="manual"}t.mathVirtualKeyboardPolicy=r;break;case"letterShapeStyle":"auto"===e.letterShapeStyle?dp.locale.startsWith("fr")?t.letterShapeStyle="french":t.letterShapeStyle="tex":t.letterShapeStyle=e.letterShapeStyle;break;case"defaultMode":["text","math","inline-math"].includes(e.defaultMode)?t.defaultMode=e.defaultMode:(console.error('MathLive 0.98.5: valid values for defaultMode are "text", "math" or "inline-math"'),t.defaultMode="math");break;case"macros":t.macros=Qp(e.macros);break;default:sp(e[n])?t[n]=[...e[n]]:"object"!=typeof e[n]||e[n]instanceof Element||"computeEngine"===n?t[n]=e[n]:t[n]=ip({},e[n])}return t}function i_(e,t){let n;n="string"==typeof t?[t]:void 0===t?Object.keys(e):t;const i={};for(const t of n)null===e[t]?i[t]=null:sp(e[t])?i[t]=[...e[t]]:"object"!=typeof e[t]||e[t]instanceof Element||"computeEngine"===t?i[t]=e[t]:i[t]=ip({},e[t]);return"string"==typeof t?i[t]:i}function r_(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:wp,backgroundColorMap:xp,letterShapeStyle:dp.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:e=>["\\sin","\\cos","\\tan","\\arcsin","\\arccos","\\arctan","\\arcsec","\\arccsc","\\arsinh","\\arcosh","\\artanh","\\arcsech","\\arccsch","\\arg","\\ch","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\sec","\\sinh","\\sh","\\tanh","\\tg","\\th","\\lg","\\lb","\\log","\\ln"].includes(e),mathModeSpace:"",placeholderSymbol:"▢",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:Kw,inlineShortcuts:Iw,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:null==window?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:$w,value:""}}function o_(e){return"inline-math"===e.defaultMode?"math":e.defaultMode}function a_(e,t){e&&t&&(sp(e)?e.forEach((e=>a_(e,t))):"object"==typeof e&&(e.style.color||e.style.backgroundColor||e.style.fontFamily||e.style.fontShape||e.style.fontSeries||e.style.fontSize||e.style.variant||e.style.variantStyle||(e.applyStyle(t),a_(e.body,t),a_(e.above,t),a_(e.below,t),a_(e.subscript,t),a_(e.superscript,t))))}function s_(e,t,n,i){function r(e,t){for(const n of o)if(n.style[e]!==t)return!1;return!0}if((t=e.normalizeRange(t))[0]===t[1])return!1;const o=e.getAtoms(t,{includeChildren:!0});"toggle"===i.operation&&(n.color&&r("color",n.color)&&(n.color="none",delete n.verbatimColor),n.backgroundColor&&r("backgroundColor",n.backgroundColor)&&(n.backgroundColor="none",delete n.verbatimBackgroundColor),n.fontFamily&&r("fontFamily",n.fontFamily)&&(n.fontFamily="none"),n.fontSeries&&r("fontSeries",n.fontSeries)&&(n.fontSeries="auto"),n.fontShape&&r("fontShape",n.fontShape)&&(n.fontShape="auto"),n.fontSize&&r("fontSize",n.fontSize)&&(n.fontSize=5),n.variant&&r("variant",n.variant)&&(n.variant="normal"),n.variantStyle&&r("variantStyle",n.variantStyle)&&(n.variantStyle=""));for(const e of o)e.applyStyle(n);return!0}function l_(e,t=1){return function(e){for(const t of e)for(const e of t)if(e.length>0)return!1;return!0}(e)?Array(t).fill([[new _w({type:"first"}),new kx]]):e.map((e=>0===e.length?[[new _w({type:"first"})]]:e.map((e=>0===e.length?[new _w({type:"first"})]:("first"!==e[0].type&&e.unshift(new _w({type:"first"})),e)))))}function c_(e,t=[[[]]],n=[],i=[]){switch(t=l_(t,["split","align","align*","aligned","eqnarray"].includes(e)?2:1),e){case"math":case"displaymath":return new Lx(e,t,n,{mathstyleName:"textstyle"});case"center":return new Lx(e,t,n,{columns:[{align:"c"}]});case"multline":case"multline*":return new Lx(e,t,n,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new Lx(e,t,n,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new Lx(e,t,n,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new Lx(e,t,n,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:u_(i[0])});case"bmatrix":case"bmatrix*":return new Lx(e,t,n,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:u_(i[0])});case"Bmatrix":case"Bmatrix*":return new Lx(e,t,n,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:u_(i[0])});case"vmatrix":case"vmatrix*":return new Lx(e,t,n,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:u_(i[0])});case"Vmatrix":case"Vmatrix*":return new Lx(e,t,n,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:u_(i[0])});case"matrix":case"matrix*":return new Lx(e,t,n,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:u_(null==i?void 0:i[0])});case"smallmatrix":case"smallmatrix*":return new Lx(e,t,n,{mathstyleName:"scriptstyle",columns:u_(null==i?void 0:i[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new Lx(e,t,n,{mathstyleName:"dcases"===e?"displaystyle":"textstyle",arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",columns:[{align:"l"},{gap:1},{align:"l"}]});case"rcases":return new Lx(e,t,n,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new Lx(e,t,n,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let i=0;for(const e of t)i=Math.max(i,e.length);const r=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let o=2;for(;o1){i.removeRow(r[0]);const t=i.getCell(Math.max(0,r[0]-1),r[1]);o=e.offsetOf(t[t.length-1])}break;case"column":if(i.colCount>i.minColumns){i.removeColumn(r[1]);const t=i.getCell(r[0],Math.max(0,r[1]-1));o=e.offsetOf(t[t.length-1])}}o&&e.setPositionHandlingPlaceholder(o)}}function b_(){return[new kx]}Vp(["math","displaymath"],c_),Vp("center",c_),qp("displaylines","",{parse:e=>{const t=[];let n=[];for(e.beginContext({tabular:!0});;){if(e.end())break;if(e.match("<}>"))break;e.matchColumnSeparator()||e.matchRowSeparator()?(t.push([n]),n=[]):n.push(...e.scan((e=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(e))))}return e.endContext(),t.push([n]),t},createAtom:e=>new Lx("lines",e.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Wp("array","{columns:colspec}",((e,t,n,i)=>new Lx(e,l_(t),n,{columns:i[0],mathstyleName:"textstyle"}))),Wp(["equation","equation*","subequations"],"",((e,t,n)=>new Lx(e,l_(t),n,{columns:[{align:"c"}]}))),Wp(["multline","multline*"],"",c_),Wp(["align","align*","aligned","eqnarray"],"",c_),Wp("split","",c_),Wp(["gather","gathered"],"",c_),Wp(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",c_),Wp(["smallmatrix","smallmatrix*"],"[columns:colspec]",c_),Wp(["cases","dcases","rcases"],"",c_),kk({addRowAfter:g_,addColumnAfter:m_,addRowBefore:function(e){return!!e.contentWillChange({inputType:"insertText"})&&(f_(e,"before row"),e.contentDidChange({inputType:"insertText"}),!0)},addColumnBefore:function(e){return!!e.contentWillChange({inputType:"insertText"})&&(f_(e,"before column"),e.contentDidChange({inputType:"insertText"}),!0)},removeRow:function(e){return!!e.contentWillChange({inputType:"deleteContent"})&&(y_(e,"row"),e.contentDidChange({inputType:"deleteContent"}),!0)},removeColumn:function(e){return!!e.contentWillChange({inputType:"deleteContent"})&&(y_(e,"column"),e.contentDidChange({inputType:"deleteContent"}),!0)},setEnvironment:v_},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});var w_=class e{constructor(e){this.recording=!1,this.model=e,this.reset()}reset(){this.stack=[],this.index=-1,this.lastOp=""}startRecording(){this.recording=!0}stopRecording(){this.recording=!1}canUndo(){return this.index-1>=0}canRedo(){return this.stack.length-1>this.index}stopCoalescing(e){e&&this.index>=0&&(this.stack[this.index].selection=e),this.lastOp=""}undo(){return!!this.canUndo()&&(this.model.setState(this.stack[this.index-1],{silenceNotifications:!1,type:"undo"}),this.index-=1,this.lastOp="",!0)}redo(){return!!this.canRedo()&&(this.index+=1,this.model.setState(this.stack[this.index],{silenceNotifications:!1,type:"redo"}),this.lastOp="",!0)}pop(){this.canUndo()&&(this.stack.splice(this.index,this.stack.length-this.index),this.index-=1)}snapshot(t){return!!this.recording&&(t&&t===this.lastOp&&this.pop(),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push(this.model.getState()),this.index+=1,this.stack.length>e.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=null!=t?t:"",!0)}};w_.maximumDepth=1e3;var x_=w_;function S_(e,t,n){if("text"!==e.at(t).mode)return t;const i="backward"===n?-1:1;let r;if(Dp.test(e.at(t).value)){let n,o=t;do{n="text"===e.at(o).mode&&Dp.test(e.at(o).value),o+=i}while(e.at(o)&&n);r=e.at(o)?o-2*i:o-i}else if(/\s/.test(e.at(t).value)){let n=t;for(;e.at(n)&&"text"===e.at(n).mode&&/\s/.test(e.at(n).value);)n+=i;if(e.at(n)){let t=!0;do{t="text"===e.at(n).mode&&!/\s/.test(e.at(n).value),n+=i}while(e.at(n)&&t);r=e.at(n)?n-2*i:n-i}else r=n-i}else{let n=t;for(;e.at(n)&&"text"===e.at(n).mode&&!/\s/.test(e.at(n).value);)n+=i;r=e.at(n)?n:n-i;let o=!0;for(;e.at(n)&&o;)o="text"===e.at(n).mode&&/\s/.test(e.at(n).value),o&&(r=n),n+=i;r=e.at(n)?n-2*i:n-i}return r-(i>0?0:1)}function k_(e,t,n){var i,r,o,a,s,l,c;const u=e.position;null!=(i=null==n?void 0:n.extend)&&i||e.collapseSelection(t);let h=e.at(e.position);if("forward"===t&&("subsup"===h.type?(h=h.rightSibling,h||(h=e.at(e.position+1))):h=e.at(e.position+1)),!h)return e.announce("plonk"),!1;let d=e.offsetOf(h);if(h instanceof Ew)d=S_(e,d,t);else if(h instanceof nS)if(h.isSuggestion)for(console.assert("forward"===t);h&&h instanceof nS;)h.isSuggestion=!1,d=e.offsetOf(h),h=h.rightSibling;else if("forward"===t){if(h=h.rightSibling,!(h&&h instanceof nS))return e.announce("plonk"),!1;for(;h&&h instanceof nS&&/[a-zA-Z\*]/.test(h.value);)d=e.offsetOf(h),h=h.rightSibling}else{if(h=h.leftSibling,!(h&&h instanceof nS))return e.announce("plonk"),!1;for(;h&&h instanceof nS&&/[a-zA-Z\*]/.test(h.value);)d=e.offsetOf(h),h=h.leftSibling}else if("forward"===t&&"mopen"===h.type){let t=0;do{"mopen"===h.type?t+=1:"mclose"===h.type&&(t-=1),h=h.rightSibling}while(!h.isLastSibling&&0!==t);d=e.offsetOf(h.leftSibling)}else if("backward"===t&&"mclose"===h.type){let t=0;do{"mopen"===h.type?t+=1:"mclose"===h.type&&(t-=1),h=h.leftSibling}while(!h.isFirstSibling&&0!==t);d=e.offsetOf(h)}else if("backward"===t)if("first"===h.type)for(;d>0&&"first"===h.type;)d-=1,h=e.at(d);else{const t=h.type;"subsup"===h.type&&(d=e.offsetOf(e.at(d).leftSibling)),d-=1;let n=null==(r=e.at(d))?void 0:r.type;for(;d>=0&&n===t;)"subsup"===(null==(o=e.at(d))?void 0:o.type)?d=e.offsetOf(e.at(d).leftSibling):d-=1,n=e.at(d).type}else{const{type:t}=h;let n=null==(a=e.at(d))?void 0:a.type;const{lastOffset:i}=e;for(;d<=i&&(n===t||"subsup"===n);){for(;"subsup"===(null==(s=e.at(d).rightSibling)?void 0:s.type);)d=e.offsetOf(e.at(d).rightSibling);d+=1,n=null==(l=e.at(d))?void 0:l.type}d-=1}if(null!=(c=null==n?void 0:n.extend)&&c){if(!e.setSelection(e.anchor,d))return e.announce("plonk"),!1}else{if(d===e.position)return e.announce("plonk"),!1;e.position=d}return e.announce("move",u),e.mathfield.stopCoalescingUndo(),!0}function __(e,t,n){var i,r;if(n=null!=n?n:{extend:!1},e.mathfield.adoptStyle="backward"===t?"right":"left","forward"!==t){const[t,n]=JS(e);void 0!==t&&void 0!==n&&e.deleteAtoms([t,n])}if("upward"===t)return function(e,t){var n,i;const r=null!=(n=null==t?void 0:t.extend)&&n;r||e.collapseSelection("backward");const o=()=>{var t,n;let i=!0;return e.silenceNotifications||(i=null==(n=null==(t=e.mathfield.host)?void 0:t.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))||n),e.announce(i?"plonk":"line"),i},a=e.at(e.position);let s=a;for(;s&&"below"!==s.parentBranch&&!(Array.isArray(s.parentBranch)&&s.parent instanceof Lx);)s=s.parent;if(Array.isArray(null==s?void 0:s.parentBranch)&&s.parent instanceof Lx){const t=s.parent;if(s.parentBranch[0]<1)return o();const n=s.parentBranch[0]-1,i=t.array[n][s.parentBranch[1]],l=i.some((e=>"prompt"===e.type&&!e.captureSelection));if(!l&&e.mathfield.hasEditablePrompts)return o();E_(e,a,i,r,"up")}else{if(!s)return o();{const t=null!=(i=s.parent.branch("above"))?i:s.parent.createBranch("above"),n=t.some((e=>"prompt"===e.type&&e.placeholderId));if(!n&&e.mathfield.hasEditablePrompts)return o();E_(e,a,t,r,"up")}}return e.mathfield.stopCoalescingUndo(),!0}(e,n);if("downward"===t)return function(e,t){var n,i;const r=null!=(n=null==t?void 0:t.extend)&&n;r||e.collapseSelection("forward");const o=()=>{var t,n;let i=!0;return e.silenceNotifications||(i=null==(n=null==(t=e.mathfield.host)?void 0:t.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))||n),e.announce(i?"plonk":"line"),i},a=e.at(e.position);let s=a;for(;s&&"above"!==s.parentBranch&&!(Array.isArray(s.parentBranch)&&s.parent instanceof Lx);)s=s.parent;if(Array.isArray(null==s?void 0:s.parentBranch)&&s.parent instanceof Lx){const t=s.parent;if(s.parentBranch[0]+1>t.array.length-1)return o();const n=s.parentBranch[0]+1,i=t.array[n][s.parentBranch[1]],l=i.some((e=>"prompt"===e.type&&!e.captureSelection));if(!l&&e.mathfield.hasEditablePrompts)return o();E_(e,a,i,r,"down")}else{if(!s)return o();{const t=null!=(i=s.parent.branch("below"))?i:s.parent.createBranch("below"),n=t.some((e=>"prompt"===e.type));if(!n&&e.mathfield.hasEditablePrompts)return o();E_(e,a,t,r,"down")}}return!0}(e,n);if(n.extend){let n=C_(e,e.position,t);n<0&&(n=0),n>e.lastOffset&&(n=e.lastOffset);const i=e.setSelection(e.anchor,n);return e.mathfield.stopCoalescingUndo(),i}if(e.selectionIsPlaceholder){e.collapseSelection(t);const n=__(e,t);return e.mathfield.stopCoalescingUndo(),n}let o=e.position;const a=o;if(e.collapseSelection(t)?(o=e.position,P_(e,o)||(o=C_(e,o,t))):o=C_(e,o,t),o<0||o>e.lastOffset){let n=!0;return e.silenceNotifications||(n=null==(r=null==(i=e.mathfield.host)?void 0:i.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))||r),n&&e.announce("plonk"),n}return e.setPositionHandlingPlaceholder(o),e.mathfield.stopCoalescingUndo(),e.announce("move",a),!0}function C_(e,t,n){return(t+="forward"===n?1:-1)<0||t>e.lastOffset||P_(e,t)?t:C_(e,t,n)}function P_(e,t){var n;const i=e.at(t);let r=i.parent;for(;r&&!r.inCaptureSelection;)r=r.parent;if(null==r?void 0:r.inCaptureSelection)return!1;if(null==(n=i.parent)?void 0:n.skipBoundary){if(!i.isFirstSibling&&i.isLastSibling)return!1;if("first"===i.type)return!1}return!(e.mathfield.hasEditablePrompts&&!i.parentPrompt)}function E_(e,t,n,i,r){const o=e.mathfield.hasEditablePrompts,a=o?n.filter((e=>"prompt"===e.type&&!e.captureSelection)):n,s=ex(e.mathfield.getHTMLElement(t)).right,l=e.offsetOf(function(e,t,n){let i=1/0,r=0;for(;r=e.mathfield.options.scriptDepth[1])return e.announce("plonk"),!1;let n=e.at(e.position);return void 0===n.subsupPlacement&&("subsup"!==(null==(t=n.rightSibling)?void 0:t.type)&&n.parent.addChildAfter(new Hx({style:n.computedStyle}),n),n=n.rightSibling),n.createBranch("superscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(n.superscript[0]))),!0}function A_(e){var t;if(e.collapseSelection(),function(e){let t=0,n=e.at(e.position),i=!1;for(;n;)n.hasEmptyBranch("superscript")&&n.hasEmptyBranch("subscript")||(t+=1),n.hasEmptyBranch("superscript")?n.hasEmptyBranch("subscript")||(i=!0):i=!1,n=n.parent;return i?t:0}(e)>=e.mathfield.options.scriptDepth[0])return e.announce("plonk"),!1;let n=e.at(e.position);return void 0===n.subsupPlacement&&("subsup"!==(null==(t=e.at(e.position+1))?void 0:t.type)&&n.parent.addChildAfter(new Hx({style:e.at(e.position).computedStyle}),n),n=e.at(e.position+1)),n.createBranch("subscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(n.subscript[0]))),!0}function T_(){function e(e){return!((n=e).disabled||"hidden"===n.type&&"INPUT"===n.tagName.toUpperCase()||function(e){if(!lp()||e===document.activeElement||e.contains(document.activeElement))return!1;if("hidden"===getComputedStyle(e).visibility)return!0;const t=e.getBoundingClientRect();if(0===t.width||0===t.height)return!0;for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n)||function(e){return"INPUT"===e.tagName.toUpperCase()&&"radio"===e.type&&!function(e){var t;if(!e.name)return!0;const n=null!=(t=e.form)?t:e.ownerDocument,i=n.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),r=function(e,t){for(const n of e)if(n.checked&&n.form===t)return n;return null}(i,e.form);return!r||r===e}(e)}(e)||t(e)<0);var n}function t(e){var t;const n=Number.parseInt(null!=(t=e.getAttribute("tabindex"))?t:"NaN",10);return Number.isNaN(n)?"true"===e.contentEditable?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:n}return lp()?function(n){const i=[],r=[];return[...n.querySelectorAll('input, select, textarea, a[href], button,\n [tabindex], audio[controls], video[controls],\n [contenteditable]:not([contenteditable="false"]), details>summary')].filter(e).forEach(((e,n)=>{const o=t(e);0===o?i.push(e):r.push({documentOrder:n,tabIndex:o,node:e})})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(i)}(document.body):[]}function D_(e,t,n="forward"){const i=e.position;if(Array.isArray(t)){const r=e.offsetOf(t[0]),o=e.offsetOf(t[t.length-1]);return"forward"===n?e.setSelection(r,o):e.setSelection(o,r),e.announce("move",i),e.mathfield.stopCoalescingUndo(),!0}return D_(e,"forward"===n?[t.leftSibling,t]:[t,t.leftSibling])}function N_(e,t){const n=e.position;if("number"==typeof t&&(t=e.at(t)),"prompt"===t.type)e.setSelection(e.offsetOf(t.firstChild),e.offsetOf(t.lastChild));else{const n=e.offsetOf(t);"placeholder"===t.type?e.setSelection(n-1,n):e.position=n}return e.announce("move",n),e.mathfield.stopCoalescingUndo(),!0}function I_(e,t,n=!0){var i,r;const o="forward"===t?1:-1;let a;"placeholder"===e.at(e.anchor).type&&__(e,t);const s=e.at(e.anchor).parentPrompt;a=s?"forward"===t?e.offsetOf(s)+1:e.offsetOf(s.leftSibling):Math.max(e.position+o,0);const l=B_(e,a,t);if(!l||"forward"===t&&e.offsetOf(l)a){if(!n||!(null==(r=null==(i=e.mathfield.host)?void 0:i.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))||r))return e.announce("plonk"),!1;const a=T_();if(!document.activeElement||a.length<=1)return e.announce("plonk"),!1;let s=a.indexOf(document.activeElement)+o;return s<0&&(s=a.length-1),s>=a.length&&(s=0),a[s].focus(),e.mathfield.stopCoalescingUndo(),!0}return N_(e,l),!0}function B_(e,t=0,n="forward"){return e.findAtom((t=>"placeholder"===t.type||"prompt"===t.type||!e.mathfield.readOnly&&t.treeDepth>2&&t.isFirstSibling&&t.isLastSibling),t,n)}function R_(e,t,n,i){if("forward"===i){let e=t.rightSibling;for(;e&&!n(e);)e=e.rightSibling;return e}let r=t.leftSibling;for(;r&&!n(r);)r=r.leftSibling;return r}function O_(e,t,n){"function"==typeof t&&(n=t,t=1/0),void 0===t&&(t=1/0);let i=e.position,r=!1,o="";for(;!r;){const a=e.at(i);r=0===t||void 0===a||"first"===a.type||"math"!==a.mode||!(a.type&&/mord|mpunct|operator/.test(a.type)||"mop"===a.type&&/[a-zA-Z ]+/.test(a.value))||!a.hasEmptyBranch("superscript")||!a.hasEmptyBranch("subscript")||"function"==typeof n&&!n(a),r||(a.mode="text",a.command=a.value,a.verbatimLatex=void 0,o+=a.value),i-=1,t-=1}e.contentDidChange({data:o,inputType:"insertText"})}function F_(e,t,n){"function"==typeof t&&(n=t,t=1/0),void 0===t&&(t=1/0);let i=e.position,r=!1;const o=[];for(;!r;){const a=e.at(i);r=0===t||!a||"first"===a.type||a.isFirstSibling||"text"!==a.mode||" "===a.value||"function"==typeof n&&!n(a),r||(o.push(_w.serialize([a],{defaultMode:"math"})),a.mode="math"),i-=1,t-=1}z_(e),e.contentDidChange({data:Kb(o),inputType:"insertText"})}function z_(e){var t;let n=e.position-1;for(;n>=0&&"math"===(null==(t=e.at(n))?void 0:t.mode);)n-=1;if(!(n<0)&&"text"===e.at(n).mode&&" "===e.at(n).value&&"math"===e.at(n-1).mode){e.at(n-1).parent.removeChild(e.at(n-1));const t=e.silenceNotifications;e.silenceNotifications=!0,e.position-=1,e.silenceNotifications=t,e.contentDidChange({inputType:"deleteContent"})}}function j_(){const e=document.getElementById("mathlive-keystroke-caption-panel");return e||(ox("keystroke-caption"),ox("core"),rk("mathlive-keystroke-caption-panel"))}function $_(e,t){var n,i,r;const{model:o}=e,a=VS(t);if(t.isTrusted){!function(e){var t,n;if(!e)return;if("Unidentified"===e.key)return;if("Dead"===e.key)return;const i=e.shiftKey&&e.altKey?3:e.altKey?2:e.shiftKey?1:0;for(const r of BS)(null==(t=r.mapping[e.code])?void 0:t[i])===e.key?r.score+=1:(null==(n=r.mapping[e.code])?void 0:n[i])&&(r.score=0);BS.sort(((e,t)=>t.score-e.score))}(t);const n=FS();e.keyboardLayout!==n.id&&(e.keyboardLayout=n.id,e._keybindings=void 0)}if(clearTimeout(e.inlineShortcutBufferFlushTimer),e.inlineShortcutBufferFlushTimer=0,function(e,t){if(!e.isSelectionEditable||!e.keystrokeCaptionVisible)return;const n=j_(),i=e.element.getBoundingClientRect();n.style.left=`${i.left}px`,n.style.top=i.top-64+"px",n.innerHTML=window.MathfieldElement.createHTML(""+(zS(t)||t)+""+n.innerHTML),n.style.visibility="visible",setTimeout((()=>{n.childNodes.length>0&&n.childNodes[n.childNodes.length-1].remove(),0===n.childNodes.length&&(n.style.visibility="hidden")}),3e3)}(e,a),t.isTrusted&&t.defaultPrevented)return e.flushInlineShortcutBuffer(),!1;let s,l,c="";const u=e.inlineShortcutBuffer;if(e.isSelectionEditable){if("math"===o.mode)if("[Backspace]"===a)u.pop();else if(ZS(t)){const r=US(t),a=[...null!=(i=null==(n=u[u.length-1])?void 0:n.keystrokes)?i:[],r];u.push({state:o.getState(),keystrokes:a,leftSiblings:Z_(e)});let c=0,h="";for(;!s&&c<*|]$/.test(r))return z_(i),!0}else{if("[Space]"===t)return O_(i,void 0,(e=>/[a-z][:,;.]$/.test(e.value))),!0;if(/[a-zA-Z]{3,}$/.test(o)&&!/(dxd|abc|xyz|uvw)$/.test(o))return O_(i,void 0,(e=>/[a-zA-Z]/.test(e.value))),!0;if(/(^|\W)(if)$/i.test(o))return O_(i,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(o)&&!/(αβγ)$/.test(o))return O_(i,void 0,(e=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(e.value))),!0;if("?"===r)return!0;if("."===r&&!/[\d-+]\.$/.test(o))return!0}return!1}(e,a,t)&&(e.switchMode({math:"text",text:"math"}[o.mode]),c=""))}if(!s){if(c||(c=function(e,t,n){if(0===e.length)return"";const i=DS(TS(VS(n))),r=DS({key:n.key,shift:n.shiftKey,alt:n.altKey,ctrl:n.ctrlKey,meta:n.metaKey||n.ctrlKey&&/macos|ios/.test(up()),cmd:!1,win:!1});for(let n=e.length-1;n>=0;n--)if(!(e[n].key!==i&&e[n].key!==r||e[n].ifMode&&e[n].ifMode!==t))return e[n].command;return""}(e.keybindings,o.mode,t)),!c&&("[Enter]"===a||"[Return]"===a)){let n=!1;return o.contentWillChange({inputType:"insertLineBreak"})&&(e.host&&(n=!e.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),n||t.preventDefault&&(t.preventDefault(),t.stopPropagation()),o.contentDidChange({inputType:"insertLineBreak"})),n}if((!c||"[Space]"===a)&&"math"===o.mode){if("[Space]"===a){if(e.adoptStyle="none",e.flushInlineShortcutBuffer(),e.options.mathModeSpace)return Zw.insert(o,e.options.mathModeSpace,{format:"latex",mode:"math"}),e.snapshot("insert-space"),c="",e.dirty=!0,e.scrollIntoView(),t.preventDefault&&(t.preventDefault(),t.stopPropagation()),!1;const n=o.at(o.position+1),i=o.at(o.position-1);if("text"===(null==n?void 0:n.mode)||"text"===(null==i?void 0:i.mode))return Zw.insert(o," ",{mode:"text"}),e.snapshot("insert-space"),e.dirty=!0,e.scrollIntoView(),!1}(null==(r=o.at(o.position))?void 0:r.isDigit())&&","===window.MathfieldElement.decimalSeparator&&","===US(t)&&(c="insertDecimalSeparator")}}if(!s&&!c){if(o.mathfield.smartFence){if(G_(o,US(t),e.effectiveStyle))return e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}else{const{parent:n}=o.at(o.position);if(n instanceof Ox&&"?"===n.rightDelim&&o.at(o.position).isLastSibling&&/^[)}\]|]$/.test(a))return e.snapshot(),n.isDirty=!0,n.rightDelim=a,o.position+=1,o.selectionDidChange(),o.contentDidChange({data:US(t),inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1;if(!o.selectionIsCollapsed){const n=US(t);if("("===n||"{"===n||"["===n){const i={"(":"(","{":"\\lbrace","[":"\\lbrack"}[n],r={"(":")","{":"\\rbrace","[":"\\rbrack"}[n],[a,s]=Lw(o.selection);return e.snapshot(),o.position=s,Zw.insert(o,r,{format:"latex"}),o.position=a,Zw.insert(o,i,{format:"latex"}),o.setSelection(a+1,s+1),o.contentDidChange({data:n,inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}}}return!0}const h=o.at(Math.max(o.position,o.anchor)),{parent:d}=h;if("moveAfterParent"===c&&"leftright"===(null==d?void 0:d.type)&&h.isLastSibling&&e.options.smartFence&&G_(o,".",e.defaultStyle)&&(c="",yk(e)),e.keyboardDelegate.cancelComposition(),c)e.executeCommand(c);else if(s){const t=e.effectiveStyle;o.setState(u[l].state);const n=u[u.length-1].keystrokes;for(const e of n)Zw.insert(o,e,{silenceNotifications:!0,style:t});e.snapshot("insert-shortcut"),o.setState(u[l].state),o.deferNotifications({content:!0,selection:!0,data:s,type:"insertText"},(()=>(Zw.insert(o,s,{format:"latex",style:t}),z_(e.model),s.endsWith(" ")&&(e.switchMode("text"),Zw.insert(o," ",{style:t,mode:"text"})),e.snapshot(),o.selectionIsCollapsed||e.flushInlineShortcutBuffer(),!0))),e.dirty=!0,o.announce("replacement")}return e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}function H_(e,t,n){const{model:i}=e;if(!e.isSelectionEditable)return void i.announce("plonk");null!=n||(n={}),n.focus&&e.focus(),n.feedback&&window.MathfieldElement.playSound("keypress"),"string"==typeof n.mode&&(e.switchMode(n.mode),e.snapshot());let r=$b(t);const o=window.mathVirtualKeyboard;if((null==o?void 0:o.isShifted)&&(r="string"==typeof r?r.toUpperCase():r.map((e=>e.toUpperCase()))),n.simulateKeystroke){let t=!0;for(const n of r)$_(e,new KeyboardEvent("keypress",{key:n}))&&(t=!1);if(t)return}const a=i.at(i.position),s=ip(ip({},a.computedStyle),e.defaultStyle);if(i.selectionIsCollapsed||(i.deleteAtoms(Lw(i.selection)),e.snapshot("delete")),"latex"===i.mode)i.deferNotifications({content:!0,selection:!0,data:t,type:"insertText"},(()=>{ek(e);for(const e of r)Zw.insert(i,e);e.snapshot("insert-latex"),tk(e)}));else if("text"===i.mode){for(const e of r)Zw.insert(i,e,{style:s});e.snapshot("insert-text")}else if("math"===i.mode)for(const t of r)K_(e,t,s,a);e.dirty=!0,e.scrollIntoView()}function Z_(e){const t=e.model,n=[];let i=t.at(Math.min(t.position,t.anchor));for(;"first"!==i.type;)n.push(i),i=i.leftSibling;return n}function K_(e,t,n,i){const r=e.model;let o={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[t];if(" "===t&&e.options.mathModeSpace&&(o=["insert",e.options.mathModeSpace]),o)e.executeCommand(o);else{if(/\d/.test(t)&&e.options.smartSuperscript&&"superscript"===i.parentBranch&&"mop"!==i.parent.type&&"operator"!==i.parent.type&&"extensible-symbol"!==i.parent.type&&i.hasNoSiblings)return function(e){e.selectionIsCollapsed||(e.deleteAtoms(Lw(e.selection)),e.mathfield.snapshot("delete"))}(r),Zw.insert(r,t,{style:n}),e.snapshot(),M_(r),void e.snapshot();if(/[a-zA-Z0-9]/.test(t)&&"none"!==e.adoptStyle){const t="left"===e.adoptStyle?i:i.parent?i.rightSibling:null;"mord"===(null==t?void 0:t.type)&&/[a-zA-Z0-9]/.test(t.value)&&(n=ip({},n),t.style.variant&&(n.variant=t.style.variant),t.style.variantStyle&&(n.variantStyle=t.style.variantStyle))}Zw.insert(r,t,{style:n}),e.snapshot(`insert-${r.at(r.position).type}`)}}function G_(e,t,n){if(!t)return!1;if("math"!==e.mode)return!1;const i=e.at(e.position),{parent:r}=i,o={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[t];if(!o)return!1;const a=cx[o],s=lx[o];if(!e.selectionIsCollapsed){e.mathfield.snapshot();const[t,n]=Lw(e.selection),i=e.extractAtoms([t,n]),a=r.addChildrenAfter([new Ox("left...right",i,{leftDelim:o,rightDelim:s})],e.at(t));return e.setSelection(e.offsetOf(a.firstChild),e.offsetOf(a.lastChild)),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:o,inputType:"insertText"}),!0}if("|"===o){const t=r instanceof Ox?r.leftDelim+r.rightDelim:"";if("\\lbrace\\rbrace"===t||"\\{\\}"===t||"\\lbrace?"===t)return e.mathfield.snapshot(),Zw.insert(e,"\\,\\middle\\vert\\,",{format:"latex",style:n}),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:o,inputType:"insertText"}),!0}if(s){if(r instanceof Ox&&r.firstChild===i&&("?"===r.leftDelim||"."===r.leftDelim))return r.leftDelim=o,r.isDirty=!0,e.mathfield.snapshot(),e.contentDidChange({data:o,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(!(r instanceof Ox)){let t=i;for(;t&&("mclose"!==t.type||t.value!==s);)t=t.rightSibling;if(t){e.mathfield.snapshot();const n=e.extractAtoms([e.offsetOf(i),e.offsetOf(t)]);return n.pop(),r.addChildrenAfter([new Ox("left...right",n,{leftDelim:o,rightDelim:s})],i),e.position=e.offsetOf(r.firstChild)+1,e.contentDidChange({data:o,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}}const t=e.offsetOf(i.lastSibling);let a;for(a=e.position;a<=t;a++){const t=e.at(a);if(t instanceof Ox&&("?"===t.leftDelim||"."===t.leftDelim)&&V_(o,t.rightDelim))break}const l=e.at(a);if(a<=t&&l instanceof Ox){l.leftDelim=o,e.mathfield.snapshot();let t=e.extractAtoms([e.position,a-1]);return t=t.filter((e=>"first"!==e.type)),l.addChildren(t,l.parentBranch),e.position+=1,e.contentDidChange({data:o,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(r instanceof Ox&&("?"===r.leftDelim||"."===r.leftDelim)&&V_(o,r.rightDelim)){r.isDirty=!0,r.leftDelim=o,e.mathfield.snapshot();const t=e.extractAtoms([e.offsetOf(i.firstSibling),e.position]);for(const e of t)r.parent.addChildBefore(e,r);return e.contentDidChange({data:o,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(!(r instanceof Ox&&"|"===r.leftDelim)){if(e.mathfield.snapshot(),Zw.insert(e,`\\left${o}\\right?`,{format:"latex",style:n}),"first"!==i.lastSibling.type){const t=e.offsetOf(i.lastSibling),n=e.extractAtoms([e.position,t]);e.at(e.position).body=n,e.position-=1}return e.mathfield.snapshot("insert-fence"),!0}}if(a){let t=i;for(;t;){if("mopen"===t.type&&t.value===a){e.mathfield.snapshot();const n=t.leftSibling,s=e.extractAtoms([e.offsetOf(t.leftSibling),e.offsetOf(i)]);s.shift();const l=new Ox("left...right",s,{leftDelim:a,rightDelim:o});return r.addChildrenAfter([l],n),e.position=e.offsetOf(l),e.contentDidChange({data:o,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}t=t.leftSibling}if(r instanceof Ox&&i.isLastSibling&&U_(r.leftDelim,o))return e.mathfield.snapshot(),r.isDirty=!0,r.rightDelim=o,e.position+=1,e.contentDidChange({data:o,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const s=e.offsetOf(i.firstSibling);let l;for(l=e.position;l>=s;l--){const t=e.at(l);if(t instanceof Ox&&("?"===t.rightDelim||"."===t.rightDelim)&&U_(t.leftDelim,o))break}const c=e.at(l);if(l>=s&&c instanceof Ox)return e.mathfield.snapshot(),c.rightDelim=o,c.addChildren(e.extractAtoms([l,e.position]),c.parentBranch),e.contentDidChange({data:o,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(r instanceof Ox&&("?"===r.rightDelim||"."===r.rightDelim)&&U_(r.leftDelim,o))return e.mathfield.snapshot(),r.isDirty=!0,r.rightDelim=o,r.parent.addChildren(e.extractAtoms([e.position,e.offsetOf(i.lastSibling)]),r.parentBranch),e.position=e.offsetOf(r),e.contentDidChange({data:o,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const u=r.parent;return!(!(u instanceof Ox)||"?"!==u.rightDelim&&"."!==u.rightDelim||!e.at(e.position).isLastSibling)&&(e.position=e.offsetOf(u),G_(e,o,n))}return!1}function U_(e,t){return!e||(["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t):lx[e]===t)}function V_(e,t){return!t||([")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e):cx[t]===e)}function W_(e,t){var n,i,r,o,a,s,l,c,u,h;const d={};if("string"==typeof t.color){const o=null!=(i=e.colorMap(null!=(n=t.color)?n:t.verbatimColor))?i:"none";o!==t.color&&(d.verbatimColor=null!=(r=t.verbatimColor)?r:t.color),d.color=o}if("string"==typeof t.backgroundColor){const n=null!=(a=e.backgroundColorMap(null!=(o=t.backgroundColor)?o:t.verbatimBackgroundColor))?a:"none";n!==t.backgroundColor&&(d.verbatimBackgroundColor=null!=(s=t.verbatimBackgroundColor)?s:t.backgroundColor),d.backgroundColor=n}"string"==typeof t.fontFamily&&(d.fontFamily=t.fontFamily),"string"==typeof t.series&&(d.fontSeries=t.series),"string"==typeof t.fontSeries&&(d.fontSeries=t.fontSeries.toLowerCase()),d.fontSeries&&(d.fontSeries=null!=(l={bold:"b",medium:"m",normal:"m"}[d.fontSeries])?l:d.fontSeries),"string"==typeof t.shape&&(d.fontShape=t.shape),"string"==typeof t.fontShape&&(d.fontShape=t.fontShape.toLowerCase()),d.fontShape&&(d.fontShape=null!=(c={italic:"it",up:"n",upright:"n",normal:"n"}[d.fontShape])?c:d.fontShape),t.variant&&(d.variant=t.variant.toLowerCase()),t.variantStyle&&(d.variantStyle=t.variantStyle.toLowerCase());const p=null!=(u=t.size)?u:t.fontSize;return"number"==typeof p?d.fontSize=Math.max(1,Math.min(10,p)):"string"==typeof p&&(d.fontSize=null!=(h={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[p.toLowerCase()])?h:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[p]),d}function q_(e){let[t,n]=Lw(e.selection);if(t=Y_(e,t,"backward"),n=Y_(e,n,"forward"),t===n){const i=e.at(t);if("leftright"===i.type)return e.setSelection(e.offsetOf(i.firstChild)-1,n);if("first"===i.type&&("leftright"===i.parent.type||"surd"===i.parent.type))return e.setSelection(t-1,e.offsetOf(i.parent.lastChild)+1);e.setSelection(t-1,n)}else e.setSelection(t,n);return!0}function Y_(e,t,n){var i,r,o;let a=e.at(t);if(!a)return t;const s="forward"===n?1:-1;if("text"===a.mode){for(;a&&"text"===a.mode&&Dp.test(a.value);)t+=s,a=e.at(t);return"backward"===n?t-1:t}if("latex"===a.mode){if(/[a-zA-Z\*]/.test(a.value))if("backward"===n)for(;a&&"latex"===a.mode&&"\\"!==a.value&&/[a-zA-Z]/.test(a.value);)t+=s,a=e.at(t);else for(;a&&"latex"===a.mode&&/[a-zA-Z\*]/.test(a.value);)t+=s,a=e.at(t);else{if("{"===a.value){if("forward"===n){for(;a&&"latex"===a.mode&&"}"!==a.value;)t+=s,a=e.at(t);return t}return t-1}if("}"===a.value){if("backward"===n){for(;a&&"latex"===a.mode&&"{"!==a.value;)t+=s,a=e.at(t);return t-1}return t}}return t-1}if("math"===a.mode){if(a.isDigit()){for(;null==(i=e.at(t+s))?void 0:i.isDigit();)t+=s;return"backward"===n?t-1:t}if(a.style.variant||a.style.variantStyle){let i=null==(r=e.at(t))?void 0:r.style;for(;i&&i.variant===a.style.variant&&i.variantStyle===a.style.variantStyle;)i=null==(o=e.at(t+s))?void 0:o.style,t+=s;return"backward"===n?t-1:t}return t}return t}kk({moveToOpposite:e=>{const t=e.at(e.position),{parent:n}=t;if(!n)return e.announce("plonk"),!1;const i=t.parentBranch;let r;if("string"==typeof i&&(r={superscript:"subscript",subscript:"superscript",above:"below",below:"above"}[i]),!r){const n=t.subsupPlacement?A_(e):L_(e);return e.mathfield.stopCoalescingUndo(),n}n.branch(r)||n.createBranch(r);const o=e.setSelection(e.getBranchRange(e.offsetOf(n),r));return e.mathfield.stopCoalescingUndo(),o},moveBeforeParent:e=>{const{parent:t}=e.at(e.position);return t?(e.position=e.offsetOf(t),e.mathfield.stopCoalescingUndo(),!0):(e.announce("plonk"),!1)},moveAfterParent:e=>M_(e),moveToNextChar:e=>__(e,"forward"),moveToPreviousChar:e=>__(e,"backward"),moveUp:e=>__(e,"upward"),moveDown:e=>__(e,"downward"),moveToNextWord:e=>k_(e,"forward"),moveToPreviousWord:e=>k_(e,"backward"),moveToGroupStart:e=>{const t=e.offsetOf(e.at(e.position).firstSibling);return t===e.position?(e.announce("plonk"),!1):(e.position=t,e.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:e=>{const t=e.offsetOf(e.at(e.position).lastSibling);return t===e.position?(e.announce("plonk"),!1):(e.position=t,e.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:e=>{var t,n,i,r;if(e.position===e.lastOffset&&e.anchor===e.lastOffset)return I_(e,"forward");const o=e.at(e.position);if("text"===o.mode){if(e.selectionIsCollapsed){let n=o;for(;n&&"text"===n.mode;)n=n.leftSibling;let i=o;for(;"text"===(null==(t=i.rightSibling)?void 0:t.mode);)i=i.rightSibling;if(n&&i)return D_(e,[n,i])}if("text"===o.rightSibling.mode){let t=o;for(;t&&"text"===t.mode;)t=t.rightSibling;return t?(N_(e,null!=(n=t.leftSibling)?n:t),e.mathfield.switchMode("math"),!0):N_(e,e.lastOffset)}}const a=e.at(e.anchor).parentPrompt,s=a?e.offsetOf(a)+1:Math.max(e.position+1,0),l=B_(e,s,"forward");if(l)return N_(e,l);const c=R_(e,o,(e=>"leftright"===e.type||"text"===e.type),"forward");if(c){if("text"===c.mode){let t=c;for(;t&&"text"===t.mode;)t=t.rightSibling;return D_(e,[null!=(i=c.leftSibling)?i:c,null!=(r=t.leftSibling)?r:t])}return D_(e,c)}const u=o.parent;if(u){if("leftright"===u.type||"surd"===u.type)return D_(e,u);if("superscript"===o.parentBranch&&u.subscript)return D_(e,u.subscript);if("above"===o.parentBranch&&u.below)return D_(e,u.below);if("superscript"===o.parentBranch||"subscript"===o.parentBranch)return N_(e,u);if("above"===o.parentBranch||"below"===o.parentBranch)return D_(e,u)}return N_(e,e.lastOffset)},moveToPreviousGroup:e=>{var t;if(0===e.position&&0===e.anchor)return I_(e,"backward");let n=e.at(e.position);const i=n.mode;if("text"===i){if(e.selectionIsCollapsed){let i=n;for(;i&&"text"===i.mode;)i=i.leftSibling;let r=n;for(;"text"===(null==(t=r.rightSibling)?void 0:t.mode);)r=r.rightSibling;if(i&&r)return D_(e,[i,r])}for(;n&&"text"===n.mode;)n=n.leftSibling;return N_(e,n?n:0)}const r=e.at(e.anchor).parentPrompt,o=r?e.offsetOf(r.leftSibling):Math.max(e.position-1,0),a=B_(e,o,"backward");if(a)return N_(e,a);if("math"===i){const t=R_(e,n,(e=>"leftright"===e.type||"text"===e.type),"backward");if(t){if("text"===t.mode){let n=t;for(;n&&"text"===n.mode;)n=n.leftSibling;return D_(e,[t,n])}return D_(e,t)}const i=n.parent;if(i){if("leftright"===i.type||"surd"===i.type)return D_(e,i);if("subscript"===n.parentBranch&&i.superscript)return D_(e,i.superscript);if("below"===n.parentBranch&&i.above)return D_(e,i.above);if("superscript"===n.parentBranch||"subscript"===n.parentBranch)return N_(e,i);if("above"===n.parentBranch||"below"===n.parentBranch)return D_(e,i)}return N_(e,0)}return!1},moveToMathfieldStart:e=>e.selectionIsCollapsed&&0===e.position?(e.announce("plonk"),!1):(e.position=0,e.mathfield.stopCoalescingUndo(),!0),moveToMathfieldEnd:e=>e.selectionIsCollapsed&&e.position===e.lastOffset?(e.announce("plonk"),!1):(e.position=e.lastOffset,e.mathfield.stopCoalescingUndo(),!0),moveToSuperscript:L_,moveToSubscript:A_},{target:"model",changeSelection:!0}),kk({moveToNextPlaceholder:e=>I_(e,"forward"),moveToPreviousPlaceholder:e=>I_(e,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"}),kk({undo:e=>(e.undo(),!0),redo:e=>(e.redo(),!0),scrollIntoView:e=>(e.scrollIntoView(),!0),scrollToStart:e=>(e.field.scroll(0,0),!0),scrollToEnd:e=>{const t=e.field.getBoundingClientRect();return e.field.scroll(t.left-window.scrollX,0),!0},toggleKeystrokeCaption:function(e){if(e.keystrokeCaptionVisible=!e.keystrokeCaptionVisible,e.keystrokeCaptionVisible){j_().innerHTML=""}else{rk("mathlive-keystroke-caption-panel").style.visibility="hidden"}return!1},toggleContextMenu:e=>{const t=e.toggleContextMenu();return t||e.model.announce("plonk"),t},plonk:e=>(e.model.announce("plonk"),!0),switchMode:(e,t,n,i)=>(e.switchMode(t,n,i),!0),insert:(e,t,n)=>e.insert(t,n),typedText:(e,t,n)=>(H_(e,t,n),!0),insertDecimalSeparator:e=>{const t=e.model;if("math"===t.mode&&","===window.MathfieldElement.decimalSeparator){if(t.at(Math.max(t.position,t.anchor)).isDigit())return e.insert("{,}",{format:"latex"}),e.snapshot("insert-mord"),!0}return e.insert("."),!0},commit:e=>{var t;return e.model.contentWillChange({inputType:"insertLineBreak"})&&(null==(t=e.host)||t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),e.model.contentDidChange({inputType:"insertLineBreak"})),!0},insertPrompt:(e,t,n)=>{const i=e.getPrompts();let r="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(1e5*Math.random()).toString(36),o=0;for(;i.includes(r)&&o<100;){if(99===o)return console.error("could not find a unique ID after 100 tries"),!1;r="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(1e5*Math.random()).toString(36),o++}return e.insert(`\\placeholder[${null!=t?t:r}]{}`,n),!0}}),kk({copyToClipboard:e=>(e.focus(),e.model.selectionIsCollapsed&&e.select(),"queryCommandSupported"in document&&document.queryCommandSupported("copy")?document.execCommand("copy"):e.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("copy",{bubbles:!0,composed:!0})),!1)},{target:"mathfield"}),kk({cutToClipboard:e=>(e.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("cut")?document.execCommand("cut"):e.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("cut",{bubbles:!0,composed:!0})),!0),pasteFromClipboard:e=>(e.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("paste")?(document.execCommand("paste"),!0):(navigator.clipboard.readText().then((t=>{t&&e.model.contentWillChange({inputType:"insertFromPaste",data:t})?(e.stopCoalescingUndo(),e.stopRecording(),e.insert(t,{mode:e.model.mode})&&(tk(e),e.startRecording(),e.snapshot("paste"),e.model.contentDidChange({inputType:"insertFromPaste"}),yk(e))):e.model.announce("plonk"),e.startRecording()})),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0}),kk({applyStyle:function(e,t){e.flushInlineShortcutBuffer(),e.stopCoalescingUndo();const n=W_(e,t),{model:i}=e;return i.selectionIsCollapsed?(e.defaultStyle.fontSeries&&n.fontSeries===e.defaultStyle.fontSeries&&(n.fontSeries="auto"),n.fontShape&&n.fontShape===e.defaultStyle.fontShape&&(n.fontShape="auto"),n.color&&n.color===e.defaultStyle.color&&(n.color="none"),n.backgroundColor&&n.backgroundColor===e.defaultStyle.backgroundColor&&(n.backgroundColor="none"),n.fontSize&&n.fontSize===e.defaultStyle.fontSize&&(n.fontSize="auto"),e.defaultStyle=ip(ip({},e.defaultStyle),n)):e.model.deferNotifications({content:!0,type:"insertText"},(()=>{i.selection.ranges.forEach((e=>s_(i,e,n,{operation:"toggle"}))),e.snapshot("style-change")})),!0}},{target:"mathfield",canUndo:!0,changeContent:!0}),kk({selectGroup:e=>{const t=q_(e);return t||e.announce("plonk"),t},selectAll:e=>e.setSelection(0,e.lastOffset),extendSelectionForward:e=>__(e,"forward",{extend:!0}),extendSelectionBackward:e=>__(e,"backward",{extend:!0}),extendToNextWord:e=>k_(e,"forward",{extend:!0}),extendToPreviousWord:e=>k_(e,"backward",{extend:!0}),extendSelectionUpward:e=>__(e,"upward",{extend:!0}),extendSelectionDownward:e=>__(e,"downward",{extend:!0}),extendToNextBoundary:e=>k_(e,"forward",{extend:!0}),extendToPreviousBoundary:e=>k_(e,"backward",{extend:!0}),extendToGroupStart:e=>{const t=e.setSelection(e.anchor,e.offsetOf(e.at(e.position).firstSibling));return t||e.announce("plonk"),t},extendToGroupEnd:e=>{const t=e.setSelection(e.anchor,e.offsetOf(e.at(e.position).lastSibling));return t||e.announce("plonk"),t},extendToMathFieldStart:e=>{const t=e.setSelection(e.anchor,0);return t||e.announce("plonk"),t},extendToMathFieldEnd:e=>{const t=e.setSelection(e.anchor,e.lastOffset);return t||e.announce("plonk"),t}},{target:"model",changeSelection:!0});var X_=null,Q_=0,J_=class e{static start(t,n,i,r){var o;e.element=t,null==(o=e.controller)||o.abort(),e.controller=new AbortController;const a={signal:e.controller.signal};"PointerEvent"in window?(t.addEventListener("pointermove",i,a),t.addEventListener("pointerup",r,a),t.addEventListener("pointercancel",r,a),eC(n)&&(e.pointerId=n.pointerId,t.setPointerCapture(n.pointerId))):(window.addEventListener("mousemove",i,a),window.addEventListener("blur",r,a),window.addEventListener("mouseup",r,a))}static stop(){var t;null==(t=e.controller)||t.abort(),e.controller=void 0,"number"==typeof e.pointerId&&(e.element.releasePointerCapture(e.pointerId),e.pointerId=void 0)}};function eC(e){return null!==e&&void 0!==globalThis.PointerEvent&&e instanceof PointerEvent}function tC(e,t){var n;if(t.buttons>1)return;e.atomBoundsCache=new Map;const i=e;let r,o=!1,a=!1,s="none",l=!1,c=!1;const u=t.clientX,h=t.clientY,d=Date.now(),p=i.field,f=setInterval((()=>{l?p.scroll({top:0,left:p.scrollLeft-16}):c&&p.scroll({top:0,left:p.scrollLeft+16})}),32);function g(){J_.stop(),o=!1,clearInterval(f),e.element.classList.remove("tracking"),t&&t.preventDefault()}X_&&Math.abs(X_.x-u)<5&&Math.abs(X_.y-h)<5&&Date.now()=m.left&&u<=m.right&&h>=m.top&&h<=m.bottom){if(e.flushInlineShortcutBuffer(),e.adoptStyle="left",r=oC(e,u,h,{bias:0}),r>=0){if(e.element.classList.add("tracking"),t.shiftKey){const t=e.model.selectionIsCollapsed;e.model.extendSelectionTo(e.model.anchor,r),s=nk(e.model)||t?"all":"selection"}else"placeholder"===e.model.at(r).type?(e.model.setSelection(r-1,r),s="selection"):"placeholder"===(null==(n=e.model.at(r).rightSibling)?void 0:n.type)?(e.model.setSelection(r,r+1),s="selection"):(e.model.position=r,s=nk(e.model)?"all":"selection");e.defaultStyle={},3===t.detail||Q_>2?(g(),3!==t.detail&&3!==Q_||(e.model.selection={ranges:[[0,e.model.lastOffset]]},s="all")):o||(o=!0,J_.start(p,t,(function(t){if(!i.hasFocus())return void g();const n=t.clientX,o=t.clientY,s=eC(t)&&"touch"===t.pointerType?20:5;if(Date.now()f.right,l=n=0&&v>=0&&(i.model.extendSelectionTo(m,v),yk(e)),a&&q_(i.model)}),g),2!==t.detail&&2!==Q_||(a=!0,q_(e.model),s="all"))}e.hasFocus()||(s="none",e.focus({preventScroll:!0}))}else X_=null;e.stopCoalescingUndo(),"none"!==s&&(e.model.selectionIsCollapsed&&(s="all"),yk(e)),t.preventDefault()}function nC(e,t,n){if(e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom)return 0;const i=e-(n.left+n.right)/2,r=t-(n.top+n.bottom)/2;return i*i+r*r}function iC(e,t,n,i,r){if(!n.id)return[1/0,null];if(t.has(n.id))return t.get(n.id);const o=Xw(e,n);if(!o)return[1/0,null];let a=[1/0,null];if(n.hasChildren&&!n.captureSelection&&i>=o.left&&i<=o.right)for(const o of n.children){const n=iC(e,t,o,i,r);n[0]<=a[0]&&(a=n)}return a[1]||(a=[nC(i,r,o),n]),t.set(n.id,a),a}function rC(e,t,n){const[,i]=iC(e,new Map,e.model.root,t,n);return i}function oC(e,t,n,i){var r;const o=e.field.querySelector(".ML__latex").getBoundingClientRect();if(!o)return 0;if(t>o.right||n>o.bottom+8)return e.model.lastOffset;if(t1)return null;const t=e[0];return t instanceof Ox&&"("===t.leftDelim&&")"===t.rightDelim?t.removeBranch("body"):null}function lC(e){if(e){for(let t=0;e[t];t++){const n=e[t];if(n instanceof Ox&&"("===n.leftDelim){let i=0,r=0,o=0;for(let e=0;n.body[e];e++)"genfrac"===n.body[e].type&&(i++,r=e),o++;0===o&&1===i&&(e[t]=n.body[r])}}for(const t of e){for(const e of t.branches)if(!t.hasEmptyBranch(e)){lC(t.branch(e));const n=sC(t.branch(e));n&&t.setChildren(n,e)}if(t instanceof Lx)for(const e of t.cells)lC(e)}}}function cC(e){return!!e.isDigit()||!(!e.type||!/^(mord|surd|subsup|leftright|mop|mclose)$/.test(e.type))&&!e.isExtensibleSymbol}new class extends Zw{constructor(){super("math")}onPaste(e,t){if(!t)return!1;if(!e.model.contentWillChange({data:"string"==typeof t?t:null,dataTransfer:"string"==typeof t?null:t,inputType:"insertFromPaste"}))return!1;let n="",i="auto",r="string"!=typeof t?t.getData("application/json+mathlive"):"";if(r)try{const t=JSON.parse(r);if(t&&Array.isArray(t)){e.snapshot();const n=yS(t),{model:i}=e;i.selectionIsCollapsed||i.deleteAtoms(Lw(i.selection));const r=i.at(i.position);if(r.parent instanceof Lx){console.assert(void 0!==r.parentBranch);const e=[];let t=[];"first"===n[0].type&&n.shift(),"first"===n[n.length-1].type&&n.pop();for(const i of n)"first"===i.type&&t.length>0?(e.push(t),t=[i]):t.push(i);t.length>0&&e.push(t);let i=Number(r.parentBranch[0]),o=Number(r.parentBranch[1]);const a=r.parent.maxColumns;for(;r.parent.colCount-o=a&&(o=0,r.parent.addRowAfter(i),i++),r.parent.setCell(i,o,e[t])}else r.parent.addChildrenAfter(n.filter((e=>"first"!==e.type)),r);return i.position=i.offsetOf(n[n.length-1]),i.contentDidChange({inputType:"insertFromPaste"}),yk(e),!0}}catch(e){}if(r="string"!=typeof t?t.getData("application/json"):"",r&&window.MathfieldElement.computeEngine)try{const e=JSON.parse(r);if("object"==typeof e&&"latex"in e&&e.latex&&(n=e.latex),!n){const t=window.MathfieldElement.computeEngine.box(e);t&&!t.has("Error")&&(n=t.latex)}n||(i="latex")}catch(e){}if(n||"string"==typeof t||(n=t.getData("application/x-latex"),n&&(i="latex")),n||(n="string"==typeof t?t:t.getData("text/plain")),n){let t;return[t,n]=jw(n),"auto"===i&&t&&(i="latex"),e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,n,{format:i})&&(e.startRecording(),e.snapshot("paste"),yk(e)),e.startRecording(),!0}return!1}insert(e,t,n){var i,r;const o="string"==typeof t?t:null!=(r=null==(i=window.MathfieldElement.computeEngine)?void 0:i.box(t).latex)?r:"";if(!n.silenceNotifications&&!e.contentWillChange({data:o,inputType:"insertText"}))return!1;n.insertionMode||(n.insertionMode="replaceSelection"),n.selectionMode||(n.selectionMode="placeholder"),n.format||(n.format="auto");const{silenceNotifications:a}=e;n.silenceNotifications&&(e.silenceNotifications=!0);const s=e.silenceNotifications;e.silenceNotifications=!0;const l={"?":"\\placeholder{}","@":"\\placeholder{}"};l[0]="replaceAll"===n.insertionMode?"":e.getValue(e.selection,"latex-unstyled"),"replaceSelection"!==n.insertionMode||e.selectionIsCollapsed?"replaceAll"===n.insertionMode?(e.root.setChildren([],"body"),e.position=0):"insertBefore"===n.insertionMode?e.collapseSelection("backward"):"insertAfter"===n.insertionMode&&e.collapseSelection("forward"):e.deleteAtoms(Lw(e.selection)),e.at(e.position).isLastSibling||"placeholder"!==e.at(e.position+1).type?"placeholder"===e.at(e.position).type&&e.deleteAtoms([e.position-1,e.position]):e.deleteAtoms([e.position,e.position+1]);let c=-1;l[0]?l["@"]=l[0]:"string"==typeof t&&/(^|[^\\])#@/.test(t)&&(c=function(e){let t=e.at(e.position);if("text"===t.mode){for(;!t.isFirstSibling&&"text"===t.mode;)t=t.leftSibling;return e.offsetOf(t)}const n=t;let i=!1;if("mclose"===t.type){const e=cx[t.value];for(;!t.isFirstSibling&&("mopen"!==t.type||t.value!==e);)t=t.leftSibling;t.isFirstSibling||(t=t.leftSibling),i=!0}else"leftright"===t.type&&(t=t.leftSibling,i=!0);if(i)for(;!t.isFirstSibling&&(t.isFunction||cC(t));)t=t.leftSibling;else{const e=[];for(;!t.isFirstSibling&&(cC(t)||e.length>0);)"mclose"===t.type&&e.unshift(t.value),"mopen"===t.type&&e.length>0&&t.value===cx[e[0]]&&e.shift(),t=t.leftSibling}return n===t?-1:e.offsetOf(t)}(e),c>=0&&(l["@"]=e.getValue(c,e.position,"latex"))),l[0]||(l[0]=l["?"]);let u=!1;const h=e=>(u=!0,l[e]);let[d,p]=aC(e,t,h,n);if(!p)return!1;const f=1===p.length&&"genfrac"===p[0].type;f&&c>=0&&"function"==typeof e.mathfield.options.isImplicitFunction&&e.mathfield.options.isImplicitFunction(e.at(e.position).command)?(l["@"]=l["?"],u=!1,[d,p]=aC(e,t,h,n)):c>=0&&e.deleteAtoms([c,e.position]);const{parent:g}=e.at(e.position),m=g.hasEmptyBranch("body");if(f&&"latex"!==d&&e.mathfield.options.removeExtraneousParentheses&&g instanceof Ox&&"("===g.leftDelim&&m){const e=g.parent,t=g.parentBranch;e.removeChild(g),e.setChildren(p,t)}const v=e.at(e.position);v.parent.addChildrenAfter(p,v),"latex"===d&&"string"==typeof t&&"root"===(null==g?void 0:g.type)&&m&&!u&&(g.verbatimLatex=t),e.silenceNotifications=s;const y=p[p.length-1];if("placeholder"===n.selectionMode){const t=p.flatMap((e=>[e,...e.children])).find((e=>"placeholder"===e.type));if(t){const n=e.offsetOf(t);e.setSelection(n-1,n),e.announce("move")}else y&&(e.position=e.offsetOf(y))}else"before"===n.selectionMode||("after"===n.selectionMode?y&&(e.position=e.offsetOf(y)):"item"===n.selectionMode&&e.setSelection(e.anchor,e.offsetOf(y)));return e.contentDidChange({data:o,inputType:"insertText"}),e.silenceNotifications=a,!0}};function uC(e){return{value:e.model.getValue(),selectionIsCollapsed:e.model.selectionIsCollapsed,canUndo:e.canUndo(),canRedo:e.canRedo(),style:e.selectionStyle,mode:e.model.mode}}new class extends Zw{constructor(){super("text")}onPaste(e,t){if(!t)return!1;const n="string"==typeof t?t:t.getData("text/plain");return!(!n||!e.model.contentWillChange({inputType:"insertFromPaste",data:n}))&&(e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,n)&&(e.model.contentDidChange({inputType:"insertFromPaste"}),e.startRecording(),e.snapshot("paste"),yk(e)),e.startRecording(),!0)}insert(e,t,n={}){if(!e.contentWillChange({data:t,inputType:"insertText"}))return!1;n.insertionMode||(n.insertionMode="replaceSelection"),n.selectionMode||(n.selectionMode="placeholder"),n.format||(n.format="auto");const{silenceNotifications:i}=e;n.silenceNotifications&&(e.silenceNotifications=!0);const r=e.silenceNotifications;e.silenceNotifications=!0,"replaceSelection"!==n.insertionMode||e.selectionIsCollapsed?"replaceAll"===n.insertionMode?(e.root.setChildren([],"body"),e.position=0):"insertBefore"===n.insertionMode?e.collapseSelection("backward"):"insertAfter"===n.insertionMode&&e.collapseSelection("forward"):e.deleteAtoms(Lw(e.selection));const o=function(e,t){return e=e.replace(/\\/g,"\\textbackslash "),e=e.replace(/#/g,"\\#"),e=e.replace(/\$/g,"\\$"),e=e.replace(/%/g,"\\%"),e=e.replace(/&/g,"\\&"),e=e.replace(/_/g,"\\_"),e=e.replace(/{/g,"\\textbraceleft "),e=e.replace(/}/g,"\\textbraceright "),e=e.replace(/lbrace/g,"\\textbraceleft "),e=e.replace(/rbrace/g,"\\textbraceright "),e=e.replace(/\^/g,"\\textasciicircum "),e=e.replace(/~/g,"\\textasciitilde "),e=e.replace(/£/g,"\\textsterling "),Gx(e,{context:t,parseMode:"text"})}(t,e.mathfield.context);if(a_(o,n.style),!o)return!1;const a=e.at(e.position),s=a.parent.addChildrenAfter(o,a);return e.silenceNotifications=r,"before"===n.selectionMode||("item"===n.selectionMode?e.setSelection(e.anchor,e.offsetOf(s)):s&&(e.position=e.offsetOf(s))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=i,!0}};var hC=20,dC=(e,t)=>`\n \n \n \n \n `,pC=(e,t)=>`\n \n \n \n \n `,fC=(e,t,n)=>`\n \n \n \n \n \n `,gC=`\n\n \n \n \n ${fC(104,152,0)}\n \n \n ${fC(104,56,180)}\n \n \n ${fC(152,104,-90)}\n \n \n ${fC(56,104,90)}\n \n \n\n \n ${dC(56,4)}\n \n \n ${pC(104,4)}\n \n \n ${dC(152,4)}\n \n \n ${dC(4,56)}\n \n \n ${pC(4,104)}\n \n \n ${dC(4,152)}\n \n`,mC=e=>`\n\n \n \n \n \n \n \n`,vC={matrix:e=>`\n\n \n \n \n `,pmatrix:e=>`\n\n \n \n \n \n \n `,bmatrix:e=>`\n\n \n \n \n \n \n \n`,Bmatrix:mC,vmatrix:e=>`\n\n \n \n \n \n \n \n`,Vmatrix:e=>`\n\n \n \n \n \n \n \n \n \n`},yC={cases:e=>`\n\n \n \n \n \n \n \n`,rcases:e=>`\n\n \n \n \n \n \n \n`,Bmatrix:mC};function bC(e){var t,n;const i=null==(t=e.model.parentEnvironment)?void 0:t.array;if(!i)return;let r=0;i.forEach((e=>{(!r||e.length>r)&&(r=e.length)}));let o,a=document.getElementById("mathlive-environment-popover");a||(a=rk("mathlive-environment-popover"),ox("environment-popover"),ox("core"),a.setAttribute("aria-hidden","true"));const s=a.querySelector(".MLEP__environment-controls");s?o=s:(o=document.createElement("div"),a.innerHTML="",a.appendChild(o)),o.className="MLEP__environment-controls",o.style.display="flex",o.style.width="100%",o.style.height="100%",o.style.boxSizing="border-box",o.innerHTML=gC;let l=[],c="";const u=e.model.parentEnvironment.environmentName;if(Mx(u)){const e=function(e){return e.replace("*","")}(u);c=vC[e]("active");const t=vC,{[e]:n}=t,i=ap(t,[op(e)]);l=Object.values(i).map((e=>e("inactive")))}else if(function(e){return Cx.includes(e)}(u)){const e=function(e){return"dcases"===e?"cases":e}(u);c=yC[e]("active");const t=yC,{[e]:n}=t,i=ap(t,[op(e)]);l=Object.values(i).map((e=>e("inactive")))}else(function(e){return Px.includes(e)})(u)&&(c=vC.matrix("active"),l=Object.values(yC).map((e=>e("inactive"))));const h=document.createElement("div");h.className="MLEP__environment-delimiter-controls",h.style.display="flex",h.style.flexDirection="column",h.innerHTML=`\n
    \n ${c}\n ${l.join("")}\n
    `,c&&o.appendChild(h);o.querySelectorAll("[data-command]").forEach((t=>{const n=t.dataset.command;let i=n;try{i=JSON.parse(n)}catch(e){}t.addEventListener("mousedown",(e=>e.preventDefault())),i&&t.addEventListener("click",(()=>e.executeCommand(i)))}));const d=null==(n=e.field)?void 0:n.getBoundingClientRect();d&&(a.style.top=`${window.scrollY+(d.top-a.clientHeight-15)}px`,a.style.left=`${d.left+20}px`,a.classList.add("is-visible"))}function wC(){const e=document.getElementById("mathlive-environment-popover");null==e||e.classList.remove("is-visible")}function xC(e){if(!e.hasFocus())return;let t=!1;if("math"===e.model.mode){const i=e.model.parentEnvironment;if((null==i?void 0:i.array)&&(n=i.environmentName,Ex.concat(Px).concat(Cx).concat(_x).includes(n))){const n=e.options.environmentPopoverPolicy;t="auto"===n||"on"===n}}var n;t?bC(e):wC()}function SC(e){const t=getComputedStyle(e).direction;return"ltr"===t||"rtl"===t?t:"ltr"}function kC(e,t,n){return"left"===t||"leading"===t&&"ltr"===n||"trailing"===t&&"rtl"===n?e.left:e.right}function _C(e,t,n,i){return"middle"===n?e-t/2:"start"===n&&"rtl"===i||"end"===n&&"ltr"===i||"top"===n||"right"===n?Math.max(0,e-t):e}function CC(e){return"submenu"in e}function PC(e){return"type"in e&&"command"===e.type||"onMenuSelect"in e||"id"in e}function EC(e){return"type"in e&&"divider"===e.type}function MC(e){return"type"in e&&"heading"===e.type}var LC={};function AC(e){let t=LC[e];if(!t){let n;switch(e){case"checkmark":n='';break;case"trailing-chevron":n='';break;case"mixedmark":n=''}if(n){const i=document.createElement("template");i.innerHTML=n,LC[e]=i,t=i}}if(t){if("content"in t)return t.content.cloneNode(!0);const e=document.createElement("svg");return e.innerHTML=t.innerHTML,e}}var TC=class{constructor(e,t){var n;this._element=null,this.parentMenu=t,this._declaration=e,CC(e)?(this.type="submenu",this.submenu=new NC(e.submenu,{parentMenu:t,submenuClass:e.submenuClass,columnCount:e.columnCount})):this.type=null!=(n=e.type)?n:"command",this.hasCheck=PC(e)&&void 0!==e.checked}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var e,t;null==(e=this._abortController)||e.abort(),this._abortController=void 0,null==(t=this._element)||t.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var e;return null!=(e=this._label)?e:""}set label(e){void 0===e&&(e=""),e!==this._label&&(this._label=e,this.dirty=!0)}get visible(){return this._visible}set visible(e){e!==this._visible&&(this._visible=e,this.dirty=!0)}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.element&&(e?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(e){this._checked=e,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(e){e!==this._tooltip&&(this._tooltip=e,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){e!==this._ariaLabel&&(this._ariaLabel=e,this.dirty=!0)}get active(){var e,t;return null!=(t=null==(e=this.element)?void 0:e.classList.contains("active"))&&t}set active(e){this.element&&this.element.classList.toggle("active",e)}updateState(e){var t,n,i;const r=this._declaration;if(EC(r))return this.enabled=!1,void(this.checked=!1);MC(r)&&(this.enabled=!1,this.checked=!1,this.visible=!0),PC(r)&&(this.checked=PC(r)&&null!=(t=DC(r.checked,e))&&t),(PC(r)||CC(r))&&(this.enabled=null==(n=DC(r.enabled,e))||n,this.visible=null==(i=DC(r.visible,e))||i,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(e),this.submenu.visible||(this.visible=!1))),(PC(r)||MC(r)||CC(r))&&(this.label=DC(r.label,e),this.tooltip=DC(r.tooltip,e),this.ariaLabel=DC(r.ariaLabel,e)),this._element&&this.updateElement()}set dirty(e){console.assert(!0===e),e&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const e=this.element;e.textContent="",this.enabled?e.removeAttribute("aria-disabled"):e.setAttribute("aria-disabled","true"),!0===this.checked?(e.setAttribute("aria-checked","true"),e.append(AC("checkmark"))):"mixed"===this.checked?(e.setAttribute("aria-checked","mixed"),e.append(AC("mixedmark"))):e.removeAttribute("aria-checked"),this.ariaLabel&&e.setAttribute("aria-label",this.ariaLabel);const t=document.createElement("span");if(t.className=this.parentMenu.hasCheck?"label indent":"label","heading"===this.type&&t.classList.add("heading"),t.innerHTML=this.label,e.append(t),this._tooltip&&e.setAttribute("data-tooltip",this._tooltip),PC(this._declaration)&&this._declaration.keyboardShortcut){const t=document.createElement("kbd");t.innerHTML=zS(this._declaration.keyboardShortcut),e.append(t)}"submenu"===this.type&&e.append(AC("trailing-chevron"))}get element(){if(this._element)return this._element;if(EC(this._declaration)){const e=document.createElement("li");return e.setAttribute("part","menu-divider"),e.setAttribute("role","divider"),this._element=e,e}const e=document.createElement("li");this._element=e,(PC(this._declaration)||MC(this._declaration)||CC(this._declaration))&&this._declaration.class&&(e.className=this._declaration.class),e.setAttribute("part","menu-item"),e.setAttribute("tabindex","-1"),this.hasCheck?e.setAttribute("role","menuitemcheckbox"):e.setAttribute("role","menuitem"),"submenu"===this.type&&(e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false"));const t=this.abortController.signal;return e.addEventListener("pointerenter",this,{signal:t}),e.addEventListener("pointerleave",this,{signal:t}),e.addEventListener("pointerup",this,{signal:t}),e.addEventListener("click",this,{signal:t}),this._element}dispatchSelect(){if(!PC(this._declaration))return;const e=new CustomEvent("menu-select",{cancelable:!0,bubbles:!0,detail:{modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data}});this.parentMenu.dispatchEvent(e)&&"function"==typeof this._declaration.onMenuSelect&&this._declaration.onMenuSelect({modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data})}handleEvent(e){var t;if(this.visible&&this.enabled){if("click"===e.type)return"modal"===this.rootMenu.state&&this.select(),e.stopPropagation(),void e.preventDefault();if("pointerenter"===e.type){const n=e;return this.rootMenu.cancelDelayedOperation(),void(this.parentMenu.isSubmenuOpen&&(null==(t=this.parentMenu.activeMenuItem)?void 0:t.movingTowardSubmenu(n))?this.rootMenu.scheduleOperation((()=>{this.parentMenu.activeMenuItem=this,this.openSubmenu()})):(this.parentMenu.activeMenuItem=this,this.openSubmenu({withDelay:!0})))}if("pointerleave"!==e.type)return"pointerup"===e.type?("modal"!==this.rootMenu.state&&this.select(),e.stopPropagation(),void e.preventDefault()):void 0;this.rootMenu.activeSubmenu===this.parentMenu&&(this.parentMenu.activeMenuItem=null)}}select(){this.rootMenu.cancelDelayedOperation(),"submenu"!==this.type?(this.active=!1,setTimeout((()=>{this.active=!0,setTimeout((()=>{this.rootMenu.hide(),this.dispatchSelect()}),80)}),80)):this.openSubmenu()}openSubmenu(e){var t;if("submenu"!==this.type||!this.element)return;if(null!=(t=null==e?void 0:e.withDelay)&&t)return void this.rootMenu.scheduleOperation((()=>this.openSubmenu()));const n=this.element.getBoundingClientRect(),i=SC(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:kC(n,"trailing",i),y:n.top-4},alternateLocation:{x:kC(n,"leading",i),y:n.top-4}})}movingTowardSubmenu(e){if(!this.element)return!1;if("submenu"!==this.type)return!1;const t=this.rootMenu.lastMoveEvent;if(!t)return!1;const n=e.timeStamp-t.timeStamp;if(n>500)return!1;const i=e.clientX-t.clientX;var r,o,a;if((r=i,o=t.clientY-e.clientY,a=n,Math.hypot(r,o)/a)<=.2)return!1;let s="right";if(this.submenu.element){const e=this.submenu.element.getBoundingClientRect(),t=this.element.getBoundingClientRect();e.left0:i<0}};function DC(e,t){return void 0===e||"function"!=typeof e?e:(null!=t||(t={alt:!1,control:!1,shift:!1,meta:!1}),e(t))}var NC=class e{constructor(e,t){var n,i;this._element=null,this._activeMenuItem=null,this._dirty=!0,this.parentMenu=null!=(n=null==t?void 0:t.parentMenu)?n:null,this._submenuClass=null==t?void 0:t.submenuClass,this.columnCount=null!=(i=null==t?void 0:t.columnCount)?i:1,this.isSubmenuOpen=!1,this.menuItems=e}get children(){return this._menuItems}set menuItems(e){const t=this.parentMenu;this.dispose(),this.parentMenu=t,e=[...e],this._menuItems=e.map((e=>e.onCreate?e.onCreate(e,this):new TC(e,this))),this.hasCheck=void 0,this.dirty=!0}dispose(){var e;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),null==(e=this._menuItems)||e.forEach((e=>e.dispose())),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(e){if("wheel"===e.type&&this._element){const t=e;this._element.scrollBy(0,t.deltaY),e.stopPropagation()}}dispatchEvent(e){return this.rootMenu.dispatchEvent(e)}get rootMenu(){return this.parentMenu.rootMenu}updateState(e){var t,n,i;this._menuItems.forEach((t=>t.updateState(e)));const r=this.hasCheck;let o;this.hasCheck=this._menuItems.some((e=>e.visible&&e.hasCheck)),this.hasCheck!==r&&this._menuItems.forEach((t=>t.updateState(e)));let a=0;for(const e of this._menuItems)"heading"===e.type?(o&&0===a&&(o.visible=!1),o=e,a=0):"divider"===e.type&&o?(o.visible=a>0,o=void 0,a=0):o&&e.visible&&(a+=1);o&&(o.visible=a>0);let s=!0;for(const e of this._menuItems)"divider"===e.type?(e.visible=!s,s=!0):e.visible&&(s=!1);(null==(t=this.activeMenuItem)?void 0:t.visible)||(this.activeMenuItem=null),(null==(n=this.activeMenuItem)?void 0:n.enabled)||"submenu"!==(null==(i=this.activeMenuItem)?void 0:i.type)||this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some((e=>"divider"!==e.type&&e.visible&&e.enabled))}get visible(){return this.updateIfDirty(),this._menuItems.some((e=>"divider"!==e.type&&e.visible))}set dirty(e){console.assert(!0===e),this._dirty!==e&&e&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var e;if(this._element){this._element.textContent="";for(const{element:e,visible:t}of this._menuItems)e&&t&&this._element.append(e);null==(e=this._element.querySelector("li:first-of-type"))||e.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const e=document.createElement("menu");e.setAttribute("role","menu"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-orientation","vertical"),e.setAttribute("part","ui-menu-container"),this._submenuClass&&e.classList.add(this._submenuClass),e.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const t=this._abortController.signal;return e.addEventListener("focus",this,{signal:t}),e.addEventListener("wheel",this,{passive:!0,signal:t}),this._element=e,this.updateElement(),e}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(e){var t,n,i,r;if(this.rootMenu.cancelDelayedOperation(),e!==this._activeMenuItem){if(this.activeMenuItem){const e=this.activeMenuItem;e.active=!1,null==(t=e.submenu)||t.hide()}if(null!=(n=null==e?void 0:e.visible)&&!n)return void(this._activeMenuItem=null);this._activeMenuItem=e,e&&(e.active=!0)}e?null==(i=e.element)||i.focus({preventScroll:!0}):null==(r=this._element)||r.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let e=0,t=!1;const n=this._menuItems;for(;!t&&e<=n.length-1;){const i=n[e];t="divider"!==i.type&&i.visible&&i.enabled,e+=1}return t?n[e-1]:null}get lastMenuItem(){this.updateIfDirty();const e=this._menuItems;let t=e.length-1,n=!1;for(;!n&&t>=0;){const i=e[t];n="divider"!==i.type&&i.visible&&i.enabled,t-=1}return n?e[t+1]:null}nextMenuItem(e){if(0===e)return this._activeMenuItem;if(!this._activeMenuItem)return e>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const t=this._menuItems.indexOf(this.firstMenuItem),n=this._menuItems.indexOf(this.lastMenuItem);let i=this._menuItems.indexOf(this._activeMenuItem),r=1;for(;i>=t&&i<=n;){i+=e>0?1:-1;const t=this._menuItems[i];if(!t)break;if(t.visible&&t.enabled){if(r===Math.abs(e))return this._menuItems[i];r+=1}}return e>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(e){this.updateIfDirty();const t=this._menuItems.filter((e=>e.visible&&e.enabled)),n=t.indexOf(e);return n<0?-1:n%this.columnCount}static get collator(){return e._collator||(e._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),e._collator}findMenuItem(t){var n;this.updateIfDirty();const i=this._menuItems.filter((e=>"divider"!==e.type&&e.visible&&e.enabled));if(0===i.length)return null;const r=Math.max(...i.map((e=>e.label.length)))-t.length;if(r<0)return null;let o=null,a=0;for(;a0===e.collator.compare(t,n.label.substring(a,t.length)))))?n:null,a++;return o}show(e){return!(!this.visible||!e.container)&&(this.updateElement(),e.container.appendChild(this.element),hp()&&(this.element.popover="manual",this.element.showPopover()),e.location&&function(e,t){var n,i,r;const o=null!=(n=SC(e))?n:"ltr";e.style.position="fixed",e.style.left="",e.style.top="",e.style.right="",e.style.bottom="",e.style.height="",e.style.width="";const a=e.getBoundingClientRect(),s=Number.isFinite(t.maxHeight)?Math.min(t.maxHeight,window.innerHeight):window.innerHeight;let l=Math.min(s,null!=(i=t.height)?i:a.height),c=_C(t.location.y,l,t.verticalPos,o);c+l>window.innerHeight-8&&(t.alternateLocation?(c=_C(t.alternateLocation.y,l,t.verticalPos,o),c+l>window.innerHeight-8&&(c=void 0)):c=void 0),Number.isFinite(c)||(c=Math.max(8,window.innerHeight-8-l),8+l>window.innerHeight-8&&(e.style.bottom="8px")),l=Math.min(c+l,window.innerHeight-8)-c;const u=Number.isFinite(t.maxWidth)?Math.min(t.maxWidth,window.innerWidth):window.innerWidth;let h=Math.min(u,null!=(r=t.width)?r:a.width),d=_C(t.location.x,h,t.horizontalPos,o);d+h>window.innerWidth-8&&(t.alternateLocation?(d=function(e,t,n,i){return"middle"===n?e-t/2:"start"===n&&"ltr"===i||"end"===n&&"rtl"===i||"top"===n||"right"===n?e:e-t}(t.alternateLocation.x,h,t.verticalPos,o),d+h>window.innerWidth-8&&(d=void 0)):d=void 0),Number.isFinite(d)||(d=Math.max(8,window.innerWidth-8-h),8+h>window.innerWidth-8&&(e.style.right="8px")),h=Math.min(d+h,window.innerWidth-8)-d,"rtl"===o?e.style.right=`${Math.ceil(window.innerWidth-d-h).toString()}px`:e.style.left=`${Math.ceil(d).toString()}px`,e.style.top=`${Math.ceil(c).toString()}px`,l!==a.height&&(e.style.height=`${Math.ceil(l).toString()}px`),h!==a.width&&(e.style.width=`${Math.ceil(h).toString()}px`)}(this.element,{location:e.location,alternateLocation:e.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var e,t,n,i,r;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),hp()&&(null==(e=this._element)?void 0:e.popover)&&this.element.hidePopover(),null==(n=null==(t=this.parentMenu)?void 0:t.element)||n.focus(),null==(r=null==(i=this._element)?void 0:i.parentNode)||r.removeChild(this._element)}set openSubmenu(e){var t,n,i,r;const o=null!==e;"submenu"===(null==(t=this.activeMenuItem)?void 0:t.type)&&(null==(n=this.activeMenuItem.element)||n.setAttribute("aria-expanded",o.toString())),null==(r=null==(i=this.activeMenuItem)?void 0:i.element)||r.classList.toggle("is-submenu-open",o),this.isSubmenuOpen=o}},IC=class e extends NC{constructor(e,t){var n;super(e),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=null!=(n=null==t?void 0:t.host)?n:null,this.isDynamic=e.some(RC),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(e){(function(e,t){return!(!e&&t||e&&!t||e&&t&&(e.alt!==t.alt||e.control!==t.control||e.shift!==t.shift||e.meta!==t.meta))})(this._modifiers,e)||(this._modifiers=e,this.dirty=!0)}get activeSubmenu(){let e=this;for(;e.isSubmenuOpen;)e=e.activeMenuItem.submenu;return e}set dirty(e){this._updating||(console.assert(!0===e),this._dirty!==e&&(this._dirty=!0,e&&setTimeout((()=>{this.updateState(this.modifiers),this.updateElement()}))))}updateState(e){this._updating=!0,this.modifiers=null!=e?e:this.modifiers,super.updateState(this.modifiers),this._updating=!1}handleKeyupEvent(e){this.isDynamic&&(this.modifiers=$S(e)),e.stopImmediatePropagation()}handleKeydownEvent(e){var t,n,i;if("Tab"===e.key||"Escape"===e.key)return void this.hide();this.isDynamic&&(this.modifiers=$S(e));let r=!0;const o=this.activeSubmenu,a=o.activeMenuItem;switch(e.key){case" ":case"Space":case"Return":case"Enter":null==a||a.select($S(e));break;case"ArrowRight":if("submenu"===(null==a?void 0:a.type))a.select($S(e)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(a){const e=null!=(t=o.getMenuItemColumn(a))?t:-1;if(e>=0&&e<(null!=(n=o.columnCount)?n:1)-1){const e=o.nextMenuItem(1);e&&(o.activeMenuItem=e)}}else o.activeMenuItem=o.firstMenuItem;break;case"ArrowLeft":if(o===this.rootMenu)a||(o.activeMenuItem=o.firstMenuItem);else{if((a&&null!=(i=o.getMenuItemColumn(a))?i:-1)<=0||!a){o.hide();const e=o.parentMenu.activeMenuItem;if(e){const{element:t}=e;null==t||t.focus(),null==t||t.classList.remove("is-submenu-open")}}else{const e=o.nextMenuItem(-1);e&&(o.activeMenuItem=e)}}break;case"ArrowDown":o.activeMenuItem=o.nextMenuItem(o.columnCount);break;case"ArrowUp":o.activeMenuItem=o.nextMenuItem(-o.columnCount);break;case"Home":case"PageUp":o.activeMenuItem=o.firstMenuItem;break;case"End":case"PageDown":o.activeMenuItem=o.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const e=o.findMenuItem(this.typingBuffer);e&&(o.activeMenuItem=e),this.typingBufferResetTimer=setTimeout((()=>{this.typingBuffer=""}),500)}break;default:if(ZS(e)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=e.key;const t=o.findMenuItem(this.typingBuffer);t&&(o.activeMenuItem=t),this.typingBufferResetTimer=setTimeout((()=>{this.typingBuffer=""}),500)}else r=!1}r&&(e.preventDefault(),e.stopPropagation())}handleEvent(e){if("keydown"===e.type)this.handleKeydownEvent(e);else if("keyup"===e.type)this.handleKeyupEvent(e);else if("pointermove"===e.type)this.lastMoveEvent=e;else if("pointerup"===e.type&&e.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":"modal"===this.state&&this.hide();else if("contextmenu"===e.type)return e.preventDefault(),void e.stopPropagation();super.handleEvent(e)}dispatchEvent(e){return!this._host||this._host.dispatchEvent(e)}get scrim(){return GS.element}connectScrim(e){const t=this.scrim;t.addEventListener("pointerup",this),t.addEventListener("contextmenu",this),t.addEventListener("keydown",this),t.addEventListener("keyup",this),t.addEventListener("pointermove",this),GS.open({root:e,onDismiss:()=>this.hide()})}disconnectScrim(){const e=this.scrim;e.removeEventListener("pointerup",this),e.removeEventListener("contextmenu",this),e.removeEventListener("keydown",this),e.removeEventListener("keyup",this),e.removeEventListener("pointermove",this),"open"===GS.state&&GS.scrim.close()}get rootMenu(){return this}show(e){return this._onDismiss=null==e?void 0:e.onDismiss,(null==e?void 0:e.modifiers)&&(this.modifiers=e.modifiers),this.updateState(),this.connectScrim(null==e?void 0:e.target),super.show(rp(ip({},e),{container:this.scrim}))?(this._openTimestamp=Date.now(),this.state="open",!0):(this.disconnectScrim(),!1)}hide(){this.cancelDelayedOperation(),void 0!==this.state&&("closed"!==this.state&&(this.activeMenuItem=null,GS.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(t){this.cancelDelayedOperation();const n=e.SUBMENU_DELAY;n<=0?t():this.hysteresisTimer=setTimeout((()=>{this.hysteresisTimer=0,t()}),n)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};IC.SUBMENU_DELAY=120;var BC=IC;function RC(e){return!EC(e)&&("function"==typeof e.label||"function"==typeof e.ariaLabel||"function"==typeof e.tooltip||(!(!PC(e)&&!CC(e)||"function"!=typeof e.enabled&&"function"!=typeof e.visible)||(!(!PC(e)||"function"!=typeof e.checked)||!!CC(e)&&e.submenu.some(RC))))}var OC=class{};function FC(e){return new Promise(((t,n)=>{const i=jS(e);i||t(!1);let r=i;const o=setTimeout((()=>{var e,n;a.abort(),t((e=r,n=i,Math.hypot(n.x-e.x,n.y-e.y){if("pointerup"===e.type||"pointercancel"===e.type)clearTimeout(o),a.abort(),t(!1);else if("pointermove"===e.type){const t=jS(e);t&&(r=t)}}),{passive:!0,signal:s})}))}async function zC(e,t,n){if("contextmenu"===e.type){const i=e;if(n.show({target:t,location:jS(i),modifiers:$S(i)}))return e.preventDefault(),e.stopPropagation(),!0}if("keydown"===e.type){const i=e;if("ContextMenu"===i.code||"F10"===i.code&&i.shiftKey){const r=null==t?void 0:t.getBoundingClientRect();if(r&&n.show({target:t,location:{x:Math.ceil(r.left+r.width/2),y:Math.ceil(r.top+r.height/2)},modifiers:$S(i)}))return e.preventDefault(),e.stopPropagation(),!0}}if("pointerdown"===e.type&&"mouse"!==e.pointerType&&0===e.button){let i=e.target;for(;i&&t!==i;)i=i.parentNode;if(!i)return!1;if(!n.visible)return!1;const r=jS(e);if(await FC(e))return"closed"===n.state&&(n.show({target:t,location:r}),!0)}return!1}OC.DELAY=300,OC.MAX_DISTANCE=10;var jC={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};qp(Object.keys(jC),"{body:auto}",{createAtom:e=>new sx(rp(ip({},e),{body:Ap(e.args[0]),accentChar:jC[e.command.slice(1)]}))}),qp(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:e=>{const t=Up(Ap(e.args[0]));return new sx(rp(ip({},e),{body:Ap(e.args[0]),svgAccent:e.command.slice(1)+(t.length>5?"4":["1","1","2","2","3","3"][t.length])}))}}),qp(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:e=>new sx(rp(ip({},e),{body:Ap(e.args[0]),svgAccent:"overarc"}))}),qp(["underarc","underparen"],"{body:auto}",{createAtom:e=>new aS(rp(ip({},e),{body:Ap(e.args[0]),svgBelow:"underarc"}))}),qp("utilde","{body:auto}",{createAtom:e=>{const t=Ap(e.args[0]),n=Up(t),i="widetilde"+(n.length>5?"4":["1","1","2","2","3","3"][n.length]);return new aS(rp(ip({},e),{body:t,svgBelow:i,boxType:ew(t)}))}}),qp("^","{:string}",{createAtom:e=>{var t;return new _w(rp(ip({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&null!=(t={a:"â",e:"ê",i:"î",o:"ô",u:"û",A:"Â",E:"Ê",I:"Î",O:"Ô",U:"Û"}[e.args[0]])?t:"^"}))}}),qp("`","{:string}",{createAtom:e=>{var t;return new _w(rp(ip({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&null!=(t={a:"à",e:"è",i:"ì",o:"ò",u:"ù",A:"À",E:"È",I:"Ì",O:"Ò",U:"Ù"}[e.args[0]])?t:"`"}))}}),qp("'","{:string}",{createAtom:e=>{var t;return new _w(rp(ip({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&null!=(t={a:"á",e:"é",i:"í",o:"ó",u:"ú",A:"Á",E:"É",I:"Í",O:"Ó",U:"Ú"}[e.args[0]])?t:"'"}))}}),qp('"',"{:string}",{createAtom:e=>{var t,n;return new _w(rp(ip({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(null==(t=e.args)?void 0:t[0])?null!=(n={a:"ä",e:"ë",i:"ï",o:"ö",u:"ü",A:"Ä",E:"Ë",I:"Ë",O:"Ö",U:"Ü"}[e.args[0]])?n:'"'+e.args[0]:'"'}))}}),qp(".","{:string}",{createAtom:e=>{var t,n;return new _w(rp(ip({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(null==(t=e.args)?void 0:t[0])?null!=(n={a:"ȧ",e:"ė",i:"̇i",o:"ȯ",u:"̇u",A:"Ȧ",E:"Ė",I:"İ",O:"Ȯ",U:"̇U"}[e.args[0]])?n:"."+e.args[0]:"."}))}}),qp("=","{:string}",{createAtom:e=>{var t,n;return new _w(rp(ip({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(null==(t=e.args)?void 0:t[0])?null!=(n={a:"ā",e:"ē",i:"ī",o:"ō",u:"ū",A:"Ā",E:"Ē",I:"Ī",O:"Ō",U:"Ū"}[e.args[0]])?n:"="+e.args[0]:"="}))}}),qp("~","{:string}",{createAtom:e=>{var t;return new _w(rp(ip({type:"mord"},e),{isFunction:!1,limits:"adjacent",value:e.args[0]&&null!=(t={n:"ñ",N:"Ñ",a:"ã",o:"õ",A:"Ã",O:"Õ"}[e.args[0]])?t:"´"}))}}),qp("c","{:string}",{createAtom:e=>{var t;return new _w(rp(ip({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&null!=(t={c:"ç",C:"Ç"}[e.args[0]])?t:""}))}}),qp("enclose","{notation:string}[style:string]{body:auto}",{createAtom:e=>{var t,n;const i=e.args,r={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:null!=(t=e.style)?t:{}};if(i[1]){const e=i[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const t of e){const e=t.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(e)r.strokeWidth=e[1],r.strokeStyle=e[2],r.strokeColor=e[3];else{const e=t.match(/\s*([a-z]*)\s*=\s*"(.*)"/);e&&("mathbackground"===e[1]?r.backgroundcolor=e[2]:"mathcolor"===e[1]?r.strokeColor=e[2]:"padding"===e[1]?r.padding=e[2]:"shadow"===e[1]&&(r.shadow=e[2]))}}"dashed"===r.strokeStyle?r.svgStrokeStyle="5,5":"dotted"===r.strokeStyle&&(r.svgStrokeStyle="1,5")}r.borderStyle=`${r.strokeWidth} ${r.strokeStyle} ${r.strokeColor}`;const o={};return(null!=(n=i[0])?n:"").split(/[, ]/).filter((e=>e.length>0)).forEach((e=>{o[e.toLowerCase()]=!0})),new Qx(e.command,Ap(i[2]),o,r)}}),qp("cancel","{body:auto}",{createAtom:e=>{var t;return new Qx(e.command,Ap(e.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:null!=(t=e.style)?t:{}})}}),qp("bcancel","{body:auto}",{createAtom:e=>{var t;return new Qx(e.command,Ap(e.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:null!=(t=e.style)?t:{}})}}),qp("xcancel","{body:auto}",{createAtom:e=>{var t;return new Qx(e.command,Ap(e.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:null!=(t=e.style)?t:{}})}}),qp(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:e=>{var t;return new aS(rp(ip({},e),{body:Ap(null==(t=e.args)?void 0:t[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:e.command.slice(1)}))}}),qp("overbrace","{:auto}",{createAtom:e=>new aS(rp(ip({},e),{body:Ap(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:e.command.slice(1)}))}),qp(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:e=>new aS(rp(ip({},e),{body:Ap(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:e.command.slice(1)}))}),qp(["underbrace"],"{:auto}",{createAtom:e=>new aS(rp(ip({},e),{body:Ap(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:e.command.slice(1)}))}),qp(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:e=>{var t,n,i,r,o;return new aS(rp(ip({},e),{svgBody:e.command.slice(1),above:0===(null==(n=Ap(null==(t=e.args)?void 0:t[1]))?void 0:n.length)?void 0:Ap(null==(i=e.args)?void 0:i[1]),below:null!=(o=Ap(null==(r=e.args)?void 0:r[0]))?o:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(e,t)=>e.command+(e.hasEmptyBranch("below")?"":`[${e.belowToLatex(t)}]`)+`{${e.aboveToLatex(t)}}${e.supsubToLatex(t)}`}),qp(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:e=>new vS(e.command.slice(1),rp(ip({},e),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),qp(["liminf","limsup"],"",{ifMode:"math",createAtom:e=>new vS({"\\liminf":"lim inf","\\limsup":"lim sup"}[e.command],rp(ip({},e),{limits:"over-under",variant:"main"}))}),qp(["lim","mod"],"",{ifMode:"math",createAtom:e=>new vS(e.command.slice(1),rp(ip({},e),{limits:"over-under",variant:"main"}))}),qp(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:e=>new vS(e.command.slice(1),rp(ip({},e),{limits:"over-under",isFunction:!0,variant:"main"}))}),qp(["ang"],"{:math}",{ifMode:"math",createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[0])})),serialize:(e,t)=>`\\ang{${e.bodyToLatex(t)}}`,render:(e,t)=>{const n=e.createBox(t),i=n.caret;n.caret=void 0;const r=new nw("°",{style:rp(ip({},e.style),{variant:"normal",variantStyle:"up"})});return new nw([n,r],{type:"inner",isSelected:e.isSelected,caret:i})}}),qp("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:e=>new cS(rp(ip({},e),{body:Ap(e.args[1]),index:e.args[0]?Ap(e.args[0]):void 0}))}),qp(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:e=>{const t=ip({},e),n=e.command,i=e.args;switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":t.hasBarLine=!0;break;case"\\atopfrac":t.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":t.hasBarLine=!1,t.leftDelim="(",t.rightDelim=")";break;case"\\cfrac":t.hasBarLine=!0,t.continuousFraction=!0}switch(n){case"\\dfrac":case"\\dbinom":t.mathstyleName="displaystyle";break;case"\\tfrac":case"\\tbinom":t.mathstyleName="textstyle"}return new tS(i[0]?Ap(i[0]):[new kx],i[1]?Ap(i[1]):[new kx],t)},serialize:(e,t)=>{const n=e.aboveToLatex(t),i=e.belowToLatex(t);return/^[0-9]$/.test(n)&&/^[0-9]$/.test(i)?`${e.command}${n}${i}`:Gb(e.command,n,i)}}),qp(["brace","brack"],"",{infix:!0,createAtom:e=>new tS(Ap(e.args[0]),Ap(e.args[1]),rp(ip({},e),{hasBarLine:!1,leftDelim:"\\brace"===e.command?"\\lbrace":"\\lbrack",rightDelim:"\\brace"===e.command?"\\rbrace":"\\rbrack"})),serialize:(e,t)=>Kb([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),qp(["over","atop","choose"],"",{infix:!0,createAtom:e=>{let t,n;const i=e.args;return"\\choose"===e.command&&(t="(",n=")"),new tS(Ap(i[0]),Ap(i[1]),rp(ip({},e),{hasBarLine:"\\over"===e.command,leftDelim:t,rightDelim:n}))},serialize:(e,t)=>Kb([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),qp(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:e=>{var t,n;const i=e.args;return new tS(Ap(i[0]),Ap(i[1]),rp(ip({},e),{leftDelim:null!=(t=i[2])?t:".",rightDelim:null!=(n=i[3])?n:".",hasBarLine:!1}))},serialize:(e,t)=>`${e.aboveToLatex(t)} ${e.command}${e.leftDelim}${e.rightDelim}${e.belowToLatex(t)}`}),qp("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:e=>new tS(Ap(e.args[0]),Ap(e.args[1]),rp(ip({},e),{hasBarLine:!0,numerPrefix:"∂",denomPrefix:"∂"}))}),qp(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:e=>new rS({coprod:"∐",bigvee:"⋁",bigwedge:"⋀",biguplus:"⨄",bigcap:"⋂",bigcup:"⋃",intop:"∫",prod:"∏",sum:"∑",bigotimes:"⨂",bigoplus:"⨁",bigodot:"⨀",bigsqcup:"⨆",smallint:"∫"}[e.command.slice(1)],rp(ip({},e),{limits:"auto",variant:"main"}))}),qp("smallint","",{ifMode:"math",createAtom:e=>new vS("∫",rp(ip({},e),{limits:"adjacent",variant:"main"}))});var $C={int:"∫",iint:"∬",iiint:"∭",oint:"∮",oiint:"∯",oiiint:"∰",intclockwise:"∱",varointclockwise:"∲",ointctrclockwise:"∳",intctrclockwise:"⨑",sqcup:"⊔",sqcap:"⊓",uplus:"⊎",wr:"≀",amalg:"⨿",Cap:"⋒",Cup:"⋓",doublecap:"⋒",doublecup:"⋓"};qp(Object.keys($C),"",{ifMode:"math",createAtom:e=>{const t=e.command,n=$C[t.slice(1)];return new rS(n,rp(ip({},e),{limits:"adjacent",variant:{"⋒":"ams","⋓":"ams"}[n]}))}}),qp(["Re","Im"],"",{ifMode:"math",createAtom:e=>new vS({"\\Re":"ℜ","\\Im":"ℑ"}[e.command],rp(ip({},e),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),qp("middle","{:delim}",{ifMode:"math",createAtom:e=>{var t;return new Yx(rp(ip({},e),{delim:null!=(t=e.args[0])?t:"|",size:1}))}}),qp("the","{:value}",{createAtom:e=>new _w(rp(ip({},e),{captureSelection:!0,verbatimLatex:null})),render:(e,t)=>{var n;const i=new ww({parent:t},e.style);let r="";e.isSelected&&(r+=" ML__selected");const o=i.evaluate(e.args[0]);return new nw((null!=(n=gw(o))?n:"").split("").map((t=>new nw(t,{type:"ord",classes:r,mode:e.mode,isSelected:e.isSelected,style:ip({variant:"main"},e.style)}))),{type:"lift",style:e.style,caret:e.caret,isSelected:e.isSelected,classes:r}).wrap(i)},serialize:e=>{var t;return`\\the${null!=(t=gw(e.args[0]))?t:"\\relax"}`}}),qp("mathtip","{:auto}{:math}",{createAtom:e=>new mS(rp(ip({},e),{body:Ap(e.args[0]),tooltip:Ap(e.args[1]),content:"math"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${_w.serialize([e.tooltip],rp(ip({},t),{defaultMode:"math"}))}}`}),qp("texttip","{:auto}{:text}",{createAtom:e=>new mS(rp(ip({},e),{body:Ap(e.args[0]),tooltip:Ap(e.args[1]),content:"text"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${_w.serialize([e.tooltip],rp(ip({},t),{defaultMode:"text"}))}}`}),qp("error","{:math}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[0])})),serialize:(e,t)=>`\\error{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__error"})}),qp("ensuremath","{:math}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(rp(ip({},t),{defaultMode:"math"}))}}`}),qp("color","{:value}",{applyStyle:(e,t,n)=>{var i,r;return{verbatimColor:null!=(i=gw(t[0]))?i:void 0,color:n.toColor(null!=(r=t[0])?r:{string:"red"})}}}),qp("textcolor","{:value}{content:auto*}",{applyStyle:(e,t,n)=>{var i,r;return{verbatimColor:null!=(i=gw(t[0]))?i:void 0,color:n.toColor(null!=(r=t[0])?r:{string:"red"})}}}),qp("boxed","{content:math}",{createAtom:e=>new Nx(rp(ip({},e),{body:Ap(e.args[0]),framecolor:{string:"black"}}))}),qp("colorbox","{:value}{:text*}",{applyStyle:(e,t,n)=>{var i,r;return{verbatimBackgroundColor:null!=(i=gw(t[0]))?i:void 0,backgroundColor:n.toBackgroundColor(null!=(r=t[0])?r:{string:"yellow"})}}}),qp("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:e=>{var t,n;return new Nx(rp(ip({},e),{body:Ap(e.args[2]),framecolor:null!=(t=e.args[0])?t:{string:"blue"},backgroundcolor:null!=(n=e.args[1])?n:{string:"yellow"}}))},serialize:(e,t)=>{var n,i;return t.skipStyles?e.bodyToLatex(rp(ip({},t),{defaultMode:"text"})):Gb(e.command,null!=(n=gw(e.framecolor))?n:"",null!=(i=gw(e.backgroundcolor))?i:"",e.bodyToLatex(rp(ip({},t),{defaultMode:"text"})))}}),qp("bbox","[:bbox]{body:auto}",{createAtom:e=>{var t;const n=e.args[0],i=Ap(e.args[1]);return new Nx(rp(ip({},e),n?{body:i,padding:n.padding,border:n.border,backgroundcolor:null!=(t=n.backgroundcolor)?t:void 0}:{body:i}))},serialize:(e,t)=>{var n,i;if(t.skipStyles)return e.bodyToLatex(t);let r=e.command;if(Number.isFinite(e.padding)||void 0!==e.border||void 0!==e.backgroundcolor){const t=[];e.padding&&t.push(null!=(n=gw(e.padding))?n:""),e.border&&t.push(`border: ${e.border}`),e.backgroundcolor&&t.push(null!=(i=gw(e.backgroundcolor))?i:""),r+=`[${t.join(",")}]`}return Gb(r,e.bodyToLatex(t))}}),qp(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[0])})),render:(e,t)=>{const n=new ww({parent:t,mathstyle:e.command.slice(1)},e.style),i=_w.createBox(n,e.body,{type:"lift"});return e.caret&&(i.caret=e.caret),e.bind(t,i)},serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{${Kb([e.command,e.bodyToLatex(t)])}}`}),qp(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{applyStyle:e=>({fontSize:{"\\tiny":1,"\\scriptsize":2,"\\footnotesize":3,"\\small":4,"\\normalsize":5,"\\large":6,"\\Large":7,"\\LARGE":8,"\\huge":9,"\\Huge":10}[e]})}),qp("fontseries","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var n;return{fontSeries:null!=(n=t[0])?n:"auto"}}}),qp("fontshape","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var n;return{fontShape:null!=(n=t[0])?n:"auto"}}}),qp("fontfamily","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var n;return{fontFamily:null!=(n=t[0])?n:"roman"}}}),qp("selectfont","",{ifMode:"text",applyStyle:()=>({})}),qp("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),qp(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__boldsymbol"})}),qp("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),qp("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),qp("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),qp("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),qp("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),qp("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),qp("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),qp("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),qp("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),qp("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),qp("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),qp("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),qp("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),qp("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),qp("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),qp("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),qp("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),qp("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),qp("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),qp("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),qp("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),qp("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),qp("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),qp("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),qp("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),qp("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),qp("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),qp(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),qp(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),qp("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),qp("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),qp("mbox","{:text}",{ifMode:"math",createAtom:e=>new _w(rp(ip({},e),{type:"mord",body:Ap(e.args[0]),mode:"math"})),serialize:(e,t)=>Gb("\\mbox",e.bodyToLatex(rp(ip({},t),{defaultMode:"text"})))}),qp("text","{:text}",{ifMode:"math",applyMode:"text"}),qp(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[1])})),serialize:(e,t)=>!e.args[0]||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`,render:(e,t)=>{var n;return e.createBox(t,{classes:null!=(n=e.args[0])?n:""})}}),qp(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[1])})),serialize:(e,t)=>{var n;return!(null==(n=e.args)?void 0:n[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var n;const i=e.createBox(t);return i.cssId=null!=(n=e.args[0])?n:"",i}}),qp("htmlData","{data:string}{content:auto}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[1])})),serialize:(e,t)=>{var n;return!(null==(n=e.args)?void 0:n[0])||t.skipStyles?e.bodyToLatex(t):`\\htmlData{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var n;const i=e.createBox(t);return i.htmlData=null!=(n=e.args[0])?n:"",i}}),qp(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[1])})),serialize:(e,t)=>{var n;return!(null==(n=e.args)?void 0:n[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var n;const i=e.createBox(t);return i.htmlStyle=null!=(n=e.args[0])?n:"",i}}),qp("em","{:rest}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[0])})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{\\em ${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__emph",boxType:"lift"})}),qp("emph","{:auto}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[1])})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\emph{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__emph",boxType:"lift"})});var HC={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};qp(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:e=>{var t;return new Xx(rp(ip({},e),{delim:null!=(t=e.args[0])?t:".",size:HC[e.command].size,delimType:HC[e.command].mclass}))}}),qp(["hspace","hspace*"],"{width:value}",{createAtom:e=>{var t;return new lS(rp(ip({},e),{width:null!=(t=e.args[0])?t:{dimension:0}}))}}),qp(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:e=>{var t;return new lS(rp(ip({},e),{width:null!=(t=e.args[0])?t:{dimension:0}}))}}),qp("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:e=>new _w(e),render:(e,t)=>{let n=0;const i=t.mathstyle.id;5!==i&&4!==i||(n=1),3!==i&&2!==i||(n=2),1!==i&&0!==i||(n=3);const r=Ap(e.args[n]);return _w.createBox(t,r)},serialize:(e,t)=>`\\mathchoice{${_w.serialize(e.args[0],t)}}{${_w.serialize(e.args[1],t)}}{${_w.serialize(e.args[2],t)}}{${_w.serialize(e.args[3],t)}}`}),qp("mathop","{:auto}",{createAtom:e=>new _w(rp(ip({},e),{type:"mop",body:Ap(e.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(e,t)=>{var n;let i=_w.createBox(t,e.body);if(e.superscript||e.subscript){const r=null!=(n=e.subsupPlacement)?n:"auto";i="over-under"===r||"auto"===r&&t.isDisplayStyle?e.attachLimits(t,{base:i}):e.attachSupsub(t,{base:i})}return new nw(e.bind(t,i),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const n=[Gb(e.command,e.bodyToLatex(t))];return e.explicitSubsupPlacement&&("over-under"===e.subsupPlacement&&n.push("\\limits"),"adjacent"===e.subsupPlacement&&n.push("\\nolimits"),"auto"===e.subsupPlacement&&n.push("\\displaylimits")),n.push(e.supsubToLatex(t)),Kb(n)}}),qp(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:e=>new _w(rp(ip({},e),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e.command],body:Ap(e.args[0])}))}),qp(["operatorname","operatorname*"],"{operator:math}",{createAtom:e=>{const t=Ap(e.args[0]).map((e=>{var t;return"first"!==e.type&&(e.type="mord",e.value=null!=(t={"∗":"*","−":"-"}[e.value])?t:e.value,e.isFunction=!1,e.style.variant||e.style.variantStyle||(e.style.variant="main",e.style.variantStyle="up")),e}));return new _w(rp(ip({},e),{type:"mop",body:t,isFunction:!0,limits:"\\operatorname"===e.command?"adjacent":"over-under"}))},render:(e,t)=>{var n;let i=_w.createBox(t,e.body);if(e.superscript||e.subscript){const r=null!=(n=e.subsupPlacement)?n:"auto";i="over-under"===r||"auto"===r&&t.isDisplayStyle?e.attachLimits(t,{base:i}):e.attachSupsub(t,{base:i})}return e.caret&&(i.caret=e.caret),new nw(e.bind(t,i),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const n=[Gb(e.command,e.bodyToLatex(t))];return e.explicitSubsupPlacement&&("over-under"===e.subsupPlacement&&n.push("\\limits"),"adjacent"===e.subsupPlacement&&n.push("\\nolimits"),"auto"===e.subsupPlacement&&n.push("\\displaylimits")),n.push(e.supsubToLatex(t)),Kb(n)}}),qp(["char","unicode"],"{charcode:value}",{createAtom:e=>new _w(rp(ip({},e),{type:"text"===e.mode?"text":"mord"})),serialize:e=>{var t;return`${e.command}${gw(null!=(t=e.args[0])?t:{number:10067,base:"hexadecimal"})}`},render:(e,t)=>{let n=t.evaluate(e.args[0]);return n&&"number"in n||(n={number:10067,base:"hexadecimal"}),e.value=String.fromCodePoint(n.number),e.createBox(t)}}),qp("rule","[raise:value]{width:value}{thickness:value}",{createAtom:e=>new _w(e),render:(e,t)=>{var n,i,r;const o=new ww({parent:t,mathstyle:"textstyle"},e.style),a=o.toEm(null!=(n=e.args[0])?n:{dimension:0}),s=o.toEm(null!=(i=e.args[1])?i:{dimension:10}),l=o.toEm(null!=(r=e.args[2])?r:{dimension:10}),c=new nw(null,{classes:"rule",type:"ord"});return c.width=s,c.height=l+a,c.depth=-a,c.setStyle("border-right-width",s,"em"),c.setStyle("border-top-width",l,"em"),c.setStyle("border-color",e.style.color),c.setStyle("vertical-align",a,"em"),e.isSelected&&c.setStyle("opacity","50%"),e.bind(o,c),e.caret&&(c.caret=e.caret),c.wrap(t)},serialize:e=>`\\rule${e.args[0]?`[${gw(e.args[0])}]`:""}{${gw(e.args[1])}}{${gw(e.args[2])}}`}),qp(["overline","underline"],"{:auto}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[0])})),render:(e,t)=>{const n=e.command.substring(1),i=new ww({parent:t,mathstyle:"cramp"},e.style),r=_w.createBox(i,e.body);if(!r)return null;const o=i.metrics.defaultRuleThickness/i.scalingFactor,a=new nw(null,{classes:n+"-line"});let s;return a.height=o,a.maxFontSize=1.125*o*i.scalingFactor,s=new lw("overline"===n?{shift:0,children:[{box:r},3*o,{box:a},o]}:{top:r.height,children:[o,{box:a},3*o,{box:r}]}),e.caret&&(s.caret=e.caret),new nw(s,{classes:n,type:"ignore"})}}),qp("overset","{:auto}{base:auto}",{createAtom:e=>{const t=Ap(e.args[1]);return new aS(rp(ip({},e),{above:Ap(e.args[0]),body:t,skipBoundary:!1,boxType:ew(t)}))},serialize:(e,t)=>Gb(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),qp("underset","{:auto}{base:auto}",{createAtom:e=>{const t=Ap(e.args[1]);return new aS(rp(ip({},e),{below:Ap(e.args[0]),body:t,skipBoundary:!1,boxType:ew(t)}))},serialize:(e,t)=>Gb(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),qp("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:e=>{const t=Ap(e.args[2]);return new aS(rp(ip({},e),{above:Ap(e.args[0]),below:Ap(e.args[1]),body:t,skipBoundary:!1,boxType:ew(t)}))},serialize:(e,t)=>Gb(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),qp(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:e=>new aS(rp(ip({},e),{body:Ap(e.args[2]),above:Ap(e.args[1]),below:Ap(e.args[0]),skipBoundary:!1,boxType:"\\stackrel"===e.command?"rel":"bin"})),serialize:(e,t)=>Gb(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),qp("smash","[:string]{:auto}",{createAtom:e=>{var t,n,i,r;return new sS(rp(ip({},e),{body:Ap(e.args[1]),smashHeight:null==(n=null==(t=e.args[0])?void 0:t.includes("t"))||n,smashDepth:null==(r=null==(i=e.args[0])?void 0:i.includes("b"))||r}))}}),qp(["vphantom"],"{:auto}",{createAtom:e=>new sS(rp(ip({},e),{body:Ap(e.args[0]),isInvisible:!0,smashWidth:!0}))}),qp(["hphantom"],"{:auto}",{createAtom:e=>new sS(rp(ip({},e),{body:Ap(e.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),qp(["phantom"],"{:auto}",{createAtom:e=>new sS(rp(ip({},e),{body:Ap(e.args[0]),isInvisible:!0}))}),qp("not","{:math}",{createAtom:e=>{const t=Ap(e.args[0]);return 0===t.length?new _w(rp(ip({},e),{type:"mrel",value:""})):new _w(rp(ip({},e),{body:[new oS(rp(ip({},e),{body:"",align:"right"})),...t],captureSelection:!0}))},serialize:(e,t)=>{const n=e.args[0],i=n&&"object"==typeof n&&"group"in n;return""!==e.value?i?`\\not{${_w.serialize(n.group,t)}}`:`\\not${_w.serialize(n,t)}`:i?"\\not{}":"\\not"},render:(e,t)=>{if(e.value)return e.createBox(t);const n=e.args[0]&&"object"==typeof e.args[0]&&"group"in e.args[0]?"ord":ew(Ap(e.args[0])),i=_w.createBox(t,e.body,{type:n});return e.caret&&(i.caret=e.caret),e.bind(t,i)}}),qp(["ne","neq"],"",{createAtom:e=>new _w(rp(ip({},e),{type:"mrel",body:[new oS(rp(ip({},e),{body:"",align:"right",boxType:"rel"})),new _w(rp(ip({},e),{value:"="}))],captureSelection:!0})),serialize:e=>e.command}),qp("rlap","{:auto}",{createAtom:e=>new oS(rp(ip({},e),{body:Ap(e.args[0]),align:"right"}))}),qp("llap","{:auto}",{createAtom:e=>new oS(rp(ip({},e),{body:Ap(e.args[0]),align:"left"}))}),qp("mathrlap","{:math}",{createAtom:e=>new oS(rp(ip({},e),{body:Ap(e.args[0]),align:"left"}))}),qp("mathllap","{:math}",{createAtom:e=>new oS(rp(ip({},e),{body:Ap(e.args[0]),align:"left"}))}),qp("raisebox","{:value}{:text}",{createAtom:e=>{var t;return new Nx(rp(ip({},e),{body:Ap(e.args[1]),padding:{dimension:0},offset:null!=(t=e.args[0])?t:{dimension:0}}))},serialize:(e,t)=>{var n;return Gb("\\raisebox",null!=(n=gw(e.offset))?n:"0pt",e.bodyToLatex(t))}}),qp("raise","{:value}{:auto}",{createAtom:e=>{var t;return new Nx(rp(ip({},e),{body:Ap(e.args[1]),padding:{dimension:0},offset:null!=(t=e.args[0])?t:{dimension:0}}))},serialize:(e,t)=>{var n;return Gb("\\raise",null!=(n=gw(e.offset))?n:"0pt",e.bodyToLatex(t))}}),qp("lower","{:value}{:auto}",{createAtom:e=>{var t;return new Nx(rp(ip({},e),{body:Ap(e.args[1]),padding:{dimension:0},offset:null!=(t=mw(e.args[0],-1))?t:{dimension:0}}))},serialize:(e,t)=>{var n,i;return Gb("\\lower",null!=(i=gw(mw(null!=(n=e.offset)?n:{dimension:0},-1)))?i:"0pt",e.bodyToLatex(t))}}),Hp("0123456789/@.?!"),Zp(65,90),Zp(97,122),Hp([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Hp([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Hp([["\\backslash",92],["\\nabla",8711],["\\partial",8706],["\\ell",8467],["\\hbar",8463],["\\Q",81,"mord","double-struck"],["\\C",67,"mord","double-struck"],["\\P",80,"mord","double-struck"],["\\pounds",163],["\\euro",8364]]),Hp([["\\rightarrow",8594],["\\to",8594],["\\leftarrow",8592],["\\gets",8592],["\\Rightarrow",8658],["\\Leftarrow",8656],["\\longrightarrow",10230],["\\longleftarrow",10229],["\\Longrightarrow",10233],["\\implies",10233],["\\Longleftarrow",10232],["\\impliedby",10232],["\\longleftrightarrow",10231],["\\biconditional",10231],["\\Longleftrightarrow",10234],["\\mapsto",8614],["\\longmapsto",10236],["\\uparrow",8593],["\\downarrow",8595],["\\Uparrow",8657],["\\Downarrow",8659],["\\updownarrow",8597],["\\Updownarrow",8661],["\\hookrightarrow",8618],["\\hookleftarrow",8617],["\\rightharpoonup",8640],["\\leftharpoonup",8636],["\\rightharpoondown",8641],["\\leftharpoondown",8637],["\\searrow",8600],["\\nearrow",8599],["\\swarrow",8601],["\\nwarrow",8598],["\\originalof",8886],["\\laplace",8886],["\\imageof",8887],["\\Laplace",8887]],"mrel"),Hp([["\\mapsfrom",8612,"mrel"],["\\Mapsfrom",10502,"mrel"],["\\MapsTo",10503,"mrel"],["\\Yup",8516,"mord"],["\\lightning",8623,"mrel"],["\\leftarrowtriangle",8701,"mrel"],["\\rightarrowtriangle",8702,"mrel"],["\\leftrightarrowtriangle",8703,"mrel"],["\\boxdot",8865,"mbin"],["\\bigtriangleup",9651,"mbin"],["\\bigtriangledown",9661,"mbin"],["\\boxbar",9707,"mbin"],["\\Lbag",10181,"mopen"],["\\Rbag",10182,"mclose"],["\\llbracket",10214,"mopen"],["\\rrbracket",10215,"mclose"],["\\longmapsfrom",10235,"mrel"],["\\Longmapsfrom",10237,"mrel"],["\\Longmapsto",10238,"mrel"],["\\boxslash",10692,"mbin"],["\\boxbslash",10693,"mbin"],["\\boxast",10694,"mbin"],["\\boxcircle",10695,"mbin"],["\\boxbox",10696,"mbin"],["\\fatsemi",10783,"mop"],["\\leftslice",10918,"mrel"],["\\rightslice",10919,"mrel"],["\\interleave",10996,"mbin"],["\\biginterleave",11004,"mop"],["\\sslash",11005,"mbin"],["\\talloblong",11006,"mbin"]]),Hp([["\\lbrace",123,"mopen"],["\\rbrace",125,"mclose"],["\\lparen",40,"mopen"],["\\rparen",41,"mclose"],["\\langle",10216,"mopen"],["\\rangle",10217,"mclose"],["\\lfloor",8970,"mopen"],["\\rfloor",8971,"mclose"],["\\lceil",8968,"mopen"],["\\rceil",8969,"mclose"],["\\vert",8739],["\\lvert",8739,"mopen"],["\\rvert",8739,"mclose"],["\\|",8741],["\\Vert",8741],["\\mVert",8741],["\\lVert",8741,"mopen"],["\\rVert",8741,"mclose"],["\\lbrack",91,"mopen"],["\\rbrack",93,"mclose"],["\\{",123,"mopen"],["\\}",125,"mclose"],["(",40,"mopen"],[")",41,"mclose"],["[",91,"mopen"],["]",93,"mclose"],["\\ulcorner",9484,"mopen","ams"],["\\urcorner",9488,"mclose","ams"],["\\llcorner",9492,"mopen","ams"],["\\lrcorner",9496,"mclose","ams"],["\\lgroup",10222,"mopen"],["\\rgroup",10223,"mclose"],["\\lmoustache",9136,"mopen"],["\\rmoustache",9137,"mclose"]]),Hp([["\\dashrightarrow",8674],["\\dashleftarrow",8672],["\\Rrightarrow",8667],["\\Lleftarrow",8666],["\\leftrightarrows",8646],["\\rightleftarrows",8644],["\\curvearrowright",8631],["\\curvearrowleft",8630],["\\rightrightarrows",8649],["\\leftleftarrows",8647],["\\upuparrows",8648],["\\downdownarrows",8650],["\\vartriangle",9651],["\\triangleq",8796],["\\vartriangleleft",8882],["\\trianglelefteq",8884],["\\ntriangleleft",8938],["\\ntrianglelefteq",8940],["\\vartriangleright",8883],["\\trianglerighteq",8885],["\\ntriangleright",8939],["\\ntrianglerighteq",8941],["\\blacktriangleleft",9664],["\\blacktriangleright",9654],["\\leftarrowtail",8610],["\\rightarrowtail",8611],["\\looparrowright",8620],["\\looparrowleft",8619],["\\twoheadleftarrow",8606],["\\twoheadrightarrow",8608],["\\twoheadrightarrowtail",10518],["\\rightleftharpoons",8652],["\\leftrightharpoons",8651],["\\Rsh",8625],["\\Lsh",8624],["\\circlearrowright",8635],["\\circlearrowleft",8634],["\\restriction",8638],["\\upharpoonright",8638],["\\upharpoonleft",8639],["\\downharpoonright",8642],["\\downharpoonleft",8643],["\\rightsquigarrow",8669],["\\leadsto",8669],["\\leftrightsquigarrow",8621],["\\multimap",8888],["\\nleftarrow",8602],["\\nrightarrow",8603],["\\nRightarrow",8655],["\\nLeftarrow",8653],["\\nleftrightarrow",8622],["\\nLeftrightarrow",8654],["\\nvrightarrow",8696],["\\nvtwoheadrightarrow",10496],["\\nvrightarrowtail",10516],["\\nvtwoheadrightarrowtail",10519],["\\shortparallel",8741],["\\nless",8814],["\\nleqslant",57360],["\\lneq",10887],["\\lneqq",8808],["\\nleqq",57361],["\\lvertneqq",57356],["\\lnsim",8934],["\\lnapprox",10889],["\\nprec",8832],["\\npreceq",8928],["\\precnsim",8936],["\\precnapprox",10937],["\\nsim",8769],["\\nshortmid",57350],["\\nmid",8740],["\\nvdash",8876],["\\nvDash",8877],["\\ngtr",8815],["\\ngeqslant",57359],["\\ngeqq",57358],["\\gneq",10888],["\\gneqq",8809],["\\gvertneqq",57357],["\\gnsim",8935],["\\gnapprox",10890],["\\nsucc",8833],["\\nsucceq",8929],["\\succnsim",8937],["\\succnapprox",10938],["\\ncong",8774],["\\nshortparallel",57351],["\\nparallel",8742],["\\nVDash",8879],["\\nsupseteqq",57368],["\\supsetneq",8843],["\\varsupsetneq",57371],["\\supsetneqq",10956],["\\varsupsetneqq",57369],["\\nVdash",8878],["\\precneqq",10933],["\\succneqq",10934],["\\nsubseteqq",57366],["\\leqslant",10877],["\\geqslant",10878],["\\gtrsim",8819],["\\approxeq",8778],["\\thickapprox",8776],["\\lessapprox",10885],["\\gtrapprox",10886],["\\precapprox",10935],["\\succapprox",10936],["\\thicksim",8764],["\\succsim",8831],["\\precsim",8830],["\\backsim",8765],["\\eqsim",8770],["\\backsimeq",8909],["\\lesssim",8818],["\\nleq",8816],["\\ngeq",8817],["\\smallsmile",8995],["\\smallfrown",8994],["\\leqq",8806],["\\eqslantless",10901],["\\lll",8920],["\\lessgtr",8822],["\\lesseqgtr",8922],["\\lesseqqgtr",10891],["\\risingdotseq",8787],["\\fallingdotseq",8786],["\\subseteqq",10949],["\\Subset",8912],["\\sqsubset",8847],["\\preccurlyeq",8828],["\\curlyeqprec",8926],["\\vDash",8872],["\\Vvdash",8874],["\\bumpeq",8783],["\\Bumpeq",8782],["\\geqq",8807],["\\eqslantgtr",10902],["\\ggg",8921],["\\gtrless",8823],["\\gtreqless",8923],["\\gtreqqless",10892],["\\supseteqq",10950],["\\Supset",8913],["\\sqsupset",8848],["\\succcurlyeq",8829],["\\curlyeqsucc",8927],["\\Vdash",8873],["\\shortmid",8739],["\\between",8812],["\\pitchfork",8916],["\\varpropto",8733],["\\backepsilon",8717],["\\llless",8920],["\\gggtr",8921],["\\doteqdot",8785],["\\Doteq",8785],["\\eqcirc",8790],["\\circeq",8791],["\\therefore",8756],["\\because",8757]],"mrel","ams"),Hp([["+",43],["-",8722],["−",8722],["\\pm",177],["\\mp",8723],["*",8727],["\\times",215],["\\div",247],["\\divides",8739],["\\cdot",8901],["\\cap",8745],["\\cup",8746],["\\setminus",8726],["\\land",8743],["\\wedge",8743],["\\lor",8744],["\\vee",8744],["\\circ",8728],["\\bigcirc",9711],["\\bullet",8729],["\\oplus",8853],["\\ominus",8854],["\\otimes",8855],["\\odot",8857],["\\oslash",8856],["\\bigtriangleup",9651],["\\bigtriangledown",9661],["\\triangleleft",9667],["\\triangleright",9657],["\\And",38],["\\dagger",8224],["\\dag",8224],["\\ddag",8225],["\\ddagger",8225],["\\ast",8727],["\\star",8902],["\\bigstar",9733],["\\diamond",8900]],"mbin"),Hp([["\\lhd",8882],["\\rhd",8883],["\\lessdot",8918],["\\gtrdot",8919],["\\ltimes",8905],["\\rtimes",8906],["\\leftthreetimes",8907],["\\rightthreetimes",8908],["\\intercal",8890],["\\dotplus",8724],["\\doublebarwedge",10846],["\\divideontimes",8903],["\\centerdot",8901],["\\smallsetminus",8726],["\\barwedge",8892],["\\veebar",8891],["\\nor",8891],["\\curlywedge",8911],["\\curlyvee",8910],["\\boxminus",8863],["\\boxplus",8862],["\\boxtimes",8864],["\\boxdot",8865],["\\circleddash",8861],["\\circledast",8859],["\\circledcirc",8858],["\\unlhd",8884],["\\unrhd",8885]],"mbin","ams"),Hp([["\\surd",8730],["\\infty",8734],["\\prime",8242],["\\doubleprime",8243],["\\angle",8736],["`",8216],["\\$",36],["\\%",37],["\\_",95],["\\alpha",945],["\\beta",946],["\\gamma",947],["\\delta",948],["\\epsilon",1013],["\\varepsilon",949],["\\zeta",950],["\\eta",951],["\\theta",952],["\\vartheta",977],["\\iota",953],["\\kappa",954],["\\varkappa",1008,"mord","ams"],["\\lambda",955],["\\mu",956],["\\nu",957],["\\xi",958],["\\omicron",111],["\\pi",960],["\\varpi",982],["\\rho",961],["\\varrho",1009],["\\sigma",963],["\\varsigma",962],["\\tau",964],["\\phi",981],["\\varphi",966],["\\upsilon",965],["\\chi",967],["\\psi",968],["\\omega",969],["\\Gamma",915],["\\Delta",916],["\\Theta",920],["\\Lambda",923],["\\Xi",926],["\\Pi",928],["\\Sigma",931],["\\Upsilon",933],["\\Phi",934],["\\Psi",936],["\\Omega",937],["\\digamma",989,"mord","ams"],["\\emptyset",8709]]),Hp([["=",61],["<",60],["\\lt",60],[">",62],["\\gt",62],["\\le",8804],["\\leq",8804],["\\ge",8805],["\\geq",8805],["\\ll",8810],["\\gg",8811],["\\coloneq",8788],["\\coloneqq",8788],["\\colonequals",8788],["\\measeq",8797],["\\eqdef",8798],["\\questeq",8799],[":",58],["\\cong",8773],["\\equiv",8801],["\\prec",8826],["\\preceq",10927],["\\succ",8827],["\\succeq",10928],["\\perp",8869],["\\propto",8733],["\\Colon",8759],["\\smile",8995],["\\frown",8994],["\\sim",8764],["\\doteq",8784],["\\bowtie",8904],["\\Join",8904],["\\asymp",8781],["\\sqsubseteq",8849],["\\sqsupseteq",8850],["\\approx",8776],["\\~",126],["\\leftrightarrow",8596],["\\Leftrightarrow",8660],["\\models",8872],["\\vdash",8866],["\\dashv",8867],["\\roundimplies",10608],["\\in",8712],["\\notin",8713],["\\ni",8715],["\\owns",8715],["\\subset",8834],["\\supset",8835],["\\subseteq",8838],["\\supseteq",8839],["\\differencedelta",8710],["\\mvert",8739],["\\parallel",8741],["\\simeq",8771]],"mrel"),Hp([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Hp([["\\wp",8472],["\\aleph",8501]]),Hp([["\\blacktriangle",9650],["\\hslash",8463],["\\Finv",8498],["\\Game",8513],["\\eth",240],["\\mho",8487],["\\Bbbk",107],["\\yen",165],["\\square",9633],["\\Box",9633],["\\blacksquare",9632],["\\circledS",9416],["\\circledR",174],["\\triangledown",9661],["\\blacktriangledown",9660],["\\checkmark",10003],["\\diagup",9585],["\\measuredangle",8737],["\\sphericalangle",8738],["\\backprime",8245],["\\backdoubleprime",8246],["\\Diamond",9674],["\\lozenge",9674],["\\blacklozenge",10731],["\\varnothing",8709],["\\complement",8705],["\\maltese",10016],["\\beth",8502],["\\daleth",8504],["\\gimel",8503]],"mord","ams"),Hp([["\\ ",160],["~",160]],"space"),qp(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:e=>new lS(e)}),qp("space","",{createAtom:e=>new lS(e)}),Hp([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Hp([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Hp([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var ZC="",KC="";function GC(e){return e.replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function UC(e,t){return e&&t.generateID?` extid="${e}"`:""}function VC(e,t,n){var i,r,o,a,s,l,c,u,h,d,p;let f=!1;t=null!=t?t:e.atoms.length;let g="",m="",v=e.atoms[e.index];const y=null!=(r=null==(i=v.style)?void 0:i.variant)?r:"",b=null!=(a=null==(o=v.style)?void 0:o.variantStyle)?a:"";let w="";if(y||b){const t=Mp(v.value,null==(s=v.style)?void 0:s.variant,null==(l=v.style)?void 0:l.variantStyle);if(t!==v.value)return e.index+=1,g=`${t}`,WC(g,e,n)||(e.mathML+=g,e.lastType="mi"),!0;w=null!=(c={upnormal:"normal",boldnormal:"bold",italicmain:"italic",bolditalicmain:"bold-italic","updouble-struck":"double-struck","double-struck":"double-struck",boldfraktur:"bold-fraktur",calligraphic:"script",upcalligraphic:"script",script:"script",boldscript:"bold-script",boldcalligraphic:"bold-script",fraktur:"fraktur","upsans-serif":"sans-serif","boldsans-serif":"bold-sans-serif","italicsans-serif":"sans-serif-italic","bolditalicsans-serif":"sans-serif-bold-italic",monospace:"monospace"}[b+y])?c:"",w=` mathvariant="${w}"`}const x={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"ℏ","\\cdotp":"⋅","\\ldots":"…","\\cdots":"⋯","\\ddots":"⋱","\\vdots":"⋮","\\ldotp":"."};if("!"===v.command)return e.index+=1,g="!",WC(g,e,n)||(e.mathML+=g,e.lastType="mo"),!0;if(x[v.command]){e.index+=1;let t=`${x[v.command]}`;return"mi"!==e.lastType&&"mn"!==e.lastType&&"mtext"!==e.lastType&&"fence"!==e.lastType||(t=KC+t),WC(t,e,n)||(e.mathML+=t,e.lastType="mi"),!0}if("\\operatorname"===v.command)m=tP(v.body),e.index+=1;else if(y||b)for(;e.index0){f=!0,g=`${m}`;const t=e.lastType;g.endsWith(">f")||g.endsWith(">g")?(g+=ZC,e.lastType="applyfunction"):e.lastType=/^(.*)<\/mo>$/.test(g)?"mo":"mi",WC(g,e,n)||("mi"!==t&&"mn"!==t&&"mtext"!==t&&"fence"!==t||(g=KC+g),e.mathML+=g)}return f}function WC(e,t,n){var i;let r=t.atoms[t.index-1];if(!r)return!1;if(!r.superscript&&!r.subscript){if("subsup"!==(null==(i=t.atoms[t.index])?void 0:i.type))return!1;r=t.atoms[t.index],t.index+=1}const o=t.lastType;t.lastType="";const a=JC(r.superscript,n);t.lastType="";const s=JC(r.subscript,n);if(t.lastType=o,!a&&!s)return!1;let l="";return a&&s?l=`${e}${s}${a}`:a?l=`${e}${a}`:s&&(l=`${e}${s}`),t.mathML+=l,t.lastType="",!0}function qC(e,t,n){t=null!=t?t:e.atoms.length;const i=e.index;let r="";for(;e.index0&&(e.mathML+=`${r}`,e.lastType="mtext",!0)}function YC(e,t,n){t=null!=t?t:e.atoms.length;const i=e.index;let r="",o=function(e){let t=-1,n=e.index,i=!1,r=!1;for(;n=0&&o"+r+"",o<0&&function(e){return e.index",r+=eP(e.atoms[l],n),r+=JC(e.atoms,n,l+1,c),r+=eP(e.atoms[c],n),r+="",e.index=c+1,"mi"!==e.lastType&&"mn"!==e.lastType&&"mfrac"!==e.lastType&&"fence"!==e.lastType||(e.mathML+=KC),WC(r,e,n)&&(i=!0,e.lastType="",r=""),o="fence")}return r.length>0&&(i=!0,e.mathML+=r,e.lastType=o),i}function QC(e,t,n){let i=!1;t=null!=t?t:e.atoms.length;let r="",o="";const a=e.atoms[e.index];if(!a)return!1;const s={"\\ne":"≠","\\neq":"&neq;","\\pm":"±","\\times":"×","\\colon":":","\\vert":"|","\\Vert":"∥","\\mid":"∣","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lbrack":"[","\\rbrack":"]","\\lparen":"(","\\rparen":")","\\langle":"⟨","\\rangle":"⟩","\\lfloor":"⌊","\\rfloor":"⌋","\\lceil":"⌈","\\rceil":"⌉"};if(s[a.command]){e.index+=1;const t=`${s[a.command]}`;return WC(t,e,n)||(e.mathML+=t,e.lastType="mo"),!0}if(e.index"):a.superscript?(r+=""+t,r+=JC(a.superscript,n),r+=""):a.subscript&&(r+=""+t,r+=JC(a.subscript,n),r+=""),e.mathML+=r,e.lastType="mo",e.index+=1,!0}{const t=e.atoms[e.index],i="\\operatorname"===t.value,a=i?'"+tP(t.value)+"":eP(t,n);r+=a,i||/^(.*)<\/mo>$/.test(a)?o=i?"mi":"mo":(r+=ZC,o="applyfunction")}"mi"!==e.lastType&&"mn"!==e.lastType||/^(.*)<\/mo>$/.test(r)||(r=KC+r),e.index+=1}return r.length>0&&(i=!0,WC(r,e,n)||(e.mathML+=r,e.lastType=o)),i}function JC(e,t,n,i){null!=t||(t={});const r={atoms:[],index:null!=n?n:0,mathML:"",lastType:""};if("number"==typeof e||"boolean"==typeof e)r.mathML=e.toString();else if("string"==typeof e)r.mathML=e;else if(e instanceof _w)r.mathML=nP(e,t);else if(Array.isArray(e)){r.atoms=e;let n=0;for(i=i||(e?e.length:0);r.index0&&"genfrac"===r.atoms[r.index].type&&(e=""+e),"genfrac"===r.atoms[r.index].type?r.lastType="mfrac":r.lastType="",r.index+=1,WC(e,r,t)?n+=1:e.length>0&&(r.mathML+=e,n+=1)}n>1&&(r.mathML=""+r.mathML+"")}return r.mathML}function eP(e,t){let n="";const i=tP(e.value);return i&&(n=""+i+""),n}function tP(e){if(!e)return"";if("string"==typeof e)return GC(e);if(!Array.isArray(e)&&"string"==typeof e.body)return GC(e.body);let t="";for(const n of e)"string"==typeof n.value&&(t+=n.value);return GC(t)}function nP(e,t){var n,i,r,o,a,s,l,c,u,h,d,p,f,g,m,v,y,b,w,x,S,k;if("text"===e.mode)return`${e.value}`;const _={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",longleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",longrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",longrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xleftrightarrows:"⇄",xRightleftharpoons:"⇌",longRightleftharpoons:"⇌",xLeftrightharpoons:"⇋",longLeftrightharpoons:"⇋"},C={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let P,E,M,L,A,T,D="",N="";const{command:I}=e;if("\\error"===e.command)return`${JC(e.body,t)}`;const B={"\\vert":"|","\\Vert":"∥","\\mid":"∣","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"⟨","\\rangle":"⟩","\\lfloor":"⌊","\\rfloor":"⌋","\\lceil":"⌈","\\rceil":"⌉"},R={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(e.type){case"first":case"line":case"overlap":case"subsup":case"phantom":case"composition":case"rule":case"chem":break;case"group":case"root":D=JC(e.body,t);break;case"array":if((e.leftDelim&&"."!==e.leftDelim||e.rightDelim&&"."!==e.rightDelim)&&(D+="",e.leftDelim&&"."!==e.leftDelim&&(D+=""+(B[e.leftDelim]||e.leftDelim)+"")),D+="",P=0;P"+JC(e.array[E][P],t)+"";D+=""}D+="",(e.leftDelim&&"."!==e.leftDelim||e.rightDelim&&"."!==e.rightDelim)&&(e.rightDelim&&"."!==e.rightDelim&&(D+=""+(B[e.leftDelim]||e.rightDelim)+""),D+="");break;case"genfrac":(e.leftDelim||e.rightDelim)&&(D+=""),e.leftDelim&&"."!==e.leftDelim&&(D+=""+(B[e.leftDelim]||e.leftDelim)+""),e.hasBarLine?(D+="",D+=JC(e.above,t)||" ",D+=JC(e.below,t)||" ",D+=""):(D+="",D+=""+JC(e.above,t)+"",D+=""+JC(e.below,t)+"",D+=""),e.rightDelim&&"."!==e.rightDelim&&(D+=""+(B[e.rightDelim]||e.rightDelim)+""),(e.leftDelim||e.rightDelim)&&(D+="");break;case"surd":e.hasEmptyBranch("above")?(D+="",D+=JC(e.body,t),D+=""):(D+="",D+=JC(e.body,t),D+=JC(e.above,t),D+="");break;case"leftright":const O=e,F=O.leftDelim;D="",F&&"."!==F&&(D+=`${null!=(n=B[F])?n:F}`),e.body&&(D+=JC(e.body,t));const z=O.matchingRightDelim();z&&"."!==z&&(D+=`${null!=(i=B[z])?i:z}`),D+="";break;case"sizeddelim":case"delim":D+=`${B[e.value]||e.value}`;break;case"accent":D+='",D+=JC(e.body,t),D+=""+(R[I]||e.accent)+"",D+="";break;case"overunder":A=e.above,L=e.below,(e.svgAbove||A)&&(e.svgBelow||L)?T=e.body:A&&A.length>0?(T=e.body,(null==(o=null==(r=e.body)?void 0:r[0])?void 0:o.below)?(L=e.body[0].below,T=e.body[0].body):"first"===(null==(s=null==(a=e.body)?void 0:a[0])?void 0:s.type)&&(null==(c=null==(l=e.body)?void 0:l[1])?void 0:c.below)&&(L=e.body[1].below,T=e.body[1].body)):L&&L.length>0&&(T=e.body,(null==(h=null==(u=e.body)?void 0:u[0])?void 0:h.above)?(A=e.body[0].above,T=e.body[0].body):"first"===(null==(p=null==(d=e.body)?void 0:d[0])?void 0:p.type)&&(null==(g=null==(f=e.body)?void 0:f[1])?void 0:g.above)&&(A=e.body[1].overscript,T=e.body[1].body)),(e.svgAbove||A)&&(e.svgBelow||L)?(D+=``,D+=null!=(m=_[e.svgBody])?m:JC(T,t),D+=null!=(v=_[e.svgBelow])?v:JC(L,t),D+=null!=(y=_[e.svgAbove])?y:JC(A,t),D+=""):e.svgAbove||A?(D+=``+(null!=(b=_[e.svgBody])?b:JC(T,t)),D+=null!=(w=_[e.svgAbove])?w:JC(A,t),D+=""):(e.svgBelow||L)&&(D+=``+(null!=(x=_[e.svgBody])?x:JC(T,t)),D+=null!=(S=_[e.svgBelow])?S:JC(L,t),D+="");break;case"placeholder":D+="?";break;case"mord":{D="string"==typeof e.value?e.value:I,"\\char"===I?D="&#x"+("000000"+e.args[0].number.toString(16)).slice(-4)+";":D.length>0&&D.startsWith("\\")&&("string"==typeof e.value&&e.value.charCodeAt(0)>255?D="&#x"+("000000"+e.value.charCodeAt(0).toString(16)).slice(-4)+";":"string"==typeof e.value?D=e.value.charAt(0):(console.error("Did not expect this"),D=""));const n=/\d/.test(D)?"mn":"mi";D=`<${n}${UC(e.id,t)}>${GC(D)}`;break}case"mbin":case"mrel":case"minner":D=eP(e,t);break;case"mpunct":D='"+I+"";break;case"mop":case"operator":case"extensible-symbol":"​"!==e.body&&(D="",D+="\\operatorname"===I?e.body:I||e.body,D+="");break;case"box":D='"+JC(e.body,t)+"";break;case"spacing":D+='';break;case"enclose":D=''+JC(e.body,t)+"";break;case"prompt":D=''+JC(e.body,t)+"";break;case"space":D+=" ";break;case"mopen":case"mclose":D+=eP(e,t);break;case"macro":{const n=e.command+tP(e.macroArgs);n&&(D+=`${n}`)}break;case"latexgroup":case"tooltip":D+=JC(e.body,t);break;case"latex":D+=""+e.value+"";break;case"text":D+=`${e.value}`;break;default:if("\\displaystyle"===e.command)return`${JC(e.body,t)}`;if("\\textstyle"===e.command)return`${JC(e.body,t)}`;console.info("Unexpected element in conversion to MathML:",e)}return D}var iP={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"imaginary eye ","\\imaginaryJ":"imaginary jay ","\\sum":"Summation ","\\prod":"Product ","+":"plus ","-":"minus ",";":' semi-colon ',",":' comma ',"|":'Vertical bar',"(":'Open paren. ',")":' Close paren. ',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\pm":"plus or minus","\\mp":"minus or plus","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","\\ne":"is not equal to ","\\neq":"is not equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","​":"","−":"minus ",":":' such that ',"\\colon":' such that ',"\\hbar":"etch bar ","\\iff":'if, and only if, ',"\\Longleftrightarrow":'if, and only if, ',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set n',"\\C":'the set c',"\\Z":'the set z',"\\Q":'the set q',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdot":"times ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lparen":'open paren',"\\rparen":'close paren',"\\lbrace":'open brace',"\\{":'open brace',"\\rbrace":'close brace',"\\}":'close brace',"\\langle":'left angle bracket',"\\rangle":'right angle bracket',"\\lfloor":'open floor',"\\rfloor":'close floor',"\\lceil":'open ceiling',"\\rceil":'close ceiling',"\\vert":'vertical bar',"\\mvert":'divides',"\\lvert":'left vertical bar',"\\rvert":'right vertical bar',"\\lbrack":' open square bracket ',"\\rbrack":' close square bracket ',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"},rP={array:"array",matrix:"matrix",pmatrix:"parenthesis matrix",bmatrix:"square brackets matrix",Bmatrix:"braces matrix",vmatrix:"bars matrix",Vmatrix:"double bars matrix","matrix*":"matrix",smallmatrix:"small matrix"};function oP(e){let t=0;if(sp(e))for(const n of e)"first"!==n.type&&(t+=1);return 1===t}function aP(e){let t="";if(sp(e))for(const n of e)"first"!==n.type&&"string"==typeof n.value&&(t+=n.value);return t}function sP(e,t){var n,i,r,o,a;function s(e){return""+e+""}if(!t)return"";let l="";if(sp(t)){let i=!1,r=!1;for(let o=0;o'),l+=t.value;else{t.id&&"math"===e&&(l+='');let n="",u="",h="",d=!1;const{command:p}=t;switch(p){case"\\vec":return"vector "+sP(e,t.body);case"\\acute":return sP(e,t.body)+" acute";case"\\grave":return sP(e,t.body)+" grave";case"\\dot":return"dot over"+sP(e,t.body);case"\\ddot":return"double dot over"+sP(e,t.body);case"\\mathring":return"ring over"+sP(e,t.body);case"\\tilde":case"\\widetilde":return"tilde over"+sP(e,t.body);case"\\bar":return sP(e,t.body)+" bar";case"\\breve":return sP(e,t.body)+" breve";case"\\check":case"\\widecheck":return"check over "+sP(e,t.body);case"\\hat":case"\\widehat":return"hat over"+sP(e,t.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+sP(e,t.body);case"\\underarc":case"\\underparen":return"arc under "+sP(e,t.body)}switch(t.type){case"prompt":l+=' '+(t.body.length>1?'start input . '+sP(e,t.body)+'. end input':"blank")+'. '+(null!=(i=t.correctness)?i:"")+' . ';break;case"array":const f=t.array,g=t.environmentName;if(Object.keys(rP).includes(g)){l+=` begin ${rP[g]} `;for(let e=0;e0&&(l+=","),l+=` row ${e+1} `;for(let t=0;t0&&(l+=","),l+=` column ${t+1}: `,l+=sP("math",f[e][t])}l+=` end ${rP[g]} `}break;case"group":"\\ne"===p?l+=" not equal ":"\\not"===p?(l+=" not ",l+=sP("math",t.body)):l+=sP("math",t.body);break;case"root":l+=sP("math",t.body);break;case"genfrac":if(n=sP("math",t.above),u=sP("math",t.below),oP(t.above)&&oP(t.below)){const e={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[aP(t.above)+"/"+aP(t.below)];e?l=e:l+=n+" over "+u}else l+=' the fraction '+n+' over '+u+'. End fraction.';break;case"surd":if(h=sP("math",t.body),t.hasEmptyBranch("above"))l+=oP(t.body)?" the square root of "+h+" , ":' the square root of '+h+'. End square root';else{let e=sP("math",t.above);e=e.trim();const n=e.replace(//g,"");l+="3"===n?' the cube root of '+h+'. End cube root':"n"===n?' the nth root of '+h+'. End root':' the root with index: '+e+', of '+h+'. End root'}break;case"leftright":{const e=t;l+=null!=(r=e.leftDelim?iP[e.leftDelim]:void 0)?r:e.leftDelim,l+=sP("math",t.body),l+=null!=(o=e.rightDelim?iP[e.rightDelim]:void 0)?o:e.rightDelim}break;case"rule":case"overunder":case"overlap":case"space":case"spacing":break;case"macro":const m=p.replace(/^\\/g,""),v=Yp()[m];v&&((null==v?void 0:v.expand)?l+=sP("math",t.body):l+=`${m} `);break;case"placeholder":l+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if("\\mathbin"===p||"\\mathrel"===p||"\\mathopen"===p||"\\mathclose"===p||"\\mathpunct"===p||"\\mathord"===p||"\\mathinner"===p){l=sP(e,t.body);break}let n=t.isDigit()?t.asDigit():t.value,i=t.command;if("delim"!==t.type&&"sizeddelim"!==t.type||(i=t.value,n=i),"text"===e)l+=n;else{if("mbin"===t.type&&(l+=''),n){const e=iP[n]||(i?iP[i.trim()]:"");if(e)l+=" "+e;else{const e=i?function(e){let t="";return e.startsWith("\\")&&(t=" "+e.replace("\\","")+" "),t}(i.trim()):"";l+=e||function(e){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(e)?` ${e}`:/[A-Z]/.test(e)?`capital ${e.toLowerCase()}`:e:/[a-z]/.test(e)?" '"+e.toUpperCase()+"'":/[A-Z]/.test(e)?" 'capital "+e.toUpperCase()+"'":e}(n)}}else l+=sP("math",t.body);"mbin"===t.type&&(l+='')}break}case"mop":case"operator":case"extensible-symbol":if("​"!==t.value){const e=t.command;if("\\sum"===e)if(t.hasEmptyBranch("superscript")||t.hasEmptyBranch("subscript"))if(t.hasEmptyBranch("subscript"))l+=" the summation of";else{let e=sP("math",t.subscript);e=e.trim(),l+=' the summation from '+e+' of ',d=!0}else{let e=sP("math",t.superscript);e=e.trim();let n=sP("math",t.subscript);n=n.trim(),l+=' the summation from '+n+' to '+e+' of ',d=!0}else if("\\prod"===e)if(t.hasEmptyBranch("superscript")||t.hasEmptyBranch("subscript"))if(t.hasEmptyBranch("subscript"))l+=" the product of ";else{let e=sP("math",t.subscript);e=e.trim(),l+=' the product from '+e+' of ',d=!0}else{let e=sP("math",t.superscript);e=e.trim();let n=sP("math",t.subscript);n=n.trim(),l+=' the product from '+n+' to '+e+' of ',d=!0}else if("\\int"===e)if(t.hasEmptyBranch("superscript")||t.hasEmptyBranch("subscript"))l+=' the integral of ';else{let e=sP("math",t.superscript);e=e.trim();let n=sP("math",t.subscript);n=n.trim(),l+=' the integral from '+s(n)+' to '+s(e)+' of ',d=!0}else if("string"==typeof t.value){const e=null!=(a=iP[t.value])?a:t.command?iP[t.command]:void 0;l+=e||" "+t.value}else t.command&&("\\mathop"===t.command?l+=sP("math",t.body):"\\operatorname"===t.command?l+=(c=t.body)?c.map((e=>e.value)).join(""):"":l+=t.command.startsWith("\\")?" "+t.command.slice(1):" "+t.command)}break;case"enclose":h=sP("math",t.body),l+=" crossed out "+h+". End crossed out."}if(!d&&!t.hasEmptyBranch("superscript")){let n=sP(e,t.superscript);n=n.trim();const i=n.replace(/<[^>]*>/g,"");if(oP(t.superscript)){if("math"===e){const e=function(e){if(sp(e))for(const t of e)if("first"!==t.type&&t.id)return t.id.toString();return""}(t.superscript);e&&(l+='')}"′"===i?l+=" prime ":"2"===i?l+=" squared ":"3"===i?l+=" cubed ":Number.isNaN(Number.parseInt(i))?l+=" to the "+n+"; ":l+=' to the '+i+" power; "}else Number.isNaN(Number.parseInt(i))?l+=" raised to the "+n+"; ":l+=' raised to the '+i+" power; "}if(!d&&!t.hasEmptyBranch("subscript")){let e=sP("math",t.subscript);e=e.trim(),l+=oP(t.subscript)?" sub "+e:" subscript "+e+". End subscript. "}}var c;return l}function lP(e){var t,n;if("sre"===window.MathfieldElement.textToSpeechRules&&("sre"in window||"SRE"in window)){const i=JC(e);if(i){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=null!=(t=window.MathfieldElement.textToSpeechRulesOptions)?t:{},window.MathfieldElement.textToSpeechRulesOptions=rp(ip({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),"ssml"===window.MathfieldElement.textToSpeechRulesOptions.markup&&(window.MathfieldElement.textToSpeechRulesOptions=rp(ip({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=rp(ip({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const e=null!=(n=window.SRE)?n:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&e.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let r="";try{r=e.toSpeech(i)}catch(e){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",e)}return r}return""}let i=sP("math",e);if("ssml"===window.MathfieldElement.textToSpeechMarkup){let e="";window.MathfieldElement.speechEngineRate&&(e=''),i=''+e+"

    "+i+"

    "+(e?"
    ":"")+""}else i="mac"===window.MathfieldElement.textToSpeechMarkup&&"macos"===up()?i.replace(//g,"").replace(//g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(//g,"[[slc $1]]").replace(/]*>/g,"").replace(/<\/say-as>/g,""):i.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return i}var cP={"\\ne":"≠","\\neq":"≠","−":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega","\\exponentialE":"e","\\imaginaryI":"i","\\imaginaryJ":"j","\\!":" ","\\,":" ","\\:":" ","\\>":" ","\\;":" ","\\enskip":" ","\\enspace":" ","\\qquad":" ","\\quad":" ","\\infty":"oo"},uP={"\\pm":"+-","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrack":"[","\\rbrack":"]","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"(:","\\rangle":":)","\\sum":" sum ","\\prod":" prod ","\\bigcap":" nnn ","\\bigcup":" uuu ","\\int":" int ","\\oint":" oint ","\\ge":">=","\\le":"<=","\\ne":"!=","\\neq":"!=","\\lt":"<","\\gt":">","\\gets":"<-","\\to":"->","\\land":" and ","\\lor":" or ","\\lnot":" not ","\\forall":" AA ","\\exists":" EE ","\\in":" in ","\\notin":" !in ","\\mapsto":"|->","\\implies":"=>","\\iff":"<=>","\\cdot":"*","\\ast":"**","\\star":"***","\\times":"xx","\\div":"-:","\\ltimes":"|><","\\rtimes":"><|","\\bowtie":"|><|","\\circ":"@"};function hP(e){var t,n,i,r,o,a,s,l,c,u,h,d,p;if(!e)return"";if(sp(e)){if(0===e.length)return"";if("latex"===e[0].mode)return e.map(hP).join("");if("text"===e[0].mode){let n=0,i="";for(;"text"===(null==(t=e[n])?void 0:t.mode);)i+=e[n].body?hP(e[n].body):e[n].value,n++;return`"${i}" ${hP(e.slice(n))}`}let n=0;const i=[];for(;e[n]&&"math"===e[n].mode;){let t="";for(;e[n]&&"mord"===e[n].type&&/\d/.test(e[n].value);)t+=e[n++].value;t?i.push(t):i.push(hP(e[n++]))}return i.push(hP(e.slice(n))),function(e){let t="";for(const n of e){const e=t[t.length-1];void 0!==e&&/\d/.test(e)&&/^\d/.test(n)&&(t+=" "),t+=n}return t}(i)}if("text"===e.mode)return`"${e.value}"`;let f="";const{command:g}=e;let m;if("\\placeholder"===g)return`(${hP(e.body)})`;switch(e.type){case"accent":const t={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[g];f=`${null!=t?t:""} ${hP(e.body)} `;break;case"first":return"";case"latexgroup":return e.body.map((e=>e.value)).join("");case"group":case"root":f=null!=(n=cP[g])?n:hP(e.body);break;case"genfrac":{const t=e;(t.leftDelim||t.rightDelim)&&(f="."!==t.leftDelim&&t.leftDelim?t.leftDelim:"{:"),t.hasBarLine?(f+="(",f+=hP(t.above),f+=")/(",f+=hP(t.below),f+=")"):(f+="("+hP(t.above)+"),",f+="("+hP(t.below)+")"),(t.leftDelim||t.rightDelim)&&(f+="."!==t.rightDelim&&t.rightDelim?t.rightDelim:"{:")}break;case"surd":f+=e.hasEmptyBranch("above")?"sqrt("+hP(e.body)+")":"root("+hP(e.above)+")("+hP(e.body)+")";break;case"latex":case"sizeddelim":case"delim":case"mopen":case"mclose":f=e.value;break;case"leftright":{const t=e,n=t.leftDelim;f+="."!==n&&n?n:"{:",f+=hP(t.body);const i=t.matchingRightDelim();f+="."!==i&&i?i:":}"}break;case"overlap":case"overunder":case"box":break;case"mord":f=null!=(r=null!=(i=cP[g])?i:g)?r:"string"==typeof e.value?e.value:"",f.startsWith("\\")&&(f+=" "),m=g?g.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,m?f=String.fromCodePoint(Number.parseInt("0x"+m[1])):f.length>0&&f.startsWith("\\")&&(f="string"==typeof e.value?e.value.charAt(0):e.command),f=function(e,t){if(!t)return e;let n=e;"double-struck"===t.variant&&(n=`bbb "${n}"`);"script"===t.variant&&(n=`cc "${n}"`);"fraktur"===t.variant&&(n=`fr "${n}"`);"sans-serif"===t.variant&&(n=`sf "${n}"`);"monospace"===t.variant&&(n=`tt "${n}"`);"bold"===t.variantStyle&&(n=`bb "${n}"`);return t.color?`color({${t.color}})(${n})`:n}(f,e.style);break;case"mbin":case"mrel":case"minner":f=null!=(a=null!=(o=cP[g])?o:uP[g])?a:e.value;break;case"mpunct":f=null!=(s=uP[g])?s:g;break;case"mop":case"operator":case"extensible-symbol":"​"!==e.value&&(f=uP[g]?uP[g]:"\\operatorname"===g?hP(e.body):null!=(l=e.value)?l:g,f+=" ");break;case"array":const v=e.array,y=e.environmentName,b=null!=(c={bmatrix:["[","]"],"bmatrix*":["[","]"]}[y])?c:["(",")"],w=[];for(const e of v){const t=[];for(const n of e)t.push(b[0]+hP(n)+b[1]);w.push(t.join(","))}const x=null!=(u={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[y])?u:["(",")"];f=x[0]+w.join(",")+x[1];break;case"spacing":f=null!=(h=cP[g])?h:" ";break;case"enclose":f="("+hP(e.body)+")";break;case"space":f=" ";break;case"subsup":f="";break;case"macro":f=null!=(p=null!=(d=cP[g])?d:uP[g])?p:hP(e.body)}if(!e.hasEmptyBranch("subscript")){f+="_";const t=hP(e.subscript);f+=1!==t.length?`(${t})`:t}if(!e.hasEmptyBranch("superscript")){f+="^";const t=hP(e.superscript);f+=1!==t.length?`(${t})`:t}return f}function dP(e,t){var n,i;null!=t||(t={}),t.mathstyle=null!=(n=t.mathstyle)?n:"displaystyle";const r=new ww({from:rp(ip({},bw()),{renderPlaceholder:()=>new nw(160,{maxFontSize:1}),letterShapeStyle:null!=(i=null==t?void 0:t.letterShapeStyle)?i:"tex"}),mathstyle:t.mathstyle}),o=new _w({mode:"math",type:"root",body:Gx(e,{context:r,parseMode:"math",mathstyle:t.mathstyle})}).render(r);if(!o)return"";rw(fS(o,r));return ow(o,{classes:"ML__latex"}).toMarkup()}function pP(e){if("string"==typeof e){const t=function(e){if(!e)return;if("#"!==e[0])return;let t;(e=e.slice(1)).length<=4?(t={r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)},4===e.length&&(t.a=parseInt(e[3]+e[3],16)/255)):(t={r:parseInt(e[0]+e[1],16),g:parseInt(e[2]+e[3],16),b:parseInt(e[4]+e[5],16)},8===e.length&&(t.a=parseInt(e[6]+e[7],16)/255));t&&void 0===t.a&&(t.a=1);return t}(e);if(!t)throw new Error(`Invalid color: ${e}`);return t}return"C"in e?function(e){return bP(gP(e))}(e):"a"in e?bP(e):e}function fP(e){return e<0?0:e>255?255:Math.round(e)}function gP(e){const[t,n,i]=[e.L,e.C,e.H],r=i*Math.PI/180,o={L:t,a:n*Math.cos(r),b:n*Math.sin(r)};return void 0!==e.alpha&&(o.alpha=e.alpha),o}function mP(e){const[t,n,i]=[e.L,e.a,e.b],r=Math.pow(.9999999984505198*t+.39633779217376786*n+.2158037580607588*i,3),o=Math.pow(1.00000000888176*t-.10556134232365635*n-.0638541747717059*i,3),a=Math.pow(1.000000054672411*t-.0894841820949657*n-1.2914855378640917*i,3),s=-1.2684380040921763*r+2.6097574006633715*o-.3413193963102197*a,l=-.004196086541837188*r-.7034186144594493*o+1.7076147009309444*a,c=e=>{const t=Math.abs(e);return t<=.0031308?12.92*e:(Math.sign(e)||1)*(1.055*Math.pow(t,1/2.4)-.055)};return[c(4.076741661347994*r-3.307711590408193*o+.230969928729428*a),c(s),c(l)]}function vP(e){const[t,n,i]=e;return t>=0&&t<=1&&n>=0&&n<=1&&i>=0&&i<=1}function yP(e,t){let[n,i,r]=e;return n=fP(255*n),i=fP(255*i),r=fP(255*r),void 0!==t?{r:n,g:i,b:r,alpha:t}:{r:n,g:i,b:r}}function bP(e){let[t,n,i]=mP(e);if(vP([t,n,i]))return yP([t,n,i],e.alpha);const r=function(e){const[t,n,i]=[e.L,e.a,e.b],r={L:t,C:Math.sqrt(n*n+i*i),H:180*Math.atan2(i,n)/Math.PI};return void 0!==e.alpha&&(r.alpha=e.alpha),r}(e);if(r.C=0,[t,n,i]=mP(gP(r)),!vP([t,n,i]))return yP([t,n,i],e.alpha);let o=0,a=e.L,s=(o+a)/2;r.C=s;const l=.36/Math.pow(2,12);for(;a-o>l;)s=(o+a)/2,r.C=s,[t,n,i]=mP(gP(r)),vP([t,n,i])?o=s:a=s;return yP([t,n,i],e.alpha)}function wP(e,t){const n=pP(e),i=pP(t);function r(e){return e>=.022?e:e+(.022-e)**1.414}function o(e){return(e<0?-1:1)*Math.pow(Math.abs(e),2.4)}const a=r(.2126729*o(i.r/255)+.7151522*o(i.g/255)+.072175*o(i.b/255)),s=r(.2126729*o(n.r/255)+.7151522*o(n.g/255)+.072175*o(n.b/255));let l,c,u;return Math.abs(s-a)<5e-4?c=0:s>a?(l=s**.56-a**.57,c=1.14*l):(l=s**.65-a**.62,c=1.14*l),u=Math.abs(c)<.1?0:c>0?c-.027:c+.027,100*u}function xP(e,t,n){null!=n||(n="#fff"),null!=t||(t="#000");const i=wP(e,n),r=wP(e,t);return Math.abs(i)>Math.abs(r)?n:t}function SP(e){const t=pP(e);let n=((1<<24)+(fP(t.r)<<16)+(fP(t.g)<<8)+fP(t.b)).toString(16).slice(1);return void 0!==t.alpha&&t.alpha<1&&(n+=("00"+Math.round(255*t.alpha).toString(16)).slice(-2)),n[0]===n[1]&&n[2]===n[3]&&n[4]===n[5]&&n[6]===n[7]&&(n=n[0]+n[2]+n[4]+(void 0!==t.alpha&&t.alpha<1?n[6]:"")),"#"+n}function kP(e){const t=_P(e);let n="";for(const e of t){if("string"!=typeof e.value)return"";n+=e.value}return n}function _P(e){const t=e.model.selection.ranges;return 1!==t.length?[]:e.model.getAtoms(t[0])}function CP(e){return[BP(e,"double-struck","mathbb","tooltip.blackboard"),BP(e,"fraktur","mathfrak","tooltip.fraktur"),BP(e,"calligraphic","mathcal","tooltip.caligraphic"),RP(e,"up","mathrm","tooltip.roman-upright"),RP(e,"bold","mathbf","tooltip.bold"),RP(e,"italic","mathit","tooltip.italic")]}function PP(e){return[{label:()=>dP(`\\vec{${kP(e)}}`),visible:()=>1===kP(e).length,onMenuSelect:()=>e.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>dP(`\\overrightarrow{${kP(e)}}`),visible:()=>kP(e).length>0,onMenuSelect:()=>e.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>dP(`\\overleftarrow{${kP(e)}}`),visible:()=>kP(e).length>0,onMenuSelect:()=>e.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>dP(`\\dot{${kP(e)}}`),visible:()=>1===kP(e).length,onMenuSelect:()=>e.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>dP(`\\ddot{${kP(e)}}`),visible:()=>1===kP(e).length,onMenuSelect:()=>e.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>dP(`\\bar{${kP(e)}}`),visible:()=>1===kP(e).length,onMenuSelect:()=>e.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>dP(`\\overline{${kP(e)}}`),visible:()=>kP(e).length>0,onMenuSelect:()=>e.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>dP(`\\overgroup{${kP(e)}}`),visible:()=>kP(e).length>0,onMenuSelect:()=>e.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>dP(`\\overbrace{${kP(e)}}`),visible:()=>kP(e).length>0,onMenuSelect:()=>e.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>dP(`\\underline{${kP(e)}}`),visible:()=>kP(e).length>0,onMenuSelect:()=>e.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>dP(`\\undergroup{${kP(e)}}`),visible:()=>kP(e).length>0,onMenuSelect:()=>e.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>dP(`\\underbrace{${kP(e)}}`),visible:()=>kP(e).length>0,onMenuSelect:()=>e.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function EP(e){return[{label:()=>dP(`\\boxed{${e.getValue(e.model.selection)}}}`),onMenuSelect:()=>e.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>dP(`\\bbox[5px, border: 2px solid red]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>dP(`\\bbox[5px, border: 2px dashed black]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function MP(e){const t=[];for(const n of Object.keys(mp))t.push({class:("#000"===SP(xP(mp[n]))?"dark-contrast":"light-contrast")+" menu-swatch",label:``,ariaLabel:()=>{var e;return null!=(e=pp(n))?e:n},checked:()=>{var t;return{some:"mixed",all:!0}[null!=(t=e.queryStyle({backgroundColor:n}))&&t]},onMenuSelect:()=>{e.applyStyle({backgroundColor:n},{operation:"toggle"}),e.adoptStyle="none"}});return t}function LP(e){const t=[];for(const n of Object.keys(vp))t.push({class:("#000"===xP(vp[n])?"dark-contrast":"light-contrast")+" menu-swatch",label:``,ariaLabel:()=>{var e;return null!=(e=pp(n))?e:n},checked:()=>{var t;return{some:"mixed",all:!0}[null!=(t=e.queryStyle({color:n}))&&t]},onMenuSelect:()=>{e.applyStyle({color:n},{operation:"toggle"}),e.adoptStyle="none"}});return t}var AP=class extends TC{constructor(e,t,n,i){super(e,t),this.row=n,this.col=i}set active(e){const t=this.parentMenu.children;if(e)for(const e of t)e.element.classList.toggle("active",e.row<=this.row&&e.col<=this.col);else for(const e of t)e.element.classList.remove("active")}};function TP(e){const t=[];for(let n=1;n<=5;n++)for(let i=1;i<=5;i++)t.push({onCreate:(e,t)=>new AP(e,t,n,i),label:"☐",tooltip:()=>pp("tooltip.row-by-col",n,i),data:{row:n,col:i},onMenuSelect:()=>{e.insert(`\\begin{pmatrix}${Array(n).fill(Array(i).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return t}function DP(e){return[{label:()=>pp("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>e.executeCommand("addRowBefore"),visible:()=>NP(e)},{label:()=>pp("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>e.executeCommand("addRowAfter"),visible:()=>NP(e)},{label:()=>pp("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>e.executeCommand("addColumnBefore"),visible:()=>NP(e),enabled:()=>{const t=e.model.parentEnvironment;if(!t)return!1;const[n,i]=function(e){var t;const n=null==(t=e.model.parentEnvironment)?void 0:t.array;return n?[n.length,n.reduce(((e,t)=>Math.max(e,t.length)),0)]:[0,0]}(e);return npp("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>e.executeCommand("addColumnAfter"),visible:()=>NP(e)},{type:"divider"},{label:()=>pp("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>e.executeCommand("removeRow"),visible:()=>NP(e)},{label:()=>pp("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>e.executeCommand("removeColumn"),visible:()=>NP(e)},{type:"divider"},{label:()=>pp("menu.borders"),visible:()=>(function(e){return"array"===e.model.at(e.model.position).type}(e)||NP(e))&&e.isSelectionEditable,submenu:[{label:" ⋱ ",id:"environment-no-border",onMenuSelect:()=>IP(e,"matrix")},{label:"(⋱)",id:"environment-parentheses",onMenuSelect:()=>IP(e,"pmatrix")},{label:"[⋱]",id:"environment-brackets",onMenuSelect:()=>IP(e,"bmatrix")},{label:"|⋱|",id:"environment-bar",onMenuSelect:()=>IP(e,"vmatrix")},{label:"{⋱}",id:"environment-braces",onMenuSelect:()=>IP(e,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>pp("menu.insert matrix"),id:"insert-matrix",visible:()=>e.isSelectionEditable,submenu:TP(e),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>pp("menu.mode"),id:"mode",visible:()=>e.isSelectionEditable&&e.model.selectionIsCollapsed,submenu:[{label:()=>pp("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{ik(e,"accept-all"),e.executeCommand(["switchMode","math"])},checked:()=>"math"===e.model.mode},{label:()=>pp("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{ik(e,"accept-all"),e.executeCommand(["switchMode","text"])},checked:()=>"text"===e.model.mode},{label:()=>pp("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>e.executeCommand(["switchMode","latex"]),checked:()=>"latex"===e.model.mode}]},{type:"divider"},{label:()=>pp("menu.font-style"),id:"variant",visible:()=>e.isSelectionEditable,submenu:CP(e),submenuClass:"variant-submenu"},{label:()=>pp("menu.color"),id:"color",visible:()=>e.isSelectionEditable,submenu:LP(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>pp("menu.background-color"),id:"background-color",visible:()=>e.isSelectionEditable,submenu:MP(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>pp("menu.accent"),id:"accent",visible:()=>e.isSelectionEditable,submenu:PP(e),submenuClass:"variant-submenu"},{label:()=>pp("menu.decoration"),id:"decoration",visible:()=>e.isSelectionEditable&&kP(e).length>0,submenu:EP(e),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>pp("menu.evaluate"),id:"ce-evaluate",visible:()=>e.isSelectionEditable&&null!==window.MathfieldElement.computeEngine,onMenuSelect:()=>{const t=function(e){var t,n;let i;i=e.model.selectionIsCollapsed?null==(t=window.MathfieldElement.computeEngine)?void 0:t.parse(e.getValue(),{canonical:!1}):null==(n=window.MathfieldElement.computeEngine)?void 0:n.parse(e.getValue(e.model.selection),{canonical:!1});if(!i)return"";let r=i.evaluate();r.isSame(i)&&(r=i.N());return r.latex}(e);t?e.model.selectionIsCollapsed?(e.model.position=e.model.lastOffset,e.insert(`=${t}`,{insertionMode:"insertAfter",selectionMode:"item"})):e.insert(t,{insertionMode:"replaceSelection",selectionMode:"item"}):e.model.announce("plonk")}},{label:()=>pp("menu.simplify"),id:"ce-simplify",visible:()=>e.isSelectionEditable&&null!==window.MathfieldElement.computeEngine,onMenuSelect:()=>{var t,n;if(e.model.selectionIsCollapsed){const n=null==(t=e.expression)?void 0:t.simplify();if(e.model.position=e.model.lastOffset,!n)return void e.model.announce("plonk");e.insert(`=${n.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const t=null==(n=window.MathfieldElement.computeEngine)?void 0:n.parse(e.getValue(e.model.selection)).simplify();if(!t)return void e.model.announce("plonk");e.insert(t.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var t;if(null===window.MathfieldElement.computeEngine)return"";const n=null==(t=e.expression)?void 0:t.unknowns[0];return n?pp("menu.solve-for",dP(n)):pp("menu.solve")},id:"ce-solve",visible:()=>{var t;return e.isSelectionEditable&&null!==window.MathfieldElement.computeEngine&&1===(null==(t=e.expression)?void 0:t.unknowns.length)&&"Nothing"!==e.expression.unknowns[0]},onMenuSelect:()=>{var t;const n=e.expression,i=null==n?void 0:n.unknowns[0],r=null==(t=n.solve(i))?void 0:t.map((e=>{var t;return null!=(t=e.simplify().latex)?t:""}));r?e.insert(`${i}=${1===r.length?r[0]:"\\left\\lbrace"+(null==r?void 0:r.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"}):e.model.announce("plonk")}},{type:"divider"},{label:()=>pp("menu.cut"),onMenuSelect:()=>e.executeCommand("cutToClipboard"),visible:()=>!e.options.readOnly&&e.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>pp("menu.copy"),id:"copy",submenu:[{label:()=>pp("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Zw.copyToClipboard(e,"latex"),keyboardShortcut:"meta+C"},{label:()=>pp("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Zw.copyToClipboard(e,"ascii-math")},{label:()=>pp("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Zw.copyToClipboard(e,"math-ml")}]},{label:()=>pp("menu.paste"),id:"paste",onMenuSelect:()=>e.executeCommand("pasteFromClipboard"),visible:()=>e.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>pp("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>e.executeCommand("selectAll")}]}function NP(e){var t;return!!(null==(t=e.model.parentEnvironment)?void 0:t.array)}function IP(e,t){ek(e),e.flushInlineShortcutBuffer(),v_(e.model,t),yk(e)}function BP(e,t,n,i){return{label:()=>dP(`\\${n}{${kP(e)}}`),tooltip:()=>{var e;return null!=(e=pp(i))?e:i},visible:()=>function(e,t){const n=_P(e);if(1!==n.length)return!1;const i=wS[t];return!!i&&!!i.test(n[0].value)}(e,t),checked:()=>{var n;return{some:"mixed",all:!0}[null!=(n=e.queryStyle({variant:t}))&&n]},onMenuSelect:()=>{e.applyStyle({variant:t},{operation:"toggle"}),e.adoptStyle="none"}}}function RP(e,t,n,i){return{label:()=>dP(`\\${n}{${kP(e)}}`),tooltip:()=>{var e;return null!=(e=pp(i))?e:i},visible:()=>function(e,t){return kP(e).length>0}(e),checked:()=>{var n;return{some:"mixed",all:!0}[null!=(n=e.queryStyle({variantStyle:t}))&&n]},onMenuSelect:()=>{e.applyStyle({variantStyle:t},{operation:"toggle"}),e.adoptStyle="none"}}}function OP(e,t){return e+lP(t)}function FP(e){var t;let n;if("prompt"===e.parent.type)"body"===e.parentBranch&&(n="prompt");else if("body"===e.parentBranch)n=e.type&&null!=(t={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[e.type])?t:"parent";else if("genfrac"===e.parent.type){if("above"===e.parentBranch)return"numerator";if("below"===e.parentBranch)return"denominator"}else"surd"===e.parent.type?"above"===e.parentBranch&&(n="index"):"superscript"===e.parentBranch?n="superscript":"subscript"===e.parentBranch&&(n="subscript");return n||console.log("unknown relationship"),null!=n?n:"parent"}function zP(e,t,n,i){let r="";if("plonk"===t)window.MathfieldElement.playSound("plonk"),e.flushInlineShortcutBuffer();else if("delete"===t)r=OP("deleted: ",i);else if("focus"===t||t.includes("move"))r=function(e,t){if(Number.isNaN(t))return"";const n=e.at(t);if(!n)return"";if(n.treeDepth<=e.at(e.position).treeDepth)return"";let i="",r=n.parent;const o=e.at(e.position).parent;for(;r!==e.root&&r!==o;)i+=`out of ${FP(r)};`,r=r.parent;return i}(e.model,n)+(e.model.selectionIsCollapsed?"":"selected: ")+function(e){if(!e.selectionIsCollapsed)return OP("",e.getAtoms(e.selection));let t="";const n=e.at(e.position),i=FP(n);n.isFirstSibling&&(t=(i?"start of "+i:"unknown")+": ");n.isLastSibling?n.isFirstSibling||(t+=i?"end of "+i:"unknown"):t+=OP("",n);return t}(e.model);else if("replacement"===t)r=OP("",e.model.at(e.model.position));else if("line"===t){const t=OP("",e.model.root);e.keyboardDelegate.setAriaLabel(t)}else r=i?OP(t+" ",i):t;if(r){const t=e.ariaLiveText.textContent.includes(" ")?"   ":"   ";e.ariaLiveText.textContent=r+t}}kk({speak:(e,t,n)=>function(e,t,n){var i,r;n=null!=n?n:{withHighlighting:!1};const{model:o}=e;function a(e){let t=null;switch(e){case"all":default:t=o.root;break;case"selection":t=o.getAtoms(o.selection);break;case"left":t=o.getAtoms(o.offsetOf(o.at(o.position).leftSibling),o.position);break;case"right":t=o.getAtoms(o.position,o.offsetOf(o.at(o.position).rightSibling));break;case"group":t=o.getAtoms(o.getSiblingsRange(o.position));break;case"parent":{const{parent:e}=o.at(o.position);t=(null==e?void 0:e.parent)?e:o.root;break}}return t}function s(e){let t="";switch(e){case"all":console.log("Internal failure: speak all failed");break;case"selection":t="no selection";break;case"left":t="at start";break;case"right":t="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":t="no parent";break;default:console.log('unknown speak_ param value: "'+e+'"')}return t}const l=a(t);if(null===l)return null==(r=(i=window.MathfieldElement).speakHook)||r.call(i,s(t)),!1;(n.withHighlighting||"amazon"===window.MathfieldElement.speechEngine)&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&"sre"===window.MathfieldElement.textToSpeechRules?"ssml_step":"ssml");const c=lP(l);lp()&&n.withHighlighting?(oE().readAloudMathfield=e,wk(e,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(e.field,c)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(c);return!1}(e,t,n)},{target:"mathfield"});function jP(e,t,n,i){const r=e.offsetOf(t);if(ri)return!1;if(!t.hasChildren)return!0;const o=e.offsetOf(t.firstChild);if(o>=n&&o<=i){const r=e.offsetOf(t.lastChild);if(r>=n&&r<=i)return!0}return!1}function $P(e,t,n){if(!(null==t?void 0:t.hasChildren))return!1;const[i,r]=n,o=e.offsetOf(t.firstChild),a=e.offsetOf(t.lastChild);return o>=i&&o<=r&&a>=o&&a<=r}function HP(e,t,n,i){var r,o,a,s,l,c;const u=n.parent;if(u&&n instanceof Ox){const r=!i&&"forward"===t||"body"===i&&"backward"===t;let o=r?e.offsetOf(n.firstChild):e.offsetOf(n.lastChild);return r?"?"!==n.rightDelim&&"."!==n.rightDelim?(n.leftDelim=".",n.isDirty=!0):(u.addChildrenAfter(n.removeBranch("body"),n),u.removeChild(n),o--):"?"!==n.leftDelim&&"."!==n.leftDelim?(n.rightDelim=".",n.isDirty=!0):(u.addChildrenAfter(n.removeBranch("body"),n),u.removeChild(n),o--),e.position=o,!0}if(u&&"surd"===n.type){if("forward"===t&&!i||"backward"===t&&"body"===i){const t=n.leftSibling;n.hasChildren&&u.addChildrenAfter(n.removeBranch("body"),n),u.removeChild(n),e.position=e.offsetOf(t)}else"forward"===t&&"body"===i?e.position=e.offsetOf(n):i||"backward"!==t?"above"===i&&(n.hasEmptyBranch("above")&&n.removeBranch("above"),e.position="backward"===t?e.offsetOf(n.leftSibling):e.offsetOf(n.body[0])):n.hasChildren?e.position=e.offsetOf(n.lastChild):(e.position=Math.max(0,e.offsetOf(n)-1),u.removeChild(n));return!0}if(u&&("box"===n.type||"enclose"===n.type)){const r=i&&"backward"===t||!i&&"forward"===t?n.leftSibling:n.lastChild;return u.addChildrenAfter(n.removeBranch("body"),n),u.removeChild(n),e.position=e.offsetOf(r),!0}if("genfrac"===n.type||"overunder"===n.type){if(!i)return("overunder"!==n.type||!n.hasEmptyBranch("body"))&&(("genfrac"!==n.type||!n.hasEmptyBranch("below")||!n.hasEmptyBranch("above"))&&(e.position=e.offsetOf("forward"===t?n.firstChild:n.lastChild),!0));const r="numerator-denominator"===XP.fractionNavigationOrder?"above":"below",o="above"===r?"below":"above";if(u&&("forward"===t&&i===r||"backward"===t&&i===o)){const t=n.removeBranch(r),i=n.removeBranch(o);return u.addChildrenAfter([...t,...i],n),u.removeChild(n),e.position=e.offsetOf(t.length>0?t[t.length-1]:i[0]),!0}return e.position="backward"===t?e.offsetOf(n.leftSibling):e.offsetOf(n),!0}if(n.isExtensibleSymbol||"subsup"===n.type){if(!i&&"forward"===t)return!1;if(!i){if(n.subscript||n.superscript){const i="forward"===t?null!=(a=null==(r=n.superscript)?void 0:r[0])?a:null==(o=n.subscript)?void 0:o[0]:null!=(c=null==(s=n.subscript)?void 0:s[0].lastSibling)?c:null==(l=n.superscript)?void 0:l[0].lastSibling;return i&&(e.position=e.offsetOf(i)),!0}return!1}if(!n.hasChildren&&"subsup"===n.type){const i="forward"===t?e.offsetOf(n):Math.max(0,e.offsetOf(n)-1);return n.parent.removeChild(n),e.position=i,!0}if("superscript"===i)if("backward"===t){const t=e.offsetOf(n.firstChild)-1;console.assert(t>=0),e.position=t}else n.subscript?e.position=e.offsetOf(n.subscript[0]):e.position=e.offsetOf(n);else"subscript"===i&&("backward"===t&&n.superscript?e.position=e.offsetOf(n.superscript[0].lastSibling):e.position="backward"===t?e.offsetOf(n.firstChild)-1:e.offsetOf(n));if(i&&n.hasEmptyBranch(i)&&(n.removeBranch(i),"subsup"===n.type&&!n.subscript&&!n.superscript)){const i="forward"===t?e.offsetOf(n):Math.max(0,e.offsetOf(n)-1);n.parent.removeChild(n),e.position=i}return!0}if("genfrac"===(null==u?void 0:u.type)&&!i&&"first"!==n.type){let t=e.offsetOf(n.leftSibling);return u.removeChild(n),u.hasEmptyBranch("above")&&u.hasEmptyBranch("below")?(t=e.offsetOf(u.leftSibling),u.parent.removeChild(u),e.announce("delete",void 0,[u]),e.position=t,!0):(e.announce("delete",void 0,[n]),e.position=t,!0)}if("backward"===t&&("\\ln"===(null==u?void 0:u.command)||"\\log"===(null==u?void 0:u.command))&&"body"!==n.parentBranch){const t=e.offsetOf(u.leftSibling);return u.parent.removeChild(u),e.announce("delete",void 0,[u]),e.position=t,!0}return!1}function ZP(e,t,n){const i=e.getAtoms(t);if(i.length>0&&i[0].parent){let r=i[0].parent.firstChild;"first"===r.type&&(r=r.rightSibling);const o=i[i.length-1].parent.lastChild;let a=i[0];"first"===a.type&&(a=a.rightSibling);const s=i[i.length-1];if(a===r&&s===o){const n=i[0].parent;n.parent&&"prompt"!==n.type&&(t=[e.offsetOf(n.leftSibling),e.offsetOf(n)])}if(1===i.length&&"placeholder"===i[0].type&&"genfrac"===i[0].parent.type){const t=i[0].parent,r="below"===i[0].parentBranch?"above":"below",o=e.offsetOf(t.leftSibling);return e.deferNotifications({content:!0,selection:!0,type:n},(()=>{var n,i;const a=t.removeBranch(r);if(1!==a.length||"placeholder"!==a[0].type){const i=t.parent.addChildrenAfter(a,t);null==(n=t.parent)||n.removeChild(t),e.position=e.offsetOf(i)}else null==(i=t.parent)||i.removeChild(t),e.position=Math.max(0,o)}))}}return e.deferNotifications({content:!0,selection:!0,type:n},(()=>e.deleteAtoms(t)))}kk({deleteAll:e=>e.contentWillChange({inputType:"deleteContent"})&&ZP(e,[0,-1],"deleteContent"),deleteForward:e=>function(e){return!!e.mathfield.isSelectionEditable&&!!e.contentWillChange({inputType:"deleteContentForward"})&&(e.selectionIsCollapsed?e.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},(()=>{var t,n;let i=e.at(e.position).rightSibling;if(i&&HP(e,"forward",i))return;if(i){if(e.at(e.position).isLastSibling&&HP(e,"forward",i.parent,i.parentBranch))return}else{if(i=e.at(e.position),i.isLastSibling&&HP(e,"forward",i.parent,i.parentBranch))return;i=void 0}if(e.position===e.lastOffset||!i)return void e.announce("plonk");i.parent.removeChild(i);let r=null==(t=e.at(e.position))?void 0:t.rightSibling;for(;"subsup"===(null==r?void 0:r.type);)r.parent.removeChild(r),r=null==(n=e.at(e.position))?void 0:n.rightSibling;e.announce("delete",void 0,[i])})):ZP(e,Lw(e.selection),"deleteContentForward"))}(e),deleteBackward:e=>function(e){return!!e.mathfield.isSelectionEditable&&!!e.contentWillChange({inputType:"deleteContentBackward"})&&(e.selectionIsCollapsed?e.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},(()=>{let t=e.at(e.position);if(!t||!HP(e,"backward",t)){if(null==t?void 0:t.isFirstSibling){if(HP(e,"backward",t.parent,t.parentBranch))return;t=null}t?(e.position=e.offsetOf(t.leftSibling),t.parent.removeChild(t),e.announce("delete",void 0,[t])):e.announce("plonk")}})):ZP(e,Lw(e.selection),"deleteContentBackward"))}(e),deleteNextWord:e=>e.contentWillChange({inputType:"deleteWordForward"})&&ZP(e,[e.anchor,S_(e,e.position,"forward")],"deleteWordForward"),deletePreviousWord:e=>e.contentWillChange({inputType:"deleteWordBackward"})&&ZP(e,[e.anchor,S_(e,e.position,"backward")],"deleteWordBackward"),deleteToGroupStart:e=>e.contentWillChange({inputType:"deleteSoftLineBackward"})&&ZP(e,[e.anchor,e.offsetOf(e.at(e.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:e=>e.contentWillChange({inputType:"deleteSoftLineForward"})&&ZP(e,[e.anchor,e.offsetOf(e.at(e.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:e=>e.contentWillChange({inputType:"deleteHardLineBackward"})&&ZP(e,[e.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:e=>e.contentWillChange({inputType:"deleteHardLineForward"})&&ZP(e,[e.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var KP=``,GP=``;function UP(e){if(e&&(e.classList.remove("ML__highlight"),e.children))for(const t of e.children)UP(t)}function VP(e,t){var n;e&&(t&&(null==(n=e.dataset)?void 0:n.atomId)!==t?(e.classList.remove("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach((e=>{e instanceof HTMLElement&&VP(e,t)}))):(e.classList.add("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach((e=>{e instanceof HTMLElement&&VP(e)}))))}lp()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var WP=new WeakMap,qP={letterShapeStyle:"mf.letterShapeStyle = ...",horizontalSpacingScale:'Removed. Use `"thinmuskip"`, `"medmuskip"`, and `"thickmuskip"` registers ',macros:"mf.macros = ...",registers:"mf.registers = ...",backgroundColorMap:"mf.backgroundColorMap = ...",colorMap:"mf.colorMap = ...",enablePopover:"mf.popoverPolicy = ...",mathModeSpace:"mf.mathModeSpace = ...",placeholderSymbol:"mf.placeholderSymbol = ...",readOnly:"mf.readOnly = ...",removeExtraneousParentheses:"mf.removeExtraneousParentheses = ...",scriptDepth:"mf.scriptDepth = ...",smartFence:"mf.smartFence = ...",smartMode:"mf.smartMode = ...",smartSuperscript:"mf.smartSuperscript = ...",inlineShortcutTimeout:"mf.inlineShortcutTimeout = ...",inlineShortcuts:"mf.inlineShortcuts = ...",keybindings:"mf.keybindings = ...",virtualKeyboardMode:"mf.mathVirtualKeyboardPolicy = ...",customVirtualKeyboardLayers:"mathVirtualKeyboard.layers = ...",customVirtualKeyboards:"mathVirtualKeyboard.layouts = ...",keypressSound:"mathVirtualKeyboard.keypressSound = ...",keypressVibration:"mathVirtualKeyboard.keypressVibration = ...",plonkSound:"mathVirtualKeyboard.plonkSound = ...",virtualKeyboardContainer:"mathVirtualKeyboard.container = ...",virtualKeyboardLayout:"mathVirtualKeyboard.alphabeticLayout = ...",virtualKeyboardTheme:"No longer supported",virtualKeyboardToggleGlyph:"No longer supported",virtualKeyboardToolbar:"mathVirtualKeyboard.editToolbar = ...",virtualKeyboards:"Use `mathVirtualKeyboard.layouts`",speechEngine:"`MathfieldElement.speechEngine`",speechEngineRate:"`MathfieldElement.speechEngineRate`",speechEngineVoice:"`MathfieldElement.speechEngineVoice`",textToSpeechMarkup:"`MathfieldElement.textToSpeechMarkup`",textToSpeechRules:"`MathfieldElement.textToSpeechRules`",textToSpeechRulesOptions:"`MathfieldElement.textToSpeechRulesOptions`",readAloudHook:"`MathfieldElement.readAloudHook`",speakHook:"`MathfieldElement.speakHook`",computeEngine:"`MathfieldElement.computeEngine`",fontsDirectory:"`MathfieldElement.fontsDirectory`",soundsDirectory:"`MathfieldElement.soundsDirectory`",createHTML:"`MathfieldElement.createHTML`",onExport:"`MathfieldElement.onExport`",onInlineShortcut:"`MathfieldElement.onInlineShortcut`",onScrollIntoView:"`MathfieldElement.onScrollIntoView`",locale:"MathfieldElement.locale = ...",strings:"MathfieldElement.strings = ...",decimalSeparator:"MathfieldElement.decimalSeparator = ...",fractionNavigationOrder:"MathfieldElement.fractionNavigationOrder = ..."},YP=class e extends HTMLElement{static get formAssociated(){return eE()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(e){e!==this._fontsDirectory&&(this._fontsDirectory=e,async function(){gk="not-loaded",mk()}())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(e){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(e){this._soundsDirectory=e,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(e){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(e){var t,n,i;this.audioBuffers={},null===e?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:"string"==typeof e?this._keypressSound={spacebar:e,return:e,delete:e,default:e}:"object"==typeof e&&"default"in e&&(this._keypressSound={spacebar:null!=(t=e.spacebar)?t:e.default,return:null!=(n=e.return)?n:e.default,delete:null!=(i=e.delete)?i:e.default,default:e.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(e){this.audioBuffers={},this._plonkSound=e}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(e){this._speechEngine=e}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(e){this._speechEngineRate=e}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(e){this._speechEngineVoice=e}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(e){this._textToSpeechMarkup=e}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(e){this._textToSpeechRules=e}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(e){this._textToSpeechRulesOptions=e}static get locale(){return dp.locale}static set locale(e){"auto"===e&&(e=navigator.language.slice(0,5)),dp.locale=e}get locale(){throw new Error("Use MathfieldElement.locale instead")}set locale(e){throw new Error("Use MathfieldElement.locale instead")}static get strings(){return dp.strings}static set strings(e){dp.merge(e)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(e){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(e){this._decimalSeparator=e,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=","===this.decimalSeparator?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(e){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var e,t;if(void 0===this._computeEngine){const t=null==(e=window[Symbol.for("io.cortexjs.compute-engine")])?void 0:e.ComputeEngine;if(!t)return null;this._computeEngine=new t,this._computeEngine&&","===this.decimalSeparator&&(this._computeEngine.latexOptions.decimalMarker="{,}")}return null!=(t=this._computeEngine)?t:null}static set computeEngine(e){this._computeEngine=e}get computeEngine(){throw new Error("Use MathfieldElement.computeEngine instead")}set computeEngine(e){throw new Error("Use MathfieldElement.computeEngine instead")}static get isFunction(){return"function"!=typeof this._isFunction?()=>!1:this._isFunction}static set isFunction(e){this._isFunction=e}static async loadSound(e){delete this.audioBuffers[e];let t="";switch(e){case"keypress":t=this._keypressSound.default;break;case"return":t=this._keypressSound.return;break;case"spacebar":t=this._keypressSound.spacebar;break;case"delete":t=this._keypressSound.delete;break;case"plonk":t=this.plonkSound}if("string"!=typeof t)return;t=t.trim();const n=this.soundsDirectory;if(null!=n&&"null"!==n&&"none"!==t&&"null"!==t)try{const i=await fetch(await fk(`${n}/${t}`)),r=await i.arrayBuffer(),o=await this.audioContext.decodeAudioData(r);this.audioBuffers[e]=o}catch(e){}}static async playSound(e){if("suspended"!==this.audioContext.state&&"interrupted"!==this.audioContext.state||await this.audioContext.resume(),this.audioBuffers[e]||await this.loadSound(e),!this.audioBuffers[e])return;const t=this.audioContext.createBufferSource();t.buffer=this.audioBuffers[e];const n=this.audioContext.createGain();n.gain.value=.5,t.connect(n).connect(this.audioContext.destination),t.start()}constructor(e){if(super(),e){const t=[];for(const n of Object.keys(e))if(qP[n])if(qP[n].startsWith("mf."))if(qP[n].startsWith(`mf.${n}`))t.push(`Option \`${n}\` cannot be used as a constructor option. Use ${qP[n]}`);else{const e=qP[n].match(/([a-zA-Z]+) =/);t.push(`Option \`${n}\` has been renamed \`${e[1]}\``)}else t.push(`Option \`${n}\` cannot be used as a constructor option. Use ${qP[n]}`);if(t.length>0){console.group("%cMathLive 0.98.5: %cInvalid Options","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn("Some of the options passed to `new MathfieldElement(...)` are invalid. \n See https://cortexjs.io/mathlive/changelog/ for details.");for(const e of t)console.warn(e);console.groupEnd()}}if(eE()&&(this._internals=this.attachInternals(),this._internals.role="math",this._internals.ariaLabel="math input field",this._internals.ariaMultiLine="false"),this.attachShadow({mode:"open",delegatesFocus:!0}),this.shadowRoot&&"adoptedStyleSheets"in this.shadowRoot){this.shadowRoot.adoptedStyleSheets=[rx("core"),rx("mathfield"),rx("mathfield-element"),rx("ui"),rx("menu")],this.shadowRoot.appendChild(document.createElement("span"));const e=document.createElement("slot");e.style.display="none",this.shadowRoot.appendChild(e)}else this.shadowRoot.innerHTML="';e&&this._setOptions(e),this.shadowRoot.addEventListener("slotchange",(()=>{var e;const t=this.shadowRoot.querySelector("slot:not([name])");this.value=null!=(e=null==t?void 0:t.assignedNodes().map((e=>3===e.nodeType?e.textContent:"")).join("").trim())?e:""}))}showMenu(e){var t,n;return null!=(n=null==(t=this._mathfield)?void 0:t.showMenu(e))&&n}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",(e=>{var t;e.target!==this||(null==(t=this._mathfield)?void 0:t.disabled)||this.dispatchEvent(new MouseEvent("click",{altKey:e.altKey,button:e.button,buttons:e.buttons,clientX:e.clientX,clientY:e.clientY,ctrlKey:e.ctrlKey,metaKey:e.metaKey,movementX:e.movementX,movementY:e.movementY,relatedTarget:e.relatedTarget,screenX:e.screenX,screenY:e.screenY,shiftKey:e.shiftKey}))}),{once:!0})}getPromptValue(e,t){var n,i;return null!=(i=null==(n=this._mathfield)?void 0:n.getPromptValue(e,t))?i:""}setPromptValue(e,t,n){var i;null==(i=this._mathfield)||i.setPromptValue(e,t,n)}getPromptRange(e){var t,n;return null!=(n=null==(t=this._mathfield)?void 0:t.getPromptRange(e))?n:null}getPrompts(e){var t,n;return null!=(n=null==(t=this._mathfield)?void 0:t.getPrompts(e))?n:[]}get form(){var e;return null==(e=this._internals)?void 0:e.form}get name(){var e;return null!=(e=this.getAttribute("name"))?e:""}get type(){return this.localName}get mode(){var e,t;return null!=(t=null==(e=this._mathfield)?void 0:e.model.mode)?t:"text"===this.defaultMode?"text":"math"}set mode(e){var t;null==(t=this._mathfield)||t.switchMode(e)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error('MathLive 0.98.5: The CortexJS Compute Engine library is not available.\n \n Load the library, for example with:\n \n import "https://unpkg.com/@cortex-js/compute-engine?module"'),null)}set expression(t){var n,i;if(!this._mathfield)return;const r=null!=(i=null==(n=e.computeEngine)?void 0:n.box(t).latex)?i:null;null!==r&&this._mathfield.setValue(r),window[Symbol.for("io.cortexjs.compute-engine")]||console.error('MathLive 0.98.5: The CortexJS Compute Engine library is not available.\n \n Load the library, for example with:\n \n import "https://unpkg.com/@cortex-js/compute-engine?module"')}get errors(){var e,t;return null!=(t=null==(e=this._mathfield)?void 0:e.errors)?t:[]}_getOptions(e){return this._mathfield?i_(this._mathfield.options,e):WP.has(this)?ip({},i_(ip(ip({},r_()),n_(WP.get(this).options)),e)):null}getOptions(e){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOptions()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._mathfield?i_(this._mathfield.options,e):WP.has(this)?i_(ip(ip({},r_()),n_(WP.get(this).options)),e):null}reflectAttributes(){const t=r_(),n=this._getOptions();Object.keys(e.optionsAttributes).forEach((i=>{const r=QP(i);"on/off"===e.optionsAttributes[i]?t[r]!==n[r]?this.setAttribute(i,n[r]?"on":"off"):this.removeAttribute(i):t[r]!==n[r]&&("boolean"===e.optionsAttributes[i]?n[r]?this.setAttribute(i,""):this.removeAttribute(i):"string"!=typeof n[r]&&"number"!=typeof n[r]||this.setAttribute(i,n[r].toString()))}))}getOption(e){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOption()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._getOptions([e])[e]}_getOption(e){return this._getOptions([e])[e]}_setOptions(e){if(this._mathfield)this._mathfield.setOptions(e);else if(WP.has(this)){const t=ip(ip({},WP.get(this).options),e);WP.set(this,rp(ip({},WP.get(this)),{selection:{ranges:t.readOnly?[[0,0]]:[[0,-1]]},options:t}))}else WP.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:e,menuItems:void 0});this.reflectAttributes()}setOptions(e){console.group("%cMathLive 0.98.5: %cDeprecated Usage","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn(" `mf.setOptions()` is deprecated. Set the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.");for(const t of Object.keys(e))qP[t]&&console.warn(`\`mf.setOptions({${t}:...})\` -> ${qP[t]}`);console.groupEnd(),this._setOptions(e)}executeCommand(e){var t,n;return null!=(n=null==(t=this._mathfield)?void 0:t.executeCommand(e))&&n}getValue(e,t,n){var i,r;if(this._mathfield)return this._mathfield.model.getValue(e,t,n);if(WP.has(this)){let o,a,s;if(Dw(e)?([o,a]=e.ranges[0],s=t):Tw(e)?([o,a]=e,s=t):Aw(e)&&Aw(t)?(o=e,a=t,s=n):(o=0,a=-1,s=e),(void 0===s||"latex"===s)&&0===o&&-1===a)return null!=(r=null!=(i=WP.get(this).value)?i:this.textContent)?r:""}return""}setValue(e,t){if(this._mathfield&&void 0!==e)return null!=t||(t={silenceNotifications:!0,mode:"math"}),void this._mathfield.setValue(e,t);if(WP.has(this)){const t=WP.get(this).options;return void WP.set(this,{value:e,selection:{ranges:[[-1,-1]],direction:"forward"},options:t,menuItems:void 0})}const n=JP(this);WP.set(this,{value:e,selection:{ranges:[[-1,-1]],direction:"forward"},options:n,menuItems:void 0})}hasFocus(){var e,t;return null!=(t=null==(e=this._mathfield)?void 0:e.hasFocus())&&t}focus(){var e;null==(e=this._mathfield)||e.focus()}blur(){var e;null==(e=this._mathfield)||e.blur()}select(){var e;null==(e=this._mathfield)||e.select()}insert(e,t){var n,i;return null!=(i=null==(n=this._mathfield)?void 0:n.insert(e,t))&&i}applyStyle(e,t){var n;return null==(n=this._mathfield)?void 0:n.applyStyle(e,t)}queryStyle(e){var t,n;return null!=(n=null==(t=this._mathfield)?void 0:t.queryStyle(e))?n:"none"}get caretPoint(){var e,t;return null!=(t=null==(e=this._mathfield)?void 0:e.getCaretPoint())?t:null}set caretPoint(e){var t;e&&(null==(t=this._mathfield)||t.setCaretPoint(e.x,e.y))}setCaretPoint(e,t){var n,i;return null!=(i=null==(n=this._mathfield)?void 0:n.setCaretPoint(e,t))&&i}offsetFromPoint(e,t,n){return this._mathfield?oC(this._mathfield,e,t,n):-1}hitboxFromOffset(e){if(!this._mathfield)return null;const t=this._mathfield.model.at(e);if(!t)return null;const n=Xw(this._mathfield,t);return n?new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top):null}resetUndo(){var e;null==(e=this._mathfield)||e.resetUndo()}canUndo(){return!!this._mathfield&&this._mathfield.canUndo()}canRedo(){return!!this._mathfield&&this._mathfield.canRedo()}handleEvent(e){var t,n,i,r;"closed"===GS.state&&"closed"===(null==(n=null==(t=this._mathfield)?void 0:t.menu)?void 0:n.state)&&("pointerdown"===e.type&&this.onPointerDown(),"focus"===e.type&&(null==(i=this._mathfield)||i.focus()),"blur"===e.type&&(null==(r=this._mathfield)||r.blur()))}connectedCallback(){var t,n,i,r;const o=window.getComputedStyle(this),a=this.shadowRoot,s="none"!==o.userSelect;if(s)a.host.addEventListener("pointerdown",this,!0);else{a.querySelector("span").style.pointerEvents="none"}a.host.addEventListener("focus",this,!0),a.host.addEventListener("blur",this,!0),eE()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),s&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const l=a.querySelector("slot:not([name])");if(l)try{this._style=l.assignedElements().filter((e=>"style"===e.tagName.toLowerCase())).map((e=>e.textContent)).join("")}catch(e){console.error(e)}if(this._style){const e=document.createElement("style");e.textContent=this._style,a.appendChild(e)}let c="";if(c=this.hasAttribute("value")?this.getAttribute("value"):null!=(t=null==l?void 0:l.assignedNodes().map((e=>3===e.nodeType?e.textContent:"")).join("").trim())?t:"",this._mathfield=new class{constructor(e,t){var n,i,r;this.focusBlurInProgress=!1,this.options=ip(rp(ip({},r_()),{macros:Yp(),registers:yw()}),n_(t)),this.eventController=new AbortController;const o=this.eventController.signal;t.eventSink&&(this.host=t.eventSink),this.element=e,e.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left","inline-math"===this.options.defaultMode?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let a=null!=(i=null!=(n=t.value)?n:this.element.textContent)?i:"";a=a.trim();const s=o_(this.options),l=new _w({type:"root",mode:s,body:Gx(a,{context:this.context})});this.model=new class{constructor(e,t,n){this.mathfield=e,this.mode=t,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=n}dispose(){this.mathfield=void 0}getState(){const e={ranges:[...this._selection.ranges]};return this.selection.direction&&"none"!==this.selection.direction&&(e.direction=this.selection.direction),{content:this.root.toJson(),selection:e,mode:this.mode}}setState(e,t){var n;const i=this.silenceNotifications;this.silenceNotifications=null==(n=null==t?void 0:t.silenceNotifications)||n;let r={};if("undo"===(null==t?void 0:t.type)&&(r={inputType:"historyUndo"}),"redo"===(null==t?void 0:t.type)&&(r={inputType:"historyRedo"}),this.contentWillChange(r)){const t=this.silenceNotifications;this.silenceNotifications=!0,this.mode=e.mode,this.root=yS(e.content),this.selection=e.selection,this.silenceNotifications=t,this.contentDidChange(r)}this.silenceNotifications=i}get atoms(){return this.root.children}get selection(){return this._selection}set selection(e){this.setSelection(e)}setSelection(e,t){return!(!this.mathfield.contentEditable&&"none"===this.mathfield.userSelect)&&this.deferNotifications({selection:!0},(()=>{var n,i,r;const o=this.normalizeSelection(e,t);if(void 0===o)throw new TypeError("Invalid selection");if(1===o.ranges.length&&o.ranges[0][0]===o.ranges[0][1]){const e=o.ranges[0][0];return this.mathfield.dirty||(null==(n=this.at(e))?void 0:n.parentPrompt)||!this.mathfield.hasEditablePrompts?(this._anchor=e,this._position=e,void(this._selection=o)):(null==(i=this.at(e-1))?void 0:i.parentPrompt)?(this._anchor=this.normalizeOffset(e-1),this._position=this._anchor,void(this._selection=this.normalizeSelection(this._anchor))):(null==(r=this.at(e+1))?void 0:r.parentPrompt)?(this._anchor=this.normalizeOffset(e+1),this._position=this._anchor,void(this._selection=this.normalizeSelection(this._anchor))):(this._anchor=0,this._position=0,void(this._selection={ranges:[[0,0]]}))}const a=Lw(o);"backward"===o.direction?[this._position,this._anchor]=a:[this._anchor,this._position]=a;const s=this.at(a[0]+1),l=this.at(a[1]),c=_w.commonAncestor(s,l);"array"===(null==c?void 0:c.type)&&s.parent===c&&l.parent,this._selection={ranges:[a],direction:o.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)}))}setPositionHandlingPlaceholder(e){var t;const n=this.at(e);"placeholder"===(null==n?void 0:n.type)?this.setSelection(e-1,e):"placeholder"===(null==(t=null==n?void 0:n.rightSibling)?void 0:t.type)?this.setSelection(e,e+1):this.position=e,n instanceof nS&&n.isSuggestion&&(n.isSuggestion=!1),this.mathfield.stopCoalescingUndo()}get position(){return this._position}set position(e){this.setSelection(e,e)}get anchor(){return this._anchor}get selectionIsCollapsed(){return this._anchor===this._position}get selectionIsPlaceholder(){return 1===Math.abs(this._anchor-this._position)&&"placeholder"===this.at(Math.max(this._anchor,this._position)).type}collapseSelection(e="forward"){return this._anchor!==this._position&&(this.position="backward"===e?Math.min(this._anchor,this._position):Math.max(this._anchor,this._position),!0)}get lastOffset(){return this.atoms.length-1}at(e){return this.atoms[e]}offsetOf(e){return this.atoms.indexOf(e)}getSiblingsRange(e){const t=this.at(e),{parent:n}=t;if(!n)return[0,this.lastOffset];const i=t.parent.branch(t.parentBranch);return[this.offsetOf(i[0]),this.offsetOf(i[i.length-1])]}getBranchRange(e,t){const n=this.at(e).branch(t);return[this.offsetOf(n[0]),this.offsetOf(n[n.length-1])]}getAtoms(e,t,n){let i,r,o=null!=n?n:{};if(Dw(e)){if(o=null!=t?t:{},e.ranges.length>1)return e.ranges.reduce(((e,t)=>[...e,...this.getAtoms(t,o)]),[]);e=e.ranges[0]}if(Aw(e)){if(i=e,!Aw(t))return[];r=t}else[i,r]=e,o=null!=t?t:{};if(!Number.isFinite(i))return[];void 0===o.includeChildren&&(o.includeChildren=!1),i<0&&(i=this.lastOffset-i+1),r<0&&(r=this.lastOffset-r+1);const a=Math.min(i,r)+1,s=Math.max(i,r);if(!o.includeChildren&&1===a&&s===this.lastOffset)return[this.root];let l=[];for(let e=a;e<=s;e++){const t=this.atoms[e];jP(this,t,a,s)&&l.push(t)}return o.includeChildren||(l=l.filter((e=>{let t=!1,{parent:n}=e;for(;n&&!t;)t=jP(this,n,a,s),n=n.parent;return!t}))),l}getAllAtoms(e=0){const t=[],n=this.lastOffset;for(let i=e;i<=n;i++)t.push(this.atoms[i]);for(let n=0;n=0;n--)if(i=this.atoms[n],e(i))return i;for(let n=r;n>t;n--)if(i=this.atoms[n],e(i))return i}else{for(let n=t;n<=r;n++)if(i=this.atoms[n],e(i))return i;for(let n=0;n_w.serialize(this.getAtoms(t),e))))}return i.map((e=>this.getAtoms(e).map((e=>this.atomToString(e,r))).join(""))).join("")}extendSelectionTo(e,t){return!(!this.mathfield.contentEditable&&"none"===this.mathfield.userSelect)&&this.deferNotifications({selection:!0},(()=>{const n=this.normalizeRange([e,t]);let[i,r]=n,{parent:o}=this.at(r);if(o&&("genfrac"===o.type||"subsup"===o.type))for(;o!==this.root&&$P(this,o,[i,r]);)r=this.offsetOf(o),o=o.parent;for(o=this.at(i).parent;o!==this.root&&$P(this,o,[i,r]);)i=this.offsetOf(o.leftSibling),o=o.parent;if(o=this.at(r).parent,"genfrac"===(null==o?void 0:o.type))for(;o!==this.root&&$P(this,o,[i,r]);)r=this.offsetOf(o),console.assert(r>=0),o=o.parent;this._position=this.normalizeOffset(t),this._selection={ranges:[[i,r]],direction:"none"}}))}announce(e,t,n=[]){var i,r;(null==(r=null==(i=this.mathfield.host)?void 0:i.dispatchEvent(new CustomEvent("announce",{detail:{command:e,previousPosition:t,atoms:n},cancelable:!0,bubbles:!0,composed:!0})))||r)&&zP(this.mathfield,e,t,n)}deferNotifications(e,t){const n=this._selection,i=this._anchor,r=this._position,o=this.silenceNotifications;this.silenceNotifications=!0;const a=this.root.changeCounter;t();const s=this.root.changeCounter!==a,l=i!==this._anchor||r!==this._position||"different"===function(e,t){if(e.direction===t.direction){const n=e.ranges.length;if(t.ranges.length===n){let i=0;for(;i0?e=Math.min(e,this.lastOffset):e<0&&(e=this.lastOffset+e+1),e}normalizeRange(e){let[t,n]=e;return t=this.normalizeOffset(t),n=this.normalizeOffset(n),tthis.normalizeRange(e))),direction:null!=(n=e.direction)?n:"none"});return console.assert(void 0!==i),i}get parentEnvironment(){let e=this.at(this.position).parent;if(e){for(;e.parent&&"array"!==e.type;)e=e.parent;if("array"===e.type)return e}}get cell(){var e;let t=this.at(this.position);if(t){for(;t&&"array"!==(null==(e=t.parent)?void 0:e.type);)t=t.parent;if((null==t?void 0:t.parent)&&"array"===t.parent.type)return t.parentBranch}}contentWillChange(e={}){if(this.silenceNotifications||!this.mathfield)return!0;const t=this.silenceNotifications;this.silenceNotifications=!0;const n=this.mathfield.onContentWillChange(e);return this.silenceNotifications=t,n}contentDidChange(e){var t;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(uC(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const n=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",rp(ip({},e),{data:e.data?e.data:null!=(t=e.inputType)?t:"",bubbles:!0,composed:!0}))),this.silenceNotifications=n}selectionDidChange(){if(!this.mathfield)return;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(uC(this.mathfield)),this.silenceNotifications)return;const e=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=e}}(this,s,l),this.undoManager=new x_(this.model);const c=[];if(c.push(""),c.push('"),c.push(""),c.push(""),c.push(""),this.element.innerHTML=window.MathfieldElement.createHTML(c.join("")),!this.element.children)return void console.error("%cMathLive 0.98.5: Something went wrong and the mathfield could not be created.%c\nIf you are using Vue, this may be because you are using the runtime-only build of Vue. Make sure to include `runtimeCompiler: true` in your Vue configuration. There may a warning from Vue in the log above.","color:red;font-family:system-ui;font-size:1.2rem;font-weight:bold","color:inherit;font-family:system-ui;font-size:inherit;font-weight:inherit");this._l10Subscription=dp.subscribe((()=>dp.update(this.element))),dp.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",(e=>e.stopImmediatePropagation()),{capture:!1,signal:o}),this.field.addEventListener("wheel",this,{passive:!1,signal:o}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:o}):this.field.addEventListener("mousedown",this,{signal:o}),null==(r=this.element.querySelector("[part=virtual-keyboard-toggle]"))||r.addEventListener("click",(()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(uC(this)))}),{signal:o}),this._menu=new BC(DP(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:o});const u=this.element.querySelector("[part=menu-toggle]");var h;null==u||u.addEventListener("pointerdown",(e=>{if(e.currentTarget!==u)return;if("closed"!==this._menu.state)return;this.element.classList.add("tracking");const t=u.getBoundingClientRect();this._menu.modifiers=$S(e),this._menu.show({target:u,location:{x:t.left,y:t.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),e.preventDefault(),e.stopPropagation()}),{signal:o}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||"none"===this.userSelect)&&(u.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=function(e,t,n){let i=null,r=null,o=!1,a=!1,s=!1;const l=new AbortController,c=l.signal;return e.addEventListener("keydown",(t=>{o||"Process"===t.key||"CapsLock"===t.code||/(Control|Meta|Alt|Shift)(Left|Right)/.test(t.code)?i=null:(i=t,r=null,n.onKeystroke(t)?e.textContent="":i=null)}),{capture:!0,signal:c}),e.addEventListener("keypress",(e=>{o||(i&&r&&n.onKeystroke(i),r=e)}),{capture:!0,signal:c}),e.addEventListener("compositionstart",(t=>{e.textContent="",o=!0,n.onCompositionStart(t.data)}),{capture:!0,signal:c}),e.addEventListener("compositionupdate",(e=>{o&&n.onCompositionUpdate(e.data)}),{capture:!0,signal:c}),e.addEventListener("compositionend",(t=>{e.textContent="",o&&(o=!1,n.onCompositionEnd(t.data))}),{capture:!0,signal:c}),e.addEventListener("beforeinput",(e=>e.stopImmediatePropagation()),{signal:c}),e.addEventListener("input",(t=>{var i;if(!o&&(e.textContent="","insertCompositionText"!==t.inputType)){if("insertFromPaste"===t.inputType)return t.preventDefault(),void t.stopPropagation();n.onInput(null!=(i=t.data)?i:""),t.preventDefault(),t.stopPropagation()}}),{signal:c}),e.addEventListener("paste",(t=>{e.focus({preventScroll:!0}),e.textContent="",n.onPaste(t)||t.preventDefault(),t.stopImmediatePropagation()}),{signal:c}),e.addEventListener("cut",(e=>n.onCut(e)),{capture:!0,signal:c}),e.addEventListener("copy",(e=>n.onCopy(e)),{capture:!0,signal:c}),e.addEventListener("blur",(o=>{var l,c;if((null==(c=null==(l=o.relatedTarget)?void 0:l._mathfield)?void 0:c.element)===t)return e.focus({preventScroll:!0}),o.preventDefault(),void o.stopPropagation();const u=GS.state;return"open"===u||"opening"===u||o.relatedTarget===o.target.getRootNode().host?(o.preventDefault(),void o.stopPropagation()):void(s||a||(s=!0,i=null,r=null,n.onBlur(),s=!1))}),{capture:!0,signal:c}),e.addEventListener("focus",(e=>{s||a||(a=!0,n.onFocus(),a=!1)}),{capture:!0,signal:c}),{dispose:()=>l.abort(),cancelComposition:()=>{o&&(e.blur(),requestAnimationFrame((()=>e.focus({preventScroll:!0}))))},blur:()=>{"function"==typeof e.blur&&e.blur()},focus:()=>{a||"function"!=typeof e.focus||e.focus({preventScroll:!0})},hasFocus:()=>KS()===e,setAriaLabel:t=>e.setAttribute("aria-label",t),setValue:t=>{var n;e.textContent=t,e.style.left="-1000px",null==(n=window.getSelection())||n.selectAllChildren(e)},moveTo:(t,n)=>{e.style.top=`${n}px`,e.style.left=`${t}px`}}}(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:o}),document.addEventListener("scroll",this,{signal:o}),this.resizeObserver=new ResizeObserver((()=>yk(this))),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:o}),NS&&!dp.locale.startsWith(NS.locale)&&(h=dp.locale,NS=BS.find((e=>h.startsWith(e.locale)))),"ready"!==gk&&document.fonts.ready.then((()=>xk(this))),e.querySelector("[part=container]").style.removeProperty("visibility"),this.undoManager.startRecording(),this.undoManager.snapshot("set-value")}get defaultStyle(){return this._defaultStyle}set defaultStyle(e){this._defaultStyle=e}get effectiveStyle(){if("none"===this.adoptStyle)return this.defaultStyle;const e=this.model.at(this.model.position),t="right"===this.adoptStyle?e.rightSibling:e;if(!t)return this.defaultStyle;if("group"===t.type){const e=t.branch("body");return!e||e.length<2?{}:"right"===this.adoptStyle?e[1].computedStyle:e[e.length-1].computedStyle}return t.computedStyle}connectToVirtualKeyboard(){this.connectedToVirtualKeyboard||(this.connectedToVirtualKeyboard=!0,window.addEventListener("message",this,{signal:this.eventController.signal}),window.mathVirtualKeyboard.connect(),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(uC(this)),xC(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,wC())}showMenu(e){var t,n;const i=null!=(n=null!=(t=null==e?void 0:e.location)?t:Vw(this.field))?n:void 0,r=null==e?void 0:e.modifiers,o=this.element.querySelector("[part=container]");return this._menu.show({target:o,location:i,modifiers:r})}get colorMap(){return e=>{var t,n,i;return null!=(i=null==(n=(t=this.options).colorMap)?void 0:n.call(t,e))?i:wp(e)}}get backgroundColorMap(){return e=>{var t,n,i,r,o,a;return null!=(a=null!=(o=null==(n=(t=this.options).backgroundColorMap)?void 0:n.call(t,e))?o:null==(r=(i=this.options).colorMap)?void 0:r.call(i,e))?a:xp(e)}}get smartFence(){var e;return null!=(e=this.options.smartFence)&&e}get readOnly(){var e;return null!=(e=this.options.readOnly)&&e}get disabled(){var e,t;return null!=(t=null==(e=this.host)?void 0:e.disabled)&&t}get contentEditable(){return!!this.host&&"false"!==this.host.getAttribute("contenteditable")}get userSelect(){if(!this.host)return"";const e=getComputedStyle(this.host);return e.getPropertyValue("user-select")||e.getPropertyValue("-webkit-user-select")}get hasEditableContent(){return!(this.disabled||!this.contentEditable)&&(!this.readOnly||this.hasEditablePrompts)}get hasEditablePrompts(){return this.readOnly&&!this.disabled&&this.contentEditable&&void 0!==this.model.findAtom((e=>"prompt"===e.type&&!e.locked))}get isSelectionEditable(){if(this.disabled||!this.contentEditable)return!1;if(!this.readOnly)return!0;const e=this.model.at(this.model.anchor),t=this.model.at(this.model.position),n=_w.commonAncestor(e,t);return!("prompt"!==(null==n?void 0:n.type)&&!(null==n?void 0:n.parentPrompt))}get letterShapeStyle(){var e;return null!=(e=this.options.letterShapeStyle)?e:"tex"}get minFontScale(){return this.options.minFontScale}get selectionStyle(){if(this.model.selectionIsCollapsed)return this.effectiveStyle;const e=this.model.getAtoms(this.model.selection);if(0===e.length)return{};const t=ip({},e[0].style);for(const n of e)for(const[e,i]of Object.entries(n.style))t[e]!==i&&delete t[e];return t}queryStyle(e){const t=W_(this,e);"verbatimColor"in t&&delete t.verbatimColor,"verbatimBackgroundColor"in t&&delete t.verbatimBackgroundColor;const n=Object.keys(t).length;if(0===n)return"all";if(n>1){for(const e of Object.keys(t)){const n=this.queryStyle({[e]:t[e]});if("none"===n)return"none";if("some"===n)return"some"}return"all"}const i=Object.keys(t)[0],r=t[i];if(this.model.selectionIsCollapsed)return this.effectiveStyle[i]===r?"all":"none";const o=this.model.getAtoms(this.model.selection,{includeChildren:!0});let a=o.length;if(0===a)return"none";let s=0;for(const e of o)"first"!==e.type?e.style[i]===r&&(s+=1):a-=1;return 0===s?"none":s===a?"all":"some"}get keybindings(){var e,t;if(this._keybindings)return this._keybindings;const[n,i]=function(e,t){const n=[],i=[];for(const r of e)try{const e=YS(r,t);if(!e)continue;const n=i.find((t=>t.key===e.key&&t.ifMode===e.ifMode));if(n)throw new Error(`Ambiguous key binding ${r.key} (${XS(r.command)}) matches ${n.key} (${XS(n.command)}) with the ${t.displayName} keyboard layout`);i.push(e)}catch(e){e instanceof Error&&n.push(e.message)}return[i,n]}(this.options.keybindings,null!=(e=FS())?e:function(){switch(RS()){case"apple":return MS;case"windows":return LS;case"linux":return AS}return MS}());return(null==(t=FS())?void 0:t.score)>0&&(this._keybindings=n,i.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",i)),n}get menu(){return this._menu}setOptions(e){var t;this.options=ip(ip({},this.options),n_(e)),this._keybindings=void 0,"inline-math"===this.options.defaultMode?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let n=this.options.defaultMode;"inline-math"===n&&(n="math"),(null==(t=this.model.root.firstChild)?void 0:t.mode)!==n&&(this.model.root.firstChild.mode=n),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const i=_w.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in e||this.model.getValue()!==i)&&Zw.insert(this.model,i,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in e||"macros"in e||"registers"in e||"colorMap"in e||"backgroundColorMap"in e||"letterShapeStyle"in e||"minFontScale"in e||"readOnly"in e||"placeholderSymbol"in e)&&yk(this)}getOptions(e){return i_(this.options,e)}getOption(e){return i_(this.options,e)}async handleEvent(e){var t;if(Uw(this))if(Ek(e)){if(!Jw(e.origin,null!=(t=this.options.originValidator)?t:"none"))throw new DOMException(`Message from unknown origin (${e.origin}) cannot be handled`,"SecurityError");const{action:n}=e.data;if("execute-command"===n){const t=e.data.command;if("virtual-keyboard"===Ck(t))return;this.executeCommand(t)}else"update-state"===n||("focus"===n?this.focus({preventScroll:!0}):"blur"===n&&this.blur())}else switch(e.type){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"mousedown":"none"!==this.userSelect&&tC(this,e);break;case"pointerdown":"none"!==this.userSelect&&(tC(this,e),!1===e.shiftKey&&await zC(e,this.element.querySelector("[part=container]"),this._menu)&&J_.stop());break;case"contextmenu":"none"!==this.userSelect&&!1===e.shiftKey&&await zC(e,this.element.querySelector("[part=container]"),this._menu)&&J_.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&xC(this);break;case"resize":case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame((()=>Uw(this)&&this.onGeometryChange()));break;case"wheel":this.onWheel(e);break;default:console.warn("Unexpected event type",e.type)}}dispose(){Uw(this)&&(dp.unsubscribe(this._l10Subscription),this.keyboardDelegate.dispose(),this.keyboardDelegate=void 0,this.eventController.abort(),this.eventController=void 0,this.resizeObserver.disconnect(),window.mathVirtualKeyboard.removeEventListener("virtual-keyboard-toggle",this),this.disconnectFromVirtualKeyboard(),this.model.dispose(),delete this.element.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,document.getElementById("mathlive-keystroke-caption-panel")&&(ok("mathlive-keystroke-caption-panel"),ax("core"),ax("keystroke-caption")),document.getElementById("mathlive-suggestion-popover")&&(ok("mathlive-suggestion-popover"),ax("suggestion-popover"),ax("core")),document.getElementById("mathlive-environment-popover")&&(ok("mathlive-environment-popover"),ax("environment-popover"),ax("core")))}flushInlineShortcutBuffer(e){if(null!=e||(e={defer:!1}),!e.defer)return this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),void(this.inlineShortcutBufferFlushTimer=0);this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout((()=>this.flushInlineShortcutBuffer()),this.options.inlineShortcutTimeout))}executeCommand(e){return"virtual-keyboard"===Ck(e)?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(e),requestAnimationFrame((()=>window.mathVirtualKeyboard.update(uC(this)))),!1):function(e,t){var n;if(!t)return!1;let i,r=[],o=!1,a=!1;sp(t)?(i=t[0],r=t.slice(1)):i=t,i=i.replace(/-\w/g,(e=>e[1].toUpperCase()));const s=Sk[i],l=null==s?void 0:s.target;if("model"===l){if(!e.isSelectionEditable&&(null==s?void 0:s.changeContent))return e.model.announce("plonk"),!1;/^(delete|add)/.test(i)&&("deleteBackward"!==i&&e.flushInlineShortcutBuffer(),e.snapshot(i)),/^complete/.test(i)||ek(e),Sk[i].fn(e.model,...r),tk(e),a=!0,o=!0}else if("virtual-keyboard"===l)a=null!=(n=window.mathVirtualKeyboard.executeCommand(t))&&n,o=!0;else{if(!Sk[i])throw new Error(`Unknown command "${i}"`);if(!e.isSelectionEditable&&(null==s?void 0:s.changeContent))return e.model.announce("plonk"),!1;/^(undo|redo)/.test(i)&&e.flushInlineShortcutBuffer(),a=Sk[i].fn(e,...r),o=!0}return"virtual-keyboard"!==l&&(!e.model.selectionIsCollapsed||(null==s?void 0:s.changeSelection)&&"deleteBackward"!==t)&&(e.flushInlineShortcutBuffer(),(null==s?void 0:s.changeContent)||e.stopCoalescingUndo(),e.defaultStyle={}),a&&yk(e),o}(this,e)}get errors(){return Ux(this.model.getValue(),{context:this.context})}getValue(e,t,n){return this.model.getValue(e,t,n)}setValue(e,t){var n;void 0===(t=null!=t?t:{mode:"math"}).insertionMode&&(t.insertionMode="replaceAll"),void 0!==t.format&&"auto"!==t.format||(t.format="latex"),void 0!==t.mode&&"auto"!==t.mode||(t.mode=null!=(n=function(e,t){const n=e.at(t);let i;if(n){i=n.mode;let e=n.parent;for(;!i&&e;)e&&(i=e.mode),e=e.parent}return i}(this.model,this.model.position))?n:"math");const i=this.undoManager.canUndo();Zw.insert(this.model,e,t)&&(yk(this),i||this.undoManager.reset(),this.undoManager.snapshot("set-value"))}get expression(){const e=window.MathfieldElement.computeEngine;return e?e.box(e.parse(this.model.getValue("latex-unstyled"))):(console.error("MathLive 0.98.5: no compute engine available. Make sure the Compute Engine library is loaded."),null)}scrollIntoView(){var e;if(!this.element)return;if(this.host)if(this.options.onScrollIntoView)this.options.onScrollIntoView(this);else if(this.host.scrollIntoView({block:"nearest",inline:"nearest"}),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.container===window.document.body){const t=window.mathVirtualKeyboard.boundingRect,n=this.host.getBoundingClientRect();n.bottom>t.top&&(null==(e=window.document.scrollingElement)||e.scrollBy(0,n.bottom-t.top+8))}this.dirty&&wk(this,{interactive:!0});const t=this.field.getBoundingClientRect();let n=null;if(this.model.selectionIsCollapsed)n=Vw(this.field);else{const e=Qw(this);if(e.length>0){let i=-1/0,r=-1/0;for(const t of e)t.right>i&&(i=t.right),t.tope.bottom&&(i=t-e.bottom+this.host.scrollTop+n.height),this.host.scroll({top:i,left:0})}if(n){const e=n.x-window.scrollX;let i=this.field.scrollLeft;et.right&&(i=e-t.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:i})}}insert(e,t){return!("string"!=typeof e||0===e.length&&("insertBefore"===(null==t?void 0:t.insertionMode)||"insertAfter"===(null==t?void 0:t.insertionMode))||0===e.length&&this.model.selectionIsCollapsed||(this.flushInlineShortcutBuffer(),(t=null!=t?t:{mode:"math"}).focus&&this.focus(),t.feedback&&(window.MathfieldElement.keypressVibration&&cp()&&navigator.vibrate(3),window.MathfieldElement.playSound("keypress")),"\\\\"===e?g_(this.model):"&"===e?m_(this.model):this.model.selectionIsCollapsed?Zw.insert(this.model,e,ip({style:this.model.at(this.model.position).computedStyle},t)):Zw.insert(this.model,e,t),this.snapshot(`insert-${this.model.at(this.model.position).type}`),yk(this),t.scrollIntoView&&this.scrollIntoView(),0))}switchMode(e,t="",n=""){var i;if(this.model.mode===e||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const r=this.model.mode;if(this.model.mode=e,!(null==(i=this.host)?void 0:i.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0}))))return void(this.model.mode=r);const o=this.model.mode,{model:a}=this;a.deferNotifications({content:Boolean(n)||Boolean(t),selection:!0,type:"insertText"},(()=>{let i=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),t&&"latex"!==e){const n=Gx(t,{context:this.context,parseMode:e});a.collapseSelection("forward");const r=a.at(a.position);a.position=a.offsetOf(r.parent.addChildrenAfter(n,r)),i=!0}if(this.model.mode=e,"latex"===e){let e,n=a.selectionIsCollapsed;ik(this,"accept");let i=a.at(a.position);if(n)e="\\";else{const r=Lw(a.selection);e=this.model.getValue(r,"latex");const o=this.model.extractAtoms(r);1===o.length&&"placeholder"===o[0].type&&(e=t,n=!0),i=a.at(r[0])}const r=new iS(e);i.parent.addChildAfter(r,i),n?a.position=a.offsetOf(r.lastChild):a.setSelection(a.offsetOf(r.firstChild),a.offsetOf(r.lastChild))}else QS(a).forEach((e=>{e.isError=!1}));if(n){const e=Gx(n,{context:this.context,parseMode:o});a.collapseSelection("forward");const t=a.at(a.position);a.position=a.offsetOf(t.parent.addChildrenAfter(e,t)),i=!0}return yk(this),this.undoManager.snapshot("latex"===e?"insert-latex":"insert"),i})),this.model.mode=e,window.mathVirtualKeyboard.update(uC(this))}hasFocus(){return!this.blurred}focus(e){var t;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),null!=(t=null==e?void 0:e.preventScroll)&&t||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(e,t={}){var n,i;const r={operation:"set",silenceNotifications:!1};Tw(t)?r.range=t:("toggle"===t.operation&&(r.operation="toggle"),r.range=t.range,r.silenceNotifications=null!=(n=t.silenceNotifications)&&n);const o=W_(this,e),a=null!=(i=r.operation)?i:"set";if(void 0===r.range&&this.model.selectionIsCollapsed){if("set"===a)return void(this.defaultStyle=ip(ip({},this.defaultStyle),o));const e=ip({},this.defaultStyle);for(const t of Object.keys(o))e[t]===o[t]?("color"===t&&delete e.verbatimColor,"backgroundColor"===t&&delete e.verbatimBackgroundColor,delete e[t]):e[t]=o[t];this.defaultStyle=e}else this.model.deferNotifications({content:!r.silenceNotifications,type:"insertText"},(()=>{if(void 0===r.range)for(const e of this.model.selection.ranges)s_(this.model,e,o,{operation:a});else s_(this.model,r.range,o,{operation:a})})),yk(this)}toggleContextMenu(){var e;return!!this._menu.visible&&("open"===this._menu.state?(this._menu.hide(),!0):(this._menu.show({target:this.element.querySelector("[part=container]"),location:null!=(e=this.getCaretPoint())?e:void 0,onDismiss:()=>{var e;return null==(e=this.element)?void 0:e.focus()}}),!0))}getCaretPoint(){const e=Vw(this.field);return e?{x:e.x,y:e.y}:null}setCaretPoint(e,t){const n=oC(this,e,t,{bias:0});if(n<0)return!1;const i=this.model.position;return this.model.position=n,this.model.announce("move",i),yk(this),!0}getPrompt(e){const t=this.model.findAtom((t=>"prompt"===t.type&&t.placeholderId===e));return console.assert(void 0!==t,"MathLive 0.98.5: no prompts with matching ID found"),t}getPromptValue(e,t){const n=this.getPrompt(e);if(!n)return"";const i=this.model.offsetOf(n.firstChild),r=this.model.offsetOf(n.lastChild);return this.model.getValue(i,r,t)}getPrompts(e){return this.model.getAllAtoms().filter((t=>!("prompt"!==t.type||e&&(e.id&&t.placeholderId!==e.id||e.locked&&t.locked!==e.locked||"undefined"===e.correctness&&t.correctness||e.correctness&&t.correctness!==e.correctness)))).map((e=>e.placeholderId))}setPromptValue(e,t,n){if(void 0!==t){const i=this.getPrompt(e);if(!i)return void console.error(`MathLive 0.98.5: unknown prompt ${e}`);const r=this.model.getBranchRange(this.model.offsetOf(i),"body");this.model.setSelection(r),this.insert(t,rp(ip({},n),{insertionMode:"replaceSelection"}))}(null==n?void 0:n.silenceNotifications)&&(this.valueOnFocus=this.getValue()),yk(this)}setPromptState(e,t,n){const i=this.getPrompt(e);i?("undefined"===t?i.correctness=void 0:"string"==typeof t&&(i.correctness=t),"boolean"==typeof n&&(i.locked=n,i.captureSelection=n),yk(this)):console.error(`MathLive 0.98.5: unknown prompt ${e}`)}getPromptState(e){const t=this.getPrompt(e);return t?[t.correctness,t.locked]:(console.error(`MathLive 0.98.5: unknown prompt ${e}`),[void 0,!0])}getPromptRange(e){const t=this.getPrompt(e);return t?this.model.getBranchRange(this.model.offsetOf(t),"body"):(console.error(`MathLive 0.98.5: unknown prompt ${e}`),[0,0])}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(e){var t;this.undoManager.snapshot(e)&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(uC(this)),null==(t=this.host)||t.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"snapshot"}})))}stopCoalescingUndo(){this.undoManager.stopCoalescing(this.model.selection)}stopRecording(){this.undoManager.stopRecording()}startRecording(){this.undoManager.startRecording()}undo(){var e;this.undoManager.undo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(uC(this)),null==(e=this.host)||e.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}redo(){var e;this.undoManager.redo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(uC(this)),null==(e=this.host)||e.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}resetUndo(){var e;null==(e=this.undoManager)||e.reset()}onSelectionDidChange(){var e,t;const n=this.model;this.keyboardDelegate.setValue(n.getValue(this.model.selection,"latex-expanded"));{const t=n.at(n.position),i=null!=(e=t.mode)?e:o_(this.options);this.model.mode!==i&&("latex"===this.model.mode?(ik(this,"accept",{mode:i}),n.position=n.offsetOf(t)):this.switchMode(i))}null==(t=this.host)||t.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(uC(this)),xC(this)}onContentWillChange(e){var t,n,i;return null==(i=null==(n=this.host)?void 0:n.dispatchEvent(new InputEvent("beforeinput",rp(ip({},e),{data:e.data?e.data:null!=(t=e.inputType)?t:"",cancelable:!0,bubbles:!0,composed:!0}))))||i}onFocus(){!this.focusBlurInProgress&&this.blurred&&(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),wk(this,{interactive:!0}),this.valueOnFocus=this.model.getValue(),this.hasEditablePrompts&&!this.model.at(this.model.anchor).parentPrompt&&this.executeCommand("moveToNextPlaceholder"),this.focusBlurInProgress=!1)}onBlur(){var e,t,n;if(this.focusBlurInProgress||this.blurred)return;this.focusBlurInProgress=!0,this.stopCoalescingUndo(),this.blurred=!0,this.ariaLiveText.textContent="",ck(this),this.model.getValue()!==this.valueOnFocus&&(null==(e=this.host)||e.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),this.disconnectFromVirtualKeyboard(),null==(t=this.host)||t.dispatchEvent(new Event("blur",{bubbles:!1,composed:!0})),null==(n=this.host)||n.dispatchEvent(new UIEvent("focusout",{bubbles:!0,composed:!0})),yk(this),this.focusBlurInProgress=!1,wC();const i=new AbortController,r=i.signal;document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&document.addEventListener("visibilitychange",(()=>{Uw(this)&&"visible"===document.visibilityState&&this.focus({preventScroll:!0})}),{once:!0,signal:r})}),{once:!0,signal:r}),setTimeout((()=>i.abort()),100)}onInput(e){H_(this,e)}onKeystroke(e){return $_(this,e)}onCompositionStart(e){this.model.deleteAtoms(Lw(this.model.selection));const t=Vw(this.field);t&&requestAnimationFrame((()=>{wk(this),this.keyboardDelegate.moveTo(t.x,t.y-t.height)}))}onCompositionUpdate(e){!function(e,t){const n=e.at(e.position);if("composition"===n.type)n.value=t;else{const{caret:i}=n;n.caret=void 0;const r=new Ix(t,{mode:n.mode});r.caret=i,n.parent.addChildAfter(r,n),e.position+=1}}(this.model,e),yk(this)}onCompositionEnd(e){!function(e){const t=e.at(e.position);"composition"===t.type&&(t.parent.removeChild(t),e.position-=1)}(this.model),H_(this,e,{simulateKeystroke:!0})}onCut(e){this.isSelectionEditable?this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Zw.onCopy(this,e),ZP(this.model,Lw(this.model.selection),"deleteByCut"),this.snapshot("cut"),yk(this)):this.model.announce("plonk")}onCopy(e){Zw.onCopy(this,e)}onPaste(e){let t=this.isSelectionEditable;return t&&(t=Zw.onPaste(this.model.at(this.model.position).mode,this,e.clipboardData)),t||this.model.announce("plonk"),e.preventDefault(),e.stopPropagation(),t}onGeometryChange(){this._menu.hide(),lk(this),xC(this)}onWheel(e){const t=5*e.deltaX;if(!Number.isFinite(t)||0===t)return;const n=this.field;t<0&&0===n.scrollLeft||t>0&&n.offsetWidth+n.scrollLeft>=n.scrollWidth||(n.scrollBy({top:0,left:t}),e.preventDefault(),e.stopPropagation())}getHTMLElement(e){let t=e;for(;!t.id&&t.hasChildren;)t=e.children[0];return this.field.querySelector(`[data-atom-id="${t.id}"]`)}get context(){var e,t;return{registers:null!=(e=this.options.registers)?e:{},smartFence:this.smartFence,letterShapeStyle:this.letterShapeStyle,minFontScale:this.minFontScale,placeholderSymbol:null!=(t=this.options.placeholderSymbol)?t:"▢",colorMap:e=>this.colorMap(e),backgroundColorMap:e=>this.backgroundColorMap(e),getMacro:e=>ef(e,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}}(a.querySelector(":host > span"),rp(ip({},null!=(i=null==(n=WP.get(this))?void 0:n.options)?i:JP(this)),{eventSink:this,value:c})),!WP.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const t of Object.keys(e.optionsAttributes))this.upgradeProperty(QP(t))}if(null==(r=this._mathfield)?void 0:r.model){if(WP.has(this)){const e=this._mathfield,t=WP.get(this),n=t.menuItems;e.model.deferNotifications({content:!1,selection:!1},(()=>{const n=t.value;void 0!==n&&e.setValue(n),e.model.selection=t.selection,WP.delete(this)})),n&&(this.menuItems=n)}window.queueMicrotask((()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))})),mk()}else this._mathfield=null}disconnectedCallback(){var t,n;if(this.shadowRoot.host.removeEventListener("pointerdown",this,!0),!this._mathfield)return;window.queueMicrotask((()=>this.dispatchEvent(new Event("unmount",{cancelable:!1,bubbles:!0,composed:!0}))));const i=i_(this._mathfield.options,Object.keys(e.optionsAttributes).map((e=>QP(e))));WP.set(this,{value:this._mathfield.getValue(),selection:this._mathfield.model.selection,menuItems:null!=(n=null==(t=this._mathfield.menu)?void 0:t.menuItems)?n:void 0,options:i}),this._mathfield.dispose(),this._mathfield=null}upgradeProperty(e){if(this.hasOwnProperty(e)){const t=this[e];delete this[e],"readonly"!==e&&"read-only"!==e||(e="readOnly"),this[e]=t}}attributeChangedCallback(e,t,n){if(t===n)return;const i=null!==n;switch(e){case"contenteditable":yk(this._mathfield);break;case"disabled":this.disabled=i;break;case"read-only":case"readonly":this.readOnly=i}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(e){const t=Boolean(e);t?(this.setAttribute("readonly",""),eE()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(eE()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:t})}get disabled(){return this.hasAttribute("disabled")}set disabled(e){var t;const n=Boolean(e);n?this.setAttribute("disabled",""):this.removeAttribute("disabled"),eE()?this._internals.ariaDisabled=n?"true":"false":this.setAttribute("aria-disabled",n?"true":"false"),n&&(null==(t=this._mathfield)?void 0:t.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(e){this.setValue(e)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(e){this._setOptions({defaultMode:e})}get macros(){return this._getOption("macros")}set macros(e){this._setOptions({macros:e})}get registers(){const e=this;return new Proxy({},{get:(t,n)=>{if("string"==typeof n)return e._getOption("registers")[n]},set(t,n,i){return"string"==typeof n&&(e._setOptions({registers:rp(ip({},e._getOption("registers")),{[n]:i})}),!0)}})}set registers(e){this._setOptions({registers:e})}get colorMap(){return this._getOption("colorMap")}set colorMap(e){this._setOptions({colorMap:e})}get backgroundColorMap(){return this._getOption("backgroundColorMap")}set backgroundColorMap(e){this._setOptions({backgroundColorMap:e})}get letterShapeStyle(){return this._getOption("letterShapeStyle")}set letterShapeStyle(e){this._setOptions({letterShapeStyle:e})}get minFontScale(){return this._getOption("minFontScale")}set minFontScale(e){this._setOptions({minFontScale:e})}get smartMode(){return this._getOption("smartMode")}set smartMode(e){this._setOptions({smartMode:e})}get smartFence(){return this._getOption("smartFence")}set smartFence(e){this._setOptions({smartFence:e})}get smartSuperscript(){return this._getOption("smartSuperscript")}set smartSuperscript(e){this._setOptions({smartSuperscript:e})}get scriptDepth(){return this._getOption("scriptDepth")}set scriptDepth(e){this._setOptions({scriptDepth:e})}get removeExtraneousParentheses(){return this._getOption("removeExtraneousParentheses")}set removeExtraneousParentheses(e){this._setOptions({removeExtraneousParentheses:e})}get mathModeSpace(){return this._getOption("mathModeSpace")}set mathModeSpace(e){this._setOptions({mathModeSpace:e})}get placeholderSymbol(){return this._getOption("placeholderSymbol")}set placeholderSymbol(e){this._setOptions({placeholderSymbol:e})}get popoverPolicy(){return this._getOption("popoverPolicy")}set popoverPolicy(e){this._setOptions({popoverPolicy:e})}get environmentPopoverPolicy(){return this._getOption("environmentPopoverPolicy")}set environmentPopoverPolicy(e){this._setOptions({environmentPopoverPolicy:e})}get menuItems(){var e,t,n;return this._mathfield?null!=(e=this._mathfield.menu._menuItems.map((e=>e.menuItem)))?e:[]:null!=(n=null==(t=WP.get(this))?void 0:t.menuItems)?n:[]}set menuItems(e){var t;if(this._mathfield){const n=null==(t=this._mathfield.element)?void 0:t.querySelector("[part=menu-toggle]");n&&(n.style.display=0===e.length?"none":""),this._mathfield.menu.menuItems=e}WP.has(this)?WP.set(this,rp(ip({},WP.get(this)),{menuItems:e})):WP.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:JP(this),menuItems:e})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(e){this._setOptions({mathVirtualKeyboardPolicy:e})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(e){this._setOptions({inlineShortcuts:e})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(e){this._setOptions({inlineShortcutTimeout:e})}get keybindings(){return this._getOption("keybindings")}set keybindings(e){this._setOptions({keybindings:e})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(e){this._setOptions({onInlineShortcut:e})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(e){this._setOptions({onScrollIntoView:e})}get onExport(){return this._getOption("onExport")}set onExport(e){this._setOptions({onExport:e})}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOptions({readOnly:e})}get isSelectionEditable(){var e,t;return null!=(t=null==(e=this._mathfield)?void 0:e.isSelectionEditable)&&t}setPromptState(e,t,n){var i;null==(i=this._mathfield)||i.setPromptState(e,t,n)}getPromptState(e){var t,n;return null!=(n=null==(t=this._mathfield)?void 0:t.getPromptState(e))?n:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(e){this._setOptions({virtualKeyboardTargetOrigin:e})}get selection(){return this._mathfield?this._mathfield.model.selection:WP.has(this)?WP.get(this).selection:{ranges:[[0,0]],direction:"forward"}}set selection(e){if("number"==typeof e&&(e={ranges:[[e,e]]}),this._mathfield)return this._mathfield.model.selection=e,void yk(this._mathfield);WP.has(this)?WP.set(this,rp(ip({},WP.get(this)),{selection:e})):WP.set(this,{value:void 0,selection:e,options:JP(this),menuItems:void 0})}get selectionIsCollapsed(){const e=this.selection;return 1===e.ranges.length&&e.ranges[0][0]===e.ranges[0][1]}get position(){return this._mathfield?this._mathfield.model.position:WP.has(this)?WP.get(this).selection.ranges[0][0]:0}set position(e){this._mathfield&&(this._mathfield.model.position=e,yk(this._mathfield)),WP.has(this)?WP.set(this,rp(ip({},WP.get(this)),{selection:{ranges:[[e,e]]}})):WP.set(this,{value:void 0,selection:{ranges:[[e,e]]},options:JP(this),menuItems:void 0})}getOffsetDepth(e){var t,n;return this._mathfield?(null!=(n=null==(t=this._mathfield.model.at(e))?void 0:t.treeDepth)?n:2)-2:0}get lastOffset(){var e,t;return null!=(t=null==(e=this._mathfield)?void 0:e.model.lastOffset)?t:-1}};YP.version="0.98.5",YP._fontsDirectory="./fonts",YP._soundsDirectory="./sounds",YP.keypressVibration=!0,YP._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},YP._plonkSound="plonk.wav",YP.audioBuffers={},YP.createHTML=e=>e,YP._speechEngineRate="100%",YP._speechEngineVoice="Joanna",YP._textToSpeechMarkup="",YP._textToSpeechRules="mathlive",YP._textToSpeechRulesOptions={},YP.speakHook=function(e){var t,n;if(lp())if(window.MathfieldElement.speechEngine&&"local"!==window.MathfieldElement.speechEngine)if("amazon"===window.MathfieldElement.speechEngine)if("AWS"in window){const i=new window.AWS.Polly({apiVersion:"2016-06-10"}),r={OutputFormat:"mp3",VoiceId:null!=(t=window.MathfieldElement.speechEngineVoice)?t:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes(null!=(n=window.MathfieldElement.speechEngineVoice)?n:"Joanna")?"neural":"standard",Text:e,TextType:"ssml"};i.synthesizeSpeech(r,((e,t)=>{if(e)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${e}`);else if(null==t?void 0:t.AudioStream){const e=new Uint8Array(t.AudioStream),n=new Blob([e.buffer],{type:"audio/mpeg"}),i=URL.createObjectURL(n);new Audio(i).play().catch((e=>console.log(e)))}else console.log("polly.synthesizeSpeech():",t)}))}else console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else"google"===window.MathfieldElement.speechEngine&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.");else{const t=new SpeechSynthesisUtterance(e);window.speechSynthesis.speak(t)}else console.log("Speak:",e)},YP.readAloudHook=function(e,t){var n;if(!lp())return;if("amazon"!==window.MathfieldElement.speechEngine)return console.error("MathLive 0.98.5: Use Amazon TTS Engine for synchronized highlighting"),void("function"==typeof window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(t));if(!window.AWS)return void console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");const i=new window.AWS.Polly({apiVersion:"2016-06-10"}),r={OutputFormat:"json",VoiceId:null!=(n=window.MathfieldElement.speechEngineVoice)?n:"Joanna",Engine:"standard",Text:t,TextType:"ssml",SpeechMarkTypes:["ssml"]};oE().readAloudElement=e,i.synthesizeSpeech(r,((e,n)=>{if(e)return void console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${e}`);if(!(null==n?void 0:n.AudioStream))return void console.log("polly.synthesizeSpeech():",n);const o=new TextDecoder("utf-8").decode(new Uint8Array(n.AudioStream));oE().readAloudMarks=o.split("\n").map((e=>e?JSON.parse(e):{})),oE().readAloudTokens=[];for(const e of oE().readAloudMarks)e.value&&oE().readAloudTokens.push(e.value);oE().readAloudCurrentMark="",r.OutputFormat="mp3",r.SpeechMarkTypes=[],i.synthesizeSpeech(r,((e,n)=>{if(e)return void console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${t}") error:${e}`);if(!(null==n?void 0:n.AudioStream))return;const i=new Uint8Array(n.AudioStream),r=new Blob([i.buffer],{type:"audio/mpeg"}),o=URL.createObjectURL(r),a=oE();a.readAloudAudio?a.readAloudAudio.pause():(a.readAloudAudio=new Audio,a.readAloudAudio.addEventListener("ended",(()=>{const e=a.readAloudMathfield;a.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),e?(wk(e),a.readAloudElement=null,a.readAloudMathfield=null,a.readAloudTokens=[],a.readAloudMarks=[],a.readAloudCurrentMark=""):UP(a.readAloudElement)})),a.readAloudAudio.addEventListener("timeupdate",(()=>{let e="";const t=1e3*a.readAloudAudio.currentTime+100;for(const n of a.readAloudMarks)n.time{var t,n;const i=window.MathfieldElement.computeEngine;return null!=(n=null==(t=null==i?void 0:i.parse(e).domain)?void 0:t.isFunction)&&n};var XP=YP;function QP(e){return e.replace(/[^a-zA-Z\d]+(.)/g,((e,t)=>t.toUpperCase()))}function JP(e){const t={readOnly:!1},n=XP.optionsAttributes;return Object.keys(n).forEach((i=>{if(e.hasAttribute(i)){const r=e.getAttribute(i);"placeholder"===i?t.contentPlaceholder=null!=r?r:"":"boolean"===n[i]?t[QP(i)]=!0:"on/off"===n[i]?t[QP(i)]="on"===r||"off"!==r&&void 0:"number"===n[i]?t[QP(i)]=Number.parseFloat(null!=r?r:"0"):t[QP(i)]=r}})),t}function eE(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals)&&"role"in window.ElementInternals.prototype}var tE,nE,iE,rE=XP;if(lp()&&!(null==(tE=window.customElements)?void 0:tE.get("math-field"))){null!=window[nE=Symbol.for("io.cortexjs.mathlive")]||(window[nE]={});window[Symbol.for("io.cortexjs.mathlive")].version="0.98.5",window.MathfieldElement=XP,null==(iE=window.customElements)||iE.define("math-field",XP)}function oE(){var e;return null!=globalThis[e=Symbol.for("io.cortexjs.mathlive")]||(globalThis[e]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}kk({switchKeyboardLayer:function(e,t){const n=e_.singleton;return!!n&&(n.show(),Nk(),n.currentLayer=t,n.render(),n.focus(),!0)},toggleVirtualKeyboard:function(){const e=window.mathVirtualKeyboard;return e.visible?e.hide({animate:!0}):e.show({animate:!0}),!1},hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});var aE=(0,c.forwardRef)((function(e,t){var n=e.callback,i=e.showSaveButton,r=e.value,o=void 0===r?"":r,a=(0,c.useRef)(),s=function(e){a.current.setValue(a.current.getValue()+" "+e.value+" ")},l=[{key:"1",label:"快捷模板",children:(0,g.jsx)(dh.Z,{className:qd.lists,gutter:[10,10],children:[{name:"分数得分",value:"\\frac{x}{y}",children:[{name:"分数 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"导数 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"模算术 Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"根式角标",value:"\\sqrt{x}",children:[{name:"根式 Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"上下标 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"重音符及其他 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"极限对数",value:"\\lim_{x \\to 0}",children:[{name:"极限 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"对数指数 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"界限 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"三角函数",value:"\\sin a",children:[{name:"三角函数 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"反三角函数 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"双曲函数 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"反双曲函数 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"积分运算",value:"\\int_{a}^{b}",children:[{name:"积分 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"双重积分 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"三重积分 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"曲线积分 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"大型运算",value:"\\sum_{a}^{b}",children:[{name:"求和 Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"乘积余积 Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"并集交集 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"析取合取 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"括号取整",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"括号 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}].map((function(e,t){return(0,g.jsxs)(bd.Z,{flex:"110px",className:qd.item,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(xc,{value:"$$".concat(e.value,"$$")}),e.name]}),(0,g.jsx)("div",{className:qd.children,children:e.children.map((function(e,t){return(0,g.jsxs)("div",{children:[(0,g.jsx)("h1",{children:e.name}),(0,g.jsx)(dh.Z,{gutter:[10,10],children:e.data.map((function(e,t){return(0,g.jsx)(bd.Z,{onClick:function(){return s(e)},className:qd.diamond,children:(0,g.jsx)(xc,{value:"`$$"+e.value+"$$`"})},t)}))})]},t)}))})]})}))})},{key:"2",label:"公式模板",children:(0,g.jsx)(dh.Z,{className:qd.lists,gutter:[10,10],children:[{name:"代数",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:"\\left\\{\\begin{matrix} \r\n x=a + r\\text{cos}\\theta \\ \r\n y=b + r\\text{sin}\\theta \r\n\\end{matrix}\\right. "},{value:"\\begin{array}{l} \r\n \\text{对于方程形如:}x^{3}-1=0 \\ \r\n \\text{设}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r\n x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r\n x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r\n\\end{array} "},{value:"\\begin{array}{l} \r\n a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r\n \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r\n \\left\\{\\begin{matrix} \r\n \\Delta \\gt 0\\text{方程有两个不相等的实根} \\ \r\n \\Delta = 0\\text{方程有两个相等的实根} \\ \r\n \\Delta \\lt 0\\text{方程无实根} \r\n\\end{matrix}\\right. \r\n\\end{array} "},{value:"\\begin{array}{l} \r\n a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r\n \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r\n \\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r\n \\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r\n \\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r\n \\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r\n\\end{array} "}]}]},{name:"几何",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:"\\left.\\begin{matrix} \r\n a \\perp \\alpha \\ \r\n b \\perp \\alpha \r\n\\end{matrix}\\right\\}\\Rightarrow a \\parallel b"},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:"\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r\n \\Rightarrow a \\perp \\beta "},{value:"\\left.\\begin{matrix} \r\n a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r\n a \\parallel \\partial ,b \\parallel \\partial \r\n\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha "},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:"\\left.\\begin{matrix} \r\n m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r\n a \\perp m,a \\perp n \r\n\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha "},{value:"\\begin{array}{c} \r\n \\text{直角三角形中,直角边长a,b,斜边边长c} \\ \r\n a^{2}+b^{2}=c^{2} \r\n\\end{array}"}]}]},{name:"不等式",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:"\\begin{array}{c} \r\n a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r\n a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r\n\\end{array}"},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:"\\begin{array}{c} \r\n a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r\n \\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r\n\\end{array}"},{value:"\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r\n\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) "},{value:"\\begin{array}{c} \r\n a,b \\in R^{+} \\ \r\n \\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r\n \\left( \\text{当且仅当}a=b\\text{时取“}=\\text{”号}\\right) \r\n\\end{array}"},{value:"\\begin{array}{c} \r\n a,b \\in R \\ \r\n \\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r\n \\left( \\text{当且仅当}a=b\\text{时取“}=\\text{”号}\\right) \r\n\\end{array}"},{value:"\\begin{array}{c} \r\n H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r\n\\end{array}"}]}]},{name:"积分",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"三角",value:"e^{i \\theta}",children:[{name:"求和 Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"统计",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:"\\begin{array}{c} \r\n \\text{若}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r\n \\text{则}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r\n\\end{array}"},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:"\\begin{array}{c} \r\n P \\left( \\emptyset \\right) =0 \\\\ \r\n P \\left( S \\right) =1 \r\n\\end{array}"},{value:"\\begin{array}{c} \r\n \\forall A \\in S \\\\ \r\n P \\left( A \\right) \\ge 0 \r\n\\end{array}"},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:"\\begin{array}{c} \r\n S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r\n P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r\n\\end{array}"},{value:"\\begin{array}{c} \r\n P_{n}=n! \\\\ \r\n A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r\n\\end{array}"}]}]}].map((function(e,t){return(0,g.jsxs)(bd.Z,{flex:"110px",className:qd.item,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(xc,{value:"`$$"+e.value+"$$`"}),e.name]}),(0,g.jsx)("div",{className:qd.children,children:e.children.map((function(e,t){return(0,g.jsxs)("div",{children:[e.name&&(0,g.jsx)("h1",{children:e.name}),(0,g.jsx)(dh.Z,{gutter:[10,10],children:e.data.map((function(e,t){return(0,g.jsx)(bd.Z,{onClick:function(){return s(e)},className:qd.diamond,children:(0,g.jsx)(xc,{value:"`$$"+e.value+"$$`"})},t)}))})]},t)}))})]})}))})}],u=function(){var e=document.createElement("div");e.innerHTML=a.current.getValue();var t=e.innerText;return n&&n(t),t};return(0,c.useImperativeHandle)(t,(function(){return{getData:u}})),(0,g.jsxs)("div",{className:qd.mathWrap,children:[(0,g.jsx)(Wd.Z,{defaultActiveKey:"1",items:l}),(0,g.jsx)("math-field",{locale:"zh_cn",className:qd.mathField,placeholder:"请打开键盘,输入公式",ref:a,style:{width:800,marginTop:30,fontSize:18},children:o||""}),i&&(0,g.jsx)("div",{className:qd.button,children:(0,g.jsx)(Ml.ZP,{size:"large",onClick:u,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})})),sE=aE,lE="link",cE="upload-image",uE="add-flowchart",hE="draw-image",dE="code-block",pE="add-table",fE="------------",gE={default:fE,left:":".concat(fE),center:":".concat(fE,":"),right:"".concat(fE,":")};var mE="@▁▁@",vE=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function yE(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var bE=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",wE=Yl()(Yl()({},bE+"-B","bold"),bE+"-I","italic"),xE=Yl()(Yl()(Yl()(Yl()(Yl()(Yl()(Yl()(Yl()({},lE,"添加链接"),dE,"添加代码块"),cE,"添加图片"),hE,"添加画图"),uE,"插入流程图"),pE,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),SE=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,o=void 0===r?"100%":r,a=e.height,s=void 0===a?400:a,u=e.miniToolbar,h=void 0!==u&&u,d=e.isFocus,p=void 0!==d&&d,f=e.watch,m=e.insertTemp,v=e.mode,y=void 0===v?"markdown":v,b=e.id,x=void 0===b?"markdown-editor-id":b,S=e.showResizeBar,k=void 0!==S&&S,_=e.noStorage,C=void 0!==_&&_,P=e.showNullButton,E=void 0!==P&&P,M=e.showNullProgramButton,L=void 0!==M&&M,A=e.hidetoolBar,T=void 0!==A&&A,D=e.fullScreen,N=void 0!==D&&D,I=e.onBlur,B=e.onCMBeforeChange,R=e.onFullScreen,O=e.className,F=void 0===O?"":O,z=e.disablePaste,j=void 0!==z&&z,$=e.disabled,H=void 0!==$&&$,Z=e.disabledFill,K=void 0!==Z&&Z,G=e.placeholder,U=void 0===G?"":G,V=e.values,W=void 0===V?"":V,q=e.extraUse,Y=(0,c.useState)(null),X=l()(Y,2),Q=X[0],J=X[1],ee=(0,c.useState)(n),te=l()(ee,2),ne=te[0],ie=te[1],re=(0,c.useState)(f),oe=l()(re,2),ae=oe[0],se=oe[1],le=(0,c.useState)(N),ce=l()(le,2),ue=ce[0],he=ce[1],de=(0,c.useState)(""),pe=l()(de,2),fe=pe[0],ge=pe[1],me=(0,c.useState)(0),ve=l()(me,2),ye=ve[0],be=ve[1],we=(0,c.useState)(s),xe=l()(we,2),Se=xe[0],ke=xe[1],_e=(0,c.useState)(!1),Ce=l()(_e,2),Pe=(Ce[0],Ce[1]),Ee=(0,c.useState)(0),Me=l()(Ee,2),Le=Me[0],Ae=Me[1],Te=(0,c.useState)(0),De=l()(Te,2),Ne=De[0],Ie=De[1],Be=(0,c.useRef)(),Re=(0,c.useRef)(),Oe=(0,c.useRef)(),Fe=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;ie(W),null==Q||Q.setValue(W),window.scrollTo(0,e)}),[W]),(0,c.useEffect)((function(){null==R||R(ue)}),[ue]),(0,c.useEffect)((function(){if(Be.current){var e=function(e,n){if(!j){var i=n.clipboardData;if(i){var r=i.types.toString(),o=i.items;if("Files"===r||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==y)return;try{var a,s=o[1];"file"===(null===(a=o[0])||void 0===a?void 0:a.kind)&&(s=o[0]);var l=s.getAsFile(),c=l.name.split(".").pop();uh(l,(function(e){var n,i,r;e.id?(null==l||null===(n=l.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection('','')):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==l||null===(r=l.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?t.replaceSelection('').concat(l.name,"")):vE.includes(c)?t.replaceSelection('').concat(l.name,"")):t.replaceSelection("[".concat(l.name,"](/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){ec.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=Cc().fromTextArea(Be.current,{mode:y,lineNumbers:!h,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",U):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),r=n.getLine(i.line),o=r.charAt(i.ch-1),a=r.lastIndexOf("@▁@",i.ch),s=r.lastIndexOf("@▁▁@",i.ch),l=a>s?a:s,c=a>s?3:4;if(-1===mE.indexOf(o))return null;if(console.log("change1:",t,e,r,i,l,a,s,o),l>=0&&i.ch-l<5){var u=l+c;return n.replaceRange("",{line:i.line,ch:l},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),p&&t.focus(),t.on("paste",e),H&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),J(t),function(){t.off("paste",e)}}}),[]);var ze,je,$e,He=(0,c.useCallback)((function(){Re.current}),[Se,Re,ue]);(0,c.useEffect)((function(){if(Q){var e=function(){var e=new Rl.Z((function(e){var t,n=w()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(He(),Q.setSize("100%","100%"),Q.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(Be.current.parentElement),e}();return function(){var t,n;null!==(t=Be.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=Be.current)||void 0===n?void 0:n.parentElement)}}}),[Q,He]),(0,c.useEffect)((function(){if(Q){for(var e=[],t=function(){var t=l()(i[n],2),r=t[0],o=t[1],a=Yl()({},r,(function(){Ze(o)}));e.push(a),Q.addKeyMap(a)},n=0,i=Object.entries(wE);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(x);e>=ye+1e4&&(!t||t!==ne)&&(window.sessionStorage.setItem(x,ne),Pe(!0))}},je=1e4,$e=(0,c.useRef)(),(0,c.useEffect)((function(){$e.current=ze})),(0,c.useEffect)((function(){if(null!==je){var e=setInterval((function(){$e.current()}),je);return function(){return clearInterval(e)}}}),[je]),(0,c.useEffect)((function(){se(f)}),[Q,f]),(0,c.useEffect)((function(){Q&&p&&Q.focus()}),[Q,p]),(0,c.useEffect)((function(){if(ae&&Q){var e=function(e){var t=e.target;if(Fe.current){var n=t.scrollTop/t.scrollHeight;Fe.current.scrollTop=Fe.current.scrollHeight*n}},t=Q.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Q,ae]),(0,c.useEffect)((function(){if(Q&&B){var e=function(e,t){B(e,t)};return Q.on("beforeChange",e),function(){Q.off("beforeChange",e)}}}),[Q,B]),(0,c.useEffect)((function(){if(Q&&I){var e=function(){I(Q.getValue())};return Q.on("blur",e),function(){Q.off("blur",e)}}}),[Q,I]),(0,c.useEffect)((function(){if(Q){var e=function(e,t){var n=e.getValue();ie(n),be((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(L?i(n,We(n)):i(n))};return Q.on("change",e),function(){Q.off("change",e)}}}),[Q,i]),(0,c.useEffect)((function(){if(Q)if(null==n)Q.setValue(""),ie("");else{var e=window.scrollY||window.pageYOffset;n!==Q.getValue()&&(Q.setValue(n),ie(n),Q.setCursor(H?1:Q.lineCount(),0),window.scrollTo(0,e))}}),[Q,n]);var Ze=(0,c.useCallback)((function(e){var t=Q.getCursor(),n=Q.getSelection(),i=n.split("\n");switch(e){case"bold":return Q.replaceSelection("**"+n+"**"),""===n&&Q.setCursor(t.line,t.ch+2),Q.focus();case"italic":return Q.replaceSelection("*"+n+"*"),""===n&&Q.setCursor(t.line,t.ch+1),Q.focus();case"code":return Q.replaceSelection("`"+n+"`"),""===n&&Q.setCursor(t.line,t.ch+1),Q.focus();case"inline-latex":return ge("inline-latex"),Q.focus();case"latex":return Q.replaceSelection("```latex\n"+n+"\n```"),Q.setCursor(t.line+1,n.length+1),Q.focus();case"line-break":return Q.replaceSelection("
    \n"),Q.focus();case"list-ul":return""===n?Q.replaceSelection("- "+n):Q.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Q.focus();case"list-ol":return""===n?Q.replaceSelection("1. "+n):Q.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Q.focus();case"add-null-ch":return""===n&&Q.setCursor(t.line,t.ch),Q.replaceSelection("▁"),Q.focus();case"add-signal":return""===n&&Q.setCursor(t.line,t.ch),Q.replaceSelection("@▁@"),Q.focus();case"add-multiple":return""===n&&Q.setCursor(t.line,t.ch),Q.replaceSelection(mE),Q.focus();case"inster-template-1":return""===n&&Q.setCursor(t.line,t.ch),Q.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Q.focus();case"eraser":return Q.setValue(""),Q.focus();case"trigger-watch":return se(!ae),Q.focus();case"trigger-full-screen":return he(!ue),Q.focus();case lE:return void ge(lE);case dE:return void ge(dE);case cE:return void ge(cE);case hE:return void ge(hE);case"maths-latex":return void ge("maths-latex");case uE:return void ge(uE);case pE:return void ge(pE);default:throw new Error}}),[Q,ae,ue]),Ke=(0,c.useCallback)((function(e,t){var n,i,r,o,a;switch(ge(""),fe){case lE:var s=e.title,l=e.link;return Q.replaceSelection("[".concat(s,"](").concat(l,")")),Q.focus();case dE:var c=e.language,u=e.content;return Q.replaceSelection(["```"+c,u,"```"].join("\n")),Q.focus();case"maths-latex":for(var h=atob(e),d=new Uint8Array(h.length),p=0;p-1||null==m||!m.type?null!=m&&m.align||null!=m&&m.width?Q.replaceSelection('

    ').concat(g||

    ')):Q.replaceSelection('').concat(g||')):(null==m||null===(o=m.type)||void 0===o?void 0:o.indexOf("video"))>-1?Q.replaceSelection('')):(null==m||null===(a=m.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Q.replaceSelection('').concat(m.name,"")):vE.includes(v)?Q.replaceSelection('').concat(m.name,"")):Q.replaceSelection("[".concat(m.name,"](").concat(f,")")),Q.focus();case pE:for(var y=e.row,b=e.col,w=e.align,x="\n",S=0;S300&&(t=300),ke(s+t+"px")}},i=Oe.current,r=!1,o=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Q,Oe]),(0,c.useEffect)((function(){ke(s)}),[s]);var Ve={width:yE(o),height:yE(Se)},We=((0,c.useMemo)((function(){if(ye){var e=new Date(ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[ye]),function(e){var t=[];if(L){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){xE[fe]&&fe!==hE&&fe!==uE&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;Ae(t),Ie(n)}),0)}),[fe]);var qe=function(e,t,n,i){var r=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&n>e||e>o-20&&nt||t>r-20&&i0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var i=e.data[t];Array.isArray(i)?i.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,i)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),i=new Error(n);return i.status=t.status,i.method=e.method,i.url=e.action,i}(e,t),IE(t)):e.onSuccess(IE(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var i=e.headers||{};return null!==i["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(i).forEach((function(e){null!==i[e]&&t.setRequestHeader(e,i[e])})),t.send(n),{abort:function(){t.abort()}}}var RE=function(){var e=(0,TE.Z)((0,AE.Z)().mark((function e(t,n){var i,r,o,a,s,l,c,u;return(0,AE.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l=function(){return(l=(0,TE.Z)((0,AE.Z)().mark((function e(t){return(0,AE.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){t.file((function(i){n(i)?(t.fullPath&&!i.webkitRelativePath&&(Object.defineProperties(i,{webkitRelativePath:{writable:!0}}),i.webkitRelativePath=t.fullPath.replace(/^\//,""),Object.defineProperties(i,{webkitRelativePath:{writable:!1}})),e(i)):e(null)}))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)},s=function(e){return l.apply(this,arguments)},a=function(){return a=(0,TE.Z)((0,AE.Z)().mark((function e(t){var n,i,r,o,a;return(0,AE.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.createReader(),i=[];case 2:return e.next=5,new Promise((function(e){n.readEntries(e,(function(){return e([])}))}));case 5:if(r=e.sent,o=r.length){e.next=9;break}return e.abrupt("break",12);case 9:for(a=0;a{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${(0,ju.bf)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${(0,ju.bf)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n &:not(${t}-disabled):hover,\n &-hover:not(${t}-disabled)\n `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${(0,ju.bf)(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}};var XE=e=>{const{componentCls:t,iconCls:n,fontSize:i,lineHeight:r,calc:o}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,Ku.dF)()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:o(e.lineHeight).mul(i).equal(),marginTop:e.marginXS,fontSize:i,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},Ku.vS),{padding:`0 ${(0,ju.bf)(e.paddingXS)}`,lineHeight:r,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n ${l}:focus-visible,\n &.picture ${l}\n `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:i},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:o(i).add(e.paddingXS).equal(),fontSize:i,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},QE=n(99495);var JE=e=>{const{componentCls:t}=e,n=new ju.E4("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=new ju.E4("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${r}-appear, ${r}-enter, ${r}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${r}-appear, ${r}-enter`]:{animationName:n},[`${r}-leave`]:{animationName:i}}},{[`${t}-wrapper`]:(0,QE.J$)(e)},n,i]},eM=n(68361);const tM=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:i,uploadProgressOffset:r,calc:o}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`\n ${a}${a}-picture,\n ${a}${a}-picture-card,\n ${a}${a}-picture-circle\n `]:{[s]:{position:"relative",height:o(i).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${(0,ju.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Ku.vS),{width:i,height:i,lineHeight:(0,ju.bf)(o(i).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:r,width:`calc(100% - ${(0,ju.bf)(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(i).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${eM.iN[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${eM.iN.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:r}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},nM=e=>{const{componentCls:t,iconCls:n,fontSizeLG:i,colorTextLightSolid:r,calc:o}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},(0,Ku.dF)()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${(0,ju.bf)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,ju.bf)(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,ju.bf)(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n ${n}-eye,\n ${n}-download,\n ${n}-delete\n `]:{zIndex:10,width:i,margin:`0 ${(0,ju.bf)(e.marginXXS)}`,fontSize:i,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:r,"&:hover":{color:r},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${(0,ju.bf)(o(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${(0,ju.bf)(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var iM=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};const rM=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,Ku.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}};var oM=(0,Uu.I$)("Upload",(e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:i,controlHeightLG:r,calc:o}=e,a=(0,Vu.IX)(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(i).equal(),uploadPicCardSize:o(r).mul(2.55).equal()});return[rM(a),YE(a),tM(a),nM(a),XE(a),JE(a),iM(a),(0,qE.Z)(a)]}),(e=>({actionsColor:e.colorTextDescription}))),aM={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},sM=function(e,t){return c.createElement(Tl.Z,(0,Ll.Z)({},e,{ref:t,icon:aM}))};var lM=c.forwardRef(sM),cM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},uM=function(e,t){return c.createElement(Tl.Z,(0,Ll.Z)({},e,{ref:t,icon:cM}))};var hM=c.forwardRef(uM),dM={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},pM=function(e,t){return c.createElement(Tl.Z,(0,Ll.Z)({},e,{ref:t,icon:dM}))};var fM=c.forwardRef(pM),gM=n(77900),mM=n(2738),vM=n(40192),yM=n(86641),bM=n(22703);function wM(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function xM(e,t){const n=(0,CE.Z)(t),i=n.findIndex((t=>{let{uid:n}=t;return n===e.uid}));return-1===i?n.push(e):n[i]=e,n}function SM(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}const kM=e=>0===e.indexOf("image/"),_M=e=>{if(e.type&&!e.thumbUrl)return kM(e.type);const t=e.thumbUrl||e.url||"",n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},CM=200;function PM(e){return new Promise((t=>{if(!e.type||!kM(e.type))return void t("");const n=document.createElement("canvas");n.width=CM,n.height=CM,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const i=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:e,height:o}=r;let a=CM,s=CM,l=0,c=0;e>o?(s=o*(CM/e),c=-(s-a)/2):(a=e*(CM/o),l=-(a-s)/2),i.drawImage(r,l,c,a,s);const u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(r.src),t(u)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(r.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)}))}var EM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},MM=function(e,t){return c.createElement(Tl.Z,(0,Ll.Z)({},e,{ref:t,icon:EM}))};var LM=c.forwardRef(MM),AM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},TM=function(e,t){return c.createElement(Tl.Z,(0,Ll.Z)({},e,{ref:t,icon:AM}))};var DM=c.forwardRef(TM),NM=n(15277),IM=n(29679),BM=n(40001),RM=n(19248),OM=n(99267),FM={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},zM=function(){var e=(0,c.useRef)([]),t=(0,c.useRef)(null);return(0,c.useEffect)((function(){var n=Date.now(),i=!1;e.current.forEach((function(e){if(e){i=!0;var r=e.style;r.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(r.transitionDuration="0s, 0s")}})),i&&(t.current=Date.now())})),e.current};var jM=n(47273),$M=0,HM=(0,jM.Z)();var ZM=function(e){var t=c.useState(),n=(0,Xc.Z)(t,2),i=n[0],r=n[1];return c.useEffect((function(){var e;r("rc_progress_".concat((HM?(e=$M,$M+=1):e="TEST_OR_SSR",e)))}),[]),e||i},KM=function(e){var t=e.bg,n=e.children;return c.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function GM(e,t){return Object.keys(e).map((function(n){var i=parseFloat(n),r="".concat(Math.floor(i*t),"%");return"".concat(e[n]," ").concat(r)}))}var UM=c.forwardRef((function(e,t){var n=e.prefixCls,i=e.color,r=e.gradientId,o=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,u=e.strokeWidth,h=e.size,d=e.gapDegree,p=i&&"object"===(0,Yc.Z)(i),f=p?"#FFF":void 0,g=h/2,m=c.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:g,cy:g,stroke:f,strokeLinecap:l,strokeWidth:u,opacity:0===s?0:1,style:a,ref:t});if(!p)return m;var v="".concat(r,"-conic"),y=d?"".concat(180+d/2,"deg"):"0deg",b=GM(i,(360-d)/360),w=GM(i,1),x="conic-gradient(from ".concat(y,", ").concat(b.join(", "),")"),S="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(w.join(", "),")");return c.createElement(c.Fragment,null,c.createElement("mask",{id:v},m),c.createElement("foreignObject",{x:0,y:0,width:h,height:h,mask:"url(#".concat(v,")")},c.createElement(KM,{bg:S},c.createElement(KM,{bg:x}))))}));var VM=UM,WM=100,qM=function(e,t,n,i,r,o,a,s,l,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,h=n/100*360*((360-o)/360),d=0===o?0:{bottom:0,top:180,left:90,right:-90}[a],p=(100-i)/100*t;"round"===l&&100!==i&&(p+=c/2)>=t&&(p=t-.01);var f=50;return{stroke:"string"==typeof s?s:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:p+u,transform:"rotate(".concat(r+h+d,"deg)"),transformOrigin:"".concat(f,"px ").concat(f,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},YM=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function XM(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var QM=function(e){var t,n,i,r=(0,LE.Z)((0,LE.Z)({},FM),e),o=r.id,a=r.prefixCls,s=r.steps,l=r.strokeWidth,u=r.trailWidth,h=r.gapDegree,d=void 0===h?0:h,p=r.gapPosition,g=r.trailColor,m=r.strokeLinecap,v=r.style,y=r.className,b=r.strokeColor,w=r.percent,x=(0,Qc.Z)(r,YM),S=ZM(o),k="".concat(S,"-gradient"),_=50-l/2,C=2*Math.PI*_,P=d>0?90+d/2:-90,E=C*((360-d)/360),M="object"===(0,Yc.Z)(s)?s:{count:s,gap:2},L=M.count,A=M.gap,T=XM(w),D=XM(b),N=D.find((function(e){return e&&"object"===(0,Yc.Z)(e)})),I=N&&"object"===(0,Yc.Z)(N)?"butt":m,B=qM(C,E,0,100,P,d,p,g,I,l),R=zM();return c.createElement("svg",(0,Ll.Z)({className:f()("".concat(a,"-circle"),y),viewBox:"0 0 ".concat(WM," ").concat(WM),style:v,id:o,role:"presentation"},x),!L&&c.createElement("circle",{className:"".concat(a,"-circle-trail"),r:_,cx:50,cy:50,stroke:g,strokeLinecap:I,strokeWidth:u||l,style:B}),L?(t=Math.round(L*(T[0]/100)),n=100/L,i=0,new Array(L).fill(null).map((function(e,r){var o=r<=t-1?D[0]:g,s=o&&"object"===(0,Yc.Z)(o)?"url(#".concat(k,")"):void 0,u=qM(C,E,i,n,P,d,p,o,"butt",l,A);return i+=100*(E-u.strokeDashoffset+A)/E,c.createElement("circle",{key:r,className:"".concat(a,"-circle-path"),r:_,cx:50,cy:50,stroke:s,strokeWidth:l,opacity:1,style:u,ref:function(e){R[r]=e}})}))):function(){var e=0;return T.map((function(t,n){var i=D[n]||D[D.length-1],r=qM(C,E,e,t,P,d,p,i,I,l);return e+=t,c.createElement(VM,{key:n,color:i,ptg:t,radius:_,prefixCls:a,gradientId:k,style:r,strokeLinecap:I,strokeWidth:l,gapDegree:d,ref:function(e){R[n]=e},size:WM})})).reverse()}())};function JM(e){return!e||e<0?0:e>100?100:e}function eL(e){let{success:t,successPercent:n}=e,i=n;return t&&"progress"in t&&(i=t.progress),t&&"percent"in t&&(i=t.percent),i}const tL=(e,t,n)=>{var i,r,o,a;let s=-1,l=-1;if("step"===t){const t=n.steps,i=n.strokeWidth;"string"==typeof e||void 0===e?(s="small"===e?2:14,l=null!=i?i:8):"number"==typeof e?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?l=t||("small"===e?6:8):"number"==typeof e?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[s,l]="small"===e?[60,60]:[120,120]:"number"==typeof e?[s,l]=[e,e]:Array.isArray(e)&&(s=null!==(r=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==r?r:120,l=null!==(a=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==a?a:120));return[s,l]};var nL=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:i="round",gapPosition:r,gapDegree:o,width:a=120,type:s,children:l,success:u,size:h=a,steps:d}=e,[p,g]=tL(h,"circle");let{strokeWidth:m}=e;void 0===m&&(m=Math.max((e=>3/e*100)(p),6));const v={width:p,height:g,fontSize:.15*p+6},y=c.useMemo((()=>o||0===o?o:"dashboard"===s?75:void 0),[o,s]),b=(e=>{let{percent:t,success:n,successPercent:i}=e;const r=JM(eL({success:n,successPercent:i}));return[r,JM(JM(t)-r)]})(e),w=r||"dashboard"===s&&"bottom"||void 0,x="[object Object]"===Object.prototype.toString.call(e.strokeColor),S=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:i}=t;return[i||eM.ez.green,n||null]})({success:u,strokeColor:e.strokeColor}),k=f()(`${t}-inner`,{[`${t}-circle-gradient`]:x}),_=c.createElement(QM,{steps:d,percent:d?b[1]:b,strokeWidth:m,trailWidth:m,strokeColor:d?S[1]:S,strokeLinecap:i,trailColor:n,prefixCls:t,gapDegree:y,gapPosition:w}),C=p<=20,P=c.createElement("div",{className:k,style:v},_,!C&&l);return C?c.createElement(tc.Z,{title:l},P):P};const iL="--progress-line-stroke-color",rL="--progress-percent",oL=e=>{const t=e?"100%":"-100%";return new ju.E4(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},aL=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,Ku.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${iL})`]},height:"100%",width:`calc(1 / var(${rL}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,ju.bf)(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:oL(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:oL(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},sL=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},lL=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},cL=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}};var uL=(0,Uu.I$)("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=(0,Vu.IX)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[aL(n),sL(n),lL(n),cL(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"}))),hL=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{from:n=eM.ez.blue,to:i=eM.ez.blue,direction:r=("rtl"===t?"to left":"to right")}=e,o=hL(e,["from","to","direction"]);if(0!==Object.keys(o).length){const e=(e=>{let t=[];return Object.keys(e).forEach((n=>{const i=parseFloat(n.replace(/%/g,""));Number.isNaN(i)||t.push({key:i,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(o),t=`linear-gradient(${r}, ${e})`;return{background:t,[iL]:t}}const a=`linear-gradient(${r}, ${n}, ${i})`;return{background:a,[iL]:a}};var pL=e=>{const{prefixCls:t,direction:n,percent:i,size:r,strokeWidth:o,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:u=null,percentPosition:h,success:d}=e,{align:p,type:g}=h,m=a&&"string"!=typeof a?dL(a,n):{[iL]:a,background:a},v="square"===s||"butt"===s?0:void 0,y=null!=r?r:[-1,o||("small"===r?6:8)],[b,w]=tL(y,"line",{strokeWidth:o});const x={backgroundColor:u||void 0,borderRadius:v},S=Object.assign(Object.assign({width:`${JM(i)}%`,height:w,borderRadius:v},m),{[rL]:JM(i)/100}),k=eL(e),_={width:`${JM(k)}%`,height:w,borderRadius:v,backgroundColor:null==d?void 0:d.strokeColor},C={width:b<0?"100%":b},P=c.createElement("div",{className:`${t}-inner`,style:x},c.createElement("div",{className:f()(`${t}-bg`,`${t}-bg-${g}`),style:S},"inner"===g&&l),void 0!==k&&c.createElement("div",{className:`${t}-success-bg`,style:_})),E="outer"===g&&"start"===p,M="outer"===g&&"end"===p;return"outer"===g&&"center"===p?c.createElement("div",{className:`${t}-layout-bottom`},P,l):c.createElement("div",{className:`${t}-outer`,style:C},E&&l,P,M&&l)};var fL=e=>{const{size:t,steps:n,rounding:i=Math.round,percent:r=0,strokeWidth:o=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:u}=e,h=i(n*(r/100)),d=null!=t?t:["small"===t?2:14,o],[p,g]=tL(d,"step",{steps:n,strokeWidth:o}),m=p/n,v=Array.from({length:n});for(let e=0;e{const{prefixCls:n,className:i,rootClassName:r,steps:o,strokeColor:a,percent:s=0,size:l="default",showInfo:u=!0,type:h="line",status:d,format:p,style:g,percentPosition:m={}}=e,v=gL(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:b="outer"}=m,w=Array.isArray(a)?a[0]:a,x="string"==typeof a||Array.isArray(a)?a:void 0,S=c.useMemo((()=>{if(w){const e="string"==typeof w?w:Object.values(w)[0];return new Wu.t(e).isLight()}return!1}),[a]),k=c.useMemo((()=>{var t,n;const i=eL(e);return parseInt(void 0!==i?null===(t=null!=i?i:0)||void 0===t?void 0:t.toString():null===(n=null!=s?s:0)||void 0===n?void 0:n.toString(),10)}),[s,e.success,e.successPercent]),_=c.useMemo((()=>!mL.includes(d)&&k>=100?"success":d||"normal"),[d,k]),{getPrefixCls:C,direction:P,progress:E}=c.useContext(Du.E_),M=C("progress",n),[L,A,T]=uL(M),D="line"===h,N=D&&!o,I=c.useMemo((()=>{if(!u)return null;const t=eL(e);let n;const i=D&&S&&"inner"===b;return"inner"===b||p||"exception"!==_&&"success"!==_?n=(p||(e=>`${e}%`))(JM(s),JM(t)):"exception"===_?n=D?c.createElement(RM.Z,null):c.createElement(OM.Z,null):"success"===_&&(n=D?c.createElement(IM.Z,null):c.createElement(BM.Z,null)),c.createElement("span",{className:f()(`${M}-text`,{[`${M}-text-bright`]:i,[`${M}-text-${y}`]:N,[`${M}-text-${b}`]:N}),title:"string"==typeof n?n:void 0},n)}),[u,s,k,_,h,M,p]);let B;"line"===h?B=o?c.createElement(fL,Object.assign({},e,{strokeColor:x,prefixCls:M,steps:"object"==typeof o?o.count:o}),I):c.createElement(pL,Object.assign({},e,{strokeColor:w,prefixCls:M,direction:P,percentPosition:{align:y,type:b}}),I):"circle"!==h&&"dashboard"!==h||(B=c.createElement(nL,Object.assign({},e,{strokeColor:w,prefixCls:M,progressStatus:_}),I));const R=f()(M,`${M}-status-${_}`,{[`${M}-${"dashboard"===h?"circle":h}`]:"line"!==h,[`${M}-inline-circle`]:"circle"===h&&tL(l,"circle")[0]<=20,[`${M}-line`]:N,[`${M}-line-align-${y}`]:N,[`${M}-line-position-${b}`]:N,[`${M}-steps`]:o,[`${M}-show-info`]:u,[`${M}-${l}`]:"string"==typeof l,[`${M}-rtl`]:"rtl"===P},null==E?void 0:E.className,i,r,A,T);return L(c.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==E?void 0:E.style),g),className:R,role:"progressbar","aria-valuenow":k,"aria-valuemin":0,"aria-valuemax":100},(0,mM.Z)(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),B))}));var yL=vL;const bL=c.forwardRef(((e,t)=>{let{prefixCls:n,className:i,style:r,locale:o,listType:a,file:s,items:l,progress:u,iconRender:h,actionIconRender:d,itemRender:p,isImgUrl:g,showPreviewIcon:m,showRemoveIcon:v,showDownloadIcon:y,previewIcon:b,removeIcon:w,downloadIcon:x,extra:S,onPreview:k,onDownload:_,onClose:C}=e;var P,E;const{status:M}=s,[L,A]=c.useState(M);c.useEffect((()=>{"removed"!==M&&A(M)}),[M]);const[T,D]=c.useState(!1);c.useEffect((()=>{const e=setTimeout((()=>{D(!0)}),300);return()=>{clearTimeout(e)}}),[]);const N=h(s);let I=c.createElement("div",{className:`${n}-icon`},N);if("picture"===a||"picture-card"===a||"picture-circle"===a)if("uploading"===L||!s.thumbUrl&&!s.url){const e=f()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:"uploading"!==L});I=c.createElement("div",{className:e},N)}else{const e=(null==g?void 0:g(s))?c.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):N,t=f()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(s)});I=c.createElement("a",{className:t,onClick:e=>k(s,e),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const B=f()(`${n}-list-item`,`${n}-list-item-${L}`),R="string"==typeof s.linkProps?JSON.parse(s.linkProps):s.linkProps,O=("function"==typeof v?v(s):v)?d(("function"==typeof w?w(s):w)||c.createElement(LM,null),(()=>C(s)),n,o.removeFile,!0):null,F=("function"==typeof y?y(s):y)&&"done"===L?d(("function"==typeof x?x(s):x)||c.createElement(DM,null),(()=>_(s)),n,o.downloadFile):null,z="picture-card"!==a&&"picture-circle"!==a&&c.createElement("span",{key:"download-delete",className:f()(`${n}-list-item-actions`,{picture:"picture"===a})},F,O),j="function"==typeof S?S(s):S,$=j&&c.createElement("span",{className:`${n}-list-item-extra`},j),H=f()(`${n}-list-item-name`),Z=s.url?c.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:H,title:s.name},R,{href:s.url,onClick:e=>k(s,e)}),s.name,$):c.createElement("span",{key:"view",className:H,onClick:e=>k(s,e),title:s.name},s.name,$),K=("function"==typeof m?m(s):m)&&(s.url||s.thumbUrl)?c.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>k(s,e),title:o.previewFile},"function"==typeof b?b(s):b||c.createElement(NM.Z,null)):null,G=("picture-card"===a||"picture-circle"===a)&&"uploading"!==L&&c.createElement("span",{className:`${n}-list-item-actions`},K,"done"===L&&F,O),{getPrefixCls:U}=c.useContext(Du.E_),V=U(),W=c.createElement("div",{className:B},I,Z,z,G,T&&c.createElement(gM.ZP,{motionName:`${V}-fade`,visible:"uploading"===L,motionDeadline:2e3},(e=>{let{className:t}=e;const i="percent"in s?c.createElement(yL,Object.assign({},u,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return c.createElement("div",{className:f()(`${n}-list-item-progress`,t)},i)}))),q=s.response&&"string"==typeof s.response?s.response:(null===(P=s.error)||void 0===P?void 0:P.statusText)||(null===(E=s.error)||void 0===E?void 0:E.message)||o.uploadError,Y="error"===L?c.createElement(tc.Z,{title:q,getPopupContainer:e=>e.parentNode},W):W;return c.createElement("div",{className:f()(`${n}-list-item-container`,i),style:r,ref:t},p?p(Y,s,l,{download:_.bind(null,s),preview:k.bind(null,s),remove:C.bind(null,s)}):Y)}));var wL=bL;const xL=(e,t)=>{const{listType:n="text",previewFile:i=PM,onPreview:r,onDownload:o,onRemove:a,locale:s,iconRender:l,isImageUrl:u=_M,prefixCls:h,items:d=[],showPreviewIcon:p=!0,showRemoveIcon:g=!0,showDownloadIcon:m=!1,removeIcon:v,previewIcon:y,downloadIcon:b,extra:w,progress:x={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:k=!0,itemRender:_,disabled:C}=e,P=(0,vM.Z)(),[E,M]=c.useState(!1),L=["picture-card","picture-circle"].includes(n);c.useEffect((()=>{n.startsWith("picture")&&(d||[]).forEach((e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null==i||i(e.originFileObj).then((t=>{e.thumbUrl=t||"",P()})))}))}),[n,d,i]),c.useEffect((()=>{M(!0)}),[]);const A=(e,t)=>{if(r)return null==t||t.preventDefault(),r(e)},T=e=>{"function"==typeof o?o(e):e.url&&window.open(e.url)},D=e=>{null==a||a(e)},N=e=>{if(l)return l(e,n);const t="uploading"===e.status;if(n.startsWith("picture")){const i="picture"===n?c.createElement(Ed.Z,null):s.uploading,r=(null==u?void 0:u(e))?c.createElement(fM,null):c.createElement(lM,null);return t?i:r}return t?c.createElement(Ed.Z,null):c.createElement(hM,null)},I=(e,t,n,i,r)=>{const o={type:"text",size:"small",title:i,onClick:n=>{var i,r;t(),c.isValidElement(e)&&(null===(r=(i=e.props).onClick)||void 0===r||r.call(i,n))},className:`${n}-list-item-action`};return r&&(o.disabled=C),c.isValidElement(e)?c.createElement(Ml.ZP,Object.assign({},o,{icon:(0,bM.Tm)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):c.createElement(Ml.ZP,Object.assign({},o),c.createElement("span",null,e))};c.useImperativeHandle(t,(()=>({handlePreview:A,handleDownload:T})));const{getPrefixCls:B}=c.useContext(Du.E_),R=B("upload",h),O=B(),F=f()(`${R}-list`,`${R}-list-${n}`),z=c.useMemo((()=>(0,mM.Z)((0,yM.Z)(O),["onAppearEnd","onEnterEnd","onLeaveEnd"])),[O]),j=Object.assign(Object.assign({},L?{}:z),{motionDeadline:2e3,motionName:`${R}-${L?"animate-inline":"animate"}`,keys:(0,CE.Z)(d.map((e=>({key:e.uid,file:e})))),motionAppear:E});return c.createElement("div",{className:F},c.createElement(gM.V4,Object.assign({},j,{component:!1}),(e=>{let{key:t,file:i,className:r,style:o}=e;return c.createElement(wL,{key:t,locale:s,prefixCls:R,className:r,style:o,file:i,items:d,progress:x,listType:n,isImgUrl:u,showPreviewIcon:p,showRemoveIcon:g,showDownloadIcon:m,removeIcon:v,previewIcon:y,downloadIcon:b,extra:w,iconRender:N,actionIconRender:I,itemRender:_,onPreview:A,onDownload:T,onClose:D})})),S&&c.createElement(gM.ZP,Object.assign({},j,{visible:k,forceRender:!0}),(e=>{let{className:t,style:n}=e;return(0,bM.Tm)(S,(e=>({className:f()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)})))})))};var SL=c.forwardRef(xL),kL=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};const _L=`__LIST_IGNORE_${Date.now()}__`,CL=(e,t)=>{const{fileList:n,defaultFileList:i,onRemove:r,showUploadList:o=!0,listType:a="text",onPreview:s,onDownload:l,onChange:u,onDrop:h,previewFile:d,disabled:p,locale:g,iconRender:m,isImageUrl:v,progress:y,prefixCls:b,className:w,type:x="select",children:S,style:k,itemRender:_,maxCount:C,data:P={},multiple:E=!1,hasControlInside:M=!0,action:L="",accept:A="",supportServerRender:T=!0,rootClassName:D}=e,N=c.useContext(Iu.Z),I=null!=p?p:N,[B,R]=(0,Md.Z)(i||[],{value:n,postState:e=>null!=e?e:[]}),[O,F]=c.useState("drop"),z=c.useRef(null),j=c.useRef(null);c.useMemo((()=>{const e=Date.now();(n||[]).forEach(((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)}))}),[n]);const $=(e,t,n)=>{let i=(0,CE.Z)(t),r=!1;1===C?i=i.slice(-1):C&&(r=i.length>C,i=i.slice(0,C)),(0,Ic.flushSync)((()=>{R(i)}));const o={file:e,fileList:i};n&&(o.event=n),r&&"removed"!==e.status&&!i.some((t=>t.uid===e.uid))||(0,Ic.flushSync)((()=>{null==u||u(o)}))},H=e=>{const t=e.filter((e=>!e.file[_L]));if(!t.length)return;const n=t.map((e=>wM(e.file)));let i=(0,CE.Z)(B);n.forEach((e=>{i=xM(e,i)})),n.forEach(((e,n)=>{let r=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(e){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,r=n}$(r,i)}))},Z=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!SM(t,B))return;const i=wM(t);i.status="done",i.percent=100,i.response=e,i.xhr=n;const r=xM(i,B);$(i,r)},K=(e,t)=>{if(!SM(t,B))return;const n=wM(t);n.status="uploading",n.percent=e.percent;const i=xM(n,B);$(n,i,e)},G=(e,t,n)=>{if(!SM(n,B))return;const i=wM(n);i.error=e,i.response=t,i.status="error";const r=xM(i,B);$(i,r)},U=e=>{let t;Promise.resolve("function"==typeof r?r(e):r).then((n=>{var i;if(!1===n)return;const r=function(e,t){const n=void 0!==e.uid?"uid":"name",i=t.filter((t=>t[n]!==e[n]));return i.length===t.length?null:i}(e,B);r&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==B||B.forEach((e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(i=z.current)||void 0===i||i.abort(t),$(t,r))}))},V=e=>{F(e.type),"drop"===e.type&&(null==h||h(e))};c.useImperativeHandle(t,(()=>({onBatchStart:H,onSuccess:Z,onProgress:K,onError:G,fileList:B,upload:z.current,nativeElement:j.current})));const{getPrefixCls:W,direction:q,upload:Y}=c.useContext(Du.E_),X=W("upload",b),Q=Object.assign(Object.assign({onBatchStart:H,onError:G,onProgress:K,onSuccess:Z},e),{data:P,multiple:E,action:L,accept:A,supportServerRender:T,prefixCls:X,disabled:I,beforeUpload:(t,n)=>kL(void 0,void 0,void 0,(function*(){const{beforeUpload:i,transformFile:r}=e;let o=t;if(i){const e=yield i(t,n);if(!1===e)return!1;if(delete t[_L],e===_L)return Object.defineProperty(t,_L,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(o=e)}return r&&(o=yield r(o)),o})),onChange:void 0,hasControlInside:M});delete Q.className,delete Q.style,S&&!I||delete Q.id;const J=`${X}-wrapper`,[ee,te,ne]=oM(X,J),[ie]=(0,VE.Z)("Upload",WE.Z.Upload),{showRemoveIcon:re,showPreviewIcon:oe,showDownloadIcon:ae,removeIcon:se,previewIcon:le,downloadIcon:ce,extra:ue}="boolean"==typeof o?{}:o,he=void 0===re?!I:re,de=(e,t)=>o?c.createElement(SL,{prefixCls:X,listType:a,items:B,previewFile:d,onPreview:s,onDownload:l,onRemove:U,showRemoveIcon:he,showPreviewIcon:oe,showDownloadIcon:ae,removeIcon:se,previewIcon:le,downloadIcon:ce,iconRender:m,extra:ue,locale:Object.assign(Object.assign({},ie),g),isImageUrl:v,progress:y,appendAction:e,appendActionVisible:t,itemRender:_,disabled:I}):e,pe=f()(J,w,D,te,ne,null==Y?void 0:Y.className,{[`${X}-rtl`]:"rtl"===q,[`${X}-picture-card-wrapper`]:"picture-card"===a,[`${X}-picture-circle-wrapper`]:"picture-circle"===a}),fe=Object.assign(Object.assign({},null==Y?void 0:Y.style),k);if("drag"===x){const e=f()(te,X,`${X}-drag`,{[`${X}-drag-uploading`]:B.some((e=>"uploading"===e.status)),[`${X}-drag-hover`]:"dragover"===O,[`${X}-disabled`]:I,[`${X}-rtl`]:"rtl"===q});return ee(c.createElement("span",{className:pe,ref:j},c.createElement("div",{className:e,style:fe,onDrop:V,onDragOver:V,onDragLeave:V},c.createElement(UE,Object.assign({},Q,{ref:z,className:`${X}-btn`}),c.createElement("div",{className:`${X}-drag-container`},S))),de()))}const ge=f()(X,`${X}-select`,{[`${X}-disabled`]:I,[`${X}-hidden`]:!S}),me=c.createElement("div",{className:ge},c.createElement(UE,Object.assign({},Q,{ref:z})));return ee("picture-card"===a||"picture-circle"===a?c.createElement("span",{className:pe,ref:j},de(me,!!S)):c.createElement("span",{className:pe,ref:j},me,de()))};var PL=c.forwardRef(CL),EL=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{style:n,height:i,hasControlInside:r=!1}=e,o=EL(e,["style","height","hasControlInside"]);return c.createElement(PL,Object.assign({ref:t,hasControlInside:r},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:i})}))}));var LL=ML;const AL=PL;AL.Dragger=LL,AL.LIST_IGNORE=_L;var TL=AL;function DL(e){return NL.apply(this,arguments)}function NL(){return(NL=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pd.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var IL="  ";function BL(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var RL={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},OL=function(e,t){return c.createElement(Tl.Z,(0,Ll.Z)({},e,{ref:t,icon:RL}))};var FL=c.forwardRef(OL);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var zL=TL.Dragger;var jL=function(e){var t=e.value,n=e.onChange,i=e.action,o=e.data,s=e.className,u=e.maxSize,d=void 0===u?150:u,p=e.title,f=void 0===p?"上传附件":p,m=e.showRemoveModal,v=void 0!==m&&m,b=e.accept,w=void 0===b?"":b,x=e.additionalText,S=e.isDragger,k=e.number,_=void 0===k?1e3:k,C=e.aloneClear,P=void 0!==C&&C,E=e.realTimeRemove,M=void 0===E||E,L=e.uploadText,A=e.setFileProgress,T=e.showFileProgress,D=(0,c.useState)(!1),N=l()(D,2),I=N[0],B=N[1],R=(0,c.useState)(t||[]),O=l()(R,2),F=O[0],z=O[1],j=(0,c.useState)(1),$=l()(j,2),H=$[0],Z=$[1];(0,c.useEffect)((function(){t&&(1===H&&z(y()(t)),Z(2),_===(null==t?void 0:t.length)&&B(!0))}),[t]);var K=function(){setTimeout((function(){F.pop(),z(y()(F))}),500)};T&&A(F.some((function(e){return"uploading"===e.status})));var G,U={multiple:!0,disabled:I,accept:w,withCredentials:!0,fileList:F,beforeUpload:function(e,t){var n=e.size/1024/1024;return F.concat(t).length>_?(F.pop(),z(y()(F)),ec.ZP.error("最多只能上传".concat(_,"个文件")),P?Promise.reject():(K(),!1)):n=_?B(!0):B(!1),z(y()(F)),F=F.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(IL)&&(e.name="".concat(e.name).concat(IL).concat(BL(e.size))),h()({},e)})),console.log("info:",e,F),n(F)):ec.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(G=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(M){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,DL(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!v){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;hh.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,g.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,ec.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return G.apply(this,arguments)})};return(0,g.jsxs)("div",{className:"multi-upload ".concat(s||""),children:[S&&(0,g.jsxs)(zL,h()(h()({},U),{},{children:[(0,g.jsx)("p",{className:"ant-upload-drag-icon",children:(0,g.jsx)(FL,{})}),(0,g.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,g.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),x]})),!S&&(0,g.jsxs)(TL,h()(h()({},U),{},{children:[(0,g.jsxs)(Ml.ZP,{disabled:I,className:"upload_button",children:[(0,g.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),f]}),(0,g.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:L||"(单个文件最大".concat(d,"MB)")})]}))]})},$L=n(94414);function HL(e,t){var n=(0,c.useState)(t),i=l()(n,2),o=i[0],s=i[1],u=(0,c.useState)(!1),d=l()(u,2),p=d[0],f=d[1],g=(0,c.useState)(),m=l()(g,2),v=m[0],y=m[1],b=function(){var n=a()(r()().mark((function n(i){var a,l,c,u=arguments;return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=u.length>1&&void 0!==u[1]&&u[1],l=a?t:h()(h()({},o),i),f(!0),s(l),n.next=6,e(l);case 6:return c=n.sent,f(!1),y(c),n.abrupt("return",c);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return[o,p,b,v,y]}var ZL=(0,d.connect)((function(e){return{user:e.user,competitions:e.competitions}}))((function(e){var t,n,i,o,s,u,d=e.className,p=e.style,m=void 0===p?{}:p,v=e.DataProps,y=void 0===v?{}:v,b=e.onFinish,w=e.hiddenUpload,x=e.competitions,S=e.isShowEdit,k=void 0===S?null==x||null===(t=x.Header)||void 0===t?void 0:t.is_manager:S,_=(0,c.useState)(!1),C=l()(_,2),P=C[0],E=C[1],M=Sc.Z.useForm(),L=l()(M,1)[0],A=HL($L.iR,{}),T=l()(A,3),D=T[1],N=T[2];return(0,g.jsx)("div",{className:f()("pb-30px-rem text-14px-rem",d),style:h()({borderBottom:"1rem solid #EAECF3"},m),children:P?(0,g.jsxs)(Sc.Z,{form:L,initialValues:h()(h()({},y),{},{competition_module_id:null==y?void 0:y.id,description:null==y?void 0:y.name,content:null==y?void 0:y.md_content,attachment_ids:(s=(null==y||null===(n=y.attachments)||void 0===n?void 0:n.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h()(h()({},e),{},{url:kl.Z.API_SERVER+(null==e?void 0:e.download_url)})})))||[],u=[],s&&s.length>0&&(u=s.map((function(e){return{uid:e.id,id:e.id,name:e.title+IL+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),u)}),onFinish:function(){var e=a()(r()().mark((function e(t){var n,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("allValue",t),e.next=3,N(h()(h()({},t),{},{attachment_ids:null==t||null===(n=t.attachment_ids)||void 0===n?void 0:n.map((function(e){var t;return null==e||null===(t=e.response)||void 0===t?void 0:t.id}))}));case 3:0==(null==(i=e.sent)?void 0:i.status)&&(ec.ZP.success("保存成功"),b(t),E(!1));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,g.jsx)(Sc.Z.Item,{name:"competition_module_id",hidden:!0}),(0,g.jsx)(Sc.Z.Item,{name:"description",children:(0,g.jsx)(kc.Z,{placeholder:"请输入名称"})}),(0,g.jsx)(Sc.Z.Item,{name:"content",children:(0,g.jsx)(_E,{scrollId:"content"})}),!w&&(0,g.jsx)(Sc.Z.Item,{name:"attachment_ids",children:(0,g.jsx)(jL,{})}),(0,g.jsxs)("div",{className:"flex item-center gap-20px-rem justify-end",children:[(0,g.jsx)(Ml.ZP,{htmlType:"reset",onClick:function(){E(!1)},children:"取消"}),(0,g.jsx)(Ml.ZP,{htmlType:"submit",type:"primary",loading:D,children:"保存更改"})]})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"flex item-center justify-between",children:[(0,g.jsx)("div",{className:"font-semibold text-22px-rem",style:{color:"#232B40"},children:(null==y?void 0:y.md_name)||(null==y?void 0:y.name)}),k&&(0,g.jsxs)("div",{className:"current-primary flex item-center gap-5px-rem",onClick:function(){E(!0)},children:[(0,g.jsx)("span",{className:"iconfont icon-bianji16",style:{fontSize:"14rem"}})," 编辑"]})]}),(0,g.jsx)(xc,{className:"mt-16px-rem text-18px-rem",value:(null==y?void 0:y.md_content)||"--"}),(null==y||null===(i=y.attachments)||void 0===i?void 0:i.length)>0&&(0,g.jsx)("div",{className:"flex flex-wrap gap-20px-rem mt-20px-rem text-18px-rem",children:null==y||null===(o=y.attachments)||void 0===o?void 0:o.map((function(e){return(0,g.jsx)("a",{target:"_self",download:null==e?void 0:e.title,href:(null===kl.Z||void 0===kl.Z?void 0:kl.Z.API_SERVER)+(null==e?void 0:e.download_url),children:(0,g.jsx)("div",{className:"rounded-4px-rem px-12px-rem py-8px-rem",style:{background:"rgba(48,97,208,0.1)",color:"#3061D0"},children:null==e?void 0:e.title},null==e?void 0:e.id)})}))})]})})})),KL=n(29091),GL=n(70236),UL=n.n(GL),VL=(0,d.connect)((function(e){return{user:e.user}}))((function(e){UL()(e);var t=HL($L.pM,{}),n=l()(t,4),i=n[1],o=n[2],s=n[3],u=(void 0===s?{}:s).data,h=(void 0===u?{}:u).competition_modules,d=void 0===h?[]:h;return(0,c.useEffect)((function(){o({})}),[]),(0,g.jsx)(mh.Z,{spinning:i,children:(0,g.jsx)("div",{className:"bg-white mt-20px-rem rounded-4px-rem p-20px-rem flex flex-col gap-30px-rem",style:{border:"1rem solid #f1f1f1"},children:null==d?void 0:d.map((function(e){return(0,g.jsx)(ZL,{DataProps:e,onFinish:function(){var e=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o({});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},null==e?void 0:e.id)}))})})})),WL=(0,d.connect)((function(e){return{user:e.user}}))((function(e){UL()(e);var t=HL($L.B3,{}),n=l()(t,4),i=n[1],o=n[2],s=n[3],u=(void 0===s?{}:s).data,h=(void 0===u?{}:u).competition_modules,d=void 0===h?[]:h;return(0,c.useEffect)((function(){o({})}),[]),(0,g.jsx)(mh.Z,{spinning:i,children:(0,g.jsx)("div",{className:"bg-white mt-20px-rem rounded-4px-rem p-20px-rem flex flex-col gap-30px-rem",style:{border:"1rem solid #f1f1f1"},children:null==d?void 0:d.map((function(e){return(0,g.jsx)(ZL,{DataProps:e,onFinish:function(){var e=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o({});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},null==e?void 0:e.id)}))})})})),qL=n(98012),YL={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",Item:"Item___x3_o3",active:"active___F26E8"},XL=function(e){var t=e.dataSource,n=void 0===t?[]:t,i=e.value,r=e.onChange,o=e.className,a=e.style,s=void 0===a?{}:a;return(0,g.jsx)("div",{style:s,className:f()("text-14px",YL.tabs,o),children:n.map((function(e){return e.hidden?null:(0,g.jsx)("div",{style:e.style,className:f()(null==YL?void 0:YL.Item,i===e.id?YL.active:"",e.className),onClick:function(){return r(e.id)},children:e.name},e.id)}))})},QL="input___PW2zI",JL="dropdown___vSy8B",eA="menu___NiyBu",tA="text___Grueu",nA="b1___ZKryM",iA="b2___aKyGa",rA=function(e){var t,n=e.dataSource,i=void 0===n?[]:n,r=e.value,o=void 0===r?"":r,a=e.onChange,s=e.onInputChange,u=void 0===s?function(){}:s,h=e.className,d=e.style,p=void 0===d?{}:d,m=e.placeholder,v=(e.allowClear,(0,c.useState)("")),y=l()(v,2),b=y[0],w=y[1],x=(0,c.useState)(""),S=l()(x,2),k=S[0],_=S[1];(0,c.useEffect)((function(){var e,t=o;null!==(e=JSON.stringify(o))&&void 0!==e&&e.includes("{")&&(w(o.id),t=o.value||"");try{_(decodeURIComponent(t||""))}catch(e){_(decodeURIComponent(t||""))}}),[o]);var C=function(){a(encodeURIComponent(k),b||null)};return(0,g.jsxs)("div",{className:f()(QL,h),style:p,children:[!!i.length&&(0,g.jsxs)("div",{className:JL,children:[(0,g.jsxs)("div",{className:tA,children:[null===(t=i.find((function(e){return e.id===b})))||void 0===t?void 0:t.name,(0,g.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,g.jsx)("b",{className:nA}),(0,g.jsx)("b",{className:iA})]}),(0,g.jsx)("div",{className:eA,children:i.map((function(e,t){return(0,g.jsx)("div",{onClick:function(){var t;(t=e.id)!==b&&(w(t),a(encodeURIComponent(k),t))},children:e.name},t)}))})]}),(0,g.jsx)(kc.Z,{onPressEnter:C,value:k,onChange:function(e){_(e.target.value),u(encodeURIComponent(e.target.value),b||null)},bordered:!1,placeholder:m}),(0,g.jsx)("i",{onClick:C,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},oA={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},aA=["className","style","children","loading","openLoading","onClick","size","shape"],sA=function(e){var t=e.className,n=e.style,i=e.children,o=e.loading,s=void 0!==o&&o,u=e.openLoading,d=e.onClick,p=void 0===d?function(){}:d,m=e.size,v=void 0===m?"middle":m,y=e.shape,b=void 0===y?"round":y,w=Bl()(e,aA),x=(0,c.useState)(!1),S=l()(x,2),k=S[0],_=S[1];return(0,g.jsx)(Ml.ZP,h()(h()({onClick:(0,nc.throttle)(function(){var e=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u&&_(!0),e.prev=1,e.next=4,p(t);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:u&&_(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:f()(oA.btn,oA["".concat(v,"-").concat(b)],t),style:n,size:v,shape:b,loading:k||s},w),{},{children:i}))},lA=n(458);var cA=e=>{const{value:t,formatter:n,precision:i,decimalSeparator:r,groupSeparator:o="",prefixCls:a}=e;let s;if("function"==typeof n)s=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",l=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,o),"number"==typeof i&&(l=l.padEnd(i,"0").slice(0,i>0?i:0)),l&&(l=`${r}${l}`),s=[c.createElement("span",{key:"int",className:`${a}-content-value-int`},e,t),l&&c.createElement("span",{key:"decimal",className:`${a}-content-value-decimal`},l)]}else s=e}return c.createElement("span",{className:`${a}-content-value`},s)};const uA=e=>{const{componentCls:t,marginXXS:n,padding:i,colorTextDescription:r,titleFontSize:o,colorTextHeading:a,contentFontSize:s,fontFamily:l}=e;return{[t]:Object.assign(Object.assign({},(0,Ku.Wf)(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:o},[`${t}-skeleton`]:{paddingTop:i},[`${t}-content`]:{color:a,fontSize:s,fontFamily:l,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}};var hA=(0,Uu.I$)("Statistic",(e=>{const t=(0,Vu.IX)(e,{});return[uA(t)]}),(e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}})),dA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,rootClassName:i,style:r,valueStyle:o,value:a=0,title:s,valueRender:l,prefix:u,suffix:h,loading:d=!1,formatter:p,precision:g,decimalSeparator:m=".",groupSeparator:v=",",onMouseEnter:y,onMouseLeave:b}=e,w=dA(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:x,direction:S,className:k,style:_}=(0,Du.dj)("statistic"),C=x("statistic",t),[P,E,M]=hA(C),L=c.createElement(cA,{decimalSeparator:m,groupSeparator:v,prefixCls:C,formatter:p,precision:g,value:a}),A=f()(C,{[`${C}-rtl`]:"rtl"===S},k,n,i,E,M),T=(0,DE.Z)(w,{aria:!0,data:!0});return P(c.createElement("div",Object.assign({},T,{className:A,style:Object.assign(Object.assign({},_),r),onMouseEnter:y,onMouseLeave:b}),s&&c.createElement("div",{className:`${C}-title`},s),c.createElement(lA.Z,{paragraph:!1,loading:d,className:`${C}-skeleton`},c.createElement("div",{style:o,className:`${C}-content`},u&&c.createElement("span",{className:`${C}-content-prefix`},u),l?l(L):L,h&&c.createElement("span",{className:`${C}-content-suffix`},h)))))};const fA=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function gA(e,t){const{format:n=""}=t,i=new Date(e).getTime(),r=Date.now();return function(e,t){let n=e;const i=/\[[^\]]*]/g,r=(t.match(i)||[]).map((e=>e.slice(1,-1))),o=t.replace(i,"[]"),a=fA.reduce(((e,t)=>{let[i,r]=t;if(e.includes(i)){const t=Math.floor(n/r);return n-=t*r,e.replace(new RegExp(`${i}+`,"g"),(e=>{const n=e.length;return t.toString().padStart(n,"0")}))}return e}),o);let s=0;return a.replace(i,(()=>{const e=r[s];return s+=1,e}))}(Math.max(i-r,0),n)}var mA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{value:t,format:n="HH:mm:ss",onChange:i,onFinish:r}=e,o=mA(e,["value","format","onChange","onFinish"]),a=(0,vM.Z)(),s=c.useRef(null),l=()=>{const e=function(e){return new Date(e).getTime()}(t);e>=Date.now()&&(s.current=setInterval((()=>{a(),null==i||i(e-Date.now()),e(l(),()=>{s.current&&(clearInterval(s.current),s.current=null)})),[t]);return c.createElement(pA,Object.assign({},o,{value:t,valueRender:e=>(0,bM.Tm)(e,{title:void 0}),formatter:(e,t)=>gA(e,Object.assign(Object.assign({},t),{format:n}))}))};var yA=c.memo(vA);pA.Countdown=yA;pA.Countdown;var bA=(0,d.connect)((function(e){return{user:e.user,competitions:e.competitions}}))((function(e){var t,n,i,r,o=e.competitions,a=e.dispatch,s=o.Header,u=(0,c.useState)({page:1,limit:20,type:null!=s&&s.enrolled?"mine":"all"}),d=l()(u,2),p=d[0],f=d[1],m=HL($L.RG,h()({},p)),v=l()(m,4),y=v[1],b=v[2],w=v[3],x=(void 0===w?{}:w).data,S=void 0===x?{}:x,k=S.count,_=void 0===k?0:k,C=S.list,P=void 0===C?[]:C;return(0,c.useEffect)((function(){return b(h()({},p)),ic.Z.subscribe("competitionsTeamsData",(function(e){b(h()({},p))}))}),[p]),(0,g.jsx)(mh.Z,{spinning:y,children:(0,g.jsxs)("div",{className:"bg-white mt-20px-rem rounded-4px-rem p-20px-rem text-16px-rem",style:{border:"1rem solid #f1f1f1"},children:[(0,g.jsxs)("div",{className:"flex item-center justify-between",children:[(0,g.jsx)(XL,{style:{height:"32rem",fontSize:"16rem"},dataSource:[{name:"我的团队信息",id:"mine",hidden:!(null!=s&&s.enrolled)},{name:"参赛团队",id:"all"}],value:null==p?void 0:p.type,onChange:function(e){f(h()(h()({},p),{},{type:e}))}}),(0,Sd.bg)()&&"mine"==(null==p?void 0:p.type)&&(0,g.jsxs)("div",{className:"current-primary flex item-center gap-6px-rem",onClick:function(){a({type:"competitions/save",payload:{actionTabs:{key:"报名",params:h()({isEdit:!0},(null==P?void 0:P[0])||{})}}})},children:[(0,g.jsx)("span",{className:"iconfont icon-bianji16",style:{fontSize:"14rem"}})," 编辑"]})]}),"mine"==(null==p?void 0:p.type)&&(0,g.jsx)("div",{className:"mt-20px-rem rounded-8px-rem p-20px-rem flex flex-col gap-12px-rem",style:{border:"1rem solid #E7E8EB"},children:[{title:"队伍名称",children:null==P||null===(t=P[0])||void 0===t?void 0:t.team_name},{title:"所属高校",children:null==P||null===(n=P[0])||void 0===n?void 0:n.school_name},{title:"指导老师",children:null==P||null===(i=P[0])||void 0===i?void 0:i.teacher_name},{title:"团队成员",children:null==P||null===(r=P[0])||void 0===r?void 0:r.team_member_name}].map((function(e,t){return(0,g.jsxs)("div",{className:"flex item-center gap-10px-rem",children:[(0,g.jsx)("div",{className:"",style:{color:"#5F6368"},children:null==e?void 0:e.title}),(0,g.jsx)("div",{className:"",style:{color:"#232B40"},children:null==e?void 0:e.children})]},t)}))}),"all"==(null==p?void 0:p.type)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"mt-10px-rem flex flex-col",children:null==P?void 0:P.map((function(e,t){return(0,g.jsxs)("div",{className:"flex item-center py-20px-rem",style:{borderBottom:"1rem solid #E7E8EB"},children:[(0,g.jsxs)("div",{className:"flex item-center justify-center h-full",style:{width:"143rem"},children:[t+1+((null==p?void 0:p.page)-1)*(null==p?void 0:p.limit),"队"]}),(0,g.jsx)("div",{className:"flex-1 flex flex-col gap-12px-rem",style:{paddingLeft:"50rem",borderLeft:"1rem solid #E7E8EB"},children:[{title:"队伍名称",children:null==e?void 0:e.team_name},{title:"所属高校",children:null==e?void 0:e.school_name},{title:"指导老师",children:null==e?void 0:e.teacher_name},{title:"团队成员",children:null==e?void 0:e.team_member_name}].map((function(e,t){return(0,g.jsxs)("div",{className:"flex item-center gap-10px-rem",children:[(0,g.jsx)("div",{className:"",style:{color:"#5F6368"},children:null==e?void 0:e.title}),(0,g.jsx)("div",{className:"",style:{color:"#232B40"},children:null==e?void 0:e.children})]},t)}))})]},t)}))}),(0,g.jsx)(qL.Z,{className:"mt-20px-rem text-14px-rem",style:{marginTop:"20rem"},total:_,onChange:function(e,t){f(h()(h()({},p),{},{page:e,limit:t}))},current:null==p?void 0:p.page,pageSize:null==p?void 0:p.limit,showTotal:function(e){return(0,g.jsxs)(g.Fragment,{children:["共",(0,g.jsx)("span",{className:"ml5 mr5",style:{color:"#3061d0"},children:e}),"队伍"]})}})]})]})})})),wA=(0,d.connect)((function(e){return{user:e.user,competitions:e.competitions}}))((function(e){e.className,e.style;var t,n=e.competitions,i=e.dispatch,o=e.onFinish,s=n.actionTabs,u=Sc.Z.useForm(),d=l()(u,1)[0],p=HL($L.zA,{}),f=l()(p,3),m=f[1],v=f[2],y=HL($L.oK,{}),b=l()(y,3),w=b[1],x=b[2],S=HL($L.RG,{page:1,limit:20,type:"mine"}),k=l()(S,4),_=k[1],C=k[2],P=k[3],E=(void 0===P?{}:P).data,M=(void 0===E?{}:E).list,L=void 0===M?[]:M;return(0,c.useEffect)((function(){C({page:1,limit:20,type:"mine"})}),[]),(0,c.useEffect)((function(){(null==L?void 0:L.length)>0&&d.setFieldsValue(h()({},(null==L?void 0:L[0])||{}))}),[L]),(0,g.jsx)(hh.Z,{open:"报名"==(null==s?void 0:s.key),title:(null==s||null===(t=s.params)||void 0===t?void 0:t.title)||"账号管理中心",loading:_,centered:!0,destroyOnClose:!0,width:"620rem",onOk:function(){d.submit()},confirmLoading:m||w,onCancel:function(){i({type:"competitions/save",payload:{actionTabs:{key:""}}}),d.resetFields()},children:(0,g.jsxs)(Sc.Z,{form:d,colon:!1,size:"large",onFinish:function(){var e=a()(r()().mark((function e(t){var n,i,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(null!=s&&null!==(n=s.params)&&void 0!==n&&n.isEdit?x:v)(h()({},t));case 2:0==(null==(i=e.sent)?void 0:i.status)&&(ec.ZP.success(null!=s&&null!==(a=s.params)&&void 0!==a&&a.isEdit?"修改成功":"报名成功"),null==o||o(),d.resetFields());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,g.jsx)(Sc.Z.Item,{name:"team_name",label:"队伍名称",rules:[{required:!0,message:"请输入队伍名称"},{whitespace:!0,message:"不能全输入空格"}],children:(0,g.jsx)(kc.Z,{placeholder:"请输入队伍名称",maxLength:50,showCount:!0})}),(0,g.jsx)(Sc.Z.Item,{name:"school_name",label:"所属高校",rules:[{required:!0,message:"请输入所属高校"},{whitespace:!0,message:"不能全输入空格"}],children:(0,g.jsx)(kc.Z,{placeholder:"请输入所属高校",maxLength:50,showCount:!0})}),(0,g.jsx)(Sc.Z.Item,{name:"teacher_name",label:"指导老师",rules:[{required:!0,message:"请输入指导老师"},{whitespace:!0,message:"不能全输入空格"}],children:(0,g.jsx)(kc.Z,{placeholder:"请输入指导老师",maxLength:50,showCount:!0})}),(0,g.jsx)(Sc.Z.Item,{name:"team_member_name",label:"团队成员",rules:[{required:!0,message:"请输入团队成员"},{whitespace:!0,message:"不能全输入空格"}],children:(0,g.jsx)(kc.Z,{placeholder:"请输入团队成员",maxLength:50,showCount:!0})})]})})})),xA=n(80480),SA=n(61186),kA=n.n(SA),_A=(0,d.connect)((function(e){return{user:e.user,competitions:e.competitions}}))((function(e){var t=e.competitions,n=(e.dispatch,t.Header),i=(0,c.useState)({page:1,limit:20}),r=l()(i,2),o=r[0],a=r[1],s=HL($L.eP,h()({},o)),u=l()(s,4),d=u[1],p=u[2],f=u[3],m=(void 0===f?{}:f).data,v=void 0===m?{}:m,y=v.count,b=void 0===y?0:y,w=v.list,x=void 0===w?[]:w,S=[{title:"排名",dataIndex:"index",ellipsis:!0,width:"100rem",render:function(e,t,n){return n+1}},{title:"战队",dataIndex:"team_name",ellipsis:!0,render:function(e){return(0,g.jsx)(tc.Z,{title:e,placement:"topLeft",children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"item-center justify-center rounded-full mr-10px-rem",style:{display:"inline-flex",width:"30rem",height:"30rem",background:"#4EACFF"},children:null==e?void 0:e[0]}),e]})})}},{title:"学校/单位",dataIndex:"school_name",ellipsis:!0,width:"150rem"},{title:"最高成绩提交时间",dataIndex:"max_score_commit_time",ellipsis:!0,width:"200rem",render:function(e){return e&&kA()(e).format("YYYY-MM-DD HH:mm")}},{title:"J1",dataIndex:"j1",ellipsis:!0,width:"100rem"},{title:"J2",dataIndex:"j2",ellipsis:!0,width:"100rem"}];return(0,c.useEffect)((function(){p(h()({},o))}),[o]),(0,g.jsxs)(mh.Z,{spinning:d,children:[(0,g.jsxs)("div",{className:"bg-white mt-20px-rem rounded-4px-rem p-20px-rem flex item-center justify-around relative text-14px-rem",style:{border:"1rem solid #f5f5f5"},children:[(0,g.jsx)("div",{className:"bg-blue flex item-center justify-end absolute",style:{width:"97%",height:"1rem",top:"50%",transform:"translateY(-50%)"},children:(0,g.jsx)("div",{className:"bg-blue",style:{width:"10rem",height:"10rem",clipPath:" polygon(0 0, 0% 100%, 100% 50%)",WebkitClipPath:" polygon(0 0, 0% 100%, 100% 50%)"}})}),[{title:"开始",children:(null==n?void 0:n.start_time)&&kA()(null==n?void 0:n.start_time).format("YYYY年MM月DD日 HH:mm")},{title:"结束",children:(null==n?void 0:n.end_time)&&kA()(null==n?void 0:n.end_time).format("YYYY年MM月DD日 HH:mm")}].map((function(e,t){return(0,g.jsxs)("div",{className:"flex flex-col item-center justify-between gap-10px-rem",style:{color:"#3061D0"},children:[(0,g.jsx)("div",{style:{height:"32rem"},children:null==e?void 0:e.children}),(0,g.jsx)("div",{children:(0,g.jsx)("span",{className:"iconfont icon-xiaoyuandian",style:{fontSize:"12rem"}})}),(0,g.jsx)("div",{className:"text-16px-rem font-semibold",style:{height:"32rem"},children:null==e?void 0:e.title})]},t)}))]}),(0,g.jsx)("div",{className:"bg-white mt-20px-rem rounded-4px-rem p-20px-rem text-14px-rem",style:{border:"1rem solid #f1f1f1"},children:(0,g.jsx)(xA.Z,{columns:S,dataSource:x,className:"text-14px-rem",locale:{emptyText:(0,g.jsx)(gc,{className:"text-14px-rem",styles:{margin:"100rem auto"}})},pagination:{total:b,current:null==o?void 0:o.page,pageSize:null==o?void 0:o.limit,onChange:function(e,t){a(h()(h()({},o),{},{page:e,limit:t}))},showTotal:function(e){return(0,g.jsxs)(g.Fragment,{children:["共",(0,g.jsx)("span",{className:"ml5 mr5",style:{color:"#3061d0"},children:e}),"条数据"]})}}})})]})})),CA="all___dBmCY",PA="title___IeVqW",EA="content___zp_KL",MA="form_item___hXuXB",LA="form_item_basic___K4a8V",AA="form_item_time___h8rdI",TA="form_item_model____Mn2H",DA="form_item_item___CR0Q5",NA="form_item_item_select___eeMCh",IA="textarea_father___XVeQz",BA="textarea_length___Xdwl4",RA="upload_button___zltZE",OA="upload_button_file___vVqry",FA="upload_text___pdO7Y",zA="date_text___gvUlY",jA="upload_download___KCtvw",$A="checkbox_text___yn4Cf",HA="footer___t6QDc",ZA="save_button___l7JJ7",KA="radio_style___tWyOo",GA=n(90111),UA=n.n(GA),VA=n(58319),WA=n.n(VA),qA=n(23250),YA=n.n(qA),XA=n(74959),QA=n.n(XA),JA=n(10238),eT=n.n(JA),tT=n(33656),nT=n.n(tT);kA().extend(nT()),kA().extend(eT()),kA().extend(UA()),kA().extend(WA()),kA().extend(YA()),kA().extend(QA()),kA().extend((function(e,t){var n=t.prototype,i=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return i.bind(this)(t)}}));var iT={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},rT=function(e){return iT[e]||e.split("_")[0]},oT={getNow:function(){var e=kA()();return"function"==typeof e.tz?e.tz():e},getFixedDate:function(e){return kA()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return kA()().locale(rT(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(rT(e)).weekday(0)},getWeek:function(e,t){return t.locale(rT(e)).week()},getShortWeekDays:function(e){return kA()().locale(rT(e)).localeData().weekdaysMin()},getShortMonths:function(e){return kA()().locale(rT(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(rT(e)).format(n)},parse:function(e,t,n){for(var i=rT(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:"0",i=String(e);i.length2&&void 0!==arguments[2]?arguments[2]:[],i=c.useState([!1,!1]),r=(0,Xc.Z)(i,2),o=r[0],a=r[1],s=function(e,t){a((function(n){return _T(n,t,e)}))},l=c.useMemo((function(){return o.map((function(i,r){if(i)return!0;var o=e[r];return!!o&&(!n[r]&&!o||!(!o||!t(o,{activeIndex:r})))}))}),[e,o,t,n]);return[l,s]}function TT(e,t,n,i,r){var o="",a=[];return e&&a.push(r?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),o=a.join(":"),i&&(o+=".SSS"),r&&(o+=" A"),o}function DT(e,t){var n=t.showHour,i=t.showMinute,r=t.showSecond,o=t.showMillisecond,a=t.use12Hours;return c.useMemo((function(){return function(e,t,n,i,r,o){var a=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,h=e.fieldWeekFormat,d=e.fieldQuarterFormat,p=e.yearFormat,f=e.cellYearFormat,g=e.cellQuarterFormat,m=e.dayFormat,v=e.cellDateFormat,y=TT(t,n,i,r,o);return(0,LE.Z)((0,LE.Z)({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:h||"gggg-wo",fieldQuarterFormat:d||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:f||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:v||m||"D"})}(e,n,i,r,o,a)}),[e,n,i,r,o,a])}function NT(e,t,n){return null!=n?n:t.some((function(t){return e.includes(t)}))}var IT=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function BT(e){return e&&"string"==typeof e}function RT(e,t,n,i){return[e,t,n,i].some((function(e){return void 0!==e}))}function OT(e,t,n,i,r){var o=t,a=n,s=i;if(e||o||a||s||r){if(e){var l,c,u,h=[o,a,s].some((function(e){return!1===e})),d=[o,a,s].some((function(e){return!0===e})),p=!!h||!d;o=null!==(l=o)&&void 0!==l?l:p,a=null!==(c=a)&&void 0!==c?c:p,s=null!==(u=s)&&void 0!==u?u:p}}else o=!0,a=!0,s=!0;return[o,a,s,r]}function FT(e){var t=e.showTime,n=function(e){var t=CT(e,IT),n=e.format,i=e.picker,r=null;return n&&(r=n,Array.isArray(r)&&(r=r[0]),r="object"===(0,Yc.Z)(r)?r.format:r),"time"===i&&(t.format=r),[t,r]}(e),i=(0,Xc.Z)(n,2),r=i[0],o=i[1],a=t&&"object"===(0,Yc.Z)(t)?t:{},s=(0,LE.Z)((0,LE.Z)({defaultOpenValue:a.defaultOpenValue||a.defaultValue},r),a),l=s.showMillisecond,c=s.showHour,u=s.showMinute,h=s.showSecond,d=OT(RT(c,u,h,l),c,u,h,l),p=(0,Xc.Z)(d,3);return c=p[0],u=p[1],h=p[2],[s,(0,LE.Z)((0,LE.Z)({},s),{},{showHour:c,showMinute:u,showSecond:h,showMillisecond:l}),s.format,o]}function zT(e,t,n,i,r){if("datetime"===e||"time"===e){for(var o=i,a=PT(e,r,null),s=[t,n],l=0;l1&&void 0!==arguments[1]&&arguments[1],n=c.useMemo((function(){var n=e?kT(e):e;return t&&n&&(n[1]=n[1]||n[0]),n}),[e,t]);return n}function nD(e,t){var n=e.generateConfig,i=e.locale,r=e.picker,o=void 0===r?"date":r,a=e.prefixCls,s=void 0===a?"rc-picker":a,l=e.styles,u=void 0===l?{}:l,h=e.classNames,d=void 0===h?{}:h,p=e.order,f=void 0===p||p,g=e.components,m=void 0===g?{}:g,v=e.inputRender,y=e.allowClear,b=e.clearIcon,w=e.needConfirm,x=e.multiple,S=e.format,k=e.inputReadOnly,_=e.disabledDate,C=e.minDate,P=e.maxDate,E=e.showTime,M=e.value,L=e.defaultValue,A=e.pickerValue,T=e.defaultPickerValue,D=tD(M),N=tD(L),I=tD(A),B=tD(T),R="date"===o&&E?"datetime":o,O="time"===R||"datetime"===R,F=O||x,z=null!=w?w:O,j=FT(e),$=(0,Xc.Z)(j,4),H=$[0],Z=$[1],K=$[2],G=$[3],U=DT(i,Z),V=c.useMemo((function(){return zT(R,K,G,H,U)}),[R,K,G,H,U]);var W=c.useMemo((function(){return(0,LE.Z)((0,LE.Z)({},e),{},{prefixCls:s,locale:U,picker:o,styles:u,classNames:d,order:f,components:(0,LE.Z)({input:v},m),clearIcon:jT(s,y,b),showTime:V,value:D,defaultValue:N,pickerValue:I,defaultPickerValue:B},null==t?void 0:t())}),[e]),q=function(e,t,n){return c.useMemo((function(){var i=kT(PT(e,t,n)),r=i[0],o="object"===(0,Yc.Z)(r)&&"mask"===r.type?r.format:null;return[i.map((function(e){return"string"==typeof e||"function"==typeof e?e:e.format})),o]}),[e,t,n])}(R,U,S),Y=(0,Xc.Z)(q,2),X=Y[0],Q=Y[1],J=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(X,k,x),ee=function(e,t,n,i,r){return(0,vT.zX)((function(o,a){return!(!n||!n(o,a))||!(!i||!e.isAfter(i,o)||YT(e,t,i,o,a.type))||!(!r||!e.isAfter(o,r)||YT(e,t,r,o,a.type))}))}(n,i,_,C,P),te=function(e,t,n,i){var r=(0,vT.zX)((function(r,o){var a=(0,LE.Z)({type:t},o);if(delete a.activeIndex,!e.isValidate(r)||n&&n(r,a))return!0;if(("date"===t||"time"===t)&&i){var s,l=o&&1===o.activeIndex?"end":"start",c=(null===(s=i.disabledTime)||void 0===s?void 0:s.call(i,r,l,{from:a.from}))||{},u=c.disabledHours,h=c.disabledMinutes,d=c.disabledSeconds,p=c.disabledMilliseconds,f=i.disabledHours,g=i.disabledMinutes,m=i.disabledSeconds,v=u||f,y=h||g,b=d||m,w=e.getHour(r),x=e.getMinute(r),S=e.getSecond(r),k=e.getMillisecond(r);if(v&&v().includes(w))return!0;if(y&&y(w).includes(x))return!0;if(b&&b(w,x).includes(S))return!0;if(p&&p(w,x,S).includes(k))return!0}return!1}));return r}(n,o,ee,V);return[c.useMemo((function(){return(0,LE.Z)((0,LE.Z)({},W),{},{needConfirm:z,inputReadOnly:J,disabledDate:ee})}),[W,z,J,ee]),R,F,X,Q,te]}function iD(e,t,n){var i=(0,vT.C8)(t,{value:e}),r=(0,Xc.Z)(i,2),o=r[0],a=r[1],s=c.useRef(e),l=c.useRef(),u=function(){bu.Z.cancel(l.current)},h=(0,vT.zX)((function(){a(s.current),n&&o!==s.current&&n(s.current)})),d=(0,vT.zX)((function(e,t){u(),s.current=e,e||t?h():l.current=(0,bu.Z)(h)}));return c.useEffect((function(){return u}),[]),[o,d]}function rD(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0,r=!n.every((function(e){return e}))&&e,o=iD(r,t||!1,i),a=(0,Xc.Z)(o,2),s=a[0],l=a[1];function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!s||l(e,t.force)}return[s,c]}function oD(e){var t=c.useRef();return c.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var n;null===(n=t.current)||void 0===n||n.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}})),t}function aD(e,t){return c.useMemo((function(){return e||(t?((0,mu.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map((function(e){var t=(0,Xc.Z)(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,t])}function sD(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=c.useRef(t);i.current=t,(0,fu.o)((function(){if(!e){var t=(0,bu.Z)((function(){i.current(e)}),n);return function(){bu.Z.cancel(t)}}i.current(e)}),[e])}function lD(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=c.useState(0),r=(0,Xc.Z)(i,2),o=r[0],a=r[1],s=c.useState(!1),l=(0,Xc.Z)(s,2),u=l[0],h=l[1],d=c.useRef([]),p=c.useRef(null),f=c.useRef(null),g=function(e){p.current=e},m=function(e){return p.current===e},v=function(e){h(e)},y=function(e){return e&&(f.current=e),f.current},b=function(n){var i=d.current,r=new Set(i.filter((function(e){return n[e]||t[e]}))),o=0===i[i.length-1]?1:0;return r.size>=2||e[o]?null:o};return sD(u||n,(function(){u||(d.current=[],g(null))})),c.useEffect((function(){u&&d.current.push(o)}),[u,o]),[u,v,y,o,a,b,d.current,g,m]}function cD(e,t,n,i){switch(t){case"date":case"week":return e.addMonth(n,i);case"month":case"quarter":return e.addYear(n,i);case"year":return e.addYear(n,10*i);case"decade":return e.addYear(n,100*i);default:return n}}var uD=[];function hD(e,t,n,i,r,o,a,s){var l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:uD,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:uD,h=arguments.length>10&&void 0!==arguments[10]?arguments[10]:uD,d=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,f=arguments.length>13?arguments[13]:void 0,g="time"===a,m=o||0,v=function(t){var i=e.getNow();return g&&(i=eD(e,i)),l[t]||n[t]||i},y=(0,Xc.Z)(u,2),b=y[0],w=y[1],x=(0,vT.C8)((function(){return v(0)}),{value:b}),S=(0,Xc.Z)(x,2),k=S[0],_=S[1],C=(0,vT.C8)((function(){return v(1)}),{value:w}),P=(0,Xc.Z)(C,2),E=P[0],M=P[1],L=c.useMemo((function(){var t=[k,E][m];return g?t:eD(e,t,h[m])}),[g,k,E,m,e,h]),A=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel",o=[_,M][m];o(n);var s=[k,E];s[m]=n,!d||YT(e,t,k,s[0],a)&&YT(e,t,E,s[1],a)||d(s,{source:r,range:1===m?"end":"start",mode:i})},T=function(n,i){if(s){var r={date:"month",week:"month",month:"year",quarter:"year"}[a];if(r&&!YT(e,t,n,i,r))return cD(e,a,i,-1);if("year"===a&&n)if(Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(i)/10))return cD(e,a,i,-1)}return i},D=c.useRef(null);return(0,fu.Z)((function(){if(r&&!l[m]){var t=g?null:e.getNow();if(null!==D.current&&D.current!==m?t=[k,E][1^m]:n[m]?t=0===m?n[0]:T(n[0],n[1]):n[1^m]&&(t=n[1^m]),t){p&&e.isAfter(p,t)&&(t=p);var i=s?cD(e,a,t,1):t;f&&e.isAfter(i,f)&&(t=s?cD(e,a,f,-1):f),A(t,"reset")}}}),[r,m,n[m]]),c.useEffect((function(){D.current=r?m:null}),[r,m]),(0,fu.Z)((function(){r&&l&&l[m]&&A(l[m],"reset")}),[r,m]),[L,A]}function dD(e,t){var n=c.useRef(e),i=c.useState({}),r=(0,Xc.Z)(i,2)[1],o=function(e){return e&&void 0!==t?t:n.current};return[o,function(e){n.current=e,r({})},o(!0)]}var pD=[];function fD(e,t,n){return[function(i){return i.map((function(i){return JT(i,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var i=Math.max(t.length,n.length),r=-1,o=0;o2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],s=n>=1?0|n:1,l=e;l<=t;l+=s){var c=r.includes(l);c&&i||a.push({label:ST(l,o),value:l,disabled:c})}return a}function kD(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t||{},r=i.use12Hours,o=i.hourStep,a=void 0===o?1:o,s=i.minuteStep,l=void 0===s?1:s,u=i.secondStep,h=void 0===u?1:u,d=i.millisecondStep,p=void 0===d?100:d,f=i.hideDisabledOptions,g=i.disabledTime,m=i.disabledHours,v=i.disabledMinutes,y=i.disabledSeconds,b=c.useMemo((function(){return n||e.getNow()}),[n,e]),w=c.useCallback((function(e){var t=(null==g?void 0:g(e))||{};return[t.disabledHours||m||xD,t.disabledMinutes||v||xD,t.disabledSeconds||y||xD,t.disabledMilliseconds||xD]}),[g,m,v,y]),x=c.useMemo((function(){return w(b)}),[b,w]),S=(0,Xc.Z)(x,4),k=S[0],_=S[1],C=S[2],P=S[3],E=c.useCallback((function(e,t,n,i){var o=SD(0,23,a,f,e());return[r?o.map((function(e){return(0,LE.Z)((0,LE.Z)({},e),{},{label:ST(e.value%12||12,2)})})):o,function(e){return SD(0,59,l,f,t(e))},function(e,t){return SD(0,59,h,f,n(e,t))},function(e,t,n){return SD(0,999,p,f,i(e,t,n),3)}]}),[f,a,r,p,l,h]),M=c.useMemo((function(){return E(k,_,C,P)}),[E,k,_,C,P]),L=(0,Xc.Z)(M,4),A=L[0],T=L[1],D=L[2],N=L[3],I=function(t,n){var i=function(){return A},r=T,o=D,a=N;if(n){var s=w(n),l=(0,Xc.Z)(s,4),c=l[0],u=l[1],h=l[2],d=l[3],p=E(c,u,h,d),f=(0,Xc.Z)(p,4),g=f[0];i=function(){return g},r=f[1],o=f[2],a=f[3]}return wD(t,i,r,o,a,e)};return[I,A,T,D,N]}function _D(e){var t=e.mode,n=e.internalMode,i=e.renderExtraFooter,r=e.showNow,o=e.showTime,a=e.onSubmit,s=e.onNow,l=e.invalid,u=e.needConfirm,h=e.generateConfig,d=e.disabledDate,p=c.useContext(bT),g=p.prefixCls,m=p.locale,v=p.button,y=void 0===v?"button":v,b=h.getNow(),w=kD(h,o,b),x=(0,Xc.Z)(w,1)[0],S=null==i?void 0:i(t),k=d(b,{type:t}),_="".concat(g,"-now"),C="".concat(_,"-btn"),P=r&&c.createElement("li",{className:_},c.createElement("a",{className:f()(C,k&&"".concat(C,"-disabled")),"aria-disabled":k,onClick:function(){if(!k){var e=x(b);s(e)}}},"date"===n?m.today:m.now)),E=u&&c.createElement("li",{className:"".concat(g,"-ok")},c.createElement(y,{disabled:l,onClick:a},m.ok)),M=(P||E)&&c.createElement("ul",{className:"".concat(g,"-ranges")},P,E);return S||M?c.createElement("div",{className:"".concat(g,"-footer")},S&&c.createElement("div",{className:"".concat(g,"-footer-extra")},S),M):null}function CD(e,t,n){return function(i,r){var o=i.findIndex((function(i){return YT(e,t,i,r,n)}));if(-1===o)return[].concat((0,CE.Z)(i),[r]);var a=(0,CE.Z)(i);return a.splice(o,1),a}}var PD=c.createContext(null);function ED(){return c.useContext(PD)}function MD(e,t){var n=e.prefixCls,i=e.generateConfig,r=e.locale,o=e.disabledDate,a=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,h=e.onHover,d=e.values,p=e.pickerValue,f=e.onSelect,g=e.prevIcon,m=e.nextIcon,v=e.superPrevIcon,y=e.superNextIcon,b=i.getNow();return[{now:b,values:d,pickerValue:p,prefixCls:n,disabledDate:o,minDate:a,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:h,locale:r,generateConfig:i,onSelect:f,panelType:t,prevIcon:g,nextIcon:m,superPrevIcon:v,superNextIcon:y},b]}var LD=c.createContext({});function AD(e){for(var t=e.rowNum,n=e.colNum,i=e.baseDate,r=e.getCellDate,o=e.prefixColumn,a=e.rowClassName,s=e.titleFormat,l=e.getCellText,u=e.getCellClassName,h=e.headerCells,d=e.cellSelection,p=void 0===d||d,g=e.disabledDate,m=ED(),v=m.prefixCls,y=m.panelType,b=m.now,w=m.disabledDate,x=m.cellRender,S=m.onHover,k=m.hoverValue,_=m.hoverRangeValue,C=m.generateConfig,P=m.values,E=m.locale,M=m.onSelect,L=g||w,A="".concat(v,"-cell"),T=c.useContext(LD).onCellDblClick,D=[],N=0;N1&&(a=t.addDate(a,-7)),a}(r.locale,o,C),E=o.getMonth(a),M=(void 0===m?b:m)?function(e){var t=null==d?void 0:d(e,{type:"week"});return c.createElement("td",{key:"week",className:f()(y,"".concat(y,"-week"),(0,qc.Z)({},"".concat(y,"-disabled"),t)),onClick:function(){t||p(e)},onMouseEnter:function(){t||null==g||g(e)},onMouseLeave:function(){t||null==g||g(null)}},c.createElement("div",{className:"".concat(y,"-inner")},o.locale.getWeek(r.locale,e)))}:null,L=[],A=r.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(r.locale):[]);M&&L.push(c.createElement("th",{key:"empty"},c.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},r.week)));for(var T=0;T<7;T+=1)L.push(c.createElement("th",{key:T},A[(T+_)%7]));var D=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),N=c.createElement("button",{type:"button","aria-label":r.yearSelect,key:"year",onClick:function(){l("year",a)},tabIndex:-1,className:"".concat(t,"-year-btn")},JT(a,{locale:r,format:r.yearFormat,generateConfig:o})),I=c.createElement("button",{type:"button","aria-label":r.monthSelect,key:"month",onClick:function(){l("month",a)},tabIndex:-1,className:"".concat(t,"-month-btn")},r.monthFormat?JT(a,{locale:r,format:r.monthFormat,generateConfig:o}):D[E]),B=r.monthBeforeYear?[I,N]:[N,I];return c.createElement(PD.Provider,{value:S},c.createElement("div",{className:f()(v,m&&"".concat(v,"-show-week"))},c.createElement(DD,{offset:function(e){return o.addMonth(a,e)},superOffset:function(e){return o.addYear(a,e)},onChange:s,getStart:function(e){return o.setDate(e,1)},getEnd:function(e){var t=o.setDate(e,1);return t=o.addMonth(t,1),o.addDate(t,-1)}},B),c.createElement(AD,(0,Ll.Z)({titleFormat:r.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:P,headerCells:L,getCellDate:function(e,t){return o.addDate(e,t)},getCellText:function(e){return JT(e,{locale:r,format:r.cellDateFormat,generateConfig:o})},getCellClassName:function(e){return(0,qc.Z)((0,qc.Z)({},"".concat(t,"-cell-in-view"),GT(o,e,a)),"".concat(t,"-cell-today"),UT(o,e,k))},prefixColumn:M,cellSelection:!b}))))}var ID=n(29194);function BD(e){return e.map((function(e){return[e.value,e.label,e.disabled].join(",")})).join(";")}function RD(e){var t=e.units,n=e.value,i=e.optionalValue,r=e.type,o=e.onChange,a=e.onHover,s=e.onDblClick,l=e.changeOnScroll,u=ED(),h=u.prefixCls,d=u.cellRender,p=u.now,g=u.locale,m="".concat(h,"-time-panel"),v="".concat(h,"-time-panel-cell"),y=c.useRef(null),b=c.useRef(),w=function(){clearTimeout(b.current)},x=function(e,t){var n=c.useRef(!1),i=c.useRef(null),r=c.useRef(null),o=function(){bu.Z.cancel(i.current),n.current=!1},a=c.useRef();return[(0,vT.zX)((function(){var s=e.current;if(r.current=null,a.current=0,s){var l=s.querySelector('[data-value="'.concat(t,'"]')),c=s.querySelector("li");l&&c&&function e(){o(),n.current=!0,a.current+=1;var t=s.scrollTop,u=c.offsetTop,h=l.offsetTop,d=h-u;if(0===h&&l!==c||!(0,ID.Z)(s))a.current<=5&&(i.current=(0,bu.Z)(e));else{var p=t+.3333333333333333*(d-t),f=Math.abs(d-p);if(null!==r.current&&r.current1&&void 0!==arguments[1]&&arguments[1];ae(e),null==y||y(e),t&&se(e)},ce=function(e,t){V(e),t&&le(t),se(t,e)},ue=c.useMemo((function(){var e,t;if(Array.isArray(C)){var n=(0,Xc.Z)(C,2);e=n[0],t=n[1]}else e=C;return e||t?(e=e||t,t=t||e,r.isAfter(e,t)?[t,e]:[e,t]):null}),[C,r]),he=LT(P,E,M),de=A[W]||jD[W]||ND,pe=c.useContext(LD),fe=c.useMemo((function(){return(0,LE.Z)((0,LE.Z)({},pe),{},{hideHeader:T})}),[pe,T]);var ge="".concat(D,"-panel"),me=CT(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return c.createElement(LD.Provider,{value:fe},c.createElement("div",{ref:N,tabIndex:l,className:f()(ge,(0,qc.Z)({},"".concat(ge,"-rtl"),"rtl"===o))},c.createElement(de,(0,Ll.Z)({},me,{showTime:H,prefixCls:D,locale:j,generateConfig:r,onModeChange:ce,pickerValue:oe,onPickerValueChange:function(e){le(e,!0)},value:ee[0],onSelect:function(e){if(ne(e),le(e),U!==S){var t=["decade","year"],n=[].concat(t,["month"]),i={quarter:[].concat(t,["quarter"]),week:[].concat((0,CE.Z)(n),["week"]),date:[].concat((0,CE.Z)(n),["date"])}[S]||n,r=i.indexOf(U),o=i[r+1];o&&ce(o,e)}},values:ee,cellRender:he,hoverRangeValue:ue,hoverValue:_}))))}var HD=c.memo(c.forwardRef($D));function ZD(e){var t=e.picker,n=e.multiplePanel,i=e.pickerValue,r=e.onPickerValueChange,o=e.needConfirm,a=e.onSubmit,s=e.range,l=e.hoverValue,u=c.useContext(bT),h=u.prefixCls,d=u.generateConfig,p=c.useCallback((function(e,n){return cD(d,t,e,n)}),[d,t]),f=c.useMemo((function(){return p(i,1)}),[i,p]),g={onCellDblClick:function(){o&&a()}},m="time"===t,v=(0,LE.Z)((0,LE.Z)({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:m});return s?v.hoverRangeValue=l:v.hoverValue=l,n?c.createElement("div",{className:"".concat(h,"-panels")},c.createElement(LD.Provider,{value:(0,LE.Z)((0,LE.Z)({},g),{},{hideNext:!0})},c.createElement(HD,v)),c.createElement(LD.Provider,{value:(0,LE.Z)((0,LE.Z)({},g),{},{hidePrev:!0})},c.createElement(HD,(0,Ll.Z)({},v,{pickerValue:f,onPickerValueChange:function(e){r(p(e,-1))}})))):c.createElement(LD.Provider,{value:(0,LE.Z)({},g)},c.createElement(HD,v))}function KD(e){return"function"==typeof e?e():e}function GD(e){var t=e.prefixCls,n=e.presets,i=e.onClick,r=e.onHover;return n.length?c.createElement("div",{className:"".concat(t,"-presets")},c.createElement("ul",null,n.map((function(e,t){var n=e.label,o=e.value;return c.createElement("li",{key:t,onClick:function(){i(KD(o))},onMouseEnter:function(){r(KD(o))},onMouseLeave:function(){r(null)}},n)})))):null}function UD(e){var t=e.panelRender,n=e.internalMode,i=e.picker,r=e.showNow,o=e.range,a=e.multiple,s=e.activeInfo,l=void 0===s?[0,0,0]:s,u=e.presets,h=e.onPresetHover,d=e.onPresetSubmit,p=e.onFocus,g=e.onBlur,m=e.onPanelMouseDown,v=e.direction,y=e.value,b=e.onSelect,w=e.isInvalid,x=e.defaultOpenValue,S=e.onOk,k=e.onSubmit,_=c.useContext(bT).prefixCls,C="".concat(_,"-panel"),P="rtl"===v,E=c.useRef(null),M=c.useRef(null),L=c.useState(0),A=(0,Xc.Z)(L,2),T=A[0],D=A[1],N=c.useState(0),I=(0,Xc.Z)(N,2),B=I[0],R=I[1],O=c.useState(0),F=(0,Xc.Z)(O,2),z=F[0],j=F[1],$=(0,Xc.Z)(l,3),H=$[0],Z=$[1],K=$[2],G=c.useState(0),U=(0,Xc.Z)(G,2),V=U[0],W=U[1];function q(e){return e.filter((function(e){return e}))}c.useEffect((function(){W(10)}),[H]),c.useEffect((function(){if(o&&M.current){var e,t=(null===(e=E.current)||void 0===e?void 0:e.offsetWidth)||0,n=M.current.getBoundingClientRect();if(!n.height||n.right<0)return void W((function(e){return Math.max(0,e-1)}));var i=(P?Z-t:H)-n.left;if(j(i),T&&T=o&&e<=a)return i;var s=Math.min(Math.abs(e-o),Math.abs(e-a));s0?i:r));var c=r-i+1;return String(i+(c+(l+e)-i)%c)};switch(t){case"Backspace":case"Delete":n="",i=o;break;case"ArrowLeft":n="",s(-1);break;case"ArrowRight":n="",s(1);break;case"ArrowUp":n="",i=l(1);break;case"ArrowDown":n="",i=l(-1);break;default:isNaN(Number(t))||(i=n=z+t)}if(null!==n&&(j(n),n.length>=r&&(s(1),j(""))),null!==i){var c=q.slice(0,te)+ST(i,r)+q.slice(ne);re(c.slice(0,a.length))}W({})},onMouseDown:function(){oe.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=Q.getMaskCellIndex(t);K(n),W({}),null==k||k(e),oe.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");s(t)&&re(t)}}:{};return c.createElement("div",{ref:Y,className:f()(M,(0,qc.Z)((0,qc.Z)({},"".concat(M,"-active"),n&&r),"".concat(M,"-placeholder"),u))},c.createElement(E,(0,Ll.Z)({ref:X,"aria-invalid":v,autoComplete:"off"},b,{onKeyDown:se,onBlur:ae},ce,{value:q,onChange:function(e){if(!a){var t=e.target.value;ie(t),R(t),l(t)}}})),c.createElement(QD,{type:"suffix",icon:o}),y)}));var rN=iN,oN=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],aN=["index"];function sN(e,t){var n=e.id,i=e.prefix,r=e.clearIcon,o=e.suffixIcon,a=e.separator,s=void 0===a?"~":a,l=e.activeIndex,u=(e.activeHelp,e.allHelp,e.focused),h=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),d=e.className,p=e.style,g=e.onClick,m=e.onClear,v=e.value,y=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),b=e.invalid,w=(e.inputReadOnly,e.direction),x=(e.onOpenChange,e.onActiveInfo),S=(e.placement,e.onMouseDown),k=(e.required,e["aria-required"],e.autoFocus),_=e.tabIndex,C=(0,Qc.Z)(e,oN),P="rtl"===w,E=c.useContext(bT).prefixCls,M=c.useMemo((function(){if("string"==typeof n)return[n];var e=n||{};return[e.start,e.end]}),[n]),L=c.useRef(),A=c.useRef(),T=c.useRef(),D=function(e){var t;return null===(t=[A,T][e])||void 0===t?void 0:t.current};c.useImperativeHandle(t,(function(){return{nativeElement:L.current,focus:function(e){if("object"===(0,Yc.Z)(e)){var t,n=e||{},i=n.index,r=void 0===i?0:i,o=(0,Qc.Z)(n,aN);null===(t=D(r))||void 0===t||t.focus(o)}else{var a;null===(a=D(null!=e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=D(0))||void 0===e||e.blur(),null===(t=D(1))||void 0===t||t.blur()}}}));var N=qD(C),I=c.useMemo((function(){return Array.isArray(h)?h:[h,h]}),[h]),B=VD((0,LE.Z)((0,LE.Z)({},e),{},{id:M,placeholder:I})),R=(0,Xc.Z)(B,1)[0],O=c.useState({position:"absolute",width:0}),F=(0,Xc.Z)(O,2),z=F[0],j=F[1],$=(0,vT.zX)((function(){var e=D(l);if(e){var t=e.nativeElement.getBoundingClientRect(),n=L.current.getBoundingClientRect(),i=t.left-n.left;j((function(e){return(0,LE.Z)((0,LE.Z)({},e),{},{width:t.width,left:i})})),x([t.left,t.right,n.width])}}));c.useEffect((function(){$()}),[l]);var H=r&&(v[0]&&!y[0]||v[1]&&!y[1]),Z=k&&!y[0],K=k&&!Z&&!y[1];return c.createElement(bD.Z,{onResize:$},c.createElement("div",(0,Ll.Z)({},N,{className:f()(E,"".concat(E,"-range"),(0,qc.Z)((0,qc.Z)((0,qc.Z)((0,qc.Z)({},"".concat(E,"-focused"),u),"".concat(E,"-disabled"),y.every((function(e){return e}))),"".concat(E,"-invalid"),b.some((function(e){return e}))),"".concat(E,"-rtl"),P),d),style:p,ref:L,onClick:g,onMouseDown:function(e){var t=e.target;t!==A.current.inputElement&&t!==T.current.inputElement&&e.preventDefault(),null==S||S(e)}}),i&&c.createElement("div",{className:"".concat(E,"-prefix")},i),c.createElement(rN,(0,Ll.Z)({ref:A},R(0),{autoFocus:Z,tabIndex:_,"date-range":"start"})),c.createElement("div",{className:"".concat(E,"-range-separator")},s),c.createElement(rN,(0,Ll.Z)({ref:T},R(1),{autoFocus:K,tabIndex:_,"date-range":"end"})),c.createElement("div",{className:"".concat(E,"-active-bar"),style:z}),c.createElement(QD,{type:"suffix",icon:o}),H&&c.createElement(JD,{icon:r,onClear:m})))}var lN=c.forwardRef(sN);function cN(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function uN(e){return 1===e?"end":"start"}function hN(e,t){var n=nD(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:cN(t,!1),allowEmpty:cN(n,!1)}})),i=(0,Xc.Z)(n,6),r=i[0],o=i[1],a=i[2],s=i[3],l=i[4],u=i[5],h=r.prefixCls,d=r.styles,p=r.classNames,f=r.defaultValue,g=r.value,m=r.needConfirm,v=r.onKeyDown,y=r.disabled,b=r.allowEmpty,w=r.disabledDate,x=r.minDate,S=r.maxDate,k=r.defaultOpen,_=r.open,C=r.onOpenChange,P=r.locale,E=r.generateConfig,M=r.picker,L=r.showNow,A=r.showToday,T=r.showTime,D=r.mode,N=r.onPanelChange,I=r.onCalendarChange,B=r.onOk,R=r.defaultPickerValue,O=r.pickerValue,F=r.onPickerValueChange,z=r.inputReadOnly,j=r.suffixIcon,$=r.onFocus,H=r.onBlur,Z=r.presets,K=r.ranges,G=r.components,U=r.cellRender,V=r.dateRender,W=r.monthCellRender,q=r.onClick,Y=oD(t),X=rD(_,k,y,C),Q=(0,Xc.Z)(X,2),J=Q[0],ee=Q[1],te=function(e,t){!y.some((function(e){return!e}))&&e||ee(e,t)},ne=mD(E,P,s,!0,!1,f,g,I,B),ie=(0,Xc.Z)(ne,5),re=ie[0],oe=ie[1],ae=ie[2],se=ie[3],le=ie[4],ce=ae(),ue=lD(y,b,J),he=(0,Xc.Z)(ue,9),de=he[0],pe=he[1],fe=he[2],ge=he[3],me=he[4],ve=he[5],ye=he[6],be=he[7],we=he[8],xe=function(e,t){pe(!0),null==$||$(e,{range:uN(null!=t?t:ge)})},Se=function(e,t){pe(!1),null==H||H(e,{range:uN(null!=t?t:ge)})},ke=c.useMemo((function(){if(!T)return null;var e=T.disabledTime,t=e?function(t){var n=uN(ge),i=ET(ce,ye,ge);return e(t,n,{from:i})}:void 0;return(0,LE.Z)((0,LE.Z)({},T),{},{disabledTime:t})}),[T,ge,ce,ye]),_e=(0,vT.C8)([M,M],{value:D}),Ce=(0,Xc.Z)(_e,2),Pe=Ce[0],Ee=Ce[1],Me=Pe[ge]||M,Le="date"===Me&&ke?"datetime":Me,Ae=Le===M&&"time"!==Le,Te=yD(M,Me,L,A,!0),De=vD(r,re,oe,ae,se,y,s,de,J,u),Ne=(0,Xc.Z)(De,2),Ie=Ne[0],Be=Ne[1],Re=function(e,t,n,i,r,o){var a=n[n.length-1];return function(s,l){var c=(0,Xc.Z)(e,2),u=c[0],h=c[1],d=(0,LE.Z)((0,LE.Z)({},l),{},{from:ET(e,n)});return!(1!==a||!t[0]||!u||YT(i,r,u,s,d.type)||!i.isAfter(u,s))||!(0!==a||!t[1]||!h||YT(i,r,h,s,d.type)||!i.isAfter(s,h))||(null==o?void 0:o(s,d))}}(ce,y,ye,E,P,w),Oe=AT(ce,u,b),Fe=(0,Xc.Z)(Oe,2),ze=Fe[0],je=Fe[1],$e=hD(E,P,ce,Pe,J,ge,o,Ae,R,O,null==ke?void 0:ke.defaultOpenValue,F,x,S),He=(0,Xc.Z)($e,2),Ze=He[0],Ke=He[1],Ge=(0,vT.zX)((function(e,t,n){var i=_T(Pe,ge,t);if(i[0]===Pe[0]&&i[1]===Pe[1]||Ee(i),N&&!1!==n){var r=(0,CE.Z)(ce);e&&(r[ge]=e),N(r,i)}})),Ue=function(e,t){return _T(ce,t,e)},Ve=function(e,t){var n=ce;e&&(n=Ue(e,ge)),be(ge);var i=ve(n);se(n),Ie(ge,null===i),null===i?te(!1,{force:!0}):t||Y.current.focus({index:i})},We=c.useState(null),qe=(0,Xc.Z)(We,2),Ye=qe[0],Xe=qe[1],Qe=c.useState(null),Je=(0,Xc.Z)(Qe,2),et=Je[0],tt=Je[1],nt=c.useMemo((function(){return et||ce}),[ce,et]);c.useEffect((function(){J||tt(null)}),[J]);var it=c.useState([0,0,0]),rt=(0,Xc.Z)(it,2),ot=rt[0],at=rt[1],st=aD(Z,K),lt=LT(U,V,W,uN(ge)),ct=ce[ge]||null,ut=(0,vT.zX)((function(e){return u(e,{activeIndex:ge})})),ht=c.useMemo((function(){var e=(0,DE.Z)(r,!1);return(0,mM.Z)(r,[].concat((0,CE.Z)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))}),[r]),dt=c.createElement(UD,(0,Ll.Z)({},ht,{showNow:Te,showTime:ke,range:!0,multiplePanel:Ae,activeInfo:ot,disabledDate:Re,onFocus:function(e){te(!0),xe(e)},onBlur:Se,onPanelMouseDown:function(){fe("panel")},picker:M,mode:Me,internalMode:Le,onPanelChange:Ge,format:l,value:ct,isInvalid:ut,onChange:null,onSelect:function(e){var t=_T(ce,ge,e);se(t),m||a||o!==Le||Ve(e)},pickerValue:Ze,defaultOpenValue:kT(null==T?void 0:T.defaultOpenValue)[ge],onPickerValueChange:Ke,hoverValue:nt,onHover:function(e){tt(e?Ue(e,ge):null),Xe("cell")},needConfirm:m,onSubmit:Ve,onOk:le,presets:st,onPresetHover:function(e){tt(e),Xe("preset")},onPresetSubmit:function(e){Be(e)&&te(!1,{force:!0})},onNow:function(e){Ve(e)},cellRender:lt})),pt=c.useMemo((function(){return{prefixCls:h,locale:P,generateConfig:E,button:G.button,input:G.input}}),[h,P,E,G.button,G.input]);return(0,fu.Z)((function(){J&&void 0!==ge&&Ge(null,M,!1)}),[J,ge,M]),(0,fu.Z)((function(){var e=fe();J||"input"!==e||(te(!1),Ve(null,!0)),J||!a||m||"panel"!==e||(te(!0),Ve())}),[J]),c.createElement(bT.Provider,{value:pt},c.createElement(xT,(0,Ll.Z)({},MT(r),{popupElement:dt,popupStyle:d.popup,popupClassName:p.popup,visible:J,onClose:function(){te(!1)},range:!0}),c.createElement(lN,(0,Ll.Z)({},r,{ref:Y,suffixIcon:j,activeIndex:de||J?ge:null,activeHelp:!!et,allHelp:!!et&&"preset"===Ye,focused:de,onFocus:function(e,t){var n=ye.length,i=ye[n-1];n&&i!==t&&m&&!b[i]&&!we(i)&&ce[i]?Y.current.focus({index:i}):(fe("input"),te(!0,{inherit:!0}),ge!==t&&J&&!m&&a&&Ve(null,!0),me(t),xe(e,t))},onBlur:function(e,t){if(te(!1),!m&&"input"===fe()){var n=ve(ce);Ie(ge,null===n)}Se(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&Ve(null,!0),null==v||v(e,t)},onSubmit:Ve,value:nt,maskFormat:l,onChange:function(e,t){var n=Ue(e,t);se(n)},onInputChange:function(){fe("input")},format:s,inputReadOnly:z,disabled:y,open:J,onOpenChange:te,onClick:function(e){var t,n=e.target.getRootNode();if(!Y.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var i=y.findIndex((function(e){return!e}));i>=0&&Y.current.focus({index:i})}te(!0),null==q||q(e)},onClear:function(){Be(null),te(!1,{force:!0})},invalid:ze,onInvalid:je,onActiveInfo:at}))))}var dN=c.forwardRef(hN),pN=n(11780);function fN(e){var t=e.prefixCls,n=e.value,i=e.onRemove,r=e.removeIcon,o=void 0===r?"×":r,a=e.formatDate,s=e.disabled,l=e.maxTagCount,u=e.placeholder,h="".concat(t,"-selector"),d="".concat(t,"-selection"),p="".concat(d,"-overflow");function g(e,t){return c.createElement("span",{className:f()("".concat(d,"-item")),title:"string"==typeof e?e:null},c.createElement("span",{className:"".concat(d,"-item-content")},e),!s&&t&&c.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(d,"-item-remove")},o))}return c.createElement("div",{className:h},c.createElement(pN.Z,{prefixCls:p,data:n,renderItem:function(e){return g(a(e),(function(t){t&&t.stopPropagation(),i(e)}))},renderRest:function(e){return g("+ ".concat(e.length," ..."))},itemKey:function(e){return a(e)},maxCount:l}),!n.length&&c.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var gN=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function mN(e,t){e.id;var n=e.open,i=e.prefix,r=e.clearIcon,o=e.suffixIcon,a=(e.activeHelp,e.allHelp,e.focused),s=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),l=e.generateConfig,u=e.placeholder,h=e.className,d=e.style,p=e.onClick,g=e.onClear,m=e.internalPicker,v=e.value,y=e.onChange,b=e.onSubmit,w=(e.onInputChange,e.multiple),x=e.maxTagCount,S=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),k=e.invalid,_=(e.inputReadOnly,e.direction),C=(e.onOpenChange,e.onMouseDown),P=(e.required,e["aria-required"],e.autoFocus),E=e.tabIndex,M=e.removeIcon,L=(0,Qc.Z)(e,gN),A="rtl"===_,T=c.useContext(bT).prefixCls,D=c.useRef(),N=c.useRef();c.useImperativeHandle(t,(function(){return{nativeElement:D.current,focus:function(e){var t;null===(t=N.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=N.current)||void 0===e||e.blur()}}}));var I=qD(L),B=VD((0,LE.Z)((0,LE.Z)({},e),{},{onChange:function(e){y([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:a}})),R=(0,Xc.Z)(B,2),O=R[0],F=R[1],z=!(!r||!v.length||S),j=w?c.createElement(c.Fragment,null,c.createElement(fN,{prefixCls:T,value:v,onRemove:function(e){var t=v.filter((function(t){return t&&!YT(l,s,t,e,m)}));y(t),n||b()},formatDate:F,maxTagCount:x,disabled:S,removeIcon:M,placeholder:u}),c.createElement("input",{className:"".concat(T,"-multiple-input"),value:v.map(F).join(","),ref:N,readOnly:!0,autoFocus:P,tabIndex:E}),c.createElement(QD,{type:"suffix",icon:o}),z&&c.createElement(JD,{icon:r,onClear:g})):c.createElement(rN,(0,Ll.Z)({ref:N},O(),{autoFocus:P,tabIndex:E,suffixIcon:o,clearIcon:z&&c.createElement(JD,{icon:r,onClear:g}),showActiveCls:!1}));return c.createElement("div",(0,Ll.Z)({},I,{className:f()(T,(0,qc.Z)((0,qc.Z)((0,qc.Z)((0,qc.Z)((0,qc.Z)({},"".concat(T,"-multiple"),w),"".concat(T,"-focused"),a),"".concat(T,"-disabled"),S),"".concat(T,"-invalid"),k),"".concat(T,"-rtl"),A),h),style:d,ref:D,onClick:p,onMouseDown:function(e){var t;e.target!==(null===(t=N.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==C||C(e)}}),i&&c.createElement("div",{className:"".concat(T,"-prefix")},i),j)}var vN=c.forwardRef(mN);function yN(e,t){var n=nD(e),i=(0,Xc.Z)(n,6),r=i[0],o=i[1],a=i[2],s=i[3],l=i[4],u=i[5],h=r,d=h.prefixCls,p=h.styles,f=h.classNames,g=h.order,m=h.defaultValue,v=h.value,y=h.needConfirm,b=h.onChange,w=h.onKeyDown,x=h.disabled,S=h.disabledDate,k=h.minDate,_=h.maxDate,C=h.defaultOpen,P=h.open,E=h.onOpenChange,M=h.locale,L=h.generateConfig,A=h.picker,T=h.showNow,D=h.showToday,N=h.showTime,I=h.mode,B=h.onPanelChange,R=h.onCalendarChange,O=h.onOk,F=h.multiple,z=h.defaultPickerValue,j=h.pickerValue,$=h.onPickerValueChange,H=h.inputReadOnly,Z=h.suffixIcon,K=h.removeIcon,G=h.onFocus,U=h.onBlur,V=h.presets,W=h.components,q=h.cellRender,Y=h.dateRender,X=h.monthCellRender,Q=h.onClick,J=oD(t);function ee(e){return null===e?null:F?e:e[0]}var te=CD(L,M,o),ne=rD(P,C,[x],E),ie=(0,Xc.Z)(ne,2),re=ie[0],oe=ie[1],ae=mD(L,M,s,!1,g,m,v,(function(e,t,n){if(R){var i=(0,LE.Z)({},n);delete i.range,R(ee(e),ee(t),i)}}),(function(e){null==O||O(ee(e))})),se=(0,Xc.Z)(ae,5),le=se[0],ce=se[1],ue=se[2],he=se[3],de=se[4],pe=ue(),fe=lD([x]),ge=(0,Xc.Z)(fe,4),me=ge[0],ve=ge[1],ye=ge[2],be=ge[3],we=function(e){ve(!0),null==G||G(e,{})},xe=function(e){ve(!1),null==U||U(e,{})},Se=(0,vT.C8)(A,{value:I}),ke=(0,Xc.Z)(Se,2),_e=ke[0],Ce=ke[1],Pe="date"===_e&&N?"datetime":_e,Ee=yD(A,_e,T,D),Me=b&&function(e,t){b(ee(e),ee(t))},Le=vD((0,LE.Z)((0,LE.Z)({},r),{},{onChange:Me}),le,ce,ue,he,[],s,me,re,u),Ae=(0,Xc.Z)(Le,2)[1],Te=AT(pe,u),De=(0,Xc.Z)(Te,2),Ne=De[0],Ie=De[1],Be=c.useMemo((function(){return Ne.some((function(e){return e}))}),[Ne]),Re=hD(L,M,pe,[_e],re,be,o,!1,z,j,kT(null==N?void 0:N.defaultOpenValue),(function(e,t){if($){var n=(0,LE.Z)((0,LE.Z)({},t),{},{mode:t.mode[0]});delete n.range,$(e[0],n)}}),k,_),Oe=(0,Xc.Z)(Re,2),Fe=Oe[0],ze=Oe[1],je=(0,vT.zX)((function(e,t,n){if(Ce(t),B&&!1!==n){var i=e||pe[pe.length-1];B(i,t)}})),$e=function(){Ae(ue()),oe(!1,{force:!0})},He=c.useState(null),Ze=(0,Xc.Z)(He,2),Ke=Ze[0],Ge=Ze[1],Ue=c.useState(null),Ve=(0,Xc.Z)(Ue,2),We=Ve[0],qe=Ve[1],Ye=c.useMemo((function(){var e=[We].concat((0,CE.Z)(pe)).filter((function(e){return e}));return F?e:e.slice(0,1)}),[pe,We,F]),Xe=c.useMemo((function(){return!F&&We?[We]:pe.filter((function(e){return e}))}),[pe,We,F]);c.useEffect((function(){re||qe(null)}),[re]);var Qe=aD(V),Je=function(e){var t=F?te(ue(),e):[e];Ae(t)&&!F&&oe(!1,{force:!0})},et=LT(q,Y,X),tt=c.useMemo((function(){var e=(0,DE.Z)(r,!1),t=(0,mM.Z)(r,[].concat((0,CE.Z)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,LE.Z)((0,LE.Z)({},t),{},{multiple:r.multiple})}),[r]),nt=c.createElement(UD,(0,Ll.Z)({},tt,{showNow:Ee,showTime:N,disabledDate:S,onFocus:function(e){oe(!0),we(e)},onBlur:xe,picker:A,mode:_e,internalMode:Pe,onPanelChange:je,format:l,value:pe,isInvalid:u,onChange:null,onSelect:function(e){if(ye("panel"),!F||Pe===A){var t=F?te(ue(),e):[e];he(t),y||a||o!==Pe||$e()}},pickerValue:Fe,defaultOpenValue:null==N?void 0:N.defaultOpenValue,onPickerValueChange:ze,hoverValue:Ye,onHover:function(e){qe(e),Ge("cell")},needConfirm:y,onSubmit:$e,onOk:de,presets:Qe,onPresetHover:function(e){qe(e),Ge("preset")},onPresetSubmit:Je,onNow:function(e){Je(e)},cellRender:et})),it=c.useMemo((function(){return{prefixCls:d,locale:M,generateConfig:L,button:W.button,input:W.input}}),[d,M,L,W.button,W.input]);return(0,fu.Z)((function(){re&&void 0!==be&&je(null,A,!1)}),[re,be,A]),(0,fu.Z)((function(){var e=ye();re||"input"!==e||(oe(!1),$e()),re||!a||y||"panel"!==e||$e()}),[re]),c.createElement(bT.Provider,{value:it},c.createElement(xT,(0,Ll.Z)({},MT(r),{popupElement:nt,popupStyle:p.popup,popupClassName:f.popup,visible:re,onClose:function(){oe(!1)}}),c.createElement(vN,(0,Ll.Z)({},r,{ref:J,suffixIcon:Z,removeIcon:K,activeHelp:!!We,allHelp:!!We&&"preset"===Ke,focused:me,onFocus:function(e){ye("input"),oe(!0,{inherit:!0}),we(e)},onBlur:function(e){oe(!1),xe(e)},onKeyDown:function(e,t){"Tab"===e.key&&$e(),null==w||w(e,t)},onSubmit:$e,value:Xe,maskFormat:l,onChange:function(e){he(e)},onInputChange:function(){ye("input")},internalPicker:o,format:s,inputReadOnly:H,disabled:x,open:re,onOpenChange:oe,onClick:function(e){x||J.current.nativeElement.contains(document.activeElement)||J.current.focus(),oe(!0),null==Q||Q(e)},onClear:function(){Ae(null),oe(!1,{force:!0})},invalid:Be,onInvalid:function(e){Ie(e,0)}}))))}var bN=c.forwardRef(yN),wN=n(75030),xN=n(57428),SN=n(46e3),kN=n(93873),_N=n(36305),CN=n(26743);const PN=(e,t)=>{const{componentCls:n,controlHeight:i}=e,r=t?`${n}-${t}`:"",o=(0,CN.gp)(e);return[{[`${n}-multiple${r}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:i,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:(0,ju.bf)(o.itemLineHeight)}}}]};var EN=e=>{const{componentCls:t,calc:n,lineWidth:i}=e,r=(0,Vu.IX)(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=(0,Vu.IX)(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(i).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[PN(r,"small"),PN(e),PN(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},(0,CN._z)(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]};const MN=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:i,borderRadiusSM:r,motionDurationMid:o,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:h,colorTextDisabled:d,cellBgDisabled:p,colorFillSecondary:f}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:i,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:i,height:i,lineHeight:(0,ju.bf)(i),borderRadius:r,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${(0,ju.bf)(s)} ${l} ${c}`,borderRadius:r,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:h,background:c},[`&${t}-disabled ${n}`]:{background:f}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:r,borderEndStartRadius:r,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:r,borderEndEndRadius:r},"&-disabled":{color:d,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:d}}},LN=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:i,pickerYearMonthCellWidth:r,pickerControlIconSize:o,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:h,lineType:d,borderRadiusLG:p,colorPrimary:f,colorTextHeading:g,colorSplit:m,pickerControlIconBorderWidth:v,colorIcon:y,textHeight:b,motionDurationMid:w,colorIconHover:x,fontWeightStrong:S,cellHeight:k,pickerCellPaddingVertical:_,colorTextDisabled:C,colorText:P,fontSize:E,motionDurationSlow:M,withoutTimeCellHeight:L,pickerQuarterPanelContentHeight:A,borderRadiusSM:T,colorTextLightSolid:D,cellHoverBg:N,timeColumnHeight:I,timeColumnWidth:B,timeCellHeight:R,controlItemBgActive:O,marginXXS:F,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:j}=e;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:f},"&-rtl":{[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:e.calc(a).mul(7).add(e.calc(z).mul(2)).equal()},"&-header":{display:"flex",padding:`0 ${(0,ju.bf)(l)}`,color:g,borderBottom:`${(0,ju.bf)(h)} ${d} ${m}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:(0,ju.bf)(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:E,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:(0,ju.bf)(b),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:f}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:v,borderInlineStartWidth:v,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:j,insetInlineStart:j,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:v,borderInlineStartWidth:v,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:k,fontWeight:"normal"},th:{height:e.calc(k).add(e.calc(_).mul(2)).equal(),color:P,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${(0,ju.bf)(_)} 0`,color:C,cursor:"pointer","&-in-view":{color:P}},MN(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(L).mul(4).equal()},[i]:{padding:`0 ${(0,ju.bf)(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:A}},"&-decade-panel":{[i]:{padding:`0 ${(0,ju.bf)(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${(0,ju.bf)(l)}`},[i]:{width:r}},"&-date-panel":{[`${t}-body`]:{padding:`${(0,ju.bf)(l)} ${(0,ju.bf)(z)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${i},\n &-selected ${i},\n ${i}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:T,borderEndStartRadius:T},"&:last-child:before":{borderStartEndRadius:T,borderEndEndRadius:T}},"&:hover td:before":{background:N},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:f},[`&${t}-cell-week`]:{color:new Wu.t(D).setA(.5).toHexString()},[i]:{color:D}}},"&-range-hover td:before":{background:O}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${(0,ju.bf)(l)} ${(0,ju.bf)(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${(0,ju.bf)(h)} ${d} ${m}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${M}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:I},"&-column":{flex:"1 0 auto",width:B,margin:`${(0,ju.bf)(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${(0,ju.bf)(R)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${(0,ju.bf)(h)} ${d} ${m}`},"&-active":{background:new Wu.t(O).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:F,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(B).sub(e.calc(F).mul(2)).equal(),height:R,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(B).sub(R).div(2).equal(),color:P,lineHeight:(0,ju.bf)(R),borderRadius:T,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:O}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:C,background:"transparent",cursor:"not-allowed"}}}}}}}}};var AN=e=>{const{componentCls:t,textHeight:n,lineWidth:i,paddingSM:r,antCls:o,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${(0,ju.bf)(i)} ${c} ${u}`,"&-extra":{padding:`0 ${(0,ju.bf)(r)}`,lineHeight:(0,ju.bf)(e.calc(n).sub(e.calc(i).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${(0,ju.bf)(i)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:(0,ju.bf)(r),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:(0,ju.bf)(e.calc(n).sub(e.calc(i).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(i).mul(2).equal(),marginInlineStart:"auto"}}}}};var TN=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},(0,Zu.qG)(e)),(0,Zu.vc)(e)),(0,Zu.H8)(e)),(0,Zu.Mu)(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,ju.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${(0,ju.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,ju.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,ju.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}};const DN=(e,t,n,i)=>{const r=e.calc(n).add(2).equal(),o=e.max(e.calc(t).sub(r).div(2).equal(),0),a=e.max(e.calc(t).sub(r).sub(o).equal(),0);return{padding:`${(0,ju.bf)(o)} ${(0,ju.bf)(i)} ${(0,ju.bf)(a)}`}},NN=e=>{const{componentCls:t,colorError:n,colorWarning:i}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:i}}}}},IN=e=>{const{componentCls:t,antCls:n,controlHeight:i,paddingInline:r,lineWidth:o,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:h,controlHeightLG:d,fontSizeLG:p,controlHeightSM:f,paddingInlineSM:g,paddingXS:m,marginXS:v,colorTextDescription:y,lineWidthBold:b,colorPrimary:w,motionDurationSlow:x,zIndexPopup:S,paddingXXS:k,sizePopupArrow:_,colorBgElevated:C,borderRadiusLG:P,boxShadowSecondary:E,borderRadiusSM:M,colorSplit:L,cellHoverBg:A,presetsWidth:T,presetsMaxWidth:D,boxShadowPopoverArrow:N,fontHeight:I,fontHeightLG:B,lineHeightLG:R}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},(0,Ku.Wf)(e)),DN(e,i,I,r)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},(0,$u.nz)(h)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:h}}},"&-large":Object.assign(Object.assign({},DN(e,d,B,r)),{[`${t}-input > input`]:{fontSize:p,lineHeight:R}}),"&-small":Object.assign({},DN(e,f,I,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(m).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:v}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:y}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:y},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:b,background:w,opacity:0,transition:`all ${x} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${(0,ju.bf)(m)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Ku.Wf)(e)),LN(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,\n &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,\n &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:SN.Qt},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:SN.fJ},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:SN.ly},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:SN.Uw},[`${t}-panel > ${t}-time-panel`]:{paddingTop:k},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${x} ease-out`},(0,_N.W)(e,C,N)),{"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:C,borderRadius:P,boxShadow:E,transition:`margin ${x}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:T,maxWidth:D,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:m,borderInlineEnd:`${(0,ju.bf)(o)} ${a} ${L}`,li:Object.assign(Object.assign({},Ku.vS),{borderRadius:M,paddingInline:m,paddingBlock:e.calc(f).sub(I).div(2).equal(),cursor:"pointer",transition:`all ${x}`,"+ li":{marginTop:v},"&:hover":{background:A}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${(0,ju.bf)(e.calc(_).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,SN.oN)(e,"slide-up"),(0,SN.oN)(e,"slide-down"),(0,kN.Fm)(e,"move-up"),(0,kN.Fm)(e,"move-down")]};var BN=(0,Uu.I$)("DatePicker",(e=>{const t=(0,Vu.IX)((0,Hu.e)(e),(e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:i,padding:r}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(i).add(e.calc(i).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(r).add(e.calc(i).div(2)).equal()}})(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[AN(t),IN(t),TN(t),NN(t),EN(t),(0,Gu.c)(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>Object.assign(Object.assign(Object.assign(Object.assign({},(0,Hu.T)(e)),(e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:i,controlHeightLG:r,paddingXXS:o,lineWidth:a}=e,s=2*o,l=2*a,c=Math.min(n-s,n-l),u=Math.min(i-s,i-l),h=Math.min(r-s,r-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Wu.t(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Wu.t(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*r,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*i,cellHeight:i,textHeight:r,withoutTimeCellHeight:1.65*r,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:h,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(e)),(0,_N.w)(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}))),RN=n(68525);function ON(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function FN(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function zN(e,t){const{allowClear:n=!0}=e,{clearIcon:i,removeIcon:r}=(0,RN.Z)(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[c.useMemo((()=>{if(!1===n)return!1;const e=!0===n?{}:n;return Object.assign({clearIcon:i},e)}),[n,i]),r]}const[jN,$N]=["week","WeekPicker"],[HN,ZN]=["month","MonthPicker"],[KN,GN]=["year","YearPicker"],[UN,VN]=["quarter","QuarterPicker"],[WN,qN]=["time","TimePicker"];var YN=e=>c.createElement(Ml.ZP,Object.assign({size:"small",type:"primary"},e));function XN(e){return(0,c.useMemo)((()=>Object.assign({button:YN},e)),[e])}var QN=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const t=(0,c.forwardRef)(((t,n)=>{var i;const{prefixCls:r,getPopupContainer:o,components:a,className:s,style:l,placement:u,size:h,disabled:d,bordered:p=!0,placeholder:g,popupClassName:m,dropdownClassName:v,status:y,rootClassName:b,variant:w,picker:x}=t,S=QN(t,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),k=c.useRef(null),{getPrefixCls:_,direction:C,getPopupContainer:P,rangePicker:E}=(0,c.useContext)(Du.E_),M=_("picker",r),{compactSize:L,compactItemClassnames:A}=(0,zu.ri)(M,C),T=_(),[D,N]=(0,Fu.Z)("rangePicker",w,p),I=(0,Bu.Z)(M),[B,R,O]=BN(M,I);const[F]=zN(t,M),z=XN(a),j=(0,Ru.Z)((e=>{var t;return null!==(t=null!=h?h:L)&&void 0!==t?t:e})),$=c.useContext(Iu.Z),H=null!=d?d:$,Z=(0,c.useContext)(Ou.aM),{hasFeedback:K,status:G,feedbackIcon:U}=Z,V=c.createElement(c.Fragment,null,x===WN?c.createElement(pT,null):c.createElement(uT,null),K&&U);(0,c.useImperativeHandle)(n,(()=>k.current));const[W]=(0,VE.Z)("Calendar",xN.Z),q=Object.assign(Object.assign({},W),t.locale),[Y]=(0,wN.Cn)("DatePicker",null===(i=t.popupStyle)||void 0===i?void 0:i.zIndex);return B(c.createElement(Au.Z,{space:!0},c.createElement(dN,Object.assign({separator:c.createElement("span",{"aria-label":"to",className:`${M}-separator`},c.createElement(mT,null)),disabled:H,ref:k,placement:u,placeholder:FN(q,x,g),suffixIcon:V,prevIcon:c.createElement("span",{className:`${M}-prev-icon`}),nextIcon:c.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:c.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:c.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${T}-slide-up`,picker:x},S,{className:f()({[`${M}-${j}`]:j,[`${M}-${D}`]:N},(0,Tu.Z)(M,(0,Tu.F)(G,y),K),R,A,s,null==E?void 0:E.className,O,I,b),style:Object.assign(Object.assign({},null==E?void 0:E.style),l),locale:q.lang,prefixCls:M,getPopupContainer:o||P,generateConfig:e,components:z,direction:C,classNames:{popup:f()(R,m||v,O,I,b)},styles:{popup:Object.assign(Object.assign({},t.popupStyle),{zIndex:Y})},allowClear:F}))))}));return t},eI=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const t=(t,n)=>{const i=n===qN?"timePicker":"datePicker",r=(0,c.forwardRef)(((n,r)=>{var o;const{prefixCls:a,getPopupContainer:s,components:l,style:u,className:h,rootClassName:d,size:p,bordered:g,placement:m,placeholder:v,popupClassName:y,dropdownClassName:b,disabled:w,status:x,variant:S,onCalendarChange:k}=n,_=eI(n,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:C,direction:P,getPopupContainer:E,[i]:M}=(0,c.useContext)(Du.E_),L=C("picker",a),{compactSize:A,compactItemClassnames:T}=(0,zu.ri)(L,P),D=c.useRef(null),[N,I]=(0,Fu.Z)("datePicker",S,g),B=(0,Bu.Z)(L),[R,O,F]=BN(L,B);(0,c.useImperativeHandle)(r,(()=>D.current));const z=t||n.picker,j=C(),{onSelect:$,multiple:H}=_,Z=$&&"time"===t&&!H;const[K,G]=zN(n,L),U=XN(l),V=(0,Ru.Z)((e=>{var t;return null!==(t=null!=p?p:A)&&void 0!==t?t:e})),W=c.useContext(Iu.Z),q=null!=w?w:W,Y=(0,c.useContext)(Ou.aM),{hasFeedback:X,status:Q,feedbackIcon:J}=Y,ee=c.createElement(c.Fragment,null,"time"===z?c.createElement(pT,null):c.createElement(uT,null),X&&J),[te]=(0,VE.Z)("DatePicker",xN.Z),ne=Object.assign(Object.assign({},te),n.locale),[ie]=(0,wN.Cn)("DatePicker",null===(o=n.popupStyle)||void 0===o?void 0:o.zIndex);return R(c.createElement(Au.Z,{space:!0},c.createElement(bN,Object.assign({ref:D,placeholder:ON(ne,z,v),suffixIcon:ee,placement:m,prevIcon:c.createElement("span",{className:`${L}-prev-icon`}),nextIcon:c.createElement("span",{className:`${L}-next-icon`}),superPrevIcon:c.createElement("span",{className:`${L}-super-prev-icon`}),superNextIcon:c.createElement("span",{className:`${L}-super-next-icon`}),transitionName:`${j}-slide-up`,picker:t,onCalendarChange:(e,t,n)=>{null==k||k(e,t,n),Z&&$(e)}},{showToday:!0},_,{locale:ne.lang,className:f()({[`${L}-${V}`]:V,[`${L}-${N}`]:I},(0,Tu.Z)(L,(0,Tu.F)(Q,x),X),O,T,null==M?void 0:M.className,h,F,B,d),style:Object.assign(Object.assign({},null==M?void 0:M.style),u),prefixCls:L,getPopupContainer:s||E,generateConfig:e,components:U,direction:P,disabled:q,classNames:{popup:f()(O,F,B,d,y||b)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:ie})},allowClear:K,removeIcon:G}))))}));return r},n=t(),i=t(jN,$N),r=t(HN,ZN),o=t(KN,GN),a=t(UN,VN);return{DatePicker:n,WeekPicker:i,MonthPicker:r,YearPicker:o,TimePicker:t(WN,qN),QuarterPicker:a}};var nI=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:i,YearPicker:r,TimePicker:o,QuarterPicker:a}=tI(e),s=JN(e),l=t;return l.WeekPicker=n,l.MonthPicker=i,l.YearPicker=r,l.RangePicker=s,l.TimePicker=o,l.QuarterPicker=a,l};const iI=nI(aT),rI=(0,sT.Z)(iI,"popupAlign",void 0,"picker");iI._InternalPanelDoNotUseOrYouWillBeFired=rI;const oI=(0,sT.Z)(iI.RangePicker,"popupAlign",void 0,"picker");iI._InternalRangePanelDoNotUseOrYouWillBeFired=oI,iI.generatePicker=nI;var aI=iI,sI=n(62673),lI=n(77233),cI=["children"],uI=function(e){var t=e.children,n=Bl()(e,cI),i=(0,c.useState)(!1),o=l()(i,2),s=o[0],u=o[1];return(0,g.jsx)(Ml.ZP,h()(h()({},n),{},{loading:s,onClick:function(){var e=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u(!0),e.next=4,n.onClick(t);case 4:u(!1),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),u(!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),children:t}))},hI=["competitions","dispatch"],dI=kc.Z.TextArea,pI=(0,d.connect)((function(e){return{competitions:e.competitions}}))((function(e){var t,n,i,o=e.competitions,s=e.dispatch,u=Bl()(e,hI),p=Sc.Z.useForm(),f=l()(p,1)[0],m=(0,c.useState)({}),v=l()(m,2),b=v[0],w=v[1],x=(0,c.useState)(0),S=l()(x,2),k=S[0],_=S[1],C=(0,c.useState)(),P=l()(C,2),E=P[0],M=P[1],L=(0,c.useState)(),A=l()(L,2),T=A[0],D=A[1],N=(0,c.useState)(!1),I=l()(N,2),B=I[0],R=I[1],O=(0,c.useState)(!1),F=l()(O,2),z=F[0],j=F[1],$=(0,c.useState)(!1),H=l()($,2),Z=H[0],K=H[1],G=(0,c.useState)(!1),U=l()(G,2),V=U[0],W=U[1],q=(0,c.useState)(!1),Y=l()(q,2),X=Y[0],Q=Y[1],J=(0,c.useState)([]),ee=l()(J,2),te=ee[0],ne=ee[1],ie=(0,c.useState)([]),re=l()(ie,2),oe=re[0],ae=re[1],se=(0,c.useState)(0),le=l()(se,2),ce=le[0],ue=le[1],he=(0,c.useState)(!1),de=l()(he,2),pe=de[0],fe=de[1],ge=(0,c.useState)([]),me=l()(ge,2),ve=me[0],ye=me[1],be=(0,c.useState)(!1),we=l()(be,2),xe=(we[0],we[1]),Se=o.Header,ke=(0,d.useParams)(),_e=function(){var e=a()(r()().mark((function e(t){var n,i,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.personal||(t.is_student||t.is_teacher||t.is_professional)){e.next=3;break}return ec.ZP.error("请选择至少一种身份可以报名参赛"),e.abrupt("return");case 3:i=[],(null==E?void 0:E.length)>0&&(null==E||E.map((function(e){var t;i.push((null==e||null===(t=e.response)||void 0===t?void 0:t.id)||(null==e?void 0:e.id))}))),f.setFieldValue("attachment_ids",i),o=[],(null==T?void 0:T.length)>0&&(null==T||T.map((function(e){var t;o.push((null==e||null===(t=e.response)||void 0===t?void 0:t.id)||(null==e?void 0:e.id))}))),f.setFieldValue("file_id",o),f.setFieldValue("is_authentication",B),f.setFieldValue("need_phone",z),f.setFieldValue("need_mail",Z),f.setFieldValue("competition_staffs",[{minimum:f.getFieldValue("student_min"),maximum:f.getFieldValue("student_max"),category:"student",mutiple_limited:V,check_phone:!1},{minimum:f.getFieldValue("teacher_min"),maximum:f.getFieldValue("teacher_max"),category:"teacher",mutiple_limited:X,check_phone:!1}]),(null===(n=b.identifier)||void 0===n?void 0:n.length)<3?ec.ZP.error("比赛网址最少要输入三个字符"):(0,$L.IN)({id:ce,identifier:f.getFieldValue("identifier")}).then(function(){var e=a()(r()().mark((function e(t){var n,i,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=(null==t?void 0:t.status)&&f.setFieldValue("identifier",""),0!=(null==t?void 0:t.status)){e.next=6;break}return e.next=4,(0,$L.$M)(h()(h()({id:null==u?void 0:u.competitionId},f.getFieldsValue()),{},{enroll_start_time:f.getFieldValue("enroll_start_time")?kA()(f.getFieldValue("enroll_start_time")).format("YYYY-MM-DD HH:mm"):"",enroll_end_time:f.getFieldValue("enroll_end_time")?kA()(f.getFieldValue("enroll_end_time")).format("YYYY-MM-DD HH:mm"):"",start_time:f.getFieldValue("start_time")?kA()(f.getFieldValue("start_time")).format("YYYY-MM-DD HH:mm"):"",end_time:f.getFieldValue("end_time")?kA()(f.getFieldValue("end_time")).format("YYYY-MM-DD HH:mm"):""}));case 4:if(0==(null==(n=e.sent)?void 0:n.status)){if(ec.ZP.success("更改成功"),(null==n?void 0:n.failed.length)>0){for(o in fe(!0),i=[],null==n?void 0:n.failed)i.push({phone:null==n?void 0:n.failed[o][0],name:null==n?void 0:n.failed[o][1],email:null==n?void 0:n.failed[o][2]});ye(i)}(null==ke?void 0:ke.identifier)==f.getFieldValue("identifier")?(s({type:"competitions/getStaff",payload:{identifier:null==u?void 0:u.competitionId}}),s({type:"competitions/getHeader",payload:{identifier:null==u?void 0:u.competitionId}})):(null==ke?void 0:ke.identifier)!=f.getFieldValue("identifier")&&d.history.push("/?type=7")}case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){(0,$L.o3)(null==u?void 0:u.competitionId).then((function(e){var t,n,i,r,o,a,s,l,c,d,p,g,m,v,y,b,x,S,k,C,P,E;(ue(null==e?void 0:e.id),f.setFieldValue("is_student",null==e?void 0:e.is_student),f.setFieldValue("is_teacher",null==e?void 0:e.is_teacher),f.setFieldValue("is_professional",null==e?void 0:e.is_professional),f.setFieldValue("name",null==e?void 0:e.name),f.setFieldValue("sub_title",null==e?void 0:e.sub_title),f.setFieldValue("description",null==e?void 0:e.description),f.setFieldValue("identifier",null==e?void 0:e.identifier),f.setFieldValue("bonus",null==e?void 0:e.bonus),f.setFieldValue("awards_count",null==e?void 0:e.awards_count),f.setFieldValue("need_apply_name",null==e||null===(t=e.need_apply_info)||void 0===t?void 0:t.need_apply_name),f.setFieldValue("need_apply_student_id",null==e||null===(n=e.need_apply_info)||void 0===n?void 0:n.need_apply_student_id),f.setFieldValue("need_apply_sex",null==e||null===(i=e.need_apply_info)||void 0===i?void 0:i.need_apply_sex),f.setFieldValue("need_apply_phone",null==e||null===(r=e.need_apply_info)||void 0===r?void 0:r.need_apply_phone),f.setFieldValue("need_apply_grade",null==e||null===(o=e.need_apply_info)||void 0===o?void 0:o.need_apply_grade),f.setFieldValue("need_apply_teacher_name",null==e||null===(a=e.need_apply_info)||void 0===a?void 0:a.need_apply_teacher_name),f.setFieldValue("need_apply_school",null==e||null===(s=e.need_apply_info)||void 0===s?void 0:s.need_apply_school),f.setFieldValue("need_apply_teacher_phone",null==e||null===(l=e.need_apply_info)||void 0===l?void 0:l.need_apply_teacher_phone),f.setFieldValue("need_apply_id_number",null==e||null===(c=e.need_apply_info)||void 0===c?void 0:c.need_apply_id_number),null==e||null===(d=e.attachments)||void 0===d||d.map((function(e){e.name=e.title})),f.setFieldValue("attachment_ids",null==e?void 0:e.attachments),M(null==e?void 0:e.attachments),f.setFieldValue("enroll_start_time",null!=e&&e.enroll_start_time?kA()(null==e?void 0:e.enroll_start_time):""),f.setFieldValue("enroll_end_time",null!=e&&e.enroll_end_time?kA()(null==e?void 0:e.enroll_end_time):""),f.setFieldValue("start_time",null!=e&&e.start_time?kA()(null==e?void 0:e.start_time):""),f.setFieldValue("end_time",null!=e&&e.end_time?kA()(null==e?void 0:e.end_time):""),f.setFieldValue("rule",null==e?void 0:e.rule),null!=e&&e.file)&&(e.file.name=null==e||null===(v=e.file)||void 0===v?void 0:v.title);(f.setFieldValue("file_id",null==e?void 0:e.file),null!=e&&e.file&&D([null==e?void 0:e.file]),f.setFieldValue("region_rule",null==e?void 0:e.region_rule),f.setFieldValue("is_authentication",null==e?void 0:e.is_authentication),f.setFieldValue("province_rule",null==e?void 0:e.province_rule),f.setFieldValue("region_provinces",null==e?void 0:e.region_provinces),(0,lI.GY)({display_aliases:!0,provinces:null==e?void 0:e.region_provinces}).then((function(t){ne(null==t?void 0:t.schools),f.setFieldValue("region_schools",null==e?void 0:e.region_school_array)})),R(null==e?void 0:e.is_authentication),f.setFieldValue("need_phone",null==e?void 0:e.need_phone),j(null==e?void 0:e.need_phone),f.setFieldValue("need_mail",null==e?void 0:e.need_mail),K(null==e?void 0:e.need_mail),f.setFieldValue("personal",null==e?void 0:e.personal),null!=e&&e.member_staff)?(f.setFieldValue("student_min",null==e||null===(y=e.member_staff)||void 0===y?void 0:y.minimum),f.setFieldValue("student_max",null==e||null===(b=e.member_staff)||void 0===b?void 0:b.maximum),f.setFieldValue("student_checkbox",null==e||null===(x=e.member_staff)||void 0===x?void 0:x.mutiple_limited)):(f.setFieldValue("student_min",0),f.setFieldValue("student_max",1));null!=e&&e.teacher_staff?(f.setFieldValue("teacher_min",null==e||null===(S=e.teacher_staff)||void 0===S?void 0:S.minimum),f.setFieldValue("teacher_max",null==e||null===(k=e.teacher_staff)||void 0===k?void 0:k.maximum),f.setFieldValue("teacher_checkbox",null==e||null===(C=e.teacher_staff)||void 0===C?void 0:C.mutiple_limited)):(f.setFieldValue("teacher_min",0),f.setFieldValue("teacher_max",0));3===(null==e?void 0:e.mode)?(Q(!0),W(!0)):(Q(null==e||null===(P=e.teacher_staff)||void 0===P?void 0:P.mutiple_limited),W(null==e||null===(E=e.member_staff)||void 0===E?void 0:E.mutiple_limited));W(null==e||null===(p=e.member_staff)||void 0===p?void 0:p.mutiple_limited),Q(null==e||null===(g=e.teacher_staff)||void 0===g?void 0:g.mutiple_limited),w(h()({},f.getFieldsValue())),_(null===(m=f.getFieldValue("description"))||void 0===m?void 0:m.length),null==u||u.loadingFunction(!1)})),(0,lI.ol)({}).then((function(e){var t;ae(y()(null==e||null===(t=e.data)||void 0===t?void 0:t.map((function(e){return{label:e,value:e}}))))})),null!=u&&u.formName&&f.scrollToField(null==u?void 0:u.formName)}),[]);var Ce=function(e){(0,lI.GY)({display_aliases:!0,provinces:e}).then((function(e){ne(null==e?void 0:e.schools)}))},Pe=function(e,t){"报名开始时间"==t?f.getFieldValue("enroll_end_time")&&e>=f.getFieldValue("enroll_end_time")&&(ec.ZP.error("报名开始时间必须小于报名结束时间"),f.setFieldValue("enroll_start_time",""),f.setFieldValue("enroll_end_time","")):"报名结束时间"==t?f.getFieldValue("enroll_start_time")?e<=f.getFieldValue("enroll_start_time")&&(ec.ZP.error("报名结束时间必须大于报名开始时间"),f.setFieldValue("enroll_end_time","")):(ec.ZP.error("报名结束时间必须大于报名开始时间"),f.setFieldValue("enroll_end_time","")):"竞赛开始时间"==t?f.getFieldValue("end_time")&&e>=f.getFieldValue("end_time")&&(ec.ZP.error("竞赛开始时间必须小于竞赛结束时间"),f.setFieldValue("start_time",""),f.setFieldValue("end_time","")):"竞赛结束时间"==t&&(f.getFieldValue("start_time")?e<=f.getFieldValue("start_time")&&(ec.ZP.error("竞赛结束时间必须大于竞赛开始时间"),f.setFieldValue("end_time","")):(ec.ZP.error("竞赛结束时间必须大于竞赛开始时间"),f.setFieldValue("end_time","")))};return(0,g.jsxs)("div",{className:CA,children:[(0,g.jsxs)(Sc.Z,{form:f,labelCol:{flex:"120px"},scrollToFirstError:!0,colon:!1,initialValues:{region_rule:0,student_min:0,student_max:1,teacher_min:0,teacher_max:0,is_student:!0,is_teacher:!0,is_professional:!0},onFinish:_e,onFinishFailed:function(){var e=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f.scrollToField(null==t||null===(n=t.errorFields)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.name,{behavior:"auto",block:"center"});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onChange:function(){var e,t,n=null==f||null===(e=f.getFieldValue("sponsor_user_name"))||void 0===e?void 0:e.replaceAll(" ","");f.setFieldValue("sponsor_user_name",n);var i=f.getFieldsValue();_(null===(t=i.description)||void 0===t?void 0:t.length),w(h()({},i))},children:[(0,g.jsx)("div",{className:PA,children:"基本信息"}),(0,g.jsxs)("div",{className:EA,children:[(0,g.jsx)(Sc.Z.Item,{style:{marginTop:"-15px"},className:MA,label:"竞赛主标题",colon:!1,name:"name",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,g.jsx)(kc.Z,{className:DA,placeholder:"请输入竞赛主标题",maxLength:60,suffix:(0,g.jsxs)("span",{children:[(null===(t=b.name)||void 0===t?void 0:t.length)||0,(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"/60"})]})})}),(0,g.jsx)(Sc.Z.Item,{className:LA,label:"竞赛副标题",colon:!1,name:"sub_title",children:(0,g.jsx)(kc.Z,{className:DA,placeholder:"请输入竞赛副标题",maxLength:60,suffix:(0,g.jsxs)("span",{children:[(null===(n=b.sub_title)||void 0===n?void 0:n.length)||0,(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"/60"})]})})}),(0,g.jsxs)("div",{className:IA,children:[(0,g.jsx)(Sc.Z.Item,{className:MA,label:"竞赛简介",colon:!1,name:"description",children:(0,g.jsx)(dI,{maxLength:200,placeholder:"请输入简介",rows:5})}),(0,g.jsxs)("span",{className:BA,children:[k||0,(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"/200"})]})]}),(0,g.jsx)(Sc.Z.Item,{className:LA,label:(0,g.jsxs)("div",{children:[(0,g.jsx)("span",{style:{color:"#ff4d4f",marginRight:"4px",fontFamily:"SimSun, sans-serif"},children:"*"}),"比赛网址"]}),colon:!1,children:(0,g.jsxs)("div",{style:{display:"flex"},children:[(0,g.jsxs)("div",{style:{width:"40%"},children:[window.location.origin,"/competitions/detail/"]}),(0,g.jsx)(tc.Z,{placement:"topLeft",color:"#fb3226",overlayStyle:{maxWidth:"350px",width:"350px"},title:"如果修改竞赛网址,会造成参赛人员无法再次通过旧网址进入",children:(0,g.jsx)(Sc.Z.Item,{style:{width:"calc(68% + 16px)",marginLeft:"-16px"},label:(0,g.jsx)("div",{style:{width:"0px"}}),colon:!1,name:"identifier",rules:[{required:!0,message:"必填项:不能为空"},{pattern:new RegExp(/^[A-Za-z0-9\-_]*$/,""),message:"必须是数字、字母、下划线或者横线"}],children:(0,g.jsx)(kc.Z,{className:DA,placeholder:"请输入网址",maxLength:20,suffix:(0,g.jsxs)("span",{children:[(null===(i=b.identifier)||void 0===i?void 0:i.length)||0,(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"/20"})]}),onBlur:function(){xe(!1),(0,$L.IN)({id:ce,identifier:f.getFieldValue("identifier")}).then((function(e){0!=(null==e?void 0:e.status)&&f.setFieldValue("identifier","")}))},onChange:function(){xe(!0)},disabled:"ended"==(null==Se?void 0:Se.competition_status)})})})]})}),(0,g.jsx)(Sc.Z.Item,{className:LA,style:{marginTop:"-12px"},label:"奖金金额",colon:!1,name:"bonus",rules:[{pattern:new RegExp(/^\d{0,8}$/,"g"),message:"必须是8位数以内的正整数"}],children:(0,g.jsx)(kc.Z,{autoComplete:"off",className:DA,placeholder:"如果需要设置奖金,请与平台客服人员对接",suffix:(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"元"})})}),(0,g.jsx)(Sc.Z.Item,{className:LA,label:"奖项数量",colon:!1,name:"awards_count",rules:[{pattern:new RegExp(/^\d{0,9}$/,"g"),message:"必须是正整数"}],children:(0,g.jsx)(kc.Z,{autoComplete:"off",className:DA,placeholder:"请输入奖项数量",suffix:(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"个"})})}),(0,g.jsx)(Sc.Z.Item,{name:"attachment_ids",label:"举办资质文档",colon:!1,getValueFromEvent:function(e){return Array.isArray(e)?e:e&&e.fileList},children:(0,g.jsxs)("div",{style:{display:"flex"},children:[(0,g.jsx)(TL,{action:kl.Z.API_SERVER+"/api/attachments.json",onChange:function(e){M(null==e?void 0:e.fileList)},onRemove:function(e){console.log(e),M([])},fileList:E,withCredentials:!0,children:(0,g.jsx)("div",{className:RA,children:"上传文档"})}),(0,g.jsx)("div",{className:FA,children:"如果涉及到竞赛奖金相关事项,请上传相关资质的证明文件,有便于竞赛快速审核通过"})]})}),(0,g.jsx)(Sc.Z.Item,{className:LA,label:"报名时间",colon:!1,children:(0,g.jsxs)("div",{style:{display:"flex"},children:[(0,g.jsx)(Sc.Z.Item,{name:"enroll_start_time",children:(0,g.jsx)(aI,{style:{height:"40px"},showTime:!0,format:"YYYY-MM-DD HH:mm",onChange:function(e){Pe(e,"报名开始时间")}})}),(0,g.jsx)("span",{style:{margin:"0 10px"},children:"至"}),(0,g.jsx)(Sc.Z.Item,{name:"enroll_end_time",children:(0,g.jsx)(aI,{style:{height:"40px"},showTime:!0,format:"YYYY-MM-DD HH:mm",onChange:function(e){Pe(e,"报名结束时间")}})}),(0,g.jsx)("div",{className:zA,children:"如果不填报名时间,则竞赛发布后将不展示报名入口"})]})}),(0,g.jsx)(Sc.Z.Item,{className:AA,label:(0,g.jsxs)("div",{children:[(0,g.jsx)("span",{style:{color:"#ff4d4f",marginRight:"4px",fontFamily:"SimSun, sans-serif"},children:"*"}),"竞赛时间"]}),colon:!1,children:(0,g.jsxs)("div",{style:{display:"flex"},children:[(0,g.jsx)(Sc.Z.Item,{name:"start_time",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,g.jsx)(aI,{style:{height:"40px"},showTime:!0,format:"YYYY-MM-DD HH:mm",onChange:function(e){Pe(e,"竞赛开始时间")},disabled:"progressing"==(null==Se?void 0:Se.competition_status)||"apply"===(null==Se?void 0:Se.competition_status)||"ended"==(null==Se?void 0:Se.competition_status)})}),(0,g.jsx)("span",{style:{margin:"0 10px"},children:"至"}),(0,g.jsx)(Sc.Z.Item,{name:"end_time",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,g.jsx)(aI,{style:{height:"40px"},showTime:!0,format:"YYYY-MM-DD HH:mm",onChange:function(e){Pe(e,"竞赛结束时间")},disabled:"ended"==(null==Se?void 0:Se.competition_status)||"apply"===(null==Se?void 0:Se.competition_status)})})]})})]}),!(null!=u&&u.isKd)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:PA,children:"开放范围"}),(0,g.jsxs)("div",{className:EA,children:[(0,g.jsx)(Sc.Z.Item,{className:KA,label:"参赛规则",name:"rule",colon:!1,children:(0,g.jsxs)(ih.ZP.Group,{children:[(0,g.jsx)(ih.ZP,{value:0,style:{width:"120px"},children:"按范围参加"}),(0,g.jsx)(ih.ZP,{value:1,style:{width:"120px"},children:"自定用户参加"})]})}),1==f.getFieldValue("rule")&&(0,g.jsx)(Sc.Z.Item,{name:"file_id",label:" ",colon:!1,getValueFromEvent:function(e){return Array.isArray(e)?e:e&&e.fileList},children:(0,g.jsxs)("div",{style:{marginLeft:"0px",display:"flex"},children:[(0,g.jsx)(TL,{accept:".xls, .xlsx",maxCount:1,action:kl.Z.API_SERVER+"/api/attachments.json",onChange:function(e){D(null==e?void 0:e.fileList)},onRemove:function(e){console.log(e),D([])},fileList:T,withCredentials:!0,children:(0,g.jsx)("div",{className:OA,children:"选择文件"})}),(0,g.jsxs)("div",{className:jA,style:{marginLeft:30},onClick:function(){(0,_l.Nd)(null,kl.Z.API_SERVER+"/api/competitions/download_template")},children:["下载模版",(0,g.jsx)("i",{className:"iconfont icon-xiazai5 font14 ml5"})]})]})}),0==f.getFieldValue("rule")&&(0,g.jsx)(Sc.Z.Item,{label:"选择省份",name:"province_rule",className:KA,colon:!1,style:{marginTop:"-3px"},children:(0,g.jsxs)(ih.ZP.Group,{onChange:function(e){var t;1==(null==e||null===(t=e.target)||void 0===t?void 0:t.value)&&f.setFieldValue("region_schools",[]),Ce([]),f.setFieldValue("region_provinces",[])},children:[(0,g.jsx)(ih.ZP,{value:0,style:{width:"120px"},children:"全部省份"}),(0,g.jsx)(ih.ZP,{value:1,style:{width:"120px"},children:"部分省份"})]})}),1==f.getFieldValue("province_rule")&&0==f.getFieldValue("rule")&&(0,g.jsx)(Sc.Z.Item,{className:MA,style:{marginTop:"-3px"},label:" ",colon:!1,name:"region_provinces",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,g.jsx)(Fc.default,{mode:"multiple",className:NA,options:oe,onChange:function(e){Ce(e)},filterOption:function(e,t){var n;return(null!==(n=null==t?void 0:t.value)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())}})}),0==f.getFieldValue("rule")&&(0,g.jsx)(Sc.Z.Item,{label:"选择院校",name:"region_rule",className:KA,colon:!1,style:{marginTop:"-3px"},children:(0,g.jsxs)(ih.ZP.Group,{children:[(0,g.jsx)(ih.ZP,{value:0,style:{width:"120px"},children:"全部院校"}),(0,g.jsx)(ih.ZP,{value:1,style:{width:"120px"},children:"部分院校"})]})}),1==f.getFieldValue("region_rule")&&0==f.getFieldValue("rule")&&(0,g.jsx)(Sc.Z.Item,{className:MA,style:{marginTop:"-3px"},label:" ",colon:!1,name:"region_schools",children:(0,g.jsx)(Fc.default,{mode:"multiple",className:NA,options:te,fieldNames:{label:"name",value:"id"},filterOption:function(e,t){var n;return(null!==(n=null==t?void 0:t.name)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())}})}),(0,g.jsx)("div",{children:1==f.getFieldValue("region_rule")&&0==f.getFieldValue("rule")&&(0,Sd.Ny)()&&(0,g.jsx)(Sc.Z.Item,{name:"file_id",label:" ",colon:!1,getValueFromEvent:function(e){return Array.isArray(e)?e:e&&e.fileList},children:(0,g.jsxs)("div",{style:{marginLeft:"0px",display:"flex"},children:[(0,g.jsx)(TL,{accept:".xls, .xlsx",maxCount:1,action:kl.Z.API_SERVER+"/api/attachments.json",onChange:function(e){D(null==e?void 0:e.fileList)},onRemove:function(e){console.log(e),D([])},fileList:T,withCredentials:!0,children:(0,g.jsx)("div",{className:OA,children:"选择文件"})}),(0,g.jsxs)("div",{className:jA,style:{marginLeft:30},onClick:function(){(0,_l.Nd)(null,kl.Z.API_SERVER+"/api/competitions/download_school_template.xlsx")},children:["下载模版",(0,g.jsx)("i",{className:"iconfont icon-xiazai5 font14 ml5"})]})]})})})]}),(0,g.jsx)("div",{className:PA,children:"报名者条件"}),(0,g.jsxs)("div",{className:EA,children:[(0,g.jsx)(Sc.Z.Item,{label:"报名条件",name:"is_authentication",className:KA,style:{marginTop:"-10px"},colon:!1,children:(0,g.jsxs)(sI.Z,{checked:B,onChange:function(e){var t;return R(null==e||null===(t=e.target)||void 0===t?void 0:t.checked)},children:["实名认证",(0,g.jsx)("span",{className:$A,children:"(参赛人员账号必须实名认证)"})]})}),(0,g.jsx)(Sc.Z.Item,{label:" ",name:"need_phone",style:{marginTop:"-10px"},colon:!1,children:(0,g.jsxs)(sI.Z,{checked:z,onChange:function(e){var t;return j(null==e||null===(t=e.target)||void 0===t?void 0:t.checked)},children:["绑定手机",(0,g.jsx)("span",{className:$A,children:"(参赛人员账号必须绑定手机号)"})]})}),(0,g.jsx)(Sc.Z.Item,{label:" ",name:"need_mail",style:{marginTop:"-10px"},colon:!1,children:(0,g.jsxs)(sI.Z,{checked:Z,onChange:function(e){var t;return K(null==e||null===(t=e.target)||void 0===t?void 0:t.checked)},children:["绑定邮箱",(0,g.jsx)("span",{className:$A,children:"(参赛人员账号必须绑定邮箱)"})]})}),(0,g.jsx)("div",{style:{display:"flex",marginBottom:20},children:(0,g.jsxs)("div",{style:{paddingLeft:50,textAlign:"end"},children:["报名信息 ",(0,g.jsx)("span",{style:{marginLeft:0},className:$A,children:"(参赛人员报名时需填写的信息)"})]})}),(0,g.jsxs)(Sc.Z.Item,{label:" ",children:[(0,g.jsxs)(dh.Z,{wrap:!1,gutter:10,children:[(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_name",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"姓名"})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_student_id",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"学号"})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_sex",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"性别"})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_phone",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"电话"})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_grade",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"年级"})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_teacher_name",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"指导老师姓名"})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_teacher_phone",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"指导老师联系方式"})})})]}),(0,g.jsxs)(dh.Z,{wrap:!1,gutter:10,style:{marginTop:"-12px"},children:[(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_school",valuePropName:"checked",children:(0,g.jsxs)(sI.Z,{children:["学校/单位",(0,g.jsx)(tc.Z,{title:"开启后,参赛人员填写报名信息时,可选的学校/单 位选项与“开放范围-选择院校”所列出的院校一致。",children:(0,g.jsx)("i",{className:"iconfont icon-jinggao-3",style:{color:"#9096A3",marginLeft:10}})}),(0,g.jsx)("span",{style:{color:"#9096A3"},children:"(与“开放范围”包含院校一致)"})]})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_id_number",valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"身份证号码"})})})]})]})]}),(0,g.jsx)("div",{className:PA,children:"参赛模式"}),(0,g.jsxs)("div",{className:EA,children:[(0,g.jsx)(Sc.Z.Item,{label:" ",name:"personal",colon:!1,children:(0,g.jsxs)(ih.ZP.Group,{disabled:"progressing"==(null==Se?void 0:Se.competition_status)||"ended"==(null==Se?void 0:Se.competition_status),children:[(0,g.jsx)(ih.ZP,{value:!1,style:{width:"120px"},children:"战队赛"}),(0,g.jsx)(ih.ZP,{value:!0,style:{width:"120px"},children:"个人赛"})]})}),0==f.getFieldValue("personal")&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Sc.Z.Item,{className:TA,style:{marginTop:"-2px"},label:" ",colon:!1,children:(0,g.jsxs)("div",{style:{display:"flex"},children:[(0,g.jsx)("span",{style:{margin:"0 10px 0 -50px"},children:"学生数"}),(0,g.jsx)(Sc.Z.Item,{name:"student_min",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,g.jsx)(kc.Z,{style:{width:"100px"}})}),(0,g.jsx)("span",{style:{margin:"0 10px"},children:"至"}),(0,g.jsx)(Sc.Z.Item,{name:"student_max",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,g.jsx)(kc.Z,{style:{width:"100px"}})}),(0,g.jsx)("span",{style:{margin:"0 10px"},children:"人"}),(0,g.jsx)(Sc.Z.Item,{name:"student_checkbox",children:(0,g.jsx)(sI.Z,{style:{marginLeft:"20px"},disabled:3===(null==Se?void 0:Se.mode),checked:V,onChange:function(e){var t;return W(null==e||null===(t=e.target)||void 0===t?void 0:t.checked)},children:(0,g.jsx)("span",{children:"不可存在多个战队中"})})})]})}),(0,g.jsx)(Sc.Z.Item,{className:TA,style:{marginTop:"-12px"},label:" ",name:"competition_staffs",colon:!1,children:(0,g.jsxs)("div",{style:{display:"flex"},children:[(0,g.jsx)("span",{style:{margin:"0 10px 0 -50px"},children:"教师数"}),(0,g.jsx)(Sc.Z.Item,{name:"teacher_min",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,g.jsx)(kc.Z,{style:{width:"100px"}})}),(0,g.jsx)("span",{style:{margin:"0 10px"},children:"至"}),(0,g.jsx)(Sc.Z.Item,{name:"teacher_max",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,g.jsx)(kc.Z,{style:{width:"100px"}})}),(0,g.jsx)("span",{style:{margin:"0 10px"},children:"人"}),(0,g.jsx)(Sc.Z.Item,{name:"teacher_checkbox",children:(0,g.jsx)(sI.Z,{style:{marginLeft:"20px"},disabled:3===(null==Se?void 0:Se.mode),checked:X,onChange:function(e){var t;return Q(null==e||null===(t=e.target)||void 0===t?void 0:t.checked)},children:(0,g.jsx)("span",{children:"不可存在多个战队中"})})})]})})]}),1==f.getFieldValue("personal")&&(0,g.jsx)(Sc.Z.Item,{label:" ",children:(0,g.jsxs)(dh.Z,{wrap:!1,gutter:10,children:[(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"is_student",style:{marginTop:"-12px"},valuePropName:"checked",normalize:function(e,t,n){return e||n.is_teacher||n.is_professional?e:(ec.ZP.warning("请选择至少一种身份可以报名参赛"),!(e||n.is_teacher||n.is_professional))},children:(0,g.jsx)(sI.Z,{children:"学生身份参赛"})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"is_teacher",style:{marginTop:"-12px"},valuePropName:"checked",normalize:function(e,t,n){return e||n.is_student||n.is_professional?e:(ec.ZP.warning("请选择至少一种身份可以报名参赛"),!(e||n.is_student||n.is_professional))},children:(0,g.jsx)(sI.Z,{children:"教师身份参赛"})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"is_professional",style:{marginTop:"-12px"},valuePropName:"checked",normalize:function(e,t,n){return e||n.is_teacher||n.is_student?e:(ec.ZP.warning("请选择至少一种身份可以报名参赛"),!(e||n.is_teacher||n.is_student))},children:(0,g.jsx)(sI.Z,{children:"专业人士身份参赛"})})})]})})]})]}),(0,g.jsx)("div",{className:HA,children:(0,g.jsx)(uI,{className:ZA,htmlType:"submit",onClick:a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),children:"保存更改"})})]}),(0,g.jsx)(hh.Z,{centered:!0,title:"以下数据导入失败",open:pe,okText:"确定",cancelText:"取消",onOk:function(){fe(!1)},onCancel:function(){fe(!1)},children:(0,g.jsx)(xA.Z,{bordered:!0,scroll:{y:400},columns:1==f.getFieldValue("rule")?[{title:"手机号",dataIndex:"phone"},{title:"姓名",dataIndex:"name"},{title:"邮箱",dataIndex:"email"}]:[{title:"ID",dataIndex:"phone"},{title:"学校/单位",dataIndex:"name"}],dataSource:ve,pagination:!1,rowKey:function(e){return e.name}})})]})})),fI={flex_box_center:"flex_box_center___TUtVx",flex_space_between:"flex_space_between___skxVP",flex_box_vertical_center:"flex_box_vertical_center____enb6",flex_box_center_end:"flex_box_center_end___lO_Gq",flex_box_column:"flex_box_column___QrhZ_",all:"all___GiQqZ",title:"title___YtceA",content:"content___Es9RO",content_icon:"content_icon___SNFzF",content_info:"content_info___rSAWs",content_title:"content_title___Hkmmk",content_size:"content_size___jLmmn",content_img:"content_img___NRn9i",content_img2:"content_img2___D23TM"},gI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA+9JREFUWEeVl12IVVUUx39rnyuj2UswQiEp1osURFESPoimkPgShJMQQ2UFDsOoEYmOn4yUToXcoSxNsYJewg+klxgJJ8GnqPzoSURUQh998MGBKWdcsvc959599t3nwwuXc+496+z1X//1LXqEXv7jMLCGhLkIkAAm/drf2b292mfhf/7z2L2V1/Q93P0khnGUQdEmJxH6ckoyBb6yR1WcGeJfW8pbBrSup0QPcA9hbs5inwFrkc9KeP8orESYEP0CzVkfUuhb4CvLQMYAlbkkACE6WgGg6LAqN4Uu839nICy5ug/NBVaRr8vckL0TshKy5xtjnzkAn3kMxKyqivDwUMMUDf5CmCFhCaTx5YPM9DgAeyMuKKMvUxhjSrhAD2tlLf+6gD/DU0xxnIRl7UAOjBQdCQD4AlkG1Iv0+xgWSz83WuS2PvorTzLNNQyPd6V6YhnYE7igyo/F9eCCvMcrvvI2iF84i7Aqx0KqR3RXrSx4gEHSb6cu5Om8KO/zchTAaSYQVnalu1gGdlQASFyWLEe4heEs8Gw7a/Js3aeH56WfazkXnGA+wlWMV+y8wBUdDgB0U/y7DLPK+XOMFzH8gdDTVR1bcXIZQ5+s57qT/5mngeMYlhYVO9GtXh2I+bfBRhnm27Y/xxgCvmk3rLB5Gf7HOCAzCC9hmF3WwES3FBQiC8bSP4sFso3bOVqbnMbwZiyqo5bGGlPqBtFP0K7o7LTbP2WEV8PA0kM8wRSXMCysVBj2j6A6in6cxkA3lZaB7TLC59HIHmMpcB5DIzofJPyEcBfDZgeyoJSLflSQBfaFOSyW3VyNAXBBdoBhDKNtFjrl9ksZYJuT+YETGN6KtnuXhpsilbDl/yuyn+eKlLvDrfOanMHwepuFhAnmsVrWMeNkfmQFyrkiV4kOFTDQYL+MsrMMgFPwNfOYdpXuBYSLzGG1DHCnnTUW5Pdcx7AoBkJ0sADAbJbIPv6uApAyYTjIIjZxU4QHXUF7jD0Ie2OxIjoQSUPDLWmyoI7yOjJ6jIUoNxFXzltDbhovohsi88AsDkqTzXUOryujR5kAVoZFSfTDFIA/MCQMyVccqnt4HTn9jk8RdnnB6lJT9INoDIzTyxsywnSdw6tk9BwNrvAbwmthOoquL6wDN2jwTzpadZaRol3BLzT5nmIbuW1iz8TngXdrzQPxSlY2Q9ZZZJwL3gl6QdFqFdsD/PUtNnTWGOVE+1MAZcNmFahwduyelDv7pr9Xupnwbe65aaVshi+jM2xivoKMAR9g3tBJ0XWcJKEvTI/cwOFbVGdxKVvv8kvMKctAL8phDGvcEhFTUGdPKHJTfB6YRBjnMQYfAr/L5O84EyIQAAAAAElFTkSuQmCC",mI=["competitions","globalSetting","loading","dispatch","user"],vI=(0,d.connect)((function(e){var t=e.competitions,n=e.loading,i=e.globalSetting,r=e.user;return{competitions:t,globalSetting:i,loading:n.models.competitions,user:r}}))((function(e){var t=e.competitions,n=(e.globalSetting,e.loading,e.dispatch),i=(e.user,Bl()(e,mI)),o=(0,c.useState)(""),s=l()(o,2),u=s[0],d=s[1],p=(0,c.useState)(""),f=l()(p,2),m=f[0],v=f[1],y=Sc.Z.useForm(),b=l()(y,1)[0],w=t.Header,x=(0,c.useState)(!0),S=l()(x,2),k=S[0],_=S[1];(0,c.useEffect)((function(){C()}),[]),(0,c.useEffect)((function(){_(null==w?void 0:w.is_show_picture),b.setFieldValue("apply_success_tips",(null==w?void 0:w.apply_success_tips)||"参赛者可扫码加入大赛官方交流群,获取最新竞赛通知")}),[w]);var C=function(){(0,$L.Mn)(null==i?void 0:i.competitionId).then((function(e){var t,n;0==(null==e?void 0:e.status)?(d(null==e||null===(t=e.data)||void 0===t?void 0:t.competition_image),v(null==e||null===(n=e.data)||void 0===n?void 0:n.qr_code_image),null==i||i.loadingFunction(!1)):ec.ZP.error(null==e?void 0:e.message)}))},P=function(e,t){(0,$L.o3)(null==i?void 0:i.competitionId).then((function(r){var o=new FormData;o.append("file",null==e?void 0:e.file),o.append("source_id",null==r?void 0:r.id),o.append("source_type",t),(0,pd.ZP)("/api/competitions/set_attachments.json",{method:"post",body:o},!0).then((function(e){"success"==(null==e?void 0:e.message)?(ec.ZP.success("上传成功"),C(),n({type:"competitions/getStaff",payload:{identifier:null==i?void 0:i.competitionId}}),n({type:"competitions/getHeader",payload:{identifier:null==i?void 0:i.competitionId}})):ec.ZP.error(null==e?void 0:e.message)}))}))};function E(e){return M.apply(this,arguments)}function M(){return(M=a()(r()().mark((function e(t){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pd.ZP)("/api/competitions/".concat(w.identifier,"/update_picture_settings.json"),{method:"post",body:t});case 2:0===(null==(i=e.sent)?void 0:i.status)&&(ec.ZP.info("更新成功"),n({type:"competitions/getHeader",payload:{identifier:w.identifier}}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,g.jsxs)("div",{className:fI.all,children:[(0,g.jsx)("div",{className:fI.title,children:"图片设置"}),(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{style:{marginTop:48,marginLeft:50,fontSize:14,color:"#232B40"},children:"竞赛海报"}),(0,g.jsxs)("div",{className:fI.content,children:[(0,g.jsx)("img",{src:gI,className:fI.content_icon}),(0,g.jsxs)("div",{className:fI.content_info,children:[(0,g.jsx)(TL,{accept:"image/*",customRequest:function(e){return P(e,"Competition")},showUploadList:!1,children:(0,g.jsx)("div",{className:fI.content_title,children:"上传竞赛封面图"})}),(0,g.jsx)("div",{className:fI.content_size,children:"图片尺寸:792 x 340"})]}),(0,g.jsx)("img",{src:u,className:fI.content_img})]})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{style:{marginTop:48,marginLeft:50,fontSize:14,color:"#232B40"},children:"报名成功弹窗"}),(0,g.jsxs)("div",{className:fI.content,style:{borderBottom:0},children:[(0,g.jsx)("img",{src:gI,className:fI.content_icon}),(0,g.jsxs)("div",{className:fI.content_info,children:[(0,g.jsx)(TL,{accept:"image/*",customRequest:function(e){return P(e,"Competition_code")},showUploadList:!1,children:(0,g.jsx)("div",{className:fI.content_title,children:"上传交流群二维码"})}),(0,g.jsx)("div",{className:fI.content_size,children:"图片尺寸:160 x 160"})]}),(0,g.jsx)("img",{src:m,className:fI.content_img2})]}),(0,g.jsxs)("div",{style:{marginLeft:50,marginRight:50},children:[(0,g.jsxs)("div",{children:["展示二维码",(0,g.jsx)(Zd,{checked:k,onChange:function(e){var t;_(e),E({is_show_picture:e,apply_success_tips:null===(t=b.getFieldsValue())||void 0===t?void 0:t.apply_success_tips})},style:{marginLeft:10}})]}),(0,g.jsx)(Sc.Z,{size:"large",form:b,onFinish:function(e){E(h()({is_show_picture:k},e))},style:{marginTop:20},children:(0,g.jsx)(Sc.Z.Item,{label:(0,g.jsxs)("div",{children:[(0,g.jsx)("span",{style:{color:"#ff4d4f",marginRight:"4px",fontFamily:"SimSun, sans-serif"},children:"*"}),"报名成功提示"]}),colon:!1,children:(0,g.jsxs)("div",{style:{display:"flex"},children:[(0,g.jsx)(Sc.Z.Item,{style:{width:"100%"},colon:!1,name:"apply_success_tips",children:(0,g.jsx)(kc.Z,{autoComplete:"off",style:{width:"100%"},className:fI.form_item_item,placeholder:"请输入报名成功提示",onBlur:function(){return b.submit()}})}),(0,g.jsx)(Ml.ZP,{onClick:function(){var e;hh.Z.confirm({title:!1,closable:!0,icon:null,footer:!1,content:(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{style:{fontSize:26,color:"#3d3d3d",textAlign:"center",marginBottom:20},children:[(0,g.jsx)("i",{style:{fontSize:26,color:"#52C41A"},className:"iconfont icon-tongguo"})," 报名成功"]}),(0,g.jsxs)("div",{style:{alignItems:"center",textAlign:"center"},children:[k&&(0,g.jsx)("img",{style:{width:180,border:"1px solid #eeeeef",padding:10,marginBottom:20},src:kl.Z.IMG_SERVER+(null==w?void 0:w.QR_code)}),(0,g.jsx)("p",{style:{color:"#AAAAAA"},children:null===(e=b.getFieldsValue())||void 0===e?void 0:e.apply_success_tips})]})]})})},style:{marginLeft:10},type:"primary",children:"示例"})]})})})]})]})]})})),yI="all___d1AWD",bI="title___VIjuM",wI="add_people___qkPex",xI="people_icon___lz5gl",SI="content___a8dSX",kI="content_info___ekLIa",_I="info_icon___kXP8P",CI="info_title___Hld67",PI="info_content___kbIuT",EI="info_content_icon___uNxzs",MI="info_content_title___IfIi8",LI="info_open___NzrUi",AI="info_delete___rZhhO",TI="questions_info___n9Fnq",DI="form_item___oxzha",NI="form_item_item___yPf7l",II="form_item_small___EkG9G",BI="guanka_title___uUWQl",RI="nandu_1___qifbd",OI="nandu_2___qVJU8",FI="nandu_3___NRfLL",zI="close_icon___f2hON",jI="footer___UDiYB",$I="save_button___t7iMm",HI="textone___TAI4F",ZI="deletecolor___ldQnR",KI="qselect___uuNp6",GI="qinput___xHGmH",UI="modalclass___dPDG7",VI="popu___G8M92",WI="pingcesetting___zHJaT",qI=n(43403),YI=c.createContext(null),XI=c.createContext({}),QI=YI,JI=["prefixCls","className","containerRef"];var eB=function(e){var t=e.prefixCls,n=e.className,i=e.containerRef,r=(0,Qc.Z)(e,JI),o=c.useContext(XI).panel,a=(0,gu.x1)(o,i);return c.createElement("div",(0,Ll.Z)({className:f()("".concat(t,"-content"),n),role:"dialog",ref:a},(0,DE.Z)(e,{aria:!0}),{"aria-modal":"true"},r))};function tB(e){return"string"==typeof e&&String(Number(e))===e?((0,mu.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var nB={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function iB(e,t){var n,i,r,o=e.prefixCls,a=e.open,s=e.placement,l=e.inline,u=e.push,h=e.forceRender,d=e.autoFocus,p=e.keyboard,g=e.classNames,m=e.rootClassName,v=e.rootStyle,y=e.zIndex,b=e.className,w=e.id,x=e.style,S=e.motion,k=e.width,_=e.height,C=e.children,P=e.mask,E=e.maskClosable,M=e.maskMotion,L=e.maskClassName,A=e.maskStyle,T=e.afterOpenChange,D=e.onClose,N=e.onMouseEnter,I=e.onMouseOver,B=e.onMouseLeave,R=e.onClick,O=e.onKeyDown,F=e.onKeyUp,z=e.styles,j=e.drawerRender,$=c.useRef(),H=c.useRef(),Z=c.useRef();c.useImperativeHandle(t,(function(){return $.current}));c.useEffect((function(){var e;a&&d&&(null===(e=$.current)||void 0===e||e.focus({preventScroll:!0}))}),[a]);var K=c.useState(!1),G=(0,Xc.Z)(K,2),U=G[0],V=G[1],W=c.useContext(QI),q=null!==(n=null!==(i=null===(r="boolean"==typeof u?u?{}:{distance:0}:u||{})||void 0===r?void 0:r.distance)&&void 0!==i?i:null==W?void 0:W.pushDistance)&&void 0!==n?n:180,Y=c.useMemo((function(){return{pushDistance:q,push:function(){V(!0)},pull:function(){V(!1)}}}),[q]);c.useEffect((function(){var e,t;a?null==W||null===(e=W.push)||void 0===e||e.call(W):null==W||null===(t=W.pull)||void 0===t||t.call(W)}),[a]),c.useEffect((function(){return function(){var e;null==W||null===(e=W.pull)||void 0===e||e.call(W)}}),[]);var X=P&&c.createElement(gM.ZP,(0,Ll.Z)({key:"mask"},M,{visible:a}),(function(e,t){var n=e.className,i=e.style;return c.createElement("div",{className:f()("".concat(o,"-mask"),n,null==g?void 0:g.mask,L),style:(0,LE.Z)((0,LE.Z)((0,LE.Z)({},i),A),null==z?void 0:z.mask),onClick:E&&a?D:void 0,ref:t})})),Q="function"==typeof S?S(s):S,J={};if(U&&q)switch(s){case"top":J.transform="translateY(".concat(q,"px)");break;case"bottom":J.transform="translateY(".concat(-q,"px)");break;case"left":J.transform="translateX(".concat(q,"px)");break;default:J.transform="translateX(".concat(-q,"px)")}"left"===s||"right"===s?J.width=tB(k):J.height=tB(_);var ee={onMouseEnter:N,onMouseOver:I,onMouseLeave:B,onClick:R,onKeyDown:O,onKeyUp:F},te=c.createElement(gM.ZP,(0,Ll.Z)({key:"panel"},Q,{visible:a,forceRender:h,onVisibleChanged:function(e){null==T||T(e)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),(function(t,n){var i=t.className,r=t.style,a=c.createElement(eB,(0,Ll.Z)({id:w,containerRef:n,prefixCls:o,className:f()(b,null==g?void 0:g.content),style:(0,LE.Z)((0,LE.Z)({},x),null==z?void 0:z.content)},(0,DE.Z)(e,{aria:!0}),ee),C);return c.createElement("div",(0,Ll.Z)({className:f()("".concat(o,"-content-wrapper"),null==g?void 0:g.wrapper,i),style:(0,LE.Z)((0,LE.Z)((0,LE.Z)({},J),r),null==z?void 0:z.wrapper)},(0,DE.Z)(e,{data:!0})),j?j(a):a)})),ne=(0,LE.Z)({},v);return y&&(ne.zIndex=y),c.createElement(QI.Provider,{value:Y},c.createElement("div",{className:f()(o,"".concat(o,"-").concat(s),m,(0,qc.Z)((0,qc.Z)({},"".concat(o,"-open"),a),"".concat(o,"-inline"),l)),style:ne,tabIndex:-1,ref:$,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case Ld.Z.TAB:var i;if(t===Ld.Z.TAB)if(n||document.activeElement!==Z.current){if(n&&document.activeElement===H.current){var r;null===(r=Z.current)||void 0===r||r.focus({preventScroll:!0})}}else null===(i=H.current)||void 0===i||i.focus({preventScroll:!0});break;case Ld.Z.ESC:D&&p&&(e.stopPropagation(),D(e))}}},X,c.createElement("div",{tabIndex:0,ref:H,style:nB,"aria-hidden":"true","data-sentinel":"start"}),te,c.createElement("div",{tabIndex:0,ref:Z,style:nB,"aria-hidden":"true","data-sentinel":"end"})))}var rB=c.forwardRef(iB);var oB=function(e){var t=e.open,n=void 0!==t&&t,i=e.prefixCls,r=void 0===i?"rc-drawer":i,o=e.placement,a=void 0===o?"right":o,s=e.autoFocus,l=void 0===s||s,u=e.keyboard,h=void 0===u||u,d=e.width,p=void 0===d?378:d,f=e.mask,g=void 0===f||f,m=e.maskClosable,v=void 0===m||m,y=e.getContainer,b=e.forceRender,w=e.afterOpenChange,x=e.destroyOnClose,S=e.onMouseEnter,k=e.onMouseOver,_=e.onMouseLeave,C=e.onClick,P=e.onKeyDown,E=e.onKeyUp,M=e.panelRef,L=c.useState(!1),A=(0,Xc.Z)(L,2),T=A[0],D=A[1];var N=c.useState(!1),I=(0,Xc.Z)(N,2),B=I[0],R=I[1];(0,fu.Z)((function(){R(!0)}),[]);var O=!!B&&n,F=c.useRef(),z=c.useRef();(0,fu.Z)((function(){O&&(z.current=document.activeElement)}),[O]);var j=c.useMemo((function(){return{panel:M}}),[M]);if(!b&&!T&&!O&&x)return null;var $={onMouseEnter:S,onMouseOver:k,onMouseLeave:_,onClick:C,onKeyDown:P,onKeyUp:E},H=(0,LE.Z)((0,LE.Z)({},e),{},{open:O,prefixCls:r,placement:a,autoFocus:l,keyboard:h,width:p,mask:g,maskClosable:v,inline:!1===y,afterOpenChange:function(e){var t,n;(D(e),null==w||w(e),e||!z.current||null!==(t=F.current)&&void 0!==t&&t.contains(z.current))||(null===(n=z.current)||void 0===n||n.focus({preventScroll:!0}))},ref:F},$);return c.createElement(XI.Provider,{value:j},c.createElement(qI.Z,{open:O||b||T,autoDestroy:!1,getContainer:y,autoLock:g&&(O||T)},c.createElement(rB,H)))},aB=n(55743),sB=n(91190),lB=n(78776);var cB=e=>{var t,n;const{prefixCls:i,title:r,footer:o,extra:a,loading:s,onClose:l,headerStyle:u,bodyStyle:h,footerStyle:d,children:p,classNames:g,styles:m}=e,v=(0,Du.dj)("drawer"),y=c.useCallback((e=>c.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${i}-close`},e)),[l]),[b,w]=(0,lB.Z)((0,lB.w)(e),(0,lB.w)(v),{closable:!0,closeIconRender:y}),x=c.useMemo((()=>{var e,t;return r||b?c.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=v.styles)||void 0===e?void 0:e.header),u),null==m?void 0:m.header),className:f()(`${i}-header`,{[`${i}-header-close-only`]:b&&!r&&!a},null===(t=v.classNames)||void 0===t?void 0:t.header,null==g?void 0:g.header)},c.createElement("div",{className:`${i}-header-title`},w,r&&c.createElement("div",{className:`${i}-title`},r)),a&&c.createElement("div",{className:`${i}-extra`},a)):null}),[b,w,a,u,i,r]),S=c.useMemo((()=>{var e,t;if(!o)return null;const n=`${i}-footer`;return c.createElement("div",{className:f()(n,null===(e=v.classNames)||void 0===e?void 0:e.footer,null==g?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=v.styles)||void 0===t?void 0:t.footer),d),null==m?void 0:m.footer)},o)}),[o,d,i]);return c.createElement(c.Fragment,null,x,c.createElement("div",{className:f()(`${i}-body`,null==g?void 0:g.body,null===(t=v.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=v.styles)||void 0===n?void 0:n.body),h),null==m?void 0:m.body)},s?c.createElement(lA.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${i}-body-skeleton`}):p),S)};const uB=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},hB=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),dB=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},hB({opacity:e},{opacity:1})),pB=(e,t)=>[dB(.7,t),hB({transform:uB(e)},{transform:"none"})];var fB=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:dB(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce(((e,t)=>Object.assign(Object.assign({},e),{[`&-${t}`]:pB(t,n)})),{})}}};const gB=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:i,colorBgMask:r,colorBgElevated:o,motionDurationSlow:a,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:h,lineHeightLG:d,lineWidth:p,lineType:f,colorSplit:g,marginXS:m,colorIcon:v,colorIconHover:y,colorBgTextHover:b,colorBgTextActive:w,colorText:x,fontWeightStrong:S,footerPaddingBlock:k,footerPaddingInline:_,calc:C}=e,P=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:i,pointerEvents:"none",color:x,"&-pure":{position:"relative",background:o,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:i,background:r,pointerEvents:"auto"},[P]:{position:"absolute",zIndex:i,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${P}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${P}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${P}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${P}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,ju.bf)(c)} ${(0,ju.bf)(u)}`,fontSize:h,lineHeight:d,borderBottom:`${(0,ju.bf)(p)} ${f} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:C(h).add(l).equal(),height:C(h).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:m,color:v,fontWeight:S,fontSize:h,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:y,backgroundColor:b,textDecoration:"none"},"&:active":{backgroundColor:w}},(0,Ku.Qy)(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:h,lineHeight:d},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${(0,ju.bf)(k)} ${(0,ju.bf)(_)}`,borderTop:`${(0,ju.bf)(p)} ${f} ${g}`},"&-rtl":{direction:"rtl"}}}};var mB=(0,Uu.I$)("Drawer",(e=>{const t=(0,Vu.IX)(e,{});return[gB(t),fB(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}))),vB=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{rootClassName:t,width:n,height:i,size:r="default",mask:o=!0,push:a=yB,open:s,afterOpenChange:l,onClose:u,prefixCls:h,getContainer:d,style:p,className:g,visible:m,afterVisibleChange:v,maskStyle:y,drawerStyle:b,contentWrapperStyle:w}=e,x=vB(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:S,getPrefixCls:k,direction:_,className:C,style:P,classNames:E,styles:M}=(0,Du.dj)("drawer"),L=k("drawer",h),[A,T,D]=mB(L),N=void 0===d&&S?()=>S(document.body):d,I=f()({"no-mask":!o,[`${L}-rtl`]:"rtl"===_},t,T,D);const B=c.useMemo((()=>null!=n?n:"large"===r?736:378),[n,r]),R=c.useMemo((()=>null!=i?i:"large"===r?736:378),[i,r]),O={motionName:(0,yM.m)(L,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},F=(0,sB.H)(),[z,j]=(0,wN.Cn)("Drawer",x.zIndex),{classNames:$={},styles:H={}}=x;return A(c.createElement(Au.Z,{form:!0,space:!0},c.createElement(aB.Z.Provider,{value:j},c.createElement(oB,Object.assign({prefixCls:L,onClose:u,maskMotion:O,motion:e=>({motionName:(0,yM.m)(L,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},x,{classNames:{mask:f()($.mask,E.mask),content:f()($.content,E.content),wrapper:f()($.wrapper,E.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},H.mask),y),M.mask),content:Object.assign(Object.assign(Object.assign({},H.content),b),M.content),wrapper:Object.assign(Object.assign(Object.assign({},H.wrapper),w),M.wrapper)},open:null!=s?s:m,mask:o,push:a,width:B,height:R,style:Object.assign(Object.assign({},P),p),className:f()(C,g),rootClassName:I,getContainer:N,afterOpenChange:null!=l?l:v,panelRef:F,zIndex:z}),c.createElement(cB,Object.assign({prefixCls:L},x,{onClose:u}))))))};bB._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:i,placement:r="right"}=e,o=vB(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=c.useContext(Du.E_),s=a("drawer",t),[l,u,h]=mB(s),d=f()(s,`${s}-pure`,`${s}-${r}`,u,h,i);return l(c.createElement("div",{className:d,style:n},c.createElement(cB,Object.assign({prefixCls:s},o))))};var wB=bB;const xB=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:r,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,Ku.Wf)(e)),{borderBlockStart:`${(0,ju.bf)(r)} solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,ju.bf)(r)} solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,ju.bf)(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,ju.bf)(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,ju.bf)(r)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${(0,ju.bf)(r)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:i,borderStyle:"dotted",borderWidth:`${(0,ju.bf)(r)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var SB=(0,Uu.I$)("Divider",(e=>{const t=(0,Vu.IX)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[xB(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}}),kB=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n,className:i,style:r}=(0,Du.dj)("divider"),{prefixCls:o,type:a="horizontal",orientation:s="center",orientationMargin:l,className:u,rootClassName:h,children:d,dashed:p,variant:g="solid",plain:m,style:v}=e,y=kB(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),b=t("divider",o),[w,x,S]=SB(b),k=!!d,_=c.useMemo((()=>"left"===s?"rtl"===n?"end":"start":"right"===s?"rtl"===n?"start":"end":s),[n,s]),C="start"===_&&null!=l,P="end"===_&&null!=l,E=f()(b,i,x,S,`${b}-${a}`,{[`${b}-with-text`]:k,[`${b}-with-text-${_}`]:k,[`${b}-dashed`]:!!p,[`${b}-${g}`]:"solid"!==g,[`${b}-plain`]:!!m,[`${b}-rtl`]:"rtl"===n,[`${b}-no-default-orientation-margin-start`]:C,[`${b}-no-default-orientation-margin-end`]:P},u,h),M=c.useMemo((()=>"number"==typeof l?l:/^\d+$/.test(l)?Number(l):l),[l]),L={marginInlineStart:C?M:void 0,marginInlineEnd:P?M:void 0};return w(c.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},r),v)},y,{role:"separator"}),d&&"vertical"!==a&&c.createElement("span",{className:`${b}-inner-text`,style:L},d)))},CB="drawer___HuOiD",PB="menu___JTt0c",EB="actived___zd6GY",MB="actived2___hNW2h",LB="subTag___rHkqz",AB="listItem___dr1wg",TB="info___bpBpK",DB="title___typIH",NB="titleLeft___b4niC",IB="filter___HBJIT",BB="description___Rqa6Q",RB="menuCourse____Msk3",OB="button_right___T8tiB",FB=n(71283),zB={search:"search___JA0r9",btn:"btn___GGtZC"},jB=function(e){var t=e.value,n=e.onChange,i=Sc.Z.useForm(),r=l()(i,1)[0],o=(0,c.useRef)(!1);(0,c.useEffect)((function(){t&&r.setFieldsValue(t)}),t);return(0,g.jsx)("div",{className:zB.search,children:(0,g.jsxs)(Sc.Z,{className:zB.formWrap,colon:!1,form:r,size:"large",layout:"inline",onFinish:function(e){o.current||function(e){o.current||n(e),o.current=!0,setTimeout((function(){o.current=!1}),2e3)}(e)},children:[(0,g.jsx)(Sc.Z.Item,{label:"实践项目名称",name:"keyword",initialValue:"",children:(0,g.jsx)(kc.Z,{style:{width:280,height:40}})}),(0,g.jsx)(Sc.Z.Item,{label:"学校/单位",name:"schools",initialValue:"",style:{margin:"0 40px"},children:(0,g.jsx)(kc.Z,{style:{width:280,height:40}})}),(0,g.jsx)(Sc.Z.Item,{label:"创建者/合作者",name:"creator",initialValue:"",children:(0,g.jsx)(kc.Z,{style:{width:200,height:40}})}),(0,g.jsx)(Ml.ZP,{className:zB.btn,type:"primary",htmlType:"submit",children:"搜索"})]})})},$B="brief___LOzpE",HB="contentTitle___xkdcN",ZB="content___Vtri0",KB="antdTable___s8T2N",GB="tableCell___kN9Fw",UB="antdModal___WVBk3",VB="orangeColor___ryB2u",WB=n(18240),qB=["isImportMultipleCourse"],YB=function(e){var t=e.studentNames,n=e.total;return n>3?(0,g.jsxs)(g.Fragment,{children:["课堂内有",(0,g.jsx)("span",{className:VB,children:null==t?void 0:t.join("、")}),"等",(0,g.jsx)("span",{className:VB,children:n}),"名学生"]}):(0,g.jsxs)(g.Fragment,{children:["课堂内有",(0,g.jsx)("span",{className:VB,children:null==t?void 0:t.join("、")}),["","一","两","三"][n],"名学生"]})},XB=function(e){var t=e.onCancel,n=e.onOk,i=e.visible,o=(e.inPaper,e.renderData),s=(e.type,e.isMultipleCourse),u=void 0!==s&&s,d=Sc.Z.useForm(),p=l()(d,1)[0],f=(0,c.useState)(1),m=l()(f,2),v=m[0],y=m[1],b=(0,c.useState)(!1),w=l()(b,2),x=w[0],S=w[1],k=(0,c.useMemo)((function(){return 1===(null==o?void 0:o.total_num)&&1===(null==o?void 0:o.can_copy_num)}),[o]),_=(0,c.useMemo)((function(){var e;return null==o||null===(e=o.course_data_list)||void 0===e?void 0:e.filter((function(e){return e.is_show}))}),[o]);return(0,g.jsx)(g.Fragment,{children:k?(0,g.jsxs)(hh.Z,{centered:!0,closable:!0,open:i,destroyOnClose:!0,title:"提示",className:UB,width:682,confirmLoading:x,onCancel:t,onOk:a()(r()().mark((function e(){var t,i,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(!0),t=v,u&&(a=h()({},p.getFieldsValue()),t=null==o||null===(i=o.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==a[e.id]?h()(h()({},e),{},{is_copy:a[e.id]}):e}))),e.next=5,n(t);case 5:S(!1);case 6:case"end":return e.stop()}}),e)}))),children:[(0,g.jsx)("div",{className:ZB,style:{marginBottom:20},children:u?"检测到以下课堂已在教学课堂中使用,请问是否复制成新的实训发送至教学课堂中?":(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(YB,{studentNames:null==o?void 0:o.student_names,total:null==o?void 0:o.student_count}),"学习过该实践项目。该项目支持复制,请选择是否将该项目复制为新项目发送至课堂中?"]})}),u?(0,g.jsx)(Sc.Z,{form:p,preserve:!1,children:null==_?void 0:_.map((function(e){return(0,g.jsxs)(c.Fragment,{children:[(0,g.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,g.jsx)(Sc.Z.Item,{name:e.id,initialValue:1,children:(0,g.jsxs)(ih.ZP.Group,{className:ZB,children:[(0,g.jsx)(ih.ZP,{value:1,style:{color:"#464f66"},children:"复制实训"}),(0,g.jsx)(ih.ZP,{value:0,style:{color:"#464f66"},children:"不复制实训"})]})})]},e.id)}))}):(0,g.jsxs)(ih.ZP.Group,{value:v,onChange:function(e){return y(e.target.value)},className:ZB,style:{marginBottom:30},children:[(0,g.jsx)(ih.ZP,{value:1,style:{color:"#464f66"},children:"复制"}),(0,g.jsx)(ih.ZP,{value:0,style:{color:"#464f66"},children:"不复制"})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:ZB,style:{marginBottom:10},children:"* 说明:"}),(0,g.jsx)("div",{className:ZB,style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,g.jsx)("div",{className:"".concat(ZB," ").concat(VB),children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]})]}):(0,g.jsx)(hh.Z,{centered:!0,closable:!0,destroyOnClose:!0,open:i,confirmLoading:x,title:"提示",width:682,onCancel:t,onOk:a()(r()().mark((function e(){var t,i,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(!0),t=0,u&&(a=h()({},p.getFieldsValue()),t=null==o||null===(i=o.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==a[e.id]?h()(h()({},e),{},{is_use:a[e.id]}):e}))),e.next=5,n(t);case 5:S(!1);case 6:case"end":return e.stop()}}),e)}))),children:(0,g.jsxs)("div",{className:ZB,children:[(0,g.jsx)(YB,{studentNames:null==o?void 0:o.student_names,total:null==o?void 0:o.student_count}),"学习过该实践项目。",u?(0,g.jsxs)(Sc.Z,{form:p,preserve:!1,children:[(0,g.jsx)("h3",{children:"当前实训不可复制,已经检测到以下课堂存在该实训,同一实训在课堂中重复使用时,会导致成绩互相影响,请确认是否继续使用"}),null==_?void 0:_.map((function(e){return(0,g.jsxs)(c.Fragment,{children:[(0,g.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,g.jsx)(Sc.Z.Item,{name:e.id,initialValue:1,children:(0,g.jsxs)(ih.ZP.Group,{className:ZB,children:[(0,g.jsx)(ih.ZP,{value:1,style:{color:"#464f66"},children:"继续使用"}),(0,g.jsx)(ih.ZP,{value:0,style:{color:"#464f66"},children:"不使用"})]})})]},e.id)}))]}):(0,g.jsxs)("div",{children:["该项目不支持复制,若确认继续发送,",(0,g.jsx)("span",{className:VB,children:"当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"}),"(如果不想清空学生之前的挑战记录,建议参照该实践项目的内容自行创建一个新的项目,或者尝试联系项目创建人开放本项目的复制权限)。"]})]})})})},QB=function(e){var t=Sc.Z.useForm(),n=l()(t,1)[0],i=(0,c.useState)(!1),o=l()(i,2),s=o[0],u=o[1],h=e.onCancel,d=e.onOk,p=e.visible,f=e.inPaper,m=void 0!==f&&f,v=e.renderData,b=e.type,w=e.isMultipleCourse,x=void 0!==w&&w,S=e.position,k=(0,c.useMemo)((function(){return m?[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:GB,render:function(e,t){return(0,g.jsx)("a",{href:"/shixuns/".concat(t.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,t){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?t.stage_shixun_id:t.shixun_course_id||t.id),"is_copy"],initialValue:1,children:(0,g.jsxs)(ih.ZP.Group,{children:[(0,g.jsx)(ih.ZP,{value:1,children:"是"}),(0,g.jsx)(ih.ZP,{value:0,children:"否"})]})}),(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_use"],hidden:!0,initialValue:1,children:(0,g.jsx)(kc.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:GB,render:function(e,t){return(0,g.jsx)("a",{href:"/shixuns/".concat(t.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,t){return(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?t.stage_shixun_id:t.shixun_course_id||t.id),"is_use"],initialValue:1,children:(0,g.jsxs)(ih.ZP.Group,{children:[(0,g.jsx)(ih.ZP,{value:1,children:"是"}),(0,g.jsx)(ih.ZP,{value:0,children:"否"})]})})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,t){return(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?t.stage_shixun_id:t.shixun_course_id||t.id),"is_copy"],initialValue:1,children:(0,g.jsxs)(ih.ZP.Group,{children:[(0,g.jsx)(ih.ZP,{value:1,children:"是"}),(0,g.jsx)(ih.ZP,{value:0,children:"否"})]})})}}]}),[m]),_=(0,c.useMemo)((function(){return m?[{title:"实践项目名称",dataIndex:"name",width:424,className:GB,align:"center",ellipsis:!0,render:function(e,t){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("a",{href:"/shixuns/".concat(t.identifier,"/challenges"),target:"_blank",children:e}),(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_copy"],hidden:!0,initialValue:0,children:(0,g.jsx)(kc.Z,{type:"hidden"})}),(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_use"],hidden:!0,initialValue:1,children:(0,g.jsx)(kc.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,className:GB,ellipsis:!0,align:"center",render:function(e,t){return(0,g.jsx)("a",{href:"/shixuns/".concat(t.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,t){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_use"],initialValue:0,children:(0,g.jsxs)(ih.ZP.Group,{children:[(0,g.jsx)(ih.ZP,{value:1,children:"是"}),(0,g.jsx)(ih.ZP,{value:0,children:"否"})]})}),(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_copy"],hidden:!0,initialValue:0,children:(0,g.jsx)(kc.Z,{type:"hidden"})})]})}}]}),[m]);if(x){var C={title:"课堂名称",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:GB,render:function(e,t){return(0,g.jsx)("a",{href:"/classrooms/".concat(t.course_id),children:e})}};k=[C].concat(y()(k)),_=[C].concat(y()(_))}var P=(0,c.useMemo)((function(){return function(e){var t=e.used,n=e.copy,i=e.canNotCopy,r=e.studentNames,o=e.studentCount,a=e.inPaper,s=e.is_random,l=void 0!==s&&s,c=e.position,u=(void 0===c?"":c)||(a?"试卷":"课程");return(0,g.jsxs)("span",{children:[(0,g.jsx)(YB,{studentNames:r,total:o}),"学习过",u,"中的",(0,g.jsx)("span",{className:VB,children:t}),"个项目,",n>0&&i>0?(0,g.jsxs)(g.Fragment,{children:["其中",(0,g.jsx)("span",{className:VB,children:n}),"个项目支持复制,",(0,g.jsx)("span",{className:VB,children:i}),"个项目不支持复制"]}):n>0&&0===i?(0,g.jsxs)(g.Fragment,{children:["其中",(0,g.jsx)("span",{className:VB,children:n}),"个项目支持复制"]}):0===n&&i>0?(0,g.jsxs)(g.Fragment,{children:["其中",(0,g.jsx)("span",{className:VB,children:i}),"个项目不支持复制"]}):void 0,"。请选择",l?"":"是否继续使用和","是否复制为新项目发送至课堂中?"]})}({used:null==v?void 0:v.repeat_shixun_num,copy:null==v?void 0:v.can_copy_num,canNotCopy:null==v?void 0:v.no_copy_num,studentNames:null==v?void 0:v.student_names,studentCount:null==v?void 0:v.student_count,is_random:null==v?void 0:v.is_random,inPaper:m,position:S})}),[v,m,S]);return(0,g.jsx)(hh.Z,{title:"提示",centered:!0,open:p,confirmLoading:s,onOk:a()(r()().mark((function e(){var t,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),t=n.getFieldsValue(),i=Object.keys(t).map((function(e){return{id:parseInt(e.split("_")[0]),course_id:parseInt(e.split("_")[1]),is_use:t[e].is_use,is_copy:t[e].is_copy}})),e.next=5,d(i);case 5:u(!1);case 6:case"end":return e.stop()}}),e)}))),onCancel:h,width:880,okText:"确认",className:UB,destroyOnClose:!0,children:(0,g.jsxs)(Sc.Z,{form:n,preserve:!1,children:[(0,g.jsx)("div",{className:$B,children:P}),(0,g.jsxs)("div",{style:{marginBottom:30},children:[(0,g.jsx)("div",{style:{marginBottom:20},children:"* 说明"}),(0,g.jsx)("div",{style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,g.jsx)("div",{className:VB,children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]}),(null==v?void 0:v.can_copy_num)>0&&(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:HB,children:"支持复制的项目"}),(0,g.jsx)(xA.Z,{columns:k,className:KB,dataSource:null==v?void 0:v.can_copy_list,rowKey:"subject"===b?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})]}),(null==v?void 0:v.no_copy_num)>0&&(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:HB,children:"不支持复制的项目"}),(0,g.jsx)(xA.Z,{columns:_,className:KB,dataSource:null==v?void 0:v.no_copy_list,rowKey:"subject"===b?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})]}),(null==v?void 0:v.no_use_list.length)>0&&(null==v?void 0:v.no_use_list.map((function(e){return(0,g.jsxs)("div",{children:[(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],hidden:!0,initialValue:0,children:(0,g.jsx)(kc.Z,{type:"hidden"})}),(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],hidden:!0,initialValue:1,children:(0,g.jsx)(kc.Z,{type:"hidden"})})]},"subject"===b?e.stage_shixun_id:e.shixun_course_id||e.id)})))]})})},JB=function(e){return"multiple"===e.modalType?(0,g.jsx)(QB,h()({},e)):(0,g.jsx)(XB,h()({},e))},eR=n(12554),tR=["classroomList","loading","dispatch","shixunsList"],nR=(kc.Z.Search,[{id:"type",name:"来源",children:[{name:"全部",id:"all",type:"type"},{name:"我的",id:"mine",type:"type"}]},{id:"diff",name:"难度",children:[{name:"全部",id:"",type:"diff"},{name:"初级",id:1,type:"diff"},{name:"中级",id:2,type:"diff"},{name:"中高级",id:3,type:"diff"},{name:"高级",id:4,type:"diff"}]}]),iR=(0,d.connect)((function(e){return{classroomList:e.classroomList,shixunsList:e.shixunsList,loading:e.loading.effects}}))((function(e){var t,n,i=e.classroomList,o=(e.loading,e.dispatch),s=e.shixunsList,u=Bl()(e,tR),p=(0,c.useState)(h()({},(0,d.useParams)())),f=l()(p,2),m=f[0],v=(f[1],i.shixunLists),b=i.shixunAiRecommendLists,w=(0,c.useState)(""),x=l()(w,2),S=x[0],k=x[1],_=(0,c.useState)({}),C=l()(_,2),P=C[0],E=C[1],M=(0,c.useState)([]),L=l()(M,2),A=L[0],T=L[1],D=(0,c.useState)(!1),N=l()(D,2),I=N[0],B=N[1],R=[{name:"最新",id:"created_at"},{name:"最热",id:"myshixuns_count"}].filter((function(e){return!!e})),O=(0,c.useState)({page:1,type:"mine",diff:"",status:"published",order:"desc",not_open:!0,limit:20,sort:"myshixuns_count",no_jupyter:1,group_id:null}),F=l()(O,2),z=F[0],j=F[1];(0,c.useEffect)((function(){$()}),[m.coursesId,z]),(0,c.useEffect)((function(){"新增赛题"===i.actionTabs.key&&(k(""),j({page:1,type:"mine",diff:"",status:"published",order:"desc",not_open:!0,limit:20,sort:"myshixuns_count",no_jupyter:1,group_id:null})),o({type:"shixunsList/getMenus",payload:{}})}),[i.actionTabs.key]),(0,c.useEffect)((function(){(null!=v&&v.shixun_list||null!=b&&b.shixun_list)&&E("recommend"===z.sort?b:v)}),[v,b]);var $=function(){var e=a()(r()().mark((function e(){var t,n,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(B(!0),t=h()({},z),"recommend"===z.sort&&(t.sort="myshixuns_count"),"recommend"!==z.sort){e.next=8;break}return e.next=6,o({type:"classroomList/getShixunAiRecommendLists",payload:h()(h()({},t),{},{course_id:m.coursesId})});case 6:e.next=11;break;case 8:return n=h()({},t),e.next=11,o({type:"classroomList/getShixunLists",payload:n});case 11:return e.next=13,(0,pd.ZP)("/api/users/user_setting_groups.json",{method:"get",params:{type:"Shixun"}});case 13:i=e.sent,T([{id:null,name:"全部"},{id:-1,name:"未加入目录"}].concat(y()((null==i?void 0:i.groups)||[]))),k(""),B(!1);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if("选用实践课程"!==i.actionTabs.key){var H=function(){var e=(0,c.useState)(!1),t=l()(e,2),n=t[0],i=t[1],o=(0,c.useState)(),s=l()(o,2),u=s[0],h=s[1],d=function(){var e=a()(r()().mark((function e(t){var n,o,a,s,l,c;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.isImportMultipleCourse,o=void 0!==n&&n,a=Bl()(t,qB),console.log(t),e.t0=null==t?void 0:t.result,e.t0){e.next=7;break}return e.next=6,(0,WB.Tr)(a);case 6:e.t0=e.sent;case 7:if(!("status"in(s=e.t0))){e.next=10;break}return e.abrupt("return",!1);case 10:if(!o){e.next=17;break}if(c=null==s||null===(l=s.course_data_list)||void 0===l?void 0:l.some((function(e){return e.is_show})),!c){e.next=16;break}return h(s),i(!0),e.abrupt("return",!0);case 16:return e.abrupt("return",s.course_data_list||[]);case 17:if(0!==s.student_count){e.next=19;break}return e.abrupt("return",!1);case 19:return h(s),i(!0),e.abrupt("return",!0);case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return[n,function(){return i(!1)},u,d]}(),Z=l()(H,4),K=Z[0],G=Z[1],U=Z[2],V=(Z[3],function(){var e=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,$L.su)({id:null==u?void 0:u.competitionId,shixun_ids:t.map((function(e){return e.id}))}).then((function(e){0==(null==e?void 0:e.status)?(ec.ZP.success("添加成功"),o({type:"classroomList/setActionTabs",payload:{}}),o({type:"competitions/getHeader",payload:{identifier:null==u?void 0:u.competitionId}}),null==u||u.queryQuetions(!0)):ec.ZP.error(null==e?void 0:e.message)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),W=(0,c.useState)(!1),q=l()(W,2),Y=q[0],X=q[1];return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(wB,{title:"选用实践项目",placement:"bottom",height:"100%",closable:!0,open:"新增赛题"===i.actionTabs.key,rootClassName:CB,destroyOnClose:!0,onClose:function(){o({type:"classroomList/setActionTabs",payload:{key:""}})},footer:(0,g.jsxs)("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,g.jsx)(Ml.ZP,{size:"middle",onClick:function(){o({type:"classroomList/setActionTabs",payload:{}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},children:"取消"}),(0,g.jsx)(Ml.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",onClick:a()(r()().mark((function e(){var t,n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!S){e.next=8;break}return X(!0),n=null==P||null===(t=P.shixun_list)||void 0===t?void 0:t.filter((function(e){return S.includes(e.identifier)})).map((function(e){return{id:e.id,is_copy:0,is_use:1}})),e.next=5,V(n);case 5:X(!1),e.next=9;break;case 8:ec.ZP.error("请选择实践项目");case 9:case"end":return e.stop()}}),e)}))),type:"primary",loading:Y,children:"确定"})]}),children:[(0,g.jsx)("section",{className:"tc",children:(0,g.jsx)(jB,{onChange:function(e){null!=e&&e.keyword.trim()&&(0,eR.tk)({name:null==e?void 0:e.keyword.trim(),copywriting:null==e?void 0:e.keyword.trim(),position:"Shixun"}),j(h()(h()({},z),{},{keyword:null==e?void 0:e.keyword.trim(),schools:null==e?void 0:e.schools.trim(),creator:null==e?void 0:e.creator.trim(),page:1}))}})}),(0,g.jsx)("section",{className:"edu-container",children:(0,g.jsx)(mh.Z,{spinning:I,children:(0,g.jsxs)("aside",{children:[nR.map((function(e,t){var n;return 0!==t?null:(0,g.jsxs)("ul",{className:PB,children:[(0,g.jsx)("li",{children:e.name}),null==e||null===(n=e.children)||void 0===n?void 0:n.map((function(t,n){return(0,g.jsx)("li",{className:z[e.id]==t.id?EB:"",onClick:function(){z[e.id]=t.id,z.page=1,j(h()({},z))},children:(0,g.jsx)("strong",{children:t.name})},n)}))]},t)})),(0,g.jsxs)("ul",{className:PB,children:[(0,g.jsx)("li",{children:"方向"}),(0,g.jsx)("li",{className:null!=z&&z.discipline_id?"":EB,onClick:function(){delete z.tag_level,delete z.sub_discipline_id,delete z.discipline_id,z.page=1,j(h()({},z))},children:(0,g.jsx)("strong",{children:"全部"})}),s.menus&&s.menus.map((function(e,t){return(0,g.jsxs)("li",{className:(null==z?void 0:z.discipline_id)==e.id?EB:"",children:[(0,g.jsx)("strong",{onClick:function(){z.tag_level=1,z.discipline_id=e.id,delete z.sub_discipline_id,z.page=1,j(h()({},z))},children:e.name}),(0,g.jsx)("div",{children:e.sub_repertoires.map((function(t,n){return(0,g.jsxs)("div",{className:"mt5",children:[(0,g.jsx)("div",{className:(null==z?void 0:z.sub_discipline_id)==t.id&&2===z.tag_level?"".concat(MB," ").concat(LB):LB,onClick:function(){z.tag_level=2,z.discipline_id=e.id,z.sub_discipline_id=t.id,j(h()({},z))},children:t.name}),(0,g.jsx)("ul",{className:"mt5",children:t.tags&&t.tags.map((function(t,n){return(0,g.jsx)("li",{className:z.sub_discipline_id==t.id&&3===z.tag_level?MB:"",onClick:function(){z.tag_level=3,z.discipline_id=e.id,z.sub_discipline_id=t.id,j(h()({},z))},children:t.name},n)}))})]},n)}))})]},t)}))]}),"mine"===z.type&&(0,g.jsxs)("ul",{className:PB,children:[(0,g.jsx)("li",{children:"目录"}),null==A?void 0:A.map((function(e,t){return(0,g.jsx)("li",{className:z.group_id==e.id?EB:"",onClick:function(){z.group_id=e.id,z.page=1,j(h()({},z))},children:(0,g.jsx)("strong",{children:e.name})},t)}))]}),nR.map((function(e,t){var n;return 1!==t?null:(0,g.jsxs)("ul",{className:PB,children:[(0,g.jsx)("li",{children:e.name}),null==e||null===(n=e.children)||void 0===n?void 0:n.map((function(t,n){return(0,g.jsx)("li",{className:z[e.id]==t.id?EB:"",onClick:function(){z[e.id]=t.id,j(h()({},z))},children:(0,g.jsx)("strong",{children:t.name})},n)}))]},t)})),"mine"==(null==z?void 0:z.type)&&(0,g.jsxs)("ul",{className:PB,children:[(0,g.jsx)("li",{children:"状态"}),(0,g.jsx)("li",{className:0==z.not_open?EB:"",onClick:function(){z.not_open=!1,z.page=1,j(h()({},z))},children:(0,g.jsx)("strong",{children:"公开"})}),(0,g.jsx)("li",{className:1==z.not_open?EB:"",onClick:function(){z.not_open=!0,z.page=1,j(h()({},z))},children:(0,g.jsx)("strong",{children:"未公开"})})]}),(0,g.jsxs)(dh.Z,{align:"middle",children:[(0,g.jsx)(bd.Z,{flex:"1",className:IB,children:R.map((function(e,t){return(0,g.jsx)(Ml.ZP,{className:"mr20",type:z.sort===e.id?"primary":"default",onClick:function(){z.sort=e.id,j(h()({},z))},children:e.name},t)}))}),(0,g.jsx)(bd.Z,{className:"c-grey-999",children:(0,g.jsx)("div",{className:RB,children:(0,g.jsxs)("ul",{children:[(0,g.jsxs)("li",{children:["已选",(0,g.jsx)("span",{className:"c-blue",children:S.length>0?1:0}),"个"]}),(0,g.jsxs)("li",{children:["共",(0,g.jsx)("span",{className:"c-blue",children:P.shixuns_count}),"个"]}),(0,g.jsxs)("li",{className:"current",onClick:function(){z.order="asc"===z.order?"desc":"asc",j(h()({},z))},children:["学习人数",(0,g.jsxs)("p",{className:"edu-sorter current ".concat(z.order),children:[(0,g.jsx)("span",{className:"iconfont icon-sanjiaoxing-up"}),(0,g.jsx)("span",{className:"iconfont icon-sanjiaoxing-down"})]})]})]})})})]}),0===(null==P||null===(t=P.shixun_list)||void 0===t?void 0:t.length)&&(0,g.jsx)(gc,{}),(0,g.jsx)(ih.ZP.Group,{style:{display:"block"},value:S,onChange:function(e){k(e.target.value)},children:null==P||null===(n=P.shixun_list)||void 0===n?void 0:n.map((function(e,t){var n,i;return(0,g.jsx)("div",{className:AB,style:{cursor:"auto"},children:(0,g.jsx)(ih.ZP,{value:null==e?void 0:e.identifier,style:{marginTop:"3px"},disabled:null==e?void 0:e.need_authorize,children:(0,g.jsxs)("div",{className:TB,children:[(0,g.jsx)("div",{className:DB,children:(0,g.jsxs)("div",{className:NB,children:[(0,g.jsx)(d.Link,{to:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:(0,g.jsx)("strong",{className:"font16",dangerouslySetInnerHTML:{__html:e.title}})}),(null==e?void 0:e.need_authorize)&&(0,g.jsx)("span",{onClick:function(){(0,FB.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),(0,Sd.Ny)()&&1===(null==e?void 0:e.mark_status)&&(0,g.jsx)(tc.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,g.jsx)("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10",children:"正常"})}),(0,Sd.Ny)()&&2===(null==e?void 0:e.mark_status)&&(0,g.jsx)(tc.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,g.jsx)("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10",children:"需完善"})}),(0,Sd.Ny)()&&3===(null==e?void 0:e.mark_status)&&(0,g.jsx)(tc.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,g.jsx)("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10",children:"无法使用"})}),(0,g.jsx)(Ml.ZP,{ghost:!0,href:"/shixuns/".concat(e.identifier,"/challenges"),type:"primary",target:"_blank",className:OB,children:"体验实训"})]})}),(0,g.jsx)("div",{className:"flex-wrp mt10 font14 c-light-black",children:(0,g.jsx)("span",{className:BB,dangerouslySetInnerHTML:{__html:e.description}})}),(0,g.jsx)("div",{className:" mt15",children:e.challenge_names.map((function(e,t){return(0,g.jsxs)("span",{className:"mr30",children:["第",t+1,"关 ",e," "]},t)}))}),(0,g.jsx)(_B,{dashed:!0}),(0,g.jsxs)("div",{className:"c-light-black mt20",children:[null!=e&&null!==(n=e.content)&&void 0!==n&&n.author_name?(0,g.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e||null===(i=e.content)||void 0===i||null===(i=i.author_name)||void 0===i?void 0:i[0]}}):(0,g.jsx)("span",{children:e.author_name}),(0,g.jsx)("span",{className:"ml15 mr15",children:"|"}),e.author_school_name&&(0,g.jsxs)(c.Fragment,{children:[(0,g.jsx)("span",{children:e.author_school_name}),(0,g.jsx)("span",{className:"ml15 mr15",children:"|"})]}),(0,g.jsxs)("span",{children:["难度系数 ",e.level]}),(0,g.jsx)("span",{className:"ml15 mr15",children:"|"}),(0,g.jsx)("span",{children:"学习人数 "}),(0,g.jsx)("span",{children:e.study_count})]})]})})},t)}))})]})})}),(0,g.jsx)("div",{className:"tc mt20",children:(0,g.jsx)(qL.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:z.page||1,showQuickJumper:!0,total:null==P?void 0:P.shixuns_count,onChange:function(e){z.page=e,j(h()({},z))}})})]},"bottom"),(0,g.jsx)(JB,{visible:K,onCancel:G,renderData:U,inPaper:!1,onOk:V,modalType:"multiple",type:"shixun",position:"选中实训"})]})}})),rR=["competitions","shixunHomeworks","globalSetting","dispatch","user"],oR=kc.Z.TextArea,aR=function(e){return null!=e&&e.includes("已截止")?(0,g.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #FFC4C4",color:"#E53333",fontSize:12,marginRight:8},children:"已截止"}):null!=e&&e.includes("进行中")?(0,g.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #C4D2F1",color:"#3061D0",fontSize:12,marginRight:8},children:"进行中"}):null!=e&&e.includes("未发布")?(0,g.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #DADBDE",color:"#999999",fontSize:12,marginRight:8},children:"未发布"}):null!=e&&e.includes("提交中")?(0,g.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #B1F0E1",color:"#00B187",fontSize:12,marginRight:8},children:"提交中"}):null!=e&&e.includes("已结束")?(0,g.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #FFC4C4",color:"#E53333",fontSize:12,marginRight:8},children:"已结束"}):null!=e&&e.includes("考试中")?(0,g.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #C4D2F1",color:"#3061D0",fontSize:12,marginRight:8},children:"考试中"}):null!=e&&e.includes("未开始")?(0,g.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #DADBDE",color:"#999999",fontSize:12,marginRight:8},children:"未开始"}):null!=e&&e.includes("补交中")?(0,g.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid rgba(255,157,24,0.3)",color:"#FF9D18",fontSize:12,marginRight:8},children:"补交中"}):void 0},sR=(0,d.connect)((function(e){return{competitions:e.competitions,shixunHomeworks:e.shixunHomeworks,globalSetting:e.globalSetting,user:e.user}}))((function(e){var t,n,i,o,s=e.competitions,u=(e.shixunHomeworks,e.globalSetting,e.dispatch),p=e.user,f=Bl()(e,rR),m=Sc.Z.useForm(),v=l()(m,1)[0],b=Sc.Z.useForm(),w=l()(b,1)[0],x=(0,c.useState)(!0),S=l()(x,2),k=S[0],_=S[1],C=(0,c.useState)([]),P=l()(C,2),E=P[0],M=P[1],L=(0,c.useState)(!1),A=l()(L,2),T=A[0],D=(A[1],(0,c.useState)([])),N=l()(D,2),I=N[0],B=N[1],R=s.Header,O=(0,c.useState)(1),F=l()(O,2),z=(F[0],F[1],(0,c.useState)({})),j=l()(z,2),$=j[0],H=j[1],Z=(0,d.useParams)(),K=Z.identifier,G=void 0===K?null==f?void 0:f.competitionId:K,U=(Z.enter,(0,c.useState)({})),V=l()(U,2),W=V[0],q=V[1],Y=(0,c.useState)([]),X=l()(Y,2),Q=X[0],J=X[1],ee=(0,c.useState)(""),te=l()(ee,2),ne=te[0],ie=te[1],re=(0,c.useState)([]),oe=l()(re,2),ae=oe[0],se=oe[1],le=(0,c.useState)(!1),ce=l()(le,2),ue=ce[0],he=ce[1],de=(0,c.useState)([{type:"practice",name:"课堂实验",open:!1,url:"shixun_homework"},{type:"normal",name:"图文作业",open:!1,url:"common_homework"},{type:"group",name:"分组作业",open:!1,url:"group_homework"},{type:"hack",name:"编程作业",open:!1,url:"program_homework"},{type:"exercise",name:"在线考试",open:!1,url:"exercise"}]),pe=l()(de,2),fe=pe[0],ge=pe[1],me=(0,c.useState)({input:""}),ve=l()(me,2),ye=ve[0],be=ve[1];function we(){return(we=a()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pd.ZP)("/api/competitions/".concat(null==f?void 0:f.competitionId,"/get_course_settings.json"),{method:"get"});case 2:0===(null==(t=e.sent)?void 0:t.status)&&q(t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xe(){return Se.apply(this,arguments)}function Se(){return(Se=a()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null==f||f.loadingFunction(!0),e.next=3,(0,pd.ZP)("/api/users/".concat(p.userInfo.login,"/courses.json"),{method:"get",params:{category:"manage",page:1,per_page:1e3,username:p.userInfo.login,no_limit_per_page:1}});case 3:t=e.sent,null==f||f.loadingFunction(!1),J(null==t?void 0:t.courses);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,c.useEffect)((function(){1===R.mode?(w.resetFields(),_e(!0)):2===R.mode?(w.resetFields(),function(){we.apply(this,arguments)}()):function(){Ae.apply(this,arguments)}()}),[R]),(0,c.useEffect)((function(){p.userInfo.login&&xe()}),[p]);var ke=function(e){var t,n=e.total_score,i=e.difficulty_level_sort,r=null===(t=e.challenge_settings)||void 0===t?void 0:t.filter((function(e){return e.checked})).length;if(r){var o,a=n/e.challenge_settings.filter((function(e){return e.checked})).map((function(e){return"desc"===i?e.challenge_exp_desc:e.challenge_exp})).reduce((function(e,t){return e+t})),s=0,l=0;switch(e.score_setting){case 0:var c=parseFloat((n/r).toFixed(1));e.challenge_settings.map((function(e,t){e.checked?(s=t,e.score=c>0?c:0):e.score=0})),o=(n-c*(r-1)).toFixed(1),e.challenge_settings[s].score=o>0?o:0;break;case 1:e.challenge_settings.map((function(e,t){e.checked?(s=t,l+=Number((Math.round(("desc"===i?e.challenge_exp_desc:e.challenge_exp)*a*10)/10).toFixed(1)),e.score=(Math.round(("desc"===i?e.challenge_exp_desc:e.challenge_exp)*a*10)/10).toFixed(1)):e.score=0}));var u=e.challenge_settings[s].score;o=(n-l+Number(u)).toFixed(1),e.challenge_settings[s].score=o>0?o:0}}else e.challenge_settings.map((function(e,t){e.challenge_score=0}))},_e=function(e){(0,$L.lm)(null==f?void 0:f.competitionId).then((function(t){if(0==(null==t?void 0:t.status)){if(null!=t&&t.data){var n=null==t?void 0:t.data;if(e){for(var i in n)n[i].show_info=!1;B(n)}else for(var r in I)n[r].show_info=I[r].show_info;M(n)}else M([]);null==f||f.loadingFunction(!1)}else ec.ZP.error(null==t?void 0:t.message)}))},Ce=function(e,t){var n=E;for(var i in n)n[i].id==e.id&&("open"==t?n[i].show_info=!0:"close"==t&&(n[i].show_info=!1));M(y()(n)),B(y()(n))},Pe=function(){if(function(e){var t=[];for(var n in e){var i,r,o=null===(i=e[n])||void 0===i||null===(i=i.challenge_settings)||void 0===i?void 0:i.reduce((function(e,t){return e+Number(t.score)}),0);(null==o?void 0:o.toFixed(10))!==(null===(r=e[n])||void 0===r||null===(r=r.total_score)||void 0===r?void 0:r.toFixed(10))&&t.push("赛题".concat(Number(n)+1,"的关卡任务总分必须等于总分值:").concat(e[n].total_score,"分\n"))}return!(t.length>0&&(ec.ZP.warning(t),1))}(E)){for(var e in E){var t,n;if(E[e].shixun_id=null===(t=E[e])||void 0===t||null===(t=t.challenge_settings[0])||void 0===t?void 0:t.shixun_id,(null===(n=E[e])||void 0===n||null===(n=n.challenge_settings)||void 0===n?void 0:n.length)>0)for(var i in null===(r=E[e])||void 0===r?void 0:r.challenge_settings){var r,o;E[e].challenge_settings[i].challenge_score=null===(o=E[e])||void 0===o?void 0:o.challenge_settings[i].score}}(0,$L.JM)({id:null==f?void 0:f.competitionId,shixuns:E}).then((function(e){0==(null==e?void 0:e.status)?(ec.ZP.success("更改成功"),_e(!1)):ec.ZP.error(null==e?void 0:e.message)}))}};function Ee(e){return Me.apply(this,arguments)}function Me(){return Me=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null==f||f.loadingFunction(!0),e.next=3,(0,pd.ZP)("/api/competitions/".concat(null==f?void 0:f.competitionId,"/switch_mode.json"),{method:"post",body:{mode:t}});case 3:return n=e.sent,null==f||f.loadingFunction(!1),0===(null==n?void 0:n.status)&&u({type:"competitions/getHeader",payload:{identifier:null==f?void 0:f.competitionId}}),e.abrupt("return",!0);case 7:case"end":return e.stop()}}),e)}))),Me.apply(this,arguments)}function Le(){return(Le=a()(r()().mark((function e(t){var n,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return he(!0),e.next=3,(0,pd.ZP)("/api/competitions/get_competition_course_homework.json",{method:"get",params:{course_id:W.course_id,competition_course_game_id:t,id:null==f?void 0:f.competitionId}});case 3:n=e.sent,he(!1),0===(null==n?void 0:n.status)?(ie(t),se(null==n||null===(i=n.data)||void 0===i?void 0:i.list)):ec.ZP.info("当前课堂暂无数据,请更换绑定课堂或在当前课堂新增作业或考试");case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ae(){return(Ae=a()(r()().mark((function e(){var t,n,i,o,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pd.ZP)("/api/competitions/".concat(null==f?void 0:f.competitionId,"/get_work_settings.json0"),{method:"get"});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(_(null==t?void 0:t.data.is_new),w.setFieldsValue(h()(h()({},(null==t?void 0:t.data)||{}),{},{evaluation_setting:null==t||null===(n=t.data)||void 0===n?void 0:n.evaluation_setting,commit_num:null==t||null===(i=t.data)||void 0===i?void 0:i.commit_num,evaluation_time:null==t||null===(o=t.data)||void 0===o?void 0:o.evaluation_time,evaluation_script:null==t||null===(a=t.data)||void 0===a?void 0:a.evaluation_script})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Te=function(e){var t=e.getFieldsValue();for(var n in console.log(t),t)if(void 0!==t[n])return!0;return!1};return(0,g.jsxs)("div",{className:yI,children:[!(null!=f&&f.isKd)&&(0,g.jsxs)("div",{style:{padding:30},children:[(0,g.jsx)("div",{style:{marginBottom:30,fontSize:14,fontWeight:600,color:"#232B40"},children:"模式设置"}),(0,g.jsxs)("div",{style:{marginLeft:42},children:[(0,g.jsx)("span",{children:"竞赛模式"}),(0,g.jsx)(ih.ZP.Group,{disabled:"progressing"===R.competition_status||"ended"===R.competition_status||"apply"===(null==R?void 0:R.competition_status),value:R.mode,onChange:function(){var e=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null==W||null===(n=W.competition_course_games)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.homeworks)||void 0===n?void 0:n.length)>0||(null==E?void 0:E.length)>0||Te(w))){e.next=3;break}return hh.Z.confirm({icon:!1,title:"提示",content:"切换模式后,当前已经设置的赛题数据将会被清理,且不可撤回,请确认是否进行切换",onOk:function(){var e=a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee(t.target.value);case 2:e.sent&&xe();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),e.abrupt("return");case 3:return e.next=5,Ee(t.target.value);case 5:e.sent&&xe();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),style:{marginLeft:10,fontSize:14},children:(0,g.jsxs)(Kc.Z,{direction:"vertical",children:[(0,g.jsxs)(ih.ZP,{value:1,children:["实训模式",(0,g.jsx)("span",{style:{color:"#9096A3",marginLeft:10},children:"挑战实训,系统评审"})]}),(0,g.jsxs)(ih.ZP,{value:2,children:["课堂模式",(0,g.jsx)("span",{style:{color:"#9096A3",marginLeft:10},children:"参赛者需要进入课堂完成作业,将选择计入成绩的作业生成排行榜"})]}),(0,g.jsxs)(ih.ZP,{value:3,disabled:!(0,Sd.Ny)()&&(null==R?void 0:R.is_manager)||"progressing"===R.competition_status||"apply"===(null==R?void 0:R.competition_status)||"ended"===R.competition_status,children:["作品模式",(0,g.jsx)("span",{style:{color:"#9096A3",marginLeft:10},children:"参赛者提交作品,系统评审"})]})]})})]})]}),1===R.mode&&(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:bI,style:{display:"flex",alignItems:"center"},children:[(0,g.jsxs)("div",{style:{flex:1},children:["赛题设置",(0,g.jsxs)("span",{style:{marginLeft:20,color:"#9096A3",fontSize:"12px",fontWeight:"normal"},children:["答题起止时间:",(0,g.jsxs)("span",{style:{margin:"0 5px",color:"#165DFF",fontSize:"12px",fontWeight:"normal"},children:[null==R?void 0:R.start_time,"~",null==R?void 0:R.end_time]}),((0,Sd.eB)()||(null==R||null===(t=R.permission)||void 0===t?void 0:t.editable))&&(0,g.jsxs)("a",{style:{marginLeft:10,color:"#165DFF",display:"inline-flex"},onClick:function(){u({type:"competitions/setActionTabs",payload:{key:"7"}})},children:[(0,g.jsx)("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF",marginRight:3}})," 编辑"]})]})]}),"progressing"!=(null==R?void 0:R.competition_status)&&"apply"!=(null==R?void 0:R.competition_status)&&"ended"!=(null==R?void 0:R.competition_status)&&(0,g.jsxs)("div",{className:wI,style:{top:"auto"},onClick:function(){u({type:"classroomList/setActionTabs",payload:{key:"新增赛题",params:""}})},children:[(0,g.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAF9JREFUOE9jZKAQMOLTb5B0voHhH8OBCwsMD+BSR9gABgaGC/MMG0YNIBAGBgnnHRiYGBwwAuo/oz1YjPH/QWyBCApccCyAowsbwGcANHpHo5GBgcZhAI1esvMCMTkdAHAwQhEikgNIAAAAAElFTkSuQmCC",className:xI}),"新增赛题"]})]}),(0,g.jsx)("div",{style:{marginTop:"25px"}}),E.map((function(e,t){var n,i,o;return(0,g.jsxs)("div",{className:SI,children:[(0,g.jsxs)("div",{className:kI,children:[(0,g.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAA0JJREFUSEullk2ITlEYx3/PufdlxAYrTKyUhcgkG2LQzMbGhkJMyUca32mMyVdoMrOgoSkTZXxEmY2NDU1RWChEdlaEsfBZihozj+597533vOeee+ctb93e+3HO83/O//k/HwKgF6hH6CagEWEGAWByruibQO6agJ+E9MgqTkS23Z/EYH95RcC0DMh4xiOnbOfS+8ghw15p4mIWsJtbBGyIvU5PlW60DbiGfeuj/enpA4YpsUpW8tgGFT3LJ0xCYxFVrjMu5f4wfGYSDbKcoRRUtBP1xsQ1UE3vo2TPiqow+EPwlOk0ymKGI1DR02gchwoVlXv7xPZ9idWxx4bBjLO2rYrNXmlmdxnwFDrmZR6l1fF7IttYFqv7Go8JWFqTokNapInroicsQFd1dtxSZ0KaZTsPYsAbNDHK/QytvvgKvymxVPRYAphS4YqjAvQdYVBaWWerTvsZwLAaw9QYOFWvTwOGQdGOJIa2V2Xw55ToQXjLRN7Kbr76Ejl9p9eYTsDc+DLsBxqqtFG2PyLa7gEsUxvFdqe0c7kIyP2mN9mOoQ+D+NQv2uZQWq1YJWSPtNFbC6j204rhYgzli7+JVHqoBtEYDsoRzhdSeoUDwLmCGhtXMtEDOZRmy9wcaee9D1T7mI3ybixmrh4sQYrucxLfXVxW3h/mMUXWM+IFvEPAF35hqMvUYydFRPcUxDBdHPJSjtNQSGkvL4BFXkotXYi2OjH0JX/IDTnJljjZu1jCCJ2EQEiHHORZ0lOvY9icW3USu6K7LMDqflbudVEihxymxD1GOYNhrVN772I4SsAahK5M8js1WnSHIxq7nlaqxWsC5sditxmoVJVRAt4gLBj7nlOXRbdZMRxvrPB1+Fp7aOKc6FaH0qKOkdeucpLcV9RFWxxKff0sW2eLhih/P01siG7JqPQ0M+mUk/yppZzlrdGr1PGDDoRjdqqIbnIAJ1Ivl/j4P2BjHeQcs4APtqpFN/LJmUUHEHqYkJywlGxP/6PHWt4FcdXZB6yzlD0kuj4ZE/Maryui8WbVvNGybP92RGl5EDbOIFyL4bzunqZPdU5/o8TC6BUx6AjdCI3xjFqkyqIT+1IqYAjhIZNpk718+AfZ8LVXyCfCsQAAAABJRU5ErkJggg==",className:_I}),(0,g.jsxs)("div",{className:CI,children:["赛题",t+1]}),(0,g.jsxs)("div",{className:PI,children:[(0,g.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAnZJREFUSEvtlk1IVFEUx39n3gwpUxKEM35QEU3QJlxYK8FNtWjhJqhFOH4UCBl9UCQVYdMmSLLAQkhJxRmKCipy2yKpTdEH7oSipKAZx00Uhc3MeyfupOGMPS0ZBgLf7t177v2d8z/n3nsEoDKsW23YB2xQ8JqxQn0CGeC9BTfjUXkhBpaBc4UCLLSPF85LIKyXFTYVAyjwxgDvF1pGN+eNvFIe1pFiRDfLWAYWXO3/TlKdkUD+VorFIhzzQI8qNSocydlUSJT66chMszKdoVeUnjLl2VeLVkfZ4Xo0XI6FinK7PcStSESc6iZdk1KG8oAXp4blaXmjhhCueJWueEyeGJtgs25Xh4MKK/LB8yIU+GIp3fGYvMouDmvAUc4gbJyz+G1ymOMiooEmjahSK/DDA1cTURnN3s8HdL2d5rQq1XOh84A+4dCnYflgjAKNWoPQoVCWs0g5m4zJWLBFtzg2F+bOeeBhfQMDd/eKHQyr34EbgN/14K8rZffLPklXNmu9rZxQxZMHe52MSWfWIZd72AMPJqNiQMbmukKVK9BvEZ4Yks+1ber7+J1WFRpyIvBxdHJA3gWatU4dTuXnyFLubQ4RfRyRjIlQhX5VVrkCRRj3WHQlBmXKGFW06DbH5piRVZTRZEwu7bmj1ugIvTmem9x76Y4P/sr92v1aNZ3mJBBaMIczk98QrpkqNP+zlWhZHE4MyURFk+6ylfY/5XUm9zuBNhVKFq3SHPmER1YJ/ekUZdj0e6DPZzGecuhUZXUOEAZ9Ds9TFo0odf96Dn/bm3IHrEK9mYvdNG6OLnl8Gbhk6VyLpuhNVNHbxKI3wtmnpIit/k8rJx6Q0AVqRgAAAABJRU5ErkJggg==",className:EI}),(0,g.jsx)(d.Link,{to:"/shixuns/".concat(null==e?void 0:e.shixun_identifier,"/challenges"),target:"_blank",children:(0,g.jsx)(tc.Z,{title:null==e||null===(n=e.shixun)||void 0===n?void 0:n.name,placement:"bottom",children:(0,g.jsx)("div",{className:MI,children:null==e||null===(i=e.shixun)||void 0===i?void 0:i.name})})})]}),(0,g.jsx)("div",{className:LI,onClick:function(){Ce(e,"open")},children:!(null!=e&&e.show_info)&&(0,g.jsxs)(g.Fragment,{children:["展开更多",(0,g.jsx)("i",{className:"iconfont icon-xiajiantou",style:{fontSize:"8px"}})]})}),"progressing"!=(null==R?void 0:R.competition_status)&&"apply"!=(null==R?void 0:R.competition_status)&&"ended"!=(null==R?void 0:R.competition_status)&&(0,g.jsx)("div",{className:AI,onClick:function(){var t,n;t=null==e?void 0:e.id,hh.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"删除提示",icon:null,content:"删除该赛题后,数据不可恢复,请确认是否删除?",onOk:(n=a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,$L.pS)({id:null==f?void 0:f.competitionId,data_id:t}).then((function(e){0==(null==e?void 0:e.status)?(ec.ZP.success("删除成功"),_e(!0),u({type:"competitions/getHeader",payload:{identifier:null==f?void 0:f.competitionId}})):ec.ZP.error(null==e?void 0:e.message)}));case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})})},children:"删除该赛题"})]}),(null==e?void 0:e.show_info)&&(0,g.jsxs)("div",{className:TI,children:[(0,g.jsxs)(Sc.Z,{form:v,labelCol:{flex:"70px"},children:[(0,g.jsxs)(Sc.Z.Item,{className:DI,label:"题目总分",colon:!1,children:[(0,g.jsx)(nh,{min:0,value:null==e?void 0:e.total_score,disabled:"progressing"==(null==R?void 0:R.competition_status)||"apply"===(null==R?void 0:R.competition_status)||"ended"==(null==R?void 0:R.competition_status),className:NI,onChange:function(t){e.total_score=t,H(Object.assign({},$)),ke(e)},onBlur:function(){Pe()}})," 分"]}),(0,g.jsx)(Sc.Z.Item,{className:II,label:" ",colon:!1,children:(0,g.jsx)(Sc.Z.Item,{className:II,label:"关卡分值",colon:!1,children:(0,g.jsxs)(ih.ZP.Group,{disabled:"progressing"==(null==R?void 0:R.competition_status)||"apply"===(null==R?void 0:R.competition_status)||"ended"==(null==R?void 0:R.competition_status),value:null==e?void 0:e.score_setting,onChange:function(t){e.score_setting=t.target.value,1!==t.target.value&&(e.difficulty_level_sort="asc"),H(Object.assign({},$)),ke(e)},onBlur:function(){Pe()},children:[(0,g.jsx)(ih.ZP,{value:0,children:"均分比例"}),(0,g.jsx)(ih.ZP,{value:1,children:"难易度"}),(0,g.jsx)(ih.ZP,{value:2,children:"自定义分值"})]})})}),null==e||null===(o=e.challenge_settings)||void 0===o?void 0:o.map((function(t,n){return(0,g.jsx)(Sc.Z.Item,{className:II,label:" ",colon:!1,children:(0,g.jsxs)("div",{style:{display:"flex"},children:[(0,g.jsx)("i",{className:"iconfont icon-shixunti",style:{color:"#165DFF",width:"14px",height:"14px",margin:"6px 15px 7px 0"}}),(0,g.jsxs)(Sc.Z.Item,{className:II,label:(0,g.jsx)(tc.Z,{title:null==t?void 0:t.subject,placement:"left",children:(0,g.jsx)("div",{className:BI,children:null==t?void 0:t.subject})}),colon:!1,children:[(0,g.jsx)(nh,{min:0,step:.1,value:null==t?void 0:t.score,disabled:T||2!==(null==e?void 0:e.score_setting),style:{width:"96px"},onChange:function(t){e.challenge_settings[n].score=t,H(h()({},$))},onBlur:function(){Pe()}}),(0,g.jsx)("span",{className:"ml10",children:"分"})]}),(0,g.jsx)("div",{className:"简单"==(null==t?void 0:t.difficulty)?RI:"中等"==(null==t?void 0:t.difficulty)?OI:FI,children:null==t?void 0:t.difficulty})]})},n)}))]}),(0,g.jsxs)("div",{className:zI,onClick:function(){Ce(e,"close")},children:["收起更多",(0,g.jsx)("i",{className:"iconfont icon-shangjiantou",style:{fontSize:"8px"}})]})]})]},t)})),0==(null==E?void 0:E.length)&&(0,g.jsx)(gc,{customText:"您还没有添加赛题,点击添加赛题"}),(0,g.jsx)(iR,{competitionId:null==f?void 0:f.competitionId,queryQuetions:_e})]}),2===R.mode&&(0,g.jsxs)("div",{style:{paddingLeft:78,paddingRight:30},children:[(0,g.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,g.jsx)("label",{style:{marginRight:10,width:50,textAlign:"end"},children:"课堂"}),(0,g.jsx)(Fc.default,{popupClassName:VI,showSearch:!0,filterOption:function(e,t){return-1!==t.key.toUpperCase().indexOf(e.toUpperCase())},disabled:"progressing"===R.competition_status||"apply"===(null==R?void 0:R.competition_status)||"ended"===R.competition_status,className:KI,onChange:function(){var e=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null==f||f.loadingFunction(!0),e.next=3,(0,pd.ZP)("/api/competitions/".concat(null==f?void 0:f.competitionId,"/course_select.json"),{method:"post",body:{course_id:t}});case 3:n=e.sent,null==f||f.loadingFunction(!1),0===(null==n?void 0:n.status)&&u({type:"competitions/getHeader",payload:{identifier:null==f?void 0:f.competitionId}});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),size:"large",style:{flex:1},value:[W.course_id||W.default_course_id],placeholder:"请选择需要计算成绩的课堂",children:null==Q?void 0:Q.map((function(e){return(0,g.jsx)(Fc.default.Option,{value:null==e?void 0:e.id,children:(0,g.jsxs)(dh.Z,{align:"middle",style:{padding:"0px 12px"},children:[(0,g.jsxs)(dh.Z,{align:"middle",style:{flex:1},children:[(0,g.jsx)(bd.Z,{children:(0,g.jsx)("div",{className:"mr20 font12",style:{lineHeight:"12px",padding:"4px 10px",borderRadius:13,color:e.is_end?"#E53333":"#3061D0",border:"1px solid ".concat(e.is_end?"#FFC4C4":"#C4D2F1")},children:e.is_end?"已结束":"进行中"})}),(0,g.jsx)(bd.Z,{style:{flex:1},children:(0,g.jsx)(tc.Z,{placement:"topLeft",title:null==e?void 0:e.name,overlayStyle:{maxWidth:430,zIndex:1e4},children:(0,g.jsx)(bd.Z,{style:{textOverflow:"ellipsis",overflow:"hidden",maxWidth:430},children:null==e?void 0:e.name})})})]}),(0,g.jsx)(bd.Z,{style:{color:"#9096A3"},children:null==e?void 0:e.created_at})]})},"".concat(null==e?void 0:e.name).concat(null==e?void 0:e.id))}))}),(0,g.jsx)("div",{className:wI,style:{position:"relative",justifyContent:"center",top:0,right:0,marginLeft:20,height:40,borderRadius:2,alignItems:"center"},onClick:function(){window.open(R.first_category_url)},children:"进入该课堂"})]}),R.course_is_end&&(0,g.jsx)("div",{style:{color:"red",marginLeft:60,marginTop:10},children:"选择已结束的课堂,则无法进行答题的任何操作"}),null==W||null===(n=W.competition_course_games)||void 0===n?void 0:n.map((function(e,t){var n;return(0,g.jsxs)("div",{style:{marginBottom:20},children:[(0,g.jsxs)("div",{style:{marginTop:20,display:"flex",alignItems:"center"},children:[(0,g.jsxs)("label",{style:{marginRight:10,width:50,textAlign:"end"},children:["赛道",t+1]}),(0,g.jsx)(kc.Z,{className:GI,value:e.name,onChange:function(t){e.name=t.target.value,q(h()({},W))},onBlur:function(){var t=a()(r()().mark((function t(n){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.target.value){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,(0,pd.ZP)("/api/competitions/".concat(null==f?void 0:f.competitionId,"/create_course_game.json"),{method:"post",body:{course_id:null==W?void 0:W.course_id,competition_course_game_id:e.competition_course_game_id,name:n.target.value}});case 4:0===t.sent.status&&u({type:"competitions/getHeader",payload:{identifier:null==f?void 0:f.competitionId}});case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),placeholder:"请输入赛道名称",style:{flex:1},maxLength:30,size:"large"}),(0,g.jsx)("i",{onClick:a()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null==W||null===(t=W.competition_course_games)||void 0===t?void 0:t.filter((function(e){return e.homeworks.length<=0})).length)>0)){e.next=3;break}return ec.ZP.info("请先完成上一个赛道的作业/考试的选择,只有上一个赛道中添加了作业/试卷才能新增赛道"),e.abrupt("return");case 3:return e.next=5,(0,pd.ZP)("/api/competitions/".concat(null==f?void 0:f.competitionId,"/create_course_game.json"),{method:"post",body:{course_id:null==W?void 0:W.course_id}});case 5:0===e.sent.status&&u({type:"competitions/getHeader",payload:{identifier:G}});case 7:case"end":return e.stop()}}),e)}))),style:{color:"#145DFF",marginLeft:15,cursor:"pointer"},className:"iconfont icon-tianjia2"}),0!==t&&(0,g.jsx)("i",{style:{marginLeft:10,cursor:"pointer"},onClick:function(){var t;hh.Z.confirm({icon:!1,title:"提示",content:"请确认是否删除该赛道,删除后,不可恢复。",onOk:(t=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,pd.ZP)("/api/competitions/".concat(G,"/delete_course_game.json"),{method:"delete",body:{competition_course_game_id:e.competition_course_game_id}});case 2:0===t.sent.status&&u({type:"competitions/getHeader",payload:{identifier:G}});case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})})},className:"".concat(ZI," iconfont icon-weishezhi")})]}),(0,g.jsxs)("div",{style:{marginTop:20,marginLeft:60},children:[(0,g.jsx)("span",{children:"计入成绩的作业/试卷"}),(0,g.jsx)(Ml.ZP,{loading:ue,onClick:function(){!function(e){Le.apply(this,arguments)}(e.competition_course_game_id)},style:{marginLeft:10,marginRight:20,background:"#3061D0",display:"inline-flex",height:30,alignItems:"center",justifyContent:"center",width:119,color:"#fff",borderRadius:2,cursor:"pointer",border:"none"},children:"选择作业/试卷"}),(0,g.jsx)("span",{style:{color:"#9096A3"},children:"为了满足竞赛的正常计分排行,请关联作业/试卷"})]}),e.homeworks.length>0?(0,g.jsx)("div",{style:{marginLeft:199,marginTop:10,padding:"30px 20px",background:"#F6F7F9"},children:null==e||null===(n=e.homeworks)||void 0===n?void 0:n.map((function(e,t){var n,i;return(0,g.jsxs)("div",{style:{display:"flex",marginTop:t>0&&20,height:20,alignItems:"center",justifyContent:"space-between"},children:[(0,g.jsx)("div",{style:{minWidth:68,height:24,display:"flex",alignItems:"center",justifyContent:"center",fontSize:12,background:"rgba(22,93,255,0.1)",color:"#3061D0",marginRight:20},children:null===(n=fe.find((function(t){return t.type===e.homework_type})))||void 0===n?void 0:n.name}),(0,g.jsx)(tc.Z,{title:(null==e||null===(i=e.name)||void 0===i?void 0:i.length)>6&&(null==e?void 0:e.name),placement:"topLeft",children:(0,g.jsx)("span",{onClick:function(){window.open("/classrooms/".concat(null==W?void 0:W.course_id,"/").concat(fe.find((function(t){return t.type===e.homework_type})).url,"/").concat(e.homework_id||e.exercise_id,"/detail"))},style:{width:"90%",color:"#3061D0",cursor:"pointer"},className:HI,children:null==e?void 0:e.name})}),(0,g.jsx)("i",{style:{marginLeft:10,cursor:"pointer"},onClick:function(){var t;hh.Z.confirm({icon:!1,title:"提示",content:"请确认是否删除该作业,删除后,不可恢复。",onOk:(t=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,pd.ZP)("/api/competitions/".concat(G,"/delete_course_homework.json"),{method:"delete",body:{competition_course_homework_id:e.competition_course_homework_id}});case 2:0===t.sent.status&&u({type:"competitions/getHeader",payload:{identifier:G}});case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})})},className:"".concat(ZI," iconfont icon-weishezhi")})]})}))}):(0,g.jsx)(gc,{})]})})),(0,g.jsx)(hh.Z,{open:ne,onCancel:function(){ie(""),he(!1)},width:850,title:"选择作业",className:UI,okButtonProps:{loading:ue},onOk:a()(r()().mark((function e(){var t,n,i,o,a,s,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null==ae||null===(t=ae.filter((function(e){return e.checked})))||void 0===t?void 0:t.length)<=0)){e.next=3;break}return ec.ZP.info("请选择作业或试卷"),e.abrupt("return");case 3:return he(!0),e.next=6,(0,pd.ZP)("/api/competitions/".concat(G,"/homework_select.json"),{method:"post",body:{course_id:W.course_id,competition_course_game_id:ne,shixun_homework_ids:null==ae||null===(n=ae.filter((function(e){return e.checked&&"practice"===e.homework_type})))||void 0===n?void 0:n.map((function(e){return e.id})),common_homework_ids:null==ae||null===(i=ae.filter((function(e){return e.checked&&"normal"===e.homework_type})))||void 0===i?void 0:i.map((function(e){return e.id})),group_homework_ids:null==ae||null===(o=ae.filter((function(e){return e.checked&&"group"===e.homework_type})))||void 0===o?void 0:o.map((function(e){return e.id})),program_homework_ids:null==ae||null===(a=ae.filter((function(e){return e.checked&&"hack"===e.homework_type})))||void 0===a?void 0:a.map((function(e){return e.id})),exercise_ids:null==ae||null===(s=ae.filter((function(e){return e.checked&&"exercise"===e.homework_type})))||void 0===s?void 0:s.map((function(e){return e.id}))}});case 6:l=e.sent,he(!1),ie(""),0===l.status&&u({type:"competitions/getHeader",payload:{identifier:G}});case 10:case"end":return e.stop()}}),e)}))),children:(0,g.jsxs)("div",{style:{border:"1px solid #F6F7F9",display:"flex",maxHeight:480},children:[(0,g.jsxs)("div",{style:{width:350,borderRight:"1px solid #F6F7F9",overflowY:"auto",overflowX:"hidden",padding:14},children:[(0,g.jsx)(rA,{style:{width:312,marginRight:15},dataSource:[],value:{id:"",value:ye.input},onChange:function(e,t){ye.input=e,be(h()({},ye)),null==fe||fe.map((function(e){e.open=!0})),ge(y()(fe))},placeholder:"请输入搜索内容"}),null==fe?void 0:fe.map((function(e){var t,n,i,r,o,a,s,l,c;return(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{style:{marginTop:16,height:22,alignItems:"center",display:"flex",justifyContent:"space-between"},children:[(0,g.jsxs)("div",{style:{cursor:"pointer",color:"#232B40"},onClick:function(){e.open=!e.open,ge(y()(fe))},children:[(0,g.jsx)("i",{style:{marginRight:10,color:"#999999"},className:"iconfont ".concat(e.open?"icon-changyongtubiao-xianxingdaochu-zhuanqu-":"icon-a-bianzu11")}),e.name,(0,g.jsx)("span",{style:{marginLeft:6,color:"#ADB2B8"},children:null==ae||null===(t=ae.filter((function(t){return t.homework_type===e.type})))||void 0===t?void 0:t.length})]}),(0,g.jsx)(sI.Z,{indeterminate:(null==ae||null===(n=ae.filter((function(t){return t.homework_type===e.type})))||void 0===n?void 0:n.length)>(null==ae||null===(i=ae.filter((function(t){return t.homework_type===e.type&&t.checked})))||void 0===i?void 0:i.length)&&0!==(null==ae||null===(r=ae.filter((function(t){return t.homework_type===e.type})))||void 0===r?void 0:r.length)&&(null==ae||null===(o=ae.filter((function(t){return t.homework_type===e.type&&t.checked})))||void 0===o?void 0:o.length)>0,checked:(null==ae||null===(a=ae.filter((function(t){return t.homework_type===e.type})))||void 0===a?void 0:a.length)===(null==ae||null===(s=ae.filter((function(t){return t.homework_type===e.type&&t.checked})))||void 0===s?void 0:s.length)&&0!==(null==ae||null===(l=ae.filter((function(t){return t.homework_type===e.type})))||void 0===l?void 0:l.length),onChange:function(t){t.target.checked?ae.map((function(t){t.homework_type===e.type&&(t.checked=!0)})):ae.map((function(t){t.homework_type===e.type&&(t.checked=!1)})),se(y()(ae))}})]}),null==ae||null===(c=ae.filter((function(t){return t.homework_type===e.type&&e.open&&t.name.includes(decodeURIComponent(ye.input))})))||void 0===c?void 0:c.map((function(e){return(0,g.jsxs)("div",{style:{display:"flex",marginTop:12,height:20,alignItems:"center",justifyContent:"space-between"},children:[aR(e.status||e.exercise_tips[0]),(0,g.jsx)(tc.Z,{title:null==e?void 0:e.name,children:(0,g.jsx)("span",{style:{width:"70%"},className:HI,children:null==e?void 0:e.name})}),(0,g.jsx)(sI.Z,{onChange:function(t){e.checked=t.target.checked,se(y()(ae))},checked:e.checked})]})}))]})}))]}),(0,g.jsxs)("div",{style:{width:450,padding:20,overflowY:"auto",overflowX:"hidden"},children:[(0,g.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,g.jsxs)("span",{children:[(0,g.jsx)("span",{style:{color:"#6B758B"},children:"已选"}),(0,g.jsx)("span",{style:{color:"#3061D0",marginLeft:3},children:null==ae?void 0:ae.filter((function(e){return e.checked})).length})]}),(0,g.jsx)("span",{onClick:function(){ae.map((function(e){e.checked=!1})),se(y()(ae))},style:{color:"#3061D0",cursor:"pointer"},children:"全部清除"})]}),null==ae||null===(i=ae.filter((function(e){return e.checked})))||void 0===i?void 0:i.map((function(e){return(0,g.jsxs)("div",{style:{display:"flex",marginTop:12,height:20,alignItems:"center",justifyContent:"space-between"},children:[aR(e.status||e.exercise_tips[0]),(0,g.jsx)(tc.Z,{title:null==e?void 0:e.name,children:(0,g.jsx)("span",{style:{width:"70%"},className:HI,children:null==e?void 0:e.name})}),(0,g.jsx)("i",{style:{marginLeft:10,cursor:"pointer"},onClick:function(){e.checked=!1,se(y()(ae))},className:"".concat(ZI," iconfont icon-weishezhi")})]})}))]})]})})]}),3===R.mode&&(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:bI,style:{display:"flex",alignItems:"center"},children:(0,g.jsxs)("div",{style:{flex:1},children:["评测设置",(0,g.jsxs)("span",{style:{marginLeft:20,color:"#9096A3",fontSize:"12px",fontWeight:"normal"},children:["答题起止时间:",(0,g.jsxs)("span",{style:{margin:"0 5px",color:"#165DFF",fontSize:"12px",fontWeight:"normal"},children:[null==R?void 0:R.start_time,"~",null==R?void 0:R.end_time]}),((0,Sd.eB)()||(null==R||null===(o=R.permission)||void 0===o?void 0:o.editable))&&(0,g.jsxs)("a",{style:{marginLeft:10,color:"#165DFF",display:"inline-flex"},onClick:function(){u({type:"competitions/setActionTabs",payload:{key:"7"}})},children:[(0,g.jsx)("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF",marginRight:3}})," 编辑"]})]})]})}),(0,g.jsxs)(Sc.Z,{form:w,layout:"vertical",scrollToFirstError:!0,className:WI,onValuesChange:function(){},children:[(0,g.jsx)(Sc.Z.Item,{className:DI,label:"评测服务器配置",colon:!1,name:"evaluation_setting",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,g.jsx)(oR,{placeholder:"请填写评测服务器配置,格式为:服务器ip 端口 账号 密码,多台服务器用多行表示,如:127.0.0.1 22 root Qz_123123 127.0.0.2 22 root Qz_123123",rows:6,autoSize:{minRows:6,maxRows:999},disabled:!(0,Sd.Ny)()&&(null==R?void 0:R.is_manager)})}),(0,g.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,g.jsx)(Sc.Z.Item,{style:{width:400},className:DI,label:"每日最多提交次数(未填则不限制)",colon:!1,name:"commit_num",rules:[{pattern:new RegExp(/^[1-9]\d*$/,"g"),message:"必须是正整数"}],children:(0,g.jsx)(nh,{disabled:!(0,Sd.Ny)()&&(null==R?void 0:R.is_manager),style:{width:400},autoComplete:"off",controls:!1,precision:0,min:1,className:NI,placeholder:"请输入提交次数",suffix:(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"次"})})}),(0,g.jsx)(Sc.Z.Item,{style:{width:400},className:DI,label:"评测时长(S)",colon:!1,name:"evaluation_time",rules:[{required:!0,pattern:new RegExp(/^[1-9]\d*$/,"g"),message:"必须是正整数"}],children:(0,g.jsx)(nh,{disabled:!(0,Sd.Ny)()&&(null==R?void 0:R.is_manager),style:{width:400},autoComplete:"off",controls:!1,precision:0,min:1,className:NI,placeholder:"请输入评测时长",suffix:(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"S"})})})]}),(null==f?void 0:f.isKd)&&(0,g.jsx)(Sc.Z.Item,{style:{width:400},className:DI,label:"每日最多验证次数(未填则不限制)",colon:!1,name:"validate_num",rules:[{pattern:new RegExp(/^[1-9]\d*$/,"g"),message:"必须是正整数"}],children:(0,g.jsx)(nh,{disabled:!(0,Sd.Ny)()&&(null==R?void 0:R.is_manager),style:{width:400},autoComplete:"off",controls:!1,precision:0,min:1,className:NI,placeholder:"请输入验证次数",suffix:(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"次"})})}),(0,g.jsx)(Sc.Z.Item,{className:DI,label:"运行脚本",colon:!1,name:"evaluation_script",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,g.jsx)(oR,{disabled:!(0,Sd.Ny)()&&(null==R?void 0:R.is_manager),placeholder:"请输入运行脚本",rows:6,autoSize:{minRows:6,maxRows:999}})})]}),(0,Sd.Ny)()&&(0,g.jsx)("div",{className:jI,children:(0,g.jsx)(uI,{className:$I,onClick:a()(r()().mark((function e(){var t,n,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w.validateFields();case 2:if(t=w.getFieldsValue(),!k){e.next=10;break}return e.next=6,(0,pd.ZP)("/api/competitions/".concat(G,"/create_work_settings.json"),{method:"post",body:h()({},t)});case 6:0===(null==(n=e.sent)?void 0:n.status)&&ec.ZP.info("更改成功"),e.next=14;break;case 10:return e.next=12,(0,pd.ZP)("/api/competitions/".concat(G,"/update_work_settings.json"),{method:"put",body:h()({},t)});case 12:0===(null==(i=e.sent)?void 0:i.status)&&ec.ZP.info("更改成功");case 14:case"end":return e.stop()}}),e)}))),children:"保存更改"})})]})]})})),lR="all___ZbAJW",cR="title___QPivo",uR="add_people___jqyIi",hR="people_icon___Gf35v",dR="content_user___mESiF",pR="content_left___JUfAC",fR="user_img_box___rq6y5",gR="user_img___tN5UW",mR="user_rule_create___i4hOF",vR="user_info___ncafT",yR="user_name___hqLNP",bR="user_school___m7TBE",wR="delete_text___j_0I0",xR="select_modal___j0vsx",SR=n(1560),kR=n(26724),_R=n.n(kR);n.p,n.p;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,n.p;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,n.p;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,n.p;var CR=["classroomList","loading","dispatch"],PR=(0,d.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t,n,i=e.classroomList,o=(e.loading,e.dispatch),s=Bl()(e,CR),u=((0,d.useParams)(),i.actionTabs),h=(0,c.useState)([]),p=l()(h,2),f=p[0],m=p[1],v=(0,c.useState)(!0),b=l()(v,2),w=b[0],x=b[1],S=(0,c.useState)(!1),k=l()(S,2),_=k[0],C=k[1],P=Sc.Z.useForm(),E=l()(P,1)[0],M=(0,c.useState)([]),L=l()(M,2),A=L[0],T=L[1],D=(0,c.useState)(0),N=l()(D,2),I=N[0],B=N[1],R=(0,c.useState)([]),O=l()(R,2),F=O[0],z=O[1],j=(0,c.useState)(!0),$=l()(j,2),H=$[0],Z=$[1];(0,c.useRef)();(0,c.useEffect)((function(){"添加管理员"===i.actionTabs.key&&(Z(!0),K())}),[i.actionTabs.key]);var K=function(){var e=a()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o({type:"classroomList/getSchoolList",payload:{}});case 2:t=e.sent,m(t.map((function(e){return{value:e}})));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),G=function(){var e=a()(r()().mark((function e(){var t,n,o,a,s=arguments;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=s.length>0&&void 0!==s[0]&&s[0])&&!w||_){e.next=11;break}return o=E.getFieldValue(),C(!0),B(t?1:I+1),e.next=7,(0,$L.pA)({id:i.actionTabs.id,page:t?1:I+1,type:(null==o?void 0:o.search_type)||"",school:(null==o?void 0:o.school_name)||"",keyword:(null==o?void 0:o.keyword)||""});case 7:a=e.sent,T(t?y()(null==a?void 0:a.data):[].concat(y()(A),y()(null==a?void 0:a.data))),C(!1),(null===(n=a.users)||void 0===n?void 0:n.length)<10&&x(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=function(){var e=a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:""==F?ec.ZP.error("请选择人数"):(console.log(F),(0,$L.q0)({id:null==s?void 0:s.competitionId,ids:F}).then((function(e){0==e.status?(ec.ZP.success("添加成功"),o({type:"classroomList/setActionTabs",payload:{}}),s.queryData()):ec.ZP.error(null==e?void 0:e.message)})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=[{title:"",dataIndex:"id",width:40,ellipsis:!0,render:function(e,t){return(0,g.jsx)(sI.Z,{value:t.id,checked:F.includes(String(t.id)),disabled:null==t?void 0:t.checked})}},{title:"姓名",width:100,ellipsis:!0,dataIndex:"name",render:function(e,t){return(0,g.jsx)(tc.Z,{placement:"bottom",title:e,children:(0,g.jsx)(d.Link,{className:"bold c-black",to:"/users/".concat(t.login),target:"_blank",children:e||"--"})})}},{title:"职业",dataIndex:"identity",width:130,ellipsis:!0,render:function(e){return(0,g.jsx)(tc.Z,{placement:"bottom",title:e,children:(0,g.jsx)("span",{children:e||"--"})})}},{title:"学号/工号",width:100,dataIndex:"student_id",ellipsis:!0,render:function(e){return(0,g.jsx)(tc.Z,{placement:"bottom",title:e,children:(0,g.jsx)("span",{children:e||"--"})})}},{title:"手机",width:100,dataIndex:"phone",ellipsis:!0,render:function(e){return(0,g.jsx)(tc.Z,{placement:"bottom",title:e,children:(0,g.jsx)("span",{children:e||"--"})})}},{title:"邮箱",dataIndex:"mail",width:100,ellipsis:!0,render:function(e){return(0,g.jsx)(tc.Z,{placement:"bottom",title:e,children:(0,g.jsx)("span",{children:e||"--"})})}},{title:"学校/单位",width:150,dataIndex:"school",ellipsis:!0,render:function(e){return(0,g.jsx)(tc.Z,{placement:"bottom",title:e,children:(0,g.jsx)("span",{children:e||"--"})})}},{title:"实名认证",dataIndex:"school_name",width:100,render:function(e){return e?"是":"否"}},{title:"状态",dataIndex:"checked",width:80,render:function(e){if(e)return(0,g.jsx)("span",{className:"c-green",children:"已添加"})}}];return(0,g.jsx)(hh.Z,{className:"modal_styles",centered:!0,title:"添加管理员",open:"添加管理员"===i.actionTabs.key,okText:"确定",cancelText:"取消",width:1100,zIndex:1e3,bodyStyle:{minHeight:200},onOk:a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:U();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){z([]),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,g.jsxs)("div",{style:{padding:"0 14px"},children:[(0,g.jsxs)(Sc.Z,{layout:"inline",form:E,initialValues:{school_name:"",keyword:"",search_type:"name"},children:[(0,g.jsx)(Sc.Z.Item,{name:"search_type",label:"搜索类型",children:(0,g.jsxs)(Fc.default,{style:{width:120},className:xR,children:[(0,g.jsx)(Fc.default.Option,{value:"name",children:"姓名"}),(0,g.jsx)(Fc.default.Option,{value:"phone",children:"手机号"}),(0,g.jsx)(Fc.default.Option,{value:"mail",children:"邮箱"})]})}),(0,g.jsx)(Sc.Z.Item,{name:"keyword",label:"搜索内容:",children:(0,g.jsx)(kc.Z,{allowClear:!0,style:{width:305},size:"middle",defaultValue:(null===(t=u.selectArrs)||void 0===t?void 0:t.category_name)||(null===(n=u.selectArrs)||void 0===n?void 0:n.name)})}),(0,g.jsx)(Sc.Z.Item,{name:"school_name",label:"单位:",children:(0,g.jsx)(SR.Z,{options:f,style:{width:306},size:"middle",placeholder:"请输入单位名称",filterOption:function(e,t){return-1!==t.value.toUpperCase().indexOf(e.toUpperCase())}})}),(0,g.jsx)(Sc.Z.Item,{style:{marginRight:0},children:(0,g.jsx)(Ml.ZP,{htmlType:"submit",type:"primary",size:"middle",onClick:function(){return function(){var e;if(""===(null===(e=E.getFieldValue())||void 0===e?void 0:e.keyword))return T([]),void ec.ZP.error("请输入搜索内容");Z(!1),x(!0),C(!1),z([]),setTimeout((function(){G(!0)}),200)}()},children:"搜索"})})]}),H&&(0,g.jsxs)("div",{className:"tc font16 c-light-black mt40 pb30",children:[(0,g.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUAukEPP/xw/ZUrVyb5/f4m+AAAgYia+iwCJsTSDuUMOMJD+7tB8e5Q3A/A9xzSS2DHjh0UiUQxWvY3zc3N/5VvWRUlIE888cSI9vZ2TfH7+v8AAD5A1m6QEKLPEcbIT/yl/AG8e9ERzreSmck/Go3S9u078MjOUCg018yzTsQdlIBgNOjw4cMTYAWSfv2VFcg4HBrvBsWdYLzHQYh3hWAJAAkHZyQQi8Xo1Vdfw4RirLKysvree++94ExOxlIt2JZes2bNmL5hUK37owehb6lE2r6M6gYpRxjKz90gYwpjNhac766uy9TRcYk6O7u09+7uborFpDYBWVVVRaNHj06YgNyyZSudPXsWP0S3BIPBN8zmaWd8zwICZzgSiUzs7e3VlL8PANUNwt+VRkaDBrpAcR8Af7s5IWZnY3k1LcxldHZ2UkdHh/bCZywxUf8DJNkGLhobJ9DUqVM1H+2DDz6kQ4cO4ZEfhUKhf81nvT0DyNq1a2+MxWJfIaIFRDSNiAKZJsVKS0v7h0KVBdDPChfzaJDdCnX5MixAJ3V2dmiK39UVB0DBgG5RuqB8tsrKSs1a4F11UzFq1draSqdPx5di4f9z5syhixcvaJOHRPRgKBS63+76mEkv74A8+OCDs7u7u39JRDfpC64mxdTSiEQIKtgZNtPKWeJeuXKlX/HjVgDW4FIfFJ39CwzTJQPFhuKPGDFCe1efhw8frv0v248VZtFbWlq02XRYkGuvvYY+/HAfulhvBIPBW2ysqumk8grImjVrvheLxf6DiEpgEcaPH081NWMIgmVn2HRbpn0AAMS7O3ErgPdLl+ATxLtFaoVtugQwQakUX1kCtJH6nA0AIzVBN2zTpk20f/9+gi7ATxFC7A8Gg58x8rxTcfIGyOrVq38gpQQcNG7cOLrhhhk8R2CxlaFMeuUf8AXiXaJsAMAnS7YA+r9LSkoslsz8Y6+++qpacoKHw6FQCBuy8hbyAsgDDzywuLe3dwPWHV133XU0eTIGojikkwD2Vaj+frIVwP/xfaaAYet0FgBdIPxieyXA4X/yySeVBTkfDAZH5rNsrgMCx3vNmjXvSSlnTJzYSDNmzMhn/T2RN37hVd9fdYGUD4D/w0IYAUD1+fUwAIBCm7zcunUr7dmjOek9oVAor/S6DsiaNWtui8ViL6HRliz5fME1nhWiAIDq7ytfYGA49BLBR8gU8Auv+vypukKDbREjRrZefPFF+CAyGAxa36FlpbGSnnEdkFWrVj1ARCumTZtGU6dOsaEK+U8Cw5z6ro8aDlXWAMOkmQL6+AoA/UiQsgQYsCimgB+Mhx9+uDgBWb169T4p5bTPfe6PtSHAQggAAL/8A5Nh8dEf9Tf6zZkChi4zWQAMZXNIlMDq1auLE5BVq1ZhM/KIW2/9U3JzdCSTAmKIMXkYVO8DGAEAs/T6OQC9H4DvOJiTAABBCIVCrvdy9CV1PfNVq1Zp6w5uv/3L5iSWQ+z4eiCsAxr41U+cGe7S9kWnCxjnzwQArAMHeyXAgNgMCIY6sXRBr/jKB4B1yAQAlkPoAUh2hAEAr+C1F4BsqTEgNgCC0aFjx47RsWPHNTjSBSg3+vnpukAAwI7Z4GyNzt8blwADkiMgODZm7969mu+AAEcYy6bVKFDyaBADYFw5vRCTAckBkMOHD9P773+gtWNtbS199rOfpQkTJrAV8IJm21QGBsQiIJhE+sMfdmnNcP3119PChQsZDJuU0kvJMCAWAMFI1IYNG7W1RwsWLKCZM2d6qU25LDZKgAGxAMiePXu14yrHjh1Ld955p43NwUl5TQIMiElA1GZ+vC9btkxzyDkMXgkwICYBuXjxIm3cuImtx+BlIqFmDIhJQM6cOUNbt/5e8zvgf3AY3BJgQEwCgnsl3n13Ozvng5uL/toxICYBiUZP0vbt22nRokU0ffr0IlGT4q0mA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtSkeKMwIAxI8Wq/gZozIAyIATUp3igMCANSvNpvoOYMCANiQE2KNwoDwoAUr/YbqDkDwoAYUJPijcKAMCDFq/0Gas6AMCAG1KR4ozAgDEjxar+BmjMgDIgBNSneKAwIA1K82m+g5gwIA2JATYo3CgPCgBSv9huoOQPCgBhQk+KNwoAwIMWr/QZqzoAwIAbUpHijMCAMSPFqv4GaMyAMiAE1Kd4oDAgDUrzab6DmDAgDYkBNijcKA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtTEu1FwrXZ3d7f2unLlivaO/6nbhHMtOQPCgOSqQ44/j8uKlPInw4Br8NKF6upqqqmpyal8DAgDkpMC2fUwFF0pv94a4DPuobcScC99U1OTdjW31cCAMCBWdcf0c+kAwP9hJZwIjY2NVFZWZjlpBoQBsaw8yQ+m8geUNYCFwPduBlgOWBBYEquBAWFATOmOVX/AVCY2RPb5fFRfX0/Dhg3LKTUGhAG5SoGc8Ady0tIMD8M6lJSUUGlpKQ0ZMqT/HaNYuVgOlSUDUqSA5MMfsAoJrAEgUAAABj0QVtM18hwDMkgB8Zo/kE0Z4S8oxU8GAHDkKzAgBQxIofgDSrlVV0j/669gyGUo1kl4GBCPA1Lo/oDeGtjhEzgJQ6q0GRCPAdLR0UHnz5/vnzl2an7AqqLl0x+wWuZcnmNAPATIxYsXKRqNuj5fkKxAgCCdQ5xPfyAXRbf6LAPiIUCOHDmiWQ43QiH6A27IJTkPBsRDgHzyySeW1x0lN2yq+YFC9wcYEBclsGrVKm3dw+0eAiQSiRC6WUYDIEg1IqS6R0bT4XjpJcAWxEOAYNVqa2srdXV19bcY+wP5xZcB8RAgShXgh2CiD36CV+cH8qu27uXOgHgQEPean3PKJgEGhAHJpiNF/T0DwoAUNQDZKs+AMCDZdKSov2dAGJCiBiBb5RkQBiSbjhT19wwIA1LUAGSrPAPCgGTTkaL+ngFhQIoagGyVZ0AYkGw6UlDfY/8MViHYtQKBAWFACgoAVVh13haW5ehf6hRGHBaHY3+wcDOXwIAwILnoj6PPqj336lxePQhGDqHDSudJkyblVEYGhAHJSYHseBj77pMtAf7OdDC10Xz56FGjkkqK58X9IBarUhCP4Rc/FQROnssLwcCCwJJYDWxB2IJY1Z2UzyVbA/1J7bZmZCCx4cOHUyAQMBAzfRQGhAExrUDKGqRylPN9Cgt2WcIxBxyjRo3K+fhRBoQBSQsIRoTS+QZGnGTT5Jl4AMO4ACH5lUt3KlX2DAgDchUEyjJYvbjGhJ5njKrfc68HARDYNc+RrawMSJEAAmVP1SVSd/plUxQnv9dbA3UIhQLCyXyNpM2ADDJAsk2gGVEKJ+KoY4hSdYvcsgZW6sWAFCAg+gk0vY/gBWugTmFJ5Rvw2bxWEI0/Y/2OLIt5FsI8iH6IVA+CHRNoFsUWb6y+S2sUBPpu0WA7mpQtiMcsCA6uVodX53vIFNYg2SdQUBSiNbDyo8CAeAiQc+fOUVtbm5V2zOkZdXtTcrdosFkDK0JiQDwEyOHDh7WRJieCmkBL1S2CpeCQWgIMiIcAsePwarcm0IoFKAbEQ4Cge4VuVraQbgIN1oGtQTbpmfueAfEQIFi+gQt02tvb+3fFubGcwpzKFFdsBsRDgCjVAyh4sTXIP4wMiAcByb9acAmUBBgQBoRpyCABBoQBYUAYkKslUAhLTVhz8y8BtiBsQfKvhR4uAQPCgHhYPZ0tGhaAYlj91KlT2vo3vDo6OrTVDGpFg9o0JoTYRkQHhRAfE9GOIUOGbFm+fHn2SSubqsCreW0SJCeTWQKAACsWDh06RGfOnNGG0y2GGBG9J4T4HRE9EwwGAY5jgQFxTLScMCSA24N37NhBuGrbiSCEaCGinwSDwTcdSd+JRDOlyU662xLPT37hcJi2b9/uGBgparXZ5/P9uLm5eYOdNWYLYqc0OS2t+7R161bNcmQKlZWVNGHCBKqpqaERI0YQ/sa5vmqpPzanXb58mS5evEgXLlzQtiMcP35c+ztTEEJsLCkp+cGKFSt22dEcDIgdUuQ0NAns27ePWlpaKN2pLA0NDRoUeFVXV1uS2qeffkrHjh3TXhkgvOzz+b7X3Ny81lImuocYkFwlWIDPY8ckfp3xwoiSesdqZfyajxkzxlSt8Gu/efNm+uijj1I+h2NI586dS6NHjzaVbrbIsFbwb7CfJ1UQQjwuhAg1Nzd3ZEsr3fcMiFXJFcBz6iTGZBiy7a3HyYhGIcHo1GuvvUZnz569SiITJ06kG2+80XYwkjMCKPB3jhw5kqpV3vf7/XetXLnygJUmY0CsSM2Dz2D+IBkEq6etwA9oamrKWkv4A88++6w2h6EP2CqwZMmSnK9AyFqApAiwJBs2bNCsYlKIEtGCUCiUkqBM+TAgZlshz/HVIdXJ3SM7D5owAgjyf+655wg+gT7A8txyyy1aVy0fAQ7966+/TqdPn07IXgixv6SkZOGKFSuuNnUZCsqA5KMVDeSp/AS9jwCldONY0mxdLJThpZdeumoId9q0abR48WLXjidNJ0aUDz7R/v37kyHZUlZW9sXly5d3GWgCLQoDYlRSDsXT39+h7yI5dYhEpmpgX31VVVVW/wO/0JgR14drrrmGbr75ZoekZC3Zt956iw4cSHQ9MAPf3Nz8Z0IIzMhnDQxIVhHZF0H5CcoqAAirfkIupVJ76zHvgBd8BrwbOaF97969tGXLloTsx48fT7feeqvndmLCCr/yyiva/Ik+CCG+HwwGf2FEhgyIESmZjAMTr/cR1Gc7/QSjRVIH0OlBABBWDqCDU75u3bqEI5Iw0XfHHXf0T/AZLZdb8eCzPf/889rCSBWEEJf8fv+M+++/P/X4sK5wDEgOLaXO6k2GwQ0/IbnY6tihZKtg5/56DOfq5xwA3ze+8Q0aNmxYDlJ0/tFLly7Rr3/96wSwhRDPB4PBr2bLnQHJJqG+7/XdIvU5H36C/pBqPQxOn8aIpR6/+x0W0A6E+fPn06xZswxKML/Rdu/eTe+8805CIfx+/x+tXLlye6aSMSBJ0lEHV+sdZgCRw/JsS5qh9xOUj2DUT7CUYZaH0Jc/evRofyw481//+tc953ekqwas/TPPPKPtPdF1tdYHg8HbGBADGoNxcwgvH90j/Pond42s+gkGqmo6CnyPp556KuFHYunSpdqaqkIKWL+1fv16fZExkjU50wQiWxAibVIp1VIJuxtf7yforYKdfoLdZUZ6WMaxc+fO/qQxGbhs2TInsnI8zd/85jfJk4g/DYVC/5wuYwaESBvTz7Y+yUzLqesLkq2C036CmTKaiYuuiX7GfN68eTR79mwzSXgm7q5du2jbNuzijQfMsAeDwc8wIBmayCog+rN69TDAOgyWgONYn3jiiYTq3HPPPXlbSpKrXLEUBd1FffD5fI3Nzc3HUqXNFoRI2+SDV6ag7vJItgpW5hNybWQ3n8cSdiwAVAHzHnfddZebRbA9r9/+9rcJ8yJ+v/87K1eufJgBySBqAAInHaNV6uBqPQxevvDSdg3SJYjdgXv27On/D5avz5kzx8ksHU8b/hT8Kl036xfBYPD7DIjjoh98Gbz88ssJSzW+9KUvub6M3W6pYrITk546QN4IBoO3MCB2S7oI0nv66acT5g4wcz5y5MiCrjnugsHMug6QT4LB4BQGpKCbNT+Ff+yxx6izs7M/829/+9tUXl6en8LYlGtXVxc9+uijekBOB4PBGgbEJgEXUzIPPPBAwuTpypUrC2b2PF07YVZ97dqB8xyEEFeCwWAZA1JMmm1TXRkQmwRpNBk+OM6opLwRj7tYLrcDA+KywHPMjp30HAVo5HEpZXk0Gv5mLEbffeGFF7Q1Crfz6e5GRJf3ODzM62ATnDlzZtzly50hIrFSSqmdRvbCCy9qOTIgDgrexqR5otBGYaqkotHopFis5ydE4h4pZYk+CwbEAYE7mCQvNbFRuKdOnQp0d3f/iCi2QkoqTZU0A2KjwF1Iihcr2iDkcDg8Rkr590TyL4moIlOSDIgNAnc5CV7ublHgUkpfJBL5KyL5MyllpZFkGBAjUvJWHN4wZaE9otHo9Fis50EpaZ6ZxxkQM9LyRlzecmuiHaSUQ8Lh8D8KIf8hnZ/BXSwTAi2QqHxog4GGiluN3nVSyrRbFLMlwxYkm4S8+f1gPPaHiOaFQqF3M0nc8I7CcDj8NSL5mJRyeC5NyIDkIr38PssHx6WQv5RSRCKRfyGSP8LnXJuIAclVgvl7frAcPVpSUiLnz5//y+nTp/+1ECLjfdQZFb6trW14d3f3k0TyK3Y1CwNilyTzk85gOLx6+vTr+y4IEi+UlpZ+q7a2tj2dNNMCgvVTkUjrK1LS5+1sCgbETmnmJ61Cvv6gvr6ebrxxbr/ghKCN9fUNtwohUt4ZkhIQLA8Jh8PPEskv290EDIjdEnU/vUK9QAcXAy1YMD/FBT/ipUAgcKcQoidZmlcBEp/8Cz8hpfymE6JnQJyQqvtp4uxi3E+I/d364NUr2IYPH0aLFi3STqxJFYQQT9fXB+5NvljnKkBaW1v/jUj+rVMiZ0Cckqz76RbKJZ44vmnx4kU0dOjQLEIS/97Q0PB3+kgJgLS2ti4SgjbBijglbgbEKcnmJ12vXwNdWVmpXUUNC5ItwHpISZ9raGhoUXH7AZFSVoTD4d1E8ppsCeXyPQOSi/S8+SzONX777bevug9QlXbSpEk0d+5c2+9Lx2F/O3bsSLjURy8hXA13ww0zTF4qKg4EAoFZQgjtKJd+QJzuWqmCMyDeVHI7SrVv3z5qaWlJe4VEQ0ODdmUCXtXV1ZayxCHauMYAr9bW1pRp4PDwGTOmU2Njo6U8iAa6WhogbW1tU3p6uvdLKf0WUzT8GANiWFQFGRG/6rjkMxwOZyw//AFYFpz1izvV0RWCr6BOwIdVwkAA/BwcOI07BgEF/s4URo8eTdOnT6eqKuv3tAshektKSqfV1tYe1AAJh8OrpIwF3WgRBsQNKec/DwCCZfKRSMSVwmAId9q0a7NeYW20MEL4VgcCgZCA7xGJhE9JKbN7MUZTzxCPAbFBiAWUBLpB8BOcAgVgXHvttVRTox15YFvATbj19YEaEQ6H75Qylng7o23ZXJ0QA+KgcD2aNEa6sCvRrmuw0X2qrw9QIFBPw4fntHY2o8SE8H1NtLa2/rJvq6wr4mVAXBGzpzJJXpqCa6MnT55M0WhUu5dFfy+kuo4O103AH8E5wIiP18iRVQSLgeun3QniVwBkK5Fc4E6GfOyPW3L2Qj6wGAcOHKCNGzdmLA4gaGpqokmTJpocknW6luL3IhxujUgp65zOSqXPFsQtSbubD0adcBkqLAJGnNTFqKm6Vcoa4CppLE3x6nUKQoioaG09gQkR186zZ0DcVVwncsO98QBA/8L8hJG75OfPn0+1tSlvGnCiqLmm2cWA5CrCQf487tJQICjLAKc7OcB3qKwcTrAKVVUjtbkN3Cjb0dHRHzV5qXkBiK6Lu1gF0EpuFRHKnAxDqok5ONAAAKNJAAJdJEz06e97P3jwE/rwww/7i47vliz5vOZsF0ro62Kxk14oDWZnOXFiorIIgAKf9b/2Ki+MJMVhiIMAKABDptt9r1zppjfffJO6u7v7iwwnHDv5CiuIrTzMW1gtZqm06BLpLQNgwDKO5IDh0zgI6CbFu0pGVsEmp7N37/sJCwiR7he+cHPavRiWKuXKQ+JXPFHoiqDdyQROMjYwKYugoIBTnRyw7ikOwQAQ2fdLZK8HLNPGjZsSJgWvv/56mjy5KfvDHoshhO9OXmrisUYxWhwMn2LkSHWT8I4hVgy3JoeKioo+fwFdJEAxgvA/J8L27YnLSgDdzTcvKbh7DfuXmkBIbi5WfPnl9drM6dKlt5qaFIpGT2qL37BtEqs1iylAXlB+vWU4e/ZsymXlUEjlK8Tfq1zr2qBMLS1bEppmzpw51NAQKLjm6l+siJK7udz9zTffokuXLmm/KmZGNIoFEDi2+sk2WAZ0m1JNuGEdkt55xmf3lmFcrfObN7doVk0F7PnAVtdCC1ctd0cF3Now9e677xKUfebMG7SNM0bDYAQEjnKqOYbkCTeMGGHkaMB5jvsOGG71SsCq3Z07/5BQHFj7UaOsbYzKb72SNkyhMG5tuT127Djt3r1b2355003Gl4DhbNht294lzMTOmjUrv/KzkHtnZ2dCFwmWIdUcA+YL1LAqfAV0k/C3fo7BQvaOPgLr9tZbGxKGiQOBAM2dO8fRfJ1JPM2W2z4r4vihDehCoJuFkRUc4FVXZ2wZGLodW7f+nmbMmEELFy50RjY2pYoupN55hpXA/5IDLEB8sm3AeQYMmeYYbCqirckMhklBCCTjoQ1KYm50tQ4fPkI4whJnFC1ceJOhNf1QMPxKYXHbsmXLbG3gXBLDdtDkYVVYi+Sg5hj0s89O7mXIpU5mnh08k4IaIpmP/enrajl6cJwSvhoOxHj87NmztL3JmQL65a+99ro2O3v33Xdr+wLcDnCWk4dVU024AfyBOYb47LOZAQm365VLfoNlUtDwwXF9kDh29KhqDAxdAhL4FghTpkymadOmZexefPDBh3To0CHCcS633XZbLu2a8Vk1x6B3oNHF0y+dUAlgL4PyFdTsc0WFa4ujHZOBkYQHz6SgiaNHlWCcOrw6WfAHDx6kffv2a0ulq6tH0nXXXZfWOij/Be84DAxj7LkG/RyDAiJ5l5vKA3MMybPPsIDFGgbDpKClw6tVgztx/UEqZTp79lPauXMnqb47xs+bmiYRlkcnO6zo4mA0C0DNnDmT5s2bZ3iER23q0VsGjNtn3tQz4ECnO9e1GAEZHJOCOVx/oLMktl6gk06ZYBUOHTqsLXJTa4fQfRk7dqw2lg6fQ60VOnGild577z1NsfGLPnv2bJo4caK2f1kF/aYe5TfAh0g1xzBkSCmNHFmtnYyhhlXV+UzFqPxG6vz225sTDq4upEnB+KU54mf19fU/zukCHb2g7LqCLZvw0eXBpBOGDtHH1Yd4f79KO2AM8WAJlJMMSwOA8B0sUaqRJKSFoVXEw2gYTsUAEF6acMsmHy98X8iTgkKIdiLx54FAwNBJPqauVLPjEk8zDYzuD7pf8Alg0lOtSs2UHqABVJhbqKsbq3XZuJtkpgWujgurjXks/Q9QoUwKCiH2+Xz+u+vq6t43KgVTgCBRXAMdiUR+RBT7oZVroI0WLFW89vZL1N5+kTD2DljQLevuxnuPZgUw2xyfbxhB1dWjqFhGk3KRqdlnjx8/Trt27e5/rBB2CgpB3US+n9fX1/9MCHH12v8MQjANiEorbk16HpSS5pkVMscvXAmoSV5VA6/vFBSCtvl8JSvMWA1961gGpM+a+CKRyHeJ5E+llJWF2+xccqMSgNXetm2b1vXFwMn8+fP6D5w2moYb8YQQF4nEP9XX1/9P8q1RZvLPCRCVUTgcHiOl/CGR/AsicmYnjplacVzHJYAhc4+O9HUSif8VQvw8EAiczlUQtgCiCnHq1KlAd3f3PxHFvuO2f5KrIPj5wpZAn5/xUGlp6U9ramoy371goqq2AqLyPXnyZFNvb/ePicQ9uDHXRHk4KkvAlATiN9PKp3y+kp/U1dUdNvWwgciOAKLyPXPmzLjLlztDRGKllNLe8+kNVI6jDF4JCCFOE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII=",width:"100",alt:""}),(0,g.jsx)("br",{}),(0,g.jsx)("p",{className:"mt20",children:"请搜索要添加的管理员"})]}),!H&&""==A&&!_&&(0,g.jsxs)("div",{className:"tc font16 c-light-black mt40 pb30",children:[(0,g.jsx)("img",{src:fc,width:"100",alt:""}),(0,g.jsx)("br",{}),(0,g.jsx)("p",{className:"mt20",children:"暂时还没有相关数据哦!"})]}),(!H&&""!=A||_)&&(0,g.jsxs)("section",{children:[(0,g.jsx)("div",{className:"flexd-table-header mt20",children:(0,g.jsx)(xA.Z,{pagination:!1,dataSource:[],columns:V})}),(0,g.jsx)("div",{style:{maxHeight:260,overflow:"auto"},children:(0,g.jsx)(_R(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){G()},hasMore:w,useWindow:!1,children:(0,g.jsx)(xA.Z,{loading:_,showHeader:!1,pagination:!1,dataSource:A,columns:V,onRow:function(e){return{onClick:function(e){e.currentTarget.querySelector("input").disabled||function(e){e=String(e);var t=F.indexOf(e);t<0?F.push(e):F.splice(t,1),z(y()(F))}(e.currentTarget.querySelector("input").value)}}}})})})]})]})})})),ER=["globalSetting","dispatch","user"],MR=(0,d.connect)((function(e){return{globalSetting:e.globalSetting,user:e.user}}))((function(e){e.globalSetting;var t,n=e.dispatch,i=e.user,o=Bl()(e,ER),s=(0,c.useState)([]),u=l()(s,2),h=u[0],d=u[1],p=(0,c.useState)(""),f=l()(p,2),m=f[0],v=f[1];(0,c.useEffect)((function(){y()}),[]);var y=function(){(0,$L.sL)(null==o?void 0:o.competitionId).then((function(e){if(0==(null==e?void 0:e.status)){var t;v(null==e||null===(t=e.creator)||void 0===t?void 0:t.id);var n=[];for(var i in n.push(null==e?void 0:e.creator),null==e?void 0:e.data)n.push(null==e?void 0:e.data[i]);d(n),null==o||o.loadingFunction(!1)}else ec.ZP.error(null==e?void 0:e.message)}))};return(0,g.jsxs)("div",{className:lR,children:[(0,g.jsx)("div",{className:cR,children:"管理员设置"}),(m==(null==i||null===(t=i.userInfo)||void 0===t?void 0:t.user_id)||(0,Sd.Ny)())&&(0,g.jsxs)("div",{className:uR,onClick:function(){n({type:"classroomList/setActionTabs",payload:{key:"添加管理员",id:null==o?void 0:o.competitionId}})},children:[(0,g.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABvZJREFUWEfNmGlsVFUUx8+5b5a+DhqpKCg0IagJikRFbOlMC8USoRZZLU4LrWCAiMsHg4krERFQE+WLCwaMlEU6UBZRquyUtjNFLIoBFOMaFYTIomBnOsu7x9w386bvvZlOZ9rUOF/e5C7n/t7/nnvuOQ/hf/7D/zkf9BiQTk4pAQndwGk0ANwYfWE6DQiNgMyDQ7cf6IkI3Qakb92DgQdriGAMAQECgnhG+QDUVyfxwENosc/GWz2/dAe0W4B0Yto9nHAXEc8RiyIiEJH6VPkEGEaf4scYXEDCCTh8a2umkBkD0nflA5UgHCXi/aMymSRLSoAC+Jxks4zAoZ4zmUBmDBg6NmMDEJ9pkEiTK6ZgbHc78DVFATfY7txc1WuAdKx6YJiCv4ndNC6iczq1IwFRbUMksmJWLt657nS6kBkpGGqtXMCBv5tg3MyTYnWGsMA2wvNerwD6j1auAE5PaSdWPJMLZjolOkURYUXWyI0LewUwcGTWagKaazZuPrUmlzQMR4DVct6H83sFsO3wrCUEsMgcVhKBoyFHhJ6oR0ZjpKo4Y0sceWtf6h3AlupSAvi0qyORcnGJlfbJq9nVK4B0crGt7fLPvwJRfw0ynSiowSDiOYfVnosjV4V7BVAYbWupmkeAq/Q3h/5qSxFlxAbPcxSsez9dOC1gZTJe+BW2Ha7eCATu+N1rsmA+5VH/Y7WOgrUzETF2Aaa3bEZxUDNJ3z9p95//eyURn5POMohsTfbVQx7FYYtD6YzXj+kWoGbA76ueSkBLCPjthmwmvgKeQAkWOfI3fJQpWNxvuztRPy945OFhEUUZDYADAbiI0mcsktRoz1t7sqf2e6RgTxdPZ36XgO1fVA5RwngbQz6AE+Nose3NzlvzWzLjdOqRq9STN/SDK8n6/Ufm5CJvHwcEEjLpDwL8Rs5f/3Mq0E4B6esqR8CvvE9Ebn0GygAWyS7P0qQAvoqNoj3bWVuZrD/QUvkiJ3pFC1HqTcPQ48i2zMU71rclm9MpoN/n3kQEM8xxDQEPZDtrS8zGAi3ueZzDKtHOGMyXCzyrzWP8vor9RHSvoSYQijPclF3gcacNGGhxFxPRQS1lNxx7hIB83fV98Za3glp70DdzOMfI55yDHAMMMLLk250fHteHpsCf5y4RgZysRGDIimVn7SEzZFIF/b6HPgGiiVo2lVBjoBQ3JlyhvS3UyomG6gsAhngqy2EbqW1dwFcxhkhpEADmuzy6S7jT4dz0QJeA1FrRrz2knOEi+Y2NNhtkgC/Lrs2LRXfAV76OAKvifqoWTVoBReuznXXVYlybd8ZiBFKzmMRkA0XKE5alrBswf90Fw44l+lL5bOKwJuXJQmiUnXVj6KvZ17QH/rnIBU9sYVWMWHrFEClLduTgXTV/BXwzDhGptXM89dKuSm0uYzhHLqirSQno9z24GYiXd9QVia/MEIN2ZH3RWRdo900/SgQj9EbjdTLSl9nObXeTr1xuJ+USAdrVcSaf0XySMVaX5dwSPZixn8EHRSLQ3jL9PBCp9W6nPzU8WMbJzi37A83TlgPSc/ot7rCOr8rObc8HfA+WACn7tLo+oaaK0+DFrIKt/fQJhQEw6J16OyfleOIpM2XIIlsGWCa7drwY9k0dE+FKgz6D1tazMKnY6tx+KOCdvBSIXtDqaHNJoI+LDKXhdtf2E0kVDHknP8aJv5NSvaiTCT/z2V0fu6h1vjUUPHuBgK7SK4SAV2z2AdeK5DToneQlIKfoZ0zKBwaKfg2u8C1AfLCwypA9bnPtiFeOBgVD3om14uboKqUX/QwhbO2T01eEkWBz2UcEMDn+rQPV6mOHvbB+ighDoSsXhP9ZRT8C7ARkBMCFFZUTAcZyoD4CBhE9NtfOiqQKBr33/w5EA5MHKpPnCjUkNsHqrN8d8pYtIDLWy4jsMZurfmXYVzaec566BtErgnjaXvjpoARAOlw6KBTmahKQ6CPGj0FaP2PwutW1+1lqKhsSxsiP+pvHBpabsKj+p2DT+NcA4JkuwpbhjFktLBdHffZ7TN3o1EjLhGk8omzt0v8MQuIRa9GefNEUar7vewC6OdqNP9gK99wi/oWb7vuckPLiuyIak14lHYYZStMthbu2GQDDzSXLiOD5ZIAJXxJiKyCAIlmtOTjqs8uR5pK3OcHjYj5DeMdSuP8JOlx6dSQcvkhAUkYvjmy5tXDvC0YFG8fuIoTxSQ2leGOUpIkW1776SNO9DxDQx1GjOMlSdOCTiHdcGXFlZ2cfk6JSJiqKCLstRQcnGAGbis8CUP/YFulmdX41qaeO4ZuSq+FpOlncR7lI6j0q5eC1OKzhn3BT8RtAtDBdn459vRNWz1mKGgYYADPZgv9ybJcp/38Jk2ytfwErhCtWL5ZsugAAAABJRU5ErkJggg==",className:hR}),"添加管理员"]}),(0,g.jsx)("div",{className:dR,children:h.map((function(e,t){var n,s,l;return(0,g.jsxs)("div",{className:pR,children:[(0,g.jsx)("div",{className:fR,children:(0,g.jsxs)("a",{href:"/users/".concat(e.login,"/classrooms"),target:"_blank",children:[(0,g.jsx)("img",{src:kl.Z.IMG_SERVER+"/images/"+(null==e?void 0:e.image_url),className:gR}),m==(null==e?void 0:e.id)&&(0,g.jsx)("div",{className:mR,children:"创建者"})]})}),(0,g.jsxs)("div",{className:vR,children:[(0,g.jsx)("div",{className:yR,children:null==e?void 0:e.name}),(0,g.jsx)("div",{className:bR,children:null==e?void 0:e.school})]}),m!=(null==e?void 0:e.id)&&(m==(null==i||null===(n=i.userInfo)||void 0===n?void 0:n.user_id)||1==(null==i||null===(s=i.userInfo)||void 0===s?void 0:s.role)||2==(null==i||null===(l=i.userInfo)||void 0===l?void 0:l.role))&&(0,g.jsx)("div",{className:wR,onClick:function(){var t,n;t=null==e?void 0:e.id,hh.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"删除提示",icon:null,content:"是否确定删除该管理员?",onOk:(n=a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,$L.qN)({id:null==o?void 0:o.competitionId,ids:[t]}).then((function(e){0==(null==e?void 0:e.status)?(ec.ZP.success("删除成功"),y()):ec.ZP.error(null==e?void 0:e.message)}));case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})})},children:"删除"})]},t)}))}),(0,g.jsx)(PR,{queryData:y,competitionId:null==o?void 0:o.competitionId})]})})),LR={flex_box_center:"flex_box_center___yg5U2",flex_space_between:"flex_space_between___RNHqN",flex_box_vertical_center:"flex_box_vertical_center___ZT47P",flex_box_center_end:"flex_box_center_end___X4Xs3",flex_box_column:"flex_box_column___OzmB0",all:"all___uSCy0",content:"content___pnhPh",content_left_red:"content_left_red___SmVi6",content_left_none:"content_left_none___jTbL2",content_left_flag:"content_left_flag___mae5L",content_left_info:"content_left_info___mISvV",content_left_title:"content_left_title___lcDeu",content_left_description:"content_left_description___Ris52",content_right:"content_right___AcQrD",content_right_span:"content_right_span___WiMTr",form_item:"form_item___eHCux",form_item_item:"form_item_item___IAs6n",fuzhi:"fuzhi___rSsFz",fuzhi_text:"fuzhi_text___UV3Dz",tijiao:"tijiao___AYAeP",tijiao_text:"tijiao_text___TC6tI",quetions_info:"quetions_info___qHhFg",scoremodal:"scoremodal___LmU2Z",title:"title___M1zQX",bottom:"bottom___P728Z",yes:"yes___gRJi8",no:"no___voaWW",form_item_item_select:"form_item_item_select___g8gNL"},AR="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAtxJREFUSEu9lktME1EUhv+/M51GayTGGCPGhRs1btqKGF0oAmHBaloejRbciS6NiUtjonHnxqWPlWEKCZVX3GkiPhJB5CEaiRASV2rUYAS6sK85ZqaUlFc7gOndzdz/nG/uueecOYSDdbyzMZDKpIMETotwP4hy20zwjZSvArx2K2rfyPnu8WLuWEgQMBqaTGRuQ3C4mCN7n5hyQbk+3trzeD39msATXc0HE8lkBwQnHYFWioghj6ZFhsOxL6u3VrwJdISqJCPdAtm9KdiiEcFZKmwcj/S+zPez7ISLsGcCcW8FlrMlmKLCunzoEtAKYzKRerfVk60OIWc1j7syF94loM/QBzd9Z8XCQQxNtPafyuYVADsbJRMrZudkn8AMSK+I7MvXu6g0W9lrA32G/tlx6hegkuyCF5cljm5AapZJiamJ1v4jtIs6nR5z8vUFNAmXi1fHIr33AtHgfRG0raV1q+ox+gz9JgQ3Ngu0QqiqatjqMv5o8K6YcmVdX8Qt+g39uQiqNwMk+MZDb/3b1ui8P6pfExN3CvkhMUBfe3AKkENrC2mSEhfBzlXpTg574K2zYMc6QjWmKU9FRCn84ZymzwguQGTHaoeYd8HVomrqp2Qi1SsQ35KGHKMXte9DfX8qO/UDqTRHBbKnaJTI+PpAYEaBcmb0Qs/3iieXtmfmfj4UkQiBD5rXVTPc0DsrIgwYoQGBVBWFZQULBUNKYpKadnY8HPtlqf3t+kV6tP6lZyPUJmI+cAizyn66aNJYJ9rm0aoHw7Hf+Y4DnefKJfN3UkTKnAKzSeOkLMhRVXPXjoZjcznn/nbdEKDFKczWWWXhuPCJoV2aVvciHIsHjOajpqQ+AuLaCNAu/I20NhKvlLK99Zm5H49E0LQRmDUN2K3NMtpI8yYwIkQFJNv4na5lzXvxlKX7PVnAkv+A7dBm55nSjBi5uyjpEJWDlnRMXNZNSjUIr0z1/znq/wN40G8Rfw3IyQAAAABJRU5ErkJggg==",TR="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAhdJREFUSEvFlr1vE0EQxd87O6KBFqREokSCFISCii8hKqhuz3KB+CtSBCEo4gJRBETLXwAFJl53VAniSxRIEJpEaZFwkTZQoMT70F3Ox+W4Dyu2jiusk2dufzuzb3aGGOORMech+SCvQZoFOQdJAAYgB5DeguzT2m9Vy7HMQa2WD+ceSTpbtVBoJ7kFz7vP1dV+kX8uUO32aezvP5d0eRxQ1ofkBzSbd9jtfv/Hlv1DQXAJUk/SyaPARt+Q3AEZsNf7mF7nUIQRzLk1AccmgSVQ4Dc870YamgDjNH6eNLKc9O6g2bw4Su9foDHvj3pmVdkIz5TWXomEFf6EatRwaKs+nMTORsOE6j0AGrNZJH0Cv0A+AzAv6WYelORLkJ/g3D0Bpwp8tmjtOardXtDe3tfCuiGf0NqleGMrkqL3lBof09q7sX1R0tPCtWZmLlBB0JFzyyXA17T21sguYxIoyQQWA19Iul1S9B3KmHVJ18vOJ2fhlUgAcWRF0eco9k0I3JZ0pkoQWWjaPx116caB7RC4K+l4FTCKKJPCcSNLnffPeoHA7n9JaZ2iWad8f1lAZypl4fuvBLTKy2K6hf9Q0oOSzS9M52oD+vC8L3BuScCJ0qstknbdl3dcT/W1pwh4MMfU14AjaJ0jRtIN6hyiEmidY+KhLlDXIJyto3AqwHDoQ7oKYA7AbOwzAPAD5Ds0Gn12uxtVXecPo4t94UegNcAAAAAASUVORK5CYII=",DR=["competitions","globalSetting","loading","dispatch","user"],NR=(0,d.connect)((function(e){var t=e.competitions,n=e.loading,i=e.globalSetting,r=e.user;return{competitions:t,globalSetting:i,loading:n.models.competitions,user:r}}))((function(e){var t=e.competitions,n=(e.globalSetting,e.loading),i=e.dispatch,o=e.user,s=Bl()(e,DR),u=Sc.Z.useForm(),d=l()(u,1)[0],p=(0,c.useState)(!0),f=l()(p,2),m=f[0],v=f[1],y=(0,c.useState)(!0),b=l()(y,2),w=b[0],x=b[1],S=(0,c.useState)(!0),k=l()(S,2),_=k[0],C=k[1],P=(0,c.useState)(!0),E=l()(P,2),M=E[0],L=E[1],A=(0,c.useState)(""),T=l()(A,2),D=T[0],N=T[1],I=(0,c.useState)(""),B=l()(I,2),R=B[0],O=B[1],F=(0,c.useState)(""),z=l()(F,2),j=z[0],$=z[1],H=(0,c.useState)(""),Z=l()(H,2),K=Z[0],G=Z[1],U=t.Header,V=(0,c.useState)(!1),W=l()(V,2),q=W[0],Y=W[1],X=(0,c.useState)([]),Q=l()(X,2),J=Q[0],ee=Q[1];console.log("Header:",U),(0,c.useEffect)((function(){te()}),[]);var te=function(){(0,$L.rZ)(null==s?void 0:s.competitionId).then((function(e){var t,n,i;v(null==e?void 0:e.name_finish),x(null==e?void 0:e.url_finish),C(null==e?void 0:e.time_finish),L(null==e?void 0:e.question_finish),N(null==e||null===(t=e.competition)||void 0===t?void 0:t.name),$(kA()(null==e||null===(n=e.competition)||void 0===n?void 0:n.start_time).format("YYYY-MM-DD HH:mm")+" ~ "+kA()(null==e||null===(i=e.competition)||void 0===i?void 0:i.end_time).format("YYYY-MM-DD HH:mm")),O("".concat(window.location.origin,"/competitions/detail/")+(null==e?void 0:e.identifier));var r="";for(var o in null==e?void 0:e.data){var a,l;if(Number(o)==Number((null==e?void 0:e.data.length)-1))r+="赛题"+(Number(o)+1)+":"+(null==e||null===(a=e.data[o])||void 0===a||null===(a=a.shixun)||void 0===a?void 0:a.name);else r+="赛题"+(Number(o)+1)+":"+(null==e||null===(l=e.data[o])||void 0===l||null===(l=l.shixun)||void 0===l?void 0:l.name)+"、"}G(r),d.setFieldValue("identifier",null==e?void 0:e.identifier),null==s||s.loadingFunction(!1)}))};return(0,g.jsxs)("div",{className:LR.all,children:[(0,g.jsxs)("div",{className:LR.content,children:[(0,g.jsxs)("div",{className:m?LR.content_left_none:LR.content_left_red,children:[(0,g.jsx)("img",{className:LR.content_left_flag,src:m?AR:TR}),(0,g.jsxs)("div",{className:LR.content_left_info,children:[(0,g.jsx)("div",{className:LR.content_left_title,children:"主标题设置"}),(0,g.jsx)("div",{className:LR.content_left_description,children:m?"您已设置主标题为:".concat(D):"请在设置中填写正确的竞赛主标题"})]})]}),m?(0,g.jsx)("div",{className:LR.content_right,onClick:function(){s.clickInformation("主标题")},children:"查看"}):(0,g.jsxs)("div",{className:LR.content_right,onClick:function(){s.clickInformation("主标题")},children:["去完善信息",(0,g.jsx)("i",{className:"iconfont icon-xiaojiantou",style:{fontSize:"10px"}})]})]}),(0,g.jsxs)("div",{className:LR.content,children:[(0,g.jsxs)("div",{className:w?LR.content_left_none:LR.content_left_red,children:[(0,g.jsx)("img",{className:LR.content_left_flag,src:w?AR:TR}),(0,g.jsxs)("div",{className:LR.content_left_info,children:[(0,g.jsx)("div",{className:LR.content_left_title,children:"网址设置"}),(0,g.jsxs)("div",{className:LR.content_left_description,children:[w&&(0,g.jsxs)("span",{children:["您已设置网址为:",(0,g.jsx)("a",{href:R,target:"_blank",children:R})]}),!w&&(0,g.jsx)("span",{children:"请在设置中填写正确的网址"})]})]})]}),w?(0,g.jsx)("div",{className:LR.content_right,onClick:function(){s.clickInformation("比赛地址")},children:"查看"}):(0,g.jsxs)("div",{className:LR.content_right,onClick:function(){s.clickInformation("比赛地址")},children:["去完善信息",(0,g.jsx)("i",{className:"iconfont icon-xiaojiantou",style:{fontSize:"10px"}})]})]}),(0,g.jsxs)("div",{className:LR.content,children:[(0,g.jsxs)("div",{className:_?LR.content_left_none:LR.content_left_red,children:[(0,g.jsx)("img",{className:LR.content_left_flag,src:_?AR:TR}),(0,g.jsxs)("div",{className:LR.content_left_info,children:[(0,g.jsx)("div",{className:LR.content_left_title,children:"竞赛时间"}),(0,g.jsx)("div",{className:LR.content_left_description,children:_?"您已设置竞赛时间为:".concat(j):"请在设置中填写正确的竞赛时间"})]})]}),_?(0,g.jsx)("div",{className:LR.content_right,onClick:function(){s.clickInformation("竞赛时间")},children:"查看"}):(0,g.jsxs)("div",{className:LR.content_right,onClick:function(){s.clickInformation("竞赛时间")},children:["去完善信息",(0,g.jsx)("i",{className:"iconfont icon-xiaojiantou",style:{fontSize:"10px"}})]})]}),(0,g.jsxs)("div",{className:LR.content,children:[(0,g.jsxs)("div",{className:M?LR.content_left_none:LR.content_left_red,children:[(0,g.jsx)("img",{className:LR.content_left_flag,src:M?AR:TR}),(0,g.jsxs)("div",{className:LR.content_left_info,children:[(0,g.jsx)("div",{className:LR.content_left_title,children:"赛题设置"}),1===U.mode&&(0,g.jsxs)("div",{children:[M&&(0,g.jsx)(tc.Z,{placement:"bottom",title:"您已经设置的:"+K,children:(0,g.jsxs)("div",{className:LR.content_left_description,children:["您已经设置的:",K]})}),!M&&(0,g.jsx)("div",{className:LR.content_left_description,children:"请在设置中填写正确的赛题设置"})]}),2===U.mode&&(0,g.jsxs)("div",{children:[U.course_id&&(0,g.jsx)(tc.Z,{placement:"bottom",title:"您已经成功设置:"+U.course_name+"为本次竞赛的课堂",children:(0,g.jsxs)("div",{className:LR.content_left_description,children:["您已经成功设置“",U.course_name,"”为本次竞赛的课堂"]})}),!U.course_id&&(0,g.jsx)("div",{className:LR.content_left_description,children:"请在设置中填写正确的赛题设置"})]})]})]}),M?(0,g.jsx)("div",{className:LR.content_right,onClick:s.clickQuetions,children:"查看"}):(0,g.jsxs)("div",{className:LR.content_right,onClick:s.clickQuetions,children:["去完善信息",(0,g.jsx)("i",{className:"iconfont icon-xiaojiantou",style:{fontSize:"10px"}})]})]}),m&&w&&_&&M&&(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:LR.content,children:[(0,g.jsx)(Sc.Z,{form:d,style:{marginLeft:22},labelCol:{flex:"100px"},children:(0,g.jsx)(Sc.Z.Item,{className:LR.form_item,colon:!1,name:"identifier",children:(0,g.jsx)(kc.Z,{prefix:"".concat(window.location.origin,"/competitions/detail/"),disabled:!0,className:LR.form_item_item})})}),(0,g.jsxs)("div",{className:LR.fuzhi,onClick:function(){var e=document.createElement("input");e.value="".concat(window.location.origin,"/competitions/detail/")+d.getFieldValue("identifier"),document.body.appendChild(e),e.select(),document.execCommand("Copy"),ec.ZP.success("复制成功"),e.remove()},children:[(0,g.jsx)("i",{className:"iconfont icon-fuzhi",style:{marginRight:"5px"}}),"复制"]}),(0,g.jsx)("div",{className:LR.fuzhi_text,children:"参赛人员可访问该网址参加比赛"})]})}),(0,g.jsxs)("div",{className:LR.content,children:[(0,g.jsx)(uI,{disabled:!(m&&w&&_&&M),type:"primary",className:LR.tijiao,onClick:a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Y(!0),(0,lI.GY)({display_aliases:!0}).then((function(e){ee(null==e?void 0:e.schools)})).then((function(){var e,t,n;d.setFieldsValue({sponsor_schools:null===(e=o.userInfo)||void 0===e?void 0:e.user_school_id,sponsor_user_name:null===(t=o.userInfo)||void 0===t?void 0:t.real_name,sponsor_user_phone:null===(n=o.userInfo)||void 0===n?void 0:n.phone})}));case 2:case"end":return e.stop()}}),e)}))),children:"提交审核"}),(0,g.jsx)("div",{className:"".concat(LR.tijiao_text," ").concat(m&&w&&_&&M?"":"c-red"),children:m&&w&&_&&M?"准备好后,您可发起审核":"请完成竞赛指引后,再提交审核"})]}),(0,g.jsxs)(hh.Z,{title:!1,footer:!1,open:q,width:610,className:LR.scoremodal,closable:!1,centered:!0,onCancel:function(){return Y(!1)},children:[(0,g.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,g.jsx)("div",{className:LR.title,children:"为了加快竞赛审核速度,请确认以下信息是否准确"}),(0,g.jsx)("span",{onClick:function(){return Y(!1)},style:{cursor:"pointer"},className:LR.close,children:(0,g.jsx)("i",{className:"iconfont icon-guanbi",style:{color:"#979797",fontSize:"15px"}})})]}),(0,g.jsx)("div",{className:LR.content,children:(0,g.jsxs)(Sc.Z,{form:d,className:LR.formWrap,onFinish:function(e){(0,$L.qt)(h()(h()({},e),{},{id:null==s?void 0:s.competitionId})).then((function(e){0==(null==e?void 0:e.status)?(ec.ZP.success("提交成功"),Y(!1),i({type:"competitions/getStaff",payload:{identifier:null==s?void 0:s.competitionId}}),i({type:"competitions/getHeader",payload:{identifier:null==s?void 0:s.competitionId}})):ec.ZP.error(null==e?void 0:e.message)}))},labelCol:{flex:"110px"},children:[(0,g.jsx)(Sc.Z.Item,{className:LR.form_item,label:"主办方",colon:!1,name:"sponsor_schools",children:(0,g.jsx)(Fc.default,{mode:"multiple",className:LR.form_item_item_select,options:J,fieldNames:{label:"name",value:"id"},placeholder:"请输入主办方",filterOption:function(e,t){var n;return(null!==(n=null==t?void 0:t.name)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())}})}),(0,g.jsx)(Sc.Z.Item,{className:LR.form_item,label:"主要负责人姓名",colon:!1,name:"sponsor_user_name",children:(0,g.jsx)(kc.Z,{className:LR.form_item_item,placeholder:"请输入主要负责人姓名"})}),(0,g.jsx)(Sc.Z.Item,{className:LR.form_item,label:"主要负责人电话",colon:!1,name:"sponsor_user_phone",rules:[{pattern:new RegExp(/^((0\d{2,3}(-)?\d{7,8})|(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8})$/,"g"),message:"必须是正确的座机号或者手机号"}],children:(0,g.jsx)(kc.Z,{className:LR.form_item_item,placeholder:"请输入主要负责人电话"})}),(0,g.jsx)("div",{className:LR.bottom,children:(0,g.jsxs)(Sc.Z.Item,{children:[(0,g.jsx)(Ml.ZP,{size:"middle",className:LR.no,onClick:function(){Y(!1)},children:"取消"}),(0,g.jsx)(Ml.ZP,{className:LR.yes,size:"middle",type:"primary",htmlType:"submit",loading:n,children:"保存"})]})})]})})]})]})})),IR="ModalStyle___cW8H3",BR=["competitions","globalSetting","dispatch","user","loadingFunction","loading"],RR=["key","name"],OR=(0,d.connect)((function(e){return{competitions:e.competitions,loading:e.loading.effects}}))((function(e){var t=e.competitions,n=(e.globalSetting,e.dispatch),i=(e.user,e.loadingFunction),o=void 0===i?function(e){}:i,s=e.loading,u=Bl()(e,BR),p=t.GuidesData,f=(0,d.useParams)().identifier,m=void 0===f?null==u?void 0:u.competitionId:f,v=(0,c.useRef)(),y=Sc.Z.useForm(),b=l()(y,1)[0],w=Sc.Z.useWatch("list",b),x=function(){var e=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("====",t),!(t.list.length<2)){e.next=4;break}return ec.ZP.warning("请至少添加2个赛程"),e.abrupt("return");case 4:return e.next=6,n({type:"competitions/postGuides",payload:h()({identifier:m},t)});case 6:0==e.sent.status&&(ec.ZP.success("更新成功"),n({type:"competitions/getHeader",payload:{identifier:m}}),S());case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(){n({type:"competitions/getGuides",payload:{identifier:m}})};return(0,c.useEffect)((function(){o(!1),S()}),[]),(0,c.useEffect)((function(){var e;b.setFieldsValue(h()(h()({},(null==p?void 0:p.data)||{}),{},{list:null==p||null===(e=p.data)||void 0===e||null===(e=e.list)||void 0===e?void 0:e.map((function(e){return h()(h()({},e),{},{competition_time:null!=e&&e.competition_time?kA()(null==e?void 0:e.competition_time):null})}))}))}),[p]),(0,g.jsx)(mh.Z,{spinning:!!s["competitions/getGuides"]||!!s["competitions/postGuides"],children:(0,g.jsx)("div",{className:"p30",children:(0,g.jsxs)(Sc.Z,{form:b,colon:!1,onFinish:x,initialValues:{list:[{},{}]},children:[(0,g.jsxs)(dh.Z,{wrap:!1,align:"middle",gutter:20,children:[(0,g.jsx)(bd.Z,{children:"赛程设置"}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{style:{marginBottom:0},name:"guides_is_hidden",valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"隐藏"})})}),(0,g.jsx)(bd.Z,{flex:1,children:(0,g.jsx)(dh.Z,{wrap:!1,align:"middle",justify:"end",children:(0,g.jsx)(bd.Z,{children:(0,g.jsx)(sA,{icon:(0,g.jsx)("i",{className:"iconfont icon-xiaojiahao "}),onClick:function(){6!=(null==w?void 0:w.length)?v.current({}):ec.ZP.warning("赛程最多可添加6个")},children:"新增"})})})})]}),(0,g.jsx)("div",{className:"mt25 mb30",style:{padding:"14px 20px",background:"#F6F7F9",color:"#464F66"},children:"规则说明:在此版块管理员可以创建赛事的日程时间轴,每个赛程将在时间轴上按序号顺序依次排列。创建成功后将对平台用户公开,使用户能够轻松了解整个赛事的进度和安排。"}),(0,g.jsx)(Sc.Z.List,{name:"list",children:function(e,t){var n=t.add,i=t.remove;return v.current=n,(0,g.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:e.map((function(e,t){var n=e.key,r=e.name,o=Bl()(e,RR);return(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{style:{background:"#F6F7F9",padding:"10px 20px"},children:(0,g.jsxs)(dh.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,g.jsxs)(bd.Z,{children:["赛程",(0,_l.EM)(t+1)]}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)("span",{className:"c-red current",onClick:function(){hh.Z.confirm({className:IR,icon:null,centered:!0,title:"提示",width:460,content:"确定要删除此赛程吗?删除后,请点击“保存更改”按钮以保存此次操作。",onOk:function(){i(r)}})},children:"删除"})})]})}),(0,g.jsx)("div",{className:"p20",style:{border:"1px solid #F1F1F1",borderTopColor:"transparent"},children:(0,g.jsxs)(dh.Z,{wrap:!1,align:"middle",gutter:40,children:[(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,h()(h()({label:"赛程名称"},o),{},{name:[r,"name"],rules:[{required:!0,message:"请输入赛程名称"},{whitespace:!0,message:"赛程名称不能全为空格"}],children:(0,g.jsx)(kc.Z,{placeholder:"请输入赛程名称",maxLength:10,showCount:!0,style:{width:360}})}))}),(0,g.jsx)(bd.Z,{flex:1,children:(0,g.jsx)(Sc.Z.Item,h()(h()({label:"赛程时间"},o),{},{name:[r,"competition_time"],rules:[{required:!0,validator:function(e,n){var i;return null===n?Promise.reject("请选择截止时间"):0!==t&&kA()(n).startOf("second")<=kA()(null==w||null===(i=w[t-1])||void 0===i?void 0:i.competition_time).startOf("second")?Promise.reject("当前赛程时间需晚于上一个赛程时间,请重新选择"):Promise.resolve()}}],children:(0,g.jsx)(aI,{style:{width:"100%"},placeholder:"请选择赛程时间",format:"YYYY-MM-DD HH:mm",disabledDate:0!==t&&function(e){var n;return(0,_l.Q8)(e,null,null,null==w||null===(n=w[t-1])||void 0===n?void 0:n.competition_time)},disabledTime:0!==t&&function(e){var n;return(0,_l.d0)(e,null==w||null===(n=w[t-1])||void 0===n?void 0:n.competition_time)},suffixIcon:(0,g.jsx)(g.Fragment,{}),showTime:{format:"HH:mm",defaultValue:kA()((0,_l.U6)(),"HH:mm")}})}))})]})})]},n)}))})}}),(0,g.jsx)(dh.Z,{className:"mt20",wrap:!1,justify:"end",gutter:20,children:(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{children:(0,g.jsx)(Ml.ZP,{type:"primary",htmlType:"submit",children:"保存更改"})})})})]})})})})),FR=(0,d.connect)((function(e){return{user:e.user,competitions:e.competitions}}))((function(e){var t=e.competitions,n=e.dispatch,i=t.Header.identifier,r=t.actionTabs,o=["竞赛信息","评测设置","管理人员","竞赛指引"],a=(0,c.useState)(null==o?void 0:o[0]),s=l()(a,2),u=s[0],h=s[1],d=(0,c.useState)(!0),p=l()(d,2),f=p[0],m=p[1],v=(0,c.useState)(""),y=l()(v,2),b=y[0],w=y[1],x=function(e){h("竞赛信息"),"主标题"==e?w("name"):"比赛地址"==e?w("identifier"):"竞赛时间"==e&&w("start_time")};return(0,c.useEffect)((function(){"7"==(null==r?void 0:r.key)&&x("竞赛时间")}),[r.key]),(0,g.jsxs)("div",{className:"bg-white mt-20px-rem rounded-4px-rem text-14px-rem",style:{border:"1rem solid #F1F1F1"},children:[(0,g.jsx)("div",{className:"flex item-center py-18px-rem px-20px-rem",style:{color:"#232B40",borderBottom:"1rem solid #F1F1F1"},children:"基础设置"}),(0,g.jsxs)("div",{className:"flex",children:[(0,g.jsx)("div",{className:"py-14px-rem flex flex-col sticky",style:{width:"182rem",borderRight:"1rem solid #F1F1F1",top:0,maxHeight:"100vh"},children:null==o?void 0:o.map((function(e,t){return(0,g.jsxs)("div",{className:"flex item-center py-14px-rem px-20px-rem current-primary-hover relative ".concat(u==e?"current-primary":""),style:{background:u==e?"#F8F9FA":""},onClick:function(){h(e),n({type:"competitions/setActionTabs",payload:{key:""}}),m(!0)},children:[" ",e,u==e&&(0,g.jsx)("div",{className:"absolute h-full w-4px-rem",style:{background:"#000",borderRadius:"10rem 0 0 10rem",top:0,right:0}})]},t)}))}),(0,g.jsx)("div",{className:"flex-1",children:(0,g.jsxs)(mh.Z,{spinning:f,className:"h-full w-full",children:["竞赛信息"==u&&(0,g.jsx)(pI,{competitionId:i,loadingFunction:m,formName:b,isKd:!0}),"图片设置"==u&&(0,g.jsx)(vI,{competitionId:i,loadingFunction:m}),"评测设置"==u&&(0,g.jsx)(sR,{competitionId:i,loadingFunction:m,isKd:!0}),"赛程设置"==u&&(0,g.jsx)(OR,{competitionId:i,loadingFunction:m}),"管理人员"==u&&(0,g.jsx)(MR,{competitionId:i,loadingFunction:m}),"竞赛指引"==u&&(0,g.jsx)(NR,{competitions:t,clickInformation:x,clickQuetions:function(){h("评测设置")},competitionId:i,loadingFunction:m})]})})]})]})})),zR=(0,d.connect)((function(e){return{user:e.user,competitions:e.competitions}}))((function(e){var t,i,o,s,u=e.dispatch,h=e.competitions,p=h.actionTabs,f=h.Header,v=(0,d.useSearchParams)(),y=l()(v,1)[0],b=HL($L.g_,{}),w=l()(b,4),x=w[2],S=w[3],k=(void 0===S?{}:S).data,_=(void 0===k?{}:k).identifier,C=HL($L.OU,{}),P=l()(C,4),E=P[1],M=P[2],L=P[3],A=(void 0===L?{}:L).data,T=(void 0===A?{}:A).competition_modules,D=void 0===T?[]:T,N=[{label:"首页",key:"1",children:(0,g.jsx)(mh.Z,{spinning:E,children:(0,g.jsx)("div",{className:"bg-white mt-20px-rem mb-20px-rem rounded-4px-rem p-20px-rem flex flex-col gap-30px-rem",style:{border:"1rem solid #f1f1f1"},children:null==D?void 0:D.map((function(e){return(0,g.jsx)(ZL,{DataProps:e,onFinish:function(){var e=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:M({});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},null==e?void 0:e.id)}))})})},{label:"说明",key:"2",children:(0,g.jsx)(VL,{})},{label:"赛题",key:"3",children:(0,g.jsx)(WL,{})},{label:"提交结果",key:"4",children:(0,g.jsx)(g.Fragment,{children:"提交结果"}),hidden:!0},{label:"参赛队伍",key:"5",children:(0,g.jsx)(bA,{})},{label:"排行榜",key:"6",children:(0,g.jsx)(_A,{})},{label:"设置",key:"7",children:(0,g.jsx)(FR,{}),hidden:!(null!=f&&f.is_manager)}],I=(0,c.useState)(null!==(t=N.find((function(e){return e.key==y.get("type")})))&&void 0!==t&&t.hidden?null===(i=N[0])||void 0===i?void 0:i.key:y.get("type")||(null===(o=N[0])||void 0===o?void 0:o.key)),B=l()(I,2),R=B[0],O=B[1],F=function(){u({type:"competitions/getHeader",payload:{identifier:_}})};return(0,c.useEffect)((function(){x({}),M({})}),[]),(0,c.useEffect)((function(){_&&F()}),[_]),(0,c.useEffect)((function(){null==(null==f?void 0:f.enrolled)||null!=f&&f.enrolled||!(0,Sd.bg)()||f.is_manager||hh.Z.info({title:"提示",content:"请及时填写队伍信息,只有在参赛队伍页面完整显示队伍信息,且和赛题负责老师(18057983633)微信确认报名信息后才视为报名成功,否则视为报名不成功!"})}),[null==f?void 0:f.enrolled]),(0,g.jsxs)("div",{className:"text-14px-rem",children:[(0,g.jsxs)("div",{className:"w-full flex justify-between px-30px-rem py-10px-rem",style:{height:"200rem",background:"url(".concat(n(82075),") center / auto 100% no-repeat ")},children:[(0,g.jsx)("img",{src:n(67734),height:55,style:{height:"55rem"}}),(0,g.jsx)("img",{src:n(72647),height:55,style:{height:"55rem"}})]}),(0,g.jsx)("div",{className:"w-full flex item-center justify-center",style:{background:"linear-gradient( 90deg, #021D46 0%, #05113A 51%, #032250 100%)",height:"64rem"},children:(0,g.jsx)(m,{navData:N,activeKey:R,onChange:function(e){var t=e.item;O(null==t?void 0:t.key)},extra:(0,Sd.bg)()?(0,g.jsxs)("div",{className:"flex item-center gap-10px-rem",children:[(0,g.jsx)("div",{className:"current-primary-hover c-white",onClick:function(){u({type:"competitions/save",payload:{actionTabs:{key:"报名",params:{isEdit:null==f?void 0:f.enrolled}}}})},children:"账号管理中心"}),(0,g.jsx)("div",{className:"current-primary-hover c-white",onClick:function(){(0,KL.x)()},children:"退出"})]}):(0,g.jsx)("span",{className:"current c-white",onClick:function(){u({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})},children:" 登录 / 注册 "})})}),(0,g.jsx)("div",{className:"ml-auto mr-auto",style:{width:"1200rem"},children:null===(s=N.find((function(e){return(null==e?void 0:e.key)==R})))||void 0===s?void 0:s.children}),"报名"==(null==p?void 0:p.key)&&(0,g.jsx)(wA,{onFinish:function(){var e;F(),null!=p&&null!==(e=p.params)&&void 0!==e&&e.isEdit&&ic.Z.publish("competitionsTeamsData",{}),u({type:"competitions/save",payload:{actionTabs:{key:""}}})}})]})}))},71283:function(e,t,n){"use strict";n.d(t,{rX:function(){return f},xY:function(){return p},tJ:function(){return c},o1:function(){return u}});n(7557),n(41498);var i=n(94706),r=n(91662),o=n(13277),a=n(1079),s=n.p+"static/newqrcode.a8740efb.png",l=(n(32637),n(37712)),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return!(!u(e)||!h(e,t,n,i,r))},u=function(e){return!!(0,o.bg)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},h=function(e){var t,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=(0,i.getDvaApp)()._store.getState(),c=l.user;return!(null===(t=c.userInfo)||void 0===t||!t.profile_completed)||(n?e({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:o,isCurrentPage:s}}):r.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,a.xg)("/account/profile/edit"),d()}}),!1)},d=function(){r.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料?请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},p=function(){return!!(0,o.V9)()||(r.Z.warning({centered:!0,width:530,title:"提示",content:(0,l.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,l.jsx)("p",{children:"扫码加头歌助教,申请操作权限"}),(0,l.jsx)("img",{src:s,width:200})]}),okText:"我知道了",maskClosable:!0}),!1)},f=function(e,t){return!!e||(r.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{children:t||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"}),(0,l.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,l.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABgILAMgwe5cwJ5O3jVtaWgp+z8KKW+bOPvjuwq1bMaTD+OLG2+ks2/aSSS78FTMcYQEAIQgsACADgQUAZCCwAIAMBBYAkIHAAgAyLBnW4CxnS/fb9k4r7nk7W8LBClZUQbBiYIEVI2ycnXjFIjjCAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQU4bAGK25Fu/Besm03wm27i2/bEATbNmTbN6QoRzDkhCMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5F7Xpnpy2w7Ta8bawo4eDC6RVIf0YmufBXzCwKLIvaCgC2ceevGKeEAEAGAgsAyEBgAQAZCCwAIMPsRfdVq1aFw2GrW7llyxZ7dgfACEToV8ydvd9vkhV1CPBOvHOkvdNZeY0IwSkhAJCBwAIAMhBYAEAGAgsAyEBgAQAZCCwAICOPcVhUnke3rcg/lYktbLuT7eyet+0zIo16j3CEBQBkILAAgAwEFgCQgcACADIQWABABgILAMjIo1pDHit19K6zFXfxXTiwgMqz+FZ004Wc/YidHSJjsuILqjUAQHFCYAEAGQgsACADgQUAZCCwAIAMBBYAkGF21hxnKxZQqdJvW5Nsm1LEinbmXNy2vlNZ3DhnfwgWjbDBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgw+ywBpOsuMlKZZ3GN2RycdsKcriQC3cIlclH3FkOBEdYAEAGAgsAyEBgAQAZCCwAIAOBBQBkILAAgAz7JqHIiUqZfeONN8nZ4gS29d2KggcmWbF1Z4tnGN8QlZk+GI6wAIAQBBYAkIHAAgAyEFgAQAYCCwDIQGABABl5VGuw7Z63FSMYSN/NpTK1hEkuHC5AZdzMyPl14AgLAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkGG2WoMLa++bbKdxzvbIZN+pVL9wdqyDs01y4eKO/95xhAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIyKNaQ0623bA3eUPUhdMBmOym8XdaMdOH8b67cLYLZ1kxdsS2ARDOThTCcIQFAIQgsACADAQWAJCBwAIAMhBYAEAGAgsAyDBbrSGPLbmvEgDpDRnfum3VGqzYEJXSCC5skjtnkTAJR1gAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyqNdh2x93kOq1ovLM9smIQgG1lDEw2ydlhNzk5+7lb0U1n5+/AJBQAUJwQWABABgILAMhAYAEAGQgsACADgQUAZJidhMI2VlTpt22sQ045t27baAPjO8TZ2S5sG/hiRa0IZ4tSWNFO4zAJBQCMdAgsACADgQUAZCCwAIAMBBYAkIHAAgAyzA5rcPYpc2ebZFvjTXJ2h9h2v9/Zxhtf3OSGrJjpw2Q7c7LogyMzDguMsOKbN5LbCW6DU0IYcdasWTNhwgSnWwHDkce8hM7OOmcclUHtJtcJJi1ZsmTNmjU9/+vCT9PxankONn4gOMKCEeqZZ55ZtmyZ062A/OAIq8AbyglHWK510003rV27lrny08QRVo7VIrAKu6GcEFhuNnHixIMHD7rw00Rg5Vitsx2wIu+c/c2T/pIZbXkyqbceUxsOqrV16r46rf6A1tist7Xp7e2iIyYyaZFRGWPco3CPl5eEpNJSadQoeXy1PHmiMm2qUjNVmXSaVD6G+/1Od4Uxxp599tlFixbl7qkF/5wbX9x4k6xIB3d+FRFYdnQzJyo96m5DJqO3HM7s2p1+f3vmo13q3lrtaKuIdghVZcabxzlXFB4pkSvKlek1nlkzvXPneGbOkMZWcY/Hwd5VVlYePXo0R68RWMNd3CIILDu6mROJHolMRqs/kNr2burNrentO7SDjSKVKuD6uc8nnzbeO2e279KLffPOlydPdCS5+t0x7O0+Amu4i1sEgWVHN3NyeY/01mOpbe8mNm5ObXtHa2xmmmbt9mRZHl/tm3dB4Nr5vnnnS+Vj7OzsunXrbrzxxlNfR2ANe3GLILDs6GZOLu2REGp9Q/KFl+Lrn8/s2i2SSfs23bUH/H7PzBnBry70XzNfmTyR2fJoTlNT0/jx43PtDATWMBe3CALLjm7m5LoeCaHW1cfXPBv/w3Nq3X6m63ZsdCCSpNRMCS66PnjTDcrUyTbElhWJg8AqOASWHd3MyVU90ppb4qvXxZ56Rt1Xl8dFdKtxrkybGrp1SfDmRXL1WIs3hcAqZI8sYsk4LLNtct84F+Mc/0TzbnA8kXjx5c5fPpbevsPyC1XDI8veObPD3/1W4OoreTBg0UZcOGrJihGFtpVbsGjXIbAKjFZgZT7e3bHq0cTzm0Q84XRbhsCDgcDCBSU/uNNz9gxL1o/AcmhDeUFgFRiVwBLJZGL9xuhDP1f31Trdljwo02oi99wV+Oq1BR90isByakN5QWAVGInA0pqaOx56JLZ6rYjFnW5L3ngoGLp5cck935fHVRdytQgshzaUFwRWgbk/sNLvf9i+/GeprW+76OJ6vjj3Xfy50vt/4p17buFWicByZkN5QXmZkUQXyc2vHL/tjtSWtwinFWNMiNSWt47fdkdy8ytMp9wRyBMCa8RQ1dhTq9u+czeti1aDdWhfbdt37o49tZqpqtNtAZvYV17GOCqFPqwYSGXRiYlIZ2KPPxG9f6XeHjW5KreRSiOR5ctCS2/nXlMPIbpwAJ0Lf0dWbD0vmISi+Il0pvNXj0UfeFh0djrdlsLT26PtP/03kcmEv/Mtk5kF7odTwmKnqrHHnyjWtOoiOjujDzwce/wJnBsWPQRWURMi9vTa6P0rizitujva2Rm9f2Xs6bW0bybAUBBYxSy5+dXoigeL77pVTnp7NLriweTmV51uCFgIgVW00u9vP/GjFdrhI043xD7a4SMnfrQi/f52pxsCVkFgFSetqbl9+X3q3iIZwWCcure2ffl9WlOz0w0BS5gtL0Nlghxnh0rYPGhYpFLt9/yk87EnzGyUtPC3bi996Gfc5zO+CJXyMjk5+8CJSZhIdaRLPLsh9vRap1vhpNjTaxPPbnC6FVB4CKxik9m1O7ryEYpPNReQiMWjKx/JfLzb6YZAgSGwioqIJzoeeXQEXro6lbq3tuPnj7q/zhfkBYFVVBKbXkps2OR0K9wisWFTYtNLTrcCCgmBVTy05pbOXz2OY4oeIp7o/NXjWnOL0w2BgkFgFY/46nXp9z90uhXukn7/w/jqdU63AgrGbLUG45ytbeBsqQnzd4iH3CdqbV3rdUtw9epUyvSa8g3PKDVTB3+bC2d1craIgjtLOOAIq0jE16xHWuWk7q2Nr1nvdCugMBBYxUCtq4+ve86SVQvBdL3Pn7z0WzbfP13/IJtpAGOMsfi659S6ekv2D9gL9bCKQXLTS+q+usKvVzBp9Gipopyxk0fyqqodbBSZjKHFZVmedBr3+XsXz4uua43NTFXl08Yz5eQXNZPRDjUZbcBJ6r665KaXwt/7duF3EdgLgUWe3nosvn6j0bIqksR0vXvCVM67/wy4ai2wcH5k+bLu4xpJ0hqbjn9tqbq/nklDHZsLIZWWjvrFv3tmnT2c+Vk5F52x40u/q+5vGPX/fqlMnsR0nUmy+vc9x267Qxw5mt/k9ULE128M3nyjVD6mwHsf7IXAIi+17d3Mro+NvJN7veE7vyVVVqh792kNB9WDh/Rjx0VHh0ilezOF8z5hJMty9djedNB1pshGWyZLUlXFsKeYF50x7vMxIeSKip4ZvdRP9opEcoh0zpVlmV0fp7a9G7h2fmF2OjgEgUVcRk1s3CySqaHfKQTz+fxXXub73IVMFyKR0KMd+uEjWlOzWrtf3V+v7m/Qmpr11mPakaO9pTu7LiT1REC+53ambgoJJgQPBJjX2/OS1tTCFZmXlrIBDrBEOiOSyRyvJ1OJjZsDV13OPPjOE2b2wzN+N9f4XVKT91OtmA7AhVN1dFHrG1Lb3jHaNq9HKokwxpjEeSgoh4JydZXn3HO6m5hIing88/dPjn/j21r9gazjLBPtNPdJMsakkrAU6J3k2ff5C8f84XcDLiFJsaeeiT+1JudBVmrbO2p9gzK9Jo8WOPqltYJtG7II/rWhLbXtXe1Qk6G3CsH9fl4Szv23nPNggAcDUqSEJVMDXiHiLI8Q0nX9SKvW3DLErT0heDgklZX1vhCL6+3tojMmkkmpojy7zfKE8fKE8YNsMfa71UzXmZzjvFU71JTa9m5egQVug8AiTGQyqTe3Gr/TL0VKeCAw+Hu0xmY9Gu0bWKInpISqCdXYHTrO9RPtbf/0z0MXpdL14A3XRZYv6zmmS7zyWvS+h5imaQcOhW67mfv9Q26te00n2tVP9g2yodSbW0M3L2IeTK5DFQKLML35cHr7jjzeH4+n3tyqnHWmXFXRHV6nHImo++tFKt3zv9zr7XMNXlVZMmX0IEvTtLp6MUSecsaE1nI4+zq6ONGu/v0TputMUTyzzzF+Q1A/clRrbB7k/entO7Tmw/LECeZ2PDgGgUVY5uPd2qFGo++WJO3AobZv38VLI3L5GKmqUh43VpkyWamZKk86TR5fLY0qk8JhdX89U9WeIOM+b/Y6RDotdN3oSaEQ8qSJ/su/yBUl9309SdIONSZe+m/GeZ8Q5IzJMhNCKh/jmTPr1NX2+d+seFIPHtJPnBgksLRDjZmPdyOw6EJgEZb+4END9wd7CCHSaXHkqN5yhO36G2OMSRLzeKRwSBpVJo+rlieMT3/4Ud8xVn1+/CKeyGPuP133nHl62cr7BjwP5Tz15p+Tb2wdqLWeGWcoU6f0vKDure38zX+JRKI7knThn//lwIKret+we4+IxQcJLJFMpT/40H/llwr9UYBNEFhUiWQys2Nn/osJxhiT+5zl6W0n9ONt6r46JgST5d4fPOc8FOyzdCwm8p2sdPCxqQP9jRBMUQJXXymVRnpeS7ywufPRx5jouqYmmCR5P31eVke0zK7dTNNyXnHvkdmxUySTxq+LgavkEVi2VUGwYl4M295pxfiJnFvXW4/l/bSzokiREhGLi1Sqz0jRfoNFszfc9+BI7+hkeT4WM0y6rpx5uv/qK3pfaDuRfOX1rl507Slp9CjPWWf2viEazezeM+SK1b21euuxwW41DsW2CU2cnZnCtqIUecERFlVqwwHtaGseC+i6MmVS2cMPiERSO9SoHWpUDxzS6hu0I0f1Y20imWSZDBOMSVnhJUk80mcYhIh2iIya32MxgxtoVUJ4Pz1XmXRazwuZ7TsyH+3qbZsQ8tgqOesNWlOzdvDQkM8MaUdb1YYDZgILHITAokqt3S+iHXksIIQ0epT3U+dJo8q6X0ilRWen3npMa2pWGw6otfvV+gPq7j2Z3Xt6Hh6USkuz16G3nRjOg4Enpf705/T/fsCknlNOSd1XK9JdNyX7/YPMpdKSnvQRGTX+x436ifbswFKmTZVGj+rdIX//RD/eNmSYimiHWrvfN++Cgn8iYAMEFlXqvrr8ihYIIZWEs0dFcZ+X+0ZLY0YrZ0z3nXxPfN1zbd/8btdYBK7I2eM5GWPakaNM14d+8nkAiU0vd/z8l4xLJ69ddT/003/wBOt/bSvz0c7ky6/1eUmWvZ+em30pKv3RLpFKDdk2oWY0KypbgC0QWFRp9QfyXYSXlAwxZpJzrflwdw4Kwf3+7GveTNf1I0eMloXIxTN7ZuAr1/E+mSKYzxf4yrW5joxOjlZNp2NPrtYam7IPr6RIxPuZub1ricUzH+401DbB1Px3HbgEAosqrdHYEzk9OJdGj+LyoAcgQmj1Dd032oTgoSAv6z0lFKqqHztu5nnm0C2LgzfdcErDJN7/gWTOOJfC3ZfPUlu3JZ57oU+i6bo8ZZJy5unZeyOzZ6/Bi2taIyaypwqBRZXediK/BSQp/Zf3o//678q0GnnSBLm6WhpdJoVCvbXxGBPxhLq/oXeJsrLsi0QintBaj5l6nlmWuTx0dRqhaUywrrIKasOBjodW6a3H+p3reT8zVy4f031IxXnmk3264SJZelubiT6Ak/IILGdnfLDz1qkZtg2A0Nvb821ZZseuzI6dzOORgkFpzChp7FhlyiRl8iRl+lR5XLVUVck0TWts6v7ZCyFPGN9zmMMYEx0d+rHjhbxFOFDXWg4zXWNcUusb2u/5SWrbu/2vTMlyZuff2u76IdNPBtbHu0UyaTSwcu06275Lzs5yYtvvyKIN4QiLKtERy3sZiTPGmabp0aje3s5q96fffofJEvMo3B+QIiVSaUStb2C8Ox2UaVN5VmkXrblFb80zsPKq7sAYY0zd35B85XXGeeqtbcmXXhlo4rL0O++ls+vqSJLxWwHD2XXgDggsqkQmPfyF+40+VzXR0aFFo9qhRiZJ3Qnj8XjOOrPPk3r7G0RHNJ/A4npbe+qd97jPa/DKl360Nfbk6vT2HUySUlve6r4jKQQvKQl/8zZ5fLXQdc640NT46nV9hmXZtuvAUQgsqkTGwCMyeR2BnzwT7PqvFClRzpie/feZj3eL5FDjBrLjTJbS23ccW/T1PI6x0hmRSPYO1OralhBSaST09SU97RGpVGrL28N5Msn4rgNXQmAVL865z9f748+LpnvOmenJCiyRTKqf1HK/f/Ca7iKj9j4d3dUAzvOolOz19taHEEwkEl3jVLnPx/xZdbXSGZFIOLRbwUkILKq4RxGDDDoXQopEIivuVaZMEnr+VzqFUCaM7zPHjCSF71wa/NriQU4JucRjT61JrN/IZIkJIZWVlj74U+X0acOZTJBzEU+0/+S+zPsfMsZ4KCiFQj1/qcfjejQ67ALMHGXdycInRxX3eIeoLePz+i660DPzrMJszuv1fW7ox1lS297rPQ/1eLxzZnlmnzO8LYrOmFRa2lXuVCorzb78Lzpjoj067AEW3OMd5pLgNEsCy4q7pC4cwWCFPEaElIRYx6DPEgphbtKaYenb1OEc3GUtffKCGpPHVmXPnSNiMb0zNuwBFrwkNLwFuxe3ax4HF/6OrKg/kVeTMFU9Vf0eS87N/hlS+KD/O9x1yuOqedZDRfrxNpFIDnt9hnYduBJOCamSRo0a8j0ik2GaJvKrr8C595TnDVV1qNLsjDHGJalPLQchWEY10gAuyQNfyxdM8chTJmW/pB05KmIxpmmMc2Zg6Pwwdh24EwKLKnl89WB/zbmIdrT/aIUUKTU0uIGzrnKjodtu8V/+xey/UffVdqz8hX7ixBDHS5wxxjJ/29NdzpRz0dHR/uP7pNIhGiCEHvjSpaF//HrPgInUn7fFf79WpNPqnr1MkngwoNRMyV5ECocDV1/BGNdjsfT/vNdbNLkguw5cDIFFlTJ5Iht0wIBIp1NvbDU+FEvoeuCqL3tmnd3nxXi84//+R+y3vzfarKwR5yKVTr2xZYjDK86ZEHL5mFBWO9VP9sV+t7q7XjNjckW5Mmli9kL+L1/q++IljDMR7Tj29aWp1/6Ux3EWZ8rkiUbfDC6DwKJKnjaVK54hSmIZ/xlrmnfunNIHfypXj81+ObFhU/zZ57sLvZ+afYMf1wghjRmjnD6NDVgigov29szuPUyS+xy+SZx5PN2DIXRdHlctVVb0WU5RuMIYY7x8THDhgtSWt42PnOCKR5421eTOB6cgsKhSaqbwSIk4drwA69J1efKk0gdX9BsDkd7+UfShn4vOTibLgQVXej/7aSZO5gKXUlvfSr765mCnibrumTNr9G9/wwP+nEeCXJaTW986/rWlg48sVc48XcqesFqI7KD0XXKRMnWy+sk+g4/p8EiJUoPAosq+SSiMs+22scm+G2+8FVMMKJMmyhXluvnA0nV5bFXpA//iv/TiPi+3Hove/1DXVSSmatznC3/7H7MrfPo+d37mw51ay5FBBtNzRZFKI4NMNy2FQkMcpnm93s/MzQ4jtW4/D4XlsZXd+6Fmiv/KL3UOMuFzX3JFeXap+N6mWvCtM/m1Mfnjsq1HxhtvHoY1UCWVj1Gm15hdi65LY0aXPvAvweuvyQ4OkUp1PPLr5CuvdyeFxJNvbEn/dXv2op45s/3XXJXHYzfDap5cUe6dOyf7tcSml1Ov/ylrR0iBa6+Wxow2eLVOmV7TZwQ/kILAoor7/cMeRN5N16XKitL7fxJc/NU+51NCxH+/tvM3/5U9FZjeeiz+hz9mT0rIPZ7QLTdKVZVmiiYPeRXMc+45ytTJvS8kEqktbyde2CySveOwvHNm+y660OBlLM/sczApIV24hkWY97xzud+X3+TPPbrOBB/8aXDxV/pd/Um+sTX64MOis7P/6y+/pn7zNs+smT2veM6dFbjyy7EnnzY4qiCzZ6/WcKDn+jqXpfT2j5jWFYK5Uk9R/Jd9gQd7J3PVmlvUv38iMhl1X13PFTceDAQWLki+8vrJCXgGxP0+73nnWvBRgE0QWIR5zp4hTxivDmMOGE2Xp0ws+7efBa6d3y+V0n/9oH3Z8u7CWNkkSWtsSrz4SnZgcZ8v9A83J17+b4PlieO/W9356ONZNw050zQRT+SeHVrX5dMm+C65qE/zPtihtbSIVDr56uvZtwh8F12onDE9s2Pn4Jfe5QnjPWfPsO4TAavhlJAwqbrKO2d23ovpuufsM0c9uipw3YJ+P291z94Td/+fzMe7c//sdT2xYZN2qDH7Nc95cwLzLzd4VshDIamyQqqsPPmnQqquUmac4bvw/BxbFML3+QuVrCEIIpNJvvq6iCeYpiVffi27qr08YVzg6iuGDE3vnNlydZUFHwXYBEdYhHGPx3fpxfE/bjQ6CkkIxpjvC58vffCn3jmz+v2lure27a4fpt/73wEPUiQps3tP4sVXw3fc3tsGryd065LE5leNHGSF7/hG8KYb+oyEEIx7PNLJW349a2VCSKPKgjfdkD2RorqvLrX17a7DsfSOnem/vJ89KD9wzVWx3z6tNTUP0n7fpRcPMdEZuJvZSSisWNzZMQRWjN6wbqyDb9758oRx2oFDRjrGFCV4/TWR+5b3GzjOGFPr6k/84N7UG1uGGM2UTifWbwguWiiNHt3zmue82f4vXxp/ai2Th2i8NGa0NGY0G5IQTNd9l32hX0Gb5Euvage7z1VFtCPx4sv+yy7pGRyrnHWm79LPx3+/dqC1yhPG+eadP/A2C/+1Mcn4Ol04g4ZFTcIpIW3K5EmGZl3Xdam0NPLDH5T9x8pT0yqzY2fbHd9LvvanocdeSlJ6+0ept9/Nfo37fKHbbpEqy03dLsxubNsJqaI8fMc3sgdwaQcb4+s2ZB9Lpv68Tc06P+Veb/ArC3kkMlAzfPMuUPo+RA3kILCI8yiBa+fz7PLBpxJCmXHGqF+vKrnnrn5TzzNdT/152/Gl/5Ta+rahUjCci46O+Nr12aMKGGPez3wqMP+KggSW3h5N/c97wZtu8F3wmezXEy9szvwt6+KaJGn7G1JvvZP9Hu9nP+U556ycJ8jc7wtcOz97EkagCJ8feb5553tmnp3+6wcDvcH76fMiP7zbM2eWfuRoVqZwpmuJza92rHpUO3Awj+lnJCm15a3ka3/yfmpO70AtWfZ96QuJjS/qJ9r7DEBNJrXGZh7wG6sYwUVnLPbkav3o0eCy72tHjnZHjySp9Q2djz3B0pnsdopkMrFhk2/eZ7nXe3JGVcl3wWfT7/zl1HV7Zp49yPkgUMGtGOlv2+UAF17DcuRiWecvfn3i3hW5Q4FzuapSKivNUdBK07RDTSKRGMZkWXJVJS/rWzdG1bRDh0Q662FswXgoKI+vNl77RcTjWlOLFCnpMx6Vc9HRqTXlmF+e+3zyhPG94yS63tnc0n9XcF724Irw976dbzdtu2SDeYKNNgCBNezF3RNYal1968LF6t7agbY04AFOzgFQRugix1DPXEMT8j5PlKTcS+VMVcF6n8ce+J3K9Jry59dmj5g3CIHl1A4ZCK5hFQNl6uTgousH/GvOu8tUnfpn2Hd+pVzrzGvTA/0ZaKncXWNG3hlcdP0w0gpcKI8jrNzLO/pEuLP/BJnse2Ebr9bWtV63ZMCDrBFMmV5TvuEZR0rKOPvrsGJDVnQTk1CMRErN1NCtS4Y3dXsxk6TQrUtQAKto4PtdPII3L/LOPdfpVriLd+65wZsXOd0KKBgEVvGQq8eGv7OUBwPmV1UceDAQ/s7SfkWfgTQEVlEJLLgqcN0Cp1vhFoHrFgQWXOV0K6CQEFhFhQcDJXfdqUyf5nRDnKdMn1Zy15043iwyCKxi4zl7RmTZ93goaH5VdPFQMLLseyh9VXzsq9aQk8nn0W2r0p9znS4c19clcMN16b9u73zsCacb4pjQLYsDN1xn0cptG0FtG5M/Lju7iSOsIsR9vpJl3+9Xq3Pk8F1yUcmy72cX0oKigcAqTvK46tL7f1yAaXWoUabXlN7/Y3kcJqMvTgisouWdO6fsgRVyVaX5VVEhV1WWPbCi37RgUEwQWMXMP//yyIp7pdKI0w2xg1Qaiay41z//cqcbAhZCYBU1zkO3LI4sX8bDYfMrczMeDkeWLwvdsnj4j3MDBQisYqcooaW3R350dxFnFg+HIz+6O7T0dhQULXpurNZgkhWjDWwr5mVRj0Q6E3v8iej9K/X2aMF3jrOk0khk+bLQ0tu519R0OLaVHLCi7ogLG29ReRUEVoG76c7AYowxVY09vTa64kHt8JGC7x+nyFWVkRX3hm5ZbP7YyoW/edKNtyiwcEo4YihK6NYlo371sDKtSMY6KNNqRv3q4dCtS3AmOHIgsEYSSfLPv2L0k//pu+Qi2henOfddctHoJ//TP/8KlAAbUXBKWOBuuveUMIvW1Nzx0COx1WtFLF7YNduAh4KhmxeX3PP9wo4OdeFZFenG4xqWUQgsQ+tMJhPrN0Yf+rm6j1JVZWVaTeSeuwJfvZb7/YVdswt/86Qbj8AyCoFlXObj3R2rHk08v0nEExZtolB4MBBYuKDkB3daVIPBhb950o13PrBsa6sVc2oZZ1veuaTYg4gnEi++3PnLx9Lbd/ROjOoqsuydMzv83W8Frr7SuvpWVvzmXbhO4xvKCYFV+A2ZNNICq4vW3BJfvS721DPqvrqCzDhfGJwr06aGbl0SvHmR1ZWOXRguLvzOI7AKvyGTRmZgdTVIrauPr3k2/ofn1Lr97NSZou0kScrUKcEbrw/edIMydbIN9zRdGC4u/M4jsAq/IZNGbmCdbJZafyD5wub4+uczu3aLZNLm7XO/3zNzRvCrC/3XzFcmT7Rt+IULw8WF33kEVuE3ZNJID6yT9NZjqW3vJjZuTm17R2tstvzylizL46t98y4IXDvfN+98qXyMzf11Ybi48DuPwCr8hkxCYPVpZCaj1R9IbXs39ebW9PYd2sFGkUoVcs/4fPJp471zZvsuvdg373x58kTuMfVI4PBb4r5wceF3HoFV+A2ZhMDKSWQyesvhzK7d6fe3Zz7ape6t1Y62imiHUNU8LtJzzhWFR0rkinJleo1n1kzv3DmemTOksVVO5VR200ztHwTWcN+ZF7PjsKzolXG0fvNGkIg2kUzqrcfUhoNqbZ26r06rP6A1NultJ/T2dtERE5m0yKiMMe5RuMfLS0JSaak0qkweP06ePFGZNlWpmapMOk0qH1PwwZ/2sO3fY5NNMs62wYPm+47AchcSgTXCIbCGvU7zfceDowBABgILAMhAYAEAGQgsqtauXet0EwDshovu7pLXrqusrLzssssWLlx40UUXjR1r7aN20AMX3Ye9TvN9t6S2rMm2OjsOy2Q3c7KikowVWzfZ95Hzsyl4O40vnrOdVnwczn5pB4JTQgAgA4EFAGQgsACADAQWAJCBwAIAMhBYAECGfeVlnOXCqXSojMexopvO7qWcRsiX1njf3VlnCUdYAEAGAgsAyEBgAQAZCCwAIAOBBQBkILAAgIw8qjXYdpPVtkodVgzUoHIr2rbBCiZ7ZFvfnS0xYlvtDePFHoyz89eBIywAIAOBBQBkILAAgAwEFgCQgcACADIQWABARh7DGpx97N62ev5W3KO1besmpy0wyYXDBXKiUmLEWVZMgYFqDQAwgiCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIyGMSCks2774n161op8l12nbH3YUzkpCelcMkZ7+fJjdkUQkHHGEBABkILAAgA4EFAGQgsACADAQWAJCBwAIAMsgMa3DhU/vO3sV34Z1sk+s0zoVbd+E4D2fLq1gER1gAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDwmoTDOihoMxhc3eefVZEV9K7hwAg6T7XR2ZgrH780XvEkunGPFor7jCAsAyEBgAQAZCCwAIAOBBQBkILAAgAwEFgCQkUe1BmfLGFixIdv6bnydLpwXwzjbboTbtnXbyi04O6TD2flQMKwBAIoTAgsAyEBgAQAZCCwAIAOBBQBkILAAgIw8qjWYLGNg2/wIVrBitIELZ9BwdoeYXNy2cR623e/PyYq+W7FOi3YIjrAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGXlUazC7JUeLEzhbK8K2IR3FN3bEhTVCrOhmTi4cVGFbjwaCIywAIAOBBQBkILAAgAwEFgCQgcACADIQWABARh7VGkxytjyAyQ1ZcdvYtjoEVgyAoDLbhbPrNF7LxHiTbCvI4WydjIHgCAsAyEBgAQAZCCwAIAOBBQBkILAAgAwEFgCQkcewBioPvlsxAMK2u/gunHPB5OJWjJ+wbeSKs1u3YnHqRT5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIMFutYefOnRUVFVa3ctWqVStXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",width:200}),(0,l.jsxs)("div",{style:{marginLeft:"35px"},children:["群号:","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,a.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)}},86013:function(e,t,n){"use strict";var i=n(59301),r=n(19248);t.Z=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:i.createElement(r.Z,null)}),t}},40192:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(59301);function r(){const[,e]=i.useReducer((e=>e+1),0);return e}},52838:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(37645);const r={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"]}},o={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"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function s(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:s,offset:l,borderRadius:c,visibleFirst:u}=e,h=t/2,d={};return Object.keys(r).forEach((e=>{const p=s&&o[e]||r[e],f=Object.assign(Object.assign({},p),{offset:[0,0],dynamicInset:!0});switch(d[e]=f,a.has(e)&&(f.autoArrow=!1),e){case"top":case"topLeft":case"topRight":f.offset[1]=-h-l;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=h+l;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-h-l;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=h+l}const g=(0,i.wZ)({contentRadius:c,limitVerticalRadius:!0});if(s)switch(e){case"topLeft":case"bottomLeft":f.offset[0]=-g.arrowOffsetHorizontal-h;break;case"topRight":case"bottomRight":f.offset[0]=g.arrowOffsetHorizontal+h;break;case"leftTop":case"rightTop":f.offset[1]=2*-g.arrowOffsetHorizontal+h;break;case"leftBottom":case"rightBottom":f.offset[1]=2*g.arrowOffsetHorizontal-h}f.overflow=function(e,t,n,i){if(!1===i)return{adjustX:!1,adjustY:!1};const r=i&&"object"==typeof i?i:{},o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}const a=Object.assign(Object.assign({},o),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,g,t,n),u&&(f.htmlRegion="visibleFirst")})),d}},47999:function(e,t,n){"use strict";n.d(t,{c4:function(){return o}});var i=n(59301),r=n(57700);const o=["xxl","xl","lg","md","sm","xs"];t.ZP=()=>{const[,e]=(0,r.ZP)(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(o).reverse();return n.forEach(((e,i)=>{const r=e.toUpperCase(),o=`screen${r}Min`,a=`screen${r}`;if(!(t[o]<=t[a]))throw new Error(`${o}<=${a} fails : !(${t[o]}<=${t[a]})`);if(i{const e=new Map;let n=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return i=t,e.forEach((e=>e(i))),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(i),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.keys(t).forEach((e=>{const n=t[e],r=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},i),{[e]:n}))},o=window.matchMedia(n);o.addListener(r),this.matchHandlers[n]={mql:o,listener:r},r(o)}))},unregister(){Object.keys(t).forEach((e=>{const n=t[e],i=this.matchHandlers[n];null==i||i.mql.removeListener(null==i?void 0:i.listener)})),e.clear()}}}),[e])}},82855:function(e,t,n){"use strict";n.d(t,{F:function(){return a},Z:function(){return o}});var i=n(92310),r=n.n(i);function o(e,t,n){return r()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const a=(e,t)=>t||e},1560:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var i=n(2738),r=n(45915),o=n(75914),a=n(59301),s=n(92310),l=n.n(s),c=n(11592),u=n(75030),h=n(48755);const{Option:d}=o.default;function p(e){return(null==e?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const f=(e,t)=>{var n;const{prefixCls:r,className:s,popupClassName:f,dropdownClassName:g,children:m,dataSource:v}=e,y=(0,c.Z)(m);let b;1===y.length&&a.isValidElement(y[0])&&!p(y[0])&&([b]=y);const w=b?()=>b:void 0;let x;x=y.length&&p(y[0])?m:v?v.map((e=>{if(a.isValidElement(e))return e;switch(typeof e){case"string":return a.createElement(d,{key:e,value:e},e);case"object":{const{value:t}=e;return a.createElement(d,{key:t,value:t},e.text)}default:return}})):[];const{getPrefixCls:S}=a.useContext(h.E_),k=S("select",r),[_]=(0,u.Cn)("SelectLike",null===(n=e.dropdownStyle)||void 0===n?void 0:n.zIndex);return a.createElement(o.default,Object.assign({ref:t,suffixIcon:null},(0,i.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:k,popupClassName:f||g,dropdownStyle:Object.assign(Object.assign({},e.dropdownStyle),{zIndex:_}),className:l()(`${k}-auto-complete`,s),mode:o.default.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:w}),x)};var g=a.forwardRef(f);const{Option:m}=o.default,v=(0,r.Z)(g,"dropdownAlign",(e=>(0,i.Z)(e,["visible"]))),y=g;y.Option=m,y._InternalPanelDoNotUseOrYouWillBeFired=v;var b=y},62673:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var i=n(59301),r=n(92310),o=n.n(r),a=n(16632),s=n(8654),l=n(12919),c=n(63872),u=n(48755),h=n(2171),d=n(83397),p=n(56553);var f=i.createContext(null),g=n(36170),m=n(74632),v=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,className:y,rootClassName:b,children:w,indeterminate:x=!1,style:S,onMouseEnter:k,onMouseLeave:_,skipGroup:C=!1,disabled:P}=e,E=v(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:M,direction:L,checkbox:A}=i.useContext(u.E_),T=i.useContext(f),{isFormItemInput:D}=i.useContext(p.aM),N=i.useContext(h.Z),I=null!==(n=(null==T?void 0:T.disabled)||P)&&void 0!==n?n:N,B=i.useRef(E.value),R=i.useRef(null),O=(0,s.sQ)(t,R);i.useEffect((()=>{null==T||T.registerValue(E.value)}),[]),i.useEffect((()=>{if(!C)return E.value!==B.current&&(null==T||T.cancelValue(B.current),null==T||T.registerValue(E.value),B.current=E.value),()=>null==T?void 0:T.cancelValue(E.value)}),[E.value]),i.useEffect((()=>{var e;(null===(e=R.current)||void 0===e?void 0:e.input)&&(R.current.input.indeterminate=x)}),[x]);const F=M("checkbox",r),z=(0,d.Z)(F),[j,$,H]=(0,g.ZP)(F,z),Z=Object.assign({},E);T&&!C&&(Z.onChange=function(){E.onChange&&E.onChange.apply(E,arguments),T.toggleOption&&T.toggleOption({label:w,value:E.value})},Z.name=T.name,Z.checked=T.value.includes(E.value));const K=o()(`${F}-wrapper`,{[`${F}-rtl`]:"rtl"===L,[`${F}-wrapper-checked`]:Z.checked,[`${F}-wrapper-disabled`]:I,[`${F}-wrapper-in-form-item`]:D},null==A?void 0:A.className,y,b,H,z,$),G=o()({[`${F}-indeterminate`]:x},c.A,$),[U,V]=(0,m.Z)(Z.onClick);return j(i.createElement(l.Z,{component:"Checkbox",disabled:I},i.createElement("label",{className:K,style:Object.assign(Object.assign({},null==A?void 0:A.style),S),onMouseEnter:k,onMouseLeave:_,onClick:U},i.createElement(a.Z,Object.assign({},Z,{onClick:V,prefixCls:F,className:G,disabled:I,ref:O})),void 0!==w&&i.createElement("span",{className:`${F}-label`},w))))};var b=i.forwardRef(y),w=n(95190),x=n(2738),S=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{defaultValue:n,children:r,options:a=[],prefixCls:s,className:l,rootClassName:c,style:h,onChange:p}=e,m=S(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:v,direction:y}=i.useContext(u.E_),[k,_]=i.useState(m.value||n||[]),[C,P]=i.useState([]);i.useEffect((()=>{"value"in m&&_(m.value||[])}),[m.value]);const E=i.useMemo((()=>a.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[a]),M=v("checkbox",s),L=`${M}-group`,A=(0,d.Z)(M),[T,D,N]=(0,g.ZP)(M,A),I=(0,x.Z)(m,["value","disabled"]),B=a.length?E.map((e=>i.createElement(b,{prefixCls:M,key:e.value.toString(),disabled:"disabled"in e?e.disabled:m.disabled,value:e.value,checked:k.includes(e.value),onChange:e.onChange,className:`${L}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):r,R={toggleOption:e=>{const t=k.indexOf(e.value),n=(0,w.Z)(k);-1===t?n.push(e.value):n.splice(t,1),"value"in m||_(n),null==p||p(n.filter((e=>C.includes(e))).sort(((e,t)=>E.findIndex((t=>t.value===e))-E.findIndex((e=>e.value===t)))))},value:k,disabled:m.disabled,name:m.name,registerValue:e=>{P((t=>[].concat((0,w.Z)(t),[e])))},cancelValue:e=>{P((t=>t.filter((t=>t!==e))))}},O=o()(L,{[`${L}-rtl`]:"rtl"===y},l,c,N,A,D);return T(i.createElement("div",Object.assign({className:O,style:h},I,{ref:t}),i.createElement(f.Provider,{value:R},B)))}));var _=k;const C=b;C.Group=_,C.__ANT_CHECKBOX=!0;var P=C},36170:function(e,t,n){"use strict";n.d(t,{C2:function(){return l}});var i=n(66604),r=n(63356),o=n(51636),a=n(16931);const s=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,r.Wf)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},(0,r.Wf)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,r.oN)(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${(0,i.bf)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function l(e,t){const n=(0,o.IX)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[s(n)]}t.ZP=(0,a.I$)("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[l(n,e)]}))},74632:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(59301),r=n(16089);function o(e){const t=i.useRef(null),n=()=>{r.Z.cancel(t.current),t.current=null};return[()=>{n(),t.current=(0,r.Z)((()=>{t.current=null}))},i=>{t.current&&(i.stopPropagation(),n()),null==e||e(i)}]}},5269:function(e,t,n){"use strict";var i=n(5472);t.Z=i.Z},38406:function(e,t,n){"use strict";var i=n(59301),r=n(48755),o=n(584);t.Z=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,i.useContext)(r.E_),a=n("empty");switch(t){case"Table":case"List":return i.createElement(o.Z,{image:o.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return i.createElement(o.Z,{image:o.Z.PRESENTED_IMAGE_SIMPLE,className:`${a}-small`});case"Table.filter":return null;default:return i.createElement(o.Z,null)}}},22173:function(e,t,n){"use strict";n.d(t,{Z:function(){return V}});var i=n(59301),r=n(33853),o=n(38819),a=n(92310),s=n.n(a),l=n(96478),c=n(6089),u=n(18929),h=n(2738),d=n(75030);var p=e=>"object"!=typeof e&&"function"!=typeof e||null===e,f=n(52838),g=n(45915),m=n(22703),v=n(32383),y=n(55743),b=n(48755),w=n(83397),x=n(93041),S=n(78857),k=n(57700),_=n(66604),C=n(63356),P=n(46e3),E=n(93873),M=n(34925),L=n(37645),A=n(36305),T=n(16931),D=n(51636);var N=e=>{const{componentCls:t,menuCls:n,colorError:i,colorTextLightSolid:r}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:i,"&:hover":{color:r,backgroundColor:i}}}}}};const I=e=>{const{componentCls:t,menuCls:n,zIndexPopup:i,dropdownArrowDistance:r,sizePopupArrow:o,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:h,colorTextDisabled:d,fontSizeIcon:p,controlPaddingHorizontal:f,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:i,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:P.fJ},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:P.Qt},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:P.Uw},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:P.ly}}},(0,L.ZP)(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:i,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},(0,C.Wf)(e)),{[n]:Object.assign(Object.assign({padding:h,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,C.Qy)(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${(0,_.bf)(c)} ${(0,_.bf)(f)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,_.bf)(c)} ${(0,_.bf)(f)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,C.Qy)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:d,cursor:"not-allowed","&:hover":{color:d,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,_.bf)(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${(0,_.bf)(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(f).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:d,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[(0,P.oN)(e,"slide-up"),(0,P.oN)(e,"slide-down"),(0,E.Fm)(e,"move-up"),(0,E.Fm)(e,"move-down"),(0,M._y)(e,"zoom-big")]]};var B=(0,T.I$)("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:i,componentCls:r}=e,o=(0,D.IX)(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:i});return[I(o),N(o)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},(0,L.wZ)({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),(0,A.w)(e))),{resetStyle:!1});const R=e=>{var t;const{menu:n,arrow:a,prefixCls:g,children:_,trigger:C,disabled:P,dropdownRender:E,getPopupContainer:M,overlayClassName:L,rootClassName:A,overlayStyle:T,open:D,onOpenChange:N,visible:I,onVisibleChange:R,mouseEnterDelay:O=.15,mouseLeaveDelay:F=.1,autoAdjustOverflow:z=!0,placement:j="",overlay:$,transitionName:H}=e,{getPopupContainer:Z,getPrefixCls:K,direction:G,dropdown:U}=i.useContext(b.E_);(0,v.ln)("Dropdown");const V=i.useMemo((()=>{const e=K();return void 0!==H?H:j.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[K,j,H]),W=i.useMemo((()=>j?j.includes("Center")?j.slice(0,j.indexOf("Center")):j:"rtl"===G?"bottomRight":"bottomLeft"),[j,G]);const q=K("dropdown",g),Y=(0,w.Z)(q),[X,Q,J]=B(q,Y),[,ee]=(0,k.ZP)(),te=i.Children.only(p(_)?i.createElement("span",null,_):_),ne=(0,m.Tm)(te,{className:s()(`${q}-trigger`,{[`${q}-rtl`]:"rtl"===G},te.props.className),disabled:null!==(t=te.props.disabled)&&void 0!==t?t:P}),ie=P?[]:C,re=!!(null==ie?void 0:ie.includes("contextMenu")),[oe,ae]=(0,u.Z)(!1,{value:null!=D?D:I}),se=(0,c.Z)((e=>{null==N||N(e,{source:"trigger"}),null==R||R(e),ae(e)})),le=s()(L,A,Q,J,Y,null==U?void 0:U.className,{[`${q}-rtl`]:"rtl"===G}),ce=(0,f.Z)({arrowPointAtCenter:"object"==typeof a&&a.pointAtCenter,autoAdjustOverflow:z,offset:ee.marginXXS,arrowWidth:a?ee.sizePopupArrow:0,borderRadius:ee.borderRadius}),ue=i.useCallback((()=>{(null==n?void 0:n.selectable)&&(null==n?void 0:n.multiple)||(null==N||N(!1,{source:"menu"}),ae(!1))}),[null==n?void 0:n.selectable,null==n?void 0:n.multiple]),[he,de]=(0,d.Cn)("Dropdown",null==T?void 0:T.zIndex);let pe=i.createElement(l.Z,Object.assign({alignPoint:re},(0,h.Z)(e,["rootClassName"]),{mouseEnterDelay:O,mouseLeaveDelay:F,visible:oe,builtinPlacements:ce,arrow:!!a,overlayClassName:le,prefixCls:q,getPopupContainer:M||Z,transitionName:V,trigger:ie,overlay:()=>{let e;return e=(null==n?void 0:n.items)?i.createElement(x.Z,Object.assign({},n)):"function"==typeof $?$():$,E&&(e=E(e)),e=i.Children.only("string"==typeof e?i.createElement("span",null,e):e),i.createElement(S.J,{prefixCls:`${q}-menu`,rootClassName:s()(J,Y),expandIcon:i.createElement("span",{className:`${q}-menu-submenu-arrow`},"rtl"===G?i.createElement(r.Z,{className:`${q}-menu-submenu-arrow-icon`}):i.createElement(o.Z,{className:`${q}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ue,validator:e=>{let{mode:t}=e}},e)},placement:W,onVisibleChange:se,overlayStyle:Object.assign(Object.assign(Object.assign({},null==U?void 0:U.style),T),{zIndex:he})}),ne);return he&&(pe=i.createElement(y.Z.Provider,{value:de},pe)),X(pe)},O=(0,g.Z)(R,"align",void 0,"dropdown",(e=>e));R._InternalPanelDoNotUseOrYouWillBeFired=e=>i.createElement(O,Object.assign({},e),i.createElement("span",null));var F=R,z=n(18785),j=n(20743),$=n(77736),H=n(70045),Z=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{getPopupContainer:t,getPrefixCls:n,direction:r}=i.useContext(b.E_),{prefixCls:o,type:a="default",danger:l,disabled:c,loading:u,onClick:h,htmlType:d,children:p,className:f,menu:g,arrow:m,autoFocus:v,overlay:y,trigger:w,align:x,open:S,onOpenChange:k,placement:_,getPopupContainer:C,href:P,icon:E=i.createElement(z.Z,null),title:M,buttonsRender:L=(e=>e),mouseEnterDelay:A,mouseLeaveDelay:T,overlayClassName:D,overlayStyle:N,destroyPopupOnHide:I,dropdownRender:B}=e,R=Z(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),O=n("dropdown",o),K=`${O}-button`,G={menu:g,arrow:m,autoFocus:v,align:x,disabled:c,trigger:c?[]:w,onOpenChange:k,getPopupContainer:C||t,mouseEnterDelay:A,mouseLeaveDelay:T,overlayClassName:D,overlayStyle:N,destroyPopupOnHide:I,dropdownRender:B},{compactSize:U,compactItemClassnames:V}=(0,H.ri)(O,r),W=s()(K,V,f);"overlay"in e&&(G.overlay=y),"open"in e&&(G.open=S),G.placement="placement"in e?_:"rtl"===r?"bottomLeft":"bottomRight";const q=i.createElement(j.ZP,{type:a,danger:l,disabled:c,loading:u,onClick:h,htmlType:d,href:P,title:M},p),Y=i.createElement(j.ZP,{type:a,danger:l,icon:E}),[X,Q]=L([q,Y]);return i.createElement($.Z.Compact,Object.assign({className:W,size:U,block:!0},R),X,i.createElement(F,Object.assign({},G),Q))};K.__ANT_BUTTON=!0;var G=K;const U=F;U.Button=G;var V=U},584:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var i=n(59301),r=n(92310),o=n.n(r),a=n(9017),s=n(17835),l=n(57700);var c=()=>{const[,e]=(0,l.ZP)(),[t]=(0,a.Z)("Empty"),n=new s.t(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return i.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(null==t?void 0:t.description)||"Empty"),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.67)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),i.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),i.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),i.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),i.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),i.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),i.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},i.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),i.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};var u=()=>{const[,e]=(0,l.ZP)(),[t]=(0,a.Z)("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:c}=e,{borderColor:u,shadowColor:h,contentColor:d}=(0,i.useMemo)((()=>({borderColor:new s.t(n).onBackground(c).toHexString(),shadowColor:new s.t(r).onBackground(c).toHexString(),contentColor:new s.t(o).onBackground(c).toHexString()})),[n,r,o,c]);return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(null==t?void 0:t.description)||"Empty"),i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:h,cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:u},i.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),i.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:d}))))},h=n(16931),d=n(51636);const p=e=>{const{componentCls:t,margin:n,marginXS:i,marginXL:r,fontSize:o,lineHeight:a}=e;return{[t]:{marginInline:i,fontSize:o,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:i,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:i,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var f=(0,h.I$)("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:i}=e,r=(0,d.IX)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:i(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:i(n).mul(.875).equal()});return[p(r)]})),g=n(48755),m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{className:t,rootClassName:n,prefixCls:r,image:s=v,description:l,children:c,imageStyle:u,style:h,classNames:d,styles:p}=e,b=m(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:w,direction:x,className:S,style:k,classNames:_,styles:C}=(0,g.dj)("empty"),P=w("empty",r),[E,M,L]=f(P),[A]=(0,a.Z)("Empty"),T=void 0!==l?l:null==A?void 0:A.description,D="string"==typeof T?T:"empty";let N=null;return N="string"==typeof s?i.createElement("img",{alt:D,src:s}):s,E(i.createElement("div",Object.assign({className:o()(M,L,P,S,{[`${P}-normal`]:s===y,[`${P}-rtl`]:"rtl"===x},t,n,_.root,null==d?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},C.root),k),null==p?void 0:p.root),h)},b),i.createElement("div",{className:o()(`${P}-image`,_.image,null==d?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},u),C.image),null==p?void 0:p.image)},N),T&&i.createElement("div",{className:o()(`${P}-description`,_.description,null==d?void 0:d.description),style:Object.assign(Object.assign({},C.description),null==p?void 0:p.description)},T),c&&i.createElement("div",{className:o()(`${P}-footer`,_.footer,null==d?void 0:d.footer),style:Object.assign(Object.assign({},C.footer),null==p?void 0:p.footer)},c)))};b.PRESENTED_IMAGE_DEFAULT=v,b.PRESENTED_IMAGE_SIMPLE=y;var w=b},24971:function(e,t,n){"use strict";var i=n(59301),r=n(56553),o=n(48755);t.Z=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var a,s;const{variant:l,[e]:c}=i.useContext(o.E_),u=i.useContext(r.pg),h=null==c?void 0:c.variant;let d;d=void 0!==t?t:!1===n?"borderless":null!==(s=null!==(a=null!=u?u:h)&&void 0!==a?a:l)&&void 0!==s?s:"outlined";const p=o.tr.includes(d);return[d,p]}},43830:function(e,t,n){"use strict";n.d(t,{Z:function(){return Ve}});var i=n(56553),r=n(95190),o=n(59301),a=n(92310),s=n.n(a),l=n(77900),c=n(86641),u=n(83397);function h(e){const[t,n]=o.useState(e);return o.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}var d=n(66604),p=n(63356),f=n(34925),g=n(34961),m=n(51636),v=n(16931);var y=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},\n opacity ${e.motionDurationFast} ${e.motionEaseInOut},\n transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}};const b=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,d.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,d.bf)(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),w=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},x=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,p.Wf)(e)),b(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},w(e,e.controlHeightSM)),"&-large":Object.assign({},w(e,e.controlHeightLG))})}},S=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:i,antCls:r,labelRequiredMarkColor:o,labelColor:a,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:h}=e;return{[t]:Object.assign(Object.assign({},(0,p.Wf)(e)),{marginBottom:h,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden${r}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:a,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:f.kr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},k=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},_=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:i}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:i,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},C=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),P=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:i}=e;return{[`${n} ${n}-label`]:C(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${i}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},E=e=>{const{componentCls:t,formItemCls:n,antCls:i}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n ${i}-col-24${n}-label,\n ${i}-col-xl-24${n}-label`]:C(e)}},[`@media (max-width: ${(0,d.bf)(e.screenXSMax)})`]:[P(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${i}-col-xs-24${n}-label`]:C(e)}}}],[`@media (max-width: ${(0,d.bf)(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${i}-col-sm-24${n}-label`]:C(e)}}},[`@media (max-width: ${(0,d.bf)(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${i}-col-md-24${n}-label`]:C(e)}}},[`@media (max-width: ${(0,d.bf)(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${i}-col-lg-24${n}-label`]:C(e)}}}}},M=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,\n ${n}-col-24${t}-label,\n ${n}-col-xl-24${t}-label`]:C(e),[`@media (max-width: ${(0,d.bf)(e.screenXSMax)})`]:[P(e),{[t]:{[`${n}-col-xs-24${t}-label`]:C(e)}}],[`@media (max-width: ${(0,d.bf)(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:C(e)}},[`@media (max-width: ${(0,d.bf)(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:C(e)}},[`@media (max-width: ${(0,d.bf)(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:C(e)}}}},L=(e,t)=>(0,m.IX)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t});var A=(0,v.I$)("Form",((e,t)=>{let{rootPrefixCls:n}=t;const i=L(e,n);return[x(i),S(i),y(i),k(i,i.componentCls),k(i,i.formItemCls),_(i),E(i),M(i),(0,g.Z)(i),f.kr]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0})),{order:-1e3});const T=[];function D(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"==typeof e?e:`${t}-${i}`,error:e,errorStatus:n}}var N=e=>{let{help:t,helpStatus:n,errors:a=T,warnings:d=T,className:p,fieldId:f,onVisibleChanged:g}=e;const{prefixCls:m}=o.useContext(i.Rk),v=`${m}-item-explain`,y=(0,u.Z)(m),[b,w,x]=A(m,y),S=o.useMemo((()=>(0,c.Z)(m)),[m]),k=h(a),_=h(d),C=o.useMemo((()=>null!=t?[D(t,"help",n)]:[].concat((0,r.Z)(k.map(((e,t)=>D(e,"error","error",t)))),(0,r.Z)(_.map(((e,t)=>D(e,"warning","warning",t)))))),[t,n,k,_]),P=o.useMemo((()=>{const e={};return C.forEach((t=>{let{key:n}=t;e[n]=(e[n]||0)+1})),C.map(((t,n)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key})))}),[C]),E={};return f&&(E.id=`${f}_help`),b(o.createElement(l.ZP,{motionDeadline:S.motionDeadline,motionName:`${m}-show-help`,visible:!!P.length,onVisibleChanged:g},(e=>{const{className:t,style:n}=e;return o.createElement("div",Object.assign({},E,{className:s()(v,t,x,y,p,w),style:n}),o.createElement(l.V4,Object.assign({keys:P},(0,c.Z)(m),{motionName:`${m}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:i,className:r,style:a}=e;return o.createElement("div",{key:t,className:s()(r,{[`${v}-${i}`]:i}),style:a},n)})))})))},I=n(74034),B=n(48755),R=n(2171),O=n(31756),F=n(23069),z=n(76846);const j=e=>"object"==typeof e&&null!=e&&1===e.nodeType,$=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,H=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightot||o>e&&a=t&&s>=n?o-e-i:a>t&&sn?a-t+r:0,K=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},G=(e,t)=>{var n,i,r,o;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,h="function"==typeof c?c:e=>e!==c;if(!j(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,p=[];let f=e;for(;j(f)&&h(f);){if(f=K(f),f===d){p.push(f);break}null!=f&&f===document.body&&H(f)&&!H(document.documentElement)||null!=f&&H(f,u)&&p.push(f)}const g=null!=(i=null==(n=window.visualViewport)?void 0:n.width)?i:innerWidth,m=null!=(o=null==(r=window.visualViewport)?void 0:r.height)?o:innerHeight,{scrollX:v,scrollY:y}=window,{height:b,width:w,top:x,right:S,bottom:k,left:_}=e.getBoundingClientRect(),{top:C,right:P,bottom:E,left:M}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let L="start"===s||"nearest"===s?x-C:"end"===s?k+E:x+b/2-C+E,A="center"===l?_+w/2-M+P:"end"===l?S+P:_-M;const T=[];for(let e=0;e=0&&_>=0&&k<=m&&S<=g&&(t===d&&!H(t)||x>=r&&k<=c&&_>=u&&S<=o))return T;const h=getComputedStyle(t),f=parseInt(h.borderLeftWidth,10),C=parseInt(h.borderTopWidth,10),P=parseInt(h.borderRightWidth,10),E=parseInt(h.borderBottomWidth,10);let M=0,D=0;const N="offsetWidth"in t?t.offsetWidth-t.clientWidth-f-P:0,I="offsetHeight"in t?t.offsetHeight-t.clientHeight-C-E:0,B="offsetWidth"in t?0===t.offsetWidth?0:i/t.offsetWidth:0,R="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(d===t)M="start"===s?L:"end"===s?L-m:"nearest"===s?Z(y,y+m,m,C,E,y+L,y+L+b,b):L-m/2,D="start"===l?A:"center"===l?A-g/2:"end"===l?A-g:Z(v,v+g,g,f,P,v+A,v+A+w,w),M=Math.max(0,M+y),D=Math.max(0,D+v);else{M="start"===s?L-r-C:"end"===s?L-c+E+I:"nearest"===s?Z(r,c,n,C,E+I,L,L+b,b):L-(r+n/2)+I/2,D="start"===l?A-u-f:"center"===l?A-(u+i/2)+N/2:"end"===l?A-o+P+N:Z(u,o,i,f,P+N,A,A+w,w);const{scrollLeft:e,scrollTop:a}=t;M=0===R?0:Math.max(0,Math.min(a+M/R,t.scrollHeight-n/R+I)),D=0===B?0:Math.max(0,Math.min(e+D/B,t.scrollWidth-i/B+N)),L+=a-M,A+=e-D}T.push({el:t,top:M,left:D})}return T};function U(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(G(e,t));const i="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:r,top:o,left:a}of G(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=o-n.top+n.bottom,t=a-n.left+n.right;r.scroll({top:e,left:t,behavior:i})}}const V=["parentNode"];function W(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function q(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return V.includes(n)?`form_item_${n}`:n}function Y(e,t,n,i,r,o){let a=i;return void 0!==o?a=o:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||r&&n.validated)&&(a="success"),a}var X=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);rnull!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const i=Q(e);t?n.current[i]=t:delete n.current[i]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{focus:n}=t,r=X(t,["focus"]),o=J(e,i);o&&(U(o,Object.assign({scrollMode:"if-needed",block:"nearest"},r)),n&&i.focusField(e))},focusField:e=>{var t,n;const r=i.getFieldInstance(e);"function"==typeof(null==r?void 0:r.focus)?r.focus():null===(n=null===(t=J(e,i))||void 0===t?void 0:t.focus)||void 0===n||n.call(t)},getFieldInstance:e=>{const t=Q(e);return n.current[t]}})),[e,t]);return[i]}var te=n(98350),ne=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const n=o.useContext(R.Z),{getPrefixCls:r,direction:a,requiredMark:l,colon:c,scrollToFirstError:h,className:d,style:p}=(0,B.dj)("form"),{prefixCls:f,className:g,rootClassName:m,size:v,disabled:y=n,form:b,colon:w,labelAlign:x,labelWrap:S,labelCol:k,wrapperCol:_,hideRequiredMark:C,layout:P="horizontal",scrollToFirstError:E,requiredMark:M,onFinishFailed:L,name:T,style:D,feedbackIcons:N,variant:z}=e,j=ne(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),$=(0,O.Z)(v),H=o.useContext(te.Z);const Z=o.useMemo((()=>void 0!==M?M:!C&&(void 0===l||l)),[C,M,l]),K=null!=w?w:c,G=r("form",f),U=(0,u.Z)(G),[V,W,q]=A(G,U),Y=s()(G,`${G}-${P}`,{[`${G}-hide-required-mark`]:!1===Z,[`${G}-rtl`]:"rtl"===a,[`${G}-${$}`]:$},q,U,W,d,g,m),[X]=ee(b),{__INTERNAL__:Q}=X;Q.name=T;const J=o.useMemo((()=>({name:T,labelAlign:x,labelCol:k,labelWrap:S,wrapperCol:_,vertical:"vertical"===P,colon:K,requiredMark:Z,itemRef:Q.itemRef,form:X,feedbackIcons:N})),[T,x,k,_,P,K,Z,X,N]),ie=o.useRef(null);o.useImperativeHandle(t,(()=>{var e;return Object.assign(Object.assign({},X),{nativeElement:null===(e=ie.current)||void 0===e?void 0:e.nativeElement})}));const re=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=Object.assign(Object.assign({},n),e)),X.scrollToField(t,n)}};return V(o.createElement(i.pg.Provider,{value:z},o.createElement(R.n,{disabled:y},o.createElement(F.Z.Provider,{value:$},o.createElement(i.RV,{validateMessages:H},o.createElement(i.q3.Provider,{value:J},o.createElement(I.ZP,Object.assign({id:T},j,{name:T,onFinishFailed:e=>{if(null==L||L(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==E)return void re(E,t);void 0!==h&&re(h,t)}},form:X,ref:ie,style:Object.assign(Object.assign({},p),D),className:Y}))))))))};var re=o.forwardRef(ie),oe=n(41799),ae=n(8654),se=n(22703),le=n(32383),ce=n(11592);const ue=()=>{const{status:e,errors:t=[],warnings:n=[]}=o.useContext(i.aM);return{status:e,errors:t,warnings:n}};ue.Context=i.aM;var he=ue,de=n(16089);var pe=n(29194),fe=n(34280),ge=n(2738),me=n(65970),ve=n(70425),ye=n(5472);const be=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}};var we=(0,v.bk)(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const i=L(e,n);return[be(i)]})),xe=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,status:n,labelCol:r,wrapperCol:a,children:l,errors:c,warnings:u,_internalItemRender:h,extra:d,help:p,fieldId:f,marginBottom:g,onErrorVisibleChanged:m,label:v}=e,y=`${t}-item`,b=o.useContext(i.q3),w=o.useMemo((()=>{let e=Object.assign({},a||b.wrapperCol||{});if(null===v&&!r&&!a&&b.labelCol){[void 0,"xs","sm","md","lg","xl","xxl"].forEach((t=>{const n=t?[t]:[],i=(0,ve.U2)(b.labelCol,n),r="object"==typeof i?i:{},o=(0,ve.U2)(e,n);"span"in r&&!("offset"in("object"==typeof o?o:{}))&&r.span<24&&(e=(0,ve.t8)(e,[].concat(n,["offset"]),r.span))}))}return e}),[a,b]),x=s()(`${y}-control`,w.className),S=o.useMemo((()=>{const{labelCol:e,wrapperCol:t}=b;return xe(b,["labelCol","wrapperCol"])}),[b]),k=o.useRef(null),[_,C]=o.useState(0);(0,fe.Z)((()=>{d&&k.current?C(k.current.clientHeight):C(0)}),[d]);const P=o.createElement("div",{className:`${y}-control-input`},o.createElement("div",{className:`${y}-control-input-content`},l)),E=o.useMemo((()=>({prefixCls:t,status:n})),[t,n]),M=null!==g||c.length||u.length?o.createElement(i.Rk.Provider,{value:E},o.createElement(N,{fieldId:f,errors:c,warnings:u,help:p,helpStatus:n,className:`${y}-explain-connected`,onVisibleChanged:m})):null,L={};f&&(L.id=`${f}_extra`);const A=d?o.createElement("div",Object.assign({},L,{className:`${y}-extra`,ref:k}),d):null,T=M||A?o.createElement("div",{className:`${y}-additional`,style:g?{minHeight:g+_}:{}},M,A):null,D=h&&"pro_table_render"===h.mark&&h.render?h.render(e,{input:P,errorList:M,extra:A}):o.createElement(o.Fragment,null,P,T);return o.createElement(i.q3.Provider,{value:S},o.createElement(ye.Z,Object.assign({},w,{className:x}),D),o.createElement(we,{prefixCls:t}))},ke=n(14809),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Ce=n(7657),Pe=function(e,t){return o.createElement(Ce.Z,(0,ke.Z)({},e,{ref:t,icon:_e}))};var Ee=o.forwardRef(Pe),Me=n(9017),Le=n(85981),Ae=n(55544),Te=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,label:n,htmlFor:r,labelCol:a,labelAlign:l,colon:c,required:u,requiredMark:h,tooltip:d,vertical:p}=e;var f;const[g]=(0,Me.Z)("Form"),{labelAlign:m,labelCol:v,labelWrap:y,colon:b}=o.useContext(i.q3);if(!n)return null;const w=a||v||{},x=l||m,S=`${t}-item-label`,k=s()(S,"left"===x&&`${S}-left`,w.className,{[`${S}-wrap`]:!!y});let _=n;const C=!0===c||!1!==b&&!1!==c;C&&!p&&"string"==typeof n&&n.trim()&&(_=n.replace(/[:|:]\s*$/,""));const P=function(e){return e?"object"!=typeof e||o.isValidElement(e)?{title:e}:e:null}(d);if(P){const{icon:e=o.createElement(Ee,null)}=P,n=Te(P,["icon"]),i=o.createElement(Ae.Z,Object.assign({},n),o.cloneElement(e,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));_=o.createElement(o.Fragment,null,_,i)}const E="optional"===h,M="function"==typeof h,L=!1===h;let A;M?_=h(_,{required:!!u}):E&&!u&&(_=o.createElement(o.Fragment,null,_,o.createElement("span",{className:`${t}-item-optional`,title:""},(null==g?void 0:g.optional)||(null===(f=Le.Z.Form)||void 0===f?void 0:f.optional)))),L?A="hidden":(E||M)&&(A="optional");const T=s()({[`${t}-item-required`]:u,[`${t}-item-required-mark-${A}`]:A,[`${t}-item-no-colon`]:!C});return o.createElement(ye.Z,Object.assign({},w,{className:k}),o.createElement("label",{htmlFor:r,className:T,title:"string"==typeof n?n:""},_))},Ne=n(29679),Ie=n(19248),Be=n(96512),Re=n(58617);const Oe={success:Ne.Z,warning:Be.Z,error:Ie.Z,validating:Re.Z};function Fe(e){let{children:t,errors:n,warnings:r,hasFeedback:a,validateStatus:l,prefixCls:c,meta:u,noStyle:h}=e;const d=`${c}-item`,{feedbackIcons:p}=o.useContext(i.q3),f=Y(n,r,u,null,!!a,l),{isFormItemInput:g,status:m,hasFeedback:v,feedbackIcon:y}=o.useContext(i.aM),b=o.useMemo((()=>{var e;let t;if(a){const i=!0!==a&&a.icons||p,l=f&&(null===(e=null==i?void 0:i({status:f,errors:n,warnings:r}))||void 0===e?void 0:e[f]),c=f&&Oe[f];t=!1!==l&&c?o.createElement("span",{className:s()(`${d}-feedback-icon`,`${d}-feedback-icon-${f}`)},l||o.createElement(c,null)):null}const i={status:f||"",errors:n,warnings:r,hasFeedback:!!a,feedbackIcon:t,isFormItemInput:!0};return h&&(i.status=(null!=f?f:m)||"",i.isFormItemInput=g,i.hasFeedback=!!(null!=a?a:v),i.feedbackIcon=void 0!==a?i.feedbackIcon:y),i}),[f,a,h,g,m]);return o.createElement(i.aM.Provider,{value:b},t)}var ze=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{if(T&&E.current){const e=getComputedStyle(E.current);I(parseInt(e.marginBottom,10))}}),[T,D]);const B=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=e?M:p.errors,n=e?L:p.warnings;return Y(t,n,p,"",!!f,d)}(),R=s()(k,n,r,{[`${k}-with-help`]:A||M.length||L.length,[`${k}-has-feedback`]:B&&f,[`${k}-has-success`]:"success"===B,[`${k}-has-warning`]:"warning"===B,[`${k}-has-error`]:"error"===B,[`${k}-is-validating`]:"validating"===B,[`${k}-hidden`]:g,[`${k}-${x}`]:x});return o.createElement("div",{className:R,style:a,ref:E},o.createElement(me.Z,Object.assign({className:`${k}-row`},(0,ge.Z)(S,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),o.createElement(De,Object.assign({htmlFor:v},e,{requiredMark:_,required:null!=y?y:b,prefixCls:t,vertical:P})),o.createElement(Se,Object.assign({},e,p,{errors:M,warnings:L,prefixCls:t,status:B,help:l,marginBottom:N,onErrorVisibleChanged:e=>{e||I(null)}}),o.createElement(i.qI.Provider,{value:w},o.createElement(Fe,{prefixCls:t,meta:p,errors:p.errors,warnings:p.warnings,hasFeedback:f,validateStatus:B},m)))),!!N&&o.createElement("div",{className:`${k}-margin-offset`,style:{marginBottom:-N}}))}const $e=o.memo((e=>{let{children:t}=e;return t}),((e,t)=>function(e,t){const n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&n.every((n=>{const i=e[n],r=t[n];return i===r||"function"==typeof i||"function"==typeof r}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const He=function(e){const{name:t,noStyle:n,className:a,dependencies:l,prefixCls:c,shouldUpdate:h,rules:d,children:p,required:f,label:g,messageVariables:m,trigger:v="onChange",validateTrigger:y,hidden:b,help:w,layout:x}=e,{getPrefixCls:S}=o.useContext(B.E_),{name:k}=o.useContext(i.q3),_=function(e){if("function"==typeof e)return e;const t=(0,ce.Z)(e);return t.length<=1?t[0]:t}(p),C="function"==typeof _,P=o.useContext(i.qI),{validateTrigger:E}=o.useContext(I.zb),M=void 0!==y?y:E,L=!(null==t),T=S("form",c),D=(0,u.Z)(T),[N,R,O]=A(T,D);(0,le.ln)("Form.Item");const F=o.useContext(I.ZM),z=o.useRef(null),[j,$]=function(e){const[t,n]=o.useState(e),i=o.useRef(null),r=o.useRef([]),a=o.useRef(!1);return o.useEffect((()=>(a.current=!1,()=>{a.current=!0,de.Z.cancel(i.current),i.current=null})),[]),[t,function(e){a.current||(null===i.current&&(r.current=[],i.current=(0,de.Z)((()=>{i.current=null,n((e=>{let t=e;return r.current.forEach((e=>{t=e(t)})),t}))}))),r.current.push(e))}]}({}),[H,Z]=(0,oe.Z)((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),K=(e,t)=>{$((n=>{const i=Object.assign({},n),o=[].concat((0,r.Z)(e.name.slice(0,-1)),(0,r.Z)(t)).join("__SPLIT__");return e.destroy?delete i[o]:i[o]=e,i}))},[G,U]=o.useMemo((()=>{const e=(0,r.Z)(H.errors),t=(0,r.Z)(H.warnings);return Object.values(j).forEach((n=>{e.push.apply(e,(0,r.Z)(n.errors||[])),t.push.apply(t,(0,r.Z)(n.warnings||[]))})),[e,t]}),[j,H.errors,H.warnings]),V=function(){const{itemRef:e}=o.useContext(i.q3),t=o.useRef({});return function(n,i){const r=i&&"object"==typeof i&&(0,ae.C4)(i),o=n.join("_");return t.current.name===o&&t.current.originRef===r||(t.current.name=o,t.current.originRef=r,t.current.ref=(0,ae.sQ)(e(n),r)),t.current.ref}}();function Y(t,i,r){return n&&!b?o.createElement(Fe,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:H,errors:G,warnings:U,noStyle:!0},t):o.createElement(je,Object.assign({key:"row"},e,{className:s()(a,O,D,R),prefixCls:T,fieldId:i,isRequired:r,errors:G,warnings:U,meta:H,onSubItemMetaChange:K,layout:x}),t)}if(!L&&!C&&!l)return N(Y(_));let X={};return"string"==typeof g?X.label=g:t&&(X.label=String(t)),m&&(X=Object.assign(Object.assign({},X),m)),N(o.createElement(I.gN,Object.assign({},e,{messageVariables:X,trigger:v,validateTrigger:M,onMetaChange:e=>{const t=null==F?void 0:F.getKey(e.name);if(Z(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==w&&P){let n=e.name;if(e.destroy)n=z.current||n;else if(void 0!==t){const[e,i]=t;n=[e].concat((0,r.Z)(i)),z.current=n}P(e,n)}}}),((n,i,a)=>{const s=W(t).length&&i?i.name:[],c=q(s,k),u=void 0!==f?f:!!(null==d?void 0:d.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(a);return(null==t?void 0:t.required)&&!(null==t?void 0:t.warningOnly)}return!1}))),p=Object.assign({},n);let g=null;if(Array.isArray(_)&&L)g=_;else if(C&&(!h&&!l||L));else if(!l||C||L)if(o.isValidElement(_)){const t=Object.assign(Object.assign({},_.props),p);if(t.id||(t.id=c),w||G.length>0||U.length>0||e.extra){const n=[];(w||G.length>0)&&n.push(`${c}_help`),e.extra&&n.push(`${c}_extra`),t["aria-describedby"]=n.join(" ")}G.length>0&&(t["aria-invalid"]="true"),u&&(t["aria-required"]="true"),(0,ae.Yr)(_)&&(t.ref=V(s,_));new Set([].concat((0,r.Z)(W(v)),(0,r.Z)(W(M)))).forEach((e=>{t[e]=function(){for(var t,n,i,r,o,a=arguments.length,s=new Array(a),l=0;l{var{prefixCls:t,children:n}=e,r=Ke(e,["prefixCls","children"]);const{getPrefixCls:a}=o.useContext(B.E_),s=a("form",t),l=o.useMemo((()=>({prefixCls:s,status:"error"})),[s]);return o.createElement(I.aV,Object.assign({},r),((e,t,r)=>o.createElement(i.Rk.Provider,{value:l},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))};const Ue=re;Ue.Item=Ze,Ue.List=Ge,Ue.ErrorList=N,Ue.useForm=ee,Ue.useFormInstance=function(){const{form:e}=o.useContext(i.q3);return e},Ue.useWatch=I.qo,Ue.Provider=i.RV,Ue.create=()=>{};var Ve=Ue},98283:function(e,t,n){"use strict";const i=(0,n(59301).createContext)({});t.Z=i},5472:function(e,t,n){"use strict";var i=n(59301),r=n(92310),o=n.n(r),a=n(48755),s=n(98283),l=n(26705),c=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=i.useContext(a.E_),{gutter:d,wrap:p}=i.useContext(s.Z),{prefixCls:f,span:g,order:m,offset:v,push:y,pull:b,className:w,children:x,flex:S,style:k}=e,_=c(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=n("col",f),[P,E,M]=(0,l.cG)(C),L={};let A={};h.forEach((t=>{let n={};const i=e[t];"number"==typeof i?n.span=i:"object"==typeof i&&(n=i||{}),delete _[t],A=Object.assign(Object.assign({},A),{[`${C}-${t}-${n.span}`]:void 0!==n.span,[`${C}-${t}-order-${n.order}`]:n.order||0===n.order,[`${C}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${C}-${t}-push-${n.push}`]:n.push||0===n.push,[`${C}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${C}-rtl`]:"rtl"===r}),n.flex&&(A[`${C}-${t}-flex`]=!0,L[`--${C}-${t}-flex`]=u(n.flex))}));const T=o()(C,{[`${C}-${g}`]:void 0!==g,[`${C}-order-${m}`]:m,[`${C}-offset-${v}`]:v,[`${C}-push-${y}`]:y,[`${C}-pull-${b}`]:b},w,A,E,M),D={};if(d&&d[0]>0){const e=d[0]/2;D.paddingLeft=e,D.paddingRight=e}return S&&(D.flex=u(S),!1!==p||D.minWidth||(D.minWidth=0)),P(i.createElement("div",Object.assign({},_,{style:Object.assign(Object.assign(Object.assign({},D),k),L),className:T,ref:t}),x))}));t.Z=d},13783:function(e,t,n){"use strict";var i=n(59301),r=n(34280),o=n(40192),a=n(47999);t.Z=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,i.useRef)(t),s=(0,o.Z)(),l=(0,a.ZP)();return(0,r.Z)((()=>{const t=l.subscribe((t=>{n.current=t,e&&s()}));return()=>l.unsubscribe(t)}),[]),n.current}},65970:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(59301),r=n(92310),o=n.n(r),a=n(47999),s=n(48755),l=n(13783);var c=n(98283),u=n(26705),h=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n{const{prefixCls:n,justify:r,align:p,className:f,style:g,children:m,gutter:v=0,wrap:y}=e,b=h(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:w,direction:x}=i.useContext(s.E_),S=(0,l.Z)(!0,null),k=d(p,S),_=d(r,S),C=w("row",n),[P,E,M]=(0,u.VM)(C),L=function(e,t){const n=[void 0,void 0],i=Array.isArray(e)?e:[e,void 0],r=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return i.forEach(((e,t)=>{if("object"==typeof e&&null!==e)for(let i=0;i0?L[0]/-2:void 0;D&&(T.marginLeft=D,T.marginRight=D);const[N,I]=L;T.rowGap=I;const B=i.useMemo((()=>({gutter:[N,I],wrap:y})),[N,I,y]);return P(i.createElement(c.Z.Provider,{value:B},i.createElement("div",Object.assign({},b,{className:A,style:Object.assign(Object.assign({},T),g),ref:t}),m)))}))},49397:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var i=n(59301),r=n(92310),o=n.n(r),a=n(36901),s=n(8654),l=n(62487),c=n(86013),u=n(82855),h=n(48755),d=n(2171),p=n(83397),f=n(31756),g=n(56553),m=n(24971),v=n(70045),y=n(23826),b=n(53075);var w=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,bordered:r=!0,status:x,size:S,disabled:k,onBlur:_,onFocus:C,suffix:P,allowClear:E,addonAfter:M,addonBefore:L,className:A,style:T,styles:D,rootClassName:N,onChange:I,classNames:B,variant:R}=e,O=w(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:F,direction:z,allowClear:j,autoComplete:$,className:H,style:Z,classNames:K,styles:G}=(0,h.dj)("input"),U=F("input",n),V=(0,i.useRef)(null),W=(0,p.Z)(U),[q,Y,X]=(0,b.TI)(U,N),[Q]=(0,b.ZP)(U,W),{compactSize:J,compactItemClassnames:ee}=(0,v.ri)(U,z),te=(0,f.Z)((e=>{var t;return null!==(t=null!=S?S:J)&&void 0!==t?t:e})),ne=i.useContext(d.Z),ie=null!=k?k:ne,{status:re,hasFeedback:oe,feedbackIcon:ae}=(0,i.useContext)(g.aM),se=(0,u.F)(re,x),le=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!oe;(0,i.useRef)(le);const ce=(0,y.Z)(V,!0),ue=(oe||P)&&i.createElement(i.Fragment,null,P,oe&&ae),he=(0,c.Z)(null!=E?E:j),[de,pe]=(0,m.Z)("input",R,r);return q(Q(i.createElement(a.Z,Object.assign({ref:(0,s.sQ)(t,V),prefixCls:U,autoComplete:$},O,{disabled:ie,onBlur:e=>{ce(),null==_||_(e)},onFocus:e=>{ce(),null==C||C(e)},style:Object.assign(Object.assign({},Z),T),styles:Object.assign(Object.assign({},G),D),suffix:ue,allowClear:he,className:o()(A,N,X,W,ee,H),onChange:e=>{ce(),null==I||I(e)},addonBefore:L&&i.createElement(l.Z,{form:!0,space:!0},L),addonAfter:M&&i.createElement(l.Z,{form:!0,space:!0},M),classNames:Object.assign(Object.assign(Object.assign({},B),K),{input:o()({[`${U}-sm`]:"small"===te,[`${U}-lg`]:"large"===te,[`${U}-rtl`]:"rtl"===z},null==B?void 0:B.input,K.input,Y),variant:o()({[`${U}-${de}`]:pe},(0,u.Z)(U,se)),affixWrapper:o()({[`${U}-affix-wrapper-sm`]:"small"===te,[`${U}-affix-wrapper-lg`]:"large"===te,[`${U}-affix-wrapper-rtl`]:"rtl"===z},Y),wrapper:o()({[`${U}-group-rtl`]:"rtl"===z},Y),groupWrapper:o()({[`${U}-group-wrapper-sm`]:"small"===te,[`${U}-group-wrapper-lg`]:"large"===te,[`${U}-group-wrapper-rtl`]:"rtl"===z,[`${U}-group-wrapper-${de}`]:pe},(0,u.Z)(`${U}-group-wrapper`,se,oe),Y)})}))))}))},23826:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(59301);function r(e,t){const n=(0,i.useRef)([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,i,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(i=e.current)||void 0===i?void 0:i.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return(0,i.useEffect)((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}},10975:function(e,t,n){"use strict";n.d(t,{Z:function(){return ke}});var i=n(59301),r=n(92310),o=n.n(r),a=n(48755),s=n(56553),l=n(53075);var c=e=>{const{getPrefixCls:t,direction:n}=(0,i.useContext)(a.E_),{prefixCls:r,className:c}=e,u=t("input-group",r),h=t("input"),[d,p,f]=(0,l.ZP)(h),g=o()(u,f,{[`${u}-lg`]:"large"===e.size,[`${u}-sm`]:"small"===e.size,[`${u}-compact`]:e.compact,[`${u}-rtl`]:"rtl"===n},p,c),m=(0,i.useContext)(s.aM),v=(0,i.useMemo)((()=>Object.assign(Object.assign({},m),{isFormItemInput:!1})),[m]);return d(i.createElement("span",{className:g,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},i.createElement(s.aM.Provider,{value:v},e.children)))},u=n(49397),h=n(95190),d=n(6089),p=n(26112),f=n(82855),g=n(31756),m=n(16931),v=n(51636),y=n(64910);const b=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};var w=(0,m.I$)(["Input","OTP"],(e=>{const t=(0,v.IX)(e,(0,y.e)(e));return[b(t)]}),y.T),x=n(16089),S=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{value:n,onChange:r,onActiveChange:o,index:a,mask:s}=e,l=S(e,["value","onChange","onActiveChange","index","mask"]),c=n&&"string"==typeof s?s:n,h=i.useRef(null);i.useImperativeHandle(t,(()=>h.current));const d=()=>{(0,x.Z)((()=>{var e;const t=null===(e=h.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return i.createElement(u.Z,Object.assign({type:!0===s?"password":"text"},l,{ref:h,value:c,onInput:e=>{r(a,e.target.value)},onFocus:d,onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:i}=e;"ArrowLeft"===t?o(a-1):"ArrowRight"===t?o(a+1):"z"===t&&(n||i)&&e.preventDefault(),d()},onKeyUp:e=>{"Backspace"!==e.key||n||o(a-1),d()},onMouseDown:d,onMouseUp:d}))})),_=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{index:t,prefixCls:n,separator:r}=e,o="function"==typeof r?r(t):r;return o?i.createElement("span",{className:`${n}-separator`},o):null};var E=i.forwardRef(((e,t)=>{const{prefixCls:n,length:r=6,size:l,defaultValue:c,value:u,onChange:m,formatter:v,separator:y,variant:b,disabled:x,status:S,autoFocus:E,mask:M,type:L,onInput:A,inputMode:T}=e,D=_(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);const{getPrefixCls:N,direction:I}=i.useContext(a.E_),B=N("otp",n),R=(0,p.Z)(D,{aria:!0,data:!0,attr:!0}),[O,F,z]=w(B),j=(0,g.Z)((e=>null!=l?l:e)),$=i.useContext(s.aM),H=(0,f.F)($.status,S),Z=i.useMemo((()=>Object.assign(Object.assign({},$),{status:H,hasFeedback:!1,feedbackIcon:null})),[$,H]),K=i.useRef(null),G=i.useRef({});i.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=G.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;tv?v(e):e,[V,W]=i.useState((()=>C(U(c||""))));i.useEffect((()=>{void 0!==u&&W(C(u))}),[u]);const q=(0,d.Z)((e=>{W(e),A&&A(e),m&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>V[t]!==e))&&m(e.join(""))})),Y=(0,d.Z)(((e,t)=>{let n=(0,h.Z)(V);for(let t=0;t=0&&!n[e];e-=1)n.pop();const i=U(n.map((e=>e||" ")).join(""));return n=C(i).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),X=(e,t)=>{var n;const i=Y(e,t),o=Math.min(e+t.length,r-1);o!==e&&void 0!==i[e]&&(null===(n=G.current[o])||void 0===n||n.focus()),q(i)},Q=e=>{var t;null===(t=G.current[e])||void 0===t||t.focus()},J={variant:b,disabled:x,status:H,mask:M,type:L,inputMode:T};return O(i.createElement("div",Object.assign({},R,{ref:K,className:o()(B,{[`${B}-sm`]:"small"===j,[`${B}-lg`]:"large"===j,[`${B}-rtl`]:"rtl"===I},z,F)}),i.createElement(s.aM.Provider,{value:Z},Array.from({length:r}).map(((e,t)=>{const n=`otp-${t}`,o=V[t]||"";return i.createElement(i.Fragment,{key:n},i.createElement(k,Object.assign({ref:e=>{G.current[t]=e},index:t,size:j,htmlSize:1,className:`${B}-input`,onChange:X,value:o,onActiveChange:Q,autoFocus:0===t&&E},J)),te?i.createElement(N.Z,null):i.createElement(D,null),j={click:"onClick",hover:"onMouseOver"};var $=i.forwardRef(((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:s=!0,iconRender:l=z}=e,c=i.useContext(R.Z),h=null!=n?n:c,d="object"==typeof s&&void 0!==s.visible,[p,f]=(0,i.useState)((()=>!!d&&s.visible)),g=(0,i.useRef)(null);i.useEffect((()=>{d&&f(s.visible)}),[d,s]);const m=(0,O.Z)(g),v=()=>{var e;if(h)return;p&&m();const t=!p;f(t),"object"==typeof s&&(null===(e=s.onVisibleChange)||void 0===e||e.call(s,t))},{className:y,prefixCls:b,inputPrefixCls:w,size:x}=e,S=F(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:k}=i.useContext(a.E_),_=k("input",w),C=k("input-password",b),P=s&&(e=>{const t=j[r]||"",n=l(p),o={[t]:v,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return i.cloneElement(i.isValidElement(n)?n:i.createElement("span",null,n),o)})(C),E=o()(C,y,{[`${C}-${x}`]:!!x}),M=Object.assign(Object.assign({},(0,I.Z)(S,["suffix","iconRender","visibilityToggle"])),{type:p?"text":"password",className:E,prefixCls:_,suffix:P});return x&&(M.size=x),i.createElement(u.Z,Object.assign({ref:(0,B.sQ)(t,g)},M))})),H=n(47472),Z=n(22703),K=n(20743),G=n(70045),U=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,inputPrefixCls:r,className:s,size:l,suffix:c,enterButton:h=!1,addonAfter:d,loading:p,disabled:f,onSearch:m,onChange:v,onCompositionStart:y,onCompositionEnd:b}=e,w=U(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:x,direction:S}=i.useContext(a.E_),k=i.useRef(!1),_=x("input-search",n),C=x("input",r),{compactSize:P}=(0,G.ri)(_,S),E=(0,g.Z)((e=>{var t;return null!==(t=null!=l?l:P)&&void 0!==t?t:e})),M=i.useRef(null),L=e=>{var t;document.activeElement===(null===(t=M.current)||void 0===t?void 0:t.input)&&e.preventDefault()},A=e=>{var t,n;m&&m(null===(n=null===(t=M.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},T="boolean"==typeof h?i.createElement(H.Z,null):null,D=`${_}-button`;let N;const I=h||{},R=I.type&&!0===I.type.__ANT_BUTTON;N=R||"button"===I.type?(0,Z.Tm)(I,Object.assign({onMouseDown:L,onClick:e=>{var t,n;null===(n=null===(t=null==I?void 0:I.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),A(e)},key:"enterButton"},R?{className:D,size:E}:{})):i.createElement(K.ZP,{className:D,type:h?"primary":void 0,size:E,disabled:f,key:"enterButton",onMouseDown:L,onClick:A,loading:p,icon:T},h),d&&(N=[N,(0,Z.Tm)(d,{key:"addonAfter"})]);const O=o()(_,{[`${_}-rtl`]:"rtl"===S,[`${_}-${E}`]:!!E,[`${_}-with-button`]:!!h},s),F=Object.assign(Object.assign({},w),{className:O,prefixCls:C,type:"search"});return i.createElement(u.Z,Object.assign({ref:(0,B.sQ)(M,t),onPressEnter:e=>{k.current||p||A(e)}},F,{size:E,onCompositionStart:e=>{k.current=!0,null==y||y(e)},onCompositionEnd:e=>{k.current=!1,null==b||b(e)},addonAfter:N,suffix:c,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&m&&m(e.target.value,e,{source:"clear"}),null==v||v(e)},disabled:f}))})),q=n(4635),Y=n(20439),X=n(50298),Q=n(62646),J=n(36901),ee=n(66003),te=n(30292),ne=n(18929),ie=n(93664),re=n(29301),oe=n(34280),ae="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n",se=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],le={};function ce(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&le[n])return le[n];var i=window.getComputedStyle(e),r=i.getPropertyValue("box-sizing")||i.getPropertyValue("-moz-box-sizing")||i.getPropertyValue("-webkit-box-sizing"),o=parseFloat(i.getPropertyValue("padding-bottom"))+parseFloat(i.getPropertyValue("padding-top")),a=parseFloat(i.getPropertyValue("border-bottom-width"))+parseFloat(i.getPropertyValue("border-top-width")),s=se.map((function(e){return"".concat(e,":").concat(i.getPropertyValue(e))})).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:r};return t&&n&&(le[n]=l),l}var ue=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],he=i.forwardRef((function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,s=n.value,l=n.autoSize,c=n.onResize,u=n.className,h=n.style,d=n.disabled,p=n.onChange,f=(n.onInternalAutoSize,(0,Q.Z)(n,ue)),g=(0,ne.Z)(a,{value:s,postState:function(e){return null!=e?e:""}}),m=(0,X.Z)(g,2),v=m[0],y=m[1],b=i.useRef();i.useImperativeHandle(t,(function(){return{textArea:b.current}}));var w=i.useMemo((function(){return l&&"object"===(0,ie.Z)(l)?[l.minRows,l.maxRows]:[]}),[l]),S=(0,X.Z)(w,2),k=S[0],_=S[1],C=!!l,P=i.useState(2),E=(0,X.Z)(P,2),L=E[0],A=E[1],T=i.useState(),D=(0,X.Z)(T,2),N=D[0],I=D[1],B=function(){A(0)};(0,oe.Z)((function(){C&&B()}),[s,k,_,C]),(0,oe.Z)((function(){if(0===L)A(1);else if(1===L){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;V||((V=document.createElement("textarea")).setAttribute("tab-index","-1"),V.setAttribute("aria-hidden","true"),V.setAttribute("name","hiddenTextarea"),document.body.appendChild(V)),e.getAttribute("wrap")?V.setAttribute("wrap",e.getAttribute("wrap")):V.removeAttribute("wrap");var r=ce(e,t),o=r.paddingSize,a=r.borderSize,s=r.boxSizing,l=r.sizingStyle;V.setAttribute("style","".concat(l,";").concat(ae)),V.value=e.value||e.placeholder||"";var c,u=void 0,h=void 0,d=V.scrollHeight;if("border-box"===s?d+=a:"content-box"===s&&(d-=o),null!==n||null!==i){V.value=" ";var p=V.scrollHeight-o;null!==n&&(u=p*n,"border-box"===s&&(u=u+o+a),d=Math.max(u,d)),null!==i&&(h=p*i,"border-box"===s&&(h=h+o+a),c=d>h?"":"hidden",d=Math.min(h,d))}var f={height:d,overflowY:c,resize:"none"};return u&&(f.minHeight=u),h&&(f.maxHeight=h),f}(b.current,!1,k,_);A(2),I(e)}else!function(){try{if(document.activeElement===b.current){var e=b.current,t=e.selectionStart,n=e.selectionEnd,i=e.scrollTop;b.current.setSelectionRange(t,n),b.current.scrollTop=i}}catch(e){}}()}),[L]);var R=i.useRef(),O=function(){x.Z.cancel(R.current)};i.useEffect((function(){return O}),[]);var F=C?N:null,z=(0,Y.Z)((0,Y.Z)({},h),F);return 0!==L&&1!==L||(z.overflowY="hidden",z.overflowX="hidden"),i.createElement(re.Z,{onResize:function(e){2===L&&(null==c||c(e),l&&(O(),R.current=(0,x.Z)((function(){B()}))))},disabled:!(l||c)},i.createElement("textarea",(0,M.Z)({},f,{ref:b,style:z,className:o()(r,u,(0,q.Z)({},"".concat(r,"-disabled"),d)),disabled:d,value:v,onChange:function(e){y(e.target.value),null==p||p(e)}})))})),de=he,pe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],fe=i.forwardRef((function(e,t){var n,r=e.defaultValue,a=e.value,s=e.onFocus,l=e.onBlur,c=e.onChange,u=e.allowClear,d=e.maxLength,p=e.onCompositionStart,f=e.onCompositionEnd,g=e.suffix,m=e.prefixCls,v=void 0===m?"rc-textarea":m,y=e.showCount,b=e.count,w=e.className,x=e.style,S=e.disabled,k=e.hidden,_=e.classNames,C=e.styles,P=e.onResize,E=e.onClear,L=e.onPressEnter,A=e.readOnly,T=e.autoSize,D=e.onKeyDown,N=(0,Q.Z)(e,pe),I=(0,ne.Z)(r,{value:a,defaultValue:r}),B=(0,X.Z)(I,2),R=B[0],O=B[1],F=null==R?"":String(R),z=i.useState(!1),j=(0,X.Z)(z,2),$=j[0],H=j[1],Z=i.useRef(!1),K=i.useState(null),G=(0,X.Z)(K,2),U=G[0],V=G[1],W=(0,i.useRef)(null),ie=(0,i.useRef)(null),re=function(){var e;return null===(e=ie.current)||void 0===e?void 0:e.textArea},oe=function(){re().focus()};(0,i.useImperativeHandle)(t,(function(){var e;return{resizableTextArea:ie.current,focus:oe,blur:function(){re().blur()},nativeElement:(null===(e=W.current)||void 0===e?void 0:e.nativeElement)||re()}})),(0,i.useEffect)((function(){H((function(e){return!S&&e}))}),[S]);var ae=i.useState(null),se=(0,X.Z)(ae,2),le=se[0],ce=se[1];i.useEffect((function(){var e;le&&(e=re()).setSelectionRange.apply(e,(0,h.Z)(le))}),[le]);var ue,he=(0,ee.Z)(b,y),fe=null!==(n=he.max)&&void 0!==n?n:d,ge=Number(fe)>0,me=he.strategy(F),ve=!!fe&&me>fe,ye=function(e,t){var n=t;!Z.current&&he.exceedFormatter&&he.max&&he.strategy(t)>he.max&&t!==(n=he.exceedFormatter(t,{max:he.max}))&&ce([re().selectionStart||0,re().selectionEnd||0]),O(n),(0,te.rJ)(e.currentTarget,e,c,n)},be=g;he.show&&(ue=he.showFormatter?he.showFormatter({value:F,count:me,maxLength:fe}):"".concat(me).concat(ge?" / ".concat(fe):""),be=i.createElement(i.Fragment,null,be,i.createElement("span",{className:o()("".concat(v,"-data-count"),null==_?void 0:_.count),style:null==C?void 0:C.count},ue)));var we=!T&&!y&&!u;return i.createElement(J.Q,{ref:W,value:F,allowClear:u,handleReset:function(e){O(""),oe(),(0,te.rJ)(re(),e,c)},suffix:be,prefixCls:v,classNames:(0,Y.Z)((0,Y.Z)({},_),{},{affixWrapper:o()(null==_?void 0:_.affixWrapper,(0,q.Z)((0,q.Z)({},"".concat(v,"-show-count"),y),"".concat(v,"-textarea-allow-clear"),u))}),disabled:S,focused:$,className:o()(w,ve&&"".concat(v,"-out-of-range")),style:(0,Y.Z)((0,Y.Z)({},x),U&&!we?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ue?ue:void 0}},hidden:k,readOnly:A,onClear:E},i.createElement(de,(0,M.Z)({},N,{autoSize:T,maxLength:d,onKeyDown:function(e){"Enter"===e.key&&L&&L(e),null==D||D(e)},onChange:function(e){ye(e,e.target.value)},onFocus:function(e){H(!0),null==s||s(e)},onBlur:function(e){H(!1),null==l||l(e)},onCompositionStart:function(e){Z.current=!0,null==p||p(e)},onCompositionEnd:function(e){Z.current=!1,ye(e,e.currentTarget.value),null==f||f(e)},className:o()(null==_?void 0:_.textarea),style:(0,Y.Z)((0,Y.Z)({},null==C?void 0:C.textarea),{},{resize:null==x?void 0:x.resize}),disabled:S,prefixCls:v,onResize:function(e){var t;null==P||P(e),null!==(t=re())&&void 0!==t&&t.style.height&&V(!0)},ref:ie,readOnly:A})))})),ge=n(86013),me=n(83397),ve=n(24971);const ye=e=>{const{componentCls:t,paddingLG:n}=e,i=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[i]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${i}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${i}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}};var be=(0,m.I$)(["Input","TextArea"],(e=>{const t=(0,v.IX)(e,(0,y.e)(e));return[ye(t)]}),y.T,{resetFont:!1}),we=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,bordered:c=!0,size:u,disabled:h,status:d,allowClear:p,classNames:m,rootClassName:v,className:y,style:b,styles:w,variant:x,showCount:S,onMouseDown:k,onResize:_}=e,C=we(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);const{getPrefixCls:P,direction:E,allowClear:M,autoComplete:L,className:A,style:T,classNames:D,styles:N}=(0,a.dj)("textArea"),I=i.useContext(R.Z),B=null!=h?h:I,{status:O,hasFeedback:F,feedbackIcon:z}=i.useContext(s.aM),j=(0,f.F)(O,d),$=i.useRef(null);i.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=$.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;(0,te.nH)(null===(n=null===(t=$.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=$.current)||void 0===e?void 0:e.blur()}}}));const H=P("input",r),Z=(0,me.Z)(H),[K,U,V]=(0,l.TI)(H,v),[W]=be(H,Z),{compactSize:q,compactItemClassnames:Y}=(0,G.ri)(H,E),X=(0,g.Z)((e=>{var t;return null!==(t=null!=u?u:q)&&void 0!==t?t:e})),[Q,J]=(0,ve.Z)("textArea",x,c),ee=(0,ge.Z)(null!=p?p:M),[ne,ie]=i.useState(!1),[re,oe]=i.useState(!1);return K(W(i.createElement(fe,Object.assign({autoComplete:L},C,{style:Object.assign(Object.assign({},T),b),styles:Object.assign(Object.assign({},N),w),disabled:B,allowClear:ee,className:o()(V,Z,y,v,Y,A,re&&`${H}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},m),D),{textarea:o()({[`${H}-sm`]:"small"===X,[`${H}-lg`]:"large"===X},U,null==m?void 0:m.textarea,D.textarea,ne&&`${H}-mouse-active`),variant:o()({[`${H}-${Q}`]:J},(0,f.Z)(H,j)),affixWrapper:o()(`${H}-textarea-affix-wrapper`,{[`${H}-affix-wrapper-rtl`]:"rtl"===E,[`${H}-affix-wrapper-sm`]:"small"===X,[`${H}-affix-wrapper-lg`]:"large"===X,[`${H}-textarea-show-count`]:S||(null===(n=e.count)||void 0===n?void 0:n.show)},U)}),prefixCls:H,suffix:F&&i.createElement("span",{className:`${H}-textarea-suffix`},z),showCount:S,ref:$,onResize:e=>{var t,n;if(null==_||_(e),ne&&"function"==typeof getComputedStyle){const e=null===(n=null===(t=$.current)||void 0===t?void 0:t.nativeElement)||void 0===n?void 0:n.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&oe(!0)}},onMouseDown:e=>{ie(!0),null==k||k(e);const t=()=>{ie(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}}))))}));const Se=u.Z;Se.Group=c,Se.Search=W,Se.TextArea=xe,Se.Password=$,Se.OTP=E;var ke=Se},53075:function(e,t,n){"use strict";n.d(t,{TI:function(){return x},ik:function(){return p},nz:function(){return u},s7:function(){return f},x0:function(){return d}});var i=n(66604),r=n(63356),o=n(56119),a=n(16931),s=n(51636),l=n(64910),c=n(39082);const u=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),h=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${(0,i.bf)(t)} ${(0,i.bf)(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},d=e=>({padding:`${(0,i.bf)(e.paddingBlockSM)} ${(0,i.bf)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),p=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,i.bf)(e.paddingBlock)} ${(0,i.bf)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},u(e.colorTextPlaceholder)),{"&-lg":Object.assign({},h(e)),"&-sm":Object.assign({},d(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),f=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},h(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},d(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,i.bf)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${(0,i.bf)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,i.bf)(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${(0,i.bf)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${(0,i.bf)(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,r.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},g=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:i,calc:o}=e,a=o(n).sub(o(i).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,r.Wf)(e)),p(e)),(0,c.qG)(e)),(0,c.H8)(e)),(0,c.Mu)(e)),(0,c.vc)(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},m=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,i.bf)(e.inputAffixPadding)}`}}}},v=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:i,motionDurationSlow:r,colorIcon:o,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper-disabled`;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},p(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:i},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),m(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[l]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},y=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,r.Wf)(e)),f(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}}},(0,c.ir)(e)),(0,c.S5)(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},b=e=>{const{componentCls:t,antCls:n}=e,i=`${t}-search`;return{[i]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${i}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${i}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${i}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${i}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${i}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${i}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},w=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},x=(0,a.I$)(["Input","Shared"],(e=>{const t=(0,s.IX)(e,(0,l.e)(e));return[g(t),v(t)]}),l.T,{resetFont:!1});t.ZP=(0,a.I$)(["Input","Component"],(e=>{const t=(0,s.IX)(e,(0,l.e)(e));return[y(t),b(t),w(t),(0,o.c)(t)]}),l.T,{resetFont:!1})},64910:function(e,t,n){"use strict";n.d(t,{T:function(){return o},e:function(){return r}});var i=n(51636);function r(e){return(0,i.IX)(e,{inputAffixPadding:e.paddingXXS})}const o=e=>{const{controlHeight:t,fontSize:n,lineHeight:i,lineWidth:r,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:h,colorFillAlter:d,colorPrimaryHover:p,colorPrimary:f,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:v,colorWarningOutline:y,colorBgContainer:b,inputFontSize:w,inputFontSizeLG:x,inputFontSizeSM:S}=e,k=w||n,_=S||k,C=x||s,P=Math.round((t-k*i)/2*10)/10-r,E=Math.round((o-_*i)/2*10)/10-r,M=Math.ceil((a-C*l)/2*10)/10-r;return{paddingBlock:Math.max(P,0),paddingBlockSM:Math.max(E,0),paddingBlockLG:Math.max(M,0),paddingInline:c-r,paddingInlineSM:u-r,paddingInlineLG:h-r,addonBg:d,activeBorderColor:f,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${y}`,hoverBg:b,activeBg:b,inputFontSize:k,inputFontSizeLG:C,inputFontSizeSM:_}}},39082:function(e,t,n){"use strict";n.d(t,{$U:function(){return s},H8:function(){return g},Mu:function(){return d},S5:function(){return v},Xy:function(){return a},ir:function(){return h},qG:function(){return c},vc:function(){return w}});var i=n(66604),r=n(51636);const o=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),a=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},o((0,r.IX)(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),s=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),l=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},s(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),c=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},a(e))}),l(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),l(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),u=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),h=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},u(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),u(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},a(e))}})}),d=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},p=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null!==(n=null==t?void 0:t.inputColor)&&void 0!==n?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},f=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},p(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),g=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},a(e))}),f(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),f(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),m=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),v=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},m(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),m(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),y=(e,t)=>({background:e.colorBgContainer,borderWidth:`${(0,i.bf)(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),b=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},y(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),w=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},y(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),b(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),b(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)})},24303:function(e,t,n){"use strict";n.d(t,{D:function(){return k},Z:function(){return P}});var i=n(59301),r=n(14809),o={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"},a=n(7657),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s),c=n(33853),u=n(38819),h=n(92310),d=n.n(h),p=n(2738),f=n(48755),g=n(6989),m=n(66604),v=n(48923),y=n(16931);const b=e=>{const{componentCls:t,siderBg:n,motionDurationMid:i,motionDurationSlow:r,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:h,borderRadiusLG:d,lightSiderBg:p,lightTriggerColor:f,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${i}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:(0,m.bf)(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${i}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:h,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,m.bf)(d)} ${(0,m.bf)(d)} 0`,cursor:"pointer",transition:`background ${r} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${r}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,m.bf)(d)} 0 0 ${(0,m.bf)(d)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:f,background:g},[`${t}-zero-width-trigger`]:{color:f,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};var w=(0,y.I$)(["Layout","Sider"],(e=>[b(e)]),v.eh,{deprecatedTokens:v.jn}),x=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{let e=0;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,`${t}${e}`}})(),C=i.forwardRef(((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:s=!1,theme:h="dark",style:m={},collapsible:v=!1,reverseArrow:y=!1,width:b=200,collapsedWidth:C=80,zeroWidthTriggerStyle:P,breakpoint:E,onCollapse:M,onBreakpoint:L}=e,A=x(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:T}=(0,i.useContext)(g.V),[D,N]=(0,i.useState)("collapsed"in e?e.collapsed:s),[I,B]=(0,i.useState)(!1);(0,i.useEffect)((()=>{"collapsed"in e&&N(e.collapsed)}),[e.collapsed]);const R=(t,n)=>{"collapsed"in e||N(t),null==M||M(t,n)},{getPrefixCls:O,direction:F}=(0,i.useContext)(f.E_),z=O("layout-sider",n),[j,$,H]=w(z),Z=(0,i.useRef)(null);Z.current=e=>{B(e.matches),null==L||L(e.matches),D!==e.matches&&R(e.matches,"responsive")},(0,i.useEffect)((()=>{function e(e){return Z.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&E&&E in S){t=n(`screen and (max-width: ${S[E]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[E]),(0,i.useEffect)((()=>{const e=_("ant-sider-");return T.addSider(e),()=>T.removeSider(e)}),[]);const K=()=>{R(!D,"clickTrigger")},G=(0,p.Z)(A,["collapsed"]),U=D?C:b,V=(W=U,!Number.isNaN(Number.parseFloat(W))&&isFinite(W)?`${U}px`:String(U));var W;const q=0===parseFloat(String(C||0))?i.createElement("span",{onClick:K,className:d()(`${z}-zero-width-trigger`,`${z}-zero-width-trigger-${y?"right":"left"}`),style:P},o||i.createElement(l,null)):null,Y="rtl"===F==!y,X={expanded:Y?i.createElement(u.Z,null):i.createElement(c.Z,null),collapsed:Y?i.createElement(c.Z,null):i.createElement(u.Z,null)}[D?"collapsed":"expanded"],Q=null!==o?q||i.createElement("div",{className:`${z}-trigger`,onClick:K,style:{width:V}},o||X):null,J=Object.assign(Object.assign({},m),{flex:`0 0 ${V}`,maxWidth:V,minWidth:V,width:V}),ee=d()(z,`${z}-${h}`,{[`${z}-collapsed`]:!!D,[`${z}-has-trigger`]:v&&null!==o&&!q,[`${z}-below`]:!!I,[`${z}-zero-width`]:0===parseFloat(V)},r,$,H),te=i.useMemo((()=>({siderCollapsed:D})),[D]);return j(i.createElement(k.Provider,{value:te},i.createElement("aside",Object.assign({className:ee},G,{style:J,ref:t}),i.createElement("div",{className:`${z}-children`},a),v||I&&q?Q:null)))}));var P=C},6989:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});const i=n(59301).createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(e,t,n){"use strict";n.d(t,{eh:function(){return a},jn:function(){return s}});var i=n(66604),r=n(16931);const o=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:a,headerPadding:s,headerColor:l,footerPadding:c,fontSize:u,bodyBg:h,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:h,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:s,color:l,lineHeight:(0,i.bf)(a),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},a=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:i,colorText:r,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=1.25*i;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${c}px`,headerColor:r,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:i+2*a,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:i,zeroTriggerHeight:i,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:r}},s=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];t.ZP=(0,r.I$)("Layout",(e=>[o(e)]),a,{deprecatedTokens:s})},78857:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var i=n(59301),r=n(8654),o=n(62487),a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{children:n}=e,l=a(e,["children"]),c=i.useContext(s),u=i.useMemo((()=>Object.assign(Object.assign({},c),l)),[c,l.prefixCls,l.mode,l.selectable,l.rootClassName]),h=(0,r.t4)(n),d=(0,r.x1)(t,h?(0,r.C4)(n):null);return i.createElement(s.Provider,{value:u},i.createElement(o.Z,{space:!0},h?i.cloneElement(n,{ref:d}):n))}));t.Z=s},93041:function(e,t,n){"use strict";n.d(t,{Z:function(){return q}});var i=n(59301),r=n(28321),o=n(24303),a=n(18785),s=n(92310),l=n.n(s),c=n(6089),u=n(2738),h=n(86641),d=n(22703),p=n(48755),f=n(83397);var g=(0,i.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,dashed:o}=e,a=m(e,["prefixCls","className","dashed"]),{getPrefixCls:s}=i.useContext(p.E_),c=s("menu",t),u=l()({[`${c}-item-divider-dashed`]:!!o},n);return i.createElement(r.iz,Object.assign({className:u},a))},y=n(11592),b=n(55544);var w=e=>{var t;const{className:n,children:a,icon:s,title:c,danger:h,extra:p}=e,{prefixCls:f,firstLevel:m,direction:v,disableMenuItemTitleTooltip:w,inlineCollapsed:x}=i.useContext(g),{siderCollapsed:S}=i.useContext(o.D);let k=c;void 0===c?k=m?a:"":!1===c&&(k="");const _={title:k};S||x||(_.title=null,_.open=!1);const C=(0,y.Z)(a).length;let P=i.createElement(r.ck,Object.assign({},(0,u.Z)(e,["title","icon","danger"]),{className:l()({[`${f}-item-danger`]:h,[`${f}-item-only-child`]:1===(s?C+1:C)},n),title:"string"==typeof c?c:void 0}),(0,d.Tm)(s,{className:l()(i.isValidElement(s)?null===(t=s.props)||void 0===t?void 0:t.className:"",`${f}-item-icon`)}),(e=>{const t=null==a?void 0:a[0],n=i.createElement("span",{className:l()(`${f}-title-content`,{[`${f}-title-content-with-extra`]:!!p||0===p})},a);return(!s||i.isValidElement(a)&&"span"===a.type)&&a&&e&&m&&"string"==typeof t?i.createElement("div",{className:`${f}-inline-collapsed-noicon`},t.charAt(0)):n})(x));return w||(P=i.createElement(b.Z,Object.assign({},_,{placement:"rtl"===v?"left":"right",classNames:{root:`${f}-inline-collapsed-tooltip`}}),P)),P},x=n(78857),S=n(66604),k=n(17835),_=n(63356),C=n(34961),P=n(46e3),E=n(34925),M=n(16931),L=n(51636);var A=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:i,colorSplit:r,lineWidth:o,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:i,border:0,borderBottom:`${(0,S.bf)(o)} ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}};var T=e=>{let{componentCls:t,menuArrowOffset:n,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,S.bf)(i(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,S.bf)(n)})`}}}}};const D=e=>Object.assign({},(0,_.oN)(e));var N=(e,t)=>{const{componentCls:n,itemColor:i,itemSelectedColor:r,subMenuItemSelectedColor:o,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:h,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:g,itemPaddingInline:m,motionDurationMid:v,itemHoverColor:y,lineType:b,colorSplit:w,itemDisabledColor:x,dangerItemColor:k,dangerItemHoverColor:_,dangerItemSelectedColor:C,dangerItemActiveBg:P,dangerItemSelectedBg:E,popupBg:M,itemHoverBg:L,itemActiveBg:A,menuSubMenuBg:T,horizontalItemSelectedColor:N,horizontalItemSelectedBg:I,horizontalItemBorderRadius:B,horizontalItemHoverBg:R}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:i,background:s,[`&${n}-root:focus-visible`]:Object.assign({},D(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:i,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},D(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:L},"&:active":{backgroundColor:A}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:L},"&:active":{backgroundColor:A}}},[`${n}-item-danger`]:{color:k,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:_}},[`&${n}-item:active`]:{background:P}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:T},[`&${n}-popup > ${n}`]:{backgroundColor:M},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:M},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:B,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${(0,S.bf)(u)} solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:u,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:I,"&:hover":{backgroundColor:I},"&::after":{borderBottomWidth:u,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${(0,S.bf)(d)} ${b} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,S.bf)(h)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${f}`,`opacity ${v} ${f}`].join(",")}}}}}};const I=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:i,padding:r,menuArrowSize:o,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(o).add(r).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:(0,S.bf)(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:i,marginBlock:s,width:l},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:(0,S.bf)(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}};var B=e=>{const{componentCls:t,iconCls:n,itemHeight:i,colorTextLightSolid:r,dropdownWidth:o,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:h,motionDurationSlow:d,paddingXS:p,boxShadowSecondary:f,collapsedWidth:g,collapsedIconSize:m}=e,v={height:i,lineHeight:(0,S.bf)(i),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},I(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},I(e)),{boxShadow:f})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${(0,S.bf)(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${d}`,`background ${d}`,`padding ${h} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,S.bf)(e.calc(m).div(2).equal())} - ${(0,S.bf)(c)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:(0,S.bf)(i),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},_.vS),{paddingInline:p})}}]};const R=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:i,motionEaseInOut:r,motionEaseOut:o,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${r}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${i} ${o}`,`margin ${n} ${r}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${r}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},(0,_.Ro)()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},O=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:i,borderRadius:r,menuArrowSize:o,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${i}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${i}`,`transform ${n} ${i}`,`top ${n} ${i}`,`color ${n} ${i}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,S.bf)(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,S.bf)(a)})`}}}}},F=e=>{const{antCls:t,componentCls:n,fontSize:i,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:h,borderRadiusLG:d,subMenuItemBorderRadius:p,menuArrowSize:f,menuArrowOffset:g,lineType:m,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},(0,_.dF)()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_.Wf)(e)),(0,_.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:i,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${(0,S.bf)(s)} ${(0,S.bf)(l)}`,fontSize:y,lineHeight:v,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:m,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),R(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${(0,S.bf)(e.calc(i).mul(2).equal())} ${(0,S.bf)(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:h,borderRadius:d,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:d},R(e)),O(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),O(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,S.bf)(g)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,S.bf)(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${(0,S.bf)(e.calc(f).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,S.bf)(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,S.bf)(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},z=e=>{var t,n,i;const{colorPrimary:r,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:h,colorFillContent:d,lineWidth:p,lineWidthBold:f,controlItemBgActive:g,colorBgTextHover:m,controlHeightLG:v,lineHeight:y,colorBgElevated:b,marginXXS:w,padding:x,fontSize:S,controlHeightSM:_,fontSizeLG:C,colorTextLightSolid:P,colorErrorHover:E}=e,M=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,L=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,A=null!==(i=e.itemMarginInline)&&void 0!==i?i:e.marginXXS,T=new k.t(P).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:r,itemSelectedColor:r,subMenuItemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:u,itemBg:u,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:d,itemActiveBg:g,colorSubItemBg:h,subMenuItemBg:h,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:f,activeBarHeight:f,colorActiveBarBorderSize:p,activeBarBorderWidth:L,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:A,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:y,collapsedWidth:2*v,popupBg:b,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:1.15*v+"px",iconSize:S,iconMarginInlineEnd:_-S,collapsedIconSize:C,groupTitleFontSize:S,darkItemDisabledColor:new k.t(P).setA(.25).toRgbString(),darkItemColor:T,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:P,darkItemSelectedBg:r,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:T,darkItemHoverColor:P,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:P,darkDangerItemActiveBg:o,itemWidth:M?`calc(100% + ${L}px)`:`calc(100% - ${2*A}px)`}};var j=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=(0,M.I$)("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:i,darkItemColor:r,darkDangerItemColor:o,darkItemBg:a,darkSubMenuItemBg:s,darkItemSelectedColor:l,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:h,darkGroupTitleColor:d,darkItemHoverColor:p,darkItemDisabledColor:f,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:m,darkDangerItemActiveBg:v,popupBg:y,darkPopupBg:b}=e,w=e.calc(i).div(7).mul(5).equal(),x=(0,L.IX)(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:y}),S=(0,L.IX)(x,{itemColor:r,itemHoverColor:p,groupTitleColor:d,itemSelectedColor:l,subMenuItemSelectedColor:l,itemBg:a,popupBg:b,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:f,dangerItemColor:o,dangerItemHoverColor:g,dangerItemSelectedColor:m,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[F(x),A(x),B(x),N(x,"light"),N(S,"dark"),T(x),(0,C.Z)(x),(0,P.oN)(x,"slide-up"),(0,P.oN)(x,"slide-down"),(0,E._y)(x,"zoom-big")]}),z,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}});return i(e,t)},$=n(75030);var H=e=>{var t;const{popupClassName:n,icon:o,title:a,theme:s}=e,c=i.useContext(g),{prefixCls:h,inlineCollapsed:p,theme:f}=c,m=(0,r.Xl)();let v;if(o){const e=i.isValidElement(a)&&"span"===a.type;v=i.createElement(i.Fragment,null,(0,d.Tm)(o,{className:l()(i.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${h}-item-icon`)}),e?a:i.createElement("span",{className:`${h}-title-content`},a))}else v=p&&!m.length&&a&&"string"==typeof a?i.createElement("div",{className:`${h}-inline-collapsed-noicon`},a.charAt(0)):i.createElement("span",{className:`${h}-title-content`},a);const y=i.useMemo((()=>Object.assign(Object.assign({},c),{firstLevel:!1})),[c]),[b]=(0,$.Cn)("Menu");return i.createElement(g.Provider,{value:y},i.createElement(r.Wd,Object.assign({},(0,u.Z)(e,["icon"]),{title:v,popupClassName:l()(h,n,`${h}-${s||f}`),popupStyle:Object.assign({zIndex:b},e.popupStyle)})))},Z=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var n;const o=i.useContext(x.Z),s=o||{},{getPrefixCls:m,getPopupContainer:v,direction:y,menu:b}=i.useContext(p.E_),w=m(),{prefixCls:S,className:k,style:_,theme:C="light",expandIcon:P,_internalDisableMenuItemTitleTooltip:E,inlineCollapsed:M,siderCollapsed:L,rootClassName:A,mode:T,selectable:D,onClick:N,overflowedIndicatorPopupClassName:I}=e,B=Z(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),R=(0,u.Z)(B,["collapsedWidth"]);null===(n=s.validator)||void 0===n||n.call(s,{mode:T});const O=(0,c.Z)((function(){var e;null==N||N.apply(void 0,arguments),null===(e=s.onClick)||void 0===e||e.call(s)})),F=s.mode||T,z=null!=D?D:s.selectable,$=null!=M?M:L,H={horizontal:{motionName:`${w}-slide-up`},inline:(0,h.Z)(w),other:{motionName:`${w}-zoom-big`}},U=m("menu",S||s.prefixCls),V=(0,f.Z)(U),[W,q,Y]=j(U,V,!o),X=l()(`${U}-${C}`,null==b?void 0:b.className,k),Q=i.useMemo((()=>{var e,t;if("function"==typeof P||K(P))return P||null;if("function"==typeof s.expandIcon||K(s.expandIcon))return s.expandIcon||null;if("function"==typeof(null==b?void 0:b.expandIcon)||K(null==b?void 0:b.expandIcon))return(null==b?void 0:b.expandIcon)||null;const n=null!==(e=null!=P?P:null==s?void 0:s.expandIcon)&&void 0!==e?e:null==b?void 0:b.expandIcon;return(0,d.Tm)(n,{className:l()(`${U}-submenu-expand-icon`,i.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[P,null==s?void 0:s.expandIcon,null==b?void 0:b.expandIcon,U]),J=i.useMemo((()=>({prefixCls:U,inlineCollapsed:$||!1,direction:y,firstLevel:!0,theme:C,mode:F,disableMenuItemTitleTooltip:E})),[U,$,y,E,C]);return W(i.createElement(x.Z.Provider,{value:null},i.createElement(g.Provider,{value:J},i.createElement(r.ZP,Object.assign({getPopupContainer:v,overflowedIndicator:i.createElement(a.Z,null),overflowedIndicatorPopupClassName:l()(U,`${U}-${C}`,I),mode:F,selectable:z,onClick:O},R,{inlineCollapsed:$,style:Object.assign(Object.assign({},null==b?void 0:b.style),_),className:X,prefixCls:U,direction:y,defaultMotions:H,expandIcon:Q,ref:t,rootClassName:l()(A,q,s.rootClassName,Y,V),_internalComponents:G})))))}));var V=U;const W=(0,i.forwardRef)(((e,t)=>{const n=(0,i.useRef)(null),r=i.useContext(o.D);return(0,i.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),i.createElement(V,Object.assign({ref:n},e,r))}));W.Item=w,W.SubMenu=H,W.Divider=v,W.ItemGroup=r.BW;var q=W},98012:function(e,t,n){"use strict";n.d(t,{Z:function(){return se}});var i=n(59301),r=n(14809),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},a=n(7657),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},u=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:c}))};var h=i.forwardRef(u),d=n(33853),p=n(38819),f=n(92310),g=n.n(f),m=n(4635),v=n(93664),y=n(20439),b=n(50298),w=n(18929),x=n(10228),S=n(26112),k=(n(48736),n(17119)),_=[10,20,50,100];var C=function(e){var t=e.pageSizeOptions,n=void 0===t?_:t,r=e.locale,o=e.changeSize,a=e.pageSize,s=e.goButton,l=e.quickGo,c=e.rootPrefixCls,u=e.disabled,h=e.buildOptionText,d=e.showSizeChanger,p=e.sizeChangerRender,f=i.useState(""),g=(0,b.Z)(f,2),m=g[0],v=g[1],y=function(){return!m||Number.isNaN(m)?void 0:Number(m)},w="function"==typeof h?h:function(e){return"".concat(e," ").concat(r.items_per_page)},S=function(e){""!==m&&(e.keyCode!==x.Z.ENTER&&"click"!==e.type||(v(""),null==l||l(y())))},k="".concat(c,"-options");if(!d&&!l)return null;var C=null,P=null,E=null;return d&&p&&(C=p({disabled:u,size:a,onSizeChange:function(e){null==o||o(Number(e))},"aria-label":r.page_size,className:"".concat(k,"-size-changer"),options:(n.some((function(e){return e.toString()===a.toString()}))?n:n.concat([a]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e){return{label:w(e),value:e}}))})),l&&(s&&(E="boolean"==typeof s?i.createElement("button",{type:"button",onClick:S,onKeyUp:S,disabled:u,className:"".concat(k,"-quick-jumper-button")},r.jump_to_confirm):i.createElement("span",{onClick:S,onKeyUp:S},s)),P=i.createElement("div",{className:"".concat(k,"-quick-jumper")},r.jump_to,i.createElement("input",{disabled:u,type:"text",value:m,onChange:function(e){v(e.target.value)},onKeyUp:S,onBlur:function(e){s||""===m||(v(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(c,"-item"))>=0)||null==l||l(y()))},"aria-label":r.page}),r.page,E)),i.createElement("li",{className:k},C,P)};var P=function(e){var t=e.rootPrefixCls,n=e.page,r=e.active,o=e.className,a=e.showTitle,s=e.onClick,l=e.onKeyPress,c=e.itemRender,u="".concat(t,"-item"),h=g()(u,"".concat(u,"-").concat(n),(0,m.Z)((0,m.Z)({},"".concat(u,"-active"),r),"".concat(u,"-disabled"),!n),o),d=c(n,"page",i.createElement("a",{rel:"nofollow"},n));return d?i.createElement("li",{title:a?String(n):null,className:h,onClick:function(){s(n)},onKeyDown:function(e){l(e,s,n)},tabIndex:0},d):null},E=function(e,t,n){return n};function M(){}function L(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function A(e,t,n){var i=void 0===e?t:e;return Math.floor((n-1)/i)+1}var T=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,o=e.selectPrefixCls,a=void 0===o?"rc-select":o,s=e.className,l=e.current,c=e.defaultCurrent,u=void 0===c?1:c,h=e.total,d=void 0===h?0:h,p=e.pageSize,f=e.defaultPageSize,_=void 0===f?10:f,T=e.onChange,D=void 0===T?M:T,N=e.hideOnSinglePage,I=e.align,B=e.showPrevNextJumpers,R=void 0===B||B,O=e.showQuickJumper,F=e.showLessItems,z=e.showTitle,j=void 0===z||z,$=e.onShowSizeChange,H=void 0===$?M:$,Z=e.locale,K=void 0===Z?k.Z:Z,G=e.style,U=e.totalBoundaryShowSizeChanger,V=void 0===U?50:U,W=e.disabled,q=e.simple,Y=e.showTotal,X=e.showSizeChanger,Q=void 0===X?d>V:X,J=e.sizeChangerRender,ee=e.pageSizeOptions,te=e.itemRender,ne=void 0===te?E:te,ie=e.jumpPrevIcon,re=e.jumpNextIcon,oe=e.prevIcon,ae=e.nextIcon,se=i.useRef(null),le=(0,w.Z)(10,{value:p,defaultValue:_}),ce=(0,b.Z)(le,2),ue=ce[0],he=ce[1],de=(0,w.Z)(1,{value:l,defaultValue:u,postState:function(e){return Math.max(1,Math.min(e,A(void 0,ue,d)))}}),pe=(0,b.Z)(de,2),fe=pe[0],ge=pe[1],me=i.useState(fe),ve=(0,b.Z)(me,2),ye=ve[0],be=ve[1];(0,i.useEffect)((function(){be(fe)}),[fe]);var we=Math.max(1,fe-(F?3:5)),xe=Math.min(A(void 0,ue,d),fe+(F?3:5));function Se(t,r){var o=t||i.createElement("button",{type:"button","aria-label":r,className:"".concat(n,"-item-link")});return"function"==typeof t&&(o=i.createElement(t,(0,y.Z)({},e))),o}function ke(e){var t=e.target.value,n=A(void 0,ue,d);return""===t?t:Number.isNaN(Number(t))?ye:t>=n?n:Number(t)}var _e=d>ue&&O;function Ce(e){var t=ke(e);switch(t!==ye&&be(t),e.keyCode){case x.Z.ENTER:Pe(t);break;case x.Z.UP:Pe(t-1);break;case x.Z.DOWN:Pe(t+1)}}function Pe(e){if(function(e){return L(e)&&e!==fe&&L(d)&&d>0}(e)&&!W){var t=A(void 0,ue,d),n=e;return e>t?n=t:e<1&&(n=1),n!==ye&&be(n),ge(n),null==D||D(n,ue),n}return fe}var Ee=fe>1,Me=fe2?n-2:0),r=2;rd?d:fe*ue])),Fe=null,ze=A(void 0,ue,d);if(N&&d<=ue)return null;var je=[],$e={rootPrefixCls:n,onClick:Pe,onKeyPress:Ne,showTitle:j,itemRender:ne,page:-1},He=fe-1>0?fe-1:0,Ze=fe+1=2*We&&3!==fe&&(je[0]=i.cloneElement(je[0],{className:g()("".concat(n,"-item-after-jump-prev"),je[0].props.className)}),je.unshift(Be)),ze-fe>=2*We&&fe!==ze-2){var it=je[je.length-1];je[je.length-1]=i.cloneElement(it,{className:g()("".concat(n,"-item-before-jump-next"),it.props.className)}),je.push(Fe)}1!==et&&je.unshift(i.createElement(P,(0,r.Z)({},$e,{key:1,page:1}))),tt!==ze&&je.push(i.createElement(P,(0,r.Z)({},$e,{key:ze,page:ze})))}var rt=function(e){var t=ne(e,"prev",Se(oe,"prev page"));return i.isValidElement(t)?i.cloneElement(t,{disabled:!Ee}):t}(He);if(rt){var ot=!Ee||!ze;rt=i.createElement("li",{title:j?K.prev_page:null,onClick:Le,tabIndex:ot?null:0,onKeyDown:function(e){Ne(e,Le)},className:g()("".concat(n,"-prev"),(0,m.Z)({},"".concat(n,"-disabled"),ot)),"aria-disabled":ot},rt)}var at,st,lt=function(e){var t=ne(e,"next",Se(ae,"next page"));return i.isValidElement(t)?i.cloneElement(t,{disabled:!Me}):t}(Ze);lt&&(q?(at=!Me,st=Ee?0:null):st=(at=!Me||!ze)?null:0,lt=i.createElement("li",{title:j?K.next_page:null,onClick:Ae,tabIndex:st,onKeyDown:function(e){Ne(e,Ae)},className:g()("".concat(n,"-next"),(0,m.Z)({},"".concat(n,"-disabled"),at)),"aria-disabled":at},lt));var ct=g()(n,s,(0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)({},"".concat(n,"-start"),"start"===I),"".concat(n,"-center"),"center"===I),"".concat(n,"-end"),"end"===I),"".concat(n,"-simple"),q),"".concat(n,"-disabled"),W));return i.createElement("ul",(0,r.Z)({className:ct,style:G,ref:se},Re),Oe,rt,q?Ve:je,lt,i.createElement(C,{locale:K,rootPrefixCls:n,disabled:W,selectPrefixCls:a,changeSize:function(e){var t=A(e,ue,d),n=fe>t&&0!==t?t:fe;he(e),be(n),null==H||H(fe,e),ge(n),null==D||D(n,e)},pageSize:ue,pageSizeOptions:ee,quickGo:_e?Pe:null,goButton:Ue,showSizeChanger:Q,sizeChangerRender:J}))},D=n(61852),N=n(48755),I=n(31756),B=n(13783),R=n(9017),O=n(75914),F=n(57700),z=n(66604),j=n(53075),$=n(64910),H=n(39082),Z=n(63356),K=n(51636),G=n(16931);const U=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},V=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:(0,z.bf)(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,z.bf)(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,z.bf)(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:(0,z.bf)(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:(0,z.bf)(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:(0,z.bf)(e.itemSizeSM),input:Object.assign(Object.assign({},(0,j.x0)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},W=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:(0,z.bf)(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:(0,z.bf)(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,z.bf)(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${(0,z.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${(0,z.bf)(e.inputOutlineOffset)} 0 ${(0,z.bf)(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},q=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:(0,z.bf)(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,z.bf)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:(0,z.bf)(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,j.ik)(e)),(0,H.$U)(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},(0,H.Xy)(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Y=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:(0,z.bf)(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${(0,z.bf)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,z.bf)(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},X=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Z.Wf)(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:(0,z.bf)(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Y(e)),q(e)),W(e)),V(e)),U(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Q=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,Z.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,Z.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,Z.oN)(e))}}}},J=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},(0,$.T)(e)),ee=e=>(0,K.IX)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,$.e)(e));var te=(0,G.I$)("Pagination",(e=>{const t=ee(e);return[X(t),Q(t)]}),J);const ne=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${(0,z.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}};var ie=(0,G.bk)(["Pagination","bordered"],(e=>{const t=ee(e);return[ne(t)]}),J);function re(e){return(0,i.useMemo)((()=>"boolean"==typeof e?[e,{}]:e&&"object"==typeof e?[!0,e]:[void 0,void 0]),[e])}var oe=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:a,style:s,size:c,locale:u,responsive:f,showSizeChanger:m,selectComponentClass:v,pageSizeOptions:y}=e,b=oe(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:w}=(0,B.Z)(f),[,x]=(0,F.ZP)(),{getPrefixCls:S,direction:k,showSizeChanger:_,className:C,style:P}=(0,N.dj)("pagination"),E=S("pagination",n),[M,L,A]=te(E),z=(0,I.Z)(c),j="small"===z||!(!w||z||!f),[$]=(0,R.Z)("Pagination",D.Z),H=Object.assign(Object.assign({},$),u),[Z,K]=re(m),[G,U]=re(_),V=null!=Z?Z:G,W=null!=K?K:U,q=v||O.default,Y=i.useMemo((()=>y?y.map((e=>Number(e))):void 0),[y]);const X=i.useMemo((()=>{const e=i.createElement("span",{className:`${E}-item-ellipsis`},"•••");return{prevIcon:i.createElement("button",{className:`${E}-item-link`,type:"button",tabIndex:-1},"rtl"===k?i.createElement(p.Z,null):i.createElement(d.Z,null)),nextIcon:i.createElement("button",{className:`${E}-item-link`,type:"button",tabIndex:-1},"rtl"===k?i.createElement(d.Z,null):i.createElement(p.Z,null)),jumpPrevIcon:i.createElement("a",{className:`${E}-item-link`},i.createElement("div",{className:`${E}-item-container`},"rtl"===k?i.createElement(h,{className:`${E}-item-link-icon`}):i.createElement(l,{className:`${E}-item-link-icon`}),e)),jumpNextIcon:i.createElement("a",{className:`${E}-item-link`},i.createElement("div",{className:`${E}-item-container`},"rtl"===k?i.createElement(l,{className:`${E}-item-link-icon`}):i.createElement(h,{className:`${E}-item-link-icon`}),e))}}),[k,E]),Q=S("select",r),J=g()({[`${E}-${t}`]:!!t,[`${E}-mini`]:j,[`${E}-rtl`]:"rtl"===k,[`${E}-bordered`]:x.wireframe},C,o,a,L,A),ee=Object.assign(Object.assign({},P),s);return M(i.createElement(i.Fragment,null,x.wireframe&&i.createElement(ie,{prefixCls:E}),i.createElement(T,Object.assign({},X,b,{style:ee,prefixCls:E,selectPrefixCls:Q,className:J,locale:H,pageSizeOptions:Y,showSizeChanger:V,sizeChangerRender:e=>{var t;const{disabled:n,size:r,onSizeChange:o,"aria-label":a,className:s,options:l}=e,{className:c,onChange:u}=W||{},h=null===(t=l.find((e=>String(e.value)===String(r))))||void 0===t?void 0:t.value;return i.createElement(q,Object.assign({disabled:n,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":a,options:l},W,{value:h,onChange:(e,t)=>{null==o||o(e),null==u||u(e,t)},size:j?"small":"middle",className:g()(s,c)}))}}))))},se=ae},47889:function(e,t,n){"use strict";n.d(t,{ZP:function(){return $}});var i=n(59301),r=n(92310),o=n.n(r),a=n(18929),s=n(26112),l=n(48755),c=n(83397),u=n(31756);const h=i.createContext(null),d=h.Provider;var p=h;const f=i.createContext(null),g=f.Provider;var m=n(16632),v=n(8654),y=n(12919),b=n(63872),w=n(74632),x=n(2171),S=n(56553),k=n(66604),_=n(63356),C=n(16931),P=n(51636);const E=e=>{const{componentCls:t,antCls:n}=e,i=`${t}-group`;return{[i]:Object.assign(Object.assign({},(0,_.Wf)(e)),{display:"inline-block",fontSize:0,[`&${i}-rtl`]:{direction:"rtl"},[`&${i}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},M=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:i,radioSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:h,colorTextDisabled:d,paddingXS:p,dotColorDisabled:f,lineType:g,radioColor:m,radioBgColor:v,calc:y}=e,b=`${t}-inner`,w=y(r).sub(y(4).mul(2)),x=y(1).mul(r).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,_.Wf)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,k.bf)(u)} ${g} ${i}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},(0,_.Wf)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${b}`]:{borderColor:i},[`${t}-input:focus-visible + ${b}`]:Object.assign({},(0,_.oN)(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:y(1).mul(r).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(r).div(-2).equal({unit:!0}),backgroundColor:m,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:i,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(r).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:h,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:f}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:d,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${y(w).div(r).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},L=e=>{const{buttonColor:t,controlHeight:n,componentCls:i,lineWidth:r,lineType:o,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:h,fontSizeLG:d,controlHeightLG:p,controlHeightSM:f,paddingXS:g,borderRadius:m,borderRadiusSM:v,borderRadiusLG:y,buttonCheckedBg:b,buttonSolidCheckedColor:w,colorTextDisabled:x,colorBgContainerDisabled:S,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:P,colorPrimary:E,colorPrimaryHover:M,colorPrimaryActive:L,buttonSolidCheckedBg:A,buttonSolidCheckedHoverBg:T,buttonSolidCheckedActiveBg:D,calc:N}=e;return{[`${i}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:(0,k.bf)(N(n).sub(N(r).mul(2)).equal()),background:h,border:`${(0,k.bf)(r)} ${o} ${a}`,borderBlockStartWidth:N(r).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${i}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:N(r).mul(-1).equal(),insetInlineStart:N(r).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,k.bf)(r)} ${o} ${a}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${i}-group-large &`]:{height:p,fontSize:d,lineHeight:(0,k.bf)(N(p).sub(N(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${i}-group-small &`]:{height:f,paddingInline:N(g).sub(r).equal(),paddingBlock:0,lineHeight:(0,k.bf)(N(f).sub(N(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},(0,_.oN)(e)),[`${i}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${i}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:b,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:M,borderColor:M,"&::before":{backgroundColor:M}},"&:active":{color:L,borderColor:L,"&::before":{backgroundColor:L}}},[`${i}-group-solid &-checked:not(${i}-button-wrapper-disabled)`]:{color:w,background:A,borderColor:A,"&:hover":{color:w,background:T,borderColor:T},"&:active":{color:w,background:D,borderColor:D}},"&-disabled":{color:x,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:S,borderColor:a}},[`&-disabled${i}-button-wrapper-checked`]:{color:P,backgroundColor:C,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}};var A=(0,C.I$)("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,i=`0 0 0 ${(0,k.bf)(n)} ${t}`,r=i,o=(0,P.IX)(e,{radioFocusShadow:i,radioButtonFocusShadow:r});return[E(o),M(o),L(o)]}),(e=>{const{wireframe:t,padding:n,marginXS:i,lineWidth:r,fontSizeLG:o,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:h,colorPrimaryHover:d,colorPrimaryActive:p,colorWhite:f}=e;return{radioSize:o,dotSize:t?o-8:o-2*(4+r),dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:h,buttonSolidCheckedHoverBg:d,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-r,wrapperMarginInlineEnd:i,radioColor:t?h:f,radioBgColor:t?s:h}}),{unitless:{radioSize:!0,dotSize:!0}}),T=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var n,r;const a=i.useContext(p),s=i.useContext(f),{getPrefixCls:u,direction:h,radio:d}=i.useContext(l.E_),g=i.useRef(null),k=(0,v.sQ)(t,g),{isFormItemInput:_}=i.useContext(S.aM);const C=t=>{var n,i;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(i=null==a?void 0:a.onChange)||void 0===i||i.call(a,t)},{prefixCls:P,className:E,rootClassName:M,children:L,style:D,title:N}=e,I=T(e,["prefixCls","className","rootClassName","children","style","title"]),B=u("radio",P),R="button"===((null==a?void 0:a.optionType)||s),O=R?`${B}-button`:B,F=(0,c.Z)(B),[z,j,$]=A(B,F),H=Object.assign({},I),Z=i.useContext(x.Z);a&&(H.name=a.name,H.onChange=C,H.checked=e.value===a.value,H.disabled=null!==(n=H.disabled)&&void 0!==n?n:a.disabled),H.disabled=null!==(r=H.disabled)&&void 0!==r?r:Z;const K=o()(`${O}-wrapper`,{[`${O}-wrapper-checked`]:H.checked,[`${O}-wrapper-disabled`]:H.disabled,[`${O}-wrapper-rtl`]:"rtl"===h,[`${O}-wrapper-in-form-item`]:_,[`${O}-wrapper-block`]:!!(null==a?void 0:a.block)},null==d?void 0:d.className,E,M,j,$,F),[G,U]=(0,w.Z)(H.onClick);return z(i.createElement(y.Z,{component:"Radio",disabled:H.disabled},i.createElement("label",{className:K,style:Object.assign(Object.assign({},null==d?void 0:d.style),D),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:N,onClick:G},i.createElement(m.Z,Object.assign({},H,{className:o()(H.className,{[b.A]:!R}),type:"radio",prefixCls:O,ref:k,onClick:U})),void 0!==L?i.createElement("span",{className:`${O}-label`},L):null)))};var N=i.forwardRef(D),I=n(80402);const B=i.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=i.useContext(l.E_),h=(0,I.Z)(),{prefixCls:p,className:f,rootClassName:g,options:m,buttonStyle:v="outline",disabled:y,children:b,size:w,style:x,id:S,optionType:k,name:_=h,defaultValue:C,value:P,block:E=!1,onChange:M,onMouseEnter:L,onMouseLeave:T,onFocus:D,onBlur:B}=e,[R,O]=(0,a.Z)(C,{value:P}),F=i.useCallback((t=>{const n=R,i=t.target.value;"value"in e||O(i),i!==n&&(null==M||M(t))}),[R,O,M]),z=n("radio",p),j=`${z}-group`,$=(0,c.Z)(z),[H,Z,K]=A(z,$);let G=b;m&&m.length>0&&(G=m.map((e=>"string"==typeof e||"number"==typeof e?i.createElement(N,{key:e.toString(),prefixCls:z,disabled:y,value:e,checked:R===e},e):i.createElement(N,{key:`radio-group-value-options-${e.value}`,prefixCls:z,disabled:e.disabled||y,value:e.value,checked:R===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const U=(0,u.Z)(w),V=o()(j,`${j}-${v}`,{[`${j}-${U}`]:U,[`${j}-rtl`]:"rtl"===r,[`${j}-block`]:E},f,g,Z,K,$),W=i.useMemo((()=>({onChange:F,value:R,disabled:y,name:_,optionType:k,block:E})),[F,R,y,_,k,E]);return H(i.createElement("div",Object.assign({},(0,s.Z)(e,{aria:!0,data:!0}),{className:V,style:x,onMouseEnter:L,onMouseLeave:T,onFocus:D,onBlur:B,id:S,ref:t}),i.createElement(d,{value:W},G)))}));var R=i.memo(B),O=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n}=i.useContext(l.E_),{prefixCls:r}=e,o=O(e,["prefixCls"]),a=n("radio",r);return i.createElement(g,{value:"button"},i.createElement(N,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))};var z=i.forwardRef(F);const j=N;j.Button=z,j.Group=R,j.__ANT_RADIO=!0;var $=j},77019:function(e,t,n){"use strict";var i=n(65970);t.Z=i.Z},75914:function(e,t,n){"use strict";n.d(t,{default:function(){return St}});var i=n(59301),r=n(92310),o=n.n(r),a=n(14809),s=n(95190),l=n(4635),c=n(20439),u=n(50298),h=n(62646),d=n(93664),p=n(18929),f=n(48736),g=n(34280),m=n(49658),v=n(8654),y=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,a=e.children,s=e.onMouseDown,l=e.onClick,c="function"==typeof n?n(r):n;return i.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==s||s(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==c?c:i.createElement("span",{className:o()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},a))},b=i.createContext(null);function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=i.useRef(null),n=i.useRef(null);function r(i){(i||null===t.current)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return i.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var x=n(10228);var S=n(26112),k=n(11780);var _=function(e,t,n){var i=(0,c.Z)((0,c.Z)({},e),n?t:{});return Object.keys(t).forEach((function(n){var r=t[n];"function"==typeof r&&(i[n]=function(){for(var t,i=arguments.length,o=new Array(i),a=0;aM&&(o="".concat(a.slice(0,M),"..."))}var s=function(t){t&&t.stopPropagation(),O(e)};return"function"==typeof B?re(i,o,t,r,s):ie(e,o,t,r,s)},renderRest:function(e){if(!s.length)return null;var t="function"==typeof I?I(e):I;return"function"==typeof B?re(void 0,t,!1,!1,void 0,!0):ie({title:t},t,!1)},suffix:oe,itemKey:D,maxCount:P});return i.createElement("span",{className:"".concat(ee,"-wrap")},ae,!s.length&&!te&&i.createElement("span",{className:"".concat(ee,"-placeholder")},f))},B=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,a=e.disabled,s=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,h=e.mode,d=e.open,p=e.values,f=e.placeholder,g=e.tabIndex,m=e.showSearch,v=e.searchValue,y=e.activeValue,b=e.maxLength,w=e.onInputKeyDown,x=e.onInputMouseDown,k=e.onInputChange,_=e.onInputPaste,C=e.onInputCompositionStart,P=e.onInputCompositionEnd,M=e.onInputBlur,L=e.title,A=i.useState(!1),D=(0,u.Z)(A,2),N=D[0],I=D[1],B="combobox"===h,R=B||m,O=p[0],F=v||"";B&&y&&!N&&(F=y),i.useEffect((function(){B&&I(!1)}),[B,y]);var z=!("combobox"!==h&&!d&&!m)&&!!F,j=void 0===L?T(O):L,$=i.useMemo((function(){return O?null:i.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:z?{visibility:"hidden"}:void 0},f)}),[O,z,f,n]);return i.createElement("span",{className:"".concat(n,"-selection-wrap")},i.createElement("span",{className:"".concat(n,"-selection-search")},i.createElement(E,{ref:o,prefixCls:n,id:r,open:d,inputElement:t,disabled:a,autoFocus:s,autoComplete:l,editable:R,activeDescendantId:c,value:F,onKeyDown:w,onMouseDown:x,onChange:function(e){I(!0),k(e)},onPaste:_,onCompositionStart:C,onCompositionEnd:P,onBlur:M,tabIndex:g,attrs:(0,S.Z)(e,!0),maxLength:B?b:void 0})),!B&&O?i.createElement("span",{className:"".concat(n,"-selection-item"),title:j,style:z?{visibility:"hidden"}:void 0},O.label):null,$)},R=function(e,t){var n=(0,i.useRef)(null),r=(0,i.useRef)(!1),o=e.prefixCls,s=e.open,l=e.mode,c=e.showSearch,h=e.tokenWithEnter,d=e.disabled,p=e.prefix,f=e.autoClearSearchValue,g=e.onSearch,m=e.onSearchSubmit,v=e.onToggleOpen,y=e.onInputKeyDown,b=e.onInputBlur,S=e.domRef;i.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var k=w(0),_=(0,u.Z)(k,2),C=_[0],P=_[1],E=(0,i.useRef)(null),M=function(e){!1!==g(e,!0,r.current)&&v(!0)},L={inputRef:n,onInputKeyDown:function(e){var t,i=e.which,o=n.current instanceof HTMLTextAreaElement;(o||!s||i!==x.Z.UP&&i!==x.Z.DOWN||e.preventDefault(),y&&y(e),i!==x.Z.ENTER||"tags"!==l||r.current||s||null==m||m(e.target.value),o&&!s&&~[x.Z.UP,x.Z.DOWN,x.Z.LEFT,x.Z.RIGHT].indexOf(i))||(t=i)&&![x.Z.ESC,x.Z.SHIFT,x.Z.BACKSPACE,x.Z.TAB,x.Z.WIN_KEY,x.Z.ALT,x.Z.META,x.Z.WIN_KEY_RIGHT,x.Z.CTRL,x.Z.SEMICOLON,x.Z.EQUALS,x.Z.CAPS_LOCK,x.Z.CONTEXT_MENU,x.Z.F1,x.Z.F2,x.Z.F3,x.Z.F4,x.Z.F5,x.Z.F6,x.Z.F7,x.Z.F8,x.Z.F9,x.Z.F10,x.Z.F11,x.Z.F12].includes(t)&&v(!0)},onInputMouseDown:function(){P(!0)},onInputChange:function(e){var t=e.target.value;if(h&&E.current&&/[\r\n]/.test(E.current)){var n=E.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,E.current)}E.current=null,M(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");E.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==l&&M(e.target.value)},onInputBlur:b},A="multiple"===l||"tags"===l?i.createElement(I,(0,a.Z)({},e,L)):i.createElement(B,(0,a.Z)({},e,L));return i.createElement("div",{ref:S,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=C();e.target===n.current||t||"combobox"===l&&d||e.preventDefault(),("combobox"===l||c&&t)&&s||(s&&!1!==f&&g("",!0,!1),v())}},p&&i.createElement("div",{className:"".concat(o,"-prefix")},p),A)};var O=i.forwardRef(R),F=n(65966),z=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],j=function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),s=e.children,u=e.popupElement,d=e.animation,p=e.transitionName,f=e.dropdownStyle,g=e.dropdownClassName,m=e.direction,v=void 0===m?"ltr":m,y=e.placement,b=e.builtinPlacements,w=e.dropdownMatchSelectWidth,x=e.dropdownRender,S=e.dropdownAlign,k=e.getPopupContainer,_=e.empty,C=e.getTriggerDOMNode,P=e.onPopupVisibleChange,E=e.onPopupMouseEnter,M=(0,h.Z)(e,z),L="".concat(n,"-dropdown"),A=u;x&&(A=x(u));var T=i.useMemo((function(){return b||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(w)}),[b,w]),D=d?"".concat(L,"-").concat(d):p,N="number"==typeof w,I=i.useMemo((function(){return N?null:!1===w?"minWidth":"width"}),[w,N]),B=f;N&&(B=(0,c.Z)((0,c.Z)({},B),{},{width:w}));var R=i.useRef(null);return i.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=R.current)||void 0===e?void 0:e.popupElement}}})),i.createElement(F.Z,(0,a.Z)({},M,{showAction:P?["click"]:[],hideAction:P?["click"]:[],popupPlacement:y||("rtl"===v?"bottomRight":"bottomLeft"),builtinPlacements:T,prefixCls:L,popupTransitionName:D,popup:i.createElement("div",{onMouseEnter:E},A),ref:R,stretch:I,popupAlign:S,popupVisible:r,getPopupContainer:k,popupClassName:o()(g,(0,l.Z)({},"".concat(L,"-empty"),_)),popupStyle:B,getTriggerDOMNode:C,onPopupVisibleChange:P}),s)};var $=i.forwardRef(j),H=n(21696);function Z(e,t){var n,i=e.key;return"value"in e&&(n=e.value),null!=i?i:void 0!==n?n:"rc-index-key-".concat(t)}function K(e){return void 0!==e&&!Number.isNaN(e)}function G(e,t){var n=e||{},i=n.label||(t?"children":"label");return{label:i,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||i}}function U(e){var t=(0,c.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,f.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var V=i.createContext(null);function W(e){var t=e.visible,n=e.values;if(!t)return null;return i.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes((0,d.Z)(t))?t:n})).join(", ")),n.length>50?", ...":null)}var q=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Y=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],X=function(e){return"tags"===e||"multiple"===e},Q=i.forwardRef((function(e,t){var n,r=e.id,f=e.prefixCls,x=e.className,S=e.showSearch,k=e.tagRender,_=e.direction,C=e.omitDomProps,P=e.displayValues,E=e.onDisplayValuesChange,M=e.emptyOptions,L=e.notFoundContent,A=void 0===L?"Not Found":L,T=e.onClear,D=e.mode,N=e.disabled,I=e.loading,B=e.getInputElement,R=e.getRawInputElement,F=e.open,z=e.defaultOpen,j=e.onDropdownVisibleChange,Z=e.activeValue,G=e.onActiveValueChange,U=e.activeDescendantId,Q=e.searchValue,J=e.autoClearSearchValue,ee=e.onSearch,te=e.onSearchSplit,ne=e.tokenSeparators,ie=e.allowClear,re=e.prefix,oe=e.suffixIcon,ae=e.clearIcon,se=e.OptionList,le=e.animation,ce=e.transitionName,ue=e.dropdownStyle,he=e.dropdownClassName,de=e.dropdownMatchSelectWidth,pe=e.dropdownRender,fe=e.dropdownAlign,ge=e.placement,me=e.builtinPlacements,ve=e.getPopupContainer,ye=e.showAction,be=void 0===ye?[]:ye,we=e.onFocus,xe=e.onBlur,Se=e.onKeyUp,ke=e.onKeyDown,_e=e.onMouseDown,Ce=(0,h.Z)(e,q),Pe=X(D),Ee=(void 0!==S?S:Pe)||"combobox"===D,Me=(0,c.Z)({},Ce);Y.forEach((function(e){delete Me[e]})),null==C||C.forEach((function(e){delete Me[e]}));var Le=i.useState(!1),Ae=(0,u.Z)(Le,2),Te=Ae[0],De=Ae[1];i.useEffect((function(){De((0,m.Z)())}),[]);var Ne=i.useRef(null),Ie=i.useRef(null),Be=i.useRef(null),Re=i.useRef(null),Oe=i.useRef(null),Fe=i.useRef(!1),ze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=i.useState(!1),n=(0,u.Z)(t,2),r=n[0],o=n[1],a=i.useRef(null),s=function(){window.clearTimeout(a.current)};return i.useEffect((function(){return s}),[]),[r,function(t,n){s(),a.current=window.setTimeout((function(){o(t),n&&n()}),e)},s]}(),je=(0,u.Z)(ze,3),$e=je[0],He=je[1],Ze=je[2];i.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Re.current)||void 0===e?void 0:e.focus,blur:null===(t=Re.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Oe.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:Ne.current||Ie.current}}));var Ke=i.useMemo((function(){var e;if("combobox"!==D)return Q;var t=null===(e=P[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[Q,D,P]),Ge="combobox"===D&&"function"==typeof B&&B()||null,Ue="function"==typeof R&&R(),Ve=(0,v.x1)(Ie,null==Ue||null===(n=Ue.props)||void 0===n?void 0:n.ref),We=i.useState(!1),qe=(0,u.Z)(We,2),Ye=qe[0],Xe=qe[1];(0,g.Z)((function(){Xe(!0)}),[]);var Qe=(0,p.Z)(!1,{defaultValue:z,value:F}),Je=(0,u.Z)(Qe,2),et=Je[0],tt=Je[1],nt=!!Ye&&et,it=!A&&M;(N||it&&nt&&"combobox"===D)&&(nt=!1);var rt=!it&&nt,ot=i.useCallback((function(e){var t=void 0!==e?e:!nt;N||(tt(t),nt!==t&&(null==j||j(t)))}),[N,nt,tt,j]),at=i.useMemo((function(){return(ne||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ne]),st=i.useContext(V)||{},lt=st.maxCount,ct=st.rawValues,ut=function(e,t,n){if(!(Pe&&K(lt)&&(null==ct?void 0:ct.size)>=lt)){var i=!0,r=e;null==G||G(null);var o=function(e,t,n){if(!t||!t.length)return null;var i=!1,r=function e(t,n){var r=(0,H.Z)(n),o=r[0],a=r.slice(1);if(!o)return[t];var l=t.split(o);return i=i||l.length>1,l.reduce((function(t,n){return[].concat((0,s.Z)(t),(0,s.Z)(e(n,a)))}),[]).filter(Boolean)}(e,t);return i?void 0!==n?r.slice(0,n):r:null}(e,ne,K(lt)?lt-ct.size:void 0),a=n?null:o;return"combobox"!==D&&a&&(r="",null==te||te(a),ot(!1),i=!1),ee&&Ke!==r&&ee(r,{source:t?"typing":"effect"}),i}};i.useEffect((function(){nt||Pe||"combobox"===D||ut("",!1,!1)}),[nt]),i.useEffect((function(){et&&N&&tt(!1),N&&!Fe.current&&He(!1)}),[N]);var ht=w(),dt=(0,u.Z)(ht,2),pt=dt[0],ft=dt[1],gt=i.useRef(!1),mt=i.useRef(!1),vt=[];i.useEffect((function(){return function(){vt.forEach((function(e){return clearTimeout(e)})),vt.splice(0,vt.length)}}),[]);var yt,bt=i.useState({}),wt=(0,u.Z)(bt,2)[1];Ue&&(yt=function(e){ot(e)}),function(e,t,n,r){var o=i.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},i.useEffect((function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var i=t.target;i.shadowRoot&&t.composed&&(i=t.composedPath()[0]||i),o.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(i)&&e!==i}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Ne.current,null===(e=Be.current)||void 0===e?void 0:e.getPopupElement()]}),rt,ot,!!Ue);var xt,St=i.useMemo((function(){return(0,c.Z)((0,c.Z)({},e),{},{notFoundContent:A,open:nt,triggerOpen:rt,id:r,showSearch:Ee,multiple:Pe,toggleOpen:ot})}),[e,A,rt,nt,r,Ee,Pe,ot]),kt=!!oe||I;kt&&(xt=i.createElement(y,{className:o()("".concat(f,"-arrow"),(0,l.Z)({},"".concat(f,"-arrow-loading"),I)),customizeIcon:oe,customizeIconProps:{loading:I,searchValue:Ke,open:nt,focused:$e,showSearch:Ee}}));var _t,Ct=function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=i.useMemo((function(){return"object"===(0,d.Z)(r)?r.clearIcon:o||void 0}),[r,o]),u=i.useMemo((function(){return!(a||!r||!n.length&&!s||"combobox"===l&&""===s)}),[r,a,n.length,s,l]);return{allowClear:u,clearIcon:i.createElement(y,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}(f,(function(){var e;null==T||T(),null===(e=Re.current)||void 0===e||e.focus(),E([],{type:"clear",values:P}),ut("",!1,!1)}),P,ie,ae,N,Ke,D),Pt=Ct.allowClear,Et=Ct.clearIcon,Mt=i.createElement(se,{ref:Oe}),Lt=o()(f,x,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(f,"-focused"),$e),"".concat(f,"-multiple"),Pe),"".concat(f,"-single"),!Pe),"".concat(f,"-allow-clear"),ie),"".concat(f,"-show-arrow"),kt),"".concat(f,"-disabled"),N),"".concat(f,"-loading"),I),"".concat(f,"-open"),nt),"".concat(f,"-customize-input"),Ge),"".concat(f,"-show-search"),Ee)),At=i.createElement($,{ref:Be,disabled:N,prefixCls:f,visible:rt,popupElement:Mt,animation:le,transitionName:ce,dropdownStyle:ue,dropdownClassName:he,direction:_,dropdownMatchSelectWidth:de,dropdownRender:pe,dropdownAlign:fe,placement:ge,builtinPlacements:me,getPopupContainer:ve,empty:M,getTriggerDOMNode:function(e){return Ie.current||e},onPopupVisibleChange:yt,onPopupMouseEnter:function(){wt({})}},Ue?i.cloneElement(Ue,{ref:Ve}):i.createElement(O,(0,a.Z)({},e,{domRef:Ie,prefixCls:f,inputElement:Ge,ref:Re,id:r,prefix:re,showSearch:Ee,autoClearSearchValue:J,mode:D,activeDescendantId:U,tagRender:k,values:P,open:nt,onToggleOpen:ot,activeValue:Z,searchValue:Ke,onSearch:ut,onSearchSubmit:function(e){e&&e.trim()&&ee(e,{source:"submit"})},onRemove:function(e){var t=P.filter((function(t){return t!==e}));E(t,{type:"remove",values:[e]})},tokenWithEnter:at,onInputBlur:function(){gt.current=!1}})));return _t=Ue?At:i.createElement("div",(0,a.Z)({className:Lt},Me,{ref:Ne,onMouseDown:function(e){var t,n=e.target,i=null===(t=Be.current)||void 0===t?void 0:t.getPopupElement();if(i&&i.contains(n)){var r=setTimeout((function(){var e,t=vt.indexOf(r);-1!==t&&vt.splice(t,1),Ze(),Te||i.contains(document.activeElement)||null===(e=Re.current)||void 0===e||e.focus()}));vt.push(r)}for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s=0;l-=1){var c=o[l];if(!c.disabled){o.splice(l,1),a=c;break}}a&&E(o,{type:"remove",values:[a]})}for(var u=arguments.length,h=new Array(u>1?u-1:0),d=1;d1?t-1:0),i=1;i=_}),[p,_,null==A?void 0:A.size]),$=function(e){e.preventDefault()},H=function(e){var t;null===(t=z.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},Z=i.useCallback((function(e){return"combobox"!==f&&A.has(e)}),[f,(0,s.Z)(A).toString(),A.size]),G=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=F.length,i=0;i1&&void 0!==arguments[1]&&arguments[1];Y(e);var n={source:t?"keyboard":"mouse"},i=F[e];i?P(i.value,e,n):P(null,-1,n)};(0,i.useEffect)((function(){X(!1!==E?G(0):-1)}),[F.length,g]);var Q=i.useCallback((function(e){return"combobox"===f?String(e).toLowerCase()===g.toLowerCase():A.has(e)}),[f,g,(0,s.Z)(A).toString(),A.size]);(0,i.useEffect)((function(){var e,t=setTimeout((function(){if(!p&&d&&1===A.size){var e=Array.from(A)[0],t=F.findIndex((function(t){var n=t.data;return g?String(n.value).startsWith(g):n.value===e}));-1!==t&&(X(t),H(t))}}));d&&(null===(e=z.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[d,g]);var J=function(e){void 0!==e&&M(e,{selected:!A.has(e)}),p||m(!1)};if(i.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case x.Z.N:case x.Z.P:case x.Z.UP:case x.Z.DOWN:var i=0;if(t===x.Z.UP?i=-1:t===x.Z.DOWN?i=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===x.Z.N?i=1:t===x.Z.P&&(i=-1)),0!==i){var r=G(q+i,i);H(r),X(r,!0)}break;case x.Z.TAB:case x.Z.ENTER:var o,a=F[q];!a||null!=a&&null!==(o=a.data)&&void 0!==o&&o.disabled||j?J(void 0):J(a.value),d&&e.preventDefault();break;case x.Z.ESC:m(!1),d&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){H(e)}}})),0===F.length)return i.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(O,"-empty"),onMouseDown:$},v);var ee=Object.keys(T).map((function(e){return T[e]})),te=function(e){return e.label};function ne(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var ie=function(e){var t=F[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,s=(0,S.Z)(n,!0),l=te(t);return t?i.createElement("div",(0,a.Z)({"aria-label":"string"!=typeof l||o?null:l},s,{key:e},ne(t,e),{"aria-selected":Q(r)}),r):null},ce={role:"listbox",id:"".concat(c,"_list")};return i.createElement(i.Fragment,null,D&&i.createElement("div",(0,a.Z)({},ce,{style:{height:0,width:0,overflow:"hidden"}}),ie(q-1),ie(q),ie(q+1)),i.createElement(ae.Z,{itemKey:"key",ref:z,data:F,height:I,itemHeight:B,fullHeight:!1,onMouseDown:$,onScroll:w,virtual:D,direction:N,innerProps:D?null:ce},(function(e,t){var n=e.group,r=e.groupOption,s=e.data,c=e.label,u=e.value,d=s.key;if(n){var p,f=null!==(p=s.title)&&void 0!==p?p:le(c)?c.toString():void 0;return i.createElement("div",{className:o()(O,"".concat(O,"-group"),s.className),title:f},void 0!==c?c:d)}var g=s.disabled,m=s.title,v=(s.children,s.style),b=s.className,w=(0,h.Z)(s,se),x=(0,oe.Z)(w,ee),k=Z(u),_=g||!k&&j,C="".concat(O,"-option"),P=o()(O,C,b,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(C,"-grouped"),r),"".concat(C,"-active"),q===t&&!_),"".concat(C,"-disabled"),_),"".concat(C,"-selected"),k)),E=te(e),M=!L||"function"==typeof L||k,A="number"==typeof E?E:E||u,T=le(A)?A.toString():void 0;return void 0!==m&&(T=m),i.createElement("div",(0,a.Z)({},(0,S.Z)(x),D?{}:ne(e,t),{"aria-selected":Q(u),className:P,title:T,onMouseMove:function(){q===t||_||X(t)},onClick:function(){_||J(u)},style:v}),i.createElement("div",{className:"".concat(C,"-content")},"function"==typeof R?R(e,{index:t}):A),i.isValidElement(L)||k,M&&i.createElement(y,{className:"".concat(O,"-option-state"),customizeIcon:L,customizeIconProps:{value:u,disabled:_,isSelected:k}},k?"✓":null))})))};var ue=i.forwardRef(ce);function he(e,t){return M(e).join("").toUpperCase().includes(t)}var de=n(47273),pe=0,fe=(0,de.Z)();function ge(e){var t=i.useState(),n=(0,u.Z)(t,2),r=n[0],o=n[1];return i.useEffect((function(){var e;o("rc_select_".concat((fe?(e=pe,pe+=1):e="TEST_OR_SSR",e)))}),[]),e||r}var me=n(11592),ve=["children","value"],ye=["children"];function be(e){var t=e,n=t.key,i=t.props,r=i.children,o=i.value,a=(0,h.Z)(i,ve);return(0,c.Z)({key:n,value:void 0!==o?o:n,children:r},a)}function we(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,me.Z)(e).map((function(e,n){if(!i.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,a=r.key,s=r.props,l=s.children,u=(0,h.Z)(s,ye);return t||!o?be(e):(0,c.Z)((0,c.Z)({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},u),{},{options:we(l)})})).filter((function(e){return e}))}var xe=function(e,t,n,r,o){return i.useMemo((function(){var i=e;!e&&(i=we(t));var a=new Map,s=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c0?e(t.options):t.options}):t}))},Oe=i.useMemo((function(){return E?Re(Be):Be}),[Be,E,le]),Fe=i.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,i=t.childrenAsData,r=[],o=G(n,!1),a=o.label,s=o.value,l=o.options,c=o.groupLabel;function u(e,t){Array.isArray(e)&&e.forEach((function(e){if(t||!(l in e)){var n=e[s];r.push({key:Z(e,r.length),groupOption:t,data:e,label:e[a],value:n})}else{var o=e[c];void 0===o&&i&&(o=e.label),r.push({key:Z(e,r.length),group:!0,data:e,label:o}),u(e[l],!0)}}))}return u(e,!1),r}(Oe,{fieldNames:oe,childrenAsData:ie})}),[Oe,oe,ie]),ze=function(e){var t=ve(e);if(Ce(t),Y&&(t.length!==Le.length||t.some((function(e,t){var n;return(null===(n=Le[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=q?t:t.map((function(e){return e.value})),i=t.map((function(e){return U(Ae(e.value))}));Y(ne?n:n[0],ne?i:i[0])}},je=i.useState(null),$e=(0,u.Z)(je,2),He=$e[0],Ze=$e[1],Ke=i.useState(0),Ge=(0,u.Z)(Ke,2),Ue=Ge[0],Ve=Ge[1],We=void 0!==I?I:"combobox"!==r,qe=i.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.source,o=void 0===i?"keyboard":i;Ve(t),g&&"combobox"===r&&null!==e&&"keyboard"===o&&Ze(String(e))}),[g,r]),Ye=function(e,t,n){var i=function(){var t,n=Ae(e);return[q?{label:null==n?void 0:n[oe.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,U(n)]};if(t&&S){var r=i(),o=(0,u.Z)(r,2),a=o[0],s=o[1];S(a,s)}else if(!t&&k&&"clear"!==n){var l=i(),c=(0,u.Z)(l,2),h=c[0],d=c[1];k(h,d)}},Xe=Se((function(e,t){var n,i=!ne||t.selected;n=i?ne?[].concat((0,s.Z)(Le),[e]):[e]:Le.filter((function(t){return t.value!==e})),ze(n),Ye(e,i),"combobox"===r?Ze(""):X&&!x||(ce(""),Ze(""))})),Qe=i.useMemo((function(){var e=!1!==R&&!1!==C;return(0,c.Z)((0,c.Z)({},de),{},{flattenOptions:Fe,onActiveValue:qe,defaultActiveFirstOption:We,onSelect:Xe,menuItemSelectedIcon:B,rawValues:De,fieldNames:oe,virtual:e,direction:O,listHeight:z,listItemHeight:$,childrenAsData:ie,maxCount:Q,optionRender:D})}),[Q,de,Fe,qe,We,Xe,B,De,oe,R,C,O,z,$,ie,D]);return i.createElement(V.Provider,{value:Qe},i.createElement(J,(0,a.Z)({},ee,{id:te,prefixCls:f,ref:t,omitDomProps:_e,mode:r,displayValues:Te,onDisplayValuesChange:function(e,t){ze(e);var n=t.type,i=t.values;"remove"!==n&&"clear"!==n||i.forEach((function(e){Ye(e.value,!1,n)}))},direction:O,searchValue:le,onSearch:function(e,t){if(ce(e),Ze(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&ze(e),null==b||b(e));else{var n=(e||"").trim();if(n){var i=Array.from(new Set([].concat((0,s.Z)(De),[n])));ze(i),Ye(n,!0),ce("")}}},autoClearSearchValue:x,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=fe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,s.Z)(De),(0,s.Z)(t))));ze(n),n.forEach((function(e){Ye(e,!0)}))},dropdownMatchSelectWidth:C,OptionList:ue,emptyOptions:!Fe.length,activeValue:He,activeDescendantId:"".concat(te,"_list_").concat(Ue)})))}));var Pe=Ce;Pe.Option=ie,Pe.OptGroup=te;var Ee=Pe,Me=n(75030),Le=n(86641),Ae=n(45915),Te=n(82855),De=n(48755),Ne=n(38406),Ie=n(2171),Be=n(83397),Re=n(31756),Oe=n(56553),Fe=n(24971),ze=n(70045),je=n(57700);var $e=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},He=n(63356),Ze=n(56119),Ke=n(16931),Ge=n(51636),Ue=n(46e3),Ve=n(93873);const We=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:i,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:i,boxSizing:"border-box"}};var qe=e=>{const{antCls:t,componentCls:n}=e,i=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${i}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,He.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${r}${s}bottomLeft,\n ${o}${s}bottomLeft\n `]:{animationName:Ue.fJ},[`\n ${r}${s}topLeft,\n ${o}${s}topLeft,\n ${r}${s}topRight,\n ${o}${s}topRight\n `]:{animationName:Ue.Qt},[`${a}${s}bottomLeft`]:{animationName:Ue.Uw},[`\n ${a}${s}topLeft,\n ${a}${s}topRight\n `]:{animationName:Ue.ly},"&-hidden":{display:"none"},[i]:Object.assign(Object.assign({},We(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},He.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${i}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${i}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${i}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${i}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},We(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Ue.oN)(e,"slide-up"),(0,Ue.oN)(e,"slide-down"),(0,Ve.Fm)(e,"move-up"),(0,Ve.Fm)(e,"move-down")]},Ye=n(26743),Xe=n(66604);function Qe(e,t){const{componentCls:n,inputPaddingHorizontalBase:i,borderRadius:r}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal();return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},(0,He.Wf)(e,!0)),{display:"flex",borderRadius:r,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:(0,Xe.bf)(o)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{display:"block",padding:0,lineHeight:(0,Xe.bf)(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-search,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Xe.bf)(i)}`,[`${n}-selection-search-input`]:{height:o,fontSize:e.fontSize},"&:after":{lineHeight:(0,Xe.bf)(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Xe.bf)(i)}`,"&:after":{display:"none"}}}}}}}function Je(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Qe(e),Qe((0,Ge.IX)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${(0,Xe.bf)(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Qe((0,Ge.IX)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const et=(e,t)=>{const{componentCls:n,antCls:i,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${(0,Xe.bf)(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${i}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${(0,Xe.bf)(r)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},tt=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},et(e,t))}),nt=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},et(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),tt(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),tt(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,Xe.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),it=(e,t)=>{const{componentCls:n,antCls:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${(0,Xe.bf)(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${i}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},rt=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},it(e,t))}),ot=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},it(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),rt(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),rt(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${(0,Xe.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),at=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${(0,Xe.bf)(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,Xe.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),st=(e,t)=>{const{componentCls:n,antCls:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${(0,Xe.bf)(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${i}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},lt=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},st(e,t))}),ct=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},st(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),lt(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),lt(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,Xe.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})});var ut=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},nt(e)),ot(e)),at(e)),ct(e))});const ht=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},dt=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},pt=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:i,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},(0,He.Wf)(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},ht(e)),dt(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},He.vS),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},He.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},(0,He.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},ft=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},pt(e),Je(e),(0,Ye.ZP)(e),qe(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,Ze.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var gt=(0,Ke.I$)("Select",((e,t)=>{let{rootPrefixCls:n}=t;const i=(0,Ge.IX)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[ft(i),ut(i)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:i,controlHeight:r,controlHeightSM:o,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:h,controlItemBgActive:d,controlItemBgHover:p,colorBgContainer:f,colorFillSecondary:g,colorBgContainerDisabled:m,colorTextDisabled:v,colorPrimaryHover:y,colorPrimary:b,controlOutline:w}=e,x=2*s,S=2*i,k=Math.min(r-x,r-S),_=Math.min(o-x,o-S),C=Math.min(a-x,a-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:h,optionSelectedBg:d,optionActiveBg:p,optionPadding:`${(r-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:f,clearBg:f,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:k,multipleItemHeightSM:_,multipleItemHeightLG:C,multipleSelectorBgDisabled:m,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:y,activeBorderColor:b,activeOutlineColor:w,selectAffixPadding:s}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),mt=n(68525);var vt=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,bordered:a,className:s,rootClassName:l,getPopupContainer:c,popupClassName:u,dropdownClassName:h,listHeight:d=256,placement:p,listItemHeight:f,size:g,disabled:m,notFoundContent:v,status:y,builtinPlacements:b,dropdownMatchSelectWidth:w,popupMatchSelectWidth:x,direction:S,style:k,allowClear:_,variant:C,dropdownStyle:P,transitionName:E,tagRender:M,maxCount:L,prefix:A}=e,T=vt(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:D,getPrefixCls:N,renderEmpty:I,direction:B,virtual:R,popupMatchSelectWidth:O,popupOverflow:F}=i.useContext(De.E_),z=(0,De.dj)("select"),[,j]=(0,je.ZP)(),$=null!=f?f:null==j?void 0:j.controlHeight,H=N("select",r),Z=N(),K=null!=S?S:B,{compactSize:G,compactItemClassnames:U}=(0,ze.ri)(H,K),[V,W]=(0,Fe.Z)("select",C,a),q=(0,Be.Z)(H),[Y,X,Q]=gt(H,q),J=i.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===yt?"combobox":t}),[e.mode]),ee="multiple"===J||"tags"===J,te=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ne=null!==(n=null!=x?x:w)&&void 0!==n?n:O,{status:ie,hasFeedback:re,isFormItemInput:ae,feedbackIcon:se}=i.useContext(Oe.aM),le=(0,Te.F)(ie,y);let ce;ce=void 0!==v?v:"combobox"===J?null:(null==I?void 0:I("Select"))||i.createElement(Ne.Z,{componentName:"Select"});const{suffixIcon:ue,itemIcon:he,removeIcon:de,clearIcon:pe}=(0,mt.Z)(Object.assign(Object.assign({},T),{multiple:ee,hasFeedback:re,feedbackIcon:se,showSuffixIcon:te,prefixCls:H,componentName:"Select"})),fe=!0===_?{clearIcon:pe}:_,ge=(0,oe.Z)(T,["suffixIcon","itemIcon"]),me=o()(u||h,{[`${H}-dropdown-${K}`]:"rtl"===K},l,Q,q,X),ve=(0,Re.Z)((e=>{var t;return null!==(t=null!=g?g:G)&&void 0!==t?t:e})),ye=i.useContext(Ie.Z),be=null!=m?m:ye,we=o()({[`${H}-lg`]:"large"===ve,[`${H}-sm`]:"small"===ve,[`${H}-rtl`]:"rtl"===K,[`${H}-${V}`]:W,[`${H}-in-form-item`]:ae},(0,Te.Z)(H,le,re),U,z.className,s,l,Q,q,X),xe=i.useMemo((()=>void 0!==p?p:"rtl"===K?"bottomRight":"bottomLeft"),[p,K]);const[Se]=(0,Me.Cn)("SelectLike",null==P?void 0:P.zIndex);return Y(i.createElement(Ee,Object.assign({ref:t,virtual:R,showSearch:z.showSearch},ge,{style:Object.assign(Object.assign({},z.style),k),dropdownMatchSelectWidth:ne,transitionName:(0,Le.m)(Z,"slide-up",E),builtinPlacements:$e(b,F),listHeight:d,listItemHeight:$,mode:J,prefixCls:H,placement:xe,direction:K,prefix:A,suffixIcon:ue,menuItemSelectedIcon:he,removeIcon:de,allowClear:fe,notFoundContent:ce,className:we,getPopupContainer:c||D,dropdownClassName:me,disabled:be,dropdownStyle:Object.assign(Object.assign({},P),{zIndex:Se}),maxCount:ee?L:void 0,tagRender:ee?M:void 0})))};const wt=i.forwardRef(bt),xt=(0,Ae.Z)(wt,"dropdownAlign");wt.SECRET_COMBOBOX_MODE_DO_NOT_USE=yt,wt.Option=ie,wt.OptGroup=te,wt._InternalPanelDoNotUseOrYouWillBeFired=xt;var St=wt},26743:function(e,t,n){"use strict";n.d(t,{_z:function(){return s},gp:function(){return a}});var i=n(66604),r=n(63356),o=n(51636);const a=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(o).equal(),0),itemHeight:(0,i.bf)(t),itemLineHeight:(0,i.bf)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},s=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:i,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:h}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:h,borderRadius:i,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(h).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:s,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,r.Ro)()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},l=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,l=e.multipleSelectItemHeight,c=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:i}=e;return e.calc(n).sub(t).div(2).sub(i).equal()})(e),u=t?`${n}-${t}`:"",h=a(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},s(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:h.basePadding,paddingBlock:h.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,i.bf)(r)} 0`,lineHeight:(0,i.bf)(l),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:h.itemHeight,lineHeight:(0,i.bf)(h.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,i.bf)(l),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(h.basePadding).equal()},[`${o}-item + ${o}-item,\n ${n}-prefix + ${n}-selection-wrap\n `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:h.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c).equal(),"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:(0,i.bf)(l),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(h.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function c(e,t){const{componentCls:n}=e,i={[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[l(e,t),i]}t.ZP=e=>{const{componentCls:t}=e,n=(0,o.IX)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),i=(0,o.IX)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[c(e),c(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},c(i,"lg")]}},68525:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var i=n(59301),r=n(40001),o=n(19248),a=n(99267),s=n(84105),l=n(58617),c=n(47472);function u(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:u,removeIcon:h,loading:d,multiple:p,hasFeedback:f,prefixCls:g,showSuffixIcon:m,feedbackIcon:v,showArrow:y,componentName:b}=e;const w=null!=n?n:i.createElement(o.Z,null),x=e=>null!==t||f||y?i.createElement(i.Fragment,null,!1!==m&&e,f&&v):null;let S=null;if(void 0!==t)S=x(t);else if(d)S=x(i.createElement(l.Z,{spin:!0}));else{const e=`${g}-suffix`;S=t=>{let{open:n,showSearch:r}=t;return x(n&&r?i.createElement(c.Z,{className:e}):i.createElement(s.Z,{className:e}))}}let k=null;k=void 0!==u?u:p?i.createElement(r.Z,null):null;let _=null;return _=void 0!==h?h:i.createElement(a.Z,null),{clearIcon:w,suffixIcon:S,itemIcon:k,removeIcon:_}}},77736:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var i=n(59301),r=n(92310),o=n.n(r),a=n(11592);function s(e){return["small","middle","large"].includes(e)}function l(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}var c=n(48755),u=n(70045);const h=i.createContext({latestIndex:0}),d=h.Provider;var p=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:s}=i.useContext(h);return null==r?null:i.createElement(i.Fragment,null,i.createElement("div",{className:t,style:a},r),n{var n;const{getPrefixCls:r,direction:u,size:h,className:m,style:v,classNames:y,styles:b}=(0,c.dj)("space"),{size:w=(null!=h?h:"small"),align:x,className:S,rootClassName:k,children:_,direction:C="horizontal",prefixCls:P,split:E,style:M,wrap:L=!1,classNames:A,styles:T}=e,D=g(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[N,I]=Array.isArray(w)?w:[w,w],B=s(I),R=s(N),O=l(I),F=l(N),z=(0,a.Z)(_,{keepEmpty:!0}),j=void 0===x&&"horizontal"===C?"center":x,$=r("space",P),[H,Z,K]=(0,f.Z)($),G=o()($,m,Z,`${$}-${C}`,{[`${$}-rtl`]:"rtl"===u,[`${$}-align-${j}`]:j,[`${$}-gap-row-${I}`]:B,[`${$}-gap-col-${N}`]:R},S,k,K),U=o()(`${$}-item`,null!==(n=null==A?void 0:A.item)&&void 0!==n?n:y.item);let V=0;const W=z.map(((e,t)=>{var n;null!=e&&(V=t);const r=(null==e?void 0:e.key)||`${U}-${t}`;return i.createElement(p,{className:U,key:r,index:t,split:E,style:null!==(n=null==T?void 0:T.item)&&void 0!==n?n:b.item},e)})),q=i.useMemo((()=>({latestIndex:V})),[V]);if(0===z.length)return null;const Y={};return L&&(Y.flexWrap="wrap"),!R&&F&&(Y.columnGap=N),!B&&O&&(Y.rowGap=I),H(i.createElement("div",Object.assign({ref:t,className:G,style:Object.assign(Object.assign(Object.assign({},Y),v),M)},D),i.createElement(d,{value:q},W)))}));m.Compact=u.ZP;var v=m},34961:function(e,t){"use strict";t.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},93873:function(e,t,n){"use strict";n.d(t,{Fm:function(){return d}});var i=n(66604),r=n(48746);const o=new i.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new i.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),s=new i.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new i.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),c=new i.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new i.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),h={"move-up":{inKeyframes:new i.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new i.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:o,outKeyframes:a},"move-left":{inKeyframes:s,outKeyframes:l},"move-right":{inKeyframes:c,outKeyframes:u}},d=(e,t)=>{const{antCls:n}=e,i=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=h[t];return[(0,r.R)(i,o,a,e.motionDurationMid),{[`\n ${i}-enter,\n ${i}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${i}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},46e3:function(e,t,n){"use strict";n.d(t,{Qt:function(){return s},Uw:function(){return a},fJ:function(){return o},ly:function(){return l},oN:function(){return f}});var i=n(66604),r=n(48746);const o=new i.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new i.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),s=new i.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),l=new i.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c=new i.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),u=new i.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),h=new i.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),d=new i.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),p={"slide-up":{inKeyframes:o,outKeyframes:a},"slide-down":{inKeyframes:s,outKeyframes:l},"slide-left":{inKeyframes:c,outKeyframes:u},"slide-right":{inKeyframes:h,outKeyframes:d}},f=(e,t)=>{const{antCls:n}=e,i=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=p[t];return[(0,r.R)(i,o,a,e.motionDurationMid),{[`\n ${i}-enter,\n ${i}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${i}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},37645:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l},qN:function(){return o},wZ:function(){return a}});var i=n(66604),r=n(36305);const o=8;function a(e){const{contentRadius:t,limitVerticalRadius:n}=e,i=t>12?t+2:12;return{arrowOffsetHorizontal:i,arrowOffsetVertical:n?o:i}}function s(e,t){return e?t:{}}function l(e,t,n){const{componentCls:o,boxShadowPopoverArrow:a,arrowOffsetVertical:l,arrowOffsetHorizontal:c}=e,{arrowDistance:u=0,arrowPlacement:h={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,r.W)(e,t,a)),{"&:before":{background:t}})]},s(!!h.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":c,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,i.bf)(c)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),s(!!h.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":c,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,i.bf)(c)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),s(!!h.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:l},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:l}})),s(!!h.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:l},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:l}}))}}},36305:function(e,t,n){"use strict";n.d(t,{W:function(){return o},w:function(){return r}});var i=n(66604);function r(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:i}=e,r=t/2,o=r,a=1*i/Math.sqrt(2),s=r-i*(1-1/Math.sqrt(2)),l=r-n*(1/Math.sqrt(2)),c=i*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*r-l,h=c,d=2*r-a,p=s,f=2*r-0,g=o,m=r*Math.sqrt(2)+i*(Math.sqrt(2)-2),v=i*(Math.sqrt(2)-1);return{arrowShadowWidth:m,arrowPath:`path('M 0 ${o} A ${i} ${i} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${u} ${h} L ${d} ${p} A ${i} ${i} 0 0 0 ${f} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*r-v}px 100%, ${v}px 100%)`}}const o=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:s,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,i.bf)(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}}},80480:function(e,t,n){"use strict";n.d(t,{Z:function(){return uo}});var i=n(59301),r={},o="rc-table-internal-hook",a=n(50298),s=n(6089),l=n(34280),c=n(13697),u=n(4676);function h(e){var t=i.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,r=e.children,o=i.useRef(n);o.current=n;var s=i.useState((function(){return{getValue:function(){return o.current},listeners:new Set}})),c=(0,a.Z)(s,1)[0];return(0,l.Z)((function(){(0,u.unstable_batchedUpdates)((function(){c.listeners.forEach((function(e){e(n)}))}))}),[n]),i.createElement(t.Provider,{value:c},r)},defaultValue:e}}function d(e,t){var n=(0,s.Z)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),r=i.useContext(null==e?void 0:e.Context),o=r||{},u=o.listeners,h=o.getValue,d=i.useRef();d.current=n(r?h():null==e?void 0:e.defaultValue);var p=i.useState({}),f=(0,a.Z)(p,2)[1];return(0,l.Z)((function(){if(r)return u.add(e),function(){u.delete(e)};function e(e){var t=n(e);(0,c.Z)(d.current,t,!0)||f({})}}),[r]),d.current}var p=n(14809),f=n(8654);function g(){var e=i.createContext(null);function t(){return i.useContext(e)}return{makeImmutable:function(n,r){var o=(0,f.Yr)(n),a=function(a,s){var l=o?{ref:s}:{},c=i.useRef(0),u=i.useRef(a);return null!==t()?i.createElement(n,(0,p.Z)({},a,l)):(r&&!r(u.current,a)||(c.current+=1),u.current=a,i.createElement(e.Provider,{value:c.current},i.createElement(n,(0,p.Z)({},a,l))))};return o?i.forwardRef(a):a},responseImmutable:function(e,n){var r=(0,f.Yr)(e),o=function(n,o){var a=r?{ref:o}:{};return t(),i.createElement(e,(0,p.Z)({},n,a))};return r?i.memo(i.forwardRef(o),n):i.memo(o,n)},useImmutableMark:t}}var m=g(),v=(m.makeImmutable,m.responseImmutable,m.useImmutableMark,g()),y=v.makeImmutable,b=v.responseImmutable,w=v.useImmutableMark,x=h();var S=n(93664),k=n(20439),_=n(4635),C=n(92310),P=n.n(C),E=n(80547),M=n(97938),L=n(48736),A=i.createContext({renderWithProps:!1});function T(e){var t=[],n={};return e.forEach((function(e){for(var i,r=e||{},o=r.key,a=r.dataIndex,s=o||(i=a,null==i?[]:Array.isArray(i)?i:[i]).join("-")||"RC_TABLE_KEY";n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)})),t}function D(e){return null!=e}function N(e,t,n,r,o,s){var l=i.useContext(A),u=w();return(0,E.Z)((function(){if(D(r))return[r];var a,s=null==t||""===t?[]:Array.isArray(t)?t:[t],c=(0,M.Z)(e,s),u=c,h=void 0;if(o){var d=o(c,e,n);!(a=d)||"object"!==(0,S.Z)(a)||Array.isArray(a)||i.isValidElement(a)?u=d:(u=d.children,h=d.props,l.renderWithProps=!0)}return[u,h]}),[u,e,r,t,o,n],(function(e,t){if(s){var n=(0,a.Z)(e,2)[1],i=(0,a.Z)(t,2)[1];return s(i,n)}return!!l.renderWithProps||!(0,c.Z)(e,t,!0)}))}var I=n(70425);function B(e){var t,n,r,o,s,l,c,u;var h=e.component,f=e.children,g=e.ellipsis,m=e.scope,v=e.prefixCls,y=e.className,b=e.align,w=e.record,C=e.render,E=e.dataIndex,M=e.renderIndex,L=e.shouldCellUpdate,A=e.index,T=e.rowType,D=e.colSpan,B=e.rowSpan,R=e.fixLeft,O=e.fixRight,F=e.firstFixLeft,z=e.lastFixLeft,j=e.firstFixRight,$=e.lastFixRight,H=e.appendNode,Z=e.additionalProps,K=void 0===Z?{}:Z,G=e.isSticky,U="".concat(v,"-cell"),V=d(x,["supportSticky","allColumnsFixedLeft","rowHoverable"]),W=V.supportSticky,q=V.allColumnsFixedLeft,Y=V.rowHoverable,X=N(w,E,M,f,C,L),Q=(0,a.Z)(X,2),J=Q[0],ee=Q[1],te={},ne="number"==typeof R&&W,ie="number"==typeof O&&W;ne&&(te.position="sticky",te.left=R),ie&&(te.position="sticky",te.right=O);var re=null!==(t=null!==(n=null!==(r=null==ee?void 0:ee.colSpan)&&void 0!==r?r:K.colSpan)&&void 0!==n?n:D)&&void 0!==t?t:1,oe=null!==(o=null!==(s=null!==(l=null==ee?void 0:ee.rowSpan)&&void 0!==l?l:K.rowSpan)&&void 0!==s?s:B)&&void 0!==o?o:1,ae=function(e,t){return d(x,(function(n){var i,r,o,a;return[(i=e,r=t||1,o=n.hoverStartRow,a=n.hoverEndRow,i<=a&&i+r-1>=o),n.onHover]}))}(A,oe),se=(0,a.Z)(ae,2),le=se[0],ce=se[1],ue=(0,I.zX)((function(e){var t;w&&ce(A,A+oe-1),null==K||null===(t=K.onMouseEnter)||void 0===t||t.call(K,e)})),he=(0,I.zX)((function(e){var t;w&&ce(-1,-1),null==K||null===(t=K.onMouseLeave)||void 0===t||t.call(K,e)}));if(0===re||0===oe)return null;var de=null!==(c=K.title)&&void 0!==c?c:function(e){var t,n=e.ellipsis,r=e.rowType,o=e.children,a=!0===n?{showTitle:!0}:n;return a&&(a.showTitle||"header"===r)&&("string"==typeof o||"number"==typeof o?t=o.toString():i.isValidElement(o)&&"string"==typeof o.props.children&&(t=o.props.children)),t}({rowType:T,ellipsis:g,children:J}),pe=P()(U,y,(u={},(0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)(u,"".concat(U,"-fix-left"),ne&&W),"".concat(U,"-fix-left-first"),F&&W),"".concat(U,"-fix-left-last"),z&&W),"".concat(U,"-fix-left-all"),z&&q&&W),"".concat(U,"-fix-right"),ie&&W),"".concat(U,"-fix-right-first"),j&&W),"".concat(U,"-fix-right-last"),$&&W),"".concat(U,"-ellipsis"),g),"".concat(U,"-with-append"),H),"".concat(U,"-fix-sticky"),(ne||ie)&&G&&W),(0,_.Z)(u,"".concat(U,"-row-hover"),!ee&&le)),K.className,null==ee?void 0:ee.className),fe={};b&&(fe.textAlign=b);var ge=(0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)({},null==ee?void 0:ee.style),te),fe),K.style),me=J;return"object"!==(0,S.Z)(me)||Array.isArray(me)||i.isValidElement(me)||(me=null),g&&(z||j)&&(me=i.createElement("span",{className:"".concat(U,"-content")},me)),i.createElement(h,(0,p.Z)({},ee,K,{className:pe,style:ge,title:de,scope:m,onMouseEnter:Y?ue:void 0,onMouseLeave:Y?he:void 0,colSpan:1!==re?re:null,rowSpan:1!==oe?oe:null}),H,me)}var R=i.memo(B);function O(e,t,n,i,r){var o,a,s=n[e]||{},l=n[t]||{};"left"===s.fixed?o=i.left["rtl"===r?t:e]:"right"===l.fixed&&(a=i.right["rtl"===r?e:t]);var c=!1,u=!1,h=!1,d=!1,p=n[t+1],f=n[e-1],g=p&&!p.fixed||f&&!f.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===r){if(void 0!==o)d=!(f&&"left"===f.fixed)&&g;else if(void 0!==a){h=!(p&&"right"===p.fixed)&&g}}else if(void 0!==o){c=!(p&&"left"===p.fixed)&&g}else if(void 0!==a){u=!(f&&"right"===f.fixed)&&g}return{fixLeft:o,fixRight:a,lastFixLeft:c,firstFixRight:u,lastFixRight:h,firstFixLeft:d,isSticky:i.isSticky}}var F=i.createContext({});var z=n(62646),j=["children"];function $(e){return e.children}$.Row=function(e){var t=e.children,n=(0,z.Z)(e,j);return i.createElement("tr",n,t)},$.Cell=function(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,a=void 0===o?1:o,s=e.rowSpan,l=e.align,c=d(x,["prefixCls","direction"]),u=c.prefixCls,h=c.direction,f=i.useContext(F),g=f.scrollColumnIndex,m=f.stickyOffsets,v=n+a-1+1===g?a+1:a,y=O(n,n+v-1,f.flattenColumns,m,h);return i.createElement(R,(0,p.Z)({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:v,rowSpan:s,render:function(){return r}},y))};var H=$;var Z=b((function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=d(x,"prefixCls"),a=r.length-1,s=r[a],l=i.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=s&&s.scrollbar?a:null}}),[s,r,a,n]);return i.createElement(F.Provider,{value:l},i.createElement("tfoot",{className:"".concat(o,"-summary")},t))})),K=H,G=n(29301),U=n(47273),V=function(e){if((0,U.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function W(e,t){return Array.isArray(e)||void 0===t?V(e):function(e,t){if(!V(e))return!1;var n=document.createElement("div"),i=n.style[e];return n.style[e]=t,n.style[e]!==i}(e,t)}var q=n(75152),Y=n(26112);function X(e,t,n,i,r,o,a){e.push({record:t,indent:n,index:a});var s=o(t),l=null==r?void 0:r.has(s);if(t&&Array.isArray(t[i])&&l)for(var c=0;c1?n-1:0),r=1;r=1)),style:(0,k.Z)((0,k.Z)({},n),null==b?void 0:b.style)}),m.map((function(e,t){var n=e.render,s=e.dataIndex,l=e.className,u=ie(f,e,t,c,o),m=u.key,v=u.fixedInfo,y=u.appendCellNode,b=u.additionalCellProps;return i.createElement(R,(0,p.Z)({className:l,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?d:h,prefixCls:g,key:m,record:r,index:o,renderIndex:a,dataIndex:s,render:n,shouldCellUpdate:e.shouldCellUpdate},v,{appendNode:y,additionalProps:b}))})));if(x&&(S.current||w)){var L=y(r,o,c+1,w);C=i.createElement(ee,{expanded:w,className:P()("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),E),prefixCls:g,component:u,cellComponent:h,colSpan:m.length,isEmpty:!1},L)}return i.createElement(i.Fragment,null,M,C)}));function oe(e){var t=e.columnKey,n=e.onColumnResize,r=i.useRef();return(0,l.Z)((function(){r.current&&n(t,r.current.offsetWidth)}),[]),i.createElement(G.Z,{data:t},i.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},i.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}var ae=n(29194);function se(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,o=i.useRef(null);return i.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0},ref:o},i.createElement(G.Z.Collection,{onBatchResize:function(e){(0,ae.Z)(o.current)&&e.forEach((function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)}))}},n.map((function(e){return i.createElement(oe,{key:e,columnKey:e,onColumnResize:r})}))))}var le=b((function(e){var t,n=e.data,r=e.measureColumnWidth,o=d(x,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=o.prefixCls,s=o.getComponent,l=o.onColumnResize,c=o.flattenColumns,u=o.getRowKey,h=o.expandedKeys,p=o.childrenColumnName,f=o.emptyNode,g=Q(n,p,h,u),m=i.useRef({renderWithProps:!1}),v=s(["body","wrapper"],"tbody"),y=s(["body","row"],"tr"),b=s(["body","cell"],"td"),w=s(["body","cell"],"th");t=n.length?g.map((function(e,t){var n=e.record,r=e.indent,o=e.index,a=u(n,t);return i.createElement(re,{key:a,rowKey:a,record:n,index:t,renderIndex:o,rowComponent:y,cellComponent:b,scopeCellComponent:w,indent:r})})):i.createElement(ee,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:y,cellComponent:b,colSpan:c.length,isEmpty:!0},f);var S=T(c);return i.createElement(A.Provider,{value:m.current},i.createElement(v,{className:"".concat(a,"-tbody")},r&&i.createElement(se,{prefixCls:a,columnsKey:S,onColumnResize:l}),t))})),ce=["expandable"],ue="RC_TABLE_INTERNAL_COL_DEFINE";var he=["columnType"];var de=function(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=d(x,["tableLayout"]).tableLayout,a=[],s=!1,l=(r||n.length)-1;l>=0;l-=1){var c=t[l],u=n&&n[l],h=void 0,f=void 0;if(u&&(h=u[ue],"auto"===o&&(f=u.minWidth)),c||f||h||s){var g=h||{},m=(g.columnType,(0,z.Z)(g,he));a.unshift(i.createElement("col",(0,p.Z)({key:l,style:{width:c,minWidth:f}},m))),s=!0}}return i.createElement("colgroup",null,a)},pe=n(95190),fe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var ge=i.forwardRef((function(e,t){var n=e.className,r=e.noData,o=e.columns,a=e.flattenColumns,s=e.colWidths,l=e.columCount,c=e.stickyOffsets,u=e.direction,h=e.fixHeader,p=e.stickyTopOffset,g=e.stickyBottomOffset,m=e.stickyClassName,v=e.onScroll,y=e.maxContentScroll,b=e.children,w=(0,z.Z)(e,fe),S=d(x,["prefixCls","scrollbarSize","isSticky","getComponent"]),C=S.prefixCls,E=S.scrollbarSize,M=S.isSticky,L=(0,S.getComponent)(["header","table"],"table"),A=M&&!h?0:E,T=i.useRef(null),D=i.useCallback((function(e){(0,f.mH)(t,e),(0,f.mH)(T,e)}),[]);i.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,i=t.deltaX;i&&(v({currentTarget:n,scrollLeft:n.scrollLeft+i}),e.preventDefault())}return null===(e=T.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),function(){var e;null===(e=T.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var N=i.useMemo((function(){return a.every((function(e){return e.width}))}),[a]),I=a[a.length-1],B={fixed:I?I.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},R=(0,i.useMemo)((function(){return A?[].concat((0,pe.Z)(o),[B]):o}),[A,o]),O=(0,i.useMemo)((function(){return A?[].concat((0,pe.Z)(a),[B]):a}),[A,a]),F=(0,i.useMemo)((function(){var e=c.right,t=c.left;return(0,k.Z)((0,k.Z)({},c),{},{left:"rtl"===u?[].concat((0,pe.Z)(t.map((function(e){return e+A}))),[0]):t,right:"rtl"===u?e:[].concat((0,pe.Z)(e.map((function(e){return e+A}))),[0]),isSticky:M})}),[A,c,M]),j=function(e,t){return(0,i.useMemo)((function(){for(var n=[],i=0;i1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:s,prefixCls:h,key:g[t]},l,{additionalProps:n,rowType:"header"}))})))};var ye=b((function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,a=d(x,["prefixCls","getComponent"]),s=a.prefixCls,l=a.getComponent,c=i.useMemo((function(){return function(e){var t=[];!function e(n,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];var o=i;return n.filter(Boolean).map((function(n){var i={key:n.key,className:n.className||"",children:n.title,column:n,colStart:o},a=1,s=n.children;return s&&s.length>0&&(a=e(s,o,r+1).reduce((function(e,t){return e+t}),0),i.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(i.rowSpan=n.rowSpan),i.colSpan=a,i.colEnd=i.colStart+a-1,t[r].push(i),o+=a,a}))}(e,0);for(var n=t.length,i=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},r=0;r1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var xe=["children"],Se=["fixed"];function ke(e){return(0,be.Z)(e).filter((function(e){return i.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,i=n.children,r=(0,z.Z)(n,xe),o=(0,k.Z)({key:t},r);return i&&(o.children=ke(i)),o}))}function _e(e){return e.filter((function(e){return e&&"object"===(0,S.Z)(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?(0,k.Z)((0,k.Z)({},e),{},{children:_e(t)}):e}))}function Ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===(0,S.Z)(e)})).reduce((function(e,n,i){var r=n.fixed,o=!0===r?"left":r,a="".concat(t,"-").concat(i),s=n.children;return s&&s.length>0?[].concat((0,pe.Z)(e),(0,pe.Z)(Ce(s,a).map((function(e){return(0,k.Z)({fixed:o},e)})))):[].concat((0,pe.Z)(e),[(0,k.Z)((0,k.Z)({key:a},n),{},{fixed:o})])}),[])}var Pe=function(e,t){var n=e.prefixCls,o=e.columns,s=e.children,l=e.expandable,c=e.expandedKeys,u=e.columnTitle,h=e.getRowKey,d=e.onTriggerExpand,p=e.expandIcon,f=e.rowExpandable,g=e.expandIconColumnIndex,m=e.direction,v=e.expandRowByClick,y=e.columnWidth,b=e.fixed,w=e.scrollWidth,x=e.clientWidth,S=i.useMemo((function(){return _e((o||ke(s)||[]).slice())}),[o,s]),C=i.useMemo((function(){if(l){var e=S.slice();if(!e.includes(r)){var t=g||0;t>=0&&(t||"left"===b||!b)&&e.splice(t,0,r),"right"===b&&e.splice(S.length,0,r)}0;var o=e.indexOf(r);e=e.filter((function(e,t){return e!==r||t===o}));var a,s=S[o];a=b||(s?s.fixed:null);var m=(0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)({},ue,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",u),"fixed",a),"className","".concat(n,"-row-expand-icon-cell")),"width",y),"render",(function(e,t,r){var o=h(t,r),a=c.has(o),s=!f||f(t),l=p({prefixCls:n,expanded:a,expandable:s,record:t,onExpand:d});return v?i.createElement("span",{onClick:function(e){return e.stopPropagation()}},l):l}));return e.map((function(e){return e===r?m:e}))}return S.filter((function(e){return e!==r}))}),[l,S,h,c,p,m]),P=i.useMemo((function(){var e=C;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,C,m]),E=i.useMemo((function(){return"rtl"===m?function(e){return e.map((function(e){var t=e.fixed,n=(0,z.Z)(e,Se),i=t;return"left"===t?i="right":"right"===t&&(i="left"),(0,k.Z)({fixed:i},n)}))}(Ce(P)):Ce(P)}),[P,m,w]),M=i.useMemo((function(){for(var e=-1,t=E.length-1;t>=0;t-=1){var n=E[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var i=0;i<=e;i+=1){var r=E[i].fixed;if("left"!==r&&!0!==r)return!0}var o=E.findIndex((function(e){return"right"===e.fixed}));if(o>=0)for(var a=o;a0){var i=0,r=0;e.forEach((function(e){var n=we(t,e.width);n?i+=n:r+=1}));var o=Math.max(t,n),a=Math.max(o-i,r),s=r,l=a/r,c=0,u=e.map((function(e){var n=(0,k.Z)({},e),i=we(t,n.width);if(i)n.width=i;else{var r=Math.floor(l);n.width=1===s?a:r,a-=r,s-=1}return c+=n.width,n}));if(c=n-g?A((function(e){return(0,k.Z)((0,k.Z)({},e),{},{isHiddenScrollBar:!0})})):A((function(e){return(0,k.Z)((0,k.Z)({},e),{},{isHiddenScrollBar:!1})}))}}))},j=function(e){A((function(t){return(0,k.Z)((0,k.Z)({},t),{},{scrollLeft:e/b*w||0})}))};return i.useImperativeHandle(t,(function(){return{setScrollLeft:j,checkScrollBarVisible:z}})),i.useEffect((function(){var e=Te(document.body,"mouseup",O,!1),t=Te(document.body,"mousemove",F,!1);return z(),function(){e.remove(),t.remove()}}),[S,I]),i.useEffect((function(){if(p.current){for(var e=[],t=(0,Ne.bn)(p.current);t;)e.push(t),t=t.parentElement;return e.forEach((function(e){return e.addEventListener("scroll",z,!1)})),window.addEventListener("resize",z,!1),window.addEventListener("scroll",z,!1),m.addEventListener("scroll",z,!1),function(){e.forEach((function(e){return e.removeEventListener("scroll",z)})),window.removeEventListener("resize",z),window.removeEventListener("scroll",z),m.removeEventListener("scroll",z)}}}),[m]),i.useEffect((function(){L.isHiddenScrollBar||A((function(e){var t=p.current;return t?(0,k.Z)((0,k.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[L.isHiddenScrollBar]),b<=w||!S||L.isHiddenScrollBar?null:i.createElement("div",{style:{height:(0,q.Z)(),width:w,bottom:g},className:"".concat(y,"-sticky-scroll")},i.createElement("div",{onMouseDown:function(e){e.persist(),T.current.delta=e.pageX-L.scrollLeft,T.current.x=0,B(!0),e.preventDefault()},ref:C,className:P()("".concat(y,"-sticky-scroll-bar"),(0,_.Z)({},"".concat(y,"-sticky-scroll-bar-active"),I)),style:{width:"".concat(S,"px"),transform:"translate3d(".concat(L.scrollLeft,"px, 0, 0)")}}))},Re=i.forwardRef(Be);var Oe=function(e){return null};var Fe=function(e){return null},ze="rc-table",je=[],$e={};function He(){return"No Data"}function Ze(e,t){var n=(0,k.Z)({rowKey:"key",prefixCls:ze,emptyText:He},e),r=n.prefixCls,u=n.className,h=n.rowClassName,d=n.style,f=n.data,g=n.rowKey,m=n.scroll,v=n.tableLayout,y=n.direction,b=n.title,w=n.footer,C=n.summary,L=n.caption,A=n.id,N=n.showHeader,I=n.components,B=n.emptyText,R=n.onRow,F=n.onHeaderRow,z=n.onScroll,j=n.internalHooks,$=n.transformColumns,K=n.internalRefs,U=n.tailor,V=n.getContainerWidth,X=n.sticky,Q=n.rowHoverable,J=void 0===Q||Q,ee=f||je,te=!!ee.length,ne=j===o;var ie=i.useCallback((function(e,t){return(0,M.Z)(I,e)||t}),[I]),re=i.useMemo((function(){return"function"==typeof g?g:function(e){return e&&e[g]}}),[g]),oe=ie(["body"]),ae=function(){var e=i.useState(-1),t=(0,a.Z)(e,2),n=t[0],r=t[1],o=i.useState(-1),s=(0,a.Z)(o,2),l=s[0],c=s[1];return[n,l,i.useCallback((function(e,t){r(e),c(t)}),[])]}(),se=(0,a.Z)(ae,3),ce=se[0],ue=se[1],he=se[2],pe=Ee(n,ee,re),fe=(0,a.Z)(pe,6),ge=fe[0],ve=fe[1],be=fe[2],we=fe[3],xe=fe[4],Se=fe[5],ke=null==m?void 0:m.x,_e=i.useState(0),Ce=(0,a.Z)(_e,2),Te=Ce[0],De=Ce[1],Ie=Pe((0,k.Z)((0,k.Z)((0,k.Z)({},n),ge),{},{expandable:!!ge.expandedRowRender,columnTitle:ge.columnTitle,expandedKeys:be,getRowKey:re,onTriggerExpand:Se,expandIcon:we,expandIconColumnIndex:ge.expandIconColumnIndex,direction:y,scrollWidth:ne&&U&&"number"==typeof ke?ke:null,clientWidth:Te}),ne?$:null),Be=(0,a.Z)(Ie,4),Oe=Be[0],Fe=Be[1],Ze=Be[2],Ke=Be[3],Ge=null!=Ze?Ze:ke,Ue=i.useMemo((function(){return{columns:Oe,flattenColumns:Fe}}),[Oe,Fe]),Ve=i.useRef(),We=i.useRef(),qe=i.useRef(),Ye=i.useRef();i.useImperativeHandle(t,(function(){return{nativeElement:Ve.current,scrollTo:function(e){var t,n;if(qe.current instanceof HTMLElement){var i=e.index,r=e.top,o=e.key;if("number"!=typeof(n=r)||Number.isNaN(n)){var a,s=null!=o?o:re(ee[i]);null===(a=qe.current.querySelector('[data-row-key="'.concat(s,'"]')))||void 0===a||a.scrollIntoView()}else{var l;null===(l=qe.current)||void 0===l||l.scrollTo({top:r})}}else null!==(t=qe.current)&&void 0!==t&&t.scrollTo&&qe.current.scrollTo(e)}}}));var Xe,Qe,Je,et=i.useRef(),tt=i.useState(!1),nt=(0,a.Z)(tt,2),it=nt[0],rt=nt[1],ot=i.useState(!1),at=(0,a.Z)(ot,2),st=at[0],lt=at[1],ct=i.useState(new Map),ut=(0,a.Z)(ct,2),ht=ut[0],dt=ut[1],pt=T(Fe).map((function(e){return ht.get(e)})),ft=i.useMemo((function(){return pt}),[pt.join("_")]),gt=Le(ft,Fe,y),mt=m&&D(m.y),vt=m&&D(Ge)||Boolean(ge.fixed),yt=vt&&Fe.some((function(e){return e.fixed})),bt=i.useRef(),wt=function(e,t){var n="object"===(0,S.Z)(e)?e:{},r=n.offsetHeader,o=void 0===r?0:r,a=n.offsetSummary,s=void 0===a?0:a,l=n.offsetScroll,c=void 0===l?0:l,u=n.getContainer,h=(void 0===u?function(){return Me}:u)()||Me,d=!!e;return i.useMemo((function(){return{isSticky:d,stickyClassName:d?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:s,offsetScroll:c,container:h}}),[d,c,o,s,t,h])}(X,r),xt=wt.isSticky,St=wt.offsetHeader,kt=wt.offsetSummary,_t=wt.offsetScroll,Ct=wt.stickyClassName,Pt=wt.container,Et=i.useMemo((function(){return null==C?void 0:C(ee)}),[C,ee]),Mt=(mt||xt)&&i.isValidElement(Et)&&Et.type===H&&Et.props.fixed;mt&&(Qe={overflowY:te?"scroll":"auto",maxHeight:m.y}),vt&&(Xe={overflowX:"auto"},mt||(Qe={overflowY:"hidden"}),Je={width:!0===Ge?"auto":Ge,minWidth:"100%"});var Lt=i.useCallback((function(e,t){dt((function(n){if(n.get(e)!==t){var i=new Map(n);return i.set(e,t),i}return n}))}),[]),At=function(e){var t=(0,i.useRef)(e||null),n=(0,i.useRef)();function r(){window.clearTimeout(n.current)}return(0,i.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),Tt=(0,a.Z)(At,2),Dt=Tt[0],Nt=Tt[1];function It(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var Bt=(0,s.Z)((function(e){var t,n=e.currentTarget,i=e.scrollLeft,r="rtl"===y,o="number"==typeof i?i:n.scrollLeft,a=n||$e;Nt()&&Nt()!==a||(Dt(a),It(o,We.current),It(o,qe.current),It(o,et.current),It(o,null===(t=bt.current)||void 0===t?void 0:t.setScrollLeft));var s=n||We.current;if(s){var l=ne&&U&&"number"==typeof Ge?Ge:s.scrollWidth,c=s.clientWidth;if(l===c)return rt(!1),void lt(!1);r?(rt(-o0)):(rt(o>0),lt(o1?b-N:0,B=(0,k.Z)((0,k.Z)((0,k.Z)({},M),u),{},{flex:"0 0 ".concat(N,"px"),width:"".concat(N,"px"),marginRight:I,pointerEvents:"auto"}),O=i.useMemo((function(){return f?D<=1:0===A||0===D||D>1}),[D,A,f]);O?B.visibility="hidden":f&&(B.height=null==g?void 0:g(D));var F=O?function(){return null}:m,z={};return 0!==D&&0!==A||(z.rowSpan=1,z.colSpan=1),i.createElement(R,(0,p.Z)({className:P()(y,h),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:s,prefixCls:t.prefixCls,key:S,record:c,index:a,renderIndex:l,dataIndex:v,render:F,shouldCellUpdate:n.shouldCellUpdate},_,{appendNode:C,additionalProps:(0,k.Z)((0,k.Z)({},E),{},{style:B},z)}))},Qe=["data","index","className","rowKey","style","extra","getHeight"],Je=i.forwardRef((function(e,t){var n,r=e.data,o=e.index,a=e.className,s=e.rowKey,l=e.style,c=e.extra,u=e.getHeight,h=(0,z.Z)(e,Qe),f=r.record,g=r.indent,m=r.index,v=d(x,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),y=v.scrollX,b=v.flattenColumns,w=v.prefixCls,S=v.fixColumn,C=v.componentWidth,E=d(qe,["getComponent"]).getComponent,M=J(f,s,o,g),L=E(["body","row"],"div"),A=E(["body","cell"],"div"),T=M.rowSupportExpand,D=M.expanded,N=M.rowProps,I=M.expandedRowRender,B=M.expandedRowClassName;if(T&&D){var O=I(f,o,g+1,D),F=ne(B,f,o,g),j={};S&&(j={style:(0,_.Z)({},"--virtual-width","".concat(C,"px"))});var $="".concat(w,"-expanded-row-cell");n=i.createElement(L,{className:P()("".concat(w,"-expanded-row"),"".concat(w,"-expanded-row-level-").concat(g+1),F)},i.createElement(R,{component:A,prefixCls:w,className:P()($,(0,_.Z)({},"".concat($,"-fixed"),S)),additionalProps:j},O))}var H=(0,k.Z)((0,k.Z)({},l),{},{width:y});c&&(H.position="absolute",H.pointerEvents="none");var Z=i.createElement(L,(0,p.Z)({},N,h,{"data-row-key":s,ref:T?null:t,className:P()(a,"".concat(w,"-row"),null==N?void 0:N.className,(0,_.Z)({},"".concat(w,"-row-extra"),c)),style:(0,k.Z)((0,k.Z)({},H),null==N?void 0:N.style)}),b.map((function(e,t){return i.createElement(Xe,{key:t,component:A,rowInfo:M,column:e,colIndex:t,indent:g,index:o,renderIndex:m,record:f,inverse:c,getHeight:u})})));return T?i.createElement("div",{ref:t},Z,n):Z}));var et=b(Je),tt=i.forwardRef((function(e,t){var n=e.data,r=e.onScroll,o=d(x,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),s=o.flattenColumns,l=o.onColumnResize,c=o.getRowKey,u=o.expandedKeys,h=o.prefixCls,p=o.childrenColumnName,f=o.scrollX,g=o.direction,m=d(qe),v=m.sticky,y=m.scrollY,b=m.listItemHeight,w=m.getComponent,k=m.onScroll,_=i.useRef(),C=Q(n,p,u,c),P=i.useMemo((function(){var e=0;return s.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[s]),E=i.useMemo((function(){return P.map((function(e){return e[2]}))}),[P]);i.useEffect((function(){P.forEach((function(e){var t=(0,a.Z)(e,2),n=t[0],i=t[1];l(n,i)}))}),[P]),i.useImperativeHandle(t,(function(){var e,t={scrollTo:function(e){var t;null===(t=_.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=_.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=_.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=_.current)||void 0===t||t.scrollTo({left:e})}}),t}));var M=function(e,t){var n,i=null===(n=C[t])||void 0===n?void 0:n.record,r=e.onCell;if(r){var o,a=r(i,t);return null!==(o=null==a?void 0:a.rowSpan)&&void 0!==o?o:1}return 1},L=i.useMemo((function(){return{columnsOffset:E}}),[E]),A="".concat(h,"-tbody"),T=w(["body","wrapper"]),D={};return v&&(D.position="sticky",D.bottom=0,"object"===(0,S.Z)(v)&&v.offsetScroll&&(D.bottom=v.offsetScroll)),i.createElement(Ye.Provider,{value:L},i.createElement(We.Z,{fullHeight:!1,ref:_,prefixCls:"".concat(A,"-virtual"),styles:{horizontalScrollBar:D},className:A,height:y,itemHeight:b||24,data:C,itemKey:function(e){return c(e.record)},component:T,scrollWidth:f,direction:g,onVirtualScroll:function(e){var t,n=e.x;r({currentTarget:null===(t=_.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:k,extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,o=e.offsetY;if(n<0)return null;for(var a=s.filter((function(e){return 0===M(e,t)})),l=t,u=function(e){if(!(a=a.filter((function(t){return 0===M(t,e)}))).length)return l=e,1},h=t;h>=0&&!u(h);h-=1);for(var d=s.filter((function(e){return 1!==M(e,n)})),p=n,f=function(e){if(!(d=d.filter((function(t){return 1!==M(t,e)}))).length)return p=Math.max(e-1,n),1},g=n;g1}))&&m.push(e)},y=l;y<=p;y+=1)v(y);return m.map((function(e){var t=C[e],n=c(t.record,e),a=r(n);return i.createElement(et,{key:e,data:t,rowKey:n,index:e,style:{top:-o+a.top},extra:!0,getHeight:function(t){var i=e+t-1,o=c(C[i].record,i),a=r(n,o);return a.bottom-a.top}})}))}},(function(e,t,n){var r=c(e.record,t);return i.createElement(et,{data:e,rowKey:r,index:t,style:n.style})})))}));var nt=b(tt),it=function(e,t){var n=t.ref,r=t.onScroll;return i.createElement(nt,{ref:n,data:e,onScroll:r})};function rt(e,t){var n=e.data,r=e.columns,a=e.scroll,s=e.sticky,l=e.prefixCls,c=void 0===l?ze:l,u=e.className,h=e.listItemHeight,d=e.components,f=e.onScroll,g=a||{},m=g.x,v=g.y;"number"!=typeof m&&(m=1),"number"!=typeof v&&(v=500);var y=(0,I.zX)((function(e,t){return(0,M.Z)(d,e)||t})),b=(0,I.zX)(f),w=i.useMemo((function(){return{sticky:s,scrollY:v,listItemHeight:h,getComponent:y,onScroll:b}}),[s,v,h,y,b]);return i.createElement(qe.Provider,{value:w},i.createElement(Ve,(0,p.Z)({},e,{className:P()(u,"".concat(c,"-virtual")),scroll:(0,k.Z)((0,k.Z)({},a),{},{x:m}),components:(0,k.Z)((0,k.Z)({},d),{},{body:null!=n&&n.length?it:void 0}),columns:r,internalHooks:o,tailor:!0,ref:t})))}var ot=i.forwardRef(rt);function at(e){return y(ot,e)}at();var st=e=>null;var lt=e=>null,ct=n(84105),ut=i.createContext(null),ht=i.createContext({}),dt=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd,a="".concat(t,"-indent-unit"),s=[],l=0;l1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(c,u){for(var h,d=vt(i?i.pos:"0",u),p=yt(c[o],d),f=0;f1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,i=t.processEntity,r=t.onProcessFinished,o=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=o||l,u={},h={},d={posEntities:u,keyEntities:h};return n&&(d=n(d)||d),St(e,(function(e){var t=e.node,n=e.index,r=e.pos,o=e.key,a=e.parentPos,s=e.level,l={node:t,nodes:e.nodes,index:n,key:o,pos:r,level:s},c=yt(o,r);u[r]=l,h[c]=l,l.parent=u[a],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),i&&i(l,d)}),{externalGetKey:c,childrenPropName:a,fieldNames:s}),r&&r(d),d}function _t(e,t){var n=t.expandedKeys,i=t.selectedKeys,r=t.loadedKeys,o=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=ft(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==i.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==o.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==s.indexOf(e),pos:String(u?u.pos:""),dragOver:l===e&&0===c,dragOverGapTop:l===e&&-1===c,dragOverGapBottom:l===e&&1===c}}function Ct(e){var t=e.data,n=e.expanded,i=e.selected,r=e.checked,o=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,h=e.pos,d=e.active,p=e.eventKey,f=(0,k.Z)((0,k.Z)({},t),{},{expanded:n,selected:i,checked:r,loaded:o,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:h,active:d,key:p});return"props"in f||Object.defineProperty(f,"props",{get:function(){return(0,L.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),f}var Pt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Et="open",Mt="close",Lt=function(e){var t,n,r,o=e.eventKey,s=e.className,l=e.style,c=e.dragOver,u=e.dragOverGapTop,h=e.dragOverGapBottom,d=e.isLeaf,f=e.isStart,g=e.isEnd,m=e.expanded,v=e.selected,y=e.checked,b=e.halfChecked,w=e.loading,x=e.domRef,S=e.active,C=e.data,E=e.onMouseMove,M=e.selectable,L=(0,z.Z)(e,Pt),A=i.useContext(ut),T=i.useContext(ht),D=i.useRef(null),N=i.useState(!1),I=(0,a.Z)(N,2),B=I[0],R=I[1],O=!!(A.disabled||e.disabled||null!==(t=T.nodeDisabled)&&void 0!==t&&t.call(T,C)),F=i.useMemo((function(){return!(!A.checkable||!1===e.checkable)&&A.checkable}),[A.checkable,e.checkable]),j=function(t){O||F&&!e.disableCheckbox&&A.onNodeCheck(t,Ct(e),!y)},$=i.useMemo((function(){return"boolean"==typeof M?M:A.selectable}),[M,A.selectable]),H=function(t){A.onNodeClick(t,Ct(e)),$?function(t){O||A.onNodeSelect(t,Ct(e))}(t):j(t)},Z=function(t){A.onNodeDoubleClick(t,Ct(e))},K=function(t){A.onNodeMouseEnter(t,Ct(e))},G=function(t){A.onNodeMouseLeave(t,Ct(e))},U=function(t){A.onNodeContextMenu(t,Ct(e))},V=i.useMemo((function(){return!(!A.draggable||A.draggable.nodeDraggable&&!A.draggable.nodeDraggable(C))}),[A.draggable,C]),W=function(t){w||A.onNodeExpand(t,Ct(e))},q=i.useMemo((function(){var e=(ft(A.keyEntities,o)||{}).children;return Boolean((e||[]).length)}),[A.keyEntities,o]),X=i.useMemo((function(){return!1!==d&&(d||!A.loadData&&!q||A.loadData&&e.loaded&&!q)}),[d,A.loadData,q,e.loaded]);i.useEffect((function(){w||"function"!=typeof A.loadData||!m||X||e.loaded||A.onNodeLoad(Ct(e))}),[w,A.loadData,A.onNodeLoad,m,X,e]);var Q=i.useMemo((function(){var e;return null!==(e=A.draggable)&&void 0!==e&&e.icon?i.createElement("span",{className:"".concat(A.prefixCls,"-draggable-icon")},A.draggable.icon):null}),[A.draggable]),J=function(t){var n=e.switcherIcon||A.switcherIcon;return"function"==typeof n?n((0,k.Z)((0,k.Z)({},e),{},{isLeaf:t})):n},ee=i.useMemo((function(){if(!F)return null;var t="boolean"!=typeof F?F:null;return i.createElement("span",{className:P()("".concat(A.prefixCls,"-checkbox"),(0,_.Z)((0,_.Z)((0,_.Z)({},"".concat(A.prefixCls,"-checkbox-checked"),y),"".concat(A.prefixCls,"-checkbox-indeterminate"),!y&&b),"".concat(A.prefixCls,"-checkbox-disabled"),O||e.disableCheckbox)),onClick:j,role:"checkbox","aria-checked":b?"mixed":y,"aria-disabled":O||e.disableCheckbox,"aria-label":"Select ".concat("string"==typeof e.title?e.title:"tree node")},t)}),[F,y,b,O,e.disableCheckbox,e.title]),te=i.useMemo((function(){return X?null:m?Et:Mt}),[X,m]),ne=i.useMemo((function(){return i.createElement("span",{className:P()("".concat(A.prefixCls,"-iconEle"),"".concat(A.prefixCls,"-icon__").concat(te||"docu"),(0,_.Z)({},"".concat(A.prefixCls,"-icon_loading"),w))})}),[A.prefixCls,te,w]),ie=i.useMemo((function(){var t=Boolean(A.draggable);return!e.disabled&&t&&A.dragOverNodeKey===o?A.dropIndicatorRender({dropPosition:A.dropPosition,dropLevelOffset:A.dropLevelOffset,indent:A.indent,prefixCls:A.prefixCls,direction:A.direction}):null}),[A.dropPosition,A.dropLevelOffset,A.indent,A.prefixCls,A.direction,A.draggable,A.dragOverNodeKey,A.dropIndicatorRender]),re=i.useMemo((function(){var t,n,r=e.title,o=void 0===r?"---":r,a="".concat(A.prefixCls,"-node-content-wrapper");if(A.showIcon){var s=e.icon||A.icon;t=s?i.createElement("span",{className:P()("".concat(A.prefixCls,"-iconEle"),"".concat(A.prefixCls,"-icon__customize"))},"function"==typeof s?s(e):s):ne}else A.loadData&&w&&(t=ne);return n="function"==typeof o?o(C):A.titleRender?A.titleRender(C):o,i.createElement("span",{ref:D,title:"string"==typeof o?o:"",className:P()(a,"".concat(a,"-").concat(te||"normal"),(0,_.Z)({},"".concat(A.prefixCls,"-node-selected"),!O&&(v||B))),onMouseEnter:K,onMouseLeave:G,onContextMenu:U,onClick:H,onDoubleClick:Z},t,i.createElement("span",{className:"".concat(A.prefixCls,"-title")},n),ie)}),[A.prefixCls,A.showIcon,e,A.icon,ne,A.titleRender,C,te,K,G,U,H,Z]),oe=(0,Y.Z)(L,{aria:!0,data:!0}),ae=(ft(A.keyEntities,o)||{}).level,se=g[g.length-1],le=!O&&V,ce=A.draggingNodeKey===o,ue=void 0!==M?{"aria-selected":!!M}:void 0;return i.createElement("div",(0,p.Z)({ref:x,role:"treeitem","aria-expanded":d?void 0:m,className:P()(s,"".concat(A.prefixCls,"-treenode"),(r={},(0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)(r,"".concat(A.prefixCls,"-treenode-disabled"),O),"".concat(A.prefixCls,"-treenode-switcher-").concat(m?"open":"close"),!d),"".concat(A.prefixCls,"-treenode-checkbox-checked"),y),"".concat(A.prefixCls,"-treenode-checkbox-indeterminate"),b),"".concat(A.prefixCls,"-treenode-selected"),v),"".concat(A.prefixCls,"-treenode-loading"),w),"".concat(A.prefixCls,"-treenode-active"),S),"".concat(A.prefixCls,"-treenode-leaf-last"),se),"".concat(A.prefixCls,"-treenode-draggable"),V),"dragging",ce),(0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)(r,"drop-target",A.dropTargetKey===o),"drop-container",A.dropContainerKey===o),"drag-over",!O&&c),"drag-over-gap-top",!O&&u),"drag-over-gap-bottom",!O&&h),"filter-node",null===(n=A.filterTreeNode)||void 0===n?void 0:n.call(A,Ct(e))),"".concat(A.prefixCls,"-treenode-leaf"),X))),style:l,draggable:le,onDragStart:le?function(t){t.stopPropagation(),R(!0),A.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch(e){}}:void 0,onDragEnter:V?function(t){t.preventDefault(),t.stopPropagation(),A.onNodeDragEnter(t,e)}:void 0,onDragOver:V?function(t){t.preventDefault(),t.stopPropagation(),A.onNodeDragOver(t,e)}:void 0,onDragLeave:V?function(t){t.stopPropagation(),A.onNodeDragLeave(t,e)}:void 0,onDrop:V?function(t){t.preventDefault(),t.stopPropagation(),R(!1),A.onNodeDrop(t,e)}:void 0,onDragEnd:V?function(t){t.stopPropagation(),R(!1),A.onNodeDragEnd(t,e)}:void 0,onMouseMove:E},ue,oe),i.createElement(pt,{prefixCls:A.prefixCls,level:ae,isStart:f,isEnd:g}),Q,function(){if(X){var e=J(!0);return!1!==e?i.createElement("span",{className:P()("".concat(A.prefixCls,"-switcher"),"".concat(A.prefixCls,"-switcher-noop"))},e):null}var t=J(!1);return!1!==t?i.createElement("span",{onClick:W,className:P()("".concat(A.prefixCls,"-switcher"),"".concat(A.prefixCls,"-switcher_").concat(m?Et:Mt))},t):null}(),ee,re)};Lt.isTreeNode=1;var At=Lt;function Tt(e,t){if(!e)return[];var n=e.slice(),i=n.indexOf(t);return i>=0&&n.splice(i,1),n}function Dt(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function Nt(e){return e.split("-")}function It(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var i=t.key,r=t.children;n.push(i),e(r)}))}(ft(t,e).children),n}function Bt(e){if(e.parent){var t=Nt(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Rt(e,t,n,i,r,o,a,s,l,c){var u,h=e.clientX,d=e.clientY,p=e.target.getBoundingClientRect(),f=p.top,g=p.height,m=(("rtl"===c?-1:1)*(((null==r?void 0:r.x)||0)-h)-12)/i,v=l.filter((function(e){var t;return null===(t=s[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),y=ft(s,n.eventKey);if(d-1.5?o({dragNode:M,dropNode:L,dropPosition:1})?_=1:A=!1:o({dragNode:M,dropNode:L,dropPosition:0})?_=0:o({dragNode:M,dropNode:L,dropPosition:1})?_=1:A=!1:o({dragNode:M,dropNode:L,dropPosition:1})?_=1:A=!1,{dropPosition:_,dropLevelOffset:C,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:k,dropContainerKey:0===_?null:(null===(u=y.parent)||void 0===u?void 0:u.key)||null,dropAllowed:A}}function Ot(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function Ft(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,S.Z)(e))return(0,L.ZP)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function zt(e,t){var n=new Set;function i(e){if(!n.has(e)){var r=ft(t,e);if(r){n.add(e);var o=r.parent;r.node.disabled||o&&i(o.key)}}}return(e||[]).forEach((function(e){i(e)})),(0,pe.Z)(n)}function jt(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function $t(e){var t=e||{},n=t.disabled,i=t.disableCheckbox,r=t.checkable;return!(!n&&!i)||!1===r}function Ht(e,t,n,i){var r,o=[];r=i||$t;var a,s=new Set(e.filter((function(e){var t=!!ft(n,e);return t||o.push(e),t}))),l=new Map,c=0;return Object.keys(n).forEach((function(e){var t=n[e],i=t.level,r=l.get(i);r||(r=new Set,l.set(i,r)),r.add(t),c=Math.max(c,i)})),(0,L.ZP)(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,i){for(var r=new Set(e),o=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,o=e.children,a=void 0===o?[]:o;r.has(t)&&!i(n)&&a.filter((function(e){return!i(e.node)})).forEach((function(e){r.add(e.key)}))}));for(var s=new Set,l=n;l>=0;l-=1)(t.get(l)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!i(n)&&e.parent&&!s.has(e.parent.key))if(i(e.parent.node))s.add(t.key);else{var a=!0,l=!1;(t.children||[]).filter((function(e){return!i(e.node)})).forEach((function(e){var t=e.key,n=r.has(t);a&&!n&&(a=!1),l||!n&&!o.has(t)||(l=!0)})),a&&r.add(t.key),l&&o.add(t.key),s.add(t.key)}}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(jt(o,r))}}(s,l,c,r):function(e,t,n,i,r){for(var o=new Set(e),a=new Set(t),s=0;s<=i;s+=1)(n.get(s)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,s=void 0===i?[]:i;o.has(t)||a.has(t)||r(n)||s.filter((function(e){return!r(e.node)})).forEach((function(e){o.delete(e.key)}))}));a=new Set;for(var l=new Set,c=i;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var i=!0,s=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);i&&!n&&(i=!1),s||!n&&!a.has(t)||(s=!0)})),i||o.delete(t.key),s&&a.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(jt(a,o))}}(s,t.halfCheckedKeys,l,c,r),a}var Zt=n(18929);var Kt=n(32383),Gt=n(62673),Ut=n(22173),Vt=n(47889);const Wt={},qt="SELECT_ALL",Yt="SELECT_INVERT",Xt="SELECT_NONE",Qt=[],Jt=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,pe.Z)(n),(0,pe.Z)(Jt(e,t[e]))))})),n};var en=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:a,onChange:s,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:h,onSelectMultiple:d,columnWidth:p,type:f,selections:g,fixed:m,renderCell:v,hideSelectAll:y,checkStrictly:b=!0}=t||{},{prefixCls:w,data:x,pageData:S,getRecordByKey:k,getRowKey:_,expandType:C,childrenColumnName:E,locale:M,getPopupContainer:L}=e,A=(0,Kt.ln)("Table"),[T,D]=function(e){const[t,n]=(0,i.useState)(null);return[(0,i.useCallback)(((i,r,o)=>{const a=null!=t?t:i,s=Math.min(a||0,i),l=Math.max(a||0,i),c=r.slice(s,l+1).map((t=>e(t))),u=c.some((e=>!o.has(e))),h=[];return c.forEach((e=>{u?(o.has(e)||h.push(e),o.add(e)):(o.delete(e),h.push(e))})),n(u?l:null),h}),[t]),e=>{n(e)}]}((e=>e)),[N,I]=(0,Zt.Z)(r||o||Qt,{value:r}),B=i.useRef(new Map),R=(0,i.useCallback)((e=>{if(n){const t=new Map;e.forEach((e=>{let n=k(e);!n&&B.current.has(e)&&(n=B.current.get(e)),t.set(e,n)})),B.current=t}}),[k,n]);i.useEffect((()=>{R(N)}),[N]);const O=(0,i.useMemo)((()=>Jt(E,S)),[E,S]),{keyEntities:F}=(0,i.useMemo)((()=>{if(b)return{keyEntities:null};let e=x;if(n){const t=new Set(O.map(((e,t)=>_(e,t)))),n=Array.from(B.current).reduce(((e,n)=>{let[i,r]=n;return t.has(i)?e:e.concat(r)}),[]);e=[].concat((0,pe.Z)(e),(0,pe.Z)(n))}return kt(e,{externalGetKey:_,childrenPropName:E})}),[x,_,b,E,n,O]),z=(0,i.useMemo)((()=>{const e=new Map;return O.forEach(((t,n)=>{const i=_(t,n),r=(a?a(t):null)||{};e.set(i,r)})),e}),[O,_,a]),j=(0,i.useCallback)((e=>{const t=_(e);let n;return n=z.has(t)?z.get(_(e)):a?a(e):void 0,!!(null==n?void 0:n.disabled)}),[z,_]),[$,H]=(0,i.useMemo)((()=>{if(b)return[N||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=Ht(N,!0,F,j);return[e||[],t]}),[N,b,F,j]),Z=(0,i.useMemo)((()=>{const e="radio"===f?$.slice(0,1):$;return new Set(e)}),[$,f]),K=(0,i.useMemo)((()=>"radio"===f?new Set:new Set(H)),[H,f]);i.useEffect((()=>{t||I(Qt)}),[!!t]);const G=(0,i.useCallback)(((e,t)=>{let i,r;R(e),n?(i=e,r=e.map((e=>B.current.get(e)))):(i=[],r=[],e.forEach((e=>{const t=k(e);void 0!==t&&(i.push(e),r.push(t))}))),I(i),null==s||s(i,r,{type:t})}),[I,k,s,n]),U=(0,i.useCallback)(((e,t,n,i)=>{if(l){const r=n.map((e=>k(e)));l(k(e),t,r,i)}G(n,"single")}),[l,k,G]),V=(0,i.useMemo)((()=>{if(!g||y)return null;return(!0===g?[qt,Yt,Xt]:g).map((e=>e===qt?{key:"all",text:M.selectionAll,onSelect(){G(x.map(((e,t)=>_(e,t))).filter((e=>{const t=z.get(e);return!(null==t?void 0:t.disabled)||Z.has(e)})),"all")}}:e===Yt?{key:"invert",text:M.selectInvert,onSelect(){const e=new Set(Z);S.forEach(((t,n)=>{const i=_(t,n),r=z.get(i);(null==r?void 0:r.disabled)||(e.has(i)?e.delete(i):e.add(i))}));const t=Array.from(e);u&&(A.deprecated(!1,"onSelectInvert","onChange"),u(t)),G(t,"invert")}}:e===Xt?{key:"none",text:M.selectNone,onSelect(){null==h||h(),G(Array.from(Z).filter((e=>{const t=z.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,i=arguments.length,r=new Array(i),o=0;o{var n;if(!t)return e.filter((e=>e!==Wt));let r=(0,pe.Z)(e);const o=new Set(Z),a=O.map(_).filter((e=>!z.get(e).disabled)),s=a.every((e=>o.has(e))),l=a.some((e=>o.has(e))),u=()=>{const e=[];s?a.forEach((t=>{o.delete(t),e.push(t)})):a.forEach((t=>{o.has(t)||(o.add(t),e.push(t))}));const t=Array.from(o);null==c||c(!s,t.map((e=>k(e))),e.map((e=>k(e)))),G(t,"all"),D(null)};let h,x,S;if("radio"!==f){let e;if(V){const t={getPopupContainer:L,items:V.map(((e,t)=>{const{key:n,text:i,onSelect:r}=e;return{key:null!=n?n:t,onClick:()=>{null==r||r(a)},label:i}}))};e=i.createElement("div",{className:`${w}-selection-extra`},i.createElement(Ut.Z,{menu:t,getPopupContainer:L},i.createElement("span",null,i.createElement(ct.Z,null))))}const t=O.map(((e,t)=>{const n=_(e,t),i=z.get(n)||{};return Object.assign({checked:o.has(n)},i)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===O.length,r=n&&t.every((e=>{let{checked:t}=e;return t})),c=n&&t.some((e=>{let{checked:t}=e;return t}));x=i.createElement(Gt.Z,{checked:n?r:!!O.length&&s,indeterminate:n?!r&&c:!s&&l,onChange:u,disabled:0===O.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),h=!y&&i.createElement("div",{className:`${w}-selection`},x,e)}S="radio"===f?(e,t,n)=>{const r=_(t,n),a=o.has(r),s=z.get(r);return{node:i.createElement(Vt.ZP,Object.assign({},s,{checked:a,onClick:e=>{var t;e.stopPropagation(),null===(t=null==s?void 0:s.onClick)||void 0===t||t.call(s,e)},onChange:e=>{var t;o.has(r)||U(r,!0,[r],e.nativeEvent),null===(t=null==s?void 0:s.onChange)||void 0===t||t.call(s,e)}})),checked:a}}:(e,t,n)=>{var r;const s=_(t,n),l=o.has(s),c=K.has(s),u=z.get(s);let h;return h="nest"===C?c:null!==(r=null==u?void 0:u.indeterminate)&&void 0!==r?r:c,{node:i.createElement(Gt.Z,Object.assign({},u,{indeterminate:h,checked:l,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),null===(t=null==u?void 0:u.onClick)||void 0===t||t.call(u,e)},onChange:e=>{var t;const{nativeEvent:n}=e,{shiftKey:i}=n,r=a.findIndex((e=>e===s)),c=$.some((e=>a.includes(e)));if(i&&b&&c){const e=T(r,a,o),t=Array.from(o);null==d||d(!l,t.map((e=>k(e))),e.map((e=>k(e)))),G(t,"multiple")}else{const e=$;if(b){const t=l?Tt(e,s):Dt(e,s);U(s,!l,t,n)}else{const t=Ht([].concat((0,pe.Z)(e),[s]),!0,F,j),{checkedKeys:i,halfCheckedKeys:r}=t;let o=i;if(l){const e=new Set(i);e.delete(s),o=Ht(Array.from(e),{checked:!1,halfCheckedKeys:r},F,j).checkedKeys}U(s,!l,o,n)}}D(l?null:r),null===(t=null==u?void 0:u.onChange)||void 0===t||t.call(u,e)}})),checked:l}};if(!r.includes(Wt))if(0===r.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[ue])||void 0===t?void 0:t.columnType)}))){const[e,...t]=r;r=[e,Wt].concat((0,pe.Z)(t))}else r=[Wt].concat((0,pe.Z)(r));const E=r.indexOf(Wt);r=r.filter(((e,t)=>e!==Wt||t===E));const M=r[E-1],A=r[E+1];let N=m;void 0===N&&(void 0!==(null==A?void 0:A.fixed)?N=A.fixed:void 0!==(null==M?void 0:M.fixed)&&(N=M.fixed)),N&&M&&"EXPAND_COLUMN"===(null===(n=M[ue])||void 0===n?void 0:n.columnType)&&void 0===M.fixed&&(M.fixed=N);const I=P()(`${w}-selection-col`,{[`${w}-selection-col-with-dropdown`]:g&&"checkbox"===f}),B={fixed:N,width:p,className:`${w}-selection-column`,title:(null==t?void 0:t.columnTitle)?"function"==typeof t.columnTitle?t.columnTitle(x):t.columnTitle:h,render:(e,t,n)=>{const{node:i,checked:r}=S(e,t,n);return v?v(r,t,n,i):i},onCell:t.onCell,[ue]:{className:I}};return r.map((e=>e===Wt?B:e))}),[_,O,t,$,Z,K,p,V,C,z,d,U,j]);return[W,Z]};function tn(e,t){return(0,i.useImperativeHandle)(e,(()=>{const e=t(),{nativeElement:n}=e;return"undefined"!=typeof Proxy?new Proxy(n,{get(t,n){return e[n]?e[n]:Reflect.get(t,n)}}):(r=e,(i=n)._antProxy=i._antProxy||{},Object.keys(r).forEach((e=>{if(!(e in i._antProxy)){const t=i[e];i._antProxy[e]=t,i[e]=r[e]}})),i);var i,r}))}function nn(e,t,n,i){const r=n-t;return(e/=i/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}function rn(e){return null!=e&&e===e.window}var on=e=>{var t,n;if("undefined"==typeof window)return 0;let i=0;return rn(e)?i=e.pageYOffset:e instanceof Document?i=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(i=e.scrollTop),e&&!rn(e)&&"number"!=typeof i&&(i=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),i};function an(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:i,duration:r=450}=t,o=n(),a=on(o),s=Date.now(),l=()=>{const t=Date.now()-s,n=nn(t>r?r:t,a,e,r);rn(o)?o.scrollTo(window.pageXOffset,n):o instanceof Document||"HTMLDocument"===o.constructor.name?o.documentElement.scrollTop=n:o.scrollTop=n,t{const{prefixCls:n,onExpand:r,record:o,expanded:a,expandable:s}=t,l=`${n}-row-expand-icon`;return i.createElement("button",{type:"button",onClick:e=>{r(o,e),e.stopPropagation()},className:P()(l,{[`${l}-spaced`]:!s,[`${l}-expanded`]:s&&a,[`${l}-collapsed`]:s&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}};const vn=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function yn(e,t){return t?`${t}-${e}`:`${e}`}const bn=(e,t)=>"function"==typeof e?e(t):e;var wn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},xn=n(7657),Sn=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:wn}))};var kn=i.forwardRef(Sn);var _n=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const i=n[t];void 0!==i&&(e[t]=i)}))}return e},Cn=n(40192);var Pn=n(20743),En=n(584),Mn=n(93041),Ln=n(78857),An=n(99153),Tn=n(84851),Dn=n(13028),Nn=n(19257),In=n(93046),Bn=n(10228);var Rn=function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r}return i.createElement("div",{style:o})};function On(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var Fn=n(77900);var zn=function(e,t){var n=i.useState(!1),r=(0,a.Z)(n,2),o=r[0],s=r[1];(0,l.Z)((function(){if(o)return e(),function(){t()}}),[o]),(0,l.Z)((function(){return s(!0),function(){s(!1)}}),[])},jn=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],$n=i.forwardRef((function(e,t){var n=e.className,r=e.style,o=e.motion,s=e.motionNodes,c=e.motionType,u=e.onMotionStart,h=e.onMotionEnd,d=e.active,f=e.treeNodeRequiredProps,g=(0,z.Z)(e,jn),m=i.useState(!0),v=(0,a.Z)(m,2),y=v[0],b=v[1],w=i.useContext(ut).prefixCls,x=s&&"hide"!==c;(0,l.Z)((function(){s&&x!==y&&b(x)}),[s]);var S=i.useRef(!1),k=function(){s&&!S.current&&(S.current=!0,h())};zn((function(){s&&u()}),k);return s?i.createElement(Fn.ZP,(0,p.Z)({ref:t,visible:y},o,{motionAppear:"show"===c,onVisibleChanged:function(e){x===e&&k()}}),(function(e,t){var n=e.className,r=e.style;return i.createElement("div",{ref:t,className:P()("".concat(w,"-treenode-motion"),n),style:r},s.map((function(e){var t=Object.assign({},(On(e.data),e.data)),n=e.title,r=e.key,o=e.isStart,a=e.isEnd;delete t.children;var s=_t(r,f);return i.createElement(At,(0,p.Z)({},t,s,{title:n,active:d,data:e.data,key:r,isStart:o,isEnd:a}))})))})):i.createElement(At,(0,p.Z)({domRef:t,className:n,style:r},g,{active:d}))}));var Hn=$n;function Zn(e,t,n){var i=e.findIndex((function(e){return e.key===n})),r=e[i+1],o=t.findIndex((function(e){return e.key===n}));if(r){var a=t.findIndex((function(e){return e.key===r.key}));return t.slice(o+1,a)}return t.slice(o+1)}var Kn=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Gn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Un=function(){},Vn="RC_TREE_MOTION_".concat(Math.random()),Wn={key:Vn},qn={key:Vn,level:0,index:0,pos:"0",node:Wn,nodes:[Wn]},Yn={parent:null,children:[],pos:qn.pos,data:Wn,title:null,key:Vn,isStart:[],isEnd:[]};function Xn(e,t,n,i){return!1!==t&&n?e.slice(0,Math.ceil(n/i)+1):e}function Qn(e){return yt(e.key,e.pos)}var Jn=i.forwardRef((function(e,t){var n=e.prefixCls,r=e.data,o=(e.selectable,e.checkable,e.expandedKeys),s=e.selectedKeys,c=e.checkedKeys,u=e.loadedKeys,h=e.loadingKeys,d=e.halfCheckedKeys,f=e.keyEntities,g=e.disabled,m=e.dragging,v=e.dragOverNodeKey,y=e.dropPosition,b=e.motion,w=e.height,x=e.itemHeight,S=e.virtual,k=e.scrollWidth,_=e.focusable,C=e.activeItem,P=e.focused,E=e.tabIndex,M=e.onKeyDown,L=e.onFocus,A=e.onBlur,T=e.onActiveChange,D=e.onListChangeStart,N=e.onListChangeEnd,I=(0,z.Z)(e,Kn),B=i.useRef(null),R=i.useRef(null);i.useImperativeHandle(t,(function(){return{scrollTo:function(e){B.current.scrollTo(e)},getIndentWidth:function(){return R.current.offsetWidth}}}));var O=i.useState(o),F=(0,a.Z)(O,2),j=F[0],$=F[1],H=i.useState(r),Z=(0,a.Z)(H,2),K=Z[0],G=Z[1],U=i.useState(r),V=(0,a.Z)(U,2),W=V[0],q=V[1],Y=i.useState([]),X=(0,a.Z)(Y,2),Q=X[0],J=X[1],ee=i.useState(null),te=(0,a.Z)(ee,2),ne=te[0],ie=te[1],re=i.useRef(r);function oe(){var e=re.current;G(e),q(e),J([]),ie(null),N()}re.current=r,(0,l.Z)((function(){$(o);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,i=t.length;if(1!==Math.abs(n-i))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var i=t.filter((function(e){return!n.has(e)}));return 1===i.length?i[0]:null}return n ").concat(t);return t}(C)),i.createElement("div",null,i.createElement("input",{style:Gn,disabled:!1===_||g,tabIndex:!1!==_?E:null,onKeyDown:M,onFocus:L,onBlur:A,value:"",onChange:Un,"aria-label":"for screen reader"})),i.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},i.createElement("div",{className:"".concat(n,"-indent")},i.createElement("div",{ref:R,className:"".concat(n,"-indent-unit")}))),i.createElement(We.Z,(0,p.Z)({},I,{data:ae,itemKey:Qn,height:w,fullHeight:!1,virtual:S,itemHeight:x,scrollWidth:k,prefixCls:"".concat(n,"-list"),ref:B,role:"tree",onVisibleChange:function(e){e.every((function(e){return Qn(e)!==Vn}))&&oe()}}),(function(e){var t=e.pos,n=Object.assign({},(On(e.data),e.data)),r=e.title,o=e.key,a=e.isStart,s=e.isEnd,l=yt(o,t);delete n.key,delete n.children;var c=_t(l,se);return i.createElement(Hn,(0,p.Z)({},n,c,{title:r,active:!!C&&o===C.key,pos:t,data:e.data,isStart:a,isEnd:s,motion:b,motionNodes:o===Vn?Q:null,motionType:ne,onMotionStart:D,onMotionEnd:oe,treeNodeRequiredProps:se,onMouseMove:function(){T(null)}}))})))}));var ei=Jn,ti=function(e){(0,Nn.Z)(n,e);var t=(0,In.Z)(n);function n(){var e;(0,An.Z)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2],o=e.state,a=o.dragChildrenKeys,s=o.dropPosition,l=o.dropTargetKey,c=o.dropTargetPos,u=o.dropAllowed;if(u){var h=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==l){var d=(0,k.Z)((0,k.Z)({},_t(l,e.getTreeNodeRequiredProps())),{},{active:(null===(i=e.getActiveItem())||void 0===i?void 0:i.key)===l,data:ft(e.state.keyEntities,l).node}),p=a.includes(l);(0,L.ZP)(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var f=Nt(c),g={event:t,node:Ct(d),dragNode:e.dragNodeProps?Ct(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(a),dropToGap:0!==s,dropPosition:s+Number(f[f.length-1])};r||null==h||h(g),e.dragNodeProps=null}}})),(0,_.Z)((0,Dn.Z)(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),(0,_.Z)((0,Dn.Z)(e),"triggerExpandActionExpand",(function(t,n){var i=e.state,r=i.expandedKeys,o=i.flattenNodes,a=n.expanded,s=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var l=o.filter((function(e){return e.key===s}))[0],c=Ct((0,k.Z)((0,k.Z)({},_t(s,e.getTreeNodeRequiredProps())),{},{data:l.data}));e.setExpandedKeys(a?Tt(r,s):Dt(r,s)),e.onNodeExpand(t,c)}})),(0,_.Z)((0,Dn.Z)(e),"onNodeClick",(function(t,n){var i=e.props,r=i.onClick;"click"===i.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)})),(0,_.Z)((0,Dn.Z)(e),"onNodeDoubleClick",(function(t,n){var i=e.props,r=i.onDoubleClick;"doubleClick"===i.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)})),(0,_.Z)((0,Dn.Z)(e),"onNodeSelect",(function(t,n){var i=e.state.selectedKeys,r=e.state,o=r.keyEntities,a=r.fieldNames,s=e.props,l=s.onSelect,c=s.multiple,u=n.selected,h=n[a.key],d=!u,p=(i=d?c?Dt(i,h):[h]:Tt(i,h)).map((function(e){var t=ft(o,e);return t?t.node:null})).filter(Boolean);e.setUncontrolledState({selectedKeys:i}),null==l||l(i,{event:"select",selected:d,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})})),(0,_.Z)((0,Dn.Z)(e),"onNodeCheck",(function(t,n,i){var r,o=e.state,a=o.keyEntities,s=o.checkedKeys,l=o.halfCheckedKeys,c=e.props,u=c.checkStrictly,h=c.onCheck,d=n.key,p={event:"check",node:n,checked:i,nativeEvent:t.nativeEvent};if(u){var f=i?Dt(s,d):Tt(s,d);r={checked:f,halfChecked:Tt(l,d)},p.checkedNodes=f.map((function(e){return ft(a,e)})).filter(Boolean).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:f})}else{var g=Ht([].concat((0,pe.Z)(s),[d]),!0,a),m=g.checkedKeys,v=g.halfCheckedKeys;if(!i){var y=new Set(m);y.delete(d);var b=Ht(Array.from(y),{checked:!1,halfCheckedKeys:v},a);m=b.checkedKeys,v=b.halfCheckedKeys}r=m,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,m.forEach((function(e){var t=ft(a,e);if(t){var n=t.node,i=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:i})}})),e.setUncontrolledState({checkedKeys:m},!1,{halfCheckedKeys:v})}null==h||h(r,p)})),(0,_.Z)((0,Dn.Z)(e),"onNodeLoad",(function(t){var n,i=t.key,r=ft(e.state.keyEntities,i);if(null==r||null===(n=r.children)||void 0===n||!n.length){var o=new Promise((function(n,r){e.setState((function(o){var a=o.loadedKeys,s=void 0===a?[]:a,l=o.loadingKeys,c=void 0===l?[]:l,u=e.props,h=u.loadData,d=u.onLoad;return!h||s.includes(i)||c.includes(i)?null:(h(t).then((function(){var r=Dt(e.state.loadedKeys,i);null==d||d(r,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:r}),e.setState((function(e){return{loadingKeys:Tt(e.loadingKeys,i)}})),n()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:Tt(e.loadingKeys,i)}})),e.loadingRetryTimes[i]=(e.loadingRetryTimes[i]||0)+1,e.loadingRetryTimes[i]>=10){var o=e.state.loadedKeys;(0,L.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:Dt(o,i)}),n()}r(t)})),{loadingKeys:Dt(c,i)})}))}));return o.catch((function(){})),o}})),(0,_.Z)((0,Dn.Z)(e),"onNodeMouseEnter",(function(t,n){var i=e.props.onMouseEnter;null==i||i({event:t,node:n})})),(0,_.Z)((0,Dn.Z)(e),"onNodeMouseLeave",(function(t,n){var i=e.props.onMouseLeave;null==i||i({event:t,node:n})})),(0,_.Z)((0,Dn.Z)(e),"onNodeContextMenu",(function(t,n){var i=e.props.onRightClick;i&&(t.preventDefault(),i({event:t,node:n}))})),(0,_.Z)((0,Dn.Z)(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,i=new Array(n),r=0;r1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,o=!0,a={};Object.keys(t).forEach((function(n){e.props.hasOwnProperty(n)?o=!1:(r=!0,a[n]=t[n])})),!r||n&&!o||e.setState((0,k.Z)((0,k.Z)({},a),i))}})),(0,_.Z)((0,Dn.Z)(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return(0,Tn.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,i=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:i}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,r=t.flattenNodes,o=t.keyEntities,a=t.draggingNodeKey,s=t.activeKey,l=t.dropLevelOffset,c=t.dropContainerKey,u=t.dropTargetKey,h=t.dropPosition,d=t.dragOverNodeKey,f=t.indent,g=this.props,m=g.prefixCls,v=g.className,y=g.style,b=g.showLine,w=g.focusable,x=g.tabIndex,k=void 0===x?0:x,C=g.selectable,E=g.showIcon,M=g.icon,L=g.switcherIcon,A=g.draggable,T=g.checkable,D=g.checkStrictly,N=g.disabled,I=g.motion,B=g.loadData,R=g.filterTreeNode,O=g.height,F=g.itemHeight,z=g.scrollWidth,j=g.virtual,$=g.titleRender,H=g.dropIndicatorRender,Z=g.onContextMenu,K=g.onScroll,G=g.direction,U=g.rootClassName,V=g.rootStyle,W=(0,Y.Z)(this.props,{aria:!0,data:!0});A&&(e="object"===(0,S.Z)(A)?A:"function"==typeof A?{nodeDraggable:A}:{});var q={prefixCls:m,selectable:C,showIcon:E,icon:M,switcherIcon:L,draggable:e,draggingNodeKey:a,checkable:T,checkStrictly:D,disabled:N,keyEntities:o,dropLevelOffset:l,dropContainerKey:c,dropTargetKey:u,dropPosition:h,dragOverNodeKey:d,indent:f,direction:G,dropIndicatorRender:H,loadData:B,filterTreeNode:R,titleRender:$,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return i.createElement(ut.Provider,{value:q},i.createElement("div",{className:P()(m,v,U,(0,_.Z)((0,_.Z)((0,_.Z)({},"".concat(m,"-show-line"),b),"".concat(m,"-focused"),n),"".concat(m,"-active-focused"),null!==s)),style:V},i.createElement(ei,(0,p.Z)({ref:this.listRef,prefixCls:m,style:y,data:r,disabled:N,selectable:C,checkable:!!T,motion:I,dragging:null!==a,height:O,itemHeight:F,virtual:j,focusable:w,focused:n,tabIndex:k,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Z,onScroll:K,scrollWidth:z},this.getTreeNodeRequiredProps(),W))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,i=t.prevProps,r={prevProps:e};function o(t){return!i&&e.hasOwnProperty(t)||i&&i[t]!==e[t]}var a=t.fieldNames;if(o("fieldNames")&&(a=bt(e.fieldNames),r.fieldNames=a),o("treeData")?n=e.treeData:o("children")&&((0,L.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=wt(e.children)),n){r.treeData=n;var s=kt(n,{fieldNames:a});r.keyEntities=(0,k.Z)((0,_.Z)({},Vn,qn),s.keyEntities)}var l,c=r.keyEntities||t.keyEntities;if(o("expandedKeys")||i&&o("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!i&&e.defaultExpandParent?zt(e.expandedKeys,c):e.expandedKeys;else if(!i&&e.defaultExpandAll){var u=(0,k.Z)({},c);delete u[Vn];var h=[];Object.keys(u).forEach((function(e){var t=u[e];t.children&&t.children.length&&h.push(t.key)})),r.expandedKeys=h}else!i&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?zt(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,n||r.expandedKeys){var d=xt(n||t.treeData,r.expandedKeys||t.expandedKeys,a);r.flattenNodes=d}if((e.selectable&&(o("selectedKeys")?r.selectedKeys=Ot(e.selectedKeys,e):!i&&e.defaultSelectedKeys&&(r.selectedKeys=Ot(e.defaultSelectedKeys,e))),e.checkable)&&(o("checkedKeys")?l=Ft(e.checkedKeys)||{}:!i&&e.defaultCheckedKeys?l=Ft(e.defaultCheckedKeys)||{}:n&&(l=Ft(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),l)){var p=l,f=p.checkedKeys,g=void 0===f?[]:f,m=p.halfCheckedKeys,v=void 0===m?[]:m;if(!e.checkStrictly){var y=Ht(g,!0,c);g=y.checkedKeys,v=y.halfCheckedKeys}r.checkedKeys=g,r.halfCheckedKeys=v}return o("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}]),n}(i.Component);(0,_.Z)(ti,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Rn,allowDrop:function(){return!0},expandAction:!1}),(0,_.Z)(ti,"TreeNode",At);var ni=ti,ii={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},ri=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:ii}))};var oi=i.forwardRef(ri),ai={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},si=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:ai}))};var li=i.forwardRef(si),ci={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},ui=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:ci}))};var hi=i.forwardRef(ui),di={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},pi=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:di}))};var fi=i.forwardRef(pi),gi=n(86641),mi=n(66604),vi=n(36170),yi=n(63356),bi=n(34961),wi=n(51636),xi=n(16931);const Si=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:i,directoryNodeSelectedColor:r,motionDurationMid:o,borderRadius:a,controlItemBgHover:s}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:a},"&:hover:before":{background:s}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:r},[`${t}-node-content-wrapper`]:{color:r,background:"transparent","&:before, &:hover:before":{background:i}}}}}},ki=new mi.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),_i=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Ci=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,mi.bf)(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Pi=(e,t)=>{const{treeCls:n,treeNodeCls:i,treeNodePadding:r,titleHeight:o,indentSize:a,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},(0,yi.Wf)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},(0,yi.oN)(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${i}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:ki,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[i]:{display:"flex",alignItems:"flex-start",marginBottom:r,lineHeight:(0,mi.bf)(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:r},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${i}-disabled${i}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${i}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${i}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,textAlign:"center",visibility:"visible",color:c},[`&${i}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},_i(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:o,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},Ci(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${i}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${i}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,mi.bf)(t.calc(o).div(2).equal())} !important`}})}},Ei=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=`.${e}`,r=`${i}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),a=(0,wi.IX)(t,{treeCls:i,treeNodeCls:r,treeNodePadding:o});return[Pi(e,a),n&&Si(a)].filter(Boolean)};var Mi=(0,xi.I$)("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:(0,vi.C2)(`${n}-checkbox`,e)},Ei(n,e),(0,bi.Z)(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:i}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:i,nodeSelectedColor:e.colorText}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));var Li=function(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:a="ltr"}=e,s="ltr"===a?"left":"right",l={[s]:-n*o+4,["ltr"===a?"right":"left"]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[s]=o+4}return i.createElement("div",{style:l,className:`${r}-drop-indicator`})},Ai={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Ti=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:Ai}))};var Di=i.forwardRef(Ti),Ni=n(58617),Ii={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Bi=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:Ii}))};var Ri=i.forwardRef(Bi),Oi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Fi=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:Oi}))};var zi=i.forwardRef(Fi),ji=n(22703);var $i=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o,switcherLoadingIcon:a}=e,{isLeaf:s,expanded:l,loading:c}=r;if(c)return i.isValidElement(a)?a:i.createElement(Ni.Z,{className:`${t}-switcher-loading-icon`});let u;if(o&&"object"==typeof o&&(u=o.showLeafIcon),s){if(!o)return null;if("boolean"!=typeof u&&u){const e="function"==typeof u?u(r):u,n=`${t}-switcher-line-custom-icon`;return i.isValidElement(e)?(0,ji.Tm)(e,{className:P()(e.props.className||"",n)}):e}return u?i.createElement(oi,{className:`${t}-switcher-line-icon`}):i.createElement("span",{className:`${t}-switcher-leaf-line`})}const h=`${t}-switcher-icon`,d="function"==typeof n?n(r):n;return i.isValidElement(d)?(0,ji.Tm)(d,{className:P()(d.props.className||"",h)}):void 0!==d?d:o?l?i.createElement(Ri,{className:`${t}-switcher-line-icon`}):i.createElement(zi,{className:`${t}-switcher-line-icon`}):i.createElement(Di,{className:h})};const Hi=i.forwardRef(((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:a,tree:s}=i.useContext(sn.E_),{prefixCls:l,className:c,showIcon:u=!1,showLine:h,switcherIcon:d,switcherLoadingIcon:p,blockNode:f=!1,children:g,checkable:m=!1,selectable:v=!0,draggable:y,motion:b,style:w}=e,x=r("tree",l),S=r(),k=null!=b?b:Object.assign(Object.assign({},(0,gi.Z)(S)),{motionAppear:!1}),_=Object.assign(Object.assign({},e),{checkable:m,selectable:v,showIcon:u,motion:k,blockNode:f,showLine:Boolean(h),dropIndicatorRender:Li}),[C,E,M]=Mi(x),[,L]=(0,gn.ZP)(),A=L.paddingXS/2+((null===(n=L.Tree)||void 0===n?void 0:n.titleHeight)||L.controlHeightSM),T=i.useMemo((()=>{if(!y)return!1;let e={};switch(typeof y){case"function":e.nodeDraggable=y;break;case"object":e=Object.assign({},y)}return!1!==e.icon&&(e.icon=e.icon||i.createElement(fi,null)),e}),[y]);return C(i.createElement(ni,Object.assign({itemHeight:A,ref:t,virtual:a},_,{style:Object.assign(Object.assign({},null==s?void 0:s.style),w),prefixCls:x,className:P()({[`${x}-icon-hide`]:!u,[`${x}-block-node`]:f,[`${x}-unselectable`]:!v,[`${x}-rtl`]:"rtl"===o},null==s?void 0:s.className,c,E,M),direction:o,checkable:m?i.createElement("span",{className:`${x}-checkbox-inner`}):m,selectable:v,switcherIcon:e=>i.createElement($i,{prefixCls:x,switcherIcon:d,switcherLoadingIcon:p,treeNodeProps:e,showLine:h}),draggable:T}),g))}));var Zi=Hi;function Ki(e,t,n){const{key:i,children:r}=n;e.forEach((function(e){const o=e[i],a=e[r];!1!==t(o,e)&&Ki(a||[],t,n)}))}function Gi(e){let{treeData:t,expandedKeys:n,startKey:i,endKey:r,fieldNames:o}=e;const a=[];let s=0;if(i&&i===r)return[i];if(!i||!r)return[];return Ki(t,(e=>{if(2===s)return!1;if(function(e){return e===i||e===r}(e)){if(a.push(e),0===s)s=1;else if(1===s)return s=2,!1}else 1===s&&a.push(e);return n.includes(e)}),bt(o)),a}function Ui(e,t,n){const i=(0,pe.Z)(t),r=[];return Ki(e,((e,t)=>{const n=i.indexOf(e);return-1!==n&&(r.push(t),i.splice(n,1)),!!i.length}),bt(n)),r}var Vi=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,a=Vi(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const s=i.useRef(null),l=i.useRef(null),[c,u]=i.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[h,d]=i.useState((()=>(()=>{const{keyEntities:e}=kt(qi(a));let t;return t=n?Object.keys(e):r?zt(a.expandedKeys||o||[],e):a.expandedKeys||o||[],t})()));i.useEffect((()=>{"selectedKeys"in a&&u(a.selectedKeys)}),[a.selectedKeys]),i.useEffect((()=>{"expandedKeys"in a&&d(a.expandedKeys)}),[a.expandedKeys]);const{getPrefixCls:p,direction:f}=i.useContext(sn.E_),{prefixCls:g,className:m,showIcon:v=!0,expandAction:y="click"}=a,b=Vi(a,["prefixCls","className","showIcon","expandAction"]),w=p("tree",g),x=P()(`${w}-directory`,{[`${w}-directory-rtl`]:"rtl"===f},m);return i.createElement(Zi,Object.assign({icon:Wi,ref:t,blockNode:!0},b,{showIcon:v,expandAction:y,prefixCls:w,className:x,expandedKeys:h,selectedKeys:c,onSelect:(e,t)=>{var n;const{multiple:i,fieldNames:r}=a,{node:o,nativeEvent:c}=t,{key:d=""}=o,p=qi(a),f=Object.assign(Object.assign({},t),{selected:!0}),g=(null==c?void 0:c.ctrlKey)||(null==c?void 0:c.metaKey),m=null==c?void 0:c.shiftKey;let v;i&&g?(v=e,s.current=d,l.current=v,f.selectedNodes=Ui(p,v,r)):i&&m?(v=Array.from(new Set([].concat((0,pe.Z)(l.current||[]),(0,pe.Z)(Gi({treeData:p,expandedKeys:h,startKey:d,endKey:s.current,fieldNames:r}))))),f.selectedNodes=Ui(p,v,r)):(v=[d],s.current=d,l.current=v,f.selectedNodes=Ui(p,v,r)),null===(n=a.onSelect)||void 0===n||n.call(a,v,f),"selectedKeys"in a||u(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in a||d(e),null===(n=a.onExpand)||void 0===n?void 0:n.call(a,e,t)}}))};var Xi=i.forwardRef(Yi);const Qi=Zi;Qi.DirectoryTree=Xi,Qi.TreeNode=At;var Ji=Qi,er=n(47472),tr=n(49397);var nr=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:a}=e;return n?i.createElement("div",{className:`${r}-filter-dropdown-search`},i.createElement(tr.Z,{prefix:i.createElement(er.Z,null),placeholder:o.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null};const ir=e=>{const{keyCode:t}=e;t===Bn.Z.ENTER&&e.stopPropagation()};var rr=i.forwardRef(((e,t)=>i.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:ir,ref:t},e.children)));function or(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:i}=e;t.push(n),i&&(t=[].concat((0,pe.Z)(t),(0,pe.Z)(or(i))))})),t}function ar(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function sr(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:a,filterSearch:s}=e;return t.map(((e,t)=>{const l=String(e.value);if(e.children)return{key:l||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:sr({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:a,filterSearch:s})};const c=o?Gt.Z:Vt.ZP,u={key:void 0!==e.value?l:t,label:i.createElement(i.Fragment,null,i.createElement(c,{checked:r.includes(l)}),i.createElement("span",null,e.text))};return a.trim()?"function"==typeof s?s(a,e)?u:null:ar(a,e.text)?u:null:u}))}function lr(e){return e||[]}var cr=e=>{var t,n,r,o;const{tablePrefixCls:a,prefixCls:s,column:l,dropdownPrefixCls:u,columnKey:h,filterOnClose:d,filterMultiple:p,filterMode:f="menu",filterSearch:g=!1,filterState:m,triggerFilter:v,locale:y,children:b,getPopupContainer:w,rootClassName:x}=e,{filterResetToDefaultFilteredValue:S,defaultFilteredValue:k,filterDropdownProps:_={},filterDropdownOpen:C,filterDropdownVisible:E,onFilterDropdownVisibleChange:M,onFilterDropdownOpenChange:L}=l,[A,T]=i.useState(!1),D=!(!m||!(null===(t=m.filteredKeys)||void 0===t?void 0:t.length)&&!m.forceFiltered),N=e=>{var t;T(e),null===(t=_.onOpenChange)||void 0===t||t.call(_,e),null==L||L(e),null==M||M(e)};const I=null!==(o=null!==(r=null!==(n=_.open)&&void 0!==n?n:C)&&void 0!==r?r:E)&&void 0!==o?o:A,B=null==m?void 0:m.filteredKeys,[R,O]=function(e){const t=i.useRef(e),n=(0,Cn.Z)();return[()=>t.current,e=>{t.current=e,n()}]}(lr(B)),F=e=>{let{selectedKeys:t}=e;O(t)},z=(e,t)=>{let{node:n,checked:i}=t;F(p?{selectedKeys:e}:{selectedKeys:i&&n.key?[n.key]:[]})};i.useEffect((()=>{A&&F({selectedKeys:lr(B)})}),[B]);const[j,$]=i.useState([]),H=e=>{$(e)},[Z,K]=i.useState(""),G=e=>{const{value:t}=e.target;K(t)};i.useEffect((()=>{A||K("")}),[A]);const U=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||m&&m.filteredKeys?(0,c.Z)(t,null==m?void 0:m.filteredKeys,!0)?null:void v({column:l,key:h,filteredKeys:t}):null},V=()=>{N(!1),U(R())},W=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&U([]),t&&N(!1),K(""),O(S?(k||[]).map((e=>String(e))):[])},q=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&N(!1),U(R())},Y=P()({[`${u}-menu-without-submenu`]:(X=l.filters||[],!X.some((e=>{let{children:t}=e;return t})))});var X;const Q=e=>{if(e.target.checked){const e=or(null==l?void 0:l.filters).map((e=>String(e)));O(e)}else O([])},J=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),i={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(i.children=J({filters:e.children})),i}))},ee=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>ee(e))))||[]})};let te;const{direction:ne,renderEmpty:ie}=i.useContext(sn.E_);if("function"==typeof l.filterDropdown)te=l.filterDropdown({prefixCls:`${u}-custom`,setSelectedKeys:e=>F({selectedKeys:e}),selectedKeys:R(),confirm:q,clearFilters:W,filters:l.filters,visible:I,close:()=>{N(!1)}});else if(l.filterDropdown)te=l.filterDropdown;else{const e=R()||[],t=()=>{var t,n;const r=null!==(t=null==ie?void 0:ie("Table.filter"))&&void 0!==t?t:i.createElement(En.Z,{image:En.Z.PRESENTED_IMAGE_SIMPLE,description:y.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(l.filters||[]).length)return r;if("tree"===f)return i.createElement(i.Fragment,null,i.createElement(nr,{filterSearch:g,value:Z,onChange:G,tablePrefixCls:a,locale:y}),i.createElement("div",{className:`${a}-filter-dropdown-tree`},p?i.createElement(Gt.Z,{checked:e.length===or(l.filters).length,indeterminate:e.length>0&&e.length"function"==typeof g?g(Z,ee(e)):ar(Z,e.title):void 0})));const o=sr({filters:l.filters||[],filterSearch:g,prefixCls:s,filteredKeys:R(),filterMultiple:p,searchValue:Z}),c=o.every((e=>null===e));return i.createElement(i.Fragment,null,i.createElement(nr,{filterSearch:g,value:Z,onChange:G,tablePrefixCls:a,locale:y}),c?r:i.createElement(Mn.Z,{selectable:!0,multiple:p,prefixCls:`${u}-menu`,className:Y,onSelect:F,onDeselect:F,selectedKeys:e,getPopupContainer:w,openKeys:j,onOpenChange:H,items:o}))},n=()=>S?(0,c.Z)((k||[]).map((e=>String(e))),e,!0):0===e.length;te=i.createElement(i.Fragment,null,t(),i.createElement("div",{className:`${s}-dropdown-btns`},i.createElement(Pn.ZP,{type:"link",size:"small",disabled:n(),onClick:()=>W()},y.filterReset),i.createElement(Pn.ZP,{type:"primary",size:"small",onClick:V},y.filterConfirm)))}l.filterDropdown&&(te=i.createElement(Ln.J,{selectable:void 0},te)),te=i.createElement(rr,{className:`${s}-dropdown`},te);const re=_n({trigger:["click"],placement:"rtl"===ne?"bottomLeft":"bottomRight",children:(()=>{let e;return e="function"==typeof l.filterIcon?l.filterIcon(D):l.filterIcon?l.filterIcon:i.createElement(kn,null),i.createElement("span",{role:"button",tabIndex:-1,className:P()(`${s}-trigger`,{active:D}),onClick:e=>{e.stopPropagation()}},e)})(),getPopupContainer:w},Object.assign(Object.assign({},_),{rootClassName:P()(x,_.rootClassName),open:I,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==B&&O(lr(B)),N(e),e||l.filterDropdown||!d||V())},dropdownRender:()=>"function"==typeof(null==_?void 0:_.dropdownRender)?_.dropdownRender(te):te}));return i.createElement("div",{className:`${s}-column`},i.createElement("span",{className:`${a}-column-title`},b),i.createElement(Ut.Z,Object.assign({},re)))};const ur=(e,t,n)=>{let i=[];return(e||[]).forEach(((e,r)=>{var o;const a=yn(r,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(o=null==t?void 0:t.map(String))&&void 0!==o?o:t),i.push({column:e,key:vn(e,a),filteredKeys:t,forceFiltered:e.filtered})}else i.push({column:e,key:vn(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(i=[].concat((0,pe.Z)(i),(0,pe.Z)(ur(e.children,t,a))))})),i};function hr(e,t,n,r,o,a,s,l,c){return n.map(((n,u)=>{const h=yn(u,l),{filterOnClose:d=!0,filterMultiple:p=!0,filterMode:f,filterSearch:g}=n;let m=n;if(m.filters||m.filterDropdown){const l=vn(m,h),u=r.find((e=>{let{key:t}=e;return l===t}));m=Object.assign(Object.assign({},m),{title:r=>i.createElement(cr,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:m,columnKey:l,filterState:u,filterOnClose:d,filterMultiple:p,filterMode:f,filterSearch:g,triggerFilter:a,locale:o,getPopupContainer:s,rootClassName:c},bn(n.title,r))})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:hr(e,t,m.children,r,o,a,s,h,c)})),m}))}const dr=e=>{const t={};return e.forEach((e=>{let{key:n,filteredKeys:i,column:r}=e;const o=n,{filters:a,filterDropdown:s}=r;if(s)t[o]=i||null;else if(Array.isArray(i)){const e=or(a);t[o]=e.filter((e=>i.includes(String(e))))}else t[o]=null})),t},pr=(e,t,n)=>t.reduce(((e,i)=>{const{column:{onFilter:r,filters:o},filteredKeys:a}=i;return r&&a&&a.length?e.map((e=>Object.assign({},e))).filter((e=>a.some((i=>{const a=or(o),s=a.findIndex((e=>String(e)===String(i))),l=-1!==s?a[s]:i;return e[n]&&(e[n]=pr(e[n],t,n)),r(l,e)})))):e}),e),fr=e=>e.flatMap((e=>"children"in e?[e].concat((0,pe.Z)(fr(e.children||[]))):[e]));var gr=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:a,locale:s,rootClassName:l}=e,c=((0,Kt.ln)("Table"),i.useMemo((()=>fr(r||[])),[r])),[u,h]=i.useState((()=>ur(c,!0))),d=i.useMemo((()=>{const e=ur(c,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:i}=e;void 0!==i?t=!1:n=!1})),t){const e=(c||[]).map(((e,t)=>vn(e,yn(t))));return u.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=c[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[c,u]),p=i.useMemo((()=>dr(d)),[d]),f=e=>{const t=d.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),h(t),o(dr(t),t)};return[e=>hr(t,n,e,d,s,f,a,void 0,l),d,p]};var mr=(e,t,n)=>{const r=i.useRef({});return[function(i){var o;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){const a=new Map;function s(e){e.forEach(((e,i)=>{const r=n(e,i);a.set(r,e),e&&"object"==typeof e&&t in e&&s(e[t]||[])}))}s(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return null===(o=r.current.kvMap)||void 0===o?void 0:o.get(i)}]},vr=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:yr}))),c=_n(s,a,{total:o>0?o:e}),u=Math.ceil((o||e)/c.pageSize);c.current>u&&(c.current=u||1);const h=(e,t)=>{l({current:null!=e?e:1,pageSize:t||c.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,i)=>{var r;n&&(null===(r=n.onChange)||void 0===r||r.call(n,e,i)),h(e,i),t(e,i||(null==c?void 0:c.pageSize))}}),h]},wr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},xr=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:wr}))};var Sr=i.forwardRef(xr),kr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},_r=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:kr}))};var Cr=i.forwardRef(_r),Pr=n(55544);const Er="ascend",Mr="descend",Lr=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,Ar=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,Tr=(e,t,n)=>{let i=[];const r=(e,t)=>{i.push({column:e,key:vn(e,t),multiplePriority:Lr(e),sortOrder:e.sortOrder})};return(e||[]).forEach(((e,o)=>{const a=yn(o,n);e.children?("sortOrder"in e&&r(e,a),i=[].concat((0,pe.Z)(i),(0,pe.Z)(Tr(e.children,t,a)))):e.sorter&&("sortOrder"in e?r(e,a):t&&e.defaultSortOrder&&i.push({column:e,key:vn(e,a),multiplePriority:Lr(e),sortOrder:e.defaultSortOrder}))})),i},Dr=(e,t,n,r,o,a,s,l)=>{const c=(t||[]).map(((t,c)=>{const u=yn(c,l);let h=t;if(h.sorter){const l=h.sortDirections||o,c=void 0===h.showSorterTooltip?s:h.showSorterTooltip,d=vn(h,u),p=n.find((e=>{let{key:t}=e;return t===d})),f=p?p.sortOrder:null,g=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(l,f);let m;if(t.sortIcon)m=t.sortIcon({sortOrder:f});else{const t=l.includes(Er)&&i.createElement(Cr,{className:P()(`${e}-column-sorter-up`,{active:f===Er})}),n=l.includes(Mr)&&i.createElement(Sr,{className:P()(`${e}-column-sorter-down`,{active:f===Mr})});m=i.createElement("span",{className:P()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},i.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:v,triggerAsc:y,triggerDesc:b}=a||{};let w=v;g===Mr?w=b:g===Er&&(w=y);const x="object"==typeof c?Object.assign({title:w},c):{title:w};h=Object.assign(Object.assign({},h),{className:P()(h.className,{[`${e}-column-sort`]:f}),title:n=>{const r=`${e}-column-sorters`,o=i.createElement("span",{className:`${e}-column-title`},bn(t.title,n)),a=i.createElement("div",{className:r},o,m);return c?"boolean"!=typeof c&&"sorter-icon"===(null==c?void 0:c.target)?i.createElement("div",{className:`${r} ${e}-column-sorters-tooltip-target-sorter`},o,i.createElement(Pr.Z,Object.assign({},x),m)):i.createElement(Pr.Z,Object.assign({},x),a):a},onHeaderCell:n=>{var i;const o=(null===(i=t.onHeaderCell)||void 0===i?void 0:i.call(t,n))||{},a=o.onClick,s=o.onKeyDown;o.onClick=e=>{r({column:t,key:d,sortOrder:g,multiplePriority:Lr(t)}),null==a||a(e)},o.onKeyDown=e=>{e.keyCode===Bn.Z.ENTER&&(r({column:t,key:d,sortOrder:g,multiplePriority:Lr(t)}),null==s||s(e))};const l=((e,t)=>{const n=bn(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),c=null==l?void 0:l.toString();return f&&(o["aria-sort"]="ascend"===f?"ascending":"descending"),o["aria-label"]=c||"",o.className=P()(o.className,`${e}-column-has-sorters`),o.tabIndex=0,t.ellipsis&&(o.title=(null!=l?l:"").toString()),o}})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:Dr(e,h.children,n,r,o,a,s,u)})),h}));return c},Nr=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Ir=e=>{const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(Nr);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},Nr(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Br=(e,t,n)=>{const i=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),r=e.slice(),o=i.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return Ar(t)&&n}));return o.length?r.sort(((e,t)=>{for(let n=0;n{const i=e[n];return i?Object.assign(Object.assign({},e),{[n]:Br(i,t,n)}):e})):r};var Rr=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:a,onSorterChange:s}=e,[l,c]=i.useState(Tr(n,!0)),u=(e,t)=>{const n=[];return e.forEach(((e,i)=>{const r=yn(i,t);if(n.push(vn(e,r)),Array.isArray(e.children)){const t=u(e.children,r);n.push.apply(n,(0,pe.Z)(t))}})),n},h=i.useMemo((()=>{let e=!0;const t=Tr(n,!1);if(!t.length){const e=u(n);return l.filter((t=>{let{key:n}=t;return e.includes(n)}))}const i=[];function r(t){e?i.push(t):i.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let o=null;return t.forEach((t=>{null===o?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:o=!0)):(o&&!1!==t.multiplePriority||(e=!1),r(t))})),i}),[n,l]),d=i.useMemo((()=>{var e,t;const n=h.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}}),[h]),p=e=>{let t;t=!1!==e.multiplePriority&&h.length&&!1!==h[0].multiplePriority?[].concat((0,pe.Z)(h.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],c(t),s(Ir(t),t)};return[e=>Dr(t,e,h,p,r,o,a),h,d,()=>Ir(h)]};const Or=(e,t)=>e.map((e=>{const n=Object.assign({},e);return n.title=bn(e.title,t),"children"in n&&(n.children=Or(n.children,t)),n}));var Fr=e=>[i.useCallback((t=>Or(t,e)),[e])];var zr=Ge(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:i}=t;return n!==i}));var jr=at(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:i}=t;return n!==i})),$r=n(17835);var Hr=e=>{const{componentCls:t,lineWidth:n,lineType:i,tableBorderColor:r,tableHeaderBg:o,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:l}=e,c=`${(0,mi.bf)(n)} ${i} ${r}`,u=(e,i,r)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,mi.bf)(l(i).mul(-1).equal())}\n ${(0,mi.bf)(l(l(r).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,mi.bf)(l(a).mul(-1).equal())} ${(0,mi.bf)(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,mi.bf)(n)} 0 ${(0,mi.bf)(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}};var Zr=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},yi.vS),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}};var Kr=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}};var Gr=e=>{const{componentCls:t,antCls:n,motionDurationSlow:i,lineWidth:r,paddingXS:o,lineType:a,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:h,tablePaddingHorizontal:d,tableExpandedRowBg:p,paddingXXS:f,expandIconMarginTop:g,expandIconSize:m,expandIconHalfInner:v,expandIconScale:y,calc:b}=e,w=`${(0,mi.bf)(r)} ${a} ${s}`,x=b(f).sub(r).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},(0,yi.Nd)(e)),{position:"relative",float:"left",width:m,height:m,color:"inherit",lineHeight:(0,mi.bf)(m),background:l,border:w,borderRadius:u,transform:`scale(${y})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${i} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:x,insetInlineStart:x,height:r},"&::after":{top:x,bottom:x,insetInlineStart:v,width:r,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${(0,mi.bf)(b(h).mul(-1).equal())} ${(0,mi.bf)(b(d).mul(-1).equal())}`,padding:`${(0,mi.bf)(h)} ${(0,mi.bf)(d)}`}}}};var Ur=e=>{const{componentCls:t,antCls:n,iconCls:i,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:o,paddingXXS:a,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:h,headerIconColor:d,fontSizeSM:p,tablePaddingHorizontal:f,borderRadius:g,motionDurationSlow:m,colorTextDescription:v,colorPrimary:y,tableHeaderFilterActiveBg:b,colorTextDisabled:w,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:k,controlItemBgActive:_,boxShadowSecondary:C,filterDropdownMenuBg:P,calc:E}=e,M=`${n}-dropdown`,L=`${t}-filter-dropdown`,A=`${n}-tree`,T=`${(0,mi.bf)(c)} ${u} ${h}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:E(a).mul(-1).equal(),marginInline:`${(0,mi.bf)(a)} ${(0,mi.bf)(E(f).div(2).mul(-1).equal())}`,padding:`0 ${(0,mi.bf)(a)}`,color:d,fontSize:p,borderRadius:g,cursor:"pointer",transition:`all ${m}`,"&:hover":{color:v,background:b},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[L]:Object.assign(Object.assign({},(0,yi.Wf)(e)),{minWidth:r,backgroundColor:x,borderRadius:g,boxShadow:C,overflow:"hidden",[`${M}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:P,"&:empty::after":{display:"block",padding:`${(0,mi.bf)(s)} 0`,color:w,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${L}-tree`]:{paddingBlock:`${(0,mi.bf)(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:k},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:_}}},[`${L}-search`]:{padding:s,borderBottom:T,"&-input":{input:{minWidth:o},[i]:{color:w}}},[`${L}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${L}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,mi.bf)(E(s).sub(c).equal())} ${(0,mi.bf)(s)}`,overflow:"hidden",borderTop:T}})}},{[`${n}-dropdown ${L}, ${L}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};var Vr=e=>{const{componentCls:t,lineWidth:n,colorSplit:i,motionDurationSlow:r,zIndexTableFixed:o,tableBg:a,zIndexTableSticky:s,calc:l}=e,c=i;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:o,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:l(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:l(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}};var Wr=e=>{const{componentCls:t,antCls:n,margin:i}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${(0,mi.bf)(i)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}};var qr=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${(0,mi.bf)(n)} ${(0,mi.bf)(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${(0,mi.bf)(n)} ${(0,mi.bf)(n)}`}}}}};var Yr=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}};var Xr=e=>{const{componentCls:t,antCls:n,iconCls:i,fontSizeIcon:r,padding:o,paddingXS:a,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:h,tableRowHoverBg:d,tablePaddingHorizontal:p,calc:f}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(r).add(f(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:f(c).add(f(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(r).add(f(o).div(4)).add(f(a).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:f(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,mi.bf)(f(p).div(4).equal()),[i]:{color:s,fontSize:r,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:h}}},[`> ${t}-cell-row-hover`]:{background:d}}}}}};var Qr=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:i}=e,r=(e,r,o,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${(0,mi.bf)(r)} ${(0,mi.bf)(o)}`},[`${t}-filter-trigger`]:{marginInlineEnd:(0,mi.bf)(i(o).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${(0,mi.bf)(i(r).mul(-1).equal())} ${(0,mi.bf)(i(o).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:(0,mi.bf)(i(r).mul(-1).equal()),marginInline:`${(0,mi.bf)(i(n).sub(o).equal())} ${(0,mi.bf)(i(o).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:(0,mi.bf)(i(o).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}};var Jr=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:i,headerIconColor:r,headerIconHoverColor:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:i,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}};var eo=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:i,tableScrollThumbBgHover:r,tableScrollThumbSize:o,tableScrollBg:a,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:h}=e,d=`${(0,mi.bf)(c)} ${u} ${h}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,mi.bf)(o)} !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:d,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:i,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}};var to=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:i,calc:r}=e,o=`${(0,mi.bf)(n)} ${e.lineType} ${i}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${(0,mi.bf)(r(n).mul(-1).equal())} 0 ${i}`}}}};var no=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:i,lineType:r,tableBorderColor:o,calc:a}=e,s=`${(0,mi.bf)(i)} ${r} ${o}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row, \n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,mi.bf)(i)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(i).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}};const io=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:i,tablePaddingHorizontal:r,tableExpandColumnWidth:o,lineWidth:a,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:h,tableHeaderTextColor:d,motionDurationMid:p,tableHeaderBg:f,tableHeaderCellSplitColor:g,tableFooterTextColor:m,tableFooterBg:v,calc:y}=e,b=`${(0,mi.bf)(a)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,yi.dF)()),{[t]:Object.assign(Object.assign({},(0,yi.Wf)(e)),{fontSize:c,background:u,borderRadius:`${(0,mi.bf)(h)} ${(0,mi.bf)(h)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,mi.bf)(h)} ${(0,mi.bf)(h)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${(0,mi.bf)(i)} ${(0,mi.bf)(r)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${(0,mi.bf)(i)} ${(0,mi.bf)(r)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:f,borderBottom:b,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:b,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:(0,mi.bf)(y(i).mul(-1).equal()),marginInline:`${(0,mi.bf)(y(o).sub(r).equal())}\n ${(0,mi.bf)(y(r).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:f,borderBottom:b,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${(0,mi.bf)(i)} ${(0,mi.bf)(r)}`,color:m,background:v}})}};var ro=(0,xi.I$)("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:i,controlInteractiveSize:r,headerBg:o,headerColor:a,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:h,rowSelectedHoverBg:d,rowExpandedBg:p,cellPaddingBlock:f,cellPaddingInline:g,cellPaddingBlockMD:m,cellPaddingInlineMD:v,cellPaddingBlockSM:y,cellPaddingInlineSM:b,borderColor:w,footerBg:x,footerColor:S,headerBorderRadius:k,cellFontSize:_,cellFontSizeMD:C,cellFontSizeSM:P,headerSplitColor:E,fixedHeaderSortActiveBg:M,headerFilterHoverBg:L,filterDropdownBg:A,expandIconBg:T,selectionColumnWidth:D,stickyScrollBarBg:N,calc:I}=e,B=(0,wi.IX)(e,{tableFontSize:_,tableBg:i,tableRadius:k,tablePaddingVertical:f,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:m,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:b,tableBorderColor:w,tableHeaderTextColor:a,tableHeaderBg:o,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:E,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:L,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:h,tableSelectedRowHoverBg:d,zIndexTableFixed:2,zIndexTableSticky:I(2).add(1).equal({unit:!1}),tableFontSizeMiddle:C,tableFontSizeSmall:P,tableSelectionColumnWidth:D,tableExpandIconBg:T,tableExpandColumnWidth:I(r).add(I(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[io(B),Wr(B),to(B),Jr(B),Ur(B),Hr(B),qr(B),Gr(B),to(B),Kr(B),Xr(B),Vr(B),eo(B),Zr(B),Qr(B),Yr(B),no(B)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:i,colorFillSecondary:r,colorFillContent:o,controlItemBgActive:a,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:h,borderRadiusLG:d,controlHeight:p,colorTextPlaceholder:f,fontSize:g,fontSizeSM:m,lineHeight:v,lineWidth:y,colorIcon:b,colorIconHover:w,opacityLoading:x,controlInteractiveSize:S}=e,k=new $r.t(r).onBackground(n).toHexString(),_=new $r.t(o).onBackground(n).toHexString(),C=new $r.t(t).onBackground(n).toHexString(),P=new $r.t(b),E=new $r.t(w),M=S/2-y,L=2*M+3*y;return{headerBg:C,headerColor:i,headerSortActiveBg:k,headerSortHoverBg:_,bodySortBg:C,rowHoverBg:C,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:h,headerBorderRadius:d,footerBg:C,footerColor:i,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:h,fixedHeaderSortActiveBg:k,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:f,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-3*y)/2-Math.ceil((1.4*m-3*y)/2),headerIconColor:P.clone().setA(P.a*x).toRgbString(),headerIconHoverColor:E.clone().setA(E.a*x).toRgbString(),expandIconHalfInner:M,expandIconSize:L,expandIconScale:S/L}}),{unitless:{expandIconScale:!0}});const oo=[],ao=(e,t)=>{var n,r;const{prefixCls:a,className:s,rootClassName:l,style:c,size:u,bordered:h,dropdownPrefixCls:d,dataSource:p,pagination:f,rowSelection:g,rowKey:m="key",rowClassName:v,columns:y,children:b,childrenColumnName:w,onChange:x,getPopupContainer:S,loading:k,expandIcon:_,expandable:C,expandedRowRender:E,expandIconColumnIndex:M,indentSize:L,scroll:A,sortDirections:T,locale:D,showSorterTooltip:N={target:"full-header"},virtual:I}=e;(0,Kt.ln)("Table");const B=i.useMemo((()=>y||ke(b)),[y,b]),R=i.useMemo((()=>B.some((e=>e.responsive))),[B]),O=(0,hn.Z)(R),F=i.useMemo((()=>{const e=new Set(Object.keys(O).filter((e=>O[e])));return B.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[B,O]),z=(0,gt.Z)(e,["className","style","columns"]),{locale:j=dn.Z,direction:$,table:H,renderEmpty:Z,getPrefixCls:K,getPopupContainer:G}=i.useContext(sn.E_),U=(0,un.Z)(u),V=Object.assign(Object.assign({},j.Table),D),W=p||oo,q=K("table",a),Y=K("dropdown",d),[,X]=(0,gn.ZP)(),Q=(0,cn.Z)(q),[J,ee,te]=ro(q,Q),ne=Object.assign(Object.assign({childrenColumnName:w,expandIconColumnIndex:M},C),{expandIcon:null!==(n=null==C?void 0:C.expandIcon)&&void 0!==n?n:null===(r=null==H?void 0:H.expandable)||void 0===r?void 0:r.expandIcon}),{childrenColumnName:ie="children"}=ne,re=i.useMemo((()=>W.some((e=>null==e?void 0:e[ie]))?"nest":E||(null==C?void 0:C.expandedRowRender)?"row":null),[W]),oe={body:i.useRef(null)},ae=function(e){return(t,n)=>{const i=t.querySelector(`.${e}-container`);let r=n;if(i){const e=getComputedStyle(i);r=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return r}}(q),se=i.useRef(null),le=i.useRef(null);tn(t,(()=>Object.assign(Object.assign({},le.current),{nativeElement:se.current})));const ce=i.useMemo((()=>"function"==typeof m?m:e=>null==e?void 0:e[m]),[m]),[ue]=mr(W,ie,ce),he={},de=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var i,r,o,a;const s=Object.assign(Object.assign({},he),e);n&&(null===(i=he.resetPagination)||void 0===i||i.call(he),(null===(r=s.pagination)||void 0===r?void 0:r.current)&&(s.pagination.current=1),f&&(null===(o=f.onChange)||void 0===o||o.call(f,1,null===(a=s.pagination)||void 0===a?void 0:a.pageSize))),A&&!1!==A.scrollToFirstRowOnChange&&oe.body.current&&an(0,{getContainer:()=>oe.body.current}),null==x||x(s.pagination,s.filters,s.sorter,{currentDataSource:pr(Br(W,s.sorterStates,ie),s.filterStates,ie),action:t})},[pe,fe,ge,me]=Rr({prefixCls:q,mergedColumns:F,onSorterChange:(e,t)=>{de({sorter:e,sorterStates:t},"sort",!1)},sortDirections:T||["ascend","descend"],tableLocale:V,showSorterTooltip:N}),ve=i.useMemo((()=>Br(W,fe,ie)),[W,fe]);he.sorter=me(),he.sorterStates=fe;const[ye,be,we]=gr({prefixCls:q,locale:V,dropdownPrefixCls:Y,mergedColumns:F,onFilterChange:(e,t)=>{de({filters:e,filterStates:t},"filter",!0)},getPopupContainer:S||G,rootClassName:P()(l,Q)}),xe=pr(ve,be,ie);he.filters=we,he.filterStates=be;const Se=i.useMemo((()=>{const e={};return Object.keys(we).forEach((t=>{null!==we[t]&&(e[t]=we[t])})),Object.assign(Object.assign({},ge),{filters:e})}),[ge,we]),[_e]=Fr(Se),[Ce,Pe]=br(xe.length,((e,t)=>{de({pagination:Object.assign(Object.assign({},he.pagination),{current:e,pageSize:t})},"paginate")}),f);he.pagination=!1===f?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},i=t&&"object"==typeof t?t:{};return Object.keys(i).forEach((t=>{const i=e[t];"function"!=typeof i&&(n[t]=i)})),n}(Ce,f),he.resetPagination=Pe;const Ee=i.useMemo((()=>{if(!1===f||!Ce.pageSize)return xe;const{current:e=1,total:t,pageSize:n=yr}=Ce;return xe.lengthn?xe.slice((e-1)*n,e*n):xe:xe.slice((e-1)*n,e*n)}),[!!f,xe,null==Ce?void 0:Ce.current,null==Ce?void 0:Ce.pageSize,null==Ce?void 0:Ce.total]),[Me,Le]=en({prefixCls:q,data:xe,pageData:Ee,getRowKey:ce,getRecordByKey:ue,expandType:re,childrenColumnName:ie,locale:V,getPopupContainer:S||G},g);ne.__PARENT_RENDER_ICON__=ne.expandIcon,ne.expandIcon=ne.expandIcon||_||mn(V),"nest"===re&&void 0===ne.expandIconColumnIndex?ne.expandIconColumnIndex=g?1:0:ne.expandIconColumnIndex>0&&g&&(ne.expandIconColumnIndex-=1),"number"!=typeof ne.indentSize&&(ne.indentSize="number"==typeof L?L:15);const Ae=i.useCallback((e=>_e(Me(ye(pe(e))))),[pe,ye,Me]);let Te,De,Ne;if(!1!==f&&(null==Ce?void 0:Ce.total)){let e;e=Ce.size?Ce.size:"small"===U||"middle"===U?"small":void 0;const t=t=>i.createElement(pn.Z,Object.assign({},Ce,{className:P()(`${q}-pagination ${q}-pagination-${t}`,Ce.className),size:e})),n="rtl"===$?"left":"right",{position:r}=Ce;if(null!==r&&Array.isArray(r)){const e=r.find((e=>e.includes("top"))),i=r.find((e=>e.includes("bottom"))),o=r.every((e=>"none"==`${e}`));e||i||o||(De=t(n)),e&&(Te=t(e.toLowerCase().replace("top",""))),i&&(De=t(i.toLowerCase().replace("bottom","")))}else De=t(n)}"boolean"==typeof k?Ne={spinning:k}:"object"==typeof k&&(Ne=Object.assign({spinning:!0},k));const Ie=P()(te,Q,`${q}-wrapper`,null==H?void 0:H.className,{[`${q}-wrapper-rtl`]:"rtl"===$},s,l,ee),Be=Object.assign(Object.assign({},null==H?void 0:H.style),c),Re=void 0!==(null==D?void 0:D.emptyText)?D.emptyText:(null==Z?void 0:Z("Table"))||i.createElement(ln.Z,{componentName:"Table"}),Oe=I?jr:zr,Fe={},ze=i.useMemo((()=>{const{fontSize:e,lineHeight:t,lineWidth:n,padding:i,paddingXS:r,paddingSM:o}=X,a=Math.floor(e*t);switch(U){case"middle":return 2*o+a+n;case"small":return 2*r+a+n;default:return 2*i+a+n}}),[X,U]);return I&&(Fe.listItemHeight=ze),J(i.createElement("div",{ref:se,className:Ie,style:Be},i.createElement(fn.Z,Object.assign({spinning:!1},Ne),Te,i.createElement(Oe,Object.assign({},Fe,z,{ref:le,columns:F,direction:$,expandable:ne,prefixCls:q,className:P()({[`${q}-middle`]:"middle"===U,[`${q}-small`]:"small"===U,[`${q}-bordered`]:h,[`${q}-empty`]:0===W.length},te,Q,ee),data:Ee,rowKey:ce,rowClassName:(e,t,n)=>{let i;return i="function"==typeof v?P()(v(e,t,n)):P()(v),P()({[`${q}-row-selected`]:Le.has(ce(e,t))},i)},emptyText:Re,internalHooks:o,internalRefs:oe,transformColumns:Ae,getContainerWidth:ae})),De)))};var so=i.forwardRef(ao);const lo=(e,t)=>{const n=i.useRef(0);return n.current+=1,i.createElement(so,Object.assign({},e,{ref:t,_renderTimes:n.current}))},co=i.forwardRef(lo);co.SELECTION_COLUMN=Wt,co.EXPAND_COLUMN=r,co.SELECTION_ALL=qt,co.SELECTION_INVERT=Yt,co.SELECTION_NONE=Xt,co.Column=st,co.ColumnGroup=lt,co.Summary=K;var uo=co},52017:function(e,t,n){"use strict";n.d(t,{Z:function(){return Ae}});var i=n(59301),r=n(99267),o=n(18785),a=n(14809),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},l=n(7657),c=function(e,t){return i.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:s}))};var u=i.forwardRef(c),h=n(92310),d=n.n(h),p=n(4635),f=n(20439),g=n(50298),m=n(93664),v=n(62646),y=n(18929),b=n(49658),w=(0,i.createContext)(null),x=n(95190),S=n(29301),k=n(6089),_=n(8654),C=n(16089),P=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,o=e.indicator,a=void 0===o?{}:o,s=a.size,l=a.align,c=void 0===l?"center":l,u=(0,i.useState)(),h=(0,g.Z)(u,2),d=h[0],p=h[1],f=(0,i.useRef)(),m=i.useCallback((function(e){return"function"==typeof s?s(e):"number"==typeof s?s:e}),[s]);function v(){C.Z.cancel(f.current)}return(0,i.useEffect)((function(){var e={};if(t)if(n){e.width=m(t.width);var i=r?"right":"left";"start"===c&&(e[i]=t[i]),"center"===c&&(e[i]=t[i]+t.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===c&&(e[i]=t[i]+t.width,e.transform="translateX(-100%)")}else e.height=m(t.height),"start"===c&&(e.top=t.top),"center"===c&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===c&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return v(),f.current=(0,C.Z)((function(){p(e)})),v}),[t,n,r,c,m]),{style:d}},E={width:0,height:0,left:0,top:0};function M(e,t){var n=i.useRef(e),r=i.useState({}),o=(0,g.Z)(r,2)[1];return[n.current,function(e){var i="function"==typeof e?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,o({})}]}var L=Math.pow(.995,20);var A=n(34280);function T(e){var t=(0,i.useState)(0),n=(0,g.Z)(t,2),r=n[0],o=n[1],a=(0,i.useRef)(0),s=(0,i.useRef)();return s.current=e,(0,A.o)((function(){var e;null===(e=s.current)||void 0===e||e.call(s)}),[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}var D={width:0,height:0,left:0,top:0,right:0};function N(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function I(e){return String(e).replace(/"/g,"TABS_DQ")}function B(e,t,n,i){return!(!n||i||!1===e||void 0===e&&(!1===t||null===t))}var R=i.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return r&&!1!==r.showAdd?i.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null})),O=R;var F=i.forwardRef((function(e,t){var n,r=e.position,o=e.prefixCls,a=e.extra;if(!a)return null;var s={};return"object"!==(0,m.Z)(a)||i.isValidElement(a)?s.right=a:s=a,"right"===r&&(n=s.right),"left"===r&&(n=s.left),n?i.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null})),z=n(96478),j=n(28321),$=n(10228),H=i.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,s=e.locale,l=e.mobile,c=e.more,u=void 0===c?{}:c,h=e.style,f=e.className,m=e.editable,v=e.tabBarGutter,y=e.rtl,b=e.removeAriaLabel,w=e.onTabClick,x=e.getPopupContainer,S=e.popupClassName,k=(0,i.useState)(!1),_=(0,g.Z)(k,2),C=_[0],P=_[1],E=(0,i.useState)(null),M=(0,g.Z)(E,2),L=M[0],A=M[1],T=u.icon,D=void 0===T?"More":T,N="".concat(r,"-more-popup"),I="".concat(n,"-dropdown"),R=null!==L?"".concat(N,"-").concat(L):null,F=null==s?void 0:s.dropdownAriaLabel;var H=i.createElement(j.ZP,{onClick:function(e){var t=e.key,n=e.domEvent;w(t,n),P(!1)},prefixCls:"".concat(I,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[L],"aria-label":void 0!==F?F:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,a=e.key,s=e.label,l=B(t,o,m,n);return i.createElement(j.sN,{key:a,id:"".concat(N,"-").concat(a),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(a),disabled:n},i.createElement("span",null,s),l&&i.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}(e,a)}},o||m.removeIcon||"×"))})));function Z(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===L}))||0,i=t.length,r=0;rt?"left":"right"})})),te=(0,g.Z)(ee,2),ne=te[0],ie=te[1],re=M(0,(function(e,t){!J&&A&&A({direction:e>t?"top":"bottom"})})),oe=(0,g.Z)(re,2),ae=oe[0],se=oe[1],le=(0,i.useState)([0,0]),ce=(0,g.Z)(le,2),ue=ce[0],he=ce[1],de=(0,i.useState)([0,0]),pe=(0,g.Z)(de,2),fe=pe[0],ge=pe[1],me=(0,i.useState)([0,0]),ve=(0,g.Z)(me,2),ye=ve[0],be=ve[1],we=(0,i.useState)([0,0]),xe=(0,g.Z)(we,2),Se=xe[0],ke=xe[1],_e=function(e){var t=(0,i.useRef)([]),n=(0,i.useState)({}),r=(0,g.Z)(n,2)[1],o=(0,i.useRef)("function"==typeof e?e():e),a=T((function(){var e=o.current;t.current.forEach((function(t){e=t(e)})),t.current=[],o.current=e,r({})}));return[o.current,function(e){t.current.push(e),a()}]}(new Map),Ce=(0,g.Z)(_e,2),Pe=Ce[0],Ee=Ce[1],Me=function(e,t,n){return(0,i.useMemo)((function(){for(var n,i=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||E,o=r.left+r.width,a=0;aOe?Oe:e}J&&c?(Re=0,Oe=Math.max(0,Ae-Ie)):(Re=Math.min(0,Ie-Ae),Oe=0);var ze=(0,i.useRef)(null),je=(0,i.useState)(),$e=(0,g.Z)(je,2),He=$e[0],Ze=$e[1];function Ke(){Ze(Date.now())}function Ge(){ze.current&&clearTimeout(ze.current)}!function(e,t){var n=(0,i.useState)(),r=(0,g.Z)(n,2),o=r[0],a=r[1],s=(0,i.useState)(0),l=(0,g.Z)(s,2),c=l[0],u=l[1],h=(0,i.useState)(0),d=(0,g.Z)(h,2),p=d[0],f=d[1],m=(0,i.useState)(),v=(0,g.Z)(m,2),y=v[0],b=v[1],w=(0,i.useRef)(),x=(0,i.useRef)(),S=(0,i.useRef)(null);S.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,i=t.screenY;a({x:n,y:i}),window.clearInterval(w.current)},onTouchMove:function(e){if(o){var n=e.touches[0],i=n.screenX,r=n.screenY;a({x:i,y:r});var s=i-o.x,l=r-o.y;t(s,l);var h=Date.now();u(h),f(h-c),b({x:s,y:l})}},onTouchEnd:function(){if(o&&(a(null),b(null),y)){var e=y.x/p,n=y.y/p,i=Math.abs(e),r=Math.abs(n);if(Math.max(i,r)<.1)return;var s=e,l=n;w.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(w.current):t(20*(s*=L),20*(l*=L))}),20)}},onWheel:function(e){var n=e.deltaX,i=e.deltaY,r=0,o=Math.abs(n),a=Math.abs(i);o===a?r="x"===x.current?n:i:o>a?(r=n,x.current="x"):(r=i,x.current="y"),t(-r,-r)&&e.preventDefault()}},i.useEffect((function(){function t(e){S.current.onTouchMove(e)}function n(e){S.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){S.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){S.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(q,(function(e,t){function n(e,t){e((function(e){return Fe(e+t)}))}return!!Ne&&(J?n(ie,e):n(se,t),Ge(),Ke(),!0)})),(0,i.useEffect)((function(){return Ge(),He&&(ze.current=setTimeout((function(){Ze(0)}),100)),Ge}),[He]);var Ue=function(e,t,n,r,o,a,s){var l,c,u,h=s.tabs,d=s.tabPosition,p=s.rtl;return["top","bottom"].includes(d)?(l="width",c=p?"right":"left",u=Math.abs(n)):(l="height",c="top",u=-n),(0,i.useMemo)((function(){if(!h.length)return[0,0];for(var n=h.length,i=n,r=0;rMath.floor(u+t)){i=r-1;break}}for(var a=0,s=n-1;s>=0;s-=1)if((e.get(h[s].key)||D)[c]=i?[0,0]:[a,i]}),[e,t,r,o,a,u,d,h.map((function(e){return e.key})).join("_"),p])}(Me,Ie,J?ne:ae,Ae,Te,De,(0,f.Z)((0,f.Z)({},e),{},{tabs:$})),Ve=(0,g.Z)(Ue,2),We=Ve[0],qe=Ve[1],Ye=(0,k.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=Me.get(e)||{width:0,height:0,left:0,right:0,top:0};if(J){var n=ne;c?t.rightne+Ie&&(n=t.right+t.width-Ie):t.left<-ne?n=-t.left:t.left+t.width>-ne+Ie&&(n=-(t.left+t.width-Ie)),se(0),ie(Fe(n))}else{var i=ae;t.top<-ae?i=-t.top:t.top+t.height>-ae+Ie&&(i=-(t.top+t.height-Ie)),ie(0),se(Fe(i))}})),Xe=(0,i.useState)(),Qe=(0,g.Z)(Xe,2),Je=Qe[0],et=Qe[1],tt=(0,i.useState)(!1),nt=(0,g.Z)(tt,2),it=nt[0],rt=nt[1],ot=$.filter((function(e){return!e.disabled})).map((function(e){return e.key})),at=function(e){var t=ot.indexOf(Je||l),n=ot.length,i=ot[(t+e+n)%n];et(i)},st=function(e){var t=e.code,n=c&&J,i=ot[0],r=ot[ot.length-1];switch(t){case"ArrowLeft":J&&at(n?1:-1);break;case"ArrowRight":J&&at(n?-1:1);break;case"ArrowUp":e.preventDefault(),J||at(-1);break;case"ArrowDown":e.preventDefault(),J||at(1);break;case"Home":e.preventDefault(),et(i);break;case"End":e.preventDefault(),et(r);break;case"Enter":case"Space":e.preventDefault(),C(l,e);break;case"Backspace":case"Delete":var o=ot.indexOf(Je),a=$.find((function(e){return e.key===Je}));B(null==a?void 0:a.closable,null==a?void 0:a.closeIcon,h,null==a?void 0:a.disabled)&&(e.preventDefault(),e.stopPropagation(),h.onEdit("remove",{key:Je,event:e}),o===ot.length-1?at(-1):at(1))}},lt={};J?lt[c?"marginRight":"marginLeft"]=y:lt.marginTop=y;var ct=$.map((function(e,t){var n=e.key;return i.createElement(K,{id:o,prefixCls:j,key:n,tab:e,style:0===t?void 0:lt,closable:e.closable,editable:h,active:n===l,focus:n===Je,renderWrapper:b,removeAriaLabel:null==m?void 0:m.removeAriaLabel,tabCount:ot.length,currentPosition:t+1,onClick:function(e){C(n,e)},onKeyDown:st,onFocus:function(){it||et(n),Ye(n),Ke(),q.current&&(c||(q.current.scrollLeft=0),q.current.scrollTop=0)},onBlur:function(){et(void 0)},onMouseDown:function(){rt(!0)},onMouseUp:function(){rt(!1)}})})),ut=function(){return Ee((function(){var e,t=new Map,n=null===(e=Y.current)||void 0===e?void 0:e.getBoundingClientRect();return $.forEach((function(e){var i,r=e.key,o=null===(i=Y.current)||void 0===i?void 0:i.querySelector('[data-node-key="'.concat(I(r),'"]'));if(o){var a=function(e,t){var n=e.offsetWidth,i=e.offsetHeight,r=e.offsetTop,o=e.offsetLeft,a=e.getBoundingClientRect(),s=a.width,l=a.height,c=a.left,u=a.top;return Math.abs(s-n)<1?[s,l,c-t.left,u-t.top]:[n,i,o,r]}(o,n),s=(0,g.Z)(a,4),l=s[0],c=s[1],u=s[2],h=s[3];t.set(r,{width:l,height:c,left:u,top:h})}})),t}))};(0,i.useEffect)((function(){ut()}),[$.map((function(e){return e.key})).join("_")]);var ht=T((function(){var e=G(H),t=G(V),n=G(W);he([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var i=G(Q);be(i);var r=G(X);ke(r);var o=G(Y);ge([o[0]-i[0],o[1]-i[1]]),ut()})),dt=$.slice(0,We),pt=$.slice(qe+1),ft=[].concat((0,x.Z)(dt),(0,x.Z)(pt)),gt=Me.get(l),mt=P({activeTabOffset:gt,horizontal:J,indicator:R,rtl:c}).style;(0,i.useEffect)((function(){Ye()}),[l,Re,Oe,N(gt),N(Me),J]),(0,i.useEffect)((function(){ht()}),[c]);var vt,yt,bt,wt,xt=!!ft.length,St="".concat(j,"-nav-wrap");return J?c?(yt=ne>0,vt=ne!==Oe):(vt=ne<0,yt=ne!==Re):(bt=ae<0,wt=ae!==Re),i.createElement(S.Z,{onResize:ht},i.createElement("div",{ref:(0,_.x1)(t,H),role:"tablist","aria-orientation":J?"horizontal":"vertical",className:d()("".concat(j,"-nav"),n),style:r,onKeyDown:function(){Ke()}},i.createElement(F,{ref:V,position:"left",extra:u,prefixCls:j}),i.createElement(S.Z,{onResize:ht},i.createElement("div",{className:d()(St,(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(St,"-ping-left"),vt),"".concat(St,"-ping-right"),yt),"".concat(St,"-ping-top"),bt),"".concat(St,"-ping-bottom"),wt)),ref:q},i.createElement(S.Z,{onResize:ht},i.createElement("div",{ref:Y,className:"".concat(j,"-nav-list"),style:{transform:"translate(".concat(ne,"px, ").concat(ae,"px)"),transition:He?"none":void 0}},ct,i.createElement(O,{ref:Q,prefixCls:j,locale:m,editable:h,style:(0,f.Z)((0,f.Z)({},0===ct.length?void 0:lt),{},{visibility:xt?"hidden":null})}),i.createElement("div",{className:d()("".concat(j,"-ink-bar"),(0,p.Z)({},"".concat(j,"-ink-bar-animated"),s.inkBar)),style:mt}))))),i.createElement(Z,(0,a.Z)({},e,{removeAriaLabel:null==m?void 0:m.removeAriaLabel,ref:X,prefixCls:j,tabs:ft,className:!xt&&Be,tabMoving:!!He})),i.createElement(F,{ref:W,position:"right",extra:u,prefixCls:j})))})),W=V,q=i.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,s=e.active,l=e.tabKey,c=e.children;return i.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!s,style:o,className:d()(n,s&&"".concat(n,"-active"),r),ref:t},c)}));var Y=q,X=["renderTabBar"],Q=["label","key"];var J=function(e){var t=e.renderTabBar,n=(0,v.Z)(e,X),r=i.useContext(w).tabs;return t?t((0,f.Z)((0,f.Z)({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=(0,v.Z)(e,Q);return i.createElement(Y,(0,a.Z)({tab:t,key:n,tabKey:n},r))}))}),W):i.createElement(W,n)},ee=n(77900),te=["key","forceRender","style","className","destroyInactiveTabPane"],ne=function(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,s=e.destroyInactiveTabPane,l=i.useContext(w),c=l.prefixCls,u=l.tabs,h=r.tabPane,g="".concat(c,"-tabpane");return i.createElement("div",{className:d()("".concat(c,"-content-holder"))},i.createElement("div",{className:d()("".concat(c,"-content"),"".concat(c,"-content-").concat(o),(0,p.Z)({},"".concat(c,"-content-animated"),h))},u.map((function(e){var o=e.key,l=e.forceRender,c=e.style,u=e.className,p=e.destroyInactiveTabPane,m=(0,v.Z)(e,te),y=o===n;return i.createElement(ee.ZP,(0,a.Z)({key:o,visible:y,forceRender:l,removeOnLeave:!(!s&&!p),leavedClassName:"".concat(g,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,s=e.className;return i.createElement(Y,(0,a.Z)({},m,{prefixCls:g,id:t,tabKey:o,animated:h,active:y,style:(0,f.Z)((0,f.Z)({},c),r),className:d()(u,s),ref:n}))}))}))))};n(48736);var ie=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],re=0,oe=i.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,o=void 0===r?"rc-tabs":r,s=e.className,l=e.items,c=e.direction,u=e.activeKey,h=e.defaultActiveKey,x=e.editable,S=e.animated,k=e.tabPosition,_=void 0===k?"top":k,C=e.tabBarGutter,P=e.tabBarStyle,E=e.tabBarExtraContent,M=e.locale,L=e.more,A=e.destroyInactiveTabPane,T=e.renderTabBar,D=e.onChange,N=e.onTabClick,I=e.onTabScroll,B=e.getPopupContainer,R=e.popupClassName,O=e.indicator,F=(0,v.Z)(e,ie),z=i.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===(0,m.Z)(e)&&"key"in e}))}),[l]),j="rtl"===c,$=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,f.Z)({inkBar:!0},"object"===(0,m.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(S),H=(0,i.useState)(!1),Z=(0,g.Z)(H,2),K=Z[0],G=Z[1];(0,i.useEffect)((function(){G((0,b.Z)())}),[]);var U=(0,y.Z)((function(){var e;return null===(e=z[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:h}),V=(0,g.Z)(U,2),W=V[0],q=V[1],Y=(0,i.useState)((function(){return z.findIndex((function(e){return e.key===W}))})),X=(0,g.Z)(Y,2),Q=X[0],ee=X[1];(0,i.useEffect)((function(){var e,t=z.findIndex((function(e){return e.key===W}));-1===t&&(t=Math.max(0,Math.min(Q,z.length-1)),q(null===(e=z[t])||void 0===e?void 0:e.key));ee(t)}),[z.map((function(e){return e.key})).join("_"),W,Q]);var te=(0,y.Z)(null,{value:n}),oe=(0,g.Z)(te,2),ae=oe[0],se=oe[1];(0,i.useEffect)((function(){n||(se("rc-tabs-".concat(re)),re+=1)}),[]);var le={id:ae,activeKey:W,animated:$,tabPosition:_,rtl:j,mobile:K},ce=(0,f.Z)((0,f.Z)({},le),{},{editable:x,locale:M,more:L,tabBarGutter:C,onTabClick:function(e,t){null==N||N(e,t);var n=e!==W;q(e),n&&(null==D||D(e))},onTabScroll:I,extra:E,style:P,panes:null,getPopupContainer:B,popupClassName:R,indicator:O});return i.createElement(w.Provider,{value:{tabs:z,prefixCls:o}},i.createElement("div",(0,a.Z)({ref:t,id:n,className:d()(o,"".concat(o,"-").concat(_),(0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(o,"-mobile"),K),"".concat(o,"-editable"),x),"".concat(o,"-rtl"),j),s)},F),i.createElement(J,(0,a.Z)({},ce,{renderTabBar:T})),i.createElement(ne,(0,a.Z)({destroyInactiveTabPane:A},le,{animated:$}))))}));var ae=oe,se=n(48755),le=n(83397),ce=n(31756),ue=n(86641);const he={motionAppear:!1,motionEnter:!0,motionLeave:!0};var de=n(11592),pe=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,ye.oN)(e,"slide-up"),(0,ye.oN)(e,"slide-down")]]};const we=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:i,cardGutter:r,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:i,border:`${(0,fe.bf)(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},(0,ge.oN)(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,fe.bf)(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,fe.bf)(e.borderRadiusLG)} ${(0,fe.bf)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,fe.bf)(e.borderRadiusLG)} ${(0,fe.bf)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,fe.bf)(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,fe.bf)(e.borderRadiusLG)} 0 0 ${(0,fe.bf)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,fe.bf)(e.borderRadiusLG)} ${(0,fe.bf)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},xe=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:i}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,ge.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,fe.bf)(i)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ge.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,fe.bf)(e.paddingXXS)} ${(0,fe.bf)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Se=e=>{const{componentCls:t,margin:n,colorBorderSecondary:i,horizontalMargin:r,verticalItemPadding:o,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,fe.bf)(e.lineWidth)} ${e.lineType} ${i}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,fe.bf)(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,fe.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,fe.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},ke=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:i,horizontalItemPaddingSM:r,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,fe.bf)(e.borderRadius)} ${(0,fe.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,fe.bf)(e.borderRadius)} ${(0,fe.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,fe.bf)(e.borderRadius)} ${(0,fe.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,fe.bf)(e.borderRadius)} 0 0 ${(0,fe.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i}}}}}},_e=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:i,iconCls:r,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},(0,ge.Qy)(e)),"&:hover":{color:i},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},(0,ge.oN)(e)),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${r}`]:{margin:0},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}},Ce=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:i,cardGutter:r,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[i]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,fe.bf)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,fe.bf)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,fe.bf)(o(e.marginXXS).mul(-1).equal())},[i]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Pe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:i,cardGutter:r,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:i,marginLeft:{_skip_check_:!0,value:r},padding:(0,fe.bf)(e.paddingXS),background:"transparent",border:`${(0,fe.bf)(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${(0,fe.bf)(e.borderRadiusLG)} ${(0,fe.bf)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},(0,ge.Qy)(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),_e(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},(0,ge.Qy)(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}};var Ee=(0,me.I$)("Tabs",(e=>{const t=(0,ve.IX)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,fe.bf)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,fe.bf)(e.horizontalItemGutter)}`});return[ke(t),Ce(t),Se(t),xe(t),we(t),Pe(t),be(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));var Me=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var t,n,a,s,l,c,h,p,f,g,m;const{type:v,className:y,rootClassName:b,size:w,onEdit:x,hideAdd:S,centered:k,addIcon:_,removeIcon:C,moreIcon:P,more:E,popupClassName:M,children:L,items:A,animated:T,style:D,indicatorSize:N,indicator:I}=e,B=Me(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:R}=B,{direction:O,tabs:F,getPrefixCls:z,getPopupContainer:j}=i.useContext(se.E_),$=z("tabs",R),H=(0,le.Z)($),[Z,K,G]=Ee($,H);let U;"editable-card"===v&&(U={onEdit:(e,t)=>{let{key:n,event:i}=t;null==x||x("add"===e?i:n,e)},removeIcon:null!==(t=null!=C?C:null==F?void 0:F.removeIcon)&&void 0!==t?t:i.createElement(r.Z,null),addIcon:(null!=_?_:null==F?void 0:F.addIcon)||i.createElement(u,null),showAdd:!0!==S});const V=z();const W=(0,ce.Z)(w),q=function(e,t){return e||function(e){return e.filter((e=>e))}((0,de.Z)(t).map((e=>{if(i.isValidElement(e)){const{key:t,props:n}=e,i=n||{},{tab:r}=i,o=pe(i,["tab"]);return Object.assign(Object.assign({key:String(t)},o),{label:r})}return null})))}(A,L),Y=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},he),{motionName:(0,ue.m)(e,"switch")})),t}($,T),X=Object.assign(Object.assign({},null==F?void 0:F.style),D),Q={align:null!==(n=null==I?void 0:I.align)&&void 0!==n?n:null===(a=null==F?void 0:F.indicator)||void 0===a?void 0:a.align,size:null!==(h=null!==(l=null!==(s=null==I?void 0:I.size)&&void 0!==s?s:N)&&void 0!==l?l:null===(c=null==F?void 0:F.indicator)||void 0===c?void 0:c.size)&&void 0!==h?h:null==F?void 0:F.indicatorSize};return Z(i.createElement(ae,Object.assign({direction:O,getPopupContainer:j},B,{items:q,className:d()({[`${$}-${W}`]:W,[`${$}-card`]:["card","editable-card"].includes(v),[`${$}-editable-card`]:"editable-card"===v,[`${$}-centered`]:k},null==F?void 0:F.className,y,b,K,G,H),popupClassName:d()(M,K,G,H),style:X,editable:U,more:Object.assign({icon:null!==(m=null!==(g=null!==(f=null===(p=null==F?void 0:F.more)||void 0===p?void 0:p.icon)&&void 0!==f?f:null==F?void 0:F.moreIcon)&&void 0!==g?g:P)&&void 0!==m?m:i.createElement(o.Z,null),transitionName:`${V}-slide-up`},E),prefixCls:$,animated:Y,indicator:Q})))};Le.TabPane=()=>null;var Ae=Le},55544:function(e,t,n){"use strict";n.d(t,{Z:function(){return V}});var i=n(59301),r=n(92310),o=n.n(r);function a(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,s=e.bodyClassName,l=e.className,c=e.style;return i.createElement("div",{className:o()("".concat(n,"-content"),l),style:c},i.createElement("div",{className:o()("".concat(n,"-inner"),s),id:r,role:"tooltip",style:a},"function"==typeof t?t():t))}var s=n(14809),l=n(20439),c=n(62646),u=n(65966),h={shiftX:64,adjustY:1},d={adjustX:1,shiftY:!0},p=[0,0],f={left:{points:["cr","cl"],overflow:d,offset:[-4,0],targetOffset:p},right:{points:["cl","cr"],overflow:d,offset:[4,0],targetOffset:p},top:{points:["bc","tc"],overflow:h,offset:[0,-4],targetOffset:p},bottom:{points:["tc","bc"],overflow:h,offset:[0,4],targetOffset:p},topLeft:{points:["bl","tl"],overflow:h,offset:[0,-4],targetOffset:p},leftTop:{points:["tr","tl"],overflow:d,offset:[-4,0],targetOffset:p},topRight:{points:["br","tr"],overflow:h,offset:[0,-4],targetOffset:p},rightTop:{points:["tl","tr"],overflow:d,offset:[4,0],targetOffset:p},bottomRight:{points:["tr","br"],overflow:h,offset:[0,4],targetOffset:p},rightBottom:{points:["bl","br"],overflow:d,offset:[4,0],targetOffset:p},bottomLeft:{points:["tl","bl"],overflow:h,offset:[0,4],targetOffset:p},leftBottom:{points:["br","bl"],overflow:d,offset:[-4,0],targetOffset:p}},g=n(80402),m=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],v=function(e,t){var n=e.overlayClassName,r=e.trigger,h=void 0===r?["hover"]:r,d=e.mouseEnterDelay,p=void 0===d?0:d,v=e.mouseLeaveDelay,y=void 0===v?.1:v,b=e.overlayStyle,w=e.prefixCls,x=void 0===w?"rc-tooltip":w,S=e.children,k=e.onVisibleChange,_=e.afterVisibleChange,C=e.transitionName,P=e.animation,E=e.motion,M=e.placement,L=void 0===M?"right":M,A=e.align,T=void 0===A?{}:A,D=e.destroyTooltipOnHide,N=void 0!==D&&D,I=e.defaultVisible,B=e.getTooltipContainer,R=e.overlayInnerStyle,O=(e.arrowContent,e.overlay),F=e.id,z=e.showArrow,j=void 0===z||z,$=e.classNames,H=e.styles,Z=(0,c.Z)(e,m),K=(0,g.Z)(F),G=(0,i.useRef)(null);(0,i.useImperativeHandle)(t,(function(){return G.current}));var U=(0,l.Z)({},Z);"visible"in e&&(U.popupVisible=e.visible);var V,W,q;return i.createElement(u.Z,(0,s.Z)({popupClassName:o()(n,null==$?void 0:$.root),prefixCls:x,popup:function(){return i.createElement(a,{key:"content",prefixCls:x,id:K,bodyClassName:null==$?void 0:$.body,overlayInnerStyle:(0,l.Z)((0,l.Z)({},R),null==H?void 0:H.body)},O)},action:h,builtinPlacements:f,popupPlacement:L,ref:G,popupAlign:T,getPopupContainer:B,onPopupVisibleChange:k,afterPopupVisibleChange:_,popupTransitionName:C,popupAnimation:P,popupMotion:E,defaultPopupVisible:I,autoDestroy:N,mouseLeaveDelay:y,popupStyle:(0,l.Z)((0,l.Z)({},b),null==H?void 0:H.root),mouseEnterDelay:p,arrow:j},U),(V=i.Children.only(S),W=(null==V?void 0:V.props)||{},q=(0,l.Z)((0,l.Z)({},W),{},{"aria-describedby":O?K:null}),i.cloneElement(S,q)))},y=(0,i.forwardRef)(v),b=n(18929),w=n(62487),x=n(75030),S=n(86641),k=n(52838),_=n(22703),C=n(32383),P=n(55743),E=n(57700),M=n(48755),L=n(66604),A=n(63356),T=n(34925),D=n(37645),N=n(36305),I=n(34998);function B(e,t){return I.i.reduce(((n,i)=>{const r=e[`${i}1`],o=e[`${i}3`],a=e[`${i}6`],s=e[`${i}7`];return Object.assign(Object.assign({},n),t(i,{lightColor:r,lightBorderColor:o,darkColor:a,textColor:s}))}),{})}var R=n(51636),O=n(16931);const F=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:i,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:h,arrowOffsetHorizontal:d,sizePopupArrow:p}=e,f=t(a).add(p).add(d).equal(),g=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,A.Wf)(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:i,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${(0,L.bf)(e.calc(u).div(2).equal())} ${(0,L.bf)(h)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:f},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,D.qN)}},[`${n}-content`]:{position:"relative"}}),B(e,((e,t)=>{let{darkColor:i}=t;return{[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:i},[`${n}-arrow`]:{"--antd-arrow-background-color":i}}}}))),{"&-rtl":{direction:"rtl"}})},(0,D.ZP)(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},z=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,D.wZ)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,N.w)((0,R.IX)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var j=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=(0,O.I$)("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:i}=e,r=(0,R.IX)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:i});return[F(r),(0,T._y)(e,"zoom-big-fast")]}),z,{resetStyle:!1,injectStyle:t});return n(e)},$=n(95190);const H=I.i.map((e=>`${e}-inverse`));function Z(e,t){const n=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?[].concat((0,$.Z)(H),(0,$.Z)(I.i)).includes(e):I.i.includes(e)}(t),i=o()({[`${e}-${t}`]:t&&n}),r={},a={};return t&&!n&&(r.background=t,a["--antd-arrow-background-color"]=t),{className:i,overlayStyle:r,arrowStyle:a}}var K=e=>{const{prefixCls:t,className:n,placement:r="top",title:s,color:l,overlayInnerStyle:c}=e,{getPrefixCls:u}=i.useContext(M.E_),h=u("tooltip",t),[d,p,f]=j(h),g=Z(h,l),m=g.arrowStyle,v=Object.assign(Object.assign({},c),g.overlayStyle),y=o()(p,f,h,`${h}-pure`,`${h}-placement-${r}`,n,g.className);return d(i.createElement("div",{className:y,style:m},i.createElement("div",{className:`${h}-arrow`}),i.createElement(a,Object.assign({},e,{className:p,prefixCls:h,overlayInnerStyle:v}),s)))},G=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var n,r;const{prefixCls:a,openClassName:s,getTooltipContainer:l,color:c,overlayInnerStyle:u,children:h,afterOpenChange:d,afterVisibleChange:p,destroyTooltipOnHide:f,arrow:g=!0,title:m,overlay:v,builtinPlacements:L,arrowPointAtCenter:A=!1,autoAdjustOverflow:T=!0,motion:D,getPopupContainer:N,placement:I="top",mouseEnterDelay:B=.1,mouseLeaveDelay:R=.1,overlayStyle:O,rootClassName:F,overlayClassName:z,styles:$,classNames:H}=e,K=G(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),U=!!g,[,V]=(0,E.ZP)(),{getPopupContainer:W,getPrefixCls:q,direction:Y,className:X,style:Q,classNames:J,styles:ee}=(0,M.dj)("tooltip"),te=(0,C.ln)("Tooltip"),ne=i.useRef(null),ie=()=>{var e;null===(e=ne.current)||void 0===e||e.forceAlign()};i.useImperativeHandle(t,(()=>{var e,t;return{forceAlign:ie,forcePopupAlign:()=>{te.deprecated(!1,"forcePopupAlign","forceAlign"),ie()},nativeElement:null===(e=ne.current)||void 0===e?void 0:e.nativeElement,popupElement:null===(t=ne.current)||void 0===t?void 0:t.popupElement}}));const[re,oe]=(0,b.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),ae=!m&&!v&&0!==m,se=i.useMemo((()=>{var e,t;let n=A;return"object"==typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:A),L||(0,k.Z)({arrowPointAtCenter:n,autoAdjustOverflow:T,arrowWidth:U?V.sizePopupArrow:0,borderRadius:V.borderRadius,offset:V.marginXXS,visibleFirst:!0})}),[A,g,L,V]),le=i.useMemo((()=>0===m?m:v||m||""),[v,m]),ce=i.createElement(w.Z,{space:!0},"function"==typeof le?le():le),ue=q("tooltip",a),he=q(),de=e["data-popover-inject"];let pe=re;"open"in e||"visible"in e||!ae||(pe=!1);const fe=i.isValidElement(h)&&!(0,_.M2)(h)?h:i.createElement("span",null,h),ge=fe.props,me=ge.className&&"string"!=typeof ge.className?ge.className:o()(ge.className,s||`${ue}-open`),[ve,ye,be]=j(ue,!de),we=Z(ue,c),xe=we.arrowStyle,Se=o()(z,{[`${ue}-rtl`]:"rtl"===Y},we.className,F,ye,be,X,J.root,null==H?void 0:H.root),ke=o()(J.body,null==H?void 0:H.body),[_e,Ce]=(0,x.Cn)("Tooltip",K.zIndex),Pe=i.createElement(y,Object.assign({},K,{zIndex:_e,showArrow:U,placement:I,mouseEnterDelay:B,mouseLeaveDelay:R,prefixCls:ue,classNames:{root:Se,body:ke},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xe),ee.root),Q),O),null==$?void 0:$.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},ee.body),u),null==$?void 0:$.body),we.overlayStyle)},getTooltipContainer:N||l||W,ref:ne,builtinPlacements:se,overlay:ce,visible:pe,onVisibleChange:t=>{var n,i;oe(!ae&&t),ae||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(i=e.onVisibleChange)||void 0===i||i.call(e,t))},afterVisibleChange:null!=d?d:p,arrowContent:i.createElement("span",{className:`${ue}-arrow-content`}),motion:{motionName:(0,S.m)(he,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!f}),pe?(0,_.Tm)(fe,{className:me}):fe);return ve(i.createElement(P.Z.Provider,{value:Ce},Pe))}));U._InternalPanelDoNotUseOrYouWillBeFired=K;var V=U},64018:function(){window.PR_SHOULD_USE_CONTINUATION=!0,function(){var e=window,t=["break,continue,do,else,for,if,return,while"],n=[[t,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],i=[n,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],r=[n,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],o=[n,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],a=[n,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",l=[t,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],c=[t,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],u=[t,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],h=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,d="str",p="com",f="typ",g="lit",m="pun",v="pln",y="atv";function b(e,t,n,i,r){if(n){var o={sourceNode:e,pre:1,langExtension:null,numberLines:null,sourceCode:n,spans:null,basePos:t,decorations:null};i(o),r.push.apply(r,o.decorations)}}var w=/\S/;function x(e){for(var t=void 0,n=e.firstChild;n;n=n.nextSibling){var i=n.nodeType;t=1===i?t?e:n:3===i&&w.test(n.nodeValue)?e:t}return t===e?void 0:t}function S(e,t){var n,i={};!function(){for(var r=e.concat(t),o=[],a={},s=0,l=r.length;s=0;)i[u.charAt(h)]=c;var d=c[1],p=""+d;a.hasOwnProperty(p)||(o.push(d),a[p]=null)}o.push(/[\0-\uffff]/),n=function(e){for(var t=0,n=!1,i=!1,r=0,o=e.length;r122||(u<65||h>90||n.push([32|Math.max(65,h),32|Math.min(u,90)]),u<97||h>122||n.push([-33&Math.max(97,h),-33&Math.min(u,122)]))}}n.sort((function(e,t){return e[0]-t[0]||t[1]-e[1]}));var d=[],p=[];for(o=0;of[0]&&(f[1]+1>f[0]&&r.push("-"),r.push(l(f[1])))}return r.push("]"),r.join("")}function u(e){for(var i=e.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),r=i.length,o=[],a=0,s=0;a=2&&"["===d?i[a]=c(h):"\\"!==d&&(i[a]=h.replace(/[a-zA-Z]/g,(function(e){var t=e.charCodeAt(0);return"["+String.fromCharCode(-33&t,32|t)+"]"})))}return i.join("")}var h=[];for(r=0,o=e.length;r=5&&"lang-"===y.substring(0,5))||w&&"string"==typeof w[1]||(g=!1,y="src"),g||(d[m]=y)}var k=u;if(u+=m.length,g){var _=w[1],C=m.indexOf(_),P=C+_.length;w[2]&&(C=(P=m.length-w[2].length)-_.length);var E=y.substring(5);b(l,s+k,m.substring(0,C),o,c),b(l,s+k+C,_,M(E,_),c),b(l,s+k+P,m.substring(P),o,c)}else c.push(s+k,y)}e.decorations=c};return o}function k(e){var t=[],n=[];e.tripleQuotedStrings?t.push([d,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]):e.multiLineStrings?t.push([d,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):t.push([d,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),e.verbatimStrings&&n.push([d,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var i=e.hashComments;i&&(e.cStyleComments?(i>1?t.push([p,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):t.push([p,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),n.push([d,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):t.push([p,/^#[^\r\n]*/,null,"#"])),e.cStyleComments&&(n.push([p,/^\/\/[^\r\n]*/,null]),n.push([p,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var r=e.regexLiterals;if(r){var o=r>1?"":"\n\r",a=o?".":"[\\S\\s]",s="/(?=[^/*"+o+"])(?:[^/\\x5B\\x5C"+o+"]|\\x5C"+a+"|\\x5B(?:[^\\x5C\\x5D"+o+"]|\\x5C"+a+")*(?:\\x5D|$))+/";n.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+s+")")])}var l=e.types;l&&n.push([f,l]);var c=(""+e.keywords).replace(/^ | $/g,"");c.length&&n.push(["kwd",new RegExp("^(?:"+c.replace(/[\s,]+/g,"|")+")\\b"),null]),t.push([v,/^\s+/,null," \r\n\t "]);var u="^.[^\\s\\w.$@'\"`/\\\\]*";return e.regexLiterals&&(u+="(?!s*/)"),n.push([g,/^@[a-z_$][a-z_$@0-9]*/i,null],[f,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[v,/^[a-z_$][a-z_$@0-9]*/i,null],[g,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[v,/^\\[\s\S]?/,null],[m,new RegExp(u),null]),S(t,n)}var _=k({keywords:[i,o,r,a,s,l,c,u],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function C(e,t,n){for(var i=/(?:^|\s)nocode(?:\s|$)/,r=/\r\n?|\n/,o=e.ownerDocument,a=o.createElement("li");e.firstChild;)a.appendChild(e.firstChild);var s=[a];function l(e){var t=e.nodeType;if(1!=t||i.test(e.className)){if((3==t||4==t)&&n){var a=e.nodeValue,s=a.match(r);if(s){var u=a.substring(0,s.index);e.nodeValue=u;var h=a.substring(s.index+s[0].length);if(h)e.parentNode.insertBefore(o.createTextNode(h),e.nextSibling);c(e),u||e.parentNode.removeChild(e)}}}else if("br"===e.nodeName)c(e),e.parentNode&&e.parentNode.removeChild(e);else for(var d=e.firstChild;d;d=d.nextSibling)l(d)}function c(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;for(var t,n=function e(t,n){var i=n?t.cloneNode(!1):t,r=t.parentNode;if(r){var o=e(r,1),a=t.nextSibling;o.appendChild(i);for(var s=a;s;s=a)a=s.nextSibling,o.appendChild(s)}return i}(e.nextSibling,0);(t=n.parentNode)&&1===t.nodeType;)n=t;s.push(n)}for(var u=0;u=0;){var r=n[i];P.hasOwnProperty(r)?e.console&&console.warn("cannot override language handler %s",r):P[r]=t}}function M(e,t){return e&&P.hasOwnProperty(e)||(e=/^\s*=w&&(u+=2),s>=x&&(p+=2)}}finally{v&&(v.style.display=y)}}(t)}catch(t){e.console&&console.log(t&&t.stack||t)}}function A(e,t,n){var i=n||!1,r=t||null,o=document.createElement("div");return o.innerHTML="
    "+e+"
    ",o=o.firstChild,i&&C(o,i,!0),L({langExtension:r,numberLines:i,sourceNode:o,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null}),o.innerHTML}function T(t,n){var i=n||document.body,r=i.ownerDocument||document;function o(e){return i.getElementsByTagName(e)}for(var a=[o("pre"),o("code"),o("xmp")],s=[],l=0;l]*(?:>|$)/],[p,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[m,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),E(S([[v,/^[\s]+/,null," \t\r\n"],[y,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[m,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),E(S([],[[y,/^[\s\S]+/]]),["uq.val"]),E(k({keywords:i,hashComments:!0,cStyleComments:!0,types:h}),["c","cc","cpp","cxx","cyc","m"]),E(k({keywords:"null,true,false"}),["json"]),E(k({keywords:o,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:h}),["cs"]),E(k({keywords:r,cStyleComments:!0}),["java"]),E(k({keywords:u,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),E(k({keywords:l,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),E(k({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),E(k({keywords:c,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),E(k({keywords:a,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),E(k({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),E(S([],[[d,/^[\s\S]+/]]),["regex"]);var D=e.PR={createSimpleLexer:S,registerLangHandler:E,sourceDecorator:k,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:y,PR_COMMENT:p,PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:g,PR_NOCODE:"nocode",PR_PLAIN:v,PR_PUNCTUATION:m,PR_SOURCE:"src",PR_STRING:d,PR_TAG:"tag",PR_TYPE:f,prettyPrintOne:A,prettyPrint:T},N=e.define;"function"==typeof N&&N.amd&&N("google-code-prettify",[],(function(){return D}))}()},99498:function(e,t,n){!function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=e.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var i=e.getOption("placeholder");"string"==typeof i&&(i=document.createTextNode(i)),n.appendChild(i),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function i(e){setTimeout((function(){var i=!1,r=e.getInputField();"TEXTAREA"==r.nodeName?i=!r.value:1==e.lineCount()&&(i=!/[^\u200b]/.test(r.querySelector(".CodeMirror-line").textContent)),i?n(e):t(e)}),20)}function r(e){a(e)&&n(e)}function o(e){var i=e.getWrapperElement(),r=a(e);i.className=i.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?n(e):t(e)}function a(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(n,a,s){var l=s&&s!=e.Init;if(a&&!l)n.on("blur",r),n.on("change",o),n.on("swapDoc",o),e.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){i(n)}),o(n);else if(!a&&l){n.off("blur",r),n.off("change",o),n.off("swapDoc",o),e.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),t(n);var c=n.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}a&&!n.hasFocus()&&r(n)}))}(n(89780))},25717:function(e,t,n){!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function i(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(r),t.state.closeBrackets=null),n&&(o(i(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(r))}));var r={Backspace:l,Enter:c};function o(e){for(var t=0;t=0;l--){var u=a[l].head;t.replaceRange("",n(u.line,u.ch-1),n(u.line,u.ch+1),"+delete")}}function c(t){var n=s(t),r=n&&i(n,"explode");if(!r||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a0;return{anchor:new n(t.anchor.line,t.anchor.ch+(i?-1:1)),head:new n(t.head.line,t.head.ch+(i?1:-1))}}function h(t,r){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=i(o,"pairs"),l=a.indexOf(r);if(-1==l)return e.Pass;for(var c,h=i(o,"closeBefore"),d=i(o,"triples"),f=a.charAt(l+1)==r,g=t.listSelections(),m=l%2==0,v=0;v1&&d.indexOf(r)>=0&&t.getRange(n(w.line,w.ch-2),w)==r+r){if(w.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(w.line,w.ch-2))))return e.Pass;y="addFour"}else if(f){var S=0==w.ch?" ":t.getRange(n(w.line,w.ch-1),w);if(e.isWordChar(x)||S==r||e.isWordChar(S))return e.Pass;y="both"}else{if(!m||!(0===x.length||/\s/.test(x)||h.indexOf(x)>-1))return e.Pass;y="both"}else y=f&&p(t,w)?"both":d.indexOf(r)>=0&&t.getRange(w,n(w.line,w.ch+3))==r+r+r?"skipThree":"skip";if(c){if(c!=y)return e.Pass}else c=y}var k=l%2?a.charAt(l-1):r,_=l%2?r:a.charAt(l+1);t.operation((function(){if("skip"==c)t.execCommand("goCharRight");else if("skipThree"==c)for(var e=0;e<3;e++)t.execCommand("goCharRight");else if("surround"==c){var n=t.getSelections();for(e=0;e'"]=function(e){return i(e)}),t.addKeyMap(a)}}));var t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function i(i){if(i.getOption("disableInput"))return e.Pass;for(var r=i.listSelections(),o=[],l=i.getOption("autoCloseTags"),c=0;cu.ch&&(g=g.slice(0,g.length-h.end+u.ch));var b=g.toLowerCase();if(!g||"string"==h.type&&(h.end!=u.ch||!/[\"\']/.test(h.string.charAt(h.string.length-1))||1==h.string.length)||"tag"==h.type&&f.close||h.string.indexOf("/")==u.ch-h.start-1||v&&a(v,b)>-1||s(i,d.mode.xmlCurrentContext&&d.mode.xmlCurrentContext(p)||[],g,u,!0))return e.Pass;var w="object"==typeof l&&l.emptyTags;if(w&&a(w,g)>-1)o[c]={text:"/>",newPos:e.Pos(u.line,u.ch+2)};else{var x=y&&a(y,b)>-1;o[c]={indent:x,text:">"+(x?"\n\n":"")+"",newPos:x?e.Pos(u.line+1,0):e.Pos(u.line,u.ch+1)}}}var S="object"==typeof l&&l.dontIndentOnAutoClose;for(c=r.length-1;c>=0;c--){var k=o[c];i.replaceRange(k.text,r[c].head,r[c].anchor,"+insert");var _=i.listSelections().slice(0);_[c]={head:k.newPos,anchor:k.newPos},i.setSelections(_),!S&&k.indent&&(i.indentLine(k.newPos.line,null,!0),i.indentLine(k.newPos.line+1,null,!0))}}function r(t,n){for(var i=t.listSelections(),r=[],o=n?"/":""!=t.getLine(u.line).charAt(h.end)&&(f+=">"),r[c]=f}if(t.replaceSelections(r),i=t.listSelections(),!l)for(c=0;c=0&&n[c]==i;c--)++l;for(r=s.to,c=1;c=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function l(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function c(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(s(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),i=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,i?"selfClose":"regular"}e.ch=t+1}}function u(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(l(e))continue;return}if(a(e,t+1)){r.lastIndex=t,e.ch=t;var n=r.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function h(e){for(;;){r.lastIndex=e.ch;var t=r.exec(e.text);if(!t){if(s(e))continue;return}if(a(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function d(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(l(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),i=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,i?"selfClose":"regular"}e.ch=t}}function p(e,n){for(var i=[];;){var r,o=h(e),a=e.line,s=e.ch-(o?o[0].length:0);if(!o||!(r=c(e)))return;if("selfClose"!=r)if(o[1]){for(var l=i.length-1;l>=0;--l)if(i[l]==o[2]){i.length=l;break}if(l<0&&(!n||n==o[2]))return{tag:o[2],from:t(a,s),to:t(e.line,e.ch)}}else i.push(o[2])}}function f(e,n){for(var i=[];;){var r=d(e);if(!r)return;if("selfClose"!=r){var o=e.line,a=e.ch,s=u(e);if(!s)return;if(s[1])i.push(s[2]);else{for(var l=i.length-1;l>=0;--l)if(i[l]==s[2]){i.length=l;break}if(l<0&&(!n||n==s[2]))return{tag:s[2],from:t(e.line,e.ch),to:t(o,a)}}}else u(e)}}e.registerHelper("fold","xml",(function(e,i){for(var r=new o(e,i.line,0);;){var a=h(r);if(!a||r.line!=i.line)return;var s=c(r);if(!s)return;if(!a[1]&&"selfClose"!=s){var l=t(r.line,r.ch),u=p(r,a[2]);return u&&n(u.from,l)>0?{from:l,to:u.from}:null}}})),e.findMatchingTag=function(e,i,r){var a=new o(e,i.line,i.ch,r);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var s=c(a),l=s&&t(a.line,a.ch),h=s&&u(a);if(s&&h&&!(n(a,i)>0)){var d={from:t(a.line,a.ch),to:l,tag:h[2]};return"selfClose"==s?{open:d,close:null,at:"open"}:h[1]?{open:f(a,h[2]),close:d,at:"close"}:{open:d,close:p(a=new o(e,l.line,l.ch,r),h[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,n,i){for(var r=new o(e,t.line,t.ch,n);;){var a=f(r,i);if(!a)break;var s=p(new o(e,t.line,t.ch,n),a.tag);if(s)return{open:a,close:s}}},e.scanForClosingTag=function(e,t,n,i){return p(new o(e,t.line,t.ch,i?{from:0,to:i}:null),n)}}(n(89780))},89780:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),i=/MSIE \d/.test(e),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=i||r||o,s=a&&(i?document.documentMode||6:+(o||r)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\//.test(e),h=/Opera\//.test(e),d=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),f=/PhantomJS/.test(e),g=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),m=/Android/.test(e),v=g||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),w=/win/i.test(t),x=h&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(h=!1,l=!0);var S=y&&(c||h&&(null==x||x<12.11)),k=n||a&&s>=9;function _(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C,P=function(e,t){var n=e.className,i=_(t).exec(n);if(i){var r=n.slice(i.index+i[0].length);e.className=n.slice(0,i.index)+(r?i[1]+r:"")}};function E(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function M(e,t){return E(e).appendChild(t)}function L(e,t,n,i){var r=document.createElement(e);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof t)r.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?B=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(B=function(e){try{e.select()}catch(e){}});var z=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function j(e,t){for(var n=0;n=t)return i+Math.min(a,t-r);if(r+=o-i,i=o+1,(r+=n-r%n)>=t)return i}}var V=[""];function W(e){for(;V.length<=e;)V.push(q(V)+" ");return V[e]}function q(e){return e[e.length-1]}function Y(e,t){for(var n=[],i=0;i"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function ie(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var re=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&re.test(e)}function ae(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var r=(t+n)/2,o=i<0?Math.ceil(r):Math.floor(r);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+i}}function le(e,t,n,i){if(!e)return i(t,n,"ltr",0);for(var r=!1,o=0;ot||t==n&&a.to==t)&&(i(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),r=!0)}r||i(t,n,"ltr")}var ce=null;function ue(e,t,n){var i;ce=null;for(var r=0;rt)return r;o.to==t&&(o.from!=o.to&&"before"==n?i=r:ce=r),o.from==t&&(o.from!=o.to&&"before"!=n?i=r:ce=r)}return null!=i?i:ce}var he=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!i.test(e))return!1;for(var u=e.length,h=[],d=0;d-1&&(i[t]=r.slice(0,o).concat(r.slice(o+1)))}}}function ve(e,t){var n=ge(e,t);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r0}function xe(e){e.prototype.on=function(e,t){fe(this,e,t)},e.prototype.off=function(e,t){me(this,e,t)}}function Se(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ke(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function _e(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ce(e){Se(e),ke(e)}function Pe(e){return e.target||e.srcElement}function Ee(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Me,Le,Ae=function(){if(a&&s<9)return!1;var e=L("div");return"draggable"in e||"dragDrop"in e}();function Te(e){if(null==Me){var t=L("span","​");M(e,L("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Me=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Me?L("span","​"):L("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function De(e){if(null!=Le)return Le;var t=M(e,document.createTextNode("AخA")),n=C(t,0,1).getBoundingClientRect(),i=C(t,1,2).getBoundingClientRect();return E(e),!(!n||n.left==n.right)&&(Le=i.right-n.right<3)}var Ne,Ie=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],i=e.length;t<=i;){var r=e.indexOf("\n",t);-1==r&&(r=e.length);var o=e.slice(t,"\r"==e.charAt(r-1)?r-1:r),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=r+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Be=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Re="oncopy"in(Ne=L("div"))||(Ne.setAttribute("oncopy","return;"),"function"==typeof Ne.oncopy),Oe=null;function Fe(e){if(null!=Oe)return Oe;var t=M(e,L("span","x")),n=t.getBoundingClientRect(),i=C(t,0,1).getBoundingClientRect();return Oe=Math.abs(n.left-i.left)>1}var ze={},je={};function $e(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),ze[e]=t}function He(e,t){je[e]=t}function Ze(e){if("string"==typeof e&&je.hasOwnProperty(e))e=je[e];else if(e&&"string"==typeof e.name&&je.hasOwnProperty(e.name)){var t=je[e.name];"string"==typeof t&&(t={name:t}),(e=J(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ze("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ze("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ke(e,t){t=Ze(t);var n=ze[t.name];if(!n)return Ke(e,"text/plain");var i=n(e,t);if(Ge.hasOwnProperty(t.name)){var r=Ge[t.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)i[a]=t.modeProps[a];return i}var Ge={};function Ue(e,t){O(t,Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={})}function Ve(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var i in t){var r=t[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function We(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function qe(e,t,n){return!e.startState||e.startState(t,n)}var Ye=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Xe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(t=e.first&&tn?ot(n,Xe(e,n).text.length):pt(t,Xe(e,t.line).text.length)}function pt(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}function ft(e,t){for(var n=[],i=0;i=this.string.length},Ye.prototype.sol=function(){return this.pos==this.lineStart},Ye.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ye.prototype.next=function(){if(this.post},Ye.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ye.prototype.skipToEnd=function(){this.pos=this.string.length},Ye.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ye.prototype.backUp=function(e){this.pos-=e},Ye.prototype.column=function(){return this.lastColumnPos0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return!1!==t&&(this.pos+=e.length),!0},Ye.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ye.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ye.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ye.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var gt=function(e,t){this.state=e,this.lookAhead=t},mt=function(e,t,n,i){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function vt(e,t,n,i){var r=[e.state.modeGen],o={};Pt(e,t.text,e.doc.mode,n,(function(e,t){return r.push(e,t)}),o,i);for(var a=n.state,s=function(i){n.baseTokens=r;var s=e.state.overlays[i],l=1,c=0;n.state=!0,Pt(e,t.text,s.mode,n,(function(e,t){for(var n=l;ce&&r.splice(l,1,e,r[l+1],i),l+=2,c=Math.min(e,i)}if(t)if(s.opaque)r.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Ve(e.doc.mode,i.state),o=vt(e,t,i);r&&(i.state=r),t.stateAfter=i.save(!r),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function bt(e,t,n){var i=e.doc,r=e.display;if(!i.mode.startState)return new mt(i,!0,t);var o=Et(e,t,n),a=o>i.first&&Xe(i,o-1).stateAfter,s=a?mt.fromSaved(i,a,o):new mt(i,qe(i.mode),o);return i.iter(o,t,(function(n){wt(e,n.text,s);var i=s.line;n.stateAfter=i==t-1||i%5==0||i>=r.viewFrom&&it.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},mt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},mt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mt.fromSaved=function(e,t,n){return t instanceof gt?new mt(e,Ve(e.mode,t.state),n,t.lookAhead):new mt(e,Ve(e.mode,t),n)},mt.prototype.save=function(e){var t=!1!==e?Ve(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gt(t,this.maxLookAhead):t};var kt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function _t(e,t,n,i){var r,o,a=e.doc,s=a.mode,l=Xe(a,(t=dt(a,t)).line),c=bt(e,t.line,n),u=new Ye(l.text,e.options.tabSize,c);for(i&&(o=[]);(i||u.pose.options.maxHighlightLength?(s=!1,a&&wt(e,t,i,h.pos),h.pos=t.length,l=null):l=Ct(St(n,h,i.state,d),o),d){var p=d[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||u!=l){for(;ca;--s){if(s<=o.first)return o.first;var l=Xe(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof gt?c.lookAhead:0)<=o.modeFrontier))return s;var u=F(l.text,null,e.options.tabSize);(null==r||i>u)&&(r=s-1,i=u)}return r}function Mt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;i--){var r=Xe(e,i).stateAfter;if(r&&(!(r instanceof gt)||i+r.lookAhead=t:o.to>t);(i||(i=[])).push(new Nt(a,o.from,s?null:o.to))}}return i}function Ft(e,t,n){var i;if(e)for(var r=0;r=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;b0)){var u=[l,1],h=at(c.from,s.from),d=at(c.to,s.to);(h<0||!a.inclusiveLeft&&!h)&&u.push({from:c.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&u.push({from:s.to,to:c.to}),r.splice.apply(r,u),l+=u.length-3}}return r}function Ht(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Ut(n,o.marker)<0)&&(n=o.marker)}return n}function Xt(e,t,n,i,r){var o=Xe(e,t),a=At&&o.markedSpans;if(a)for(var s=0;s=0&&h<=0||u<=0&&h>=0)&&(u<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?at(c.to,n)>=0:at(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?at(c.from,i)<=0:at(c.from,i)<0)))return!0}}}function Qt(e){for(var t;t=Wt(e);)e=t.find(-1,!0).line;return e}function Jt(e){for(var t;t=qt(e);)e=t.find(1,!0).line;return e}function en(e){for(var t,n;t=qt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function tn(e,t){var n=Xe(e,t),i=Qt(n);return n==i?t:tt(i)}function nn(e,t){if(t>e.lastLine())return t;var n,i=Xe(e,t);if(!rn(e,i))return t;for(;n=qt(i);)i=n.find(1,!0).line;return tt(i)+1}function rn(e,t){var n=At&&t.markedSpans;if(n)for(var i=void 0,r=0;rt.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var cn=function(e,t,n){this.text=e,Zt(this,t),this.height=n?n(this):1};function un(e,t,n,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ht(e),Zt(e,n);var r=i?i(e):1;r!=e.height&&et(e,r)}function hn(e){e.parent=null,Ht(e)}cn.prototype.lineNo=function(){return tt(this)},xe(cn);var dn={},pn={};function fn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?pn:dn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function gn(e,t){var n=A("span",null,null,l?"padding-right: .1px":null),i={pre:A("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var r=0;r<=(t.rest?t.rest.length:0);r++){var o=r?t.rest[r-1]:t.line,a=void 0;i.pos=0,i.addToken=vn,De(e.display.measure)&&(a=de(o,e.doc.direction))&&(i.addToken=bn(i.addToken,a)),i.map=[],xn(o,i,yt(e,o,t!=e.display.externalMeasured&&tt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(i.bgClass=I(o.styleClasses.bgClass,i.bgClass||"")),o.styleClasses.textClass&&(i.textClass=I(o.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(Te(e.display.measure))),0==r?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=i.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=I(i.pre.className,i.textClass||"")),i}function mn(e){var t=L("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function vn(e,t,n,i,r,o,l){if(t){var c,u=e.splitSpaces?yn(t,e.trailingSpace):t,h=e.cm.state.specialChars,d=!1;if(h.test(t)){c=document.createDocumentFragment();for(var p=0;;){h.lastIndex=p;var f=h.exec(t),g=f?f.index-p:t.length-p;if(g){var m=document.createTextNode(u.slice(p,p+g));a&&s<9?c.appendChild(L("span",[m])):c.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g}if(!f)break;p+=g+1;var v=void 0;if("\t"==f[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=c.appendChild(L("span",W(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==f[0]||"\n"==f[0]?((v=c.appendChild(L("span","\r"==f[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",f[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),a&&s<9?c.appendChild(L("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||i||r||d||o||l){var w=n||"";i&&(w+=i),r&&(w+=r);var x=L("span",[c],w,o);if(l)for(var S in l)l.hasOwnProperty(S)&&"style"!=S&&"class"!=S&&x.setAttribute(S,l[S]);return e.content.appendChild(x)}e.content.appendChild(c)}}function yn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,i="",r=0;rc&&h.from<=c);d++);if(h.to>=u)return e(n,i,r,o,a,s,l);e(n,i.slice(0,h.to-c),r,o,null,s,l),o=null,i=i.slice(h.to-c),c=h.to}}}function wn(e,t,n,i){var r=!i&&n.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!i&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function xn(e,t,n){var i=e.markedSpans,r=e.text,o=0;if(i)for(var a,s,l,c,u,h,d,p=r.length,f=0,g=1,m="",v=0;;){if(v==f){l=c=u=s="",d=null,h=null,v=1/0;for(var y=[],b=void 0,w=0;wf||S.collapsed&&x.to==f&&x.from==f)){if(null!=x.to&&x.to!=f&&v>x.to&&(v=x.to,c=""),S.className&&(l+=" "+S.className),S.css&&(s=(s?s+";":"")+S.css),S.startStyle&&x.from==f&&(u+=" "+S.startStyle),S.endStyle&&x.to==v&&(b||(b=[])).push(S.endStyle,x.to),S.title&&((d||(d={})).title=S.title),S.attributes)for(var k in S.attributes)(d||(d={}))[k]=S.attributes[k];S.collapsed&&(!h||Ut(h.marker,S)<0)&&(h=x)}else x.from>f&&v>x.from&&(v=x.from)}if(b)for(var _=0;_=p)break;for(var P=Math.min(p,v);;){if(m){var E=f+m.length;if(!h){var M=E>P?m.slice(0,P-f):m;t.addToken(t,M,a?a+l:l,u,f+M.length==v?c:"",s,d)}if(E>=P){m=m.slice(P-f),f=P;break}f=E,u=""}m=r.slice(o,o=n[g++]),a=fn(n[g++],t.cm.options)}}else for(var L=1;L2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Qn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var i=0;in)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function Jn(e,t){var n=tt(t=Qt(t)),i=e.display.externalMeasured=new Sn(e.doc,t,n);i.lineN=n;var r=i.built=gn(e,i);return i.text=r.pre,M(e.display.lineMeasure,r.pre),i}function ei(e,t,n,i){return ii(e,ni(e,t),n,i)}function ti(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(r=(o=l-s)-1,t>=l&&(a="right")),null!=r){if(i=e[c+2],s==l&&n==(i.insertLeft?"left":"right")&&(a=n),"left"==n&&0==r)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)i=e[2+(c-=3)],a="left";if("right"==n&&r==l-s)for(;c=0&&(n=e[r]).left==n.right;r--);return n}function li(e,t,n,i){var r,o=ai(t.map,n,i),l=o.node,c=o.start,u=o.end,h=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;c&&oe(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u0&&(h=i="right"),r=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==i?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!r||!r.left&&!r.right)){var f=l.parentNode.getClientRects()[0];r=f?{left:f.left,right:f.left+Ai(e.display),top:f.top,bottom:f.bottom}:oi}for(var g=r.top-t.rect.top,m=r.bottom-t.rect.top,v=(g+m)/2,y=t.view.measure.heights,b=0;b=i.text.length?(l=i.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var h=ue(s,l,c),d=ce,p=u(l,h,"before"==c);return null!=d&&(p.other=u(l,d,"before"!=c)),p}function wi(e,t){var n=0;t=dt(e.doc,t),e.options.lineWrapping||(n=Ai(e.display)*t.ch);var i=Xe(e.doc,t.line),r=an(i)+Gn(e.display);return{left:n,right:n,top:r,bottom:r+i.height}}function xi(e,t,n,i,r){var o=ot(e,t,n);return o.xRel=r,i&&(o.outside=i),o}function Si(e,t,n){var i=e.doc;if((n+=e.display.viewOffset)<0)return xi(i.first,0,null,-1,-1);var r=nt(i,n),o=i.first+i.size-1;if(r>o)return xi(i.first+i.size-1,Xe(i,o).text.length,null,1,1);t<0&&(t=0);for(var a=Xe(i,r);;){var s=Pi(e,a,r,t,n),l=Yt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==r)return c;a=Xe(i,r=c.line)}}function ki(e,t,n,i){i-=gi(t);var r=t.text.length,o=se((function(t){return ii(e,n,t-1).bottom<=i}),r,0);return{begin:o,end:r=se((function(t){return ii(e,n,t).top>i}),o,r)}}function _i(e,t,n,i){return n||(n=ni(e,t)),ki(e,t,n,mi(e,t,ii(e,n,i),"line").top)}function Ci(e,t,n,i){return!(e.bottom<=n)&&(e.top>n||(i?e.left:e.right)>t)}function Pi(e,t,n,i,r){r-=an(t);var o=ni(e,t),a=gi(t),s=0,l=t.text.length,c=!0,u=de(t,e.doc.direction);if(u){var h=(e.options.lineWrapping?Mi:Ei)(e,t,n,o,u,i,r);s=(c=1!=h.level)?h.from:h.to-1,l=c?h.to:h.from-1}var d,p,f=null,g=null,m=se((function(t){var n=ii(e,o,t);return n.top+=a,n.bottom+=a,!!Ci(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(f=t,g=n),!0)}),s,l),v=!1;if(g){var y=i-g.left=w.bottom?1:0}return xi(n,m=ae(t.text,m,1),p,v,i-d)}function Ei(e,t,n,i,r,o,a){var s=se((function(s){var l=r[s],c=1!=l.level;return Ci(bi(e,ot(n,c?l.to:l.from,c?"before":"after"),"line",t,i),o,a,!0)}),0,r.length-1),l=r[s];if(s>0){var c=1!=l.level,u=bi(e,ot(n,c?l.from:l.to,c?"after":"before"),"line",t,i);Ci(u,o,a,!0)&&u.top>a&&(l=r[s-1])}return l}function Mi(e,t,n,i,r,o,a){var s=ki(e,t,i,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,h=null,d=0;d=c||p.to<=l)){var f=ii(e,i,1!=p.level?Math.min(c,p.to)-1:Math.max(l,p.from)).right,g=fg)&&(u=p,h=g)}}return u||(u=r[r.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function Li(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ri){ri=L("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ri.appendChild(document.createTextNode("x")),ri.appendChild(L("br"));ri.appendChild(document.createTextNode("x"))}M(e.measure,ri);var n=ri.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),E(e.measure),n||1}function Ai(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=L("span","xxxxxxxxxx"),n=L("pre",[t],"CodeMirror-line-like");M(e.measure,n);var i=t.getBoundingClientRect(),r=(i.right-i.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function Ti(e){for(var t=e.display,n={},i={},r=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+r,i[s]=o.clientWidth}return{fixedPos:Di(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function Di(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ni(e){var t=Li(e.display),n=e.options.lineWrapping,i=n&&Math.max(5,e.display.scroller.clientWidth/Ai(e.display)-3);return function(r){if(rn(e.doc,r))return 0;var o=0;if(r.widgets)for(var a=0;a0&&(l=Xe(e.doc,c.line).text).length==c.ch){var u=F(l,l.length,e.options.tabSize)-l.length;c=ot(c.line,Math.max(0,Math.round((o-Vn(e.display).left)/Ai(e.display))-u))}return c}function Ri(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,i=0;it)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)At&&tn(e.doc,t)r.viewFrom?zi(e):(r.viewFrom+=i,r.viewTo+=i);else if(t<=r.viewFrom&&n>=r.viewTo)zi(e);else if(t<=r.viewFrom){var o=ji(e,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):zi(e)}else if(n>=r.viewTo){var a=ji(e,t,t,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):zi(e)}else{var s=ji(e,t,t,-1),l=ji(e,n,n+i,1);s&&l?(r.view=r.view.slice(0,s.index).concat(kn(e,s.lineN,l.lineN)).concat(r.view.slice(l.index)),r.viewTo+=i):zi(e)}var c=r.externalMeasured;c&&(n=r.lineN&&t=i.viewTo)){var o=i.view[Ri(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==j(a,n)&&a.push(n)}}}function zi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ji(e,t,n,i){var r,o=Ri(e,t),a=e.display.view;if(!At||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;r=s+a[o].size-t,o++}else r=s-t;t+=r,n+=r}for(;tn(e.doc,n)!=n;){if(o==(i<0?0:a.length-1))return null;n+=i*a[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function $i(e,t,n){var i=e.display;0==i.view.length||t>=i.viewTo||n<=i.viewFrom?(i.view=kn(e,t,n),i.viewFrom=t):(i.viewFrom>t?i.view=kn(e,t,i.viewFrom).concat(i.view):i.viewFromn&&(i.view=i.view.slice(0,Ri(e,n)))),i.viewTo=n}function Hi(e){for(var t=e.display.view,n=0,i=0;i=e.display.viewTo||s.to().line0?t.blinker=setInterval((function(){e.hasFocus()||Qi(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function qi(e){e.state.focused||(e.display.input.focus(),Xi(e))}function Yi(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Qi(e))}),100)}function Xi(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,N(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Wi(e))}function Qi(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,P(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Ji(e){for(var t=e.display,n=t.lineDiv.offsetTop,i=0;i.005||d<-.005)&&(et(r.line,l),er(r.line),r.rest))for(var p=0;pe.display.sizerWidth){var f=Math.ceil(c/Ai(e.display));f>e.display.maxLineLength&&(e.display.maxLineLength=f,e.display.maxLine=r.line,e.display.maxLineChanged=!0)}}}}function er(e){if(e.widgets)for(var t=0;t=a&&(o=nt(t,an(Xe(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function nr(e,t){if(!ye(e,"scrollCursorIntoView")){var n=e.display,i=n.sizer.getBoundingClientRect(),r=null;if(t.top+i.top<0?r=!0:t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),null!=r&&!f){var o=L("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Gn(e.display))+"px;\n height: "+(t.bottom-t.top+Wn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(r),e.display.lineSpace.removeChild(o)}}}function ir(e,t,n,i){var r;null==i&&(i=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?ot(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=bi(e,t),l=n&&n!=t?bi(e,n):s,c=or(e,r={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-i,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+i}),u=e.doc.scrollTop,h=e.doc.scrollLeft;if(null!=c.scrollTop&&(dr(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(fr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-h)>1&&(a=!0)),!a)break}return r}function rr(e,t){var n=or(e,t);null!=n.scrollTop&&dr(e,n.scrollTop),null!=n.scrollLeft&&fr(e,n.scrollLeft)}function or(e,t){var n=e.display,i=Li(e.display);t.top<0&&(t.top=0);var r=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Yn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Un(n),l=t.tops-i;if(t.topr+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=r&&(a.scrollTop=u)}var h=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-h,p=qn(e)-n.gutters.offsetWidth,f=t.right-t.left>p;return f&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+d-3&&(a.scrollLeft=t.right+(f?0:10)-p),a}function ar(e,t){null!=t&&(ur(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function sr(e){ur(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function lr(e,t,n){null==t&&null==n||ur(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function cr(e,t){ur(e),e.curOp.scrollToPos=t}function ur(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,hr(e,wi(e,t.from),wi(e,t.to),t.margin))}function hr(e,t,n,i){var r=or(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-i,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+i});lr(e,r.scrollLeft,r.scrollTop)}function dr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Zr(e,{top:t}),pr(e,t,!0),n&&Zr(e),Br(e,100))}function pr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function fr(e,t,n,i){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i||(e.doc.scrollLeft=t,Vr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function gr(e){var t=e.display,n=t.gutters.offsetWidth,i=Math.round(e.doc.height+Un(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+Wn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var mr=function(e,t,n){this.cm=n;var i=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=r.tabIndex=-1,e(i),e(r),fe(i,"scroll",(function(){i.clientHeight&&t(i.scrollTop,"vertical")})),fe(r,"scroll",(function(){r.clientWidth&&t(r.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};mr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0";var r=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:t?i:0}},mr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mr.prototype.zeroWidthHack=function(){var e=y&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new z,this.disableVert=new z},mr.prototype.enableZeroWidthBar=function(e,t,n){function i(){var r=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,i)}e.style.pointerEvents="auto",t.set(1e3,i)},mr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vr=function(){};function yr(e,t){t||(t=gr(e));var n=e.display.barWidth,i=e.display.barHeight;br(e,t);for(var r=0;r<4&&n!=e.display.barWidth||i!=e.display.barHeight;r++)n!=e.display.barWidth&&e.options.lineWrapping&&Ji(e),br(e,gr(e)),n=e.display.barWidth,i=e.display.barHeight}function br(e,t){var n=e.display,i=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}vr.prototype.update=function(){return{bottom:0,right:0}},vr.prototype.setScrollLeft=function(){},vr.prototype.setScrollTop=function(){},vr.prototype.clear=function(){};var wr={native:mr,null:vr};function xr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&P(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new wr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),fe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?fr(e,t):dr(e,t)}),e),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)}var Sr=0;function kr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Sr},Cn(e.curOp)}function _r(e){var t=e.curOp;t&&En(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Or(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Er(e){e.updatedDisplay=e.mustUpdate&&$r(e.cm,e.update)}function Mr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Ji(t),e.barMeasure=gr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ei(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Wn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-qn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Lr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,i=bt(e,t.highlightFrontier),r=[];t.iter(i.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(i.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ve(t.mode,i.state):null,l=vt(e,o,i,!0);s&&(i.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var h=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),d=0;!h&&dn)return Br(e,e.options.workDelay),!0})),t.highlightFrontier=i.line,t.modeFrontier=Math.max(t.modeFrontier,i.line),r.length&&Tr(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Hi(e))return!1;Wr(e)&&(zi(e),t.dims=Ti(e));var r=i.first+i.size,o=Math.max(t.visible.from-e.options.viewportMargin,i.first),a=Math.min(r,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(r,n.viewTo)),At&&(o=tn(e.doc,o),a=nn(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;$i(e,o,a),n.viewOffset=an(Xe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Hi(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=zr(e);return l>4&&(n.lineDiv.style.display="none"),Kr(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,jr(c),E(n.cursorDiv),E(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Br(e,400)),n.updateLineNumbers=null,!0}function Hr(e,t){for(var n=t.viewport,i=!0;;i=!1){if(i&&e.options.lineWrapping&&t.oldDisplayWidth!=qn(e))i&&(t.visible=tr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Un(e.display)-Yn(e),n.top)}),t.visible=tr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!$r(e,t))break;Ji(e);var r=gr(e);Zi(e),yr(e,r),Ur(e,r),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Zr(e,t){var n=new Or(e,t);if($r(e,n)){Ji(e),Hr(e,n);var i=gr(e);Zi(e),yr(e,i),Ur(e,i),n.finish()}}function Kr(e,t,n){var i=e.display,r=e.options.lineNumbers,o=i.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=i.view,u=i.viewFrom,h=0;h-1&&(p=!1),Tn(e,d,u,n)),p&&(E(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(rt(e.options,u)))),a=d.node.nextSibling}else{var f=zn(e,d,u,n);o.insertBefore(f,a)}u+=d.size}for(;a;)a=s(a)}function Gr(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Ur(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Wn(e)+"px"}function Vr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=Di(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,o=i+"px",a=0;as.clientWidth,u=s.scrollHeight>s.clientHeight;if(r&&c||o&&u){if(o&&y&&l)e:for(var d=t.target,p=a.view;d!=s;d=d.parentNode)for(var f=0;f=0&&at(e,i.to())<=0)return n}return-1};var oo=function(e,t){this.anchor=e,this.head=t};function ao(e,t,n){var i=e&&e.options.selectionsMayTouch,r=t[n];t.sort((function(e,t){return at(e.from(),t.from())})),n=j(t,r);for(var o=1;o0:l>=0){var c=ut(s.from(),a.from()),u=ct(s.to(),a.to()),h=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new oo(h?u:c,h?c:u))}}return new ro(t,n)}function so(e,t){return new ro([new oo(e,t||e)],0)}function lo(e){return e.text?ot(e.from.line+e.text.length-1,q(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function co(e,t){if(at(e,t.from)<0)return e;if(at(e,t.to)<=0)return lo(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=lo(t).ch-t.to.ch),ot(n,i)}function uo(e,t){for(var n=[],i=0;i1&&e.remove(s.line+1,f-1),e.insert(s.line+1,v)}Ln(e,"change",e,t)}function yo(e,t,n){function i(e,r,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),q(e.done)):void 0}function Po(e,t,n,i){var r=e.history;r.undone.length=0;var o,a,s=+new Date;if((r.lastOp==i||r.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&r.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Co(r,r.lastOp==i)))a=q(o.changes),0==at(t.from,t.to)&&0==at(t.from,a.to)?a.to=lo(t):o.changes.push(ko(e,t));else{var l=q(r.done);for(l&&l.ranges||Lo(e.sel,r.done),o={changes:[ko(e,t)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=s,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=t.origin,a||ve(e,"historyAdded")}function Eo(e,t,n,i){var r=t.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Mo(e,t,n,i){var r=e.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||Eo(e,o,q(r.done),t))?r.done[r.done.length-1]=t:Lo(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&!1!==i.clearRedo&&_o(r.undone)}function Lo(e,t){var n=q(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ao(e,t,n,i){var r=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,i),(function(n){n.markedSpans&&((r||(r=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function To(e){if(!e)return null;for(var t,n=0;n-1&&(q(s)[h]=c[h],delete c[h])}}}return i}function Bo(e,t,n,i){if(i){var r=e.anchor;if(n){var o=at(t,r)<0;o!=at(n,r)<0?(r=t,t=n):o!=at(t,n)<0&&(t=n)}return new oo(r,t)}return new oo(n||t,t)}function Ro(e,t,n,i,r){null==r&&(r=e.cm&&(e.cm.display.shift||e.extend)),Ho(e,new ro([Bo(e.sel.primary(),t,n,r)],0),i)}function Oo(e,t,n){for(var i=[],r=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(r&&(ve(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var h=l.find(i<0?1:-1),d=void 0;if((i<0?u:c)&&(h=qo(e,h,-i,h&&h.line==t.line?o:null)),h&&h.line==t.line&&(d=at(h,n))&&(i<0?d<0:d>0))return Vo(e,h,t,i,r)}var p=l.find(i<0?-1:1);return(i<0?c:u)&&(p=qo(e,p,i,p.line==t.line?o:null)),p?Vo(e,p,t,i,r):null}}return t}function Wo(e,t,n,i,r){var o=i||1,a=Vo(e,t,n,o,r)||!r&&Vo(e,t,n,o,!0)||Vo(e,t,n,-o,r)||!r&&Vo(e,t,n,-o,!0);return a||(e.cantEdit=!0,ot(e.first,0))}function qo(e,t,n,i){return n<0&&0==t.ch?t.line>e.first?dt(e,ot(t.line-1)):null:n>0&&t.ch==(i||Xe(e,t.line)).text.length?t.line=0;--r)Jo(e,{from:i[r].from,to:i[r].to,text:r?[""]:t.text,origin:t.origin});else Jo(e,t)}}function Jo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=at(t.from,t.to)){var n=uo(e,t);Po(e,t,n,e.cm?e.cm.curOp.id:NaN),na(e,t,n,zt(e,t));var i=[];yo(e,(function(e,n){n||-1!=j(i,e.history)||(sa(e.history,t),i.push(e.history)),na(e,t,null,zt(e,t))}))}}function ea(e,t,n){var i=e.cm&&e.cm.state.suppressEdits;if(!i||n){for(var r,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c=0;--p){var f=d(p);if(f)return f.v}}}}function ta(e,t){if(0!=t&&(e.first+=t,e.sel=new ro(Y(e.sel.ranges,(function(e){return new oo(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Oi(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;ie.lastLine())){if(t.from.lineo&&(t={from:t.from,to:ot(o,Xe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Qe(e,t.from,t.to),n||(n=uo(e,t)),e.cm?ia(e.cm,t,i):vo(e,t,i),Zo(e,n,Z),e.cantEdit&&Wo(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function ia(e,t,n){var i=e.doc,r=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=tt(Qt(Xe(i,o.line))),i.iter(l,a.line+1,(function(e){if(e==r.maxLine)return s=!0,!0}))),i.sel.contains(t.from,t.to)>-1&&be(e),vo(i,t,n,Ni(e)),e.options.lineWrapping||(i.iter(l,o.line+t.text.length,(function(e){var t=sn(e);t>r.maxLineLength&&(r.maxLine=e,r.maxLineLength=t,r.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),Mt(i,o.line),Br(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?Oi(e):o.line!=a.line||1!=t.text.length||mo(e.doc,t)?Oi(e,o.line,a.line+1,c):Fi(e,o.line,"text");var u=we(e,"changes"),h=we(e,"change");if(h||u){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};h&&Ln(e,"change",e,d),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function ra(e,t,n,i,r){var o;i||(i=n),at(i,n)<0&&(n=(o=[i,n])[0],i=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Qo(e,{from:n,to:i,text:t,origin:r})}function oa(e,t,n,i){n1||!(this.children[0]instanceof ca))){var s=[];this.collapse(s),this.children=[new ca(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=r.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var i=0;i0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=A("span",[o.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Xt(e,t.line,t,n,o)||t.line!=n.line&&Xt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Dt()}o.addToHistory&&Po(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(e){c&&o.collapsed&&!c.options.lineWrapping&&Qt(e)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&et(e,0),Rt(e,new Nt(o,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){rn(e,t)&&et(t,0)})),o.clearOnEnter&&fe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Tt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++fa,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)Oi(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)Fi(c,u,"text");o.atomic&&Go(c.doc),Ln(c,"markerAdded",c,o)}return o}ga.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&kr(e),we(this,"clear")){var n=this.find();n&&Ln(this,"clear",n.from,n.to)}for(var i=null,r=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=i&&e&&this.collapsed&&Oi(e,i,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Go(e.doc)),e&&Ln(e,"markerCleared",e,this,i,r),t&&_r(e),this.parent&&this.parent.clear()}},ga.prototype.find=function(e,t){var n,i;null==e&&"bookmark"==this.type&&(e=1);for(var r=0;r=0;l--)Qo(this,i[l]);s?$o(this,s):this.cm&&sr(this.cm)})),undo:Ir((function(){ea(this,"undo")})),redo:Ir((function(){ea(this,"redo")})),undoSelection:Ir((function(){ea(this,"undo",!0)})),redoSelection:Ir((function(){ea(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,i=0;i=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,n){e=dt(this,e),t=dt(this,t);var i=[],r=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&r!=e.line||null!=l.from&&r==t.line&&l.from>=t.ch||n&&!n(l.marker)||i.push(l.marker.parent||l.marker)}++r})),i},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var i=0;ie)return t=e,!0;e-=o,++n})),dt(this,ot(n,t))},indexFromPos:function(e){var t=(e=dt(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var h=e.dataTransfer.getData("Text");if(h){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),Zo(t.doc,so(n,n)),d)for(var p=0;p=0;t--)ra(e.doc,"",i[t].from,i[t].to,"+delete");sr(e)}))}function Va(e,t,n){var i=ae(e.text,t+n,n);return i<0||i>e.text.length?null:i}function Wa(e,t,n){var i=Va(e,t.ch,n);return null==i?null:new ot(t.line,i,n<0?"after":"before")}function qa(e,t,n,i,r){if(e){"rtl"==t.doc.direction&&(r=-r);var o=de(n,t.doc.direction);if(o){var a,s=r<0?q(o):o[0],l=r<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=ni(t,n);a=r<0?n.text.length-1:0;var u=ii(t,c,a).top;a=se((function(e){return ii(t,c,e).top==u}),r<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Va(n,a,1))}else a=r<0?s.to:s.from;return new ot(i,a,l)}}return new ot(i,r<0?n.text.length:0,r<0?"before":"after")}function Ya(e,t,n,i){var r=de(t,e.doc.direction);if(!r)return Wa(t,n,i);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ue(r,n.ch,n.sticky),a=r[o];if("ltr"==e.doc.direction&&a.level%2==0&&(i>0?a.to>n.ch:a.from=a.from&&d>=u.begin)){var p=h?"before":"after";return new ot(n.line,d,p)}}var f=function(e,t,i){for(var o=function(e,t){return t?new ot(n.line,l(e,1),"before"):new ot(n.line,e,"after")};e>=0&&e0==(1!=a.level),c=s?i.begin:l(i.end,-1);if(a.from<=c&&c0?u.end:l(u.begin,-1);return null==m||i>0&&m==t.text.length||!(g=f(i>0?0:r.length-1,i,c(m)))?null:g}Fa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Fa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Fa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Fa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Fa.default=y?Fa.macDefault:Fa.pcDefault;var Xa={selectAll:Yo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Z)},killLine:function(e){return Ua(e,(function(t){if(t.empty()){var n=Xe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)r=new ot(r.line,r.ch+1),e.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),ot(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var a=Xe(e.doc,r.line-1).text;a&&(r=new ot(r.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ot(r.line-1,a.length-1),r,"+transpose"))}n.push(new oo(r,r))}e.setSelections(n)}))},newlineAndIndent:function(e){return Tr(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var i=0;i-1&&(at((r=s.ranges[r]).from(),t)<0||t.xRel>0)&&(at(r.to(),t)>0||t.xRel<0)?Ss(e,i,t,o):_s(e,i,t,o)}function Ss(e,t,n,i){var r=e.display,o=!1,c=Dr(e,(function(t){l&&(r.scroller.draggable=!1),e.state.draggingText=!1,me(r.wrapper.ownerDocument,"mouseup",c),me(r.wrapper.ownerDocument,"mousemove",u),me(r.scroller,"dragstart",h),me(r.scroller,"drop",c),o||(Se(t),i.addNew||Ro(e.doc,n,null,null,i.extend),l&&!d||a&&9==s?setTimeout((function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()}),20):r.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},h=function(){return o=!0};l&&(r.scroller.draggable=!0),e.state.draggingText=c,c.copy=!i.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),fe(r.wrapper.ownerDocument,"mouseup",c),fe(r.wrapper.ownerDocument,"mousemove",u),fe(r.scroller,"dragstart",h),fe(r.scroller,"drop",c),Yi(e),setTimeout((function(){return r.input.focus()}),20)}function ks(e,t,n){if("char"==n)return new oo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new oo(ot(t.line,0),dt(e.doc,ot(t.line+1,0)));var i=n(e,t);return new oo(i.from,i.to)}function _s(e,t,n,i){var r=e.display,o=e.doc;Se(t);var a,s,l=o.sel,c=l.ranges;if(i.addNew&&!i.extend?(s=o.sel.contains(n),a=s>-1?c[s]:new oo(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==i.unit)i.addNew||(a=new oo(n,n)),n=Bi(e,t,!0,!0),s=-1;else{var u=ks(e,n,i.unit);a=i.extend?Bo(a,u.anchor,u.head,i.extend):u}i.addNew?-1==s?(s=c.length,Ho(o,ao(e,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==i.unit&&!i.extend?(Ho(o,ao(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Fo(o,s,a,K):(s=0,Ho(o,new ro([a],0),K),l=o.sel);var h=n;function d(t){if(0!=at(h,t))if(h=t,"rectangle"==i.unit){for(var r=[],c=e.options.tabSize,u=F(Xe(o,n.line).text,n.ch,c),d=F(Xe(o,t.line).text,t.ch,c),p=Math.min(u,d),f=Math.max(u,d),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var v=Xe(o,g).text,y=U(v,p,c);p==f?r.push(new oo(ot(g,y),ot(g,y))):v.length>y&&r.push(new oo(ot(g,y),ot(g,U(v,f,c))))}r.length||r.push(new oo(n,n)),Ho(o,ao(e,l.ranges.slice(0,s).concat(r),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=a,x=ks(e,t,i.unit),S=w.anchor;at(x.anchor,S)>0?(b=x.head,S=ut(w.from(),x.anchor)):(b=x.anchor,S=ct(w.to(),x.head));var k=l.ranges.slice(0);k[s]=Cs(e,new oo(dt(o,S),b)),Ho(o,ao(e,k,s),K)}}var p=r.wrapper.getBoundingClientRect(),f=0;function g(t){var n=++f,a=Bi(e,t,!0,"rectangle"==i.unit);if(a)if(0!=at(a,h)){e.curOp.focus=D(),d(a);var s=tr(r,o);(a.line>=s.to||a.linep.bottom?20:0;l&&setTimeout(Dr(e,(function(){f==n&&(r.scroller.scrollTop+=l,g(t))})),50)}}function m(t){e.state.selectingText=!1,f=1/0,t&&(Se(t),r.input.focus()),me(r.wrapper.ownerDocument,"mousemove",v),me(r.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null}var v=Dr(e,(function(e){0!==e.buttons&&Ee(e)?g(e):m(e)})),y=Dr(e,m);e.state.selectingText=y,fe(r.wrapper.ownerDocument,"mousemove",v),fe(r.wrapper.ownerDocument,"mouseup",y)}function Cs(e,t){var n=t.anchor,i=t.head,r=Xe(e.doc,n.line);if(0==at(n,i)&&n.sticky==i.sticky)return t;var o=de(r);if(!o)return t;var a=ue(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(i.line!=n.line)l=(i.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ue(o,i.ch,i.sticky),h=u-a||(i.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?h<0:h>0}var d=o[c+(l?-1:0)],p=l==(1==d.level),f=p?d.from:d.to,g=p?"after":"before";return n.ch==f&&n.sticky==g?t:new oo(new ot(n.line,f,g),i)}function Ps(e,t,n,i){var r,o;if(t.touches)r=t.touches[0].clientX,o=t.touches[0].clientY;else try{r=t.clientX,o=t.clientY}catch(e){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&Se(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!we(e,n))return _e(t);o-=s.top-a.viewOffset;for(var l=0;l=r)return ve(e,n,e,nt(e.doc,o),e.display.gutterSpecs[l].className,t),_e(t)}}function Es(e,t){return Ps(e,t,"gutterClick",!0)}function Ms(e,t){Kn(e.display,t)||Ls(e,t)||ye(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function Ls(e,t){return!!we(e,"gutterContextMenu")&&Ps(e,t,"gutterContextMenu",!1)}function As(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),di(e)}ms.prototype.compare=function(e,t,n){return this.time+gs>e&&0==at(t,this.pos)&&n==this.button};var Ts={toString:function(){return"CodeMirror.Init"}},Ds={},Ns={};function Is(e){var t=e.optionHandlers;function n(n,i,r,o){e.defaults[n]=i,r&&(t[n]=o?function(e,t,n){n!=Ts&&r(e,t,n)}:r)}e.defineOption=n,e.Init=Ts,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,fo(e)}),!0),n("indentUnit",2,fo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){go(e),di(e),Oi(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],i=e.doc.first;e.doc.iter((function(e){for(var r=0;;){var o=e.text.indexOf(t,r);if(-1==o)break;r=o+t.length,n.push(ot(i,o))}i++}));for(var r=n.length-1;r>=0;r--)ra(e.doc,t,n[r],ot(n[r].line,n[r].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ts&&e.refresh()})),n("specialCharPlaceholder",mn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){As(e),Xr(e)}),!0),n("keyMap","default",(function(e,t,n){var i=Ga(t),r=n!=Ts&&Ga(n);r&&r.detach&&r.detach(e,i),i.attach&&i.attach(e,r||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Rs,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=qr(t,e.options.lineNumbers),Xr(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Di(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return yr(e)}),!0),n("scrollbarStyle","native",(function(e){xr(e),yr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=qr(e.options.gutters,t),Xr(e)}),!0),n("firstLineNumber",1,Xr,!0),n("lineNumberFormatter",(function(e){return e}),Xr,!0),n("showCursorWhenSelecting",!1,Zi,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Qi(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Bs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Zi,!0),n("singleCursorHeightPerLine",!0,Zi,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,go,!0),n("addModeClass",!1,go,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,go,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Bs(e,t,n){if(!t!=!(n&&n!=Ts)){var i=e.display.dragFunctions,r=t?fe:me;r(e.display.scroller,"dragstart",i.start),r(e.display.scroller,"dragenter",i.enter),r(e.display.scroller,"dragover",i.over),r(e.display.scroller,"dragleave",i.leave),r(e.display.scroller,"drop",i.drop)}}function Rs(e){e.options.lineWrapping?(N(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(P(e.display.wrapper,"CodeMirror-wrap"),ln(e)),Ii(e),Oi(e),di(e),setTimeout((function(){return yr(e)}),100)}function Os(e,t){var n=this;if(!(this instanceof Os))return new Os(e,t);this.options=t=t?O(t):{},O(Ds,t,!1);var i=t.value;"string"==typeof i?i=new ka(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var r=new Os.inputStyles[t.inputStyle](this),o=this.display=new Qr(e,i,r,t);for(var c in o.wrapper.CodeMirror=this,As(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new z,keySeq:null,specialChars:null},t.autofocus&&!v&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Fs(this),Ta(),kr(this),this.curOp.forceUpdate=!0,bo(this,i),t.autofocus&&!v||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Xi(n)}),20):Qi(this),Ns)Ns.hasOwnProperty(c)&&Ns[c](this,t[c],Ts);Wr(this),t.finishInit&&t.finishInit(this);for(var u=0;u400}fe(t.scroller,"touchstart",(function(r){if(!ye(e,r)&&!o(r)&&!Es(e,r)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-i.end<=300?i:null},1==r.touches.length&&(t.activeTouch.left=r.touches[0].pageX,t.activeTouch.top=r.touches[0].pageY)}})),fe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),fe(t.scroller,"touchend",(function(n){var i=t.activeTouch;if(i&&!Kn(t,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!i.prev||l(i,i.prev)?new oo(a,a):!i.prev.prev||l(i,i.prev.prev)?e.findWordAt(a):new oo(ot(a.line,0),dt(e.doc,ot(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Se(n)}r()})),fe(t.scroller,"touchcancel",r),fe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(dr(e,t.scroller.scrollTop),fr(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))})),fe(t.scroller,"mousewheel",(function(t){return io(e,t)})),fe(t.scroller,"DOMMouseScroll",(function(t){return io(e,t)})),fe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ye(e,t)||Ce(t)},over:function(t){ye(e,t)||(Ea(e,t),Ce(t))},start:function(t){return Pa(e,t)},drop:Dr(e,Ca),leave:function(t){ye(e,t)||Ma(e)}};var c=t.input.getField();fe(c,"keyup",(function(t){return hs.call(e,t)})),fe(c,"keydown",Dr(e,cs)),fe(c,"keypress",Dr(e,ds)),fe(c,"focus",(function(t){return Xi(e,t)})),fe(c,"blur",(function(t){return Qi(e,t)}))}Os.defaults=Ds,Os.optionHandlers=Ns;var zs=[];function js(e,t,n,i){var r,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?r=bt(e,t).state:n="prev");var a=e.options.tabSize,s=Xe(o,t),l=F(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(i||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(r,s.text.slice(u.length),s.text))==H||c>150)){if(!i)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?F(Xe(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var h="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(c/a);p;--p)d+=a,h+="\t";if(da,l=Ie(t),c=null;if(s&&i.ranges.length>1)if($s&&$s.text.join("\n")==t){if(i.ranges.length%$s.text.length==0){c=[];for(var u=0;u<$s.text.length;u++)c.push(o.splitLines($s.text[u]))}}else l.length==i.ranges.length&&e.options.pasteLinesPerSelection&&(c=Y(l,(function(e){return[e]})));for(var h=e.curOp.updateInput,d=i.ranges.length-1;d>=0;d--){var p=i.ranges[d],f=p.from(),g=p.to();p.empty()&&(n&&n>0?f=ot(f.line,f.ch-n):e.state.overwrite&&!s?g=ot(g.line,Math.min(Xe(o,g.line).text.length,g.ch+q(l).length)):s&&$s&&$s.lineWise&&$s.text.join("\n")==l.join("\n")&&(f=g=ot(f.line,0)));var m={from:f,to:g,text:c?c[d%c.length]:l,origin:r||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Qo(e.doc,m),Ln(e,"inputRead",e,m)}t&&!s&&Gs(e,t),sr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ks(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Tr(t,(function(){return Zs(t,n,0,null,"paste")})),!0}function Gs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=e.getModeAt(r.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=js(e,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Xe(e.doc,r.head.line).text.slice(0,r.head.ch))&&(a=js(e,r.head.line,"smart"));a&&Ln(e,"electricInput",e,r.head.line)}}}function Us(e){for(var t=[],n=[],i=0;in&&(js(this,r.head.line,e,!0),n=r.head.line,i==this.doc.sel.primIndex&&sr(this));else{var o=r.from(),a=r.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Fo(this.doc,i,new oo(o,c[i].to()),Z)}}})),getTokenAt:function(e,t){return _t(this,e,t)},getLineTokens:function(e,t){return _t(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=dt(this.doc,e);var t,n=yt(this,Xe(this.doc,e.line)),i=0,r=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=i+r>>1;if((a?n[2*a-1]:0)>=o)r=a;else{if(!(n[2*a+1]o&&(e=o,r=!0),i=Xe(this.doc,e)}else i=e;return mi(this,i,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-an(i):0)},defaultTextHeight:function(){return Li(this.display)},defaultCharWidth:function(){return Ai(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,i,r){var o=this.display,a=(e=bi(this,dt(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==i)a=e.top;else if("above"==i||"near"==i){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==r?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==r?s=0:"middle"==r&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&rr(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Nr(cs),triggerOnKeyPress:Nr(ds),triggerOnKeyUp:hs,triggerOnMouseDown:Nr(ys),execCommand:function(e){if(Xa.hasOwnProperty(e))return Xa[e].call(null,this)},triggerElectric:Nr((function(e){Gs(this,e)})),findPosH:function(e,t,n,i){var r=1;t<0&&(r=-1,t=-t);for(var o=dt(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;i.5||this.options.lineWrapping)&&Ii(this),ve(this,"refresh",this)})),swapDoc:Nr((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),bo(this,e),di(this),this.display.input.reset(),lr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Ln(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},xe(e),e.registerHelper=function(t,i,r){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][i]=r},e.registerGlobalHelper=function(t,i,r,o){e.registerHelper(t,i,o),n[t]._global.push({pred:r,val:o})}}function Ys(e,t,n,i,r){var o=t,a=n,s=Xe(e,t.line),l=r&&"rtl"==e.direction?-n:n;function c(){var n=t.line+l;return!(n=e.first+e.size)&&(t=new ot(n,t.ch,t.sticky),s=Xe(e,n))}function u(o){var a;if("codepoint"==i){var u=s.text.charCodeAt(t.ch+(i>0?0:-1));a=isNaN(u)?null:new ot(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(u>=55296&&u<56320?2:1))),-n)}else a=r?Ya(e.cm,s,t,n):Wa(s,t,n);if(null==a){if(o||!c())return!1;t=qa(r,e.cm,s,t.line,l)}else t=a;return!0}if("char"==i||"codepoint"==i)u();else if("column"==i)u(!0);else if("word"==i||"group"==i)for(var h=null,d="group"==i,p=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||u(!f);f=!1){var g=s.text.charAt(t.ch)||"\n",m=ne(g,p)?"w":d&&"\n"==g?"n":!d||/\s/.test(g)?null:"p";if(!d||f||m||(m="s"),h&&h!=m){n<0&&(n=1,u(),t.sticky="after");break}if(m&&(h=m),n>0&&!u(!f))break}var v=Wo(e,t,o,a,!0);return st(o,v)&&(v.hitSide=!0),v}function Xs(e,t,n,i){var r,o,a=e.doc,s=t.left;if("page"==i){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*Li(e.display),3);r=(n>0?t.bottom:t.top)+n*c}else"line"==i&&(r=n>0?t.bottom+3:t.top-3);for(;(o=Si(e,s,r)).outside;){if(n<0?r<=0:r>=a.height){o.hitSide=!0;break}r+=5*n}return o}var Qs=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new z,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Js(e,t){var n=ti(e,t.line);if(!n||n.hidden)return null;var i=Xe(e.doc,t.line),r=Qn(n,i,t.line),o=de(i,e.doc.direction),a="left";o&&(a=ue(o,t.ch)%2?"right":"left");var s=ai(r.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function el(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function tl(e,t){return t&&(e.bad=!0),e}function nl(e,t,n,i,r){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function h(e){e&&(u(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void h(n);var o,p=t.getAttribute("cm-marker");if(p){var f=e.findMarks(ot(i,0),ot(r+1,0),c(+p));return void(f.length&&(o=f[0].find(0))&&h(Qe(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&u();for(var m=0;m=t.display.viewTo||o.line=t.display.viewFrom&&Js(t,r)||{node:l[0].measure.map[2],offset:0},u=o.linei.firstLine()&&(a=ot(a.line-1,Xe(i.doc,a.line-1).length)),s.ch==Xe(i.doc,s.line).text.length&&s.liner.viewTo-1)return!1;a.line==r.viewFrom||0==(e=Ri(i,a.line))?(t=tt(r.view[0].line),n=r.view[0].node):(t=tt(r.view[e].line),n=r.view[e-1].node.nextSibling);var l,c,u=Ri(i,s.line);if(u==r.view.length-1?(l=r.viewTo-1,c=r.lineDiv.lastChild):(l=tt(r.view[u+1].line)-1,c=r.view[u+1].node.previousSibling),!n)return!1;for(var h=i.doc.splitLines(nl(i,n,c,t,l)),d=Qe(i.doc,ot(t,0),ot(l,Xe(i.doc,l).text.length));h.length>1&&d.length>1;)if(q(h)==q(d))h.pop(),d.pop(),l--;else{if(h[0]!=d[0])break;h.shift(),d.shift(),t++}for(var p=0,f=0,g=h[0],m=d[0],v=Math.min(g.length,m.length);pa.ch&&y.charCodeAt(y.length-f-1)==b.charCodeAt(b.length-f-1);)p--,f++;h[h.length-1]=y.slice(0,y.length-f).replace(/^\u200b+/,""),h[0]=h[0].slice(p).replace(/\u200b+$/,"");var x=ot(t,p),S=ot(l,d.length?q(d).length-f:0);return h.length>1||h[0]||at(x,S)?(ra(i.doc,h,x,S,"+input"),!0):void 0},Qs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qs.prototype.reset=function(){this.forceCompositionEnd()},Qs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Qs.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Qs.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Tr(this.cm,(function(){return Oi(e.cm)}))},Qs.prototype.setUneditable=function(e){e.contentEditable="false"},Qs.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Dr(this.cm,Zs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Qs.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Qs.prototype.onContextMenu=function(){},Qs.prototype.resetPosition=function(){},Qs.prototype.needsContentAttribute=!0;var ol=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new z,this.hasSelection=!1,this.composing=null};function al(e,t){if((t=t?O(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=D();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function i(){e.value=s.getValue()}var r;if(e.form&&(fe(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var o=e.form;r=o.submit;try{var a=o.submit=function(){i(),o.submit=r,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=i,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,i(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(me(e.form,"submit",i),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=r))}},e.style.display="none";var s=Os((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function sl(e){e.off=me,e.on=fe,e.wheelEventPixels=no,e.Doc=ka,e.splitLines=Ie,e.countColumn=F,e.findColumn=U,e.isWordChar=te,e.Pass=H,e.signal=ve,e.Line=cn,e.changeEnd=lo,e.scrollbarModel=wr,e.Pos=ot,e.cmpPos=at,e.modes=ze,e.mimeModes=je,e.resolveMode=Ze,e.getMode=Ke,e.modeExtensions=Ge,e.extendMode=Ue,e.copyState=Ve,e.startState=qe,e.innerMode=We,e.commands=Xa,e.keyMap=Fa,e.keyName=Ka,e.isModifierKey=Ha,e.lookupKey=$a,e.normalizeKeyMap=ja,e.StringStream=Ye,e.SharedTextMarker=va,e.TextMarker=ga,e.LineWidget=ha,e.e_preventDefault=Se,e.e_stopPropagation=ke,e.e_stop=Ce,e.addClass=N,e.contains=T,e.rmClass=P,e.keyNames=Ia}ol.prototype.init=function(e){var t=this,n=this,i=this.cm;this.createField(e);var r=this.textarea;function o(e){if(!ye(i,e)){if(i.somethingSelected())Hs({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=Us(i);Hs({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,Z):(n.prevInput="",r.value=t.text.join("\n"),B(r))}"cut"==e.type&&(i.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(r.style.width="0px"),fe(r,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),fe(r,"paste",(function(e){ye(i,e)||Ks(e,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())})),fe(r,"cut",o),fe(r,"copy",o),fe(e.scroller,"paste",(function(t){if(!Kn(e,t)&&!ye(i,t)){if(!r.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,r.dispatchEvent(o)}})),fe(e.lineSpace,"selectstart",(function(t){Kn(e,t)||Se(t)})),fe(r,"compositionstart",(function(){var e=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}})),fe(r,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},ol.prototype.createField=function(e){this.wrapper=Ws(),this.textarea=this.wrapper.firstChild},ol.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ol.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,i=Ki(e);if(e.options.moveInputWithCursor){var r=bi(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+a.top-o.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+a.left-o.left))}return i},ol.prototype.showSelection=function(e){var t=this.cm.display;M(t.cursorDiv,e.cursors),M(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ol.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&B(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},ol.prototype.getField=function(){return this.textarea},ol.prototype.supportsTouch=function(){return!1},ol.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||D()!=this.textarea))try{this.textarea.focus()}catch(e){}},ol.prototype.blur=function(){this.textarea.blur()},ol.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ol.prototype.receivedFocus=function(){this.slowPoll()},ol.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},ol.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},ol.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!t.state.focused||Be(n)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=n.value;if(r==i&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===r||y&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(i.length,r.length);l1e3||r.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ol.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ol.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},ol.prototype.onContextMenu=function(e){var t=this,n=t.cm,i=n.display,r=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Bi(n,e),c=i.scroller.scrollTop;if(o&&!h){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Dr(n,Ho)(n.doc,so(o),Z);var u,d=r.style.cssText,p=t.wrapper.style.cssText,f=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",r.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=window.scrollY),i.input.focus(),l&&window.scrollTo(null,u),i.input.reset(),n.somethingSelected()||(r.value=t.prevInput=" "),t.contextMenuPending=v,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),a&&s>=9&&m(),k){Ce(e);var g=function(){me(window,"mouseup",g),setTimeout(v,20)};fe(window,"mouseup",g)}else setTimeout(v,50)}function m(){if(null!=r.selectionStart){var e=n.somethingSelected(),o="​"+(e?r.value:"");r.value="⇚",r.value=o,t.prevInput=e?"":"​",r.selectionStart=1,r.selectionEnd=o.length,i.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,r.style.cssText=d,a&&s<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=c),null!=r.selectionStart)){(!a||a&&s<9)&&m();var e=0,o=function(){i.selForContextMenu==n.doc.sel&&0==r.selectionStart&&r.selectionEnd>0&&"​"==t.prevInput?Dr(n,Yo)(n):e++<10?i.detectingSelectAll=setTimeout(o,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(o,200)}}},ol.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ol.prototype.setUneditable=function(){},ol.prototype.needsContentAttribute=!1,Is(Os),qs(Os);var ll="iter insert remove copy getEditor constructor".split(" ");for(var cl in ka.prototype)ka.prototype.hasOwnProperty(cl)&&j(ll,cl)<0&&(Os.prototype[cl]=function(e){return function(){return e.apply(this.doc,arguments)}}(ka.prototype[cl]));return xe(ka),Os.inputStyles={textarea:ol,contenteditable:Qs},Os.defineMode=function(e){Os.defaults.mode||"null"==e||(Os.defaults.mode=e),$e.apply(this,arguments)},Os.defineMIME=He,Os.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Os.defineMIME("text/plain","null"),Os.defineExtension=function(e,t){Os.prototype[e]=t},Os.defineDocExtension=function(e,t){ka.prototype[e]=t},Os.fromTextArea=al,sl(Os),Os.version="5.58.2",Os}()},25419:function(e,t,n){!function(e){"use strict";e.defineMode("markdown",(function(t,n){var i=e.getMode(t,"text/html"),r="null"==i.name;function o(n){if(e.findModeByName){var i=e.findModeByName(n);i&&(n=i.mime||i.mimes[0])}var r=e.getMode(t,n);return"null"==r.name?null:r}void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.fencedCodeBlockDefaultMode&&(n.fencedCodeBlockDefaultMode="text/plain"),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in a)a.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(a[s]=n.tokenTypeOverrides[s]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,h=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,d=/^ {0,3}(?:\={1,}|-{2,})\s*$/,p=/^[^#!\[\]*_\\<>` "'(~:]+/,f=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,v=" ";function y(e,t,n){return t.f=t.inline=n,n(e,t)}function b(e,t,n){return t.f=t.block=n,n(e,t)}function w(e){return!e||!/\S/.test(e.string)}function x(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==k){var n=r;if(!n){var o=e.innerMode(i,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=E,t.block=S,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function S(t,i){var r=t.column()===i.indentation,s=w(i.prevLine.stream),p=i.indentedCode,m=i.prevLine.hr,v=!1!==i.list,b=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var x=i.indentation;if(null===i.indentationDiff&&(i.indentationDiff=i.indentation,v)){for(i.list=null;x=4&&(p||i.prevLine.fencedCodeEnd||i.prevLine.header||s))return t.skipToEnd(),i.indentedCode=!0,a.code;if(t.eatSpace())return null;if(r&&i.indentation<=b&&(P=t.match(h))&&P[1].length<=6)return i.quote=0,i.header=P[1].length,i.thisLine.header=!0,n.highlightFormatting&&(i.formatting="header"),i.f=i.inline,C(i);if(i.indentation<=b&&t.eat(">"))return i.quote=r?1:i.quote+1,n.highlightFormatting&&(i.formatting="quote"),t.eatSpace(),C(i);if(!k&&!i.setext&&r&&i.indentation<=b&&(P=t.match(c))){var E=P[1]?"ol":"ul";return i.indentation=x+t.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,n.taskLists&&t.match(u,!1)&&(i.taskList=!0),i.f=i.inline,n.highlightFormatting&&(i.formatting=["list","list-"+E]),C(i)}return r&&i.indentation<=b&&(P=t.match(f,!0))?(i.quote=0,i.fencedEndRE=new RegExp(P[1]+"+ *$"),i.localMode=n.fencedCodeBlockHighlighting&&o(P[2]||n.fencedCodeBlockDefaultMode),i.localMode&&(i.localState=e.startState(i.localMode)),i.f=i.block=_,n.highlightFormatting&&(i.formatting="code-block"),i.code=-1,C(i)):i.setext||!(S&&v||i.quote||!1!==i.list||i.code||k||g.test(t.string))&&(P=t.lookAhead(1))&&(P=P.match(d))?(i.setext?(i.header=i.setext,i.setext=0,t.skipToEnd(),n.highlightFormatting&&(i.formatting="header")):(i.header="="==P[0].charAt(0)?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,C(i)):k?(t.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,a.hr):"["===t.peek()?y(t,i,D):y(t,i,i.inline)}function k(t,n){var o=i.token(t,n.htmlState);if(!r){var a=e.innerMode(i,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=E,n.block=S,n.htmlState=null)}return o}function _(e,t){var i,r=t.listStack[t.listStack.length-1]||0,o=t.indentation=e.quote?t.push(a.formatting+"-"+e.formatting[i]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(a.linkHref,"url"):(e.strong&&t.push(a.strong),e.em&&t.push(a.em),e.strikethrough&&t.push(a.strikethrough),e.emoji&&t.push(a.emoji),e.linkText&&t.push(a.linkText),e.code&&t.push(a.code),e.image&&t.push(a.image),e.imageAltText&&t.push(a.imageAltText,"link"),e.imageMarker&&t.push(a.imageMarker)),e.header&&t.push(a.header,a.header+"-"+e.header),e.quote&&(t.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.quote+"-"+e.quote):t.push(a.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var r=(e.listStack.length-1)%3;r?1===r?t.push(a.list2):t.push(a.list3):t.push(a.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function P(e,t){if(e.match(p,!0))return C(t)}function E(t,r){var o=r.text(t,r);if(void 0!==o)return o;if(r.list)return r.list=null,C(r);if(r.taskList)return" "===t.match(u,!0)[1]?r.taskOpen=!0:r.taskClosed=!0,n.highlightFormatting&&(r.formatting="task"),r.taskList=!1,C(r);if(r.taskOpen=!1,r.taskClosed=!1,r.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(r.formatting="header"),C(r);var s=t.next();if(r.linkTitle){r.linkTitle=!1;var l=s;"("===s&&(l=")");var c="^\\s*(?:[^"+(l=(l+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(t.match(new RegExp(c),!0))return a.linkHref}if("`"===s){var h=r.formatting;n.highlightFormatting&&(r.formatting="code"),t.eatWhile("`");var d=t.current().length;if(0!=r.code||r.quote&&1!=d){if(d==r.code){var p=C(r);return r.code=0,p}return r.formatting=h,C(r)}return r.code=d,C(r)}if(r.code)return C(r);if("\\"===s&&(t.next(),n.highlightFormatting)){var f=C(r),g=a.formatting+"-escape";return f?f+" "+g:g}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return r.imageMarker=!0,r.image=!0,n.highlightFormatting&&(r.formatting="image"),C(r);if("["===s&&r.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return r.imageMarker=!1,r.imageAltText=!0,n.highlightFormatting&&(r.formatting="image"),C(r);if("]"===s&&r.imageAltText){n.highlightFormatting&&(r.formatting="image");var f=C(r);return r.imageAltText=!1,r.image=!1,r.inline=r.f=L,f}if("["===s&&!r.image)return r.linkText&&t.match(/^.*?\]/)||(r.linkText=!0,n.highlightFormatting&&(r.formatting="link")),C(r);if("]"===s&&r.linkText){n.highlightFormatting&&(r.formatting="link");var f=C(r);return r.linkText=!1,r.inline=r.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?L:E,f}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return r.f=r.inline=M,n.highlightFormatting&&(r.formatting="link"),(f=C(r))?f+=" ":f="",f+a.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return r.f=r.inline=M,n.highlightFormatting&&(r.formatting="link"),(f=C(r))?f+=" ":f="",f+a.linkEmail;if(n.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var v=t.string.indexOf(">",t.pos);if(-1!=v){var y=t.string.substring(t.start,v);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(y)&&(r.md_inside=!0)}return t.backUp(1),r.htmlState=e.startState(i),b(t,r,k)}if(n.xml&&"<"===s&&t.match(/^\/\w*?>/))return r.md_inside=!1,"tag";if("*"===s||"_"===s){for(var w=1,x=1==t.pos?" ":t.string.charAt(t.pos-2);w<3&&t.eat(s);)w++;var S=t.peek()||" ",_=!/\s/.test(S)&&(!m.test(S)||/\s/.test(x)||m.test(x)),P=!/\s/.test(x)&&(!m.test(x)||/\s/.test(S)||m.test(S)),A=null,T=null;if(w%2&&(r.em||!_||"*"!==s&&P&&!m.test(x)?r.em!=s||!P||"*"!==s&&_&&!m.test(S)||(A=!1):A=!0),w>1&&(r.strong||!_||"*"!==s&&P&&!m.test(x)?r.strong!=s||!P||"*"!==s&&_&&!m.test(S)||(T=!1):T=!0),null!=T||null!=A)return n.highlightFormatting&&(r.formatting=null==A?"strong":null==T?"em":"strong em"),!0===A&&(r.em=s),!0===T&&(r.strong=s),p=C(r),!1===A&&(r.em=!1),!1===T&&(r.strong=!1),p}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return C(r);t.backUp(1)}if(n.strikethrough)if("~"===s&&t.eatWhile(s)){if(r.strikethrough)return n.highlightFormatting&&(r.formatting="strikethrough"),p=C(r),r.strikethrough=!1,p;if(t.match(/^[^\s]/,!1))return r.strikethrough=!0,n.highlightFormatting&&(r.formatting="strikethrough"),C(r)}else if(" "===s&&t.match(/^~~/,!0)){if(" "===t.peek())return C(r);t.backUp(2)}if(n.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){r.emoji=!0,n.highlightFormatting&&(r.formatting="emoji");var D=C(r);return r.emoji=!1,D}return" "===s&&(t.match(/^ +$/,!1)?r.trailingSpace++:r.trailingSpace&&(r.trailingSpaceNewLine=!0)),C(r)}function M(e,t){if(">"===e.next()){t.f=t.inline=E,n.highlightFormatting&&(t.formatting="link");var i=C(t);return i?i+=" ":i="",i+a.linkInline}return e.match(/^[^>]+/,!0),a.linkInline}function L(e,t){if(e.eatSpace())return null;var i=e.next();return"("===i||"["===i?(t.f=t.inline=T("("===i?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,C(t)):"error"}var A={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function T(e){return function(t,i){if(t.next()===e){i.f=i.inline=E,n.highlightFormatting&&(i.formatting="link-string");var r=C(i);return i.linkHref=!1,r}return t.match(A[e]),i.linkHref=!0,C(i)}}function D(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=N,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,C(t)):y(e,t,E)}function N(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=I,n.highlightFormatting&&(t.formatting="link");var i=C(t);return t.linkText=!1,i}return e.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function I(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=E,a.linkHref+" url")}var B={startState:function(){return{f:S,prevLine:{stream:null},thisLine:{stream:null},block:S,htmlState:null,indentation:0,inline:E,text:P,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(i,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return x(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=k)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,v).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==k?{state:e.htmlState,mode:i}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:B}},indent:function(t,n,r){return t.block==k&&i.indent?i.indent(t.htmlState,n,r):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},blankLine:x,getType:C,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return B}),"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}(n(89780),n(15525),n(98101))},98101:function(e,t,n){!function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t-1&&t.substring(r+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n0?e.cmdState[e.cmdState.length-1]:null}function r(e){var t=e.cmdState.pop();t&&t.closeBracket()}function o(e){for(var t=e.cmdState,n=t.length-1;n>=0;n--){var i=t[n];if("DEFAULT"!=i.name)return i}return{styleIdentifier:function(){return null}}}function a(e,t,n){return function(){this.name=e,this.bracketNo=0,this.style=t,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var s={};function l(e,t){e.f=t}function c(e,t){var r;if(e.match(/^\\[a-zA-Z@]+/)){var a=e.current().slice(1);return n(t,r=new(r=s.hasOwnProperty(a)?s[a]:s.DEFAULT)),l(t,h),r.style}if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/\\]/))return"tag";if(e.match("\\["))return l(t,(function(e,t){return u(e,t,"\\]")})),"keyword";if(e.match("\\("))return l(t,(function(e,t){return u(e,t,"\\)")})),"keyword";if(e.match("$$"))return l(t,(function(e,t){return u(e,t,"$$")})),"keyword";if(e.match("$"))return l(t,(function(e,t){return u(e,t,"$")})),"keyword";var c=e.next();return"%"==c?(e.skipToEnd(),"comment"):"}"==c||"]"==c?(r=i(t))?(r.closeBracket(c),l(t,h),"bracket"):"error":"{"==c||"["==c?(n(t,r=new(r=s.DEFAULT)),"bracket"):/\d/.test(c)?(e.eatWhile(/[\w.%]/),"atom"):(e.eatWhile(/[\w\-_]/),"begin"==(r=o(t)).name&&(r.argument=e.current()),r.styleIdentifier())}function u(e,t,n){if(e.eatSpace())return null;if(n&&e.match(n))return l(t,c),"keyword";if(e.match(/^\\[a-zA-Z@]+/))return"tag";if(e.match(/^[a-zA-Z]+/))return"variable-2";if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/]/))return"tag";if(e.match(/^[\^_&]/))return"tag";if(e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var i=e.next();return"{"==i||"}"==i||"["==i||"]"==i||"("==i||")"==i?"bracket":"%"==i?(e.skipToEnd(),"comment"):"error"}function h(e,t){var n=e.peek();return"{"==n||"["==n?(i(t).openBracket(n),e.eat(n),l(t,c),"bracket"):/[ \t\r]/.test(n)?(e.eat(n),null):(l(t,c),r(t),c(e,t))}return s.importmodule=a("importmodule","tag",["string","builtin"]),s.documentclass=a("documentclass","tag",["","atom"]),s.usepackage=a("usepackage","tag",["atom"]),s.begin=a("begin","tag",["atom"]),s.end=a("end","tag",["atom"]),s.label=a("label","tag",["atom"]),s.ref=a("ref","tag",["atom"]),s.eqref=a("eqref","tag",["atom"]),s.cite=a("cite","tag",["atom"]),s.bibitem=a("bibitem","tag",["atom"]),s.Bibitem=a("Bibitem","tag",["atom"]),s.RBibitem=a("RBibitem","tag",["atom"]),s.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{startState:function(){return{cmdState:[],f:t.inMathMode?function(e,t){return u(e,t)}:c}},copyState:function(e){return{cmdState:e.cmdState.slice(),f:e.f}},token:function(e,t){return t.f(e,t)},blankLine:function(e){e.f=c,e.cmdState.length=0},lineComment:"%"}})),e.defineMIME("text/x-stex","stex"),e.defineMIME("text/x-latex","stex")}(n(89780))},15525:function(e,t,n){!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(i,r){var o,a,s=i.indentUnit,l={},c=r.htmlMode?t:n;for(var u in c)l[u]=c[u];for(var u in r)l[u]=r[u];function h(e,t){function n(n){return t.tokenize=n,n(e,t)}var i=e.next();return"<"==i?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(f("atom","]]>")):null:e.match("--")?n(f("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(g(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=f("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=d,"tag bracket"):"&"==i?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function d(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=h,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=h,t.state=b,t.tagName=t.tagStart=null;var i=t.tokenize(e,t);return i?i+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=p(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=d;break}return"string"};return t.isInAttribute=!0,t}function f(e,t){return function(n,i){for(;!n.eol();){if(n.match(t)){i.tokenize=h;break}n.next()}return e}}function g(e){return function(t,n){for(var i;null!=(i=t.next());){if("<"==i)return n.tokenize=g(e+1),n.tokenize(t,n);if(">"==i){if(1==e){n.tokenize=h;break}return n.tokenize=g(e-1),n.tokenize(t,n)}}return"meta"}}function m(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function v(e){e.context&&(e.context=e.context.prev)}function y(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(t))return;v(e)}}function b(e,t,n){return"openTag"==e?(n.tagStart=t.column(),w):"closeTag"==e?x:b}function w(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",_):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",_(e,t,n)):(a="error",w)}function x(e,t,n){if("word"==e){var i=t.current();return n.context&&n.context.tagName!=i&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&v(n),n.context&&n.context.tagName==i||!1===l.matchClosing?(a="tag",S):(a="tag error",k)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",S(e,t,n)):(a="error",k)}function S(e,t,n){return"endTag"!=e?(a="error",S):(v(n),b)}function k(e,t,n){return a="error",S(e,t,n)}function _(e,t,n){if("word"==e)return a="attribute",C;if("endTag"==e||"selfcloseTag"==e){var i=n.tagName,r=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(i)?y(n,i):(y(n,i),n.context=new m(n,i,r==n.indented)),b}return a="error",_}function C(e,t,n){return"equals"==e?P:(l.allowMissing||(a="error"),_(e,t,n))}function P(e,t,n){return"string"==e?E:"word"==e&&l.allowUnquoted?(a="string",_):(a="error",_(e,t,n))}function E(e,t,n){return"string"==e?E:_(e,t,n)}return h.isInText=!0,{startState:function(e){var t={tokenize:h,state:b,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,i){var r=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(r&&r.noIndent)return e.Pass;if(t.tokenize!=d&&t.tokenize!=h)return i?i.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==P&&(e.state=_)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)n.tagName&&t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(89780))},25769:function(e,t,n){"use strict";var i=n(98040),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=i(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(i){if(i.stopPropagation(),t.format)if(i.preventDefault(),void 0===i.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=r[t.format]||r.default;window.clipboardData.setData(o,e)}else i.clipboardData.clearData(),i.clipboardData.setData(t.format,e);t.onCopy&&(i.preventDefault(),t.onCopy(i.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(i){n&&console.error("unable to copy using execCommand: ",i),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(i){n&&console.error("unable to copy using clipboardData: ",i),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},12378:function(e,t,n){"use strict";n.d(t,{$u:function(){return a},E9:function(){return o},FJ:function(){return c},KX:function(){return u},NB:function(){return y},S0:function(){return h},Vm:function(){return w},YI:function(){return d},ZA:function(){return r},Zt:function(){return s},al:function(){return m},bn:function(){return g},bx:function(){return p},rU:function(){return b},s_:function(){return f},uz:function(){return v},z6:function(){return l}}),e=n.hmd(e),function(){var t;function i(e){var t=0;return function(){return tt&&(t=Math.max(0,i+t)),(null==n||n>i)&&(n=i),0>(n=Number(n))&&(n=Math.max(0,i+n)),t=Number(t||0);t=e.length?e.push(n):e.splice(t,0,n):x("Cannot insert an object into an HTMLCollection or NodeList: "+n+" at "+t)}function L(e,t){Array.isArray(e)?t>=e.length?e.pop():e.splice(t,1):x("Cannot remove an object from an HTMLCollection or NodeList at "+t)}function A(){var e=z.pop();return void 0===e?[]:e}function T(e){e.length=0,z.push(e)}function D(e){if("function"==typeof e){if(e.className)return e.className;if(e.name)return e.name;var t=e.toString();if(""!==(t=t.substring(9,t.indexOf("(")).trim()))return e._className=t}else if(C(e)&&e.constructor)return D(e.constructor);return typeof e}function N(e){var t=e;return C(e)&&(e.text?t=e.text:e.name?t=e.name:void 0!==e.key?t=e.key:void 0!==e.id?t=e.id:e.constructor===Object&&(e.Text?t=e.Text:e.Name?t=e.Name:void 0!==e.Key?t=e.Key:void 0!==e.Id?t=e.Id:void 0!==e.ID&&(t=e.ID))),void 0===t?"undefined":null===t?"null":t.toString()}function I(e,t){if(e.hasOwnProperty(t))return!0;for(e=Object.getPrototypeOf(e);e&&e!==Function;){if(e.hasOwnProperty(t))return!0;var n=e.CA;if(n&&n[t])return!0;e=Object.getPrototypeOf(e)}return!1}function B(e,t,n){Object.defineProperty(wn.prototype,e,{get:t,set:n})}function R(e){for(var t=[],n=0;256>n;n++)t["0123456789abcdef".charAt(n>>4)+"0123456789abcdef".charAt(15&n)]=String.fromCharCode(n);e.length%2&&(e="0"+e),n=[];for(var i=0,r=0;rn;n++)t[n]=n;for(n=i=0;256>n;n++)i=(i+t[n]+119)%256,r=t[n],t[n]=t[i],t[i]=r;i=n=0;for(var o="",a=0;a-1||o.indexOf("© 1998-2021 Northwoods Software")>-1||o.indexOf("Not for distribution or production use")>-1||o.indexOf("gojs.net")>-1?"":o}void 0===m.requestAnimationFrame&&(void 0===m.setImmediate?m.requestAnimationFrame=function(e){m.setTimeout(e,0)}:m.requestAnimationFrame=m.setImmediate);var O=void 0!==m.navigator&&0this.key)return!1;var t=(e=e.s).length,n=++this.Za,i=this.qf;if(null!==i)for(;nthis.key)return!1;var t=--this.Za;return 0<=t?(this.key=t,this.value=e.s[t],!0):(this.de(),!1)},q.prototype.Ad=function(){return this.next()},q.prototype.first=function(){var e=this.Bb;this.qa=e.Ja;var t=e.s;return this.Za=e=t.length-1,0<=e?(t=t[e],this.key=e,this.value=t):null},q.prototype.any=function(e){var t=this.Bb;t.Hg=null;var n=(t=t.s).length;for(this.Za=n,--n;0<=n;n--)if(e(t[n]))return!0;return!1},q.prototype.all=function(e){var t=this.Bb;t.Hg=null;var n=(t=t.s).length;for(this.Za=n,--n;0<=n;n--)if(!e(t[n]))return!1;return!0},q.prototype.each=function(e){var t=this.Bb;t.Hg=null;var n=(t=t.s).length;for(this.Za=n,--n;0<=n;n--)e(t[n]);return this},q.prototype.map=function(e){var t=this.Bb;t.Hg=null;var n=[],i=(t=t.s).length;for(this.Za=i,--i;0<=i;i--)n.push(e(t[i]));return(e=new Y).s=n,e.xb(),e.iterator},q.prototype.filter=function(e){var t=this.Bb;t.Hg=null;var n=[],i=(t=t.s).length;for(this.Za=i,--i;0<=i;i--){var r=t[i];e(r)&&n.push(r)}return(e=new Y).s=n,e.xb(),e.iterator},q.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},q.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},d.Object.defineProperties(q.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),q.prototype.first=q.prototype.first,q.prototype.hasNext=q.prototype.Ad,q.prototype.next=q.prototype.next,q.prototype.reset=q.prototype.reset,q.className="ListIteratorBackwards",(t=Y.prototype).xb=function(){var e=this.Ja;999999999<++e&&(e=0),this.Ja=e},t.freeze=function(){return this._isFrozen=!0,this},t.ka=function(){return this._isFrozen=!1,this},t.toString=function(){return"List()#"+te(this)},t.add=function(e){return null===e||(this._isFrozen&&S(this,e),this.s.push(e),this.xb()),this},t.push=function(e){this.add(e)},t.addAll=function(e){if(null===e)return this;this._isFrozen&&S(this);var t=this.s;if(P(e))for(var n=e.length,i=0;ie||e>=t.length)&&k(e,"0 <= i < length",Y,"elt:i"),t[e]},t.get=function(e){return this.M(e)},t.cd=function(e,t){var n=this.s;(0>e||e>=n.length)&&k(e,"0 <= i < length",Y,"setElt:i"),this._isFrozen&&S(this,e),n[e]=t},t.set=function(e,t){this.cd(e,t)},t.first=function(){var e=this.s;return 0===e.length?null:e[0]},t.jc=function(){var e=this.s,t=e.length;return 0e&&k(e,">= 0",Y,"insertAt:i"),this._isFrozen&&S(this,e);var n=this.s;e>=n.length?n.push(t):n.splice(e,0,t),this.xb()},t.remove=function(e){if(null===e)return!1;this._isFrozen&&S(this,e);var t=this.s;return-1!==(e=t.indexOf(e))&&(e===t.length-1?t.pop():t.splice(e,1),this.xb(),!0)},t.delete=function(e){return this.remove(e)},t.mb=function(e){var t=this.s;(0>e||e>=t.length)&&k(e,"0 <= i < length",Y,"removeAt:i"),this._isFrozen&&S(this,e),e===t.length-1?t.pop():t.splice(e,1),this.xb()},t.removeRange=function(e,t){var n=this.s,i=n.length;if(0>e)e=0;else if(e>=i)return this;if(0>t)return this;if(t>=i&&(t=i-1),e>t)return this;this._isFrozen&&S(this);for(var r=e,o=t+1;o=o)return this;if((0>t||t>=r-1)&&k(t,"0 <= from < length",Y,"sortRange:from"),2===o)return 0=r)i.sort(e);else for((t=i.slice(0,n)).sort(e),e=0;e=r)for((n=i.slice(t)).sort(e),e=t;e=this.s.length)return U;var e=this.Sa;return null!==e?(e.reset(),e):new W(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return U;var e=this.Hg;return null!==e?(e.reset(),e):new q(this)}}}),Y.prototype.reverse=Y.prototype.reverse,Y.prototype.sortRange=Y.prototype.zi,Y.prototype.sort=Y.prototype.sort,Y.prototype.toSet=Y.prototype.Iv,Y.prototype.toArray=Y.prototype.Fa,Y.prototype.removeRange=Y.prototype.removeRange,Y.prototype.removeAt=Y.prototype.mb,Y.prototype.delete=Y.prototype.delete,Y.prototype.remove=Y.prototype.remove,Y.prototype.insertAt=Y.prototype.Gb,Y.prototype.pop=Y.prototype.pop,Y.prototype.last=Y.prototype.jc,Y.prototype.first=Y.prototype.first,Y.prototype.set=Y.prototype.set,Y.prototype.setElt=Y.prototype.cd,Y.prototype.get=Y.prototype.get,Y.prototype.elt=Y.prototype.M,Y.prototype.indexOf=Y.prototype.indexOf,Y.prototype.has=Y.prototype.has,Y.prototype.contains=Y.prototype.contains,Y.prototype.clear=Y.prototype.clear,Y.prototype.addAll=Y.prototype.addAll,Y.prototype.push=Y.prototype.push,Y.prototype.add=Y.prototype.add,Y.prototype.thaw=Y.prototype.ka,Y.prototype.freeze=Y.prototype.freeze,Y.className="List",X.prototype.reset=function(){var e=this.eg;e.Sa=null,this.qa=e.Ja,this.sa=null},X.prototype.next=function(){var e=this.eg;if(e.Ja!==this.qa&&null===this.key)return!1;var t=this.sa;return null!==(t=null===t?e.ea:t.va)?(this.sa=t,this.value=t.value,this.key=t.key,!0):(this.de(),!1)},X.prototype.Ad=function(){return this.next()},X.prototype.first=function(){var e=this.eg;if(this.qa=e.Ja,null!==(e=e.ea)){this.sa=e;var t=e.value;return this.key=e.key,this.value=t}return null},X.prototype.any=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;null!==t;){if(e(t.value))return!0;t=t.va}return!1},X.prototype.all=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;null!==t;){if(!e(t.value))return!1;t=t.va}return!0},X.prototype.each=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;null!==t;)e(t.value),t=t.va;return this},X.prototype.map=function(e){var t=this.eg;t.Sa=null;var n=new Y;for(t=t.ea;null!==t;)n.add(e(t.value)),t=t.va;return n.iterator},X.prototype.filter=function(e){var t=this.eg;t.Sa=null;var n=new Y;for(t=t.ea;null!==t;){var i=t.value;e(i)&&n.add(i),t=t.va}return n.iterator},X.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},X.prototype.toString=function(){return null!==this.sa?"SetIterator@"+this.sa.value:"SetIterator"},d.Object.defineProperties(X.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),X.prototype.first=X.prototype.first,X.prototype.hasNext=X.prototype.Ad,X.prototype.next=X.prototype.next,X.prototype.reset=X.prototype.reset,X.className="SetIterator",(t=Q.prototype).xb=function(){var e=this.Ja;999999999<++e&&(e=0),this.Ja=e},t.freeze=function(){return this._isFrozen=!0,this},t.ka=function(){return this._isFrozen=!1,this},t.toString=function(){return"Set()#"+te(this)},t.add=function(e){if(null===e)return this;this._isFrozen&&S(this,e);var t=e;return C(e)&&(t=ee(e)),void 0===this.Tb[t]&&(this.Sb++,e=new he(e,e),this.Tb[t]=e,null===(t=this.kf)?this.ea=e:(e.ll=t,t.va=e),this.kf=e,this.xb()),this},t.addAll=function(e){if(null===e)return this;if(this._isFrozen&&S(this),P(e))for(var t=e.length,n=0;n=this.Sb)return U;var e=this.Sa;return null!==e?(e.reset(),e):new X(this)}}}),Q.prototype.toList=Q.prototype.Hv,Q.prototype.toArray=Q.prototype.Fa,Q.prototype.clear=Q.prototype.clear,Q.prototype.retainAll=Q.prototype.pA,Q.prototype.removeAll=Q.prototype.hp,Q.prototype.delete=Q.prototype.delete,Q.prototype.remove=Q.prototype.remove,Q.prototype.first=Q.prototype.first,Q.prototype.containsAny=Q.prototype.Ty,Q.prototype.containsAll=Q.prototype.Sy,Q.prototype.has=Q.prototype.has,Q.prototype.contains=Q.prototype.contains,Q.prototype.addAll=Q.prototype.addAll,Q.prototype.add=Q.prototype.add,Q.prototype.thaw=Q.prototype.ka,Q.prototype.freeze=Q.prototype.freeze;var ne,ie,re,oe,ae,se=1;function le(e){this.ma=e,this.qa=e.Ja,this.sa=null}function ce(e){Q.call(this),J(this),this._isFrozen=!0,this.ma=e}function ue(e){this.ma=e,e.jf=null,this.qa=e.Ja,this.sa=null}function he(e,t){this.key=e,this.value=t,this.ll=this.va=null}function de(e){this.ma=e,e.Sa=null,this.qa=e.Ja,this.sa=null}function pe(e){J(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,"string"==typeof e&&x("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),void 0!==e&&this.addAll(e)}function fe(e,t){void 0===e?this.y=this.x=0:"number"==typeof e&&"number"==typeof t?(this.x=e,this.y=t):x("Invalid arguments to Point constructor: "+e+", "+t),this._isFrozen=!1}function ge(e){if("string"==typeof e){e=e.split(" ");for(var t=0,n=0;""===e[t];)t++;var i=e[t++];i&&(n=parseFloat(i));for(var r=0;""===e[t];)t++;return(i=e[t++])&&(r=parseFloat(i)),new fe(n,r)}return new fe}function me(e){return e.x.toString()+" "+e.y.toString()}function ve(e,t){if(0===e)return 0t?270:0;if(0===t)return 0e?n=0>t?n+180:180-n:0>t&&(n=360-n),n}function ye(e,t){return t.Cd(e),e}function be(e,t,n,i,r,o){var a=r-n,s=o-i,l=a*a+s*s,c=-(n-=e)*a-(i-=t)*s;return 0>=c||c>=l?(a=r-e,s=o-t,Math.min(n*n+i*i,a*a+s*s)):(e=a*i-s*n)*e/l}function we(e,t,n,i){return(e=n-e)*e+(t=i-t)*t}function xe(e,t,n,i){return t=i-t,0===(e=n-e)?0t?270:0:0===t?0e?i=0>t?i+180:180-i:0>t&&(i=360-i),i)}Q.className="Set",Q.uniqueHash=J,Q.hashIdUnique=ee,Q.hashId=te,le.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},le.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&null===this.key)return!1;var t=this.sa;return null!==(t=null===t?e.ea:t.va)?(this.sa=t,this.value=this.key=e=t.key,!0):(this.de(),!1)},le.prototype.Ad=function(){return this.next()},le.prototype.first=function(){var e=this.ma;return this.qa=e.Ja,null!==(e=e.ea)?(this.sa=e,this.value=this.key=e=e.key):null},le.prototype.any=function(e){var t=this.ma;for(this.sa=null,t=t.ea;null!==t;){if(e(t.key))return!0;t=t.va}return!1},le.prototype.all=function(e){var t=this.ma;for(this.sa=null,t=t.ea;null!==t;){if(!e(t.key))return!1;t=t.va}return!0},le.prototype.each=function(e){var t=this.ma;for(this.sa=null,t=t.ea;null!==t;)e(t.key),t=t.va;return this},le.prototype.map=function(e){var t=this.ma;this.sa=null;var n=new Y;for(t=t.ea;null!==t;)n.add(e(t.key)),t=t.va;return n.iterator},le.prototype.filter=function(e){var t=this.ma;this.sa=null;var n=new Y;for(t=t.ea;null!==t;){var i=t.key;e(i)&&n.add(i),t=t.va}return n.iterator},le.prototype.de=function(){this.value=this.key=null,this.qa=-1},le.prototype.toString=function(){return null!==this.sa?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},d.Object.defineProperties(le.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),le.prototype.first=le.prototype.first,le.prototype.hasNext=le.prototype.Ad,le.prototype.next=le.prototype.next,le.prototype.reset=le.prototype.reset,le.className="MapKeySetIterator",h(ce,Q),(t=ce.prototype).freeze=function(){return this},t.ka=function(){return this},t.toString=function(){return"MapKeySet("+this.ma.toString()+")"},t.add=function(){x("This Set is read-only: "+this.toString())},t.contains=function(e){return this.ma.contains(e)},t.has=function(e){return this.contains(e)},t.remove=function(){x("This Set is read-only: "+this.toString())},t.delete=function(e){return this.remove(e)},t.clear=function(){x("This Set is read-only: "+this.toString())},t.first=function(){var e=this.ma.ea;return null!==e?e.key:null},ce.prototype.any=function(e){for(var t=this.ma.ea;null!==t;){if(e(t.key))return!0;t=t.va}return!1},ce.prototype.all=function(e){for(var t=this.ma.ea;null!==t;){if(!e(t.key))return!1;t=t.va}return!0},ce.prototype.each=function(e){for(var t=this.ma.ea;null!==t;)e(t.key),t=t.va;return this},ce.prototype.map=function(e){for(var t=new Q,n=this.ma.ea;null!==n;)t.add(e(n.key)),n=n.va;return t},ce.prototype.filter=function(e){for(var t=new Q,n=this.ma.ea;null!==n;){var i=n.key;e(i)&&t.add(i),n=n.va}return t},ce.prototype.copy=function(){return new ce(this.ma)},ce.prototype.Iv=function(){var e,t=new Q,n=this.ma.Tb;for(e in n)t.add(n[e].key);return t},ce.prototype.Fa=function(){var e,t=this.ma.Tb,n=Array(this.ma.Sb),i=0;for(e in t)n[i]=t[e].key,i++;return n},ce.prototype.Hv=function(){var e,t=new Y,n=this.ma.Tb;for(e in n)t.add(n[e].key);return t},d.Object.defineProperties(ce.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?U:new le(this.ma)}}}),ce.prototype.toList=ce.prototype.Hv,ce.prototype.toArray=ce.prototype.Fa,ce.prototype.toSet=ce.prototype.Iv,ce.prototype.first=ce.prototype.first,ce.prototype.clear=ce.prototype.clear,ce.prototype.delete=ce.prototype.delete,ce.prototype.remove=ce.prototype.remove,ce.prototype.has=ce.prototype.has,ce.prototype.contains=ce.prototype.contains,ce.prototype.add=ce.prototype.add,ce.prototype.thaw=ce.prototype.ka,ce.prototype.freeze=ce.prototype.freeze,ce.className="MapKeySet",ue.prototype.reset=function(){var e=this.ma;e.jf=null,this.qa=e.Ja,this.sa=null},ue.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&null===this.key)return!1;var t=this.sa;return null!==(t=null===t?e.ea:t.va)?(this.sa=t,this.value=t.value,this.key=t.key,!0):(this.de(),!1)},ue.prototype.Ad=function(){return this.next()},ue.prototype.first=function(){var e=this.ma;if(this.qa=e.Ja,null!==(e=e.ea)){this.sa=e;var t=e.value;return this.key=e.key,this.value=t}return null},ue.prototype.any=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;null!==t;){if(e(t.value))return!0;t=t.va}return!1},ue.prototype.all=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;null!==t;){if(!e(t.value))return!1;t=t.va}return!0},ue.prototype.each=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;null!==t;)e(t.value),t=t.va;return this},ue.prototype.map=function(e){var t=this.ma;this.sa=t.jf=null;var n=new Y;for(t=t.ea;null!==t;)n.add(e(t.value)),t=t.va;return n.iterator},ue.prototype.filter=function(e){var t=this.ma;this.sa=t.jf=null;var n=new Y;for(t=t.ea;null!==t;){var i=t.value;e(i)&&n.add(i),t=t.va}return n.iterator},ue.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},ue.prototype.toString=function(){return null!==this.sa?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},d.Object.defineProperties(ue.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ue.prototype.first=ue.prototype.first,ue.prototype.hasNext=ue.prototype.Ad,ue.prototype.next=ue.prototype.next,ue.prototype.reset=ue.prototype.reset,ue.className="MapValueSetIterator",he.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},he.className="KeyValuePair",de.prototype.reset=function(){var e=this.ma;e.Sa=null,this.qa=e.Ja,this.sa=null},de.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&null===this.key)return!1;var t=this.sa;return null!==(t=null===t?e.ea:t.va)?(this.sa=t,this.key=t.key,this.value=t.value,!0):(this.de(),!1)},de.prototype.Ad=function(){return this.next()},de.prototype.first=function(){var e=this.ma;return this.qa=e.Ja,null!==(e=e.ea)?(this.sa=e,this.key=e.key,this.value=e.value,e):null},de.prototype.any=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;null!==t;){if(e(t))return!0;t=t.va}return!1},de.prototype.all=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;null!==t;){if(!e(t))return!1;t=t.va}return!0},de.prototype.each=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;null!==t;)e(t),t=t.va;return this},de.prototype.map=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new Y;for(t=t.ea;null!==t;)n.add(e(t)),t=t.va;return n.iterator},de.prototype.filter=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new Y;for(t=t.ea;null!==t;)e(t)&&n.add(t),t=t.va;return n.iterator},de.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},de.prototype.toString=function(){return null!==this.sa?"MapIterator@"+this.sa:"MapIterator"},d.Object.defineProperties(de.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),de.prototype.first=de.prototype.first,de.prototype.hasNext=de.prototype.Ad,de.prototype.next=de.prototype.next,de.prototype.reset=de.prototype.reset,de.className="MapIterator",(t=pe.prototype).xb=function(){var e=this.Ja;999999999<++e&&(e=0),this.Ja=e},t.freeze=function(){return this._isFrozen=!0,this},t.ka=function(){return this._isFrozen=!1,this},t.toString=function(){return"Map()#"+te(this)},t.add=function(e,t){this._isFrozen&&S(this,e);var n=e;C(e)&&(n=ee(e));var i=this.Tb[n];return void 0===i?(this.Sb++,e=new he(e,t),this.Tb[n]=e,null===(n=this.kf)?this.ea=e:(e.ll=n,n.va=e),this.kf=e,this.xb()):i.value=t,this},t.set=function(e,t){return this.add(e,t)},t.addAll=function(e){if(null===e)return this;if(P(e))for(var t=e.length,n=0;n=this.count)return U;var e=this.Sa;return null!==e?(e.reset(),e):new de(this)}},iteratorKeys:{get:function(){return 0>=this.count?U:new le(this)}},iteratorValues:{get:function(){if(0>=this.count)return U;var e=this.jf;return null!==e?(e.reset(),e):new ue(this)}}}),pe.prototype.toKeySet=pe.prototype.Lf,pe.prototype.toArray=pe.prototype.Fa,pe.prototype.clear=pe.prototype.clear,pe.prototype.delete=pe.prototype.delete,pe.prototype.remove=pe.prototype.remove,pe.prototype.get=pe.prototype.get,pe.prototype.getValue=pe.prototype.I,pe.prototype.has=pe.prototype.has,pe.prototype.contains=pe.prototype.contains,pe.prototype.first=pe.prototype.first,pe.prototype.addAll=pe.prototype.addAll,pe.prototype.set=pe.prototype.set,pe.prototype.add=pe.prototype.add,pe.prototype.thaw=pe.prototype.ka,pe.prototype.freeze=pe.prototype.freeze,pe.className="Map",fe.prototype.assign=function(e){return this.x=e.x,this.y=e.y,this},fe.prototype.h=function(e,t){return this.x=e,this.y=t,this},fe.prototype.sg=function(e,t){return this.x=e,this.y=t,this},fe.prototype.set=function(e){return this.x=e.x,this.y=e.y,this},fe.prototype.copy=function(){var e=new fe;return e.x=this.x,e.y=this.y,e},(t=fe.prototype).ja=function(){return this._isFrozen=!0,Object.freeze(this),this},t.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},t.freeze=function(){return this._isFrozen=!0,this},t.ka=function(){return Object.isFrozen(this)&&x("cannot thaw constant: "+this),this._isFrozen=!1,this},t.toString=function(){return"Point("+this.x+","+this.y+")"},t.D=function(e){return e instanceof fe&&(this.x===e.x&&this.y===e.y)},t.hi=function(e,t){return this.x===e&&this.y===t},t.Xa=function(e){return Zt.B(this.x,e.x)&&Zt.B(this.y,e.y)},t.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.re=function(e){return this.x-=e.x,this.y-=e.y,this},t.offset=function(e,t){return this.x+=e,this.y+=t,this},fe.prototype.rotate=function(e){if(0===e)return this;var t=this.x,n=this.y;if(0===t&&0===n)return this;if(360<=e?e-=360:0>e&&(e+=360),90===e){e=0;var i=1}else 180===e?(e=-1,i=0):270===e?(e=0,i=-1):(i=e*Math.PI/180,e=Math.cos(i),i=Math.sin(i));return this.x=e*t-i*n,this.y=i*t+e*n,this},(t=fe.prototype).scale=function(e,t){return this.x*=e,this.y*=t,this},t.Bf=function(e){var t=e.x-this.x;return t*t+(e=e.y-this.y)*e},t.zd=function(e,t){return(e-=this.x)*e+(t-=this.y)*t},t.normalize=function(){var e=this.x,t=this.y,n=Math.sqrt(e*e+t*t);return 0t.width+10+10+r||r>n+i)&&(n=e.height,e=e.y,i=t.y-10,!(e>t.height+10+10+i||i>n+e))}function He(e,t,n,i,r){var o=Math.min(e.x,t),a=Math.min(e.y,n);return t=Math.max(e.x+e.width,t+i),n=Math.max(e.y+e.height,n+r),e.x=o,e.y=a,e.width=t-o,e.height=n-a,e}function Ze(e,t,n,i,r,o,a,s){return void 0===a&&(a=0),void 0===s&&(s=0),e<=r&&r+a<=e+n&&t<=o&&o+s<=t+i}function Ke(e,t,n,i,r,o,a,s){return!(e>a+r||r>n+e)&&!(t>s+o||o>i+t)}Ae.className="Size",Ae.parse=Te,Ae.stringify=De,Ae.ZeroSize=Se=new Ae(0,0).ja(),Ae.OneSize=ke=new Ae(1,1).ja(),Ae.SixSize=_e=new Ae(6,6).ja(),Ae.EightSize=Ce=new Ae(8,8).ja(),Ae.TenSize=Pe=new Ae(10,10).ja(),Ae.InfiniteSize=Ee=new Ae(1/0,1/0).ja(),Ae.NoSize=Me=new Ae(NaN,NaN).ja(),Ae.parse=Te,Ae.stringify=De,(t=Ie.prototype).assign=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},t.h=function(e,t,n,i){return this.x=e,this.y=t,this.width=n,this.height=i,this},t.sg=function(e,t,n,i){return this.x=e,this.y=t,this.width=n,this.height=i,this},t.set=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},t.dd=function(e){return this.x=e.x,this.y=e.y,this},t.tA=function(e){return this.width=e.width,this.height=e.height,this},Ie.prototype.copy=function(){var e=new Ie;return e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e},(t=Ie.prototype).ja=function(){return this._isFrozen=!0,Object.freeze(this),this},t.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},t.freeze=function(){return this._isFrozen=!0,this},t.ka=function(){return Object.isFrozen(this)&&x("cannot thaw constant: "+this),this._isFrozen=!1,this},t.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},t.D=function(e){return e instanceof Ie&&(this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height)},t.hi=function(e,t,n,i){return this.x===e&&this.y===t&&this.width===n&&this.height===i},t.Xa=function(e){return Zt.B(this.x,e.x)&&Zt.B(this.y,e.y)&&Zt.B(this.width,e.width)&&Zt.B(this.height,e.height)},t.ca=function(e){return this.x<=e.x&&this.x+this.width>=e.x&&this.y<=e.y&&this.y+this.height>=e.y},t.Re=function(e){return this.x<=e.x&&e.x+e.width<=this.x+this.width&&this.y<=e.y&&e.y+e.height<=this.y+this.height},t.contains=function(e,t,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),this.x<=e&&e+n<=this.x+this.width&&this.y<=t&&t+i<=this.y+this.height},t.offset=function(e,t){return this.x+=e,this.y+=t,this},t.Bc=function(e,t){return ze(this,t,e,t,e)},t.Co=function(e){return ze(this,e.top,e.right,e.bottom,e.left)},t.Fv=function(e){return ze(this,-e.top,-e.right,-e.bottom,-e.left)},t.Hz=function(e,t,n,i){return ze(this,e,t,n,i)},t.Ex=function(e){return je(this,e.x,e.y,e.width,e.height)},t.Uu=function(e,t,n,i){return je(this,e,t,n,i)},t.Yc=function(e){return this.Vu(e.x,e.y,e.width,e.height)},t.Vu=function(e,t,n,i){var r=this.width,o=this.x;return!(1/0!==r&&1/0!==n&&(r+=o,n+=e,isNaN(n)||isNaN(r)||o>n||e>r))&&(e=this.height,n=this.y,!(1/0!==e&&1/0!==i&&(e+=n,i+=t,isNaN(i)||isNaN(e)||n>i||t>e)))},t.Ye=function(e){return He(this,e.x,e.y,0,0)},t.ed=function(e){return He(this,e.x,e.y,e.width,e.height)},t.Kv=function(e,t,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),He(this,e,t,n,i)},t.yi=function(e,t,n){return this.x=e-n.offsetX-n.x*this.width,this.y=t-n.offsetY-n.y*this.height,this},t.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.Mz=function(){return 0===this.width&&0===this.height},Ie.alloc=function(){var e=Ve.pop();return void 0===e?new Ie:e},Ie.allocAt=function(e,t,n,i){var r=Ve.pop();return void 0===r?new Ie(e,t,n,i):r.h(e,t,n,i)},Ie.free=function(e){Ve.push(e)},d.Object.defineProperties(Ie.prototype,{left:{get:function(){return this.x},set:function(e){this.x=e}},top:{get:function(){return this.y},set:function(e){this.y=e}},right:{get:function(){return this.x+this.width},set:function(e){this.x+=e-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(e){this.y+=e-(this.y+this.height)}},position:{get:function(){return new fe(this.x,this.y)},set:function(e){this.x=e.x,this.y=e.y}},size:{get:function(){return new Ae(this.width,this.height)},set:function(e){this.width=e.width,this.height=e.height}},center:{get:function(){return new fe(this.x+this.width/2,this.y+this.height/2)},set:function(e){this.x=e.x-this.width/2,this.y=e.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(e){this.x=e-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(e){this.y=e-this.height/2}}}),Ie.prototype.isEmpty=Ie.prototype.Mz,Ie.prototype.isReal=Ie.prototype.w,Ie.intersectsLineSegment=function(e,t,n,i,r,o,a,s){return Zt.Fx(e,t,n,i,r,o,a,s)},Ie.prototype.setSpot=Ie.prototype.yi,Ie.prototype.union=Ie.prototype.Kv,Ie.prototype.unionRect=Ie.prototype.ed,Ie.prototype.unionPoint=Ie.prototype.Ye,Ie.prototype.intersects=Ie.prototype.Vu,Ie.prototype.intersectsRect=Ie.prototype.Yc,Ie.prototype.intersect=Ie.prototype.Uu,Ie.prototype.intersectRect=Ie.prototype.Ex,Ie.prototype.grow=Ie.prototype.Hz,Ie.prototype.subtractMargin=Ie.prototype.Fv,Ie.prototype.addMargin=Ie.prototype.Co,Ie.prototype.inflate=Ie.prototype.Bc,Ie.prototype.offset=Ie.prototype.offset,Ie.prototype.contains=Ie.prototype.contains,Ie.prototype.containsRect=Ie.prototype.Re,Ie.prototype.containsPoint=Ie.prototype.ca,Ie.prototype.equalsApprox=Ie.prototype.Xa,Ie.prototype.equalTo=Ie.prototype.hi,Ie.prototype.equals=Ie.prototype.D,Ie.prototype.setSize=Ie.prototype.tA,Ie.prototype.setPoint=Ie.prototype.dd,Ie.prototype.set=Ie.prototype.set,Ie.prototype.setTo=Ie.prototype.sg;var Ge,Ue,Ve=[];function We(e,t,n,i){void 0===e?this.left=this.bottom=this.right=this.top=0:void 0===t?this.left=this.bottom=this.right=this.top=e:void 0===n?(this.top=e,this.right=t,this.bottom=e,this.left=t):void 0!==i?(this.top=e,this.right=t,this.bottom=n,this.left=i):x("Invalid arguments to Margin constructor: "+e+", "+t+", "+n+", "+i),this._isFrozen=!1}function qe(e){if("string"==typeof e){e=e.split(" ");for(var t=0,n=NaN;""===e[t];)t++;var i=e[t++];if(i&&(n=parseFloat(i)),isNaN(n))return new We;for(var r=NaN;""===e[t];)t++;if((i=e[t++])&&(r=parseFloat(i)),isNaN(r))return new We(n);for(var o=NaN;""===e[t];)t++;if((i=e[t++])&&(o=parseFloat(i)),isNaN(o))return new We(n,r);for(var a=NaN;""===e[t];)t++;return(i=e[t++])&&(a=parseFloat(i)),isNaN(a)?new We(n,r):new We(n,r,o,a)}return new We}function Ye(e){return e.top.toString()+" "+e.right.toString()+" "+e.bottom.toString()+" "+e.left.toString()}Ie.className="Rect",Ie.parse=Re,Ie.stringify=Oe,Ie.contains=Ze,Ie.intersects=Ke,Ie.ZeroRect=Ge=new Ie(0,0,0,0).ja(),Ie.NoRect=Ue=new Ie(NaN,NaN,NaN,NaN).ja(),Ie.parse=Re,Ie.stringify=Oe,Ie.contains=Ze,Ie.intersects=Ke,We.prototype.assign=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},We.prototype.sg=function(e,t,n,i){return this.top=e,this.right=t,this.bottom=n,this.left=i,this},We.prototype.set=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},We.prototype.copy=function(){var e=new We;return e.top=this.top,e.right=this.right,e.bottom=this.bottom,e.left=this.left,e},(t=We.prototype).ja=function(){return this._isFrozen=!0,Object.freeze(this),this},t.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},t.freeze=function(){return this._isFrozen=!0,this},t.ka=function(){return Object.isFrozen(this)&&x("cannot thaw constant: "+this),this._isFrozen=!1,this},t.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},t.D=function(e){return e instanceof We&&(this.top===e.top&&this.right===e.right&&this.bottom===e.bottom&&this.left===e.left)},t.hi=function(e,t,n,i){return this.top===e&&this.right===t&&this.bottom===n&&this.left===i},t.Xa=function(e){return Zt.B(this.top,e.top)&&Zt.B(this.right,e.right)&&Zt.B(this.bottom,e.bottom)&&Zt.B(this.left,e.left)},t.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},We.alloc=function(){var e=Bt.pop();return void 0===e?new We:e},We.free=function(e){Bt.push(e)},We.prototype.isReal=We.prototype.w,We.prototype.equalsApprox=We.prototype.Xa,We.prototype.equalTo=We.prototype.hi,We.prototype.equals=We.prototype.D,We.prototype.set=We.prototype.set,We.prototype.setTo=We.prototype.sg;var Xe,Qe,Je,et,tt,nt,it,rt,ot,at,st,lt,ct,ut,ht,dt,pt,ft,gt,mt,vt,yt,bt,wt,xt,St,kt,_t,Ct,Pt,Et,Mt,Lt,At,Tt,Dt,Nt,It,Bt=[];function Rt(e,t,n,i){void 0===e?this.offsetY=this.offsetX=this.y=this.x=0:(void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0),this.x=e,this.y=t,this.offsetX=n,this.offsetY=i),this._isFrozen=!1}function Ot(e,t){return e.x=NaN,e.y=NaN,e.offsetX=t,e}function Ft(e){if("string"==typeof e){if("None"===(e=e.trim()))return Je;if("TopLeft"===e)return et;if("Top"===e||"TopCenter"===e||"MiddleTop"===e)return tt;if("TopRight"===e)return nt;if("Left"===e||"LeftCenter"===e||"MiddleLeft"===e)return it;if("Center"===e)return rt;if("Right"===e||"RightCenter"===e||"MiddleRight"===e)return ot;if("BottomLeft"===e)return at;if("Bottom"===e||"BottomCenter"===e||"MiddleBottom"===e)return st;if("BottomRight"===e)return lt;if("TopSide"===e)return ct;if("LeftSide"===e)return ut;if("RightSide"===e)return ht;if("BottomSide"===e)return dt;if("TopBottomSides"===e)return pt;if("LeftRightSides"===e)return ft;if("TopLeftSides"===e)return gt;if("TopRightSides"===e)return mt;if("BottomLeftSides"===e)return vt;if("BottomRightSides"===e)return yt;if("NotTopSide"===e)return bt;if("NotLeftSide"===e)return wt;if("NotRightSide"===e)return xt;if("NotBottomSide"===e)return St;if("AllSides"===e)return kt;if("Default"===e)return _t;e=e.split(" ");for(var t=0,n=0;""===e[t];)t++;var i=e[t++];void 0!==i&&0e&&(e+=360),0===e)return this;if(this.translate(t,n),90===e){e=0;var i=1}else 180===e?(e=-1,i=0):270===e?(e=0,i=-1):(i=e*Math.PI/180,e=Math.cos(i),i=Math.sin(i));var r=this.m12*e+this.m22*i,o=this.m11*-i+this.m21*e,a=this.m12*-i+this.m22*e;return this.m11=this.m11*e+this.m21*i,this.m12=r,this.m21=o,this.m22=a,this.translate(-t,-n),this},(t=$t.prototype).translate=function(e,t){return this.dx+=this.m11*e+this.m21*t,this.dy+=this.m12*e+this.m22*t,this},t.scale=function(e,t){return void 0===t&&(t=e),this.m11*=e,this.m12*=e,this.m21*=t,this.m22*=t,this},t.Ga=function(e){var t=e.x,n=e.y;return e.h(t*this.m11+n*this.m21+this.dx,t*this.m12+n*this.m22+this.dy)},t.Cd=function(e){var t=1/(this.m11*this.m22-this.m12*this.m21),n=e.x,i=e.y;return e.h(n*this.m22*t+i*-this.m21*t+t*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*t+i*this.m11*t+t*(this.m12*this.dx-this.m11*this.dy))},t.Eu=function(e){var t=1/(this.m11*this.m22-this.m12*this.m21),n=1.25*e.x,i=1.2*e.y;return e.h(n*this.m22*t+i*-this.m21*t+t*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*t+i*this.m11*t+t*(this.m12*this.dx-this.m11*this.dy))},t.pp=function(e){var t=e.x,n=e.y,i=t+e.width,r=n+e.height,o=this.m11,a=this.m12,s=this.m21,l=this.m22,c=this.dx,u=this.dy,h=t*o+n*s+c,d=t*a+n*l+u,p=i*o+n*s+c,f=i*a+n*l+u;return n=t*o+r*s+c,t=t*a+r*l+u,o=i*o+r*s+c,i=i*a+r*l+u,r=Math.min(h,p),h=Math.max(h,p),p=Math.min(d,f),d=Math.max(d,f),r=Math.min(r,n),h=Math.max(h,n),p=Math.min(p,t),d=Math.max(d,t),r=Math.min(r,o),h=Math.max(h,o),p=Math.min(p,i),d=Math.max(d,i),e.h(r,p,h-r,d-p),e},$t.alloc=function(){var e=Ht.pop();return void 0===e?new $t:e},$t.free=function(e){Ht.push(e)},$t.prototype.transformRect=$t.prototype.pp,$t.prototype.transformPoint=$t.prototype.Ga,$t.prototype.scale=$t.prototype.scale,$t.prototype.translate=$t.prototype.translate,$t.prototype.rotate=$t.prototype.rotate,$t.prototype.invert=$t.prototype.Vj,$t.prototype.multiplyInverted=$t.prototype.bv,$t.prototype.multiply=$t.prototype.multiply,$t.prototype.reset=$t.prototype.reset,$t.prototype.isIdentity=$t.prototype.ws,$t.prototype.equals=$t.prototype.D,$t.prototype.setTransform=$t.prototype.setTransform,$t.prototype.set=$t.prototype.set;var Ht=[];$t.className="Transform",$t.xF="54a702f3e53909c447824c6706603faf4c";var Zt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(e){if(0>=e)return 0;var t=Zt.Uv;if(null===t){t=[];for(var n=0;2e3>=n;n++)t[n]=Math.sqrt(n);Zt.Uv=t}return 1>e?2e3>=(n=1/e)?1/t[0|n]:Math.sqrt(e):2e3>=e?t[0|e]:Math.sqrt(e)},B:function(e,t){return.5>(e-=t)&&-.5(e-=t)&&-5e-8=r&&(r=1e-6),eu-c){if(!(e-n>r||n-e>r))return!0;if((o=(i-t)/(n-e)*(o-e)+t)-r<=a&&a<=o+r)return!0}else{if(!(t-i>r||i-t>r))return!0;if((a=(n-e)/(i-t)*(a-t)+e)-r<=o&&o<=a+r)return!0}return!1},cs:function(e,t,n,i,r,o,a,s,l,c,u,h){if(Zt.Yb(e,t,a,s,h,n,i)&&Zt.Yb(e,t,a,s,h,r,o))return Zt.Yb(e,t,a,s,h,c,u);var d=(e+n)/2,p=(t+i)/2,f=(n+r)/2,g=(i+o)/2,m=((i=(d+f)/2)+(f=(f+(r=(r+a)/2))/2))/2,v=((n=(p+g)/2)+(g=(g+(o=(o+s)/2))/2))/2;return Zt.cs(e,t,d,p,i,n,m,v,l,c,u,h)||Zt.cs(m,v,f,g,r,o,a,s,l,c,u,h)},ax:function(e,t,n,i,r,o,a,s,l){var c=(n+r)/2,u=(i+o)/2;return l.h((((e+n)/2+c)/2+(c+(r+a)/2)/2)/2,(((t+i)/2+u)/2+(u+(o+s)/2)/2)/2),l},My:function(e,t,n,i,r,o,a,s){var l=(n+r)/2,c=(i+o)/2;return xe(((e+n)/2+l)/2,((t+i)/2+c)/2,(l+(r+a)/2)/2,(c+(o+s)/2)/2)},Dl:function(e,t,n,i,r,o,a,s,l,c){if(Zt.Yb(e,t,a,s,l,n,i)&&Zt.Yb(e,t,a,s,l,r,o))He(c,e,t,0,0),He(c,a,s,0,0);else{var u=(e+n)/2,h=(t+i)/2,d=(n+r)/2,p=(i+o)/2,f=((i=(u+d)/2)+(d=(d+(r=(r+a)/2))/2))/2,g=((n=(h+p)/2)+(p=(p+(o=(o+s)/2))/2))/2;Zt.Dl(e,t,u,h,i,n,f,g,l,c),Zt.Dl(f,g,d,p,r,o,a,s,l,c)}return c},Qe:function(e,t,n,i,r,o,a,s,l,c){if(Zt.Yb(e,t,a,s,l,n,i)&&Zt.Yb(e,t,a,s,l,r,o))0===c.length&&(c.push(e),c.push(t)),c.push(a),c.push(s);else{var u=(e+n)/2,h=(t+i)/2,d=(n+r)/2,p=(i+o)/2,f=((i=(u+d)/2)+(d=(d+(r=(r+a)/2))/2))/2,g=((n=(h+p)/2)+(p=(p+(o=(o+s)/2))/2))/2;Zt.Qe(e,t,u,h,i,n,f,g,l,c),Zt.Qe(f,g,d,p,r,o,a,s,l,c)}return c},jv:function(e,t,n,i,r,o,a,s,l,c){if(Zt.Yb(e,t,r,o,c,n,i))return Zt.Yb(e,t,r,o,c,s,l);var u=(e+n)/2,h=(t+i)/2,d=(u+(n=(n+r)/2))/2,p=(h+(i=(i+o)/2))/2;return Zt.jv(e,t,u,h,d,p,a,s,l,c)||Zt.jv(d,p,n,i,r,o,a,s,l,c)},OA:function(e,t,n,i,r,o,a){return a.h(((e+n)/2+(n+r)/2)/2,((t+i)/2+(i+o)/2)/2),a},iv:function(e,t,n,i,r,o,a,s){if(Zt.Yb(e,t,r,o,a,n,i))He(s,e,t,0,0),He(s,r,o,0,0);else{var l=(e+n)/2,c=(t+i)/2,u=(l+(n=(n+r)/2))/2,h=(c+(i=(i+o)/2))/2;Zt.iv(e,t,l,c,u,h,a,s),Zt.iv(u,h,n,i,r,o,a,s)}return s},ep:function(e,t,n,i,r,o,a,s){if(Zt.Yb(e,t,r,o,a,n,i))0===s.length&&(s.push(e),s.push(t)),s.push(r),s.push(o);else{var l=(e+n)/2,c=(t+i)/2,u=(l+(n=(n+r)/2))/2,h=(c+(i=(i+o)/2))/2;Zt.ep(e,t,l,c,u,h,a,s),Zt.ep(u,h,n,i,r,o,a,s)}return s},Eo:function(e,t,n,i,r,o,a,s,l,c,u,h,d,p){if(Zt.Yb(e,t,a,s,d,n,i)&&Zt.Yb(e,t,a,s,d,r,o))return!!Zt.Rl(e,t,a,s,l,c,u,h)&&(0!=(d=(e-a)*(c-h)-(t-s)*(l-u))&&(p.h(((e*s-t*a)*(l-u)-(e-a)*(l*h-c*u))/d,((e*s-t*a)*(c-h)-(t-s)*(l*h-c*u))/d),!0));var f=(e+n)/2,g=(t+i)/2,m=(n+r)/2,v=(i+o)/2,y=((i=(f+m)/2)+(m=(m+(r=(r+a)/2))/2))/2,b=((n=(g+v)/2)+(v=(v+(o=(o+s)/2))/2))/2,w=1/0,x=!1,S=0,k=0;return Zt.Eo(e,t,f,g,i,n,y,b,l,c,u,h,d,p)&&((e=(p.x-l)*(p.x-l)+(p.y-c)*(p.y-c))=u)return p;if((l>u?l-u:u-l)<(c>h?c-h:h-c)){if(te)return p}else if(ee)return p;0d&&p--}else{g=(t+i)/2;var m=(n+r)/2,v=(i+o)/2,y=((i=((f=(e+n)/2)+m)/2)+(m=(m+(r=(r+a)/2))/2))/2,b=((n=(g+v)/2)+(v=(v+(o=(o+s)/2))/2))/2;p+=Zt.Fo(e,t,f,g,i,n,y,b,l,c,u,h,d),p+=Zt.Fo(y,b,m,v,r,o,a,s,l,c,u,h,d)}return p},qh:function(e,t,n,i,r,o,a){return Zt.$(e,n)?(tt?(a.h(e,t),!1):(a.h(e,o),!0)):Zt.$(t,i)?(ee?(a.h(e,t),!1):(a.h(r,t),!0)):-5e-6>(r=((e-r)*(e-n)+(t-o)*(t-i))/((n-e)*(n-e)+(i-t)*(i-t)))?(a.h(e,t),!1):1.000005t?(l.h(e,t),!1):(l.h(e,n),!0)):(a=(i-t)/(n-e),Zt.$(s,a)?(Zt.qh(e,t,n,i,r,o,l),!1):(r=(a*e-s*r+o-t)/(a-s),Zt.$(a,0)?(ee?(l.h(e,t),!1):(l.h(r,t),!0)):Zt.qh(e,t,n,i,r,a*(r-e)+t,l))))},MA:function(e,t,n,i,r){return Zt.Ve(n.x,n.y,i.x,i.y,e.x,e.y,t.x,t.y,r)},KA:function(e,t,n,i,r,o,a,s,l,c){function u(n,i){var r=(n-e)*(n-e)+(i-t)*(i-t);r(n>e?n-e:e-n)){if(0>(d=1-(n-r)*(n-r)/(d*d)))return l;i=-c*(d=Math.sqrt(d))+o,u(n,c*d+o),u(n,i)}else{if(0>(d=(s=2*(n=(i-t)/(n-e))*(t-n*e)/(c*c)-2*n*o/(c*c)-2*r/(d*d))*s-4*(i=1/(d*d)+n*n/(c*c))*(2*n*e*o/(c*c)-2*t*o/(c*c)+o*o/(c*c)+r*r/(d*d)-1+(t-n*e)*(t-n*e)/(c*c))))return l;u(c=(-s+(d=Math.sqrt(d)))/(2*i),n*c-n*e+t),u(d=(-s-d)/(2*i),n*d-n*e+t)}return l},Ff:function(e,t,n,i,r,o,a,s,l){var c=1e21,u=e,h=t;if(Zt.Ve(e,t,e,i,r,o,a,s,l)){var d=(l.x-r)*(l.x-r)+(l.y-o)*(l.y-o);dc},us:function(e,t,n){return Zt.Fx(e.x,e.y,e.width,e.height,t.x,t.y,n.x,n.y)},Fx:function(e,t,n,i,r,o,a,s){var l=e+n,c=t+i;return r===a?(o=t):o===s?(r=e):!!(Ze(e,t,n,i,r,o)||Ze(e,t,n,i,a,s)||Zt.Rl(e,t,l,t,r,o,a,s)||Zt.Rl(l,t,l,c,r,o,a,s)||Zt.Rl(l,c,e,c,r,o,a,s)||Zt.Rl(e,c,e,t,r,o,a,s))},Rl:function(e,t,n,i,r,o,a,s){return e===n&&t===i&&r===a&&o===s?e===r&&t===o:0>=Zt.Fl(e,t,n,i,r,o)*Zt.Fl(e,t,n,i,a,s)&&0>=Zt.Fl(r,o,a,s,e,t)*Zt.Fl(r,o,a,s,n,i)},Fl:function(e,t,n,i,r,o){return n-=e,0===(o=(e=r-e)*(i-=t)-(t=o-t)*n)&&(0<(o=e*n+t*i)&&(0>(o=(e-n)*n+(t-i)*i)&&(o=0))),o},bp:function(e){return 0>e&&(e+=360),360<=e&&(e-=360),e},jx:function(e,t,n,i,r,o){var a=Math.PI;o||(i*=a/180,r*=a/180);var s=i>r?-1:1;o=[];var l=a/2,c=i;if(1e-5>(i=Math.min(2*a,Math.abs(r-i))))return l=c+s*Math.min(i,l),s=e+n*Math.cos(c),c=t+n*Math.sin(c),e+=n*Math.cos(l),t+=n*Math.sin(l),n=(s+e)/2,l=(c+t)/2,o.push([s,c,n,l,n,l,e,t]),o;for(;1e-5n,o=0>i;if(ec&&((t=.5*(s+l))!==s&&t!==l);++c){var u=e/(t+r),h=a/(t+o);if(0<(u=u*u+h*h-1))s=t;else{if(!(0>u))break;l=t}}n=r*n/(t+r)-n,i=o*i/(t+o)-i,n=Math.sqrt(n*n+i*i)}else n=Math.abs(i-t);else(o=e*n)<(i=e*e-t*t)?(i=o/i,o=t*Math.sqrt(Math.abs(1-i*i)),n=e*i-n,n=Math.sqrt(n*n+o*o)):n=Math.abs(n-e);return n},Ze:new Z,um:new Z,Mf:new Z,Nf:0,vm:100};function Kt(e){J(this),this.l=2,void 0===e&&(e=Kt.o),this.na=e,this.Ec=this.Dc=this.pd=this.od=0,e===Kt.o?this.ee=new Y:(null===Kt.V&&(Kt.V=(new Y).freeze()),this.ee=Kt.V),this.aq=this.ee.Ja,this.Ip=(new Ie).freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=et,this.gg=lt,this.Rk=this.Sk=NaN,this.Uf=ha}function Gt(e,t){return e.type===Kt.j&&t.type===Kt.o&&!!(1===t.figures.count&&(t=t.figures.M(0),1===t.segments.count&&Zt.B(e.startX,t.startX)&&Zt.B(e.startY,t.startY)&&(t=t.segments.M(0),t.type===rn&&Zt.B(e.endX,t.endX)&&Zt.B(e.endY,t.endY))))}function Ut(e,t,n){switch(e.type){case Kt.j:case Kt.u:case Kt.F:n?t.h(e.od,e.pd,0,0):He(t,e.od,e.pd,0,0),He(t,e.Dc,e.Ec,0,0);break;case Kt.o:var i=e.figures;e=i.s,i=i.length;for(var r=0;r=e)return 0;if((r>a?r-a:a-r)<(o>s?o-s:s-o)){if(os)return 0}else if(to)return 0}else if(ra)return 0}else if(cr)return 0;return 0(e=o%360)&&(e+=360),this.Ne=e,this.Vh=0,this.Wh=Math.max(i,0),this.Pg=Math.max(r,0),"boolean"==typeof a?a&&(this.isLargeArc=!0):"number"==typeof a&&a&&(this.isLargeArc=!0),s&&(this.isClockwiseArc=!0)):(this.Ne=i,this.Vh=r,e===sn&&(o=Math.max(o,0)),this.Wh=o,"number"==typeof a?(e===sn&&(a=Math.max(a,0)),this.Pg=a):this.Pg=0),this.ae=null}function en(e,t){if(null!==e.ae&&!1===t._isInvalidBounds)return e.ae;var n=e.radiusX,i=e.radiusY;if(void 0===i&&(i=n),0===n||0===i)return e.ae=[],e.ae;t=e.Ne;var r=e.Vh,o=Zt.jx(0,0,n=(p=(h*p+c*s)/(Math.sqrt(h*h+c*c)*Math.sqrt(p*p+s*s)))?a=Math.PI:1<=p&&(a=0),!l&&0a&&(a+=2*Math.PI),l=t>o?1:t/o,p=t>o?o/t:1,t=Zt.jx(0,0,t>o?t:o,u,u+a,!0),(o=$t.alloc()).reset(),o.translate(n,i),o.rotate(e.Ne,0,0),o.scale(l,p),Kt.Ha(t,o),$t.free(o),e.ae=t,e.ae}Zt.za=Zt.AA,Kt.prototype.copy=function(){var e=new Kt;if(e.l=-2&this.l,e.na=this.na,e.od=this.od,e.pd=this.pd,e.Dc=this.Dc,e.Ec=this.Ec,this.na===Kt.o){for(var t=this.ee.s,n=e.ee,i=0;ie?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(e)+" "+this.startY.toFixed(e)+"L"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);case Kt.u:var t=new Ie(this.startX,this.startY,0,0);return t.Kv(this.endX,this.endY,0,0),0>e?"M"+t.x.toString()+" "+t.y.toString()+"H"+t.right.toString()+"V"+t.bottom.toString()+"H"+t.left.toString()+"z":"M"+t.x.toFixed(e)+" "+t.y.toFixed(e)+"H"+t.right.toFixed(e)+"V"+t.bottom.toFixed(e)+"H"+t.left.toFixed(e)+"z";case Kt.F:if((t=new Ie(this.startX,this.startY,0,0)).Kv(this.endX,this.endY,0,0),0>e)return"M"+(e=t.left.toString()+" "+(t.y+t.height/2).toString())+"A"+(t.width/2).toString()+" "+(t.height/2).toString()+" 0 0 1 "+t.right.toString()+" "+(t.y+t.height/2).toString()+"A"+(t.width/2).toString()+" "+(t.height/2).toString()+" 0 0 1 "+e;var n=t.left.toFixed(e)+" "+(t.y+t.height/2).toFixed(e);return"M"+n+"A"+(t.width/2).toFixed(e)+" "+(t.height/2).toFixed(e)+" 0 0 1 "+t.right.toFixed(e)+" "+(t.y+t.height/2).toFixed(e)+"A"+(t.width/2).toFixed(e)+" "+(t.height/2).toFixed(e)+" 0 0 1 "+n;case Kt.o:t="";for(var i=(n=this.figures.s).length,r=0;r=w-1||null!==c[g+1].match(x)}function i(){return g++,c[g]}function r(e){var t=parseFloat(i()),n=parseFloat(i());m===m.toLowerCase()&&(t=b.x+t,n=b.y+n),e.h(t,n)}function o(){return r(b),b}function a(){return r(y),y}function s(){var e=v.toLowerCase();return"c"!==e&&"s"!==e&&"q"!==e&&"t"!==e?b:new fe(2*b.x-y.x,2*b.y-y.y)}void 0===t&&(t=!1);var l=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,c=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/,/gm," ")).replace(l,"$1 $2")).replace(l,"$1 $2")).replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2")).replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2")).replace(/[\s\r\t\n]+/gm," ")).replace(/^\s+|\s+$/g,"")).split(" ");for(e=0;e=w-1);)if(v=m,""!==(m=i()))switch(m.toUpperCase()){case"X":p=!0,h=u=!1;break;case"M":for(f=o(),null===e.mc||!0===p?(pu(e,f.x,f.y,u,!h,d),p=!1):e.moveTo(f.x,f.y),l.assign(b);!n();)f=o(),e.lineTo(f.x,f.y);break;case"L":for(;!n();)f=o(),e.lineTo(f.x,f.y);break;case"H":for(;!n();)b=new fe((m===m.toLowerCase()?b.x:0)+parseFloat(i()),b.y),e.lineTo(b.x,b.y);break;case"V":for(;!n();)b=new fe(b.x,(m===m.toLowerCase()?b.y:0)+parseFloat(i())),e.lineTo(b.x,b.y);break;case"C":for(;!n();){r(f=new fe);var S=a(),k=o();gu(e,f.x,f.y,S.x,S.y,k.x,k.y)}break;case"S":for(;!n();)f=s(),S=a(),k=o(),gu(e,f.x,f.y,S.x,S.y,k.x,k.y);break;case"Q":for(;!n();)f=a(),S=o(),mu(e,f.x,f.y,S.x,S.y);break;case"T":for(;!n();)y=f=s(),S=o(),mu(e,f.x,f.y,S.x,S.y);break;case"B":for(;!n();){f=parseFloat(i()),S=parseFloat(i()),k=parseFloat(i());var _=parseFloat(i()),C=parseFloat(i()),P=C,E=!1;n()||(P=parseFloat(i()),n()||(E=0!==parseFloat(i()))),m===m.toLowerCase()&&(k+=b.x,_+=b.y),e.arcTo(f,S,k,_,C,P,E)}break;case"A":for(;!n();)f=Math.abs(parseFloat(i())),S=Math.abs(parseFloat(i())),k=parseFloat(i()),C=_=!1,E=P=0,1===(P=i()).length?(_=!!parseFloat(P),C=!!parseFloat(i()),P=parseFloat(i())):2===P.length?(_=!!parseFloat(P[0]),C=!!parseFloat(P[1]),P=parseFloat(i())):(_=!!parseFloat(P[0]),C=!!parseFloat(P[1]),P=parseFloat(P.slice(2))),E=parseFloat(i()),m===m.toLowerCase()&&(P=b.x+P,E=b.y+E),b.h(P,E),vu(e,f,S,k,_,C,P,E);break;case"Z":fu(e),b.assign(l);break;case"F":for(f="",S=1;c[g+S];)if("0"===c[g+S])d=!0,S++;else if(null!==c[g+S].match(/[Uu]/))S++;else{if(null!==c[g+S].match(x)){f=c[g+S];break}S++}f.match(/[Mm]/)?u=!0:0(a=180*Math.atan2(t,e)/Math.PI)&&(a+=360),f.startAngle+=a),0>e&&(f.startAngle=180-f.startAngle,f.sweepAngle=-f.sweepAngle),0>i&&(f.startAngle=-f.startAngle,f.sweepAngle=-f.sweepAngle),f.radiusX*=Math.sqrt(e*e+n*n),void 0!==f.radiusY&&(f.radiusY*=Math.sqrt(t*t+i*i));break;case ln:if(a=f.endX,s=f.endY,f.endX=a*e+s*n+r,f.endY=a*t+s*i+o,0===f.radiusX||0===f.radiusY)break;0!==t&&(0>(a=180*Math.atan2(t,e)/Math.PI)&&(a+=360),f.xAxisRotation+=a),0>e&&(f.xAxisRotation=180-f.xAxisRotation,f.isClockwiseArc=!f.isClockwiseArc),0>i&&(f.xAxisRotation=-f.xAxisRotation,f.isClockwiseArc=!f.isClockwiseArc),f.radiusX*=Math.sqrt(e*e+n*n),f.radiusY*=Math.sqrt(t*t+i*i);break;default:x("Unknown Segment type: "+f.type)}}}}return this._isInvalidBounds=!0,this},t.ca=function(e,t){void 0===t&&(t=0);var n=this.od,i=this.pd,r=this.Dc,o=this.Ec;switch(this.type){case Kt.j:return Zt.Yb(n,i,r,o,t,e.x,e.y);case Kt.u:var a=Ie.allocAt(Math.min(n,r)-t,Math.min(i,o)-t,Math.abs(r-n)+2*t,Math.abs(o-i)+2*t);return e=a.ca(e),Ie.free(a),e;case Kt.F:a=Math.min(n,r)-t;var s=Math.min(i,o)-t;return n=(Math.abs(r-n)+2*t)/2,t=(Math.abs(o-i)+2*t)/2,0>=n||0>=t?!1:1>=(a=e.x-(a+n))*a/(n*n)+(s=e.y-(s+t))*s/(t*t);case Kt.o:return Vt(this,e,t,!0,!1);default:return!1}},t.Pu=function(e,t){if(0>e?e=0:1=o)return i=o-a,i=0===u?0:i/u,s=(n=n[s])[2*e],r=n[2*e+1],t.h(s+(n[2*e+2]-s)*i,r+(n[2*e+3]-r)*i),t;a+=u}}return t},t.wx=function(e){if(0>e?e=0:1=r)return t=(r=t[a])[2*e],n=r[2*e+1],i=r[2*e+2],e=r[2*e+3],1>Math.abs(i-t)&&1>Math.abs(e-n)?0:1>Math.abs(i-t)?0<=e-n?90:270:1>Math.abs(e-n)?0<=i-t?0:180:180*Math.atan2(e-n,i-t)/Math.PI;o+=c}}return NaN},t.Qu=function(e,t){if(0>e?e=0:1=o)return i=o-a,i=0===u?0:i/u,n=(u=n[s])[2*e],s=u[2*e+1],r=u[2*e+2],e=u[2*e+3],t[0]=n+(r-n)*i,t[1]=s+(e-s)*i,t[2]=1>Math.abs(r-n)&&1>Math.abs(e-s)?0:1>Math.abs(r-n)?0<=e-s?90:270:1>Math.abs(e-s)?0<=r-n?0:180:180*Math.atan2(e-s,r-n)/Math.PI,t;a+=u}}return t},t.xx=function(e){if(this.type===Kt.j){var t=this.startX,n=this.startY,i=this.endX,r=this.endY;if(t!==i||n!==r){var o=e.x;if(e=e.y,t===i){if(n=i?i===n?0:1:Math.abs(e-n)/(i-a)}if(n===r)return t=i?i===t?0:1:Math.abs(o-t)/(i-a);a=(i-t)*(i-t)+(r-n)*(r-n);var s=fe.alloc();return Zt.qh(t,n,i,r,o,e,s),e=s.x,o=s.y,fe.free(s),Math.sqrt(((e-t)*(e-t)+(o-n)*(o-n))/a)}}else{if(this.type!==Kt.u){t=this.flattenedSegments,n=this.flattenedLengths,o=this.flattenedTotalLength,i=fe.alloc(),r=1/0,s=a=0,v=t.length;for(var l=y=0,c=0;c(e=a/o)?0:1e?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(e)+" "+this.startY.toFixed(e),n=this.segments.s,i=n.length,r=0;re?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case rn:e=0>e?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case on:e=0>e?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(e)+" "+this.point1Y.toFixed(e)+" "+this.point2X.toFixed(e)+" "+this.point2Y.toFixed(e)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case an:e=0>e?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(e)+" "+this.point1Y.toFixed(e)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case sn:e=0>e?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(e)+" "+this.sweepAngle.toFixed(e)+" "+this.centerX.toFixed(e)+" "+this.centerY.toFixed(e)+" "+this.radiusX.toFixed(e)+" "+this.radiusY.toFixed(e);break;case ln:e=0>e?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(e)+" "+this.radiusY.toFixed(e)+" "+this.xAxisRotation.toFixed(e)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;default:e=this.type.toString()}return e+(this.isClosed?"z":"")},t.freeze=function(){return this._isFrozen=!0,this},t.ka=function(){return this._isFrozen=!1,this},t.close=function(){return this.isClosed=!0,this},d.Object.defineProperties(Jt.prototype,{_isFrozen:{get:function(){return 0!=(1&this.l)},set:function(e){this.l=e?1|this.l:-2&this.l}},_isInvalidBounds:{get:function(){return 0!=(2&this.l)},set:function(e){this.l=e?2|this.l:-3&this.l}},isClosed:{get:function(){return 0!=(8&this.l)},set:function(e){this.isClosed!==e&&(this.l=e?8|this.l:-9&this.l,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(e){this._isFrozen&&S(this,e),this.na=e,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(e){this._isFrozen&&S(this,e),this.Dc=e,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(e){this._isFrozen&&S(this,e),this.Ec=e,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(e){this._isFrozen&&S(this,e),this.Ne=e,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(e){this._isFrozen&&S(this,e),this.Vh=e,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(e){this._isFrozen&&S(this,e),this.Wh=e,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(e){this._isFrozen&&S(this,e),this.Pg=e,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(e){this._isFrozen&&S(this,e),this.Ne=e,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(e){this._isFrozen&&S(this,e),this.Vh=e,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(e){0>e&&k(e,">= zero",Jt,"radiusX"),this._isFrozen&&S(this,e),this.Wh=e,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(e){0>e&&k(e,">= zero",Jt,"radiusY"),this._isFrozen&&S(this,e),this.Pg=e,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(e){this._isFrozen&&S(this,e),0>(e%=360)&&(e+=360),this.Dc=e,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(e){this._isFrozen&&S(this,e),360e&&(e=-360),this.Ec=e,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return 0!=(4&this.l)},set:function(e){this._isFrozen&&S(this,e),this.l=e?4|this.l:-5&this.l,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return 0!=(16&this.l)},set:function(e){this._isFrozen&&S(this,e),this.l=e?16|this.l:-17&this.l,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(e){this._isFrozen&&S(this,e),0>(e%=360)&&(e+=360),this.Ne=e,this._isInvalidBounds=!0}}}),Jt.prototype.equalsApprox=Jt.prototype.Xa;var nn=new j(Jt,"Move",0),rn=new j(Jt,"Line",1),on=new j(Jt,"Bezier",2),an=new j(Jt,"QuadraticBezier",3),sn=new j(Jt,"Arc",4),ln=new j(Jt,"SvgArc",4);function cn(){this.H=null,this.xu=new fe(0,0).freeze(),this.mt=new fe(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}function un(){this.H=null,this.xa="",this.ar=this.Lr=null}function hn(){this.Fm=pn,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Jt.className="PathSegment",Jt.Move=nn,Jt.Line=rn,Jt.Bezier=on,Jt.QuadraticBezier=an,Jt.Arc=sn,Jt.SvgArc=ln,cn.prototype.copy=function(){var e=new cn;return this.clone(e)},cn.prototype.clone=function(e){return e.H=this.H,e.xu.assign(this.viewPoint),e.mt.assign(this.documentPoint),e.Rq=this.Rq,e.Bp=this.Bp,e.Cp=this.Cp,e.xq=this.xq,e.Tp=this.Tp,e.Wr=this.Wr,e.Ep=this.Ep,e.Rp=this.Rp,e.tq=this.tq,e.nq=this.nq,e.xg=this.xg,e.Zp=this.Zp,e.Rr=this.Rr,e.Nr=this.Nr,e.xd=this.xd,e},cn.prototype.toString=function(){var e="^";return 0!==this.modifiers&&(e+="M:"+this.modifiers),0!==this.button&&(e+="B:"+this.button),""!==this.key&&(e+="K:"+this.key),0!==this.clickCount&&(e+="C:"+this.clickCount),0!==this.delta&&(e+="D:"+this.delta),this.handled&&(e+="h"),this.bubbles&&(e+="b"),null!==this.documentPoint&&(e+="@"+this.documentPoint.toString()),e},cn.prototype.So=function(e,t){var n=this.diagram;return null===n||qr(n,e,t),t},cn.prototype.Bz=function(e,t){var n=this.diagram;return null===n||(qr(n,e,t),t.assign(n.Ps(t))),t},d.Object.defineProperties(cn.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},viewPoint:{get:function(){return this.xu},set:function(e){this.xu.assign(e)}},documentPoint:{get:function(){return this.mt},set:function(e){this.mt.assign(e)}},modifiers:{get:function(){return this.Rq},set:function(e){this.Rq=e}},button:{get:function(){return this.Bp},set:function(e){if(this.Bp=e,null===this.event)switch(e){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(e){this.Cp=e}},key:{get:function(){return this.xq},set:function(e){this.xq=e}},down:{get:function(){return this.Tp},set:function(e){this.Tp=e}},up:{get:function(){return this.Wr},set:function(e){this.Wr=e}},clickCount:{get:function(){return this.Ep},set:function(e){this.Ep=e}},delta:{get:function(){return this.Rp},set:function(e){this.Rp=e}},isMultiTouch:{get:function(){return this.tq},set:function(e){this.tq=e}},handled:{get:function(){return this.nq},set:function(e){this.nq=e}},bubbles:{get:function(){return this.xg},set:function(e){this.xg=e}},event:{get:function(){return this.Zp},set:function(e){this.Zp=e}},isTouchEvent:{get:function(){var e=this.event;return null!==e&&("touch"===e.pointerType||"pen"===e.pointerType)}},timestamp:{get:function(){return this.Rr},set:function(e){this.Rr=e}},targetDiagram:{get:function(){return this.Nr},set:function(e){this.Nr=e}},targetObject:{get:function(){return this.xd},set:function(e){this.xd=e}},control:{get:function(){return 0!=(1&this.modifiers)},set:function(e){this.modifiers=e?1|this.modifiers:-2&this.modifiers}},shift:{get:function(){return 0!=(4&this.modifiers)},set:function(e){this.modifiers=e?4|this.modifiers:-5&this.modifiers}},alt:{get:function(){return 0!=(2&this.modifiers)},set:function(e){this.modifiers=e?2|this.modifiers:-3&this.modifiers}},meta:{get:function(){return 0!=(8&this.modifiers)},set:function(e){this.modifiers=e?8|this.modifiers:-9&this.modifiers}},left:{get:function(){var e=this.event;return null===e||"mousedown"!==e.type&&"mouseup"!==e.type&&"pointerdown"!==e.type&&"pointerup"!==e.type?0!=(1&this.buttons):0===this.button},set:function(e){this.buttons=e?1|this.buttons:-2&this.buttons}},right:{get:function(){var e=this.event;return null===e||"mousedown"!==e.type&&"mouseup"!==e.type&&"pointerdown"!==e.type&&"pointerup"!==e.type?0!=(2&this.buttons):2===this.button},set:function(e){this.buttons=e?2|this.buttons:-3&this.buttons}},middle:{get:function(){var e=this.event;return null===e||"mousedown"!==e.type&&"mouseup"!==e.type&&"pointerdown"!==e.type&&"pointerup"!==e.type?0!=(4&this.buttons):1===this.button},set:function(e){this.buttons=e?4|this.buttons:-5&this.buttons}}}),cn.prototype.getMultiTouchDocumentPoint=cn.prototype.Bz,cn.prototype.getMultiTouchViewPoint=cn.prototype.So,cn.className="InputEvent",un.prototype.copy=function(){var e=new un;return e.H=this.H,e.xa=this.xa,e.Lr=this.Lr,e.ar=this.ar,e},un.prototype.toString=function(){var e="*"+this.name;return null!==this.subject&&(e+=":"+this.subject.toString()),null!==this.parameter&&(e+="("+this.parameter.toString()+")"),e},d.Object.defineProperties(un.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},subject:{get:function(){return this.Lr},set:function(e){this.Lr=e}},parameter:{get:function(){return this.ar},set:function(e){this.ar=e}}}),un.className="DiagramEvent",hn.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},hn.prototype.copy=function(){var e=new hn;e.Fm=this.Fm,e.Qq=this.Qq,e.rf=this.rf,e.cc=this.cc,e.H=this.H,e.Qn=this.Qn;var t=this.Sn;return e.Sn=C(t)&&"function"==typeof t.J?t.J():t,t=this.Rn,e.Rn=C(t)&&"function"==typeof t.J?t.J():t,t=this.Mn,e.Mn=C(t)&&"function"==typeof t.J?t.J():t,t=this.Ln,e.Ln=C(t)&&"function"==typeof t.J?t.J():t,e},hn.prototype.qb=function(e){e.classType===hn&&(this.change=e)},hn.prototype.toString=function(){var e="";return e=this.change===dn?e+"* ":this.change===pn?e+(null!==this.model?"!m":"!d"):e+(null!==this.model?"!m":"!d")+this.change,this.propertyName&&"string"==typeof this.propertyName&&(e+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(e+=" "+this.modelChange),e+=": ",this.change===dn?null!==this.oldValue&&(e+=" "+this.oldValue):(null!==this.object&&(e+=N(this.object)),null!==this.oldValue&&(e+=" old: "+N(this.oldValue)),null!==this.oldParam&&(e+=" "+this.oldParam),null!==this.newValue&&(e+=" new: "+N(this.newValue)),null!==this.newParam&&(e+=" "+this.newParam)),e},hn.prototype.I=function(e){return e?this.oldValue:this.newValue},hn.prototype.Dz=function(e){return e?this.oldParam:this.newParam},hn.prototype.canUndo=function(){return null!==this.model||null!==this.diagram},hn.prototype.undo=function(){this.canUndo()&&(null!==this.model?this.model.changeState(this,!0):null!==this.diagram&&this.diagram.changeState(this,!0))},hn.prototype.canRedo=function(){return null!==this.model||null!==this.diagram},hn.prototype.redo=function(){this.canRedo()&&(null!==this.model?this.model.changeState(this,!1):null!==this.diagram&&this.diagram.changeState(this,!1))},d.Object.defineProperties(hn.prototype,{model:{get:function(){return this.cc},set:function(e){this.cc=e}},diagram:{get:function(){return this.H},set:function(e){this.H=e}},change:{get:function(){return this.Fm},set:function(e){this.Fm=e}},modelChange:{get:function(){return this.Qq},set:function(e){this.Qq=e}},propertyName:{get:function(){return this.rf},set:function(e){this.rf=e}},isTransactionFinished:{get:function(){return this.Fm===dn&&("CommittedTransaction"===this.rf||"FinishedUndo"===this.rf||"FinishedRedo"===this.rf)}},object:{get:function(){return this.Qn},set:function(e){this.Qn=e}},oldValue:{get:function(){return this.Sn},set:function(e){this.Sn=e}},oldParam:{get:function(){return this.Rn},set:function(e){this.Rn=e}},newValue:{get:function(){return this.Mn},set:function(e){this.Mn=e}},newParam:{get:function(){return this.Ln},set:function(e){this.Ln=e}}}),hn.prototype.redo=hn.prototype.redo,hn.prototype.canRedo=hn.prototype.canRedo,hn.prototype.undo=hn.prototype.undo,hn.prototype.canUndo=hn.prototype.canUndo,hn.prototype.getParam=hn.prototype.Dz,hn.prototype.getValue=hn.prototype.I,hn.prototype.clear=hn.prototype.clear;var dn=new j(hn,"Transaction",-1),pn=new j(hn,"Property",0),fn=new j(hn,"Insert",1),gn=new j(hn,"Remove",2);function mn(){this.o=(new Y).freeze(),this.xa="",this.j=!1}function vn(){this.Pt=new Q,this.Jd=!1,this.u=(new Y).freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=(new Y).freeze(),this.hl=new Y,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}function yn(e,t,n){if(e.isUndoingRedoing)return!1;e.checksTransactionLevel&&1>e.transactionLevel&&_("Ending transaction without having started a transaction: "+n);var i=1===e.transactionLevel,r=e.currentTransaction;i&&t&&(e.isInternalTransaction||e.Ob("CommittingTransaction",n,r));var o=0;if(0=i&&(null!==(o=t.M(0))&&o.clear(),t.mb(0),e.Ce--)),0===i||0!==t.count&&t.get(t.count-1)===r||(t.add(r),e.Ce++),t.freeze()),e.isInternalTransaction||e.Ob("CommittedTransaction",n,r);else{e.Fe=!0;try{e.isEnabled&&null!==r&&(r.isComplete=!0,r.undo())}finally{e.isInternalTransaction||e.Ob("RolledBackTransaction",n,r),e.Fe=!1}null!==r&&r.clear()}return e.Np=null,e.isPendingClear&&e.clear(),e.isPendingClear=!1,e.isPendingUnmodified=!1,!0}if(e.isEnabled&&!t&&null!==r){for(e=o,r=(n=r.changes).count-1;r>=e;r--)null!==(t=n.M(r))&&t.undo(),n.ka(),n.mb(r);n.freeze()}return!1}function bn(){J(this),this.H=br,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new cn,this.Zr=-1}function wn(){bn.call(this),this.name="ToolManager",this.hb=new Y,this.ob=new Y,this.Hb=new Y,this.F=this.V=850,this.o=new Ae(2,2).ja(),this.Ha=5e3,this.ia=kn,this.u=Pn,this.Mp=this.j=null,this.zj=-1}function xn(e,t){e.standardMouseOver(),e.isBeyondDragSize()&&e.standardWaitAfter(e.isActive?e.holdDelay:e.hoverDelay,t.lastInput)}hn.className="ChangedEvent",hn.Transaction=dn,hn.Property=pn,hn.Insert=fn,hn.Remove=gn,mn.prototype.toString=function(e){var t="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(void 0!==e&&0t&&e.cd(t,i),t++);for(;e.length>t;)e.pop();e.freeze()}},d.Object.defineProperties(mn.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},isComplete:{get:function(){return this.j},set:function(e){this.j=e}}}),mn.prototype.optimize=mn.prototype.ak,mn.prototype.redo=mn.prototype.redo,mn.prototype.canRedo=mn.prototype.canRedo,mn.prototype.undo=mn.prototype.undo,mn.prototype.canUndo=mn.prototype.canUndo,mn.prototype.clear=mn.prototype.clear,mn.className="Transaction",vn.prototype.toString=function(e){var t="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;t+="[";for(var n=this.nestedTransactionNames.count,i=0;ithis.historyIndex;t--){var n=e.M(t);null!==n&&n.clear(),e.mb(t),this.rq=!0}e.freeze()}},vn.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(null!==(e=e.diagram)&&!1===e.pi||_("Change not within a transaction: "+n.toString()))}},vn.prototype.skipsEvent=function(e){if(null===e||0>e.change.value)return!0;if(null===(e=e.object))return!1;if(void 0!==e.layer){if(null!==(e=e.layer)&&e.isTemporary)return!0}else if(e.isTemporary)return!0;return!1},d.Object.defineProperties(vn.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(e){this.Jd=e}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndexr||Math.abs(t.y-e.y)>i},d.Object.defineProperties(bn.prototype,{diagram:{get:function(){return this.H},set:function(e){e instanceof Er&&(this.H=e)}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},isEnabled:{get:function(){return this.Jd},set:function(e){this.Jd=e}},isActive:{get:function(){return this.nb},set:function(e){this.nb=e}},transactionResult:{get:function(){return this.wm},set:function(e){this.wm=e}}}),bn.prototype.startTransaction=bn.prototype.Ea,bn.className="Tool",h(wn,bn),wn.prototype.initializeStandardTools=function(){},wn.prototype.updateAdornments=function(e){var t=this.currentToolTip;if(t instanceof Vu&&this.Mp===e){var n=t.adornedObject;(null!==e?n.part===e:null===n)?this.showToolTip(t,n):this.hideToolTip()}},wn.prototype.doMouseDown=function(){var e=this.diagram,t=e.lastInput;if(t.isTouchEvent&&this.gestureBehavior===En&&(t.bubbles=!1),t.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Mn)return void(t.bubbles=!0);if(this.gestureBehavior===En)return;if(e.currentTool.canStartMultiTouch())return void e.currentTool.standardPinchZoomStart()}for(var n=this.mouseDownTools.length,i=0;ir.right&&(n.x-=i.width+5/t.scale),n.xr.bottom?n.y-(i.height+5/t.scale):n.y+20/t.scale,n.yn.pointsCount)){var i=e.diagram;if(!i.isReadOnly){var r=e.Oe;if(null!==r){var o=null,a=null;null===n.fromNode&&(null!==(o=$n(e,n.i(0),!1))&&(a=o.part));var s=null,l=null;null===n.toNode&&(null!==(s=$n(e,n.i(n.pointsCount-1),!0))&&(l=s.part)),r.isValidLink(a,o,l,s)?t?(n.defaultFromPoint=n.i(0),n.defaultToPoint=n.i(n.pointsCount-1),n.suspendsRouting=!1,n.fromNode=a,null!==o&&(n.fromPortId=o.portId),n.toNode=l,null!==s&&(n.toPortId=s.portId),n.fromPort!==i.Mx&&i.R("LinkRelinked",n,i.Mx),n.toPort!==i.Nx&&i.R("LinkRelinked",n,i.Nx)):oi(r,a,o,l,s):oi(r,null,null,null,null)}}}}function Zn(e,t){var n=e.diagram;e.dragsLink&&Hn(e,!0),Tn(e);var i=e.findDragOverObject(t),r=n.lastInput;if(r.targetObject=i,null!==i){r.handled=!1;for(var o=i;null!==o;){var a=o.mouseDrop;if(null!==a&&(a(r,o),r.handled))break;Kn(e,r,o),o=jn(o)}}else null!==(o=n.mouseDrop)&&o(r);if(e.isActive||null!==Vn){for(r=(e.copiedParts||e.draggedParts).iterator;r.next();)(o=r.key)instanceof qu&&o.linksConnected.each((function(e){e.suspendsRouting=!1}));if(e.doDropOnto(t,i),e.isActive||null!==Vn){for(e=Ie.alloc(),t=n.selection.iterator;t.next();)(i=t.value)instanceof qu&&Gn(n,i,e);Ie.free(e)}}}function Kn(e,t,n){e=e.diagram,n=n.part,!e.handlesDragDropForTopLevelParts||!n.isTopLevel||n instanceof gh||null!==(n=e.mouseDrop)&&n(t)}function Gn(e,t,n){var i=!1;if(n=t.getAvoidableRect(n),e.viewportBounds.Re(n)&&(i=!0),0!==(e=e.Nu(n,(function(e){return e.part}),(function(e){return e instanceof xh}),!0,(function(e){return e instanceof xh}),i)).count)for(e=e.iterator;e.next();)!(n=e.value).Td(t)&&n.isAvoiding&&n.bb()}function Un(e,t,n,i){if(null===e.copiedParts){var r=e.diagram;if(!r.isReadOnly&&!r.isModelReadOnly){r.skipsUndoManager=!n,r.partManager.addsToTemporaryLayer=!n,e.startPoint=i.documentPoint,n=r.Kj(t,r,!0);var o=Ie.alloc();r=i=1/0;for(var a=-1/0,s=-1/0,l=t.iterator;l.next();){var c=l.value;if(c.isVisible()){var u=c.location;c=u.x,u=u.y,isNaN(c)||isNaN(u)||(ca&&(a=c),u>s&&(s=u))}}for(1/0===i?o.h(0,0,0,0):o.h(i,r,a-i,s-r),i=o.x+o.width/2,r=o.y+o.height/2,Ie.free(o),o=e.Fr,a=new pe,s=fe.alloc(),l=t.iterator;l.next();)(c=l.value)instanceof xh&&c.canCopy()&&(null!==(u=n.I(c))&&(u.points=c.points,_h(u,o.x-i,o.y-r),u.suspendsRouting=!0,a.add(u,e.Pd())));for(t=t.iterator;t.next();)(c=t.value).Zc()&&c.canCopy()&&(null!==(l=n.I(c))&&(c=c.location,s.h(o.x-(i-c.x),o.y-(r-c.y)),l.location=s,l.Va(),a.add(l,e.Pd(s))));fe.free(s),e.copiedParts=a,An(e,a.Lf()),null!==e.draggedLink&&(t=(n=e.draggedLink).routeBounds,_h(n,e.startPoint.x-(t.x+t.width/2),e.startPoint.y-(t.y+t.height/2))),e.doUpdateCursor(null)}}}wn.className="ToolManager",wn.WheelScroll=kn,wn.WheelZoom=_n,wn.WheelNone=Cn,wn.GestureZoom=Pn,wn.GestureCancel=En,wn.GestureNone=Mn,h(Ln,bn),Ln.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e.isReadOnly&&!e.allowDragOut||!e.allowMove&&!e.allowCopy&&!e.allowDragOut||!e.allowSelect)return!1;var t=e.lastInput;return!(!t.left||e.currentTool!==this&&(!this.isBeyondDragSize()||t.isTouchEvent&&t.timestamp-e.firstInput.timestamp=i&&(i=.1);var r=this,o=t.og(n,i,(function(t){return r.findValidLinkablePort(t,e)}),null,!0);for(i=1/0,t=null,o=o.iterator;o.next();){var a=o.value,s=a.part;if(s instanceof qu){var l=a.ga(rt,fe.alloc()),c=n.x-l.x,u=n.y-l.y;fe.free(l),(l=c*c+u*u)n){if(null!==this.originalLink&&e===this.originalFromNode&&t===this.originalFromPort)return!0;if(null===(t=t.portId)&&(t=""),e.Mo(t).count>=n)return!1}return!0},qn.prototype.isValidTo=function(e,t){if(null===e||null===t)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(null!==e.layer&&!e.layer.allowLink||!0!==t.toLinkable))return!1;var n=t.toMaxLinks;if(1/0>n){if(null!==this.originalLink&&e===this.originalToNode&&t===this.originalToPort)return!0;if(null===(t=t.portId)&&(t=""),e.Sd(t).count>=n)return!1}return!0},qn.prototype.isInSameNode=function(e,t){return null!==e&&null!==t&&(e===t||(e=e.part,t=t.part,null!==e&&e===t))},qn.prototype.isLinked=function(e,t){if(null===e||null===t)return!1;var n=e.part;if(!(n instanceof qu))return!1;null===(e=e.portId)&&(e="");var i=t.part;if(!(i instanceof qu))return!1;for(null===(t=t.portId)&&(t=""),t=i.Sd(t);t.next();)if((i=t.value).fromNode===n&&i.fromPortId===e)return!0;return!1},qn.prototype.isValidLink=function(e,t,n,i){if(!this.isValidFrom(e,t)||!this.isValidTo(n,i)||!(null===t||null===i||(t.fromLinkableSelfNode&&i.toLinkableSelfNode||!this.isInSameNode(t,i))&&(t.fromLinkableDuplicates&&i.toLinkableDuplicates||!this.isLinked(t,i)))||null!==this.originalLink&&(null!==e&&this.isLabelDependentOnLink(e,this.originalLink)||null!==n&&this.isLabelDependentOnLink(n,this.originalLink))||null!==e&&null!==n&&(null===e.data&&null!==n.data||null!==e.data&&null===n.data)||!this.isValidCycle(e,n,this.originalLink))return!1;if(null!==e){var r=e.linkValidation;if(null!==r&&!r(e,t,n,i,this.originalLink))return!1}return!(null!==n&&null!==(r=n.linkValidation)&&!r(e,t,n,i,this.originalLink))&&(null===(r=this.linkValidation)||r(e,t,n,i,this.originalLink))},qn.prototype.isLabelDependentOnLink=function(e,t){if(null===e)return!1;var n=e.labeledLink;if(null===n)return!1;if(n===t)return!0;var i=new Q;return i.add(e),Yn(this,n,t,i)},qn.prototype.isValidCycle=function(e,t,n){if(void 0===n&&(n=null),null===e||null===t)return this.isUnconnectedLinkValid;var i=this.diagram.validCycle;if(i!==Uo){if(i===Yo){if(null!==(i=n||this.temporaryLink)&&!i.isTreeLink)return!0;for(i=t.linksConnected;i.next();){var r=i.value;if(r!==n&&r.isTreeLink&&r.toNode===t)return!1}return!Xn(this,e,t,n,!0)}if(i===Xo){if(null!==(i=n||this.temporaryLink)&&!i.isTreeLink)return!0;for(i=e.linksConnected;i.next();)if((r=i.value)!==n&&r.isTreeLink&&r.fromNode===e)return!1;return!Xn(this,e,t,n,!0)}if(i===Vo)return e===t?e=!0:((i=new Q).add(t),e=Qn(this,i,e,t,n)),!e;if(i===Wo)return!Xn(this,e,t,n,!1);if(i===qo)return e===t?e=!0:((i=new Q).add(t),e=Jn(this,i,e,t,n)),!e}return!0},d.Object.defineProperties(qn.prototype,{portGravity:{get:function(){return this.te},set:function(e){0<=e&&(this.te=e)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(e){this.Ha=e}},linkingCursor:{get:function(){return this.u},set:function(e){this.u=e}},temporaryLink:{get:function(){return this.Ci},set:function(e){this.Ci=e}},temporaryFromNode:{get:function(){return this.Bi},set:function(e){(this.Bi=e)&&(this.j=e.port)}},temporaryFromPort:{get:function(){return this.j},set:function(e){if(null!==this.j){var t=this.j.panel;if(null!==t){var n=t.O.indexOf(this.j);t.mb(n),t.Gb(n,e)}}this.j=e}},temporaryToNode:{get:function(){return this.Di},set:function(e){(this.Di=e)&&(this.o=e.port)}},temporaryToPort:{get:function(){return this.o},set:function(e){if(null!==this.o){var t=this.o.panel;if(null!==t){var n=t.O.indexOf(this.o);t.mb(n),t.Gb(n,e)}}this.o=e}},originalLink:{get:function(){return this.Hb},set:function(e){this.Hb=e}},originalFromNode:{get:function(){return this.hb},set:function(e){this.hb=e}},originalFromPort:{get:function(){return this.ob},set:function(e){this.ob=e}},originalToNode:{get:function(){return this.Oc},set:function(e){this.Oc=e}},originalToPort:{get:function(){return this.Pc},set:function(e){this.Pc=e}},isForwards:{get:function(){return this.ia},set:function(e){this.ia=e}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(e){this.Pf=e}},linkValidation:{get:function(){return this.gj},set:function(e){this.gj=e}},portTargeted:{get:function(){return this.Of},set:function(e){this.Of=e}}}),qn.className="LinkingBaseTool",h(ei,qn),ei.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!(e.isReadOnly||e.isModelReadOnly||!e.allowLink||!e.model.xs()||!e.lastInput.left||e.currentTool!==this&&!this.isBeyondDragSize())&&null!==this.findLinkablePort()},ei.prototype.findLinkablePort=function(){var e=this.diagram,t=this.startObject;if(null===t&&(t=e.ic(e.firstInput.documentPoint,null,null)),null===t)return null;if(!((e=t.part)instanceof qu))return null;var n=this.direction;if(n===ti||n===ni){var i=this.findValidLinkablePort(t,!1);if(null!==i||this.startObject===e&&(i=e.port,this.findValidLinkablePort(i,!1)))return this.isForwards=!0,i}return(n===ti||n===ii)&&(null!==(t=this.findValidLinkablePort(t,!0))||this.startObject===e&&(t=e.port,this.findValidLinkablePort(t,!0)))?(this.isForwards=!1,t):null},ei.prototype.doActivate=function(){var e=this.diagram,t=this.findLinkablePort();null===t?this.stopTool():(this.Ea(this.name),e.isMouseCaptured=!0,e.currentCursor=this.linkingCursor,this.isForwards?(null!==this.temporaryToNode&&(this.temporaryToNode.location=e.lastInput.documentPoint),this.originalFromPort=t,(t=this.originalFromPort.part)instanceof qu&&(this.originalFromNode=t),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(null!==this.temporaryFromNode&&(this.temporaryFromNode.location=e.lastInput.documentPoint),this.originalToPort=t,(t=this.originalToPort.part)instanceof qu&&(this.originalToNode=t),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),e.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),e.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),null!==this.temporaryLink&&(null!==this.temporaryFromNode&&(this.temporaryLink.fromNode=this.temporaryFromNode),null!==this.temporaryToNode&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),e.add(this.temporaryLink)),this.isActive=!0)},ei.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;e.remove(this.temporaryLink),e.remove(this.temporaryFromNode),e.remove(this.temporaryToNode),e.isMouseCaptured=!1,e.currentCursor="",this.stopTransaction()},ei.prototype.doStop=function(){qn.prototype.doStop.call(this),this.startObject=null},ei.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram,t=this.transactionResult=null,n=null,i=null,r=null,o=null;try{var a=this.targetPort=this.findTargetPort(this.isForwards);if(null!==a){var s=a.part;s instanceof qu&&(this.isForwards?(null!==this.originalFromNode&&(t=this.originalFromNode,n=this.originalFromPort),i=s,r=a):(t=s,n=a,null!==this.originalToNode&&(i=this.originalToNode,r=this.originalToPort)))}else this.isForwards?null!==this.originalFromNode&&this.isUnconnectedLinkValid&&(t=this.originalFromNode,n=this.originalFromPort):null!==this.originalToNode&&this.isUnconnectedLinkValid&&(i=this.originalToNode,r=this.originalToPort);null!==t||null!==i?null!==(o=this.insertLink(t,n,i,r))?(null===a&&(this.isForwards?o.defaultToPoint=e.lastInput.documentPoint:o.defaultFromPoint=e.lastInput.documentPoint),e.allowSelect&&(e.R("ChangingSelection",e.selection),e.clearSelection(!0),o.isSelected=!0),this.transactionResult=this.name,e.R("LinkDrawn",o)):this.doNoLink(t,n,i,r):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),o&&e.allowSelect&&e.R("ChangedSelection",e.selection)}}},ei.prototype.isNewTreeLink=function(){var e=this.archetypeLinkData;if(null===e)return!0;if(e instanceof xh)return e.isTreeLink;var t=this.diagram;return null===t||(e=t.partManager.getLinkCategoryForData(e),null===(t=t.partManager.findLinkTemplateForCategory(e))||t.isTreeLink)},ei.prototype.insertLink=function(e,t,n,i){return this.diagram.partManager.insertLink(e,t,n,i)},ei.prototype.doNoLink=function(){},d.Object.defineProperties(ei.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(e){this.V=e}},archetypeLabelNodeData:{get:function(){return this.F},set:function(e){this.F=e}},direction:{get:function(){return this.K},set:function(e){this.K=e}},startObject:{get:function(){return this.Xd},set:function(e){this.Xd=e}}});var ti=new j(ei,"Either",0),ni=new j(ei,"ForwardsOnly",0),ii=new j(ei,"BackwardsOnly",0);function ri(){qn.call(this),this.name="Relinking";var e=new fc;e.figure="Diamond",e.desiredSize=Ce,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=0,this.V=e,(e=new fc).figure="Diamond",e.desiredSize=Ce,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=-1,this.Xd=e,this.F=null,this.Ew=new Ie}function oi(e,t,n,i,r){null!==t?(e.copyPortProperties(t,n,e.temporaryFromNode,e.temporaryFromPort,!1),e.diagram.add(e.temporaryFromNode)):e.diagram.remove(e.temporaryFromNode),null!==i?(e.copyPortProperties(i,r,e.temporaryToNode,e.temporaryToPort,!0),e.diagram.add(e.temporaryToNode)):e.diagram.remove(e.temporaryToNode)}function ai(){bn.call(this),this.name="LinkReshaping";var e=new fc;e.figure="Rectangle",e.desiredSize=_e,e.fill="lightblue",e.stroke="dodgerblue",this.o=e,(e=new fc).figure="Diamond",e.desiredSize=Ce,e.fill="lightblue",e.stroke="dodgerblue",e.cursor="move",this.u=e,this.F=3,this.Ts=this.j=null,this.Fw=new fe,this.Yq=new Y}function si(e,t,n,i,r,o){return o?Math.abs(t.y-n.y)t.firstPickIndex+1&&n=n.x)t=0>=n.y?t+225:1<=n.y?t+135:t+180;else if(1<=n.x)0>=n.y?t+=315:1<=n.y&&(t+=45);else if(0>=n.y)t+=270;else{if(!(1<=n.y))break e;t+=90}0>t?t+=360:360<=t&&(t-=360),e.cursor=22.5>t?"e-resize":67.5>t?"se-resize":112.5>t?"s-resize":157.5>t?"sw-resize":202.5>t?"w-resize":247.5>t?"nw-resize":292.5>t?"n-resize":337.5>t?"ne-resize":"e-resize"}else if(e instanceof El)for(e=e.elements;e.next();)this.updateResizeHandles(e.value,t)},di.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!(e.isReadOnly||!e.allowResize||!e.lastInput.left)&&null!==this.findToolHandleAt(e.firstInput.documentPoint,this.name)},di.prototype.doActivate=function(){var e=this.diagram;null===this.handle&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),null!==this.handle&&(this.adornedObject=this.handle.part.adornedObject,null!==this.adornedObject&&(e.isMouseCaptured=!0,e.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},di.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=e.isMouseCaptured=!1},di.prototype.stopTransaction=function(){var e=this.diagram,t=bn.prototype.stopTransaction.call(this);return t&&null!==e.undoManager.transactionToUndo&&e.undoManager.transactionToUndo.ak(),t},di.prototype.doCancel=function(){null!==this.adornedObject&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},di.prototype.doMouseMove=function(){var e=this.diagram;if(this.isActive){var t=this.rt,n=this.qt,i=this.pt,r=this.adornedObject.qs(e.lastInput.documentPoint,fe.alloc()),o=this.computeReshape();t=this.computeResize(r,this.handle.alignment,t,n,i,o),this.resize(t),e.bd(),fe.free(r)}},di.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){var t=this.rt,n=this.qt,i=this.pt,r=this.adornedObject.qs(e.lastInput.documentPoint,fe.alloc()),o=this.computeReshape();t=this.computeResize(r,this.handle.alignment,t,n,i,o),this.resize(t),fe.free(r),e.Ya(),this.transactionResult=this.name,e.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},di.prototype.resize=function(e){var t=this.diagram,n=this.adornedObject;if(null!==n){if(n.desiredSize=e.size,(e=n.part).Va(),n=n.ga(this.handle.alignment.gv()),e instanceof gh){var i=new Y;if(i.add(e),!this.dragsMembers&&null===e.placeholder){var r=new ka;r.dragsMembers=!1}t.moveParts(i,this.oppositePoint.copy().re(n),!0,r)}else e.location=e.location.copy().re(n).add(this.oppositePoint);t.bd()}},di.prototype.computeResize=function(e,t,n,i,r,o){t.Mc()&&(t=rt);var a=this.adornedObject.naturalBounds,s=a.x,l=a.y,c=a.x+a.width,u=a.y+a.height,h=1;if(!o){h=a.width;var d=a.height;0>=h&&(h=1),0>=d&&(d=1),h=d/h}return d=fe.alloc(),Zt.No(e.x,e.y,s,l,r.width,r.height,d),e=a.copy(),0>=t.x?0>=t.y?(e.x=Math.max(d.x,c-i.width),e.x=Math.min(e.x,c-n.width),e.width=Math.max(c-e.x,n.width),e.y=Math.max(d.y,u-i.height),e.y=Math.min(e.y,u-n.height),e.height=Math.max(u-e.y,n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(h*e.width,i.height),n.height),e.width=e.height/h):(e.width=Math.max(Math.min(e.height/h,i.width),n.width),e.height=h*e.width),e.x=c-e.width,e.y=u-e.height)):1<=t.y?(e.x=Math.max(d.x,c-i.width),e.x=Math.min(e.x,c-n.width),e.width=Math.max(c-e.x,n.width),e.height=Math.max(Math.min(d.y-l,i.height),n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(h*e.width,i.height),n.height),e.width=e.height/h):(e.width=Math.max(Math.min(e.height/h,i.width),n.width),e.height=h*e.width),e.x=c-e.width)):(e.x=Math.max(d.x,c-i.width),e.x=Math.min(e.x,c-n.width),e.width=c-e.x,o||(e.height=Math.max(Math.min(h*e.width,i.height),n.height),e.width=e.height/h,e.y=l+.5*(u-l-e.height))):1<=t.x?0>=t.y?(e.width=Math.max(Math.min(d.x-s,i.width),n.width),e.y=Math.max(d.y,u-i.height),e.y=Math.min(e.y,u-n.height),e.height=Math.max(u-e.y,n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(h*e.width,i.height),n.height),e.width=e.height/h):(e.width=Math.max(Math.min(e.height/h,i.width),n.width),e.height=h*e.width),e.y=u-e.height)):1<=t.y?(e.width=Math.max(Math.min(d.x-s,i.width),n.width),e.height=Math.max(Math.min(d.y-l,i.height),n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(h*e.width,i.height),n.height),e.width=e.height/h):(e.width=Math.max(Math.min(e.height/h,i.width),n.width),e.height=h*e.width))):(e.width=Math.max(Math.min(d.x-s,i.width),n.width),o||(e.height=Math.max(Math.min(h*e.width,i.height),n.height),e.width=e.height/h,e.y=l+.5*(u-l-e.height))):0>=t.y?(e.y=Math.max(d.y,u-i.height),e.y=Math.min(e.y,u-n.height),e.height=u-e.y,o||(e.width=Math.max(Math.min(e.height/h,i.width),n.width),e.height=h*e.width,e.x=s+.5*(c-s-e.width))):1<=t.y&&(e.height=Math.max(Math.min(d.y-l,i.height),n.height),o||(e.width=Math.max(Math.min(e.height/h,i.width),n.width),e.height=h*e.width,e.x=s+.5*(c-s-e.width))),fe.free(d),e},di.prototype.computeReshape=function(){var e=da;return this.adornedObject instanceof fc&&(e=vc(this.adornedObject)),!(e===pa||this.diagram.lastInput.shift)},di.prototype.computeMinSize=function(){var e=this.adornedObject.minSize.copy(),t=this.minSize;return!isNaN(t.width)&&t.width>e.width&&(e.width=t.width),!isNaN(t.height)&&t.height>e.height&&(e.height=t.height),e},di.prototype.computeMaxSize=function(){var e=this.adornedObject.maxSize.copy(),t=this.maxSize;return!isNaN(t.width)&&t.widthn?n+=360:360<=n&&(n-=360),n=Math.round(45*Math.round(n/45));var i=this.handleDistance;return 0===n?t.x=e.naturalBounds.width+i:45===n?(t.x=e.naturalBounds.width+i,t.y=e.naturalBounds.height+i):90===n?t.y=e.naturalBounds.height+i:135===n?(t.x=-i,t.y=e.naturalBounds.height+i):180===n?t.x=-i:225===n?(t.x=-i,t.y=-i):270===n?t.y=-i:315===n&&(t.x=e.naturalBounds.width+i,t.y=-i),e.ga(t)},pi.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new fe(NaN,NaN),this.isActive=e.isMouseCaptured=!1},pi.prototype.stopTransaction=function(){var e=this.diagram,t=bn.prototype.stopTransaction.call(this);return t&&null!==e.undoManager.transactionToUndo&&e.undoManager.transactionToUndo.ak(),t},pi.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},pi.prototype.doMouseMove=function(){var e=this.diagram;this.isActive&&(e=this.computeRotate(e.lastInput.documentPoint),this.rotate(e))},pi.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){e.delaysLayout=!1;var t=this.computeRotate(e.lastInput.documentPoint);this.rotate(t),e.Ya(),this.transactionResult=this.name,e.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},pi.prototype.rotate=function(e){var t=this.adornedObject;if(null!==t){t.angle=e,(t=t.part).Va();var n=t.locationObject,i=t.rotateObject;(n===i||n.rg(i))&&(n=this.Tn.copy(),t.location=n.re(this.rotationPoint).rotate(e-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},pi.prototype.computeRotate=function(e){e=this.rotationPoint.ab(e)-this.handleAngle;var t=this.adornedObject.panel;null!==t&&(e-=t.li()),360<=e?e-=360:0>e&&(e+=360),t=Math.min(Math.abs(this.snapAngleMultiple),180);var n=Math.min(Math.abs(this.snapAngleEpsilon),t/2);return!this.diagram.lastInput.shift&&0t-n&&(e=(Math.floor(e/t)+1)*t)),360<=e?e-=360:0>e&&(e+=360),e},d.Object.defineProperties(pi.prototype,{handleArchetype:{get:function(){return this.o},set:function(e){this.o=e}},handle:{get:function(){return this.j},set:function(e){if(null!==e&&!(e.part instanceof Vu))throw Error("new handle is not in an Adornment: "+e);this.j=e}},adornedObject:{get:function(){return this.ue},set:function(e){if(null!==e&&e.part instanceof Vu)throw Error("new handle must not be in an Adornment: "+e);this.ue=e}},snapAngleMultiple:{get:function(){return this.ia},set:function(e){this.ia=e}},snapAngleEpsilon:{get:function(){return this.V},set:function(e){this.V=e}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(e){this.kr=e.copy()}},handleAngle:{get:function(){return this.u},set:function(e){this.u=e}},handleDistance:{get:function(){return this.F},set:function(e){this.F=e}}}),pi.className="RotatingTool",B("rotatingTool",(function(){return this.findTool("Rotating")}),(function(e){this.gb("Rotating",e,this.mouseDownTools)})),h(fi,bn),fi.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},fi.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},fi.className="ClickSelectingTool",h(gi,bn),gi.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram,t=e.lastInput,n=e.ic(t.documentPoint,(function(e){for(;null!==e.panel&&!e.isActionable;)e=e.panel;return e}));return null!==n&&(!!n.isActionable&&(this.pk=n,e.Ck=e.ic(t.documentPoint,null,null),!0))},gi.prototype.doMouseDown=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;null!==t&&(e.targetObject=t,null!==t.actionDown&&t.actionDown(e,t))}else this.canStart()&&this.doActivate()},gi.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;null!==t&&(e.targetObject=t,null!==t.actionMove&&t.actionMove(e,t))}},gi.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;if(null===t)return;e.targetObject=t,null!==t.actionUp&&t.actionUp(e,t),this.standardMouseClick((function(e){for(;null!==e.panel&&(!e.isActionable||e!==t);)e=e.panel;return e}),(function(e){return e===t}))}this.stopTool()},gi.prototype.doCancel=function(){var e=this.diagram.lastInput,t=this.pk;null!==t&&(e.targetObject=t,null!==t.actionCancel&&t.actionCancel(e,t),this.stopTool())},gi.prototype.doStop=function(){this.pk=null},gi.className="ActionTool",h(mi,bn),mi.prototype.canStart=function(){if(!this.isEnabled||null===this.archetypeNodeData)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(1===e.lastInput.clickCount&&(this.mw=e.lastInput.viewPoint.copy()),2!==e.lastInput.clickCount||this.isBeyondDragSize(this.mw))return!1}else if(1!==e.lastInput.clickCount)return!1;return e.currentTool===this||null===e.Ol(e.lastInput.documentPoint,!0)},mi.prototype.doMouseUp=function(){var e=this.diagram;this.isActive&&this.insertPart(e.lastInput.documentPoint),this.stopTool()},mi.prototype.insertPart=function(e){var t=this.diagram,n=this.archetypeNodeData;if(null===n)return null;var i=null;try{if(t.R("ChangingSelection",t.selection),this.Ea(this.name),n instanceof Su)n.Zc()&&(Wl(n),null!==(i=n.copy())&&t.add(i));else if(null!==n){var r=t.model.copyNodeData(n);C(r)&&(t.model.xf(r),i=t.Lc(r))}if(null!==i){var o=fe.allocAt(e.x,e.y);this.isGridSnapEnabled&&uo(this.diagram,i,e,o),i.location=o,t.allowSelect&&(t.clearSelection(!0),i.isSelected=!0),fe.free(o)}t.Ya(),this.transactionResult=this.name,t.R("PartCreated",i)}finally{this.stopTransaction(),t.R("ChangedSelection",t.selection)}return i},d.Object.defineProperties(mi.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(e){this.Ri=e}},isDoubleClick:{get:function(){return this.o},set:function(e){this.o=e}},isGridSnapEnabled:{get:function(){return this.j},set:function(e){this.j=e}}}),mi.className="ClickCreatingTool",h(vi,bn),vi.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(!e.allowSelect)return!1;var t=e.lastInput;return!(!t.left||e.currentTool!==this&&(!this.isBeyondDragSize()||t.timestamp-e.firstInput.timestampr.right&&(n.x-=i.width+5/t.scale),n.xr.bottom&&(n.y-=i.height+5/t.scale),n.ye.lastInput.clickCount)},Li.prototype.doStart=function(){Ki=this,null!==this.textBlock&&this.doActivate()},Li.prototype.doActivate=function(){if(!this.isActive){var e=this.diagram;if(null!==e){var t=this.textBlock;if(null===t&&(t=e.ic(e.lastInput.documentPoint)),null!==t&&t instanceof Pc&&(this.textBlock=t,null!==t.part)){e.animationManager.Cc(),this.isActive=!0,this.qa=zi;var n=this.defaultTextEditor;null!==t.textEditor&&(n=t.textEditor),this.Zh=this.textBlock.copy();var i=new Ie(this.textBlock.ga(et),this.textBlock.ga(lt));e.tv(i),n.show(t,e,this),this.currentTextEditor=n}}}},Li.prototype.doCancel=function(){this.stopTool()},Li.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Li.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Di)},Li.prototype.acceptText=function(e){switch(e){case Di:this.qa===Zi?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():this.qa!==zi&&this.qa!==Hi&&this.qa!==ji||(this.qa=$i,Ai(this));break;case Ti:case Ii:case Ni:Ii===e&&!0===this.textBlock.isMultiline||this.qa!==zi&&this.qa!==Hi&&this.qa!==ji||(this.qa=$i,Ai(this))}},Li.prototype.doError=function(e,t){var n=this.textBlock;null!==n.errorFunction&&n.errorFunction(this,e,t),(e=this.currentTextEditor)&&e.show(n,this.diagram,this)},Li.prototype.doSuccess=function(e,t){var n=this.textBlock;null!==n.textEdited&&n.textEdited(n,e,t)},Li.prototype.doDeactivate=function(){var e=this.diagram;null!==e&&(this.qa=Fi,null!==this.currentTextEditor&&this.currentTextEditor.hide(e,this),this.textBlock=null,this.isActive=!1)},Li.prototype.doStop=function(){Ki=null},Li.prototype.isValidText=function(e,t,n){var i=this.textValidation;return!(null!==i&&!i(e,t,n))&&!(null!==(i=e.textValidation)&&!i(e,t,n))},Li.prototype.Lx=function(e){var t=this.Zh;return t.text=e,t.measure(this.textBlock.Ih,1/0),t},d.Object.defineProperties(Li.prototype,{textBlock:{get:function(){return this.ia},set:function(e){this.ia=e}},currentTextEditor:{get:function(){return this.o},set:function(e){this.o=e}},defaultTextEditor:{get:function(){return this.j},set:function(e){this.j=e}},starting:{get:function(){return this.V},set:function(e){this.V=e}},textValidation:{get:function(){return this.vj},set:function(e){this.vj=e}},minimumEditorScale:{get:function(){return this.u},set:function(e){this.u=e}},selectsTextOnActivate:{get:function(){return this.F},set:function(e){this.F=e}},state:{get:function(){return this.qa},set:function(e){this.qa!==e&&(this.qa=e)}}}),Li.prototype.measureTemporaryTextBlock=Li.prototype.Lx;var Ti=new j(Li,"LostFocus",0),Di=new j(Li,"MouseDown",1),Ni=new j(Li,"Tab",2),Ii=new j(Li,"Enter",3),Bi=new j(Li,"SingleClick",0),Ri=new j(Li,"SingleClickSelected",1),Oi=new j(Li,"DoubleClick",2),Fi=new j(Li,"StateNone",0),zi=new j(Li,"StateActive",1),ji=new j(Li,"StateEditing",2),$i=new j(Li,"StateValidating",3),Hi=new j(Li,"StateInvalid",4),Zi=new j(Li,"StateValidated",5),Ki=null;function Gi(e){rr||(nr(),rr=!0),this.H=br,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=or,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Q,this.ce=new lr,this.ce.Yd=this,this.Ei=new Q,this.pu=new Q,this.Sr=new Q,this.pr=new Q,e&&Object.assign(this,e)}function Ui(e,t){e.Jd&&e.canStart(t)&&(e.Zd.add(t),e.defaultAnimation.isAnimating&&e.Cc(),Qr(e.H),e.zb=!0)}function Vi(e){if(e.Jd&&e.zb){var t=e.ce,n=e.H,i=e.Zd.contains("Model");i&&(e.Ok=!0,e.Pk===or?(t.isViewportUnconstrained=!0,t.vc.clear(),t.add(n,"position",n.position.copy().offset(0,-200),n.position),t.add(n,"opacity",0,1)):e.Pk===sr&&t.vc.clear(),e.Qw=!(e.Pk!==ar||!n.du.D(n.pa)),n.R("InitialAnimationStarting",e)),i&&!e.Gh||0===t.vc.count?(e.Zd.clear(),e.zb=!1,t.vc.clear(),cr(t,n),e.Ok=!1,n.N()):(e.Zd.clear(),n.kg=!1,i=t.vc.get(n),n.autoScale!==Zo&&null!==i&&(delete i.start.scale,delete i.end.scale),m.requestAnimationFrame((function(){!1===e.zb||t.bc||(n.Gf("temporaryPixelRatio")&&Dr(n),Ir(n),e.zb=!1,t.start(),t.bc&&(Yi(e),n.Ya(),pr(t,0),Xr(n,!0),Xi(e),n.R("AnimationStarting",e)))})))}}function Wi(e){return e.Zd.contains("Trigger")&&1===e.Zd.count}function qi(e,t,n,i){e.isTicking||Wi(e)||t instanceof xh&&(null!==t.fromNode||null!==t.toNode)||e.ce.add(t,"position",n,i,!1)}function Yi(e){if(!e.vq){var t=e.H;e.Ow=t.skipsUndoManager,e.cw=t.skipsModelSourceBindings,t.skipsUndoManager=!0,t.skipsModelSourceBindings=!0,e.vq=!0}}function Xi(e){var t=e.H;t.skipsUndoManager=e.Ow,t.skipsModelSourceBindings=e.cw,e.vq=!1}function Qi(e,t,n){!e.zb||t.D(n)||Wi(e)||(e.H.pi||(t=n.copy()),ur(e.ce,e.H,"position",t,n))}function Ji(e,t,n){t.fd&&(t.Tg=n,e.pr.add(t))}function er(e,t){for(t=t.findLinksConnected();t.next();){var n=t.value;n.fd&&(n.Tg=n.points.copy(),e.pr.add(n))}}function tr(e,t,n,i,r){null===e&&(e=[0,0,0,0]),null===t&&(t=[0,0,0,0]);var o=e[0],a=e[1],s=e[2];e=e[3];var l=t[0],c=t[1],u=t[2];return t=t[3],0===s||100===s?(o=l,a=c):0!==u&&100!==u||(l=o,c=a),180o?o+=360:l+=360),"hsla("+(o=r(n,o,l-o,i)%360)+", "+(a=r(n,a,c-a,i))+"%, "+(s=r(n,s,u-s,i))+"%, "+(n=r(n,e,t-e,i))+")"}function nr(){function e(e,t,n,i,r,o){e.position=new fe(i(r,t.x,n.x-t.x,o),i(r,t.y,n.y-t.y,o))}var t=new pe;t.add("position:diagram",e),t.add("position",e),t.add("position:part",(function(e,t,n,i,r,o){re&&k(e,">= 1",Gi,"duration"),this.Dg=e}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(e){this.Gh=e}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(e){this.Pk=e}}}),Gi.prototype.stopAnimation=Gi.prototype.Cc;var ir=null,rr=!1,or=new j(Gi,"Default",1),ar=new j(Gi,"AnimateLocations",2),sr=new j(Gi,"None",3);function lr(e){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=fr,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=ne,this.vc=new pe,this.Tt=new pe,this.yl=new Q,this.Ut=new Q,this.dw=Qo,e&&Object.assign(this,e)}function cr(e,t){if(e.Tt.clear(),e.Wk=!1,e.au=0,e.Gd=NaN,0e.cn?e.Gd:i-e.Qd;t&&((r=e.gw)e.cn&&(e.ho&&!e.Wk?(e.Qd=+new Date,e.cn=e.Qd+e.Gd,e.Wk=!0):e.Ml(!1))}}}function pr(e,t){for(var n=e.Gd,i=e.vc.iterator,r=e.Wk;i.next();){var o=i.key;if(!(o instanceof Na&&null===o.diagram)){var a=i.value,s=r?a.end:a.start;a=r?a.start:a.end;var l,c=ir;for(l in a)"position"===l&&(a["position:placeholder"]||a["position:nodeCollapse"])||null===c.get(l)||c.get(l)(o,s[l],a[l],e.Lp,t,n,e)}}}function fr(e,t,n,i){return 1>(e/=i/2)?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function gr(e,t,n,i){return e===i?t+n:n*(1-Math.pow(2,-10*e/i))+t}function mr(e,t,n){this.start=e,this.end=t,this.Ku={},this.Hu=n,this.nv=!1}function vr(e,t,n){this.xd=null,this.rf=e,this.so=n||wr,this.uk=null,void 0!==t&&(this.uk=t,void 0===n&&(this.so=xr))}Gi.className="AnimationManager",Gi.defineAnimationEffect=function(e,t){rr||(nr(),rr=!0),ir.add(e,t)},Gi.Default=or,Gi.AnimateLocations=ar,Gi.None=sr,lr.prototype.suspend=function(){this.Xk=!0},lr.prototype.advanceTo=function(e,t){t&&(this.Xk=!1),this.ho&&e>=this.Gd&&(this.Wk=!0,e-=this.Gd),this.gw=e,dr(this,!0),Yi(this.Yd),Xr(this.H),Xi(this.Yd),this.H.redraw()},(t=lr.prototype).start=function(){if(0===this.vc.count||this.bc)return this;for(var e=this.H,t=this.vc.iterator;t.next();){var n=t.key;null===e&&(n instanceof Er?e=n:n instanceof Na&&(e=n.diagram))}return null===e?this:(this.H=e,this.Yd=e.animationManager,!1===(t=this.Yd).isEnabled||(this.Gd=isNaN(this.Dg)?t.duration:this.Dg,this.Lp=this.ot,t.Ok&&t.Pk===or&&this===t.defaultAnimation&&(this.Lp=gr,this.Gd=isNaN(this.Dg)?600===t.duration?900:t.duration:this.Dg),this.dw=e.scrollMode,this.isViewportUnconstrained&&(e.sj=Jo),Yi(t),this.yl.each((function(t){t.data=null,e.add(t)})),Xi(t),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,function(e,t){function n(){if(0this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),cr(this,null),n.Ml(this),t.$b())}},t.Cj=function(e,t){var n=t.actualBounds,i=null;if(t instanceof gh&&(i=t.placeholder),null!==i?(n=i.ga(et),i=i.padding,n.x+=i.left,n.y+=i.top,this.add(e,"position",n,e.position,!1)):this.add(e,"position",new fe(n.x+n.width/2,n.y+n.height/2),e.position,!1),this.add(e,"scale",.01,e.scale,!1),e instanceof gh)for(e=e.memberParts;e.next();)(i=e.value)instanceof qu&&this.Cj(i,t)},t.Aj=function(e,t){if(e.isVisible()){var n=null;if(t instanceof gh&&(n=t.placeholder),null!==n){var i=n.ga(et);n=n.padding,i.x+=n.left,i.y+=n.top,this.add(e,"position:placeholder",e.position,i,!0)}else this.add(e,"position:nodeCollapse",e.position,t,!0);if(this.add(e,"scale",e.scale,.01,!0),(i=this.vc).contains(e)&&(i.I(e).nv=!0),e instanceof gh)for(e=e.memberParts;e.next();)(i=e.value)instanceof qu&&this.Aj(i,t)}},t.Ez=function(e){var t=this.Tt.get(e);return null===t&&(t={},this.Tt.add(e,t)),t},d.Object.defineProperties(lr.prototype,{duration:{get:function(){return this.Dg},set:function(e){1>e&&k(e,">= 1",lr,"duration"),this.Dg=e}},reversible:{get:function(){return this.ho},set:function(e){this.ho=e}},runCount:{get:function(){return this.cu},set:function(e){0=r)return t;if(0>t&&(t=e.indexOf(n)),0>t)return-1;for(var o=t-1,a=NaN;0<=o&&(a=e.M(o).zOrder,isNaN(a));)o--;for(var s=t+1,l=NaN;si)for(;;){if(-1===o||a<=i){if(++o===t)break;return e.mb(t),e.Gb(o,n),o}for(a=NaN;0<=--o&&(a=e.M(o).zOrder,isNaN(a)););}else if(!isNaN(l)&&l=i){if(--s===t)break;return e.mb(t),e.Gb(s,n),s}for(l=NaN;++si&&s.containingGroup===n&&(i=a,0<=t))break}!(0>i)&&ir;r++)t[R("7ca11abfd7330390")](R(i[r-1]),10,15*r);for(t[n]=R("39f046ebb36e4b"),n=1;5>n;n++)t[R("7ca11abfd7330390")](R(i[n-1]),10,15*n);4===i.length&&"5"===i[0][0]&&"7"===i[3][0]||($t.prototype.Cd=$t.prototype.Eu),aa=e}}(),sa=!0),J(this),br=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,jo){var n=this,i=function(){n.removeEventListener(m.document,"DOMContentLoaded",i,!1),n.setRTL()};null!==m.document.body?this.setRTL():n.addEventListener(m.document,"DOMContentLoaded",i,!1)}this.ol=null,Fo.add("Model",Qd);var r=this;return this.Hb=function(e){var t=r.partManager;if(e.model===t.diagram.model&&t.diagram.aa){t.diagram.aa=!1;try{var n=e.change;""===e.modelChange&&n===pn&&t.updateDataBindings(e.object,e.propertyName)}finally{t.diagram.aa=!0}}},this.Oc=function(e){r.partManager.doModelChanged(e)},this.hu=this.ku=null,Mr(this),this.model=Ip(),this.Wg=!0,Br(this),this.layout=new Td,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new la,void 0!==e&&("string"==typeof e||m.Element&&e instanceof Element?Tr(this,e):t=e),this.vb=!1,t&&this.nm(t),this}function Mr(e){e.Yd=new Gi,e.Yd.Xe(e),e.Db=17,e.Gw=!1,e.tn=!1,e.bu="default",e.Wa=new Y,e.pj=new pe,e.nl="default",e.Tx(),e.Sx(),e.pb=1,e.pa=new fe(NaN,NaN).freeze(),e.du=new fe(NaN,NaN),e.Ca=1,e.Pp=1,e.zt=new fe(NaN,NaN).freeze(),e.At=NaN,e.Ot=1e-4,e.Mt=100,e.Ab=new $t,e.zu=new fe(NaN,NaN).freeze(),e.ut=new Ie(NaN,NaN,NaN,NaN).freeze(),e.rj=new We(0,0,0,0).freeze(),e.sj=Qo,e.nu=!1,e.Zt=null,e.fu=null,e.yh=Zo,e.zk=_t,e.Fg=Zo,e.pq=_t,e.yt=et,e.Bt=et,e.Fc=!0,e.pn=!1,e.De=new Q,e.Eh=new pe,e.Xm=!0,e.vp=250,e.vk=-1,e.xp=new We(16,16,16,16).freeze(),e.kg=!1,e.Jk=!1,e.fn=!0,e.bq=new cn,e.bq.diagram=e,e.Qg=new cn,e.Qg.diagram=e,e.cj=new cn,e.cj.diagram=e,e.zg=null,e.pf=null,e.qu=!1,function(e){function t(e){var t=e.toLowerCase(),r=new Y;n.add(e,r),n.add(t,r),i.add(e,e),i.add(t,e)}var n=new pe,i=new pe;t("InitialAnimationStarting"),t("AnimationStarting"),t("AnimationFinished"),t("BackgroundSingleClicked"),t("BackgroundDoubleClicked"),t("BackgroundContextClicked"),t("ClipboardChanged"),t("ClipboardPasted"),t("DocumentBoundsChanged"),t("ExternalObjectsDropped"),t("GainedFocus"),t("InitialLayoutCompleted"),t("LayoutCompleted"),t("LinkDrawn"),t("LinkRelinked"),t("LinkReshaped"),t("LostFocus"),t("Modified"),t("ObjectSingleClicked"),t("ObjectDoubleClicked"),t("ObjectContextClicked"),t("PartCreated"),t("PartResized"),t("PartRotated"),t("SelectionMoved"),t("SelectionCopied"),t("SelectionDeleting"),t("SelectionDeleted"),t("SelectionGrouped"),t("SelectionUngrouped"),t("ChangingSelection"),t("ChangedSelection"),t("SubGraphCollapsed"),t("SubGraphExpanded"),t("TextEdited"),t("TreeCollapsed"),t("TreeExpanded"),t("ViewportBoundsChanged"),t("InvalidateDraw"),e.iw=n,e.hw=i}(e),e.ai=new Q,e.Ht=!0,e.uu=ea,e.pw=!1,e.wu=Uo,e.it="auto",e.Op="auto",e.zh=null,e.Fh=null,e.Bh=null,e.Qh=null,e.Oh=null,e.Nh=null,e.Qt=null,e.Lh=null,e.xt=!1,e.Mh=null,e.Ph=null,e.$h=null,e.Ch=null,e.Rt=!1,e.Yt={},e.oj=[null,null],e.Wg=!1,e.Iw=!1,e.ou=!1,e.lt=!1,e.rw=!0,e.ld=!1,e.$i=!1,e.Tw=!0,e.Ce=-2,e.Og=new pe,e.Xn=new Y,e.Gg=!1,e.Jd=!0,e.Us=!0,e.Fi=!0,e.Gi=!0,e.Vs=!1,e.Ws=!0,e.Pi=!0,e.Hi=!0,e.Qi=!0,e.Ys=!0,e.Ii=!0,e.Ki=!0,e.Ji=!0,e.Li=!0,e.Mi=!0,e.Ni=!0,e.Oi=!0,e.Zs=!0,e.at=!0,e.qw=!1,e.Vk=!1,e.mn=!0,e.nn=!0,e.Xs=!0,e.$s=!0,e.iu=16,e.mu=16,e.qr=!1,e.gu=!1,e.lu=0,e.ju=0,e.yb=new We(5).freeze(),e.Hw=(new Q).freeze(),e.Nt=999999999,e.nw=(new Q).freeze(),e.Zi=!0,e.Ee=!0,e.vd=!0,e.Be=!1,e.gf=!1,e.xh=!0,e.hf=!1,e.sy=new Q,e.ow=new Q,e.Xh=null,e.aw=new Ae(8,8),e.bw=999,e.Bw=1,e.Jw=0,e.fc={scale:1,position:new fe,bounds:new Ie,Py:new Ae,bA:new Ae,Oz:!1},e.fc.canvasSize=e.fc.Py,e.fc.newCanvasSize=e.fc.bA,e.fc.isScroll=!1,e.Rw=new Ie(NaN,NaN,NaN,NaN).freeze(),e.wo=new Ae(NaN,NaN).freeze(),e.Sp=new Ie(NaN,NaN,NaN,NaN).freeze(),e.It=!1,e.Lg=new pe;var t=new qu,n=new Pc;n.bind(new $p("text","",N)),t.add(n),e.ny=t,e.Lg.add("",t),t=new qu,(n=new Pc).stroke="brown",n.bind(new $p("text","",N)),t.add(n),e.Lg.add("Comment",t),(t=new qu).selectable=!1,t.avoidable=!1,(n=new fc).figure="Ellipse",n.fill="black",n.stroke=null,n.desiredSize=new Ae(3,3).ja(),t.add(n),e.Lg.add("LinkLabel",t),e.Yi=new pe,(t=new gh).selectionObjectName="GROUPPANEL",t.type=El.Vertical,(n=new Pc).font="bold 12pt sans-serif",n.bind(new $p("text","",N)),t.add(n),(n=new El(El.Auto)).name="GROUPPANEL";var i=new fc;i.figure="Rectangle",i.fill="rgba(128,128,128,0.2)",i.stroke="black",n.add(i),(i=new wh).padding=new We(5,5,5,5).ja(),n.add(i),t.add(n),e.ly=t,e.Yi.add("",t),e.Kh=new pe,t=new xh,(n=new fc).isPanelMain=!0,t.add(n),(n=new fc).toArrow="Standard",n.fill="black",n.stroke=null,n.strokeWidth=0,t.add(n),e.my=t,e.Kh.add("",t),t=new xh,(n=new fc).isPanelMain=!0,n.stroke="brown",t.add(n),e.Kh.add("Comment",t),(t=new Vu).type=El.Auto,(n=new fc).fill=null,n.stroke="dodgerblue",n.strokeWidth=3,t.add(n),(n=new wh).margin=new We(1.5,1.5,1.5,1.5).ja(),t.add(n),e.St=t,e.wt=t,(t=new Vu).type=El.Link,(n=new fc).isPanelMain=!0,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,t.add(n),e.Kt=t,e.fe=null,e.mq=!1,e.Ck=null,e.partManager=new Qd,e.toolManager=new wn,e.toolManager.initializeStandardTools(),e.defaultTool=e.toolManager,e.currentTool=e.defaultTool,e.nt=null,e.Wm=new ka,e.Vt=null,e.Wt=null,e.Mr=!1,e.commandHandler=Ar(),e.eq=null,e.fq=ae,e.Pw=!1,e.Mb=1,e.Yh=null,e.Oq=1,e.Sq=0,e.zw=[0,0,0,0,0],e.Tq=0,e.yq=1,e.tw=0,e.uw=new fe,e.zy=500,e.wp=new fe,e.wq=!1}function Lr(e,t){e.animationManager.Cc(!0),e.Hw=(new Q).freeze(),e.nw=(new Q).freeze();var n=e.skipsUndoManager,i=null!==e.cc&&void 0!==e.cc;i&&(e.skipsUndoManager=!0);var r=null;null!==e.fe&&(null!==(r=e.fe.part)&&e.remove(r));var o=[],a=e.Wa.length;if(t){for(t=0;tMath.abs(t.deltaY)?-i:-r):void 0!==t.wheelDeltaX?(0!==t.wheelDeltaX&&(i=0Math.abs(t.wheelDeltaY)?-i:-r):void 0!==t.wheelDelta&&0!==t.wheelDelta&&(n.delta=0n||Math.abs(r.y-t.screenY)>n)?e.yq++:e.yq=1,i.clickCount=e.yq,e.tw=t.timeStamp,e.uw.sg(t.screenX,t.screenY),e.doMouseDown(),1===t.button?t.preventDefault():Vr(i,t)}},e.dk=function(t){if(e.isEnabled){e.Vk=!0;var n=e.oj;if(null===n[0]||n[0].pointerId!==t.pointerId&&n[0].pointerType===t.pointerType){if(null!==n[1]&&n[1].pointerId===t.pointerId)return void(n[1]=t);if(null!==n[0])return;n[0]=t}else n[0]=t;if(n[0].pointerId===t.pointerId){n=Ur(e,t,!1,!1,!1,null!==n[1]);var i=m.document.elementFromPoint(t.clientX,t.clientY)||null;null!==i&&void 0!==i.shadowRoot&&null!==i.shadowRoot&&(i=i.shadowRoot.elementFromPoint(t.clientX,t.clientY));var r=e,o=t;i&&i.H&&(o=t,r=i.H),n.targetDiagram=r,Wr(e,o,n),n.targetObject=null,e.doMouseMove(),Vr(n,t)}}},e.fk=function(t){if(e.isEnabled){e.Vk=!0;var n="touch"===t.pointerType||"pen"===t.pointerType,i=e.Yt;if(n&&e.qu)delete i[t.pointerId],t.preventDefault();else if(null===(i=e.oj)[0]||i[0].pointerId!==t.pointerId&&i[0].pointerType===t.pointerType)null!==i[1]&&i[1].pointerId===t.pointerId&&(i[1]=null);else{i[0]=null,i=Ur(e,t,!1,!0,!0,!1);var r=m.document.elementFromPoint(t.clientX,t.clientY)||null;null!==r&&void 0!==r.shadowRoot&&null!==r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(t.clientX,t.clientY)),null!==r&&r.H instanceof Er&&r.H!==e&&Wr(r.H,t,i),null===r&&(r=t.target),Wr(e,t,i),i.clickCount=e.yq,i.targetDiagram=Gr(t,r),i.targetObject=null,e.doMouseUp(),Vr(i,t),n&&(e.wq=!1)}}},e.ek=function(t){if(e.isEnabled){e.Vk=!1;var n=e.Yt;n[t.pointerId]&&delete n[t.pointerId],null!==(n=e.oj)[0]&&n[0].pointerId===t.pointerId&&(n[0]=null),null!==n[1]&&n[1].pointerId===t.pointerId&&(n[1]=null),"touch"!==t.pointerType&&"pen"!==t.pointerType&&((t=e.currentTool).cancelWaitAfter(),t.standardMouseOver())}},e.ck=function(t){var n=e.oj;null!==n[0]&&n[0].pointerId===t.pointerId?(n[0]=null,e.wq=!1):null!==n[1]&&n[1].pointerId===t.pointerId&&(n[1]=null)},e.Vp=i.Z["d"+xa[1]+xa[2]+"wI"+oa.slice(1,5)]["b"+Zp.slice(1,t)](i.Z,aa,t,t),i.Vc(!0),function(e){var t=e.ta.Oa;t instanceof HTMLCanvasElement||(t=e.div),e.addEventListener(t,"pointerdown",e.ui,!1),e.addEventListener(t,"pointermove",e.dk,!1),e.addEventListener(t,"pointerup",e.fk,!1),e.addEventListener(t,"pointerout",e.ek,!1),e.addEventListener(t,"pointercancel",e.ck,!1),e.addEventListener(t,"pointerenter",e.bz,!1),e.addEventListener(t,"pointerleave",e.cz,!1),e.addEventListener(t,"wheel",e.$j,!1),e.addEventListener(t,"keydown",e.Qz,!1),e.addEventListener(t,"keyup",e.Rz,!1),e.addEventListener(t,"blur",e.Ny,!1),e.addEventListener(t,"focus",e.Oy,!1),e.addEventListener(t,"selectstart",(function(e){return e.preventDefault(),!1}),!1),e.addEventListener(t,"contextmenu",(function(e){return e.preventDefault(),!1}),!1),e.addEventListener(m,"resize",e.Ov,!1)}(e),"svg"===e.nl&&(t=e.pj.get("svg"),e.Ka.appendChild(t.Oa),e.ib=t.context)}}function Dr(e){30n&&(t=n),te.maxScale&&(t=e.maxScale),t):t===Go?((t=l>s?(a-e.Db)/i:(o-e.Db)/r)>n&&(t=n),te.maxScale&&(t=e.maxScale),t):e.scale}function Hr(e,t,n,i,r,o){var a=fe.allocAt(e.pa.x,e.pa.y),s=a.x,l=a.y;if(null!==e.eq){var c=fe.alloc();s=(c=e.eq.ga(et,c)).x-e.fq.x/e.scale,l=c.y-e.fq.y/e.scale,r=Je,fe.free(c)}(o||e.scrollMode===Qo)&&(r.sb()&&(n>t.width&&(s=t.x+(r.x*t.width+r.offsetX)-(r.x*n-r.offsetX)),i>t.height&&(l=t.y+(r.y*t.height+r.offsetY)-(r.y*i-r.offsetY))),r=e.rj,o=n-t.width,nt.left?s=t.left:st.top?l=t.top:lt;t++){var n=e.De.iterator;if(null===n||0===e.De.count)break;e.De=new Q,e.Nv(n,e.De)}e.nodes.each((function(e){e instanceof gh&&0!=(65536&e.U)!=!1&&(e.U=65536^e.U)}))}}function Jr(e,t){for(var n=A(),i=A(),r=t.memberParts;r.next();){var o=r.value;o.isVisible()&&(o instanceof gh?(ts(o)||is(o)||Ru(o))&&Jr(e,o):o instanceof xh?o.fromNode===t||o.toNode===t?i.push(o):n.push(o):(o.measure(1/0,1/0),o.arrange()))}for(e=n.length,r=0;rx&&(v=k.left,y=k.right),m.height>S&&(b=k.top,w=k.bottom)):(v=k.left,y=k.right,b=k.top,w=k.bottom);var _=m.width+v+y,C=m.height+b+w,P=_>l/(k=e.scale),E=C>c/k;if(!(o||e.gf||e.Be||P||E))return!0;v=m.x-v,l=u.x,y=m.right+y,c=u.right+a,b=m.y-b;var M=u.y;m=m.bottom+w,u=u.bottom+s;var L="1px";if(w="1px",e.scrollMode===Qo&&(P||E)&&(P&&e.hasHorizontalScrollbar&&e.allowHorizontalScroll&&(P=1,v+1c+1&&(P=Math.max((y-c)*k+e.Aa,P)),x+a+1<_&&(P=Math.max((_-x)*k+e.Aa,P)),L=P.toString()+"px"),E&&e.hasVerticalScrollbar&&e.allowVerticalScroll&&(P=1,b+1u+1&&(P=Math.max((m-u)*k+e.ya,P)),S+s+1c+1&&(a=Math.max((y-c)*k+e.Aa,a)),x+1<_&&(a=Math.max((_-x)*k+e.Aa,a)),L=a.toString()+"px"),P="1px"!==L,a=e.ya,P!==e.Be&&(a=P?e.ya-e.Db:e.ya+e.Db),Cu+1&&(s=Math.max((m-u)*k+a,s)),S+1c+1&&(t=e.position.x*k)),e.tn)switch(e.bu){case"negative":t=-(f.scrollWidth-t-f.clientWidth);break;case"reverse":t=f.scrollWidth-t-f.clientWidth}return f.scrollLeft=t,e.hasVerticalScrollbar&&e.allowVerticalScroll&&(S+1u+1&&(f.scrollTop=e.position.y*k)),l=e.Aa,c=e.ya,f.style.width=l+(e.gf?e.Db:0)+"px",f.style.height=c+(e.Be?e.Db:0)+"px",n===l&&i===c&&!e.animationManager.zb||(n=Ie.allocAt(r,h,d,p),e.onViewportBoundsChanged(n,e.viewportBounds,k,o),Ie.free(n),!1)}function ao(e,t,n){var i=t.layer;null!==i&&i.diagram===e&&(t.isSelected=!1,t.isHighlighted=!1,t.C(2),n&&t.Lj(),0<=(n=i.pc(-1,t,!1))&&e.cb(gn,"parts",i,t,null,n,null),null!==(e=t.layerChanged)&&e(t,i,null))}function so(e,t,n,i,r,o){if(!t.contains(n)&&(void 0===o&&(o=!1),!i||o||n.canMove()||n.canCopy()))if(void 0===r&&(r=co(e)),n instanceof qu){if(t.add(n,e.Pd(r,n,n.location)),n instanceof gh&&(null!==n.placeholder||r.dragsMembers))for(o=n.memberParts;o.next();)so(e,t,o.value,i,r,r.groupsAlwaysMove);for(o=n.linksConnected;o.next();){var a=o.value;if(!t.contains(a)){var s=a.fromNode,l=a.toNode;null!==s&&t.contains(s)&&null!==l&&t.contains(l)&&so(e,t,a,i,r)}}if(r.dragsTree)for(n=n.Ou();n.next();)so(e,t,n.value,i,r)}else if(n instanceof xh)for(t.add(n,e.Pd(r,n)),n=n.labelNodes;n.next();)so(e,t,n.value,i,r);else n instanceof Vu||t.add(n,e.Pd(r,n,n.location))}function lo(e,t,n,i,r){if(null!==t&&0!==t.count){var o=fe.alloc(),a=fe.alloc();a.assign(n),isNaN(a.x)&&(a.x=0),isNaN(a.y)&&(a.y=0),(n=e.Mr)||ho(e,t);for(var s=A(),l=A(),c=t.iterator,u=fe.alloc();c.next();){var h=c.key,d=c.value;if(h.Zc()){var p=fo(e,h,t);null!==p?s.push(new Sa(h,d,p)):r&&!h.canMove()||(p=d.point,o.assign(p),e.computeMove(h,o.add(a),i,u),h.location=u,void 0===d.shifted&&(d.shifted=new fe),d.shifted.assign(u.re(p)))}else c.key instanceof xh&&l.push(c.sa)}for(fe.free(u),r=s.length,c=0;ce.maxScale&&(n=e.maxScale),o=fe.allocAt(e.pa.x+s/t-s/n,e.pa.y+l/t-l/n),e.position=o,fe.free(o),e.Ca=n,So(e),e.vb=!1,e.onViewportBoundsChanged(r,e.viewportBounds,t,!1),jr(e,!1),i.zb&&(Wi(i)||i.ce.add(i.H,"scale",t,e.Ca))}}function vo(e,t){var n=e.fe;if(null!==n&&n.visible){for(var i=Ae.alloc(),r=1,o=1,a=n.O.s,s=a.length,l=0;lu||(Dl(c.figure)?o=o*u/Zt.vx(o,u):r=r*u/Zt.vx(r,u))}if(a=n.gridCellSize,i.h(o*a.width,r*a.height),void 0!==t)r=t.width,o=t.height,e=t.x,a=t.y;else{if(t=Ie.alloc(),e=e.viewportBounds,t.h(e.x,e.y,e.width,e.height),!t.w())return void Ie.free(t);r=t.width,o=t.height,e=t.x,a=t.y,Ie.free(t)}n.width=r+2*i.width,n.height=o+2*i.height,t=fe.alloc(),Zt.No(e,a,0,0,i.width,i.height,t),t.offset(-i.width,-i.height),Ae.free(i),n.part.location=t,fe.free(t)}}function yo(e){var t=e.isModified;e.Tw!==t&&(e.Tw=t,e.R("Modified"))}function bo(e,t){for(var n=(t=t.O.s).length,i=0;i=i&&!o.defaultAnimation.isAnimating&&!o.zb&&(t||Ui(o,"Layout")),e.xh=!1;for(var a=e.ai.iterator;a.next();)Eo(e,a.value,t,i);r.isValidLayout||(!t||r.isRealtime||null===r.isRealtime||0===i?(r.doLayout(e),Qr(e),r.isValidLayout=!0):e.xh=!0)}finally{t=e.undoManager.isInternalTransaction,0===i&&(e.eb("Layout"),e.undoManager.isInternalTransaction=!1),!t||0!==i&&1!==i||Vi(o),e.aa=n}}}function Eo(e,t,n,i){if(null!==t){for(var r=t.gl.iterator;r.next();)Eo(e,r.value,n,i);null===(r=t.layout)||r.isValidLayout||(!n||r.isRealtime||0===i?(t.rh=!t.location.w(),r.doLayout(t),t.C(32),Jr(e,t),r.isValidLayout=!0):e.xh=!0)}}function Mo(e,t){var n=e.hw.I(t);return null!==n?n:e.hw.I(t.toLowerCase())}function Lo(e,t){var n=e.iw.I(t);return null!==n||null!==(n=e.iw.I(t.toLowerCase()))?n:void x("Unknown DiagramEvent name: "+t)}function Ao(e){if(e.animationManager.isTicking)return!1;var t=e.currentTool;return t!==e.toolManager.findTool("Dragging")||(!e.Mr||t.isComplexRoutingRealtime)}function To(e,t,n,i){var r=e.Xh;if(null===r&&(e.Xh=r=new pd(e.avoidanceCellSize)),r.vs||r.group!==n||r.Yx!==i){if(r.Hx=Math.max(r.Os+1,Math.floor(e.avoidanceLimit/e.avoidanceCellSize.width)),r.Ix=Math.max(r.Os+1,Math.floor(e.avoidanceLimit/e.avoidanceCellSize.height)),null!==n&&(n=Do(e,n)),null===n){t=Ie.alloc(),e.computeOccupiedArea(t),t.Bc(100,100),r.initialize(t);for(var o=e.nodes;o.next();){var a=o.value,s=a.layer;null!==s&&s.visible&&!s.isTemporary&&No(e,a,i,t)}Ie.free(t)}else{for(0l?t(n,r,s):m.requestAnimationFrame(i)}for(var r=n.callback,o=!0,a=e.Og.iterator;a.next();)if(!a.value[0].al){o=!1;break}if("function"!=typeof r||o)return t(n,r,e);var s=e,l=n.callbackTimeout||300,c=+new Date;return m.requestAnimationFrame((function(){i()})),null}function Oo(e,t,n,i){if(e.animationManager.Cc(),e.bd(),null===e.ta)return null;"object"!=typeof t&&x("properties argument must be an Object.");var r=t.size||null,o=t.scale||null;void 0!==t.scale&&isNaN(t.scale)&&(o="NaN");var a=t.maxSize;void 0===t.maxSize&&(a="SVG"===n?new Ae(1/0,1/0):new Ae(2e3,2e3));var s=t.position||null,l=t.parts||null,c=void 0===t.padding?1:t.padding,u=t.background||null,h=t.omitTemporary;void 0===h&&(h=!0);var d=t.document||document,p=t.elementFinished||null,f=t.showTemporary;void 0===f&&(f=!h),void 0===(t=t.showGrid)&&(t=f),null!==r&&isNaN(r.width)&&isNaN(r.height)&&(r=null),"number"==typeof c?c=new We(c):c instanceof We||x("MakeImage padding must be a Margin or a number."),c.left=Math.max(c.left,0),c.right=Math.max(c.right,0),c.top=Math.max(c.top,0),c.bottom=Math.max(c.bottom,0),e.ib.Vc(!0);var g=(h=new Ds(null,d,void 0,!0)).context;if(!(r||o||l||s))return h.width=e.Aa+Math.ceil(c.left+c.right),h.height=e.ya+Math.ceil(c.top+c.bottom),"SVG"===n?null===i?null:(i.resize(h.width,h.height,h.width,h.height),i.ownerDocument=d,i.hs=p,eo(e,i.context,c,new Ae(h.width,h.height),e.Ca,e.pa,l,u,f,t),i.context):(e.Xm=!1,eo(e,g,c,new Ae(h.width,h.height),e.Ca,e.pa,l,u,f,t),e.Xm=!0,h.context);var m=e.Pp,v=e.documentBounds.copy();if(v.Fv(e.yb),f)for(var y=e.Wa.s,b=y.length,w=0;wm?(o=m,r=v.width,v=v.height):(r=a.width,v=a.height):(r=v.width*o,v=v.height*o):(o=m,r=v.width,v=v.height),null!==c?(r+=s,v+=b):c=new We(0),null!==a&&(m=a.width,a=a.height,isNaN(m)&&(m=2e3),isNaN(a)&&(a=2e3),isFinite(m)&&(r=Math.min(r,m)),isFinite(a)&&(v=Math.min(v,a))),h.width=Math.ceil(r),h.height=Math.ceil(v),"SVG"===n?null===i?null:(i.resize(h.width,h.height,h.width,h.height),i.ownerDocument=d,i.hs=p,eo(e,i.context,c,new Ae(Math.ceil(r),Math.ceil(v)),o,y,l,u,f,t),i.context):(e.Xm=!1,eo(e,g,c,new Ae(Math.ceil(r),Math.ceil(v)),o,y,l,u,f,t),e.Xm=!0,h.context)}vr.className="AnimationTrigger",vr.Default=wr,vr.Immediate=xr,vr.Bundled=Sr,(t=kr.prototype).clear=function(){for(var e=this.Pa,t=0;t=e)return t;for(var n=0,i=0,r=0,o=0,a=0,s=this.Pa.iterator;s.next();){var l=s.value;l instanceof gh?r++:l instanceof qu?i++:l instanceof xh?o++:l instanceof Vu?a++:n++}if(s="",0n.Oq||s.height*r>n.Oq?t.gc(e,n):(r=t.actualBounds,o=t.naturalBounds,0===r.width||0===r.height||isNaN(r.x)||isNaN(r.y)||!t.isVisible()||(n=t.transform,null!==t.areaBackground&&(Ka(t,e,t.areaBackground,!0,!0,o,r),e.fillRect(r.x,r.y,r.width,r.height)),null===t.areaBackground&&null===t.background&&(Ka(t,e,"rgba(0,0,0,0.3)",!0,!1,o,r),e.fillRect(r.x,r.y,r.width,r.height)),null!==t.background&&(e.transform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),Ka(t,e,t.background,!0,!1,o,r),e.fillRect(0,0,o.width/2,o.height/2),n.ws()||(t=1/(n.m11*n.m22-n.m12*n.m21),e.transform(n.m22*t,-n.m12*t,-n.m21*t,n.m11*t,t*(n.m21*n.dy-n.m22*n.dx),t*(n.m12*n.dx-n.m11*n.dy)))))),i&&(e.restore(),e.Vc(!0))}},t.g=function(e,t,n,i,r){var o=this.diagram;null!==o&&o.cb(pn,e,this,t,n,i,r)},t.oi=function(e,t,n){var i=this.Pa;if(t.Ig=this,null===this&&Za(t),e>=i.count)e=i.count;else if(i.M(e)===t)return-1;return i.Gb(e,t),t.Vo(n),null!==(i=this.diagram)&&(n?i.N():i.oi(t)),Pr(this,e,t),e},t.pc=function(e,t,n){if(!n&&t.layer!==this&&null!==t.layer)return t.layer.pc(e,t,n);var i=this.Pa;if(0>e||e>=i.length){if(0>(e=i.indexOf(t)))return-1}else if(i.M(e)!==t&&0>(e=i.indexOf(t)))return-1;return t.Wo(n),i.mb(e),null!==(i=this.diagram)&&(n?i.N():i.pc(t)),t.Ig=null,Za(t),e},d.Object.defineProperties(kr.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(e){var t=this.xa;if(t!==e){var n=this.diagram;if(null!==n)for(""===t&&x("Cannot rename default Layer to: "+e),n=n.layers;n.next();)n.value.name===e&&x("Layer.name is already present in this diagram: "+e);for(this.xa=e,this.g("name",t,e),e=this.Pa.iterator;e.next();)e.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1=e)return t;for(var n=this.Wa.iterator;n.next();)t+="\n "+n.value.toString(e-1);return t},Er.prototype.addEventListener=function(e,t,n,i){e.addEventListener(t,n,{capture:i,passive:!1})},Er.prototype.removeEventListener=function(e,t,n,i){e.removeEventListener(t,n,{capture:i})},Er.prototype.computePixelRatio=function(){return null!==this.Yh?this.Yh:m.devicePixelRatio||1},Er.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Er.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Er.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Er.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Er.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Er.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Er.prototype.doFocus=function(){this.focus()},Er.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var e=m.scrollX||m.pageXOffset,t=m.scrollY||m.pageYOffset;this.ta.focus(),m.scrollTo(e,t)}},Er.prototype.Oy=function(){this.H.R("GainedFocus")},Er.prototype.Ny=function(){this.H.R("LostFocus")},Er.prototype.kx=function(e){if(null!==this.ta){var t=this.ku,n=this.hu;this.qr=!0;var i=this.documentBounds,r=this.viewportBounds,o=this.rj,a=i.x-o.left,s=i.y-o.top,l=i.width+o.left+o.right,c=i.height+o.top+o.bottom,u=i.right+o.right;o=i.bottom+o.bottom;var h=r.x;i=r.y;var d=r.width,p=r.height,f=r.right,g=r.bottom;r=this.scale;var m=e.scrollLeft;if(this.tn)switch(this.bu){case"negative":m=m+e.scrollWidth-e.clientWidth;break;case"reverse":m=e.scrollWidth-m-e.clientWidth}var v=m;df&&(this.position=m.h(-(t.scrollWidth-this.Aa)+v-this.Aa/r+u,this.position.y))),e.vy&&this.allowVerticalScroll&&(sg&&(this.position=m.h(this.position.x,-(t.scrollHeight-this.ya)+e.scrollTop-this.ya/r+o))),fe.free(m),this.vd=!0,this.Ee=this.qr=!1,i=this.documentBounds,r=this.viewportBounds,u=i.right,f=r.right,o=i.bottom,g=r.bottom,a=i.x,h=r.x,s=i.y,i=r.y,d>=l&&a>=h&&u<=f&&(n.style.width="1px"),p>=c&&s>=i&&o<=g&&(n.style.height="1px"))}},Er.prototype.computeBounds=function(e){return void 0===e&&(e=new Ie),Qr(this),zr(this,e)},Er.prototype.computePartsBounds=function(e,t){void 0===t&&(t=!1);var n=null;if(P(e))for(var i=0;ir/n?(o-(this.Be?this.Db:0))/i:(r-(this.gf?this.Db:0))/n:Math.min(o/i,r/n)}this.scale=r,this.position=new fe(e.x,e.y)}},t.Jy=function(e,t){this.Va();var n=this.documentBounds,i=this.viewportBounds;this.position=new fe(n.x+(e.x*n.width+e.offsetX)-(t.x*i.width-t.offsetX),n.y+(e.y*n.height+e.offsetY)-(t.y*i.height-t.offsetY))},t.zz=function(e){if(e instanceof Na){this.eq=e;var t=fe.alloc();this.fq=this.op(e.ga(et,t)),fe.free(t)}else this.eq=null,this.fq=ae},t.Ol=function(e,t){if(void 0===t&&(t=!0),t){if((e=Zr(this,e,(function(e){return e.part}),(function(e){return e.canSelect()})))instanceof Su)return e}else if((e=Zr(this,e,(function(e){return e.part})))instanceof Su)return e;return null},t.ic=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null),Qr(this);for(var i=this.Wa.iteratorBackwards;i.next();){var r=i.value;if(r.visible&&null!==(r=r.ic(e,t,n)))return r}return null},t.lz=function(e,t,n){return void 0===t&&(t=!0),function(e,t,n,i,r){for(void 0===n&&(n=null),void 0===i&&(i=null),r instanceof Y||r instanceof Q||(r=new Q),Qr(e),e=e.Wa.iteratorBackwards;e.next();){var o=e.value;o.visible&&!o.isTemporary&&o.ji(t,n,i,r)}return r}(this,e,(function(e){return e.part}),t?function(e){return e instanceof Su&&e.canSelect()}:null,n)},t.ji=function(e,t,n,i){void 0===t&&(t=null),void 0===n&&(n=null),i instanceof Y||i instanceof Q||(i=new Q),Qr(this);for(var r=this.Wa.iteratorBackwards;r.next();){var o=r.value;o.visible&&o.ji(e,t,n,i)}return i},t.ux=function(e,t,n,i){return void 0===t&&(t=!1),void 0===n&&(n=!0),function(e,t,n,i,r){var o=null;for(void 0===o&&(o=null),void 0===n&&(n=null),void 0===i&&(i=!1),r instanceof Y||r instanceof Q||(r=new Q),Qr(e),e=e.Wa.iteratorBackwards;e.next();){var a=e.value;a.visible&&!a.isTemporary&&a.Cf(t,o,n,i,r)}return r}(this,e,(function(e){return e instanceof Su&&(!n||e.canSelect())}),t,i)},t.Cf=function(e,t,n,i,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===i&&(i=!1),r instanceof Y||r instanceof Q||(r=new Q),Qr(this);for(var o=this.Wa.iteratorBackwards;o.next();){var a=o.value;a.visible&&a.Cf(e,t,n,i,r)}return r},t.Nu=function(e,t,n,i,r,o){var a=new Q;Qr(this);for(var s=this.Wa.iteratorBackwards;s.next();){var l=s.value;l.visible&&l.Nu(e,t,n,i,a,r,o)}return a},t.mz=function(e,t,n,i,r){return void 0===n&&(n=!0),void 0===i&&(i=!0),function(e,t,n,i,r,o){var a=null;void 0===a&&(a=null),void 0===i&&(i=null),void 0===r&&(r=!0),!1!==r&&!0!==r&&((r instanceof Y||r instanceof Q)&&(o=r),r=!0);for(o instanceof Y||o instanceof Q||(o=new Q),Qr(e),e=e.Wa.iteratorBackwards;e.next();){var s=e.value;s.visible&&!s.isTemporary&&s.og(t,n,a,i,r,o)}return o}(this,e,t,(function(e){return e instanceof Su&&(!i||e.canSelect())}),n,r)},t.og=function(e,t,n,i,r,o){void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r=!0),!1!==r&&!0!==r&&((r instanceof Y||r instanceof Q)&&(o=r),r=!0),o instanceof Y||o instanceof Q||(o=new Q),Qr(this);for(var a=this.Wa.iteratorBackwards;a.next();){var s=a.value;s.visible&&s.og(e,t,n,i,r,o)}return o},Er.prototype.acceptEvent=function(e){return Kr(this,e,e instanceof MouseEvent)},Er.prototype.Qz=function(e){var t=this.H;if(!this.H.isEnabled)return!1;var n=Kr(t,e,!1);switch(n.key=String.fromCharCode(e.which),n.down=!0,e.which){case 8:n.key="Backspace";break;case 33:n.key="PageUp";break;case 34:n.key="PageDown";break;case 35:n.key="End";break;case 36:n.key="Home";break;case 37:n.key="Left";break;case 38:n.key="Up";break;case 39:n.key="Right";break;case 40:n.key="Down";break;case 45:n.key="Insert";break;case 46:n.key="Del";break;case 48:n.key="0";break;case 187:case 61:case 107:n.key="Add";break;case 189:case 173:case 109:n.key="Subtract";break;case 27:n.key="Esc"}return t.doKeyDown(),Vr(n,e)},Er.prototype.Rz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Kr(t,e,!1);switch(n.key=String.fromCharCode(e.which),n.up=!0,e.which){case 8:n.key="Backspace";break;case 33:n.key="PageUp";break;case 34:n.key="PageDown";break;case 35:n.key="End";break;case 36:n.key="Home";break;case 37:n.key="Left";break;case 38:n.key="Up";break;case 39:n.key="Right";break;case 40:n.key="Down";break;case 45:n.key="Insert";break;case 46:n.key="Del"}return t.doKeyUp(),Vr(n,e)},Er.prototype.bz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Kr(t,e,!0);return null!==t.mouseEnter&&t.mouseEnter(n),t.currentTool.standardMouseOver(),Vr(n,e)},Er.prototype.cz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Kr(t,e,!0);return null!==t.mouseLeave&&t.mouseLeave(n),Vr(n,e)},Er.prototype.getMouse=function(e){var t=this.ta;if(null===t)return new fe(0,0);var n=t.getBoundingClientRect();return t=e.clientX-this.Aa/n.width*n.left,e=e.clientY-this.ya/n.height*n.top,null!==this.Ab?ye(new fe(t,e),this.Ab):new fe(t,e)},Er.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))},Er.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},(t=Er.prototype).Pz=function(){return this.kg},t.Xy=function(e){void 0===e&&(e=null);var t=this.animationManager,n=t.isEnabled;t.Cc(),t.isEnabled=!1,Xr(this),this.hf=!1,this.du=new fe(NaN,NaN),t.isEnabled=n,this.ld=!0;var i=this;null!==e&&b((function(){i.ld=!1,Ui(t,"Model"),e(i)}),1)},t.$b=function(e){if(void 0===e&&(e=!1),!0!==this.kg&&!(this.vb||!1===e&&this.ld)){this.kg=!0;var t=this;m.requestAnimationFrame((function(){t.kg&&t.bd()}))}},t.bd=function(){this.fn&&!this.kg||(this.fn&&(this.fn=!1),Xr(this))},t.Nv=function(e,t){for(e.reset();e.next();){var n=e.value;!n.Zc()||n instanceof gh||(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))}for(e.reset();e.next();)(n=e.value)instanceof gh&&n.isVisible()&&Jr(this,n);for(e.reset();e.next();)(n=e.value)instanceof xh&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n));for(e.reset();e.next();)(n=e.value)instanceof Vu&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))},t.Fd=function(e,t,n,i){if(this.vd||this.animationManager.isAnimating)for(var r=0;ri&&this.Ya(),this},t.Cy=function(e,t){go(this,e,t),e.Xe(this);var n=this.Wa,i=n.indexOf(e);0<=i&&(n.remove(e),null!==this.cc&&this.cb(gn,"layers",this,e,null,i,null));var r,o=n.count;for(r=0;ri&&this.Ya(),this},t.kA=function(e){if(e.diagram!==this&&x("Cannot remove a Layer from another Diagram: "+e+" of "+e.diagram),""!==e.name){var t=this.Wa,n=t.indexOf(e);if(t.remove(e)){for(t=e.Pa.copy().iterator;t.next();){var i=t.value,r=i.layerName;r!==e.name?i.layerName=r:i.layerName=""}null!==this.cc&&this.cb(gn,"layers",this,e,null,n,null),this.N(),this.Ya()}}},t.Qj=function(e){for(var t=this.layers;t.next();){var n=t.value;if(n.name===e)return n}return null},t.Yw=function(e){return null===this.pf&&(this.pf=new Y),this.pf.add(e),this.model.Pe(e),this},t.mA=function(e){null!==this.pf&&(this.pf.remove(e),0===this.pf.count&&(this.pf=null)),this.model.ik(e)},t.Pe=function(e){return null===this.zg&&(this.zg=new Y),this.zg.add(e),this},t.ik=function(e){null!==this.zg&&(this.zg.remove(e),0===this.zg.count&&(this.zg=null))},t.ds=function(e){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(e),e.change!==dn&&(this.isModified=!0),null!==this.zg)for(var t=this.zg,n=t.length,i=0;ih.Pa.indexOf(p)&&h.oi(d,p,f):(p.isSelected=!1,p.isHighlighted=!1,p.Wb(),h.pc(f?d:-1,p,f)))}else h instanceof Er?"number"==typeof d&&p instanceof kr&&(t?(p.Xe(this),this.Wa.Gb(d,p)):this.Wa.mb(d)):x("unknown ChangedEvent.Remove object: "+e.toString());this.isModified=!0}else i!==dn&&x("unknown ChangedEvent: "+e.toString())}finally{this.skipsModelSourceBindings=n}}},Er.prototype.Ea=function(e){return this.undoManager.Ea(e)},Er.prototype.eb=function(e){return this.undoManager.eb(e)},Er.prototype.Kf=function(){return this.undoManager.Kf()},Er.prototype.commit=function(e,t){void 0===t&&(t="");var n=this.skipsUndoManager;null===t&&(this.skipsUndoManager=!0,t=""),this.undoManager.Ea(t);var i=!1;try{e(this),i=!0}finally{i?this.undoManager.eb(t):this.undoManager.Kf(),this.skipsUndoManager=n}},Er.prototype.updateAllTargetBindings=function(e){this.partManager.updateAllTargetBindings(e)},Er.prototype.rp=function(){this.partManager.rp()},Er.prototype.onViewportBoundsChanged=function(e,t,n,i){if(!e.D(t)){void 0===i&&(i=!1),i||(this.Ee=!0),this.vd=!0;var r=this.layout;null===r||!r.isViewportSized||this.autoScale!==Zo||e.width===t.width&&e.height===t.height||r.C(),r=this.currentTool,!0===this.Vk&&r instanceof wn&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),xn(r,this)),this.vb||this.invalidateViewport(e,t),vo(this),this.fc.scale=n,this.fc.position.x=e.x,this.fc.position.y=e.y,this.fc.bounds.assign(e),this.fc.canvasSize.width=Math.round(e.width*n),this.fc.canvasSize.height=Math.round(e.height*n),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=i,this.R("ViewportBoundsChanged",this.fc,e),this.isVirtualized&&this.links.each((function(e){e.isAvoiding&&e.actualBounds.Yc(t)&&e.bb()}))}},Er.prototype.clearSelection=function(e){void 0===e&&(e=!1);var t=this.selection;if(0!==t.count){e||this.R("ChangingSelection",t);for(var n=t.Fa(),i=n.length,r=0;r=n.top&&0>=n.left&&0>=n.right&&0>=n.bottom)return t;var i=this.viewportBounds,r=this.scale;i=Ie.allocAt(0,0,i.width*r,i.height*r);var o=fe.allocAt(0,0);if(e.x>=i.x&&e.xi.x+i.width-n.right&&this.allowHorizontalScroll&&(a=Math.max(this.scrollHorizontalLineChange,1),a|=0,o.x+=a,e.x>i.x+i.width-n.right/2&&(o.x+=a),e.x>i.x+i.width-n.right/4&&(o.x+=4*a));return e.y>=i.y&&e.yi.y+i.height-n.bottom&&this.allowVerticalScroll&&(a=Math.max(this.scrollVerticalLineChange,1),a|=0,o.y+=a,e.y>i.y+i.height-n.bottom/2&&(o.y+=a),e.y>i.y+i.height-n.bottom/4&&(o.y+=4*a)),o.Xa(ne)||(t=new fe(t.x+o.x/r,t.y+o.y/r)),Ie.free(i),fe.free(o),t},(t=Er.prototype).Cs=function(){return null},t.av=function(){return null},t.bs=function(e,t){this.pj.add(e,t)},t.Fu=function(e){(this.Pw=e)||this.nodes.each((function(e){e instanceof gh&&(e.$p=null)}))},t.Wz=function(e){return jo?(void 0===e&&(e={}),e.returnType="Image",this.Jx(e)):null},t.Jx=function(e){return void 0===e&&(e={}),Ro(this,this.Xz,e)},t.Xz=function(e,t,n){var i=Oo(n,e,"canvas",null);if(null===i)return null;var r=null;if(null!==(n=i.Z.canvas))switch(r=e.returnType,r=void 0===r?"string":r.toLowerCase(),r){case oa+"data":r=i.getImageData(0,0,n.width,n.height);break;case oa:(i=(e.document||document).createElement("img")).src=n.toDataURL(e.type,e.details),r=i;break;case"blob":return"function"!=typeof t&&x('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),"function"==typeof n.toBlob?(n.toBlob(t,e.type,e.details),"toBlob"):(t(null),null);default:r=n.toDataURL(e.type,e.details)}return"function"==typeof t?(t(r),null):r},d.Object.defineProperties(Er.prototype,{renderer:{get:function(){return this.nl},set:function(e){this instanceof Pa||(""===e&&(e="default"),(e=e.toLowerCase())!==this.nl&&(this.nl=e,"default"===e||"canvas"===e?(null!==(e=this.pj.get("svg"))&&e.Oa.remove(),this.ta&&(this.ib=this.ta.context)):"svg"===e?(this.pj.contains("svg")?e=this.pj.get("svg"):(e=new vs(this,m.document),this.bs("svg",e)),null!==this.div&&this.div.appendChild(e.Oa),this.ib=e.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):"debug"!==e||this.pj.contains("SVG")||(e=new vs(this,m.document),this.bs("SVG",e),e.Oa.style.backgroundColor="whitesmoke",null!==this.div&&this.div.after(e.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(e){if(this.Ka!==e){var t=this.Ka;null!==t?(t.H=void 0,t.goDiagram=void 0,t.go=void 0,t.innerHTML="",null!==this.ta&&(t=this.ta.Oa,this.removeEventListener(t,"pointermove",this.dk,!1),this.removeEventListener(t,"pointerdown",this.ui,!1),this.removeEventListener(t,"pointerup",this.fk,!1),this.removeEventListener(t,"pointerout",this.ek,!1),this.removeEventListener(t,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),null!==(t=this.toolManager)&&(t.mouseDownTools.each((function(e){e.cancelWaitAfter()})),t.mouseMoveTools.each((function(e){e.cancelWaitAfter()})),t.mouseUpTools.each((function(e){e.cancelWaitAfter()}))),t.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(m,"resize",this.Ov,!1),this.removeEventListener(m,"wheel",this.$j,!0),br===this&&(br=null)):null===this.ui&&(this.hf=!1),this.Ka=null,null!==e&&((t=e.H)&&(t.div=null),Tr(this,e),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(e){this.nt!==e&&(this.nt=e,null!==e&&(this.Vt=e.fromPort,this.Wt=e.toPort))}},Mx:{get:function(){return this.Vt},set:function(e){this.Vt=e}},Nx:{get:function(){return this.Wt},set:function(e){this.Wt=e}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(e){this.Wg=e,this.cc.skipsUndoManager=e}},delaysLayout:{get:function(){return this.lt},set:function(e){this.lt=e}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1e&&k(e,">= 0",Er,"scrollHorizontalLineChange"),this.iu=e,this.g("scrollHorizontalLineChange",t,e))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(e){var t=this.mu;t!==e&&(0>e&&k(e,">= 0",Er,"scrollVerticalLineChange"),this.mu=e,this.g("scrollVerticalLineChange",t,e))}},lastInput:{get:function(){return this.cj},set:function(e){this.cj=e}},previousInput:{get:function(){return this.Qg},set:function(e){this.Qg=e}},firstInput:{get:function(){return this.bq},set:function(e){this.bq=e}},currentCursor:{get:function(){return this.it},set:function(e){if(""===e&&(e=this.Op),this.it!==e){var t=this.ta,n=this.Ka;if(null!==t&&null!==n){this.it=e;var i=t.style.cursor;t.style.cursor=e,n.style.cursor=e,t.style.cursor===i&&(t.style.cursor="-webkit-"+e,n.style.cursor="-webkit-"+e,t.style.cursor===i&&(t.style.cursor="-moz-"+e,n.style.cursor="-moz-"+e,t.style.cursor===i&&(t.style.cursor=e,n.style.cursor=e)))}}}},defaultCursor:{get:function(){return this.Op},set:function(e){""===e&&(e="auto");var t=this.Op;t!==e&&(this.Op=e,this.g("defaultCursor",t,e))}},click:{get:function(){return this.zh},set:function(e){var t=this.zh;t!==e&&(this.zh=e,this.g("click",t,e))}},doubleClick:{get:function(){return this.Fh},set:function(e){var t=this.Fh;t!==e&&(this.Fh=e,this.g("doubleClick",t,e))}},contextClick:{get:function(){return this.Bh},set:function(e){var t=this.Bh;t!==e&&(this.Bh=e,this.g("contextClick",t,e))}},mouseOver:{get:function(){return this.Qh},set:function(e){var t=this.Qh;t!==e&&(this.Qh=e,this.g("mouseOver",t,e))}},mouseHover:{get:function(){return this.Oh},set:function(e){var t=this.Oh;t!==e&&(this.Oh=e,this.g("mouseHover",t,e))}},mouseHold:{get:function(){return this.Nh},set:function(e){var t=this.Nh;t!==e&&(this.Nh=e,this.g("mouseHold",t,e))}},mouseDragOver:{get:function(){return this.Qt},set:function(e){var t=this.Qt;t!==e&&(this.Qt=e,this.g("mouseDragOver",t,e))}},mouseDrop:{get:function(){return this.Lh},set:function(e){var t=this.Lh;t!==e&&(this.Lh=e,this.g("mouseDrop",t,e))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(e){var t=this.xt;t!==e&&(this.xt=e,this.g("handlesDragDropForTopLevelParts",t,e))}},mouseEnter:{get:function(){return this.Mh},set:function(e){var t=this.Mh;t!==e&&(this.Mh=e,this.g("mouseEnter",t,e))}},mouseLeave:{get:function(){return this.Ph},set:function(e){var t=this.Ph;t!==e&&(this.Ph=e,this.g("mouseLeave",t,e))}},toolTip:{get:function(){return this.$h},set:function(e){var t=this.$h;t!==e&&(this.$h=e,this.g("toolTip",t,e))}},contextMenu:{get:function(){return this.Ch},set:function(e){var t=this.Ch;t!==e&&(this.Ch=e,this.g("contextMenu",t,e))}},commandHandler:{get:function(){return this.nb},set:function(e){this.nb!==e&&(this.nb=e,e.Xe(this))}},toolManager:{get:function(){return this.te},set:function(e){this.te!==e&&(this.te=e,e.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(e){var t=this.ob;t!==e&&(this.ob=e,e.diagram=this,this.currentTool===t&&(this.currentTool=e))}},currentTool:{get:function(){return this.hb},set:function(e){var t=this.hb;t&&(t.isActive&&t.doDeactivate(),t.cancelWaitAfter(),t.doStop()),null===e&&(e=this.defaultTool),null!==e&&(this.hb=e,e.diagram=this,e.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(e){var t=this.Nt;if(t!==e)if(0<=e&&!isNaN(e)){if(this.Nt=e,this.g("maxSelectionCount",t,e),!this.undoManager.isUndoingRedoing&&0<(e=this.selection.count-e)){this.R("ChangingSelection",this.selection),t=this.selection.Fa();for(var n=0;n= 0",Er,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(e){var t=this.St;t!==e&&(this.St=e,this.g("nodeSelectionAdornmentTemplate",t,e))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(e){var t=this.wt;t!==e&&(this.wt=e,this.g("groupSelectionAdornmentTemplate",t,e))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(e){var t=this.Kt;t!==e&&(this.Kt=e,this.g("linkSelectionAdornmentTemplate",t,e))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var e=this.undoManager;return e.isEnabled?null!==e.currentTransaction||this.rn&&this.Ce!==e.historyIndex:this.rn},set:function(e){if(this.rn!==e){this.rn=e;var t=this.undoManager;!e&&t.isEnabled&&(this.Ce=t.historyIndex),e||yo(this)}}},model:{get:function(){return this.cc},set:function(e){var t=this.cc;if(t!==e){this.currentTool.doCancel(),t&&t.undoManager!==e.undoManager&&t.undoManager.isInTransaction&&x("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var n=Lr(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var i=this.vb;this.vb=!0,Ui(this.animationManager,"Model"),t&&(null!==this.pf&&this.pf.each((function(e){return t.ik(e)})),t.ik(this.Oc)),this.cc=e,this.partManager=function(e){return null!==(e=Fo.get(e))?new e:new Qd}(this.cc.type);for(var r=0;rthis.scale&&(this.scale=e)):k(e,"> 0",Er,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(e){var t=this.Mt;t!==e&&(0 0",Er,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(e){this.zu.D(e)||(this.zu=e=e.J())}},contentAlignment:{get:function(){return this.zk},set:function(e){var t=this.zk;t.D(e)||(this.zk=e=e.J(),this.g("contentAlignment",t,e),jr(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(e){var t=this.pq;t.D(e)||(this.pq=e=e.J(),this.g("initialContentAlignment",t,e))}},padding:{get:function(){return this.yb},set:function(e){"number"==typeof e&&(e=new We(e));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.Ya(),this.g("padding",t,e))}},partManager:{get:function(){return this.Pc},set:function(e){var t=this.Pc;t!==e&&(null!==e.diagram&&x("Cannot share PartManagers between Diagrams: "+e.toString()),t&&t.Xe(null),this.Pc=e,e.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(e){var t=this.Sc;t!==e&&(this.Sc=e,e.diagram=this,e.group=null,this.xh=!0,this.g("layout",t,e),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(e){var t=this.Ht;if(t!==e&&(this.Ht=e,this.g("isTreePathToChildren",t,e),!this.undoManager.isUndoingRedoing))for(e=this.nodes;e.next();)rh(e.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(e){var t=this.uu;t!==e&&(e!==ea&&e!==ta&&e!==na&&x("Unknown Diagram.treeCollapsePolicy: "+e),this.uu=e,this.g("treeCollapsePolicy",t,e))}},Ue:{get:function(){return this.pw},set:function(e){this.pw=e}},avoidanceCellSize:{get:function(){return this.aw},set:function(e){this.Xh=null,this.aw=new Ae(Math.max(1,e.width),Math.max(1,e.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(e){this.bw=Math.max(1,e)}},autoScrollInterval:{get:function(){return this.vp},set:function(e){var t=this.vp;t!==e&&(this.vp=e,this.g("autoScrollInterval",t,e))}},autoScrollRegion:{get:function(){return this.xp},set:function(e){"number"==typeof e&&(e=new We(e));var t=this.xp;t.D(e)||(this.xp=e=e.J(),this.Ya(),this.g("autoScrollRegion",t,e))}}}),d.Object.defineProperties(Er,{licenseKey:{get:function(){return ia.jc()},set:function(e){ia.add(e.replace(/\s/g,""))}},version:{get:function(){return ra}}}),Er.prototype.makeImageData=Er.prototype.Jx,Er.prototype.makeImage=Er.prototype.Wz,Er.prototype.cacheGroupExternalLinks=Er.prototype.Fu,Er.prototype.addRenderer=Er.prototype.bs,Er.prototype.makeSVG=Er.prototype.av,Er.prototype.makeSvg=Er.prototype.Cs,Er.prototype.stopAutoScroll=Er.prototype.ug,Er.prototype.doAutoScroll=Er.prototype.gs,Er.prototype.isUnoccupied=Er.prototype.Yj,Er.prototype.raiseDiagramEvent=Er.prototype.R,Er.prototype.removeDiagramListener=Er.prototype.am,Er.prototype.addDiagramListener=Er.prototype.Bj,Er.prototype.findTreeRoots=Er.prototype.yz,Er.prototype.layoutDiagram=Er.prototype.Uz,Er.prototype.findTopLevelGroups=Er.prototype.qz,Er.prototype.findTopLevelNodesAndLinks=Er.prototype.rz,Er.prototype.ensureBounds=Er.prototype.Va,Er.prototype.findLinksByExample=Er.prototype.ls,Er.prototype.findNodesByExample=Er.prototype.ms,Er.prototype.findLinkForData=Er.prototype.Kc,Er.prototype.findNodeForData=Er.prototype.ii,Er.prototype.findPartForData=Er.prototype.Lc,Er.prototype.findLinkForKey=Er.prototype.findLinkForKey,Er.prototype.findNodeForKey=Er.prototype.Vb,Er.prototype.findPartForKey=Er.prototype.findPartForKey,Er.prototype.rebuildParts=Er.prototype.Wd,Er.prototype.transformViewToDoc=Er.prototype.Ps,Er.prototype.transformRectDocToView=Er.prototype.zA,Er.prototype.transformDocToView=Er.prototype.op,Er.prototype.centerRect=Er.prototype.es,Er.prototype.scrollToRect=Er.prototype.tv,Er.prototype.scroll=Er.prototype.scroll,Er.prototype.highlightCollection=Er.prototype.Jz,Er.prototype.highlight=Er.prototype.Iz,Er.prototype.selectCollection=Er.prototype.rA,Er.prototype.select=Er.prototype.select,Er.prototype.updateAllRelationshipsFromData=Er.prototype.rp,Er.prototype.updateAllTargetBindings=Er.prototype.updateAllTargetBindings,Er.prototype.commit=Er.prototype.commit,Er.prototype.rollbackTransaction=Er.prototype.Kf,Er.prototype.commitTransaction=Er.prototype.eb,Er.prototype.startTransaction=Er.prototype.Ea,Er.prototype.raiseChanged=Er.prototype.g,Er.prototype.raiseChangedEvent=Er.prototype.cb,Er.prototype.removeChangedListener=Er.prototype.ik,Er.prototype.addChangedListener=Er.prototype.Pe,Er.prototype.removeModelChangedListener=Er.prototype.mA,Er.prototype.addModelChangedListener=Er.prototype.Yw,Er.prototype.findLayer=Er.prototype.Qj,Er.prototype.removeLayer=Er.prototype.kA,Er.prototype.addLayerAfter=Er.prototype.Cy,Er.prototype.addLayerBefore=Er.prototype.Ww,Er.prototype.addLayer=Er.prototype.Al,Er.prototype.moveParts=Er.prototype.moveParts,Er.prototype.copyParts=Er.prototype.Kj,Er.prototype.removeParts=Er.prototype.Is,Er.prototype.remove=Er.prototype.remove,Er.prototype.add=Er.prototype.add,Er.prototype.clearDelayedGeometries=Er.prototype.bx,Er.prototype.setProperties=Er.prototype.nm,Er.prototype.attach=Er.prototype.Du,Er.prototype.set=Er.prototype.set,Er.prototype.resetInputOptions=Er.prototype.Sx,Er.prototype.setInputOption=Er.prototype.sA,Er.prototype.getInputOption=Er.prototype.Ql,Er.prototype.resetRenderingHints=Er.prototype.Tx,Er.prototype.setRenderingHint=Er.prototype.Xx,Er.prototype.getRenderingHint=Er.prototype.Gf,Er.prototype.maybeUpdate=Er.prototype.bd,Er.prototype.requestUpdate=Er.prototype.$b,Er.prototype.delayInitialization=Er.prototype.Xy,Er.prototype.isUpdateRequested=Er.prototype.Pz,Er.prototype.invalidateDocumentBounds=Er.prototype.Ya,Er.prototype.findObjectsNear=Er.prototype.og,Er.prototype.findPartsNear=Er.prototype.mz,Er.prototype.findObjectsIn=Er.prototype.Cf,Er.prototype.findPartsIn=Er.prototype.ux,Er.prototype.findObjectsAt=Er.prototype.ji,Er.prototype.findPartsAt=Er.prototype.lz,Er.prototype.findObjectAt=Er.prototype.ic,Er.prototype.findPartAt=Er.prototype.Ol,Er.prototype.focusObject=Er.prototype.zz,Er.prototype.alignDocument=Er.prototype.Jy,Er.prototype.zoomToRect=Er.prototype.BA,Er.prototype.zoomToFit=Er.prototype.zoomToFit,Er.prototype.diagramScroll=Er.prototype.kx,Er.prototype.focus=Er.prototype.focus;var Fo=new pe,zo=null,jo=void 0!==m.document,$o=null,Ho="",Zo=new j(Er,"None",0),Ko=new j(Er,"Uniform",1),Go=new j(Er,"UniformToFill",2),Uo=new j(Er,"CycleAll",10),Vo=new j(Er,"CycleNotDirected",11),Wo=new j(Er,"CycleNotDirectedFast",12),qo=new j(Er,"CycleNotUndirected",13),Yo=new j(Er,"CycleDestinationTree",14),Xo=new j(Er,"CycleSourceTree",15),Qo=new j(Er,"DocumentScroll",1),Jo=new j(Er,"InfiniteScroll",2),ea=new j(Er,"TreeParentCollapsed",21),ta=new j(Er,"AllParentsCollapsed",22),na=new j(Er,"AnyParentsCollapsed",23),ia=new Y,ra="2.3.10",oa="image",aa=null,sa=!1;function la(){this.wy=null,this.j="zz@orderNum","63ad05bbe23a1786468a4c741b6d2"===this._tk?this.Rc=this.j=!0:this.Rc=null}function ca(e,t){if(t.ib.setTransform(t.Mb,0,0,t.Mb,0,0),t.ib.yc(),null===e.Rc)e:{t="f";var n=m[R("76a715b2f73f148a")][R("72ba13b5")]||"";if(e.Rc=!0,jo){var i=Er[R("76a115b6ed251eaf4692")];if(i)for(var r=ia.iterator;r.next()&&!(6>(i=R(i=r.value).split(R("39e9"))).length);){var o=R(i[1]).split(".");if("7da71ca0"!==i[4])break;var a=R(v[R("6cae19")]).split(".");if(o[0]>a[0]||o[0]===a[0]&&o[1]>=a[1]){var s=m[R("74a900bae4370f8b51")][R("6fbb13a1c2311e8a57")].toLowerCase();if(a=s[R("73a612b6fb191d")](R("3aad1ab6e022098b4dc4")),o=R(i[2]),-1(a=t[R("73a612b6fb191d")](o))&&o!==R("7da71ca0ad381e90")&&(a=t[R("73a612b6fb191d")](R("76a715b2ef3e149757"))),0>a&&(a=t[R("73a612b6fb191d")](R("76a715b2ef3e149757"))),0>a&&(a=t[R("73a612b6fb191d")](R("2bfa41fdb3784bca12"))),0>a&&(a=n[R("73a612b6fb191d")](R("7baa19a6f76c1988428554"))),e.Rc=!(0<=a&&as),!e.Rc))break;if("#"===o[0]){a=m.document.createElement("div");for(var l=i[0].replace(/[A-Za-z]/g,"");4>l.length;)l+="9";if(s=l,l=l.substr(l.length-4),i="",i+=["gsh","gsf"][parseInt(l.substr(0,1),10)%2],i+=["Header","Background","Display","Feedback"][parseInt(l.substr(0,1),10)%4],a[R("79a417a0f0181a8946")]=i,m.document[R("78a712aa")]){m.document[R("78a712aa")][R("7bb806b6ed32388c4a875b")](a),l=m.getComputedStyle(a).getPropertyValue(R("78a704b7e62456904c9b12701b6532a8"));var c=m.getComputedStyle(a).getPropertyValue(R("75b817b0ea2202"));if(m.document[R("78a712aa")][R("68ad1bbcf533388c4a875b")](a),l){if(a=m[R("77a902b0eb1b1e804a8a")],c==="0."+parseInt(s,10)%100||-1!==l.indexOf(parseInt(o[1]+o[2],16))&&-1!==l.indexOf(parseInt(o[3]+o[4],16))){e.Rc=!1;break}if(a&&a(R("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(i="."+i,o=0;oi.updateDelay?i.N():i.o||(i.o=!0,setTimeout((function(){return i.redraw()}),i.updateDelay))},n.Of=function(){null!==i.observed&&Ma(i)},n.autoScale=Ko,n.vb=!1,t&&Object.assign(n,t),n}function Ea(e){var t=e.observed;if(null!==t){var n=e.drawsTemporaryLayers,i=e.drawsGrid&&n,r=t.grid;i&&null!==r&&r.visible&&!isNaN(r.width)&&!isNaN(r.height)&&(vo(t,r=Ie.alloc().assign(e.viewportBounds).ed(t.viewportBounds)),Ie.free(r),Qr(t));var o=e.Ab;o.reset(),1!==e.scale&&o.scale(e.scale),0===e.position.x&&0===e.position.y||o.translate(-e.position.x,-e.position.y),(r=e.ib).scale(e.Mb,e.Mb),r.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),r.yc(),o=(t=t.Wa.s).length;for(var a=0;ai||o>r)&&(ns(e,!0),e.measure(n>i?i:n,o>r?r:o,0,0));break;case ha:ns(e,!0),e.measure(i,r,0,0);break;case fa:ns(e,!0),e.measure(i,o,0,0);break;case ga:ns(e,!0),e.measure(n,r,0,0)}}}function Fa(e,t){return null!==t&&(jl(t)&&(t=t.panel),0!=(512&t.l)||(t.type===El.Auto||t.type===El.Spot)&&t.Pb()!==e)}function za(e,t,n,i){Ka(e,t,e.areaBackground,!0,!0,n,i),e.areaBackground instanceof Rs&&e.areaBackground.type===Qs?(t.beginPath(),t.rect(i.x,i.y,i.width,i.height),t.ng(e.areaBackground)):t.fillRect(i.x,i.y,i.width,i.height)}function ja(e,t,n,i){var r=e.kq(),o=n.x,a=n.y,s=n.width+r,l=n.height+r;Ka(e,t,e.Ma,!0,!1,n,i),e.Ma instanceof Rs&&e.Ma.type===Qs?(t.beginPath(),t.rect(o-r/2,a-r/2,s,l),t.ng(e.Ma)):t.fillRect(o-r/2,a-r/2,s,l)}function $a(e,t,n){for(var i=t.O.s,r=i.length,o=-1,a=0;ar)&&x("Must specify non-negative integer row for RowColumnDefinition "+t+", not: "+r),e.isRow=!0,e.index=r):void 0!==t.column&&((null==(r=t.column)||1/0===r||isNaN(r)||0>r)&&x("Must specify non-negative integer column for RowColumnDefinition "+t+", not: "+r),e.isRow=!1,e.index=r),r=new Z,t)"row"!==n&&"column"!==n&&(r[n]=t[n]);no(e,r)}else no(e,t);else x('Unknown initializer "'+t+'" for object being constructed by GraphObject.make: '+e)}function cs(e,t){hs.add(e,t)}function us(e,t,n){void 0===n&&(n=null);var i=e[1];if("function"==typeof n?n(i):"string"==typeof i)return e.splice(1,1),i;if(void 0===t)throw Error("no "+("function"==typeof n?"satisfactory":"string")+" argument for GraphObject builder "+e[0]);return t}ua.className="DraggingInfo",Sa.className="DraggingNodeInfoPair",ka.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Ae(NaN,NaN).freeze(),this.gridSnapCellSpot=et,this.gridSnapOrigin=new fe(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ka.className="DraggingOptions",h(_a,Er),_a.prototype.reset=function(){Er.prototype.reset.call(this),Ca(this)},_a.className="Palette",h(Pa,Er),Pa.prototype.computePixelRatio=function(){return 1},Pa.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var e=this.ta,t=this.ib;if(null!==e&&null!==t){if(io(this),null===this.ql){var n=new Ds(null);n.width=e.width,n.height=e.height,this.ql=n}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Ea(this)}finally{this.ta=e,this.ib=t}}}Er.prototype.redraw.call(this)},Pa.prototype.gc=function(){if(null===this.Ka&&x("No div specified"),null===this.ta&&x("No canvas specified"),!(this.ta instanceof vs)&&(_u(this.box),this.Fc)){var e=this.observed;if(null!==e&&!e.animationManager.defaultAnimation.isAnimating&&e.pi){io(this);var t=this.ta;(e=this.ib).Vc(!0),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t.width,t.height),1>this.updateDelay?Ea(this):null!==this.ql&&(e.drawImage(this.ql.Oa,0,0),(t=this.Ab).reset(),1!==this.scale&&t.scale(this.scale),0===this.position.x&&0===this.position.y||t.translate(-this.position.x,-this.position.y),e.scale(this.Mb,this.Mb),e.transform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),e.yc());for(var n=(t=this.Wa.s).length,i=0;ie&&(e=0),this.ia!==e&&(this.ia=e)}}}),Pa.className="Overview",h(La,Ln),La.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(null===e||!e.allowMove||!e.allowSelect)return!1;var t=e.observed;if(null===t)return!1;var n=e.lastInput;return!(!n.left||e.currentTool!==this&&(!this.isBeyondDragSize()||n.isTouchEvent&&n.timestamp-e.firstInput.timestampt.maxScale||(t.scale=e))},Aa.prototype.canDecreaseZoom=function(e){void 0===e&&(e=1/this.zoomFactor);var t=this.diagram;return t.autoScale===Zo&&(!((e=t.scale*e)t.maxScale)&&t.allowZoom)},Aa.prototype.increaseZoom=function(e){void 0===e&&(e=this.zoomFactor);var t=this.diagram;t.autoScale===Zo&&((e=t.scale*e)t.maxScale||(t.scale=e))},Aa.prototype.canIncreaseZoom=function(e){void 0===e&&(e=this.zoomFactor);var t=this.diagram;return t.autoScale===Zo&&(!((e=t.scale*e)t.maxScale)&&t.allowZoom)},Aa.prototype.resetZoom=function(e){void 0===e&&(e=this.defaultScale);var t=this.diagram;et.maxScale||(t.scale=e)},Aa.prototype.canResetZoom=function(e){void 0===e&&(e=this.defaultScale);var t=this.diagram;return!(et.maxScale)&&t.allowZoom},Aa.prototype.zoomToFit=function(){var e=this.diagram,t=e.animationManager;t.Cc(),e.redraw();var n=e.position,i=e.scale;Ui(t,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&i===this.Au&&!isNaN(this.Jt)&&e.documentBounds.D(this.yu)?(e.scale=this.Jt,e.position=this.sw,this.Au=NaN,this.yu=Ge):(this.Jt=i,this.sw=n.copy(),e.zoomToFit(),this.Au=e.scale,this.yu=e.documentBounds.copy()),Vi(t)},Aa.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Aa.prototype.scrollToPart=function(e){void 0===e&&(e=null);var t=this.diagram;if(t.Va(),null===e){try{null!==this.cg&&(this.cg.next()?e=this.cg.value:this.cg=null)}catch(e){this.cg=null}null===e&&(0(e=180*Math.atan2(e.m12,e.m11)/Math.PI)&&(e+=360),e},t.Df=function(){if(0!=(4096&this.l)==!1)return this.Kk;var e=this.Ca;return null!==this.panel?e*this.panel.Df():e},t.qs=function(e,t){return void 0===t&&(t=new fe),t.assign(e),this.oe.Cd(t),t},t.rs=function(e,t,n){return this.Sj(e.x,e.y,t.x,t.y,n)},t.Sj=function(e,t,n,i,r){var o=this.transform,a=1/(o.m11*o.m22-o.m12*o.m21),s=o.m22*a,l=-o.m12*a,c=-o.m21*a,u=o.m11*a,h=a*(o.m21*o.dy-o.m22*o.dx),d=a*(o.m12*o.dx-o.m11*o.dy);return null!==this.areaBackground?(o=this.actualBounds,Zt.Ff(o.left,o.top,o.right,o.bottom,e,t,n,i,r)):(a=e*s+t*c+h,e=e*l+t*u+d,t=n*s+i*c+h,n=n*l+i*u+d,r.h(0,0),i=this.naturalBounds,n=Zt.Ff(0,0,i.width,i.height,a,e,t,n,r),r.transform(o),n)},Na.prototype.measure=function(e,t,n,i){if(!1!==ts(this)){var r=this.Kg,o=r.right+r.left;r=r.top+r.bottom,e=Math.max(e-o,0),t=Math.max(t-r,0),n=Math.max((n||0)-o,0),i=Math.max((i||0)-r,0),o=this.angle,r=this.desiredSize;var a=this.kq();90===o||270===o?(e=isFinite(r.height)?r.height+a:e,t=isFinite(r.width)?r.width+a:t):(e=isFinite(r.width)?r.width+a:e,t=isFinite(r.height)?r.height+a:t),r=n||0,a=i||0;var s=this instanceof El;switch(Va(this,!0)){case da:a=r=0,s&&(t=e=1/0);break;case ha:isFinite(e)&&e>n&&(r=e),isFinite(t)&&t>i&&(a=t);break;case fa:isFinite(e)&&e>n&&(r=e),a=0,s&&(t=1/0);break;case ga:isFinite(t)&&t>i&&(a=t),r=0,s&&(e=1/0)}s=this.maxSize;var l=this.minSize;r>s.width&&l.widths.height&&l.heighte.height||this.Cb>e.width))&&(n=!0)),this.l=n?256|this.l:-257&this.l,this.Ib.w()||x("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(o,this.Ib),rs(this,!1),Ie.free(o)},(t=Na.prototype).eh=function(){},t.Xl=function(e,t){var n=this.part;null!==n&&null!==n.diagram&&(n.selectionObject!==this&&n.resizeObject!==this&&n.rotateObject!==this||Fu(n,!0),this.N(),Fe(e,t)||(n.oh(),this.Pn(n)))},t.Pn=function(e){null!==this.portId&&(Fu(e,!0),e instanceof qu&&Ju(e,this))},t.gc=function(e,t){if(!function(e,t,n){if(!(t instanceof ys))return!1;if(!e.visible||0===e.opacity||e.Dd()&&!e.isVisible())return null!==e.svg&&null!==e.svg.parentNode&&e.svg.remove(),!0;var i=e.panel,r=e.nk(t);if(e.kk(t,n,r))return null!==e.svg.parentElement?(e.Dd()&&(t.ti=e.svg),!0):(e.Dd()?(null!==t.ti?t.ti.after(e.svg):t.Nj.prepend(e.svg),t.ti=e.svg):i&&$a(e,i,e.svg),!0);if(e.Dd()&&e.isShadowed){var o=e.shadowOffset;t.Ev(o.x*n.scale*e.scale*n.Mb,o.y*n.scale*e.scale*n.Mb,e.shadowBlur),As(t),t.shadowColor=e.shadowColor}e instanceof Pc&&(t.font=e.font),t.yd=null;var a=e.transform;o=e instanceof El;var s=e instanceof El&&jl(e);0!=(4096&e.l)==!0&&Ga(e);var l=e.Ib;if(t.rb.ha=[1,0,0,1,0,0],t.o=!1,r&&(t.o=!0,o&&s?(Es(t,1,0,0,1,0,0),e.svg=t.ad):o?(Es(t,a.m11,a.m12,a.m21,a.m22,a.dx,a.dy),e.svg=t.ad):Es(t,1,0,0,1,0,0)),r=e.naturalBounds,null!==e.areaBackground){var c=a.copy().Vj();t.rb.ha=[c.m11,c.m12,c.m21,c.m22,c.dx,c.dy],za(e,t,r,l),t.rb.ha=[1,0,0,1,0,0],t.yd.gd=t.ad,t.yd.prepend(t.ad)}return o||(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy]),null!==e.background&&(o?(s&&(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy]),ja(e,t,r,l),s&&(t.rb.ha=[1,0,0,1,0,0])):(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy],ja(e,t,r,l)),t.yd.Ma=t.ad,t.yd.prepend(t.ad)),a=t.yd,r=e.part,s=!1,r&&n.Gf("drawShadows")&&(s=r.isShadowed),t.clipInsteadOfFill&&(s=!1),e.Dd()&&s&&As(t),s&&!0===e.shadowVisible?As(t):s&&!1===e.shadowVisible&&Ls(t),r=e.panel,s&&Fa(e,r)&&null===e.shadowVisible&&Ls(t),t.Il&&(c=n.computePixelRatio(),c="drop-shadow("+t.shadowOffsetX/c+"px "+t.shadowOffsetY/c+"px "+t.shadowBlur/c/2+"px "+t.shadowColor+")",null!==e.background&&a.Ma.setAttributeNS(null,"filter",c),null!==e.areaBackground&&a.gd.setAttributeNS(null,"filter",c)),s&&(null!==e.Ma||null!==e.areaBackground||Fa(e,r))?(Ya(e,!0),null===e.shadowVisible&&Ls(t)):Ya(e,!1),r=s,e.hh(t,n),o&&t.nh.pop(),t.o&&t.nh.pop(),a=t.Gv.hs,s=o?e.svg:t.yd,c=e.svg,o||null===c||s===c||c.parentNode!==e.panel.svg?(e.svg=s,null!==a&&null===s&&(Ms(t),t.nh.pop()),null===s||(e.$o(t,i,l,s),t.Il&&(n=n.computePixelRatio(),e.Dv(s,"drop-shadow("+t.shadowOffsetX/n+"px "+t.shadowOffsetY/n+"px "+t.shadowBlur/n/2+"px "+t.shadowColor+")")),r&&0!=(512&e.l)==!0&&As(t),e.Dd()&&Ls(t),n=e.Dd()?e.opacity*t.globalAlpha:e.opacity,1!==n&&s.setAttributeNS(null,"opacity",n.toString()),""!==e.filter&&s.setAttributeNS(null,"filter",e.filter),e.Dd()?(t.ti?t.ti.after(s):t.Nj.prepend(s),t.ti=s):null!==i&&$a(e,i,s),null!==a&&a(e,s)),!0):(e.svg.replaceWith(s),e.svg=s,null!==s&&e.$o(t,i,l,s),Ha(t,c),!0)}(this,e,t)&&this.visible){var n=this.opacity;if(0!==n){var i=1;1!==n&&(i=e.globalAlpha,e.globalAlpha=i*n);var r="";""!==this.filter&&(r=e.filter,e.filter=this.filter);var o=this instanceof El&&jl(this),a=this.Ib;if(o){var s=this.Ib,l=this.dc,c=this.areaBackground,u=this.Ma;null===c&&null===u||e.yc(),null!==c&&(Ka(this,e,c,!0,!0,l,s),c instanceof Rs&&c.type===Qs?(e.beginPath(),e.rect(s.x,s.y,s.width,s.height),e.ng(c)):e.fillRect(s.x,s.y,s.width,s.height)),null!==u&&(Ka(this,e,u,!0,!1,l,s),u instanceof Rs&&u.type===Qs?(e.beginPath(),e.rect(s.x,s.y,s.width,s.height),e.ng(u)):e.fillRect(s.x,s.y,s.width,s.height)),this.hh(e,t)}if(!o&&(o||0!==a.width&&0!==a.height&&!isNaN(a.x)&&!isNaN(a.y))){o=this.transform,s=this.panel,0!=(4096&this.l)==!0&&Ga(this),l=!1;var h,d=0;if((c=this.part)&&t.Gf("drawShadows")&&(l=c.isShadowed)&&(u=c.shadowOffset,d=Math.max(u.y,u.x)*t.scale*t.Mb),u=this.Dd(),!(h=t.$i||!u)){var p,f=this.naturalBounds,g=(h=this.wh).m11,m=h.m21,v=h.dx,y=h.m12,b=h.m22,w=h.dy,x=p=0;h=p*g+x*m+v;var S=p*y+x*b+w,k=(p=f.width+d)*g+(x=0)*m+v;p=p*y+x*b+w,x=Math.min(h,k);var _=Math.min(S,p),C=Math.max(h+0,k)-x,P=Math.max(S+0,p)-_;h=x,S=_,k=(p=f.width+d)*g+(x=f.height+d)*m+v,p=p*y+x*b+w,x=Math.min(h,k),_=Math.min(S,p),C=Math.max(h+C,k)-x,P=Math.max(S+P,p)-_,h=x,S=_,k=(p=0)*g+(x=f.height+d)*m+v,p=p*y+x*b+w,x=Math.min(h,k),_=Math.min(S,p),C=Math.max(h+C,k)-x,P=Math.max(S+P,p)-_,h=x,S=_,f=(d=t.viewportBounds).x,g=d.y,h=!(h>d.width+f||f>C+h||S>d.height+g||g>P+S)}if(h){if(h=0!=(256&this.l),e.clipInsteadOfFill&&(h=!1),this instanceof Pc&&(e.font=this.font),h){if(S=s.se()?s.naturalBounds:s.actualBounds,C=Math.max(a.x,S.x),P=Math.max(a.y,S.y),d=Math.min(a.right,S.right)-C,f=Math.min(a.bottom,S.bottom)-P,null!==(g=this.tb)&&(C=g.x,P=g.y,d=g.width,f=g.height),C>a.width+a.x||a.x>S.width+S.x)return 1!==n&&(e.globalAlpha=i),void(""!==this.filter&&(e.filter=r));e.save(),e.beginPath(),e.rect(C,P,d,f),e.clip()}if(u){if(!c.isVisible())return 1!==n&&(e.globalAlpha=i),void(""!==this.filter&&(e.filter=r));l&&(S=c.shadowOffset,e.Ev(S.x*t.scale*this.scale*t.Mb,S.y*t.scale*this.scale*t.Mb,c.shadowBlur),As(e),e.shadowColor=c.shadowColor)}l&&!0===this.shadowVisible?As(e):l&&!1===this.shadowVisible&&Ls(e),c=this.naturalBounds,null!==this.areaBackground&&(e.yc(),za(this,e,c,a)),e.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),l&&Fa(this,s)&&null===this.shadowVisible&&Ls(e),null!==this.Ma&&(e.yc(),ja(this,e,c,a)),l&&(null!==this.Ma||null!==this.areaBackground||Fa(this,s))?(Ya(this,!0),null===this.shadowVisible&&Ls(e)):Ya(this,!1),this.hh(e,t),l&&0!=(512&this.l)==!0&&As(e),u&&l&&Ls(e),h&&(e.restore(),e.Vc(this instanceof El)),o.ws()||(t=1/(o.m11*o.m22-o.m12*o.m21),e.transform(o.m22*t,-o.m12*t,-o.m21*t,o.m11*t,t*(o.m21*o.dy-o.m22*o.dx),t*(o.m12*o.dx-o.m11*o.dy)))}}1!==n&&(e.globalAlpha=i),""!==this.filter&&(e.filter=r)}}},t.Dv=function(){},t.$o=function(e,t,n,i){var r=0!=(256&this.l);if(e.clipInsteadOfFill&&(r=!1),r){var o=t.se()?t.naturalBounds:t.actualBounds;t=Math.max(n.x,o.x),r=Math.max(n.y,o.y);var a=Math.min(n.right,o.right)-t;n=Math.min(n.bottom,o.bottom)-r,null!==(o=this.tb)&&(t=o.x,r=o.y,a=o.width,n=o.height);var s=null;null!==(o=i.getAttribute("clip-path"))&&(s=e.svg.getElementById(o.split("#")[1].slice(0,-1))),null===s?(o="CLIP"+se++,s=e.Ud("clipPath",{id:o}),t=e.Ud("rect",{x:t,y:r,width:a,height:n}),this instanceof El&&(r=this.transform.copy().Vj(),t.setAttribute("transform","matrix("+r.m11+", "+r.m12+", "+r.m21+", "+r.m22+", "+r.dx+", "+r.dy+")")),s.appendChild(t),e.svg.appendChild(s),i.setAttributeNS(null,"clip-path","url(#"+o+")")):((e=s.firstElementChild).setAttribute("x",t.toString()),e.setAttribute("y",r.toString()),e.setAttribute("width",a.toString()),e.setAttribute("height",n.toString()))}else i.removeAttributeNS(null,"clip-path"),Ha(e,i)},t.hh=function(){},t.lv=function(){this.Uc=!0},t.kk=function(e,t,n){if(this.Uc)return this.lv(),this.Uc=!1;if(null===(t=this.svg))return!1;if(!this.visible)return t.remove(),!1;if("g"!==t.nodeName&&n||"g"===t.nodeName&&!n)return!1;var i=this.transform,r=this instanceof El&&jl(this);if(!(this instanceof El&&r))if(this instanceof ru){var o=this.bt;e.rb.ha=[i.m11,i.m12,i.m21,i.m22,i.dx,i.dy],null!==o&&ws(e,o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7]),n?t.lastElementChild.setAttributeNS(null,"transform",xs(e)):t.setAttributeNS(null,"transform",xs(e))}else if(!n||this instanceof El)t.setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")");else if(this instanceof fc){o=t.getElementsByTagName("path");for(var a=0;ae?e=0:1e||1=e&&x("GraphObject.scale for "+this+" must be greater than zero, not: "+e),this.Ca=e,this.v(),this.g("scale",t,e))}},angle:{get:function(){return this.Kb},set:function(e){var t=this.Kb;t!==e&&(0>(e%=360)&&(e+=360),t!==e&&(this.Kb=e,as(this),this.v(),this.g("angle",t,e)))}},desiredSize:{get:function(){return this.jd},set:function(e){var t=e.width,n=e.height,i=this.jd,r=i.width,o=i.height;(r===t||isNaN(r)&&isNaN(t))&&(o===n||isNaN(o)&&isNaN(n))||(this.jd=e=e.J(),this.v(),this instanceof fc&&this.qc(),this.g("desiredSize",i,e),Xa(this)&&(null!==(e=this.part)&&(Ba(this,e,"width"),Ba(this,e,"height"))))}},width:{get:function(){return this.jd.width},set:function(e){var t=this.jd.width;t===e||isNaN(t)&&isNaN(e)||(t=this.jd,this.jd=e=new Ae(e,this.jd.height).freeze(),this.v(),this instanceof fc&&this.qc(),this.g("desiredSize",t,e),Xa(this)&&(null!==(e=this.part)&&Ba(this,e,"width")))}},height:{get:function(){return this.jd.height},set:function(e){var t=this.jd.height;t===e||isNaN(t)&&isNaN(e)||(t=this.jd,this.jd=e=new Ae(this.jd.width,e).freeze(),this.v(),this instanceof fc&&this.qc(),this.g("desiredSize",t,e),Xa(this)&&(null!==(e=this.part)&&Ba(this,e,"height")))}},minSize:{get:function(){return null!==this.A?this.A.u:Se},set:function(e){var t=this.minSize;t.D(e)||(e=e.copy(),isNaN(e.width)&&(e.width=0),isNaN(e.height)&&(e.height=0),e.freeze(),Ia(this),this.A.u=e,this.v(),this.g("minSize",t,e))}},maxSize:{get:function(){return null!==this.A?this.A.o:Ee},set:function(e){var t=this.maxSize;t.D(e)||(e=e.copy(),isNaN(e.width)&&(e.width=1/0),isNaN(e.height)&&(e.height=1/0),e.freeze(),Ia(this),this.A.o=e,this.v(),this.g("maxSize",t,e))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(e){"number"==typeof e&&(e=new We(e));var t=this.Kg;t.D(e)||(this.Kg=e=e.J(),this.v(),this.g("margin",t,e))}},transform:{get:function(){return 0!=(2048&this.l)==!0&&Ga(this),this.Ab}},oe:{get:function(){return 0!=(4096&this.l)==!0&&Ga(this),this.wh}},animationTriggers:{get:function(){return null!==this.A?this.A.hb:null},set:function(e){this.animationTriggers!==e&&(Ia(this),this.A.hb=e)}},reshapingBehavior:{get:function(){return null!==this.A?this.A.Pf:da},set:function(e){this.reshapingBehavior!==e&&(Ia(this),this.A.Pf=e)}},alignment:{get:function(){return this.Jb},set:function(e){var t=this.Jb;t.D(e)||(e.Mc()&&!e.Xb()&&x("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+e),this.Jb=e=e.J(),Ua(this),this.g("alignment",t,e))}},column:{get:function(){return this.Ag},set:function(e){e=Math.round(e);var t=this.Ag;t!==e&&(0>e&&k(e,">= 0",Na,"column"),this.Ag=e,this.v(),this.g("column",t,e),null!==this.svg&&this.svg.remove())}},columnSpan:{get:function(){return null!==this.A?this.A.ob:1},set:function(e){e=Math.round(e);var t=this.columnSpan;t!==e&&(1>e&&k(e,">= 1",Na,"columnSpan"),Ia(this),this.A.ob=e,this.v(),this.g("columnSpan",t,e))}},row:{get:function(){return this.io},set:function(e){e=Math.round(e);var t=this.io;t!==e&&(0>e&&k(e,">= 0",Na,"row"),this.io=e,this.v(),this.g("row",t,e),null!==this.svg&&this.svg.remove())}},rowSpan:{get:function(){return null!==this.A?this.A.Bi:1},set:function(e){e=Math.round(e);var t=this.rowSpan;t!==e&&(1>e&&k(e,">= 1",Na,"rowSpan"),Ia(this),this.A.Bi=e,this.v(),this.g("rowSpan",t,e))}},spanAllocation:{get:function(){return null!==this.A?this.A.Di:null},set:function(e){var t=this.spanAllocation;t!==e&&(Ia(this),this.A.Di=e,this.v(),this.g("spanAllocation",t,e))}},alignmentFocus:{get:function(){return this.sk},set:function(e){var t=this.sk;t.D(e)||(this.sk=e=e.J(),this.v(),this.g("alignmentFocus",t,e))}},portId:{get:function(){return this.Yn},set:function(e){var t=this.Yn;if(t!==e){var n=this.part;null===n||n instanceof qu||x("Cannot set portID on a Link: "+e),null!==t&&null!==n&&sh(n,this),this.Yn=e,null!==e&&null!==n&&(n.Te=!0,ah(n,this)),this.g("portId",t,e)}}},toSpot:{get:function(){return null!==this.ba?this.ba.yj:Je},set:function(e){var t=this.toSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.yj=e,this.g("toSpot",t,e),os(this))}},toEndSegmentLength:{get:function(){return null!==this.ba?this.ba.wj:10},set:function(e){var t=this.toEndSegmentLength;t!==e&&(0>e&&k(e,">= 0",Na,"toEndSegmentLength"),this.Xc(),this.ba.wj=e,this.g("toEndSegmentLength",t,e),os(this))}},toShortLength:{get:function(){return null!==this.ba?this.ba.xj:0},set:function(e){var t=this.toShortLength;t!==e&&(this.Xc(),this.ba.xj=e,this.g("toShortLength",t,e),os(this))}},toLinkable:{get:function(){return null!==this.ba?this.ba.Tr:null},set:function(e){var t=this.toLinkable;t!==e&&(this.Xc(),this.ba.Tr=e,this.g("toLinkable",t,e))}},toMaxLinks:{get:function(){return null!==this.ba?this.ba.Ur:1/0},set:function(e){var t=this.toMaxLinks;t!==e&&(0>e&&k(e,">= 0",Na,"toMaxLinks"),this.Xc(),this.ba.Ur=e,this.g("toMaxLinks",t,e))}},fromSpot:{get:function(){return null!==this.ba?this.ba.Xi:Je},set:function(e){var t=this.fromSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.Xi=e,this.g("fromSpot",t,e),os(this))}},fromEndSegmentLength:{get:function(){return null!==this.ba?this.ba.Vi:10},set:function(e){var t=this.fromEndSegmentLength;t!==e&&(0>e&&k(e,">= 0",Na,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=e,this.g("fromEndSegmentLength",t,e),os(this))}},fromShortLength:{get:function(){return null!==this.ba?this.ba.Wi:0},set:function(e){var t=this.fromShortLength;t!==e&&(this.Xc(),this.ba.Wi=e,this.g("fromShortLength",t,e),os(this))}},fromLinkable:{get:function(){return null!==this.ba?this.ba.hq:null},set:function(e){var t=this.fromLinkable;t!==e&&(this.Xc(),this.ba.hq=e,this.g("fromLinkable",t,e))}},fromMaxLinks:{get:function(){return null!==this.ba?this.ba.iq:1/0},set:function(e){var t=this.fromMaxLinks;t!==e&&(0>e&&k(e,">= 0",Na,"fromMaxLinks"),this.Xc(),this.ba.iq=e,this.g("fromMaxLinks",t,e))}},cursor:{get:function(){return null!==this.A?this.A.j:""},set:function(e){var t=this.cursor;t!==e&&(Ia(this),this.A.j=e,this.g("cursor",t,e))}},click:{get:function(){return null!==this.A?this.A.zh:null},set:function(e){var t=this.click;t!==e&&(Ia(this),this.A.zh=e,this.g("click",t,e))}},doubleClick:{get:function(){return null!==this.A?this.A.Fh:null},set:function(e){var t=this.doubleClick;t!==e&&(Ia(this),this.A.Fh=e,this.g("doubleClick",t,e))}},contextClick:{get:function(){return null!==this.A?this.A.Bh:null},set:function(e){var t=this.contextClick;t!==e&&(Ia(this),this.A.Bh=e,this.g("contextClick",t,e))}},mouseEnter:{get:function(){return null!==this.A?this.A.Mh:null},set:function(e){var t=this.mouseEnter;t!==e&&(Ia(this),this.A.Mh=e,this.g("mouseEnter",t,e))}},mouseLeave:{get:function(){return null!==this.A?this.A.Ph:null},set:function(e){var t=this.mouseLeave;t!==e&&(Ia(this),this.A.Ph=e,this.g("mouseLeave",t,e))}},mouseOver:{get:function(){return null!==this.A?this.A.Qh:null},set:function(e){var t=this.mouseOver;t!==e&&(Ia(this),this.A.Qh=e,this.g("mouseOver",t,e))}},mouseHover:{get:function(){return null!==this.A?this.A.Oh:null},set:function(e){var t=this.mouseHover;t!==e&&(Ia(this),this.A.Oh=e,this.g("mouseHover",t,e))}},mouseHold:{get:function(){return null!==this.A?this.A.Nh:null},set:function(e){var t=this.mouseHold;t!==e&&(Ia(this),this.A.Nh=e,this.g("mouseHold",t,e))}},mouseDragEnter:{get:function(){return null!==this.A?this.A.Of:null},set:function(e){var t=this.mouseDragEnter;t!==e&&(Ia(this),this.A.Of=e,this.g("mouseDragEnter",t,e))}},mouseDragLeave:{get:function(){return null!==this.A?this.A.Xd:null},set:function(e){var t=this.mouseDragLeave;t!==e&&(Ia(this),this.A.Xd=e,this.g("mouseDragLeave",t,e))}},mouseDrop:{get:function(){return null!==this.A?this.A.Lh:null},set:function(e){var t=this.mouseDrop;t!==e&&(Ia(this),this.A.Lh=e,this.g("mouseDrop",t,e))}},actionDown:{get:function(){return null!==this.A?this.A.V:null},set:function(e){var t=this.actionDown;t!==e&&(Ia(this),this.A.V=e,this.g("actionDown",t,e))}},actionMove:{get:function(){return null!==this.A?this.A.ia:null},set:function(e){var t=this.actionMove;t!==e&&(Ia(this),this.A.ia=e,this.g("actionMove",t,e))}},actionUp:{get:function(){return null!==this.A?this.A.Ha:null},set:function(e){var t=this.actionUp;t!==e&&(Ia(this),this.A.Ha=e,this.g("actionUp",t,e))}},actionCancel:{get:function(){return null!==this.A?this.A.F:null},set:function(e){var t=this.actionCancel;t!==e&&(Ia(this),this.A.F=e,this.g("actionCancel",t,e))}},toolTip:{get:function(){return null!==this.A?this.A.$h:null},set:function(e){var t=this.toolTip;t!==e&&(Ia(this),this.A.$h=e,this.g("toolTip",t,e))}},contextMenu:{get:function(){return null!==this.A?this.A.Ch:null},set:function(e){var t=this.contextMenu;t!==e&&(Ia(this),this.A.Ch=e,this.g("contextMenu",t,e))}}}),Na.prototype.trigger=Na.prototype.Jv,Na.prototype.findBindingPanel=Na.prototype.ih,Na.prototype.findTemplateBinder=Na.prototype.pz,Na.prototype.setProperties=Na.prototype.nm,Na.prototype.apply=Na.prototype.apply,Na.prototype.attach=Na.prototype.Du,Na.prototype.set=Na.prototype.set,Na.prototype.isEnabledObject=Na.prototype.If,Na.prototype.isVisibleObject=Na.prototype.Ed,Na.prototype.isContainedBy=Na.prototype.rg,Na.prototype.getNearestIntersectionPoint=Na.prototype.rs,Na.prototype.getLocalPoint=Na.prototype.qs,Na.prototype.getDocumentScale=Na.prototype.Df,Na.prototype.getDocumentAngle=Na.prototype.li,Na.prototype.getDocumentBounds=Na.prototype.mi,Na.prototype.getDocumentPoint=Na.prototype.ga,Na.prototype.intersectsRect=Na.prototype.Yc,Na.prototype.containedInRect=Na.prototype.fh,Na.prototype.containsRect=Na.prototype.Re,Na.prototype.containsPoint=Na.prototype.ca,Na.prototype.raiseChanged=Na.prototype.g,Na.prototype.raiseChangedEvent=Na.prototype.cb,Na.prototype.addCopyProperty=Na.prototype.Vw;var hs=null;function ds(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=Se,this.o=Ee,this.hg=ma,this.ob=this.Bi=1,this.Pf=da,this.Pc=this.Ci=this.gd=null,this.Oc="category"}function ps(){this.u=-1/0,this.o=0,this.F=ne,this.rr=Wh,this.j=this.V="None"}function fs(){this.yj=this.Xi=_t,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}function gs(){this.ha=[1,0,0,1,0,0]}function ms(e){this.type=e,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}function vs(e,t,n){this.ownerDocument=e=void 0===t?m.document:t,this.cA="http://www.w3.org/2000/svg",void 0!==e&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new ys(this,n)}function ys(e,t){this.Gv=e,this.svg=e.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new gs,this.j=Ms(this),this.Nj=Ms(this,"gojs-diagram"),this.Hl=this.ti=null;var n=se++,i=this.Ud("clipPath",{id:"mainClip"+n});i.appendChild(this.Ud("rect",{x:0,y:0,width:e.width,height:e.height})),this.ww=i,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(i),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+n+")"),this.eA={},this.isTemporary=!!t,this.filter="",this.bk=null}function bs(e,t,n,i,r,o,a){void 0===e.Nj?Es(e,t,n,i,r,o,a):e.Nj.setAttribute("transform","matrix("+t+", "+n+", "+i+", "+r+", "+o+", "+a+")")}function ws(e,t,n,i,r,o,a,s,l){i=s/i,r=l/r,0===o&&0===a||e.rb.translate(o,a),1===i&&1===r||e.rb.scale(i,r),0===t&&0===n||e.rb.translate(-t,-n)}function xs(e){return"matrix("+(e=e.rb.ha)[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")"}function Ss(e,t,n,i){"fill"===t?ks(e,n):"stroke"===t&&Cs(e,n),null!==i&&(e=i.ha,n.transform="matrix("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")")}function ks(e,t){e.fillStyle instanceof ms?t.fill=Ps(e,e.fillStyle,!0):/^rgba\(/.test(e.fillStyle)?(e=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.fillStyle),t.fill="rgb("+e[1]+","+e[2]+","+e[3]+")",t["fill-opacity"]=e[4]):t.fill=e.fillStyle}function _s(e,t,n){n=n?"fill":"stroke",e.fillStyle instanceof ms?t.setAttributeNS(null,"fill",Ps(e,e.fillStyle,!0)):/^rgba\(/.test(e.fillStyle)?(e=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.fillStyle),t.setAttributeNS(null,n,"rgb("+e[1]+","+e[2]+","+e[3]+")"),t.setAttributeNS(null,n+"-opacity",e[4])):t.setAttributeNS(null,n,e.fillStyle)}function Cs(e,t){if(e.strokeStyle instanceof ms)t.stroke=Ps(e,e.strokeStyle,!1);else if(/^rgba\(/.test(e.strokeStyle)){var n=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.strokeStyle);t.stroke="rgb("+n[1]+","+n[2]+","+n[3]+")",t["stroke-opacity"]=n[4]}else t.stroke=e.strokeStyle;t["stroke-width"]=e.lineWidth,t["stroke-linecap"]=e.lineCap,t["stroke-linejoin"]=e.lineJoin,t["stroke-miterlimit"]=e.miterLimit,e.Ct&&(t["stroke-dasharray"]=e.Yg.toString(),t["stroke-dashoffset"]=e.uj)}function Ps(e,t,n){var i="";if(null!==(i=null!==e.Hl?e.Hl.getAttribute(n?"fill":"stroke"):null)&&-1!==i.indexOf("GRAD")?(i=i.split("#")[1].slice(0,-1),null!==(n=e.svg.getElementById(i))&&n.remove()):i="GRAD"+se++,"linear"===t.type)n=e.Ud("linearGradient",{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,id:i,gradientUnits:"userSpaceOnUse"});else{if("radial"!==t.type)throw Error("invalid gradient");n=e.Ud("radialGradient",{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,r1:t.r1,r2:t.r2,id:i})}var r=t.gx;t=r.length;for(var o=[],a=0;at.offset?1:-1})),r=0;re&&(e+=360),0!==e){if(this.translate(t,n),90===e){e=0;var i=1}else 180===e?(e=-1,i=0):270===e?(e=0,i=-1):(i=e*Math.PI/180,e=Math.cos(i),i=Math.sin(i));var r=this.ha[1]*e+this.ha[3]*i,o=this.ha[0]*-i+this.ha[2]*e,a=this.ha[1]*-i+this.ha[3]*e;this.ha[0]=this.ha[0]*e+this.ha[2]*i,this.ha[1]=r,this.ha[2]=o,this.ha[3]=a,this.translate(-t,-n)}},gs.className="STransform",ms.prototype.addColorStop=function(e,t){this.gx.push({offset:e,color:t})},ms.className="SGradient",vs.prototype.resize=function(e,t,n,i){return(this.width!==e||this.height!==t)&&(this.width=e,this.height=t,this.style.width=n+"px",this.style.height=i+"px",this.Oa.setAttributeNS(null,"width",n+"px"),this.Oa.setAttributeNS(null,"height",i+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+n+" "+i),this.context.ww.firstElementChild.setAttributeNS(null,"width",n+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",i+"px"),!0)},vs.prototype.Ud=function(e,t,n){if(e=this.ownerDocument.createElementNS(this.cA,e),C(t))for(var i in t)e.setAttributeNS("href"===i?"http://www.w3.org/1999/xlink":"",i,t[i]);return void 0!==n&&(e.textContent=n),e},vs.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},vs.prototype.focus=function(){this.Oa.focus()},vs.prototype.mx=function(){this.ownerDocument=null},d.Object.defineProperties(vs.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(e){this.Oa.setAttribute("width",e+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(e){this.Oa.setAttribute("height",e+"px")}},style:{get:function(){return this.Oa.style}}}),vs.className="SVGSurface",(t=ys.prototype).arc=function(e,t,n,i,r,o,a,s){var l=2*Math.PI,c=l-1e-6,u=n*Math.cos(i),h=n*Math.sin(i),d=e+u,p=t+h,f=o?0:1;i=o?i-r:r-i,(1e-6i&&(i=i%l+l),i>c?(this.path.push(["A",n,n,0,1,f,e-u,t-h]),this.path.push(["A",n,n,0,1,f,d,p])):1e-6=Math.PI),f,e+n*Math.cos(r),t+n*Math.sin(r)])},t.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},t.Se=function(e){this.addPath(this.path,this.rb,e||0)},t.bezierCurveTo=function(e,t,n,i,r,o){this.path.push(["C",e,t,n,i,r,o])},t.clearRect=function(){},t.clip=function(){this.Yl.clipPath=!0},t.closePath=function(){this.path.push(["z"])},t.createLinearGradient=function(e,t,n,i){var r=new ms("linear");return r.x1=e,r.y1=t,r.x2=n,r.y2=i,r},t.createPattern=function(e){var t="";e instanceof HTMLCanvasElement&&(t=e.toDataURL()),e instanceof HTMLImageElement&&(t=e.getAttribute("src"));var n=this.eA;if(n[t])return"url(#"+n[t]+")";var i="PATTERN"+se++,r={x:0,y:0,width:e.width,height:e.height,href:t};return(e=this.Ud("pattern",{width:e.width,height:e.height,id:i,patternUnits:"userSpaceOnUse"})).appendChild(this.Ud(oa,r)),this.svg.appendChild(e),n[t]=i,"url(#"+i+")"},t.createRadialGradient=function(e,t,n,i,r,o){var a=new ms("radial");return a.x1=e,a.y1=t,a.r1=n,a.x2=i,a.y2=r,a.r2=o,a},t.drawImage=function(e,t,n,i,r,o,a,s,l){var c="";e instanceof HTMLCanvasElement&&(c=e.toDataURL()),e instanceof HTMLImageElement&&(c=e.getAttribute("src"));var u=e instanceof HTMLImageElement?e.naturalWidth:e.width;e=e instanceof HTMLImageElement?e.naturalHeight:e.height,void 0===i&&(o=t,a=n,s=i=u,l=r=e),ws(this,t,n,i=i||0,r=r||0,o||0,a||0,s=s||0,l=l||0),o={x:0,y:0,width:u||i,height:e||r,href:c},Zt.$(i,s)&&Zt.$(r,l)?-1===c.toLowerCase().indexOf(".svg")&&-1===c.toLowerCase().indexOf("data:image/svg")&&(o.preserveAspectRatio="xMidYMid slice"):o.preserveAspectRatio="none",0===t&&0===n&&i===u&&r===e||(i+=t,r+=n,o["clip-path"]="path('M "+t+","+n+" L "+i+" "+n+" L "+i+" "+r+" L "+t+" "+r+" z')"),Ss(this,oa,o,this.rb),this.addElement(oa,o)},t.fill=function(e){e&&(this.Yl["fill-rule"]="evenodd"),ks(this,this.Yl)},t.ng=function(e,t){this.clipInsteadOfFill?this.clip():this.fill(t)},t.fillRect=function(e,t,n,i){Ss(this,"fill",e={x:(e=[e,t,n,i])[0],y:e[1],width:e[2],height:e[3]},this.rb),this.addElement("rect",e)},t.ox=function(e,t,n,i){Ss(this,"fill",e={x:e,y:t,width:n,height:i},this.rb),ks(this,e),this.svg.prepend(this.Ud("rect",e))},t.fillText=function(e,t,n){e=[e,t,n],"left"===(t=this.textAlign)?t="start":"right"===t?t="end":"center"===t&&(t="middle"),Ss(this,"fill",t={x:e[1],y:e[2],style:"font: "+this.font,"text-anchor":t},this.rb),this.addElement("text",t,e[0])},t.lineTo=function(e,t){this.path.push(["L",e,t])},t.moveTo=function(e,t){this.path.push(["M",e,t])},t.quadraticCurveTo=function(e,t,n,i){this.path.push(["Q",e,t,n,i])},t.rect=function(e,t,n,i){this.path.push(["M",e,t],["L",e+n,t],["L",e+n,t+i],["L",e,t+i],["z"])},t.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var e=this.stack.pop();this.fillStyle=e.fillStyle,this.font=e.font,this.globalAlpha=e.globalAlpha,this.lineCap=e.lineCap,this.lineDashOffset=e.lineDashOffset,this.lineJoin=e.lineJoin,this.lineWidth=e.lineWidth,this.miterLimit=e.miterLimit,this.shadowBlur=e.shadowBlur,this.shadowColor=e.shadowColor,this.shadowOffsetX=e.shadowOffsetX,this.shadowOffsetY=e.shadowOffsetY,this.strokeStyle=e.strokeStyle,this.textAlign=e.textAlign,this.bk=e.bk},t.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var e=[],t=0;tn?(this.scale(n/e,1),this.translate((e-n)/2,0)):n>e&&(this.scale(1,e/n),this.translate(0,(n-e)/2)),this.Hm?this.clip():this.fill(t),e>n?(this.translate(-(e-n)/2,0),this.scale(1/(n/e),1)):n>e&&(this.translate(0,-(n-e)/2),this.scale(1,1/(e/n)))}else this.Hm?this.clip():this.fill(t)},t.jk=function(){this.Hm||this.stroke()},t.Ev=function(e,t,n){this.Ar=e,this.Br=t,this.Vg=n},t.js=function(e,t){var n=this.Z;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)},t.fs=function(){var e=this.Z;void 0!==e.setLineDash&&(e.setLineDash(Is),e.lineDashOffset=0)},t.Vc=function(e){e&&(this.dt=""),this.ct=this.et=""},t.Hs=function(){},d.Object.defineProperties(Ns.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(e){this.ct!==e&&(this.ct=this.Z.fillStyle=e)}},font:{get:function(){return this.Z.font},set:function(e){this.dt!==e&&(this.dt=this.Z.font=e)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(e){this.Z.globalAlpha=e}},lineCap:{get:function(){return this.Z.lineCap},set:function(e){this.Z.lineCap=e}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(e){this.Z.lineDashOffset=e}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(e){this.Z.lineJoin=e}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(e){this.Z.lineWidth=e}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(e){this.Z.miterLimit=e}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(e){this.Z.shadowBlur=e}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(e){this.Z.shadowColor=e}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(e){this.Z.shadowOffsetX=e}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(e){this.Z.shadowOffsetY=e}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(e){this.et!==e&&(this.et=this.Z.strokeStyle=e)}},textAlign:{get:function(){return this.Z.textAlign},set:function(e){this.Z.textAlign=e}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(e){this.Z.imageSmoothingEnabled=e}},filter:{get:function(){return this.Z.filter},set:function(e){this.Z.filter=""===e?"none":e}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(e){this.Hm=e}}});var Is=Object.freeze([]);function Bs(){this.F=this.o=this.u=this.j=0}function Rs(e,t){ul||(qs(),ul=!0),J(this),this._isFrozen=!1,void 0===e?(this.na=Ys,this.xk="black"):"string"==typeof e?(this.na=Ys,this.xk=e):(this.na=e,this.xk="black"),(e=this.na)===Xs?(this.Qd=tt,this.Lk=st):this.Lk=this.Qd=e===Qs?rt:Je,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,t&&Object.assign(this,t)}function Os(e,t,n){return t=void 0===t||"number"!=typeof t?.2:t,n=void 0===n?el:n,Hs(e),$s(t,n)}function Fs(e,t,n){return t=void 0===t||"number"!=typeof t?.2:t,n=void 0===n?el:n,Hs(e),$s(-t,n)}function zs(e,t,n){Hs(e),e=al.j;var i=al.u,r=al.o,o=al.F;return Hs(t),void 0===n&&(n=.5),"rgba("+Math.round((al.j-e)*n+e)+", "+Math.round((al.u-i)*n+i)+", "+Math.round((al.o-r)*n+r)+", "+Math.round((al.F-o)*n+o)+")"}function js(e){return!!e&&(e instanceof Rs?e.Gx():(Hs(e),128>(299*al.j+587*al.u+114*al.o)/1e3))}function $s(e,t){switch(t){case el:t=100*Ks(al.j);var n=100*Ks(al.u),i=100*Ks(al.o);return ll.j=.4124564*t+.3575761*n+.1804375*i,ll.u=.2126729*t+.7151522*n+.072175*i,ll.o=.0193339*t+.119192*n+.9503041*i,ll.F=al.F,t=Us(ll.j/rl[0]),n=Us(ll.u/rl[1]),i=Us(ll.o/rl[2]),cl.j=116*n-16,cl.u=500*(t-n),cl.o=200*(n-i),cl.F=ll.F,cl.j=Math.min(100,Math.max(0,cl.j+100*e)),t=(e=(cl.j+16)/116)-cl.o/200,ll.j=rl[0]*Vs(cl.u/500+e),ll.u=rl[1]*(cl.j>il*nl?Math.pow(e,3):cl.j/il),ll.o=rl[2]*Vs(t),ll.F=cl.F,e=-.969266*ll.j+1.8760108*ll.u+.041556*ll.o,t=.0556434*ll.j+-.2040259*ll.u+1.0572252*ll.o,al.j=255*Gs((3.2404542*ll.j+-1.5371385*ll.u+-.4985314*ll.o)/100),al.u=255*Gs(e/100),al.o=255*Gs(t/100),al.F=ll.F,al.j=Math.round(al.j),255al.j&&(al.j=0),al.u=Math.round(al.u),255al.u&&(al.u=0),al.o=Math.round(al.o),255al.o&&(al.o=0),"rgba("+al.j+", "+al.u+", "+al.o+", "+al.F+")";case tl:return Zs(),sl.o=Math.min(100,Math.max(0,sl.o+100*e)),"hsla("+sl.j+", "+sl.u+"%, "+sl.o+"%, "+sl.F+")";default:x("Unknown color space: "+t)}}function Hs(e){ul||(qs(),ul=!0);var t=ol;if(null!==t){t.clearRect(0,0,1,1),t.fillStyle="#000000";var n=t.fillStyle;t.fillStyle=e,t.fillStyle!==n?(t.fillRect(0,0,1,1),e=t.getImageData(0,0,1,1).data,al.j=e[0],al.u=e[1],al.o=e[2],al.F=e[3]/255):(t.fillStyle="#FFFFFF",t.fillStyle=e,al.j=0,al.u=0,al.o=0,al.F=1)}}function Zs(){var e=al.j/255,t=al.u/255,n=al.o/255,i=Math.max(e,t,n),r=Math.min(e,t,n),o=i-r;if(r=(i+r)/2,0===o)var a=e=0;else{switch(i){case e:a=(t-n)/o%6;break;case t:a=(n-e)/o+2;break;case n:a=(e-t)/o+4}0>(a*=60)&&(a+=360),e=o/(1-Math.abs(2*r-1))}sl.j=Math.round(a),sl.u=Math.round(100*e),sl.o=Math.round(100*r),sl.F=al.F}function Ks(e){return.04045>=(e/=255)?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Gs(e){return.0031308>=e?12.92*e:1.055*Math.pow(e,1/2.4)-.055}function Us(e){return e>nl?Math.pow(e,1/3):(il*e+16)/116}function Vs(e){var t=e*e*e;return t>nl?t:(116*e-16)/il}function Ws(e,t){"string"!=typeof e&&(e instanceof Rs||x("Value for "+t+" must be a color string or a Brush, not "+e))}function qs(){ol=jo?new Ds(null,void 0,{willReadFrequently:!0}).context:null}Ns.className="CanvasSurfaceContext",Bs.className="ColorNumbers",Rs.prototype.copy=function(){var e=new Rs;return e.na=this.na,e.xk=this.xk,e.Qd=this.Qd.J(),e.Lk=this.Lk.J(),e.Gr=this.Gr,e.Xp=this.Xp,null!==this.we&&(e.we=this.we.copy()),e.cr=this.cr,e},(t=Rs.prototype).freeze=function(){return this._isFrozen=!0,null!==this.we&&this.we.freeze(),this},t.ka=function(){return Object.isFrozen(this)&&x("cannot thaw constant: "+this),this._isFrozen=!1,null!==this.we&&this.we.ka(),this},t.qb=function(e){e.classType===Rs&&(this.type=e)},t.toString=function(){var e="Brush(";if(this.type===Ys)e+=this.color;else if(e=this.type===Xs?e+"Linear ":this.type===Qs?e+"Radial ":this.type===Js?e+"Pattern ":e+"(unknown) ",e+=this.start+" "+this.end,null!==this.colorStops)for(var t=this.colorStops.iterator;t.next();)e+=" "+t.key+":"+t.value;return e+")"},t.addColorStop=function(e,t){return this._isFrozen&&S(this),("number"!=typeof e||!isFinite(e)||1e)&&k(e,"0 <= loc <= 1",Rs,"addColorStop:loc"),null===this.we&&(this.we=new pe),this.we.add(e,t),this.na===Ys&&(this.type=Xs),this.xe=null,this},t.Vz=function(e,t){if(this._isFrozen&&S(this),e=void 0===e||"number"!=typeof e?.2:e,t=void 0===t?el:t,this.type===Ys)Hs(this.color),this.color=$s(e,t);else if((this.type===Xs||this.type===Qs)&&null!==this.colorStops)for(var n=this.colorStops.iterator;n.next();)Hs(n.value),this.addColorStop(n.key,$s(e,t));return this},t.Wy=function(e,t){if(this._isFrozen&&S(this),e=void 0===e||"number"!=typeof e?.2:e,t=void 0===t?el:t,this.type===Ys)Hs(this.color),this.color=$s(-e,t);else if((this.type===Xs||this.type===Qs)&&null!==this.colorStops)for(var n=this.colorStops.iterator;n.next();)Hs(n.value),this.addColorStop(n.key,$s(-e,t));return this},t.Gx=function(){if(this.type===Ys)return js(this.color);if((this.type===Xs||this.type===Qs)&&null!==this.colorStops){var e=this.colorStops;if(this.type===Qs)return js(e.first().value);if(null!==e.get(.5))return js(e.get(.5));if(2===e.count)return js(zs((e=e.Fa())[0].value,e[1].value));for(var t=e.iterator,n=-1,i=-1,r=1,o=1;t.next();){var a=t.key,s=Math.abs(.5-t.key);r>o&&s=r&&si&&(o=n,n=i,i=o,o=r),r=i-n,js(zs(e.get(n),e.get(i),1-o/r))}return!1},d.Object.defineProperties(Rs.prototype,{type:{get:function(){return this.na},set:function(e){this._isFrozen&&S(this,e),this.na=e,this.start.Mc()&&(e===Xs?this.start=tt:e===Qs&&(this.start=rt)),this.end.Mc()&&(e===Xs?this.end=st:e===Qs&&(this.end=rt)),this.xe=null}},color:{get:function(){return this.xk},set:function(e){this._isFrozen&&S(this,e),this.xk=e,this.xe=null}},start:{get:function(){return this.Qd},set:function(e){this._isFrozen&&S(this,e),this.Qd=e.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(e){this._isFrozen&&S(this,e),this.Lk=e.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(e){this._isFrozen&&S(this,e),0>e&&k(e,">= zero",Rs,"startRadius"),this.Gr=e,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(e){this._isFrozen&&S(this,e),0>e&&k(e,">= zero",Rs,"endRadius"),this.Xp=e,this.xe=null}},colorStops:{get:function(){return this.we},set:function(e){this._isFrozen&&S(this,e),this.we=e,this.xe=null}},pattern:{get:function(){return this.cr},set:function(e){this._isFrozen&&S(this,e),this.cr=e,this.xe=null}}}),Rs.prototype.isDark=Rs.prototype.Gx,Rs.prototype.darkenBy=Rs.prototype.Wy,Rs.prototype.lightenBy=Rs.prototype.Vz,Rs.prototype.addColorStop=Rs.prototype.addColorStop;var Ys,Xs,Qs,Js,el,tl,nl=216/24389,il=24389/27,rl=[95.047,100,108.883],ol=null,al=new Bs,sl=new Bs,ll=new Bs,cl=new Bs,ul=!1;function hl(){this.xa="Base"}function dl(){this.xa="Base"}function pl(){this.xa="Base"}function fl(){this.xa="Base"}function gl(){this.xa="Base"}function ml(e,t,n){var i=null;if(e instanceof El&&""!==e.$e&&((i=e.fb(e.$e))===e&&(i=null)),null!==i)for(n&&e.arrange(0,0,t.width,t.height),t.assign(i.actualBounds),i=i.panel;i!==e;)i.transform.pp(t),i=i.panel}function vl(){this.xa="Base"}function yl(){this.xa="Base",this.name="Table"}function bl(){this.xa="Base"}function wl(){this.xa="Base"}function xl(){this.xa="Base"}function Sl(){this.xa="Base"}function kl(e,t,n,i){if(0>t)return e%t===n;if(e%t!==n)return!1;t=i.length;for(var r=0;ra.height)continue}else if(c.position>a.width)continue;var u=c.separatorStrokeWidth;isNaN(u)&&(u=n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth);var h=c.separatorStroke;if(null===h&&(h=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),0!==u&&null!==h){Ka(e,t,h,!1,!1,a,o),h=!1;var d=c.separatorDashArray;null===d&&(d=n?e.defaultRowSeparatorDashArray:e.defaultColumnSeparatorDashArray),null!==d&&(h=!0,t.js(d,0)),t.beginPath(),d=c.position+u,n?d>a.height&&(u-=d-a.height):d>a.width&&(u-=d-a.width),c=c.position+u/2,t.lineWidth=u,u=e.yb,n?(c+=u.top,d=a.width-u.right,t.moveTo(u.left,c),t.lineTo(d,c)):(c+=u.left,d=a.height-u.bottom,t.moveTo(c,u.top),t.lineTo(c,d)),t.stroke(),t.Se(),h&&t.fs()}}}}function Al(e,t,n,i,r){for(var o=i.length,a=e.actualBounds,s=e.naturalBounds,l=Tl(e,!0),c=Tl(e,!1),u=0;ud)){var p=h.Wc(),f=h.separatorStrokeWidth;isNaN(f)&&(f=n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth);var g=h.separatorStroke;null===g&&(g=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),null!==g&&h.index!==(n?l:c)||(f=0),p-=f,(f=h.position+f)+(p+=h.actual)>d&&(p=d-f),0>=p||(d=e.yb,Ka(e,t,h.background,!0,!1,s,a),n?t.fillRect(d.left,f+d.top,a.width-(d.left+d.right),p):t.fillRect(f+d.left,d.top,p,a.height-(d.top+d.bottom)))}}}}function Tl(e,t){for(var n=t?e.rowCount:e.columnCount,i=0;il.width||s.y>l.height||0>s.x+s.width||0>s.y+s.height||(a instanceof El&&$l(a,t,n,i),null!==t&&(a=t(a)),null===a||null!==n&&!n(a)||i.add(a))}}}function Hl(e){var t=null;return e instanceof fc&&((t=e.spot1)===_t&&(t=null),null!==(e=e.geometry)&&null===t&&(t=e.spot1)),null===t&&(t=et),t}function Zl(e){var t=null;return e instanceof fc&&((t=e.spot2)===_t&&(t=null),null!==(e=e.geometry)&&null===t&&(t=e.spot2)),null===t&&(t=lt),t}function Kl(e,t){e.l=t?16777216|e.l:-16777217&e.l}function Gl(e,t,n){var i=e.rowDefs;if(!(0>t)){if(i[t]=n instanceof lc?n:void 0,!n)for(t=i.length-1;0<=t&&void 0===i[t--];)i.length--;e.v()}}function Ul(e,t,n){var i=e.colDefs;if(!(0>t)){if(i[t]=n instanceof lc?n:void 0,!n)for(t=i.length-1;0<=t&&void 0===i[t--];)i.length--;e.v()}}function Vl(e){return null!==(e=e.allBindings)&&e._isFrozen}function Wl(e){var t=e.allBindings;if(null===t)null!==e.data&&x("Template cannot have .data be non-null: "+e),e.allBindings=t=new Y;else if(t._isFrozen)return;var n=new Y;Kl(e,!1),e.qm(e,(function(e,i){i.th();var r=i.localBindings;if(null!==r)for(Qa(i,!1),r=r.iterator;r.next();){var o=r.value;o.mode===Gp&&Qa(i,!0);var a=o.sourceName;null!==a&&("/"===a&&Kl(e,!0),null!==(a=Hp(o,e,i))&&(n.add(a),null===a.srcBindings&&(a.srcBindings=new Y),a.srcBindings.add(o))),t.add(o)}if(i instanceof El&&i.type===El.Table){if(0n;)e.pc(e.O.length-1,!1);else if(e.O.length<=n){n=t.length;for(var i=0;in)){var r=Jl(e,t);if(null!==(r=ec(e,r))){if(Wl(r),0!=(16777216&(r=r.copy()).l)){var o=e.ih();null!==o&&Kl(o,!0)}"object"==typeof t&&(null===e.ge&&(e.ge=new pe),e.ge.add(t,r)),o=n+ql(e),e.Gb(o,r),i&&(r.ub=t,Ql(e,o,n),r.ub=null),r.data=t}}}function Ql(e,t,n){for(e=e.O;tt.length&&(t="0"+t),2>i.length&&(i="0"+i),2>e.length&&(e="0"+e),"#"+t+i+e},Rs.isValidColor=function(e){if("black"===e)return!0;if(""===e)return!1;ul||(qs(),ul=!0);var t=ol;if(null===t)return!0;t.fillStyle="#000000";var n=t.fillStyle;return t.fillStyle=e,t.fillStyle!==n||(t.fillStyle="#FFFFFF",n=t.fillStyle,t.fillStyle=e,t.fillStyle!==n)},Rs.lighten=function(e){return Os(e)},Rs.lightenBy=Os,Rs.darken=function(e){return Fs(e)},Rs.darkenBy=Fs,Rs.mix=zs,Rs.isDark=js,hl.prototype.measure=function(){},hl.prototype.Yz=function(e,t,n,i,r){e.measure(t,n,i,r)},hl.prototype.arrange=function(){},hl.prototype.Ly=function(e,t,n,i,r,o){e.arrange(t,n,i,r,o)},hl.prototype.iA=function(e){e.Uj()},hl.prototype.gc=function(){},d.Object.defineProperties(hl.prototype,{name:{get:function(){return this.xa},set:function(e){this.xa=e}},classType:{get:function(){return El}}}),hl.prototype.remeasureObject=hl.prototype.iA,hl.prototype.arrangeElement=hl.prototype.Ly,hl.prototype.measureElement=hl.prototype.Yz,hl.className="PanelLayout",h(dl,hl),dl.prototype.measure=function(e,t,n,i,r,o,a){var s=i.length;e=Nl(e);for(var l=0;l_&&(O=Math.max(_-re,0));var oe=0===E.oa;E.oc=E.oc+O,E.actual=E.oa+O,_=Math.max(_-(O+(oe?re:0)),0)}if(1===U.columnSpan&&(X===da||X===ga)){var ae=(E=e.Eb($)).Wc();(O=Math.max(ne-E.actual,0))+ae>k&&(O=Math.max(k-ae,0));var se=0===E.oa;E.oc=E.oc+O,E.actual=E.oa+O,k=Math.max(k-(O+(se?ae:0)),0)}V&&U.Uj()}}}}}T(y);var le=0,ce=0;o=e.columnCount;for(var ue=0;ue=e.rowCount);tt++)E=e.Fb(Ye.row+tt),O=0,O=X===ha||X===ga?Math.max(E.minimum,0===Ze[Ye.row+tt]?E.maximum:Math.min(Ze[Ye.row+tt],E.maximum)):Math.max(E.minimum,isNaN(E.Hc)?E.maximum:Math.min(E.Hc,E.maximum)),He.height+=O,et+=E.minimum;for(var nt=1;nt=e.columnCount);nt++)E=e.Eb(Ye.column+nt),O=0,O=X===ha||X===fa?Math.max(E.minimum,0===Ke[Ye.column+nt]?E.maximum:Math.min(Ke[Ye.column+nt],E.maximum)):Math.max(E.minimum,isNaN(E.Hc)?E.maximum:Math.min(E.Hc,E.maximum)),He.width+=O,Je+=E.minimum;Ee.width+=He.width,Ee.height+=He.height;var it=Ye.margin,rt=it.right+it.left,ot=it.top+it.bottom;Ye.measure(Ee.width,Ee.height,Je,et);for(var at=Ye.measuredBounds,st=Math.max(at.width+rt,0),lt=Math.max(at.height+ot,0),ct=0,ut=0;ut=e.rowCount);ut++)ct+=(E=e.Fb(Ye.row+ut)).total||0;if(ct=ht)&&!(Ye.row+ft>=e.rowCount);ft++){var gt=(E=e.Fb(Ye.row+ft)).oa||0,mt=pt(Ye,E,dt);E.actual=Math.min(E.maximum,gt+mt),E.oa!==gt&&(ht-=E.oa-gt)}for(;0vt&&(E.actual=Math.min(E.maximum,vt+ht),E.oa!==vt&&(ht-=E.oa-vt)),0===E.index)break;E=e.Fb(E.index-1)}}for(var yt=0,bt=0;bt=e.columnCount);bt++)yt+=(E=e.Eb(Ye.column+bt)).total||0;if(yt=wt)&&!(Ye.column+kt>=e.columnCount);kt++){var _t=(E=e.Eb(Ye.column+kt)).oa||0,Ct=St(Ye,E,xt);E.actual=Math.min(E.maximum,_t+Ct),E.oa!==_t&&(wt-=E.oa-_t)}for(;0Pt&&(E.actual=Math.min(E.maximum,Pt+wt),E.oa!==Pt&&(wt-=E.oa-Pt)),0===E.index)break;E=e.Eb(E.index-1)}}}}T(b),Ae.free(He),Ae.free(Ee),void 0!==Ze&&T(Ze),void 0!==Ke&&T(Ke);var Et=0,Mt=0,Lt=e.desiredSize,At=e.maxSize;X=Va(e,!0);var Tt=ce=le=0,Dt=0;o=e.columnCount;for(var Nt=0;Nt=e.rowCount);E++){var M=e.Fb(y+E);0!==M.oa&&(v.height+=M.total)}for(E=1;E=e.columnCount);E++)0!==(M=e.Eb(w+E)).oa&&(v.width+=M.total);var L=x.oa+v.width,A=b.oa+v.height;E=s,M=l;var T=L,D=A,N=s,I=l,B=L,R=A;s+L>n.width&&(B=Math.max(n.width-s,0)),l+A>n.height&&(R=Math.max(n.height-l,0));var O=C.alignment;if(O.Xb()){(O=e.defaultAlignment).sb()||(O=rt);var F=O.x,z=O.y,j=O.offsetX;O=O.offsetY;var $=x.alignment,H=b.alignment;$.sb()&&(F=$.x,j=$.offsetX),H.sb()&&(z=H.y,O=H.offsetY)}else F=O.x,z=O.y,j=O.offsetX,O=O.offsetY;(isNaN(F)||isNaN(z))&&(z=F=.5,O=j=0),$=P.width,H=P.height;var Z=C.margin,K=Z.left+Z.right,G=Z.top+Z.bottom,U=Wa(C,b,x,!1);!isNaN(C.desiredSize.width)||U!==ha&&U!==fa||($=Math.max(L-K,0)),!isNaN(C.desiredSize.height)||U!==ha&&U!==ga||(H=Math.max(A-G,0)),L=C.maxSize,A=C.minSize,$=Math.min(L.width,$),H=Math.min(L.height,H),$=Math.max(A.width,$),L=(H=Math.max(A.height,H))+G,E+=T*F-($+K)*F+j+Z.left,M+=D*z-L*z+O+Z.top,C.visible&&(Ze(N,I,B,R,E,M,P.width,P.height)?C.arrange(E,M,$,H):C.arrange(E,M,$,H,new Ie(N,I,B,R)))}}for(Ae.free(v),e=0;e=(n=e.Df()*n.scale)&&(n=1);var i=e.gridCellSize,r=i.width;i=i.height;var o=e.naturalBounds,a=e.actualBounds,s=o.width,l=o.height,c=Math.ceil(s/r),u=Math.ceil(l/i),h=e.gridOrigin,d=h.x;h=h.y,t.save(),t.beginPath(),t.rect(0,0,s,l),t.clip(),t.Se();for(var p=[],f=e.O.s,g=f.length,m=0;mb)){v=Dl(v.figure);for(var w=0;wb&&y.push(x))}}}}for(g=(f=e.O.s).length,m=0;mr*(v=Math.abs(y))*n))){if(b=S.segmentIndex,isFinite(b)&&!isNaN(b)||(b=0),0>b&&(b=v-Math.min(-b,v)),b=Math.round(b%v),w=1,1!==(v=S.opacity)){if(0===v)continue;w=t.globalAlpha,t.globalAlpha=w*v}x=p[m];var k=!1,_=S.strokeDashArray;if(null!==_&&(k=!0,t.js(_,S.strokeDashOffset)),"LineV"===S.figure&&null!==S.stroke&&0h)y.measure(1/0,1/0,0,0),b=y.measuredBounds,n.ed(b),p.push(b);else{var w=y.segmentIndex,x=y.segmentFraction,S=y.alignmentFocus;S.Mc()&&(S=rt);var k=y.segmentOrientation,_=y.segmentOffset;if(isNaN(w)){var C=l.ua;b=A(),C.Qu(x,b);var P=fe.allocAt(b[0],b[1]);if(P.add(l.i(0)),C.type===Kt.j?P.offset(-C.startX,-C.startY):null!==(C=C.figures.first())&&P.offset(-C.startX,-C.startY),C=b[2],k!==Wh){var E=l.computeAngle(y,k,C);y.Kb=E}E=P.x-t.x;var M=P.y-t.y;fe.free(P),T(b)}else if(w<-h||w>=h)b=fe.alloc(),l.vg(),l.computeMidPoint(b),C=l.midAngle,k!==Wh&&(E=l.computeAngle(y,k,C),y.Kb=E),E=b.x-t.x,M=b.y-t.y,fe.free(b);else{if(E=0,0<=w?(M=u.M(w),b=wL+10?0<=w?C.ab(M):M.ab(C):L>P+10?0<=w?b.ab(E):E.ab(b):0<=w?C.ab(E):E.ab(C)}else C=0<=w?M.ab(b):b.ab(M);k!==Wh&&(E=l.computeAngle(y,k,C),y.Kb=E),E=M.x+(b.x-M.x)*x-t.x,M=M.y+(b.y-M.y)*x-t.y}y.measure(1/0,1/0,0,0),b=y.measuredBounds,P=y.naturalBounds;var D=0;y instanceof fc&&(D=y.strokeWidth),L=P.width+D;var N=P.height+D;f.reset(),f.translate(-b.x,-b.y),f.scale(y.scale,y.scale),f.rotate(k===Wh?y.angle:C,L/2,N/2),k!==nd&&k!==ad||f.rotate(90,L/2,N/2),k!==id&&k!==sd||f.rotate(-90,L/2,N/2),k===ld&&(45C||225C)&&f.rotate(-C,L/2,N/2),P=new Ie(0,0,L,N),g.xi(P,S),f.Ga(g),S=-g.x+D/2*y.scale,y=-g.y+D/2*y.scale,m.assign(_),D=isNaN(_.x);var I=isNaN(_.y);if(D||I){L=L/2+3,N=N/2+3;var B=45<=C&&135>=C,R=225<=C&&315>=C;k===Wh&&(B||R)?(m.x=I?L:_.y,m.y=D?N:_.x,B?0<=w||isNaN(w)&&.5>x||!D||(m.y=-N):R&&((0<=w||isNaN(w)&&.5>x)&&D&&(m.y=-N),I&&(m.x=-L))):(D&&(m.x=0<=w||isNaN(w)&&.5>x?L:-L),I&&(m.y=-N),m.rotate(C))}else m.rotate(C);E+=m.x,M+=m.y,P.set(b),P.h(E+S,M+y,b.width,b.height),p.push(P),n.ed(P)}}if(null!==a)for(i=a.labelNodes;i.next();)i.value.measure(1/0,1/0);e.jg=n,e.position.h(t.x+n.x,t.y+n.y),Be(r,n.width||0,n.height||0),$t.free(f),fe.free(g),fe.free(m)}}}},_l.prototype.arrange=function(e,t){var n=t.length;if(e instanceof Vu||e instanceof xh){var i=e,r=null;e instanceof Vu&&(i=(r=e).adornedPart);var o=e instanceof Vu?null:i.path,a=e.j;if(0!==a.length){var s=0;if(null!==o&&s=n)m=f=fe.alloc(),(p=h).vg(),p.computeMidPoint(m),p=h.midAngle,c!==Wh&&(h=h.computeAngle(a,c,p),a.angle=h),h=f.x,m=f.y,fe.free(f);else{if(g=0,0<=s?(f=t.s[s],m=sy+10?0<=s?p.ab(f):f.ab(p):y>v+10?0<=s?m.ab(g):g.ab(m):0<=s?p.ab(g):g.ab(p)}else p=0<=s?f.ab(m):m.ab(f);c!==Wh&&(h=h.computeAngle(a,c,p),a.angle=h),h=f.x+(m.x-f.x)*l,m=f.y+(m.y-f.y)*l}if(d.ys())a.location=new fe(h,m);else{d.Mc()&&(d=rt),(f=$t.alloc()).reset(),f.scale(a.scale,a.scale),f.rotate(a.angle,0,0);var b=a.naturalBounds;g=Ie.allocAt(0,0,b.width,b.height),(v=fe.alloc()).xi(g,d),f.Ga(v),d=-v.x,y=-v.y;var w=b.width,x=b.height;(b=fe.alloc()).assign(u);var S=isNaN(u.x),k=isNaN(u.y);if(S||k){w=w/2+3,x=x/2+3;var _=45<=p&&135>=p,C=225<=p&&315>=p;c===Wh&&(_||C)?(b.x=k?w:u.y,b.y=S?x:u.x,_?0<=s||isNaN(s)&&.5>l||!S||(b.y=-x):C&&((0<=s||isNaN(s)&&.5>l)&&S&&(b.y=-x),k&&(b.x=-w))):(S&&(b.x=0<=s||isNaN(s)&&.5>l?w:-w),k&&(b.y=-x),b.rotate(p))}else b.rotate(p);h+=b.x,m+=b.y,f.pp(g),d+=g.x,y+=g.y,s=fe.allocAt(h+d,m+y),a.move(s),fe.free(s),fe.free(b),fe.free(v),Ie.free(g),$t.free(f)}}null!==r?r.Ul(!1):i.Ul(!1),i=Mu(e),e.location.h(e.position.x+i.x,e.position.y+i.y),fe.free(i)}},h(Pl,hl),Pl.prototype.measure=function(e,t,n,i,r,o,a){var s=e.Pb();e.graduatedBounds=[];var l=s.margin,c=l.right+l.left,u=l.top+l.bottom;s.measure(t,n,o,a);var h=s.measuredBounds,d=new Ie(-l.left,-l.top,Math.max(h.width+c,0),Math.max(h.height+u,0));e.graduatedBounds.push(d),r.assign(d);for(var p=s.geometry,f=s.strokeWidth,g=p.flattenedSegments,m=p.flattenedLengths,v=p.flattenedTotalLength,y=g.length,b=0,w=0,x=A(),S=0;SL&&(L+=360),_.push(L)}b=E,w=M}x.push(_)}if(null===e.graduatedIntervals){for(var D=[],N=e.O.s,I=N.length,B=0;BF))for(var z=0;zF&&O.push($)}}}}e.graduatedIntervals=D}var H=e.graduatedIntervals,Z=e.O.s,K=Z.length,G=0,U=0,V=v;e.graduatedMarks=[];for(var W,q=0;qQ*X*v/e.graduatedRange&&null===Y.graduatedSkip)){var J=m[0][0],ee=0,te=0;U=v*Y.graduatedStart-1e-4,V=v*Y.graduatedEnd+1e-4;var ne=Q*X,ie=e.graduatedTickBase;if(iee.graduatedMin+ne&&(ie-=Math.floor((ie-e.graduatedMin)/ne)*ne);for(var oe=H[q],ae=ie,se=1e-6*e.graduatedMax,le=1;ie<=e.graduatedMax+se;le++){e:{for(var ce=oe.length,ue=0;ue-de){var pe=!1;break e}}pe=!0}if(pe&&(ie>e.graduatedMax&&(ie=e.graduatedMax),null===Y.graduatedSkip||Y instanceof Pc&&!Y.graduatedSkip(ie,Y)||Y instanceof fc&&!Y.graduatedSkip(ie,Y))&&((G=(ie-e.graduatedMin)*v/e.graduatedRange)>v&&(G=v),U<=G&&G<=V)){for(var ge=x[ee][te],me=m[ee][te];eeJ&&tewe&&.4995we?0we||.9995Ce){var Pe=1-Math.abs(.5-we);ge=(Se*Pe+_e*(1-Pe))%360;break e}}}ge=Se}if(Y instanceof Pc){var Ee="";null!==Y.graduatedFunction?Ee=null!=(Ee=Y.graduatedFunction(ie,Y))?Ee.toString():"":Ee=(+ie.toFixed(2)).toString(),""!==Ee&&W.push({$l:xe,angle:ge,text:Ee})}else W.push({$l:xe,angle:ge})}ie=ae+le*ne}}}e.graduatedMarks.push(W)}T(x);var Me=e.graduatedMarks;if(null!==Me)for(var Le=i.length,Ae=0;AeJe;Je++){switch(Je){case 0:Ze.h(Ke,Ge);break;case 1:Ze.h(Ke+ze,Ge);break;case 2:Ze.h(Ke,Ge+je);break;case 3:Ze.h(Ke+ze,Ge+je)}Ze.rotate(Qe+Te.angle),Ze.offset(Ye,Xe),0===We&&0===Je?Ue.h(Ze.x,Ze.y,0,0):Ue.Ye(Ze),Ze.offset(-Ye,-Xe),Ze.rotate(-Qe-Te.angle)}fe.free(Ze),null!==Ne.graduatedBounds&&Ne.graduatedBounds.push(Ue),He(Be,Ue.x,Ue.y,Ue.width,Ue.height)}else if(Te instanceof Pc){var et=e,nt=r;null===et.temporaryTextBlock&&(et.temporaryTextBlock=new Pc);var it=et.temporaryTextBlock;Mc(it,Te);var rt=Te.alignmentFocus;rt.Mc()&&(rt=tt);for(var ot=Te.segmentOrientation,at=Te.segmentOffset,st=new Ie,lt=0,ct=0,ut=0,ht=0,dt=0,pt=De.length,ft=0;ftut||225ut)&&wt.rotate(-ut,yt/2,bt/2);var xt=Ie.allocAt(0,0,yt,bt),St=fe.alloc();St.xi(xt,rt),wt.Ga(St);var kt=-St.x,_t=-St.y,Ct=fe.alloc();Ct.assign(at),isNaN(Ct.x)&&(Ct.x=yt/2+3),isNaN(Ct.y)&&(Ct.y=-(bt/2+3)),Ct.rotate(ut);var Pt=new Ie(lt+=Ct.x+kt,ct+=Ct.y+_t,mt.width,mt.height),Et=new Ie(mt.x,mt.y,mt.width,mt.height),Mt=new Ie(vt.x,vt.y,vt.width,vt.height);gt.Sz=ht,gt.lineCount=it.lineCount,gt.lines=[it.Cb,it.Ih,it.df,it.Le,it.Qc,it.Qb,it.ze],gt.actualBounds=Pt,gt.measuredBounds=Et,gt.naturalBounds=Mt,0===ft?st.assign(Pt):st.ed(Pt),fe.free(Ct),fe.free(St),Ie.free(xt),$t.free(wt)}null!==et.graduatedBounds&&et.graduatedBounds.push(st),He(nt,st.x,st.y,st.width,st.height)}ns(Te,!1)}}},Pl.prototype.arrange=function(e,t,n){if(null!==e.graduatedBounds){var i=e.Pb(),r=e.graduatedMarks;if(null!==r){var o=e.graduatedBounds,a=0,s=o[a];a++,null!==i&&i.arrange(s.x-n.x,s.y-n.y,s.width,s.height);for(var l=t.length,c=0;c=(a=e.Df()*n.scale)&&(a=1);for(var s=o.actualBounds,l=e.O.s,c=e.graduatedMarks,u=l.length,h=0;he.graduatedTickUnit*d.interval*o.geometry.flattenedTotalLength/e.graduatedRange*a&&null===d.graduatedSkip)){var g=d.measuredBounds,m=d.strokeWidth*d.scale,v=d.alignmentFocus;v.Mc()&&(v=tt);for(var y=0;yi&&r.set(f),fe.free(f)),fe.free(u),o&&r.transform(a),c},t.Gj=function(){for(var e=this.O.s,t=e.length,n=0;nn||o>i)&&(this.v(),this.measure(t>n?n:t,o>i?i:o,0,0));break;case ha:this.v(!0),this.measure(n+s,i+a,0,0);break;case fa:this.v(!0),this.measure(n+s,o+a,0,0);break;case ga:this.v(!0),this.measure(t+s,i+a,0,0)}}this.na.arrange(this,r,this.jg)}},t.gh=function(e){var t=this.naturalBounds,n=Nl(this);if(Ze(0,0,t.width,t.height,e.x,e.y)){for(var i=(t=this.O.s).length,r=fe.allocAt(0,0);i--;){var o=t[i];if((o.visible||o===n)&&(ye(r.set(e),o.transform),o.ca(r)))return fe.free(r),!0}return fe.free(r),null!==this.Ma||null!==this.areaBackground}return!1},t.ks=function(e){if(this.bindingId===e)return this;for(var t=this.O.s,n=t.length,i=0;id.width||h.y>d.height||0>h.x+h.width||0>h.y+h.height||(h=u,u=u instanceof El?u:null,(d=$t.alloc()).set(a),(null!==u?u.Cf(e,t,n,i,r,d):Ra(h,e,i,d))&&(null!==t&&(h=t(h)),null===h||null!==n&&!n(h)||r.add(h)),$t.free(d))}}return void 0===o&&$t.free(a),i}return void 0===o&&$t.free(a),!1},t.og=function(e,t,n,i,r,o){if(!1===this.pickable)return!1;void 0===n&&(n=null),void 0===i&&(i=null);var a=this.naturalBounds,s=this.se(),l=s?e:ye(fe.allocAt(e.x,e.y),this.transform),c=s?t:ye(fe.allocAt(t.x,t.y),this.transform),u=l.Bf(c),h=0m.width||g.y>m.height||0>g.x+g.width||0>g.y+g.height)||(f.se()?(g=f.transform,ye(l.set(e),g),ye(c.set(t),g)):(l.set(e),c.set(t)),g=f,(null!==(f=f instanceof El?f:null)?f.og(l,c,n,i,r,o):g.tx(l,c,r))&&(null!==n&&(g=n(g)),null===g||null!==i&&!i(g)||o.add(g)))}}fe.free(l),fe.free(c)}return r?h:a}return!1},t.add=function(e){for(var t=[],n=0;n=r.count&&e>=r.count)return;r.mb(o),i=o}else x("element "+t.toString()+" has panel "+n.toString()+" but is not contained by it.")}(0>e||e>r.count)&&(e=r.count),r.Gb(e,t),(0===e||t.isPanelMain)&&(this.$g=null),ts(this)||this.v(),t.v(!1),(null!==t.portId||t instanceof El&&!0===t.Te)&&(this.Te=!0),this.graduatedIntervals=null,this.If()||tc(this,t,!1),null!==(n=this.part)&&(n.Rh=null,n.ag=NaN,this.Te&&n instanceof qu&&(n.Te=!0),n.Te&&n instanceof qu&&(n.wc=null),null!==(r=this.diagram)&&r.undoManager.isUndoingRedoing||(-1!==i&&n.cb(gn,"elements",this,t,null,i,null),n.cb(fn,"elements",this,null,t,null,e)))},t.remove=function(e){for(var t=this.O.s,n=t.length,i=-1,r=0;re&&k(e,">= 0",El,"getRowDefinition:idx"),e=Math.round(e);var t=this.rowDefs;if(void 0===t[e]){var n=new lc;n.wi(this),n.isRow=!0,n.index=e,t[e]=n,this.cb(fn,"rowdefs",this,null,n,null,e)}return t[e]},t.oA=function(e){if(0>e&&k(e,">= 0",El,"removeRowDefinition:idx"),0!==this.rowCount){e=Math.round(e);var t=this.rowDefs,n=t[e];if(n){t[e]=void 0;for(var i=t.length-1;0<=i&&void 0===t[i--];)t.length--;this.cb(gn,"rowdefs",this,n,null,e,null),this.v()}}},t.Eb=function(e){0>e&&k(e,">= 0",El,"getColumnDefinition:idx"),e=Math.round(e);var t=this.colDefs;if(void 0===t[e]){var n=new lc;n.wi(this),n.isRow=!1,n.index=e,t[e]=n,this.cb(fn,"coldefs",this,null,n,null,e)}return t[e]},t.jA=function(e){if(0>e&&k(e,">= 0",El,"removeColumnDefinition:idx"),0!==this.columnCount){e=Math.round(e);var t=this.colDefs,n=t[e];if(n){t[e]=void 0;for(var i=t.length-1;0<=i&&void 0===t[i--];)t.length--;this.cb(gn,"coldefs",this,n,null,e,null),this.v()}}},t.Gy=function(e){var t=null;return e.isRow?t=this.Fb(e.index):e.isRow||(t=this.Eb(e.index)),t&&cc(t,e),this},t.Hy=function(e,t){return(e=this.Fb(e))&&cc(e,new lc(t)),this},t.By=function(e,t){return(e=this.Eb(e))&&cc(e,new lc(t)),this},t.nz=function(e){if(0>e||this.type!==El.Table||0===this.rowCount)return-1;for(var t=0,n=this.rowDefs,i=n.length,r=this.topIndex;re||this.type!==El.Table||0===this.columnCount)return-1;for(var t=0,n=this.colDefs,i=n.length,r=this.leftIndex;re;)this.pc(this.O.length-1,!1);Yl(this,this.itemArray)},d.Object.defineProperties(El.prototype,{type:{get:function(){return this.na},set:function(e){var t=this.na;t!==e&&(this.na=e,this.isAtomic=this.na===El.Grid,this.v(),this.g("type",t,e))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(e){"number"==typeof e?(0>e&&k(e,">= 0",El,"padding"),e=new We(e)):(0>e.left&&k(e.left,">= 0",El,"padding:value.left"),0>e.right&&k(e.right,">= 0",El,"padding:value.right"),0>e.top&&k(e.top,">= 0",El,"padding:value.top"),0>e.bottom&&k(e.bottom,">= 0",El,"padding:value.bottom"));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.v(),this.g("padding",t,e))}},defaultAlignment:{get:function(){return this.Tm},set:function(e){var t=this.Tm;t.D(e)||(this.Tm=e=e.J(),this.v(),this.g("defaultAlignment",t,e))}},defaultStretch:{get:function(){return this.Uf},set:function(e){var t=this.Uf;t!==e&&(this.Uf=e,this.v(),this.g("defaultStretch",t,e))}},defaultSeparatorPadding:{get:function(){return null!==this.T?this.T.Qp:Xe},set:function(e){"number"==typeof e&&(e=new We(e));var t=this.defaultSeparatorPadding;t.D(e)||(e=e.J(),null===this.T&&(this.T=new sc),this.T.Qp=e,this.v(),this.g("defaultSeparatorPadding",t,e))}},defaultRowSeparatorStroke:{get:function(){return null!==this.T?this.T.ia:null},set:function(e){var t=this.defaultRowSeparatorStroke;t!==e&&(null===e||"string"==typeof e||e instanceof Rs)&&(e instanceof Rs&&e.freeze(),null===this.T&&(this.T=new sc),this.T.ia=e,this.N(),this.g("defaultRowSeparatorStroke",t,e))}},defaultRowSeparatorStrokeWidth:{get:function(){return null!==this.T?this.T.Ha:1},set:function(e){var t=this.defaultRowSeparatorStrokeWidth;t!==e&&isFinite(e)&&0<=e&&(null===this.T&&(this.T=new sc),this.T.Ha=e,this.v(),this.g("defaultRowSeparatorStrokeWidth",t,e))}},defaultRowSeparatorDashArray:{get:function(){return null!==this.T?this.T.V:null},set:function(e){var t=this.defaultRowSeparatorDashArray;if(t!==e){if(null!==e){for(var n=e.length,i=0,r=0;re)&&x("Panel.topIndex must be greater than zero and a real number, not: "+e),null===this.T&&(this.T=new sc),this.T.Hb=e,this.v(),this.g("topIndex",t,e))}},leftIndex:{get:function(){return null!==this.T?this.T.hb:0},set:function(e){var t=this.leftIndex;t!==e&&((!isFinite(e)||0>e)&&x("Panel.leftIndex must be greater than zero and a real number, not: "+e),null===this.T&&(this.T=new sc),this.T.hb=e,this.v(),this.g("leftIndex",t,e))}},data:{get:function(){return this.ub},set:function(e){var t=this.ub;if(t!==e){var n=this instanceof Su&&!(this instanceof Vu);Wl(this),this.ub=e;var i=this.diagram;null!==i&&(n?(n=i.partManager,this instanceof xh?(null!==t&&n.bf.remove(t),null!==e&&n.bf.add(e,this)):this instanceof Su&&(null!==t&&n.cf.remove(t),null!==e&&n.cf.add(e,this))):null!==(n=this.panel)&&null!==n.ge&&(null!==t&&n.ge.remove(t),null!==e&&n.ge.add(e,this))),this.g("data",t,e),null!==i&&i.undoManager.isUndoingRedoing||null!==e&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(e){var t=this.zn;t!==e&&(this.zn=e,this.g("itemIndex",t,e))}},allBindings:{get:function(){return null!==this.A?this.A.nb:null},set:function(e){this.localBindings!==e&&(null===this.A&&(this.A=new ds),this.A.nb=e)}},itemArray:{get:function(){return this.Hh},set:function(e){var t=this.Hh;if(t!==e||null!==e&&function(e,t){for(var n=(e=e.O.s).length,i=t.length,r=0,o=null;re&&k(e,">= 0",lc,"height"),this.Hc=e,this.actual=this.oa,null!==this.panel&&this.panel.v(),this.Ob("height",t,e))}},width:{get:function(){return this.Hc},set:function(e){var t=this.Hc;t!==e&&(0>e&&k(e,">= 0",lc,"width"),this.Hc=e,this.actual=this.oa,null!==this.panel&&this.panel.v(),this.Ob("width",t,e))}},minimum:{get:function(){return this.jj},set:function(e){var t=this.jj;t!==e&&((0>e||!isFinite(e))&&k(e,">= 0",lc,"minimum"),this.jj=e,this.actual=this.oa,null!==this.panel&&this.panel.v(),this.Ob("minimum",t,e))}},maximum:{get:function(){return this.hj},set:function(e){var t=this.hj;t!==e&&(0>e&&k(e,">= 0",lc,"maximum"),this.hj=e,this.actual=this.oa,null!==this.panel&&this.panel.v(),this.Ob("maximum",t,e))}},alignment:{get:function(){return this.Jb},set:function(e){var t=this.Jb;t.D(e)||(this.Jb=e.J(),null!==this.panel&&this.panel.v(),this.Ob("alignment",t,e))}},stretch:{get:function(){return this.hg},set:function(e){var t=this.hg;t!==e&&(this.hg=e,null!==this.panel&&this.panel.v(),this.Ob("stretch",t,e))}},separatorPadding:{get:function(){return this.dg},set:function(e){"number"==typeof e&&(e=new We(e));var t=this.dg;null!==e&&null!==t&&t.D(e)||(null!==e&&(e=e.J()),this.dg=e,null!==this.panel&&this.panel.v(),this.Ob("separatorPadding",t,e))}},separatorStroke:{get:function(){return this.lo},set:function(e){var t=this.lo;t!==e&&(null!==e&&Ws(e,"RowColumnDefinition.separatorStroke"),e instanceof Rs&&e.freeze(),this.lo=e,null!==this.panel&&this.panel.v(),this.Ob("separatorStroke",t,e))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(e){var t=this.mo;t!==e&&(this.mo=e,null!==this.panel&&this.panel.v(),this.Ob("separatorStrokeWidth",t,e))}},separatorDashArray:{get:function(){return this.tj},set:function(e){var t=this.tj;if(t!==e){if(null!==e){for(var n=e.length,i=0,r=0;rr)){var o=i.measuredBounds,a=Math.max(1,o.width);o=o.height;for(var s,l,c,u,h,d,p=n[0],f=n[1],g=0,m=A(),v=2;vc&&(c=1),r=n=c,l=0!==(s=a/2),c=(d=m[v=0])[0],h=d[1],u=d[2],d=d[3];for(var y=0;.1<=g;){if(0===y&&(l?(r=n,r-=s,g-=s,l=!1):r=n,0===r&&(r=1)),r>g)return void T(m);r>d?(y=r-d,r=d):y=0;var b=Math.sqrt(r*r/(1+u*u));if(0>c&&(b=-b),p+=b,f+=u*b,e.translate(p,f),e.rotate(h),e.translate(-a/2,-o/2),0===y&&i.hh(e,t),e.translate(a/2,o/2),e.rotate(-h),e.translate(-p,-f),g-=r,d-=r,0!==y){if(++v===m.length)return void T(m);c=(d=m[v])[0],h=d[1],u=d[2],d=d[3],r=y}}T(m)}}function vc(e){var t=e.geometryStretch;return null!==e.Rd?t===ma?ha:t:t===ma?_c[e.figure].defaultStretch:t}function yc(e,t,n,i,r){return(t=(e=n.x-e)*e+(t=n.y-t)*t)n?e-n:n-e)<(t>i?t-i:i-t)?(e=te||Zt.$(l.y,e))&&(l.yt||Zt.$(l.x,t))&&(l.x=e&&i<=t):(e=i&&n<=e)}function xc(e){var t=e.diagram;null!==t&&t.undoManager.isUndoingRedoing||(e.segmentOrientation=td,"None"!==e.toArrow?(e.segmentIndex=-1,e.alignmentFocus=Tt):"None"!==e.fromArrow&&(e.segmentIndex=0,e.alignmentFocus=new Rt(1-Tt.x,Tt.y)))}function Sc(e){var t=kc[e];if(void 0===t){var n=e.toLowerCase();if("none"===n)return"None";if(void 0===(t=kc[n])){var i,r=null;for(i in Zt.um)if(i.toLowerCase()===n){r=i;break}if(null!==r)return e=Kt.parse(Zt.um[r],!1),kc[r]=e,n!==r&&(kc[n]=r),r}}return"string"==typeof t?t:t instanceof Kt?e:null}lc.className="RowColumnDefinition",lc.Default=hc,lc.None=dc,lc.ProportionalExtra=pc,h(fc,Na),fc.prototype.cloneProtected=function(e){Na.prototype.cloneProtected.call(this,e),e.ua=this.ua,e.Rd=this.Rd,e.an=this.an,e.Ui=this.Ui,e.xc=this.xc,e.ig=this.ig,null!==this.Yg&&(e.Yg=E(this.Yg)),null!==this.Na&&(e.Na=this.Na.nc?this.Na:this.Na.copy()),e.Un=this.Un,e.Vn=this.Vn,null!==this.fa&&(e.fa=this.fa.copy())},(t=fc.prototype).th=function(){Na.prototype.th.call(this),null!==this.Na&&(this.Na.nc=!0)},t.qb=function(e){e===da||e===pa||e===va||e===ma?this.geometryStretch=e:Na.prototype.qb.call(this,e)},t.toString=function(){return"Shape("+("None"!==this.figure?this.figure:"None"!==this.toArrow?this.toArrow:this.fromArrow)+")#"+te(this)},t.hh=function(e,t){var n=this.xc,i=this.Ui;if(null!==n||null!==i){var r=this.ua;if(null!==r){e.yc();var o=this.actualBounds,a=this.naturalBounds;null!==i&&Ka(this,e,i,!0,!1,a,o);var s=this.part,l=this.ig;if(null===n||0!==l||null===s||!this.isPanelMain&&s.Pb()!==this||(l=s.type===El.Link&&s instanceof Vu&&"Selection"===s.category&&s.adornedObject instanceof fc&&s.adornedPart.Pb()===s.adornedObject?s.adornedObject.strokeWidth:0),0===l&&(n=null),null!==n&&0!==l&&(Ka(this,e,n,!1,!1,a,o),e.lineWidth=l,e.lineJoin=this.strokeJoin,e.lineCap=this.strokeCap,e.miterLimit=this.strokeMiterLimit),o=!1,s&&t.Gf("drawShadows")&&(o=s.isShadowed),!1===e.Il&&(o=!1),s=!0,null===n||null!==i&&"transparent"!==i||(s=!1),a=!1,null!==(l=this.strokeDashArray)&&(a=!0,e.js(l,this.strokeDashOffset)),r.type===Kt.j)e.beginPath(),e.moveTo(r.startX,r.startY),e.lineTo(r.endX,r.endY),null!==n&&e.jk(),e.Se();else if(r.type===Kt.u){var c=r.startX;l=r.startY;var u=r.endX,h=r.endY;r=Math.min(c,u);var d=Math.min(l,h);c=Math.abs(u-c),l=Math.abs(h-l),e.beginPath(),e.rect(r,d,c,l),null!==i&&e.ng(i),null!==n&&(s&&o&&Ls(e),e.jk(),s&&o&&As(e)),e.Se()}else if(r.type===Kt.F)c=r.startX,l=r.startY,u=r.endX,h=r.endY,r=Math.abs(u-c)/2,d=Math.abs(h-l)/2,c=Math.min(c,u)+r,l=Math.min(l,h)+d,e.beginPath(),e.moveTo(c,l-d),e.bezierCurveTo(c+Zt.wg*r,l-d,c+r,l-Zt.wg*d,c+r,l),e.bezierCurveTo(c+r,l+Zt.wg*d,c+Zt.wg*r,l+d,c,l+d),e.bezierCurveTo(c-Zt.wg*r,l+d,c-r,l+Zt.wg*d,c-r,l),e.bezierCurveTo(c-r,l-Zt.wg*d,c-Zt.wg*r,l-d,c,l-d),e.closePath(),null!==i&&e.ng(i),null!==n&&(s&&o&&Ls(e),e.jk(),s&&o&&As(e)),e.Se();else if(r.type===Kt.o)for(l=(r=r.figures).length,d=0;dg.sweepAngle,null!==p?p.endX:c.startX,null!==p?p.endY:c.startY)}else if(0===(m=(p=en(g,c)).length))e.lineTo(g.centerX,g.centerY);else for(var v=0;v(n.startX-n.endX)*(e.x-n.endX)+(n.startY-n.endY)*(e.y-n.endY)||0>i)&&(Ie.free(o),Zt.Yb(n.startX,n.startY,n.endX,n.endY,r,e.x,e.y)));if(n.type===Kt.u){t=n.startX;var a=n.startY,s=n.endX;if(n=n.endY,o.x=Math.min(t,s),o.y=Math.min(a,n),o.width=Math.abs(s-t),o.height=Math.abs(n-a),null===this.fill){if(o.Bc(-i,-i),o.ca(e))return Ie.free(o),!1;o.Bc(i,i)}return null!==this.stroke&&o.Bc(r,r),e=o.ca(e),Ie.free(o),e}if(n.type===Kt.F){a=n.startX,r=n.startY,s=n.endX;var l=n.endY;if(n=Math.min(a,s),t=Math.min(r,l),a=Math.abs(s-a)/2,r=Math.abs(l-r)/2,n=e.x-(n+a),t=e.y-(t+r),null===this.fill){if(r-=i,0>=(a-=i)||0>=r||1>=n*n/(a*a)+t*t/(r*r))return Ie.free(o),!1;a+=i,r+=i}return null!==this.stroke&&(a+=i,r+=i),Ie.free(o),!(0>=a||0>=r)&&1>=n*n/(a*a)+t*t/(r*r)}if(n.type===Kt.o)return Ie.free(o),null===this.fill?qt(n,e.x,e.y,r):Vt(n,e,r,1=this.strokeWidth)u=Zt.Ve(c.startX,c.startY,c.endX,c.endY,o,a,s,l,r);else{if(c.startX===c.endX?(i=h,u=0):(t=(c.endY-c.startY)/(c.endX-c.startX),i=(u=h/Math.sqrt(1+t*t))*t),t=A(),e=new fe,Zt.Ve(c.startX+i,c.startY+u,c.endX+i,c.endY+u,o,a,s,l,e)&&t.push(e),e=new fe,Zt.Ve(c.startX-i,c.startY-u,c.endX-i,c.endY-u,o,a,s,l,e)&&t.push(e),e=new fe,Zt.Ve(c.startX+i,c.startY+u,c.startX-i,c.startY-u,o,a,s,l,e)&&t.push(e),e=new fe,Zt.Ve(c.endX+i,c.endY+u,c.endX-i,c.endY-u,o,a,s,l,e)&&t.push(e),0===(s=t.length))return T(t),!1;for(u=!0,l=1/0,i=0;iMath.abs(n)){if(0>e*e*n*n+c*c-(l=a-u-n*(o-i))*l){r.x=NaN,r.y=NaN,u=!1;break e}s=(-e*e*n*l+e*c*(h=Math.sqrt(e*e*n*n+c*c-l*l)))/(c*c+e*e*n*n)+i,e=(-e*e*n*l-e*c*h)/(c*c+e*e*n*n)+i,c=n*(s-i)+l+u,l=n*(e-i)+l+u,Math.abs((o-s)*(o-s))+Math.abs((a-c)*(a-c))(s-=s/(e*e)*(l=o-i)*l)){r.x=NaN,r.y=NaN,u=!1;break e}s=u+(l=Math.sqrt(s)),l=u-l,Math.abs(s-a)Math.abs(f)?(g*=.5/f,f=.5):0!==g&&.5>Math.abs(g)&&(f*=.5/g,g=.5),v-=f,y-=g;p.contains(v,y);)v-=f,y-=g;for(r.x=s,r.y=l,g=0;gr)return!0;return!1}if(n&&null!==this.fill&&this.gh(e,!0))return!0;var r=e.Bf(t),o=r;if(1.5=r||we(t,o,0,-h)>=r||we(t,o,0,h)>=r||we(t,o,u,0)>=r);if((e=Zt.$y(u,h,t,o))*e<=r)return!0}else if(t.type===Kt.o){if(o=(c=t.bounds).x,s=c.y,l=c.x+c.width,c=c.y+c.height,e.x>l&&e.xc&&e.yr&&be(e.x,e.y,o,s,l,s)>r&&be(e.x,e.y,l,c,o,c)>r&&be(e.x,e.y,l,c,l,s)>r)return!1;if(o=Math.sqrt(r),!n){for(n=t.figures,t=0;tr)return!1;for(l=(s=o.segments.s).length,c=0;cr)return!1;break;case on:var d=A();if(Zt.Qe(a,u,h.point1X,h.point1Y,h.point2X,h.point2Y,h.endX,h.endY,.8,d),a=i(d,e),T(d),a)return!1;if(a=h.endX,u=h.endY,e.zd(a,u)>r)return!1;break;case an:if(d=A(),Zt.ep(a,u,h.point1X,h.point1Y,h.endX,h.endY,.8,d),a=i(d,e),T(d),a)return!1;if(a=h.endX,u=h.endY,e.zd(a,u)>r)return!1;break;case sn:case ln:var p=(d=h.type===sn?en(h,o):tn(h,o,a,u)).length;if(0===p){if(a=h.type===sn?h.centerX:h.endX,u=h.type===sn?h.centerY:h.endY,e.zd(a,u)>r)return!1;break}h=null;for(var f=A(),g=0;g= 0",fc,"strokeWidth:value")}},strokeCap:{get:function(){return null!==this.Na?this.Na.Hr:"butt"},set:function(e){var t=this.strokeCap;t!==e&&("string"!=typeof e||"butt"!==e&&"round"!==e&&"square"!==e?k(e,'"butt", "round", or "square"',fc,"strokeCap"):(gc(this),this.Na.Hr=e,this.N(),this.g("strokeCap",t,e)))}},strokeJoin:{get:function(){return null!==this.Na?this.Na.Ir:"miter"},set:function(e){var t=this.strokeJoin;t!==e&&("string"!=typeof e||"miter"!==e&&"bevel"!==e&&"round"!==e?k(e,'"miter", "bevel", or "round"',fc,"strokeJoin"):(gc(this),this.Na.Ir=e,this.N(),this.g("strokeJoin",t,e)))}},strokeMiterLimit:{get:function(){return null!==this.Na?this.Na.Jr:10},set:function(e){var t=this.strokeMiterLimit;if(t!==e&&1<=e){gc(this),this.Na.Jr=e,this.N();var n=this.part;null!==n&&(n.ag=NaN),this.g("strokeMiterLimit",t,e)}}},strokeDashArray:{get:function(){return this.Yg},set:function(e){var t=this.Yg;if(t!==e){if(null!==e){for(var n=e.length,i=0,r=0;re?e=0:1e?e=0:1e.maxLines&&(e.l|=16777216))}function Ac(e,t,n,i){var r=e.formatting===Gc;r&&(t=t.trim());var o=0,a=e.Ae,s=e.spacingAbove+e.spacingBelow;s=Math.max(0,Nc(e)+s);var l=e.overflow===Kc?Ic(a):0;if(e.Gc>=e.maxLines)null!==i&&i.h(0,s);else if(a=t,e.wrap===zc){e.Le=1;var c=Dc(t);if(0===l||c<=n)e.Cb=Math.max(e.Cb,c),Lc(e,t,e.Cb),null!==i&&i.h(c,s);else{for(c=Dc((o=Tc(e,a))+(t=Tc(e,a=a.substr(o.length))));0n&&1n;){var h=1;for(c=Dc(t.substr(0,h)),u=0;c<=n;)h++,u=c,c=Dc(t.substr(0,h));if(1===h){var d=c;o=Math.max(o,c)}else d=u,o=Math.max(o,u);if(1>--h&&(h=1),Lc(e,t.substr(0,h),d),l++,t=t.substr(h),e.Gc+l>e.maxLines)break}for(c=Dc(t+(u=Tc(e,a)));0e.maxLines))break}e.Le=Math.min(e.maxLines,l),e.Cb=Math.max(e.Cb,o),null!==i&&i.h(e.Cb,s*e.Le)}}function Tc(e,t){if(e.wrap===Hc)return t.substr(0,1);for(var n=t.length,i=0,r=Vc;i=t.length?t:t.substr(0,i)}function Dc(e){return null===eu?8*e.length:eu.measureText(e).width}function Nc(e){if(null!==e.df)return e.df;var t=e.Ae;if(null===eu){var n=16;return e.df=n}return void 0!==Wc[t]&&5e3>qc?n=Wc[t]:(n=1.3*eu.measureText("M").width,Wc[t]=n,qc++),e.df=n}function Ic(e){if(null===eu)return 6;if(void 0!==Yc[e]&&5e3>Xc)var t=Yc[e];else t=eu.measureText(Qc).width,Yc[e]=t,Xc++;return t}function Bc(e,t){var n=e.ec.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),i=e.spacingAbove+e.spacingBelow;if(i=Math.max(0,Nc(e)+i),0===n.length)return e.Cb=0,e.Gc=1,i;if(!e.isMultiline){var r=n.indexOf("\n",0);0<=r&&(n=n.substr(0,r))}r=0;for(var o,a=e.Gc=0,s=!1;!s;){if(-1===(o=n.indexOf("\n",a))&&(o=n.length,s=!0),a<=o){if(a=n.substr(a,o-a),e.wrap!==zc){e.Le=0;var l=Ae.alloc();Ac(e,a,t,l),r+=l.height,Ae.free(l),e.Gc+=e.Le}else Ac(e,a,t,null),r+=i,e.Gc++;e.Gc===e.maxLines&&(s=!0)}a=o+1}return e.Lq=r}fc.className="Shape",fc.getFigureGenerators=function(){var e,t=new pe;for(e in Zt.Ze)e!==e.toLowerCase()&&t.add(e,Zt.Ze[e]);return t.freeze(),t},fc.defineFigureGenerator=function(e,t){var n=e.toLowerCase(),i=Zt.Ze;i[e]=t,i[n]=e},fc.getArrowheadGeometries=function(){var e=new pe;for(i in Zt.um)if(void 0===kc[i]){var t=Kt.parse(Zt.um[i],!1);kc[i]=t,(t=i.toLowerCase())!==i&&(kc[t]=i)}for(var n in kc)if(n!==n.toLowerCase()){var i=kc[n];i instanceof Kt&&e.add(n,i)}return e.freeze(),e},fc.defineArrowheadGeometry=function(e,t){var n=null;n="string"==typeof t?Kt.parse(t,!1):t,"none"!==(t=e.toLowerCase())&&e!==t||x("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+e);var i=kc;i[e]=n,i[t]=e},Cc.prototype.copy=function(){var e=new Cc;return e.Hr=this.Hr,e.Ir=this.Ir,e.Jr=this.Jr,e.uj=this.uj,e.br=this.br,e.jq=this.jq,e.fg=this.fg.J(),e.gg=this.gg.J(),e},h(Pc,Na),Pc.prototype.cloneProtected=function(e){Na.prototype.cloneProtected.call(this,e),e.ec=this.ec,e.xc=this.xc,e.Ae=this.Ae,e.Gc=this.Gc,e.Cb=this.Cb,e.Lq=this.Lq,e.Gm=this.Gm,null!==this.fa&&(e.fa=this.fa.copy()),null!==this.da&&(e.da=this.da.nc?this.da:this.da.copy()),e.Ih=this.Ih,e.df=this.df,e.Le=this.Le,e.Qc=this.Qc,e.Qb=this.Qb,e.ze=this.ze},(t=Pc.prototype).th=function(){Na.prototype.th.call(this),null!==this.da&&(this.da.nc=!0)},t.qb=function(e){e.classType===Pc?this.wrap=e:Na.prototype.qb.call(this,e)},t.toString=function(){return 22(h*h+u*u)*d*d&&(n=!0),t.ib!==e&&(n=!1),t.ib instanceof ys&&(n=!1),!1===t.Gf("textGreeking")&&(n=!1),t=this.spacingAbove,h=this.spacingBelow,this.flip){case ba:e.translate(r,0),e.scale(-1,1);break;case ya:e.translate(0,o),e.scale(1,-1);break;case wa:e.translate(r,o),e.scale(-1,-1)}if(e.yc(),o>(d=(t+a+h)*(u=this.Gc))&&(i=(i=this.verticalAlignment).y*o-i.y*d+i.offsetY),1===u&&null!==this.ze)(h=this.Cb)>r&&(h=r),this.Oj(this.ze,e,0,i+t,r,a,h,n,s,l,c);else if(null!==this.Qc&&null!==this.Qb)for(d=0;dr&&(p=r),i+=t,this.Oj(this.Qb[d],e,0,i,r,a,p,n,s,l,c),i+=a+h}switch(this.flip){case ba:e.scale(-1,1),e.translate(-r,0);break;case ya:e.scale(1,-1),e.translate(0,-o);break;case wa:e.scale(-1,-1),e.translate(-r,-o)}}},t.Oj=function(e,t,n,i,r,o,a,s,l,c,u){var h=0;if(s)"left"===l?h=0:"right"===l?h=r-a:"center"===l&&(h=(r-a)/2),t.fillRect(n+h,i+.25*o,a,1);else{if("left"===l?h=0:"right"===l?h=r:"center"===l&&(h=r/2),r=null!==Oc?Oc(this,o):.75*o,t.fillText(e,n+h,i+r),0===(e=o/20|0)&&(e=1),"right"===l?h-=a:"center"===l&&(h-=a/2),c){l=n+h,c=i+(s=null!==Fc?Fc(this,o):.8*o),r=n+h+a,s=i+s;var d=e;t.beginPath(),t.lineWidth=d,t.moveTo(l,c),t.lineTo(r,s),t.stroke(),t.Se(),t instanceof ys&&t.ad.classList.add("gojs-td")}u&&(u=i+o-o/2.2|0,0!=e%2&&(u+=.5),i=n+h,o=u,n=n+h+a,a=u,h=e,t.beginPath(),t.lineWidth=h,t.moveTo(i,o),t.lineTo(n,a),t.stroke(),t.Se(),t instanceof ys&&t.ad.classList.add("gojs-td"))}},t.kk=function(e,t,n){if(!Na.prototype.kk.call(this,e,t,n))return!1;if(Ka(this,e,this.xc,!0,!1,this.naturalBounds,this.actualBounds),n){if(0===this.svg.getElementsByTagName("text").length)return!0;for(t=this.svg.getElementsByClassName("gojs-td"),n=0;n=this.Qb.length))){for(this.l|=16777216,c=this.Qb[l],t=Math.max(1,e-t);Dc(c)>t&&1e?e=0:1e?e=0:1=(e=Math.floor(e))&&k(e,"> 0",Pc,"maxLines"),Ec(this),this.da.Jq=e,this.v(),this.g("maxLines",t,e))}},metrics:{get:function(){return{arrSize:null!==this.Qc?this.Qc:[this.Cb],arrText:null!==this.Qb?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(e){var t=this.Gm;t!==e&&(this.Gm=e,this.g("choices",t,e))}}});var Rc,Oc=null,Fc=null,zc=new j(Pc,"None",0),jc=new j(Pc,"WrapFit",1),$c=new j(Pc,"WrapDesiredSize",2),Hc=new j(Pc,"WrapBreakAll",3),Zc=new j(Pc,"OverflowClip",0),Kc=new j(Pc,"OverflowEllipsis",1),Gc=new j(Pc,"FormatTrim",0),Uc=new j(Pc,"FormatNone",0),Vc=/[ \u200b\u00ad]/,Wc=new Z,qc=0,Yc=new Z,Xc=0,Qc="...",Jc="",eu=null,tu=!1;function nu(){this.nc=!1,this.Hd=null,this.Xf=da,this.gq=Gc,this.Jq=1/0,this.$q=Zc,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Et,this.$r=$c}function iu(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}function ru(e,t){Na.call(this),this.Eg=null,this.qo="",this.Xg=Ue,this.Nk=ha,this.Zg=this.Hd=null,this.Mk=rt,this.Xf=da,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,"string"==typeof e?this.source=e:e&&Object.assign(this,e),t&&Object.assign(this,t)}function ou(e){void 0===e&&(e=""),""!==e?Rc[e]&&(delete Rc[e],su--):(Rc=new Z,su=0)}function au(e,t){t.qy||(t.Fq=function(n){t.sq=!0,t.ln=!1;var i=t.Bg.copy();if(null!=i){for(i=i.iterator;i.next();){var r=i.value;r.N();var o=t.getAttribute("src")||"",a=r.Og.I(o);if(null!==a)for(var s=a.length,l=0;l=i.width&&(o=o+f.offsetX+(h*f.x-i.width*f.x)),d>=i.height&&(a=a+f.offsetY+(d*f.y-i.height*f.y)),l=Math.min(i.width,h),s=Math.min(i.height,d);break;case ha:h=i.width,d=i.height;break;case pa:case va:p===pa?(h*=p=Math.min(i.height/d,i.width/h),d*=p):p===va&&(d*=p=Math.max(i.height/d,i.width/h),(h*=p)>=i.width&&(o=(o+f.offsetX+(h*f.x-i.width*f.x)/h)*l),d>=i.height&&(a=(a+f.offsetY+(d*f.y-i.height*f.y)/d)*s),l*=1/(h/i.width),s*=1/(d/i.height),h=i.width,d=i.height)}var g=h*(p=this.Df()*t.scale)*d*p,m=l*s/g,v=n.__goCache;p=null;var y=lu;if(!r){if(n.sq&&void 0!==v&&4y*y)for(null===v.gi&&(uu(v,4,c,u,n),uu(v,16,c,u,n)),c=(r=v.gi).length,u=0;ue)&&(e=5),e=Math.min(e,t/3);var i="rr"+t+","+n+","+(e=Math.min(e,n/3)),r=Zt.Mf[i];if(void 0!==r)return r;var o=e*Zt.wg;return r=(new Kt).add(new Qt(e,0,!0).add(new Jt(rn,t-e,0)).add(new Jt(on,t,e,t-o,0,t,o)).add(new Jt(rn,t,n-e)).add(new Jt(on,t-e,n,t,n-o,t-o,n)).add(new Jt(rn,e,n)).add(new Jt(on,0,n-e,o,n,0,n-o)).add(new Jt(rn,0,e)).add(new Jt(on,e,0,0,o,o,0).close())),1r.x&&e.y>r.y&&e.rightr.x&&t.y>r.y&&t.right=n.maxSelectionCount)){this.G^=4096;var i=!1;if(null!==n){i=n.skipsUndoManager,n.skipsUndoManager=!0;var r=n.selection;r.ka(),e?r.add(this):r.remove(this),r.freeze()}this.g("isSelected",t,e),this.Wb(),null!==(e=this.selectionChanged)&&e(this),null!==n&&(n.$b(),n.skipsUndoManager=i)}}}},isHighlighted:{get:function(){return 0!=(524288&this.G)},set:function(e){var t=0!=(524288&this.G);if(t!==e){this.G^=524288;var n=this.diagram;null!==n&&((n=n.highlighteds).ka(),e?n.add(this):n.remove(this),n.freeze()),this.g("isHighlighted",t,e),this.N(),null!==(e=this.highlightedChanged)&&e(this)}}},isShadowed:{get:function(){return 0!=(8192&this.G)},set:function(e){var t=0!=(8192&this.G);t!==e&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",t,e),this.N())}},isAnimated:{get:function(){return 0!=(262144&this.G)},set:function(e){var t=0!=(262144&this.G);t!==e&&(this.G^=262144,this.g("isAnimated",t,e))}},highlightedChanged:{get:function(){return null!==this.P?this.P.oq:null},set:function(e){var t=this.highlightedChanged;t!==e&&(ku(this),this.P.oq=e,this.g("highlightedChanged",t,e))}},selectionObjectName:{get:function(){return null!==this.P?this.P.vr:""},set:function(e){var t=this.selectionObjectName;t!==e&&(ku(this),this.P.vr=e,this.Ug=null,this.g("selectionObjectName",t,e))}},selectionAdornmentTemplate:{get:function(){return null!==this.P?this.P.tr:null},set:function(e){var t=this.selectionAdornmentTemplate;t!==e&&(ku(this),this.P.tr=e,this.g("selectionAdornmentTemplate",t,e))}},selectionObject:{get:function(){if(null===this.Ug){var e=this.selectionObjectName;null!==e&&""!==e?(e=this.fb(e),this.Ug=null!==e?e:this):this instanceof xh?(e=this.path,this.Ug=null!==e?e:this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return null!==this.P?this.P.ur:null},set:function(e){var t=this.selectionChanged;t!==e&&(ku(this),this.P.ur=e,this.g("selectionChanged",t,e))}},resizeAdornmentTemplate:{get:function(){return null!==this.P?this.P.fr:null},set:function(e){var t=this.resizeAdornmentTemplate;t!==e&&(ku(this),this.P.fr=e,this.g("resizeAdornmentTemplate",t,e))}},resizeObjectName:{get:function(){return null!==this.P?this.P.hr:""},set:function(e){var t=this.resizeObjectName;t!==e&&(ku(this),this.P.hr=e,this.g("resizeObjectName",t,e))}},resizeObject:{get:function(){var e=this.resizeObjectName;return""!==e&&null!==(e=this.fb(e))?e:this}},resizeCellSize:{get:function(){return null!==this.P?this.P.gr:Me},set:function(e){var t=this.resizeCellSize;t.D(e)||(e=e.J(),ku(this),this.P.gr=e,this.g("resizeCellSize",t,e))}},rotateAdornmentTemplate:{get:function(){return null!==this.P?this.P.ir:null},set:function(e){var t=this.rotateAdornmentTemplate;t!==e&&(ku(this),this.P.ir=e,this.g("rotateAdornmentTemplate",t,e))}},rotateObjectName:{get:function(){return null!==this.P?this.P.jr:""},set:function(e){var t=this.rotateObjectName;t!==e&&(ku(this),this.P.jr=e,this.g("rotateObjectName",t,e))}},rotateObject:{get:function(){var e=this.rotateObjectName;return""!==e&&null!==(e=this.fb(e))?e:this}},rotationSpot:{get:function(){return null!==this.P?this.P.lr:_t},set:function(e){var t=this.rotationSpot;t.D(e)||(e=e.J(),ku(this),this.P.lr=e,this.g("rotationSpot",t,e))}},text:{get:function(){return this.ec},set:function(e){var t=this.ec;t!==e&&(this.ec=e,this.g("text",t,e))}},containingGroup:{get:function(){return this.Ah},set:function(e){if(this.Zc()){var t=this.Ah;if(t!==e){null===e||this!==e&&!e.Td(this)||(this===e&&x("Cannot make a Group a member of itself: "+this.toString()),x("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+e.toString())),this.C(2);var n=this.diagram;if(null!==t?vh(t,this):this instanceof gh&&null!==n&&n.ai.remove(this),this.Ah=e,null!==e?mh(e,this):this instanceof gh&&null!==n&&n.ai.add(this),this.C(1),null!==n&&n.aa){var i=this.data,r=n.model;if(null!==i&&r.Xj()){var o=r.wa(null!==e?e.data:null);r.mp(i,o)}}if(null!==(i=this.containingGroupChanged)&&(r=!0,null!==n&&(r=n.aa,n.aa=!0),i(this,t,e),null!==n&&(n.aa=r)),this instanceof gh)for(Gu(n=new Q,this,!0,0,!0),n=n.iterator;n.next();)if((i=n.value)instanceof qu)for(i=i.linksConnected;i.next();)Sh(i.value);if(this instanceof qu){for(n=this.linksConnected;n.next();)Sh(n.value);null!==(n=this.labeledLink)&&Sh(n)}this.g("containingGroup",t,e),null!==e&&(null!==(t=e.layer)&&Pr(t,-1,e))}}else x("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return null!==this.P?this.P.Kp:null},set:function(e){var t=this.containingGroupChanged;t!==e&&(ku(this),this.P.Kp=e,this.g("containingGroupChanged",t,e))}},isTopLevel:{get:function(){return!(null!==this.containingGroup||this instanceof qu&&null!==this.labeledLink)}},layoutConditions:{get:function(){return null!==this.P?this.P.Cq:127},set:function(e){var t=this.layoutConditions;t!==e&&(ku(this),this.P.Cq=e,this.g("layoutConditions",t,e))}},dragComputation:{get:function(){return null!==this.P?this.P.Up:null},set:function(e){var t=this.dragComputation;t!==e&&(ku(this),this.P.Up=e,this.g("dragComputation",t,e))}},shadowOffset:{get:function(){return null!==this.P?this.P.zr:oe},set:function(e){var t=this.shadowOffset;t.D(e)||(e=e.J(),ku(this),this.P.zr=e,this.N(),this.g("shadowOffset",t,e))}},shadowColor:{get:function(){return null!==this.P?this.P.yr:"gray"},set:function(e){var t=this.shadowColor;t!==e&&(ku(this),this.P.yr=e,this.N(),this.g("shadowColor",t,e))}},shadowBlur:{get:function(){return null!==this.P?this.P.Vg:4},set:function(e){var t=this.shadowBlur;t!==e&&(ku(this),this.P.Vg=e,this.N(),this.g("shadowBlur",t,e))}}}),Su.prototype.invalidateLayout=Su.prototype.C,Su.prototype.findCommonContainingGroup=Su.prototype.px,Su.prototype.isMemberOf=Su.prototype.Td,Su.prototype.findTopLevelPart=Su.prototype.sz,Su.prototype.findSubGraphLevel=Su.prototype.oz,Su.prototype.ensureBounds=Su.prototype.Va,Su.prototype.getDocumentBounds=Su.prototype.mi,Su.prototype.findObject=Su.prototype.fb,Su.prototype.moveTo=Su.prototype.moveTo,Su.prototype.invalidateAdornments=Su.prototype.Wb,Su.prototype.clearAdornments=Su.prototype.Ej,Su.prototype.removeAdornment=Su.prototype.Jf,Su.prototype.addAdornment=Su.prototype.bh,Su.prototype.findAdornment=Su.prototype.Pj,Su.prototype.updateTargetBindings=Su.prototype.La;var Uu=!1;function Vu(e,t){void 0===e||e instanceof hl||"string"==typeof e?Su.call(this,e):(Su.call(this),e&&(t=e)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,t&&Object.assign(this,t)}function Wu(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Qe,this.er=ph,this.Kr=this.ij=this.Nq=this.Mq=null}function qu(e,t){void 0===e||e instanceof hl||"string"==typeof e?Su.call(this,e):(Su.call(this),e&&(t=e)),this.U=13,this.Ba=null,this.jb=new Y,this.wc=this.af=this.Yk=null,this.ci=!1,t&&Object.assign(this,t)}function Yu(e){null===e.Ba?e.Ba=new Wu:e.Ba.nc&&(e.Ba=e.Ba.copy())}function Xu(e,t){null!==t&&(null===e.af&&(e.af=new Q),e.af.add(t))}function Qu(e,t,n,i){if(null===t||null===e.af)return null;for(var r=e.af.iterator;r.next();){var o=r.value;if(o.Ds===e&&o.cv===t&&o.Ox===n&&o.Px===i||o.Ds===t&&o.cv===e&&o.Ox===i&&o.Px===n)return o}return null}function Ju(e,t){for(e=e.linksConnected;e.next();){var n=e.value;n.fromPort!==t&&n.toPort!==t||(eh(n.fromPort),eh(n.toPort),n.bb())}}function eh(e){if(null!==e){var t=e.Zn;null!==t&&t.Sl(),null===(t=(e=e.part).containingGroup)||e.isVisible()||eh(t.port)}}function th(e,t,n,i){if(null!==t&&!n.has(t)){n.add(t);var r=!0,o=e.diagram;null!==o&&(r=o.isTreePathToChildren),t.linksConnected.each((function(o){o.isTreeLink?(r?o.fromNode===t:o.toNode===t)&&th(e,r?o.toNode:o.fromNode,n,i):i.add(o)}))}}function nh(e,t,n){eh(n);var i=e.jb.contains(t);if(i||e.jb.add(t),!i||t.fromNode===t.toNode){var r=e.linkConnected;if(null!==r){var o=!0,a=e.diagram;null!==a&&(o=a.aa,a.aa=!0),r(e,t,n),null!==a&&(a.aa=o)}}!i&&t.isTreeLink&&(n=t.fromNode,t=t.toNode,null!==n&&null!==t&&n!==t&&(i=!0,null!==(e=e.diagram)&&(i=e.isTreePathToChildren),o=i?n:t,(r=i?t:n).ci||(r.ci=o),!o.isTreeLeaf||null!==e&&e.undoManager.isUndoingRedoing||(i?n===o&&(o.isTreeLeaf=!1):t===o&&(o.isTreeLeaf=!1))))}function ih(e,t,n){eh(n);var i=e.jb.remove(t),r=null;if(i||t.toNode===t.fromNode){var o=e.linkDisconnected;if(r=e.diagram,null!==o){var a=!0;null!==r&&(a=r.aa,r.aa=!0),o(e,t,n),null!==r&&(r.aa=a)}}i&&t.isTreeLink&&(n=!0,null!==r&&(n=r.isTreePathToChildren),e=n?t.toNode:t.fromNode,t=n?t.fromNode:t.toNode,null!==e&&(e.ci=!1),null===t||t.isTreeLeaf||(0===t.jb.count?(t.ci=null,null!==r&&r.undoManager.isUndoingRedoing||(t.isTreeLeaf=!0)):rh(t)))}function rh(e){if(e.ci=!1,0!==e.jb.count){var t=!0,n=e.diagram;if(null===n||!n.undoManager.isUndoingRedoing){for(null!==n&&(t=n.isTreePathToChildren),n=e.jb.iterator;n.next();){var i=n.value;if(i.isTreeLink)if(t){if(i.fromNode===e)return void(e.isTreeLeaf=!1)}else if(i.toNode===e)return void(e.isTreeLeaf=!1)}e.isTreeLeaf=!0}}}function oh(e){null===e.wc?e.wc=new pe:e.wc.clear(),e.qm(e,(function(e,t){ah(e,t)})),0===e.wc.count&&e.wc.add("",e)}function ah(e,t){var n=t.portId;null!==n&&null!==e.wc&&e.wc.add(n,t)}function sh(e,t,n){var i=t.portId;if(null!==i&&(null!==e.wc&&e.wc.remove(i),null!==(t=e.diagram)&&n)){for(n=null,e=e.findLinksConnected(i);e.next();)i=e.value,null===n&&(n=A()),n.push(i);if(null!==n){for(e=0;ee&&(e=1);var t=this.diagram;if(null!==t&&!t.Ue){t.Ue=!0;var n=new Q;n.add(this),ch(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===ea),t.Ue=!1}},qu.prototype.expandTree=function(e){void 0===e&&(e=2),2>e&&(e=2);var t=this.diagram;if(null!==t&&!t.Ue){t.Ue=!0;var n=new Q;n.add(this),hh(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===ea),t.Ue=!1}},d.Object.defineProperties(qu.prototype,{portSpreading:{get:function(){return null!==this.Ba?this.Ba.er:ph},set:function(e){var t=this.portSpreading;t!==e&&(Yu(this),this.Ba.er=e,this.g("portSpreading",t,e),null!==(e=this.diagram)&&e.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return 0!=(8&this.U)},set:function(e){var t=0!=(8&this.U);if(t!==e){this.U^=8;var n=this.diagram;null!==n&&Io(n,this),this.g("avoidable",t,e)}}},avoidableMargin:{get:function(){return null!==this.Ba?this.Ba.yp:Qe},set:function(e){"number"==typeof e&&(e=new We(e));var t=this.avoidableMargin;if(!t.D(e)){e=e.J(),Yu(this),this.Ba.yp=e;var n=this.diagram;null!==n&&Io(n,this),this.g("avoidableMargin",t,e)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return null!==this.Ba?this.Ba.Dq:null},set:function(e){var t=this.linkConnected;t!==e&&(Yu(this),this.Ba.Dq=e,this.g("linkConnected",t,e))}},linkDisconnected:{get:function(){return null!==this.Ba?this.Ba.Eq:null},set:function(e){var t=this.linkDisconnected;t!==e&&(Yu(this),this.Ba.Eq=e,this.g("linkDisconnected",t,e))}},linkValidation:{get:function(){return null!==this.Ba?this.Ba.gj:null},set:function(e){var t=this.linkValidation;t!==e&&(Yu(this),this.Ba.gj=e,this.g("linkValidation",t,e))}},isLinkLabel:{get:function(){return null!==this.Yk}},labeledLink:{get:function(){return this.Yk},set:function(e){var t=this.Yk;if(t!==e){var n=this.diagram,i=this.data;if(null!==t){if(null!==t.wd&&(t.wd.remove(this),t.v()),null!==n&&null!==i&&!n.undoManager.isUndoingRedoing){var r=t.data,o=n.model;if(null!==r&&o.ri()){var a=o.wa(i);void 0!==a&&o.Qx(r,a)}}this.containingGroup=null}this.Yk=e,null!==e&&(kh(e,this),null===n||null===i||n.undoManager.isUndoingRedoing||(r=e.data,n=n.model,null!==r&&n.ri()&&(void 0!==(i=n.wa(i))&&n.Bu(r,i))),this.containingGroup=e.containingGroup),Ua(this),this.g("labeledLink",t,e)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return null===this.wc&&oh(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return 0!=(1&this.U)},set:function(e){var t=0!=(1&this.U);if(t!==e){this.U^=1;var n=this.diagram;if(this.g("isTreeExpanded",t,e),null!==(t=this.treeExpandedChanged)){var i=!0;null!==n&&(i=n.aa,n.aa=!0),t(this),null!==n&&(n.aa=i)}null!==n&&n.undoManager.isUndoingRedoing?this.Zb(e):e?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return 0!=(2&this.U)},set:function(e){var t=0!=(2&this.U);t!==e&&(this.U^=2,this.g("wasTreeExpanded",t,e))}},treeExpandedChanged:{get:function(){return null!==this.Ba?this.Ba.Vr:null},set:function(e){var t=this.treeExpandedChanged;t!==e&&(Yu(this),this.Ba.Vr=e,this.g("treeExpandedChanged",t,e))}},isTreeLeaf:{get:function(){return 0!=(4&this.U)},set:function(e){var t=0!=(4&this.U);t!==e&&(this.U^=4,this.g("isTreeLeaf",t,e))}}}),qu.prototype.expandTree=qu.prototype.expandTree,qu.prototype.collapseTree=qu.prototype.collapseTree,qu.prototype.findTreeParts=qu.prototype.wz,qu.prototype.findTreeChildrenNodes=qu.prototype.Ou,qu.prototype.findTreeChildrenLinks=qu.prototype.Qo,qu.prototype.findTreeLevel=qu.prototype.uz,qu.prototype.findTreeParentChain=qu.prototype.vz,qu.prototype.findTreeParentNode=qu.prototype.pg,qu.prototype.findTreeParentLink=qu.prototype.kh,qu.prototype.findCommonTreeParent=qu.prototype.gz,qu.prototype.findTreeRoot=qu.prototype.xz,qu.prototype.isInTreeOf=qu.prototype.Nz,qu.prototype.findPort=qu.prototype.ns,qu.prototype.findLinksTo=qu.prototype.kz,qu.prototype.findLinksBetween=qu.prototype.jz,qu.prototype.findNodesInto=qu.prototype.Oo,qu.prototype.findNodesOutOf=qu.prototype.Po,qu.prototype.findNodesConnected=qu.prototype.Mu,qu.prototype.findLinksInto=qu.prototype.Sd,qu.prototype.findLinksOutOf=qu.prototype.Mo,qu.prototype.findExternalTreeLinksConnected=qu.prototype.qx,qu.prototype.invalidateConnectedLinks=qu.prototype.Bd,qu.prototype.invalidateLinkBundle=qu.prototype.Lz;var dh=new j(qu,"SpreadingNone",10),ph=new j(qu,"SpreadingEvenly",11),fh=new j(qu,"SpreadingPacked",12);function gh(e,t){void 0===e||e instanceof hl||"string"==typeof e?qu.call(this,e):(qu.call(this),e&&(t=e)),this.U|=4608,this.Gn=new Q,this.$a=null,this.Sc=new Td,this.Sc.group=this,this.gl=new Q,this.tb=this.$p=null,t&&Object.assign(this,t)}function mh(e,t){if(e.Gn.add(t)){t instanceof gh&&e.gl.add(t);var n=e.memberAdded;if(null!==n){var i=!0,r=e.diagram;null!==r&&(i=r.aa,r.aa=!0),n(e,t),null!==r&&(r.aa=i)}e.isVisible()&&e.isSubGraphExpanded||t.Zb(!1)}t instanceof xh&&!e.computesBoundsIncludingLinks||(null===(t=e.$a)&&(t=e),t.v())}function vh(e,t){if(e.Gn.remove(t)){t instanceof gh&&e.gl.remove(t);var n=e.memberRemoved;if(null!==n){var i=!0,r=e.diagram;null!==r&&(i=r.aa,r.aa=!0),n(e,t),null!==r&&(r.aa=i)}e.isVisible()&&e.isSubGraphExpanded||t.Zb(!0)}t instanceof xh&&!e.computesBoundsIncludingLinks||(null===(t=e.$a)&&(t=e),t.v())}function yh(e,t,n,i){for(var r=e.memberParts;r.next();){var o=r.value;if(o.Zb(!1),o instanceof gh&&o.isSubGraphExpanded&&(o.wasSubGraphExpanded=o.isSubGraphExpanded,yh(o,t,n,i)),o instanceof qu)o.Bd(t),n.Aj(o,i);else if(o instanceof xh)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!1}function bh(e,t,n,i){for(var r=e.memberParts;r.next();){var o=r.value;if(o.Zb(!0),o instanceof gh&&o.wasSubGraphExpanded&&(o.wasSubGraphExpanded=!1,bh(o,t,n,i)),o instanceof qu)o.Bd(t),n.Cj(o,i);else if(o instanceof xh)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!0}function wh(e){Na.call(this),this.yb=Xe,this.ko=new Ie(NaN,NaN,NaN,NaN),e&&Object.assign(this,e)}function xh(e){Su.call(this,El.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Wh,this.Om=0,this.Qm=Wh,this.Rm=NaN,this.qj=Kh,this.po=.5,this.wd=null,this.Nb=(new Y).freeze(),this.Tg=this.Mg=null,this.ml=new Ie,this.ua=new Kt,this.u=this.o=this.Sf=this.Wf=null,this.su=new fe,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],e&&Object.assign(this,e)}function Sh(e){var t=e.fromNode,n=e.toNode,i=null;if(i=null!==t?null!==n?t.px(n):t.containingGroup:null!==n?n.containingGroup:null,t=i,(n=e.Ah)!==t){null!==n&&vh(n,e),e.Ah=t,null!==t&&mh(t,e);var r=e.containingGroupChanged;if(null!==r){var o=!0,a=e.diagram;null!==a&&(o=a.aa,a.aa=!0),r(e,n,t),null!==a&&(a.aa=o)}!e.fd||e.Lw!==n&&e.Mw!==n||e.bb()}if(e.isLabeledLink)for(e=e.labelNodes;e.next();)e.value.containingGroup=i}function kh(e,t){null===e.wd&&(e.wd=new Q),e.wd.add(t),e.v()}function _h(e,t,n){if(0!==t||0!==n)if(0===e.pointsCount)e.defaultFromPoint&&e.defaultFromPoint.offset(t,n),e.defaultToPoint&&e.defaultToPoint.offset(t,n);else{for(var i=e.fd,r=new Y,o=e.Nb.iterator;o.next();){var a=o.value;r.add(new fe(a.x+t,a.y+n).freeze())}r.freeze(),o=e.Nb,e.Nb=r,a=e.diagram,isNaN(t)||isNaN(n)||null!==a&&a.animationManager.zb?e.v():(e.ke.h(e.ke.x+t,e.ke.y+n),e.pa.h(e.pa.x+t,e.pa.y+n),Ua(e)),i?Ch(e):(e.defaultFromPoint&&(e.defaultFromPoint=e.i(0)),e.defaultToPoint&&(e.defaultToPoint=e.i(e.pointsCount-1))),null!==a&&a.animationManager.zb&&Ji(a.animationManager,e,r),e.g("points",o,r)}}function Ch(e){0===e.Nb.count?e.fd=!1:(e.fd=!0,e.cq=null,e.vt=NaN,e.defaultFromPoint=e.i(0),e.defaultToPoint=e.i(e.pointsCount-1),Fh(e,!1))}function Ph(e,t){return Math.abs(t.x-e.x)>Math.abs(t.y-e.y)?(t.x>=e.x?t.x=e.x+9e9:t.x=e.x-9e9,t.y=e.y):(t.y>=e.y?t.y=e.y+9e9:t.y=e.y-9e9,t.x=e.x),t}function Eh(e,t){var n=t.Zn;return null===n&&((n=new Ed).port=t,n.node=t.part,t.Zn=n),Ld(n,e)}function Mh(e){return e===Je||.5===e.x&&.5===e.y}function Lh(e){return.5===e.x&&.5===e.y?e:rt}function Ah(e){if(null===e.diagram||!e.isAvoiding||!Ao(e.diagram))return!1;var t=e.points.s,n=t.length;if(4>n)return!1;e=To(e.diagram,!0,e.containingGroup,null);for(var i=1;ikd&&gd(t,u,h)!==c-1&&(gd(t,n-s,i)===c-1?(r=180,u=n-s,h=i):gd(t,n+s,i)===c-1?(r=0,u=n+s,h=i):gd(t,n,i-l)===c-1?(r=270,u=n,h=i-l):gd(t,n,i+l)===c-1&&(r=90,u=n,h=i+l));c>kd&&gd(t,u,h)===c-1;)n=u,i=h,0===r?u+=s:90===r?h+=l:180===r?u-=s:h-=l,--c;o?c>kd&&(180===r||0===r?n=Math.floor(n/s)*s+s/2:90!==r&&270!==r||(i=Math.floor(i/l)*l+l/2)):(n=Math.floor(n/s)*s+s/2,i=Math.floor(i/l)*l+l/2),c>kd&&(o=r,a=n,u=i,0===r?(o=90,u+=l):90===r?(o=180,a-=s):180===r?(o=270,u-=l):270===r&&(o=0,a+=s),gd(t,a,u)===c-1?Th(e,t,a,u,o,!1,o):(a=n,u=i,0===r?(o=270,u-=l):90===r?(o=0,a+=s):180===r?(o=90,u+=l):270===r&&(o=180,a-=s),gd(t,a,u)===c-1&&Th(e,t,a,u,o,!1,o))),e.yf(n,i)}function Dh(e,t,n,i){return e=n-e,isNaN(e)||1/0===e||-1/0===e?NaN:(0>e&&(e=-e),t=i-t,isNaN(t)||1/0===t||-1/0===t?NaN:(0>t&&(t=-t),Zt.$(e,0)?t:Zt.$(t,0)?e:Math.sqrt(e*e+t*t)))}function Nh(e,t,n,i){var r=e.pointsCount;if(2>r)return t;if(n){var o=e.i(1);if(n=o.x-i.x,o=o.y-i.y,0===(i=Dh(t.x,t.y,n,o)))return t;r=2===r?.5*i:i,(e=e.computeShortLength(!0))>r&&(e=r),r=e*(o-t.y)/i,t.x+=e*(n-t.x)/i,t.y+=r}else{if(n=(o=e.i(r-2)).x-i.x,o=o.y-i.y,0===(i=Dh(t.x,t.y,n,o)))return t;r=2===r?.5*i:i,(e=e.computeShortLength(!1))>r&&(e=r),r=e*(t.y-o)/i,t.x-=e*(t.x-n)/i,t.y-=r}return t}function Ih(e,t,n,i){for(var r=e.pointsCount,o=t;Zt.$(t.x,o.x)&&Zt.$(t.y,o.y);){if(n>=r)return r-1;o=e.i(n++)}if(!Zt.$(t.x,o.x)&&!Zt.$(t.y,o.y))return n-1;for(var a=o;Zt.$(t.x,o.x)&&Zt.$(o.x,a.x)&&(!i||(t.y>=o.y?o.y>=a.y:o.y<=a.y))||Zt.$(t.y,o.y)&&Zt.$(o.y,a.y)&&(!i||(t.x>=o.x?o.x>=a.x:o.x<=a.x));){if(n>=r)return r-1;a=e.i(n++)}return n-2}function Bh(e,t,n,i,r,o,a){if(!a&&Oh(e)){var s=(a=e.computeJumpLength())/2,l=[],c=0;if(e.isVisible()&&(c=function(e,t,n,i){var r=e.diagram;if(null===r||t.D(n))return 0;for(r=r.layers;r.next();){var o=r.value;if(null!==o&&o.visible)for(var a=(o=o.Pa.s).length,s=0;sh-a;)c--,h=Math.max(u-s,o.x);u=o.y-a+i,h+=n,p=o.y+i,e.curve===Yh?pu(t,h,p,!1):gu(t,d,u,h,u,h,p)}else if(Zt.B(r.x,o.x))if(r.yu-a;)c--,u=Math.max(h-s,o.y);h=o.x-a+n,p=o.x+n,u+=i,e.curve===Yh?pu(t,p,u,!1):gu(t,h,d,h,u,p,u)}}t.lineTo(o.x+n,o.y+i)}function Rh(e,t,n,i){for(var r=Zt.B(e.y,t.y),o=i.pointsCount,a=i.i(0),s=fe.alloc(),l=1;la.x&&u.x>=c.x||c.xa.y&&u.y>=c.y||c.ya&&Math.min(f,g)u&&!Zt.B(f,g)){s.x=u,s.y=a,u=!0;break e}}else if(Zt.B(h,p)&&Zt.B(f,g)&&Math.min(u,d)f&&Math.min(a,m)h&&!Zt.B(a,m)){s.x=f,s.y=h,u=!0;break e}s.x=0,s.y=0,u=!1}u&&(r?n.push(s.x):n.push(s.y)),a=c}fe.free(s)}function Oh(e){return(e=e.curve)===Xh||e===Yh}function Fh(e,t){(t||Oh(e))&&(null===(t=e.diagram)||t.animationManager.isTicking||t.Eh.contains(e)||0===e.ml.width&&0===e.ml.height||t.Eh.add(e,e.ml.copy()))}function zh(e,t,n){if(null!==t&&t.lk&&t.fd&&Oh(t)){var i=t.routeBounds;i.w()&&(e.routeBounds.Yc(i)||n.Yc(i))&&(e.usesSamePort(t)||t.qc())}}function jh(e){var t=e.ef;if(null!==t){var n=e.uf;if(null!==n&&isNaN(e.curviness)){for(var i=e.ff,r=e.vf,o=e=null,a=t.jb.s,s=a.length,l=0;lr&&(r=s.right),s.bottom>o&&(o=s.bottom)}}return isFinite(n)&&isFinite(i)?e.h(n,i,r-n,o-i):(t=t.location,e.h(t.x,t.y,0,0)),e},d.Object.defineProperties(wh.prototype,{padding:{get:function(){return this.yb},set:function(e){"number"==typeof e&&(e=new We(e));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.g("padding",t,e),this.v())}}}),wh.className="Placeholder",h(xh,Su),xh.prototype.cloneProtected=function(e){Su.prototype.cloneProtected.call(this,e),e.Qa=-113&this.Qa,e.ff=this.ff,e.gn=this.gn,e.vf=this.vf,e.uo=this.uo,e.qk=this.qk,e.Om=this.Om,e.Qm=this.Qm,e.Rm=this.Rm,e.qj=this.qj,e.po=this.po,null!==this.ba&&(e.ba=this.ba.copy())},(t=xh.prototype).Af=function(e){Su.prototype.Af.call(this,e),this.ff=e.ff,this.vf=e.vf,e.Mg=null,e.bb(),e.Sf=this.Sf;var t=e.fromPort;null!==t&&eh(t),null!==(e=e.toPort)&&eh(e)},t.qb=function(e){e.classType===xh?2==(2&e.value)?this.routing=e:e===qh||e===Yh||e===Xh?this.curve=e:e===Qh||e===Jh||e===ed?this.adjusting=e:e!==Kh&&e!==Wh&&x("Unknown Link enum value for a Link property: "+e):Su.prototype.qb.call(this,e)},t.Xc=function(){null===this.ba&&(this.ba=new fs)},t.si=function(){var e=this.fromNode;if(null!==e){var t=e.findVisibleNode();if(null!==t&&(e=t),is(e)||Ru(e))return!1}return null===(e=this.toNode)||(null!==(t=e.findVisibleNode())&&(e=t),!is(e)&&!Ru(e))},t.zv=function(){return!1},t.Av=function(){},t.Zc=function(){return!1},xh.prototype.computeAngle=function(e,t,n){return xh.computeAngle(t,n)},xh.computeAngle=function(e,t){switch(e){default:case Wh:e=0;break;case td:e=t;break;case nd:e=t+90;break;case id:e=t-90;break;case rd:e=t+180;break;case od:90<(e=Zt.bp(t))&&270>e&&(e-=180);break;case ad:90<(e=Zt.bp(t+90))&&270>e&&(e-=180);break;case sd:90<(e=Zt.bp(t-90))&&270>e&&(e-=180);break;case ld:if(45<(e=Zt.bp(t))&&135>e||225e)return 0;90e&&(e-=180)}return Zt.bp(e)},(t=xh.prototype).oh=function(){var e=this.containingGroup;null!==e&&this.fromNode!==e&&this.toNode!==e&&e.computesBoundsIncludingLinks&&Su.prototype.oh.call(this)},t.To=function(e){var t=this.fromNode;return e===t?this.toNode:t},t.Cz=function(e){var t=this.fromPort;return e===t?this.toPort:t},t.Vo=function(e){if(Su.prototype.Vo.call(this,e),Oh(this)&&this.Xo(this.actualBounds),!e){var t=null;null!==(e=this.ef)&&nh(e,this,t=this.fromPort);var n=this.uf;if(null!==n){var i=this.toPort;n===e&&i===t||nh(n,this,i)}jh(this)}},t.Wo=function(e){if(Su.prototype.Wo.call(this,e),Oh(this)&&this.Xo(this.actualBounds),!e){var t=null;null!==(e=this.ef)&&ih(e,this,t=this.fromPort);var n=this.uf;if(null!==n){var i=this.toPort;n===e&&i===t||ih(n,this,i)}$h(this)}},t.Lj=function(){if(this.fd=!0,null!==this.wd){var e=this.diagram;if(null!==e)for(var t=this.wd.copy().iterator;t.next();)e.remove(t.value)}null!==this.data&&(null!==(e=this.diagram)&&e.partManager.removeDataForLink(this))},xh.prototype.updateRelationshipsFromData=function(){if(null!==this.data){var e=this.diagram;null!==e&&e.partManager.updateRelationshipsFromData(this)}},xh.prototype.move=function(e,t){var n=t?this.location:this.position,i=n.x;isNaN(i)&&(i=0);var r=n.y;for(isNaN(r)&&(r=0),i=e.x-i,r=e.y-r,!0===t?Su.prototype.move.call(this,e,!1):(e=fe.allocAt(n.x+i,n.y+r),Su.prototype.move.call(this,e,!1),fe.free(e)),_h(this,i,r),e=this.labelNodes;e.next();)n=(t=e.value).position,t.moveTo(n.x+i,n.y+r)},xh.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var e=this.layer;return null===e||!!e.allowRelink&&!(null!==(e=e.diagram)&&!e.allowRelink)},xh.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var e=this.layer;return null===e||!!e.allowRelink&&!(null!==(e=e.diagram)&&!e.allowRelink)},xh.prototype.computeMidPoint=function(e){var t=this.pointsCount;if(0===t)return e.assign(ae),e;if(1===t)return e.assign(this.i(0)),e;if(2===t){var n=this.i(0),i=this.i(1);return e.h((n.x+i.x)/2,(n.y+i.y)/2),e}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===qh))return this.ua.Pu(.5,e),e.add(this.i(0)),n=this.ua.figures.first(),e.offset(-n.startX,-n.startY),e;if(this.computeCurve()===qh){if(3===t){n=this.i(0),i=this.i(1);var r=this.i(2);return Zt.ax(n.x,n.y,i.x,i.y,i.x,i.y,r.x,r.y,e),e}if(n=3*((i=(t-1)/3|0)/2|0),1==i%2){i=this.i(n),r=this.i(n+1);var o=this.i(n+2);n=this.i(n+3),Zt.ax(i.x,i.y,r.x,r.y,o.x,o.y,n.x,n.y,e)}else e.assign(this.i(n));return e}var a=this.flattenedLengths;for(n=this.flattenedTotalLength,r=o=i=0;in/2);)i+=r,o++;return t=this.i(o),o=this.i(o+1),1>Math.abs(t.x-o.x)?t.y>o.y?e.h(t.x,t.y-(n/2-i)):e.h(t.x,t.y+(n/2-i)):1>Math.abs(t.y-o.y)?t.x>o.x?e.h(t.x-(n/2-i),t.y):e.h(t.x+(n/2-i),t.y):(n=(n/2-i)/r,e.h(t.x+n*(o.x-t.x),t.y+n*(o.y-t.y))),e},xh.prototype.computeMidAngle=function(){var e=this.pointsCount;if(2>e)return NaN;if(2===e)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===qh))return this.ua.wx(.5);if(this.computeCurve()===qh&&4<=e){var t=(e-1)/3|0,n=3*(t/2|0);if(1==t%2){n=Math.floor(n),e=this.i(n),t=this.i(n+1);var i=this.i(n+2);return n=this.i(n+3),Zt.My(e.x,e.y,t.x,t.y,i.x,i.y,n.x,n.y)}if(0i/2);)o+=r,n++;if(t=this.i(n),i=this.i(n+1),1>Math.abs(t.x-i.x)&&1>Math.abs(t.y-i.y)){if(0Math.abs(t.x-i.x))return t.y>i.y?270:90;if(1>Math.abs(t.y-i.y))return t.x>i.x?180:0}return t.ab(i)},(t=xh.prototype).i=function(e){return this.Nb.s[e]},t.dd=function(e,t){this.Nb.cd(e,t)},t.L=function(e,t,n){this.Nb.cd(e,new fe(t,n))},t.Kz=function(e,t){this.Nb.Gb(e,t)},t.m=function(e,t,n){this.Nb.Gb(e,new fe(t,n))},t.ne=function(e){this.Nb.add(e)},t.yf=function(e,t){this.Nb.add(new fe(e,t))},t.pv=function(e){this.Nb.mb(e)},t.Fj=function(){this.Nb.clear()},t.uh=function(){null===this.Mg&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},t.zf=function(){if(null!==this.Mg){for(var e=this.Mg,t=this.Nb,n=1/0,i=1/0,r=e.s,o=r.length,a=0;ac&&(h=-h),m=u*((g=(0>l?-1:1)*h+p)-p)+f);var v=p=o.x+2*s/3,y=f=o.y+2*l/3;Zt.B(l,0)?y=0l?-1:1)*h+p)-p)+f,this.Fj(),this.ne(o),this.yf(g,m),this.yf(v,y),this.ne(d),this.dd(0,this.getLinkPoint(e,t,a,!0,!1,i,r)),this.dd(3,this.getLinkPoint(i,r,n,!1,!1,e,t))}else o=i,d=r,i=this.getLinkPoint(e,t,a,!0,!1,o,d),r=this.getLinkPoint(o,d,n,!1,!1,e,t),this.hasCurviness()?(d=r.x-i.x,n=r.y-i.y,a=this.computeCurviness(),o=e=i.x+d/2,s=t=i.y+n/2,Zt.B(n,0)?s=0a&&(o=-o),s=d*((o=(0>n?-1:1)*o+e)-e)+t),this.ne(i),this.yf(o,s),this.ne(r)):(this.ne(i),this.ne(r),s=Ie.alloc(),t.mi(s),l=s.ca(r),d.mi(s),c=s.ca(i),(l||c)&&(a=t.ga(Lh(a),new fe),this.dd(0,this.getLinkPointFromPoint(e,t,a,r,!0,a)),n=d.ga(Lh(n),new fe),this.dd(1,this.getLinkPointFromPoint(o,d,n,i,!1,n))),Ie.free(s))}else{h=this.isAvoiding,d&&(u&&h||c)&&this.Fj();var b=c?this.computeCurviness():0;h=this.getLinkPoint(e,t,a,!0,u,i,r),p=g=f=0,(u||!s||c)&&(m=this.computeEndSegmentLength(e,t,a,!0),p=this.getLinkDirection(e,t,h,a,!0,u,i,r),c&&(s||a.D(n)||!u&&1===a.x+n.x&&1===a.y+n.y)&&(p-=u?90:30,0>b&&(p-=180)),0>p?p+=360:360<=p&&(p-=360),c&&(m+=Math.abs(b)*(u?1:2)),0===p?f=m:90===p?g=m:180===p?f=-m:270===p?g=-m:(f=m*Math.cos(p*Math.PI/180),g=m*Math.sin(p*Math.PI/180)),a.Mc()&&c&&(m=t.ga(rt,fe.alloc()),v=fe.allocAt(m.x+1e3*f,m.y+1e3*g),this.getLinkPointFromPoint(e,t,m,v,!0,h),fe.free(m),fe.free(v))),m=this.getLinkPoint(i,r,n,!1,u,e,t);var w=y=v=0;if(u||!l||c){var x=this.computeEndSegmentLength(i,r,n,!1);w=this.getLinkDirection(i,r,m,n,!1,u,e,t),c&&(l||a.D(n)||!u&&1===a.x+n.x&&1===a.y+n.y)&&(w+=u?0:30,0>b&&(w+=180)),0>w?w+=360:360<=w&&(w-=360),c&&(x+=Math.abs(b)*(u?1:2)),0===w?v=x:90===w?y=x:180===w?v=-x:270===w?y=-x:(v=x*Math.cos(w*Math.PI/180),y=x*Math.sin(w*Math.PI/180)),n.Mc()&&c&&(n=r.ga(rt,fe.alloc()),a=fe.allocAt(n.x+1e3*v,n.y+1e3*y),this.getLinkPointFromPoint(i,r,n,a,!1,m),fe.free(n),fe.free(a))}n=h,(u||!s||c)&&(n=new fe(h.x+f,h.y+g)),a=m,(u||!l||c)&&(a=new fe(m.x+v,m.y+y)),!d&&!u&&s&&3=u.y&&e.y<=u.y+u.height?s.y=e.y:(n.Hf(ct)||n.Hf(dt))&&e.x>=u.x&&e.x<=u.x+u.width&&(s.x=e.x),fe.free(l),fe.free(c)}}return s}}return n=t.ga(Lh(n),fe.alloc()),this.pointsCount>(r?6:2)?(a=i?this.i(1):this.i(this.pointsCount-2),r&&(a=Ph(n,a.copy()))):(l=this.computeSpot(!i,a),o=fe.alloc(),a=a.ga(Lh(l),o),r&&(a=Ph(n,a)),fe.free(o)),this.getLinkPointFromPoint(e,t,n,a,i,s),fe.free(n),s},xh.prototype.getLinkDirection=function(e,t,n,i,r,o,a,s){e:if(i.sb())var l=i.x>i.y?i.x>1-i.y?0:i.x<1-i.y?270:315:i.x1-i.y?90:i.x<1-i.y?180:135:.5>i.x?225:.5(o?6:2)?(s=r?this.i(1):this.i(this.pointsCount-2),s=o?Ph(l,s.copy()):n):(n=fe.alloc(),s=s.ga(rt,n),fe.free(n)),n=Math.abs(s.x-l.x)>Math.abs(s.y-l.y)?s.x>=l.x?0:180:s.y>=l.y?90:270,fe.free(l),l=n}return i.Mc()&&a.Td(e)&&(360<=(l+=180)&&(l-=360)),Mh(i)||0===(e=t.li())||(45<=e&&135>e?l+=90:135<=e&&225>e?l+=180:225<=e&&315>e&&(l+=270),360<=l&&(l-=360)),l},xh.prototype.computeEndSegmentLength=function(e,t,n,i){return null!==t&&n.$c()&&null!==(e=Eh(this,t))?e.Ju:(e=i?this.fromEndSegmentLength:this.toEndSegmentLength,null!==t&&isNaN(e)&&(e=i?t.fromEndSegmentLength:t.toEndSegmentLength),isNaN(e)&&(e=10),e)},xh.prototype.computeSpot=function(e,t){return void 0===t&&(t=null),e?null===(e=t||this.fromPort)?e=rt:((t=this.fromSpot).Xb()&&(t=e.fromSpot),e=t===_t?Je:t):null===(e=t||this.toPort)?e=rt:((t=this.toSpot).Xb()&&(t=e.toSpot),e=t===_t?Je:t),e},xh.prototype.computeOtherPoint=function(e,t){return this.computeAdjusting()!==Wh&&4d.width||h.y>d.height||0>h.x+h.width||0>h.y+h.height)){if((h=$t.alloc()).set(a),u instanceof El)s=u.Cf(e,t,n,i,r,h);else if(this.path===u){if(u instanceof fc)if(s=e,d=i,!1===u.pickable)s=!1;else if(h.multiply(u.transform),d)e:{var p=s,f=h;if(u.fh(p,f))s=!0;else{if(void 0===f&&(f=u.transform,p.Re(u.actualBounds))){s=!0;break e}s=p.left,d=p.right;var g=p.top;p=p.bottom;var m=fe.alloc(),v=fe.alloc(),y=fe.alloc(),b=$t.alloc();b.set(f),b.bv(u.transform),b.Vj(),v.x=d,v.y=g,v.transform(b),m.x=s,m.y=g,m.transform(b),f=!1,wc(u,m,v,y)?f=!0:(m.x=d,m.y=p,m.transform(b),wc(u,m,v,y)?f=!0:(v.x=s,v.y=p,v.transform(b),wc(u,m,v,y)?f=!0:(m.x=s,m.y=g,m.transform(b),wc(u,m,v,y)&&(f=!0)))),$t.free(b),fe.free(m),fe.free(v),fe.free(y),s=f}}else s=u.fh(s,h)}else s=Ra(u,e,i,h);s&&(d=u,null!==t&&(d=t(u)),d&&(null===n||n(d))&&r.add(d)),$t.free(h)}}}return void 0===o&&$t.free(a),s||null!==this.background||null!==this.areaBackground}return void 0===o&&$t.free(a),!1},xh.prototype.computeCurve=function(){if(null===this.Wf){var e=this.fromPort,t=this.isOrthogonal;this.Wf=null!==e&&e===this.toPort&&!t}return this.Wf?qh:this.curve},xh.prototype.computeCorner=function(){if(this.curve===qh)return 0;var e=this.corner;return(isNaN(e)||0>e)&&(e=10),e},xh.prototype.findMidLabel=function(){for(var e=this.path,t=this.O.s,n=t.length,i=0;il?-Math.PI/2:Math.PI/2;else u=Math.atan(l/Math.abs(s)),0>s&&(u=Math.PI-u);a=t.x;var h=t.y;s=i.x-a;var d=i.y-h;for(l=Math.sqrt(s*s+d*d),Zt.$(s,0)?d=0>d?-Math.PI/2:Math.PI/2:(d=Math.atan(d/Math.abs(s)),0>s&&(d=Math.PI-d)),c=l/c,u=d-u,this.dd(e,t),e+=1;el?-Math.PI/2:Math.PI/2:(l=Math.atan(l/Math.abs(s)),0>s&&(l=Math.PI-l)),s=l+u,t*=c,this.L(e,a+t*Math.cos(s),h+t*Math.sin(s)));this.dd(n,i)}}return!0;case ed:if(o=this.i(e),h=this.i(n),!o.Xa(t)||!h.Xa(i)){r=o.x,o=o.y,c=((a=h.x)-r)*(a-r)+((h=h.y)-o)*(h-o),s=t.x,u=t.y,l=i.x,d=i.y;var p=1;if(0!=l-s){var f=(d-u)/(l-s);p=Math.sqrt(1+1/(f*f))}else f=9e9;for(this.dd(e,t),e+=1;et?t+=360:360<=t&&(t-=360),0>i?i+=360:360<=i&&(i-=360);var a=i;t=315<=t||45>t?0:45<=t&&135>t?90:135<=t&&225>t?180:270,i=315<=i||45>i?0:45<=i&&135>i?90:135<=i&&225>i?180:270;var s=r.actualBounds.copy(),l=o.actualBounds.copy();if(s.w()&&l.w()){s.Bc(hd,hd),l.Bc(hd,hd),s.Ye(e),l.Ye(n);var c=fe.alloc(),u=fe.alloc();0===t?n.x>e.x||270===i&&n.ye.x||90===i&&n.y>e.y&&l.right>e.x?(c.h(n.x,e.y),u.h(n.x,(e.y+n.y)/2),180===i?(c.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1),u.x=c.x,u.y=n.y):270===i&&n.ye.y?(c.x=e.xl.bottom)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):l.right,u.x=c.x,u.y=n.y):0===i&&e.xl.top&&e.ys.bottom)&&(180===i&&(l.ca(e)||s.ca(n))?c.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):n.ye.y&&(180===i||270===i)&&(c.y=this.computeMidOrthoPosition(e.x,s.bottom,n.x,Math.min(n.y,l.top),!0)),u.x=n.x,u.y=c.y),c.y>s.top&&c.y=s.left&&n.x<=e.x||e.x<=l.right&&e.x>=n.x?90!==i&&270!==i||(c.h(Math.max((e.x+n.x)/2,e.x),e.y),u.h(c.x,n.y)):(c.y=270===i||(0===i||180===i)&&n.ye.y&&l.lefte.y?(c.x=e.x>l.right?this.computeMidOrthoPosition(e.x,e.y,l.right,n.y,!1):e.x>l.left&&(270===i&&e.yl.bottom)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):l.left,u.x=c.x,u.y=n.y):180===i&&e.x>l.right&&e.y>l.top&&e.ys.bottom)&&(0===i&&(l.ca(e)||s.ca(n))?c.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):n.ye.y&&(0===i||270===i)&&(c.y=this.computeMidOrthoPosition(e.x,s.bottom,n.x,Math.min(n.y,l.top),!0)),u.x=n.x,u.y=c.y),c.y>s.top&&c.y=e.x||e.x>=l.left&&e.x<=n.x?90!==i&&270!==i||(c.h(Math.min((e.x+n.x)/2,e.x),e.y),u.h(c.x,n.y)):(c.y=270===i||(0===i||180===i)&&n.ye.y||180===i&&n.xe.y||0===i&&n.x>e.x&&l.bottom>e.y?(c.h(e.x,n.y),u.h((e.x+n.x)/2,n.y),270===i?(c.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0),u.x=n.x,u.y=c.y):180===i&&n.xe.x?(c.y=e.yl.right)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):l.bottom,u.x=n.x,u.y=c.y):90===i&&e.yl.left&&e.xs.right)&&(270===i&&(l.ca(e)||s.ca(n))?c.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):n.xe.x&&(270===i||180===i)&&(c.x=this.computeMidOrthoPosition(s.right,e.y,Math.min(n.x,l.left),n.y,!1)),u.x=c.x,u.y=n.y),c.x>s.left&&c.x=s.top&&n.y<=e.y||e.y<=l.bottom&&e.y>=n.y?0!==i&&180!==i||(c.h(e.x,Math.max((e.y+n.y)/2,e.y)),u.h(n.x,c.y)):(c.x=180===i||(90===i||270===i)&&n.xe.x&&l.top=e.x?(c.y=e.y>l.bottom?this.computeMidOrthoPosition(e.x,e.y,n.x,l.bottom,!0):e.y>l.top&&(180===i&&e.xl.right)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):l.top,u.x=n.x,u.y=c.y):270===i&&e.y>l.bottom&&e.x>l.left&&e.xs.right)&&(90===i&&(l.ca(e)||s.ca(n))?c.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):n.xe.x&&(90===i||180===i)&&(c.x=this.computeMidOrthoPosition(s.right,e.y,Math.min(n.x,l.left),n.y,!1)),u.x=c.x,u.y=n.y),c.x>s.left&&c.x=e.y||e.y>=l.top&&e.y<=n.y?0!==i&&180!==i||(c.h(e.x,Math.min((e.y+n.y)/2,e.y)),u.h(n.x,c.y)):(c.x=180===i||(90===i||270===i)&&n.x=_d&&(md(p),s.Bc(p.Ho*p.Hx,p.Go*p.Ix),wd(p,e,t,h,i,s,!1),l=gd(p,h.x,h.y)),!p.abort&&l<_d&&gd(p,h.x,h.y)!==Sd?(Th(this,p,h.x,h.y,i,!0,a),s=this.i(2),4>this.pointsCount?(0===t||180===t?(s.x=e.x,s.y=h.y):(s.x=h.x,s.y=e.y),this.L(2,s.x,s.y),this.m(3,s.x,s.y)):(a=this.i(3),0===t||180===t?Zt.B(s.x,a.x)?(s=0===t?Math.max(s.x,e.x):Math.min(s.x,e.x),this.L(2,s,e.y),this.L(3,s,a.y)):Zt.B(s.y,a.y)?(Math.abs(e.y-s.y)<=p.Go/2&&(this.L(2,s.x,e.y),this.L(3,a.x,e.y)),this.m(2,s.x,e.y)):this.L(2,e.x,s.y):90!==t&&270!==t||(Zt.B(s.y,a.y)?(s=90===t?Math.max(s.y,e.y):Math.min(s.y,e.y),this.L(2,e.x,s),this.L(3,a.x,s)):Zt.B(s.x,a.x)?(Math.abs(e.x-s.x)<=p.Ho/2&&(this.L(2,e.x,s.y),this.L(3,e.x,a.y)),this.m(2,e.x,s.y)):this.L(2,s.x,e.y))),null!==n&&(e=this.i(1),a=this.i(2),e.x!==a.x&&e.y!==a.y?0===t||180===t?this.m(2,e.x,a.y):this.m(2,a.x,e.y):0===t||180===t?this.m(2,r.x,n.y):this.m(2,n.x,r.y)),null!==f&&(0===i||180===i?this.yf(o.x,f.y):this.yf(f.x,o.y)),t=!0):t=!1}}}else t=!1;t||(this.ne(c.copy()),this.ne(u.copy())),fe.free(c),fe.free(u)}},xh.prototype.computeMidOrthoPosition=function(e,t,n,i,r){var o=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(o=this.computeCurviness()),r?(t+i)/2+o:(e+n)/2+o},xh.prototype.ez=function(e){var t=e.x;e=e.y;for(var n=this.i(0),i=this.i(1),r=be(t,e,n.x,n.y,i.x,i.y),o=0,a=1;athis.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),null!==(e=this.path)){e.ua=this.ua;for(var t=this.O.s,n=t.length,i=0;i=t&&(i=t-1),l=this.i(i),o.x=Math.min(l.x,o.x),o.y=Math.min(l.y,o.y);i=o.x,l=o.y}else{for(l=0;lm?f>p?(o.x=v-b,o.y=p-b,r.x=v+g,r.y=p+g):(o.x=v-b,o.y=p+b,r.x=v+g,r.y=p-g):f>p?(o.x=v+b,o.y=p-b,r.x=v-g,r.y=p+g):(o.x=v+b,o.y=p+b,r.x=v-g,r.y=p-g)),Zt.$(m,v)&&Zt.$(p,f)&&(p>d?(y>v?(o.x=v-b,o.y=p-b,r.x=v+g):(o.x=v+b,o.y=p-b,r.x=v-g),r.y=p+g):(y>v?(o.x=v-b,o.y=p+b,r.x=v+g):(o.x=v+b,o.y=p+b,r.x=v-g),r.y=p-g)),(Zt.$(m,v)&&Zt.$(v,y)||Zt.$(d,p)&&Zt.$(p,f))&&(m=.5*(m+y),d=.5*(d+f),o.x=m,o.y=d,r.x=m,r.y=d),(1===h||2===h&&Zt.$(a.x,this.i(0).x)&&Zt.$(a.y,this.i(0).y))&&(n.x=.5*(a.x+c.x),n.y=.5*(a.y+c.y)),gu(s,n.x-i,n.y-l,o.x-i,o.y-l,c.x-i,c.y-l),t.set(o),n.set(r),a=c}}c=a.x,a=a.y,u=this.i(this.pointsCount-1),0!==this.computeShortLength(!1)&&(u=Nh(this,u.copy(),!1,ne)),c=.5*(c+u.x),a=.5*(a+u.y),gu(s,r.x-i,r.y-l,c-i,a-l,u.x-i,u.y-l),fe.free(t),fe.free(n),fe.free(o),fe.free(r)}else for(n=3;n=t&&(n=t-1),r=this.i(n-1),a=this.i(n),n===t-1&&0!==this.computeShortLength(!1)&&(a=Nh(this,a.copy(),!1,ne)),gu(s,o.x-i,o.y-l,r.x-i,r.y-l,a.x-i,a.y-l);else{for((o=fe.alloc()).assign(this.i(0)),(r=fe.alloc()).assign(o),a=this.computeCorner(),h=1,c=0;h=t-1){if(o.D(u)){if(0===c)for(h=1;ho.x?d.x-f:d.x+f,y=v.y>d.y?d.y+b:d.y-b,Bh(this,s,h,m,o,v=fe.allocAt(w,x),g),fe.free(v),mu(s,d.x+h,d.y+m,p+h,y+m),o.h(p,y)}else Zt.B(o.x,d.x)&&Zt.B(d.y,v.y)?(f=Math.min(a,Math.abs(d.y-r.y)/2),f=b=Math.min(f,Math.abs(v.x-d.x)/2),Zt.B(b,0)?(Bh(this,s,h,m,o,d,g),o.assign(d)):(p=w=d.x,y=x=d.y,x=d.y>o.y?d.y-f:d.y+f,p=v.x>d.x?d.x+b:d.x-b,Bh(this,s,h,m,o,v=fe.allocAt(w,x),g),fe.free(v),mu(s,d.x+h,d.y+m,p+h,y+m),o.h(p,y))):(Bh(this,s,h,m,o,d,g),o.assign(d));r.assign(u),h=c}fe.free(o)}bu=s}else(s=this.i(1).copy()).x-=i,s.y-=l,0!==this.computeShortLength(!0)&&(r=Nh(this,r,!0,o)),0!==this.computeShortLength(!1)&&(s=Nh(this,s,!1,o)),e.type=Kt.j,e.startX=r.x,e.startY=r.y,e.endX=s.x,e.endY=s.y;return this.lk=!0,e},xh.prototype.computeJumpLength=function(){return 10},xh.prototype.Xo=function(e){var t=this.layer;if(null!==t&&t.visible&&!t.isTemporary){var n=t.diagram;if(null!==n&&!n.animationManager.isTicking){var i=!1;for(n=n.layers;n.next();){var r=n.value;if(r.visible)if(r===t){i=!0;for(var o=!1,a=(r=r.Pa.s).length,s=0;se&&k(e,">= 0",xh,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=e,this.g("fromEndSegmentLength",t,e),this.bb())}},fromShortLength:{get:function(){return null!==this.ba?this.ba.Wi:NaN},set:function(e){var t=this.fromShortLength;t!==e&&(this.Xc(),this.ba.Wi=e,this.qc(),this.g("fromShortLength",t,e))}},toSpot:{get:function(){return null!==this.ba?this.ba.yj:_t},set:function(e){var t=this.toSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.yj=e,this.g("toSpot",t,e),(t.$c()||e.$c())&&null!==this.toNode&&eh(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return null!==this.ba?this.ba.wj:NaN},set:function(e){var t=this.toEndSegmentLength;t!==e&&(0>e&&k(e,">= 0",xh,"toEndSegmentLength"),this.Xc(),this.ba.wj=e,this.g("toEndSegmentLength",t,e),this.bb())}},toShortLength:{get:function(){return null!==this.ba?this.ba.xj:NaN},set:function(e){var t=this.toShortLength;t!==e&&(this.Xc(),this.ba.xj=e,this.qc(),this.g("toShortLength",t,e))}},isLabeledLink:{get:function(){return null!==this.wd&&0=i&&(o=i-1);var s=this.i(o-1),l=this.i(o);Zt.Dl(r.x,r.y,a.x,a.y,s.x,s.y,l.x,l.y,.5,e),t=Math.min(l.x,t),n=Math.min(l.y,n),r=l}else for(r=this.i(0),o=this.i(1),t=Math.min(r.x,o.x),n=Math.min(r.y,o.y),e.h(r.x,r.y,0,0),e.Ye(o),r=2;r(i=r.y-i.y)&&(i=-i):Zt.$(i.y,r.y)?0>(i=r.x-i.x)&&(i=-i):i=Math.sqrt(i.Bf(r)),e.push(i)}}return this.cq}},flattenedTotalLength:{get:function(){var e=this.vt;if(isNaN(e)){for(var t=this.flattenedLengths,n=t.length,i=e=0;ithis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Mh(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var e=this.pointsCount;return 0===e?0:2>=e?e-1:this.isOrthogonal||!Mh(this.computeSpot(!1))?e-2:e-1}},adjusting:{get:function(){return this.qk},set:function(e){var t=this.qk;t!==e&&(this.qk=e,this.g("adjusting",t,e))}},corner:{get:function(){return this.Om},set:function(e){var t=this.Om;t!==e&&(this.Om=e,this.qc(),this.g("corner",t,e))}},curve:{get:function(){return this.Qm},set:function(e){var t=this.Qm;t!==e&&(this.Qm=e,this.bb(),this.qc(),Fh(this,t===Yh||t===Xh||e===Yh||e===Xh),this.g("curve",t,e))}},curviness:{get:function(){return this.Rm},set:function(e){var t=this.Rm;t!==e&&(this.Rm=e,this.bb(),this.qc(),this.g("curviness",t,e))}},routing:{get:function(){return this.qj},set:function(e){var t=this.qj;t!==e&&(this.qj=e,this.Wf=null,this.bb(),Fh(this,2==(2&t.value)||2==(2&e.value)),this.g("routing",t,e))}},smoothness:{get:function(){return this.po},set:function(e){var t=this.po;t!==e&&(this.po=e,this.qc(),this.g("smoothness",t,e))}},key:{get:function(){var e=this.diagram;if(null!==e&&e.model.ri())return e.model.Ac(this.data)}}}),xh.prototype.invalidateOtherJumpOvers=xh.prototype.Xo,xh.prototype.findClosestSegment=xh.prototype.ez,xh.prototype.updateRoute=xh.prototype.vg,xh.prototype.invalidateRoute=xh.prototype.bb,xh.prototype.rollbackRoute=xh.prototype.rv,xh.prototype.commitRoute=xh.prototype.zf,xh.prototype.startRoute=xh.prototype.uh,xh.prototype.clearPoints=xh.prototype.Fj,xh.prototype.removePoint=xh.prototype.pv,xh.prototype.addPointAt=xh.prototype.yf,xh.prototype.addPoint=xh.prototype.ne,xh.prototype.insertPointAt=xh.prototype.m,xh.prototype.insertPoint=xh.prototype.Kz,xh.prototype.setPointAt=xh.prototype.L,xh.prototype.setPoint=xh.prototype.dd,xh.prototype.getPoint=xh.prototype.i,xh.prototype.getOtherPort=xh.prototype.Cz,xh.prototype.getOtherNode=xh.prototype.To;var Hh=null,Zh=null,Kh=new j(xh,"Normal",1),Gh=new j(xh,"Orthogonal",2),Uh=new j(xh,"AvoidsNodes",6),Vh=new j(xh,"AvoidsNodesStraight",7),Wh=new j(xh,"None",0),qh=new j(xh,"Bezier",9),Yh=new j(xh,"JumpGap",10),Xh=new j(xh,"JumpOver",11),Qh=new j(xh,"End",17),Jh=new j(xh,"Scale",18),ed=new j(xh,"Stretch",19),td=new j(xh,"OrientAlong",21),nd=new j(xh,"OrientPlus90",22),id=new j(xh,"OrientMinus90",23),rd=new j(xh,"OrientOpposite",24),od=new j(xh,"OrientUpright",25),ad=new j(xh,"OrientPlus90Upright",26),sd=new j(xh,"OrientMinus90Upright",27),ld=new j(xh,"OrientUpright45",28),cd=16,ud=14,hd=8;function dd(e,t,n,i){J(this),this.Fe=this.qq=!1,this.Ds=e,this.Ox=t,this.cv=n,this.Px=i,this.links=[]}function pd(e){J(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=e.width,this.sc=e.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}function fd(e,t,n){return e.Nd<=t&&t<=e.En&&e.Od<=n&&n<=e.Fn}function gd(e,t,n){return fd(e,t,n)?(t-=e.Nd,t/=e.rc,n-=e.Od,n/=e.sc,e.ac[0|t][0|n]):Cd}function md(e){if(null!==e.ac)for(var t=0;t<=e.di;t++)for(var n=e.ac[t],i=0;i<=e.ei;i++)n[i]>=kd&&(n[i]=Cd)}function vd(e,t,n,i,r,o,a,s,l){if(!(ta||nl)){var c=0|t,u=0|n,h=e.ac[c][u];if(h>=kd&&h<_d)for(r?u+=i:c+=i,h+=1;o<=c&&c<=a&&s<=u&&u<=l&&!(h>=e.ac[c][u]);)e.ac[c][u]=h,h+=1,r?u+=i:c+=i;if(c=r?u:c,r)if(0c;n+=i)vd(e,t,n,1,!r,o,a,s,l),vd(e,t,n,-1,!r,o,a,s,l);else if(0c;t+=i)vd(e,t,n,1,!r,o,a,s,l),vd(e,t,n,-1,!r,o,a,s,l)}}function yd(e,t,n,i,r,o,a,s,l){t|=0,n|=0;var c=Sd,u=kd;for(e.ac[t][n]=u;c===Sd&&t>o&&ts&&no&&ts&&n=Math.abs(s-c)&&1>=Math.abs(l-u))e.abort=!0;else{var h=o.x;i=o.y,t=o.x+o.width;var d=o.y+o.height;h-=e.Nd,h/=e.rc,i-=e.Od,i/=e.sc,t-=e.Nd,t/=e.rc,d-=e.Od,d/=e.sc,o=Math.max(0,Math.min(e.di,0|h)),t=Math.min(e.di,Math.max(0,0|t)),h=Math.max(0,Math.min(e.ei,0|i)),d=Math.min(e.ei,Math.max(0,0|d)),l|=0,c|=0,u|=0;var p=0===n||90===n?1:-1;if(n=90===n||270===n,(i=e.ac)[s|=0][l]===Sd?(yd(e,s,l,p,n,o,t,h,d),yd(e,s,l,1,!n,o,t,h,d),yd(e,s,l,-1,!n,o,t,h,d)):yd(e,s,l,p,n,s,l,s,l),i[c][u]===Sd?(bd(e,c,u,0===r||90===r?1:-1,90===r||270===r,o,t,h,d),bd(e,c,u,1,!(90===r||270===r),o,t,h,d),bd(e,c,u,-1,!(90===r||270===r),o,t,h,d)):bd(e,c,u,p,n,c,u,c,u),n=A(),a&&xd(e,c,u,r,s,l,n))for(n[0]===c&&n[1]===u||(n.unshift(u),n.unshift(c)),n[n.length-2]===s&&n[n.length-1]===l||(n.push(s),n.push(l)),e=kd,r=n[n.length-2],a=n[n.length-1],i[r][a]=e++,o=n.length-4;0<=o;o-=2)for(r=n[o+2],a=n[o+3],t=n[o],c=n[o+1];t>r?r++:ta?a++:cr))break;u--}else{if(!(h>o))break;h--}var d=s[u][h];if(0===d||d===Pd)break;l=u,c=h}for(;;){if(u=i,h=l,d=c,0===i?do&&(u=270,d--):90===i?hr&&(u=180,h--):180===i?do&&(u=270,d--):hr&&(u=180,h--),h=s[h][d],u!==i&&0!==h&&h!==Pd){if(a.push(l),a.push(c),xd(e,l,c,u,r,o,a))return!0;a.pop(),a.pop()}if(s[l][c]=Pd,0===i){if(l===t)return!1;l--}else if(90===i){if(c===n)return!1;c--}else if(180===i){if(l===t)return!1;l++}else{if(c===n)return!1;c++}}}xh.className="Link",xh.Normal=Kh,xh.Orthogonal=Gh,xh.AvoidsNodes=Uh,xh.AvoidsNodesStraight=Vh,xh.None=Wh,xh.Bezier=qh,xh.JumpGap=Yh,xh.JumpOver=Xh,xh.End=Qh,xh.Scale=Jh,xh.Stretch=ed,xh.OrientAlong=td,xh.OrientPlus90=nd,xh.OrientMinus90=id,xh.OrientOpposite=rd,xh.OrientUpright=od,xh.OrientPlus90Upright=ad,xh.OrientMinus90Upright=sd,xh.OrientUpright45=ld,xh.EndSegmentStep=8,xh.CurvinessStart=cd,xh.SpacingMin=ud,xh.OrthoShortCut=hd,dd.prototype.Sl=function(){if(!this.qq){var e=this.links;0=e.width||0>=e.height)){var t=e.y,n=e.x+e.width,i=e.y+e.height;if(this.Nd=Math.floor((e.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((t-this.sc)/this.sc)*this.sc,this.En=Math.ceil((n+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((i+2*this.sc)/this.sc)*this.sc,e=1+(0|Math.ceil((this.En-this.Nd)/this.rc)),t=1+(0|Math.ceil((this.Fn-this.Od)/this.sc)),null===this.ac||this.dithis.En||e+nthis.Fn||t+ie&&(n+=e,e=0),0>t&&(r+=t,t=0),0>n||0>r)return!0;for(i=0|Math.min(e+n-1,this.di),n=0|Math.min(t+r-1,this.ei);e<=i;e++){r=this.ac[e];for(var o=t;o<=n;o++)if(r[o]===Sd)return!1}return!0},d.Object.defineProperties(pd.prototype,{bounds:{get:function(){return new Ie(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(e){0=n?180:0}switch(e=180*Math.atan2(e.height,e.width)/Math.PI,t){case 3:return n>e&&n<=180+e?180:270;case 5:return n>180-e&&n<=360-e?270:0;case 12:return n>e&&n<=180+e?90:0;case 10:return n>180-e&&n<=360-e?180:90;case 7:return 90180+e&&n<=360-e?270:0;case 13:return 180e&&180>=n?90:0;case 14:return n>e&&n<=180-e?90:n>180-e&&270>=n?180:0;case 11:return n>180-e&&n<=180+e?180:n>180+e?270:90}return i&&15!==t&&(0>(n-=15)&&(n+=360)),n>e&&n<180-e?90:n>=180-e&&n<=180+e?180:n>180+e&&n<360-e?270:0}function Ld(e,t){var n=e.pe;if(0===n.length){e:if(!e.ap){n=e.ap,e.ap=!0;var i=null,r=e.node,o=r instanceof gh?r:null;if(null===o||o.isSubGraphExpanded)var a=r.isTreeExpanded?r.findLinksConnected(e.port.portId):r.qx();else{if(!o.actualBounds.w()){e.ap=n;break e}a=(i=o).Lu()}o=e.pe.length=0;var s=e.port.ga(et,fe.alloc()),l=e.port.ga(lt,fe.alloc());for((r=Ie.allocAt(s.x,s.y,0,0)).Ye(l),fe.free(s),fe.free(l),s=fe.allocAt(r.x+r.width/2,r.y+r.height/2),l=e.port.li(),a=a.iterator;a.next();){var c=a.value;if(c.isVisible()&&c.fromPort!==c.toPort){var u=c.fromPort===e.port||null!==c.fromNode&&c.fromNode.Td(i),h=c.computeSpot(u,e.port);if(h.$c()&&null!==(u=u?c.toPort:c.fromPort)){var d=u.part;if(null!==d){var p=d.findVisibleNode();null!==p&&p!==d&&(u=(d=p).port),u=c.computeOtherPoint(d,u),d=s.ab(u),0>(d-=l)?d+=360:360<=d&&(d-=360),0===(h=Md(r,h,d,c.isOrthogonal))?(h=4,180d&&(d+=360)),void 0===(p=e.pe[o])?(p=new Ad(c,d,h),e.pe[o]=p):(p.link=c,p.angle=d,p.Nc=h),p.hv.set(u),o++}}}}for(fe.free(s),e.pe.sort(Ed.prototype.j),l=e.pe.length,i=-1,o=s=0;oMath.abs(g)?(y=Math.abs(g)/d,d=Math.abs(g)):y=1;break;case 2:p>Math.abs(b)?(y=Math.abs(b)/p,p=Math.abs(b)):y=1;break;case 1:h>Math.abs(g)?(y=Math.abs(g)/h,h=Math.abs(g)):y=1;break;default:u>Math.abs(b)?(y=Math.abs(b)/u,u=Math.abs(b)):y=1}v=0}var S=w.Zo;if(i===fh){switch(w=w.link.computeThickness(),w*=y,S.set(x),f){case 8:S.x=x.x+g/2+d/2-v-w/2;break;case 2:S.y=x.y+b/2+p/2-v-w/2;break;case 1:S.x=x.x+g/2-h/2+v+w/2;break;default:S.y=x.y+b/2-u/2+v+w/2}v+=w}else{var k=.5;i===ph&&(k=(w.Uo+1)/(w.Gl+1)),S.x=x.x+g*k,S.y=x.y+b*k}}}for(fe.free(s),fe.free(l),fe.free(a),fe.free(c),x=e.pe,o=0;ot?1:0:1:null!==t?-1:0}function $d(e){J(this),this.nb=e,this.qd=this.kd=this.$k=this.ub=null}function Hd(e){Td.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Ae(NaN,NaN).freeze(),this.tf=new Ae(10,10).freeze(),this.Jb=Gd,this.Rb=Ud,this.nd=Yd,this.hd=Zd,e&&Object.assign(this,e)}function Zd(e,t){return(e=e.text)<(t=t.text)?-1:e>t?1:0}pd.className="PositionArray",Ed.prototype.toString=function(){for(var e=this.pe,t=this.node.toString()+" "+e.length.toString()+":",n=0;nt.Nc?1:e.anglet.angle?1:0},Ed.prototype.computeEndSegmentLength=function(e){var t=e.link,n=t.computeEndSegmentLength(this.node,this.port,Je,t.fromPort===this.port),i=e.Uo;if(0>i)return n;var r=e.Gl;if(1>=r||!t.isOrthogonal)return n;t=e.hv;var o=e.Zo;return 2!==e.Nc&&8!==e.Nc||(i=r-1-i),((e=2===e.Nc||4===e.Nc)?t.y=t-1?(o=0,i=n,r+=a+20,a=0):o++}},Td.prototype.doMinimalNetworkLayout=function(){var e=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var t=this.arrangementOrigin.x,n=t,i=this.arrangementOrigin.y,r=0,o=0,a=this.network.vertexes.iterator;a.next();){var s=a.value.node;if(!(null===s||s instanceof xh)&&(Nd(s),this.rh(s))){var l=s.measuredBounds,c=l.width;l=l.height,s.moveTo(n,i),s instanceof gh&&(s.rh=!1),n+=Math.max(c,50)+20,o=Math.max(o,Math.max(l,50)),r>=e-1?(r=0,n=t,i+=o+20,o=0):r++}}},Td.prototype.rh=function(e){return!(e.location.w()&&!(e instanceof gh&&e.rh))},Td.prototype.ni=function(e,t){var n=this.boundsComputation;return null!==n?(t||(t=new Ie),n(e,this,t)):t?(t.set(e.actualBounds),t):e.actualBounds},Td.prototype.ex=function(e){var t=new Q;return e instanceof Er?(Dd(this,t,e.nodes,!0,null,!0,!0,!0),Dd(this,t,e.links,!0,null,!0,!0,!0),Dd(this,t,e.parts,!0,null,!0,!0,!0)):Dd(this,t,e instanceof gh?e.memberParts:e.iterator,!1,null,!0,!0,!0),t},Td.prototype.initialOrigin=function(e){var t=this.group;if(null!==t){var n=t.position.copy();return(isNaN(n.x)||isNaN(n.y))&&n.set(e),null!==(t=t.placeholder)&&(n=t.ga(et),(isNaN(n.x)||isNaN(n.y))&&n.set(e),e=t.padding,n.x+=e.left,n.y+=e.top),n}return e},d.Object.defineProperties(Td.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},group:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e,null!==e&&(this.H=e.diagram))}},isOngoing:{get:function(){return this.sn},set:function(e){this.sn!==e&&(this.sn=e)}},isInitial:{get:function(){return this.Gh},set:function(e){this.Gh=e,e||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(e){this.yn!==e&&(this.yn=e)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(e){this.vn!==e&&(this.vn=e)}},isRealtime:{get:function(){return this.un},set:function(e){this.un!==e&&(this.un=e)}},isValidLayout:{get:function(){return this.xn},set:function(e){this.xn!==e&&(this.xn=e,e||null!==(e=this.diagram)&&(e.xh=!0))}},network:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e,null!==e&&(e.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(e){this.Em!==e&&(this.Em=e,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(e){this.Am.D(e)||(this.Am.assign(e),this.C())}}}),Td.prototype.collectParts=Td.prototype.ex,Td.prototype.getLayoutBounds=Td.prototype.ni,Td.prototype.invalidateLayout=Td.prototype.C,Td.className="Layout",Id.prototype.clear=function(){if(this.wf)for(var e=this.wf.iterator;e.next();)e.value.clear();if(this.ye)for(e=this.ye.iterator;e.next();)e.value.clear();this.wf=new Q,this.ye=new Q,this.Es=new pe,this.zs=new pe},Id.prototype.toString=function(e){void 0===e&&(e=0);var t="LayoutNetwork"+(null!==this.layout?"("+this.layout.toString()+")":"");if(0>=e)return t;if(t+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1=o&&0>=a&&(o=1),t=this.spacing.width,isFinite(t)||(t=0),n=this.spacing.height,isFinite(n)||(n=0),null!==e&&e.Ea("Layout"),i=[],this.alignment){case Kd:var s=t,l=n,c=Ie.alloc(),u=Math.max(this.cellSize.width,1);if(!isFinite(u))for(var h=u=0;ho-1||0a)&&(i.push(new Ie(0,g,a+s,v)),m=0,f=p,g+=v,v=0),v=Math.max(v,S),d===Vd)w=-w.width;else w=0;if(b.moveTo(f+w,g),d===Vd)f-=x;else f+=x;m++}i.push(new Ie(0,g,a+s,v)),Ie.free(c);break;case Gd:for(l=a,u=o,h=t,d=n,a=Ie.alloc(),p=Math.max(this.cellSize.width,1),o=g=c=0,s=fe.alloc(),f=0;f=c&&(l-=c),c=b=0,x=Math.max(this.cellSize.height,1),w=o=0,S=!0,m=fe.alloc(),k=0;ku-1||0l){for(i.push(new Ie(0,S?y-o:y,l+h,w+o+d)),_=0;_c&&(o.width+=o.x-c,o.x=c);Ie.free(a)}for(s=o=a=r=0;sh)){var g=h+ql(f);f.pc(g,!0),Ql(f,g,h)}}t.isModified=!0}}finally{t.aa=!0}}}}},Qd.prototype.updateAllTargetBindings=function(e){void 0===e&&(e="");for(var t=this.parts.iterator;t.next();)t.value.La(e);for(t=this.nodes.iterator;t.next();)t.value.La(e);for(t=this.links.iterator;t.next();)t.value.La(e)},Qd.prototype.rp=function(){for(var e=this.H.model,t=new Q,n=e.nodeDataArray,i=0;i=i)return"[]";var r=new H;r.add("["),n&&1i)return;L(e.Tc,i)}Pp(e,"nodeDataArray",gn,"nodeDataArray",e,t,null,i,null),e.qp(t)}function Ap(e,t,n){if(void 0!==t){var i=e.Vf.I(t);null===i&&(i=new Q,e.Vf.add(t,i)),i.add(n)}}function Tp(e,t,n){if(void 0!==t){var i=e.Vf.I(t);i instanceof Q&&(null==n?e.Vf.remove(t):(i.remove(n),0===i.count&&e.Vf.remove(t)))}}function Dp(e,t){return void 0===t?null:(e=e.Vf.I(t))instanceof Q?e:null}function Np(e,t,n){if(e.copiesArrays&&Array.isArray(t)){var i=[];for(n=0;nt&&(t=e.length),M(e,t,n),Pp(this,"",fn,"",e,null,n,null,t)},t.ov=function(e,t){void 0===t&&(t=-1),e===this.Tc&&x("Model.removeArrayItem should not be called on the Model.nodeDataArray"),-1===t&&(t=e.length-1);var n=e[t];L(e,t),Pp(this,"",gn,"",e,n,null,t,null)},t.Ro=function(e){if(null===e)return"";var t=this.lj;return""===t||void 0===(t=Op(e,t))?"":"string"==typeof t?t:void x("getCategoryForNodeData found a non-string category for "+e+": "+t)},t.jm=function(e,t){if(null!==e){var n=this.lj;if(""!==n)if(this.lb(e)){var i=Op(e,n);void 0===i&&(i=""),i!==t&&(Fp(e,n,t),Pp(this,"nodeCategory",pn,n,e,i,t))}else Fp(e,n,t)}},t.lm=function(e,t){this.jm(t,this.Ro(e))},t.Tl=function(){return!1},t.Wj=function(){return!1},t.ri=function(){return!1},t.xs=function(){return!1},t.Xj=function(){return!1},d.Object.defineProperties(gp.prototype,{name:{get:function(){return this.xa},set:function(e){var t=this.xa;t!==e&&(this.xa=e,this.g("name",t,e))}},dataFormat:{get:function(){return this.Sm},set:function(e){var t=this.Sm;t!==e&&(this.Sm=e,this.g("dataFormat",t,e))}},isReadOnly:{get:function(){return this.Gg},set:function(e){var t=this.Gg;t!==e&&(this.Gg=e,this.g("isReadOnly",t,e))}},modelData:{get:function(){return this.j},set:function(e){var t=this.j;t!==e&&(this.j=e,this.g("modelData",t,e),this.La(e))}},undoManager:{get:function(){return this.o},set:function(e){var t=this.o;t!==e&&(null!==t&&t.Rx(this),this.o=e,null!==e&&e.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(e){this.Wg=e}},nodeKeyProperty:{get:function(){return this.Th},set:function(e){var t=this.Th;t!==e&&(""===e&&x("Model.nodeKeyProperty may not be the empty string"),0(i=e.md.indexOf(t)))return;e.md.splice(i,1)}if(Pp(e,"linkDataArray",gn,"linkDataArray",e,t,null,i,null),Tp(e,n=Wp(e,t,!0),t),Tp(e,n=Wp(e,t,!1),t),i=e.Ef(t),Array.isArray(i))for(var r=i.length,o=0;oi.indexOf(e.newValue)&&i.splice(n,0,e.newValue)))}else if(e.change===gn){if(n=e.oldParam,"linkDataArray"===e.modelChange)return void(C(e=e.oldValue)&&"number"==typeof n&&(i=this.Ac(e),t?(this.$f.add(e),this.md[n]!==e&&this.md.splice(n,0,e),void 0!==i&&this.wb.add(i,e)):(this.$f.remove(e),this.md[n]===e&&this.md.splice(n,1),void 0!==i&&this.wb.remove(i))));if("linkLabelKeys"===e.modelChange)return i=this.Ef(e.object),void(Array.isArray(i)&&"number"==typeof n&&(t?0>i.indexOf(e.newValue)&&i.splice(n,0,e.newValue):(n=i.indexOf(e.newValue),0<=n&&i.splice(n,1))))}gp.prototype.changeState.call(this,e,t)}},(t=Up.prototype).Vl=function(e){if(void 0!==e){var t=this.Ri;if(null!==t){var n=this.hc(e);null===n&&(Fp(n=this.copyNodeData(t),this.nodeKeyProperty,e),this.xf(n))}return e}},t.yx=function(e){return Wp(this,e,!0)},t.wv=function(e,t){qp(this,e,t,!0)},t.Bx=function(e){return Wp(this,e,!1)},t.Bv=function(e,t){qp(this,e,t,!1)},t.zx=function(e){return Yp(this,e,!0)},t.xv=function(e,t){Xp(this,e,t,!0)},t.Cx=function(e){return Yp(this,e,!1)},t.Cv=function(e,t){Xp(this,e,t,!1)},t.Ef=function(e){if(null===e)return nf;var t=this.je;return""===t||void 0===(e=Op(e,t))?nf:e},t.Ls=function(e,t){if(null!==e){var n=this.je;if(""!==n)if(this.Jc(e)){var i=Op(e,n);if(void 0===i&&(i=nf),i!==t){if(Array.isArray(i))for(var r=i.length,o=0;or||(i.splice(r,1),this.Jc(e)&&(Tp(this,t,e),Pp(this,"linkLabelKeys",gn,n,e,t,null,r,null)))}else void 0!==i&&x(n+" property is not an Array; cannot removeLabelKeyforLinkData: "+e)}}},t.Ac=function(e){if(null!==e){var t=this.Jh;if(""!==t&&void 0!==(t=Op(e,t))){if(Ep(t))return t;x("Key value for link data "+e+" is not a number or a string: "+t)}}},t.Ks=function(e,t){if(null!==e){var n=this.Jh;if(""!==n)if(this.Jc(e)){var i=Op(e,n);i!==t&&null===this.jh(t)&&(Fp(e,n,t),void 0!==i&&this.wb.remove(i),this.wb.add(t,e),Pp(this,"linkKey",pn,n,e,i,t),"string"==typeof n&&this.La(e,n))}else Fp(e,n,t)}},t.jh=function(e){return null===e&&x("GraphLinksModel.findLinkDataForKey:key must not be null"),void 0!==e&&Ep(e)?this.wb.I(e):null},t.Bs=function(e){if(null!==e){var t=this.Jh;if(""!==t){var n=this.Ac(e);if(void 0===n||this.wb.contains(n)){var i=this.cl;if(null!==i&&(null!=(n=i(this,e))&&!this.wb.contains(n)))return void Fp(e,t,n);if("string"==typeof n){for(i=2;this.wb.contains(n+i);)i++;Fp(e,t,n+i)}else if(void 0===n||"number"==typeof n){for(n=-this.wb.count-1;this.wb.contains(n);)n--;Fp(e,t,n)}}}}},t.Jc=function(e){return null!==e&&this.$f.contains(e)},t.fi=function(e){null!==e&&(ee(e),this.Jc(e)||Qp(this,e,!0))},t.Ey=function(e){if(Array.isArray(e))for(var t=e.length,n=0;nn){for(o=i+(r===xf?o:-o);0>o;)o+=360;180<(o%=360)&&(o-=360),o*=Math.PI/180,e.gt=o,hf(e,t,n,i,r)}else uf(e,t,n,i,r);e.Xr.commit(t)}function uf(e,t,n,i,r){var o=e.lc,a=e.Ti,s=e.Zm,l=o*Math.cos(i*Math.PI/180),c=e.me*Math.sin(i*Math.PI/180),u=t.Fa();if(3===u.length)u[0].centerX=o,u[0].centerY=0,u[1].centerX=u[0].centerX-u[0].width/2-u[1].width/2-a,u[1].y=u[0].y,u[2].centerX=(u[0].centerX+u[1].centerX)/2,u[2].y=u[0].y-u[2].height-a;else if(4===u.length)u[0].centerX=o,u[0].centerY=0,u[2].centerX=-u[0].centerX,u[2].centerY=u[0].centerY,u[1].centerX=0,u[1].y=Math.min(u[0].y,u[2].y)-u[1].height-a,u[3].centerX=0,u[3].y=Math.max(u[0].y+u[0].height+a,u[2].y+u[2].height+a);else{o=fe.alloc();for(var h=0;h=u.length-1));h++)df(e,l,c,u,h,r,o)||pf(e,l,c,u,h,r,o),l=o.x,c=o.y;if(fe.free(o),e.mj++,!(23Math.abs(p)?Math.abs(l-o)<(u[0].width+u[u.length-1].width)/2&&(a=0):a=0Math.abs(d)?0:d,l=Math.abs(o)>Math.abs(h)?0h:0e.mj?e.lc-a/(2*Math.PI):5>u.length&&10=h.length-1));d++)df(e,l,c,h,d,r,u)||pf(e,l,c,h,d,r,u),l=u.x,c=u.y;if(fe.free(u),e.mj++,!(23e.mj?e.lc-o/(2*Math.PI):e.lc-(0s){if((o=t-e)<-s)return a.x=o,a.y=c,!1;u=!0}}else if((o=t-e)<-s){if((o=t+e)>s)return a.x=o,a.y=c,!1;u=!0}return c=Math.sqrt(1-Math.min(1,o*o/(s*s)))*l,0>n!==u&&(c=-c),Math.abs(n-c)>(i[r].height+i[r+1].height)/2?(a.x=o,a.y=c,!1):(a.x=o,a.y=c,!0)}function pf(e,t,n,i,r,o,a){var s=e.lc,l=e.me,c=0;if(e=(i[r].height+i[r+1].height)/2+e.Ti,i=!1,0<=t!=(o===xf)){if((o=n-e)<-l){if((o=n+e)>l)return a.x=c,void(a.y=o);i=!0}}else if((o=n+e)>l){if((o=n-e)<-l)return a.x=c,void(a.y=o);i=!0}c=Math.sqrt(1-Math.min(1,o*o/(l*l)))*s,0>t!==i&&(c=-c),a.x=c,a.y=o}function ff(e,t,n,i,r){var o=e.ty;if(.001>Math.abs(e.Zm-1))return void 0!==i&&void 0!==r?r*t:2*Math.PI*t;e=t>n?Math.sqrt(t*t-n*n)/t:Math.sqrt(n*n-t*t)/n;for(var a=0,s=void 0!==i&&void 0!==r?r/(o+1):Math.PI/(2*(o+1)),l=0,c=0;c<=o;c++){l=void 0!==i&&void 0!==r?i+c*r/o:c*Math.PI/(2*o);var u=Math.sin(l);a+=Math.sqrt(1-e*e*u*u)*s}return void 0!==i&&void 0!==r?(t>n?t:n)*a:4*(t>n?t:n)*a}function gf(e,t,n,i,r){return t/(void 0!==i&&void 0!==r?ff(e,1,n,i,r):ff(e,1,n))}function mf(e,t,n,i,r){if(.001>Math.abs(e.Zm-1))return r/t;var o=t>n?Math.sqrt(t*t-n*n)/t:Math.sqrt(n*n-t*t)/n,a=0;e=2*Math.PI/(700*e.network.vertexes.count),t>n&&(i+=Math.PI/2);for(var s=0;;s++){var l=Math.sin(i+s*e);if((a+=(t>n?t:n)*Math.sqrt(1-o*o*l*l)*e)>=r)return s*e}}Up.className="GraphLinksModel",jp.GraphLinksModel=Up,gp.constructGraphLinksModel=gp.constructGraphLinksModel=function(){return new Up},gp.initDiagramModel=Ip=function(){return new Up},h(rf,gp),rf.constructGraphLinksModel=gp.constructGraphLinksModel,rf.prototype.cloneProtected=function(e){gp.prototype.cloneProtected.call(this,e),e.Ke=this.Ke,e.Nm=this.Nm,e.nj=this.nj},(t=rf.prototype).toString=function(e){if(void 0===e&&(e=0),2<=e)return this.np();var t=(""!==this.name?this.name:"")+" TreeModel";if(0=(e=this.network.vertexes).count)1===e.count&&((e=e.first()).centerX=0,e.centerY=0);else{var t=new Y;t.addAll(e.iterator),e=new Y;var n,i,r=new Y,o=this.sort(t),a=this.Jp,s=this.arrangement,l=this.nodeDiameterFormula,c=this.radius;(!isFinite(c)||0>=c)&&(c=NaN);var u=this.aspectRatio;(!isFinite(u)||0>=u)&&(u=1);var h=this.startAngle;isFinite(h)||(h=0);var d=this.sweepAngle;if((!isFinite(d)||360d)&&(d=360),t=this.spacing,isFinite(t)||(t=NaN),s===wf&&l===Tf?s=vf:s===wf&&l!==Tf&&(s=this.arrangement),(this.direction===kf||this.direction===_f)&&this.sorting!==Lf){for(l=0;!(l>=o.length)&&(e.add(o.M(l)),!(l+1>=o.length));l+=2)r.add(o.M(l+1));this.direction===kf?(this.arrangement===wf&&e.reverse(),(o=new Y).addAll(e),o.addAll(r)):(this.arrangement===wf&&r.reverse(),(o=new Y).addAll(r),o.addAll(e))}l=o.length;for(var p=i=n=0;pd&&(0===p||p===o.length-1)&&(g/=2),n+=g,i++}if(isNaN(c)||s===wf){if(isNaN(t)&&(t=6),s!==vf&&s!==wf){for(i=-1/0,a=0;ac?i=(c=n)*u:a=p/(360<=d?l:l-1)}if(this.kw=s,this.lc=c,this.Zm=u,this.lw=h,this.Wp=d,this.Ti=t,this.me=i,this.Jp=a,t=o,o=this.kw,s=this.lc,c=this.lw,u=this.Wp,h=this.Ti,d=this.me,l=this.Jp,this.direction!==kf&&this.direction!==_f||o!==wf)if(this.direction===kf||this.direction===_f){switch(a=0,o){case yf:a=180*mf(this,s,d,c,l)/Math.PI;break;case vf:l=t=0,null!==(a=e.first())&&(t=Bf(a,Math.PI/2)),null!==(a=r.first())&&(l=Bf(a,Math.PI/2)),a=180*mf(this,s,d,c,h+(t+l)/2)/Math.PI;break;case bf:a=u/t.length}if(this.direction===kf){switch(o){case yf:lf(this,e,c,Sf);break;case vf:sf(this,e,c,Sf);break;case bf:af(this,e,u/2,c,Sf)}switch(o){case yf:lf(this,r,c+a,xf);break;case vf:sf(this,r,c+a,xf);break;case bf:af(this,r,u/2,c+a,xf)}}else{switch(o){case yf:lf(this,r,c,Sf);break;case vf:sf(this,r,c,Sf);break;case bf:af(this,r,u/2,c,Sf)}switch(o){case yf:lf(this,e,c+a,xf);break;case vf:sf(this,e,c+a,xf);break;case bf:af(this,e,u/2,c+a,xf)}}}else switch(o){case yf:lf(this,t,c,this.direction);break;case vf:sf(this,t,c,this.direction);break;case bf:af(this,t,u,c,this.direction);break;case wf:cf(this,t,u,c,this.direction)}else cf(this,t,u,c-u/2,xf)}this.updateParts(),this.network=null,this.isValidLayout=!0},of.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},of.prototype.commitNodes=function(){var e=null!==this.group&&null!==this.group.placeholder&&this.group.isSubGraphExpanded,t=e?this.group.location.copy():null,n=this.actualCenter;e?n=new fe(0,0):(n.x=this.arrangementOrigin.x+this.lc,n.y=this.arrangementOrigin.y+this.me);for(var i=this.network.vertexes.iterator;i.next();){var r=i.value;r.x+=n.x,r.y+=n.y,r.commit()}e&&(this.group.Va(),e=this.group.position.copy(),n=this.group.location.copy(),t=t.re(n.re(e)),this.group.move(t),this.Zv=t.re(e))},of.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},of.prototype.sort=function(e){switch(this.sorting){case Cf:break;case Pf:e.reverse();break;case Ef:e.sort(this.comparer);break;case Mf:e.sort(this.comparer),e.reverse();break;case Lf:return this.ak(function(e){for(var t=[],n=0;nr&&(r=s,o=a)}else for(a=0;ar&&(r=s,o=a);for(n.add(e.M(o)),t[o]=-1,a=(o=e.M(o)).sourceEdges;a.next();)0>(r=e.indexOf(a.value.fromVertex))||0<=t[r]&&t[r]++;for(o=o.destinationEdges;o.next();)0>(r=e.indexOf(o.value.toVertex))||0<=t[r]&&t[r]++}return n}(e));default:x("Invalid sorting type.")}return e},of.prototype.ak=function(e){for(var t=[],n=0;nt[n].indexOf(r)&&t[n].push(r);for(i=i.sourceEdges;i.next();)(r=e.indexOf(i.value.fromVertex))!==n&&0>t[n].indexOf(r)&&t[n].push(r)}for(o=[],n=0;nt[n[f]].indexOf(n[f===n.length-1?0:f+1])&&p.push(f===n.length-1?0:f+1);if(0===p.length)for(f=0;fn.indexOf(S)||xn.indexOf(S)||x=g?x+1:x)))=g&&x++,(b=o[s[y]])>=g&&b++,x>b&&(w=b,b=x,x=w),b-x<(n.length+2)/2==(x(p=n.indexOf(t[c][d]))||p===u||(h+=pu?p-u:u-p)>a-f?1:-1);n.splice(0>h?u:u+1,0,l),i.splice(s,1),s--}else o=!1;if(o)break;n.push(i[0]),i.splice(0,1)}for(t=0;t=e?e:360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==wf&&e!==vf&&e!==yf&&e!==bf||(this.Rb=e,this.C())}},direction:{get:function(){return this.K},set:function(e){this.K===e||e!==xf&&e!==Sf&&e!==kf&&e!==_f||(this.K=e,this.C())}},sorting:{get:function(){return this.nd},set:function(e){this.nd===e||e!==Cf&&e!==Pf&&e!==Ef&&!Mf&&e!==Lf||(this.nd=e,this.C())}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e,this.C())}},spacing:{get:function(){return this.tf},set:function(e){this.tf!==e&&(this.tf=e,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(e){this.Nn===e||e!==Af&&e!==Tf||(this.Nn=e,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var vf=new j(of,"ConstantSpacing",0),yf=new j(of,"ConstantDistance",1),bf=new j(of,"ConstantAngle",2),wf=new j(of,"Packed",3),xf=new j(of,"Clockwise",4),Sf=new j(of,"Counterclockwise",5),kf=new j(of,"BidirectionalLeft",6),_f=new j(of,"BidirectionalRight",7),Cf=new j(of,"Forwards",8),Pf=new j(of,"Reverse",9),Ef=new j(of,"Ascending",10),Mf=new j(of,"Descending",11),Lf=new j(of,"Optimized",12),Af=new j(of,"Pythagorean",13),Tf=new j(of,"Circular",14);function Df(){this.Pl=-1/0,this.tm=this.mk=null}function Nf(e){Id.call(this,e)}function If(e){zd.call(this,e),this.u=this.Si=NaN}function Bf(e,t){var n=e.network;if(null===n)return NaN;if(null===(n=n.layout))return NaN;if(n.arrangement===wf)if(n.nodeDiameterFormula===Tf)e.Si=Math.max(e.width,e.height);else{if(n=Math.abs(Math.sin(t)),t=Math.abs(Math.cos(t)),0===n)return e.width;if(0===t)return e.height;e.Si=Math.min(e.height/n,e.width/t)}else e.Si=n.nodeDiameterFormula===Tf?Math.max(e.width,e.height):Math.sqrt(e.width*e.width+e.height*e.height);return e.Si}function Rf(e){$d.call(this,e)}function Of(e){Td.call(this),this.ah=null,this.An=0,this.$d=new Ae(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,e&&Object.assign(this,e)}function Ff(e,t,n){if(function(e,t){if(10e.network.vertexes.count)return!1;for(e.ah=e.network.vertexes.Fa(),(e=e.ah).sort((function(e,t){return null===e||null===t||e===t?0:t.Vd-e.Vd})),t=e.length-1;0<=t&&1>=e[t].Vd;)t--;return 1=(a=r.We.M(r.We.count-1).Rs-r.Vd))){for(var c=s=0,u=l.count-a;u(p=u*h)&&(p=1),a=((s=Zt.sqrt((s+p+c*c*4/(a*a))/p))-1)*u/2,s=(s-1)*h/2,r.bounds=new Ie(o-d.x-a,l-d.y-s,u+2*a,h+2*s),r.focus=new fe(d.x+a,d.y+s)}}return e.network=i,n}(e,t),o=Math.max(0,Math.max(Math.min(e.network.vertexes.count,n*(t+1)/11),10));for(e.maxIterations+=o,Ff(e,t+1,n),Hf(e,o),function(e,t){for(var n=e.network.vertexes.iterator;n.next();){var i=n.value;if(i.network=t,null!==i.We){var r=i.We.M(i.sv);i.Vd=r.Rs;var o=r.Sv,a=r.Tv;i.bounds=new Ie(i.centerX-o,i.centerY-a,r.Ss,r.Qs),i.focus=new fe(o,a),i.sv--}}for(n=e.network.edges.iterator;n.next();)n.value.network=t;e.network=t}(e,r),(t=r.vertexes.Fa()).sort((function(e,t){return null===e||null===t||e===t?0:t.Vd-e.Vd})),n=0;n=h.Vd?l++:(s=!0,c++,a+=Math.atan2(t.centerY-h.centerY,t.centerX-h.centerX))}if(0!==l)for(0>1)+c)*(0==s%2?1:-1),l.centerX=i+u*Math.cos(h),l.centerY=r+u*Math.sin(h),s++}}}function jf(e,t,n,i,r,o,a){var s=9e19,l=-1,c=0;e:for(;cu.y&&e[d].x-u.xu.x&&e[d].y-u.yt+o?(n=i+r-a,e=e-t-o,Zt.sqrt(n*n+e*e)):e+na+s?e>t+o?(n=i-a-s,e=e-t-o,Zt.sqrt(n*n+e*e)):e+nt+o?e-(t+o):e+n=t.length)return!1;var n=t[0];n.forceX=0,n.forceY=0;for(var i=n.centerX,r=i,o=n=n.centerY,a=1;ao-n)?t.sort((function(e,t){return null===e||null===t||e===t?0:e.centerX-t.centerX})):t.sort((function(e,t){return null===e||null===t||e===t?0:e.centerY-t.centerY})),n=e.Zf;var c=i=s=0;for(o=0;on||c-l>n){if(r)break}else if(u-p>n||p-u>n){if(!r)break}else{var f=$f(a,d);1>f?(null===(i=e.randomNumberGenerator)&&(e.randomNumberGenerator=i=new Wf),f=i.random(),s=i.random(),l>c?i=(1+(i=Math.abs(d.bounds.right-a.bounds.x)))*f:lp?c=(1+(c=Math.abs(d.bounds.bottom-a.bounds.y)))*s:l(h=$f(n,o))?(null===(h=e.randomNumberGenerator)&&(e.randomNumberGenerator=h=new Wf),s=h.random(),h=h.random(),i=(i>l?1:-1)*(1+(o.width>n.width?o.width:n.width))*s,c=(a>u?1:-1)*(1+(o.height>n.height?o.height:n.height))*h):(i=(l-i)/h*(s=s.stiffness*(h-s.length)),c=(u-a)/h*s),n.forceX+=i,n.forceY+=c,o.forceX-=i,o.forceY-=c;for(r=i=0;re.epsilonDistance*e.epsilonDistance}function Kf(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}function Gf(e){Id.call(this,e)}function Uf(e){zd.call(this,e),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}function Vf(e){$d.call(this,e),this.j=this.o=NaN}function Wf(){var e=0;void 0===e&&(e=42),this.seed=e,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}function qf(e){Td.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Dg,this.Zk=Bg,this.Qk=Fg,this.bj=4,this.rk=Hg,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new fe,this.He=[],this.He.length=100,this.xw=this.ve=0,e&&Object.assign(this,e)}function Yf(e){var t=e.fromVertex.node||e.fromVertex.data;return e=e.toVertex.node||e.toVertex.data,null===t&&null===e?8:null===t||null===e?4:1}function Xf(e){null===e.kj&&(e.kj=[]);for(var t=0,n=e.network.vertexes.iterator;n.next();){var i=n.value;e.kj[t]=i.layer,t++,e.kj[t]=i.column,t++,e.kj[t]=i.index,t++}return e.kj}function Qf(e,t){var n=0;for(e=e.network.vertexes.iterator;e.next();){var i=e.value;i.layer=t[n],n++,i.column=t[n],n++,i.index=t[n],n++}}function Jf(e,t,n){var i=Ag(e,t),r=e.tc[t];(null===e.Jn||e.Jn.lengtha)for(var h=a+1;hc;h--)(d=i[h]).near===u&&d.Dj===u.Dj||l++;if(0<=n)for(c=i[a].sourceEdgesArrayAccess,u=0;ug||d===g&&p>f)&&l++,md||g===d&&f>p)&&l++}}}if(0>=n)for(c=i[a].destinationEdgesArrayAccess,u=0;ug||d===g&&h>m)&&l++,fd||g===d&&m>h)&&l++);for(o[a*r+a]=l,c=a+1;c=n)for(l=i[a].destinationEdgesArrayAccess,b=i[c].destinationEdgesArrayAccess,u=0;u=n&&(l=s.sourceEdgesArrayAccess);var c=null;0<=n&&(c=s.destinationEdgesArrayAccess);var u=0,h=0,d=s.near;if(null!==d&&d.layer===s.layer&&(u+=d.column-1,h++),null!==l)for(d=0;d=n&&(l=s.sourceEdgesArrayAccess);var c=null;0<=n&&(c=s.destinationEdgesArrayAccess);var u=0,h=[],d=s.near;if(null!==d&&d.layer===s.layer&&(h[u]=d.column-1,u++),s=void 0,null!==l)for(d=0;d>1,o[a]=0!=(1&u)?h[c]:h[c-1]+h[c]>>1)}return Tg(e,t,i),o}function ig(e,t,n,i,r,o){if(t.component===i){if(t.component=n,r)for(var a=t.destinationEdges;a.next();){var s=a.value,l=s.toVertex,c=t.layer-l.layer;c===(s=e.linkMinLength(s))&&ig(e,l,n,i,r,o)}if(o)for(a=t.sourceEdges;a.next();)(c=(l=(s=a.value).fromVertex).layer-t.layer)===(s=e.linkMinLength(s))&&ig(e,l,n,i,r,o)}}function rg(e,t,n,i,r,o){if(t.component===i){if(t.component=n,r)for(var a=t.destinationEdges;a.next();)rg(e,a.value.toVertex,n,i,r,o);if(o)for(t=t.sourceEdges;t.next();)rg(e,t.value.fromVertex,n,i,r,o)}}function og(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid)return t}return null}function ag(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid){for(var n=!0,i=t.destinationEdges;i.next();)if(i.value.toVertex.valid){n=!1;break}if(n)return t}}return null}function sg(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid){for(var n=!0,i=t.sourceEdges;i.next();)if(i.value.fromVertex.valid){n=!1;break}if(n)return t}}return null}function lg(e,t){t.Ll=e.Kn,e.Kn++;for(var n=t.destinationEdges;n.next();){var i=n.value,r=i.toVertex;-1===r.Ll&&(i.forest=!0,lg(e,r))}t.finish=e.Kn,e.Kn++}function cg(e){for(var t=e.network.vertexes.iterator;t.next();){var n=ug(e,t.value);e.Ia=Math.max(n,e.Ia)}}function ug(e,t){var n=0;if(-1===t.layer){for(var i=t.destinationEdges;i.next();){var r=i.value,o=r.toVertex;r=e.linkMinLength(r),n=Math.max(n,ug(e,o)+r)}t.layer=n}else n=t.layer;return n}function hg(e,t){var n=0;if(-1===t.layer){for(var i=t.sourceEdges;i.next();){var r=i.value,o=r.fromVertex;r=e.linkMinLength(r),n=Math.max(n,hg(e,o)+r)}t.layer=n}else n=t.layer;return n}function dg(e,t){if(!t.valid){t.valid=!0;for(var n=t.destinationEdges;n.next();)dg(e,n.value.toVertex);for(n=e.network.vertexes.iterator;n.next();)n.value.component=-1;for(var i=t.sourceEdgesArrayAccess,r=i.length,o=0;oa&&ig(e,s,0,-1,!0,!1)}for(ig(e,t,1,-1,!0,!0);0!==t.component;){for(o=0,i=1/0,s=0,l=null,a=e.network.vertexes.iterator;a.next();){var c=a.value;if(1===c.component){var u=0,h=!1,d=c.sourceEdgesArrayAccess;r=d.length;for(var p=0;po)&&!u&&(s=a,o=c)}if(0>i){for(n.reset();n.next();)1===(i=n.value).component&&(i.layer-=r);t.component=0}else s.component=0}}}function pg(e,t,n){return 90===e.K?n&&!t.rev||!n&&t.rev?270:90:180===e.K?n&&!t.rev||!n&&t.rev?0:180:270===e.K?n&&!t.rev||!n&&t.rev?90:270:n&&!t.rev||!n&&t.rev?180:0}function fg(e,t){var n=t.layer;for(t.index=e.tc[n],e.tc[n]++,t=t.destinationEdgesArrayAccess,n=!0;n;){n=!1;for(var i=0;io.portFromColOffset&&(n=!0,t[i]=o,t[i+1]=r)}}for(n=0;no.portToColOffset&&(i=!0,t[n]=o,t[n+1]=r)}for(n=0;ni+1&&(d+=4*(y-i),p+=4*(y-(i+1)))}for((w=r[i].destinationEdges.iterator).reset();w.next();)if(b=(y=w.value).toVertex,y.valid&&b.layer===t){for(y=0;r[y]!==b;)y++;y===i+1&&(p+=1)}for((w=r[i+1].sourceEdges.iterator).reset();w.next();)if(b=(y=w.value).fromVertex,y.valid&&b.layer===t){for(y=0;r[y]!==b;)y++;yi+1&&(d+=4*(y-(i+1)),p+=4*(y-i))}for((w=r[i+1].destinationEdges.iterator).reset();w.next();)if(b=(y=w.value).toVertex,y.valid&&b.layer===t){for(y=0;r[y]!==b;)y++;y===i&&(d+=1)}y=b=0,w=a[r[i].index];var x=s[r[i].index],S=a[r[i+1].index],k=s[r[i+1].index];-1!==w&&(b+=Math.abs(w-f),y+=Math.abs(w-v)),-1!==x&&(b+=Math.abs(x-f),y+=Math.abs(x-v)),-1!==S&&(b+=Math.abs(S-g),y+=Math.abs(S-m)),-1!==k&&(b+=Math.abs(k-g),y+=Math.abs(k-m)),(pn)for(i=0;ii-1||u-r[i-1].column-1>h+e.nodeMinColumnSpace(r[i-1],!1)?u-1:u,h=i+1>=o||r[i+1].column-u-1>d+e.nodeMinColumnSpace(r[i+1],!0)?u+1:u;var f=d=0,g=0;if(0>=n)for(var m=r[i].sourceEdges.iterator;m.next();){var v=m.value,y=v.fromVertex;if(v.valid&&y.layer!==t){var b=Yf(v),w=v.portFromColOffset;v=v.portToColOffset,y=y.column,d+=(Math.abs(u+v-(y+w))+1)*b,f+=(Math.abs(p+v-(y+w))+1)*b,g+=(Math.abs(h+v-(y+w))+1)*b}}if(0<=n)for(m=r[i].destinationEdges.iterator;m.next();)y=(v=m.value).toVertex,v.valid&&y.layer!==t&&(b=Yf(v),w=v.portFromColOffset,v=v.portToColOffset,y=y.column,d+=(Math.abs(u+w-(y+v))+1)*b,f+=(Math.abs(p+w-(y+v))+1)*b,g+=(Math.abs(h+w-(y+v))+1)*b);v=w=b=0,m=a[r[i].index],y=s[r[i].index],-1!==m&&(b+=Math.abs(m-u),w+=Math.abs(m-p),v+=Math.abs(m-h)),-1!==y&&(b+=Math.abs(y-u),w+=Math.abs(y-p),v+=Math.abs(y-h)),f=a[n]?u=l:c<=a[n]&&(u=c));u!==s&&(o=!0,i[n].column=u)}Tg(e,t,i),e.normalize()}function xg(e,t){for(var n=!0,i=e.network.vertexes.iterator;i.next();){var r=i.value,o=e.nodeMinColumnSpace(r,!0),a=e.nodeMinColumnSpace(r,!1);if(r.column-o<=t&&r.column+a>=t){n=!1;break}}if(e=!1,n)for(i.reset();i.next();)(n=i.value).column>t&&(--n.column,e=!0);return e}function Sg(e,t){var n,i=t+1,r=[],o=[];for(n=0;n<=e.Ia;n++)r[n]=!1,o[n]=!1;for(var a=e.network.vertexes.iterator;a.next();){var s=(n=a.value).column-e.nodeMinColumnSpace(n,!0),l=n.column+e.nodeMinColumnSpace(n,!1);s<=t&&l>=t&&(r[n.layer]=!0),s<=i&&l>=i&&(o[n.layer]=!0)}for(s=!0,i=!1,n=0;n<=e.Ia;n++)s=s&&!(r[n]&&o[n]);if(s)for(a.reset();a.next();)(e=a.value).column>t&&(--e.column,i=!0);return i}function kg(e,t){for(var n=0;n<=e.Ra;n++)for(;xg(e,n););for(e.normalize(),n=0;no?Qf(e,r):at)for(n=e.Ra;0<=n;n--)for(r=Xf(e),i=(o=eg(e))+1;oo?Qf(e,r):an)for(i.reset();i.next();)(r=i.value).column+e.nodeMinColumnSpace(r,!1)>=t&&(r.component=e.le);for(e.le++,i.reset();i.next();)-1===(t=i.value).component&&(rg(e,t,e.le,-1,!0,!0),e.le++);var o;for(t=[],o=0;on)for(a=e.Ra;0n)for(i.reset();i.next();)r[(n=i.value).component]&&(n.column+=1)}function Cg(e,t,n,i){for(var o=90===e.K||270===e.K,a=r(t),s=a.next();!s.done;s=a.next()){var l=r(s.value);for(s=l.next();!s.done;s=l.next())(s=s.value).sd=s,s.shift=1/0,s.zc=NaN,s.qg=0}for(s=90===e.K||270===e.K,l=(a=r(t)).next();!l.done;l=a.next())for(var c=(l=r(l.value)).next();!c.done;c=l.next())if((c=c.value).root===c){for(var u=0,h=c;h.align!==c;){var d=h.align,p=s?h.width:h.height,f=s?d.width:d.height;if(n){var g=qg(h,d),m=g.portFromPos,v=g.portToPos;null!==g.link&&(h.node&&h.node!==g.link.fromNode&&(m=s?h.focusX:h.focusY),d.node&&d.node!==g.link.toNode&&(v=s?d.focusX:d.focusY))}else m=(g=qg(d,h)).portToPos,v=g.portFromPos,null!==g.link&&(h.node&&h.node!==g.link.toNode&&(m=s?h.focusX:h.focusY),d.node&&d.node!==g.link.fromNode&&(v=s?d.focusX:d.focusY));p=i?h.qg+(p-m)-(f-v):h.qg+m-v,d.qg=p,u=Math.min(u,p),h=h.align}h=c;do{h.qg=h.qg-u,h=h.align}while(h!==c)}for(s=(n=r(t)).next();!s.done;s=n.next())for(s=(a=r(s.value)).next();!s.done;s=a.next())(s=s.value).root===s&&Pg(e,s,t);for(n=0;n=t[n].length)&&(s=t[n][0]).sd===s){1/0===s.sd.shift&&(s.sd.shift=0),s=n,l=0;do{for(a=t[s][l];a.align!==a.root;)s++,0<(a=a.align).vi&&((l=Eg(a,t)).sd.shift=Math.min(l.sd.shift,a.sd.shift+a.zc+a.qg-(l.zc+l.qg+(o?l.width:l.height)+e.columnSpacing)));l=a.vi+1}while(s(e=e.vi)&&x("Could not determine previous vertex in layer"),t[n][e-1]}function Mg(e,t,n,i,r){if(!t||0===t.count)return n[r]=0,i[r]=0,1/0;var o=1/0,a=-1/0;return t.each((function(t){var n=t.key;t=t.value,n=90===e.K||270===e.K?n.width:n.height,ta&&(a=t+n)})),n[r]=o,i[r]=a,a-o}function Lg(e,t){return 270===e.K?t?Lt:Dt:90===e.K?t?Dt:Lt:180===e.K?t?At:Tt:t?Tt:At}function Ag(e,t){var n=e.tc[t];if(n>=e.He.length){for(var i=[],r=0;rthis.Pl||Math.abs(e)e&&0s?(r=d.x+d.width/2,o=d.y+d.height/2,c[0]=new fe(d.x+d.width+i.width,d.y),c[1]=new fe(d.x,d.y+d.height+i.height),s=2):(p=new fe((h=c[l=jf(c,s,r,o,d.width,d.height,i)]).x+d.width+i.width,h.y),d=new fe(h.x,h.y+d.height+i.height),l+1this.network.vertexes.count)return!1;for(var e=0,t=0,n=this.network.vertexes.first().bounds,i=this.network.vertexes.iterator;i.next();){if(i.value.bounds.Yc(n)&&2<++e)return!0;if(10i&&(t=i),n<-i?n=-i:n>i&&(n=i),e.centerX+=t,e.centerY+=n,t*t+n*n},Of.prototype.moveFixedVertex=function(){},Of.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Of.prototype.yv=function(){if(this.setsPortSpots)for(var e=this.network.edges.iterator;e.next();){var t=e.value.link;null!==t&&(t.fromSpot=_t,t.toSpot=_t)}},Of.prototype.commitNodes=function(){var e=0,t=0;if(this.arrangesToOrigin){var n=Ie.alloc();this.computeBounds(this.network,n),e=(t=this.arrangementOrigin).x-n.x,t=t.y-n.y,Ie.free(n)}n=Ie.alloc();for(var i=this.network.vertexes.iterator;i.next();){var r=i.value;0===e&&0===t||(n.assign(r.bounds),n.x+=e,n.y+=t,r.bounds=n),r.commit()}Ie.free(n)},Of.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},Of.prototype.springStiffness=function(e){return e=e.stiffness,isNaN(e)?this.Hk:e},Of.prototype.springLength=function(e){return e=e.length,isNaN(e)?this.Gk:e},Of.prototype.electricalCharge=function(e){return e=e.charge,isNaN(e)?this.Ek:e},Of.prototype.electricalFieldX=function(){return 0},Of.prototype.electricalFieldY=function(){return 0},Of.prototype.gravitationalMass=function(e){return e=e.mass,isNaN(e)?this.Fk:e},Of.prototype.gravitationalFieldX=function(){return 0},Of.prototype.gravitationalFieldY=function(){return 0},Of.prototype.isFixed=function(e){return e.isFixed},d.Object.defineProperties(Of.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(e){this.$d.D(e)||(this.$d.assign(e),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(e){this.Bm!==e&&(this.Bm=e,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(e){this.sf!==e&&(this.sf=e,this.C())}},comments:{get:function(){return this.td},set:function(e){this.td!==e&&(this.td=e,this.C())}},maxIterations:{get:function(){return this.dl},set:function(e){this.dl!==e&&0<=e&&(this.dl=e,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(e){this.$m!==e&&0g&&0g&&0e[this.Md]&&(this.Iq=e[n]-1,this.Md=n),e[n]t.toVertex.index&&(e.gm(t),t.rev=!0);break;case Dg:for(i=this.network.vertexes.iterator;i.next();)(e=i.value).Ll=-1,e.finish=-1;for(e=this.network.edges.iterator;e.next();)e.value.forest=!1;for(this.Kn=0,i.reset();i.next();)0===(t=i.value).sourceEdges.count&&lg(this,t);for(i.reset();i.next();)-1===(t=i.value).Ll&&lg(this,t);for(e.reset();e.next();)(i=e.value).forest||(n=(t=i.fromVertex).finish,o=(r=i.toVertex).finish,r.Lli){if(0>i)for(t.reset();t.next();)t.value.layer-=i;for(i=[],t.reset();t.next();)void 0===(r=i[(n=t.value).layer])?i[n.layer]=[n]:r.push(n);for(n=t=0;n=i;t--)n=vg(this,t,-1)||n;for((s=this.countCrossings())>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=e;t>=i;t--)n=vg(this,t,1)||n;for((s=this.countCrossings())>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=i;t<=e;t++)n=vg(this,t,1)||n;for(s>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=i;t<=e;t++)n=vg(this,t,-1)||n;for(s>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=e;t>=i;t--)n=vg(this,t,0)||n;for(s>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=i;t<=e;t++)n=vg(this,t,0)||n;s>=o?Qf(this,a):(o=s,a=Xf(this))}break;default:for(e=this.Ia,i=0,r=o+1;(t=this.countCrossings())=i;t--)n=vg(this,t,-1)||n;for((s=this.countCrossings())>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=e;t>=i;t--)n=vg(this,t,1)||n;for((s=this.countCrossings())>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=i;t<=e;t++)n=vg(this,t,1)||n;for(s>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=i;t<=e;t++)n=vg(this,t,-1)||n;for(s>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=e;t>=i;t--)n=vg(this,t,0)||n;for(s>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=i;t<=e;t++)n=vg(this,t,0)||n;s>=o?Qf(this,a):(o=s,a=Xf(this))}}Qf(this,a)},qf.prototype.straightenAndPack=function(){if(0===this.ve){var e=0!=(1&this.bg),t=0!=(this.bg&Kg);if(1e3>1)+8*i;this.Ra*=8}if(0!=(2&this.bg))for(n=!0;n;){for(n=!1,t=this.Md+1;t<=this.Ia;t++)n=yg(this,t,1)||n;for(t=this.Md-1;0<=t;t--)n=yg(this,t,-1)||n;n=yg(this,this.Md,0)||n}if(0!=(4&this.bg)){for(t=this.Md+1;t<=this.Ia;t++)wg(this,t,1);for(t=this.Md-1;0<=t;t--)wg(this,t,-1);wg(this,this.Md,0)}if(e&&(kg(this,-1),kg(this,1)),0!=(2&this.bg))for(n=!0;n;){for(n=!1,n=yg(this,this.Md,0)||n,t=this.Md+1;t<=this.Ia;t++)n=yg(this,t,0)||n;for(t=this.Md-1;0<=t;t--)n=yg(this,t,0)||n}}else!function(e){for(var t=A(),n=e.fl.length,i=0;i<=n;i++)t[i]=[];for(i=e.network.vertexes.iterator;i.next();){var o=i.value;t[n-o.layer][o.index]=o}n=new Q,function(e,t){for(var n=e.length,i=1;ih)&&t.add(d);a++}o=h}}}(t,n);var a=null,s=null,l=null,c=null,u=0!=(1&e.ve),h=0!=(2&e.ve),d=0!=(4&e.ve),p=0!=(8&e.ve);for(u&&(e.verticalAlignment(t,n,!0),a=Cg(e,t,!0,!1)),t.reverse(),d&&(e.verticalAlignment(t,n,!1),l=Cg(e,t,!1,!1)),i=r(t),o=i.next();!o.done;o=i.next())o.value.reverse();p&&(e.verticalAlignment(t,n,!1),c=Cg(e,t,!1,!0)),t.reverse(),h&&(e.verticalAlignment(t,n,!0),s=Cg(e,t,!0,!0)),T(t),e.u(a,s,l,c),e.network.vertexes.each((function(e){var t=A();u&&t.push(a.get(e)),h&&t.push(s.get(e)),d&&t.push(l.get(e)),p&&t.push(c.get(e)),t.sort((function(e,t){return e-t}));var n=t.length;n=(t[Math.floor((n-1)/2)]+t[Math.ceil((n-1)/2)])/2,T(t),e.zc=n}))}(this)},qf.prototype.verticalAlignment=function(e,t,n){!function(e){for(var t=0;ta;a++)if(t[a]){var s=Mg(this,t[a],i,r,a);sa;o={delta:o.delta},a++)t[a]&&(o.delta=0===a||2===a?i[n]-i[a]:r[n]-r[a],0!==o.delta&&t[a].each(function(e){return function(t){t.value+=e.delta}}(o)));T(i),T(r)},qf.prototype.commitLayout=function(){if(this.setsPortSpots)for(var e=Lg(this,!0),t=Lg(this,!1),n=this.network.edges.iterator;n.next();){var i=n.value.link;null!==i&&(i.fromSpot=e,i.toSpot=t)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},qf.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var e=0;e<=this.Ia;e++)this.he[e]=0,this.Ld[e]=0,this.Kd[e]=0,this.Ta[e]=0;for(e=this.network.vertexes.iterator;e.next();){var t=e.value,n=t.layer;this.he[n]=Math.max(this.he[n],this.nodeMinLayerSpace(t,!0)),this.Ld[n]=Math.max(this.Ld[n],this.nodeMinLayerSpace(t,!1))}t=0,n=this.ie;for(var i=0;i<=this.Ia;i++){var r=n;0>=this.he[i]+this.Ld[i]&&(r=0),0=h.bounds.bottom?(h=h.bounds.y+h.bounds.height,e.m(g++,w,h+S),e.m(g++,w,h),e.m(g++,w,h-b)):(e.m(g++,w,x+S),e.m(g++,w,x),e.m(g++,w,x-b)):270===this.K?x<=h.bounds.y?(h=h.bounds.y,e.m(g++,w,h-b),e.m(g++,w,h),e.m(g++,w,h+S)):(e.m(g++,w,x-b),e.m(g++,w,x),e.m(g++,w,x+S)):0===this.K&&(w>=h.bounds.right?(h=h.bounds.x+h.bounds.width,e.m(g++,h+S,x),e.m(g++,h,x),e.m(g++,h-b,x)):(e.m(g++,w+S,x),e.m(g++,w,x),e.m(g++,w-b,x)));else{e.m(g++,v,y);var k=0;180===this.K||0===this.K?((180===this.K?w>=h.bounds.right:w<=h.bounds.x)&&(k=(0===this.K?-b:S)/2),e.m(g++,v+k,x)):((270===this.K?x>=h.bounds.bottom:x<=h.bounds.y)&&(k=(90===this.K?-b:S)/2),e.m(g++,w,y+k)),e.m(g++,w,x)}}else b=Math.max(10,this.he[m.layer]),S=Math.max(10,this.Ld[m.layer]),d?180===this.K?(e.m(g++,w-b-f,x),e.m(g++,Math.min(w-b+f/2,w),x),e.m(g++,w,x),e.m(g++,w,x),e.m(g++,Math.max(w+S-f/2,w),x),e.m(g++,w+S+f,x)):90===this.K?(e.m(g++,w,x+S+f),e.m(g++,w,Math.max(x+S-f/2,x)),e.m(g++,w,x),e.m(g++,w,x),e.m(g++,w,Math.min(x-b+f/2,x)),e.m(g++,w,x-b-f)):270===this.K?(e.m(g++,w,x-b-f),e.m(g++,w,Math.min(x-b+f/2,x)),e.m(g++,w,x),e.m(g++,w,x),e.m(g++,w,Math.max(x+S-f/2,x)),e.m(g++,w,x+S+f)):(e.m(g++,w+S+f,x),e.m(g++,Math.max(w+S-f/2,w),x),e.m(g++,w,x),e.m(g++,w,x),e.m(g++,Math.min(w-b+f/2,w),x),e.m(g++,w-b-f,x)):e.m(g++,w,x)}h=m}(null===s||c!==Je||p)&&(v=e.i(g-1).x,y=e.i(g-1).y,w=e.i(g).x,x=e.i(g).y,p?(f=this.Ld[u.layer],180===this.K||0===this.K?((p=y)>=u.bounds.y&&p<=u.bounds.bottom&&(180===this.K?w>=u.bounds.x:w<=u.bounds.right)&&(h=u.centerX+(180===this.K?-f:f),p=p=u.bounds.x&&p<=u.bounds.right&&(270===this.K?x>=u.bounds.y:x<=u.bounds.bottom)&&(h=u.centerY+(270===this.K?-f:f),p=p=u.bounds.x?(h=u.bounds.x+u.bounds.width,e.L(g-2,h,y),e.L(g-1,h+S,y)):90===this.K&&x<=u.bounds.bottom?(h=u.bounds.y,e.L(g-2,v,h),e.L(g-1,v,h-b)):270===this.K&&x>=u.bounds.y?(h=u.bounds.y+u.bounds.height,e.L(g-2,v,h),e.L(g-1,v,h+S)):0===this.K&&w<=u.bounds.right&&(h=u.bounds.x,e.L(g-2,h,y),e.L(g-1,h-b,y))):(b=Math.max(10,this.he[u.layer]),S=Math.max(10,this.Ld[u.layer]),p=0,180===this.K||0===this.K?((180===this.K?w<=u.bounds.x:w>=u.bounds.right)&&(p=(0===this.K?S:-b)/2),e.m(g++,w+p,y)):((270===this.K?x<=u.bounds.y:x>=u.bounds.bottom)&&(p=(90===this.K?S:-b)/2),e.m(g++,v,x+p)),e.m(g++,w,x)))}else{for(;null!==u&&u!==h;){for(b=m=null,u=u.destinationEdges.iterator;u.next()&&((v=u.value).link!==n.link||(m=v.toVertex,null!==(b=v.fromVertex).node&&(b=null),null!==m.node)););if(null===m)break;m!==h&&(v=e.i(g-1).x,y=e.i(g-1).y,w=m.centerX,x=m.centerY,p?180===this.K||0===this.K?(null!==b?b.centerY:y)!==x&&(b=this.Ta[m.layer]+this.Rf.x,g===e.firstPickIndex+1&&(b=0===this.K?Math.max(b,v):Math.min(b,v)),e.m(g++,b,y),e.m(g++,b,x)):(null!==b?b.centerX:v)!==w&&(b=this.Ta[m.layer]+this.Rf.y,g===e.firstPickIndex+1&&(b=90===this.K?Math.max(b,y):Math.min(b,y)),e.m(g++,v,b),e.m(g++,w,b)):(b=Math.max(10,this.he[m.layer]),S=Math.max(10,this.Ld[m.layer]),d?180===this.K?(e.m(g++,w+S+f,x),e.m(g++,Math.max(w+S-f/2,w),x),e.m(g++,w,x),e.m(g++,w,x),e.m(g++,Math.min(w-b+f/2,w),x),e.m(g++,w-b-f,x)):90===this.K?(e.m(g++,w,x-b-f),e.m(g++,w,Math.min(x-b+f/2,x)),e.m(g++,w,x),e.m(g++,w,x),e.m(g++,w,Math.max(x+S-f/2,x)),e.m(g++,w,x+S+f)):270===this.K?(e.m(g++,w,x+S+f),e.m(g++,w,Math.max(x+S-f/2,x)),e.m(g++,w,x),e.m(g++,w,x),e.m(g++,w,Math.min(x-b+f/2,x)),e.m(g++,w,x-b-f)):(e.m(g++,w-b-f,x),e.m(g++,Math.min(w-b+f/2,w),x),e.m(g++,w,x),e.m(g++,w,x),e.m(g++,Math.max(w+S-f/2,w),x),e.m(g++,w+S+f,x)):180===this.K?(e.m(g++,w+S,x),e.m(g++,w-b,x)):90===this.K?(e.m(g++,w,x-b),e.m(g++,w,x+S)):270===this.K?(e.m(g++,w,x+S),e.m(g++,w,x-b)):(e.m(g++,w-b,x),e.m(g++,w+S,x)))),u=m}p&&(v=e.i(g-1).x,y=e.i(g-1).y,w=e.i(g).x,x=e.i(g).y,180===this.K||0===this.K?y!==x&&(b=0===this.K?Math.min(Math.max((w+v)/2,this.Ta[h.layer]+this.Rf.x),w):Math.max(Math.min((w+v)/2,this.Ta[h.layer]+this.Rf.x),w),e.m(g++,b,y),e.m(g++,b,x)):v!==w&&(b=90===this.K?Math.min(Math.max((x+y)/2,this.Ta[h.layer]+this.Rf.y),x):Math.max(Math.min((x+y)/2,this.Ta[h.layer]+this.Rf.y),x),e.m(g++,v,b),e.m(g++,w,b)))}null!==i&&d&&4<=e.pointsCount&&(null!==a&&(a=c===Je?e.getLinkPointFromPoint(r,a,a.ga(rt),e.i(3),!0):e.i(0),c===Je&&(c=e.i(2),i=e.i(3),90===this.direction||270===this.direction?(e.L(1,(a.x+c.x)/2,c.y),e.L(2,i.x,(c.y+i.y)/2)):(e.L(1,c.x,(a.y+c.y)/2),e.L(2,(c.x+i.x)/2,i.y))),a.w()||a.set(r.actualBounds.center),e.L(0,a.x,a.y)),null!==s&&(r=l===Je?e.getLinkPointFromPoint(o,s,s.ga(rt),e.i(e.pointsCount-4),!1):e.i(e.pointsCount-1),l===Je&&(s=e.i(e.pointsCount-3),l=e.i(e.pointsCount-4),90===this.direction||270===this.direction?(e.L(e.pointsCount-2,(r.x+s.x)/2,s.y),e.L(e.pointsCount-2,l.x,(s.y+l.y)/2)):(e.L(e.pointsCount-2,s.x,(r.y+s.y)/2),e.L(e.pointsCount-3,(s.x+l.x)/2,l.y))),r.w()||r.set(o.actualBounds.center),e.L(e.pointsCount-1,r.x,r.y))),e.zf(),n.commit()}}}this.avoidOrthogonalOverlaps()},qf.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var e=new Y,t=this.network.edges.iterator;t.next();){var n=t.value.link;null!==n&&n.isOrthogonal&&!e.contains(n)&&e.add(n)}if(0o.y&&(u=c.y>o.y?0:a.xo.x&&(u=c.x>o.x?0:a.yt.layer?1:e.rdt.rd?1:e.Ict.Ic?1:0:0},t.Ux=function(e,t){return e instanceof Gg&&t instanceof Gg&&e!==t?e.firstt.first||e.jt.j||e.rdt.rd?1:e.Ict.Ic?1:0:0},t.Js=function(e,t){return e instanceof Gg&&t instanceof Gg&&e!==t?e.jct.jc||e.jt.j||e.rdt.rd?1:e.Ict.Ic?1:0:0},t.B=function(e,t){return-1<(e-=t)&&1>e},t.zi=function(e,t,n,i){var r=e.length,o=i-n;if(!(1>=o))if((0>n||n>=r-1)&&x("not in range 0 <= from < length: "+n),2===o)0=r)e.sort(t);else for((n=e.slice(0,i)).sort(t),t=0;t=r)for((i=e.slice(n)).sort(t),t=n;te&&(this.bg=e,this.C())}},alignOption:{get:function(){return this.ve},set:function(e){this.ve!==e&&0<=e&&16>e&&(this.ve=e,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(e){this.sf!==e&&(this.sf=e,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(e){this.Cn!==e&&0<=e&&(this.Cn=e,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var Dg=new j(qf,"CycleDepthFirst",0),Ng=new j(qf,"CycleGreedy",1),Ig=new j(qf,"CycleFromLayers",2),Bg=new j(qf,"LayerOptimalLinkLength",0),Rg=new j(qf,"LayerLongestPathSink",1),Og=new j(qf,"LayerLongestPathSource",2),Fg=new j(qf,"InitDepthFirstOut",0),zg=new j(qf,"InitDepthFirstIn",1),jg=new j(qf,"InitNaive",2),$g=new j(qf,"AggressiveNone",0),Hg=new j(qf,"AggressiveLess",1),Zg=new j(qf,"AggressiveMore",2),Kg=8;function Gg(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}function Ug(e){Id.call(this,e)}function Vg(e){zd.call(this,e),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}function Wg(e,t){return e.index-t.index}function qg(e,t){if(!e.$n){for(var n=[],i=r(e.destinationEdgesArrayAccess),o=i.next();!o.done;o=i.next())(o=o.value).valid&&n.push(o);e.$n=n}for(n=(e=r(e.$n)).next();!n.done;n=e.next())if((n=n.value).toVertex===t)return n;x("Unable to find destination edge to given vertex")}function Yg(e){if(!e.co){for(var t=[],n=r(e.sourceEdgesArrayAccess),i=n.next();!i.done;i=n.next())(i=i.value).valid&&t.push(i.fromVertex);t.sort(Wg),e.co=t}return e.co}function Xg(e){if(!e.ao){for(var t=[],n=r(e.destinationEdgesArrayAccess),i=n.next();!i.done;i=n.next())(i=i.value).valid&&t.push(i.toVertex);t.sort(Wg),e.ao=t}return e.ao}function Qg(e){$d.call(this,e),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}function Jg(e){Td.call(this),this.Ub=new Q,this.Wn=Em,this.ud=Mm,this.vo=Km,this.Bq=Xm,this.$v=[],this.td=!0,this.Rb=Wm,this.$d=new Ae(10,10).freeze();var t=new ev(this);this.W=new tv(t),this.Y=new tv(t),this.ru=[],e&&Object.assign(this,e)}function em(e){var t=new Q;for(e=e.iterator;e.next();){var n=e.value;n.initialized||t.add(n)}return t}function tm(e,t){var n=999999,i=null;for(t=t.iterator;t.next();){var r=t.value;switch(e.ud){case Mm:r.sourceEdges.countt.level)return!1;e.removeChild(n.parent,n)}return!0}function rm(e,t){if(null!==t){e.initializeTreeVertexValues(t),t.alignment===zm&&e.sortTreeVertexChildren(t);for(var n=0,i=t.childrenCount,r=0,o=t.children,a=o.length,s=0;si?hm(e,t,r,E,b,w):dm(e,t,r,E,b,w)).x,b=w.width,w=w.height;break;case jm:for(d=0;dd&&(Sd&&(kh&&(h=0),135v&&(v=0)),t.la.h(h,v),t.Da.h(b,w)}}function hm(e,t,n,i,r,o){var a=n.length;if(0===a)return new Ie(i,0,r,o);if(1===a)return new Ie(i,0,r=(t=n[0]).Da.width,o=t.Da.height);for(var s=t.nodeSpacing,l=t.rowSpacing,c=90===Pm(t),u=0,h=0,d=0,p=0;pc&&(r-=c),o=Math.max(o,Math.max(p,d)+e+a.height),0>n.S.x&&(i=pm(t,n.S.x,!1,i,s))):(n.S.h(r+e,i+s/2-n.focus.y-n.la.y),r=Math.max(r,Math.max(f,h)+e+a.width),d=i+s/2-n.focus.y-n.la.y,o=Math.max(o,d+a.height),0>d&&(o-=d),0>n.S.y&&(i=pm(t,n.S.y,!0,i,s)))),new Ie(i,0,r,o)}function dm(e,t,n,i,r,o){var a=n.length;if(0===a)return new Ie(i,0,r,o);if(1===a)return new Ie(i,0,r=(n=n[0]).Da.width,o=n.Da.height);for(var s=t.nodeSpacing,l=t.rowSpacing,c=270===Pm(t),u=0,h=0,d=0,p=0;ph&&(r-=h),o=Math.max(o,Math.abs(Math.min(p,d))+e+u.height),0>l.S.x&&(i=pm(t,l.S.x,!1,i,s))):(l.S.h(-r-u.width-e,i+s/2-l.focus.y-l.la.y),r=Math.max(r,Math.abs(Math.min(f,h))+e+u.width),d=i+s/2-l.focus.y-l.la.y,o=Math.max(o,d+u.height),0>d&&(o-=d),0>l.S.y&&(i=pm(t,l.S.y,!0,i,s)))),t=0;tt&&(t=n+e.width),0>n&&(t-=n),t;case Rm:return e.width>t?e.width:t;case Om:return 2*e.focus.x>t?e.width:t+e.width-2*e.focus.x;case Fm:case zm:return Math.max(e.width,Math.max(t,n+e.width)-Math.min(0,n));case jm:return e.width-e.focus.x+e.nodeSpacing/2+t;case $m:return Math.max(e.width,e.focus.x+e.nodeSpacing/2+t);default:return t}}function gm(e,t,n){switch(e.alignment){case Bm:case Im:return n+e.height>t&&(t=n+e.height),0>n&&(t-=n),t;case Rm:return e.height>t?e.height:t;case Om:return 2*e.focus.y>t?e.height:t+e.height-2*e.focus.y;case Fm:case zm:return Math.max(e.height,Math.max(t,n+e.height)-Math.min(0,n));case jm:return e.height-e.focus.y+e.nodeSpacing/2+t;case $m:return Math.max(e.height,e.focus.y+e.nodeSpacing/2+t);default:return t}}function mm(e,t,n){switch(e){case Im:case Bm:t/=2,n/=2;break;case Rm:n=t=0;break;case Om:break;default:x("Unhandled alignment value "+e.toString())}return new fe(t,n)}function vm(e,t,n,i,r,o){ym(e,(t=mm(t,n,i)).x,t.y,r,o)}function ym(e,t,n,i,r){if(0!==t||0!==n)for(e=e.children;i<=r;i++){var o=e[i].S;o.x+=t,o.y+=n}}function bm(e,t,n,i){var r=t.parent;switch(e.ud){case Mm:for(e=t.sourceEdges;e.next();)(t=e.value).fromVertex===r&&t.relativePoint.h(n,i);break;case Lm:for(e=t.destinationEdges;e.next();)(t=e.value).toVertex===r&&t.relativePoint.h(n,i);break;default:x("Unhandled path value "+e.ud.toString())}}function wm(e,t,n){for(var i=0;ih.length||null===p||2>p.length))for(r=n=0;nc&&o.yo.y&&ct.length||null===n||2>n.length)i=null;else{for(u=Sm(e,t.length+n.length),i=o=l=0;ol;)c=n[o++],u[i++].h(c.x+r,c.y);for(n=Sm(e,i),l=0;lh.length||null===o||2>o.length)r=null;else{for(u=Sm(e,h.length+o.length),r=c=n=0;no;)l=h[n++],u[r++].h(l.x,l.y);for(o=Sm(e,r),n=0;nh.length||null===p||2>p.length))for(r=n=0;nl&&o.xo.x&&lt.length||null===n||2>n.length)i=null;else{for(u=Sm(e,t.length+n.length),i=o=l=0;ol;)c=n[o++],u[i++].h(c.x,c.y+r);for(n=Sm(e,i),l=0;lh.length||null===o||2>o.length)r=null;else{for(u=Sm(e,h.length+o.length),r=c=n=0;no;)l=h[n++],u[r++].h(l.x,l.y);for(o=Sm(e,r),n=0;n=(e=e.angle)?0:135>=e?90:225>=e?180:315>=e?270:0}qf.className="LayeredDigraphLayout",qf.CycleDepthFirst=Dg,qf.CycleGreedy=Ng,qf.CycleFromLayers=Ig,qf.LayerOptimalLinkLength=Bg,qf.LayerLongestPathSink=Rg,qf.LayerLongestPathSource=Og,qf.InitDepthFirstOut=Fg,qf.InitDepthFirstIn=zg,qf.InitNaive=jg,qf.AggressiveNone=$g,qf.AggressiveLess=Hg,qf.AggressiveMore=Zg,qf.PackNone=0,qf.PackExpand=1,qf.PackStraighten=2,qf.PackMedian=4,qf.PackAll=15,qf.AlignNone=0,qf.AlignUpperLeft=1,qf.AlignUpperRight=2,qf.AlignLowerLeft=4,qf.AlignLowerRight=8,qf.AlignAll=15,Gg.className="SegInfo",h(Ug,Id),Ug.prototype.createVertex=function(){return new Vg(this)},Ug.prototype.createEdge=function(){return new Qg(this)},Ug.className="LayeredDigraphNetwork",h(Vg,zd),Vg.prototype.Cl=function(e){zd.prototype.Cl.call(this,e),this.bo=this.co=null},Vg.prototype.Kl=function(e){zd.prototype.Kl.call(this,e),this.bo=this.co=null},Vg.prototype.zl=function(e){zd.prototype.zl.call(this,e),this.$n=this.ao=null},Vg.prototype.Jl=function(e){zd.prototype.Jl.call(this,e),this.$n=this.ao=null},d.Object.defineProperties(Vg.prototype,{layer:{get:function(){return this.Ig},set:function(e){this.Ig!==e&&(this.Ig=e)}},column:{get:function(){return this.Ag},set:function(e){this.Ag!==e&&(this.Ag=e)}},index:{get:function(){return this.Za},set:function(e){this.Za!==e&&(this.Za=e)}},component:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},near:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}}}),Vg.prototype.deleteDestinationEdge=Vg.prototype.Jl,Vg.prototype.addDestinationEdge=Vg.prototype.zl,Vg.prototype.deleteSourceEdge=Vg.prototype.Kl,Vg.prototype.addSourceEdge=Vg.prototype.Cl,Vg.className="LayeredDigraphVertex",h(Qg,$d),d.Object.defineProperties(Qg.prototype,{fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}},valid:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},rev:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},forest:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}},portFromPos:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},portToPos:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}},portFromColOffset:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},portToColOffset:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}}}),Qg.className="LayeredDigraphEdge",h(Jg,Td),Jg.prototype.cloneProtected=function(e){Td.prototype.cloneProtected.call(this,e),e.Wn=this.Wn,e.vo=this.vo,e.Bq=this.Bq,e.td=this.td,e.Rb=this.Rb,e.$d.assign(this.$d),e.W.copyInheritedPropertiesFrom(this.W),e.Y.copyInheritedPropertiesFrom(this.Y)},Jg.prototype.qb=function(e){e.classType===Jg?0===e.name.indexOf("Alignment")?this.alignment=e:0===e.name.indexOf("Arrangement")?this.arrangement=e:0===e.name.indexOf("Compaction")?this.compaction=e:0===e.name.indexOf("Path")?this.path=e:0===e.name.indexOf("Sorting")?this.sorting=e:0===e.name.indexOf("Style")?this.treeStyle=e:x("Unknown enum value: "+e):Td.prototype.qb.call(this,e)},Jg.prototype.createNetwork=function(){return new ev(this)},Jg.prototype.makeNetwork=function(e){function t(e){if(e instanceof qu)return!e.isLinkLabel&&"Comment"!==e.category;if(e instanceof xh){var t=e.fromNode;return null!==t&&!t.isLinkLabel&&"Comment"!==t.category&&(null!==(e=e.toNode)&&!e.isLinkLabel&&"Comment"!==e.category)}return!1}var n=this.createNetwork();return e instanceof Er?(n.lg(e.nodes,!0,t),n.lg(e.links,!0,t)):e instanceof gh?n.lg(e.memberParts,!1,t):n.lg(e.iterator,!1,t),n},Jg.prototype.doLayout=function(e){null===this.network&&(this.network=this.makeNetwork(e)),this.arrangement!==Ym&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var t=this.diagram;if(null===t&&e instanceof Er&&(t=e),this.path===Em&&null!==t?this.ud=t.isTreePathToChildren?Mm:Lm:this.ud=this.path===Em?Mm:this.path,0r?hm(this,e,a,D,v,y):dm(this,e,a,D,v,y)).x,v=y.width,y=y.height;break;case jm:for(w=0;wh&&(CR&&(ym(e,-R,0,L,N-1),wm(w,-R,0),wm(S,-R,0),R=0)}I.S.h(R,P),v=Math.max(v,k),y=Math.max(y,b+(0===E?0:f)+B.height),C=k}else 0h&&(PR&&(ym(e,0,-R,L,N-1),wm(w,0,-R),wm(S,0,-R),R=0)),I.S.h(C,R),y=Math.max(y,_),v=Math.max(v,b+(0===E?0:f)+B.width),P=_;M++}switch(0c&&(c=0),135g&&(g=0),l===$m&&(s+=d/2+e.focus.y),a+=i+n):t?(null===e.comments?i>v&&(a=(v=mm(l,i-v,0)).x,s=v.y,v=i,c=0):v=fm(e,v,c),0>c&&(a-=c,c=0),135y&&(a=(y=mm(l,0,m-y)).x,s=y.y,y=m,g=0):y=gm(e,y,g),0>g&&(s-=g,g=0),a+=i+n),0r[0].x?r[2].assign(r[1]):r[1].assign(r[2])),r[3].yr[0].x?r[3].assign(r[2]):r[2].assign(r[3])),E[0].h(c+i,0),E[1].h(E[0].x,m),E[2].yr[0].y?r[2].assign(r[1]):r[1].assign(r[2])),r[3].xr[0].y?r[3].assign(r[2]):r[2].assign(r[3])),E[0].h(0,g+m),E[1].h(i,E[0].y),E[2].x=e&&(this.W.nodeIndentPastParent=e,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(e){this.W.nodeSpacing!==e&&(this.W.nodeSpacing=e,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(e){this.W.layerSpacing!==e&&(this.W.layerSpacing=e,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(e){this.W.layerSpacingParentOverlap!==e&&0<=e&&1>=e&&(this.W.layerSpacingParentOverlap=e,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(e){this.W.compaction===e||e!==Hm&&e!==Zm||(this.W.compaction=e,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(e){this.W.breadthLimit!==e&&0<=e&&(this.W.breadthLimit=e,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(e){this.W.rowSpacing!==e&&(this.W.rowSpacing=e,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(e){this.W.rowIndent!==e&&0<=e&&(this.W.rowIndent=e,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(e){this.W.commentSpacing!==e&&(this.W.commentSpacing=e,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(e){this.W.commentMargin!==e&&(this.W.commentMargin=e,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(e){this.W.setsPortSpot!==e&&(this.W.setsPortSpot=e,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(e){this.W.portSpot.D(e)||(this.W.portSpot=e,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(e){this.W.setsChildPortSpot!==e&&(this.W.setsChildPortSpot=e,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(e){this.W.childPortSpot.D(e)||(this.W.childPortSpot=e,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(e){this.Y.sorting===e||e!==Am&&e!==Tm&&e!==Dm&&!Nm||(this.Y.sorting=e,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(e){this.Y.comparer!==e&&(this.Y.comparer=e,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(e){this.Y.angle===e||0!==e&&90!==e&&180!==e&&270!==e||(this.Y.angle=e,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(e){this.Y.alignment!==e&&(this.Y.alignment=e,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(e){this.Y.nodeIndent!==e&&0<=e&&(this.Y.nodeIndent=e,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(e){this.Y.nodeIndentPastParent!==e&&0<=e&&1>=e&&(this.Y.nodeIndentPastParent=e,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(e){this.Y.nodeSpacing!==e&&(this.Y.nodeSpacing=e,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(e){this.Y.layerSpacing!==e&&(this.Y.layerSpacing=e,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(e){this.Y.layerSpacingParentOverlap!==e&&0<=e&&1>=e&&(this.Y.layerSpacingParentOverlap=e,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(e){this.Y.compaction===e||e!==Hm&&e!==Zm||(this.Y.compaction=e,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(e){this.Y.breadthLimit!==e&&0<=e&&(this.Y.breadthLimit=e,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(e){this.Y.rowSpacing!==e&&(this.Y.rowSpacing=e,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(e){this.Y.rowIndent!==e&&0<=e&&(this.Y.rowIndent=e,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(e){this.Y.commentSpacing!==e&&(this.Y.commentSpacing=e,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(e){this.Y.commentMargin!==e&&(this.Y.commentMargin=e,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(e){this.Y.setsPortSpot!==e&&(this.Y.setsPortSpot=e,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(e){this.Y.portSpot.D(e)||(this.Y.portSpot=e,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(e){this.Y.setsChildPortSpot!==e&&(this.Y.setsChildPortSpot=e,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(e){this.Y.childPortSpot.D(e)||(this.Y.childPortSpot=e,this.C())}}});var Em=new j(Jg,"PathDefault",-1),Mm=new j(Jg,"PathDestination",0),Lm=new j(Jg,"PathSource",1),Am=new j(Jg,"SortingForwards",10),Tm=new j(Jg,"SortingReverse",11),Dm=new j(Jg,"SortingAscending",12),Nm=new j(Jg,"SortingDescending",13),Im=new j(Jg,"AlignmentCenterSubtrees",20),Bm=new j(Jg,"AlignmentCenterChildren",21),Rm=new j(Jg,"AlignmentStart",22),Om=new j(Jg,"AlignmentEnd",23),Fm=new j(Jg,"AlignmentBus",24),zm=new j(Jg,"AlignmentBusBranching",25),jm=new j(Jg,"AlignmentTopLeftBus",26),$m=new j(Jg,"AlignmentBottomRightBus",27),Hm=new j(Jg,"CompactionNone",30),Zm=new j(Jg,"CompactionBlock",31),Km=new j(Jg,"StyleLayered",40),Gm=new j(Jg,"StyleLastParents",41),Um=new j(Jg,"StyleAlternating",42),Vm=new j(Jg,"StyleRootOnly",43),Wm=new j(Jg,"ArrangementVertical",50),qm=new j(Jg,"ArrangementHorizontal",51),Ym=new j(Jg,"ArrangementFixedRoots",52),Xm=new j(Jg,"LayerIndividual",60),Qm=new j(Jg,"LayerSiblings",61),Jm=new j(Jg,"LayerUniform",62);function ev(e){Id.call(this,e)}function tv(e){zd.call(this,e),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new fe(0,0),this.Da=new Ae(0,0),this.la=new fe(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Am,this.hd=jd,this.Kb=0,this.Jb=Bm,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Zm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=_t,this.wr=!0,this.Dp=_t}function nv(e){$d.call(this,e),this.$t=new fe(0,0)}Jg.className="TreeLayout",Jg.PathDefault=Em,Jg.PathDestination=Mm,Jg.PathSource=Lm,Jg.SortingForwards=Am,Jg.SortingReverse=Tm,Jg.SortingAscending=Dm,Jg.SortingDescending=Nm,Jg.AlignmentCenterSubtrees=Im,Jg.AlignmentCenterChildren=Bm,Jg.AlignmentStart=Rm,Jg.AlignmentEnd=Om,Jg.AlignmentBus=Fm,Jg.AlignmentBusBranching=zm,Jg.AlignmentTopLeftBus=jm,Jg.AlignmentBottomRightBus=$m,Jg.CompactionNone=Hm,Jg.CompactionBlock=Zm,Jg.StyleLayered=Km,Jg.StyleLastParents=Gm,Jg.StyleAlternating=Um,Jg.StyleRootOnly=Vm,Jg.ArrangementVertical=Wm,Jg.ArrangementHorizontal=qm,Jg.ArrangementFixedRoots=Ym,Jg.LayerIndividual=Xm,Jg.LayerSiblings=Qm,Jg.LayerUniform=Jm,h(ev,Id),ev.prototype.createVertex=function(){return new tv(this)},ev.prototype.createEdge=function(){return new nv(this)},ev.className="TreeNetwork",h(tv,zd),tv.prototype.copyInheritedPropertiesFrom=function(e){null!==e&&(this.nd=e.sorting,this.hd=e.comparer,this.Kb=e.angle,this.Jb=e.alignment,this.Uq=e.nodeIndent,this.Vq=e.nodeIndentPastParent,this.Wq=e.nodeSpacing,this.ie=e.layerSpacing,this.Aq=e.layerSpacingParentOverlap,this.Hp=e.compaction,this.Ap=e.breadthLimit,this.nr=e.rowSpacing,this.mr=e.rowIndent,this.Gp=e.commentSpacing,this.Fp=e.commentMargin,this.xr=e.setsPortSpot,this.dr=e.portSpot,this.wr=e.setsChildPortSpot,this.Dp=e.childPortSpot)},d.Object.defineProperties(tv.prototype,{initialized:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}},parent:{get:function(){return this.hb},set:function(e){this.hb!==e&&(this.hb=e)}},children:{get:function(){return this.u},set:function(e){if(this.u!==e){if(null!==e)for(var t=e.length,n=0;np.y+n.rowIndent&&(o=Math.min(o,Math.max(h.y,o-t.computeNodeIndent(n))))):n.alignment===Rm?(o=i.top+r.y,0===r.y&&h.yp.x+n.rowIndent&&(o=Math.min(o,Math.max(h.x,o-t.computeNodeIndent(n))))):n.alignment===Rm?(o=i.left+r.x,0===r.x&&h.xp.y+n.rowIndent&&(o=Math.min(o,Math.max(h.y,o-t.computeNodeIndent(n))))):n.alignment===Rm?(o=i.top+r.y,0===r.y&&h.yp.x+n.rowIndent&&(o=Math.min(o,Math.max(h.x,o-t.computeNodeIndent(n))))):n.alignment===Rm?(o=i.left+r.x,0===r.x&&h.x0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},,,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position=0&&e=0&&t=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},,,,,function(e){function t(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},,function(e,t,n){var i=n(16).Beautifier,r=n(17).Options;e.exports=function(e,t){return new i(e,t).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(17).Options,r=n(2).Output,o=n(8).InputScanner,a=new(0,n(13).Directives)(/\/\*/,/\*\//),s=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,c=/\s/,u=/(?:\s|\n)+/g,h=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,d=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function p(e,t){this._source_text=e||"",this._options=new i(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}p.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},p.prototype.eatWhitespace=function(e){for(var t=c.test(this._input.peek()),n=0;c.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===n||n0&&this._indentLevel--},p.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===t&&(t="\n",e&&s.test(e||"")&&(t=e.match(s)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new r(this._options,n),this._input=new o(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var i,p,f=0,g=!1,m=!1,v=!1,y=!1,b=!1,w=this._ch,x=!1;i=""!==this._input.read(u),p=w,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),w=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var S=this._input.read(h),k=a.get_directives(S);k&&"start"===k.ignore&&(S+=a.readIgnored(this._input)),this.print_string(S),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(d)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(i),this.print_string(this._ch);var _=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);_.match(/[ :]$/)&&(_=this.eatString(": ").replace(/\s+$/,""),this.print_string(_),this._output.space_before_token=!0),0===f&&-1!==_.indexOf(":")&&(m=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(i),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var C=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);C.match(/[ :]$/)&&(C=this.eatString(": ").replace(/\s+$/,""),this.print_string(C),this._output.space_before_token=!0),0===f&&-1!==C.indexOf(":")?(m=!0,this.indent()):C in this.NESTED_AT_RULE?(this._nestedLevel+=1,C in this.CONDITIONAL_GROUP_RULE&&(v=!0)):0!==f||m||(y=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)m&&(m=!1,this.outdent()),y=!1,v?(v=!1,g=this._indentLevel>=this._nestedLevel):g=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&g&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===p?this._output.space_before_token=!1:","!==p&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===p&&this._output.trim(!0),m&&(this.outdent(),m=!1),this.print_string(this._ch),g=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var P=0;P"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||m||0!==f)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(i),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var L='"'===p||"'"===p;this.preserveSingleSpace(L||i),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&x&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&c.test(this._ch)&&(this._ch=""));return this._output.get_code(t)},e.exports.Beautifier=p},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},function(e){e.exports.Token=function(e,t,n,i){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position=0&&e=0&&t=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},function(e,t,n){var i=n(8).InputScanner,r=n(3).Token,o=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new i(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new o,this._reset();for(var t=new r(s.START,""),n=null,i=[],a=new o;t.type!==s.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)a.add(e),e=this._get_next_token(t,n);a.isEmpty()||(e.comments_before=a,a=new o),e.parent=n,this._is_opening(e)?(i.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=i.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){return new r(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=s},function(e){function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return 0===this.__tokens_length},t.prototype.hasNext=function(){return this.__position=0&&e/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}o.prototype=new i,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},o.prototype.read_options=function(e){var t=this._create();for(var n in r)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},o.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},o.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},o.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},o.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},e.exports.TemplatablePattern=o},,,,function(e,t,n){var i=n(19).Beautifier,r=n(20).Options;e.exports=function(e,t,n,r){return new i(e,t,n,r).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(20).Options,r=n(2).Output,o=n(21).Tokenizer,a=n(21).TOKEN,s=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,c=function(e,t){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new r(e,t)};c.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},c.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},c.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},c.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},c.prototype.print_preserved_newlines=function(e){var t=0;e.type!==a.TEXT&&e.previous.type!==a.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines0);return 0!==t},c.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},c.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},c.prototype.print_newline=function(e){this._output.add_new_line(e)},c.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},c.prototype.indent=function(){this.indent_level++},c.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},c.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var u=function(e,t){var n=null,i=null;return t.closed?("script"===e?n="text/javascript":"style"===e&&(n="text/css"),n=function(e){for(var t=null,n=e.next;n.type!==a.EOF&&e.closed!==n;){if(n.type===a.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===a.EQUALS&&n.next.next&&n.next.next.type===a.VALUE&&(t=n.next.next.text);break}n=n.next}return t}(t)||n,n.search("text/css")>-1?i="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?i="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":n.search(/test\/null/)>-1&&(i="null"),i):null};function h(e,t){return-1!==t.indexOf(e)}function d(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function p(e){this._printer=e,this._current_frame=null}function f(e,t,n,r){this._source_text=e||"",t=t||{},this._js_beautify=n,this._css_beautify=r,this._tag_stack=null;var o=new i(t,"html");this._options=o,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}p.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},p.prototype.record_tag=function(e){var t=new d(this._current_frame,e,this._printer.indent_level);this._current_frame=t},p.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},p.prototype._get_frame=function(e,t){for(var n=this._current_frame;n&&-1===e.indexOf(n.tag);){if(t&&-1!==t.indexOf(n.tag)){n=null;break}n=n.parent}return n},p.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)},p.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&s.test(e)&&(t=e.match(s)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0],i={text:"",type:""},r=new g(this._options),u=new c(this._options,n),h=new o(e,this._options).tokenize();this._tag_stack=new p(u);for(var d=null,f=h.next();f.type!==a.EOF;)f.type===a.TAG_OPEN||f.type===a.COMMENT?r=d=this._handle_tag_open(u,f,r,i,h):f.type===a.ATTRIBUTE||f.type===a.EQUALS||f.type===a.VALUE||f.type===a.TEXT&&!r.tag_complete?d=this._handle_inside_tag(u,f,r,i):f.type===a.TAG_CLOSE?d=this._handle_tag_close(u,f,r):f.type===a.TEXT?d=this._handle_text(u,f,r):f.type===a.CONTROL_FLOW_OPEN?d=this._handle_control_flow_open(u,f):f.type===a.CONTROL_FLOW_CLOSE?d=this._handle_control_flow_close(u,f):u.add_raw_token(f),i=d,f=h.next();return u._output.get_code(t)},f.prototype._handle_control_flow_open=function(e,t){var n={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),e.indent(),n},f.prototype._handle_control_flow_close=function(e,t){var n={text:t.text,type:t.type};return e.deindent(),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),n},f.prototype._handle_tag_close=function(e,t,n){var i={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):("<"===n.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(e.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||e.set_wrap_point(),i},f.prototype._handle_inside_tag=function(e,t,n,i){var r=n.has_wrapped_attrs,o={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):"{"===n.tag_start_char&&t.type===a.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===a.ATTRIBUTE?e.set_space_before_token(!0):(t.type===a.EQUALS||t.type===a.VALUE&&t.previous.type===a.EQUALS)&&e.set_space_before_token(!1),t.type===a.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),r=r||0!==t.newlines),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(i.type!==a.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),r=!0)),e.print_token(t),r=r||e.previous_token_wrapped(),n.has_wrapped_attrs=r),o},f.prototype._handle_text=function(e,t,n){var i={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),i},f.prototype._print_custom_beatifier_text=function(e,t,n){var i=this;if(""!==t.text){var r,o=t.text,a=1,s="",l="";"javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?r=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?r=this._css_beautify:"html"===n.custom_beautifier_name&&(r=function(e,t){return new f(e,t,i._js_beautify,i._css_beautify).beautify()}),"keep"===this._options.indent_scripts?a=0:"separate"===this._options.indent_scripts&&(a=-e.indent_level);var c=e.get_full_indent(a);if(o=o.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===o[0]&&o.match(/^(|]]>)$/.exec(o);if(!u)return void e.add_raw_token(t);s=c+u[1]+"\n",o=u[4],u[5]&&(l=c+u[5]),o=o.replace(/\n[ \t]*$/,""),(u[2]||-1!==u[3].indexOf("\n"))&&(u=u[3].match(/[ \t]+$/))&&(t.whitespace_before=u[0])}if(o)if(r){var h=function(){this.eol="\n"};h.prototype=this._options.raw_options,o=r(c+o,new h)}else{var d=t.whitespace_before;d&&(o=o.replace(new RegExp("\n("+d+")?","g"),"\n")),o=c+o.replace(/\n/g,"\n"+c)}s&&(o=o?s+o+"\n"+l:s+l),e.print_newline(!1),o&&(t.text=o,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},f.prototype._handle_tag_open=function(e,t,n,i,r){var o=this._get_tag_open_token(t);if(!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||t.type!==a.TAG_OPEN||o.is_start_tag?(e.traverse_whitespace(t),this._set_tag_position(e,t,o,n,i),o.is_inline_element||e.set_wrap_point(),e.print_token(t)):(e.add_raw_token(t),o.start_tag_token=this._tag_stack.try_pop(o.tag_name)),o.is_start_tag&&this._is_wrap_attributes_force){var s,l=0;do{(s=r.peek(l)).type===a.ATTRIBUTE&&(o.attr_count+=1),l+=1}while(s.type!==a.EOF&&s.type!==a.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(o.alignment_size=t.text.length+1),o.tag_complete||o.is_unformatted||(e.alignment_size=o.alignment_size),o};var g=function(e,t,n){if(this.parent=t||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",n){var i;this.tag_start_char=n.text[0],this.text=n.text,"<"===this.tag_start_char?(i=n.text.match(/^<([^\s>]*)/),this.tag_check=i?i[1]:""):(i=n.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=i?i[1]:"",(n.text.startsWith("{{#>")||n.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==n.next?this.tag_check=n.next.text.split(" ")[0]:this.tag_check=n.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),n.type===a.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||n.closed&&"/>"===n.closed.text;var r=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(r=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(!e.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(r)))}else this.tag_complete=!0};f.prototype._get_tag_open_token=function(e){var t=new g(this._options,this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||h(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&h(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&h(t.tag_check,this._options.content_unformatted),t.is_inline_element=h(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||"{"===t.tag_start_char,t},f.prototype._set_tag_position=function(e,t,n,i,r){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=u(n.tag_check,t)))),h(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1);"!--"===n.tag_name&&r.type===a.TAG_CLOSE&&i.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n))}else if(n.is_end_tag){var o=!1;o=(o=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(r.type===a.TAG_CLOSE&&n.start_tag_token===i)&&"TK_CONTENT"!==r.type,(n.is_content_unformatted||n.is_unformatted)&&(o=!1),o&&e.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===r.type&&!n.is_content_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n)},f.prototype._calcluate_parent_multiline=function(e,t){!t.parent||!e._output.just_added_newline()||(t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element||(t.parent.multiline_content=!0)};var m=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],v=["a","audio","del","ins","map","noscript","video"];f.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==m.indexOf(e.tag_name)){var n=e.parent.parent;n&&-1!==v.indexOf(n.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===e.tag_name?t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):"th"!==e.tag_name&&"td"!==e.tag_name||(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},e.exports.Beautifier=f},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}r.prototype=new i,e.exports.Options=r},function(e,t,n){var i=n(9).Tokenizer,r=n(9).TOKEN,o=n(13).Directives,a=n(14).TemplatablePattern,s=n(12).Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},c=new o(/<\!--/,/-->/),u=function(e,t){i.call(this,e,t),this._current_tag_name="";var n=new a(this._input).read_options(this._options),r=new s(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),word_control_flow_close_excluded:n.until(/[\n\r\t <}]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),angular_control_flow_start:r.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),handlebars_open:r.until(/[\n\r\t }]/),handlebars_raw_close:r.until(/}}/),comment:r.starting_with(//),cdata:r.starting_with(//),conditional_comment:r.starting_with(//),processing:r.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var o=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=r.matching(o).until_after(o)}};(u.prototype=new i)._is_comment=function(e){return!1},u.prototype._is_opening=function(e){return e.type===l.TAG_OPEN||e.type===l.CONTROL_FLOW_OPEN},u.prototype._is_closing=function(e,t){return e.type===l.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])||e.type===l.CONTROL_FLOW_CLOSE&&"}"===e.text&&t.text.endsWith("{")},u.prototype._reset=function(){this._current_tag_name=""},u.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(l.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(i,t))||this._read_attribute(i,e,t))||this._read_close(i,t))||this._read_script_and_style(i,e))||this._read_control_flows(i,t))||this._read_raw_content(i,e,t))||this._read_content_word(i,t))||this._read_comment_or_cdata(i))||this._read_processing(i))||this._read_open(i,t))||this._create_token(l.UNKNOWN,this._input.next())},u.prototype._read_comment_or_cdata=function(e){var t=null,n=null,i=null;"<"===e&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(i=c.get_directives(n))&&"start"===i.ignore&&(n+=c.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=i));return t},u.prototype._read_processing=function(e){var t=null,n=null;if("<"===e){var i=this._input.peek(1);"!"!==i&&"?"!==i||(n=(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=null)}return t},u.prototype._read_open=function(e,t){var n=null,i=null;return t&&t.type!==l.CONTROL_FLOW_OPEN||"<"===e&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),i=this._create_token(l.TAG_OPEN,n)),i},u.prototype._read_open_handlebars=function(e,t){var n=null,i=null;return t&&t.type!==l.CONTROL_FLOW_OPEN||(this._options.templating.includes("angular")||this._options.indent_handlebars)&&"{"===e&&"{"===this._input.peek(1)&&(this._options.indent_handlebars&&"!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),i=this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),i=this._create_token(l.TAG_OPEN,n))),i},u.prototype._read_control_flows=function(e,t){var n="",i=null;if(!this._options.templating.includes("angular"))return i;if("@"===e){if(""===(n=this.__patterns.angular_control_flow_start.read()))return i;for(var r=n.endsWith("(")?1:0,o=0;!n.endsWith("{")||r!==o;){var a=this._input.next();if(null===a)break;"("===a?r++:")"===a&&o++,n+=a}i=this._create_token(l.CONTROL_FLOW_OPEN,n)}else"}"===e&&t&&t.type===l.CONTROL_FLOW_OPEN&&(n=this._input.next(),i=this._create_token(l.CONTROL_FLOW_CLOSE,n));return i},u.prototype._read_close=function(e,t){var n=null,i=null;return t&&t.type===l.TAG_OPEN&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(n=this._input.next(),"/"===e&&(n+=this._input.next()),i=this._create_token(l.TAG_CLOSE,n)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(l.TAG_CLOSE,"}}"))),i},u.prototype._read_attribute=function(e,t,n){var i=null,r="";if(n&&"<"===n.text[0])if("="===e)i=this._create_token(l.EQUALS,this._input.next());else if('"'===e||"'"===e){var o=this._input.next();o+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(l.VALUE,o)}else(r=this.__patterns.attribute.read())&&(i=t.type===l.EQUALS?this._create_token(l.VALUE,r):this._create_token(l.ATTRIBUTE,r));return i},u.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},u.prototype._read_raw_content=function(e,t,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var r=t.opened.text.substr(1).toLowerCase();this._is_content_unformatted(r)&&(i=this._input.readUntil(new RegExp("","ig")))}return i?this._create_token(l.TEXT,i):null},u.prototype._read_script_and_style=function(e,t){if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var n=t.opened.text.substr(1).toLowerCase();if("script"===n||"style"===n){var i=this._read_comment_or_cdata(e);if(i)return i.type=l.TEXT,i;var r=this._input.readUntil(new RegExp("","ig"));if(r)return this._create_token(l.TEXT,r)}}return null},u.prototype._read_content_word=function(e,t){var n="";return this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(n=this.__patterns.unformatted_content_delimiter.read()),n||(n=t&&t.type===l.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),n?this._create_token(l.TEXT,n):null},e.exports.Tokenizer=u,e.exports.TOKEN=l}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}(18);o=n}();var a=o;i=[n,n(58553),n(87804)],r=function(e){var t=n(58553),i=n(87804);return{html_beautify:function(e,n){return a(e,n,t.js_beautify,i.css_beautify)}}}.apply(t,i),void 0===r||(e.exports=r)}()},58553:function(e,t){var n;!function(){var i;!function(){"use strict";var e=[function(e,t,n){var i=n(1).Beautifier,r=n(5).Options;e.exports=function(e,t){return new i(e,t).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(2).Output,r=n(3).Token,o=n(4),a=n(5).Options,s=n(7).Tokenizer,l=n(7).line_starters,c=n(7).positionable_operators,u=n(7).TOKEN;function h(e,t){return-1!==t.indexOf(e)}function d(e,t){return e&&e.type===u.RESERVED&&e.text===t}function p(e,t){return e&&e.type===u.RESERVED&&h(e.text,t)}var f=["case","return","do","if","throw","else","await","break","continue","async"],g=function(e){for(var t={},n=0;nn&&(n=e.line_indent_level)),{mode:t,parent:e,last_token:e?e.last_token:new r(u.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:n,alignment:0,line_indent_level:e?e.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0}},E.prototype._reset=function(e){var t=e.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new i(this._options,t),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(v);var n=new s(e,this._options);return this._tokens=n.tokenize(),e},E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._reset(this._source_text),t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&o.lineBreak.test(e||"")&&(t=e.match(o.lineBreak)[0]));for(var n=this._tokens.next();n;)this.handle_token(n),this._last_last_text=this._flags.last_token.text,this._flags.last_token=n,n=this._tokens.next();return this._output.get_code(t)},E.prototype.handle_token=function(e,t){e.type===u.START_EXPR?this.handle_start_expr(e):e.type===u.END_EXPR?this.handle_end_expr(e):e.type===u.START_BLOCK?this.handle_start_block(e):e.type===u.END_BLOCK?this.handle_end_block(e):e.type===u.WORD||e.type===u.RESERVED?this.handle_word(e):e.type===u.SEMICOLON?this.handle_semicolon(e):e.type===u.STRING?this.handle_string(e):e.type===u.EQUALS?this.handle_equals(e):e.type===u.OPERATOR?this.handle_operator(e):e.type===u.COMMA?this.handle_comma(e):e.type===u.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===u.COMMENT?this.handle_comment(e,t):e.type===u.DOT?this.handle_dot(e):e.type===u.EOF?this.handle_eof(e):(e.type,u.UNKNOWN,this.handle_unknown(e,t))},E.prototype.handle_whitespace_and_comments=function(e,t){var n=e.newlines,i=this._options.keep_array_indentation&&C(this._flags.mode);if(e.comments_before)for(var r=e.comments_before.next();r;)this.handle_whitespace_and_comments(r,t),this.handle_token(r,t),r=e.comments_before.next();if(i)for(var o=0;o0,t);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,t);for(var a=1;a0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},E.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},E.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===y&&_(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},E.prototype.start_of_object_property=function(){return this._flags.parent.mode===b&&this._flags.mode===y&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||p(this._flags.last_token,["get","set"]))},E.prototype.start_of_statement=function(e){var t=!1;return!!(t=(t=(t=(t=(t=(t=(t=t||p(this._flags.last_token,["var","let","const"])&&e.type===u.WORD)||d(this._flags.last_token,"do"))||!(this._flags.parent.mode===b&&this._flags.mode===y)&&p(this._flags.last_token,M)&&!e.newlines)||d(this._flags.last_token,"else")&&!(d(e,"if")&&!e.comments_before))||this._flags.last_token.type===u.END_EXPR&&(this._previous_flags.mode===x||this._previous_flags.mode===S))||this._flags.last_token.type===u.WORD&&this._flags.mode===v&&!this._flags.in_case&&!("--"===e.text||"++"===e.text)&&"function"!==this._last_last_text&&e.type!==u.WORD&&e.type!==u.RESERVED)||this._flags.mode===b&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||p(this._flags.last_token,["get","set"])))&&(this.set_mode(y),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,p(e,["do","for","if","while"])),!0)},E.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=k;if("["===e.text){if(this._flags.last_token.type===u.WORD||")"===this._flags.last_token.text)return p(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));t=w,C(this._flags.mode)&&("["!==this._flags.last_token.text&&(","!==this._flags.last_token.text||"]"!==this._last_last_text&&"}"!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline()),h(this._flags.last_token.type,[u.START_EXPR,u.END_EXPR,u.WORD,u.OPERATOR,u.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===u.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=x):h(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=S):h(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===e.whitespace_before?this._output.space_before_token=!1:(h(this._flags.last_token.text,l)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===u.EQUALS||this._flags.last_token.type===u.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===u.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var i=this._tokens.peek(-4);p(n,["async","function"])||"*"===n.text&&p(i,["async","function"])?this._output.space_before_token=!0:this._flags.mode===b?"{"!==n.text&&","!==n.text&&("*"!==n.text||"{"!==i.text&&","!==i.text)||(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===u.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(h(this._last_last_text,["function","yield"])||this._flags.mode===b&&h(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===u.START_BLOCK?this.print_newline():this._flags.last_token.type!==u.END_EXPR&&this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==u.COMMA||this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},E.prototype.handle_end_expr=function(e){for(;this._flags.mode===y;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,"]"===e.text&&C(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==u.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(e),this.restore_mode(),_(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===S&&(this._previous_flags.mode=k,this._flags.do_block=!1,this._flags.do_while=!1)},E.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===u.END_EXPR?(this.set_mode(v),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(v):n&&(h(n.text,[":",","])&&h(t.type,[u.STRING,u.WORD,u.RESERVED])||h(t.text,["get","set","..."])&&h(n.type,[u.WORD,u.RESERVED]))?h(this._last_last_text,["class","interface"])&&!h(n.text,[":",","])?this.set_mode(v):this.set_mode(b):this._flags.last_token.type===u.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(v):h(this._flags.last_token.type,[u.EQUALS,u.START_EXPR,u.COMMA,u.OPERATOR])||p(this._flags.last_token,["return","throw","import","default"])?this.set_mode(b):this.set_mode(v),this._flags.last_token&&p(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var i=!t.comments_before&&"}"===t.text,r=i&&"function"===this._flags.last_word&&this._flags.last_token.type===u.END_EXPR;if(this._options.brace_preserve_inline){var o=0,a=null;this._flags.inline_frame=!0;do{if(o+=1,(a=this._tokens.peek(o-1)).newlines){this._flags.inline_frame=!1;break}}while(a.type!==u.EOF&&(a.type!==u.END_BLOCK||a.opened!==e))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==u.OPERATOR&&(r||this._flags.last_token.type===u.EQUALS||p(this._flags.last_token,f)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!C(this._previous_flags.mode)||this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.COMMA||((this._flags.last_token.type===u.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===u.COMMA||this._flags.last_token.type===u.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==u.OPERATOR&&this._flags.last_token.type!==u.START_EXPR&&(h(this._flags.last_token.type,[u.START_BLOCK,u.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),i||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},E.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===y;)this.restore_mode();var t=this._flags.last_token.type===u.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:"expand"===this._options.brace_style?t||this.print_newline():t||(C(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(e)},E.prototype.handle_word=function(e){if(e.type===u.RESERVED)if(h(e.text,["set","get"])&&this._flags.mode!==b)e.type=u.WORD;else if("import"===e.text&&h(this._tokens.peek().text,["(","."]))e.type=u.WORD;else if(h(e.text,["as","from"])&&!this._flags.import_block)e.type=u.WORD;else if(this._flags.mode===b){":"===this._tokens.peek().text&&(e.type=u.WORD)}if(this.start_of_statement(e)?p(this._flags.last_token,["var","let","const"])&&e.type===u.WORD&&(this._flags.declaration_statement=!0):!e.newlines||P(this._flags.mode)||this._flags.last_token.type===u.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===u.EQUALS||!this._options.preserve_newlines&&p(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(e):(this.handle_whitespace_and_comments(e),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(d(e,"while"))return this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&d(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===y;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&p(e,["case","default"]))return this.print_newline(),this._flags.case_block||!this._flags.case_body&&!this._options.jslint_happy||this.deindent(),this._flags.case_body=!1,this.print_token(e),void(this._flags.in_case=!0);if(this._flags.last_token.type!==u.COMMA&&this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.EQUALS&&this._flags.last_token.type!==u.OPERATOR||this.start_of_object_property()||h(this._flags.last_token.text,["+","-"])&&":"===this._last_last_text&&this._flags.parent.mode===b||this.allow_wrap_or_preserved_newline(e),d(e,"function"))return(h(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!h(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==u.OPERATOR)&&(this._output.just_added_blankline()||e.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD?p(this._flags.last_token,["get","set","new","export"])||p(this._flags.last_token,M)||d(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===u.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!P(this._flags.mode)&&!C(this._flags.mode))&&this.print_newline(),this.print_token(e),void(this._flags.last_word=e.text);var t="NONE";(this._flags.last_token.type===u.END_BLOCK?this._previous_flags.inline_frame?t="SPACE":p(e,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines?t="NEWLINE":(t="SPACE",this._output.space_before_token=!0):t="NEWLINE":this._flags.last_token.type===u.SEMICOLON&&this._flags.mode===v?t="NEWLINE":this._flags.last_token.type===u.SEMICOLON&&P(this._flags.mode)?t="SPACE":this._flags.last_token.type===u.STRING?t="NEWLINE":this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD||"*"===this._flags.last_token.text&&(h(this._last_last_text,["function","yield"])||this._flags.mode===b&&h(this._last_last_text,["{",","]))?t="SPACE":this._flags.last_token.type===u.START_BLOCK?t=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===u.END_EXPR&&(this._output.space_before_token=!0,t="NEWLINE"),p(e,l)&&")"!==this._flags.last_token.text&&(t=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),p(e,["else","catch","finally"]))?(this._flags.last_token.type!==u.END_BLOCK||this._previous_flags.mode!==v||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this.print_newline():(this._output.trim(!0),"}"!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):"NEWLINE"===t?p(this._flags.last_token,f)||"declare"===this._flags.last_token.text&&p(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==u.END_EXPR?this._flags.last_token.type===u.START_EXPR&&p(e,["var","let","const"])||":"===this._flags.last_token.text||(d(e,"if")&&d(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):p(e,l)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&C(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===t&&(this._output.space_before_token=!0);!e.previous||e.previous.type!==u.WORD&&e.previous.type!==u.RESERVED||(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===u.RESERVED&&("do"===e.text?this._flags.do_block=!0:"if"===e.text?this._flags.if_block=!0:"import"===e.text?this._flags.import_block=!0:this._flags.import_block&&d(e,"from")&&(this._flags.import_block=!1))},E.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);for(var t=this._tokens.peek();!(this._flags.mode!==y||this._flags.if_block&&d(t,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)},E.prototype.handle_string=function(e){(!e.text.startsWith("`")||0!==e.newlines||""!==e.whitespace_before||")"!==e.previous.text&&this._flags.last_token.type!==u.WORD)&&(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===u.COMMA||this._flags.last_token.type===u.START_EXPR||this._flags.last_token.type===u.EQUALS||this._flags.last_token.type===u.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):!e.text.startsWith("`")||this._flags.last_token.type!==u.END_EXPR||"]"!==e.previous.text&&")"!==e.previous.text||0!==e.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(e)},E.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0},E.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(P(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)):this._flags.mode===b||this._flags.mode===y&&this._flags.parent.mode===b?(this._flags.mode===y&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)},E.prototype.handle_operator=function(e){var t="*"===e.text&&(p(this._flags.last_token,["function","yield"])||h(this._flags.last_token.type,[u.START_BLOCK,u.COMMA,u.END_BLOCK,u.SEMICOLON])),n=h(e.text,["-","+"])&&(h(this._flags.last_token.type,[u.START_BLOCK,u.START_EXPR,u.EQUALS,u.OPERATOR])||h(this._flags.last_token.text,l)||","===this._flags.last_token.text);if(this.start_of_statement(e));else{var i=!t;this.handle_whitespace_and_comments(e,i)}if("*"!==e.text||this._flags.last_token.type!==u.DOT)if("::"!==e.text)if(h(e.text,["-","+"])&&this.start_of_object_property())this.print_token(e);else{if(this._flags.last_token.type===u.OPERATOR&&h(this._options.operator_position,m)&&this.allow_wrap_or_preserved_newline(e),":"===e.text&&this._flags.in_case)return this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==u.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0));var r=!0,o=!0,a=!1;if(":"===e.text?0===this._flags.ternary_depth?r=!1:(this._flags.ternary_depth-=1,a=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!n&&!t&&this._options.preserve_newlines&&h(e.text,c)){var s=":"===e.text,d=s&&a,b=s&&!a;switch(this._options.operator_position){case g.before_newline:return this._output.space_before_token=!b,this.print_token(e),s&&!d||this.allow_wrap_or_preserved_newline(e),void(this._output.space_before_token=!0);case g.after_newline:return this._output.space_before_token=!0,!s||d?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),void(this._output.space_before_token=!0);case g.preserve_newline:return b||this.allow_wrap_or_preserved_newline(e),r=!(this._output.just_added_newline()||b),this._output.space_before_token=r,this.print_token(e),void(this._output.space_before_token=!0)}}if(t){this.allow_wrap_or_preserved_newline(e),r=!1;var w=this._tokens.peek();o=w&&h(w.type,[u.WORD,u.RESERVED])}else if("..."===e.text)this.allow_wrap_or_preserved_newline(e),r=this._flags.last_token.type===u.START_BLOCK,o=!1;else if(h(e.text,["--","++","!","~"])||n){if(this._flags.last_token.type!==u.COMMA&&this._flags.last_token.type!==u.START_EXPR||this.allow_wrap_or_preserved_newline(e),r=!1,o=!1,e.newlines&&("--"===e.text||"++"===e.text||"~"===e.text)){var x=p(this._flags.last_token,f)&&e.newlines;x&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(x,!0)}";"===this._flags.last_token.text&&P(this._flags.mode)&&(r=!0),this._flags.last_token.type===u.RESERVED?r=!0:this._flags.last_token.type===u.END_EXPR?r=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===u.OPERATOR&&(r=h(e.text,["--","-","++","+"])&&h(this._flags.last_token.text,["--","-","++","+"]),h(e.text,["+","-"])&&h(this._flags.last_token.text,["--","++"])&&(o=!0)),(this._flags.mode!==v||this._flags.inline_frame)&&this._flags.mode!==y||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()}this._output.space_before_token=this._output.space_before_token||r,this.print_token(e),this._output.space_before_token=o}else this.print_token(e);else this.print_token(e)},E.prototype.handle_block_comment=function(e,t){return this._output.raw?(this._output.add_raw_token(e),void(e.directives&&"end"===e.directives.preserve&&(this._output.raw=this._options.test_output_raw))):e.directives?(this.print_newline(!1,t),this.print_token(e),"start"===e.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):o.newline.test(e.text)||e.newlines?void this.print_block_commment(e,t):(this._output.space_before_token=!0,this.print_token(e),void(this._output.space_before_token=!0))},E.prototype.print_block_commment=function(e,t){var n,i=function(e){for(var t=[],n=(e=e.replace(o.allLineBreaks,"\n")).indexOf("\n");-1!==n;)t.push(e.substring(0,n)),n=(e=e.substring(n+1)).indexOf("\n");return e.length&&t.push(e),t}(e.text),r=!1,a=!1,s=e.whitespace_before,l=s.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(i[0]),this.print_newline(!1,t),i.length>1){for(r=function(e,t){for(var n=0;n0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},function(e){e.exports.Token=function(e,t,n,i){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},function(e,t){var n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",i="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",r="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",o="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",a="(?:"+o+"|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+i+"])",s="(?:"+o+"|["+n+i+r+"])*";t.identifier=new RegExp(a+s,"g"),t.identifierStart=new RegExp(a),t.identifierMatch=new RegExp("(?:"+o+"|["+n+i+r+"])+");t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp("\r\n|"+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g")},function(e,t,n){var i=n(6).Options,r=["before-newline","after-newline","preserve-newline"];function o(e){i.call(this,e,"js");var t=this.raw_options.brace_style||null;"expand-strict"===t?this.raw_options.brace_style="expand":"collapse-preserve-inline"===t?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var o=0;o>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),v=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";v=(v="\\?\\.(?!\\d) "+(v=v.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var y,b=new RegExp(v),w="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),x=w.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),S=new RegExp("^(?:"+x.join("|")+")$"),k=function(e,t){r.call(this,e,t),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new l(this._input),i=new c(this._input).read_options(this._options);this.__patterns={template:i,identifier:i.starting_with(s.identifier).matching(s.identifierMatch),number:n.matching(p),punct:n.matching(b),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(//),include:n.starting_with(/#include/).until_after(s.lineBreak),shebang:n.starting_with(/#!/).until_after(s.lineBreak),xml:n.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:i.until(/['\\\n\r\u2028\u2029]/),double_quote:i.until(/["\\\n\r\u2028\u2029]/),template_text:i.until(/[`\\$]/),template_expression:i.until(/[`}\\]/)}};(k.prototype=new r)._is_comment=function(e){return e.type===h.COMMENT||e.type===h.BLOCK_COMMENT||e.type===h.UNKNOWN},k.prototype._is_opening=function(e){return e.type===h.START_BLOCK||e.type===h.START_EXPR},k.prototype._is_closing=function(e,t){return(e.type===h.END_BLOCK||e.type===h.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},k.prototype._reset=function(){y=!1},k.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(h.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_non_javascript(i))||this._read_string(i))||this._read_pair(i,this._input.peek(1)))||this._read_word(e))||this._read_singles(i))||this._read_comment(i))||this._read_regexp(i,e))||this._read_xml(i,e))||this._read_punctuation())||this._create_token(h.UNKNOWN,this._input.next())},k.prototype._read_word=function(e){var t;return""!==(t=this.__patterns.identifier.read())?(t=t.replace(s.allLineBreaks,"\n"),e.type!==h.DOT&&(e.type!==h.RESERVED||"set"!==e.text&&"get"!==e.text)&&S.test(t)?"in"!==t&&"of"!==t||e.type!==h.WORD&&e.type!==h.STRING?this._create_token(h.RESERVED,t):this._create_token(h.OPERATOR,t):this._create_token(h.WORD,t)):""!==(t=this.__patterns.number.read())?this._create_token(h.WORD,t):void 0},k.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(h.START_EXPR,e):")"===e||"]"===e?t=this._create_token(h.END_EXPR,e):"{"===e?t=this._create_token(h.START_BLOCK,e):"}"===e?t=this._create_token(h.END_BLOCK,e):";"===e?t=this._create_token(h.SEMICOLON,e):"."===e&&g.test(this._input.peek(1))?t=this._create_token(h.DOT,e):","===e&&(t=this._create_token(h.COMMA,e)),t&&this._input.next(),t},k.prototype._read_pair=function(e,t){var n=null;return"#"===e&&"{"===t&&(n=this._create_token(h.START_BLOCK,e+t)),n&&(this._input.next(),this._input.next()),n},k.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)return"="===e?this._create_token(h.EQUALS,e):"?."===e?this._create_token(h.DOT,e):this._create_token(h.OPERATOR,e)},k.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read()))return this._create_token(h.UNKNOWN,t.trim()+"\n");if(t=this.__patterns.include.read())return this._create_token(h.UNKNOWN,t.trim()+"\n");e=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(f)){do{n+=e=this._input.next()}while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(h.WORD,n)}this._input.back()}else if("<"===e&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(s.newline);)t+=this._input.next();return y=!0,this._create_token(h.COMMENT,t)}}else if(y&&"-"===e&&(t=this.__patterns.html_comment_end.read()))return y=!1,this._create_token(h.COMMENT,t);return null},k.prototype._read_comment=function(e){var t=null;if("/"===e){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var i=d.get_directives(n);i&&"start"===i.ignore&&(n+=d.readIgnored(this._input)),n=n.replace(s.allLineBreaks,"\n"),(t=this._create_token(h.BLOCK_COMMENT,n)).directives=i}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),t=this._create_token(h.COMMENT,n))}return t},k.prototype._read_string=function(e){if("`"===e||"'"===e||'"'===e){var t=this._input.next();return this.has_char_escapes=!1,t+="`"===e?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(e),this.has_char_escapes&&this._options.unescape_strings&&(t=function(e){var t="",n=0,r=new i(e),o=null;for(;r.hasNext();)if((o=r.match(/([\s]|[^\\]|\\\\)+/g))&&(t+=o[0]),"\\"===r.peek()){if(r.next(),"x"===r.peek())o=r.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==r.peek()){t+="\\",r.hasNext()&&(t+=r.next());continue}(o=r.match(/u([0-9A-Fa-f]{4})/g))||(o=r.match(/u\{([0-9A-Fa-f]+)\}/g))}if(!o)return e;if((n=parseInt(o[1],16))>126&&n<=255&&0===o[0].indexOf("x"))return e;t+=n>=0&&n<32||n>1114111?"\\"+o[0]:34===n||39===n||92===n?"\\"+String.fromCharCode(n):String.fromCharCode(n)}return t}(t)),this._input.peek()===e&&(t+=this._input.next()),t=t.replace(s.allLineBreaks,"\n"),this._create_token(h.STRING,t)}return null},k.prototype._allow_regexp_or_xml=function(e){return e.type===h.RESERVED&&u(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===h.END_EXPR&&")"===e.text&&e.opened.previous.type===h.RESERVED&&u(e.opened.previous.text,["if","while","for"])||u(e.type,[h.COMMENT,h.START_EXPR,h.START_BLOCK,h.START,h.END_BLOCK,h.OPERATOR,h.EQUALS,h.EOF,h.SEMICOLON,h.COMMA])},k.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){for(var n=this._input.next(),i=!1,r=!1;this._input.hasNext()&&(i||r||this._input.peek()!==e)&&!this._input.testChar(s.newline);)n+=this._input.peek(),i?i=!1:(i="\\"===this._input.peek(),"["===this._input.peek()?r=!0:"]"===this._input.peek()&&(r=!1)),this._input.next();return this._input.peek()===e&&(n+=this._input.next(),n+=this._input.read(s.identifier)),this._create_token(h.STRING,n)}return null},k.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var n="",i=this.__patterns.xml.read_match();if(i){for(var r=i[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),o=0===r.indexOf("{"),a=0;i;){var l=!!i[1],c=i[2];if(!(!!i[i.length-1]||"![CDATA["===c.slice(0,8))&&(c===r||o&&c.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(l?--a:++a),n+=i[0],a<=0)break;i=this.__patterns.xml.read_match()}return i||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(s.allLineBreaks,"\n"),this._create_token(h.STRING,n)}}return null},k.prototype._read_string_recursive=function(e,t,n){var i,r;"'"===e?r=this.__patterns.single_quote:'"'===e?r=this.__patterns.double_quote:"`"===e?r=this.__patterns.template_text:"}"===e&&(r=this.__patterns.template_expression);for(var o=r.read(),a="";this._input.hasNext();){if((a=this._input.next())===e||!t&&s.newline.test(a)){this._input.back();break}"\\"===a&&this._input.hasNext()?("x"===(i=this._input.peek())||"u"===i?this.has_char_escapes=!0:"\r"===i&&"\n"===this._input.peek(1)&&this._input.next(),a+=this._input.next()):n&&("${"===n&&"$"===a&&"{"===this._input.peek()&&(a+=this._input.next()),n===a&&(a+="`"===e?this._read_string_recursive("}",t,"`"):this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(a+=this._input.next()))),o+=a+=r.read()}return o},e.exports.Tokenizer=k,e.exports.TOKEN=h,e.exports.positionable_operators=m.slice(),e.exports.line_starters=w.slice()},function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position=0&&e=0&&t=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},function(e,t,n){var i=n(8).InputScanner,r=n(3).Token,o=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new i(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new o,this._reset();for(var t=new r(s.START,""),n=null,i=[],a=new o;t.type!==s.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)a.add(e),e=this._get_next_token(t,n);a.isEmpty()||(e.comments_before=a,a=new o),e.parent=n,this._is_opening(e)?(i.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=i.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){return new r(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=s},function(e){function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return 0===this.__tokens_length},t.prototype.hasNext=function(){return this.__position=0&&e/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}o.prototype=new i,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},o.prototype.read_options=function(e){var t=this._create();for(var n in r)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},o.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},o.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},o.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},o.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},e.exports.TemplatablePattern=o}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}(0);i=n}();var r=i;void 0===(n=function(){return{js_beautify:r}}.apply(t,[]))||(e.exports=n)}()},15342:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){},function(e,t,n){"use strict";n.r(t),n(0);var i=function(){function e(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}return e.range=function(t,n){return n?t&&t.loc&&n.loc&&t.loc.lexer===n.loc.lexer?new e(t.loc.lexer,t.loc.start,n.loc.end):null:t&&t.loc},e}(),r=function(){function e(e,t){this.text=void 0,this.loc=void 0,this.text=e,this.loc=t}return e.prototype.range=function(t,n){return new e(n,i.range(this,t))},e}(),o=function e(t,n){this.position=void 0;var i,r="KaTeX parse error: "+t,o=n&&n.loc;if(o&&o.start<=o.end){var a=o.lexer.input;i=o.start;var s=o.end;i===a.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=a.slice(i,s).replace(/[^]/g,"$&̲");r+=(i>15?"…"+a.slice(i-15,i):a.slice(0,i))+l+(s+15":">","<":"<",'"':""","'":"'"},c=/[&><"']/g,u=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},h={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(c,(function(e){return l[e]}))},hyphenate:function(e){return e.replace(s,"-$1").toLowerCase()},getBaseElem:u,isCharacterBox:function(e){var t=u(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return null!=t?t[1]:"_relative"}},d=function(){function e(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,e=e||{},this.displayMode=h.deflt(e.displayMode,!1),this.output=h.deflt(e.output,"htmlAndMathml"),this.leqno=h.deflt(e.leqno,!1),this.fleqn=h.deflt(e.fleqn,!1),this.throwOnError=h.deflt(e.throwOnError,!0),this.errorColor=h.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,h.deflt(e.minRuleThickness,0)),this.colorIsTextColor=h.deflt(e.colorIsTextColor,!1),this.strict=h.deflt(e.strict,"warn"),this.trust=h.deflt(e.trust,!1),this.maxSize=Math.max(0,h.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,h.deflt(e.maxExpand,1e3))}var t=e.prototype;return t.reportNonstrict=function(e,t,n){var i=this.strict;if("function"==typeof i&&(i=i(e,t,n)),i&&"ignore"!==i){if(!0===i||"error"===i)throw new a("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===i?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+i+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,n){var i=this.strict;if("function"==typeof i)try{i=i(e,t,n)}catch(e){i="error"}return!(!i||"ignore"===i||!0!==i&&"error"!==i&&("warn"===i?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+i+"': "+t+" ["+e+"]"),1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=h.protocolFromUrl(e.url));var t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),p=function(){function e(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}var t=e.prototype;return t.sup=function(){return f[g[this.id]]},t.sub=function(){return f[m[this.id]]},t.fracNum=function(){return f[v[this.id]]},t.fracDen=function(){return f[y[this.id]]},t.cramp=function(){return f[b[this.id]]},t.text=function(){return f[w[this.id]]},t.isTight=function(){return this.size>=2},e}(),f=[new p(0,0,!1),new p(1,0,!0),new p(2,1,!1),new p(3,1,!0),new p(4,2,!1),new p(5,2,!0),new p(6,3,!1),new p(7,3,!0)],g=[4,5,4,5,6,7,6,7],m=[5,5,5,5,7,7,7,7],v=[2,3,4,5,6,7,6,7],y=[3,3,5,5,7,7,7,7],b=[1,1,3,3,5,5,7,7],w=[0,1,2,3,2,3,2,3],x={DISPLAY:f[0],TEXT:f[2],SCRIPT:f[4],SCRIPTSCRIPT:f[6]},S=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],k=[];function _(e){for(var t=0;t=k[t]&&e<=k[t+1])return!0;return!1}S.forEach((function(e){return e.blocks.forEach((function(e){return k.push.apply(k,e)}))}));var C=80,P={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},E=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return h.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t"},D=function(){function e(e,t,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,L.call(this,e,n,i),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return h.contains(this.classes,e)},t.toNode=function(){return A.call(this,"span")},t.toMarkup=function(){return T.call(this,"span")},e}(),N=function(){function e(e,t,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,L.call(this,t,i),this.children=n||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return h.contains(this.classes,e)},t.toNode=function(){return A.call(this,"a")},t.toMarkup=function(){return T.call(this,"a")},e}(),I=function(){function e(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}var t=e.prototype;return t.hasClass=function(e){return h.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e=""+this.alt+"=r[0]&&e<=r[1])return n.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=B[this.text])}var t=e.prototype;return t.hasClass=function(e){return h.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&((t=document.createElement("span")).style.marginRight=this.italic+"em"),this.classes.length>0&&((t=t||document.createElement("span")).className=M(this.classes)),this.style)this.style.hasOwnProperty(n)&&((t=t||document.createElement("span")).style[n]=this.style[n]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(i)&&(n+=h.hyphenate(i)+":"+this.style[i]+";");n&&(e=!0,t+=' style="'+h.escape(n)+'"');var r=h.escape(this.text);return e?(t+=">",t+=r,t+="
    "):r},e}(),O=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n":""},e}(),z=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e},t.toMarkup=function(){var e="",">"),Y(X,J,ce,":",":"),Y(X,J,ce,"≈","\\approx",!0),Y(X,J,ce,"≅","\\cong",!0),Y(X,J,ce,"≥","\\ge"),Y(X,J,ce,"≥","\\geq",!0),Y(X,J,ce,"←","\\gets"),Y(X,J,ce,">","\\gt"),Y(X,J,ce,"∈","\\in",!0),Y(X,J,ce,"","\\@not"),Y(X,J,ce,"⊂","\\subset",!0),Y(X,J,ce,"⊃","\\supset",!0),Y(X,J,ce,"⊆","\\subseteq",!0),Y(X,J,ce,"⊇","\\supseteq",!0),Y(X,ee,ce,"⊈","\\nsubseteq",!0),Y(X,ee,ce,"⊉","\\nsupseteq",!0),Y(X,J,ce,"⊨","\\models"),Y(X,J,ce,"←","\\leftarrow",!0),Y(X,J,ce,"≤","\\le"),Y(X,J,ce,"≤","\\leq",!0),Y(X,J,ce,"<","\\lt"),Y(X,J,ce,"→","\\rightarrow",!0),Y(X,J,ce,"→","\\to"),Y(X,ee,ce,"≱","\\ngeq",!0),Y(X,ee,ce,"≰","\\nleq",!0),Y(X,J,ue," ","\\ "),Y(X,J,ue," ","~"),Y(X,J,ue," ","\\space"),Y(X,J,ue," ","\\nobreakspace"),Y(Q,J,ue," ","\\ "),Y(Q,J,ue," ","~"),Y(Q,J,ue," ","\\space"),Y(Q,J,ue," ","\\nobreakspace"),Y(X,J,ue,null,"\\nobreak"),Y(X,J,ue,null,"\\allowbreak"),Y(X,J,le,",",","),Y(X,J,le,";",";"),Y(X,ee,ne,"⊼","\\barwedge",!0),Y(X,ee,ne,"⊻","\\veebar",!0),Y(X,J,ne,"⊙","\\odot",!0),Y(X,J,ne,"⊕","\\oplus",!0),Y(X,J,ne,"⊗","\\otimes",!0),Y(X,J,he,"∂","\\partial",!0),Y(X,J,ne,"⊘","\\oslash",!0),Y(X,ee,ne,"⊚","\\circledcirc",!0),Y(X,ee,ne,"⊡","\\boxdot",!0),Y(X,J,ne,"△","\\bigtriangleup"),Y(X,J,ne,"▽","\\bigtriangledown"),Y(X,J,ne,"†","\\dagger"),Y(X,J,ne,"⋄","\\diamond"),Y(X,J,ne,"⋆","\\star"),Y(X,J,ne,"◃","\\triangleleft"),Y(X,J,ne,"▹","\\triangleright"),Y(X,J,se,"{","\\{"),Y(Q,J,he,"{","\\{"),Y(Q,J,he,"{","\\textbraceleft"),Y(X,J,ie,"}","\\}"),Y(Q,J,he,"}","\\}"),Y(Q,J,he,"}","\\textbraceright"),Y(X,J,se,"{","\\lbrace"),Y(X,J,ie,"}","\\rbrace"),Y(X,J,se,"[","\\lbrack"),Y(Q,J,he,"[","\\lbrack"),Y(X,J,ie,"]","\\rbrack"),Y(Q,J,he,"]","\\rbrack"),Y(X,J,se,"(","\\lparen"),Y(X,J,ie,")","\\rparen"),Y(Q,J,he,"<","\\textless"),Y(Q,J,he,">","\\textgreater"),Y(X,J,se,"⌊","\\lfloor",!0),Y(X,J,ie,"⌋","\\rfloor",!0),Y(X,J,se,"⌈","\\lceil",!0),Y(X,J,ie,"⌉","\\rceil",!0),Y(X,J,he,"\\","\\backslash"),Y(X,J,he,"∣","|"),Y(X,J,he,"∣","\\vert"),Y(Q,J,he,"|","\\textbar"),Y(X,J,he,"∥","\\|"),Y(X,J,he,"∥","\\Vert"),Y(Q,J,he,"∥","\\textbardbl"),Y(Q,J,he,"~","\\textasciitilde"),Y(Q,J,he,"\\","\\textbackslash"),Y(Q,J,he,"^","\\textasciicircum"),Y(X,J,ce,"↑","\\uparrow",!0),Y(X,J,ce,"⇑","\\Uparrow",!0),Y(X,J,ce,"↓","\\downarrow",!0),Y(X,J,ce,"⇓","\\Downarrow",!0),Y(X,J,ce,"↕","\\updownarrow",!0),Y(X,J,ce,"⇕","\\Updownarrow",!0),Y(X,J,ae,"∐","\\coprod"),Y(X,J,ae,"⋁","\\bigvee"),Y(X,J,ae,"⋀","\\bigwedge"),Y(X,J,ae,"⨄","\\biguplus"),Y(X,J,ae,"⋂","\\bigcap"),Y(X,J,ae,"⋃","\\bigcup"),Y(X,J,ae,"∫","\\int"),Y(X,J,ae,"∫","\\intop"),Y(X,J,ae,"∬","\\iint"),Y(X,J,ae,"∭","\\iiint"),Y(X,J,ae,"∏","\\prod"),Y(X,J,ae,"∑","\\sum"),Y(X,J,ae,"⨂","\\bigotimes"),Y(X,J,ae,"⨁","\\bigoplus"),Y(X,J,ae,"⨀","\\bigodot"),Y(X,J,ae,"∮","\\oint"),Y(X,J,ae,"∯","\\oiint"),Y(X,J,ae,"∰","\\oiiint"),Y(X,J,ae,"⨆","\\bigsqcup"),Y(X,J,ae,"∫","\\smallint"),Y(Q,J,re,"…","\\textellipsis"),Y(X,J,re,"…","\\mathellipsis"),Y(Q,J,re,"…","\\ldots",!0),Y(X,J,re,"…","\\ldots",!0),Y(X,J,re,"⋯","\\@cdots",!0),Y(X,J,re,"⋱","\\ddots",!0),Y(X,J,he,"⋮","\\varvdots"),Y(X,J,te,"ˊ","\\acute"),Y(X,J,te,"ˋ","\\grave"),Y(X,J,te,"¨","\\ddot"),Y(X,J,te,"~","\\tilde"),Y(X,J,te,"ˉ","\\bar"),Y(X,J,te,"˘","\\breve"),Y(X,J,te,"ˇ","\\check"),Y(X,J,te,"^","\\hat"),Y(X,J,te,"⃗","\\vec"),Y(X,J,te,"˙","\\dot"),Y(X,J,te,"˚","\\mathring"),Y(X,J,oe,"ı","\\imath",!0),Y(X,J,oe,"ȷ","\\jmath",!0),Y(Q,J,he,"ı","\\i",!0),Y(Q,J,he,"ȷ","\\j",!0),Y(Q,J,he,"ß","\\ss",!0),Y(Q,J,he,"æ","\\ae",!0),Y(Q,J,he,"æ","\\ae",!0),Y(Q,J,he,"œ","\\oe",!0),Y(Q,J,he,"ø","\\o",!0),Y(Q,J,he,"Æ","\\AE",!0),Y(Q,J,he,"Œ","\\OE",!0),Y(Q,J,he,"Ø","\\O",!0),Y(Q,J,te,"ˊ","\\'"),Y(Q,J,te,"ˋ","\\`"),Y(Q,J,te,"ˆ","\\^"),Y(Q,J,te,"˜","\\~"),Y(Q,J,te,"ˉ","\\="),Y(Q,J,te,"˘","\\u"),Y(Q,J,te,"˙","\\."),Y(Q,J,te,"˚","\\r"),Y(Q,J,te,"ˇ","\\v"),Y(Q,J,te,"¨",'\\"'),Y(Q,J,te,"˝","\\H"),Y(Q,J,te,"◯","\\textcircled");var de={"--":!0,"---":!0,"``":!0,"''":!0};Y(Q,J,he,"–","--"),Y(Q,J,he,"–","\\textendash"),Y(Q,J,he,"—","---"),Y(Q,J,he,"—","\\textemdash"),Y(Q,J,he,"‘","`"),Y(Q,J,he,"‘","\\textquoteleft"),Y(Q,J,he,"’","'"),Y(Q,J,he,"’","\\textquoteright"),Y(Q,J,he,"“","``"),Y(Q,J,he,"“","\\textquotedblleft"),Y(Q,J,he,"”","''"),Y(Q,J,he,"”","\\textquotedblright"),Y(X,J,he,"°","\\degree",!0),Y(Q,J,he,"°","\\degree"),Y(Q,J,he,"°","\\textdegree",!0),Y(X,J,oe,"£","\\pounds"),Y(X,J,oe,"£","\\mathsterling",!0),Y(Q,J,oe,"£","\\pounds"),Y(Q,J,oe,"£","\\textsterling",!0),Y(X,ee,he,"✠","\\maltese"),Y(Q,ee,he,"✠","\\maltese"),Y(Q,J,ue," ","\\ "),Y(Q,J,ue," "," "),Y(Q,J,ue," ","~");for(var pe='0123456789/@."',fe=0;fe=5?0:e>=3?1:2]){var n=G[t]={cssEmPerMu:H.quad[t]/18};for(var i in H)H.hasOwnProperty(i)&&(n[i]=H[i][t])}return G[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();Be.BASESIZE=6;var Re=Be,Oe={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Fe={ex:!0,em:!0,mu:!0},ze=function(e){return"string"!=typeof e&&(e=e.unit),e in Oe||e in Fe||"ex"===e},je=function(e,t){var n;if(e.unit in Oe)n=Oe[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var i;if(i=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=i.fontMetrics().xHeight;else{if("em"!==e.unit)throw new a("Invalid unit: '"+e.unit+"'");n=i.fontMetrics().quad}i!==t&&(n*=i.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},$e=["\\imath","ı","\\jmath","ȷ","\\pounds","\\mathsterling","\\textsterling","£"],He=function(e,t,n){return q[n][e]&&q[n][e].replace&&(e=q[n][e].replace),{value:e,metrics:K(e,t,n)}},Ze=function(e,t,n,i,r){var o,a=He(e,t,n),s=a.metrics;if(e=a.value,s){var l=s.italic;("text"===n||i&&"mathit"===i.font)&&(l=0),o=new R(e,s.height,s.depth,l,s.skew,s.width,r)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+n+"'"),o=new R(e,0,0,0,0,0,r);if(i){o.maxFontSize=i.sizeMultiplier,i.style.isTight()&&o.classes.push("mtight");var c=i.getColor();c&&(o.style.color=c)}return o},Ke=function(e,t){if(M(e.classes)!==M(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},Ge=function(e){for(var t=0,n=0,i=0,r=0;rt&&(t=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=i},Ue=function(e,t,n,i){var r=new D(e,t,n,i);return Ge(r),r},Ve=function(e,t,n,i){return new D(e,t,n,i)},We=function(e){var t=new E(e);return Ge(t),t},qe=function(e,t,n){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}return i+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},Ye={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Xe={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Qe={fontMap:Ye,makeSymbol:Ze,mathsym:function(e,t,n,i){return void 0===i&&(i=[]),"boldsymbol"===n.font&&He(e,"Main-Bold",t).metrics?Ze(e,"Main-Bold",t,n,i.concat(["mathbf"])):"\\"===e||"main"===q[t][e].font?Ze(e,"Main-Regular",t,n,i):Ze(e,"AMS-Regular",t,n,i.concat(["amsrm"]))},makeSpan:Ue,makeSvgSpan:Ve,makeLineSpan:function(e,t,n){var i=Ue([e],[],t);return i.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),i.style.borderBottomWidth=i.height+"em",i.maxFontSize=1,i},makeAnchor:function(e,t,n,i){var r=new N(e,t,n,i);return Ge(r),r},makeFragment:We,wrapFragment:function(e,t){return e instanceof E?Ue([],[e],t):e},makeVList:function(e,t){for(var n=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],i=-t[0].shift-t[0].elem.depth,r=i,o=1;o0&&(o.push(Et(a,t)),a=[]),o.push(r[s]));a.length>0&&o.push(Et(a,t)),n&&((i=Et(wt(n,t,!0))).classes=["tag"],o.push(i));var c=gt(["katex-html"],o);if(c.setAttribute("aria-hidden","true"),i){var u=i.children[0];u.style.height=c.height+c.depth+"em",u.style.verticalAlign=-c.depth+"em"}return c}function Lt(e){return new E(e)}var At=function(){function e(e,t){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=e,this.attributes={},this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n"},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),Tt=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return h.escape(this.toText())},t.toText=function(){return this.text},e}(),Dt={MathNode:At,TextNode:Tt,SpaceNode:function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?" ⁣":e>=-.1667&&e<=-.1666?" ⁣":e>=-.2223&&e<=-.2222?" ⁣":e>=-.2778&&e<=-.2777?" ⁣":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e},t.toMarkup=function(){return this.character?""+this.character+"":''},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:Lt},Nt=function(e,t,n){return!q[t][e]||!q[t][e].replace||55349===e.charCodeAt(0)||de.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(e=q[t][e].replace),new Dt.TextNode(e)},It=function(e){return 1===e.length?e[0]:new Dt.MathNode("mrow",e)},Bt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var i=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var r=e.text;return h.contains(["\\imath","\\jmath"],r)?null:(q[i][r]&&q[i][r].replace&&(r=q[i][r].replace),K(r,Qe.fontMap[n].fontName,i)?Qe.fontMap[n].variant:null)},Rt=function(e,t,n){if(1===e.length){var i=Ft(e[0],t);return n&&i instanceof At&&"mo"===i.type&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var r,o=[],a=0;a0&&(p.text=p.text.slice(0,1)+"̸"+p.text.slice(1),o.pop())}}}o.push(s),r=s}return o},Ot=function(e,t,n){return It(Rt(e,t,n))},Ft=function(e,t){if(!e)return new Dt.MathNode("mrow");if(ht[e.type])return ht[e.type](e,t);throw new a("Got group of unknown type: '"+e.type+"'")};function zt(e,t,n,i){var r,o=Rt(e,n);r=1===o.length&&o[0]instanceof At&&h.contains(["mrow","mtable"],o[0].type)?o[0]:new Dt.MathNode("mrow",o);var a=new Dt.MathNode("annotation",[new Dt.TextNode(t)]);a.setAttribute("encoding","application/x-tex");var s=new Dt.MathNode("semantics",[r,a]),l=new Dt.MathNode("math",[s]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var c=i?"katex":"katex-mathml";return Qe.makeSpan([c],[l])}var jt=function(e){return new Re({style:e.displayMode?x.DISPLAY:x.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},$t=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=Qe.makeSpan(n,[e])}return e},Ht=function(e,t,n){var i,r=jt(n);if("mathml"===n.output)return zt(e,t,r,!0);if("html"===n.output){var o=Mt(e,r);i=Qe.makeSpan(["katex"],[o])}else{var a=zt(e,t,r,!1),s=Mt(e,r);i=Qe.makeSpan(["katex"],[a,s])}return $t(i,n)},Zt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋"},Kt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Gt=function(e,t,n,i){var r,o=e.height+e.depth+2*n;if(/fbox|color/.test(t)){if(r=Qe.makeSpan(["stretchy",t],[],i),"fbox"===t){var a=i.color&&i.getColor();a&&(r.style.borderColor=a)}}else{var s=[];/^[bx]cancel$/.test(t)&&s.push(new z({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&s.push(new z({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var l=new O(s,{width:"100%",height:o+"em"});r=Qe.makeSvgSpan([],[l],i)}return r.height=o,r.style.height=o+"em",r},Ut=function(e){var t=new Dt.MathNode("mo",[new Dt.TextNode(Zt[e.substr(1)])]);return t.setAttribute("stretchy","true"),t},Vt=function(e,t){var n=function(){var n=4e5,i=e.label.substr(1);if(h.contains(["widehat","widecheck","widetilde","utilde"],i)){var r,o,a,s="ordgroup"===(f=e.base).type?f.body.length:1;if(s>5)"widehat"===i||"widecheck"===i?(r=420,n=2364,a=.42,o=i+"4"):(r=312,n=2340,a=.34,o="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===i||"widecheck"===i?(n=[0,1062,2364,2364,2364][l],r=[0,239,300,360,420][l],a=[0,.24,.3,.3,.36,.42][l],o=i+l):(n=[0,600,1033,2339,2340][l],r=[0,260,286,306,312][l],a=[0,.26,.286,.3,.306,.34][l],o="tilde"+l)}var c=new F(o),u=new O([c],{width:"100%",height:a+"em",viewBox:"0 0 "+n+" "+r,preserveAspectRatio:"none"});return{span:Qe.makeSvgSpan([],[u],t),minWidth:0,height:a}}var d,p,f,g=[],m=Kt[i],v=m[0],y=m[1],b=m[2],w=b/1e3,x=v.length;if(1===x)d=["hide-tail"],p=[m[3]];else if(2===x)d=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==x)throw new Error("Correct katexImagesData or update code here to support\n "+x+" children.");d=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var S=0;S0&&(i.style.minWidth=r+"em"),i},Wt=function(e,t){var n,i,r,o=et(e,"supsub");o?(n=(i=Je(o.base,"accent")).base,o.base=n,r=function(e){if(e instanceof D)return e;throw new Error("Expected span but got "+String(e)+".")}(Pt(o,t)),o.base=i):n=(i=Je(e,"accent")).base;var a=Pt(n,t.havingCrampedStyle()),s=0;if(i.isShifty&&h.isCharacterBox(n)){var l=h.getBaseElem(n);s=j(Pt(l,t.havingCrampedStyle())).skew}var c,u=Math.min(a.height,t.fontMetrics().xHeight);if(i.isStretchy)c=Vt(i,t),c=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+2*s+"em)",marginLeft:2*s+"em"}:void 0}]},t);else{var d,p;"\\vec"===i.label?(d=Qe.staticSvg("vec",t),p=Qe.svgData.vec[1]):((d=j(d=Qe.makeOrd({mode:i.mode,text:i.label},t,"textord"))).italic=0,p=d.width),c=Qe.makeSpan(["accent-body"],[d]);var f="\\textcircled"===i.label;f&&(c.classes.push("accent-full"),u=a.height);var g=s;f||(g-=p/2),c.style.left=g+"em","\\textcircled"===i.label&&(c.style.top=".2em"),c=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-u},{type:"elem",elem:c}]},t)}var m=Qe.makeSpan(["mord","accent"],[c],t);return r?(r.children[0]=m,r.height=Math.max(m.height,r.height),r.classes[0]="mord",r):m},qt=function(e,t){var n=e.isStretchy?Ut(e.label):new Dt.MathNode("mo",[Nt(e.label,e.mode)]),i=new Dt.MathNode("mover",[Ft(e.base,t),n]);return i.setAttribute("accent","true"),i},Yt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));dt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var n=t[0],i=!Yt.test(e.funcName),r=!i||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:r,base:n}},htmlBuilder:Wt,mathmlBuilder:qt}),dt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=t[0];return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Wt,mathmlBuilder:qt}),dt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var n=e.parser,i=e.funcName,r=t[0];return{type:"accentUnder",mode:n.mode,label:i,base:r}},htmlBuilder:function(e,t){var n=Pt(e.base,t),i=Vt(e,t),r="\\utilde"===e.label?.12:0,o=Qe.makeVList({positionType:"bottom",positionData:i.height+r,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:r},{type:"elem",elem:n}]},t);return Qe.makeSpan(["mord","accentunder"],[o],t)},mathmlBuilder:function(e,t){var n=Ut(e.label),i=new Dt.MathNode("munder",[Ft(e.base,t),n]);return i.setAttribute("accentunder","true"),i}});var Xt=function(e){var t=new Dt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};dt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var i=e.parser,r=e.funcName;return{type:"xArrow",mode:i.mode,label:r,body:t[0],below:n[0]}},htmlBuilder:function(e,t){var n,i=t.style,r=t.havingStyle(i.sup()),o=Qe.wrapFragment(Pt(e.body,r,t),t);o.classes.push("x-arrow-pad"),e.below&&(r=t.havingStyle(i.sub()),(n=Qe.wrapFragment(Pt(e.below,r,t),t)).classes.push("x-arrow-pad"));var a,s=Vt(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,c=-t.fontMetrics().axisHeight-.5*s.height-.111;if((o.depth>.25||"\\xleftequilibrium"===e.label)&&(c-=o.depth),n){var u=-t.fontMetrics().axisHeight+n.height+.5*s.height+.111;a=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:c},{type:"elem",elem:s,shift:l},{type:"elem",elem:n,shift:u}]},t)}else a=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:c},{type:"elem",elem:s,shift:l}]},t);return a.children[0].children[0].children[1].classes.push("svg-align"),Qe.makeSpan(["mrel","x-arrow"],[a],t)},mathmlBuilder:function(e,t){var n,i=Ut(e.label);if(e.body){var r=Xt(Ft(e.body,t));if(e.below){var o=Xt(Ft(e.below,t));n=new Dt.MathNode("munderover",[i,o,r])}else n=new Dt.MathNode("mover",[i,r])}else if(e.below){var a=Xt(Ft(e.below,t));n=new Dt.MathNode("munder",[i,a])}else n=Xt(),n=new Dt.MathNode("mover",[i,n]);return n}}),dt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var n=e.parser,i=Je(t[0],"ordgroup").body,r="",o=0;o","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],pn=[0,1.2,1.8,2.4,3],fn=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],gn=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"stack"}],mn=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],vn=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},yn=function(e,t,n,i){for(var r=Math.min(2,3-i.style.size);rt)return n[r]}return n[n.length-1]},bn=function(e,t,n,i,r,o){var a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=h.contains(dn,e)?fn:h.contains(un,e)?mn:gn;var s=yn(e,t,a,i);return"small"===s.type?function(e,t,n,i,r,o){var a=Qe.makeSymbol(e,"Main-Regular",r,i),s=tn(a,t,i,o);return n&&nn(s,i,t),s}(e,s.style,n,i,r,o):"large"===s.type?rn(e,s.size,n,i,r,o):sn(e,t,n,i,r,o)},wn=function(e,t){var n,i,r=t.havingBaseSizing(),o=yn("\\surd",e*r.sizeMultiplier,mn,r),a=r.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,u=0;return"small"===o.type?(e<1?a=1:e<1.4&&(a=.7),c=(1+s)/a,(n=cn("sqrtMain",l=(1+s+ln)/a,u=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",i=.833/a):"large"===o.type?(u=1080*pn[o.size],c=(pn[o.size]+s)/a,l=(pn[o.size]+s+ln)/a,(n=cn("sqrtSize"+o.size,l,u,s,t)).style.minWidth="1.02em",i=1/a):(l=e+s+ln,c=e+s,u=Math.floor(1e3*e+s)+80,(n=cn("sqrtTall",l,u,s,t)).style.minWidth="0.742em",i=1.056),n.height=c,n.style.height=l+"em",{span:n,advanceWidth:i,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*a}},xn=function(e,t,n,i,r){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),h.contains(un,e)||h.contains(dn,e))return rn(e,t,!1,n,i,r);if(h.contains(hn,e))return sn(e,pn[t],!1,n,i,r);throw new a("Illegal delimiter: '"+e+"'")},Sn=bn,kn=function(e,t,n,i,r,o){var a=i.fontMetrics().axisHeight*i.sizeMultiplier,s=5/i.fontMetrics().ptPerEm,l=Math.max(t-a,n+a),c=Math.max(l/500*901,2*l-s);return bn(e,c,!0,i,r,o)},_n={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Cn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Pn(e,t){var n=it(e);if(n&&h.contains(Cn,n.text))return n;throw new a("Invalid delimiter: '"+(n?n.text:JSON.stringify(e))+"' after '"+t.funcName+"'",e)}function En(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}dt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(e,t){var n=Pn(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:_n[e.funcName].size,mclass:_n[e.funcName].mclass,delim:n.text}},htmlBuilder:function(e,t){return"."===e.delim?Qe.makeSpan([e.mclass]):xn(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(Nt(e.delim,e.mode));var n=new Dt.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),dt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(e,t){var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new a("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Pn(t[0],e).text,color:n}}}),dt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(e,t){var n=Pn(t[0],e),i=e.parser;++i.leftrightDepth;var r=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var o=Je(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:r,left:n.text,right:o.delim,rightColor:o.color}},htmlBuilder:function(e,t){En(e);for(var n,i,r=wt(e.body,t,!0,["mopen","mclose"]),o=0,a=0,s=!1,l=0;l-1?"mpadded":"menclose",[Ft(e.body,t)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var r=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+r+"em solid "+String(e.borderColor))}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};dt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(e,t,n){var i=e.parser,r=e.funcName,o=Je(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:i.mode,label:r,backgroundColor:o,body:a}},htmlBuilder:Mn,mathmlBuilder:Ln}),dt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(e,t,n){var i=e.parser,r=e.funcName,o=Je(t[0],"color-token").color,a=Je(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:i.mode,label:r,backgroundColor:a,borderColor:o,body:s}},htmlBuilder:Mn,mathmlBuilder:Ln}),dt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]}}}),dt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(e,t,n){var i=e.parser,r=e.funcName,o=t[0];return{type:"enclose",mode:i.mode,label:r,body:o}},htmlBuilder:Mn,mathmlBuilder:Ln});var An={};function Tn(e){for(var t=e.type,n=e.names,i=e.props,r=e.handler,o=e.htmlBuilder,a=e.mathmlBuilder,s={type:t,numArgs:i.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:r},l=0;l0&&(b+=.25),c.push({pos:b,isDashed:e[t]})}for(w(o[0]),n=0;n0&&(_<(M+=y)&&(_=M),M=0),e.addJot&&(_+=g),C.height=k,C.depth=_,b+=k,C.pos=b,b+=_+M,l[n]=C,w(o[n+1])}var L,A,T=b/2+t.fontMetrics().axisHeight,D=e.cols||[],N=[];for(i=0,A=0;i=s)){var F=void 0;(i>0||e.hskipBeforeAndAfter)&&0!==(F=h.deflt(I.pregap,p))&&((L=Qe.makeSpan(["arraycolsep"],[])).style.width=F+"em",N.push(L));var z=[];for(n=0;n0){for(var Z=Qe.makeLineSpan("hline",t,u),K=Qe.makeLineSpan("hdashline",t,u),G=[{type:"elem",elem:l,shift:0}];c.length>0;){var U=c.pop(),V=U.pos-T;U.isDashed?G.push({type:"elem",elem:K,shift:V}):G.push({type:"elem",elem:Z,shift:V})}l=Qe.makeVList({positionType:"individualShift",children:G},t)}return Qe.makeSpan(["mord"],[l],t)},Rn={c:"center ",l:"left ",r:"right "},On=function(e,t){var n=new Dt.MathNode("mtable",e.body.map((function(e){return new Dt.MathNode("mtr",e.map((function(e){return new Dt.MathNode("mtd",[Ft(e,t)])})))}))),i=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);n.setAttribute("rowspacing",i+"em");var r="",o="";if(e.cols){var a=e.cols,s="",l=!1,c=0,u=a.length;"separator"===a[0].type&&(r+="top ",c=1),"separator"===a[a.length-1].type&&(r+="bottom ",u-=1);for(var h=c;h0?"left ":"",r+=m[m.length-1].length>0?"right ":"";for(var v=1;v0&&h&&(f=1),i[d]={type:"align",align:p,pregap:f,postgap:0}}return r.colSeparationType=h?"align":"alignat",r};Tn({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var n={cols:(it(t[0])?[t[0]]:Je(t[0],"ordgroup").body).map((function(e){var t=nt(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new a("Unknown column alignment: "+t,e)})),hskipBeforeAndAfter:!0};return Nn(e.parser,n,In(e.envName))},htmlBuilder:Bn,mathmlBuilder:On}),Tn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName],n=Nn(e.parser,{hskipBeforeAndAfter:!1},In(e.envName));return t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:Bn,mathmlBuilder:On}),Tn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=Nn(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:Bn,mathmlBuilder:On}),Tn({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var n=(it(t[0])?[t[0]]:Je(t[0],"ordgroup").body).map((function(e){var t=nt(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new a("Unknown column alignment: "+t,e)}));if(n.length>1)throw new a("{subarray} can contain only one column");var i={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((i=Nn(e.parser,i,"script")).body[0].length>1)throw new a("{subarray} can contain only one column");return i},htmlBuilder:Bn,mathmlBuilder:On}),Tn({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(e){var t=Nn(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},In(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Bn,mathmlBuilder:On}),Tn({type:"array",names:["aligned"],props:{numArgs:0},handler:Fn,htmlBuilder:Bn,mathmlBuilder:On}),Tn({type:"array",names:["gathered"],props:{numArgs:0},handler:function(e){return Nn(e.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display")},htmlBuilder:Bn,mathmlBuilder:On}),Tn({type:"array",names:["alignedat"],props:{numArgs:1},handler:Fn,htmlBuilder:Bn,mathmlBuilder:On}),dt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new a(e.funcName+" valid only within array environment")}});var zn=An;dt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var n=e.parser,i=e.funcName,r=t[0];if("ordgroup"!==r.type)throw new a("Invalid environment name",r);for(var o="",s=0;s=x.SCRIPT.id?n.text():x.DISPLAY:"text"===e&&n.size===x.DISPLAY.size?n=x.TEXT:"script"===e?n=x.SCRIPT:"scriptscript"===e&&(n=x.SCRIPTSCRIPT),n},Wn=function(e,t){var n,i=Vn(e.size,t.style),r=i.fracNum(),o=i.fracDen();n=t.havingStyle(r);var a=Pt(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;a.height=a.height0?3*h:7*h,f=t.fontMetrics().denom1):(u>0?(d=t.fontMetrics().num2,p=h):(d=t.fontMetrics().num3,p=3*h),f=t.fontMetrics().denom2),c){var w=t.fontMetrics().axisHeight;d-a.depth-(w+.5*u)0&&(t="."===(t=e)?null:t),t};dt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var n=e.parser,i=t[4],r=t[5],o=et(t[0],"atom");o&&(o=tt(t[0],"open"));var a=o?Xn(o.text):null,s=et(t[1],"atom");s&&(s=tt(t[1],"close"));var l,c=s?Xn(s.text):null,u=Je(t[2],"size"),h=null;l=!!u.isBlank||(h=u.value).number>0;var d="auto",p=et(t[3],"ordgroup");if(p){if(p.body.length>0){var f=Je(p.body[0],"textord");d=Yn[Number(f.text)]}}else p=Je(t[3],"textord"),d=Yn[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:i,denom:r,continued:!1,hasBarLine:l,barSize:h,leftDelim:a,rightDelim:c,size:d}},htmlBuilder:Wn,mathmlBuilder:qn}),dt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var n=e.parser,i=(e.funcName,e.token);return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Je(t[0],"size").value,token:i}}}),dt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var n=e.parser,i=(e.funcName,t[0]),r=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Je(t[1],"infix").size),o=t[2],a=r.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:a,barSize:r,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Wn,mathmlBuilder:qn});var Qn=function(e,t){var n,i,r=t.style,o=et(e,"supsub");o?(n=o.sup?Pt(o.sup,t.havingStyle(r.sup()),t):Pt(o.sub,t.havingStyle(r.sub()),t),i=Je(o.base,"horizBrace")):i=Je(e,"horizBrace");var a,s=Pt(i.base,t.havingBaseStyle(x.DISPLAY)),l=Vt(i,t);if(i.isOver?(a=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:l}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(a=Qe.makeVList({positionType:"bottom",positionData:s.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var c=Qe.makeSpan(["mord",i.isOver?"mover":"munder"],[a],t);a=i.isOver?Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:n}]},t):Qe.makeVList({positionType:"bottom",positionData:c.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:c}]},t)}return Qe.makeSpan(["mord",i.isOver?"mover":"munder"],[a],t)};dt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var n=e.parser,i=e.funcName;return{type:"horizBrace",mode:n.mode,label:i,isOver:/^\\over/.test(i),base:t[0]}},htmlBuilder:Qn,mathmlBuilder:function(e,t){var n=Ut(e.label);return new Dt.MathNode(e.isOver?"mover":"munder",[Ft(e.base,t),n])}}),dt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,i=t[1],r=Je(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:r})?{type:"href",mode:n.mode,href:r,body:ft(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var n=wt(e.body,t,!1);return Qe.makeAnchor(e.href,[],n,t)},mathmlBuilder:function(e,t){var n=Ot(e.body,t);return n instanceof At||(n=new At("mrow",[n])),n.setAttribute("href",e.href),n}}),dt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var n=e.parser,i=Je(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var r=[],o=0;o0&&(i=je(e.totalheight,t)-n,i=Number(i.toFixed(2)));var r=0;e.width.number>0&&(r=je(e.width,t));var o={height:n+i+"em"};r>0&&(o.width=r+"em"),i>0&&(o.verticalAlign=-i+"em");var a=new I(e.src,e.alt,o);return a.height=n,a.depth=i,a},mathmlBuilder:function(e,t){var n=new Dt.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var i=je(e.height,t),r=0;if(e.totalheight.number>0&&(r=(r=je(e.totalheight,t)-i).toFixed(2),n.setAttribute("valign","-"+r+"em")),n.setAttribute("height",i+r+"em"),e.width.number>0){var o=je(e.width,t);n.setAttribute("width",o+"em")}return n.setAttribute("src",e.src),n}}),dt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t){var n=e.parser,i=e.funcName,r=Je(t[0],"size");if(n.settings.strict){var o="m"===i[1],a="mu"===r.value.unit;o?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, not "+r.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:r.value}},htmlBuilder:function(e,t){return Qe.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var n=je(e.dimension,t);return new Dt.SpaceNode(n)}}),dt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,i=e.funcName,r=t[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:r}},htmlBuilder:function(e,t){var n;"clap"===e.alignment?(n=Qe.makeSpan([],[Pt(e.body,t)]),n=Qe.makeSpan(["inner"],[n],t)):n=Qe.makeSpan(["inner"],[Pt(e.body,t)]);var i=Qe.makeSpan(["fix"],[]),r=Qe.makeSpan([e.alignment],[n,i],t),o=Qe.makeSpan(["strut"]);return o.style.height=r.height+r.depth+"em",o.style.verticalAlign=-r.depth+"em",r.children.unshift(o),r=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),Qe.makeSpan(["mord"],[r],t)},mathmlBuilder:function(e,t){var n=new Dt.MathNode("mpadded",[Ft(e.body,t)]);if("rlap"!==e.alignment){var i="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",i+"width")}return n.setAttribute("width","0px"),n}}),dt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=e.funcName,i=e.parser,r=i.mode;i.switchMode("math");var o="\\("===n?"\\)":"$",a=i.parseExpression(!1,o);return i.expect(o),i.switchMode(r),{type:"styling",mode:i.mode,style:"text",body:a}}}),dt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new a("Mismatched "+e.funcName)}});var ei=function(e,t){switch(t.style.size){case x.DISPLAY.size:return e.display;case x.TEXT.size:return e.text;case x.SCRIPT.size:return e.script;case x.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};dt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:ft(t[0]),text:ft(t[1]),script:ft(t[2]),scriptscript:ft(t[3])}},htmlBuilder:function(e,t){var n=ei(e,t),i=wt(n,t,!1);return Qe.makeFragment(i)},mathmlBuilder:function(e,t){var n=ei(e,t);return Ot(n,t)}});var ti=function(e,t,n,i,r,o,a){var s,l,c;if(e=Qe.makeSpan([],[e]),t){var u=Pt(t,i.havingStyle(r.sup()),i);l={elem:u,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var h=Pt(n,i.havingStyle(r.sub()),i);s={elem:h,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-h.height)}}if(l&&s){var d=i.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+a;c=Qe.makeVList({positionType:"bottom",positionData:d,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-o+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:o+"em"},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else if(s){var p=e.height-a;c=Qe.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-o+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e}]},i)}else{if(!l)return e;var f=e.depth+a;c=Qe.makeVList({positionType:"bottom",positionData:f,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:o+"em"},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}return Qe.makeSpan(["mop","op-limits"],[c],i)},ni=["\\smallint"],ii=function(e,t){var n,i,r,o=!1,a=et(e,"supsub");a?(n=a.sup,i=a.sub,r=Je(a.base,"op"),o=!0):r=Je(e,"op");var s,l=t.style,c=!1;if(l.size===x.DISPLAY.size&&r.symbol&&!h.contains(ni,r.name)&&(c=!0),r.symbol){var u=c?"Size2-Regular":"Size1-Regular",d="";if("\\oiint"!==r.name&&"\\oiiint"!==r.name||(d=r.name.substr(1),r.name="oiint"===d?"\\iint":"\\iiint"),s=Qe.makeSymbol(r.name,u,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),d.length>0){var p=s.italic,f=Qe.staticSvg(d+"Size"+(c?"2":"1"),t);s=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:0},{type:"elem",elem:f,shift:c?.08:0}]},t),r.name="\\"+d,s.classes.unshift("mop"),s.italic=p}}else if(r.body){var g=wt(r.body,t,!0);1===g.length&&g[0]instanceof R?(s=g[0]).classes[0]="mop":s=Qe.makeSpan(["mop"],Qe.tryCombineChars(g),t)}else{for(var m=[],v=1;v0){for(var l=r.body.map((function(e){var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),c=wt(l,t.withFont("mathrm"),!0),u=0;u=0?s.setAttribute("height","+"+r+"em"):(s.setAttribute("height",r+"em"),s.setAttribute("depth","+"+-r+"em")),s.setAttribute("voffset",r+"em"),s}});var ci=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];dt({type:"sizing",names:ci,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,i=e.funcName,r=e.parser,o=r.parseExpression(!1,n);return{type:"sizing",mode:r.mode,size:ci.indexOf(i)+1,body:o}},htmlBuilder:function(e,t){var n=t.havingSize(e.size);return li(e.body,n,t)},mathmlBuilder:function(e,t){var n=t.havingSize(e.size),i=Rt(e.body,n),r=new Dt.MathNode("mstyle",i);return r.setAttribute("mathsize",n.sizeMultiplier+"em"),r}}),dt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var i=e.parser,r=!1,o=!1,a=n[0]&&Je(n[0],"ordgroup");if(a)for(var s="",l=0;ln.height+n.depth+o&&(o=(o+h-n.height-n.depth)/2);var d=l.height-n.height-o-c;n.style.paddingLeft=u+"em";var p=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+d)},{type:"elem",elem:l},{type:"kern",size:c}]},t);if(e.index){var f=t.havingStyle(x.SCRIPTSCRIPT),g=Pt(e.index,f,t),m=.6*(p.height-p.depth),v=Qe.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:g}]},t),y=Qe.makeSpan(["root"],[v]);return Qe.makeSpan(["mord","sqrt"],[y,p],t)}return Qe.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder:function(e,t){var n=e.body,i=e.index;return i?new Dt.MathNode("mroot",[Ft(n,t),Ft(i,t)]):new Dt.MathNode("msqrt",[Ft(n,t)])}});var ui={display:x.DISPLAY,text:x.TEXT,script:x.SCRIPT,scriptscript:x.SCRIPTSCRIPT};dt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,i=e.funcName,r=e.parser,o=r.parseExpression(!0,n),a=i.slice(1,i.length-5);return{type:"styling",mode:r.mode,style:a,body:o}},htmlBuilder:function(e,t){var n=ui[e.style],i=t.havingStyle(n).withFont("");return li(e.body,i,t)},mathmlBuilder:function(e,t){var n=ui[e.style],i=t.havingStyle(n),r=Rt(e.body,i),o=new Dt.MathNode("mstyle",r),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return o.setAttribute("scriptlevel",a[0]),o.setAttribute("displaystyle",a[1]),o}}),pt({type:"supsub",htmlBuilder:function(e,t){var n=function(e,t){var n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===x.DISPLAY.size||n.alwaysHandleSupSub)?ii:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===x.DISPLAY.size||n.limits)?si:null:"accent"===n.type?h.isCharacterBox(n.base)?Wt:null:"horizBrace"===n.type&&!e.sub===n.isOver?Qn:null:null}(e,t);if(n)return n(e,t);var i,r,o,a=e.base,s=e.sup,l=e.sub,c=Pt(a,t),u=t.fontMetrics(),d=0,p=0,f=a&&h.isCharacterBox(a);if(s){var g=t.havingStyle(t.style.sup());i=Pt(s,g,t),f||(d=c.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(l){var m=t.havingStyle(t.style.sub());r=Pt(l,m,t),f||(p=c.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}o=t.style===x.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var v,y=t.sizeMultiplier,b=.5/u.ptPerEm/y+"em",w=null;if(r){var S=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(c instanceof R||S)&&(w=-c.italic+"em")}if(i&&r){d=Math.max(d,o,i.depth+.25*u.xHeight),p=Math.max(p,u.sub2);var k=4*u.defaultRuleThickness;if(d-i.depth-(r.height-p)0&&(d+=_,p-=_)}var C=[{type:"elem",elem:r,shift:p,marginRight:b,marginLeft:w},{type:"elem",elem:i,shift:-d,marginRight:b}];v=Qe.makeVList({positionType:"individualShift",children:C},t)}else if(r){p=Math.max(p,u.sub1,r.height-.8*u.xHeight);var P=[{type:"elem",elem:r,marginLeft:w,marginRight:b}];v=Qe.makeVList({positionType:"shift",positionData:p,children:P},t)}else{if(!i)throw new Error("supsub must have either sup or sub.");d=Math.max(d,o,i.depth+.25*u.xHeight),v=Qe.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:i,marginRight:b}]},t)}var E=_t(c,"right")||"mord";return Qe.makeSpan([E],[c,Qe.makeSpan(["msupsub"],[v])],t)},mathmlBuilder:function(e,t){var n,i=!1,r=et(e.base,"horizBrace");r&&!!e.sup===r.isOver&&(i=!0,n=r.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var o,a=[Ft(e.base,t)];if(e.sub&&a.push(Ft(e.sub,t)),e.sup&&a.push(Ft(e.sup,t)),i)o=n?"mover":"munder";else if(e.sub)if(e.sup){var s=e.base;o=s&&"op"===s.type&&s.limits&&t.style===x.DISPLAY||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(t.style===x.DISPLAY||s.limits)?"munderover":"msubsup"}else{var l=e.base;o=l&&"op"===l.type&&l.limits&&(t.style===x.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===x.DISPLAY)?"munder":"msub"}else{var c=e.base;o=c&&"op"===c.type&&c.limits&&(t.style===x.DISPLAY||c.alwaysHandleSupSub)||c&&"operatorname"===c.type&&c.alwaysHandleSupSub&&(c.limits||t.style===x.DISPLAY)?"mover":"msup"}return new Dt.MathNode(o,a)}}),pt({type:"atom",htmlBuilder:function(e,t){return Qe.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var n=new Dt.MathNode("mo",[Nt(e.text,e.mode)]);if("bin"===e.family){var i=Bt(e,t);"bold-italic"===i&&n.setAttribute("mathvariant",i)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var hi={mi:"italic",mn:"normal",mtext:"normal"};pt({type:"mathord",htmlBuilder:function(e,t){return Qe.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var n=new Dt.MathNode("mi",[Nt(e.text,e.mode,t)]),i=Bt(e,t)||"italic";return i!==hi[n.type]&&n.setAttribute("mathvariant",i),n}}),pt({type:"textord",htmlBuilder:function(e,t){return Qe.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var n,i=Nt(e.text,e.mode,t),r=Bt(e,t)||"normal";return n="text"===e.mode?new Dt.MathNode("mtext",[i]):/[0-9]/.test(e.text)?new Dt.MathNode("mn",[i]):"\\prime"===e.text?new Dt.MathNode("mo",[i]):new Dt.MathNode("mi",[i]),r!==hi[n.type]&&n.setAttribute("mathvariant",r),n}});var di={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},pi={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};pt({type:"spacing",htmlBuilder:function(e,t){if(pi.hasOwnProperty(e.text)){var n=pi[e.text].className||"";if("text"===e.mode){var i=Qe.makeOrd(e,t,"textord");return i.classes.push(n),i}return Qe.makeSpan(["mspace",n],[Qe.mathsym(e.text,e.mode,t)],t)}if(di.hasOwnProperty(e.text))return Qe.makeSpan(["mspace",di[e.text]],[],t);throw new a('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!pi.hasOwnProperty(e.text)){if(di.hasOwnProperty(e.text))return new Dt.MathNode("mspace");throw new a('Unknown type of space "'+e.text+'"')}return new Dt.MathNode("mtext",[new Dt.TextNode(" ")])}});var fi=function(){var e=new Dt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};pt({type:"tag",mathmlBuilder:function(e,t){var n=new Dt.MathNode("mtable",[new Dt.MathNode("mtr",[fi(),new Dt.MathNode("mtd",[Ot(e.body,t)]),fi(),new Dt.MathNode("mtd",[Ot(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var gi={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},mi={"\\textbf":"textbf","\\textmd":"textmd"},vi={"\\textit":"textit","\\textup":"textup"},yi=function(e,t){var n=e.font;return n?gi[n]?t.withTextFontFamily(gi[n]):mi[n]?t.withTextFontWeight(mi[n]):t.withTextFontShape(vi[n]):t};dt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(e,t){var n=e.parser,i=e.funcName,r=t[0];return{type:"text",mode:n.mode,body:ft(r),font:i}},htmlBuilder:function(e,t){var n=yi(e,t),i=wt(e.body,n,!0);return Qe.makeSpan(["mord","text"],Qe.tryCombineChars(i),n)},mathmlBuilder:function(e,t){var n=yi(e,t);return Ot(e.body,n)}}),dt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"underline",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var n=Pt(e.body,t),i=Qe.makeLineSpan("underline-line",t),r=t.fontMetrics().defaultRuleThickness,o=Qe.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:r},{type:"elem",elem:i},{type:"kern",size:3*r},{type:"elem",elem:n}]},t);return Qe.makeSpan(["mord","underline"],[o],t)},mathmlBuilder:function(e,t){var n=new Dt.MathNode("mo",[new Dt.TextNode("‾")]);n.setAttribute("stretchy","true");var i=new Dt.MathNode("munder",[Ft(e.body,t),n]);return i.setAttribute("accentunder","true"),i}}),dt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,n){throw new a("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=bi(e),i=[],r=t.havingStyle(t.style.text()),o=0;o0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var r=this.undefStack[this.undefStack.length-1];r&&!r.hasOwnProperty(e)&&(r[e]=this.current[e])}this.current[e]=t},e}(),Ai={},Ti=Ai;function Di(e,t){Ai[e]=t}Di("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),Di("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),Di("\\@ifnextchar",(function(e){var t=e.consumeArgs(3),n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),Di("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Di("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var Ni={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Di("\\char",(function(e){var t,n=e.popToken(),i="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])i=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new a("\\char` missing argument");i=n.text.charCodeAt(0)}else t=10;if(t){if(null==(i=Ni[n.text])||i>=t)throw new a("Invalid base-"+t+" digit "+n.text);for(var r;null!=(r=Ni[e.future().text])&&r":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Di("\\dots",(function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Ri?t=Ri[n]:("\\not"===n.substr(0,4)||n in q.math&&h.contains(["bin","rel"],q.math[n].group))&&(t="\\dotsb"),t}));var Oi={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Di("\\dotso",(function(e){return e.future().text in Oi?"\\ldots\\,":"\\ldots"})),Di("\\dotsc",(function(e){var t=e.future().text;return t in Oi&&","!==t?"\\ldots\\,":"\\ldots"})),Di("\\cdots",(function(e){return e.future().text in Oi?"\\@cdots\\,":"\\@cdots"})),Di("\\dotsb","\\cdots"),Di("\\dotsm","\\cdots"),Di("\\dotsi","\\!\\cdots"),Di("\\dotsx","\\ldots\\,"),Di("\\DOTSI","\\relax"),Di("\\DOTSB","\\relax"),Di("\\DOTSX","\\relax"),Di("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Di("\\,","\\tmspace+{3mu}{.1667em}"),Di("\\thinspace","\\,"),Di("\\>","\\mskip{4mu}"),Di("\\:","\\tmspace+{4mu}{.2222em}"),Di("\\medspace","\\:"),Di("\\;","\\tmspace+{5mu}{.2777em}"),Di("\\thickspace","\\;"),Di("\\!","\\tmspace-{3mu}{.1667em}"),Di("\\negthinspace","\\!"),Di("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Di("\\negthickspace","\\tmspace-{5mu}{.277em}"),Di("\\enspace","\\kern.5em "),Di("\\enskip","\\hskip.5em\\relax"),Di("\\quad","\\hskip1em\\relax"),Di("\\qquad","\\hskip2em\\relax"),Di("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Di("\\tag@paren","\\tag@literal{({#1})}"),Di("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new a("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Di("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Di("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Di("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Di("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Di("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Di("\\\\","\\newline"),Di("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Fi=$["Main-Regular"]["T".charCodeAt(0)][1]-.7*$["Main-Regular"]["A".charCodeAt(0)][1]+"em";Di("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Fi+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Di("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Fi+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Di("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Di("\\@hspace","\\hskip #1\\relax"),Di("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Di("\\ordinarycolon",":"),Di("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Di("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Di("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Di("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Di("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Di("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Di("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Di("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Di("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Di("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Di("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Di("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Di("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Di("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Di("∷","\\dblcolon"),Di("∹","\\eqcolon"),Di("≔","\\coloneqq"),Di("≕","\\eqqcolon"),Di("⩴","\\Coloneqq"),Di("\\ratio","\\vcentcolon"),Di("\\coloncolon","\\dblcolon"),Di("\\colonequals","\\coloneqq"),Di("\\coloncolonequals","\\Coloneqq"),Di("\\equalscolon","\\eqqcolon"),Di("\\equalscoloncolon","\\Eqqcolon"),Di("\\colonminus","\\coloneq"),Di("\\coloncolonminus","\\Coloneq"),Di("\\minuscolon","\\eqcolon"),Di("\\minuscoloncolon","\\Eqcolon"),Di("\\coloncolonapprox","\\Colonapprox"),Di("\\coloncolonsim","\\Colonsim"),Di("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Di("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Di("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Di("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Di("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Di("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Di("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Di("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Di("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Di("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Di("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Di("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Di("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Di("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Di("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Di("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Di("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Di("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Di("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Di("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Di("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Di("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Di("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Di("⟦","\\llbracket"),Di("⟧","\\rrbracket"),Di("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Di("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Di("⦃","\\lBrace"),Di("⦄","\\rBrace"),Di("\\darr","\\downarrow"),Di("\\dArr","\\Downarrow"),Di("\\Darr","\\Downarrow"),Di("\\lang","\\langle"),Di("\\rang","\\rangle"),Di("\\uarr","\\uparrow"),Di("\\uArr","\\Uparrow"),Di("\\Uarr","\\Uparrow"),Di("\\N","\\mathbb{N}"),Di("\\R","\\mathbb{R}"),Di("\\Z","\\mathbb{Z}"),Di("\\alef","\\aleph"),Di("\\alefsym","\\aleph"),Di("\\Alpha","\\mathrm{A}"),Di("\\Beta","\\mathrm{B}"),Di("\\bull","\\bullet"),Di("\\Chi","\\mathrm{X}"),Di("\\clubs","\\clubsuit"),Di("\\cnums","\\mathbb{C}"),Di("\\Complex","\\mathbb{C}"),Di("\\Dagger","\\ddagger"),Di("\\diamonds","\\diamondsuit"),Di("\\empty","\\emptyset"),Di("\\Epsilon","\\mathrm{E}"),Di("\\Eta","\\mathrm{H}"),Di("\\exist","\\exists"),Di("\\harr","\\leftrightarrow"),Di("\\hArr","\\Leftrightarrow"),Di("\\Harr","\\Leftrightarrow"),Di("\\hearts","\\heartsuit"),Di("\\image","\\Im"),Di("\\infin","\\infty"),Di("\\Iota","\\mathrm{I}"),Di("\\isin","\\in"),Di("\\Kappa","\\mathrm{K}"),Di("\\larr","\\leftarrow"),Di("\\lArr","\\Leftarrow"),Di("\\Larr","\\Leftarrow"),Di("\\lrarr","\\leftrightarrow"),Di("\\lrArr","\\Leftrightarrow"),Di("\\Lrarr","\\Leftrightarrow"),Di("\\Mu","\\mathrm{M}"),Di("\\natnums","\\mathbb{N}"),Di("\\Nu","\\mathrm{N}"),Di("\\Omicron","\\mathrm{O}"),Di("\\plusmn","\\pm"),Di("\\rarr","\\rightarrow"),Di("\\rArr","\\Rightarrow"),Di("\\Rarr","\\Rightarrow"),Di("\\real","\\Re"),Di("\\reals","\\mathbb{R}"),Di("\\Reals","\\mathbb{R}"),Di("\\Rho","\\mathrm{P}"),Di("\\sdot","\\cdot"),Di("\\sect","\\S"),Di("\\spades","\\spadesuit"),Di("\\sub","\\subset"),Di("\\sube","\\subseteq"),Di("\\supe","\\supseteq"),Di("\\Tau","\\mathrm{T}"),Di("\\thetasym","\\vartheta"),Di("\\weierp","\\wp"),Di("\\Zeta","\\mathrm{Z}"),Di("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Di("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Di("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Di("\\blue","\\textcolor{##6495ed}{#1}"),Di("\\orange","\\textcolor{##ffa500}{#1}"),Di("\\pink","\\textcolor{##ff00af}{#1}"),Di("\\red","\\textcolor{##df0030}{#1}"),Di("\\green","\\textcolor{##28ae7b}{#1}"),Di("\\gray","\\textcolor{gray}{#1}"),Di("\\purple","\\textcolor{##9d38bd}{#1}"),Di("\\blueA","\\textcolor{##ccfaff}{#1}"),Di("\\blueB","\\textcolor{##80f6ff}{#1}"),Di("\\blueC","\\textcolor{##63d9ea}{#1}"),Di("\\blueD","\\textcolor{##11accd}{#1}"),Di("\\blueE","\\textcolor{##0c7f99}{#1}"),Di("\\tealA","\\textcolor{##94fff5}{#1}"),Di("\\tealB","\\textcolor{##26edd5}{#1}"),Di("\\tealC","\\textcolor{##01d1c1}{#1}"),Di("\\tealD","\\textcolor{##01a995}{#1}"),Di("\\tealE","\\textcolor{##208170}{#1}"),Di("\\greenA","\\textcolor{##b6ffb0}{#1}"),Di("\\greenB","\\textcolor{##8af281}{#1}"),Di("\\greenC","\\textcolor{##74cf70}{#1}"),Di("\\greenD","\\textcolor{##1fab54}{#1}"),Di("\\greenE","\\textcolor{##0d923f}{#1}"),Di("\\goldA","\\textcolor{##ffd0a9}{#1}"),Di("\\goldB","\\textcolor{##ffbb71}{#1}"),Di("\\goldC","\\textcolor{##ff9c39}{#1}"),Di("\\goldD","\\textcolor{##e07d10}{#1}"),Di("\\goldE","\\textcolor{##a75a05}{#1}"),Di("\\redA","\\textcolor{##fca9a9}{#1}"),Di("\\redB","\\textcolor{##ff8482}{#1}"),Di("\\redC","\\textcolor{##f9685d}{#1}"),Di("\\redD","\\textcolor{##e84d39}{#1}"),Di("\\redE","\\textcolor{##bc2612}{#1}"),Di("\\maroonA","\\textcolor{##ffbde0}{#1}"),Di("\\maroonB","\\textcolor{##ff92c6}{#1}"),Di("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Di("\\maroonD","\\textcolor{##ca337c}{#1}"),Di("\\maroonE","\\textcolor{##9e034e}{#1}"),Di("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Di("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Di("\\purpleC","\\textcolor{##aa87ff}{#1}"),Di("\\purpleD","\\textcolor{##7854ab}{#1}"),Di("\\purpleE","\\textcolor{##543b78}{#1}"),Di("\\mintA","\\textcolor{##f5f9e8}{#1}"),Di("\\mintB","\\textcolor{##edf2df}{#1}"),Di("\\mintC","\\textcolor{##e0e5cc}{#1}"),Di("\\grayA","\\textcolor{##f6f7f7}{#1}"),Di("\\grayB","\\textcolor{##f0f1f2}{#1}"),Di("\\grayC","\\textcolor{##e3e5e6}{#1}"),Di("\\grayD","\\textcolor{##d6d8da}{#1}"),Di("\\grayE","\\textcolor{##babec2}{#1}"),Di("\\grayF","\\textcolor{##888d93}{#1}"),Di("\\grayG","\\textcolor{##626569}{#1}"),Di("\\grayH","\\textcolor{##3b3e40}{#1}"),Di("\\grayI","\\textcolor{##21242c}{#1}"),Di("\\kaBlue","\\textcolor{##314453}{#1}"),Di("\\kaGreen","\\textcolor{##71B307}{#1}");var zi={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},ji=function(){function e(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Li(Ti,t.macros),this.mode=n,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new Mi(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArgs=function(e){for(var t=[],n=0;nthis.settings.maxExpand)throw new a("Too many expansions: infinite loop or need to increase maxExpand setting");var i=n.tokens;if(n.numArgs)for(var r=this.consumeArgs(n.numArgs),o=(i=i.slice()).length-1;o>=0;--o){var s=i[o];if("#"===s.text){if(0===o)throw new a("Incomplete placeholder at end of macro body",s);if("#"===(s=i[--o]).text)i.splice(o+1,1);else{if(!/^[1-9]$/.test(s.text))throw new a("Not a valid argument number",s);var l;(l=i).splice.apply(l,[o,2].concat(r[+s.text-1]))}}}return this.pushTokens(i),i},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof r){if("\\relax"!==e.text)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){if(this.macros.get(e)){var t=[],n=this.stack.length;for(this.pushToken(new r(e));this.stack.length>n;)this.expandOnce()instanceof r&&t.push(this.stack.pop());return t}},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;var n="function"==typeof t?t(this):t;if("string"==typeof n){var i=0;if(-1!==n.indexOf("#"))for(var r=n.replace(/##/g,"");-1!==r.indexOf("#"+(i+1));)++i;for(var o=new Mi(n,this.settings),a=[],s=o.lex();"EOF"!==s.text;)a.push(s),s=o.lex();return a.reverse(),{tokens:a,numArgs:i}}return n},t.isDefined=function(e){return this.macros.has(e)||wi.hasOwnProperty(e)||q.math.hasOwnProperty(e)||q.text.hasOwnProperty(e)||zi.hasOwnProperty(e)},e}(),$i={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"}},Hi={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","č":"č","ĉ":"ĉ","ċ":"ċ","ď":"ď","ḋ":"ḋ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ĺ":"ĺ","ľ":"ľ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ď":"Ď","Ḋ":"Ḋ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ĺ":"Ĺ","Ľ":"Ľ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ť":"Ť","Ṫ":"Ṫ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},Zi=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new ji(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new a("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var e=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),e},t.parseExpression=function(t,n){for(var i=[];;){"math"===this.mode&&this.consumeSpaces();var r=this.fetch();if(-1!==e.endOfExpression.indexOf(r.text))break;if(n&&r.text===n)break;if(t&&wi[r.text]&&wi[r.text].infix)break;var o=this.parseAtom(n);if(!o)break;i.push(o)}return"text"===this.mode&&this.formLigatures(i),this.handleInfixNodes(i)},t.handleInfixNodes=function(e){for(var t,n=-1,i=0;i0&&!c||0===s&&!c&&"math"===this.mode,h=this.parseGroupOfType("argument to '"+e+"'",l,c,i,u);if(!h){if(c){o.push(null);continue}throw new a("Expected group after '"+e+"'",this.fetch())}(c?o:r).push(h)}return{args:r,optArgs:o}},t.parseGroupOfType=function(e,t,n,i,r){switch(t){case"color":return r&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return r&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,r);case"math":case"text":return this.parseGroup(e,n,i,void 0,t,r);case"hbox":var o=this.parseGroup(e,n,i,void 0,"text",r);return o?{type:"styling",mode:o.mode,body:[o],style:"text"}:o;case"raw":if(r&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;var s=this.parseStringGroup("raw",n,!0);if(s)return{type:"raw",mode:"text",string:s.text};throw new a("Expected raw group",this.fetch());case"original":case null:case void 0:return this.parseGroup(e,n,i,void 0,void 0,r);default:throw new a("Unknown group type as "+e,this.fetch())}},t.consumeSpaces=function(){for(;" "===this.fetch().text;)this.consume()},t.parseStringGroup=function(e,t,n){var i=t?"[":"{",r=t?"]":"}",o=this.fetch();if(o.text!==i){if(t)return null;if(n&&"EOF"!==o.text&&/[^{}[\]]/.test(o.text))return this.consume(),o}var s=this.mode;this.mode="text",this.expect(i);for(var l,c="",u=this.fetch(),h=0,d=u;(l=this.fetch()).text!==r||n&&h>0;){switch(l.text){case"EOF":throw new a("Unexpected end of input in "+e,u.range(d,c));case i:h++;break;case r:h--}c+=(d=l).text,this.consume()}return this.expect(r),this.mode=s,u.range(d,c)},t.parseRegexGroup=function(e,t){var n=this.mode;this.mode="text";for(var i,r=this.fetch(),o=r,s="";"EOF"!==(i=this.fetch()).text&&e.test(s+i.text);)s+=(o=i).text,this.consume();if(""===s)throw new a("Invalid "+t+": '"+r.text+"'",r);return this.mode=n,r.range(o,s)},t.parseColorGroup=function(e){var t=this.parseStringGroup("color",e);if(!t)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new a("Invalid color: '"+t.text+"'",t);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}},t.parseSizeGroup=function(e){var t,n=!1;if(!(t=e||"{"===this.fetch().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!i)throw new a("Invalid size: '"+t.text+"'",t);var r={number:+(i[1]+i[2]),unit:i[3]};if(!ze(r))throw new a("Invalid unit: '"+r.unit+"'",t);return{type:"size",mode:this.mode,value:r,isBlank:n}},t.parseUrlGroup=function(e,t){this.gullet.lexer.setCatcode("%",13);var n=this.parseStringGroup("url",e,!0);if(this.gullet.lexer.setCatcode("%",14),!n)return null;var i=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}},t.parseGroup=function(t,n,r,o,s,l){var c=this.mode;s&&this.switchMode(s),l&&this.consumeSpaces();var u,h=this.fetch(),d=h.text;if(n?"["===d:"{"===d||"\\begingroup"===d){this.consume();var p=e.endOfGroup[d];this.gullet.beginGroup();var f=this.parseExpression(!1,p),g=this.fetch();this.expect(p),this.gullet.endGroup(),u={type:"ordgroup",mode:this.mode,loc:i.range(h,g),body:f,semisimple:"\\begingroup"===d||void 0}}else if(n)u=null;else if(null==(u=this.parseFunction(o,t,r)||this.parseSymbol())&&"\\"===d[0]&&!zi.hasOwnProperty(d)){if(this.settings.throwOnError)throw new a("Undefined control sequence: "+d,h);u=this.formatUnsupportedCmd(d),this.consume()}return s&&this.switchMode(c),u},t.formLigatures=function(e){for(var t=e.length-1,n=0;n=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var l,c=q[this.mode][t].group,u=i.range(e);if(U.hasOwnProperty(c)){var h=c;l={type:"atom",mode:this.mode,family:h,loc:u,text:t}}else l={type:c,mode:this.mode,loc:u,text:t};o=l}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(_(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:i.range(e),text:t}}if(this.consume(),s)for(var d=0;de.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o={exports:{}};function a(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function s(e){o.exports.defaults=e}o.exports={defaults:a(),getDefaults:a,changeDefaults:s};var l=/[&<>"']/,c=/[&<>"']/g,u=/[<>"']|&(?!#?\w+;)/,h=/[<>"']|&(?!#?\w+;)/g,d={"&":"&","<":"<",">":">",'"':""","'":"'"},p=function(e){return d[e]};function f(e,t){if(t){if(l.test(e))return e.replace(c,p)}else if(u.test(e))return e.replace(h,p);return e}var g=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function m(e){return e.replace(g,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var v=/(^|[^\[])\^/g;function y(e,t){e=e.source||e,t=t||"";var n={replace:function(t,i){return i=(i=i.source||i).replace(v,"$1"),e=e.replace(t,i),n},getRegex:function(){return new RegExp(e,t)}};return n}var b=/[^\w:]/g,w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(e,t,n){if(e){var i;try{i=decodeURIComponent(m(n)).replace(b,"").toLowerCase()}catch(e){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!w.test(n)&&(n=P(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}var S={},k=/^[^:]+:\/*[^/]*$/,_=/^([^:]+:)[\s\S]*$/,C=/^([^:]+:\/*[^/]*)[\s\S]*$/;function P(e,t){S[" "+e]||(k.test(e)?S[" "+e]=e+"/":S[" "+e]=L(e,"/",!0));var n=-1===(e=S[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(_,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(C,"$1")+t:e+t}function E(e){for(var t,n,i=1;i=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/),i=0;if(n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}var N={escape:f,unescape:m,edit:y,cleanUrl:x,resolveUrl:P,noopTest:{exec:function(){}},merge:E,splitCells:M,rtrim:L,findClosingBracket:A,checkSanitizeDeprecation:T,repeatString:D},I=o.exports.defaults,B=N.rtrim,R=N.splitCells,O=N.escape,F=N.findClosingBracket;function z(e,t,n){var i=t.href,r=t.title?O(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:i,title:r,text:o}:{type:"image",raw:n,href:i,title:r,text:O(o)}}function j(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=i.length?e.slice(i.length):e})).join("\n")}var $=function(){function e(e){this.options=e||I}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:B(n,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=j(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:i}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var i=B(n,"#");this.options.pedantic?n=i.trim():i&&!/ $/.test(i)||(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:R(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var i,r=n.align.length;for(i=0;i ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,i,r,o,a,s,l,c,u,h=t[0],d=t[2],p=d.length>1,f={type:"list",raw:h,ordered:p,start:p?+d.slice(0,-1):"",loose:!1,items:[]},g=t[0].match(this.rules.block.item),m=!1,v=g.length;r=this.rules.block.listItemStart.exec(g[0]);for(var y=0;yr[1].length:o[1].length>=r[0].length||o[1].length>3){g.splice(y,2,g[y]+(!this.options.pedantic&&o[1].length/i.test(i[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):O(i[0]):i[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var i=B(n.slice(0,-1),"\\");if((n.length-i.length)%2==0)return}else{var r=F(t[2],"()");if(r>-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var a=t[2],s="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);l&&(a=l[1],s=l[3])}else s=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^$/.test(n)?a.slice(1):a.slice(1,-1)),z(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(!(i=t[i.toLowerCase()])||!i.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return z(n,i,n[0])}},t.emStrong=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.emStrong.lDelim.exec(e);if(i&&(!i[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var o,a,s=i[0].length-1,l=s,c=0,u="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+s);null!=(i=u.exec(t));)if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6])if(a=o.length,i[3]||i[4])l+=a;else if(!((i[5]||i[6])&&s%3)||(s+a)%3){if(!((l-=a)>0))return a=Math.min(a,a+l+c),Math.min(s,a)%2?{type:"em",raw:e.slice(0,s+i.index+a+1),text:e.slice(1,s+i.index+a)}:{type:"strong",raw:e.slice(0,s+i.index+a+1),text:e.slice(2,s+i.index+a-1)}}else c+=a}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=O(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,i,r=this.rules.inline.autolink.exec(e);if(r)return i="@"===r[2]?"mailto:"+(n=O(this.options.mangle?t(r[1]):r[1])):n=O(r[1]),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var i,r;if("@"===n[2])r="mailto:"+(i=O(this.options.mangle?t(n[0]):n[0]));else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);i=O(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},t.inlineText=function(e,t,n){var i,r=this.rules.inline.text.exec(e);if(r)return i=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):O(r[0]):r[0]:O(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:i}},e}(),H=N.noopTest,Z=N.edit,K=N.merge,G={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:H,table:H,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};G.def=Z(G.def).replace("label",G._label).replace("title",G._title).getRegex(),G.bullet=/(?:[*+-]|\d{1,9}[.)])/,G.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,G.item=Z(G.item,"gm").replace(/bull/g,G.bullet).getRegex(),G.listItemStart=Z(/^( *)(bull) */).replace("bull",G.bullet).getRegex(),G.list=Z(G.list).replace(/bull/g,G.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+G.def.source+")").getRegex(),G._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",G._comment=/|$)/,G.html=Z(G.html,"i").replace("comment",G._comment).replace("tag",G._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),G.paragraph=Z(G._paragraph).replace("hr",G.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",G._tag).getRegex(),G.blockquote=Z(G.blockquote).replace("paragraph",G.paragraph).getRegex(),G.normal=K({},G),G.gfm=K({},G.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),G.gfm.nptable=Z(G.gfm.nptable).replace("hr",G.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",G._tag).getRegex(),G.gfm.table=Z(G.gfm.table).replace("hr",G.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",G._tag).getRegex(),G.pedantic=K({},G.normal,{html:Z("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",G._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:H,paragraph:Z(G.normal._paragraph).replace("hr",G.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",G.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var U={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:H,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:H,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};U.punctuation=Z(U.punctuation).replace(/punctuation/g,U._punctuation).getRegex(),U.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,U.escapedEmSt=/\\\*|\\_/g,U._comment=Z(G._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),U.emStrong.lDelim=Z(U.emStrong.lDelim).replace(/punct/g,U._punctuation).getRegex(),U.emStrong.rDelimAst=Z(U.emStrong.rDelimAst,"g").replace(/punct/g,U._punctuation).getRegex(),U.emStrong.rDelimUnd=Z(U.emStrong.rDelimUnd,"g").replace(/punct/g,U._punctuation).getRegex(),U._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,U._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,U._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,U.autolink=Z(U.autolink).replace("scheme",U._scheme).replace("email",U._email).getRegex(),U._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,U.tag=Z(U.tag).replace("comment",U._comment).replace("attribute",U._attribute).getRegex(),U._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,U._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,U._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,U.link=Z(U.link).replace("label",U._label).replace("href",U._href).replace("title",U._title).getRegex(),U.reflink=Z(U.reflink).replace("label",U._label).getRegex(),U.reflinkSearch=Z(U.reflinkSearch,"g").replace("reflink",U.reflink).replace("nolink",U.nolink).getRegex(),U.normal=K({},U),U.pedantic=K({},U.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Z(/^!?\[(label)\]\((.*?)\)/).replace("label",U._label).getRegex(),reflink:Z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",U._label).getRegex()}),U.gfm=K({},U.normal,{escape:Z(U.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}var te=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||q,this.options.tokenizer=this.options.tokenizer||new W,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:Y.normal,inline:X.normal};this.options.pedantic?(t.block=Y.pedantic,t.inline=X.pedantic):this.options.gfm&&(t.block=Y.gfm,this.options.breaks?t.inline=X.breaks:t.inline=X.gfm),this.tokenizer.rules=t}e.lex=function(t,n){return new e(n).lex(t)},e.lexInline=function(t,n){return new e(n).inlineTokens(t)};var n=e.prototype;return n.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},n.blockTokens=function(e,t,n){var i,r,o,a;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),(a=t[t.length-1])&&"paragraph"===a.type?(a.raw+="\n"+i.raw,a.text+="\n"+i.text):t.push(i);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.nptable(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],n),t.push(i);else if(i=this.tokenizer.list(e)){for(e=e.substring(i.raw.length),o=i.items.length,r=0;r0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(c));)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,a.index)+"["+Q("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,a.index)+"["+Q("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,a.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(s||(l=""),s=!1,r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e,n,i)){e=e.substring(r.raw.length),n=r.inLink,i=r.inRawBlock;var h=t[t.length-1];h&&"text"===r.type&&"text"===h.type?(h.raw+=r.raw,h.text+=r.text):t.push(r)}else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);var d=t[t.length-1];"link"===r.type?(r.tokens=this.inlineTokens(r.text,[],!0,i),t.push(r)):d&&"text"===r.type&&"text"===d.type?(d.raw+=r.raw,d.text+=r.text):t.push(r)}else if(r=this.tokenizer.emStrong(e,c,l))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.autolink(e,ee))e=e.substring(r.raw.length),t.push(r);else if(n||!(r=this.tokenizer.url(e,ee))){if(r=this.tokenizer.inlineText(e,i,J))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(l=r.raw.slice(-1)),s=!0,(o=t[t.length-1])&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):t.push(r);else if(e){var p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}throw new Error(p)}}else e=e.substring(r.raw.length),t.push(r);return t},t(e,null,[{key:"rules",get:function(){return{block:Y,inline:X}}}]),e}(),ne=o.exports.defaults,ie=N.cleanUrl,re=N.escape,oe=function(){function e(e){this.options=e||ne}var t=e.prototype;return t.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,i);null!=r&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",i?'
    '+(n?e:re(e,!0))+"
    \n":"
    "+(n?e:re(e,!0))+"
    \n"},t.blockquote=function(e){return"
    \n"+e+"
    \n"},t.html=function(e){return e},t.heading=function(e,t,n,i){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},t.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},t.listitem=function(e){return"
  • "+e+"
  • \n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return"

    "+e+"

    \n"},t.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},t.tablerow=function(e){return"\n"+e+"\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
    ":"
    "},t.del=function(e){return""+e+""},t.link=function(e,t,n){if(null===(e=ie(this.options.sanitize,this.options.baseUrl,e)))return n;var i='"},t.image=function(e,t,n){if(null===(e=ie(this.options.sanitize,this.options.baseUrl,e)))return n;var i=''+n+'":">"},t.text=function(e){return e},e}(),ae=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),se=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do{n=e+"-"+ ++i}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),le=oe,ce=ae,ue=se,he=o.exports.defaults,de=N.unescape,pe=te,fe=function(){function e(e){this.options=e||he,this.options.renderer=this.options.renderer||new le,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ce,this.slugger=new ue}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,i,r,o,a,s,l,c,u,h,d,p,f,g,m,v,y,b,w="",x=e.length;for(n=0;n0&&"text"===m.tokens[0].type?(m.tokens[0].text=b+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=b+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:b}):g+=b),g+=this.parse(m.tokens,f),u+=this.renderer.listitem(g,y,v);w+=this.renderer.list(u,d,p);continue;case"html":w+=this.renderer.html(h.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(u=h.tokens?this.parseInline(h.tokens):h.text;n+1An error occurred:

    "+xe(e.message+"",!0)+"
    ";throw e}}return Ce.options=Ce.setOptions=function(e){return be(Ce.defaults,e),ke(Ce.defaults),Ce},Ce.getDefaults=Se,Ce.defaults=_e,Ce.use=function(e){var t=be({},e);if(e.renderer&&function(){var n=Ce.defaults.renderer||new me,i=function(t){var i=n[t];n[t]=function(){for(var r=arguments.length,o=new Array(r),a=0;aAn error occurred:

    "+xe(e.message+"",!0)+"
    ";throw e}},Ce.Parser=fe,Ce.parser=fe.parse,Ce.Renderer=me,Ce.TextRenderer=ve,Ce.Lexer=pe,Ce.lexer=pe.lex,Ce.Tokenizer=ge,Ce.Slugger=ye,Ce.parse=Ce,Ce}()},11690:function(e){const t=/[&<>"']/,n=/[&<>"']/g,i=/[<>"']|&(?!#?\w+;)/,r=/[<>"']|&(?!#?\w+;)/g,o={"&":"&","<":"<",">":">",'"':""","'":"'"},a=e=>o[e];const s=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function l(e){return e.replace(s,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const c=/(^|[^\[])\^/g;const u=/[^\w:]/g,h=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;const d={},p=/^[^:]+:\/*[^/]*$/,f=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function m(e,t){d[" "+e]||(p.test(e)?d[" "+e]=e+"/":d[" "+e]=v(e,"/",!0));const n=-1===(e=d[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(f,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(g,"$1")+t:e+t}function v(e,t,n){const i=e.length;if(0===i)return"";let r=0;for(;r(i=(i=i.source||i).replace(c,"$1"),e=e.replace(t,i),n),getRegex:()=>new RegExp(e,t)};return n},cleanUrl:function(e,t,n){if(e){let e;try{e=decodeURIComponent(l(n)).replace(u,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!h.test(n)&&(n=m(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},resolveUrl:m,noopTest:{exec:function(){}},merge:function(e){let t,n,i=1;for(;i{let i=!1,r=t;for(;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/);let i=0;if(n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}}},75918:function(e,t,n){"use strict";n.d(t,{Wi:function(){return l},Z0:function(){return c},aU:function(){return s},eZ:function(){return h},wY:function(){return u}});var i=n(4348),r=n(69323),o=n(13268),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};class s extends r.JT{constructor(e,t="",n="",r=!0,o){super(),this._onDidChange=this._register(new i.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=n,this._enabled=r,this._actionCallback=o}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}run(e,t){return a(this,void 0,void 0,(function*(){this._actionCallback&&(yield this._actionCallback(e))}))}}class l extends r.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new i.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new i.Q5),this.onDidRun=this._onDidRun.event}run(e,t){return a(this,void 0,void 0,(function*(){if(!e.enabled)return;let n;this._onBeforeRun.fire({action:e});try{yield this.runAction(e,t)}catch(e){n=e}this._onDidRun.fire({action:e,error:n})}))}runAction(e,t){return a(this,void 0,void 0,(function*(){yield e.run(t)}))}}class c extends s{constructor(e){super(c.ID,e,e?"separator text":"separator"),this.checked=!1,this.enabled=!1}}c.ID="vs.actions.separator";class u{constructor(e,t,n,i){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=e,this.label=t,this.class=i,this._actions=n}get actions(){return this._actions}dispose(){}run(){return a(this,void 0,void 0,(function*(){}))}}class h extends s{constructor(){super(h.ID,o.N("submenu.empty","(empty)"),void 0,!1)}}h.ID="vs.actions.empty"},76068:function(e,t,n){"use strict";function i(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}n.d(t,{ok:function(){return i}})},52615:function(e,t,n){"use strict";n.d(t,{CM:function(){return a},JL:function(){return s},dT:function(){return c},fK:function(){return o},lA:function(){return l}});var i=n(4348);const r=new class{constructor(){this._icons=new Map,this._onDidRegister=new i.Q5}add(e){const t=this._icons.get(e.id);t?e.description?t.description=e.description:console.error(`Duplicate registration of codicon ${e.id}`):(this._icons.set(e.id,e),this._onDidRegister.fire(e))}get(e){return this._icons.get(e)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}},o=r;function a(e,t){return new l(e,t)}function s(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}class l{constructor(e,t,n){this.id=e,this.definition=t,this.description=n,r.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var c;!function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){if(e instanceof l)return["codicon","codicon-"+e.id];const i=t.exec(e.id);if(!i)return n(l.error);let[,r,o]=i;const a=["codicon","codicon-"+r];return o&&a.push("codicon-modifier-"+o.substr(1)),a}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")}}(c||(c={})),function(e){e.add=new e("add",{fontCharacter:"\\ea60"}),e.plus=new e("plus",e.add.definition),e.gistNew=new e("gist-new",e.add.definition),e.repoCreate=new e("repo-create",e.add.definition),e.lightbulb=new e("lightbulb",{fontCharacter:"\\ea61"}),e.lightBulb=new e("light-bulb",{fontCharacter:"\\ea61"}),e.repo=new e("repo",{fontCharacter:"\\ea62"}),e.repoDelete=new e("repo-delete",{fontCharacter:"\\ea62"}),e.gistFork=new e("gist-fork",{fontCharacter:"\\ea63"}),e.repoForked=new e("repo-forked",{fontCharacter:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{fontCharacter:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),e.recordKeys=new e("record-keys",{fontCharacter:"\\ea65"}),e.keyboard=new e("keyboard",{fontCharacter:"\\ea65"}),e.tag=new e("tag",{fontCharacter:"\\ea66"}),e.tagAdd=new e("tag-add",{fontCharacter:"\\ea66"}),e.tagRemove=new e("tag-remove",{fontCharacter:"\\ea66"}),e.person=new e("person",{fontCharacter:"\\ea67"}),e.personFollow=new e("person-follow",{fontCharacter:"\\ea67"}),e.personOutline=new e("person-outline",{fontCharacter:"\\ea67"}),e.personFilled=new e("person-filled",{fontCharacter:"\\ea67"}),e.gitBranch=new e("git-branch",{fontCharacter:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{fontCharacter:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{fontCharacter:"\\ea68"}),e.sourceControl=new e("source-control",{fontCharacter:"\\ea68"}),e.mirror=new e("mirror",{fontCharacter:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{fontCharacter:"\\ea69"}),e.star=new e("star",{fontCharacter:"\\ea6a"}),e.starAdd=new e("star-add",{fontCharacter:"\\ea6a"}),e.starDelete=new e("star-delete",{fontCharacter:"\\ea6a"}),e.starEmpty=new e("star-empty",{fontCharacter:"\\ea6a"}),e.comment=new e("comment",{fontCharacter:"\\ea6b"}),e.commentAdd=new e("comment-add",{fontCharacter:"\\ea6b"}),e.alert=new e("alert",{fontCharacter:"\\ea6c"}),e.warning=new e("warning",{fontCharacter:"\\ea6c"}),e.search=new e("search",{fontCharacter:"\\ea6d"}),e.searchSave=new e("search-save",{fontCharacter:"\\ea6d"}),e.logOut=new e("log-out",{fontCharacter:"\\ea6e"}),e.signOut=new e("sign-out",{fontCharacter:"\\ea6e"}),e.logIn=new e("log-in",{fontCharacter:"\\ea6f"}),e.signIn=new e("sign-in",{fontCharacter:"\\ea6f"}),e.eye=new e("eye",{fontCharacter:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{fontCharacter:"\\ea70"}),e.eyeWatch=new e("eye-watch",{fontCharacter:"\\ea70"}),e.circleFilled=new e("circle-filled",{fontCharacter:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{fontCharacter:"\\ea71"}),e.closeDirty=new e("close-dirty",{fontCharacter:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{fontCharacter:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),e.debugHint=new e("debug-hint",{fontCharacter:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{fontCharacter:"\\ea72"}),e.edit=new e("edit",{fontCharacter:"\\ea73"}),e.pencil=new e("pencil",{fontCharacter:"\\ea73"}),e.info=new e("info",{fontCharacter:"\\ea74"}),e.issueOpened=new e("issue-opened",{fontCharacter:"\\ea74"}),e.gistPrivate=new e("gist-private",{fontCharacter:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{fontCharacter:"\\ea75"}),e.lock=new e("lock",{fontCharacter:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{fontCharacter:"\\ea75"}),e.close=new e("close",{fontCharacter:"\\ea76"}),e.removeClose=new e("remove-close",{fontCharacter:"\\ea76"}),e.x=new e("x",{fontCharacter:"\\ea76"}),e.repoSync=new e("repo-sync",{fontCharacter:"\\ea77"}),e.sync=new e("sync",{fontCharacter:"\\ea77"}),e.clone=new e("clone",{fontCharacter:"\\ea78"}),e.desktopDownload=new e("desktop-download",{fontCharacter:"\\ea78"}),e.beaker=new e("beaker",{fontCharacter:"\\ea79"}),e.microscope=new e("microscope",{fontCharacter:"\\ea79"}),e.vm=new e("vm",{fontCharacter:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{fontCharacter:"\\ea7a"}),e.file=new e("file",{fontCharacter:"\\ea7b"}),e.fileText=new e("file-text",{fontCharacter:"\\ea7b"}),e.more=new e("more",{fontCharacter:"\\ea7c"}),e.ellipsis=new e("ellipsis",{fontCharacter:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{fontCharacter:"\\ea7c"}),e.mailReply=new e("mail-reply",{fontCharacter:"\\ea7d"}),e.reply=new e("reply",{fontCharacter:"\\ea7d"}),e.organization=new e("organization",{fontCharacter:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{fontCharacter:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{fontCharacter:"\\ea7e"}),e.newFile=new e("new-file",{fontCharacter:"\\ea7f"}),e.fileAdd=new e("file-add",{fontCharacter:"\\ea7f"}),e.newFolder=new e("new-folder",{fontCharacter:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{fontCharacter:"\\ea80"}),e.trash=new e("trash",{fontCharacter:"\\ea81"}),e.trashcan=new e("trashcan",{fontCharacter:"\\ea81"}),e.history=new e("history",{fontCharacter:"\\ea82"}),e.clock=new e("clock",{fontCharacter:"\\ea82"}),e.folder=new e("folder",{fontCharacter:"\\ea83"}),e.fileDirectory=new e("file-directory",{fontCharacter:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{fontCharacter:"\\ea83"}),e.logoGithub=new e("logo-github",{fontCharacter:"\\ea84"}),e.markGithub=new e("mark-github",{fontCharacter:"\\ea84"}),e.github=new e("github",{fontCharacter:"\\ea84"}),e.terminal=new e("terminal",{fontCharacter:"\\ea85"}),e.console=new e("console",{fontCharacter:"\\ea85"}),e.repl=new e("repl",{fontCharacter:"\\ea85"}),e.zap=new e("zap",{fontCharacter:"\\ea86"}),e.symbolEvent=new e("symbol-event",{fontCharacter:"\\ea86"}),e.error=new e("error",{fontCharacter:"\\ea87"}),e.stop=new e("stop",{fontCharacter:"\\ea87"}),e.variable=new e("variable",{fontCharacter:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{fontCharacter:"\\ea88"}),e.array=new e("array",{fontCharacter:"\\ea8a"}),e.symbolArray=new e("symbol-array",{fontCharacter:"\\ea8a"}),e.symbolModule=new e("symbol-module",{fontCharacter:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{fontCharacter:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{fontCharacter:"\\ea8b"}),e.symbolObject=new e("symbol-object",{fontCharacter:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{fontCharacter:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{fontCharacter:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{fontCharacter:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{fontCharacter:"\\ea8f"}),e.symbolNull=new e("symbol-null",{fontCharacter:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{fontCharacter:"\\ea90"}),e.symbolNumber=new e("symbol-number",{fontCharacter:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{fontCharacter:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{fontCharacter:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{fontCharacter:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{fontCharacter:"\\ea92"}),e.symbolKey=new e("symbol-key",{fontCharacter:"\\ea93"}),e.symbolText=new e("symbol-text",{fontCharacter:"\\ea93"}),e.symbolReference=new e("symbol-reference",{fontCharacter:"\\ea94"}),e.goToFile=new e("go-to-file",{fontCharacter:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{fontCharacter:"\\ea95"}),e.symbolValue=new e("symbol-value",{fontCharacter:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{fontCharacter:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{fontCharacter:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{fontCharacter:"\\ea97"}),e.archive=new e("archive",{fontCharacter:"\\ea98"}),e.arrowBoth=new e("arrow-both",{fontCharacter:"\\ea99"}),e.arrowDown=new e("arrow-down",{fontCharacter:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{fontCharacter:"\\ea9b"}),e.arrowRight=new e("arrow-right",{fontCharacter:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{fontCharacter:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{fontCharacter:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{fontCharacter:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{fontCharacter:"\\eaa0"}),e.arrowUp=new e("arrow-up",{fontCharacter:"\\eaa1"}),e.bell=new e("bell",{fontCharacter:"\\eaa2"}),e.bold=new e("bold",{fontCharacter:"\\eaa3"}),e.book=new e("book",{fontCharacter:"\\eaa4"}),e.bookmark=new e("bookmark",{fontCharacter:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{fontCharacter:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),e.briefcase=new e("briefcase",{fontCharacter:"\\eaac"}),e.broadcast=new e("broadcast",{fontCharacter:"\\eaad"}),e.browser=new e("browser",{fontCharacter:"\\eaae"}),e.bug=new e("bug",{fontCharacter:"\\eaaf"}),e.calendar=new e("calendar",{fontCharacter:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{fontCharacter:"\\eab1"}),e.check=new e("check",{fontCharacter:"\\eab2"}),e.checklist=new e("checklist",{fontCharacter:"\\eab3"}),e.chevronDown=new e("chevron-down",{fontCharacter:"\\eab4"}),e.dropDownButton=new e("drop-down-button",e.chevronDown.definition),e.chevronLeft=new e("chevron-left",{fontCharacter:"\\eab5"}),e.chevronRight=new e("chevron-right",{fontCharacter:"\\eab6"}),e.chevronUp=new e("chevron-up",{fontCharacter:"\\eab7"}),e.chromeClose=new e("chrome-close",{fontCharacter:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{fontCharacter:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{fontCharacter:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{fontCharacter:"\\eabb"}),e.circleOutline=new e("circle-outline",{fontCharacter:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),e.circleSlash=new e("circle-slash",{fontCharacter:"\\eabd"}),e.circuitBoard=new e("circuit-board",{fontCharacter:"\\eabe"}),e.clearAll=new e("clear-all",{fontCharacter:"\\eabf"}),e.clippy=new e("clippy",{fontCharacter:"\\eac0"}),e.closeAll=new e("close-all",{fontCharacter:"\\eac1"}),e.cloudDownload=new e("cloud-download",{fontCharacter:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{fontCharacter:"\\eac3"}),e.code=new e("code",{fontCharacter:"\\eac4"}),e.collapseAll=new e("collapse-all",{fontCharacter:"\\eac5"}),e.colorMode=new e("color-mode",{fontCharacter:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{fontCharacter:"\\eac7"}),e.compareChanges=new e("compare-changes",{fontCharacter:"\\eafd"}),e.creditCard=new e("credit-card",{fontCharacter:"\\eac9"}),e.dash=new e("dash",{fontCharacter:"\\eacc"}),e.dashboard=new e("dashboard",{fontCharacter:"\\eacd"}),e.database=new e("database",{fontCharacter:"\\eace"}),e.debugContinue=new e("debug-continue",{fontCharacter:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{fontCharacter:"\\ead0"}),e.debugPause=new e("debug-pause",{fontCharacter:"\\ead1"}),e.debugRestart=new e("debug-restart",{fontCharacter:"\\ead2"}),e.debugStart=new e("debug-start",{fontCharacter:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{fontCharacter:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{fontCharacter:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{fontCharacter:"\\ead6"}),e.debugStop=new e("debug-stop",{fontCharacter:"\\ead7"}),e.debug=new e("debug",{fontCharacter:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{fontCharacter:"\\ead9"}),e.deviceCamera=new e("device-camera",{fontCharacter:"\\eada"}),e.deviceMobile=new e("device-mobile",{fontCharacter:"\\eadb"}),e.diffAdded=new e("diff-added",{fontCharacter:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{fontCharacter:"\\eadd"}),e.diffModified=new e("diff-modified",{fontCharacter:"\\eade"}),e.diffRemoved=new e("diff-removed",{fontCharacter:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{fontCharacter:"\\eae0"}),e.diff=new e("diff",{fontCharacter:"\\eae1"}),e.discard=new e("discard",{fontCharacter:"\\eae2"}),e.editorLayout=new e("editor-layout",{fontCharacter:"\\eae3"}),e.emptyWindow=new e("empty-window",{fontCharacter:"\\eae4"}),e.exclude=new e("exclude",{fontCharacter:"\\eae5"}),e.extensions=new e("extensions",{fontCharacter:"\\eae6"}),e.eyeClosed=new e("eye-closed",{fontCharacter:"\\eae7"}),e.fileBinary=new e("file-binary",{fontCharacter:"\\eae8"}),e.fileCode=new e("file-code",{fontCharacter:"\\eae9"}),e.fileMedia=new e("file-media",{fontCharacter:"\\eaea"}),e.filePdf=new e("file-pdf",{fontCharacter:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{fontCharacter:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{fontCharacter:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{fontCharacter:"\\eaee"}),e.fileZip=new e("file-zip",{fontCharacter:"\\eaef"}),e.files=new e("files",{fontCharacter:"\\eaf0"}),e.filter=new e("filter",{fontCharacter:"\\eaf1"}),e.flame=new e("flame",{fontCharacter:"\\eaf2"}),e.foldDown=new e("fold-down",{fontCharacter:"\\eaf3"}),e.foldUp=new e("fold-up",{fontCharacter:"\\eaf4"}),e.fold=new e("fold",{fontCharacter:"\\eaf5"}),e.folderActive=new e("folder-active",{fontCharacter:"\\eaf6"}),e.folderOpened=new e("folder-opened",{fontCharacter:"\\eaf7"}),e.gear=new e("gear",{fontCharacter:"\\eaf8"}),e.gift=new e("gift",{fontCharacter:"\\eaf9"}),e.gistSecret=new e("gist-secret",{fontCharacter:"\\eafa"}),e.gist=new e("gist",{fontCharacter:"\\eafb"}),e.gitCommit=new e("git-commit",{fontCharacter:"\\eafc"}),e.gitCompare=new e("git-compare",{fontCharacter:"\\eafd"}),e.gitMerge=new e("git-merge",{fontCharacter:"\\eafe"}),e.githubAction=new e("github-action",{fontCharacter:"\\eaff"}),e.githubAlt=new e("github-alt",{fontCharacter:"\\eb00"}),e.globe=new e("globe",{fontCharacter:"\\eb01"}),e.grabber=new e("grabber",{fontCharacter:"\\eb02"}),e.graph=new e("graph",{fontCharacter:"\\eb03"}),e.gripper=new e("gripper",{fontCharacter:"\\eb04"}),e.heart=new e("heart",{fontCharacter:"\\eb05"}),e.home=new e("home",{fontCharacter:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{fontCharacter:"\\eb07"}),e.hubot=new e("hubot",{fontCharacter:"\\eb08"}),e.inbox=new e("inbox",{fontCharacter:"\\eb09"}),e.issueClosed=new e("issue-closed",{fontCharacter:"\\eba4"}),e.issueReopened=new e("issue-reopened",{fontCharacter:"\\eb0b"}),e.issues=new e("issues",{fontCharacter:"\\eb0c"}),e.italic=new e("italic",{fontCharacter:"\\eb0d"}),e.jersey=new e("jersey",{fontCharacter:"\\eb0e"}),e.json=new e("json",{fontCharacter:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{fontCharacter:"\\eb10"}),e.key=new e("key",{fontCharacter:"\\eb11"}),e.law=new e("law",{fontCharacter:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{fontCharacter:"\\eb13"}),e.linkExternal=new e("link-external",{fontCharacter:"\\eb14"}),e.link=new e("link",{fontCharacter:"\\eb15"}),e.listOrdered=new e("list-ordered",{fontCharacter:"\\eb16"}),e.listUnordered=new e("list-unordered",{fontCharacter:"\\eb17"}),e.liveShare=new e("live-share",{fontCharacter:"\\eb18"}),e.loading=new e("loading",{fontCharacter:"\\eb19"}),e.location=new e("location",{fontCharacter:"\\eb1a"}),e.mailRead=new e("mail-read",{fontCharacter:"\\eb1b"}),e.mail=new e("mail",{fontCharacter:"\\eb1c"}),e.markdown=new e("markdown",{fontCharacter:"\\eb1d"}),e.megaphone=new e("megaphone",{fontCharacter:"\\eb1e"}),e.mention=new e("mention",{fontCharacter:"\\eb1f"}),e.milestone=new e("milestone",{fontCharacter:"\\eb20"}),e.mortarBoard=new e("mortar-board",{fontCharacter:"\\eb21"}),e.move=new e("move",{fontCharacter:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{fontCharacter:"\\eb23"}),e.mute=new e("mute",{fontCharacter:"\\eb24"}),e.noNewline=new e("no-newline",{fontCharacter:"\\eb25"}),e.note=new e("note",{fontCharacter:"\\eb26"}),e.octoface=new e("octoface",{fontCharacter:"\\eb27"}),e.openPreview=new e("open-preview",{fontCharacter:"\\eb28"}),e.package_=new e("package",{fontCharacter:"\\eb29"}),e.paintcan=new e("paintcan",{fontCharacter:"\\eb2a"}),e.pin=new e("pin",{fontCharacter:"\\eb2b"}),e.play=new e("play",{fontCharacter:"\\eb2c"}),e.run=new e("run",{fontCharacter:"\\eb2c"}),e.plug=new e("plug",{fontCharacter:"\\eb2d"}),e.preserveCase=new e("preserve-case",{fontCharacter:"\\eb2e"}),e.preview=new e("preview",{fontCharacter:"\\eb2f"}),e.project=new e("project",{fontCharacter:"\\eb30"}),e.pulse=new e("pulse",{fontCharacter:"\\eb31"}),e.question=new e("question",{fontCharacter:"\\eb32"}),e.quote=new e("quote",{fontCharacter:"\\eb33"}),e.radioTower=new e("radio-tower",{fontCharacter:"\\eb34"}),e.reactions=new e("reactions",{fontCharacter:"\\eb35"}),e.references=new e("references",{fontCharacter:"\\eb36"}),e.refresh=new e("refresh",{fontCharacter:"\\eb37"}),e.regex=new e("regex",{fontCharacter:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{fontCharacter:"\\eb39"}),e.remote=new e("remote",{fontCharacter:"\\eb3a"}),e.remove=new e("remove",{fontCharacter:"\\eb3b"}),e.replaceAll=new e("replace-all",{fontCharacter:"\\eb3c"}),e.replace=new e("replace",{fontCharacter:"\\eb3d"}),e.repoClone=new e("repo-clone",{fontCharacter:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{fontCharacter:"\\eb3f"}),e.repoPull=new e("repo-pull",{fontCharacter:"\\eb40"}),e.repoPush=new e("repo-push",{fontCharacter:"\\eb41"}),e.report=new e("report",{fontCharacter:"\\eb42"}),e.requestChanges=new e("request-changes",{fontCharacter:"\\eb43"}),e.rocket=new e("rocket",{fontCharacter:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{fontCharacter:"\\eb45"}),e.rootFolder=new e("root-folder",{fontCharacter:"\\eb46"}),e.rss=new e("rss",{fontCharacter:"\\eb47"}),e.ruby=new e("ruby",{fontCharacter:"\\eb48"}),e.saveAll=new e("save-all",{fontCharacter:"\\eb49"}),e.saveAs=new e("save-as",{fontCharacter:"\\eb4a"}),e.save=new e("save",{fontCharacter:"\\eb4b"}),e.screenFull=new e("screen-full",{fontCharacter:"\\eb4c"}),e.screenNormal=new e("screen-normal",{fontCharacter:"\\eb4d"}),e.searchStop=new e("search-stop",{fontCharacter:"\\eb4e"}),e.server=new e("server",{fontCharacter:"\\eb50"}),e.settingsGear=new e("settings-gear",{fontCharacter:"\\eb51"}),e.settings=new e("settings",{fontCharacter:"\\eb52"}),e.shield=new e("shield",{fontCharacter:"\\eb53"}),e.smiley=new e("smiley",{fontCharacter:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{fontCharacter:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{fontCharacter:"\\eb56"}),e.splitVertical=new e("split-vertical",{fontCharacter:"\\eb57"}),e.squirrel=new e("squirrel",{fontCharacter:"\\eb58"}),e.starFull=new e("star-full",{fontCharacter:"\\eb59"}),e.starHalf=new e("star-half",{fontCharacter:"\\eb5a"}),e.symbolClass=new e("symbol-class",{fontCharacter:"\\eb5b"}),e.symbolColor=new e("symbol-color",{fontCharacter:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{fontCharacter:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{fontCharacter:"\\eb5e"}),e.symbolField=new e("symbol-field",{fontCharacter:"\\eb5f"}),e.symbolFile=new e("symbol-file",{fontCharacter:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{fontCharacter:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{fontCharacter:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{fontCharacter:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{fontCharacter:"\\eb64"}),e.symbolProperty=new e("symbol-property",{fontCharacter:"\\eb65"}),e.wrench=new e("wrench",{fontCharacter:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{fontCharacter:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{fontCharacter:"\\eb66"}),e.tasklist=new e("tasklist",{fontCharacter:"\\eb67"}),e.telescope=new e("telescope",{fontCharacter:"\\eb68"}),e.textSize=new e("text-size",{fontCharacter:"\\eb69"}),e.threeBars=new e("three-bars",{fontCharacter:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{fontCharacter:"\\eb6b"}),e.thumbsup=new e("thumbsup",{fontCharacter:"\\eb6c"}),e.tools=new e("tools",{fontCharacter:"\\eb6d"}),e.triangleDown=new e("triangle-down",{fontCharacter:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{fontCharacter:"\\eb6f"}),e.triangleRight=new e("triangle-right",{fontCharacter:"\\eb70"}),e.triangleUp=new e("triangle-up",{fontCharacter:"\\eb71"}),e.twitter=new e("twitter",{fontCharacter:"\\eb72"}),e.unfold=new e("unfold",{fontCharacter:"\\eb73"}),e.unlock=new e("unlock",{fontCharacter:"\\eb74"}),e.unmute=new e("unmute",{fontCharacter:"\\eb75"}),e.unverified=new e("unverified",{fontCharacter:"\\eb76"}),e.verified=new e("verified",{fontCharacter:"\\eb77"}),e.versions=new e("versions",{fontCharacter:"\\eb78"}),e.vmActive=new e("vm-active",{fontCharacter:"\\eb79"}),e.vmOutline=new e("vm-outline",{fontCharacter:"\\eb7a"}),e.vmRunning=new e("vm-running",{fontCharacter:"\\eb7b"}),e.watch=new e("watch",{fontCharacter:"\\eb7c"}),e.whitespace=new e("whitespace",{fontCharacter:"\\eb7d"}),e.wholeWord=new e("whole-word",{fontCharacter:"\\eb7e"}),e.window=new e("window",{fontCharacter:"\\eb7f"}),e.wordWrap=new e("word-wrap",{fontCharacter:"\\eb80"}),e.zoomIn=new e("zoom-in",{fontCharacter:"\\eb81"}),e.zoomOut=new e("zoom-out",{fontCharacter:"\\eb82"}),e.listFilter=new e("list-filter",{fontCharacter:"\\eb83"}),e.listFlat=new e("list-flat",{fontCharacter:"\\eb84"}),e.listSelection=new e("list-selection",{fontCharacter:"\\eb85"}),e.selection=new e("selection",{fontCharacter:"\\eb85"}),e.listTree=new e("list-tree",{fontCharacter:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{fontCharacter:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{fontCharacter:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{fontCharacter:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),e.symbolString=new e("symbol-string",{fontCharacter:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{fontCharacter:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{fontCharacter:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{fontCharacter:"\\eb90"}),e.callIncoming=new e("call-incoming",{fontCharacter:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{fontCharacter:"\\eb93"}),e.menu=new e("menu",{fontCharacter:"\\eb94"}),e.expandAll=new e("expand-all",{fontCharacter:"\\eb95"}),e.feedback=new e("feedback",{fontCharacter:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{fontCharacter:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),e.account=new e("account",{fontCharacter:"\\eb99"}),e.bellDot=new e("bell-dot",{fontCharacter:"\\eb9a"}),e.debugConsole=new e("debug-console",{fontCharacter:"\\eb9b"}),e.library=new e("library",{fontCharacter:"\\eb9c"}),e.output=new e("output",{fontCharacter:"\\eb9d"}),e.runAll=new e("run-all",{fontCharacter:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{fontCharacter:"\\eb9f"}),e.pinned=new e("pinned",{fontCharacter:"\\eba0"}),e.githubInverted=new e("github-inverted",{fontCharacter:"\\eba1"}),e.debugAlt=new e("debug-alt",{fontCharacter:"\\eb91"}),e.serverProcess=new e("server-process",{fontCharacter:"\\eba2"}),e.serverEnvironment=new e("server-environment",{fontCharacter:"\\eba3"}),e.pass=new e("pass",{fontCharacter:"\\eba4"}),e.stopCircle=new e("stop-circle",{fontCharacter:"\\eba5"}),e.playCircle=new e("play-circle",{fontCharacter:"\\eba6"}),e.record=new e("record",{fontCharacter:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{fontCharacter:"\\eba8"}),e.vmConnect=new e("vm-connect",{fontCharacter:"\\eba9"}),e.cloud=new e("cloud",{fontCharacter:"\\ebaa"}),e.merge=new e("merge",{fontCharacter:"\\ebab"}),e.exportIcon=new e("export",{fontCharacter:"\\ebac"}),e.graphLeft=new e("graph-left",{fontCharacter:"\\ebad"}),e.magnet=new e("magnet",{fontCharacter:"\\ebae"}),e.notebook=new e("notebook",{fontCharacter:"\\ebaf"}),e.redo=new e("redo",{fontCharacter:"\\ebb0"}),e.checkAll=new e("check-all",{fontCharacter:"\\ebb1"}),e.pinnedDirty=new e("pinned-dirty",{fontCharacter:"\\ebb2"}),e.passFilled=new e("pass-filled",{fontCharacter:"\\ebb3"}),e.circleLargeFilled=new e("circle-large-filled",{fontCharacter:"\\ebb4"}),e.circleLargeOutline=new e("circle-large-outline",{fontCharacter:"\\ebb5"}),e.combine=new e("combine",{fontCharacter:"\\ebb6"}),e.gather=new e("gather",{fontCharacter:"\\ebb6"}),e.table=new e("table",{fontCharacter:"\\ebb7"}),e.variableGroup=new e("variable-group",{fontCharacter:"\\ebb8"}),e.typeHierarchy=new e("type-hierarchy",{fontCharacter:"\\ebb9"}),e.typeHierarchySub=new e("type-hierarchy-sub",{fontCharacter:"\\ebba"}),e.typeHierarchySuper=new e("type-hierarchy-super",{fontCharacter:"\\ebbb"}),e.gitPullRequestCreate=new e("git-pull-request-create",{fontCharacter:"\\ebbc"}),e.runAbove=new e("run-above",{fontCharacter:"\\ebbd"}),e.runBelow=new e("run-below",{fontCharacter:"\\ebbe"}),e.notebookTemplate=new e("notebook-template",{fontCharacter:"\\ebbf"}),e.debugRerun=new e("debug-rerun",{fontCharacter:"\\ebc0"}),e.workspaceTrusted=new e("workspace-trusted",{fontCharacter:"\\ebc1"}),e.workspaceUntrusted=new e("workspace-untrusted",{fontCharacter:"\\ebc2"}),e.workspaceUnspecified=new e("workspace-unspecified",{fontCharacter:"\\ebc3"}),e.terminalCmd=new e("terminal-cmd",{fontCharacter:"\\ebc4"}),e.terminalDebian=new e("terminal-debian",{fontCharacter:"\\ebc5"}),e.terminalLinux=new e("terminal-linux",{fontCharacter:"\\ebc6"}),e.terminalPowershell=new e("terminal-powershell",{fontCharacter:"\\ebc7"}),e.terminalTmux=new e("terminal-tmux",{fontCharacter:"\\ebc8"}),e.terminalUbuntu=new e("terminal-ubuntu",{fontCharacter:"\\ebc9"}),e.terminalBash=new e("terminal-bash",{fontCharacter:"\\ebca"}),e.arrowSwap=new e("arrow-swap",{fontCharacter:"\\ebcb"}),e.copy=new e("copy",{fontCharacter:"\\ebcc"}),e.personAdd=new e("person-add",{fontCharacter:"\\ebcd"}),e.filterFilled=new e("filter-filled",{fontCharacter:"\\ebce"}),e.wand=new e("wand",{fontCharacter:"\\ebcf"}),e.debugLineByLine=new e("debug-line-by-line",{fontCharacter:"\\ebd0"}),e.inspect=new e("inspect",{fontCharacter:"\\ebd1"}),e.layers=new e("layers",{fontCharacter:"\\ebd2"}),e.layersDot=new e("layers-dot",{fontCharacter:"\\ebd3"}),e.layersActive=new e("layers-active",{fontCharacter:"\\ebd4"}),e.compass=new e("compass",{fontCharacter:"\\ebd5"}),e.compassDot=new e("compass-dot",{fontCharacter:"\\ebd6"}),e.compassActive=new e("compass-active",{fontCharacter:"\\ebd7"}),e.azure=new e("azure",{fontCharacter:"\\ebd8"}),e.issueDraft=new e("issue-draft",{fontCharacter:"\\ebd9"}),e.gitPullRequestClosed=new e("git-pull-request-closed",{fontCharacter:"\\ebda"}),e.gitPullRequestDraft=new e("git-pull-request-draft",{fontCharacter:"\\ebdb"}),e.debugAll=new e("debug-all",{fontCharacter:"\\ebdc"}),e.debugCoverage=new e("debug-coverage",{fontCharacter:"\\ebdd"}),e.runErrors=new e("run-errors",{fontCharacter:"\\ebde"}),e.folderLibrary=new e("folder-library",{fontCharacter:"\\ebdf"}),e.debugContinueSmall=new e("debug-continue-small",{fontCharacter:"\\ebe0"}),e.beakerStop=new e("beaker-stop",{fontCharacter:"\\ebe1"}),e.graphLine=new e("graph-line",{fontCharacter:"\\ebe2"}),e.graphScatter=new e("graph-scatter",{fontCharacter:"\\ebe3"}),e.pieChart=new e("pie-chart",{fontCharacter:"\\ebe4"}),e.bracket=new e("bracket",e.json.definition),e.bracketDot=new e("bracket-dot",{fontCharacter:"\\ebe5"}),e.bracketError=new e("bracket-error",{fontCharacter:"\\ebe6"}),e.lockSmall=new e("lock-small",{fontCharacter:"\\ebe7"}),e.azureDevops=new e("azure-devops",{fontCharacter:"\\ebe8"}),e.verifiedFilled=new e("verified-filled",{fontCharacter:"\\ebe9"})}(l||(l={}))},79881:function(e,t,n){"use strict";n.d(t,{B8:function(){return d},Cp:function(){return o},F0:function(){return c},L6:function(){return h},VV:function(){return l},b1:function(){return u},dL:function(){return r},ri:function(){return a}});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){l(e)||i.onUnexpectedError(e)}function o(e){l(e)||i.onUnexpectedExternalError(e)}function a(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e}const s="Canceled";function l(e){return e instanceof Error&&e.name===s&&e.message===s}function c(){const e=new Error(s);return e.name=e.message,e}function u(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function h(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class d extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}},4348:function(e,t,n){"use strict";n.d(t,{D0:function(){return h},E7:function(){return d},K3:function(){return u},Q5:function(){return c},ZD:function(){return p},ju:function(){return i}});var i,r=n(79881),o=n(69323),a=n(34502),s=n(95830);!function(e){function t(e){return(t,n=null,i)=>{let r,o=!1;return r=e((e=>{if(!o)return r?r.dispose():o=!0,t.call(n,e)}),null,i),o&&r.dispose(),r}}function n(e,t){return s(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)))}function i(e,t){return s(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)))}function r(e,t){return s(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)))}function a(e,t,i){let r=i;return n(e,(e=>(r=t(r,e),r)))}function s(e){let t;const n=new c({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function l(e,t,n=100,i=!1,r){let o,a,s,l=0;const u=new c({leakWarningThreshold:r,onFirstListenerAdd(){o=e((e=>{l++,a=t(a,e),i&&!s&&(u.fire(a),a=void 0),clearTimeout(s),s=setTimeout((()=>{const e=a;a=void 0,s=void 0,(!i||l>1)&&u.fire(e),l=0}),n)}))},onLastListenerRemove(){o.dispose()}});return u.event}function u(e,t=((e,t)=>e===t)){let n,i=!0;return r(e,(e=>{const r=i||!t(e,n);return i=!1,n=e,r}))}e.None=()=>o.JT.None,e.once=t,e.map=n,e.forEach=i,e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>(0,o.F8)(...e.map((e=>e((e=>t.call(n,e)),null,i))))},e.reduce=a,e.debounce=l,e.latch=u,e.split=function(t,n){return[e.filter(t,n),e.filter(t,(e=>!n(e)))]},e.buffer=function(e,t=!1,n=[]){let i=n.slice(),r=e((e=>{i?i.push(e):a.fire(e)}));const o=()=>{i&&i.forEach((e=>a.fire(e))),i=null},a=new c({onFirstListenerAdd(){r||(r=e((e=>a.fire(e))))},onFirstListenerDidAdd(){i&&(t?setTimeout(o):o())},onLastListenerRemove(){r&&r.dispose(),r=null}});return a.event};class h{constructor(e){this.event=e}map(e){return new h(n(this.event,e))}forEach(e){return new h(i(this.event,e))}filter(e){return new h(r(this.event,e))}reduce(e,t){return new h(a(this.event,e,t))}latch(){return new h(u(this.event))}debounce(e,t=100,n=!1,i){return new h(l(this.event,e,t,n,i))}on(e,t,n){return this.event(e,t,n)}once(e,n,i){return t(this.event)(e,n,i)}}e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new c({onFirstListenerAdd:()=>e.on(t,i),onLastListenerRemove:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new c({onFirstListenerAdd:()=>e.addEventListener(t,i),onLastListenerRemove:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((n=>t(e)(n)))}}(i||(i={}));class l{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${l._idPool++}`}start(e){this._stopWatch=new s.G(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}l._idPool=0;class c{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new l(this._options._profName):void 0}get event(){return this._event||(this._event=(e,t,n)=>{var i;this._listeners||(this._listeners=new a.S);const r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(t?[e,t]:e);r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const l=null===(i=this._leakageMon)||void 0===i?void 0:i.check(this._listeners.size),c=(0,o.OF)((()=>{if(l&&l(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}));return n instanceof o.SL?n.add(c):Array.isArray(n)&&n.push(c),c}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new a.S);for(let t of this._listeners)this._deliveryQueue.push([t,e]);for(null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){(0,r.dL)(e)}}null===(n=this._perfMon)||void 0===n||n.stop()}}dispose(){var e,t,n,i,r;this._disposed||(this._disposed=!0,null===(e=this._listeners)||void 0===e||e.clear(),null===(t=this._deliveryQueue)||void 0===t||t.clear(),null===(i=null===(n=this._options)||void 0===n?void 0:n.onLastListenerRemove)||void 0===i||i.call(n),null===(r=this._leakageMon)||void 0===r||r.dispose())}}class u extends c{constructor(e){super(e),this._isPaused=0,this._eventQueue=new a.S,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class h extends u{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(e)}}class d{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,i)=>e((e=>{const i=this.buffers[this.buffers.length-1];i?i.push((()=>t.call(n,e))):t.call(n,e)}),void 0,i)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach((e=>e())),n}}class p{constructor(){this.listening=!1,this.inputEvent=i.None,this.inputEventListener=o.JT.None,this.emitter=new c({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(e,t,n){"use strict";function i(e){const t=this;let n,i=!1;return function(){return i||(i=!0,n=e.apply(t,arguments)),n}}n.d(t,{I:function(){return i}})},88226:function(e,t,n){"use strict";var i;n.d(t,{$:function(){return i}}),function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const t=Object.freeze([]);e.empty=function(){return t},e.single=function*(e){yield e},e.from=function(e){return e||t},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.concat=function*(...e){for(const t of e)for(const e of t)yield e},e.concatNested=function*(e){for(const t of e)for(const e of t)yield e},e.reduce=function(e,t,n){let i=n;for(const n of e)i=t(i,n);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);te===t)){const i=e[Symbol.iterator](),r=t[Symbol.iterator]();for(;;){const e=i.next(),t=r.next();if(e.done!==t.done)return!1;if(e.done)return!0;if(!n(e.value,t.value))return!1}}}(i||(i={}))},69323:function(e,t,n){"use strict";n.d(t,{B9:function(){return d},F8:function(){return p},JT:function(){return m},Jz:function(){return y},OF:function(){return f},SL:function(){return g},Wf:function(){return h},XK:function(){return v},dk:function(){return c}});var i=n(17845),r=n(88226);let o=null;function a(e){return null==o||o.trackDisposable(e),e}function s(e){null==o||o.markAsDisposed(e)}function l(e,t){null==o||o.setParent(e,t)}function c(e){return null==o||o.markAsSingleton(e),e}class u extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function h(e){return"function"==typeof e.dispose&&0===e.dispose.length}function d(e){if(r.$.is(e)){let t=[];for(const n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new u(t);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function p(...e){const t=f((()=>d(e)));return function(e,t){if(o)for(const n of e)o.setParent(n,t)}(e,t),t}function f(e){const t=a({dispose:(0,i.I)((()=>{s(t),e()}))});return t}class g{constructor(){this._toDispose=new Set,this._isDisposed=!1,a(this)}dispose(){this._isDisposed||(s(this),this._isDisposed=!0,this.clear())}clear(){try{d(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?g.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}g.DISABLE_DISPOSED_WARNING=!1;class m{constructor(){this._store=new g,a(this),l(this._store,this)}dispose(){s(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}m.None=Object.freeze({dispose(){}});class v{constructor(){this._isDisposed=!1,a(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,s(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&l(e,null),e}}class y{constructor(e){this.object=e}dispose(){}}},34502:function(e,t,n){"use strict";n.d(t,{S:function(){return r}});class i{constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}i.Undefined=new i(void 0);class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let e=this._first;for(;e!==i.Undefined;){const t=e.next;e.prev=i.Undefined,e.next=i.Undefined,e=t}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==i.Undefined;)yield e.element,e=e.next}}},23345:function(e,t,n){"use strict";n.d(t,{$L:function(){return C},ED:function(){return x},IJ:function(){return k},OS:function(){return L},WE:function(){return E},dz:function(){return S},gn:function(){return P},li:function(){return v},r:function(){return D},tY:function(){return _},xS:function(){return M}});var i,r=n(97671);const o="en";let a,s,l=!1,c=!1,u=!1,h=!1,d=!1,p=!1,f=!1,g=null,m=null;const v="object"==typeof self?self:"object"==typeof n.g?n.g:{};let y;void 0!==v.vscode&&void 0!==v.vscode.process?y=v.vscode.process:void 0!==r&&(y=r);const b="string"==typeof(null===(i=null==y?void 0:y.versions)||void 0===i?void 0:i.electron)&&"renderer"===y.type;if("object"!=typeof navigator||b)if("object"==typeof y){l="win32"===y.platform,c="darwin"===y.platform,u="linux"===y.platform,h=u&&!!y.env.SNAP&&!!y.env.SNAP_REVISION,a=o,g=o;const e=y.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];a=t.locale,g=n||o,m=t._translationsConfigFile}catch(e){}d=!0}else console.error("Unable to resolve platform.");else s=navigator.userAgent,l=s.indexOf("Windows")>=0,c=s.indexOf("Macintosh")>=0,f=(s.indexOf("Macintosh")>=0||s.indexOf("iPad")>=0||s.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,u=s.indexOf("Linux")>=0,p=!0,a=navigator.language,g=a;let w=0;c?w=1:l?w=3:u&&(w=2);const x=l,S=c,k=u,_=d,C=p,P=f,E=s,M=function(){if(v.setImmediate)return v.setImmediate.bind(v);if("function"==typeof v.postMessage&&!v.importScripts){let e=[];v.addEventListener("message",(t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let n=0,i=e.length;n{const i=++t;e.push({id:i,callback:n}),v.postMessage({vscodeSetImmediateId:i},"*")}}if("function"==typeof(null==y?void 0:y.nextTick))return y.nextTick.bind(y);const e=Promise.resolve();return t=>e.then(t)}(),L=c||f?2:l?1:3;let A=!0,T=!1;function D(){if(!T){T=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);A=513===t[0]}return A}},95830:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var i=n(23345);const r=i.li.performance&&"function"==typeof i.li.performance.now;class o{constructor(e){this._highResolution=r&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new o(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?i.li.performance.now():Date.now()}}},82983:function(e,t,n){"use strict";function i(e){return!e||"string"!=typeof e||0===e.trim().length}n.d(t,{$i:function(){return H},C8:function(){return V},GF:function(){return p},HO:function(){return R},IO:function(){return f},K7:function(){return U},Kw:function(){return Y},LC:function(){return v},Mh:function(){return M},P1:function(){return L},PJ:function(){return X},Qe:function(){return Z},R1:function(){return d},RP:function(){return j},S6:function(){return Q},TT:function(){return x},Ut:function(){return F},V8:function(){return y},WU:function(){return o},YK:function(){return T},YU:function(){return a},ZG:function(){return A},ZH:function(){return N},ab:function(){return K},c1:function(){return W},df:function(){return C},ec:function(){return s},fi:function(){return J},fy:function(){return l},j3:function(){return c},j_:function(){return k},m5:function(){return i},mK:function(){return _},mr:function(){return g},oH:function(){return te},oL:function(){return u},ok:function(){return E},ow:function(){return b},qq:function(){return P},qu:function(){return w},rL:function(){return D},uS:function(){return q},un:function(){return h},uq:function(){return m},vH:function(){return B},xe:function(){return G},zY:function(){return S}});const r=/{(\d+)}/g;function o(e,...t){return 0===t.length?e:e.replace(r,(function(e,n){const i=parseInt(n,10);return isNaN(i)||i<0||i>=t.length?e:t[i]}))}function a(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function s(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t=" "){return u(c(e,t),t)}function c(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;for(;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function u(e,t){if(!e||!t)return e;const n=t.length,i=e.length;if(0===n||0===i)return e;let r=i,o=-1;for(;o=e.lastIndexOf(t,r-1),-1!==o&&o+n===r;){if(0===o)return"";r=o}return e.substring(0,r)}function h(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function d(e){return e.replace(/\*/g,"")}function p(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=s(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function f(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function g(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function m(e){return e.split(/\r\n|\r|\n/)}function v(e){for(let t=0,n=e.length;t=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function w(e,t){return et?1:0}function x(e,t,n=0,i=e.length,r=0,o=t.length){for(;no)return 1}const a=i-n,s=o-r;return as?1:0}function S(e,t){return k(e,t,0,e.length,0,t.length)}function k(e,t,n=0,i=e.length,r=0,o=t.length){for(;n=128||s>=128)return x(e.toLowerCase(),t.toLowerCase(),n,i,r,o);_(a)&&(a-=32),_(s)&&(s-=32);const l=a-s;if(0!==l)return l}const a=i-n,s=o-r;return as?1:0}function _(e){return e>=97&&e<=122}function C(e){return e>=65&&e<=90}function P(e,t){return e.length===t.length&&0===k(e,t)}function E(e,t){const n=t.length;return!(t.length>e.length)&&0===k(e,t,0,n)}function M(e,t){let n,i=Math.min(e.length,t.length);for(n=0;n1){const i=e.charCodeAt(t-2);if(A(i))return D(i,n)}return n}function B(e,t){const n=ee.getInstance(),i=t,r=e.length,o=N(e,r,t);t+=o>=65536?2:1;let a=n.getGraphemeBreakType(o);for(;t=65536?2:1,a=o}return t-i}function R(e,t){const n=ee.getInstance(),i=t,r=I(e,t);t-=r>=65536?2:1;let o=n.getGraphemeBreakType(r);for(;t>0;){const i=I(e,t),r=n.getGraphemeBreakType(i);if(J(r,o))break;t-=i>=65536?2:1,o=r}return i-t}const O=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function F(e){return O.test(e)}const z=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function j(e){return z.test(e)}const $=/^[\t\n\r\x20-\x7E]*$/;function H(e){return $.test(e)}const Z=/[\u2028\u2029]/;function K(e){return Z.test(e)}function G(e){for(let t=0,n=e.length;t=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function V(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129003||e>=129280&&e<=129535||e>=129648&&e<=129750}const W=String.fromCharCode(65279);function q(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function Y(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function X(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function Q(e){return ee.getInstance().getGraphemeBreakType(e)}function J(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class ee{constructor(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}static getInstance(){return ee._INSTANCE||(ee._INSTANCE=new ee),ee._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(et[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}function te(e,t){if(0===e)return 0;const n=function(e,t){let n=I(t,e);e-=ne(n);for(;ie(n)||65039===n||8419===n;){if(0===e)return;n=I(t,e),e-=ne(n)}if(!V(n))return;if(e>=0){const n=I(t,e);8205===n&&(e-=ne(n))}return e}(e,t);if(void 0!==n)return n;return e-=ne(I(t,e))}function ne(e){return e>=65536?2:1}function ie(e){return 127995<=e&&e<=127999}ee._INSTANCE=null},72999:function(e,t,n){"use strict";function i(e){return Array.isArray(e)}function r(e){return"string"==typeof e}function o(e){return!("object"!=typeof e||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function a(e){return"number"==typeof e&&!isNaN(e)}function s(e){return!0===e||!1===e}function l(e){return void 0===e}function c(e){return!u(e)}function u(e){return l(e)||null===e}function h(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function d(e){if(u(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"==typeof e}function f(e,t){const n=Math.min(e.length,t.length);for(let i=0;ifunction(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)};let i={};for(const t of e)i[t]=n(t);return i}function y(e){return null===e?void 0:e}function b(e,t="Unreachable"){throw new Error(t)}n.d(t,{$E:function(){return m},$K:function(){return c},D8:function(){return f},HD:function(){return r},IU:function(){return v},Jp:function(){return u},Kn:function(){return o},cW:function(){return d},f6:function(){return y},hj:function(){return a},jn:function(){return s},kJ:function(){return i},mf:function(){return p},o8:function(){return l},p_:function(){return h},vE:function(){return b}})},13268:function(e,t,n){"use strict";function i(e,t,...n){return function(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){const i=n[0];return void 0!==t[i]?t[i]:e})),n}(t,n)}n.d(t,{N:function(){return i}})},96236:function(e,t,n){"use strict";n.d(t,{BH:function(){return y},NZ:function(){return b},U8:function(){return w},co:function(){return v},eH:function(){return m},vr:function(){return g}});var i=n(75918),r=n(52615),o=n(4348),a=n(88226),s=n(69323),l=n(34502),c=n(35884),u=n(90689),h=n(16925),d=n(49055),p=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},f=function(e,t){return function(n,i){t(n,i,e)}};function g(e){return void 0!==e.command}class m{constructor(e){this.id=m._idPool++,this._debugName=e}}m._idPool=0,m.CommandPalette=new m("CommandPalette"),m.EditorContext=new m("EditorContext"),m.SimpleEditorContext=new m("SimpleEditorContext"),m.EditorContextCopy=new m("EditorContextCopy"),m.EditorContextPeek=new m("EditorContextPeek"),m.MenubarEditMenu=new m("MenubarEditMenu"),m.MenubarCopy=new m("MenubarCopy"),m.MenubarGoMenu=new m("MenubarGoMenu"),m.MenubarSelectionMenu=new m("MenubarSelectionMenu"),m.InlineCompletionsActions=new m("InlineCompletionsActions");const v=(0,h.yh)("menuService"),y=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new o.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:e=>e===m.CommandPalette}}addCommand(e){return this.addCommands(a.$.single(e))}addCommands(e){for(const t of e)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,s.OF)((()=>{let t=!1;for(const n of e)t=this._commands.delete(n.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)}))}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach(((t,n)=>e.set(n,t))),e}appendMenuItem(e,t){return this.appendMenuItems(a.$.single({id:e,item:t}))}appendMenuItems(e){const t=new Set,n=new l.S;for(const{id:i,item:r}of e){let e=this._menuItems.get(i);e||(e=new l.S,this._menuItems.set(i,e)),n.push(e.push(r)),t.add(i)}return this._onDidChangeMenu.fire(t),(0,s.OF)((()=>{if(n.size>0){for(let e of n)e();this._onDidChangeMenu.fire(t),n.clear()}}))}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===m.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const n of e)g(n)&&(t.add(n.command.id),n.alt&&t.add(n.alt.id));this._commands.forEach(((n,i)=>{t.has(i)||e.push({command:n})}))}};class b extends i.wY{constructor(e,t,n,i){super(`submenuitem.${e.submenu.id}`,"string"==typeof e.title?e.title:e.title.value,[],"submenu"),this.item=e,this._menuService=t,this._contextKeyService=n,this._options=i}get actions(){const e=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),n=t.getActions(this._options);t.dispose();for(const[,t]of n)t.length>0&&(e.push(...t),e.push(new i.Z0));return e.length&&e.pop(),e}}let w=class e{constructor(t,n,i,o,a){var s,l;if(this._commandService=a,this.id=t.id,this.label=(null==i?void 0:i.renderShortTitle)&&t.shortTitle?"string"==typeof t.shortTitle?t.shortTitle:t.shortTitle.value:"string"==typeof t.title?t.title:t.title.value,this.tooltip=null!==(l="string"==typeof t.tooltip?t.tooltip:null===(s=t.tooltip)||void 0===s?void 0:s.value)&&void 0!==l?l:"",this.enabled=!t.precondition||o.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){const e=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=o.contextMatchesRules(e.condition),this.checked&&e.tooltip&&(this.tooltip="string"==typeof e.tooltip?e.tooltip:e.tooltip.value),e.title&&(this.label="string"==typeof e.title?e.title:e.title.value)}this.item=t,this.alt=n?new e(n,void 0,i,o,a):void 0,this._options=i,d.kS.isThemeIcon(t.icon)&&(this.class=r.dT.asClassName(t.icon))}dispose(){}run(...e){var t,n;let i=[];return(null===(t=this._options)||void 0===t?void 0:t.arg)&&(i=[...i,this._options.arg]),(null===(n=this._options)||void 0===n?void 0:n.shouldForwardArgs)&&(i=[...i,...e]),this._commandService.executeCommand(this.id,...i)}};w=p([f(3,u.i6),f(4,c.H)],w)},35884:function(e,t,n){"use strict";n.d(t,{H:function(){return l},P:function(){return c}});var i=n(4348),r=n(88226),o=n(69323),a=n(34502),s=n(72999);const l=(0,n(16925).yh)("commandService"),c=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new i.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"==typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){const t=[];for(let n of e.description.args)t.push(n.constraint);const n=e.handler;e.handler=function(e,...i){return(0,s.D8)(i,t),n(e,...i)}}const{id:n}=e;let i=this._commands.get(n);i||(i=new a.S,this._commands.set(n,i));let r=i.unshift(e),l=(0,o.OF)((()=>{r();const e=this._commands.get(n);(null==e?void 0:e.isEmpty())&&this._commands.delete(n)}));return this._onDidRegisterCommand.fire(n),l}registerCommandAlias(e,t){return c.registerCommand(e,((e,...n)=>e.get(l).executeCommand(t,...n)))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return r.$.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const n=this.getCommand(t);n&&e.set(t,n)}return e}};c.registerCommand("noop",(()=>{}))},90689:function(e,t,n){"use strict";n.d(t,{Ao:function(){return c},Eq:function(){return D},Fb:function(){return u},K8:function(){return B},i6:function(){return T},uy:function(){return A}});var i=n(23345),r=n(82983),o=n(16925);let a=i.WE||"";const s=new Map;s.set("false",!1),s.set("true",!0),s.set("isMac",i.dz),s.set("isLinux",i.IJ),s.set("isWindows",i.ED),s.set("isWeb",i.$L),s.set("isMacNative",i.dz&&!i.$L),s.set("isEdge",a.indexOf("Edg/")>=0),s.set("isFirefox",a.indexOf("Firefox")>=0),s.set("isChrome",a.indexOf("Chrome")>=0),s.set("isSafari",a.indexOf("Safari")>=0);const l=Object.prototype.hasOwnProperty;class c{static has(e){return f.create(e)}static equals(e,t){return g.create(e,t)}static regex(e,t){return C.create(e,t)}static not(e){return b.create(e)}static and(...e){return M.create(e,null)}static or(...e){return L.create(e,null,!0)}static deserialize(e,t=!1){if(e)return this._deserializeOrExpression(e,t)}static _deserializeOrExpression(e,t){let n=e.split("||");return L.create(n.map((e=>this._deserializeAndExpression(e,t))),null,!0)}static _deserializeAndExpression(e,t){let n=e.split("&&");return M.create(n.map((e=>this._deserializeOne(e,t))),null)}static _deserializeOne(e,t){if((e=e.trim()).indexOf("!=")>=0){let n=e.split("!=");return y.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("==")>=0){let n=e.split("==");return g.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("=~")>=0){let n=e.split("=~");return C.create(n[0].trim(),this._deserializeRegexValue(n[1],t))}if(e.indexOf(" in ")>=0){let t=e.split(" in ");return m.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(e)){const t=e.split(">=");return S.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(e)){const t=e.split(">");return x.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(e)){const t=e.split("<=");return _.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(e)){const t=e.split("<");return k.create(t[0].trim(),t[1].trim())}return/^\!\s*/.test(e)?b.create(e.substr(1).trim()):f.create(e)}static _deserializeValue(e,t){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;let n=/^'([^']*)'$/.exec(e);return n?n[1].trim():e}static _deserializeRegexValue(e,t){if((0,r.m5)(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let n=e.indexOf("/"),i=e.lastIndexOf("/");if(n===i||n<0){if(t)throw new Error(`bad regexp-value '${e}', missing /-enclosure`);return console.warn(`bad regexp-value '${e}', missing /-enclosure`),null}let o=e.slice(n+1,i),a="i"===e[i+1]?"i":"";try{return new RegExp(o,a)}catch(n){if(t)throw new Error(`bad regexp-value '${e}', parse error: ${n}`);return console.warn(`bad regexp-value '${e}', parse error: ${n}`),null}}}function u(e,t){const n=e?e.substituteConstants():void 0,i=t?t.substituteConstants():void 0;return!n&&!i||!(!n||!i)&&n.equals(i)}function h(e,t){return e.cmp(t)}class d{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return p.INSTANCE}}d.INSTANCE=new d;class p{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return d.INSTANCE}}p.INSTANCE=new p;class f{constructor(e,t){this.key=e,this.negated=t,this.type=2}static create(e,t=null){const n=s.get(e);return"boolean"==typeof n?n?p.INSTANCE:d.INSTANCE:new f(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:N(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=s.get(this.key);return"boolean"==typeof e?e?p.INSTANCE:d.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this)),this.negated}}class g{constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}static create(e,t,n=null){if("boolean"==typeof t)return t?f.create(e,n):b.create(e,n);const i=s.get(e);if("boolean"==typeof i){return t===(i?"true":"false")?p.INSTANCE:d.INSTANCE}return new g(e,t,n)}cmp(e){return e.type!==this.type?this.type-e.type:I(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=s.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?p.INSTANCE:d.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=y.create(this.key,this.value,this)),this.negated}}class m{constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}static create(e,t){return new m(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:I(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.indexOf(n)>=0:"string"==typeof n&&"object"==typeof t&&null!==t&&l.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=v.create(this)),this.negated}}class v{constructor(e){this._actual=e,this.type=11}static create(e){return new v(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class y{constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}static create(e,t,n=null){if("boolean"==typeof t)return t?b.create(e,n):f.create(e,n);const i=s.get(e);if("boolean"==typeof i){return t===(i?"true":"false")?d.INSTANCE:p.INSTANCE}return new y(e,t,n)}cmp(e){return e.type!==this.type?this.type-e.type:I(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=s.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?d.INSTANCE:p.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=g.create(this.key,this.value,this)),this.negated}}class b{constructor(e,t){this.key=e,this.negated=t,this.type=3}static create(e,t=null){const n=s.get(e);return"boolean"==typeof n?n?d.INSTANCE:p.INSTANCE:new b(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:N(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=s.get(this.key);return"boolean"==typeof e?e?d.INSTANCE:p.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=f.create(this.key,this)),this.negated}}function w(e,t){if("string"==typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"==typeof e||"number"==typeof e?t(e):d.INSTANCE}class x{constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}static create(e,t,n=null){return w(t,(t=>new x(e,t,n)))}cmp(e){return e.type!==this.type?this.type-e.type:I(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=_.create(this.key,this.value,this)),this.negated}}class S{constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}static create(e,t,n=null){return w(t,(t=>new S(e,t,n)))}cmp(e){return e.type!==this.type?this.type-e.type:I(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this.value,this)),this.negated}}class k{constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}static create(e,t,n=null){return w(t,(t=>new k(e,t,n)))}cmp(e){return e.type!==this.type?this.type-e.type:I(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))new _(e,t,n)))}cmp(e){return e.type!==this.type?this.type-e.type:I(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this.key,this.value,this)),this.negated}}class C{constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}static create(e,t){return new C(e,t)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return tn?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this)),this.negated}}class P{constructor(e){this._actual=e,this.type=8}static create(e){return new P(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function E(e){let t=null;for(let n=0,i=e.length;ne.expr.length)return 1;for(let t=0,n=this.expr.length;t1;){const e=n[n.length-1];if(9!==e.type)break;n.pop();const t=n.pop(),i=0===n.length,r=L.create(e.expr.map((e=>M.create([e,t],null))),null,i);r&&(n.push(r),n.sort(h))}return 1===n.length?n[0]:new M(n,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(let t of this.expr)e.push(t.negate());this.negated=L.create(e,this,!0)}return this.negated}}class L{constructor(e,t){this.expr=e,this.negated=t,this.type=9}static create(e,t,n){return L._normalizeArr(e,t,n)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,n=this.expr.length;te.serialize())).join(" || ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),i=[];for(const e of R(t))for(const t of R(n))i.push(M.create([e,t],null));const r=0===e.length;e.unshift(L.create(i,null,r))}this.negated=e[0]}return this.negated}}class A extends f{constructor(e,t,n){super(e,null),this._defaultValue=t,"object"==typeof n?A._info.push(Object.assign(Object.assign({},n),{key:e})):!0!==n&&A._info.push({key:e,description:n,type:null!=t?typeof t:void 0})}static all(){return A._info.values()}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return g.create(this.key,e)}}A._info=[];const T=(0,o.yh)("contextKeyService"),D="setContext";function N(e,t){return et?1:0}function I(e,t,n,i){return en?1:ti?1:0}function B(e,t){if(6===t.type&&9!==e.type&&6!==e.type)for(const n of t.expr)if(e.equals(n))return!0;const n=R(e.negate()).concat(R(t));n.sort(h);for(let e=0;ee,i.serviceIds.set(e,t),t}function s(e){return function(t,n,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");o(e,t,i,!0)}}},44650:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var i=n(76068),r=n(72999);const o=new class{constructor(){this.data=new Map}add(e,t){i.ok(r.HD(e)),i.ok(r.Kn(t)),i.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},66213:function(e,t,n){"use strict";var i;n.d(t,{e:function(){return i}}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST="hc"}(i||(i={}))},49055:function(e,t,n){"use strict";n.d(t,{EN:function(){return d},IP:function(){return f},Ic:function(){return m},XE:function(){return c},bB:function(){return v},kS:function(){return h},m6:function(){return p}});var i=n(52615),r=n(4348),o=n(69323),a=n(16925),s=n(44650),l=n(66213);const c=(0,a.yh)("themeService");var u,h;function d(e){return{id:e}}function p(e){switch(e){case l.e.DARK:return"vs-dark";case l.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}!function(e){e.isThemeColor=function(e){return e&&"object"==typeof e&&"string"==typeof e.id}}(u||(u={})),function(e){e.isThemeIcon=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&(void 0===e.color||u.isThemeColor(e.color))};const t=new RegExp(`^\\$\\((${i.dT.iconNameExpression}(?:${i.dT.iconModifierExpression})?)\\)$`);e.fromString=function(e){const n=t.exec(e);if(!n)return;let[,i]=n;return{id:i}},e.modify=function(e,t){let n=e.id;const i=n.lastIndexOf("~");return-1!==i&&(n=n.substring(0,i)),t&&(n=`${n}~${t}`),{id:n}},e.isEqual=function(e,t){var n,i;return e.id===t.id&&(null===(n=e.color)||void 0===n?void 0:n.id)===(null===(i=t.color)||void 0===i?void 0:i.id)},e.asThemeIcon=function(e,t){return{id:e.id,color:t?d(t):void 0}},e.asClassNameArray=i.dT.asClassNameArray,e.asClassName=i.dT.asClassName,e.asCSSSelector=i.dT.asCSSSelector}(h||(h={}));const f={ThemingContribution:"base.contributions.theming"};let g=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.Q5}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,o.OF)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function m(e){return g.onColorThemeChange(e)}s.B.add(f.ThemingContribution,g);class v extends o.JT{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},16632:function(e,t,n){"use strict";var i=n(14809),r=n(20439),o=n(4635),a=n(50298),s=n(62646),l=n(92310),c=n.n(l),u=n(18929),h=n(59301),d=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],p=(0,h.forwardRef)((function(e,t){var n=e.prefixCls,l=void 0===n?"rc-checkbox":n,p=e.className,f=e.style,g=e.checked,m=e.disabled,v=e.defaultChecked,y=void 0!==v&&v,b=e.type,w=void 0===b?"checkbox":b,x=e.title,S=e.onChange,k=(0,s.Z)(e,d),_=(0,h.useRef)(null),C=(0,h.useRef)(null),P=(0,u.Z)(y,{value:g}),E=(0,a.Z)(P,2),M=E[0],L=E[1];(0,h.useImperativeHandle)(t,(function(){return{focus:function(e){var t;null===(t=_.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=_.current)||void 0===e||e.blur()},input:_.current,nativeElement:C.current}}));var A=c()(l,p,(0,o.Z)((0,o.Z)({},"".concat(l,"-checked"),M),"".concat(l,"-disabled"),m));return h.createElement("span",{className:A,title:x,style:f,ref:C},h.createElement("input",(0,i.Z)({},k,{className:"".concat(l,"-input"),ref:_,onChange:function(t){m||("checked"in e||L(t.target.checked),null==S||S({target:(0,r.Z)((0,r.Z)({},e),{},{type:w,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:m,checked:!!M,type:w})),h.createElement("span",{className:"".concat(l,"-inner")}))}));t.Z=p},96478:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var i=n(14809),r=n(4635),o=n(50298),a=n(62646),s=n(65966),l=n(92310),c=n.n(l),u=n(8654),h=n(59301),d=n(10228),p=n(16089),f=d.Z.ESC,g=d.Z.TAB;var m=(0,h.forwardRef)((function(e,t){var n=e.overlay,i=e.arrow,r=e.prefixCls,o=(0,h.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=(0,u.sQ)(t,(0,u.C4)(o));return h.createElement(h.Fragment,null,i&&h.createElement("div",{className:"".concat(r,"-arrow")}),h.cloneElement(o,{ref:(0,u.Yr)(o)?a:void 0}))})),v={adjustX:1,adjustY:1},y=[0,0],b={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:y},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:y},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:y},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:y},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:y},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:y}},w=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function x(e,t){var n,l=e.arrow,d=void 0!==l&&l,v=e.prefixCls,y=void 0===v?"rc-dropdown":v,x=e.transitionName,S=e.animation,k=e.align,_=e.placement,C=void 0===_?"bottomLeft":_,P=e.placements,E=void 0===P?b:P,M=e.getPopupContainer,L=e.showAction,A=e.hideAction,T=e.overlayClassName,D=e.overlayStyle,N=e.visible,I=e.trigger,B=void 0===I?["hover"]:I,R=e.autoFocus,O=e.overlay,F=e.children,z=e.onVisibleChange,j=(0,a.Z)(e,w),$=h.useState(),H=(0,o.Z)($,2),Z=H[0],K=H[1],G="visible"in e?N:Z,U=h.useRef(null),V=h.useRef(null),W=h.useRef(null);h.useImperativeHandle(t,(function(){return U.current}));var q=function(e){K(e),null==z||z(e)};!function(e){var t=e.visible,n=e.triggerRef,i=e.onVisibleChange,r=e.autoFocus,o=e.overlayRef,a=h.useRef(!1),s=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==i||i(!1))},l=function(){var e;return!(null===(e=o.current)||void 0===e||!e.focus||(o.current.focus(),a.current=!0,0))},c=function(e){switch(e.keyCode){case f:s();break;case g:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};h.useEffect((function(){return t?(window.addEventListener("keydown",c),r&&(0,p.Z)(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:G,triggerRef:W,onVisibleChange:q,autoFocus:R,overlayRef:V});var Y,X,Q,J=function(){return h.createElement(m,{ref:V,overlay:O,prefixCls:y,arrow:d})},ee=h.cloneElement(F,{className:c()(null===(n=F.props)||void 0===n?void 0:n.className,G&&(Y=e.openClassName,void 0!==Y?Y:"".concat(y,"-open"))),ref:(0,u.Yr)(F)?(0,u.sQ)(W,(0,u.C4)(F)):void 0}),te=A;return te||-1===B.indexOf("contextMenu")||(te=["click"]),h.createElement(s.Z,(0,i.Z)({builtinPlacements:E},j,{prefixCls:y,ref:U,popupClassName:c()(T,(0,r.Z)({},"".concat(y,"-show-arrow"),d)),popupStyle:D,action:B,showAction:L,hideAction:te,popupPlacement:C,popupAlign:k,popupTransitionName:x,popupAnimation:S,popupVisible:G,stretch:(X=e.minOverlayWidthMatchTrigger,Q=e.alignPoint,("minOverlayWidthMatchTrigger"in e?X:!Q)?"minWidth":""),popup:"function"==typeof O?J:J(),onPopupVisibleChange:q,onPopupClick:function(t){var n=e.onOverlayClick;K(!1),n&&n(t)},getPopupContainer:M}),ee)}var S=h.forwardRef(x)},66003:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(62646),r=n(20439),o=n(93664),a=n(59301),s=["show"];function l(e,t){return a.useMemo((function(){var n={};t&&(n.show="object"===(0,o.Z)(t)&&t.formatter?t.formatter:!!t);var a=n=(0,r.Z)((0,r.Z)({},n),e),l=a.show,c=(0,i.Z)(a,s);return(0,r.Z)((0,r.Z)({},c),{},{show:!!l,showFormatter:"function"==typeof l?l:void 0,strategy:c.strategy||function(e){return e.length}})}),[e,t])}},36901:function(e,t,n){"use strict";n.d(t,{Q:function(){return h},Z:function(){return b}});var i=n(20439),r=n(14809),o=n(4635),a=n(93664),s=n(92310),l=n.n(s),c=n(59301),u=n(30292),h=c.forwardRef((function(e,t){var n,s,h,d=e.inputElement,p=e.children,f=e.prefixCls,g=e.prefix,m=e.suffix,v=e.addonBefore,y=e.addonAfter,b=e.className,w=e.style,x=e.disabled,S=e.readOnly,k=e.focused,_=e.triggerFocus,C=e.allowClear,P=e.value,E=e.handleReset,M=e.hidden,L=e.classes,A=e.classNames,T=e.dataAttrs,D=e.styles,N=e.components,I=e.onClear,B=null!=p?p:d,R=(null==N?void 0:N.affixWrapper)||"span",O=(null==N?void 0:N.groupWrapper)||"span",F=(null==N?void 0:N.wrapper)||"span",z=(null==N?void 0:N.groupAddon)||"span",j=(0,c.useRef)(null),$=(0,u.X3)(e),H=(0,c.cloneElement)(B,{value:P,className:l()(null===(n=B.props)||void 0===n?void 0:n.className,!$&&(null==A?void 0:A.variant))||null}),Z=(0,c.useRef)(null);if(c.useImperativeHandle(t,(function(){return{nativeElement:Z.current||j.current}})),$){var K=null;if(C){var G=!x&&!S&&P,U="".concat(f,"-clear-icon"),V="object"===(0,a.Z)(C)&&null!=C&&C.clearIcon?C.clearIcon:"✖";K=c.createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null==E||E(e),null==I||I()},onMouseDown:function(e){return e.preventDefault()},className:l()(U,(0,o.Z)((0,o.Z)({},"".concat(U,"-hidden"),!G),"".concat(U,"-has-suffix"),!!m))},V)}var W="".concat(f,"-affix-wrapper"),q=l()(W,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(f,"-disabled"),x),"".concat(W,"-disabled"),x),"".concat(W,"-focused"),k),"".concat(W,"-readonly"),S),"".concat(W,"-input-with-clear-btn"),m&&C&&P),null==L?void 0:L.affixWrapper,null==A?void 0:A.affixWrapper,null==A?void 0:A.variant),Y=(m||C)&&c.createElement("span",{className:l()("".concat(f,"-suffix"),null==A?void 0:A.suffix),style:null==D?void 0:D.suffix},K,m);H=c.createElement(R,(0,r.Z)({className:q,style:null==D?void 0:D.affixWrapper,onClick:function(e){var t;null!==(t=j.current)&&void 0!==t&&t.contains(e.target)&&(null==_||_())}},null==T?void 0:T.affixWrapper,{ref:j}),g&&c.createElement("span",{className:l()("".concat(f,"-prefix"),null==A?void 0:A.prefix),style:null==D?void 0:D.prefix},g),H,Y)}if((0,u.He)(e)){var X="".concat(f,"-group"),Q="".concat(X,"-addon"),J="".concat(X,"-wrapper"),ee=l()("".concat(f,"-wrapper"),X,null==L?void 0:L.wrapper,null==A?void 0:A.wrapper),te=l()(J,(0,o.Z)({},"".concat(J,"-disabled"),x),null==L?void 0:L.group,null==A?void 0:A.groupWrapper);H=c.createElement(O,{className:te,ref:Z},c.createElement(F,{className:ee},v&&c.createElement(z,{className:Q},v),H,y&&c.createElement(z,{className:Q},y)))}return c.cloneElement(H,{className:l()(null===(s=H.props)||void 0===s?void 0:s.className,b)||null,style:(0,i.Z)((0,i.Z)({},null===(h=H.props)||void 0===h?void 0:h.style),w),hidden:M})})),d=n(95190),p=n(50298),f=n(62646),g=n(18929),m=n(2738),v=n(66003),y=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],b=(0,c.forwardRef)((function(e,t){var n=e.autoComplete,a=e.onChange,s=e.onFocus,b=e.onBlur,w=e.onPressEnter,x=e.onKeyDown,S=e.onKeyUp,k=e.prefixCls,_=void 0===k?"rc-input":k,C=e.disabled,P=e.htmlSize,E=e.className,M=e.maxLength,L=e.suffix,A=e.showCount,T=e.count,D=e.type,N=void 0===D?"text":D,I=e.classes,B=e.classNames,R=e.styles,O=e.onCompositionStart,F=e.onCompositionEnd,z=(0,f.Z)(e,y),j=(0,c.useState)(!1),$=(0,p.Z)(j,2),H=$[0],Z=$[1],K=(0,c.useRef)(!1),G=(0,c.useRef)(!1),U=(0,c.useRef)(null),V=(0,c.useRef)(null),W=function(e){U.current&&(0,u.nH)(U.current,e)},q=(0,g.Z)(e.defaultValue,{value:e.value}),Y=(0,p.Z)(q,2),X=Y[0],Q=Y[1],J=null==X?"":String(X),ee=(0,c.useState)(null),te=(0,p.Z)(ee,2),ne=te[0],ie=te[1],re=(0,v.Z)(T,A),oe=re.max||M,ae=re.strategy(J),se=!!oe&&ae>oe;(0,c.useImperativeHandle)(t,(function(){var e;return{focus:W,blur:function(){var e;null===(e=U.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var i;null===(i=U.current)||void 0===i||i.setSelectionRange(e,t,n)},select:function(){var e;null===(e=U.current)||void 0===e||e.select()},input:U.current,nativeElement:(null===(e=V.current)||void 0===e?void 0:e.nativeElement)||U.current}})),(0,c.useEffect)((function(){G.current&&(G.current=!1),Z((function(e){return(!e||!C)&&e}))}),[C]);var le=function(e,t,n){var i,r,o=t;if(!K.current&&re.exceedFormatter&&re.max&&re.strategy(t)>re.max)t!==(o=re.exceedFormatter(t,{max:re.max}))&&ie([(null===(i=U.current)||void 0===i?void 0:i.selectionStart)||0,(null===(r=U.current)||void 0===r?void 0:r.selectionEnd)||0]);else if("compositionEnd"===n.source)return;Q(o),U.current&&(0,u.rJ)(U.current,e,a,o)};(0,c.useEffect)((function(){var e;ne&&(null===(e=U.current)||void 0===e||e.setSelectionRange.apply(e,(0,d.Z)(ne)))}),[ne]);var ce,ue=function(e){le(e,e.target.value,{source:"change"})},he=function(e){K.current=!1,le(e,e.currentTarget.value,{source:"compositionEnd"}),null==F||F(e)},de=function(e){w&&"Enter"===e.key&&!G.current&&(G.current=!0,w(e)),null==x||x(e)},pe=function(e){"Enter"===e.key&&(G.current=!1),null==S||S(e)},fe=function(e){Z(!0),null==s||s(e)},ge=function(e){G.current&&(G.current=!1),Z(!1),null==b||b(e)},me=se&&"".concat(_,"-out-of-range");return c.createElement(h,(0,r.Z)({},z,{prefixCls:_,className:l()(E,me),handleReset:function(e){Q(""),W(),U.current&&(0,u.rJ)(U.current,e,a)},value:J,focused:H,triggerFocus:W,suffix:function(){var e=Number(oe)>0;if(L||re.show){var t=re.showFormatter?re.showFormatter({value:J,count:ae,maxLength:oe}):"".concat(ae).concat(e?" / ".concat(oe):"");return c.createElement(c.Fragment,null,re.show&&c.createElement("span",{className:l()("".concat(_,"-show-count-suffix"),(0,o.Z)({},"".concat(_,"-show-count-has-suffix"),!!L),null==B?void 0:B.count),style:(0,i.Z)({},null==R?void 0:R.count)},t),L)}return null}(),disabled:C,classes:I,classNames:B,styles:R}),(ce=(0,m.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),c.createElement("input",(0,r.Z)({autoComplete:n},ce,{onChange:ue,onFocus:fe,onBlur:ge,onKeyDown:de,onKeyUp:pe,className:l()(_,(0,o.Z)({},"".concat(_,"-disabled"),C),null==B?void 0:B.input),style:null==R?void 0:R.input,ref:U,size:P,type:N,onCompositionStart:function(e){K.current=!0,null==O||O(e)},onCompositionEnd:he}))))}))},30292:function(e,t,n){"use strict";function i(e){return!(!e.addonBefore&&!e.addonAfter)}function r(e){return!!(e.prefix||e.suffix||e.allowClear)}function o(e,t,n){var i=t.cloneNode(!0),r=Object.create(e,{target:{value:i},currentTarget:{value:i}});return i.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(i.selectionStart=t.selectionStart,i.selectionEnd=t.selectionEnd),i.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},r}function a(e,t,n,i){if(n){var r=t;"click"!==t.type?"file"===e.type||void 0===i?n(r):n(r=o(t,e,i)):n(r=o(t,e,""))}}function s(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var i=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}n.d(t,{He:function(){return i},X3:function(){return r},nH:function(){return s},rJ:function(){return a}})},28321:function(e,t,n){"use strict";n.d(t,{iz:function(){return je},ck:function(){return be},BW:function(){return Ze},sN:function(){return be},Wd:function(){return Fe},ZP:function(){return Xe},Xl:function(){return M}});var i=n(14809),r=n(4635),o=n(20439),a=n(95190),s=n(50298),l=n(62646),c=n(92310),u=n.n(c),h=n(11780),d=n(18929),p=n(13697),f=n(48736),g=n(59301),m=n(4676),v=g.createContext(null);function y(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function b(e){return y(g.useContext(v),e)}var w=n(80547),x=["children","locked"],S=g.createContext(null);function k(e){var t=e.children,n=e.locked,i=(0,l.Z)(e,x),r=g.useContext(S),a=(0,w.Z)((function(){return e=r,t=i,n=(0,o.Z)({},e),Object.keys(t).forEach((function(e){var i=t[e];void 0!==i&&(n[e]=i)})),n;var e,t,n}),[r,i],(function(e,t){return!(n||e[0]===t[0]&&(0,p.Z)(e[1],t[1],!0))}));return g.createElement(S.Provider,{value:a},t)}var _=[],C=g.createContext(null);function P(){return g.useContext(C)}var E=g.createContext(_);function M(e){var t=g.useContext(E);return g.useMemo((function(){return void 0!==e?[].concat((0,a.Z)(t),[e]):t}),[t,e])}var L=g.createContext(null),A=g.createContext({}),T=n(29194);function D(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,T.Z)(e)){var n=e.nodeName.toLowerCase(),i=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),o=Number(r),a=null;return r&&!Number.isNaN(o)?a=o:i&&null===a&&(a=0),i&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function N(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,a.Z)(e.querySelectorAll("*")).filter((function(e){return D(e,t)}));return D(e,t)&&n.unshift(e),n}var I=n(10228),B=n(16089),R=I.Z.LEFT,O=I.Z.RIGHT,F=I.Z.UP,z=I.Z.DOWN,j=I.Z.ENTER,$=I.Z.ESC,H=I.Z.HOME,Z=I.Z.END,K=[F,z,R,O];function G(e,t){return N(e,!0).filter((function(e){return t.has(e)}))}function U(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=G(e,t),o=r.length,a=r.findIndex((function(e){return n===e}));return i<0?-1===a?a=o-1:a-=1:i>0&&(a+=1),r[a=(a+o)%o]}var V=function(e,t){var n=new Set,i=new Map,r=new Map;return e.forEach((function(e){var o=document.querySelector("[data-menu-id='".concat(y(t,e),"']"));o&&(n.add(o),r.set(o,e),i.set(e,o))})),{elements:n,key2element:i,element2key:r}};function W(e,t,n,i,o,a,s,l,c,u){var h=g.useRef(),d=g.useRef();d.current=t;var p=function(){B.Z.cancel(h.current)};return g.useEffect((function(){return function(){p()}}),[]),function(f){var g=f.which;if([].concat(K,[j,$,H,Z]).includes(g)){var m=a(),v=V(m,i),y=v,b=y.elements,w=y.key2element,x=y.element2key,S=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(w.get(t),b),k=x.get(S),_=function(e,t,n,i){var o,a="prev",s="next",l="children",c="parent";if("inline"===e&&i===j)return{inlineTrigger:!0};var u=(0,r.Z)((0,r.Z)({},F,a),z,s),h=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},R,n?s:a),O,n?a:s),z,l),j,l),d=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},F,a),z,s),j,l),$,c),R,n?l:c),O,n?c:l);switch(null===(o={inline:u,horizontal:h,vertical:d,inlineSub:u,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[i]){case a:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===s(k,!0).length,n,g);if(!_&&g!==H&&g!==Z)return;(K.includes(g)||[H,Z].includes(g))&&f.preventDefault();var C=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var i=x.get(e);l(i),p(),h.current=(0,B.Z)((function(){d.current===i&&t.focus()}))}};if([H,Z].includes(g)||_.sibling||!S){var P,E,M=G(P=S&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(S):o.current,b);E=g===H?M[0]:g===Z?M[M.length-1]:U(P,b,S,_.offset),C(E)}else if(_.inlineTrigger)c(k);else if(_.offset>0)c(k,!0),p(),h.current=(0,B.Z)((function(){v=V(m,i);var e=S.getAttribute("aria-controls"),t=U(document.getElementById(e),v.elements);C(t)}),5);else if(_.offset<0){var L=s(k,!0),A=L[L.length-2],T=w.get(A);c(A,!1),C(T)}}null==u||u(f)}}var q="__RC_UTIL_PATH_SPLIT__",Y=function(e){return e.join(q)},X="rc-menu-more";function Q(){var e=g.useState({}),t=(0,s.Z)(e,2)[1],n=(0,g.useRef)(new Map),i=(0,g.useRef)(new Map),r=g.useState([]),o=(0,s.Z)(r,2),l=o[0],c=o[1],u=(0,g.useRef)(0),h=(0,g.useRef)(!1),d=(0,g.useCallback)((function(e,r){var o=Y(r);i.current.set(o,e),n.current.set(e,o),u.current+=1;var a,s=u.current;a=function(){s===u.current&&(h.current||t({}))},Promise.resolve().then(a)}),[]),p=(0,g.useCallback)((function(e,t){var r=Y(t);i.current.delete(r),n.current.delete(e)}),[]),f=(0,g.useCallback)((function(e){c(e)}),[]),m=(0,g.useCallback)((function(e,t){var i=n.current.get(e)||"",r=i.split(q);return t&&l.includes(r[0])&&r.unshift(X),r}),[l]),v=(0,g.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return m(e,!0).includes(t)}))}),[m]),y=(0,g.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(q),r=new Set;return(0,a.Z)(i.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(i.current.get(e))})),r}),[]);return g.useEffect((function(){return function(){h.current=!0}}),[]),{registerPath:d,unregisterPath:p,refreshOverflowKeys:f,isSubPathKey:v,getKeyPath:m,getKeys:function(){var e=(0,a.Z)(n.current.keys());return l.length&&e.push(X),e},getSubPathKeys:y}}function J(e){var t=g.useRef(e);t.current=e;var n=g.useCallback((function(){for(var e,n=arguments.length,i=new Array(n),r=0;r1&&(_.motionAppear=!1);var C=_.onVisibleChanged;return _.onVisibleChanged=function(e){return m.current||e||w(!0),null==C?void 0:C(e)},b?null:g.createElement(k,{mode:l,locked:!m.current},g.createElement(Ne.ZP,(0,i.Z)({visible:x},_,{forceRender:h,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),(function(e){var n=e.className,i=e.style;return g.createElement(ke,{id:t,className:n,style:i},a)})))}var Be=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Re=["active"],Oe=g.forwardRef((function(e,t){var n=e.style,a=e.className,c=e.title,d=e.eventKey,p=(e.warnKey,e.disabled),f=e.internalPopupClose,m=e.children,v=e.itemIcon,y=e.expandIcon,w=e.popupClassName,x=e.popupOffset,_=e.popupStyle,C=e.onClick,P=e.onMouseEnter,E=e.onMouseLeave,T=e.onTitleClick,D=e.onTitleMouseEnter,N=e.onTitleMouseLeave,I=(0,l.Z)(e,Be),B=b(d),R=g.useContext(S),O=R.prefixCls,F=R.mode,z=R.openKeys,j=R.disabled,$=R.overflowDisabled,H=R.activeKey,Z=R.selectedKeys,K=R.itemIcon,G=R.expandIcon,U=R.onItemClick,V=R.onOpenChange,W=R.onActive,q=g.useContext(A)._internalRenderSubMenuItem,Y=g.useContext(L).isSubPathKey,X=M(),Q="".concat(O,"-submenu"),ee=j||p,te=g.useRef(),ne=g.useRef();var ie=null!=v?v:K,re=null!=y?y:G,oe=z.includes(d),ae=!$&&oe,se=Y(Z,d),he=le(d,ee,D,N),pe=he.active,fe=(0,l.Z)(he,Re),ge=g.useState(!1),me=(0,s.Z)(ge,2),ve=me[0],ye=me[1],be=function(e){ee||ye(e)},we=g.useMemo((function(){return pe||"inline"!==F&&(ve||Y([H],d))}),[F,pe,H,ve,d,Y]),xe=ce(X.length),Se=J((function(e){null==C||C(de(e)),U(e)})),_e=B&&"".concat(B,"-popup"),Ce=g.useMemo((function(){return g.createElement(ue,{icon:"horizontal"!==F?re:void 0,props:(0,o.Z)((0,o.Z)({},e),{},{isOpen:ae,isSubMenu:!0})},g.createElement("i",{className:"".concat(Q,"-arrow")}))}),[F,re,e,ae,Q]),Pe=g.createElement("div",(0,i.Z)({role:"menuitem",style:xe,className:"".concat(Q,"-title"),tabIndex:ee?null:-1,ref:te,title:"string"==typeof c?c:null,"data-menu-id":$&&B?null:B,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":_e,"aria-disabled":ee,onClick:function(e){ee||(null==T||T({key:d,domEvent:e}),"inline"===F&&V(d,!oe))},onFocus:function(){W(d)}},fe),c,Ce),Ee=g.useRef(F);if("inline"!==F&&X.length>1?Ee.current="vertical":Ee.current=F,!$){var Me=Ee.current;Pe=g.createElement(De,{mode:Me,prefixCls:Q,visible:!f&&ae&&"inline"!==F,popupClassName:w,popupOffset:x,popupStyle:_,popup:g.createElement(k,{mode:"horizontal"===Me?"vertical":Me},g.createElement(ke,{id:_e,ref:ne},m)),disabled:ee,onVisibleChange:function(e){"inline"!==F&&V(d,e)}},Pe)}var Le=g.createElement(h.Z.Item,(0,i.Z)({ref:t,role:"none"},I,{component:"li",style:n,className:u()(Q,"".concat(Q,"-").concat(F),a,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(Q,"-open"),ae),"".concat(Q,"-active"),we),"".concat(Q,"-selected"),se),"".concat(Q,"-disabled"),ee)),onMouseEnter:function(e){be(!0),null==P||P({key:d,domEvent:e})},onMouseLeave:function(e){be(!1),null==E||E({key:d,domEvent:e})}}),Pe,!$&&g.createElement(Ie,{id:_e,open:ae,keyPath:X},m));return q&&(Le=q(Le,e,{selected:se,active:we,open:ae,disabled:ee})),g.createElement(k,{onItemClick:Se,mode:"horizontal"===F?"vertical":F,itemIcon:ie,expandIcon:re},Le)}));var Fe=g.forwardRef((function(e,t){var n,r=e.eventKey,o=e.children,a=M(r),s=Ce(o,a),l=P();return g.useEffect((function(){if(l)return l.registerPath(r,a),function(){l.unregisterPath(r,a)}}),[a]),n=l?s:g.createElement(Oe,(0,i.Z)({ref:t},e),s),g.createElement(E.Provider,{value:a},n)})),ze=n(93664);function je(e){var t=e.className,n=e.style,i=g.useContext(S).prefixCls;return P()?null:g.createElement("li",{role:"separator",className:u()("".concat(i,"-item-divider"),t),style:n})}var $e=["className","title","eventKey","children"],He=g.forwardRef((function(e,t){var n=e.className,r=e.title,o=(e.eventKey,e.children),a=(0,l.Z)(e,$e),s=g.useContext(S).prefixCls,c="".concat(s,"-item-group");return g.createElement("li",(0,i.Z)({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:u()(c,n)}),g.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof r?r:void 0},r),g.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}));var Ze=g.forwardRef((function(e,t){var n=e.eventKey,r=Ce(e.children,M(n));return P()?r:g.createElement(He,(0,i.Z)({ref:t},(0,ae.Z)(e,["warnKey"])),r)})),Ke=["label","children","key","type","extra"];function Ge(e,t,n){var r=t.item,o=t.group,a=t.submenu,s=t.divider;return(e||[]).map((function(e,c){if(e&&"object"===(0,ze.Z)(e)){var u=e,h=u.label,d=u.children,p=u.key,f=u.type,m=u.extra,v=(0,l.Z)(u,Ke),y=null!=p?p:"tmp-".concat(c);return d||"group"===f?"group"===f?g.createElement(o,(0,i.Z)({key:y},v,{title:h}),Ge(d,t,n)):g.createElement(a,(0,i.Z)({key:y},v,{title:h}),Ge(d,t,n)):"divider"===f?g.createElement(s,(0,i.Z)({key:y},v)):g.createElement(r,(0,i.Z)({key:y},v,{extra:m}),h,(!!m||0===m)&&g.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null})).filter((function(e){return e}))}function Ue(e,t,n,i,r){var a=e,s=(0,o.Z)({divider:je,item:be,group:Ze,submenu:Fe},i);return t&&(a=Ge(t,s,r)),Ce(a,n)}var Ve=["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"],We=[],qe=g.forwardRef((function(e,t){var n,c=e,f=c.prefixCls,y=void 0===f?"rc-menu":f,b=c.rootClassName,w=c.style,x=c.className,S=c.tabIndex,_=void 0===S?0:S,P=c.items,E=c.children,M=c.direction,T=c.id,D=c.mode,N=void 0===D?"vertical":D,I=c.inlineCollapsed,B=c.disabled,R=c.disabledOverflow,O=c.subMenuOpenDelay,F=void 0===O?.1:O,z=c.subMenuCloseDelay,j=void 0===z?.1:z,$=c.forceSubMenuRender,H=c.defaultOpenKeys,Z=c.openKeys,K=c.activeKey,U=c.defaultActiveFirst,q=c.selectable,Y=void 0===q||q,ne=c.multiple,ie=void 0!==ne&&ne,re=c.defaultSelectedKeys,oe=c.selectedKeys,ae=c.onSelect,se=c.onDeselect,le=c.inlineIndent,ce=void 0===le?24:le,ue=c.motion,he=c.defaultMotions,pe=c.triggerSubMenuAction,fe=void 0===pe?"hover":pe,ge=c.builtinPlacements,me=c.itemIcon,ve=c.expandIcon,ye=c.overflowedIndicator,we=void 0===ye?"...":ye,xe=c.overflowedIndicatorPopupClassName,Se=c.getPopupContainer,ke=c.onClick,_e=c.onOpenChange,Ce=c.onKeyDown,Pe=(c.openAnimation,c.openTransitionName,c._internalRenderMenuItem),Ee=c._internalRenderSubMenuItem,Me=c._internalComponents,Le=(0,l.Z)(c,Ve),Ae=g.useMemo((function(){return[Ue(E,P,We,Me,y),Ue(E,P,We,{},y)]}),[E,P,Me]),Te=(0,s.Z)(Ae,2),De=Te[0],Ne=Te[1],Ie=g.useState(!1),Be=(0,s.Z)(Ie,2),Re=Be[0],Oe=Be[1],ze=g.useRef(),je=function(e){var t=(0,d.Z)(e,{value:e}),n=(0,s.Z)(t,2),i=n[0],r=n[1];return g.useEffect((function(){te+=1;var e="".concat(ee,"-").concat(te);r("rc-menu-uuid-".concat(e))}),[]),i}(T),$e="rtl"===M;var He=(0,d.Z)(H,{value:Z,postState:function(e){return e||We}}),Ze=(0,s.Z)(He,2),Ke=Ze[0],Ge=Ze[1],qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){Ge(e),null==_e||_e(e)}t?(0,m.flushSync)(n):n()},Ye=g.useState(Ke),Xe=(0,s.Z)(Ye,2),Qe=Xe[0],Je=Xe[1],et=g.useRef(!1),tt=g.useMemo((function(){return"inline"!==N&&"vertical"!==N||!I?[N,!1]:["vertical",I]}),[N,I]),nt=(0,s.Z)(tt,2),it=nt[0],rt=nt[1],ot="inline"===it,at=g.useState(it),st=(0,s.Z)(at,2),lt=st[0],ct=st[1],ut=g.useState(rt),ht=(0,s.Z)(ut,2),dt=ht[0],pt=ht[1];g.useEffect((function(){ct(it),pt(rt),et.current&&(ot?Ge(Qe):qe(We))}),[it,rt]);var ft=g.useState(0),gt=(0,s.Z)(ft,2),mt=gt[0],vt=gt[1],yt=mt>=De.length-1||"horizontal"!==lt||R;g.useEffect((function(){ot&&Je(Ke)}),[Ke]),g.useEffect((function(){return et.current=!0,function(){et.current=!1}}),[]);var bt=Q(),wt=bt.registerPath,xt=bt.unregisterPath,St=bt.refreshOverflowKeys,kt=bt.isSubPathKey,_t=bt.getKeyPath,Ct=bt.getKeys,Pt=bt.getSubPathKeys,Et=g.useMemo((function(){return{registerPath:wt,unregisterPath:xt}}),[wt,xt]),Mt=g.useMemo((function(){return{isSubPathKey:kt}}),[kt]);g.useEffect((function(){St(yt?We:De.slice(mt+1).map((function(e){return e.key})))}),[mt,yt]);var Lt=(0,d.Z)(K||U&&(null===(n=De[0])||void 0===n?void 0:n.key),{value:K}),At=(0,s.Z)(Lt,2),Tt=At[0],Dt=At[1],Nt=J((function(e){Dt(e)})),It=J((function(){Dt(void 0)}));(0,g.useImperativeHandle)(t,(function(){return{list:ze.current,focus:function(e){var t,n,i=Ct(),r=V(i,je),o=r.elements,a=r.key2element,s=r.element2key,l=G(ze.current,o),c=null!=Tt?Tt:l[0]?s.get(l[0]):null===(t=De.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var Bt=(0,d.Z)(re||[],{value:oe,postState:function(e){return Array.isArray(e)?e:null==e?We:[e]}}),Rt=(0,s.Z)(Bt,2),Ot=Rt[0],Ft=Rt[1],zt=J((function(e){null==ke||ke(de(e)),function(e){if(Y){var t,n=e.key,i=Ot.includes(n);t=ie?i?Ot.filter((function(e){return e!==n})):[].concat((0,a.Z)(Ot),[n]):[n],Ft(t);var r=(0,o.Z)((0,o.Z)({},e),{},{selectedKeys:t});i?null==se||se(r):null==ae||ae(r)}!ie&&Ke.length&&"inline"!==lt&&qe(We)}(e)})),jt=J((function(e,t){var n=Ke.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==lt){var i=Pt(e);n=n.filter((function(e){return!i.has(e)}))}(0,p.Z)(Ke,n,!0)||qe(n,!0)})),$t=W(lt,Tt,$e,je,ze,Ct,_t,Dt,(function(e,t){var n=null!=t?t:!Ke.includes(e);jt(e,n)}),Ce);g.useEffect((function(){Oe(!0)}),[]);var Ht=g.useMemo((function(){return{_internalRenderMenuItem:Pe,_internalRenderSubMenuItem:Ee}}),[Pe,Ee]),Zt="horizontal"!==lt||R?De:De.map((function(e,t){return g.createElement(k,{key:e.key,overflowDisabled:t>mt},e)})),Kt=g.createElement(h.Z,(0,i.Z)({id:T,ref:ze,prefixCls:"".concat(y,"-overflow"),component:"ul",itemComponent:be,className:u()(y,"".concat(y,"-root"),"".concat(y,"-").concat(lt),x,(0,r.Z)((0,r.Z)({},"".concat(y,"-inline-collapsed"),dt),"".concat(y,"-rtl"),$e),b),dir:M,style:w,role:"menu",tabIndex:_,data:Zt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?De.slice(-t):null;return g.createElement(Fe,{eventKey:X,title:we,disabled:yt,internalPopupClose:0===t,popupClassName:xe},n)},maxCount:"horizontal"!==lt||R?h.Z.INVALIDATE:h.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){vt(e)},onKeyDown:$t},Le));return g.createElement(A.Provider,{value:Ht},g.createElement(v.Provider,{value:je},g.createElement(k,{prefixCls:y,rootClassName:b,mode:lt,openKeys:Ke,rtl:$e,disabled:B,motion:Re?ue:null,defaultMotions:Re?he:null,activeKey:Tt,onActive:Nt,onInactive:It,selectedKeys:Ot,inlineIndent:ce,subMenuOpenDelay:F,subMenuCloseDelay:j,forceSubMenuRender:$,builtinPlacements:ge,triggerSubMenuAction:fe,getPopupContainer:Se,itemIcon:me,expandIcon:ve,onItemClick:zt,onOpenChange:jt},g.createElement(L.Provider,{value:Mt},Kt),g.createElement("div",{style:{display:"none"},"aria-hidden":!0},g.createElement(C.Provider,{value:Et},Ne)))))})),Ye=qe;Ye.Item=be,Ye.SubMenu=Fe,Ye.ItemGroup=Ze,Ye.Divider=je;var Xe=Ye},11780:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var i=n(14809),r=n(20439),o=n(50298),a=n(62646),s=n(59301),l=n(92310),c=n.n(l),u=n(29301),h=n(34280),d=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],p=void 0;function f(e,t){var n=e.prefixCls,o=e.invalidate,l=e.item,h=e.renderItem,f=e.responsive,g=e.responsiveDisabled,m=e.registerSize,v=e.itemKey,y=e.className,b=e.style,w=e.children,x=e.display,S=e.order,k=e.component,_=void 0===k?"div":k,C=(0,a.Z)(e,d),P=f&&!x;function E(e){m(v,e)}s.useEffect((function(){return function(){E(null)}}),[]);var M,L=h&&l!==p?h(l,{index:S}):w;o||(M={opacity:P?0:1,height:P?0:p,overflowY:P?"hidden":p,order:f?S:p,pointerEvents:P?"none":p,position:P?"absolute":p});var A={};P&&(A["aria-hidden"]=!0);var T=s.createElement(_,(0,i.Z)({className:c()(!o&&n,y),style:(0,r.Z)((0,r.Z)({},M),b)},A,C,{ref:t}),L);return f&&(T=s.createElement(u.Z,{onResize:function(e){E(e.offsetWidth)},disabled:g},T)),T}var g=s.forwardRef(f);g.displayName="Item";var m=g,v=n(6089),y=n(4676),b=n(16089);function w(){var e=s.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,b.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,y.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function x(e,t){var n=s.useState(t),i=(0,o.Z)(n,2),r=i[0],a=i[1];return[r,(0,v.Z)((function(t){e((function(){a(t)}))}))]}var S=s.createContext(null),k=["component"],_=["className"],C=["className"],P=function(e,t){var n=s.useContext(S);if(!n){var r=e.component,o=void 0===r?"div":r,l=(0,a.Z)(e,k);return s.createElement(o,(0,i.Z)({},l,{ref:t}))}var u=n.className,h=(0,a.Z)(n,_),d=e.className,p=(0,a.Z)(e,C);return s.createElement(S.Provider,{value:null},s.createElement(m,(0,i.Z)({ref:t,className:c()(u,d)},h,p)))},E=s.forwardRef(P);E.displayName="RawItem";var M=E,L=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],A="responsive",T="invalidate";function D(e){return"+ ".concat(e.length," ...")}function N(e,t){var n=e.prefixCls,l=void 0===n?"rc-overflow":n,d=e.data,p=void 0===d?[]:d,f=e.renderItem,g=e.renderRawItem,v=e.itemKey,y=e.itemWidth,b=void 0===y?10:y,k=e.ssr,_=e.style,C=e.className,P=e.maxCount,E=e.renderRest,M=e.renderRawRest,N=e.suffix,I=e.component,B=void 0===I?"div":I,R=e.itemComponent,O=e.onVisibleChange,F=(0,a.Z)(e,L),z="full"===k,j=w(),$=x(j,null),H=(0,o.Z)($,2),Z=H[0],K=H[1],G=Z||0,U=x(j,new Map),V=(0,o.Z)(U,2),W=V[0],q=V[1],Y=x(j,0),X=(0,o.Z)(Y,2),Q=X[0],J=X[1],ee=x(j,0),te=(0,o.Z)(ee,2),ne=te[0],ie=te[1],re=x(j,0),oe=(0,o.Z)(re,2),ae=oe[0],se=oe[1],le=(0,s.useState)(null),ce=(0,o.Z)(le,2),ue=ce[0],he=ce[1],de=(0,s.useState)(null),pe=(0,o.Z)(de,2),fe=pe[0],ge=pe[1],me=s.useMemo((function(){return null===fe&&z?Number.MAX_SAFE_INTEGER:fe||0}),[fe,Z]),ve=(0,s.useState)(!1),ye=(0,o.Z)(ve,2),be=ye[0],we=ye[1],xe="".concat(l,"-item"),Se=Math.max(Q,ne),ke=P===A,_e=p.length&&ke,Ce=P===T,Pe=_e||"number"==typeof P&&p.length>P,Ee=(0,s.useMemo)((function(){var e=p;return _e?e=null===Z&&z?p:p.slice(0,Math.min(p.length,G/b)):"number"==typeof P&&(e=p.slice(0,P)),e}),[p,b,Z,P,_e]),Me=(0,s.useMemo)((function(){return _e?p.slice(me+1):p.slice(Ee.length)}),[p,Ee,_e,me]),Le=(0,s.useCallback)((function(e,t){var n;return"function"==typeof v?v(e):null!==(n=v&&(null==e?void 0:e[v]))&&void 0!==n?n:t}),[v]),Ae=(0,s.useCallback)(f||function(e){return e},[f]);function Te(e,t,n){(fe!==e||void 0!==t&&t!==ue)&&(ge(e),n||(we(eG){Te(i-1,e-r-ae+ne);break}}N&&Ne(0)+ae>G&&he(null)}}),[G,W,ne,ae,Le,Ee]);var Ie=be&&!!Me.length,Be={};null!==ue&&_e&&(Be={position:"absolute",left:ue,top:0});var Re={prefixCls:xe,responsive:_e,component:R,invalidate:Ce},Oe=g?function(e,t){var n=Le(e,t);return s.createElement(S.Provider,{key:n,value:(0,r.Z)((0,r.Z)({},Re),{},{order:t,item:e,itemKey:n,registerSize:De,display:t<=me})},g(e,t))}:function(e,t){var n=Le(e,t);return s.createElement(m,(0,i.Z)({},Re,{order:t,key:n,item:e,renderItem:Ae,itemKey:n,registerSize:De,display:t<=me}))},Fe={order:Ie?me:Number.MAX_SAFE_INTEGER,className:"".concat(xe,"-rest"),registerSize:function(e,t){ie(t),J(ne)},display:Ie},ze=E||D,je=M?s.createElement(S.Provider,{value:(0,r.Z)((0,r.Z)({},Re),Fe)},M(Me)):s.createElement(m,(0,i.Z)({},Re,Fe),"function"==typeof ze?ze(Me):ze),$e=s.createElement(B,(0,i.Z)({className:c()(!Ce&&l,C),style:_,ref:t},F),Ee.map(Oe),Pe?je:null,N&&s.createElement(m,(0,i.Z)({},Re,{responsive:ke,responsiveDisabled:!_e,order:me,className:"".concat(xe,"-suffix"),registerSize:function(e,t){se(t)},display:!0,style:Be}),N));return ke?s.createElement(u.Z,{onResize:function(e,t){K(t.clientWidth)},disabled:!_e},$e):$e}var I=s.forwardRef(N);I.displayName="Overflow",I.Item=M,I.RESPONSIVE=A,I.INVALIDATE=T;var B=I},29301:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var i=n(14809),r=n(59301),o=n(11592),a=(n(48736),n(20439)),s=n(93664),l=n(76846),c=n(8654),u=r.createContext(null);var h=n(76374),d=new Map;var p=new h.Z((function(e){e.forEach((function(e){var t,n=e.target;null===(t=d.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var f=n(99153),g=n(84851),m=n(19257),v=n(93046),y=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return(0,g.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function b(e,t){var n=e.children,i=e.disabled,o=r.useRef(null),h=r.useRef(null),f=r.useContext(u),g="function"==typeof n,m=g?n(o):n,v=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),b=!g&&r.isValidElement(m)&&(0,c.Yr)(m),w=b?(0,c.C4)(m):null,x=(0,c.x1)(w,o),S=function(){var e;return(0,l.ZP)(o.current)||(o.current&&"object"===(0,s.Z)(o.current)?(0,l.ZP)(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||(0,l.ZP)(h.current)};r.useImperativeHandle(t,(function(){return S()}));var k=r.useRef(e);k.current=e;var _=r.useCallback((function(e){var t=k.current,n=t.onResize,i=t.data,r=e.getBoundingClientRect(),o=r.width,s=r.height,l=e.offsetWidth,c=e.offsetHeight,u=Math.floor(o),h=Math.floor(s);if(v.current.width!==u||v.current.height!==h||v.current.offsetWidth!==l||v.current.offsetHeight!==c){var d={width:u,height:h,offsetWidth:l,offsetHeight:c};v.current=d;var p=l===Math.round(o)?o:l,g=c===Math.round(s)?s:c,m=(0,a.Z)((0,a.Z)({},d),{},{offsetWidth:p,offsetHeight:g});null==f||f(m,e,i),n&&Promise.resolve().then((function(){n(m,e)}))}}),[]);return r.useEffect((function(){var e,t,n=S();return n&&!i&&(e=n,t=_,d.has(e)||(d.set(e,new Set),p.observe(e)),d.get(e).add(t)),function(){return function(e,t){d.has(e)&&(d.get(e).delete(t),d.get(e).size||(p.unobserve(e),d.delete(e)))}(n,_)}}),[o.current,i]),r.createElement(y,{ref:h},b?r.cloneElement(m,{ref:x}):m)}var w=r.forwardRef(b);function x(e,t){var n=e.children;return("function"==typeof n?[n]:(0,o.Z)(n)).map((function(n,o){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(w,(0,i.Z)({},e,{key:a,ref:0===o?t:void 0}),n)}))}var S=r.forwardRef(x);S.Collection=function(e){var t=e.children,n=e.onBatchResize,i=r.useRef(0),o=r.useRef([]),a=r.useContext(u),s=r.useCallback((function(e,t,r){i.current+=1;var s=i.current;o.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){s===i.current&&(null==n||n(o.current),o.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(u.Provider,{value:s},t)};var k=S},49658:function(e,t){"use strict";t.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)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(null==e?void 0:e.substr(0,4))}},6790:function(e,t,n){"use strict";n.d(t,{Z:function(){return F}});var i=n(14809),r=n(93664),o=n(20439),a=n(4635),s=n(50298),l=n(62646),c=n(92310),u=n.n(c),h=n(29301),d=n(70425),p=n(34280),f=n(59301),g=n(4676),m=f.forwardRef((function(e,t){var n=e.height,r=e.offsetY,s=e.offsetX,l=e.children,c=e.prefixCls,d=e.onInnerResize,p=e.innerProps,g=e.rtl,m=e.extra,v={},y={display:"flex",flexDirection:"column"};return void 0!==r&&(v={height:n,position:"relative",overflow:"hidden"},y=(0,o.Z)((0,o.Z)({},y),{},(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({transform:"translateY(".concat(r,"px)")},g?"marginRight":"marginLeft",-s),"position","absolute"),"left",0),"right",0),"top",0))),f.createElement("div",{style:v},f.createElement(h.Z,{onResize:function(e){e.offsetHeight&&d&&d()}},f.createElement("div",(0,i.Z)({style:y,className:u()((0,a.Z)({},"".concat(c,"-holder-inner"),c)),ref:t},p),l,m)))}));m.displayName="Filler";var v=m;function y(e){var t=e.children,n=e.setRef,i=f.useCallback((function(e){n(e)}),[]);return f.cloneElement(t,{ref:i})}function b(e,t,n){var i=f.useState(e),r=(0,s.Z)(i,2),o=r[0],a=r[1],l=f.useState(null),c=(0,s.Z)(l,2),u=c[0],h=c[1];return f.useEffect((function(){var i=function(e,t,n){var i,r,o=e.length,a=t.length;if(0===o&&0===a)return null;o2&&void 0!==arguments[2]&&arguments[2],i=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&i?(clearTimeout(o.current),r.current=!1):i&&!r.current||a(),!r.current&&i}};function k(e,t,n,i,r,o,a){var s=(0,f.useRef)(0),l=(0,f.useRef)(null),c=(0,f.useRef)(null),u=(0,f.useRef)(!1),h=S(t,n,i,r);var d=(0,f.useRef)(null),p=(0,f.useRef)(null);return[function(t){if(e){w.Z.cancel(p.current),p.current=(0,w.Z)((function(){d.current=null}),2);var n=t.deltaX,i=t.deltaY,r=t.shiftKey,f=n,g=i;("sx"===d.current||!d.current&&r&&i&&!n)&&(f=i,g=0,d.current="sx");var m=Math.abs(f),v=Math.abs(g);null===d.current&&(d.current=o&&m>v?"x":"y"),"y"===d.current?function(e,t){if(w.Z.cancel(l.current),!h(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,s.current+=t,c.current=t,x||n.preventDefault(),l.current=(0,w.Z)((function(){var e=u.current?10:1;a(s.current*e,!1),s.current=0})))}}(t,g):function(e,t){a(t,!0),x||e.preventDefault()}(t,f)}},function(t){e&&(u.current=t.detail===c.current)}]}var _=n(99153),C=n(84851),P=function(){function e(){(0,_.Z)(this,e),(0,a.Z)(this,"maps",void 0),(0,a.Z)(this,"id",0),(0,a.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,C.Z)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function E(e){var t=parseFloat(e);return isNaN(t)?0:t}var M=14/15;function L(e){return Math.floor(Math.pow(e,.5))}function A(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var T=f.forwardRef((function(e,t){var n=e.prefixCls,i=e.rtl,r=e.scrollOffset,l=e.scrollRange,c=e.onStartMove,h=e.onStopMove,d=e.onScroll,p=e.horizontal,g=e.spinSize,m=e.containerSize,v=e.style,y=e.thumbStyle,b=e.showScrollBar,x=f.useState(!1),S=(0,s.Z)(x,2),k=S[0],_=S[1],C=f.useState(null),P=(0,s.Z)(C,2),E=P[0],M=P[1],L=f.useState(null),T=(0,s.Z)(L,2),D=T[0],N=T[1],I=!i,B=f.useRef(),R=f.useRef(),O=f.useState(b),F=(0,s.Z)(O,2),z=F[0],j=F[1],$=f.useRef(),H=function(){!0!==b&&!1!==b&&(clearTimeout($.current),j(!0),$.current=setTimeout((function(){j(!1)}),3e3))},Z=l-m||0,K=m-g||0,G=f.useMemo((function(){return 0===r||0===Z?0:r/Z*K}),[r,Z,K]),U=f.useRef({top:G,dragging:k,pageY:E,startTop:D});U.current={top:G,dragging:k,pageY:E,startTop:D};var V=function(e){_(!0),M(A(e,p)),N(U.current.top),c(),e.stopPropagation(),e.preventDefault()};f.useEffect((function(){var e=function(e){e.preventDefault()},t=B.current,n=R.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",V,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",V)}}),[]);var W=f.useRef();W.current=Z;var q=f.useRef();q.current=K,f.useEffect((function(){if(k){var e,t=function(t){var n=U.current,i=n.dragging,r=n.pageY,o=n.startTop;w.Z.cancel(e);var a=B.current.getBoundingClientRect(),s=m/(p?a.width:a.height);if(i){var l=(A(t,p)-r)*s,c=o;!I&&p?c-=l:c+=l;var u=W.current,h=q.current,f=h?c/h:0,g=Math.ceil(f*u);g=Math.max(g,0),g=Math.min(g,u),e=(0,w.Z)((function(){d(g,p)}))}},n=function(){_(!1),h()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),w.Z.cancel(e)}}}),[k]),f.useEffect((function(){return H(),function(){clearTimeout($.current)}}),[r]),f.useImperativeHandle(t,(function(){return{delayHidden:H}}));var Y="".concat(n,"-scrollbar"),X={position:"absolute",visibility:z?null:"hidden"},Q={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return p?(Object.assign(X,{height:8,left:0,right:0,bottom:0}),Object.assign(Q,(0,a.Z)({height:"100%",width:g},I?"left":"right",G))):(Object.assign(X,(0,a.Z)({width:8,top:0,bottom:0},I?"right":"left",0)),Object.assign(Q,{width:"100%",height:g,top:G})),f.createElement("div",{ref:B,className:u()(Y,(0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(Y,"-horizontal"),p),"".concat(Y,"-vertical"),!p),"".concat(Y,"-visible"),z)),style:(0,o.Z)((0,o.Z)({},X),v),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:H},f.createElement("div",{ref:R,className:u()("".concat(Y,"-thumb"),(0,a.Z)({},"".concat(Y,"-thumb-moving"),k)),style:(0,o.Z)((0,o.Z)({},Q),y),onMouseDown:V}))}));function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,20),Math.floor(n)}var N=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],I=[],B={overflowY:"auto",overflowAnchor:"none"};function R(e,t){var n=e.prefixCls,c=void 0===n?"rc-virtual-list":n,m=e.className,x=e.height,_=e.itemHeight,C=e.fullHeight,R=void 0===C||C,O=e.style,F=e.data,z=e.children,j=e.itemKey,$=e.virtual,H=e.direction,Z=e.scrollWidth,K=e.component,G=void 0===K?"div":K,U=e.onScroll,V=e.onVirtualScroll,W=e.onVisibleChange,q=e.innerProps,Y=e.extraRender,X=e.styles,Q=e.showScrollBar,J=void 0===Q?"optional":Q,ee=(0,l.Z)(e,N),te=f.useCallback((function(e){return"function"==typeof j?j(e):null==e?void 0:e[j]}),[j]),ne=function(e,t,n){var i=f.useState(0),r=(0,s.Z)(i,2),o=r[0],a=r[1],l=(0,f.useRef)(new Map),c=(0,f.useRef)(new P),u=(0,f.useRef)(0);function h(){u.current+=1}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];h();var t=function(){var e=!1;l.current.forEach((function(t,n){if(t&&t.offsetParent){var i=t.offsetHeight,r=getComputedStyle(t),o=r.marginTop,a=r.marginBottom,s=i+E(o)+E(a);c.current.get(n)!==s&&(c.current.set(n,s),e=!0)}})),e&&a((function(e){return e+1}))};if(e)t();else{u.current+=1;var n=u.current;Promise.resolve().then((function(){n===u.current&&t()}))}}return(0,f.useEffect)((function(){return h}),[]),[function(i,r){var o=e(i),a=l.current.get(o);r?(l.current.set(o,r),d()):l.current.delete(o),!a!=!r&&(r?null==t||t(i):null==n||n(i))},d,c.current,o]}(te,null,null),ie=(0,s.Z)(ne,4),re=ie[0],oe=ie[1],ae=ie[2],se=ie[3],le=!(!1===$||!x||!_),ce=f.useMemo((function(){return Object.values(ae.maps).reduce((function(e,t){return e+t}),0)}),[ae.id,ae.maps]),ue=le&&F&&(Math.max(_*F.length,ce)>x||!!Z),he="rtl"===H,de=u()(c,(0,a.Z)({},"".concat(c,"-rtl"),he),m),pe=F||I,fe=(0,f.useRef)(),ge=(0,f.useRef)(),me=(0,f.useRef)(),ve=(0,f.useState)(0),ye=(0,s.Z)(ve,2),be=ye[0],we=ye[1],xe=(0,f.useState)(0),Se=(0,s.Z)(xe,2),ke=Se[0],_e=Se[1],Ce=(0,f.useState)(!1),Pe=(0,s.Z)(Ce,2),Ee=Pe[0],Me=Pe[1],Le=function(){Me(!0)},Ae=function(){Me(!1)},Te={getKey:te};function De(e){we((function(t){var n=function(e){var t=e;Number.isNaN(Xe.current)||(t=Math.min(t,Xe.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return fe.current.scrollTop=n,n}))}var Ne=(0,f.useRef)({start:0,end:pe.length}),Ie=(0,f.useRef)(),Be=b(pe,te),Re=(0,s.Z)(Be,1)[0];Ie.current=Re;var Oe=f.useMemo((function(){if(!le)return{scrollHeight:void 0,start:0,end:pe.length-1,offset:void 0};var e;if(!ue)return{scrollHeight:(null===(e=ge.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:pe.length-1,offset:void 0};for(var t,n,i,r=0,o=pe.length,a=0;a=be&&void 0===t&&(t=a,n=r),u>be+x&&void 0===i&&(i=a),r=u}return void 0===t&&(t=0,n=0,i=Math.ceil(x/_)),void 0===i&&(i=pe.length-1),{scrollHeight:r,start:t,end:i=Math.min(i+1,pe.length-1),offset:n}}),[ue,le,be,pe,se,x]),Fe=Oe.scrollHeight,ze=Oe.start,je=Oe.end,$e=Oe.offset;Ne.current.start=ze,Ne.current.end=je,f.useLayoutEffect((function(){var e=ae.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),i=pe[ze];if(i&&void 0===n)if(te(i)===t){var r=ae.get(t)-_;De((function(e){return e+r}))}}ae.resetRecord()}),[Fe]);var He=f.useState({width:0,height:x}),Ze=(0,s.Z)(He,2),Ke=Ze[0],Ge=Ze[1],Ue=(0,f.useRef)(),Ve=(0,f.useRef)(),We=f.useMemo((function(){return D(Ke.width,Z)}),[Ke.width,Z]),qe=f.useMemo((function(){return D(Ke.height,Fe)}),[Ke.height,Fe]),Ye=Fe-x,Xe=(0,f.useRef)(Ye);Xe.current=Ye;var Qe=be<=0,Je=be>=Ye,et=ke<=0,tt=ke>=Z,nt=S(Qe,Je,et,tt),it=function(){return{x:he?-ke:ke,y:be}},rt=(0,f.useRef)(it()),ot=(0,d.zX)((function(e){if(V){var t=(0,o.Z)((0,o.Z)({},it()),e);rt.current.x===t.x&&rt.current.y===t.y||(V(t),rt.current=t)}}));function at(e,t){var n=e;t?((0,g.flushSync)((function(){_e(n)})),ot()):De(n)}var st=function(e){var t=e,n=Z?Z-Ke.width:0;return t=Math.max(t,0),t=Math.min(t,n)},lt=(0,d.zX)((function(e,t){t?((0,g.flushSync)((function(){_e((function(t){return st(t+(he?-e:e))}))})),ot()):De((function(t){return t+e}))})),ct=k(le,Qe,Je,et,tt,!!Z,lt),ut=(0,s.Z)(ct,2),ht=ut[0],dt=ut[1];!function(e,t,n){var i,r=(0,f.useRef)(!1),o=(0,f.useRef)(0),a=(0,f.useRef)(0),s=(0,f.useRef)(null),l=(0,f.useRef)(null),c=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageX),i=Math.ceil(e.touches[0].pageY),s=o.current-t,c=a.current-i,u=Math.abs(s)>Math.abs(c);u?o.current=t:a.current=i;var h=n(u,u?s:c,!1,e);h&&e.preventDefault(),clearInterval(l.current),h&&(l.current=setInterval((function(){u?s*=M:c*=M;var e=Math.floor(u?s:c);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(l.current)}),16))}},u=function(){r.current=!1,i()},h=function(e){i(),1!==e.touches.length||r.current||(r.current=!0,o.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),s.current=e.target,s.current.addEventListener("touchmove",c,{passive:!1}),s.current.addEventListener("touchend",u,{passive:!0}))};i=function(){s.current&&(s.current.removeEventListener("touchmove",c),s.current.removeEventListener("touchend",u))},(0,p.Z)((function(){return e&&t.current.addEventListener("touchstart",h,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",h),i(),clearInterval(l.current)}}),[e])}(le,fe,(function(e,t,n,i){var r=i;return!nt(e,t,n)&&((!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),ht({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),function(e,t,n){f.useEffect((function(){var i=t.current;if(e&&i){var r,o,a=!1,s=function(){w.Z.cancel(r)},l=function e(){s(),r=(0,w.Z)((function(){n(o),e()}))},c=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},u=function(){a=!1,s()},h=function(e){if(a){var t=A(e,!1),n=i.getBoundingClientRect(),r=n.top,c=n.bottom;t<=r?(o=-L(r-t),l()):t>=c?(o=L(t-c),l()):s()}};return i.addEventListener("mousedown",c),i.ownerDocument.addEventListener("mouseup",u),i.ownerDocument.addEventListener("mousemove",h),function(){i.removeEventListener("mousedown",c),i.ownerDocument.removeEventListener("mouseup",u),i.ownerDocument.removeEventListener("mousemove",h),s()}}}),[e])}(ue,fe,(function(e){De((function(t){return t+e}))})),(0,p.Z)((function(){function e(e){var t=Qe&&e.detail<0,n=Je&&e.detail>0;!le||t||n||e.preventDefault()}var t=fe.current;return t.addEventListener("wheel",ht,{passive:!1}),t.addEventListener("DOMMouseScroll",dt,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",ht),t.removeEventListener("DOMMouseScroll",dt),t.removeEventListener("MozMousePixelScroll",e)}}),[le,Qe,Je]),(0,p.Z)((function(){if(Z){var e=st(ke);_e(e),ot({x:e})}}),[Ke.width,Z]);var pt=function(){var e,t;null===(e=Ue.current)||void 0===e||e.delayHidden(),null===(t=Ve.current)||void 0===t||t.delayHidden()},ft=function(e,t,n,i,a,l,c,u){var h=f.useRef(),d=f.useState(null),g=(0,s.Z)(d,2),m=g[0],v=g[1];return(0,p.Z)((function(){if(m&&m.times<10){if(!e.current)return void v((function(e){return(0,o.Z)({},e)}));l();var r=m.targetAlign,s=m.originAlign,u=m.index,h=m.offset,d=e.current.clientHeight,p=!1,f=r,g=null;if(d){for(var y=r||s,b=0,w=0,x=0,S=Math.min(t.length-1,u),k=0;k<=S;k+=1){var _=a(t[k]);w=b;var C=n.get(_);b=x=w+(void 0===C?i:C)}for(var P="top"===y?h:d-h,E=S;E>=0;E-=1){var M=a(t[E]),L=n.get(M);if(void 0===L){p=!0;break}if((P-=L)<=0)break}switch(y){case"top":g=w-h;break;case"bottom":g=x-d+h;break;default:var A=e.current.scrollTop;wA+d&&(f="bottom")}null!==g&&c(g),g!==m.lastTop&&(p=!0)}p&&v((0,o.Z)((0,o.Z)({},m),{},{times:m.times+1,targetAlign:f,lastTop:g}))}}),[m,e.current]),function(e){if(null!=e){if(w.Z.cancel(h.current),"number"==typeof e)c(e);else if(e&&"object"===(0,r.Z)(e)){var n,i=e.align;n="index"in e?e.index:t.findIndex((function(t){return a(t)===e.key}));var o=e.offset;v({times:0,index:n,offset:void 0===o?0:o,originAlign:i})}}else u()}}(fe,pe,ae,_,te,(function(){return oe(!0)}),De,pt);f.useImperativeHandle(t,(function(){return{nativeElement:me.current,getScrollInfo:it,scrollTo:function(e){var t;(t=e)&&"object"===(0,r.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&_e(st(e.left)),ft(e.top)):ft(e)}}})),(0,p.Z)((function(){if(W){var e=pe.slice(ze,je+1);W(e,pe)}}),[ze,je,pe]);var gt=function(e,t,n,i){var r=f.useMemo((function(){return[new Map,[]]}),[e,n.id,i]),o=(0,s.Z)(r,2),a=o[0],l=o[1];return function(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,s=a.get(r),c=a.get(o);if(void 0===s||void 0===c)for(var u=e.length,h=l.length;hx&&f.createElement(T,{ref:Ue,prefixCls:c,scrollOffset:be,scrollRange:Fe,rtl:he,onScroll:at,onStartMove:Le,onStopMove:Ae,spinSize:qe,containerSize:Ke.height,style:null==X?void 0:X.verticalScrollBar,thumbStyle:null==X?void 0:X.verticalScrollBarThumb,showScrollBar:J}),ue&&Z>Ke.width&&f.createElement(T,{ref:Ve,prefixCls:c,scrollOffset:ke,scrollRange:Z,rtl:he,onScroll:at,onStartMove:Le,onStopMove:Ae,spinSize:We,containerSize:Ke.width,horizontal:!0,style:null==X?void 0:X.horizontalScrollBar,thumbStyle:null==X?void 0:X.horizontalScrollBarThumb,showScrollBar:J}))}var O=f.forwardRef(R);O.displayName="List";var F=O},83145:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=o(n(59301)),r=o(n(25769));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return r&&(s?a?u.unshift(s):u.push(s):this.defaultLoader&&(a?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(i,c,u)}}]),t}(r.Component);l.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)},76374:function(e,t,n){"use strict";var i=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,i=Object.keys(t);n0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new i,k=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),i=new x(t,n,this);S.set(this,i)};["observe","unobserve","disconnect"].forEach((function(e){k.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}}));var _=void 0!==o.ResizeObserver?o.ResizeObserver:k;t.Z=_},98040:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],i=0;i0,Q=m.useState(!T||!X),J=(0,r.Z)(Q,2),ee=J[0],te=J[1];if((0,f.Z)((function(){!ee&&X&&u&&te(!0)}),[ee,X,u]),!ee)return null;var ne="auto",ie={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(z||!d){var re,oe=E.points,ae=E.dynamicInset||(null===(re=E._experimental)||void 0===re?void 0:re.dynamicInset),se=ae&&"r"===oe[0][1],le=ae&&"b"===oe[0][0];se?(ie.right=H,ie.left=ne):(ie.left=j,ie.right=ne),le?(ie.bottom=Z,ie.top=ne):(ie.top=$,ie.bottom=ne)}var ce={};return U&&(U.includes("height")&&W?ce.height=W:U.includes("minHeight")&&W&&(ce.minHeight=W),U.includes("width")&&V?ce.width=V:U.includes("minWidth")&&V&&(ce.minWidth=V)),d||(ce.pointerEvents="none"),m.createElement(N,{open:A||Y,getContainer:T&&function(){return T(u)},autoDestroy:D},m.createElement(x,{prefixCls:a,open:d,zIndex:I,mask:_,motion:L}),m.createElement(c.Z,{onResize:K,disabled:!d},(function(e){return m.createElement(y.ZP,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:A,leavedClassName:"".concat(a,"-hidden")},M,{onAppearPrepare:G,onEnterPrepare:G,visible:d,onVisibleChanged:function(e){var t;null==M||null===(t=M.onVisibleChanged)||void 0===t||t.call(M,e),h(e)}}),(function(n,r){var c=n.className,u=n.style,h=l()(a,c,o);return m.createElement("div",{ref:(0,b.sQ)(e,t,r),className:h,style:(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({"--arrow-x":"".concat(P.x||0,"px"),"--arrow-y":"".concat(P.y||0,"px")},ie),ce),u),{},{boxSizing:"border-box",zIndex:I},s),onMouseEnter:B,onMouseLeave:R,onPointerEnter:O,onClick:k,onPointerDownCapture:F},C&&m.createElement(w,{prefixCls:a,arrow:C,arrowPos:P,align:E}),m.createElement(S,{cache:!d&&!g},q))}))})))}));var _=m.forwardRef((function(e,t){var n=e.children,i=e.getTriggerDOMNode,r=(0,b.Yr)(n),o=m.useCallback((function(e){(0,b.mH)(t,i?i(e):e)}),[i]),a=(0,b.x1)(o,(0,b.C4)(n));return r?m.cloneElement(n,{ref:a}):n})),C=m.createContext(null);function P(e){return e?Array.isArray(e)?e:[e]:[]}function E(e,t,n,i){return m.useMemo((function(){var r=P(null!=n?n:t),o=P(null!=i?i:t),a=new Set(r),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,i])}var M=n(29194);function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function A(e,t,n,i){for(var r=n.points,o=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function B(e){return I(parseFloat(e),0)}function R(e,t){var n=(0,i.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=D(e).getComputedStyle(e),i=t.overflow,r=t.overflowClipMargin,o=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,h=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,f=B(o),g=B(a),m=B(s),v=B(l),y=I(Math.round(c.width/d*1e3)/1e3),b=I(Math.round(c.height/u*1e3)/1e3),w=(d-p-m-v)*y,x=(u-h-f-g)*b,S=f*b,k=g*b,_=m*y,C=v*y,P=0,E=0;if("clip"===i){var M=B(r);P=M*y,E=M*b}var L=c.x+_-P,A=c.y+S-E,T=L+c.width+2*P-_-C-w,N=A+c.height+2*E-S-k-x;n.left=Math.max(n.left,L),n.top=Math.max(n.top,A),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,N)}})),n}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),i=n.match(/^(.*)\%$/);return i?e*(parseFloat(i[1])/100):parseFloat(n)}function F(e,t){var n=t||[],i=(0,r.Z)(n,2),o=i[0],a=i[1];return[O(e.width,o),O(e.height,a)]}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function j(e,t){var n,i=t[0],r=t[1];return n="t"===i?e.y:"b"===i?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function $(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,i){return i===t?n[e]||"c":e})).join("")}function H(e,t,n,o,a,s,l){var c=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),h=(0,r.Z)(c,2),p=h[0],g=h[1],v=m.useRef(0),y=m.useMemo((function(){return t?N(t):[]}),[t]),b=m.useRef({});e||(b.current={});var w=(0,d.Z)((function(){if(t&&n&&e){var c,h,d,p,f,m=t,v=m.ownerDocument,w=D(m).getComputedStyle(m),x=w.width,S=w.height,k=w.position,_=m.style.left,C=m.style.top,P=m.style.right,E=m.style.bottom,L=m.style.overflow,A=(0,i.Z)((0,i.Z)({},a[o]),s),T=v.createElement("div");if(null===(c=m.parentElement)||void 0===c||c.appendChild(T),T.style.left="".concat(m.offsetLeft,"px"),T.style.top="".concat(m.offsetTop,"px"),T.style.position=k,T.style.height="".concat(m.offsetHeight,"px"),T.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(n))f={x:n[0],y:n[1],width:0,height:0};else{var N,B,O=n.getBoundingClientRect();O.x=null!==(N=O.x)&&void 0!==N?N:O.left,O.y=null!==(B=O.y)&&void 0!==B?B:O.top,f={x:O.x,y:O.y,width:O.width,height:O.height}}var H=m.getBoundingClientRect();H.x=null!==(h=H.x)&&void 0!==h?h:H.left,H.y=null!==(d=H.y)&&void 0!==d?d:H.top;var Z=v.documentElement,K=Z.clientWidth,G=Z.clientHeight,U=Z.scrollWidth,V=Z.scrollHeight,W=Z.scrollTop,q=Z.scrollLeft,Y=H.height,X=H.width,Q=f.height,J=f.width,ee={left:0,top:0,right:K,bottom:G},te={left:-q,top:-W,right:U-q,bottom:V-W},ne=A.htmlRegion,ie="visible",re="visibleFirst";"scroll"!==ne&&ne!==re&&(ne=ie);var oe=ne===re,ae=R(te,y),se=R(ee,y),le=ne===ie?se:ae,ce=oe?se:le;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var ue=m.getBoundingClientRect();m.style.left=_,m.style.top=C,m.style.right=P,m.style.bottom=E,m.style.overflow=L,null===(p=m.parentElement)||void 0===p||p.removeChild(T);var he=I(Math.round(X/parseFloat(x)*1e3)/1e3),de=I(Math.round(Y/parseFloat(S)*1e3)/1e3);if(0===he||0===de||(0,u.Sh)(n)&&!(0,M.Z)(n))return;var pe=A.offset,fe=A.targetOffset,ge=F(H,pe),me=(0,r.Z)(ge,2),ve=me[0],ye=me[1],be=F(f,fe),we=(0,r.Z)(be,2),xe=we[0],Se=we[1];f.x-=xe,f.y-=Se;var ke=A.points||[],_e=(0,r.Z)(ke,2),Ce=_e[0],Pe=z(_e[1]),Ee=z(Ce),Me=j(f,Pe),Le=j(H,Ee),Ae=(0,i.Z)({},A),Te=Me.x-Le.x+ve,De=Me.y-Le.y+ye;function Ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:le,i=H.x+e,r=H.y+t,o=i+X,a=r+Y,s=Math.max(i,n.left),l=Math.max(r,n.top),c=Math.min(o,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var Ne,Ie,Be,Re,Oe=Ct(Te,De),Fe=Ct(Te,De,se),ze=j(f,["t","l"]),je=j(H,["t","l"]),$e=j(f,["b","r"]),He=j(H,["b","r"]),Ze=A.overflow||{},Ke=Ze.adjustX,Ge=Ze.adjustY,Ue=Ze.shiftX,Ve=Ze.shiftY,We=function(e){return"boolean"==typeof e?e:e>=0};function Pt(){Ne=H.y+De,Ie=Ne+Y,Be=H.x+Te,Re=Be+X}Pt();var qe=We(Ge),Ye=Ee[0]===Pe[0];if(qe&&"t"===Ee[0]&&(Ie>ce.bottom||b.current.bt)){var Xe=De;Ye?Xe-=Y-Q:Xe=ze.y-He.y-ye;var Qe=Ct(Te,Xe),Je=Ct(Te,Xe,se);Qe>Oe||Qe===Oe&&(!oe||Je>=Fe)?(b.current.bt=!0,De=Xe,ye=-ye,Ae.points=[$(Ee,0),$(Pe,0)]):b.current.bt=!1}if(qe&&"b"===Ee[0]&&(NeOe||tt===Oe&&(!oe||nt>=Fe)?(b.current.tb=!0,De=et,ye=-ye,Ae.points=[$(Ee,0),$(Pe,0)]):b.current.tb=!1}var it=We(Ke),rt=Ee[1]===Pe[1];if(it&&"l"===Ee[1]&&(Re>ce.right||b.current.rl)){var ot=Te;rt?ot-=X-J:ot=ze.x-He.x-ve;var at=Ct(ot,De),st=Ct(ot,De,se);at>Oe||at===Oe&&(!oe||st>=Fe)?(b.current.rl=!0,Te=ot,ve=-ve,Ae.points=[$(Ee,1),$(Pe,1)]):b.current.rl=!1}if(it&&"r"===Ee[1]&&(BeOe||ct===Oe&&(!oe||ut>=Fe)?(b.current.lr=!0,Te=lt,ve=-ve,Ae.points=[$(Ee,1),$(Pe,1)]):b.current.lr=!1}Pt();var ht=!0===Ue?0:Ue;"number"==typeof ht&&(Bese.right&&(Te-=Re-se.right-ve,f.x>se.right-ht&&(Te+=f.x-se.right+ht)));var dt=!0===Ve?0:Ve;"number"==typeof dt&&(Nese.bottom&&(De-=Ie-se.bottom-ye,f.y>se.bottom-dt&&(De+=f.y-se.bottom+dt)));var pt=H.x+Te,ft=pt+X,gt=H.y+De,mt=gt+Y,vt=f.x,yt=vt+J,bt=f.y,wt=bt+Q,xt=(Math.max(pt,vt)+Math.min(ft,yt))/2-pt,St=(Math.max(gt,bt)+Math.min(mt,wt))/2-gt;null==l||l(t,Ae);var kt=ue.right-H.x-(Te+H.width),_t=ue.bottom-H.y-(De+H.height);1===he&&(Te=Math.round(Te),kt=Math.round(kt)),1===de&&(De=Math.round(De),_t=Math.round(_t)),g({ready:!0,offsetX:Te/he,offsetY:De/de,offsetR:kt/he,offsetB:_t/de,arrowX:xt/he,arrowY:St/de,scaleX:he,scaleY:de,align:Ae})}})),x=function(){g((function(e){return(0,i.Z)((0,i.Z)({},e),{},{ready:!1})}))};return(0,f.Z)(x,[o]),(0,f.Z)((function(){e||x()}),[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,function(){v.current+=1;var e=v.current;Promise.resolve().then((function(){v.current===e&&w()}))}]}var Z=n(95190);function K(e,t,n,i,r){(0,f.Z)((function(){if(e&&t&&n){var o=n,a=N(t),s=N(o),l=D(o),c=new Set([l].concat((0,Z.Z)(a),(0,Z.Z)(s)));function u(){i(),r()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),i(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[e,t,n])}n(48736);function G(e,t,n,i,r,o,a,s){var l=m.useRef(e);l.current=e;var c=m.useRef(!1);return m.useEffect((function(){if(t&&i&&(!r||o)){var e=function(){c.current=!1},u=function(e){var t;!l.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||c.current||s(!1)},d=D(i);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var p=(0,h.A)(n);return p&&(p.addEventListener("mousedown",u,!0),p.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),p&&(p.removeEventListener("mousedown",u,!0),p.removeEventListener("contextmenu",u,!0))}}}),[t,n,i,r,o]),function(){c.current=!0}}var U=["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"];var V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,t=m.forwardRef((function(t,n){var a=t.prefixCls,s=void 0===a?"rc-trigger-popup":a,v=t.children,y=t.action,b=void 0===y?"hover":y,w=t.showAction,x=t.hideAction,S=t.popupVisible,P=t.defaultPopupVisible,M=t.onPopupVisibleChange,L=t.afterPopupVisibleChange,D=t.mouseEnterDelay,N=t.mouseLeaveDelay,I=void 0===N?.1:N,B=t.focusDelay,R=t.blurDelay,O=t.mask,F=t.maskClosable,z=void 0===F||F,j=t.getPopupContainer,$=t.forceRender,Z=t.autoDestroy,V=t.destroyPopupOnHide,W=t.popup,q=t.popupClassName,Y=t.popupStyle,X=t.popupPlacement,Q=t.builtinPlacements,J=void 0===Q?{}:Q,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,ie=t.getPopupClassNameFromAlign,re=t.fresh,oe=t.alignPoint,ae=t.onPopupClick,se=t.onPopupAlign,le=t.arrow,ce=t.popupMotion,ue=t.maskMotion,he=t.popupTransitionName,de=t.popupAnimation,pe=t.maskTransitionName,fe=t.maskAnimation,ge=t.className,me=t.getTriggerDOMNode,ve=(0,o.Z)(t,U),ye=Z||V||!1,be=m.useState(!1),we=(0,r.Z)(be,2),xe=we[0],Se=we[1];(0,f.Z)((function(){Se((0,g.Z)())}),[]);var ke=m.useRef({}),_e=m.useContext(C),Ce=m.useMemo((function(){return{registerSubPopup:function(e,t){ke.current[e]=t,null==_e||_e.registerSubPopup(e,t)}}}),[_e]),Pe=(0,p.Z)(),Ee=m.useState(null),Me=(0,r.Z)(Ee,2),Le=Me[0],Ae=Me[1],Te=m.useRef(null),De=(0,d.Z)((function(e){Te.current=e,(0,u.Sh)(e)&&Le!==e&&Ae(e),null==_e||_e.registerSubPopup(Pe,e)})),Ne=m.useState(null),Ie=(0,r.Z)(Ne,2),Be=Ie[0],Re=Ie[1],Oe=m.useRef(null),Fe=(0,d.Z)((function(e){(0,u.Sh)(e)&&Be!==e&&(Re(e),Oe.current=e)})),ze=m.Children.only(v),je=(null==ze?void 0:ze.props)||{},$e={},He=(0,d.Z)((function(e){var t,n,i=Be;return(null==i?void 0:i.contains(e))||(null===(t=(0,h.A)(i))||void 0===t?void 0:t.host)===e||e===i||(null==Le?void 0:Le.contains(e))||(null===(n=(0,h.A)(Le))||void 0===n?void 0:n.host)===e||e===Le||Object.values(ke.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Ze=T(s,ce,de,he),Ke=T(s,ue,fe,pe),Ge=m.useState(P||!1),Ue=(0,r.Z)(Ge,2),Ve=Ue[0],We=Ue[1],qe=null!=S?S:Ve,Ye=(0,d.Z)((function(e){void 0===S&&We(e)}));(0,f.Z)((function(){We(S||!1)}),[S]);var Xe=m.useRef(qe);Xe.current=qe;var Qe=m.useRef([]);Qe.current=[];var Je=(0,d.Z)((function(e){var t;Ye(e),(null!==(t=Qe.current[Qe.current.length-1])&&void 0!==t?t:qe)!==e&&(Qe.current.push(e),null==M||M(e))})),et=m.useRef(),tt=function(){clearTimeout(et.current)},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tt(),0===t?Je(e):et.current=setTimeout((function(){Je(e)}),1e3*t)};m.useEffect((function(){return tt}),[]);var it=m.useState(!1),rt=(0,r.Z)(it,2),ot=rt[0],at=rt[1];(0,f.Z)((function(e){e&&!qe||at(!0)}),[qe]);var st=m.useState(null),lt=(0,r.Z)(st,2),ct=lt[0],ut=lt[1],ht=m.useState(null),dt=(0,r.Z)(ht,2),pt=dt[0],ft=dt[1],gt=function(e){ft([e.clientX,e.clientY])},mt=H(qe,Le,oe&&null!==pt?pt:Be,X,J,ee,se),vt=(0,r.Z)(mt,11),yt=vt[0],bt=vt[1],wt=vt[2],xt=vt[3],St=vt[4],kt=vt[5],_t=vt[6],Ct=vt[7],Pt=vt[8],Et=vt[9],Mt=vt[10],Lt=E(xe,b,w,x),At=(0,r.Z)(Lt,2),Tt=At[0],Dt=At[1],Nt=Tt.has("click"),It=Dt.has("click")||Dt.has("contextMenu"),Bt=(0,d.Z)((function(){ot||Mt()}));K(qe,Be,Le,Bt,(function(){Xe.current&&oe&&It&&nt(!1)})),(0,f.Z)((function(){Bt()}),[pt,X]),(0,f.Z)((function(){!qe||null!=J&&J[X]||Bt()}),[JSON.stringify(ee)]);var Rt=m.useMemo((function(){var e=A(J,s,Et,oe);return l()(e,null==ie?void 0:ie(Et))}),[Et,ie,J,s,oe]);m.useImperativeHandle(n,(function(){return{nativeElement:Oe.current,popupElement:Te.current,forceAlign:Bt}}));var Ot=m.useState(0),Ft=(0,r.Z)(Ot,2),zt=Ft[0],jt=Ft[1],$t=m.useState(0),Ht=(0,r.Z)($t,2),Zt=Ht[0],Kt=Ht[1],Gt=function(){if(ne&&Be){var e=Be.getBoundingClientRect();jt(e.width),Kt(e.height)}};function Ut(e,t,n,i){$e[e]=function(r){var o;null==i||i(r),nt(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l1?n-1:0),r=1;r1?n-1:0),r=1;ri.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+i.defaultValue);var r=go.Shape._FigureParameters[t];r||(r=[],go.Shape._FigureParameters[t]=r),r[n]=i};var t=[];function n(e,n){var i=t.pop();return void 0===i?new go.Point(e,n):(i.x=e,i.y=n,i)}function i(){var e=t.pop();return void 0===e?new go.Point:e}function r(e){t.push(e)}function o(e,t,n,i,r,o,a,s,l){l||(l=new go.Point);var c,u,h,d=e-n,p=r-a,f=NaN,g=NaN;0===d?0===p?e===n&&(f=e,g=t):g=(u=(o-s)/p)*(f=e)+(o-u*r):g=0===p?(c=(t-i)/d)*(f=r)+(h=t-c*e):(c=(t-i)/d)*(f=(o-(u=(o-s)/p)*r-(h=t-c*e))/(c-u))+h;return l.x=f,l.y=g,l}function a(e,t,n,i,r,o,a,s,l,c,u,h,d,p){var f=1-l,g=e*f+n*l,m=t*f+i*l,v=n*f+r*l,y=i*f+o*l,b=r*f+a*l,w=o*f+s*l,x=g*f+v*l,S=m*f+y*l,k=v*f+b*l,_=y*f+w*l,C=x*f+k*l,P=S*f+_*l;c.x=g,c.y=m,u.x=x,u.y=S,h.x=C,h.y=P,d.x=k,d.y=_,p.x=b,p.y=w}var s=new go.Spot(.156,.156),l=new go.Spot(.844,.844),c=(Math.sqrt(2)-1)/3*4;go.Shape.setFigureParameter("RoundedRectangle",0,new e("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",(function(e,t,n){var i=e?e.parameter1:NaN;(isNaN(i)||i<0)&&(i=5),i=Math.min(i,t/3);var r=(i=Math.min(i,n/3))*c,o=(new go.Geometry).add(new go.PathFigure(i,0,!0).add(new go.PathSegment(go.PathSegment.Line,t-i,0)).add(new go.PathSegment(go.PathSegment.Bezier,t,i,t-r,0,t,r)).add(new go.PathSegment(go.PathSegment.Line,t,n-i)).add(new go.PathSegment(go.PathSegment.Bezier,t-i,n,t,n-r,t-r,n)).add(new go.PathSegment(go.PathSegment.Line,i,n)).add(new go.PathSegment(go.PathSegment.Bezier,0,n-i,r,n,0,n-r)).add(new go.PathSegment(go.PathSegment.Line,0,i)).add(new go.PathSegment(go.PathSegment.Bezier,i,0,0,r,r,0).close()));return r>1&&(o.spot1=new go.Spot(0,0,r,r),o.spot2=new go.Spot(1,1,-r,-r)),o})),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,.25,.5,.75)})),go.Shape.defineFigureGenerator("TriangleDown",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,.5*t,n).close())).setSpots(.25,0,.75,.5)})),go.Shape.defineFigureGenerator("TriangleLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,n).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,0).close())).setSpots(.5,.25,1,.75)})),go.Shape.defineFigureGenerator("TriangleUp",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,n).add(new go.PathSegment(go.PathSegment.Line,0,n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,0).close())).setSpots(.25,.5,.75,1)})),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n).close())).setSpots(.25,.25,.75,.75)})),go.Shape.defineFigureGenerator("LineH",(function(e,t,n){var i=new go.Geometry(go.Geometry.Line);return i.startX=0,i.startY=n/2,i.endX=t,i.endY=n/2,i})),go.Shape.defineFigureGenerator("LineV",(function(e,t,n){var i=new go.Geometry(go.Geometry.Line);return i.startX=t/2,i.startY=0,i.endX=t/2,i.endY=n,i})),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n/2,!1).add(new go.PathSegment(go.PathSegment.Line,t,n/2)).add(new go.PathSegment(go.PathSegment.Move,t/2,0)).add(new go.PathSegment(go.PathSegment.Line,t/2,n)))})),go.Shape.defineFigureGenerator("XLine",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)))})),go.Shape.defineFigureGenerator("LineRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.25*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.25*t,n)))})),go.Shape.defineFigureGenerator("LineDown",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,.25*n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)).add(new go.PathSegment(go.PathSegment.Line,t,.25*n)))})),go.Shape.defineFigureGenerator("LineLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.75*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.75*t,n)))})),go.Shape.defineFigureGenerator("LineUp",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,.75*n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,.25*n)).add(new go.PathSegment(go.PathSegment.Line,t,.75*n)))})),go.Shape.defineFigureGenerator("AsteriskLine",(function(e,t,n){var i=.2/Math.SQRT2;return(new go.Geometry).add(new go.PathFigure(i*t,(1-i)*n,!1).add(new go.PathSegment(go.PathSegment.Line,(1-i)*t,i*n)).add(new go.PathSegment(go.PathSegment.Move,i*t,i*n)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*t,(1-i)*n)).add(new go.PathSegment(go.PathSegment.Move,0,n/2)).add(new go.PathSegment(go.PathSegment.Line,t,n/2)).add(new go.PathSegment(go.PathSegment.Move,t/2,0)).add(new go.PathSegment(go.PathSegment.Line,t/2,n)))})),go.Shape.defineFigureGenerator("CircleLine",(function(e,t,n){var i=t/2,r=(new go.Geometry).add(new go.PathFigure(t,t/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,i,i,i,i).close()));return r.spot1=s,r.spot2=l,r.defaultStretch=go.GraphObject.Uniform,r})),go.Shape.defineFigureGenerator("Line1",(function(e,t,n){var i=new go.Geometry(go.Geometry.Line);return i.startX=0,i.startY=0,i.endX=t,i.endY=n,i})),go.Shape.defineFigureGenerator("Line2",(function(e,t,n){var i=new go.Geometry(go.Geometry.Line);return i.startX=t,i.startY=0,i.endX=0,i.endY=n,i})),go.Shape.defineFigureGenerator("Curve1",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,t,n,c*t,0,t,(1-c)*n)))})),go.Shape.defineFigureGenerator("Curve2",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,t,n,0,c*n,(1-c)*t,n)))})),go.Shape.defineFigureGenerator("Curve3",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,c*n,c*t,n)))})),go.Shape.defineFigureGenerator("Curve4",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,n,(1-c)*t,0,0,(1-c)*n)))})),go.Shape.defineFigureGenerator("TriangleDownLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,.5,.5,1)})),go.Shape.defineFigureGenerator("TriangleDownRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(.5,.5,1,1)})),go.Shape.defineFigureGenerator("TriangleUpLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,0,.5,.5)})),go.Shape.defineFigureGenerator("TriangleUpRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n).close())).setSpots(.5,0,1,.5)})),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new e("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)?i=.1:i<-1?i=-1:i>1&&(i=1);var r=Math.abs(i)*t;if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=t,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-r,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t-r,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())),rt&&(i=t);var r=Math.abs(i);if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=t,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-r,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t-r,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())),r.5&&(i=.5);var r=Math.abs(i)*t;if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=t,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,t-r,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-r,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())),rt&&(i=t/2);var r=Math.abs(i);if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=t,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,t-r,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-r,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())),rt&&(i=t/2);var r=Math.abs(i);if(0===i)return(o=new go.Geometry(go.Geometry.Rectangle)).startX=0,o.startY=0,o.endX=t,o.endY=n,o;var o=new go.Geometry;return i>0?o.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-r,n)).add(new go.PathSegment(go.PathSegment.Line,r,n).close())):o.add(new go.PathFigure(r,0).add(new go.PathSegment(go.PathSegment.Line,t-r,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())),r0&&(a.add(new go.PathSegment(go.PathSegment.Move,t/2+c,t/2)),a.add(new go.PathSegment(go.PathSegment.Arc,0,-360,r,r,c,c).close())),o.spot1=s,o.spot2=l,o.defaultStretch=go.GraphObject.Uniform,o})),go.Shape.defineFigureGenerator("Cloud",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.08034461*t,.1944299*n,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*t,.05349299*n,-.09239631*t,.07836421*n,.1406031*t,-.0542823*n)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*t,.074219*n,.2450511*t,-.00697547*n,.3776197*t,-.01112067*n)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*t,.07004196*n,.4539471*t,0,.6066018*t,-.02526587*n)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*t,.08370865*n,.6914277*t,-.01904177*n,.8921095*t,-.01220843*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*t,.3194596*n,1.036446*t,.04105738*n,1.020377*t,.3022052*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*t,.562044*n,1.04448*t,.360238*n,.992256*t,.5219009*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*t,.8217117*n,1.032337*t,.5771781*n,1.018411*t,.8120651*n)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*t,.9156953*n,1.028411*t,.9571472*n,.8556702*t,1.052487*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*t,.9310455*n,.7431877*t,1.009325*n,.5624123*t,1.021761*n)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*t,.9344623*n,.4820677*t,1.031761*n,.3030112*t,1.002796*n)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*t,.870098*n,.2329994*t,1.01518*n,.03213784*t,1.01518*n)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*t,.6545475*n,-.02812061*t,.9032597*n,-.01205169*t,.6835638*n)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*t,.4265613*n,-.01812061*t,.6089503*n,-.00606892*t,.4555777*n)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*t,.1944299*n,-.01606892*t,.3892545*n,-.01205169*t,.1944299*n))).setSpots(.1,.1,.9,.9)})),go.Shape.defineFigureGenerator("StopSign",(function(e,t,n){var i=1/(Math.SQRT2+2);return(new go.Geometry).add(new go.PathFigure(i*t,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-i)*t,0)).add(new go.PathSegment(go.PathSegment.Line,t,i*n)).add(new go.PathSegment(go.PathSegment.Line,t,(1-i)*n)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*t,n)).add(new go.PathSegment(go.PathSegment.Line,i*t,n)).add(new go.PathSegment(go.PathSegment.Line,0,(1-i)*n)).add(new go.PathSegment(go.PathSegment.Line,0,i*n).close())).setSpots(i/2,i/2,1-i/2,1-i/2)})),go.Shape.setFigureParameter("Pie",0,new e("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new e("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",(function(e,t,n){var i=e?e.parameter1:NaN,r=e?e.parameter2:NaN;isNaN(i)&&(i=0),isNaN(r)&&(r=315);var o=i%360;o<0&&(o+=360);var a=r%360,s=Math.min(t,n)/2;return(new go.Geometry).add(new go.PathFigure(s,s).add(new go.PathSegment(go.PathSegment.Arc,o,a,s,s,s,s).close()))})),go.Shape.defineFigureGenerator("PiePiece",(function(e,t,n){var i=c/Math.SQRT2*.5,r=Math.SQRT2/2,o=1-Math.SQRT2/2;return(new go.Geometry).add(new go.PathFigure(t,n,!0).add(new go.PathSegment(go.PathSegment.Bezier,r*t,o*n,t,(1-i)*n,(r+i)*t,(o+i)*n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close()))})),go.Shape.setFigureParameter("ThickCross",0,new e("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",(function(e,t,n){var i=e?e.parameter1:NaN;(isNaN(i)||i<0)&&(i=30);var r=Math.min(i,t)/2,o=t/2,a=n/2;return(new go.Geometry).add(new go.PathFigure(o-r,0,!0).add(new go.PathSegment(go.PathSegment.Line,o+r,0)).add(new go.PathSegment(go.PathSegment.Line,o+r,a-r)).add(new go.PathSegment(go.PathSegment.Line,t,a-r)).add(new go.PathSegment(go.PathSegment.Line,t,a+r)).add(new go.PathSegment(go.PathSegment.Line,o+r,a+r)).add(new go.PathSegment(go.PathSegment.Line,o+r,n)).add(new go.PathSegment(go.PathSegment.Line,o-r,n)).add(new go.PathSegment(go.PathSegment.Line,o-r,a+r)).add(new go.PathSegment(go.PathSegment.Line,0,a+r)).add(new go.PathSegment(go.PathSegment.Line,0,a-r)).add(new go.PathSegment(go.PathSegment.Line,o-r,a-r).close()))})),go.Shape.setFigureParameter("ThinCross",0,new e("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",(function(e,t,n){var i=e?e.parameter1:NaN;(isNaN(i)||i<0)&&(i=10);var r=Math.min(i,t)/2,o=t/2,a=n/2;return(new go.Geometry).add(new go.PathFigure(o-r,0,!0).add(new go.PathSegment(go.PathSegment.Line,o+r,0)).add(new go.PathSegment(go.PathSegment.Line,o+r,a-r)).add(new go.PathSegment(go.PathSegment.Line,t,a-r)).add(new go.PathSegment(go.PathSegment.Line,t,a+r)).add(new go.PathSegment(go.PathSegment.Line,o+r,a+r)).add(new go.PathSegment(go.PathSegment.Line,o+r,n)).add(new go.PathSegment(go.PathSegment.Line,o-r,n)).add(new go.PathSegment(go.PathSegment.Line,o-r,a+r)).add(new go.PathSegment(go.PathSegment.Line,0,a+r)).add(new go.PathSegment(go.PathSegment.Line,0,a-r)).add(new go.PathSegment(go.PathSegment.Line,o-r,a-r).close()))})),go.Shape.setFigureParameter("ThickX",0,new e("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",(function(e,t,n){var i=e?e.parameter1:NaN;if((isNaN(i)||i<0)&&(i=30),0===t||0===n)return(c=new go.Geometry(go.Geometry.Rectangle)).startX=0,c.startY=0,c.endX=t,c.endY=n,c;var r=t/2,o=n/2,a=Math.atan2(n,t),s=i-Math.min(Math.cos(a)*i/2,r),l=i-Math.min(Math.sin(a)*i/2,o),c=new go.Geometry,u=new go.PathFigure(s,0,!0);return c.add(u),u.add(new go.PathSegment(go.PathSegment.Line,r,.2*n)),u.add(new go.PathSegment(go.PathSegment.Line,t-s,0)),u.add(new go.PathSegment(go.PathSegment.Line,t,l)),u.add(new go.PathSegment(go.PathSegment.Line,.8*t,o)),u.add(new go.PathSegment(go.PathSegment.Line,t,n-l)),u.add(new go.PathSegment(go.PathSegment.Line,t-s,n)),u.add(new go.PathSegment(go.PathSegment.Line,r,.8*n)),u.add(new go.PathSegment(go.PathSegment.Line,s,n)),u.add(new go.PathSegment(go.PathSegment.Line,0,n-l)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,o)),u.add(new go.PathSegment(go.PathSegment.Line,0,l).close()),c})),go.Shape.setFigureParameter("ThinX",0,new e("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",(function(e,t,n){var i=e?e.parameter1:NaN;(isNaN(i)||i<0)&&(i=10);var r=new go.Geometry,o=new go.PathFigure(.1*t,0,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.1*n).close()),r})),go.Shape.setFigureParameter("SquareIBeam",0,new e("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.2);var r=new go.Geometry,o=new go.PathFigure(0,0,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,i*n)),o.add(new go.PathSegment(go.PathSegment.Line,(.5+i/2)*t,i*n)),o.add(new go.PathSegment(go.PathSegment.Line,(.5+i/2)*t,(1-i)*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,(1-i)*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,(1-i)*n)),o.add(new go.PathSegment(go.PathSegment.Line,(.5-i/2)*t,(1-i)*n)),o.add(new go.PathSegment(go.PathSegment.Line,(.5-i/2)*t,i*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,i*n).close()),r})),go.Shape.setFigureParameter("RoundedIBeam",0,new e("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.5);var r=new go.Geometry,o=new go.PathFigure(0,0,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,n,Math.abs(1-i)*t,.25*n,Math.abs(1-i)*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,0,i*t,.75*n,i*t,.25*n).close()),r})),go.Shape.defineFigureGenerator("HalfEllipse",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,c*t,0,t,(.5-c/2)*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,(.5+c/2)*n,c*t,n).close())).setSpots(0,.156,.844,.844)})),go.Shape.defineFigureGenerator("Crescent",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,0,t,n)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*t,.75*n,.5*t,.25*n).close())).setSpots(.311,.266,.744,.744)})),go.Shape.defineFigureGenerator("Heart",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,n,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*n,.1*t,.8*n,0,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.3*n,0,0,.45*t,0)).add(new go.PathSegment(go.PathSegment.Bezier,t,.3*n,.55*t,0,t,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,.5*n,.9*t,.8*n).close())).setSpots(.14,.29,.86,.78)})),go.Shape.defineFigureGenerator("Spade",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*t,.01*n)).add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,.6*t,.2*n,t,.25*n)).add(new go.PathSegment(go.PathSegment.Bezier,.55*t,.7*n,t,.8*n,.6*t,.8*n)).add(new go.PathSegment(go.PathSegment.Bezier,.75*t,n,.5*t,.75*n,.55*t,.95*n)).add(new go.PathSegment(go.PathSegment.Line,.25*t,n)).add(new go.PathSegment(go.PathSegment.Bezier,.45*t,.7*n,.45*t,.95*n,.5*t,.75*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.4*t,.8*n,0,.8*n)).add(new go.PathSegment(go.PathSegment.Bezier,.49*t,.01*n,0,.25*n,.4*t,.2*n).close())).setSpots(.14,.26,.86,.78)})),go.Shape.defineFigureGenerator("Club",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.4*t,.6*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.15*t,n,.5*t,.75*n,.45*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.6*t,.6*n,.55*t,.95*n,.5*t,.75*n));var o=.2,a=.3,s=0,l=o*c;return r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*t,(.5+o+s)*n,(.5-o+a)*t,(.5+l+s)*n,(.5-l+a)*t,(.5+o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o+a)*t,(.5+s)*n,(.5+l+a)*t,(.5+o+s)*n,(.5+o+a)*t,(.5+l+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*t,(.5-o+s)*n,(.5+o+a)*t,(.5-l+s)*n,(.5+l+a)*t,(.5-o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.65*t,.36771243*n,(.5-l+a)*t,(.5-o+s)*n,(.5-o+a+.05)*t,(.5-l+s-.02)*n)),a=0,s=-.3,l=(o=.2)*c,r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o+a)*t,(.5+s)*n,(.5+l+a)*t,(.5+o+s)*n,(.5+o+a)*t,(.5+l+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*t,(.5-o+s)*n,(.5+o+a)*t,(.5-l+s)*n,(.5+l+a)*t,(.5-o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5-o+a)*t,(.5+s)*n,(.5-l+a)*t,(.5-o+s)*n,(.5-o+a)*t,(.5-l+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5-l+a)*t,(.5+o+s)*n,(.5-o+a)*t,(.5+l+s)*n,(.5-l+a)*t,(.5+o+s)*n)),a=-.3,s=0,l=(o=.2)*c,r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*t,(.5-o+s)*n,(.5+o+a-.05)*t,(.5-l+s-.02)*n,(.5+l+a)*t,(.5-o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5-o+a)*t,(.5+s)*n,(.5-l+a)*t,(.5-o+s)*n,(.5-o+a)*t,(.5-l+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(.5+a)*t,(.5+o+s)*n,(.5-o+a)*t,(.5+l+s)*n,(.5-l+a)*t,(.5+o+s)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,.6*n,(.5+l+a)*t,(.5+o+s)*n,(.5+o+a)*t,(.5+l+s)*n).close()),i.setSpots(.06,.33,.93,.68),i})),go.Shape.defineFigureGenerator("YinYang",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,270,180,.5*t,.5*t,.5*t,.5*t)),r.add(new go.PathSegment(go.PathSegment.Arc,90,-180,.5*t,.75*t,.25*t,.25*t)),r.add(new go.PathSegment(go.PathSegment.Arc,90,180,.5*t,.25*t,.25*t,.25*t));var o=.1,a=.5,s=.25;return r.add(new go.PathSegment(go.PathSegment.Move,.6*t,s*n)),r.add(new go.PathSegment(go.PathSegment.Arc,0,-360,t*a,n*s,o*t,o*t).close()),r=new go.PathFigure(.5*t,0,!1),i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,270,-180,.5*t,.5*t,.5*t,.5*t)),s=.75,r=new go.PathFigure(.6*t,s*n,!0),i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,0,360,t*a,n*s,o*t,o*t).close()),i.defaultStretch=go.GraphObject.Uniform,i})),go.Shape.defineFigureGenerator("Peace",(function(e,t,n){var i=.8535533905932737,r=.5*t,o=.5*n;return(new go.Geometry).add(new go.PathFigure(r,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,r,o,r,o)).add(new go.PathSegment(go.PathSegment.Line,r,n)).add(new go.PathSegment(go.PathSegment.Move,r,o)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*t,i*n)).add(new go.PathSegment(go.PathSegment.Move,r,o)).add(new go.PathSegment(go.PathSegment.Line,i*t,i*n)))})),go.Shape.defineFigureGenerator("NotAllowed",(function(e,t,n){var o=new go.Geometry,s=.5*c,l=.5,u=.5,h=.5,d=new go.PathFigure(u*t,(h-l)*n);o.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,(u-l)*t,h*n,(u-s)*t,(h-l)*n,(u-l)*t,(h-s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h+l)*n,(u-l)*t,(h+s)*n,(u-s)*t,(h+l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(u+l)*t,h*n,(u+s)*t,(h+l)*n,(u+l)*t,(h+s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h-l)*n,(u+l)*t,(h-s)*n,(u+s)*t,(h-l)*n)),l=.4,s=.4*c;var p=i(),f=i(),g=i(),m=i();a(u,h-l,u+s,h-l,u+l,h-s,u+l,h,.42,p,f,g,m,m);var v=i(),y=i(),b=i();a(u,h-l,u+s,h-l,u+l,h-s,u+l,h,.58,m,m,b,v,y);var w=i(),x=i(),S=i();a(u,h+l,u-s,h+l,u-l,h+s,u-l,h,.42,w,x,S,m,m);var k=i(),_=i(),C=i();return a(u,h+l,u-s,h+l,u-l,h+s,u-l,h,.58,m,m,C,k,_),d.add(new go.PathSegment(go.PathSegment.Move,C.x*t,C.y*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(u-l)*t,h*n,k.x*t,k.y*n,_.x*t,_.y*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h-l)*n,(u-l)*t,(h-s)*n,(u-s)*t,(h-l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,g.x*t,g.y*n,p.x*t,p.y*n,f.x*t,f.y*n)),d.add(new go.PathSegment(go.PathSegment.Line,C.x*t,C.y*n).close()),d.add(new go.PathSegment(go.PathSegment.Move,S.x*t,S.y*n)),d.add(new go.PathSegment(go.PathSegment.Line,b.x*t,b.y*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(u+l)*t,h*n,v.x*t,v.y*n,y.x*t,y.y*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h+l)*n,(u+l)*t,(h+s)*n,(u+s)*t,(h+l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,S.x*t,S.y*n,w.x*t,w.y*n,x.x*t,x.y*n).close()),r(p),r(f),r(g),r(m),r(v),r(y),r(b),r(w),r(x),r(S),r(k),r(_),r(C),o.defaultStretch=go.GraphObject.Uniform,o})),go.Shape.defineFigureGenerator("Fragile",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*t,0)).add(new go.PathSegment(go.PathSegment.Line,.2*t,.15*n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.25*n)).add(new go.PathSegment(go.PathSegment.Line,.29*t,.33*n)).add(new go.PathSegment(go.PathSegment.Line,.35*t,.25*n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.15*n)).add(new go.PathSegment(go.PathSegment.Line,.4*t,0)).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*t,.5*n,t,.25*n,.75*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.55*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.45*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.45*t,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.5*n,0,.25*n).close()))})),go.Shape.setFigureParameter("HourGlass",0,new e("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",(function(e,t,n){var i=e?e.parameter1:NaN;(isNaN(i)||i<0)&&(i=30),i>t&&(i=t);var r=(t-i)/2,o=r+i;return(new go.Geometry).add(new go.PathFigure(o,.5*n).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n)).add(new go.PathSegment(go.PathSegment.Line,r,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,t,0).close()))})),go.Shape.defineFigureGenerator("Lightning",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,.55*n).add(new go.PathSegment(go.PathSegment.Line,.6*t,0)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.45*n)).add(new go.PathSegment(go.PathSegment.Line,t,.45*n)).add(new go.PathSegment(go.PathSegment.Line,.4*t,n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.55*n).close()))})),go.Shape.defineFigureGenerator("GenderMale",(function(e,t,o){var s=new go.Geometry,l=.4*c,u=.4,h=.5,d=.5,p=i(),f=i(),g=i(),m=i(),v=new go.PathFigure((h-u)*t,d*o,!1);s.add(v),v.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d-u)*o,(h-u)*t,(d-l)*o,(h-l)*t,(d-u)*o)),a(h,d-u,h+l,d-u,h+u,d-l,h+u,d,.44,g,m,f,p,p),v.add(new go.PathSegment(go.PathSegment.Bezier,f.x*t,f.y*o,g.x*t,g.y*o,m.x*t,m.y*o));var y=n(f.x,f.y);a(h,d-u,h+l,d-u,h+u,d-l,h+u,d,.56,p,p,f,g,m);var b=n(f.x,f.y);v.add(new go.PathSegment(go.PathSegment.Line,(.1*y.x+.855)*t,.1*y.y*o)),v.add(new go.PathSegment(go.PathSegment.Line,.85*t,.1*y.y*o)),v.add(new go.PathSegment(go.PathSegment.Line,.85*t,0)),v.add(new go.PathSegment(go.PathSegment.Line,t,0)),v.add(new go.PathSegment(go.PathSegment.Line,t,.15*o)),v.add(new go.PathSegment(go.PathSegment.Line,(.1*b.x+.9)*t,.15*o)),v.add(new go.PathSegment(go.PathSegment.Line,(.1*b.x+.9)*t,(.1*b.y+.05*.9)*o)),v.add(new go.PathSegment(go.PathSegment.Line,b.x*t,b.y*o)),v.add(new go.PathSegment(go.PathSegment.Bezier,(h+u)*t,d*o,g.x*t,g.y*o,m.x*t,m.y*o)),v.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d+u)*o,(h+u)*t,(d+l)*o,(h+l)*t,(d+u)*o)),v.add(new go.PathSegment(go.PathSegment.Bezier,(h-u)*t,d*o,(h-l)*t,(d+u)*o,(h-u)*t,(d+l)*o)),u=.35,l=.35*c;var w=new go.PathFigure(h*t,(d-u)*o,!1);s.add(w),w.add(new go.PathSegment(go.PathSegment.Bezier,(h-u)*t,d*o,(h-l)*t,(d-u)*o,(h-u)*t,(d-l)*o)),w.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d+u)*o,(h-u)*t,(d+l)*o,(h-l)*t,(d+u)*o)),w.add(new go.PathSegment(go.PathSegment.Bezier,(h+u)*t,d*o,(h+l)*t,(d+u)*o,(h+u)*t,(d+l)*o)),w.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d-u)*o,(h+u)*t,(d-l)*o,(h+l)*t,(d-u)*o));var x=new go.PathFigure((h-u)*t,d*o,!1);return s.add(x),r(p),r(f),r(g),r(m),r(y),r(b),s.spot1=new go.Spot(.202,.257),s.spot2=new go.Spot(.792,.739),s.defaultStretch=go.GraphObject.Uniform,s})),go.Shape.defineFigureGenerator("GenderFemale",(function(e,t,n){var i=new go.Geometry,r=.375,o=0,a=-.125,s=r*c,l=new go.PathFigure((.525+o)*t,(.5+r+a)*n,!1);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+r+o)*t,(.5+a)*n,(.5+s+o)*t,(.5+r+a)*n,(.5+r+o)*t,(.5+s+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o)*t,(.5-r+a)*n,(.5+r+o)*t,(.5-s+a)*n,(.5+s+o)*t,(.5-r+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5-r+o)*t,(.5+a)*n,(.5-s+o)*t,(.5-r+a)*n,(.5-r+o)*t,(.5-s+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.475+o)*t,(.5+r+a)*n,(.5-r+o)*t,(.5+s+a)*n,(.5-s+o)*t,(.5+r+a)*n)),l.add(new go.PathSegment(go.PathSegment.Line,.475*t,.85*n)),l.add(new go.PathSegment(go.PathSegment.Line,.425*t,.85*n)),l.add(new go.PathSegment(go.PathSegment.Line,.425*t,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.475*t,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.475*t,n)),l.add(new go.PathSegment(go.PathSegment.Line,.525*t,n)),l.add(new go.PathSegment(go.PathSegment.Line,.525*t,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.575*t,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.575*t,.85*n)),l.add(new go.PathSegment(go.PathSegment.Line,.525*t,.85*n).close()),o=0,a=-.125,s=(r=.325)*c;l=new go.PathFigure((.5+r+o)*t,(.5+a)*n,!1);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o)*t,(.5+r+a)*n,(.5+r+o)*t,(.5+s+a)*n,(.5+s+o)*t,(.5+r+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5-r+o)*t,(.5+a)*n,(.5-s+o)*t,(.5+r+a)*n,(.5-r+o)*t,(.5+s+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o)*t,(.5-r+a)*n,(.5-r+o)*t,(.5-s+a)*n,(.5-s+o)*t,(.5-r+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(.5+r+o)*t,(.5+a)*n,(.5+s+o)*t,(.5-r+a)*n,(.5+r+o)*t,(.5-s+a)*n));l=new go.PathFigure((.525+o)*t,(.5+r+a)*n,!1);return i.add(l),i.spot1=new go.Spot(.232,.136),i.spot2=new go.Spot(.682,.611),i.defaultStretch=go.GraphObject.Uniform,i})),go.Shape.defineFigureGenerator("LogicImplies",(function(e,t,n){var i=e?e.parameter1:NaN;return isNaN(i)&&(i=.2),(new go.Geometry).add(new go.PathFigure((1-i)*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*t,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n))).setSpots(0,0,.8,.5)})),go.Shape.defineFigureGenerator("LogicIff",(function(e,t,n){var i=e?e.parameter1:NaN;return isNaN(i)&&(i=.2),(new go.Geometry).add(new go.PathFigure((1-i)*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,(1-i)*t,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Move,i*t,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,i*t,n))).setSpots(.2,0,.8,.5)})),go.Shape.defineFigureGenerator("LogicNot",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)))})),go.Shape.defineFigureGenerator("LogicAnd",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n))).setSpots(.25,.5,.75,1)})),go.Shape.defineFigureGenerator("LogicOr",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,t,0))).setSpots(.219,0,.78,.409)})),go.Shape.defineFigureGenerator("LogicXor",(function(e,t,n){var i=(new go.Geometry).add(new go.PathFigure(.5*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*t,.5*n,.5*t,.5*n)));return i.defaultStretch=go.GraphObject.Uniform,i})),go.Shape.defineFigureGenerator("LogicTruth",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,.5*t,0)).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)))})),go.Shape.defineFigureGenerator("LogicFalsity",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Move,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,0)))})),go.Shape.defineFigureGenerator("LogicThereExists",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Move,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n)))})),go.Shape.defineFigureGenerator("LogicForAll",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,.25*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.75*t,.5*n))).setSpots(.25,0,.75,.5)})),go.Shape.defineFigureGenerator("LogicIsDefinedAs",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Move,0,n)).add(new go.PathSegment(go.PathSegment.Line,t,n))).setSpots(.01,.01,.99,.49)})),go.Shape.defineFigureGenerator("LogicIntersect",(function(e,t,n){var i=.5;return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,0,i*n)).add(new go.PathSegment(go.PathSegment.Arc,180,180,i*t,i*n,i*t,i*n)).add(new go.PathSegment(go.PathSegment.Line,t,n))).setSpots(0,.5,1,1)})),go.Shape.defineFigureGenerator("LogicUnion",(function(e,t,n){var i=.5;return(new go.Geometry).add(new go.PathFigure(t,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,i*n)).add(new go.PathSegment(go.PathSegment.Arc,0,180,i*t,i*n,i*t,i*n)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)})),go.Shape.setFigureParameter("Arrow",0,new e("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new e("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.3);var s=e?e.parameter2:NaN;isNaN(s)&&(s=.3);var l=(1-a)*t,c=(.5-s/2)*n,u=(.5+s/2)*n,h=new go.Geometry,d=new go.PathFigure(0,c,!0);h.add(d),d.add(new go.PathSegment(go.PathSegment.Line,l,c)),d.add(new go.PathSegment(go.PathSegment.Line,l,0)),d.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),d.add(new go.PathSegment(go.PathSegment.Line,l,n)),d.add(new go.PathSegment(go.PathSegment.Line,l,u)),d.add(new go.PathSegment(go.PathSegment.Line,0,u).close()),h.spot1=new go.Spot(0,c/n);var p=o(0,u/n,1,u/n,l/t,1,1,.5,i());return h.spot2=new go.Spot(p.x,p.y),r(p),h})),go.Shape.setFigureParameter("Arrow2",0,new e("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new e("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=30),a>t&&(a=t);var s=e?e.parameter2:NaN;isNaN(s)&&(s=30);var l=t-a,c=(n-(s=Math.min(s,n/2)))/2,u=c+s,h=new go.Geometry,d=new go.PathFigure(0,c,!0);h.add(d),d.add(new go.PathSegment(go.PathSegment.Line,l,c)),d.add(new go.PathSegment(go.PathSegment.Line,l,0)),d.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),d.add(new go.PathSegment(go.PathSegment.Line,l,n)),d.add(new go.PathSegment(go.PathSegment.Line,l,u)),d.add(new go.PathSegment(go.PathSegment.Line,0,u).close()),h.spot1=new go.Spot(0,c/n);var p=o(0,u/n,1,u/n,l/t,1,1,.5,i());return h.spot2=new go.Spot(p.x,p.y),r(p),h})),go.Shape.defineFigureGenerator("Chevron",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n).close()),i})),go.Shape.defineFigureGenerator("DoubleArrow",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,.214*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,.786*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,1*n).close()),i})),go.Shape.setFigureParameter("DoubleEndArrow",0,new e("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.3);var s=(.5-a/2)*n,l=(.5+a/2)*n,c=new go.Geometry,u=new go.PathFigure(t,.5*n,!0);c.add(u),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,l)),u.add(new go.PathSegment(go.PathSegment.Line,.3*t,l)),u.add(new go.PathSegment(go.PathSegment.Line,.3*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),u.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),u.add(new go.PathSegment(go.PathSegment.Line,.3*t,s)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,s)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close());var h=o(0,.5,.3,0,0,s/n,.1,s/n,i());return c.spot1=new go.Spot(h.x,h.y),h=o(.7,1,1,.5,0,l/n,1,l/n,h),c.spot2=new go.Spot(h.x,h.y),r(h),c})),go.Shape.setFigureParameter("DoubleEndArrow2",0,new e("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new e("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=40);var s=e?e.parameter2:NaN;isNaN(s)&&(s=100);var l=(n-a)/2,c=l+a,u=(n-s)/2,h=u+s;(a>n||s>n)&&(s>a?(c=(l=(n-(a=a*n/s))/2)+a,u=0,h=n):(l=0,c=n,u=0,h=n));var d=new go.Geometry,p=new go.PathFigure(t,.5*n,!0);d.add(p),p.add(new go.PathSegment(go.PathSegment.Line,.7*t,h)),p.add(new go.PathSegment(go.PathSegment.Line,.7*t,c)),p.add(new go.PathSegment(go.PathSegment.Line,.3*t,c)),p.add(new go.PathSegment(go.PathSegment.Line,.3*t,h)),p.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),p.add(new go.PathSegment(go.PathSegment.Line,.3*t,u)),p.add(new go.PathSegment(go.PathSegment.Line,.3*t,l)),p.add(new go.PathSegment(go.PathSegment.Line,.7*t,l)),p.add(new go.PathSegment(go.PathSegment.Line,.7*t,u).close());var f=o(0,.5,.3,u/n,0,l/n,1,l/n,i());return d.spot1=new go.Spot(f.x,f.y),f=o(.7,h/n,1,.5,0,c/n,1,c/n,f),d.spot2=new go.Spot(f.x,f.y),r(f),d})),go.Shape.setFigureParameter("IBeamArrow",0,new e("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.3);var s=(.5-a/2)*n,l=(.5+a/2)*n,c=new go.Geometry,u=new go.PathFigure(t,.5*n,!0);c.add(u),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,l)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,l)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,0,n)),u.add(new go.PathSegment(go.PathSegment.Line,0,0)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,0)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,s)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,s)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),c.spot1=new go.Spot(0,s/n);var h=o(.7,1,1,.5,0,l/n,1,l/n,i());return c.spot2=new go.Spot(h.x,h.y),r(h),c})),go.Shape.setFigureParameter("IBeamArrow2",0,new e("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new e("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=40);var s=e?e.parameter2:NaN;isNaN(s)&&(s=100);var l=(n-a)/2,c=l+a,u=(n-s)/2,h=u+s;(a>n||s>n)&&(s>a?(c=(l=(n-(a=a*n/s))/2)+a,u=0,h=n):(l=0,c=n,u=0,h=n));var d=new go.Geometry,p=new go.PathFigure(t,.5*n,!0);d.add(p),p.add(new go.PathSegment(go.PathSegment.Line,.7*t,h)),p.add(new go.PathSegment(go.PathSegment.Line,.7*t,c)),p.add(new go.PathSegment(go.PathSegment.Line,.2*t,c)),p.add(new go.PathSegment(go.PathSegment.Line,.2*t,h)),p.add(new go.PathSegment(go.PathSegment.Line,0,h)),p.add(new go.PathSegment(go.PathSegment.Line,0,u)),p.add(new go.PathSegment(go.PathSegment.Line,.2*t,u)),p.add(new go.PathSegment(go.PathSegment.Line,.2*t,l)),p.add(new go.PathSegment(go.PathSegment.Line,.7*t,l)),p.add(new go.PathSegment(go.PathSegment.Line,.7*t,u).close()),d.spot1=new go.Spot(0,l/n);var f=o(.7,h/n,1,.5,0,c/n,1,c/n,i());return d.spot2=new go.Spot(f.x,f.y),r(f),d})),go.Shape.setFigureParameter("Pointer",0,new e("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.1);var s=new go.Geometry,l=new go.PathFigure(t,.5*n,!0);s.add(l),l.add(new go.PathSegment(go.PathSegment.Line,0,n)),l.add(new go.PathSegment(go.PathSegment.Line,a*t,.5*n)),l.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),s.spot1=new go.Spot(a,.35);var c=o(.2,.65,1,.65,0,1,1,.5,i());return s.spot2=new go.Spot(c.x,c.y),r(c),s})),go.Shape.setFigureParameter("RoundedPointer",0,new e("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.3);var s=new go.Geometry,l=new go.PathFigure(t,.5*n,!0);s.add(l),l.add(new go.PathSegment(go.PathSegment.Line,0,n)),l.add(new go.PathSegment(go.PathSegment.Bezier,0,0,a*t,.75*n,a*t,.25*n).close()),s.spot1=new go.Spot(a,.35);var c=o(0,.65,1,.65,0,1,1,.5,i());return s.spot2=new go.Spot(c.x,c.y),r(c),s})),go.Shape.setFigureParameter("SplitEndArrow",0,new e("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.4);var s=(.5-a/2)*n,l=(.5+a/2)*n,c=new go.Geometry,u=new go.PathFigure(t,.5*n,!0);c.add(u),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,l)),u.add(new go.PathSegment(go.PathSegment.Line,0,l)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),u.add(new go.PathSegment(go.PathSegment.Line,0,s)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,s)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),c.spot1=new go.Spot(.2,.3);var h=o(.7,1,1,.5,0,l/n,1,l/n,i());return c.spot2=new go.Spot(h.x,h.y),r(h),c})),go.Shape.setFigureParameter("SplitEndArrow2",0,new e("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=50);var s=(n-a)/2,l=s+a;a>n&&(s=0,l=n);var c=new go.Geometry,u=new go.PathFigure(t,.5*n,!0);c.add(u),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,l)),u.add(new go.PathSegment(go.PathSegment.Line,0,l)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),u.add(new go.PathSegment(go.PathSegment.Line,0,s)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,s)),u.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),c.spot1=new go.Spot(.2,s/n);var h=o(.7,1,1,.5,0,l/n,1,l/n,i());return c.spot2=new go.Spot(h.x,h.y),r(h),c})),go.Shape.setFigureParameter("SquareArrow",0,new e("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.7);var r=new go.Geometry,o=new go.PathFigure(t,.5*n,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,i*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,i*t,0).close()),r.spot1=go.Spot.TopLeft,r.spot2=new go.Spot(i,1),r})),go.Shape.defineFigureGenerator("Cone1",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.1*c,a=new go.PathFigure(0,.9*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),a.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.9+o)*n,(.5+r)*t,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-r)*t,n,0,(.9+o)*n).close()),i.spot1=new go.Spot(.25,.5),i.spot2=new go.Spot(.75,.97),i})),go.Shape.defineFigureGenerator("Cone2",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.9*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.9*n,(1-.85/.9)*t,n,.85/.9*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,.9*n).close());var o=new go.PathFigure(0,.9*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.9*n,(1-.85/.9)*t,.8*n,.85/.9*t,.8*n)),i.spot1=new go.Spot(.25,.5),i.spot2=new go.Spot(.75,.82),i})),go.Shape.defineFigureGenerator("Cube1",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.85*n).close());var o=new go.PathFigure(.5*t,n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.15*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),i.spot1=new go.Spot(0,.3),i.spot2=new go.Spot(.5,.85),i})),go.Shape.defineFigureGenerator("Cube2",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.3*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,0).close());var o=new go.PathFigure(0,.3*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Move,.7*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),i.spot1=new go.Spot(0,.3),i.spot2=new go.Spot(.7,1),i})),go.Shape.defineFigureGenerator("Cylinder1",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=5),i=Math.min(i,n/3);var r=new go.Geometry,o=.5*c,a=new go.PathFigure(0,i,!0);r.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,c*i,(.5-o)*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,1*t,i,(.5+o)*t,0,1*t,c*i)),a.add(new go.PathSegment(go.PathSegment.Line,t,n-i)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,1*n,1*t,n-c*i,(.5+o)*t,1*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,n-i,(.5-o)*t,1*n,0,n-c*i)),a.add(new go.PathSegment(go.PathSegment.Line,0,i));var s=new go.PathFigure(t,i,!1);return r.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,2*i,1*t,2*i-c*i,(.5+o)*t,2*i)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,i,(.5-o)*t,2*i,0,2*i-c*i)),r.spot1=new go.Spot(0,0,0,2*i),r.spot2=new go.Spot(1,1),r})),go.Shape.defineFigureGenerator("Cylinder2",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=5),i=Math.min(i,n/3);var r=new go.Geometry,o=.5*c,a=new go.PathFigure(0,n-i,!0);r.add(a),a.add(new go.PathSegment(go.PathSegment.Line,0,i)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,c*i,(.5-o)*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,i,(.5+o)*t,0,t,c*i)),a.add(new go.PathSegment(go.PathSegment.Line,t,n-i)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,n-c*i,(.5+o)*t,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,n-i,(.5-o)*t,n,0,n-c*i));var s=new go.PathFigure(0,n-i,!1);return r.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n-2*i,0,n-i-c*i,(.5-o)*t,n-2*i)),s.add(new go.PathSegment(go.PathSegment.Bezier,t,n-i,(.5+o)*t,n-2*i,t,n-i-c*i)),r.spot1=new go.Spot(0,0),r.spot2=new go.Spot(1,1,0,-2*i),r})),go.Shape.defineFigureGenerator("Cylinder3",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=5),i=Math.min(i,t/3);var r=new go.Geometry,o=.5*c,a=new go.PathFigure(i,0,!0);r.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t-i,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,t-c*i,0,t,(.5-o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,t-i,n,t,(.5+o)*n,t-c*i,n)),a.add(new go.PathSegment(go.PathSegment.Line,i,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,c*i,n,0,(.5+o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,i,0,0,(.5-o)*n,c*i,0));var s=new go.PathFigure(i,0,!1);return r.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,2*i,.5*n,i+c*i,0,2*i,(.5-o)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,i,n,2*i,(.5+o)*n,i+c*i,n)),r.spot1=new go.Spot(0,0,2*i,0),r.spot2=new go.Spot(1,1),r})),go.Shape.defineFigureGenerator("Cylinder4",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=5),i=Math.min(i,t/3);var r=new go.Geometry,o=.5*c,a=new go.PathFigure(t-i,0,!0);r.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,t-c*i,0,t,(.5-o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,t-i,n,t,(.5+o)*n,t-c*i,n)),a.add(new go.PathSegment(go.PathSegment.Line,i,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,c*i,n,0,(.5+o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,i,0,0,(.5-o)*n,c*i,0)),a.add(new go.PathSegment(go.PathSegment.Line,t-i,0));var s=new go.PathFigure(t-i,0,!1);return r.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,t-2*i,.5*n,t-i-c*i,0,t-2*i,(.5-o)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,t-i,n,t-2*i,(.5+o)*n,t-i-c*i,n)),r.spot1=new go.Spot(0,0),r.spot2=new go.Spot(1,1,-2*i,0),r})),go.Shape.defineFigureGenerator("Prism1",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.25*t,.25*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var o=new go.PathFigure(.25*t,.25*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),i.spot1=new go.Spot(.408,.172),i.spot2=new go.Spot(.833,.662),i})),go.Shape.defineFigureGenerator("Prism2",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.25*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var o=new go.PathFigure(0,n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Move,0,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.5*n)),i.spot1=new go.Spot(.25,.5),i.spot2=new go.Spot(.75,.75),i})),go.Shape.defineFigureGenerator("Pyramid1",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.75*n).close());var o=new go.PathFigure(.5*t,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),i.spot1=new go.Spot(.25,.367),i.spot2=new go.Spot(.75,.875),i})),go.Shape.defineFigureGenerator("Pyramid2",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.85*n).close());var o=new go.PathFigure(.5*t,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.85*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),i.spot1=new go.Spot(.25,.367),i.spot2=new go.Spot(.75,.875),i})),go.Shape.defineFigureGenerator("Actor",(function(e,t,n){var i=new go.Geometry,r=.2,o=.1,a=c*r,s=c*o,l=.5,u=.1,h=new go.PathFigure(l*t,(u+o)*n,!0);i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,(l-r)*t,u*n,(l-a)*t,(u+o)*n,(l-r)*t,(u+s)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u-o)*n,(l-r)*t,(u-s)*n,(l-a)*t,(u-o)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(l+r)*t,u*n,(l+a)*t,(u-o)*n,(l+r)*t,(u-s)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u+o)*n,(l+r)*t,(u+s)*n,(l+a)*t,(u+o)*n));var d=.05,p=c*d;l=.05,u=.25;var f=new go.PathFigure(.5*t,.2*n,!0);return i.add(f),f.add(new go.PathSegment(go.PathSegment.Line,.95*t,.2*n)),l=.95,u=.25,f.add(new go.PathSegment(go.PathSegment.Bezier,(l+d)*t,u*n,(l+p)*t,(u-d)*n,(l+d)*t,(u-p)*n)),f.add(new go.PathSegment(go.PathSegment.Line,t,.6*n)),f.add(new go.PathSegment(go.PathSegment.Line,.85*t,.6*n)),f.add(new go.PathSegment(go.PathSegment.Line,.85*t,.35*n)),p=c*(d=.025),l=.825,u=.35,f.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u-d)*n,(l+d)*t,(u-p)*n,(l+p)*t,(u-d)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(l-d)*t,u*n,(l-p)*t,(u-d)*n,(l-d)*t,(u-p)*n)),f.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),f.add(new go.PathSegment(go.PathSegment.Line,.55*t,n)),f.add(new go.PathSegment(go.PathSegment.Line,.55*t,.7*n)),p=c*(d=.05),l=.5,u=.7,f.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u-d)*n,(l+d)*t,(u-p)*n,(l+p)*t,(u-d)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(l-d)*t,u*n,(l-p)*t,(u-d)*n,(l-d)*t,(u-p)*n)),f.add(new go.PathSegment(go.PathSegment.Line,.45*t,n)),f.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),f.add(new go.PathSegment(go.PathSegment.Line,.2*t,.35*n)),p=c*(d=.025),l=.175,u=.35,f.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u-d)*n,(l+d)*t,(u-p)*n,(l+p)*t,(u-d)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(l-d)*t,u*n,(l-p)*t,(u-d)*n,(l-d)*t,(u-p)*n)),f.add(new go.PathSegment(go.PathSegment.Line,.15*t,.6*n)),f.add(new go.PathSegment(go.PathSegment.Line,0,.6*n)),f.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),p=c*(d=.05),l=.05,u=.25,f.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u-d)*n,(l-d)*t,(u-p)*n,(l-p)*t,(u-d)*n)),f.add(new go.PathSegment(go.PathSegment.Line,.5*t,.2*n)),i.spot1=new go.Spot(.2,.2),i.spot2=new go.Spot(.8,.65),i})),go.Shape.setFigureParameter("Card",0,new e("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.2);var r=new go.Geometry,o=new go.PathFigure(t,0,!0);return r.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,i*n)),o.add(new go.PathSegment(go.PathSegment.Line,i*t,0).close()),r.spot1=new go.Spot(0,i),r.spot2=go.Spot.BottomRight,r})),go.Shape.defineFigureGenerator("Collate",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,.5*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n));var o=new go.PathFigure(.5*t,.5*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),i.spot1=new go.Spot(.25,0),i.spot2=new go.Spot(.75,.25),i})),go.Shape.defineFigureGenerator("CreateRequest",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure(0,r*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t,r*n)),a.add(new go.PathSegment(go.PathSegment.Move,0,(1-r)*n)),a.add(new go.PathSegment(go.PathSegment.Line,t,(1-r)*n)),i})),go.Shape.defineFigureGenerator("Database",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.1*c,a=new go.PathFigure(t,.1*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.9+o)*n,(.5+r)*t,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-r)*t,n,0,(.9+o)*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,(.1-o)*n,(.5-r)*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,.1*n,(.5+r)*t,0,t,(.1-o)*n));var s=new go.PathFigure(t,.1*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,t,(.1+o)*n,(.5+r)*t,.2*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*n,(.5-r)*t,.2*n,0,(.1+o)*n)),s.add(new go.PathSegment(go.PathSegment.Move,t,.2*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.3*n,t,(.2+o)*n,(.5+r)*t,.3*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*n,(.5-r)*t,.3*n,0,(.2+o)*n)),s.add(new go.PathSegment(go.PathSegment.Move,t,.3*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.4*n,t,(.3+o)*n,(.5+r)*t,.4*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*n,(.5-r)*t,.4*n,0,(.3+o)*n)),i.spot1=new go.Spot(0,.4),i.spot2=new go.Spot(1,.9),i})),go.Shape.defineFigureGenerator("DataStorage",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.75*t,n,t,0,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.9*n,.25*t,.1*n).close()),i.spot1=new go.Spot(.226,0),i.spot2=new go.Spot(.81,1),i})),go.Shape.defineFigureGenerator("DiskStorage",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.1*c,a=new go.PathFigure(t,.1*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.9+o)*n,(.5+r)*t,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-r)*t,n,0,(.9+o)*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,(.1-o)*n,(.5-r)*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,.1*n,(.5+r)*t,0,t,(.1-o)*n));var s=new go.PathFigure(t,.1*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,t,(.1+o)*n,(.5+r)*t,.2*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*n,(.5-r)*t,.2*n,0,(.1+o)*n)),s.add(new go.PathSegment(go.PathSegment.Move,t,.2*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.3*n,t,(.2+o)*n,(.5+r)*t,.3*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*n,(.5-r)*t,.3*n,0,(.2+o)*n)),i.spot1=new go.Spot(0,.3),i.spot2=new go.Spot(1,.9),i})),go.Shape.defineFigureGenerator("Display",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.25*t,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.75*t,n,t,0,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close()),i.spot1=new go.Spot(.25,0),i.spot2=new go.Spot(.75,1),i})),go.Shape.defineFigureGenerator("DividedEvent",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)?r=.2:r<.15&&(r=.15);var o=.2*c,a=new go.PathFigure(0,.2*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,0,(.2-o)*n,(.2-o)*t,0)),a.add(new go.PathSegment(go.PathSegment.Line,.8*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,.2*n,(.8+o)*t,0,t,(.2-o)*n)),a.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,n,t,(.8+o)*n,(.8+o)*t,n)),a.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*n,(.2-o)*t,n,0,(.8+o)*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.2*n));var s=new go.PathFigure(0,r*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,t,r*n)),i})),go.Shape.defineFigureGenerator("DividedProcess",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;(isNaN(r)||r<.1)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure(0,r*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t,r*n)),i})),go.Shape.defineFigureGenerator("Document",(function(e,t,n){var i=new go.Geometry;n/=.8;var r=new go.PathFigure(0,.7*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*t,.4*n,.5*t,n).close()),i.spot1=go.Spot.TopLeft,i.spot2=new go.Spot(1,.6),i})),go.Shape.defineFigureGenerator("ExternalOrganization",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;(isNaN(r)||r<.2)&&(r=.2);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure(r*t,0,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,0,r*n)),a.add(new go.PathSegment(go.PathSegment.Move,t,r*n)),a.add(new go.PathSegment(go.PathSegment.Line,(1-r)*t,0)),a.add(new go.PathSegment(go.PathSegment.Move,0,(1-r)*n)),a.add(new go.PathSegment(go.PathSegment.Line,r*t,n)),a.add(new go.PathSegment(go.PathSegment.Move,(1-r)*t,n)),a.add(new go.PathSegment(go.PathSegment.Line,t,(1-r)*n)),i})),go.Shape.defineFigureGenerator("ExternalProcess",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close());var o=new go.PathFigure(.1*t,.4*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Move,.9*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Move,.6*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Move,.4*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.9*n)),i.spot1=new go.Spot(.25,.25),i.spot2=new go.Spot(.75,.75),i})),go.Shape.defineFigureGenerator("File",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var o=new go.PathFigure(.75*t,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),i.spot1=new go.Spot(0,.25),i.spot2=go.Spot.BottomRight,i})),go.Shape.defineFigureGenerator("Interrupt",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(t,.5*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n));var o=new go.PathFigure(t,.5*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,n));var a=new go.PathFigure(t,.5*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t,0)),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.5,.75),i})),go.Shape.defineFigureGenerator("InternalStorage",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN,o=e?e.parameter2:NaN;isNaN(r)&&(r=.1),isNaN(o)&&(o=.1);var a=new go.PathFigure(0,0,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t,0)),a.add(new go.PathSegment(go.PathSegment.Line,t,n)),a.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var s=new go.PathFigure(r*t,0,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,r*t,n)),s.add(new go.PathSegment(go.PathSegment.Move,0,o*n)),s.add(new go.PathSegment(go.PathSegment.Line,t,o*n)),i})),go.Shape.defineFigureGenerator("Junction",(function(e,t,n){var i=new go.Geometry,r=1/Math.SQRT2,o=(1-1/Math.SQRT2)/2,a=.5*c,s=.5,l=new go.PathFigure(t,s*n,!0);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,s*t,n,t,(s+a)*n,(s+a)*t,n)),l.add(new go.PathSegment(go.PathSegment.Bezier,0,s*n,(s-a)*t,n,0,(s+a)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,s*t,0,0,(s-a)*n,(s-a)*t,0)),l.add(new go.PathSegment(go.PathSegment.Bezier,t,s*n,(s+a)*t,0,t,(s-a)*n));var u=new go.PathFigure((o+r)*t,(o+r)*n,!1);return i.add(u),u.add(new go.PathSegment(go.PathSegment.Line,o*t,o*n)),u.add(new go.PathSegment(go.PathSegment.Move,o*t,(o+r)*n)),u.add(new go.PathSegment(go.PathSegment.Line,(o+r)*t,o*n)),i})),go.Shape.defineFigureGenerator("LinedDocument",(function(e,t,n){var i=new go.Geometry;n/=.8;var r=new go.PathFigure(0,.7*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*t,.4*n,.5*t,n).close());var o=new go.PathFigure(.1*t,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.75*n)),i.spot1=new go.Spot(.1,0),i.spot2=new go.Spot(1,.6),i})),go.Shape.defineFigureGenerator("LoopLimit",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n).close()),i.spot1=new go.Spot(0,.25),i.spot2=go.Spot.BottomRight,i})),go.Shape.defineFigureGenerator("MagneticTape",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.5,a=new go.PathFigure(.5*t,n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,0,o*n,(o-r)*t,n,0,(o+r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,o*t,0,0,(o-r)*n,(o-r)*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,o*n,(o+r)*t,0,t,(o-r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.6*t,.9*n,t,(o+r)*n,(o+r)*t,.9*n)),a.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),a.add(new go.PathSegment(go.PathSegment.Line,t,n)),a.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),i.spot1=new go.Spot(.15,.15),i.spot2=new go.Spot(.85,.8),i})),go.Shape.defineFigureGenerator("ManualInput",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(t,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.25*n).close()),i.spot1=new go.Spot(0,.25),i.spot2=go.Spot.BottomRight,i})),go.Shape.defineFigureGenerator("MessageFromUser",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)&&(r=.7);var o=new go.PathFigure(0,0,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,r*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=go.Spot.TopLeft,i})),go.Shape.defineFigureGenerator("MicroformProcessing",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)&&(r=.25);var o=new go.PathFigure(0,0,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,r*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,(1-r)*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i})),go.Shape.defineFigureGenerator("MicroformRecording",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(1,.75),i})),go.Shape.defineFigureGenerator("MultiDocument",(function(e,t,n){var i=new go.Geometry;n/=.8;var r=new go.PathFigure(t,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,.44*n,.96*t,.47*n,.93*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.54*n,.86*t,.57*n,.83*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.4*t,.4*n,.4*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,0).close());var o=new go.PathFigure(.1*t,.2*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.54*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.44*n)),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.8,.77),i})),go.Shape.defineFigureGenerator("MultiProcess",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.1*t,.1*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,.2*n).close());var o=new go.PathFigure(.2*t,.1*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Move,.1*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.9*n)),i.spot1=new go.Spot(0,.2),i.spot2=new go.Spot(.8,1),i})),go.Shape.defineFigureGenerator("OfflineStorage",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n).close());var a=new go.PathFigure(.5*r*t,r*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,(1-.5*r)*t,r*n)),i})),go.Shape.defineFigureGenerator("OffPageConnector",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=go.Spot.TopLeft,i.spot2=new go.Spot(.75,1),i})),go.Shape.defineFigureGenerator("Or",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.5,a=new go.PathFigure(t,o*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,o*t,n,t,(o+r)*n,(o+r)*t,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,o*n,(o-r)*t,n,0,(o+r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,o*t,0,0,(o-r)*n,(o-r)*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,o*n,(o+r)*t,0,t,(o-r)*n));var s=new go.PathFigure(t,.5*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),s.add(new go.PathSegment(go.PathSegment.Move,.5*t,n)),s.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),i})),go.Shape.defineFigureGenerator("PaperTape",(function(e,t,n){var i=new go.Geometry;n/=.8;var r=new go.PathFigure(0,.7*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.3*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.3*n,.5*t,.6*n,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*t,.4*n,.5*t,n).close()),i.spot1=new go.Spot(0,.49),i.spot2=new go.Spot(1,.75),i})),go.Shape.defineFigureGenerator("PrimitiveFromCall",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN,o=e?e.parameter2:NaN;isNaN(r)&&(r=.1),isNaN(o)&&(o=.3);var a=new go.PathFigure(0,0,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t,0)),a.add(new go.PathSegment(go.PathSegment.Line,(1-o)*t,.5*n)),a.add(new go.PathSegment(go.PathSegment.Line,t,n)),a.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i})),go.Shape.defineFigureGenerator("PrimitiveToCall",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN,o=e?e.parameter2:NaN;isNaN(r)&&(r=.1),isNaN(o)&&(o=.3);var a=new go.PathFigure(0,0,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,(1-o)*t,0)),a.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),a.add(new go.PathSegment(go.PathSegment.Line,(1-o)*t,n)),a.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i})),go.Shape.defineFigureGenerator("Procedure",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure((1-r)*t,0,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,(1-r)*t,n)),a.add(new go.PathSegment(go.PathSegment.Move,r*t,0)),a.add(new go.PathSegment(go.PathSegment.Line,r*t,n)),i})),go.Shape.defineFigureGenerator("Process",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var a=new go.PathFigure(r*t,0,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,r*t,n)),i.spot2=go.Spot.BottomRight,i})),go.Shape.defineFigureGenerator("Sort",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close());var o=new go.PathFigure(0,.5*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),i.spot1=new go.Spot(.25,.25),i.spot2=new go.Spot(.75,.5),i})),go.Shape.defineFigureGenerator("Start",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)&&(r=.25);var o=new go.PathFigure(r*t,0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*t,.5*n,.25*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*t,.5*n,.25*t,.5*n));var a=new go.PathFigure(r*t,0,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,r*t,n)),a.add(new go.PathSegment(go.PathSegment.Move,(1-r)*t,0)),a.add(new go.PathSegment(go.PathSegment.Line,(1-r)*t,n)),i.spot1=new go.Spot(r,0),i.spot2=new go.Spot(1-r,1),i})),go.Shape.defineFigureGenerator("Terminator",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.25*t,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*t,.5*n,.25*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*t,.5*n,.25*t,.5*n)),i.spot1=new go.Spot(.23,0),i.spot2=new go.Spot(.77,1),i})),go.Shape.defineFigureGenerator("TransmittalTape",(function(e,t,n){var i=new go.Geometry,r=e?e.parameter1:NaN;isNaN(r)&&(r=.1);var o=new go.PathFigure(0,0,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,(1-r)*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,(1-r)*n).close()),i.spot1=go.Spot.TopLeft,i})),go.Shape.defineFigureGenerator("AndGate",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=new go.PathFigure(0,0,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,(.5+r)*t,0,t,(.5-r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.5+r)*n,(.5+r)*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=go.Spot.TopLeft,i.spot2=new go.Spot(.55,1),i})),go.Shape.defineFigureGenerator("Buffer",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.5,.75),i})),go.Shape.defineFigureGenerator("Clock",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.5,a=new go.PathFigure(t,o*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,o*t,n,t,(o+r)*n,(o+r)*t,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,o*n,(o-r)*t,n,0,(o+r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,o*t,0,0,(o-r)*n,(o-r)*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,o*n,(o+r)*t,0,t,(o-r)*n));var s=new go.PathFigure(t,o*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,t,o*n));var l=new go.PathFigure(.8*t,.75*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.8*t,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.6*t,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.6*t,.75*n)),l.add(new go.PathSegment(go.PathSegment.Line,.4*t,.75*n)),l.add(new go.PathSegment(go.PathSegment.Line,.4*t,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.2*t,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.2*t,.75*n)),i})),go.Shape.defineFigureGenerator("Ground",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Move,.2*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Move,.3*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Move,.4*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,n)),i})),go.Shape.defineFigureGenerator("Inverter",(function(e,t,n){var i=new go.Geometry,r=.1*c,o=.9,a=.5,s=new go.PathFigure(.8*t,.5*n,!0);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,0,n)),s.add(new go.PathSegment(go.PathSegment.Line,0,0)),s.add(new go.PathSegment(go.PathSegment.Line,.8*t,.5*n));var l=new go.PathFigure(1*t,a*n,!0);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,o*t,.6*n,1*t,(a+r)*n,(o+r)*t,.6*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,a*n,(o-r)*t,.6*n,.8*t,(a+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,o*t,.4*n,.8*t,(a-r)*n,(o-r)*t,.4*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,1*t,a*n,(o+r)*t,.4*n,1*t,(a-r)*n)),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.4,.75),i})),go.Shape.defineFigureGenerator("NandGate",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.4*c,a=.1*c,s=.9,l=.5,u=new go.PathFigure(.8*t,.5*n,!0);i.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,n,.8*t,(.5+o)*n,(.4+r)*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,0,n)),u.add(new go.PathSegment(go.PathSegment.Line,0,0)),u.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),u.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(.4+r)*t,0,.8*t,(.5-o)*n));var h=new go.PathFigure(1*t,l*n,!0);return i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,s*t,.6*n,1*t,(l+a)*n,(s+a)*t,.6*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,l*n,(s-a)*t,.6*n,.8*t,(l+a)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,s*t,.4*n,.8*t,(l-a)*n,(s-a)*t,.4*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,1*t,l*n,(s+a)*t,.4*n,1*t,(l-a)*n)),i.spot1=new go.Spot(0,.05),i.spot2=new go.Spot(.55,.95),i})),go.Shape.defineFigureGenerator("NorGate",(function(e,t,n){var i=new go.Geometry,r=.5,o=c*r,a=0,s=.5,l=new go.PathFigure(.8*t,.5*n,!0);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.7*t,(s+o)*n,(a+o)*t,(s+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.75*n,.25*t,.25*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(a+o)*t,(s-r)*n,.7*t,(s-o)*n)),r=.1,o=.1*c,a=.9,s=.5;var u=new go.PathFigure((a-r)*t,s*n,!0);return i.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s-r)*n,(a-r)*t,(s-o)*n,(a-o)*t,(s-r)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(a+r)*t,s*n,(a+o)*t,(s-r)*n,(a+r)*t,(s-o)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s+r)*n,(a+r)*t,(s+o)*n,(a+o)*t,(s+r)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(a-r)*t,s*n,(a-o)*t,(s+r)*n,(a-r)*t,(s+o)*n)),i.spot1=new go.Spot(.2,.25),i.spot2=new go.Spot(.6,.75),i})),go.Shape.defineFigureGenerator("OrGate",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.5,a=new go.PathFigure(0,0,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,(0+r+r)*t,0*n,.8*t,(o-r)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.8*t,(o+r)*n,(0+r+r)*t,1*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.75*n,.25*t,.25*n).close()),i.spot1=new go.Spot(.2,.25),i.spot2=new go.Spot(.75,.75),i})),go.Shape.defineFigureGenerator("XnorGate",(function(e,t,n){var i=new go.Geometry,r=.5,o=c*r,a=.2,s=.5,l=new go.PathFigure(.1*t,0,!1);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,n,.35*t,.25*n,.35*t,.75*n));var u=new go.PathFigure(.8*t,.5*n,!0);i.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,n,.7*t,(s+o)*n,(a+o)*t,(s+r)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,.45*t,.75*n,.45*t,.25*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(a+o)*t,(s-r)*n,.7*t,(s-o)*n)),r=.1,o=.1*c,a=.9,s=.5;var h=new go.PathFigure((a-r)*t,s*n,!0);return i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s-r)*n,(a-r)*t,(s-o)*n,(a-o)*t,(s-r)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(a+r)*t,s*n,(a+o)*t,(s-r)*n,(a+r)*t,(s-o)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s+r)*n,(a+r)*t,(s+o)*n,(a+o)*t,(s+r)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(a-r)*t,s*n,(a-o)*t,(s+r)*n,(a-r)*t,(s+o)*n)),i.spot1=new go.Spot(.4,.25),i.spot2=new go.Spot(.65,.75),i})),go.Shape.defineFigureGenerator("XorGate",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.5,a=new go.PathFigure(.1*t,0,!1);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,n,.35*t,.25*n,.35*t,.75*n));var s=new go.PathFigure(.2*t,0,!0);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,(.2+r)*t,0*n,.9*t,(o-r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,n,.9*t,(o+r)*n,(.2+r)*t,1*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,.45*t,.75*n,.45*t,.25*n).close()),i.spot1=new go.Spot(.4,.25),i.spot2=new go.Spot(.8,.75),i})),go.Shape.defineFigureGenerator("Capacitor",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),i})),go.Shape.defineFigureGenerator("Resistor",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,.5*n)),i})),go.Shape.defineFigureGenerator("Inductor",(function(e,t,n){var i=new go.Geometry,r=.1*c,o=.1,a=.1,s=new go.PathFigure((a-.5*r)*t,n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*t,0,(a-r)*t,n,(a-o)*t,0)),a=.3,s.add(new go.PathSegment(go.PathSegment.Bezier,a*t,n,(a+o)*t,0,(a+r)*t,n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*t,0,(a-r)*t,n,(a-o)*t,0)),a=.5,s.add(new go.PathSegment(go.PathSegment.Bezier,a*t,n,(a+o)*t,0,(a+r)*t,n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*t,0,(a-r)*t,n,(a-o)*t,0)),a=.7,s.add(new go.PathSegment(go.PathSegment.Bezier,a*t,n,(a+o)*t,0,(a+r)*t,n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*t,0,(a-r)*t,n,(a-o)*t,0)),a=.9,s.add(new go.PathSegment(go.PathSegment.Bezier,(a+.5*r)*t,n,(a+o)*t,0,(a+r)*t,n)),i})),go.Shape.defineFigureGenerator("ACvoltageSource",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.5,a=.5,s=new go.PathFigure(0*t,a*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,o*t,0*n,0*t,(a-r)*n,(o-r)*t,0*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,1*t,a*n,(o+r)*t,0*n,1*t,(a-r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,o*t,1*n,1*t,(a+r)*n,(o+r)*t,1*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0*t,a*n,(o-r)*t,1*n,0*t,(a+r)*n)),s.add(new go.PathSegment(go.PathSegment.Move,.1*t,a*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,a*n,o*t,0*n,o*t,1*n)),i})),go.Shape.defineFigureGenerator("DCvoltageSource",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.75*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),r.add(new go.PathSegment(go.PathSegment.Move,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),i})),go.Shape.defineFigureGenerator("Diode",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(t,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),i.spot1=new go.Spot(0,.25),i.spot2=new go.Spot(.5,.75),i})),go.Shape.defineFigureGenerator("Wifi",(function(e,t,n){var i=new go.Geometry,r=.8*c,o=.8,a=0,s=.5,l=(t-(t*=.38))/2,u=(n-(n*=.6))/2,h=new go.PathFigure(a*t+l,(s+o)*n+u,!0);i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,(a-o)*t+l,s*n+u,(a-r)*t+l,(s+o)*n+u,(a-o)*t+l,(s+r)*n+u)),h.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s-o)*n+u,(a-o)*t+l,(s-r)*n+u,(a-r)*t+l,(s-o)*n+u)),h.add(new go.PathSegment(go.PathSegment.Bezier,(a-o+.5*r)*t+l,s*n+u,a*t+l,(s-o)*n+u,(a-o+.5*r)*t+l,(s-r)*n+u)),h.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s+o)*n+u,(a-o+.5*r)*t+l,(s+r)*n+u,a*t+l,(s+o)*n+u).close()),r=.4*c,o=.4,a=.2,s=.5;var d=new go.PathFigure(a*t+l,(s+o)*n+u,!0);i.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,(a-o)*t+l,s*n+u,(a-r)*t+l,(s+o)*n+u,(a-o)*t+l,(s+r)*n+u)),d.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s-o)*n+u,(a-o)*t+l,(s-r)*n+u,(a-r)*t+l,(s-o)*n+u)),d.add(new go.PathSegment(go.PathSegment.Bezier,(a-o+.5*r)*t+l,s*n+u,a*t+l,(s-o)*n+u,(a-o+.5*r)*t+l,(s-r)*n+u)),d.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s+o)*n+u,(a-o+.5*r)*t+l,(s+r)*n+u,a*t+l,(s+o)*n+u).close()),r=.2*c,o=.2,a=.5,s=.5;var p=new go.PathFigure((a-o)*t+l,s*n+u,!0);i.add(p),p.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s-o)*n+u,(a-o)*t+l,(s-r)*n+u,(a-r)*t+l,(s-o)*n+u)),p.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*t+l,s*n+u,(a+r)*t+l,(s-o)*n+u,(a+o)*t+l,(s-r)*n+u)),p.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s+o)*n+u,(a+o)*t+l,(s+r)*n+u,(a+r)*t+l,(s+o)*n+u)),p.add(new go.PathSegment(go.PathSegment.Bezier,(a-o)*t+l,s*n+u,(a-r)*t+l,(s+o)*n+u,(a-o)*t+l,(s+r)*n+u)),r=.4*c,o=.4,a=.8,s=.5;var f=new go.PathFigure(a*t+l,(s-o)*n+u,!0);i.add(f),f.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*t+l,s*n+u,(a+r)*t+l,(s-o)*n+u,(a+o)*t+l,(s-r)*n+u)),f.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s+o)*n+u,(a+o)*t+l,(s+r)*n+u,(a+r)*t+l,(s+o)*n+u)),f.add(new go.PathSegment(go.PathSegment.Bezier,(a+o-.5*r)*t+l,s*n+u,a*t+l,(s+o)*n+u,(a+o-.5*r)*t+l,(s+r)*n+u)),f.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s-o)*n+u,(a+o-.5*r)*t+l,(s-r)*n+u,a*t+l,(s-o)*n+u).close()),r=.8*c,o=.8,a=1,s=.5;var g=new go.PathFigure(a*t+l,(s-o)*n+u,!0);return i.add(g),g.add(new go.PathSegment(go.PathSegment.Bezier,(a+o)*t+l,s*n+u,(a+r)*t+l,(s-o)*n+u,(a+o)*t+l,(s-r)*n+u)),g.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s+o)*n+u,(a+o)*t+l,(s+r)*n+u,(a+r)*t+l,(s+o)*n+u)),g.add(new go.PathSegment(go.PathSegment.Bezier,(a+o-.5*r)*t+l,s*n+u,a*t+l,(s+o)*n+u,(a+o-.5*r)*t+l,(s+r)*n+u)),g.add(new go.PathSegment(go.PathSegment.Bezier,a*t+l,(s-o)*n+u,(a+o-.5*r)*t+l,(s-r)*n+u,a*t+l,(s-o)*n+u).close()),i})),go.Shape.defineFigureGenerator("Email",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var o=new go.PathFigure(0,0,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Move,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.54*n)),o.add(new go.PathSegment(go.PathSegment.Move,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.54*n)),i})),go.Shape.defineFigureGenerator("Ethernet",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.35*t,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,0).close());var o=new go.PathFigure(.1*t,n,!0,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,n).close());var a=new go.PathFigure(.6*t,n,!0,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),a.add(new go.PathSegment(go.PathSegment.Line,.9*t,.6*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*t,.6*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*t,n).close());var s=new go.PathFigure(0,.5*n,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Move,.5*t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),s.add(new go.PathSegment(go.PathSegment.Move,.75*t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.75*t,.6*n)),s.add(new go.PathSegment(go.PathSegment.Move,.25*t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.25*t,.6*n)),i})),go.Shape.defineFigureGenerator("Power",(function(e,t,o){var s=new go.Geometry,l=.4*c,u=.4,h=.5,d=.5,p=i(),f=i(),g=i(),m=i();a(h,d-u,h+l,d-u,h+u,d-l,h+u,d,.5,p,p,f,g,m);var v=n(f.x,f.y),y=new go.PathFigure(f.x*t,f.y*o,!0);s.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,(h+u)*t,d*o,g.x*t,g.y*o,m.x*t,m.y*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d+u)*o,(h+u)*t,(d+l)*o,(h+l)*t,(d+u)*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,(h-u)*t,d*o,(h-l)*t,(d+u)*o,(h-u)*t,(d+l)*o)),a(h-u,d,h-u,d-l,h-l,d-u,h,d-u,.5,g,m,f,p,p),y.add(new go.PathSegment(go.PathSegment.Bezier,f.x*t,f.y*o,g.x*t,g.y*o,m.x*t,m.y*o)),a(h-(u=.3),d,h-u,d-(l=.3*c),h-l,d-u,h,d-u,.5,g,m,f,p,p),y.add(new go.PathSegment(go.PathSegment.Line,f.x*t,f.y*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,(h-u)*t,d*o,m.x*t,m.y*o,g.x*t,g.y*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d+u)*o,(h-u)*t,(d+l)*o,(h-l)*t,(d+u)*o)),y.add(new go.PathSegment(go.PathSegment.Bezier,(h+u)*t,d*o,(h+l)*t,(d+u)*o,(h+u)*t,(d+l)*o)),a(h,d-u,h+l,d-u,h+u,d-l,h+u,d,.5,p,p,f,g,m),y.add(new go.PathSegment(go.PathSegment.Bezier,f.x*t,f.y*o,m.x*t,m.y*o,g.x*t,g.y*o).close());y=new go.PathFigure(.45*t,0,!0);return s.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*t,.5*o)),y.add(new go.PathSegment(go.PathSegment.Line,.55*t,.5*o)),y.add(new go.PathSegment(go.PathSegment.Line,.55*t,0).close()),r(p),r(f),r(g),r(m),r(v),s.spot1=new go.Spot(.25,.45),s.spot2=new go.Spot(.75,.8),s})),go.Shape.defineFigureGenerator("Fallout",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,n/2,!0);function o(e,i,r){e.add(new go.PathSegment(go.PathSegment.Move,(.3+i)*t,(.8+r)*n)),e.add(new go.PathSegment(go.PathSegment.Line,(.5+i)*t,(.5+r)*n)),e.add(new go.PathSegment(go.PathSegment.Line,(.1+i)*t,(.5+r)*n)),e.add(new go.PathSegment(go.PathSegment.Line,(.3+i)*t,(.8+r)*n).close())}return i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,180,360,t/2,n/2,t/2,n/2)),o(r,0,0),o(r,.4,0),o(r,.2,-.3),i})),go.Shape.defineFigureGenerator("IrritationHazard",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.2*t,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.2*n).close()),i.spot1=new go.Spot(.3,.3),i.spot2=new go.Spot(.7,.7),i})),go.Shape.defineFigureGenerator("ElectricalHazard",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.37*t,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.11*n)),r.add(new go.PathSegment(go.PathSegment.Line,.77*t,.04*n)),r.add(new go.PathSegment(go.PathSegment.Line,.33*t,.49*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.37*n)),r.add(new go.PathSegment(go.PathSegment.Line,.63*t,.86*n)),r.add(new go.PathSegment(go.PathSegment.Line,.77*t,.91*n)),r.add(new go.PathSegment(go.PathSegment.Line,.34*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.34*t,.78*n)),r.add(new go.PathSegment(go.PathSegment.Line,.44*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,.56*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.68*n).close()),i})),go.Shape.defineFigureGenerator("FireHazard",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.1*t,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.29*t,0,-.25*t,.63*n,.45*t,.44*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.51*t,.42*n,.48*t,.17*n,.54*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.59*t,.18*n,.59*t,.29*n,.58*t,.28*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.75*t,.6*n,.8*t,.34*n,.88*t,.43*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.88*t,.31*n,.87*t,.48*n,.88*t,.43*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,n,1.17*t,.76*n,.82*t,.8*n).close()),i.spot1=new go.Spot(.07,.445),i.spot2=new go.Spot(.884,.958),i})),go.Shape.defineFigureGenerator("BpmnActivityLoop",(function(e,t,n){var i=new go.Geometry,r=.5,o=r*c,a=.4*Math.SQRT2/2+.5,s=.5-.5*Math.SQRT2/2,l=new go.PathFigure(a*t,(1-s)*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,1*t,.5*n,1*t,.7*n,1*t,.5*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0*n,1*t,(.5-o+0)*n,(.5+o+0)*t,0*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,0*t,.5*n,(.5-o+0)*t,0*n,0*t,(.5-o+0)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.35*t,.9*n,0*t,(.5+o+0)*n,(.5-o+0)*t,.9*n)),l.add(new go.PathSegment(go.PathSegment.Move,.25*t,.8*n)),l.add(new go.PathSegment(go.PathSegment.Line,.35*t,.9*n)),l.add(new go.PathSegment(go.PathSegment.Line,.2*t,.95*n)),i})),go.Shape.defineFigureGenerator("BpmnActivityParallel",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Move,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),i})),go.Shape.defineFigureGenerator("BpmnActivitySequential",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Move,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Move,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),i})),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);i.add(r);var o=new go.PathFigure(t,n,!1);i.add(o);var a=new go.PathFigure(0,.5*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.5*n,.2*t,.35*n,.3*t,.35*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,.7*t,.65*n,.8*t,.65*n)),i})),go.Shape.defineFigureGenerator("BpmnActivityCompensation",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n).close()),i})),go.Shape.defineFigureGenerator("BpmnTaskMessage",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.2*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n).close());r=new go.PathFigure(0,.2*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),i})),go.Shape.defineFigureGenerator("BpmnTaskScript",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.7*t,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,0,.6*t,.5*n,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.7*t,n,.4*t,.5*n,t,.5*n).close());var o=new go.PathFigure(.45*t,.73*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.73*n)),o.add(new go.PathSegment(go.PathSegment.Move,.38*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.63*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Move,.31*t,.27*n)),o.add(new go.PathSegment(go.PathSegment.Line,.56*t,.27*n)),i})),go.Shape.defineFigureGenerator("BpmnTaskUser",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);i.add(r);var o=new go.PathFigure(.335*t,(1-.555)*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.335*t,.595*n)),o.add(new go.PathSegment(go.PathSegment.Line,.665*t,.595*n)),o.add(new go.PathSegment(go.PathSegment.Line,.665*t,(1-.555)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.68*n,.88*t,.46*n,.98*t,.54*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.68*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.335*t,(1-.555)*n,.02*t,.54*n,.12*t,.46*n)),o.add(new go.PathSegment(go.PathSegment.Line,.365*t,.405*n));var a=.5-.285,s=.5,l=a,c=Math.PI/4,u=4*(1-Math.cos(c))/(3*Math.sin(c)),h=a,d=a,p=u*h,f=u*d;o.add(new go.PathSegment(go.PathSegment.Bezier,.285*t,l*n,(s-(p+h)/2)*t,(l+(d+f)/2)*n,.285*t,(l+f)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,s*t,0*n,.285*t,(l-f)*n,(s-p)*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(s+h)*t,l*n,(s+p)*t,0*n,(s+h)*t,(l-f)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.635*t,.405*n,(s+h)*t,(l+f)*n,(s+(p+h)/2)*t,(l+(d+f)/2)*n)),o.add(new go.PathSegment(go.PathSegment.Line,.635*t,.405*n)),o.add(new go.PathSegment(go.PathSegment.Line,.665*t,(1-.555)*n)),o.add(new go.PathSegment(go.PathSegment.Line,.665*t,.595*n)),o.add(new go.PathSegment(go.PathSegment.Line,.335*t,.595*n));var g=new go.PathFigure(.2*t,n,!1);i.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.2*t,.8*n));var m=new go.PathFigure(.8*t,n,!1);return i.add(m),m.add(new go.PathSegment(go.PathSegment.Line,.8*t,.8*n)),i})),go.Shape.defineFigureGenerator("BpmnEventConditional",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.1*t,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,n).close());var o=new go.PathFigure(.2*t,.2*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.8*n)),i})),go.Shape.defineFigureGenerator("BpmnEventError",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.33*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.33*t,.5*n).close()),i})),go.Shape.defineFigureGenerator("BpmnEventEscalation",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);i.add(r);var o=new go.PathFigure(t,n,!1);i.add(o);var a=new go.PathFigure(.1*t,n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),a.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),a.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n).close()),i})),go.Shape.defineFigureGenerator("Caution",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.05*t,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,.8*n,0,n,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.55*t,.1*n,.5*t,0,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.95*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,n,t,n,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.05*t,n));var o=.05;return r.add(new go.PathSegment(go.PathSegment.Move,.45*t,.875*n)),r.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*t,.875*n,o*t,o*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.325*n,.575*t,.725*n,.625*t,.375*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.75*n,.375*t,.375*n,.425*t,.725*n)),i})),go.Shape.defineFigureGenerator("Recycle",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.45*t,.95*n,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.185*t,.85*n,.17*t,.95*n,.15*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.235*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,.625*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.275*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.05*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.05*t,.575*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.1875*t,.95*n,0,.675*n,0,.7*n)),r.add(new go.PathSegment(go.PathSegment.Move,.45*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.775*n)),r.add(new go.PathSegment(go.PathSegment.Line,.22*t,.775*n));var o=new go.PathFigure(.475*t,.2*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.225*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.275*t,.175*n)),o.add(new go.PathSegment(go.PathSegment.Line,.325*t,.05*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,.05*n,.35*t,0,.375*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.575*t,.375*n)),o.add(new go.PathSegment(go.PathSegment.Line,.525*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.475*n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,.315*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.32*n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.05*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.575*t,0,.65*t,.05*n,.625*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.38*t,.0105*n));var a=new go.PathFigure(.675*t,.575*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.875*t,.525*n)),a.add(new go.PathSegment(go.PathSegment.Line,t,.775*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,.85*t,.95*n,t,.8*n,t,.85*n)),a.add(new go.PathSegment(go.PathSegment.Line,.65*t,.95*n)),a.add(new go.PathSegment(go.PathSegment.Line,.65*t,n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*t,.85*n)),a.add(new go.PathSegment(go.PathSegment.Line,.65*t,.725*n)),a.add(new go.PathSegment(go.PathSegment.Line,.65*t,.775*n)),a.add(new go.PathSegment(go.PathSegment.Line,.7*t,.775*n)),a.add(new go.PathSegment(go.PathSegment.Line,t,.775*n)),a.add(new go.PathSegment(go.PathSegment.Move,.675*t,.575*n)),a.add(new go.PathSegment(go.PathSegment.Line,.775*t,.775*n)),i})),go.Shape.defineFigureGenerator("BpmnEventTimer",(function(e,t,n){var i=new go.Geometry,r=.5,o=.5*c,a=new go.PathFigure(t,r*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Bezier,r*t,n,t,(r+o)*n,(r+o)*t,n)),a.add(new go.PathSegment(go.PathSegment.Bezier,0,r*n,(r-o)*t,n,0,(r+o)*n)),a.add(new go.PathSegment(go.PathSegment.Bezier,r*t,0,0,(r-o)*n,(r-o)*t,0)),a.add(new go.PathSegment(go.PathSegment.Bezier,t,r*n,(r+o)*t,0,t,(r-o)*n));var s=new go.PathFigure(r*t,0,!1);return i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,r*t,.15*n)),s.add(new go.PathSegment(go.PathSegment.Move,r*t,n)),s.add(new go.PathSegment(go.PathSegment.Line,r*t,.85*n)),s.add(new go.PathSegment(go.PathSegment.Move,0,r*n)),s.add(new go.PathSegment(go.PathSegment.Line,.15*t,r*n)),s.add(new go.PathSegment(go.PathSegment.Move,t,r*n)),s.add(new go.PathSegment(go.PathSegment.Line,.85*t,r*n)),s.add(new go.PathSegment(go.PathSegment.Move,r*t,r*n)),s.add(new go.PathSegment(go.PathSegment.Line,.58*t,.1*n)),s.add(new go.PathSegment(go.PathSegment.Move,r*t,r*n)),s.add(new go.PathSegment(go.PathSegment.Line,.78*t,.54*n)),i})),go.Shape.defineFigureGenerator("Package",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.15*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var o=new go.PathFigure(0,.15*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.15*n).close()),i.spot1=new go.Spot(0,.1),i.spot2=new go.Spot(1,1),i})),go.Shape.defineFigureGenerator("Class",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var o=new go.PathFigure(0,.2*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.2*n).close());var a=new go.PathFigure(0,.5*n,!1);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,t,.5*n).close()),i})),go.Shape.defineFigureGenerator("Component",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(t,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n).close());var o=new go.PathFigure(0,.2*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.2*n).close());var a=new go.PathFigure(0,.6*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.45*t,.6*n)),a.add(new go.PathSegment(go.PathSegment.Line,.45*t,.8*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),a.add(new go.PathSegment(go.PathSegment.Line,0,.6*n).close()),i})),go.Shape.defineFigureGenerator("Boat Shipment",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.15*t,.6*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,.6*n));var o=new go.PathFigure(.15*t,.6*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,.6*n)),i})),go.Shape.defineFigureGenerator("Customer/Supplier",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(t,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.33*t,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,.33*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n).close()),i})),go.Shape.defineFigureGenerator("Workcell",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),i})),go.Shape.defineFigureGenerator("Supermarket",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.33*n)),r.add(new go.PathSegment(go.PathSegment.Move,t,.33*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.66*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.66*n)),r.add(new go.PathSegment(go.PathSegment.Move,t,.66*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),i})),go.Shape.defineFigureGenerator("TruckShipment",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var o=new go.PathFigure(t,.8*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.8*n).close());var a=.1,s=.1*c,l=.2,u=.9,h=new go.PathFigure((l-a)*t,u*n,!0);i.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u-a)*n,(l-a)*t,(u-s)*n,(l-s)*t,(u-a)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(l+a)*t,u*n,(l+s)*t,(u-a)*n,(l+a)*t,(u-s)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u+a)*n,(l+a)*t,(u+s)*n,(l+s)*t,(u+a)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(l-a)*t,u*n,(l-s)*t,(u+a)*n,(l-a)*t,(u+s)*n).close()),a=.1,s=.1*c,l=.8,u=.9;var d=new go.PathFigure((l-a)*t,u*n,!0);return i.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u-a)*n,(l-a)*t,(u-s)*n,(l-s)*t,(u-a)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(l+a)*t,u*n,(l+s)*t,(u-a)*n,(l+a)*t,(u-s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,l*t,(u+a)*n,(l+a)*t,(u+s)*n,(l+s)*t,(u+a)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(l-a)*t,u*n,(l-s)*t,(u+a)*n,(l-a)*t,(u+s)*n).close()),i})),go.Shape.defineFigureGenerator("KanbanPost",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.2*t,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,0)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),i})),go.Shape.defineFigureGenerator("Forklift",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,0));var o=new go.PathFigure(0,.5*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var a=new go.PathFigure(.5*t,.8*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.5*t,.1*n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*t,.1*n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*t,.8*n)),a.add(new go.PathSegment(go.PathSegment.Line,.5*t,.8*n));var s=new go.PathFigure(.5*t,.7*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,t,.7*n));var l=.1,u=.1*c,h=.1,d=.9,p=new go.PathFigure((h-l)*t,d*n,!0);i.add(p),p.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d-l)*n,(h-l)*t,(d-u)*n,(h-u)*t,(d-l)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(h+l)*t,d*n,(h+u)*t,(d-l)*n,(h+l)*t,(d-u)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d+l)*n,(h+l)*t,(d+u)*n,(h+u)*t,(d+l)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(h-l)*t,d*n,(h-u)*t,(d+l)*n,(h-l)*t,(d+u)*n)),l=.1,u=.1*c,h=.4,d=.9;var f=new go.PathFigure((h-l)*t,d*n,!0);return i.add(f),f.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d-l)*n,(h-l)*t,(d-u)*n,(h-u)*t,(d-l)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(h+l)*t,d*n,(h+u)*t,(d-l)*n,(h+l)*t,(d-u)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(d+l)*n,(h+l)*t,(d+u)*n,(h+u)*t,(d+l)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(h-l)*t,d*n,(h-u)*t,(d+l)*n,(h-l)*t,(d+u)*n)),i})),go.Shape.defineFigureGenerator("RailShipment",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.1*t,.4*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,.4*n).close());var o=new go.PathFigure(.45*t,.7*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.7*n));var a=new go.PathFigure(.55*t,.4*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),a.add(new go.PathSegment(go.PathSegment.Line,.9*t,.9*n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*t,.9*n)),a.add(new go.PathSegment(go.PathSegment.Line,.55*t,.4*n).close());var s=.05,l=.05*c,u=.175,h=.95,d=new go.PathFigure((u-s)*t,h*n,!0);i.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h-s)*n,(u-s)*t,(h-l)*n,(u-l)*t,(h-s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(u+s)*t,h*n,(u+l)*t,(h-s)*n,(u+s)*t,(h-l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h+s)*n,(u+s)*t,(h+l)*n,(u+l)*t,(h+s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(u-s)*t,h*n,(u-l)*t,(h+s)*n,(u-s)*t,(h+l)*n));s=.05,l=.05*c,u=.375,h=.95;var p=new go.PathFigure((u-s)*t,h*n,!0);i.add(p),p.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h-s)*n,(u-s)*t,(h-l)*n,(u-l)*t,(h-s)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(u+s)*t,h*n,(u+l)*t,(h-s)*n,(u+s)*t,(h-l)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h+s)*n,(u+s)*t,(h+l)*n,(u+l)*t,(h+s)*n)),p.add(new go.PathSegment(go.PathSegment.Bezier,(u-s)*t,h*n,(u-l)*t,(h+s)*n,(u-s)*t,(h+l)*n));s=.05,l=.05*c,u=.625,h=.95;var f=new go.PathFigure((u-s)*t,h*n,!0);i.add(f),f.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h-s)*n,(u-s)*t,(h-l)*n,(u-l)*t,(h-s)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(u+s)*t,h*n,(u+l)*t,(h-s)*n,(u+s)*t,(h-l)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h+s)*n,(u+s)*t,(h+l)*n,(u+l)*t,(h+s)*n)),f.add(new go.PathSegment(go.PathSegment.Bezier,(u-s)*t,h*n,(u-l)*t,(h+s)*n,(u-s)*t,(h+l)*n));s=.05,l=.05*c,u=.825,h=.95;var g=new go.PathFigure((u-s)*t,h*n,!0);i.add(g),g.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h-s)*n,(u-s)*t,(h-l)*n,(u-l)*t,(h-s)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,(u+s)*t,h*n,(u+l)*t,(h-s)*n,(u+s)*t,(h-l)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h+s)*n,(u+s)*t,(h+l)*n,(u+l)*t,(h+s)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,(u-s)*t,h*n,(u-l)*t,(h+s)*n,(u-s)*t,(h+l)*n).close());var m=new go.PathFigure(0,n,!1);return i.add(m),m.add(new go.PathSegment(go.PathSegment.Line,t,n).close()),i})),go.Shape.defineFigureGenerator("Warehouse",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var o=new go.PathFigure(0,.2*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.2*n).close());var a=new go.PathFigure(.15*t,n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.15*t,.5*n)),a.add(new go.PathSegment(go.PathSegment.Line,.4*t,.5*n)),a.add(new go.PathSegment(go.PathSegment.Line,.4*t,n)),a.add(new go.PathSegment(go.PathSegment.Line,.15*t,n).close());var s=.05,l=.05*c,u=.35,h=.775,d=new go.PathFigure(.3*t,h*n,!0);return i.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,u*t,.725*n,.3*t,(h-l)*n,(u-l)*t,.725*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(u+s)*t,h*n,(u+l)*t,.725*n,(u+s)*t,(h-l)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,u*t,(h+s)*n,(u+s)*t,(h+l)*n,(u+l)*t,(h+s)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,h*n,(u-l)*t,(h+s)*n,.3*t,(h+l)*n).close()),i})),go.Shape.defineFigureGenerator("ControlCenter",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,.1*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n).close()),i})),go.Shape.defineFigureGenerator("Bluetooth",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.75*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),i})),go.Shape.defineFigureGenerator("Bookmark",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Move,.2*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Move,.2*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),i})),go.Shape.defineFigureGenerator("Bookmark",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Move,.2*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Move,.2*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),i})),go.Shape.defineFigureGenerator("Globe",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Move,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,.75*t,0,t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,.75*n,.75*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.25*t,n,0,.75*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,.25*n,.25*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,.15*t,.25*n,.15*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,.85*t,.75*n,.85*t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Move,.1675*t,.15*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8325*t,.15*n,.35*t,.3*n,.65*t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Move,.1675*t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8325*t,.85*n,.35*t,.7*n,.65*t,.7*n)),i})),go.Shape.defineFigureGenerator("Wave",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.25*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.25*n,.1*t,0,.2*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,.7*t,.25*n,.425*t,.5*n,.575*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.25*n,.8*t,0,.9*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Move,0,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.75*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.75*n,.1*t,.5*n,.2*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.7*t,.75*n,.425*t,n,.575*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.75*n,.8*t,.5*n,.9*t,.5*n)),i})),go.Shape.defineFigureGenerator("Operator",(function(e,t,n){var i=new go.Geometry,r=.3,o=.3*c,a=.5,s=.7,l=new go.PathFigure(.2*t,s*n,!0);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s-r)*n,.2*t,(s-o)*n,(a-o)*t,(s-r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,s*n,(a+o)*t,(s-r)*n,.8*t,(s-o)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,a*t,1*n,.8*t,(s+o)*n,(a+o)*t,1*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,s*n,(a-o)*t,1*n,.2*t,(s+o)*n));var u=new go.PathFigure(0,.7*n,!1);return i.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,t,.7*n,0,0,t,0)),i})),go.Shape.defineFigureGenerator("TripleFanBlades",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.65*n,.65*t,.3*n,.65*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,.35*t,.5*n,.35*t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,.65*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.3*t,.6*n,.1*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.65*n,.2*t,n,.35*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,.65*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,n,.7*t,.6*n,.9*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.65*n,.8*t,n,.65*t,.95*n)),i})),go.Shape.defineFigureGenerator("CentrifugalPump",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(t,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,0,.075*n,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,n,0,n,.4*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.4*n,.8*t,n,.85*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),i})),go.Shape.defineFigureGenerator("Battery",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,.4*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.1*n));var o=new go.PathFigure(0,.6*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Move,0,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.4*n)),i})),go.Shape.defineFigureGenerator("Delete",(function(e,t,n){var i=new go.Geometry,r=.5*c,o=.5,a=.5,s=new go.PathFigure(0*t,a*n,!0);i.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,o*t,0*n,0*t,(a-r)*n,(o-r)*t,0*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,1*t,a*n,(o+r)*t,0*n,1*t,(a-r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,o*t,1*n,1*t,(a+r)*n,(o+r)*t,1*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,0*t,a*n,(o-r)*t,1*n,0*t,(a+r)*n));var l=new go.PathFigure(.15*t,.5*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.85*t,.5*n)),i})),go.Shape.defineFigureGenerator("Flag",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.1*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Move,0,.1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.1*n,.15*t,0,.35*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.1*n,.65*t,.2*n,.85*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.5*n,.85*t,.6*n,.65*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.35*t,.4*n,.15*t,.4*n).close()),i})),go.Shape.defineFigureGenerator("Help",(function(e,t,n){var i=new go.Geometry,r=.5,o=.5*c,a=.5,s=.5,l=new go.PathFigure((a-r)*t,s*n,!1);i.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s-r)*n,(a-r)*t,(s-o)*n,(a-o)*t,(s-r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(a+r)*t,s*n,(a+o)*t,(s-r)*n,(a+r)*t,(s-o)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s+r)*n,(a+r)*t,(s+o)*n,(a+o)*t,(s+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(a-r)*t,s*n,(a-o)*t,(s+r)*n,(a-r)*t,(s+o)*n).close()),r=.05,o=.05*c,a=.5,s=.8;var u=new go.PathFigure((a-r)*t,s*n,!1);return i.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s-r)*n,(a-r)*t,(s-o)*n,(a-o)*t,(s-r)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(a+r)*t,s*n,(a+o)*t,(s-r)*n,(a+r)*t,(s-o)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,a*t,(s+r)*n,(a+r)*t,(s+o)*n,(a+o)*t,(s+r)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(a-r)*t,s*n,(a-o)*t,(s+r)*n,(a-r)*t,(s+o)*n).close()),u.add(new go.PathSegment(go.PathSegment.Move,.5*t,.7*n)),u.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,.75*t,.475*n,.75*t,.225*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.35*n,.4*t,.2*n,.3*t,.25*n)),i})),go.Shape.defineFigureGenerator("Location",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,n,!0).add(new go.PathSegment(go.PathSegment.Line,.75*t,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,.975*t,.025*n,.5*t,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*t,.5*n,.5*t,0,.025*t,.025*n).close()).add(new go.PathSegment(go.PathSegment.Move,.5*t,.2*n)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*t,.3*n,.1*t,.1*n).close()))})),go.Shape.defineFigureGenerator("Lock",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var o=new go.PathFigure(.2*t,.5*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.3*n,.25*t,0,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.3*n)),i})),go.Shape.defineFigureGenerator("Unlocked",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var o=new go.PathFigure(.2*t,.5*n,!1);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.3*n,.25*t,0,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.35*n)),i})),go.Shape.defineFigureGenerator("Gear",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.9375*t,.56246875*n,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*t,.4375*n)).add(new go.PathSegment(go.PathSegment.Line,.80621875*t,.4375*n)).add(new go.PathSegment(go.PathSegment.Bezier,.763*t,.3316875*n,.79840625*t,.39915625*n,.7834375*t,.3635*n)).add(new go.PathSegment(go.PathSegment.Line,.8566875*t,.23796875*n)).add(new go.PathSegment(go.PathSegment.Line,.76825*t,.14959375*n)).add(new go.PathSegment(go.PathSegment.Line,.67596875*t,.24184375*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*t,.19378125*n,.64228125*t,.2188125*n,.603875*t,.2021875*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*t,.0625*n)).add(new go.PathSegment(go.PathSegment.Line,.4375*t,.0625*n)).add(new go.PathSegment(go.PathSegment.Line,.4375*t,.19378125*n)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*t,.239375*n,.39759375*t,.20190625*n,.36053125*t,.2176875*n)).add(new go.PathSegment(go.PathSegment.Line,.2379375*t,.14959375*n)).add(new go.PathSegment(go.PathSegment.Line,.14953125*t,.2379375*n)).add(new go.PathSegment(go.PathSegment.Line,.23934375*t,.3278125*n)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*t,.4375*n,.21765625*t,.36059375*n,.201875*t,.397625*n)).add(new go.PathSegment(go.PathSegment.Line,.0625*t,.4375*n)).add(new go.PathSegment(go.PathSegment.Line,.0625*t,.5625*n)).add(new go.PathSegment(go.PathSegment.Line,.1938125*t,.5625*n)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*t,.67596875*n,.20221875*t,.603875*n,.21884375*t,.64228125*n)).add(new go.PathSegment(go.PathSegment.Line,.1495625*t,.76825*n)).add(new go.PathSegment(go.PathSegment.Line,.238*t,.8566875*n)).add(new go.PathSegment(go.PathSegment.Line,.3316875*t,.76296875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*t,.80621875*n,.36353125*t,.78340625*n,.3991875*t,.79840625*n)).add(new go.PathSegment(go.PathSegment.Line,.43753125*t,.9375*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*t,.9375*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*t,.80621875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*t,.760625*n,.602375*t,.79809375*n,.63946875*t,.78234375*n)).add(new go.PathSegment(go.PathSegment.Line,.76828125*t,.8566875*n)).add(new go.PathSegment(go.PathSegment.Line,.85671875*t,.76825*n)).add(new go.PathSegment(go.PathSegment.Line,.76065625*t,.67221875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*t,.56246875*n,.78234375*t,.63940625*n,.798125*t,.602375*n)).add(new go.PathSegment(go.PathSegment.Line,.9375*t,.56246875*n).close()).add(new go.PathSegment(go.PathSegment.Move,.5*t,.6*n)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*t,.5*n,.1*t,.1*n).close()))})),go.Shape.defineFigureGenerator("Hand",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.5*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,.3*n,0,.375*n,.05*t,.325*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.45*t,.075*n,.3*t,.225*n,.4*t,.175*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.525*t,.075*n,.46*t,.05*n,.525*t,.05*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.4*n,.525*t,.275*n,.475*t,.325*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,.55*n,t,.4*n,t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.425*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.6*t,.7*n,.675*t,.55*n,.675*t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,.575*t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.575*t,.85*n,.65*t,.7*n,.65*t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.525*t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.535*t,n,.61*t,.85*n,.61*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,.435*t,n,0,n).close()),i})),go.Shape.defineFigureGenerator("Map",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,.2*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),r.add(new go.PathSegment(go.PathSegment.Move,.25*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Move,.75*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.8*n)),i})),go.Shape.defineFigureGenerator("Eject",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.7*n).close());var o=new go.PathFigure(0,.6*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0).close()),i})),go.Shape.defineFigureGenerator("Pencil",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*t,.1*n)).add(new go.PathSegment(go.PathSegment.Line,t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.9*t,n)).add(new go.PathSegment(go.PathSegment.Line,.1*t,.2*n).close()))})),go.Shape.defineFigureGenerator("Building",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(1*t,1*n,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.046*t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.046*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,.046*t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.954*t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.954*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.954*t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.85*n).close());var o=new go.PathFigure(.126*t,.85*n,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.126*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.322*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.322*t,.85*n).close());var a=new go.PathFigure(.402*t,.85*n,!1);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.402*t,.45*n)),a.add(new go.PathSegment(go.PathSegment.Line,.598*t,.45*n)),a.add(new go.PathSegment(go.PathSegment.Line,.598*t,.85*n).close());var s=new go.PathFigure(.678*t,.85*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.678*t,.45*n)),s.add(new go.PathSegment(go.PathSegment.Line,.874*t,.45*n)),s.add(new go.PathSegment(go.PathSegment.Line,.874*t,.85*n).close());var l=new go.PathFigure(.5*t,.1*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.196*t,.3*n)),l.add(new go.PathSegment(go.PathSegment.Line,.804*t,.3*n).close()),i})),go.Shape.defineFigureGenerator("Staircase",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,1*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.15*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.95*n).close()),i})),go.Shape.defineFigureGenerator("5Bars",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,1*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.184*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.184*t,n*(1-.184)).close());var o=new go.PathFigure(.204*t,n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.204*t,n*(1-.184))),o.add(new go.PathSegment(go.PathSegment.Line,.388*t,.632*n)),o.add(new go.PathSegment(go.PathSegment.Line,.388*t,1*n).close());var a=new go.PathFigure(.408*t,n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.408*t,.632*n)),a.add(new go.PathSegment(go.PathSegment.Line,.592*t,n*(1-.552))),a.add(new go.PathSegment(go.PathSegment.Line,.592*t,1*n).close());var s=new go.PathFigure(.612*t,n,!0);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.612*t,n*(1-.552))),s.add(new go.PathSegment(go.PathSegment.Line,.796*t,.264*n)),s.add(new go.PathSegment(go.PathSegment.Line,.796*t,1*n).close());var l=new go.PathFigure(.816*t,n,!0);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.816*t,.264*n)),l.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-.184*5))),l.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n).close()),i})),go.Shape.defineFigureGenerator("PC",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,0).close());var o=new go.PathFigure(.055*t,.07*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.245*t,.07*n)),o.add(new go.PathSegment(go.PathSegment.Line,.245*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.055*t,.1*n).close());var a=new go.PathFigure(.055*t,.13*n,!0);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.245*t,.13*n)),a.add(new go.PathSegment(go.PathSegment.Line,.245*t,.16*n)),a.add(new go.PathSegment(go.PathSegment.Line,.055*t,.16*n).close());var s=new go.PathFigure(.055*t,.18*n,!0);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.245*t,.18*n)),s.add(new go.PathSegment(go.PathSegment.Line,.245*t,.21*n)),s.add(new go.PathSegment(go.PathSegment.Line,.055*t,.21*n).close());var l=new go.PathFigure(1*t,0,!0);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),l.add(new go.PathSegment(go.PathSegment.Line,.4*t,.65*n)),l.add(new go.PathSegment(go.PathSegment.Line,1*t,.65*n).close()),i})),go.Shape.defineFigureGenerator("Plane",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.55*t,n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,.7*n)),r.add(new go.PathSegment(go.PathSegment.Line,.1*t,.475*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.35*t,.525*n,0,.4*n,.225*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,.475*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,.325*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.325*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,.2*n,.975*t,0,t,.08*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,n).close()),i})),go.Shape.defineFigureGenerator("Key",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(1*t,.5*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*t,.575*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.6*n).close()),r.add(new go.PathSegment(go.PathSegment.Move,.17*t,.425*n)),r.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*t,.5*n,.075*t,.075*n).close()),i})),go.Shape.defineFigureGenerator("FilmTape",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0,0,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,270,180,0*t,.3*t,.055*t)),r.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.08*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.08*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.136*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.136*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.192*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.192*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.248*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.248*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.304*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.304*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.28),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.28),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.336),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.336),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.392),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.392),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.528*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.528*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.584*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.584*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.64*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.64*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.696*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.696*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.752*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.752*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.728),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.728),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.864*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.864*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.84),.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.84),1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n));var o=new go.PathFigure(0,0,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,1*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Arc,270,-180,1*t,.3*t,.055*t)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n));var a=new go.PathFigure(.11*t,.1*n,!1);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.35133333*t,.1*n)),a.add(new go.PathSegment(go.PathSegment.Line,.35133333*t,.8*n)),a.add(new go.PathSegment(go.PathSegment.Line,.11*t,.8*n).close());var s=new go.PathFigure(.37933333*t,.1*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.62066666*t,.1*n)),s.add(new go.PathSegment(go.PathSegment.Line,.62066666*t,.8*n)),s.add(new go.PathSegment(go.PathSegment.Line,.37933333*t,.8*n).close());var l=new go.PathFigure(t*(.59266666+.056),.1*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,t*(.83399999+.056),.1*n)),l.add(new go.PathSegment(go.PathSegment.Line,t*(.83399999+.056),.8*n)),l.add(new go.PathSegment(go.PathSegment.Line,t*(.59266666+.056),.8*n).close()),i})),go.Shape.defineFigureGenerator("FloppyDisk",(function(e,t,n){var i=new go.Geometry,r=8*c,o=new go.PathFigure(8,0,!1);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.86*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.14*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n-8)),o.add(new go.PathSegment(go.PathSegment.Bezier,t-8,n,t,n-r,t-r,n)),o.add(new go.PathSegment(go.PathSegment.Line,8,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,n-8,r,n,0,n-r)),o.add(new go.PathSegment(go.PathSegment.Line,0,8)),o.add(new go.PathSegment(go.PathSegment.Bezier,8,0,0,r,r,0).close());var a=new go.PathFigure(.83*t,0,!1);i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.83*t,.3*n)),a.add(new go.PathSegment(go.PathSegment.Line,.17*t,.3*n)),a.add(new go.PathSegment(go.PathSegment.Line,.17*t,0*n).close());var s=new go.PathFigure(.83*t,1*n,!1);i.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.83*t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.17*t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.17*t,1*n).close());var l=new go.PathFigure(.78*t,.05*n,!1);return i.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.66*t,.05*n)),l.add(new go.PathSegment(go.PathSegment.Line,.66*t,.25*n)),l.add(new go.PathSegment(go.PathSegment.Line,.78*t,.25*n).close()),i})),go.Shape.defineFigureGenerator("SpeechBubble",(function(e,t,n){var i=e?e.parameter1:NaN;(isNaN(i)||i<0)&&(i=15),i=Math.min(i,t/3);var r=(i=Math.min(i,n/3))*c,o=.8*n,a=new go.Geometry,s=new go.PathFigure(i,0,!0);return a.add(s),s.add(new go.PathSegment(go.PathSegment.Line,t-i,0)),s.add(new go.PathSegment(go.PathSegment.Bezier,t,i,t-r,0,t,r)),s.add(new go.PathSegment(go.PathSegment.Line,t,o-i)),s.add(new go.PathSegment(go.PathSegment.Bezier,t-i,o,t,o-r,t-r,o)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,o)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),s.add(new go.PathSegment(go.PathSegment.Line,.55*t,o)),s.add(new go.PathSegment(go.PathSegment.Line,i,o)),s.add(new go.PathSegment(go.PathSegment.Bezier,0,o-i,r,o,0,o-r)),s.add(new go.PathSegment(go.PathSegment.Line,0,i)),s.add(new go.PathSegment(go.PathSegment.Bezier,i,0,0,r,r,0).close()),r>1?(a.spot1=new go.Spot(0,0,r,r),a.spot2=new go.Spot(1,.8,-r,-r)):(a.spot1=go.Spot.TopLeft,a.spot2=new go.Spot(1,.8)),a})),go.Shape.defineFigureGenerator("Repeat",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0*t,.45*n,!0);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,.45*n).close());var o=new go.PathFigure(1*t,.55*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.55*n).close()),i})),go.Shape.defineFigureGenerator("Windows",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close()).add(new go.PathSegment(go.PathSegment.Move,.4*t,.4*n)).add(new go.PathSegment(go.PathSegment.Line,.4*t,.8*n)).add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)).add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n).close()).add(new go.PathSegment(go.PathSegment.Move,.2*t,.1*n)).add(new go.PathSegment(go.PathSegment.Line,.2*t,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.1*n).close()).add(new go.PathSegment(go.PathSegment.Move,.1*t,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.1*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n).close()))})),go.Shape.defineFigureGenerator("Terminal",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0*t,.1*n,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,1*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*t,.9*n).close());var o=new go.PathFigure(.1*t,.2*n,!0);i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.22*t,.285*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.32*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.37*n)),o.add(new go.PathSegment(go.PathSegment.Line,.275*t,.32*n)),o.add(new go.PathSegment(go.PathSegment.Line,.275*t,.25*n).close());var a=new go.PathFigure(.28*t,.37*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.45*t,.37*n)),a.add(new go.PathSegment(go.PathSegment.Line,.45*t,.41*n)),a.add(new go.PathSegment(go.PathSegment.Line,.28*t,.41*n).close()),i})),go.Shape.defineFigureGenerator("Beaker",(function(e,t,n){var i=new go.Geometry,r=15*c,o=new go.PathFigure(.62*t,.475*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,n-15)),o.add(new go.PathSegment(go.PathSegment.Bezier,t-15,n,t,n-r,t-r,n)),o.add(new go.PathSegment(go.PathSegment.Line,15,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,n-15,r,n,0,n-r)),o.add(new go.PathSegment(go.PathSegment.Line,.38*t,.475*n)),o.add(new go.PathSegment(go.PathSegment.Line,.38*t,.03*n)),o.add(new go.PathSegment(go.PathSegment.Line,.36*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.62*t,.03*n).close()),r>1?(i.spot1=new go.Spot(0,0,r,r),i.spot2=new go.Spot(1,1,-r,-r)):(i.spot1=go.Spot.TopLeft,i.spot2=go.Spot.BottomRight),i})),go.Shape.defineFigureGenerator("Download",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0*t,1*n,!0);i.add(r);var o=.1/.3;r.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.755*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.93*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.64*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.61*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.39*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.36*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.07*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.245*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.8),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*t,n*(1-o)).close());var a=new go.PathFigure(.4*t,0*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.4*t,.44*n)),a.add(new go.PathSegment(go.PathSegment.Line,.26*t,.44*n)),a.add(new go.PathSegment(go.PathSegment.Line,.5*t,.66*n)),a.add(new go.PathSegment(go.PathSegment.Line,.74*t,.44*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*t,.44*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*t,0*n).close()),i})),go.Shape.defineFigureGenerator("Bin",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0*t,1*n,!0);i.add(r);var o=.1/.3;return r.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.755*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.93*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.64*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.61*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.39*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.36*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.07*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.245*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.8),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*t,n*(1-o)).close()),i})),go.Shape.defineFigureGenerator("Upload",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(0*t,1*n,!0);i.add(r);var o=.1/.3;r.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.66*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.755*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,.93*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.64*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.61*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.39*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.36*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.07*t,n*(1-o))),r.add(new go.PathSegment(go.PathSegment.Line,.245*t,.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),.055*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,t*(1-.8),0*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*t,n*(1-o)).close());var a=new go.PathFigure(.5*t,0*n,!0);return i.add(a),a.add(new go.PathSegment(go.PathSegment.Line,.26*t,.25*n)),a.add(new go.PathSegment(go.PathSegment.Line,.4*t,.25*n)),a.add(new go.PathSegment(go.PathSegment.Line,.4*t,.63*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*t,.63*n)),a.add(new go.PathSegment(go.PathSegment.Line,.6*t,.25*n)),a.add(new go.PathSegment(go.PathSegment.Line,.74*t,.25*n).close()),i})),go.Shape.defineFigureGenerator("EmptyDrink",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.15*t,0*n,!1);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.85*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n).close()),i})),go.Shape.defineFigureGenerator("Drink",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.15*t,0*n,!1);i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.85*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n).close());var o=new go.PathFigure(.235*t,.28*n,!0);return i.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.765*t,.28*n)),o.add(new go.PathSegment(go.PathSegment.Line,.655*t,.97*n)),o.add(new go.PathSegment(go.PathSegment.Line,.345*t,.97*n).close()),i})),go.Shape.defineFigureGenerator("4Arrows",(function(e,t,n){var i=new go.Geometry,r=new go.PathFigure(.5*t,0*n,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,1*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.75*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,.55*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,.65*n)),r.add(new go.PathSegment(go.PathSegment.Line,0*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35*t,.25*n).close()),i})),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},35702:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,r=!1,o=!1,a=null,s=!1,l=null,c=null,u=0;u4?parseFloat(e):5};function S(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,O(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(l=e,R(e,t))},e.getHTML5CodebaseVersion=function(){return g},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){w=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,r="auto",o=n.id,a=!1,l=0;l=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var E=function(e){return e&&"false"!==e},M=function(t,n,i){x(g)<=4.2&&(i=!0);var r=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==g||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(r=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var o=document.createElement("div");o.classList.add("appletParameters","notranslate");var a=n.width,s=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(g)<=4.4)E(n.showToolBar)&&(n.height-=7),E(n.showAlgebraInput)&&(n.height-=37),n.width<605&&E(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(E(n.showToolBar)||E(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=E(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(y),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||y.appendChild(S)):o.appendChild(S),y.appendChild(o),b||t.appendChild(y),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),F("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function _(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(g)<5&&(e.className+=" geogebraweb")):k(e,t)}if(r){scriptLoadStarted=!0;for(var C=0;C0?(r.remove(),s.attr("id","fullscreencontent").show(),jQuery(o).append(s),window.dispatchEvent(new Event("resize"))):M(r,t,!1),window.GGBT_wsf_view.launchFullScreen(o)}else f=i,M(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(s=e/4*3),l=s/5.8,a.setAttribute("src",b),a.setAttribute("width",s),a.setAttribute("height",l);var u=(e-s)/2,h=(t-l)/2;a.style.left=u+"px",a.style.top=h+"px",r.appendChild(a)}return r.appendChild(c),r},I=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},B=["web","webSimple","web3d","tablet","tablet3d","phone"],R=function(e,t){if(g=e,t)O(g,!0);else{var o,a,s=!r;if(s){var l=x(g);!isNaN(l)&&l<4.4&&(s=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=g.indexOf("//");for(var u in a=c>0?g:0===c?o+g:"https://www.geogebra.org/apps/5.2.814.0/",B)if(g.slice(-1*B[u].length)===B[u]||g.slice(-1*(B[u].length+1))===B[u]+"/")return void O(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||E(n.showToolBar)||E(n.showMenuBar)||E(n.showAlgebraInput)||E(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",O(a,!1)}},O=function(e,t){if(e.requirejs)d=e;else{"/"!==e.slice(-1)&&(e+="/"),d=e,null===t&&(t=-1===e.indexOf("http")),p=t,m="web.nocache.js",v=!1;var n=d.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?B.indexOf(n[n.length-2])>=0&&(m=n[n.length-2]+".nocache.js"):(m="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(g=n[n.length-3]).substr(0,4)?g=g.substr(4,1)+"."+g.substr(5,1):"war"!==g.substr(0,3)&&"beta"!==g.substr(0,4)||(g="5.0");var i=parseFloat(g);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),R("5.0",t))}},F=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function z(){var e=t;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),R(e,!1),null!==c&&O(c,p),s=!0}return void 0!==n.material_id?_(z):z(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,r){if(e.isScreenshoGenerator)return 1;var o,a=void 0!==i&&i,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(o=e.autoHeight)&&"false"!==o,c=function(e,t,n,i,r,o){var a=null;if(null!=o&&""!=o)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+o+" ")>-1){a=s;break}s=s.parentNode}var l=0,c=0,u=0,h=0,d=0,p=0,f=0;if(a)l=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=l):(l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var g=e.getBoundingClientRect();g.left>0&&g.left<=l&&(void 0===r||!r)&&("rtl"===document.dir?(d=l-g.width-g.left,p=u<=480?10:30):(p=g.left,d=u<=480?10:30),h=p+d)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(h=40,f=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(h=0,f=40))}return e&&((void 0===n||!n)&&t>0&&t+h1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?o:(r=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==o?Math.min(o,r):r)}function r(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),r=(t-i.width)/2,o=(n-i.height)/2;o<0&&(o=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=r<40?"40px":r+"px",e.style.top=o+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=o<40?"40px":o+"px",e.style.left=r+"px")}return{responsiveResize:function(n,o){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(o.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var s=i(o,n);e()&&a.setAttribute("data-param-scale",s);for(var l=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var s in n)a[n[s]]=s;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],r=O;r"],E=new(S().Renderer),M=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function L(){C.length=0,P=["
    "),P.join("")}var N={heading:function(e){var t=M.exec(e);if(_+=1,t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},fences:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:l()(t,1)[0].length>=i.length?e.slice(i.length):e})).join("\n")}(n,t[3]||""),r=t[2]?t[2].trim():t[2];if(["latex","katex","math"].indexOf(r)>=0){var o=R(),a=i;i=o,O[o]={type:"block",expression:a}}return{type:"code",raw:n,lang:r,text:i}}}},I=/(?:\${2})([^\n`]+?)(?:\${2})/gi,B=0,R=function(){return"__special_katext_id_".concat(B++,"__")},O={};function F(){return O}function z(){B=0,O={}}function j(e){return e=e.replace(I,(function(e,t){var n=R();return O[n]={type:"inline",expression:t},n}))}var $=E.listitem;E.listitem=function(e){return $(j(e))};var H=E.paragraph;E.paragraph=function(e){return H(j(e))};var Z=E.tablecell;E.tablecell=function(e,t){return Z(j(e),t)},E.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];return i?["latex","katex","math"].indexOf(i)>=0?"

    ".concat(e,"

    "):'
    ').concat(n?e:(0,k.escape)(e,!0),"
    \n"):'
    '+(n?e:(0,k.escape)(e,!0))+"
    "},E.heading=function(e,t,n){var i=this.options.headerPrefix+n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return C.push({anchor:i,level:t,text:e}),"'+e+""},S().setOptions({silent:!0,gfm:!0,pedantic:!1}),S().use({tokenizer:N,renderer:E});var K=S();n(64018);const G=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},U=Number.isSafeInteger||function(e){return"number"==typeof e&&Math.abs(e)<=V},V=Number.MAX_SAFE_INTEGER||9007199254740991;let W=function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e}({}),q=function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",e.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",e.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ERROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.ASSET_LIST_LOAD_ERROR="assetListLoadError",e.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",e.ASSET_LIST_PARSING_ERROR="assetListParsingError",e.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.ATTACH_MEDIA_ERROR="attachMediaError",e.UNKNOWN="unknown",e}({}),Y=function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.MEDIA_ENDED="hlsMediaEnded",e.STALL_RESOLVED="hlsStallResolved",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFERED_TO_END="hlsBufferedToEnd",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",e.ASSET_LIST_LOADING="hlsAssetListLoading",e.ASSET_LIST_LOADED="hlsAssetListLoaded",e.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",e.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",e.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",e.INTERSTITIAL_STARTED="hlsInterstitialStarted",e.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",e.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",e.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",e.INTERSTITIAL_ENDED="hlsInterstitialEnded",e.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",e.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",e.EVENT_CUE_ENTER="hlsEventCueEnter",e}({});var X="manifest",Q="level",J="audioTrack",ee="subtitleTrack",te="main",ne="audio",ie="subtitle";class re{constructor(e,t=0,n=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class oe{constructor(e,t,n,i=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new re(e),this.fast_=new re(t),this.defaultTTFB_=i,this.ttfb_=new re(e)}update(e,t){const{slow_:n,fast_:i,ttfb_:r}=this;n.halfLife!==e&&(this.slow_=new re(e,n.getEstimate(),n.getTotalWeight())),i.halfLife!==t&&(this.fast_=new re(t,i.getEstimate(),i.getTotalWeight())),r.halfLife!==e&&(this.ttfb_=new re(e,r.getEstimate(),r.getTotalWeight()))}sample(e,t){const n=(e=Math.max(e,this.minDelayMs_))/1e3,i=8*t/n;this.fast_.sample(n,i),this.slow_.sample(n,i)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function ae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t`):he}(e,n)}const ge=pe();const me=ge;function ve(e=!0){if("undefined"==typeof self)return;return(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function ye(e,t){const n=Object.keys(e),i=Object.keys(t),r=n.length,o=i.length;return!r||!o||r===o&&!n.some((e=>-1===i.indexOf(e)))}function be(e,t=!1){if("undefined"!=typeof TextDecoder){const n=new TextDecoder("utf-8").decode(e);if(t){const e=n.indexOf("\0");return-1!==e?n.substring(0,e):n}return n.replace(/\0/g,"")}const n=e.length;let i,r,o,a="",s=0;for(;s>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:a+=String.fromCharCode(i);break;case 12:case 13:r=e[s++],a+=String.fromCharCode((31&i)<<6|63&r);break;case 14:r=e[s++],o=e[s++],a+=String.fromCharCode((15&i)<<12|(63&r)<<6|(63&o)<<0)}}return a}const we=function(e){let t="";for(let n=0;n1||1===t&&this.levelkeys[e[0]].encrypted)return!0}return!1}get programDateTime(){return null===this._programDateTime&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){G(e)?this._programDateTime=e:this._programDateTime=this.rawProgramDateTime=null}get ref(){return Be(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;null==(e=this.loader)||e.abort(),null==(t=this.keyLoader)||t.abort()}setElementaryStreamInfo(e,t,n,i,r,o=!1){const{elementaryStreams:a}=this,s=a[e];s?(s.startPTS=Math.min(s.startPTS,t),s.endPTS=Math.max(s.endPTS,n),s.startDTS=Math.min(s.startDTS,i),s.endDTS=Math.max(s.endDTS,r)):a[e]={startPTS:t,endPTS:n,startDTS:i,endDTS:r,partial:o}}}class Oe extends Ie{constructor(e,t,n,i,r){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=i;const o=e.enumeratedString("BYTERANGE");o&&this.setByteRange(o,r),r&&(this.fragOffset=r.fragOffset+r.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}function Fe(e,t){const n=Object.getPrototypeOf(e);if(n){const e=Object.getOwnPropertyDescriptor(n,t);return e||Fe(n,t)}}const ze=Math.pow(2,32)-1,je=[].push,$e={video:1,audio:2,id3:3,text:4};function He(e){return String.fromCharCode.apply(null,e)}function Ze(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function Ke(e,t){const n=Ue(e,t);return n<0?4294967296+n:n}function Ge(e,t){let n=Ke(e,t);return n*=Math.pow(2,32),n+=Ke(e,t+4),n}function Ue(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function Ve(e,t,n){e[t]=n>>24,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function We(e,t){const n=[];if(!t.length)return n;const i=e.byteLength;for(let r=0;r1?r+o:i;if(He(e.subarray(r+4,r+8))===t[0])if(1===t.length)n.push(e.subarray(r+8,a));else{const i=We(e.subarray(r+8,a),t.slice(1));i.length&&je.apply(n,i)}r=a}return n}function qe(e){const t=[],n=e[0];let i=8;const r=Ke(e,i);i+=4;let o=0,a=0;0===n?(o=Ke(e,i),a=Ke(e,i+4),i+=8):(o=Ge(e,i),a=Ge(e,i+8),i+=16),i+=2;let s=e.length+a;const l=Ze(e,i);i+=2;for(let n=0;n>>31)return me.warn("SIDX has hierarchical references (not supported)"),null;const l=Ke(e,n);n+=4,t.push({referenceSize:a,subsegmentDuration:l,info:{duration:l/r,start:s,end:s+a-1}}),s+=a,n+=4,i=n}return{earliestPresentationTime:o,timescale:r,version:n,referencesCount:l,references:t}}function Ye(e){const t=[],n=We(e,["moov","trak"]);for(let e=0;e{const n=Ke(e,4),i=t[n];i&&(i.default={duration:Ke(e,12),flags:Ke(e,20)})})),t}function Xe(e){const t=e.subarray(8),n=t.subarray(86),i=He(t.subarray(4,8));let r,o=i;const a="enca"===i||"encv"===i;if(a){const e=We(t,[i])[0];We(e.subarray("enca"===i?28:78),["sinf"]).forEach((e=>{const t=We(e,["schm"])[0];if(t){const n=He(t.subarray(4,8));if("cbcs"===n||"cenc"===n){const t=We(e,["frma"])[0];t&&(o=He(t))}}}))}const s=o;switch(o){case"avc1":case"avc2":case"avc3":case"avc4":{const e=We(n,["avcC"])[0];e&&e.length>3&&(o+="."+et(e[1])+et(e[2])+et(e[3]),r=Qe("avc1"===s?"dva1":"dvav",n));break}case"mp4a":{const e=We(t,[i])[0],n=We(e.subarray(28),["esds"])[0];if(n&&n.length>7){let e=4;if(3!==n[e++])break;e=Je(n,e),e+=2;const t=n[e++];if(128&t&&(e+=2),64&t&&(e+=n[e++]),4!==n[e++])break;e=Je(n,e);const i=n[e++];if(64!==i)break;if(o+="."+et(i),e+=12,5!==n[e++])break;e=Je(n,e);const r=n[e++];let a=(248&r)>>3;31===a&&(a+=1+((7&r)<<3)+((224&n[e])>>5)),o+="."+a}break}case"hvc1":case"hev1":{const e=We(n,["hvcC"])[0];if(e&&e.length>12){const t=e[1],n=["","A","B","C"][t>>6],i=31&t,r=Ke(e,2),a=(32&t)>>5?"H":"L",s=e[12],l=e.subarray(6,12);o+="."+n+i,o+="."+function(e){let t=0;for(let n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}(r).toString(16).toUpperCase(),o+="."+a+s;let c="";for(let e=l.length;e--;){const t=l[e];if(t||c){c="."+t.toString(16).toUpperCase()+c}}o+=c}r=Qe("hev1"==s?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":o=Qe(o,n)||o;break;case"vp09":{const e=We(n,["vpcC"])[0];if(e&&e.length>6){const t=e[4],n=e[5],i=e[6]>>4&15;o+="."+tt(t)+"."+tt(n)+"."+tt(i)}break}case"av01":{const e=We(n,["av1C"])[0];if(e&&e.length>2){const t=e[1]>>>5,i=31&e[1],a=e[2]>>>7?"H":"M",s=(64&e[2])>>6,l=(32&e[2])>>5,c=2===t&&s?l?12:10:s?10:8,u=(16&e[2])>>4,h=(8&e[2])>>3,d=(4&e[2])>>2,p=3&e[2],f=1,g=1,m=1,v=0;o+="."+t+"."+tt(i)+a+"."+tt(c)+"."+u+"."+h+d+p+"."+tt(f)+"."+tt(g)+"."+tt(m)+"."+v,r=Qe("dav1",n)}break}}return{codec:o,encrypted:a,supplemental:r}}function Qe(e,t){const n=We(t,["dvvC"]),i=n.length?n[0]:We(t,["dvcC"])[0];if(i){const t=i[2]>>1&127,n=i[2]<<5&32|i[3]>>3&31;return e+"."+tt(t)+"."+tt(n)}}function Je(e,t){const n=t+5;for(;128&e[t++]&&t{const l=s.byteOffset-8;We(s,["traf"]).map((s=>{const c=We(s,["tfdt"]).map((e=>{const t=e[0];let n=Ke(e,4);return 1===t&&(n*=Math.pow(2,32),n+=Ke(e,8)),n/r}))[0];return void 0!==c&&(e=c),We(s,["tfhd"]).map((c=>{const u=Ke(c,4),h=16777215&Ke(c,0);let d=0;const p=0!=(16&h);let f=0;const g=0!=(32&h);let m=8;u===o&&(0!=(1&h)&&(m+=8),0!=(2&h)&&(m+=4),0!=(8&h)&&(d=Ke(c,m),m+=4),p&&(f=Ke(c,m),m+=4),g&&(m+=4),"video"===t.type&&(a=ot(t.codec)),We(s,["trun"]).map((o=>{const s=o[0],c=16777215&Ke(o,0),u=0!=(1&c);let h=0;const p=0!=(4&c),g=0!=(256&c);let m=0;const v=0!=(512&c);let y=0;const b=0!=(1024&c),w=0!=(2048&c);let x=0;const S=Ke(o,4);let k=8;u&&(h=Ke(o,k),k+=4),p&&(k+=4);let _=h+l;for(let l=0;l>1&63;return 39===e||40===e}return 6===(31&t)}function st(e,t,n,i){const r=lt(e);let o=0;o+=t;let a=0,s=0,l=0;for(;o=r.length)break;l=r[o++],a+=l}while(255===l);s=0;do{if(o>=r.length)break;l=r[o++],s+=l}while(255===l);const e=r.length-o;let t=o;if(se){me.error(`Malformed SEI payload. ${s} is too small, only ${e} bytes left to parse.`);break}if(4===a){if(181===r[t++]){const e=Ze(r,t);if(t+=2,49===e){const e=Ke(r,t);if(t+=4,1195456820===e){const e=r[t++];if(3===e){const o=r[t++],s=64&o,l=s?2+3*(31&o):0,c=new Uint8Array(l);if(s){c[0]=o;for(let e=1;e16){const e=[];for(let n=0;n<16;n++){const i=r[t++].toString(16);e.push(1==i.length?"0"+i:i),3!==n&&5!==n&&7!==n&&9!==n||e.push("-")}const o=s-16,l=new Uint8Array(o);for(let e=0;e0&&new DataView(a.buffer).setUint32(0,n.byteLength,!1),function(e,...t){const n=t.length;let i=8,r=n;for(;r--;)i+=t[r].byteLength;const o=new Uint8Array(i);for(o[0]=i>>24&255,o[1]=i>>16&255,o[2]=i>>8&255,o[3]=255&i,o.set(e,4),r=0,i=8;r>>24;if(0!==r&&1!==r)return{offset:n,size:t};const o=e.buffer,a=we(new Uint8Array(o,n+12,16)),s=e.getUint32(28);let l=null,c=null;if(0===r){if(t-32/\(Windows.+Firefox\//i.test(navigator.userAgent),dt={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function pt(e,t){const n=dt[t];return!!n&&!!n[e.slice(0,4)]}function ft(e,t,n=!0){return!e.split(",").some((e=>!gt(e,t,n)))}function gt(e,t,n=!0){var i;const r=ve(n);return null!=(i=null==r?void 0:r.isTypeSupported(mt(e,t)))&&i}function mt(e,t){return`${t}/mp4;codecs=${e}`}function vt(e){if(e){const t=e.substring(0,4);return dt.video[t]}return 2}function yt(e){const t=ht();return e.split(",").reduce(((e,n)=>{const i=t&&ot(n)?9:dt.video[n];return i?(2*i+e)/(e?3:2):(dt.audio[n]+e)/(e?2:1)}),0)}const bt={};const wt=/flac|opus|mp4a\.40\.34/i;function xt(e,t=!0){return e.replace(wt,(e=>function(e,t=!0){if(bt[e])return bt[e];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let r=0;r4||-1!==["ac-3","ec-3","alac","fLaC","Opus"].indexOf(e)))return e;if(t){const n=t.split(",");if(n.length>1){if(e)for(let t=n.length;t--;)if(n[t].substring(0,4)===e.substring(0,4))return n[t];return n[0]}}return t||e}function kt(e){if(e.startsWith("av01.")){const t=e.split("."),n=["0","111","01","01","01","0"];for(let e=t.length;e>4&&e<10;e++)t[e]=n[e-4];return t.join(".")}return e}function _t(e){const t=ve(e)||{isTypeSupported:()=>!1};return{mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:t.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Ct(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Pt={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function Et(e,t){return{supported:!1,configurations:t,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:e}}const Mt={};function Lt(e,t,n,i,r,o){const a=e.audioCodec?e.audioGroups:null,s=null==o?void 0:o.audioCodec,l=null==o?void 0:o.channels,c=l?parseInt(l):s?1/0:2;let u=null;if(null!=a&&a.length)try{u=1===a.length&&a[0]?t.groups[a[0]].channels:a.reduce(((e,n)=>{if(n){const i=t.groups[n];if(!i)throw new Error(`Audio track group ${n} not found`);Object.keys(i.channels).forEach((t=>{e[t]=(e[t]||0)+i.channels[t]}))}return e}),{2:0})}catch(e){return!0}return void 0!==e.videoCodec&&(e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(i,30)||"SDR"!==e.videoRange&&e.videoRange!==n||e.bitrate>Math.max(r,8e6))||!!u&&G(c)&&Object.keys(u).some((e=>parseInt(e)>c))}function At(e,t,n){const i=e.videoCodec,r=e.audioCodec;if(!i&&!r||!n)return Promise.resolve(Pt);const o=[];if(i){const t={width:e.width,height:e.height,bitrate:Math.ceil(Math.max(.9*e.bitrate,e.averageBitrate)),framerate:e.frameRate||30},n=e.videoRange;"SDR"!==n&&(t.transferFunction=n.toLowerCase());const r=i.split(","),a=navigator.userAgent;if(r.some((e=>ot(e)))&&ht())return Promise.resolve(Et(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent sting: (${a})`),o));o.push.apply(o,r.map((e=>({type:"media-source",video:ce(ce({},t),{},{contentType:mt(kt(e),"video")})}))))}return r&&e.audioGroups&&e.audioGroups.forEach((e=>{var n;e&&(null==(n=t.groups[e])||n.tracks.forEach((t=>{if(t.groupId===e){const e=t.channels||"",n=parseFloat(e);G(n)&&n>2&&o.push.apply(o,r.split(",").map((e=>({type:"media-source",audio:{contentType:mt(e,"audio"),channels:""+n}}))))}})))})),Promise.all(o.map((e=>{const t=function(e){const{audio:t,video:n}=e,i=n||t;if(i){const e=Ct(i.contentType);if(n)return`r${n.height}x${n.width}f${Math.ceil(n.framerate)}${n.transferFunction||"sd"}_${e}_${Math.ceil(n.bitrate/1e5)}`;if(t)return`c${t.channels}${t.spatialRendering?"s":"n"}_${e}`}return""}(e);return Mt[t]||(Mt[t]=n.decodingInfo(e))}))).then((e=>({supported:!e.some((e=>!e.supported)),configurations:o,decodingInfoResults:e}))).catch((e=>({supported:!1,configurations:o,decodingInfoResults:[],error:e})))}const Tt=["NONE","TYPE-0","TYPE-1",null];const Dt=["SDR","PQ","HLG"];var Nt="",It="YES",Bt="v2";function Rt(e){const{canSkipUntil:t,canSkipDateRanges:n,age:i}=e;return t&&i!!e)).map((e=>e.substring(0,4))).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const n=null==(t=e.supplemental)?void 0:t.videoCodec;n&&n!==e.videoCodec&&(this.codecSet+=`,${n.substring(0,4)}`)}this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return zt(this._audioGroups,e)}hasSubtitleGroup(e){return zt(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t)if("audio"===e){let e=this._audioGroups;e||(e=this._audioGroups=[]),-1===e.indexOf(t)&&e.push(t)}else if("text"===e){let e=this._subtitleGroups;e||(e=this._subtitleGroups=[]),-1===e.indexOf(t)&&e.push(t)}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return null==(e=this.audioGroups)?void 0:e[0]}get textGroupId(){var e;return null==(e=this.subtitleGroups)?void 0:e[0]}addFallback(){}}function zt(e,t){return!(!t||!e)&&-1!==e.indexOf(t)}function jt(e,t){let n=!1,i=[];if(e&&(n="SDR"!==e,i=[e]),t){i=t.allowedVideoRanges||Dt.slice(0);const e="SDR"!==i.join("")&&!t.videoCodec;n=void 0!==t.preferHDR?t.preferHDR:e&&function(){if("function"==typeof matchMedia){const e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return!0===e.matches}return!1}(),n||(i=["SDR"])}return{preferHDR:n,allowedVideoRanges:i}}const $t=(e,t)=>JSON.stringify(e,(e=>{const t=new WeakSet;return(n,i)=>{if(e&&(i=e(n,i)),"object"==typeof i&&null!==i){if(t.has(i))return;t.add(i)}return i}})(t));function Ht(e,t){me.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function Zt(e){return e.reduce(((e,t)=>{let n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);const i=t.channels||"2";return n.channels[i]=(n.channels[i]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e}),{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function Kt(e){if(!e)return e;const{lang:t,assocLang:n,characteristics:i,channels:r,audioCodec:o}=e;return{lang:t,assocLang:n,characteristics:i,channels:r,audioCodec:o}}function Gt(e,t,n){if("attrs"in e){const n=t.indexOf(e);if(-1!==n)return n}for(let i=0;i-1===i.indexOf(e)))}(e.characteristics||"",t.characteristics))&&(void 0===n||n(e,t))}function Vt(e,t){const{audioCodec:n,channels:i}=e;return!(void 0!==n&&(t.audioCodec||"").substring(0,4)!==n.substring(0,4)||void 0!==i&&i!==(t.channels||"2"))}function Wt(e,t,n){for(let i=t;i>-1;i--)if(n(e[i]))return i;for(let i=t+1;i0)n=r+1;else{if(!(a<0))return o;i=r-1}}return null};function Xt(e,t,n=0,i=0,r=.005){let o=null;if(e){o=t[1+e.sn-t[0].sn]||null;const i=e.endDTS-n;i>0&&i<15e-7&&(n+=15e-7),o&&e.level!==o.level&&o.end<=e.end&&(o=t[2+e.sn-t[0].sn]||null)}else 0===n&&0===t[0].start&&(o=t[0]);if(o&&((!e||e.level===o.level)&&0===Qt(n,i,o)||function(e,t,n){if(t&&0===t.start&&t.level0){const i=t.tagList.reduce(((e,t)=>("INF"===t[0]&&(e+=parseFloat(t[1])),e)),n);return e.start<=i}return!1}(o,e,Math.min(r,i))))return o;const a=Yt(t,Qt.bind(null,n,i));return!a||a===e&&o?o:a}function Qt(e=0,t=0,n){if(n.start<=e&&n.start+n.duration>e)return 0;const i=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-i<=e?1:n.start-i>e&&n.start?-1:0}function Jt(e,t,n){const i=1e3*Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return(n.endProgramDateTime||0)-i>e}function en(e,t,n){if(e&&e.startCC<=t&&e.endCC>=t){let i=e.fragments;const{fragmentHint:r}=e;let o;return r&&(i=i.concat(r)),Yt(i,(e=>e.cct?-1:(o=e,e.end<=n?1:e.start>n?-1:0))),o||null}return null}function tn(e){switch(e.details){case q.FRAG_LOAD_TIMEOUT:case q.KEY_LOAD_TIMEOUT:case q.LEVEL_LOAD_TIMEOUT:case q.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function nn(e,t){const n=tn(t);return e.default[(n?"timeout":"error")+"Retry"]}function rn(e,t){const n="linear"===e.backoff?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function on(e){return ce(ce({},e),{errorRetry:null,timeoutRetry:null})}function an(e,t,n,i){if(!e)return!1;const r=null==i?void 0:i.code,o=t499)}(r)||!!n);return e.shouldRetry?e.shouldRetry(e,t,n,i,o):o}var sn=0,ln=2,cn=3,un=5,hn=0,dn=1,pn=2;function fn(e){const t={action:sn,flags:hn};return e&&(t.resolved=!0),t}var gn="NOT_LOADED",mn="APPENDING",vn="PARTIAL",yn="OK";class bn{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.BUFFER_APPENDED,this.onBufferAppended,this),e.on(Y.FRAG_BUFFERED,this.onFragBuffered,this),e.on(Y.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.BUFFER_APPENDED,this.onBufferAppended,this),e.off(Y.FRAG_BUFFERED,this.onFragBuffered,this),e.off(Y.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const n=this.activePartLists[t];if(n)for(let t=n.length;t--;){const i=n[t];if(!i)break;const r=i.end;if(i.start<=e&&null!==r&&e<=r)return i}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){const{fragments:i}=this,r=Object.keys(i);for(let o=r.length;o--;){const a=i[r[o]];if((null==a?void 0:a.body.type)===t&&(!n||a.buffered)){const t=a.body;if(t.start<=e&&e<=t.end)return t}}return null}detectEvictedFragments(e,t,n,i,r){this.timeRanges&&(this.timeRanges[e]=t);const o=(null==i?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach((i=>{const a=this.fragments[i];if(!a)return;if(o>=a.body.sn)return;if(!a.buffered&&(!a.loaded||r))return void(a.body.type===n&&this.removeFragment(a.body));const s=a.range[e];s&&(0!==s.time.length?s.time.some((e=>{const n=!this.isTimeBuffered(e.startPTS,e.endPTS,t);return n&&this.removeFragment(a.body),n})):this.removeFragment(a.body))}))}detectPartialFragments(e){const t=this.timeRanges;if(!t||"initSegment"===e.frag.sn)return;const n=e.frag,i=xn(n),r=this.fragments[i];if(!r||r.buffered&&n.gap)return;const o=!n.relurl;if(Object.keys(t).forEach((i=>{const a=n.elementaryStreams[i];if(!a)return;const s=t[i],l=o||!0===a.partial;r.range[i]=this.getBufferedTimes(n,e.part,l,s)})),r.loaded=null,Object.keys(r.range).length){r.buffered=!0;(r.body.endList=n.endList||r.body.endList)&&(this.endListFragments[r.body.type]=r),wn(r)||this.removeParts(n.sn-1,n.type)}else this.removeFragment(r.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=Sn(n,(t=>t.fragment.sn>=e)))}fragBuffered(e,t){const n=xn(e);let i=this.fragments[n];!i&&t&&(i=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)}getBufferedTimes(e,t,n,i){const r={time:[],partial:n},o=e.start,a=e.end,s=e.minEndPTS||a,l=e.maxStartPTS||o;for(let e=0;e=t&&s<=n){r.time.push({startPTS:Math.max(o,i.start(e)),endPTS:Math.min(a,i.end(e))});break}if(ot){const t=Math.max(o,i.start(e)),n=Math.min(a,i.end(e));n>t&&(r.partial=!0,r.time.push({startPTS:t,endPTS:n}))}else if(a<=t)break}return r}getPartialFragment(e){let t,n,i,r=null,o=0;const{bufferPadding:a,fragments:s}=this;return Object.keys(s).forEach((l=>{const c=s[l];c&&wn(c)&&(n=c.body.start-a,i=c.body.end+a,e>=n&&e<=i&&(t=Math.min(e-n,i-e),o<=t&&(r=c.body,o=t)))})),r}isEndListAppended(e){const t=this.endListFragments[e];return void 0!==t&&(t.buffered||wn(t))}getState(e){const t=xn(e),n=this.fragments[t];return n?n.buffered?wn(n)?vn:yn:mn:gn}isTimeBuffered(e,t,n){let i,r;for(let o=0;o=i&&t<=r)return!0;if(t<=i)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if("initSegment"===t.frag.sn||t.frag.bitrateTest)return;const n=t.frag,i=t.part?null:t,r=xn(n);this.fragments[r]={body:n,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:i,timeRanges:r,type:o}=t;if("initSegment"===n.sn)return;const a=n.type;if(i){let e=this.activePartLists[a];e||(this.activePartLists[a]=e=[]),e.push(i)}this.timeRanges=r;const s=r[o];this.detectEvictedFragments(o,s,a,i)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=xn(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let i=n.length;i--;){const r=t[n[i]];if((null==r?void 0:r.body.type)===e)return!0}return!1}hasParts(e){var t;return!(null==(t=this.activePartLists[e])||!t.length)}removeFragmentsInRange(e,t,n,i,r){i&&!this.hasGaps||Object.keys(this.fragments).forEach((o=>{const a=this.fragments[o];if(!a)return;const s=a.body;s.type!==n||i&&!s.gap||s.starte&&(a.buffered||r)&&this.removeFragment(s)}))}removeFragment(e){const t=xn(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const t=e.sn;this.activePartLists[e.type]=Sn(n,(e=>e.fragment.sn!==t))}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e,t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const n=null==(e=this.hls)||null==(t=e.latestLevelDetails)?void 0:t.partList;n&&n.forEach((e=>e.clearElementaryStreamInfo()))}}function wn(e){var t,n,i;return e.buffered&&(e.body.gap||(null==(t=e.range.video)?void 0:t.partial)||(null==(n=e.range.audio)?void 0:n.partial)||(null==(i=e.range.audiovideo)?void 0:i.partial))}function xn(e){return`${e.type}_${e.level}_${e.sn}`}function Sn(e,t){return e.filter((e=>{const n=t(e);return n||e.clearElementaryStreamInfo(),n}))}var kn=0,_n=1;class Cn{constructor(e,t,n){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=n}decrypt(e,t){switch(this.aesMode){case kn:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case _n:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}class Pn{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),n=new Uint32Array(4);for(let e=0;e<4;e++)n[e]=t.getUint32(4*e);return n}initTable(){const e=this.sBox,t=this.invSBox,n=this.subMix,i=n[0],r=n[1],o=n[2],a=n[3],s=this.invSubMix,l=s[0],c=s[1],u=s[2],h=s[3],d=new Uint32Array(256);let p=0,f=0,g=0;for(g=0;g<256;g++)d[g]=g<128?g<<1:g<<1^283;for(g=0;g<256;g++){let n=f^f<<1^f<<2^f<<3^f<<4;n=n>>>8^255&n^99,e[p]=n,t[n]=p;const s=d[p],g=d[s],m=d[g];let v=257*d[n]^16843008*n;i[p]=v<<24|v>>>8,r[p]=v<<16|v>>>16,o[p]=v<<8|v>>>24,a[p]=v,v=16843009*m^65537*g^257*s^16843008*p,l[n]=v<<24|v>>>8,c[n]=v<<16|v>>>16,u[n]=v<<8|v>>>24,h[n]=v,p?(p=s^d[d[d[m^s]]],f^=d[d[f]]):p=f=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,i=0;for(;i{const a=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(a,t,n,i);const s=this.flush();s?r(s.buffer):o(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(e),t,n,i)}softwareDecrypt(e,t,n,i){const{currentIV:r,currentResult:o,remainderData:a}=this;if(i!==kn||16!==t.byteLength)return me.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),a&&(e=it(a,e),this.remainderData=null);const s=this.getValidChunk(e);if(!s.length)return null;r&&(n=r);let l=this.softwareDecrypter;l||(l=this.softwareDecrypter=new Pn),l.expandKey(t);const c=o;return this.currentResult=l.decrypt(s.buffer,0,n),this.currentIV=s.slice(-16).buffer,c||null}webCryptoDecrypt(e,t,n,i){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n,i));this.key=t,this.fastAesKey=new En(this.subtle,t,i)}return this.fastAesKey.expandKey().then((t=>{if(!this.subtle)return Promise.reject(new Error("web crypto not initialized"));this.logOnce("WebCrypto AES decrypt");return new Cn(this.subtle,new Uint8Array(n),i).decrypt(e.buffer,t)})).catch((r=>(me.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${r.name}: ${r.message}`),this.onWebCryptoError(e,t,n,i))))}onWebCryptoError(e,t,n,i){const r=this.enableSoftwareAES;if(r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,i);const r=this.flush();if(r)return r.buffer}throw new Error("WebCrypto"+(r?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%16;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(me.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const Ln=Math.pow(2,17);class An{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){const n=e.url;if(!n)return Promise.reject(new Nn({type:W.NETWORK_ERROR,details:q.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error("Fragment does not have a "+(n?"part list":"url")),networkDetails:null}));this.abort();const i=this.config,r=i.fLoader,o=i.loader;return new Promise(((a,s)=>{if(this.loader&&this.loader.destroy(),e.gap){if(e.tagList.some((e=>"GAP"===e[0])))return void s(Dn(e));e.gap=!1}const l=this.loader=r?new r(i):new o(i),c=Tn(e);e.loader=l;const u=on(i.fragLoadPolicy.default),h={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===e.sn?1/0:Ln};e.stats=l.stats;const d={onSuccess:(t,n,i,r)=>{this.resetLoader(e,l);let o=t.data;i.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(o.slice(0,16)),o=o.slice(16)),a({frag:e,part:null,payload:o,networkDetails:r})},onError:(t,i,r,o)=>{this.resetLoader(e,l),s(new Nn({type:W.NETWORK_ERROR,details:q.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:ce({url:n,data:void 0},t),error:new Error(`HTTP Error ${t.code} ${t.text}`),networkDetails:r,stats:o}))},onAbort:(t,n,i)=>{this.resetLoader(e,l),s(new Nn({type:W.NETWORK_ERROR,details:q.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:i,stats:t}))},onTimeout:(t,n,i)=>{this.resetLoader(e,l),s(new Nn({type:W.NETWORK_ERROR,details:q.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${h.timeout}ms`),networkDetails:i,stats:t}))}};t&&(d.onProgress=(n,i,r,o)=>t({frag:e,part:null,payload:r,networkDetails:o})),l.load(c,h,d)}))}loadPart(e,t,n){this.abort();const i=this.config,r=i.fLoader,o=i.loader;return new Promise(((a,s)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap)return void s(Dn(e,t));const l=this.loader=r?new r(i):new o(i),c=Tn(e,t);e.loader=l;const u=on(i.fragLoadPolicy.default),h={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Ln};t.stats=l.stats,l.load(c,h,{onSuccess:(i,r,o,s)=>{this.resetLoader(e,l),this.updateStatsFromPart(e,t);const c={frag:e,part:t,payload:i.data,networkDetails:s};n(c),a(c)},onError:(n,i,r,o)=>{this.resetLoader(e,l),s(new Nn({type:W.NETWORK_ERROR,details:q.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:ce({url:c.url,data:void 0},n),error:new Error(`HTTP Error ${n.code} ${n.text}`),networkDetails:r,stats:o}))},onAbort:(n,i,r)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,l),s(new Nn({type:W.NETWORK_ERROR,details:q.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:r,stats:n}))},onTimeout:(n,i,r)=>{this.resetLoader(e,l),s(new Nn({type:W.NETWORK_ERROR,details:q.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${h.timeout}ms`),networkDetails:r,stats:n}))}})}))}updateStatsFromPart(e,t){const n=e.stats,i=t.stats,r=i.total;if(n.loaded+=i.loaded,r){const i=Math.round(e.duration/t.duration),o=Math.min(Math.round(n.loaded/r),i),a=(i-o)*Math.round(n.loaded/o);n.total=n.loaded+a}else n.total=Math.max(n.loaded,n.total);const o=n.loading,a=i.loading;o.start?o.first+=a.first-a.start:(o.start=a.start,o.first=a.first),o.end=a.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function Tn(e,t=null){const n=t||e,i={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},r=n.byteRangeStartOffset,o=n.byteRangeEndOffset;if(G(r)&&G(o)){var a;let t=r,n=o;if("initSegment"===e.sn&&("AES-128"===(s=null==(a=e.decryptdata)?void 0:a.method)||"AES-256"===s)){const e=o-r;e%16&&(n=o+(16-e%16)),0!==r&&(i.resetIV=!0,t=r-16)}i.rangeStart=t,i.rangeEnd=n}var s;return i}function Dn(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),i={type:W.MEDIA_ERROR,details:q.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(i.part=t),(t||e).stats.aborted=!0,new Nn(i)}class Nn extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class In extends ue{constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)}clearNextTick(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)}tick(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class Bn{constructor(e,t,n,i=0,r=-1,o=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=e,this.sn=t,this.id=n,this.size=i,this.part=r,this.partial=o}}const Rn={length:0,start:()=>0,end:()=>0};class On{static isBuffered(e,t){if(e){const n=On.getBuffered(e);for(let e=n.length;e--;)if(t>=n.start(e)&&t<=n.end(e))return!0}return!1}static bufferedRanges(e){if(e){const t=On.getBuffered(e);return On.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let n=0;n1&&e.sort(((e,t)=>e.start-t.start||t.end-e.end));let i=-1,r=[];if(n)for(let o=0;o=e[o].start&&t<=e[o].end&&(i=o);const a=r.length;if(a){const t=r[a-1].end;e[o].start-tt&&(r[a-1].end=e[o].end):r.push(e[o])}else r.push(e[o])}else r=e;let o,a=0,s=t,l=t;for(let e=0;e=c&&t<=u&&(i=e),t+n>=c&&t{const i=t.substring(2,t.length-1),r=null==n?void 0:n[i];return void 0===r?(e.playlistParsingError||(e.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),t):r}))}return t}function $n(e,t,n){let i,r,o=e.variableList;if(o||(e.variableList=o={}),"QUERYPARAM"in t){i=t.QUERYPARAM;try{const e=new self.URL(n).searchParams;if(!e.has(i))throw new Error(`"${i}" does not match any query parameter in URI: "${n}"`);r=e.get(i)}catch(t){e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${t.message}`))}}else i=t.NAME,r=t.VALUE;i in o?e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):o[i]=r||""}function Hn(e,t,n){const i=t.IMPORT;if(n&&i in n){let t=e.variableList;t||(e.variableList=t={}),t[i]=n[i]}else e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${i}"`))}const Zn=/^(\d+)x(\d+)$/,Kn=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Gn{constructor(e,t){"string"==typeof e&&(e=Gn.parseAttrList(e,t)),se(this,e)}get clientAttrs(){return Object.keys(this).filter((e=>"X-"===e.substring(0,2)))}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(1&t.length?"0":"")+t;const n=new Uint8Array(t.length/2);for(let e=0;eNumber.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const n=this[e];return(n?n.split(/[ ,]+/):[]).reduce(((e,t)=>(e[t.toLowerCase()]=!0,e)),t)}bool(e){return"YES"===this[e]}decimalResolution(e){const t=Zn.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let n;const i={};for(Kn.lastIndex=0;null!==(n=Kn.exec(e));){const r=n[1].trim();let o=n[2];const a=0===o.indexOf('"')&&o.lastIndexOf('"')===o.length-1;let s=!1;if(a)o=o.slice(1,-1);else switch(r){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":s=!0}if(t&&(a||s))o=jn(t,o);else if(!s&&!a)switch(r){case"CLOSED-CAPTIONS":if("NONE"===o)break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":me.warn(`${e}: attribute ${r} is missing quotes`)}i[r]=o}return i}}function Un(e){return"SCTE35-OUT"===e||"SCTE35-IN"===e||"SCTE35-CMD"===e}class Vn{constructor(e,t,n=0){var i;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(null==t?void 0:t.tagAnchor)||null,this.tagOrder=null!=(i=null==t?void 0:t.tagOrder)?i:n,t){const n=t.attr;for(const t in n)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==n[t]){me.warn(`DATERANGE tag attribute: "${t}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=t;break}e=se(new Gn({}),n,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const e=(null==t?void 0:t.endDate)||new Date(this.attr["END-DATE"]);G(e.getTime())&&(this._endDate=e)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const e=this._cue;return void 0===e?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){const{tagAnchor:e}=this;return null===e||null===e.programDateTime?(me.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const e=this._endDate||this._dateAtEnd;if(e)return e;const t=this.duration;return null!==t?this._dateAtEnd=new Date(this._startDate.getTime()+1e3*t):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(G(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return"com.apple.hls.interstitial"===this.class}get isValid(){return!!this.id&&!this._badValueForSameId&&G(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}class Wn{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e)return this.advanced=!0,void(this.updated=!0);const t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||0===t&&n>0,this.updated||this.advanced?this.misses=Math.floor(.6*e.misses):this.misses=e.misses+1}get hasProgramDateTime(){return!!this.fragments.length&&G(this.fragments[this.fragments.length-1].programDateTime)}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||10}get drift(){const e=this.driftEndTime-this.driftStartTime;if(e>0){return 1e3*(this.driftEnd-this.driftStart)/e}return 1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var e;return null!=(e=this.fragments)&&e.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){var e;return null!=(e=this.fragments)&&e.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const e=this.partList;if(e){const t=this.lastPartIndex;if(-1!==t){for(let n=e.length;n--;)if(e[n].index>t)return e[n].index;return t}}return 0}get lastPartSn(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function qn(e){return"AES-128"===e||"AES-256"===e||"AES-256-CTR"===e}function Yn(e){switch(e){case"AES-128":case"AES-256":return kn;case"AES-256-CTR":return _n;default:throw new Error(`invalid full segment method ${e}`)}}function Xn(e){return Uint8Array.from(atob(e),(e=>e.charCodeAt(0)))}function Qn(e){return Uint8Array.from(unescape(encodeURIComponent(e)),(e=>e.charCodeAt(0)))}function Jn(e){const t=e.split(":");let n=null;if("data"===t[0]&&2===t.length){const e=t[1].split(";"),i=e[e.length-1].split(",");if(2===i.length){const t="base64"===i[0],r=i[1];t?(e.splice(-1,1),n=Xn(r)):n=function(e){const t=Qn(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}(r)}}return n}const ei="undefined"!=typeof self?self:void 0;var ti={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},ni="org.w3.clearkey",ii="com.apple.streamingkeydelivery",ri="com.microsoft.playready",oi="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function ai(e){switch(e){case ii:return ti.FAIRPLAY;case ri:return ti.PLAYREADY;case oi:return ti.WIDEVINE;case ni:return ti.CLEARKEY}}var si="1077efecc0b24d02ace33c1e52e2fb4b",li="e2719d58a985b3c9781ab030af78d30e",ci="9a04f07998404286ab92e65be0885f95",ui="edef8ba979d64acea3c827dcd51d21ed";function hi(e){return e===ui?ti.WIDEVINE:e===ci?ti.PLAYREADY:e===si||e===li?ti.CLEARKEY:void 0}function di(e){switch(e){case ti.FAIRPLAY:return ii;case ti.PLAYREADY:return ri;case ti.WIDEVINE:return oi;case ti.CLEARKEY:return ni}}function pi(e){const{drmSystems:t,widevineLicenseUrl:n}=e,i=t?[ti.FAIRPLAY,ti.WIDEVINE,ti.PLAYREADY,ti.CLEARKEY].filter((e=>!!t[e])):[];return!i[ti.WIDEVINE]&&n&&i.push(ti.WIDEVINE),i}const fi=null!=ei&&null!=(gi=ei.navigator)&&gi.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;var gi;function mi(e){const t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n=String.fromCharCode.apply(null,Array.from(t)),i=n.substring(n.indexOf("<"),n.length),r=(new DOMParser).parseFromString(i,"text/xml").getElementsByTagName("KID")[0];if(r){const e=r.childNodes[0]?r.childNodes[0].nodeValue:r.getAttribute("VALUE");if(e){const t=Xn(e).subarray(0,16);return function(e){const t=function(e,t,n){const i=e[t];e[t]=e[n],e[n]=i};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}(t),t}}return null}let vi={};class yi{static clearKeyUriToKeyIdMap(){vi={}}constructor(e,t,n,i=[1],r=null){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=i,this.iv=r,this.encrypted=!!e&&"NONE"!==e,this.isCommonEncryption=this.encrypted&&!qn(e)}isSupported(){if(this.method){if(qn(this.method)||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case ii:case oi:case ri:case ni:return-1!==["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(qn(this.method)&&this.uri&&!this.iv){"number"!=typeof e&&(me.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const t=function(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}(e);return new yi(this.method,this.uri,"identity",this.keyFormatVersions,t)}const t=Jn(this.uri);if(t)switch(this.keyFormat){case oi:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case ri:{const e=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=ct(e,0,t),this.keyId=mi(t);break}default:{let e=t.subarray(0,16);if(16!==e.length){const t=new Uint8Array(16);t.set(e,16-e.length),e=t}this.keyId=e;break}}if(!this.keyId||16!==this.keyId.byteLength){let e=vi[this.uri];if(!e){const t=Object.keys(vi).length%Number.MAX_SAFE_INTEGER;e=new Uint8Array(16);new DataView(e.buffer,12,4).setUint32(0,t),vi[this.uri]=e}this.keyId=e}return this}}const bi=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,wi=/#EXT-X-MEDIA:(.*)/g,xi=/^#EXT(?:INF|-X-TARGETDURATION):/m,Si=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),ki=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class _i{static findGroup(e,t){for(let n=0;n0&&i.length({id:e.attrs.AUDIO,audioCodec:e.audioCodec}))),SUBTITLES:o.map((e=>({id:e.attrs.SUBTITLES,textCodec:e.textCodec}))),"CLOSED-CAPTIONS":[]};let s=0;for(wi.lastIndex=0;null!==(i=wi.exec(e));){const e=new Gn(i[1],n),o=e.TYPE;if(o){const n=a[o],i=r[o]||[];r[o]=i;const l=e.LANGUAGE,c=e["ASSOC-LANGUAGE"],u=e.CHANNELS,h=e.CHARACTERISTICS,d=e["INSTREAM-ID"],p={attrs:e,bitrate:0,id:s++,groupId:e["GROUP-ID"]||"",name:e.NAME||l||"",type:o,default:e.bool("DEFAULT"),autoselect:e.bool("AUTOSELECT"),forced:e.bool("FORCED"),lang:l,url:e.URI?_i.resolve(e.URI,t):""};if(c&&(p.assocLang=c),u&&(p.channels=u),h&&(p.characteristics=h),d&&(p.instreamId=d),null!=n&&n.length){const e=_i.findGroup(n,p.groupId)||n[0];Ai(p,e,"audioCodec"),Ai(p,e,"textCodec")}i.push(p)}}return r}static parseLevelPlaylist(e,t,n,i,r,o){var a;const s={url:t},l=new Wn(t),c=l.fragments,u=[];let h,d,p,f,g=null,m=0,v=0,y=0,b=0,w=0,x=null,S=new Re(i,s),k=-1,_=!1,C=null;if(Si.lastIndex=0,l.m3u8=e,l.hasVariableRefs=zn(e),"#EXTM3U"!==(null==(a=Si.exec(e))?void 0:a[0]))return l.playlistParsingError=new Error("Missing format identifier #EXTM3U"),l;for(;null!==(h=Si.exec(e));){_&&(_=!1,S=new Re(i,s),S.playlistOffset=y,S.start=y,S.sn=m,S.cc=b,w&&(S.bitrate=w),S.level=n,g&&(S.initSegment=g,g.rawProgramDateTime&&(S.rawProgramDateTime=g.rawProgramDateTime,g.rawProgramDateTime=null),C&&(S.setByteRange(C),C=null)));const e=h[1];if(e){S.duration=parseFloat(e);const t=(" "+h[2]).slice(1);S.title=t||null,S.tagList.push(t?["INF",e,t]:["INF",e])}else if(h[3]){if(G(S.duration)){S.playlistOffset=y,S.start=y,p&&Ni(S,p,l),S.sn=m,S.level=n,S.cc=b,c.push(S);const e=(" "+h[3]).slice(1);S.relurl=jn(l,e),Ti(S,x,u),x=S,y+=S.duration,m++,v=0,_=!0}}else{if(h=h[0].match(ki),!h){me.warn("No matches on slow regex match for level playlist!");continue}for(d=1;d0&&Bi(l,e,h),m=l.startSN=parseInt(r);break;case"SKIP":{l.skippedSegments&&Ii(l,e,h);const t=new Gn(r,l),n=t.decimalInteger("SKIPPED-SEGMENTS");if(G(n)){l.skippedSegments+=n;for(let e=n;e--;)c.push(null);m+=n}const i=t.enumeratedString("RECENTLY-REMOVED-DATERANGES");i&&(l.recentlyRemovedDateranges=(l.recentlyRemovedDateranges||[]).concat(i.split("\t")));break}case"TARGETDURATION":0!==l.targetduration&&Ii(l,e,h),l.targetduration=Math.max(parseInt(r),1);break;case"VERSION":null!==l.version&&Ii(l,e,h),l.version=parseInt(r);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":l.live||Ii(l,e,h),l.live=!1;break;case"#":(r||a)&&S.tagList.push(a?[r,a]:[r]);break;case"DISCONTINUITY":b++,S.tagList.push(["DIS"]);break;case"GAP":S.gap=!0,S.tagList.push([e]);break;case"BITRATE":S.tagList.push([e,r]),w=1e3*parseInt(r),G(w)?S.bitrate=w:w=0;break;case"DATERANGE":{const e=new Gn(r,l),t=new Vn(e,l.dateRanges[e.ID],l.dateRangeTagCount);l.dateRangeTagCount++,t.isValid||l.skippedSegments?l.dateRanges[t.id]=t:me.warn(`Ignoring invalid DATERANGE tag: "${r}"`),S.tagList.push(["EXT-X-DATERANGE",r]);break}case"DEFINE":{const e=new Gn(r,l);"IMPORT"in e?Hn(l,e,o):$n(l,e,t)}break;case"DISCONTINUITY-SEQUENCE":0!==l.startCC?Ii(l,e,h):c.length>0&&Bi(l,e,h),l.startCC=b=parseInt(r);break;case"KEY":{const e=Ei(r,t,l);if(e.isSupported()){if("NONE"===e.method){p=void 0;break}p||(p={}),p[e.keyFormat]&&(p=se({},p)),p[e.keyFormat]=e}else me.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${r}"`);break}case"START":l.startTimeOffset=Mi(r);break;case"MAP":{const e=new Gn(r,l);if(S.duration){const t=new Re(i,s);Di(t,e,n,p),g=t,S.initSegment=g,g.rawProgramDateTime&&!S.rawProgramDateTime&&(S.rawProgramDateTime=g.rawProgramDateTime)}else{const t=S.byteRangeEndOffset;if(t){const e=S.byteRangeStartOffset;C=`${t-e}@${e}`}else C=null;Di(S,e,n,p),g=S,_=!0}g.cc=b;break}case"SERVER-CONTROL":f&&Ii(l,e,h),f=new Gn(r),l.canBlockReload=f.bool("CAN-BLOCK-RELOAD"),l.canSkipUntil=f.optionalFloat("CAN-SKIP-UNTIL",0),l.canSkipDateRanges=l.canSkipUntil>0&&f.bool("CAN-SKIP-DATERANGES"),l.partHoldBack=f.optionalFloat("PART-HOLD-BACK",0),l.holdBack=f.optionalFloat("HOLD-BACK",0);break;case"PART-INF":{l.partTarget&&Ii(l,e,h);const t=new Gn(r);l.partTarget=t.decimalFloatingPoint("PART-TARGET");break}case"PART":{let e=l.partList;e||(e=l.partList=[]);const t=v>0?e[e.length-1]:void 0,n=v++,i=new Gn(r,l),o=new Oe(i,S,s,n,t);e.push(o),S.duration+=o.duration;break}case"PRELOAD-HINT":{const e=new Gn(r,l);l.preloadHint=e;break}case"RENDITION-REPORT":{const e=new Gn(r,l);l.renditionReports=l.renditionReports||[],l.renditionReports.push(e);break}default:me.warn(`line parsed but not handled: ${h}`)}}}x&&!x.relurl?(c.pop(),y-=x.duration,l.partList&&(l.fragmentHint=x)):l.partList&&(Ti(S,x,u),S.cc=b,l.fragmentHint=S,p&&Ni(S,p,l)),l.targetduration||(l.playlistParsingError=new Error("#EXT-X-TARGETDURATION is required"));const P=c.length,E=c[0],M=c[P-1];if(y+=l.skippedSegments*l.targetduration,y>0&&P&&M){l.averagetargetduration=y/P;const e=M.sn;l.endSN="initSegment"!==e?e:0,l.live||(M.endList=!0),E&&void 0===l.startCC&&(l.startCC=E.cc),k>0&&(!function(e,t){let n=e[t];for(let i=t;i--;){const t=e[i];if(!t)return;t.programDateTime=n.programDateTime-1e3*t.duration,n=t}}(c,k),E&&u.unshift(E))}else l.endSN=0,l.startCC=0;return l.fragmentHint&&(y+=l.fragmentHint.duration),l.totalduration=y,u.length&&l.dateRangeTagCount&&E&&Ci(u,l),l.endCC=b,l}}function Ci(e,t){const n=e.length;if(!n)return;const i=e[n-1],r=t.live?1/0:t.totalduration,o=Object.keys(t.dateRanges);for(let a=o.length;a--;){const s=t.dateRanges[o[a]],l=s.startDate.getTime();s.tagAnchor=i.ref;for(let i=n;i--;){const n=Pi(t,l,e,i,r);if(-1!==n){s.tagAnchor=t.fragments[n].ref;break}}}}function Pi(e,t,n,i,r){const o=n[i];if(o){const s=o.programDateTime;if(t>=s||0===i){var a;if(t<=s+1e3*(((null==(a=n[i+1])?void 0:a.start)||r)-o.start)){const r=n[i].sn-e.startSN,o=e.fragments;if(o.length>n.length){for(let a=(n[i+1]||o[o.length-1]).sn-e.startSN;a>r;a--){const e=o[a].programDateTime;if(t>=e&&te));["video","audio","text"].forEach((e=>{const i=n.filter((t=>pt(t,e)));i.length&&(t[`${e}Codec`]=i.map((e=>e.split("/")[0])).join(","),n=n.filter((e=>-1===i.indexOf(e))))})),t.unknownCodecs=n}function Ai(e,t,n){const i=t[n];i&&(e[n]=i)}function Ti(e,t,n){e.rawProgramDateTime?n.push(e):null!=t&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function Di(e,t,n,i){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",i&&(e.levelkeys=i),e.initSegment=null}function Ni(e,t,n){e.levelkeys=t;const{encryptedFragments:i}=n;i.length&&i[i.length-1].levelkeys===t||!Object.keys(t).some((e=>t[e].isCommonEncryption))||i.push(e)}function Ii(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must not appear more than once (${n[0]})`)}function Bi(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must appear before the first Media Segment (${n[0]})`)}function Ri(e,t){const n=t.startPTS;if(G(n)){let i,r=0;t.sn>e.sn?(r=n-e.start,i=e):(r=e.start-n,i=t),i.duration!==r&&i.setDuration(r)}else if(t.sn>e.sn){e.cc===t.cc&&e.minEndPTS?t.setStart(e.start+(e.minEndPTS-e.start)):t.setStart(e.start+e.duration)}else t.setStart(Math.max(e.start-t.duration,0))}function Oi(e,t,n,i,r,o){i-n<=0&&(me.warn("Fragment should have a positive duration",t),i=n+t.duration,o=r+t.duration);let a=n,s=i;const l=t.startPTS,c=t.endPTS;if(G(l)){const e=Math.abs(l-n);G(t.deltaPTS)?t.deltaPTS=Math.max(e,t.deltaPTS):t.deltaPTS=e,a=Math.max(n,l),n=Math.min(n,l),r=Math.min(r,t.startDTS),s=Math.min(i,c),i=Math.max(i,c),o=Math.max(o,t.endDTS)}const u=n-t.start;0!==t.start&&t.setStart(n),t.setDuration(i-t.start),t.startPTS=n,t.maxStartPTS=a,t.startDTS=r,t.endPTS=i,t.minEndPTS=s,t.endDTS=o;const h=t.sn;if(!e||he.endSN)return 0;let d;const p=h-e.startSN,f=e.fragments;for(f[p]=t,d=p;d>0;d--)Ri(f[d],f[d-1]);for(d=p;d=0;e--){const t=i[e].initSegment;if(t){n=t;break}}let r;e.fragmentHint&&delete e.fragmentHint.endPTS,function(e,t,n){const i=t.skippedSegments,r=Math.max(e.startSN,t.startSN)-t.startSN,o=(e.fragmentHint?1:0)+(i?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,a=t.startSN-e.startSN,s=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments;for(let c=r;c<=o;c++){const r=l[a+c];let o=s[c];if(i&&!o&&r&&(o=t.fragments[c]=r),r&&o){if(n(r,o,c,s),r.url&&r.url!==o.url)return void(t.playlistParsingError=zi(`media sequence mismatch ${o.sn}:`,e,t,r,o));if(r.cc!==o.cc)return void(t.playlistParsingError=zi(`discontinuity sequence mismatch (${r.cc}!=${o.cc})`,e,t,r,o))}}}(e,t,((e,i,o,a)=>{if((!t.startCC||t.skippedSegments)&&i.cc!==e.cc){const n=e.cc-i.cc;for(let e=o;e{var t;!e||e.initSegment&&e.initSegment.relurl!==(null==(t=n)?void 0:t.relurl)||(e.initSegment=n)})),t.skippedSegments){if(t.deltaUpdateFailed=o.some((e=>!e)),t.deltaUpdateFailed){me.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let e=t.skippedSegments;e--;)o.shift();t.startSN=o[0].sn}else{t.canSkipDateRanges&&(t.dateRanges=function(e,t){const{dateRanges:n,recentlyRemovedDateranges:i}=t,r=se({},e);i&&i.forEach((e=>{delete r[e]}));const o=Object.keys(r).length;o&&Object.keys(n).forEach((e=>{const t=r[e],i=new Vn(n[e].attr,t);i.isValid?(r[e]=i,t||(i.tagOrder+=o)):me.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${$t(n[e].attr)}"`)}));return r}(e.dateRanges,t));const n=e.fragments.filter((e=>e.rawProgramDateTime));if(e.hasProgramDateTime&&!t.hasProgramDateTime)for(let e=1;e{t.elementaryStreams=e.elementaryStreams,t.stats=e.stats})),r?Oi(t,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):ji(e,t),o.length&&(t.totalduration=t.edge-o[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;const l=t.advancedDateTime;if(t.advanced&&l){const e=t.edge;t.driftStart||(t.driftStartTime=l,t.driftStart=e),t.driftEndTime=l,t.driftEnd=e}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime;-1===t.requestScheduled&&(t.requestScheduled=e.requestScheduled)}function zi(e,t,n,i,r){return new Error(`${e} ${r.url}\nPlaylist starting @${t.startSN}\n${t.m3u8}\n\nPlaylist starting @${n.startSN}\n${n.m3u8}`)}function ji(e,t,n=!0){const i=t.startSN+t.skippedSegments-e.startSN,r=e.fragments,o=i>=0;let a=0;if(o&&it){const e=1e3*i[i.length-1].duration;e{var n;null==(n=e.details)||n.fragments.forEach((e=>{e.level=t,e.initSegment&&(e.initSegment.level=t)}))}))}function Vi(e,t){for(let i=0,r=e.length;ie.startCC)}(t,e))return;const n=Math.min(t.endCC,e.endCC),i=Vi(t.fragments,n),r=Vi(e.fragments,n);if(!i||!r)return;me.log(`Aligning playlist at start of dicontinuity sequence ${n}`);qi(i.start-r.start,e)}function Xi(e,t){if(!e.hasProgramDateTime||!t.hasProgramDateTime)return;const n=e.fragments,i=t.fragments;if(!n.length||!i.length)return;let r,o;const a=Math.min(t.endCC,e.endCC);t.startCC{const{config:e,fragCurrent:t,media:n,mediaBuffer:i,state:r}=this,o=n?n.currentTime:0,a=On.bufferInfo(i||n,o,e.maxBufferHole);if(this.log(`media seeking to ${G(o)?o.toFixed(3):o}, state: ${r}`),this.state===sr)this.resetLoadingState();else if(t){const n=e.maxFragLookUpTolerance,i=t.start-n,r=t.start+t.duration+n;if(!a.len||ra.end){const e=o>r;(othis.lastCurrentTime&&(this.lastCurrentTime=o),!this.loadingParts){const e=Math.max(a.end,o),t=this.shouldLoadParts(this.getLevelDetails(),e);t&&(this.log(`LL-Part loading ON after seeking to ${o.toFixed(2)} with buffer @${e.toFixed(2)}`),this.loadingParts=t)}}this.hls.hasEnoughToStart||a.len||(this.log(`setting startPosition to ${o} because of seek before start`),this.nextLoadPosition=this.startPosition=o),this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=r,this.hls=e,this.fragmentLoader=new An(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Mn(e.config)}registerListeners(){const{hls:e}=this;e.on(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(Y.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(Y.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===Ji)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;null!=e&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Ji}get startPositionValue(){const{nextLoadPosition:e,startPosition:t}=this;return-1===t&&e?e:t}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;const n=e.end||0,i=this.config.timelineOffset||0;if(n<=i)return!1;const r=e.buffered;this.config.maxBufferHole&&r&&r.length>1&&(e=On.bufferedInfo(r,e.start,0));const o=e.nextStart;if(o&&o>i&&o{const t=e.frag;if(this.fragContextChanged(t))return this.warn(`${t.type} sn: ${t.sn}${e.part?" part: "+e.part.index:""} of ${this.fragInfo(t,!1,e.part)}) was dropped during download.`),void this.fragmentTracker.removeFragment(t);t.stats.chunkCount++,this._handleFragmentLoadProgress(e)})).then((e=>{if(!e)return;const t=this.state,n=e.frag;this.fragContextChanged(n)?(t===nr||!this.fragCurrent&&t===or)&&(this.fragmentTracker.removeFragment(n),this.state=er):("payload"in e&&(this.log(`Loaded ${n.type} sn: ${n.sn} of ${this.playlistLabel()} ${n.level}`),this.hls.trigger(Y.FRAG_LOADED,e)),this._handleFragmentLoadComplete(e))})).catch((t=>{this.state!==Ji&&this.state!==lr&&(this.warn(`Frag error: ${(null==t?void 0:t.message)||t}`),this.resetFragmentLoading(e))}))}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===mn){const t=e.type,i=this.getFwdBufferInfo(this.mediaBuffer,t),r=Math.max(e.duration,i?i.len:this.config.maxBufferLength),o=this.backtrackFragment;(1===(o?e.sn-o.sn:0)||this.reduceMaxBufferLength(r,e.duration))&&n.removeFragment(e)}else 0===(null==(t=this.mediaBuffer)?void 0:t.buffered.length)?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===vn&&n.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}waitForLive(e){const t=e.details;return(null==t?void 0:t.live)&&"EVENT"!==t.type&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const i={startOffset:e,endOffset:t,type:n};this.hls.trigger(Y.BUFFER_FLUSHING,i)}_loadInitSegment(e,t){this._doFragLoad(e,t).then((e=>{const t=null==e?void 0:e.frag;if(!t||this.fragContextChanged(t)||!this.levels)throw new Error("init load aborted");return e})).then((e=>{const{hls:t}=this,{frag:n,payload:i}=e,r=n.decryptdata;if(i&&i.byteLength>0&&null!=r&&r.key&&r.iv&&qn(r.method)){const o=self.performance.now();return this.decrypter.decrypt(new Uint8Array(i),r.key.buffer,r.iv.buffer,Yn(r.method)).catch((e=>{throw t.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:n}),e})).then((i=>{const r=self.performance.now();return t.trigger(Y.FRAG_DECRYPTED,{frag:n,payload:i,stats:{tstart:o,tdecrypt:r}}),e.payload=i,this.completeInitSegmentLoad(e)}))}return this.completeInitSegmentLoad(e)})).catch((t=>{this.state!==Ji&&this.state!==lr&&(this.warn(t),this.resetFragmentLoading(e))}))}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const n=e.frag.stats;this.state!==Ji&&(this.state=er),e.frag.data=new Uint8Array(e.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){const n=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)} > buffer:${n?Qi(On.getBuffered(n)):"(detached)"})`),Be(e)){var i;if(e.type!==ie){const t=e.elementaryStreams;if(!Object.keys(t).some((e=>!!t[e])))return void(this.state=er)}const t=null==(i=this.levels)?void 0:i[e.level];null!=t&&t.fragmentError&&(this.log(`Resetting level fragment error count of ${t.fragmentError} on frag buffered`),t.fragmentError=0)}this.state=er}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:i,partsLoaded:r}=e,o=!r||0===r.length||r.some((e=>!e)),a=new Bn(n.level,n.sn,n.stats.chunkCount+1,0,i?i.index:-1,!o);t.flush(a)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,i){var r;this.fragCurrent=e;const o=null==t?void 0:t.details;if(!this.levels||!o)throw new Error(`frag load aborted, missing level${o?"":" detail"}s`);let a=null;!e.encrypted||null!=(r=e.decryptdata)&&r.key?e.encrypted||(a=this.keyLoader.loadClear(e,o.encryptedFragments),a&&this.log("[eme] blocking frag load until media-keys acquired")):(this.log(`Loading key for ${e.sn} of [${o.startSN}-${o.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=tr,this.fragCurrent=e,a=this.keyLoader.load(e).then((e=>{if(!this.fragContextChanged(e.frag))return this.hls.trigger(Y.KEY_LOADED,e),this.state===tr&&(this.state=er),e})),this.hls.trigger(Y.KEY_LOADING,{frag:e}),null===this.fragCurrent&&(a=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING"))));const s=this.fragPrevious;if(Be(e)&&(!s||e.sn!==s.sn)){const n=this.shouldLoadParts(t.details,e.end);n!==this.loadingParts&&(this.log(`LL-Part loading ${n?"ON":"OFF"} loading sn ${null==s?void 0:s.sn}->${e.sn}`),this.loadingParts=n)}if(n=Math.max(e.start,n||0),this.loadingParts&&Be(e)){const r=o.partList;if(r&&i){n>e.end&&o.fragmentHint&&(e=o.fragmentHint);const s=this.getNextPart(r,e,n);if(s>-1){const l=r[s];let c;return e=this.fragCurrent=l.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${l.index} (${s}/${r.length-1}) of ${this.fragInfo(e,!1,l)}) cc: ${e.cc} [${o.startSN}-${o.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=l.start+l.duration,this.state=nr,c=a?a.then((n=>!n||this.fragContextChanged(n.frag)?null:this.doFragPartsLoad(e,l,t,i))).catch((e=>this.handleFragLoadError(e))):this.doFragPartsLoad(e,l,t,i).catch((e=>this.handleFragLoadError(e))),this.hls.trigger(Y.FRAG_LOADING,{frag:e,part:l,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):c}if(!e.url||this.loadedEndOfParts(r,n))return Promise.resolve(null)}}if(Be(e)&&this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)}`),this.loadingParts=!1;else if(!e.url)return Promise.resolve(null);this.log(`Loading ${e.type} sn: ${e.sn} of ${this.fragInfo(e,!1)}) cc: ${e.cc} ${o?"["+o.startSN+"-"+o.endSN+"]":""}, target: ${parseFloat(n.toFixed(3))}`),G(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=nr;const l=this.config.progressive;let c;return c=l&&a?a.then((t=>!t||this.fragContextChanged(null==t?void 0:t.frag)?null:this.fragmentLoader.load(e,i))).catch((e=>this.handleFragLoadError(e))):Promise.all([this.fragmentLoader.load(e,l?i:void 0),a]).then((([e])=>(!l&&e&&i&&i(e),e))).catch((e=>this.handleFragLoadError(e))),this.hls.trigger(Y.FRAG_LOADING,{frag:e,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):c}doFragPartsLoad(e,t,n,i){return new Promise(((r,o)=>{var a;const s=[],l=null==(a=n.details)?void 0:a.partList,c=t=>{this.fragmentLoader.loadPart(e,t,i).then((i=>{s[t.index]=i;const o=i.part;this.hls.trigger(Y.FRAG_LOADED,i);const a=Ki(n.details,e.sn,t.index+1)||Gi(l,e.sn,t.index+1);if(!a)return r({frag:e,part:o,partsLoaded:s});c(a)})).catch(o)};c(t)}))}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===q.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(Y.ERROR,t)}else this.hls.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==or)return void(this.fragCurrent||this.state===Ji||this.state===lr||(this.state=er));const{frag:n,part:i,level:r}=t,o=self.performance.now();n.stats.parsing.end=o,i&&(i.stats.parsing.end=o);const a=this.getLevelDetails(),s=a&&n.sn>a.endSN||this.shouldLoadParts(a,n.end);s!==this.loadingParts&&(this.log(`LL-Part loading ${s?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=s),this.updateLevelTiming(n,i,r,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(null!=e&&e.partList){var n;const r=e.partList[0];if(t>=r.end+((null==(n=e.fragmentHint)?void 0:n.duration)||0)){var i;if((this.hls.hasEnoughToStart?(null==(i=this.media)?void 0:i.currentTime)||this.lastCurrentTime:this.getLoadPosition())>r.start-r.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:i,sn:r,part:o}=e;if(null==t||!t[i])return this.warn(`Levels object was unset while buffering fragment ${r} of ${this.playlistLabel()} ${i}. The current chunk will not be buffered.`),null;const a=t[i],s=a.details,l=o>-1?Ki(s,r,o):null,c=l?l.fragment:Zi(s,r,n);return c?(n&&n!==c&&(c.stats=n.stats),{frag:c,part:l,level:a}):null}bufferFragmentData(e,t,n,i,r){var o;if(!e||this.state!==or)return;const{data1:a,data2:s}=e;let l=a;if(a&&s&&(l=it(a,s)),null==(o=l)||!o.length)return;const c={type:e.type,frag:t,part:n,chunkMeta:i,parent:t.type,data:l};if(this.hls.trigger(Y.BUFFER_APPENDING,c),e.dropped&&e.independent&&!n){if(r)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!On.isBuffered(t,t.currentTime))return void this.flushMainBuffer(0,e.start);const n=t.currentTime,i=On.bufferInfo(t,n,0),r=e.duration,o=Math.min(2*this.config.maxFragLookUpTolerance,.25*r),a=Math.max(Math.min(e.start-o,i.end-o),n+o);e.start-a>o&&this.flushMainBuffer(a,e.start)}getFwdBufferInfo(e,t){var n;const i=this.getLoadPosition();if(!G(i))return null;const r=this.lastCurrentTime>i||null!=(n=this.media)&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,i,t,r)}getFwdBufferInfoAtPos(e,t,n,i){const r=On.bufferInfo(e,t,i);if(0===r.len&&void 0!==r.nextStart){const o=this.fragmentTracker.getBufferedFrag(t,n);if(o&&(r.nextStart<=o.end||o.gap)){const n=Math.max(Math.min(r.nextStart,o.end)-t,i);return On.bufferInfo(e,t,n)}}return r}getMaxBufferLength(e){const{config:t}=this;let n;return n=e?Math.max(8*t.maxBufferSize/e,t.maxBufferLength):t.maxBufferLength,Math.min(n,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const n=this.config,i=Math.max(Math.min(e-t,n.maxBufferLength),t),r=Math.max(e-3*t,n.maxMaxBufferLength/2,i);return r>=i&&(n.maxMaxBufferLength=r,this.warn(`Reduce max buffer length to ${r}s`),!0)}getAppendedFrag(e,t=te){var n;const i=null==(n=this.fragmentTracker)?void 0:n.getAppendedFrag(e,t);return i&&"fragment"in i?i.fragment:i}getNextFragment(e,t){const n=t.fragments,i=n.length;if(!i)return null;const{config:r}=this,o=n[0].start,a=r.lowLatencyMode&&!!t.partList;let s=null;if(t.live){const n=r.initialLiveManifestSize;if(i=o?n:i)||s.start:e;this.log(`Setting startPosition to ${r} to match start frag at live edge. mainStart: ${n} liveSyncPosition: ${i} frag.start: ${null==(l=s)?void 0:l.start}`),this.startPosition=this.nextLoadPosition=r}}else e<=o&&(s=n[0]);if(!s){const n=this.loadingParts?t.partEnd:t.fragmentEnd;s=this.getFragmentAtPosition(e,n,t)}let c=this.filterReplacedPrimary(s,t);if(!c&&s){const e=s.sn-t.startSN;c=this.filterReplacedPrimary(n[e+1]||null,t)}return this.mapToInitFragWhenRequired(c)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===yn||n===vn&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,i,r){let o=null;if(e.gap&&(o=this.getNextFragment(this.nextLoadPosition,t),o&&!o.gap&&n.nextStart)){const e=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,i,0);if(null!==e&&n.len+e.len>=r){const e=o.sn;return this.loopSn!==e&&(this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${e}`),this.loopSn=e),null}}return this.loopSn=void 0,o}get primaryPrefetch(){if(dr(this.hls.config)){var e,t;if(null==(e=this.hls.interstitialsManager)||null==(t=e.playingItem)?void 0:t.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(dr(this.hls.config)&&e.type!==ie){const n=this.hls.interstitialsManager,i=null==n?void 0:n.bufferingItem;if(i){const n=i.event;if(n){if(n.appendInPlace||Math.abs(e.start-i.start)>1||0===i.start)return null}else{if(e.end<=i.start&&!1===(null==t?void 0:t.live))return null;if(e.start>i.end&&i.nextEvent&&(i.nextEvent.appendInPlace||e.start-i.end>1))return null}}const r=null==n?void 0:n.playerQueue;if(r)for(let t=r.length;t--;){const n=r[t].interstitial;if(n.appendInPlace&&e.start>=n.startTime&&e.end<=n.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return null==e||!e.initSegment||null!=e&&e.initSegment.data||this.bitrateTest?e:e.initSegment}getNextPart(e,t,n){let i=-1,r=!1,o=!0;for(let a=0,s=e.length;a-1&&nn.start&&n.loaded}getInitialLiveFragment(e){const t=e.fragments,n=this.fragPrevious;let i=null;if(n){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),i=function(e,t,n){if(null===t||!Array.isArray(e)||!e.length||!G(t))return null;if(t<(e[0].programDateTime||0))return null;if(t>=(e[e.length-1].endProgramDateTime||0))return null;for(let i=0;i=e.startSN&&r<=e.endSN){const o=t[r-e.startSN];n.cc===o.cc&&(i=o,this.log(`Live playlist, switching playlist, load frag with next SN: ${i.sn}`))}i||(i=en(e,n.cc,n.end),i&&this.log(`Live playlist, switching playlist, load frag with same CC: ${i.sn}`))}}else{const t=this.hls.liveSyncPosition;null!==t&&(i=this.getFragmentAtPosition(t,this.bitrateTest?e.fragmentEnd:e.edge,e))}return i}getFragmentAtPosition(e,t,n){const{config:i}=this;let{fragPrevious:r}=this,{fragments:o,endSN:a}=n;const{fragmentHint:s}=n,{maxFragLookUpTolerance:l}=i,c=n.partList,u=!!(this.loadingParts&&null!=c&&c.length&&s);let h;if(u&&s&&!this.bitrateTest&&c[c.length-1].fragment.sn===s.sn&&(o=o.concat(s),a=s.sn),et-l||null!=(d=this.media)&&d.paused||!this.startFragRequested?0:l)}else h=o[o.length-1];if(h){const e=h.sn-n.startSN,t=this.fragmentTracker.getState(h);if((t===yn||t===vn&&h.gap)&&(r=h),r&&h.sn===r.sn&&(!u||c[0].fragment.sn>h.sn||!n.live&&!u)){if(r&&h.level===r.level){const t=o[e+1];h=h.sn${e.startSN} fragments: ${i}`),r}return r}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,3*e.partTarget)}setStartPosition(e,t){let n=this.startPosition;n=0&&(n=this.nextLoadPosition),n}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&Be(e)&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of ${this.playlistLabel()} ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){this.fragCurrent&&(this.fragContextChanged(e)||this.state===ir)||(this.state=er)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const e=this.getCurrentContext(t.chunkMeta);e&&(t.frag=e.frag)}const n=t.frag;if(!n||n.type!==e||!this.levels)return;var i;if(this.fragContextChanged(n))return void this.warn(`Frag load error must match current frag to retry ${n.url} > ${null==(i=this.fragCurrent)?void 0:i.url}`);const r=t.details===q.FRAG_GAP;r&&this.fragmentTracker.fragBuffered(n,!0);const o=t.errorAction,{action:a,flags:s,retryCount:l=0,retryConfig:c}=o||{},u=!!o&&!!c,h=u&&a===un,d=u&&!o.resolved&&s===dn;if(!h&&d&&Be(n)&&!n.endList)this.resetFragmentErrors(e),this.treatAsGap(n),o.resolved=!0;else if((h||d)&&l.5;r&&this.reduceMaxBufferLength(i.len,(null==t?void 0:t.duration)||10);const o=!r;return o&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),o}return!1}resetFragmentErrors(e){e===ne&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==Ji&&(this.state=er)}afterBufferFlushed(e,t,n){if(!e)return;const i=On.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,i,n),this.state===sr&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==Ji&&(this.state=er)}resetStartWhenNotLoaded(e){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=e?e.details:null;null!=t&&t.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(t,t.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of ${this.playlistLabel()} ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,i){const r=n.details;if(!r)return void this.warn("level.details undefined");var o;if(!Object.keys(e.elementaryStreams).reduce(((t,o)=>{const a=e.elementaryStreams[o];if(a){const s=a.endPTS-a.startPTS;if(s<=0)return this.warn(`Could not parse fragment ${e.sn} ${o} duration reliably (${s})`),t||!1;const l=i?0:Oi(r,e,a.startPTS,a.endPTS,a.startDTS,a.endDTS);return this.hls.trigger(Y.LEVEL_PTS_UPDATED,{details:r,level:n,drift:l,type:o,frag:e,start:a.startPTS,end:a.endPTS}),!0}return t}),!1)&&(0===n.fragmentError&&this.treatAsGap(e,n),null===(null==(o=this.transmuxer)?void 0:o.error))){const t=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(t.message),this.hls.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.FRAG_PARSING_ERROR,fatal:!1,error:t,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=ar,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(Y.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===te?"level":"track"}fragInfo(e,t=!0,n){var i,r;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${(null!=(i=t&&!n?e.startPTS:(n||e).start)?i:NaN).toFixed(3)}-${(null!=(r=t&&!n?e.endPTS:(n||e).end)?r:NaN).toFixed(3)}]${n&&"main"===e.type?"INDEPENDENT="+(n.independent?"YES":"NO"):""}`}treatAsGap(e,t){t&&t.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)}resetTransmuxer(){var e;null==(e=this.transmuxer)||e.reset()}recoverWorkerError(e){"demuxerWorker"===e.event&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}function dr(e){return!!e.interstitialsController&&!1!==e.enableInterstitialPlayback}class pr{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let n;return e.length?(n=1===e.length?e[0]:function(e,t){const n=new Uint8Array(t);let i=0;for(let t=0;t0)return e.subarray(n,n+i)}function _r(e,t){return 255===e[t]&&240==(246&e[t+1])}function Cr(e,t){return 1&e[t+1]?7:9}function Pr(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}function Er(e,t){return t+1=e.length)return!1;const i=Pr(e,t);if(i<=n)return!1;const r=t+i;return r===e.length||Er(e,r)}return!1}function Lr(e,t,n,i,r){if(!e.samplerate){const o=function(e,t,n,i){const r=t[n+2],o=r>>2&15;if(o>12){const t=new Error(`invalid ADTS sampling index:${o}`);return void e.emit(Y.ERROR,Y.ERROR,{type:W.MEDIA_ERROR,details:q.FRAG_PARSING_ERROR,fatal:!0,error:t,reason:t.message})}const a=1+(r>>6&3),s=t[n+3]>>6&3|(1&r)<<2,l="mp4a.40."+a,c=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350][o];let u=o;5!==a&&29!==a||(u-=3);const h=[a<<3|(14&u)>>1,(1&u)<<7|s<<3];return me.log(`manifest codec:${i}, parsed codec:${l}, channels:${s}, rate:${c} (ADTS object type:${a} sampling index:${o})`),{config:h,samplerate:c,channelCount:s,codec:l,parsedCodec:l,manifestCodec:i}}(t,n,i,r);if(!o)return;se(e,o)}}function Ar(e){return 9216e4/e}function Tr(e,t,n,i,r){const o=i+r*Ar(e.samplerate),a=function(e,t){const n=Cr(e,t);if(t+n<=e.length){const i=Pr(e,t)-n;if(i>0)return{headerLength:n,frameLength:i}}}(t,n);let s;if(a){const{frameLength:i,headerLength:r}=a,l=r+i,c=Math.max(0,n+l-t.length);c?(s=new Uint8Array(l-r),s.set(t.subarray(n+r,t.length),0)):s=t.subarray(n+r,n+l);const u={unit:s,pts:o};return c||e.samples.push(u),{sample:u,length:l,missing:c}}const l=t.length-n;s=new Uint8Array(l),s.set(t.subarray(n,t.length),0);return{sample:{unit:s,pts:o},length:l,missing:-1}}function Dr(e,t){return xr(e,t)&&Sr(e,t+6)+10<=e.length-t}function Nr(e,t=0,n=1/0){return function(e,t,n,i){const r=function(e){return e instanceof ArrayBuffer?e:e.buffer}(e);let o=1;"BYTES_PER_ELEMENT"in i&&(o=i.BYTES_PER_ELEMENT);const a=(h=e,h&&h.buffer instanceof ArrayBuffer&&void 0!==h.byteLength&&void 0!==h.byteOffset?e.byteOffset:0),s=(a+e.byteLength)/o,l=(a+t)/o,c=Math.floor(Math.max(0,Math.min(l,s))),u=Math.floor(Math.min(c+Math.max(n,0),s));var h;return new i(r,c,u-c)}(e,t,n,Uint8Array)}function Ir(e){const t={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if(e.size<2)return;if(3!==e.data[0])return void console.log("Ignore frame with unrecognized character encoding");const n=e.data.subarray(1).indexOf(0);if(-1===n)return;const i=be(Nr(e.data,1,n)),r=e.data[2+n],o=e.data.subarray(3+n).indexOf(0);if(-1===o)return;const a=be(Nr(e.data,3+n,o));let s;return s="--\x3e"===i?be(Nr(e.data,4+n+o)):function(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}(e.data.subarray(4+n+o)),t.mimeType=i,t.pictureType=r,t.description=a,t.data=s,t}function Br(e){return"PRIV"===e.type?function(e){if(e.size<2)return;const t=be(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}(e):"W"===e.type[0]?function(e){if("WXXX"===e.type){if(e.size<2)return;let t=1;const n=be(e.data.subarray(t),!0);t+=n.length+1;const i=be(e.data.subarray(t));return{key:e.type,info:n,data:i}}const t=be(e.data);return{key:e.type,info:"",data:t}}(e):"APIC"===e.type?Ir(e):function(e){if(e.size<2)return;if("TXXX"===e.type){let t=1;const n=be(e.data.subarray(t),!0);t+=n.length+1;const i=be(e.data.subarray(t));return{key:e.type,info:n,data:i}}const t=be(e.data.subarray(1));return{key:e.type,info:"",data:t}}(e)}function Rr(e){const t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=Sr(e,4);return{type:t,size:n,data:e.subarray(10,10+n)}}function Or(e){let t=0;const n=[];for(;xr(e,t);){const i=Sr(e,t+6);e[t+5]>>6&1&&(t+=10),t+=10;const r=t+i;for(;t+100&&a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:$r.audioId3,duration:Number.POSITIVE_INFINITY});r{if(G(e))return 90*e;return 9e4*t+(n?9e4*n.baseTime/n.timescale:0)};let Gr=null;const Ur=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],Vr=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Wr=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],qr=[0,1,1,4];function Yr(e,t,n,i,r){if(n+24>t.length)return;const o=Xr(t,n);if(o&&n+o.frameLength<=t.length){const a=i+r*(9e4*o.samplesPerFrame/o.sampleRate),s={unit:t.subarray(n,n+o.frameLength),pts:a,dts:a};return e.config=[],e.channelCount=o.channelCount,e.samplerate=o.sampleRate,e.samples.push(s),{sample:s,length:o.frameLength,missing:0}}}function Xr(e,t){const n=e[t+1]>>3&3,i=e[t+1]>>1&3,r=e[t+2]>>4&15,o=e[t+2]>>2&3;if(1!==n&&0!==r&&15!==r&&3!==o){const a=e[t+2]>>1&1,s=e[t+3]>>6,l=1e3*Ur[14*(3===n?3-i:3===i?3:4)+r-1],c=Vr[3*(3===n?0:2===n?1:2)+o],u=3===s?1:2,h=Wr[n][i],d=qr[i],p=8*h*d,f=Math.floor(h*l/c+a)*d;if(null===Gr){const e=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Gr=e?parseInt(e[1]):0}return!!Gr&&Gr<=87&&2===i&&l>=224e3&&0===s&&(e[t+3]=128|e[t+3]),{sampleRate:c,channelCount:u,frameLength:f,samplesPerFrame:p}}}function Qr(e,t){return 255===e[t]&&224==(224&e[t+1])&&0!=(6&e[t+1])}function Jr(e,t){return t+1{let n=0,i=5;t+=i;const r=new Uint32Array(1),o=new Uint32Array(1),a=new Uint8Array(1);for(;i>0;){a[0]=e[t];const s=Math.min(i,8),l=8-s;o[0]=4278190080>>>24+l<>l,n=n?n<t.length)return-1;if(11!==t[n]||119!==t[n+1])return-1;const o=t[n+4]>>6;if(o>=3)return-1;const a=[48e3,44100,32e3][o],s=63&t[n+4],l=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*s+o];if(n+l>t.length)return-1;const c=t[n+6]>>5;let u=0;2===c?u+=2:(1&c&&1!==c&&(u+=2),4&c&&(u+=2));const h=(t[n+6]<<8|t[n+7])>>12-u&1,d=[2,1,2,3,3,4,4,5][c]+h,p=t[n+5]>>3,f=7&t[n+5],g=new Uint8Array([o<<6|p<<1|f>>2,(3&f)<<6|c<<3|h<<2|s>>4,s<<4&224]),m=i+r*(1536/a*9e4),v=t.subarray(n,n+l);return e.config=g,e.channelCount=d,e.samplerate=a,e.samples.push({unit:v,pts:m}),l}const ro=/\/emsg[-/]ID3/i;function oo(e,t){return G(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class ao{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new Mn(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,kn)}decryptAacSample(e,t,n){const i=e[t].unit;if(i.length<=16)return;const r=i.subarray(16,i.length-i.length%16),o=r.buffer.slice(r.byteOffset,r.byteOffset+r.length);this.decryptBuffer(o).then((r=>{const o=new Uint8Array(r);i.set(o,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)}))}decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length)return void n();if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=16*Math.floor((e.length-48)/160)+16,n=new Int8Array(t);let i=0;for(let t=32;t{r.data=this.getAvcDecryptedUnit(o,a),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,i)}))}decryptAvcSamples(e,t,n,i){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length)return void i();const r=e[t].units;for(;!(n>=r.length);n++){const o=r[n];if(!(o.data.length<=48||1!==o.type&&5!==o.type||(this.decryptAvcSample(e,t,n,i,o),this.decrypter.isSync())))return}}}}class so{constructor(){this.VideoSample=null}createVideoSample(e,t,n){return{key:e,frame:!1,pts:t,dts:n,units:[],length:0}}getLastNalUnit(e){var t;let n,i=this.VideoSample;if(i&&0!==i.units.length||(i=e[e.length-1]),null!=(t=i)&&t.units){const e=i.units;n=e[e.length-1]}return n}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(void 0===e.pts){const n=t.samples,i=n.length;if(!i)return void t.dropped++;{const t=n[i-1];e.pts=t.pts,e.dts=t.dts}}t.samples.push(e)}}parseNALu(e,t,n){const i=t.byteLength;let r=e.naluState||0;const o=r,a=[];let s,l,c,u=0,h=-1,d=0;for(-1===r&&(h=0,d=this.getNALuType(t,0),r=0,u=1);u=0){const e={data:t.subarray(h,l),type:d};a.push(e)}else{const n=this.getLastNalUnit(e.samples);n&&(o&&u<=4-o&&n.state&&(n.data=n.data.subarray(0,n.data.byteLength-o)),l>0&&(n.data=it(n.data,t.subarray(0,l)),n.state=0))}u=0&&r>=0){const e={data:t.subarray(h,i),type:d,state:r};a.push(e)}if(0===a.length){const n=this.getLastNalUnit(e.samples);n&&(n.data=it(n.data,t))}return e.naluState=r,a}}class lo{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,n=e.byteLength-t,i=new Uint8Array(4),r=Math.min(4,t);if(0===r)throw new Error("no bytes available");i.set(e.subarray(n,n+r)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=8*r,this.bytesAvailable-=r}skipBits(e){let t;e=Math.min(e,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(t=(e-=this.bitsAvailable)>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const n=this.word>>>32-t;if(e>32&&me.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return t=e-t,t>0&&this.bitsAvailable?n<>>e))return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return 1===this.readBits(1)}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class co extends so{parsePES(e,t,n,i){const r=this.parseNALu(e,n.data,i);let o,a=this.VideoSample,s=!1;n.data=null,a&&r.length&&!e.audFound&&(this.pushAccessUnit(a,e),a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),r.forEach((i=>{var r,l;switch(i.type){case 1:{let t=!1;o=!0;const r=i.data;if(s&&r.length>4){const e=this.readSliceType(r);2!==e&&4!==e&&7!==e&&9!==e||(t=!0)}var c;if(t)null!=(c=a)&&c.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null);a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.frame=!0,a.key=t;break}case 5:o=!0,null!=(r=a)&&r.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 6:o=!0,st(i.data,1,n.pts,t.samples);break;case 7:{var u,h;o=!0,s=!0;const t=i.data,n=this.readSPS(t);if(!e.sps||e.width!==n.width||e.height!==n.height||(null==(u=e.pixelRatio)?void 0:u[0])!==n.pixelRatio[0]||(null==(h=e.pixelRatio)?void 0:h[1])!==n.pixelRatio[1]){e.width=n.width,e.height=n.height,e.pixelRatio=n.pixelRatio,e.sps=[t];const i=t.subarray(1,4);let r="avc1.";for(let e=0;e<3;e++){let t=i[e].toString(16);t.length<2&&(t="0"+t),r+=t}e.codec=r}break}case 8:o=!0,e.pps=[i.data];break;case 9:o=!0,e.audFound=!0,null!=(l=a)&&l.frame&&(this.pushAccessUnit(a,e),a=null),a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:o=!0;break;default:o=!1}if(a&&o){a.units.push(i)}})),i&&a&&(this.pushAccessUnit(a,e),this.VideoSample=null)}getNALuType(e,t){return 31&e[t]}readSliceType(e){const t=new lo(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n,i=8,r=8;for(let o=0;o{var r,l;switch(i.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),a.frame=!0,o=!0;break;case 16:case 17:case 18:case 21:var c;if(o=!0,s)null!=(c=a)&&c.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null);a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 19:case 20:o=!0,null!=(r=a)&&r.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 39:o=!0,st(i.data,2,n.pts,t.samples);break;case 32:o=!0,e.vps||("object"!=typeof e.params&&(e.params={}),e.params=se(e.params,this.readVPS(i.data)),this.initVPS=i.data),e.vps=[i.data];break;case 33:if(o=!0,s=!0,void 0===e.vps||e.vps[0]===this.initVPS||void 0===e.sps||this.matchSPS(e.sps[0],i.data)||(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const t=this.readSPS(i.data);e.width=t.width,e.height=t.height,e.pixelRatio=t.pixelRatio,e.codec=t.codecString,e.sps=[],"object"!=typeof e.params&&(e.params={});for(const n in t.params)e.params[n]=t.params[n]}this.pushParameterSet(e.sps,i.data,e.vps),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0;break;case 34:if(o=!0,"object"==typeof e.params){if(!e.pps){e.pps=[];const t=this.readPPS(i.data);for(const n in t)e.params[n]=t[n]}this.pushParameterSet(e.pps,i.data,e.vps)}break;case 35:o=!0,e.audFound=!0,null!=(l=a)&&l.frame&&(this.pushAccessUnit(a,e),a=null),a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:o=!1}if(a&&o){a.units.push(i)}})),i&&a&&(this.pushAccessUnit(a,e),this.VideoSample=null)}pushParameterSet(e,t,n){(n&&n[0]===this.initVPS||!n&&!e.length)&&e.push(t)}getNALuType(e,t){return(126&e[t])>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let n=0;for(let i=0;i=2&&3===e[i]&&0===e[i-1]&&0===e[i-2]||(t[n]=e[i],n++);return new Uint8Array(t.buffer,0,n)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new lo(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);return{numTemporalLayers:t.readBits(3)+1,temporalIdNested:t.readBoolean()}}readSPS(e){const t=new lo(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const n=t.readBits(3);t.readBoolean();const i=t.readBits(2),r=t.readBoolean(),o=t.readBits(5),a=t.readUByte(),s=t.readUByte(),l=t.readUByte(),c=t.readUByte(),u=t.readUByte(),h=t.readUByte(),d=t.readUByte(),p=t.readUByte(),f=t.readUByte(),g=t.readUByte(),m=t.readUByte(),v=[],y=[];for(let e=0;e0)for(let e=n;e<8;e++)t.readBits(2);for(let e=0;e1&&t.readEG();for(let e=0;e0&&e<16?(N=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][e-1],I=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][e-1]):255===e&&(N=t.readBits(16),I=t.readBits(16))}t.readBoolean()&&t.readBoolean();if(t.readBoolean()){t.readBits(3),t.readBoolean();t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())}t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),F=t.readBoolean(),F&&(k+=t.readUEG(),_+=t.readUEG(),C+=t.readUEG(),P+=t.readUEG());if(t.readBoolean()){R=t.readBits(32),O=t.readBits(32);t.readBoolean()&&t.readUEG();if(t.readBoolean()){const e=t.readBoolean(),i=t.readBoolean();let r=!1;(e||i)&&(r=t.readBoolean(),r&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),r&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let o=0;o<=n;o++){B=t.readBoolean();let n=!1;B||t.readBoolean()?t.readEG():n=t.readBoolean();const o=n?1:t.readUEG()+1;if(e)for(let e=0;e>e&1)<<31-e)>>>0;let K=Z.toString(16);1===o&&"2"===K&&(K="6");return{codecString:`hvc1.${$}${o}.${K}.${r?"H":"L"}${m}.B0`,params:{general_tier_flag:r,general_profile_idc:o,general_profile_space:i,general_profile_compatibility_flags:[a,s,l,c],general_constraint_indicator_flags:[u,h,d,p,f,g],general_level_idc:m,bit_depth:E+8,bit_depth_luma_minus8:E,bit_depth_chroma_minus8:M,min_spatial_segmentation_idc:D,chroma_format_idc:b,frame_rate:{fixed:B,fps:O/R}},width:z,height:j,pixelRatio:[N,I]}}readPPS(e){const t=new lo(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2);t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);const n=t.readBoolean(),i=t.readBoolean();let r=1;return i&&n?r=0:i?r=3:n&&(r=2),{parallelismType:r}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const ho=188;class po{constructor(e,t,n,i){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=i,this.videoParser=null}static probe(e,t){const n=po.syncOffset(e);return n>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),-1!==n}static syncOffset(e){const t=e.length;let n=Math.min(940,t-ho)+1,i=0;for(;i1&&(0===o&&a>2||s+ho>n))return o}i++}return-1}static createTrack(e,t){return{container:"video"===e||"audio"===e?"video/mp2t":void 0,type:e,id:$e[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===e?t:void 0}}resetInitSegment(e,t,n,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=po.createTrack("video"),this._videoTrack.duration=i,this._audioTrack=po.createTrack("audio",i),this._id3Track=po.createTrack("id3"),this._txtTrack=po.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n=!1,i=!1){let r;n||(this.sampleAes=null);const o=this._videoTrack,a=this._audioTrack,s=this._id3Track,l=this._txtTrack;let c=o.pid,u=o.pesData,h=a.pid,d=s.pid,p=a.pesData,f=s.pesData,g=null,m=this.pmtParsed,v=this._pmtId,y=e.length;if(this.remainderData&&(y=(e=it(this.remainderData,e)).length,this.remainderData=null),y>4>1){if(w=t+5+e[t+4],w===t+ho)continue}else w=t+4;switch(y){case c:if(i){if(u&&(r=wo(u,this.logger))){if(null===this.videoParser)switch(o.segmentCodec){case"avc":this.videoParser=new co;break;case"hevc":this.videoParser=new uo}null!==this.videoParser&&this.videoParser.parsePES(o,l,r,!1)}u={data:[],size:0}}u&&(u.data.push(e.subarray(w,t+ho)),u.size+=t+ho-w);break;case h:if(i){if(p&&(r=wo(p,this.logger)))switch(a.segmentCodec){case"aac":this.parseAACPES(a,r);break;case"mp3":this.parseMPEGPES(a,r);break;case"ac3":this.parseAC3PES(a,r)}p={data:[],size:0}}p&&(p.data.push(e.subarray(w,t+ho)),p.size+=t+ho-w);break;case d:i&&(f&&(r=wo(f,this.logger))&&this.parseID3PES(s,r),f={data:[],size:0}),f&&(f.data.push(e.subarray(w,t+ho)),f.size+=t+ho-w);break;case 0:i&&(w+=e[w]+1),v=this._pmtId=mo(e,w);break;case v:{i&&(w+=e[w]+1);const r=vo(e,w,this.typeSupported,n,this.observer,this.logger);c=r.videoPid,c>0&&(o.pid=c,o.segmentCodec=r.segmentVideoCodec),h=r.audioPid,h>0&&(a.pid=h,a.segmentCodec=r.segmentAudioCodec),d=r.id3Pid,d>0&&(s.pid=d),null===g||m||(this.logger.warn(`MPEG-TS PMT found at ${t} after unknown PID '${g}'. Backtracking to sync byte @${b} to parse all TS packets.`),g=null,t=b-188),m=this.pmtParsed=!0;break}case 17:case 8191:break;default:g=y}}else w++;w>0&&yo(this.observer,new Error(`Found ${w} TS packet/s that do not start with 0x47`),void 0,this.logger),o.pesData=u,a.pesData=p,s.pesData=f;const x={audioTrack:a,videoTrack:o,id3Track:s,textTrack:l};return i&&this.extractRemainingSamples(x),x}flush(){const{remainderData:e}=this;let t;return this.remainderData=null,t=e?this.demux(e,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:n,id3Track:i,textTrack:r}=e,o=n.pesData,a=t.pesData,s=i.pesData;let l;if(o&&(l=wo(o,this.logger))){if(null===this.videoParser)switch(n.segmentCodec){case"avc":this.videoParser=new co;break;case"hevc":this.videoParser=new uo}null!==this.videoParser&&(this.videoParser.parsePES(n,r,l,!0),n.pesData=null)}else n.pesData=o;if(a&&(l=wo(a,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,l);break;case"mp3":this.parseMPEGPES(t,l);break;case"ac3":this.parseAC3PES(t,l)}t.pesData=null}else null!=a&&a.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=a;s&&(l=wo(s,this.logger))?(this.parseID3PES(i,l),i.pesData=null):i.pesData=s}demuxSampleAes(e,t,n){const i=this.demux(e,n,!0,!this.config.progressive),r=this.sampleAes=new ao(this.observer,this.config,t);return this.decrypt(i,r)}decrypt(e,t){return new Promise((n=>{const{audioTrack:i,videoTrack:r}=e;i.samples&&"aac"===i.segmentCodec?t.decryptAacSamples(i.samples,0,(()=>{r.samples?t.decryptAvcSamples(r.samples,0,0,(()=>{n(e)})):n(e)})):r.samples&&t.decryptAvcSamples(r.samples,0,0,(()=>{n(e)}))}))}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(e,t){let n=0;const i=this.aacOverFlow;let r,o,a,s=t.data;if(i){this.aacOverFlow=null;const t=i.missing,r=i.sample.unit.byteLength;if(-1===t)s=it(i.sample.unit,s);else{const o=r-t;i.sample.unit.set(s.subarray(0,t),o),e.samples.push(i.sample),n=i.missing}}for(r=n,o=s.length;r0;)s+=o}}parseID3PES(e,t){if(void 0===t.pts)return void this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");const n=se({},t,{type:this._videoTrack?$r.emsg:$r.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function fo(e,t){return((31&e[t+1])<<8)+e[t+2]}function mo(e,t){return(31&e[t+10])<<8|e[t+11]}function vo(e,t,n,i,r,o){const a={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},s=t+3+((15&e[t+1])<<8|e[t+2])-4;for(t+=12+((15&e[t+10])<<8|e[t+11]);t0){let i=t+5,r=l;for(;r>2;){if(106===e[i])!0!==n.ac3?o.log("AC-3 audio found, not supported in this browser for now"):(a.audioPid=s,a.segmentAudioCodec="ac3");const t=e[i+1]+2;i+=t,r-=t}}break;case 194:case 135:return yo(r,new Error("Unsupported EC-3 in M2TS found"),void 0,o),a;case 36:-1===a.videoPid&&(a.videoPid=s,a.segmentVideoCodec="hevc",o.log("HEVC in M2TS found"))}t+=l+5}return a}function yo(e,t,n,i){i.warn(`parsing error: ${t.message}`),e.emit(Y.ERROR,Y.ERROR,{type:W.MEDIA_ERROR,details:q.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function bo(e,t){t.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function wo(e,t){let n,i,r,o,a,s=0;const l=e.data;if(!e||0===e.size)return null;for(;l[0].length<19&&l.length>1;)l[0]=it(l[0],l[1]),l.splice(1,1);n=l[0];if(1===(n[0]<<16)+(n[1]<<8)+n[2]){if(i=(n[4]<<8)+n[5],i&&i>e.size-6)return null;const c=n[7];192&c&&(o=536870912*(14&n[9])+4194304*(255&n[10])+16384*(254&n[11])+128*(255&n[12])+(254&n[13])/2,64&c?(a=536870912*(14&n[14])+4194304*(255&n[15])+16384*(254&n[16])+128*(255&n[17])+(254&n[18])/2,o-a>54e5&&(t.warn(`${Math.round((o-a)/9e4)}s delta between PTS and DTS, align them`),o=a)):a=o),r=n[8];let u=r+9;if(e.size<=u)return null;e.size-=u;const h=new Uint8Array(e.size);for(let e=0,t=l.length;et){u-=t;continue}n=n.subarray(u),t-=u,u=0}h.set(n,s),s+=t}return i&&(i-=r+3),{data:h,pts:o,dts:a,len:i}}return null}class xo{static getSilentFrame(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}}}const So=Math.pow(2,32)-1;class ko{static init(){let e;for(e in ko.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},ko.types)ko.types.hasOwnProperty(e)&&(ko.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const t=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);ko.HDLR_TYPES={video:t,audio:n};const i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),r=new Uint8Array([0,0,0,0,0,0,0,0]);ko.STTS=ko.STSC=ko.STCO=r,ko.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ko.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),ko.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ko.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const o=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),s=new Uint8Array([0,0,0,1]);ko.FTYP=ko.box(ko.types.ftyp,o,s,o,a),ko.DINF=ko.box(ko.types.dinf,ko.box(ko.types.dref,i))}static box(e,...t){let n=8,i=t.length;const r=i;for(;i--;)n+=t[i].byteLength;const o=new Uint8Array(n);for(o[0]=n>>24&255,o[1]=n>>16&255,o[2]=n>>8&255,o[3]=255&n,o.set(e,4),i=0,n=8;i>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))}static mdia(e){return ko.box(ko.types.mdia,ko.mdhd(e.timescale||0,e.duration||0),ko.hdlr(e.type),ko.minf(e))}static mfhd(e){return ko.box(ko.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))}static minf(e){return"audio"===e.type?ko.box(ko.types.minf,ko.box(ko.types.smhd,ko.SMHD),ko.DINF,ko.stbl(e)):ko.box(ko.types.minf,ko.box(ko.types.vmhd,ko.VMHD),ko.DINF,ko.stbl(e))}static moof(e,t,n){return ko.box(ko.types.moof,ko.mfhd(e),ko.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=ko.trak(e[t]);return ko.box.apply(null,[ko.types.moov,ko.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(ko.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=ko.trex(e[t]);return ko.box.apply(null,[ko.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(So+1)),i=Math.floor(t%(So+1)),r=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return ko.box(ko.types.mvhd,r)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let i,r;for(i=0;i>>8&255),r.push(255&i),r=r.concat(Array.prototype.slice.call(n));for(t=0;t>>8&255),o.push(255&i),o=o.concat(Array.prototype.slice.call(n));const a=ko.box(ko.types.avcC,new Uint8Array([1,r[3],r[4],r[5],255,224|e.sps.length].concat(r).concat([e.pps.length]).concat(o))),s=e.width,l=e.height,c=e.pixelRatio[0],u=e.pixelRatio[1];return ko.box(ko.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,s>>8&255,255&s,l>>8&255,255&l,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),a,ko.box(ko.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),ko.box(ko.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,u>>24,u>>16&255,u>>8&255,255&u])))}static esds(e){const t=e.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...t,6,1,2])}static audioStsd(e){const t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,255&t,0,0])}static mp4a(e){return ko.box(ko.types.mp4a,ko.audioStsd(e),ko.box(ko.types.esds,ko.esds(e)))}static mp3(e){return ko.box(ko.types[".mp3"],ko.audioStsd(e))}static ac3(e){return ko.box(ko.types["ac-3"],ko.audioStsd(e),ko.box(ko.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if("audio"===e.type){if("aac"===t)return ko.box(ko.types.stsd,ko.STSD,ko.mp4a(e));if("ac3"===t&&e.config)return ko.box(ko.types.stsd,ko.STSD,ko.ac3(e));if("mp3"===t&&"mp3"===e.codec)return ko.box(ko.types.stsd,ko.STSD,ko.mp3(e))}else{if(!e.pps||!e.sps)throw new Error("video track missing pps or sps");if("avc"===t)return ko.box(ko.types.stsd,ko.STSD,ko.avc1(e));if("hevc"===t&&e.vps)return ko.box(ko.types.stsd,ko.STSD,ko.hvc1(e))}throw new Error(`unsupported ${e.type} segment codec (${t}/${e.codec})`)}static tkhd(e){const t=e.id,n=(e.duration||0)*(e.timescale||0),i=e.width||0,r=e.height||0,o=Math.floor(n/(So+1)),a=Math.floor(n%(So+1));return ko.box(ko.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,0,0,0,0,o>>24,o>>16&255,o>>8&255,255&o,a>>24,a>>16&255,a>>8&255,255&a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,255&i,0,0,r>>8&255,255&r,0,0]))}static traf(e,t){const n=ko.sdtp(e),i=e.id,r=Math.floor(t/(So+1)),o=Math.floor(t%(So+1));return ko.box(ko.types.traf,ko.box(ko.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),ko.box(ko.types.tfdt,new Uint8Array([1,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,o>>24,o>>16&255,o>>8&255,255&o])),ko.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,ko.box(ko.types.trak,ko.tkhd(e),ko.mdia(e))}static trex(e){const t=e.id;return ko.box(ko.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const n=e.samples||[],i=n.length,r=12+16*i,o=new Uint8Array(r);let a,s,l,c,u,h;for(t+=8+r,o.set(["video"===e.type?1:0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,255&i,t>>>24&255,t>>>16&255,t>>>8&255,255&t],0),a=0;a>>24&255,l>>>16&255,l>>>8&255,255&l,c>>>24&255,c>>>16&255,c>>>8&255,255&c,u.isLeading<<2|u.dependsOn,u.isDependedOn<<6|u.hasRedundancy<<4|u.paddingValue<<1|u.isNonSync,61440&u.degradPrio,15&u.degradPrio,h>>>24&255,h>>>16&255,h>>>8&255,255&h],12+16*a);return ko.box(ko.types.trun,o)}static initSegment(e){ko.types||ko.init();const t=ko.moov(e);return it(ko.FTYP,t)}static hvc1(e){const t=e.params,n=[e.vps,e.sps,e.pps],i=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),3|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),n.length]);let r=i.length;for(let e=0;e>8,255&n[e][t].length]),r),r+=2,o.set(n[e][t],r),r+=n[e][t].length}const s=ko.box(ko.types.hvcC,o),l=e.width,c=e.height,u=e.pixelRatio[0],h=e.pixelRatio[1];return ko.box(ko.types.hvc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,255&l,c>>8&255,255&c,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,ko.box(ko.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),ko.box(ko.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,255&u,h>>24,h>>16&255,h>>8&255,255&h])))}}ko.types=void 0,ko.HDLR_TYPES=void 0,ko.STTS=void 0,ko.STSC=void 0,ko.STCO=void 0,ko.STSZ=void 0,ko.VMHD=void 0,ko.SMHD=void 0,ko.STSD=void 0,ko.FTYP=void 0,ko.DINF=void 0;function _o(e,t,n=1,i=!1){const r=e*t*n;return i?Math.round(r):r}function Co(e,t=!1){return _o(e,1e3,1/9e4,t)}let Po,Eo=null,Mo=null;function Lo(e,t,n,i){return{duration:t,size:n,cts:i,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class Ao{constructor(e,t,n,i){if(this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=i,this.ISGenerated=!1,null===Eo){const e=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Eo=e?parseInt(e[1]):0}if(null===Mo){const e=navigator.userAgent.match(/Safari\/(\d+)/i);Mo=e?parseInt(e[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){this.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const n=e[0].pts,i=e.reduce(((e,i)=>{let r=i.pts,o=r-e;return o<-4294967296&&(t=!0,r=To(r,n),o=r-e),o>0?e:r}),n);return t&&this.logger.debug("PTS rollover detected"),i}remux(e,t,n,i,r,o,a,s){let l,c,u,h,d,p,f=r,g=r;const m=e.pid>-1,v=t.pid>-1,y=t.samples.length,b=e.samples.length>0,w=a&&y>0||y>1;if((!m||b)&&(!v||w)||this.ISGenerated||a){if(this.ISGenerated){var x,S,k,_;const e=this.videoTrackConfig;(e&&(t.width!==e.width||t.height!==e.height||(null==(x=t.pixelRatio)?void 0:x[0])!==(null==(S=e.pixelRatio)?void 0:S[0])||(null==(k=t.pixelRatio)?void 0:k[1])!==(null==(_=e.pixelRatio)?void 0:_[1]))||!e&&w||null===this.nextAudioPts&&b)&&this.resetInitSegment()}this.ISGenerated||(u=this.generateIS(e,t,r,o));const n=this.isVideoContiguous;let i,a=-1;if(w&&(a=function(e){for(let t=0;t0){this.logger.warn(`[mp4-remuxer]: Dropped ${a} out of ${y} video samples due to a missing keyframe`);const e=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(a),t.dropped+=a,g+=(t.samples[0].pts-e)/t.inputTimeScale,i=g}else-1===a&&(this.logger.warn(`[mp4-remuxer]: No keyframe found out of ${y} video samples`),p=!1);if(this.ISGenerated){if(b&&w){const n=this.getVideoStartPts(t.samples),i=(To(e.samples[0].pts,n)-n)/t.inputTimeScale;f+=Math.max(0,i),g+=Math.max(0,-i)}if(b){if(e.samplerate||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),u=this.generateIS(e,t,r,o)),c=this.remuxAudio(e,f,this.isAudioContiguous,o,v||w||s===ne?g:void 0),w){const i=c?c.endPTS-c.startPTS:0;t.inputTimeScale||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),u=this.generateIS(e,t,r,o)),l=this.remuxVideo(t,g,n,i)}}else w&&(l=this.remuxVideo(t,g,n,0));l&&(l.firstKeyFrame=a,l.independent=-1!==a,l.firstKeyFramePTS=i)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(d=Do(n,r,this._initPTS,this._initDTS)),i.samples.length&&(h=No(i,r,this._initPTS))),{audio:c,video:l,initSegment:u,independent:p,text:h,id3:d}}generateIS(e,t,n,i){const r=e.samples,o=t.samples,a=this.typeSupported,s={},l=this._initPTS;let c,u,h,d,p=!l||i,f="audio/mp4";if(p&&(c=u=1/0),e.config&&r.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":a.mpeg?(f="audio/mpeg",e.codec=""):a.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3"}s.audio={id:"audio",container:f,codec:e.codec,initSegment:"mp3"===e.segmentCodec&&a.mpeg?new Uint8Array(0):ko.initSegment([e]),metadata:{channelCount:e.channelCount}},p&&(d=e.id,h=e.inputTimeScale,l&&h===l.timescale?p=!1:c=u=r[0].pts-Math.round(h*n))}if(t.sps&&t.pps&&o.length){if(t.timescale=t.inputTimeScale,s.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:ko.initSegment([t]),metadata:{width:t.width,height:t.height}},p)if(d=t.id,h=t.inputTimeScale,l&&h===l.timescale)p=!1;else{const e=this.getVideoStartPts(o),t=Math.round(h*n);u=Math.min(u,To(o[0].dts,e)-t),c=Math.min(c,e-t)}this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(s).length)return this.ISGenerated=!0,p?(this._initPTS={baseTime:c,timescale:h},this._initDTS={baseTime:u,timescale:h}):c=h=void 0,{tracks:s,initPTS:c,timescale:h,trackId:d}}remuxVideo(e,t,n,i){const r=e.inputTimeScale,o=e.samples,a=[],s=o.length,l=this._initPTS;let c,u,h=this.nextAvcDts,d=8,p=this.videoSampleDuration,f=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,m=!1;if(!n||null===h){const e=t*r,i=o[0].pts-To(o[0].dts,o[0].pts);Eo&&null!==h&&Math.abs(e-i-h)<15e3?n=!0:h=e-i}const v=l.baseTime*r/l.timescale;for(let e=0;e0?e-1:e].dts&&(m=!0)}m&&o.sort((function(e,t){const n=e.dts-t.dts,i=e.pts-t.pts;return n||i})),c=o[0].dts,u=o[o.length-1].dts;const y=u-c,b=y?Math.round(y/(s-1)):p||e.inputTimeScale/30;if(n){const n=c-h,i=n>b,r=n<-1;if((i||r)&&(i?this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Co(n,!0)} ms (${n}dts) hole between fragments detected at ${t.toFixed(3)}`):this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Co(-n,!0)} ms (${n}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!r||h>=o[0].pts||Eo)){c=h;const e=o[0].pts-n;if(i)o[0].dts=c,o[0].pts=e;else{let t=!0;for(let i=0;ie&&t);i++){const e=o[i].pts;if(o[i].dts-=n,o[i].pts-=n,i0?t.dts-o[e-1].dts:b;if(l=e>0?t.pts-o[e-1].pts:b,n.stretchShortVideoTrack&&null!==this.nextAudioPts){const e=Math.floor(n.maxBufferHole*r),o=(i?f+i*r:this.nextAudioPts)-t.pts;o>e?(p=o-a,p<0?p=a:P=!0,this.logger.log(`[mp4-remuxer]: It is approximately ${o/90} ms to the next segment; using duration ${p/90} ms for the last video frame.`)):p=a}else p=a}const u=Math.round(t.pts-t.dts);E=Math.min(E,p),L=Math.max(L,p),M=Math.min(M,l),A=Math.max(A,l),a.push(Lo(t.key,p,c,u))}if(a.length)if(Eo){if(Eo<70){const e=a[0].flags;e.dependsOn=2,e.isNonSync=0}}else if(Mo&&A-M0&&(i&&Math.abs(m-g)<9e3||Math.abs(To(p[0].pts-v,m)-g)<20*l),p.forEach((function(e){e.pts=To(e.pts-v,m)})),!n||g<0){if(p=p.filter((e=>e.pts>=0)),!p.length)return;g=0===r?0:i&&!d?Math.max(0,m):p[0].pts}if("aac"===e.segmentCodec){const t=this.config.maxAudioFramesDrift;for(let n=0,i=g;n=t*l&&c<1e4&&d){let t=Math.round(s/l);i=a-t*l,i<0&&(t--,i+=l),0===n&&(this.nextAudioPts=g=i),this.logger.warn(`[mp4-remuxer]: Injecting ${t} audio frame @ ${(i/o).toFixed(3)}s due to ${Math.round(1e3*s/o)} ms gap.`);for(let o=0;o0))return;x+=f;try{y=new Uint8Array(x)}catch(e){return void this.observer.emit(Y.ERROR,Y.ERROR,{type:W.MUX_ERROR,details:q.REMUX_ALLOC_ERROR,fatal:!1,error:e,bytes:x,reason:`fail allocating audio mdat ${x}`})}if(!u){new DataView(y.buffer).setUint32(0,x),y.set(ko.types.mdat,4)}}y.set(r,f);const l=r.byteLength;f+=l,h.push(Lo(!0,s,l,0)),w=o}const k=h.length;if(!k)return;const _=h[h.length-1];this.nextAudioPts=g=w+a*_.duration;const C=u?new Uint8Array(0):ko.moof(e.sequenceNumber++,b/a,se({},e,{samples:h}));e.samples=[];const P=b/o,E=g/o,M={data1:C,data2:y,startPTS:P,endPTS:E,startDTS:P,endDTS:E,type:"audio",hasAudio:!0,hasVideo:!1,nb:k};return this.isAudioContiguous=!0,M}}function To(e,t){let n;if(null===t)return e;for(n=t4294967296;)e+=n;return e}function Do(e,t,n,i){const r=e.samples.length;if(!r)return;const o=e.inputTimeScale;for(let a=0;ae.pts-t.pts));const o=e.samples;return e.samples=[],{samples:o}}function Io(e,t,n=!1){return void 0!==(null==e?void 0:e.start)?(e.start+(n?e.duration:0))/e.timescale:t}function Bo(e,t,n){const i=null==e?void 0:e.codec;if(i&&i.length>4)return i;if(t===Te){if("ec-3"===i||"ac-3"===i||"alac"===i)return i;if("fLaC"===i||"Opus"===i){return xt(i,!1)}return n.warn(`Unhandled audio codec "${i}" in mp4 MAP`),i||"mp4a"}return n.warn(`Unhandled video codec "${i}" in mp4 MAP`),i||"avc1"}try{Po=self.performance.now.bind(self.performance)}catch(e){Po=Date.now}const Ro=[{demux:class{constructor(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}resetTimeStamp(){}resetInitSegment(e,t,n,i){const r=this.videoTrack=Hr("video",1),o=this.audioTrack=Hr("audio",1),a=this.txtTrack=Hr("text",1);if(this.id3Track=Hr("id3",1),this.timeOffset=0,null==e||!e.byteLength)return;const s=Ye(e);if(s.video){const{id:e,timescale:t,codec:n,supplemental:i}=s.video;r.id=e,r.timescale=a.timescale=t,r.codec=n,r.supplemental=i}if(s.audio){const{id:e,timescale:t,codec:n}=s.audio;o.id=e,o.timescale=t,o.codec=n}a.id=$e.text,r.sampleDuration=0,r.duration=o.duration=i}resetContiguity(){this.remainderData=null}static probe(e){return function(e){const t=e.byteLength;for(let n=0;n8&&109===e[n+4]&&111===e[n+5]&&111===e[n+6]&&102===e[n+7])return!0;n=i>1?n+i:t}return!1}(e)}demux(e,t){this.timeOffset=t;let n=e;const i=this.videoTrack,r=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=it(this.remainderData,e));const t=function(e){const t={valid:null,remainder:null},n=We(e,["moof"]);if(n.length<2)return t.remainder=e,t;const i=n[n.length-1];return t.valid=e.slice(0,i.byteOffset-8),t.remainder=e.slice(i.byteOffset-8),t}(n);this.remainderData=t.remainder,i.samples=t.valid||new Uint8Array}else i.samples=n;const o=this.extractID3Track(i,t);return r.samples=rt(t,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:o,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const i=this.extractID3Track(t,this.timeOffset);return n.samples=rt(e,t),{videoTrack:t,audioTrack:Hr(),id3Track:i,textTrack:Hr()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const i=We(e.samples,["emsg"]);i&&i.forEach((e=>{const i=function(e){const t=e[0];let n="",i="",r=0,o=0,a=0,s=0,l=0,c=0;if(0===t){for(;"\0"!==He(e.subarray(c,c+1));)n+=He(e.subarray(c,c+1)),c+=1;for(n+=He(e.subarray(c,c+1)),c+=1;"\0"!==He(e.subarray(c,c+1));)i+=He(e.subarray(c,c+1)),c+=1;i+=He(e.subarray(c,c+1)),c+=1,r=Ke(e,12),o=Ke(e,16),s=Ke(e,20),l=Ke(e,24),c=28}else if(1===t){c+=4,r=Ke(e,c),c+=4;const t=Ke(e,c);c+=4;const o=Ke(e,c);for(c+=4,a=2**32*t+o,U(a)||(a=Number.MAX_SAFE_INTEGER,me.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),s=Ke(e,c),c+=4,l=Ke(e,c),c+=4;"\0"!==He(e.subarray(c,c+1));)n+=He(e.subarray(c,c+1)),c+=1;for(n+=He(e.subarray(c,c+1)),c+=1;"\0"!==He(e.subarray(c,c+1));)i+=He(e.subarray(c,c+1)),c+=1;i+=He(e.subarray(c,c+1)),c+=1}return{schemeIdUri:n,value:i,timeScale:r,presentationTime:a,presentationTimeDelta:o,eventDuration:s,id:l,payload:e.subarray(c,e.byteLength)}}(e);if(ro.test(i.schemeIdUri)){const e=oo(i,t);let r=4294967295===i.eventDuration?Number.POSITIVE_INFINITY:i.eventDuration/i.timeScale;r<=.001&&(r=Number.POSITIVE_INFINITY);const o=i.payload;n.samples.push({data:o,len:o.byteLength,dts:e,pts:e,type:$r.emsg,duration:r})}else if(this.config.enableEmsgKLVMetadata&&i.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const e=oo(i,t);n.samples.push({data:i.payload,len:i.payload.byteLength,dts:e,pts:e,type:$r.misbklv,duration:Number.POSITIVE_INFINITY})}}))}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}},remux:class{constructor(e,t,n,i){this.logger=void 0,this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1,this.logger=i}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(e,t,n,i){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(function(e,t){if(!e||!t)return e;const n=t.keyId;n&&t.isCommonEncryption&&We(e,["moov","trak"]).forEach((e=>{const t=We(e,["mdia","minf","stbl","stsd"])[0].subarray(8);let i=We(t,["enca"]);const r=i.length>0;r||(i=We(t,["encv"])),i.forEach((e=>{We(r?e.subarray(28):e.subarray(78),["sinf"]).forEach((e=>{const t=nt(e);if(t){const e=t.subarray(8,24);e.some((e=>0!==e))||(me.log(`[eme] Patching keyId in 'enc${r?"a":"v"}>sinf>>tenc' box: ${we(e)} -> ${we(n)}`),t.set(n,8))}}))}))}));return e}(e,i)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:n}=this;if(null==e||!e.byteLength)return this.initTracks=void 0,void(this.initData=void 0);const i=this.initData=Ye(e);i.audio&&(t=Bo(i.audio,Te,this.logger)),i.video&&(n=Bo(i.video,De,this.logger));const r={};i.audio&&i.video?r.audiovideo={container:"video/mp4",codec:t+","+n,supplemental:i.video.supplemental,initSegment:e,id:"main"}:i.audio?r.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:i.video?r.video={container:"video/mp4",codec:n,supplemental:i.video.supplemental,initSegment:e,id:"main"}:this.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=r}remux(e,t,n,i,r,o){var a,s;let{initPTS:l,lastEndTime:c}=this;const u={audio:void 0,video:void 0,text:i,id3:n,initSegment:void 0};G(c)||(c=this.lastEndTime=r||0);const h=t.samples;if(null==h||!h.length)return u;const d={initPTS:void 0,timescale:void 0,trackId:void 0};let p=this.initData;if(null!=(a=p)&&a.length||(this.generateInitSegment(h),p=this.initData),null==(s=p)||!s.length)return this.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),u;this.emitInitSegment&&(d.tracks=this.initTracks,this.emitInitSegment=!1);const f=function(e,t,n){const i={},r=We(e,["moof","traf"]);for(let e=0;ei[e].duration))){let t=1/0,n=0;const r=We(e,["sidx"]);for(let e=0;ee+t.info.duration||0),0);n=Math.max(n,e+i.earliestPresentationTime/i.timescale)}}n&&G(n)&&Object.keys(i).forEach((e=>{i[e].duration||(i[e].duration=n*i[e].timescale-i[e].start)}))}return i}(h,p,this.logger),g=p.audio?f[p.audio.id]:null,m=p.video?f[p.video.id]:null,v=Io(m,1/0),y=Io(g,1/0),b=Io(m,0,!0),w=Io(g,0,!0);let x,S=r,k=0;if(g&&(!m||!l&&yr}(l,S,r,k)&&d.timescale===l.timescale||(d.initPTS=S-r,l&&1===l.timescale&&this.logger.warn(`Adjusting initPTS @${r} from ${l.baseTime/l.timescale} to ${d.initPTS}`),this.initPTS=l={baseTime:d.initPTS,timescale:1});const _=e?S-l.baseTime/l.timescale:c;!function(e,t,n){We(t,["moof","traf"]).forEach((t=>{We(t,["tfhd"]).forEach((i=>{const r=Ke(i,4),o=e[r];if(!o)return;const a=o.timescale||9e4;We(t,["tfdt"]).forEach((e=>{const t=e[0],i=n*a;if(i){let n=Ke(e,4);if(0===t)n-=i,n=Math.max(n,0),Ve(e,4,n);else{n*=Math.pow(2,32),n+=Ke(e,8),n-=i,n=Math.max(n,0);const t=Math.floor(n/(ze+1)),r=Math.floor(n%(ze+1));Ve(e,4,t),Ve(e,8,r)}}}))}))}))}(p,h,l.baseTime/l.timescale);const C=_+k;k>0?this.lastEndTime=C:(this.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const P=!!p.audio,E=!!p.video;let M="";P&&(M+="audio"),E&&(M+="video");const L={data1:h,startPTS:_,startDTS:_,endPTS:C,endDTS:C,type:M,hasAudio:P,hasVideo:E,nb:1,dropped:0};u.audio=P&&!E?L:void 0,u.video=E?L:void 0;const A=null==m?void 0:m.sampleCount;if(A){const e=m.keyFrameIndex,t=-1!==e;L.nb=A,L.dropped=0===e||this.isVideoContiguous?0:t?e:A,L.independent=t,L.firstKeyFrame=e,t&&m.keyFrameStart&&(L.firstKeyFramePTS=m.keyFrameStart-l.baseTime/l.timescale),this.isVideoContiguous||(u.independent=t),this.isVideoContiguous||(this.isVideoContiguous=t),L.dropped&&this.logger.warn(`fmp4 does not start with IDR: firstIDR ${e}/${A} dropped: ${L.dropped} pts: ${L.firstKeyFramePTS||"NA"}`)}return u.initSegment=d,u.id3=Do(n,r,l,l),i.samples.length&&(u.text=No(i,r,l)),u}}},{demux:po,remux:Ao},{demux:class extends Zr{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,i){super.resetInitSegment(e,t,n,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const n=kr(e,0);let i=(null==n?void 0:n.length)||0;if(eo(e,i))return!1;for(let n=e.length;i0&&null!=(null==t?void 0:t.key)&&null!==t.iv&&null!=t.method&&(n=t);return n}(o,t);if(b&&qn(b.method)){const e=this.getDecrypter(),t=Yn(b.method);if(!e.isSync())return this.asyncResult=!0,this.decryptionPromise=e.webCryptoDecrypt(o,b.key.buffer,b.iv.buffer,t).then((e=>{const t=this.push(e,null,n);return this.decryptionPromise=null,t})),this.decryptionPromise;{let i=e.softwareDecrypt(o,b.key.buffer,b.iv.buffer,t);if(n.part>-1){const t=e.flush();i=t?t.buffer:t}if(!i)return r.executeEnd=Po(),Fo(n);o=new Uint8Array(i)}}const w=this.needsProbing(c,u);if(w){const e=this.configureTransmuxer(o);if(e)return this.logger.warn(`[transmuxer] ${e.message}`),this.observer.emit(Y.ERROR,Y.ERROR,{type:W.MEDIA_ERROR,details:q.FRAG_PARSING_ERROR,fatal:!1,error:e,reason:e.message}),r.executeEnd=Po(),Fo(n)}(c||u||p||w)&&this.resetInitSegment(y,f,g,v,t),(c||p||w)&&this.resetInitialTimestamp(m),l||this.resetContiguity();const x=this.transmux(o,b,d,h,n);this.asyncResult=zo(x);const S=this.currentTransmuxState;return S.contiguous=!0,S.discontinuity=!1,S.trackSwitch=!1,r.executeEnd=Po(),x}flush(e){const t=e.transmuxing;t.executeStart=Po();const{decrypter:n,currentTransmuxState:i,decryptionPromise:r}=this;if(r)return this.asyncResult=!0,r.then((()=>this.flush(e)));const o=[],{timeOffset:a}=i;if(n){const t=n.flush();t&&o.push(this.push(t.buffer,null,e))}const{demuxer:s,remuxer:l}=this;if(!s||!l){t.executeEnd=Po();const n=[Fo(e)];return this.asyncResult?Promise.resolve(n):n}const c=s.flush(a);return zo(c)?(this.asyncResult=!0,c.then((t=>(this.flushRemux(o,t,e),o)))):(this.flushRemux(o,c,e),this.asyncResult?Promise.resolve(o):o)}flushRemux(e,t,n){const{audioTrack:i,videoTrack:r,id3Track:o,textTrack:a}=t,{accurateTimeOffset:s,timeOffset:l}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===te?"level":"track"} ${n.level}`);const c=this.remuxer.remux(i,r,o,a,l,s,!0,this.id);e.push({remuxResult:c,chunkMeta:n}),n.transmuxing.executeEnd=Po()}resetInitialTimestamp(e){const{demuxer:t,remuxer:n}=this;t&&n&&(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;e&&t&&(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,i,r){const{demuxer:o,remuxer:a}=this;o&&a&&(o.resetInitSegment(e,t,n,i),a.resetInitSegment(e,t,n,r))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,i,r){let o;return o=t&&"SAMPLE-AES"===t.method?this.transmuxSampleAes(e,t,n,i,r):this.transmuxUnencrypted(e,n,i,r),o}transmuxUnencrypted(e,t,n,i){const{audioTrack:r,videoTrack:o,id3Track:a,textTrack:s}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(r,o,a,s,t,n,!1,this.id),chunkMeta:i}}transmuxSampleAes(e,t,n,i,r){return this.demuxer.demuxSampleAes(e,t,n).then((e=>({remuxResult:this.remuxer.remux(e.audioTrack,e.videoTrack,e.id3Track,e.textTrack,n,i,!1,this.id),chunkMeta:r})))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:i}=this;let r;for(let t=0,n=Ro.length;t({remuxResult:{},chunkMeta:e});function zo(e){return"then"in e&&e.then instanceof Function}class jo{constructor(e,t,n,i,r){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=n,this.duration=i,this.defaultInitPts=r||null}}class $o{constructor(e,t,n,i,r,o){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=i,this.timeOffset=r,this.initSegmentChange=o}}let Ho=0;class Zo{constructor(e,t,n,i){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Ho++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=e=>{const t=e.data,n=this.hls;if(n&&null!=t&&t.event&&t.instanceNo===this.instanceNo)switch(t.event){case"init":{var i;const e=null==(i=this.workerContext)?void 0:i.objectURL;e&&self.URL.revokeObjectURL(e);break}case"transmuxComplete":this.handleTransmuxComplete(t.data);break;case"flush":this.onFlush(t.data);break;case"workerLog":n.logger[t.data.logType]&&n.logger[t.data.logType](t.data.message);break;default:t.data=t.data||{},t.data.frag=this.frag,t.data.part=this.part,t.data.id=this.id,n.trigger(t.event,t.data)}},this.onWorkerError=e=>{if(!this.hls)return;const t=new Error(`${e.message} (${e.filename}:${e.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:t})};const r=e.config;this.hls=e,this.id=t,this.useWorker=!!r.enableWorker,this.onTransmuxComplete=n,this.onFlush=i;const o=(e,t)=>{(t=t||{}).frag=this.frag||void 0,e===Y.ERROR&&(t.parent=this.id,t.part=this.part,this.error=t.error),this.hls.trigger(e,t)};this.observer=new vr,this.observer.on(Y.FRAG_DECRYPTED,o),this.observer.on(Y.ERROR,o);const a=_t(r.preferManagedMediaSource);if(this.useWorker&&"undefined"!=typeof Worker){const n=this.hls.logger;if(r.workerPath||"function"==typeof __HLS_WORKER_BUNDLE__){try{r.workerPath?(n.log(`loading Web Worker ${r.workerPath} for "${t}"`),this.workerContext=function(e){const t=br[e];if(t)return t.clientCount++,t;const n=new self.URL(e,self.location.href).href,i={worker:new self.Worker(n),scriptURL:n,clientCount:1};return br[e]=i,i}(r.workerPath)):(n.log(`injecting Web Worker for "${t}"`),this.workerContext=function(){const e=br[yr];if(e)return e.clientCount++,e;const t=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),n=self.URL.createObjectURL(t),i={worker:new self.Worker(n),objectURL:n,clientCount:1};return br[yr]=i,i}());const{worker:e}=this.workerContext;e.addEventListener("message",this.onWorkerMessage),e.addEventListener("error",this.onWorkerError),e.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:a,id:t,config:$t(r)})}catch(i){n.warn(`Error setting up "${t}" Web Worker, fallback to inline`,i),this.terminateWorker(),this.error=null,this.transmuxer=new Oo(this.observer,a,r,"",t,e.logger)}return}}this.transmuxer=new Oo(this.observer,a,r,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=Ho++;const t=this.hls.config,n=_t(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:$t(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),function(e){const t=br[e||yr];if(t&&1==t.clientCount--){const{worker:n,objectURL:i}=t;delete br[e||yr],i&&self.URL.revokeObjectURL(i),n.terminate()}}(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const e=this.transmuxer;e&&(e.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,n,i,r,o,a,s,l,c){var u,h;l.transmuxing.start=self.performance.now();const{instanceNo:d,transmuxer:p}=this,f=o?o.start:r.start,g=r.decryptdata,m=this.frag,v=!(m&&r.cc===m.cc),y=!(m&&l.level===m.level),b=m?l.sn-m.sn:-1,w=this.part?l.part-this.part.index:-1,x=0===b&&l.id>1&&l.id===(null==m?void 0:m.stats.chunkCount),S=!y&&(1===b||0===b&&(1===w||x&&w<=0)),k=self.performance.now();(y||b||0===r.stats.parsing.start)&&(r.stats.parsing.start=k),!o||!w&&S||(o.stats.parsing.start=k);const _=!(m&&(null==(u=r.initSegment)?void 0:u.url)===(null==(h=m.initSegment)?void 0:h.url)),C=new $o(v,S,s,y,f,_);if(!S||v||_){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${r.type} sn: ${l.sn}${l.part>-1?" part: "+l.part:""} ${this.id===te?"level":"track"}: ${l.level} id: ${l.id}\n discontinuity: ${v}\n trackSwitch: ${y}\n contiguous: ${S}\n accurateTimeOffset: ${s}\n timeOffset: ${f}\n initSegmentChange: ${_}`);const e=new jo(n,i,t,a,c);this.configureTransmuxer(e)}if(this.frag=r,this.part=o,this.workerContext)this.workerContext.worker.postMessage({instanceNo:d,cmd:"demux",data:e,decryptdata:g,chunkMeta:l,state:C},e instanceof ArrayBuffer?[e]:[]);else if(p){const t=p.push(e,g,l,C);zo(t)?t.then((e=>{this.handleTransmuxComplete(e)})).catch((e=>{this.transmuxerError(e,l,"transmuxer-interface push error")})):this.handleTransmuxComplete(t)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(n){const t=n.flush(e);zo(t)?t.then((t=>{this.handleFlushResult(t,e)})).catch((t=>{this.transmuxerError(t,e,"transmuxer-interface flush error")})):this.handleFlushResult(t,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach((e=>{this.handleTransmuxComplete(e)})),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):n&&n.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}class Ko extends ue{constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const i=null==t?void 0:t.renditionReports;if(i){let r=-1;for(let n=0;n=0&&e>t.partTarget&&(a+=1)}const s=n&&Rt(n);return new Ot(o,a>=0?a:void 0,s)}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(e){this.warn(`Could not construct new URL with HLS Delivery Directives: ${e}`)}return e}playlistLoaded(e,t,n){const{details:i,stats:r}=t,o=self.performance.now(),a=r.loading.first?Math.max(0,o-r.loading.first):0;i.advancedDateTime=Date.now()-a;const s=this.hls.config.timelineOffset;if(s!==i.appliedTimelineOffset){const e=Math.max(s||0,0);i.appliedTimelineOffset=e,i.fragments.forEach((t=>{t.start=t.playlistOffset+e}))}if(i.live||null!=n&&n.live){const s="levelInfo"in t?t.levelInfo:t.track;if(i.reloaded(n),n&&i.fragments.length>0){Fi(n,i);const e=i.playlistParsingError;if(e){this.warn(e);const n=this.hls;if(!n.config.ignorePlaylistParsingErrors){var l;const{networkDetails:o}=t;return void n.trigger(Y.ERROR,{type:W.NETWORK_ERROR,details:q.LEVEL_PARSING_ERROR,fatal:!1,url:i.url,error:e,reason:e.message,level:t.level||void 0,parent:null==(l=i.fragments[0])?void 0:l.type,networkDetails:o,stats:r})}i.playlistParsingError=null}}-1===i.requestScheduled&&(i.requestScheduled=r.loading.start);const c=this.hls.mainForwardBufferInfo,u=c?c.end-c.len:0,h=Hi(i,1e3*(i.edge-u));if(i.requestScheduled+h0){if(h>3*i.targetduration)this.log(`Playlist last advanced ${u.toFixed(2)}s ago. Omitting segment and part directives.`),p=void 0,f=void 0;else if(null!=n&&n.tuneInGoal&&h-i.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${g} with playlist age: ${i.age}`),g=0;else{const e=Math.floor(g/i.targetduration);if(p+=e,void 0!==f){f+=Math.round(g%i.targetduration/i.partTarget)}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${u.toFixed(2)}s goal: ${g} skip sn ${e} to part ${f}`)}i.tuneInGoal=g}if(d=this.getDeliveryDirectives(i,t.deliveryDirectives,p,f),e||!c)return i.requestScheduled=o,void this.loadingPlaylist(s,d)}else(i.canBlockReload||i.canSkipUntil)&&(d=this.getDeliveryDirectives(i,t.deliveryDirectives,p,f));d&&void 0!==p&&i.canBlockReload&&(i.requestScheduled=r.loading.first+Math.max(h-2*a,h/2)),this.scheduleLoading(s,d,i)}else this.clearTimer()}scheduleLoading(e,t,n){const i=n||e.details;if(!i)return void this.loadingPlaylist(e,t);const r=self.performance.now(),o=i.requestScheduled;if(r>=o)return void this.loadingPlaylist(e,t);const a=o-r;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(a)} ms`),this.clearTimer(),this.timer=self.setTimeout((()=>this.loadingPlaylist(e,t)),a)}getDeliveryDirectives(e,t,n,i){let r=Rt(e);return null!=t&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,i=t.part,r=Nt),new Ot(n,i,r)}checkRetry(e){const t=e.details,n=tn(e),i=e.errorAction,{action:r,retryCount:o=0,retryConfig:a}=i||{},s=!!i&&!!a&&(r===un||!i.resolved&&r===ln);if(s){var l;if(o>=a.maxNumRetry)return!1;if(n&&null!=(l=e.context)&&l.deliveryDirectives)this.warn(`Retrying playlist loading ${o+1}/${a.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const e=rn(a,o);this.clearTimer(),this.timer=self.setTimeout((()=>this.loadPlaylist()),e),this.warn(`Retrying playlist loading ${o+1}/${a.maxNumRetry} after "${t}" in ${e}ms`)}e.levelRetry=!0,i.resolved=!0}return s}}function Go(e,t){if(e.length!==t.length)return!1;for(let n=0;ne[n]!==t[n]))}function Vo(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class Wo{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,n){if(null===this.queues||null===this.tracks)return;const i=this.queues[t];i.push(e),1!==i.length||n||this.executeNext(t)}appendBlocker(e){return new Promise((t=>{const n={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(n,e)}))}prependBlocker(e){return new Promise((t=>{if(this.queues){const n={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(n)}}))}removeBlockers(){null!==this.queues&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach((e=>{var t;const n=null==(t=e[0])?void 0:t.label;"async-blocker"!==n&&"async-blocker-prepend"!==n||(e[0].execute(),e.splice(0,1))}))}unblockAudio(e){if(null===this.queues)return;this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio")}executeNext(e){if(null===this.queues||null===this.tracks)return;const t=this.queues[e];if(t.length){const i=t[0];try{i.execute()}catch(t){var n;if(i.onError(t),null===this.queues||null===this.tracks)return;const r=null==(n=this.tracks[e])?void 0:n.buffer;null!=r&&r.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){null!==this.queues&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return(null==(t=this.queues)?void 0:t[e][0])||null}toString(){const{queues:e,tracks:t}=this;return null===e||null===t?"":`\n${this.list("video")}\n${this.list("audio")}\n${this.list("audiovideo")}}`}list(e){var t,n;return null!=(t=this.queues)&&t[e]||null!=(n=this.tracks)&&n[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const n=null==(t=this.tracks)?void 0:t[e],i=null==n?void 0:n.buffer;return i?`SourceBuffer${i.updating?" updating":""}${n.ended?" ended":""}${n.ending?" ending":""}`:"none"}listOps(e){var t;return(null==(t=this.queues)?void 0:t[e].map((e=>e.label)).join(", "))||""}}const qo=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,Yo="HlsJsTrackRemovedError";class Xo extends Error{constructor(e){super(e),this.name=Yo}}function Qo(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach((t=>{e.removeChild(t)}))}function Jo(e){return"audio"===e?1:0}class ea{constructor(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:e}=this;e.on(Y.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(Y.BUFFER_CODECS,this.onBufferCodecs,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(Y.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(Y.BUFFER_CODECS,this.onBufferCodecs,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const n=this.hls.levels[t.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){const n=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,n.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&G(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0)return void(this.clientRect=null);const e=this.hls.levels;if(e.length){const t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const n=t.filter(((t,n)=>this.isLevelAllowed(t)&&n<=e));return this.clientRect=null,ea.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,t.width||t.height||(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(e){}return Math.min(e,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(e){return!this.restrictedLevels.some((t=>e.bitrate===t.bitrate&&e.width===t.width&&e.height===t.height))}static getMaxLevelByMediaSize(e,t,n){if(null==e||!e.length)return-1;let i=e.length-1;const r=Math.max(t,n);for(let t=0;t=r||n.height>=r)&&(o=n,!(a=e[t+1])||o.width!==a.width||o.height!==a.height)){i=t;break}}var o,a;return i}}const ta={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},na={HLS:"h"},ia="CMCD-Request",ra={["CMCD-Object"]:["br","d","ot","tb"],[ia]:["bl","dl","mtp","nor","nrr","su"],["CMCD-Session"]:["cid","pr","sf","sid","st","v"],["CMCD-Status"]:["bs","rtp"]};class oa{constructor(e,t){Array.isArray(e)&&(e=e.map((e=>e instanceof oa?e:new oa(e)))),this.value=e,this.params=t}}function aa(e,t,n,i){return new Error(`failed to ${e} "${r=t,Array.isArray(r)?JSON.stringify(r):r instanceof Map?"Map{}":r instanceof Set?"Set{}":"object"==typeof r?JSON.stringify(r):String(r)}" as ${n}`,{cause:i});var r}function sa(e,t,n){return aa("serialize",e,t,n)}class la{constructor(e){this.description=e}}const ca="Bare Item";function ua(e){if(!1===ArrayBuffer.isView(e))throw sa(e,"Byte Sequence");return`:${t=e,btoa(String.fromCharCode(...t))}:`;var t}function ha(e){if(function(e){return e<-999999999999999||99999999999999912)throw sa(e,"Decimal");const n=t.toString();return n.includes(".")?n:`${n}.0`}const fa=/[\x00-\x1f\x7f]+/;function ga(e){const t=(n=e).description||n.toString().slice(7,-1);var n;if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t))throw sa(t,"Token");return t}function ma(e){switch(typeof e){case"number":if(!G(e))throw sa(e,ca);return Number.isInteger(e)?ha(e):pa(e);case"string":return function(e){if(fa.test(e))throw sa(e,"String");return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}(e);case"symbol":return ga(e);case"boolean":return function(e){if("boolean"!=typeof e)throw sa(e,"Boolean");return e?"?1":"?0"}(e);case"object":if(e instanceof Date)return function(e){return`@${ha(e.getTime()/1e3)}`}(e);if(e instanceof Uint8Array)return ua(e);if(e instanceof la)return ga(e);default:throw sa(e,ca)}}function va(e){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(e))throw sa(e,"Key");return e}function ya(e){return null==e?"":Object.entries(e).map((([e,t])=>!0===t?`;${va(e)}`:`;${va(e)}=${ma(t)}`)).join("")}function ba(e){return e instanceof oa?`${ma(e.value)}${ya(e.params)}`:ma(e)}function wa(e,t={whitespace:!0}){if("object"!=typeof e)throw sa(e,"Dict");const n=e instanceof Map?e.entries():Object.entries(e),i=(null==t?void 0:t.whitespace)?" ":"";return Array.from(n).map((([e,t])=>{t instanceof oa==!1&&(t=new oa(t));let n=va(e);var i;return!0===t.value?n+=ya(t.params):(n+="=",Array.isArray(t.value)?n+=`(${(i=t).value.map(ba).join(" ")})${ya(i.params)}`:n+=ba(t)),n})).join(`,${i}`)}const xa=e=>Math.round(e),Sa=e=>100*xa(e/100),ka={br:xa,d:xa,bl:Sa,dl:Sa,mtp:Sa,nor:(e,t)=>((null==t?void 0:t.baseUrl)&&(e=function(e,t){const n=new URL(e),i=new URL(t);if(n.origin!==i.origin)return e;const r=n.pathname.split("/").slice(1),o=i.pathname.split("/").slice(1,-1);for(;r[0]===o[0];)r.shift(),o.shift();for(;o.length;)o.shift(),r.unshift("..");return r.join("/")}(e,t.baseUrl)),encodeURIComponent(e)),rtp:Sa,tb:xa};function _a(e,t){const n={};if(null==e||"object"!=typeof e)return n;const i=Object.keys(e).sort(),r=se({},ka,null==t?void 0:t.formatters),o=null==t?void 0:t.filter;return i.forEach((i=>{if(null==o?void 0:o(i))return;let a=e[i];const s=r[i];s&&(a=s(a,t)),"v"===i&&1===a||"pr"==i&&1===a||function(e){return"number"==typeof e?G(e):null!=e&&""!==e&&!1!==e}(a)&&(function(e){return"ot"===e||"sf"===e||"st"===e}(i)&&"string"==typeof a&&(a=new la(a)),n[i]=a)})),n}function Ca(e,t={}){return e?function(e,t){return wa(e,t)}(_a(e,t),se({whitespace:!1},t)):""}function Pa(e,t,n){return se(e,function(e,t={}){const n={};if(!e)return n;const i=Object.entries(e),r=Object.entries(ra).concat(Object.entries((null==t?void 0:t.customHeaderMap)||{})),o=i.reduce(((e,t)=>{var n,i;const[o,a]=t,s=(null===(n=r.find((e=>e[1].includes(o))))||void 0===n?void 0:n[0])||ia;return null!==(i=e[s])&&void 0!==i||(e[s]={}),e[s][o]=a,e}),{});return Object.entries(o).reduce(((e,[n,i])=>(e[n]=Ca(i,t),e)),n)}(t,n))}const Ea=/CMCD=[^&#]+/;function Ma(e,t,n){const i=function(e,t={}){if(!e)return"";const n=Ca(e,t);return`CMCD=${encodeURIComponent(n)}`}(t,n);if(!i)return e;if(Ea.test(e))return e.replace(Ea,i);const r=e.includes("?")?"&":"?";return`${e}${r}${i}`}function La(e,t,n,i){e&&Object.keys(t).forEach((r=>{const o=e.filter((e=>e.groupId===r)).map((e=>{const o=se({},e);return o.details=void 0,o.attrs=new Gn(o.attrs),o.url=o.attrs.URI=Aa(e.url,e.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),o.groupId=o.attrs["GROUP-ID"]=t[r],o.attrs["PATHWAY-ID"]=i,o}));e.push(...o)}))}function Aa(e,t,n,i){const{HOST:r,PARAMS:o,[n]:a}=i;let s;t&&(s=null==a?void 0:a[t],s&&(e=s));const l=new self.URL(e);return r&&!s&&(l.host=r),o&&Object.keys(o).sort().forEach((e=>{e&&l.searchParams.set(e,o[e])})),l.href}function Ta(e,t,n){Da(e,t,n),e.addEventListener(t,n)}function Da(e,t,n){e.removeEventListener(t,n)}class Na extends ue{constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.mediaKeys=null,this.setMediaKeysQueue=Na.CDMCleanupPromise?[Na.CDMCleanupPromise]:[],this.onMediaEncrypted=e=>{const{initDataType:t,initData:n}=e,i=`"${e.type}" event: init data type: "${t}"`;if(this.debug(i),null!==n){if(!this.keyFormatPromise){let e=Object.keys(this.keySystemAccessPromises);e.length||(e=pi(this.config));const t=e.map(di).filter((e=>!!e));this.keyFormatPromise=this.getKeyFormatPromise(t)}this.keyFormatPromise.then((r=>{const o=ai(r);let a,s;if("sinf"===t){if(o!==ti.FAIRPLAY)return void this.warn(`Ignoring unexpected "${e.type}" event with init data type: "${t}" for selected key-system ${o}`);const r=He(new Uint8Array(n));try{const e=nt(Xn(JSON.parse(r).sinf));if(!e)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");a=new Uint8Array(e.subarray(8,24)),s=ti.FAIRPLAY}catch(e){return void this.warn(`${i} Failed to parse sinf: ${e}`)}}else{if(o!==ti.WIDEVINE&&o!==ti.PLAYREADY)return void this.warn(`Ignoring unexpected "${e.type}" event with init data type: "${t}" for selected key-system ${o}`);const r=function(e){const t=[];if(e instanceof ArrayBuffer){const n=e.byteLength;let i=0;for(;i+32!!e.systemId&&hi(e.systemId)===o));l.length>1&&this.warn(`${i} Using first of ${l.length} pssh found for selected key-system ${o}`);const c=l[0];if(!c)return void(0===r.length||r.some((e=>!e.systemId))?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${r.map((e=>hi(e.systemId))).join(",")} pssh data in favor of playlist keys`));if(s=hi(c.systemId),0===c.version&&c.data)if(s===ti.WIDEVINE){const e=c.data.length-22;a=new Uint8Array(c.data.subarray(e,e+16))}else s===ti.PLAYREADY&&(a=mi(c.data))}if(!s||!a)return;const l=we(a),{keyIdToKeySessionPromise:c,mediaKeySessions:u}=this;let h=c[l];for(let e=0;ethis.generateRequestWithPreferredKeySession(i,t,n,"encrypted-event-key-match"))),h.catch((e=>this.handleError(e)));break}}if(!h){if(s!==o)return void this.log(`Ignoring "${e.type}" event with ${s} init data for selected key-system ${o}`);h=c[l]=this.getKeySystemSelectionPromise([s]).then((({keySystem:e,mediaKeys:i})=>{var r;this.throwIfDestroyed();const o=new yi("ISO-23001-7",l,null!=(r=di(e))?r:"");return o.pssh=new Uint8Array(n),o.keyId=a,this.attemptSetMediaKeys(e,i).then((()=>{this.throwIfDestroyed();const r=this.createMediaKeySessionContext({decryptdata:o,keySystem:e,mediaKeys:i});return this.generateRequestWithPreferredKeySession(r,t,n,"encrypted-event-no-match")}))})),h.catch((e=>this.handleError(e)))}}))}},this.onWaitingForKey=e=>{this.log(`"${e.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(Y.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(Y.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(Y.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(Y.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(Y.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(Y.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(Y.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(Y.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,i=t[e];return i?i.licenseUrl:e===ti.WIDEVINE&&n?n:void 0}getLicenseServerUrlOrThrow(e){const t=this.getLicenseServerUrl(e);if(void 0===t)throw new Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){const{drmSystems:t}=this.config,n=t[e];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,n=(e,t,n)=>!!e&&n.indexOf(e)===t,i=t.map((e=>e.audioCodec)).filter(n),r=t.map((e=>e.videoCodec)).filter(n);return i.length+r.length===0&&r.push("avc1.42e01e"),new Promise(((t,n)=>{const o=e=>{const a=e.shift();this.getMediaKeysPromise(a,i,r).then((e=>t({keySystem:a,mediaKeys:e}))).catch((t=>{e.length?o(e):n(t instanceof Ia?t:new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_NO_ACCESS,error:t,fatal:!0},t.message))}))};o(e)}))}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if("function"!=typeof n){let e=`Configured requestMediaKeySystemAccess is not a function ${n}`;return null===fi&&"http:"===self.location.protocol&&(e=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(e))}return n(e,t)}getMediaKeysPromise(e,t,n){const i=function(e,t,n,i){let r;switch(e){case ti.FAIRPLAY:r=["cenc","sinf"];break;case ti.WIDEVINE:case ti.PLAYREADY:r=["cenc"];break;case ti.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return function(e,t,n,i){return[{initDataTypes:e,persistentState:i.persistentState||"optional",distinctiveIdentifier:i.distinctiveIdentifier||"optional",sessionTypes:i.sessionTypes||[i.sessionType||"temporary"],audioCapabilities:t.map((e=>({contentType:`audio/mp4; codecs=${e}`,robustness:i.audioRobustness||"",encryptionScheme:i.audioEncryptionScheme||null}))),videoCapabilities:n.map((e=>({contentType:`video/mp4; codecs=${e}`,robustness:i.videoRobustness||"",encryptionScheme:i.videoEncryptionScheme||null})))}]}(r,t,n,i)}(e,t,n,this.config.drmSystemOptions),r=this.keySystemAccessPromises[e];let o=null==r?void 0:r.keySystemAccess;if(!o){this.log(`Requesting encrypted media "${e}" key-system access with config: ${$t(i)}`),o=this.requestMediaKeySystemAccess(e,i);const t=this.keySystemAccessPromises[e]={keySystemAccess:o};return o.catch((t=>{this.log(`Failed to obtain access to key-system "${e}": ${t}`)})),o.then((n=>{this.log(`Access for key-system "${n.keySystem}" obtained`);const i=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),t.mediaKeys=n.createMediaKeys().then((n=>(this.log(`Media-keys created for "${e}"`),t.hasMediaKeys=!0,i.then((t=>t?this.setMediaKeysServerCertificate(n,e,t):n))))),t.mediaKeys.catch((t=>{this.error(`Failed to create media-keys for "${e}"}: ${t}`)})),t.mediaKeys}))}return o.then((()=>r.mediaKeys))}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${we(e.keyId||[])}`);const i=n.createSession(),r={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(r),r}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),i=this.getKeyIdString(t),r="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(n,r,t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(null===e.keyId)throw new Error("keyId is null");return we(e.keyId)}updateKeySession(e,t){var n;const i=e.mediaKeysSession;return this.log(`Updating key-session "${i.sessionId}" for keyID ${we((null==(n=e.decryptdata)?void 0:n.keyId)||[])}\n } (data length: ${t?t.byteLength:t})`),i.update(t)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map((e=>({keySystem:e,hasMediaKeys:this.keySystemAccessPromises[e].hasMediaKeys}))).filter((({hasMediaKeys:e})=>!!e)).map((({keySystem:e})=>di(e))).filter((e=>!!e))}getKeySystemAccess(e){return this.getKeySystemSelectionPromise(e).then((({keySystem:e,mediaKeys:t})=>this.attemptSetMediaKeys(e,t)))}selectKeySystem(e){return new Promise(((t,n)=>this.getKeySystemSelectionPromise(e).then((({keySystem:e})=>{const i=di(e);i?t(i):n(new Error(`Unable to find format for key-system "${e}"`))})).catch(n)))}selectKeySystemFormat(e){const t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){const t=pi(this.config),n=e.map(ai).filter((e=>!!e&&-1!==t.indexOf(e)));return this.selectKeySystem(n)}loadKey(e){const t=e.keyInfo.decryptdata,n=this.getKeyIdString(t),i=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${i}`);let r=this.keyIdToKeySessionPromise[n];if(!r){r=this.getKeySystemForKeyPromise(t).then((({keySystem:n,mediaKeys:r})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${i}`),this.attemptSetMediaKeys(n,r).then((()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:n,mediaKeys:r,decryptdata:t})))))));(this.keyIdToKeySessionPromise[n]=r.then((e=>{const n=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(e,"cenc",n,"playlist-key")}))).catch((e=>this.handleError(e)))}return r}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof Ia?this.hls.trigger(Y.ERROR,e.data):this.hls.trigger(Y.ERROR,{type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){const t=ai(e.keyFormat),n=t?[t]:pi(this.config);return this.attemptKeySystemAccess(n)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=pi(this.config)),0===e.length)throw new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${$t({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){if(this.mediaKeys===t)return Promise.resolve();const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const i=Promise.all(n).then((()=>{if(!this.media)throw this.mediaKeys=null,new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)}));return this.mediaKeys=t,this.setMediaKeysQueue.push(i),i.then((()=>{this.log(`Media-keys set for "${e}"`),n.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter((e=>-1===n.indexOf(e)))}))}generateRequestWithPreferredKeySession(e,t,n,i){var r,o;const a=null==(r=this.config.drmSystems)||null==(o=r[e.keySystem])?void 0:o.generateRequest;if(a)try{const i=a.call(this.hls,t,n,e);if(!i)throw new Error("Invalid response from configured generateRequest filter");t=i.initDataType,n=i.initData?i.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(e){var s;if(this.warn(e.message),null!=(s=this.hls)&&s.config.debug)throw e}if(null===n)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(e);const l=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${i}": ${l} (init data type: ${t} length: ${n?n.byteLength:null})`);const c=new vr,u=e._onmessage=t=>{const n=e.mediaKeysSession;if(!n)return void c.emit("error",new Error("invalid state"));const{messageType:i,message:r}=t;this.log(`"${i}" message event for session "${n.sessionId}" message size: ${r.byteLength}`),"license-request"===i||"license-renewal"===i?this.renewLicense(e,r).catch((e=>{c.eventNames().length?c.emit("error",e):this.handleError(e)})):"license-release"===i?e.keySystem===ti.FAIRPLAY&&(this.updateKeySession(e,Qn("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${i}"`)},h=e._onkeystatuseschange=t=>{if(!e.mediaKeysSession)return void c.emit("error",new Error("invalid state"));this.onKeyStatusChange(e);const n=e.keyStatus;c.emit("keyStatus",n),"expired"===n&&(this.warn(`${e.keySystem} expired for key ${l}`),this.renewKeySession(e))};Ta(e.mediaKeysSession,"message",u),Ta(e.mediaKeysSession,"keystatuseschange",h);const d=new Promise(((e,t)=>{c.on("error",t),c.on("keyStatus",(n=>{n.startsWith("usable")?e():"output-restricted"===n?t(new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):"internal-error"===n?t(new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${n}"`)):"expired"===n?t(new Error("key expired while generating request")):this.warn(`unhandled key status change "${n}"`)}))}));return e.mediaKeysSession.generateRequest(t,n).then((()=>{var t;this.log(`Request generated for key-session "${null==(t=e.mediaKeysSession)?void 0:t.sessionId}" keyId: ${l}`)})).catch((e=>{throw new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_NO_SESSION,error:e,fatal:!1},`Error generating key-session request: ${e}`)})).then((()=>d)).catch((t=>{throw c.removeAllListeners(),this.removeSession(e),t})).then((()=>(c.removeAllListeners(),e)))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach(((t,n)=>{if("string"==typeof n&&"object"==typeof t){const e=n;n=t,t=e}this.log(`key status change "${t}" for keyStatuses keyId: ${we("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${we(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t}))}fetchServerCertificate(e){const t=this.config,n=new(0,t.loader)(t),i=this.getServerCertificateUrl(e);return i?(this.log(`Fetching server certificate for "${e}"`),new Promise(((r,o)=>{const a={responseType:"arraybuffer",url:i},s=t.certLoadPolicy.default,l={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(e,t,n,i)=>{r(e.data)},onError:(t,n,r,s)=>{o(new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:ce({url:a.url,data:void 0},t)},`"${e}" certificate request failed (${i}). Status: ${t.code} (${t.text})`))},onTimeout:(t,n,r)=>{o(new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:{url:a.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(e,t,n)=>{o(new Error("aborted"))}};n.load(a,l,c)}))):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise(((i,r)=>{e.setServerCertificate(n).then((r=>{this.log(`setServerCertificate ${r?"success":"not supported by CDM"} (${null==n?void 0:n.byteLength}) on "${t}"`),i(e)})).catch((e=>{r(new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:e,fatal:!0},e.message))}))}))}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then((t=>this.updateKeySession(e,new Uint8Array(t)).catch((e=>{throw new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:e,fatal:!0},e.message)}))))}unpackPlayReadyKeyMessage(e,t){const n=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const i=(new DOMParser).parseFromString(n,"application/xml"),r=i.querySelectorAll("HttpHeader");if(r.length>0){let t;for(let n=0,i=r.length;n in key message");return Qn(atob(l))}setupLicenseXHR(e,t,n,i){const r=this.config.licenseXhrSetup;return r?Promise.resolve().then((()=>{if(!n.decryptdata)throw new Error("Key removed");return r.call(this.hls,e,t,n,i)})).catch((o=>{if(!n.decryptdata)throw o;return e.open("POST",t,!0),r.call(this.hls,e,t,n,i)})).then((n=>{e.readyState||e.open("POST",t,!0);return{xhr:e,licenseChallenge:n||i}})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:i}))}requestLicense(e,t){const n=this.config.keyLoadPolicy.default;return new Promise(((i,r)=>{const o=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${o}`);const a=new XMLHttpRequest;a.responseType="arraybuffer",a.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return r(new Error("invalid state"));if(4===a.readyState)if(200===a.status){this._requestLicenseFailureCount=0;let t=a.response;this.log(`License received ${t instanceof ArrayBuffer?t.byteLength:t}`);const n=this.config.licenseResponseCallback;if(n)try{t=n.call(this.hls,a,o,e)}catch(e){this.error(e)}i(t)}else{const s=n.errorRetry,l=s?s.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>l||a.status>=400&&a.status<500)r(new Ia({type:W.KEY_SYSTEM_ERROR,details:q.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:a,response:{url:o,data:void 0,code:a.status,text:a.statusText}},`License Request XHR failed (${o}). Status: ${a.status} (${a.statusText})`));else{const n=l-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${n} attempts left`),this.requestLicense(e,t).then(i,r)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=a,this.setupLicenseXHR(a,o,e,t).then((({xhr:t,licenseChallenge:n})=>{e.keySystem==ti.PLAYREADY&&(n=this.unpackPlayReadyKeyMessage(t,n)),t.send(n)}))}))}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,Ta(n,"encrypted",this.onMediaEncrypted),Ta(n,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(Da(e,"encrypted",this.onMediaEncrypted),Da(e,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var e;if(this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},!this.mediaKeys&&!this.mediaKeySessions.length)return;const t=this.media,n=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,yi.clearKeyUriToKeyIdMap();const i=n.length;Na.CDMCleanupPromise=Promise.all(n.map((e=>this.removeSession(e))).concat(null==t||null==(e=t.setMediaKeys(null))?void 0:e.catch((e=>{var t;this.log(`Could not clear media keys: ${e}`),null==(t=this.hls)||t.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${e}`)})})))).catch((e=>{var t;this.log(`Could not close sessions and clear media keys: ${e}`),null==(t=this.hls)||t.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${e}`)})})).then((()=>{i&&this.log("finished closing key sessions and clearing media keys")}))}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(t&&this.config.emeEnabled&&!this.keyFormatPromise){const e=t.reduce(((e,t)=>(-1===e.indexOf(t.keyFormat)&&e.push(t.keyFormat),e)),[]);this.log(`Selecting key-system from session-keys ${e.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(e)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n}=e;if(t){this.log(`Remove licenses and keys and close session ${t.sessionId}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const i=this.mediaKeySessions.indexOf(e);i>-1&&this.mediaKeySessions.splice(i,1);const{drmSystemOptions:r}=this.config,o=function(e){var t;return"persistent-license"===e.sessionType||!(null==(t=e.sessionTypes)||!t.some((e=>"persistent-license"===e)))}(r)?new Promise(((e,n)=>{self.setTimeout((()=>n(new Error("MediaKeySession.remove() timeout"))),8e3),t.remove().then(e)})):Promise.resolve();return o.catch((e=>{var t;this.log(`Could not remove session: ${e}`),null==(t=this.hls)||t.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${e}`)})})).then((()=>t.close())).catch((e=>{var t;this.log(`Could not close session: ${e}`),null==(t=this.hls)||t.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${e}`)})}))}}}Na.CDMCleanupPromise=void 0;class Ia extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}function Ba(e,t){let n;try{n=new Event("addtrack")}catch(e){n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=e,t.dispatchEvent(n)}function Ra(e,t){const n=e.mode;if("disabled"===n&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error(`addCue is failed for: ${t}`)}catch(n){me.debug(`[texttrack-utils]: ${n}`);try{const n=new self.TextTrackCue(t.startTime,t.endTime,t.text);n.id=t.id,e.addCue(n)}catch(e){me.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${e}`)}}"disabled"===n&&(e.mode=n)}function Oa(e,t){const n=e.mode;if("disabled"===n&&(e.mode="hidden"),e.cues)for(let n=e.cues.length;n--;)t&&e.cues[n].removeEventListener("enter",t),e.removeCue(e.cues[n]);"disabled"===n&&(e.mode=n)}function Fa(e,t,n,i){const r=e.mode;if("disabled"===r&&(e.mode="hidden"),e.cues&&e.cues.length>0){const r=function(e,t,n){const i=[],r=function(e,t){if(t<=e[0].startTime)return 0;const n=e.length-1;if(t>e[n].endTime)return-1;let i,r=0,o=n;for(;r<=o;)if(i=Math.floor((o+r)/2),te[i].startTime&&r-1)for(let o=r,a=e.length;o=t&&r.endTime<=n)i.push(r);else if(r.startTime>n)return i}return i}(e.cues,t,n);for(let t=0;t>>0).toString()}const $a=.025;let Ha=function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e}({});function Za(e,t,n){return`${e.identifier}-${n+1}-${ja(t)}`}class Ka{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,null==(e=this.assetListLoader)||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){var t;if(e>0&&e>=this.assetList.length)return!0;const n=this.playoutLimit;if(e<=0||isNaN(n))return!1;if(0===n)return!0;return((null==(t=this.assetList[e])?void 0:t.startOffset)||0)>n}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const e=this.dateRange.startTime;if(this.snapOptions.out){const t=this.dateRange.tagAnchor;if(t)return Ga(e,t)}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(0===this.startTime||this.snapOptions.out)return!0;const e=this.dateRange.tagAnchor;if(e){const t=this.dateRange.startTime;return t-Ga(t,e)<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=G(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){const e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const t=this.resumeAnchor;if(t)return Ga(e,t)}return e}get appendInPlace(){return!!this.appendInPlaceStarted||!this.appendInPlaceDisabled&&!(this.cue.once||this.cue.pre||!this.startIsAligned||!(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<$a))}set appendInPlace(e){this.appendInPlaceStarted?this.resetOnResume=!e:this.appendInPlaceDisabled=!e}get timelineStart(){return null!==this._timelineStart?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){const e=this.playoutLimit;let t;return t=null!==this._duration?this._duration:this.dateRange.duration?this.dateRange.duration:this.dateRange.plannedDuration||0,!isNaN(e)&&e0||null!==this.assetListResponse}toString(){return`["${(e=this).identifier}" ${e.cue.pre?"
    ":e.cue.post?"":""}${e.timelineStart.toFixed(2)}-${e.resumeTime.toFixed(2)}]`;var e}}function Ga(e,t){return e-t.start{this.reachedPlayout(this.currentTime)&&this.hls.trigger(Y.PLAYOUT_LIMIT_REACHED,{})};const r=this.hls=new e(t);this.interstitial=n,this.assetItem=i;let o=i.uri;try{o=Ua(o,t.primarySessionId).href}catch(e){}r.loadSource(o);const a=()=>{this.hasDetails=!0};r.once(Y.LEVEL_LOADED,a),r.once(Y.AUDIO_TRACK_LOADED,a),r.once(Y.SUBTITLE_TRACK_LOADED,a),r.on(Y.MEDIA_ATTACHING,((e,{media:t})=>{this.removeMediaListeners(),this.mediaAttached=t;this.interstitial.playoutLimit&&(t.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&r.on(Y.BUFFER_APPENDED,(()=>{const e=this.bufferedEnd;this.reachedPlayout(e)&&(this._bufferedEosTime=e,r.trigger(Y.BUFFERED_TO_END,void 0))})))}))}get appendInPlace(){var e;return(null==(e=this.interstitial)?void 0:e.appendInPlace)||!1}bufferedInPlaceToEnd(e){var t;if(!this.appendInPlace)return!1;if(null!=(t=this.hls)&&t.bufferedToEnd)return!0;if(!e||!this._bufferedEosTime)return!1;const n=this.timelineOffset,i=On.bufferInfo(e,n,0);return this.getAssetTime(i.end)>=this._bufferedEosTime-.02}reachedPlayout(e){const t=this.interstitial.playoutLimit;return this.startOffset+e>=t}get destroyed(){var e;return!(null!=(e=this.hls)&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return(null==(e=this.hls)?void 0:e.media)||null}get bufferedEnd(){const e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const t=On.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){const e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){const e=this.assetItem.duration;return e||0}get remaining(){const e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return(null==(e=this.hls)?void 0:e.config.timelineOffset)||0}set timelineOffset(e){const t=this.timelineOffset;if(e!==t){const n=e-t;if(Math.abs(n)>1/9e4){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}}getAssetTime(e){const t=this.timelineOffset,n=this.duration;return Math.min(Math.max(0,e-t),n)}removeMediaListeners(){const e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){var e;this.mediaAttached&&(null!=(e=this.hls)&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd))}destroy(){this.removeMediaListeners(),this.hls.destroy(),this.hls=this.interstitial=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){this.hls.attachMedia(e)}detachMedia(){this.removeMediaListeners(),this.mediaAttached=null,this.hls.detachMedia()}resumeBuffering(){this.hls.resumeBuffering()}pauseBuffering(){this.hls.pauseBuffering()}transferMedia(){return this.bufferSnapShot(),this.hls.transferMedia()}resetDetails(){const e=this.hls;if(this.hasDetails){e.stopLoad();const t=e=>delete e.details;e.levels.forEach(t),e.allAudioTracks.forEach(t),e.allSubtitleTracks.forEach(t),this.hasDetails=!1}}on(e,t,n){this.hls.on(e,t)}once(e,t,n){this.hls.once(e,t)}off(e,t,n){this.hls.off(e,t)}toString(){var e;return`HlsAssetPlayer: ${Wa(this.assetItem)} ${null==(e=this.hls)?void 0:e.sessionId} ${this.appendInPlace?"append-in-place":""}`}}class Ya extends ue{constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach((e=>e.reset())),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce(((n,i)=>e<=i.startOffset&&t>i.startOffset?(delete i.error,n+1):n),0):0}get duration(){const e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let n=-1;e.nextEvent?n=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(n=this.findEventIndex(e.previousEvent.identifier)+1);const i=this.items;if(i)for(i[n]||(void 0===t&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&null!=(r=i[n])&&r.event;){var r;n--}return n}findItemIndexAtTime(e,t){const n=this.items;if(n)for(let i=0;ir.start&&e1)for(let e=0;en&&t!a.includes(e.identifier))):[];o.length&&o.sort(((e,t)=>{const n=e.cue.pre,i=e.cue.post,r=t.cue.pre,o=t.cue.post;if(n&&!r)return-1;if(r&&!n)return 1;if(i&&!o)return 1;if(o&&!i)return-1;if(!(n||r||i||o)){const n=e.startTime,i=t.startTime;if(n!==i)return n-i}return e.dateRange.tagOrder-t.dateRange.tagOrder})),this.events=o,s.forEach((e=>{this.removeEvent(e)})),this.updateSchedule(e,s)}updateSchedule(e,t=[]){const n=this.events||[];if(n.length||t.length||this.length<2){const i=this.items,r=this.parseSchedule(n,e),o=t.length||(null==i?void 0:i.length)!==r.length||r.some(((e,t)=>Math.abs(e.playout.start-i[t].playout.start)>.005||Math.abs(e.playout.end-i[t].playout.end)>.005));o&&(this.items=r,this.onScheduleUpdate(t,i))}}parseDateRanges(e,t,n){const i=[],r=Object.keys(e);for(let o=0;o!(e.error||e.cue.once&&e.hasPlayed)))).length){this.resolveOffsets(e,t);let i=0,s=0;if(e.forEach(((t,a)=>{const l=t.cue.pre,c=t.cue.post,u=e[a-1]||null,h=t.appendInPlace,d=c?r:t.startOffset,p=t.duration,f=t.timelineOccupancy===Ha.Range?p:0,g=t.resumptionOffset,m=(null==u?void 0:u.startTime)===d,v=d+t.cumulativeDuration;let y=h?v+p:d+g;if(l||!c&&d<=0){const e=s;s+=f,t.timelineStart=v;const i=o;o+=p,n.push({event:t,start:v,end:y,playout:{start:i,end:o},integrated:{start:e,end:s}})}else{if(!(d<=r))return;{if(!m){const r=d-i;if(r>.033){const l=i,c=s;s+=r;const u=o;o+=r;const h={previousEvent:e[a-1]||null,nextEvent:t,start:l,end:l+r,playout:{start:u,end:o},integrated:{start:c,end:s}};n.push(h)}else r>0&&u&&(u.cumulativeDuration+=r,n[n.length-1].end=d)}c&&(y=v),t.timelineStart=v;const r=s;s+=f;const l=o;o+=p,n.push({event:t,start:v,end:y,playout:{start:l,end:o},integrated:{start:r,end:s}})}}const b=t.resumeTime;i=c||b>r?r:b})),i{const l=a.cue.pre,c=a.cue.post,u=l?0:c?i:a.startTime;this.updateAssetDurations(a);if(o===u?a.cumulativeDuration=r:(r=0,o=u),!c&&a.snapOptions.in&&(a.resumeAnchor=Xt(null,n.fragments,a.startOffset+a.resumptionOffset,0,0)||void 0),a.appendInPlace&&!a.appendInPlaceStarted){this.primaryCanResumeInPlaceAt(a,t)||(a.appendInPlace=!1)}if(!a.appendInPlace&&s+1$a)return this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${i}`),!1;if(!t)return this.log(`"${e.identifier}" resumption ${n} can not be aligned with media (none selected)`),!1;return!Object.keys(t).some((i=>{const r=t[i].details,o=r.edge;if(n>=o)return this.log(`"${e.identifier}" resumption ${n} past ${i} playlist end ${o}`),!1;const a=Xt(null,r.fragments,n);if(!a)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${i} playlist (${r.fragStart}-${r.fragmentEnd})`),!0;const s="audio"===i?.175:0;return!(Math.abs(a.start-n)<$a+s||Math.abs(a.end-n)<$a+s)&&(this.log(`"${e.identifier}" resumption ${n} not aligned with ${i} fragment bounds (${a.start}-${a.end} sn: ${a.sn} cc: ${a.cc})`),!0)}))}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,i=!1,r=!1;e.assetList.forEach(((e,o)=>{const a=t+n;e.startOffset=n,e.timelineStart=a,i||(i=null===e.duration),r||(r=!!e.error);const s=e.error?0:e.duration||0;n+=s})),e.duration=i&&!r?Math.max(n,e.duration):n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function Xa(e){return`[${e.event?'"'+e.event.identifier+'"':"primary"}: ${e.start.toFixed(2)}-${e.end.toFixed(2)}]`}class Qa{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let i;try{i=Ua(n,this.hls.sessionId,e.baseUrl)}catch(t){const i=this.assignAssetListError(e,q.ASSET_LIST_LOAD_ERROR,t,n);return void this.hls.trigger(Y.ERROR,i)}t&&"data:"!==i.protocol&&i.searchParams.set("_HLS_start_offset",""+t);const r=this.hls.config,o=new(0,r.loader)(r),a={responseType:"json",url:i.href},s=r.interstitialAssetListLoadPolicy.default,l={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(t,n,i,r)=>{const o=t.data,a=null==o?void 0:o.ASSETS;if(Array.isArray(a))e.assetListResponse=o,this.hls.trigger(Y.ASSET_LIST_LOADED,{event:e,assetListResponse:o,networkDetails:r});else{const t=this.assignAssetListError(e,q.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),i.url,n,r);this.hls.trigger(Y.ERROR,t)}},onError:(t,n,i,r)=>{const o=this.assignAssetListError(e,q.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${t.code} ${t.text} (${n.url})`),n.url,r,i);this.hls.trigger(Y.ERROR,o)},onTimeout:(t,n,i)=>{const r=this.assignAssetListError(e,q.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${n.url})`),n.url,t,i);this.hls.trigger(Y.ERROR,r)}};return o.load(a,l,c),this.hls.trigger(Y.ASSET_LIST_LOADING,{event:e}),o}assignAssetListError(e,t,n,i,r,o){return e.error=n,{type:W.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:i,error:n,networkDetails:o,stats:r}}}function Ja(e){null==e||e.play().catch((()=>{}))}class es{constructor(e){this.buffered=void 0;const t=(t,n,i)=>{if((n>>>=0)>i-1)throw new DOMException(`Failed to execute '${t}' on 'TimeRanges': The index provided (${n}) is greater than the maximum bound (${i})`);return e[n][t]};this.buffered={get length(){return e.length},end(n){return t("end",n,e.length)},start(n){return t("start",n,e.length)}}}}const ts={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},ns=e=>String.fromCharCode(ts[e]||e),is=15,rs=100,os={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},as={17:2,18:4,21:6,22:8,23:10,19:13,20:15},ss={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},ls={25:2,26:4,29:6,30:8,31:10,27:13,28:15},cs=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class us{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n="function"==typeof t?t():t;me.log(`${this.time} [${e}] ${n}`)}}}const hs=function(e){const t=[];for(let n=0;nrs&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=rs)}moveCursor(e){const t=this.pos+e;if(e>1)for(let e=this.pos+1;e=144&&this.backSpace();const t=ns(e);this.pos>=rs?this.logger.log(0,(()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!")):(this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1))}clearFromPos(e){let t;for(t=e;t"pacData = "+$t(e)));let t=e.row-1;if(this.nrRollUpRows&&t"bkgData = "+$t(e))),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(null===this.nrRollUpRows)return void this.logger.log(3,"roll_up but nrRollUpRows not set yet");this.logger.log(1,(()=>this.getDisplayText()));const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let n="",i=-1;for(let n=0;n0&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n}getTextAndFormat(){return this.rows}}class ms{constructor(e,t,n){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new gs(n),this.nonDisplayedMemory=new gs(n),this.lastOutputScreen=new gs(n),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,(()=>"MODE="+e)),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let t=0;tt+": "+this.writeScreen.getDisplayText(!0))),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(1,(()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0))),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,(()=>"DISP: "+this.displayedMemory.getDisplayText()))}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2==1,t.italics=e>=46,t.italics)t.foreground="white";else{const n=Math.floor(e/2)-16,i=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=i[n]}this.logger.log(2,"MIDROW: "+$t(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;null!==t&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class vs{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0;const i=this.logger=new us;this.channels=[null,new ms(e,t,i),new ms(e+1,n,i)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let e=0;e"["+hs([t[e],t[e+1]])+"] -> ("+hs([n,i])+")"));const a=this.cmdHistory;if(n>=16&&n<=31){if(bs(n,i,a)){ys(null,null,a),this.logger.log(3,(()=>"Repeated command ("+hs([n,i])+") is dropped"));continue}ys(n,i,this.cmdHistory),r=this.parseCmd(n,i),r||(r=this.parseMidrow(n,i)),r||(r=this.parsePAC(n,i)),r||(r=this.parseBackgroundAttributes(n,i))}else ys(null,null,a);if(!r&&(o=this.parseChars(n,i),o)){const e=this.currentChannel;if(e&&e>0){this.channels[e].insertChars(o)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}r||o||this.logger.log(2,(()=>"Couldn't parse cleaned data "+hs([n,i])+" orig: "+hs([t[e],t[e+1]])))}}parseCmd(e,t){if(!((20===e||28===e||21===e||29===e)&&t>=32&&t<=47)&&!((23===e||31===e)&&t>=33&&t<=35))return!1;const n=20===e||21===e||23===e?1:2,i=this.channels[n];return 20===e||21===e||28===e||29===e?32===t?i.ccRCL():33===t?i.ccBS():34===t?i.ccAOF():35===t?i.ccAON():36===t?i.ccDER():37===t?i.ccRU(2):38===t?i.ccRU(3):39===t?i.ccRU(4):40===t?i.ccFON():41===t?i.ccRDC():42===t?i.ccTR():43===t?i.ccRTD():44===t?i.ccEDM():45===t?i.ccCR():46===t?i.ccENM():47===t&&i.ccEOC():i.ccTO(t-32),this.currentChannel=n,!0}parseMidrow(e,t){let n=0;if((17===e||25===e)&&t>=32&&t<=47){if(n=17===e?1:2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const i=this.channels[n];return!!i&&(i.ccMIDROW(t),this.logger.log(3,(()=>"MIDROW ("+hs([e,t])+")")),!0)}return!1}parsePAC(e,t){let n;if(!((e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127)&&!((16===e||24===e)&&t>=64&&t<=95))return!1;const i=e<=23?1:2;n=t>=64&&t<=95?1===i?os[e]:ss[e]:1===i?as[e]:ls[e];const r=this.channels[i];return!!r&&(r.setPAC(this.interpretPAC(n,t)),this.currentChannel=i,!0)}interpretPAC(e,t){let n;const i={color:null,italics:!1,indent:null,underline:!1,row:e};return n=t>95?t-96:t-64,i.underline=1==(1&n),n<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(i.italics=!0,i.color="white"):i.indent=4*Math.floor((n-16)/2),i}parseChars(e,t){let n,i=null,r=null;if(e>=25?(n=2,r=e-8):(n=1,r=e),r>=17&&r<=19){let e;e=17===r?t+80:18===r?t+112:t+144,this.logger.log(2,(()=>"Special char '"+ns(e)+"' in channel "+n)),i=[e]}else e>=32&&e<=127&&(i=0===t?[e]:[e,t]);return i&&this.logger.log(3,(()=>"Char codes =  "+hs(i).join(","))),i}parseBackgroundAttributes(e,t){if(!((16===e||24===e)&&t>=32&&t<=47)&&!((23===e||31===e)&&t>=45&&t<=47))return!1;let n;const i={};16===e||24===e?(n=Math.floor((t-32)/2),i.background=cs[n],t%2==1&&(i.background=i.background+"_semi")):45===t?i.background="transparent":(i.foreground="black",47===t&&(i.underline=!0));const r=e<=23?1:2;return this.channels[r].setBkgData(i),!0}reset(){for(let e=0;e100)throw new Error("Position must be between 0 and 100.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",r({},l,{get:function(){return w},set:function(e){const t=i(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");w=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",r({},l,{get:function(){return x},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");x=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",r({},l,{get:function(){return S},set:function(e){const t=i(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");S=t,this.hasBeenReset=!0}})),s.displayState=void 0}return o.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},o}();class xs{decode(e,t){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function Ss(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+parseFloat(i||0)}const n=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?t(n[2],n[3],0,n[4]):t(n[1],n[2],n[3],n[4]):null}class ks{constructor(){this.values=Object.create(null)}set(e,t){this.get(e)||""===t||(this.values[e]=t)}get(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,n){for(let i=0;i=0&&n<=100)return this.set(e,n),!0}return!1}}function _s(e,t,n,i){const r=i?e.split(i):[e];for(const e in r){if("string"!=typeof r[e])continue;const i=r[e].split(n);if(2!==i.length)continue;t(i[0],i[1])}}const Cs=new ws(0,0,""),Ps="middle"===Cs.align?"middle":"center";function Es(e,t,n){const i=e;function r(){const t=Ss(e);if(null===t)throw new Error("Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function o(){e=e.replace(/^\s+/,"")}if(o(),t.startTime=r(),o(),"--\x3e"!==e.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);e=e.slice(3),o(),t.endTime=r(),o(),function(e,t){const i=new ks;_s(e,(function(e,t){let r;switch(e){case"region":for(let r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":r=t.split(","),i.integer(e,r[0]),i.percent(e,r[0])&&i.set("snapToLines",!1),i.alt(e,r[0],["auto"]),2===r.length&&i.alt("lineAlign",r[1],["start",Ps,"end"]);break;case"position":r=t.split(","),i.percent(e,r[0]),2===r.length&&i.alt("positionAlign",r[1],["start",Ps,"end","line-left","line-right","auto"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start",Ps,"end","left","right"])}}),/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");let r=i.get("line","auto");"auto"===r&&-1===Cs.line&&(r=-1),t.line=r,t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100),t.align=i.get("align",Ps);let o=i.get("position","auto");"auto"===o&&50===Cs.position&&(o="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=o}(e,t)}function Ms(e){return e.replace(//gi,"\n")}class Ls{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new xs,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;function n(){let e=t.buffer,n=0;for(e=Ms(e);n0&&c.push(e)},s.onparsingerror=function(e){h=e},s.onflush=function(){h?a(h):o(c)},l.forEach((e=>{if(g){if(Ts(e,"X-TIMESTAMP-MAP=")){g=!1,e.slice(16).split(",").forEach((e=>{Ts(e,"LOCAL:")?d=e.slice(6):Ts(e,"MPEGTS:")&&(p=parseInt(e.slice(7)))}));try{f=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),i=parseInt(e.slice(-9,-7)),r=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!(G(t)&&G(n)&&G(i)&&G(r)))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=6e4*i,t+=36e5*r,t}(d)/1e3}catch(e){h=e}return}""===e&&(g=!1)}s.parse(e+"\n")})),s.flush()}const Is="stpp.ttml.im1t",Bs=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Rs=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Os={left:"start",center:"center",right:"end",start:"start",end:"end"};function Fs(e,t,n,i){const r=We(new Uint8Array(e),["mdat"]);if(0===r.length)return void i(new Error("Could not parse IMSC1 mdat"));const o=r.map((e=>be(e))),a=function(e,t,n=1,i=!1){return _o(e,t,1/n,i)}(t.baseTime,1,t.timescale);try{o.forEach((e=>n(function(e,t){const n=(new DOMParser).parseFromString(e,"text/xml"),i=n.getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const r={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},o=Object.keys(r).reduce(((e,t)=>(e[t]=i.getAttribute(`ttp:${t}`)||r[t],e)),{}),a="preserve"!==i.getAttribute("xml:space"),s=js(zs(i,"styling","style")),l=js(zs(i,"layout","region")),c=zs(i,"body","[begin]");return[].map.call(c,(e=>{const n=$s(e,a);if(!n||!e.hasAttribute("begin"))return null;const i=Ks(e.getAttribute("begin"),o),r=Ks(e.getAttribute("dur"),o);let c=Ks(e.getAttribute("end"),o);if(null===i)throw Zs(e);if(null===c){if(null===r)throw Zs(e);c=i+r}const u=new ws(i-t,c-t,n);u.id=Ds(u.startTime,u.endTime,u.text);const h=function(e,t,n){const i="http://www.w3.org/ns/ttml#styling";let r=null;const o=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],a=null!=e&&e.hasAttribute("style")?e.getAttribute("style"):null;a&&n.hasOwnProperty(a)&&(r=n[a]);return o.reduce(((n,o)=>{const a=Hs(t,i,o)||Hs(e,i,o)||Hs(r,i,o);return a&&(n[o]=a),n}),{})}(l[e.getAttribute("region")],s[e.getAttribute("style")],s),{textAlign:d}=h;if(d){const e=Os[d];e&&(u.lineAlign=e),u.align=d}return se(u,h),u})).filter((e=>null!==e))}(e,a))))}catch(e){i(e)}}function zs(e,t,n){const i=e.getElementsByTagName(t)[0];return i?[].slice.call(i.querySelectorAll(n)):[]}function js(e){return e.reduce(((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e}),{})}function $s(e,t){return[].slice.call(e.childNodes).reduce(((e,n,i)=>{var r;return"br"===n.nodeName&&i?e+"\n":null!=(r=n.childNodes)&&r.length?$s(n,t):t?e+n.textContent.trim().replace(/\s+/g," "):e+n.textContent}),"")}function Hs(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function Zs(e){return new Error(`Could not parse ttml timestamp ${e}`)}function Ks(e,t){if(!e)return null;let n=Ss(e);return null===n&&(Bs.test(e)?n=function(e,t){const n=Bs.exec(e),i=(0|n[4])+(0|n[5])/t.subFrameRate;return 3600*(0|n[1])+60*(0|n[2])+(0|n[3])+i/t.frameRate}(e,t):Rs.test(e)&&(n=function(e,t){const n=Rs.exec(e),i=Number(n[1]);switch(n[2]){case"h":return 3600*i;case"m":return 60*i;case"ms":return 1e3*i;case"f":return i/t.frameRate;case"t":return i/t.tickRate}return i}(e,t))),n}class Gs{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(null===this.startTime||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}function Us(e){return e.characteristics&&/transcribes-spoken-dialog/gi.test(e.characteristics)&&/describes-music-and-sound/gi.test(e.characteristics)?"captions":"subtitles"}function Vs(e,t){return!!e&&e.kind===Us(t)&&Vo(t,e)}const Ws=/\s/,qs={newCue(e,t,n,i){const r=[];let o,a,s,l,c;const u=self.VTTCue||self.TextTrackCue;for(let d=0;d=16?l--:l++;const i=Ms(c.trim()),p=Ds(t,n,i);null!=e&&null!=(h=e.cues)&&h.getCueById(p)||(a=new u(t,n,i),a.id=p,a.line=d+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*l/32)),r.push(a))}return e&&r.length&&(r.sort(((e,t)=>"auto"===e.line||"auto"===t.line?0:e.line>8&&t.line>8?t.line-e.line:e.line-t.line)),r.forEach((t=>Ra(e,t)))),r}};const Ys=/(\d+)-(\d+)\/(\d+)/;class Xs{constructor(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||Qs,this.controller=new self.AbortController,this.stats=new Ae}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,n){const i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();const r=function(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(se({},e.headers))};e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1));return n}(e,this.controller.signal),o="arraybuffer"===e.responseType,a=o?"byteLength":"length",{maxTimeToFirstByteMs:s,maxLoadTimeMs:l}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,r),self.clearTimeout(this.requestTimeout),t.timeout=s&&G(s)?s:l,this.requestTimeout=self.setTimeout((()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(i,e,this.response))}),t.timeout);(zo(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then((n=>{var r;this.response=this.loader=n;const a=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=l,this.requestTimeout=self.setTimeout((()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(i,e,this.response))}),l-(a-i.loading.start)),!n.ok){const{status:e,statusText:t}=n;throw new Js(t||"fetch, bad network response",e,n)}i.loading.first=a,i.total=function(e){const t=e.get("Content-Range");if(t){const e=function(e){const t=Ys.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}(t);if(G(e))return e}const n=e.get("Content-Length");if(n)return parseInt(n)}(n.headers)||i.total;const s=null==(r=this.callbacks)?void 0:r.onProgress;return s&&G(t.highWaterMark)?this.loadProgressively(n,i,e,t.highWaterMark,s):o?n.arrayBuffer():"json"===e.responseType?n.json():n.text()})).then((n=>{var r,o;const s=this.response;if(!s)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);const l=n[a];l&&(i.loaded=i.total=l);const c={url:s.url,data:n,code:s.status},u=null==(r=this.callbacks)?void 0:r.onProgress;u&&!G(t.highWaterMark)&&u(i,e,n,s),null==(o=this.callbacks)||o.onSuccess(c,i,e,s)})).catch((t=>{var n;if(self.clearTimeout(this.requestTimeout),i.aborted)return;const r=t&&t.code||0,o=t?t.message:null;null==(n=this.callbacks)||n.onError({code:r,text:o},e,t?t.details:null,i)}))}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,n,i=0,r){const o=new pr,a=e.body.getReader(),s=()=>a.read().then((a=>{if(a.done)return o.dataLength&&r(t,n,o.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const l=a.value,c=l.length;return t.loaded+=c,c=i&&r(t,n,o.flush().buffer,e)):r(t,n,l.buffer,e),s()})).catch((()=>Promise.reject()));return s()}}function Qs(e,t){return new self.Request(e.url,t)}class Js extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const el=/^age:\s*[\d.]+\s*$/im;class tl{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new Ae,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,4!==e.readyState&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const n=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;const r=this.xhrSetup;r?Promise.resolve().then((()=>{if(this.loader===n&&!this.stats.aborted)return r(n,t.url)})).catch((e=>{if(this.loader===n&&!this.stats.aborted)return n.open("GET",t.url,!0),r(n,t.url)})).then((()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)})).catch((e=>{var r;null==(r=this.callbacks)||r.onError({code:n.status,text:e.message},t,n,i)})):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const i=t.headers,{maxTimeToFirstByteMs:r,maxLoadTimeMs:o}=n.loadPolicy;if(i)for(const t in i)e.setRequestHeader(t,i[t]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),n.timeout=r&&G(r)?r:o,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:n}=this;if(!e||!t)return;const i=t.readyState,r=this.config;if(!n.aborted&&i>=2&&(0===n.loading.first&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),r.timeout!==r.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),r.timeout=r.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),4===i)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const i=t.status,l="text"===t.responseType?t.responseText:null;if(i>=200&&i<300){const r=null!=l?l:t.response;if(null!=r){var o,a;n.loading.end=Math.max(self.performance.now(),n.loading.first);const s="arraybuffer"===t.responseType?r.byteLength:r.length;n.loaded=n.total=s,n.bwEstimate=8e3*n.total/(n.loading.end-n.loading.first);const l=null==(o=this.callbacks)?void 0:o.onProgress;l&&l(n,e,r,t);const c={url:t.responseURL,data:r,code:i};return void(null==(a=this.callbacks)||a.onSuccess(c,n,e,t))}}const c=r.loadPolicy.errorRetry;var s;if(an(c,n.retry,!1,{url:e.url,data:void 0,code:i}))this.retry(c);else me.error(`${i} while loading ${e.url}`),null==(s=this.callbacks)||s.onError({code:i,text:t.statusText},e,t,n)}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry;if(an(e,this.stats.retry,!0))this.retry(e);else{var t;me.warn(`timeout while loading ${null==(t=this.context)?void 0:t.url}`);const e=this.callbacks;e&&(this.abortInternal(),e.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:n}=this;this.retryDelay=rn(e,n.retry),n.retry++,me.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${null==t?void 0:t.url}, retrying ${n.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&el.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}const nl=ce(ce({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:6e7,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:tl,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:class extends ue{constructor(e){super("abr",e.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.bwEstimator=void 0,this._abandonRulesCheck=e=>{var t;const{fragCurrent:n,partCurrent:i,hls:r}=this,{autoLevelEnabled:o,media:a}=r;if(!n||!a)return;const s=performance.now(),l=i?i.stats:n.stats,c=i?i.duration:n.duration,u=s-l.loading.start,h=r.minAutoLevel,d=n.level,p=this._nextAutoLevel;if(l.aborted||l.loaded&&l.loaded===l.total||d<=h)return this.clearTimer(),void(this._nextAutoLevel=-1);if(!o)return;const f=p>-1&&p!==d,g=!!e||f;if(!g&&(a.paused||!a.playbackRate||!a.readyState))return;const m=r.mainForwardBufferInfo;if(!g&&null===m)return;const v=this.bwEstimator.getEstimateTTFB(),y=Math.abs(a.playbackRate);if(u<=Math.max(v,c/(2*y)*1e3))return;const b=m?m.len/y:0,w=l.loading.first?l.loading.first-l.loading.start:-1,x=l.loaded&&w>-1,S=this.getBwEstimate(),k=r.levels,_=k[d],C=Math.max(l.loaded,Math.round(c*(n.bitrate||_.averageBitrate)/8));let P=x?u-w:u;P<1&&x&&(P=Math.min(u,8*l.loaded/S));const E=x?1e3*l.loaded/P:0,M=v/1e3,L=E?(C-l.loaded)/E:8*C/S+M;if(L<=b)return;const A=E?8*E:S,T=!0===(null==(t=(null==e?void 0:e.details)||this.hls.latestLevelDetails)?void 0:t.live),D=this.hls.config.abrBandWidthUpFactor;let N,I=Number.POSITIVE_INFINITY;for(N=d-1;N>h;N--){const e=k[N].maxBitrate,t=!k[N].details||T;if(I=this.getTimeToLoadFrag(M,A,c*e,t),I=L)return;if(I>10*c)return;x?this.bwEstimator.sample(u-Math.min(v,w),l.loaded):this.bwEstimator.sampleTTFB(u);const B=k[N].maxBitrate;this.getBwEstimate()*D>B&&this.resetEstimator(B);const R=this.findBestLevel(B,h,N,0,b,1,1);R>-1&&(N=R),this.warn(`Fragment ${n.sn}${i?" part "+i.index:""} of level ${d} is loading too slowly;\n      Fragment duration: ${n.duration.toFixed(3)}\n      Time to underbuffer: ${b.toFixed(3)} s\n      Estimated load time for current fragment: ${L.toFixed(3)} s\n      Estimated load time for down switch fragment: ${I.toFixed(3)} s\n      TTFB estimate: ${0|w} ms\n      Current BW estimate: ${G(S)?0|S:"Unknown"} bps\n      New BW estimate: ${0|this.getBwEstimate()} bps\n      Switching to level ${N} @ ${0|B} bps`),r.nextLoadLevel=r.nextAutoLevel=N,this.clearTimer();const O=()=>{if(this.clearTimer(),this.fragCurrent===n&&this.hls.loadLevel===N&&N>0){const e=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${N>0?"and switching down":""}\n      Fragment duration: ${n.duration.toFixed(3)} s\n      Time to underbuffer: ${e.toFixed(3)} s`),n.abortRequests(),this.fragCurrent=this.partCurrent=null,N>h){let t=this.findBestLevel(this.hls.levels[h].bitrate,h,N,0,e,1,1);-1===t&&(t=h),this.hls.nextLoadLevel=this.hls.nextAutoLevel=t,this.resetEstimator(this.hls.levels[t].bitrate)}}};f||L>2*I?O():this.timer=self.setInterval(O,1e3*I),r.trigger(Y.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,part:i,stats:l})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(this.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new oe(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.FRAG_LOADING,this.onFragLoading,this),e.on(Y.FRAG_LOADED,this.onFragLoaded,this),e.on(Y.FRAG_BUFFERED,this.onFragBuffered,this),e.on(Y.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(Y.LEVEL_LOADED,this.onLevelLoaded,this),e.on(Y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(Y.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(Y.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.FRAG_LOADING,this.onFragLoading,this),e.off(Y.FRAG_LOADED,this.onFragLoaded,this),e.off(Y.FRAG_BUFFERED,this.onFragBuffered,this),e.off(Y.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(Y.LEVEL_LOADED,this.onLevelLoaded,this),e.off(Y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(Y.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(Y.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const n=t.frag;if(!this.ignoreFragment(n)){var i;if(!n.bitrateTest)this.fragCurrent=n,this.partCurrent=null!=(i=t.part)?i:null;this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case q.BUFFER_ADD_CODEC_ERROR:case q.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case q.FRAG_LOAD_TIMEOUT:{const e=t.frag,{fragCurrent:n,partCurrent:i}=this;if(e&&n&&e.sn===n.sn&&e.level===n.level){const t=performance.now(),n=i?i.stats:e.stats,r=t-n.loading.start,o=n.loading.first?n.loading.first-n.loading.start:-1;if(n.loaded&&o>-1){const e=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(r-Math.min(e,o),n.loaded)}else this.bwEstimator.sampleTTFB(r)}break}}}getTimeToLoadFrag(e,t,n,i){return e+n/t+(i?e+this.lastLevelLoadSec:0)}onLevelLoaded(e,t){const n=this.hls.config,{loading:i}=t.stats,r=i.end-i.first;G(r)&&(this.lastLevelLoadSec=r/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,{frag:t,part:n}){const i=n?n.stats:t.stats;if(t.type===te&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const e=n?n.duration:t.duration,r=this.hls.levels[t.level],o=(r.loaded?r.loaded.bytes:0)+i.loaded,a=(r.loaded?r.loaded.duration:0)+e;r.loaded={bytes:o,duration:a},r.realBitrate=Math.round(8*o/a)}if(t.bitrateTest){const e={stats:i,frag:t,part:n,id:t.type};this.onFragBuffered(Y.FRAG_BUFFERED,e),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:n,part:i}=t,r=null!=i&&i.stats.loaded?i.stats:n.stats;if(r.aborted)return;if(this.ignoreFragment(n))return;const o=r.parsing.end-r.loading.start-Math.min(r.loading.first-r.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(o,r.loaded),r.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=o/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==te||"initSegment"===e.sn}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,n=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,r=this.findBestLevel(n,t,e,0,i,1,1);if(r>-1)return r;const o=this.hls.firstLevel,a=Math.min(Math.max(o,t),e);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${o} clamped to ${a}`),a}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,t=this.bwEstimator.canEstimate(),n=this.lastLoadedFragLevel>-1;if(!(-1===e||t&&n&&this.nextAutoLevelKey!==this.getAutoLevelKey()))return e;const i=t&&n?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==e){const t=this.hls.levels;if(t.length>Math.max(e,i)&&t[e].loadError<=t[i].loadError)return e}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:i,config:r,minAutoLevel:o}=n,a=t?t.duration:e?e.duration:0,s=this.getBwEstimate(),l=this.getStarvationDelay();let c=r.abrBandWidthFactor,u=r.abrBandWidthUpFactor;if(l){const e=this.findBestLevel(s,o,i,l,0,c,u);if(e>=0)return this.rebufferNotice=-1,e}let h=a?Math.min(a,r.maxStarvationDelay):r.maxStarvationDelay;if(!l){const e=this.bitrateTestDelay;if(e){h=(a?Math.min(a,r.maxLoadingDelay):r.maxLoadingDelay)-e,this.info(`bitrate test took ${Math.round(1e3*e)}ms, set first fragment max fetchDuration to ${Math.round(1e3*h)} ms`),c=u=1}}const d=this.findBestLevel(s,o,i,l,h,c,u);if(this.rebufferNotice!==d&&(this.rebufferNotice=d,this.info(`${l?"rebuffering expected":"buffer is empty"}, optimal quality level ${d}`)),d>-1)return d;const p=n.levels[o],f=n.loadLevelObj;return f&&(null==p?void 0:p.bitrate){if(!n.codecSet)return e;const r=n.audioGroups;let o=e[n.codecSet];o||(e[n.codecSet]=o={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:i,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!r,fragmentError:0}),o.minBitrate=Math.min(o.minBitrate,n.bitrate);const a=Math.min(n.height,n.width);return o.minHeight=Math.min(o.minHeight,a),o.minFramerate=Math.min(o.minFramerate,n.frameRate),o.minIndex=Math.min(o.minIndex,i),o.maxScore=Math.max(o.maxScore,n.score),o.fragmentError+=n.fragmentError,o.videoRanges[n.videoRange]=(o.videoRanges[n.videoRange]||0)+1,r&&r.forEach((e=>{if(!e)return;const n=t.groups[e];n&&(o.hasDefaultAudio=o.hasDefaultAudio||t.hasDefaultAudio?n.hasDefault:n.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(n.channels).forEach((e=>{o.channels[e]=(o.channels[e]||0)+n.channels[e]})))})),e}),{})}(p,C,t,n)),r=function(e,t,n,i,r){const o=Object.keys(e),a=null==i?void 0:i.channels,s=null==i?void 0:i.audioCodec,l=null==r?void 0:r.videoCodec,c=a&&2===parseInt(a);let u=!1,h=!1,d=1/0,p=1/0,f=1/0,g=1/0,m=0,v=[];const{preferHDR:y,allowedVideoRanges:b}=jt(t,r);for(let t=o.length;t--;){const n=e[o[t]];u||(u=n.channels[2]>0),d=Math.min(d,n.minHeight),p=Math.min(p,n.minFramerate),f=Math.min(f,n.minBitrate);const i=b.filter((e=>n.videoRanges[e]>0));i.length>0&&(h=!0)}d=G(d)?d:0,p=G(p)?p:0;const w=Math.max(1080,d),x=Math.max(30,p);f=G(f)?f:n,n=Math.max(f,n),h||(t=void 0);const S=o.length>1,k=o.reduce(((t,i)=>{const r=e[i];if(i===t)return t;if(v=h?b.filter((e=>r.videoRanges[e]>0)):[],S){if(r.minBitrate>n)return Ht(i,`min bitrate of ${r.minBitrate} > current estimate of ${n}`),t;if(!r.hasDefaultAudio)return Ht(i,"no renditions with default or auto-select sound found"),t;if(s&&i.indexOf(s.substring(0,4))%5!=0)return Ht(i,`audio codec preference "${s}" not found`),t;if(a&&!c){if(!r.channels[a])return Ht(i,`no renditions with ${a} channel sound found (channels options: ${Object.keys(r.channels)})`),t}else if((!s||c)&&u&&0===r.channels[2])return Ht(i,"no renditions with stereo sound found"),t;if(r.minHeight>w)return Ht(i,`min resolution of ${r.minHeight} > maximum of ${w}`),t;if(r.minFramerate>x)return Ht(i,`min framerate of ${r.minFramerate} > maximum of ${x}`),t;if(!v.some((e=>r.videoRanges[e]>0)))return Ht(i,`no variants with VIDEO-RANGE of ${$t(v)} found`),t;if(l&&i.indexOf(l.substring(0,4))%5!=0)return Ht(i,`video codec preference "${l}" not found`),t;if(r.maxScore=yt(t)||r.fragmentError>e[t].fragmentError)?t:(g=r.minIndex,m=r.maxScore,i)}),void 0);return{codecSet:k,videoRanges:v,preferHDR:y,minFramerate:p,minBitrate:f,minIndex:g}}(i,x,e,k,_),{codecSet:o,videoRanges:a,minFramerate:s,minBitrate:l,minIndex:c,preferHDR:u}=r;P=c,w=o,x=u?a[a.length-1]:a[0],S=s,e=Math.max(e,l),this.log(`picked start tier ${$t(r)}`)}else w=null==v?void 0:v.codecSet,x=null==v?void 0:v.videoRange;const E=d?d.duration:h?h.duration:0,M=this.bwEstimator.getEstimateTTFB()/1e3,L=[];for(let s=n;s>=t;s--){var A;const t=p[s],h=s>u;if(!t)continue;if(m.useMediaCapabilities&&!t.supportedResult&&!t.supportedPromise){const n=navigator.mediaCapabilities;"function"==typeof(null==n?void 0:n.decodingInfo)&&(Lt(t,C,x,S,e,k)||ot(t.videoCodec))?(t.supportedPromise=At(t,C,n),t.supportedPromise.then((e=>{if(!this.hls)return;t.supportedResult=e;const n=this.hls.levels,i=n.indexOf(t);e.error?this.warn(`MediaCapabilities decodingInfo error: "${e.error}" for level ${i} ${$t(e)}`):e.supported||(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${i} ${$t(e)}`),i>-1&&n.length>1&&(this.log(`Removing unsupported level ${i}`),this.hls.removeLevel(i),-1===this.hls.loadLevel&&(this.hls.nextLoadLevel=0)))}))):t.supportedResult=Pt}if((w&&t.codecSet!==w||x&&t.videoRange!==x||h&&S>t.frameRate||!h&&S>0&&S=2*E&&0===r?t.averageBitrate:t.maxBitrate,D=this.getTimeToLoadFrag(M,_,T*v,void 0===f);if(_>=T&&(s===c||0===t.loadError&&0===t.fragmentError)&&(D<=M||!G(D)||y&&!this.bitrateTestDelay||D${s} adjustedbw(${Math.round(_)})-bitrate=${Math.round(_-T)} ttfb:${M.toFixed(1)} avgDuration:${v.toFixed(1)} maxFetchDuration:${l.toFixed(1)} fetchDuration:${D.toFixed(1)} firstSelection:${b} codecSet:${t.codecSet} videoRange:${t.videoRange} hls.loadLevel:${g}`)),b&&(this.firstSelection=s),s}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:n}=this.hls;return Math.min(Math.max(e,n),t)}},bufferController:class extends ue{constructor(e,t){var n;super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=e=>{var t;this.hls&&"open"===(null==(t=this.mediaSource)?void 0:t.readyState)&&this.hls.pauseBuffering()},this._onStartStreaming=e=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=e=>{const{media:t,mediaSource:n}=this;e&&this.log("Media source opened"),t&&n&&(n.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(Y.MEDIA_ATTACHED,{media:t,mediaSource:n}),null!==this.mediaSource&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:e,_objectUrl:t}=this;e!==t&&this.error(`Media element src was set while attaching MediaSource (${t} > ${e})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=(n=ve(e.config.preferManagedMediaSource),"undefined"!=typeof self&&n===self.ManagedMediaSource),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:e}=this;e.on(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Y.BUFFER_RESET,this.onBufferReset,this),e.on(Y.BUFFER_APPENDING,this.onBufferAppending,this),e.on(Y.BUFFER_CODECS,this.onBufferCodecs,this),e.on(Y.BUFFER_EOS,this.onBufferEos,this),e.on(Y.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(Y.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(Y.FRAG_PARSED,this.onFragParsed,this),e.on(Y.FRAG_CHANGED,this.onFragChanged,this),e.on(Y.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Y.BUFFER_RESET,this.onBufferReset,this),e.off(Y.BUFFER_APPENDING,this.onBufferAppending,this),e.off(Y.BUFFER_CODECS,this.onBufferCodecs,this),e.off(Y.BUFFER_EOS,this.onBufferEos,this),e.off(Y.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(Y.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(Y.FRAG_PARSED,this.onFragParsed,this),e.off(Y.FRAG_CHANGED,this.onFragChanged,this),e.off(Y.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const n={};if(this.operationQueue){const e=this.isUpdating();e||this.operationQueue.removeBlockers();const t=this.isQueued();(e||t)&&this.warn(`Transfering MediaSource with${t?" operations in queue":""}${e?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const i=this.transferData;return!this.sourceBufferCount&&i&&i.mediaSource===t?se(n,i.tracks):this.sourceBuffers.forEach((e=>{const[t]=e;t&&(n[t]=se({},this.tracks[t]),this.removeBuffer(t)),e[0]=e[1]=null})),{media:e,mediaSource:t,tracks:n}}initTracks(){this.sourceBuffers=[[null,null],[null,null]],this.tracks={},this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){var n;let i=2;(t.audio&&!t.video||!t.altAudio)&&(i=1),this.bufferCodecEventsTotal=i,this.log(`${i} bufferCodec event(s) expected.`),null!=(n=this.transferData)&&n.mediaSource&&this.sourceBufferCount&&i&&this.bufferCreated()}onMediaAttaching(e,t){const n=this.media=t.media,i=ve(this.appendSource);if(this.transferData=this.overrides=void 0,n&&i){const e=!!t.mediaSource;(e||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const r=this.mediaSource=t.mediaSource||new i;if(this.assignMediaSource(r),e)this._objectUrl=n.src,this.attachTransferred();else{const e=this._objectUrl=self.URL.createObjectURL(r);if(this.appendSource)try{n.removeAttribute("src");const t=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||t&&r instanceof t,Qo(n),function(e,t){const n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}(n,e),n.load()}catch(t){n.src=e}else n.src=e}n.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,n;this.log(`${(null==(t=this.transferData)?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${null==(n=e.constructor)?void 0:n.name}`),e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.addEventListener("startstreaming",this._onStartStreaming),e.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const e=this.media,t=this.transferData;if(!t||!e)return;const n=this.tracks,i=t.tracks,r=i?Object.keys(i):null,o=r?r.length:0,a=()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()};if(i&&r&&o){if(!this.tracksReady)return this.hls.config.startFragPrefetch=!0,void this.log("attachTransferred: waiting for SourceBuffer track info");if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})\nrequired tracks: ${$t(n,((e,t)=>"initSegment"===e?void 0:t))};\ntransfer tracks: ${$t(i,((e,t)=>"initSegment"===e?void 0:t))}}`),!ye(i,n)){t.mediaSource=null,t.tracks=void 0;const r=e.currentTime,o=this.details,a=Math.max(r,(null==o?void 0:o.fragments[0].start)||0);return a-r>1?void this.log(`attachTransferred: waiting for playback to reach new tracks start time ${r} -> ${a}`):(this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(i)}"->"${Object.keys(n)}") start time: ${a} currentTime: ${r}`),this.onMediaDetaching(Y.MEDIA_DETACHING,{}),this.onMediaAttaching(Y.MEDIA_ATTACHING,t),void(e.currentTime=a))}this.transferData=void 0,r.forEach((e=>{const t=e,n=i[t];if(n){const e=n.buffer;if(e){const i=this.fragmentTracker,r=n.id;if(i.hasFragments(r)||i.hasParts(r)){const n=On.getBuffered(e);i.detectEvictedFragments(t,n,r,null,!0)}const o=Jo(t),a=[t,e];this.sourceBuffers[o]=a,e.updating&&this.operationQueue&&this.operationQueue.prependBlocker(t),this.trackSourceBuffer(t,n)}}})),a(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),a()}get mediaSourceOpenOrEnded(){var e;const t=null==(e=this.mediaSource)?void 0:e.readyState;return"open"===t||"ended"===t}onMediaDetaching(e,t){const n=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:i,mediaSource:r,_objectUrl:o}=this;if(r){if(this.log("media source "+(n?"transferring":"detaching")),n)this.sourceBuffers.forEach((([e])=>{e&&this.removeBuffer(e)})),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const e="open"===r.readyState;try{const t=r.sourceBuffers;for(let n=t.length;n--;)e&&t[n].abort(),r.removeSourceBuffer(t[n]);e&&r.endOfStream()}catch(e){this.warn(`onMediaDetaching: ${e.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}r.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("sourceended",this._onMediaSourceEnded),r.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(r.removeEventListener("startstreaming",this._onStartStreaming),r.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}i&&(i.removeEventListener("emptied",this._onMediaEmptied),n||(o&&self.URL.revokeObjectURL(o),this.mediaSrc===o?(i.removeAttribute("src"),this.appendSource&&Qo(i),i.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(Y.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach((([e])=>{e&&this.resetBuffer(e)})),this.initTracks()}resetBuffer(e){var t;const n=null==(t=this.tracks[e])?void 0:t.buffer;if(this.removeBuffer(e),n)try{var i;null!=(i=this.mediaSource)&&i.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}catch(t){this.warn(`onBufferReset ${e}`,t)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[Jo(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new Wo(this.tracks)}onBufferCodecs(e,t){const n=this.tracks,i=Object.keys(t);this.log(`BUFFER_CODECS: "${i}" (current SB count ${this.sourceBufferCount})`);const r="audiovideo"in t&&(n.audio||n.video)||n.audiovideo&&("audio"in t||"video"in t),o=!r&&this.sourceBufferCount&&this.media&&i.some((e=>!n[e]));r||o?this.warn(`Unsupported transition between "${Object.keys(n)}" and "${i}" SourceBuffers`):(i.forEach((e=>{var i,r,o;const a=t[e],{id:s,codec:l,levelCodec:c,container:u,metadata:h,supplemental:d}=a;let p=n[e];const f=null==(i=this.transferData)||null==(r=i.tracks)?void 0:r[e],g=null!=f&&f.buffer?f:p,m=(null==g?void 0:g.pendingCodec)||(null==g?void 0:g.codec),v=null==g?void 0:g.levelCodec;p||(p=n[e]={buffer:void 0,listeners:[],codec:l,supplemental:d,container:u,levelCodec:c,metadata:h,id:s});const y=St(m,v),b=null==y?void 0:y.replace(qo,"$1");let w=St(l,c);const x=null==(o=w)?void 0:o.replace(qo,"$1");w&&y&&b!==x&&("audio"===e.slice(0,5)&&(w=xt(w,this.appendSource)),this.log(`switching codec ${m} to ${w}`),w!==(p.pendingCodec||p.codec)&&(p.pendingCodec=w),p.container=u,this.appendChangeType(e,u,w))})),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),this.sourceBufferCount||this.mediaSourceOpenOrEnded&&this.checkPendingTracks())}get sourceBufferTracks(){return Object.keys(this.tracks).reduce(((e,t)=>{const n=this.tracks[t];return e[t]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},e}),{})}appendChangeType(e,t,n){const i=`${t};codecs=${n}`,r={label:`change-type=${i}`,execute:()=>{const r=this.tracks[e];if(r){const o=r.buffer;null!=o&&o.changeType&&(this.log(`changing ${e} sourceBuffer type to ${i}`),o.changeType(i),r.codec=n,r.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:t=>{this.warn(`Failed to change ${e} SourceBuffer type`,t)}};this.append(r,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const n=e.start,i=n+.05*e.duration;if(!0===(null==(t=this.fragmentTracker.getAppendedFrag(n,te))?void 0:t.gap))return;const r={label:"block-audio",execute:()=>{var e;const t=this.tracks.video;(this.lastVideoAppendEnd>i||null!=t&&t.buffer&&On.isBuffered(t.buffer,i)||!0===(null==(e=this.fragmentTracker.getAppendedFrag(i,te))?void 0:e.gap))&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:e=>{this.warn("Error executing block-audio operation",e)}};this.blockedAudioAppend={op:r,frag:e},this.append(r,"audio",!0)}unblockAudio(){const{blockedAudioAppend:e,operationQueue:t}=this;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))}onBufferAppending(e,t){const{tracks:n}=this,{data:i,type:r,parent:o,frag:a,part:s,chunkMeta:l}=t,c=l.buffering[r],u=a.sn,h=self.performance.now();c.start=h;const d=a.stats.buffering,p=s?s.stats.buffering:null;0===d.start&&(d.start=h),p&&0===p.start&&(p.start=h);const f=n.audio;let g=!1;"audio"===r&&"audio/mpeg"===(null==f?void 0:f.container)&&(g=!this.lastMpegAudioChunk||1===l.id||this.lastMpegAudioChunk.sn!==l.sn,this.lastMpegAudioChunk=l);const m=this.tracks.video,v=null==m?void 0:m.buffer;if(v&&"initSegment"!==u){const e=s||a,t=this.blockedAudioAppend;if("audio"!==r||"main"===o||this.blockedAudioAppend){if("video"===r){const n=e.end;if(t){const e=t.frag.start;(n>e||n{if(c.executeStart=self.performance.now(),g){const e=this.tracks[r];if(e){const t=e.buffer;if(t){const e=y-t.timestampOffset;Math.abs(e)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${y} (delta: ${e}) sn: ${u})`),t.timestampOffset=y)}}}this.appendExecutor(i,r)},onStart:()=>{},onComplete:()=>{const e=self.performance.now();c.executeEnd=c.end=e,0===d.first&&(d.first=e),p&&0===p.first&&(p.first=e);const t={};this.sourceBuffers.forEach((([e,n])=>{e&&(t[e]=On.getBuffered(n))})),this.appendErrors[r]=0,"audio"===r||"video"===r?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(Y.BUFFER_APPENDED,{type:r,frag:a,part:s,chunkMeta:l,parent:a.type,timeRanges:t})},onError:e=>{var t;const n={type:W.MEDIA_ERROR,parent:a.type,details:q.BUFFER_APPEND_ERROR,sourceBufferName:r,frag:a,part:s,chunkMeta:l,error:e,err:e,fatal:!1},i=null==(t=this.media)?void 0:t.error;if(e.code===DOMException.QUOTA_EXCEEDED_ERR)n.details=q.BUFFER_FULL_ERROR;else if(e.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!i)n.errorAction=fn(!0);else if(e.name===Yo&&0===this.sourceBufferCount)n.errorAction=fn(!0);else{const e=++this.appendErrors[r];this.warn(`Failed ${e}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${r}" sourceBuffer (${i||"no media error"})`),(e>=this.hls.config.appendErrorMaxRetry||i)&&(n.fatal=!0)}this.hls.trigger(Y.ERROR,n)}};this.append(b,r,this.isPending(this.tracks[r]))}getFlushOp(e,t,n){return this.log(`queuing "${e}" remove ${t}-${n}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,n)},onStart:()=>{},onComplete:()=>{this.hls.trigger(Y.BUFFER_FLUSHED,{type:e})},onError:i=>{this.warn(`Failed to remove ${t}-${n} from "${e}" SourceBuffer`,i)}}}onBufferFlushing(e,t){const{type:n,startOffset:i,endOffset:r}=t;n?this.append(this.getFlushOp(n,i,r),n):this.sourceBuffers.forEach((([e])=>{e&&this.append(this.getFlushOp(e,i,r),e)}))}onFragParsed(e,t){const{frag:n,part:i}=t,r=[],o=i?i.elementaryStreams:n.elementaryStreams;o[Ne]?r.push("audiovideo"):(o[Te]&&r.push("audio"),o[De]&&r.push("video"));0===r.length&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers((()=>{const e=self.performance.now();n.stats.buffering.end=e,i&&(i.stats.buffering.end=e);const t=i?i.stats:n.stats;this.hls.trigger(Y.FRAG_BUFFERED,{frag:n,part:i,stats:t,id:n.type})}),r).catch((e=>{this.warn(`Fragment buffered callback ${e}`),this.stepOperationQueue(this.sourceBufferTypes)}))}onFragChanged(e,t){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some((([e])=>{var t,n;return e&&(!(null!=(t=this.tracks[e])&&t.ended)||(null==(n=this.tracks[e])?void 0:n.ending))}))}onBufferEos(e,t){var n;this.sourceBuffers.forEach((([e])=>{if(e){const n=this.tracks[e];t.type&&t.type!==e||(n.ending=!0,n.ended||(n.ended=!0,this.log(`${e} buffer reached EOS`)))}}));const i=!1!==(null==(n=this.overrides)?void 0:n.endOfStream);this.sourceBufferCount>0&&!this.sourceBuffers.some((([e])=>{var t;return e&&!(null!=(t=this.tracks[e])&&t.ended)}))&&(i?(this.log("Queueing EOS"),this.blockUntilOpen((()=>{this.tracksEnded();const{mediaSource:e}=this;e&&"open"===e.readyState?(this.log("Calling mediaSource.endOfStream()"),e.endOfStream(),this.hls.trigger(Y.BUFFERED_TO_END,void 0)):e&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${e.readyState}`)}))):(this.tracksEnded(),this.hls.trigger(Y.BUFFERED_TO_END,void 0)))}tracksEnded(){this.sourceBuffers.forEach((([e])=>{if(null!==e){const t=this.tracks[e];t&&(t.ending=!1)}}))}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.updateDuration())}updateDuration(){const e=this.getDurationAndRange();e&&this.blockUntilOpen((()=>this.updateMediaSource(e)))}onError(e,t){if(t.details===q.BUFFER_APPEND_ERROR&&t.frag){var n;const e=null==(n=t.errorAction)?void 0:n.nextAutoLevel;G(e)&&e!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:e,details:t,media:n}=this;if(!n||null===t)return;if(!this.sourceBufferCount)return;const i=e.config,r=n.currentTime,o=t.levelTargetDuration,a=t.live&&null!==i.liveBackBufferLength?i.liveBackBufferLength:i.backBufferLength;if(G(a)&&a>=0){const e=Math.max(a,o),t=Math.floor(r/o)*o-e;this.flushBackBuffer(r,o,t)}if(G(i.frontBufferFlushThreshold)&&i.frontBufferFlushThreshold>0){const e=Math.max(i.maxBufferLength,i.frontBufferFlushThreshold),t=Math.max(e,o),n=Math.floor(r/o)*o+t;this.flushFrontBuffer(r,o,n)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach((([e,t])=>{if(t){const r=On.getBuffered(t);if(r.length>0&&n>r.start(0)){var i;this.hls.trigger(Y.BACK_BUFFER_REACHED,{bufferEnd:n});const t=this.tracks[e];if(null!=(i=this.details)&&i.live)this.hls.trigger(Y.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(null!=t&&t.ended)return void this.log(`Cannot flush ${e} back buffer while SourceBuffer is in ended state`);this.hls.trigger(Y.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:e})}}}))}flushFrontBuffer(e,t,n){this.sourceBuffers.forEach((([t,i])=>{if(i){const r=On.getBuffered(i),o=r.length;if(o<2)return;const a=r.start(o-1),s=r.end(o-1);if(n>a||e>=a&&e<=s)return;this.hls.trigger(Y.BUFFER_FLUSHING,{startOffset:a,endOffset:1/0,type:t})}}))}getDurationAndRange(){var e;const{details:t,mediaSource:n}=this;if(!t||!this.media||"open"!==(null==n?void 0:n.readyState))return null;const i=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&t.live&&n.setLiveSeekableRange){const e=Math.max(0,t.fragmentStart);return{duration:1/0,start:e,end:Math.max(e,i)}}return{duration:1/0}}const r=null==(e=this.overrides)?void 0:e.duration;if(r)return G(r)?{duration:r}:null;const o=this.media.duration;return i>(G(n.duration)?n.duration:0)&&i>o||!G(o)?{duration:i}:null}updateMediaSource({duration:e,start:t,end:n}){const i=this.mediaSource;this.media&&i&&"open"===i.readyState&&(i.duration!==e&&(G(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),i.duration=e),void 0!==t&&void 0!==n&&(this.log(`MediaSource duration is set to ${i.duration}. Setting seekable range to ${t}-${n}.`),i.setLiveSeekableRange(t,n)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:n}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${$t(n)}`),this.tracksReady){var i;const e=null==(i=this.transferData)?void 0:i.tracks;e&&Object.keys(e).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach((([t,n])=>{if(t){const i=this.tracks[t];e[t]={buffer:n,container:i.container,codec:i.codec,supplemental:i.supplemental,levelCodec:i.levelCodec,id:i.id,metadata:i.metadata}}})),this.hls.trigger(Y.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach((([e])=>{this.executeNext(e)}))}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:n}=this;if(!n)throw new Error("createSourceBuffers called when mediaSource was null");for(const r in e){const o=r,a=e[o];if(this.isPending(a)){const e=this.getTrackCodec(a,o),r=`${a.container};codecs=${e}`;a.codec=e,this.log(`creating sourceBuffer(${r})${this.currentOp(o)?" Queued":""} ${$t(a)}`);try{const e=n.addSourceBuffer(r),i=Jo(o),s=[o,e];t[i]=s,a.buffer=e}catch(e){var i;return this.error(`error while trying to add sourceBuffer: ${e.message}`),this.shiftAndExecuteNext(o),null==(i=this.operationQueue)||i.removeBlockers(),delete this.tracks[o],void this.hls.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:e,sourceBufferName:o,mimeType:r,parent:a.id})}this.trackSourceBuffer(o,a)}}this.bufferCreated()}getTrackCodec(e,t){const n=e.supplemental;let i=e.codec;n&&("video"===t||"audiovideo"===t)&&ft(n,"video")&&(i=function(e,t){const n=[];if(e){const t=e.split(",");for(let e=0;e{const n=t.removedRanges;null!=n&&n.length&&this.hls.trigger(Y.BUFFER_FLUSHED,{type:e})}))}get mediaSrc(){var e,t;const n=(null==(e=this.media)||null==(t=e.querySelector)?void 0:t.call(e,"source"))||this.media;return null==n?void 0:n.src}onSBUpdateStart(e){const t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t;if("closed"===(null==(t=this.mediaSource)?void 0:t.readyState))return void this.resetBuffer(e);const n=this.currentOp(e);n&&(n.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var n;const i=new Error(`${e} SourceBuffer error. MediaSource readyState: ${null==(n=this.mediaSource)?void 0:n.readyState}`);this.error(`${i}`,t),this.hls.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:i,fatal:!1});const r=this.currentOp(e);r&&r.onError(i)}removeExecutor(e,t,n){const{media:i,mediaSource:r}=this,o=this.tracks[e],a=null==o?void 0:o.buffer;if(!i||!r||!a)return this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),void this.shiftAndExecuteNext(e);const s=G(i.duration)?i.duration:1/0,l=G(r.duration)?r.duration:1/0,c=Math.max(0,t),u=Math.min(n,s,l);u>c&&(!o.ending||o.ended)?(o.ended=!1,this.log(`Removing [${c},${u}] from the ${e} SourceBuffer`),a.remove(c,u)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],i=null==n?void 0:n.buffer;if(!i)throw new Xo(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,i.appendBuffer(e)}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch((e=>{this.warn(`SourceBuffer blocked callback ${e}`),this.stepOperationQueue(this.sourceBufferTypes)}));else try{e()}catch(e){this.warn(`Callback run without blocking ${this.operationQueue} ${e}`)}}isUpdating(){return this.sourceBuffers.some((([e,t])=>e&&t.updating))}isQueued(){return this.sourceBuffers.some((([e])=>e&&!!this.currentOp(e)))}isPending(e){return!!e&&!e.buffer}blockBuffers(e,t=this.sourceBufferTypes){if(!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);const{operationQueue:n}=this,i=t.map((e=>this.appendBlocker(e)));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(i).then((t=>{n===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))}))}stepOperationQueue(e){e.forEach((e=>{var t;const n=null==(t=this.tracks[e])?void 0:t.buffer;n&&!n.updating&&this.shiftAndExecuteNext(e)}))}append(e,t,n){this.operationQueue&&this.operationQueue.append(e,t,n)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce(((e,t)=>e+(this.isPending(this.tracks[t])?1:0)),0)}get sourceBufferCount(){return this.sourceBuffers.reduce(((e,[t])=>e+(t?1:0)),0)}get sourceBufferTypes(){return this.sourceBuffers.map((([e])=>e)).filter((e=>!!e))}addBufferListener(e,t,n){const i=this.tracks[e];if(!i)return;const r=i.buffer;if(!r)return;const o=n.bind(this,e);i.listeners.push({event:t,listener:o}),r.addEventListener(t,o)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const n=t.buffer;n&&(t.listeners.forEach((e=>{n.removeEventListener(e.event,e.listener)})),t.listeners.length=0)}},capLevelController:ea,errorController:class extends ue{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(Y.ERROR,this.onError,this),e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(Y.ERROR,this.onError,this),e.off(Y.ERROR,this.onErrorOut,this),e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(null==e?void 0:e.type)===te?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n;if(t.fatal)return;const i=this.hls,r=t.context;switch(t.details){case q.FRAG_LOAD_ERROR:case q.FRAG_LOAD_TIMEOUT:case q.KEY_LOAD_ERROR:case q.KEY_LOAD_TIMEOUT:return void(t.errorAction=this.getFragRetryOrSwitchAction(t));case q.FRAG_PARSING_ERROR:if(null!=(n=t.frag)&&n.gap)return void(t.errorAction=fn());case q.FRAG_GAP:case q.FRAG_DECRYPT_ERROR:return t.errorAction=this.getFragRetryOrSwitchAction(t),void(t.errorAction.action=ln);case q.LEVEL_EMPTY_ERROR:case q.LEVEL_PARSING_ERROR:{var o,a;const e=t.parent===te?t.level:i.loadLevel;t.details===q.LEVEL_EMPTY_ERROR&&null!=(o=t.context)&&null!=(a=o.levelDetails)&&a.live?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,e):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,e))}return;case q.LEVEL_LOAD_ERROR:case q.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==r?void 0:r.level)&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.level)));case q.AUDIO_TRACK_LOAD_ERROR:case q.AUDIO_TRACK_LOAD_TIMEOUT:case q.SUBTITLE_LOAD_ERROR:case q.SUBTITLE_TRACK_LOAD_TIMEOUT:if(r){const e=i.loadLevelObj;if(e&&(r.type===J&&e.hasAudioGroup(r.groupId)||r.type===ee&&e.hasSubtitleGroup(r.groupId)))return t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=ln,void(t.errorAction.flags=dn)}return;case q.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const e=i.loadLevelObj,n=null==e?void 0:e.attrs["HDCP-LEVEL"];n?t.errorAction={action:ln,flags:pn,hdcpLevel:n}:this.keySystemError(t)}return;case q.BUFFER_ADD_CODEC_ERROR:case q.REMUX_ALLOC_ERROR:case q.BUFFER_APPEND_ERROR:var s;if(!t.errorAction)t.errorAction=this.getLevelSwitchAction(t,null!=(s=t.level)?s:i.loadLevel);return;case q.INTERNAL_EXCEPTION:case q.BUFFER_APPENDING_ERROR:case q.BUFFER_FULL_ERROR:case q.LEVEL_SWITCH_ERROR:case q.BUFFER_STALLED_ERROR:case q.BUFFER_SEEK_OVER_HOLE:case q.BUFFER_NUDGE_ON_STALL:return void(t.errorAction=fn())}t.type===W.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const n=nn(this.hls.config.playlistLoadPolicy,e),i=this.playlistError++;if(an(n,i,tn(e),e.response))return{action:un,flags:hn,retryConfig:n,retryCount:i};const r=this.getLevelSwitchAction(e,t);return n&&(r.retryConfig=n,r.retryCount=i),r}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),i=t.levels[n],{fragLoadPolicy:r,keyLoadPolicy:o}=t.config,a=nn(e.details.startsWith("key")?o:r,e),s=t.levels.reduce(((e,t)=>e+t.fragmentError),0);if(i){e.details!==q.FRAG_GAP&&i.fragmentError++;if(an(a,s,tn(e),e.response))return{action:un,flags:hn,retryConfig:a,retryCount:s}}const l=this.getLevelSwitchAction(e,n);return a&&(l.retryConfig=a,l.retryCount=s),l}getLevelSwitchAction(e,t){const n=this.hls;null==t&&(t=n.loadLevel);const i=this.hls.levels[t];if(i){var r,o;const t=e.details;i.loadError++,t===q.BUFFER_APPEND_ERROR&&i.fragmentError++;let l=-1;const{levels:c,loadLevel:u,minAutoLevel:h,maxAutoLevel:d}=n;n.autoLevelEnabled||n.config.preserveManualLevelOnError||(n.loadLevel=-1);const p=null==(r=e.frag)?void 0:r.type,f=(p===ne&&t===q.FRAG_PARSING_ERROR||"audio"===e.sourceBufferName&&(t===q.BUFFER_ADD_CODEC_ERROR||t===q.BUFFER_APPEND_ERROR))&&c.some((({audioCodec:e})=>i.audioCodec!==e)),g="video"===e.sourceBufferName&&(t===q.BUFFER_ADD_CODEC_ERROR||t===q.BUFFER_APPEND_ERROR)&&c.some((({codecSet:e,audioCodec:t})=>i.codecSet!==e&&i.audioCodec===t)),{type:m,groupId:v}=null!=(o=e.context)?o:{};for(let n=c.length;n--;){const r=(n+u)%c.length;if(r!==u&&r>=h&&r<=d&&0===c[r].loadError){var a,s;const n=c[r];if(t===q.FRAG_GAP&&p===te&&e.frag){const t=c[r].details;if(t){const n=Xt(e.frag,t.fragments,e.frag.start);if(null!=n&&n.gap)continue}}else{if(m===J&&n.hasAudioGroup(v)||m===ee&&n.hasSubtitleGroup(v))continue;if(p===ne&&null!=(a=i.audioGroups)&&a.some((e=>n.hasAudioGroup(e)))||p===ie&&null!=(s=i.subtitleGroups)&&s.some((e=>n.hasSubtitleGroup(e)))||f&&i.audioCodec===n.audioCodec||!f&&i.audioCodec!==n.audioCodec||g&&i.codecSet===n.codecSet)continue}l=r;break}}if(l>-1&&n.loadLevel!==l)return e.levelRetry=!0,this.playlistError=0,{action:ln,flags:hn,nextAutoLevel:l}}return{action:ln,flags:dn}}onErrorOut(e,t){var n;switch(null==(n=t.errorAction)?void 0:n.action){case sn:break;case ln:this.sendAlternateToPenaltyBox(t),t.errorAction.resolved||t.details===q.FRAG_GAP?/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError()):t.fatal=!0}t.fatal&&this.hls.stopLoad()}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:i,hdcpLevel:r,nextAutoLevel:o}=n;switch(i){case hn:this.switchLevel(e,o);break;case pn:r&&(t.maxHdcpLevel=Tt[Tt.indexOf(r)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`)}n.resolved||this.switchLevel(e,o)}switchLevel(e,t){if(void 0!==t&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===q.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&"audiovideo"!==e.sourceBufferName)){const t=Ct(e.mimeType),n=this.hls.levels;for(let i=n.length;i--;)n[i][`${e.sourceBufferName}Codec`]===t&&this.hls.removeLevel(i)}}},fpsController:class{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}registerListeners(){this.hls.on(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const n=this.hls.config;if(n.capLevelOnFPSDrop){const e=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=e,e&&"function"==typeof e.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,n){const i=performance.now();if(t){if(this.lastTime){const e=i-this.lastTime,r=n-this.lastDroppedFrames,o=t-this.lastDecodedFrames,a=1e3*r/e,s=this.hls;if(s.trigger(Y.FPS_DROP,{currentDropped:r,currentDecoded:o,totalDroppedFrames:n}),a>0&&r>s.config.fpsDroppedMonitoringThreshold*o){let e=s.currentLevel;s.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+e),e>0&&(-1===s.autoLevelCapping||s.autoLevelCapping>=e)&&(e-=1,s.trigger(Y.FPS_DROP_LEVEL_CAPPING,{level:e,droppedLevel:s.currentLevel}),s.autoLevelCapping=e,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}},stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:fi,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:qs,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:class extends hr{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",ie),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(Y.LEVEL_LOADED,this.onLevelLoaded,this),e.on(Y.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(Y.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(Y.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(Y.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(Y.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(Y.LEVEL_LOADED,this.onLevelLoaded,this),e.off(Y.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(Y.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(Y.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(Y.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(Y.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=er,this.setInterval(500),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(e,t){this.tracksBuffered=[],super.onMediaDetaching(e,t)}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:n,success:i}=t;if(Be(n)&&(this.fragPrevious=n),this.state=er,!i)return;const r=this.tracksBuffered[this.currentTrackId];if(!r)return;let o;const a=n.start;for(let e=0;e=r[e].start&&a<=r[e].end){o=r[e];break}const s=n.start+n.duration;o?o.end=s:(o={start:a,end:s},r.push(o)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:n,endOffset:i}=t;if(0===n&&i!==Number.POSITIVE_INFINITY){const e=i-1;if(e<=0)return;t.endOffsetSubtitles=Math.max(0,e),this.tracksBuffered.forEach((t=>{for(let n=0;nnew Ft(e))):(this.tracksBuffered=[],this.levels=t.map((e=>{const t=new Ft(e);return this.tracksBuffered[t.id]=[],t})),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,ie),this.fragPrevious=null,this.mediaBuffer=null)}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,null==(n=this.levels)||!n.length||-1===this.currentTrackId)return void this.clearInterval();const i=this.levels[this.currentTrackId];null!=i&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.state!==Ji&&this.setInterval(500)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:i,levels:r}=this,{details:o,id:a}=t;if(!r)return void this.warn(`Subtitle tracks were reset while loading level ${a}`);const s=r[a];if(a>=r.length||!s)return;this.log(`Subtitle track ${a} loaded [${o.startSN},${o.endSN}]${o.lastPartSn?`[part-${o.lastPartSn}-${o.lastPartIndex}]`:""},duration:${o.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let l=0;if(o.live||null!=(n=s.details)&&n.live){const e=this.mainDetails;if(o.deltaUpdateFailed||!e)return;const t=e.fragments[0];var c;if(s.details)l=this.alignPlaylists(o,s.details,null==(c=this.levelLastLoaded)?void 0:c.details),0===l&&t&&(l=t.start,$i(o,l));else o.hasProgramDateTime&&e.hasProgramDateTime?(Xi(o,e),l=o.fragmentStart):t&&(l=t.start,$i(o,l))}if(s.details=o,this.levelLastLoaded=s,a===i&&(this.hls.trigger(Y.SUBTITLE_TRACK_UPDATED,{details:o,id:a,groupId:t.groupId}),this.tick(),o.live&&!this.fragCurrent&&this.media&&this.state===er)){Xt(null,o.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),s.details=void 0)}}_handleFragmentLoadComplete(e){const{frag:t,payload:n}=e,i=t.decryptdata,r=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&null!=i&&i.key&&i.iv&&qn(i.method)){const e=performance.now();this.decrypter.decrypt(new Uint8Array(n),i.key.buffer,i.iv.buffer,Yn(i.method)).catch((e=>{throw r.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:t}),e})).then((n=>{const i=performance.now();r.trigger(Y.FRAG_DECRYPTED,{frag:t,payload:n,stats:{tstart:e,tdecrypt:i}})})).catch((e=>{this.warn(`${e.name}: ${e.message}`),this.state=er}))}}doTick(){if(this.media){if(this.state===er){const{currentTrackId:e,levels:t}=this,n=null==t?void 0:t[e];if(!n||!t.length||!n.details)return;if(this.waitForLive(n))return;const{config:i}=this,r=this.getLoadPosition(),o=On.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],r,i.maxBufferHole),{end:a,len:s}=o,l=n.details;if(s>this.hls.maxBufferLength+l.levelTargetDuration)return;const c=l.fragments,u=c.length,h=l.edge;let d=null;const p=this.fragPrevious;if(ah-e?0:e;d=Xt(p,c,Math.max(c[0].start,a),t),!d&&p&&p.startthis.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let e=null;const t=za(this.media.textTracks);for(let n=0;n-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Y.LEVEL_LOADING,this.onLevelLoading,this),e.on(Y.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(Y.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(Y.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Y.LEVEL_LOADING,this.onLevelLoading,this),e.off(Y.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(Y.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(Y.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(e,t){const n=this.media;if(!n)return;const i=!!t.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||n.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,i)return;za(n.textTracks).forEach((e=>{Oa(e)}))}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:n,groupId:i,details:r}=t,o=this.tracksInGroup[n];if(!o||o.groupId!==i)return void this.warn(`Subtitle track with id:${n} and group:${i} not found in active group ${null==o?void 0:o.groupId}`);const a=o.details;o.details=t.details,this.log(`Subtitle track ${n} "${o.name}" lang:${o.lang} group:${i} loaded [${r.startSN}-${r.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,a)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.subtitleGroups||null,i=this.groupIds;let r=this.currentTrack;if(!n||(null==i?void 0:i.length)!==(null==n?void 0:n.length)||null!=n&&n.some((e=>-1===(null==i?void 0:i.indexOf(e))))){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const e=this.tracks.filter((e=>!n||-1!==n.indexOf(e.groupId)));if(e.length)this.selectDefaultTrack&&!e.some((e=>e.default))&&(this.selectDefaultTrack=!1),e.forEach(((e,t)=>{e.id=t}));else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=e;const t=this.hls.config.subtitlePreference;if(!r&&t){this.selectDefaultTrack=!1;const n=Gt(t,e);if(n>-1)r=e[n];else{const e=Gt(t,this.tracks);r=this.tracks[e]}}let i=this.findTrackId(r);-1===i&&r&&(i=this.findTrackId(null));const o={subtitleTracks:e};this.log(`Updating subtitle tracks, ${e.length} track(s) found in "${null==n?void 0:n.join(",")}" group-id`),this.hls.trigger(Y.SUBTITLE_TRACKS_UPDATED,o),-1!==i&&-1===this.trackId&&this.setSubtitleTrack(i)}}findTrackId(e){const t=this.tracksInGroup,n=this.selectDefaultTrack;for(let i=0;i-1){const e=this.tracksInGroup[i];return this.setSubtitleTrack(i),e}if(n)return null;{const n=Gt(e,t);if(n>-1)return t[n]}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,i=e.groupId,r=this.getUrlWithDirectives(e.url,t),o=e.details,a=null==o?void 0:o.age;this.log(`Loading subtitle ${n} "${e.name}" lang:${e.lang} group:${i}${void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:""}${a&&o.live?" age "+a.toFixed(1)+(o.type?" "+o.type||0:""):""} ${r}`),this.hls.trigger(Y.SUBTITLE_TRACK_LOADING,{url:r,id:n,groupId:i,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=za(e.textTracks),n=this.currentTrack;let i;if(n&&(i=t.filter((e=>Vo(n,e)))[0],i||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(t).forEach((e=>{"disabled"!==e.mode&&e!==i&&(e.mode="disabled")})),i){const e=this.subtitleDisplay?"showing":"hidden";i.mode!==e&&(i.mode=e)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media)return void(this.queuedDefaultTrack=e);if(e<-1||e>=t.length||!G(e))return void this.warn(`Invalid subtitle track id: ${e}`);this.selectDefaultTrack=!1;const n=this.currentTrack,i=t[e]||null;if(this.trackId=e,this.currentTrack=i,this.toggleTrackModes(),!i)return void this.hls.trigger(Y.SUBTITLE_TRACK_SWITCH,{id:e});const r=!!i.details&&!i.details.live;if(e===this.trackId&&i===n&&r)return;this.log(`Switching to subtitle-track ${e}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));const{id:o,groupId:a="",name:s,type:l,url:c}=i;this.hls.trigger(Y.SUBTITLE_TRACK_SWITCH,{id:o,groupId:a,name:s,type:l,url:c});const u=this.switchParams(i.url,null==n?void 0:n.details,i.details);this.loadPlaylist(u)}},timelineController:class{constructor(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},e.on(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(Y.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(Y.FRAG_LOADING,this.onFragLoading,this),e.on(Y.FRAG_LOADED,this.onFragLoaded,this),e.on(Y.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(Y.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(Y.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(Y.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(Y.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(Y.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(Y.FRAG_LOADING,this.onFragLoading,this),e.off(Y.FRAG_LOADED,this.onFragLoaded,this),e.off(Y.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(Y.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(Y.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(Y.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(Y.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new Gs(this,"textTrack1"),t=new Gs(this,"textTrack2"),n=new Gs(this,"textTrack3"),i=new Gs(this,"textTrack4");this.cea608Parser1=new vs(1,e,t),this.cea608Parser2=new vs(3,n,i)}addCues(e,t,n,i,r){let o=!1;for(let e=r.length;e--;){const i=r[e],u=(a=i[0],s=i[1],l=t,c=n,Math.min(s,c)-Math.max(a,l));if(u>=0&&(i[0]=Math.min(i[0],t),i[1]=Math.max(i[1],n),o=!0,u/(n-t)>.5))return}var a,s,l,c;if(o||r.push([t,n]),this.config.renderTextTracksNatively){const r=this.captionsTracks[e];this.Cues.newCue(r,t,n,i)}else{const r=this.Cues.newCue(null,t,n,i);this.hls.trigger(Y.CUES_PARSED,{type:"captions",cues:r,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:i,timescale:r}){const{unparsedVttFrags:o}=this;n===te&&(this.initPTS[t.cc]={baseTime:i,timescale:r}),o.length&&(this.unparsedVttFrags=[],o.forEach((e=>{this.onFragLoaded(Y.FRAG_LOADED,e)})))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let i=0;i{Oa(i[e]),delete i[e]})),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:e}=this;if(!e)return;const t=e.textTracks;if(t)for(let e=0;ee.textCodec===Is));if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(Go(this.tracks,n))return void(this.tracks=n);if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const e=this.media,t=e?za(e.textTracks):null;if(this.tracks.forEach(((e,n)=>{let i;if(t){let n=null;for(let i=0;inull!==e)).map((e=>e.label));e.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${e.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const e=this.tracks.map((e=>({label:e.name,kind:e.type.toLowerCase(),default:e.default,subtitleTrack:e})));this.hls.trigger(Y.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:e})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach((e=>{const t=/(?:CC|SERVICE)([1-4])/.exec(e.instreamId);if(!t)return;const n=`textTrack${t[1]}`,i=this.captionsProperties[n];i&&(i.label=e.name,e.lang&&(i.languageCode=e.lang),i.media=e)}))}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return null==t?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===te){var n,i;const{cea608Parser1:e,cea608Parser2:r,lastSn:o}=this,{cc:a,sn:s}=t.frag,l=null!=(n=null==(i=t.part)?void 0:i.index)?n:-1;e&&r&&(s!==o+1||s===o&&l!==this.lastPartIndex+1||a!==this.lastCc)&&(e.reset(),r.reset()),this.lastCc=a,this.lastSn=s,this.lastPartIndex=l}}onFragLoaded(e,t){const{frag:n,payload:i}=t;if(n.type===ie)if(i.byteLength){const e=n.decryptdata,r="stats"in t;if(null==e||!e.encrypted||r){const e=this.tracks[n.level],r=this.vttCCs;r[n.cc]||(r[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),e&&e.textCodec===Is?this._parseIMSC1(n,i):this._parseVTTs(t)}}else this.hls.trigger(Y.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;Fs(t,this.initPTS[e.cc],(t=>{this._appendCues(t,e.level),n.trigger(Y.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})}),(t=>{n.logger.log(`Failed to parse IMSC1: ${t}`),n.trigger(Y.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:t})}))}_parseVTTs(e){var t;const{frag:n,payload:i}=e,{initPTS:r,unparsedVttFrags:o}=this,a=r.length-1;if(!r[n.cc]&&-1===a)return void o.push(e);const s=this.hls;Ns(null!=(t=n.initSegment)&&t.data?it(n.initSegment.data,new Uint8Array(i)).buffer:i,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,(e=>{this._appendCues(e,n.level),s.trigger(Y.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})}),(t=>{const r="Missing initPTS for VTT MPEGTS"===t.message;r?o.push(e):this._fallbackToIMSC1(n,i),s.logger.log(`Failed to parse VTT cue: ${t}`),r&&a>n.cc||s.trigger(Y.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:t})}))}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||Fs(t,this.initPTS[e.cc],(()=>{n.textCodec=Is,this._parseIMSC1(e,t)}),(()=>{n.textCodec="wvtt"}))}_appendCues(e,t){const n=this.hls;if(this.config.renderTextTracksNatively){const n=this.textTracks[t];if(!n||"disabled"===n.mode)return;e.forEach((e=>Ra(n,e)))}else{const i=this.tracks[t];if(!i)return;const r=i.default?"default":"subtitles"+t;n.trigger(Y.CUES_PARSED,{type:"subtitles",cues:e,track:r})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===ie&&this.onFragLoaded(Y.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:n,samples:i}=t;if(n.type!==te||"NONE"!==this.closedCaptionsForLevel(n))for(let e=0;eFa(e[i],t,n)))}if(this.config.renderTextTracksNatively&&0===t&&void 0!==i){const{textTracks:e}=this;Object.keys(e).forEach((n=>Fa(e[n],t,i)))}}}extractCea608Data(e){const t=[[],[]],n=31&e[0];let i=2;for(let r=0;r=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(e,t){var n;const i=(null==(n=this.mainFragLoading)?void 0:n.frag)||null;if(t&&(null==i?void 0:i.cc)===t.cc)return;const r=(i||e).cc,o=en(this.getLevelDetails(),r,this.getLoadPosition());o&&(this.log(`Waiting fragment cc (${null==t?void 0:t.cc}) cancelled because video is at cc ${e.cc}`),this.startFragRequested=!1,this.nextLoadPosition=o.start,this.resetLoadingState(),this.state===er&&this.doTickIdle())}startLoad(e,t){if(!this.levels)return this.startPosition=e,void(this.state=Ji);const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),n>0&&-1===e?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=er):this.state=rr,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case er:this.doTickIdle();break;case rr:{const{levels:e,trackId:t}=this,n=null==e?void 0:e[t],i=null==n?void 0:n.details;if(i&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(i))break;this.state=cr}break}case ir:{var e;const t=performance.now(),n=this.retryDate;if(!n||t>=n||null!=(e=this.media)&&e.seeking){const{levels:e,trackId:t}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((null==e?void 0:e[t])||null),this.state=er}break}case cr:{const e=this.waitingData;if(e){const{frag:t,part:n,cache:i,complete:r}=e,o=this.mainAnchor;if(void 0!==this.initPTS[t.cc]){this.waitingData=null,this.state=nr;const e={frag:t,part:n,payload:i.flush().buffer,networkDetails:null};this._handleFragmentLoadProgress(e),r&&super._handleFragmentLoadComplete(e)}else o&&o.cc!==e.frag.cc&&this.syncWithAnchor(o,e.frag)}else this.state=er}}this.onTickEnd()}resetLoadingState(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){const{media:e}=this;null!=e&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;const{hls:t,levels:n,media:i,trackId:r}=this,o=t.config;if(!this.buffering||!i&&!this.primaryPrefetch&&(this.startFragRequested||!o.startFragPrefetch)||null==n||!n[r])return;const a=n[r],s=a.details;if(!s||this.waitForLive(a)||this.waitForCdnTuneIn(s))return this.state=rr,void(this.startFragRequested=!1);const l=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&l&&(this.bufferFlushed=!1,this.afterBufferFlushed(l,Te,ne));const c=this.getFwdBufferInfo(l,ne);if(null===c)return;if(!this.switchingTrack&&this._streamEnded(c,s))return t.trigger(Y.BUFFER_EOS,{type:"audio"}),void(this.state=sr);const u=c.len,h=t.maxBufferLength,d=s.fragments,p=d[0].start,f=this.getLoadPosition(),g=this.flushing?f:c.end;if(this.switchingTrack&&i){const e=f;s.PTSKnown&&ep||c.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),i.currentTime=p+.05)}if(u>=h&&!this.switchingTrack&&gv.end){const e=this.fragmentTracker.getFragAtPos(g,te);e&&e.end>v.end&&(v=e,this.mainFragLoading={frag:e,targetBufferTime:null})}if(m.start>v.end)return}this.loadFragment(m,a,g)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map((e=>new Ft(e)))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),n?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==Ji&&(this.setInterval(100),this.state=er,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;const n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(Y.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(e,t){var n;const{levels:i}=this,{details:r,id:o,groupId:a,track:s}=t;if(!i)return void this.warn(`Audio tracks reset while loading track ${o} "${s.name}" of "${a}"`);const l=this.mainDetails;if(!l||r.endCC>l.endCC||l.expired)return this.cachedTrackLoadedData=t,void(this.state!==Ji&&(this.state=rr));this.cachedTrackLoadedData=null,this.log(`Audio track ${o} "${s.name}" of "${a}" loaded [${r.startSN},${r.endSN}]${r.lastPartSn?`[part-${r.lastPartSn}-${r.lastPartIndex}]`:""},duration:${r.totalduration}`);const c=i[o];let u=0;if(r.live||null!=(n=c.details)&&n.live){if(this.checkLiveUpdate(r),r.deltaUpdateFailed)return;var h;if(c.details)u=this.alignPlaylists(r,c.details,null==(h=this.levelLastLoaded)?void 0:h.details);r.alignedSliding||(Yi(r,l),r.alignedSliding||Xi(r,l),u=r.fragmentStart)}c.details=r,this.levelLastLoaded=c,this.startFragRequested||this.setStartPosition(l,u),this.hls.trigger(Y.AUDIO_TRACK_UPDATED,{details:r,id:o,groupId:t.groupId}),this.state!==rr||this.waitForCdnTuneIn(r)||(this.state=er),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:i,payload:r}=e,{config:o,trackId:a,levels:s}=this;if(!s)return void this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);const l=s[a];if(!l)return void this.warn("Audio track is undefined on fragment load progress");const c=l.details;if(!c)return this.warn("Audio track details undefined on fragment load progress"),void this.removeUnbufferedFrags(n.start);const u=o.defaultAudioCodec||l.audioCodec||"mp4a.40.2";let h=this.transmuxer;h||(h=this.transmuxer=new Zo(this.hls,ne,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const d=this.initPTS[n.cc],p=null==(t=n.initSegment)?void 0:t.data;if(void 0!==d){const e=!1,t=i?i.index:-1,o=-1!==t,a=new Bn(n.level,n.sn,n.stats.chunkCount,r.byteLength,t,o);h.push(r,p,u,"",n,i,c.totalduration,e,a,d)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${c.startSN} ,${c.endSN}],track ${a}`);const{cache:e}=this.waitingData=this.waitingData||{frag:n,part:i,cache:new pr,complete:!1};e.push(new Uint8Array(r)),this.state!==Ji&&(this.state=cr)}}_handleFragmentLoadComplete(e){this.waitingData?this.waitingData.complete=!0:super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;const n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===te&&Be(t.frag)&&(this.mainFragLoading=t,this.state===er&&this.tick())}onFragBuffered(e,t){const{frag:n,part:i}=t;if(n.type===ne)if(this.fragContextChanged(n))this.warn(`Fragment ${n.sn}${i?" p: "+i.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);else{if(Be(n)){this.fragPrevious=n;const e=this.switchingTrack;e&&(this.bufferedTrack=e,this.switchingTrack=null,this.hls.trigger(Y.AUDIO_TRACK_SWITCHED,ce({},e)))}this.fragBufferedComplete(n,i),this.media&&this.tick()}else this.audioOnly||n.type!==te||n.elementaryStreams.video||n.elementaryStreams.audiovideo||(this.audioOnly=!0,this.mainFragLoading=null)}onError(e,t){var n;if(t.fatal)this.state=lr;else switch(t.details){case q.FRAG_GAP:case q.FRAG_PARSING_ERROR:case q.FRAG_DECRYPT_ERROR:case q.FRAG_LOAD_ERROR:case q.FRAG_LOAD_TIMEOUT:case q.KEY_LOAD_ERROR:case q.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(ne,t);break;case q.AUDIO_TRACK_LOAD_ERROR:case q.AUDIO_TRACK_LOAD_TIMEOUT:case q.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==rr||(null==(n=t.context)?void 0:n.type)!==J||(this.state=er);break;case q.BUFFER_ADD_CODEC_ERROR:case q.BUFFER_APPEND_ERROR:if("audio"!==t.parent)return;this.resetLoadingState();break;case q.BUFFER_FULL_ERROR:if("audio"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case q.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}onBufferFlushing(e,{type:t}){t!==De&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==De){this.flushing=!1,this.bufferFlushed=!0,this.state===sr&&(this.state=er);const e=this.mediaBuffer||this.media;e&&(this.afterBufferFlushed(e,t,ne),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:i}=this,{remuxResult:r,chunkMeta:o}=e,a=this.getCurrentContext(o);if(!a)return void this.resetWhenMissingContext(o);const{frag:s,part:l,level:c}=a,{details:u}=c,{audio:h,text:d,id3:p,initSegment:f}=r;if(!this.fragContextChanged(s)&&u){if(this.state=or,this.switchingTrack&&h&&this.completeAudioSwitch(this.switchingTrack),null!=f&&f.tracks){const e=s.initSegment||s;this._bufferInitSegment(c,f.tracks,e,o),i.trigger(Y.FRAG_PARSING_INIT_SEGMENT,{frag:e,id:n,tracks:f.tracks})}if(h){const{startPTS:e,endPTS:t,startDTS:n,endDTS:i}=h;l&&(l.elementaryStreams[Te]={startPTS:e,endPTS:t,startDTS:n,endDTS:i}),s.setElementaryStreamInfo(Te,e,t,n,i),this.bufferFragmentData(h,s,l,o)}if(null!=p&&null!=(t=p.samples)&&t.length){const e=se({id:n,frag:s,details:u},p);i.trigger(Y.FRAG_PARSING_METADATA,e)}if(d){const e=se({id:n,frag:s,details:u},d);i.trigger(Y.FRAG_PARSING_USERDATA,e)}}else this.fragmentTracker.removeFragment(s)}_bufferInitSegment(e,t,n,i){if(this.state!==or)return;if(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio)return;const r=t.audio;r.id=ne;const o=e.audioCodec;this.log(`Init audio buffer, container:${r.container}, codecs[level/parsed]=[${o}/${r.codec}]`),o&&1===o.split(",").length&&(r.levelCodec=o),this.hls.trigger(Y.BUFFER_CODECS,t);const a=r.initSegment;if(null!=a&&a.byteLength){const e={type:"audio",frag:n,part:null,chunkMeta:i,parent:n.type,data:a};this.hls.trigger(Y.BUFFER_APPENDING,e)}this.tickImmediate()}loadFragment(e,t,n){const i=this.fragmentTracker.getState(e);var r;if(this.switchingTrack||i===gn||i===vn)if(Be(e))if(null!=(r=t.details)&&r.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=cr;const n=this.mainDetails;n&&n.fragmentStart!==t.details.fragmentStart&&Xi(t.details,n)}else super.loadFragment(e,t,n);else this._loadInitSegment(e,t);else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:n,assocLang:i,characteristics:r,audioCodec:o,channels:a}=this.bufferedTrack;Ut({name:t,lang:n,assocLang:i,characteristics:r,audioCodec:o,channels:a},e,Vt)||(qt(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(Y.AUDIO_TRACK_SWITCHED,ce({},e))}},audioTrackController:class extends Ko{constructor(e){super(e,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:e}=this;e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Y.LEVEL_LOADING,this.onLevelLoading,this),e.on(Y.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(Y.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(Y.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Y.LEVEL_LOADING,this.onLevelLoading,this),e.off(Y.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(Y.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(Y.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:n,groupId:i,details:r}=t,o=this.tracksInGroup[n];if(!o||o.groupId!==i)return void this.warn(`Audio track with id:${n} and group:${i} not found in active group ${null==o?void 0:o.groupId}`);const a=o.details;o.details=t.details,this.log(`Audio track ${n} "${o.name}" lang:${o.lang} group:${i} loaded [${r.startSN}-${r.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,a)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.audioGroups||null,i=this.groupIds;let r=this.currentTrack;if(!n||(null==i?void 0:i.length)!==(null==n?void 0:n.length)||null!=n&&n.some((e=>-1===(null==i?void 0:i.indexOf(e))))){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const e=this.tracks.filter((e=>!n||-1!==n.indexOf(e.groupId)));if(e.length)this.selectDefaultTrack&&!e.some((e=>e.default))&&(this.selectDefaultTrack=!1),e.forEach(((e,t)=>{e.id=t}));else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=e;const t=this.hls.config.audioPreference;if(!r&&t){const n=Gt(t,e,Vt);if(n>-1)r=e[n];else{const e=Gt(t,this.tracks);r=this.tracks[e]}}let i=this.findTrackId(r);-1===i&&r&&(i=this.findTrackId(null));const a={audioTracks:e};this.log(`Updating audio tracks, ${e.length} track(s) found in group(s): ${null==n?void 0:n.join(",")}`),this.hls.trigger(Y.AUDIO_TRACKS_UPDATED,a);const s=this.trackId;if(-1!==i&&-1===s)this.setAudioTrack(i);else if(e.length&&-1===s){var o;const t=new Error(`No audio track selected for current audio group-ID(s): ${null==(o=this.groupIds)?void 0:o.join(",")} track count: ${e.length}`);this.warn(t.message),this.hls.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:t})}}}onError(e,t){!t.fatal&&t.context&&(t.context.type!==J||t.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||this.checkRetry(t))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const i=this.currentTrack;if(i&&Ut(e,i,Vt))return i;const r=Gt(e,this.tracksInGroup,Vt);if(r>-1){const e=this.tracksInGroup[r];return this.setAudioTrack(r),e}if(i){let i=t.loadLevel;-1===i&&(i=t.firstAutoLevel);const r=function(e,t,n,i,r){const o=t[i],a=t.reduce(((e,t,n)=>{const i=t.uri;return(e[i]||(e[i]=[])).push(n),e}),{}),s=a[o.uri];s.length>1&&(i=Math.max.apply(Math,s));const l=o.videoRange,c=o.frameRate,u=o.codecSet.substring(0,4),h=Wt(t,i,(t=>{if(t.videoRange!==l||t.frameRate!==c||t.codecSet.substring(0,4)!==u)return!1;const i=t.audioGroups,o=n.filter((e=>!i||-1!==i.indexOf(e.groupId)));return Gt(e,o,r)>-1}));return h>-1?h:Wt(t,i,(t=>{const i=t.audioGroups,o=n.filter((e=>!i||-1!==i.indexOf(e.groupId)));return Gt(e,o,r)>-1}))}(e,t.levels,n,i,Vt);if(-1===r)return null;t.nextLoadLevel=r}if(e.channels||e.audioCodec){const t=Gt(e,n);if(t>-1)return n[t]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length)return void this.warn(`Invalid audio track id: ${e}`);this.selectDefaultTrack=!1;const n=this.currentTrack,i=t[e],r=i.details&&!i.details.live;if(e===this.trackId&&i===n&&r)return;if(this.log(`Switching to audio-track ${e} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=e,this.currentTrack=i,this.hls.trigger(Y.AUDIO_TRACK_SWITCHING,ce({},i)),r)return;const o=this.switchParams(i.url,null==n?void 0:n.details,i.details);this.loadPlaylist(o)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=e=>{try{this.apply(e,{ot:ta.MANIFEST,su:!this.initialized})}catch(e){this.hls.logger.warn("Could not generate manifest CMCD data.",e)}},this.applyFragmentData=e=>{try{const{frag:t,part:n}=e,i=this.hls.levels[t.level],r=this.getObjectType(t),o={d:1e3*(n||t).duration,ot:r};r!==ta.VIDEO&&r!==ta.AUDIO&&r!=ta.MUXED||(o.br=i.bitrate/1e3,o.tb=this.getTopBandwidth(r)/1e3,o.bl=this.getBufferLength(r));const a=n?this.getNextPart(n):this.getNextFrag(t);null!=a&&a.url&&a.url!==t.url&&(o.nor=a.url),this.apply(e,o)}catch(e){this.hls.logger.warn("Could not generate segment CMCD data.",e)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;null!=n&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||e.sessionId,this.cid=n.contentId,this.useHeaders=!0===n.useHeaders,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Y.MEDIA_DETACHED,this.onMediaDetached,this),e.on(Y.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Y.MEDIA_DETACHED,this.onMediaDetached,this),e.off(Y.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var n,i;this.audioBuffer=null==(n=t.tracks.audio)?void 0:n.buffer,this.videoBuffer=null==(i=t.tracks.video)?void 0:i.buffer}createData(){var e;return{v:1,sf:na.HLS,sid:this.sid,cid:this.cid,pr:null==(e=this.media)?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){se(t,this.createData());const n=t.ot===ta.INIT||t.ot===ta.VIDEO||t.ot===ta.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),null==t.su&&(t.su=this.buffering);const{includeKeys:i}=this;i&&(t=Object.keys(t).reduce(((e,n)=>(i.includes(n)&&(e[n]=t[n]),e)),{}));const r={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),Pa(e.headers,t,r)):e.url=Ma(e.url,t,r)}getNextFrag(e){var t;const n=null==(t=this.hls.levels[e.level])?void 0:t.details;if(n){const t=e.sn-n.startSN;return n.fragments[t+1]}}getNextPart(e){var t,n;const{index:i,fragment:r}=e,o=null==(t=this.hls.levels[r.level])||null==(n=t.details)?void 0:n.partList;if(o){const{sn:e}=r;for(let t=o.length-1;t>=0;t--){const n=o[t];if(n.index===i&&n.fragment.sn===e)return o[t+1]}}}getObjectType(e){const{type:t}=e;return"subtitle"===t?ta.TIMED_TEXT:"initSegment"===e.sn?ta.INIT:"audio"===t?ta.AUDIO:"main"===t?this.hls.audioTracks.length?ta.VIDEO:ta.MUXED:void 0}getTopBandwidth(e){let t,n=0;const i=this.hls;if(e===ta.AUDIO)t=i.audioTracks;else{const e=i.maxAutoLevel,n=e>-1?e+1:i.levels.length;t=i.levels.slice(0,n)}return t.forEach((e=>{e.bitrate>n&&(n=e.bitrate)})),n>0?n:NaN}getBufferLength(e){const t=this.media,n=e===ta.AUDIO?this.audioBuffer:this.videoBuffer;if(!n||!t)return NaN;return 1e3*On.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,n=e||this.config.loader;return class{constructor(e){this.loader=void 0,this.loader=new n(e)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(e,n,i){t(e),this.loader.load(e,n,i)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(e){this.loader=void 0,this.loader=new n(e)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(e,n,i){t(e),this.loader.load(e,n,i)}}}},contentSteeringController:class extends ue{constructor(e){super("content-steering",e.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Y.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Y.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce(((e,t)=>(-1===e.indexOf(t.pathwayId)&&e.push(t.pathwayId),e)),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=1e3*this.timeToLoad-(performance.now()-this.updated);if(e>0)return void this.scheduleRefresh(this.uri,e)}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){-1!==this.reloadTimer&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter((t=>t!==e)))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:n}=t;null!==n&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:n}=t;if((null==n?void 0:n.action)===ln&&n.flags===dn){const e=this.levels;let i=this._pathwayPriority,r=this.pathwayId;if(t.context){const{groupId:n,pathwayId:i,type:o}=t.context;n&&e?r=this.getPathwayForGroupId(n,o,r):i&&(r=i)}r in this.penalizedPathways||(this.penalizedPathways[r]=performance.now()),!i&&e&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==r),n.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${r} levels: ${e?e.length:e} priorities: ${$t(i)} penalized: ${$t(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(0===t.length){const n=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),t=this.getLevelsForPathway(n),this.pathwayId=n}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return null===this.levels?[]:this.levels.filter((t=>e===t.pathwayId))}updatePathwayPriority(e){let t;this._pathwayPriority=e;const n=this.penalizedPathways,i=performance.now();Object.keys(n).forEach((e=>{i-n[e]>3e5&&delete n[e]}));for(let i=0;i0){this.log(`Setting Pathway to "${r}"`),this.pathwayId=r,Ui(t),this.hls.trigger(Y.LEVELS_UPDATED,{levels:t});const e=this.hls.levels[o];a&&e&&this.levels&&(e.attrs["STABLE-VARIANT-ID"]!==a.attrs["STABLE-VARIANT-ID"]&&e.bitrate!==a.bitrate&&this.log(`Unstable Pathways change from bitrate ${a.bitrate} to ${e.bitrate}`),this.hls.nextLoadLevel=o);break}}}getPathwayForGroupId(e,t,n){const i=this.getLevelsForPathway(n).concat(this.levels||[]);for(let n=0;n{const{ID:r,"BASE-ID":o,"URI-REPLACEMENT":a}=e;if(t.some((e=>e.pathwayId===r)))return;const s=this.getLevelsForPathway(o).map((e=>{const t=new Gn(e.attrs);t["PATHWAY-ID"]=r;const o=t.AUDIO&&`${t.AUDIO}_clone_${r}`,s=t.SUBTITLES&&`${t.SUBTITLES}_clone_${r}`;o&&(n[t.AUDIO]=o,t.AUDIO=o),s&&(i[t.SUBTITLES]=s,t.SUBTITLES=s);const l=Aa(e.uri,t["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",a),c=new Ft({attrs:t,audioCodec:e.audioCodec,bitrate:e.bitrate,height:e.height,name:e.name,url:l,videoCodec:e.videoCodec,width:e.width});if(e.audioGroups)for(let t=1;t{this.log(`Loaded steering manifest: "${i}"`);const o=e.data;if(1!==(null==o?void 0:o.VERSION))return void this.log(`Steering VERSION ${o.VERSION} not supported!`);this.updated=performance.now(),this.timeToLoad=o.TTL;const{"RELOAD-URI":a,"PATHWAY-CLONES":s,"PATHWAY-PRIORITY":l}=o;if(a)try{this.uri=new self.URL(a,i).href}catch(e){return this.enabled=!1,void this.log(`Failed to parse Steering Manifest RELOAD-URI: ${a}`)}this.scheduleRefresh(this.uri||n.url),s&&this.clonePathways(s);const c={steeringManifest:o,url:i.toString()};this.hls.trigger(Y.STEERING_MANIFEST_LOADED,c),l&&this.updatePathwayPriority(l)},onError:(e,t,n,i)=>{if(this.log(`Error loading steering manifest: ${e.code} ${e.text} (${t.url})`),this.stopLoad(),410===e.code)return this.enabled=!1,void this.log(`Steering manifest ${t.url} no longer available`);let r=1e3*this.timeToLoad;if(429!==e.code)this.scheduleRefresh(this.uri||t.url,r);else{const e=this.loader;if("function"==typeof(null==e?void 0:e.getResponseHeader)){const t=e.getResponseHeader("Retry-After");t&&(r=1e3*parseFloat(t))}this.log(`Steering manifest ${t.url} rate limited`)}},onTimeout:(e,t,n)=>{this.log(`Timeout loading steering manifest (${t.url})`),this.scheduleRefresh(this.uri||t.url)}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(r,s,l)}scheduleRefresh(e,t=1e3*this.timeToLoad){this.clearTimeout(),this.reloadTimer=self.setTimeout((()=>{var t;const n=null==(t=this.hls)?void 0:t.media;!n||n.ended?this.scheduleRefresh(e,1e3*this.timeToLoad):this.loadSteeringManifest(e)}),t)}},interstitialsController:class extends ue{constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const e=this.currentTime;if(void 0===e||this.playbackDisabled)return;const t=e-this.timelinePos;if(Math.abs(t)<1/7056e5)return;const n=t<=-.01;this.timelinePos=e,this.bufferedPos=e;const i=this.playingItem;if(!i)return void this.checkBuffer();if(n){this.schedule.resetErrorsInRange(e,e-t)&&this.updateSchedule()}if(this.checkBuffer(),n&&e=i.end){var r;const e=this.schedule.findItemIndexAtTime(this.timelinePos);if(!this.isInterstitial(i)&&null!=(r=this.media)&&r.paused&&(this.shouldPlay=!1),!n){const t=this.findItemIndex(i);if(e>t){const n=this.schedule.findJumpRestrictedIndex(t+1,e);if(n>t)return void this.setSchedulePosition(n)}}return void this.setSchedulePosition(e)}const o=this.playingAsset;if(!o){if(this.playingLastItem&&this.isInterstitial(i)){const t=i.event.assetList[0];t&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(e,t))}return}const a=o.timelineStart,s=o.duration||0;(n&&e=a+s)&&this.setScheduleToAssetAtTime(e,o)},this.onTimeupdate=()=>{const e=this.currentTime;if(void 0===e||this.playbackDisabled)return;if(!(e>this.timelinePos))return;this.timelinePos=e,e>this.bufferedPos&&this.checkBuffer();const t=this.playingItem;if(!t||this.playingLastItem)return;if(e>=t.end){this.timelinePos=t.end;const e=this.findItemIndex(t);this.setSchedulePosition(e+1)}const n=this.playingAsset;if(!n)return;e>=n.timelineStart+(n.duration||0)&&this.setScheduleToAssetAtTime(e,n)},this.onScheduleUpdate=(e,t)=>{const n=this.schedule,i=this.playingItem,r=n.events||[],o=n.items||[],a=n.durations,s=e.map((e=>e.identifier)),l=!(!r.length&&!s.length);(l||t)&&this.log(`INTERSTITIALS_UPDATED (${r.length}): ${r}\nSchedule: ${o.map((e=>Xa(e)))} pos: ${this.timelinePos}`),s.length&&this.log(`Removed events ${s}`),this.playerQueue.forEach((e=>{if(e.interstitial.appendInPlace){const t=e.assetItem.timelineStart,n=e.timelineOffset-t;if(n)try{e.timelineOffset=t}catch(i){Math.abs(n)>$a&&this.warn(`${i} ("${e.assetId}" ${e.timelineOffset}->${t})`)}}}));let c=null;if(i){const e=this.updateItem(i,this.timelinePos);this.itemsMatch(i,e)&&(this.playingItem=e,this.waitingItem=this.endedItem=null,c=()=>this.trimInPlace(e,i))}else this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const u=this.bufferingItem;if(u){const e=this.updateItem(u,this.bufferedPos);this.itemsMatch(u,e)?(this.bufferingItem=e,c||(c=()=>this.trimInPlace(e,u))):u.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(u.event,null))}if(e.forEach((e=>{e.assetList.forEach((e=>{this.clearAssetPlayer(e.identifier,null)}))})),l||t){if(this.hls.trigger(Y.INTERSTITIALS_UPDATED,{events:r.slice(0),schedule:o.slice(0),durations:a,removedIds:s}),this.isInterstitial(i)&&s.includes(i.event.identifier))return this.warn(`Interstitial "${i.event.identifier}" removed while playing`),void this.primaryFallback(i.event);c&&c(),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Qa(e),this.schedule=new Ya(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e.on(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(Y.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(Y.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(Y.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(Y.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(Y.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(Y.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(Y.BUFFER_APPENDED,this.onBufferAppended,this),e.on(Y.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(Y.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(Y.MEDIA_ENDED,this.onMediaEnded,this),e.on(Y.ERROR,this.onError,this),e.on(Y.DESTROYING,this.onDestroying,this)}unregisterListeners(){const e=this.hls;e&&(e.off(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(Y.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(Y.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(Y.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(Y.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(Y.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(Y.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(Y.BUFFER_CODECS,this.onBufferCodecs,this),e.off(Y.BUFFER_APPENDED,this.onBufferAppended,this),e.off(Y.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(Y.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(Y.MEDIA_ENDED,this.onMediaEnded,this),e.off(Y.ERROR,this.onError,this),e.off(Y.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;null==(e=this.getBufferingPlayer())||e.resumeBuffering()}pauseBuffering(){var e;null==(e=this.getBufferingPlayer())||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.manager=null,this.hls=this.HlsPlayerClass=this.schedule=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){Da(e,"play",this.onPlay),Da(e,"pause",this.onPause),Da(e,"seeking",this.onSeeking),Da(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;Ta(n,"seeking",this.onSeeking),Ta(n,"timeupdate",this.onTimeupdate),Ta(n,"play",this.onPlay),Ta(n,"pause",this.onPause)}onMediaAttached(e,t){const n=this.effectivePlayingItem,i=this.detachedData;if(this.detachedData=null,null===n)this.checkStart();else if(!i){this.clearScheduleState();const e=this.findItemIndex(n);this.setSchedulePosition(e)}}clearScheduleState(){this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){const n=!!t.transferMedia,i=this.media;if(this.media=null,!n&&(i&&this.removeMediaListeners(i),this.detachedData)){const e=this.getBufferingPlayer();e&&(this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,e.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.manager){if(!this.hls)return null;const e=this,t=()=>e.bufferingItem||e.waitingItem,n=t=>t?e.getAssetPlayer(t.identifier):t,i=(t,i,r,a,s)=>{if(t){let l=t[i].start;const c=t.event;if(c){if("playout"===i||c.timelineOccupancy!==Ha.Point){const e=n(r);(null==e?void 0:e.interstitial)===c&&(l+=e.assetItem.startOffset+e[s])}}else{l+=("bufferedPos"===a?o():e[a])-t.start}return l}return 0},r=(t,n)=>{if(0!==t&&"primary"!==n&&e.schedule.length){var i;const r=e.schedule.findItemIndexAtTime(t),o=null==(i=e.schedule.items)?void 0:i[r];if(o){return t+(o[n].start-o.start)}}return t},o=()=>{const t=e.bufferedPos;return t===Number.MAX_VALUE?a("primary"):Math.max(t,0)},a=t=>{var n;return null!=(n=e.primaryDetails)&&n.live?e.primaryDetails.edge:e.schedule.durations[t]},s=(t,r)=>{var o,a;const s=e.effectivePlayingItem;if(null!=s&&null!=(o=s.event)&&o.restrictions.skip)return;e.log(`seek to ${t} "${r}"`);const l=e.effectivePlayingItem,c=e.schedule.findItemIndexAtTime(t,r),u=null==(a=e.schedule.items)?void 0:a[c],h=e.getBufferingPlayer(),d=null==h?void 0:h.interstitial,p=null==d?void 0:d.appendInPlace,f=l&&e.itemsMatch(l,u);if(l&&(p||f)){const o=n(e.playingAsset),a=(null==o?void 0:o.media)||e.primaryMedia;if(a){const n="primary"===r?a.currentTime:i(l,r,e.playingAsset,"timelinePos","currentTime"),s=t-n,c=(p?n:a.currentTime)+s;if(c>=0&&(!o||p||c<=o.duration))return void(a.currentTime=c)}}if(u){let n=t;if("primary"!==r){const e=t-u[r].start;n=u.start+e}const i=!e.isInterstitial(u);if(e.isInterstitial(l)&&!l.event.appendInPlace||!i&&!u.event.appendInPlace){if(l){const o=e.findItemIndex(l);if(c>o){const t=e.schedule.findJumpRestrictedIndex(o+1,c);if(t>o)return void e.setSchedulePosition(t)}let a=0;if(i)e.timelinePos=n,e.checkBuffer();else{var g;const e=null==u||null==(g=u.event)?void 0:g.assetList;if(e){const n=t-(u[r]||u).start;for(let t=e.length;t--;){const i=e[t];if(i.duration&&n>=i.startOffset&&n{const n=e.effectivePlayingItem;if(e.isInterstitial(n))return n;const i=t();return e.isInterstitial(i)?i:null},c={get currentTime(){const t=l(),n=e.effectivePlayingItem;return n&&n===t?i(n,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-n.playout.start:0},set currentTime(t){const n=l(),i=e.effectivePlayingItem;i&&i===n&&s(t+i.playout.start,"playout")},get duration(){const e=l();return e?e.playout.end-e.playout.start:0},get assetPlayers(){var t;const n=null==(t=l())?void 0:t.event.assetList;return n?n.map((t=>e.getAssetPlayer(t.identifier))):[]},get playingIndex(){var t;const n=null==(t=l())?void 0:t.event;return n&&e.effectivePlayingAsset?n.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return l()}};this.manager={get events(){var t,n;return(null==(t=e.schedule)||null==(n=t.events)?void 0:n.slice(0))||[]},get schedule(){var t,n;return(null==(t=e.schedule)||null==(n=t.items)?void 0:n.slice(0))||[]},get interstitialPlayer(){return l()?c:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const n=t();return e.findItemIndex(n)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const t=e.effectivePlayingItem;return e.findItemIndex(t)},primary:{get bufferedEnd(){return o()},get currentTime(){const t=e.timelinePos;return t>0?t:0},set currentTime(e){s(e,"primary")},get duration(){return a("primary")},get seekableStart(){var t;return(null==(t=e.primaryDetails)?void 0:t.fragmentStart)||0}},integrated:{get bufferedEnd(){return i(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return i(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(e){s(e,"integrated")},get duration(){return a("integrated")},get seekableStart(){var t;return r((null==(t=e.primaryDetails)?void 0:t.fragmentStart)||0,"integrated")}},skip:()=>{const t=e.effectivePlayingItem,n=null==t?void 0:t.event;if(n&&!n.restrictions.skip){const i=e.findItemIndex(t);if(n.appendInPlace){const e=t.playout.start+t.event.duration;s(e+.001,"playout")}else e.advanceAfterAssetEnded(n,i,1/0)}}}}return this.manager}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;const t=this.playingItem,n=null==(e=this.schedule)?void 0:e.items;return!!(this.playbackStarted&&t&&n)&&this.findItemIndex(t)===n.length-1}get playbackStarted(){return null!==this.effectivePlayingItem}get currentTime(){var e,t,n;if(null===this.mediaSelection)return;const i=this.waitingItem||this.playingItem;if(this.isInterstitial(i)&&!i.event.appendInPlace)return;let r=this.media;!r&&null!=(e=this.bufferingItem)&&null!=(t=e.event)&&t.appendInPlace&&(r=this.primaryMedia);const o=null==(n=r)?void 0:n.currentTime;return void 0!==o&&G(o)?o:void 0}get primaryMedia(){var e;return this.media||(null==(e=this.detachedData)?void 0:e.media)||null}isInterstitial(e){return!(null==e||!e.event)}retreiveMediaSource(e,t){const n=this.getAssetPlayer(e);n&&this.transferMediaFromPlayer(n,t)}transferMediaFromPlayer(e,t){const n=e.interstitial.appendInPlace,i=e.media;if(n&&i===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&i)return void(this.detachedData={media:i});const n=e.transferMedia();this.log(`transfer MediaSource from ${e} ${$t(n)}`),this.detachedData=n}else t&&i&&(this.shouldPlay||(this.shouldPlay=!i.paused))}transferMediaTo(e,t){var n,i;if(e.media===t)return;let r=null;const o=this.hls,a=e!==o,s=a&&e.interstitial.appendInPlace,l=null==(n=this.detachedData)?void 0:n.mediaSource;let c;if(o.media)s&&(r=o.transferMedia(),this.detachedData=r),c="Primary";else if(l){const e=this.getBufferingPlayer();e?(r=e.transferMedia(),c=`${e}`):c="detached MediaSource"}else c="detached media";if(!r)if(l)r=this.detachedData,this.log(`using detachedData: MediaSource ${$t(r)}`);else if(!this.detachedData||o.media===t){const e=this.playerQueue;e.length>1&&e.forEach((e=>{if(a&&e.interstitial.appendInPlace!==s){const t=e.interstitial;this.clearInterstitial(e.interstitial,null),t.appendInPlace=!1,t.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${t}`)}})),this.hls.detachMedia(),this.detachedData={media:t}}const u=r&&"mediaSource"in r&&"closed"!==(null==(i=r.mediaSource)?void 0:i.readyState),h=u&&r?r:t;if(this.log(`${u?"transfering MediaSource":"attaching media"} to ${a?e:"Primary"} from ${c}`),h===r){const t=a&&e.assetId===this.schedule.assetIdAtEnd;h.overrides={duration:this.schedule.duration,endOfStream:!a||t,cueRemoval:!a}}e.attachMedia(h)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=e.events;if(!t||this.playbackDisabled||!this.media)return;-1===this.bufferedPos&&(this.bufferedPos=0);const n=this.timelinePos,i=this.effectivePlayingItem;if(-1===n){const n=this.hls.startPosition;if(this.timelinePos=n,t.length&&t[0].cue.pre){const n=e.findEventIndex(t[0].identifier);this.setSchedulePosition(n)}else if(n>=0||!this.primaryLive){const t=this.timelinePos=n>0?n:0,i=e.findItemIndexAtTime(t);this.setSchedulePosition(i)}}else if(i&&!this.playingItem){const t=e.findItemIndex(i);this.setSchedulePosition(t)}}advanceAfterAssetEnded(e,t,n){const i=Va(e,n);if(e.isAssetPastPlayoutLimit(i)){const n=this.schedule.items;if(n){const i=t+1;if(i>=n.length)return void this.setSchedulePosition(-1);const r=e.resumeTime;this.timelinePos=0?n[e]:null,r=this.playingItem,o=this.playingLastItem;if(this.isInterstitial(r)){var a;const l=r.event,c=this.playingAsset,u=null==c?void 0:c.identifier,h=u?this.getAssetPlayer(u):null;if(h&&u&&(!this.eventItemsMatch(r,i)||void 0!==t&&u!==(null==(a=l.assetList)?void 0:a[t].identifier))){var s;const t=l.findAssetIndex(c);this.log(`INTERSTITIAL_ASSET_ENDED ${t+1}/${l.assetList.length} ${Wa(c)}`),this.endedAsset=c,this.playingAsset=null,this.hls.trigger(Y.INTERSTITIAL_ASSET_ENDED,{asset:c,assetListIndex:t,event:l,schedule:n.slice(0),scheduleIndex:e,player:h}),this.retreiveMediaSource(u,i),!h.media||null!=(s=this.detachedData)&&s.mediaSource||h.detachMedia()}if(!this.eventItemsMatch(r,i)&&(this.endedItem=r,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${l} ${Xa(r)}`),l.hasPlayed=!0,this.hls.trigger(Y.INTERSTITIAL_ENDED,{event:l,schedule:n.slice(0),scheduleIndex:e}),l.cue.once)){this.updateSchedule();const e=this.schedule.items;if(i&&e){const n=this.schedule.findItemIndex(i);this.advanceSchedule(n,e,t,r,o)}return}}this.advanceSchedule(e,n,t,r,o)}advanceSchedule(e,t,n,i,r){const o=e>=0?t[e]:null,a=this.primaryMedia,s=this.playerQueue;if(s.length&&s.forEach((t=>{const n=t.interstitial,i=this.schedule.findEventIndex(n.identifier);(ie+1)&&this.clearInterstitial(n,o)})),this.isInterstitial(o)){this.timelinePos=Math.min(Math.max(this.timelinePos,o.start),o.end);const r=o.event;if(void 0===n){const t=Va(r,(n=this.schedule.findAssetIndex(r,this.timelinePos))-1);if(r.isAssetPastPlayoutLimit(t))return void this.advanceAfterAssetEnded(r,e,n);n=t}const s=this.waitingItem;this.assetsBuffered(o,a)||this.setBufferingItem(o);let l=this.preloadAssets(r,n);if(this.eventItemsMatch(o,s||i)||(this.waitingItem=o,this.log(`INTERSTITIAL_STARTED ${Xa(o)} ${r.appendInPlace?"append in place":""}`),this.hls.trigger(Y.INTERSTITIAL_STARTED,{event:r,schedule:t.slice(0),scheduleIndex:e})),!r.assetListLoaded)return void this.log(`Waiting for ASSET-LIST to complete loading ${r}`);if(r.assetListLoader&&(r.assetListLoader.destroy(),r.assetListLoader=void 0),!a)return void this.log(`Waiting for attachMedia to start Interstitial ${r}`);this.waitingItem=this.endedItem=null,this.playingItem=o;const c=r.assetList[n];if(!c){const i=t[e+1],o=this.media;return i&&o&&!this.isInterstitial(i)&&o.currentTime=e.end)&&(n=this.getPrimaryResumption(e,t),this.timelinePos=n),this.attachPrimary(n,e)}if(!n)return;const r=this.schedule.items;r&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${Xa(e)}`),this.hls.trigger(Y.INTERSTITIALS_PRIMARY_RESUMED,{schedule:r.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const n=e.start;if(this.primaryLive){const e=this.primaryDetails;if(0===t)return this.hls.startPosition;if(e&&(ne.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);if(null!=t&&t.hls)return t.hls.bufferedToEnd;return On.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,n){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const i=this.primaryMedia;if(!i)return;const r=this.hls;r.media?this.checkBuffer():(this.transferMediaTo(r,i),n&&this.startLoadingPrimaryAt(e,n)),n||(this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}startLoadingPrimaryAt(e,t){var n;const i=this.hls;!i.loadingEnabled||!i.media||Math.abs(((null==(n=i.mainForwardBufferInfo)?void 0:n.start)||i.media.currentTime)-e)>.5?i.startLoad(e,t):i.bufferingEnabled||i.resumeBuffering()}onManifestLoading(){this.stopLoad(),this.schedule.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(Y.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(Y.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(-1===t.level)return;const n=this.hls.levels[t.level],i=ce(ce({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=i,this.schedule.parseInterstitialDateRanges(i,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const n=this.hls.audioTracks[t.id],i=this.mediaSelection;if(!i)return void(this.altSelection=ce(ce({},this.altSelection),{},{audio:n}));const r=ce(ce({},i),{},{audio:n});this.mediaSelection=r}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],i=this.mediaSelection;if(!i)return void(this.altSelection=ce(ce({},this.altSelection),{},{subtitles:n}));const r=ce(ce({},i),{},{subtitles:n});this.mediaSelection=r}onAudioTrackSwitching(e,t){const n=Kt(t);this.playerQueue.forEach((e=>e.hls.setAudioOption(t)||e.hls.setAudioOption(n)))}onSubtitleTrackSwitch(e,t){const n=Kt(t);this.playerQueue.forEach((e=>e.hls.setSubtitleOption(t)||-1!==t.id&&e.hls.setSubtitleOption(n)))}onBufferCodecs(e,t){const n=t.tracks;n&&(this.requiredTracks=n)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const n=this.playingItem;if(n&&!this.itemsMatch(n,this.bufferingItem)&&!this.isInterstitial(n)){const e=this.timelinePos;this.bufferedPos=e,this.checkBuffer()}}onBufferedToEnd(e){const t=this.schedule.events;if(this.bufferedPos.25){e.event.assetList.forEach(((t,n)=>{e.event.isAssetPastPlayoutLimit(n)&&this.clearAssetPlayer(t.identifier,null)}));const t=e.end+.25,n=On.bufferInfo(this.primaryMedia,t,0);(n.end>t||(n.nextStart||0)>t)&&(this.attachPrimary(t,null),this.flushFrontBuffer(t))}}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var n;return!!t&&(e===t||e.event.identifier===(null==(n=t.event)?void 0:n.identifier))}findItemIndex(e,t){return e?this.schedule.findItemIndex(e,t):-1}updateSchedule(){const e=this.mediaSelection;e&&this.schedule.updateSchedule(e,[])}checkBuffer(e){const t=this.schedule.items;if(!t)return;const n=On.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=n.len<1),this.updateBufferedPos(n.end,t,e)}updateBufferedPos(e,t,n){const i=this.schedule,r=this.bufferingItem;if(this.bufferedPos>e)return;if(1===t.length&&this.itemsMatch(t[0],r))return void(this.bufferedPos=e);const o=this.playingItem,a=this.findItemIndex(o);let s=i.findItemIndexAtTime(e);if(this.bufferedPos=r.end||null!=(l=o.event)&&l.appendInPlace&&e+.01>=o.start)&&(s=i),i-a>1&&!1===(null==r||null==(c=r.event)?void 0:c.appendInPlace))return;if(this.bufferedPos=e,s>n&&s>a)this.bufferedToItem(o);else{const t=this.primaryDetails;this.primaryLive&&t&&e>t.edge-t.targetduration&&o.start{const n=this.getAssetPlayer(e.identifier);return!(null!=n&&n.bufferedInPlaceToEnd(t))}))}setBufferingItem(e){const t=this.bufferingItem,n=this.schedule;if(this.itemsMatch(e,t))this.bufferingItem!==e&&(this.bufferingItem=e);else{const{items:i,events:r}=n;if(!i||!r)return t;const o=this.isInterstitial(e),a=this.getBufferingPlayer();this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos));const s=a?a.remaining:t?t.end-this.timelinePos:0;this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${Xa(e)}`+(t?` (${s.toFixed(2)} remaining)`:"")),this.playbackDisabled||(o?e.event.assetList.forEach((e=>{const t=this.getAssetPlayer(e.identifier);t&&t.resumeBuffering()})):(this.hls.resumeBuffering(),this.playerQueue.forEach((e=>e.pauseBuffering())))),this.hls.trigger(Y.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:r.slice(0),schedule:i.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}return t}bufferedToItem(e,t=0){const n=this.setBufferingItem(e);if(!this.playbackDisabled)if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(null!==n){this.bufferingAsset=null;const t=this.detachedData;if(t)if(t.mediaSource){const t=!0;this.attachPrimary(e.start,e,t)}else this.preloadPrimary(e);else this.preloadPrimary(e)}}preloadPrimary(e){const t=this.findItemIndex(e),n=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(n)}bufferedToEvent(e,t){const n=e.event,i=0===n.assetList.length&&!n.assetListLoader,r=n.cue.once;if(i||!r){const e=this.preloadAssets(n,t);if(null!=e&&e.interstitial.appendInPlace){const i=n.assetList[t],r=this.primaryMedia;i&&r&&this.bufferAssetPlayer(e,r)}}}preloadAssets(e,t){const n=e.assetUrl,i=e.assetList.length,r=0===i&&!e.assetListLoader,o=e.cue.once;if(r){const r=e.timelineStart;if(e.appendInPlace){var a;const t=this.playingItem;this.isInterstitial(t)||(null==t||null==(a=t.nextEvent)?void 0:a.identifier)!==e.identifier||this.flushFrontBuffer(r+.25)}let o,s=0;if(!this.playingItem&&this.primaryLive&&(s=this.hls.startPosition,-1===s&&(s=this.hls.liveSyncPosition||0)),s&&!e.cue.pre&&!e.cue.post){const e=s-r;e>0&&(o=Math.round(1e3*e)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:i} ${e}${o?` live-start: ${s} start-offset: ${o}`:""}`),n)return this.createAsset(e,0,0,r,e.duration,n);const l=this.assetListLoader.loadAssetList(e,o);l&&(e.assetListLoader=l)}else if(!o&&i){for(let n=t;n{this.hls.trigger(Y.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:t})}))}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let n=0;n1){const n=t.duration;n&&e{if(i.live){const t=new Error(`Interstitials MUST be VOD assets ${e}`),i={fatal:!0,type:W.OTHER_ERROR,details:q.INTERSTITIAL_ASSET_ITEM_ERROR,error:t};return void this.handleAssetItemError(i,e,this.schedule.findEventIndex(e.identifier),n,t.message)}const r=i.edge-i.fragmentStart,o=t.duration;(null===o||r>o)&&(this.log(`Interstitial asset "${u}" duration change ${o} > ${r}`),t.duration=r,this.updateSchedule())};p.on(Y.LEVEL_UPDATED,((e,{details:t})=>f(t))),p.on(Y.LEVEL_PTS_UPDATED,((e,{details:t})=>f(t)));const g=(e,t)=>{const n=this.getAssetPlayer(u);if(n&&t.tracks){n.off(Y.BUFFER_CODECS,g),n.tracks=t.tracks;const e=this.primaryMedia;this.bufferingAsset===n.assetItem&&e&&!n.media&&this.bufferAssetPlayer(n,e)}};p.on(Y.BUFFER_CODECS,g);const m=()=>{var n;const i=this.getAssetPlayer(u);if(this.log(`buffered to end of asset ${i}`),!i)return;const r=this.schedule.findEventIndex(e.identifier),o=null==(n=this.schedule.items)?void 0:n[r];if(this.isInterstitial(o)){const n=e.findAssetIndex(t),i=Va(e,n);if(e.isAssetPastPlayoutLimit(i)){var a;const e=null==(a=this.schedule.items)?void 0:a[r+1];e&&this.bufferedToItem(e)}else this.bufferedToItem(o,i)}};p.on(Y.BUFFERED_TO_END,m);const v=t=>()=>{if(!this.getAssetPlayer(u))return;this.shouldPlay=!0;const n=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,n,t)};return p.once(Y.MEDIA_ENDED,v(n)),p.once(Y.PLAYOUT_LIMIT_REACHED,v(1/0)),p.on(Y.ERROR,((t,i)=>{const r=this.getAssetPlayer(u);if(i.details!==q.BUFFER_STALLED_ERROR)this.handleAssetItemError(i,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${i.error} ${e}`);else if(null!=r&&r.media){const t=r.currentTime,n=r.duration-t;t&&e.appendInPlace&&n/r.media.playbackRate<.5?(this.log(`Advancing buffer past end of asset ${u} ${e} at ${r.media.currentTime}`),m()):(this.warn(`Stalled at ${t} of ${t+n} in asset ${u} ${e}`),this.onTimeupdate(),this.checkBuffer(!0))}})),p.on(Y.DESTROYING,(()=>{if(!this.getAssetPlayer(u))return;const t=new Error(`Asset player destroyed unexpectedly ${u}`),i={fatal:!0,type:W.OTHER_ERROR,details:q.INTERSTITIAL_ASSET_ITEM_ERROR,error:t};this.handleAssetItemError(i,e,this.schedule.findEventIndex(e.identifier),n,t.message)})),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${Wa(t)}`),this.hls.trigger(Y.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:p}),p}clearInterstitial(e,t){e.assetList.forEach((e=>{this.clearAssetPlayer(e.identifier,t)})),e.reset()}resetAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);if(-1!==t){this.log(`reset asset player "${e}" after error`);const n=this.playerQueue[t];this.transferMediaFromPlayer(n,null),n.resetDetails()}}clearAssetPlayer(e,t){const n=this.getAssetPlayerQueueIndex(e);if(-1!==n){this.log(`clear asset player "${e}" toSegment: ${t?Xa(t):t}`);const i=this.playerQueue[n];this.transferMediaFromPlayer(i,t),this.playerQueue.splice(n,1),i.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,n,i,r){const{interstitial:o,assetItem:a,assetId:s}=e,l=o.assetList.length,c=this.playingAsset;this.endedAsset=null,this.playingAsset=a,c&&c.identifier===s||(c&&(this.clearAssetPlayer(c.identifier,n[i]),delete c.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${l} ${Wa(a)}`),this.hls.trigger(Y.INTERSTITIAL_ASSET_STARTED,{asset:a,assetListIndex:t,event:o,schedule:n.slice(0),scheduleIndex:i,player:e})),this.bufferAssetPlayer(e,r)}bufferAssetPlayer(e,t){var n,i;const{interstitial:r,assetItem:o}=e,a=this.schedule.findEventIndex(r.identifier),s=null==(n=this.schedule.items)?void 0:n[a];if(!s)return;this.setBufferingItem(s),this.bufferingAsset=o;const l=this.getBufferingPlayer();if(l===e)return;const c=r.appendInPlace;if(c&&!1===(null==l?void 0:l.interstitial.appendInPlace))return;const u=(null==l?void 0:l.tracks)||(null==(i=this.detachedData)?void 0:i.tracks)||this.requiredTracks;if(c&&o!==this.playingAsset){if(!e.tracks)return;if(u&&!ye(u,e.tracks)){const t=new Error(`Asset ${Wa(o)} SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(u)}')`),n={fatal:!0,type:W.OTHER_ERROR,details:q.INTERSTITIAL_ASSET_ITEM_ERROR,error:t},i=r.findAssetIndex(o);return void this.handleAssetItemError(n,r,a,i,t.message)}}this.transferMediaTo(e,t)}handleAssetItemError(e,t,n,i,r){if(e.details===q.BUFFER_STALLED_ERROR)return;const o=t.assetList[i];this.warn(`INTERSTITIAL_ASSET_ERROR ${o?Wa(o):o} ${e.error}`);const a=null==o?void 0:o.identifier,s=this.getAssetPlayerQueueIndex(a),l=this.playerQueue[s]||null,c=this.schedule.items,u=se({},e,{fatal:!1,errorAction:fn(!0),asset:o,assetListIndex:i,event:t,schedule:c,scheduleIndex:n,player:l});if(this.hls.trigger(Y.INTERSTITIAL_ASSET_ERROR,u),!e.fatal)return;const h=this.playingAsset,d=new Error(r);if(o&&(this.clearAssetPlayer(a,null),o.error=d),t.assetList.some((e=>!e.error))){if(t.appendInPlace){for(let e=i;e"} error: ${e.error}`);let i=this.timelinePos;-1===i&&(i=this.hls.startPosition);const r=this.updateItem(n,i);this.itemsMatch(n,r)&&this.clearInterstitial(e,null),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t));const o=this.schedule.findItemIndexAtTime(i);this.setSchedulePosition(o)}else this.checkStart()}onAssetListLoaded(e,t){var n;const i=t.event,r=i.identifier,o=t.assetListResponse.ASSETS;if(!this.schedule.hasEvent(r))return;const a=i.timelineStart,s=i.duration;let l=0;o.forEach(((e,t)=>{const n=parseFloat(e.DURATION);this.createAsset(i,t,l,a+l,n,e.URI),l+=n})),i.duration=l,this.log(`Loaded asset-list with duration: ${l} (was: ${s}) ${i}`);const c=this.waitingItem,u=(null==c?void 0:c.event.identifier)===r;this.updateSchedule();const h=null==(n=this.bufferingItem)?void 0:n.event;if(u){var d;const e=this.schedule.findEventIndex(r),t=null==(d=this.schedule.items)?void 0:d[e];if(t){if(!this.playingItem&&this.timelinePos>t.end){if(this.schedule.findItemIndexAtTime(this.timelinePos)!==e)return i.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${i}`),void this.primaryFallback(i)}this.setBufferingItem(t)}this.setSchedulePosition(e)}else if((null==h?void 0:h.identifier)===r&&h.appendInPlace){const e=i.assetList[0],t=this.getAssetPlayer(e.identifier),n=this.primaryMedia;e&&t&&n&&this.bufferAssetPlayer(t,n)}}onError(e,t){switch(t.details){case q.ASSET_LIST_PARSING_ERROR:case q.ASSET_LIST_LOAD_ERROR:case q.ASSET_LIST_LOAD_TIMEOUT:{const e=t.interstitial;e&&this.primaryFallback(e);break}case q.BUFFER_STALLED_ERROR:this.onTimeupdate(),this.checkBuffer(!0)}}}});function il(e){return e&&"object"==typeof e?Array.isArray(e)?e.map(il):Object.keys(e).reduce(((t,n)=>(t[n]=il(e[n]),t)),{}):e}function rl(e,t){const n=e.loader;if(n!==Xs&&n!==tl)t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1;else{(function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(e){}return!1})()&&(e.loader=Xs,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}}class ol extends In{constructor(e,t){super("gap-controller",e.logger),this.hls=null,this.fragmentTracker=null,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var e;null!=(e=this.media)&&e.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{var e;this.hls&&(this.ended=(null==(e=this.media)?void 0:e.currentTime)||1,this.hls.trigger(Y.MEDIA_ENDED,{stalled:!1}))},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;e&&(e.on(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Y.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Y.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(100),this.mediaSource=t.mediaSource;const n=this.media=t.media;Ta(n,"playing",this.onMediaPlaying),Ta(n,"waiting",this.onMediaWaiting),Ta(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(Da(n,"playing",this.onMediaPlaying),Da(n,"waiting",this.onMediaWaiting),Da(n,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var e;if(null==(e=this.media)||!e.readyState||!this.hasBuffered)return;const t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}poll(e,t){var n,i;const r=null==(n=this.hls)?void 0:n.config;if(!r)return;const o=this.media;if(!o)return;const{seeking:a}=o,s=this.seeking&&!a,l=!this.seeking&&a,c=o.paused&&!a||o.ended||0===o.playbackRate;if(this.seeking=a,e!==t)return t&&(this.ended=0),this.moved=!0,a||(this.nudgeRetry=0,r.nudgeOnVideoHole&&!c&&e>t&&this.nudgeOnVideoHole(e,t)),void(0===this.waiting&&this.stallResolved(e));if(l||s)return void(s&&this.stallResolved(e));if(c)return this.nudgeRetry=0,this.stallResolved(e),void(!this.ended&&o.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(Y.MEDIA_ENDED,{stalled:!1})));if(!On.getBuffered(o).length)return void(this.nudgeRetry=0);const u=On.bufferInfo(o,e,0),h=u.nextStart||0,d=this.fragmentTracker;if(a&&d&&this.hls){const t=al(this.hls.inFlightFragments,e),n=u.len>2,i=!h||t||h-e>2&&!d.getPartialFragment(e);if(n||i)return;this.moved=!1}const p=null==(i=this.hls)?void 0:i.latestLevelDetails;if(!this.moved&&null!==this.stalled&&d){if(!(u.len>0)&&!h)return;const t=Math.max(h,u.start||0)-e,n=!(null==p||!p.live)?2*p.targetduration:2,i=d.getPartialFragment(e);if(t>0&&(t<=n||i))return void(o.paused||this._trySkipBufferHole(i))}const f=r.detectStallWithCurrentTimeMs,g=self.performance.now(),m=this.waiting;let v=this.stalled;if(null===v){if(!(m>0&&g-m=f||m)&&this.hls){var b;if("ended"===(null==(b=this.mediaSource)?void 0:b.readyState)&&(null==p||!p.live)&&Math.abs(e-((null==p?void 0:p.edge)||0))<1){if(this.ended)return;return this.ended=e||1,void this.hls.trigger(Y.MEDIA_ENDED,{stalled:!0})}if(this._reportStall(u),!this.media||!this.hls)return}const w=On.bufferInfo(o,e,r.maxBufferHole);this._tryFixBufferStall(w,y,e)}stallResolved(e){const t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){const n=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(n)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(Y.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var n;const i=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&null!=(n=this.buffered.audio)&&n.length&&i&&i.length>1&&e>i.end(0)){const n=On.bufferedInfo(On.timeRangesToArray(this.buffered.audio),e,0);if(n.len>1&&t>=n.start){const n=On.timeRangesToArray(i),r=On.bufferedInfo(n,t,0).bufferedIndex;if(r>-1&&rr)&&o-i<1&&e-i<2){const n=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${i} -> ${o} buffered index: ${t}`);this.warn(n.message),this.media.currentTime+=1e-6;const r=this.fragmentTracker.getPartialFragment(e)||void 0,a=On.bufferInfo(this.media,e,0);this.hls.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:n,reason:n.message,frag:r,buffer:a.len,bufferInfo:a})}}}}}_tryFixBufferStall(e,t,n){var i,r;const{fragmentTracker:o,media:a}=this,s=null==(i=this.hls)?void 0:i.config;if(!a||!o||!s)return;const l=null==(r=this.hls)?void 0:r.latestLevelDetails,c=o.getPartialFragment(n);if(c||null!=l&&l.live&&n1&&e.len>s.maxBufferHole||e.nextStart&&(e.nextStart-n1e3*s.highBufferWatchdogPeriod||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}adjacentTraversal(e,t){const n=this.fragmentTracker,i=e.nextStart;if(n&&i){const e=n.getFragAtPos(t,te),r=n.getFragAtPos(i,te);if(e&&r)return r.sn-e.sn<2}return!1}_reportStall(e){const{hls:t,media:n,stallReported:i,stalled:r}=this;if(!i&&null!==r&&n&&t){this.stallReported=!0;const i=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${$t(e)})`);this.warn(i.message),t.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:e.len,bufferInfo:e,stalled:{start:r}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:n,media:i}=this,r=null==(t=this.hls)?void 0:t.config;if(!i||!n||!r)return 0;const o=i.currentTime,a=On.bufferInfo(i,o,0),s=o0&&a.len<1&&i.readyState<3,u=s-o;if(u>0&&(t||c)){if(u>r.maxBufferHole){let t=!1;if(0===o){const e=n.getAppendedFrag(0,te);e&&s{const e=ll();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class hl{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(Y.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:e}=this;e.on(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(Y.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(Y.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(Y.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(Y.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(Y.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(Y.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(Y.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}onMediaAttaching(e,t){var n;this.media=t.media,!1===(null==(n=t.overrides)?void 0:n.cueRemoval)&&(this.removeCues=!1)}onMediaAttached(){const e=this.hls.latestLevelDetails;e&&this.updateDateRangeCues(e)}onMediaDetaching(e,t){this.media=null;!!t.transferMedia||(this.id3Track&&(this.removeCues&&Oa(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;tul&&(i=ul);i-n<=0&&(i=n+.25);for(let e=0;ee.type===$r.audioId3&&s:"video"===i?e=>e.type===$r.emsg&&a:e=>e.type===$r.audioId3&&s||e.type===$r.emsg&&a,Fa(r,t,n,e)}}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.media||!e.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{id3Track:n}=this,{dateRanges:i}=e,r=Object.keys(i);let o=this.dateRangeCuesAppended;var a;if(n&&t)if(null!=(a=n.cues)&&a.length){const e=Object.keys(o).filter((e=>!r.includes(e)));for(let t=e.length;t--;){const i=e[t],r=o[i].cues;delete o[i],Object.keys(r).forEach((e=>{try{const t=r[e];t.removeEventListener("enter",this.onEventCueEnter),n.removeCue(t)}catch(e){}}))}}else o=this.dateRangeCuesAppended={};const s=e.fragments[e.fragments.length-1];if(0===r.length||!G(null==s?void 0:s.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const l=ll();for(let e=0;e{if(t!==n.id){const r=i[t];if(r.class===n.class&&r.startDate>n.startDate&&(!e||n.startDate.01&&(r.startTime=a,r.endTime=p);else if(l){let e=n.attr[i];Un(i)&&(c=e,e=Uint8Array.from(c.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer);const r=cl(l,a,p,{key:i,data:e},$r.dateRange);r&&(r.id=t,this.id3Track.addCue(r),h[i]=r,this.hls.config.interstitialsController&&("X-ASSET-LIST"!==i&&"X-ASSET-URL"!==i||r.addEventListener("enter",this.onEventCueEnter)))}}o[t]={cues:h,dateRange:n,durationKnown:d}}var c,u}}class dl{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:e}=this,t=this.levelDetails;if(!e||!t)return;this.currentTime=e.currentTime;const n=this.computeLatency();if(null===n)return;this._latency=n;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:r}=this.config;if(!i||1===r||!t.live)return;const o=this.targetLatency;if(null===o)return;const a=n-o;if(a.05&&this.forwardBufferLength>1){const t=Math.min(2,Math.max(1,r)),n=Math.round(2/(1+Math.exp(-.75*a-this.edgeStalled))*20)/20,i=Math.min(t,Math.max(1,n));this.changeMediaPlaybackRate(e,i)}else 1!==e.playbackRate&&0!==e.playbackRate&&this.changeMediaPlaybackRate(e,1)},this.hls=e,this.config=e.config,this.registerListeners()}get levelDetails(){var e;return(null==(e=this.hls)?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:e}=this;if(void 0!==e.liveMaxLatencyDuration)return e.liveMaxLatencyDuration;const t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const e=this.levelDetails;if(null===e||null===this.hls)return null;const{holdBack:t,partHoldBack:n,targetduration:i}=e,{liveSyncDuration:r,liveSyncDurationCount:o,lowLatencyMode:a}=this.config,s=this.hls.userConfig;let l=a&&n||t;(this._targetLatencyUpdated||s.liveSyncDuration||s.liveSyncDurationCount||0===l)&&(l=void 0!==r?r:o*i);const c=i;return l+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,c)}set targetLatency(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency;if(null===e||null===t)return null;const n=this.levelDetails;if(null===n)return null;const i=n.edge,r=e-t-this.edgeStalled,o=i-n.totalduration,a=i-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(o,r),a)}get drift(){const e=this.levelDetails;return null===e?1:e.drift}get edgeStalled(){const e=this.levelDetails;if(null===e)return 0;const t=3*(this.config.lowLatencyMode&&e.partTarget||e.targetduration);return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e}=this,t=this.levelDetails;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;e&&(e.on(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(Y.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(Y.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Y.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(Y.ERROR,this.onError,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(e,t){var n;t.details===q.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&null!=(n=this.levelDetails)&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var n,i;e.playbackRate!==t&&(null==(n=this.hls)||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${null==(i=this.targetLatency)?void 0:i.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return null===e?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return null===e?null:e-this.currentTime}}class pl extends Ko{constructor(e,t){super(e,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=t,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(Y.LEVEL_LOADED,this.onLevelLoaded,this),e.on(Y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(Y.FRAG_BUFFERED,this.onFragBuffered,this),e.on(Y.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(Y.LEVEL_LOADED,this.onLevelLoaded,this),e.off(Y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(Y.FRAG_BUFFERED,this.onFragBuffered,this),e.off(Y.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach((e=>{e.loadError=0,e.fragmentError=0})),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){const n=this.hls.config.preferManagedMediaSource,i=[],r={},o={};let a=!1,s=!1,l=!1;t.levels.forEach((e=>{const t=e.attrs;let{audioCodec:c,videoCodec:u}=e;c&&(e.audioCodec=c=xt(c,n)||void 0),u&&(u=e.videoCodec=function(e){const t=e.split(",");for(let e=0;e2&&"avc1"===n[0]&&(t[e]=`avc1.${parseInt(n[1]).toString(16)}${("000"+parseInt(n[2]).toString(16)).slice(-4)}`)}return t.join(",")}(u));const{width:h,height:d,unknownCodecs:p}=e;let f=p?p.length:0;if(p)for(let t=f;t--;){const n=p[t];this.isAudioSupported(n)?(e.audioCodec=c=c?`${c},${n}`:n,f--,dt.audio[c.substring(0,4)]=2):this.isVideoSupported(n)&&(e.videoCodec=u=u?`${u},${n}`:n,f--,dt.video[u.substring(0,4)]=2)}if(a||(a=!(!h||!d)),s||(s=!!u),l||(l=!!c),f||c&&!this.isAudioSupported(c)||u&&!this.isVideoSupported(u))return void this.log(`Some or all CODECS not supported "${t.CODECS}"`);const{CODECS:g,"FRAME-RATE":m,"HDCP-LEVEL":v,"PATHWAY-ID":y,RESOLUTION:b,"VIDEO-RANGE":w}=t,x=`${`${y||"."}-`}${e.bitrate}-${b}-${m}-${g}-${w}-${v}`;if(r[x])if(r[x].uri===e.url||e.attrs["PATHWAY-ID"])r[x].addGroupId("audio",t.AUDIO),r[x].addGroupId("text",t.SUBTITLES);else{const t=o[x]+=1;e.attrs["PATHWAY-ID"]=new Array(t+1).join(".");const n=this.createLevel(e);r[x]=n,i.push(n)}else{const t=this.createLevel(e);r[x]=t,o[x]=1,i.push(t)}})),this.filterAndSortMediaOptions(i,t,a,s,l)}createLevel(e){const t=new Ft(e),n=e.supplemental;if(null!=n&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){const e=new Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(e.message),t.supportedResult=Et(e,[])}return t}isAudioSupported(e){return ft(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return ft(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,i,r){let o=[],a=[],s=e;if((n||i)&&r&&(s=s.filter((({videoCodec:e,videoRange:t,width:n,height:i})=>{return(!!e||!(!n||!i))&&(!!(r=t)&&Dt.indexOf(r)>-1);var r}))),0===s.length)return void Promise.resolve().then((()=>{if(this.hls){let e="no level with compatible codecs found in manifest",n=e;t.levels.length&&(n=`one or more CODECS in variant not supported: ${$t(t.levels.map((e=>e.attrs.CODECS)).filter(((e,t,n)=>n.indexOf(e)===t)))}`,this.warn(n),e+=` (${n})`);const i=new Error(e);this.hls.trigger(Y.ERROR,{type:W.MEDIA_ERROR,details:q.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:i,reason:n})}}));t.audioTracks&&(o=t.audioTracks.filter((e=>!e.audioCodec||this.isAudioSupported(e.audioCodec))),fl(o)),t.subtitles&&(a=t.subtitles,fl(a));const l=s.slice(0);s.sort(((e,t)=>{if(e.attrs["HDCP-LEVEL"]!==t.attrs["HDCP-LEVEL"])return(e.attrs["HDCP-LEVEL"]||"")>(t.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&e.height!==t.height)return e.height-t.height;if(e.frameRate!==t.frameRate)return e.frameRate-t.frameRate;if(e.videoRange!==t.videoRange)return Dt.indexOf(e.videoRange)-Dt.indexOf(t.videoRange);if(e.videoCodec!==t.videoCodec){const n=vt(e.videoCodec),i=vt(t.videoCodec);if(n!==i)return i-n}if(e.uri===t.uri&&e.codecSet!==t.codecSet){const n=yt(e.codecSet),i=yt(t.codecSet);if(n!==i)return i-n}return e.averageBitrate!==t.averageBitrate?e.averageBitrate-t.averageBitrate:0}));let c=l[0];if(this.steering&&(s=this.steering.filterParsedLevels(s),s.length!==l.length))for(let e=0;en&&n===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=e)}break}const h=r&&!i,d=this.hls.config,p=!(!d.audioStreamController||!d.audioTrackController),f={levels:s,audioTracks:o,subtitleTracks:a,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:r,video:i,altAudio:p&&!h&&o.some((e=>!!e.url))};this.hls.trigger(Y.MANIFEST_PARSED,f)}get levels(){return 0===this._levels.length?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(0===t.length)return;if(e<0||e>=t.length){const n=new Error("invalid level idx"),i=e<0;if(this.hls.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.LEVEL_SWITCH_ERROR,level:e,fatal:i,error:n,reason:n.message}),i)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,i=this.currentLevel,r=i?i.attrs["PATHWAY-ID"]:void 0,o=t[e],a=o.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=o,n===e&&i&&r===a)return;this.log(`Switching to level ${e} (${o.height?o.height+"p ":""}${o.videoRange?o.videoRange+" ":""}${o.codecSet?o.codecSet+" ":""}@${o.bitrate})${a?" with Pathway "+a:""} from level ${n}${r?" with Pathway "+r:""}`);const s={level:e,attrs:o.attrs,details:o.details,bitrate:o.bitrate,averageBitrate:o.averageBitrate,maxBitrate:o.maxBitrate,realBitrate:o.realBitrate,width:o.width,height:o.height,codecSet:o.codecSet,audioCodec:o.audioCodec,videoCodec:o.videoCodec,audioGroups:o.audioGroups,subtitleGroups:o.subtitleGroups,loaded:o.loaded,loadError:o.loadError,fragmentError:o.fragmentError,name:o.name,id:o.id,uri:o.uri,url:o.url,urlId:0,audioGroupIds:o.audioGroupIds,textGroupIds:o.textGroupIds};this.hls.trigger(Y.LEVEL_SWITCHING,s);const l=o.details;if(!l||l.live){const e=this.switchParams(o.uri,null==i?void 0:i.details,l);this.loadPlaylist(e)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,void 0===this._startLevel&&(this._startLevel=e),-1!==e&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(void 0===this._startLevel){const e=this.hls.config.startLevel;return void 0!==e?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){const t=this.steering.pathways(),n=e.filter((e=>-1!==t.indexOf(e)));if(e.length<1)return void this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);this.steering.pathwayPriority=n}}onError(e,t){!t.fatal&&t.context&&t.context.type===Q&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(void 0!==t&&t.type===te){const e=t.elementaryStreams;if(!Object.keys(e).some((t=>!!e[t])))return;const n=this._levels[t.level];null!=n&&n.loadError&&(this.log(`Resetting level error count of ${n.loadError} on frag buffered`),n.loadError=0)}}onLevelLoaded(e,t){var n;const{level:i,details:r}=t,o=t.levelInfo;var a;if(!o)return this.warn(`Invalid level index ${i}`),void(null!=(a=t.deliveryDirectives)&&a.skip&&(r.deltaUpdateFailed=!0));if(o===this.currentLevel||t.withoutMultiVariant){0===o.fragmentError&&(o.loadError=0);let e=o.details;e===t.details&&e.advanced&&(e=void 0),this.playlistLoaded(i,t,e)}else null!=(n=t.deliveryDirectives)&&n.skip&&(r.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=this.getUrlWithDirectives(e.uri,t),i=this.currentLevelIndex,r=e.attrs["PATHWAY-ID"],o=e.details,a=null==o?void 0:o.age;this.log(`Loading level index ${i}${void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:""}${r?" Pathway "+r:""}${a&&o.live?" age "+a.toFixed(1)+(o.type?" "+o.type||0:""):""} ${n}`),this.hls.trigger(Y.LEVEL_LOADING,{url:n,level:i,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(1===this._levels.length)return;const n=this._levels.filter(((t,n)=>n!==e||(this.steering&&this.steering.removeLevel(t),t===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,t.details&&t.details.fragments.forEach((e=>e.level=-1))),!1)));Ui(n),this._levels=n,this.currentLevelIndex>-1&&null!=(t=this.currentLevel)&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const i=n.length-1;this._firstLevel=Math.min(this._firstLevel,i),this._startLevel&&(this._startLevel=Math.min(this._startLevel,i)),this.hls.trigger(Y.LEVELS_UPDATED,{levels:n})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:n}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(Y.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function fl(e){const t={};e.forEach((e=>{const n=e.groupId||"";e.id=t[n]=t[n]||0,t[n]++}))}function gl(){return self.SourceBuffer||self.WebKitSourceBuffer}function ml(){if(!ve())return!1;const e=gl();return!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove}class vl extends hr{constructor(e,t,n){super(e,t,n,"stream-controller",te),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const e=this.media,t=e?e.currentTime:null;if(null===t||!G(t))return;if(this.log(`Media seeked to ${t.toFixed(3)}`),!this.getBufferedFrag(t))return;const n=this.getFwdBufferInfoAtPos(e,t,te,0);null!==n&&0!==n.len?this.tick():this.warn(`Main forward buffer length at ${t} on "seeked" event ${n?n.len:"empty"})`)},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Y.LEVEL_LOADING,this.onLevelLoading,this),e.on(Y.LEVEL_LOADED,this.onLevelLoaded,this),e.on(Y.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(Y.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(Y.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(Y.BUFFER_CREATED,this.onBufferCreated,this),e.on(Y.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(Y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(Y.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(Y.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Y.LEVEL_LOADED,this.onLevelLoaded,this),e.off(Y.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(Y.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(Y.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(Y.BUFFER_CREATED,this.onBufferCreated,this),e.off(Y.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(Y.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(Y.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(e,t){if(this.levels){const{lastCurrentTime:n,hls:i}=this;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){let e=i.startLevel;-1===e&&(i.config.testBandwidth&&this.levels.length>1?(e=0,this.bitrateTest=!0):e=i.firstAutoLevel),i.nextLoadLevel=e,this.level=i.loadLevel,this._hasEnoughToStart=!!t}n>0&&-1===e&&!t&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=er,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=Ji}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case ur:{const{levels:e,level:t}=this,n=null==e?void 0:e[t],i=null==n?void 0:n.details;if(i&&(!i.live||this.levelLastLoaded===n&&!this.waitForLive(n))){if(this.waitForCdnTuneIn(i))break;this.state=er;break}if(this.hls.nextLoadLevel!==this.level){this.state=er;break}break}case ir:{var e;const t=self.performance.now(),n=this.retryDate;if(!n||t>=n||null!=(e=this.media)&&e.seeking){const{levels:e,level:t}=this,n=null==e?void 0:e[t];this.resetStartWhenNotLoaded(n||null),this.state=er}}}this.state===er&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),null!=(e=this.media)&&e.readyState&&!1===this.media.seeking&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:i}=this;if(null===t||!i&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;const r=this.buffering?e.nextLoadLevel:e.loadLevel;if(null==n||!n[r])return;const o=n[r],a=this.getMainFwdBufferInfo();if(null===a)return;const s=this.getLevelDetails();if(s&&this._streamEnded(a,s)){const e={};return 2===this.altAudio&&(e.type="video"),this.hls.trigger(Y.BUFFER_EOS,e),void(this.state=sr)}if(!this.buffering)return;e.loadLevel!==r&&-1===e.manualLevel&&this.log(`Adapting to level ${r} from level ${this.level}`),this.level=e.nextLoadLevel=r;const l=o.details;if(!l||this.state===ur||this.waitForLive(o))return this.level=r,this.state=ur,void(this.startFragRequested=!1);const c=a.len,u=this.getMaxBufferLength(o.maxBitrate);if(c>=u)return;this.backtrackFragment&&this.backtrackFragment.start>a.end&&(this.backtrackFragment=null);const h=this.backtrackFragment?this.backtrackFragment.start:a.end;let d=this.getNextFragment(h,l);if(this.couldBacktrack&&!this.fragPrevious&&d&&Be(d)&&this.fragmentTracker.getState(d)!==yn){var p;const e=(null!=(p=this.backtrackFragment)?p:d).sn-l.startSN,t=l.fragments[e-1];t&&d.cc===t.cc&&(d=t,this.fragmentTracker.removeFragment(t))}else this.backtrackFragment&&a.len&&(this.backtrackFragment=null);if(d&&this.isLoopLoading(d,h)){if(!d.gap){const e=this.audioOnly&&!this.altAudio?Te:De,t=(e===De?this.videoBuffer:this.mediaBuffer)||this.media;t&&this.afterBufferFlushed(t,e,te)}d=this.getNextFragmentLoopLoading(d,l,a,te,u)}d&&(!d.initSegment||d.initSegment.data||this.bitrateTest||(d=d.initSegment),this.loadFragment(d,o,h))}loadFragment(e,t,n){const i=this.fragmentTracker.getState(e);i===gn||i===vn?Be(e)?this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):super.loadFragment(e,t,n):this._loadInitSegment(e,t):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,te)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:e,media:t}=this;if(null!=t&&t.readyState){let n;const i=this.getAppendedFrag(t.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);const r=this.getLevelDetails();if(null!=r&&r.live){const e=this.getMainFwdBufferInfo();if(!e||e.len<2*r.targetduration)return}if(!t.paused&&e){const t=e[this.hls.nextLoadLevel],i=this.fragLastKbps;n=i&&this.fragCurrent?this.fragCurrent.duration*t.maxBitrate/(1e3*i)+1:0}else n=0;const o=this.getBufferedFrag(t.currentTime+n);if(o){const e=this.followingBufferedFrag(o);if(e){this.abortCurrentFrag();const t=e.maxStartPTS?e.maxStartPTS:e.start,n=e.duration,i=Math.max(o.end,t+Math.min(Math.max(n-this.config.maxFragLookUpTolerance,n*(this.couldBacktrack?.5:.125)),n*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(i,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case tr:case nr:case ir:case or:case ar:this.state=er}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,2===this.altAudio?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const n=t.media;Ta(n,"playing",this.onMediaPlaying),Ta(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(Da(n,"playing",this.onMediaPlaying),Da(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(e,t);!!t.transferMedia||(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(Y.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(e,t){let n=!1,i=!1;t.levels.forEach((e=>{const t=e.audioCodec;t&&(n=n||-1!==t.indexOf("mp4a.40.2"),i=i||-1!==t.indexOf("mp4a.40.5"))})),this.audioCodecSwitch=n&&i&&!function(){var e;const t=gl();return"function"==typeof(null==t||null==(e=t.prototype)?void 0:e.changeType)}(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){const{levels:n}=this;if(!n||this.state!==er)return;const i=t.levelInfo;(!i.details||i.details.live&&(this.levelLastLoaded!==i||i.details.expired)||this.waitForCdnTuneIn(i.details))&&(this.state=ur)}onLevelLoaded(e,t){var n;const{levels:i,startFragRequested:r}=this,o=t.level,a=t.details,s=a.totalduration;if(!i)return void this.warn(`Levels were reset while loading level ${o}`);this.log(`Level ${o} loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""}, cc [${a.startCC}, ${a.endCC}] duration:${s}`);const l=t.levelInfo,c=this.fragCurrent;!c||this.state!==nr&&this.state!==ir||c.level!==t.level&&c.loader&&this.abortCurrentFrag();let u=0;if(a.live||null!=(n=l.details)&&n.live){var h;if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;u=this.alignPlaylists(a,l.details,null==(h=this.levelLastLoaded)?void 0:h.details)}if(l.details=a,this.levelLastLoaded=l,r||this.setStartPosition(a,u),this.hls.trigger(Y.LEVEL_UPDATED,{details:a,level:o}),this.state===ur){if(this.waitForCdnTuneIn(a))return;this.state=er}r&&a.live&&this.synchronizeToLiveEdge(a),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const i=this.hls.liveSyncPosition,r=this.getLoadPosition(),o=e.fragmentStart,a=e.edge,s=r>=o-t.maxFragLookUpTolerance&&r<=a;if(null!==i&&n.duration>i&&(r{var e;null==(e=this.hls)||e.trigger(Y.AUDIO_TRACK_SWITCHED,t)})),void n.trigger(Y.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});n.trigger(Y.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=qt(t.url,this.hls);if(n){const e=this.videoBuffer;e&&this.mediaBuffer!==e&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=e)}this.altAudio=n?2:0,this.tick()}onBufferCreated(e,t){const n=t.tracks;let i,r,o=!1;for(const e in n){const t=n[e];if("main"===t.id){if(r=e,i=t,"video"===e){const t=n[e];t&&(this.videoBuffer=t.buffer)}}else o=!0}o&&i?(this.log(`Alternate track found, use ${r}.buffered to schedule main fragment loading`),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:i}=t,r=n.type===te;if(r){if(this.fragContextChanged(n))return this.warn(`Fragment ${n.sn}${i?" p: "+i.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),void(this.state===ar&&(this.state=er));const e=i?i.stats:n.stats;this.fragLastKbps=Math.round(8*e.total/(e.buffering.end-e.loading.first)),Be(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,i)}const o=this.media;o&&(!this._hasEnoughToStart&&On.getBuffered(o).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),r&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal)this.state=lr;else switch(t.details){case q.FRAG_GAP:case q.FRAG_PARSING_ERROR:case q.FRAG_DECRYPT_ERROR:case q.FRAG_LOAD_ERROR:case q.FRAG_LOAD_TIMEOUT:case q.KEY_LOAD_ERROR:case q.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(te,t);break;case q.LEVEL_LOAD_ERROR:case q.LEVEL_LOAD_TIMEOUT:case q.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==ur||(null==(n=t.context)?void 0:n.type)!==Q||(this.state=er);break;case q.BUFFER_ADD_CODEC_ERROR:case q.BUFFER_APPEND_ERROR:if("main"!==t.parent)return;this.resetLoadingState();break;case q.BUFFER_FULL_ERROR:if("main"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case q.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}onFragLoadEmergencyAborted(){this.state=er,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==Te||!this.altAudio){const e=(t===De?this.videoBuffer:this.mediaBuffer)||this.media;e&&(this.afterBufferFlushed(e,t,te),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,-1===this.level&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let n=this.startPosition;if(n>=0&&t0&&(s{const{hls:n}=this,i=null==e?void 0:e.frag;if(!i||this.fragContextChanged(i))return;t.fragmentError=0,this.state=er,this.startFragRequested=!1,this.bitrateTest=!1;const r=i.stats;r.parsing.start=r.parsing.end=r.buffering.start=r.buffering.end=self.performance.now(),n.trigger(Y.FRAG_LOADED,e),i.bitrateTest=!1}))}_handleTransmuxComplete(e){var t;const n=this.playlistType,{hls:i}=this,{remuxResult:r,chunkMeta:o}=e,a=this.getCurrentContext(o);if(!a)return void this.resetWhenMissingContext(o);const{frag:s,part:l,level:c}=a,{video:u,text:h,id3:d,initSegment:p}=r,{details:f}=c,g=this.altAudio?void 0:r.audio;if(this.fragContextChanged(s))this.fragmentTracker.removeFragment(s);else{if(this.state=or,p){if(null!=p&&p.tracks){const e=s.initSegment||s;this._bufferInitSegment(c,p.tracks,e,o),i.trigger(Y.FRAG_PARSING_INIT_SEGMENT,{frag:e,id:n,tracks:p.tracks})}const e=p.initPTS,t=p.timescale;G(e)&&(this.initPTS[s.cc]={baseTime:e,timescale:t},i.trigger(Y.INIT_PTS_FOUND,{frag:s,id:n,initPTS:e,timescale:t}))}if(u&&f){g&&"audiovideo"===u.type&&this.logMuxedErr(s);const e=f.fragments[s.sn-1-f.startSN],t=s.sn===f.startSN,n=!e||s.cc>e.cc;if(!1!==r.independent){const{startPTS:e,endPTS:i,startDTS:r,endDTS:a}=u;if(l)l.elementaryStreams[u.type]={startPTS:e,endPTS:i,startDTS:r,endDTS:a};else if(u.firstKeyFrame&&u.independent&&1===o.id&&!n&&(this.couldBacktrack=!0),u.dropped&&u.independent){const r=this.getMainFwdBufferInfo(),o=(r?r.end:this.getLoadPosition())+this.config.maxBufferHole,l=u.firstKeyFramePTS?u.firstKeyFramePTS:e;if(!t&&o2&&(s.gap=!0);s.setElementaryStreamInfo(u.type,e,i,r,a),this.backtrackFragment&&(this.backtrackFragment=s),this.bufferFragmentData(u,s,l,o,t||n)}else{if(!t&&!n)return void this.backtrack(s);s.gap=!0}}if(g){const{startPTS:e,endPTS:t,startDTS:n,endDTS:i}=g;l&&(l.elementaryStreams[Te]={startPTS:e,endPTS:t,startDTS:n,endDTS:i}),s.setElementaryStreamInfo(Te,e,t,n,i),this.bufferFragmentData(g,s,l,o)}if(f&&null!=d&&null!=(t=d.samples)&&t.length){const e={id:n,frag:s,details:f,samples:d.samples};i.trigger(Y.FRAG_PARSING_METADATA,e)}if(f&&h){const e={id:n,frag:s,details:f,samples:h.samples};i.trigger(Y.FRAG_PARSING_USERDATA,e)}}}logMuxedErr(e){this.warn(`${Be(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,i){if(this.state!==or)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));const{audio:r,video:o,audiovideo:a}=t;if(r){let n=St(r.codec,e.audioCodec);"mp4a"===n&&(n="mp4a.40.5");const i=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){n&&(n=-1!==n.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5");const e=r.metadata;e&&"channelCount"in e&&1!==(e.channelCount||1)&&-1===i.indexOf("firefox")&&(n="mp4a.40.5")}n&&-1!==n.indexOf("mp4a.40.5")&&-1!==i.indexOf("android")&&"audio/mpeg"!==r.container&&(n="mp4a.40.2",this.log(`Android: force audio codec to ${n}`)),e.audioCodec&&e.audioCodec!==n&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${n}"`),r.levelCodec=n,r.id=te,this.log(`Init audio buffer, container:${r.container}, codecs[selected/level/parsed]=[${n||""}/${e.audioCodec||""}/${r.codec}]`),delete t.audiovideo}if(o){o.levelCodec=e.videoCodec,o.id=te;const n=o.codec;if(4===(null==n?void 0:n.length))switch(n){case"hvc1":case"hev1":o.codec="hvc1.1.6.L120.90";break;case"av01":o.codec="av01.0.04M.08";break;case"avc1":o.codec="avc1.42e01e"}this.log(`Init video buffer, container:${o.container}, codecs[level/parsed]=[${e.videoCodec||""}/${n}]${o.codec!==n?" parsed-corrected="+o.codec:""}${o.supplemental?" supplemental="+o.supplemental:""}`),delete t.audiovideo}a&&(this.log(`Init audiovideo buffer, container:${a.container}, codecs[level/parsed]=[${e.codecs}/${a.codec}]`),delete t.video,delete t.audio);const s=Object.keys(t);if(s.length){if(this.hls.trigger(Y.BUFFER_CODECS,t),!this.hls)return;s.forEach((e=>{const r=t[e].initSegment;null!=r&&r.byteLength&&this.hls.trigger(Y.BUFFER_APPENDING,{type:e,data:r,frag:n,part:null,chunkMeta:i,parent:n.type})}))}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&2===this.altAudio?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,te)}get maxBufferLength(){const{levels:e,level:t}=this,n=null==e?void 0:e[t];return n?this.getMaxBufferLength(n.maxBitrate):this.config.maxBufferLength}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=er}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&!1===e.seeking){const n=e.currentTime;if(On.isBuffered(e,n)?t=this.getAppendedFrag(n):On.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;const e=this.fragPlaying,n=t.level;e&&t.sn===e.sn&&e.level===n||(this.fragPlaying=t,this.hls.trigger(Y.FRAG_CHANGED,{frag:t}),e&&e.level===n||this.hls.trigger(Y.LEVEL_SWITCHED,{level:n}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;return G(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;if(G(t)){const e=this.getLevelDetails(),n=this.currentFrag||(e?Xt(null,e.fragments,t):null);if(n){const e=n.programDateTime;if(null!==e){const i=e+1e3*(t-n.start);return new Date(i)}}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class yl{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyUriToKeyInfo){const i=this.keyUriToKeyInfo[n].loader;if(i){var t;if(e&&e!==(null==(t=i.context)?void 0:t.frag.type))return;i.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=q.KEY_LOAD_ERROR,n,i,r){return new Nn({type:W.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:r,error:n,networkDetails:i})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length)if(t.length){const{sn:n,cc:i}=e;for(let e=0;e{if(r.setKeyFormat(e),this.emeController&&this.config.requireKeySystemAccessOnStart){const t=ai(e);if(t)return this.emeController.getKeySystemAccess([t])}}))}}else if(this.config.requireKeySystemAccessOnStart){const e=pi(this.config);if(e.length)return this.emeController.getKeySystemAccess(e)}return null}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then((t=>this.loadInternal(e,t))):this.loadInternal(e)}loadInternal(e,t){var n,i;t&&e.setKeyFormat(t);const r=e.decryptdata;if(!r){const n=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,q.KEY_LOAD_ERROR,n))}const o=r.uri;if(!o)return Promise.reject(this.createKeyLoadError(e,q.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${o}"`)));let a=this.keyUriToKeyInfo[o];if(null!=(n=a)&&n.decryptdata.key)return r.key=a.decryptdata.key,Promise.resolve({frag:e,keyInfo:a});var s;if(null!=(i=a)&&i.keyLoadPromise)switch(null==(s=a.mediaKeySessionContext)?void 0:s.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return a.keyLoadPromise.then((t=>(r.key=t.keyInfo.decryptdata.key,{frag:e,keyInfo:a})))}switch(a=this.keyUriToKeyInfo[o]={decryptdata:r,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},r.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===r.keyFormat?this.loadKeyHTTP(a,e):this.loadKeyEME(a,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(a,e);default:return Promise.reject(this.createKeyLoadError(e,q.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${r.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const t=this.emeController.loadKey(n);if(t)return(e.keyLoadPromise=t.then((t=>(e.mediaKeySessionContext=t,n)))).catch((t=>{throw e.keyLoadPromise=null,t}))}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,i=new(0,n.loader)(n);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise(((r,o)=>{const a={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},s=n.keyLoadPolicy.default,l={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(e,t,n,i)=>{const{frag:a,keyInfo:s,url:l}=n;if(!a.decryptdata||s!==this.keyUriToKeyInfo[l])return o(this.createKeyLoadError(a,q.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),i));s.decryptdata.key=a.decryptdata.key=new Uint8Array(e.data),a.keyLoader=null,s.loader=null,r({frag:a,keyInfo:s})},onError:(e,n,i,r)=>{this.resetLoader(n),o(this.createKeyLoadError(t,q.KEY_LOAD_ERROR,new Error(`HTTP Error ${e.code} loading key ${e.text}`),i,ce({url:a.url,data:void 0},e)))},onTimeout:(e,n,i)=>{this.resetLoader(n),o(this.createKeyLoadError(t,q.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),i))},onAbort:(e,n,i)=>{this.resetLoader(n),o(this.createKeyLoadError(t,q.INTERNAL_ABORTED,new Error("key loading aborted"),i))}};i.load(a,l,c)}))}resetLoader(e){const{frag:t,keyInfo:n,url:i}=e,r=n.loader;t.keyLoader===r&&(t.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[i],r&&r.destroy()}}function bl(e){const{type:t}=e;switch(t){case J:return ne;case ee:return ie;default:return te}}function wl(e,t){let n=e.url;return void 0!==n&&0!==n.indexOf("data:")||(n=t.url),n}class xl{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Y.LEVEL_LOADING,this.onLevelLoading,this),e.on(Y.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(Y.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(Y.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(Y.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Y.LEVEL_LOADING,this.onLevelLoading,this),e.off(Y.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(Y.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(Y.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,i=t.loader,r=new(n||i)(t);return this.loaders[e.type]=r,r}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:X,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:n,level:i,pathwayId:r,url:o,deliveryDirectives:a,levelInfo:s}=t;this.load({id:n,level:i,pathwayId:r,responseType:"text",type:Q,url:o,deliveryDirectives:a,levelOrTrack:s})}onAudioTrackLoading(e,t){const{id:n,groupId:i,url:r,deliveryDirectives:o,track:a}=t;this.load({id:n,groupId:i,level:null,responseType:"text",type:J,url:r,deliveryDirectives:o,levelOrTrack:a})}onSubtitleTrackLoading(e,t){const{id:n,groupId:i,url:r,deliveryDirectives:o,track:a}=t;this.load({id:n,groupId:i,level:null,responseType:"text",type:ee,url:r,deliveryDirectives:o,levelOrTrack:a})}onLevelsUpdated(e,t){const n=this.loaders[Q];if(n){const e=n.context;e&&!t.levels.some((t=>t===e.levelOrTrack))&&(n.abort(),delete this.loaders[Q])}}load(e){var t;const n=this.hls.config;let i,r=this.getInternalLoader(e);if(r){const t=this.hls.logger,n=r.context;if(n&&n.levelOrTrack===e.levelOrTrack&&(n.url===e.url||n.deliveryDirectives&&!e.deliveryDirectives))return void(n.url===e.url?t.log(`[playlist-loader]: ignore ${e.url} ongoing request`):t.log(`[playlist-loader]: ignore ${e.url} in favor of ${n.url}`));t.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}if(i=e.type===X?n.manifestLoadPolicy.default:se({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),G(null==(t=e.deliveryDirectives)?void 0:t.part)){let t;if(e.type===Q&&null!==e.level?t=this.hls.levels[e.level].details:e.type===J&&null!==e.id?t=this.hls.audioTracks[e.id].details:e.type===ee&&null!==e.id&&(t=this.hls.subtitleTracks[e.id].details),t){const e=t.partTarget,n=t.targetduration;if(e&&n){const t=1e3*Math.max(3*e,.8*n);i=se({},i,{maxTimeToFirstByteMs:Math.min(t,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(t,i.maxTimeToFirstByteMs)})}}}const o=i.errorRetry||i.timeoutRetry||{},a={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:o.maxNumRetry||0,retryDelay:o.retryDelayMs||0,maxRetryDelay:o.maxRetryDelayMs||0},s={onSuccess:(e,t,n,i)=>{const r=this.getInternalLoader(n);this.resetInternalLoader(n.type);const o=e.data;0===o.indexOf("#EXTM3U")?(t.parsing.start=performance.now(),_i.isMediaPlaylist(o)||n.type!==X?this.handleTrackOrLevelPlaylist(e,t,n,i||null,r):this.handleMasterPlaylist(e,t,n,i)):this.handleManifestParsingError(e,n,new Error("no EXTM3U delimiter"),i||null,t)},onError:(e,t,n,i)=>{this.handleNetworkError(t,n,!1,e,i)},onTimeout:(e,t,n)=>{this.handleNetworkError(t,n,!0,void 0,e)}};r.load(e,a,s)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:n}=this.hls;(e||n)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,n,i){const r=this.hls,o=e.data,a=wl(e,n),s=_i.parseMasterPlaylist(o,a);if(s.playlistParsingError)return void this.handleManifestParsingError(e,n,s.playlistParsingError,i,t);const{contentSteering:l,levels:c,sessionData:u,sessionKeys:h,startTimeOffset:d,variableList:p}=s;this.variableList=p;const{AUDIO:f=[],SUBTITLES:g,"CLOSED-CAPTIONS":m}=_i.parseMasterPlaylistMedia(o,a,s);if(f.length){f.some((e=>!e.url))||!c[0].audioCodec||c[0].attrs.AUDIO||(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),f.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Gn({}),bitrate:0,url:""}))}r.trigger(Y.MANIFEST_LOADED,{levels:c,audioTracks:f,subtitles:g,captions:m,contentSteering:l,url:a,stats:t,networkDetails:i,sessionData:u,sessionKeys:h,startTimeOffset:d,variableList:p})}handleTrackOrLevelPlaylist(e,t,n,i,r){const o=this.hls,{id:a,level:s,type:l}=n,c=wl(e,n),u=G(s)?s:G(a)?a:0,h=bl(n),d=_i.parseLevelPlaylist(e.data,c,u,h,0,this.variableList);if(l===X){const e={attrs:new Gn({}),bitrate:0,details:d,name:"",url:c};d.requestScheduled=t.loading.start+Hi(d,0),o.trigger(Y.MANIFEST_LOADED,{levels:[e],audioTracks:[],url:c,stats:t,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=d,this.handlePlaylistLoaded(d,e,t,n,i,r)}handleManifestParsingError(e,t,n,i,r){this.hls.trigger(Y.ERROR,{type:W.NETWORK_ERROR,details:q.MANIFEST_PARSING_ERROR,fatal:t.type===X,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:i,stats:r})}handleNetworkError(e,t,n=!1,i,r){let o=`A network ${n?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${e.type}`;e.type===Q?o+=`: ${e.level} id: ${e.id}`:e.type!==J&&e.type!==ee||(o+=` id: ${e.id} group-id: "${e.groupId}"`);const a=new Error(o);this.hls.logger.warn(`[playlist-loader]: ${o}`);let s=q.UNKNOWN,l=!1;const c=this.getInternalLoader(e);switch(e.type){case X:s=n?q.MANIFEST_LOAD_TIMEOUT:q.MANIFEST_LOAD_ERROR,l=!0;break;case Q:s=n?q.LEVEL_LOAD_TIMEOUT:q.LEVEL_LOAD_ERROR,l=!1;break;case J:s=n?q.AUDIO_TRACK_LOAD_TIMEOUT:q.AUDIO_TRACK_LOAD_ERROR,l=!1;break;case ee:s=n?q.SUBTITLE_TRACK_LOAD_TIMEOUT:q.SUBTITLE_LOAD_ERROR,l=!1}c&&this.resetInternalLoader(e.type);const u={type:W.NETWORK_ERROR,details:s,fatal:l,url:e.url,loader:c,context:e,error:a,networkDetails:t,stats:r};if(i){const n=(null==t?void 0:t.url)||e.url;u.response=ce({url:n,data:void 0},i)}this.hls.trigger(Y.ERROR,u)}handlePlaylistLoaded(e,t,n,i,r,o){const a=this.hls,{type:s,level:l,id:c,groupId:u,deliveryDirectives:h}=i,d=wl(t,i),p=bl(i),f="number"==typeof i.level&&p===te?l:void 0;if(!e.fragments.length){const o=e.playlistParsingError=new Error("No Segments found in Playlist");return void a.trigger(Y.ERROR,{type:W.NETWORK_ERROR,details:q.LEVEL_EMPTY_ERROR,fatal:!1,url:d,error:o,reason:o.message,response:t,context:i,level:f,parent:p,networkDetails:r,stats:n})}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const g=e.playlistParsingError;if(g){if(this.hls.logger.warn(g),!a.config.ignorePlaylistParsingErrors)return void a.trigger(Y.ERROR,{type:W.NETWORK_ERROR,details:q.LEVEL_PARSING_ERROR,fatal:!1,url:d,error:g,reason:g.message,response:t,context:i,level:f,parent:p,networkDetails:r,stats:n});e.playlistParsingError=null}switch(e.live&&o&&(o.getCacheAge&&(e.ageHeader=o.getCacheAge()||0),o.getCacheAge&&!isNaN(e.ageHeader)||(e.ageHeader=0)),s){case X:case Q:a.trigger(Y.LEVEL_LOADED,{details:e,levelInfo:i.levelOrTrack||a.levels[0],level:f||0,id:c||0,stats:n,networkDetails:r,deliveryDirectives:h,withoutMultiVariant:s===X});break;case J:a.trigger(Y.AUDIO_TRACK_LOADED,{details:e,track:i.levelOrTrack,id:c||0,groupId:u||"",stats:n,networkDetails:r,deliveryDirectives:h});break;case ee:a.trigger(Y.SUBTITLE_TRACK_LOADED,{details:e,track:i.levelOrTrack,id:c||0,groupId:u||"",stats:n,networkDetails:r,deliveryDirectives:h})}}}class Sl{static get version(){return yr}static isMSESupported(){return ml()}static isSupported(){return function(){if(!ml())return!1;const e=ve();return"function"==typeof(null==e?void 0:e.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some((t=>e.isTypeSupported(mt(t,"video"))))||["mp4a.40.2","fLaC"].some((t=>e.isTypeSupported(mt(t,"audio")))))}()}static getMediaSource(){return ve()}static get Events(){return Y}static get MetadataSchema(){return $r}static get ErrorTypes(){return W}static get ErrorDetails(){return q}static get DefaultConfig(){return Sl.defaultConfig?Sl.defaultConfig:nl}static set DefaultConfig(e){Sl.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new vr,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const t=this.logger=function(e,t,n){const i=pe();if("object"==typeof console&&!0===e||"object"==typeof e){const r=["debug","log","info","warn","error"];r.forEach((t=>{i[t]=fe(t,e,n)}));try{i.log(`Debug logs enabled for "${t}" in hls.js version 1.6.5`)}catch(e){return pe()}r.forEach((t=>{ge[t]=fe(t,e)}))}else se(ge,i);return i}(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=function(e,t,n){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==t.liveMaxLatencyDurationCount&&(void 0===t.liveSyncDurationCount||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==t.liveMaxLatencyDuration&&(void 0===t.liveSyncDuration||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const i=il(e),r=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((e=>{const o=`${"level"===e?"playlist":e}LoadPolicy`,a=void 0===t[o],s=[];r.forEach((n=>{const r=`${e}Loading${n}`,l=t[r];if(void 0!==l&&a){s.push(r);const e=i[o].default;switch(t[o]={default:e},n){case"TimeOut":e.maxLoadTimeMs=l,e.maxTimeToFirstByteMs=l;break;case"MaxRetry":e.errorRetry.maxNumRetry=l,e.timeoutRetry.maxNumRetry=l;break;case"RetryDelay":e.errorRetry.retryDelayMs=l,e.timeoutRetry.retryDelayMs=l;break;case"MaxRetryTimeout":e.errorRetry.maxRetryDelayMs=l,e.timeoutRetry.maxRetryDelayMs=l}}})),s.length&&n.warn(`hls.js config: "${s.join('", "')}" setting(s) are deprecated, use "${o}": ${$t(t[o])}`)})),ce(ce({},i),t)}(Sl.DefaultConfig,e,t);this.userConfig=e,n.progressive&&rl(n,t);const{abrController:i,bufferController:r,capLevelController:o,errorController:a,fpsController:s}=n,l=new a(this),c=this.abrController=new i(this),u=new bn(this),h=n.interstitialsController,d=h?this.interstitialsController=new h(this,Sl):null,p=this.bufferController=new r(this,u),f=this.capLevelController=new o(this),g=new s(this),m=new xl(this),v=n.contentSteeringController,y=v?new v(this):null,b=this.levelController=new pl(this,y),w=new hl(this),x=new yl(this.config),S=this.streamController=new vl(this,u,x),k=this.gapController=new ol(this,u);f.setStreamController(S),g.setStreamController(S);const _=[m,b,S];d&&_.splice(1,0,d),y&&_.splice(1,0,y),this.networkControllers=_;const C=[c,p,k,f,g,w,u];this.audioTrackController=this.createController(n.audioTrackController,_);const P=n.audioStreamController;P&&_.push(this.audioStreamController=new P(this,u,x)),this.subtitleTrackController=this.createController(n.subtitleTrackController,_);const E=n.subtitleStreamController;E&&_.push(this.subtititleStreamController=new E(this,u,x)),this.createController(n.timelineController,C),x.emeController=this.emeController=this.createController(n.emeController,C),this.cmcdController=this.createController(n.cmcdController,C),this.latencyController=this.createController(dl,C),this.coreComponents=C,_.push(l);const M=l.onErrorOut;"function"==typeof M&&this.on(Y.ERROR,M,l),this.on(Y.MANIFEST_LOADED,m.onManifestLoaded,m)}createController(e,t){if(e){const n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,i){this._emitter.off(e,t,n,i)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(t){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+t.message+'". Here is a stacktrace:',t),!this.triggeringException){this.triggeringException=!0;const n=e===Y.ERROR;this.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.INTERNAL_EXCEPTION,fatal:n,event:e,error:t}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(Y.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach((e=>e.destroy())),this.networkControllers.length=0,this.coreComponents.forEach((e=>e.destroy())),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){const t=new Error(`attachMedia failed: invalid argument (${e})`);return void this.trigger(Y.ERROR,{type:W.OTHER_ERROR,details:q.ATTACH_MEDIA_ERROR,fatal:!0,error:t})}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const t="media"in e,n=t?e.media:e,i=t?e:{media:n};this._media=n,this.trigger(Y.MEDIA_ATTACHING,i)}detachMedia(){this.logger.log("detachMedia"),this.trigger(Y.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(Y.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();const t=this.media,n=this._url,i=this._url=Le.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${i}`),t&&n&&(n!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(Y.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(e=-1,t){this.logger.log(`startLoad(${e+(t?", ":"")})`),this.started=!0,this.resumeBuffering();for(let n=0;n{e.resumeBuffering&&e.resumeBuffering()})))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach((e=>{e.pauseBuffering&&e.pauseBuffering()})))}get inFlightFragments(){const e={[te]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[ne]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[ie]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const e=this._media,t=null==e?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&this.startLoad(t))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=function(){try{return crypto.randomUUID()}catch(e){try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){let t=(new Date).getTime();const n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)}));return n}}}()),e}get levels(){const e=this.levelController.levels;return e||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){this.logger.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return-1===e&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log(`set startLevel:${e}`),-1!==e&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get abrEwmaDefaultEstimate(){const{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){(function(e){return Tt.indexOf(e)>-1})(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return-1===this.levelController.manualLevel}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const n=e.length;for(let i=0;i=t)return i;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let i;if(i=-1===t&&null!=e&&e.length?e.length-1:t,n)for(let t=i;t--;){const i=e[t].attrs["HDCP-LEVEL"];if(i&&i<=n)return t}return i}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return(null==(t=this.audioTrackController)?void 0:t.setAudioOption(e))||null}setSubtitleOption(e){var t;return(null==(t=this.subtitleTrackController)?void 0:t.setSubtitleOption(e))||null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return!!e&&e.subtitleDisplay}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(e){this.latencyController.targetLatency=e}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!(null==(e=this.bufferController)||!e.bufferedToEnd)}get interstitialsManager(){var e;return(null==(e=this.interstitialsController)?void 0:e.interstitialsManager)||null}getMediaDecodingInfo(e,t=this.allAudioTracks){return At(e,Zt(t),navigator.mediaCapabilities)}}Sl.defaultConfig=void 0;var kl=n(67390),_l=n(1079),Cl=n(15342),Pl=n(1012),El={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Ml=n(20743),Ll=n(14809),Al={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},Tl=n(7657),Dl=function(e,t){return c.createElement(Tl.Z,(0,Ll.Z)({},e,{ref:t,icon:Al}))};var Nl=c.forwardRef(Dl),Il=n(39647),Bl=n.n(Il),Rl=n(76374),Ol={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Fl={quickKey:[{label:"main",content:["public static void main(String[] args) {","\t$0","}"].join("\n")},{label:"System.out.println",content:["System.out.println($0)"].join("\n")},{label:"System.out.print",content:["System.out.print($0)"].join("\n")}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},zl={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {","\t$0","} else {","\t","}"].join("\n")},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {","\t$0","}"].join("\n")},{label:"if",content:["if () {","\t$0","}"].join("\n")},{label:"for",content:["for(int j=0 ; j<10; j++){","\t$0","}"].join("\n")},{label:"trycatch",content:["try{","\t$0","}catch(ExceptionName e){","}"].join("\n")},{label:"using namespace std;",content:["using namespace std;"].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")},{label:"include ",content:["#include "].join("\n")}]},jl={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join("\n")}]},$l={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join("\n")}]},Hl=n(53184),Zl=n.n(Hl),Kl={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}};var Gl=n(82100),Ul=n.n(Gl),Vl=n(29186),Wl=n.n(Vl),ql=n(85573),Yl=n.n(ql),Xl=function(){function e(t,n,i){var r=this;Ul()(this,e),this.placeholder=t,this.editor=n,this.monaco=i,n.onDidChangeModelContent((function(){return r.onDidChangeModelContent()})),this.onDidChangeModelContent()}return Wl()(e,[{key:"onDidChangeModelContent",value:function(){""===this.editor.getValue()?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}},{key:"getId",value:function(){return e.ID}},{key:"getDomNode",value:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}},{key:"getPosition",value:function(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}},{key:"dispose",value:function(){this.editor.removeContentWidget(this)}}]),e}();Yl()(Xl,"ID","editor.widget.placeholderHint");var Ql=Xl,Jl=n(96236),ec=n(6767),tc=n(55544),nc=n(89392),ic=n(1499),rc=n(56102),oc=["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"];function ac(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function sc(){}var lc={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function cc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;if(Array.isArray(e)){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!e||""===e.trim())return!0;for(var n=ne.current.instance.getModel(),i=n.getLineTokens(t),r=!1,o=0;o<2;o++)1===i.getStandardTokenType(o)&&(r=!0);return r};function ge(e){(window.navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)&&83==e.keyCode&&(e.preventDefault(),M())}(0,c.useEffect)((function(){var e,t=null===(e=ne.current)||void 0===e?void 0:e.instance;if(t&&de&&D){var n=t.onDidBlurEditorWidget((function(){ce.current=!1})),i=t.onDidFocusEditorText((function(){ce.current=!0}));return function(){n.dispose(),i.dispose()}}}),[ne.current,de,D]),(0,c.useEffect)((function(){var e;if(null!==(e=ne.current)&&void 0!==e&&e.instance&&de&&Y){var t=ne.current.instance,n=t.getModel();if(!n)return;!function(){var e,i=[],r=[],o=n.getAllDecorations(),a=w()(o);try{for(a.s();!(e=a.n()).done;){var s,l=e.value;if("highlighted-line"===l.options.className)i.push(null==l||null===(s=l.range)||void 0===s?void 0:s.startLineNumber),r.push(null==l?void 0:l.id)}}catch(e){a.e(e)}finally{a.f()}if(W!==i[0]){n.deltaDecorations(r,[]);var c=n.getLineCount();W&&W<=c&&(t.deltaDecorations([],[{range:new uc.Range(W,1,W,n.getLineMaxColumn(W)),options:{isWholeLine:!0,className:"highlighted-line"}}]),t.revealLineInCenter(W))}}();var i=function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=[],r=[],o=n.getAllDecorations(),a=w()(o);try{for(a.s();!(e=a.n()).done;){var s,l=e.value;if("breakpoints-select"===l.options.linesDecorationsClassName)i.push(null==l||null===(s=l.range)||void 0===s?void 0:s.startLineNumber),r.push(null==l?void 0:l.id)}}catch(e){a.e(e)}finally{a.f()}if(t)return{lines:i,ids:r};j(i)},o=function(){var e=a()(r()().mark((function e(t){var o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={range:new uc.Range(t,1,t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}},e.next=3,n.deltaDecorations([],[o]);case 3:i();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),s=function(){var e=a()(r()().mark((function e(o){var a,s,l,c,u;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=[],s=t.getLineDecorations(o),l=w()(s);try{for(l.s();!(c=l.n()).done;)"breakpoints-select"===(u=c.value).options.linesDecorationsClassName&&a.push(u.id)}catch(e){l.e(e)}finally{l.f()}return e.next=6,n.deltaDecorations(a,[]);case 6:i();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(e){var n,i=t.getLineDecorations(e),r=w()(i);try{for(r.s();!(n=r.n()).done;){if("breakpoints-select"===n.value.options.linesDecorationsClassName)return!0}}catch(e){r.e(e)}finally{r.f()}return!1};if(!(0,nc.isEqual)(H,i(!0).lines)){n.deltaDecorations(i(!0).ids,[]);var c=H.map((function(e){return{range:new uc.Range(e,1,e,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}}));n.deltaDecorations([],c)}var u=t.onDidChangeModelContent((function(e){var r=t.getPosition();if(r){var a=r.lineNumber;clearTimeout(le.current),le.current=setTimeout((function(){fe(n.getLineContent(a),a)?s(a):l(a)?(s(a),o(a)):i()}),100)}})),h=t.onMouseDown((function(e){var t;if(e.target.detail&&null!==(t=e.target)&&void 0!==t&&null!==(t=t.element)&&void 0!==t&&null!==(t=t.className)&&void 0!==t&&t.includes("line-numbers")){var i=e.target.position.lineNumber;if(fe(n.getLineContent(i),i))return;l(i)?s(i):o(i)}})),d=function(){oe.current=t.deltaDecorations(oe.current,[])},p=t.onMouseMove((function(e){var i;if(d(),e.target.detail&&null!==(i=e.target)&&void 0!==i&&null!==(i=i.element)&&void 0!==i&&null!==(i=i.className)&&void 0!==i&&i.includes("line-numbers")){var r=e.target.position.lineNumber;if(fe(n.getLineContent(r),r))return;!function(e){var n={range:new uc.Range(e,1,e,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};oe.current=t.deltaDecorations(oe.current,[n])}(r)}})),f=t.onMouseLeave((function(){d()}));return function(){u.dispose(),h.dispose(),p.dispose(),f.dispose()}}}),[ne.current,de,H,W,Y,p]),(0,c.useEffect)((function(){var e;null!==(e=ne.current)&&void 0!==e&&e.instance&&Y&&ne.current.instance.setPosition({lineNumber:0,column:0})}),[W]);var me=function(){if(A&&ne.current.instance){var e=ne.current.instance.getContentHeight();Ce(e0||i.target.offsetWidth>0)&&ne.current.instance.layout()}}catch(e){n.e(e)}finally{n.f()}}))).observe(te.current),e}();return Q&&"string"==typeof Q&&new Ql(Q,t,uc),pe(!0),function(){var e=ne.current.instance;e.dispose();var t=e.getModel();t&&t.dispose(),ne.current.subscription&&ne.current.subscription.dispose(),o.unobserve(te.current)}}catch(e){}}))}),[]),(0,c.useEffect)((function(){if(ne.current.instance&&de)return document.addEventListener("keydown",ge,!1),function(){document.removeEventListener("keydown",ge)}}),[M,de]),(0,c.useEffect)((function(){var e=ne.current.instance;if(e&&de){var t=cc(p);uc.editor.setModelLanguage(e.getModel(),t)}}),[p,de]),(0,c.useEffect)((function(){ne.current.instance&&de&&uc.editor.setTheme(_)}),[_,de]),(0,c.useEffect)((function(){var e=ne.current.instance;ie.current=b,e&&de&&(e.updateOptions(h()({},b)),setTimeout((function(){e.getModel().updateOptions(h()({},b))}),200))}),[JSON.stringify(b),de]),(0,c.useEffect)((function(){var e=ne.current.instance;e&&de&&e.layout()}),[i,s,de]);var be=(0,c.useState)(ac(i)),we=l()(be,2),xe=we[0],Se=(we[1],(0,c.useState)(ac(s))),ke=l()(Se,2),_e=ke[0],Ce=ke[1],Pe=h()(h()({},m),{},{width:xe,height:_e,position:"relative"});return(0,g.jsx)("div",{className:"my-monaco-editor",ref:te,style:Pe,children:E&&(0,g.jsx)(rc.CopyToClipboard,{text:u,onCopy:function(){return ec.ZP.success("复制成功")},children:(0,g.jsx)(tc.Z,{title:"复制代码",children:(0,g.jsxs)("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"},children:[(0,g.jsx)("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," 复制代码"]})})})})};var pc=n(26613),fc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg==",gc=function(e){var t=e.img,n=e.buttonProps,i=void 0===n?{}:n,r=e.styles,o=void 0===r?{}:r,a=e.customText,s=e.ButtonText,l=e.ButtonClick,c=e.Buttonclass,u=e.ButtonTwo,d=e.imgStyles,p=e.loading,f=void 0!==p&&p,m=e.className,v=void 0===m?"":m;return(0,g.jsxs)("section",{className:"tc animated fadeIn ".concat(v),style:h()({color:"#999",margin:"100px auto",visibility:f?"hidden":"visible"},o),children:[(0,g.jsx)("img",{src:t||fc,style:h()(h()({},d),{},{pointerEvents:"none",userSelect:"none"})}),(0,g.jsx)("p",{className:"mt20 font14",children:a||"暂时还没有相关数据哦!"}),s&&(0,g.jsx)(Ml.ZP,h()(h()({className:c,onClick:l},i),{},{children:s})),u&&u]})},mc=n(78318),vc=function(e){var t,n,i,o,s,u,d=e.editOffice,p=void 0===d?"view":d,f=e.data,m=e.issaver,v=e.onSaver,y=(e.theme,e.type),b=e.filename,w=e.monacoEditor,x=e.className,S=e.style,k=e.close,_=e.onClose,C=e.hasMask,P=e.disabledDownload,E=e.onImgDimensions,M=e.showNodata,L=e.recordInfo,A=(0,c.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),T=l()(A,2),D=(T[0],T[1],(0,c.useState)("")),N=l()(D,2),I=(N[0],N[1]),B=(0,c.useState)(),R=l()(B,2),O=R[0],F=R[1],z="build"===window.ENV?"/react/build":"",j=location.host.startsWith("localhost")?kl.Z.PROXY_SERVER:kl.Z.API_SERVER,$=(0,c.useRef)();null!==(t=f)&&void 0!==t&&t.startsWith("/api")&&"txt"!==y&&(f=kl.Z.API_SERVER+f);function H(e){return Z.apply(this,arguments)}function Z(){return(Z=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"pdfdata"===t.data.type&&(v(t.data.data),window.removeEventListener("message",H,!1)),console.log("mess---:",t.data);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}b&&w&&(w.filename=b),(0,c.useEffect)((function(){var e,t=null===(e=document.cookie)||void 0===e||null===(e=e.replace(/\s/g,""))||void 0===e?void 0:e.split(";");null==t||t.map((function(e){var t=e.split("=");"_educoder_session"===t[0]&&I(t[1])}))}),[]),(0,c.useEffect)((function(){var e;"office"===y&&(f.indexOf("bigfilescdn.")>-1||f.indexOf("bigfiles1")>-1?F({url:f,fileType:(e=f,e.substring(e.lastIndexOf("/")+1).split(".").pop()),model:f.indexOf("model=edit")?"edit":"view"}):K())}),[y,f]);var K=function(){var e=a()(r()().mark((function e(){var t,n,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("data:",f),t=f,f.startsWith("http")||(t=location.origin+t),n=new URL(t).pathname.split("/").pop(),e.next=6,(0,pc.gJ)({attachment_id:n});case 6:(i=e.sent).url=j+i.url,F(i);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),G=function(){f.startsWith("http")||f.startsWith("blob:")?U():(0,_l.Sv)(b||"educoder",f,b)},U=function(){L&&(0,mc.fc)({id:null==L?void 0:L.id,watch_type:1,course_id:null==L?void 0:L.course_id}),(0,_l.Nd)(b||"educoder",decodeURIComponent(f))};return(0,g.jsxs)("div",{style:h()({},S||{}),className:"".concat(C&&El.bgBlack," ").concat(y?El.wrp:"hide"),children:[k&&(0,g.jsxs)("div",{className:El.close,ref:$,children:[!!E&&(0,g.jsx)(tc.Z,{title:"点击对图片进行批注",getPopupContainer:function(){return $.current},children:(0,g.jsx)("span",{onClick:function(){_(),E()},children:(0,g.jsx)("i",{className:"icon-yulanpizhu"})})}),!P&&(0,g.jsx)(tc.Z,{title:"点击下载此文件",getPopupContainer:function(){return $.current},children:(0,g.jsx)("span",{onClick:U,children:(0,g.jsx)("i",{className:"icon-quxiaozhiding"})})}),m&&(0,g.jsx)(tc.Z,{title:"保存pdf并退出",getPopupContainer:function(){return $.current},children:(0,g.jsx)("span",{className:"",onClick:function(){var e=document.getElementById("pdfiframe");window.addEventListener("message",H,!1),setTimeout((function(){e.contentWindow.postMessage("getData","*")}),300)},children:(0,g.jsx)("i",{className:"icon-baocun"})})}),(0,g.jsx)(tc.Z,{title:"关闭",getPopupContainer:function(){return $.current},children:(0,g.jsx)("span",{className:"",onClick:function(){_()},children:(0,g.jsx)("i",{className:"icon-guanbi1"})})})]}),(0,g.jsx)("div",{className:"".concat(El[x]," ").concat(x," ").concat(El.monaco," ").concat("txt"===y?"show":"hide"),children:"txt"===y&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(dc,h()({},w))})}),"audio"===y&&(0,g.jsx)("audio",{src:"".concat((null===(n=f)||void 0===n?void 0:n.indexOf("http://"))>-1||(null===(i=f)||void 0===i?void 0:i.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(f),autoPlay:!0}),"video"===y&&(0,g.jsx)(g.Fragment,{children:(null===(o=f)||void 0===o?void 0:o.indexOf("http"))>-1?(0,g.jsx)("video",{controls:!0,src:"".concat(f),autoPlay:!0}):(0,g.jsx)("video",{controls:!0,src:"data:video/mp4;base64,".concat(f),autoPlay:!0})}),"office"===y&&O&&(0,g.jsx)("iframe",{src:"".concat(z,"/office.html?key=").concat(O.key,"&url=").concat(btoa(O.url),"&callbackUrl=").concat(j+(O.callbackUrl||""),"&fileType=").concat(O.fileType,"&title=").concat(O.title||"","&model=").concat(p,"&officeServer=").concat(kl.Z.ONLYOFFICE,"&disabledDownload=").concat(!!P)}),"html"===y&&(0,g.jsx)("iframe",{src:f+"&disposition=inline"}),"pdf"===y&&(0,g.jsx)("iframe",{id:"pdfiframe",src:"".concat(z,"/js/pdfview/index.html?filename=").concat(b||"educoder.pdf","&url=").concat(encodeURIComponent(f),"&disabledDownload=").concat(!!P,"&model=").concat(p)}),"image"===y&&(0,g.jsx)("img",{src:"".concat((null===(s=f)||void 0===s?void 0:s.indexOf("http://"))>-1||(null===(u=f)||void 0===u?void 0:u.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(f)}),("other"===y||"download"===y)&&(0,g.jsx)(g.Fragment,{children:M?(0,g.jsx)(gc,{customText:"当前文件不支持预览,可点击下载查看",ButtonTwo:(0,g.jsx)(Ml.ZP,{icon:(0,g.jsx)("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:G,disabled:P,children:"下载"})}):(0,g.jsxs)(Ml.ZP,{type:"primary",size:"middle",onClick:G,disabled:P,children:[(0,g.jsx)(Nl,{}),"点击下载"]})})]})},yc=function(e){var t=e.html,n=(0,c.useRef)(null),i=(0,c.useRef)(null);return(0,c.useEffect)((function(){var e=n.current.attachShadow({mode:"open"});i.current=document.createElement("div"),i.current.className="markdown-body",i.current.innerHTML=t,e.appendChild(i.current);var r=document.createElement("style");return r.textContent='.markdown-body p {\n      margin: 0 0 16px 0 !important;\n      line-height: 28px;\n      white-space: pre-wrap;\n    }\n\n    ol,\n    ul,\n    li {\n      list-style-type: none\n    }\n\n    ol,\n    ul,\n    dl {\n      margin-bottom: 0px;\n    }\n\n    .markdown-body {\n      -ms-text-size-adjust: 100%;\n      -webkit-text-size-adjust: 100%;\n      color: #333;\n      overflow: hidden;\n      font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "华文细黑", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "宋体", Heiti, "黑体", sans-serif;\n      word-break: break-word;\n      font-size: 16px;\n      line-height: 1.6;\n      white-space: normal;\n      word-wrap: break-word;\n      position: relative;\n    }\n\n    .markdown-body ul>li {\n      list-style-type: disc;\n    }\n\n    .markdown-body ol>li {\n      list-style-type: decimal;\n    }\n\n    .markdown-body a {\n      background: transparent;\n    }\n\n    .markdown-body a:active,\n    .markdown-body a:hover {\n      outline: 0;\n    }\n\n    .markdown-body strong {\n      font-weight: bold;\n    }\n\n    .markdown-body h1 {\n      font-size: 2em;\n      margin: 0.67em 0;\n    }\n\n    .markdown-body img {\n      border: 0;\n    }\n\n    .markdown-body hr {\n      -moz-box-sizing: content-box;\n      box-sizing: content-box;\n      height: 0;\n    }\n\n    .markdown-body pre {\n      overflow: auto;\n    }\n\n    .markdown-body code,\n    .markdown-body kbd,\n    .markdown-body pre {\n      font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;\n      font-size: 1em;\n    }\n\n    .markdown-body input {\n      color: inherit;\n      font: inherit;\n      margin: 0;\n    }\n\n    .markdown-body html input[disabled] {\n      cursor: default;\n    }\n\n    .markdown-body input {\n      line-height: normal;\n    }\n\n    .markdown-body input[type="checkbox"] {\n      -moz-box-sizing: border-box;\n      box-sizing: border-box;\n      padding: 0;\n    }\n\n    .markdown-body table {\n      border-collapse: collapse;\n      border-spacing: 0;\n    }\n\n    .markdown-body td,\n    .markdown-body th {\n      padding: 0;\n    }\n\n    .markdown-body * {\n      -moz-box-sizing: border-box;\n      box-sizing: border-box;\n    }\n\n    .markdown-body input {\n      font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";\n    }\n\n    .markdown-body a {\n      color: #4183c4;\n      text-decoration: none;\n    }\n\n    .markdown-body a:hover,\n    .markdown-body a:active {\n      text-decoration: underline;\n    }\n\n    .markdown-body hr {\n      height: 0;\n      margin: 15px 0;\n      overflow: hidden;\n      background: transparent;\n      border: 0;\n      border-bottom: 1px solid #ddd;\n    }\n\n    .markdown-body hr:before {\n      display: table;\n      content: "";\n    }\n\n    .markdown-body hr:after {\n      display: table;\n      clear: both;\n      content: "";\n    }\n\n    .markdown-body h1,\n    .markdown-body h2,\n    .markdown-body h3,\n    .markdown-body h4,\n    .markdown-body h5,\n    .markdown-body h6 {\n      margin-top: 15px;\n      margin-bottom: 15px;\n      line-height: 1.1;\n    }\n\n    .markdown-body h1 {\n      font-size: 30px;\n    }\n\n    .markdown-body h2 {\n      font-size: 21px;\n    }\n\n    .markdown-body h3 {\n      font-size: 16px;\n    }\n\n    .markdown-body h4 {\n      font-size: 14px;\n    }\n\n    .markdown-body h5 {\n      font-size: 12px;\n    }\n\n    .markdown-body h6 {\n      font-size: 11px;\n    }\n\n    .markdown-body blockquote {\n      margin: 0;\n    }\n\n    .markdown-body ul,\n    .markdown-body ol {\n      padding: 0;\n      margin-top: 0;\n      margin-bottom: 0;\n    }\n\n    ul.linenums,\n    ol.linenums {\n      padding: 16px 0 0 56px !important;\n    }\n\n    .markdown-body ul,\n    .markdown-body ol {\n      padding-left: 2em;\n    }\n\n\n    .markdown-body ol ol,\n    .markdown-body ul ol {\n      list-style-type: lower-roman;\n    }\n\n    .markdown-body ul ul ol,\n    .markdown-body ul ol ol,\n    .markdown-body ol ul ol,\n    .markdown-body ol ol ol {\n      list-style-type: lower-alpha;\n    }\n\n    .markdown-body dd {\n      margin-left: 0;\n    }\n\n    .markdown-body code {\n      font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;\n      font-size: 12px;\n    }\n\n    .markdown-body pre {\n      margin-top: 0;\n      margin-bottom: 0;\n      font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;\n    }\n\n    .markdown-body .octicon {\n      font: normal normal 16px octicons-anchor;\n      line-height: 1;\n      display: inline-block;\n      text-decoration: none;\n      -webkit-font-smoothing: antialiased;\n      -moz-osx-font-smoothing: grayscale;\n      -webkit-user-select: none;\n      -moz-user-select: none;\n      -ms-user-select: none;\n      user-select: none;\n    }\n\n    .markdown-body .octicon-link:before {\n      content: \'\f05c\';\n    }\n\n    .markdown-body>*:first-child {\n      margin-top: 0 !important;\n    }\n\n    .markdown-body>*:last-child {\n      margin-bottom: 0 !important;\n    }\n\n    .markdown-body .anchor {\n      position: absolute;\n      top: 0;\n      left: 0;\n      display: block;\n      padding-right: 6px;\n      padding-left: 30px;\n      margin-left: -30px;\n    }\n\n    .markdown-body .anchor:focus {\n      outline: none;\n    }\n\n    .markdown-body h1,\n    .markdown-body h2,\n    .markdown-body h3,\n    .markdown-body h4,\n    .markdown-body h5,\n    .markdown-body h6 {\n      position: relative;\n      margin-top: 1em;\n      margin-bottom: 16px;\n      font-weight: bold;\n      line-height: 1.4;\n    }\n\n    .markdown-body h1 .octicon-link,\n    .markdown-body h2 .octicon-link,\n    .markdown-body h3 .octicon-link,\n    .markdown-body h4 .octicon-link,\n    .markdown-body h5 .octicon-link,\n    .markdown-body h6 .octicon-link {\n      display: none;\n      color: #000;\n      vertical-align: middle;\n    }\n\n    .markdown-body h1:hover .anchor,\n    .markdown-body h2:hover .anchor,\n    .markdown-body h3:hover .anchor,\n    .markdown-body h4:hover .anchor,\n    .markdown-body h5:hover .anchor,\n    .markdown-body h6:hover .anchor {\n      padding-left: 8px;\n      margin-left: -30px;\n      text-decoration: none;\n    }\n\n    .markdown-body h1:hover .anchor .octicon-link,\n    .markdown-body h2:hover .anchor .octicon-link,\n    .markdown-body h3:hover .anchor .octicon-link,\n    .markdown-body h4:hover .anchor .octicon-link,\n    .markdown-body h5:hover .anchor .octicon-link,\n    .markdown-body h6:hover .anchor .octicon-link {\n      display: inline-block;\n    }\n\n    .markdown-body h1 {\n      padding-bottom: 0.3em;\n      font-size: 2.25em;\n      line-height: 1.2;\n      border-bottom: 1px solid #eee;\n    }\n\n    .markdown-body h1 .anchor {\n      line-height: 1;\n    }\n\n    .markdown-body h2 {\n      padding-bottom: 0.3em;\n      font-size: 1.75em;\n      line-height: 1.225;\n      border-bottom: 1px solid #eee;\n    }\n\n    .markdown-body h2 .anchor {\n      line-height: 1;\n    }\n\n    .markdown-body h3 {\n      font-size: 1.5em;\n      line-height: 1.43;\n    }\n\n    .markdown-body h3 .anchor {\n      line-height: 1.2;\n    }\n\n    .markdown-body h4 {\n      font-size: 1.25em;\n    }\n\n    .markdown-body h4 .anchor {\n      line-height: 1.2;\n    }\n\n    .markdown-body h5 {\n      font-size: 1em;\n    }\n\n    .markdown-body h5 .anchor {\n      line-height: 1.1;\n    }\n\n    .markdown-body h6 {\n      font-size: 1em;\n      color: #777;\n    }\n\n    .markdown-body h6 .anchor {\n      line-height: 1.1;\n    }\n\n    .markdown-body p,\n    .markdown-body blockquote,\n    .markdown-body ul,\n    .markdown-body ol,\n    .markdown-body dl,\n    .markdown-body table,\n    .markdown-body pre {\n      margin-top: 0;\n      margin-bottom: 16px;\n    }\n\n    .markdown-body ul ul,\n    .markdown-body ul ol,\n    .markdown-body ol ol,\n    .markdown-body ol ul {\n      margin-top: 0;\n      margin-bottom: 0;\n    }\n\n    .markdown-body li>p {\n      margin-top: 16px;\n    }\n\n    .markdown-body dl {\n      padding: 0;\n    }\n\n    .markdown-body dl dt {\n      padding: 0;\n      margin-top: 16px;\n      font-size: 1em;\n      font-style: italic;\n      font-weight: bold;\n    }\n\n    .markdown-body dl dd {\n      padding: 0 16px;\n      margin-bottom: 16px;\n    }\n\n    .markdown-body blockquote {\n      padding: 0 15px;\n      color: #777;\n      border-left: 4px solid #ddd;\n    }\n\n    .markdown-body blockquote> :first-child {\n      margin-top: 0;\n    }\n\n    .markdown-body blockquote> :last-child {\n      margin-bottom: 0;\n    }\n\n    .markdown-body table {\n      display: block;\n      width: 100%;\n      overflow: auto;\n      word-break: normal;\n      word-break: keep-all;\n    }\n\n    .markdown-body table th {\n      font-weight: bold;\n      text-align: revert;\n    }\n\n    .markdown-body table th,\n    .markdown-body table td {\n      padding: 6px 13px;\n      border: 1px solid #ddd;\n    }\n\n    .markdown-body table tr {\n      background-color: #fff;\n      border-top: 1px solid #ccc;\n    }\n\n    .markdown-body table tr:nth-child(2n) {\n      background-color: #f8f8f8;\n    }\n\n    .markdown-body img {\n      max-width: 100%;\n      -moz-box-sizing: border-box;\n      box-sizing: border-box;\n    }\n\n    .markdown-body code {\n      padding: 0;\n      padding-top: 0.2em;\n      padding-bottom: 0.2em;\n      margin: 0;\n      font-size: 85%;\n      background-color: rgba(0, 0, 0, 0.04);\n      border-radius: 3px;\n    }\n\n    .markdown-body code:has(.katex) {\n      background-color: transparent;\n    }\n\n    .markdown-body code:before,\n    .markdown-body code:after {\n      letter-spacing: -0.2em;\n      content: "\\00a0";\n    }\n\n    .markdown-body pre>code {\n      padding: 0;\n      margin: 0;\n      font-size: 100%;\n      word-break: normal;\n      white-space: pre;\n      background: transparent;\n      border: 0;\n    }\n\n    .markdown-body .highlight {\n      margin-bottom: 16px;\n    }\n\n    .markdown-body .highlight pre,\n    .markdown-body pre {\n      padding: 16px;\n      overflow: auto;\n      font-size: 85%;\n      line-height: 1.45;\n      background-color: #f7f7f7;\n      border-radius: 3px;\n    }\n\n    .markdown-body .highlight pre {\n      margin-bottom: 0;\n      word-break: normal;\n    }\n\n    .markdown-body pre {\n      word-wrap: normal;\n    }\n\n    .markdown-body pre code {\n      display: inline;\n      max-width: initial;\n      padding: 0;\n      margin: 0;\n      overflow: initial;\n      line-height: inherit;\n      word-wrap: normal;\n      background-color: transparent;\n      border: 0;\n    }\n\n    .markdown-body pre code:before,\n    .markdown-body pre code:after {\n      content: normal;\n    }\n\n    .markdown-body kbd {\n      display: inline-block;\n      padding: 3px 5px;\n      font-size: 11px;\n      line-height: 10px;\n      color: #555;\n      vertical-align: middle;\n      background-color: #fcfcfc;\n      border: solid 1px #ccc;\n      border-bottom-color: #bbb;\n      border-radius: 3px;\n      box-shadow: inset 0 -1px 0 #bbb;\n    }\n\n    .markdown-body .pl-c {\n      color: #969896;\n    }\n\n    .markdown-body .pl-c1,\n    .markdown-body .pl-mdh,\n    .markdown-body .pl-mm,\n    .markdown-body .pl-mp,\n    .markdown-body .pl-mr,\n    .markdown-body .pl-s1 .pl-v,\n    .markdown-body .pl-s3,\n    .markdown-body .pl-sc,\n    .markdown-body .pl-sv {\n      color: #0086b3;\n    }\n\n    .markdown-body .pl-e,\n    .markdown-body .pl-en {\n      color: #795da3;\n    }\n\n    .markdown-body .pl-s1 .pl-s2,\n    .markdown-body .pl-smi,\n    .markdown-body .pl-smp,\n    .markdown-body .pl-stj,\n    .markdown-body .pl-vo,\n    .markdown-body .pl-vpf {\n      color: #333;\n    }\n\n    .markdown-body .pl-ent {\n      color: #63a35c;\n    }\n\n    .markdown-body .pl-k,\n    .markdown-body .pl-s,\n    .markdown-body .pl-st {\n      color: #a71d5d;\n    }\n\n    .markdown-body .pl-pds,\n    .markdown-body .pl-s1,\n    .markdown-body .pl-s1 .pl-pse .pl-s2,\n    .markdown-body .pl-sr,\n    .markdown-body .pl-sr .pl-cce,\n    .markdown-body .pl-sr .pl-sra,\n    .markdown-body .pl-sr .pl-sre,\n    .markdown-body .pl-src {\n      color: #df5000;\n    }\n\n    .markdown-body .pl-mo,\n    .markdown-body .pl-v {\n      color: #1d3e81;\n    }\n\n    .markdown-body .pl-id {\n      color: #b52a1d;\n    }\n\n    .markdown-body .pl-ii {\n      background-color: #b52a1d;\n      color: #f8f8f8;\n    }\n\n    .markdown-body .pl-sr .pl-cce {\n      color: #63a35c;\n      font-weight: bold;\n    }\n\n    .markdown-body .pl-ml {\n      color: #693a17;\n    }\n\n    .markdown-body .pl-mh,\n    .markdown-body .pl-mh .pl-en,\n    .markdown-body .pl-ms {\n      color: #1d3e81;\n      font-weight: bold;\n    }\n\n    .markdown-body .pl-mq {\n      color: #008080;\n    }\n\n    .markdown-body .pl-mi {\n      color: #333;\n      font-style: italic;\n    }\n\n    .markdown-body .pl-mb {\n      color: #333;\n      font-weight: bold;\n    }\n\n    .markdown-body .pl-md,\n    .markdown-body .pl-mdhf {\n      background-color: #ffecec;\n      color: #bd2c00;\n    }\n\n    .markdown-body .pl-mdht,\n    .markdown-body .pl-mi1 {\n      background-color: #eaffea;\n      color: #55a532;\n    }\n\n    .markdown-body .pl-mdr {\n      color: #795da3;\n      font-weight: bold;\n    }\n\n    .markdown-body kbd {\n      display: inline-block;\n      padding: 3px 5px;\n      font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;\n      line-height: 10px;\n      color: #555;\n      vertical-align: middle;\n      background-color: #fcfcfc;\n      border: solid 1px #ccc;\n      border-bottom-color: #bbb;\n      border-radius: 3px;\n      box-shadow: inset 0 -1px 0 #bbb;\n    }\n\n    .markdown-body .task-list-item {\n      list-style-type: none;\n    }\n\n    .markdown-body .task-list-item+.task-list-item {\n      margin-top: 3px;\n    }\n\n    .markdown-body .task-list-item input {\n      float: left;\n      margin: 0.3em 0 0.25em -1.6em;\n      vertical-align: middle;\n    }\n\n    .markdown-body :checked+.radio-label {\n      z-index: 1;\n      position: relative;\n      border-color: #4183c4;\n    }\n\n\n    /*! Pretty printing styles. Used with prettify.js. */\n    /* SPAN elements with the classes below are added by prettyprint. */\n    .pln {\n      color: #000\n    }\n\n    /* plain text */\n\n    @media screen {\n      .str {\n        color: #080\n      }\n\n      /* string content */\n      .kwd {\n        color: #008\n      }\n\n      /* a keyword */\n      .com {\n        color: #800\n      }\n\n      /* a comment */\n      .typ {\n        color: #606\n      }\n\n      /* a type name */\n      .lit {\n        color: #066\n      }\n\n      /* a literal value */\n      /* punctuation, lisp open bracket, lisp close bracket */\n      .pun,\n      .opn,\n      .clo {\n        color: #660\n      }\n\n      .tag {\n        color: #008\n      }\n\n      /* a markup tag name */\n      .atn {\n        color: #606\n      }\n\n      /* a markup attribute name */\n      .atv {\n        color: #080\n      }\n\n      /* a markup attribute value */\n      .dec,\n      .var {\n        color: #606\n      }\n\n      /* a declaration; a variable name */\n      .fun {\n        color: red\n      }\n\n      /* a function name */\n    }\n\n    /* Use higher contrast and text-weight for printable form. */\n    @media print,\n    projection {\n      .str {\n        color: #060\n      }\n\n      .kwd {\n        color: #006;\n        font-weight: bold\n      }\n\n      .com {\n        color: #600;\n        font-style: italic\n      }\n\n      .typ {\n        color: #404;\n        font-weight: bold\n      }\n\n      .lit {\n        color: #044\n      }\n\n      .pun,\n      .opn,\n      .clo {\n        color: #440\n      }\n\n      .tag {\n        color: #006;\n        font-weight: bold\n      }\n\n      .atn {\n        color: #404\n      }\n\n      .atv {\n        color: #060\n      }\n    }\n\n    /* Put a border around prettyprinted code snippets. */\n    pre.prettyprint {\n      padding: 2px;\n      /* border: 1px solid #888 */\n    }\n\n    /* Specify class=linenums on a pre to get line numbering */\n    ol.linenums {\n      margin-top: 0;\n      margin-bottom: 0\n    }\n\n    /* IE indents via margin-left */\n    li.L0,\n    li.L1,\n    li.L2,\n    li.L3,\n    li.L5,\n    li.L6,\n    li.L7,\n    li.L8 {\n      list-style-type: none\n    }\n\n    /* Alternate shading for lines */\n    li.L1,\n    li.L3,\n    li.L5,\n    li.L7,\n    li.L9 {\n      background: #eee\n    }\n\n    .markdown-body p,\n    .markdown-body blockquote,\n    .markdown-body ul,\n    .markdown-body ol,\n    .markdown-body dl,\n    .markdown-body table,\n    .markdown-body pre {\n      margin-top: 0;\n      margin-bottom: 16px;\n    }',e.appendChild(r),function(){e.innerHTML=""}}),[]),(0,c.useEffect)((function(){i.current&&(i.current.innerHTML=t)}),[t]),(0,g.jsx)("div",{ref:n})};var bc="@▁@",wc=/]*>/g;var xc=function(e){var t=e.value,n=void 0===t?"":t,i=e.className,r=e.showTextOnly,o=e.showLines,a=e.style,s=void 0===a?{}:a,u=e.stylesPrev,d=void 0===u?{}:u,p=e.highlightKeywords,f=e.showProgramFill,m=(e.isProgramFill,e.disabledFill),v=void 0!==m&&m,b=e.programFillValue,x=e.onFillChange,S=void 0===x?function(e){}:x,k=e.onFillBlur,_=void 0===k?function(){}:k,C=e.onFillFocus,P=void 0===C?function(){}:C,E=function(e){var t=new RegExp("\\b(".concat(["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"].join("|"),")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s>]*)"),"gi");return e.replace(t,"").trim()}(String(n||"")),M=(0,c.useState)(""),T=l()(M,2),N=T[0],I=T[1],B=(0,c.useState)("office"),R=l()(B,2),O=R[0],j=R[1],$=(0,c.useState)([]),H=l()($,2),Z=H[0],G=H[1],U=(0,c.useRef)("a"+(0,Pl.Z)()),V={},W=function(e){return//i.test(e||"")};var q=function(e){return!r&&W(E)?e:e.replace(/([\s\S]+?)<\/style>/gim,(function(e,t){var n=t.replace(/(\n|\r)/g,"").split("}"),i=[];return n.map((function(e){""!=e&&i.push(".".concat(U.current," ").concat(e))})),"")}))},Y=(0,c.useMemo)((function(){try{E=E.replace(/\(\/attachments\/download\//g,"("+kl.Z.API_SERVER+"/attachments/download/").replace(/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,"("+kl.Z.API_SERVER+"/api/attachments/").replace(/\"\/api\/attachments\/|\"\/attachments\/download\//g,'"'+kl.Z.API_SERVER+"/api/attachments/").replace(/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,'"'+kl.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,"\n")}catch(e){}if(f){var e=-1;return E=E.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,(function(t,n,i){var r;return function(e,t,n){var i=document.createElement(e===bc?"input":"textarea");i.style.width="100%",i.style.height=e===bc?"40px":"151px",i.rows=5,i.spellcheck=!1,i.name="edu-program-fill",i.placeholder="请输入",i.dataset.id=t;var r=Object.keys(V).length;return V[r]=i,'')}(t,++e,null==b||null===(r=b[e])||void 0===r?void 0:r.value.replaceAll("<","<").replaceAll(">",">"))})),'
    '.concat(q(E||""),"
    ")}var t=q(E);t=K(t);var n=F();E.match(/\[TOC\]/)&&(t=t.replace("

    [TOC]

    ",D()),L()),t=t.replace(/(__special_katext_id_\d+__)/g,(function(e,t){var i=n[t],r=i.type,o=i.expression;return(0,Cl.renderToString)(function(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}(o)||"",{displayMode:"block"===r,throwOnError:!1,output:"html"})})),t=t.replace(/▁/g,"▁▁▁▁▁"),z();var i=document.createElement("div");return i.innerHTML=t,r?i.innerText:p?(ee(i,p.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),i.innerHTML):(setTimeout((function(){return ie()}),500),i.innerHTML)}),[E,p]);(0,c.useEffect)((function(){te.current&&te.current.querySelectorAll(["input","textarea"]).forEach((function(e){e.oninput=X,e.onblur=Q,e.onfocus=J}))}),[Z]),(0,c.useEffect)((function(){if(null!=b&&b.length)try{var e,t=te.current.querySelectorAll(".edu-program-fill-score"),n=te.current.querySelectorAll('[name="edu-program-fill"]'),i=w()(n.entries());try{for(i.s();!(e=i.n()).done;){var r,o,a,s=l()(e.value,2),c=s[0],u=s[1];u.value=(null==b||null===(r=b[c])||void 0===r?void 0:r.value)||"","warning"===(null==b||null===(o=b[c])||void 0===o?void 0:o.type)?u.className="program-fill-warning":"success"===(null==b||null===(a=b[c])||void 0===a?void 0:a.type)?u.className="program-fill-success":u.className=""}}catch(e){i.e(e)}finally{i.f()}var h,d=w()(t.entries());try{for(d.s();!(h=d.n()).done;){var p,f,g=l()(h.value,2),m=g[0];g[1].innerHTML=null!=b&&null!==(p=b[m])&&void 0!==p&&p.score?"".concat(null==b||null===(f=b[m])||void 0===f?void 0:f.score,"分"):""}}catch(e){d.e(e)}finally{d.f()}G(b)}catch(e){console.log(e,"error")}}),[b]);var X=function(e){Z[e.target.dataset.id]=Z[e.target.dataset.id]||{},Z[e.target.dataset.id].value=e.target.value,G(y()(Z)),S(Z,e.target.dataset.id)},Q=function(e){Z[e.target.dataset.id]=Z[e.target.dataset.id]||{},Z[e.target.dataset.id].value=e.target.value,G(y()(Z)),_(Z,e.target.dataset.id)},J=function(e){Z[e.target.dataset.id]=Z[e.target.dataset.id]||{},Z[e.target.dataset.id].value=e.target.value,G(y()(Z)),P(Z,e.target.dataset.id)};function ee(e,t){return e.childNodes.forEach((function(e){if(e.childNodes.length>0)ee(e,t);else if("IMG"!==e.nodeName)if(e.innerHTML){var n;e.innerHTML=null===(n=e.innerHTML)||void 0===n?void 0:n.replace(new RegExp(t,"gi"),'$&')}else{var i=document.createElement("span");i.innerHTML=e.textContent.replace(new RegExp(t,"gi"),'$&'),e.replaceWith(i)}}))}var te=(0,c.useRef)();function ne(e){var t=e.target;if("A"===t.tagName.toUpperCase()){var n=t.getAttribute("href");if(n.indexOf("office")>-1)e.preventDefault(),I(n),j("office");else if(n.indexOf("application/pdf")>-1)e.preventDefault(),I(n),j("pdf");else if(n.indexOf("text/html")>-1)e.preventDefault(),I(n),j("html");else if(n.startsWith("#")){e.preventDefault();var i=document.getElementById(n.replace("#",""));i&&i.scrollIntoView(!0)}}}A.WebkitLineClamp=o,o&&(s=h()(h()({},s),A));var ie=function(){var e,t=null===(e=te.current)||void 0===e?void 0:e.querySelectorAll("video");null==t||t.forEach((function(e){if(e.oncontextmenu=function(){return!1},e.src.indexOf(".m3u8")>-1)if(e.canPlayType("application/vnd.apple.mpegurl"));else if(Sl.isSupported()){var t=new Sl;t.loadSource(e.src),t.attachMedia(e)}}))};return(0,c.useEffect)((function(){if(te.current&&Y&&Y.match(wc)&&window.PR.prettyPrint(),te.current)return te.current.addEventListener("click",ne),function(){var e;null===(e=te.current)||void 0===e||e.removeEventListener("click",ne),z(),L()}}),[Y,te.current,ne]),(0,c.useEffect)((function(){var e,t=function(e){e.preventDefault(),e.clipboardData.setData("text",window.getSelection().toString())};return null===(e=te.current)||void 0===e||e.addEventListener("copy",t),function(){var e;null===(e=te.current)||void 0===e||e.removeEventListener("copy",t)}}),[te.current]),(0,g.jsxs)(g.Fragment,{children:[r&&(0,g.jsx)("div",{ref:te,children:Y}),!r&&!W(Y)&&(0,g.jsx)("div",{ref:te,style:h()({},s),className:"".concat(i||""," ").concat(v?"disabled-fill":""," markdown-body ").concat(U.current),dangerouslySetInnerHTML:{__html:Y}}),!r&&W(Y)&&(0,g.jsx)(yc,{html:Y}),(0,g.jsx)(vc,{close:!0,data:N,type:null!=N&&N.length?O:"",style:h()({},d),onClose:function(){return I("")}})]})},Sc=n(43830),kc=n(10975),_c=n(89780),Cc=n.n(_c),Pc=(n(6313),n(25717),n(99498),n(25419),n(67549),function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})}),Ec=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Mc(e){var t=e.onActionCallback,n=e.title,i=e.icon,r=e.actionName,o=e.className,a=void 0===o?"":o,s=e.children;return(0,g.jsxs)("a",{title:n,className:a,onClick:function(){t(r)},children:[(0,g.jsx)("i",{className:"".concat(i)}),s]})}var Lc=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,r=e.onActionCallback,o=e.fullScreen,a=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(Ec,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,g.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&c.map((function(e,t){return(0,g.jsx)("li",{children:e.actionName?(0,g.jsx)(Mc,h()(h()({},e),{},{onActionCallback:r})):(0,g.jsx)("span",{className:"v-line"})},t)})),n?(0,g.jsx)("li",{children:(0,g.jsx)(Mc,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:r,children:(0,g.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("li",{children:(0,g.jsx)(Mc,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:r,children:(0,g.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,g.jsx)("li",{children:(0,g.jsx)(Mc,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:r,children:(0,g.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,g.jsx)("li",{children:(0,g.jsx)(Mc,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:r,children:(0,g.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,g.jsx)("li",{children:l}),(0,g.jsx)("li",{className:"btn-full-screen",children:(0,g.jsx)(Mc,{icon:"".concat(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:r})})]})},Ac=n(80619),Tc=n.n(Ac),Dc=n(47074),Nc=n.n(Dc),Ic=n(4676),Bc=function(e){Tc()(n,e);var t=Nc()(n);function n(e){var i;Ul()(this,n),i=t.call(this,e);var r=window.document;return i.node=r.createElement("div"),r.body.appendChild(i.node),i}return Wl()(n,[{key:"render",value:function(){var e=this.props.children;return(0,Ic.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),n}(c.Component),Rc={labelCol:{span:4},wrapperCol:{span:20}},Oc=function(e){var t=e.callback,n=e.onCancel;return(0,g.jsxs)(Sc.Z,h()(h()({},Rc),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,g.jsx)(Sc.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,g.jsx)(kc.Z,{})}),(0,g.jsx)(Sc.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,g.jsx)(kc.Z,{})}),(0,g.jsxs)("div",{className:"flex-container flex-end",children:[(0,g.jsx)(Ml.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,g.jsx)(Ml.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},Fc=n(75914),zc=Fc.default.Option,jc={labelCol:{span:4},wrapperCol:{span:20}},$c={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]},Hc=function(e){var t=e.callback,n=e.onCancel,i=(0,c.useState)("python"),r=l()(i,2),o=r[0],a=r[1];return(0,g.jsxs)(Sc.Z,h()(h()({},jc),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,g.jsx)(Sc.Z.Item,{label:"代码语言",name:"language",children:(0,g.jsx)(Fc.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){a($c[e][1])},children:Object.keys($c).map((function(e){return(0,g.jsx)(zc,{value:e,children:$c[e][0]},e)}))})}),(0,g.jsx)(Sc.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,g.jsx)(Zc,{mode:o})}),(0,g.jsxs)("div",{className:"flex-container flex-end",children:[(0,g.jsx)(Ml.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,g.jsx)(Ml.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))};function Zc(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,o=void 0===r?{}:r,a=(0,c.useRef)(),s=(0,c.useState)(),u=l()(s,2),d=u[0],p=u[1];return(0,c.useEffect)((function(){if(d){var e=function(e){var t=e.getValue();n&&n(t)};return d.on("change",e),function(){d.off("change",e)}}}),[d,n]),(0,c.useEffect)((function(){d&&d.setOption("mode",i)}),[d,i]),(0,c.useEffect)((function(){d&&(t===d.getValue()&&""!==t||setTimeout((function(){d.setValue(t||"")}),300))}),[d,t]),(0,c.useEffect)((function(){if(a.current&&!d){var e=Cc().fromTextArea(a.current,h()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},o));p(e)}}),[a.current,d]),(0,g.jsx)("div",{className:"my-codemirror-container",children:(0,g.jsx)("textarea",{ref:a})})}var Kc=n(77736),Gc=n(84105),Uc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Vc=function(e,t){return c.createElement(Tl.Z,(0,Ll.Z)({},e,{ref:t,icon:Uc}))};var Wc=c.forwardRef(Vc),qc=n(4635),Yc=n(93664),Xc=n(50298),Qc=n(62646),Jc=n(99153),eu=n(84851);function tu(){return"function"==typeof BigInt}function nu(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function iu(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var i=t||"0",r=i.split("."),o=r[0]||"0",a=r[1]||"0";"0"===o&&"0"===a&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:i,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(i)}}function ru(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ou(e){var t=String(e);if(ru(e)){var n=Number(t.slice(t.indexOf("e-")+2)),i=t.match(/\.(\d+)/);return null!=i&&i[1]&&(n+=i[1].length),n}return t.includes(".")&&su(t)?t.length-t.indexOf(".")-1:0}function au(e){var t=String(e);if(ru(e)){if(e>Number.MAX_SAFE_INTEGER)return String(tu()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":iu("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),cu=function(){function e(t){(0,Jc.Z)(this,e),(0,qc.Z)(this,"origin",""),(0,qc.Z)(this,"number",void 0),(0,qc.Z)(this,"empty",void 0),nu(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return(0,eu.Z)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var i=this.number+n;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":au(this.number):this.origin}}]),e}();function uu(e){return tu()?new lu(e):new cu(e)}function hu(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var r=iu(e),o=r.negativeStr,a=r.integerStr,s=r.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!i){var h=uu(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u));return hu(h.toString(),t,n,i)}return 0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return".0"===l?c:"".concat(c).concat(l)}var du=uu,pu=n(36901),fu=n(34280);var gu=n(8654),mu=n(48736);var vu=n(49658),yu=function(){var e=(0,c.useState)(!1),t=(0,Xc.Z)(e,2),n=t[0],i=t[1];return(0,fu.Z)((function(){i((0,vu.Z)())}),[]),n},bu=n(16089);function wu(e){var t=e.prefixCls,n=e.upNode,i=e.downNode,r=e.upDisabled,o=e.downDisabled,a=e.onStep,s=c.useRef(),l=c.useRef([]),u=c.useRef();u.current=a;var h=function(){clearTimeout(s.current)},d=function(e,t){e.preventDefault(),h(),u.current(t),s.current=setTimeout((function e(){u.current(t),s.current=setTimeout(e,200)}),600)};if(c.useEffect((function(){return function(){h(),l.current.forEach((function(e){return bu.Z.cancel(e)}))}}),[]),yu())return null;var p="".concat(t,"-handler"),g=f()(p,"".concat(p,"-up"),(0,qc.Z)({},"".concat(p,"-up-disabled"),r)),m=f()(p,"".concat(p,"-down"),(0,qc.Z)({},"".concat(p,"-down-disabled"),o)),v=function(){return l.current.push((0,bu.Z)(h))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return c.createElement("div",{className:"".concat(p,"-wrap")},c.createElement("span",(0,Ll.Z)({},y,{onMouseDown:function(e){d(e,!0)},"aria-label":"Increase Value","aria-disabled":r,className:g}),n||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),c.createElement("span",(0,Ll.Z)({},y,{onMouseDown:function(e){d(e,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:m}),i||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function xu(e){var t="number"==typeof e?au(e):iu(e).fullStr;return t.includes(".")?iu(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var Su=n(30292),ku=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],_u=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Cu=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Pu=function(e){var t=du(e);return t.isInvalidate()?null:t},Eu=c.forwardRef((function(e,t){var n=e.prefixCls,i=e.className,r=e.style,o=e.min,a=e.max,s=e.step,l=void 0===s?1:s,u=e.defaultValue,h=e.value,d=e.disabled,p=e.readOnly,g=e.upHandler,m=e.downHandler,v=e.keyboard,y=e.changeOnWheel,b=void 0!==y&&y,w=e.controls,x=void 0===w||w,S=(e.classNames,e.stringMode),k=e.parser,_=e.formatter,C=e.precision,P=e.decimalSeparator,E=e.onChange,M=e.onInput,L=e.onPressEnter,A=e.onStep,T=e.changeOnBlur,D=void 0===T||T,N=e.domRef,I=(0,Qc.Z)(e,ku),B="".concat(n,"-input"),R=c.useRef(null),O=c.useState(!1),F=(0,Xc.Z)(O,2),z=F[0],j=F[1],$=c.useRef(!1),H=c.useRef(!1),Z=c.useRef(!1),K=c.useState((function(){return du(null!=h?h:u)})),G=(0,Xc.Z)(K,2),U=G[0],V=G[1];var W=c.useCallback((function(e,t){if(!t)return C>=0?C:Math.max(ou(e),ou(l))}),[C,l]),q=c.useCallback((function(e){var t=String(e);if(k)return k(t);var n=t;return P&&(n=n.replace(P,".")),n.replace(/[^\w.-]+/g,"")}),[k,P]),Y=c.useRef(""),X=c.useCallback((function(e,t){if(_)return _(e,{userTyping:t,input:String(Y.current)});var n="number"==typeof e?au(e):e;if(!t){var i=W(n,t);if(su(n)&&(P||i>=0))n=hu(n,P||".",i)}return n}),[_,W,P]),Q=c.useState((function(){var e=null!=u?u:h;return U.isInvalidate()&&["string","number"].includes((0,Yc.Z)(e))?Number.isNaN(e)?"":e:X(U.toString(),!1)})),J=(0,Xc.Z)(Q,2),ee=J[0],te=J[1];function ne(e,t){te(X(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}Y.current=ee;var ie,re,oe=c.useMemo((function(){return Pu(a)}),[a,C]),ae=c.useMemo((function(){return Pu(o)}),[o,C]),se=c.useMemo((function(){return!(!oe||!U||U.isInvalidate())&&oe.lessEquals(U)}),[oe,U]),le=c.useMemo((function(){return!(!ae||!U||U.isInvalidate())&&U.lessEquals(ae)}),[ae,U]),ce=function(e,t){var n=(0,c.useRef)(null);return[function(){try{var t=e.selectionStart,i=e.selectionEnd,r=e.value,o=r.substring(0,t),a=r.substring(i);n.current={start:t,end:i,value:r,beforeTxt:o,afterTxt:a}}catch(e){}},function(){if(e&&n.current&&t)try{var i=e.value,r=n.current,o=r.beforeTxt,a=r.afterTxt,s=r.start,l=i.length;if(i.startsWith(o))l=o.length;else if(i.endsWith(a))l=i.length-n.current.afterTxt.length;else{var c=o[s-1],u=i.indexOf(c,s-1);-1!==u&&(l=u+1)}e.setSelectionRange(l,l)}catch(e){(0,mu.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]}(R.current,z),ue=(0,Xc.Z)(ce,2),he=ue[0],de=ue[1],pe=function(e){return oe&&!e.lessEquals(oe)?oe:ae&&!ae.lessEquals(e)?ae:null},fe=function(e){return!pe(e)},ge=function(e,t){var n,i=e,r=fe(i)||i.isEmpty();if(i.isEmpty()||t||(i=pe(i)||i,r=!0),!p&&!d&&r){var o=i.toString(),a=W(o,t);return a>=0&&(i=du(hu(o,".",a)),fe(i)||(i=du(hu(o,".",a,!0)))),i.equals(U)||(n=i,void 0===h&&V(n),null==E||E(i.isEmpty()?null:Cu(S,i)),void 0===h&&ne(i,t)),i}return U},me=(ie=(0,c.useRef)(0),re=function(){bu.Z.cancel(ie.current)},(0,c.useEffect)((function(){return re}),[]),function(e){re(),ie.current=(0,bu.Z)((function(){e()}))}),ve=function e(t){if(he(),Y.current=t,te(t),!H.current){var n=q(t),i=du(n);i.isNaN()||ge(i,!0)}null==M||M(t),me((function(){var n=t;k||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},ye=function(e){var t;if(!(e&&se||!e&&le)){$.current=!1;var n=du(Z.current?xu(l):l);e||(n=n.negate());var i=(U||du(0)).add(n.toString()),r=ge(i,!1);null==A||A(Cu(S,r),{offset:Z.current?xu(l):l,type:e?"up":"down"}),null===(t=R.current)||void 0===t||t.focus()}},be=function(e){var t,n=du(q(ee));t=n.isNaN()?ge(U,e):ge(n,e),void 0!==h?ne(U,!1):t.isNaN()||ne(t,!1)};c.useEffect((function(){if(b&&z){var e=function(e){ye(e.deltaY<0),e.preventDefault()},t=R.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}}));return(0,fu.o)((function(){U.isInvalidate()||ne(U,!1)}),[C,_]),(0,fu.o)((function(){var e=du(h);V(e);var t=du(q(ee));e.equals(t)&&$.current&&!_||ne(e,$.current)}),[h]),(0,fu.o)((function(){_&&de()}),[ee]),c.createElement("div",{ref:N,className:f()(n,i,(0,qc.Z)((0,qc.Z)((0,qc.Z)((0,qc.Z)((0,qc.Z)({},"".concat(n,"-focused"),z),"".concat(n,"-disabled"),d),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),U.isNaN()),"".concat(n,"-out-of-range"),!U.isInvalidate()&&!fe(U))),style:r,onFocus:function(){j(!0)},onBlur:function(){D&&be(!1),j(!1),$.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;$.current=!0,Z.current=n,"Enter"===t&&(H.current||($.current=!1),be(!1),null==L||L(e)),!1!==v&&!H.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(ye("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){$.current=!1,Z.current=!1},onCompositionStart:function(){H.current=!0},onCompositionEnd:function(){H.current=!1,ve(R.current.value)},onBeforeInput:function(){$.current=!0}},x&&c.createElement(wu,{prefixCls:n,upNode:g,downNode:m,upDisabled:se,downDisabled:le,onStep:ye}),c.createElement("div",{className:"".concat(B,"-wrap")},c.createElement("input",(0,Ll.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":U.isInvalidate()?null:U.toString(),step:l},I,{ref:(0,gu.sQ)(R,t),className:B,value:ee,onChange:function(e){ve(e.target.value)},disabled:d,readOnly:p}))))})),Mu=c.forwardRef((function(e,t){var n=e.disabled,i=e.style,r=e.prefixCls,o=void 0===r?"rc-input-number":r,a=e.value,s=e.prefix,l=e.suffix,u=e.addonBefore,h=e.addonAfter,d=e.className,p=e.classNames,f=(0,Qc.Z)(e,_u),g=c.useRef(null),m=c.useRef(null),v=c.useRef(null),y=function(e){v.current&&(0,Su.nH)(v.current,e)};return c.useImperativeHandle(t,(function(){return e=v.current,t={focus:y,nativeElement:g.current.nativeElement||m.current},"undefined"!=typeof Proxy&&e?new Proxy(e,{get:function(e,n){if(t[n])return t[n];var i=e[n];return"function"==typeof i?i.bind(e):i}}):e;var e,t})),c.createElement(pu.Q,{className:d,triggerFocus:y,prefixCls:o,value:a,disabled:n,style:i,prefix:s,suffix:l,addonAfter:h,addonBefore:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:g},c.createElement(Eu,(0,Ll.Z)({prefixCls:o,disabled:n,ref:v,domRef:m,className:null==p?void 0:p.input},f)))}));var Lu=Mu,Au=n(62487),Tu=n(82855),Du=n(48755),Nu=n(60840),Iu=n(2171),Bu=n(83397),Ru=n(31756),Ou=n(56553),Fu=n(24971),zu=n(70045),ju=n(66604),$u=n(53075),Hu=n(64910),Zu=n(39082),Ku=n(63356),Gu=n(56119),Uu=n(16931),Vu=n(51636),Wu=n(17835);const qu=(e,t)=>{let{componentCls:n,borderRadiusSM:i,borderRadiusLG:r}=e;const o="lg"===t?r:i;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},Yu=e=>{const{componentCls:t,lineWidth:n,lineType:i,borderRadius:r,inputFontSizeSM:o,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:h,paddingBlockLG:d,paddingInlineLG:p,colorTextDescription:f,motionDurationMid:g,handleHoverColor:m,handleOpacity:v,paddingInline:y,paddingBlock:b,handleBg:w,handleActiveBg:x,colorTextDisabled:S,borderRadiusSM:k,borderRadiusLG:_,controlWidth:C,handleBorderColor:P,filledHandleBg:E,lineHeightLG:M,calc:L}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ku.Wf)(e)),(0,$u.ik)(e)),{display:"inline-block",width:C,margin:0,padding:0,borderRadius:r}),(0,Zu.qG)(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${(0,ju.bf)(n)} ${i} ${P}`}}})),(0,Zu.H8)(e,{[`${t}-handler-wrap`]:{background:E,[`${t}-handler-down`]:{borderBlockStart:`${(0,ju.bf)(n)} ${i} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),(0,Zu.vc)(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${(0,ju.bf)(n)} ${i} ${P}`}}})),(0,Zu.Mu)(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:M,borderRadius:_,[`input${t}-input`]:{height:L(s).sub(L(n).mul(2)).equal(),padding:`${(0,ju.bf)(d)} ${(0,ju.bf)(p)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:k,[`input${t}-input`]:{height:L(l).sub(L(n).mul(2)).equal(),padding:`${(0,ju.bf)(h)} ${(0,ju.bf)(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Ku.Wf)(e)),(0,$u.s7)(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:_,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:k}}},(0,Zu.ir)(e)),(0,Zu.S5)(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ku.Wf)(e)),{width:"100%",padding:`${(0,ju.bf)(b)} ${(0,ju.bf)(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:r,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),(0,$u.nz)(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:v,height:"100%",borderStartStartRadius:0,borderStartEndRadius:r,borderEndEndRadius:r,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:f,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ju.bf)(n)} ${i} ${P}`,transition:`all ${g} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:m}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Ku.Ro)()),{color:f,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:r},[`${t}-handler-down`]:{borderEndEndRadius:r}},qu(e,"lg")),qu(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:S}})}]},Xu=e=>{const{componentCls:t,paddingBlock:n,paddingInline:i,inputAffixPadding:r,controlWidth:o,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:h,motionDurationMid:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${(0,ju.bf)(n)} 0`}},(0,$u.ik)(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:i,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${(0,ju.bf)(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${(0,ju.bf)(h)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:i,marginInlineStart:r,transition:`margin ${d}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(i).equal()}})}};var Qu=(0,Uu.I$)("InputNumber",(e=>{const t=(0,Vu.IX)(e,(0,Hu.e)(e));return[Yu(t),Xu(t),(0,Gu.c)(t)]}),(e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto",i=e.controlHeightSM-2*e.lineWidth;return Object.assign(Object.assign({},(0,Hu.T)(e)),{controlWidth:90,handleWidth:i,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Wu.t(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0,handleVisibleWidth:!0===n?i:0})}),{unitless:{handleOpacity:!0}}),Ju=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:i}=c.useContext(Du.E_),r=c.useRef(null);c.useImperativeHandle(t,(()=>r.current));const{className:o,rootClassName:a,size:s,disabled:l,prefixCls:u,addonBefore:h,addonAfter:d,prefix:p,suffix:g,bordered:m,readOnly:v,status:y,controls:b,variant:w}=e,x=Ju(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",u),k=(0,Bu.Z)(S),[_,C,P]=Qu(S,k),{compactSize:E,compactItemClassnames:M}=(0,zu.ri)(S,i);let L=c.createElement(Wc,{className:`${S}-handler-up-inner`}),A=c.createElement(Gc.Z,{className:`${S}-handler-down-inner`});const T="boolean"==typeof b?b:void 0;"object"==typeof b&&(L=void 0===b.upIcon?L:c.createElement("span",{className:`${S}-handler-up-inner`},b.upIcon),A=void 0===b.downIcon?A:c.createElement("span",{className:`${S}-handler-down-inner`},b.downIcon));const{hasFeedback:D,status:N,isFormItemInput:I,feedbackIcon:B}=c.useContext(Ou.aM),R=(0,Tu.F)(N,y),O=(0,Ru.Z)((e=>{var t;return null!==(t=null!=s?s:E)&&void 0!==t?t:e})),F=c.useContext(Iu.Z),z=null!=l?l:F,[j,$]=(0,Fu.Z)("inputNumber",w,m),H=D&&c.createElement(c.Fragment,null,B),Z=f()({[`${S}-lg`]:"large"===O,[`${S}-sm`]:"small"===O,[`${S}-rtl`]:"rtl"===i,[`${S}-in-form-item`]:I},C),K=`${S}-group`;return _(c.createElement(Lu,Object.assign({ref:r,disabled:z,className:f()(P,k,o,a,M),upHandler:L,downHandler:A,prefixCls:S,readOnly:v,controls:T,prefix:p,suffix:H||g,addonBefore:h&&c.createElement(Au.Z,{form:!0,space:!0},h),addonAfter:d&&c.createElement(Au.Z,{form:!0,space:!0},d),classNames:{input:Z,variant:f()({[`${S}-${j}`]:$},(0,Tu.Z)(S,R,D)),affixWrapper:f()({[`${S}-affix-wrapper-sm`]:"small"===O,[`${S}-affix-wrapper-lg`]:"large"===O,[`${S}-affix-wrapper-rtl`]:"rtl"===i,[`${S}-affix-wrapper-without-controls`]:!1===b||z},C),wrapper:f()({[`${K}-rtl`]:"rtl"===i},C),groupWrapper:f()({[`${S}-group-wrapper-sm`]:"small"===O,[`${S}-group-wrapper-lg`]:"large"===O,[`${S}-group-wrapper-rtl`]:"rtl"===i,[`${S}-group-wrapper-${j}`]:$},(0,Tu.Z)(`${S}-group-wrapper`,R,D),C)}},x)))})),th=eh;th._InternalPanelDoNotUseOrYouWillBeFired=e=>c.createElement(Nu.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},c.createElement(eh,Object.assign({},e)));var nh=th,ih=n(47889);var rh=kl.Z.API_SERVER,oh=Sc.Z.useForm,ah={width:280,marginRight:10},sh={labelCol:{span:5},wrapperCol:{span:19}},lh=function(e){var t=e.callback,n=e.onCancel,i=oh(),r=l()(i,1)[0],o=(0,c.useRef)();function a(e,t){-1!==e.status?r.setFieldsValue({src:"/api/attachments/".concat(e.id),type:t.type}):ec.ZP.error(e.message)}return(0,g.jsxs)(Sc.Z,h()(h()({form:r},sh),{},{className:"upload-image-panel",onFinish:function(e){o.current.width=r.getFieldValue("width"),o.current.align=r.getFieldValue("align"),t(e,o.current)},style:{width:470,overflow:"hidden"},children:[(0,g.jsx)(Sc.Z.Item,{label:"图片地址",required:!0,children:(0,g.jsxs)("div",{className:"flex-container",children:[(0,g.jsx)(Sc.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,g.jsx)(kc.Z,{style:ah})}),(0,g.jsx)(ch,{onFileChange:function(e){var t=e.target.files[0];o.current=t,uh(t,a)}})]})}),(0,g.jsx)(Sc.Z.Item,{label:"图片描述",name:"alt",children:(0,g.jsx)(kc.Z,{style:{width:264}})}),(0,g.jsx)(Sc.Z.Item,{label:"图片宽度",name:"width",children:(0,g.jsxs)(Kc.Z,{children:[(0,g.jsx)(Sc.Z.Item,{name:"width",style:{margin:0},children:(0,g.jsx)(nh,{style:{width:264}})}),(0,g.jsx)("span",{className:"ml8",children:"%"})]})}),(0,g.jsx)(Sc.Z.Item,{label:"对齐方式",name:"align",children:(0,g.jsx)(ih.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"左对齐"},{value:"center",label:"居中对齐"},{value:"right",label:"右对齐"}]})}),(0,g.jsx)("aside",{children:(0,g.jsxs)(Sc.Z.Item,{style:{textAlign:"right",position:"relative",right:-98},children:[(0,g.jsx)(Ml.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,g.jsx)(Ml.ZP,{type:"default",onClick:n,children:"取消"})]})})]}))};function ch(e){var t=e.onFileChange;return(0,g.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,g.jsx)("input",{type:"file",onChange:t})]})}function uh(e,t){if(!e)throw new String("没有文件");var n=new FormData;n.append("editormd-image-file",e),n.append("file_param_name","editormd-image-file"),n.append("byxhr","true");var i=new window.XMLHttpRequest;i.withCredentials=!0,i.addEventListener("load",(function(n){t(JSON.parse(n.target.responseText),e)}),!1),i.addEventListener("error",(function(e){console.error(e)}),!1),i.open("POST","".concat(rh,"/api/attachments.json")),i.send(n)}var hh=n(91662),dh=n(77019),ph="imageDimensions___a7crR",fh="img___Kroat",gh="fullWidth___c492T",mh=n(41622),vh=function(e,t){return(vh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function yh(e,t){function n(){this.constructor=e}vh(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function bh(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function wh(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]',"select"),this.addActionButton(n,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(n,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(n,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(n,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(n,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(n,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(n,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach((function(e){var n=document.createElement("div");n.className=""+t.toolbarButtonStyleClass.name,n.setAttribute("data-type-name",e.typeName),n.innerHTML=e.icon,n.addEventListener("click",(function(){t.markerToolbarButtonClicked(n,e)})),t.buttons.push(n),t.markerButtons.push(n)})),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var i=document.createElement("div");i.className=this.toolbarBlockStyleClass.name,i.style.whiteSpace="nowrap",i.style.display=!1!==this.uiStyleSettings.resultButtonBlockVisible?"":"none",this.uiContainer.appendChild(i),this.addActionButton(i,'',"render"),this.addActionButton(i,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},e.prototype.addButtonClickListener=function(e){this.buttonClickListeners.push(e)},e.prototype.removeButtonClickListener=function(e){this.buttonClickListeners.indexOf(e)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(e),1)},e.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},e.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var e=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var t=0;t0&&this.buttonClickListeners.forEach((function(e){return e("marker",t)})),this.markerButtonOverflowBlock.style.display="none"},e.prototype.actionToolbarButtonClicked=function(e,t){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach((function(e){return e("action",t)})),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},e.prototype.setActiveButton=function(e){this.resetButtonStyles(),e.className=e.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),e.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},e.prototype.setActiveMarkerButton=function(e){var t=this.markerButtons.find((function(t){return t.getAttribute("data-type-name")===e}));t&&this.setActiveButton(t)},e.prototype.setCurrentMarker=function(e){var t=this;this.currentMarker=e,this.buttons.filter((function(e){return/delete|notes/.test(e.getAttribute("data-action"))})).forEach((function(e){void 0===t.currentMarker?(e.style.fillOpacity="0.4",e.style.pointerEvents="none"):(e.style.fillOpacity="1",e.style.pointerEvents="all")}))},e}(),Ah=function(){function e(e,t,n,i){this.panels=[],this.panelButtons=[],this.markerjsContainer=e,this.displayMode=t,this.uiStyleSettings=n,this.styles=i,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return e.prototype.addStyles=function(){var e;this.toolboxStyleClass=this.styles.addClass(new Mh("toolbox","\n width: 100%;\n flex-shrink: 0;\n display: flex;\n flex-direction: column;\n font-family: sans-serif;\n "+("popup"===this.displayMode?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+"\n box-sizing: content-box;\n "+("popup"===this.displayMode?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+"\n "+("inline"===this.displayMode?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n "+("inline"===this.displayMode?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n overflow: hidden;\n ")),this.toolboxStyleColorsClass=this.styles.addClass(new Mh("toolbox_colors","\n color: "+this.uiStyleSettings.toolboxColor+";\n "));var t=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Mh("toolbox-button-row","\n display: flex;\n cursor: default;\n box-sizing: content-box;\n ")),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Mh("toolbox-button-row_colors","\n background-color: "+this.uiStyleSettings.toolbarBackgroundColor+";\n ")),this.toolboxPanelRowStyleClass=this.styles.addClass(new Mh("toolbox-panel-row","\n display: flex;\n "+("inline"===this.displayMode?"position: absolute;":"")+"\n "+("inline"===this.displayMode?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+"\n cursor: default;\n height: "+1.5*this.uiStyleSettings.toolbarHeight+"px;\n "+("inline"===this.displayMode?"width: 100%;":"")+"\n box-sizing: content-box;\n ")),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Mh("toolbox-panel-row_colors","\n background-color: "+(null!==(e=this.uiStyleSettings.toolboxBackgroundColor)&&void 0!==e?e:this.uiStyleSettings.toolbarBackgroundHoverColor)+";\n ")),this.toolboxButtonStyleClass=this.styles.addClass(new Mh("toolbox_button","\n display: inline-block;\n width: "+(this.uiStyleSettings.toolbarHeight-2*t)+"px;\n height: "+(this.uiStyleSettings.toolbarHeight-2*t)+"px;\n padding: "+t+"px;\n box-sizing: content-box;\n ")),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Mh("toolbox-button_colors","\n fill: "+this.uiStyleSettings.toolbarColor+";\n ")),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Mh("toolbox-active-button_colors","\n background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+";\n fill: "+this.uiStyleSettings.toolbarColor+";\n ")),this.styles.addRule(new Eh("."+this.toolboxButtonStyleColorsClass.name+":hover","\n background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+"\n ")),this.styles.addRule(new Eh("."+this.toolboxButtonStyleClass.name+" svg","\n height: "+this.uiStyleSettings.toolbarHeight/2+"px;\n "))},e.prototype.show=function(e){var t;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=e,this.uiContainer.className=this.toolboxStyleClass.name+" "+(null!==(t=this.uiStyleSettings.toolboxStyleColorsClassName)&&void 0!==t?t:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},e.prototype.setPanelButtons=function(e){var t,n,i=this;this.panels=e,void 0!==this.uiContainer&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+(null!==(t=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)&&void 0!==t?t:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+(null!==(n=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)&&void 0!==n?n:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach((function(e){var t;e.uiStyleSettings=i.uiStyleSettings;var n=document.createElement("div");n.className=i.toolboxButtonStyleClass.name+" "+(null!==(t=i.uiStyleSettings.toolboxButtonStyleColorsClassName)&&void 0!==t?t:i.toolboxButtonStyleColorsClass.name),n.innerHTML=e.icon,n.title=e.title,n.addEventListener("click",(function(){i.panelButtonClick(e)})),i.panelButtons.push(n),i.buttonRow.appendChild(n)})),"inline"===this.displayMode?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},e.prototype.panelButtonClick=function(e){var t=this,n=-1;if(e!==this.activePanel){n=this.panels.indexOf(e),this.panelRow.innerHTML="";var i=e.getUi();i.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(i),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=e}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout((function(){"inline"===t.displayMode?t.panelRow.style.display="none":t.panelRow.style.visibility="hidden"}),200);this.panelButtons.forEach((function(e,i){var r,o;e.className=t.toolboxButtonStyleClass.name+" "+(i===n?""+(null!==(r=t.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)&&void 0!==r?r:t.toolboxActiveButtonStyleColorsClass.name):""+(null!==(o=t.uiStyleSettings.toolboxButtonStyleColorsClassName)&&void 0!==o?o:t.toolboxButtonStyleColorsClass.name))}))},e}(),Th=function(e,t){this.title=e,this.icon=t},Dh=function(e){function t(t,n,i,r){var o=e.call(this,t,r||'')||this;return o.colors=[],o.addTransparent=!1,o.colorBoxes=[],o.colors=n,o.currentColor=i,o.setCurrentColor=o.setCurrentColor.bind(o),o.getColorBox=o.getColorBox.bind(o),o}return yh(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");return t.style.overflow="hidden",t.style.whiteSpace="nowrap",this.colors.forEach((function(n){var i=e.getColorBox(n);t.appendChild(i),e.colorBoxes.push(i)})),t},t.prototype.getColorBox=function(e){var t=this,n=this.uiStyleSettings.toolbarHeight/4,i=this.uiStyleSettings.toolbarHeight-n,r=document.createElement("div");r.style.display="inline-block",r.style.boxSizing="content-box",r.style.width=i-2+"px",r.style.height=i-2+"px",r.style.padding="1px",r.style.marginRight="2px",r.style.marginBottom="2px",r.style.borderWidth="2px",r.style.borderStyle="solid",r.style.borderRadius=(i+2)/2+"px",r.style.borderColor=e===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",r.addEventListener("click",(function(){t.setCurrentColor(e,r)}));var o=document.createElement("div");return o.style.display="inline-block",o.style.width=i-2+"px",o.style.height=i-2+"px",o.style.backgroundColor=e,o.style.borderRadius=i/2+"px","transparent"===e&&(o.style.fill=this.uiStyleSettings.toolboxAccentColor,o.innerHTML='\n \n '),r.appendChild(o),r},t.prototype.setCurrentColor=function(e,t){var n=this;this.currentColor=e,this.colorBoxes.forEach((function(e){e.style.borderColor=e===t?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onColorChanged&&this.onColorChanged(e)},t}(Th),Nh=function(){function e(e,t,n){this._state="new",this._isSelected=!1,this._container=e,this._overlayContainer=t,this.globalSettings=n,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(e.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.ownsTarget=function(e){return!1},Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),e.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},e.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},e.prototype.pointerDown=function(e,t){},e.prototype.dblClick=function(e,t){},e.prototype.manipulate=function(e){},e.prototype.pointerUp=function(e){this.stateChanged()},e.prototype.dispose=function(){},e.prototype.addMarkerVisualToContainer=function(e){this.container.childNodes.length>0?this.container.insertBefore(e,this.container.childNodes[0]):this.container.appendChild(e)},e.prototype.getState=function(){return{typeName:e.typeName,state:this.state,notes:this.notes}},e.prototype.restoreState=function(e){this._state=e.state,this.notes=e.notes},e.prototype.scale=function(e,t){},e.prototype.colorChanged=function(e){this.onColorChanged&&this.onColorChanged(e),this.stateChanged()},e.prototype.fillColorChanged=function(e){this.onFillColorChanged&&this.onFillColorChanged(e),this.stateChanged()},e.prototype.stateChanged=function(){if(this.onStateChanged&&"creating"!==this.state&&"new"!==this.state){var e=this.getState();void 0!==this.manipulationStartState&&(this.manipulationStartState.state="select"),e.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(e)&&this.onStateChanged(this)}},e.typeName="MarkerBase",e}(),Ih=function(){function e(){this.findGripByVisual=this.findGripByVisual.bind(this)}return e.prototype.findGripByVisual=function(e){return this.topLeft.ownsTarget(e)?this.topLeft:this.topCenter.ownsTarget(e)?this.topCenter:this.topRight.ownsTarget(e)?this.topRight:this.centerLeft.ownsTarget(e)?this.centerLeft:this.centerRight.ownsTarget(e)?this.centerRight:this.bottomLeft.ownsTarget(e)?this.bottomLeft:this.bottomCenter.ownsTarget(e)?this.bottomCenter:this.bottomRight.ownsTarget(e)?this.bottomRight:void 0},e}(),Bh=function(){function e(){this.GRIP_SIZE=10,this.visual=Sh.createGroup(),this.visual.appendChild(Sh.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Sh.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return e.prototype.ownsTarget=function(e){return e===this.visual||e===this.visual.childNodes[0]||e===this.visual.childNodes[1]},e}(),Rh=function(){function e(){}return e.toITransformMatrix=function(e){return{a:e.a,b:e.b,c:e.c,d:e.d,e:e.e,f:e.f}},e.toSVGMatrix=function(e,t){return e.a=t.a,e.b=t.b,e.c=t.c,e.d=t.d,e.e=t.e,e.f=t.f,e},e}(),Oh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.left=0,r.top=0,r.width=0,r.height=0,r.defaultSize={x:50,y:20},r.offsetX=0,r.offsetY=0,r.rotationAngle=0,r.CB_DISTANCE=10,r._suppressMarkerCreateEvent=!1,r.container.transform.baseVal.appendItem(Sh.createTransform()),r.setupControlBox(),r}return yh(t,e),Object.defineProperty(t.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visual",{get:function(){return this._visual},set:function(e){this._visual=e;var t=Sh.createTransform();this._visual.transform.baseVal.appendItem(t)},enumerable:!1,configurable:!0}),t.prototype.ownsTarget=function(t){return!!e.prototype.ownsTarget.call(this,t)||!!(void 0!==this.controlGrips.findGripByVisual(t)||void 0!==this.rotatorGrip&&this.rotatorGrip.ownsTarget(t))},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),"new"===this.state&&(this.left=t.x,this.top=t.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var i=this.unrotatePoint(t);if(this.manipulationStartX=i.x,this.manipulationStartY=i.y,this.offsetX=i.x-this.left,this.offsetY=i.y-this.top,"new"!==this.state)if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(n),void 0!==this.activeGrip)this._state="resize";else if(void 0!==this.rotatorGrip&&this.rotatorGrip.ownsTarget(n)){this.activeGrip=this.rotatorGrip;var r=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=r.x-this.width/2,this.top=r.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var o=this.container.transform.baseVal.getItem(0);o.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(o,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},t.prototype.pointerUp=function(t){var n=this.state;e.prototype.pointerUp.call(this,t),"creating"===this.state&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(t),this._state="select","creating"===n&&this.onMarkerCreated&&!1===this._suppressMarkerCreateEvent&&this.onMarkerCreated(this)},t.prototype.moveVisual=function(e){this.visual.style.transform="translate("+e.x+"px, "+e.y+"px)"},t.prototype.manipulate=function(e){var t=this.unrotatePoint(e);"creating"===this.state?this.resize(e):"move"===this.state?(this.left=this.manipulationStartLeft+(t.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(t.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):"resize"===this.state?this.resize(t):"rotate"===this.state&&this.rotate(e)},t.prototype.resize=function(e){var t=this.manipulationStartLeft,n=this.manipulationStartWidth,i=this.manipulationStartTop,r=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:t=this.manipulationStartLeft+e.x-this.manipulationStartX,n=this.manipulationStartWidth+this.manipulationStartLeft-t;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:n=this.manipulationStartWidth+e.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:i=this.manipulationStartTop+e.y-this.manipulationStartY,r=this.manipulationStartHeight+this.manipulationStartTop-i;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:r=this.manipulationStartHeight+e.y-this.manipulationStartY}n>=0?(this.left=t,this.width=n):(this.left=t+n,this.width=-n),r>=0?(this.top=i,this.height=r):(this.top=i+r,this.height=-r),this.setSize()},t.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},t.prototype.rotate=function(e){if(Math.abs(e.x-this.centerX)>.1){var t=Math.sign(e.x-this.centerX);this.rotationAngle=180*Math.atan((e.y-this.centerY)/(e.x-this.centerX))/Math.PI+90*t,this.applyRotation()}},t.prototype.applyRotation=function(){var e=this.container.transform.baseVal.getItem(0);e.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(e,0)},t.prototype.rotatePoint=function(e){if(0===this.rotationAngle)return e;var t=this.container.getCTM(),n=Sh.createPoint(e.x,e.y);return{x:(n=n.matrixTransform(t)).x,y:n.y}},t.prototype.unrotatePoint=function(e){if(0===this.rotationAngle)return e;var t=this.container.getCTM();t=t.inverse();var n=Sh.createPoint(e.x,e.y);return{x:(n=n.matrixTransform(t)).x,y:n.y}},t.prototype.select=function(){e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},t.prototype.deselect=function(){e.prototype.deselect.call(this),this.controlBox.style.display="none"},t.prototype.setupControlBox=function(){this.controlBox=Sh.createGroup();var e=Sh.createTransform();e.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(e),this.container.appendChild(this.controlBox),this.controlRect=Sh.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),!0!==this.globalSettings.disableRotation&&(this.rotatorGripLine=Sh.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ih,this.addControlGrips(),this.controlBox.style.display="none"},t.prototype.adjustControlBox=function(){var e=this.controlBox.transform.baseVal.getItem(0);e.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(e,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),void 0!==this.rotatorGripLine&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},t.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),!0!==this.globalSettings.disableRotation&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},t.prototype.createGrip=function(){var e=new Bh;return e.visual.transform.baseVal.appendItem(Sh.createTransform()),this.controlBox.appendChild(e.visual),e},t.prototype.positionGrips=function(){var e=this.controlGrips.topLeft.GRIP_SIZE,t=-e/2,n=t,i=(this.width+this.CB_DISTANCE)/2-e/2,r=(this.height+this.CB_DISTANCE)/2-e/2,o=this.height+this.CB_DISTANCE-e/2,a=this.width+this.CB_DISTANCE-e/2;this.positionGrip(this.controlGrips.topLeft.visual,t,n),this.positionGrip(this.controlGrips.topCenter.visual,i,n),this.positionGrip(this.controlGrips.topRight.visual,a,n),this.positionGrip(this.controlGrips.centerLeft.visual,t,r),this.positionGrip(this.controlGrips.centerRight.visual,a,r),this.positionGrip(this.controlGrips.bottomLeft.visual,t,o),this.positionGrip(this.controlGrips.bottomCenter.visual,i,o),this.positionGrip(this.controlGrips.bottomRight.visual,a,o),void 0!==this.rotatorGrip&&this.positionGrip(this.rotatorGrip.visual,i,n-3*this.CB_DISTANCE)},t.prototype.positionGrip=function(e,t,n){var i=e.transform.baseVal.getItem(0);i.setTranslate(t,n),e.transform.baseVal.replaceItem(i,0)},t.prototype.hideControlBox=function(){this.controlBox.style.display="none"},t.prototype.showControlBox=function(){this.controlBox.style.display=""},t.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Rh.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Rh.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},e.prototype.getState.call(this))},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t);var n=t;this.left=n.left,this.top=n.top,this.width=n.width,this.height=n.height,this.rotationAngle=n.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Rh.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,n.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Rh.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,n.containerTransformMatrix))},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n);var i=this.rotatePoint({x:this.left,y:this.top}),r=this.unrotatePoint({x:i.x*t,y:i.y*n});this.left=r.x,this.top=r.y,this.width=this.width*t,this.height=this.height*n,this.adjustControlBox()},t}(Nh),Fh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.fillColor="transparent",r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.opacity=1,r.setStrokeColor=r.setStrokeColor.bind(r),r.setFillColor=r.setFillColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.createVisual=r.createVisual.bind(r),r}return yh(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.visual)},t.prototype.createVisual=function(){this.visual=Sh.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),"new"===this.state&&(this.createVisual(),this.moveVisual(t),this._state="creating")},t.prototype.manipulate=function(t){e.prototype.manipulate.call(this,t)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this.setSize()},t.prototype.setSize=function(){e.prototype.setSize.call(this),Sh.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},t.prototype.pointerUp=function(t){e.prototype.pointerUp.call(this,t),this.setSize()},t.prototype.setStrokeColor=function(e){this.strokeColor=e,this.visual&&Sh.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(e),this.stateChanged()},t.prototype.setFillColor=function(e){this.fillColor=e,this.visual&&Sh.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},t.prototype.setStrokeWidth=function(e){this.strokeWidth=e,this.visual&&Sh.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},t.prototype.setStrokeDasharray=function(e){this.strokeDasharray=e,this.visual&&Sh.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},t.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},e.prototype.getState.call(this))},t.prototype.restoreState=function(t){var n=t;this.fillColor=n.fillColor,this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.opacity=n.opacity,this.createVisual(),e.prototype.restoreState.call(this,t),this.setSize()},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.setSize()},t.title="Rectangle marker",t}(Oh),zh=function(e){function t(t,n,i,r){var o=e.call(this,t,r||'')||this;return o.widths=[],o.widthBoxes=[],o.widths=n,o.currentWidth=i,o.setCurrentWidth=o.setCurrentWidth.bind(o),o}return yh(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");return t.style.display="flex",t.style.overflow="hidden",t.style.flexGrow="2",this.widths.forEach((function(n){var i=document.createElement("div");i.style.display="flex",i.style.flexGrow="2",i.style.alignItems="center",i.style.justifyContent="space-between",i.style.padding="5px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.borderColor=n===e.currentWidth?e.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){e.setCurrentWidth(n,i)})),t.appendChild(i);var r=document.createElement("div");r.innerText=n.toString(),r.style.marginRight="5px",i.appendChild(r);var o=document.createElement("div");o.style.minHeight="20px",o.style.flexGrow="2",o.style.display="flex",o.style.alignItems="center";var a=document.createElement("hr");a.style.minWidth="20px",a.style.border="0px",a.style.borderTop=n+"px solid "+e.uiStyleSettings.toolboxColor,a.style.flexGrow="2",o.appendChild(a),i.appendChild(o),e.widthBoxes.push(i)})),t},t.prototype.setCurrentWidth=function(e,t){var n=this;this.currentWidth=e,this.widthBoxes.forEach((function(e){e.style.borderColor=e===t?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},t}(Th),jh=function(e){function t(t,n,i,r){var o=e.call(this,t,r||'')||this;return o.styles=[],o.styleBoxes=[],o.styles=n,o.currentStyle=i,o.setCurrentStyle=o.setCurrentStyle.bind(o),o}return yh(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");return t.style.display="flex",t.style.overflow="hidden",t.style.flexGrow="2",this.styles.forEach((function(n){var i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="space-between",i.style.padding="5px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.overflow="hidden",i.style.maxWidth=100/e.styles.length-5+"%",i.style.borderColor=n===e.currentStyle?e.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){e.setCurrentStyle(n,i)})),t.appendChild(i);var r=document.createElement("div");r.style.minHeight="20px",r.style.flexGrow="2",r.style.overflow="hidden";var o='\n \n ";r.innerHTML=o,i.appendChild(r),e.styleBoxes.push(i)})),t},t.prototype.setCurrentStyle=function(e,t){var n=this;this.currentStyle=e,this.styleBoxes.forEach((function(e){e.style.borderColor=e===t?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},t}(Th),$h=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.strokePanel=new Dh("Line color",i.defaultColorSet,i.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.strokeWidthPanel=new zh("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new jh("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r}return yh(t,e),Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=e.prototype.getState.call(this);return n.typeName=t.typeName,n},t.typeName="FrameMarker",t.title="Frame marker",t.icon='',t}(Fh),Hh=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Zh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.x1=0,r.y1=0,r.x2=0,r.y2=0,r.defaultLength=50,r.manipulationStartX=0,r.manipulationStartY=0,r.manipulationStartX1=0,r.manipulationStartY1=0,r.manipulationStartX2=0,r.manipulationStartY2=0,r.setupControlBox(),r}return yh(t,e),t.prototype.ownsTarget=function(t){return!!e.prototype.ownsTarget.call(this,t)||!(!this.grip1.ownsTarget(t)&&!this.grip2.ownsTarget(t))},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),this.manipulationStartX=t.x,this.manipulationStartY=t.y,"new"===this.state&&(this.x1=t.x,this.y1=t.y,this.x2=t.x,this.y2=t.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,"new"!==this.state&&(this.select(),this.grip1.ownsTarget(n)?this.activeGrip=this.grip1:this.grip2.ownsTarget(n)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},t.prototype.pointerUp=function(t){var n=this.state;e.prototype.pointerUp.call(this,t),"creating"===this.state&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(t),this._state="select","creating"===n&&this.onMarkerCreated&&this.onMarkerCreated(this)},t.prototype.adjustVisual=function(){},t.prototype.manipulate=function(e){"creating"===this.state?this.resize(e):"move"===this.state?(this.x1=this.manipulationStartX1+e.x-this.manipulationStartX,this.y1=this.manipulationStartY1+e.y-this.manipulationStartY,this.x2=this.manipulationStartX2+e.x-this.manipulationStartX,this.y2=this.manipulationStartY2+e.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):"resize"===this.state&&this.resize(e)},t.prototype.resize=function(e){switch(this.activeGrip){case this.grip1:this.x1=e.x,this.y1=e.y;break;case this.grip2:case void 0:this.x2=e.x,this.y2=e.y}this.adjustVisual(),this.adjustControlBox()},t.prototype.select=function(){e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},t.prototype.deselect=function(){e.prototype.deselect.call(this),this.controlBox.style.display="none"},t.prototype.setupControlBox=function(){this.controlBox=Sh.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},t.prototype.adjustControlBox=function(){this.positionGrips()},t.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},t.prototype.createGrip=function(){var e=new Bh;return e.visual.transform.baseVal.appendItem(Sh.createTransform()),this.controlBox.appendChild(e.visual),e},t.prototype.positionGrips=function(){var e=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-e/2,this.y1-e/2),this.positionGrip(this.grip2.visual,this.x2-e/2,this.y2-e/2)},t.prototype.positionGrip=function(e,t,n){var i=e.transform.baseVal.getItem(0);i.setTranslate(t,n),e.transform.baseVal.replaceItem(i,0)},t.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},e.prototype.getState.call(this))},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t);var n=t;this.x1=n.x1,this.y1=n.y1,this.x2=n.x2,this.y2=n.y2},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.x1=this.x1*t,this.y1=this.y1*n,this.x2=this.x2*t,this.y2=this.y2*n,this.adjustVisual(),this.adjustControlBox()},t}(Nh),Kh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.setStrokeColor=r.setStrokeColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.strokePanel=new Dh("Line color",i.defaultColorSet,i.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.strokeWidthPanel=new zh("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new jh("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r}return yh(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.visual&&t!==this.selectorLine&&t!==this.visibleLine)},t.prototype.createVisual=function(){this.visual=Sh.createGroup(),this.selectorLine=Sh.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Sh.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),"new"===this.state&&(this.createVisual(),this.adjustVisual(),this._state="creating")},t.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Sh.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Sh.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Sh.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},t.prototype.setStrokeColor=function(e){this.strokeColor=e,this.adjustVisual(),this.colorChanged(e)},t.prototype.setStrokeWidth=function(e){this.strokeWidth=e,this.adjustVisual()},t.prototype.setStrokeDasharray=function(e){this.strokeDasharray=e,this.adjustVisual(),this.stateChanged()},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t);var n=t;this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.createVisual(),this.adjustVisual()},t.typeName="LineMarker",t.title="Line marker",t.icon='',t}(Zh),Gh=function(e){function t(t,n,i,r){var o=e.call(this,t,r||'')||this;return o.fonts=[],o.fontBoxes=[],o.fonts=n,o.currentFont=i,o.setCurrentFont=o.setCurrentFont.bind(o),o}return yh(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");return t.style.overflow="hidden",t.style.flexGrow="2",this.fonts.forEach((function(n){var i=document.createElement("div");i.style.display="inline-block",i.style.alignItems="center",i.style.justifyContent="space-between",i.style.padding="5px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.overflow="hidden",i.style.maxWidth=100/e.fonts.length-5+"%",i.style.borderColor=n===e.currentFont?e.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){e.setCurrentFont(n,i)})),t.appendChild(i);var r=document.createElement("div");r.style.display="flex",r.style.minHeight="20px",r.style.flexGrow="2",r.style.fontFamily=n,r.style.overflow="hidden";var o=document.createElement("div");o.style.whiteSpace="nowrap",o.style.overflow="hidden",o.style.textOverflow="ellipsis",o.innerHTML="The quick brown fox jumps over the lazy dog",r.appendChild(o),i.appendChild(r),e.fontBoxes.push(i)})),t},t.prototype.setCurrentFont=function(e,t){var n=this;this.currentFont=e,this.fontBoxes.forEach((function(e){e.style.borderColor=e===t?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onFontChanged&&this.onFontChanged(this.currentFont)},t}(Th),Uh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.color="transparent",r.padding=5,r.DEFAULT_TEXT="请输入文本",r.text=r.DEFAULT_TEXT,r.isMoved=!1,r.color=i.defaultColor,r.fontFamily=i.defaultFontFamily,r.defaultSize={x:100,y:30},r.setColor=r.setColor.bind(r),r.setFont=r.setFont.bind(r),r.renderText=r.renderText.bind(r),r.sizeText=r.sizeText.bind(r),r.textEditDivClicked=r.textEditDivClicked.bind(r),r.showTextEditor=r.showTextEditor.bind(r),r.setSize=r.setSize.bind(r),r.positionTextEditor=r.positionTextEditor.bind(r),r.colorPanel=new Dh("Color",i.defaultColorSet,i.defaultColor),r.colorPanel.onColorChanged=r.setColor,r.fontFamilyPanel=new Gh("Font",i.defaultFontFamilies,i.defaultFontFamily),r.fontFamilyPanel.onFontChanged=r.setFont,r}return yh(t,e),t.prototype.ownsTarget=function(t){if(e.prototype.ownsTarget.call(this,t)||t===this.visual||t===this.textElement||t===this.bgRectangle)return!0;var n=!1;return this.textElement.childNodes.forEach((function(e){e===t&&(n=!0)})),n},t.prototype.createVisual=function(){this.visual=Sh.createGroup(),this.bgRectangle=Sh.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Sh.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Sh.createTransform()),this.textElement.transform.baseVal.appendItem(Sh.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),this.isMoved=!1,this.pointerDownPoint=t,this.pointerDownTimestamp=Date.now(),"new"===this.state&&(this.createVisual(),this.moveVisual(t),this._state="creating")},t.prototype.renderText=function(){var e=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach((function(t){e.textElement.appendChild(Sh.createTSpan(""===t.trim()?" ":t.trim(),[["x","0"],["dy","1.2em"]]))})),setTimeout(this.sizeText,10)}},t.prototype.getTextScale=function(){var e=this.textElement.getBBox(),t=1;if(e.width>0&&e.height>0){var n=(1*this.width-this.width*this.padding*2/100)/e.width,i=(1*this.height-this.height*this.padding*2/100)/e.height;t=Math.min(n,i)}return t},t.prototype.getTextPosition=function(e){var t=this.textElement.getBBox(),n=0,i=0;return t.width>0&&t.height>0&&(n=(this.width-t.width*e)/2,i=this.height/2-t.height*e/2),{x:n,y:i}},t.prototype.sizeText=function(){var e=this.textElement.getBBox(),t=this.getTextScale(),n=this.getTextPosition(t);n.y-=e.y*t,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+n.x+"px, "+n.y+"px) scale("+t+", "+t+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(n.x,n.y),this.textElement.transform.baseVal.getItem(1).setScale(t,t))},t.prototype.manipulate=function(t){e.prototype.manipulate.call(this,t),void 0!==this.pointerDownPoint&&(this.isMoved=Math.abs(t.x-this.pointerDownPoint.x)>5||Math.abs(t.y-this.pointerDownPoint.y)>5)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this.isMoved=!0,this.setSize(),this.sizeText()},t.prototype.setSize=function(){e.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Sh.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Sh.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},t.prototype.pointerUp=function(t){var n=this.state;"creating"===n&&(this._suppressMarkerCreateEvent=!0),e.prototype.pointerUp.call(this,t),this.setSize(),("creating"===n||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},t.prototype.showTextEditor=function(){var e=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",(function(e){e.stopPropagation()})),this.textEditor.addEventListener("input",(function(){for(var t=Number.parseFloat(e.textEditor.style.fontSize);e.textEditor.clientWidth>=Number.parseInt(e.textEditor.style.maxWidth)&&t>.9;)t-=.1,e.textEditor.style.fontSize=Math.max(t,.9)+"em"})),this.textEditor.addEventListener("keyup",(function(e){e.cancelBubble=!0})),this.textEditor.addEventListener("paste",(function(e){if(e.clipboardData){var t=e.clipboardData.getData("text"),n=window.getSelection();if(!n.rangeCount)return!1;n.deleteFromDocument(),n.getRangeAt(0).insertNode(document.createTextNode(t)),e.preventDefault()}})),this.textEditDiv.addEventListener("pointerup",(function(){e.textEditDivClicked(e.textEditor.innerText)})),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},t.prototype.positionTextEditor=function(){if("edit"===this.state)if(void 0===this.textEditor)this.showTextEditor();else{this.textElement.style.display="";var e=this.getTextScale(),t=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),n=this.textElement.getBBox(),i={x:n.width*e,y:n.height*e};t.x-=i.x/2,t.y-=i.y/2,this.textEditor.style.top=t.y+"px",this.textEditor.style.left=t.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-t.x+"px",this.textEditor.style.fontSize=Math.max(16*e,12)+"px",this.textElement.style.display="none"}},t.prototype.textEditDivClicked=function(e){this.text=e.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},t.prototype.select=function(){e.prototype.select.call(this),"edit"===this.state&&this.textEditDivClicked(this.textEditor.innerText)},t.prototype.deselect=function(){"edit"===this.state&&this.textEditDivClicked(this.textEditor.innerText),e.prototype.deselect.call(this)},t.prototype.dblClick=function(t,n){e.prototype.dblClick.call(this,t,n),this.showTextEditor()},t.prototype.setColor=function(e){this.textElement&&Sh.setAttributes(this.textElement,[["fill",e]]),this.color=e,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(e)},t.prototype.setFont=function(e){this.textElement&&Sh.setAttributes(this.textElement,[["font-family",e]]),this.fontFamily=e,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},t.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},t.prototype.showVisual=function(){"edit"===this.state&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){var n=t;this.color=n.color,this.fontFamily=n.fontFamily,this.padding=n.padding,this.text=n.text,this.createVisual(),e.prototype.restoreState.call(this,t),this.setSize()},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.setSize(),this.sizeText(),this.positionTextEditor()},t.typeName="TextMarker",t.title="Text marker",t.icon='',t}(Oh),Vh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.color="transparent",r.lineWidth=3,r.drawing=!1,r.pixelRatio=1,r.color=i.defaultColor,r.lineWidth=i.defaultStrokeWidth,r.pixelRatio=i.freehandPixelRatio,r.setColor=r.setColor.bind(r),r.addCanvas=r.addCanvas.bind(r),r.finishCreation=r.finishCreation.bind(r),r.setLineWidth=r.setLineWidth.bind(r),r.colorPanel=new Dh("Color",i.defaultColorSet,i.defaultColor),r.colorPanel.onColorChanged=r.setColor,r.lineWidthPanel=new zh("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.lineWidthPanel.onWidthChanged=r.setLineWidth,r}return yh(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.visual&&t!==this.drawingImage)},t.prototype.createVisual=function(){this.visual=Sh.createGroup(),this.drawingImage=Sh.createImage(),this.visual.appendChild(this.drawingImage);var e=Sh.createTransform();this.visual.transform.baseVal.appendItem(e),this.addMarkerVisualToContainer(this.visual)},t.prototype.pointerDown=function(t,n){"new"===this.state&&(this.addCanvas(),this.createVisual(),this._state="creating"),"creating"===this.state?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(t.x,t.y),this.drawing=!0):e.prototype.pointerDown.call(this,t,n)},t.prototype.manipulate=function(t){"creating"===this.state?this.drawing&&(this.canvasContext.lineTo(t.x,t.y),this.canvasContext.stroke()):e.prototype.manipulate.call(this,t)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),Sh.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Sh.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},t.prototype.pointerUp=function(t){"creating"===this._state?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):e.prototype.pointerUp.call(this,t)},t.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},t.prototype.select=function(){"creating"===this.state&&this.finishCreation(),e.prototype.select.call(this)},t.prototype.deselect=function(){"creating"===this.state&&this.finishCreation(),e.prototype.deselect.call(this)},t.prototype.finishCreation=function(){for(var e=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),t=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],n=t[0],i=t[1],r=t[2],o=t[3],a=!1,s=0;s0&&(a=!0,so&&(o=s),l>r&&(r=l));if(a){this.left=n/this.pixelRatio,this.top=i/this.pixelRatio,this.width=(r-n)/this.pixelRatio,this.height=(o-i)/this.pixelRatio;var c=document.createElement("canvas");c.width=r-n,c.height=o-i,c.getContext("2d").putImageData(this.canvasContext.getImageData(n,i,r-n,o-i),0,0),this.drawingImgUrl=c.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},t.prototype.setDrawingImage=function(){Sh.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Sh.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},t.prototype.setColor=function(e){this.color=e,this.colorChanged(e)},t.prototype.setLineWidth=function(e){this.lineWidth=e},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return"new"===this.state||"creating"===this.state?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=Object.assign({drawingImgUrl:this.drawingImgUrl},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){this.createVisual(),e.prototype.restoreState.call(this,t),this.drawingImgUrl=t.drawingImgUrl,this.setDrawingImage()},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.setDrawingImage()},t.typeName="FreehandMarker",t.title="Freehand marker",t.icon='',t}(Oh),Wh=function(e){function t(t,n,i){var r=e.call(this,t,i||'')||this;return r.typeBoxes=[],r.currentType=n,r.setCurrentType=r.setCurrentType.bind(r),r}return yh(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");t.style.display="flex",t.style.overflow="hidden",t.style.flexGrow="2";for(var n=function(n){var r="both";switch(n){case 0:r="both";break;case 1:r="start";break;case 2:r="end";break;case 3:r="none"}var o=document.createElement("div");if(o.style.display="flex",o.style.flexGrow="2",o.style.alignItems="center",o.style.justifyContent="space-between",o.style.padding="5px",o.style.borderWidth="2px",o.style.borderStyle="solid",o.style.borderColor=r===i.currentType?i.uiStyleSettings.toolboxAccentColor:"transparent",o.addEventListener("click",(function(){e.setCurrentType(r,o)})),t.appendChild(o),"both"===r||"start"===r){var a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.minHeight="20px",a.innerHTML='\n \n ',a.style.marginLeft="5px",o.appendChild(a)}var s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.minHeight="20px",s.style.flexGrow="2";var l=document.createElement("hr");if(l.style.minWidth="20px",l.style.border="0px",l.style.borderTop="3px solid "+(void 0!==i.uiStyleSettings?i.uiStyleSettings.toolboxColor:"#eeeeee"),l.style.flexGrow="2",s.appendChild(l),o.appendChild(s),"both"===r||"end"===r){var c=document.createElement("div");c.style.display="flex",c.style.alignItems="center",c.style.minHeight="20px",c.innerHTML='\n \n ',c.style.marginRight="5px",o.appendChild(c)}i.typeBoxes.push(o)},i=this,r=0;r<4;r++)n(r);return t},t.prototype.setCurrentType=function(e,t){var n=this;this.currentType=e,this.typeBoxes.forEach((function(e){e.style.borderColor=e===t?void 0!==n.uiStyleSettings?n.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"})),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},t}(Th),qh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.arrowType="end",r.arrowBaseHeight=10,r.arrowBaseWidth=10,r.getArrowPoints=r.getArrowPoints.bind(r),r.setArrowType=r.setArrowType.bind(r),r.arrowTypePanel=new Wh("Arrow type","end"),r.arrowTypePanel.onArrowTypeChanged=r.setArrowType,r}return yh(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.arrow1&&t!==this.arrow2)},t.prototype.getArrowPoints=function(e,t){var n=this.arrowBaseWidth+2*this.strokeWidth,i=this.arrowBaseHeight+2*this.strokeWidth;return e-n/2+","+(t+i/2)+" "+e+","+(t-i/2)+" "+(e+n/2)+","+(t+i/2)},t.prototype.createTips=function(){this.arrow1=Sh.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Sh.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Sh.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Sh.createTransform()),this.visual.appendChild(this.arrow2)},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),"creating"===this.state&&this.createTips()},t.prototype.adjustVisual=function(){if(e.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display="both"===this.arrowType||"start"===this.arrowType?"":"none",this.arrow2.style.display="both"===this.arrowType||"end"===this.arrowType?"":"none",Sh.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Sh.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var t=0;Math.abs(this.x1-this.x2)>.1&&(t=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var n=this.arrow1.transform.baseVal.getItem(0);n.setRotate(t,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(n,0);var i=this.arrow2.transform.baseVal.getItem(0);i.setRotate(t+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(i,0)}},t.prototype.setArrowType=function(e){this.arrowType=e,this.adjustVisual(),this.stateChanged()},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=Object.assign({arrowType:this.arrowType},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t);var n=t;this.arrowType=n.arrowType,this.createTips(),this.adjustVisual()},t.typeName="ArrowMarker",t.title="Arrow marker",t.icon='',t}(Kh),Yh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.fillColor=i.defaultFillColor,r.strokeWidth=0,r.fillPanel=new Dh("Color",i.defaultColorSet,i.defaultFillColor),r.fillPanel.onColorChanged=r.setFillColor,r}return yh(t,e),Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=e.prototype.getState.call(this);return n.typeName=t.typeName,n},t.typeName="CoverMarker",t.title="Cover marker",t.icon='',t}(Fh),Xh=function(e){function t(t,n,i,r){var o=e.call(this,t,r||'')||this;return o.opacities=[],o.opacityBoxes=[],o.opacities=n,o.currentOpacity=i,o.setCurrentOpacity=o.setCurrentOpacity.bind(o),o}return yh(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");return t.style.display="flex",t.style.overflow="hidden",t.style.flexGrow="2",t.style.justifyContent="space-between",this.opacities.forEach((function(n){var i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="center",i.style.padding="5px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.borderColor=n===e.currentOpacity?e.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){e.setCurrentOpacity(n,i)})),t.appendChild(i);var r=document.createElement("div");r.innerText=100*n+"%",i.appendChild(r),e.opacityBoxes.push(i)})),t},t.prototype.setCurrentOpacity=function(e,t){var n=this;this.currentOpacity=e,this.opacityBoxes.forEach((function(e){e.style.borderColor=e===t?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},t}(Th),Qh=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.setOpacity=r.setOpacity.bind(r),r.fillColor=i.defaultHighlightColor,r.strokeWidth=0,r.opacity=i.defaultHighlightOpacity,r.fillPanel=new Dh("Color",i.defaultColorSet,r.fillColor),r.fillPanel.onColorChanged=r.setFillColor,r.opacityPanel=new Xh("Opacity",i.defaultOpacitySteps,r.opacity),r.opacityPanel.onOpacityChanged=r.setOpacity,r}return yh(t,e),t.prototype.setOpacity=function(e){this.opacity=e,this.visual&&Sh.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=e.prototype.getState.call(this);return n.typeName=t.typeName,n},t.typeName="HighlightMarker",t.title="Highlight marker",t.icon='',t}(Yh),Jh='',ed='',td=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.bgColor="transparent",r.tipPosition={x:0,y:0},r.tipBase1Position={x:0,y:0},r.tipBase2Position={x:0,y:0},r.tipMoving=!1,r.color=i.defaultStrokeColor,r.bgColor=i.defaultFillColor,r.fontFamily=i.defaultFontFamily,r.defaultSize={x:100,y:30},r.setBgColor=r.setBgColor.bind(r),r.getTipPoints=r.getTipPoints.bind(r),r.positionTip=r.positionTip.bind(r),r.setTipPoints=r.setTipPoints.bind(r),r.colorPanel=new Dh("Text color",i.defaultColorSet,r.color,Jh),r.colorPanel.onColorChanged=r.setColor,r.bgColorPanel=new Dh("Fill color",i.defaultColorSet,r.bgColor,ed),r.bgColorPanel.onColorChanged=r.setBgColor,r.fontFamilyPanel=new Gh("Font",i.defaultFontFamilies,i.defaultFontFamily),r.fontFamilyPanel.onFontChanged=r.setFont,r.tipGrip=new Bh,r.tipGrip.visual.transform.baseVal.appendItem(Sh.createTransform()),r.controlBox.appendChild(r.tipGrip.visual),r}return yh(t,e),t.prototype.ownsTarget=function(t){return e.prototype.ownsTarget.call(this,t)||this.tipGrip.ownsTarget(t)||this.tip===t},t.prototype.createTip=function(){Sh.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Sh.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},t.prototype.pointerDown=function(t,n){"new"===this.state&&e.prototype.pointerDown.call(this,t,n),"creating"===this.state?this.createTip():this.tipGrip.ownsTarget(n)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):e.prototype.pointerDown.call(this,t,n)},t.prototype.pointerUp=function(t){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,e.prototype.pointerUp.call(this,t);else{var n="creating"===this.state;e.prototype.pointerUp.call(this,t),this.setTipPoints(n),this.positionTip()}},t.prototype.manipulate=function(t){if(this.tipMoving){var n=this.unrotatePoint(t);this.tipPosition={x:n.x-this.manipulationStartLeft,y:n.y-this.manipulationStartTop},this.positionTip()}else e.prototype.manipulate.call(this,t)},t.prototype.setBgColor=function(e){this.bgRectangle&&this.tip&&(Sh.setAttributes(this.bgRectangle,[["fill",e]]),Sh.setAttributes(this.tip,[["fill",e]])),this.bgColor=e,this.fillColorChanged(e)},t.prototype.getTipPoints=function(){return this.setTipPoints("creating"===this.state),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},t.prototype.setTipPoints=function(e){void 0===e&&(e=!1);var t=Math.min(this.height/2,15),n=this.height/5;e&&(this.tipPosition={x:t+n/2,y:this.height+20});var i=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?i.1)){var t=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),n=this.tip1.transform.baseVal.getItem(0);n.setRotate(t,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(n,0);var i=this.tip2.transform.baseVal.getItem(0);i.setRotate(t+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(i,0)}},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=e.prototype.getState.call(this);return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t),this.createTips(),this.adjustVisual()},t.typeName="MeasurementMarker",t.title="Measurement marker",t.icon='',t}(Kh),rd=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.strokePanel.colors=i.defaultColorSet,r.fillColor="transparent",r}return yh(t,e),Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=e.prototype.getState.call(this);return n.typeName=t.typeName,n},t.typeName="EllipseFrameMarker",t.title="Ellipse frame marker",t.icon='',t}(nd),od=function(){function e(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(e.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),e.prototype.addUndoStep=function(e){0!==this.undoStack.length&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(e)||(this.undoStack.push(e),JSON.stringify(this.lastRedoStep)!==JSON.stringify(e)&&this.redoStack.splice(0,this.redoStack.length))},e.prototype.replaceLastUndoStep=function(e){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=e)},e.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},e.prototype.undo=function(){if(this.undoStack.length>1){var e=this.undoStack.pop();return void 0!==e&&this.redoStack.push(e),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},e.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},e}(),ad=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.curveX=0,r.curveY=0,r.manipulationStartCurveX=0,r.manipulationStartCurveY=0,r.setStrokeColor=r.setStrokeColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.positionGrips=r.positionGrips.bind(r),r.addControlGrips=r.addControlGrips.bind(r),r.adjustVisual=r.adjustVisual.bind(r),r.setupControlBox=r.setupControlBox.bind(r),r.resize=r.resize.bind(r),r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.strokePanel=new Dh("Line color",i.defaultColorSet,i.defaultColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.strokeWidthPanel=new zh("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new jh("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r}return yh(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.visual&&t!==this.selectorCurve&&t!==this.visibleCurve&&!this.curveGrip.ownsTarget(t))},t.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},t.prototype.createVisual=function(){this.visual=Sh.createGroup(),this.selectorCurve=Sh.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Sh.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,"new"===this.state&&(this.curveX=t.x,this.curveY=t.y),"new"===this.state?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(n)&&(this.activeGrip=this.curveGrip,this._state="resize")},t.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Sh.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Sh.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Sh.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},t.prototype.setupControlBox=function(){e.prototype.setupControlBox.call(this),this.curveControlLine1=Sh.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Sh.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},t.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,e.prototype.addControlGrips.call(this)},t.prototype.positionGrips=function(){e.prototype.positionGrips.call(this);var t=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-t/2,this.curveY-t/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},t.prototype.manipulate=function(t){"move"===this.state&&(this.curveX=this.manipulationStartCurveX+t.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+t.y-this.manipulationStartY),e.prototype.manipulate.call(this,t)},t.prototype.resize=function(t){this.activeGrip===this.curveGrip&&(this.curveX=t.x,this.curveY=t.y),e.prototype.resize.call(this,t),"creating"===this.state&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},t.prototype.setStrokeColor=function(e){this.strokeColor=e,this.adjustVisual(),this.colorChanged(e)},t.prototype.setStrokeWidth=function(e){this.strokeWidth=e,this.adjustVisual()},t.prototype.setStrokeDasharray=function(e){this.strokeDasharray=e,this.adjustVisual()},t.prototype.scale=function(t,n){this.curveX=this.curveX*t,this.curveY=this.curveY*n,e.prototype.scale.call(this,t,n)},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t);var n=t;this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.curveX=n.curveX,this.curveY=n.curveY,this.createVisual(),this.adjustVisual()},t.typeName="CurveMarker",t.title="Curve marker",t.icon='',t}(Zh),sd=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.fillColor="transparent",r.strokeColor="transparent",r.strokeWidth=0,r.strokeDasharray="",r.textColor="transparent",r.fontSize="1rem",r.isMoved=!1,r.captionText="Caption",r.PADDING=5,r.captionBoxWidth=0,r.captionBoxHeight=0,r.strokeColor=i.defaultColor,r.strokeWidth=i.defaultStrokeWidth,r.strokeDasharray=i.defaultStrokeDasharray,r.fillColor=i.defaultFillColor,r.textColor=i.defaultStrokeColor,r.fontFamily=i.defaultFontFamily,r.fontSize=i.defaultCaptionFontSize,r.captionText=i.defaultCaptionText,r.setStrokeColor=r.setStrokeColor.bind(r),r.setFillColor=r.setFillColor.bind(r),r.setStrokeWidth=r.setStrokeWidth.bind(r),r.setStrokeDasharray=r.setStrokeDasharray.bind(r),r.createVisual=r.createVisual.bind(r),r.sizeCaption=r.sizeCaption.bind(r),r.setCaptionText=r.setCaptionText.bind(r),r.showTextEditor=r.showTextEditor.bind(r),r.positionTextEditor=r.positionTextEditor.bind(r),r.finishTextEditing=r.finishTextEditing.bind(r),r.setFont=r.setFont.bind(r),r.setTextColor=r.setTextColor.bind(r),r.strokePanel=new Dh("Line color",xh(i.defaultColorSet,["transparent"]),r.strokeColor),r.strokePanel.onColorChanged=r.setStrokeColor,r.fillPanel=new Dh("Fill color",xh(i.defaultColorSet,["transparent"]),r.fillColor,ed),r.fillPanel.onColorChanged=r.setFillColor,r.strokeWidthPanel=new zh("Line width",i.defaultStrokeWidths,i.defaultStrokeWidth),r.strokeWidthPanel.onWidthChanged=r.setStrokeWidth,r.strokeStylePanel=new jh("Line style",i.defaultStrokeDasharrays,i.defaultStrokeDasharray),r.strokeStylePanel.onStyleChanged=r.setStrokeDasharray,r.fontFamilyPanel=new Gh("Font",i.defaultFontFamilies,i.defaultFontFamily),r.fontFamilyPanel.onFontChanged=r.setFont,r.textColorPanel=new Dh("Text color",i.defaultColorSet,r.textColor,Jh),r.textColorPanel.onColorChanged=r.setTextColor,r}return yh(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.visual&&t!==this.frame&&t!==this.captionBg&&t!==this.captionElement)},t.prototype.createVisual=function(){this.visual=Sh.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Sh.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Sh.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Sh.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},t.prototype.setCaptionText=function(e){this.captionText=e,this.captionElement.textContent=this.captionText,this.sizeCaption()},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),this.isMoved=!1,this.pointerDownPoint=t,this.pointerDownTimestamp=Date.now(),"new"===this.state&&(this.createVisual(),this.moveVisual(t),this._state="creating")},t.prototype.manipulate=function(t){e.prototype.manipulate.call(this,t),void 0!==this.pointerDownPoint&&(this.isMoved=Math.abs(t.x-this.pointerDownPoint.x)>5||Math.abs(t.y-this.pointerDownPoint.y)>5)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this.setSize()},t.prototype.sizeCaption=function(){var e=this.captionElement.getBBox();""!==this.captionText.trim()?(this.captionBoxWidth=e.width+2*this.PADDING,this.captionBoxHeight=e.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Sh.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Sh.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},t.prototype.showTextEditor=function(){var e=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",(function(e){e.stopPropagation()})),this.textEditBox.addEventListener("keypress",(function(t){"Enter"===t.key&&e.finishTextEditing(e.textEditBox.value)})),this.textEditBox.addEventListener("keyup",(function(e){e.cancelBubble=!0})),this.textEditBox.addEventListener("blur",(function(){e.finishTextEditing(e.textEditBox.value)})),this.textEditDiv.addEventListener("pointerup",(function(){e.finishTextEditing(e.textEditBox.value)})),this.positionTextEditor(),this.textEditBox.focus()},t.prototype.positionTextEditor=function(){"edit"===this.state&&(void 0===this.textEditBox?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},t.prototype.finishTextEditing=function(e){this.setCaptionText(e.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},t.prototype.setFont=function(e){this.captionElement&&Sh.setAttributes(this.captionElement,[["font-family",e]]),this.fontFamily=e,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},t.prototype.setTextColor=function(e){this.captionElement&&Sh.setAttributes(this.captionElement,[["fill",e]]),this.textColor=e,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},t.prototype.setSize=function(){e.prototype.setSize.call(this),Sh.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},t.prototype.pointerUp=function(t){e.prototype.pointerUp.call(this,t),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},t.prototype.dblClick=function(t,n){e.prototype.dblClick.call(this,t,n),this.showTextEditor()},t.prototype.setStrokeColor=function(e){this.strokeColor=e,this.frame&&Sh.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(e),this.stateChanged()},t.prototype.setFillColor=function(e){this.fillColor=e,this.captionBg&&Sh.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(e),this.stateChanged()},t.prototype.setStrokeWidth=function(e){this.strokeWidth=e,this.frame&&Sh.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},t.prototype.setStrokeDasharray=function(e){this.strokeDasharray=e,this.frame&&Sh.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var t=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},e.prototype.getState.call(this));return t.typeName=this.typeName,t},t.prototype.restoreState=function(t){var n=t;this.fillColor=n.fillColor,this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.textColor=n.textColor,this.fontFamily=n.fontFamily,this.captionText=n.captionText,this.fontSize=n.fontSize,this.createVisual(),e.prototype.restoreState.call(this,t),this.setSize()},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.setSize()},t.typeName="CaptionFrameMarker",t.title="Caption frame marker",t.icon='',t}(Oh),ld=function(){function e(e,t){void 0===t&&(t=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=e,this.cancelable=t}return Object.defineProperty(e.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),e.prototype.preventDefault=function(){this._defaultPrevented=!0},e}(),cd=function(e){function t(t,n,i){var r=e.call(this,t,!1)||this;return r.dataUrl=n,r.state=i,r}return yh(t,e),t}(ld),ud=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,i)||this;return r.marker=n,r}return yh(t,e),t}(ld),hd=function(){function e(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return e.prototype.addEventListener=function(e,t){this[e].push(t)},e.prototype.removeEventListener=function(e,t){var n=this[e].indexOf(t);n>-1&&this[e].splice(n,1)},e}(),dd=function(){function e(t){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Hh,this._isOpen=!1,this.undoRedoManager=new od,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new hd,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=e.instanceCounter++,this.styles=new Ph(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=t,this.targetRoot=document.body,this.width=t.clientWidth,this.height=t.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(e.prototype,"ALL_MARKER_TYPES",{get:function(){return[$h,Vh,qh,Uh,rd,nd,Qh,td,id,Yh,Kh,ad,sd]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[$h,Vh,qh,Uh,nd,Qh,td]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"BASIC_MARKER_TYPES",{get:function(){return[$h,Vh,qh,Uh,Qh]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(e){var t=this;this._availableMarkerTypes.splice(0),e.forEach((function(e){if("string"==typeof e){var n=t.ALL_MARKER_TYPES.find((function(t){return t.typeName===e}));void 0!==n&&t._availableMarkerTypes.push(n)}else t._availableMarkerTypes.push(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(e){this._zoomLevel=e,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),e.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),"popup"===this.settings.displayMode&&this.onPopupTargetResize(),kh.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},e.prototype.show=function(){var e=this;void 0===this.styles.styleSheetRoot&&void 0!==Ch.styleSheetRoot&&(this.styles.styleSheetRoot=Ch.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach((function(t){return t(new ld(e))}))},e.prototype.render=function(){return bh(this,void 0,void 0,(function(){var e;return wh(this,(function(t){switch(t.label){case 0:return this.setCurrentMarker(),(e=new _h).naturalSize=this.renderAtNaturalSize,e.imageType=this.renderImageType,e.imageQuality=this.renderImageQuality,e.markersOnly=this.renderMarkersOnly,e.width=this.renderWidth,e.height=this.renderHeight,[4,e.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return t.sent(),[4,e.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,t.sent()]}}))}))},e.prototype.close=function(e){var t=this;if(void 0===e&&(e=!1),this.isOpen){var n=!1;e||this.eventListeners.beforeclose.forEach((function(e){var i=new ld(t,!0);e(i),i.defaultPrevented&&(n=!0)})),n||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),"popup"===this.settings.displayMode&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach((function(e){return e(new ld(t))})),this.detachEvents(),this._isOpen=!1)}},e.prototype.addMarkersToToolbar=function(){for(var e,t=[],n=0;nthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*e:this.editorCanvas.clientWidth,n=t',e.title="Powered by marker.js",e.style.display="grid",e.style.alignItems="center",e.style.justifyItems="center",e.style.padding="3px",e.style.width="20px",e.style.height="20px",this.logoUI.appendChild(e),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},e.prototype.positionLogo=function(){this.logoUI&&("right"!==this.uiStyleSettings.logoPosition?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},e.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},e.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},e.prototype.showUI=function(){switch("popup"===this.settings.displayMode&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var e=void 0!==this.settings.uiOffsetTop?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=e+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=void 0!==this.uiStyleSettings.zIndex?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=void 0!==this.uiStyleSettings.zIndex?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin="popup"===this.settings.displayMode?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Lh(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1","popup"===this.settings.displayMode&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex","popup"===this.settings.displayMode&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),void 0===this.settings.uiOffsetTop&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(e),1),e.dispose()},e.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),void 0!==this._currentMarker&&("new"!==this._currentMarker.state?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},e.prototype.toolbarButtonClicked=function(e,t){if("marker"===e&&void 0!==t)this.createNewMarker(t);else if("action"===e)switch(t){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":void 0===this.notesArea?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},e.prototype.deleteSelectedMarker=function(){var e=this;if(void 0!==this._currentMarker){var t=!1;if(this.eventListeners.markerbeforedelete.forEach((function(n){var i=new ud(e,e._currentMarker,!0);n(i),i.defaultPrevented&&(t=!0)})),!t){var n=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach((function(t){return t(new ud(e,n))}))}}},e.prototype.clear=function(){var e=this,t=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach((function(n){var i=new ud(e,void 0,!0);n(i),i.defaultPrevented&&(t=!0)})),!t)){this.setCurrentMarker();for(var n=function(t){var n=i.markers[t];i.setCurrentMarker(i.markers[t]),i._currentMarker.dispose(),i.markerImage.removeChild(i._currentMarker.container),i.markers.splice(i.markers.indexOf(i._currentMarker),1),i.eventListeners.markerdelete.forEach((function(t){return t(new ud(e,n))}))},i=this,r=this.markers.length-1;r>=0;r--)n(r);this.addUndoStep()}},Object.defineProperty(e.prototype,"isNotesAreaOpen",{get:function(){return void 0!==this.notesArea},enumerable:!1,configurable:!0}),e.prototype.showNotesEditor=function(){var e;void 0!==this._currentMarker&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=null!==(e=this._currentMarker.notes)&&void 0!==e?e:"",this.overlayContainer.appendChild(this.notesArea))},e.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(void 0!==this._currentMarker&&(this._currentMarker.notes=""!==this.notesArea.value.trim()?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},e.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},e.prototype.addUndoStep=function(){var e=this;if(void 0===this._currentMarker||"edit"!==this._currentMarker.state){var t=this.getState(),n=this.undoRedoManager.getLastUndoStep();if(!n||n.width===t.width&&n.height===t.height){var i=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(t),i1&&this.panTo({x:e.clientX,y:e.clientY}))},e.prototype.onPointerUp=function(e){this.touchPoints>0&&this.touchPoints--,0===this.touchPoints&&this.isDragging&&void 0!==this._currentMarker&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(e.clientX,e.clientY)),this.isDragging=!1,this.addUndoStep()},e.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},e.prototype.onKeyUp=function(e){void 0===this._currentMarker||void 0!==this.notesArea||"Delete"!==e.key&&"Backspace"!==e.key||this.deleteSelectedMarker()},e.prototype.clientToLocalCoordinates=function(e,t){var n=this.markerImage.getBoundingClientRect();return{x:(e-n.left)/this.zoomLevel,y:(t-n.top)/this.zoomLevel}},e.prototype.onWindowResize=function(){this.positionUI()},e.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var e=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=e+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},e.prototype.addLicenseKey=function(e){kh.addKey(e)},e.prototype.addEventListener=function(e,t){this.eventListeners.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventListeners.removeEventListener(e,t)},e.prototype.renderState=function(e){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(e),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),e.prototype.focus=function(){var e=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,void 0!==this._previousCurrentMarker&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach((function(t){return t(new ld(e))})))},e.prototype.blur=function(){var e=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach((function(t){return t(new ld(e))})))},e.instanceCounter=0,e}(),pd=n(79723),fd=function(e){var t=e.data,n=e.className,i=e.fullWidth,o=e.style,s=void 0===o?{}:o,u=e.onClose,h=e.onOk,d=e.showFullTools,p=e.noAssociationId,m=(0,c.useRef)(null),v=(0,c.useRef)(null),y=(0,c.useRef)(null),b=(0,c.useRef)(null),w=(0,c.useState)(!1),x=l()(w,2),S=x[0],k=x[1],_=(0,c.useState)("正在加载中"),C=l()(_,2),P=C[0],E=C[1];(0,c.useEffect)((function(){return y.current||(y.current=document.createElement("style"),document.head.appendChild(y.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),y.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&M()):(document.body.removeAttribute("data-custom"),y.current&&(document.head.removeChild(y.current),y.current=null)),function(){document.body.removeAttribute("data-custom"),y.current&&(document.head.removeChild(y.current),y.current=null)}}),[null==t?void 0:t.visible]);var M=function(){var e=a()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!0),E("正在加载中"),e.next=4,(0,_l.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,m.current.src="",m.current.src=n,m.current.onload=function(){A()},k(!1),E("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),L=function(){var e=a()(r()().mark((function e(n){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!0),E("正在保存中"),e.next=4,(0,pd.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(i=e.sent)||!i.id||p){e.next=12;break}return e.next=8,(0,pd.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==i?void 0:i.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&h(),e.next=13;break;case 12:null!=i&&i.id&&h(i);case 13:k(!1),E("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),A=function(){v.current=new dd(m.current),v.current.targetRoot=b.current,v.current.addEventListener("render",L),v.current.addEventListener("beforeclose",u),d&&(v.current.availableMarkerTypes=v.current.ALL_MARKER_TYPES,v.current.uiStyleSettings.redoButtonVisible=!0,v.current.uiStyleSettings.notesButtonVisible=!0,v.current.uiStyleSettings.zoomButtonVisible=!0,v.current.uiStyleSettings.zoomOutButtonVisible=!0,v.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=v.current.uiStyleSettings,v.current.show(),null!=t&&t.snapshotData&&v.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,g.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,g.jsx)(mh.Z,{spinning:S,tip:P,style:{position:"absolute",width:"100vw"},children:(0,g.jsx)("div",{ref:b,className:f()(ph,n,i?gh:""),style:s,children:(0,g.jsx)("img",{className:fh,ref:m})})})})},gd=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),r=i.getContext("2d");i.width=1e3,i.height=800,r.fillStyle="#ffffff",r.fillRect(0,0,i.width,i.height);var o=i.toDataURL("image/png");return(0,g.jsx)(hh.Z,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1,children:(0,g.jsx)(dh.Z,{style:{height:"100vh"},children:(0,g.jsx)(fd,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})})},md=n(12378);function vd(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(vd,go.CommandHandler),vd.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},vd.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},vd.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},vd.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},vd.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},vd.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},vd.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},vd.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(s-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(o)}else if("Down"===n.key){var r;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(r=this._sortTreeChildrenByY(t).first())&&e.select(r);else for(;null!==t;){var o,a,s;if(null===(o=t.findTreeParentNode()))break;if((s=(a=this._sortTreeChildrenByY(o)).indexOf(t))i.y?1:n.xi.x?1:0})),t},vd.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},vd.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(vd.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(vd.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var yd=vd,bd=(n(77164),n(5269)),wd="myPaletteDiv___Xjz2I",xd="flowChartWrp____f45r",Sd=n(13277);var kd=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),s=(0,c.useRef)(),u=(0,c.useRef)(!1),h=(0,c.useRef)(!1),d=(0,c.useState)(0),p=l()(d,2),f=p[0],m=p[1],v=function(){var e=a()(r()().mark((function e(){var t,o,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=i.current.makeImage(),e.next=3,(0,pd.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:o.src,file_data:JSON.stringify({login:null===(t=(0,Sd.eY)())||void 0===t?void 0:t.login,data:JSON.parse(i.current.model.toJson())})}});case 3:a=e.sent,n({src:a.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){return setTimeout((function(){!function(){var e=md.bx.make,t="#ff3333",n="#3358ff",r="#25ad23",a="#d533ff",l="#7d33ff",c="#ff6233",u="#ffffff",h="#000000",d="#fffcd5",p="#d5ebff",f="#f2dfe0",g="#a5d2fa",m="#cccccc",v="#b3e6b3",b="#fcbbbd";function w(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var r=n.part.adornedPart,o=(new md.E9).setRectSpot(r.actualBounds,t);o.subtract(r.location),o.scale(2,2),o.x+=130*Math.sign(o.x),o.y+=130*Math.sign(o.y),o.add(r.location),o.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(r.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(r.data)),i.addNodeData(a);var s={from:r.key,to:i.getKeyForNodeData(a)};i.addLinkData(s);var l=e.diagram.findNodeForData(a);l.location=o,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(md.bn,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(md.z6.Top)||t.equals(md.z6.Bottom)?25:18,height:t.equals(md.z6.Top)||t.equals(md.z6.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function x(t){return e(md.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function S(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function k(t,n){return n||(n="color"),e(md.bn,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:S(n,t),contextClick:S(n,t)})}function _(){return[e("ContextMenuButton",e(md.s_,"Horizontal",k(u,"fill"),k(d,"fill"),k(p,"fill"),k(f,"fill"))),e("ContextMenuButton",e(md.s_,"Horizontal",k(m,"fill"),k(v,"fill"),k(g,"fill"),k(b,"fill")))]}function C(){return[e("ContextMenuButton",e(md.s_,"Horizontal",k(h),k(r),k(n),k(t))),e("ContextMenuButton",e(md.s_,"Horizontal",k(u),k(a),k(l),k(c)))]}function P(t,n){return n||(n="thickness"),e(md.bn,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:S(n,t),contextClick:S(n,t)})}function E(t,n){return n||(n="dash"),e(md.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:S(n,t),contextClick:S(n,t)})}function M(){return[e("ContextMenuButton",e(md.s_,"Horizontal",P(1),P(2),P(3),P(4))),e("ContextMenuButton",e(md.s_,"Horizontal",E(null),E([2,4]),E([4,4])))]}function L(t,n){return n||(n="figure"),e(md.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:S(n,t),contextClick:S(n,t)})}function A(t){return e(md.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function T(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(md.bn,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:S("dir",t),contextClick:S("dir",t)})}function D(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",md.z6.stringify(md.z6.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(md.bn,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function N(t,n){var i=0,r=md.z6.RightSide;t.equals(md.z6.Top)?(i=270,r=md.z6.TopSide):t.equals(md.z6.Left)?(i=180,r=md.z6.LeftSide):t.equals(md.z6.Bottom)&&(i=90,r=md.z6.BottomSide),n||(i-=180);var o=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",md.z6.stringify(r)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(md.bn,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:o,contextClick:o})}i.current=new md.S0(o.current,{padding:20,grid:e(md.s_,"Grid",e(md.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(md.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(yd),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject,setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(md.NB,"Auto",{locationSpot:md.z6.Center,locationObjectName:"SHAPE",desiredSize:new md.$u(120,60),minSize:new md.$u(40,40),resizable:!0,resizeCellSize:new md.$u(10,10),rotatable:!0},new md.KX("location","loc",md.E9.parse).makeTwoWay(md.E9.stringify),new md.KX("desiredSize","size",md.$u.parse).makeTwoWay(md.$u.stringify),e(md.bn,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:md.z6.AllSides,toSpot:md.z6.AllSides},new md.KX("figure"),new md.KX("fill"),new md.KX("stroke","borderColor"),new md.KX("strokeWidth","thickness"),new md.KX("strokeDashArray","dash")),e(md.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(md.al,{margin:1,textAlign:"center",overflow:md.al.OverflowEllipsis,editable:!0},new md.KX("text").makeTwoWay(),new md.KX("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(md.s_,"Vertical",{maxSize:new md.$u(200,NaN)},e(md.al,{font:"bold 10pt sans-serif",textAlign:"center"},new md.KX("text")),e(md.al,{font:"10pt sans-serif",textAlign:"center"},new md.KX("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(md.uz,"Spot",e(md.Vm,{padding:10}),w(md.z6.Top,"TriangleUp"),w(md.z6.Left,"TriangleLeft"),w(md.z6.Right,"TriangleRight"),w(md.z6.Bottom,"TriangleDown"),x({alignment:new md.z6(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(md.s_,"Horizontal",L("Rectangle"),L("RoundedRectangle"),L("Ellipse"),L("Diamond"))),e("ContextMenuButton",e(md.s_,"Horizontal",L("Parallelogram2"),L("ManualOperation"),L("Procedure"),L("Cylinder1"))),e("ContextMenuButton",e(md.s_,"Horizontal",L("Terminator"),L("CreateRequest"),L("Document"),L("TriangleDown"))),_(),C(),M()),i.current.groupTemplate=e(md.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:md.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new md.KX("location","loc",md.E9.parse).makeTwoWay(md.E9.stringify),e(md.s_,"Auto",{name:"BODY"},e(md.bn,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:md.z6.AllSides,toSpot:md.z6.AllSides},new md.KX("fill"),new md.KX("stroke","color"),new md.KX("strokeWidth","thickness"),new md.KX("strokeDashArray","dash")),e(md.Vm,{background:"transparent",margin:20})),e(md.al,{alignment:md.z6.Top,alignmentFocus:md.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new md.KX("text"),new md.KX("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(md.uz,"Spot",e(md.s_,"Auto",e(md.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(md.Vm,{margin:1.5})),x({alignment:md.z6.TopRight,alignmentFocus:md.z6.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",_(),C(),M()),i.current.linkTemplate=e(md.rU,{layerName:"Foreground",routing:md.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new md.KX("fromSpot","fromSpot",md.z6.parse),new md.KX("toSpot","toSpot",md.z6.parse),new md.KX("fromShortLength","dir",(function(e){return e>=1?10:0})),new md.KX("toShortLength","dir",(function(e){return e>=1?10:0})),new md.KX("points").makeTwoWay(),e(md.bn,{strokeWidth:2},new md.KX("stroke","color"),new md.KX("strokeWidth","thickness"),new md.KX("strokeDashArray","dash")),e(md.bn,{segmentIndex:0,segmentOffset:new md.E9(15,0),segmentOrientation:md.rU.OrientAlong,alignmentFocus:md.z6.Right,figure:"circle",width:10,strokeWidth:0},new md.KX("fill","color"),new md.KX("visible","dir",(function(e){return 1===e}))),e(md.bn,{segmentIndex:-1,segmentOffset:new md.E9(-10,6),segmentOrientation:md.rU.OrientPlus90,alignmentFocus:md.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new md.KX("fill","color"),new md.KX("visible","dir",(function(e){return e>=1})),new md.KX("width","thickness",(function(e){return 7+3*e})),new md.KX("height","thickness",(function(e){return 7+3*e})),new md.KX("segmentOffset","thickness",(function(e){return new md.E9(-15,4+1.5*e)}))),e(md.bn,{segmentIndex:0,segmentOffset:new md.E9(15,-6),segmentOrientation:md.rU.OrientMinus90,alignmentFocus:md.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new md.KX("fill","color"),new md.KX("visible","dir",(function(e){return 2===e})),new md.KX("width","thickness",(function(e){return 7+3*e})),new md.KX("height","thickness",(function(e){return 7+3*e})),new md.KX("segmentOffset","thickness",(function(e){return new md.E9(-15,4+1.5*e)}))),e(md.al,{alignmentFocus:new md.z6(0,1,-4,0),editable:!0},new md.KX("text").makeTwoWay(),new md.KX("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(md.uz,e(md.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:A(2)},new md.KX("pathPattern","thickness",A)),x({alignmentFocus:new md.z6(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",C(),M(),e("ContextMenuButton",e(md.s_,"Horizontal",T(0),T(1),T(2))),e("ContextMenuButton",e(md.s_,"Horizontal",e(md.s_,"Spot",D(!1),N(md.z6.Top,!1),N(md.z6.Left,!1),N(md.z6.Right,!1),N(md.z6.Bottom,!1)),e(md.s_,"Spot",{margin:new md.Zt(0,0,0,2)},D(!0),N(md.z6.Top,!0),N(md.z6.Left,!0),N(md.z6.Right,!0),N(md.z6.Bottom,!0)))));var I=new md.YI(s.current,{maxSelectionCount:1,linkTemplate:e(md.rU,{locationSpot:md.z6.Center,selectionAdornmentTemplate:e(md.uz,"Link",{locationSpot:md.z6.Center},e(md.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(md.bn,{toArrow:"Standard",stroke:null}))},{routing:md.rU.AvoidsNodes,curve:md.rU.JumpOver,corner:5,toShortLength:4},new md.KX("points"),e(md.bn,{isPanelMain:!0,strokeWidth:2}),e(md.bn,{toArrow:"Standard",stroke:null})),model:new md.FJ([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(y()(md.bn.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))});i.current.addDiagramListener("TextEdited",(function(e){var t,n=e.subject.part,r=null===(t=document.activeElement)||void 0===t?void 0:t.value;"string"==typeof r&&""===r.trim()&&i.current.model.commit((function(e){e.set(n.data,"text","未命名"),i.current.commandHandler.stopCommand()}),"increment")})),I.nodeTemplate=e(md.NB,"Auto",{locationSpot:md.z6.Center},new md.KX("location","location",md.E9.parse).makeTwoWay(md.E9.stringify),e(md.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new md.KX("stroke").makeTwoWay(),new md.KX("fill").makeTwoWay(),new md.KX("figure")),e(md.al,{margin:new md.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new md.$u(16,16),maxSize:new md.$u(10,NaN),textAlign:"center",editable:!0},new md.KX("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(md.s_,"Grid",e(md.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(md.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),i.current.grid.visible=!0,i.current.grid.gridCellStroke="darkgray",i.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=i.current,i.current}()}),500),m(f+1),function(){i.current=null}}),[]),(0,g.jsx)("div",{ref:h,className:"body-overflow-initial",children:(0,g.jsx)(hh.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:(0,g.jsxs)(dh.Z,{children:[(0,g.jsx)(bd.Z,{flex:1,children:"插入流程图"}),(0,g.jsx)(bd.Z,{onClick:function(){var e=i.current.selection.first();if(u.current=!u.current,document.activeElement&&e){var t,n=null===(t=document.activeElement)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.trim();"string"==typeof n&&i.current.model.commit((function(t){t.set(e.data,"text",n||"未命名"),i.current.commandHandler.stopCommand()}),"increment")}m(f+1)},children:(0,g.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,g.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:u.current?"none":"block"},className:xd,children:[(0,g.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,g.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,g.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,g.jsx)("div",{style:{height:"calc(100% - 50px)"},className:wd,ref:s})]}),(0,g.jsx)("div",{style:{flex:1,position:"relative"},children:(0,g.jsx)("div",{ref:o,style:{height:"80vh"}})})]}),(0,g.jsx)("div",{className:"tr",children:(0,g.jsx)(Ml.ZP,{size:"large",onClick:v,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},_d=ih.ZP.Group,Cd={margin:"0 8px"},Pd=function(e){var t=e.callback,n=e.onCancel;return(0,g.jsxs)(Sc.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,g.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,g.jsx)("span",{style:Cd,children:"单元格数:"}),(0,g.jsx)("span",{style:Cd,children:"行数"}),(0,g.jsx)(Sc.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,g.jsx)(nh,{})}),(0,g.jsx)("span",{style:Cd,children:"列数"}),(0,g.jsx)(Sc.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,g.jsx)(nh,{})})]}),(0,g.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,g.jsx)("span",{style:Cd,children:"对齐方式:"}),(0,g.jsx)(Sc.Z.Item,{name:"align",children:(0,g.jsxs)(_d,{children:[(0,g.jsx)(ih.ZP,{value:"default",children:(0,g.jsx)("i",{className:"fa fa-align-justify"})}),(0,g.jsx)(ih.ZP,{value:"left",children:(0,g.jsx)("i",{className:"fa fa-align-left"})}),(0,g.jsx)(ih.ZP,{value:"center",children:(0,g.jsx)("i",{className:"fa fa-align-center"})}),(0,g.jsx)(ih.ZP,{value:"right",children:(0,g.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,g.jsxs)("div",{className:"flex-container flex-end",children:[(0,g.jsx)(Ml.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,g.jsx)(Ml.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Ed=n(58617),Md=n(18929),Ld=n(10228),Ad=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Td=c.forwardRef((function(e,t){var n,i=e.prefixCls,r=void 0===i?"rc-switch":i,o=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,u=e.loadingIcon,h=e.checkedChildren,d=e.unCheckedChildren,p=e.onClick,g=e.onChange,m=e.onKeyDown,v=(0,Qc.Z)(e,Ad),y=(0,Md.Z)(!1,{value:a,defaultValue:s}),b=(0,Xc.Z)(y,2),w=b[0],x=b[1];function S(e,t){var n=w;return l||(x(n=e),null==g||g(n,t)),n}var k=f()(r,o,(n={},(0,qc.Z)(n,"".concat(r,"-checked"),w),(0,qc.Z)(n,"".concat(r,"-disabled"),l),n));return c.createElement("button",(0,Ll.Z)({},v,{type:"button",role:"switch","aria-checked":w,disabled:l,className:k,ref:t,onKeyDown:function(e){e.which===Ld.Z.LEFT?S(!1,e):e.which===Ld.Z.RIGHT&&S(!0,e),null==m||m(e)},onClick:function(e){var t=S(!w,e);null==p||p(t,e)}}),u,c.createElement("span",{className:"".concat(r,"-inner")},c.createElement("span",{className:"".concat(r,"-inner-checked")},h),c.createElement("span",{className:"".concat(r,"-inner-unchecked")},d)))}));Td.displayName="Switch";var Dd=Td,Nd=n(12919);const Id=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:i,trackMinWidthSM:r,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=(0,ju.bf)(l(s).add(l(i).mul(2)).equal()),h=(0,ju.bf)(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:r,height:n,lineHeight:(0,ju.bf)(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${h})`,marginInlineEnd:`calc(100% - ${u} + ${h})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${h})`,marginInlineEnd:`calc(-100% + ${u} - ${h})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${(0,ju.bf)(l(s).add(i).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},Bd=e=>{const{componentCls:t,handleSize:n,calc:i}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:i(i(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Rd=e=>{const{componentCls:t,trackPadding:n,handleBg:i,handleShadow:r,handleSize:o,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:i,borderRadius:a(o).div(2).equal(),boxShadow:r,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${(0,ju.bf)(a(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Od=e=>{const{componentCls:t,trackHeight:n,trackPadding:i,innerMinMargin:r,innerMaxMargin:o,handleSize:a,calc:s}=e,l=`${t}-inner`,c=(0,ju.bf)(s(a).add(s(i).mul(2)).equal()),u=(0,ju.bf)(s(o).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:r,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:r,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(i).mul(2).equal(),marginInlineEnd:s(i).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(i).mul(-1).mul(2).equal(),marginInlineEnd:s(i).mul(2).equal()}}}}}},Fd=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:i}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ku.Wf)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:i,height:n,lineHeight:(0,ju.bf)(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),(0,Ku.Qy)(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}};var zd=(0,Uu.I$)("Switch",(e=>{const t=(0,Vu.IX)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Fd(t),Od(t),Rd(t),Bd(t),Id(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:i,colorWhite:r}=e,o=t*n,a=i/2,s=o-4,l=a-4;return{trackHeight:o,trackHeightSM:a,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:r,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new Wu.t("#00230b").setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}})),jd=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,size:i,disabled:r,loading:o,className:a,rootClassName:s,style:l,checked:u,value:h,defaultChecked:d,defaultValue:p,onChange:g}=e,m=jd(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,y]=(0,Md.Z)(!1,{value:null!=u?u:h,defaultValue:null!=d?d:p}),{getPrefixCls:b,direction:w,switch:x}=c.useContext(Du.E_),S=c.useContext(Iu.Z),k=(null!=r?r:S)||o,_=b("switch",n),C=c.createElement("div",{className:`${_}-handle`},o&&c.createElement(Ed.Z,{className:`${_}-loading-icon`})),[P,E,M]=zd(_),L=(0,Ru.Z)(i),A=f()(null==x?void 0:x.className,{[`${_}-small`]:"small"===L,[`${_}-loading`]:o,[`${_}-rtl`]:"rtl"===w},a,s,E,M),T=Object.assign(Object.assign({},null==x?void 0:x.style),l);return P(c.createElement(Nd.Z,{component:"Switch"},c.createElement(Dd,Object.assign({},m,{checked:v,onChange:function(){y(arguments.length<=0?void 0:arguments[0]),null==g||g.apply(void 0,arguments)},prefixCls:_,className:A,style:T,disabled:k,ref:t,loadingIcon:C}))))})),Hd=$d;Hd.__ANT_SWITCH=!0;var Zd=Hd,Kd=n(35702),Gd=n.n(Kd),Ud=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,r=e.height,o=e.callback,a=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),h=l()(u,2),d=h[0],p=h[1],f=(0,c.useRef)({id:a,appName:"graphing",width:i||1e3,height:r||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(Gd())(f.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var m=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return o&&o(e),e};return(0,c.useEffect)((function(){f.current.appName=d?"3D":"graphing",s.current.inject("applet_container")}),[d]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:m}})),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:a}),(0,g.jsxs)(dh.Z,{align:"middle",children:[(0,g.jsx)(bd.Z,{flex:1,children:(0,g.jsx)(Zd,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:d,onChange:function(e){return p(e)}})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Ml.ZP,{size:"large",onClick:m,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),Vd=Ud,Wd=n(52017),qd={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"},Yd=Object.defineProperty,Xd=Object.defineProperties,Qd=Object.getOwnPropertyDescriptors,Jd=Object.getOwnPropertySymbols,ep=Object.prototype.hasOwnProperty,tp=Object.prototype.propertyIsEnumerable,np=(e,t,n)=>t in e?Yd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ip=(e,t)=>{for(var n in t||(t={}))ep.call(t,n)&&np(e,n,t[n]);if(Jd)for(var n of Jd(t))tp.call(t,n)&&np(e,n,t[n]);return e},rp=(e,t)=>Xd(e,Qd(t)),op=e=>"symbol"==typeof e?e:e+"",ap=(e,t)=>{var n={};for(var i in e)ep.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&Jd)for(var i of Jd(e))t.indexOf(i)<0&&tp.call(e,i)&&(n[i]=e[i]);return n};function sp(e){return Array.isArray(e)}function lp(){return"window"in globalThis&&"document"in globalThis}function cp(){return"function"==typeof navigator.vibrate}function up(){var e,t;if(!lp())return"other";const n=null!=(t=null==(e=navigator.userAgentData)?void 0:e.platform)?t:navigator.platform;return/^mac/i.test(n)?5===navigator.maxTouchPoints?"ios":"macos":/^win/i.test(n)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function hp(){return HTMLElement.prototype.hasOwnProperty("popover")}var dp={strings:{en:{"keyboard.tooltip.symbols":"符号","keyboard.tooltip.greek":"希腊字母","keyboard.tooltip.numeric":"数字","keyboard.tooltip.alphabetic":"罗马字母","tooltip.cut to clipboard":"剪切到剪贴板","tooltip.copy to clipboard":"复制到剪贴板","tooltip.paste from clipboard":"粘贴","tooltip.redo":"重做","tooltip.toggle virtual keyboard":"切换虚拟键盘","tooltip.undo":"撤消","menu.insert matrix":"插入矩阵","menu.borders":"矩阵分隔符","menu.array.add row above":"在后面添加行","menu.array.add row below":"在前面添加行","menu.array.add column after":"在后面添加列r","menu.array.add column before":"在前面添加列","menu.array.delete row":"删除行","menu.array.delete rows":"删除选定行","menu.array.delete column":"删除列","menu.array.delete columns":"删除选定的列","menu.mode":"模式","menu.mode-math":"数学","menu.mode-text":"文本","menu.mode-latex":"LaTeX","tooltip.blackboard":"黑板","tooltip.bold":"粗体","tooltip.italic":"斜体","tooltip.fraktur":"Fraktur","tooltip.script":"脚本","tooltip.caligraphic":"草书","tooltip.typewriter":"打字机","tooltip.roman-upright":"罗马直立","tooltip.row-by-col":"%@ × %@","menu.font-style":"字体样式","menu.accent":"重音","menu.decoration":"装饰","menu.color":"颜色","menu.background-color":"背景","menu.evaluate":"计算","menu.simplify":"简化","menu.solve":"求解","menu.solve-for":"求解 %@","menu.cut":"剪切","menu.copy":"复制","menu.copy-as-latex":"复制为 LaTeX","menu.copy-as-ascii-math":"复制为 ASCII Math","menu.copy-as-mathml":"复制为 MathML","menu.paste":"粘贴","menu.select-all":"全选","color.red":"红色","color.orange":"橙色","color.yellow":"黄色","color.lime":"绿黄色","color.green":"绿色","color.teal":"青色","color.cyan":"蓝绿色","color.blue":"蓝色","color.indigo":"靛蓝色","color.purple":"紫色","color.magenta":"洋红色","color.black":"黑色","color.dark-grey":"深灰色","color.grey":"灰色","color.light-grey":"浅灰色","color.white":"白色"}},_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return dp._locale||(dp._locale=lp()?navigator.language.slice(0,5):"en-US"),dp._locale},set locale(e){dp._locale=e,dp._numberFormatter=void 0,dp.dirty=!0},get numberFormatter(){return dp._numberFormatter||(dp._numberFormatter=new Intl.NumberFormat(dp.locale)),dp._numberFormatter},merge(e,t){if("string"==typeof e&&t)dp.strings[e]=ip(ip({},dp.strings[e]),t),dp.dirty=!0;else for(const t of Object.keys(e))dp.merge(t,e[t])},get dirty(){return dp._dirty},set dirty(e){dp._dirty||dp._dirty===e||(dp._dirty=!0,setTimeout((()=>{dp._dirty=!1,this._subscribers.forEach((e=>null==e?void 0:e()))}),0))},subscribe(e){return dp._subscribers.push(e),dp._subscribers.length-1},unsubscribe(e){e<0||e>=dp._subscribers.length||(dp._subscribers[e]=void 0)},update(e){let t=e.querySelectorAll("[data-l10n-tooltip]");for(const e of t){const t=e.getAttribute("data-l10n-tooltip");if(t){const n=pp(t);n&&e.setAttribute("data-tooltip",n)}}t=e.querySelectorAll("[data-l10n-arial-label]");for(const e of t){const t=e.getAttribute("data-l10n-arial-label");if(t){const n=pp(t);n&&e.setAttribute("aria-label",n)}}}};function pp(e,...t){if(void 0===e)return;let n="";const i=dp.locale;dp.strings[i]&&(n=dp.strings[i][e]);const r=i.slice(0,2);if(!n&&dp.strings[r]&&(n=dp.strings[r][e]),n||(n=dp.strings.en[e]),!n)return;const o=/(%@|%([0-9]+)\$@)/g;let a=o.exec(n),s=0;for(;a;){if(t[s++]){let e=t[a[2]?parseInt(a[2],10)-1:s-1];"number"==typeof e&&(e=dp.numberFormatter.format(e)),n=n.replace(a[1],e)}a=o.exec(n)}return n=n.replace(/%%/g,"%"),n}var fp={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},gp={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},mp={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},vp={red:"#d7170b",orange:"#fe8a2b",yellow:"#ffc02b",lime:"#63b215",green:"#21ba3a",teal:"#17cfcf",cyan:"#13a7ec",blue:"#0d80f2",indigo:"#63c",purple:"#a219e6",magenta:"#eb4799",black:"#000","dark-grey":"#666",grey:"#A6A6A6","light-grey":"#d4d5d2",white:"#ffffff"},yp={Red:"red",Orange:"orange",Yellow:"yellow",LimeGreen:"lime",Green:"green",TealBlue:"teal",Blue:"blue",Violet:"indigo",Purple:"purple",Magenta:"magenta",Black:"black",Gray:"grey",White:"white"},bp={Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D",CadetBlue:"#74729A",CarnationPink:"#F282B4",Cerulean:"#00A2E3",CornflowerBlue:"#41B0E4",Cyan:"#00AEEF",Dandelion:"#FDBC42",DarkOrchid:"#A4538A",Emerald:"#00A99D",ForestGreen:"#009B55",Fuchsia:"#8C368C",Goldenrod:"#FFDF42",Gray:"#949698",Green:"#00A64F",GreenYellow:"#DFE674",JungleGreen:"#00A99A",Lavender:"#F49EC4",Limegreen:"#8DC73E",Magenta:"#EC008C",Mahogany:"#A9341F",Maroon:"#AF3235",Melon:"#F89E7B",MidnightBlue:"#006795",Mulberry:"#A93C93",NavyBlue:"#006EB8",OliveGreen:"#3C8031",Orange:"#F58137",OrangeRed:"#ED135A",Orchid:"#AF72B0",Peach:"#F7965A",Periwinkle:"#7977B8",PineGreen:"#008B72",Plum:"#92268F",ProcessBlue:"#00B0F0",Purple:"#99479B",RawSienna:"#974006",Red:"#ED1B23",RedOrange:"#F26035",RedViolet:"#A1246B",Rhodamine:"#EF559F",RoyalBlue:"#0071BC",RoyalPurple:"#613F99",RubineRed:"#ED017D",Salmon:"#F69289",SeaGreen:"#3FBC9D",Sepia:"#671800",SkyBlue:"#46C5DD",SpringGreen:"#C6DC67",Tan:"#DA9D76",TealBlue:"#00AEB3",Thistle:"#D883B7",Turquoise:"#00B4CE",Violet:"#58429B",VioletRed:"#EF58A0",White:"#FFFFFF",WildStrawberry:"#EE2967",Yellow:"#FFF200",YellowGreen:"#98CC70",YellowOrange:"#FAA21A"};function wp(e){var t,n,i,r,o,a;const s=e.split("!");let l,c,u,h=255,d=255,p=255,f=-1;const g=s.length>0&&s[0].startsWith("-");g&&(s[0]=s[0].slice(1));for(let e=0;e=0&&(h=(1-f)*h+f*l,d=(1-f)*d+f*c,p=(1-f)*p+f*u,f=-1),e+1=0&&(h=f*h+(1-f)*l,d=f*d+(1-f)*c,p=f*p+(1-f)*u),g&&(h=255-h,d=255-d,p=255-p),"#"+("00"+Math.round(h).toString(16)).slice(-2)+("00"+Math.round(d).toString(16)).slice(-2)+("00"+Math.round(p).toString(16)).slice(-2)}function xp(e){var t,n;return e=e.trim(),null!=(n=null!=(t=mp[e.toLowerCase()])?t:mp[yp[e]])?n:wp(e)}function Sp(e,t,n){return n<0&&(n+=6),n>=6&&(n-=6),n<1?(t-e)*n+e:n<3?t:n<4?(t-e)*(4-n)+e:e}function kp(e){return e<0?0:e>255?255:Math.round(e)}function _p(e){let t=function(e){if(!e)return;if("#"!==e[0])return;let t;return(e=e.slice(1)).length<=4?(t={r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)},4===e.length&&(t.a=parseInt(e[3]+e[3],16)/255)):(t={r:parseInt(e[0]+e[1],16),g:parseInt(e[2]+e[3],16),b:parseInt(e[4]+e[5],16)},8===e.length&&(t.a=parseInt(e[6]+e[7],16)/255)),t&&void 0===t.a&&(t.a=1),t}(e);if(!t)return e;let{h:n,s:i,l:r}=function(e){let{r:t,g:n,b:i}=e;t/=255,n/=255,i/=255;const r=Math.min(t,n,i),o=Math.max(t,n,i),a=o-r;let s,l;o===r?s=0:t===o?s=(n-i)/a:n===o?s=2+(i-t)/a:i===o&&(s=4+(t-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const c=(r+o)/2;return l=o===r?0:c<=.5?a/(o+r):a/(2-o-r),{h:s,s:l,l:c}}(t);return i+=.1,r-=.1,function(e){const{r:t,g:n,b:i}=e;let r=((1<<24)+(kp(t)<<16)+(kp(n)<<8)+kp(i)).toString(16).slice(1);return r[0]===r[1]&&r[2]===r[3]&&r[4]===r[5]&&r[6]===r[7]&&(r=r[0]+r[2]+r[4]),"#"+r}(function(e){let[t,n,i]=[e.h,e.s,e.l];t=(t+360)%360/60,i=Math.max(0,Math.min(i,1)),n=Math.max(0,Math.min(n,1));const r=i<=.5?i*(n+1):i+n-i*n,o=2*i-r;return{r:Math.round(255*Sp(o,r,t+2)),g:Math.round(255*Sp(o,r,t)),b:Math.round(255*Sp(o,r,t-2))}}({h:n,s:i,l:r}))}var Cp={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},Pp={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},Ep=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function Mp(e,t,n){if(!/[A-Za-z\d]/.test(e))return e;if("up"===n&&(n=void 0),!t&&!n)return e;const i=e.codePointAt(0);if(void 0===i)return e;for(const e of Ep)if((!t||e.variant===t)&&(!n||e.style===n)&&i>=e.offset&&i120831)&&(e<8448||e>8527))return{char:String.fromCodePoint(e)};for(const n in Pp)if(Pp[n]===e){e=null!=(t=n.codePointAt(0))?t:0;break}for(const t of Ep)if(e>=t.start&&e`|$%#&^" ]/;function $p(e,t,n="mord",i){void 0!==t&&(Ip[e]={definitionType:"symbol",type:n,variant:i,codepoint:t},Bp[t]||(Bp[t]=e))}function Hp(e,t,n){if("string"!=typeof e)for(const[i,r,o,a]of e)$p(i,r,null!=o?o:t,null!=a?a:n);else for(let t=0;tzp[e]===t));return e||String.fromCodePoint(t)}return String.fromCodePoint(t)}!function(){if(!lp())return!0;if(/firefox/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/firefox\/(\d+)/i);if(!e)return!1;return parseInt(e[1])>=78}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/edg\/(\d+)/i);if(!e)return!1;return parseInt(e[1])>=79}return!0}()?(Tp=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,Dp=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/):(Tp=new RegExp("\\p{Letter}","u"),Dp=new RegExp("[0-9\\p{Letter}]","u"));var nf=[0,.68889,0,0,.72222],rf=[0,.68889,0,0,.66667],of=[0,.68889,0,0,.77778],af=[0,.68889,0,0,.61111],sf=[.16667,.68889,0,0,.77778],lf=[0,.68889,0,0,.55556],cf=[0,0,0,0,.25],uf=[0,.825,0,0,2.33334],hf=[0,.9,0,0,2.33334],df=[0,.68889,0,0,.54028],pf=[-.03598,.46402,0,0,.5],ff=[-.13313,.36687,0,0,1],gf=[.01354,.52239,0,0,1],mf=[.01354,.52239,0,0,1.11111],vf=[0,.54986,0,0,1],yf=[0,.69224,0,0,.5],bf=[0,.43056,0,0,1],wf=[.08198,.58198,0,0,.77778],xf=[.19444,.69224,0,0,.41667],Sf=[.1808,.675,0,0,1],kf=[.19444,.69224,0,0,.83334],_f=[.13667,.63667,0,0,1],Cf=[-.064,.437,0,0,1.334],Pf=[.08167,.58167,0,0,.77778],Ef=[0,.69224,0,0,.72222],Mf=[0,.69224,0,0,.66667],Lf=[-.13313,.36687,0,0,.77778],Af=[.06062,.54986,0,0,.77778],Tf=[0,.69224,0,0,.77778],Df=[.25583,.75583,0,0,.77778],Nf=[.25142,.75726,0,0,.77778],If=[.20576,.70576,0,0,.77778],Bf=[.30274,.79383,0,0,.77778],Rf=[.22958,.72958,0,0,.77778],Of=[.1808,.675,0,0,.77778],Ff=[.13667,.63667,0,0,.77778],zf=[.13597,.63597,0,0,.77778],jf=[.03517,.54986,0,0,.77778],$f=[0,.675,0,0,.77778],Hf=[.19444,.69224,0,0,.61111],Zf=[0,.54986,0,0,.76042],Kf=[0,.54986,0,0,.66667],Gf=[.0391,.5391,0,0,.77778],Uf=[.03517,.54986,0,0,1.33334],Vf=[.38569,.88569,0,0,.77778],Wf=[.23222,.74111,0,0,.77778],qf=[.19444,.69224,0,0,.77778],Yf=[0,.37788,0,0,.5],Xf=[0,.54986,0,0,.72222],Qf=[0,.69224,0,0,.83334],Jf=[.11111,.69224,0,0,.66667],eg=[.26167,.75726,0,0,.77778],tg=[.48256,.98256,0,0,.77778],ng=[.28481,.79383,0,0,.77778],ig=[.08167,.58167,0,0,.22222],rg=[.08167,.58167,0,0,.38889],og=[0,.43056,.04028,0,.66667],ag=[.41951,.91951,0,0,.77778],sg=[.24982,.74947,0,0,.38865],lg=[.08319,.58283,0,0,.75623],cg=[0,.10803,0,0,.27764],ug=[0,.47534,0,0,.50181],hg=[.18906,.47534,0,0,.50181],dg=[0,.69141,0,0,.50181],pg=[.24982,.74947,0,0,.27764],fg=[0,.69141,0,0,.21471],gg=[.25,.75,0,0,.44722],mg=[0,.64444,0,0,.575],vg=[.08556,.58556,0,0,.89444],yg=[0,.69444,0,0,.89444],bg=[0,.68611,0,0,.9],wg=[0,.68611,0,0,.86944],xg=[.25,.75,0,0,.575],Sg=[.25,.75,0,0,.31944],kg=[0,.69444,0,0,.63889],_g=[0,.69444,0,0,.31944],Cg=[0,.44444,0,0,.63889],Pg=[0,.44444,0,0,.51111],Eg=[0,.69444,0,0,.575],Mg=[.13333,.63333,0,0,.89444],Lg=[0,.44444,0,0,.31944],Ag=[0,.69444,0,0,.86944],Tg=[0,.68611,0,0,.69166],Dg=[0,.68611,0,0,.83055],Ng=[0,.68611,0,0,.89444],Ig=[0,.69444,0,0,.60278],Bg=[.19444,.69444,0,0,.51111],Rg=[0,.69444,0,0,.83055],Og=[-.10889,.39111,0,0,1.14999],Fg=[.19444,.69444,0,0,.575],zg=[.19444,.69444,0,0,1.14999],jg=[.19444,.69444,0,0,.70277],$g=[.05556,.75,0,0,.575],Hg=[0,.68611,0,0,.95833],Zg=[.08556,.58556,0,0,.76666],Kg=[-.02639,.47361,0,0,.575],Gg=[0,.44444,0,0,.89444],Ug=[0,.55556,0,0,.76666],Vg=[-.10889,.39111,0,0,.89444],Wg=[.00222,.50222,0,0,.89444],qg=[.19667,.69667,0,0,.89444],Yg=[.08556,.58556,0,0,1.14999],Xg=[0,.69444,0,0,.70277],Qg=[-.02778,.47222,0,0,.575],Jg=[.25,.75,0,0,.51111],em=[-.13889,.36111,0,0,1.14999],tm=[.19444,.69444,0,0,1.02222],nm=[.12963,.69444,0,0,.89444],im=[.19444,.69444,0,0,.44722],rm=[0,.64444,.13167,0,.59111],om=[.19444,.64444,.13167,0,.59111],am=[0,.68611,.17208,0,.8961],sm=[.19444,.44444,.105,0,.53222],lm=[0,.44444,.085,0,.82666],cm=[0,.69444,.06709,0,.59111],um=[0,.69444,.12945,0,.35555],hm=[0,.69444,0,0,.94888],dm=[0,.69444,.11472,0,.59111],pm=[0,.68611,.10778,0,.88555],fm=[0,.69444,.07939,0,.62055],gm=[0,.69444,.12417,0,.30667],mm=[0,.64444,.13556,0,.51111],vm=[.19444,.64444,.13556,0,.51111],ym=[0,.68333,.16389,0,.74333],bm=[.19444,.43056,.08847,0,.46],wm=[0,.43056,.07514,0,.71555],xm=[0,.69444,.06646,0,.51111],Sm=[0,.69444,0,0,.83129],km=[0,.69444,.1225,0,.51111],_m=[0,.68333,.09403,0,.76666],Cm=[0,.68333,.11111,0,.76666],Pm=[0,.69444,.06961,0,.51444],Em=[0,.69444,0,0,.27778],Mm=[.25,.75,0,0,.38889],Lm=[0,.64444,0,0,.5],Am=[0,.69444,0,0,.77778],Tm=[0,.68333,0,0,.75],Dm=[0,.68333,0,0,.77778],Nm=[0,.68333,0,0,.68056],Im=[0,.68333,0,0,.72222],Bm=[.25,.75,0,0,.5],Rm=[.25,.75,0,0,.27778],Om=[0,.69444,0,0,.5],Fm=[0,.69444,0,0,.55556],zm=[0,.43056,0,0,.44445],jm=[0,.43056,0,0,.5],$m=[.19444,.43056,0,0,.55556],Hm=[0,.43056,0,0,.55556],Zm=[.08333,.58333,0,0,.77778],Km=[0,.43056,0,0,.27778],Gm=[0,.66786,0,0,.27778],Um=[0,.69444,0,0,.75],Vm=[0,.66786,0,0,.5],Wm=[0,.68333,0,0,.625],qm=[.19444,.69444,0,0,.44445],Ym=[0,.69444,0,0,.72222],Xm=[.19444,.69444,0,0,.5],Qm=[.19444,.69444,0,0,1],Jm=[.011,.511,0,0,1.126],ev=[.19444,.69444,0,0,.61111],tv=[.05556,.75,0,0,.5],nv=[0,.68333,0,0,.83334],iv=[.0391,.5391,0,0,.66667],rv=[-.05555,.44445,0,0,.5],ov=[0,.43056,0,0,.77778],av=[0,.55556,0,0,.66667],sv=[-.03625,.46375,0,0,.77778],lv=[-.01688,.48312,0,0,.77778],cv=[.0391,.5391,0,0,1],uv=[0,.69444,0,0,.61111],hv=[-.03472,.46528,0,0,.5],dv=[.25,.75,0,0,.44445],pv=[-.14236,.35764,0,0,1],fv=[.244,.744,0,0,.412],gv=[.19444,.69444,0,0,.88889],mv=[.12963,.69444,0,0,.77778],vv=[.19444,.69444,0,0,.38889],yv=[.011,.511,0,0,1.638],bv=[.19444,.69444,0,0,0],wv=[0,.44444,0,0,.575],xv=[.19444,.44444,0,0,.575],Sv=[0,.68611,0,0,.75555],kv=[0,.69444,0,0,.66759],_v=[0,.68611,0,0,.80555],Cv=[0,.68611,.08229,0,.98229],Pv=[0,.68611,0,0,.76666],Ev=[0,.44444,0,0,.58472],Mv=[.19444,.44444,0,0,.6118],Lv=[.19444,.43056,0,0,.5],Av=[0,.68333,.02778,.08334,.76278],Tv=[0,.68333,.08125,.05556,.83125],Dv=[0,.43056,0,.05556,.48472],Nv=[.19444,.43056,0,.08334,.51702],Iv=[.25,.75,0,0,.42778],Bv=[0,.69444,0,0,.55],Rv=[0,.69444,0,0,.73334],Ov=[0,.69444,0,0,.79445],Fv=[0,.69444,0,0,.51945],zv=[0,.69444,0,0,.70278],jv=[0,.69444,0,0,.76389],$v=[.25,.75,0,0,.34306],Hv=[0,.69444,0,0,.56111],Zv=[0,.69444,0,0,.25556],Kv=[.19444,.45833,0,0,.56111],Gv=[0,.45833,0,0,.56111],Uv=[0,.69444,0,0,.30556],Vv=[0,.69444,0,0,.58056],Wv=[0,.69444,0,0,.67223],qv=[0,.69444,0,0,.85556],Yv=[0,.69444,0,0,.55834],Xv=[0,.65556,.11156,0,.5],Qv=[0,.69444,.08094,0,.70834],Jv=[.17014,0,0,0,.44445],ey=[0,.69444,.0799,0,.5],ty=[0,.69444,0,0,.73752],ny=[0,.69444,.09205,0,.5],iy=[0,.69444,.09031,0,.77778],ry=[0,.69444,.07816,0,.27778],oy=[0,.69444,.00316,0,.5],ay=[.19444,.69444,0,0,.83334],sy=[.05556,.75,0,0,.83334],ly=[0,.75,0,0,.5],cy=[.125,.08333,0,0,.27778],uy=[0,.08333,0,0,.27778],hy=[0,.65556,0,0,.5],dy=[0,.69444,0,0,.47222],py=[0,.69444,0,0,.66667],fy=[0,.69444,0,0,.59722],gy=[0,.69444,0,0,.54167],my=[0,.69444,0,0,.70834],vy=[.25,.75,0,0,.28889],yy=[0,.69444,0,0,.51667],by=[0,.44444,0,0,.44445],wy=[.19444,.44444,0,0,.51667],xy=[0,.44444,0,0,.38333],Sy=[0,.44444,0,0,.51667],ky=[0,.69444,0,0,.83334],_y=[.35001,.85,0,0,.45834],Cy=[.35001,.85,0,0,.57778],Py=[.35001,.85,0,0,.41667],Ey=[.35001,.85,0,0,.58334],My=[0,.72222,0,0,.55556],Ly=[1e-5,.6,0,0,.66667],Ay=[1e-5,.6,0,0,.77778],Ty=[.25001,.75,0,0,.94445],Dy=[.306,.805,.19445,0,.47222],Ny=[.30612,.805,.19445,0,.47222],Iy=[.25001,.75,0,0,.83334],By=[.35001,.85,0,0,.47222],Ry=[.25001,.75,0,0,1.11111],Oy=[.65002,1.15,0,0,.59722],Fy=[.65002,1.15,0,0,.81111],zy=[.65002,1.15,0,0,.47222],jy=[.65002,1.15,0,0,.66667],$y=[0,.75,0,0,1],Hy=[.55001,1.05,0,0,1.27778],Zy=[.862,1.36,.44445,0,.55556],Ky=[.86225,1.36,.44445,0,.55556],Gy=[.55001,1.05,0,0,1.11111],Uy=[.65002,1.15,0,0,.52778],Vy=[.65002,1.15,0,0,.61111],Wy=[.55001,1.05,0,0,1.51112],qy=[.95003,1.45,0,0,.73611],Yy=[.95003,1.45,0,0,1.04445],Xy=[.95003,1.45,0,0,.52778],Qy=[.95003,1.45,0,0,.75],Jy=[0,.75,0,0,1.44445],eb=[.95003,1.45,0,0,.58334],tb=[1.25003,1.75,0,0,.79167],nb=[1.25003,1.75,0,0,1.27778],ib=[1.25003,1.75,0,0,.58334],rb=[1.25003,1.75,0,0,.80556],ob=[0,.825,0,0,1.8889],ab=[1.25003,1.75,0,0,.63889],sb=[.64502,1.155,0,0,.875],lb=[1e-5,.6,0,0,.875],cb=[-99e-5,.601,0,0,.66667],ub=[.64502,1.155,0,0,.66667],hb=[1e-5,.9,0,0,.88889],db=[.65002,1.15,0,0,.88889],pb=[.90001,0,0,0,.88889],fb=[-.00499,.605,0,0,1.05556],gb=[0,.12,0,0,.45],mb=[0,.61111,0,0,.525],vb=[.08333,.69444,0,0,.525],yb=[-.08056,.53055,0,0,.525],bb=[-.05556,.55556,0,0,.525],wb=[0,.43056,0,0,.525],xb=[.22222,.43056,0,0,.525],Sb=[0,0,0,0,.525],kb={"AMS-Regular":{32:cf,65:nf,66:rf,67:nf,68:nf,69:rf,70:af,71:of,72:of,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:of,76:rf,77:[0,.68889,0,0,.94445],78:nf,79:sf,80:af,81:sf,82:nf,83:lf,84:rf,85:nf,86:nf,87:[0,.68889,0,0,1],88:nf,89:nf,90:rf,107:lf,160:cf,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:lf,295:df,710:uf,732:hf,770:uf,771:hf,989:Pf,1008:og,8245:[0,.54986,0,0,.275],8463:df,8487:nf,8498:lf,8502:rf,8503:[0,.68889,0,0,.44445],8504:rf,8513:[0,.68889,0,0,.63889],8592:pf,8594:pf,8602:ff,8603:ff,8606:gf,8608:gf,8610:mf,8611:mf,8619:vf,8620:vf,8621:[-.13313,.37788,0,0,1.38889],8622:ff,8624:yf,8625:yf,8630:bf,8631:bf,8634:wf,8635:wf,8638:xf,8639:xf,8642:xf,8643:xf,8644:Sf,8646:Sf,8647:Sf,8648:kf,8649:Sf,8650:kf,8651:gf,8652:gf,8653:ff,8654:ff,8655:ff,8666:_f,8667:_f,8669:[-.13313,.37788,0,0,1],8672:Cf,8674:Cf,8705:[0,.825,0,0,.5],8708:lf,8709:Pf,8717:[0,.43056,0,0,.42917],8722:pf,8724:[.08198,.69224,0,0,.77778],8726:Pf,8733:Tf,8736:Ef,8737:Ef,8738:[.03517,.52239,0,0,.72222],8739:ig,8740:[.25142,.74111,0,0,.27778],8741:rg,8742:[.25142,.74111,0,0,.5],8756:Mf,8757:Mf,8764:Lf,8765:[-.13313,.37788,0,0,.77778],8769:Lf,8770:sv,8774:Bf,8776:lv,8778:Pf,8782:Af,8783:Af,8785:wf,8786:wf,8787:wf,8790:Tf,8791:Rf,8796:[.08198,.91667,0,0,.77778],8806:Df,8807:Df,8808:Nf,8809:Nf,8812:[.25583,.75583,0,0,.5],8814:If,8815:If,8816:Bf,8817:Bf,8818:Rf,8819:Rf,8822:Of,8823:Of,8828:Ff,8829:Ff,8830:Rf,8831:Rf,8832:If,8833:If,8840:Bf,8841:Bf,8842:zf,8843:zf,8847:jf,8848:jf,8858:wf,8859:wf,8861:wf,8862:$f,8863:$f,8864:$f,8865:$f,8872:[0,.69224,0,0,.61111],8873:Ef,8874:[0,.69224,0,0,.88889],8876:af,8877:af,8878:nf,8879:nf,8882:jf,8883:jf,8884:Ff,8885:Ff,8888:[0,.54986,0,0,1.11111],8890:$m,8891:Hf,8892:Hf,8901:[0,.54986,0,0,.27778],8903:Pf,8905:Pf,8906:Pf,8907:Tf,8908:Tf,8909:[-.03598,.46402,0,0,.77778],8910:Zf,8911:Zf,8912:jf,8913:jf,8914:Kf,8915:Kf,8916:Mf,8918:Gf,8919:Gf,8920:Uf,8921:Uf,8922:Vf,8923:Vf,8926:Ff,8927:Ff,8928:Bf,8929:Bf,8934:Wf,8935:Wf,8936:Wf,8937:Wf,8938:If,8939:If,8940:Bf,8941:Bf,8994:qf,8995:qf,9416:[.15559,.69224,0,0,.90222],9484:yf,9488:yf,9492:Yf,9496:Yf,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:$f,9633:$f,9650:Xf,9651:Xf,9654:jf,9660:Xf,9661:Xf,9664:jf,9674:Jf,9733:[.19444,.69224,0,0,.94445],10003:Qf,10016:Qf,10731:Jf,10846:[.19444,.75583,0,0,.61111],10877:Ff,10878:Ff,10885:Df,10886:Df,10887:zf,10888:zf,10889:eg,10890:eg,10891:tg,10892:tg,10901:Ff,10902:Ff,10933:Nf,10934:Nf,10935:eg,10936:eg,10937:eg,10938:eg,10949:Df,10950:Df,10955:ng,10956:ng,57350:ig,57351:rg,57352:Pf,57353:og,57356:Nf,57357:Nf,57358:ag,57359:Bf,57360:Bf,57361:ag,57366:Nf,57367:Nf,57368:Nf,57369:Nf,57370:zf,57371:zf},"Caligraphic-Regular":{32:cf,65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:cf},"Fraktur-Regular":{32:cf,33:[0,.69141,0,0,.29574],34:fg,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:sg,41:sg,42:[0,.62119,0,0,.27764],43:lg,44:cg,45:lg,46:cg,47:[.24982,.74947,0,0,.50181],48:ug,49:ug,50:ug,51:hg,52:hg,53:hg,54:dg,55:hg,56:dg,57:hg,58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:pg,93:pg,94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:cf,8216:fg,8217:fg,58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:cf,33:[0,.69444,0,0,.35],34:Ig,35:[.19444,.69444,0,0,.95833],36:$g,37:[.05556,.75,0,0,.95833],38:yg,39:_g,40:gg,41:gg,42:[0,.75,0,0,.575],43:Mg,44:[.19444,.15556,0,0,.31944],45:xy,46:[0,.15556,0,0,.31944],47:xg,48:mg,49:mg,50:mg,51:mg,52:mg,53:mg,54:mg,55:mg,56:mg,57:mg,58:Lg,59:[.19444,.44444,0,0,.31944],60:vg,61:Vg,62:vg,63:[0,.69444,0,0,.54305],64:yg,65:wg,66:[0,.68611,0,0,.81805],67:Dg,68:[0,.68611,0,0,.88194],69:Sv,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:bg,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:Tg,77:[0,.68611,0,0,1.09166],78:bg,79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:wg,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Sg,92:xg,93:Sg,94:Eg,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:kg,99:Pg,100:kg,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:kg,105:_g,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:_g,109:[0,.44444,0,0,.95833],110:Cg,111:wv,112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:Cg,118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:Pg,123:xg,124:Sg,125:xg,126:[.35,.34444,0,0,.575],160:cf,163:[0,.69444,0,0,.86853],168:Eg,172:[0,.44444,0,0,.76666],176:Ag,177:Mg,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Mg,216:[.04861,.73472,0,0,.89444],223:fy,230:[0,.44444,0,0,.83055],247:Mg,248:[.09722,.54167,0,0,.575],305:Lg,338:[0,.68611,0,0,1.16944],339:Gg,567:[.19444,.44444,0,0,.35139],710:Eg,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Eg,715:Eg,728:Eg,729:_g,730:Ag,732:Eg,733:Eg,915:Tg,916:Hg,920:Ng,923:_v,926:Pv,928:bg,931:Dg,933:Ng,934:Dg,936:Ng,937:Dg,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:_g,8217:_g,8220:Ig,8221:Ig,8224:Bg,8225:Bg,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:kv,8465:Rg,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:Rg,8501:Xg,8592:Og,8593:Fg,8594:Og,8595:Fg,8596:Og,8597:xg,8598:zg,8599:zg,8600:zg,8601:zg,8636:Og,8637:Og,8640:Og,8641:Og,8656:Og,8657:jg,8658:Og,8659:jg,8660:Og,8661:[.25,.75,0,0,.70277],8704:kg,8706:[0,.69444,.06389,0,.62847],8707:kg,8709:$g,8711:Hg,8712:Zg,8715:Zg,8722:Mg,8723:Mg,8725:xg,8726:xg,8727:Qg,8728:Kg,8729:Kg,8730:[.18,.82,0,0,.95833],8733:Gg,8734:[0,.44444,0,0,1.14999],8736:Ef,8739:Sg,8741:xg,8743:Ug,8744:Ug,8745:Ug,8746:Ug,8747:[.19444,.69444,.12778,0,.56875],8764:Vg,8768:[.19444,.69444,0,0,.31944],8771:Wg,8776:[.02444,.52444,0,0,.89444],8781:Wg,8801:Wg,8804:qg,8805:qg,8810:Yg,8811:Yg,8826:vg,8827:vg,8834:vg,8835:vg,8838:qg,8839:qg,8846:Ug,8849:qg,8850:qg,8851:Ug,8852:Ug,8853:Mg,8854:Mg,8855:Mg,8856:Mg,8857:Mg,8866:Xg,8867:Xg,8868:yg,8869:yg,8900:Kg,8901:[-.02639,.47361,0,0,.31944],8902:Qg,8968:Jg,8969:Jg,8970:Jg,8971:Jg,8994:em,8995:em,9651:tm,9657:Qg,9661:tm,9667:Qg,9711:zg,9824:nm,9825:nm,9826:nm,9827:nm,9837:[0,.75,0,0,.44722],9838:im,9839:im,10216:gg,10217:gg,10815:bg,10927:qg,10928:qg,57376:bv},"Main-BoldItalic":{32:cf,33:[0,.69444,.11417,0,.38611],34:fm,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:um,40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:rm,49:rm,50:rm,51:rm,52:om,53:rm,54:rm,55:om,56:rm,57:rm,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:dm,64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:am,73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:am,79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:cm,95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:sm,104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:sm,114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:cf,168:[0,.69444,.11473,0,.59111],176:hm,184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:lm,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:lm,567:[.19444,.44444,.04611,0,.385],710:cm,711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:um,730:hm,732:dm,733:dm,915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:am,931:[0,.68611,.11431,0,.82666],933:pm,934:[0,.68611,.05632,0,.82666],936:pm,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:um,8217:um,8220:[0,.69444,.16772,0,.62055],8221:fm},"Main-Italic":{32:cf,33:gm,34:Pm,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:gm,40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:mm,49:mm,50:mm,51:mm,52:vm,53:mm,54:mm,55:vm,56:mm,57:mm,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:km,64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:ym,73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:ym,79:_m,80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:ym,86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:xm,95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:bm,104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:bm,114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:cf,168:[0,.66786,.10474,0,.51111],176:Sm,184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:wm,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:wm,710:xm,711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:Sm,732:[0,.66786,.11585,0,.51111],733:km,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:_m,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:ym,931:[0,.68333,.12028,0,.71555],933:Cm,934:[0,.68333,.05986,0,.71555],936:Cm,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:gm,8217:gm,8220:[0,.69444,.1685,0,.51444],8221:Pm,8463:df},"Main-Regular":{32:cf,33:Em,34:Om,35:ay,36:tv,37:sy,38:Am,39:Em,40:Mm,41:Mm,42:ly,43:Zm,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:Bm,48:Lm,49:Lm,50:Lm,51:Lm,52:Lm,53:Lm,54:Lm,55:Lm,56:Lm,57:Lm,58:Km,59:[.19444,.43056,0,0,.27778],60:Gf,61:Lf,62:Gf,63:dy,64:Am,65:Tm,66:[0,.68333,0,0,.70834],67:Im,68:[0,.68333,0,0,.76389],69:Nm,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Tm,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Dm,76:Wm,77:[0,.68333,0,0,.91667],78:Tm,79:Dm,80:Nm,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Im,85:Tm,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Tm,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:Rm,92:Bm,93:Rm,94:Om,95:[.31,.12056,.02778,0,.5],97:jm,98:Fm,99:zm,100:Fm,101:zm,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:Fm,105:Gm,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:Em,109:[0,.43056,0,0,.83334],110:Hm,111:jm,112:$m,113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:Hm,118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:zm,123:Bm,124:Rm,125:Bm,126:[.35,.31786,0,0,.5],160:cf,163:[0,.69444,0,0,.76909],167:qm,168:Vm,172:[0,.43056,0,0,.66667],176:Um,177:Zm,182:ev,184:Jv,198:[0,.68333,0,0,.90278],215:Zm,216:[.04861,.73194,0,0,.77778],223:Om,230:[0,.43056,0,0,.72222],247:Zm,248:[.09722,.52778,0,0,.5],305:Km,338:[0,.68333,0,0,1.01389],339:ov,567:[.19444,.43056,0,0,.30556],710:Om,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Om,715:Om,728:Om,729:Gm,730:Um,732:Vm,733:Om,915:Wm,916:nv,920:Dm,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Tm,931:Im,933:Dm,934:Im,936:Dm,937:Im,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:Em,8217:Em,8220:Om,8221:Om,8224:qm,8225:qm,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:df,8465:Ym,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Ym,8501:uv,8592:ff,8593:Xm,8594:ff,8595:Xm,8596:ff,8597:Bm,8598:Qm,8599:Qm,8600:Qm,8601:Qm,8614:[.011,.511,0,0,1],8617:Jm,8618:Jm,8636:ff,8637:ff,8640:ff,8641:ff,8652:[.011,.671,0,0,1],8656:ff,8657:ev,8658:ff,8659:ev,8660:ff,8661:[.25,.75,0,0,.61111],8704:Fm,8706:[0,.69444,.05556,.08334,.5309],8707:Fm,8709:tv,8711:nv,8712:iv,8715:iv,8722:Zm,8723:Zm,8725:Bm,8726:Bm,8727:hv,8728:rv,8729:rv,8730:[.2,.8,0,0,.83334],8733:ov,8734:bf,8736:Ef,8739:Rm,8741:Bm,8743:av,8744:av,8745:av,8746:av,8747:[.19444,.69444,.11111,0,.41667],8764:Lf,8768:[.19444,.69444,0,0,.27778],8771:sv,8773:[-.022,.589,0,0,1],8776:lv,8781:sv,8784:[-.133,.67,0,0,.778],8801:sv,8804:zf,8805:zf,8810:cv,8811:cv,8826:Gf,8827:Gf,8834:Gf,8835:Gf,8838:zf,8839:zf,8846:av,8849:zf,8850:zf,8851:av,8852:av,8853:Zm,8854:Zm,8855:Zm,8856:Zm,8857:Zm,8866:uv,8867:uv,8868:Am,8869:Am,8872:[.249,.75,0,0,.867],8900:rv,8901:[-.05555,.44445,0,0,.27778],8902:hv,8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:dv,8969:dv,8970:dv,8971:dv,8994:pv,8995:pv,9136:fv,9137:fv,9651:gv,9657:hv,9661:gv,9667:hv,9711:Qm,9824:mv,9825:mv,9826:mv,9827:mv,9837:[0,.75,0,0,.38889],9838:vv,9839:vv,10216:Mm,10217:Mm,10222:fv,10223:fv,10229:[.011,.511,0,0,1.609],10230:yv,10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:yv,10815:Tm,10927:zf,10928:zf,57376:bv},"Math-BoldItalic":{32:cf,48:wv,49:wv,50:wv,51:xv,52:xv,53:xv,54:mg,55:xv,56:mg,57:xv,65:wg,66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:Cv,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Sv,77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:kv,105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:Ev,112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:cf,915:[0,.68611,.15972,0,.65694],916:Hg,920:[0,.68611,.03194,0,.86722],923:_v,926:[0,.68611,.07458,0,.84125],928:Cv,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:Pv,936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:Ev,960:[0,.44444,.03704,0,.68241],961:Mv,962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:Mv,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:cf,48:jm,49:jm,50:jm,51:Lv,52:Lv,53:Lv,54:Lm,55:Lv,56:Lm,57:Lv,65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:Tv,73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:Av,80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:Dv,112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:cf,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:Av,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Tv,931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:Dv,960:[0,.43056,.03588,0,.57003],961:Nv,962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:Nv,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:cf,33:[0,.69444,0,0,.36667],34:Yv,35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:Uv,40:Iv,41:Iv,42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:Bv,49:Bv,50:Bv,51:Bv,52:Bv,53:Bv,54:Bv,55:Bv,56:Bv,57:Bv,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Fv,64:Rv,65:Rv,66:Rv,67:zv,68:Ov,69:[0,.69444,0,0,.64167],70:uv,71:Rv,72:Ov,73:[0,.69444,0,0,.33056],74:Fv,75:jv,76:Vv,77:[0,.69444,0,0,.97778],78:Ov,79:Ov,80:zv,81:[.10556,.69444,0,0,.79445],82:zv,83:uv,84:Rv,85:jv,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Rv,89:[0,.69444,.0275,0,.73334],90:Wv,91:$v,93:$v,94:Bv,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:Hv,99:[0,.45833,0,0,.48889],100:Hv,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:Hv,105:Zv,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Zv,109:[0,.45833,0,0,.86667],110:Gv,111:[0,.45833,0,0,.55],112:Kv,113:Kv,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:Gv,118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:cf,168:Bv,176:Rv,180:Bv,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:Bv,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:Bv,729:Uv,730:Rv,732:Bv,733:Bv,915:Vv,916:[0,.69444,0,0,.91667],920:qv,923:Wv,926:Rv,928:Ov,931:Ov,933:qv,934:Ov,936:qv,937:Ov,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Uv,8217:Uv,8220:Yv,8221:Yv},"SansSerif-Italic":{32:cf,33:[0,.69444,.05733,0,.31945],34:oy,35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:ry,40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:cy,45:[0,.44444,.01946,0,.33333],46:uy,47:[.25,.75,.13164,0,.5],48:Xv,49:Xv,50:Xv,51:Xv,52:Xv,53:Xv,54:Xv,55:Xv,56:Xv,57:Xv,58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:py,66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:Qv,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:gy,77:[0,.69444,.08094,0,.875],78:Qv,79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:ey,95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:cf,168:[0,.67937,.06385,0,.5],176:ty,184:Jv,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:ey,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:ny,715:Om,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:ty,732:[0,.67659,.08826,0,.5],733:ny,915:[0,.69444,.13372,0,.54167],916:ky,920:[0,.69444,.07555,0,.77778],923:uv,926:[0,.69444,.12816,0,.66667],928:Qv,931:[0,.69444,.11983,0,.72222],933:iy,934:[0,.69444,.04603,0,.72222],936:iy,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:ry,8217:ry,8220:[0,.69444,.14205,0,.5],8221:oy},"SansSerif-Regular":{32:cf,33:[0,.69444,0,0,.31945],34:Om,35:ay,36:tv,37:sy,38:[0,.69444,0,0,.75834],39:Em,40:Mm,41:Mm,42:ly,43:Zm,44:cy,45:[0,.44444,0,0,.33333],46:uy,47:Bm,48:hy,49:hy,50:hy,51:hy,52:hy,53:hy,54:hy,55:hy,56:hy,57:hy,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:dy,64:py,65:py,66:py,67:kg,68:[0,.69444,0,0,.72223],69:fy,70:[0,.69444,0,0,.56945],71:py,72:my,73:Em,74:dy,75:[0,.69444,0,0,.69445],76:gy,77:[0,.69444,0,0,.875],78:my,79:[0,.69444,0,0,.73611],80:kg,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:Fm,84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:py,89:[0,.69444,.025,0,.66667],90:uv,91:vy,93:vy,94:Om,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:yy,99:by,100:yy,101:by,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:yy,105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:Sy,111:[0,.44444,0,0,.5],112:wy,113:wy,114:[0,.44444,.01389,0,.34167],115:xy,116:[0,.57143,0,0,.36111],117:Sy,118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:cf,168:[0,.67937,0,0,.5],176:py,184:Jv,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Om,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Om,715:Om,728:Om,729:[0,.67937,0,0,.27778],730:py,732:[0,.67659,0,0,.5],733:Om,915:gy,916:ky,920:Am,923:uv,926:py,928:my,931:Ym,933:Am,934:Ym,936:Am,937:Ym,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:Em,8217:Em,8220:Om,8221:Om},"Script-Regular":{32:cf,65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:cf},"Size1-Regular":{32:cf,40:_y,41:_y,47:Cy,91:Py,92:Cy,93:Py,123:Ey,125:Ey,160:cf,710:My,732:My,770:My,771:My,8214:[-99e-5,.601,0,0,.77778],8593:Ly,8595:Ly,8657:Ay,8659:Ay,8719:Ty,8720:Ty,8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:Ny,8748:Dy,8749:Dy,8750:Ny,8896:Iy,8897:Iy,8898:Iy,8899:Iy,8968:By,8969:By,8970:By,8971:By,9168:cb,10216:By,10217:By,10752:Ry,10753:Ry,10754:Ry,10756:Iy,10758:Iy},"Size2-Regular":{32:cf,40:Oy,41:Oy,47:Fy,91:zy,92:Fy,93:zy,123:jy,125:jy,160:cf,710:$y,732:$y,770:$y,771:$y,8719:Hy,8720:Hy,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:Ky,8748:Zy,8749:Zy,8750:Ky,8896:Gy,8897:Gy,8898:Gy,8899:Gy,8968:Uy,8969:Uy,8970:Uy,8971:Uy,10216:Vy,10217:Vy,10752:Wy,10753:Wy,10754:Wy,10756:Gy,10758:Gy},"Size3-Regular":{32:cf,40:qy,41:qy,47:Yy,91:Xy,92:Yy,93:Xy,123:Qy,125:Qy,160:cf,710:Jy,732:Jy,770:Jy,771:Jy,8730:[.95003,1.45,0,0,1],8968:eb,8969:eb,8970:eb,8971:eb,10216:Qy,10217:Qy},"Size4-Regular":{32:cf,40:tb,41:tb,47:nb,91:ib,92:nb,93:ib,123:rb,125:rb,160:cf,710:ob,732:ob,770:ob,771:ob,8730:[1.25003,1.75,0,0,1],8968:ab,8969:ab,8970:ab,8971:ab,9115:sb,9116:lb,9117:sb,9118:sb,9119:lb,9120:sb,9121:ub,9122:cb,9123:ub,9124:ub,9125:cb,9126:ub,9127:hb,9128:db,9129:pb,9130:[0,.3,0,0,.88889],9131:hb,9132:db,9133:pb,9143:[.88502,.915,0,0,1.05556],10216:rb,10217:rb,57344:fb,57345:fb,57680:gb,57681:gb,57682:gb,57683:gb},"Typewriter-Regular":{32:Sb,33:mb,34:mb,35:mb,36:vb,37:vb,38:mb,39:mb,40:vb,41:vb,42:[0,.52083,0,0,.525],43:yb,44:[.13889,.125,0,0,.525],45:yb,46:[0,.125,0,0,.525],47:vb,48:mb,49:mb,50:mb,51:mb,52:mb,53:mb,54:mb,55:mb,56:mb,57:mb,58:wb,59:[.13889,.43056,0,0,.525],60:bb,61:[-.19549,.41562,0,0,.525],62:bb,63:mb,64:mb,65:mb,66:mb,67:mb,68:mb,69:mb,70:mb,71:mb,72:mb,73:mb,74:mb,75:mb,76:mb,77:mb,78:mb,79:mb,80:mb,81:[.13889,.61111,0,0,.525],82:mb,83:mb,84:mb,85:mb,86:mb,87:mb,88:mb,89:mb,90:mb,91:vb,92:vb,93:vb,94:mb,95:[.09514,0,0,0,.525],96:mb,97:wb,98:mb,99:wb,100:mb,101:wb,102:mb,103:xb,104:mb,105:mb,106:[.22222,.61111,0,0,.525],107:mb,108:mb,109:wb,110:wb,111:wb,112:xb,113:xb,114:wb,115:wb,116:[0,.55358,0,0,.525],117:wb,118:wb,119:wb,120:wb,121:xb,122:wb,123:vb,124:vb,125:vb,126:mb,127:mb,160:Sb,176:mb,184:[.19445,0,0,0,.525],305:wb,567:xb,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:mb,715:mb,728:mb,730:mb,770:mb,771:mb,776:mb,915:mb,916:mb,920:mb,923:mb,926:mb,928:mb,931:mb,933:mb,934:mb,936:mb,937:mb,8216:mb,8217:mb,8242:mb,9251:[.11111,.21944,0,0,.525]}},_b=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,Cb=10,Pb=.25,Eb=.431,Mb={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[Eb,Eb,Eb],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.5,.732,.925],num2:[.394,.384,.5],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[Pb,Pb,Pb],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04]},Lb=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ab={" ":" ","​":" ","Å":"A","Ç":"C","Ð":"D","Þ":"o","å":"a","ç":"c","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function Tb(e,t){void 0===e&&(e=77);const n=kb[t][e];if(n)return{defaultMetrics:!1,depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]};if(11034===e)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const i=String.fromCodePoint(e);if(i in Ab)e=Ab[i].codePointAt(0);else if(_b.test(i))return e=77,{defaultMetrics:!0,depth:.2,height:.9,italic:0,skew:0,width:1};return{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0,width:.8}}var Db={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],longrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],longleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],longleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],longrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],longleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],longleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],longRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716],longLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Nb={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34],overarc:[1061,159,.3],underarc:[1061,159,.3]},Ib={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",overarc:"M529 0c179 0 524 115 524 115 5 1 9 5 9 10 0 1-1 2-1 3l-4 22c-1 5-5 9-11 9h-2s-338-93-512-92c-174 0-513 92-513 92h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13 0 0 342-115 520-115z",underarc:"m 529 160\n c -179 0 -524 -115 -524 -115\n c -5 -1 -9 -5 -9 -10\n c 0 -1 1 -2 1 -3\n l 4 -22\n c 1 -5 5 -9 11 -9\n h 2\n s 338 93 512 92\n c 174 0 513 -92 513 -92\n h 2\n c 5 0 9 4 11 9\n l 5 22\n c 1 6 -2 12 -8 13\n c 0 0 -342 115 -520 115\n z\n ",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",widetilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",widetilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",widetilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",widetilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};var Bb,Rb=8205,Ob=[[Rb,1],[65038,2],[127995,5],[129456,4],[917536,96]],Fb=[127462,127487];function zb(e){var t;if(void 0===Bb){Bb={};for(const e of Ob)for(let t=e[0];t<=e[0]+e[1]-1;t++)Bb[t]=!0}return null!=(t=Bb[e])&&t}function jb(e){return e>=Fb[0]&&e<=Fb[1]}function $b(e){if(/^[\u0020-\u00FF]*$/.test(e))return e;const t=[],n=function(e){const t=[];for(let n=0;n=55296&&i<=56319){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(i=65536+1024*(i-55296)+(t-56320),n++)}t.push(i)}return t}(e);let i=0;for(;i");else if("\\egroup"===s)a.push("<}>");else if("\\string"===s){if(s=e.next(),s)if(s.startsWith("\\"))for(const e of s)a.push("\\"===e?"\\backslash":e);else"<{>"===s?a.push("\\{"):""===s?a.push("~"):"<}>"===s&&a.push("\\}")}else if("\\csname"===s){for(;""===e.peek();)e.next();let r="",o=!1,l=[];do{if(0===l.length)if(/^#[\d?@]$/.test(e.peek())){const r=e.get().slice(1);l=Zb(null!=(i=null!=(n=null==t?void 0:t(r))?n:null==t?void 0:t("?"))?i:"\\placeholder{}",t),s=l[0]}else s=e.next(),l=s?[s]:[];o=0===l.length,o||"\\endcsname"!==s||(o=!0,l.shift()),o||(o="<$>"===s||"<$$>"===s||"<{>"===s||"<}>"===s||"string"==typeof s&&s.length>1&&s.startsWith("\\")),o||(r+=l.shift())}while(!o);r&&a.push("\\"+r),a.push(...l)}else if("\\endcsname"===s);else if(s.length>1&&s.startsWith("#")){const e=s.slice(1);a.push(...Zb(null!=(o=null!=(r=null==t?void 0:t(e))?r:null==t?void 0:t("?"))?o:"\\placeholder{}",t))}else a.push(s);return a}function Zb(e,t=null){const n=[];let i="";for(const t of e.toString().split(/\r?\n/)){i&&n.push(i),i=" ";const e=t.match(/((?:\\%)|[^%])*/);null!==e&&n.push(e[0])}const r=new class{constructor(e){this.obeyspaces=!1,this.pos=0,this.s=$b(e)}end(){return this.pos>=this.s.length}get(){return this.pos";if(this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]/))return"";const e=this.get();if("\\"===e){if(!this.end()){let e=this.match(/^[a-zA-Z\*]+/);return e?this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]*/):e=this.get(),"\\"+e}}else{if("{"===e)return"<{>";if("}"===e)return"<}>";if("^"===e){if("^"===this.peek()){this.get();const e=this.match(/^(\^(\^(\^(\^[\da-f])?[\da-f])?[\da-f])?[\da-f])?[\da-f]{2}/);if(e)return String.fromCodePoint(Number.parseInt(e.slice(e.lastIndexOf("^")+1),16))}return e}if("#"===e){if(!this.end()){let e=!1;if(/[\d?@]/.test(this.peek())&&(e=!0,this.pos+1"):"<$>"}return e}}(function(e){var t;let n="";for(const i of e){if("{}<>[]$&#^_%:'˜".includes(i)){n+=i;continue}const e=null!=(t=i.codePointAt(0))?t:0;let r=Cp[e];if(r)r.startsWith("\\")?n+=r+" ":n+=r;else{const{char:t,variant:i,style:o}=Lp(e);switch(r=t,i){case"double-struck":r=`\\mathbb{${r}}`;break;case"fraktur":r=`\\mathfrak{${r}}`;break;case"script":r=`\\mathscr{${r}}`;break;case"sans-serif":r=`\\mathsf{${r}}`;break;case"monospace":r=`\\mathtt{${r}}`;break;case"calligraphic":r=`\\mathcal{${r}}`}switch(o){case"bold":r=`\\mathbf{${r}}`;break;case"italic":r=`\\mathit{${r}}`;break;case"bolditalic":r=`\\mathbfit{${r}}`}n+=r}}return n}(n.join(""))),o=[];do{o.push(...Hb(r,t))}while(!r.end());return o}function Kb(e){let t="";const n=[];for(const i of e)i&&(t&&/^[a-zA-Z\*]/.test(i)&&n.push(t),n.push(i),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(i)&&n.push(" "),t=/\\[a-zA-Z]+\*?$/.test(i)?" ":"");return n.join("")}function Gb(e,...t){return console.assert(e.startsWith("\\")),0===t.length?e:Kb([e,...t.map((e=>`{${e}}`))])}function Ub(e){return Kb(e.map((e=>{var t;return null!=(t={"":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[e])?t:e})))}var Vb=class e{constructor(t){e._registry[t]=this}static createAtom(t,n,i){return e._registry[t].createAtom(n,Jp(n,t),i)}static serialize(t,n){var i;if(!t||0===t.length)return"";if(null!=(i=n.skipStyles)&&i){const i=[];for(const r of qb(t)){const t=e._registry[r[0].mode];i.push(...t.serialize(r,n))}return Kb(i)}return Kb(function(e,t){if(0===e.length)return[];const{parent:n}=e[0],i=null==n?void 0:n.computedStyle.fontSize,r=[];for(const o of Yb(e,"fontSize")){const e=o[0].computedStyle.fontSize,a=Qb(o,t);a&&(!e||"auto"===e||n&&i===e?r.push(...a):r.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][e],...a))}return r}(t,n))}static getFont(t,n,i){return e._registry[t].getFont(n,i)}};Vb._registry={};var Wb=Vb;function qb(e){const t=[];let n=[],i="NONE";for(const r of e)"first"!==r.type&&(r.mode!==i?(n.length>0&&t.push(n),n=[r],i=r.mode):n.push(r));return n.length>0&&t.push(n),t}function Yb(e,t){const n=[];let i,r=[];for(const o of e)if("first"!==o.type&&o.style){let e;"variant"===t?(e=o.style.variant,o.style.variantStyle&&"up"!==o.style.variantStyle&&(e+="-"+o.style.variantStyle)):e=o.style[t],e===i?r.push(o):(r.length>0&&n.push(r),r=[o],i=e)}return r.length>0&&n.push(r),n}function Xb(e,t){var n;const{parent:i}=e[0],r=null==i?void 0:i.computedStyle.color,o=[];for(const a of qb(e)){const e=t.defaultMode;for(const s of Yb(a,"color")){const a=s[0].computedStyle,l=Wb._registry[s[0].mode].serialize(s,rp(ip({},t),{defaultMode:"text"===e?"text":"math"}));t.skipStyles||!a.color||"none"===a.color||i&&r===a.color?o.push(Kb(l)):o.push(Gb("\\textcolor",null!=(n=a.verbatimColor)?n:a.color,Kb(l)))}}return o}function Qb(e,t){const{parent:n}=e[0],i=null==n?void 0:n.computedStyle.backgroundColor;return Yb(e,"backgroundColor").map((e=>{var r;if(e.length>0||"box"!==e[0].type){const o=e[0].computedStyle;if(o.backgroundColor&&"none"!==o.backgroundColor&&(!n||i!==o.backgroundColor))return Gb("\\colorbox",null!=(r=o.verbatimBackgroundColor)?r:o.backgroundColor,Kb(Xb(e,rp(ip({},t),{defaultMode:"text"}))))}return Kb(Xb(e,t))}))}function Jb(e){if(!e)return;return{mord:"ord",mbin:"bin",mop:"op",mrel:"rel",mopen:"open",mclose:"close",mpunct:"punct",minner:"inner",spacing:"ignore",latex:"latex",composition:"inner",error:"inner",placeholder:"ord",supsub:"ignore"}[e]}function ew(e){if(0===e.length)return"ord";const t=Jb(e[0].type),n=Jb(e[e.length-1].type);return t&&t===n?t:"ord"}function tw(e,t){if("string"==typeof e)return e;if("number"==typeof e){console.assert(Number.isFinite(e));const n=Math.ceil(100*e)/100;return 0===n?"0":n.toString()+(null!=t?t:"")}return""}var nw=class e{constructor(t,n){var i,r,o,a,s;if("number"==typeof t?this.value=String.fromCodePoint(t):"string"==typeof t?this.value=t:sp(t)?this.children=t.filter((e=>null!==e)):t&&t instanceof e&&(this.children=[t]),this.children)for(const e of this.children)e.parent=this;this.type=null!=(i=null==n?void 0:n.type)?i:"ignore",this.isSelected=!0===(null==n?void 0:n.isSelected),(null==n?void 0:n.caret)&&(this.caret=n.caret),this.classes=null!=(r=null==n?void 0:n.classes)?r:"",this.isTight=null!=(o=null==n?void 0:n.isTight)&&o,(null==n?void 0:n.attributes)&&(this.attributes=n.attributes);let l=null==n?void 0:n.fontFamily;(null==n?void 0:n.style)&&this.value&&(l=null!=(s=Wb.getFont(null!=(a=n.mode)?a:"math",this,rp(ip({variant:"normal"},n.style),{letterShapeStyle:n.letterShapeStyle})))?s:void 0),l||(l="Main-Regular"),this._height=0,this._depth=0,this._width=0,this.hasExplicitWidth=!1,this.skew=0,this.italic=0,this.maxFontSize=0,this.scale=1,void 0!==(null==n?void 0:n.maxFontSize)&&(this.maxFontSize=n.maxFontSize),function(e,t){var n;if("latex"===e.type)return e.height=.9,e.depth=.2,void(e._width=1);if(e.value){e.height=-1/0,e.depth=-1/0,e._width=0,e.skew=-1/0,e.italic=-1/0;for(let n=0;n0){let t=-1/0,i=-1/0,r=0;for(const o of e.children)o.height>t&&(t=o.height),o.depth>i&&(i=o.depth),r=Math.max(r,null!=(n=o.maxFontSize)?n:0);e.height=t,e.depth=i,e._width=e.children.reduce(((e,t)=>e+t.width),0),e.maxFontSize=r}}(this,l)}set atomID(e){void 0!==e&&0!==e.length&&(this.id=e)}selected(e){if(this.isSelected!==e&&(this.isSelected=e,this.children))for(const t of this.children)t.selected(e)}setStyle(e,t,n){if(void 0===t)return;const i=tw(t,n);i.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[e]=i)}setTop(e){Number.isFinite(e)&&Math.abs(e)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=tw(e,"em"),this.height-=e,this.depth+=e)}get left(){var e;return(null==(e=this.cssProperties)?void 0:e["margin-left"])?Number.parseFloat(this.cssProperties["margin-left"]):0}set left(e){Number.isFinite(e)&&(0===e?this.cssProperties&&delete this.cssProperties["margin-left"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-left"]=tw(e,"em")))}set right(e){Number.isFinite(e)&&(0===e?this.cssProperties&&delete this.cssProperties["margin-right"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-right"]=tw(e,"em")))}set bottom(e){Number.isFinite(e)&&(0===e?this.cssProperties&&delete this.cssProperties["margin-bottom"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-bottom"]=tw(e,"em")))}get width(){return this._width*this.scale}set width(e){this._width=e,this.hasExplicitWidth=!0}set softWidth(e){}get height(){return this._height*this.scale}set height(e){this._height=e}get depth(){return this._depth*this.scale}set depth(e){this._depth=e}wrap(e){const t=e.parent;if(!t)return this;e.isPhantom&&this.setStyle("opacity",0);const n=e.color;n&&n!==t.color&&this.setStyle("color",n);let i=e.backgroundColor;this.isSelected&&(i=_p(i)),i&&i!==t.backgroundColor&&(this.setStyle("background-color",i),this.setStyle("display","inline-block"));const r=e.scalingFactor;return this.scale=r,this.skew*=r,this.italic*=r,this}toMarkup(){var e,t,n,i;let r=null!=(e=this.value)?e:"";if(this.children)for(const e of this.children)r+=e.toMarkup();let o="";if(this.svgBody)o=function(e){if(Nb[e]){const[t,n,i]=Nb[e],r=``;return`${r}`}const[t,n,i,r]=Db[e];let o,a;const s=i/1e3;3===t.length?(o=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],a=["xMinYMin","xMidYMin","xMaxYMin"]):2===t.length?(o=["slice-1-of-2","slice-2-of-2"],a=["xMinYMin","xMaxYMin"]):(o=["slice-1-of-1"],a=[r]);const l=t.map(((e,t)=>``)).join("");return`${l}`}(this.svgBody);else if(this.svgOverlay){o='',o+=r,o+="",o+='${this.svgOverlay}`}let a="";const s=this.classes.split(" ");s.push(null!=(n={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])?n:""),"latex"===this.caret&&s.push("ML__latex-caret"),this.isSelected&&s.push("ML__selected");const l=1===s.length?s[0]:s.filter(((e,t,n)=>e.length>0&&n.indexOf(e)===t)).join(" ");if(l.length>0&&(a+=` class="${l}"`),this.id&&(a+=` data-atom-id=${this.id}`),this.cssId&&(a+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(a+=" "+Object.keys(this.attributes).map((e=>`${e}="${this.attributes[e]}"`)).join(" ")),this.htmlData){const e=this.htmlData.split(",");for(const t of e){const e=t.match(/([^=]+)=(.+$)/);if(e){const t=e[1].trim().replace(/ /g,"-");t&&(a+=` data-${t}="${e[2]}" `)}else{const e=t.trim().replace(/ /g,"-");e&&(a+=` data-${e} `)}}}const c=null!=(i=this.cssProperties)?i:{};this.hasExplicitWidth&&void 0===c.width&&(c.width=Math.ceil(100*this._width)/100+"em");const u=Object.keys(c).map((e=>`${e}:${c[e]}`));if(void 0!==this.scale&&1!==this.scale&&(r.length>0||o.length>0)&&u.push(`font-size: ${Math.ceil(1e4*this.scale)/100}%`),this.htmlStyle){const e=this.htmlStyle.split(";");let t="";for(const n of e){const e=n.match(/([^=]+):(.+$)/);if(e){const n=e[1].trim().replace(/ /g,"-");n&&(t+=`${n}:${e[2]};`)}}t&&(a+=` style="${t}"`)}u.length>0&&(a+=` style="${u.join(";")}"`);let h="";return h=a.length>0||o.length>0?`${r}${o}`:r,"text"===this.caret?h+='':"math"===this.caret&&(h+=''),h}tryCoalesceWith(e){if(this.svgBody||!this.value)return!1;if(e.svgBody||!e.value)return!1;const t=this.children&&this.children.length>0,n=e.children&&e.children.length>0;if(t||n)return!1;if(e.cssProperties||this.cssProperties)for(const t of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"]){if(e.cssProperties&&t in e.cssProperties)return!1;if(this.cssProperties&&t in this.cssProperties)return!1}const i=this.cssProperties?Object.keys(this.cssProperties).length:0;if(i!==(e.cssProperties?Object.keys(e.cssProperties).length:0))return!1;if(i>0)for(const t of Object.keys(this.cssProperties))if(this.cssProperties[t]!==e.cssProperties[t])return!1;const r=this.classes.trim().replace(/\s+/g," ").split(" "),o=e.classes.trim().replace(/\s+/g," ").split(" ");if(r.length!==o.length)return!1;r.sort(),o.sort();for(const[e,t]of r.entries()){if("vertical-separator"===t)return!1;if(t!==o[e])return!1}return this.value+=e.value,this.height=Math.max(this.height,e.height),this.depth=Math.max(this.depth,e.depth),this._width=this._width+e._width,this.maxFontSize=Math.max(this.maxFontSize,e.maxFontSize),this.italic=e.italic,!0}};function iw(e){if(!e||0===e.length)return[];e[0].children=iw(e[0].children);const t=[e[0]];for(let n=1;n{e.softWidth=u}));const h=new nw(a,{classes:"vlist"});if(h.softWidth=u,h.height=l,h.setStyle("height",l,"em"),s>=0)return[[new nw(h,{classes:"vlist-r"})],l,-s];const d=new nw(new nw(null),{classes:"vlist"});d.height=-s,d.setStyle("height",-s,"em");const p=new nw(8203,{classes:"vlist-s",maxFontSize:0});return p.softWidth=0,p.height=0,p.depth=0,[[new nw([h,p],{classes:"vlist-r"}),new nw(d,{classes:"vlist-r"})],l,-s]}var lw=class extends nw{constructor(e,t){var n;const[i,r,o]=sw(e);super(1===i.length?i[0]:i,{type:null==t?void 0:t.type,classes:(null!=(n=null==t?void 0:t.classes)?n:"")+" vlist-t"+(2===i.length?" vlist-t2":"")}),this.height=r,this.depth=o,this.softWidth=i.reduce(((e,t)=>Math.max(e,t.width)),0)}};var cw=class{constructor(e,t,n){this.id=e,this.sizeDelta=t,this.cramped=n;const i={"-4":2,"-3":1,0:0}[t];this.metrics=Object.keys(Mb).reduce(((e,t)=>rp(ip({},e),{[t]:Mb[t][i]})),{})}getFontSize(e){return Math.max(1,e+this.sizeDelta)}get sup(){return hw[[0,1,0,1,2,3,2,3][this.id]]}get sub(){return hw[[0,0,0,0,2,2,2,2][this.id]]}get fracNum(){return hw[[0,1,0,1,2,3,4,5][this.id]]}get fracDen(){return hw[[0,0,0,0,2,2,4,4][this.id]]}get cramp(){return hw[[0,0,2,2,4,4,6,6][this.id]]}get isTight(){return this.sizeDelta<0}},uw={7:new cw(7,0,!1),6:new cw(6,0,!0),5:new cw(5,0,!1),4:new cw(4,0,!0),3:new cw(3,-3,!1),2:new cw(2,-3,!0),1:new cw(1,-4,!1),0:new cw(0,-4,!0)},hw=rp(ip({},uw),{displaystyle:uw[7],textstyle:uw[5],scriptstyle:uw[3],scriptscriptstyle:uw[1]});function dw(e,t){var n;if(!e)return 0;const i={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:Cb,bp:1.00375,dd:1238/1157,pc:12,in:72.27,mu:10/18}[null!=(n=e.unit)?n:"pt"];if(Number.isFinite(t)){const n=10**t;return Math.round(e.dimension/Cb*i*n)/n}return e.dimension*i}function pw(e,t){if(null===e)return 0;const n=dw(e)/Cb;if(Number.isFinite(t)){const e=10**t;return Math.round(n*e)/e}return n}function fw(e){var t;return`${e.dimension}${null!=(t=e.unit)?t:"pt"}`}function gw(e){var t,n;if(null==e)return null;let i="";if("dimension"in e&&(i=`${e.dimension}${null!=(t=e.unit)?t:"pt"}`),"glue"in e&&(i=function(e){let t=fw(e.glue);return e.grow&&0!==e.grow.dimension&&(t+=` plus ${fw(e.grow)}`),e.shrink&&0!==e.shrink.dimension&&(t+=` minus ${fw(e.shrink)}`),t}(e)),"number"in e)if("base"in e&&"decimal"!==e.base)if("alpha"===e.base)i=`\`${String.fromCodePoint(e.number)}`;else{const t=Math.round(e.number)>>>0;"hexadecimal"===e.base?(i=Number(t).toString(16).toUpperCase(),i=t<=255?i.padStart(2,"0"):t<=65535?i.padStart(4,"0"):t<=16777215?i.padStart(6,"0"):i.padStart(8,"0"),i=`"${i}`):"octal"===e.base&&(i=Number(t).toString(8),i=t<=63?i.padStart(2,"0"):t<=30583?i.padStart(4,"0"):i.padStart(8,"0"),i=`'${i}`)}else i=Number(e.number).toString();return"register"in e&&("factor"in e&&(-1===e.factor?i="-":1!==e.factor&&(i=Number(e.factor).toString())),"global"in e&&e.global&&(i+="\\global"),i+=`\\${e.register}`),"string"in e&&(i=e.string),null!=(n=e.relax)&&n&&(i+="\\relax"),i}function mw(e,t){return null==e?null:"number"in e?rp(ip({},e),{number:e.number*t}):"register"in e?"factor"in e&&e.factor?rp(ip({},e),{factor:e.factor*t}):rp(ip({},e),{factor:t}):"dimension"in e?rp(ip({},e),{dimension:e.dimension*t}):"glue"in e?e.shrink&&e.grow?{glue:mw(e.glue,t),shrink:mw(e.shrink,t),grow:mw(e.grow,t)}:e.shrink?{glue:mw(e.glue,t),shrink:mw(e.shrink,t)}:e.grow?{glue:mw(e.glue,t),grow:mw(e.grow,t)}:{glue:mw(e.glue,t)}:null}var vw={"p@":{dimension:1},"z@":{dimension:0},maxdimen:{dimension:16383.99999},hfuzz:{dimension:.1},vfuzz:{dimension:.1},overfullrule:{dimension:5},hsize:{dimension:6.5,unit:"in"},vsize:{dimension:8.9,unit:"in"},parindent:{dimension:20},maxdepth:{dimension:4},splitmaxdepth:{register:"maxdimen"},boxmaxdepth:{register:"maxdimen"},delimitershortfall:{dimension:5},nulldelimiterspace:{dimension:1.2,unit:"pt"},scriptspace:{dimension:.5},topskip:{dimension:10},splittopskip:{dimension:10},normalbaselineskip:{dimension:12},normallineskip:{dimension:1},normallineskiplimit:{dimension:0},jot:{dimension:3},doublerulesep:{dimension:2},arrayrulewidth:{dimension:.4},arraycolsep:{dimension:5},fboxsep:{dimension:3},fboxrule:{dimension:.4},"z@skip":{glue:{dimension:0},shrink:{dimension:0},grow:{dimension:0}},hideskip:{glue:{dimension:-1e3},grow:{dimension:1,unit:"fill"}},"@flushglue":{glue:{dimension:0},grow:{dimension:1,unit:"fill"}},parskip:{glue:{dimension:0},grow:{dimension:1}},abovedisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},abovedisplayshortskip:{glue:{dimension:0},grow:{dimension:3}},belowdisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},belowdisplayshortskip:{glue:{dimension:7},grow:{dimension:3},shrink:{dimension:4}},parfillskip:{glue:{dimension:0},grow:{dimension:1,unit:"fil"}},thinmuskip:{glue:{dimension:3,unit:"mu"}},medmuskip:{glue:{dimension:4,unit:"mu"},grow:{dimension:2,unit:"mu"},shrink:{dimension:4,unit:"mu"}},thickmuskip:{glue:{dimension:5,unit:"mu"},grow:{dimension:5,unit:"mu"}},smallskipamount:{glue:{dimension:3},grow:{dimension:1},shrink:{dimension:1}},medskipamount:{glue:{dimension:6},grow:{dimension:2},shrink:{dimension:3}},bigskipamount:{glue:{dimension:12},grow:{dimension:2},shrink:{dimension:4}},pretolerance:100,tolerance:200,hbadness:1e3,vbadness:1e3,linepenalty:10,hyphenpenalty:50,exhyphenpenalty:50,binoppenalty:700,relpenalty:500,clubpenalty:150,widowpenalty:150,displaywidowpenalty:50,brokenpenalty:100,predisplaypenalty:1e4,doublehyphendemerits:1e4,finalhyphendemerits:5e3,adjdemerits:1e4,tracinglostchars:1,uchyph:1,delimiterfactor:901,defaulthyphenchar:"\\-",defaultskewchar:-1,newlinechar:-1,showboxbreadth:5,showboxdepth:3,errorcontextlines:5,interdisplaylinepenalty:100,interfootnotelinepenalty:100,baselineSkip:1.2,arraystretch:1,month:(new Date).getMonth()+1,day:(new Date).getDate(),year:(new Date).getFullYear()};function yw(){return ip({},vw)}function bw(){return{registers:yw(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"▢",letterShapeStyle:dp.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:wp,backgroundColorMap:xp,getMacro:e=>ef(e,Yp())}}var ww=class e{constructor(t,n){var i,r,o,a,s,l,c,u,h,d,p,f,g,m,v;let y;(null==t?void 0:t.parent)?(this.parent=t.parent,y=t.parent,this.registers={}):(y=ip(ip({},bw()),null!=(i=null==t?void 0:t.from)?i:{}),this.registers=y.registers),y.atomIdsSettings&&(this.atomIdsSettings=ip({},y.atomIdsSettings)),this.renderPlaceholder=y.renderPlaceholder,this.isPhantom=null!=(a=null!=(o=null==t?void 0:t.isPhantom)?o:null==(r=this.parent)?void 0:r.isPhantom)&&a,this.letterShapeStyle=y.letterShapeStyle,this.minFontScale=y.minFontScale,(null==n?void 0:n.color)&&"none"!==n.color?this.color=n.color:this.color=null!=(l=null==(s=this.parent)?void 0:s.color)?l:"",(null==n?void 0:n.backgroundColor)&&"none"!==n.backgroundColor?this.backgroundColor=n.backgroundColor:this.backgroundColor=null!=(u=null==(c=this.parent)?void 0:c.backgroundColor)?u:"",(null==n?void 0:n.fontSize)&&"auto"!==n.fontSize&&n.fontSize!==(null==(h=this.parent)?void 0:h.size)?this.size=n.fontSize:this.size=null!=(p=null==(d=this.parent)?void 0:d.size)?p:5;let b=null!=(g=null==(f=this.parent)?void 0:f.mathstyle)?g:hw.displaystyle;if("string"==typeof(null==t?void 0:t.mathstyle)){if(y instanceof e)switch(t.mathstyle){case"cramp":b=b.cramp;break;case"superscript":b=b.sup;break;case"subscript":b=b.sub;break;case"numerator":b=b.fracNum;break;case"denominator":b=b.fracDen}switch(t.mathstyle){case"textstyle":b=hw.textstyle;break;case"displaystyle":b=hw.displaystyle;break;case"scriptstyle":b=hw.scriptstyle;break;case"scriptscriptstyle":b=hw.scriptscriptstyle}}this.mathstyle=b,this.smartFence=y.smartFence,this.placeholderSymbol=y.placeholderSymbol,this.colorMap=null!=(m=y.colorMap)?m:e=>e,this.backgroundColorMap=null!=(v=y.backgroundColorMap)?v:e=>e,this.getMacro=y.getMacro,console.assert(void 0!==this.parent||void 0!==this.registers)}makeID(){if(!this.atomIdsSettings)return;if(this.atomIdsSettings.overrideID)return this.atomIdsSettings.overrideID;if("number"!=typeof this.atomIdsSettings.seed)return`${Date.now().toString(36).slice(-2)}${Math.floor(1e5*Math.random()).toString(36)}`;const e=this.atomIdsSettings.seed.toString(36);return this.atomIdsSettings.seed+=1,e}scale(e){return e*this.effectiveFontSize}get scalingFactor(){return this.parent?this.effectiveFontSize/this.parent.effectiveFontSize:1}get isDisplayStyle(){return 7===this.mathstyle.id||6===this.mathstyle.id}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(Lb[Math.max(1,this.size+this.mathstyle.sizeDelta)],this.minFontScale)}getRegister(e){var t;return(null==(t=this.registers)?void 0:t[e])?this.registers[e]:this.parent?this.parent.getRegister(e):void 0}getRegisterAsNumber(e){const t=this.getRegister(e);return"number"==typeof t?t:"string"==typeof t?Number(t):void 0}getRegisterAsGlue(e){var t;if(null==(t=this.registers)?void 0:t[e]){const t=this.registers[e];return"object"==typeof t&&"glue"in t?t:"object"==typeof t&&"dimension"in t?{glue:{dimension:t.dimension}}:"number"==typeof t?{glue:{dimension:t}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(e)}getRegisterAsEm(e,t){return pw(this.getRegisterAsDimension(e),t)}getRegisterAsDimension(e){var t;if(null==(t=this.registers)?void 0:t[e]){const t=this.registers[e];return"object"==typeof t&&"glue"in t?t.glue:"object"==typeof t&&"dimension"in t?t:"number"==typeof t?{dimension:t}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(e)}setRegister(e,t){void 0!==t?this.registers[e]=t:delete this.registers[e]}evaluate(e){if(!e||!("register"in e))return e;let t=this;if("global"in e&&e.global)for(;t.parent;)t=t.parent;let n=1;"factor"in e&&1!==e.factor&&void 0!==e.factor&&(n=e.factor);const i=t.getRegister(e.register);if(void 0===i)return;if("string"==typeof i)return{string:Number(i).toString()+i};if("number"==typeof i)return{number:n*i};const r=t.evaluate(i);return void 0!==r?"string"in r?{string:Number(i).toString()+r.string}:"number"in r?{number:n*r.number}:"dimension"in r?rp(ip({},r),{dimension:n*r.dimension}):"glue"in r?rp(ip({},r),{glue:rp(ip({},r.glue),{dimension:n*r.glue.dimension}),shrink:r.shrink?rp(ip({},r.shrink),{dimension:n*r.shrink.dimension}):void 0,grow:r.grow?rp(ip({},r.grow),{dimension:n*r.grow.dimension}):void 0}):e:void 0}toDimension(e){const t=this.evaluate(e);return void 0===t?null:"dimension"in t?t:"glue"in t?t.glue:"number"in t?{dimension:t.number}:null}toEm(e,t){if(null===e)return 0;const n=this.toDimension(e);return null===n?0:dw(n,t)/Cb}toNumber(e){if(null===e)return null;const t=this.evaluate(e);return void 0===t?null:"number"in t?t.number:"dimension"in t?t.dimension:"glue"in t?t.glue.dimension:"string"in t?Number(t.string):null}toColor(e){var t,n;if(null===e)return null;const i=this.evaluate(e);return void 0===i?null:"string"in i?null!=(n=null==(t=this.colorMap)?void 0:t.call(this,i.string))?n:i.string:null}toBackgroundColor(e){var t,n;if(null===e)return null;const i=this.evaluate(e);return void 0===i?null:"string"in i?null!=(n=null==(t=this.backgroundColorMap)?void 0:t.call(this,i.string))?n:i.string:null}},xw=["body","above","below","superscript","subscript"];function Sw(e){return"string"==typeof e&&xw.includes(e)}function kw(e){return void 0!==e&&Array.isArray(e)&&2===e.length}var _w=class e{constructor(e){var t,n,i,r,o,a;this.type=e.type,"string"==typeof e.value&&(this.value=e.value),this.command=null!=(n=null!=(t=e.command)?t:this.value)?n:"",this.mode=null!=(i=e.mode)?i:"math",e.isFunction&&(this.isFunction=!0),e.limits&&(this.subsupPlacement=e.limits),this.style=ip({},e.style),this.displayContainsHighlight=null!=(r=e.displayContainsHighlight)&&r,this.captureSelection=null!=(o=e.captureSelection)&&o,this.skipBoundary=null!=(a=e.skipBoundary)&&a,void 0!==e.verbatimLatex&&null!==e.verbatimLatex&&(this.verbatimLatex=e.verbatimLatex),e.args&&(this.args=e.args),e.body&&(this.body=e.body),this._changeCounter=0}static createBox(e,t,n){var i;if(!t)return null;const r=function(e){let t;const n=[];let i=[];for(const r of e)if(t||r.style){const e=r.computedStyle;t&&e.color===t.color&&e.backgroundColor===t.backgroundColor&&e.fontSize===t.fontSize?i.push(r):(i.length>0&&n.push(i),i=[r],t=e)}else i.push(r);i.length>0&&n.push(i);return n}(t),o=[];for(const t of r){const n=t[0].style,i=Cw(e,t,{style:{color:n.color,backgroundColor:n.backgroundColor,fontSize:n.fontSize}});i&&o.push(i)}if(0===o.length)return null;const a=(null!=(i=null==n?void 0:n.classes)?i:"").trim();return 1!==o.length||a||(null==n?void 0:n.type)?new nw(o,{classes:a,type:null==n?void 0:n.type}).wrap(e):o[0].wrap(e)}static serialize(e,t){return Wb.serialize(e,t)}static commonAncestor(e,t){if(e===t)return e.parent;if(e.parent===t.parent)return e.parent;const n=new WeakSet;let{parent:i}=e;for(;i;)n.add(i),i=i.parent;for(i=t.parent;i;){if(n.has(i))return i;i=i.parent}console.assert(Boolean(i))}static fromJson(t){return new e("string"==typeof t?{type:"mord",value:t,mode:"math"}:t)}get latexMode(){return"math"===this.mode?"math":"text"}toJson(){const e={};if(this.type&&(e.type=this.type),"math"!==this.mode&&(e.mode=this.mode),this.command&&this.command!==this.value&&(e.command=this.command),void 0!==this.value&&(e.value=this.value),this.style&&Object.keys(this.style).length>0&&(e.style=ip({},this.style)),void 0!==this.verbatimLatex&&(e.verbatimLatex=this.verbatimLatex),this.subsupPlacement&&(e.subsupPlacement=this.subsupPlacement),this.explicitSubsupPlacement&&(e.explicitSubsupPlacement=!0),this.isFunction&&(e.isFunction=!0),this.displayContainsHighlight&&(e.displayContainsHighlight=!0),this.isExtensibleSymbol&&(e.isExtensibleSymbol=!0),this.skipBoundary&&(e.skipBoundary=!0),this.captureSelection&&(e.captureSelection=!0),this.args&&(e.args=this.args.map((e=>null===e?"":Array.isArray(e)&&e[0]instanceof _w?{atoms:e.map((e=>e.toJson()))}:"object"==typeof e&&"group"in e?{group:e.group.map((e=>e.toJson()))}:e))),this._branches)for(const t of Object.keys(this._branches))this._branches[t]&&(e[t]=this._branches[t].filter((e=>"first"!==e.type)).map((e=>e.toJson())));return"mord"===e.type&&2===Object.keys(e).length&&"value"in e?e.value:e}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(e){if(e){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:e}=this;for(;e;)e.parent||e._changeCounter++,"verbatimLatex"in e&&(e.verbatimLatex=void 0),e._children=void 0,e=e.parent}}_serialize(e){if(!(e.expandMacro||e.skipStyles||e.skipPlaceholders)&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const t=Jp(this.command,this.mode);return(null==t?void 0:t.serialize)?t.serialize(this,e):this.body&&this.command?Kb([Gb(this.command,this.bodyToLatex(e)),this.supsubToLatex(e)]):this.body?Kb([this.bodyToLatex(e),this.supsubToLatex(e)]):this.value&&"​"!==this.value?this.command:""}bodyToLatex(e){var t;return Wb.serialize(this.body,rp(ip({},e),{defaultMode:null!=(t=e.defaultMode)?t:this.latexMode}))}aboveToLatex(e){return Wb.serialize(this.above,e)}belowToLatex(e){return Wb.serialize(this.below,e)}supsubToLatex(e){let t="";if(e=rp(ip({},e),{defaultMode:"math"}),void 0!==this.branch("subscript")){const n=Wb.serialize(this.subscript,e);0===n.length?t+="_{}":1===n.length&&/^[0-9]$/.test(n)?t+=`_${n}`:t+=`_{${n}}`}if(void 0!==this.branch("superscript")){const n=Wb.serialize(this.superscript,e);0===n.length?t+="^{}":1===n.length?"′"===n?t+="^\\prime ":"″"===n?t+="^\\doubleprime ":/^[0-9]$/.test(n)?t+=`^${n}`:t+=`^{${n}}`:t+=`^{${n}}`}return t}get treeDepth(){let e=1,t=this.parent;for(;t;)t=t.parent,e+=1;return e}get inCaptureSelection(){let e=this;for(;e;){if(e.captureSelection)return!0;e=e.parent}return!1}get parentPrompt(){let e=this.parent;for(;e;){if("prompt"===e.type&&!e.captureSelection)return e;e=e.parent}return null}branch(e){if(Sw(e)&&this._branches)return this._branches[e]}get branches(){if(!this._branches)return[];const e=[];for(const t of xw)this._branches[t]&&e.push(t);return e}createBranch(e){return console.assert(Sw(e)),Sw(e)?(this._branches?this._branches[e]||(this._branches[e]=[this.makeFirstAtom(e)]):this._branches={[e]:[this.makeFirstAtom(e)]},this.isDirty=!0,this._branches[e]):[]}get row(){return kw(this.parentBranch)?this.parentBranch[0]:-1}get col(){return kw(this.parentBranch)?this.parentBranch[1]:-1}get body(){var e;return null==(e=this._branches)?void 0:e.body}set body(e){this.setChildren(e,"body")}get superscript(){var e;return null==(e=this._branches)?void 0:e.superscript}set superscript(e){this.setChildren(e,"superscript")}get subscript(){var e;return null==(e=this._branches)?void 0:e.subscript}set subscript(e){this.setChildren(e,"subscript")}get above(){var e;return null==(e=this._branches)?void 0:e.above}set above(e){this.setChildren(e,"above")}get below(){var e;return null==(e=this._branches)?void 0:e.below}set below(e){this.setChildren(e,"below")}get computedStyle(){var e,t;const n="string"==typeof this.style.verbatimColor,i="string"==typeof this.style.verbatimBackgroundColor,r=ip(ip({},null!=(t=null==(e=this.parent)?void 0:e.computedStyle)?t:{}),this.style);return delete r.variant,delete r.variantStyle,i||delete r.verbatimBackgroundColor,n||delete r.verbatimColor,r}applyStyle(e){this.isDirty=!0,this.style=ip(ip({},this.style),e),"none"===this.style.fontFamily&&delete this.style.fontFamily,"auto"===this.style.fontShape&&delete this.style.fontShape,"auto"===this.style.fontSeries&&delete this.style.fontSeries,"none"===this.style.color&&(delete this.style.color,delete this.style.verbatimColor),"none"===this.style.backgroundColor&&(delete this.style.backgroundColor,delete this.style.verbatimBackgroundColor),"auto"===this.style.fontSize&&delete this.style.fontSize;for(const t of this.children)t.applyStyle(e)}getInitialBaseElement(){var e,t,n;return this.hasEmptyBranch("body")?this:(console.assert("first"===(null==(e=this.body)?void 0:e[0].type)),null!=(n=null==(t=this.body[1])?void 0:t.getInitialBaseElement())?n:this)}getFinalBaseElement(){return this.hasEmptyBranch("body")?this:this.body[this.body.length-1].getFinalBaseElement()}isCharacterBox(){return"leftright"!==this.type&&"genfrac"!==this.type&&"subsup"!==this.type&&"delim"!==this.type&&"array"!==this.type&&"surd"!==this.type&&"mord"===this.getFinalBaseElement().type}hasEmptyBranch(e){const t=this.branch(e);return!t||(console.assert(t.length>0),console.assert("first"===t[0].type),1===t.length)}setChildren(e,t){var n;if(!e)return;if(console.assert(Sw(t)),!Sw(t))return;console.assert("first"!==(null==(n=e[0])?void 0:n.type));const i=[this.makeFirstAtom(t),...e];this._branches?this._branches[t]=i:this._branches={[t]:i};for(const n of e)n.parent=this,n.parentBranch=t;this.isDirty=!0}makeFirstAtom(t){const n=new e({type:"first",mode:this.mode});return n.parent=this,n.parentBranch=t,n}addChild(e,t){console.assert("first"!==e.type),this.createBranch(t).push(e),this.isDirty=!0,e.parent=this,e.parentBranch=t}addChildBefore(e,t){console.assert(void 0!==t.parentBranch);const n=this.createBranch(t.parentBranch);n.splice(n.indexOf(t),0,e),this.isDirty=!0,e.parent=this,e.parentBranch=t.parentBranch}addChildAfter(e,t){console.assert(void 0!==t.parentBranch);const n=this.createBranch(t.parentBranch);n.splice(n.indexOf(t)+1,0,e),this.isDirty=!0,e.parent=this,e.parentBranch=t.parentBranch}addChildren(e,t){const n=this.createBranch(t);for(const i of e)i.parent=this,i.parentBranch=t,n.push(i);this.isDirty=!0}addChildrenAfter(e,t){console.assert(0===e.length||"first"!==e[0].type),console.assert(void 0!==t.parentBranch);const n=this.createBranch(t.parentBranch);n.splice(n.indexOf(t)+1,0,...e),this.isDirty=!0;for(const n of e)n.parent=this,n.parentBranch=t.parentBranch;return e[e.length-1]}removeBranch(e){const t=this.branch(e);if(Sw(e)&&(this._branches[e]=void 0),!t)return[];for(const e of t)e.parent=void 0,e.parentBranch=void 0;return console.assert("first"===t[0].type),t.shift(),this.isDirty=!0,t}removeChild(e){if(console.assert(e.parent===this),"first"===e.type)return;const t=this.branch(e.parentBranch),n=t.indexOf(e);console.assert(n>=0),t.splice(n,1),this.isDirty=!0,e.parent=void 0,e.parentBranch=void 0}get siblings(){return this.parent?this.parent.branch(this.parentBranch):[]}get firstSibling(){return this.siblings[0]}get lastSibling(){const{siblings:e}=this;return e[e.length-1]}get isFirstSibling(){return this===this.firstSibling}get isLastSibling(){return this===this.lastSibling}get hasNoSiblings(){return 1===this.siblings.length}get leftSibling(){console.assert(void 0!==this.parent);const e=this.parent.branch(this.parentBranch);return e[e.indexOf(this)-1]}get rightSibling(){console.assert(void 0!==this.parent);const e=this.parent.branch(this.parentBranch);return e[e.indexOf(this)+1]}get hasChildren(){return Boolean(this._branches&&this.children.length>0)}get firstChild(){return console.assert(this.hasChildren),this.children[0]}get lastChild(){console.assert(this.hasChildren);const{children:e}=this;return e[e.length-1]}get children(){if(this._children)return this._children;if(!this._branches)return[];const e=[];for(const t of xw)if(this._branches[t])for(const n of this._branches[t])e.push(...n.children),e.push(n);return this._children=e,e}render(e){if("first"===this.type&&!e.atomIdsSettings)return null;const t=Jp(this.command,this.mode);if(null==t?void 0:t.render)return t.render(this,e);const n=new ww({parent:e},this.style);let i=this.createBox(n,{classes:this.parent?"":"ML__base"});return i?(this.subsupPlacement||!this.superscript&&!this.subscript||(i=this.attachSupsub(n,{base:i})),i.wrap(n)):null}attachSupsub(t,n){var i;const r=n.base,o=this.superscript,a=this.subscript;if(!o&&!a)return r;let s=null,l=null;const c=null!=(i=n.isCharacterBox)?i:this.isCharacterBox();let u=0;if(o){const n=new ww({parent:t,mathstyle:"superscript"});s=e.createBox(n,o),c||(u=r.height-t.metrics.supDrop*n.scalingFactor)}let h,d=0;if(a){const n=new ww({parent:t,mathstyle:"subscript"});l=e.createBox(n,a),c||(d=r.depth+t.metrics.subDrop*n.scalingFactor)}h=t.isDisplayStyle?t.metrics.sup1:t.isCramped?t.metrics.sup3:t.metrics.sup2;const p=.05/t.scalingFactor;let f=null;if(l&&s){u=Math.max(u,h,s.depth+.25*t.metrics.xHeight),d=Math.max(d,t.metrics.sub2);const e=t.metrics.defaultRuleThickness;if(u-s.depth-(l.height-d)<4*e){d=4*e-(u-s.depth)+l.height;const n=.8*t.metrics.xHeight-(u-s.depth);n>0&&(u+=n,d-=n)}const n=this.isExtensibleSymbol&&r.italic?-r.italic:0;f=new lw({individualShift:[{box:l,shift:d,marginLeft:n},{box:s,shift:-u}]}).wrap(t)}else l&&!s?(d=Math.max(d,t.metrics.sub1,l.height-.3448),f=new lw({shift:d,children:[{box:l,marginRight:p,marginLeft:this.isCharacterBox()?-r.italic:0}]})):!l&&s&&(u=Math.max(u,h,s.depth+.10775),f=new lw({shift:-u,children:[{box:s,marginRight:p}]}));return new nw([r,new nw(f,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:n.type})}attachLimits(t,n){const i=this.superscript?e.createBox(new ww({parent:t,mathstyle:"superscript"},this.style),this.superscript):null,r=this.subscript?e.createBox(new ww({parent:t,mathstyle:"subscript"},this.style),this.subscript):null;return i||r?function(e,t){var n,i,r,o,a;const s=e.metrics,l=new nw(t.base),c=null!=(n=t.baseShift)?n:0,u=null!=(i=t.slant)?i:0;let h=0,d=0;t.above&&(h=null!=(r=t.aboveShift)?r:Math.max(s.bigOpSpacing1,s.bigOpSpacing3-t.above.depth)),t.below&&(d=null!=(o=t.belowShift)?o:Math.max(s.bigOpSpacing2,s.bigOpSpacing4-t.below.height));let p=null;if(t.below&&t.above){const n=s.bigOpSpacing5+t.below.height+t.below.depth+d+l.depth+c;p=new lw({bottom:n,children:[s.bigOpSpacing5,{box:t.below,marginLeft:-u,classes:["ML__center"]},d,{box:l,classes:["ML__center"]},h,{box:t.above,marginLeft:u,classes:["ML__center"]},s.bigOpSpacing5]}).wrap(e)}else if(t.below&&!t.above)p=new lw({top:l.height-c,children:[s.bigOpSpacing5,{box:t.below,marginLeft:-u,classes:["ML__center"]},d,{box:l,classes:["ML__center"]}]}).wrap(e);else if(!t.below&&t.above){const n=l.depth+c;p=new lw({bottom:n,children:[{box:l,classes:["ML__center"]},h,{box:t.above,marginLeft:u,classes:["ML__center"]},s.bigOpSpacing5]}).wrap(e)}else{const t=l.depth+c;p=new lw({bottom:t,children:[{box:l},s.bigOpSpacing5]}).wrap(e)}return new nw(p,{type:null!=(a=t.type)?a:"op"})}(t,rp(ip({},n),{above:i,below:r})):n.base.wrap(t)}bind(e,t){if(!t||e.isPhantom||"​"===this.value)return t;let n=this.parent;for(;n&&!n.captureSelection;)n=n.parent;return(null==n?void 0:n.captureSelection)||(this.id||(this.id=e.makeID()),t.atomID=this.id),t}createBox(t,n){var i,r,o,a;const s=null!=(i=this.value)?i:this.body,l=null!=(r=null==n?void 0:n.boxType)?r:Jb(this.type);let c=null!=(o=null==n?void 0:n.classes)?o:"";"text"===this.mode&&(c+=" ML__text");const u="string"==typeof s||void 0===s?new nw(null!=s?s:null,{type:l,isSelected:this.isSelected,mode:this.mode,maxFontSize:t.scalingFactor,style:rp(ip({variant:"normal"},this.style),{fontSize:Math.max(1,t.size+t.mathstyle.sizeDelta)}),letterShapeStyle:t.letterShapeStyle,classes:c}):null!=(a=e.createBox(t,s,{type:l,classes:c}))?a:new nw(null);return t.isTight&&(u.isTight=!0),"math"===this.mode&&"main"!==this.style.variant||(u.italic=0),u.right=u.italic,this.bind(t,u),this.caret&&(this.superscript||this.subscript||(u.caret=this.caret)),u}isDigit(){var e;return"mord"===this.type&&this.value?/^[\d,\.]$/.test(this.value):"group"===this.type&&2===(null==(e=this.body)?void 0:e.length)&&("first"===this.body[0].type&&","===this.body[1].value)}asDigit(){var e;return"mord"===this.type&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:"group"===this.type&&2===(null==(e=this.body)?void 0:e.length)&&"first"===this.body[0].type&&","===this.body[1].value?".":""}};function Cw(e,t,n){var i,r,o,a,s;if(!t||0===t.length)return null;const l=new ww({parent:e},n.style),c=!(null==(i=l.atomIdsSettings)?void 0:i.groupNumbers);let u=[];if(1===t.length){const e=t[0],n=e.render(l);n&&(c&&e.isSelected&&n.selected(!0),u=[n])}else{let e="",n=!0;for(const i of t){(null==(r=l.atomIdsSettings)?void 0:r.groupNumbers)&&e&&(n&&i.isDigit()||!n&&Pw(i))&&(l.atomIdsSettings.overrideID=e);const t=i.render(l);l.atomIdsSettings&&(l.atomIdsSettings.overrideID=void 0),t&&((null==(o=l.atomIdsSettings)?void 0:o.groupNumbers)&&((i.isDigit()||Pw(i))&&(e&&n===i.isDigit()||(n=i.isDigit(),e=null!=(a=i.id)?a:"")),!e||(i.isDigit()||Pw(i))&&i.hasEmptyBranch("superscript")&&i.hasEmptyBranch("subscript")||(e="")),c&&i.isSelected&&t.selected(!0),u.push(t))}}if(0===u.length)return null;const h=new nw(u,rp(ip({isTight:l.isTight},n),{type:null!=(s=n.type)?s:"lift"}));return h.isSelected=u.every((e=>e.isSelected)),h.wrap(l)}function Pw(e){return"text"===e.mode}var Ew=class e extends _w{constructor(e,t,n){super({type:"text",command:e,mode:"text",displayContainsHighlight:!0}),this.value=t,this.verbatimLatex=t,this.applyStyle(n)}static fromJson(t){return new e(t.command,t.value,t.style)}render(e){const t=this.createBox(e);return this.caret&&(t.caret=this.caret),t}_serialize(e){var t;return null!=(t=this.verbatimLatex)?t:tf("text",this.value.codePointAt(0))}};function Mw(e,t){return e[0]===t[0]&&e[1]===t[1]?"equal":"different"}function Lw(e){let t=1/0,n=-1/0;for(const i of e.ranges)t=Math.min(t,i[0],i[1]),n=Math.max(n,i[0],i[1]);return[t,n]}function Aw(e){return"number"==typeof e&&!Number.isNaN(e)}function Tw(e){return Array.isArray(e)&&2===e.length}function Dw(e){return null!=e&&"object"==typeof e&&"ranges"in e&&Array.isArray(e.ranges)}function Nw(e,t,n){return n?function(e,t){if(!t)return"";if("string"==typeof t)return t;if(!e||void 0===t.after)return t.value;let n=!1,i=!1,r=!1,o=!1,a=!1,s=!1,l=!1,c=!1,u=!1,h=!1,d=!1,p=!1,f=!1,g=!1,m=!1,v=e[0],y=0;for(;(null==v?void 0:v.type)&&/^(subsup|placeholder)$/.test(v.type);)y+=1,v=e[y];return n=!v||"first"===v.type,v&&(g="text"===v.mode,i=!g&&"mord"===v.type&&Tp.test(v.value),r=!g&&"mord"===v.type&&/\d+$/.test(v.value),o=!g&&v.isFunction,a="genfrac"===v.type,s="surd"===v.type,l="mbin"===v.type,c="mrel"===v.type,u="mop"===v.type||"operator"===v.type||"extensible-symbol"===v.type,h="mpunct"===v.type||"minner"===v.type,d="array"===v.type,p="mopen"===v.type,f="mclose"===v.type||"leftright"===v.type,m="space"===v.type),t.after.includes("nothing")&&n||t.after.includes("letter")&&i||t.after.includes("digit")&&r||t.after.includes("function")&&o||t.after.includes("frac")&&a||t.after.includes("surd")&&s||t.after.includes("binop")&&l||t.after.includes("relop")&&c||t.after.includes("operator")&&u||t.after.includes("punct")&&h||t.after.includes("array")&&d||t.after.includes("openfence")&&p||t.after.includes("closefence")&&f||t.after.includes("text")&&g||t.after.includes("space")&&m?t.value:""}(e,n[t]):""}var Iw={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\doubleprime}","'''":"^{\\prime\\prime\\prime}","''''":"^{\\prime\\prime\\prime\\prime}",alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:"\\pi",Pi:"\\Pi",theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:"\\nabla",grad:"\\nabla",del:"\\partial",deg:{after:"digit+space",value:"\\degree"},infty:"\\infty","∞":"\\infty",oo:{after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"∑":"\\sum",sum:"\\sum_{#?}^{#?}",int:"\\int_{#?}^{#?}",prod:"\\prod_{#?}^{#?}",sqrt:"\\sqrt{#?}","∆":"\\differentialD","∂":"\\differentialD",arcsin:"\\arcsin",arccos:"\\arccos",arctan:"\\arctan",arcsec:"\\arcsec",arccsc:"\\arccsc",arsinh:"\\arsinh",arcosh:"\\arcosh",artanh:"\\artanh",arcsech:"\\arcsech",arccsch:"\\arccsch",arg:"\\arg",ch:"\\ch",cosec:"\\cosec",cosh:"\\cosh",cot:"\\cot",cotg:"\\cotg",coth:"\\coth",csc:"\\csc",ctg:"\\ctg",cth:"\\cth",sec:"\\sec",sinh:"\\sinh",sh:"\\sh",tanh:"\\tanh",tg:"\\tg",th:"\\th",sin:"\\sin",cos:"\\cos",tan:"\\tan",lg:"\\lg",lb:"\\lb",log:"\\log",ln:"\\ln",exp:"\\exp",lim:"\\lim_{#?}",dx:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:"\\forall",EE:"\\exists","!EE":"\\nexists","&&":"\\land",xin:{after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},sint:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\sin t"},in:{after:"nothing+letter+closefence",value:"\\in"},"!in":"\\notin",NN:"\\mathbb{N}",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",xx:"\\times","+-":"\\pm","≠":"\\ne","!=":"\\ne","≥":"\\ge",">=":"\\ge","≤":"\\le","<=":"\\le","<<":"\\ll",">>":"\\gg","~~":"\\approx","≈":"\\approx","?=":"\\questeq","÷":"\\div","¬":"\\neg",":=":"\\coloneq","::":"\\Colon","(:":"\\langle",":)":"\\rangle",beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},nu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},"µ":"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega","Ω":"\\omega",forall:"\\forall",exists:"\\exists","!exists":"\\nexists",":.":"\\therefore",liminf:"\\liminf_{#?}",limsup:"\\limsup_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:"\\bmod{#?}","(mod":"\\pmod{#?}",max:"\\max",min:"\\min",erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:"\\operatorname{bessel}",mean:"\\operatorname{mean}",median:"\\operatorname{median}",fft:"\\operatorname{fft}",lcm:"\\operatorname{lcm}",gcd:"\\operatorname{gcd}",randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:"\\operatorname{Re}",Im:"\\operatorname{Im}",mm:{after:"nothing+digit+operator",value:"\\operatorname{mm}"},cm:{after:"nothing+digit+operator",value:"\\operatorname{cm}"},km:{after:"nothing+digit+operator",value:"\\operatorname{km}"},kg:{after:"nothing+digit+operator",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","--\x3e...":"\\longrightarrow\\cdots","->":"\\to","|->":"\\mapsto","--\x3e":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","*":"\\cdot","**":"\\star","***":"\\ast","//":"\\slash","\\\\":"\\backslash",setminus:"\\backslash","|><":"\\ltimes","><|":"\\rtimes","|><|":"\\bowtie","-:":"\\div",divide:"\\div","@":"\\circ","^^":"\\wedge","^^^":"\\bigwedge",vv:"\\vee",vvv:"\\bigvee",nn:"\\cap",nnn:"\\bigcap",uu:"\\cup",uuu:"\\bigcup","-=":"\\equiv","~=":"\\cong",lt:"<","lt=":"\\leq",gt:">","gt=":"\\geq","-<":"\\prec","-lt":"\\prec","-<=":"\\preceq",">-=":"\\succeq",prop:"\\propto",diamond:"\\diamond",square:"\\square",iff:"\\iff",sub:"\\subset",sup:"\\supset",sube:"\\subseteq",supe:"\\supseteq",uarr:"\\uparrow",darr:"\\downarrow",rarr:"\\rightarrow",rArr:"\\Rightarrow",larr:"\\leftarrow",lArr:"\\Leftarrow",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",aleph:"\\aleph",and:"\\land",or:"\\lor",not:"\\neg","_|_":"\\bot",TT:"\\top","|--":"\\vdash","|==":"\\models","|__":"\\lfloor","__|":"\\rfloor","|~":"\\lceil","~|":"\\rceil",">->":"\\rightarrowtail","->>":"\\twoheadrightarrow",">->>":"\\twoheadrightarrowtail",frac:"\\frac{#?}{#?}",cbrt:"\\sqrt[3]{#?}",nthroot:"\\sqrt[#?]{#?}"};function Bw(e,t){var n;let i=null!=(n=null==t?void 0:t.format)?n:"auto";return"auto"===i&&([i,e]=function(e){if(e=e.trim(),e.length<=1)return["latex",e];let t;if([t,e]=jw(e),t)return["latex",e];if(e.startsWith("`")&&e.endsWith("`"))return["ascii-math",e=e.substring(1,e.length-1)];if(e.includes("\\"))return["latex",e];if(/\$.+\$/.test(e))return["latex",`\\text{${e}}`];return[void 0,e]}(e)),"ascii-math"===i?["ascii-math",Rw(e=(e=(e=(e=(e=(e=e.replace(/\u2061/gu,"")).replace(/\u3016/gu,"{")).replace(/\u3017/gu,"}")).replace(/([^\\])sinx/g,"$1\\sin x")).replace(/([^\\])cosx/g,"$1\\cos x ")).replace(/\u2013/g,"-"),{inlineShortcuts:null==t?void 0:t.inlineShortcuts})]:["latex",e]}function Rw(e,t){var n,i,r;if(!e)return"";let o,a=!1;const s=null!=(n=t.inlineShortcuts)?n:Iw;if(a||!e.startsWith("^")&&!e.startsWith("_")||(o=Ow(e.slice(1),{inlineShortcuts:s,noWrap:!0}),e=e[0]+"{"+o.match+"}",e+=Rw(o.rest,t),a=!0),!a&&(o=e.match(/^(sqrt|\u221A)(.*)/),o)){o=Ow(o[2],{inlineShortcuts:s,noWrap:!0});e="\\sqrt{"+(null!=(i=o.match)?i:"\\placeholder{}")+"}",e+=Rw(o.rest,t),a=!0}if(!a&&(o=e.match(/^(\\cbrt|\u221B)(.*)/),o)){o=Ow(o[2],{inlineShortcuts:s,noWrap:!0});e="\\sqrt[3]{"+(null!=(r=o.match)?r:"\\placeholder{}")+"}",e+=Rw(o.rest,t),a=!0}if(a||(o=e.match(/^abs(.*)/),o&&(o=Ow(o[1],{inlineShortcuts:s,noWrap:!0}),e="\\left|"+o.match+"\\right|",e+=Rw(o.rest,t),a=!0)),a||(o=e.match(/^["”“](.*?)["”“](.*)/),o&&(e="\\text{"+o[1]+"}",e+=Rw(o[2],t),a=!0)),a||(o=e.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),o&&(e=Fw(o[1],s),e+=Rw(o[2],t),a=!0)),!a&&/^([fgh])[^a-zA-Z]/.test(e)&&(o=Ow(e.slice(1),{inlineShortcuts:s,noWrap:!0}),e="("===e[1]?e[0]+"\\left("+o.match+"\\right)":e[0]+o.match,e+=Rw(o.rest,t),a=!0),a||(o=e.match(/^([a-zA-Z]+)(.*)/),o&&(e=Fw(o[1],s),e+=Rw(o[2],t),a=!0)),!a)if(o=Ow(e,{inlineShortcuts:s,noWrap:!0}),o.match&&"/"===o.rest[0]){const n=Ow(o.rest.slice(1),{inlineShortcuts:s,noWrap:!0});n.match&&(e="\\frac{"+o.match+"}{"+n.match+"}"+Rw(n.rest,t)),a=!0}else o.match&&(e=e.startsWith("(")?"\\left("+o.match+"\\right)"+Rw(o.rest,t):o.match+Rw(o.rest,t),a=!0);return a||(o=e.match(/^(\s+)(.*)$/),o&&(e=" "+Rw(o[2],t),a=!0)),e}function Ow(e,t){let n="",i=e=e.trim(),r=e.charAt(0),o={"(":")","{":"}","[":"]"}[r];if(o){let a=1,s=1;for(;s0;)e[s]===r&&a++,e[s]===o&&a--,s++;0===a?(t.noWrap&&"("===r?n=Rw(e.substring(1,s-1),t):("{"===r&&"}"===o&&(r="\\{",o="\\}"),n="\\left"+r+Rw(e.substring(1,s-1),t)+"\\right"+o),i=e.slice(Math.max(0,s))):(n=e.substring(1,s),i="")}else{let r=e.match(/^([a-zA-Z]+)/);if(r){let n=Nw(null,e,t.inlineShortcuts);if(n)return n=n.replace("_{#?}",""),n=n.replace("^{#?}",""),{match:n,rest:e.slice(n.length)}}if(r=e.match(/^([a-zA-Z])/),r)return{match:r[1],rest:e.slice(1)};if(r=e.match(/^(-)?\d+(\.\d*)?/),r)return{match:r[0],rest:e.slice(r[0].length)};/^\\(left|right)/.test(e)||(r=e.match(/^(\\[a-zA-Z]+)/),r&&(i=e.slice(r[1].length),n=r[1]))}return{match:n,rest:i}}function Fw(e,t){let n=Nw(null,e,t);return n?(n=n.replace("_{#?}",""),n=n.replace("^{#?}",""),n+=" "):n=e,n}var zw=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function jw(e){const t=e.trim();for(const e of zw)if(t.startsWith(e[0])&&t.endsWith(e[1]))return[!0,t.substring(e[0].length,t.length-e[1].length)];return[!1,e]}var $w=(e,t,n)=>(zw.some((e=>t.startsWith(e[0])&&t.endsWith(e[1])))||(t=`$$ ${t} $$`),t),Hw=class e{constructor(t){e._modes[t]=this}static onPaste(t,n,i){var r;if(!n.contentEditable&&"none"===n.userSelect)return n.model.announce("plonk"),!1;if("string"==typeof i){const e=new DataTransfer;e.setData("text/plain",i),i=e}const o=new ClipboardEvent("paste",{clipboardData:i,cancelable:!0});return!!(null==(r=n.host)?void 0:r.dispatchEvent(o))&&e._modes[t].onPaste(n,i)}static copyToClipboard(e,t){if(!e.contentEditable&&"none"===e.userSelect)return void e.model.announce("plonk");const n=e.model,i=n.selectionIsCollapsed?[0,n.lastOffset]:Lw(n.selection),r=n.getValue(i,t);navigator.clipboard.writeText(r).then((()=>{}),(()=>e.model.announce("plonk")))}static onCopy(e,t){var n;if(!t.clipboardData)return;if(!e.contentEditable&&"none"===e.userSelect)return void e.model.announce("plonk");const i=e.model,r=i.selectionIsCollapsed?[0,i.lastOffset]:Lw(i.selection);let o=i.getAtoms(r);if(o.every((e=>"text"===e.mode||!e.mode)))t.clipboardData.setData("text/plain",o.filter((e=>e instanceof Ew)).map((e=>e.value)).join(""));else if(o.every((e=>"latex"===e.mode)))t.clipboardData.setData("text/plain",i.getAtoms(r,{includeChildren:!0}).map((e=>{var t;return null!=(t=e.value)?t:""})).join(""));else{let a;a=1===o.length&&void 0!==o[0].verbatimLatex?o[0].verbatimLatex:i.getValue(r,"latex-expanded"),t.clipboardData.setData("application/x-latex",a);try{t.clipboardData.setData("text/plain",e.options.onExport(e,a,r))}catch(e){}if(1===o.length){const e=o[0];"root"!==e.type&&"group"!==e.type||(o=e.body.filter((e=>"first"!==e.type)))}try{t.clipboardData.setData("application/json+mathlive",JSON.stringify(o.map((e=>e.toJson()))))}catch(e){}if(null==(n=window[Symbol.for("io.cortexjs.compute-engine")])?void 0:n.ComputeEngine){const e=window.MathfieldElement.computeEngine;if(e)try{const n=e.jsonSerializationOptions;e.jsonSerializationOptions={metadata:["latex"]};const o=e.parse(i.getValue(r,"latex-unstyled"));e.jsonSerializationOptions=n;const a=JSON.stringify(o.json);a&&t.clipboardData.setData("application/json",a)}catch(e){}}}t.preventDefault()}static insert(t,n,i={}){var r;const o="auto"===i.mode?t.mode:null!=(r=i.mode)?r:t.mode;return e._modes[o].insert(t,n,i)}onPaste(e,t){return!1}insert(e,t,n){return!1}};Hw._modes={};var Zw=Hw,Kw=[{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendSelectionBackward"},{key:"shift+[ArrowRight]",command:"extendSelectionForward"},{key:"shift+[ArrowUp]",command:"extendSelectionUpward"},{key:"shift+[ArrowDown]",command:"extendSelectionDownward"},{key:"[Backspace]",command:"deleteBackward"},{key:"alt+[Delete]",command:"deleteBackward"},{key:"[Delete]",command:"deleteForward"},{key:"alt+[Backspace]",command:"deleteForward"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"shift+alt+[ArrowLeft]",command:"extendToPreviousWord"},{key:"shift+alt+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"shift+ctrl+[ArrowLeft]",command:"extendToGroupStart"},{key:"shift+ctrl+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Home]",command:"moveToMathfieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathfieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"shift+cmd+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathfieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathfieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"shift+cmd+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",command:"moveToNextGroup"},{key:"shift+[Tab]",command:"moveToPreviousGroup"},{key:"[Escape]",ifMode:"math",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"text",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"latex",command:["complete","complete",{selectItem:"true"}]},{key:"\\",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[IntlBackslash]",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[Tab]",ifMode:"latex",command:["complete","accept-suggestion"]},{key:"[Return]",ifMode:"latex",command:"complete"},{key:"[Enter]",ifMode:"latex",command:"complete"},{key:"shift+[Escape]",ifMode:"latex",command:["complete","reject"]},{key:"[ArrowDown]",ifMode:"latex",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"latex",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deleteBackward"},{key:"[Undo]",command:"undo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"cmd+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"ctrl+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"cmd+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"ctrl+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"cmd+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+y",command:"redo"},{key:"shift+ctrl+z",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+z",command:"redo"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathfieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathfieldEnd"},{key:"shift+ctrl+b",ifPlatform:"macos",command:"extendSelectionBackward"},{key:"shift+ctrl+f",ifPlatform:"macos",command:"extendSelectionForward"},{key:"shift+ctrl+p",ifPlatform:"macos",command:"extendSelectionUpward"},{key:"shift+ctrl+n",ifPlatform:"macos",command:"extendSelectionDownward"},{key:"shift+ctrl+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"shift+ctrl+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"alt+ctrl+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"alt+ctrl+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"shift+alt+ctrl+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"shift+alt+ctrl+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deleteBackward"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteForward"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"alt+p",ifMode:"math",command:["insert","\\pi"]},{key:"alt+v",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"alt+o",ifMode:"math",command:["insert","\\emptyset"]},{key:"alt+d",ifMode:"math",command:["insert","\\differentialD"]},{key:"shift+alt+o",ifMode:"math",command:["insert","\\varnothing"]},{key:"shift+alt+d",ifMode:"math",command:["insert","\\partial"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","\\backslash"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+alt+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleContextMenu"},{key:"alt+shift+[Space]",command:"toggleVirtualKeyboard"},{key:"alt+ctrl+[ArrowUp]",command:["speak","all",{withHighlighting:!1}]},{key:"alt+ctrl+[ArrowDown]",command:["speak","selection",{withHighlighting:!1}]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["switchMode","text","",""]},{key:"shift+alt+[KeyT]",ifMode:"math",command:["switchMode","text","",""]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"text",command:["switchMode","math","",""]},{key:"shift+alt+[KeyT]",ifMode:"text",command:["switchMode","math","",""]},{key:"/",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+shift+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrack #0 \\right\\rbrack"]},{key:"ctrl+[Minus]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"moveToSubscript"},{key:"shift+alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrace #0 \\right\\rbrace"]},{key:"ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"shift+ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"shift+cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Backspace]",ifMode:"math",command:"removeRow"},{key:"cmd+[Backspace]",ifMode:"math",command:"removeRow"},{key:"alt+[Tab]",ifMode:"math",command:"addColumnAfter"},{key:"shift+alt+[Tab]",ifMode:"math",command:"addColumnBefore"},{key:"alt+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Enter]",ifMode:"math",command:"addRowBefore"},{key:"alt+[Return]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Return]",ifMode:"math",command:"addRowBefore"},{key:"shift+[Backspace]",ifMode:"math",command:"removeColumn"},{key:"alt+[Digit5]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","$\\infty"]},{key:"alt+[Digit9]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert",")"]},{key:"alt+|",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","|"]},{key:"shift+[Backquote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\~"]},{key:"[Backquote]",ifLayout:["windows.french","linux.french"],ifMode:"math",command:["insert","^2"]},{key:"[Backquote]",ifLayout:["windows.german","linux.german"],ifMode:"math",command:["insert","^"]},{key:"[IntlBackslash]",ifLayout:["apple.german"],ifMode:"math",command:["insert","^"]}],Gw={"\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\infty":"alt+[Digit5]","\\differentialD":"alt+d","\\partial":"shift+alt+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"shift+alt+o","\\~":"~"};function Uw(e){var t;return(null==(t=e.element)?void 0:t.mathfield)===e}function Vw(e){const t=function(e){var t,n;return null!=(n=null!=(t=e.querySelector(".ML__caret"))?t:e.querySelector(".ML__text-caret"))?n:e.querySelector(".ML__latex-caret")}(e);if(!t)return null;const n=t.getBoundingClientRect();return{x:n.right,y:n.bottom,height:n.height}}function Ww(e){var t;if(!e.parent)return"root";let n=null!=(t=e.parent.id)?t:"";return n+="string"==typeof e.parentBranch?"-"+e.parentBranch:`-${e.parentBranch[0]}/${e.parentBranch[0]}`,n}function qw(e,t,n){if(!t)return null;const i=e.field.getBoundingClientRect(),r=t.right-t.left,o=t.bottom-t.top,a=Math.ceil(t.left-i.left+e.field.scrollLeft*n),s=Math.ceil(t.top-i.top);return{left:a,right:a+r,top:s,bottom:s+o}}function Yw(e){const t=e.getBoundingClientRect(),n=parseInt(getComputedStyle(e).marginRight),i={top:t.top-1,bottom:t.bottom,left:t.left,right:t.right-1+n};if(0===e.children.length||"SVG"===e.tagName.toUpperCase())return i;for(const t of e.children)if(1===t.nodeType&&"atomId"in t.dataset&&!t.classList.contains("pstrut")){const e=Yw(t);i.left=Math.min(i.left,e.left),i.right=Math.max(i.right,e.right),i.top=Math.min(i.top,e.top),i.bottom=Math.max(i.bottom,e.bottom)}return i}function Xw(e,t){var n,i;if(!t.id)return null;let r=null!=(i=null==(n=e.atomBoundsCache)?void 0:n.get(t.id))?i:null;if(null!==r)return r;const o=e.field.querySelector(`[data-atom-id="${t.id}"]`);return r=o?Yw(o):null,e.atomBoundsCache&&(r?e.atomBoundsCache.set(t.id,r):e.atomBoundsCache.delete(t.id)),null!=r?r:null}function Qw(e,t){return e.model.selection.ranges.reduce(((n,i)=>n.concat(...function(e,t,n){const i=new Map;for(const r of e.model.getAtoms(t,{includeChildren:!0})){if((null==n?void 0:n.excludeAtomsWithBackground)&&r.style.backgroundColor)continue;const t=e.field,o=t.offsetWidth;let a=Math.floor(t.getBoundingClientRect().width)/o;a=isNaN(a)?1:a;const s=qw(e,Xw(e,r),a);if(s){const e=Ww(r);if(i.has(e)){const t=i.get(e);i.set(e,{left:Math.min(t.left,s.left),right:Math.max(t.right,s.right),top:Math.min(t.top,s.top),bottom:Math.max(t.bottom,s.bottom)})}else i.set(e,s)}}return[...i.values()]}(e,i,t))),[])}function Jw(e,t){return"*"===e||"none"===t||("same-origin"===t?!window.origin||e===window.origin:"function"==typeof t&&t(e))}function ex(e){let t=0,n=0;const i=e.offsetWidth,r=e.offsetHeight;for(;e instanceof HTMLElement;)t+=e.offsetTop,n+=e.offsetLeft,e=e.offsetParent;return new DOMRect(n,t,i,r)}var tx,nx;function ix(e){let t="";switch(e){case"mathfield-element":t="\n :host { display: inline-block; background-color: field; color: fieldtext; border-width: 1px; border-style: solid; border-color: #acacac; border-radius: 2px; padding:4px;}\n :host([hidden]) { display: none; }\n :host([disabled]), :host([disabled]:focus), :host([disabled]:focus-within) { outline: none; opacity: .5; }\n :host(:focus), :host(:focus-within) {\n outline: Highlight auto 1px; /* For Firefox */\n outline: -webkit-focus-ring-color auto 1px;\n }\n :host([readonly]:focus), :host([readonly]:focus-within),\n :host([read-only]:focus), :host([read-only]:focus-within) {\n outline: none;\n }\n @media (hover: none) and (pointer: coarse) {\n :host(:not(:focus)) :first-child { pointer-events: none !important; }\n }";break;case"core":t=".ML__container {\n min-height: auto !important;\n --_hue: var(--hue, 212);\n --_placeholder-color: var(--placeholder-color, hsl(var(--_hue), 40%, 49%));\n --_placeholder-opacity: var(--placeholder-opacity, 0.4);\n --_text-font-family: var(--text-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);\n}\n.ML__sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n.ML__is-inline {\n display: inline-block;\n}\n.ML__base {\n visibility: inherit;\n display: inline-block;\n position: relative;\n cursor: text;\n padding: 0;\n margin: 0;\n box-sizing: content-box;\n border: 0;\n outline: 0;\n vertical-align: baseline;\n font-weight: inherit;\n font-family: inherit;\n font-style: inherit;\n text-decoration: none;\n width: min-content;\n}\n.ML__strut,\n.ML__strut--bottom {\n display: inline-block;\n min-height: 0.5em;\n}\n.ML__small-delim {\n font-family: KaTeX_Main;\n}\n/* Text mode */\n.ML__text {\n font-family: var(--_text-font-family);\n white-space: pre;\n}\n/* Use cmr for 'math upright' */\n.ML__cmr {\n font-family: KaTeX_Main;\n font-style: normal;\n}\n.ML__mathit {\n font-family: KaTeX_Math;\n /* The KaTeX_Math font is italic by default, so the font-style below is only \n useful when a fallback font is used\n */\n font-style: italic;\n}\n.ML__mathbf {\n font-family: KaTeX_Main;\n font-weight: bold;\n}\n/* Lowercase greek symbols should stick to math font when \\mathbf is applied \n to match TeX idiosyncratic behavior */\n.lcGreek.ML__mathbf {\n font-family: KaTeX_Math;\n font-weight: normal;\n}\n.ML__mathbfit {\n font-family: KaTeX_Math;\n font-weight: bold;\n font-style: italic;\n}\n.ML__ams {\n font-family: KaTeX_AMS;\n}\n/* Blackboard */\n.ML__bb {\n font-family: KaTeX_AMS;\n}\n.ML__cal {\n font-family: KaTeX_Caligraphic;\n}\n.ML__frak {\n font-family: KaTeX_Fraktur;\n}\n.ML__tt {\n font-family: KaTeX_Typewriter;\n}\n.ML__script {\n font-family: KaTeX_Script;\n}\n.ML__sans {\n font-family: KaTeX_SansSerif;\n}\n.ML__series_ul {\n font-weight: 100;\n}\n.ML__series_el {\n font-weight: 100;\n}\n.ML__series_l {\n font-weight: 200;\n}\n.ML__series_sl {\n font-weight: 300;\n}\n.ML__series_sb {\n font-weight: 500;\n}\n.ML__bold,\n.ML__boldsymbol {\n font-weight: 700;\n}\n.ML__series_eb {\n font-weight: 800;\n}\n.ML__series_ub {\n font-weight: 900;\n}\n.ML__series_uc {\n font-stretch: ultra-condensed;\n}\n.ML__series_ec {\n font-stretch: extra-condensed;\n}\n.ML__series_c {\n font-stretch: condensed;\n}\n.ML__series_sc {\n font-stretch: semi-condensed;\n}\n.ML__series_sx {\n font-stretch: semi-expanded;\n}\n.ML__series_x {\n font-stretch: expanded;\n}\n.ML__series_ex {\n font-stretch: extra-expanded;\n}\n.ML__series_ux {\n font-stretch: ultra-expanded;\n}\n.ML__it {\n font-style: italic;\n}\n.ML__shape_ol {\n -webkit-text-stroke: 1px black;\n text-stroke: 1px black;\n color: transparent;\n}\n.ML__shape_sc {\n font-variant: small-caps;\n}\n.ML__shape_sl {\n font-style: oblique;\n}\n/* First level emphasis */\n.ML__emph {\n color: #bc2612;\n}\n/* Second level emphasis */\n.ML__emph .ML__emph {\n color: #0c7f99;\n}\n.ML__highlight {\n color: #007cb2;\n background: #edd1b0;\n}\n.ML__center {\n text-align: center;\n}\n.ML__label_padding {\n padding: 0 0.5em;\n}\n.ML__frac-line {\n width: 100%;\n min-height: 1px;\n}\n.ML__frac-line:after {\n content: '';\n display: block;\n margin-top: max(-1px, -0.04em);\n min-height: max(1px, 0.04em);\n /* Ensure the line is visible when printing even if \"turn off background images\" is on*/\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n /* There's a bug since Chrome 62 where \n sub-pixel border lines don't draw at some zoom \n levels (110%, 90%). \n Setting the min-height used to work around it, but that workaround\n broke in Chrome 84 or so.\n Setting the background (and the min-height) seems to work for now.\n */\n background: currentColor;\n box-sizing: content-box;\n /* Vuetify sets the box-sizing to inherit \n causes the fraction line to not draw at all sizes (see #26) */\n /* On some versions of Firefox on Windows, the line fails to \n draw at some zoom levels, but setting the transform triggers\n the hardware accelerated path, which works */\n transform: translate(0, 0);\n}\n.ML__sqrt {\n display: inline-block;\n}\n.ML__sqrt-sign {\n display: inline-block;\n position: relative;\n}\n.ML__sqrt-line {\n display: inline-block;\n height: max(1px, 0.04em);\n width: 100%;\n}\n.ML__sqrt-line:before {\n content: '';\n display: block;\n margin-top: min(-1px, -0.04em);\n min-height: max(1px, 0.04em);\n /* Ensure the line is visible when printing even if \"turn off background images\" is on*/\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n background: currentColor;\n /* On some versions of Firefox on Windows, the line fails to \n draw at some zoom levels, but setting the transform triggers\n the hardware accelerated path, which works */\n transform: translate(0, 0);\n}\n.ML__sqrt-line:after {\n border-bottom-width: 1px;\n content: ' ';\n display: block;\n margin-top: -0.1em;\n}\n.ML__sqrt-index {\n margin-left: 0.27777778em;\n margin-right: -0.55555556em;\n}\n.ML__delim-size1 {\n font-family: KaTeX_Size1;\n}\n.ML__delim-size2 {\n font-family: KaTeX_Size2;\n}\n.ML__delim-size3 {\n font-family: KaTeX_Size3;\n}\n.ML__delim-size4 {\n font-family: KaTeX_Size4;\n}\n.ML__delim-mult .delim-size1 > span {\n font-family: KaTeX_Size1;\n}\n.ML__delim-mult .delim-size4 > span {\n font-family: KaTeX_Size4;\n}\n.ML__accent-body > span {\n font-family: KaTeX_Main;\n width: 0;\n}\n.ML__accent-vec {\n position: relative;\n left: 0.24em;\n}\n/** The markup for a LaTeX formula, either in an editable mathfield or \n in a static display.\n*/\n.ML__latex {\n display: inline-block;\n direction: ltr;\n text-align: left;\n text-indent: 0;\n text-rendering: auto;\n font-family: KaTeX_Main, 'Times New Roman', serif;\n font-style: normal;\n font-size-adjust: none;\n font-stretch: normal;\n font-variant-caps: normal;\n letter-spacing: normal;\n line-height: 1.2;\n word-wrap: normal;\n word-spacing: normal;\n white-space: nowrap;\n text-shadow: none;\n -webkit-user-select: none;\n user-select: none;\n width: min-content;\n}\n.ML__latex .style-wrap {\n position: relative;\n}\n.ML__latex .mfrac {\n display: inline-block;\n}\n.ML__latex .left-right {\n display: inline-block;\n}\n.ML__latex .vlist-t {\n display: inline-table;\n table-layout: fixed;\n border-collapse: collapse;\n}\n.ML__latex .vlist-r {\n display: table-row;\n}\n.ML__latex .vlist {\n display: table-cell;\n vertical-align: bottom;\n position: relative;\n}\n.ML__latex .vlist > span {\n display: block;\n height: 0;\n position: relative;\n}\n.ML__latex .vlist > span > span {\n display: inline-block;\n}\n.ML__latex .vlist > span > .pstrut {\n overflow: hidden;\n width: 0;\n}\n.ML__latex .vlist-t2 {\n margin-right: -2px;\n}\n.ML__latex .vlist-s {\n display: table-cell;\n vertical-align: bottom;\n font-size: 1px;\n width: 2px;\n min-width: 2px;\n}\n.ML__latex .msubsup {\n text-align: left;\n}\n.ML__latex .negativethinspace {\n display: inline-block;\n margin-left: -0.16667em;\n height: 0.71em;\n}\n.ML__latex .thinspace {\n display: inline-block;\n width: 0.16667em;\n height: 0.71em;\n}\n.ML__latex .mediumspace {\n display: inline-block;\n width: 0.22222em;\n height: 0.71em;\n}\n.ML__latex .thickspace {\n display: inline-block;\n width: 0.27778em;\n height: 0.71em;\n}\n.ML__latex .enspace {\n display: inline-block;\n width: 0.5em;\n height: 0.71em;\n}\n.ML__latex .quad {\n display: inline-block;\n width: 1em;\n height: 0.71em;\n}\n.ML__latex .qquad {\n display: inline-block;\n width: 2em;\n height: 0.71em;\n}\n.ML__latex .llap,\n.ML__latex .rlap {\n width: 0;\n position: relative;\n display: inline-block;\n}\n.ML__latex .llap > .inner,\n.ML__latex .rlap > .inner {\n position: absolute;\n}\n.ML__latex .llap > .fix,\n.ML__latex .rlap > .fix {\n display: inline-block;\n}\n.ML__latex .llap > .inner {\n right: 0;\n}\n.ML__latex .rlap > .inner {\n left: 0;\n}\n.ML__latex .rule {\n display: inline-block;\n border: solid 0;\n position: relative;\n box-sizing: border-box;\n}\n.ML__latex .overline .overline-line,\n.ML__latex .underline .underline-line {\n width: 100%;\n}\n.ML__latex .overline .overline-line:before,\n.ML__latex .underline .underline-line:before {\n content: '';\n border-bottom-style: solid;\n border-bottom-width: max(1px, 0.04em);\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n display: block;\n}\n.ML__latex .overline .overline-line:after,\n.ML__latex .underline .underline-line:after {\n border-bottom-style: solid;\n border-bottom-width: max(1px, 0.04em);\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n content: '';\n display: block;\n margin-top: -1px;\n}\n.ML__latex .stretchy {\n display: block;\n position: absolute;\n width: 100%;\n left: 0;\n overflow: hidden;\n}\n.ML__latex .stretchy:before,\n.ML__latex .stretchy:after {\n content: '';\n}\n.ML__latex .stretchy svg {\n display: block;\n position: absolute;\n width: 100%;\n height: inherit;\n fill: currentColor;\n stroke: currentColor;\n fill-rule: nonzero;\n fill-opacity: 1;\n stroke-width: 1;\n stroke-linecap: butt;\n stroke-linejoin: miter;\n stroke-miterlimit: 4;\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n stroke-opacity: 1;\n}\n.ML__latex .slice-1-of-2 {\n display: inline-flex;\n position: absolute;\n left: 0;\n width: 50.2%;\n overflow: hidden;\n}\n.ML__latex .slice-2-of-2 {\n display: inline-flex;\n position: absolute;\n right: 0;\n width: 50.2%;\n overflow: hidden;\n}\n.ML__latex .slice-1-of-3 {\n display: inline-flex;\n position: absolute;\n left: 0;\n width: 25.1%;\n overflow: hidden;\n}\n.ML__latex .slice-2-of-3 {\n display: inline-flex;\n position: absolute;\n left: 25%;\n width: 50%;\n overflow: hidden;\n}\n.ML__latex .slice-3-of-3 {\n display: inline-flex;\n position: absolute;\n right: 0;\n width: 25.1%;\n overflow: hidden;\n}\n.ML__latex .slice-1-of-1 {\n display: inline-flex;\n position: absolute;\n width: 100%;\n left: 0;\n overflow: hidden;\n}\n.ML__latex .nulldelimiter {\n display: inline-block;\n}\n.ML__latex .op-group {\n display: inline-block;\n}\n.ML__latex .op-symbol {\n position: relative;\n}\n.ML__latex .op-symbol.small-op {\n font-family: KaTeX_Size1;\n}\n.ML__latex .op-symbol.large-op {\n font-family: KaTeX_Size2;\n}\n.ML__latex .mtable .vertical-separator {\n display: inline-block;\n min-width: 1px;\n box-sizing: border-box;\n}\n.ML__latex .mtable .arraycolsep {\n display: inline-block;\n}\n.ML__latex .mtable .col-align-m > .vlist-t {\n text-align: center;\n}\n.ML__latex .mtable .col-align-c > .vlist-t {\n text-align: center;\n}\n.ML__latex .mtable .col-align-l > .vlist-t {\n text-align: left;\n}\n.ML__latex .mtable .col-align-r > .vlist-t {\n text-align: right;\n}\n.ML__error {\n display: inline-block;\n background-image: radial-gradient(ellipse at center, hsl(341, 100%, 40%), rgba(0, 0, 0, 0) 70%);\n background-color: hsla(341, 100%, 40%, 0.1);\n background-repeat: repeat-x;\n background-size: 3px 3px;\n padding-bottom: 3px;\n background-position: 0 100%;\n}\n.ML__error > .ML__error {\n background: transparent;\n padding: 0;\n}\n.ML__placeholder {\n color: var(--_placeholder-color);\n opacity: var(--_placeholder-opacity);\n padding-left: 0.4ex;\n padding-right: 0.4ex;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n}\n.ML__notation {\n position: absolute;\n box-sizing: border-box;\n line-height: 0;\n}\n/* This class is used to implement the `\\mathtip` and `\\texttip` commands\n For UI elements, see `[data-ML__tooltip]`\n*/\n.ML__tooltip-container {\n position: relative;\n transform: scale(0);\n}\n.ML__tooltip-container .ML__tooltip-content {\n position: fixed;\n display: inline-table;\n visibility: hidden;\n z-index: 2;\n width: max-content;\n max-width: 400px;\n padding: 12px 12px;\n border-radius: 8px;\n background: #616161;\n --_selection-color: #fff;\n color: #fff;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n opacity: 0;\n transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);\n}\n.ML__tooltip-container .ML__tooltip-content .ML__text {\n white-space: normal;\n}\n.ML__tooltip-container .ML__tooltip-content .ML__base {\n display: contents;\n}\n.ML__tooltip-container:hover .ML__tooltip-content {\n visibility: visible;\n opacity: 1;\n font-size: 0.75em;\n transform: scale(1) translate(0, 3em);\n}\n";break;case"mathfield":t="@keyframes ML__caret-blink {\n 0%,\n 100% {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n }\n}\n.ML__container {\n display: inline-flex;\n flex-flow: row;\n justify-content: space-between;\n align-items: flex-end;\n min-height: 39px;\n /* Need some room for the virtual keyboard toggle */\n width: 100%;\n /* Encourage browsers to consider allocating a hardware accelerated\n layer for this element. */\n isolation: isolate;\n /* Prevent the browser from trying to interpret touch gestures in the field */\n /* \"Disabling double-tap to zoom removes the need for browsers to\n delay the generation of click events when the user taps the screen.\" */\n touch-action: none;\n --_caret-color: var(--caret-color, hsl(var(--_hue), 40%, 49%));\n --_selection-color: var(--selection-color, #000);\n --_selection-background-color: var(--selection-background-color, hsl(var(--_hue), 70%, 85%));\n --_text-highlight-background-color: var(--highlight-text, hsla(var(--_hue), 40%, 50%, 0.1));\n --_contains-highlight-background-color: var(--contains-highlight-background-color, hsl(var(--_hue), 40%, 95%));\n --_smart-fence-color: var(--smart-fence-color, currentColor);\n --_smart-fence-opacity: var(--smart-fence-opacity, 0.5);\n --_latex-color: var(--latex-color, hsl(var(--_hue), 80%, 40%));\n --_correct-color: var(--correct-color, #10a000);\n --_incorrect-color: var(--incorrect-color, #a01b00);\n --_composition-background-color: var(--composition-background-color, #fff1c2);\n --_composition-text-color: var(--composition-text-color, black);\n --_composition-underline-color: var(--composition-underline-color, transparent);\n}\n/* This is the actual field content (formula) */\n.ML__content {\n display: flex;\n align-items: center;\n align-self: center;\n position: relative;\n overflow: hidden;\n padding: 2px 3px 2px 1px;\n width: 100%;\n}\n.ML__virtual-keyboard-toggle,\n.ML__menu-toggle {\n box-sizing: border-box;\n display: flex;\n align-self: center;\n align-items: center;\n flex-shrink: 0;\n flex-direction: column;\n justify-content: center;\n width: 34px;\n height: 34px;\n padding: 0;\n margin-right: 4px;\n cursor: pointer;\n /* Avoid some weird blinking with :hover */\n border-radius: 8px;\n border: 1px solid transparent;\n transition: background 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);\n color: hsl(var(--_hue), 40%, 50%);\n fill: currentColor;\n background: transparent;\n}\n.ML__virtual-keyboard-toggle:hover,\n.ML__menu-toggle:hover {\n background: hsla(0, 0%, 70%, 0.3);\n color: #333;\n fill: currentColor;\n}\n.ML__virtual-keyboard-toggle > span,\n.ML__menu-toggle > span {\n display: flex;\n align-self: center;\n align-items: center;\n}\n/* The invisible element used to capture keyboard events. We're just trying\n really hard to make sure it doesn't show. */\n.ML__keyboard-sink {\n display: inline-block;\n resize: none;\n outline: none;\n border: none;\n /* Need these for Microsoft Edge */\n position: fixed;\n clip: rect(0 0 0 0);\n /* Need this to prevent iOS Safari from auto-zooming */\n font-size: 1em;\n font-family: KaTeX_Main;\n line-height: 0.5;\n /* On Chromium, if this is 0, no keyboard events are received */\n}\n[part=\"placeholder\"] {\n color: var(--neutral-400);\n}\n.ML__composition {\n background: var(--_composition-background-color);\n color: var(--_composition-text-color);\n text-decoration: underline var(--_composition-underline-color);\n}\n.ML__caret::after {\n content: '';\n visibility: hidden;\n width: 0;\n display: inline-block;\n height: 0.76em;\n --_caret-width: clamp(2px, 0.08em, 10px);\n border: none;\n border-radius: calc(var(--_caret-width) / 2);\n border-right: var(--_caret-width) solid var(--_caret-color);\n margin-right: calc(-1 * var(--_caret-width));\n position: relative;\n left: -0.045em;\n bottom: -0.05em;\n animation: ML__caret-blink 1.05s step-end forwards infinite;\n}\n.ML__text-caret::after {\n content: '';\n visibility: hidden;\n width: 0;\n display: inline-block;\n height: 0.76em;\n --_caret-width: clamp(2px, 0.08em, 10px);\n border: none;\n border-radius: calc(var(--_caret-width) / 2);\n border-right: var(--_caret-width) solid var(--_caret-color);\n margin-right: calc(-1 * var(--_caret-width));\n position: relative;\n left: -0.045em;\n bottom: -0.05em;\n animation: ML__caret-blink 1.05s step-end forwards infinite;\n}\n.ML__latex-caret::after {\n content: '';\n visibility: hidden;\n --_caret-width: clamp(2px, 0.08em, 10px);\n border: none;\n border-radius: calc(var(--_caret-width) / 2);\n border-right: var(--_caret-width) solid var(--_latex-color);\n margin-right: calc(-1 * var(--_caret-width));\n position: relative;\n left: -0.019em;\n animation: ML__caret-blink 1.05s step-end forwards infinite;\n}\n.ML__focused .ML__latex-caret::after,\n.ML__focused .ML__text-caret::after,\n.ML__focused .ML__caret::after {\n visibility: visible;\n}\n.ML__focused .ML__text {\n background: var(--_text-highlight-background-color);\n}\n/* When using smartFence, the anticipated closing fence is displayed\nwith this style */\n.ML__smart-fence__close {\n opacity: var(--_smart-fence-opacity);\n color: var(--_smart-fence-color);\n}\n.ML__selected,\n.ML__focused .ML__selected .ML__contains-caret,\n.ML__focused .ML__selected .ML__smart-fence__close,\n.ML__focused .ML__selected .ML__placeholder {\n color: var(--_selection-color);\n opacity: 1;\n}\n.ML__selection {\n box-sizing: border-box;\n background: var(--_selection-background-color) !important;\n}\n.ML__contains-caret.ML__close,\n.ML__contains-caret.ML__open,\n.ML__contains-caret > .ML__close,\n.ML__contains-caret > .ML__open,\n.ML__contains-caret .ML__sqrt-sign,\n.ML__contains-caret .ML__sqrt-line {\n color: var(--_caret-color);\n}\n.ML__contains-highlight {\n box-sizing: border-box;\n background: transparent;\n}\n.ML__focused .ML__contains-highlight {\n background: var(--_contains-highlight-background-color);\n}\n.ML__raw-latex {\n font-family: 'Berkeley Mono', 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;\n font-weight: 400;\n font-size: 0.8em;\n letter-spacing: -0.05em;\n color: var(--_latex-color);\n}\n.ML__suggestion {\n color: var(--neutral-500);\n}\n.ML__virtual-keyboard-toggle.is-visible.is-pressed:hover {\n background: hsl(var(--_hue), 25%, 35%);\n color: #fafafa;\n fill: currentColor;\n}\n.ML__virtual-keyboard-toggle:focus {\n outline: none;\n border-radius: 8px;\n border: 2px solid hsl(var(--_hue), 40%, 50%);\n}\n.ML__virtual-keyboard-toggle.is-pressed,\n.ML__virtual-keyboard-toggle.is-active:hover,\n.ML__virtual-keyboard-toggle.is-active {\n background: hsl(var(--_hue), 25%, 35%);\n color: #fafafa;\n fill: currentColor;\n}\n/* Add an attribute 'data-tooltip' to automatically show a\n tooltip over a element on hover.\n*/\n[data-tooltip] {\n position: relative;\n}\n[data-tooltip]::after {\n content: attr(data-tooltip);\n position: absolute;\n display: block;\n z-index: 2;\n pointer-events: none;\n right: auto;\n top: calc(-100% - 4px);\n width: max-content;\n max-width: 200px;\n padding: 8px 8px;\n border-radius: 4px;\n background: #616161;\n color: #fff;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n text-align: center;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n font-style: normal;\n font-weight: 400;\n font-size: 13px;\n /* Phone */\n opacity: 0;\n transform: scale(0.5);\n}\n@media only screen and (max-width: 767px) {\n [data-tooltip]::after {\n padding: 8px 16px;\n font-size: 16px;\n }\n}\nmenu [data-tooltip]::after {\n left: 100%;\n top: 0%;\n}\nmenu .ML__base {\n cursor: default;\n}\n/** Don't display if we're tracking, i.e. have the pointer down */\n.tracking [data-tooltip]:hover::after {\n /* Use visibility, not display. Display will remove the after from the DOM, and the override below will not work */\n visibility: hidden;\n}\n/** But do display if tracking and inside a menu */\n.tracking menu li[data-tooltip]:hover::after,\n[data-tooltip]:hover::after {\n visibility: visible;\n opacity: 1;\n transform: scale(1);\n transition-property: opacity, scale;\n transition-duration: 0.15s;\n transition-delay: 1s;\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.ML__prompt {\n border-radius: 2px;\n}\n.ML__editablePromptBox {\n outline: 1px solid #acacac;\n border-radius: 2px;\n z-index: -1;\n}\n.ML__focusedPromptBox {\n outline: highlight auto 1px;\n}\n.ML__lockedPromptBox {\n background-color: rgba(142, 142, 141, 0.4);\n z-index: -1;\n}\n.ML__correctPromptBox {\n outline: 1px solid var(--_correct-color);\n box-shadow: 0 0 5px var(--_correct-color);\n}\n.ML__incorrectPromptBox {\n outline: 1px solid var(--_incorrect-color);\n box-shadow: 0 0 5px var(--_incorrect-color);\n}\n.variant-submenu {\n display: flex;\n flex-direction: column;\n padding: 8px;\n}\n.variant-submenu [part=menu-item] {\n font-size: 2rem;\n text-align: center;\n margin: 0;\n}\n.insert-matrix-submenu {\n display: grid;\n padding: 8px;\n align-content: center;\n justify-content: center;\n grid-template-columns: repeat(5, minmax(0, 1fr));\n}\n.insert-matrix-submenu [part=menu-item] {\n font-size: 21px;\n border: none;\n border-radius: 0;\n line-height: 21px;\n text-align: center;\n padding: 0;\n margin: 0;\n}\n.border-submenu [part=menu-item] {\n font-size: 2rem;\n line-height: 1.2;\n text-align: center;\n}\n.swatches-submenu {\n --_swatch-size: 2rem;\n --_columns: 4;\n display: flex;\n flex-flow: wrap;\n padding: 8px;\n max-width: calc(var(--_columns) * (var(--_swatch-size) + 18px) + 16px);\n box-sizing: border-box;\n}\n.menu-swatch {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: fit-content;\n height: fit-content;\n margin: 2px;\n padding: 0;\n background: var(--neutral-200);\n}\n.menu-swatch > .label {\n padding: 0;\n margin: 0;\n line-height: 0;\n}\n.menu-swatch > .label > span {\n display: inline-block;\n margin: 6px;\n min-width: var(--_swatch-size);\n min-height: var(--_swatch-size);\n border-radius: 50%;\n}\n.menu-swatch.active {\n background: var(--neutral-100);\n scale: 1.4;\n}\n.menu-swatch.active > .label > span {\n border-radius: 2px;\n}\n.menu-swatch .ui-checkmark,\n.menu-swatch .ui-mixedmark {\n position: absolute;\n margin: 0;\n padding: 0;\n color: white;\n}\n.menu-swatch.dark-contrast .ui-checkmark,\n.menu-swatch.dark-contrast .ui-mixedmark {\n color: #000;\n}\n";break;case"environment-popover":t="#mathlive-environment-popover.is-visible {\n visibility: visible;\n}\n#mathlive-environment-popover {\n --_environment-panel-height: var(--environment-panel-height, 70px);\n --_accent-color: var(--accent-color, #aaa);\n --_background: var(--environment-panel-background, #fff);\n --_button-background: var(--environment-panel-button-background, white);\n --_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);\n --_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);\n --_button-text: var(--environment-panel-button-text, #e3e4e8);\n position: absolute;\n width: calc(var(--_environment-panel-height) * 2);\n height: var(--_environment-panel-height);\n border-radius: 4px;\n border: 1.5px solid var(--_accent-color);\n background-color: var(--_background);\n box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));\n pointer-events: all;\n visibility: hidden;\n}\n#mathlive-environment-popover .MLEP__array-buttons {\n height: calc(var(--_environment-panel-height) * 5/4);\n width: calc(var(--_environment-panel-height) * 5/4);\n margin-left: calc(0px - var(--_environment-panel-height) * 0.16);\n margin-top: calc(0px - var(--_environment-panel-height) * 0.19);\n}\n#mathlive-environment-popover .MLEP__array-buttons .font {\n fill: white;\n}\n#mathlive-environment-popover .MLEP__array-buttons circle {\n fill: #7f7f7f;\n transition: fill 300ms;\n}\n#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {\n fill-opacity: 1;\n fill: var(--_background);\n stroke: var(--_accent-color);\n stroke-width: 3px;\n}\n#mathlive-environment-popover .MLEP__array-buttons line {\n stroke: var(--_accent-color);\n stroke-opacity: 0;\n stroke-width: 40;\n pointer-events: none;\n transition: stroke-opacity 300ms;\n stroke-linecap: round;\n}\n#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {\n fill: var(--_accent-color);\n}\n#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {\n stroke-opacity: 1;\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls {\n height: 100%;\n width: 50%;\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {\n width: var(--_environment-panel-height);\n height: var(--_environment-panel-height);\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n justify-content: space-around;\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {\n pointer-events: all;\n margin-top: 2px;\n width: calc(var(--_environment-panel-height) / 3 * 28 / 24);\n height: calc(var(--_environment-panel-height) / 3 - 2px);\n border-radius: calc(var(--_environment-panel-height) / 25);\n background-color: var(--_button-background);\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {\n background-color: var(--_button-background-hover);\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {\n stroke: var(--_button-text);\n stroke-width: 2;\n stroke-linecap: round;\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {\n fill-opacity: 0;\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {\n pointer-events: none;\n background-color: var(--_button-background-active);\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {\n stroke: var(--_accent-color);\n}\n#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {\n fill: var(--_accent-color);\n}\n";break;case"suggestion-popover":t="/* The element that display info while in latex mode */\n#mathlive-suggestion-popover {\n background-color: rgba(97, 97, 97);\n color: #fff;\n text-align: center;\n border-radius: 8px;\n position: fixed;\n z-index: 1;\n display: none;\n flex-direction: column;\n justify-content: center;\n box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);\n}\n#mathlive-suggestion-popover.top-tip::after {\n content: '';\n position: absolute;\n top: -15px;\n left: calc(50% - 15px);\n width: 0;\n height: 0;\n border-left: 15px solid transparent;\n border-right: 15px solid transparent;\n border-bottom: 15px solid rgba(97, 97, 97);\n font-size: 1rem;\n}\n#mathlive-suggestion-popover.bottom-tip::after {\n content: '';\n position: absolute;\n bottom: -15px;\n left: calc(50% - 15px);\n width: 0;\n height: 0;\n border-left: 15px solid transparent;\n border-right: 15px solid transparent;\n border-top: 15px solid rgba(97, 97, 97);\n font-size: 1rem;\n}\n#mathlive-suggestion-popover.is-animated {\n transition: all 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);\n animation: ML__fade-in cubic-bezier(0, 0, 0.2, 1) 0.15s;\n}\n#mathlive-suggestion-popover.is-visible {\n display: flex;\n}\n@keyframes ML__fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n/* The wrapper class for the entire content of the popover panel */\n#mathlive-suggestion-popover ul {\n display: flex;\n flex-flow: column;\n list-style: none;\n margin: 0;\n padding: 0;\n align-items: flex-start;\n max-height: 400px;\n overflow-y: auto;\n}\n#mathlive-suggestion-popover li {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n margin: 8px;\n padding: 8px;\n width: calc(100% - 16px - 16px);\n column-gap: 1em;\n border-radius: 8px;\n cursor: pointer;\n /* Since the content can be clicked on, provide feedback on hover */\n}\n#mathlive-suggestion-popover li a {\n color: #5ea6fd;\n padding-top: 0.3em;\n margin-top: 0.4em;\n display: block;\n}\n#mathlive-suggestion-popover li a:hover {\n color: #5ea6fd;\n text-decoration: underline;\n}\n#mathlive-suggestion-popover li:hover,\n#mathlive-suggestion-popover li.is-pressed,\n#mathlive-suggestion-popover li.is-active {\n background: rgba(255, 255, 255, 0.1);\n}\n/* The command inside a popover (inside a #mathlive-suggestion-popover) */\n.ML__popover__command {\n font-size: 1.6rem;\n font-family: KaTeX_Main;\n}\n.ML__popover__current {\n background: #5ea6fd;\n color: #fff;\n}\n.ML__popover__latex {\n font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;\n align-self: center;\n}\n/* The keyboard shortcuts for a symbol as displayed in the popover */\n.ML__popover__keybinding {\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n font-size: 0.8em;\n opacity: 0.7;\n}\n/* Style for the character that joins the modifiers of a keyboard shortcut \n(usually a \"+\" sign)*/\n.ML__shortcut-join {\n opacity: 0.5;\n}\n";break;case"keystroke-caption":t="/* The element that displays the keys as the user type them */\n#mathlive-keystroke-caption-panel {\n visibility: hidden;\n /*min-width: 160px;*/\n /*background-color: rgba(97, 97, 200, .95);*/\n background: var(--secondary, hsl(var(--_hue), 19%, 26%));\n border-color: var(--secondary-border, hsl(0, 0%, 91%));\n box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);\n text-align: center;\n border-radius: 6px;\n padding: 16px;\n position: absolute;\n z-index: 1;\n display: flex;\n flex-direction: row-reverse;\n justify-content: center;\n --keystroke: white;\n --on-keystroke: #555;\n --keystroke-border: #f7f7f7;\n}\n@media (prefers-color-scheme: dark) {\n body:not([theme='light']) #mathlive-keystroke-caption-panel {\n --keystroke: hsl(var(--_hue), 50%, 30%);\n --on-keystroke: hsl(0, 0%, 98%);\n --keystroke-border: hsl(var(--_hue), 50%, 25%);\n }\n}\nbody[theme='dark'] #mathlive-keystroke-caption-panel {\n --keystroke: hsl(var(--_hue), 50%, 30%);\n --on-keystroke: hsl(0, 0%, 98%);\n --keystroke-border: hsl(var(--_hue), 50%, 25%);\n}\n#mathlive-keystroke-caption-panel > span {\n min-width: 14px;\n /*height: 8px;*/\n margin: 0 8px 0 0;\n padding: 4px;\n background-color: var(--keystroke);\n color: var(--on-keystroke);\n fill: currentColor;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n font-size: 1em;\n border-radius: 6px;\n border: 2px solid var(--keystroke-border);\n /*box-shadow: 0 7px 14px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);*/\n}\n";break;case"virtual-keyboard":t=".ML__keyboard {\n --_keyboard-height: 0;\n --_keyboard-zindex: var(--keyboard-zindex, 105);\n --_accent-color: var(--keyboard-accent-color, #0c75d8);\n --_background: var(--keyboard-background, #cacfd7);\n --_border: var(--keyboard-border, #ddd);\n --_padding-horizontal: var(--keyboard-padding-horizontal, 0px);\n --_padding-top: var(--keyboard-padding-top, 5px);\n --_padding-bottom: var(--keyboard-padding-bottom, 0px);\n --_row-padding-left: var(--keyboard-row-padding-left, 0px);\n --_row-padding-right: var(--keyboard-row-padding-right, 0px);\n --_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);\n --_toolbar-text-active: var(--keyboard-toolbar-text-active, var(--_accent-color));\n --_toolbar-background: var(--keyboard-toolbar-background, transparent);\n --_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);\n --_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);\n --_toolbar-font-size: var(--keyboard-toolbar-font-size, '135%');\n --_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);\n --_keycap-background: var(--keycap-background, white);\n --_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);\n --_keycap-background-active: var(--keycap-background-active, var(--_accent-color));\n --_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));\n --_keycap-border: var(--keycap-border, #e5e6e9);\n --_keycap-border-bottom: var(--keycap-border-bottom, #8d8f92);\n --_keycap-text: var(--keycap-text, #000);\n --_keycap-text-active: var(--keycap-text-active, #fff);\n --_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));\n --_keycap-text-pressed: var(--keycap-text-pressed, #fff);\n --_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));\n --_keycap-primary-background: var(--keycap-primary-background, var(--_accent-color));\n --_keycap-primary-text: var(--keycap-primary-text, #ddd);\n --_keycap-primary-background-hover: var(--keycap-primary-background-hover, #0d80f2);\n --_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);\n --_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);\n --_keycap-secondary-text: var(--keycap-secondary-text, #060707);\n --_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);\n --_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);\n --_keycap-height: var(--keycap-height, 60px);\n /* Keycap width (incl. margin) */\n --_keycap-max-width: var(--keycap-max-width, 100px);\n --_keycap-gap: var(--keycap-gap, 8px);\n --_keycap-font-size: var(--keycap-font-size, clamp(16px, 4cqw, 24px));\n --_keycap-small-font-size: var(--keycap-small-font-size, calc(var(--keycap-font-size) * 0.8));\n --_keycap-extra-small-font-size: var(--keycap-extra-small-font-size, calc(var(--keycap-font-size) / 1.42));\n --_variant-panel-background: var(--variant-panel-background, #fff);\n --_variant-keycap-text: var(--variant-keycap-text, var(--_keycap-text));\n --_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));\n --_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));\n --_variant-keycap-length: var(--variant-keycap-length, 70px);\n --_variant-keycap-font-size: var(--variant-keycap-font-size, 30px);\n --_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 12px);\n --_keycap-shift-font-size: var(--keycap-shift-font-size, 16px);\n --_keycap-shift-color: var(--keycap-shift-color, var(--_accent-color));\n --_box-placeholder-color: var(--box-placeholder-color, var(--_accent-color));\n --_box-placeholder-pressed-color: var(--box-placeholder-pressed-color, var(--keycap-text-pressed));\n}\n.is-math-mode .MLK__rows .if-text-mode,\n.is-text-mode .MLK__rows .if-math-mode {\n display: none;\n}\n.if-can-undo,\n.if-can-redo,\n.if-can-copy,\n.if-can-cut,\n.if-can-paste {\n opacity: 0.4;\n pointer-events: none;\n}\n.can-undo .if-can-undo,\n.can-redo .if-can-redo,\n.can-copy .if-can-copy,\n.can-cut .if-can-cut,\n.can-paste .if-can-paste {\n opacity: 1;\n pointer-events: all;\n}\nbody > .ML__keyboard {\n position: fixed;\n --_padding-bottom: calc(var(--keyboard-padding-bottom, 0px) + env(safe-area-inset-bottom, 0));\n}\nbody > .ML__keyboard.is-visible > .MLK__backdrop {\n box-shadow: 0 -5px 6px rgba(0, 0, 0, 0.08);\n border-top: 1px solid var(--_border);\n}\nbody > .ML__keyboard.backdrop-is-transparent.is-visible > .MLK__backdrop {\n box-shadow: none;\n border: none;\n}\nbody > .ML__keyboard.is-visible.animate > .MLK__backdrop {\n transition: 0.28s cubic-bezier(0, 0, 0.2, 1);\n transition-property: transform, opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.ML__keyboard {\n position: relative;\n overflow: hidden;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: var(--_keyboard-zindex);\n box-sizing: border-box;\n outline: none;\n border: none;\n margin: 0;\n padding: 0;\n line-height: 1;\n overflow-wrap: unset;\n text-align: left;\n vertical-align: baseline;\n cursor: auto;\n white-space: pre;\n box-shadow: none;\n opacity: 1;\n transform: none;\n pointer-events: none;\n}\n.ML__keyboard :where(div) {\n box-sizing: border-box;\n outline: none;\n border: none;\n margin: 0;\n padding: 0;\n line-height: 1;\n overflow-wrap: unset;\n text-align: left;\n vertical-align: baseline;\n cursor: auto;\n white-space: pre;\n box-shadow: none;\n transform: none;\n}\n.MLK__backdrop {\n position: absolute;\n bottom: calc(-1 * var(--_keyboard-height));\n width: 100%;\n height: var(--_keyboard-height);\n box-sizing: border-box;\n padding-top: var(--_padding-top);\n padding-bottom: var(--_padding-bottom);\n padding-left: var(--_padding-horizontal);\n padding-right: var(--_padding-horizontal);\n opacity: 0;\n visibility: hidden;\n transform: translate(0, 0);\n background: var(--_background);\n}\n.backdrop-is-transparent .MLK__backdrop {\n background: transparent;\n}\n/* If a custom layout has a custom container/backdrop\n (backdrop-is-transparent), make sure to let pointer event go through. */\n.backdrop-is-transparent .MLK__plate {\n background: transparent;\n pointer-events: none;\n}\n/* If a custom layout has a custom container/backdrop, make sure to \n allow pointer events on it. */\n.backdrop-is-transparent .MLK__layer > div > div {\n pointer-events: all;\n}\n.ML__keyboard.is-visible > .MLK__backdrop {\n transform: translate(0, calc(-1 * var(--_keyboard-height)));\n opacity: 1;\n visibility: visible;\n}\n.caps-lock-indicator {\n display: none;\n width: 8px;\n height: 8px;\n background: #0cbc0c;\n box-shadow: inset 0 0 4px 0 #13ca13, 0 0 4px 0 #a9ef48;\n border-radius: 8px;\n right: 8px;\n top: 8px;\n position: absolute;\n}\n.ML__keyboard.is-caps-lock .caps-lock-indicator {\n display: block;\n}\n.ML__keyboard.is-caps-lock .shift {\n background: var(--_keycap-background-active);\n color: var(--_keycap-text-active);\n}\n.MLK__plate {\n position: absolute;\n top: var(--_padding-top);\n left: var(--_padding-horizontal);\n width: calc(100% - 2 * var(--_padding-horizontal));\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n container-type: inline-size;\n touch-action: none;\n -webkit-user-select: none;\n user-select: none;\n pointer-events: all;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n font-size: 16px;\n /* Size of toolbar labels */\n font-weight: 400;\n text-shadow: none;\n}\n.ML__box-placeholder {\n color: var(--_box-placeholder-color);\n}\n.MLK__tex {\n font-family: KaTeX_Main, KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;\n}\n.MLK__tex-math {\n font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;\n font-style: italic;\n}\n.MLK__layer {\n display: none;\n outline: none;\n}\n.MLK__layer.is-visible {\n display: flex;\n flex-flow: column;\n}\n/* Keyboard layouts are made or rows of keys... */\n.MLK__rows {\n --_keycap-width: min(var(--_keycap-max-width), 10cqw);\n display: flex;\n flex-flow: column;\n align-items: center;\n border-collapse: separate;\n clear: both;\n border: 0;\n margin: 0;\n margin-bottom: var(--_keycap-gap);\n gap: var(--_keycap-gap);\n /* If the styling include, e.g., some shadows, they will be\n cut off by the overflow. In that case, set the padding to \n compensate. */\n padding-left: var(--_row-padding-left);\n padding-right: var(--_row-padding-right);\n overflow: visible;\n touch-action: none;\n}\n.MLK__rows > .MLK__row {\n display: flex;\n flex-flow: row;\n justify-content: center;\n width: 100%;\n gap: var(--_keycap-gap);\n margin: 0;\n padding: 0;\n /* For the alignment of the text on some modifiers (e.g. shift) */\n /* Extra spacing between two adjacent keys */\n}\n.MLK__rows > .MLK__row .tex {\n font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;\n}\n.MLK__rows > .MLK__row .tex-math {\n font-family: KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;\n}\n.MLK__rows > .MLK__row .big-op {\n font-size: calc(1.25 * var(--_keycap-font-size));\n}\n.MLK__rows > .MLK__row .small {\n font-size: var(--_keycap-small-font-size);\n}\n.MLK__rows > .MLK__row .bottom {\n justify-content: flex-end;\n}\n.MLK__rows > .MLK__row .left {\n align-items: flex-start;\n padding-left: 12px;\n}\n.MLK__rows > .MLK__row .right {\n align-items: flex-end;\n padding-right: 12px;\n}\n.MLK__rows > .MLK__row .w0 {\n width: 0;\n}\n.MLK__rows > .MLK__row .w5 {\n width: calc(0.5 * var(--_keycap-width) - var(--_keycap-gap));\n}\n.MLK__rows > .MLK__row .w15 {\n width: calc(1.5 * var(--_keycap-width) - var(--_keycap-gap));\n}\n.MLK__rows > .MLK__row .w20 {\n width: calc(2 * var(--_keycap-width) - var(--_keycap-gap));\n}\n.MLK__rows > .MLK__row .w40 {\n width: calc(4 * var(--_keycap-width) - var(--_keycap-gap));\n}\n.MLK__rows > .MLK__row .w50 {\n width: calc(5 * var(--_keycap-width) - var(--_keycap-gap));\n}\n.MLK__rows > .MLK__row .MLK__keycap.w50 {\n font-size: 80%;\n padding-top: 10px;\n font-weight: 100;\n}\n.MLK__rows > .MLK__row .separator {\n background: transparent;\n border: none;\n pointer-events: none;\n}\n.MLK__rows > .MLK__row .horizontal-rule {\n height: 6px;\n margin-top: 3px;\n margin-bottom: 0;\n width: 100%;\n border-radius: 0;\n border-top: var(--_horizontal-rule);\n}\n.MLK__rows > .MLK__row .ghost {\n background: var(--_toolbar-background);\n border: none;\n color: var(--_toolbar-text);\n}\n.MLK__rows > .MLK__row .ghost:hover {\n background: var(--_toolbar-background-hover);\n}\n.MLK__rows > .MLK__row .bigfnbutton {\n font-size: var(--_keycap-extra-small-font-size);\n}\n.MLK__rows > .MLK__row .shift,\n.MLK__rows > .MLK__row .action {\n color: var(--_keycap-secondary-text);\n background: var(--_keycap-secondary-background);\n border-color: var(--_keycap-secondary-border);\n border-bottom-color: var(--_keycap-secondary-border-bottom);\n line-height: 0.8;\n font-size: min(1rem, var(--_keycap-small-font-size));\n font-weight: 600;\n padding: 8px 12px 8px 12px;\n}\n.MLK__rows > .MLK__row .shift:hover,\n.MLK__rows > .MLK__row .action:hover {\n background: var(--_keycap-secondary-background-hover);\n}\n.MLK__rows > .MLK__row .action.primary {\n background: var(--_keycap-primary-background);\n color: var(--_keycap-primary-text);\n}\n.MLK__rows > .MLK__row .action.primary:hover {\n background: var(--_keycap-primary-background-hover);\n color: var(--_keycap-primary-text);\n}\n.MLK__rows > .MLK__row .shift.selected,\n.MLK__rows > .MLK__row .action.selected {\n color: var(--_toolbar-text-active);\n}\n.MLK__rows > .MLK__row .shift.selected.is-pressed,\n.MLK__rows > .MLK__row .action.selected.is-pressed,\n.MLK__rows > .MLK__row .shift.selected.is-active,\n.MLK__rows > .MLK__row .action.selected.is-active {\n color: white;\n}\n.MLK__rows > .MLK__row .warning {\n background: #cd0030;\n color: white;\n}\n.MLK__rows > .MLK__row .warning svg.svg-glyph {\n width: 24px;\n height: 24px;\n min-height: 24px;\n}\n/** A regular keycap\n * Use the :where() pseudo-class to give it a very low specifity, \n * so that it can be overriden by custom style.\n */\n:where(.MLK__rows > .MLK__row div) {\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: space-evenly;\n width: calc(var(--_keycap-width) - var(--_keycap-gap));\n height: var(--_keycap-height);\n box-sizing: border-box;\n padding: 0;\n vertical-align: top;\n text-align: center;\n float: left;\n color: var(--_keycap-text);\n fill: currentColor;\n font-size: var(--_keycap-font-size);\n background: var(--_keycap-background);\n border: 1px solid var(--_keycap-border);\n border-bottom-color: var(--_keycap-border-bottom);\n border-radius: 6px;\n cursor: pointer;\n touch-action: none;\n /* Keys with a variants panel */\n position: relative;\n overflow: hidden;\n -webkit-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n}\n:where(.MLK__rows > .MLK__row div):hover {\n overflow: visible;\n background: var(--_keycap-background-hover);\n}\n:where(.MLK__rows > .MLK__row div) .ML__latex {\n pointer-events: none;\n touch-action: none;\n}\n:where(.MLK__rows > .MLK__row div) svg.svg-glyph {\n margin: 8px 0;\n width: 20px;\n height: 20px;\n min-height: 20px;\n}\n:where(.MLK__rows > .MLK__row div) svg.svg-glyph-lg {\n margin: 8px 0;\n width: 24px;\n height: 24px;\n min-height: 24px;\n}\n:where(.MLK__rows > .MLK__row div).MLK__tex-math {\n font-size: 25px;\n}\n:where(.MLK__rows > .MLK__row div).is-pressed {\n background: var(--_keycap-background-pressed);\n color: var(--_keycap-text-pressed);\n --_box-placeholder-color: var(--_box-placeholder-pressed-color);\n}\n:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,\n:where(.MLK__rows > .MLK__row div).action.is-active,\n:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,\n:where(.MLK__rows > .MLK__row div).action.is-pressed {\n z-index: calc(var(--_keyboard-zindex) - 5);\n}\n:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active aside,\n:where(.MLK__rows > .MLK__row div).action.is-active aside,\n:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed aside,\n:where(.MLK__rows > .MLK__row div).action.is-pressed aside {\n display: none;\n}\n:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active .MLK__shift,\n:where(.MLK__rows > .MLK__row div).action.is-active .MLK__shift,\n:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed .MLK__shift,\n:where(.MLK__rows > .MLK__row div).action.is-pressed .MLK__shift {\n display: none;\n}\n:where(.MLK__rows > .MLK__row div).shift.is-pressed,\n:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,\n:where(.MLK__rows > .MLK__row div).action.is-pressed {\n background: var(--_keycap-background-pressed);\n color: var(--_keycap-text-pressed);\n}\n:where(.MLK__rows > .MLK__row div).shift.is-active,\n:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,\n:where(.MLK__rows > .MLK__row div).action.is-active {\n background: var(--_keycap-background-active);\n color: var(--_keycap-text-active);\n --_box-placeholder-color: var(--_box-placeholder-pressed-color);\n}\n:where(.MLK__rows > .MLK__row div) small {\n color: var(--_keycap-secondary-text);\n}\n:where(.MLK__rows > .MLK__row div) aside {\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n font-size: 10px;\n line-height: 10px;\n color: var(--_keycap-secondary-text);\n}\n/* Add an attribute 'data-tooltip' to display a tooltip on hover.\nNote there are a different set of tooltip rules for the keyboard toggle\n(it's in a different CSS tree) */\n.ML__keyboard [data-tooltip] {\n position: relative;\n}\n.ML__keyboard [data-tooltip]::after {\n position: absolute;\n display: inline-table;\n content: attr(data-tooltip);\n top: inherit;\n bottom: 100%;\n width: max-content;\n max-width: 200px;\n padding: 8px 8px;\n background: #616161;\n color: #fff;\n text-align: center;\n z-index: 2;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n border-radius: 2px;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n font-weight: 400;\n font-size: 12px;\n transition: all 0.15s cubic-bezier(0.4, 0, 1, 1) 1s;\n opacity: 0;\n transform: scale(0.5);\n}\n.ML__keyboard [data-tooltip]:hover {\n position: relative;\n}\n.ML__keyboard [data-tooltip]:hover::after {\n opacity: 1;\n transform: scale(1);\n}\n.MLK__toolbar {\n align-self: center;\n display: flex;\n flex-flow: row;\n justify-content: space-between;\n width: 100%;\n max-width: 996px;\n min-height: 32px;\n /* Icons for undo/redo, etc. */\n}\n.MLK__toolbar svg {\n height: 20px;\n width: 20px;\n}\n.MLK__toolbar > .left {\n position: relative;\n display: flex;\n justify-content: flex-start;\n flex-flow: row;\n}\n.MLK__toolbar > .right {\n display: flex;\n justify-content: flex-end;\n flex-flow: row;\n}\n.MLK__toolbar > div > div {\n /* \"button\" in the toolbar */\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--_toolbar-text);\n fill: currentColor;\n background: var(--_toolbar-background);\n font-size: var(--_toolbar-font-size);\n padding: 4px 15px;\n cursor: pointer;\n width: max-content;\n min-width: 42px;\n min-height: 34px;\n border: none;\n padding-left: 10px;\n padding-right: 10px;\n padding-bottom: 8px;\n padding-top: 8px;\n margin-top: 0;\n margin-bottom: 4px;\n margin-left: 4px;\n margin-right: 4px;\n border-radius: 8px;\n box-shadow: none;\n border-bottom: 2px solid transparent;\n}\n.MLK__toolbar > div > div:not(.disabled):not(.selected):hover {\n background: var(--_toolbar-background-hover);\n}\n.MLK__toolbar > div > div.disabled svg,\n.MLK__toolbar > div > div.disabled:hover svg,\n.MLK__toolbar > div > div.disabled.is-pressed svg {\n color: var(--_toolbar-text);\n opacity: 0.2;\n}\n.MLK__toolbar > div > div:hover,\n.MLK__toolbar > div > div:active,\n.MLK__toolbar > div > div.is-pressed,\n.MLK__toolbar > div > div.is-active {\n color: var(--_toolbar-text-active);\n}\n.MLK__toolbar > div > div.selected {\n color: var(--_toolbar-text-active);\n background: var(--_toolbar-background-selected);\n border-radius: 0;\n border-bottom-color: var(--_toolbar-text-active);\n padding-bottom: 4px;\n margin-bottom: 8px;\n}\n/* This is the element that displays variants on press+hold */\n.MLK__variant-panel {\n visibility: hidden;\n position: fixed;\n display: flex;\n flex-flow: row wrap-reverse;\n justify-content: center;\n align-content: center;\n margin: 0;\n padding: 0;\n bottom: auto;\n top: 0;\n box-sizing: content-box;\n transform: none;\n z-index: calc(var(--_keyboard-zindex) + 1);\n touch-action: none;\n max-width: 350px;\n background: var(--_variant-panel-background);\n text-align: center;\n border-radius: 6px;\n padding: 6px;\n box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);\n transition: none;\n}\n.MLK__variant-panel.is-visible {\n visibility: visible;\n}\n.MLK__variant-panel.compact {\n --_variant-keycap-length: var(--variant-keycap-length, 50px);\n --_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);\n --_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 10px);\n}\n.MLK__variant-panel .item {\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n font-size: var(--_variant-keycap-font-size);\n height: var(--_variant-keycap-length);\n width: var(--_variant-keycap-length);\n margin: 0;\n box-sizing: border-box;\n border-radius: 5px;\n border: 1px solid transparent;\n background: transparent;\n pointer-events: all;\n cursor: pointer;\n color: var(--_variant-keycap-text);\n fill: currentColor;\n}\n@media (max-height: 412px) {\n .MLK__variant-panel .item {\n --_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);\n --_variant-keycap-length: var(--variant-keycap-length, 50px);\n }\n}\n.MLK__variant-panel .item .ML__latex {\n pointer-events: none;\n}\n.MLK__variant-panel .item.is-active {\n background: var(--_variant-keycap-background-active);\n color: var(--_variant-keycap-text-active);\n}\n.MLK__variant-panel .item.is-pressed {\n background: var(--_variant-keycap-background-pressed);\n color: var(--_variant-keycap-text-pressed);\n}\n.MLK__variant-panel .item.small {\n font-size: var(--_keycap-small-font-size);\n}\n.MLK__variant-panel .item.swatch-button {\n box-sizing: border-box;\n background: #fbfbfb;\n}\n.MLK__variant-panel .item.swatch-button > span {\n display: inline-block;\n margin: 6px;\n width: calc(100% - 12px);\n height: calc(100% - 12px);\n border-radius: 50%;\n}\n.MLK__variant-panel .item.swatch-button:hover {\n background: #f0f0f0;\n}\n.MLK__variant-panel .item.swatch-button:hover > span {\n border-radius: 2px;\n}\n.MLK__variant-panel .item.box > div,\n.MLK__variant-panel .item.box > span {\n border: 1px dashed rgba(0, 0, 0, 0.24);\n}\n.MLK__variant-panel .item .warning {\n min-height: 60px;\n min-width: 60px;\n background: #cd0030;\n color: white;\n padding: 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 5px;\n}\n.MLK__variant-panel .item .warning.is-pressed,\n.MLK__variant-panel .item .warning.is-active {\n background: red;\n}\n.MLK__variant-panel .item .warning svg.svg-glyph {\n width: 50px;\n height: 50px;\n}\n.MLK__variant-panel .item aside {\n font-size: var(--_variant-keycap-aside-font-size);\n line-height: 12px;\n opacity: 0.78;\n padding-top: 2px;\n}\n.MLK__keycap {\n position: relative;\n}\n.MLK__shift {\n display: block;\n position: absolute;\n right: 4px;\n top: 4px;\n font-size: var(--_keycap-shift-font-size);\n color: var(--_keycap-shift-color);\n}\n.hide-shift .MLK__shift {\n display: none;\n}\n@media (max-width: 414px) {\n .MLK__variant-panel {\n max-width: 350px;\n --_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);\n --_variant-keycap-length: var(--variant-keycap-length, 50px);\n }\n}\n/* @xs breakpoint: iPhone 5 */\n@container (max-width: 414px) {\n .MLK__rows {\n --_keycap-gap: max(var(--_keycap-gap, 2px), 2px);\n --_keycap-height: max(var(--_keycap-height), 42px);\n --_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);\n }\n .MLK__toolbar > div > div {\n font-size: 100%;\n margin-left: 2px;\n margin-right: 2px;\n }\n .MLK__rows .shift,\n .MLK__rows .action {\n font-size: 65%;\n }\n .MLK__rows .warning svg.svg-glyph {\n width: 14px;\n height: 14px;\n min-height: 14px;\n }\n}\n@container (max-width: 744px) {\n .MLK__rows {\n --_keycap-gap: max(var(--keycap-gap, 2px), 2px);\n --_keycap-height: max(var(--keycap-height, 52px), 52px);\n --_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);\n }\n .MLK__toolbar > div > div {\n padding-left: 0;\n padding-right: 0;\n }\n .MLK__tooltip::after {\n padding: 8px 16px;\n font-size: 16px;\n }\n .MLK__rows > .MLK__row > div.fnbutton {\n font-size: 16px;\n }\n .MLK__rows > .MLK__row > div.bigfnbutton {\n font-size: calc(var(--_keycap-extra-small-font-size) / 1.55);\n }\n .MLK__rows > .MLK__row > div.small {\n font-size: 13px;\n }\n .MLK__rows > .MLK__row > div > aside {\n display: none;\n }\n .MLK__shift {\n display: none;\n }\n}\n/* Medium breakpoint: larger phones */\n@container (max-width: 768px) {\n .MLK__rows {\n --_keycap-height: max(var(--keycap-height, 42px), 42px);\n }\n .MLK__rows > .MLK__row > div > small {\n font-size: 14px;\n }\n}\n@media (max-height: 768px) {\n .MLK__rows {\n --_keycap-height: max(var(--keycap-height, 42px), 42px);\n }\n .MLK__rows > .MLK__row > div > small {\n font-size: 14px;\n }\n}\n@container (max-width: 1444px) {\n .MLK__rows .if-wide {\n display: none;\n }\n}\n@media (prefers-color-scheme: dark) {\n .ML__keyboard {\n --_accent-color: var(--keyboard-accent-color, #0b5c9c);\n --_background: var(--keyboard-background, #151515);\n --_border: var(--keyboard-border, transparent);\n --_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);\n --_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);\n --keyboard-toolbar-background-hover: #303030;\n --_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);\n --_keycap-background: var(--keycap-background, #1f2022);\n --_keycap-background-hover: var(--keycap-background-hover, #2f3032);\n --_keycap-border: var(--_keycap-border, transparent);\n --_keycap-border-bottom: var(--_keycap-border-bottom, transparent);\n --_keycap-text: var(--keycap-text, #e3e4e8);\n --_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);\n --_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);\n --_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);\n --keycap-secondary-border: transparent;\n --keycap-secondary-border-bottom: transparent;\n --_keycap-secondary-border: var(--keycap-secondary-border, transparent);\n --_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);\n --_variant-panel-background: var(--variant-panel-background, #303030);\n --_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);\n }\n}\n/* Same as the media query, but with a class */\n[theme='dark'] .ML__keyboard {\n --_accent-color: var(--keyboard-accent-color, #0b5c9c);\n --_background: var(--keyboard-background, #151515);\n --_border: var(--keyboard-border, transparent);\n --_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);\n --_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);\n --keyboard-toolbar-background-hover: #303030;\n --_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);\n --_keycap-background: var(--keycap-background, #1f2022);\n --_keycap-background-hover: var(--keycap-background-hover, #2f3032);\n --_keycap-border: var(--_keycap-border, transparent);\n --_keycap-border-bottom: var(--_keycap-border-bottom, transparent);\n --_keycap-text: var(--keycap-text, #e3e4e8);\n --_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);\n --_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);\n --_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);\n --keycap-secondary-border: transparent;\n --keycap-secondary-border-bottom: transparent;\n --_keycap-secondary-border: var(--keycap-secondary-border, transparent);\n --_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);\n --_variant-panel-background: var(--variant-panel-background, #303030);\n --_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);\n}\n[theme='light'] .ML__keyboard {\n --_accent-color: var(--keyboard-accent-color, #0c75d8);\n --_background: var(--keyboard-background, #cacfd7);\n --_border: var(--keyboard-border, #ddd);\n --_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);\n --_toolbar-background: var(--keyboard-toolbar-background, transparent);\n --_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);\n --_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);\n --_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);\n --_keycap-background: var(--keycap-background, white);\n --_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);\n --_keycap-background-active: var(--keycap-background-active, var(--_accent-color));\n --_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));\n --_keycap-border: var(--_keycap-border, #e5e6e9);\n --_keycap-border-bottom: var(--_keycap-border-bottom, #8d8f92);\n --_keycap-text: var(--keycap-text, #000);\n --_keycap-text-active: var(--keycap-text-active, #fff);\n --_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));\n --_keycap-text-pressed: var(--keycap-text-pressed, #fff);\n --_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));\n --_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);\n --_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);\n --_keycap-secondary-text: var(--keycap-secondary-text, #060707);\n --_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);\n --_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);\n --_variant-panel-background: var(--variant-panel-background, #fff);\n --_variant-keycap-text: var(--variant-keycap-textvar, var(--_keycap-text));\n --_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));\n --_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));\n}\n";break;case"ui":t=":host {\n --primary-color: #5898ff;\n --primary-color-dimmed: #c0c0f0;\n --primary-color-dark: var(--blue-500);\n --primary-color-light: var(--blue-100);\n --primary-color-reverse: #ffffff;\n --secondary-color: #ff8a65;\n --secondary-color-dimmed: #f0d5c5;\n --secondary-color-dark: var(--orange-500);\n --secondary-color-light: var(--orange-100);\n --secondary-color-reverse: #ffffff;\n --link-color: #5898ff;\n --link-color-dimmed: #c5c5c5;\n --link-color-dark: #121212;\n --link-color-light: #e2e2e2;\n --link-color-reverse: #ffffff;\n --semantic-blue: var(--blue-700);\n --semantic-red: var(--red-400);\n --semantic-orange: var(--orange-400);\n --semantic-green: var(--green-700);\n --neutral-100: #f5f5f5;\n --neutral-200: #eeeeee;\n --neutral-300: #e0e0e0;\n --neutral-400: #bdbdbd;\n --neutral-500: #9e9e9e;\n --neutral-600: #757575;\n --neutral-700: #616161;\n --neutral-800: #424242;\n --neutral-900: #212121;\n --red-25: #fff8f7;\n --red-50: #fff1ef;\n --red-100: #ffeae6;\n --red-200: #ffcac1;\n --red-300: #ffa495;\n --red-400: #ff7865;\n --red-500: #f21c0d;\n --red-600: #e50018;\n --red-700: #d30024;\n --red-800: #bd002c;\n --red-900: #a1002f;\n --orange-25: #fffbf8;\n --orange-50: #fff7f1;\n --orange-100: #fff3ea;\n --orange-200: #ffe1c9;\n --orange-300: #ffcca2;\n --orange-400: #ffb677;\n --orange-500: #fe9310;\n --orange-600: #f58700;\n --orange-700: #ea7c00;\n --orange-800: #dc6d00;\n --orange-900: #ca5b00;\n --brown-25: #fff8ef;\n --brown-50: #fff1df;\n --brown-100: #ffe9ce;\n --brown-200: #ebcca6;\n --brown-300: #cdaf8a;\n --brown-400: #af936f;\n --brown-500: #856a47;\n --brown-600: #7f5e34;\n --brown-700: #78511f;\n --brown-800: #6e4200;\n --brown-900: #593200;\n --yellow-25: #fffdf9;\n --yellow-50: #fffcf2;\n --yellow-100: #fffaec;\n --yellow-200: #fff2ce;\n --yellow-300: #ffe8ab;\n --yellow-400: #ffdf85;\n --yellow-500: #ffcf33;\n --yellow-600: #f1c000;\n --yellow-700: #dfb200;\n --yellow-800: #c9a000;\n --yellow-900: #ad8a00;\n --lime-25: #f4ffee;\n --lime-50: #e9ffdd;\n --lime-100: #ddffca;\n --lime-200: #a8fb6f;\n --lime-300: #94e659;\n --lime-400: #80d142;\n --lime-500: #63b215;\n --lime-600: #45a000;\n --lime-700: #268e00;\n --lime-800: #007417;\n --lime-900: #005321;\n --green-25: #f5fff5;\n --green-50: #ebffea;\n --green-100: #e0ffdf;\n --green-200: #a7ffa7;\n --green-300: #5afa65;\n --green-400: #45e953;\n --green-500: #17cf36;\n --green-600: #00b944;\n --green-700: #00a34a;\n --green-800: #008749;\n --green-900: #00653e;\n --teal-25: #f3ffff;\n --teal-50: #e6fffe;\n --teal-100: #d9fffe;\n --teal-200: #8dfffe;\n --teal-300: #57f4f4;\n --teal-400: #43e5e5;\n --teal-500: #17cfcf;\n --teal-600: #00c2c0;\n --teal-700: #00b5b1;\n --teal-800: #00a49e;\n --teal-900: #009087;\n --cyan-25: #f7fcff;\n --cyan-50: #eff8ff;\n --cyan-100: #e7f5ff;\n --cyan-200: #c2e6ff;\n --cyan-300: #95d5ff;\n --cyan-400: #61c4ff;\n --cyan-500: #13a7ec;\n --cyan-600: #069eda;\n --cyan-700: #0095c9;\n --cyan-800: #0088b2;\n --cyan-900: #0a7897;\n --blue-25: #f7faff;\n --blue-50: #eef5ff;\n --blue-100: #e5f1ff;\n --blue-200: #bfdbff;\n --blue-300: #92c2ff;\n --blue-400: #63a8ff;\n --blue-500: #0d80f2;\n --blue-600: #0077db;\n --blue-700: #006dc4;\n --blue-800: #0060a7;\n --blue-900: #005086;\n --indigo-25: #f8f7ff;\n --indigo-50: #f1efff;\n --indigo-100: #eae7ff;\n --indigo-200: #ccc3ff;\n --indigo-300: #ac99ff;\n --indigo-400: #916aff;\n --indigo-500: #63c;\n --indigo-600: #5a21b2;\n --indigo-700: #4e0b99;\n --indigo-800: #3b0071;\n --indigo-900: #220040;\n --purple-25: #fbf7ff;\n --purple-50: #f8f0ff;\n --purple-100: #f4e8ff;\n --purple-200: #e4c4ff;\n --purple-300: #d49aff;\n --purple-400: #c36aff;\n --purple-500: #a219e6;\n --purple-600: #9000c4;\n --purple-700: #7c009f;\n --purple-800: #600073;\n --purple-900: #3d0043;\n --magenta-25: #fff8fb;\n --magenta-50: #fff2f6;\n --magenta-100: #ffebf2;\n --magenta-200: #ffcddf;\n --magenta-300: #ffa8cb;\n --magenta-400: #ff7fb7;\n --magenta-500: #eb4799;\n --magenta-600: #da3689;\n --magenta-700: #c82179;\n --magenta-800: #b00065;\n --magenta-900: #8a004c;\n}\n@media (prefers-color-scheme: dark) {\n :host {\n --semantic-blue: var(--blue-700);\n --semantic-red: var(--red-400);\n --semantic-orange: var(--orange-400);\n --semantic-green: var(--green-700);\n --semantic-bg-blue: var(--blue-25);\n --semantic-bg-red: var(--red-25);\n --semantic-bg-orange: var(--orange-25);\n --semantic-bg-green: var(--green-25);\n --neutral-100: #121212;\n --neutral-200: #424242;\n --neutral-300: #616161;\n --neutral-400: #757575;\n --neutral-500: #9e9e9e;\n --neutral-600: #bdbdbd;\n --neutral-700: #e0e0e0;\n --neutral-800: #eeeeee;\n --neutral-900: #f5f5f5;\n }\n}\n:host([theme='dark']) {\n --semantic-blue: var(--blue-700);\n --semantic-red: var(--red-400);\n --semantic-orange: var(--orange-400);\n --semantic-green: var(--green-700);\n --semantic-bg-blue: var(--blue-25);\n --semantic-bg-red: var(--red-25);\n --semantic-bg-orange: var(--orange-25);\n --semantic-bg-green: var(--green-25);\n --neutral-100: #121212;\n --neutral-200: #424242;\n --neutral-300: #616161;\n --neutral-400: #757575;\n --neutral-500: #9e9e9e;\n --neutral-600: #bdbdbd;\n --neutral-700: #e0e0e0;\n --neutral-800: #eeeeee;\n --neutral-900: #f5f5f5;\n}\n/* @media (prefers-color-scheme: dark) {\n :host {\n --label-color: #fff;\n --active-label-color: #000;\n --menu-bg: #525252;\n --active-bg: #5898ff;\n --active-bg-dimmed: #5c5c5c;\n }\n} */\n:host {\n --ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol';\n --ui-font-size: 14px;\n --ui-line-height: 1.5;\n --ui-letter-spacing: 0.007em;\n --mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',\n 'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;\n --ui-layer-1: var(--neutral-100);\n --ui-layer-2: var(--neutral-200);\n --ui-layer-3: var(--neutral-300);\n --ui-layer-4: var(--neutral-400);\n --ui-layer-5: var(--neutral-500);\n --ui-layer-6: var(--neutral-600);\n --ui-border-color: var(--primary-color);\n --ui-border-radius: 4px;\n --ui-text: var(--neutral-900);\n --ui-text-secondary: var(--neutral-700);\n --ui-text-placeholder: var(--neutral-500);\n --ui-text-muted: var(--neutral-300);\n /** A field is a UI element in which a user can type data, for\n * example an input or textarea element.\n */\n --ui-field-bg: var(--neutral-100);\n --ui-field-bg-hover: var(--neutral-100);\n --ui-field-bg-disabled: var(--neutral-300);\n --ui-field-bg-invalid: var(--red-100);\n --ui-field-bg-focus: var(--neutral-100);\n --ui-field-border: 0.5px solid var(--border-color);\n --ui-field-border-hover: 0.5px solid var(--border-color);\n --ui-field-border-disabled: 0.5px solid var(--border-color);\n --ui-field-border-invalid: 0.5px solid var(--border-color);\n --ui-field-border-focus: 0.5px solid var(--border-color);\n --ui-menu-bg: var(--neutral-100);\n --ui-menu-text: var(--neutral-900);\n --ui-menu-bg-hover: var(--neutral-200);\n --ui-menu-text-hover: var(--neutral-900);\n /** The `active` state is used for the state of menu items\n * when they are selected.\n */\n --ui-menu-bg-active: var(--primary-color);\n --ui-menu-text-active: var(--primary-color-reverse);\n /** The `active-muted` set is used for the state of\n * submenus when they are open.\n */\n --ui-menu-bg-active-muted: var(--neutral-300);\n --ui-menu-text-active-muted: var(--neutral-900);\n /* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),\n0 2px 6px 2px rgba(60, 64, 67, 0.149); */\n --ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);\n --ui-menu-divider: 0.5px solid #c7c7c7;\n /* var(--neutral-300); */\n --ui-menu-z-index: 10000;\n --page-bg: var(--neutral-100);\n --content-bg: var(--neutral-200);\n}\n@media (prefers-color-scheme: dark) {\n :host {\n --ui-menu-bg: var(--neutral-200);\n }\n}\n:host([theme='dark']) {\n --ui-menu-bg: var(--neutral-200);\n}\n/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font. \n Noto is a Linux/Android font.\n*/\n:lang(zh-cn),\n:lang(zh-sg),\n:lang(zh-my),\n:lang(zh) {\n --ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',\n 'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',\n 'Microsoft YaHei New', 'Microsoft Yahei', '微软雅黑', SimSun, '宋体',\n STXihei, '华文细黑', sans-serif;\n}\n:lang(zh-tw),\n:lang(zh-hk),\n:lang(zh-mo) {\n --ui-font-family: -apple-system, system-ui, 'Noto Sans',\n 'Microsoft JhengHei UI', 'Microsoft JhengHei', '微軟正黑體', '新細明體',\n 'PMingLiU', '細明體', 'MingLiU', sans-serif;\n}\n:lang(ja),\n:lang(ja-jp),\n:lang(ja-jp-mac) {\n --ui-font-family: -apple-system, system-ui, 'Hiragino Sans',\n 'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',\n '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'メイリオ', Meiryo,\n 'MS Pゴシック', 'MS PGothic', sans-serif;\n}\n:lang(ko),\n:lang(ko-kr),\n:lang(ko-kr-std) {\n --ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',\n 'Noto Sans', 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo',\n '애플 SD 산돌고딕 Neo', 'Apple SD 산돌고딕 Neo', '돋움', Dotum, sans-serif;\n}\n:lang(ko-kr-apple) {\n --ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',\n 'Noto Sans', 'Apple SD Gothic Neo', '애플 SD 산돌고딕 Neo',\n 'Apple SD 산돌고딕 Neo', '돋움', Dotum, sans-serif;\n}\n:lang(zh-cn),\n:lang(zh-sg),\n:lang(zh-my),\n:lang(zh),\n:lang(zh-tw),\n:lang(zh-hk),\n:lang(zh-mo),\n:lang(ja),\n:lang(ja-jp),\n:lang(ja-jp-mac),\n:lang(ko),\n:lang(ko-kr),\n:lang(ko-kr-std),\n:lang(ko-kr-apple) {\n --ui-font-size: 1rem;\n --ui-line-height: 1.7;\n --ui-letter-spacing: 0;\n}\n:dir(rtl) {\n --ui-line-height: auto;\n --ui-letter-spacing: 0;\n}\n";break;case"menu":t=".ui-menu *,\n.ui-menu ::before,\n.ui-menu ::after {\n box-sizing: border-box;\n}\n.ui-menu {\n display: none;\n color-scheme: light dark;\n -webkit-user-select: none;\n /* Important: Safari iOS doesn't respect user-select */\n user-select: none;\n cursor: default;\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0 0 0 0);\n --active-label-color: #fff;\n /* ui-menu-text-active */\n --label-color: #121212;\n /* ui-menu-text */\n --menu-bg: #e2e2e2;\n /* ui-menu-background */\n --active-bg: #5898ff;\n /* ui-menu-background-active */\n --active-bg-dimmed: #c5c5c5;\n /* ui-menu-background-active-muted */\n}\n/** Use the :where pseudo selector to make the specificity of the\n * selector 0, so that it can be overridden by the user.\n */\n:where(.ui-menu-container) {\n position: absolute;\n overflow: visible;\n width: auto;\n height: auto;\n z-index: 10000;\n border-radius: 8px;\n background: var(--ui-menu-bg);\n box-shadow: var(--ui-menu-shadow);\n list-style: none;\n padding: 6px 0 6px 0;\n margin: 0;\n user-select: none;\n cursor: default;\n color: var(--ui-menu-text);\n font-weight: normal;\n font-style: normal;\n text-shadow: none;\n text-transform: none;\n letter-spacing: 0;\n outline: none;\n opacity: 1;\n /* The [popover] elements have a 1px solid black border. Ugh. */\n border: none;\n width: fit-content;\n height: fit-content;\n}\n:where(.ui-menu-container > li) {\n display: flex;\n flex-flow: row;\n align-items: center;\n padding: 1px 7px 1px 7px;\n margin-top: 0;\n margin-left: 6px;\n margin-right: 6px;\n border-radius: 4px;\n white-space: nowrap;\n position: relative;\n outline: none;\n fill: currentColor;\n user-select: none;\n cursor: default;\n text-align: left;\n color: inherit;\n font-family: var(--ui-font-family);\n font-size: var(--ui-font-size);\n line-height: var(--ui-line-height);\n letter-spacing: var(--ui-letter-spacing);\n}\n:where(.ui-menu-container > li > .label) {\n appearance: none;\n background: none;\n outline: none;\n width: 100%;\n margin: 0;\n padding: 1px 2px 1px 1px;\n overflow: visible;\n border: 1px solid transparent;\n white-space: nowrap;\n text-align: start;\n}\n:where(.ui-menu-container > li:has(.heading)) {\n margin-top: 0.5em;\n}\n:where(.ui-menu-container > li > .label.heading) {\n font-weight: bold;\n opacity: 0.4;\n}\n:where(.ui-menu-container > li.indent > .label) {\n margin-inline-start: 12px;\n}\n:where(.ui-menu-container > li > .label.indent) {\n margin-inline-start: 12px;\n}\n:where(.ui-menu-container > li[role='divider']) {\n border-bottom: 1px solid var(--ui-menu-divider);\n border-radius: 0;\n padding: 0;\n margin-left: 15px;\n margin-right: 15px;\n padding-top: 5px;\n margin-bottom: 5px;\n width: calc(100% - 30px);\n /** 100% - (margin-left + margin-right) */\n}\n:where(.ui-menu-container > li[aria-disabled='true']) {\n opacity: 0.5;\n}\n:where(.ui-menu-container > li.active) {\n background: var(--ui-menu-bg-active);\n background: -apple-system-control-accent;\n color: var(--ui-menu-text-active);\n}\n:where(.ui-menu-container > li.active.is-submenu-open) {\n background: var(--ui-menu-bg-active-muted);\n color: inherit;\n}\n:where(.ui-menu-container > li[aria-haspopup='true'] > .label) {\n padding-inline-end: 0;\n}\n:where(.ui-menu-container > li[aria-haspopup='true'].active::after) {\n color: var(--ui-menu-text-active);\n}\n/** Keyboard shortcut */\n:where(.ui-menu-container > li > kbd) {\n font-family: var(--ui-font-family);\n margin-inline-start: 12px;\n opacity: 0.4;\n}\n:where(.ui-menu-container > li.active > kbd) {\n opacity: 0.85;\n}\n.ui-trailing-chevron {\n display: flex;\n margin-inline-start: 24px;\n width: 10px;\n height: 10px;\n margin-bottom: 4px;\n}\n.ui-trailing-chevron:dir(rtl) {\n transform: scaleX(-1);\n}\n.ui-checkmark {\n display: flex;\n margin-inline-end: -11px;\n margin-inline-start: -4px;\n margin-top: 2px;\n width: 16px;\n height: 16px;\n}\n.ui-mixedmark {\n display: flex;\n margin-inline-end: -11px;\n margin-inline-start: -4px;\n margin-top: 2px;\n width: 16px;\n height: 16px;\n}\n"}return t}function rx(e){return tx||(tx={}),tx[e]||(tx[e]=new CSSStyleSheet,tx[e].replaceSync(ix(e))),tx[e]}function ox(e){var t;if(!("adoptedStyleSheets"in document)){if(window.document.getElementById(`mathlive-style-${e}`))return;const t=window.document.createElement("style");return t.id=`mathlive-style-${e}`,t.append(window.document.createTextNode(ix(e))),void window.document.head.appendChild(t)}if(nx||(nx={}),0!==(null!=(t=nx[e])?t:0))nx[e]+=1;else{const t=rx(e);document.adoptedStyleSheets=[...document.adoptedStyleSheets,t],nx[e]=1}}function ax(e){if("adoptedStyleSheets"in document&&(null==nx?void 0:nx[e])&&(nx[e]-=1,nx[e]<=0)){const t=tx[e];document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==t))}}var sx=class e extends _w{constructor(e){var t;super(rp(ip({},e),{type:"accent",body:null!=(t=e.body)?t:void 0})),e.accentChar?this.accent=e.accentChar:this.svgAccent=null==e?void 0:e.svgAccent,this.skipBoundary=!0,this.captureSelection=!0}static fromJson(t){return new e(t)}toJson(){return rp(ip({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(e){var t;const n=new ww({parent:e,mathstyle:"cramp"},this.style),i=null!=(t=_w.createBox(n,this.body))?t:new nw("▢",{style:this.style});let r=0;!this.hasEmptyBranch("body")&&2===this.body.length&&this.body[1].isCharacterBox()&&(r=i.skew);let o,a=Math.min(i.height,Eb);if(this.svgAccent)o=aw(this.svgAccent),a=n.metrics.bigOpSpacing1-a;else if(this.accent){const e=new nw(this.accent,{fontFamily:"Main-Regular"});e.italic=0;const t=8407===this.accent?" ML__accent-vec":"";o=new nw(new nw(e),{classes:"ML__accent-body"+t})}o=new lw({shift:0,children:[{box:new nw(i)},-a,{box:o,marginLeft:i.left+2*r,classes:["ML__center"]}]});const s=new nw(o,{type:"lift"});return this.caret&&(s.caret=this.caret),this.bind(n,s.wrap(n)),this.attachSupsub(n,{base:s})}},lx={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},cx=Object.fromEntries(Object.entries(lx).map((([e,t])=>[t,e])));function ux(e){var t;return null!=(t={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"∣":8739,"∥":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[e])?t:e.codePointAt(0)}function hx(e,t,n,i,r){var o,a;const s=new ww({parent:i,mathstyle:"textstyle"},null==r?void 0:r.style),l=new nw(ux(e),{fontFamily:`Size${t}-Regular`,isSelected:r.isSelected,classes:(null!=(o=r.classes)?o:"")+` ML__delim-size${t}`,type:null!=(a=r.type)?a:"ignore"}).wrap(s);return n&&l.setTop((1-s.scalingFactor)*Pb),l}function dx(e,t,n,i,r){var o;let a,s,l,c;a=l=c=ux(e),s=null;let u="Size1-Regular";"\\vert"===e||"\\lvert"===e||"\\rvert"===e||"\\mvert"===e||"\\mid"===e?l=a=c=8739:"\\Vert"===e||"\\lVert"===e||"\\rVert"===e||"\\mVert"===e||"\\|"===e?l=a=c=8741:"\\uparrow"===e?l=c=9168:"\\Uparrow"===e?l=c=8214:"\\downarrow"===e?a=l=9168:"\\Downarrow"===e?a=l=8214:"\\updownarrow"===e?(a=8593,l=9168,c=8595):"\\Updownarrow"===e?(a=8657,l=8214,c=8659):"["===e||"\\lbrack"===e?(a=9121,l=9122,c=9123,u="Size4-Regular"):"]"===e||"\\rbrack"===e?(a=9124,l=9125,c=9126,u="Size4-Regular"):"\\lfloor"===e||"⌊"===e?(l=a=9122,c=9123,u="Size4-Regular"):"\\lceil"===e||"⌈"===e?(a=9121,l=c=9122,u="Size4-Regular"):"\\rfloor"===e||"⌋"===e?(l=a=9125,c=9126,u="Size4-Regular"):"\\rceil"===e||"⌉"===e?(a=9124,l=c=9125,u="Size4-Regular"):"("===e||"\\lparen"===e?(a=9115,l=9116,c=9117,u="Size4-Regular"):")"===e||"\\rparen"===e?(a=9118,l=9119,c=9120,u="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(a=9127,s=9128,c=9129,l=9130,u="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a=9131,s=9132,c=9133,l=9130,u="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(a=9127,c=9129,l=9130,u="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(a=9131,c=9133,l=9130,u="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(a=9127,c=9133,l=9130,u="Size4-Regular"):"\\rmoustache"===e||"⎱"===e?(a=9131,c=9129,l=9130,u="Size4-Regular"):"\\surd"===e?(a=57345,c=9143,l=57344,u="Size4-Regular"):"\\ulcorner"===e?(a=9484,l=c=32):"\\urcorner"===e?(a=9488,l=c=32):"\\llcorner"===e?(c=9492,l=a=32):"\\lrcorner"===e&&(a=9496,l=a=32);const h=Tb(a,u),d=h.height+h.depth,p=Tb(l,u),f=p.height+p.depth,g=Tb(c,u),m=g.height+g.depth;let v=0,y=1;if(null!==s){const e=Tb(s,u);v=e.height+e.depth,y=2}const b=d+m+v,w=Math.max(0,Math.ceil((t-b)/(y*f))),x=b+w*y*f;let S=Pb;n&&(S*=i.scalingFactor);const k=x/2-S,_=[];_.push({box:new nw(c,{fontFamily:u})}),_.push(-.008);const C=new nw(l,{fontFamily:u});if(null===s)for(let e=0;e","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),mx=[0,1.2,1.8,2.4,3];var vx=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],yx=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],bx=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];function wx(e,t,n,i,r,o){if(!t||0===t.length||"."===t)return Sx(r);let a;"<"===t||"\\lt"===t?t="\\langle":">"!==t&&"\\gt"!==t||(t="\\rangle"),a=gx.has(t)?vx:px.has(t)?bx:yx;const s=function(e,t,n,i){for(let o={"-4":0,"-3":1,0:2}[i.mathstyle.sizeDelta];ot)return n[o]}var r;return n[n.length-1]}(ux(t),n,a,r),l=new ww({parent:r,mathstyle:s.mathstyle},null==o?void 0:o.style);return"small"===s.type?function(e,t,n,i){var r;const o=new nw(ux(e),{fontFamily:"Main-Regular",isSelected:i.isSelected,classes:"ML__small-delim "+(null!=(r=i.classes)?r:"")}).wrap(t);return n&&o.setTop((1-t.scalingFactor)*Pb),o}(t,l,i,rp(ip({},o),{type:e})):"large"===s.type?hx(t,s.size,i,l,rp(ip({},o),{type:e})):(console.assert("stack"===s.type),dx(t,n,i,l,rp(ip({},o),{type:e})))}function xx(e,t,n,i,r,o){if("."===t)return Sx(r,null==o?void 0:o.classes);const a=Pb*r.scalingFactor,s=Math.max(n-a,i+a);return wx(e,t,Math.max(s/500*901,2*s-.5),!0,r,o)}function Sx(e,t){const n=new nw(null,{classes:" nulldelimiter "+(null!=t?t:""),type:"ignore"});return n.width=e.getRegisterAsEm("nulldelimiterspace"),n.wrap(new ww({parent:e,mathstyle:"textstyle"}))}var kx=class e extends _w{constructor(e){var t;super({type:"placeholder",command:"\\placeholder",mode:null!=(t=null==e?void 0:e.mode)?t:"math",style:null==e?void 0:e.style}),this.captureSelection=!0}static fromJson(t){return new e(t)}toJson(){return super.toJson()}render(e){let t;return this.value=e.placeholderSymbol,t="function"==typeof e.renderPlaceholder?e.renderPlaceholder(e):this.createBox(e),this.caret&&(t.classes+=" ML__placeholder-selected"),t}_serialize(e){return e.skipPlaceholders?"":"\\placeholder{}"}},_x=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],Cx=["cases","dcases","rcases"],Px=["align","align*","aligned","gather","gathered","split"],Ex=["array","subequations","eqnarray"];function Mx(e){return _x.includes(e)}var Lx=class e extends _w{constructor(e,t,n,i={}){var r;super({type:"array"}),this.environmentName=e,this.rowGaps=n,i.mathstyleName&&(this.mathstyleName=i.mathstyleName),i.columns&&(0===i.columns.length?this.colFormat=[{align:"l"}]:this.colFormat=i.columns),this.colFormat||(this.colFormat=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]),this.array=function(e,t,n){let i=0;for(const e of n)"align"in e&&(i+=1);let r=0;const o=[];for(const n of t){let t=0;for(r=Math.max(r,Math.min(n.length,i));t"first"===e.type))),r.push(i)),t+=1}o.push(r)}}o.length>0&&1===o[o.length-1].length&&1===o[o.length-1][0].length&&"first"===o[o.length-1][0][0].type&&o.pop();const a=[];for(const t of o){if(t.length!==r)for(let n=t.length;ne.map((e=>e.map((e=>e.toJson())))))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return void 0!==this.arraystretch&&(e.arraystretch=this.arraystretch),void 0!==this.arraycolsep&&(e.arraycolsep=this.arraycolsep),this.leftDelim&&(e.leftDelim=this.leftDelim),this.rightDelim&&(e.rightDelim=this.rightDelim),e}branch(e){var t;if(kw(e))return null!=(t=this.array[e[0]][e[1]])?t:void 0}createBranch(e){var t;return kw(e)?(this.isDirty=!0,null!=(t=this.branch(e))?t:[]):[]}get rowCount(){return this.array.length}get colCount(){return this.array[0].length}get maxColumns(){return this.colFormat.filter((e=>Boolean(e.align))).length}removeBranch(e){if(Sw(e))return super.removeBranch(e);const t=this.branch(e);return this.array[e[0]][e[1]]=void 0,t.forEach((e=>{e.parent=void 0,e.parentBranch=void 0})),console.assert("first"===t[0].type),t.shift(),this.isDirty=!0,t}get hasChildren(){return this.children.length>0}get children(){const e=[];for(const t of this.array)for(const n of t)if(n)for(const t of n)e.push(...t.children),e.push(t);return[...e,...super.children]}render(e){var t,n,i,r,o,a;const s=new ww({parent:e,mathstyle:this.mathstyleName},this.style),l=s.getRegisterAsEm("arrayrulewidth"),c=s.getRegisterAsEm("arraycolsep"),u=s.getRegisterAsEm("doublerulesep"),h=null!=(n=null!=(t=this.arraystretch)?t:s.getRegisterAsNumber("arraystretch"))?n:1;let d="number"==typeof this.arraycolsep?this.arraycolsep:c;if("small"===this.colSeparationType){d=new ww({parent:e,mathstyle:"scriptstyle"}).scalingFactor/e.scalingFactor*.2778}const p=1.2*h,f=.7*p,g=.3*p;let m=0;const v=[];let y=0;const b=this.array.length;for(let e=0;e0&&(c+=g,a=Math.max(a,c),c=0),e0&&x.push(new lw({individualShift:t}))}const S=[];let k=!1,_=!1,C=0,P=!this.leftDelim;const{colFormat:E}=this;for(const t of E){if("align"in t&&C>=x.length)break;if("align"in t)k?S.push(Tx(2*d)):(_||P)&&S.push(Tx(d)),S.push(new nw(x[C],{classes:"col-align-"+t.align})),C++,k=!0,_=!1,P=!1;else if("gap"in t){if("number"==typeof t.gap)S.push(Tx(t.gap));else{const n=Dx(e,v,w,t.gap);n&&S.push(n)}k=!1,_=!1,P=!1}else if("separator"in t){const e=new nw(null,{classes:"vertical-separator"});e.height=m,e.setStyle("height",m,"em"),e.setStyle("border-right",`${l}em ${t.separator} currentColor`),e.setStyle("vertical-align",-(m-w),"em");let n=0;_?n=u-l:k&&(n=d-l),e.left=n,S.push(e),k=!1,_=!0,P=!1}}k&&!this.rightDelim&&S.push(Tx(d));const M=new nw(S,{classes:"mtable"});if(!(this.leftDelim&&"."!==this.leftDelim||this.rightDelim&&"."!==this.rightDelim))return this.caret&&(M.caret=this.caret),this.bind(e,M);const L=M.height,A=M.depth,T=this.bind(e,new nw([this.bind(e,xx("open",null!=(o=this.leftDelim)?o:".",L,A,s,{isSelected:this.isSelected})),M,this.bind(e,xx("close",null!=(a=this.rightDelim)?a:".",L,A,s,{isSelected:this.isSelected}))],{type:"ord"}));return T?(T.setStyle("display","inline-block"),this.caret&&(T.caret=this.caret),this.bind(e,this.attachSupsub(e,{base:T}))):null}_serialize(e){var t;const n=[];if("lines"===this.environmentName?n.push("{\\displaylines"):n.push(`\\begin{${this.environmentName}}`),"array"===this.environmentName){if(n.push("{"),void 0!==this.colFormat)for(const e of this.colFormat)"align"in e&&"string"==typeof e.align?n.push(e.align):"separator"in e&&"solid"===e.separator?n.push("|"):"separator"in e&&"dashed"===e.separator&&n.push(":");n.push("}")}for(let i=0;i0&&n.push(" & "),n.push(_w.serialize(this.array[i][t],e));if(ie);const t=this.array.splice(e,1);for(const e of t)for(const t of e)if(t)for(const e of t)e.parent=void 0,e.parentBranch=void 0;for(let t=e;te);for(const t of this.array){const n=t.splice(e,1);for(const e of n)if(e)for(const t of e)t.parent=void 0,t.parentBranch=void 0}for(let t=0;t"first"!==e.type)));return e}};function Ax(e){const t=new _w({type:"first",mode:e.mode});t.parent=e;const n=new kx;return n.parent=e,[t,n]}function Tx(e){const t=new nw(null,{classes:"arraycolsep"});return t.width=e,t}function Dx(e,t,n,i){if(!i)return null;const r=[];for(const o of t){const t=_w.createBox(e,i,{type:"ignore"});t&&(t.depth=o.depth,t.height=o.height,r.push({box:t,shift:o.pos-n}))}return new lw({individualShift:r}).wrap(e)}var Nx=class e extends _w{constructor(e){super({mode:e.mode,command:e.command,style:e.style,body:e.body,type:"box"}),this.framecolor=e.framecolor,this.backgroundcolor=e.backgroundcolor,this.padding=e.padding,this.offset=e.offset,this.border=e.border}static fromJson(t){return new e(t)}toJson(){return rp(ip({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(e){var t,n,i,r;const o=_w.createBox(e,this.body,{type:"lift"});if(!o)return null;const a=e.toEm(null!=(t=this.offset)?t:{dimension:0});o.depth+=a,o.setStyle("display","inline-block"),o.setStyle("position","relative"),o.setStyle("height",Math.floor(100*o.height+o.depth)/100,"em"),o.setStyle("vertical-align",-Math.floor(100*o.height)/100,"em");const s=new ww({parent:e},this.style),l=s.toEm(null!=(n=this.padding)?n:{register:"fboxsep"}),c=new nw(null,{classes:"ML__box"});c.height=o.height+l,c.depth=o.depth+l,c.setStyle("box-sizing","border-box"),c.setStyle("position","absolute"),c.setStyle("top",.3-l,"em"),c.setStyle("left",0),c.setStyle("height",c.height+c.depth,"em"),c.setStyle("width","100%"),this.backgroundcolor&&c.setStyle("background-color",null!=(i=s.toColor(this.backgroundcolor))?i:"transparent"),this.framecolor&&c.setStyle("border",`${s.getRegisterAsEm("fboxrule",2)}em solid ${null!=(r=s.toColor(this.framecolor))?r:"black"}`),this.border&&c.setStyle("border",this.border);const u=new nw([c,o],{type:"lift"});return u.setStyle("display","inline-block"),u.setStyle("position","relative"),u.setStyle("line-height",0),u.height=o.height+l+(a>0?a:0),u.depth=o.depth+l+(a<0?-a:0),u.setStyle("padding-left",l,"em"),u.setStyle("padding-right",l,"em"),u.setStyle("height",Math.floor(100*(o.height+o.depth+2*l+Math.abs(a)))/100,"em"),u.setStyle("margin-top",-l,"em"),u.setStyle("top",Math.floor(100*(o.depth-o.height+2*l-a))/100,"em"),u.setStyle("vertical-align",Math.floor(100*(o.depth+2*l))/100,"em"),this.caret&&(u.caret=this.caret),this.attachSupsub(e,{base:u})}_serialize(e){return e.skipStyles?Kb([this.bodyToLatex(e),this.supsubToLatex(e)]):super._serialize(e)}},Ix=class e extends _w{constructor(e,t){var n;super({type:"composition",mode:null!=(n=null==t?void 0:t.mode)?n:"math",value:e})}static fromJson(t){return new e(t.value,t)}toJson(){return super.toJson()}get computedStyle(){return{}}render(e){const t=new nw(this.value,{classes:"ML__composition",type:"composition"});return this.bind(e,t),this.caret&&(t.caret=this.caret),t}_serialize(e){return""}},Bx=class e extends _w{constructor(e){super({type:"error",value:e,command:e,mode:"math"}),this.verbatimLatex=e}static fromJson(t){return new e(t.command)}toJson(){return super.toJson()}render(e){const t=this.createBox(e,{classes:"ML__error"});return this.caret&&(t.caret=this.caret),t}},Rx=class e extends _w{constructor(e,t,n){super({type:"group",mode:t,style:n}),this.body=e,this.boxType=e.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,e&&1===e.length&&","===e[0].command&&(this.captureSelection=!0)}static fromJson(t){return new e(t.body,t.mode,t.style)}render(e){const t=_w.createBox(e,this.body,{type:this.boxType});return t?(this.caret&&(t.caret=this.caret),this.bind(e,t)):null}_serialize(e){if(!(e.expandMacro||e.skipStyles||e.skipPlaceholders)&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const t=Jp(this.command,this.mode);return(null==t?void 0:t.serialize)?t.serialize(this,e):`{${this.bodyToLatex(e)}}`}},Ox=class e extends _w{constructor(e,t,n){super({type:"leftright",style:n.style,displayContainsHighlight:!0}),this.variant=e,this.body=t,this.leftDelim=n.leftDelim,this.rightDelim=n.rightDelim}static fromJson(t){var n;return new e(null!=(n=t.variant)?n:"",t.body,t)}toJson(){const e=super.toJson();return this.variant&&(e.variant=this.variant),this.leftDelim&&(e.leftDelim=this.leftDelim),this.rightDelim&&(e.rightDelim=this.rightDelim),e}_serialize(e){var t,n;const i=this.matchingRightDelim();return"left...right"===this.variant?Kb(["\\left",null!=(t=this.leftDelim)?t:".",this.bodyToLatex(e),"\\right",i]):"mleft...mright"===this.variant?Kb(["\\mleft",null!=(n=this.leftDelim)?n:".",this.bodyToLatex(e),"\\mright",i]):Kb([this.leftDelim&&"."!==this.leftDelim?this.leftDelim:"",this.bodyToLatex(e),i])}matchingRightDelim(){var e,t;if(this.rightDelim&&"?"!==this.rightDelim)return this.rightDelim;const n=null!=(e=this.leftDelim)?e:".";return null!=(t=lx[n])?t:n}render(e){var t,n;const i=new ww({parent:e},this.style);console.assert(void 0!==this.body);const r=new ww({parent:e,mathstyle:"textstyle"},this.style),o=null!=(t=_w.createBox(i,this.body,{type:"inner"}))?t:new nw(null,{type:"inner"}),a=o.height/r.scalingFactor,s=o.depth/r.scalingFactor,l=[];if(this.leftDelim&&l.push(this.bind(r,xx("open",this.leftDelim,a,s,r,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),o&&(Fx(o.children,this,i,a,s),l.push(o)),this.rightDelim){let e=this.containsCaret?" ML__contains-caret":"",t=this.rightDelim;"?"===t&&(i.smartFence?(t=this.matchingRightDelim(),e+=" ML__smart-fence__close"):t="."),l.push(this.bind(r,xx("close",t,a,s,r,{isSelected:this.isSelected,classes:e+" ML__close",mode:this.mode,style:this.style})))}let c="mleft...mright"===this.variant;const u=this.leftSibling;u&&(!c&&u.isFunction&&(c=!0),!c&&"subsup"===u.type&&(null==(n=u.leftSibling)?void 0:n.isFunction)&&(c=!0));const h=new nw(l,{type:c?"close":"inner",classes:"left-right"});return h.setStyle("margin-top",-o.depth+"em"),h.setStyle("height",`${o.height+o.depth}em`),this.caret&&(h.caret=this.caret),this.bind(i,h.wrap(i))}};function Fx(e,t,n,i,r){if(e)for(let o=0;o"first"!==e.type)).map((e=>e.toJson()))),this.correctness&&(e.correctness=this.correctness),e.locked=this.locked,e}render(e){const t=new ww({parent:e}),n=t.getRegisterAsEm("fboxsep"),i=n,r=n,o=_w.createBox(e,this.body);if(!o)return null;o.height||(o.height=t.metrics.xHeight),o.setStyle("vertical-align",-o.height,"em"),"correct"===this.correctness?o.setStyle("color","var(--correct-color, var(--ML__correct-color))"):"incorrect"===this.correctness&&o.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const a=new nw(o,{type:"ord"});a.setStyle("display","inline-block"),a.setStyle("height",o.height+o.depth,"em"),a.setStyle("vertical-align",-r,"em");let s="ML__prompt ";this.locked?s+=" ML__lockedPromptBox ":s+=" ML__editablePromptBox ","correct"===this.correctness?s+=" ML__correctPromptBox ":"incorrect"===this.correctness&&(s+=" ML__incorrectPromptBox "),this.containsCaret&&(s+=" ML__focusedPromptBox ");const l=new nw(null,{classes:s,attributes:{part:"prompt"}});l.height=a.height+r,l.depth=a.depth+r,l.width=a.width+2*i,l.setStyle("box-sizing","border-box"),l.setStyle("position","absolute"),l.setStyle("height",a.height+a.depth+2*r,"em"),0===i&&l.setStyle("width","100%"),0!==i&&(l.setStyle("width",`calc(100% + ${2*i}em)`),l.setStyle("top",n,"em"),l.setStyle("left",-i,"em")),this.body&&1!==this.body.length||(l.width=3*i,l.setStyle("width",`calc(100% + ${3*i}em)`),l.setStyle("left",-1.5*i,"em"));let c="";"incorrect"===this.correctness&&(c+=''),c&&(l.svgOverlay=c);const u=new nw([l,a],{classes:"ML__prompt-atom"});return u.setStyle("position","relative"),u.setStyle("display","inline-block"),u.setStyle("line-height",0),u.height=a.height+r+.2,u.depth=a.depth+r,u.left=i,u.right=i,u.setStyle("height",a.height+r,"em"),u.setStyle("top",a.depth-a.height,"em"),u.setStyle("vertical-align",a.depth+r,"em"),u.setStyle("margin-left",.5,"em"),u.setStyle("margin-right",.5,"em"),this.caret&&(u.caret=this.caret),this.bind(t,this.attachSupsub(e,{base:u}))}_serialize(e){var t;const n=null!=(t=this.bodyToLatex(e))?t:"";if(e.skipPlaceholders)return n;let i="\\placeholder";return this.placeholderId&&(i+=`[${this.placeholderId}]`),"correct"===this.correctness?i+="[correct]":"incorrect"===this.correctness&&(i+="[incorrect]"),this.locked&&(i+="[locked]"),Gb(i,n)}},Hx=class e extends _w{constructor(e){super({type:"subsup",style:null==e?void 0:e.style}),this.subsupPlacement="auto"}static fromJson(t){const n=new e(t);for(const e of xw)t[e]&&n.setChildren(t[e],e);return n}render(e){var t;const n=new ww({parent:e,isPhantom:!0}),i=this.leftSibling,r=null!=(t=i.render(n))?t:new nw(null),o=new nw(null);return o.height=r.height,o.depth=r.depth,this.attachSupsub(e,{base:o,isCharacterBox:i.isCharacterBox(),type:"ignore"})}_serialize(e){return this.supsubToLatex(e)}};function Zx(e){return!!e&&!/^(<$$>|<$>||<{>|<}>|#[0-9\?]|\\.+)$/.test(e)}var Kx=class{constructor(e,t,n){var i,r,o,a;this.errors=[],this.index=0,this.endCount=0,null!=n||(n={}),this.tokens=e,this.context=t instanceof ww&&!(null==n?void 0:n.parseMode)&&!n.mathstyle?t:new ww({from:t,mathstyle:n.mathstyle},n.style),this.args=null!=(i=n.args)?i:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:null!=(r=n.style)?r:{},parseMode:null!=(o=n.parseMode)?o:"math",mathstyle:null!=(a=n.mathstyle)?a:"displaystyle",tabular:!1}}beginContext(e){var t,n,i;const r=this.parsingContext,o={parent:r,mathlist:[],style:ip({},r.style),parseMode:null!=(t=null==e?void 0:e.mode)?t:r.parseMode,mathstyle:null!=(n=null==e?void 0:e.mathstyle)?n:r.mathstyle,tabular:null!=(i=null==e?void 0:e.tabular)&&i};this.parsingContext=o}endContext(){this.parsingContext=this.parsingContext.parent}onError(e){this.errors.push(ip({before:Ub(this.tokens.slice(this.index,this.index+10)),after:Ub(this.tokens.slice(Math.max(0,this.index-10),this.index))},e))}get mathlist(){return this.parsingContext.mathlist}set mathlist(e){this.parsingContext.mathlist=e}get parseMode(){return this.parsingContext.parseMode}set parseMode(e){this.parsingContext.parseMode=e}get tabularMode(){return this.parsingContext.tabular}get style(){let e=this.parsingContext;for(;e;){if(e.style)return ip({},e.style);e=e.parent}return{}}set style(e){this.parsingContext.style=e}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}next(){this.index+=1}get(){return this.endCount=0,this.index0){if(e=this.mathlist[this.mathlist.length-1],"subsup"===e.type)return e;if(void 0!==e.subsupPlacement)return e}return e=new Hx({style:this.style}),this.mathlist.push(e),e}hasPattern(e){return e.test(this.tokens[this.index])}hasInfixCommand(){var e;const{index:t}=this;if(t"););}skipUntilToken(e){let t=this.tokens[this.index];for(;t&&t!==e;)t=this.tokens[++this.index];t===e&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match(""););}matchKeyword(e){const t=this.index;let n=this.end(),i="";for(;!n;){const t=this.get();Zx(t)?(i+=t,n=this.end()||i.length>=e.length):n=!0}const r=e.toUpperCase()===i.toUpperCase();return r||(this.index=t),r}scanString(){let e="";for(;!this.end();){const t=this.peek();if("]"===t)return e;if(""===t)e+=" ";else if(t.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),e+=t.substring(1);else{if(!Zx(t))return e;e+=t}this.next()}return e}scanBalancedString(){let e="",t=this.end(),n=1;for(;!t;){const i=this.get();""===i?e+=" ":"<{>"===i?(e+="{",n+=1):"<}>"===i?(n-=1,n>0?e+="}":this.index-=1):e+="<$>"===i?"$":"<$$>"===i?"$$":i,t=0===n||this.end()}return e}scanLiteralGroup(){var e;if(!this.match("<{>"))return"";let t="",n=1;for(;n>0&&!this.end();){const i=this.get();"<}>"===i?(n-=1,n>0&&(t+="}")):"<{>"===i?(n+=1,t+="{"):(/\\[a-zA-Z]+$/.test(t)&&/^[a-zA-Z]/.test(i)&&(t+=" "),t+=null!=(e={"":" ","<$$>":"$$","<$>":"$"}[i])?e:i)}return t}scanNumber(e=!0){var t,n;let i=!1,r=this.peek();for(;""===r||"+"===r||"-"===r;)this.get(),"-"===r&&(i=!i),r=this.peek();e=Boolean(e);let o=10,a=/\d/;if(this.match("'"))o=8,a=/[0-7]/,e=!0;else if(this.match('"'))o=16,a=/[\dA-F]/,e=!0;else if(this.match("x"))o=16,a=/[\dA-Fa-f]/,e=!0;else if(this.match("`"))return r=this.get(),r?2===r.length&&r.startsWith("\\")?{number:(i?-1:1)*(null!=(t=r.codePointAt(1))?t:0),base:"alpha"}:{number:(i?-1:1)*(null!=(n=r.codePointAt(0))?n:0),base:"alpha"}:null;let s="";for(;this.hasPattern(a);)s+=this.get();if(!e&&(this.match(".")||this.match(",")))for(s+=".";this.hasPattern(a);)s+=this.get();const l=e?Number.parseInt(s,o):Number.parseFloat(s);return Number.isNaN(l)?null:{number:i?-l:l,base:16===o?"hexadecimal":8===o?"octal":"decimal"}}scanRegister(){var e;const t=this.index,n=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return n;let i=!1;if(null===n)for(;;){const e=this.peek();if("-"===e)i=!i;else if("+"!==e)break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const e=this.get();return e.startsWith("\\")?n?{register:e,global:!0,factor:(i?-1:1)*n.number}:i?{register:e,global:!0,factor:-1}:{register:e,global:!0}:(this.index=t,null)}let r=this.get();return(null==r?void 0:r.startsWith("\\"))?(r=r.substring(1),this.context.registers[r]?i&&null===n?{register:r}:{register:r,factor:(i?-1:1)*(null!=(e=null==n?void 0:n.number)?e:1)}:(this.index=t,null)):(this.index=t,null)}scanValue(){const e=this.scanRegister();if(e)return e;const t=this.index,n=this.scanGlueOrDimen();if(n&&("unit"in n||"glue"in n&&"unit"in n.glue))return n;this.index=t;const i=this.scanNumber();if(i)return i;if(this.end()||!Zx(this.peek()))return null;const r=this.scanString();return r.length>0?{string:r}:null}scanDimen(){const e=this.scanNumber(!1);if(null===e)return null;const t=e.number;let n;return this.skipWhitespace(),this.matchKeyword("true"),this.skipWhitespace(),this.matchKeyword("pt")?n="pt":this.matchKeyword("mm")?n="mm":this.matchKeyword("cm")?n="cm":this.matchKeyword("ex")?n="ex":this.matchKeyword("px")?n="px":this.matchKeyword("em")?n="em":this.matchKeyword("bp")?n="bp":this.matchKeyword("dd")?n="dd":this.matchKeyword("pc")?n="pc":this.matchKeyword("in")?n="in":this.matchKeyword("mu")&&(n="mu"),n?{dimension:t,unit:n}:{dimension:t}}scanGlueOrDimen(){const e=this.scanDimen();if(null===e)return null;if(this.skipWhitespace(),this.match("\\relax"))return e;const t={glue:e};if(this.matchKeyword("plus")){const e=this.scanDimen();if(!e)return t;t.grow=e}if(this.skipWhitespace(),this.match("\\relax"))return t;if(this.skipWhitespace(),this.matchKeyword("minus")){const e=this.scanDimen();if(!e)return t;t.shrink=e}return t.grow||t.shrink?t:e}scanColspec(){this.skipWhitespace();const e=[];for(;!this.end()&&"<}>"!==this.peek()&&"]"!==this.peek();){const t=this.get();"c"===t||"r"===t||"l"===t?e.push({align:t}):"|"===t?e.push({separator:"solid"}):":"===t?e.push({separator:"dashed"}):"@"===t&&(this.match("<{>")&&(this.beginContext({mode:"math"}),e.push({gap:this.scan((e=>"<}>"===e))}),this.endContext()),this.match("<}>")||this.onError({code:"unbalanced-braces"}))}return e}scanModeSet(){let e;if(this.match("\\(")&&(e="textstyle"),!e&&this.match("\\[")&&(e="displaystyle"),!e)return null;this.beginContext({mode:"math",mathstyle:e});const t=this.scan((t=>t===("displaystyle"===e?"\\]":"\\)")));return this.match("displaystyle"===e?"\\]":"\\)")||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),t}scanModeShift(){let e="";if(this.match("<$>")&&(e="<$>"),!e&&this.match("<$$>")&&(e="<$$>"),!e)return null;this.beginContext({mode:"math",mathstyle:"textstyle"});const t=this.scan((t=>t===e));return this.match(e)||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),t}scanEnvironment(){if(!this.match("\\begin"))return null;const e=this.scanArgument("string");if(!e)return null;const t=null!=(n=Op[e])?n:null;var n;if(!t)return this.onError({code:"unknown-environment",arg:e}),null;const i=[];if(t.params)for(const n of t.params)if(n.isOptional)i.push(this.scanOptionalArgument(n.type));else{const t=this.scanArgument(n.type);t||this.onError({code:"missing-argument",arg:e}),i.push(t)}this.beginContext({tabular:t.tabular});const r=[],o=[];let a=[],s=!1;do{if(this.end()&&(this.onError({code:"unbalanced-environment",arg:e}),s=!0),!s&&this.match("\\end")&&(this.scanArgument("string")!==e&&this.onError({code:"unbalanced-environment",arg:e}),s=!0),!s)if(this.matchColumnSeparator())a.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){a.push(this.mathlist),this.mathlist=[];let e=null;this.skipWhitespace(),this.match("[")&&(e=this.scanDimen(),this.skipWhitespace(),this.match("]")),o.push(null!=e?e:{dimension:0}),r.push(a),a=[]}else this.mathlist.push(...this.scan((e=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(e))))}while(!s);return a.push(this.mathlist),a.length>0&&r.push(a),this.endContext(),t.createAtom(e,r,o,i)}scanExpression(){const e=this.mathlist;if(this.mathlist=[],this.parseExpression()){const t=this.mathlist;return this.mathlist=e,t}return this.mathlist=e,null}scan(e){this.beginContext(),e||(e=e=>"<}>"===e);let t,n="",i=null,r=[],o=null;for(;!this.end()&&!e(this.peek());)this.hasInfixCommand()&&!n?(n=this.get(),i=Jp(n,"math"),i&&(r=this.scanArguments(i)[1]),o=this.mathlist,this.mathlist=[]):this.parseExpression();return n?(console.assert(Boolean(i)),r.unshift(this.mathlist),o&&r.unshift(o),t=[i.createAtom({command:n,args:r,style:this.style,mode:this.parseMode})]):t=this.mathlist,this.endContext(),t}scanGroup(){const e=this.index;if(!this.match("<{>"))return null;const t=this.scan((e=>"<}>"===e));this.match("<}>")||this.onError({code:"unbalanced-braces"});const n=new Rx(t,this.parseMode,this.style);return n.verbatimLatex=Ub(this.tokens.slice(e,this.index)),n}scanSmartFence(){if(this.skipWhitespace(),!this.match("("))return null;this.beginContext();let e=1;for(;!this.end()&&0!==e;)this.match("(")&&(e+=1),this.match(")")&&(e-=1),0!==e&&this.parseExpression();const t=new Ox("",this.mathlist,{leftDelim:"(",rightDelim:0===e?")":"?"});return this.endContext(),t}scanDelim(){this.skipWhitespace();const e=this.peek();if(!e)return this.onError({code:"unexpected-end-of-string"}),null;if(!Zx(e)&&!e.startsWith("\\"))return null;this.next();const t=Jp(e,"math");return t?"function"===t.definitionType&&t.ifMode&&!t.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:e}),null):"symbol"!==t.definitionType||"mopen"!==t.type&&"mclose"!==t.type?/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(e)?e:(this.onError({code:"unexpected-delimiter",arg:e}),null):e:(this.onError({code:"unknown-command",arg:e}),null)}scanLeftRight(){var e;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new Bx("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Bx("\\mright");let t="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;t="\\mright"}const n=this.scanDelim();if(!n)return this.onError({code:"unexpected-delimiter"}),new Bx("\\right"===t?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(t);)this.parseExpression();const i=this.mathlist;this.endContext();const r=null!=(e=this.scanDelim())?e:".";return new Ox("\\right"===t?"left...right":"mleft...mright",i,{leftDelim:n,rightDelim:r,style:this.style})}parseSupSub(){if("math"!==this.parseMode)return!1;let e=this.peek();if("^"!==e&&"_"!==e&&"'"!==e)return!1;const t=this.lastSubsupAtom();for(;"^"===e||"_"===e||"'"===e;)this.match("'")?this.match("'")?t.addChild(new _w({type:"mord",command:"\\doubleprime",mode:"math",value:"′′"}),"superscript"):t.addChild(new _w({type:"mord",command:"\\prime",mode:"math",value:"′"}),"superscript"):(this.match("^")||this.match("_"))&&t.addChildren(Ap(this.scanArgument("expression")),"_"===e?"subscript":"superscript"),e=this.peek();return!0}parseLimits(){if("math"!==this.parseMode)return!1;const e=this.match("\\limits"),t=!e&&this.match("\\nolimits"),n=!t&&!e&&this.match("\\displaylimits");if(!e&&!t&&!n)return!1;const i=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return null!==i&&(i.explicitSubsupPlacement=!0,e&&(i.subsupPlacement="over-under"),t&&(i.subsupPlacement="adjacent"),n&&(i.subsupPlacement="auto"),!0)}scanArguments(e){if(!(null==e?void 0:e.params))return[void 0,[]];let t;const n=[];let i=e.infix?2:0;for(;i["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(e)))):r.isOptional?n.push(this.scanOptionalArgument(r.type)):r.type.endsWith("*")?t=r.type.slice(0,-1):n.push(this.scanArgument(r.type)),i+=1}return[t,n]}scanSymbolOrLiteral(){const e=this.peek();if(!e)return null;let t;if(this.next(),Zx(e)){const t=Wb.createAtom(this.parseMode,e,ip({},this.style));return t?[t]:null}if(t=this.scanMacro(e),t)return[t];if(e.startsWith("\\")){const n=Jp(e,this.parseMode);if(!n)return this.onError({code:"unknown-command",arg:e}),[new Bx(e)];if("symbol"===n.definitionType){const i=ip({},this.style);n.variant&&(i.variant=n.variant),t=new _w({type:n.type,command:e,style:i,value:String.fromCodePoint(n.codepoint),mode:this.parseMode,verbatimLatex:e})}else{if(n.applyMode||n.applyStyle||n.infix)return this.onError({code:"invalid-command",arg:e}),[new Bx(e)];n.createAtom&&(t=n.createAtom({command:e,args:[],style:this.style,mode:this.parseMode}))}}return t?[t]:null}scanArgument(e){var t;this.skipFiller();const n=this.parseMode;if("auto"===e&&(e=n),!this.match("<{>")){if("string"===e)return this.scanString();if("value"===e)return this.scanValue();if("delim"===e)return null!=(t=this.scanDelim())?t:".";if("expression"===e)return this.scanExpression();if("math"===e){e!==n&&this.beginContext({mode:"math"});const t=this.scanSymbolOrLiteral();return e!==n&&this.endContext(),t}if("text"===e){e!==n&&this.beginContext({mode:"text"});const t=this.scanSymbolOrLiteral();return e!==n&&this.endContext(),t}return"balanced-string"===e||console.assert(!1),null}if("text"===e){this.beginContext({mode:"text"});do{this.mathlist.push(...this.scan())}while(!this.match("<}>")&&!this.end());const e=this.mathlist;return this.endContext(),{group:e}}if("math"===e){this.beginContext({mode:"math"});do{this.mathlist.push(...this.scan())}while(!this.match("<}>")&&!this.end());const e=this.mathlist;return this.endContext(),{group:e}}let i=null;if("expression"===e){this.beginContext({mode:"math"});do{this.mathlist.push(...this.scan())}while(!this.match("<}>")&&!this.end());const e=this.mathlist;return this.endContext(),{group:e}}return"string"===e?i=this.scanString():"balanced-string"===e?i=this.scanBalancedString():"colspec"===e?i=this.scanColspec():"value"===e&&(i=this.scanValue()),this.skipUntilToken("<}>"),i}scanOptionalArgument(e){if(e="auto"===e?this.parseMode:e,this.skipFiller(),!this.match("["))return null;let t=null;for(;!this.end()&&!this.match("]");)if("string"===e)t=this.scanString();else if("value"===e)t=this.scanValue();else if("colspec"===e)t=this.scanColspec();else if("bbox"===e){const e={},n=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const t of n){const n=t.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(n)e.padding={dimension:parseInt(n[1]),unit:n[2]};else{const n=t.match(/^\s*border\s*:\s*(.*)/);n?e.border=n[1]:e.backgroundcolor={string:t}}}t=e}else"math"===e&&(this.beginContext({mode:"math"}),t=this.mathlist.concat(this.scan((e=>"]"===e))),this.endContext());return t}scanSymbolOrCommand(e){var t,n,i;if("\\placeholder"===e){const e=this.scanOptionalArgument("string"),t=this.scanOptionalArgument("math"),n=_w.serialize(t,{defaultMode:"math"});let i,r=[];i||"correct"!==n?i||"incorrect"!==n?""!==n&&(r=t):i="incorrect":i="correct";const o="locked"===this.scanOptionalArgument("string"),a=this.scanArgument("auto");let s;return s=a&&Array.isArray(a)&&a.length>0?a:a&&"object"==typeof a&&"group"in a?a.group:r,e?[new $x(e,i,o,null!=s?s:r,{mode:this.parseMode,style:this.style})]:[new kx({mode:this.parseMode,style:this.style})]}if("\\renewcommand"===e||"\\newcommand"===e||"\\providecommand"===e||"\\def"===e){const t=this.index,n=this.scanLiteralGroup()||this.next();if(!n)return null;if(this.context.registers[n.substring(1)]){const i=this.scanArgument("string");null!==i&&(this.context.registers[n.substring(1)]=i);const r=Kb([e,Ub(this.tokens.slice(t,this.index))]);return[new _w({type:"text",value:"",verbatimLatex:r})]}}let r=this.scanMacro(e);if(r)return[r];const o=Jp(e,this.parseMode);if(!o)return"text"===this.parseMode?(/[a-zA-Z]/.test(null!=(t=this.peek())?t:"")&&(e+=" "),[...e].map((e=>new _w({type:"text",value:e,mode:"text",style:this.style})))):(this.onError({code:"unknown-command",arg:e}),[new Bx(e)]);const a=this.index;if("symbol"===o.definitionType){const t=ip({},this.style);o.variant&&(t.variant=o.variant),r=new _w({type:o.type,command:e,style:t,value:String.fromCodePoint(o.codepoint),mode:this.parseMode})}else{if(o.ifMode&&!o.ifMode.includes(this.parseMode))return[];const t=this.parseMode;let a;o.applyMode&&(this.parseMode=o.applyMode);let s=[];if(o.parse?s=o.parse(this):[a,s]=this.scanArguments(o),this.parseMode=t,o.applyMode&&!o.applyStyle&&!o.createAtom)return Ap(s[0]);if(o.infix)return this.onError({code:"too-many-infix-commands",arg:e}),null;if("function"==typeof o.createAtom)r=o.createAtom({command:e,args:s,style:this.style,mode:this.parseMode}),a&&(r.body=Ap(this.scanArgument(a)));else if("function"==typeof o.applyStyle){const t=ip(ip({},this.style),o.applyStyle(e,s,this.context)),n=this.parseMode;if(o.applyMode&&(this.parseMode=o.applyMode),a){const e=this.style;this.style=t;const i=this.scanArgument(a);return this.style=e,this.parseMode=n,Ap(i)}this.style=t}else r=new _w({type:"mord",command:null!=(n=o.command)?n:e,style:ip({},this.style),value:e,mode:null!=(i=o.applyMode)?i:this.parseMode})}if(!r)return null;if(r instanceof _w&&void 0===r.verbatimLatex&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(e)){const t=Kb([e,Ub(this.tokens.slice(a,this.index))]);t&&(r.verbatimLatex=t)}if(null===r.verbatimLatex&&(r.verbatimLatex=void 0),r.isFunction&&this.smartFence){const e=this.scanSmartFence();if(e)return[r,e]}return[r]}scanSymbolCommandOrLiteral(){const e=this.get();if(!e)return null;if(Zx(e)){const t=Wb.createAtom(this.parseMode,e,ip({},this.style));if(!t)return null;if(t.isFunction&&this.smartFence){const e=this.scanSmartFence();if(e)return[t,e]}return[t]}return e.startsWith("\\")?this.scanSymbolOrCommand(e):""===e?"text"===this.parseMode?[new Ew(" "," ",this.style)]:null:("<}>"===e?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:e}),null)}scanMacro(e){var t;const n=this.context.getMacro(e);if(!n)return null;const i=this.index,r=n.args,o={"?":null==(t=this.args)?void 0:t.call(this,"?")};for(let e=1;e<=r;e++){let t=this.scanLiteralGroup();if(!t){const e=this.index;this.scanExpression(),t=Ub(this.tokens.slice(e,this.index))}o[e]=t}return new zx(e,{expand:n.expand,captureSelection:n.captureSelection,args:i===this.index?null:Ub(this.tokens.slice(i,this.index)),style:this.parsingContext.style,body:Gx(n.def,{context:this.context,parseMode:this.parseMode,args:e=>o[e],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var e,t,n,i;let r=null!=(i=null!=(n=null!=(t=null!=(e=this.scanEnvironment())?e:this.scanModeShift())?t:this.scanModeSet())?n:this.scanGroup())?i:this.scanLeftRight();if(null===r){if(this.parseSupSub())return!0;if(this.parseLimits())return!0;r=this.scanSymbolCommandOrLiteral()}return!!r&&(Array.isArray(r)?this.mathlist.push(...r):this.mathlist.push(r),!0)}};function Gx(e,t){var n,i,r,o;const a=null!=(n=null==t?void 0:t.args)?n:void 0,s=new Kx(Zb(e,a),null==t?void 0:t.context,{args:a,mathstyle:null!=(i=null==t?void 0:t.mathstyle)?i:"displaystyle",parseMode:null!=(r=null==t?void 0:t.parseMode)?r:"math",style:null!=(o=null==t?void 0:t.style)?o:{}}),l=[];for(;!s.end();)l.push(...s.scan((()=>!1)));return l}function Ux(e,t){var n;const i=new Kx(Zb(e,null),null==t?void 0:t.context,{mathstyle:"displaystyle",parseMode:null!=(n=null==t?void 0:t.parseMode)?n:"math"});for(;!i.end();)i.scan();return i.errors}var Vx=class e extends _w{constructor(e,t){super({type:"chem"},{command:e,mode:"math"});const n=qx.go(Wx.go(t,"\\pu"===e?"pu":"ce"),!1);this.body=Gx(n),this._verbatimLatex=e+"{"+t+"}",this.arg=t,this.captureSelection=!0}static fromJson(t){return new e(t.command,t.arg)}set verbatimLatex(e){}get verbatimLatex(){return this._verbatimLatex}toJson(){return rp(ip({},super.toJson()),{arg:this.arg})}render(e){const t=_w.createBox(e,this.body,{type:"inner"});return this.caret&&(t.caret=this.caret),this.bind(e,t)}_serialize(e){return console.assert(void 0!==this.verbatimLatex),this.verbatimLatex}};qp(["ce","pu"],"{chemformula:balanced-string}",{createAtom:e=>{var t;return new Vx(e.command,null!=(t=e.args[0])?t:"")}});var Wx={go:function(e,t){if(!e)return[];void 0===t&&(t="ce");var n,i="0",r={};r.parenthesisLevel=0,e=(e=(e=e.replace(/\n/g," ")).replace(/[\u2212\u2013\u2014\u2010]/g,"-")).replace(/[\u2026]/g,"...");for(var o=10,a=[];;){n!==e?(o=10,n=e):o--;var s=Wx.stateMachines[t],l=s.transitions[i]||s.transitions["*"];e:for(var c=0;c0))return a;if(h.revisit||(e=u.remainder),!h.toContinue)break e}}if(o<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if("[object Array]"===Object.prototype.toString.call(t))for(var n=0;n":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return Wx.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return Wx.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return Wx.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return Wx.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return Wx.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return Wx.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return Wx.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return Wx.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return Wx.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return Wx.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return Wx.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return Wx.patterns.findObserveGroups(e,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;if(t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/))return{match_:t[0],remainder:e.substr(t[0].length)};var n=Wx.patterns.findObserveGroups(e,"","$","$","");return n&&(t=n.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/))?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,n,i,r,o,a,s,l,c){var u=function(e,t){if("string"==typeof t)return 0!==e.indexOf(t)?null:t;var n=e.match(t);return n?n[0]:null},h=u(e,t);if(null===h)return null;if(e=e.substr(h.length),null===(h=u(e,n)))return null;var d=function(e,t,n){for(var i=0;t":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var n;if((e.d||"").match(/^[0-9]+$/)){var i=e.d;e.d=void 0,n=this.output(e),e.b=i}else n=this.output(e);return Wx.actions["o="](e,t),n},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var n=[];return Wx.concatArray(n,this.output(e)),Wx.concatArray(n,Wx.actions.bond(e,t,"-")),n}e.d=t},"- after o/d":function(e,t,n){var i=Wx.patterns.match_("orbital",e.o||""),r=Wx.patterns.match_("one lowercase greek letter $",e.o||""),o=Wx.patterns.match_("one lowercase latin letter $",e.o||""),a=Wx.patterns.match_("$one lowercase latin letter$ $",e.o||""),s="-"===t&&(i&&""===i.remainder||r||o||a);!s||e.a||e.b||e.p||e.d||e.q||i||!o||(e.o="$"+e.o+"$");var l=[];return s?(Wx.concatArray(l,this.output(e)),l.push({type_:"hyphen"})):(i=Wx.patterns.match_("digits",e.d||""),n&&i&&""===i.remainder?(Wx.concatArray(l,Wx.actions["d="](e,t)),Wx.concatArray(l,this.output(e))):(Wx.concatArray(l,this.output(e)),Wx.concatArray(l,Wx.actions.bond(e,t,"-")))),l},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:Wx.go(t,"o")}},comma:function(e,t){var n=t.replace(/\s*$/,"");return n!==t&&0===e.parenthesisLevel?{type_:"comma enumeration L",p1:n}:{type_:"comma enumeration M",p1:n}},output:function(e,t,n){var i,r,o;e.r?(r="M"===e.rdt?Wx.go(e.rd,"tex-math"):"T"===e.rdt?[{type_:"text",p1:e.rd||""}]:Wx.go(e.rd),o="M"===e.rqt?Wx.go(e.rq,"tex-math"):"T"===e.rqt?[{type_:"text",p1:e.rq||""}]:Wx.go(e.rq),i={type_:"arrow",r:e.r,rd:r,rq:o}):(i=[],(e.a||e.b||e.p||e.o||e.q||e.d||n)&&(e.sb&&i.push({type_:"entitySkip"}),e.o||e.q||e.d||e.b||e.p||2===n?e.o||e.q||e.d||!e.b&&!e.p?e.o&&"kv"===e.dType&&Wx.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&"kv"===e.dType&&!e.q&&(e.dType=void 0):(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):(e.o=e.a,e.a=void 0),i.push({type_:"chemfive",a:Wx.go(e.a,"a"),b:Wx.go(e.b,"bd"),p:Wx.go(e.p,"pq"),o:Wx.go(e.o,"o"),q:Wx.go(e.q,"pq"),d:Wx.go(e.d,"oxidation"===e.dType?"oxidation":"bd"),dType:e.dType})));for(var a in e)"parenthesisLevel"!==a&&"beginsWithBond"!==a&&delete e[a];return i},"oxidation-output":function(e,t){var n=["{"];return Wx.concatArray(n,Wx.go(t,"oxidation")),n.push("}"),n},"frac-output":function(e,t){return{type_:"frac-ce",p1:Wx.go(t[0]),p2:Wx.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:Wx.go(t[0]),p2:Wx.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:Wx.go(t[0]),p2:Wx.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:Wx.go(t[0]),p2:Wx.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:Wx.go(t[1])}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,n){return{type_:"operator",kind_:n||t}}}},a:{transitions:Wx.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:Wx.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:Wx.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var n in e)delete e[n];return t}}}},pq:{transitions:Wx.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:Wx.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:Wx.go(t[1],"pq")}}}},bd:{transitions:Wx.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:Wx.go(t[1],"bd")}}}},oxidation:{transitions:Wx.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t||""}}}},"tex-math":{transitions:Wx.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var n in e)delete e[n];return t}}}},"tex-math tight":{transitions:Wx.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var n in e)delete e[n];return t}}}},"9,9":{transitions:Wx.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:Wx.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var n=[];return"+-"===t[0]||"+/-"===t[0]?n.push("\\pm "):t[0]&&n.push(t[0]),t[1]&&(Wx.concatArray(n,Wx.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?Wx.concatArray(n,Wx.go(t[2],"pu-9,9")):n.push(t[2])),(t[3]||t[4])&&("e"===t[3]||"*"===t[4]?n.push({type_:"cdot"}):n.push({type_:"times"}))),t[5]&&n.push("10^{"+t[5]+"}"),n},"number^":function(e,t){var n=[];return"+-"===t[0]||"+/-"===t[0]?n.push("\\pm "):t[0]&&n.push(t[0]),Wx.concatArray(n,Wx.go(t[1],"pu-9,9")),n.push("^{"+t[2]+"}"),n},operator:function(e,t,n){return{type_:"operator",kind_:n||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,n=Wx.patterns.match_("{(...)}",e.d||"");n&&""===n.remainder&&(e.d=n.match_);var i=Wx.patterns.match_("{(...)}",e.q||"");if(i&&""===i.remainder&&(e.q=i.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var r={d:Wx.go(e.d,"pu"),q:Wx.go(e.q,"pu")};"//"===e.o?t={type_:"pu-frac",p1:r.d,p2:r.q}:(t=r.d,r.d.length>1||r.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),Wx.concatArray(t,r.q))}else t=Wx.go(e.d,"pu-2");for(var o in e)delete e[o];return t}}},"pu-2":{transitions:Wx.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var n=Wx.patterns.match_("{(...)}",e.rm||"");t=n&&""===n.remainder?Wx.go(n.match_,"pu"):{type_:"rm",p1:e.rm}}for(var i in e)delete e[i];return t}}},"pu-9,9":{transitions:Wx.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var n=e.text_.length%3;0===n&&(n=3);for(var i=e.text_.length-3;i>0;i-=3)t.push(e.text_.substr(i,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,n)),t.reverse()}else t.push(e.text_);for(var r in e)delete e[r];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){for(var n=e.text_.length-3,i=0;i"===e.r||"<=>>"===e.r||"<<=>"===e.r||"<--\x3e"===e.r?(a="\\long"+a,o.rd&&(a="\\overset{"+o.rd+"}{"+a+"}"),o.rq&&(a="<--\x3e"===e.r?"\\underset{\\lower2mu{"+o.rq+"}}{"+a+"}":"\\underset{\\lower6mu{"+o.rq+"}}{"+a+"}"),a=" {}\\mathrel{"+a+"}{} "):(o.rq&&(a+="[{"+o.rq+"}]"),a=" {}\\mathrel{\\x"+(a+="{"+o.rd+"}")+"}{} "):a=" {}\\mathrel{\\long"+a+"}{} ",t=a;break;case"operator":t=qx._getOperator(e.kind_);break;case"space":t=" ";break;case"entitySkip":case"pu-space-1":t="~";break;case"pu-space-2":t="\\mkern3mu ";break;case"1000 separator":t="\\mkern2mu ";break;case"commaDecimal":t="{,}";break;case"comma enumeration L":t="{"+e.p1+"}\\mkern6mu ";break;case"comma enumeration M":t="{"+e.p1+"}\\mkern3mu ";break;case"comma enumeration S":t="{"+e.p1+"}\\mkern1mu ";break;case"hyphen":t="\\text{-}";break;case"addition compound":t="\\,{\\cdot}\\,";break;case"electron dot":t="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":t="{\\times}";break;case"prime":t="\\prime ";break;case"cdot":t="\\cdot ";break;case"tight cdot":t="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":t="\\times ";break;case"circa":t="{\\sim}";break;case"^":t="uparrow";break;case"v":t="downarrow";break;case"ellipsis":t="\\ldots ";break;case"/":t="/";break;case" / ":t="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return t},_getArrow:function(e){switch(e){case"->":case"→":case"⟶":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<--\x3e":return"leftrightarrows";case"<=>":case"⇌":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":case"1":return"{-}";case"=":case"2":return"{=}";case"#":case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":case"$\\approx$":return" {}\\approx{} ";case"v":case"(v)":return" \\downarrow{} ";case"^":case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};var Yx=class e extends _w{constructor(e){super(rp(ip({},e),{type:"delim"})),this.value=e.delim,this.size=e.size}static fromJson(t){return new e(t)}toJson(){return rp(ip({},super.toJson()),{delim:this.value,size:this.size})}render(e){return new nw(this.value,{type:"middle"})}_serialize(e){if(!(e.expandMacro||e.skipStyles||e.skipPlaceholders)&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const t=Jp(this.command,this.mode);return(null==t?void 0:t.serialize)?t.serialize(this,e):Gb(this.command,this.value)}},Xx=class e extends _w{constructor(e){super(rp(ip({},e),{type:"sizeddelim",value:e.delim})),this.delimType=e.delimType,this.size=e.size}static fromJson(t){return new e(t)}toJson(){return rp(ip({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(e){let t=function(e,t,n,i){return void 0===e||"."===e?Sx(n,i.classes):("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),px.has(e)||gx.has(e)?hx(e,t,!1,n,i):fx.has(e)?dx(e,mx[t],!1,n,i):(console.assert(!1,"Unknown delimiter '"+e+"'"),null))}(this.value,this.size,e,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return t?(t=this.bind(e,t),this.caret&&(t.caret=this.caret),t):null}_serialize(e){if(!(e.expandMacro||e.skipStyles||e.skipPlaceholders)&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const t=Jp(this.command,this.mode);return(null==t?void 0:t.serialize)?t.serialize(this,e):Gb(this.command,this.value)}},Qx=class e extends _w{constructor(e,t,n,i){var r,o;super({type:"enclose",command:e,style:i.style}),this.body=t,this.backgroundcolor=i.backgroundcolor,n.updiagonalarrow&&(n.updiagonalstrike=!1),n.box&&(n.left=!1,n.right=!1,n.bottom=!1,n.top=!1),this.notation=n,this.shadow=null!=(r=i.shadow)?r:"none",this.strokeWidth=null!=(o=i.strokeWidth)?o:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=i.strokeStyle,this.svgStrokeStyle=i.svgStrokeStyle,this.strokeColor=i.strokeColor,this.borderStyle=i.borderStyle,this.padding=i.padding,this.captureSelection=!1}static fromJson(t){return new e(t.command,t.body,t.notation,t)}toJson(){return rp(ip({},super.toJson()),{notation:this.notation,shadow:this.shadow,strokeWidth:this.strokeWidth,strokeStyle:this.strokeStyle,svgStrokeStyle:this.svgStrokeStyle,strokeColor:this.strokeColor,borderStyle:this.borderStyle,padding:this.padding})}_serialize(e){var t;if(!(e.expandMacro||e.skipStyles||e.skipPlaceholders)&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const n=Jp(this.command,this.mode);if(null==n?void 0:n.serialize)return n.serialize(this,e);let i=null!=(t=this.command)?t:"";if("\\enclose"===this.command){i+="{"+Object.keys(this.notation).join(" ")+"}";let e="",t="";this.backgroundcolor&&"transparent"!==this.backgroundcolor&&(e+=t+'mathbackground="'+this.backgroundcolor+'"',t=","),this.shadow&&"auto"!==this.shadow&&(e+=t+'shadow="'+this.shadow+'"',t=","),this.strokeWidth||"solid"!==this.strokeStyle?(e+=t+this.borderStyle,t=","):this.strokeColor&&"currentColor"!==this.strokeColor&&(e+=t+'mathcolor="'+this.strokeColor+'"',t=","),e&&(i+=`[${e}]`)}return Gb(i,this.bodyToLatex(e))}render(e){const t=new ww({parent:e},this.style),n=_w.createBox(t,this.body);if(!n)return null;const i=function(e){if(!e)return"1px";const t=e.match(/([0-9][a-zA-Z\%]+)/);return null===t?"1px":t[1]}(this.borderStyle),r=t.toEm(this.padding&&"auto"!==this.padding?{string:this.padding}:{register:"fboxsep"});n.setStyle("position","relative"),n.setStyle("display","inline-block"),n.setStyle("top",r,"em"),n.setStyle("height",n.height+n.depth,"em"),n.setStyle("width",n.width,"em");const o=new nw(null,{classes:"ML__notation"});let a=n.height+n.depth+2*r;const s=n.width+2*r;let l="";if(this.notation.horizontalstrike&&(l+=this.line(3,50,97,50)),this.notation.verticalstrike&&(l+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(l+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(l+=this.line(3,3,97,97)),this.notation.updiagonalarrow){l+=this.line(r.toString(),(r+n.depth+n.height).toString(),(r+n.width).toString(),r.toString());const e=1,t=.03*Math.sqrt(s*s+a*a)*e,i=n.width*t,o=(n.depth+n.height)*t,c=r+n.width;let u=r;u+o-.4*i<0&&(u=.4*i-o),l+='`}};function Jx(e){return"number"==typeof e?Math.floor(100*e)/100+"%":e}function eS(e){const t=e.isDisplayStyle?Eb:e.metrics.defaultRuleThickness;return e.metrics.defaultRuleThickness+e.scalingFactor*t/4}var tS=class e extends _w{constructor(e,t,n){var i,r;super(rp(ip({},n),{type:"genfrac",displayContainsHighlight:!0})),this.above=e,this.below=t,this.hasBarLine=null==(i=null==n?void 0:n.hasBarLine)||i,this.continuousFraction=null!=(r=null==n?void 0:n.continuousFraction)&&r,this.numerPrefix=null==n?void 0:n.numerPrefix,this.denomPrefix=null==n?void 0:n.denomPrefix,this.mathstyleName=null==n?void 0:n.mathstyleName,this.leftDelim=null==n?void 0:n.leftDelim,this.rightDelim=null==n?void 0:n.rightDelim,this.fractionNavigationOrder=null==n?void 0:n.fractionNavigationOrder}static fromJson(t){return new e(t.above,t.below,t)}toJson(){const e={};return this.continuousFraction&&(e.continuousFraction=!0),this.numerPrefix&&(e.numerPrefix=this.numerPrefix),this.denomPrefix&&(e.denomPrefix=this.denomPrefix),this.leftDelim&&(e.leftDelim=this.leftDelim),this.rightDelim&&(e.rightDelim=this.rightDelim),this.hasBarLine||(e.hasBarLine=!1),this.mathstyleName&&(e.mathstyleName=this.mathstyleName),this.fractionNavigationOrder&&(e.fractionNavigationOrder=this.fractionNavigationOrder),ip(ip({},super.toJson()),e)}get children(){if(this._children)return this._children;const e=[];if("denominator-numerator"===this.fractionNavigationOrder){for(const t of this.below)e.push(...t.children),e.push(t);for(const t of this.above)e.push(...t.children),e.push(t)}else{for(const t of this.above)e.push(...t.children),e.push(t);for(const t of this.below)e.push(...t.children),e.push(t)}return this._children=e,e}render(e){var t,n;const i=new ww({parent:e,mathstyle:this.mathstyleName},this.style),r=i.metrics,o=new ww({parent:i,mathstyle:this.continuousFraction?"":"numerator"},this.style),a=this.numerPrefix?new nw([new nw(this.numerPrefix),_w.createBox(o,this.above)],{isTight:o.isTight,type:"ignore"}):null!=(t=_w.createBox(o,this.above,{type:"ignore"}))?t:new nw(null,{type:"ignore"}),s=new ww({parent:i,mathstyle:this.continuousFraction?"":"denominator"},this.style),l=this.denomPrefix?new nw([new nw(this.denomPrefix),_w.createBox(s,this.below,{type:"ignore"})]):null!=(n=_w.createBox(s,this.below,{type:"ignore"}))?n:new nw(null,{type:"ignore"}),c=this.hasBarLine?r.defaultRuleThickness:0;let u,h,d=0;i.isDisplayStyle?(u=o.metrics.num1,d=c>0?3*c:7*c,h=s.metrics.denom1):(c>0?(u=o.metrics.num2,d=c):(u=o.metrics.num3,d=3*r.defaultRuleThickness),h=s.metrics.denom2);const p=[];this.isSelected&&p.push("ML__selected");const f=a.depth,g=l.height;let m;if(c<=0){const e=u-f-(g-h);enew nS(e))),this.skipBoundary=!1}static fromJson(t){return new e("")}toJson(){return super.toJson()}render(e){const t=_w.createBox(e,this.body);return t?(this.caret&&(t.caret=this.caret),this.bind(e,t)):null}_serialize(e){var t,n;return null!=(n=null==(t=this.body)?void 0:t.map((e=>e.value)).join(""))?n:""}},rS=class e extends _w{constructor(e,t){super(rp(ip({},t),{type:"extensible-symbol",isFunction:null==t?void 0:t.isFunction})),this.value=e,this.variant=null==t?void 0:t.variant,this.subsupPlacement=null==t?void 0:t.limits}static fromJson(t){return new e(t.symbol,t)}toJson(){const e=super.toJson();return this.variant&&(e.variant=this.variant),this.subsupPlacement&&(e.limits=this.subsupPlacement),this.isExtensibleSymbol&&(e.isExtensibleSymbol=!0),this.value&&(e.symbol=this.value),e}render(e){var t;const n=e.isDisplayStyle&&"\\smallint"!==this.value,i=new nw(this.value,{fontFamily:n?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(n?"large-op":"small-op"),type:"op",maxFontSize:e.scalingFactor,isSelected:this.isSelected});if(!i)return null;i.right=i.italic;const r=(i.height-i.depth)/2-Pb*e.scalingFactor,o=i.italic;i.setTop(r);let a=i;if(this.superscript||this.subscript){const n=null!=(t=this.subsupPlacement)?t:"auto";a="over-under"===n||"auto"===n&&e.isDisplayStyle?this.attachLimits(e,{base:i,baseShift:r,slant:o}):this.attachSupsub(e,{base:i})}return new nw(this.bind(e,a),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(e)}_serialize(e){if(!(e.expandMacro||e.skipStyles||e.skipPlaceholders)&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const t=Jp(this.command,this.mode);if(null==t?void 0:t.serialize)return t.serialize(this,e);const n=[];return n.push(this.command),this.explicitSubsupPlacement&&("over-under"===this.subsupPlacement&&n.push("\\limits"),"adjacent"===this.subsupPlacement&&n.push("\\nolimits"),"auto"===this.subsupPlacement&&n.push("\\displaylimits")),n.push(this.supsubToLatex(e)),Kb(n)}},oS=class e extends _w{constructor(e){const t=e.body;super(rp(ip({},e),{type:"overlap",body:"string"==typeof t?[new _w({value:t})]:t,style:null==e?void 0:e.style})),this.skipBoundary=!0,this.align=null==e?void 0:e.align,this.boxType=null==e?void 0:e.boxType}static fromJson(t){return new e(t)}toJson(){const e={};return this.align&&(e.align=this.align),this.boxType&&(e.boxType=this.boxType),ip(ip({},super.toJson()),e)}render(e){const t=_w.createBox(e,this.body,{classes:"inner"});return t?(this.caret&&(t.caret=this.caret),this.bind(e,new nw([t,new nw(null,{classes:"fix"})],{classes:"right"===this.align?"rlap":"llap",type:this.boxType}))):null}},aS=class e extends _w{constructor(e){var t,n,i,r;super({type:"overunder",command:e.command,style:e.style,mode:e.mode,body:e.body,skipBoundary:null==(t=e.skipBoundary)||t}),this.subsupPlacement=e.supsubPlacement,this.svgAbove=e.svgAbove,this.svgBelow=e.svgBelow,this.svgBody=e.svgBody,this.above=e.above,this.below=e.below,this.boxType=null!=(n=e.boxType)?n:"ord",this.paddedBody=null!=(i=e.paddedBody)&&i,this.paddedLabels=null!=(r=e.paddedLabels)&&r}static fromJson(t){return new e(t)}toJson(){const e=super.toJson();return this.skipBoundary||(e.skipBoundary=!1),this.subsupPlacement&&(e.subsupPlacement=this.subsupPlacement),this.svgAbove&&(e.svgAbove=this.svgAbove),this.svgBelow&&(e.svgBelow=this.svgBelow),this.svgBody&&(e.svgBody=this.svgBody),"ord"!==this.boxType&&(e.boxType=this.boxType),this.paddedBody&&(e.paddedBody=!0),this.paddedLabels&&(e.paddedLabels=!0),e}render(e){let t=this.svgBody?aw(this.svgBody):_w.createBox(e,this.body,{type:"ignore"});const n=new ww({parent:e,mathstyle:"scriptstyle"},this.style);let i=null;this.svgAbove?i=aw(this.svgAbove):this.above&&(i=_w.createBox(n,this.above,{type:"ignore"}));let r=null;this.svgBelow?r=aw(this.svgBelow):this.below&&(r=_w.createBox(n,this.below,{type:"ignore"})),this.paddedBody&&(t=new nw([Sx(e,"open"),t,Sx(e,"close")],{type:"ignore"}));let o=function(e,t){if(!t.base)return null;if(!t.above&&!t.below){const e=new nw(t.base,{type:t.type});return e.setStyle("position","relative"),e}let n=0;t.above&&(n=e.metrics.bigOpSpacing5);let i=null;const r=t.base,o=0,a=["ML__center"];t.paddedAboveBelow&&a.push("ML__label_padding");if(t.below&&t.above){const s=e.metrics.bigOpSpacing5+t.below.height+t.below.depth+r.depth+o;i=new lw({bottom:s,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:a},{box:r,classes:["ML__center"]},n,{box:t.above,classes:a},e.metrics.bigOpSpacing5]})}else t.below?i=new lw({top:r.height-o,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:a},{box:r,classes:["ML__center"]}]}):t.above&&(i=new lw({bottom:r.depth+o,children:[{box:r,classes:["ML__center"]},n,{box:t.above,classes:a},e.metrics.bigOpSpacing5]}));return new nw(i,{type:t.type})}(e,{base:t,above:i,below:r,type:"bin"===this.boxType||"rel"===this.boxType?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return o?(o="over-under"===this.subsupPlacement?this.attachLimits(e,{base:o,type:o.type}):this.attachSupsub(e,{base:o}),this.caret&&(o.caret=this.caret),this.bind(e,o)):null}};var sS=class e extends _w{constructor(e){var t,n,i,r;super(rp(ip({},e),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=null!=(t=e.isInvisible)&&t,this.smashDepth=null!=(n=e.smashDepth)&&n,this.smashHeight=null!=(i=e.smashHeight)&&i,this.smashWidth=null!=(r=e.smashWidth)&&r}static fromJson(t){return new e(t)}toJson(){const e={};return this.isInvisible&&(e.isInvisible=!0),this.smashDepth&&(e.smashDepth=!0),this.smashHeight&&(e.smashHeight=!0),this.smashWidth&&(e.smashWidth=!0),ip(ip({},super.toJson()),e)}render(e){const t=new ww({parent:e,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),_w.createBox(t,this.body,{classes:"inner"});const n=_w.createBox(this.isInvisible?t:e,this.body);if(!n)return null;if(this.smashWidth){const t=new nw(null,{classes:"fix"});return new nw([n,t],{classes:"rlap"}).wrap(e)}if(!this.smashHeight&&!this.smashDepth)return n;if(this.smashHeight&&(n.height=0),this.smashDepth&&(n.depth=0),n.children)for(const e of n.children)this.smashHeight&&(e.height=0),this.smashDepth&&(e.depth=0);return new lw({firstBaseline:[{box:n}]},{type:n.type}).wrap(e)}},lS=class e extends _w{constructor(e){var t;super(ip({type:"spacing"},e)),this.width=null==e?void 0:e.width,this._braced=null!=(t=null==e?void 0:e.braced)&&t}static fromJson(t){return new e(t)}toJson(){const e=super.toJson();return void 0!==this.width&&(e.width=this.width),this._braced&&(e.braced=!0),e}render(e){var t;if("space"===this.command)return new nw("math"===this.mode?null:" ");let n;if(void 0!==this.width)n=new nw(null,{classes:"mspace"}),n.left=e.toEm(this.width);else{const e=null!=(t={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])?t:"mediumspace";n=new nw(null,{classes:e})}return n=this.bind(e,n),this.caret&&(n.caret=this.caret),n}_serialize(e){var t;if(!e.expandMacro&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const n=Jp(this.command,this.mode);if(null==n?void 0:n.serialize)return n.serialize(this,e);const i=null!=(t=this.command)?t:"";return void 0===this.width?i:this._braced&&!("register"in this.width)?`${i}{${gw(this.width)}}`:`${i}${gw(this.width)}`}},cS=class e extends _w{constructor(e){var t;super(rp(ip({},e),{type:"surd",mode:null!=(t=e.mode)?t:"math",style:e.style,displayContainsHighlight:!0,body:e.body})),this.above=e.index}static fromJson(t){return new e(rp(ip({},t),{index:t.above}))}_serialize(e){if(!(e.expandMacro||e.skipStyles||e.skipPlaceholders)&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const t=Jp(this.command,this.mode);if(null==t?void 0:t.serialize)return t.serialize(this,e);const n=this.command,i=this.bodyToLatex(e);return this.above&&!this.hasEmptyBranch("above")?Gb(`${n}[${this.aboveToLatex(e)}]`,i):/^[0-9]$/.test(i)?`${n}${i}`:Gb(n,i)}get children(){if(this._children)return this._children;const e=[];if(this.above)for(const t of this.above)e.push(...t.children),e.push(t);if(this.body)for(const t of this.body)e.push(...t.children),e.push(t);return this._children=e,e}render(e){var t;const n=new ww({parent:e,mathstyle:"cramp"},this.style),i=null!=(t=_w.createBox(n,this.body,{type:"inner"}))?t:new nw(null),r=n.scalingFactor,o=n.metrics.defaultRuleThickness/r,a=e.isDisplayStyle?Eb:o,s=new nw(null,{classes:"ML__sqrt-line",style:this.style});s.height=o,s.softWidth=i.width;let l=r*(o+a/4);const c=Math.max(2*r*a,i.height+i.depth)+l+o,u=new ww({parent:e},this.style),h=this.bind(u,new nw(wx("inner","\\surd",c,!1,u,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!h)return null;const d=h.height+h.depth-o;d>i.height+i.depth+l&&(l=(l+d-(i.height+i.depth))/2),h.setTop(h.height-i.height-l);const p=this.bind(e,new lw({firstBaseline:[{box:new nw(i)},l-2*o,{box:s},o]})),f=_w.createBox(new ww({parent:e,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!f){const t=new nw([h,p],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return t.setStyle("display","inline-block"),t.setStyle("height",t.height+t.depth,"em"),this.caret&&(t.caret=this.caret),this.bind(e,t)}const g=new lw({shift:-.6*(Math.max(h.height,p.height)-Math.max(h.depth,p.depth)),children:[{box:f}]}),m=new nw([new nw(g,{classes:"ML__sqrt-index",type:"ignore"}),h,p],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return m.height=h.height,m.depth=h.depth,this.caret&&(m.caret=this.caret),this.bind(e,m)}},uS=class extends nw{constructor(e){super(null,{type:"skip"}),this._width=e}toMarkup(){return``}};function hS(e,t){if(!e.parent)return;const n=e.parent.children,i=n.indexOf(e);let r=i-1;for(;r>=0&&"ignore"===n[r].type;)r-=1;r<0&&e.parent.parent&&"lift"===e.parent.type?hS(e.parent,t):i>0&&"skip"===n[i-1].type?n[i-1].width+=t:n.splice(i,0,new uS(t))}var dS={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},pS={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function fS(e,t){if(!e.children)return e;const n=e.children;!function(e){gS(e,((e,t)=>{"bin"!==t.type||e&&!/^(middle|bin|op|rel|open|punct)$/.test(e.type)||(t.type="ord"),"bin"===(null==e?void 0:e.type)&&/^(rel|close|punct)$/.test(t.type)&&(e.type="ord"),"ignore"!==t.type&&(e=t)}))}(n);const i=t.getRegisterAsEm("thinmuskip"),r=t.getRegisterAsEm("medmuskip"),o=t.getRegisterAsEm("thickmuskip");return gS(n,((e,t)=>{var n,a,s;if(!e)return;const l=e.type,c=t.isTight?null!=(n=pS[l])?n:null:null!=(a=dS[l])?a:null,u=null!=(s=null==c?void 0:c[t.type])?s:null;3===u&&hS(t,i),4===u&&hS(t,r),5===u&&hS(t,o)})),e}function gS(e,t,n){if(!e)return n;e=[...e];for(const i of e)"lift"===i.type?n=gS(i.children,t,n):"ignore"===i.type?gS(i.children,t):(t(n,i),gS(i.children,t),n=i);return n}var mS=class e extends _w{constructor(e){super({type:"tooltip",command:e.command,mode:e.mode,style:e.style,body:e.body,displayContainsHighlight:!0}),this.tooltip=new _w({type:"root",mode:e.content,body:e.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(t){return new e(rp(ip({},t),{tooltip:yS(t.tooltip)}))}toJson(){var e;const t=null==(e=this.tooltip.body)?void 0:e.filter((e=>"first"!==e.type)).map((e=>e.toJson()));return rp(ip({},super.toJson()),{tooltip:t})}render(e){const t=_w.createBox(new ww,this.body);if(!t)return null;const n=new ww({parent:e,mathstyle:"displaystyle"},{fontSize:5}),i=rw(fS(new nw(this.tooltip.render(n),{classes:"ML__tooltip-content"}),n)),r=new nw([i,t],{classes:"ML__tooltip-container"});return this.caret&&(r.caret=this.caret),this.bind(e,r)}},vS=class e extends _w{constructor(e,t){super(rp(ip({},t),{type:"operator",isFunction:null==t?void 0:t.isFunction})),this.value=e,this.variant=null==t?void 0:t.variant,this.variantStyle=null==t?void 0:t.variantStyle,this.subsupPlacement=null==t?void 0:t.limits}static fromJson(t){return new e(t.symbol,t)}toJson(){const e=super.toJson();return this.variant&&(e.variant=this.variant),this.variantStyle&&(e.variantStyle=this.variantStyle),this.subsupPlacement&&(e.limits=this.subsupPlacement),this.value&&(e.symbol=this.value),e}render(e){var t;const n=new nw(this.value,{type:"op",mode:"math",maxFontSize:e.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:e.letterShapeStyle});let i=n;if(this.superscript||this.subscript){const r=null!=(t=this.subsupPlacement)?t:"auto";i="over-under"===r||"auto"===r&&e.isDisplayStyle?this.attachLimits(e,{base:n}):this.attachSupsub(e,{base:n})}return new nw(this.bind(e,i),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(e)}_serialize(e){if(!(e.expandMacro||e.skipStyles||e.skipPlaceholders)&&"string"==typeof this.verbatimLatex)return this.verbatimLatex;const t=Jp(this.command,this.mode);if(null==t?void 0:t.serialize)return t.serialize(this,e);const n=[this.command];return this.explicitSubsupPlacement&&("over-under"===this.subsupPlacement&&n.push("\\limits"),"adjacent"===this.subsupPlacement&&n.push("\\nolimits"),"auto"===this.subsupPlacement&&n.push("\\displaylimits")),n.push(this.supsubToLatex(e)),Kb(n)}};function yS(e){if(sp(e))return e.map((e=>yS(e)));if("string"==typeof e)return _w.fromJson(e);e=ip({},e);for(const t of xw)e[t]&&(e[t]=yS(e[t]));e.args&&(e.args=function(e){return e&&Array.isArray(e)?e.map((e=>""===e?null:"object"==typeof e&&"group"in e?{group:e.group.map((e=>yS(e)))}:"object"==typeof e&&"atoms"in e?e.atoms.map((e=>yS(e))):e)):void 0}(e.args)),e.array&&(e.array=yS(e.array));const t=e.type;let n;"accent"===t&&(n=sx.fromJson(e)),"array"===t&&(n=Lx.fromJson(e)),"box"===t&&(n=Nx.fromJson(e)),"chem"===t&&(n=Vx.fromJson(e)),"composition"===t&&(n=Ix.fromJson(e)),"delim"===t&&(n=Yx.fromJson(e)),"enclose"===t&&(n=Qx.fromJson(e)),"error"===t&&(n=Bx.fromJson(e)),"extensible-symbol"===t&&(n=rS.fromJson(e)),"genfrac"===t&&(n=tS.fromJson(e)),"group"===t&&(n=Rx.fromJson(e)),"latex"===t&&(n=nS.fromJson(e)),"latexgroup"===t&&(n=iS.fromJson(e)),"leftright"===t&&(n=Ox.fromJson(e)),"macro"===t&&(n=zx.fromJson(e)),"macro-argument"===t&&(n=jx.fromJson(e)),"operator"===t&&(n=vS.fromJson(e)),"overlap"===t&&(n=oS.fromJson(e)),"overunder"===t&&(n=aS.fromJson(e)),"placeholder"===t&&(n=kx.fromJson(e)),"prompt"===t&&(n=$x.fromJson(e)),"phantom"===t&&(n=sS.fromJson(e)),"sizeddelim"===t&&(n=Xx.fromJson(e)),"spacing"===t&&(n=lS.fromJson(e)),"subsup"===t&&(n=Hx.fromJson(e)),"surd"===t&&(n=cS.fromJson(e)),"text"===t&&(n=Ew.fromJson(e)),"tooltip"===t&&(n=mS.fromJson(e)),n||(console.assert(!t||["first","mbin","mrel","mclose","minner","mop","mopen","mord","mpunct","root","space"].includes(t),`MathLive 0.98.5: an unexpected atom type "${t}" was encountered. Add new atom constructors to \`fromJson()\` in "atom.ts"`),n=_w.fromJson(e));for(const t of xw)e[t]&&n.setChildren(e[t],t);return void 0!==e.verbatimLatex&&(n.verbatimLatex=e.verbatimLatex),e.subsupPlacement&&(n.subsupPlacement=e.subsupPlacement),e.explicitSubsupPlacement&&(n.explicitSubsupPlacement=!0),e.isFunction&&(n.isFunction=!0),e.isExtensibleSymbol&&(n.isExtensibleSymbol=!0),e.skipBoundary&&(n.skipBoundary=!0),e.captureSelection&&(n.captureSelection=!0),n}var bS={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},wS={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^’‘]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},xS=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,SS=[/^[a-z]$/,/^[A-Z]$/,xS,/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/],kS={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]};function _S(e){if(!e)return"";const{style:t}=e;if(void 0===t.variant)return"";let n=t.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(t.variant)&&t.variantStyle&&"up"!==t.variantStyle&&(n+="-"+t.variantStyle),n}function CS(e,t){return Yb(e,"fontSeries").map((e=>{const n=function(e,t){return Yb(e,"fontShape").map((e=>{const n=function(e,t){return e.map((e=>e._serialize(t)))}(e,t),{fontShape:i}=e[0].style;let r="";return"it"===i&&(r="\\textit"),"sl"===i&&(r="\\textsl"),"sc"===i&&(r="\\textsc"),"n"===i&&(r="\\textup"),!r&&i?`{${Gb("\\fontshape",i)}${Kb(n)}}`:r?Gb(r,Kb(n)):Kb(n)}))}(e,t),{fontSeries:i}=e[0].style;let r="";return"b"===i&&(r="\\textbf"),"l"===i&&(r="\\textlf"),"m"===i&&(r="\\textmd"),i&&!r?`{${Gb("\\fontseries",i)}${Kb(n)}}`:r?Gb(r,Kb(n)):Kb(n)}))}function PS(e,t,n){return Yb(e,"fontFamily").map((e=>{var i,r;const o=function(e,t){return Yb(e,"fontSize").map((e=>{var n,i;const r=CS(e,t),o=null!=(i=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][null!=(n=e[0].style.fontSize)?n:""])?i:"";return o?`${o} ${Kb(r)}`:Kb(r)}))}(e,t),a=null!=(r={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[null!=(i=e[0].style.fontFamily)?i:""])?r:"";return a?`\\${a}{${Kb(o)}}`:e[0].style.fontFamily?`{\\fontfamily{${e[0].style.fontFamily}} ${Kb(o)}}`:n?`\\text{${Kb(o)}}`:Kb(o)}))}new class extends Wb{constructor(){super("math")}createAtom(e,t,n){var i,r,o,a;if(null===t)return new _w({type:"mord",mode:"math",command:e,value:e,style:n});const s=window.MathfieldElement.isFunction(null!=(i=t.command)?i:e);if("symbol"===t.definitionType){const i=new _w({type:null!=(r=t.type)?r:"mord",mode:"math",command:null!=(o=t.command)?o:e,value:String.fromCodePoint(t.codepoint),style:n});return s&&(i.isFunction=!0),e.startsWith("\\")&&(i.verbatimLatex=e),i}const l=new _w({type:"mord",mode:"math",command:null!=(a=t.command)?a:e,value:e,style:n});return s&&(l.isFunction=!0),e.startsWith("\\")&&(l.verbatimLatex=e),l}serialize(e,t){const n=function(e,t){const{parent:n}=e[0],i=_S(n);return Yb(e,"variant").map((e=>{const n=_S(e[0]);let r="";n&&n!==i&&(r={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[n],console.assert(void 0!==r));const o=Kb(e.map((e=>e._serialize(t))));return r?Gb(r,o):o}))}(e,rp(ip({},t),{defaultMode:"math"}));return 0===n.length||"text"!==t.defaultMode?n:["$ ",...n," $"]}getFont(e,t){console.assert(void 0!==t.variant);let{variant:n}=t,{variantStyle:i}=t;"normal"===n&&!i&&/[\u00A3\u0131\u0237]/.test(e.value)&&(n="main",i="italic"),"normal"!==n||i||1!==e.value.length||SS.forEach(((n,r)=>{var o;n.test(e.value)&&"it"===kS[null!=(o=t.letterShapeStyle)?o:"tex"][r]&&(i="italic")})),"up"===i&&(i=void 0);const r=i?n+"-"+i:n;console.assert(void 0!==bS[r]);const[o,a]=bS[r];return wS[n]&&!wS[n].test(e.value)?(e.value=Mp(e.value,n,i),null):(xS.test(e.value)&&(e.classes+=" lcGreek"),a&&(e.classes+=" "+a),o)}};var ES={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"};new class extends Wb{constructor(){super("text")}createAtom(e,t,n){return t&&"symbol"===t.definitionType?new Ew(e,String.fromCodePoint(t.codepoint),null!=n?n:{}):null}serialize(e,t){return PS(e,rp(ip({},t),{defaultMode:"text"}),"text"!==t.defaultMode)}getFont(e,t){var n,i,r,o,a;const{fontFamily:s}=t;if(ES[s]?e.classes+=" "+ES[s]:s&&e.setStyle("font-family",s),t.fontShape&&(e.classes+=" ",e.classes+=null!=(n={it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[t.fontShape])?n:""),t.fontSeries){const n=t.fontSeries.match(/(.?[lbm])?(.?[cx])?/);n&&(e.classes+=" ",e.classes+=null!=(r={ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[null!=(i=n[1])?i:""])?r:"",e.classes+=" ",e.classes+=null!=(a={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[null!=(o=n[2])?o:""])?a:"")}return"Main-Regular"}};new class extends Wb{constructor(){super("latex")}createAtom(e){return new nS(e)}serialize(e,t){return e.filter((e=>e instanceof nS&&!e.isSuggestion)).map((e=>e.value))}getFont(){return null}};var MS={id:"apple.en-intl",displayName:"English (international)",virtualLayout:"qwerty",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","∫","ı"],KeyC:["c","C","ç","Ç"],KeyD:["d","D","∂","Î"],KeyE:["e","E","´","´"],KeyF:["f","F","ƒ","Ï"],KeyG:["g","G","©","˝"],KeyH:["h","H","˙","Ó"],KeyI:["i","I","ˆ","ˆ"],KeyJ:["j","J","∆","Ô"],KeyK:["k","K","˚",""],KeyL:["l","L","¬","Ò"],KeyM:["m","M","µ","Â"],KeyN:["n","N","˜","˜"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","œ","Œ"],KeyR:["r","R","®","‰"],KeyS:["s","S","ß","Í"],KeyT:["t","T","†","ˇ"],KeyU:["u","U","¨","¨"],KeyV:["v","V","√","◊"],KeyW:["w","W","∑","„"],KeyX:["x","X","≈","˛"],KeyY:["y","Y","¥","Á"],KeyZ:["z","Z","Ω","¸"],Digit1:["1","!","¡","⁄"],Digit2:["2","@","™","€"],Digit3:["3","#","£","‹"],Digit4:["4","$","¢","›"],Digit5:["5","%","∞","fi"],Digit6:["6","^","§","fl"],Digit7:["7","&","¶","‡"],Digit8:["8","*","•","°"],Digit9:["9","(","ª","·"],Digit0:["0",")","º","‚"],Space:[" "," "," "," "],Minus:["-","_","–","—"],Equal:["=","+","≠","±"],BracketLeft:["[","{","“","”"],BracketRight:["]","}","‘","’"],Backslash:["\\","|","«","»"],Semicolon:[";",":","…","Ú"],Quote:["'",'"',"æ","Æ"],Backquote:["`","˜","`","`"],Comma:[",","<","≤","¯"],Period:[".",">","≥","˘"],Slash:["/","?","÷","¿"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["§","±","§","±"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},LS={id:"windows.en-intl",displayName:"English (international)",platform:"windows",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","á","Á"],KeyB:["b","B","",""],KeyC:["c","C","©","¢"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","é","É"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","í","Í"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","ø","Ø"],KeyM:["m","M","µ",""],KeyN:["n","N","ñ","Ñ"],KeyO:["o","O","ó","Ó"],KeyP:["p","P","ö","Ö"],KeyQ:["q","Q","ä","Ä"],KeyR:["r","R","®",""],KeyS:["s","S","ß","§"],KeyT:["t","T","þ","Þ"],KeyU:["u","U","ú","Ú"],KeyV:["v","V","",""],KeyW:["w","W","å","Å"],KeyX:["x","X","",""],KeyY:["y","Y","ü","Ü"],KeyZ:["z","Z","æ","Æ"],Digit1:["1","!","¡","¹"],Digit2:["2","@","²",""],Digit3:["3","#","³",""],Digit4:["4","$","¤","£"],Digit5:["5","%","€",""],Digit6:["6","^","¼",""],Digit7:["7","&","½",""],Digit8:["8","*","¾",""],Digit9:["9","(","‘",""],Digit0:["0",")","’",""],Space:[" "," ","",""],Minus:["-","_","¥",""],Equal:["=","+","×","÷"],BracketLeft:["[","{","«",""],BracketRight:["]","}","»",""],Backslash:["\\","|","¬","¦"],Semicolon:[";",":","¶","°"],Quote:["'",'"',"´","¨"],Backquote:["`","~","",""],Comma:[",","<","ç","Ç"],Period:[".",">","",""],Slash:["/","?","¿",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}},AS={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}};function TS(e){const t=e.split("+"),n={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:t.pop()};return t.includes("shift")&&(n.shift=!0),t.includes("alt")&&(n.alt=!0),t.includes("ctrl")&&(n.ctrl=!0),t.includes("cmd")&&(n.cmd=!0),t.includes("win")&&(n.win=!0),t.includes("meta")&&(n.meta=!0),n}function DS(e){let t="";return e.shift&&(t+="shift+"),e.alt&&(t+="alt+"),e.ctrl&&(t+="ctrl+"),e.cmd&&(t+="cmd+"),e.win&&(t+="win+"),e.meta&&(t+="meta+"),t+e.key}var NS,IS={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},BS=[];function RS(){switch(up()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function OS(e){e.platform&&e.platform!==RS()||BS.push(e)}function FS(){return null!=NS?NS:BS[0]}switch(RS()){case"apple":OS(MS),OS({id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","‡","Ω"],KeyB:["b","B","ß","∫"],KeyC:["c","C","©","¢"],KeyD:["d","D","∂","∆"],KeyE:["e","E","ê","Ê"],KeyF:["f","F","ƒ","·"],KeyG:["g","G","fi","fl"],KeyH:["h","H","Ì","Î"],KeyI:["i","I","î","ï"],KeyJ:["j","J","Ï","Í"],KeyK:["k","K","È","Ë"],KeyL:["l","L","¬","|"],KeyM:[",","?","∞","¿"],KeyN:["n","N","~","ı"],KeyO:["o","O","œ","Œ"],KeyP:["p","P","π","∏"],KeyQ:["a","A","æ","Æ"],KeyR:["r","R","®","‚"],KeyS:["s","S","Ò","∑"],KeyT:["t","T","†","™"],KeyU:["u","U","º","ª"],KeyV:["v","V","◊","√"],KeyW:["z","Z","Â","Å"],KeyX:["x","X","≈","⁄"],KeyY:["y","Y","Ú","Ÿ"],KeyZ:["w","W","‹","›"],Digit1:["&","1","","´"],Digit2:["é","2","ë","„"],Digit3:['"',"3","“","”"],Digit4:["'","4","‘","’"],Digit5:["(","5","{","["],Digit6:["§","6","¶","å"],Digit7:["è","7","«","»"],Digit8:["!","8","¡","Û"],Digit9:["ç","9","Ç","Á"],Digit0:["à","0","ø","Ø"],Space:[" "," "," "," "],Minus:[")","°","}","]"],Equal:["-","_","—","–"],BracketLeft:["^","¨","ô","Ô"],BracketRight:["$","*","€","¥"],Backslash:["`","£","@","#"],Semicolon:["m","M","µ","Ó"],Quote:["ù","%","Ù","‰"],Backquote:["<",">","≤","≥"],Comma:[";",".","…","•"],Period:[":","/","÷","\\"],Slash:["=","+","≠","±"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","•","Ÿ"],NumpadEqual:["=","=","=","="]}}),OS({id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","ß",""],KeyC:["c","C","©"," "],KeyD:["d","D","∂","∆"],KeyE:["e","E","€","€"],KeyF:["f","F","ƒ","fi"],KeyG:["g","G","","fl"],KeyH:["h","H","™"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","¶","¯"],KeyK:["k","K","§","ˇ"],KeyL:["l","L"," ","˘"],KeyM:["m","M","µ","˚"],KeyN:["n","N"," ","˙"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","œ","Œ"],KeyR:["r","R","®"," "],KeyS:["s","S","∫"," "],KeyT:["t","T","†","‡"],KeyU:["u","U"," "," "],KeyV:["v","V","√","◊"],KeyW:["w","W","æ","Æ"],KeyX:["x","X","∑","›"],KeyY:["y","Y","¥"," "],KeyZ:["z","Z","Ω","‹"],Digit1:["1","!","|","ı"],Digit2:["2",'"',"@","˝"],Digit3:["3","·","#","•"],Digit4:["4","$","¢","£"],Digit5:["5","%","∞","‰"],Digit6:["6","&","¬"," "],Digit7:["7","/","÷","⁄"],Digit8:["8","(","“","‘"],Digit9:["9",")","”","’"],Digit0:["0","=","≠","≈"],Space:[" "," "," "," "],Minus:["'","?","´","¸"],Equal:["¡","¿","‚","˛"],BracketLeft:["`","^","[","ˆ"],BracketRight:["+","*","]","±"],Backslash:["ç","Ç","}","»"],Semicolon:["ñ","Ñ","~","˜"],Quote:["´","¨","{","«"],Backquote:["<",">","≤","≥"],Comma:[",",";","„",""],Period:[".",":","…","…"],Slash:["-","_","–","—"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["º","ª","\\","°"]}}),OS({id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","∫","‹"],KeyC:["c","C","ç","Ç"],KeyD:["d","D","∂","™"],KeyE:["e","E","€","‰"],KeyF:["f","F","ƒ","Ï"],KeyG:["g","G","©","Ì"],KeyH:["h","H","ª","Ó"],KeyI:["i","I","⁄","Û"],KeyJ:["j","J","º","ı"],KeyK:["k","K","∆","ˆ"],KeyL:["l","L","@","fl"],KeyM:["m","M","µ","˘"],KeyN:["n","N","~","›"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","«","»"],KeyR:["r","R","®","¸"],KeyS:["s","S","‚","Í"],KeyT:["t","T","†","˝"],KeyU:["u","U","¨","Á"],KeyV:["v","V","√","◊"],KeyW:["w","W","∑","„"],KeyX:["x","X","≈","Ù"],KeyY:["z","Z","Ω","ˇ"],KeyZ:["y","Y","¥","‡"],Digit1:["1","!","¡","¬"],Digit2:["2",'"',"“","”"],Digit3:["3","§","¶","#"],Digit4:["4","$","¢","£"],Digit5:["5","%","[","fi"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","˜"],Digit9:["9",")","}","·"],Digit0:["0","=","≠","¯"],Space:[" "," "," "," "],Minus:["ß","?","¿","˙"],Equal:["´","`","'","˚"],BracketLeft:["ü","Ü","•","°"],BracketRight:["+","*","±",""],Backslash:["#","'","‘","’"],Semicolon:["ö","Ö","œ","Œ"],Quote:["ä","Ä","æ","Æ"],Backquote:["<",">","≤","≥"],Comma:[",",";","∞","˛"],Period:[".",":","…","÷"],Slash:["-","_","–","—"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","°","„","“"],NumpadEqual:["=","=","=","="]}});break;case"windows":OS(LS),OS({id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["é","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["è","7","`",""],Digit8:["_","8","\\",""],Digit9:["ç","9","^",""],Digit0:["à","0","@",""],Space:[" "," ","",""],Minus:[")","°","]",""],Equal:["=","+","}",""],BracketLeft:["^","¨","",""],BracketRight:["$","£","¤",""],Backslash:["*","µ","",""],Semicolon:["m","M","",""],Quote:["ù","%","",""],Backquote:["²","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","§","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}}),OS({id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","·","#",""],Digit4:["4","$","~",""],Digit5:["5","%","€",""],Digit6:["6","&","¬",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["¡","¿","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["ç","Ç","}",""],Semicolon:["ñ","Ñ","",""],Quote:["´","¨","{",""],Backquote:["º","ª","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}}),OS({id:"windows.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","µ",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"²",""],Digit3:["3","§","³",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["ß","?","\\","ẞ"],Equal:["´","`","",""],BracketLeft:["ü","Ü","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["ö","Ö","",""],Quote:["ä","Ä","",""],Backquote:["^","°","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}});break;case"linux":OS(AS),OS({id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","Ω"],KeyB:["b","B","”","’"],KeyC:["c","C","¢","©"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","€","¢"],KeyF:["f","F","đ","ª"],KeyG:["g","G","ŋ","Ŋ"],KeyH:["h","H","ħ","Ħ"],KeyI:["i","I","→","ı"],KeyJ:["j","J","̉","̛"],KeyK:["k","K","ĸ","&"],KeyL:["l","L","ł","Ł"],KeyM:[",","?","́","̋"],KeyN:["n","N","n","N"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","þ","Þ"],KeyQ:["a","A","æ","Æ"],KeyR:["r","R","¶","®"],KeyS:["s","S","ß","§"],KeyT:["t","T","ŧ","Ŧ"],KeyU:["u","U","↓","↑"],KeyV:["v","V","“","‘"],KeyW:["z","Z","«","<"],KeyX:["x","X","»",">"],KeyY:["y","Y","←","¥"],KeyZ:["w","W","ł","Ł"],Digit1:["&","1","¹","¡"],Digit2:["é","2","~","⅛"],Digit3:['"',"3","#","£"],Digit4:["'","4","{","$"],Digit5:["(","5","[","⅜"],Digit6:["-","6","|","⅝"],Digit7:["è","7","`","⅞"],Digit8:["_","8","\\","™"],Digit9:["ç","9","^","±"],Digit0:["à","0","@","°"],Enter:["\r","\r","\r","\r"],Escape:["","","",""],Backspace:["\b","\b","\b","\b"],Tab:["\t","","\t",""],Space:[" "," "," "," "],Minus:[")","°","]","¿"],Equal:["=","+","}","̨"],BracketLeft:["̂","̈","̈","̊"],BracketRight:["$","£","¤","̄"],Backslash:["*","µ","̀","̆"],Semicolon:["m","M","µ","º"],Quote:["ù","%","̂","̌"],Backquote:["²","~","¬","¬"],Comma:[";",".","─","×"],Period:[":","/","·","÷"],Slash:["!","§","̣","̇"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"]}}),OS({id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","æ","Æ"],KeyB:["b","B","”","’"],KeyC:["c","C","¢","©"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","€","¢"],KeyF:["f","F","đ","ª"],KeyG:["g","G","ŋ","Ŋ"],KeyH:["h","H","ħ","Ħ"],KeyI:["i","I","→","ı"],KeyJ:["j","J","̉","̛"],KeyK:["k","K","ĸ","&"],KeyL:["l","L","ł","Ł"],KeyM:["m","M","µ","º"],KeyN:["n","N","n","N"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","þ","Þ"],KeyQ:["q","Q","@","Ω"],KeyR:["r","R","¶","®"],KeyS:["s","S","ß","§"],KeyT:["t","T","ŧ","Ŧ"],KeyU:["u","U","↓","↑"],KeyV:["v","V","“","‘"],KeyW:["w","W","ł","Ł"],KeyX:["x","X","»",">"],KeyY:["y","Y","←","¥"],KeyZ:["z","Z","«","<"],Digit1:["1","!","|","¡"],Digit2:["2",'"',"@","⅛"],Digit3:["3","·","#","£"],Digit4:["4","$","~","$"],Digit5:["5","%","½","⅜"],Digit6:["6","&","¬","⅝"],Digit7:["7","/","{","⅞"],Digit8:["8","(","[","™"],Digit9:["9",")","]","±"],Digit0:["0","=","}","°"],Enter:["\r","\r","\r","\r"],Escape:["","","",""],Backspace:["\b","\b","\b","\b"],Tab:["\t","","\t",""],Space:[" "," "," "," "],Minus:["'","?","\\","¿"],Equal:["¡","¿","̃","~"],BracketLeft:["̀","̂","[","̊"],BracketRight:["+","*","]","̄"],Backslash:["ç","Ç","}","̆"],Semicolon:["ñ","Ñ","~","̋"],Quote:["́","̈","{","{"],Backquote:["º","ª","\\","\\"],Comma:[",",";","─","×"],Period:[".",":","·","÷"],Slash:["-","_","̣","̇"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}}),OS({id:"linux.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","æ","Æ"],KeyB:["b","B","“","‘"],KeyC:["c","C","¢","©"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","€","€"],KeyF:["f","F","đ","ª"],KeyG:["g","G","ŋ","Ŋ"],KeyH:["h","H","ħ","Ħ"],KeyI:["i","I","→","ı"],KeyJ:["j","J","̣","̇"],KeyK:["k","K","ĸ","&"],KeyL:["l","L","ł","Ł"],KeyM:["m","M","µ","º"],KeyN:["n","N","”","’"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","þ","Þ"],KeyQ:["q","Q","@","Ω"],KeyR:["r","R","¶","®"],KeyS:["s","S","ſ","ẞ"],KeyT:["t","T","ŧ","Ŧ"],KeyU:["u","U","↓","↑"],KeyV:["v","V","„","‚"],KeyW:["w","W","ł","Ł"],KeyX:["x","X","«","‹"],KeyY:["z","Z","←","¥"],KeyZ:["y","Y","»","›"],Digit1:["1","!","¹","¡"],Digit2:["2",'"',"²","⅛"],Digit3:["3","§","³","£"],Digit4:["4","$","¼","¤"],Digit5:["5","%","½","⅜"],Digit6:["6","&","¬","⅝"],Digit7:["7","/","{","⅞"],Digit8:["8","(","[","™"],Digit9:["9",")","]","±"],Digit0:["0","=","}","°"],Enter:["\r","\r","\r","\r"],Escape:["","","",""],Backspace:["\b","\b","\b","\b"],Tab:["\t","","\t",""],Space:[" "," "," "," "],Minus:["ß","?","\\","¿"],Equal:["́","̀","̧","̨"],BracketLeft:["ü","Ü","̈","̊"],BracketRight:["+","*","~","¯"],Backslash:["#","'","’","̆"],Semicolon:["ö","Ö","̋","̣"],Quote:["ä","Ä","̂","̌"],Backquote:["̂","°","′","″"],Comma:[",",";","·","×"],Period:[".",":","…","÷"],Slash:["-","_","–","—"],PrintScreen:["","","",""],PageUp:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",",","",","],IntlBackslash:["<",">","|","̱"],AltRight:["\r","\r","\r","\r"],MetaRight:[".",".",".","."]}})}function zS(e){var t;const n=/macos|ios/.test(up()),i=e.split("+");let r="";for(const e of i)r&&(r+=n?" ":'+'),e.startsWith("[Key")?r+=e.slice(4,5):e.startsWith("Key")?r+=e.slice(3,4):e.startsWith("[Digit")?r+=e.slice(6,7):e.startsWith("Digit")?r+=e.slice(5,6):r+=null!=(t={cmd:"⌘",meta:n?"⌘":"Ctrl",shift:n?"⇧":"Shift",alt:n?"⌥":"Alt",ctrl:n?"⌃":"Ctrl","\n":n?"⏎":"Return","[return]":n?"⏎":"Return","[enter]":n?"⌤":"Enter","[tab]":n?"⇥":"Tab","[escape]":"Esc","[backspace]":n?"⌫":"Backspace","[delete]":n?"⌦":"Del","[pageup]":n?"⇞":"Page Up","[pagedown]":n?"⇟":"Page Down","[home]":n?"⤒":"Home","[end]":n?"⤓":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* 🔢",numpaddivide:"/ 🔢",numpadsubtract:"- 🔢",numpadadd:"+ 🔢",numpaddecimal:". 🔢",numpadcomma:", 🔢",help:"help",left:"⇠",up:"⇡",right:"⇢",down:"⇣","[arrowleft]":"⇠","[arrowup]":"⇡","[arrowright]":"⇢","[arrowdown]":"⇣"}[e.toLowerCase()])?t:e.toUpperCase();return r}function jS(e){if(e instanceof MouseEvent||e instanceof PointerEvent)return{x:e.clientX,y:e.clientY};if(e instanceof TouchEvent){const t=[...e.touches].reduce(((e,t)=>({x:e.x+t.clientX,y:e.y+t.clientY})),{x:0,y:0}),n=e.touches.length;return{x:t.x/n,y:t.y/n}}}function $S(e){const t={alt:!1,control:!1,shift:!1,meta:!1};return(e instanceof MouseEvent||e instanceof PointerEvent||e instanceof TouchEvent||e instanceof KeyboardEvent)&&(e.altKey&&(t.alt=!0),e.ctrlKey&&(t.control=!0),e.metaKey&&(t.meta=!0),e.shiftKey&&(t.shift=!0)),t}OS({id:"dvorak",locale:"en",displayName:"Dvorak",virtualLayout:"dvorak",platform:"",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["x","X","≈","˛"],KeyC:["j","J","∆","Ô"],KeyD:["e","E","´","´"],KeyE:[".",">","≥","˘"],KeyF:["u","U","¨","¨"],KeyG:["i","I","ˆ","ˆ"],KeyH:["d","D","∂","Î"],KeyI:["c","C","ç","Ç"],KeyJ:["h","H","˙","Ó"],KeyK:["t","T","†","ˇ"],KeyL:["n","N","˜","˜"],KeyM:["m","M","µ","Â"],KeyN:["b","B","∫","ı"],KeyO:["r","R","®","‰"],KeyP:["l","L","¬","Ò"],KeyQ:["'",'"',"æ","Æ"],KeyR:["p","P","π","∏"],KeyS:["o","O","ø","Ø"],KeyT:["y","Y","¥","Á"],KeyU:["g","G","©","˝"],KeyV:["k","K","˚",""],KeyW:[",","<","≤","¯"],KeyX:["q","Q","œ","Œ"],KeyY:["f","F","ƒ","Ï"],KeyZ:[";",":","…","Ú"],Digit1:["1","!","¡","⁄"],Digit2:["2","@","™","€"],Digit3:["3","#","£","‹"],Digit4:["4","$","¢","›"],Digit5:["5","%","∞","fi"],Digit6:["6","^","§","fl"],Digit7:["7","&","¶","‡"],Digit8:["8","*","•","°"],Digit9:["9","(","ª","·"],Digit0:["0",")","º","‚"],Space:[" "," "," "," "],Minus:["[","{","“","”"],Equal:["]","}","‘","’"],BracketLeft:["/","?","÷","¿"],BracketRight:["=","+","≠","±"],Backslash:["\\","|","«","»"],Semicolon:["s","S","ß","Í"],Quote:["-","_","–","—"],Backquote:["`","~","`","`"],Comma:["w","W","∑","„"],Period:["v","V","√","◊"],Slash:["z","Z","Ω","¸"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["§","±","§","±"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}});var HS=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function ZS(e){return!e.ctrlKey&&!e.metaKey&&(!["Dead","Process"].includes(e.key)&&(""===e.code||HS.has(e.code)))}function KS(){var e;let t=document.activeElement;for(;null==(e=null==t?void 0:t.shadowRoot)?void 0:e.activeElement;)t=t.shadowRoot.activeElement;return t}var GS=class e{static get scrim(){return e._scrim||(e._scrim=new e),e._scrim}static open(t){e.scrim.open(t)}static close(){e.scrim.close()}static get state(){return e.scrim.state}static get element(){return e.scrim.element}constructor(e){var t,n;this.lightDismiss=null==(t=null==e?void 0:e.lightDismiss)||t,this.translucent=null!=(n=null==e?void 0:e.translucent)&&n,this.state="closed"}get element(){if(this._element)return this._element;const e=document.createElement("div");return e.setAttribute("role","presentation"),e.style.position="fixed",e.style.contain="content",e.style.top="0",e.style.left="0",e.style.right="0",e.style.bottom="0",e.style.zIndex="var(--scrim-zindex, 10099)",e.style.outline="none",this.translucent?(e.style.background="rgba(255, 255, 255, .2)",e.style.backdropFilter="contrast(40%)"):e.style.background="transparent",this._element=e,e}open(e){var t;if("closed"!==this.state)return;this.state="opening",this.onDismiss=null==e?void 0:e.onDismiss,this.savedActiveElement=KS();const{element:n}=this;(null!=(t=null==e?void 0:e.root)?t:document.body).appendChild(n),n.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const i=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const r=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${r+i}px`,(null==e?void 0:e.child)&&n.append(e.child),this.state="open"}close(){var e,t,n,i;if("open"!==this.state)return void console.assert(null!==this.element.parentElement);this.state="closing","function"==typeof this.onDismiss&&this.onDismiss(),this.onDismiss=void 0;const{element:r}=this;r.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),r.remove(),document.body.style.overflow=null!=(e=this.savedOverflow)?e:"",document.body.style.marginRight=null!=(t=this.savedMarginRight)?t:"",KS()!==this.savedActiveElement&&(null==(i=null==(n=this.savedActiveElement)?void 0:n.focus)||i.call(n)),r.innerHTML="",this.state="closed"}handleEvent(e){this.lightDismiss&&(e.target===this._element&&"click"===e.type?(this.close(),e.preventDefault(),e.stopPropagation()):e.target!==document||"touchmove"!==e.type&&"scroll"!==e.type||(this.close(),e.preventDefault(),e.stopPropagation()))}};function US(e){var t;if(!e||!ZS(e))return"";let n;return"Unidentified"===e.key&&e.target&&(n=e.target.value),n=null!=(t=null!=n?n:e.key)?t:e.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(n)&&(n=""),n}function VS(e){e=function(e){if(e.code)return e;const t=Object.entries(FS().mapping);let n=!1,i=!1,r="";for(let o=0;o<4;o++){for(const[a,s]of t)if(s[o]===e.key){r=a,3===o?(n=!0,i=!0):2===o?n=!0:1===o&&(i=!0);break}if(r)break}return new KeyboardEvent(e.type,rp(ip({},e),{altKey:n,shiftKey:i,code:r}))}(e);const t=[];return e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),0===t.length?`[${e.code}]`:(t.push(`[${e.code}]`),t.join("+"))}function WS(e){let t=e;return sp(t)&&(t=t.length>0?t[0]+"("+t.slice(1).join("")+")":""),t}function qS(e,t){let n=[];if("string"==typeof t){const e=Gw[t];sp(e)?n=e.slice():e&&n.push(e)}const i=WS(t),r=new RegExp("^"+i.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const t of e)r.test(WS(t.command))&&n.push(t.key);return n.map(zS)}function YS(e,t){if(e.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(e.ifPlatform))throw new Error(`Unexpected platform "${e.ifPlatform}" for keybinding ${e.key}`);if(void 0!==e.ifLayout&&(0===t.score||!e.ifLayout.includes(t.id)))return;const n=TS(e.key);let i=e.ifPlatform;if(n.cmd){if(i&&"macos"!==i&&"ios"!==i)throw new Error('Unexpected "cmd" modifier with platform "'+i+'"\n"cmd" modifier can only be used with macOS or iOS platform.');i||(i="ios"===up()?"ios":"macos"),n.win=!1,n.cmd=!1,n.meta=!0}if(n.win){if(i&&"windows"!==i)throw new Error('Unexpected "win" modifier with platform "'+i+'"\n"win" modifier can only be used with Windows platform.');i="windows",n.win=!1,n.cmd=!1,n.meta=!0}if(i&&!function(e){if(lp()){const t=up(),n=e.startsWith("!"),i=e.endsWith(t);if(n&&!i)return!0;if(!n&&i)return!0}return"!other"!==e&&"other"===e}(i))return;if(/^\[.+\]$/.test(n.key))return rp(ip({},e),{key:DS(n)});const r=function(e,t){var n;const i={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!e)return i;for(const[n,r]of Object.entries(t.mapping)){if(r[0]===e)return i.key=`[${n}]`,i;if(r[1]===e)return i.shift=!0,i.key=`[${n}]`,i;if(r[2]===e)return i.alt=!0,i.key=`[${n}]`,i;if(r[3]===e)return i.shift=!0,i.alt=!0,i.key=`[${n}]`,i}return i.key=null!=(n=IS[e])?n:"",i}(n.key,t);if(!r)return rp(ip({},e),{key:DS(n)});if(r.shift&&n.shift||r.alt&&n.alt)throw new Error(`The keybinding ${e.key} (${XS(e.command)}) is conflicting with the key combination ${DS(r)} using the ${t.displayName} keyboard layout`);return r.shift=r.shift||n.shift,r.alt=r.alt||n.alt,r.meta=n.meta,r.ctrl=n.ctrl,rp(ip({},e),{key:DS(r)})}function XS(e){if(Array.isArray(e)){const t=[...e];return t.shift()+"("+t.map((e=>"string"==typeof e?`"${e}"`:e.toString())).join(", ")+")"}return e}function QS(e){var t,n;const i=e.atoms.find((e=>"latexgroup"===e.type));return i&&null!=(n=null==(t=i.body)?void 0:t.filter((e=>"latex"===e.type)))?n:[]}function JS(e,t){var n;let i=0,r=!1;const o=Number.isFinite(null==t?void 0:t.before)?null!=(n=null==t?void 0:t.before)?n:0:e.lastOffset;for(;i<=o&&!r;){const t=e.at(i);r=t instanceof nS&&t.isSuggestion,r||i++}if(!r)return[void 0,void 0];let a=i,s=!1;for(;a<=o&&!s;){const t=e.at(a);s=!(t instanceof nS&&t.isSuggestion),s||a++}return[i-1,a-1]}function ek(e){const t=QS(e.model).filter((e=>e.isSuggestion));if(0!==t.length){e.model.position=e.model.offsetOf(t[0].leftSibling);for(const e of t)e.parent.removeChild(e)}}function tk(e,t){var n;const{model:i}=e;ek(e);for(const e of QS(i))e.isError=!1;if(!i.selectionIsCollapsed||"off"===e.options.popoverPolicy)return void ck(e);const r=[];let o=i.at(i.position);for(;o&&o instanceof nS&&/^[a-zA-Z\*]$/.test(o.value);)o=o.leftSibling;if(o&&o instanceof nS&&"\\"===o.value)for(r.push(o),o=o.rightSibling;o&&o instanceof nS&&/^[a-zA-Z\*]$/.test(o.value);)r.push(o),o=o.rightSibling;const a=r.map((e=>e.value)).join(""),s=function(e,t){var n,i;if(0===t.length||"\\"===t||!t.startsWith("\\"))return[];const r=[];for(const e in Rp)e.startsWith(t)&&!Rp[e].infix&&r.push({match:e,frequency:null!=(n=Rp[e].frequency)?n:0});for(const e in Ip)e.startsWith(t)&&r.push({match:e,frequency:null!=(i=Ip[e].frequency)?i:0});const o=t.substring(1);for(const t of Object.keys(e.options.macros))t.startsWith(o)&&r.push({match:"\\"+t,frequency:0});return r.sort(((e,t)=>{var n,i;return e.frequency===t.frequency?e.match.length===t.match.length?e.matche.match))}(e,a);if(0===s.length){if(/^\\[a-zA-Z\*]+$/.test(a))for(const e of r)e.isError=!0;return void ck(e)}const l=null!=(n=null==t?void 0:t.atIndex)?n:0;e.suggestionIndex=l<0?s.length-1:l%s.length;const c=s[e.suggestionIndex];if(c!==a){const t=r[r.length-1];t.parent.addChildrenAfter([...c.slice(a.length-c.length)].map((e=>new nS(e,{isSuggestion:!0}))),t),wk(e,{interactive:!0})}!function(e,t){var n;if(0===t.length)return void ck(e);let i="";for(const[n,r]of t.entries()){const t=r,o=ak(e,r),a=qS(e.keybindings,t).join("
    ");i+=`
  • ${t}${o}`,a&&(i+=`${a}`),i+="
  • "}const r=function(e,t){let n=document.getElementById("mathlive-suggestion-popover");n||(n=rk("mathlive-suggestion-popover"),ox("suggestion-popover"),ox("core"),n.addEventListener("pointerdown",(e=>e.preventDefault())),n.addEventListener("click",(t=>{let n=t.target;for(;n&&!n.dataset.command;)n=n.parentElement;n&&(ik(e,"reject"),Zw.insert(e.model,n.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),e.dirty=!0,e.focus())})));return n.innerHTML=window.MathfieldElement.createHTML(t),n}(e,`
      ${i}
    `);sk()&&(null==(n=r.querySelector(".ML__popover__current"))||n.scrollIntoView({block:"nearest",inline:"nearest"}));setTimeout((()=>{var t;r&&!sk()&&(r.classList.add("is-visible"),lk(e),null==(t=r.querySelector(".ML__popover__current"))||t.scrollIntoView({block:"nearest",inline:"nearest"}))}),32)}(e,s)}function nk(e){const[t,n]=JS(e,{before:e.position});if(void 0===t||void 0===n)return!1;let i=!1;return e.getAtoms([t,n]).forEach((e=>{e.isSuggestion&&(e.isSuggestion=!1,i=!0)})),i}function ik(e,t="accept",n){var i,r;ck(e);const o=e.model.atoms.find((e=>"latexgroup"===e.type));if(!o)return!1;if("accept-suggestion"===t||"accept-all"===t){const n=QS(e.model).filter((e=>e.isSuggestion));if(0!==n.length){for(const e of n)e.isSuggestion=!1;e.model.position=e.model.offsetOf(n[n.length-1])}if("accept-suggestion"===t)return 0!==n.length}const a=QS(e.model).filter((e=>!e.isSuggestion)),s=a.map((e=>e.value)).join(""),l=o.leftSibling;return o.parent.removeChild(o),e.model.position=e.model.offsetOf(l),e.switchMode(null!=(i=null==n?void 0:n.mode)?i:"math"),"reject"===t||(Zw.insert(e.model,s,{selectionMode:null!=(r=null==n?void 0:n.selectItem)&&r?"item":"placeholder",format:"latex",mode:"math"}),e.snapshot(),e.model.announce("replacement"),e.switchMode("math")),!0}function rk(e){var t;let n=document.getElementById(e);return n?n.dataset.refcount=Number(Number.parseInt(null!=(t=n.dataset.refcount)?t:"0")+1).toString():(n=document.createElement("div"),n.setAttribute("aria-hidden","true"),n.dataset.refcount="1",n.id=e,document.body.append(n)),n}function ok(e){var t;const n=document.getElementById(e);if(!n)return;const i=Number.parseInt(null!=(t=n.getAttribute("data-refcount"))?t:"0");i<=1?n.remove():n.dataset.refcount=Number(i-1).toString()}function ak(e,t){const n=new ww({from:e.context}),i=new _w({mode:"math",type:"root",body:Gx(t,{context:n})});return ow(rw(fS(new nw(i.render(n),{classes:"ML__base"}),n)),{classes:"ML__latex"}).toMarkup()}function sk(){const e=document.getElementById("mathlive-suggestion-popover");return!!e&&e.classList.contains("is-visible")}function lk(e,t){var n;if(!e.element||e.element.mathfield!==e)return;if(!sk())return;if("latex"!==(null==(n=e.model.at(e.model.position))?void 0:n.type))return void ck(e);if(null==t?void 0:t.deferred)return void setTimeout((()=>lk(e)),32);const i=Vw(e.field);if(!i)return;const r=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,o=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a=window.innerWidth-document.documentElement.clientWidth,s=window.innerHeight-document.documentElement.clientHeight,l=window.mathVirtualKeyboard.boundingRect.height,c=document.getElementById("mathlive-suggestion-popover");i.x+c.offsetWidth/2>o-a?c.style.left=o-c.offsetWidth-a+"px":i.x-c.offsetWidth/2<0?c.style.left="0":c.style.left=i.x-c.offsetWidth/2+"px";const u=i.y-i.height;r-s-l-i.ye.family));if(e.every((e=>t.includes(e))))return void(gk="ready");if(!window.MathfieldElement.fontsDirectory)return void(gk="not-loaded");const n=await fk(window.MathfieldElement.fontsDirectory);if(!n)return document.body.classList.add("ML__fonts-did-not-load"),void(gk="error");const i=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map((e=>function(e,t,n={}){return new FontFace(e,`url(${t}.woff2) format('woff2')`,n)}(e[0].replace(/-[a-zA-Z]+$/,""),`${n}/${e[0]}`,e[1])));try{const e=await Promise.all(i.map((e=>{try{return e.load()}catch(e){}})));return e.forEach((e=>document.fonts.add(e))),void(gk="ready")}catch(e){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${n}"`,{cause:e}),document.body.classList.add("ML__fonts-did-not-load")}gk="error"}}function vk(e){let t=0;for(let n=0;n{Uw(e)&&e.dirty&&(e.atomBoundsCache=new Map,wk(e,t),e.atomBoundsCache=void 0)}))))}function bk(e,t){const{model:n}=e;n.root.caret=void 0,n.root.isSelected=!1,n.root.containsCaret=!0;for(const e of n.atoms)e.caret=void 0,e.isSelected=!1,e.containsCaret=!1;if(n.selectionIsCollapsed){const t=n.at(n.position);t.caret=e.model.mode;let i=t.parent;for(;i;)i.containsCaret=!0,i=i.parent}else{const e=n.getAtoms(n.selection,{includeChildren:!0});for(const t of e)t.isSelected=!0}const i=function(e,t){var n;t=null!=t?t:{};const i=new ww({from:rp(ip({},e.context),{atomIdsSettings:{seed:t.forHighlighting?vk(_w.serialize([e.model.root],{expandMacro:!1,defaultMode:e.options.defaultMode})):"random",groupNumbers:null!=(n=t.forHighlighting)&&n},letterShapeStyle:e.options.letterShapeStyle}),mathstyle:"inline-math"===e.options.defaultMode?"textstyle":"displaystyle"});return ow(fS(e.model.root.render(i),i),{classes:e.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}(e,t);return i.toMarkup()}function wk(e,t){if(!Uw(e))return;null!=t||(t={});const n=e.element.querySelector("[part=virtual-keyboard-toggle]");n&&(n.style.display=e.hasEditableContent?"":"none");const i=e.field;if(!i)return;const r=e.isSelectionEditable&&e.hasFocus(),o=i.classList.contains("ML__focused");o&&!r?i.classList.remove("ML__focused"):!o&&r&&i.classList.add("ML__focused");let a=bk(e,t);const s=e.element.querySelector("[part=menu-toggle]");if(s&&(e.model.atoms.length<=1||e.disabled||e.readOnly&&!e.hasEditableContent||"none"===e.userSelect?s.style.display="none":s.style.display=""),e.model.atoms.length<=1){const t=e.options.contentPlaceholder;t&&(a+=`${dP(t)}`)}i.innerHTML=window.MathfieldElement.createHTML(a),xk(e,t.interactive),e.dirty=!1}function xk(e,t){const n=e.field;if(!n)return;for(const e of n.querySelectorAll(".ML__selection, .ML__contains-highlight"))e.remove();null!=t&&t||"error"===gk||"ready"===gk||setTimeout((()=>{"ready"===gk?xk(e):setTimeout((()=>xk(e)),128)}),32);const i=e.model,r=n.offsetWidth,o=n.getBoundingClientRect().width;let a=Math.floor(o)/r;if(a=isNaN(a)?1:a,i.selectionIsCollapsed){lk(e,{deferred:!0});let t=i.at(i.position);for(;t&&"prompt"!==t.type&&(!t.containsCaret||!t.displayContainsHighlight);)t=t.parent;if((null==t?void 0:t.containsCaret)&&t.displayContainsHighlight){const i=qw(e,Xw(e,t),a);if(i){i.left/=a,i.right/=a,i.top/=a,i.bottom/=a;const e=document.createElement("div");e.classList.add("ML__contains-highlight"),e.style.position="absolute",e.style.left=`${i.left+1}px`,e.style.top=`${Math.ceil(i.top)}px`,e.style.width=`${Math.ceil(i.right-i.left)}px`,e.style.height=`${Math.ceil(i.bottom-i.top)}px`,n.insertBefore(e,n.childNodes[0])}}}else for(const t of function(e){let t=[];for(const n of e){let e=!1;for(const i of t)if(n.left===i.left&&n.right===i.right&&n.top===i.top&&n.bottom===i.bottom){e=!0;break}e||t.push(n)}e=t,t=[];for(const n of e){let i=0;for(const t of e)if(n.left>=t.left&&n.right<=t.right&&n.top>=t.top&&n.bottom<=t.bottom&&(i+=1,i>1))break;1===i&&t.push(n)}return t}(Qw(e,{excludeAtomsWithBackground:!0}))){t.left/=a,t.right/=a,t.top/=a,t.bottom/=a;const e=document.createElement("div");e.classList.add("ML__selection"),e.style.position="absolute",e.style.left=`${t.left}px`,e.style.top=`${t.top}px`,e.style.width=`${Math.ceil(t.right-t.left)}px`,e.style.height=`${Math.ceil(t.bottom-t.top-1)}px`,n.insertBefore(e,n.childNodes[0])}}var Sk;function kk(e,t){t=ip({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},null!=t?t:{}),Sk||(Sk={});for(const n of Object.keys(e))console.assert(!Sk[n],"Selector already defined: ",n),Sk[n]=rp(ip({},t),{fn:e[n]})}function _k(e){let t;if(Array.isArray(e)){if("performWithFeedback"===e[0])return _k(e[1]);t=e[0]}else t=e;return t=t.replace(/-\w/g,(e=>e[1].toUpperCase())),Sk[t]}function Ck(e){var t;return null==(t=_k(e))?void 0:t.target}kk({performWithFeedback:(e,t)=>function(e,t){var n;if(!e)return!1;e.focus(),rE.keypressVibration&&cp()&&navigator.vibrate(3);const i=_k(t);window.MathfieldElement.playSound(null!=(n=null==i?void 0:i.audioFeedback)?n:"keypress");const r=e.executeCommand(t);return e.scrollIntoView(),r}(e,t)}),kk({complete:ik},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),kk({nextSuggestion:function(e){return tk(e,{atIndex:e.suggestionIndex+1}),!1},previousSuggestion:function(e){return tk(e,{atIndex:e.suggestionIndex-1}),!1}},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Pk="mathlive#virtual-keyboard-message";function Ek(e){var t;if("message"!==e.type)return!1;return(null==(t=e.data)?void 0:t.type)===Pk}var Mk,Lk=class e{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new e),this._singleton}set alphabeticLayout(e){this.sendMessage("update-setting",{alphabeticLayout:e})}set layouts(e){this.sendMessage("update-setting",{layouts:e})}get normalizedLayouts(){return[]}set editToolbar(e){this.sendMessage("update-setting",{editToolbar:e})}set actionKeycap(e){this.sendMessage("update-setting",{actionKeycap:e})}set shiftKeycap(e){this.sendMessage("update-setting",{shiftKeycap:e})}set backspaceKeycap(e){this.sendMessage("update-setting",{backspaceKeycap:e})}set tabKeycap(e){this.sendMessage("update-setting",{tabKeycap:e})}set container(e){throw new Error("Container inside an iframe cannot be changed")}show(e){this.sendMessage("show",e)}hide(e){this.sendMessage("hide",e)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(e){e?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(e){return this.sendMessage("execute-command",{command:e}),!0}updateToolbar(e){this.sendMessage("update-toolbar",e)}update(e){this.sendMessage("update-setting",e)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(e,t,n){this.listeners[e]||(this.listeners[e]=new Set),this.listeners[e].has(t)||this.listeners[e].add(t)}dispatchEvent(e){return!this.listeners[e.type]||0===this.listeners[e.type].size||(this.listeners[e.type].forEach((t=>{"function"==typeof t?t(e):null==t||t.handleEvent(e)})),!e.defaultPrevented)}removeEventListener(e,t,n){this.listeners[e]&&this.listeners[e].delete(t)}handleEvent(e){if(Ek(e)){if(!Jw(e.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${e.origin}) cannot be handled`,"SecurityError");this.handleMessage(e.data)}}handleMessage(e){const{action:t}=e;if("execute-command"!==t)return"synchronize-proxy"===t?(this._boundingRect=e.boundingRect,void(this._isShifted=e.isShifted)):"geometry-changed"===t?(this._boundingRect=e.boundingRect,void this.dispatchEvent(new Event("geometrychange"))):void 0;{const{command:t}=e;"virtual-keyboard"===Ck(t)&&this.executeCommand(t)}}sendMessage(e,t={}){if(!window.top)throw new DOMException("A frame does not have access to the top window and can‘t communicate with the keyboard. Review virtualKeyboardTargetOrigin and originValidator on mathfields embedded in an iframe","SecurityError");window.top.postMessage(ip({type:Pk,action:e},t),this.targetOrigin)}},Ak={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"≤"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"≥"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"αβγ",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"φ",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"ς",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"ϵ",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"ρ",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"τ",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"υ",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"θ",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"ι",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"ο",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"π",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"α",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"σ",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"δ",class:"MLK__tex hide-shift",insert:"\\delta",aside:"delta",shift:"\\Delta"},{latex:"\\phi",class:"MLK__tex hide-shift",insert:"\\phi",aside:"phi",shift:"\\Phi"},{label:"γ",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"η",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"ξ",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"κ",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"λ",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"ζ",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"χ",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"ψ",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"ω",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"β",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"ν",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"μ",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"ε",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"ϑ",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"ϰ",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"ϖ",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"ϱ",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"∞≠∈",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:"\n .minimalist-backdrop {\n display: flex;\n justify-content: center;\n } \n .minimalist-container {\n --keycap-height: 40px;\n --keycap-max-width: 53px;\n --keycap-small-font-size: 12px;\n background: var(--keyboard-background);\n padding: 20px;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n border: 1px solid var(--keyboard-border);\n box-shadow: 0 0 32px rgb(0 0 0 / 30%);\n } \n ",backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},Tk={0:["\\varnothing","\\infty"],1:["\\frac{1}{#@}","#@^{-1}","\\times 10^{#?}","\\phi","\\imaginaryI"],2:["\\frac{1}{2}","#@^2","\\sqrt2","\\exponentialE"],3:["\\frac{1}{3}","#@^3","\\sqrt3","\\pi"],4:["\\frac{1}{4}","#@^4"],5:["\\frac{1}{5}","#@^5","\\sqrt5"],6:["\\frac{1}{6}","#@^6"],7:["\\frac{1}{7}","#@^7"],8:["\\frac{1}{8}","#@^8"],9:["\\frac{1}{9}","#@^9"],".":[".",",",";","\\colon"],",":["{,}",".",";","\\colon"],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"},"à","á","â","ä","æ"],b:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"},"ç"],d:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn’t"},"è","é","ê","ë"],g:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"},"ì","í","î","ï"],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\mathbb{N}",aside:"set of natural numbers"},"ñ"],o:["ø","œ","ò","ó","ô","ö","œ"],p:[{latex:"\\mathbb{P}",aside:"set of primes"}],q:[{latex:"\\mathbb{Q}",aside:"set of rational numbers"}],r:[{latex:"\\mathbb{R}",aside:"set of real numbers"}],u:["ù","ú","û","ü"],z:[{latex:"\\mathbb{Z}",aside:"set of integers"}],y:["ý","ÿ"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space
    ⁻³⧸₁₈ em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space
    ³⧸₁₈ em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space
    ⁴⧸₁₈ em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space
    ⁵⧸₁₈ em"},{latex:'\\char"203A\\ \\char"2039',insert:"\\ ",aside:"⅓ em"},{latex:'\\char"203A\\enspace\\char"2039',insert:"\\enspace",aside:"½ em"},{latex:'\\char"203A\\quad\\char"2039',insert:"\\quad",aside:"1 em"},{latex:'\\char"203A\\qquad\\char"2039',insert:"\\qquad",aside:"2 em"}]};function Dk(e,t){var n,i,r;const o=e_.singleton;if(!o)return;const a=Qk(e),s=null!=(i=null==(n=o.getKeycap(null==a?void 0:a.id))?void 0:n.variants)?i:"";if("string"==typeof s&&!Ik(s)||Array.isArray(s)&&0===s.length)return void(null==t||t());const l={};let c="";for(const e of function(e){var t;if("string"!=typeof e)return e;Tk[e]||(Tk[e]=null!=(t=function(e){if("foreground-color"===e){const e=[];for(const t of Object.keys(vp))e.push({class:"swatch-button",label:'',command:["applyStyle",{color:t}]});return e}if("background-color"===e){const e=[];for(const t of Object.keys(mp))e.push({class:"swatch-button",label:'',command:["applyStyle",{backgroundColor:t}]});return e}return}(e))?t:[]);return Tk[e]}(s)){const t=Vk(e),n=Date.now().toString(36).slice(-2)+Math.floor(1e5*Math.random()).toString(36);l[n]=t;const[i,r]=Kk(t);c+=`
    ${i}
    `}const u=document.createElement("div");u.setAttribute("aria-hidden","true"),u.className="MLK__variant-panel",u.style.height="auto";const h=Object.keys(l).length;let d=5;1===h?d=1:2===h||4===h?d=2:3===h||5===h||6===h?d=3:h>=7&&h<14&&(d=4),u.style.width=`calc(var(--variant-keycap-length) * ${d} + 12px)`,u.innerHTML=rE.createHTML(c),GS.open({root:null==(r=null==o?void 0:o.container)?void 0:r.querySelector(".ML__keyboard"),child:u}),Mk=new AbortController;const{signal:p}=Mk,f=null==e?void 0:e.getBoundingClientRect();if(f){f.top-u.clientHeight<0&&(u.style.width="auto",h<=6?u.style.height="56px":h<=12?u.style.height="108px":h<=18?u.style.height="205px":u.classList.add("compact"));const e=Math.max(0,Math.min(window.innerWidth-u.offsetWidth,(f.left+f.right-u.offsetWidth)/2)),n=f.top-u.clientHeight+5;u.style.transform=`translate(${e}px, ${n}px)`,u.classList.add("is-visible"),requestAnimationFrame((()=>{u.addEventListener("pointerup",(e=>{const n=Qk(e.target);(null==n?void 0:n.id)&&l[n.id]&&(Yk(l[n.id]),Nk(),null==t||t(),e.preventDefault())}),{capture:!0,passive:!1,signal:p}),u.addEventListener("pointerenter",(e=>{const t=Qk(e.target);(null==t?void 0:t.id)&&l[t.id]&&t.classList.add("is-active")}),{capture:!0,signal:p}),u.addEventListener("pointerleave",(e=>{const t=Qk(e.target);(null==t?void 0:t.id)&&l[t.id]&&t.classList.remove("is-active")}),{capture:!0,signal:p}),window.addEventListener("pointercancel",(()=>{Nk(),null==t||t()}),{signal:p}),window.addEventListener("pointerup",(()=>{Nk(),null==t||t()}),{signal:p})}))}}function Nk(){null==Mk||Mk.abort(),Mk=null,"open"===GS.state&&GS.close()}function Ik(e){return void 0!==Tk[e]}function Bk(e){return Object.keys(e).map((t=>`${t} {${function(e){return"string"==typeof e?e:Object.entries(e).map((([e,t])=>`${e}:${t} !important`)).join(";")}(e[t])}}`)).join("")}function Rk(e){if(!e)return"";const t=new ww,n=new _w({mode:"math",type:"root",body:Gx(e,{context:t,args:e=>"@"===e?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})});return ow(rw(fS(new nw(n.render(t),{classes:"ML__base"}),t)),{classes:"ML__latex"}).toMarkup()}function Ok(e){if(Array.isArray(e))return e.map((e=>Ok(e))).flat();const t="string"==typeof e?{markup:e}:e;return"rows"in t&&Array.isArray(t.rows)&&(t.rows=t.rows.map((e=>e.map((e=>Vk(e)))))),null!=t.id||(t.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(1e5*Math.random()).toString(36)),[t]}function Fk(e){if("alphabetic"===e)return function(){var e,t;let n=window.mathVirtualKeyboard.alphabeticLayout;if("auto"===n){const t=FS();t&&(n=t.virtualLayout),n&&"auto"!==n||(n=null!=(e={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[dp.locale.slice(0,2)])?e:"qwerty")}const i={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},r=null!=(t=i[n])?t:i.qwerty,o="azerty"===n?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"é"},variants:"2"},{label:"3",shift:{latex:"ù"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"è"},variants:"7"},{label:"8",shift:{latex:"ê"},variants:"8"},{label:"9",shift:{latex:"ç"},variants:"9"},{label:"0",shift:{latex:"à"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const e of r){const t=[];for(const i of e)/[a-z]/.test(i)?t.push({label:i,class:"hide-shift",shift:{label:i.toUpperCase()},variants:Ik(i)?i:void 0}):"~"===i?"dvorak"!==n?t.push("[backspace]"):t.push({label:"[backspace]",width:1}):"^"===i?t.push("[shift]"):" "===i&&t.push("[separator-5]");o.push(t)}return o.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:Ok({rows:o})}}();if("string"==typeof e)return console.assert(void 0!==Ak[e],`MathLive 0.98.5: unknown keyboard layout "${e}"`),Fk(Ak[e]);let t;if("rows"in e&&Array.isArray(e.rows)){console.assert(!("layers"in e||"markup"in e),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const n=e,{rows:i}=n,r=ap(n,["rows"]);t=rp(ip({},r),{layers:Ok({rows:e.rows})})}else if("markup"in e&&"string"==typeof e.markup){const n=e,{markup:i}=n,r=ap(n,["markup"]);t=rp(ip({},r),{layers:Ok(e.markup)})}else t=ip({},e),"layers"in e?t.layers=Ok(e.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let n=!1,i=!1;for(const e of t.layers)if(e.rows)for(const t of e.rows.flat()){Jk(t)&&(n=!0);const e=t.command;"string"==typeof e&&["undo","redo","cut","copy","paste"].includes(e)&&(i=!0)}return"displayShiftedKeycaps"in e&&void 0!==e.displayShiftedKeycaps||(t.displayShiftedKeycaps=n),"displayEditToolbar"in e&&void 0!==e.displayEditToolbar||(t.displayEditToolbar=!i),t}function zk(e,t){var n,i;let r='
    ';if(e.normalizedLayouts.length>1)for(const[o,a]of e.normalizedLayouts.entries()){const e=a,s=[o===t?"selected":"layer-switch"];e.tooltip&&s.push("MLK__tooltip"),e.labelClass&&s.push(...e.labelClass.split(" ")),r+=`
    ${null!=(i=e.label)?i:"untitled"}
    `}return r+="
    ",r}function jk(e,t){let n="";if("none"===e.editToolbar)return"";const i=[];t.selectionIsCollapsed?i.push("undo","redo","pasteFromClipboard"):i.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const r={undo:`
    \n \n
    `,redo:`
    \n \n
    `,cutToClipboard:`\n
    \n \n
    \n `,copyToClipboard:`\n
    \n \n
    \n `,pasteFromClipboard:`\n
    \n \n
    \n `};return n+=i.map((e=>r[e])).join(""),n}function $k(e){const t=e_.singleton;if(!t)return;const n={};if(!e.id){if(e.hasAttribute("data-label")&&(n.label=e.dataset.label),e.hasAttribute("data-latex")&&(n.latex=e.dataset.latex),e.hasAttribute("data-key")&&(n.key=e.dataset.key),e.hasAttribute("data-insert")&&(n.insert=e.dataset.insert),e.hasAttribute("data-variants")&&(n.variants=e.dataset.variants),e.hasAttribute("data-aside")&&(n.aside=e.dataset.aside),e.className&&(n.class=e.className),n.label||n.latex||n.key||n.insert||(n.latex=e.innerText,n.label=e.innerHTML),e.hasAttribute("data-command"))try{n.command=JSON.parse(e.dataset.command)}catch(e){}e.id=t.registerKeycap(n)}if(!e.innerHTML){const[t,i]=Kk(n);e.innerHTML=window.MathfieldElement.createHTML(t)}}function Hk(e){e.resetKeycapRegistry(),ox("virtual-keyboard"),ox("core"),mk();const t=document.createElement("div");t.className="ML__keyboard";const n=document.createElement("div");n.className="MLK__plate",n.innerHTML=window.MathfieldElement.createHTML('\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n\n\n\n \n\n\n\n \n\n\n \n\n\n \n\n\n \n\n\n \n\n\n\n\n\n\n\n\n\n\n \n\n\n'+e.normalizedLayouts.map(((t,n)=>function(e,t,n){const i=[];if(!("layers"in t))return"";for(const r of t.layers)i.push(`
    `),(e.normalizedLayouts.length>1||t.displayEditToolbar)&&(i.push("")),i.push(Zk(e,r)),i.push("
    ");return i.join("")}(e,t,n))).join(""));const i=document.createElement("div");i.className="MLK__backdrop",i.appendChild(n),t.appendChild(i),t.addEventListener("pointerdown",Wk,{passive:!1});const r=t.querySelectorAll(".ML__edit-toolbar");if(r)for(const t of r)t.addEventListener("click",(t=>{var n,i;let r=t.target,o="";for(;r&&!o;)o=null!=(n=null==r?void 0:r.getAttribute("data-command"))?n:"",r=null!=(i=null==r?void 0:r.parentElement)?i:null;o&&e.executeCommand(JSON.parse(o))}));!function(e){for(const t of e)$k(t)}(t.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const o=t.querySelectorAll(".MLK__layer");console.assert(o.length>0,"No virtual keyboards available");for(const e of o)e.addEventListener("pointerdown",(e=>e.preventDefault()));return e.currentLayer=e.latentLayer,t}function Zk(e,t){if("string"==typeof t)return t;let n="";if("string"==typeof t.style?n+=``:"object"==typeof t.style&&(n+=``),t.backdrop&&(n+=`
    `),t.container&&(n+=`
    `),t.rows){n+="
    ";for(const i of t.rows){n+="
    ";for(const t of i)if(t){const i=e.registerKeycap(t),[r,o]=Kk(t);/(^|\s)separator/.test(o)?n+=`
    ${r}
    `}n+="
    "}n+="
    "}else t.markup&&(n+=t.markup);return t.container&&(n+="
    "),t.backdrop&&(n+="
    "),n}function Kk(e,t={shifted:!1}){var n,i,r,o,a,s,l;let c="",u=null!=(n=e.class)?n:"";if(t.shifted&&Jk(e)&&(u+=" is-active"),t.shifted&&"shift"in e)"string"==typeof e.shift?c=Rk(e.shift):"object"==typeof e.shift&&(c=e.shift.label?e.shift.label:null!=(i=Rk(e.shift.latex||e.shift.insert||"")||e.shift.key)?i:""),"object"==typeof e.shift&&(u=null!=(o=null!=(r=e.shift.class)?r:e.class)?o:"");else{if(c=e.label?e.label:null!=(a=Rk(e.latex||e.insert||"")||e.key)?a:"",e.shift){let t;t="string"==typeof e.shift?Rk(e.shift):e.shift.label?e.shift.label:null!=(s=Rk(e.shift.latex||e.shift.insert||"")||e.shift.key)?s:"",c+=`${t}`}e.aside&&(c+=``)}return e.layer&&!/layer-switch/.test(u)&&(u+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(u)||(u+=" MLK__keycap"),!/\bw[0-9]+\b/.test(u)&&e.width&&(u+=null!=(l={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[e.width])?l:""),[c,u||"MLK__keycap"]}var Gk,Uk={"[left]":{class:"action hide-shift",label:"",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"",command:["performWithFeedback","moveToNextChar"],shift:{label:"",command:["performWithFeedback","extendSelectionForward"]}},"[up]":{class:"action hide-shift",label:"↑",command:["performWithFeedback","moveUp"],shift:{label:"↟",command:["performWithFeedback","extendSelectionUpward"]}},"[down]":{class:"action hide-shift",label:"↓",command:["performWithFeedback","moveDown"],shift:{label:"↡",command:["performWithFeedback","extendSelectionDownward"]}},"[return]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{command:["performWithFeedback","addRowAfter"]},width:1.5,label:""},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"",command:["performWithFeedback","addRowAfter"]},width:1.5,label:""},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:""},"[.]":{variants:".",command:["performWithFeedback","insertDecimalSeparator"],shift:",",class:"big-op hide-shift",label:"."},"[,]":{variants:",",command:["performWithFeedback","insertDecimalSeparator"],shift:".",class:"big-op hide-shift",label:","},"[+]":{variants:[{latex:"\\sum_{#0}^{#0}",class:"small"},"\\oplus"],latex:"+",label:"+",class:"big-op hide-shift",shift:{latex:"\\sum",insert:"\\sum",class:"small"}},"[-]":{variants:["\\pm","\\ominus"],latex:"-",label:"−",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"÷"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"×",shift:{latex:"\\times"},class:"big-op hide-shift"},"[=]":{variants:["\\neq","\\equiv","\\varpropto","\\thickapprox","\\lt","\\gt","\\le","\\ge"],latex:"=",label:"=",shift:{label:"≠",latex:"\\ne"},class:"big-op hide-shift"},"[backspace]":{class:"action bottom right hide-shift",width:1.5,command:["performWithFeedback","deleteBackward"],label:"",shift:{class:"action warning",label:"",command:"deleteAll"}},"[undo]":{class:"ghost if-can-undo",command:"undo",label:"",tooltip:"tooltip.undo"},"[redo]":{class:"ghost if-can-redo",command:"redo",label:"",tooltip:"tooltip.redo"},"[(]":{variants:[{latex:"\\lbrack",key:"["},"\\langle","\\lfloor","\\lceil",{latex:"\\lbrace",key:"{"}],key:"(",label:"(",shift:{label:"[",key:"["},class:"hide-shift"},"[)]":{variants:[{latex:"\\rbrack",key:"]"},"\\rangle","\\rfloor","\\rceil",{latex:"\\rbrace",key:"]"}],key:")",label:")",shift:{label:"]",latex:"\\rbrack"},class:"hide-shift"},"[0]":{variants:"0",latex:"0",label:"0",shift:"\\infty",class:"hide-shift"},"[1]":{variants:"1",latex:"1",label:"1",shift:"#@^{-1}",class:"hide-shift"},"[2]":{variants:"2",latex:"2",label:"2",shift:"#@^2",class:"hide-shift"},"[3]":{variants:"3",latex:"3",label:"3",shift:"#@^3",class:"hide-shift"},"[4]":{variants:"4",latex:"4",label:"4",shift:"#@^4",class:"hide-shift"},"[5]":{variants:"5",latex:"5",label:"5",shift:"#@^5",class:"hide-shift"},"[6]":{variants:"6",latex:"6",label:"6",shift:"#@^6",class:"hide-shift"},"[7]":{variants:"7",latex:"7",label:"7",shift:"#@^7",class:"hide-shift"},"[8]":{variants:"8",latex:"8",label:"8",shift:"#@^8",class:"hide-shift"},"[9]":{variants:"9",latex:"9",label:"9",shift:"#@^9",class:"hide-shift"},"[separator-5]":{class:"separator",width:.5},"[separator]":{class:"separator"},"[separator-10]":{class:"separator"},"[separator-15]":{class:"separator",width:1.5},"[separator-20]":{class:"separator",width:2},"[separator-50]":{class:"separator",width:5},"[shift]":{class:"shift bottom left",width:1.5,label:""},"[foreground-color]":{variants:"foreground-color",command:["applyStyle",{color:"red"}],label:""},"[background-color]":{variants:"background-color",command:["applyStyle",{backgroundColor:"yellow"}],label:""}};function Vk(e){var t;if("string"==typeof e){if("[.]"===e&&","===window.MathfieldElement.decimalSeparator&&(e="[,]"),!Uk[e])return{latex:e};e={label:e}}let n;return"label"in e&&e.label&&Uk[e.label]&&(n=rp(ip(ip({},Uk[e.label]),e),{label:Uk[e.label].label})),"key"in e&&e.key&&Uk[e.key]&&(n=rp(ip(ip({},Uk[e.key]),e),{key:Uk[e.key].key})),n?("insertDecimalSeparator"===n.command&&(n.label=null!=(t=window.MathfieldElement.decimalSeparator)?t:"."),"[action]"===e.label&&(n=ip(ip({},n),window.mathVirtualKeyboard.actionKeycap)),"[shift]"===e.label&&(n=ip(ip({},n),window.mathVirtualKeyboard.shiftKeycap)),"[backspace]"===e.label&&(n=ip(ip({},n),window.mathVirtualKeyboard.backspaceKeycap)),"[tab]"===e.label&&(n=ip(ip({},n),window.mathVirtualKeyboard.tabKeycap)),n):e}function Wk(e){var t;if(0!==e.button)return;const n=e_.singleton;if(!n)return;let i=e.target;for(;i&&!i.getAttribute("data-layer");)i=i.parentElement;if(i)return n.currentLayer=null!=(t=i.getAttribute("data-layer"))?t:"",void e.preventDefault();const r=Qk(e.target);if(!(null==r?void 0:r.id))return;const o=n.getKeycap(r.id);if(!o)return;console.assert("pointerdown"===e.type);const a=new AbortController,s=a.signal;r.classList.add("is-pressed"),r.addEventListener("pointerenter",qk(a),{capture:!0,signal:s}),r.addEventListener("pointerleave",qk(a),{capture:!0,signal:s}),r.addEventListener("pointercancel",qk(a),{signal:s}),r.addEventListener("pointerup",qk(a),{signal:s}),Jk(o)&&(r.classList.add("is-active"),n.shiftPressCount++),o.variants&&(Gk&&clearTimeout(Gk),Gk=setTimeout((()=>{r.classList.contains("is-pressed")&&(r.classList.remove("is-pressed"),r.classList.add("is-active"),e.target&&"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId),Dk(r,(()=>{a.abort(),null==r||r.classList.remove("is-active")})))}),300)),e.preventDefault()}function qk(e){return t=>{const n=Qk(t.target);if(!(null==n?void 0:n.id))return;const i=e_.singleton;if(!i)return;const r=i.getKeycap(n.id);if(r){if("pointerenter"===t.type&&t.target===n){t.isPrimary&&n.classList.add("is-pressed")}return"pointercancel"===t.type?(n.classList.remove("is-pressed"),Jk(r)&&(i.shiftPressCount--,n.classList.toggle("is-active",i.isShifted)),void e.abort()):"pointerleave"===t.type&&t.target===n?(n.classList.remove("is-pressed"),void(Jk(r)&&(i.shiftPressCount--,n.classList.toggle("is-active",i.isShifted)))):"pointerup"===t.type?(Gk&&clearTimeout(Gk),Jk(r)?n.classList.toggle("is-active",i.isShifted):n.classList.contains("is-pressed")&&(n.classList.remove("is-pressed"),i.isShifted&&r.shift?"string"==typeof r.shift?i.executeCommand(["insert",r.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):Yk(r.shift):Yk(r),1!==i.shiftPressCount||t.shiftKey||(i.shiftPressCount=0)),e.abort(),void t.preventDefault()):void 0}}}function Yk(e){var t;let n=e.command;!n&&e.insert&&(n=["insert",e.insert,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),!n&&e.key&&(n=["typedText",e.key,{focus:!0,feedback:!0,simulateKeystroke:!0}]),!n&&e.latex&&(n=["insert",e.latex,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),n||(n=["typedText",e.label,{focus:!0,feedback:!0,simulateKeystroke:!0}]),null==(t=e_.singleton)||t.executeCommand(n)}function Xk(e){if(1!==e.nodeType)return!1;const t=e.classList;return t.contains("MLK__keycap")||t.contains("shift")||t.contains("action")||t.contains("fnbutton")||t.contains("bigfnbutton")}function Qk(e){if(!e)return;let t=e;for(;t&&!Xk(t);)t=t.parentElement;return null!=t?t:void 0}function Jk(e){return!!e.class&&/(^|\s)shift($|\s)/.test(e.class)}var e_=class e{constructor(){var e,t,n;this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0,this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=null!=(t=null==(e=window.document)?void 0:e.body)?t:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver((e=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})})),this.listeners={};try{null==(n=window.top)||n.addEventListener("message",this)}catch(e){window.addEventListener("message",this)}document.body.addEventListener("focusin",(e=>{const t=e.target;(null==t?void 0:t.isConnected)&&setTimeout((()=>{const e=t_();e&&!e.readOnly&&"auto"===e.mathVirtualKeyboardPolicy&&("matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0)&&this.show({animate:!0})}),300)})),document.addEventListener("focusout",(e=>{"manual"!==e.target.mathVirtualKeyboardPolicy&&setTimeout((()=>{t_()||this.hide()}),300)}))}get currentLayer(){var e,t,n;return null!=(n=null==(t=null==(e=this._element)?void 0:e.querySelector(".MLK__layer.is-visible"))?void 0:t.id)?n:""}set currentLayer(e){var t;if(!this._element)return void(this.latentLayer=e);let n=e?this._element.querySelector(`#${e}.MLK__layer`):null;n||(n=this._element.querySelector(".MLK__layer")),n&&(null==(t=this._element.querySelector(".MLK__layer.is-visible"))||t.classList.remove("is-visible"),n.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(e){var t;this._shiftPressCount=e>2||e<0?0:e,null==(t=this._element)||t.classList.toggle("is-caps-lock",2===this.shiftPressCount),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(e){const t="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(1e5*Math.random()).toString(36);return this.keycapRegistry[t]=e,t}getKeycap(e){return e?this.keycapRegistry[e]:void 0}getLayer(e){const t=this.normalizedLayouts;for(const n of t)for(const t of n.layers)if(t.id===e)return t}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(e){this._alphabeticLayout=e,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(e){this._actionKeycap="string"==typeof e?{label:e}:e}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(e){this._shiftKeycap="string"==typeof e?{label:e}:e}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(e){this._backspaceKeycap="string"==typeof e?{label:e}:e}get tabKeycap(){return this._tabKeycap}set tabKeycap(e){this._tabKeycap="string"==typeof e?{label:e}:e}get layouts(){return this._layouts}set layouts(e){this.updateNormalizedLayouts(e),this.rebuild()}updateNormalizedLayouts(e){const t=Array.isArray(e)?[...e]:[e],n=t.findIndex((e=>"default"===e));n>=0&&t.splice(n,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(t),this._normalizedLayouts=t.map((e=>Fk(e)))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(e){this._editToolbar=e,this.rebuild()}get container(){return this._container}set container(e){this._container=e,this.rebuild()}static get singleton(){if(void 0===this._singleton)try{this._singleton=new e}catch(e){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(e,t,n){this.listeners[e]||(this.listeners[e]=new Set),this.listeners[e].has(t)||this.listeners[e].add(t)}dispatchEvent(e){return!this.listeners[e.type]||0===this.listeners[e.type].size||(this.listeners[e.type].forEach((t=>{"function"==typeof t?t(e):null==t||t.handleEvent(e)})),!e.defaultPrevented)}removeEventListener(e,t,n){this.listeners[e]&&this.listeners[e].delete(t)}get element(){return this._element}set element(e){var t;this._element!==e&&(null==(t=this._element)||t.remove(),this._element=e)}get visible(){return this._visible}set visible(e){e?this.show():this.hide()}get boundingRect(){var e;if(!this._visible)return new DOMRect;const t=null==(e=this._element)?void 0:e.getElementsByClassName("MLK__plate")[0];return t?t.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var e,t;const n=this.boundingRect.height;if(this.container===document.body){null==(e=this._element)||e.style.setProperty("--_keyboard-height",`calc(${n}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const t=n-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${t}px)`:`${t}px`}else null==(t=this._element)||t.style.setProperty("--_keyboard-height",`${n}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const e=this.currentLayer;requestAnimationFrame((()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=e,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))}))}render(){if(!this._element)return;const e=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",Boolean(e&&(e.backdrop||e.container)));const t=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(t)for(const e of t){const t=this.getKeycap(e.id);if(t){const[n,i]=Kk(t,{shifted:this.isShifted});e.innerHTML=window.MathfieldElement.createHTML(n),e.className=i}}}show(e){var t;if(this._visible)return;const n=this.container;if(n&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const e=this._element.getElementsByClassName("MLK__plate")[0];if(e&&this.observer.observe(e),n===window.document.body){const t=n.style.paddingBottom;this.originalContainerBottomPadding=t;const i=e.offsetHeight-1;n.style.paddingBottom=t?`calc(${t} + ${i}px)`:`${i}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),null==(t=this._element)||t.classList.toggle("is-caps-lock",2===this.shiftPressCount),this.currentLayer=this.latentLayer}this._visible=!0,(null==e?void 0:e.animate)?requestAnimationFrame((()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",(()=>{var e;return null==(e=this._element)?void 0:e.classList.remove("animate")}),{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())})):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(e){var t;const n=this.container;if(n&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const e=this._element.getElementsByClassName("MLK__plate")[0];e&&this.observer.unobserve(e),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),Nk(),ax("core"),ax("virtual-keyboard"),null==(t=this._element)||t.remove(),this._element=void 0,null!==this.originalContainerBottomPadding&&(n.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var e,t;return null!=(t=null==(e=this.element)?void 0:e.offsetHeight)?t:0}buildAndAttachElement(){var e;console.assert(!this.element),this.element=Hk(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",(e=>{e.shiftKey||((e.ctrlKey||2===e.button)&&Dk(e.target),e.preventDefault(),e.stopPropagation())}),{capture:!0}),null==(e=this.container)||e.appendChild(this.element)}handleEvent(e){if(Ek(e)){if(!Jw(e.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${e.origin}) cannot be handled`,"SecurityError");"disconnect"===e.data.action?this.connectedMathfieldWindow=void 0:"update-setting"!==e.data.action&&"proxy-created"!==e.data.action&&"execute-command"!==e.data.action&&(console.assert(void 0!==e.source),this.connectedMathfieldWindow=e.source),this.handleMessage(e.data,e.source)}if(this._element)switch(e.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":2!==e.button&&e.preventDefault();break;case"keydown":"Shift"!==e.key||e.repeat||(this.shiftPressCount=1);break;case"keyup":("Shift"===e.key||!e.getModifierState("Shift")&&2!==this.shiftPressCount)&&(this.shiftPressCount=0)}}handleMessage(e,t){const{action:n}=e;if("execute-command"!==n){if("connect"!==n&&"show"!==n||this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},t),"disconnect"!==n&&window===window.top)if("show"!==n){if("hide"!==n)return"update-setting"===n?(e.alphabeticLayout&&(this.alphabeticLayout=e.alphabeticLayout),e.layouts&&(this.layouts=e.layouts),void(e.editToolbar&&(this.editToolbar=e.editToolbar))):void("proxy-created"!==n||this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},t));void 0!==e.animate?this.hide({animate:e.animate}):this.hide()}else void 0!==e.animate?this.show({animate:e.animate}):this.show()}else{const{command:t}=e,n=Ck(t);if(void 0!==window.top&&"virtual-keyboard"!==n)return;this.executeCommand(t)}}sendMessage(e,t,n){if(n||(n=this.connectedMathfieldWindow),null!==this.targetOrigin&&"null"!==this.targetOrigin&&n!==window){if(n)n.postMessage(ip({type:Pk,action:e},t),{targetOrigin:this.targetOrigin});else if(t.command&&this.dispatchEvent(new CustomEvent("math-virtual-keyboard-command",{detail:t.command})),"execute-command"===e&&Array.isArray(t.command)&&"insert"===t.command[0]){const e=t.command[1].split("");for(const t of e)this.dispatchEvent(new KeyboardEvent("keydown",{key:t,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:t,bubbles:!0}))}}else window.dispatchEvent(new MessageEvent("message",{source:window,data:ip({type:Pk,action:e},t)}))}stateWillChange(e){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:e},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(e){const t=this._element;if(!t)return;t.classList.toggle("is-math-mode","math"===e.mode),t.classList.toggle("is-text-mode","text"===e.mode),t.classList.toggle("can-undo",e.canUndo),t.classList.toggle("can-redo",e.canRedo),t.classList.toggle("can-copy",!e.selectionIsCollapsed),t.classList.toggle("can-copy",!e.selectionIsCollapsed),t.classList.toggle("can-paste",!0);const n=t.querySelectorAll(".ML__edit-toolbar");if(n)for(const t of n)t.innerHTML=jk(this,e)}update(e){this._style=e.style,this.updateToolbar(e)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(e){let t,n=[],i=Ck(e);return sp(e)?(t=e[0],"performWithFeedback"===t&&(i=Ck(e=e.slice(1))),n=e.slice(1)):t=e,t=t.replace(/-\w/g,(e=>e[1].toUpperCase())),"virtual-keyboard"===i?Sk[t].fn(void 0,...n):(this.sendMessage("execute-command",{command:e}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function t_(){var e,t;let n=KS(),i=null;for(;n;){if("host"in n&&"math-field"===(null==(t=null==(e=n.host)?void 0:e.tagName)?void 0:t.toLowerCase())){i=n.host;break}n=n.parentNode}return i}if(lp()&&!("mathVirtualKeyboard"in window))if(window===window.top){const e=e_.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>e})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>Lk.singleton,configurable:!0});function n_(e){const t={};for(const n of Object.keys(e))switch(n){case"scriptDepth":const i=e.scriptDepth;if(sp(i))t.scriptDepth=[i[0],i[1]];else if("number"==typeof i)t.scriptDepth=[i,i];else{if("string"!=typeof i)throw new TypeError("Unexpected value for scriptDepth");{const[e,n]=i.split(",").map((e=>parseInt(e.trim())));t.scriptDepth=[e,n]}}break;case"mathVirtualKeyboardPolicy":let r=e.mathVirtualKeyboardPolicy.toLowerCase();if("sandboxed"===r){if(window!==window.top){const e=e_.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>e})}r="manual"}t.mathVirtualKeyboardPolicy=r;break;case"letterShapeStyle":"auto"===e.letterShapeStyle?dp.locale.startsWith("fr")?t.letterShapeStyle="french":t.letterShapeStyle="tex":t.letterShapeStyle=e.letterShapeStyle;break;case"defaultMode":["text","math","inline-math"].includes(e.defaultMode)?t.defaultMode=e.defaultMode:(console.error('MathLive 0.98.5: valid values for defaultMode are "text", "math" or "inline-math"'),t.defaultMode="math");break;case"macros":t.macros=Qp(e.macros);break;default:sp(e[n])?t[n]=[...e[n]]:"object"!=typeof e[n]||e[n]instanceof Element||"computeEngine"===n?t[n]=e[n]:t[n]=ip({},e[n])}return t}function i_(e,t){let n;n="string"==typeof t?[t]:void 0===t?Object.keys(e):t;const i={};for(const t of n)null===e[t]?i[t]=null:sp(e[t])?i[t]=[...e[t]]:"object"!=typeof e[t]||e[t]instanceof Element||"computeEngine"===t?i[t]=e[t]:i[t]=ip({},e[t]);return"string"==typeof t?i[t]:i}function r_(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:wp,backgroundColorMap:xp,letterShapeStyle:dp.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:e=>["\\sin","\\cos","\\tan","\\arcsin","\\arccos","\\arctan","\\arcsec","\\arccsc","\\arsinh","\\arcosh","\\artanh","\\arcsech","\\arccsch","\\arg","\\ch","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\sec","\\sinh","\\sh","\\tanh","\\tg","\\th","\\lg","\\lb","\\log","\\ln"].includes(e),mathModeSpace:"",placeholderSymbol:"▢",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:Kw,inlineShortcuts:Iw,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:null==window?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:$w,value:""}}function o_(e){return"inline-math"===e.defaultMode?"math":e.defaultMode}function a_(e,t){e&&t&&(sp(e)?e.forEach((e=>a_(e,t))):"object"==typeof e&&(e.style.color||e.style.backgroundColor||e.style.fontFamily||e.style.fontShape||e.style.fontSeries||e.style.fontSize||e.style.variant||e.style.variantStyle||(e.applyStyle(t),a_(e.body,t),a_(e.above,t),a_(e.below,t),a_(e.subscript,t),a_(e.superscript,t))))}function s_(e,t,n,i){function r(e,t){for(const n of o)if(n.style[e]!==t)return!1;return!0}if((t=e.normalizeRange(t))[0]===t[1])return!1;const o=e.getAtoms(t,{includeChildren:!0});"toggle"===i.operation&&(n.color&&r("color",n.color)&&(n.color="none",delete n.verbatimColor),n.backgroundColor&&r("backgroundColor",n.backgroundColor)&&(n.backgroundColor="none",delete n.verbatimBackgroundColor),n.fontFamily&&r("fontFamily",n.fontFamily)&&(n.fontFamily="none"),n.fontSeries&&r("fontSeries",n.fontSeries)&&(n.fontSeries="auto"),n.fontShape&&r("fontShape",n.fontShape)&&(n.fontShape="auto"),n.fontSize&&r("fontSize",n.fontSize)&&(n.fontSize=5),n.variant&&r("variant",n.variant)&&(n.variant="normal"),n.variantStyle&&r("variantStyle",n.variantStyle)&&(n.variantStyle=""));for(const e of o)e.applyStyle(n);return!0}function l_(e,t=1){return function(e){for(const t of e)for(const e of t)if(e.length>0)return!1;return!0}(e)?Array(t).fill([[new _w({type:"first"}),new kx]]):e.map((e=>0===e.length?[[new _w({type:"first"})]]:e.map((e=>0===e.length?[new _w({type:"first"})]:("first"!==e[0].type&&e.unshift(new _w({type:"first"})),e)))))}function c_(e,t=[[[]]],n=[],i=[]){switch(t=l_(t,["split","align","align*","aligned","eqnarray"].includes(e)?2:1),e){case"math":case"displaymath":return new Lx(e,t,n,{mathstyleName:"textstyle"});case"center":return new Lx(e,t,n,{columns:[{align:"c"}]});case"multline":case"multline*":return new Lx(e,t,n,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new Lx(e,t,n,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new Lx(e,t,n,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new Lx(e,t,n,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:u_(i[0])});case"bmatrix":case"bmatrix*":return new Lx(e,t,n,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:u_(i[0])});case"Bmatrix":case"Bmatrix*":return new Lx(e,t,n,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:u_(i[0])});case"vmatrix":case"vmatrix*":return new Lx(e,t,n,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:u_(i[0])});case"Vmatrix":case"Vmatrix*":return new Lx(e,t,n,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:u_(i[0])});case"matrix":case"matrix*":return new Lx(e,t,n,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:u_(null==i?void 0:i[0])});case"smallmatrix":case"smallmatrix*":return new Lx(e,t,n,{mathstyleName:"scriptstyle",columns:u_(null==i?void 0:i[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new Lx(e,t,n,{mathstyleName:"dcases"===e?"displaystyle":"textstyle",arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",columns:[{align:"l"},{gap:1},{align:"l"}]});case"rcases":return new Lx(e,t,n,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new Lx(e,t,n,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let i=0;for(const e of t)i=Math.max(i,e.length);const r=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let o=2;for(;o1){i.removeRow(r[0]);const t=i.getCell(Math.max(0,r[0]-1),r[1]);o=e.offsetOf(t[t.length-1])}break;case"column":if(i.colCount>i.minColumns){i.removeColumn(r[1]);const t=i.getCell(r[0],Math.max(0,r[1]-1));o=e.offsetOf(t[t.length-1])}}o&&e.setPositionHandlingPlaceholder(o)}}function b_(){return[new kx]}Vp(["math","displaymath"],c_),Vp("center",c_),qp("displaylines","",{parse:e=>{const t=[];let n=[];for(e.beginContext({tabular:!0});;){if(e.end())break;if(e.match("<}>"))break;e.matchColumnSeparator()||e.matchRowSeparator()?(t.push([n]),n=[]):n.push(...e.scan((e=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(e))))}return e.endContext(),t.push([n]),t},createAtom:e=>new Lx("lines",e.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Wp("array","{columns:colspec}",((e,t,n,i)=>new Lx(e,l_(t),n,{columns:i[0],mathstyleName:"textstyle"}))),Wp(["equation","equation*","subequations"],"",((e,t,n)=>new Lx(e,l_(t),n,{columns:[{align:"c"}]}))),Wp(["multline","multline*"],"",c_),Wp(["align","align*","aligned","eqnarray"],"",c_),Wp("split","",c_),Wp(["gather","gathered"],"",c_),Wp(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",c_),Wp(["smallmatrix","smallmatrix*"],"[columns:colspec]",c_),Wp(["cases","dcases","rcases"],"",c_),kk({addRowAfter:g_,addColumnAfter:m_,addRowBefore:function(e){return!!e.contentWillChange({inputType:"insertText"})&&(f_(e,"before row"),e.contentDidChange({inputType:"insertText"}),!0)},addColumnBefore:function(e){return!!e.contentWillChange({inputType:"insertText"})&&(f_(e,"before column"),e.contentDidChange({inputType:"insertText"}),!0)},removeRow:function(e){return!!e.contentWillChange({inputType:"deleteContent"})&&(y_(e,"row"),e.contentDidChange({inputType:"deleteContent"}),!0)},removeColumn:function(e){return!!e.contentWillChange({inputType:"deleteContent"})&&(y_(e,"column"),e.contentDidChange({inputType:"deleteContent"}),!0)},setEnvironment:v_},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});var w_=class e{constructor(e){this.recording=!1,this.model=e,this.reset()}reset(){this.stack=[],this.index=-1,this.lastOp=""}startRecording(){this.recording=!0}stopRecording(){this.recording=!1}canUndo(){return this.index-1>=0}canRedo(){return this.stack.length-1>this.index}stopCoalescing(e){e&&this.index>=0&&(this.stack[this.index].selection=e),this.lastOp=""}undo(){return!!this.canUndo()&&(this.model.setState(this.stack[this.index-1],{silenceNotifications:!1,type:"undo"}),this.index-=1,this.lastOp="",!0)}redo(){return!!this.canRedo()&&(this.index+=1,this.model.setState(this.stack[this.index],{silenceNotifications:!1,type:"redo"}),this.lastOp="",!0)}pop(){this.canUndo()&&(this.stack.splice(this.index,this.stack.length-this.index),this.index-=1)}snapshot(t){return!!this.recording&&(t&&t===this.lastOp&&this.pop(),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push(this.model.getState()),this.index+=1,this.stack.length>e.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=null!=t?t:"",!0)}};w_.maximumDepth=1e3;var x_=w_;function S_(e,t,n){if("text"!==e.at(t).mode)return t;const i="backward"===n?-1:1;let r;if(Dp.test(e.at(t).value)){let n,o=t;do{n="text"===e.at(o).mode&&Dp.test(e.at(o).value),o+=i}while(e.at(o)&&n);r=e.at(o)?o-2*i:o-i}else if(/\s/.test(e.at(t).value)){let n=t;for(;e.at(n)&&"text"===e.at(n).mode&&/\s/.test(e.at(n).value);)n+=i;if(e.at(n)){let t=!0;do{t="text"===e.at(n).mode&&!/\s/.test(e.at(n).value),n+=i}while(e.at(n)&&t);r=e.at(n)?n-2*i:n-i}else r=n-i}else{let n=t;for(;e.at(n)&&"text"===e.at(n).mode&&!/\s/.test(e.at(n).value);)n+=i;r=e.at(n)?n:n-i;let o=!0;for(;e.at(n)&&o;)o="text"===e.at(n).mode&&/\s/.test(e.at(n).value),o&&(r=n),n+=i;r=e.at(n)?n-2*i:n-i}return r-(i>0?0:1)}function k_(e,t,n){var i,r,o,a,s,l,c;const u=e.position;null!=(i=null==n?void 0:n.extend)&&i||e.collapseSelection(t);let h=e.at(e.position);if("forward"===t&&("subsup"===h.type?(h=h.rightSibling,h||(h=e.at(e.position+1))):h=e.at(e.position+1)),!h)return e.announce("plonk"),!1;let d=e.offsetOf(h);if(h instanceof Ew)d=S_(e,d,t);else if(h instanceof nS)if(h.isSuggestion)for(console.assert("forward"===t);h&&h instanceof nS;)h.isSuggestion=!1,d=e.offsetOf(h),h=h.rightSibling;else if("forward"===t){if(h=h.rightSibling,!(h&&h instanceof nS))return e.announce("plonk"),!1;for(;h&&h instanceof nS&&/[a-zA-Z\*]/.test(h.value);)d=e.offsetOf(h),h=h.rightSibling}else{if(h=h.leftSibling,!(h&&h instanceof nS))return e.announce("plonk"),!1;for(;h&&h instanceof nS&&/[a-zA-Z\*]/.test(h.value);)d=e.offsetOf(h),h=h.leftSibling}else if("forward"===t&&"mopen"===h.type){let t=0;do{"mopen"===h.type?t+=1:"mclose"===h.type&&(t-=1),h=h.rightSibling}while(!h.isLastSibling&&0!==t);d=e.offsetOf(h.leftSibling)}else if("backward"===t&&"mclose"===h.type){let t=0;do{"mopen"===h.type?t+=1:"mclose"===h.type&&(t-=1),h=h.leftSibling}while(!h.isFirstSibling&&0!==t);d=e.offsetOf(h)}else if("backward"===t)if("first"===h.type)for(;d>0&&"first"===h.type;)d-=1,h=e.at(d);else{const t=h.type;"subsup"===h.type&&(d=e.offsetOf(e.at(d).leftSibling)),d-=1;let n=null==(r=e.at(d))?void 0:r.type;for(;d>=0&&n===t;)"subsup"===(null==(o=e.at(d))?void 0:o.type)?d=e.offsetOf(e.at(d).leftSibling):d-=1,n=e.at(d).type}else{const{type:t}=h;let n=null==(a=e.at(d))?void 0:a.type;const{lastOffset:i}=e;for(;d<=i&&(n===t||"subsup"===n);){for(;"subsup"===(null==(s=e.at(d).rightSibling)?void 0:s.type);)d=e.offsetOf(e.at(d).rightSibling);d+=1,n=null==(l=e.at(d))?void 0:l.type}d-=1}if(null!=(c=null==n?void 0:n.extend)&&c){if(!e.setSelection(e.anchor,d))return e.announce("plonk"),!1}else{if(d===e.position)return e.announce("plonk"),!1;e.position=d}return e.announce("move",u),e.mathfield.stopCoalescingUndo(),!0}function __(e,t,n){var i,r;if(n=null!=n?n:{extend:!1},e.mathfield.adoptStyle="backward"===t?"right":"left","forward"!==t){const[t,n]=JS(e);void 0!==t&&void 0!==n&&e.deleteAtoms([t,n])}if("upward"===t)return function(e,t){var n,i;const r=null!=(n=null==t?void 0:t.extend)&&n;r||e.collapseSelection("backward");const o=()=>{var t,n;let i=!0;return e.silenceNotifications||(i=null==(n=null==(t=e.mathfield.host)?void 0:t.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))||n),e.announce(i?"plonk":"line"),i},a=e.at(e.position);let s=a;for(;s&&"below"!==s.parentBranch&&!(Array.isArray(s.parentBranch)&&s.parent instanceof Lx);)s=s.parent;if(Array.isArray(null==s?void 0:s.parentBranch)&&s.parent instanceof Lx){const t=s.parent;if(s.parentBranch[0]<1)return o();const n=s.parentBranch[0]-1,i=t.array[n][s.parentBranch[1]],l=i.some((e=>"prompt"===e.type&&!e.captureSelection));if(!l&&e.mathfield.hasEditablePrompts)return o();E_(e,a,i,r,"up")}else{if(!s)return o();{const t=null!=(i=s.parent.branch("above"))?i:s.parent.createBranch("above"),n=t.some((e=>"prompt"===e.type&&e.placeholderId));if(!n&&e.mathfield.hasEditablePrompts)return o();E_(e,a,t,r,"up")}}return e.mathfield.stopCoalescingUndo(),!0}(e,n);if("downward"===t)return function(e,t){var n,i;const r=null!=(n=null==t?void 0:t.extend)&&n;r||e.collapseSelection("forward");const o=()=>{var t,n;let i=!0;return e.silenceNotifications||(i=null==(n=null==(t=e.mathfield.host)?void 0:t.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))||n),e.announce(i?"plonk":"line"),i},a=e.at(e.position);let s=a;for(;s&&"above"!==s.parentBranch&&!(Array.isArray(s.parentBranch)&&s.parent instanceof Lx);)s=s.parent;if(Array.isArray(null==s?void 0:s.parentBranch)&&s.parent instanceof Lx){const t=s.parent;if(s.parentBranch[0]+1>t.array.length-1)return o();const n=s.parentBranch[0]+1,i=t.array[n][s.parentBranch[1]],l=i.some((e=>"prompt"===e.type&&!e.captureSelection));if(!l&&e.mathfield.hasEditablePrompts)return o();E_(e,a,i,r,"down")}else{if(!s)return o();{const t=null!=(i=s.parent.branch("below"))?i:s.parent.createBranch("below"),n=t.some((e=>"prompt"===e.type));if(!n&&e.mathfield.hasEditablePrompts)return o();E_(e,a,t,r,"down")}}return!0}(e,n);if(n.extend){let n=C_(e,e.position,t);n<0&&(n=0),n>e.lastOffset&&(n=e.lastOffset);const i=e.setSelection(e.anchor,n);return e.mathfield.stopCoalescingUndo(),i}if(e.selectionIsPlaceholder){e.collapseSelection(t);const n=__(e,t);return e.mathfield.stopCoalescingUndo(),n}let o=e.position;const a=o;if(e.collapseSelection(t)?(o=e.position,P_(e,o)||(o=C_(e,o,t))):o=C_(e,o,t),o<0||o>e.lastOffset){let n=!0;return e.silenceNotifications||(n=null==(r=null==(i=e.mathfield.host)?void 0:i.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))||r),n&&e.announce("plonk"),n}return e.setPositionHandlingPlaceholder(o),e.mathfield.stopCoalescingUndo(),e.announce("move",a),!0}function C_(e,t,n){return(t+="forward"===n?1:-1)<0||t>e.lastOffset||P_(e,t)?t:C_(e,t,n)}function P_(e,t){var n;const i=e.at(t);let r=i.parent;for(;r&&!r.inCaptureSelection;)r=r.parent;if(null==r?void 0:r.inCaptureSelection)return!1;if(null==(n=i.parent)?void 0:n.skipBoundary){if(!i.isFirstSibling&&i.isLastSibling)return!1;if("first"===i.type)return!1}return!(e.mathfield.hasEditablePrompts&&!i.parentPrompt)}function E_(e,t,n,i,r){const o=e.mathfield.hasEditablePrompts,a=o?n.filter((e=>"prompt"===e.type&&!e.captureSelection)):n,s=ex(e.mathfield.getHTMLElement(t)).right,l=e.offsetOf(function(e,t,n){let i=1/0,r=0;for(;r=e.mathfield.options.scriptDepth[1])return e.announce("plonk"),!1;let n=e.at(e.position);return void 0===n.subsupPlacement&&("subsup"!==(null==(t=n.rightSibling)?void 0:t.type)&&n.parent.addChildAfter(new Hx({style:n.computedStyle}),n),n=n.rightSibling),n.createBranch("superscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(n.superscript[0]))),!0}function A_(e){var t;if(e.collapseSelection(),function(e){let t=0,n=e.at(e.position),i=!1;for(;n;)n.hasEmptyBranch("superscript")&&n.hasEmptyBranch("subscript")||(t+=1),n.hasEmptyBranch("superscript")?n.hasEmptyBranch("subscript")||(i=!0):i=!1,n=n.parent;return i?t:0}(e)>=e.mathfield.options.scriptDepth[0])return e.announce("plonk"),!1;let n=e.at(e.position);return void 0===n.subsupPlacement&&("subsup"!==(null==(t=e.at(e.position+1))?void 0:t.type)&&n.parent.addChildAfter(new Hx({style:e.at(e.position).computedStyle}),n),n=e.at(e.position+1)),n.createBranch("subscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(n.subscript[0]))),!0}function T_(){function e(e){return!((n=e).disabled||"hidden"===n.type&&"INPUT"===n.tagName.toUpperCase()||function(e){if(!lp()||e===document.activeElement||e.contains(document.activeElement))return!1;if("hidden"===getComputedStyle(e).visibility)return!0;const t=e.getBoundingClientRect();if(0===t.width||0===t.height)return!0;for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n)||function(e){return"INPUT"===e.tagName.toUpperCase()&&"radio"===e.type&&!function(e){var t;if(!e.name)return!0;const n=null!=(t=e.form)?t:e.ownerDocument,i=n.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),r=function(e,t){for(const n of e)if(n.checked&&n.form===t)return n;return null}(i,e.form);return!r||r===e}(e)}(e)||t(e)<0);var n}function t(e){var t;const n=Number.parseInt(null!=(t=e.getAttribute("tabindex"))?t:"NaN",10);return Number.isNaN(n)?"true"===e.contentEditable?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:n}return lp()?function(n){const i=[],r=[];return[...n.querySelectorAll('input, select, textarea, a[href], button,\n [tabindex], audio[controls], video[controls],\n [contenteditable]:not([contenteditable="false"]), details>summary')].filter(e).forEach(((e,n)=>{const o=t(e);0===o?i.push(e):r.push({documentOrder:n,tabIndex:o,node:e})})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(i)}(document.body):[]}function D_(e,t,n="forward"){const i=e.position;if(Array.isArray(t)){const r=e.offsetOf(t[0]),o=e.offsetOf(t[t.length-1]);return"forward"===n?e.setSelection(r,o):e.setSelection(o,r),e.announce("move",i),e.mathfield.stopCoalescingUndo(),!0}return D_(e,"forward"===n?[t.leftSibling,t]:[t,t.leftSibling])}function N_(e,t){const n=e.position;if("number"==typeof t&&(t=e.at(t)),"prompt"===t.type)e.setSelection(e.offsetOf(t.firstChild),e.offsetOf(t.lastChild));else{const n=e.offsetOf(t);"placeholder"===t.type?e.setSelection(n-1,n):e.position=n}return e.announce("move",n),e.mathfield.stopCoalescingUndo(),!0}function I_(e,t,n=!0){var i,r;const o="forward"===t?1:-1;let a;"placeholder"===e.at(e.anchor).type&&__(e,t);const s=e.at(e.anchor).parentPrompt;a=s?"forward"===t?e.offsetOf(s)+1:e.offsetOf(s.leftSibling):Math.max(e.position+o,0);const l=B_(e,a,t);if(!l||"forward"===t&&e.offsetOf(l)a){if(!n||!(null==(r=null==(i=e.mathfield.host)?void 0:i.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))||r))return e.announce("plonk"),!1;const a=T_();if(!document.activeElement||a.length<=1)return e.announce("plonk"),!1;let s=a.indexOf(document.activeElement)+o;return s<0&&(s=a.length-1),s>=a.length&&(s=0),a[s].focus(),e.mathfield.stopCoalescingUndo(),!0}return N_(e,l),!0}function B_(e,t=0,n="forward"){return e.findAtom((t=>"placeholder"===t.type||"prompt"===t.type||!e.mathfield.readOnly&&t.treeDepth>2&&t.isFirstSibling&&t.isLastSibling),t,n)}function R_(e,t,n,i){if("forward"===i){let e=t.rightSibling;for(;e&&!n(e);)e=e.rightSibling;return e}let r=t.leftSibling;for(;r&&!n(r);)r=r.leftSibling;return r}function O_(e,t,n){"function"==typeof t&&(n=t,t=1/0),void 0===t&&(t=1/0);let i=e.position,r=!1,o="";for(;!r;){const a=e.at(i);r=0===t||void 0===a||"first"===a.type||"math"!==a.mode||!(a.type&&/mord|mpunct|operator/.test(a.type)||"mop"===a.type&&/[a-zA-Z ]+/.test(a.value))||!a.hasEmptyBranch("superscript")||!a.hasEmptyBranch("subscript")||"function"==typeof n&&!n(a),r||(a.mode="text",a.command=a.value,a.verbatimLatex=void 0,o+=a.value),i-=1,t-=1}e.contentDidChange({data:o,inputType:"insertText"})}function F_(e,t,n){"function"==typeof t&&(n=t,t=1/0),void 0===t&&(t=1/0);let i=e.position,r=!1;const o=[];for(;!r;){const a=e.at(i);r=0===t||!a||"first"===a.type||a.isFirstSibling||"text"!==a.mode||" "===a.value||"function"==typeof n&&!n(a),r||(o.push(_w.serialize([a],{defaultMode:"math"})),a.mode="math"),i-=1,t-=1}z_(e),e.contentDidChange({data:Kb(o),inputType:"insertText"})}function z_(e){var t;let n=e.position-1;for(;n>=0&&"math"===(null==(t=e.at(n))?void 0:t.mode);)n-=1;if(!(n<0)&&"text"===e.at(n).mode&&" "===e.at(n).value&&"math"===e.at(n-1).mode){e.at(n-1).parent.removeChild(e.at(n-1));const t=e.silenceNotifications;e.silenceNotifications=!0,e.position-=1,e.silenceNotifications=t,e.contentDidChange({inputType:"deleteContent"})}}function j_(){const e=document.getElementById("mathlive-keystroke-caption-panel");return e||(ox("keystroke-caption"),ox("core"),rk("mathlive-keystroke-caption-panel"))}function $_(e,t){var n,i,r;const{model:o}=e,a=VS(t);if(t.isTrusted){!function(e){var t,n;if(!e)return;if("Unidentified"===e.key)return;if("Dead"===e.key)return;const i=e.shiftKey&&e.altKey?3:e.altKey?2:e.shiftKey?1:0;for(const r of BS)(null==(t=r.mapping[e.code])?void 0:t[i])===e.key?r.score+=1:(null==(n=r.mapping[e.code])?void 0:n[i])&&(r.score=0);BS.sort(((e,t)=>t.score-e.score))}(t);const n=FS();e.keyboardLayout!==n.id&&(e.keyboardLayout=n.id,e._keybindings=void 0)}if(clearTimeout(e.inlineShortcutBufferFlushTimer),e.inlineShortcutBufferFlushTimer=0,function(e,t){if(!e.isSelectionEditable||!e.keystrokeCaptionVisible)return;const n=j_(),i=e.element.getBoundingClientRect();n.style.left=`${i.left}px`,n.style.top=i.top-64+"px",n.innerHTML=window.MathfieldElement.createHTML(""+(zS(t)||t)+""+n.innerHTML),n.style.visibility="visible",setTimeout((()=>{n.childNodes.length>0&&n.childNodes[n.childNodes.length-1].remove(),0===n.childNodes.length&&(n.style.visibility="hidden")}),3e3)}(e,a),t.isTrusted&&t.defaultPrevented)return e.flushInlineShortcutBuffer(),!1;let s,l,c="";const u=e.inlineShortcutBuffer;if(e.isSelectionEditable){if("math"===o.mode)if("[Backspace]"===a)u.pop();else if(ZS(t)){const r=US(t),a=[...null!=(i=null==(n=u[u.length-1])?void 0:n.keystrokes)?i:[],r];u.push({state:o.getState(),keystrokes:a,leftSiblings:Z_(e)});let c=0,h="";for(;!s&&c<*|]$/.test(r))return z_(i),!0}else{if("[Space]"===t)return O_(i,void 0,(e=>/[a-z][:,;.]$/.test(e.value))),!0;if(/[a-zA-Z]{3,}$/.test(o)&&!/(dxd|abc|xyz|uvw)$/.test(o))return O_(i,void 0,(e=>/[a-zA-Z]/.test(e.value))),!0;if(/(^|\W)(if)$/i.test(o))return O_(i,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(o)&&!/(αβγ)$/.test(o))return O_(i,void 0,(e=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(e.value))),!0;if("?"===r)return!0;if("."===r&&!/[\d-+]\.$/.test(o))return!0}return!1}(e,a,t)&&(e.switchMode({math:"text",text:"math"}[o.mode]),c=""))}if(!s){if(c||(c=function(e,t,n){if(0===e.length)return"";const i=DS(TS(VS(n))),r=DS({key:n.key,shift:n.shiftKey,alt:n.altKey,ctrl:n.ctrlKey,meta:n.metaKey||n.ctrlKey&&/macos|ios/.test(up()),cmd:!1,win:!1});for(let n=e.length-1;n>=0;n--)if(!(e[n].key!==i&&e[n].key!==r||e[n].ifMode&&e[n].ifMode!==t))return e[n].command;return""}(e.keybindings,o.mode,t)),!c&&("[Enter]"===a||"[Return]"===a)){let n=!1;return o.contentWillChange({inputType:"insertLineBreak"})&&(e.host&&(n=!e.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),n||t.preventDefault&&(t.preventDefault(),t.stopPropagation()),o.contentDidChange({inputType:"insertLineBreak"})),n}if((!c||"[Space]"===a)&&"math"===o.mode){if("[Space]"===a){if(e.adoptStyle="none",e.flushInlineShortcutBuffer(),e.options.mathModeSpace)return Zw.insert(o,e.options.mathModeSpace,{format:"latex",mode:"math"}),e.snapshot("insert-space"),c="",e.dirty=!0,e.scrollIntoView(),t.preventDefault&&(t.preventDefault(),t.stopPropagation()),!1;const n=o.at(o.position+1),i=o.at(o.position-1);if("text"===(null==n?void 0:n.mode)||"text"===(null==i?void 0:i.mode))return Zw.insert(o," ",{mode:"text"}),e.snapshot("insert-space"),e.dirty=!0,e.scrollIntoView(),!1}(null==(r=o.at(o.position))?void 0:r.isDigit())&&","===window.MathfieldElement.decimalSeparator&&","===US(t)&&(c="insertDecimalSeparator")}}if(!s&&!c){if(o.mathfield.smartFence){if(G_(o,US(t),e.effectiveStyle))return e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}else{const{parent:n}=o.at(o.position);if(n instanceof Ox&&"?"===n.rightDelim&&o.at(o.position).isLastSibling&&/^[)}\]|]$/.test(a))return e.snapshot(),n.isDirty=!0,n.rightDelim=a,o.position+=1,o.selectionDidChange(),o.contentDidChange({data:US(t),inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1;if(!o.selectionIsCollapsed){const n=US(t);if("("===n||"{"===n||"["===n){const i={"(":"(","{":"\\lbrace","[":"\\lbrack"}[n],r={"(":")","{":"\\rbrace","[":"\\rbrack"}[n],[a,s]=Lw(o.selection);return e.snapshot(),o.position=s,Zw.insert(o,r,{format:"latex"}),o.position=a,Zw.insert(o,i,{format:"latex"}),o.setSelection(a+1,s+1),o.contentDidChange({data:n,inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}}}return!0}const h=o.at(Math.max(o.position,o.anchor)),{parent:d}=h;if("moveAfterParent"===c&&"leftright"===(null==d?void 0:d.type)&&h.isLastSibling&&e.options.smartFence&&G_(o,".",e.defaultStyle)&&(c="",yk(e)),e.keyboardDelegate.cancelComposition(),c)e.executeCommand(c);else if(s){const t=e.effectiveStyle;o.setState(u[l].state);const n=u[u.length-1].keystrokes;for(const e of n)Zw.insert(o,e,{silenceNotifications:!0,style:t});e.snapshot("insert-shortcut"),o.setState(u[l].state),o.deferNotifications({content:!0,selection:!0,data:s,type:"insertText"},(()=>(Zw.insert(o,s,{format:"latex",style:t}),z_(e.model),s.endsWith(" ")&&(e.switchMode("text"),Zw.insert(o," ",{style:t,mode:"text"})),e.snapshot(),o.selectionIsCollapsed||e.flushInlineShortcutBuffer(),!0))),e.dirty=!0,o.announce("replacement")}return e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}function H_(e,t,n){const{model:i}=e;if(!e.isSelectionEditable)return void i.announce("plonk");null!=n||(n={}),n.focus&&e.focus(),n.feedback&&window.MathfieldElement.playSound("keypress"),"string"==typeof n.mode&&(e.switchMode(n.mode),e.snapshot());let r=$b(t);const o=window.mathVirtualKeyboard;if((null==o?void 0:o.isShifted)&&(r="string"==typeof r?r.toUpperCase():r.map((e=>e.toUpperCase()))),n.simulateKeystroke){let t=!0;for(const n of r)$_(e,new KeyboardEvent("keypress",{key:n}))&&(t=!1);if(t)return}const a=i.at(i.position),s=ip(ip({},a.computedStyle),e.defaultStyle);if(i.selectionIsCollapsed||(i.deleteAtoms(Lw(i.selection)),e.snapshot("delete")),"latex"===i.mode)i.deferNotifications({content:!0,selection:!0,data:t,type:"insertText"},(()=>{ek(e);for(const e of r)Zw.insert(i,e);e.snapshot("insert-latex"),tk(e)}));else if("text"===i.mode){for(const e of r)Zw.insert(i,e,{style:s});e.snapshot("insert-text")}else if("math"===i.mode)for(const t of r)K_(e,t,s,a);e.dirty=!0,e.scrollIntoView()}function Z_(e){const t=e.model,n=[];let i=t.at(Math.min(t.position,t.anchor));for(;"first"!==i.type;)n.push(i),i=i.leftSibling;return n}function K_(e,t,n,i){const r=e.model;let o={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[t];if(" "===t&&e.options.mathModeSpace&&(o=["insert",e.options.mathModeSpace]),o)e.executeCommand(o);else{if(/\d/.test(t)&&e.options.smartSuperscript&&"superscript"===i.parentBranch&&"mop"!==i.parent.type&&"operator"!==i.parent.type&&"extensible-symbol"!==i.parent.type&&i.hasNoSiblings)return function(e){e.selectionIsCollapsed||(e.deleteAtoms(Lw(e.selection)),e.mathfield.snapshot("delete"))}(r),Zw.insert(r,t,{style:n}),e.snapshot(),M_(r),void e.snapshot();if(/[a-zA-Z0-9]/.test(t)&&"none"!==e.adoptStyle){const t="left"===e.adoptStyle?i:i.parent?i.rightSibling:null;"mord"===(null==t?void 0:t.type)&&/[a-zA-Z0-9]/.test(t.value)&&(n=ip({},n),t.style.variant&&(n.variant=t.style.variant),t.style.variantStyle&&(n.variantStyle=t.style.variantStyle))}Zw.insert(r,t,{style:n}),e.snapshot(`insert-${r.at(r.position).type}`)}}function G_(e,t,n){if(!t)return!1;if("math"!==e.mode)return!1;const i=e.at(e.position),{parent:r}=i,o={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[t];if(!o)return!1;const a=cx[o],s=lx[o];if(!e.selectionIsCollapsed){e.mathfield.snapshot();const[t,n]=Lw(e.selection),i=e.extractAtoms([t,n]),a=r.addChildrenAfter([new Ox("left...right",i,{leftDelim:o,rightDelim:s})],e.at(t));return e.setSelection(e.offsetOf(a.firstChild),e.offsetOf(a.lastChild)),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:o,inputType:"insertText"}),!0}if("|"===o){const t=r instanceof Ox?r.leftDelim+r.rightDelim:"";if("\\lbrace\\rbrace"===t||"\\{\\}"===t||"\\lbrace?"===t)return e.mathfield.snapshot(),Zw.insert(e,"\\,\\middle\\vert\\,",{format:"latex",style:n}),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:o,inputType:"insertText"}),!0}if(s){if(r instanceof Ox&&r.firstChild===i&&("?"===r.leftDelim||"."===r.leftDelim))return r.leftDelim=o,r.isDirty=!0,e.mathfield.snapshot(),e.contentDidChange({data:o,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(!(r instanceof Ox)){let t=i;for(;t&&("mclose"!==t.type||t.value!==s);)t=t.rightSibling;if(t){e.mathfield.snapshot();const n=e.extractAtoms([e.offsetOf(i),e.offsetOf(t)]);return n.pop(),r.addChildrenAfter([new Ox("left...right",n,{leftDelim:o,rightDelim:s})],i),e.position=e.offsetOf(r.firstChild)+1,e.contentDidChange({data:o,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}}const t=e.offsetOf(i.lastSibling);let a;for(a=e.position;a<=t;a++){const t=e.at(a);if(t instanceof Ox&&("?"===t.leftDelim||"."===t.leftDelim)&&V_(o,t.rightDelim))break}const l=e.at(a);if(a<=t&&l instanceof Ox){l.leftDelim=o,e.mathfield.snapshot();let t=e.extractAtoms([e.position,a-1]);return t=t.filter((e=>"first"!==e.type)),l.addChildren(t,l.parentBranch),e.position+=1,e.contentDidChange({data:o,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(r instanceof Ox&&("?"===r.leftDelim||"."===r.leftDelim)&&V_(o,r.rightDelim)){r.isDirty=!0,r.leftDelim=o,e.mathfield.snapshot();const t=e.extractAtoms([e.offsetOf(i.firstSibling),e.position]);for(const e of t)r.parent.addChildBefore(e,r);return e.contentDidChange({data:o,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(!(r instanceof Ox&&"|"===r.leftDelim)){if(e.mathfield.snapshot(),Zw.insert(e,`\\left${o}\\right?`,{format:"latex",style:n}),"first"!==i.lastSibling.type){const t=e.offsetOf(i.lastSibling),n=e.extractAtoms([e.position,t]);e.at(e.position).body=n,e.position-=1}return e.mathfield.snapshot("insert-fence"),!0}}if(a){let t=i;for(;t;){if("mopen"===t.type&&t.value===a){e.mathfield.snapshot();const n=t.leftSibling,s=e.extractAtoms([e.offsetOf(t.leftSibling),e.offsetOf(i)]);s.shift();const l=new Ox("left...right",s,{leftDelim:a,rightDelim:o});return r.addChildrenAfter([l],n),e.position=e.offsetOf(l),e.contentDidChange({data:o,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}t=t.leftSibling}if(r instanceof Ox&&i.isLastSibling&&U_(r.leftDelim,o))return e.mathfield.snapshot(),r.isDirty=!0,r.rightDelim=o,e.position+=1,e.contentDidChange({data:o,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const s=e.offsetOf(i.firstSibling);let l;for(l=e.position;l>=s;l--){const t=e.at(l);if(t instanceof Ox&&("?"===t.rightDelim||"."===t.rightDelim)&&U_(t.leftDelim,o))break}const c=e.at(l);if(l>=s&&c instanceof Ox)return e.mathfield.snapshot(),c.rightDelim=o,c.addChildren(e.extractAtoms([l,e.position]),c.parentBranch),e.contentDidChange({data:o,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(r instanceof Ox&&("?"===r.rightDelim||"."===r.rightDelim)&&U_(r.leftDelim,o))return e.mathfield.snapshot(),r.isDirty=!0,r.rightDelim=o,r.parent.addChildren(e.extractAtoms([e.position,e.offsetOf(i.lastSibling)]),r.parentBranch),e.position=e.offsetOf(r),e.contentDidChange({data:o,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const u=r.parent;return!(!(u instanceof Ox)||"?"!==u.rightDelim&&"."!==u.rightDelim||!e.at(e.position).isLastSibling)&&(e.position=e.offsetOf(u),G_(e,o,n))}return!1}function U_(e,t){return!e||(["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t):lx[e]===t)}function V_(e,t){return!t||([")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e):cx[t]===e)}function W_(e,t){var n,i,r,o,a,s,l,c,u,h;const d={};if("string"==typeof t.color){const o=null!=(i=e.colorMap(null!=(n=t.color)?n:t.verbatimColor))?i:"none";o!==t.color&&(d.verbatimColor=null!=(r=t.verbatimColor)?r:t.color),d.color=o}if("string"==typeof t.backgroundColor){const n=null!=(a=e.backgroundColorMap(null!=(o=t.backgroundColor)?o:t.verbatimBackgroundColor))?a:"none";n!==t.backgroundColor&&(d.verbatimBackgroundColor=null!=(s=t.verbatimBackgroundColor)?s:t.backgroundColor),d.backgroundColor=n}"string"==typeof t.fontFamily&&(d.fontFamily=t.fontFamily),"string"==typeof t.series&&(d.fontSeries=t.series),"string"==typeof t.fontSeries&&(d.fontSeries=t.fontSeries.toLowerCase()),d.fontSeries&&(d.fontSeries=null!=(l={bold:"b",medium:"m",normal:"m"}[d.fontSeries])?l:d.fontSeries),"string"==typeof t.shape&&(d.fontShape=t.shape),"string"==typeof t.fontShape&&(d.fontShape=t.fontShape.toLowerCase()),d.fontShape&&(d.fontShape=null!=(c={italic:"it",up:"n",upright:"n",normal:"n"}[d.fontShape])?c:d.fontShape),t.variant&&(d.variant=t.variant.toLowerCase()),t.variantStyle&&(d.variantStyle=t.variantStyle.toLowerCase());const p=null!=(u=t.size)?u:t.fontSize;return"number"==typeof p?d.fontSize=Math.max(1,Math.min(10,p)):"string"==typeof p&&(d.fontSize=null!=(h={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[p.toLowerCase()])?h:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[p]),d}function q_(e){let[t,n]=Lw(e.selection);if(t=Y_(e,t,"backward"),n=Y_(e,n,"forward"),t===n){const i=e.at(t);if("leftright"===i.type)return e.setSelection(e.offsetOf(i.firstChild)-1,n);if("first"===i.type&&("leftright"===i.parent.type||"surd"===i.parent.type))return e.setSelection(t-1,e.offsetOf(i.parent.lastChild)+1);e.setSelection(t-1,n)}else e.setSelection(t,n);return!0}function Y_(e,t,n){var i,r,o;let a=e.at(t);if(!a)return t;const s="forward"===n?1:-1;if("text"===a.mode){for(;a&&"text"===a.mode&&Dp.test(a.value);)t+=s,a=e.at(t);return"backward"===n?t-1:t}if("latex"===a.mode){if(/[a-zA-Z\*]/.test(a.value))if("backward"===n)for(;a&&"latex"===a.mode&&"\\"!==a.value&&/[a-zA-Z]/.test(a.value);)t+=s,a=e.at(t);else for(;a&&"latex"===a.mode&&/[a-zA-Z\*]/.test(a.value);)t+=s,a=e.at(t);else{if("{"===a.value){if("forward"===n){for(;a&&"latex"===a.mode&&"}"!==a.value;)t+=s,a=e.at(t);return t}return t-1}if("}"===a.value){if("backward"===n){for(;a&&"latex"===a.mode&&"{"!==a.value;)t+=s,a=e.at(t);return t-1}return t}}return t-1}if("math"===a.mode){if(a.isDigit()){for(;null==(i=e.at(t+s))?void 0:i.isDigit();)t+=s;return"backward"===n?t-1:t}if(a.style.variant||a.style.variantStyle){let i=null==(r=e.at(t))?void 0:r.style;for(;i&&i.variant===a.style.variant&&i.variantStyle===a.style.variantStyle;)i=null==(o=e.at(t+s))?void 0:o.style,t+=s;return"backward"===n?t-1:t}return t}return t}kk({moveToOpposite:e=>{const t=e.at(e.position),{parent:n}=t;if(!n)return e.announce("plonk"),!1;const i=t.parentBranch;let r;if("string"==typeof i&&(r={superscript:"subscript",subscript:"superscript",above:"below",below:"above"}[i]),!r){const n=t.subsupPlacement?A_(e):L_(e);return e.mathfield.stopCoalescingUndo(),n}n.branch(r)||n.createBranch(r);const o=e.setSelection(e.getBranchRange(e.offsetOf(n),r));return e.mathfield.stopCoalescingUndo(),o},moveBeforeParent:e=>{const{parent:t}=e.at(e.position);return t?(e.position=e.offsetOf(t),e.mathfield.stopCoalescingUndo(),!0):(e.announce("plonk"),!1)},moveAfterParent:e=>M_(e),moveToNextChar:e=>__(e,"forward"),moveToPreviousChar:e=>__(e,"backward"),moveUp:e=>__(e,"upward"),moveDown:e=>__(e,"downward"),moveToNextWord:e=>k_(e,"forward"),moveToPreviousWord:e=>k_(e,"backward"),moveToGroupStart:e=>{const t=e.offsetOf(e.at(e.position).firstSibling);return t===e.position?(e.announce("plonk"),!1):(e.position=t,e.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:e=>{const t=e.offsetOf(e.at(e.position).lastSibling);return t===e.position?(e.announce("plonk"),!1):(e.position=t,e.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:e=>{var t,n,i,r;if(e.position===e.lastOffset&&e.anchor===e.lastOffset)return I_(e,"forward");const o=e.at(e.position);if("text"===o.mode){if(e.selectionIsCollapsed){let n=o;for(;n&&"text"===n.mode;)n=n.leftSibling;let i=o;for(;"text"===(null==(t=i.rightSibling)?void 0:t.mode);)i=i.rightSibling;if(n&&i)return D_(e,[n,i])}if("text"===o.rightSibling.mode){let t=o;for(;t&&"text"===t.mode;)t=t.rightSibling;return t?(N_(e,null!=(n=t.leftSibling)?n:t),e.mathfield.switchMode("math"),!0):N_(e,e.lastOffset)}}const a=e.at(e.anchor).parentPrompt,s=a?e.offsetOf(a)+1:Math.max(e.position+1,0),l=B_(e,s,"forward");if(l)return N_(e,l);const c=R_(e,o,(e=>"leftright"===e.type||"text"===e.type),"forward");if(c){if("text"===c.mode){let t=c;for(;t&&"text"===t.mode;)t=t.rightSibling;return D_(e,[null!=(i=c.leftSibling)?i:c,null!=(r=t.leftSibling)?r:t])}return D_(e,c)}const u=o.parent;if(u){if("leftright"===u.type||"surd"===u.type)return D_(e,u);if("superscript"===o.parentBranch&&u.subscript)return D_(e,u.subscript);if("above"===o.parentBranch&&u.below)return D_(e,u.below);if("superscript"===o.parentBranch||"subscript"===o.parentBranch)return N_(e,u);if("above"===o.parentBranch||"below"===o.parentBranch)return D_(e,u)}return N_(e,e.lastOffset)},moveToPreviousGroup:e=>{var t;if(0===e.position&&0===e.anchor)return I_(e,"backward");let n=e.at(e.position);const i=n.mode;if("text"===i){if(e.selectionIsCollapsed){let i=n;for(;i&&"text"===i.mode;)i=i.leftSibling;let r=n;for(;"text"===(null==(t=r.rightSibling)?void 0:t.mode);)r=r.rightSibling;if(i&&r)return D_(e,[i,r])}for(;n&&"text"===n.mode;)n=n.leftSibling;return N_(e,n?n:0)}const r=e.at(e.anchor).parentPrompt,o=r?e.offsetOf(r.leftSibling):Math.max(e.position-1,0),a=B_(e,o,"backward");if(a)return N_(e,a);if("math"===i){const t=R_(e,n,(e=>"leftright"===e.type||"text"===e.type),"backward");if(t){if("text"===t.mode){let n=t;for(;n&&"text"===n.mode;)n=n.leftSibling;return D_(e,[t,n])}return D_(e,t)}const i=n.parent;if(i){if("leftright"===i.type||"surd"===i.type)return D_(e,i);if("subscript"===n.parentBranch&&i.superscript)return D_(e,i.superscript);if("below"===n.parentBranch&&i.above)return D_(e,i.above);if("superscript"===n.parentBranch||"subscript"===n.parentBranch)return N_(e,i);if("above"===n.parentBranch||"below"===n.parentBranch)return D_(e,i)}return N_(e,0)}return!1},moveToMathfieldStart:e=>e.selectionIsCollapsed&&0===e.position?(e.announce("plonk"),!1):(e.position=0,e.mathfield.stopCoalescingUndo(),!0),moveToMathfieldEnd:e=>e.selectionIsCollapsed&&e.position===e.lastOffset?(e.announce("plonk"),!1):(e.position=e.lastOffset,e.mathfield.stopCoalescingUndo(),!0),moveToSuperscript:L_,moveToSubscript:A_},{target:"model",changeSelection:!0}),kk({moveToNextPlaceholder:e=>I_(e,"forward"),moveToPreviousPlaceholder:e=>I_(e,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"}),kk({undo:e=>(e.undo(),!0),redo:e=>(e.redo(),!0),scrollIntoView:e=>(e.scrollIntoView(),!0),scrollToStart:e=>(e.field.scroll(0,0),!0),scrollToEnd:e=>{const t=e.field.getBoundingClientRect();return e.field.scroll(t.left-window.scrollX,0),!0},toggleKeystrokeCaption:function(e){if(e.keystrokeCaptionVisible=!e.keystrokeCaptionVisible,e.keystrokeCaptionVisible){j_().innerHTML=""}else{rk("mathlive-keystroke-caption-panel").style.visibility="hidden"}return!1},toggleContextMenu:e=>{const t=e.toggleContextMenu();return t||e.model.announce("plonk"),t},plonk:e=>(e.model.announce("plonk"),!0),switchMode:(e,t,n,i)=>(e.switchMode(t,n,i),!0),insert:(e,t,n)=>e.insert(t,n),typedText:(e,t,n)=>(H_(e,t,n),!0),insertDecimalSeparator:e=>{const t=e.model;if("math"===t.mode&&","===window.MathfieldElement.decimalSeparator){if(t.at(Math.max(t.position,t.anchor)).isDigit())return e.insert("{,}",{format:"latex"}),e.snapshot("insert-mord"),!0}return e.insert("."),!0},commit:e=>{var t;return e.model.contentWillChange({inputType:"insertLineBreak"})&&(null==(t=e.host)||t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),e.model.contentDidChange({inputType:"insertLineBreak"})),!0},insertPrompt:(e,t,n)=>{const i=e.getPrompts();let r="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(1e5*Math.random()).toString(36),o=0;for(;i.includes(r)&&o<100;){if(99===o)return console.error("could not find a unique ID after 100 tries"),!1;r="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(1e5*Math.random()).toString(36),o++}return e.insert(`\\placeholder[${null!=t?t:r}]{}`,n),!0}}),kk({copyToClipboard:e=>(e.focus(),e.model.selectionIsCollapsed&&e.select(),"queryCommandSupported"in document&&document.queryCommandSupported("copy")?document.execCommand("copy"):e.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("copy",{bubbles:!0,composed:!0})),!1)},{target:"mathfield"}),kk({cutToClipboard:e=>(e.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("cut")?document.execCommand("cut"):e.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("cut",{bubbles:!0,composed:!0})),!0),pasteFromClipboard:e=>(e.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("paste")?(document.execCommand("paste"),!0):(navigator.clipboard.readText().then((t=>{t&&e.model.contentWillChange({inputType:"insertFromPaste",data:t})?(e.stopCoalescingUndo(),e.stopRecording(),e.insert(t,{mode:e.model.mode})&&(tk(e),e.startRecording(),e.snapshot("paste"),e.model.contentDidChange({inputType:"insertFromPaste"}),yk(e))):e.model.announce("plonk"),e.startRecording()})),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0}),kk({applyStyle:function(e,t){e.flushInlineShortcutBuffer(),e.stopCoalescingUndo();const n=W_(e,t),{model:i}=e;return i.selectionIsCollapsed?(e.defaultStyle.fontSeries&&n.fontSeries===e.defaultStyle.fontSeries&&(n.fontSeries="auto"),n.fontShape&&n.fontShape===e.defaultStyle.fontShape&&(n.fontShape="auto"),n.color&&n.color===e.defaultStyle.color&&(n.color="none"),n.backgroundColor&&n.backgroundColor===e.defaultStyle.backgroundColor&&(n.backgroundColor="none"),n.fontSize&&n.fontSize===e.defaultStyle.fontSize&&(n.fontSize="auto"),e.defaultStyle=ip(ip({},e.defaultStyle),n)):e.model.deferNotifications({content:!0,type:"insertText"},(()=>{i.selection.ranges.forEach((e=>s_(i,e,n,{operation:"toggle"}))),e.snapshot("style-change")})),!0}},{target:"mathfield",canUndo:!0,changeContent:!0}),kk({selectGroup:e=>{const t=q_(e);return t||e.announce("plonk"),t},selectAll:e=>e.setSelection(0,e.lastOffset),extendSelectionForward:e=>__(e,"forward",{extend:!0}),extendSelectionBackward:e=>__(e,"backward",{extend:!0}),extendToNextWord:e=>k_(e,"forward",{extend:!0}),extendToPreviousWord:e=>k_(e,"backward",{extend:!0}),extendSelectionUpward:e=>__(e,"upward",{extend:!0}),extendSelectionDownward:e=>__(e,"downward",{extend:!0}),extendToNextBoundary:e=>k_(e,"forward",{extend:!0}),extendToPreviousBoundary:e=>k_(e,"backward",{extend:!0}),extendToGroupStart:e=>{const t=e.setSelection(e.anchor,e.offsetOf(e.at(e.position).firstSibling));return t||e.announce("plonk"),t},extendToGroupEnd:e=>{const t=e.setSelection(e.anchor,e.offsetOf(e.at(e.position).lastSibling));return t||e.announce("plonk"),t},extendToMathFieldStart:e=>{const t=e.setSelection(e.anchor,0);return t||e.announce("plonk"),t},extendToMathFieldEnd:e=>{const t=e.setSelection(e.anchor,e.lastOffset);return t||e.announce("plonk"),t}},{target:"model",changeSelection:!0});var X_=null,Q_=0,J_=class e{static start(t,n,i,r){var o;e.element=t,null==(o=e.controller)||o.abort(),e.controller=new AbortController;const a={signal:e.controller.signal};"PointerEvent"in window?(t.addEventListener("pointermove",i,a),t.addEventListener("pointerup",r,a),t.addEventListener("pointercancel",r,a),eC(n)&&(e.pointerId=n.pointerId,t.setPointerCapture(n.pointerId))):(window.addEventListener("mousemove",i,a),window.addEventListener("blur",r,a),window.addEventListener("mouseup",r,a))}static stop(){var t;null==(t=e.controller)||t.abort(),e.controller=void 0,"number"==typeof e.pointerId&&(e.element.releasePointerCapture(e.pointerId),e.pointerId=void 0)}};function eC(e){return null!==e&&void 0!==globalThis.PointerEvent&&e instanceof PointerEvent}function tC(e,t){var n;if(t.buttons>1)return;e.atomBoundsCache=new Map;const i=e;let r,o=!1,a=!1,s="none",l=!1,c=!1;const u=t.clientX,h=t.clientY,d=Date.now(),p=i.field,f=setInterval((()=>{l?p.scroll({top:0,left:p.scrollLeft-16}):c&&p.scroll({top:0,left:p.scrollLeft+16})}),32);function g(){J_.stop(),o=!1,clearInterval(f),e.element.classList.remove("tracking"),t&&t.preventDefault()}X_&&Math.abs(X_.x-u)<5&&Math.abs(X_.y-h)<5&&Date.now()=m.left&&u<=m.right&&h>=m.top&&h<=m.bottom){if(e.flushInlineShortcutBuffer(),e.adoptStyle="left",r=oC(e,u,h,{bias:0}),r>=0){if(e.element.classList.add("tracking"),t.shiftKey){const t=e.model.selectionIsCollapsed;e.model.extendSelectionTo(e.model.anchor,r),s=nk(e.model)||t?"all":"selection"}else"placeholder"===e.model.at(r).type?(e.model.setSelection(r-1,r),s="selection"):"placeholder"===(null==(n=e.model.at(r).rightSibling)?void 0:n.type)?(e.model.setSelection(r,r+1),s="selection"):(e.model.position=r,s=nk(e.model)?"all":"selection");e.defaultStyle={},3===t.detail||Q_>2?(g(),3!==t.detail&&3!==Q_||(e.model.selection={ranges:[[0,e.model.lastOffset]]},s="all")):o||(o=!0,J_.start(p,t,(function(t){if(!i.hasFocus())return void g();const n=t.clientX,o=t.clientY,s=eC(t)&&"touch"===t.pointerType?20:5;if(Date.now()f.right,l=n=0&&v>=0&&(i.model.extendSelectionTo(m,v),yk(e)),a&&q_(i.model)}),g),2!==t.detail&&2!==Q_||(a=!0,q_(e.model),s="all"))}e.hasFocus()||(s="none",e.focus({preventScroll:!0}))}else X_=null;e.stopCoalescingUndo(),"none"!==s&&(e.model.selectionIsCollapsed&&(s="all"),yk(e)),t.preventDefault()}function nC(e,t,n){if(e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom)return 0;const i=e-(n.left+n.right)/2,r=t-(n.top+n.bottom)/2;return i*i+r*r}function iC(e,t,n,i,r){if(!n.id)return[1/0,null];if(t.has(n.id))return t.get(n.id);const o=Xw(e,n);if(!o)return[1/0,null];let a=[1/0,null];if(n.hasChildren&&!n.captureSelection&&i>=o.left&&i<=o.right)for(const o of n.children){const n=iC(e,t,o,i,r);n[0]<=a[0]&&(a=n)}return a[1]||(a=[nC(i,r,o),n]),t.set(n.id,a),a}function rC(e,t,n){const[,i]=iC(e,new Map,e.model.root,t,n);return i}function oC(e,t,n,i){var r;const o=e.field.querySelector(".ML__latex").getBoundingClientRect();if(!o)return 0;if(t>o.right||n>o.bottom+8)return e.model.lastOffset;if(t1)return null;const t=e[0];return t instanceof Ox&&"("===t.leftDelim&&")"===t.rightDelim?t.removeBranch("body"):null}function lC(e){if(e){for(let t=0;e[t];t++){const n=e[t];if(n instanceof Ox&&"("===n.leftDelim){let i=0,r=0,o=0;for(let e=0;n.body[e];e++)"genfrac"===n.body[e].type&&(i++,r=e),o++;0===o&&1===i&&(e[t]=n.body[r])}}for(const t of e){for(const e of t.branches)if(!t.hasEmptyBranch(e)){lC(t.branch(e));const n=sC(t.branch(e));n&&t.setChildren(n,e)}if(t instanceof Lx)for(const e of t.cells)lC(e)}}}function cC(e){return!!e.isDigit()||!(!e.type||!/^(mord|surd|subsup|leftright|mop|mclose)$/.test(e.type))&&!e.isExtensibleSymbol}new class extends Zw{constructor(){super("math")}onPaste(e,t){if(!t)return!1;if(!e.model.contentWillChange({data:"string"==typeof t?t:null,dataTransfer:"string"==typeof t?null:t,inputType:"insertFromPaste"}))return!1;let n="",i="auto",r="string"!=typeof t?t.getData("application/json+mathlive"):"";if(r)try{const t=JSON.parse(r);if(t&&Array.isArray(t)){e.snapshot();const n=yS(t),{model:i}=e;i.selectionIsCollapsed||i.deleteAtoms(Lw(i.selection));const r=i.at(i.position);if(r.parent instanceof Lx){console.assert(void 0!==r.parentBranch);const e=[];let t=[];"first"===n[0].type&&n.shift(),"first"===n[n.length-1].type&&n.pop();for(const i of n)"first"===i.type&&t.length>0?(e.push(t),t=[i]):t.push(i);t.length>0&&e.push(t);let i=Number(r.parentBranch[0]),o=Number(r.parentBranch[1]);const a=r.parent.maxColumns;for(;r.parent.colCount-o=a&&(o=0,r.parent.addRowAfter(i),i++),r.parent.setCell(i,o,e[t])}else r.parent.addChildrenAfter(n.filter((e=>"first"!==e.type)),r);return i.position=i.offsetOf(n[n.length-1]),i.contentDidChange({inputType:"insertFromPaste"}),yk(e),!0}}catch(e){}if(r="string"!=typeof t?t.getData("application/json"):"",r&&window.MathfieldElement.computeEngine)try{const e=JSON.parse(r);if("object"==typeof e&&"latex"in e&&e.latex&&(n=e.latex),!n){const t=window.MathfieldElement.computeEngine.box(e);t&&!t.has("Error")&&(n=t.latex)}n||(i="latex")}catch(e){}if(n||"string"==typeof t||(n=t.getData("application/x-latex"),n&&(i="latex")),n||(n="string"==typeof t?t:t.getData("text/plain")),n){let t;return[t,n]=jw(n),"auto"===i&&t&&(i="latex"),e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,n,{format:i})&&(e.startRecording(),e.snapshot("paste"),yk(e)),e.startRecording(),!0}return!1}insert(e,t,n){var i,r;const o="string"==typeof t?t:null!=(r=null==(i=window.MathfieldElement.computeEngine)?void 0:i.box(t).latex)?r:"";if(!n.silenceNotifications&&!e.contentWillChange({data:o,inputType:"insertText"}))return!1;n.insertionMode||(n.insertionMode="replaceSelection"),n.selectionMode||(n.selectionMode="placeholder"),n.format||(n.format="auto");const{silenceNotifications:a}=e;n.silenceNotifications&&(e.silenceNotifications=!0);const s=e.silenceNotifications;e.silenceNotifications=!0;const l={"?":"\\placeholder{}","@":"\\placeholder{}"};l[0]="replaceAll"===n.insertionMode?"":e.getValue(e.selection,"latex-unstyled"),"replaceSelection"!==n.insertionMode||e.selectionIsCollapsed?"replaceAll"===n.insertionMode?(e.root.setChildren([],"body"),e.position=0):"insertBefore"===n.insertionMode?e.collapseSelection("backward"):"insertAfter"===n.insertionMode&&e.collapseSelection("forward"):e.deleteAtoms(Lw(e.selection)),e.at(e.position).isLastSibling||"placeholder"!==e.at(e.position+1).type?"placeholder"===e.at(e.position).type&&e.deleteAtoms([e.position-1,e.position]):e.deleteAtoms([e.position,e.position+1]);let c=-1;l[0]?l["@"]=l[0]:"string"==typeof t&&/(^|[^\\])#@/.test(t)&&(c=function(e){let t=e.at(e.position);if("text"===t.mode){for(;!t.isFirstSibling&&"text"===t.mode;)t=t.leftSibling;return e.offsetOf(t)}const n=t;let i=!1;if("mclose"===t.type){const e=cx[t.value];for(;!t.isFirstSibling&&("mopen"!==t.type||t.value!==e);)t=t.leftSibling;t.isFirstSibling||(t=t.leftSibling),i=!0}else"leftright"===t.type&&(t=t.leftSibling,i=!0);if(i)for(;!t.isFirstSibling&&(t.isFunction||cC(t));)t=t.leftSibling;else{const e=[];for(;!t.isFirstSibling&&(cC(t)||e.length>0);)"mclose"===t.type&&e.unshift(t.value),"mopen"===t.type&&e.length>0&&t.value===cx[e[0]]&&e.shift(),t=t.leftSibling}return n===t?-1:e.offsetOf(t)}(e),c>=0&&(l["@"]=e.getValue(c,e.position,"latex"))),l[0]||(l[0]=l["?"]);let u=!1;const h=e=>(u=!0,l[e]);let[d,p]=aC(e,t,h,n);if(!p)return!1;const f=1===p.length&&"genfrac"===p[0].type;f&&c>=0&&"function"==typeof e.mathfield.options.isImplicitFunction&&e.mathfield.options.isImplicitFunction(e.at(e.position).command)?(l["@"]=l["?"],u=!1,[d,p]=aC(e,t,h,n)):c>=0&&e.deleteAtoms([c,e.position]);const{parent:g}=e.at(e.position),m=g.hasEmptyBranch("body");if(f&&"latex"!==d&&e.mathfield.options.removeExtraneousParentheses&&g instanceof Ox&&"("===g.leftDelim&&m){const e=g.parent,t=g.parentBranch;e.removeChild(g),e.setChildren(p,t)}const v=e.at(e.position);v.parent.addChildrenAfter(p,v),"latex"===d&&"string"==typeof t&&"root"===(null==g?void 0:g.type)&&m&&!u&&(g.verbatimLatex=t),e.silenceNotifications=s;const y=p[p.length-1];if("placeholder"===n.selectionMode){const t=p.flatMap((e=>[e,...e.children])).find((e=>"placeholder"===e.type));if(t){const n=e.offsetOf(t);e.setSelection(n-1,n),e.announce("move")}else y&&(e.position=e.offsetOf(y))}else"before"===n.selectionMode||("after"===n.selectionMode?y&&(e.position=e.offsetOf(y)):"item"===n.selectionMode&&e.setSelection(e.anchor,e.offsetOf(y)));return e.contentDidChange({data:o,inputType:"insertText"}),e.silenceNotifications=a,!0}};function uC(e){return{value:e.model.getValue(),selectionIsCollapsed:e.model.selectionIsCollapsed,canUndo:e.canUndo(),canRedo:e.canRedo(),style:e.selectionStyle,mode:e.model.mode}}new class extends Zw{constructor(){super("text")}onPaste(e,t){if(!t)return!1;const n="string"==typeof t?t:t.getData("text/plain");return!(!n||!e.model.contentWillChange({inputType:"insertFromPaste",data:n}))&&(e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,n)&&(e.model.contentDidChange({inputType:"insertFromPaste"}),e.startRecording(),e.snapshot("paste"),yk(e)),e.startRecording(),!0)}insert(e,t,n={}){if(!e.contentWillChange({data:t,inputType:"insertText"}))return!1;n.insertionMode||(n.insertionMode="replaceSelection"),n.selectionMode||(n.selectionMode="placeholder"),n.format||(n.format="auto");const{silenceNotifications:i}=e;n.silenceNotifications&&(e.silenceNotifications=!0);const r=e.silenceNotifications;e.silenceNotifications=!0,"replaceSelection"!==n.insertionMode||e.selectionIsCollapsed?"replaceAll"===n.insertionMode?(e.root.setChildren([],"body"),e.position=0):"insertBefore"===n.insertionMode?e.collapseSelection("backward"):"insertAfter"===n.insertionMode&&e.collapseSelection("forward"):e.deleteAtoms(Lw(e.selection));const o=function(e,t){return e=e.replace(/\\/g,"\\textbackslash "),e=e.replace(/#/g,"\\#"),e=e.replace(/\$/g,"\\$"),e=e.replace(/%/g,"\\%"),e=e.replace(/&/g,"\\&"),e=e.replace(/_/g,"\\_"),e=e.replace(/{/g,"\\textbraceleft "),e=e.replace(/}/g,"\\textbraceright "),e=e.replace(/lbrace/g,"\\textbraceleft "),e=e.replace(/rbrace/g,"\\textbraceright "),e=e.replace(/\^/g,"\\textasciicircum "),e=e.replace(/~/g,"\\textasciitilde "),e=e.replace(/£/g,"\\textsterling "),Gx(e,{context:t,parseMode:"text"})}(t,e.mathfield.context);if(a_(o,n.style),!o)return!1;const a=e.at(e.position),s=a.parent.addChildrenAfter(o,a);return e.silenceNotifications=r,"before"===n.selectionMode||("item"===n.selectionMode?e.setSelection(e.anchor,e.offsetOf(s)):s&&(e.position=e.offsetOf(s))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=i,!0}};var hC=20,dC=(e,t)=>`\n \n \n \n \n `,pC=(e,t)=>`\n \n \n \n \n `,fC=(e,t,n)=>`\n \n \n \n \n \n `,gC=`\n\n \n \n \n ${fC(104,152,0)}\n \n \n ${fC(104,56,180)}\n \n \n ${fC(152,104,-90)}\n \n \n ${fC(56,104,90)}\n \n \n\n \n ${dC(56,4)}\n \n \n ${pC(104,4)}\n \n \n ${dC(152,4)}\n \n \n ${dC(4,56)}\n \n \n ${pC(4,104)}\n \n \n ${dC(4,152)}\n \n`,mC=e=>`\n\n \n \n \n \n \n \n`,vC={matrix:e=>`\n\n \n \n \n `,pmatrix:e=>`\n\n \n \n \n \n \n `,bmatrix:e=>`\n\n \n \n \n \n \n \n`,Bmatrix:mC,vmatrix:e=>`\n\n \n \n \n \n \n \n`,Vmatrix:e=>`\n\n \n \n \n \n \n \n \n \n`},yC={cases:e=>`\n\n \n \n \n \n \n \n`,rcases:e=>`\n\n \n \n \n \n \n \n`,Bmatrix:mC};function bC(e){var t,n;const i=null==(t=e.model.parentEnvironment)?void 0:t.array;if(!i)return;let r=0;i.forEach((e=>{(!r||e.length>r)&&(r=e.length)}));let o,a=document.getElementById("mathlive-environment-popover");a||(a=rk("mathlive-environment-popover"),ox("environment-popover"),ox("core"),a.setAttribute("aria-hidden","true"));const s=a.querySelector(".MLEP__environment-controls");s?o=s:(o=document.createElement("div"),a.innerHTML="",a.appendChild(o)),o.className="MLEP__environment-controls",o.style.display="flex",o.style.width="100%",o.style.height="100%",o.style.boxSizing="border-box",o.innerHTML=gC;let l=[],c="";const u=e.model.parentEnvironment.environmentName;if(Mx(u)){const e=function(e){return e.replace("*","")}(u);c=vC[e]("active");const t=vC,{[e]:n}=t,i=ap(t,[op(e)]);l=Object.values(i).map((e=>e("inactive")))}else if(function(e){return Cx.includes(e)}(u)){const e=function(e){return"dcases"===e?"cases":e}(u);c=yC[e]("active");const t=yC,{[e]:n}=t,i=ap(t,[op(e)]);l=Object.values(i).map((e=>e("inactive")))}else(function(e){return Px.includes(e)})(u)&&(c=vC.matrix("active"),l=Object.values(yC).map((e=>e("inactive"))));const h=document.createElement("div");h.className="MLEP__environment-delimiter-controls",h.style.display="flex",h.style.flexDirection="column",h.innerHTML=`\n
    \n ${c}\n ${l.join("")}\n
    `,c&&o.appendChild(h);o.querySelectorAll("[data-command]").forEach((t=>{const n=t.dataset.command;let i=n;try{i=JSON.parse(n)}catch(e){}t.addEventListener("mousedown",(e=>e.preventDefault())),i&&t.addEventListener("click",(()=>e.executeCommand(i)))}));const d=null==(n=e.field)?void 0:n.getBoundingClientRect();d&&(a.style.top=`${window.scrollY+(d.top-a.clientHeight-15)}px`,a.style.left=`${d.left+20}px`,a.classList.add("is-visible"))}function wC(){const e=document.getElementById("mathlive-environment-popover");null==e||e.classList.remove("is-visible")}function xC(e){if(!e.hasFocus())return;let t=!1;if("math"===e.model.mode){const i=e.model.parentEnvironment;if((null==i?void 0:i.array)&&(n=i.environmentName,Ex.concat(Px).concat(Cx).concat(_x).includes(n))){const n=e.options.environmentPopoverPolicy;t="auto"===n||"on"===n}}var n;t?bC(e):wC()}function SC(e){const t=getComputedStyle(e).direction;return"ltr"===t||"rtl"===t?t:"ltr"}function kC(e,t,n){return"left"===t||"leading"===t&&"ltr"===n||"trailing"===t&&"rtl"===n?e.left:e.right}function _C(e,t,n,i){return"middle"===n?e-t/2:"start"===n&&"rtl"===i||"end"===n&&"ltr"===i||"top"===n||"right"===n?Math.max(0,e-t):e}function CC(e){return"submenu"in e}function PC(e){return"type"in e&&"command"===e.type||"onMenuSelect"in e||"id"in e}function EC(e){return"type"in e&&"divider"===e.type}function MC(e){return"type"in e&&"heading"===e.type}var LC={};function AC(e){let t=LC[e];if(!t){let n;switch(e){case"checkmark":n='';break;case"trailing-chevron":n='';break;case"mixedmark":n=''}if(n){const i=document.createElement("template");i.innerHTML=n,LC[e]=i,t=i}}if(t){if("content"in t)return t.content.cloneNode(!0);const e=document.createElement("svg");return e.innerHTML=t.innerHTML,e}}var TC=class{constructor(e,t){var n;this._element=null,this.parentMenu=t,this._declaration=e,CC(e)?(this.type="submenu",this.submenu=new NC(e.submenu,{parentMenu:t,submenuClass:e.submenuClass,columnCount:e.columnCount})):this.type=null!=(n=e.type)?n:"command",this.hasCheck=PC(e)&&void 0!==e.checked}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var e,t;null==(e=this._abortController)||e.abort(),this._abortController=void 0,null==(t=this._element)||t.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var e;return null!=(e=this._label)?e:""}set label(e){void 0===e&&(e=""),e!==this._label&&(this._label=e,this.dirty=!0)}get visible(){return this._visible}set visible(e){e!==this._visible&&(this._visible=e,this.dirty=!0)}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.element&&(e?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(e){this._checked=e,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(e){e!==this._tooltip&&(this._tooltip=e,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){e!==this._ariaLabel&&(this._ariaLabel=e,this.dirty=!0)}get active(){var e,t;return null!=(t=null==(e=this.element)?void 0:e.classList.contains("active"))&&t}set active(e){this.element&&this.element.classList.toggle("active",e)}updateState(e){var t,n,i;const r=this._declaration;if(EC(r))return this.enabled=!1,void(this.checked=!1);MC(r)&&(this.enabled=!1,this.checked=!1,this.visible=!0),PC(r)&&(this.checked=PC(r)&&null!=(t=DC(r.checked,e))&&t),(PC(r)||CC(r))&&(this.enabled=null==(n=DC(r.enabled,e))||n,this.visible=null==(i=DC(r.visible,e))||i,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(e),this.submenu.visible||(this.visible=!1))),(PC(r)||MC(r)||CC(r))&&(this.label=DC(r.label,e),this.tooltip=DC(r.tooltip,e),this.ariaLabel=DC(r.ariaLabel,e)),this._element&&this.updateElement()}set dirty(e){console.assert(!0===e),e&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const e=this.element;e.textContent="",this.enabled?e.removeAttribute("aria-disabled"):e.setAttribute("aria-disabled","true"),!0===this.checked?(e.setAttribute("aria-checked","true"),e.append(AC("checkmark"))):"mixed"===this.checked?(e.setAttribute("aria-checked","mixed"),e.append(AC("mixedmark"))):e.removeAttribute("aria-checked"),this.ariaLabel&&e.setAttribute("aria-label",this.ariaLabel);const t=document.createElement("span");if(t.className=this.parentMenu.hasCheck?"label indent":"label","heading"===this.type&&t.classList.add("heading"),t.innerHTML=this.label,e.append(t),this._tooltip&&e.setAttribute("data-tooltip",this._tooltip),PC(this._declaration)&&this._declaration.keyboardShortcut){const t=document.createElement("kbd");t.innerHTML=zS(this._declaration.keyboardShortcut),e.append(t)}"submenu"===this.type&&e.append(AC("trailing-chevron"))}get element(){if(this._element)return this._element;if(EC(this._declaration)){const e=document.createElement("li");return e.setAttribute("part","menu-divider"),e.setAttribute("role","divider"),this._element=e,e}const e=document.createElement("li");this._element=e,(PC(this._declaration)||MC(this._declaration)||CC(this._declaration))&&this._declaration.class&&(e.className=this._declaration.class),e.setAttribute("part","menu-item"),e.setAttribute("tabindex","-1"),this.hasCheck?e.setAttribute("role","menuitemcheckbox"):e.setAttribute("role","menuitem"),"submenu"===this.type&&(e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false"));const t=this.abortController.signal;return e.addEventListener("pointerenter",this,{signal:t}),e.addEventListener("pointerleave",this,{signal:t}),e.addEventListener("pointerup",this,{signal:t}),e.addEventListener("click",this,{signal:t}),this._element}dispatchSelect(){if(!PC(this._declaration))return;const e=new CustomEvent("menu-select",{cancelable:!0,bubbles:!0,detail:{modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data}});this.parentMenu.dispatchEvent(e)&&"function"==typeof this._declaration.onMenuSelect&&this._declaration.onMenuSelect({modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data})}handleEvent(e){var t;if(this.visible&&this.enabled){if("click"===e.type)return"modal"===this.rootMenu.state&&this.select(),e.stopPropagation(),void e.preventDefault();if("pointerenter"===e.type){const n=e;return this.rootMenu.cancelDelayedOperation(),void(this.parentMenu.isSubmenuOpen&&(null==(t=this.parentMenu.activeMenuItem)?void 0:t.movingTowardSubmenu(n))?this.rootMenu.scheduleOperation((()=>{this.parentMenu.activeMenuItem=this,this.openSubmenu()})):(this.parentMenu.activeMenuItem=this,this.openSubmenu({withDelay:!0})))}if("pointerleave"!==e.type)return"pointerup"===e.type?("modal"!==this.rootMenu.state&&this.select(),e.stopPropagation(),void e.preventDefault()):void 0;this.rootMenu.activeSubmenu===this.parentMenu&&(this.parentMenu.activeMenuItem=null)}}select(){this.rootMenu.cancelDelayedOperation(),"submenu"!==this.type?(this.active=!1,setTimeout((()=>{this.active=!0,setTimeout((()=>{this.rootMenu.hide(),this.dispatchSelect()}),80)}),80)):this.openSubmenu()}openSubmenu(e){var t;if("submenu"!==this.type||!this.element)return;if(null!=(t=null==e?void 0:e.withDelay)&&t)return void this.rootMenu.scheduleOperation((()=>this.openSubmenu()));const n=this.element.getBoundingClientRect(),i=SC(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:kC(n,"trailing",i),y:n.top-4},alternateLocation:{x:kC(n,"leading",i),y:n.top-4}})}movingTowardSubmenu(e){if(!this.element)return!1;if("submenu"!==this.type)return!1;const t=this.rootMenu.lastMoveEvent;if(!t)return!1;const n=e.timeStamp-t.timeStamp;if(n>500)return!1;const i=e.clientX-t.clientX;var r,o,a;if((r=i,o=t.clientY-e.clientY,a=n,Math.hypot(r,o)/a)<=.2)return!1;let s="right";if(this.submenu.element){const e=this.submenu.element.getBoundingClientRect(),t=this.element.getBoundingClientRect();e.left0:i<0}};function DC(e,t){return void 0===e||"function"!=typeof e?e:(null!=t||(t={alt:!1,control:!1,shift:!1,meta:!1}),e(t))}var NC=class e{constructor(e,t){var n,i;this._element=null,this._activeMenuItem=null,this._dirty=!0,this.parentMenu=null!=(n=null==t?void 0:t.parentMenu)?n:null,this._submenuClass=null==t?void 0:t.submenuClass,this.columnCount=null!=(i=null==t?void 0:t.columnCount)?i:1,this.isSubmenuOpen=!1,this.menuItems=e}get children(){return this._menuItems}set menuItems(e){const t=this.parentMenu;this.dispose(),this.parentMenu=t,e=[...e],this._menuItems=e.map((e=>e.onCreate?e.onCreate(e,this):new TC(e,this))),this.hasCheck=void 0,this.dirty=!0}dispose(){var e;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),null==(e=this._menuItems)||e.forEach((e=>e.dispose())),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(e){if("wheel"===e.type&&this._element){const t=e;this._element.scrollBy(0,t.deltaY),e.stopPropagation()}}dispatchEvent(e){return this.rootMenu.dispatchEvent(e)}get rootMenu(){return this.parentMenu.rootMenu}updateState(e){var t,n,i;this._menuItems.forEach((t=>t.updateState(e)));const r=this.hasCheck;let o;this.hasCheck=this._menuItems.some((e=>e.visible&&e.hasCheck)),this.hasCheck!==r&&this._menuItems.forEach((t=>t.updateState(e)));let a=0;for(const e of this._menuItems)"heading"===e.type?(o&&0===a&&(o.visible=!1),o=e,a=0):"divider"===e.type&&o?(o.visible=a>0,o=void 0,a=0):o&&e.visible&&(a+=1);o&&(o.visible=a>0);let s=!0;for(const e of this._menuItems)"divider"===e.type?(e.visible=!s,s=!0):e.visible&&(s=!1);(null==(t=this.activeMenuItem)?void 0:t.visible)||(this.activeMenuItem=null),(null==(n=this.activeMenuItem)?void 0:n.enabled)||"submenu"!==(null==(i=this.activeMenuItem)?void 0:i.type)||this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some((e=>"divider"!==e.type&&e.visible&&e.enabled))}get visible(){return this.updateIfDirty(),this._menuItems.some((e=>"divider"!==e.type&&e.visible))}set dirty(e){console.assert(!0===e),this._dirty!==e&&e&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var e;if(this._element){this._element.textContent="";for(const{element:e,visible:t}of this._menuItems)e&&t&&this._element.append(e);null==(e=this._element.querySelector("li:first-of-type"))||e.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const e=document.createElement("menu");e.setAttribute("role","menu"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-orientation","vertical"),e.setAttribute("part","ui-menu-container"),this._submenuClass&&e.classList.add(this._submenuClass),e.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const t=this._abortController.signal;return e.addEventListener("focus",this,{signal:t}),e.addEventListener("wheel",this,{passive:!0,signal:t}),this._element=e,this.updateElement(),e}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(e){var t,n,i,r;if(this.rootMenu.cancelDelayedOperation(),e!==this._activeMenuItem){if(this.activeMenuItem){const e=this.activeMenuItem;e.active=!1,null==(t=e.submenu)||t.hide()}if(null!=(n=null==e?void 0:e.visible)&&!n)return void(this._activeMenuItem=null);this._activeMenuItem=e,e&&(e.active=!0)}e?null==(i=e.element)||i.focus({preventScroll:!0}):null==(r=this._element)||r.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let e=0,t=!1;const n=this._menuItems;for(;!t&&e<=n.length-1;){const i=n[e];t="divider"!==i.type&&i.visible&&i.enabled,e+=1}return t?n[e-1]:null}get lastMenuItem(){this.updateIfDirty();const e=this._menuItems;let t=e.length-1,n=!1;for(;!n&&t>=0;){const i=e[t];n="divider"!==i.type&&i.visible&&i.enabled,t-=1}return n?e[t+1]:null}nextMenuItem(e){if(0===e)return this._activeMenuItem;if(!this._activeMenuItem)return e>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const t=this._menuItems.indexOf(this.firstMenuItem),n=this._menuItems.indexOf(this.lastMenuItem);let i=this._menuItems.indexOf(this._activeMenuItem),r=1;for(;i>=t&&i<=n;){i+=e>0?1:-1;const t=this._menuItems[i];if(!t)break;if(t.visible&&t.enabled){if(r===Math.abs(e))return this._menuItems[i];r+=1}}return e>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(e){this.updateIfDirty();const t=this._menuItems.filter((e=>e.visible&&e.enabled)),n=t.indexOf(e);return n<0?-1:n%this.columnCount}static get collator(){return e._collator||(e._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),e._collator}findMenuItem(t){var n;this.updateIfDirty();const i=this._menuItems.filter((e=>"divider"!==e.type&&e.visible&&e.enabled));if(0===i.length)return null;const r=Math.max(...i.map((e=>e.label.length)))-t.length;if(r<0)return null;let o=null,a=0;for(;a0===e.collator.compare(t,n.label.substring(a,t.length)))))?n:null,a++;return o}show(e){return!(!this.visible||!e.container)&&(this.updateElement(),e.container.appendChild(this.element),hp()&&(this.element.popover="manual",this.element.showPopover()),e.location&&function(e,t){var n,i,r;const o=null!=(n=SC(e))?n:"ltr";e.style.position="fixed",e.style.left="",e.style.top="",e.style.right="",e.style.bottom="",e.style.height="",e.style.width="";const a=e.getBoundingClientRect(),s=Number.isFinite(t.maxHeight)?Math.min(t.maxHeight,window.innerHeight):window.innerHeight;let l=Math.min(s,null!=(i=t.height)?i:a.height),c=_C(t.location.y,l,t.verticalPos,o);c+l>window.innerHeight-8&&(t.alternateLocation?(c=_C(t.alternateLocation.y,l,t.verticalPos,o),c+l>window.innerHeight-8&&(c=void 0)):c=void 0),Number.isFinite(c)||(c=Math.max(8,window.innerHeight-8-l),8+l>window.innerHeight-8&&(e.style.bottom="8px")),l=Math.min(c+l,window.innerHeight-8)-c;const u=Number.isFinite(t.maxWidth)?Math.min(t.maxWidth,window.innerWidth):window.innerWidth;let h=Math.min(u,null!=(r=t.width)?r:a.width),d=_C(t.location.x,h,t.horizontalPos,o);d+h>window.innerWidth-8&&(t.alternateLocation?(d=function(e,t,n,i){return"middle"===n?e-t/2:"start"===n&&"ltr"===i||"end"===n&&"rtl"===i||"top"===n||"right"===n?e:e-t}(t.alternateLocation.x,h,t.verticalPos,o),d+h>window.innerWidth-8&&(d=void 0)):d=void 0),Number.isFinite(d)||(d=Math.max(8,window.innerWidth-8-h),8+h>window.innerWidth-8&&(e.style.right="8px")),h=Math.min(d+h,window.innerWidth-8)-d,"rtl"===o?e.style.right=`${Math.ceil(window.innerWidth-d-h).toString()}px`:e.style.left=`${Math.ceil(d).toString()}px`,e.style.top=`${Math.ceil(c).toString()}px`,l!==a.height&&(e.style.height=`${Math.ceil(l).toString()}px`),h!==a.width&&(e.style.width=`${Math.ceil(h).toString()}px`)}(this.element,{location:e.location,alternateLocation:e.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var e,t,n,i,r;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),hp()&&(null==(e=this._element)?void 0:e.popover)&&this.element.hidePopover(),null==(n=null==(t=this.parentMenu)?void 0:t.element)||n.focus(),null==(r=null==(i=this._element)?void 0:i.parentNode)||r.removeChild(this._element)}set openSubmenu(e){var t,n,i,r;const o=null!==e;"submenu"===(null==(t=this.activeMenuItem)?void 0:t.type)&&(null==(n=this.activeMenuItem.element)||n.setAttribute("aria-expanded",o.toString())),null==(r=null==(i=this.activeMenuItem)?void 0:i.element)||r.classList.toggle("is-submenu-open",o),this.isSubmenuOpen=o}},IC=class e extends NC{constructor(e,t){var n;super(e),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=null!=(n=null==t?void 0:t.host)?n:null,this.isDynamic=e.some(RC),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(e){(function(e,t){return!(!e&&t||e&&!t||e&&t&&(e.alt!==t.alt||e.control!==t.control||e.shift!==t.shift||e.meta!==t.meta))})(this._modifiers,e)||(this._modifiers=e,this.dirty=!0)}get activeSubmenu(){let e=this;for(;e.isSubmenuOpen;)e=e.activeMenuItem.submenu;return e}set dirty(e){this._updating||(console.assert(!0===e),this._dirty!==e&&(this._dirty=!0,e&&setTimeout((()=>{this.updateState(this.modifiers),this.updateElement()}))))}updateState(e){this._updating=!0,this.modifiers=null!=e?e:this.modifiers,super.updateState(this.modifiers),this._updating=!1}handleKeyupEvent(e){this.isDynamic&&(this.modifiers=$S(e)),e.stopImmediatePropagation()}handleKeydownEvent(e){var t,n,i;if("Tab"===e.key||"Escape"===e.key)return void this.hide();this.isDynamic&&(this.modifiers=$S(e));let r=!0;const o=this.activeSubmenu,a=o.activeMenuItem;switch(e.key){case" ":case"Space":case"Return":case"Enter":null==a||a.select($S(e));break;case"ArrowRight":if("submenu"===(null==a?void 0:a.type))a.select($S(e)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(a){const e=null!=(t=o.getMenuItemColumn(a))?t:-1;if(e>=0&&e<(null!=(n=o.columnCount)?n:1)-1){const e=o.nextMenuItem(1);e&&(o.activeMenuItem=e)}}else o.activeMenuItem=o.firstMenuItem;break;case"ArrowLeft":if(o===this.rootMenu)a||(o.activeMenuItem=o.firstMenuItem);else{if((a&&null!=(i=o.getMenuItemColumn(a))?i:-1)<=0||!a){o.hide();const e=o.parentMenu.activeMenuItem;if(e){const{element:t}=e;null==t||t.focus(),null==t||t.classList.remove("is-submenu-open")}}else{const e=o.nextMenuItem(-1);e&&(o.activeMenuItem=e)}}break;case"ArrowDown":o.activeMenuItem=o.nextMenuItem(o.columnCount);break;case"ArrowUp":o.activeMenuItem=o.nextMenuItem(-o.columnCount);break;case"Home":case"PageUp":o.activeMenuItem=o.firstMenuItem;break;case"End":case"PageDown":o.activeMenuItem=o.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const e=o.findMenuItem(this.typingBuffer);e&&(o.activeMenuItem=e),this.typingBufferResetTimer=setTimeout((()=>{this.typingBuffer=""}),500)}break;default:if(ZS(e)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=e.key;const t=o.findMenuItem(this.typingBuffer);t&&(o.activeMenuItem=t),this.typingBufferResetTimer=setTimeout((()=>{this.typingBuffer=""}),500)}else r=!1}r&&(e.preventDefault(),e.stopPropagation())}handleEvent(e){if("keydown"===e.type)this.handleKeydownEvent(e);else if("keyup"===e.type)this.handleKeyupEvent(e);else if("pointermove"===e.type)this.lastMoveEvent=e;else if("pointerup"===e.type&&e.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":"modal"===this.state&&this.hide();else if("contextmenu"===e.type)return e.preventDefault(),void e.stopPropagation();super.handleEvent(e)}dispatchEvent(e){return!this._host||this._host.dispatchEvent(e)}get scrim(){return GS.element}connectScrim(e){const t=this.scrim;t.addEventListener("pointerup",this),t.addEventListener("contextmenu",this),t.addEventListener("keydown",this),t.addEventListener("keyup",this),t.addEventListener("pointermove",this),GS.open({root:e,onDismiss:()=>this.hide()})}disconnectScrim(){const e=this.scrim;e.removeEventListener("pointerup",this),e.removeEventListener("contextmenu",this),e.removeEventListener("keydown",this),e.removeEventListener("keyup",this),e.removeEventListener("pointermove",this),"open"===GS.state&&GS.scrim.close()}get rootMenu(){return this}show(e){return this._onDismiss=null==e?void 0:e.onDismiss,(null==e?void 0:e.modifiers)&&(this.modifiers=e.modifiers),this.updateState(),this.connectScrim(null==e?void 0:e.target),super.show(rp(ip({},e),{container:this.scrim}))?(this._openTimestamp=Date.now(),this.state="open",!0):(this.disconnectScrim(),!1)}hide(){this.cancelDelayedOperation(),void 0!==this.state&&("closed"!==this.state&&(this.activeMenuItem=null,GS.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(t){this.cancelDelayedOperation();const n=e.SUBMENU_DELAY;n<=0?t():this.hysteresisTimer=setTimeout((()=>{this.hysteresisTimer=0,t()}),n)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};IC.SUBMENU_DELAY=120;var BC=IC;function RC(e){return!EC(e)&&("function"==typeof e.label||"function"==typeof e.ariaLabel||"function"==typeof e.tooltip||(!(!PC(e)&&!CC(e)||"function"!=typeof e.enabled&&"function"!=typeof e.visible)||(!(!PC(e)||"function"!=typeof e.checked)||!!CC(e)&&e.submenu.some(RC))))}var OC=class{};function FC(e){return new Promise(((t,n)=>{const i=jS(e);i||t(!1);let r=i;const o=setTimeout((()=>{var e,n;a.abort(),t((e=r,n=i,Math.hypot(n.x-e.x,n.y-e.y){if("pointerup"===e.type||"pointercancel"===e.type)clearTimeout(o),a.abort(),t(!1);else if("pointermove"===e.type){const t=jS(e);t&&(r=t)}}),{passive:!0,signal:s})}))}async function zC(e,t,n){if("contextmenu"===e.type){const i=e;if(n.show({target:t,location:jS(i),modifiers:$S(i)}))return e.preventDefault(),e.stopPropagation(),!0}if("keydown"===e.type){const i=e;if("ContextMenu"===i.code||"F10"===i.code&&i.shiftKey){const r=null==t?void 0:t.getBoundingClientRect();if(r&&n.show({target:t,location:{x:Math.ceil(r.left+r.width/2),y:Math.ceil(r.top+r.height/2)},modifiers:$S(i)}))return e.preventDefault(),e.stopPropagation(),!0}}if("pointerdown"===e.type&&"mouse"!==e.pointerType&&0===e.button){let i=e.target;for(;i&&t!==i;)i=i.parentNode;if(!i)return!1;if(!n.visible)return!1;const r=jS(e);if(await FC(e))return"closed"===n.state&&(n.show({target:t,location:r}),!0)}return!1}OC.DELAY=300,OC.MAX_DISTANCE=10;var jC={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};qp(Object.keys(jC),"{body:auto}",{createAtom:e=>new sx(rp(ip({},e),{body:Ap(e.args[0]),accentChar:jC[e.command.slice(1)]}))}),qp(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:e=>{const t=Up(Ap(e.args[0]));return new sx(rp(ip({},e),{body:Ap(e.args[0]),svgAccent:e.command.slice(1)+(t.length>5?"4":["1","1","2","2","3","3"][t.length])}))}}),qp(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:e=>new sx(rp(ip({},e),{body:Ap(e.args[0]),svgAccent:"overarc"}))}),qp(["underarc","underparen"],"{body:auto}",{createAtom:e=>new aS(rp(ip({},e),{body:Ap(e.args[0]),svgBelow:"underarc"}))}),qp("utilde","{body:auto}",{createAtom:e=>{const t=Ap(e.args[0]),n=Up(t),i="widetilde"+(n.length>5?"4":["1","1","2","2","3","3"][n.length]);return new aS(rp(ip({},e),{body:t,svgBelow:i,boxType:ew(t)}))}}),qp("^","{:string}",{createAtom:e=>{var t;return new _w(rp(ip({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&null!=(t={a:"â",e:"ê",i:"î",o:"ô",u:"û",A:"Â",E:"Ê",I:"Î",O:"Ô",U:"Û"}[e.args[0]])?t:"^"}))}}),qp("`","{:string}",{createAtom:e=>{var t;return new _w(rp(ip({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&null!=(t={a:"à",e:"è",i:"ì",o:"ò",u:"ù",A:"À",E:"È",I:"Ì",O:"Ò",U:"Ù"}[e.args[0]])?t:"`"}))}}),qp("'","{:string}",{createAtom:e=>{var t;return new _w(rp(ip({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&null!=(t={a:"á",e:"é",i:"í",o:"ó",u:"ú",A:"Á",E:"É",I:"Í",O:"Ó",U:"Ú"}[e.args[0]])?t:"'"}))}}),qp('"',"{:string}",{createAtom:e=>{var t,n;return new _w(rp(ip({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(null==(t=e.args)?void 0:t[0])?null!=(n={a:"ä",e:"ë",i:"ï",o:"ö",u:"ü",A:"Ä",E:"Ë",I:"Ë",O:"Ö",U:"Ü"}[e.args[0]])?n:'"'+e.args[0]:'"'}))}}),qp(".","{:string}",{createAtom:e=>{var t,n;return new _w(rp(ip({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(null==(t=e.args)?void 0:t[0])?null!=(n={a:"ȧ",e:"ė",i:"̇i",o:"ȯ",u:"̇u",A:"Ȧ",E:"Ė",I:"İ",O:"Ȯ",U:"̇U"}[e.args[0]])?n:"."+e.args[0]:"."}))}}),qp("=","{:string}",{createAtom:e=>{var t,n;return new _w(rp(ip({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(null==(t=e.args)?void 0:t[0])?null!=(n={a:"ā",e:"ē",i:"ī",o:"ō",u:"ū",A:"Ā",E:"Ē",I:"Ī",O:"Ō",U:"Ū"}[e.args[0]])?n:"="+e.args[0]:"="}))}}),qp("~","{:string}",{createAtom:e=>{var t;return new _w(rp(ip({type:"mord"},e),{isFunction:!1,limits:"adjacent",value:e.args[0]&&null!=(t={n:"ñ",N:"Ñ",a:"ã",o:"õ",A:"Ã",O:"Õ"}[e.args[0]])?t:"´"}))}}),qp("c","{:string}",{createAtom:e=>{var t;return new _w(rp(ip({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&null!=(t={c:"ç",C:"Ç"}[e.args[0]])?t:""}))}}),qp("enclose","{notation:string}[style:string]{body:auto}",{createAtom:e=>{var t,n;const i=e.args,r={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:null!=(t=e.style)?t:{}};if(i[1]){const e=i[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const t of e){const e=t.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(e)r.strokeWidth=e[1],r.strokeStyle=e[2],r.strokeColor=e[3];else{const e=t.match(/\s*([a-z]*)\s*=\s*"(.*)"/);e&&("mathbackground"===e[1]?r.backgroundcolor=e[2]:"mathcolor"===e[1]?r.strokeColor=e[2]:"padding"===e[1]?r.padding=e[2]:"shadow"===e[1]&&(r.shadow=e[2]))}}"dashed"===r.strokeStyle?r.svgStrokeStyle="5,5":"dotted"===r.strokeStyle&&(r.svgStrokeStyle="1,5")}r.borderStyle=`${r.strokeWidth} ${r.strokeStyle} ${r.strokeColor}`;const o={};return(null!=(n=i[0])?n:"").split(/[, ]/).filter((e=>e.length>0)).forEach((e=>{o[e.toLowerCase()]=!0})),new Qx(e.command,Ap(i[2]),o,r)}}),qp("cancel","{body:auto}",{createAtom:e=>{var t;return new Qx(e.command,Ap(e.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:null!=(t=e.style)?t:{}})}}),qp("bcancel","{body:auto}",{createAtom:e=>{var t;return new Qx(e.command,Ap(e.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:null!=(t=e.style)?t:{}})}}),qp("xcancel","{body:auto}",{createAtom:e=>{var t;return new Qx(e.command,Ap(e.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:null!=(t=e.style)?t:{}})}}),qp(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:e=>{var t;return new aS(rp(ip({},e),{body:Ap(null==(t=e.args)?void 0:t[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:e.command.slice(1)}))}}),qp("overbrace","{:auto}",{createAtom:e=>new aS(rp(ip({},e),{body:Ap(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:e.command.slice(1)}))}),qp(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:e=>new aS(rp(ip({},e),{body:Ap(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:e.command.slice(1)}))}),qp(["underbrace"],"{:auto}",{createAtom:e=>new aS(rp(ip({},e),{body:Ap(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:e.command.slice(1)}))}),qp(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:e=>{var t,n,i,r,o;return new aS(rp(ip({},e),{svgBody:e.command.slice(1),above:0===(null==(n=Ap(null==(t=e.args)?void 0:t[1]))?void 0:n.length)?void 0:Ap(null==(i=e.args)?void 0:i[1]),below:null!=(o=Ap(null==(r=e.args)?void 0:r[0]))?o:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(e,t)=>e.command+(e.hasEmptyBranch("below")?"":`[${e.belowToLatex(t)}]`)+`{${e.aboveToLatex(t)}}${e.supsubToLatex(t)}`}),qp(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:e=>new vS(e.command.slice(1),rp(ip({},e),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),qp(["liminf","limsup"],"",{ifMode:"math",createAtom:e=>new vS({"\\liminf":"lim inf","\\limsup":"lim sup"}[e.command],rp(ip({},e),{limits:"over-under",variant:"main"}))}),qp(["lim","mod"],"",{ifMode:"math",createAtom:e=>new vS(e.command.slice(1),rp(ip({},e),{limits:"over-under",variant:"main"}))}),qp(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:e=>new vS(e.command.slice(1),rp(ip({},e),{limits:"over-under",isFunction:!0,variant:"main"}))}),qp(["ang"],"{:math}",{ifMode:"math",createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[0])})),serialize:(e,t)=>`\\ang{${e.bodyToLatex(t)}}`,render:(e,t)=>{const n=e.createBox(t),i=n.caret;n.caret=void 0;const r=new nw("°",{style:rp(ip({},e.style),{variant:"normal",variantStyle:"up"})});return new nw([n,r],{type:"inner",isSelected:e.isSelected,caret:i})}}),qp("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:e=>new cS(rp(ip({},e),{body:Ap(e.args[1]),index:e.args[0]?Ap(e.args[0]):void 0}))}),qp(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:e=>{const t=ip({},e),n=e.command,i=e.args;switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":t.hasBarLine=!0;break;case"\\atopfrac":t.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":t.hasBarLine=!1,t.leftDelim="(",t.rightDelim=")";break;case"\\cfrac":t.hasBarLine=!0,t.continuousFraction=!0}switch(n){case"\\dfrac":case"\\dbinom":t.mathstyleName="displaystyle";break;case"\\tfrac":case"\\tbinom":t.mathstyleName="textstyle"}return new tS(i[0]?Ap(i[0]):[new kx],i[1]?Ap(i[1]):[new kx],t)},serialize:(e,t)=>{const n=e.aboveToLatex(t),i=e.belowToLatex(t);return/^[0-9]$/.test(n)&&/^[0-9]$/.test(i)?`${e.command}${n}${i}`:Gb(e.command,n,i)}}),qp(["brace","brack"],"",{infix:!0,createAtom:e=>new tS(Ap(e.args[0]),Ap(e.args[1]),rp(ip({},e),{hasBarLine:!1,leftDelim:"\\brace"===e.command?"\\lbrace":"\\lbrack",rightDelim:"\\brace"===e.command?"\\rbrace":"\\rbrack"})),serialize:(e,t)=>Kb([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),qp(["over","atop","choose"],"",{infix:!0,createAtom:e=>{let t,n;const i=e.args;return"\\choose"===e.command&&(t="(",n=")"),new tS(Ap(i[0]),Ap(i[1]),rp(ip({},e),{hasBarLine:"\\over"===e.command,leftDelim:t,rightDelim:n}))},serialize:(e,t)=>Kb([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),qp(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:e=>{var t,n;const i=e.args;return new tS(Ap(i[0]),Ap(i[1]),rp(ip({},e),{leftDelim:null!=(t=i[2])?t:".",rightDelim:null!=(n=i[3])?n:".",hasBarLine:!1}))},serialize:(e,t)=>`${e.aboveToLatex(t)} ${e.command}${e.leftDelim}${e.rightDelim}${e.belowToLatex(t)}`}),qp("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:e=>new tS(Ap(e.args[0]),Ap(e.args[1]),rp(ip({},e),{hasBarLine:!0,numerPrefix:"∂",denomPrefix:"∂"}))}),qp(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:e=>new rS({coprod:"∐",bigvee:"⋁",bigwedge:"⋀",biguplus:"⨄",bigcap:"⋂",bigcup:"⋃",intop:"∫",prod:"∏",sum:"∑",bigotimes:"⨂",bigoplus:"⨁",bigodot:"⨀",bigsqcup:"⨆",smallint:"∫"}[e.command.slice(1)],rp(ip({},e),{limits:"auto",variant:"main"}))}),qp("smallint","",{ifMode:"math",createAtom:e=>new vS("∫",rp(ip({},e),{limits:"adjacent",variant:"main"}))});var $C={int:"∫",iint:"∬",iiint:"∭",oint:"∮",oiint:"∯",oiiint:"∰",intclockwise:"∱",varointclockwise:"∲",ointctrclockwise:"∳",intctrclockwise:"⨑",sqcup:"⊔",sqcap:"⊓",uplus:"⊎",wr:"≀",amalg:"⨿",Cap:"⋒",Cup:"⋓",doublecap:"⋒",doublecup:"⋓"};qp(Object.keys($C),"",{ifMode:"math",createAtom:e=>{const t=e.command,n=$C[t.slice(1)];return new rS(n,rp(ip({},e),{limits:"adjacent",variant:{"⋒":"ams","⋓":"ams"}[n]}))}}),qp(["Re","Im"],"",{ifMode:"math",createAtom:e=>new vS({"\\Re":"ℜ","\\Im":"ℑ"}[e.command],rp(ip({},e),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),qp("middle","{:delim}",{ifMode:"math",createAtom:e=>{var t;return new Yx(rp(ip({},e),{delim:null!=(t=e.args[0])?t:"|",size:1}))}}),qp("the","{:value}",{createAtom:e=>new _w(rp(ip({},e),{captureSelection:!0,verbatimLatex:null})),render:(e,t)=>{var n;const i=new ww({parent:t},e.style);let r="";e.isSelected&&(r+=" ML__selected");const o=i.evaluate(e.args[0]);return new nw((null!=(n=gw(o))?n:"").split("").map((t=>new nw(t,{type:"ord",classes:r,mode:e.mode,isSelected:e.isSelected,style:ip({variant:"main"},e.style)}))),{type:"lift",style:e.style,caret:e.caret,isSelected:e.isSelected,classes:r}).wrap(i)},serialize:e=>{var t;return`\\the${null!=(t=gw(e.args[0]))?t:"\\relax"}`}}),qp("mathtip","{:auto}{:math}",{createAtom:e=>new mS(rp(ip({},e),{body:Ap(e.args[0]),tooltip:Ap(e.args[1]),content:"math"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${_w.serialize([e.tooltip],rp(ip({},t),{defaultMode:"math"}))}}`}),qp("texttip","{:auto}{:text}",{createAtom:e=>new mS(rp(ip({},e),{body:Ap(e.args[0]),tooltip:Ap(e.args[1]),content:"text"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${_w.serialize([e.tooltip],rp(ip({},t),{defaultMode:"text"}))}}`}),qp("error","{:math}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[0])})),serialize:(e,t)=>`\\error{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__error"})}),qp("ensuremath","{:math}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(rp(ip({},t),{defaultMode:"math"}))}}`}),qp("color","{:value}",{applyStyle:(e,t,n)=>{var i,r;return{verbatimColor:null!=(i=gw(t[0]))?i:void 0,color:n.toColor(null!=(r=t[0])?r:{string:"red"})}}}),qp("textcolor","{:value}{content:auto*}",{applyStyle:(e,t,n)=>{var i,r;return{verbatimColor:null!=(i=gw(t[0]))?i:void 0,color:n.toColor(null!=(r=t[0])?r:{string:"red"})}}}),qp("boxed","{content:math}",{createAtom:e=>new Nx(rp(ip({},e),{body:Ap(e.args[0]),framecolor:{string:"black"}}))}),qp("colorbox","{:value}{:text*}",{applyStyle:(e,t,n)=>{var i,r;return{verbatimBackgroundColor:null!=(i=gw(t[0]))?i:void 0,backgroundColor:n.toBackgroundColor(null!=(r=t[0])?r:{string:"yellow"})}}}),qp("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:e=>{var t,n;return new Nx(rp(ip({},e),{body:Ap(e.args[2]),framecolor:null!=(t=e.args[0])?t:{string:"blue"},backgroundcolor:null!=(n=e.args[1])?n:{string:"yellow"}}))},serialize:(e,t)=>{var n,i;return t.skipStyles?e.bodyToLatex(rp(ip({},t),{defaultMode:"text"})):Gb(e.command,null!=(n=gw(e.framecolor))?n:"",null!=(i=gw(e.backgroundcolor))?i:"",e.bodyToLatex(rp(ip({},t),{defaultMode:"text"})))}}),qp("bbox","[:bbox]{body:auto}",{createAtom:e=>{var t;const n=e.args[0],i=Ap(e.args[1]);return new Nx(rp(ip({},e),n?{body:i,padding:n.padding,border:n.border,backgroundcolor:null!=(t=n.backgroundcolor)?t:void 0}:{body:i}))},serialize:(e,t)=>{var n,i;if(t.skipStyles)return e.bodyToLatex(t);let r=e.command;if(Number.isFinite(e.padding)||void 0!==e.border||void 0!==e.backgroundcolor){const t=[];e.padding&&t.push(null!=(n=gw(e.padding))?n:""),e.border&&t.push(`border: ${e.border}`),e.backgroundcolor&&t.push(null!=(i=gw(e.backgroundcolor))?i:""),r+=`[${t.join(",")}]`}return Gb(r,e.bodyToLatex(t))}}),qp(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[0])})),render:(e,t)=>{const n=new ww({parent:t,mathstyle:e.command.slice(1)},e.style),i=_w.createBox(n,e.body,{type:"lift"});return e.caret&&(i.caret=e.caret),e.bind(t,i)},serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{${Kb([e.command,e.bodyToLatex(t)])}}`}),qp(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{applyStyle:e=>({fontSize:{"\\tiny":1,"\\scriptsize":2,"\\footnotesize":3,"\\small":4,"\\normalsize":5,"\\large":6,"\\Large":7,"\\LARGE":8,"\\huge":9,"\\Huge":10}[e]})}),qp("fontseries","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var n;return{fontSeries:null!=(n=t[0])?n:"auto"}}}),qp("fontshape","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var n;return{fontShape:null!=(n=t[0])?n:"auto"}}}),qp("fontfamily","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var n;return{fontFamily:null!=(n=t[0])?n:"roman"}}}),qp("selectfont","",{ifMode:"text",applyStyle:()=>({})}),qp("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),qp(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__boldsymbol"})}),qp("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),qp("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),qp("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),qp("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),qp("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),qp("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),qp("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),qp("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),qp("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),qp("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),qp("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),qp("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),qp("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),qp("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),qp("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),qp("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),qp("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),qp("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),qp("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),qp("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),qp("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),qp("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),qp("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),qp("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),qp("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),qp("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),qp("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),qp(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),qp(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),qp("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),qp("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),qp("mbox","{:text}",{ifMode:"math",createAtom:e=>new _w(rp(ip({},e),{type:"mord",body:Ap(e.args[0]),mode:"math"})),serialize:(e,t)=>Gb("\\mbox",e.bodyToLatex(rp(ip({},t),{defaultMode:"text"})))}),qp("text","{:text}",{ifMode:"math",applyMode:"text"}),qp(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[1])})),serialize:(e,t)=>!e.args[0]||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`,render:(e,t)=>{var n;return e.createBox(t,{classes:null!=(n=e.args[0])?n:""})}}),qp(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[1])})),serialize:(e,t)=>{var n;return!(null==(n=e.args)?void 0:n[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var n;const i=e.createBox(t);return i.cssId=null!=(n=e.args[0])?n:"",i}}),qp("htmlData","{data:string}{content:auto}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[1])})),serialize:(e,t)=>{var n;return!(null==(n=e.args)?void 0:n[0])||t.skipStyles?e.bodyToLatex(t):`\\htmlData{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var n;const i=e.createBox(t);return i.htmlData=null!=(n=e.args[0])?n:"",i}}),qp(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[1])})),serialize:(e,t)=>{var n;return!(null==(n=e.args)?void 0:n[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var n;const i=e.createBox(t);return i.htmlStyle=null!=(n=e.args[0])?n:"",i}}),qp("em","{:rest}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[0])})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{\\em ${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__emph",boxType:"lift"})}),qp("emph","{:auto}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[1])})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\emph{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__emph",boxType:"lift"})});var HC={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};qp(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:e=>{var t;return new Xx(rp(ip({},e),{delim:null!=(t=e.args[0])?t:".",size:HC[e.command].size,delimType:HC[e.command].mclass}))}}),qp(["hspace","hspace*"],"{width:value}",{createAtom:e=>{var t;return new lS(rp(ip({},e),{width:null!=(t=e.args[0])?t:{dimension:0}}))}}),qp(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:e=>{var t;return new lS(rp(ip({},e),{width:null!=(t=e.args[0])?t:{dimension:0}}))}}),qp("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:e=>new _w(e),render:(e,t)=>{let n=0;const i=t.mathstyle.id;5!==i&&4!==i||(n=1),3!==i&&2!==i||(n=2),1!==i&&0!==i||(n=3);const r=Ap(e.args[n]);return _w.createBox(t,r)},serialize:(e,t)=>`\\mathchoice{${_w.serialize(e.args[0],t)}}{${_w.serialize(e.args[1],t)}}{${_w.serialize(e.args[2],t)}}{${_w.serialize(e.args[3],t)}}`}),qp("mathop","{:auto}",{createAtom:e=>new _w(rp(ip({},e),{type:"mop",body:Ap(e.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(e,t)=>{var n;let i=_w.createBox(t,e.body);if(e.superscript||e.subscript){const r=null!=(n=e.subsupPlacement)?n:"auto";i="over-under"===r||"auto"===r&&t.isDisplayStyle?e.attachLimits(t,{base:i}):e.attachSupsub(t,{base:i})}return new nw(e.bind(t,i),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const n=[Gb(e.command,e.bodyToLatex(t))];return e.explicitSubsupPlacement&&("over-under"===e.subsupPlacement&&n.push("\\limits"),"adjacent"===e.subsupPlacement&&n.push("\\nolimits"),"auto"===e.subsupPlacement&&n.push("\\displaylimits")),n.push(e.supsubToLatex(t)),Kb(n)}}),qp(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:e=>new _w(rp(ip({},e),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e.command],body:Ap(e.args[0])}))}),qp(["operatorname","operatorname*"],"{operator:math}",{createAtom:e=>{const t=Ap(e.args[0]).map((e=>{var t;return"first"!==e.type&&(e.type="mord",e.value=null!=(t={"∗":"*","−":"-"}[e.value])?t:e.value,e.isFunction=!1,e.style.variant||e.style.variantStyle||(e.style.variant="main",e.style.variantStyle="up")),e}));return new _w(rp(ip({},e),{type:"mop",body:t,isFunction:!0,limits:"\\operatorname"===e.command?"adjacent":"over-under"}))},render:(e,t)=>{var n;let i=_w.createBox(t,e.body);if(e.superscript||e.subscript){const r=null!=(n=e.subsupPlacement)?n:"auto";i="over-under"===r||"auto"===r&&t.isDisplayStyle?e.attachLimits(t,{base:i}):e.attachSupsub(t,{base:i})}return e.caret&&(i.caret=e.caret),new nw(e.bind(t,i),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const n=[Gb(e.command,e.bodyToLatex(t))];return e.explicitSubsupPlacement&&("over-under"===e.subsupPlacement&&n.push("\\limits"),"adjacent"===e.subsupPlacement&&n.push("\\nolimits"),"auto"===e.subsupPlacement&&n.push("\\displaylimits")),n.push(e.supsubToLatex(t)),Kb(n)}}),qp(["char","unicode"],"{charcode:value}",{createAtom:e=>new _w(rp(ip({},e),{type:"text"===e.mode?"text":"mord"})),serialize:e=>{var t;return`${e.command}${gw(null!=(t=e.args[0])?t:{number:10067,base:"hexadecimal"})}`},render:(e,t)=>{let n=t.evaluate(e.args[0]);return n&&"number"in n||(n={number:10067,base:"hexadecimal"}),e.value=String.fromCodePoint(n.number),e.createBox(t)}}),qp("rule","[raise:value]{width:value}{thickness:value}",{createAtom:e=>new _w(e),render:(e,t)=>{var n,i,r;const o=new ww({parent:t,mathstyle:"textstyle"},e.style),a=o.toEm(null!=(n=e.args[0])?n:{dimension:0}),s=o.toEm(null!=(i=e.args[1])?i:{dimension:10}),l=o.toEm(null!=(r=e.args[2])?r:{dimension:10}),c=new nw(null,{classes:"rule",type:"ord"});return c.width=s,c.height=l+a,c.depth=-a,c.setStyle("border-right-width",s,"em"),c.setStyle("border-top-width",l,"em"),c.setStyle("border-color",e.style.color),c.setStyle("vertical-align",a,"em"),e.isSelected&&c.setStyle("opacity","50%"),e.bind(o,c),e.caret&&(c.caret=e.caret),c.wrap(t)},serialize:e=>`\\rule${e.args[0]?`[${gw(e.args[0])}]`:""}{${gw(e.args[1])}}{${gw(e.args[2])}}`}),qp(["overline","underline"],"{:auto}",{createAtom:e=>new _w(rp(ip({},e),{body:Ap(e.args[0])})),render:(e,t)=>{const n=e.command.substring(1),i=new ww({parent:t,mathstyle:"cramp"},e.style),r=_w.createBox(i,e.body);if(!r)return null;const o=i.metrics.defaultRuleThickness/i.scalingFactor,a=new nw(null,{classes:n+"-line"});let s;return a.height=o,a.maxFontSize=1.125*o*i.scalingFactor,s=new lw("overline"===n?{shift:0,children:[{box:r},3*o,{box:a},o]}:{top:r.height,children:[o,{box:a},3*o,{box:r}]}),e.caret&&(s.caret=e.caret),new nw(s,{classes:n,type:"ignore"})}}),qp("overset","{:auto}{base:auto}",{createAtom:e=>{const t=Ap(e.args[1]);return new aS(rp(ip({},e),{above:Ap(e.args[0]),body:t,skipBoundary:!1,boxType:ew(t)}))},serialize:(e,t)=>Gb(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),qp("underset","{:auto}{base:auto}",{createAtom:e=>{const t=Ap(e.args[1]);return new aS(rp(ip({},e),{below:Ap(e.args[0]),body:t,skipBoundary:!1,boxType:ew(t)}))},serialize:(e,t)=>Gb(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),qp("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:e=>{const t=Ap(e.args[2]);return new aS(rp(ip({},e),{above:Ap(e.args[0]),below:Ap(e.args[1]),body:t,skipBoundary:!1,boxType:ew(t)}))},serialize:(e,t)=>Gb(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),qp(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:e=>new aS(rp(ip({},e),{body:Ap(e.args[2]),above:Ap(e.args[1]),below:Ap(e.args[0]),skipBoundary:!1,boxType:"\\stackrel"===e.command?"rel":"bin"})),serialize:(e,t)=>Gb(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),qp("smash","[:string]{:auto}",{createAtom:e=>{var t,n,i,r;return new sS(rp(ip({},e),{body:Ap(e.args[1]),smashHeight:null==(n=null==(t=e.args[0])?void 0:t.includes("t"))||n,smashDepth:null==(r=null==(i=e.args[0])?void 0:i.includes("b"))||r}))}}),qp(["vphantom"],"{:auto}",{createAtom:e=>new sS(rp(ip({},e),{body:Ap(e.args[0]),isInvisible:!0,smashWidth:!0}))}),qp(["hphantom"],"{:auto}",{createAtom:e=>new sS(rp(ip({},e),{body:Ap(e.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),qp(["phantom"],"{:auto}",{createAtom:e=>new sS(rp(ip({},e),{body:Ap(e.args[0]),isInvisible:!0}))}),qp("not","{:math}",{createAtom:e=>{const t=Ap(e.args[0]);return 0===t.length?new _w(rp(ip({},e),{type:"mrel",value:""})):new _w(rp(ip({},e),{body:[new oS(rp(ip({},e),{body:"",align:"right"})),...t],captureSelection:!0}))},serialize:(e,t)=>{const n=e.args[0],i=n&&"object"==typeof n&&"group"in n;return""!==e.value?i?`\\not{${_w.serialize(n.group,t)}}`:`\\not${_w.serialize(n,t)}`:i?"\\not{}":"\\not"},render:(e,t)=>{if(e.value)return e.createBox(t);const n=e.args[0]&&"object"==typeof e.args[0]&&"group"in e.args[0]?"ord":ew(Ap(e.args[0])),i=_w.createBox(t,e.body,{type:n});return e.caret&&(i.caret=e.caret),e.bind(t,i)}}),qp(["ne","neq"],"",{createAtom:e=>new _w(rp(ip({},e),{type:"mrel",body:[new oS(rp(ip({},e),{body:"",align:"right",boxType:"rel"})),new _w(rp(ip({},e),{value:"="}))],captureSelection:!0})),serialize:e=>e.command}),qp("rlap","{:auto}",{createAtom:e=>new oS(rp(ip({},e),{body:Ap(e.args[0]),align:"right"}))}),qp("llap","{:auto}",{createAtom:e=>new oS(rp(ip({},e),{body:Ap(e.args[0]),align:"left"}))}),qp("mathrlap","{:math}",{createAtom:e=>new oS(rp(ip({},e),{body:Ap(e.args[0]),align:"left"}))}),qp("mathllap","{:math}",{createAtom:e=>new oS(rp(ip({},e),{body:Ap(e.args[0]),align:"left"}))}),qp("raisebox","{:value}{:text}",{createAtom:e=>{var t;return new Nx(rp(ip({},e),{body:Ap(e.args[1]),padding:{dimension:0},offset:null!=(t=e.args[0])?t:{dimension:0}}))},serialize:(e,t)=>{var n;return Gb("\\raisebox",null!=(n=gw(e.offset))?n:"0pt",e.bodyToLatex(t))}}),qp("raise","{:value}{:auto}",{createAtom:e=>{var t;return new Nx(rp(ip({},e),{body:Ap(e.args[1]),padding:{dimension:0},offset:null!=(t=e.args[0])?t:{dimension:0}}))},serialize:(e,t)=>{var n;return Gb("\\raise",null!=(n=gw(e.offset))?n:"0pt",e.bodyToLatex(t))}}),qp("lower","{:value}{:auto}",{createAtom:e=>{var t;return new Nx(rp(ip({},e),{body:Ap(e.args[1]),padding:{dimension:0},offset:null!=(t=mw(e.args[0],-1))?t:{dimension:0}}))},serialize:(e,t)=>{var n,i;return Gb("\\lower",null!=(i=gw(mw(null!=(n=e.offset)?n:{dimension:0},-1)))?i:"0pt",e.bodyToLatex(t))}}),Hp("0123456789/@.?!"),Zp(65,90),Zp(97,122),Hp([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Hp([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Hp([["\\backslash",92],["\\nabla",8711],["\\partial",8706],["\\ell",8467],["\\hbar",8463],["\\Q",81,"mord","double-struck"],["\\C",67,"mord","double-struck"],["\\P",80,"mord","double-struck"],["\\pounds",163],["\\euro",8364]]),Hp([["\\rightarrow",8594],["\\to",8594],["\\leftarrow",8592],["\\gets",8592],["\\Rightarrow",8658],["\\Leftarrow",8656],["\\longrightarrow",10230],["\\longleftarrow",10229],["\\Longrightarrow",10233],["\\implies",10233],["\\Longleftarrow",10232],["\\impliedby",10232],["\\longleftrightarrow",10231],["\\biconditional",10231],["\\Longleftrightarrow",10234],["\\mapsto",8614],["\\longmapsto",10236],["\\uparrow",8593],["\\downarrow",8595],["\\Uparrow",8657],["\\Downarrow",8659],["\\updownarrow",8597],["\\Updownarrow",8661],["\\hookrightarrow",8618],["\\hookleftarrow",8617],["\\rightharpoonup",8640],["\\leftharpoonup",8636],["\\rightharpoondown",8641],["\\leftharpoondown",8637],["\\searrow",8600],["\\nearrow",8599],["\\swarrow",8601],["\\nwarrow",8598],["\\originalof",8886],["\\laplace",8886],["\\imageof",8887],["\\Laplace",8887]],"mrel"),Hp([["\\mapsfrom",8612,"mrel"],["\\Mapsfrom",10502,"mrel"],["\\MapsTo",10503,"mrel"],["\\Yup",8516,"mord"],["\\lightning",8623,"mrel"],["\\leftarrowtriangle",8701,"mrel"],["\\rightarrowtriangle",8702,"mrel"],["\\leftrightarrowtriangle",8703,"mrel"],["\\boxdot",8865,"mbin"],["\\bigtriangleup",9651,"mbin"],["\\bigtriangledown",9661,"mbin"],["\\boxbar",9707,"mbin"],["\\Lbag",10181,"mopen"],["\\Rbag",10182,"mclose"],["\\llbracket",10214,"mopen"],["\\rrbracket",10215,"mclose"],["\\longmapsfrom",10235,"mrel"],["\\Longmapsfrom",10237,"mrel"],["\\Longmapsto",10238,"mrel"],["\\boxslash",10692,"mbin"],["\\boxbslash",10693,"mbin"],["\\boxast",10694,"mbin"],["\\boxcircle",10695,"mbin"],["\\boxbox",10696,"mbin"],["\\fatsemi",10783,"mop"],["\\leftslice",10918,"mrel"],["\\rightslice",10919,"mrel"],["\\interleave",10996,"mbin"],["\\biginterleave",11004,"mop"],["\\sslash",11005,"mbin"],["\\talloblong",11006,"mbin"]]),Hp([["\\lbrace",123,"mopen"],["\\rbrace",125,"mclose"],["\\lparen",40,"mopen"],["\\rparen",41,"mclose"],["\\langle",10216,"mopen"],["\\rangle",10217,"mclose"],["\\lfloor",8970,"mopen"],["\\rfloor",8971,"mclose"],["\\lceil",8968,"mopen"],["\\rceil",8969,"mclose"],["\\vert",8739],["\\lvert",8739,"mopen"],["\\rvert",8739,"mclose"],["\\|",8741],["\\Vert",8741],["\\mVert",8741],["\\lVert",8741,"mopen"],["\\rVert",8741,"mclose"],["\\lbrack",91,"mopen"],["\\rbrack",93,"mclose"],["\\{",123,"mopen"],["\\}",125,"mclose"],["(",40,"mopen"],[")",41,"mclose"],["[",91,"mopen"],["]",93,"mclose"],["\\ulcorner",9484,"mopen","ams"],["\\urcorner",9488,"mclose","ams"],["\\llcorner",9492,"mopen","ams"],["\\lrcorner",9496,"mclose","ams"],["\\lgroup",10222,"mopen"],["\\rgroup",10223,"mclose"],["\\lmoustache",9136,"mopen"],["\\rmoustache",9137,"mclose"]]),Hp([["\\dashrightarrow",8674],["\\dashleftarrow",8672],["\\Rrightarrow",8667],["\\Lleftarrow",8666],["\\leftrightarrows",8646],["\\rightleftarrows",8644],["\\curvearrowright",8631],["\\curvearrowleft",8630],["\\rightrightarrows",8649],["\\leftleftarrows",8647],["\\upuparrows",8648],["\\downdownarrows",8650],["\\vartriangle",9651],["\\triangleq",8796],["\\vartriangleleft",8882],["\\trianglelefteq",8884],["\\ntriangleleft",8938],["\\ntrianglelefteq",8940],["\\vartriangleright",8883],["\\trianglerighteq",8885],["\\ntriangleright",8939],["\\ntrianglerighteq",8941],["\\blacktriangleleft",9664],["\\blacktriangleright",9654],["\\leftarrowtail",8610],["\\rightarrowtail",8611],["\\looparrowright",8620],["\\looparrowleft",8619],["\\twoheadleftarrow",8606],["\\twoheadrightarrow",8608],["\\twoheadrightarrowtail",10518],["\\rightleftharpoons",8652],["\\leftrightharpoons",8651],["\\Rsh",8625],["\\Lsh",8624],["\\circlearrowright",8635],["\\circlearrowleft",8634],["\\restriction",8638],["\\upharpoonright",8638],["\\upharpoonleft",8639],["\\downharpoonright",8642],["\\downharpoonleft",8643],["\\rightsquigarrow",8669],["\\leadsto",8669],["\\leftrightsquigarrow",8621],["\\multimap",8888],["\\nleftarrow",8602],["\\nrightarrow",8603],["\\nRightarrow",8655],["\\nLeftarrow",8653],["\\nleftrightarrow",8622],["\\nLeftrightarrow",8654],["\\nvrightarrow",8696],["\\nvtwoheadrightarrow",10496],["\\nvrightarrowtail",10516],["\\nvtwoheadrightarrowtail",10519],["\\shortparallel",8741],["\\nless",8814],["\\nleqslant",57360],["\\lneq",10887],["\\lneqq",8808],["\\nleqq",57361],["\\lvertneqq",57356],["\\lnsim",8934],["\\lnapprox",10889],["\\nprec",8832],["\\npreceq",8928],["\\precnsim",8936],["\\precnapprox",10937],["\\nsim",8769],["\\nshortmid",57350],["\\nmid",8740],["\\nvdash",8876],["\\nvDash",8877],["\\ngtr",8815],["\\ngeqslant",57359],["\\ngeqq",57358],["\\gneq",10888],["\\gneqq",8809],["\\gvertneqq",57357],["\\gnsim",8935],["\\gnapprox",10890],["\\nsucc",8833],["\\nsucceq",8929],["\\succnsim",8937],["\\succnapprox",10938],["\\ncong",8774],["\\nshortparallel",57351],["\\nparallel",8742],["\\nVDash",8879],["\\nsupseteqq",57368],["\\supsetneq",8843],["\\varsupsetneq",57371],["\\supsetneqq",10956],["\\varsupsetneqq",57369],["\\nVdash",8878],["\\precneqq",10933],["\\succneqq",10934],["\\nsubseteqq",57366],["\\leqslant",10877],["\\geqslant",10878],["\\gtrsim",8819],["\\approxeq",8778],["\\thickapprox",8776],["\\lessapprox",10885],["\\gtrapprox",10886],["\\precapprox",10935],["\\succapprox",10936],["\\thicksim",8764],["\\succsim",8831],["\\precsim",8830],["\\backsim",8765],["\\eqsim",8770],["\\backsimeq",8909],["\\lesssim",8818],["\\nleq",8816],["\\ngeq",8817],["\\smallsmile",8995],["\\smallfrown",8994],["\\leqq",8806],["\\eqslantless",10901],["\\lll",8920],["\\lessgtr",8822],["\\lesseqgtr",8922],["\\lesseqqgtr",10891],["\\risingdotseq",8787],["\\fallingdotseq",8786],["\\subseteqq",10949],["\\Subset",8912],["\\sqsubset",8847],["\\preccurlyeq",8828],["\\curlyeqprec",8926],["\\vDash",8872],["\\Vvdash",8874],["\\bumpeq",8783],["\\Bumpeq",8782],["\\geqq",8807],["\\eqslantgtr",10902],["\\ggg",8921],["\\gtrless",8823],["\\gtreqless",8923],["\\gtreqqless",10892],["\\supseteqq",10950],["\\Supset",8913],["\\sqsupset",8848],["\\succcurlyeq",8829],["\\curlyeqsucc",8927],["\\Vdash",8873],["\\shortmid",8739],["\\between",8812],["\\pitchfork",8916],["\\varpropto",8733],["\\backepsilon",8717],["\\llless",8920],["\\gggtr",8921],["\\doteqdot",8785],["\\Doteq",8785],["\\eqcirc",8790],["\\circeq",8791],["\\therefore",8756],["\\because",8757]],"mrel","ams"),Hp([["+",43],["-",8722],["−",8722],["\\pm",177],["\\mp",8723],["*",8727],["\\times",215],["\\div",247],["\\divides",8739],["\\cdot",8901],["\\cap",8745],["\\cup",8746],["\\setminus",8726],["\\land",8743],["\\wedge",8743],["\\lor",8744],["\\vee",8744],["\\circ",8728],["\\bigcirc",9711],["\\bullet",8729],["\\oplus",8853],["\\ominus",8854],["\\otimes",8855],["\\odot",8857],["\\oslash",8856],["\\bigtriangleup",9651],["\\bigtriangledown",9661],["\\triangleleft",9667],["\\triangleright",9657],["\\And",38],["\\dagger",8224],["\\dag",8224],["\\ddag",8225],["\\ddagger",8225],["\\ast",8727],["\\star",8902],["\\bigstar",9733],["\\diamond",8900]],"mbin"),Hp([["\\lhd",8882],["\\rhd",8883],["\\lessdot",8918],["\\gtrdot",8919],["\\ltimes",8905],["\\rtimes",8906],["\\leftthreetimes",8907],["\\rightthreetimes",8908],["\\intercal",8890],["\\dotplus",8724],["\\doublebarwedge",10846],["\\divideontimes",8903],["\\centerdot",8901],["\\smallsetminus",8726],["\\barwedge",8892],["\\veebar",8891],["\\nor",8891],["\\curlywedge",8911],["\\curlyvee",8910],["\\boxminus",8863],["\\boxplus",8862],["\\boxtimes",8864],["\\boxdot",8865],["\\circleddash",8861],["\\circledast",8859],["\\circledcirc",8858],["\\unlhd",8884],["\\unrhd",8885]],"mbin","ams"),Hp([["\\surd",8730],["\\infty",8734],["\\prime",8242],["\\doubleprime",8243],["\\angle",8736],["`",8216],["\\$",36],["\\%",37],["\\_",95],["\\alpha",945],["\\beta",946],["\\gamma",947],["\\delta",948],["\\epsilon",1013],["\\varepsilon",949],["\\zeta",950],["\\eta",951],["\\theta",952],["\\vartheta",977],["\\iota",953],["\\kappa",954],["\\varkappa",1008,"mord","ams"],["\\lambda",955],["\\mu",956],["\\nu",957],["\\xi",958],["\\omicron",111],["\\pi",960],["\\varpi",982],["\\rho",961],["\\varrho",1009],["\\sigma",963],["\\varsigma",962],["\\tau",964],["\\phi",981],["\\varphi",966],["\\upsilon",965],["\\chi",967],["\\psi",968],["\\omega",969],["\\Gamma",915],["\\Delta",916],["\\Theta",920],["\\Lambda",923],["\\Xi",926],["\\Pi",928],["\\Sigma",931],["\\Upsilon",933],["\\Phi",934],["\\Psi",936],["\\Omega",937],["\\digamma",989,"mord","ams"],["\\emptyset",8709]]),Hp([["=",61],["<",60],["\\lt",60],[">",62],["\\gt",62],["\\le",8804],["\\leq",8804],["\\ge",8805],["\\geq",8805],["\\ll",8810],["\\gg",8811],["\\coloneq",8788],["\\coloneqq",8788],["\\colonequals",8788],["\\measeq",8797],["\\eqdef",8798],["\\questeq",8799],[":",58],["\\cong",8773],["\\equiv",8801],["\\prec",8826],["\\preceq",10927],["\\succ",8827],["\\succeq",10928],["\\perp",8869],["\\propto",8733],["\\Colon",8759],["\\smile",8995],["\\frown",8994],["\\sim",8764],["\\doteq",8784],["\\bowtie",8904],["\\Join",8904],["\\asymp",8781],["\\sqsubseteq",8849],["\\sqsupseteq",8850],["\\approx",8776],["\\~",126],["\\leftrightarrow",8596],["\\Leftrightarrow",8660],["\\models",8872],["\\vdash",8866],["\\dashv",8867],["\\roundimplies",10608],["\\in",8712],["\\notin",8713],["\\ni",8715],["\\owns",8715],["\\subset",8834],["\\supset",8835],["\\subseteq",8838],["\\supseteq",8839],["\\differencedelta",8710],["\\mvert",8739],["\\parallel",8741],["\\simeq",8771]],"mrel"),Hp([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Hp([["\\wp",8472],["\\aleph",8501]]),Hp([["\\blacktriangle",9650],["\\hslash",8463],["\\Finv",8498],["\\Game",8513],["\\eth",240],["\\mho",8487],["\\Bbbk",107],["\\yen",165],["\\square",9633],["\\Box",9633],["\\blacksquare",9632],["\\circledS",9416],["\\circledR",174],["\\triangledown",9661],["\\blacktriangledown",9660],["\\checkmark",10003],["\\diagup",9585],["\\measuredangle",8737],["\\sphericalangle",8738],["\\backprime",8245],["\\backdoubleprime",8246],["\\Diamond",9674],["\\lozenge",9674],["\\blacklozenge",10731],["\\varnothing",8709],["\\complement",8705],["\\maltese",10016],["\\beth",8502],["\\daleth",8504],["\\gimel",8503]],"mord","ams"),Hp([["\\ ",160],["~",160]],"space"),qp(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:e=>new lS(e)}),qp("space","",{createAtom:e=>new lS(e)}),Hp([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Hp([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Hp([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var ZC="",KC="";function GC(e){return e.replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function UC(e,t){return e&&t.generateID?` extid="${e}"`:""}function VC(e,t,n){var i,r,o,a,s,l,c,u,h,d,p;let f=!1;t=null!=t?t:e.atoms.length;let g="",m="",v=e.atoms[e.index];const y=null!=(r=null==(i=v.style)?void 0:i.variant)?r:"",b=null!=(a=null==(o=v.style)?void 0:o.variantStyle)?a:"";let w="";if(y||b){const t=Mp(v.value,null==(s=v.style)?void 0:s.variant,null==(l=v.style)?void 0:l.variantStyle);if(t!==v.value)return e.index+=1,g=`${t}`,WC(g,e,n)||(e.mathML+=g,e.lastType="mi"),!0;w=null!=(c={upnormal:"normal",boldnormal:"bold",italicmain:"italic",bolditalicmain:"bold-italic","updouble-struck":"double-struck","double-struck":"double-struck",boldfraktur:"bold-fraktur",calligraphic:"script",upcalligraphic:"script",script:"script",boldscript:"bold-script",boldcalligraphic:"bold-script",fraktur:"fraktur","upsans-serif":"sans-serif","boldsans-serif":"bold-sans-serif","italicsans-serif":"sans-serif-italic","bolditalicsans-serif":"sans-serif-bold-italic",monospace:"monospace"}[b+y])?c:"",w=` mathvariant="${w}"`}const x={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"ℏ","\\cdotp":"⋅","\\ldots":"…","\\cdots":"⋯","\\ddots":"⋱","\\vdots":"⋮","\\ldotp":"."};if("!"===v.command)return e.index+=1,g="!",WC(g,e,n)||(e.mathML+=g,e.lastType="mo"),!0;if(x[v.command]){e.index+=1;let t=`${x[v.command]}`;return"mi"!==e.lastType&&"mn"!==e.lastType&&"mtext"!==e.lastType&&"fence"!==e.lastType||(t=KC+t),WC(t,e,n)||(e.mathML+=t,e.lastType="mi"),!0}if("\\operatorname"===v.command)m=tP(v.body),e.index+=1;else if(y||b)for(;e.index0){f=!0,g=`${m}`;const t=e.lastType;g.endsWith(">f")||g.endsWith(">g")?(g+=ZC,e.lastType="applyfunction"):e.lastType=/^(.*)<\/mo>$/.test(g)?"mo":"mi",WC(g,e,n)||("mi"!==t&&"mn"!==t&&"mtext"!==t&&"fence"!==t||(g=KC+g),e.mathML+=g)}return f}function WC(e,t,n){var i;let r=t.atoms[t.index-1];if(!r)return!1;if(!r.superscript&&!r.subscript){if("subsup"!==(null==(i=t.atoms[t.index])?void 0:i.type))return!1;r=t.atoms[t.index],t.index+=1}const o=t.lastType;t.lastType="";const a=JC(r.superscript,n);t.lastType="";const s=JC(r.subscript,n);if(t.lastType=o,!a&&!s)return!1;let l="";return a&&s?l=`${e}${s}${a}`:a?l=`${e}${a}`:s&&(l=`${e}${s}`),t.mathML+=l,t.lastType="",!0}function qC(e,t,n){t=null!=t?t:e.atoms.length;const i=e.index;let r="";for(;e.index0&&(e.mathML+=`${r}`,e.lastType="mtext",!0)}function YC(e,t,n){t=null!=t?t:e.atoms.length;const i=e.index;let r="",o=function(e){let t=-1,n=e.index,i=!1,r=!1;for(;n=0&&o"+r+"",o<0&&function(e){return e.index",r+=eP(e.atoms[l],n),r+=JC(e.atoms,n,l+1,c),r+=eP(e.atoms[c],n),r+="",e.index=c+1,"mi"!==e.lastType&&"mn"!==e.lastType&&"mfrac"!==e.lastType&&"fence"!==e.lastType||(e.mathML+=KC),WC(r,e,n)&&(i=!0,e.lastType="",r=""),o="fence")}return r.length>0&&(i=!0,e.mathML+=r,e.lastType=o),i}function QC(e,t,n){let i=!1;t=null!=t?t:e.atoms.length;let r="",o="";const a=e.atoms[e.index];if(!a)return!1;const s={"\\ne":"≠","\\neq":"&neq;","\\pm":"±","\\times":"×","\\colon":":","\\vert":"|","\\Vert":"∥","\\mid":"∣","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lbrack":"[","\\rbrack":"]","\\lparen":"(","\\rparen":")","\\langle":"⟨","\\rangle":"⟩","\\lfloor":"⌊","\\rfloor":"⌋","\\lceil":"⌈","\\rceil":"⌉"};if(s[a.command]){e.index+=1;const t=`${s[a.command]}`;return WC(t,e,n)||(e.mathML+=t,e.lastType="mo"),!0}if(e.index"):a.superscript?(r+=""+t,r+=JC(a.superscript,n),r+=""):a.subscript&&(r+=""+t,r+=JC(a.subscript,n),r+=""),e.mathML+=r,e.lastType="mo",e.index+=1,!0}{const t=e.atoms[e.index],i="\\operatorname"===t.value,a=i?'"+tP(t.value)+"":eP(t,n);r+=a,i||/^(.*)<\/mo>$/.test(a)?o=i?"mi":"mo":(r+=ZC,o="applyfunction")}"mi"!==e.lastType&&"mn"!==e.lastType||/^(.*)<\/mo>$/.test(r)||(r=KC+r),e.index+=1}return r.length>0&&(i=!0,WC(r,e,n)||(e.mathML+=r,e.lastType=o)),i}function JC(e,t,n,i){null!=t||(t={});const r={atoms:[],index:null!=n?n:0,mathML:"",lastType:""};if("number"==typeof e||"boolean"==typeof e)r.mathML=e.toString();else if("string"==typeof e)r.mathML=e;else if(e instanceof _w)r.mathML=nP(e,t);else if(Array.isArray(e)){r.atoms=e;let n=0;for(i=i||(e?e.length:0);r.index0&&"genfrac"===r.atoms[r.index].type&&(e=""+e),"genfrac"===r.atoms[r.index].type?r.lastType="mfrac":r.lastType="",r.index+=1,WC(e,r,t)?n+=1:e.length>0&&(r.mathML+=e,n+=1)}n>1&&(r.mathML=""+r.mathML+"")}return r.mathML}function eP(e,t){let n="";const i=tP(e.value);return i&&(n=""+i+""),n}function tP(e){if(!e)return"";if("string"==typeof e)return GC(e);if(!Array.isArray(e)&&"string"==typeof e.body)return GC(e.body);let t="";for(const n of e)"string"==typeof n.value&&(t+=n.value);return GC(t)}function nP(e,t){var n,i,r,o,a,s,l,c,u,h,d,p,f,g,m,v,y,b,w,x,S,k;if("text"===e.mode)return`${e.value}`;const _={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",longleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",longrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",longrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xleftrightarrows:"⇄",xRightleftharpoons:"⇌",longRightleftharpoons:"⇌",xLeftrightharpoons:"⇋",longLeftrightharpoons:"⇋"},C={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let P,E,M,L,A,T,D="",N="";const{command:I}=e;if("\\error"===e.command)return`${JC(e.body,t)}`;const B={"\\vert":"|","\\Vert":"∥","\\mid":"∣","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"⟨","\\rangle":"⟩","\\lfloor":"⌊","\\rfloor":"⌋","\\lceil":"⌈","\\rceil":"⌉"},R={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(e.type){case"first":case"line":case"overlap":case"subsup":case"phantom":case"composition":case"rule":case"chem":break;case"group":case"root":D=JC(e.body,t);break;case"array":if((e.leftDelim&&"."!==e.leftDelim||e.rightDelim&&"."!==e.rightDelim)&&(D+="",e.leftDelim&&"."!==e.leftDelim&&(D+=""+(B[e.leftDelim]||e.leftDelim)+"")),D+="",P=0;P"+JC(e.array[E][P],t)+"";D+=""}D+="",(e.leftDelim&&"."!==e.leftDelim||e.rightDelim&&"."!==e.rightDelim)&&(e.rightDelim&&"."!==e.rightDelim&&(D+=""+(B[e.leftDelim]||e.rightDelim)+""),D+="");break;case"genfrac":(e.leftDelim||e.rightDelim)&&(D+=""),e.leftDelim&&"."!==e.leftDelim&&(D+=""+(B[e.leftDelim]||e.leftDelim)+""),e.hasBarLine?(D+="",D+=JC(e.above,t)||" ",D+=JC(e.below,t)||" ",D+=""):(D+="",D+=""+JC(e.above,t)+"",D+=""+JC(e.below,t)+"",D+=""),e.rightDelim&&"."!==e.rightDelim&&(D+=""+(B[e.rightDelim]||e.rightDelim)+""),(e.leftDelim||e.rightDelim)&&(D+="");break;case"surd":e.hasEmptyBranch("above")?(D+="",D+=JC(e.body,t),D+=""):(D+="",D+=JC(e.body,t),D+=JC(e.above,t),D+="");break;case"leftright":const O=e,F=O.leftDelim;D="",F&&"."!==F&&(D+=`${null!=(n=B[F])?n:F}`),e.body&&(D+=JC(e.body,t));const z=O.matchingRightDelim();z&&"."!==z&&(D+=`${null!=(i=B[z])?i:z}`),D+="";break;case"sizeddelim":case"delim":D+=`${B[e.value]||e.value}`;break;case"accent":D+='",D+=JC(e.body,t),D+=""+(R[I]||e.accent)+"",D+="";break;case"overunder":A=e.above,L=e.below,(e.svgAbove||A)&&(e.svgBelow||L)?T=e.body:A&&A.length>0?(T=e.body,(null==(o=null==(r=e.body)?void 0:r[0])?void 0:o.below)?(L=e.body[0].below,T=e.body[0].body):"first"===(null==(s=null==(a=e.body)?void 0:a[0])?void 0:s.type)&&(null==(c=null==(l=e.body)?void 0:l[1])?void 0:c.below)&&(L=e.body[1].below,T=e.body[1].body)):L&&L.length>0&&(T=e.body,(null==(h=null==(u=e.body)?void 0:u[0])?void 0:h.above)?(A=e.body[0].above,T=e.body[0].body):"first"===(null==(p=null==(d=e.body)?void 0:d[0])?void 0:p.type)&&(null==(g=null==(f=e.body)?void 0:f[1])?void 0:g.above)&&(A=e.body[1].overscript,T=e.body[1].body)),(e.svgAbove||A)&&(e.svgBelow||L)?(D+=``,D+=null!=(m=_[e.svgBody])?m:JC(T,t),D+=null!=(v=_[e.svgBelow])?v:JC(L,t),D+=null!=(y=_[e.svgAbove])?y:JC(A,t),D+=""):e.svgAbove||A?(D+=``+(null!=(b=_[e.svgBody])?b:JC(T,t)),D+=null!=(w=_[e.svgAbove])?w:JC(A,t),D+=""):(e.svgBelow||L)&&(D+=``+(null!=(x=_[e.svgBody])?x:JC(T,t)),D+=null!=(S=_[e.svgBelow])?S:JC(L,t),D+="");break;case"placeholder":D+="?";break;case"mord":{D="string"==typeof e.value?e.value:I,"\\char"===I?D="&#x"+("000000"+e.args[0].number.toString(16)).slice(-4)+";":D.length>0&&D.startsWith("\\")&&("string"==typeof e.value&&e.value.charCodeAt(0)>255?D="&#x"+("000000"+e.value.charCodeAt(0).toString(16)).slice(-4)+";":"string"==typeof e.value?D=e.value.charAt(0):(console.error("Did not expect this"),D=""));const n=/\d/.test(D)?"mn":"mi";D=`<${n}${UC(e.id,t)}>${GC(D)}`;break}case"mbin":case"mrel":case"minner":D=eP(e,t);break;case"mpunct":D='"+I+"";break;case"mop":case"operator":case"extensible-symbol":"​"!==e.body&&(D="",D+="\\operatorname"===I?e.body:I||e.body,D+="");break;case"box":D='"+JC(e.body,t)+"";break;case"spacing":D+='';break;case"enclose":D=''+JC(e.body,t)+"";break;case"prompt":D=''+JC(e.body,t)+"";break;case"space":D+=" ";break;case"mopen":case"mclose":D+=eP(e,t);break;case"macro":{const n=e.command+tP(e.macroArgs);n&&(D+=`${n}`)}break;case"latexgroup":case"tooltip":D+=JC(e.body,t);break;case"latex":D+=""+e.value+"";break;case"text":D+=`${e.value}`;break;default:if("\\displaystyle"===e.command)return`${JC(e.body,t)}`;if("\\textstyle"===e.command)return`${JC(e.body,t)}`;console.info("Unexpected element in conversion to MathML:",e)}return D}var iP={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"imaginary eye ","\\imaginaryJ":"imaginary jay ","\\sum":"Summation ","\\prod":"Product ","+":"plus ","-":"minus ",";":' semi-colon ',",":' comma ',"|":'Vertical bar',"(":'Open paren. ',")":' Close paren. ',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\pm":"plus or minus","\\mp":"minus or plus","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","\\ne":"is not equal to ","\\neq":"is not equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","​":"","−":"minus ",":":' such that ',"\\colon":' such that ',"\\hbar":"etch bar ","\\iff":'if, and only if, ',"\\Longleftrightarrow":'if, and only if, ',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set n',"\\C":'the set c',"\\Z":'the set z',"\\Q":'the set q',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdot":"times ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lparen":'open paren',"\\rparen":'close paren',"\\lbrace":'open brace',"\\{":'open brace',"\\rbrace":'close brace',"\\}":'close brace',"\\langle":'left angle bracket',"\\rangle":'right angle bracket',"\\lfloor":'open floor',"\\rfloor":'close floor',"\\lceil":'open ceiling',"\\rceil":'close ceiling',"\\vert":'vertical bar',"\\mvert":'divides',"\\lvert":'left vertical bar',"\\rvert":'right vertical bar',"\\lbrack":' open square bracket ',"\\rbrack":' close square bracket ',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"},rP={array:"array",matrix:"matrix",pmatrix:"parenthesis matrix",bmatrix:"square brackets matrix",Bmatrix:"braces matrix",vmatrix:"bars matrix",Vmatrix:"double bars matrix","matrix*":"matrix",smallmatrix:"small matrix"};function oP(e){let t=0;if(sp(e))for(const n of e)"first"!==n.type&&(t+=1);return 1===t}function aP(e){let t="";if(sp(e))for(const n of e)"first"!==n.type&&"string"==typeof n.value&&(t+=n.value);return t}function sP(e,t){var n,i,r,o,a;function s(e){return""+e+""}if(!t)return"";let l="";if(sp(t)){let i=!1,r=!1;for(let o=0;o'),l+=t.value;else{t.id&&"math"===e&&(l+='');let n="",u="",h="",d=!1;const{command:p}=t;switch(p){case"\\vec":return"vector "+sP(e,t.body);case"\\acute":return sP(e,t.body)+" acute";case"\\grave":return sP(e,t.body)+" grave";case"\\dot":return"dot over"+sP(e,t.body);case"\\ddot":return"double dot over"+sP(e,t.body);case"\\mathring":return"ring over"+sP(e,t.body);case"\\tilde":case"\\widetilde":return"tilde over"+sP(e,t.body);case"\\bar":return sP(e,t.body)+" bar";case"\\breve":return sP(e,t.body)+" breve";case"\\check":case"\\widecheck":return"check over "+sP(e,t.body);case"\\hat":case"\\widehat":return"hat over"+sP(e,t.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+sP(e,t.body);case"\\underarc":case"\\underparen":return"arc under "+sP(e,t.body)}switch(t.type){case"prompt":l+=' '+(t.body.length>1?'start input . '+sP(e,t.body)+'. end input':"blank")+'. '+(null!=(i=t.correctness)?i:"")+' . ';break;case"array":const f=t.array,g=t.environmentName;if(Object.keys(rP).includes(g)){l+=` begin ${rP[g]} `;for(let e=0;e0&&(l+=","),l+=` row ${e+1} `;for(let t=0;t0&&(l+=","),l+=` column ${t+1}: `,l+=sP("math",f[e][t])}l+=` end ${rP[g]} `}break;case"group":"\\ne"===p?l+=" not equal ":"\\not"===p?(l+=" not ",l+=sP("math",t.body)):l+=sP("math",t.body);break;case"root":l+=sP("math",t.body);break;case"genfrac":if(n=sP("math",t.above),u=sP("math",t.below),oP(t.above)&&oP(t.below)){const e={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[aP(t.above)+"/"+aP(t.below)];e?l=e:l+=n+" over "+u}else l+=' the fraction '+n+' over '+u+'. End fraction.';break;case"surd":if(h=sP("math",t.body),t.hasEmptyBranch("above"))l+=oP(t.body)?" the square root of "+h+" , ":' the square root of '+h+'. End square root';else{let e=sP("math",t.above);e=e.trim();const n=e.replace(//g,"");l+="3"===n?' the cube root of '+h+'. End cube root':"n"===n?' the nth root of '+h+'. End root':' the root with index: '+e+', of '+h+'. End root'}break;case"leftright":{const e=t;l+=null!=(r=e.leftDelim?iP[e.leftDelim]:void 0)?r:e.leftDelim,l+=sP("math",t.body),l+=null!=(o=e.rightDelim?iP[e.rightDelim]:void 0)?o:e.rightDelim}break;case"rule":case"overunder":case"overlap":case"space":case"spacing":break;case"macro":const m=p.replace(/^\\/g,""),v=Yp()[m];v&&((null==v?void 0:v.expand)?l+=sP("math",t.body):l+=`${m} `);break;case"placeholder":l+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if("\\mathbin"===p||"\\mathrel"===p||"\\mathopen"===p||"\\mathclose"===p||"\\mathpunct"===p||"\\mathord"===p||"\\mathinner"===p){l=sP(e,t.body);break}let n=t.isDigit()?t.asDigit():t.value,i=t.command;if("delim"!==t.type&&"sizeddelim"!==t.type||(i=t.value,n=i),"text"===e)l+=n;else{if("mbin"===t.type&&(l+=''),n){const e=iP[n]||(i?iP[i.trim()]:"");if(e)l+=" "+e;else{const e=i?function(e){let t="";return e.startsWith("\\")&&(t=" "+e.replace("\\","")+" "),t}(i.trim()):"";l+=e||function(e){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(e)?` ${e}`:/[A-Z]/.test(e)?`capital ${e.toLowerCase()}`:e:/[a-z]/.test(e)?" '"+e.toUpperCase()+"'":/[A-Z]/.test(e)?" 'capital "+e.toUpperCase()+"'":e}(n)}}else l+=sP("math",t.body);"mbin"===t.type&&(l+='')}break}case"mop":case"operator":case"extensible-symbol":if("​"!==t.value){const e=t.command;if("\\sum"===e)if(t.hasEmptyBranch("superscript")||t.hasEmptyBranch("subscript"))if(t.hasEmptyBranch("subscript"))l+=" the summation of";else{let e=sP("math",t.subscript);e=e.trim(),l+=' the summation from '+e+' of ',d=!0}else{let e=sP("math",t.superscript);e=e.trim();let n=sP("math",t.subscript);n=n.trim(),l+=' the summation from '+n+' to '+e+' of ',d=!0}else if("\\prod"===e)if(t.hasEmptyBranch("superscript")||t.hasEmptyBranch("subscript"))if(t.hasEmptyBranch("subscript"))l+=" the product of ";else{let e=sP("math",t.subscript);e=e.trim(),l+=' the product from '+e+' of ',d=!0}else{let e=sP("math",t.superscript);e=e.trim();let n=sP("math",t.subscript);n=n.trim(),l+=' the product from '+n+' to '+e+' of ',d=!0}else if("\\int"===e)if(t.hasEmptyBranch("superscript")||t.hasEmptyBranch("subscript"))l+=' the integral of ';else{let e=sP("math",t.superscript);e=e.trim();let n=sP("math",t.subscript);n=n.trim(),l+=' the integral from '+s(n)+' to '+s(e)+' of ',d=!0}else if("string"==typeof t.value){const e=null!=(a=iP[t.value])?a:t.command?iP[t.command]:void 0;l+=e||" "+t.value}else t.command&&("\\mathop"===t.command?l+=sP("math",t.body):"\\operatorname"===t.command?l+=(c=t.body)?c.map((e=>e.value)).join(""):"":l+=t.command.startsWith("\\")?" "+t.command.slice(1):" "+t.command)}break;case"enclose":h=sP("math",t.body),l+=" crossed out "+h+". End crossed out."}if(!d&&!t.hasEmptyBranch("superscript")){let n=sP(e,t.superscript);n=n.trim();const i=n.replace(/<[^>]*>/g,"");if(oP(t.superscript)){if("math"===e){const e=function(e){if(sp(e))for(const t of e)if("first"!==t.type&&t.id)return t.id.toString();return""}(t.superscript);e&&(l+='')}"′"===i?l+=" prime ":"2"===i?l+=" squared ":"3"===i?l+=" cubed ":Number.isNaN(Number.parseInt(i))?l+=" to the "+n+"; ":l+=' to the '+i+" power; "}else Number.isNaN(Number.parseInt(i))?l+=" raised to the "+n+"; ":l+=' raised to the '+i+" power; "}if(!d&&!t.hasEmptyBranch("subscript")){let e=sP("math",t.subscript);e=e.trim(),l+=oP(t.subscript)?" sub "+e:" subscript "+e+". End subscript. "}}var c;return l}function lP(e){var t,n;if("sre"===window.MathfieldElement.textToSpeechRules&&("sre"in window||"SRE"in window)){const i=JC(e);if(i){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=null!=(t=window.MathfieldElement.textToSpeechRulesOptions)?t:{},window.MathfieldElement.textToSpeechRulesOptions=rp(ip({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),"ssml"===window.MathfieldElement.textToSpeechRulesOptions.markup&&(window.MathfieldElement.textToSpeechRulesOptions=rp(ip({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=rp(ip({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const e=null!=(n=window.SRE)?n:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&e.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let r="";try{r=e.toSpeech(i)}catch(e){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",e)}return r}return""}let i=sP("math",e);if("ssml"===window.MathfieldElement.textToSpeechMarkup){let e="";window.MathfieldElement.speechEngineRate&&(e=''),i=''+e+"

    "+i+"

    "+(e?"
    ":"")+""}else i="mac"===window.MathfieldElement.textToSpeechMarkup&&"macos"===up()?i.replace(//g,"").replace(//g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(//g,"[[slc $1]]").replace(/]*>/g,"").replace(/<\/say-as>/g,""):i.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return i}var cP={"\\ne":"≠","\\neq":"≠","−":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega","\\exponentialE":"e","\\imaginaryI":"i","\\imaginaryJ":"j","\\!":" ","\\,":" ","\\:":" ","\\>":" ","\\;":" ","\\enskip":" ","\\enspace":" ","\\qquad":" ","\\quad":" ","\\infty":"oo"},uP={"\\pm":"+-","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrack":"[","\\rbrack":"]","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"(:","\\rangle":":)","\\sum":" sum ","\\prod":" prod ","\\bigcap":" nnn ","\\bigcup":" uuu ","\\int":" int ","\\oint":" oint ","\\ge":">=","\\le":"<=","\\ne":"!=","\\neq":"!=","\\lt":"<","\\gt":">","\\gets":"<-","\\to":"->","\\land":" and ","\\lor":" or ","\\lnot":" not ","\\forall":" AA ","\\exists":" EE ","\\in":" in ","\\notin":" !in ","\\mapsto":"|->","\\implies":"=>","\\iff":"<=>","\\cdot":"*","\\ast":"**","\\star":"***","\\times":"xx","\\div":"-:","\\ltimes":"|><","\\rtimes":"><|","\\bowtie":"|><|","\\circ":"@"};function hP(e){var t,n,i,r,o,a,s,l,c,u,h,d,p;if(!e)return"";if(sp(e)){if(0===e.length)return"";if("latex"===e[0].mode)return e.map(hP).join("");if("text"===e[0].mode){let n=0,i="";for(;"text"===(null==(t=e[n])?void 0:t.mode);)i+=e[n].body?hP(e[n].body):e[n].value,n++;return`"${i}" ${hP(e.slice(n))}`}let n=0;const i=[];for(;e[n]&&"math"===e[n].mode;){let t="";for(;e[n]&&"mord"===e[n].type&&/\d/.test(e[n].value);)t+=e[n++].value;t?i.push(t):i.push(hP(e[n++]))}return i.push(hP(e.slice(n))),function(e){let t="";for(const n of e){const e=t[t.length-1];void 0!==e&&/\d/.test(e)&&/^\d/.test(n)&&(t+=" "),t+=n}return t}(i)}if("text"===e.mode)return`"${e.value}"`;let f="";const{command:g}=e;let m;if("\\placeholder"===g)return`(${hP(e.body)})`;switch(e.type){case"accent":const t={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[g];f=`${null!=t?t:""} ${hP(e.body)} `;break;case"first":return"";case"latexgroup":return e.body.map((e=>e.value)).join("");case"group":case"root":f=null!=(n=cP[g])?n:hP(e.body);break;case"genfrac":{const t=e;(t.leftDelim||t.rightDelim)&&(f="."!==t.leftDelim&&t.leftDelim?t.leftDelim:"{:"),t.hasBarLine?(f+="(",f+=hP(t.above),f+=")/(",f+=hP(t.below),f+=")"):(f+="("+hP(t.above)+"),",f+="("+hP(t.below)+")"),(t.leftDelim||t.rightDelim)&&(f+="."!==t.rightDelim&&t.rightDelim?t.rightDelim:"{:")}break;case"surd":f+=e.hasEmptyBranch("above")?"sqrt("+hP(e.body)+")":"root("+hP(e.above)+")("+hP(e.body)+")";break;case"latex":case"sizeddelim":case"delim":case"mopen":case"mclose":f=e.value;break;case"leftright":{const t=e,n=t.leftDelim;f+="."!==n&&n?n:"{:",f+=hP(t.body);const i=t.matchingRightDelim();f+="."!==i&&i?i:":}"}break;case"overlap":case"overunder":case"box":break;case"mord":f=null!=(r=null!=(i=cP[g])?i:g)?r:"string"==typeof e.value?e.value:"",f.startsWith("\\")&&(f+=" "),m=g?g.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,m?f=String.fromCodePoint(Number.parseInt("0x"+m[1])):f.length>0&&f.startsWith("\\")&&(f="string"==typeof e.value?e.value.charAt(0):e.command),f=function(e,t){if(!t)return e;let n=e;"double-struck"===t.variant&&(n=`bbb "${n}"`);"script"===t.variant&&(n=`cc "${n}"`);"fraktur"===t.variant&&(n=`fr "${n}"`);"sans-serif"===t.variant&&(n=`sf "${n}"`);"monospace"===t.variant&&(n=`tt "${n}"`);"bold"===t.variantStyle&&(n=`bb "${n}"`);return t.color?`color({${t.color}})(${n})`:n}(f,e.style);break;case"mbin":case"mrel":case"minner":f=null!=(a=null!=(o=cP[g])?o:uP[g])?a:e.value;break;case"mpunct":f=null!=(s=uP[g])?s:g;break;case"mop":case"operator":case"extensible-symbol":"​"!==e.value&&(f=uP[g]?uP[g]:"\\operatorname"===g?hP(e.body):null!=(l=e.value)?l:g,f+=" ");break;case"array":const v=e.array,y=e.environmentName,b=null!=(c={bmatrix:["[","]"],"bmatrix*":["[","]"]}[y])?c:["(",")"],w=[];for(const e of v){const t=[];for(const n of e)t.push(b[0]+hP(n)+b[1]);w.push(t.join(","))}const x=null!=(u={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[y])?u:["(",")"];f=x[0]+w.join(",")+x[1];break;case"spacing":f=null!=(h=cP[g])?h:" ";break;case"enclose":f="("+hP(e.body)+")";break;case"space":f=" ";break;case"subsup":f="";break;case"macro":f=null!=(p=null!=(d=cP[g])?d:uP[g])?p:hP(e.body)}if(!e.hasEmptyBranch("subscript")){f+="_";const t=hP(e.subscript);f+=1!==t.length?`(${t})`:t}if(!e.hasEmptyBranch("superscript")){f+="^";const t=hP(e.superscript);f+=1!==t.length?`(${t})`:t}return f}function dP(e,t){var n,i;null!=t||(t={}),t.mathstyle=null!=(n=t.mathstyle)?n:"displaystyle";const r=new ww({from:rp(ip({},bw()),{renderPlaceholder:()=>new nw(160,{maxFontSize:1}),letterShapeStyle:null!=(i=null==t?void 0:t.letterShapeStyle)?i:"tex"}),mathstyle:t.mathstyle}),o=new _w({mode:"math",type:"root",body:Gx(e,{context:r,parseMode:"math",mathstyle:t.mathstyle})}).render(r);if(!o)return"";rw(fS(o,r));return ow(o,{classes:"ML__latex"}).toMarkup()}function pP(e){if("string"==typeof e){const t=function(e){if(!e)return;if("#"!==e[0])return;let t;(e=e.slice(1)).length<=4?(t={r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)},4===e.length&&(t.a=parseInt(e[3]+e[3],16)/255)):(t={r:parseInt(e[0]+e[1],16),g:parseInt(e[2]+e[3],16),b:parseInt(e[4]+e[5],16)},8===e.length&&(t.a=parseInt(e[6]+e[7],16)/255));t&&void 0===t.a&&(t.a=1);return t}(e);if(!t)throw new Error(`Invalid color: ${e}`);return t}return"C"in e?function(e){return bP(gP(e))}(e):"a"in e?bP(e):e}function fP(e){return e<0?0:e>255?255:Math.round(e)}function gP(e){const[t,n,i]=[e.L,e.C,e.H],r=i*Math.PI/180,o={L:t,a:n*Math.cos(r),b:n*Math.sin(r)};return void 0!==e.alpha&&(o.alpha=e.alpha),o}function mP(e){const[t,n,i]=[e.L,e.a,e.b],r=Math.pow(.9999999984505198*t+.39633779217376786*n+.2158037580607588*i,3),o=Math.pow(1.00000000888176*t-.10556134232365635*n-.0638541747717059*i,3),a=Math.pow(1.000000054672411*t-.0894841820949657*n-1.2914855378640917*i,3),s=-1.2684380040921763*r+2.6097574006633715*o-.3413193963102197*a,l=-.004196086541837188*r-.7034186144594493*o+1.7076147009309444*a,c=e=>{const t=Math.abs(e);return t<=.0031308?12.92*e:(Math.sign(e)||1)*(1.055*Math.pow(t,1/2.4)-.055)};return[c(4.076741661347994*r-3.307711590408193*o+.230969928729428*a),c(s),c(l)]}function vP(e){const[t,n,i]=e;return t>=0&&t<=1&&n>=0&&n<=1&&i>=0&&i<=1}function yP(e,t){let[n,i,r]=e;return n=fP(255*n),i=fP(255*i),r=fP(255*r),void 0!==t?{r:n,g:i,b:r,alpha:t}:{r:n,g:i,b:r}}function bP(e){let[t,n,i]=mP(e);if(vP([t,n,i]))return yP([t,n,i],e.alpha);const r=function(e){const[t,n,i]=[e.L,e.a,e.b],r={L:t,C:Math.sqrt(n*n+i*i),H:180*Math.atan2(i,n)/Math.PI};return void 0!==e.alpha&&(r.alpha=e.alpha),r}(e);if(r.C=0,[t,n,i]=mP(gP(r)),!vP([t,n,i]))return yP([t,n,i],e.alpha);let o=0,a=e.L,s=(o+a)/2;r.C=s;const l=.36/Math.pow(2,12);for(;a-o>l;)s=(o+a)/2,r.C=s,[t,n,i]=mP(gP(r)),vP([t,n,i])?o=s:a=s;return yP([t,n,i],e.alpha)}function wP(e,t){const n=pP(e),i=pP(t);function r(e){return e>=.022?e:e+(.022-e)**1.414}function o(e){return(e<0?-1:1)*Math.pow(Math.abs(e),2.4)}const a=r(.2126729*o(i.r/255)+.7151522*o(i.g/255)+.072175*o(i.b/255)),s=r(.2126729*o(n.r/255)+.7151522*o(n.g/255)+.072175*o(n.b/255));let l,c,u;return Math.abs(s-a)<5e-4?c=0:s>a?(l=s**.56-a**.57,c=1.14*l):(l=s**.65-a**.62,c=1.14*l),u=Math.abs(c)<.1?0:c>0?c-.027:c+.027,100*u}function xP(e,t,n){null!=n||(n="#fff"),null!=t||(t="#000");const i=wP(e,n),r=wP(e,t);return Math.abs(i)>Math.abs(r)?n:t}function SP(e){const t=pP(e);let n=((1<<24)+(fP(t.r)<<16)+(fP(t.g)<<8)+fP(t.b)).toString(16).slice(1);return void 0!==t.alpha&&t.alpha<1&&(n+=("00"+Math.round(255*t.alpha).toString(16)).slice(-2)),n[0]===n[1]&&n[2]===n[3]&&n[4]===n[5]&&n[6]===n[7]&&(n=n[0]+n[2]+n[4]+(void 0!==t.alpha&&t.alpha<1?n[6]:"")),"#"+n}function kP(e){const t=_P(e);let n="";for(const e of t){if("string"!=typeof e.value)return"";n+=e.value}return n}function _P(e){const t=e.model.selection.ranges;return 1!==t.length?[]:e.model.getAtoms(t[0])}function CP(e){return[BP(e,"double-struck","mathbb","tooltip.blackboard"),BP(e,"fraktur","mathfrak","tooltip.fraktur"),BP(e,"calligraphic","mathcal","tooltip.caligraphic"),RP(e,"up","mathrm","tooltip.roman-upright"),RP(e,"bold","mathbf","tooltip.bold"),RP(e,"italic","mathit","tooltip.italic")]}function PP(e){return[{label:()=>dP(`\\vec{${kP(e)}}`),visible:()=>1===kP(e).length,onMenuSelect:()=>e.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>dP(`\\overrightarrow{${kP(e)}}`),visible:()=>kP(e).length>0,onMenuSelect:()=>e.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>dP(`\\overleftarrow{${kP(e)}}`),visible:()=>kP(e).length>0,onMenuSelect:()=>e.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>dP(`\\dot{${kP(e)}}`),visible:()=>1===kP(e).length,onMenuSelect:()=>e.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>dP(`\\ddot{${kP(e)}}`),visible:()=>1===kP(e).length,onMenuSelect:()=>e.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>dP(`\\bar{${kP(e)}}`),visible:()=>1===kP(e).length,onMenuSelect:()=>e.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>dP(`\\overline{${kP(e)}}`),visible:()=>kP(e).length>0,onMenuSelect:()=>e.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>dP(`\\overgroup{${kP(e)}}`),visible:()=>kP(e).length>0,onMenuSelect:()=>e.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>dP(`\\overbrace{${kP(e)}}`),visible:()=>kP(e).length>0,onMenuSelect:()=>e.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>dP(`\\underline{${kP(e)}}`),visible:()=>kP(e).length>0,onMenuSelect:()=>e.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>dP(`\\undergroup{${kP(e)}}`),visible:()=>kP(e).length>0,onMenuSelect:()=>e.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>dP(`\\underbrace{${kP(e)}}`),visible:()=>kP(e).length>0,onMenuSelect:()=>e.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function EP(e){return[{label:()=>dP(`\\boxed{${e.getValue(e.model.selection)}}}`),onMenuSelect:()=>e.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>dP(`\\bbox[5px, border: 2px solid red]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>dP(`\\bbox[5px, border: 2px dashed black]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function MP(e){const t=[];for(const n of Object.keys(mp))t.push({class:("#000"===SP(xP(mp[n]))?"dark-contrast":"light-contrast")+" menu-swatch",label:``,ariaLabel:()=>{var e;return null!=(e=pp(n))?e:n},checked:()=>{var t;return{some:"mixed",all:!0}[null!=(t=e.queryStyle({backgroundColor:n}))&&t]},onMenuSelect:()=>{e.applyStyle({backgroundColor:n},{operation:"toggle"}),e.adoptStyle="none"}});return t}function LP(e){const t=[];for(const n of Object.keys(vp))t.push({class:("#000"===xP(vp[n])?"dark-contrast":"light-contrast")+" menu-swatch",label:``,ariaLabel:()=>{var e;return null!=(e=pp(n))?e:n},checked:()=>{var t;return{some:"mixed",all:!0}[null!=(t=e.queryStyle({color:n}))&&t]},onMenuSelect:()=>{e.applyStyle({color:n},{operation:"toggle"}),e.adoptStyle="none"}});return t}var AP=class extends TC{constructor(e,t,n,i){super(e,t),this.row=n,this.col=i}set active(e){const t=this.parentMenu.children;if(e)for(const e of t)e.element.classList.toggle("active",e.row<=this.row&&e.col<=this.col);else for(const e of t)e.element.classList.remove("active")}};function TP(e){const t=[];for(let n=1;n<=5;n++)for(let i=1;i<=5;i++)t.push({onCreate:(e,t)=>new AP(e,t,n,i),label:"☐",tooltip:()=>pp("tooltip.row-by-col",n,i),data:{row:n,col:i},onMenuSelect:()=>{e.insert(`\\begin{pmatrix}${Array(n).fill(Array(i).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return t}function DP(e){return[{label:()=>pp("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>e.executeCommand("addRowBefore"),visible:()=>NP(e)},{label:()=>pp("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>e.executeCommand("addRowAfter"),visible:()=>NP(e)},{label:()=>pp("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>e.executeCommand("addColumnBefore"),visible:()=>NP(e),enabled:()=>{const t=e.model.parentEnvironment;if(!t)return!1;const[n,i]=function(e){var t;const n=null==(t=e.model.parentEnvironment)?void 0:t.array;return n?[n.length,n.reduce(((e,t)=>Math.max(e,t.length)),0)]:[0,0]}(e);return npp("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>e.executeCommand("addColumnAfter"),visible:()=>NP(e)},{type:"divider"},{label:()=>pp("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>e.executeCommand("removeRow"),visible:()=>NP(e)},{label:()=>pp("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>e.executeCommand("removeColumn"),visible:()=>NP(e)},{type:"divider"},{label:()=>pp("menu.borders"),visible:()=>(function(e){return"array"===e.model.at(e.model.position).type}(e)||NP(e))&&e.isSelectionEditable,submenu:[{label:" ⋱ ",id:"environment-no-border",onMenuSelect:()=>IP(e,"matrix")},{label:"(⋱)",id:"environment-parentheses",onMenuSelect:()=>IP(e,"pmatrix")},{label:"[⋱]",id:"environment-brackets",onMenuSelect:()=>IP(e,"bmatrix")},{label:"|⋱|",id:"environment-bar",onMenuSelect:()=>IP(e,"vmatrix")},{label:"{⋱}",id:"environment-braces",onMenuSelect:()=>IP(e,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>pp("menu.insert matrix"),id:"insert-matrix",visible:()=>e.isSelectionEditable,submenu:TP(e),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>pp("menu.mode"),id:"mode",visible:()=>e.isSelectionEditable&&e.model.selectionIsCollapsed,submenu:[{label:()=>pp("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{ik(e,"accept-all"),e.executeCommand(["switchMode","math"])},checked:()=>"math"===e.model.mode},{label:()=>pp("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{ik(e,"accept-all"),e.executeCommand(["switchMode","text"])},checked:()=>"text"===e.model.mode},{label:()=>pp("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>e.executeCommand(["switchMode","latex"]),checked:()=>"latex"===e.model.mode}]},{type:"divider"},{label:()=>pp("menu.font-style"),id:"variant",visible:()=>e.isSelectionEditable,submenu:CP(e),submenuClass:"variant-submenu"},{label:()=>pp("menu.color"),id:"color",visible:()=>e.isSelectionEditable,submenu:LP(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>pp("menu.background-color"),id:"background-color",visible:()=>e.isSelectionEditable,submenu:MP(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>pp("menu.accent"),id:"accent",visible:()=>e.isSelectionEditable,submenu:PP(e),submenuClass:"variant-submenu"},{label:()=>pp("menu.decoration"),id:"decoration",visible:()=>e.isSelectionEditable&&kP(e).length>0,submenu:EP(e),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>pp("menu.evaluate"),id:"ce-evaluate",visible:()=>e.isSelectionEditable&&null!==window.MathfieldElement.computeEngine,onMenuSelect:()=>{const t=function(e){var t,n;let i;i=e.model.selectionIsCollapsed?null==(t=window.MathfieldElement.computeEngine)?void 0:t.parse(e.getValue(),{canonical:!1}):null==(n=window.MathfieldElement.computeEngine)?void 0:n.parse(e.getValue(e.model.selection),{canonical:!1});if(!i)return"";let r=i.evaluate();r.isSame(i)&&(r=i.N());return r.latex}(e);t?e.model.selectionIsCollapsed?(e.model.position=e.model.lastOffset,e.insert(`=${t}`,{insertionMode:"insertAfter",selectionMode:"item"})):e.insert(t,{insertionMode:"replaceSelection",selectionMode:"item"}):e.model.announce("plonk")}},{label:()=>pp("menu.simplify"),id:"ce-simplify",visible:()=>e.isSelectionEditable&&null!==window.MathfieldElement.computeEngine,onMenuSelect:()=>{var t,n;if(e.model.selectionIsCollapsed){const n=null==(t=e.expression)?void 0:t.simplify();if(e.model.position=e.model.lastOffset,!n)return void e.model.announce("plonk");e.insert(`=${n.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const t=null==(n=window.MathfieldElement.computeEngine)?void 0:n.parse(e.getValue(e.model.selection)).simplify();if(!t)return void e.model.announce("plonk");e.insert(t.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var t;if(null===window.MathfieldElement.computeEngine)return"";const n=null==(t=e.expression)?void 0:t.unknowns[0];return n?pp("menu.solve-for",dP(n)):pp("menu.solve")},id:"ce-solve",visible:()=>{var t;return e.isSelectionEditable&&null!==window.MathfieldElement.computeEngine&&1===(null==(t=e.expression)?void 0:t.unknowns.length)&&"Nothing"!==e.expression.unknowns[0]},onMenuSelect:()=>{var t;const n=e.expression,i=null==n?void 0:n.unknowns[0],r=null==(t=n.solve(i))?void 0:t.map((e=>{var t;return null!=(t=e.simplify().latex)?t:""}));r?e.insert(`${i}=${1===r.length?r[0]:"\\left\\lbrace"+(null==r?void 0:r.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"}):e.model.announce("plonk")}},{type:"divider"},{label:()=>pp("menu.cut"),onMenuSelect:()=>e.executeCommand("cutToClipboard"),visible:()=>!e.options.readOnly&&e.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>pp("menu.copy"),id:"copy",submenu:[{label:()=>pp("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Zw.copyToClipboard(e,"latex"),keyboardShortcut:"meta+C"},{label:()=>pp("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Zw.copyToClipboard(e,"ascii-math")},{label:()=>pp("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Zw.copyToClipboard(e,"math-ml")}]},{label:()=>pp("menu.paste"),id:"paste",onMenuSelect:()=>e.executeCommand("pasteFromClipboard"),visible:()=>e.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>pp("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>e.executeCommand("selectAll")}]}function NP(e){var t;return!!(null==(t=e.model.parentEnvironment)?void 0:t.array)}function IP(e,t){ek(e),e.flushInlineShortcutBuffer(),v_(e.model,t),yk(e)}function BP(e,t,n,i){return{label:()=>dP(`\\${n}{${kP(e)}}`),tooltip:()=>{var e;return null!=(e=pp(i))?e:i},visible:()=>function(e,t){const n=_P(e);if(1!==n.length)return!1;const i=wS[t];return!!i&&!!i.test(n[0].value)}(e,t),checked:()=>{var n;return{some:"mixed",all:!0}[null!=(n=e.queryStyle({variant:t}))&&n]},onMenuSelect:()=>{e.applyStyle({variant:t},{operation:"toggle"}),e.adoptStyle="none"}}}function RP(e,t,n,i){return{label:()=>dP(`\\${n}{${kP(e)}}`),tooltip:()=>{var e;return null!=(e=pp(i))?e:i},visible:()=>function(e,t){return kP(e).length>0}(e),checked:()=>{var n;return{some:"mixed",all:!0}[null!=(n=e.queryStyle({variantStyle:t}))&&n]},onMenuSelect:()=>{e.applyStyle({variantStyle:t},{operation:"toggle"}),e.adoptStyle="none"}}}function OP(e,t){return e+lP(t)}function FP(e){var t;let n;if("prompt"===e.parent.type)"body"===e.parentBranch&&(n="prompt");else if("body"===e.parentBranch)n=e.type&&null!=(t={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[e.type])?t:"parent";else if("genfrac"===e.parent.type){if("above"===e.parentBranch)return"numerator";if("below"===e.parentBranch)return"denominator"}else"surd"===e.parent.type?"above"===e.parentBranch&&(n="index"):"superscript"===e.parentBranch?n="superscript":"subscript"===e.parentBranch&&(n="subscript");return n||console.log("unknown relationship"),null!=n?n:"parent"}function zP(e,t,n,i){let r="";if("plonk"===t)window.MathfieldElement.playSound("plonk"),e.flushInlineShortcutBuffer();else if("delete"===t)r=OP("deleted: ",i);else if("focus"===t||t.includes("move"))r=function(e,t){if(Number.isNaN(t))return"";const n=e.at(t);if(!n)return"";if(n.treeDepth<=e.at(e.position).treeDepth)return"";let i="",r=n.parent;const o=e.at(e.position).parent;for(;r!==e.root&&r!==o;)i+=`out of ${FP(r)};`,r=r.parent;return i}(e.model,n)+(e.model.selectionIsCollapsed?"":"selected: ")+function(e){if(!e.selectionIsCollapsed)return OP("",e.getAtoms(e.selection));let t="";const n=e.at(e.position),i=FP(n);n.isFirstSibling&&(t=(i?"start of "+i:"unknown")+": ");n.isLastSibling?n.isFirstSibling||(t+=i?"end of "+i:"unknown"):t+=OP("",n);return t}(e.model);else if("replacement"===t)r=OP("",e.model.at(e.model.position));else if("line"===t){const t=OP("",e.model.root);e.keyboardDelegate.setAriaLabel(t)}else r=i?OP(t+" ",i):t;if(r){const t=e.ariaLiveText.textContent.includes(" ")?"   ":"   ";e.ariaLiveText.textContent=r+t}}kk({speak:(e,t,n)=>function(e,t,n){var i,r;n=null!=n?n:{withHighlighting:!1};const{model:o}=e;function a(e){let t=null;switch(e){case"all":default:t=o.root;break;case"selection":t=o.getAtoms(o.selection);break;case"left":t=o.getAtoms(o.offsetOf(o.at(o.position).leftSibling),o.position);break;case"right":t=o.getAtoms(o.position,o.offsetOf(o.at(o.position).rightSibling));break;case"group":t=o.getAtoms(o.getSiblingsRange(o.position));break;case"parent":{const{parent:e}=o.at(o.position);t=(null==e?void 0:e.parent)?e:o.root;break}}return t}function s(e){let t="";switch(e){case"all":console.log("Internal failure: speak all failed");break;case"selection":t="no selection";break;case"left":t="at start";break;case"right":t="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":t="no parent";break;default:console.log('unknown speak_ param value: "'+e+'"')}return t}const l=a(t);if(null===l)return null==(r=(i=window.MathfieldElement).speakHook)||r.call(i,s(t)),!1;(n.withHighlighting||"amazon"===window.MathfieldElement.speechEngine)&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&"sre"===window.MathfieldElement.textToSpeechRules?"ssml_step":"ssml");const c=lP(l);lp()&&n.withHighlighting?(oE().readAloudMathfield=e,wk(e,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(e.field,c)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(c);return!1}(e,t,n)},{target:"mathfield"});function jP(e,t,n,i){const r=e.offsetOf(t);if(ri)return!1;if(!t.hasChildren)return!0;const o=e.offsetOf(t.firstChild);if(o>=n&&o<=i){const r=e.offsetOf(t.lastChild);if(r>=n&&r<=i)return!0}return!1}function $P(e,t,n){if(!(null==t?void 0:t.hasChildren))return!1;const[i,r]=n,o=e.offsetOf(t.firstChild),a=e.offsetOf(t.lastChild);return o>=i&&o<=r&&a>=o&&a<=r}function HP(e,t,n,i){var r,o,a,s,l,c;const u=n.parent;if(u&&n instanceof Ox){const r=!i&&"forward"===t||"body"===i&&"backward"===t;let o=r?e.offsetOf(n.firstChild):e.offsetOf(n.lastChild);return r?"?"!==n.rightDelim&&"."!==n.rightDelim?(n.leftDelim=".",n.isDirty=!0):(u.addChildrenAfter(n.removeBranch("body"),n),u.removeChild(n),o--):"?"!==n.leftDelim&&"."!==n.leftDelim?(n.rightDelim=".",n.isDirty=!0):(u.addChildrenAfter(n.removeBranch("body"),n),u.removeChild(n),o--),e.position=o,!0}if(u&&"surd"===n.type){if("forward"===t&&!i||"backward"===t&&"body"===i){const t=n.leftSibling;n.hasChildren&&u.addChildrenAfter(n.removeBranch("body"),n),u.removeChild(n),e.position=e.offsetOf(t)}else"forward"===t&&"body"===i?e.position=e.offsetOf(n):i||"backward"!==t?"above"===i&&(n.hasEmptyBranch("above")&&n.removeBranch("above"),e.position="backward"===t?e.offsetOf(n.leftSibling):e.offsetOf(n.body[0])):n.hasChildren?e.position=e.offsetOf(n.lastChild):(e.position=Math.max(0,e.offsetOf(n)-1),u.removeChild(n));return!0}if(u&&("box"===n.type||"enclose"===n.type)){const r=i&&"backward"===t||!i&&"forward"===t?n.leftSibling:n.lastChild;return u.addChildrenAfter(n.removeBranch("body"),n),u.removeChild(n),e.position=e.offsetOf(r),!0}if("genfrac"===n.type||"overunder"===n.type){if(!i)return("overunder"!==n.type||!n.hasEmptyBranch("body"))&&(("genfrac"!==n.type||!n.hasEmptyBranch("below")||!n.hasEmptyBranch("above"))&&(e.position=e.offsetOf("forward"===t?n.firstChild:n.lastChild),!0));const r="numerator-denominator"===XP.fractionNavigationOrder?"above":"below",o="above"===r?"below":"above";if(u&&("forward"===t&&i===r||"backward"===t&&i===o)){const t=n.removeBranch(r),i=n.removeBranch(o);return u.addChildrenAfter([...t,...i],n),u.removeChild(n),e.position=e.offsetOf(t.length>0?t[t.length-1]:i[0]),!0}return e.position="backward"===t?e.offsetOf(n.leftSibling):e.offsetOf(n),!0}if(n.isExtensibleSymbol||"subsup"===n.type){if(!i&&"forward"===t)return!1;if(!i){if(n.subscript||n.superscript){const i="forward"===t?null!=(a=null==(r=n.superscript)?void 0:r[0])?a:null==(o=n.subscript)?void 0:o[0]:null!=(c=null==(s=n.subscript)?void 0:s[0].lastSibling)?c:null==(l=n.superscript)?void 0:l[0].lastSibling;return i&&(e.position=e.offsetOf(i)),!0}return!1}if(!n.hasChildren&&"subsup"===n.type){const i="forward"===t?e.offsetOf(n):Math.max(0,e.offsetOf(n)-1);return n.parent.removeChild(n),e.position=i,!0}if("superscript"===i)if("backward"===t){const t=e.offsetOf(n.firstChild)-1;console.assert(t>=0),e.position=t}else n.subscript?e.position=e.offsetOf(n.subscript[0]):e.position=e.offsetOf(n);else"subscript"===i&&("backward"===t&&n.superscript?e.position=e.offsetOf(n.superscript[0].lastSibling):e.position="backward"===t?e.offsetOf(n.firstChild)-1:e.offsetOf(n));if(i&&n.hasEmptyBranch(i)&&(n.removeBranch(i),"subsup"===n.type&&!n.subscript&&!n.superscript)){const i="forward"===t?e.offsetOf(n):Math.max(0,e.offsetOf(n)-1);n.parent.removeChild(n),e.position=i}return!0}if("genfrac"===(null==u?void 0:u.type)&&!i&&"first"!==n.type){let t=e.offsetOf(n.leftSibling);return u.removeChild(n),u.hasEmptyBranch("above")&&u.hasEmptyBranch("below")?(t=e.offsetOf(u.leftSibling),u.parent.removeChild(u),e.announce("delete",void 0,[u]),e.position=t,!0):(e.announce("delete",void 0,[n]),e.position=t,!0)}if("backward"===t&&("\\ln"===(null==u?void 0:u.command)||"\\log"===(null==u?void 0:u.command))&&"body"!==n.parentBranch){const t=e.offsetOf(u.leftSibling);return u.parent.removeChild(u),e.announce("delete",void 0,[u]),e.position=t,!0}return!1}function ZP(e,t,n){const i=e.getAtoms(t);if(i.length>0&&i[0].parent){let r=i[0].parent.firstChild;"first"===r.type&&(r=r.rightSibling);const o=i[i.length-1].parent.lastChild;let a=i[0];"first"===a.type&&(a=a.rightSibling);const s=i[i.length-1];if(a===r&&s===o){const n=i[0].parent;n.parent&&"prompt"!==n.type&&(t=[e.offsetOf(n.leftSibling),e.offsetOf(n)])}if(1===i.length&&"placeholder"===i[0].type&&"genfrac"===i[0].parent.type){const t=i[0].parent,r="below"===i[0].parentBranch?"above":"below",o=e.offsetOf(t.leftSibling);return e.deferNotifications({content:!0,selection:!0,type:n},(()=>{var n,i;const a=t.removeBranch(r);if(1!==a.length||"placeholder"!==a[0].type){const i=t.parent.addChildrenAfter(a,t);null==(n=t.parent)||n.removeChild(t),e.position=e.offsetOf(i)}else null==(i=t.parent)||i.removeChild(t),e.position=Math.max(0,o)}))}}return e.deferNotifications({content:!0,selection:!0,type:n},(()=>e.deleteAtoms(t)))}kk({deleteAll:e=>e.contentWillChange({inputType:"deleteContent"})&&ZP(e,[0,-1],"deleteContent"),deleteForward:e=>function(e){return!!e.mathfield.isSelectionEditable&&!!e.contentWillChange({inputType:"deleteContentForward"})&&(e.selectionIsCollapsed?e.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},(()=>{var t,n;let i=e.at(e.position).rightSibling;if(i&&HP(e,"forward",i))return;if(i){if(e.at(e.position).isLastSibling&&HP(e,"forward",i.parent,i.parentBranch))return}else{if(i=e.at(e.position),i.isLastSibling&&HP(e,"forward",i.parent,i.parentBranch))return;i=void 0}if(e.position===e.lastOffset||!i)return void e.announce("plonk");i.parent.removeChild(i);let r=null==(t=e.at(e.position))?void 0:t.rightSibling;for(;"subsup"===(null==r?void 0:r.type);)r.parent.removeChild(r),r=null==(n=e.at(e.position))?void 0:n.rightSibling;e.announce("delete",void 0,[i])})):ZP(e,Lw(e.selection),"deleteContentForward"))}(e),deleteBackward:e=>function(e){return!!e.mathfield.isSelectionEditable&&!!e.contentWillChange({inputType:"deleteContentBackward"})&&(e.selectionIsCollapsed?e.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},(()=>{let t=e.at(e.position);if(!t||!HP(e,"backward",t)){if(null==t?void 0:t.isFirstSibling){if(HP(e,"backward",t.parent,t.parentBranch))return;t=null}t?(e.position=e.offsetOf(t.leftSibling),t.parent.removeChild(t),e.announce("delete",void 0,[t])):e.announce("plonk")}})):ZP(e,Lw(e.selection),"deleteContentBackward"))}(e),deleteNextWord:e=>e.contentWillChange({inputType:"deleteWordForward"})&&ZP(e,[e.anchor,S_(e,e.position,"forward")],"deleteWordForward"),deletePreviousWord:e=>e.contentWillChange({inputType:"deleteWordBackward"})&&ZP(e,[e.anchor,S_(e,e.position,"backward")],"deleteWordBackward"),deleteToGroupStart:e=>e.contentWillChange({inputType:"deleteSoftLineBackward"})&&ZP(e,[e.anchor,e.offsetOf(e.at(e.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:e=>e.contentWillChange({inputType:"deleteSoftLineForward"})&&ZP(e,[e.anchor,e.offsetOf(e.at(e.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:e=>e.contentWillChange({inputType:"deleteHardLineBackward"})&&ZP(e,[e.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:e=>e.contentWillChange({inputType:"deleteHardLineForward"})&&ZP(e,[e.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var KP=``,GP=``;function UP(e){if(e&&(e.classList.remove("ML__highlight"),e.children))for(const t of e.children)UP(t)}function VP(e,t){var n;e&&(t&&(null==(n=e.dataset)?void 0:n.atomId)!==t?(e.classList.remove("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach((e=>{e instanceof HTMLElement&&VP(e,t)}))):(e.classList.add("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach((e=>{e instanceof HTMLElement&&VP(e)}))))}lp()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var WP=new WeakMap,qP={letterShapeStyle:"mf.letterShapeStyle = ...",horizontalSpacingScale:'Removed. Use `"thinmuskip"`, `"medmuskip"`, and `"thickmuskip"` registers ',macros:"mf.macros = ...",registers:"mf.registers = ...",backgroundColorMap:"mf.backgroundColorMap = ...",colorMap:"mf.colorMap = ...",enablePopover:"mf.popoverPolicy = ...",mathModeSpace:"mf.mathModeSpace = ...",placeholderSymbol:"mf.placeholderSymbol = ...",readOnly:"mf.readOnly = ...",removeExtraneousParentheses:"mf.removeExtraneousParentheses = ...",scriptDepth:"mf.scriptDepth = ...",smartFence:"mf.smartFence = ...",smartMode:"mf.smartMode = ...",smartSuperscript:"mf.smartSuperscript = ...",inlineShortcutTimeout:"mf.inlineShortcutTimeout = ...",inlineShortcuts:"mf.inlineShortcuts = ...",keybindings:"mf.keybindings = ...",virtualKeyboardMode:"mf.mathVirtualKeyboardPolicy = ...",customVirtualKeyboardLayers:"mathVirtualKeyboard.layers = ...",customVirtualKeyboards:"mathVirtualKeyboard.layouts = ...",keypressSound:"mathVirtualKeyboard.keypressSound = ...",keypressVibration:"mathVirtualKeyboard.keypressVibration = ...",plonkSound:"mathVirtualKeyboard.plonkSound = ...",virtualKeyboardContainer:"mathVirtualKeyboard.container = ...",virtualKeyboardLayout:"mathVirtualKeyboard.alphabeticLayout = ...",virtualKeyboardTheme:"No longer supported",virtualKeyboardToggleGlyph:"No longer supported",virtualKeyboardToolbar:"mathVirtualKeyboard.editToolbar = ...",virtualKeyboards:"Use `mathVirtualKeyboard.layouts`",speechEngine:"`MathfieldElement.speechEngine`",speechEngineRate:"`MathfieldElement.speechEngineRate`",speechEngineVoice:"`MathfieldElement.speechEngineVoice`",textToSpeechMarkup:"`MathfieldElement.textToSpeechMarkup`",textToSpeechRules:"`MathfieldElement.textToSpeechRules`",textToSpeechRulesOptions:"`MathfieldElement.textToSpeechRulesOptions`",readAloudHook:"`MathfieldElement.readAloudHook`",speakHook:"`MathfieldElement.speakHook`",computeEngine:"`MathfieldElement.computeEngine`",fontsDirectory:"`MathfieldElement.fontsDirectory`",soundsDirectory:"`MathfieldElement.soundsDirectory`",createHTML:"`MathfieldElement.createHTML`",onExport:"`MathfieldElement.onExport`",onInlineShortcut:"`MathfieldElement.onInlineShortcut`",onScrollIntoView:"`MathfieldElement.onScrollIntoView`",locale:"MathfieldElement.locale = ...",strings:"MathfieldElement.strings = ...",decimalSeparator:"MathfieldElement.decimalSeparator = ...",fractionNavigationOrder:"MathfieldElement.fractionNavigationOrder = ..."},YP=class e extends HTMLElement{static get formAssociated(){return eE()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(e){e!==this._fontsDirectory&&(this._fontsDirectory=e,async function(){gk="not-loaded",mk()}())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(e){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(e){this._soundsDirectory=e,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(e){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(e){var t,n,i;this.audioBuffers={},null===e?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:"string"==typeof e?this._keypressSound={spacebar:e,return:e,delete:e,default:e}:"object"==typeof e&&"default"in e&&(this._keypressSound={spacebar:null!=(t=e.spacebar)?t:e.default,return:null!=(n=e.return)?n:e.default,delete:null!=(i=e.delete)?i:e.default,default:e.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(e){this.audioBuffers={},this._plonkSound=e}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(e){this._speechEngine=e}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(e){this._speechEngineRate=e}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(e){this._speechEngineVoice=e}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(e){this._textToSpeechMarkup=e}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(e){this._textToSpeechRules=e}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(e){this._textToSpeechRulesOptions=e}static get locale(){return dp.locale}static set locale(e){"auto"===e&&(e=navigator.language.slice(0,5)),dp.locale=e}get locale(){throw new Error("Use MathfieldElement.locale instead")}set locale(e){throw new Error("Use MathfieldElement.locale instead")}static get strings(){return dp.strings}static set strings(e){dp.merge(e)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(e){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(e){this._decimalSeparator=e,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=","===this.decimalSeparator?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(e){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var e,t;if(void 0===this._computeEngine){const t=null==(e=window[Symbol.for("io.cortexjs.compute-engine")])?void 0:e.ComputeEngine;if(!t)return null;this._computeEngine=new t,this._computeEngine&&","===this.decimalSeparator&&(this._computeEngine.latexOptions.decimalMarker="{,}")}return null!=(t=this._computeEngine)?t:null}static set computeEngine(e){this._computeEngine=e}get computeEngine(){throw new Error("Use MathfieldElement.computeEngine instead")}set computeEngine(e){throw new Error("Use MathfieldElement.computeEngine instead")}static get isFunction(){return"function"!=typeof this._isFunction?()=>!1:this._isFunction}static set isFunction(e){this._isFunction=e}static async loadSound(e){delete this.audioBuffers[e];let t="";switch(e){case"keypress":t=this._keypressSound.default;break;case"return":t=this._keypressSound.return;break;case"spacebar":t=this._keypressSound.spacebar;break;case"delete":t=this._keypressSound.delete;break;case"plonk":t=this.plonkSound}if("string"!=typeof t)return;t=t.trim();const n=this.soundsDirectory;if(null!=n&&"null"!==n&&"none"!==t&&"null"!==t)try{const i=await fetch(await fk(`${n}/${t}`)),r=await i.arrayBuffer(),o=await this.audioContext.decodeAudioData(r);this.audioBuffers[e]=o}catch(e){}}static async playSound(e){if("suspended"!==this.audioContext.state&&"interrupted"!==this.audioContext.state||await this.audioContext.resume(),this.audioBuffers[e]||await this.loadSound(e),!this.audioBuffers[e])return;const t=this.audioContext.createBufferSource();t.buffer=this.audioBuffers[e];const n=this.audioContext.createGain();n.gain.value=.5,t.connect(n).connect(this.audioContext.destination),t.start()}constructor(e){if(super(),e){const t=[];for(const n of Object.keys(e))if(qP[n])if(qP[n].startsWith("mf."))if(qP[n].startsWith(`mf.${n}`))t.push(`Option \`${n}\` cannot be used as a constructor option. Use ${qP[n]}`);else{const e=qP[n].match(/([a-zA-Z]+) =/);t.push(`Option \`${n}\` has been renamed \`${e[1]}\``)}else t.push(`Option \`${n}\` cannot be used as a constructor option. Use ${qP[n]}`);if(t.length>0){console.group("%cMathLive 0.98.5: %cInvalid Options","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn("Some of the options passed to `new MathfieldElement(...)` are invalid. \n See https://cortexjs.io/mathlive/changelog/ for details.");for(const e of t)console.warn(e);console.groupEnd()}}if(eE()&&(this._internals=this.attachInternals(),this._internals.role="math",this._internals.ariaLabel="math input field",this._internals.ariaMultiLine="false"),this.attachShadow({mode:"open",delegatesFocus:!0}),this.shadowRoot&&"adoptedStyleSheets"in this.shadowRoot){this.shadowRoot.adoptedStyleSheets=[rx("core"),rx("mathfield"),rx("mathfield-element"),rx("ui"),rx("menu")],this.shadowRoot.appendChild(document.createElement("span"));const e=document.createElement("slot");e.style.display="none",this.shadowRoot.appendChild(e)}else this.shadowRoot.innerHTML="';e&&this._setOptions(e),this.shadowRoot.addEventListener("slotchange",(()=>{var e;const t=this.shadowRoot.querySelector("slot:not([name])");this.value=null!=(e=null==t?void 0:t.assignedNodes().map((e=>3===e.nodeType?e.textContent:"")).join("").trim())?e:""}))}showMenu(e){var t,n;return null!=(n=null==(t=this._mathfield)?void 0:t.showMenu(e))&&n}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",(e=>{var t;e.target!==this||(null==(t=this._mathfield)?void 0:t.disabled)||this.dispatchEvent(new MouseEvent("click",{altKey:e.altKey,button:e.button,buttons:e.buttons,clientX:e.clientX,clientY:e.clientY,ctrlKey:e.ctrlKey,metaKey:e.metaKey,movementX:e.movementX,movementY:e.movementY,relatedTarget:e.relatedTarget,screenX:e.screenX,screenY:e.screenY,shiftKey:e.shiftKey}))}),{once:!0})}getPromptValue(e,t){var n,i;return null!=(i=null==(n=this._mathfield)?void 0:n.getPromptValue(e,t))?i:""}setPromptValue(e,t,n){var i;null==(i=this._mathfield)||i.setPromptValue(e,t,n)}getPromptRange(e){var t,n;return null!=(n=null==(t=this._mathfield)?void 0:t.getPromptRange(e))?n:null}getPrompts(e){var t,n;return null!=(n=null==(t=this._mathfield)?void 0:t.getPrompts(e))?n:[]}get form(){var e;return null==(e=this._internals)?void 0:e.form}get name(){var e;return null!=(e=this.getAttribute("name"))?e:""}get type(){return this.localName}get mode(){var e,t;return null!=(t=null==(e=this._mathfield)?void 0:e.model.mode)?t:"text"===this.defaultMode?"text":"math"}set mode(e){var t;null==(t=this._mathfield)||t.switchMode(e)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error('MathLive 0.98.5: The CortexJS Compute Engine library is not available.\n \n Load the library, for example with:\n \n import "https://unpkg.com/@cortex-js/compute-engine?module"'),null)}set expression(t){var n,i;if(!this._mathfield)return;const r=null!=(i=null==(n=e.computeEngine)?void 0:n.box(t).latex)?i:null;null!==r&&this._mathfield.setValue(r),window[Symbol.for("io.cortexjs.compute-engine")]||console.error('MathLive 0.98.5: The CortexJS Compute Engine library is not available.\n \n Load the library, for example with:\n \n import "https://unpkg.com/@cortex-js/compute-engine?module"')}get errors(){var e,t;return null!=(t=null==(e=this._mathfield)?void 0:e.errors)?t:[]}_getOptions(e){return this._mathfield?i_(this._mathfield.options,e):WP.has(this)?ip({},i_(ip(ip({},r_()),n_(WP.get(this).options)),e)):null}getOptions(e){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOptions()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._mathfield?i_(this._mathfield.options,e):WP.has(this)?i_(ip(ip({},r_()),n_(WP.get(this).options)),e):null}reflectAttributes(){const t=r_(),n=this._getOptions();Object.keys(e.optionsAttributes).forEach((i=>{const r=QP(i);"on/off"===e.optionsAttributes[i]?t[r]!==n[r]?this.setAttribute(i,n[r]?"on":"off"):this.removeAttribute(i):t[r]!==n[r]&&("boolean"===e.optionsAttributes[i]?n[r]?this.setAttribute(i,""):this.removeAttribute(i):"string"!=typeof n[r]&&"number"!=typeof n[r]||this.setAttribute(i,n[r].toString()))}))}getOption(e){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOption()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._getOptions([e])[e]}_getOption(e){return this._getOptions([e])[e]}_setOptions(e){if(this._mathfield)this._mathfield.setOptions(e);else if(WP.has(this)){const t=ip(ip({},WP.get(this).options),e);WP.set(this,rp(ip({},WP.get(this)),{selection:{ranges:t.readOnly?[[0,0]]:[[0,-1]]},options:t}))}else WP.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:e,menuItems:void 0});this.reflectAttributes()}setOptions(e){console.group("%cMathLive 0.98.5: %cDeprecated Usage","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn(" `mf.setOptions()` is deprecated. Set the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.");for(const t of Object.keys(e))qP[t]&&console.warn(`\`mf.setOptions({${t}:...})\` -> ${qP[t]}`);console.groupEnd(),this._setOptions(e)}executeCommand(e){var t,n;return null!=(n=null==(t=this._mathfield)?void 0:t.executeCommand(e))&&n}getValue(e,t,n){var i,r;if(this._mathfield)return this._mathfield.model.getValue(e,t,n);if(WP.has(this)){let o,a,s;if(Dw(e)?([o,a]=e.ranges[0],s=t):Tw(e)?([o,a]=e,s=t):Aw(e)&&Aw(t)?(o=e,a=t,s=n):(o=0,a=-1,s=e),(void 0===s||"latex"===s)&&0===o&&-1===a)return null!=(r=null!=(i=WP.get(this).value)?i:this.textContent)?r:""}return""}setValue(e,t){if(this._mathfield&&void 0!==e)return null!=t||(t={silenceNotifications:!0,mode:"math"}),void this._mathfield.setValue(e,t);if(WP.has(this)){const t=WP.get(this).options;return void WP.set(this,{value:e,selection:{ranges:[[-1,-1]],direction:"forward"},options:t,menuItems:void 0})}const n=JP(this);WP.set(this,{value:e,selection:{ranges:[[-1,-1]],direction:"forward"},options:n,menuItems:void 0})}hasFocus(){var e,t;return null!=(t=null==(e=this._mathfield)?void 0:e.hasFocus())&&t}focus(){var e;null==(e=this._mathfield)||e.focus()}blur(){var e;null==(e=this._mathfield)||e.blur()}select(){var e;null==(e=this._mathfield)||e.select()}insert(e,t){var n,i;return null!=(i=null==(n=this._mathfield)?void 0:n.insert(e,t))&&i}applyStyle(e,t){var n;return null==(n=this._mathfield)?void 0:n.applyStyle(e,t)}queryStyle(e){var t,n;return null!=(n=null==(t=this._mathfield)?void 0:t.queryStyle(e))?n:"none"}get caretPoint(){var e,t;return null!=(t=null==(e=this._mathfield)?void 0:e.getCaretPoint())?t:null}set caretPoint(e){var t;e&&(null==(t=this._mathfield)||t.setCaretPoint(e.x,e.y))}setCaretPoint(e,t){var n,i;return null!=(i=null==(n=this._mathfield)?void 0:n.setCaretPoint(e,t))&&i}offsetFromPoint(e,t,n){return this._mathfield?oC(this._mathfield,e,t,n):-1}hitboxFromOffset(e){if(!this._mathfield)return null;const t=this._mathfield.model.at(e);if(!t)return null;const n=Xw(this._mathfield,t);return n?new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top):null}resetUndo(){var e;null==(e=this._mathfield)||e.resetUndo()}canUndo(){return!!this._mathfield&&this._mathfield.canUndo()}canRedo(){return!!this._mathfield&&this._mathfield.canRedo()}handleEvent(e){var t,n,i,r;"closed"===GS.state&&"closed"===(null==(n=null==(t=this._mathfield)?void 0:t.menu)?void 0:n.state)&&("pointerdown"===e.type&&this.onPointerDown(),"focus"===e.type&&(null==(i=this._mathfield)||i.focus()),"blur"===e.type&&(null==(r=this._mathfield)||r.blur()))}connectedCallback(){var t,n,i,r;const o=window.getComputedStyle(this),a=this.shadowRoot,s="none"!==o.userSelect;if(s)a.host.addEventListener("pointerdown",this,!0);else{a.querySelector("span").style.pointerEvents="none"}a.host.addEventListener("focus",this,!0),a.host.addEventListener("blur",this,!0),eE()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),s&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const l=a.querySelector("slot:not([name])");if(l)try{this._style=l.assignedElements().filter((e=>"style"===e.tagName.toLowerCase())).map((e=>e.textContent)).join("")}catch(e){console.error(e)}if(this._style){const e=document.createElement("style");e.textContent=this._style,a.appendChild(e)}let c="";if(c=this.hasAttribute("value")?this.getAttribute("value"):null!=(t=null==l?void 0:l.assignedNodes().map((e=>3===e.nodeType?e.textContent:"")).join("").trim())?t:"",this._mathfield=new class{constructor(e,t){var n,i,r;this.focusBlurInProgress=!1,this.options=ip(rp(ip({},r_()),{macros:Yp(),registers:yw()}),n_(t)),this.eventController=new AbortController;const o=this.eventController.signal;t.eventSink&&(this.host=t.eventSink),this.element=e,e.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left","inline-math"===this.options.defaultMode?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let a=null!=(i=null!=(n=t.value)?n:this.element.textContent)?i:"";a=a.trim();const s=o_(this.options),l=new _w({type:"root",mode:s,body:Gx(a,{context:this.context})});this.model=new class{constructor(e,t,n){this.mathfield=e,this.mode=t,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=n}dispose(){this.mathfield=void 0}getState(){const e={ranges:[...this._selection.ranges]};return this.selection.direction&&"none"!==this.selection.direction&&(e.direction=this.selection.direction),{content:this.root.toJson(),selection:e,mode:this.mode}}setState(e,t){var n;const i=this.silenceNotifications;this.silenceNotifications=null==(n=null==t?void 0:t.silenceNotifications)||n;let r={};if("undo"===(null==t?void 0:t.type)&&(r={inputType:"historyUndo"}),"redo"===(null==t?void 0:t.type)&&(r={inputType:"historyRedo"}),this.contentWillChange(r)){const t=this.silenceNotifications;this.silenceNotifications=!0,this.mode=e.mode,this.root=yS(e.content),this.selection=e.selection,this.silenceNotifications=t,this.contentDidChange(r)}this.silenceNotifications=i}get atoms(){return this.root.children}get selection(){return this._selection}set selection(e){this.setSelection(e)}setSelection(e,t){return!(!this.mathfield.contentEditable&&"none"===this.mathfield.userSelect)&&this.deferNotifications({selection:!0},(()=>{var n,i,r;const o=this.normalizeSelection(e,t);if(void 0===o)throw new TypeError("Invalid selection");if(1===o.ranges.length&&o.ranges[0][0]===o.ranges[0][1]){const e=o.ranges[0][0];return this.mathfield.dirty||(null==(n=this.at(e))?void 0:n.parentPrompt)||!this.mathfield.hasEditablePrompts?(this._anchor=e,this._position=e,void(this._selection=o)):(null==(i=this.at(e-1))?void 0:i.parentPrompt)?(this._anchor=this.normalizeOffset(e-1),this._position=this._anchor,void(this._selection=this.normalizeSelection(this._anchor))):(null==(r=this.at(e+1))?void 0:r.parentPrompt)?(this._anchor=this.normalizeOffset(e+1),this._position=this._anchor,void(this._selection=this.normalizeSelection(this._anchor))):(this._anchor=0,this._position=0,void(this._selection={ranges:[[0,0]]}))}const a=Lw(o);"backward"===o.direction?[this._position,this._anchor]=a:[this._anchor,this._position]=a;const s=this.at(a[0]+1),l=this.at(a[1]),c=_w.commonAncestor(s,l);"array"===(null==c?void 0:c.type)&&s.parent===c&&l.parent,this._selection={ranges:[a],direction:o.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)}))}setPositionHandlingPlaceholder(e){var t;const n=this.at(e);"placeholder"===(null==n?void 0:n.type)?this.setSelection(e-1,e):"placeholder"===(null==(t=null==n?void 0:n.rightSibling)?void 0:t.type)?this.setSelection(e,e+1):this.position=e,n instanceof nS&&n.isSuggestion&&(n.isSuggestion=!1),this.mathfield.stopCoalescingUndo()}get position(){return this._position}set position(e){this.setSelection(e,e)}get anchor(){return this._anchor}get selectionIsCollapsed(){return this._anchor===this._position}get selectionIsPlaceholder(){return 1===Math.abs(this._anchor-this._position)&&"placeholder"===this.at(Math.max(this._anchor,this._position)).type}collapseSelection(e="forward"){return this._anchor!==this._position&&(this.position="backward"===e?Math.min(this._anchor,this._position):Math.max(this._anchor,this._position),!0)}get lastOffset(){return this.atoms.length-1}at(e){return this.atoms[e]}offsetOf(e){return this.atoms.indexOf(e)}getSiblingsRange(e){const t=this.at(e),{parent:n}=t;if(!n)return[0,this.lastOffset];const i=t.parent.branch(t.parentBranch);return[this.offsetOf(i[0]),this.offsetOf(i[i.length-1])]}getBranchRange(e,t){const n=this.at(e).branch(t);return[this.offsetOf(n[0]),this.offsetOf(n[n.length-1])]}getAtoms(e,t,n){let i,r,o=null!=n?n:{};if(Dw(e)){if(o=null!=t?t:{},e.ranges.length>1)return e.ranges.reduce(((e,t)=>[...e,...this.getAtoms(t,o)]),[]);e=e.ranges[0]}if(Aw(e)){if(i=e,!Aw(t))return[];r=t}else[i,r]=e,o=null!=t?t:{};if(!Number.isFinite(i))return[];void 0===o.includeChildren&&(o.includeChildren=!1),i<0&&(i=this.lastOffset-i+1),r<0&&(r=this.lastOffset-r+1);const a=Math.min(i,r)+1,s=Math.max(i,r);if(!o.includeChildren&&1===a&&s===this.lastOffset)return[this.root];let l=[];for(let e=a;e<=s;e++){const t=this.atoms[e];jP(this,t,a,s)&&l.push(t)}return o.includeChildren||(l=l.filter((e=>{let t=!1,{parent:n}=e;for(;n&&!t;)t=jP(this,n,a,s),n=n.parent;return!t}))),l}getAllAtoms(e=0){const t=[],n=this.lastOffset;for(let i=e;i<=n;i++)t.push(this.atoms[i]);for(let n=0;n=0;n--)if(i=this.atoms[n],e(i))return i;for(let n=r;n>t;n--)if(i=this.atoms[n],e(i))return i}else{for(let n=t;n<=r;n++)if(i=this.atoms[n],e(i))return i;for(let n=0;n_w.serialize(this.getAtoms(t),e))))}return i.map((e=>this.getAtoms(e).map((e=>this.atomToString(e,r))).join(""))).join("")}extendSelectionTo(e,t){return!(!this.mathfield.contentEditable&&"none"===this.mathfield.userSelect)&&this.deferNotifications({selection:!0},(()=>{const n=this.normalizeRange([e,t]);let[i,r]=n,{parent:o}=this.at(r);if(o&&("genfrac"===o.type||"subsup"===o.type))for(;o!==this.root&&$P(this,o,[i,r]);)r=this.offsetOf(o),o=o.parent;for(o=this.at(i).parent;o!==this.root&&$P(this,o,[i,r]);)i=this.offsetOf(o.leftSibling),o=o.parent;if(o=this.at(r).parent,"genfrac"===(null==o?void 0:o.type))for(;o!==this.root&&$P(this,o,[i,r]);)r=this.offsetOf(o),console.assert(r>=0),o=o.parent;this._position=this.normalizeOffset(t),this._selection={ranges:[[i,r]],direction:"none"}}))}announce(e,t,n=[]){var i,r;(null==(r=null==(i=this.mathfield.host)?void 0:i.dispatchEvent(new CustomEvent("announce",{detail:{command:e,previousPosition:t,atoms:n},cancelable:!0,bubbles:!0,composed:!0})))||r)&&zP(this.mathfield,e,t,n)}deferNotifications(e,t){const n=this._selection,i=this._anchor,r=this._position,o=this.silenceNotifications;this.silenceNotifications=!0;const a=this.root.changeCounter;t();const s=this.root.changeCounter!==a,l=i!==this._anchor||r!==this._position||"different"===function(e,t){if(e.direction===t.direction){const n=e.ranges.length;if(t.ranges.length===n){let i=0;for(;i0?e=Math.min(e,this.lastOffset):e<0&&(e=this.lastOffset+e+1),e}normalizeRange(e){let[t,n]=e;return t=this.normalizeOffset(t),n=this.normalizeOffset(n),tthis.normalizeRange(e))),direction:null!=(n=e.direction)?n:"none"});return console.assert(void 0!==i),i}get parentEnvironment(){let e=this.at(this.position).parent;if(e){for(;e.parent&&"array"!==e.type;)e=e.parent;if("array"===e.type)return e}}get cell(){var e;let t=this.at(this.position);if(t){for(;t&&"array"!==(null==(e=t.parent)?void 0:e.type);)t=t.parent;if((null==t?void 0:t.parent)&&"array"===t.parent.type)return t.parentBranch}}contentWillChange(e={}){if(this.silenceNotifications||!this.mathfield)return!0;const t=this.silenceNotifications;this.silenceNotifications=!0;const n=this.mathfield.onContentWillChange(e);return this.silenceNotifications=t,n}contentDidChange(e){var t;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(uC(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const n=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",rp(ip({},e),{data:e.data?e.data:null!=(t=e.inputType)?t:"",bubbles:!0,composed:!0}))),this.silenceNotifications=n}selectionDidChange(){if(!this.mathfield)return;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(uC(this.mathfield)),this.silenceNotifications)return;const e=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=e}}(this,s,l),this.undoManager=new x_(this.model);const c=[];if(c.push(""),c.push('"),c.push(""),c.push(""),c.push(""),this.element.innerHTML=window.MathfieldElement.createHTML(c.join("")),!this.element.children)return void console.error("%cMathLive 0.98.5: Something went wrong and the mathfield could not be created.%c\nIf you are using Vue, this may be because you are using the runtime-only build of Vue. Make sure to include `runtimeCompiler: true` in your Vue configuration. There may a warning from Vue in the log above.","color:red;font-family:system-ui;font-size:1.2rem;font-weight:bold","color:inherit;font-family:system-ui;font-size:inherit;font-weight:inherit");this._l10Subscription=dp.subscribe((()=>dp.update(this.element))),dp.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",(e=>e.stopImmediatePropagation()),{capture:!1,signal:o}),this.field.addEventListener("wheel",this,{passive:!1,signal:o}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:o}):this.field.addEventListener("mousedown",this,{signal:o}),null==(r=this.element.querySelector("[part=virtual-keyboard-toggle]"))||r.addEventListener("click",(()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(uC(this)))}),{signal:o}),this._menu=new BC(DP(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:o});const u=this.element.querySelector("[part=menu-toggle]");var h;null==u||u.addEventListener("pointerdown",(e=>{if(e.currentTarget!==u)return;if("closed"!==this._menu.state)return;this.element.classList.add("tracking");const t=u.getBoundingClientRect();this._menu.modifiers=$S(e),this._menu.show({target:u,location:{x:t.left,y:t.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),e.preventDefault(),e.stopPropagation()}),{signal:o}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||"none"===this.userSelect)&&(u.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=function(e,t,n){let i=null,r=null,o=!1,a=!1,s=!1;const l=new AbortController,c=l.signal;return e.addEventListener("keydown",(t=>{o||"Process"===t.key||"CapsLock"===t.code||/(Control|Meta|Alt|Shift)(Left|Right)/.test(t.code)?i=null:(i=t,r=null,n.onKeystroke(t)?e.textContent="":i=null)}),{capture:!0,signal:c}),e.addEventListener("keypress",(e=>{o||(i&&r&&n.onKeystroke(i),r=e)}),{capture:!0,signal:c}),e.addEventListener("compositionstart",(t=>{e.textContent="",o=!0,n.onCompositionStart(t.data)}),{capture:!0,signal:c}),e.addEventListener("compositionupdate",(e=>{o&&n.onCompositionUpdate(e.data)}),{capture:!0,signal:c}),e.addEventListener("compositionend",(t=>{e.textContent="",o&&(o=!1,n.onCompositionEnd(t.data))}),{capture:!0,signal:c}),e.addEventListener("beforeinput",(e=>e.stopImmediatePropagation()),{signal:c}),e.addEventListener("input",(t=>{var i;if(!o&&(e.textContent="","insertCompositionText"!==t.inputType)){if("insertFromPaste"===t.inputType)return t.preventDefault(),void t.stopPropagation();n.onInput(null!=(i=t.data)?i:""),t.preventDefault(),t.stopPropagation()}}),{signal:c}),e.addEventListener("paste",(t=>{e.focus({preventScroll:!0}),e.textContent="",n.onPaste(t)||t.preventDefault(),t.stopImmediatePropagation()}),{signal:c}),e.addEventListener("cut",(e=>n.onCut(e)),{capture:!0,signal:c}),e.addEventListener("copy",(e=>n.onCopy(e)),{capture:!0,signal:c}),e.addEventListener("blur",(o=>{var l,c;if((null==(c=null==(l=o.relatedTarget)?void 0:l._mathfield)?void 0:c.element)===t)return e.focus({preventScroll:!0}),o.preventDefault(),void o.stopPropagation();const u=GS.state;return"open"===u||"opening"===u||o.relatedTarget===o.target.getRootNode().host?(o.preventDefault(),void o.stopPropagation()):void(s||a||(s=!0,i=null,r=null,n.onBlur(),s=!1))}),{capture:!0,signal:c}),e.addEventListener("focus",(e=>{s||a||(a=!0,n.onFocus(),a=!1)}),{capture:!0,signal:c}),{dispose:()=>l.abort(),cancelComposition:()=>{o&&(e.blur(),requestAnimationFrame((()=>e.focus({preventScroll:!0}))))},blur:()=>{"function"==typeof e.blur&&e.blur()},focus:()=>{a||"function"!=typeof e.focus||e.focus({preventScroll:!0})},hasFocus:()=>KS()===e,setAriaLabel:t=>e.setAttribute("aria-label",t),setValue:t=>{var n;e.textContent=t,e.style.left="-1000px",null==(n=window.getSelection())||n.selectAllChildren(e)},moveTo:(t,n)=>{e.style.top=`${n}px`,e.style.left=`${t}px`}}}(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:o}),document.addEventListener("scroll",this,{signal:o}),this.resizeObserver=new ResizeObserver((()=>yk(this))),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:o}),NS&&!dp.locale.startsWith(NS.locale)&&(h=dp.locale,NS=BS.find((e=>h.startsWith(e.locale)))),"ready"!==gk&&document.fonts.ready.then((()=>xk(this))),e.querySelector("[part=container]").style.removeProperty("visibility"),this.undoManager.startRecording(),this.undoManager.snapshot("set-value")}get defaultStyle(){return this._defaultStyle}set defaultStyle(e){this._defaultStyle=e}get effectiveStyle(){if("none"===this.adoptStyle)return this.defaultStyle;const e=this.model.at(this.model.position),t="right"===this.adoptStyle?e.rightSibling:e;if(!t)return this.defaultStyle;if("group"===t.type){const e=t.branch("body");return!e||e.length<2?{}:"right"===this.adoptStyle?e[1].computedStyle:e[e.length-1].computedStyle}return t.computedStyle}connectToVirtualKeyboard(){this.connectedToVirtualKeyboard||(this.connectedToVirtualKeyboard=!0,window.addEventListener("message",this,{signal:this.eventController.signal}),window.mathVirtualKeyboard.connect(),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(uC(this)),xC(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,wC())}showMenu(e){var t,n;const i=null!=(n=null!=(t=null==e?void 0:e.location)?t:Vw(this.field))?n:void 0,r=null==e?void 0:e.modifiers,o=this.element.querySelector("[part=container]");return this._menu.show({target:o,location:i,modifiers:r})}get colorMap(){return e=>{var t,n,i;return null!=(i=null==(n=(t=this.options).colorMap)?void 0:n.call(t,e))?i:wp(e)}}get backgroundColorMap(){return e=>{var t,n,i,r,o,a;return null!=(a=null!=(o=null==(n=(t=this.options).backgroundColorMap)?void 0:n.call(t,e))?o:null==(r=(i=this.options).colorMap)?void 0:r.call(i,e))?a:xp(e)}}get smartFence(){var e;return null!=(e=this.options.smartFence)&&e}get readOnly(){var e;return null!=(e=this.options.readOnly)&&e}get disabled(){var e,t;return null!=(t=null==(e=this.host)?void 0:e.disabled)&&t}get contentEditable(){return!!this.host&&"false"!==this.host.getAttribute("contenteditable")}get userSelect(){if(!this.host)return"";const e=getComputedStyle(this.host);return e.getPropertyValue("user-select")||e.getPropertyValue("-webkit-user-select")}get hasEditableContent(){return!(this.disabled||!this.contentEditable)&&(!this.readOnly||this.hasEditablePrompts)}get hasEditablePrompts(){return this.readOnly&&!this.disabled&&this.contentEditable&&void 0!==this.model.findAtom((e=>"prompt"===e.type&&!e.locked))}get isSelectionEditable(){if(this.disabled||!this.contentEditable)return!1;if(!this.readOnly)return!0;const e=this.model.at(this.model.anchor),t=this.model.at(this.model.position),n=_w.commonAncestor(e,t);return!("prompt"!==(null==n?void 0:n.type)&&!(null==n?void 0:n.parentPrompt))}get letterShapeStyle(){var e;return null!=(e=this.options.letterShapeStyle)?e:"tex"}get minFontScale(){return this.options.minFontScale}get selectionStyle(){if(this.model.selectionIsCollapsed)return this.effectiveStyle;const e=this.model.getAtoms(this.model.selection);if(0===e.length)return{};const t=ip({},e[0].style);for(const n of e)for(const[e,i]of Object.entries(n.style))t[e]!==i&&delete t[e];return t}queryStyle(e){const t=W_(this,e);"verbatimColor"in t&&delete t.verbatimColor,"verbatimBackgroundColor"in t&&delete t.verbatimBackgroundColor;const n=Object.keys(t).length;if(0===n)return"all";if(n>1){for(const e of Object.keys(t)){const n=this.queryStyle({[e]:t[e]});if("none"===n)return"none";if("some"===n)return"some"}return"all"}const i=Object.keys(t)[0],r=t[i];if(this.model.selectionIsCollapsed)return this.effectiveStyle[i]===r?"all":"none";const o=this.model.getAtoms(this.model.selection,{includeChildren:!0});let a=o.length;if(0===a)return"none";let s=0;for(const e of o)"first"!==e.type?e.style[i]===r&&(s+=1):a-=1;return 0===s?"none":s===a?"all":"some"}get keybindings(){var e,t;if(this._keybindings)return this._keybindings;const[n,i]=function(e,t){const n=[],i=[];for(const r of e)try{const e=YS(r,t);if(!e)continue;const n=i.find((t=>t.key===e.key&&t.ifMode===e.ifMode));if(n)throw new Error(`Ambiguous key binding ${r.key} (${XS(r.command)}) matches ${n.key} (${XS(n.command)}) with the ${t.displayName} keyboard layout`);i.push(e)}catch(e){e instanceof Error&&n.push(e.message)}return[i,n]}(this.options.keybindings,null!=(e=FS())?e:function(){switch(RS()){case"apple":return MS;case"windows":return LS;case"linux":return AS}return MS}());return(null==(t=FS())?void 0:t.score)>0&&(this._keybindings=n,i.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",i)),n}get menu(){return this._menu}setOptions(e){var t;this.options=ip(ip({},this.options),n_(e)),this._keybindings=void 0,"inline-math"===this.options.defaultMode?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let n=this.options.defaultMode;"inline-math"===n&&(n="math"),(null==(t=this.model.root.firstChild)?void 0:t.mode)!==n&&(this.model.root.firstChild.mode=n),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const i=_w.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in e||this.model.getValue()!==i)&&Zw.insert(this.model,i,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in e||"macros"in e||"registers"in e||"colorMap"in e||"backgroundColorMap"in e||"letterShapeStyle"in e||"minFontScale"in e||"readOnly"in e||"placeholderSymbol"in e)&&yk(this)}getOptions(e){return i_(this.options,e)}getOption(e){return i_(this.options,e)}async handleEvent(e){var t;if(Uw(this))if(Ek(e)){if(!Jw(e.origin,null!=(t=this.options.originValidator)?t:"none"))throw new DOMException(`Message from unknown origin (${e.origin}) cannot be handled`,"SecurityError");const{action:n}=e.data;if("execute-command"===n){const t=e.data.command;if("virtual-keyboard"===Ck(t))return;this.executeCommand(t)}else"update-state"===n||("focus"===n?this.focus({preventScroll:!0}):"blur"===n&&this.blur())}else switch(e.type){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"mousedown":"none"!==this.userSelect&&tC(this,e);break;case"pointerdown":"none"!==this.userSelect&&(tC(this,e),!1===e.shiftKey&&await zC(e,this.element.querySelector("[part=container]"),this._menu)&&J_.stop());break;case"contextmenu":"none"!==this.userSelect&&!1===e.shiftKey&&await zC(e,this.element.querySelector("[part=container]"),this._menu)&&J_.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&xC(this);break;case"resize":case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame((()=>Uw(this)&&this.onGeometryChange()));break;case"wheel":this.onWheel(e);break;default:console.warn("Unexpected event type",e.type)}}dispose(){Uw(this)&&(dp.unsubscribe(this._l10Subscription),this.keyboardDelegate.dispose(),this.keyboardDelegate=void 0,this.eventController.abort(),this.eventController=void 0,this.resizeObserver.disconnect(),window.mathVirtualKeyboard.removeEventListener("virtual-keyboard-toggle",this),this.disconnectFromVirtualKeyboard(),this.model.dispose(),delete this.element.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,document.getElementById("mathlive-keystroke-caption-panel")&&(ok("mathlive-keystroke-caption-panel"),ax("core"),ax("keystroke-caption")),document.getElementById("mathlive-suggestion-popover")&&(ok("mathlive-suggestion-popover"),ax("suggestion-popover"),ax("core")),document.getElementById("mathlive-environment-popover")&&(ok("mathlive-environment-popover"),ax("environment-popover"),ax("core")))}flushInlineShortcutBuffer(e){if(null!=e||(e={defer:!1}),!e.defer)return this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),void(this.inlineShortcutBufferFlushTimer=0);this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout((()=>this.flushInlineShortcutBuffer()),this.options.inlineShortcutTimeout))}executeCommand(e){return"virtual-keyboard"===Ck(e)?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(e),requestAnimationFrame((()=>window.mathVirtualKeyboard.update(uC(this)))),!1):function(e,t){var n;if(!t)return!1;let i,r=[],o=!1,a=!1;sp(t)?(i=t[0],r=t.slice(1)):i=t,i=i.replace(/-\w/g,(e=>e[1].toUpperCase()));const s=Sk[i],l=null==s?void 0:s.target;if("model"===l){if(!e.isSelectionEditable&&(null==s?void 0:s.changeContent))return e.model.announce("plonk"),!1;/^(delete|add)/.test(i)&&("deleteBackward"!==i&&e.flushInlineShortcutBuffer(),e.snapshot(i)),/^complete/.test(i)||ek(e),Sk[i].fn(e.model,...r),tk(e),a=!0,o=!0}else if("virtual-keyboard"===l)a=null!=(n=window.mathVirtualKeyboard.executeCommand(t))&&n,o=!0;else{if(!Sk[i])throw new Error(`Unknown command "${i}"`);if(!e.isSelectionEditable&&(null==s?void 0:s.changeContent))return e.model.announce("plonk"),!1;/^(undo|redo)/.test(i)&&e.flushInlineShortcutBuffer(),a=Sk[i].fn(e,...r),o=!0}return"virtual-keyboard"!==l&&(!e.model.selectionIsCollapsed||(null==s?void 0:s.changeSelection)&&"deleteBackward"!==t)&&(e.flushInlineShortcutBuffer(),(null==s?void 0:s.changeContent)||e.stopCoalescingUndo(),e.defaultStyle={}),a&&yk(e),o}(this,e)}get errors(){return Ux(this.model.getValue(),{context:this.context})}getValue(e,t,n){return this.model.getValue(e,t,n)}setValue(e,t){var n;void 0===(t=null!=t?t:{mode:"math"}).insertionMode&&(t.insertionMode="replaceAll"),void 0!==t.format&&"auto"!==t.format||(t.format="latex"),void 0!==t.mode&&"auto"!==t.mode||(t.mode=null!=(n=function(e,t){const n=e.at(t);let i;if(n){i=n.mode;let e=n.parent;for(;!i&&e;)e&&(i=e.mode),e=e.parent}return i}(this.model,this.model.position))?n:"math");const i=this.undoManager.canUndo();Zw.insert(this.model,e,t)&&(yk(this),i||this.undoManager.reset(),this.undoManager.snapshot("set-value"))}get expression(){const e=window.MathfieldElement.computeEngine;return e?e.box(e.parse(this.model.getValue("latex-unstyled"))):(console.error("MathLive 0.98.5: no compute engine available. Make sure the Compute Engine library is loaded."),null)}scrollIntoView(){var e;if(!this.element)return;if(this.host)if(this.options.onScrollIntoView)this.options.onScrollIntoView(this);else if(this.host.scrollIntoView({block:"nearest",inline:"nearest"}),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.container===window.document.body){const t=window.mathVirtualKeyboard.boundingRect,n=this.host.getBoundingClientRect();n.bottom>t.top&&(null==(e=window.document.scrollingElement)||e.scrollBy(0,n.bottom-t.top+8))}this.dirty&&wk(this,{interactive:!0});const t=this.field.getBoundingClientRect();let n=null;if(this.model.selectionIsCollapsed)n=Vw(this.field);else{const e=Qw(this);if(e.length>0){let i=-1/0,r=-1/0;for(const t of e)t.right>i&&(i=t.right),t.tope.bottom&&(i=t-e.bottom+this.host.scrollTop+n.height),this.host.scroll({top:i,left:0})}if(n){const e=n.x-window.scrollX;let i=this.field.scrollLeft;et.right&&(i=e-t.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:i})}}insert(e,t){return!("string"!=typeof e||0===e.length&&("insertBefore"===(null==t?void 0:t.insertionMode)||"insertAfter"===(null==t?void 0:t.insertionMode))||0===e.length&&this.model.selectionIsCollapsed||(this.flushInlineShortcutBuffer(),(t=null!=t?t:{mode:"math"}).focus&&this.focus(),t.feedback&&(window.MathfieldElement.keypressVibration&&cp()&&navigator.vibrate(3),window.MathfieldElement.playSound("keypress")),"\\\\"===e?g_(this.model):"&"===e?m_(this.model):this.model.selectionIsCollapsed?Zw.insert(this.model,e,ip({style:this.model.at(this.model.position).computedStyle},t)):Zw.insert(this.model,e,t),this.snapshot(`insert-${this.model.at(this.model.position).type}`),yk(this),t.scrollIntoView&&this.scrollIntoView(),0))}switchMode(e,t="",n=""){var i;if(this.model.mode===e||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const r=this.model.mode;if(this.model.mode=e,!(null==(i=this.host)?void 0:i.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0}))))return void(this.model.mode=r);const o=this.model.mode,{model:a}=this;a.deferNotifications({content:Boolean(n)||Boolean(t),selection:!0,type:"insertText"},(()=>{let i=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),t&&"latex"!==e){const n=Gx(t,{context:this.context,parseMode:e});a.collapseSelection("forward");const r=a.at(a.position);a.position=a.offsetOf(r.parent.addChildrenAfter(n,r)),i=!0}if(this.model.mode=e,"latex"===e){let e,n=a.selectionIsCollapsed;ik(this,"accept");let i=a.at(a.position);if(n)e="\\";else{const r=Lw(a.selection);e=this.model.getValue(r,"latex");const o=this.model.extractAtoms(r);1===o.length&&"placeholder"===o[0].type&&(e=t,n=!0),i=a.at(r[0])}const r=new iS(e);i.parent.addChildAfter(r,i),n?a.position=a.offsetOf(r.lastChild):a.setSelection(a.offsetOf(r.firstChild),a.offsetOf(r.lastChild))}else QS(a).forEach((e=>{e.isError=!1}));if(n){const e=Gx(n,{context:this.context,parseMode:o});a.collapseSelection("forward");const t=a.at(a.position);a.position=a.offsetOf(t.parent.addChildrenAfter(e,t)),i=!0}return yk(this),this.undoManager.snapshot("latex"===e?"insert-latex":"insert"),i})),this.model.mode=e,window.mathVirtualKeyboard.update(uC(this))}hasFocus(){return!this.blurred}focus(e){var t;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),null!=(t=null==e?void 0:e.preventScroll)&&t||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(e,t={}){var n,i;const r={operation:"set",silenceNotifications:!1};Tw(t)?r.range=t:("toggle"===t.operation&&(r.operation="toggle"),r.range=t.range,r.silenceNotifications=null!=(n=t.silenceNotifications)&&n);const o=W_(this,e),a=null!=(i=r.operation)?i:"set";if(void 0===r.range&&this.model.selectionIsCollapsed){if("set"===a)return void(this.defaultStyle=ip(ip({},this.defaultStyle),o));const e=ip({},this.defaultStyle);for(const t of Object.keys(o))e[t]===o[t]?("color"===t&&delete e.verbatimColor,"backgroundColor"===t&&delete e.verbatimBackgroundColor,delete e[t]):e[t]=o[t];this.defaultStyle=e}else this.model.deferNotifications({content:!r.silenceNotifications,type:"insertText"},(()=>{if(void 0===r.range)for(const e of this.model.selection.ranges)s_(this.model,e,o,{operation:a});else s_(this.model,r.range,o,{operation:a})})),yk(this)}toggleContextMenu(){var e;return!!this._menu.visible&&("open"===this._menu.state?(this._menu.hide(),!0):(this._menu.show({target:this.element.querySelector("[part=container]"),location:null!=(e=this.getCaretPoint())?e:void 0,onDismiss:()=>{var e;return null==(e=this.element)?void 0:e.focus()}}),!0))}getCaretPoint(){const e=Vw(this.field);return e?{x:e.x,y:e.y}:null}setCaretPoint(e,t){const n=oC(this,e,t,{bias:0});if(n<0)return!1;const i=this.model.position;return this.model.position=n,this.model.announce("move",i),yk(this),!0}getPrompt(e){const t=this.model.findAtom((t=>"prompt"===t.type&&t.placeholderId===e));return console.assert(void 0!==t,"MathLive 0.98.5: no prompts with matching ID found"),t}getPromptValue(e,t){const n=this.getPrompt(e);if(!n)return"";const i=this.model.offsetOf(n.firstChild),r=this.model.offsetOf(n.lastChild);return this.model.getValue(i,r,t)}getPrompts(e){return this.model.getAllAtoms().filter((t=>!("prompt"!==t.type||e&&(e.id&&t.placeholderId!==e.id||e.locked&&t.locked!==e.locked||"undefined"===e.correctness&&t.correctness||e.correctness&&t.correctness!==e.correctness)))).map((e=>e.placeholderId))}setPromptValue(e,t,n){if(void 0!==t){const i=this.getPrompt(e);if(!i)return void console.error(`MathLive 0.98.5: unknown prompt ${e}`);const r=this.model.getBranchRange(this.model.offsetOf(i),"body");this.model.setSelection(r),this.insert(t,rp(ip({},n),{insertionMode:"replaceSelection"}))}(null==n?void 0:n.silenceNotifications)&&(this.valueOnFocus=this.getValue()),yk(this)}setPromptState(e,t,n){const i=this.getPrompt(e);i?("undefined"===t?i.correctness=void 0:"string"==typeof t&&(i.correctness=t),"boolean"==typeof n&&(i.locked=n,i.captureSelection=n),yk(this)):console.error(`MathLive 0.98.5: unknown prompt ${e}`)}getPromptState(e){const t=this.getPrompt(e);return t?[t.correctness,t.locked]:(console.error(`MathLive 0.98.5: unknown prompt ${e}`),[void 0,!0])}getPromptRange(e){const t=this.getPrompt(e);return t?this.model.getBranchRange(this.model.offsetOf(t),"body"):(console.error(`MathLive 0.98.5: unknown prompt ${e}`),[0,0])}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(e){var t;this.undoManager.snapshot(e)&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(uC(this)),null==(t=this.host)||t.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"snapshot"}})))}stopCoalescingUndo(){this.undoManager.stopCoalescing(this.model.selection)}stopRecording(){this.undoManager.stopRecording()}startRecording(){this.undoManager.startRecording()}undo(){var e;this.undoManager.undo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(uC(this)),null==(e=this.host)||e.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}redo(){var e;this.undoManager.redo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(uC(this)),null==(e=this.host)||e.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}resetUndo(){var e;null==(e=this.undoManager)||e.reset()}onSelectionDidChange(){var e,t;const n=this.model;this.keyboardDelegate.setValue(n.getValue(this.model.selection,"latex-expanded"));{const t=n.at(n.position),i=null!=(e=t.mode)?e:o_(this.options);this.model.mode!==i&&("latex"===this.model.mode?(ik(this,"accept",{mode:i}),n.position=n.offsetOf(t)):this.switchMode(i))}null==(t=this.host)||t.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(uC(this)),xC(this)}onContentWillChange(e){var t,n,i;return null==(i=null==(n=this.host)?void 0:n.dispatchEvent(new InputEvent("beforeinput",rp(ip({},e),{data:e.data?e.data:null!=(t=e.inputType)?t:"",cancelable:!0,bubbles:!0,composed:!0}))))||i}onFocus(){!this.focusBlurInProgress&&this.blurred&&(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),wk(this,{interactive:!0}),this.valueOnFocus=this.model.getValue(),this.hasEditablePrompts&&!this.model.at(this.model.anchor).parentPrompt&&this.executeCommand("moveToNextPlaceholder"),this.focusBlurInProgress=!1)}onBlur(){var e,t,n;if(this.focusBlurInProgress||this.blurred)return;this.focusBlurInProgress=!0,this.stopCoalescingUndo(),this.blurred=!0,this.ariaLiveText.textContent="",ck(this),this.model.getValue()!==this.valueOnFocus&&(null==(e=this.host)||e.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),this.disconnectFromVirtualKeyboard(),null==(t=this.host)||t.dispatchEvent(new Event("blur",{bubbles:!1,composed:!0})),null==(n=this.host)||n.dispatchEvent(new UIEvent("focusout",{bubbles:!0,composed:!0})),yk(this),this.focusBlurInProgress=!1,wC();const i=new AbortController,r=i.signal;document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&document.addEventListener("visibilitychange",(()=>{Uw(this)&&"visible"===document.visibilityState&&this.focus({preventScroll:!0})}),{once:!0,signal:r})}),{once:!0,signal:r}),setTimeout((()=>i.abort()),100)}onInput(e){H_(this,e)}onKeystroke(e){return $_(this,e)}onCompositionStart(e){this.model.deleteAtoms(Lw(this.model.selection));const t=Vw(this.field);t&&requestAnimationFrame((()=>{wk(this),this.keyboardDelegate.moveTo(t.x,t.y-t.height)}))}onCompositionUpdate(e){!function(e,t){const n=e.at(e.position);if("composition"===n.type)n.value=t;else{const{caret:i}=n;n.caret=void 0;const r=new Ix(t,{mode:n.mode});r.caret=i,n.parent.addChildAfter(r,n),e.position+=1}}(this.model,e),yk(this)}onCompositionEnd(e){!function(e){const t=e.at(e.position);"composition"===t.type&&(t.parent.removeChild(t),e.position-=1)}(this.model),H_(this,e,{simulateKeystroke:!0})}onCut(e){this.isSelectionEditable?this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Zw.onCopy(this,e),ZP(this.model,Lw(this.model.selection),"deleteByCut"),this.snapshot("cut"),yk(this)):this.model.announce("plonk")}onCopy(e){Zw.onCopy(this,e)}onPaste(e){let t=this.isSelectionEditable;return t&&(t=Zw.onPaste(this.model.at(this.model.position).mode,this,e.clipboardData)),t||this.model.announce("plonk"),e.preventDefault(),e.stopPropagation(),t}onGeometryChange(){this._menu.hide(),lk(this),xC(this)}onWheel(e){const t=5*e.deltaX;if(!Number.isFinite(t)||0===t)return;const n=this.field;t<0&&0===n.scrollLeft||t>0&&n.offsetWidth+n.scrollLeft>=n.scrollWidth||(n.scrollBy({top:0,left:t}),e.preventDefault(),e.stopPropagation())}getHTMLElement(e){let t=e;for(;!t.id&&t.hasChildren;)t=e.children[0];return this.field.querySelector(`[data-atom-id="${t.id}"]`)}get context(){var e,t;return{registers:null!=(e=this.options.registers)?e:{},smartFence:this.smartFence,letterShapeStyle:this.letterShapeStyle,minFontScale:this.minFontScale,placeholderSymbol:null!=(t=this.options.placeholderSymbol)?t:"▢",colorMap:e=>this.colorMap(e),backgroundColorMap:e=>this.backgroundColorMap(e),getMacro:e=>ef(e,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}}(a.querySelector(":host > span"),rp(ip({},null!=(i=null==(n=WP.get(this))?void 0:n.options)?i:JP(this)),{eventSink:this,value:c})),!WP.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const t of Object.keys(e.optionsAttributes))this.upgradeProperty(QP(t))}if(null==(r=this._mathfield)?void 0:r.model){if(WP.has(this)){const e=this._mathfield,t=WP.get(this),n=t.menuItems;e.model.deferNotifications({content:!1,selection:!1},(()=>{const n=t.value;void 0!==n&&e.setValue(n),e.model.selection=t.selection,WP.delete(this)})),n&&(this.menuItems=n)}window.queueMicrotask((()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))})),mk()}else this._mathfield=null}disconnectedCallback(){var t,n;if(this.shadowRoot.host.removeEventListener("pointerdown",this,!0),!this._mathfield)return;window.queueMicrotask((()=>this.dispatchEvent(new Event("unmount",{cancelable:!1,bubbles:!0,composed:!0}))));const i=i_(this._mathfield.options,Object.keys(e.optionsAttributes).map((e=>QP(e))));WP.set(this,{value:this._mathfield.getValue(),selection:this._mathfield.model.selection,menuItems:null!=(n=null==(t=this._mathfield.menu)?void 0:t.menuItems)?n:void 0,options:i}),this._mathfield.dispose(),this._mathfield=null}upgradeProperty(e){if(this.hasOwnProperty(e)){const t=this[e];delete this[e],"readonly"!==e&&"read-only"!==e||(e="readOnly"),this[e]=t}}attributeChangedCallback(e,t,n){if(t===n)return;const i=null!==n;switch(e){case"contenteditable":yk(this._mathfield);break;case"disabled":this.disabled=i;break;case"read-only":case"readonly":this.readOnly=i}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(e){const t=Boolean(e);t?(this.setAttribute("readonly",""),eE()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(eE()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:t})}get disabled(){return this.hasAttribute("disabled")}set disabled(e){var t;const n=Boolean(e);n?this.setAttribute("disabled",""):this.removeAttribute("disabled"),eE()?this._internals.ariaDisabled=n?"true":"false":this.setAttribute("aria-disabled",n?"true":"false"),n&&(null==(t=this._mathfield)?void 0:t.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(e){this.setValue(e)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(e){this._setOptions({defaultMode:e})}get macros(){return this._getOption("macros")}set macros(e){this._setOptions({macros:e})}get registers(){const e=this;return new Proxy({},{get:(t,n)=>{if("string"==typeof n)return e._getOption("registers")[n]},set(t,n,i){return"string"==typeof n&&(e._setOptions({registers:rp(ip({},e._getOption("registers")),{[n]:i})}),!0)}})}set registers(e){this._setOptions({registers:e})}get colorMap(){return this._getOption("colorMap")}set colorMap(e){this._setOptions({colorMap:e})}get backgroundColorMap(){return this._getOption("backgroundColorMap")}set backgroundColorMap(e){this._setOptions({backgroundColorMap:e})}get letterShapeStyle(){return this._getOption("letterShapeStyle")}set letterShapeStyle(e){this._setOptions({letterShapeStyle:e})}get minFontScale(){return this._getOption("minFontScale")}set minFontScale(e){this._setOptions({minFontScale:e})}get smartMode(){return this._getOption("smartMode")}set smartMode(e){this._setOptions({smartMode:e})}get smartFence(){return this._getOption("smartFence")}set smartFence(e){this._setOptions({smartFence:e})}get smartSuperscript(){return this._getOption("smartSuperscript")}set smartSuperscript(e){this._setOptions({smartSuperscript:e})}get scriptDepth(){return this._getOption("scriptDepth")}set scriptDepth(e){this._setOptions({scriptDepth:e})}get removeExtraneousParentheses(){return this._getOption("removeExtraneousParentheses")}set removeExtraneousParentheses(e){this._setOptions({removeExtraneousParentheses:e})}get mathModeSpace(){return this._getOption("mathModeSpace")}set mathModeSpace(e){this._setOptions({mathModeSpace:e})}get placeholderSymbol(){return this._getOption("placeholderSymbol")}set placeholderSymbol(e){this._setOptions({placeholderSymbol:e})}get popoverPolicy(){return this._getOption("popoverPolicy")}set popoverPolicy(e){this._setOptions({popoverPolicy:e})}get environmentPopoverPolicy(){return this._getOption("environmentPopoverPolicy")}set environmentPopoverPolicy(e){this._setOptions({environmentPopoverPolicy:e})}get menuItems(){var e,t,n;return this._mathfield?null!=(e=this._mathfield.menu._menuItems.map((e=>e.menuItem)))?e:[]:null!=(n=null==(t=WP.get(this))?void 0:t.menuItems)?n:[]}set menuItems(e){var t;if(this._mathfield){const n=null==(t=this._mathfield.element)?void 0:t.querySelector("[part=menu-toggle]");n&&(n.style.display=0===e.length?"none":""),this._mathfield.menu.menuItems=e}WP.has(this)?WP.set(this,rp(ip({},WP.get(this)),{menuItems:e})):WP.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:JP(this),menuItems:e})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(e){this._setOptions({mathVirtualKeyboardPolicy:e})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(e){this._setOptions({inlineShortcuts:e})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(e){this._setOptions({inlineShortcutTimeout:e})}get keybindings(){return this._getOption("keybindings")}set keybindings(e){this._setOptions({keybindings:e})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(e){this._setOptions({onInlineShortcut:e})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(e){this._setOptions({onScrollIntoView:e})}get onExport(){return this._getOption("onExport")}set onExport(e){this._setOptions({onExport:e})}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOptions({readOnly:e})}get isSelectionEditable(){var e,t;return null!=(t=null==(e=this._mathfield)?void 0:e.isSelectionEditable)&&t}setPromptState(e,t,n){var i;null==(i=this._mathfield)||i.setPromptState(e,t,n)}getPromptState(e){var t,n;return null!=(n=null==(t=this._mathfield)?void 0:t.getPromptState(e))?n:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(e){this._setOptions({virtualKeyboardTargetOrigin:e})}get selection(){return this._mathfield?this._mathfield.model.selection:WP.has(this)?WP.get(this).selection:{ranges:[[0,0]],direction:"forward"}}set selection(e){if("number"==typeof e&&(e={ranges:[[e,e]]}),this._mathfield)return this._mathfield.model.selection=e,void yk(this._mathfield);WP.has(this)?WP.set(this,rp(ip({},WP.get(this)),{selection:e})):WP.set(this,{value:void 0,selection:e,options:JP(this),menuItems:void 0})}get selectionIsCollapsed(){const e=this.selection;return 1===e.ranges.length&&e.ranges[0][0]===e.ranges[0][1]}get position(){return this._mathfield?this._mathfield.model.position:WP.has(this)?WP.get(this).selection.ranges[0][0]:0}set position(e){this._mathfield&&(this._mathfield.model.position=e,yk(this._mathfield)),WP.has(this)?WP.set(this,rp(ip({},WP.get(this)),{selection:{ranges:[[e,e]]}})):WP.set(this,{value:void 0,selection:{ranges:[[e,e]]},options:JP(this),menuItems:void 0})}getOffsetDepth(e){var t,n;return this._mathfield?(null!=(n=null==(t=this._mathfield.model.at(e))?void 0:t.treeDepth)?n:2)-2:0}get lastOffset(){var e,t;return null!=(t=null==(e=this._mathfield)?void 0:e.model.lastOffset)?t:-1}};YP.version="0.98.5",YP._fontsDirectory="./fonts",YP._soundsDirectory="./sounds",YP.keypressVibration=!0,YP._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},YP._plonkSound="plonk.wav",YP.audioBuffers={},YP.createHTML=e=>e,YP._speechEngineRate="100%",YP._speechEngineVoice="Joanna",YP._textToSpeechMarkup="",YP._textToSpeechRules="mathlive",YP._textToSpeechRulesOptions={},YP.speakHook=function(e){var t,n;if(lp())if(window.MathfieldElement.speechEngine&&"local"!==window.MathfieldElement.speechEngine)if("amazon"===window.MathfieldElement.speechEngine)if("AWS"in window){const i=new window.AWS.Polly({apiVersion:"2016-06-10"}),r={OutputFormat:"mp3",VoiceId:null!=(t=window.MathfieldElement.speechEngineVoice)?t:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes(null!=(n=window.MathfieldElement.speechEngineVoice)?n:"Joanna")?"neural":"standard",Text:e,TextType:"ssml"};i.synthesizeSpeech(r,((e,t)=>{if(e)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${e}`);else if(null==t?void 0:t.AudioStream){const e=new Uint8Array(t.AudioStream),n=new Blob([e.buffer],{type:"audio/mpeg"}),i=URL.createObjectURL(n);new Audio(i).play().catch((e=>console.log(e)))}else console.log("polly.synthesizeSpeech():",t)}))}else console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else"google"===window.MathfieldElement.speechEngine&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.");else{const t=new SpeechSynthesisUtterance(e);window.speechSynthesis.speak(t)}else console.log("Speak:",e)},YP.readAloudHook=function(e,t){var n;if(!lp())return;if("amazon"!==window.MathfieldElement.speechEngine)return console.error("MathLive 0.98.5: Use Amazon TTS Engine for synchronized highlighting"),void("function"==typeof window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(t));if(!window.AWS)return void console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");const i=new window.AWS.Polly({apiVersion:"2016-06-10"}),r={OutputFormat:"json",VoiceId:null!=(n=window.MathfieldElement.speechEngineVoice)?n:"Joanna",Engine:"standard",Text:t,TextType:"ssml",SpeechMarkTypes:["ssml"]};oE().readAloudElement=e,i.synthesizeSpeech(r,((e,n)=>{if(e)return void console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${e}`);if(!(null==n?void 0:n.AudioStream))return void console.log("polly.synthesizeSpeech():",n);const o=new TextDecoder("utf-8").decode(new Uint8Array(n.AudioStream));oE().readAloudMarks=o.split("\n").map((e=>e?JSON.parse(e):{})),oE().readAloudTokens=[];for(const e of oE().readAloudMarks)e.value&&oE().readAloudTokens.push(e.value);oE().readAloudCurrentMark="",r.OutputFormat="mp3",r.SpeechMarkTypes=[],i.synthesizeSpeech(r,((e,n)=>{if(e)return void console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${t}") error:${e}`);if(!(null==n?void 0:n.AudioStream))return;const i=new Uint8Array(n.AudioStream),r=new Blob([i.buffer],{type:"audio/mpeg"}),o=URL.createObjectURL(r),a=oE();a.readAloudAudio?a.readAloudAudio.pause():(a.readAloudAudio=new Audio,a.readAloudAudio.addEventListener("ended",(()=>{const e=a.readAloudMathfield;a.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),e?(wk(e),a.readAloudElement=null,a.readAloudMathfield=null,a.readAloudTokens=[],a.readAloudMarks=[],a.readAloudCurrentMark=""):UP(a.readAloudElement)})),a.readAloudAudio.addEventListener("timeupdate",(()=>{let e="";const t=1e3*a.readAloudAudio.currentTime+100;for(const n of a.readAloudMarks)n.time{var t,n;const i=window.MathfieldElement.computeEngine;return null!=(n=null==(t=null==i?void 0:i.parse(e).domain)?void 0:t.isFunction)&&n};var XP=YP;function QP(e){return e.replace(/[^a-zA-Z\d]+(.)/g,((e,t)=>t.toUpperCase()))}function JP(e){const t={readOnly:!1},n=XP.optionsAttributes;return Object.keys(n).forEach((i=>{if(e.hasAttribute(i)){const r=e.getAttribute(i);"placeholder"===i?t.contentPlaceholder=null!=r?r:"":"boolean"===n[i]?t[QP(i)]=!0:"on/off"===n[i]?t[QP(i)]="on"===r||"off"!==r&&void 0:"number"===n[i]?t[QP(i)]=Number.parseFloat(null!=r?r:"0"):t[QP(i)]=r}})),t}function eE(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals)&&"role"in window.ElementInternals.prototype}var tE,nE,iE,rE=XP;if(lp()&&!(null==(tE=window.customElements)?void 0:tE.get("math-field"))){null!=window[nE=Symbol.for("io.cortexjs.mathlive")]||(window[nE]={});window[Symbol.for("io.cortexjs.mathlive")].version="0.98.5",window.MathfieldElement=XP,null==(iE=window.customElements)||iE.define("math-field",XP)}function oE(){var e;return null!=globalThis[e=Symbol.for("io.cortexjs.mathlive")]||(globalThis[e]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}kk({switchKeyboardLayer:function(e,t){const n=e_.singleton;return!!n&&(n.show(),Nk(),n.currentLayer=t,n.render(),n.focus(),!0)},toggleVirtualKeyboard:function(){const e=window.mathVirtualKeyboard;return e.visible?e.hide({animate:!0}):e.show({animate:!0}),!1},hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});var aE=(0,c.forwardRef)((function(e,t){var n=e.callback,i=e.showSaveButton,r=e.value,o=void 0===r?"":r,a=(0,c.useRef)(),s=function(e){a.current.setValue(a.current.getValue()+" "+e.value+" ")},l=[{key:"1",label:"快捷模板",children:(0,g.jsx)(dh.Z,{className:qd.lists,gutter:[10,10],children:[{name:"分数得分",value:"\\frac{x}{y}",children:[{name:"分数 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"导数 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"模算术 Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"根式角标",value:"\\sqrt{x}",children:[{name:"根式 Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"上下标 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"重音符及其他 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"极限对数",value:"\\lim_{x \\to 0}",children:[{name:"极限 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"对数指数 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"界限 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"三角函数",value:"\\sin a",children:[{name:"三角函数 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"反三角函数 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"双曲函数 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"反双曲函数 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"积分运算",value:"\\int_{a}^{b}",children:[{name:"积分 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"双重积分 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"三重积分 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"曲线积分 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"大型运算",value:"\\sum_{a}^{b}",children:[{name:"求和 Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"乘积余积 Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"并集交集 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"析取合取 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"括号取整",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"括号 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}].map((function(e,t){return(0,g.jsxs)(bd.Z,{flex:"110px",className:qd.item,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(xc,{value:"$$".concat(e.value,"$$")}),e.name]}),(0,g.jsx)("div",{className:qd.children,children:e.children.map((function(e,t){return(0,g.jsxs)("div",{children:[(0,g.jsx)("h1",{children:e.name}),(0,g.jsx)(dh.Z,{gutter:[10,10],children:e.data.map((function(e,t){return(0,g.jsx)(bd.Z,{onClick:function(){return s(e)},className:qd.diamond,children:(0,g.jsx)(xc,{value:"`$$"+e.value+"$$`"})},t)}))})]},t)}))})]})}))})},{key:"2",label:"公式模板",children:(0,g.jsx)(dh.Z,{className:qd.lists,gutter:[10,10],children:[{name:"代数",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:"\\left\\{\\begin{matrix} \r\n x=a + r\\text{cos}\\theta \\ \r\n y=b + r\\text{sin}\\theta \r\n\\end{matrix}\\right. "},{value:"\\begin{array}{l} \r\n \\text{对于方程形如:}x^{3}-1=0 \\ \r\n \\text{设}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r\n x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r\n x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r\n\\end{array} "},{value:"\\begin{array}{l} \r\n a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r\n \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r\n \\left\\{\\begin{matrix} \r\n \\Delta \\gt 0\\text{方程有两个不相等的实根} \\ \r\n \\Delta = 0\\text{方程有两个相等的实根} \\ \r\n \\Delta \\lt 0\\text{方程无实根} \r\n\\end{matrix}\\right. \r\n\\end{array} "},{value:"\\begin{array}{l} \r\n a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r\n \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r\n \\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r\n \\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r\n \\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r\n \\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r\n\\end{array} "}]}]},{name:"几何",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:"\\left.\\begin{matrix} \r\n a \\perp \\alpha \\ \r\n b \\perp \\alpha \r\n\\end{matrix}\\right\\}\\Rightarrow a \\parallel b"},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:"\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r\n \\Rightarrow a \\perp \\beta "},{value:"\\left.\\begin{matrix} \r\n a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r\n a \\parallel \\partial ,b \\parallel \\partial \r\n\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha "},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:"\\left.\\begin{matrix} \r\n m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r\n a \\perp m,a \\perp n \r\n\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha "},{value:"\\begin{array}{c} \r\n \\text{直角三角形中,直角边长a,b,斜边边长c} \\ \r\n a^{2}+b^{2}=c^{2} \r\n\\end{array}"}]}]},{name:"不等式",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:"\\begin{array}{c} \r\n a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r\n a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r\n\\end{array}"},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:"\\begin{array}{c} \r\n a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r\n \\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r\n\\end{array}"},{value:"\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r\n\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) "},{value:"\\begin{array}{c} \r\n a,b \\in R^{+} \\ \r\n \\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r\n \\left( \\text{当且仅当}a=b\\text{时取“}=\\text{”号}\\right) \r\n\\end{array}"},{value:"\\begin{array}{c} \r\n a,b \\in R \\ \r\n \\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r\n \\left( \\text{当且仅当}a=b\\text{时取“}=\\text{”号}\\right) \r\n\\end{array}"},{value:"\\begin{array}{c} \r\n H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r\n\\end{array}"}]}]},{name:"积分",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"三角",value:"e^{i \\theta}",children:[{name:"求和 Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"统计",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:"\\begin{array}{c} \r\n \\text{若}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r\n \\text{则}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r\n\\end{array}"},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:"\\begin{array}{c} \r\n P \\left( \\emptyset \\right) =0 \\\\ \r\n P \\left( S \\right) =1 \r\n\\end{array}"},{value:"\\begin{array}{c} \r\n \\forall A \\in S \\\\ \r\n P \\left( A \\right) \\ge 0 \r\n\\end{array}"},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:"\\begin{array}{c} \r\n S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r\n P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r\n\\end{array}"},{value:"\\begin{array}{c} \r\n P_{n}=n! \\\\ \r\n A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r\n\\end{array}"}]}]}].map((function(e,t){return(0,g.jsxs)(bd.Z,{flex:"110px",className:qd.item,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(xc,{value:"`$$"+e.value+"$$`"}),e.name]}),(0,g.jsx)("div",{className:qd.children,children:e.children.map((function(e,t){return(0,g.jsxs)("div",{children:[e.name&&(0,g.jsx)("h1",{children:e.name}),(0,g.jsx)(dh.Z,{gutter:[10,10],children:e.data.map((function(e,t){return(0,g.jsx)(bd.Z,{onClick:function(){return s(e)},className:qd.diamond,children:(0,g.jsx)(xc,{value:"`$$"+e.value+"$$`"})},t)}))})]},t)}))})]})}))})}],u=function(){var e=document.createElement("div");e.innerHTML=a.current.getValue();var t=e.innerText;return n&&n(t),t};return(0,c.useImperativeHandle)(t,(function(){return{getData:u}})),(0,g.jsxs)("div",{className:qd.mathWrap,children:[(0,g.jsx)(Wd.Z,{defaultActiveKey:"1",items:l}),(0,g.jsx)("math-field",{locale:"zh_cn",className:qd.mathField,placeholder:"请打开键盘,输入公式",ref:a,style:{width:800,marginTop:30,fontSize:18},children:o||""}),i&&(0,g.jsx)("div",{className:qd.button,children:(0,g.jsx)(Ml.ZP,{size:"large",onClick:u,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})})),sE=aE,lE="link",cE="upload-image",uE="add-flowchart",hE="draw-image",dE="code-block",pE="add-table",fE="------------",gE={default:fE,left:":".concat(fE),center:":".concat(fE,":"),right:"".concat(fE,":")};var mE="@▁▁@",vE=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function yE(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var bE=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",wE=Yl()(Yl()({},bE+"-B","bold"),bE+"-I","italic"),xE=Yl()(Yl()(Yl()(Yl()(Yl()(Yl()(Yl()(Yl()({},lE,"添加链接"),dE,"添加代码块"),cE,"添加图片"),hE,"添加画图"),uE,"插入流程图"),pE,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),SE=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,o=void 0===r?"100%":r,a=e.height,s=void 0===a?400:a,u=e.miniToolbar,h=void 0!==u&&u,d=e.isFocus,p=void 0!==d&&d,f=e.watch,m=e.insertTemp,v=e.mode,y=void 0===v?"markdown":v,b=e.id,x=void 0===b?"markdown-editor-id":b,S=e.showResizeBar,k=void 0!==S&&S,_=e.noStorage,C=void 0!==_&&_,P=e.showNullButton,E=void 0!==P&&P,M=e.showNullProgramButton,L=void 0!==M&&M,A=e.hidetoolBar,T=void 0!==A&&A,D=e.fullScreen,N=void 0!==D&&D,I=e.onBlur,B=e.onCMBeforeChange,R=e.onFullScreen,O=e.className,F=void 0===O?"":O,z=e.disablePaste,j=void 0!==z&&z,$=e.disabled,H=void 0!==$&&$,Z=e.disabledFill,K=void 0!==Z&&Z,G=e.placeholder,U=void 0===G?"":G,V=e.values,W=void 0===V?"":V,q=e.extraUse,Y=(0,c.useState)(null),X=l()(Y,2),Q=X[0],J=X[1],ee=(0,c.useState)(n),te=l()(ee,2),ne=te[0],ie=te[1],re=(0,c.useState)(f),oe=l()(re,2),ae=oe[0],se=oe[1],le=(0,c.useState)(N),ce=l()(le,2),ue=ce[0],he=ce[1],de=(0,c.useState)(""),pe=l()(de,2),fe=pe[0],ge=pe[1],me=(0,c.useState)(0),ve=l()(me,2),ye=ve[0],be=ve[1],we=(0,c.useState)(s),xe=l()(we,2),Se=xe[0],ke=xe[1],_e=(0,c.useState)(!1),Ce=l()(_e,2),Pe=(Ce[0],Ce[1]),Ee=(0,c.useState)(0),Me=l()(Ee,2),Le=Me[0],Ae=Me[1],Te=(0,c.useState)(0),De=l()(Te,2),Ne=De[0],Ie=De[1],Be=(0,c.useRef)(),Re=(0,c.useRef)(),Oe=(0,c.useRef)(),Fe=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;ie(W),null==Q||Q.setValue(W),window.scrollTo(0,e)}),[W]),(0,c.useEffect)((function(){null==R||R(ue)}),[ue]),(0,c.useEffect)((function(){if(Be.current){var e=function(e,n){if(!j){var i=n.clipboardData;if(i){var r=i.types.toString(),o=i.items;if("Files"===r||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==y)return;try{var a,s=o[1];"file"===(null===(a=o[0])||void 0===a?void 0:a.kind)&&(s=o[0]);var l=s.getAsFile(),c=l.name.split(".").pop();uh(l,(function(e){var n,i,r;e.id?(null==l||null===(n=l.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection('','')):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==l||null===(r=l.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?t.replaceSelection('').concat(l.name,"")):vE.includes(c)?t.replaceSelection('').concat(l.name,"")):t.replaceSelection("[".concat(l.name,"](/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){ec.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=Cc().fromTextArea(Be.current,{mode:y,lineNumbers:!h,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",U):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),r=n.getLine(i.line),o=r.charAt(i.ch-1),a=r.lastIndexOf("@▁@",i.ch),s=r.lastIndexOf("@▁▁@",i.ch),l=a>s?a:s,c=a>s?3:4;if(-1===mE.indexOf(o))return null;if(console.log("change1:",t,e,r,i,l,a,s,o),l>=0&&i.ch-l<5){var u=l+c;return n.replaceRange("",{line:i.line,ch:l},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),p&&t.focus(),t.on("paste",e),H&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),J(t),function(){t.off("paste",e)}}}),[]);var ze,je,$e,He=(0,c.useCallback)((function(){Re.current}),[Se,Re,ue]);(0,c.useEffect)((function(){if(Q){var e=function(){var e=new Rl.Z((function(e){var t,n=w()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(He(),Q.setSize("100%","100%"),Q.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(Be.current.parentElement),e}();return function(){var t,n;null!==(t=Be.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=Be.current)||void 0===n?void 0:n.parentElement)}}}),[Q,He]),(0,c.useEffect)((function(){if(Q){for(var e=[],t=function(){var t=l()(i[n],2),r=t[0],o=t[1],a=Yl()({},r,(function(){Ze(o)}));e.push(a),Q.addKeyMap(a)},n=0,i=Object.entries(wE);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(x);e>=ye+1e4&&(!t||t!==ne)&&(window.sessionStorage.setItem(x,ne),Pe(!0))}},je=1e4,$e=(0,c.useRef)(),(0,c.useEffect)((function(){$e.current=ze})),(0,c.useEffect)((function(){if(null!==je){var e=setInterval((function(){$e.current()}),je);return function(){return clearInterval(e)}}}),[je]),(0,c.useEffect)((function(){se(f)}),[Q,f]),(0,c.useEffect)((function(){Q&&p&&Q.focus()}),[Q,p]),(0,c.useEffect)((function(){if(ae&&Q){var e=function(e){var t=e.target;if(Fe.current){var n=t.scrollTop/t.scrollHeight;Fe.current.scrollTop=Fe.current.scrollHeight*n}},t=Q.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Q,ae]),(0,c.useEffect)((function(){if(Q&&B){var e=function(e,t){B(e,t)};return Q.on("beforeChange",e),function(){Q.off("beforeChange",e)}}}),[Q,B]),(0,c.useEffect)((function(){if(Q&&I){var e=function(){I(Q.getValue())};return Q.on("blur",e),function(){Q.off("blur",e)}}}),[Q,I]),(0,c.useEffect)((function(){if(Q){var e=function(e,t){var n=e.getValue();ie(n),be((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(L?i(n,We(n)):i(n))};return Q.on("change",e),function(){Q.off("change",e)}}}),[Q,i]),(0,c.useEffect)((function(){if(Q)if(null==n)Q.setValue(""),ie("");else{var e=window.scrollY||window.pageYOffset;n!==Q.getValue()&&(Q.setValue(n),ie(n),Q.setCursor(H?1:Q.lineCount(),0),window.scrollTo(0,e))}}),[Q,n]);var Ze=(0,c.useCallback)((function(e){var t=Q.getCursor(),n=Q.getSelection(),i=n.split("\n");switch(e){case"bold":return Q.replaceSelection("**"+n+"**"),""===n&&Q.setCursor(t.line,t.ch+2),Q.focus();case"italic":return Q.replaceSelection("*"+n+"*"),""===n&&Q.setCursor(t.line,t.ch+1),Q.focus();case"code":return Q.replaceSelection("`"+n+"`"),""===n&&Q.setCursor(t.line,t.ch+1),Q.focus();case"inline-latex":return ge("inline-latex"),Q.focus();case"latex":return Q.replaceSelection("```latex\n"+n+"\n```"),Q.setCursor(t.line+1,n.length+1),Q.focus();case"line-break":return Q.replaceSelection("
    \n"),Q.focus();case"list-ul":return""===n?Q.replaceSelection("- "+n):Q.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Q.focus();case"list-ol":return""===n?Q.replaceSelection("1. "+n):Q.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Q.focus();case"add-null-ch":return""===n&&Q.setCursor(t.line,t.ch),Q.replaceSelection("▁"),Q.focus();case"add-signal":return""===n&&Q.setCursor(t.line,t.ch),Q.replaceSelection("@▁@"),Q.focus();case"add-multiple":return""===n&&Q.setCursor(t.line,t.ch),Q.replaceSelection(mE),Q.focus();case"inster-template-1":return""===n&&Q.setCursor(t.line,t.ch),Q.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Q.focus();case"eraser":return Q.setValue(""),Q.focus();case"trigger-watch":return se(!ae),Q.focus();case"trigger-full-screen":return he(!ue),Q.focus();case lE:return void ge(lE);case dE:return void ge(dE);case cE:return void ge(cE);case hE:return void ge(hE);case"maths-latex":return void ge("maths-latex");case uE:return void ge(uE);case pE:return void ge(pE);default:throw new Error}}),[Q,ae,ue]),Ke=(0,c.useCallback)((function(e,t){var n,i,r,o,a;switch(ge(""),fe){case lE:var s=e.title,l=e.link;return Q.replaceSelection("[".concat(s,"](").concat(l,")")),Q.focus();case dE:var c=e.language,u=e.content;return Q.replaceSelection(["```"+c,u,"```"].join("\n")),Q.focus();case"maths-latex":for(var h=atob(e),d=new Uint8Array(h.length),p=0;p-1||null==m||!m.type?null!=m&&m.align||null!=m&&m.width?Q.replaceSelection('

    ').concat(g||

    ')):Q.replaceSelection('').concat(g||')):(null==m||null===(o=m.type)||void 0===o?void 0:o.indexOf("video"))>-1?Q.replaceSelection('')):(null==m||null===(a=m.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Q.replaceSelection('').concat(m.name,"")):vE.includes(v)?Q.replaceSelection('').concat(m.name,"")):Q.replaceSelection("[".concat(m.name,"](").concat(f,")")),Q.focus();case pE:for(var y=e.row,b=e.col,w=e.align,x="\n",S=0;S300&&(t=300),ke(s+t+"px")}},i=Oe.current,r=!1,o=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Q,Oe]),(0,c.useEffect)((function(){ke(s)}),[s]);var Ve={width:yE(o),height:yE(Se)},We=((0,c.useMemo)((function(){if(ye){var e=new Date(ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[ye]),function(e){var t=[];if(L){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){xE[fe]&&fe!==hE&&fe!==uE&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;Ae(t),Ie(n)}),0)}),[fe]);var qe=function(e,t,n,i){var r=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&n>e||e>o-20&&nt||t>r-20&&i0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var i=e.data[t];Array.isArray(i)?i.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,i)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),i=new Error(n);return i.status=t.status,i.method=e.method,i.url=e.action,i}(e,t),IE(t)):e.onSuccess(IE(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var i=e.headers||{};return null!==i["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(i).forEach((function(e){null!==i[e]&&t.setRequestHeader(e,i[e])})),t.send(n),{abort:function(){t.abort()}}}var RE=function(){var e=(0,TE.Z)((0,AE.Z)().mark((function e(t,n){var i,r,o,a,s,l,c,u;return(0,AE.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l=function(){return(l=(0,TE.Z)((0,AE.Z)().mark((function e(t){return(0,AE.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){t.file((function(i){n(i)?(t.fullPath&&!i.webkitRelativePath&&(Object.defineProperties(i,{webkitRelativePath:{writable:!0}}),i.webkitRelativePath=t.fullPath.replace(/^\//,""),Object.defineProperties(i,{webkitRelativePath:{writable:!1}})),e(i)):e(null)}))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)},s=function(e){return l.apply(this,arguments)},a=function(){return a=(0,TE.Z)((0,AE.Z)().mark((function e(t){var n,i,r,o,a;return(0,AE.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.createReader(),i=[];case 2:return e.next=5,new Promise((function(e){n.readEntries(e,(function(){return e([])}))}));case 5:if(r=e.sent,o=r.length){e.next=9;break}return e.abrupt("break",12);case 9:for(a=0;a{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${(0,ju.bf)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${(0,ju.bf)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n &:not(${t}-disabled):hover,\n &-hover:not(${t}-disabled)\n `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${(0,ju.bf)(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}};var XE=e=>{const{componentCls:t,iconCls:n,fontSize:i,lineHeight:r,calc:o}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,Ku.dF)()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:o(e.lineHeight).mul(i).equal(),marginTop:e.marginXS,fontSize:i,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},Ku.vS),{padding:`0 ${(0,ju.bf)(e.paddingXS)}`,lineHeight:r,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n ${l}:focus-visible,\n &.picture ${l}\n `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:i},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:o(i).add(e.paddingXS).equal(),fontSize:i,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},QE=n(99495);var JE=e=>{const{componentCls:t}=e,n=new ju.E4("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=new ju.E4("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${r}-appear, ${r}-enter, ${r}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${r}-appear, ${r}-enter`]:{animationName:n},[`${r}-leave`]:{animationName:i}}},{[`${t}-wrapper`]:(0,QE.J$)(e)},n,i]},eM=n(68361);const tM=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:i,uploadProgressOffset:r,calc:o}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`\n ${a}${a}-picture,\n ${a}${a}-picture-card,\n ${a}${a}-picture-circle\n `]:{[s]:{position:"relative",height:o(i).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${(0,ju.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Ku.vS),{width:i,height:i,lineHeight:(0,ju.bf)(o(i).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:r,width:`calc(100% - ${(0,ju.bf)(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(i).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${eM.iN[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${eM.iN.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:r}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},nM=e=>{const{componentCls:t,iconCls:n,fontSizeLG:i,colorTextLightSolid:r,calc:o}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},(0,Ku.dF)()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${(0,ju.bf)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,ju.bf)(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,ju.bf)(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n ${n}-eye,\n ${n}-download,\n ${n}-delete\n `]:{zIndex:10,width:i,margin:`0 ${(0,ju.bf)(e.marginXXS)}`,fontSize:i,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:r,"&:hover":{color:r},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${(0,ju.bf)(o(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${(0,ju.bf)(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var iM=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};const rM=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,Ku.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}};var oM=(0,Uu.I$)("Upload",(e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:i,controlHeightLG:r,calc:o}=e,a=(0,Vu.IX)(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(i).equal(),uploadPicCardSize:o(r).mul(2.55).equal()});return[rM(a),YE(a),tM(a),nM(a),XE(a),JE(a),iM(a),(0,qE.Z)(a)]}),(e=>({actionsColor:e.colorTextDescription}))),aM={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},sM=function(e,t){return c.createElement(Tl.Z,(0,Ll.Z)({},e,{ref:t,icon:aM}))};var lM=c.forwardRef(sM),cM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},uM=function(e,t){return c.createElement(Tl.Z,(0,Ll.Z)({},e,{ref:t,icon:cM}))};var hM=c.forwardRef(uM),dM={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},pM=function(e,t){return c.createElement(Tl.Z,(0,Ll.Z)({},e,{ref:t,icon:dM}))};var fM=c.forwardRef(pM),gM=n(77900),mM=n(2738),vM=n(40192),yM=n(86641),bM=n(22703);function wM(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function xM(e,t){const n=(0,CE.Z)(t),i=n.findIndex((t=>{let{uid:n}=t;return n===e.uid}));return-1===i?n.push(e):n[i]=e,n}function SM(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}const kM=e=>0===e.indexOf("image/"),_M=e=>{if(e.type&&!e.thumbUrl)return kM(e.type);const t=e.thumbUrl||e.url||"",n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},CM=200;function PM(e){return new Promise((t=>{if(!e.type||!kM(e.type))return void t("");const n=document.createElement("canvas");n.width=CM,n.height=CM,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const i=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:e,height:o}=r;let a=CM,s=CM,l=0,c=0;e>o?(s=o*(CM/e),c=-(s-a)/2):(a=e*(CM/o),l=-(a-s)/2),i.drawImage(r,l,c,a,s);const u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(r.src),t(u)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(r.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)}))}var EM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},MM=function(e,t){return c.createElement(Tl.Z,(0,Ll.Z)({},e,{ref:t,icon:EM}))};var LM=c.forwardRef(MM),AM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},TM=function(e,t){return c.createElement(Tl.Z,(0,Ll.Z)({},e,{ref:t,icon:AM}))};var DM=c.forwardRef(TM),NM=n(15277),IM=n(29679),BM=n(40001),RM=n(19248),OM=n(99267),FM={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},zM=function(){var e=(0,c.useRef)([]),t=(0,c.useRef)(null);return(0,c.useEffect)((function(){var n=Date.now(),i=!1;e.current.forEach((function(e){if(e){i=!0;var r=e.style;r.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(r.transitionDuration="0s, 0s")}})),i&&(t.current=Date.now())})),e.current};var jM=n(47273),$M=0,HM=(0,jM.Z)();var ZM=function(e){var t=c.useState(),n=(0,Xc.Z)(t,2),i=n[0],r=n[1];return c.useEffect((function(){var e;r("rc_progress_".concat((HM?(e=$M,$M+=1):e="TEST_OR_SSR",e)))}),[]),e||i},KM=function(e){var t=e.bg,n=e.children;return c.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function GM(e,t){return Object.keys(e).map((function(n){var i=parseFloat(n),r="".concat(Math.floor(i*t),"%");return"".concat(e[n]," ").concat(r)}))}var UM=c.forwardRef((function(e,t){var n=e.prefixCls,i=e.color,r=e.gradientId,o=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,u=e.strokeWidth,h=e.size,d=e.gapDegree,p=i&&"object"===(0,Yc.Z)(i),f=p?"#FFF":void 0,g=h/2,m=c.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:g,cy:g,stroke:f,strokeLinecap:l,strokeWidth:u,opacity:0===s?0:1,style:a,ref:t});if(!p)return m;var v="".concat(r,"-conic"),y=d?"".concat(180+d/2,"deg"):"0deg",b=GM(i,(360-d)/360),w=GM(i,1),x="conic-gradient(from ".concat(y,", ").concat(b.join(", "),")"),S="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(w.join(", "),")");return c.createElement(c.Fragment,null,c.createElement("mask",{id:v},m),c.createElement("foreignObject",{x:0,y:0,width:h,height:h,mask:"url(#".concat(v,")")},c.createElement(KM,{bg:S},c.createElement(KM,{bg:x}))))}));var VM=UM,WM=100,qM=function(e,t,n,i,r,o,a,s,l,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,h=n/100*360*((360-o)/360),d=0===o?0:{bottom:0,top:180,left:90,right:-90}[a],p=(100-i)/100*t;"round"===l&&100!==i&&(p+=c/2)>=t&&(p=t-.01);var f=50;return{stroke:"string"==typeof s?s:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:p+u,transform:"rotate(".concat(r+h+d,"deg)"),transformOrigin:"".concat(f,"px ").concat(f,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},YM=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function XM(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var QM=function(e){var t,n,i,r=(0,LE.Z)((0,LE.Z)({},FM),e),o=r.id,a=r.prefixCls,s=r.steps,l=r.strokeWidth,u=r.trailWidth,h=r.gapDegree,d=void 0===h?0:h,p=r.gapPosition,g=r.trailColor,m=r.strokeLinecap,v=r.style,y=r.className,b=r.strokeColor,w=r.percent,x=(0,Qc.Z)(r,YM),S=ZM(o),k="".concat(S,"-gradient"),_=50-l/2,C=2*Math.PI*_,P=d>0?90+d/2:-90,E=C*((360-d)/360),M="object"===(0,Yc.Z)(s)?s:{count:s,gap:2},L=M.count,A=M.gap,T=XM(w),D=XM(b),N=D.find((function(e){return e&&"object"===(0,Yc.Z)(e)})),I=N&&"object"===(0,Yc.Z)(N)?"butt":m,B=qM(C,E,0,100,P,d,p,g,I,l),R=zM();return c.createElement("svg",(0,Ll.Z)({className:f()("".concat(a,"-circle"),y),viewBox:"0 0 ".concat(WM," ").concat(WM),style:v,id:o,role:"presentation"},x),!L&&c.createElement("circle",{className:"".concat(a,"-circle-trail"),r:_,cx:50,cy:50,stroke:g,strokeLinecap:I,strokeWidth:u||l,style:B}),L?(t=Math.round(L*(T[0]/100)),n=100/L,i=0,new Array(L).fill(null).map((function(e,r){var o=r<=t-1?D[0]:g,s=o&&"object"===(0,Yc.Z)(o)?"url(#".concat(k,")"):void 0,u=qM(C,E,i,n,P,d,p,o,"butt",l,A);return i+=100*(E-u.strokeDashoffset+A)/E,c.createElement("circle",{key:r,className:"".concat(a,"-circle-path"),r:_,cx:50,cy:50,stroke:s,strokeWidth:l,opacity:1,style:u,ref:function(e){R[r]=e}})}))):function(){var e=0;return T.map((function(t,n){var i=D[n]||D[D.length-1],r=qM(C,E,e,t,P,d,p,i,I,l);return e+=t,c.createElement(VM,{key:n,color:i,ptg:t,radius:_,prefixCls:a,gradientId:k,style:r,strokeLinecap:I,strokeWidth:l,gapDegree:d,ref:function(e){R[n]=e},size:WM})})).reverse()}())};function JM(e){return!e||e<0?0:e>100?100:e}function eL(e){let{success:t,successPercent:n}=e,i=n;return t&&"progress"in t&&(i=t.progress),t&&"percent"in t&&(i=t.percent),i}const tL=(e,t,n)=>{var i,r,o,a;let s=-1,l=-1;if("step"===t){const t=n.steps,i=n.strokeWidth;"string"==typeof e||void 0===e?(s="small"===e?2:14,l=null!=i?i:8):"number"==typeof e?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?l=t||("small"===e?6:8):"number"==typeof e?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[s,l]="small"===e?[60,60]:[120,120]:"number"==typeof e?[s,l]=[e,e]:Array.isArray(e)&&(s=null!==(r=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==r?r:120,l=null!==(a=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==a?a:120));return[s,l]};var nL=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:i="round",gapPosition:r,gapDegree:o,width:a=120,type:s,children:l,success:u,size:h=a,steps:d}=e,[p,g]=tL(h,"circle");let{strokeWidth:m}=e;void 0===m&&(m=Math.max((e=>3/e*100)(p),6));const v={width:p,height:g,fontSize:.15*p+6},y=c.useMemo((()=>o||0===o?o:"dashboard"===s?75:void 0),[o,s]),b=(e=>{let{percent:t,success:n,successPercent:i}=e;const r=JM(eL({success:n,successPercent:i}));return[r,JM(JM(t)-r)]})(e),w=r||"dashboard"===s&&"bottom"||void 0,x="[object Object]"===Object.prototype.toString.call(e.strokeColor),S=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:i}=t;return[i||eM.ez.green,n||null]})({success:u,strokeColor:e.strokeColor}),k=f()(`${t}-inner`,{[`${t}-circle-gradient`]:x}),_=c.createElement(QM,{steps:d,percent:d?b[1]:b,strokeWidth:m,trailWidth:m,strokeColor:d?S[1]:S,strokeLinecap:i,trailColor:n,prefixCls:t,gapDegree:y,gapPosition:w}),C=p<=20,P=c.createElement("div",{className:k,style:v},_,!C&&l);return C?c.createElement(tc.Z,{title:l},P):P};const iL="--progress-line-stroke-color",rL="--progress-percent",oL=e=>{const t=e?"100%":"-100%";return new ju.E4(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},aL=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,Ku.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${iL})`]},height:"100%",width:`calc(1 / var(${rL}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,ju.bf)(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:oL(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:oL(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},sL=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},lL=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},cL=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}};var uL=(0,Uu.I$)("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=(0,Vu.IX)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[aL(n),sL(n),lL(n),cL(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"}))),hL=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{from:n=eM.ez.blue,to:i=eM.ez.blue,direction:r=("rtl"===t?"to left":"to right")}=e,o=hL(e,["from","to","direction"]);if(0!==Object.keys(o).length){const e=(e=>{let t=[];return Object.keys(e).forEach((n=>{const i=parseFloat(n.replace(/%/g,""));Number.isNaN(i)||t.push({key:i,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(o),t=`linear-gradient(${r}, ${e})`;return{background:t,[iL]:t}}const a=`linear-gradient(${r}, ${n}, ${i})`;return{background:a,[iL]:a}};var pL=e=>{const{prefixCls:t,direction:n,percent:i,size:r,strokeWidth:o,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:u=null,percentPosition:h,success:d}=e,{align:p,type:g}=h,m=a&&"string"!=typeof a?dL(a,n):{[iL]:a,background:a},v="square"===s||"butt"===s?0:void 0,y=null!=r?r:[-1,o||("small"===r?6:8)],[b,w]=tL(y,"line",{strokeWidth:o});const x={backgroundColor:u||void 0,borderRadius:v},S=Object.assign(Object.assign({width:`${JM(i)}%`,height:w,borderRadius:v},m),{[rL]:JM(i)/100}),k=eL(e),_={width:`${JM(k)}%`,height:w,borderRadius:v,backgroundColor:null==d?void 0:d.strokeColor},C={width:b<0?"100%":b},P=c.createElement("div",{className:`${t}-inner`,style:x},c.createElement("div",{className:f()(`${t}-bg`,`${t}-bg-${g}`),style:S},"inner"===g&&l),void 0!==k&&c.createElement("div",{className:`${t}-success-bg`,style:_})),E="outer"===g&&"start"===p,M="outer"===g&&"end"===p;return"outer"===g&&"center"===p?c.createElement("div",{className:`${t}-layout-bottom`},P,l):c.createElement("div",{className:`${t}-outer`,style:C},E&&l,P,M&&l)};var fL=e=>{const{size:t,steps:n,rounding:i=Math.round,percent:r=0,strokeWidth:o=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:u}=e,h=i(n*(r/100)),d=null!=t?t:["small"===t?2:14,o],[p,g]=tL(d,"step",{steps:n,strokeWidth:o}),m=p/n,v=Array.from({length:n});for(let e=0;e{const{prefixCls:n,className:i,rootClassName:r,steps:o,strokeColor:a,percent:s=0,size:l="default",showInfo:u=!0,type:h="line",status:d,format:p,style:g,percentPosition:m={}}=e,v=gL(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:b="outer"}=m,w=Array.isArray(a)?a[0]:a,x="string"==typeof a||Array.isArray(a)?a:void 0,S=c.useMemo((()=>{if(w){const e="string"==typeof w?w:Object.values(w)[0];return new Wu.t(e).isLight()}return!1}),[a]),k=c.useMemo((()=>{var t,n;const i=eL(e);return parseInt(void 0!==i?null===(t=null!=i?i:0)||void 0===t?void 0:t.toString():null===(n=null!=s?s:0)||void 0===n?void 0:n.toString(),10)}),[s,e.success,e.successPercent]),_=c.useMemo((()=>!mL.includes(d)&&k>=100?"success":d||"normal"),[d,k]),{getPrefixCls:C,direction:P,progress:E}=c.useContext(Du.E_),M=C("progress",n),[L,A,T]=uL(M),D="line"===h,N=D&&!o,I=c.useMemo((()=>{if(!u)return null;const t=eL(e);let n;const i=D&&S&&"inner"===b;return"inner"===b||p||"exception"!==_&&"success"!==_?n=(p||(e=>`${e}%`))(JM(s),JM(t)):"exception"===_?n=D?c.createElement(RM.Z,null):c.createElement(OM.Z,null):"success"===_&&(n=D?c.createElement(IM.Z,null):c.createElement(BM.Z,null)),c.createElement("span",{className:f()(`${M}-text`,{[`${M}-text-bright`]:i,[`${M}-text-${y}`]:N,[`${M}-text-${b}`]:N}),title:"string"==typeof n?n:void 0},n)}),[u,s,k,_,h,M,p]);let B;"line"===h?B=o?c.createElement(fL,Object.assign({},e,{strokeColor:x,prefixCls:M,steps:"object"==typeof o?o.count:o}),I):c.createElement(pL,Object.assign({},e,{strokeColor:w,prefixCls:M,direction:P,percentPosition:{align:y,type:b}}),I):"circle"!==h&&"dashboard"!==h||(B=c.createElement(nL,Object.assign({},e,{strokeColor:w,prefixCls:M,progressStatus:_}),I));const R=f()(M,`${M}-status-${_}`,{[`${M}-${"dashboard"===h?"circle":h}`]:"line"!==h,[`${M}-inline-circle`]:"circle"===h&&tL(l,"circle")[0]<=20,[`${M}-line`]:N,[`${M}-line-align-${y}`]:N,[`${M}-line-position-${b}`]:N,[`${M}-steps`]:o,[`${M}-show-info`]:u,[`${M}-${l}`]:"string"==typeof l,[`${M}-rtl`]:"rtl"===P},null==E?void 0:E.className,i,r,A,T);return L(c.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==E?void 0:E.style),g),className:R,role:"progressbar","aria-valuenow":k,"aria-valuemin":0,"aria-valuemax":100},(0,mM.Z)(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),B))}));var yL=vL;const bL=c.forwardRef(((e,t)=>{let{prefixCls:n,className:i,style:r,locale:o,listType:a,file:s,items:l,progress:u,iconRender:h,actionIconRender:d,itemRender:p,isImgUrl:g,showPreviewIcon:m,showRemoveIcon:v,showDownloadIcon:y,previewIcon:b,removeIcon:w,downloadIcon:x,extra:S,onPreview:k,onDownload:_,onClose:C}=e;var P,E;const{status:M}=s,[L,A]=c.useState(M);c.useEffect((()=>{"removed"!==M&&A(M)}),[M]);const[T,D]=c.useState(!1);c.useEffect((()=>{const e=setTimeout((()=>{D(!0)}),300);return()=>{clearTimeout(e)}}),[]);const N=h(s);let I=c.createElement("div",{className:`${n}-icon`},N);if("picture"===a||"picture-card"===a||"picture-circle"===a)if("uploading"===L||!s.thumbUrl&&!s.url){const e=f()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:"uploading"!==L});I=c.createElement("div",{className:e},N)}else{const e=(null==g?void 0:g(s))?c.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):N,t=f()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(s)});I=c.createElement("a",{className:t,onClick:e=>k(s,e),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const B=f()(`${n}-list-item`,`${n}-list-item-${L}`),R="string"==typeof s.linkProps?JSON.parse(s.linkProps):s.linkProps,O=("function"==typeof v?v(s):v)?d(("function"==typeof w?w(s):w)||c.createElement(LM,null),(()=>C(s)),n,o.removeFile,!0):null,F=("function"==typeof y?y(s):y)&&"done"===L?d(("function"==typeof x?x(s):x)||c.createElement(DM,null),(()=>_(s)),n,o.downloadFile):null,z="picture-card"!==a&&"picture-circle"!==a&&c.createElement("span",{key:"download-delete",className:f()(`${n}-list-item-actions`,{picture:"picture"===a})},F,O),j="function"==typeof S?S(s):S,$=j&&c.createElement("span",{className:`${n}-list-item-extra`},j),H=f()(`${n}-list-item-name`),Z=s.url?c.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:H,title:s.name},R,{href:s.url,onClick:e=>k(s,e)}),s.name,$):c.createElement("span",{key:"view",className:H,onClick:e=>k(s,e),title:s.name},s.name,$),K=("function"==typeof m?m(s):m)&&(s.url||s.thumbUrl)?c.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>k(s,e),title:o.previewFile},"function"==typeof b?b(s):b||c.createElement(NM.Z,null)):null,G=("picture-card"===a||"picture-circle"===a)&&"uploading"!==L&&c.createElement("span",{className:`${n}-list-item-actions`},K,"done"===L&&F,O),{getPrefixCls:U}=c.useContext(Du.E_),V=U(),W=c.createElement("div",{className:B},I,Z,z,G,T&&c.createElement(gM.ZP,{motionName:`${V}-fade`,visible:"uploading"===L,motionDeadline:2e3},(e=>{let{className:t}=e;const i="percent"in s?c.createElement(yL,Object.assign({},u,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return c.createElement("div",{className:f()(`${n}-list-item-progress`,t)},i)}))),q=s.response&&"string"==typeof s.response?s.response:(null===(P=s.error)||void 0===P?void 0:P.statusText)||(null===(E=s.error)||void 0===E?void 0:E.message)||o.uploadError,Y="error"===L?c.createElement(tc.Z,{title:q,getPopupContainer:e=>e.parentNode},W):W;return c.createElement("div",{className:f()(`${n}-list-item-container`,i),style:r,ref:t},p?p(Y,s,l,{download:_.bind(null,s),preview:k.bind(null,s),remove:C.bind(null,s)}):Y)}));var wL=bL;const xL=(e,t)=>{const{listType:n="text",previewFile:i=PM,onPreview:r,onDownload:o,onRemove:a,locale:s,iconRender:l,isImageUrl:u=_M,prefixCls:h,items:d=[],showPreviewIcon:p=!0,showRemoveIcon:g=!0,showDownloadIcon:m=!1,removeIcon:v,previewIcon:y,downloadIcon:b,extra:w,progress:x={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:k=!0,itemRender:_,disabled:C}=e,P=(0,vM.Z)(),[E,M]=c.useState(!1),L=["picture-card","picture-circle"].includes(n);c.useEffect((()=>{n.startsWith("picture")&&(d||[]).forEach((e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null==i||i(e.originFileObj).then((t=>{e.thumbUrl=t||"",P()})))}))}),[n,d,i]),c.useEffect((()=>{M(!0)}),[]);const A=(e,t)=>{if(r)return null==t||t.preventDefault(),r(e)},T=e=>{"function"==typeof o?o(e):e.url&&window.open(e.url)},D=e=>{null==a||a(e)},N=e=>{if(l)return l(e,n);const t="uploading"===e.status;if(n.startsWith("picture")){const i="picture"===n?c.createElement(Ed.Z,null):s.uploading,r=(null==u?void 0:u(e))?c.createElement(fM,null):c.createElement(lM,null);return t?i:r}return t?c.createElement(Ed.Z,null):c.createElement(hM,null)},I=(e,t,n,i,r)=>{const o={type:"text",size:"small",title:i,onClick:n=>{var i,r;t(),c.isValidElement(e)&&(null===(r=(i=e.props).onClick)||void 0===r||r.call(i,n))},className:`${n}-list-item-action`};return r&&(o.disabled=C),c.isValidElement(e)?c.createElement(Ml.ZP,Object.assign({},o,{icon:(0,bM.Tm)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):c.createElement(Ml.ZP,Object.assign({},o),c.createElement("span",null,e))};c.useImperativeHandle(t,(()=>({handlePreview:A,handleDownload:T})));const{getPrefixCls:B}=c.useContext(Du.E_),R=B("upload",h),O=B(),F=f()(`${R}-list`,`${R}-list-${n}`),z=c.useMemo((()=>(0,mM.Z)((0,yM.Z)(O),["onAppearEnd","onEnterEnd","onLeaveEnd"])),[O]),j=Object.assign(Object.assign({},L?{}:z),{motionDeadline:2e3,motionName:`${R}-${L?"animate-inline":"animate"}`,keys:(0,CE.Z)(d.map((e=>({key:e.uid,file:e})))),motionAppear:E});return c.createElement("div",{className:F},c.createElement(gM.V4,Object.assign({},j,{component:!1}),(e=>{let{key:t,file:i,className:r,style:o}=e;return c.createElement(wL,{key:t,locale:s,prefixCls:R,className:r,style:o,file:i,items:d,progress:x,listType:n,isImgUrl:u,showPreviewIcon:p,showRemoveIcon:g,showDownloadIcon:m,removeIcon:v,previewIcon:y,downloadIcon:b,extra:w,iconRender:N,actionIconRender:I,itemRender:_,onPreview:A,onDownload:T,onClose:D})})),S&&c.createElement(gM.ZP,Object.assign({},j,{visible:k,forceRender:!0}),(e=>{let{className:t,style:n}=e;return(0,bM.Tm)(S,(e=>({className:f()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)})))})))};var SL=c.forwardRef(xL),kL=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};const _L=`__LIST_IGNORE_${Date.now()}__`,CL=(e,t)=>{const{fileList:n,defaultFileList:i,onRemove:r,showUploadList:o=!0,listType:a="text",onPreview:s,onDownload:l,onChange:u,onDrop:h,previewFile:d,disabled:p,locale:g,iconRender:m,isImageUrl:v,progress:y,prefixCls:b,className:w,type:x="select",children:S,style:k,itemRender:_,maxCount:C,data:P={},multiple:E=!1,hasControlInside:M=!0,action:L="",accept:A="",supportServerRender:T=!0,rootClassName:D}=e,N=c.useContext(Iu.Z),I=null!=p?p:N,[B,R]=(0,Md.Z)(i||[],{value:n,postState:e=>null!=e?e:[]}),[O,F]=c.useState("drop"),z=c.useRef(null),j=c.useRef(null);c.useMemo((()=>{const e=Date.now();(n||[]).forEach(((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)}))}),[n]);const $=(e,t,n)=>{let i=(0,CE.Z)(t),r=!1;1===C?i=i.slice(-1):C&&(r=i.length>C,i=i.slice(0,C)),(0,Ic.flushSync)((()=>{R(i)}));const o={file:e,fileList:i};n&&(o.event=n),r&&"removed"!==e.status&&!i.some((t=>t.uid===e.uid))||(0,Ic.flushSync)((()=>{null==u||u(o)}))},H=e=>{const t=e.filter((e=>!e.file[_L]));if(!t.length)return;const n=t.map((e=>wM(e.file)));let i=(0,CE.Z)(B);n.forEach((e=>{i=xM(e,i)})),n.forEach(((e,n)=>{let r=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(e){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,r=n}$(r,i)}))},Z=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!SM(t,B))return;const i=wM(t);i.status="done",i.percent=100,i.response=e,i.xhr=n;const r=xM(i,B);$(i,r)},K=(e,t)=>{if(!SM(t,B))return;const n=wM(t);n.status="uploading",n.percent=e.percent;const i=xM(n,B);$(n,i,e)},G=(e,t,n)=>{if(!SM(n,B))return;const i=wM(n);i.error=e,i.response=t,i.status="error";const r=xM(i,B);$(i,r)},U=e=>{let t;Promise.resolve("function"==typeof r?r(e):r).then((n=>{var i;if(!1===n)return;const r=function(e,t){const n=void 0!==e.uid?"uid":"name",i=t.filter((t=>t[n]!==e[n]));return i.length===t.length?null:i}(e,B);r&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==B||B.forEach((e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(i=z.current)||void 0===i||i.abort(t),$(t,r))}))},V=e=>{F(e.type),"drop"===e.type&&(null==h||h(e))};c.useImperativeHandle(t,(()=>({onBatchStart:H,onSuccess:Z,onProgress:K,onError:G,fileList:B,upload:z.current,nativeElement:j.current})));const{getPrefixCls:W,direction:q,upload:Y}=c.useContext(Du.E_),X=W("upload",b),Q=Object.assign(Object.assign({onBatchStart:H,onError:G,onProgress:K,onSuccess:Z},e),{data:P,multiple:E,action:L,accept:A,supportServerRender:T,prefixCls:X,disabled:I,beforeUpload:(t,n)=>kL(void 0,void 0,void 0,(function*(){const{beforeUpload:i,transformFile:r}=e;let o=t;if(i){const e=yield i(t,n);if(!1===e)return!1;if(delete t[_L],e===_L)return Object.defineProperty(t,_L,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(o=e)}return r&&(o=yield r(o)),o})),onChange:void 0,hasControlInside:M});delete Q.className,delete Q.style,S&&!I||delete Q.id;const J=`${X}-wrapper`,[ee,te,ne]=oM(X,J),[ie]=(0,VE.Z)("Upload",WE.Z.Upload),{showRemoveIcon:re,showPreviewIcon:oe,showDownloadIcon:ae,removeIcon:se,previewIcon:le,downloadIcon:ce,extra:ue}="boolean"==typeof o?{}:o,he=void 0===re?!I:re,de=(e,t)=>o?c.createElement(SL,{prefixCls:X,listType:a,items:B,previewFile:d,onPreview:s,onDownload:l,onRemove:U,showRemoveIcon:he,showPreviewIcon:oe,showDownloadIcon:ae,removeIcon:se,previewIcon:le,downloadIcon:ce,iconRender:m,extra:ue,locale:Object.assign(Object.assign({},ie),g),isImageUrl:v,progress:y,appendAction:e,appendActionVisible:t,itemRender:_,disabled:I}):e,pe=f()(J,w,D,te,ne,null==Y?void 0:Y.className,{[`${X}-rtl`]:"rtl"===q,[`${X}-picture-card-wrapper`]:"picture-card"===a,[`${X}-picture-circle-wrapper`]:"picture-circle"===a}),fe=Object.assign(Object.assign({},null==Y?void 0:Y.style),k);if("drag"===x){const e=f()(te,X,`${X}-drag`,{[`${X}-drag-uploading`]:B.some((e=>"uploading"===e.status)),[`${X}-drag-hover`]:"dragover"===O,[`${X}-disabled`]:I,[`${X}-rtl`]:"rtl"===q});return ee(c.createElement("span",{className:pe,ref:j},c.createElement("div",{className:e,style:fe,onDrop:V,onDragOver:V,onDragLeave:V},c.createElement(UE,Object.assign({},Q,{ref:z,className:`${X}-btn`}),c.createElement("div",{className:`${X}-drag-container`},S))),de()))}const ge=f()(X,`${X}-select`,{[`${X}-disabled`]:I,[`${X}-hidden`]:!S}),me=c.createElement("div",{className:ge},c.createElement(UE,Object.assign({},Q,{ref:z})));return ee("picture-card"===a||"picture-circle"===a?c.createElement("span",{className:pe,ref:j},de(me,!!S)):c.createElement("span",{className:pe,ref:j},me,de()))};var PL=c.forwardRef(CL),EL=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{style:n,height:i,hasControlInside:r=!1}=e,o=EL(e,["style","height","hasControlInside"]);return c.createElement(PL,Object.assign({ref:t,hasControlInside:r},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:i})}))}));var LL=ML;const AL=PL;AL.Dragger=LL,AL.LIST_IGNORE=_L;var TL=AL;function DL(e){return NL.apply(this,arguments)}function NL(){return(NL=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pd.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var IL="  ";function BL(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var RL={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},OL=function(e,t){return c.createElement(Tl.Z,(0,Ll.Z)({},e,{ref:t,icon:RL}))};var FL=c.forwardRef(OL);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var zL=TL.Dragger;var jL=function(e){var t=e.value,n=e.onChange,i=e.action,o=e.data,s=e.className,u=e.maxSize,d=void 0===u?150:u,p=e.title,f=void 0===p?"上传附件":p,m=e.showRemoveModal,v=void 0!==m&&m,b=e.accept,w=void 0===b?"":b,x=e.additionalText,S=e.isDragger,k=e.number,_=void 0===k?1e3:k,C=e.aloneClear,P=void 0!==C&&C,E=e.realTimeRemove,M=void 0===E||E,L=e.uploadText,A=e.setFileProgress,T=e.showFileProgress,D=(0,c.useState)(!1),N=l()(D,2),I=N[0],B=N[1],R=(0,c.useState)(t||[]),O=l()(R,2),F=O[0],z=O[1],j=(0,c.useState)(1),$=l()(j,2),H=$[0],Z=$[1];(0,c.useEffect)((function(){t&&(1===H&&z(y()(t)),Z(2),_===(null==t?void 0:t.length)&&B(!0))}),[t]);var K=function(){setTimeout((function(){F.pop(),z(y()(F))}),500)};T&&A(F.some((function(e){return"uploading"===e.status})));var G,U={multiple:!0,disabled:I,accept:w,withCredentials:!0,fileList:F,beforeUpload:function(e,t){var n=e.size/1024/1024;return F.concat(t).length>_?(F.pop(),z(y()(F)),ec.ZP.error("最多只能上传".concat(_,"个文件")),P?Promise.reject():(K(),!1)):n=_?B(!0):B(!1),z(y()(F)),F=F.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(IL)&&(e.name="".concat(e.name).concat(IL).concat(BL(e.size))),h()({},e)})),console.log("info:",e,F),n(F)):ec.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(G=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(M){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,DL(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!v){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;hh.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,g.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,ec.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return G.apply(this,arguments)})};return(0,g.jsxs)("div",{className:"multi-upload ".concat(s||""),children:[S&&(0,g.jsxs)(zL,h()(h()({},U),{},{children:[(0,g.jsx)("p",{className:"ant-upload-drag-icon",children:(0,g.jsx)(FL,{})}),(0,g.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,g.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),x]})),!S&&(0,g.jsxs)(TL,h()(h()({},U),{},{children:[(0,g.jsxs)(Ml.ZP,{disabled:I,className:"upload_button",children:[(0,g.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),f]}),(0,g.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:L||"(单个文件最大".concat(d,"MB)")})]}))]})},$L=n(94414);function HL(e,t){var n=(0,c.useState)(t),i=l()(n,2),o=i[0],s=i[1],u=(0,c.useState)(!1),d=l()(u,2),p=d[0],f=d[1],g=(0,c.useState)(),m=l()(g,2),v=m[0],y=m[1],b=function(){var n=a()(r()().mark((function n(i){var a,l,c,u=arguments;return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=u.length>1&&void 0!==u[1]&&u[1],l=a?t:h()(h()({},o),i),f(!0),s(l),n.next=6,e(l);case 6:return c=n.sent,f(!1),y(c),n.abrupt("return",c);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return[o,p,b,v,y]}var ZL=(0,d.connect)((function(e){return{user:e.user,competitions:e.competitions}}))((function(e){var t,n,i,o,s,u,d=e.className,p=e.style,m=void 0===p?{}:p,v=e.DataProps,y=void 0===v?{}:v,b=e.onFinish,w=e.hiddenUpload,x=e.competitions,S=e.isShowEdit,k=void 0===S?null==x||null===(t=x.Header)||void 0===t?void 0:t.is_manager:S,_=(0,c.useState)(!1),C=l()(_,2),P=C[0],E=C[1],M=Sc.Z.useForm(),L=l()(M,1)[0],A=HL($L.iR,{}),T=l()(A,3),D=T[1],N=T[2];return(0,g.jsx)("div",{className:f()("pb-30px-rem text-14px-rem",d),style:h()({borderBottom:"1rem solid #EAECF3"},m),children:P?(0,g.jsxs)(Sc.Z,{form:L,initialValues:h()(h()({},y),{},{competition_module_id:null==y?void 0:y.id,description:null==y?void 0:y.name,content:null==y?void 0:y.md_content,attachment_ids:(s=(null==y||null===(n=y.attachments)||void 0===n?void 0:n.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h()(h()({},e),{},{url:kl.Z.API_SERVER+(null==e?void 0:e.download_url)})})))||[],u=[],s&&s.length>0&&(u=s.map((function(e){return{uid:e.id,id:e.id,name:e.title+IL+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),u)}),onFinish:function(){var e=a()(r()().mark((function e(t){var n,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("allValue",t),e.next=3,N(h()(h()({},t),{},{attachment_ids:null==t||null===(n=t.attachment_ids)||void 0===n?void 0:n.map((function(e){var t;return null==e||null===(t=e.response)||void 0===t?void 0:t.id}))}));case 3:0==(null==(i=e.sent)?void 0:i.status)&&(ec.ZP.success("保存成功"),b(t),E(!1));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,g.jsx)(Sc.Z.Item,{name:"competition_module_id",hidden:!0}),(0,g.jsx)(Sc.Z.Item,{name:"description",children:(0,g.jsx)(kc.Z,{placeholder:"请输入名称"})}),(0,g.jsx)(Sc.Z.Item,{name:"content",children:(0,g.jsx)(_E,{scrollId:"content"})}),!w&&(0,g.jsx)(Sc.Z.Item,{name:"attachment_ids",children:(0,g.jsx)(jL,{})}),(0,g.jsxs)("div",{className:"flex item-center gap-20px-rem justify-end",children:[(0,g.jsx)(Ml.ZP,{htmlType:"reset",onClick:function(){E(!1)},children:"取消"}),(0,g.jsx)(Ml.ZP,{htmlType:"submit",type:"primary",loading:D,children:"保存更改"})]})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"flex item-center justify-between",children:[(0,g.jsx)("div",{className:"font-semibold text-22px-rem",style:{color:"#232B40"},children:(null==y?void 0:y.md_name)||(null==y?void 0:y.name)}),k&&(0,g.jsxs)("div",{className:"current-primary flex item-center gap-5px-rem",onClick:function(){E(!0)},children:[(0,g.jsx)("span",{className:"iconfont icon-bianji16",style:{fontSize:"14rem"}})," 编辑"]})]}),(0,g.jsx)(xc,{className:"mt-16px-rem text-18px-rem",value:(null==y?void 0:y.md_content)||"--"}),(null==y||null===(i=y.attachments)||void 0===i?void 0:i.length)>0&&(0,g.jsx)("div",{className:"flex flex-wrap gap-20px-rem mt-20px-rem text-18px-rem",children:null==y||null===(o=y.attachments)||void 0===o?void 0:o.map((function(e){return(0,g.jsx)("a",{target:"_self",download:null==e?void 0:e.title,href:(null===kl.Z||void 0===kl.Z?void 0:kl.Z.API_SERVER)+(null==e?void 0:e.download_url),children:(0,g.jsx)("div",{className:"rounded-4px-rem px-12px-rem py-8px-rem",style:{background:"rgba(48,97,208,0.1)",color:"#3061D0"},children:null==e?void 0:e.title},null==e?void 0:e.id)})}))})]})})})),KL=n(29091),GL=n(70236),UL=n.n(GL),VL=(0,d.connect)((function(e){return{user:e.user}}))((function(e){UL()(e);var t=HL($L.pM,{}),n=l()(t,4),i=n[1],o=n[2],s=n[3],u=(void 0===s?{}:s).data,h=(void 0===u?{}:u).competition_modules,d=void 0===h?[]:h;return(0,c.useEffect)((function(){o({})}),[]),(0,g.jsx)(mh.Z,{spinning:i,children:(0,g.jsx)("div",{className:"bg-white mt-20px-rem rounded-4px-rem p-20px-rem flex flex-col gap-30px-rem",style:{border:"1rem solid #f1f1f1"},children:null==d?void 0:d.map((function(e){return(0,g.jsx)(ZL,{DataProps:e,onFinish:function(){var e=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o({});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},null==e?void 0:e.id)}))})})})),WL=(0,d.connect)((function(e){return{user:e.user}}))((function(e){UL()(e);var t=HL($L.B3,{}),n=l()(t,4),i=n[1],o=n[2],s=n[3],u=(void 0===s?{}:s).data,h=(void 0===u?{}:u).competition_modules,d=void 0===h?[]:h;return(0,c.useEffect)((function(){o({})}),[]),(0,g.jsx)(mh.Z,{spinning:i,children:(0,g.jsx)("div",{className:"bg-white mt-20px-rem rounded-4px-rem p-20px-rem flex flex-col gap-30px-rem",style:{border:"1rem solid #f1f1f1"},children:null==d?void 0:d.map((function(e){return(0,g.jsx)(ZL,{DataProps:e,onFinish:function(){var e=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o({});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},null==e?void 0:e.id)}))})})})),qL=n(98012),YL={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",Item:"Item___x3_o3",active:"active___F26E8"},XL=function(e){var t=e.dataSource,n=void 0===t?[]:t,i=e.value,r=e.onChange,o=e.className,a=e.style,s=void 0===a?{}:a;return(0,g.jsx)("div",{style:s,className:f()("text-14px",YL.tabs,o),children:n.map((function(e){return e.hidden?null:(0,g.jsx)("div",{style:e.style,className:f()(null==YL?void 0:YL.Item,i===e.id?YL.active:"",e.className),onClick:function(){return r(e.id)},children:e.name},e.id)}))})},QL="input___PW2zI",JL="dropdown___vSy8B",eA="menu___NiyBu",tA="text___Grueu",nA="b1___ZKryM",iA="b2___aKyGa",rA=function(e){var t,n=e.dataSource,i=void 0===n?[]:n,r=e.value,o=void 0===r?"":r,a=e.onChange,s=e.onInputChange,u=void 0===s?function(){}:s,h=e.className,d=e.style,p=void 0===d?{}:d,m=e.placeholder,v=(e.allowClear,(0,c.useState)("")),y=l()(v,2),b=y[0],w=y[1],x=(0,c.useState)(""),S=l()(x,2),k=S[0],_=S[1];(0,c.useEffect)((function(){var e,t=o;null!==(e=JSON.stringify(o))&&void 0!==e&&e.includes("{")&&(w(o.id),t=o.value||"");try{_(decodeURIComponent(t||""))}catch(e){_(decodeURIComponent(t||""))}}),[o]);var C=function(){a(encodeURIComponent(k),b||null)};return(0,g.jsxs)("div",{className:f()(QL,h),style:p,children:[!!i.length&&(0,g.jsxs)("div",{className:JL,children:[(0,g.jsxs)("div",{className:tA,children:[null===(t=i.find((function(e){return e.id===b})))||void 0===t?void 0:t.name,(0,g.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,g.jsx)("b",{className:nA}),(0,g.jsx)("b",{className:iA})]}),(0,g.jsx)("div",{className:eA,children:i.map((function(e,t){return(0,g.jsx)("div",{onClick:function(){var t;(t=e.id)!==b&&(w(t),a(encodeURIComponent(k),t))},children:e.name},t)}))})]}),(0,g.jsx)(kc.Z,{onPressEnter:C,value:k,onChange:function(e){_(e.target.value),u(encodeURIComponent(e.target.value),b||null)},bordered:!1,placeholder:m}),(0,g.jsx)("i",{onClick:C,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},oA={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},aA=["className","style","children","loading","openLoading","onClick","size","shape"],sA=function(e){var t=e.className,n=e.style,i=e.children,o=e.loading,s=void 0!==o&&o,u=e.openLoading,d=e.onClick,p=void 0===d?function(){}:d,m=e.size,v=void 0===m?"middle":m,y=e.shape,b=void 0===y?"round":y,w=Bl()(e,aA),x=(0,c.useState)(!1),S=l()(x,2),k=S[0],_=S[1];return(0,g.jsx)(Ml.ZP,h()(h()({onClick:(0,nc.throttle)(function(){var e=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u&&_(!0),e.prev=1,e.next=4,p(t);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:u&&_(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:f()(oA.btn,oA["".concat(v,"-").concat(b)],t),style:n,size:v,shape:b,loading:k||s},w),{},{children:i}))},lA=n(458);var cA=e=>{const{value:t,formatter:n,precision:i,decimalSeparator:r,groupSeparator:o="",prefixCls:a}=e;let s;if("function"==typeof n)s=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",l=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,o),"number"==typeof i&&(l=l.padEnd(i,"0").slice(0,i>0?i:0)),l&&(l=`${r}${l}`),s=[c.createElement("span",{key:"int",className:`${a}-content-value-int`},e,t),l&&c.createElement("span",{key:"decimal",className:`${a}-content-value-decimal`},l)]}else s=e}return c.createElement("span",{className:`${a}-content-value`},s)};const uA=e=>{const{componentCls:t,marginXXS:n,padding:i,colorTextDescription:r,titleFontSize:o,colorTextHeading:a,contentFontSize:s,fontFamily:l}=e;return{[t]:Object.assign(Object.assign({},(0,Ku.Wf)(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:o},[`${t}-skeleton`]:{paddingTop:i},[`${t}-content`]:{color:a,fontSize:s,fontFamily:l,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}};var hA=(0,Uu.I$)("Statistic",(e=>{const t=(0,Vu.IX)(e,{});return[uA(t)]}),(e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}})),dA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,rootClassName:i,style:r,valueStyle:o,value:a=0,title:s,valueRender:l,prefix:u,suffix:h,loading:d=!1,formatter:p,precision:g,decimalSeparator:m=".",groupSeparator:v=",",onMouseEnter:y,onMouseLeave:b}=e,w=dA(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:x,direction:S,className:k,style:_}=(0,Du.dj)("statistic"),C=x("statistic",t),[P,E,M]=hA(C),L=c.createElement(cA,{decimalSeparator:m,groupSeparator:v,prefixCls:C,formatter:p,precision:g,value:a}),A=f()(C,{[`${C}-rtl`]:"rtl"===S},k,n,i,E,M),T=(0,DE.Z)(w,{aria:!0,data:!0});return P(c.createElement("div",Object.assign({},T,{className:A,style:Object.assign(Object.assign({},_),r),onMouseEnter:y,onMouseLeave:b}),s&&c.createElement("div",{className:`${C}-title`},s),c.createElement(lA.Z,{paragraph:!1,loading:d,className:`${C}-skeleton`},c.createElement("div",{style:o,className:`${C}-content`},u&&c.createElement("span",{className:`${C}-content-prefix`},u),l?l(L):L,h&&c.createElement("span",{className:`${C}-content-suffix`},h)))))};const fA=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function gA(e,t){const{format:n=""}=t,i=new Date(e).getTime(),r=Date.now();return function(e,t){let n=e;const i=/\[[^\]]*]/g,r=(t.match(i)||[]).map((e=>e.slice(1,-1))),o=t.replace(i,"[]"),a=fA.reduce(((e,t)=>{let[i,r]=t;if(e.includes(i)){const t=Math.floor(n/r);return n-=t*r,e.replace(new RegExp(`${i}+`,"g"),(e=>{const n=e.length;return t.toString().padStart(n,"0")}))}return e}),o);let s=0;return a.replace(i,(()=>{const e=r[s];return s+=1,e}))}(Math.max(i-r,0),n)}var mA=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{value:t,format:n="HH:mm:ss",onChange:i,onFinish:r}=e,o=mA(e,["value","format","onChange","onFinish"]),a=(0,vM.Z)(),s=c.useRef(null),l=()=>{const e=function(e){return new Date(e).getTime()}(t);e>=Date.now()&&(s.current=setInterval((()=>{a(),null==i||i(e-Date.now()),e(l(),()=>{s.current&&(clearInterval(s.current),s.current=null)})),[t]);return c.createElement(pA,Object.assign({},o,{value:t,valueRender:e=>(0,bM.Tm)(e,{title:void 0}),formatter:(e,t)=>gA(e,Object.assign(Object.assign({},t),{format:n}))}))};var yA=c.memo(vA);pA.Countdown=yA;pA.Countdown;var bA=(0,d.connect)((function(e){return{user:e.user,competitions:e.competitions}}))((function(e){var t,n,i,r,o=e.competitions,a=e.dispatch,s=o.Header,u=(0,c.useState)({page:1,limit:20,type:null!=s&&s.enrolled?"mine":"all"}),d=l()(u,2),p=d[0],f=d[1],m=HL($L.RG,h()({},p)),v=l()(m,4),y=v[1],b=v[2],w=v[3],x=(void 0===w?{}:w).data,S=void 0===x?{}:x,k=S.count,_=void 0===k?0:k,C=S.list,P=void 0===C?[]:C;return(0,c.useEffect)((function(){return b(h()({},p)),ic.Z.subscribe("competitionsTeamsData",(function(e){b(h()({},p))}))}),[p]),(0,g.jsx)(mh.Z,{spinning:y,children:(0,g.jsxs)("div",{className:"bg-white mt-20px-rem rounded-4px-rem p-20px-rem text-16px-rem",style:{border:"1rem solid #f1f1f1"},children:[(0,g.jsxs)("div",{className:"flex item-center justify-between",children:[(0,g.jsx)(XL,{style:{height:"32rem",fontSize:"16rem"},dataSource:[{name:"我的团队信息",id:"mine",hidden:!(null!=s&&s.enrolled)},{name:"参赛团队",id:"all"}],value:null==p?void 0:p.type,onChange:function(e){f(h()(h()({},p),{},{type:e}))}}),(0,Sd.bg)()&&"mine"==(null==p?void 0:p.type)&&(0,g.jsxs)("div",{className:"current-primary flex item-center gap-6px-rem",onClick:function(){a({type:"competitions/save",payload:{actionTabs:{key:"报名",params:h()({isEdit:!0},(null==P?void 0:P[0])||{})}}})},children:[(0,g.jsx)("span",{className:"iconfont icon-bianji16",style:{fontSize:"14rem"}})," 编辑"]})]}),"mine"==(null==p?void 0:p.type)&&(0,g.jsx)("div",{className:"mt-20px-rem rounded-8px-rem p-20px-rem flex flex-col gap-12px-rem",style:{border:"1rem solid #E7E8EB"},children:[{title:"队伍名称",children:null==P||null===(t=P[0])||void 0===t?void 0:t.team_name},{title:"所属高校",children:null==P||null===(n=P[0])||void 0===n?void 0:n.school_name},{title:"指导老师",children:null==P||null===(i=P[0])||void 0===i?void 0:i.teacher_name},{title:"团队成员",children:null==P||null===(r=P[0])||void 0===r?void 0:r.team_member_name}].map((function(e,t){return(0,g.jsxs)("div",{className:"flex item-center gap-10px-rem",children:[(0,g.jsx)("div",{className:"",style:{color:"#5F6368"},children:null==e?void 0:e.title}),(0,g.jsx)("div",{className:"",style:{color:"#232B40"},children:null==e?void 0:e.children})]},t)}))}),"all"==(null==p?void 0:p.type)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"mt-10px-rem flex flex-col",children:null==P?void 0:P.map((function(e,t){return(0,g.jsxs)("div",{className:"flex item-center py-20px-rem",style:{borderBottom:"1rem solid #E7E8EB"},children:[(0,g.jsxs)("div",{className:"flex item-center justify-center h-full",style:{width:"143rem"},children:[t+1+((null==p?void 0:p.page)-1)*(null==p?void 0:p.limit),"队"]}),(0,g.jsx)("div",{className:"flex-1 flex flex-col gap-12px-rem",style:{paddingLeft:"50rem",borderLeft:"1rem solid #E7E8EB"},children:[{title:"队伍名称",children:null==e?void 0:e.team_name},{title:"所属高校",children:null==e?void 0:e.school_name},{title:"指导老师",children:null==e?void 0:e.teacher_name},{title:"团队成员",children:null==e?void 0:e.team_member_name}].map((function(e,t){return(0,g.jsxs)("div",{className:"flex item-center gap-10px-rem",children:[(0,g.jsx)("div",{className:"",style:{color:"#5F6368"},children:null==e?void 0:e.title}),(0,g.jsx)("div",{className:"",style:{color:"#232B40"},children:null==e?void 0:e.children})]},t)}))})]},t)}))}),(0,g.jsx)(qL.Z,{className:"mt-20px-rem text-14px-rem",style:{marginTop:"20rem"},total:_,onChange:function(e,t){f(h()(h()({},p),{},{page:e,limit:t}))},current:null==p?void 0:p.page,pageSize:null==p?void 0:p.limit,showTotal:function(e){return(0,g.jsxs)(g.Fragment,{children:["共",(0,g.jsx)("span",{className:"ml5 mr5",style:{color:"#3061d0"},children:e}),"队伍"]})}})]})]})})})),wA=(0,d.connect)((function(e){return{user:e.user,competitions:e.competitions}}))((function(e){e.className,e.style;var t,n=e.competitions,i=e.dispatch,o=e.onFinish,s=n.actionTabs,u=Sc.Z.useForm(),d=l()(u,1)[0],p=HL($L.zA,{}),f=l()(p,3),m=f[1],v=f[2],y=HL($L.oK,{}),b=l()(y,3),w=b[1],x=b[2],S=HL($L.RG,{page:1,limit:20,type:"mine"}),k=l()(S,4),_=k[1],C=k[2],P=k[3],E=(void 0===P?{}:P).data,M=(void 0===E?{}:E).list,L=void 0===M?[]:M;return(0,c.useEffect)((function(){C({page:1,limit:20,type:"mine"})}),[]),(0,c.useEffect)((function(){(null==L?void 0:L.length)>0&&d.setFieldsValue(h()({},(null==L?void 0:L[0])||{}))}),[L]),(0,g.jsx)(hh.Z,{open:"报名"==(null==s?void 0:s.key),title:(null==s||null===(t=s.params)||void 0===t?void 0:t.title)||"账号管理中心",loading:_,centered:!0,destroyOnClose:!0,width:"620rem",onOk:function(){d.submit()},confirmLoading:m||w,onCancel:function(){i({type:"competitions/save",payload:{actionTabs:{key:""}}}),d.resetFields()},children:(0,g.jsxs)(Sc.Z,{form:d,colon:!1,size:"large",onFinish:function(){var e=a()(r()().mark((function e(t){var n,i,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(null!=s&&null!==(n=s.params)&&void 0!==n&&n.isEdit?x:v)(h()({},t));case 2:0==(null==(i=e.sent)?void 0:i.status)&&(ec.ZP.success(null!=s&&null!==(a=s.params)&&void 0!==a&&a.isEdit?"修改成功":"报名成功"),null==o||o(),d.resetFields());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,g.jsx)(Sc.Z.Item,{name:"team_name",label:"队伍名称",rules:[{required:!0,message:"请输入队伍名称"},{whitespace:!0,message:"不能全输入空格"}],children:(0,g.jsx)(kc.Z,{placeholder:"请输入队伍名称",maxLength:50,showCount:!0})}),(0,g.jsx)(Sc.Z.Item,{name:"school_name",label:"所属高校",rules:[{required:!0,message:"请输入所属高校"},{whitespace:!0,message:"不能全输入空格"}],children:(0,g.jsx)(kc.Z,{placeholder:"请输入所属高校",maxLength:50,showCount:!0})}),(0,g.jsx)(Sc.Z.Item,{name:"teacher_name",label:"指导老师",rules:[{required:!0,message:"请输入指导老师"},{whitespace:!0,message:"不能全输入空格"}],children:(0,g.jsx)(kc.Z,{placeholder:"请输入指导老师",maxLength:50,showCount:!0})}),(0,g.jsx)(Sc.Z.Item,{name:"team_member_name",label:"团队成员",rules:[{required:!0,message:"请输入团队成员"},{whitespace:!0,message:"不能全输入空格"}],children:(0,g.jsx)(kc.Z,{placeholder:"请输入团队成员",maxLength:50,showCount:!0})})]})})})),xA=n(80480),SA=n(61186),kA=n.n(SA),_A=(0,d.connect)((function(e){return{user:e.user,competitions:e.competitions}}))((function(e){var t=e.competitions,n=(e.dispatch,t.Header),i=(0,c.useState)({page:1,limit:20}),r=l()(i,2),o=r[0],a=r[1],s=HL($L.eP,h()({},o)),u=l()(s,4),d=u[1],p=u[2],f=u[3],m=(void 0===f?{}:f).data,v=void 0===m?{}:m,y=v.count,b=void 0===y?0:y,w=v.list,x=void 0===w?[]:w,S=[{title:"排名",dataIndex:"index",ellipsis:!0,width:"100rem",render:function(e,t,n){return n+1}},{title:"战队",dataIndex:"team_name",ellipsis:!0,render:function(e){return(0,g.jsx)(tc.Z,{title:e,placement:"topLeft",children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"item-center justify-center rounded-full mr-10px-rem",style:{display:"inline-flex",width:"30rem",height:"30rem",background:"#4EACFF"},children:null==e?void 0:e[0]}),e]})})}},{title:"学校/单位",dataIndex:"school_name",ellipsis:!0,width:"150rem"},{title:"最高成绩提交时间",dataIndex:"max_score_commit_time",ellipsis:!0,width:"200rem",render:function(e){return e&&kA()(e).format("YYYY-MM-DD HH:mm")}},{title:"J1",dataIndex:"j1",ellipsis:!0,width:"100rem"},{title:"J2",dataIndex:"j2",ellipsis:!0,width:"100rem"}];return(0,c.useEffect)((function(){p(h()({},o))}),[o]),(0,g.jsxs)(mh.Z,{spinning:d,children:[(0,g.jsxs)("div",{className:"bg-white mt-20px-rem rounded-4px-rem p-20px-rem flex item-center justify-around relative text-14px-rem",style:{border:"1rem solid #f5f5f5"},children:[(0,g.jsx)("div",{className:"bg-blue flex item-center justify-end absolute",style:{width:"97%",height:"1rem",top:"50%",transform:"translateY(-50%)"},children:(0,g.jsx)("div",{className:"bg-blue",style:{width:"10rem",height:"10rem",clipPath:" polygon(0 0, 0% 100%, 100% 50%)",WebkitClipPath:" polygon(0 0, 0% 100%, 100% 50%)"}})}),[{title:"开始",children:(null==n?void 0:n.start_time)&&kA()(null==n?void 0:n.start_time).format("YYYY年MM月DD日 HH:mm")},{title:"结束",children:(null==n?void 0:n.end_time)&&kA()(null==n?void 0:n.end_time).format("YYYY年MM月DD日 HH:mm")}].map((function(e,t){return(0,g.jsxs)("div",{className:"flex flex-col item-center justify-between gap-10px-rem",style:{color:"#3061D0"},children:[(0,g.jsx)("div",{style:{height:"32rem"},children:null==e?void 0:e.children}),(0,g.jsx)("div",{children:(0,g.jsx)("span",{className:"iconfont icon-xiaoyuandian",style:{fontSize:"12rem"}})}),(0,g.jsx)("div",{className:"text-16px-rem font-semibold",style:{height:"32rem"},children:null==e?void 0:e.title})]},t)}))]}),(0,g.jsx)("div",{className:"bg-white mt-20px-rem rounded-4px-rem p-20px-rem text-14px-rem",style:{border:"1rem solid #f1f1f1"},children:(0,g.jsx)(xA.Z,{columns:S,dataSource:x,className:"text-14px-rem",locale:{emptyText:(0,g.jsx)(gc,{className:"text-14px-rem",styles:{margin:"100rem auto"}})},pagination:{total:b,current:null==o?void 0:o.page,pageSize:null==o?void 0:o.limit,onChange:function(e,t){a(h()(h()({},o),{},{page:e,limit:t}))},showTotal:function(e){return(0,g.jsxs)(g.Fragment,{children:["共",(0,g.jsx)("span",{className:"ml5 mr5",style:{color:"#3061d0"},children:e}),"条数据"]})}}})})]})})),CA="all___dBmCY",PA="title___IeVqW",EA="content___zp_KL",MA="form_item___hXuXB",LA="form_item_basic___K4a8V",AA="form_item_time___h8rdI",TA="form_item_model____Mn2H",DA="form_item_item___CR0Q5",NA="form_item_item_select___eeMCh",IA="textarea_father___XVeQz",BA="textarea_length___Xdwl4",RA="upload_button___zltZE",OA="upload_button_file___vVqry",FA="upload_text___pdO7Y",zA="date_text___gvUlY",jA="upload_download___KCtvw",$A="checkbox_text___yn4Cf",HA="footer___t6QDc",ZA="save_button___l7JJ7",KA="radio_style___tWyOo",GA=n(90111),UA=n.n(GA),VA=n(58319),WA=n.n(VA),qA=n(23250),YA=n.n(qA),XA=n(74959),QA=n.n(XA),JA=n(10238),eT=n.n(JA),tT=n(33656),nT=n.n(tT);kA().extend(nT()),kA().extend(eT()),kA().extend(UA()),kA().extend(WA()),kA().extend(YA()),kA().extend(QA()),kA().extend((function(e,t){var n=t.prototype,i=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return i.bind(this)(t)}}));var iT={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},rT=function(e){return iT[e]||e.split("_")[0]},oT={getNow:function(){var e=kA()();return"function"==typeof e.tz?e.tz():e},getFixedDate:function(e){return kA()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return kA()().locale(rT(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(rT(e)).weekday(0)},getWeek:function(e,t){return t.locale(rT(e)).week()},getShortWeekDays:function(e){return kA()().locale(rT(e)).localeData().weekdaysMin()},getShortMonths:function(e){return kA()().locale(rT(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(rT(e)).format(n)},parse:function(e,t,n){for(var i=rT(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:"0",i=String(e);i.length2&&void 0!==arguments[2]?arguments[2]:[],i=c.useState([!1,!1]),r=(0,Xc.Z)(i,2),o=r[0],a=r[1],s=function(e,t){a((function(n){return _T(n,t,e)}))},l=c.useMemo((function(){return o.map((function(i,r){if(i)return!0;var o=e[r];return!!o&&(!n[r]&&!o||!(!o||!t(o,{activeIndex:r})))}))}),[e,o,t,n]);return[l,s]}function TT(e,t,n,i,r){var o="",a=[];return e&&a.push(r?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),o=a.join(":"),i&&(o+=".SSS"),r&&(o+=" A"),o}function DT(e,t){var n=t.showHour,i=t.showMinute,r=t.showSecond,o=t.showMillisecond,a=t.use12Hours;return c.useMemo((function(){return function(e,t,n,i,r,o){var a=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,h=e.fieldWeekFormat,d=e.fieldQuarterFormat,p=e.yearFormat,f=e.cellYearFormat,g=e.cellQuarterFormat,m=e.dayFormat,v=e.cellDateFormat,y=TT(t,n,i,r,o);return(0,LE.Z)((0,LE.Z)({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:h||"gggg-wo",fieldQuarterFormat:d||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:f||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:v||m||"D"})}(e,n,i,r,o,a)}),[e,n,i,r,o,a])}function NT(e,t,n){return null!=n?n:t.some((function(t){return e.includes(t)}))}var IT=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function BT(e){return e&&"string"==typeof e}function RT(e,t,n,i){return[e,t,n,i].some((function(e){return void 0!==e}))}function OT(e,t,n,i,r){var o=t,a=n,s=i;if(e||o||a||s||r){if(e){var l,c,u,h=[o,a,s].some((function(e){return!1===e})),d=[o,a,s].some((function(e){return!0===e})),p=!!h||!d;o=null!==(l=o)&&void 0!==l?l:p,a=null!==(c=a)&&void 0!==c?c:p,s=null!==(u=s)&&void 0!==u?u:p}}else o=!0,a=!0,s=!0;return[o,a,s,r]}function FT(e){var t=e.showTime,n=function(e){var t=CT(e,IT),n=e.format,i=e.picker,r=null;return n&&(r=n,Array.isArray(r)&&(r=r[0]),r="object"===(0,Yc.Z)(r)?r.format:r),"time"===i&&(t.format=r),[t,r]}(e),i=(0,Xc.Z)(n,2),r=i[0],o=i[1],a=t&&"object"===(0,Yc.Z)(t)?t:{},s=(0,LE.Z)((0,LE.Z)({defaultOpenValue:a.defaultOpenValue||a.defaultValue},r),a),l=s.showMillisecond,c=s.showHour,u=s.showMinute,h=s.showSecond,d=OT(RT(c,u,h,l),c,u,h,l),p=(0,Xc.Z)(d,3);return c=p[0],u=p[1],h=p[2],[s,(0,LE.Z)((0,LE.Z)({},s),{},{showHour:c,showMinute:u,showSecond:h,showMillisecond:l}),s.format,o]}function zT(e,t,n,i,r){if("datetime"===e||"time"===e){for(var o=i,a=PT(e,r,null),s=[t,n],l=0;l1&&void 0!==arguments[1]&&arguments[1],n=c.useMemo((function(){var n=e?kT(e):e;return t&&n&&(n[1]=n[1]||n[0]),n}),[e,t]);return n}function nD(e,t){var n=e.generateConfig,i=e.locale,r=e.picker,o=void 0===r?"date":r,a=e.prefixCls,s=void 0===a?"rc-picker":a,l=e.styles,u=void 0===l?{}:l,h=e.classNames,d=void 0===h?{}:h,p=e.order,f=void 0===p||p,g=e.components,m=void 0===g?{}:g,v=e.inputRender,y=e.allowClear,b=e.clearIcon,w=e.needConfirm,x=e.multiple,S=e.format,k=e.inputReadOnly,_=e.disabledDate,C=e.minDate,P=e.maxDate,E=e.showTime,M=e.value,L=e.defaultValue,A=e.pickerValue,T=e.defaultPickerValue,D=tD(M),N=tD(L),I=tD(A),B=tD(T),R="date"===o&&E?"datetime":o,O="time"===R||"datetime"===R,F=O||x,z=null!=w?w:O,j=FT(e),$=(0,Xc.Z)(j,4),H=$[0],Z=$[1],K=$[2],G=$[3],U=DT(i,Z),V=c.useMemo((function(){return zT(R,K,G,H,U)}),[R,K,G,H,U]);var W=c.useMemo((function(){return(0,LE.Z)((0,LE.Z)({},e),{},{prefixCls:s,locale:U,picker:o,styles:u,classNames:d,order:f,components:(0,LE.Z)({input:v},m),clearIcon:jT(s,y,b),showTime:V,value:D,defaultValue:N,pickerValue:I,defaultPickerValue:B},null==t?void 0:t())}),[e]),q=function(e,t,n){return c.useMemo((function(){var i=kT(PT(e,t,n)),r=i[0],o="object"===(0,Yc.Z)(r)&&"mask"===r.type?r.format:null;return[i.map((function(e){return"string"==typeof e||"function"==typeof e?e:e.format})),o]}),[e,t,n])}(R,U,S),Y=(0,Xc.Z)(q,2),X=Y[0],Q=Y[1],J=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(X,k,x),ee=function(e,t,n,i,r){return(0,vT.zX)((function(o,a){return!(!n||!n(o,a))||!(!i||!e.isAfter(i,o)||YT(e,t,i,o,a.type))||!(!r||!e.isAfter(o,r)||YT(e,t,r,o,a.type))}))}(n,i,_,C,P),te=function(e,t,n,i){var r=(0,vT.zX)((function(r,o){var a=(0,LE.Z)({type:t},o);if(delete a.activeIndex,!e.isValidate(r)||n&&n(r,a))return!0;if(("date"===t||"time"===t)&&i){var s,l=o&&1===o.activeIndex?"end":"start",c=(null===(s=i.disabledTime)||void 0===s?void 0:s.call(i,r,l,{from:a.from}))||{},u=c.disabledHours,h=c.disabledMinutes,d=c.disabledSeconds,p=c.disabledMilliseconds,f=i.disabledHours,g=i.disabledMinutes,m=i.disabledSeconds,v=u||f,y=h||g,b=d||m,w=e.getHour(r),x=e.getMinute(r),S=e.getSecond(r),k=e.getMillisecond(r);if(v&&v().includes(w))return!0;if(y&&y(w).includes(x))return!0;if(b&&b(w,x).includes(S))return!0;if(p&&p(w,x,S).includes(k))return!0}return!1}));return r}(n,o,ee,V);return[c.useMemo((function(){return(0,LE.Z)((0,LE.Z)({},W),{},{needConfirm:z,inputReadOnly:J,disabledDate:ee})}),[W,z,J,ee]),R,F,X,Q,te]}function iD(e,t,n){var i=(0,vT.C8)(t,{value:e}),r=(0,Xc.Z)(i,2),o=r[0],a=r[1],s=c.useRef(e),l=c.useRef(),u=function(){bu.Z.cancel(l.current)},h=(0,vT.zX)((function(){a(s.current),n&&o!==s.current&&n(s.current)})),d=(0,vT.zX)((function(e,t){u(),s.current=e,e||t?h():l.current=(0,bu.Z)(h)}));return c.useEffect((function(){return u}),[]),[o,d]}function rD(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0,r=!n.every((function(e){return e}))&&e,o=iD(r,t||!1,i),a=(0,Xc.Z)(o,2),s=a[0],l=a[1];function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!s||l(e,t.force)}return[s,c]}function oD(e){var t=c.useRef();return c.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var n;null===(n=t.current)||void 0===n||n.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}})),t}function aD(e,t){return c.useMemo((function(){return e||(t?((0,mu.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map((function(e){var t=(0,Xc.Z)(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,t])}function sD(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=c.useRef(t);i.current=t,(0,fu.o)((function(){if(!e){var t=(0,bu.Z)((function(){i.current(e)}),n);return function(){bu.Z.cancel(t)}}i.current(e)}),[e])}function lD(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=c.useState(0),r=(0,Xc.Z)(i,2),o=r[0],a=r[1],s=c.useState(!1),l=(0,Xc.Z)(s,2),u=l[0],h=l[1],d=c.useRef([]),p=c.useRef(null),f=c.useRef(null),g=function(e){p.current=e},m=function(e){return p.current===e},v=function(e){h(e)},y=function(e){return e&&(f.current=e),f.current},b=function(n){var i=d.current,r=new Set(i.filter((function(e){return n[e]||t[e]}))),o=0===i[i.length-1]?1:0;return r.size>=2||e[o]?null:o};return sD(u||n,(function(){u||(d.current=[],g(null))})),c.useEffect((function(){u&&d.current.push(o)}),[u,o]),[u,v,y,o,a,b,d.current,g,m]}function cD(e,t,n,i){switch(t){case"date":case"week":return e.addMonth(n,i);case"month":case"quarter":return e.addYear(n,i);case"year":return e.addYear(n,10*i);case"decade":return e.addYear(n,100*i);default:return n}}var uD=[];function hD(e,t,n,i,r,o,a,s){var l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:uD,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:uD,h=arguments.length>10&&void 0!==arguments[10]?arguments[10]:uD,d=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,f=arguments.length>13?arguments[13]:void 0,g="time"===a,m=o||0,v=function(t){var i=e.getNow();return g&&(i=eD(e,i)),l[t]||n[t]||i},y=(0,Xc.Z)(u,2),b=y[0],w=y[1],x=(0,vT.C8)((function(){return v(0)}),{value:b}),S=(0,Xc.Z)(x,2),k=S[0],_=S[1],C=(0,vT.C8)((function(){return v(1)}),{value:w}),P=(0,Xc.Z)(C,2),E=P[0],M=P[1],L=c.useMemo((function(){var t=[k,E][m];return g?t:eD(e,t,h[m])}),[g,k,E,m,e,h]),A=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel",o=[_,M][m];o(n);var s=[k,E];s[m]=n,!d||YT(e,t,k,s[0],a)&&YT(e,t,E,s[1],a)||d(s,{source:r,range:1===m?"end":"start",mode:i})},T=function(n,i){if(s){var r={date:"month",week:"month",month:"year",quarter:"year"}[a];if(r&&!YT(e,t,n,i,r))return cD(e,a,i,-1);if("year"===a&&n)if(Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(i)/10))return cD(e,a,i,-1)}return i},D=c.useRef(null);return(0,fu.Z)((function(){if(r&&!l[m]){var t=g?null:e.getNow();if(null!==D.current&&D.current!==m?t=[k,E][1^m]:n[m]?t=0===m?n[0]:T(n[0],n[1]):n[1^m]&&(t=n[1^m]),t){p&&e.isAfter(p,t)&&(t=p);var i=s?cD(e,a,t,1):t;f&&e.isAfter(i,f)&&(t=s?cD(e,a,f,-1):f),A(t,"reset")}}}),[r,m,n[m]]),c.useEffect((function(){D.current=r?m:null}),[r,m]),(0,fu.Z)((function(){r&&l&&l[m]&&A(l[m],"reset")}),[r,m]),[L,A]}function dD(e,t){var n=c.useRef(e),i=c.useState({}),r=(0,Xc.Z)(i,2)[1],o=function(e){return e&&void 0!==t?t:n.current};return[o,function(e){n.current=e,r({})},o(!0)]}var pD=[];function fD(e,t,n){return[function(i){return i.map((function(i){return JT(i,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var i=Math.max(t.length,n.length),r=-1,o=0;o2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],s=n>=1?0|n:1,l=e;l<=t;l+=s){var c=r.includes(l);c&&i||a.push({label:ST(l,o),value:l,disabled:c})}return a}function kD(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t||{},r=i.use12Hours,o=i.hourStep,a=void 0===o?1:o,s=i.minuteStep,l=void 0===s?1:s,u=i.secondStep,h=void 0===u?1:u,d=i.millisecondStep,p=void 0===d?100:d,f=i.hideDisabledOptions,g=i.disabledTime,m=i.disabledHours,v=i.disabledMinutes,y=i.disabledSeconds,b=c.useMemo((function(){return n||e.getNow()}),[n,e]),w=c.useCallback((function(e){var t=(null==g?void 0:g(e))||{};return[t.disabledHours||m||xD,t.disabledMinutes||v||xD,t.disabledSeconds||y||xD,t.disabledMilliseconds||xD]}),[g,m,v,y]),x=c.useMemo((function(){return w(b)}),[b,w]),S=(0,Xc.Z)(x,4),k=S[0],_=S[1],C=S[2],P=S[3],E=c.useCallback((function(e,t,n,i){var o=SD(0,23,a,f,e());return[r?o.map((function(e){return(0,LE.Z)((0,LE.Z)({},e),{},{label:ST(e.value%12||12,2)})})):o,function(e){return SD(0,59,l,f,t(e))},function(e,t){return SD(0,59,h,f,n(e,t))},function(e,t,n){return SD(0,999,p,f,i(e,t,n),3)}]}),[f,a,r,p,l,h]),M=c.useMemo((function(){return E(k,_,C,P)}),[E,k,_,C,P]),L=(0,Xc.Z)(M,4),A=L[0],T=L[1],D=L[2],N=L[3],I=function(t,n){var i=function(){return A},r=T,o=D,a=N;if(n){var s=w(n),l=(0,Xc.Z)(s,4),c=l[0],u=l[1],h=l[2],d=l[3],p=E(c,u,h,d),f=(0,Xc.Z)(p,4),g=f[0];i=function(){return g},r=f[1],o=f[2],a=f[3]}return wD(t,i,r,o,a,e)};return[I,A,T,D,N]}function _D(e){var t=e.mode,n=e.internalMode,i=e.renderExtraFooter,r=e.showNow,o=e.showTime,a=e.onSubmit,s=e.onNow,l=e.invalid,u=e.needConfirm,h=e.generateConfig,d=e.disabledDate,p=c.useContext(bT),g=p.prefixCls,m=p.locale,v=p.button,y=void 0===v?"button":v,b=h.getNow(),w=kD(h,o,b),x=(0,Xc.Z)(w,1)[0],S=null==i?void 0:i(t),k=d(b,{type:t}),_="".concat(g,"-now"),C="".concat(_,"-btn"),P=r&&c.createElement("li",{className:_},c.createElement("a",{className:f()(C,k&&"".concat(C,"-disabled")),"aria-disabled":k,onClick:function(){if(!k){var e=x(b);s(e)}}},"date"===n?m.today:m.now)),E=u&&c.createElement("li",{className:"".concat(g,"-ok")},c.createElement(y,{disabled:l,onClick:a},m.ok)),M=(P||E)&&c.createElement("ul",{className:"".concat(g,"-ranges")},P,E);return S||M?c.createElement("div",{className:"".concat(g,"-footer")},S&&c.createElement("div",{className:"".concat(g,"-footer-extra")},S),M):null}function CD(e,t,n){return function(i,r){var o=i.findIndex((function(i){return YT(e,t,i,r,n)}));if(-1===o)return[].concat((0,CE.Z)(i),[r]);var a=(0,CE.Z)(i);return a.splice(o,1),a}}var PD=c.createContext(null);function ED(){return c.useContext(PD)}function MD(e,t){var n=e.prefixCls,i=e.generateConfig,r=e.locale,o=e.disabledDate,a=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,h=e.onHover,d=e.values,p=e.pickerValue,f=e.onSelect,g=e.prevIcon,m=e.nextIcon,v=e.superPrevIcon,y=e.superNextIcon,b=i.getNow();return[{now:b,values:d,pickerValue:p,prefixCls:n,disabledDate:o,minDate:a,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:h,locale:r,generateConfig:i,onSelect:f,panelType:t,prevIcon:g,nextIcon:m,superPrevIcon:v,superNextIcon:y},b]}var LD=c.createContext({});function AD(e){for(var t=e.rowNum,n=e.colNum,i=e.baseDate,r=e.getCellDate,o=e.prefixColumn,a=e.rowClassName,s=e.titleFormat,l=e.getCellText,u=e.getCellClassName,h=e.headerCells,d=e.cellSelection,p=void 0===d||d,g=e.disabledDate,m=ED(),v=m.prefixCls,y=m.panelType,b=m.now,w=m.disabledDate,x=m.cellRender,S=m.onHover,k=m.hoverValue,_=m.hoverRangeValue,C=m.generateConfig,P=m.values,E=m.locale,M=m.onSelect,L=g||w,A="".concat(v,"-cell"),T=c.useContext(LD).onCellDblClick,D=[],N=0;N1&&(a=t.addDate(a,-7)),a}(r.locale,o,C),E=o.getMonth(a),M=(void 0===m?b:m)?function(e){var t=null==d?void 0:d(e,{type:"week"});return c.createElement("td",{key:"week",className:f()(y,"".concat(y,"-week"),(0,qc.Z)({},"".concat(y,"-disabled"),t)),onClick:function(){t||p(e)},onMouseEnter:function(){t||null==g||g(e)},onMouseLeave:function(){t||null==g||g(null)}},c.createElement("div",{className:"".concat(y,"-inner")},o.locale.getWeek(r.locale,e)))}:null,L=[],A=r.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(r.locale):[]);M&&L.push(c.createElement("th",{key:"empty"},c.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},r.week)));for(var T=0;T<7;T+=1)L.push(c.createElement("th",{key:T},A[(T+_)%7]));var D=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),N=c.createElement("button",{type:"button","aria-label":r.yearSelect,key:"year",onClick:function(){l("year",a)},tabIndex:-1,className:"".concat(t,"-year-btn")},JT(a,{locale:r,format:r.yearFormat,generateConfig:o})),I=c.createElement("button",{type:"button","aria-label":r.monthSelect,key:"month",onClick:function(){l("month",a)},tabIndex:-1,className:"".concat(t,"-month-btn")},r.monthFormat?JT(a,{locale:r,format:r.monthFormat,generateConfig:o}):D[E]),B=r.monthBeforeYear?[I,N]:[N,I];return c.createElement(PD.Provider,{value:S},c.createElement("div",{className:f()(v,m&&"".concat(v,"-show-week"))},c.createElement(DD,{offset:function(e){return o.addMonth(a,e)},superOffset:function(e){return o.addYear(a,e)},onChange:s,getStart:function(e){return o.setDate(e,1)},getEnd:function(e){var t=o.setDate(e,1);return t=o.addMonth(t,1),o.addDate(t,-1)}},B),c.createElement(AD,(0,Ll.Z)({titleFormat:r.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:P,headerCells:L,getCellDate:function(e,t){return o.addDate(e,t)},getCellText:function(e){return JT(e,{locale:r,format:r.cellDateFormat,generateConfig:o})},getCellClassName:function(e){return(0,qc.Z)((0,qc.Z)({},"".concat(t,"-cell-in-view"),GT(o,e,a)),"".concat(t,"-cell-today"),UT(o,e,k))},prefixColumn:M,cellSelection:!b}))))}var ID=n(29194);function BD(e){return e.map((function(e){return[e.value,e.label,e.disabled].join(",")})).join(";")}function RD(e){var t=e.units,n=e.value,i=e.optionalValue,r=e.type,o=e.onChange,a=e.onHover,s=e.onDblClick,l=e.changeOnScroll,u=ED(),h=u.prefixCls,d=u.cellRender,p=u.now,g=u.locale,m="".concat(h,"-time-panel"),v="".concat(h,"-time-panel-cell"),y=c.useRef(null),b=c.useRef(),w=function(){clearTimeout(b.current)},x=function(e,t){var n=c.useRef(!1),i=c.useRef(null),r=c.useRef(null),o=function(){bu.Z.cancel(i.current),n.current=!1},a=c.useRef();return[(0,vT.zX)((function(){var s=e.current;if(r.current=null,a.current=0,s){var l=s.querySelector('[data-value="'.concat(t,'"]')),c=s.querySelector("li");l&&c&&function e(){o(),n.current=!0,a.current+=1;var t=s.scrollTop,u=c.offsetTop,h=l.offsetTop,d=h-u;if(0===h&&l!==c||!(0,ID.Z)(s))a.current<=5&&(i.current=(0,bu.Z)(e));else{var p=t+.3333333333333333*(d-t),f=Math.abs(d-p);if(null!==r.current&&r.current1&&void 0!==arguments[1]&&arguments[1];ae(e),null==y||y(e),t&&se(e)},ce=function(e,t){V(e),t&&le(t),se(t,e)},ue=c.useMemo((function(){var e,t;if(Array.isArray(C)){var n=(0,Xc.Z)(C,2);e=n[0],t=n[1]}else e=C;return e||t?(e=e||t,t=t||e,r.isAfter(e,t)?[t,e]:[e,t]):null}),[C,r]),he=LT(P,E,M),de=A[W]||jD[W]||ND,pe=c.useContext(LD),fe=c.useMemo((function(){return(0,LE.Z)((0,LE.Z)({},pe),{},{hideHeader:T})}),[pe,T]);var ge="".concat(D,"-panel"),me=CT(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return c.createElement(LD.Provider,{value:fe},c.createElement("div",{ref:N,tabIndex:l,className:f()(ge,(0,qc.Z)({},"".concat(ge,"-rtl"),"rtl"===o))},c.createElement(de,(0,Ll.Z)({},me,{showTime:H,prefixCls:D,locale:j,generateConfig:r,onModeChange:ce,pickerValue:oe,onPickerValueChange:function(e){le(e,!0)},value:ee[0],onSelect:function(e){if(ne(e),le(e),U!==S){var t=["decade","year"],n=[].concat(t,["month"]),i={quarter:[].concat(t,["quarter"]),week:[].concat((0,CE.Z)(n),["week"]),date:[].concat((0,CE.Z)(n),["date"])}[S]||n,r=i.indexOf(U),o=i[r+1];o&&ce(o,e)}},values:ee,cellRender:he,hoverRangeValue:ue,hoverValue:_}))))}var HD=c.memo(c.forwardRef($D));function ZD(e){var t=e.picker,n=e.multiplePanel,i=e.pickerValue,r=e.onPickerValueChange,o=e.needConfirm,a=e.onSubmit,s=e.range,l=e.hoverValue,u=c.useContext(bT),h=u.prefixCls,d=u.generateConfig,p=c.useCallback((function(e,n){return cD(d,t,e,n)}),[d,t]),f=c.useMemo((function(){return p(i,1)}),[i,p]),g={onCellDblClick:function(){o&&a()}},m="time"===t,v=(0,LE.Z)((0,LE.Z)({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:m});return s?v.hoverRangeValue=l:v.hoverValue=l,n?c.createElement("div",{className:"".concat(h,"-panels")},c.createElement(LD.Provider,{value:(0,LE.Z)((0,LE.Z)({},g),{},{hideNext:!0})},c.createElement(HD,v)),c.createElement(LD.Provider,{value:(0,LE.Z)((0,LE.Z)({},g),{},{hidePrev:!0})},c.createElement(HD,(0,Ll.Z)({},v,{pickerValue:f,onPickerValueChange:function(e){r(p(e,-1))}})))):c.createElement(LD.Provider,{value:(0,LE.Z)({},g)},c.createElement(HD,v))}function KD(e){return"function"==typeof e?e():e}function GD(e){var t=e.prefixCls,n=e.presets,i=e.onClick,r=e.onHover;return n.length?c.createElement("div",{className:"".concat(t,"-presets")},c.createElement("ul",null,n.map((function(e,t){var n=e.label,o=e.value;return c.createElement("li",{key:t,onClick:function(){i(KD(o))},onMouseEnter:function(){r(KD(o))},onMouseLeave:function(){r(null)}},n)})))):null}function UD(e){var t=e.panelRender,n=e.internalMode,i=e.picker,r=e.showNow,o=e.range,a=e.multiple,s=e.activeInfo,l=void 0===s?[0,0,0]:s,u=e.presets,h=e.onPresetHover,d=e.onPresetSubmit,p=e.onFocus,g=e.onBlur,m=e.onPanelMouseDown,v=e.direction,y=e.value,b=e.onSelect,w=e.isInvalid,x=e.defaultOpenValue,S=e.onOk,k=e.onSubmit,_=c.useContext(bT).prefixCls,C="".concat(_,"-panel"),P="rtl"===v,E=c.useRef(null),M=c.useRef(null),L=c.useState(0),A=(0,Xc.Z)(L,2),T=A[0],D=A[1],N=c.useState(0),I=(0,Xc.Z)(N,2),B=I[0],R=I[1],O=c.useState(0),F=(0,Xc.Z)(O,2),z=F[0],j=F[1],$=(0,Xc.Z)(l,3),H=$[0],Z=$[1],K=$[2],G=c.useState(0),U=(0,Xc.Z)(G,2),V=U[0],W=U[1];function q(e){return e.filter((function(e){return e}))}c.useEffect((function(){W(10)}),[H]),c.useEffect((function(){if(o&&M.current){var e,t=(null===(e=E.current)||void 0===e?void 0:e.offsetWidth)||0,n=M.current.getBoundingClientRect();if(!n.height||n.right<0)return void W((function(e){return Math.max(0,e-1)}));var i=(P?Z-t:H)-n.left;if(j(i),T&&T=o&&e<=a)return i;var s=Math.min(Math.abs(e-o),Math.abs(e-a));s0?i:r));var c=r-i+1;return String(i+(c+(l+e)-i)%c)};switch(t){case"Backspace":case"Delete":n="",i=o;break;case"ArrowLeft":n="",s(-1);break;case"ArrowRight":n="",s(1);break;case"ArrowUp":n="",i=l(1);break;case"ArrowDown":n="",i=l(-1);break;default:isNaN(Number(t))||(i=n=z+t)}if(null!==n&&(j(n),n.length>=r&&(s(1),j(""))),null!==i){var c=q.slice(0,te)+ST(i,r)+q.slice(ne);re(c.slice(0,a.length))}W({})},onMouseDown:function(){oe.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=Q.getMaskCellIndex(t);K(n),W({}),null==k||k(e),oe.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");s(t)&&re(t)}}:{};return c.createElement("div",{ref:Y,className:f()(M,(0,qc.Z)((0,qc.Z)({},"".concat(M,"-active"),n&&r),"".concat(M,"-placeholder"),u))},c.createElement(E,(0,Ll.Z)({ref:X,"aria-invalid":v,autoComplete:"off"},b,{onKeyDown:se,onBlur:ae},ce,{value:q,onChange:function(e){if(!a){var t=e.target.value;ie(t),R(t),l(t)}}})),c.createElement(QD,{type:"suffix",icon:o}),y)}));var rN=iN,oN=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],aN=["index"];function sN(e,t){var n=e.id,i=e.prefix,r=e.clearIcon,o=e.suffixIcon,a=e.separator,s=void 0===a?"~":a,l=e.activeIndex,u=(e.activeHelp,e.allHelp,e.focused),h=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),d=e.className,p=e.style,g=e.onClick,m=e.onClear,v=e.value,y=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),b=e.invalid,w=(e.inputReadOnly,e.direction),x=(e.onOpenChange,e.onActiveInfo),S=(e.placement,e.onMouseDown),k=(e.required,e["aria-required"],e.autoFocus),_=e.tabIndex,C=(0,Qc.Z)(e,oN),P="rtl"===w,E=c.useContext(bT).prefixCls,M=c.useMemo((function(){if("string"==typeof n)return[n];var e=n||{};return[e.start,e.end]}),[n]),L=c.useRef(),A=c.useRef(),T=c.useRef(),D=function(e){var t;return null===(t=[A,T][e])||void 0===t?void 0:t.current};c.useImperativeHandle(t,(function(){return{nativeElement:L.current,focus:function(e){if("object"===(0,Yc.Z)(e)){var t,n=e||{},i=n.index,r=void 0===i?0:i,o=(0,Qc.Z)(n,aN);null===(t=D(r))||void 0===t||t.focus(o)}else{var a;null===(a=D(null!=e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=D(0))||void 0===e||e.blur(),null===(t=D(1))||void 0===t||t.blur()}}}));var N=qD(C),I=c.useMemo((function(){return Array.isArray(h)?h:[h,h]}),[h]),B=VD((0,LE.Z)((0,LE.Z)({},e),{},{id:M,placeholder:I})),R=(0,Xc.Z)(B,1)[0],O=c.useState({position:"absolute",width:0}),F=(0,Xc.Z)(O,2),z=F[0],j=F[1],$=(0,vT.zX)((function(){var e=D(l);if(e){var t=e.nativeElement.getBoundingClientRect(),n=L.current.getBoundingClientRect(),i=t.left-n.left;j((function(e){return(0,LE.Z)((0,LE.Z)({},e),{},{width:t.width,left:i})})),x([t.left,t.right,n.width])}}));c.useEffect((function(){$()}),[l]);var H=r&&(v[0]&&!y[0]||v[1]&&!y[1]),Z=k&&!y[0],K=k&&!Z&&!y[1];return c.createElement(bD.Z,{onResize:$},c.createElement("div",(0,Ll.Z)({},N,{className:f()(E,"".concat(E,"-range"),(0,qc.Z)((0,qc.Z)((0,qc.Z)((0,qc.Z)({},"".concat(E,"-focused"),u),"".concat(E,"-disabled"),y.every((function(e){return e}))),"".concat(E,"-invalid"),b.some((function(e){return e}))),"".concat(E,"-rtl"),P),d),style:p,ref:L,onClick:g,onMouseDown:function(e){var t=e.target;t!==A.current.inputElement&&t!==T.current.inputElement&&e.preventDefault(),null==S||S(e)}}),i&&c.createElement("div",{className:"".concat(E,"-prefix")},i),c.createElement(rN,(0,Ll.Z)({ref:A},R(0),{autoFocus:Z,tabIndex:_,"date-range":"start"})),c.createElement("div",{className:"".concat(E,"-range-separator")},s),c.createElement(rN,(0,Ll.Z)({ref:T},R(1),{autoFocus:K,tabIndex:_,"date-range":"end"})),c.createElement("div",{className:"".concat(E,"-active-bar"),style:z}),c.createElement(QD,{type:"suffix",icon:o}),H&&c.createElement(JD,{icon:r,onClear:m})))}var lN=c.forwardRef(sN);function cN(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function uN(e){return 1===e?"end":"start"}function hN(e,t){var n=nD(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:cN(t,!1),allowEmpty:cN(n,!1)}})),i=(0,Xc.Z)(n,6),r=i[0],o=i[1],a=i[2],s=i[3],l=i[4],u=i[5],h=r.prefixCls,d=r.styles,p=r.classNames,f=r.defaultValue,g=r.value,m=r.needConfirm,v=r.onKeyDown,y=r.disabled,b=r.allowEmpty,w=r.disabledDate,x=r.minDate,S=r.maxDate,k=r.defaultOpen,_=r.open,C=r.onOpenChange,P=r.locale,E=r.generateConfig,M=r.picker,L=r.showNow,A=r.showToday,T=r.showTime,D=r.mode,N=r.onPanelChange,I=r.onCalendarChange,B=r.onOk,R=r.defaultPickerValue,O=r.pickerValue,F=r.onPickerValueChange,z=r.inputReadOnly,j=r.suffixIcon,$=r.onFocus,H=r.onBlur,Z=r.presets,K=r.ranges,G=r.components,U=r.cellRender,V=r.dateRender,W=r.monthCellRender,q=r.onClick,Y=oD(t),X=rD(_,k,y,C),Q=(0,Xc.Z)(X,2),J=Q[0],ee=Q[1],te=function(e,t){!y.some((function(e){return!e}))&&e||ee(e,t)},ne=mD(E,P,s,!0,!1,f,g,I,B),ie=(0,Xc.Z)(ne,5),re=ie[0],oe=ie[1],ae=ie[2],se=ie[3],le=ie[4],ce=ae(),ue=lD(y,b,J),he=(0,Xc.Z)(ue,9),de=he[0],pe=he[1],fe=he[2],ge=he[3],me=he[4],ve=he[5],ye=he[6],be=he[7],we=he[8],xe=function(e,t){pe(!0),null==$||$(e,{range:uN(null!=t?t:ge)})},Se=function(e,t){pe(!1),null==H||H(e,{range:uN(null!=t?t:ge)})},ke=c.useMemo((function(){if(!T)return null;var e=T.disabledTime,t=e?function(t){var n=uN(ge),i=ET(ce,ye,ge);return e(t,n,{from:i})}:void 0;return(0,LE.Z)((0,LE.Z)({},T),{},{disabledTime:t})}),[T,ge,ce,ye]),_e=(0,vT.C8)([M,M],{value:D}),Ce=(0,Xc.Z)(_e,2),Pe=Ce[0],Ee=Ce[1],Me=Pe[ge]||M,Le="date"===Me&&ke?"datetime":Me,Ae=Le===M&&"time"!==Le,Te=yD(M,Me,L,A,!0),De=vD(r,re,oe,ae,se,y,s,de,J,u),Ne=(0,Xc.Z)(De,2),Ie=Ne[0],Be=Ne[1],Re=function(e,t,n,i,r,o){var a=n[n.length-1];return function(s,l){var c=(0,Xc.Z)(e,2),u=c[0],h=c[1],d=(0,LE.Z)((0,LE.Z)({},l),{},{from:ET(e,n)});return!(1!==a||!t[0]||!u||YT(i,r,u,s,d.type)||!i.isAfter(u,s))||!(0!==a||!t[1]||!h||YT(i,r,h,s,d.type)||!i.isAfter(s,h))||(null==o?void 0:o(s,d))}}(ce,y,ye,E,P,w),Oe=AT(ce,u,b),Fe=(0,Xc.Z)(Oe,2),ze=Fe[0],je=Fe[1],$e=hD(E,P,ce,Pe,J,ge,o,Ae,R,O,null==ke?void 0:ke.defaultOpenValue,F,x,S),He=(0,Xc.Z)($e,2),Ze=He[0],Ke=He[1],Ge=(0,vT.zX)((function(e,t,n){var i=_T(Pe,ge,t);if(i[0]===Pe[0]&&i[1]===Pe[1]||Ee(i),N&&!1!==n){var r=(0,CE.Z)(ce);e&&(r[ge]=e),N(r,i)}})),Ue=function(e,t){return _T(ce,t,e)},Ve=function(e,t){var n=ce;e&&(n=Ue(e,ge)),be(ge);var i=ve(n);se(n),Ie(ge,null===i),null===i?te(!1,{force:!0}):t||Y.current.focus({index:i})},We=c.useState(null),qe=(0,Xc.Z)(We,2),Ye=qe[0],Xe=qe[1],Qe=c.useState(null),Je=(0,Xc.Z)(Qe,2),et=Je[0],tt=Je[1],nt=c.useMemo((function(){return et||ce}),[ce,et]);c.useEffect((function(){J||tt(null)}),[J]);var it=c.useState([0,0,0]),rt=(0,Xc.Z)(it,2),ot=rt[0],at=rt[1],st=aD(Z,K),lt=LT(U,V,W,uN(ge)),ct=ce[ge]||null,ut=(0,vT.zX)((function(e){return u(e,{activeIndex:ge})})),ht=c.useMemo((function(){var e=(0,DE.Z)(r,!1);return(0,mM.Z)(r,[].concat((0,CE.Z)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))}),[r]),dt=c.createElement(UD,(0,Ll.Z)({},ht,{showNow:Te,showTime:ke,range:!0,multiplePanel:Ae,activeInfo:ot,disabledDate:Re,onFocus:function(e){te(!0),xe(e)},onBlur:Se,onPanelMouseDown:function(){fe("panel")},picker:M,mode:Me,internalMode:Le,onPanelChange:Ge,format:l,value:ct,isInvalid:ut,onChange:null,onSelect:function(e){var t=_T(ce,ge,e);se(t),m||a||o!==Le||Ve(e)},pickerValue:Ze,defaultOpenValue:kT(null==T?void 0:T.defaultOpenValue)[ge],onPickerValueChange:Ke,hoverValue:nt,onHover:function(e){tt(e?Ue(e,ge):null),Xe("cell")},needConfirm:m,onSubmit:Ve,onOk:le,presets:st,onPresetHover:function(e){tt(e),Xe("preset")},onPresetSubmit:function(e){Be(e)&&te(!1,{force:!0})},onNow:function(e){Ve(e)},cellRender:lt})),pt=c.useMemo((function(){return{prefixCls:h,locale:P,generateConfig:E,button:G.button,input:G.input}}),[h,P,E,G.button,G.input]);return(0,fu.Z)((function(){J&&void 0!==ge&&Ge(null,M,!1)}),[J,ge,M]),(0,fu.Z)((function(){var e=fe();J||"input"!==e||(te(!1),Ve(null,!0)),J||!a||m||"panel"!==e||(te(!0),Ve())}),[J]),c.createElement(bT.Provider,{value:pt},c.createElement(xT,(0,Ll.Z)({},MT(r),{popupElement:dt,popupStyle:d.popup,popupClassName:p.popup,visible:J,onClose:function(){te(!1)},range:!0}),c.createElement(lN,(0,Ll.Z)({},r,{ref:Y,suffixIcon:j,activeIndex:de||J?ge:null,activeHelp:!!et,allHelp:!!et&&"preset"===Ye,focused:de,onFocus:function(e,t){var n=ye.length,i=ye[n-1];n&&i!==t&&m&&!b[i]&&!we(i)&&ce[i]?Y.current.focus({index:i}):(fe("input"),te(!0,{inherit:!0}),ge!==t&&J&&!m&&a&&Ve(null,!0),me(t),xe(e,t))},onBlur:function(e,t){if(te(!1),!m&&"input"===fe()){var n=ve(ce);Ie(ge,null===n)}Se(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&Ve(null,!0),null==v||v(e,t)},onSubmit:Ve,value:nt,maskFormat:l,onChange:function(e,t){var n=Ue(e,t);se(n)},onInputChange:function(){fe("input")},format:s,inputReadOnly:z,disabled:y,open:J,onOpenChange:te,onClick:function(e){var t,n=e.target.getRootNode();if(!Y.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var i=y.findIndex((function(e){return!e}));i>=0&&Y.current.focus({index:i})}te(!0),null==q||q(e)},onClear:function(){Be(null),te(!1,{force:!0})},invalid:ze,onInvalid:je,onActiveInfo:at}))))}var dN=c.forwardRef(hN),pN=n(11780);function fN(e){var t=e.prefixCls,n=e.value,i=e.onRemove,r=e.removeIcon,o=void 0===r?"×":r,a=e.formatDate,s=e.disabled,l=e.maxTagCount,u=e.placeholder,h="".concat(t,"-selector"),d="".concat(t,"-selection"),p="".concat(d,"-overflow");function g(e,t){return c.createElement("span",{className:f()("".concat(d,"-item")),title:"string"==typeof e?e:null},c.createElement("span",{className:"".concat(d,"-item-content")},e),!s&&t&&c.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(d,"-item-remove")},o))}return c.createElement("div",{className:h},c.createElement(pN.Z,{prefixCls:p,data:n,renderItem:function(e){return g(a(e),(function(t){t&&t.stopPropagation(),i(e)}))},renderRest:function(e){return g("+ ".concat(e.length," ..."))},itemKey:function(e){return a(e)},maxCount:l}),!n.length&&c.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var gN=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function mN(e,t){e.id;var n=e.open,i=e.prefix,r=e.clearIcon,o=e.suffixIcon,a=(e.activeHelp,e.allHelp,e.focused),s=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),l=e.generateConfig,u=e.placeholder,h=e.className,d=e.style,p=e.onClick,g=e.onClear,m=e.internalPicker,v=e.value,y=e.onChange,b=e.onSubmit,w=(e.onInputChange,e.multiple),x=e.maxTagCount,S=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),k=e.invalid,_=(e.inputReadOnly,e.direction),C=(e.onOpenChange,e.onMouseDown),P=(e.required,e["aria-required"],e.autoFocus),E=e.tabIndex,M=e.removeIcon,L=(0,Qc.Z)(e,gN),A="rtl"===_,T=c.useContext(bT).prefixCls,D=c.useRef(),N=c.useRef();c.useImperativeHandle(t,(function(){return{nativeElement:D.current,focus:function(e){var t;null===(t=N.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=N.current)||void 0===e||e.blur()}}}));var I=qD(L),B=VD((0,LE.Z)((0,LE.Z)({},e),{},{onChange:function(e){y([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:a}})),R=(0,Xc.Z)(B,2),O=R[0],F=R[1],z=!(!r||!v.length||S),j=w?c.createElement(c.Fragment,null,c.createElement(fN,{prefixCls:T,value:v,onRemove:function(e){var t=v.filter((function(t){return t&&!YT(l,s,t,e,m)}));y(t),n||b()},formatDate:F,maxTagCount:x,disabled:S,removeIcon:M,placeholder:u}),c.createElement("input",{className:"".concat(T,"-multiple-input"),value:v.map(F).join(","),ref:N,readOnly:!0,autoFocus:P,tabIndex:E}),c.createElement(QD,{type:"suffix",icon:o}),z&&c.createElement(JD,{icon:r,onClear:g})):c.createElement(rN,(0,Ll.Z)({ref:N},O(),{autoFocus:P,tabIndex:E,suffixIcon:o,clearIcon:z&&c.createElement(JD,{icon:r,onClear:g}),showActiveCls:!1}));return c.createElement("div",(0,Ll.Z)({},I,{className:f()(T,(0,qc.Z)((0,qc.Z)((0,qc.Z)((0,qc.Z)((0,qc.Z)({},"".concat(T,"-multiple"),w),"".concat(T,"-focused"),a),"".concat(T,"-disabled"),S),"".concat(T,"-invalid"),k),"".concat(T,"-rtl"),A),h),style:d,ref:D,onClick:p,onMouseDown:function(e){var t;e.target!==(null===(t=N.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==C||C(e)}}),i&&c.createElement("div",{className:"".concat(T,"-prefix")},i),j)}var vN=c.forwardRef(mN);function yN(e,t){var n=nD(e),i=(0,Xc.Z)(n,6),r=i[0],o=i[1],a=i[2],s=i[3],l=i[4],u=i[5],h=r,d=h.prefixCls,p=h.styles,f=h.classNames,g=h.order,m=h.defaultValue,v=h.value,y=h.needConfirm,b=h.onChange,w=h.onKeyDown,x=h.disabled,S=h.disabledDate,k=h.minDate,_=h.maxDate,C=h.defaultOpen,P=h.open,E=h.onOpenChange,M=h.locale,L=h.generateConfig,A=h.picker,T=h.showNow,D=h.showToday,N=h.showTime,I=h.mode,B=h.onPanelChange,R=h.onCalendarChange,O=h.onOk,F=h.multiple,z=h.defaultPickerValue,j=h.pickerValue,$=h.onPickerValueChange,H=h.inputReadOnly,Z=h.suffixIcon,K=h.removeIcon,G=h.onFocus,U=h.onBlur,V=h.presets,W=h.components,q=h.cellRender,Y=h.dateRender,X=h.monthCellRender,Q=h.onClick,J=oD(t);function ee(e){return null===e?null:F?e:e[0]}var te=CD(L,M,o),ne=rD(P,C,[x],E),ie=(0,Xc.Z)(ne,2),re=ie[0],oe=ie[1],ae=mD(L,M,s,!1,g,m,v,(function(e,t,n){if(R){var i=(0,LE.Z)({},n);delete i.range,R(ee(e),ee(t),i)}}),(function(e){null==O||O(ee(e))})),se=(0,Xc.Z)(ae,5),le=se[0],ce=se[1],ue=se[2],he=se[3],de=se[4],pe=ue(),fe=lD([x]),ge=(0,Xc.Z)(fe,4),me=ge[0],ve=ge[1],ye=ge[2],be=ge[3],we=function(e){ve(!0),null==G||G(e,{})},xe=function(e){ve(!1),null==U||U(e,{})},Se=(0,vT.C8)(A,{value:I}),ke=(0,Xc.Z)(Se,2),_e=ke[0],Ce=ke[1],Pe="date"===_e&&N?"datetime":_e,Ee=yD(A,_e,T,D),Me=b&&function(e,t){b(ee(e),ee(t))},Le=vD((0,LE.Z)((0,LE.Z)({},r),{},{onChange:Me}),le,ce,ue,he,[],s,me,re,u),Ae=(0,Xc.Z)(Le,2)[1],Te=AT(pe,u),De=(0,Xc.Z)(Te,2),Ne=De[0],Ie=De[1],Be=c.useMemo((function(){return Ne.some((function(e){return e}))}),[Ne]),Re=hD(L,M,pe,[_e],re,be,o,!1,z,j,kT(null==N?void 0:N.defaultOpenValue),(function(e,t){if($){var n=(0,LE.Z)((0,LE.Z)({},t),{},{mode:t.mode[0]});delete n.range,$(e[0],n)}}),k,_),Oe=(0,Xc.Z)(Re,2),Fe=Oe[0],ze=Oe[1],je=(0,vT.zX)((function(e,t,n){if(Ce(t),B&&!1!==n){var i=e||pe[pe.length-1];B(i,t)}})),$e=function(){Ae(ue()),oe(!1,{force:!0})},He=c.useState(null),Ze=(0,Xc.Z)(He,2),Ke=Ze[0],Ge=Ze[1],Ue=c.useState(null),Ve=(0,Xc.Z)(Ue,2),We=Ve[0],qe=Ve[1],Ye=c.useMemo((function(){var e=[We].concat((0,CE.Z)(pe)).filter((function(e){return e}));return F?e:e.slice(0,1)}),[pe,We,F]),Xe=c.useMemo((function(){return!F&&We?[We]:pe.filter((function(e){return e}))}),[pe,We,F]);c.useEffect((function(){re||qe(null)}),[re]);var Qe=aD(V),Je=function(e){var t=F?te(ue(),e):[e];Ae(t)&&!F&&oe(!1,{force:!0})},et=LT(q,Y,X),tt=c.useMemo((function(){var e=(0,DE.Z)(r,!1),t=(0,mM.Z)(r,[].concat((0,CE.Z)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,LE.Z)((0,LE.Z)({},t),{},{multiple:r.multiple})}),[r]),nt=c.createElement(UD,(0,Ll.Z)({},tt,{showNow:Ee,showTime:N,disabledDate:S,onFocus:function(e){oe(!0),we(e)},onBlur:xe,picker:A,mode:_e,internalMode:Pe,onPanelChange:je,format:l,value:pe,isInvalid:u,onChange:null,onSelect:function(e){if(ye("panel"),!F||Pe===A){var t=F?te(ue(),e):[e];he(t),y||a||o!==Pe||$e()}},pickerValue:Fe,defaultOpenValue:null==N?void 0:N.defaultOpenValue,onPickerValueChange:ze,hoverValue:Ye,onHover:function(e){qe(e),Ge("cell")},needConfirm:y,onSubmit:$e,onOk:de,presets:Qe,onPresetHover:function(e){qe(e),Ge("preset")},onPresetSubmit:Je,onNow:function(e){Je(e)},cellRender:et})),it=c.useMemo((function(){return{prefixCls:d,locale:M,generateConfig:L,button:W.button,input:W.input}}),[d,M,L,W.button,W.input]);return(0,fu.Z)((function(){re&&void 0!==be&&je(null,A,!1)}),[re,be,A]),(0,fu.Z)((function(){var e=ye();re||"input"!==e||(oe(!1),$e()),re||!a||y||"panel"!==e||$e()}),[re]),c.createElement(bT.Provider,{value:it},c.createElement(xT,(0,Ll.Z)({},MT(r),{popupElement:nt,popupStyle:p.popup,popupClassName:f.popup,visible:re,onClose:function(){oe(!1)}}),c.createElement(vN,(0,Ll.Z)({},r,{ref:J,suffixIcon:Z,removeIcon:K,activeHelp:!!We,allHelp:!!We&&"preset"===Ke,focused:me,onFocus:function(e){ye("input"),oe(!0,{inherit:!0}),we(e)},onBlur:function(e){oe(!1),xe(e)},onKeyDown:function(e,t){"Tab"===e.key&&$e(),null==w||w(e,t)},onSubmit:$e,value:Xe,maskFormat:l,onChange:function(e){he(e)},onInputChange:function(){ye("input")},internalPicker:o,format:s,inputReadOnly:H,disabled:x,open:re,onOpenChange:oe,onClick:function(e){x||J.current.nativeElement.contains(document.activeElement)||J.current.focus(),oe(!0),null==Q||Q(e)},onClear:function(){Ae(null),oe(!1,{force:!0})},invalid:Be,onInvalid:function(e){Ie(e,0)}}))))}var bN=c.forwardRef(yN),wN=n(75030),xN=n(57428),SN=n(46e3),kN=n(93873),_N=n(36305),CN=n(26743);const PN=(e,t)=>{const{componentCls:n,controlHeight:i}=e,r=t?`${n}-${t}`:"",o=(0,CN.gp)(e);return[{[`${n}-multiple${r}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:i,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:(0,ju.bf)(o.itemLineHeight)}}}]};var EN=e=>{const{componentCls:t,calc:n,lineWidth:i}=e,r=(0,Vu.IX)(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=(0,Vu.IX)(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(i).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[PN(r,"small"),PN(e),PN(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},(0,CN._z)(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]};const MN=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:i,borderRadiusSM:r,motionDurationMid:o,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:h,colorTextDisabled:d,cellBgDisabled:p,colorFillSecondary:f}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:i,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:i,height:i,lineHeight:(0,ju.bf)(i),borderRadius:r,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${(0,ju.bf)(s)} ${l} ${c}`,borderRadius:r,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:h,background:c},[`&${t}-disabled ${n}`]:{background:f}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:r,borderEndStartRadius:r,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:r,borderEndEndRadius:r},"&-disabled":{color:d,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:d}}},LN=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:i,pickerYearMonthCellWidth:r,pickerControlIconSize:o,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:h,lineType:d,borderRadiusLG:p,colorPrimary:f,colorTextHeading:g,colorSplit:m,pickerControlIconBorderWidth:v,colorIcon:y,textHeight:b,motionDurationMid:w,colorIconHover:x,fontWeightStrong:S,cellHeight:k,pickerCellPaddingVertical:_,colorTextDisabled:C,colorText:P,fontSize:E,motionDurationSlow:M,withoutTimeCellHeight:L,pickerQuarterPanelContentHeight:A,borderRadiusSM:T,colorTextLightSolid:D,cellHoverBg:N,timeColumnHeight:I,timeColumnWidth:B,timeCellHeight:R,controlItemBgActive:O,marginXXS:F,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:j}=e;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:f},"&-rtl":{[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:e.calc(a).mul(7).add(e.calc(z).mul(2)).equal()},"&-header":{display:"flex",padding:`0 ${(0,ju.bf)(l)}`,color:g,borderBottom:`${(0,ju.bf)(h)} ${d} ${m}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:(0,ju.bf)(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:E,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:(0,ju.bf)(b),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:f}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:v,borderInlineStartWidth:v,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:j,insetInlineStart:j,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:v,borderInlineStartWidth:v,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:k,fontWeight:"normal"},th:{height:e.calc(k).add(e.calc(_).mul(2)).equal(),color:P,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${(0,ju.bf)(_)} 0`,color:C,cursor:"pointer","&-in-view":{color:P}},MN(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(L).mul(4).equal()},[i]:{padding:`0 ${(0,ju.bf)(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:A}},"&-decade-panel":{[i]:{padding:`0 ${(0,ju.bf)(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${(0,ju.bf)(l)}`},[i]:{width:r}},"&-date-panel":{[`${t}-body`]:{padding:`${(0,ju.bf)(l)} ${(0,ju.bf)(z)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${i},\n &-selected ${i},\n ${i}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:T,borderEndStartRadius:T},"&:last-child:before":{borderStartEndRadius:T,borderEndEndRadius:T}},"&:hover td:before":{background:N},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:f},[`&${t}-cell-week`]:{color:new Wu.t(D).setA(.5).toHexString()},[i]:{color:D}}},"&-range-hover td:before":{background:O}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${(0,ju.bf)(l)} ${(0,ju.bf)(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${(0,ju.bf)(h)} ${d} ${m}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${M}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:I},"&-column":{flex:"1 0 auto",width:B,margin:`${(0,ju.bf)(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${(0,ju.bf)(R)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${(0,ju.bf)(h)} ${d} ${m}`},"&-active":{background:new Wu.t(O).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:F,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(B).sub(e.calc(F).mul(2)).equal(),height:R,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(B).sub(R).div(2).equal(),color:P,lineHeight:(0,ju.bf)(R),borderRadius:T,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:O}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:C,background:"transparent",cursor:"not-allowed"}}}}}}}}};var AN=e=>{const{componentCls:t,textHeight:n,lineWidth:i,paddingSM:r,antCls:o,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${(0,ju.bf)(i)} ${c} ${u}`,"&-extra":{padding:`0 ${(0,ju.bf)(r)}`,lineHeight:(0,ju.bf)(e.calc(n).sub(e.calc(i).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${(0,ju.bf)(i)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:(0,ju.bf)(r),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:(0,ju.bf)(e.calc(n).sub(e.calc(i).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(i).mul(2).equal(),marginInlineStart:"auto"}}}}};var TN=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},(0,Zu.qG)(e)),(0,Zu.vc)(e)),(0,Zu.H8)(e)),(0,Zu.Mu)(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,ju.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${(0,ju.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,ju.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,ju.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}};const DN=(e,t,n,i)=>{const r=e.calc(n).add(2).equal(),o=e.max(e.calc(t).sub(r).div(2).equal(),0),a=e.max(e.calc(t).sub(r).sub(o).equal(),0);return{padding:`${(0,ju.bf)(o)} ${(0,ju.bf)(i)} ${(0,ju.bf)(a)}`}},NN=e=>{const{componentCls:t,colorError:n,colorWarning:i}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:i}}}}},IN=e=>{const{componentCls:t,antCls:n,controlHeight:i,paddingInline:r,lineWidth:o,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:h,controlHeightLG:d,fontSizeLG:p,controlHeightSM:f,paddingInlineSM:g,paddingXS:m,marginXS:v,colorTextDescription:y,lineWidthBold:b,colorPrimary:w,motionDurationSlow:x,zIndexPopup:S,paddingXXS:k,sizePopupArrow:_,colorBgElevated:C,borderRadiusLG:P,boxShadowSecondary:E,borderRadiusSM:M,colorSplit:L,cellHoverBg:A,presetsWidth:T,presetsMaxWidth:D,boxShadowPopoverArrow:N,fontHeight:I,fontHeightLG:B,lineHeightLG:R}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},(0,Ku.Wf)(e)),DN(e,i,I,r)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},(0,$u.nz)(h)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:h}}},"&-large":Object.assign(Object.assign({},DN(e,d,B,r)),{[`${t}-input > input`]:{fontSize:p,lineHeight:R}}),"&-small":Object.assign({},DN(e,f,I,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(m).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:v}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:y}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:y},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:b,background:w,opacity:0,transition:`all ${x} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${(0,ju.bf)(m)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Ku.Wf)(e)),LN(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,\n &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,\n &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:SN.Qt},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:SN.fJ},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:SN.ly},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:SN.Uw},[`${t}-panel > ${t}-time-panel`]:{paddingTop:k},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${x} ease-out`},(0,_N.W)(e,C,N)),{"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:C,borderRadius:P,boxShadow:E,transition:`margin ${x}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:T,maxWidth:D,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:m,borderInlineEnd:`${(0,ju.bf)(o)} ${a} ${L}`,li:Object.assign(Object.assign({},Ku.vS),{borderRadius:M,paddingInline:m,paddingBlock:e.calc(f).sub(I).div(2).equal(),cursor:"pointer",transition:`all ${x}`,"+ li":{marginTop:v},"&:hover":{background:A}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${(0,ju.bf)(e.calc(_).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,SN.oN)(e,"slide-up"),(0,SN.oN)(e,"slide-down"),(0,kN.Fm)(e,"move-up"),(0,kN.Fm)(e,"move-down")]};var BN=(0,Uu.I$)("DatePicker",(e=>{const t=(0,Vu.IX)((0,Hu.e)(e),(e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:i,padding:r}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(i).add(e.calc(i).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(r).add(e.calc(i).div(2)).equal()}})(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[AN(t),IN(t),TN(t),NN(t),EN(t),(0,Gu.c)(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>Object.assign(Object.assign(Object.assign(Object.assign({},(0,Hu.T)(e)),(e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:i,controlHeightLG:r,paddingXXS:o,lineWidth:a}=e,s=2*o,l=2*a,c=Math.min(n-s,n-l),u=Math.min(i-s,i-l),h=Math.min(r-s,r-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Wu.t(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Wu.t(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*r,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*i,cellHeight:i,textHeight:r,withoutTimeCellHeight:1.65*r,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:h,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(e)),(0,_N.w)(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}))),RN=n(68525);function ON(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function FN(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function zN(e,t){const{allowClear:n=!0}=e,{clearIcon:i,removeIcon:r}=(0,RN.Z)(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[c.useMemo((()=>{if(!1===n)return!1;const e=!0===n?{}:n;return Object.assign({clearIcon:i},e)}),[n,i]),r]}const[jN,$N]=["week","WeekPicker"],[HN,ZN]=["month","MonthPicker"],[KN,GN]=["year","YearPicker"],[UN,VN]=["quarter","QuarterPicker"],[WN,qN]=["time","TimePicker"];var YN=e=>c.createElement(Ml.ZP,Object.assign({size:"small",type:"primary"},e));function XN(e){return(0,c.useMemo)((()=>Object.assign({button:YN},e)),[e])}var QN=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const t=(0,c.forwardRef)(((t,n)=>{var i;const{prefixCls:r,getPopupContainer:o,components:a,className:s,style:l,placement:u,size:h,disabled:d,bordered:p=!0,placeholder:g,popupClassName:m,dropdownClassName:v,status:y,rootClassName:b,variant:w,picker:x}=t,S=QN(t,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),k=c.useRef(null),{getPrefixCls:_,direction:C,getPopupContainer:P,rangePicker:E}=(0,c.useContext)(Du.E_),M=_("picker",r),{compactSize:L,compactItemClassnames:A}=(0,zu.ri)(M,C),T=_(),[D,N]=(0,Fu.Z)("rangePicker",w,p),I=(0,Bu.Z)(M),[B,R,O]=BN(M,I);const[F]=zN(t,M),z=XN(a),j=(0,Ru.Z)((e=>{var t;return null!==(t=null!=h?h:L)&&void 0!==t?t:e})),$=c.useContext(Iu.Z),H=null!=d?d:$,Z=(0,c.useContext)(Ou.aM),{hasFeedback:K,status:G,feedbackIcon:U}=Z,V=c.createElement(c.Fragment,null,x===WN?c.createElement(pT,null):c.createElement(uT,null),K&&U);(0,c.useImperativeHandle)(n,(()=>k.current));const[W]=(0,VE.Z)("Calendar",xN.Z),q=Object.assign(Object.assign({},W),t.locale),[Y]=(0,wN.Cn)("DatePicker",null===(i=t.popupStyle)||void 0===i?void 0:i.zIndex);return B(c.createElement(Au.Z,{space:!0},c.createElement(dN,Object.assign({separator:c.createElement("span",{"aria-label":"to",className:`${M}-separator`},c.createElement(mT,null)),disabled:H,ref:k,placement:u,placeholder:FN(q,x,g),suffixIcon:V,prevIcon:c.createElement("span",{className:`${M}-prev-icon`}),nextIcon:c.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:c.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:c.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${T}-slide-up`,picker:x},S,{className:f()({[`${M}-${j}`]:j,[`${M}-${D}`]:N},(0,Tu.Z)(M,(0,Tu.F)(G,y),K),R,A,s,null==E?void 0:E.className,O,I,b),style:Object.assign(Object.assign({},null==E?void 0:E.style),l),locale:q.lang,prefixCls:M,getPopupContainer:o||P,generateConfig:e,components:z,direction:C,classNames:{popup:f()(R,m||v,O,I,b)},styles:{popup:Object.assign(Object.assign({},t.popupStyle),{zIndex:Y})},allowClear:F}))))}));return t},eI=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const t=(t,n)=>{const i=n===qN?"timePicker":"datePicker",r=(0,c.forwardRef)(((n,r)=>{var o;const{prefixCls:a,getPopupContainer:s,components:l,style:u,className:h,rootClassName:d,size:p,bordered:g,placement:m,placeholder:v,popupClassName:y,dropdownClassName:b,disabled:w,status:x,variant:S,onCalendarChange:k}=n,_=eI(n,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:C,direction:P,getPopupContainer:E,[i]:M}=(0,c.useContext)(Du.E_),L=C("picker",a),{compactSize:A,compactItemClassnames:T}=(0,zu.ri)(L,P),D=c.useRef(null),[N,I]=(0,Fu.Z)("datePicker",S,g),B=(0,Bu.Z)(L),[R,O,F]=BN(L,B);(0,c.useImperativeHandle)(r,(()=>D.current));const z=t||n.picker,j=C(),{onSelect:$,multiple:H}=_,Z=$&&"time"===t&&!H;const[K,G]=zN(n,L),U=XN(l),V=(0,Ru.Z)((e=>{var t;return null!==(t=null!=p?p:A)&&void 0!==t?t:e})),W=c.useContext(Iu.Z),q=null!=w?w:W,Y=(0,c.useContext)(Ou.aM),{hasFeedback:X,status:Q,feedbackIcon:J}=Y,ee=c.createElement(c.Fragment,null,"time"===z?c.createElement(pT,null):c.createElement(uT,null),X&&J),[te]=(0,VE.Z)("DatePicker",xN.Z),ne=Object.assign(Object.assign({},te),n.locale),[ie]=(0,wN.Cn)("DatePicker",null===(o=n.popupStyle)||void 0===o?void 0:o.zIndex);return R(c.createElement(Au.Z,{space:!0},c.createElement(bN,Object.assign({ref:D,placeholder:ON(ne,z,v),suffixIcon:ee,placement:m,prevIcon:c.createElement("span",{className:`${L}-prev-icon`}),nextIcon:c.createElement("span",{className:`${L}-next-icon`}),superPrevIcon:c.createElement("span",{className:`${L}-super-prev-icon`}),superNextIcon:c.createElement("span",{className:`${L}-super-next-icon`}),transitionName:`${j}-slide-up`,picker:t,onCalendarChange:(e,t,n)=>{null==k||k(e,t,n),Z&&$(e)}},{showToday:!0},_,{locale:ne.lang,className:f()({[`${L}-${V}`]:V,[`${L}-${N}`]:I},(0,Tu.Z)(L,(0,Tu.F)(Q,x),X),O,T,null==M?void 0:M.className,h,F,B,d),style:Object.assign(Object.assign({},null==M?void 0:M.style),u),prefixCls:L,getPopupContainer:s||E,generateConfig:e,components:U,direction:P,disabled:q,classNames:{popup:f()(O,F,B,d,y||b)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:ie})},allowClear:K,removeIcon:G}))))}));return r},n=t(),i=t(jN,$N),r=t(HN,ZN),o=t(KN,GN),a=t(UN,VN);return{DatePicker:n,WeekPicker:i,MonthPicker:r,YearPicker:o,TimePicker:t(WN,qN),QuarterPicker:a}};var nI=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:i,YearPicker:r,TimePicker:o,QuarterPicker:a}=tI(e),s=JN(e),l=t;return l.WeekPicker=n,l.MonthPicker=i,l.YearPicker=r,l.RangePicker=s,l.TimePicker=o,l.QuarterPicker=a,l};const iI=nI(aT),rI=(0,sT.Z)(iI,"popupAlign",void 0,"picker");iI._InternalPanelDoNotUseOrYouWillBeFired=rI;const oI=(0,sT.Z)(iI.RangePicker,"popupAlign",void 0,"picker");iI._InternalRangePanelDoNotUseOrYouWillBeFired=oI,iI.generatePicker=nI;var aI=iI,sI=n(62673),lI=n(77233),cI=["children"],uI=function(e){var t=e.children,n=Bl()(e,cI),i=(0,c.useState)(!1),o=l()(i,2),s=o[0],u=o[1];return(0,g.jsx)(Ml.ZP,h()(h()({},n),{},{loading:s,onClick:function(){var e=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u(!0),e.next=4,n.onClick(t);case 4:u(!1),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),u(!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),children:t}))},hI=["competitions","dispatch"],dI=kc.Z.TextArea,pI=(0,d.connect)((function(e){return{competitions:e.competitions}}))((function(e){var t,n,i,o=e.competitions,s=e.dispatch,u=Bl()(e,hI),p=Sc.Z.useForm(),f=l()(p,1)[0],m=(0,c.useState)({}),v=l()(m,2),b=v[0],w=v[1],x=(0,c.useState)(0),S=l()(x,2),k=S[0],_=S[1],C=(0,c.useState)(),P=l()(C,2),E=P[0],M=P[1],L=(0,c.useState)(),A=l()(L,2),T=A[0],D=A[1],N=(0,c.useState)(!1),I=l()(N,2),B=I[0],R=I[1],O=(0,c.useState)(!1),F=l()(O,2),z=F[0],j=F[1],$=(0,c.useState)(!1),H=l()($,2),Z=H[0],K=H[1],G=(0,c.useState)(!1),U=l()(G,2),V=U[0],W=U[1],q=(0,c.useState)(!1),Y=l()(q,2),X=Y[0],Q=Y[1],J=(0,c.useState)([]),ee=l()(J,2),te=ee[0],ne=ee[1],ie=(0,c.useState)([]),re=l()(ie,2),oe=re[0],ae=re[1],se=(0,c.useState)(0),le=l()(se,2),ce=le[0],ue=le[1],he=(0,c.useState)(!1),de=l()(he,2),pe=de[0],fe=de[1],ge=(0,c.useState)([]),me=l()(ge,2),ve=me[0],ye=me[1],be=(0,c.useState)(!1),we=l()(be,2),xe=(we[0],we[1]),Se=o.Header,ke=(0,d.useParams)(),_e=function(){var e=a()(r()().mark((function e(t){var n,i,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.personal||(t.is_student||t.is_teacher||t.is_professional)){e.next=3;break}return ec.ZP.error("请选择至少一种身份可以报名参赛"),e.abrupt("return");case 3:i=[],(null==E?void 0:E.length)>0&&(null==E||E.map((function(e){var t;i.push((null==e||null===(t=e.response)||void 0===t?void 0:t.id)||(null==e?void 0:e.id))}))),f.setFieldValue("attachment_ids",i),o=[],(null==T?void 0:T.length)>0&&(null==T||T.map((function(e){var t;o.push((null==e||null===(t=e.response)||void 0===t?void 0:t.id)||(null==e?void 0:e.id))}))),f.setFieldValue("file_id",o),f.setFieldValue("is_authentication",B),f.setFieldValue("need_phone",z),f.setFieldValue("need_mail",Z),f.setFieldValue("competition_staffs",[{minimum:f.getFieldValue("student_min"),maximum:f.getFieldValue("student_max"),category:"student",mutiple_limited:V,check_phone:!1},{minimum:f.getFieldValue("teacher_min"),maximum:f.getFieldValue("teacher_max"),category:"teacher",mutiple_limited:X,check_phone:!1}]),(null===(n=b.identifier)||void 0===n?void 0:n.length)<3?ec.ZP.error("比赛网址最少要输入三个字符"):(0,$L.IN)({id:ce,identifier:f.getFieldValue("identifier")}).then(function(){var e=a()(r()().mark((function e(t){var n,i,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=(null==t?void 0:t.status)&&f.setFieldValue("identifier",""),0!=(null==t?void 0:t.status)){e.next=6;break}return e.next=4,(0,$L.$M)(h()(h()({id:null==u?void 0:u.competitionId},f.getFieldsValue()),{},{enroll_start_time:f.getFieldValue("enroll_start_time")?kA()(f.getFieldValue("enroll_start_time")).format("YYYY-MM-DD HH:mm"):"",enroll_end_time:f.getFieldValue("enroll_end_time")?kA()(f.getFieldValue("enroll_end_time")).format("YYYY-MM-DD HH:mm"):"",start_time:f.getFieldValue("start_time")?kA()(f.getFieldValue("start_time")).format("YYYY-MM-DD HH:mm"):"",end_time:f.getFieldValue("end_time")?kA()(f.getFieldValue("end_time")).format("YYYY-MM-DD HH:mm"):""}));case 4:if(0==(null==(n=e.sent)?void 0:n.status)){if(ec.ZP.success("更改成功"),(null==n?void 0:n.failed.length)>0){for(o in fe(!0),i=[],null==n?void 0:n.failed)i.push({phone:null==n?void 0:n.failed[o][0],name:null==n?void 0:n.failed[o][1],email:null==n?void 0:n.failed[o][2]});ye(i)}(null==ke?void 0:ke.identifier)==f.getFieldValue("identifier")?(s({type:"competitions/getStaff",payload:{identifier:null==u?void 0:u.competitionId}}),s({type:"competitions/getHeader",payload:{identifier:null==u?void 0:u.competitionId}})):(null==ke?void 0:ke.identifier)!=f.getFieldValue("identifier")&&d.history.push("/?type=7")}case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){(0,$L.o3)(null==u?void 0:u.competitionId).then((function(e){var t,n,i,r,o,a,s,l,c,d,p,g,m,v,y,b,x,S,k,C,P,E;(ue(null==e?void 0:e.id),f.setFieldValue("is_student",null==e?void 0:e.is_student),f.setFieldValue("is_teacher",null==e?void 0:e.is_teacher),f.setFieldValue("is_professional",null==e?void 0:e.is_professional),f.setFieldValue("name",null==e?void 0:e.name),f.setFieldValue("sub_title",null==e?void 0:e.sub_title),f.setFieldValue("description",null==e?void 0:e.description),f.setFieldValue("identifier",null==e?void 0:e.identifier),f.setFieldValue("bonus",null==e?void 0:e.bonus),f.setFieldValue("awards_count",null==e?void 0:e.awards_count),f.setFieldValue("need_apply_name",null==e||null===(t=e.need_apply_info)||void 0===t?void 0:t.need_apply_name),f.setFieldValue("need_apply_student_id",null==e||null===(n=e.need_apply_info)||void 0===n?void 0:n.need_apply_student_id),f.setFieldValue("need_apply_sex",null==e||null===(i=e.need_apply_info)||void 0===i?void 0:i.need_apply_sex),f.setFieldValue("need_apply_phone",null==e||null===(r=e.need_apply_info)||void 0===r?void 0:r.need_apply_phone),f.setFieldValue("need_apply_grade",null==e||null===(o=e.need_apply_info)||void 0===o?void 0:o.need_apply_grade),f.setFieldValue("need_apply_teacher_name",null==e||null===(a=e.need_apply_info)||void 0===a?void 0:a.need_apply_teacher_name),f.setFieldValue("need_apply_school",null==e||null===(s=e.need_apply_info)||void 0===s?void 0:s.need_apply_school),f.setFieldValue("need_apply_teacher_phone",null==e||null===(l=e.need_apply_info)||void 0===l?void 0:l.need_apply_teacher_phone),f.setFieldValue("need_apply_id_number",null==e||null===(c=e.need_apply_info)||void 0===c?void 0:c.need_apply_id_number),null==e||null===(d=e.attachments)||void 0===d||d.map((function(e){e.name=e.title})),f.setFieldValue("attachment_ids",null==e?void 0:e.attachments),M(null==e?void 0:e.attachments),f.setFieldValue("enroll_start_time",null!=e&&e.enroll_start_time?kA()(null==e?void 0:e.enroll_start_time):""),f.setFieldValue("enroll_end_time",null!=e&&e.enroll_end_time?kA()(null==e?void 0:e.enroll_end_time):""),f.setFieldValue("start_time",null!=e&&e.start_time?kA()(null==e?void 0:e.start_time):""),f.setFieldValue("end_time",null!=e&&e.end_time?kA()(null==e?void 0:e.end_time):""),f.setFieldValue("rule",null==e?void 0:e.rule),null!=e&&e.file)&&(e.file.name=null==e||null===(v=e.file)||void 0===v?void 0:v.title);(f.setFieldValue("file_id",null==e?void 0:e.file),null!=e&&e.file&&D([null==e?void 0:e.file]),f.setFieldValue("region_rule",null==e?void 0:e.region_rule),f.setFieldValue("is_authentication",null==e?void 0:e.is_authentication),f.setFieldValue("province_rule",null==e?void 0:e.province_rule),f.setFieldValue("region_provinces",null==e?void 0:e.region_provinces),(0,lI.GY)({display_aliases:!0,provinces:null==e?void 0:e.region_provinces}).then((function(t){ne(null==t?void 0:t.schools),f.setFieldValue("region_schools",null==e?void 0:e.region_school_array)})),R(null==e?void 0:e.is_authentication),f.setFieldValue("need_phone",null==e?void 0:e.need_phone),j(null==e?void 0:e.need_phone),f.setFieldValue("need_mail",null==e?void 0:e.need_mail),K(null==e?void 0:e.need_mail),f.setFieldValue("personal",null==e?void 0:e.personal),null!=e&&e.member_staff)?(f.setFieldValue("student_min",null==e||null===(y=e.member_staff)||void 0===y?void 0:y.minimum),f.setFieldValue("student_max",null==e||null===(b=e.member_staff)||void 0===b?void 0:b.maximum),f.setFieldValue("student_checkbox",null==e||null===(x=e.member_staff)||void 0===x?void 0:x.mutiple_limited)):(f.setFieldValue("student_min",0),f.setFieldValue("student_max",1));null!=e&&e.teacher_staff?(f.setFieldValue("teacher_min",null==e||null===(S=e.teacher_staff)||void 0===S?void 0:S.minimum),f.setFieldValue("teacher_max",null==e||null===(k=e.teacher_staff)||void 0===k?void 0:k.maximum),f.setFieldValue("teacher_checkbox",null==e||null===(C=e.teacher_staff)||void 0===C?void 0:C.mutiple_limited)):(f.setFieldValue("teacher_min",0),f.setFieldValue("teacher_max",0));3===(null==e?void 0:e.mode)?(Q(!0),W(!0)):(Q(null==e||null===(P=e.teacher_staff)||void 0===P?void 0:P.mutiple_limited),W(null==e||null===(E=e.member_staff)||void 0===E?void 0:E.mutiple_limited));W(null==e||null===(p=e.member_staff)||void 0===p?void 0:p.mutiple_limited),Q(null==e||null===(g=e.teacher_staff)||void 0===g?void 0:g.mutiple_limited),w(h()({},f.getFieldsValue())),_(null===(m=f.getFieldValue("description"))||void 0===m?void 0:m.length),null==u||u.loadingFunction(!1)})),(0,lI.ol)({}).then((function(e){var t;ae(y()(null==e||null===(t=e.data)||void 0===t?void 0:t.map((function(e){return{label:e,value:e}}))))})),null!=u&&u.formName&&f.scrollToField(null==u?void 0:u.formName)}),[]);var Ce=function(e){(0,lI.GY)({display_aliases:!0,provinces:e}).then((function(e){ne(null==e?void 0:e.schools)}))},Pe=function(e,t){"报名开始时间"==t?f.getFieldValue("enroll_end_time")&&e>=f.getFieldValue("enroll_end_time")&&(ec.ZP.error("报名开始时间必须小于报名结束时间"),f.setFieldValue("enroll_start_time",""),f.setFieldValue("enroll_end_time","")):"报名结束时间"==t?f.getFieldValue("enroll_start_time")?e<=f.getFieldValue("enroll_start_time")&&(ec.ZP.error("报名结束时间必须大于报名开始时间"),f.setFieldValue("enroll_end_time","")):(ec.ZP.error("报名结束时间必须大于报名开始时间"),f.setFieldValue("enroll_end_time","")):"竞赛开始时间"==t?f.getFieldValue("end_time")&&e>=f.getFieldValue("end_time")&&(ec.ZP.error("竞赛开始时间必须小于竞赛结束时间"),f.setFieldValue("start_time",""),f.setFieldValue("end_time","")):"竞赛结束时间"==t&&(f.getFieldValue("start_time")?e<=f.getFieldValue("start_time")&&(ec.ZP.error("竞赛结束时间必须大于竞赛开始时间"),f.setFieldValue("end_time","")):(ec.ZP.error("竞赛结束时间必须大于竞赛开始时间"),f.setFieldValue("end_time","")))};return(0,g.jsxs)("div",{className:CA,children:[(0,g.jsxs)(Sc.Z,{form:f,labelCol:{flex:"120px"},scrollToFirstError:!0,colon:!1,initialValues:{region_rule:0,student_min:0,student_max:1,teacher_min:0,teacher_max:0,is_student:!0,is_teacher:!0,is_professional:!0},onFinish:_e,onFinishFailed:function(){var e=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f.scrollToField(null==t||null===(n=t.errorFields)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.name,{behavior:"auto",block:"center"});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onChange:function(){var e,t,n=null==f||null===(e=f.getFieldValue("sponsor_user_name"))||void 0===e?void 0:e.replaceAll(" ","");f.setFieldValue("sponsor_user_name",n);var i=f.getFieldsValue();_(null===(t=i.description)||void 0===t?void 0:t.length),w(h()({},i))},children:[(0,g.jsx)("div",{className:PA,children:"基本信息"}),(0,g.jsxs)("div",{className:EA,children:[(0,g.jsx)(Sc.Z.Item,{style:{marginTop:"-15px"},className:MA,label:"竞赛主标题",colon:!1,name:"name",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,g.jsx)(kc.Z,{className:DA,placeholder:"请输入竞赛主标题",maxLength:60,suffix:(0,g.jsxs)("span",{children:[(null===(t=b.name)||void 0===t?void 0:t.length)||0,(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"/60"})]})})}),(0,g.jsx)(Sc.Z.Item,{className:LA,label:"竞赛副标题",colon:!1,name:"sub_title",children:(0,g.jsx)(kc.Z,{className:DA,placeholder:"请输入竞赛副标题",maxLength:60,suffix:(0,g.jsxs)("span",{children:[(null===(n=b.sub_title)||void 0===n?void 0:n.length)||0,(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"/60"})]})})}),(0,g.jsxs)("div",{className:IA,children:[(0,g.jsx)(Sc.Z.Item,{className:MA,label:"竞赛简介",colon:!1,name:"description",children:(0,g.jsx)(dI,{maxLength:200,placeholder:"请输入简介",rows:5})}),(0,g.jsxs)("span",{className:BA,children:[k||0,(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"/200"})]})]}),(0,g.jsx)(Sc.Z.Item,{className:LA,label:(0,g.jsxs)("div",{children:[(0,g.jsx)("span",{style:{color:"#ff4d4f",marginRight:"4px",fontFamily:"SimSun, sans-serif"},children:"*"}),"比赛网址"]}),colon:!1,children:(0,g.jsxs)("div",{style:{display:"flex"},children:[(0,g.jsxs)("div",{style:{width:"40%"},children:[window.location.origin,"/competitions/detail/"]}),(0,g.jsx)(tc.Z,{placement:"topLeft",color:"#fb3226",overlayStyle:{maxWidth:"350px",width:"350px"},title:"如果修改竞赛网址,会造成参赛人员无法再次通过旧网址进入",children:(0,g.jsx)(Sc.Z.Item,{style:{width:"calc(68% + 16px)",marginLeft:"-16px"},label:(0,g.jsx)("div",{style:{width:"0px"}}),colon:!1,name:"identifier",rules:[{required:!0,message:"必填项:不能为空"},{pattern:new RegExp(/^[A-Za-z0-9\-_]*$/,""),message:"必须是数字、字母、下划线或者横线"}],children:(0,g.jsx)(kc.Z,{className:DA,placeholder:"请输入网址",maxLength:20,suffix:(0,g.jsxs)("span",{children:[(null===(i=b.identifier)||void 0===i?void 0:i.length)||0,(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"/20"})]}),onBlur:function(){xe(!1),(0,$L.IN)({id:ce,identifier:f.getFieldValue("identifier")}).then((function(e){0!=(null==e?void 0:e.status)&&f.setFieldValue("identifier","")}))},onChange:function(){xe(!0)},disabled:"ended"==(null==Se?void 0:Se.competition_status)})})})]})}),(0,g.jsx)(Sc.Z.Item,{className:LA,style:{marginTop:"-12px"},label:"奖金金额",colon:!1,name:"bonus",rules:[{pattern:new RegExp(/^\d{0,8}$/,"g"),message:"必须是8位数以内的正整数"}],children:(0,g.jsx)(kc.Z,{autoComplete:"off",className:DA,placeholder:"如果需要设置奖金,请与平台客服人员对接",suffix:(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"元"})})}),(0,g.jsx)(Sc.Z.Item,{className:LA,label:"奖项数量",colon:!1,name:"awards_count",rules:[{pattern:new RegExp(/^\d{0,9}$/,"g"),message:"必须是正整数"}],children:(0,g.jsx)(kc.Z,{autoComplete:"off",className:DA,placeholder:"请输入奖项数量",suffix:(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"个"})})}),(0,g.jsx)(Sc.Z.Item,{name:"attachment_ids",label:"举办资质文档",colon:!1,getValueFromEvent:function(e){return Array.isArray(e)?e:e&&e.fileList},children:(0,g.jsxs)("div",{style:{display:"flex"},children:[(0,g.jsx)(TL,{action:kl.Z.API_SERVER+"/api/attachments.json",onChange:function(e){M(null==e?void 0:e.fileList)},onRemove:function(e){console.log(e),M([])},fileList:E,withCredentials:!0,children:(0,g.jsx)("div",{className:RA,children:"上传文档"})}),(0,g.jsx)("div",{className:FA,children:"如果涉及到竞赛奖金相关事项,请上传相关资质的证明文件,有便于竞赛快速审核通过"})]})}),(0,g.jsx)(Sc.Z.Item,{className:LA,label:"报名时间",colon:!1,children:(0,g.jsxs)("div",{style:{display:"flex"},children:[(0,g.jsx)(Sc.Z.Item,{name:"enroll_start_time",children:(0,g.jsx)(aI,{style:{height:"40px"},showTime:!0,format:"YYYY-MM-DD HH:mm",onChange:function(e){Pe(e,"报名开始时间")}})}),(0,g.jsx)("span",{style:{margin:"0 10px"},children:"至"}),(0,g.jsx)(Sc.Z.Item,{name:"enroll_end_time",children:(0,g.jsx)(aI,{style:{height:"40px"},showTime:!0,format:"YYYY-MM-DD HH:mm",onChange:function(e){Pe(e,"报名结束时间")}})}),(0,g.jsx)("div",{className:zA,children:"如果不填报名时间,则竞赛发布后将不展示报名入口"})]})}),(0,g.jsx)(Sc.Z.Item,{className:AA,label:(0,g.jsxs)("div",{children:[(0,g.jsx)("span",{style:{color:"#ff4d4f",marginRight:"4px",fontFamily:"SimSun, sans-serif"},children:"*"}),"竞赛时间"]}),colon:!1,children:(0,g.jsxs)("div",{style:{display:"flex"},children:[(0,g.jsx)(Sc.Z.Item,{name:"start_time",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,g.jsx)(aI,{style:{height:"40px"},showTime:!0,format:"YYYY-MM-DD HH:mm",onChange:function(e){Pe(e,"竞赛开始时间")},disabled:"progressing"==(null==Se?void 0:Se.competition_status)||"apply"===(null==Se?void 0:Se.competition_status)||"ended"==(null==Se?void 0:Se.competition_status)})}),(0,g.jsx)("span",{style:{margin:"0 10px"},children:"至"}),(0,g.jsx)(Sc.Z.Item,{name:"end_time",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,g.jsx)(aI,{style:{height:"40px"},showTime:!0,format:"YYYY-MM-DD HH:mm",onChange:function(e){Pe(e,"竞赛结束时间")},disabled:"ended"==(null==Se?void 0:Se.competition_status)||"apply"===(null==Se?void 0:Se.competition_status)})})]})})]}),!(null!=u&&u.isKd)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:PA,children:"开放范围"}),(0,g.jsxs)("div",{className:EA,children:[(0,g.jsx)(Sc.Z.Item,{className:KA,label:"参赛规则",name:"rule",colon:!1,children:(0,g.jsxs)(ih.ZP.Group,{children:[(0,g.jsx)(ih.ZP,{value:0,style:{width:"120px"},children:"按范围参加"}),(0,g.jsx)(ih.ZP,{value:1,style:{width:"120px"},children:"自定用户参加"})]})}),1==f.getFieldValue("rule")&&(0,g.jsx)(Sc.Z.Item,{name:"file_id",label:" ",colon:!1,getValueFromEvent:function(e){return Array.isArray(e)?e:e&&e.fileList},children:(0,g.jsxs)("div",{style:{marginLeft:"0px",display:"flex"},children:[(0,g.jsx)(TL,{accept:".xls, .xlsx",maxCount:1,action:kl.Z.API_SERVER+"/api/attachments.json",onChange:function(e){D(null==e?void 0:e.fileList)},onRemove:function(e){console.log(e),D([])},fileList:T,withCredentials:!0,children:(0,g.jsx)("div",{className:OA,children:"选择文件"})}),(0,g.jsxs)("div",{className:jA,style:{marginLeft:30},onClick:function(){(0,_l.Nd)(null,kl.Z.API_SERVER+"/api/competitions/download_template")},children:["下载模版",(0,g.jsx)("i",{className:"iconfont icon-xiazai5 font14 ml5"})]})]})}),0==f.getFieldValue("rule")&&(0,g.jsx)(Sc.Z.Item,{label:"选择省份",name:"province_rule",className:KA,colon:!1,style:{marginTop:"-3px"},children:(0,g.jsxs)(ih.ZP.Group,{onChange:function(e){var t;1==(null==e||null===(t=e.target)||void 0===t?void 0:t.value)&&f.setFieldValue("region_schools",[]),Ce([]),f.setFieldValue("region_provinces",[])},children:[(0,g.jsx)(ih.ZP,{value:0,style:{width:"120px"},children:"全部省份"}),(0,g.jsx)(ih.ZP,{value:1,style:{width:"120px"},children:"部分省份"})]})}),1==f.getFieldValue("province_rule")&&0==f.getFieldValue("rule")&&(0,g.jsx)(Sc.Z.Item,{className:MA,style:{marginTop:"-3px"},label:" ",colon:!1,name:"region_provinces",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,g.jsx)(Fc.default,{mode:"multiple",className:NA,options:oe,onChange:function(e){Ce(e)},filterOption:function(e,t){var n;return(null!==(n=null==t?void 0:t.value)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())}})}),0==f.getFieldValue("rule")&&(0,g.jsx)(Sc.Z.Item,{label:"选择院校",name:"region_rule",className:KA,colon:!1,style:{marginTop:"-3px"},children:(0,g.jsxs)(ih.ZP.Group,{children:[(0,g.jsx)(ih.ZP,{value:0,style:{width:"120px"},children:"全部院校"}),(0,g.jsx)(ih.ZP,{value:1,style:{width:"120px"},children:"部分院校"})]})}),1==f.getFieldValue("region_rule")&&0==f.getFieldValue("rule")&&(0,g.jsx)(Sc.Z.Item,{className:MA,style:{marginTop:"-3px"},label:" ",colon:!1,name:"region_schools",children:(0,g.jsx)(Fc.default,{mode:"multiple",className:NA,options:te,fieldNames:{label:"name",value:"id"},filterOption:function(e,t){var n;return(null!==(n=null==t?void 0:t.name)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())}})}),(0,g.jsx)("div",{children:1==f.getFieldValue("region_rule")&&0==f.getFieldValue("rule")&&(0,Sd.Ny)()&&(0,g.jsx)(Sc.Z.Item,{name:"file_id",label:" ",colon:!1,getValueFromEvent:function(e){return Array.isArray(e)?e:e&&e.fileList},children:(0,g.jsxs)("div",{style:{marginLeft:"0px",display:"flex"},children:[(0,g.jsx)(TL,{accept:".xls, .xlsx",maxCount:1,action:kl.Z.API_SERVER+"/api/attachments.json",onChange:function(e){D(null==e?void 0:e.fileList)},onRemove:function(e){console.log(e),D([])},fileList:T,withCredentials:!0,children:(0,g.jsx)("div",{className:OA,children:"选择文件"})}),(0,g.jsxs)("div",{className:jA,style:{marginLeft:30},onClick:function(){(0,_l.Nd)(null,kl.Z.API_SERVER+"/api/competitions/download_school_template.xlsx")},children:["下载模版",(0,g.jsx)("i",{className:"iconfont icon-xiazai5 font14 ml5"})]})]})})})]}),(0,g.jsx)("div",{className:PA,children:"报名者条件"}),(0,g.jsxs)("div",{className:EA,children:[(0,g.jsx)(Sc.Z.Item,{label:"报名条件",name:"is_authentication",className:KA,style:{marginTop:"-10px"},colon:!1,children:(0,g.jsxs)(sI.Z,{checked:B,onChange:function(e){var t;return R(null==e||null===(t=e.target)||void 0===t?void 0:t.checked)},children:["实名认证",(0,g.jsx)("span",{className:$A,children:"(参赛人员账号必须实名认证)"})]})}),(0,g.jsx)(Sc.Z.Item,{label:" ",name:"need_phone",style:{marginTop:"-10px"},colon:!1,children:(0,g.jsxs)(sI.Z,{checked:z,onChange:function(e){var t;return j(null==e||null===(t=e.target)||void 0===t?void 0:t.checked)},children:["绑定手机",(0,g.jsx)("span",{className:$A,children:"(参赛人员账号必须绑定手机号)"})]})}),(0,g.jsx)(Sc.Z.Item,{label:" ",name:"need_mail",style:{marginTop:"-10px"},colon:!1,children:(0,g.jsxs)(sI.Z,{checked:Z,onChange:function(e){var t;return K(null==e||null===(t=e.target)||void 0===t?void 0:t.checked)},children:["绑定邮箱",(0,g.jsx)("span",{className:$A,children:"(参赛人员账号必须绑定邮箱)"})]})}),(0,g.jsx)("div",{style:{display:"flex",marginBottom:20},children:(0,g.jsxs)("div",{style:{paddingLeft:50,textAlign:"end"},children:["报名信息 ",(0,g.jsx)("span",{style:{marginLeft:0},className:$A,children:"(参赛人员报名时需填写的信息)"})]})}),(0,g.jsxs)(Sc.Z.Item,{label:" ",children:[(0,g.jsxs)(dh.Z,{wrap:!1,gutter:10,children:[(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_name",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"姓名"})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_student_id",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"学号"})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_sex",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"性别"})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_phone",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"电话"})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_grade",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"年级"})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_teacher_name",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"指导老师姓名"})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_teacher_phone",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"指导老师联系方式"})})})]}),(0,g.jsxs)(dh.Z,{wrap:!1,gutter:10,style:{marginTop:"-12px"},children:[(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_school",valuePropName:"checked",children:(0,g.jsxs)(sI.Z,{children:["学校/单位",(0,g.jsx)(tc.Z,{title:"开启后,参赛人员填写报名信息时,可选的学校/单 位选项与“开放范围-选择院校”所列出的院校一致。",children:(0,g.jsx)("i",{className:"iconfont icon-jinggao-3",style:{color:"#9096A3",marginLeft:10}})}),(0,g.jsx)("span",{style:{color:"#9096A3"},children:"(与“开放范围”包含院校一致)"})]})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"need_apply_id_number",valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"身份证号码"})})})]})]})]}),(0,g.jsx)("div",{className:PA,children:"参赛模式"}),(0,g.jsxs)("div",{className:EA,children:[(0,g.jsx)(Sc.Z.Item,{label:" ",name:"personal",colon:!1,children:(0,g.jsxs)(ih.ZP.Group,{disabled:"progressing"==(null==Se?void 0:Se.competition_status)||"ended"==(null==Se?void 0:Se.competition_status),children:[(0,g.jsx)(ih.ZP,{value:!1,style:{width:"120px"},children:"战队赛"}),(0,g.jsx)(ih.ZP,{value:!0,style:{width:"120px"},children:"个人赛"})]})}),0==f.getFieldValue("personal")&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Sc.Z.Item,{className:TA,style:{marginTop:"-2px"},label:" ",colon:!1,children:(0,g.jsxs)("div",{style:{display:"flex"},children:[(0,g.jsx)("span",{style:{margin:"0 10px 0 -50px"},children:"学生数"}),(0,g.jsx)(Sc.Z.Item,{name:"student_min",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,g.jsx)(kc.Z,{style:{width:"100px"}})}),(0,g.jsx)("span",{style:{margin:"0 10px"},children:"至"}),(0,g.jsx)(Sc.Z.Item,{name:"student_max",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,g.jsx)(kc.Z,{style:{width:"100px"}})}),(0,g.jsx)("span",{style:{margin:"0 10px"},children:"人"}),(0,g.jsx)(Sc.Z.Item,{name:"student_checkbox",children:(0,g.jsx)(sI.Z,{style:{marginLeft:"20px"},disabled:3===(null==Se?void 0:Se.mode),checked:V,onChange:function(e){var t;return W(null==e||null===(t=e.target)||void 0===t?void 0:t.checked)},children:(0,g.jsx)("span",{children:"不可存在多个战队中"})})})]})}),(0,g.jsx)(Sc.Z.Item,{className:TA,style:{marginTop:"-12px"},label:" ",name:"competition_staffs",colon:!1,children:(0,g.jsxs)("div",{style:{display:"flex"},children:[(0,g.jsx)("span",{style:{margin:"0 10px 0 -50px"},children:"教师数"}),(0,g.jsx)(Sc.Z.Item,{name:"teacher_min",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,g.jsx)(kc.Z,{style:{width:"100px"}})}),(0,g.jsx)("span",{style:{margin:"0 10px"},children:"至"}),(0,g.jsx)(Sc.Z.Item,{name:"teacher_max",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,g.jsx)(kc.Z,{style:{width:"100px"}})}),(0,g.jsx)("span",{style:{margin:"0 10px"},children:"人"}),(0,g.jsx)(Sc.Z.Item,{name:"teacher_checkbox",children:(0,g.jsx)(sI.Z,{style:{marginLeft:"20px"},disabled:3===(null==Se?void 0:Se.mode),checked:X,onChange:function(e){var t;return Q(null==e||null===(t=e.target)||void 0===t?void 0:t.checked)},children:(0,g.jsx)("span",{children:"不可存在多个战队中"})})})]})})]}),1==f.getFieldValue("personal")&&(0,g.jsx)(Sc.Z.Item,{label:" ",children:(0,g.jsxs)(dh.Z,{wrap:!1,gutter:10,children:[(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"is_student",style:{marginTop:"-12px"},valuePropName:"checked",normalize:function(e,t,n){return e||n.is_teacher||n.is_professional?e:(ec.ZP.warning("请选择至少一种身份可以报名参赛"),!(e||n.is_teacher||n.is_professional))},children:(0,g.jsx)(sI.Z,{children:"学生身份参赛"})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"is_teacher",style:{marginTop:"-12px"},valuePropName:"checked",normalize:function(e,t,n){return e||n.is_student||n.is_professional?e:(ec.ZP.warning("请选择至少一种身份可以报名参赛"),!(e||n.is_student||n.is_professional))},children:(0,g.jsx)(sI.Z,{children:"教师身份参赛"})})}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{name:"is_professional",style:{marginTop:"-12px"},valuePropName:"checked",normalize:function(e,t,n){return e||n.is_teacher||n.is_student?e:(ec.ZP.warning("请选择至少一种身份可以报名参赛"),!(e||n.is_teacher||n.is_student))},children:(0,g.jsx)(sI.Z,{children:"专业人士身份参赛"})})})]})})]})]}),(0,g.jsx)("div",{className:HA,children:(0,g.jsx)(uI,{className:ZA,htmlType:"submit",onClick:a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),children:"保存更改"})})]}),(0,g.jsx)(hh.Z,{centered:!0,title:"以下数据导入失败",open:pe,okText:"确定",cancelText:"取消",onOk:function(){fe(!1)},onCancel:function(){fe(!1)},children:(0,g.jsx)(xA.Z,{bordered:!0,scroll:{y:400},columns:1==f.getFieldValue("rule")?[{title:"手机号",dataIndex:"phone"},{title:"姓名",dataIndex:"name"},{title:"邮箱",dataIndex:"email"}]:[{title:"ID",dataIndex:"phone"},{title:"学校/单位",dataIndex:"name"}],dataSource:ve,pagination:!1,rowKey:function(e){return e.name}})})]})})),fI={flex_box_center:"flex_box_center___TUtVx",flex_space_between:"flex_space_between___skxVP",flex_box_vertical_center:"flex_box_vertical_center____enb6",flex_box_center_end:"flex_box_center_end___lO_Gq",flex_box_column:"flex_box_column___QrhZ_",all:"all___GiQqZ",title:"title___YtceA",content:"content___Es9RO",content_icon:"content_icon___SNFzF",content_info:"content_info___rSAWs",content_title:"content_title___Hkmmk",content_size:"content_size___jLmmn",content_img:"content_img___NRn9i",content_img2:"content_img2___D23TM"},gI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA+9JREFUWEeVl12IVVUUx39rnyuj2UswQiEp1osURFESPoimkPgShJMQQ2UFDsOoEYmOn4yUToXcoSxNsYJewg+klxgJJ8GnqPzoSURUQh998MGBKWdcsvc959599t3nwwuXc+496+z1X//1LXqEXv7jMLCGhLkIkAAm/drf2b292mfhf/7z2L2V1/Q93P0khnGUQdEmJxH6ckoyBb6yR1WcGeJfW8pbBrSup0QPcA9hbs5inwFrkc9KeP8orESYEP0CzVkfUuhb4CvLQMYAlbkkACE6WgGg6LAqN4Uu839nICy5ug/NBVaRr8vckL0TshKy5xtjnzkAn3kMxKyqivDwUMMUDf5CmCFhCaTx5YPM9DgAeyMuKKMvUxhjSrhAD2tlLf+6gD/DU0xxnIRl7UAOjBQdCQD4AlkG1Iv0+xgWSz83WuS2PvorTzLNNQyPd6V6YhnYE7igyo/F9eCCvMcrvvI2iF84i7Aqx0KqR3RXrSx4gEHSb6cu5Om8KO/zchTAaSYQVnalu1gGdlQASFyWLEe4heEs8Gw7a/Js3aeH56WfazkXnGA+wlWMV+y8wBUdDgB0U/y7DLPK+XOMFzH8gdDTVR1bcXIZQ5+s57qT/5mngeMYlhYVO9GtXh2I+bfBRhnm27Y/xxgCvmk3rLB5Gf7HOCAzCC9hmF3WwES3FBQiC8bSP4sFso3bOVqbnMbwZiyqo5bGGlPqBtFP0K7o7LTbP2WEV8PA0kM8wRSXMCysVBj2j6A6in6cxkA3lZaB7TLC59HIHmMpcB5DIzofJPyEcBfDZgeyoJSLflSQBfaFOSyW3VyNAXBBdoBhDKNtFjrl9ksZYJuT+YETGN6KtnuXhpsilbDl/yuyn+eKlLvDrfOanMHwepuFhAnmsVrWMeNkfmQFyrkiV4kOFTDQYL+MsrMMgFPwNfOYdpXuBYSLzGG1DHCnnTUW5Pdcx7AoBkJ0sADAbJbIPv6uApAyYTjIIjZxU4QHXUF7jD0Ie2OxIjoQSUPDLWmyoI7yOjJ6jIUoNxFXzltDbhovohsi88AsDkqTzXUOryujR5kAVoZFSfTDFIA/MCQMyVccqnt4HTn9jk8RdnnB6lJT9INoDIzTyxsywnSdw6tk9BwNrvAbwmthOoquL6wDN2jwTzpadZaRol3BLzT5nmIbuW1iz8TngXdrzQPxSlY2Q9ZZZJwL3gl6QdFqFdsD/PUtNnTWGOVE+1MAZcNmFahwduyelDv7pr9Xupnwbe65aaVshi+jM2xivoKMAR9g3tBJ0XWcJKEvTI/cwOFbVGdxKVvv8kvMKctAL8phDGvcEhFTUGdPKHJTfB6YRBjnMQYfAr/L5O84EyIQAAAAAElFTkSuQmCC",mI=["competitions","globalSetting","loading","dispatch","user"],vI=(0,d.connect)((function(e){var t=e.competitions,n=e.loading,i=e.globalSetting,r=e.user;return{competitions:t,globalSetting:i,loading:n.models.competitions,user:r}}))((function(e){var t=e.competitions,n=(e.globalSetting,e.loading,e.dispatch),i=(e.user,Bl()(e,mI)),o=(0,c.useState)(""),s=l()(o,2),u=s[0],d=s[1],p=(0,c.useState)(""),f=l()(p,2),m=f[0],v=f[1],y=Sc.Z.useForm(),b=l()(y,1)[0],w=t.Header,x=(0,c.useState)(!0),S=l()(x,2),k=S[0],_=S[1];(0,c.useEffect)((function(){C()}),[]),(0,c.useEffect)((function(){_(null==w?void 0:w.is_show_picture),b.setFieldValue("apply_success_tips",(null==w?void 0:w.apply_success_tips)||"参赛者可扫码加入大赛官方交流群,获取最新竞赛通知")}),[w]);var C=function(){(0,$L.Mn)(null==i?void 0:i.competitionId).then((function(e){var t,n;0==(null==e?void 0:e.status)?(d(null==e||null===(t=e.data)||void 0===t?void 0:t.competition_image),v(null==e||null===(n=e.data)||void 0===n?void 0:n.qr_code_image),null==i||i.loadingFunction(!1)):ec.ZP.error(null==e?void 0:e.message)}))},P=function(e,t){(0,$L.o3)(null==i?void 0:i.competitionId).then((function(r){var o=new FormData;o.append("file",null==e?void 0:e.file),o.append("source_id",null==r?void 0:r.id),o.append("source_type",t),(0,pd.ZP)("/api/competitions/set_attachments.json",{method:"post",body:o},!0).then((function(e){"success"==(null==e?void 0:e.message)?(ec.ZP.success("上传成功"),C(),n({type:"competitions/getStaff",payload:{identifier:null==i?void 0:i.competitionId}}),n({type:"competitions/getHeader",payload:{identifier:null==i?void 0:i.competitionId}})):ec.ZP.error(null==e?void 0:e.message)}))}))};function E(e){return M.apply(this,arguments)}function M(){return(M=a()(r()().mark((function e(t){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pd.ZP)("/api/competitions/".concat(w.identifier,"/update_picture_settings.json"),{method:"post",body:t});case 2:0===(null==(i=e.sent)?void 0:i.status)&&(ec.ZP.info("更新成功"),n({type:"competitions/getHeader",payload:{identifier:w.identifier}}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,g.jsxs)("div",{className:fI.all,children:[(0,g.jsx)("div",{className:fI.title,children:"图片设置"}),(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{style:{marginTop:48,marginLeft:50,fontSize:14,color:"#232B40"},children:"竞赛海报"}),(0,g.jsxs)("div",{className:fI.content,children:[(0,g.jsx)("img",{src:gI,className:fI.content_icon}),(0,g.jsxs)("div",{className:fI.content_info,children:[(0,g.jsx)(TL,{accept:"image/*",customRequest:function(e){return P(e,"Competition")},showUploadList:!1,children:(0,g.jsx)("div",{className:fI.content_title,children:"上传竞赛封面图"})}),(0,g.jsx)("div",{className:fI.content_size,children:"图片尺寸:792 x 340"})]}),(0,g.jsx)("img",{src:u,className:fI.content_img})]})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{style:{marginTop:48,marginLeft:50,fontSize:14,color:"#232B40"},children:"报名成功弹窗"}),(0,g.jsxs)("div",{className:fI.content,style:{borderBottom:0},children:[(0,g.jsx)("img",{src:gI,className:fI.content_icon}),(0,g.jsxs)("div",{className:fI.content_info,children:[(0,g.jsx)(TL,{accept:"image/*",customRequest:function(e){return P(e,"Competition_code")},showUploadList:!1,children:(0,g.jsx)("div",{className:fI.content_title,children:"上传交流群二维码"})}),(0,g.jsx)("div",{className:fI.content_size,children:"图片尺寸:160 x 160"})]}),(0,g.jsx)("img",{src:m,className:fI.content_img2})]}),(0,g.jsxs)("div",{style:{marginLeft:50,marginRight:50},children:[(0,g.jsxs)("div",{children:["展示二维码",(0,g.jsx)(Zd,{checked:k,onChange:function(e){var t;_(e),E({is_show_picture:e,apply_success_tips:null===(t=b.getFieldsValue())||void 0===t?void 0:t.apply_success_tips})},style:{marginLeft:10}})]}),(0,g.jsx)(Sc.Z,{size:"large",form:b,onFinish:function(e){E(h()({is_show_picture:k},e))},style:{marginTop:20},children:(0,g.jsx)(Sc.Z.Item,{label:(0,g.jsxs)("div",{children:[(0,g.jsx)("span",{style:{color:"#ff4d4f",marginRight:"4px",fontFamily:"SimSun, sans-serif"},children:"*"}),"报名成功提示"]}),colon:!1,children:(0,g.jsxs)("div",{style:{display:"flex"},children:[(0,g.jsx)(Sc.Z.Item,{style:{width:"100%"},colon:!1,name:"apply_success_tips",children:(0,g.jsx)(kc.Z,{autoComplete:"off",style:{width:"100%"},className:fI.form_item_item,placeholder:"请输入报名成功提示",onBlur:function(){return b.submit()}})}),(0,g.jsx)(Ml.ZP,{onClick:function(){var e;hh.Z.confirm({title:!1,closable:!0,icon:null,footer:!1,content:(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{style:{fontSize:26,color:"#3d3d3d",textAlign:"center",marginBottom:20},children:[(0,g.jsx)("i",{style:{fontSize:26,color:"#52C41A"},className:"iconfont icon-tongguo"})," 报名成功"]}),(0,g.jsxs)("div",{style:{alignItems:"center",textAlign:"center"},children:[k&&(0,g.jsx)("img",{style:{width:180,border:"1px solid #eeeeef",padding:10,marginBottom:20},src:kl.Z.IMG_SERVER+(null==w?void 0:w.QR_code)}),(0,g.jsx)("p",{style:{color:"#AAAAAA"},children:null===(e=b.getFieldsValue())||void 0===e?void 0:e.apply_success_tips})]})]})})},style:{marginLeft:10},type:"primary",children:"示例"})]})})})]})]})]})})),yI="all___d1AWD",bI="title___VIjuM",wI="add_people___qkPex",xI="people_icon___lz5gl",SI="content___a8dSX",kI="content_info___ekLIa",_I="info_icon___kXP8P",CI="info_title___Hld67",PI="info_content___kbIuT",EI="info_content_icon___uNxzs",MI="info_content_title___IfIi8",LI="info_open___NzrUi",AI="info_delete___rZhhO",TI="questions_info___n9Fnq",DI="form_item___oxzha",NI="form_item_item___yPf7l",II="form_item_small___EkG9G",BI="guanka_title___uUWQl",RI="nandu_1___qifbd",OI="nandu_2___qVJU8",FI="nandu_3___NRfLL",zI="close_icon___f2hON",jI="footer___UDiYB",$I="save_button___t7iMm",HI="textone___TAI4F",ZI="deletecolor___ldQnR",KI="qselect___uuNp6",GI="qinput___xHGmH",UI="modalclass___dPDG7",VI="popu___G8M92",WI="pingcesetting___zHJaT",qI=n(43403),YI=c.createContext(null),XI=c.createContext({}),QI=YI,JI=["prefixCls","className","containerRef"];var eB=function(e){var t=e.prefixCls,n=e.className,i=e.containerRef,r=(0,Qc.Z)(e,JI),o=c.useContext(XI).panel,a=(0,gu.x1)(o,i);return c.createElement("div",(0,Ll.Z)({className:f()("".concat(t,"-content"),n),role:"dialog",ref:a},(0,DE.Z)(e,{aria:!0}),{"aria-modal":"true"},r))};function tB(e){return"string"==typeof e&&String(Number(e))===e?((0,mu.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var nB={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function iB(e,t){var n,i,r,o=e.prefixCls,a=e.open,s=e.placement,l=e.inline,u=e.push,h=e.forceRender,d=e.autoFocus,p=e.keyboard,g=e.classNames,m=e.rootClassName,v=e.rootStyle,y=e.zIndex,b=e.className,w=e.id,x=e.style,S=e.motion,k=e.width,_=e.height,C=e.children,P=e.mask,E=e.maskClosable,M=e.maskMotion,L=e.maskClassName,A=e.maskStyle,T=e.afterOpenChange,D=e.onClose,N=e.onMouseEnter,I=e.onMouseOver,B=e.onMouseLeave,R=e.onClick,O=e.onKeyDown,F=e.onKeyUp,z=e.styles,j=e.drawerRender,$=c.useRef(),H=c.useRef(),Z=c.useRef();c.useImperativeHandle(t,(function(){return $.current}));c.useEffect((function(){var e;a&&d&&(null===(e=$.current)||void 0===e||e.focus({preventScroll:!0}))}),[a]);var K=c.useState(!1),G=(0,Xc.Z)(K,2),U=G[0],V=G[1],W=c.useContext(QI),q=null!==(n=null!==(i=null===(r="boolean"==typeof u?u?{}:{distance:0}:u||{})||void 0===r?void 0:r.distance)&&void 0!==i?i:null==W?void 0:W.pushDistance)&&void 0!==n?n:180,Y=c.useMemo((function(){return{pushDistance:q,push:function(){V(!0)},pull:function(){V(!1)}}}),[q]);c.useEffect((function(){var e,t;a?null==W||null===(e=W.push)||void 0===e||e.call(W):null==W||null===(t=W.pull)||void 0===t||t.call(W)}),[a]),c.useEffect((function(){return function(){var e;null==W||null===(e=W.pull)||void 0===e||e.call(W)}}),[]);var X=P&&c.createElement(gM.ZP,(0,Ll.Z)({key:"mask"},M,{visible:a}),(function(e,t){var n=e.className,i=e.style;return c.createElement("div",{className:f()("".concat(o,"-mask"),n,null==g?void 0:g.mask,L),style:(0,LE.Z)((0,LE.Z)((0,LE.Z)({},i),A),null==z?void 0:z.mask),onClick:E&&a?D:void 0,ref:t})})),Q="function"==typeof S?S(s):S,J={};if(U&&q)switch(s){case"top":J.transform="translateY(".concat(q,"px)");break;case"bottom":J.transform="translateY(".concat(-q,"px)");break;case"left":J.transform="translateX(".concat(q,"px)");break;default:J.transform="translateX(".concat(-q,"px)")}"left"===s||"right"===s?J.width=tB(k):J.height=tB(_);var ee={onMouseEnter:N,onMouseOver:I,onMouseLeave:B,onClick:R,onKeyDown:O,onKeyUp:F},te=c.createElement(gM.ZP,(0,Ll.Z)({key:"panel"},Q,{visible:a,forceRender:h,onVisibleChanged:function(e){null==T||T(e)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),(function(t,n){var i=t.className,r=t.style,a=c.createElement(eB,(0,Ll.Z)({id:w,containerRef:n,prefixCls:o,className:f()(b,null==g?void 0:g.content),style:(0,LE.Z)((0,LE.Z)({},x),null==z?void 0:z.content)},(0,DE.Z)(e,{aria:!0}),ee),C);return c.createElement("div",(0,Ll.Z)({className:f()("".concat(o,"-content-wrapper"),null==g?void 0:g.wrapper,i),style:(0,LE.Z)((0,LE.Z)((0,LE.Z)({},J),r),null==z?void 0:z.wrapper)},(0,DE.Z)(e,{data:!0})),j?j(a):a)})),ne=(0,LE.Z)({},v);return y&&(ne.zIndex=y),c.createElement(QI.Provider,{value:Y},c.createElement("div",{className:f()(o,"".concat(o,"-").concat(s),m,(0,qc.Z)((0,qc.Z)({},"".concat(o,"-open"),a),"".concat(o,"-inline"),l)),style:ne,tabIndex:-1,ref:$,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case Ld.Z.TAB:var i;if(t===Ld.Z.TAB)if(n||document.activeElement!==Z.current){if(n&&document.activeElement===H.current){var r;null===(r=Z.current)||void 0===r||r.focus({preventScroll:!0})}}else null===(i=H.current)||void 0===i||i.focus({preventScroll:!0});break;case Ld.Z.ESC:D&&p&&(e.stopPropagation(),D(e))}}},X,c.createElement("div",{tabIndex:0,ref:H,style:nB,"aria-hidden":"true","data-sentinel":"start"}),te,c.createElement("div",{tabIndex:0,ref:Z,style:nB,"aria-hidden":"true","data-sentinel":"end"})))}var rB=c.forwardRef(iB);var oB=function(e){var t=e.open,n=void 0!==t&&t,i=e.prefixCls,r=void 0===i?"rc-drawer":i,o=e.placement,a=void 0===o?"right":o,s=e.autoFocus,l=void 0===s||s,u=e.keyboard,h=void 0===u||u,d=e.width,p=void 0===d?378:d,f=e.mask,g=void 0===f||f,m=e.maskClosable,v=void 0===m||m,y=e.getContainer,b=e.forceRender,w=e.afterOpenChange,x=e.destroyOnClose,S=e.onMouseEnter,k=e.onMouseOver,_=e.onMouseLeave,C=e.onClick,P=e.onKeyDown,E=e.onKeyUp,M=e.panelRef,L=c.useState(!1),A=(0,Xc.Z)(L,2),T=A[0],D=A[1];var N=c.useState(!1),I=(0,Xc.Z)(N,2),B=I[0],R=I[1];(0,fu.Z)((function(){R(!0)}),[]);var O=!!B&&n,F=c.useRef(),z=c.useRef();(0,fu.Z)((function(){O&&(z.current=document.activeElement)}),[O]);var j=c.useMemo((function(){return{panel:M}}),[M]);if(!b&&!T&&!O&&x)return null;var $={onMouseEnter:S,onMouseOver:k,onMouseLeave:_,onClick:C,onKeyDown:P,onKeyUp:E},H=(0,LE.Z)((0,LE.Z)({},e),{},{open:O,prefixCls:r,placement:a,autoFocus:l,keyboard:h,width:p,mask:g,maskClosable:v,inline:!1===y,afterOpenChange:function(e){var t,n;(D(e),null==w||w(e),e||!z.current||null!==(t=F.current)&&void 0!==t&&t.contains(z.current))||(null===(n=z.current)||void 0===n||n.focus({preventScroll:!0}))},ref:F},$);return c.createElement(XI.Provider,{value:j},c.createElement(qI.Z,{open:O||b||T,autoDestroy:!1,getContainer:y,autoLock:g&&(O||T)},c.createElement(rB,H)))},aB=n(55743),sB=n(91190),lB=n(78776);var cB=e=>{var t,n;const{prefixCls:i,title:r,footer:o,extra:a,loading:s,onClose:l,headerStyle:u,bodyStyle:h,footerStyle:d,children:p,classNames:g,styles:m}=e,v=(0,Du.dj)("drawer"),y=c.useCallback((e=>c.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${i}-close`},e)),[l]),[b,w]=(0,lB.Z)((0,lB.w)(e),(0,lB.w)(v),{closable:!0,closeIconRender:y}),x=c.useMemo((()=>{var e,t;return r||b?c.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=v.styles)||void 0===e?void 0:e.header),u),null==m?void 0:m.header),className:f()(`${i}-header`,{[`${i}-header-close-only`]:b&&!r&&!a},null===(t=v.classNames)||void 0===t?void 0:t.header,null==g?void 0:g.header)},c.createElement("div",{className:`${i}-header-title`},w,r&&c.createElement("div",{className:`${i}-title`},r)),a&&c.createElement("div",{className:`${i}-extra`},a)):null}),[b,w,a,u,i,r]),S=c.useMemo((()=>{var e,t;if(!o)return null;const n=`${i}-footer`;return c.createElement("div",{className:f()(n,null===(e=v.classNames)||void 0===e?void 0:e.footer,null==g?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=v.styles)||void 0===t?void 0:t.footer),d),null==m?void 0:m.footer)},o)}),[o,d,i]);return c.createElement(c.Fragment,null,x,c.createElement("div",{className:f()(`${i}-body`,null==g?void 0:g.body,null===(t=v.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=v.styles)||void 0===n?void 0:n.body),h),null==m?void 0:m.body)},s?c.createElement(lA.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${i}-body-skeleton`}):p),S)};const uB=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},hB=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),dB=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},hB({opacity:e},{opacity:1})),pB=(e,t)=>[dB(.7,t),hB({transform:uB(e)},{transform:"none"})];var fB=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:dB(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce(((e,t)=>Object.assign(Object.assign({},e),{[`&-${t}`]:pB(t,n)})),{})}}};const gB=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:i,colorBgMask:r,colorBgElevated:o,motionDurationSlow:a,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:h,lineHeightLG:d,lineWidth:p,lineType:f,colorSplit:g,marginXS:m,colorIcon:v,colorIconHover:y,colorBgTextHover:b,colorBgTextActive:w,colorText:x,fontWeightStrong:S,footerPaddingBlock:k,footerPaddingInline:_,calc:C}=e,P=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:i,pointerEvents:"none",color:x,"&-pure":{position:"relative",background:o,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:i,background:r,pointerEvents:"auto"},[P]:{position:"absolute",zIndex:i,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${P}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${P}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${P}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${P}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,ju.bf)(c)} ${(0,ju.bf)(u)}`,fontSize:h,lineHeight:d,borderBottom:`${(0,ju.bf)(p)} ${f} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:C(h).add(l).equal(),height:C(h).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:m,color:v,fontWeight:S,fontSize:h,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:y,backgroundColor:b,textDecoration:"none"},"&:active":{backgroundColor:w}},(0,Ku.Qy)(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:h,lineHeight:d},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${(0,ju.bf)(k)} ${(0,ju.bf)(_)}`,borderTop:`${(0,ju.bf)(p)} ${f} ${g}`},"&-rtl":{direction:"rtl"}}}};var mB=(0,Uu.I$)("Drawer",(e=>{const t=(0,Vu.IX)(e,{});return[gB(t),fB(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}))),vB=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{rootClassName:t,width:n,height:i,size:r="default",mask:o=!0,push:a=yB,open:s,afterOpenChange:l,onClose:u,prefixCls:h,getContainer:d,style:p,className:g,visible:m,afterVisibleChange:v,maskStyle:y,drawerStyle:b,contentWrapperStyle:w}=e,x=vB(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:S,getPrefixCls:k,direction:_,className:C,style:P,classNames:E,styles:M}=(0,Du.dj)("drawer"),L=k("drawer",h),[A,T,D]=mB(L),N=void 0===d&&S?()=>S(document.body):d,I=f()({"no-mask":!o,[`${L}-rtl`]:"rtl"===_},t,T,D);const B=c.useMemo((()=>null!=n?n:"large"===r?736:378),[n,r]),R=c.useMemo((()=>null!=i?i:"large"===r?736:378),[i,r]),O={motionName:(0,yM.m)(L,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},F=(0,sB.H)(),[z,j]=(0,wN.Cn)("Drawer",x.zIndex),{classNames:$={},styles:H={}}=x;return A(c.createElement(Au.Z,{form:!0,space:!0},c.createElement(aB.Z.Provider,{value:j},c.createElement(oB,Object.assign({prefixCls:L,onClose:u,maskMotion:O,motion:e=>({motionName:(0,yM.m)(L,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},x,{classNames:{mask:f()($.mask,E.mask),content:f()($.content,E.content),wrapper:f()($.wrapper,E.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},H.mask),y),M.mask),content:Object.assign(Object.assign(Object.assign({},H.content),b),M.content),wrapper:Object.assign(Object.assign(Object.assign({},H.wrapper),w),M.wrapper)},open:null!=s?s:m,mask:o,push:a,width:B,height:R,style:Object.assign(Object.assign({},P),p),className:f()(C,g),rootClassName:I,getContainer:N,afterOpenChange:null!=l?l:v,panelRef:F,zIndex:z}),c.createElement(cB,Object.assign({prefixCls:L},x,{onClose:u}))))))};bB._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:i,placement:r="right"}=e,o=vB(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=c.useContext(Du.E_),s=a("drawer",t),[l,u,h]=mB(s),d=f()(s,`${s}-pure`,`${s}-${r}`,u,h,i);return l(c.createElement("div",{className:d,style:n},c.createElement(cB,Object.assign({prefixCls:s},o))))};var wB=bB;const xB=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:r,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,Ku.Wf)(e)),{borderBlockStart:`${(0,ju.bf)(r)} solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,ju.bf)(r)} solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,ju.bf)(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,ju.bf)(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,ju.bf)(r)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${(0,ju.bf)(r)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:i,borderStyle:"dotted",borderWidth:`${(0,ju.bf)(r)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var SB=(0,Uu.I$)("Divider",(e=>{const t=(0,Vu.IX)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[xB(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}}),kB=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n,className:i,style:r}=(0,Du.dj)("divider"),{prefixCls:o,type:a="horizontal",orientation:s="center",orientationMargin:l,className:u,rootClassName:h,children:d,dashed:p,variant:g="solid",plain:m,style:v}=e,y=kB(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),b=t("divider",o),[w,x,S]=SB(b),k=!!d,_=c.useMemo((()=>"left"===s?"rtl"===n?"end":"start":"right"===s?"rtl"===n?"start":"end":s),[n,s]),C="start"===_&&null!=l,P="end"===_&&null!=l,E=f()(b,i,x,S,`${b}-${a}`,{[`${b}-with-text`]:k,[`${b}-with-text-${_}`]:k,[`${b}-dashed`]:!!p,[`${b}-${g}`]:"solid"!==g,[`${b}-plain`]:!!m,[`${b}-rtl`]:"rtl"===n,[`${b}-no-default-orientation-margin-start`]:C,[`${b}-no-default-orientation-margin-end`]:P},u,h),M=c.useMemo((()=>"number"==typeof l?l:/^\d+$/.test(l)?Number(l):l),[l]),L={marginInlineStart:C?M:void 0,marginInlineEnd:P?M:void 0};return w(c.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},r),v)},y,{role:"separator"}),d&&"vertical"!==a&&c.createElement("span",{className:`${b}-inner-text`,style:L},d)))},CB="drawer___HuOiD",PB="menu___JTt0c",EB="actived___zd6GY",MB="actived2___hNW2h",LB="subTag___rHkqz",AB="listItem___dr1wg",TB="info___bpBpK",DB="title___typIH",NB="titleLeft___b4niC",IB="filter___HBJIT",BB="description___Rqa6Q",RB="menuCourse____Msk3",OB="button_right___T8tiB",FB=n(71283),zB={search:"search___JA0r9",btn:"btn___GGtZC"},jB=function(e){var t=e.value,n=e.onChange,i=Sc.Z.useForm(),r=l()(i,1)[0],o=(0,c.useRef)(!1);(0,c.useEffect)((function(){t&&r.setFieldsValue(t)}),t);return(0,g.jsx)("div",{className:zB.search,children:(0,g.jsxs)(Sc.Z,{className:zB.formWrap,colon:!1,form:r,size:"large",layout:"inline",onFinish:function(e){o.current||function(e){o.current||n(e),o.current=!0,setTimeout((function(){o.current=!1}),2e3)}(e)},children:[(0,g.jsx)(Sc.Z.Item,{label:"实践项目名称",name:"keyword",initialValue:"",children:(0,g.jsx)(kc.Z,{style:{width:280,height:40}})}),(0,g.jsx)(Sc.Z.Item,{label:"学校/单位",name:"schools",initialValue:"",style:{margin:"0 40px"},children:(0,g.jsx)(kc.Z,{style:{width:280,height:40}})}),(0,g.jsx)(Sc.Z.Item,{label:"创建者/合作者",name:"creator",initialValue:"",children:(0,g.jsx)(kc.Z,{style:{width:200,height:40}})}),(0,g.jsx)(Ml.ZP,{className:zB.btn,type:"primary",htmlType:"submit",children:"搜索"})]})})},$B="brief___LOzpE",HB="contentTitle___xkdcN",ZB="content___Vtri0",KB="antdTable___s8T2N",GB="tableCell___kN9Fw",UB="antdModal___WVBk3",VB="orangeColor___ryB2u",WB=n(18240),qB=["isImportMultipleCourse"],YB=function(e){var t=e.studentNames,n=e.total;return n>3?(0,g.jsxs)(g.Fragment,{children:["课堂内有",(0,g.jsx)("span",{className:VB,children:null==t?void 0:t.join("、")}),"等",(0,g.jsx)("span",{className:VB,children:n}),"名学生"]}):(0,g.jsxs)(g.Fragment,{children:["课堂内有",(0,g.jsx)("span",{className:VB,children:null==t?void 0:t.join("、")}),["","一","两","三"][n],"名学生"]})},XB=function(e){var t=e.onCancel,n=e.onOk,i=e.visible,o=(e.inPaper,e.renderData),s=(e.type,e.isMultipleCourse),u=void 0!==s&&s,d=Sc.Z.useForm(),p=l()(d,1)[0],f=(0,c.useState)(1),m=l()(f,2),v=m[0],y=m[1],b=(0,c.useState)(!1),w=l()(b,2),x=w[0],S=w[1],k=(0,c.useMemo)((function(){return 1===(null==o?void 0:o.total_num)&&1===(null==o?void 0:o.can_copy_num)}),[o]),_=(0,c.useMemo)((function(){var e;return null==o||null===(e=o.course_data_list)||void 0===e?void 0:e.filter((function(e){return e.is_show}))}),[o]);return(0,g.jsx)(g.Fragment,{children:k?(0,g.jsxs)(hh.Z,{centered:!0,closable:!0,open:i,destroyOnClose:!0,title:"提示",className:UB,width:682,confirmLoading:x,onCancel:t,onOk:a()(r()().mark((function e(){var t,i,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(!0),t=v,u&&(a=h()({},p.getFieldsValue()),t=null==o||null===(i=o.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==a[e.id]?h()(h()({},e),{},{is_copy:a[e.id]}):e}))),e.next=5,n(t);case 5:S(!1);case 6:case"end":return e.stop()}}),e)}))),children:[(0,g.jsx)("div",{className:ZB,style:{marginBottom:20},children:u?"检测到以下课堂已在教学课堂中使用,请问是否复制成新的实训发送至教学课堂中?":(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(YB,{studentNames:null==o?void 0:o.student_names,total:null==o?void 0:o.student_count}),"学习过该实践项目。该项目支持复制,请选择是否将该项目复制为新项目发送至课堂中?"]})}),u?(0,g.jsx)(Sc.Z,{form:p,preserve:!1,children:null==_?void 0:_.map((function(e){return(0,g.jsxs)(c.Fragment,{children:[(0,g.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,g.jsx)(Sc.Z.Item,{name:e.id,initialValue:1,children:(0,g.jsxs)(ih.ZP.Group,{className:ZB,children:[(0,g.jsx)(ih.ZP,{value:1,style:{color:"#464f66"},children:"复制实训"}),(0,g.jsx)(ih.ZP,{value:0,style:{color:"#464f66"},children:"不复制实训"})]})})]},e.id)}))}):(0,g.jsxs)(ih.ZP.Group,{value:v,onChange:function(e){return y(e.target.value)},className:ZB,style:{marginBottom:30},children:[(0,g.jsx)(ih.ZP,{value:1,style:{color:"#464f66"},children:"复制"}),(0,g.jsx)(ih.ZP,{value:0,style:{color:"#464f66"},children:"不复制"})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:ZB,style:{marginBottom:10},children:"* 说明:"}),(0,g.jsx)("div",{className:ZB,style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,g.jsx)("div",{className:"".concat(ZB," ").concat(VB),children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]})]}):(0,g.jsx)(hh.Z,{centered:!0,closable:!0,destroyOnClose:!0,open:i,confirmLoading:x,title:"提示",width:682,onCancel:t,onOk:a()(r()().mark((function e(){var t,i,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(!0),t=0,u&&(a=h()({},p.getFieldsValue()),t=null==o||null===(i=o.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==a[e.id]?h()(h()({},e),{},{is_use:a[e.id]}):e}))),e.next=5,n(t);case 5:S(!1);case 6:case"end":return e.stop()}}),e)}))),children:(0,g.jsxs)("div",{className:ZB,children:[(0,g.jsx)(YB,{studentNames:null==o?void 0:o.student_names,total:null==o?void 0:o.student_count}),"学习过该实践项目。",u?(0,g.jsxs)(Sc.Z,{form:p,preserve:!1,children:[(0,g.jsx)("h3",{children:"当前实训不可复制,已经检测到以下课堂存在该实训,同一实训在课堂中重复使用时,会导致成绩互相影响,请确认是否继续使用"}),null==_?void 0:_.map((function(e){return(0,g.jsxs)(c.Fragment,{children:[(0,g.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,g.jsx)(Sc.Z.Item,{name:e.id,initialValue:1,children:(0,g.jsxs)(ih.ZP.Group,{className:ZB,children:[(0,g.jsx)(ih.ZP,{value:1,style:{color:"#464f66"},children:"继续使用"}),(0,g.jsx)(ih.ZP,{value:0,style:{color:"#464f66"},children:"不使用"})]})})]},e.id)}))]}):(0,g.jsxs)("div",{children:["该项目不支持复制,若确认继续发送,",(0,g.jsx)("span",{className:VB,children:"当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"}),"(如果不想清空学生之前的挑战记录,建议参照该实践项目的内容自行创建一个新的项目,或者尝试联系项目创建人开放本项目的复制权限)。"]})]})})})},QB=function(e){var t=Sc.Z.useForm(),n=l()(t,1)[0],i=(0,c.useState)(!1),o=l()(i,2),s=o[0],u=o[1],h=e.onCancel,d=e.onOk,p=e.visible,f=e.inPaper,m=void 0!==f&&f,v=e.renderData,b=e.type,w=e.isMultipleCourse,x=void 0!==w&&w,S=e.position,k=(0,c.useMemo)((function(){return m?[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:GB,render:function(e,t){return(0,g.jsx)("a",{href:"/shixuns/".concat(t.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,t){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?t.stage_shixun_id:t.shixun_course_id||t.id),"is_copy"],initialValue:1,children:(0,g.jsxs)(ih.ZP.Group,{children:[(0,g.jsx)(ih.ZP,{value:1,children:"是"}),(0,g.jsx)(ih.ZP,{value:0,children:"否"})]})}),(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_use"],hidden:!0,initialValue:1,children:(0,g.jsx)(kc.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:GB,render:function(e,t){return(0,g.jsx)("a",{href:"/shixuns/".concat(t.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,t){return(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?t.stage_shixun_id:t.shixun_course_id||t.id),"is_use"],initialValue:1,children:(0,g.jsxs)(ih.ZP.Group,{children:[(0,g.jsx)(ih.ZP,{value:1,children:"是"}),(0,g.jsx)(ih.ZP,{value:0,children:"否"})]})})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,t){return(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?t.stage_shixun_id:t.shixun_course_id||t.id),"is_copy"],initialValue:1,children:(0,g.jsxs)(ih.ZP.Group,{children:[(0,g.jsx)(ih.ZP,{value:1,children:"是"}),(0,g.jsx)(ih.ZP,{value:0,children:"否"})]})})}}]}),[m]),_=(0,c.useMemo)((function(){return m?[{title:"实践项目名称",dataIndex:"name",width:424,className:GB,align:"center",ellipsis:!0,render:function(e,t){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("a",{href:"/shixuns/".concat(t.identifier,"/challenges"),target:"_blank",children:e}),(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_copy"],hidden:!0,initialValue:0,children:(0,g.jsx)(kc.Z,{type:"hidden"})}),(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_use"],hidden:!0,initialValue:1,children:(0,g.jsx)(kc.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,className:GB,ellipsis:!0,align:"center",render:function(e,t){return(0,g.jsx)("a",{href:"/shixuns/".concat(t.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,t){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_use"],initialValue:0,children:(0,g.jsxs)(ih.ZP.Group,{children:[(0,g.jsx)(ih.ZP,{value:1,children:"是"}),(0,g.jsx)(ih.ZP,{value:0,children:"否"})]})}),(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_copy"],hidden:!0,initialValue:0,children:(0,g.jsx)(kc.Z,{type:"hidden"})})]})}}]}),[m]);if(x){var C={title:"课堂名称",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:GB,render:function(e,t){return(0,g.jsx)("a",{href:"/classrooms/".concat(t.course_id),children:e})}};k=[C].concat(y()(k)),_=[C].concat(y()(_))}var P=(0,c.useMemo)((function(){return function(e){var t=e.used,n=e.copy,i=e.canNotCopy,r=e.studentNames,o=e.studentCount,a=e.inPaper,s=e.is_random,l=void 0!==s&&s,c=e.position,u=(void 0===c?"":c)||(a?"试卷":"课程");return(0,g.jsxs)("span",{children:[(0,g.jsx)(YB,{studentNames:r,total:o}),"学习过",u,"中的",(0,g.jsx)("span",{className:VB,children:t}),"个项目,",n>0&&i>0?(0,g.jsxs)(g.Fragment,{children:["其中",(0,g.jsx)("span",{className:VB,children:n}),"个项目支持复制,",(0,g.jsx)("span",{className:VB,children:i}),"个项目不支持复制"]}):n>0&&0===i?(0,g.jsxs)(g.Fragment,{children:["其中",(0,g.jsx)("span",{className:VB,children:n}),"个项目支持复制"]}):0===n&&i>0?(0,g.jsxs)(g.Fragment,{children:["其中",(0,g.jsx)("span",{className:VB,children:i}),"个项目不支持复制"]}):void 0,"。请选择",l?"":"是否继续使用和","是否复制为新项目发送至课堂中?"]})}({used:null==v?void 0:v.repeat_shixun_num,copy:null==v?void 0:v.can_copy_num,canNotCopy:null==v?void 0:v.no_copy_num,studentNames:null==v?void 0:v.student_names,studentCount:null==v?void 0:v.student_count,is_random:null==v?void 0:v.is_random,inPaper:m,position:S})}),[v,m,S]);return(0,g.jsx)(hh.Z,{title:"提示",centered:!0,open:p,confirmLoading:s,onOk:a()(r()().mark((function e(){var t,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),t=n.getFieldsValue(),i=Object.keys(t).map((function(e){return{id:parseInt(e.split("_")[0]),course_id:parseInt(e.split("_")[1]),is_use:t[e].is_use,is_copy:t[e].is_copy}})),e.next=5,d(i);case 5:u(!1);case 6:case"end":return e.stop()}}),e)}))),onCancel:h,width:880,okText:"确认",className:UB,destroyOnClose:!0,children:(0,g.jsxs)(Sc.Z,{form:n,preserve:!1,children:[(0,g.jsx)("div",{className:$B,children:P}),(0,g.jsxs)("div",{style:{marginBottom:30},children:[(0,g.jsx)("div",{style:{marginBottom:20},children:"* 说明"}),(0,g.jsx)("div",{style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,g.jsx)("div",{className:VB,children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]}),(null==v?void 0:v.can_copy_num)>0&&(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:HB,children:"支持复制的项目"}),(0,g.jsx)(xA.Z,{columns:k,className:KB,dataSource:null==v?void 0:v.can_copy_list,rowKey:"subject"===b?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})]}),(null==v?void 0:v.no_copy_num)>0&&(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:HB,children:"不支持复制的项目"}),(0,g.jsx)(xA.Z,{columns:_,className:KB,dataSource:null==v?void 0:v.no_copy_list,rowKey:"subject"===b?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})]}),(null==v?void 0:v.no_use_list.length)>0&&(null==v?void 0:v.no_use_list.map((function(e){return(0,g.jsxs)("div",{children:[(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],hidden:!0,initialValue:0,children:(0,g.jsx)(kc.Z,{type:"hidden"})}),(0,g.jsx)(Sc.Z.Item,{name:["".concat("subject"===b?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],hidden:!0,initialValue:1,children:(0,g.jsx)(kc.Z,{type:"hidden"})})]},"subject"===b?e.stage_shixun_id:e.shixun_course_id||e.id)})))]})})},JB=function(e){return"multiple"===e.modalType?(0,g.jsx)(QB,h()({},e)):(0,g.jsx)(XB,h()({},e))},eR=n(12554),tR=["classroomList","loading","dispatch","shixunsList"],nR=(kc.Z.Search,[{id:"type",name:"来源",children:[{name:"全部",id:"all",type:"type"},{name:"我的",id:"mine",type:"type"}]},{id:"diff",name:"难度",children:[{name:"全部",id:"",type:"diff"},{name:"初级",id:1,type:"diff"},{name:"中级",id:2,type:"diff"},{name:"中高级",id:3,type:"diff"},{name:"高级",id:4,type:"diff"}]}]),iR=(0,d.connect)((function(e){return{classroomList:e.classroomList,shixunsList:e.shixunsList,loading:e.loading.effects}}))((function(e){var t,n,i=e.classroomList,o=(e.loading,e.dispatch),s=e.shixunsList,u=Bl()(e,tR),p=(0,c.useState)(h()({},(0,d.useParams)())),f=l()(p,2),m=f[0],v=(f[1],i.shixunLists),b=i.shixunAiRecommendLists,w=(0,c.useState)(""),x=l()(w,2),S=x[0],k=x[1],_=(0,c.useState)({}),C=l()(_,2),P=C[0],E=C[1],M=(0,c.useState)([]),L=l()(M,2),A=L[0],T=L[1],D=(0,c.useState)(!1),N=l()(D,2),I=N[0],B=N[1],R=[{name:"最新",id:"created_at"},{name:"最热",id:"myshixuns_count"}].filter((function(e){return!!e})),O=(0,c.useState)({page:1,type:"mine",diff:"",status:"published",order:"desc",not_open:!0,limit:20,sort:"myshixuns_count",no_jupyter:1,group_id:null}),F=l()(O,2),z=F[0],j=F[1];(0,c.useEffect)((function(){$()}),[m.coursesId,z]),(0,c.useEffect)((function(){"新增赛题"===i.actionTabs.key&&(k(""),j({page:1,type:"mine",diff:"",status:"published",order:"desc",not_open:!0,limit:20,sort:"myshixuns_count",no_jupyter:1,group_id:null})),o({type:"shixunsList/getMenus",payload:{}})}),[i.actionTabs.key]),(0,c.useEffect)((function(){(null!=v&&v.shixun_list||null!=b&&b.shixun_list)&&E("recommend"===z.sort?b:v)}),[v,b]);var $=function(){var e=a()(r()().mark((function e(){var t,n,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(B(!0),t=h()({},z),"recommend"===z.sort&&(t.sort="myshixuns_count"),"recommend"!==z.sort){e.next=8;break}return e.next=6,o({type:"classroomList/getShixunAiRecommendLists",payload:h()(h()({},t),{},{course_id:m.coursesId})});case 6:e.next=11;break;case 8:return n=h()({},t),e.next=11,o({type:"classroomList/getShixunLists",payload:n});case 11:return e.next=13,(0,pd.ZP)("/api/users/user_setting_groups.json",{method:"get",params:{type:"Shixun"}});case 13:i=e.sent,T([{id:null,name:"全部"},{id:-1,name:"未加入目录"}].concat(y()((null==i?void 0:i.groups)||[]))),k(""),B(!1);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if("选用实践课程"!==i.actionTabs.key){var H=function(){var e=(0,c.useState)(!1),t=l()(e,2),n=t[0],i=t[1],o=(0,c.useState)(),s=l()(o,2),u=s[0],h=s[1],d=function(){var e=a()(r()().mark((function e(t){var n,o,a,s,l,c;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.isImportMultipleCourse,o=void 0!==n&&n,a=Bl()(t,qB),console.log(t),e.t0=null==t?void 0:t.result,e.t0){e.next=7;break}return e.next=6,(0,WB.Tr)(a);case 6:e.t0=e.sent;case 7:if(!("status"in(s=e.t0))){e.next=10;break}return e.abrupt("return",!1);case 10:if(!o){e.next=17;break}if(c=null==s||null===(l=s.course_data_list)||void 0===l?void 0:l.some((function(e){return e.is_show})),!c){e.next=16;break}return h(s),i(!0),e.abrupt("return",!0);case 16:return e.abrupt("return",s.course_data_list||[]);case 17:if(0!==s.student_count){e.next=19;break}return e.abrupt("return",!1);case 19:return h(s),i(!0),e.abrupt("return",!0);case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return[n,function(){return i(!1)},u,d]}(),Z=l()(H,4),K=Z[0],G=Z[1],U=Z[2],V=(Z[3],function(){var e=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,$L.su)({id:null==u?void 0:u.competitionId,shixun_ids:t.map((function(e){return e.id}))}).then((function(e){0==(null==e?void 0:e.status)?(ec.ZP.success("添加成功"),o({type:"classroomList/setActionTabs",payload:{}}),o({type:"competitions/getHeader",payload:{identifier:null==u?void 0:u.competitionId}}),null==u||u.queryQuetions(!0)):ec.ZP.error(null==e?void 0:e.message)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),W=(0,c.useState)(!1),q=l()(W,2),Y=q[0],X=q[1];return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(wB,{title:"选用实践项目",placement:"bottom",height:"100%",closable:!0,open:"新增赛题"===i.actionTabs.key,rootClassName:CB,destroyOnClose:!0,onClose:function(){o({type:"classroomList/setActionTabs",payload:{key:""}})},footer:(0,g.jsxs)("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,g.jsx)(Ml.ZP,{size:"middle",onClick:function(){o({type:"classroomList/setActionTabs",payload:{}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},children:"取消"}),(0,g.jsx)(Ml.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",onClick:a()(r()().mark((function e(){var t,n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!S){e.next=8;break}return X(!0),n=null==P||null===(t=P.shixun_list)||void 0===t?void 0:t.filter((function(e){return S.includes(e.identifier)})).map((function(e){return{id:e.id,is_copy:0,is_use:1}})),e.next=5,V(n);case 5:X(!1),e.next=9;break;case 8:ec.ZP.error("请选择实践项目");case 9:case"end":return e.stop()}}),e)}))),type:"primary",loading:Y,children:"确定"})]}),children:[(0,g.jsx)("section",{className:"tc",children:(0,g.jsx)(jB,{onChange:function(e){null!=e&&e.keyword.trim()&&(0,eR.tk)({name:null==e?void 0:e.keyword.trim(),copywriting:null==e?void 0:e.keyword.trim(),position:"Shixun"}),j(h()(h()({},z),{},{keyword:null==e?void 0:e.keyword.trim(),schools:null==e?void 0:e.schools.trim(),creator:null==e?void 0:e.creator.trim(),page:1}))}})}),(0,g.jsx)("section",{className:"edu-container",children:(0,g.jsx)(mh.Z,{spinning:I,children:(0,g.jsxs)("aside",{children:[nR.map((function(e,t){var n;return 0!==t?null:(0,g.jsxs)("ul",{className:PB,children:[(0,g.jsx)("li",{children:e.name}),null==e||null===(n=e.children)||void 0===n?void 0:n.map((function(t,n){return(0,g.jsx)("li",{className:z[e.id]==t.id?EB:"",onClick:function(){z[e.id]=t.id,z.page=1,j(h()({},z))},children:(0,g.jsx)("strong",{children:t.name})},n)}))]},t)})),(0,g.jsxs)("ul",{className:PB,children:[(0,g.jsx)("li",{children:"方向"}),(0,g.jsx)("li",{className:null!=z&&z.discipline_id?"":EB,onClick:function(){delete z.tag_level,delete z.sub_discipline_id,delete z.discipline_id,z.page=1,j(h()({},z))},children:(0,g.jsx)("strong",{children:"全部"})}),s.menus&&s.menus.map((function(e,t){return(0,g.jsxs)("li",{className:(null==z?void 0:z.discipline_id)==e.id?EB:"",children:[(0,g.jsx)("strong",{onClick:function(){z.tag_level=1,z.discipline_id=e.id,delete z.sub_discipline_id,z.page=1,j(h()({},z))},children:e.name}),(0,g.jsx)("div",{children:e.sub_repertoires.map((function(t,n){return(0,g.jsxs)("div",{className:"mt5",children:[(0,g.jsx)("div",{className:(null==z?void 0:z.sub_discipline_id)==t.id&&2===z.tag_level?"".concat(MB," ").concat(LB):LB,onClick:function(){z.tag_level=2,z.discipline_id=e.id,z.sub_discipline_id=t.id,j(h()({},z))},children:t.name}),(0,g.jsx)("ul",{className:"mt5",children:t.tags&&t.tags.map((function(t,n){return(0,g.jsx)("li",{className:z.sub_discipline_id==t.id&&3===z.tag_level?MB:"",onClick:function(){z.tag_level=3,z.discipline_id=e.id,z.sub_discipline_id=t.id,j(h()({},z))},children:t.name},n)}))})]},n)}))})]},t)}))]}),"mine"===z.type&&(0,g.jsxs)("ul",{className:PB,children:[(0,g.jsx)("li",{children:"目录"}),null==A?void 0:A.map((function(e,t){return(0,g.jsx)("li",{className:z.group_id==e.id?EB:"",onClick:function(){z.group_id=e.id,z.page=1,j(h()({},z))},children:(0,g.jsx)("strong",{children:e.name})},t)}))]}),nR.map((function(e,t){var n;return 1!==t?null:(0,g.jsxs)("ul",{className:PB,children:[(0,g.jsx)("li",{children:e.name}),null==e||null===(n=e.children)||void 0===n?void 0:n.map((function(t,n){return(0,g.jsx)("li",{className:z[e.id]==t.id?EB:"",onClick:function(){z[e.id]=t.id,j(h()({},z))},children:(0,g.jsx)("strong",{children:t.name})},n)}))]},t)})),"mine"==(null==z?void 0:z.type)&&(0,g.jsxs)("ul",{className:PB,children:[(0,g.jsx)("li",{children:"状态"}),(0,g.jsx)("li",{className:0==z.not_open?EB:"",onClick:function(){z.not_open=!1,z.page=1,j(h()({},z))},children:(0,g.jsx)("strong",{children:"公开"})}),(0,g.jsx)("li",{className:1==z.not_open?EB:"",onClick:function(){z.not_open=!0,z.page=1,j(h()({},z))},children:(0,g.jsx)("strong",{children:"未公开"})})]}),(0,g.jsxs)(dh.Z,{align:"middle",children:[(0,g.jsx)(bd.Z,{flex:"1",className:IB,children:R.map((function(e,t){return(0,g.jsx)(Ml.ZP,{className:"mr20",type:z.sort===e.id?"primary":"default",onClick:function(){z.sort=e.id,j(h()({},z))},children:e.name},t)}))}),(0,g.jsx)(bd.Z,{className:"c-grey-999",children:(0,g.jsx)("div",{className:RB,children:(0,g.jsxs)("ul",{children:[(0,g.jsxs)("li",{children:["已选",(0,g.jsx)("span",{className:"c-blue",children:S.length>0?1:0}),"个"]}),(0,g.jsxs)("li",{children:["共",(0,g.jsx)("span",{className:"c-blue",children:P.shixuns_count}),"个"]}),(0,g.jsxs)("li",{className:"current",onClick:function(){z.order="asc"===z.order?"desc":"asc",j(h()({},z))},children:["学习人数",(0,g.jsxs)("p",{className:"edu-sorter current ".concat(z.order),children:[(0,g.jsx)("span",{className:"iconfont icon-sanjiaoxing-up"}),(0,g.jsx)("span",{className:"iconfont icon-sanjiaoxing-down"})]})]})]})})})]}),0===(null==P||null===(t=P.shixun_list)||void 0===t?void 0:t.length)&&(0,g.jsx)(gc,{}),(0,g.jsx)(ih.ZP.Group,{style:{display:"block"},value:S,onChange:function(e){k(e.target.value)},children:null==P||null===(n=P.shixun_list)||void 0===n?void 0:n.map((function(e,t){var n,i;return(0,g.jsx)("div",{className:AB,style:{cursor:"auto"},children:(0,g.jsx)(ih.ZP,{value:null==e?void 0:e.identifier,style:{marginTop:"3px"},disabled:null==e?void 0:e.need_authorize,children:(0,g.jsxs)("div",{className:TB,children:[(0,g.jsx)("div",{className:DB,children:(0,g.jsxs)("div",{className:NB,children:[(0,g.jsx)(d.Link,{to:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:(0,g.jsx)("strong",{className:"font16",dangerouslySetInnerHTML:{__html:e.title}})}),(null==e?void 0:e.need_authorize)&&(0,g.jsx)("span",{onClick:function(){(0,FB.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),(0,Sd.Ny)()&&1===(null==e?void 0:e.mark_status)&&(0,g.jsx)(tc.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,g.jsx)("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10",children:"正常"})}),(0,Sd.Ny)()&&2===(null==e?void 0:e.mark_status)&&(0,g.jsx)(tc.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,g.jsx)("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10",children:"需完善"})}),(0,Sd.Ny)()&&3===(null==e?void 0:e.mark_status)&&(0,g.jsx)(tc.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,g.jsx)("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10",children:"无法使用"})}),(0,g.jsx)(Ml.ZP,{ghost:!0,href:"/shixuns/".concat(e.identifier,"/challenges"),type:"primary",target:"_blank",className:OB,children:"体验实训"})]})}),(0,g.jsx)("div",{className:"flex-wrp mt10 font14 c-light-black",children:(0,g.jsx)("span",{className:BB,dangerouslySetInnerHTML:{__html:e.description}})}),(0,g.jsx)("div",{className:" mt15",children:e.challenge_names.map((function(e,t){return(0,g.jsxs)("span",{className:"mr30",children:["第",t+1,"关 ",e," "]},t)}))}),(0,g.jsx)(_B,{dashed:!0}),(0,g.jsxs)("div",{className:"c-light-black mt20",children:[null!=e&&null!==(n=e.content)&&void 0!==n&&n.author_name?(0,g.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e||null===(i=e.content)||void 0===i||null===(i=i.author_name)||void 0===i?void 0:i[0]}}):(0,g.jsx)("span",{children:e.author_name}),(0,g.jsx)("span",{className:"ml15 mr15",children:"|"}),e.author_school_name&&(0,g.jsxs)(c.Fragment,{children:[(0,g.jsx)("span",{children:e.author_school_name}),(0,g.jsx)("span",{className:"ml15 mr15",children:"|"})]}),(0,g.jsxs)("span",{children:["难度系数 ",e.level]}),(0,g.jsx)("span",{className:"ml15 mr15",children:"|"}),(0,g.jsx)("span",{children:"学习人数 "}),(0,g.jsx)("span",{children:e.study_count})]})]})})},t)}))})]})})}),(0,g.jsx)("div",{className:"tc mt20",children:(0,g.jsx)(qL.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:z.page||1,showQuickJumper:!0,total:null==P?void 0:P.shixuns_count,onChange:function(e){z.page=e,j(h()({},z))}})})]},"bottom"),(0,g.jsx)(JB,{visible:K,onCancel:G,renderData:U,inPaper:!1,onOk:V,modalType:"multiple",type:"shixun",position:"选中实训"})]})}})),rR=["competitions","shixunHomeworks","globalSetting","dispatch","user"],oR=kc.Z.TextArea,aR=function(e){return null!=e&&e.includes("已截止")?(0,g.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #FFC4C4",color:"#E53333",fontSize:12,marginRight:8},children:"已截止"}):null!=e&&e.includes("进行中")?(0,g.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #C4D2F1",color:"#3061D0",fontSize:12,marginRight:8},children:"进行中"}):null!=e&&e.includes("未发布")?(0,g.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #DADBDE",color:"#999999",fontSize:12,marginRight:8},children:"未发布"}):null!=e&&e.includes("提交中")?(0,g.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #B1F0E1",color:"#00B187",fontSize:12,marginRight:8},children:"提交中"}):null!=e&&e.includes("已结束")?(0,g.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #FFC4C4",color:"#E53333",fontSize:12,marginRight:8},children:"已结束"}):null!=e&&e.includes("考试中")?(0,g.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #C4D2F1",color:"#3061D0",fontSize:12,marginRight:8},children:"考试中"}):null!=e&&e.includes("未开始")?(0,g.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #DADBDE",color:"#999999",fontSize:12,marginRight:8},children:"未开始"}):null!=e&&e.includes("补交中")?(0,g.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid rgba(255,157,24,0.3)",color:"#FF9D18",fontSize:12,marginRight:8},children:"补交中"}):void 0},sR=(0,d.connect)((function(e){return{competitions:e.competitions,shixunHomeworks:e.shixunHomeworks,globalSetting:e.globalSetting,user:e.user}}))((function(e){var t,n,i,o,s=e.competitions,u=(e.shixunHomeworks,e.globalSetting,e.dispatch),p=e.user,f=Bl()(e,rR),m=Sc.Z.useForm(),v=l()(m,1)[0],b=Sc.Z.useForm(),w=l()(b,1)[0],x=(0,c.useState)(!0),S=l()(x,2),k=S[0],_=S[1],C=(0,c.useState)([]),P=l()(C,2),E=P[0],M=P[1],L=(0,c.useState)(!1),A=l()(L,2),T=A[0],D=(A[1],(0,c.useState)([])),N=l()(D,2),I=N[0],B=N[1],R=s.Header,O=(0,c.useState)(1),F=l()(O,2),z=(F[0],F[1],(0,c.useState)({})),j=l()(z,2),$=j[0],H=j[1],Z=(0,d.useParams)(),K=Z.identifier,G=void 0===K?null==f?void 0:f.competitionId:K,U=(Z.enter,(0,c.useState)({})),V=l()(U,2),W=V[0],q=V[1],Y=(0,c.useState)([]),X=l()(Y,2),Q=X[0],J=X[1],ee=(0,c.useState)(""),te=l()(ee,2),ne=te[0],ie=te[1],re=(0,c.useState)([]),oe=l()(re,2),ae=oe[0],se=oe[1],le=(0,c.useState)(!1),ce=l()(le,2),ue=ce[0],he=ce[1],de=(0,c.useState)([{type:"practice",name:"课堂实验",open:!1,url:"shixun_homework"},{type:"normal",name:"图文作业",open:!1,url:"common_homework"},{type:"group",name:"分组作业",open:!1,url:"group_homework"},{type:"hack",name:"编程作业",open:!1,url:"program_homework"},{type:"exercise",name:"在线考试",open:!1,url:"exercise"}]),pe=l()(de,2),fe=pe[0],ge=pe[1],me=(0,c.useState)({input:""}),ve=l()(me,2),ye=ve[0],be=ve[1];function we(){return(we=a()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pd.ZP)("/api/competitions/".concat(null==f?void 0:f.competitionId,"/get_course_settings.json"),{method:"get"});case 2:0===(null==(t=e.sent)?void 0:t.status)&&q(t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xe(){return Se.apply(this,arguments)}function Se(){return(Se=a()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null==f||f.loadingFunction(!0),e.next=3,(0,pd.ZP)("/api/users/".concat(p.userInfo.login,"/courses.json"),{method:"get",params:{category:"manage",page:1,per_page:1e3,username:p.userInfo.login,no_limit_per_page:1}});case 3:t=e.sent,null==f||f.loadingFunction(!1),J(null==t?void 0:t.courses);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,c.useEffect)((function(){1===R.mode?(w.resetFields(),_e(!0)):2===R.mode?(w.resetFields(),function(){we.apply(this,arguments)}()):function(){Ae.apply(this,arguments)}()}),[R]),(0,c.useEffect)((function(){p.userInfo.login&&xe()}),[p]);var ke=function(e){var t,n=e.total_score,i=e.difficulty_level_sort,r=null===(t=e.challenge_settings)||void 0===t?void 0:t.filter((function(e){return e.checked})).length;if(r){var o,a=n/e.challenge_settings.filter((function(e){return e.checked})).map((function(e){return"desc"===i?e.challenge_exp_desc:e.challenge_exp})).reduce((function(e,t){return e+t})),s=0,l=0;switch(e.score_setting){case 0:var c=parseFloat((n/r).toFixed(1));e.challenge_settings.map((function(e,t){e.checked?(s=t,e.score=c>0?c:0):e.score=0})),o=(n-c*(r-1)).toFixed(1),e.challenge_settings[s].score=o>0?o:0;break;case 1:e.challenge_settings.map((function(e,t){e.checked?(s=t,l+=Number((Math.round(("desc"===i?e.challenge_exp_desc:e.challenge_exp)*a*10)/10).toFixed(1)),e.score=(Math.round(("desc"===i?e.challenge_exp_desc:e.challenge_exp)*a*10)/10).toFixed(1)):e.score=0}));var u=e.challenge_settings[s].score;o=(n-l+Number(u)).toFixed(1),e.challenge_settings[s].score=o>0?o:0}}else e.challenge_settings.map((function(e,t){e.challenge_score=0}))},_e=function(e){(0,$L.lm)(null==f?void 0:f.competitionId).then((function(t){if(0==(null==t?void 0:t.status)){if(null!=t&&t.data){var n=null==t?void 0:t.data;if(e){for(var i in n)n[i].show_info=!1;B(n)}else for(var r in I)n[r].show_info=I[r].show_info;M(n)}else M([]);null==f||f.loadingFunction(!1)}else ec.ZP.error(null==t?void 0:t.message)}))},Ce=function(e,t){var n=E;for(var i in n)n[i].id==e.id&&("open"==t?n[i].show_info=!0:"close"==t&&(n[i].show_info=!1));M(y()(n)),B(y()(n))},Pe=function(){if(function(e){var t=[];for(var n in e){var i,r,o=null===(i=e[n])||void 0===i||null===(i=i.challenge_settings)||void 0===i?void 0:i.reduce((function(e,t){return e+Number(t.score)}),0);(null==o?void 0:o.toFixed(10))!==(null===(r=e[n])||void 0===r||null===(r=r.total_score)||void 0===r?void 0:r.toFixed(10))&&t.push("赛题".concat(Number(n)+1,"的关卡任务总分必须等于总分值:").concat(e[n].total_score,"分\n"))}return!(t.length>0&&(ec.ZP.warning(t),1))}(E)){for(var e in E){var t,n;if(E[e].shixun_id=null===(t=E[e])||void 0===t||null===(t=t.challenge_settings[0])||void 0===t?void 0:t.shixun_id,(null===(n=E[e])||void 0===n||null===(n=n.challenge_settings)||void 0===n?void 0:n.length)>0)for(var i in null===(r=E[e])||void 0===r?void 0:r.challenge_settings){var r,o;E[e].challenge_settings[i].challenge_score=null===(o=E[e])||void 0===o?void 0:o.challenge_settings[i].score}}(0,$L.JM)({id:null==f?void 0:f.competitionId,shixuns:E}).then((function(e){0==(null==e?void 0:e.status)?(ec.ZP.success("更改成功"),_e(!1)):ec.ZP.error(null==e?void 0:e.message)}))}};function Ee(e){return Me.apply(this,arguments)}function Me(){return Me=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null==f||f.loadingFunction(!0),e.next=3,(0,pd.ZP)("/api/competitions/".concat(null==f?void 0:f.competitionId,"/switch_mode.json"),{method:"post",body:{mode:t}});case 3:return n=e.sent,null==f||f.loadingFunction(!1),0===(null==n?void 0:n.status)&&u({type:"competitions/getHeader",payload:{identifier:null==f?void 0:f.competitionId}}),e.abrupt("return",!0);case 7:case"end":return e.stop()}}),e)}))),Me.apply(this,arguments)}function Le(){return(Le=a()(r()().mark((function e(t){var n,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return he(!0),e.next=3,(0,pd.ZP)("/api/competitions/get_competition_course_homework.json",{method:"get",params:{course_id:W.course_id,competition_course_game_id:t,id:null==f?void 0:f.competitionId}});case 3:n=e.sent,he(!1),0===(null==n?void 0:n.status)?(ie(t),se(null==n||null===(i=n.data)||void 0===i?void 0:i.list)):ec.ZP.info("当前课堂暂无数据,请更换绑定课堂或在当前课堂新增作业或考试");case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ae(){return(Ae=a()(r()().mark((function e(){var t,n,i,o,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pd.ZP)("/api/competitions/".concat(null==f?void 0:f.competitionId,"/get_work_settings.json0"),{method:"get"});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(_(null==t?void 0:t.data.is_new),w.setFieldsValue(h()(h()({},(null==t?void 0:t.data)||{}),{},{evaluation_setting:null==t||null===(n=t.data)||void 0===n?void 0:n.evaluation_setting,commit_num:null==t||null===(i=t.data)||void 0===i?void 0:i.commit_num,evaluation_time:null==t||null===(o=t.data)||void 0===o?void 0:o.evaluation_time,evaluation_script:null==t||null===(a=t.data)||void 0===a?void 0:a.evaluation_script})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Te=function(e){var t=e.getFieldsValue();for(var n in console.log(t),t)if(void 0!==t[n])return!0;return!1};return(0,g.jsxs)("div",{className:yI,children:[!(null!=f&&f.isKd)&&(0,g.jsxs)("div",{style:{padding:30},children:[(0,g.jsx)("div",{style:{marginBottom:30,fontSize:14,fontWeight:600,color:"#232B40"},children:"模式设置"}),(0,g.jsxs)("div",{style:{marginLeft:42},children:[(0,g.jsx)("span",{children:"竞赛模式"}),(0,g.jsx)(ih.ZP.Group,{disabled:"progressing"===R.competition_status||"ended"===R.competition_status||"apply"===(null==R?void 0:R.competition_status),value:R.mode,onChange:function(){var e=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null==W||null===(n=W.competition_course_games)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.homeworks)||void 0===n?void 0:n.length)>0||(null==E?void 0:E.length)>0||Te(w))){e.next=3;break}return hh.Z.confirm({icon:!1,title:"提示",content:"切换模式后,当前已经设置的赛题数据将会被清理,且不可撤回,请确认是否进行切换",onOk:function(){var e=a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee(t.target.value);case 2:e.sent&&xe();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),e.abrupt("return");case 3:return e.next=5,Ee(t.target.value);case 5:e.sent&&xe();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),style:{marginLeft:10,fontSize:14},children:(0,g.jsxs)(Kc.Z,{direction:"vertical",children:[(0,g.jsxs)(ih.ZP,{value:1,children:["实训模式",(0,g.jsx)("span",{style:{color:"#9096A3",marginLeft:10},children:"挑战实训,系统评审"})]}),(0,g.jsxs)(ih.ZP,{value:2,children:["课堂模式",(0,g.jsx)("span",{style:{color:"#9096A3",marginLeft:10},children:"参赛者需要进入课堂完成作业,将选择计入成绩的作业生成排行榜"})]}),(0,g.jsxs)(ih.ZP,{value:3,disabled:!(0,Sd.Ny)()&&(null==R?void 0:R.is_manager)||"progressing"===R.competition_status||"apply"===(null==R?void 0:R.competition_status)||"ended"===R.competition_status,children:["作品模式",(0,g.jsx)("span",{style:{color:"#9096A3",marginLeft:10},children:"参赛者提交作品,系统评审"})]})]})})]})]}),1===R.mode&&(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:bI,style:{display:"flex",alignItems:"center"},children:[(0,g.jsxs)("div",{style:{flex:1},children:["赛题设置",(0,g.jsxs)("span",{style:{marginLeft:20,color:"#9096A3",fontSize:"12px",fontWeight:"normal"},children:["答题起止时间:",(0,g.jsxs)("span",{style:{margin:"0 5px",color:"#165DFF",fontSize:"12px",fontWeight:"normal"},children:[null==R?void 0:R.start_time,"~",null==R?void 0:R.end_time]}),((0,Sd.eB)()||(null==R||null===(t=R.permission)||void 0===t?void 0:t.editable))&&(0,g.jsxs)("a",{style:{marginLeft:10,color:"#165DFF",display:"inline-flex"},onClick:function(){u({type:"competitions/setActionTabs",payload:{key:"7"}})},children:[(0,g.jsx)("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF",marginRight:3}})," 编辑"]})]})]}),"progressing"!=(null==R?void 0:R.competition_status)&&"apply"!=(null==R?void 0:R.competition_status)&&"ended"!=(null==R?void 0:R.competition_status)&&(0,g.jsxs)("div",{className:wI,style:{top:"auto"},onClick:function(){u({type:"classroomList/setActionTabs",payload:{key:"新增赛题",params:""}})},children:[(0,g.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAF9JREFUOE9jZKAQMOLTb5B0voHhH8OBCwsMD+BSR9gABgaGC/MMG0YNIBAGBgnnHRiYGBwwAuo/oz1YjPH/QWyBCApccCyAowsbwGcANHpHo5GBgcZhAI1esvMCMTkdAHAwQhEikgNIAAAAAElFTkSuQmCC",className:xI}),"新增赛题"]})]}),(0,g.jsx)("div",{style:{marginTop:"25px"}}),E.map((function(e,t){var n,i,o;return(0,g.jsxs)("div",{className:SI,children:[(0,g.jsxs)("div",{className:kI,children:[(0,g.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAA0JJREFUSEullk2ITlEYx3/PufdlxAYrTKyUhcgkG2LQzMbGhkJMyUca32mMyVdoMrOgoSkTZXxEmY2NDU1RWChEdlaEsfBZihozj+597533vOeee+ctb93e+3HO83/O//k/HwKgF6hH6CagEWEGAWByruibQO6agJ+E9MgqTkS23Z/EYH95RcC0DMh4xiOnbOfS+8ghw15p4mIWsJtbBGyIvU5PlW60DbiGfeuj/enpA4YpsUpW8tgGFT3LJ0xCYxFVrjMu5f4wfGYSDbKcoRRUtBP1xsQ1UE3vo2TPiqow+EPwlOk0ymKGI1DR02gchwoVlXv7xPZ9idWxx4bBjLO2rYrNXmlmdxnwFDrmZR6l1fF7IttYFqv7Go8JWFqTokNapInroicsQFd1dtxSZ0KaZTsPYsAbNDHK/QytvvgKvymxVPRYAphS4YqjAvQdYVBaWWerTvsZwLAaw9QYOFWvTwOGQdGOJIa2V2Xw55ToQXjLRN7Kbr76Ejl9p9eYTsDc+DLsBxqqtFG2PyLa7gEsUxvFdqe0c7kIyP2mN9mOoQ+D+NQv2uZQWq1YJWSPtNFbC6j204rhYgzli7+JVHqoBtEYDsoRzhdSeoUDwLmCGhtXMtEDOZRmy9wcaee9D1T7mI3ybixmrh4sQYrucxLfXVxW3h/mMUXWM+IFvEPAF35hqMvUYydFRPcUxDBdHPJSjtNQSGkvL4BFXkotXYi2OjH0JX/IDTnJljjZu1jCCJ2EQEiHHORZ0lOvY9icW3USu6K7LMDqflbudVEihxymxD1GOYNhrVN772I4SsAahK5M8js1WnSHIxq7nlaqxWsC5sditxmoVJVRAt4gLBj7nlOXRbdZMRxvrPB1+Fp7aOKc6FaH0qKOkdeucpLcV9RFWxxKff0sW2eLhih/P01siG7JqPQ0M+mUk/yppZzlrdGr1PGDDoRjdqqIbnIAJ1Ivl/j4P2BjHeQcs4APtqpFN/LJmUUHEHqYkJywlGxP/6PHWt4FcdXZB6yzlD0kuj4ZE/Maryui8WbVvNGybP92RGl5EDbOIFyL4bzunqZPdU5/o8TC6BUx6AjdCI3xjFqkyqIT+1IqYAjhIZNpk718+AfZ8LVXyCfCsQAAAABJRU5ErkJggg==",className:_I}),(0,g.jsxs)("div",{className:CI,children:["赛题",t+1]}),(0,g.jsxs)("div",{className:PI,children:[(0,g.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAnZJREFUSEvtlk1IVFEUx39n3gwpUxKEM35QEU3QJlxYK8FNtWjhJqhFOH4UCBl9UCQVYdMmSLLAQkhJxRmKCipy2yKpTdEH7oSipKAZx00Uhc3MeyfupOGMPS0ZBgLf7t177v2d8z/n3nsEoDKsW23YB2xQ8JqxQn0CGeC9BTfjUXkhBpaBc4UCLLSPF85LIKyXFTYVAyjwxgDvF1pGN+eNvFIe1pFiRDfLWAYWXO3/TlKdkUD+VorFIhzzQI8qNSocydlUSJT66chMszKdoVeUnjLl2VeLVkfZ4Xo0XI6FinK7PcStSESc6iZdk1KG8oAXp4blaXmjhhCueJWueEyeGJtgs25Xh4MKK/LB8yIU+GIp3fGYvMouDmvAUc4gbJyz+G1ymOMiooEmjahSK/DDA1cTURnN3s8HdL2d5rQq1XOh84A+4dCnYflgjAKNWoPQoVCWs0g5m4zJWLBFtzg2F+bOeeBhfQMDd/eKHQyr34EbgN/14K8rZffLPklXNmu9rZxQxZMHe52MSWfWIZd72AMPJqNiQMbmukKVK9BvEZ4Yks+1ber7+J1WFRpyIvBxdHJA3gWatU4dTuXnyFLubQ4RfRyRjIlQhX5VVrkCRRj3WHQlBmXKGFW06DbH5piRVZTRZEwu7bmj1ugIvTmem9x76Y4P/sr92v1aNZ3mJBBaMIczk98QrpkqNP+zlWhZHE4MyURFk+6ylfY/5XUm9zuBNhVKFq3SHPmER1YJ/ekUZdj0e6DPZzGecuhUZXUOEAZ9Ds9TFo0odf96Dn/bm3IHrEK9mYvdNG6OLnl8Gbhk6VyLpuhNVNHbxKI3wtmnpIit/k8rJx6Q0AVqRgAAAABJRU5ErkJggg==",className:EI}),(0,g.jsx)(d.Link,{to:"/shixuns/".concat(null==e?void 0:e.shixun_identifier,"/challenges"),target:"_blank",children:(0,g.jsx)(tc.Z,{title:null==e||null===(n=e.shixun)||void 0===n?void 0:n.name,placement:"bottom",children:(0,g.jsx)("div",{className:MI,children:null==e||null===(i=e.shixun)||void 0===i?void 0:i.name})})})]}),(0,g.jsx)("div",{className:LI,onClick:function(){Ce(e,"open")},children:!(null!=e&&e.show_info)&&(0,g.jsxs)(g.Fragment,{children:["展开更多",(0,g.jsx)("i",{className:"iconfont icon-xiajiantou",style:{fontSize:"8px"}})]})}),"progressing"!=(null==R?void 0:R.competition_status)&&"apply"!=(null==R?void 0:R.competition_status)&&"ended"!=(null==R?void 0:R.competition_status)&&(0,g.jsx)("div",{className:AI,onClick:function(){var t,n;t=null==e?void 0:e.id,hh.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"删除提示",icon:null,content:"删除该赛题后,数据不可恢复,请确认是否删除?",onOk:(n=a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,$L.pS)({id:null==f?void 0:f.competitionId,data_id:t}).then((function(e){0==(null==e?void 0:e.status)?(ec.ZP.success("删除成功"),_e(!0),u({type:"competitions/getHeader",payload:{identifier:null==f?void 0:f.competitionId}})):ec.ZP.error(null==e?void 0:e.message)}));case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})})},children:"删除该赛题"})]}),(null==e?void 0:e.show_info)&&(0,g.jsxs)("div",{className:TI,children:[(0,g.jsxs)(Sc.Z,{form:v,labelCol:{flex:"70px"},children:[(0,g.jsxs)(Sc.Z.Item,{className:DI,label:"题目总分",colon:!1,children:[(0,g.jsx)(nh,{min:0,value:null==e?void 0:e.total_score,disabled:"progressing"==(null==R?void 0:R.competition_status)||"apply"===(null==R?void 0:R.competition_status)||"ended"==(null==R?void 0:R.competition_status),className:NI,onChange:function(t){e.total_score=t,H(Object.assign({},$)),ke(e)},onBlur:function(){Pe()}})," 分"]}),(0,g.jsx)(Sc.Z.Item,{className:II,label:" ",colon:!1,children:(0,g.jsx)(Sc.Z.Item,{className:II,label:"关卡分值",colon:!1,children:(0,g.jsxs)(ih.ZP.Group,{disabled:"progressing"==(null==R?void 0:R.competition_status)||"apply"===(null==R?void 0:R.competition_status)||"ended"==(null==R?void 0:R.competition_status),value:null==e?void 0:e.score_setting,onChange:function(t){e.score_setting=t.target.value,1!==t.target.value&&(e.difficulty_level_sort="asc"),H(Object.assign({},$)),ke(e)},onBlur:function(){Pe()},children:[(0,g.jsx)(ih.ZP,{value:0,children:"均分比例"}),(0,g.jsx)(ih.ZP,{value:1,children:"难易度"}),(0,g.jsx)(ih.ZP,{value:2,children:"自定义分值"})]})})}),null==e||null===(o=e.challenge_settings)||void 0===o?void 0:o.map((function(t,n){return(0,g.jsx)(Sc.Z.Item,{className:II,label:" ",colon:!1,children:(0,g.jsxs)("div",{style:{display:"flex"},children:[(0,g.jsx)("i",{className:"iconfont icon-shixunti",style:{color:"#165DFF",width:"14px",height:"14px",margin:"6px 15px 7px 0"}}),(0,g.jsxs)(Sc.Z.Item,{className:II,label:(0,g.jsx)(tc.Z,{title:null==t?void 0:t.subject,placement:"left",children:(0,g.jsx)("div",{className:BI,children:null==t?void 0:t.subject})}),colon:!1,children:[(0,g.jsx)(nh,{min:0,step:.1,value:null==t?void 0:t.score,disabled:T||2!==(null==e?void 0:e.score_setting),style:{width:"96px"},onChange:function(t){e.challenge_settings[n].score=t,H(h()({},$))},onBlur:function(){Pe()}}),(0,g.jsx)("span",{className:"ml10",children:"分"})]}),(0,g.jsx)("div",{className:"简单"==(null==t?void 0:t.difficulty)?RI:"中等"==(null==t?void 0:t.difficulty)?OI:FI,children:null==t?void 0:t.difficulty})]})},n)}))]}),(0,g.jsxs)("div",{className:zI,onClick:function(){Ce(e,"close")},children:["收起更多",(0,g.jsx)("i",{className:"iconfont icon-shangjiantou",style:{fontSize:"8px"}})]})]})]},t)})),0==(null==E?void 0:E.length)&&(0,g.jsx)(gc,{customText:"您还没有添加赛题,点击添加赛题"}),(0,g.jsx)(iR,{competitionId:null==f?void 0:f.competitionId,queryQuetions:_e})]}),2===R.mode&&(0,g.jsxs)("div",{style:{paddingLeft:78,paddingRight:30},children:[(0,g.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,g.jsx)("label",{style:{marginRight:10,width:50,textAlign:"end"},children:"课堂"}),(0,g.jsx)(Fc.default,{popupClassName:VI,showSearch:!0,filterOption:function(e,t){return-1!==t.key.toUpperCase().indexOf(e.toUpperCase())},disabled:"progressing"===R.competition_status||"apply"===(null==R?void 0:R.competition_status)||"ended"===R.competition_status,className:KI,onChange:function(){var e=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null==f||f.loadingFunction(!0),e.next=3,(0,pd.ZP)("/api/competitions/".concat(null==f?void 0:f.competitionId,"/course_select.json"),{method:"post",body:{course_id:t}});case 3:n=e.sent,null==f||f.loadingFunction(!1),0===(null==n?void 0:n.status)&&u({type:"competitions/getHeader",payload:{identifier:null==f?void 0:f.competitionId}});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),size:"large",style:{flex:1},value:[W.course_id||W.default_course_id],placeholder:"请选择需要计算成绩的课堂",children:null==Q?void 0:Q.map((function(e){return(0,g.jsx)(Fc.default.Option,{value:null==e?void 0:e.id,children:(0,g.jsxs)(dh.Z,{align:"middle",style:{padding:"0px 12px"},children:[(0,g.jsxs)(dh.Z,{align:"middle",style:{flex:1},children:[(0,g.jsx)(bd.Z,{children:(0,g.jsx)("div",{className:"mr20 font12",style:{lineHeight:"12px",padding:"4px 10px",borderRadius:13,color:e.is_end?"#E53333":"#3061D0",border:"1px solid ".concat(e.is_end?"#FFC4C4":"#C4D2F1")},children:e.is_end?"已结束":"进行中"})}),(0,g.jsx)(bd.Z,{style:{flex:1},children:(0,g.jsx)(tc.Z,{placement:"topLeft",title:null==e?void 0:e.name,overlayStyle:{maxWidth:430,zIndex:1e4},children:(0,g.jsx)(bd.Z,{style:{textOverflow:"ellipsis",overflow:"hidden",maxWidth:430},children:null==e?void 0:e.name})})})]}),(0,g.jsx)(bd.Z,{style:{color:"#9096A3"},children:null==e?void 0:e.created_at})]})},"".concat(null==e?void 0:e.name).concat(null==e?void 0:e.id))}))}),(0,g.jsx)("div",{className:wI,style:{position:"relative",justifyContent:"center",top:0,right:0,marginLeft:20,height:40,borderRadius:2,alignItems:"center"},onClick:function(){window.open(R.first_category_url)},children:"进入该课堂"})]}),R.course_is_end&&(0,g.jsx)("div",{style:{color:"red",marginLeft:60,marginTop:10},children:"选择已结束的课堂,则无法进行答题的任何操作"}),null==W||null===(n=W.competition_course_games)||void 0===n?void 0:n.map((function(e,t){var n;return(0,g.jsxs)("div",{style:{marginBottom:20},children:[(0,g.jsxs)("div",{style:{marginTop:20,display:"flex",alignItems:"center"},children:[(0,g.jsxs)("label",{style:{marginRight:10,width:50,textAlign:"end"},children:["赛道",t+1]}),(0,g.jsx)(kc.Z,{className:GI,value:e.name,onChange:function(t){e.name=t.target.value,q(h()({},W))},onBlur:function(){var t=a()(r()().mark((function t(n){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.target.value){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,(0,pd.ZP)("/api/competitions/".concat(null==f?void 0:f.competitionId,"/create_course_game.json"),{method:"post",body:{course_id:null==W?void 0:W.course_id,competition_course_game_id:e.competition_course_game_id,name:n.target.value}});case 4:0===t.sent.status&&u({type:"competitions/getHeader",payload:{identifier:null==f?void 0:f.competitionId}});case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),placeholder:"请输入赛道名称",style:{flex:1},maxLength:30,size:"large"}),(0,g.jsx)("i",{onClick:a()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null==W||null===(t=W.competition_course_games)||void 0===t?void 0:t.filter((function(e){return e.homeworks.length<=0})).length)>0)){e.next=3;break}return ec.ZP.info("请先完成上一个赛道的作业/考试的选择,只有上一个赛道中添加了作业/试卷才能新增赛道"),e.abrupt("return");case 3:return e.next=5,(0,pd.ZP)("/api/competitions/".concat(null==f?void 0:f.competitionId,"/create_course_game.json"),{method:"post",body:{course_id:null==W?void 0:W.course_id}});case 5:0===e.sent.status&&u({type:"competitions/getHeader",payload:{identifier:G}});case 7:case"end":return e.stop()}}),e)}))),style:{color:"#145DFF",marginLeft:15,cursor:"pointer"},className:"iconfont icon-tianjia2"}),0!==t&&(0,g.jsx)("i",{style:{marginLeft:10,cursor:"pointer"},onClick:function(){var t;hh.Z.confirm({icon:!1,title:"提示",content:"请确认是否删除该赛道,删除后,不可恢复。",onOk:(t=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,pd.ZP)("/api/competitions/".concat(G,"/delete_course_game.json"),{method:"delete",body:{competition_course_game_id:e.competition_course_game_id}});case 2:0===t.sent.status&&u({type:"competitions/getHeader",payload:{identifier:G}});case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})})},className:"".concat(ZI," iconfont icon-weishezhi")})]}),(0,g.jsxs)("div",{style:{marginTop:20,marginLeft:60},children:[(0,g.jsx)("span",{children:"计入成绩的作业/试卷"}),(0,g.jsx)(Ml.ZP,{loading:ue,onClick:function(){!function(e){Le.apply(this,arguments)}(e.competition_course_game_id)},style:{marginLeft:10,marginRight:20,background:"#3061D0",display:"inline-flex",height:30,alignItems:"center",justifyContent:"center",width:119,color:"#fff",borderRadius:2,cursor:"pointer",border:"none"},children:"选择作业/试卷"}),(0,g.jsx)("span",{style:{color:"#9096A3"},children:"为了满足竞赛的正常计分排行,请关联作业/试卷"})]}),e.homeworks.length>0?(0,g.jsx)("div",{style:{marginLeft:199,marginTop:10,padding:"30px 20px",background:"#F6F7F9"},children:null==e||null===(n=e.homeworks)||void 0===n?void 0:n.map((function(e,t){var n,i;return(0,g.jsxs)("div",{style:{display:"flex",marginTop:t>0&&20,height:20,alignItems:"center",justifyContent:"space-between"},children:[(0,g.jsx)("div",{style:{minWidth:68,height:24,display:"flex",alignItems:"center",justifyContent:"center",fontSize:12,background:"rgba(22,93,255,0.1)",color:"#3061D0",marginRight:20},children:null===(n=fe.find((function(t){return t.type===e.homework_type})))||void 0===n?void 0:n.name}),(0,g.jsx)(tc.Z,{title:(null==e||null===(i=e.name)||void 0===i?void 0:i.length)>6&&(null==e?void 0:e.name),placement:"topLeft",children:(0,g.jsx)("span",{onClick:function(){window.open("/classrooms/".concat(null==W?void 0:W.course_id,"/").concat(fe.find((function(t){return t.type===e.homework_type})).url,"/").concat(e.homework_id||e.exercise_id,"/detail"))},style:{width:"90%",color:"#3061D0",cursor:"pointer"},className:HI,children:null==e?void 0:e.name})}),(0,g.jsx)("i",{style:{marginLeft:10,cursor:"pointer"},onClick:function(){var t;hh.Z.confirm({icon:!1,title:"提示",content:"请确认是否删除该作业,删除后,不可恢复。",onOk:(t=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,pd.ZP)("/api/competitions/".concat(G,"/delete_course_homework.json"),{method:"delete",body:{competition_course_homework_id:e.competition_course_homework_id}});case 2:0===t.sent.status&&u({type:"competitions/getHeader",payload:{identifier:G}});case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})})},className:"".concat(ZI," iconfont icon-weishezhi")})]})}))}):(0,g.jsx)(gc,{})]})})),(0,g.jsx)(hh.Z,{open:ne,onCancel:function(){ie(""),he(!1)},width:850,title:"选择作业",className:UI,okButtonProps:{loading:ue},onOk:a()(r()().mark((function e(){var t,n,i,o,a,s,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null==ae||null===(t=ae.filter((function(e){return e.checked})))||void 0===t?void 0:t.length)<=0)){e.next=3;break}return ec.ZP.info("请选择作业或试卷"),e.abrupt("return");case 3:return he(!0),e.next=6,(0,pd.ZP)("/api/competitions/".concat(G,"/homework_select.json"),{method:"post",body:{course_id:W.course_id,competition_course_game_id:ne,shixun_homework_ids:null==ae||null===(n=ae.filter((function(e){return e.checked&&"practice"===e.homework_type})))||void 0===n?void 0:n.map((function(e){return e.id})),common_homework_ids:null==ae||null===(i=ae.filter((function(e){return e.checked&&"normal"===e.homework_type})))||void 0===i?void 0:i.map((function(e){return e.id})),group_homework_ids:null==ae||null===(o=ae.filter((function(e){return e.checked&&"group"===e.homework_type})))||void 0===o?void 0:o.map((function(e){return e.id})),program_homework_ids:null==ae||null===(a=ae.filter((function(e){return e.checked&&"hack"===e.homework_type})))||void 0===a?void 0:a.map((function(e){return e.id})),exercise_ids:null==ae||null===(s=ae.filter((function(e){return e.checked&&"exercise"===e.homework_type})))||void 0===s?void 0:s.map((function(e){return e.id}))}});case 6:l=e.sent,he(!1),ie(""),0===l.status&&u({type:"competitions/getHeader",payload:{identifier:G}});case 10:case"end":return e.stop()}}),e)}))),children:(0,g.jsxs)("div",{style:{border:"1px solid #F6F7F9",display:"flex",maxHeight:480},children:[(0,g.jsxs)("div",{style:{width:350,borderRight:"1px solid #F6F7F9",overflowY:"auto",overflowX:"hidden",padding:14},children:[(0,g.jsx)(rA,{style:{width:312,marginRight:15},dataSource:[],value:{id:"",value:ye.input},onChange:function(e,t){ye.input=e,be(h()({},ye)),null==fe||fe.map((function(e){e.open=!0})),ge(y()(fe))},placeholder:"请输入搜索内容"}),null==fe?void 0:fe.map((function(e){var t,n,i,r,o,a,s,l,c;return(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{style:{marginTop:16,height:22,alignItems:"center",display:"flex",justifyContent:"space-between"},children:[(0,g.jsxs)("div",{style:{cursor:"pointer",color:"#232B40"},onClick:function(){e.open=!e.open,ge(y()(fe))},children:[(0,g.jsx)("i",{style:{marginRight:10,color:"#999999"},className:"iconfont ".concat(e.open?"icon-changyongtubiao-xianxingdaochu-zhuanqu-":"icon-a-bianzu11")}),e.name,(0,g.jsx)("span",{style:{marginLeft:6,color:"#ADB2B8"},children:null==ae||null===(t=ae.filter((function(t){return t.homework_type===e.type})))||void 0===t?void 0:t.length})]}),(0,g.jsx)(sI.Z,{indeterminate:(null==ae||null===(n=ae.filter((function(t){return t.homework_type===e.type})))||void 0===n?void 0:n.length)>(null==ae||null===(i=ae.filter((function(t){return t.homework_type===e.type&&t.checked})))||void 0===i?void 0:i.length)&&0!==(null==ae||null===(r=ae.filter((function(t){return t.homework_type===e.type})))||void 0===r?void 0:r.length)&&(null==ae||null===(o=ae.filter((function(t){return t.homework_type===e.type&&t.checked})))||void 0===o?void 0:o.length)>0,checked:(null==ae||null===(a=ae.filter((function(t){return t.homework_type===e.type})))||void 0===a?void 0:a.length)===(null==ae||null===(s=ae.filter((function(t){return t.homework_type===e.type&&t.checked})))||void 0===s?void 0:s.length)&&0!==(null==ae||null===(l=ae.filter((function(t){return t.homework_type===e.type})))||void 0===l?void 0:l.length),onChange:function(t){t.target.checked?ae.map((function(t){t.homework_type===e.type&&(t.checked=!0)})):ae.map((function(t){t.homework_type===e.type&&(t.checked=!1)})),se(y()(ae))}})]}),null==ae||null===(c=ae.filter((function(t){return t.homework_type===e.type&&e.open&&t.name.includes(decodeURIComponent(ye.input))})))||void 0===c?void 0:c.map((function(e){return(0,g.jsxs)("div",{style:{display:"flex",marginTop:12,height:20,alignItems:"center",justifyContent:"space-between"},children:[aR(e.status||e.exercise_tips[0]),(0,g.jsx)(tc.Z,{title:null==e?void 0:e.name,children:(0,g.jsx)("span",{style:{width:"70%"},className:HI,children:null==e?void 0:e.name})}),(0,g.jsx)(sI.Z,{onChange:function(t){e.checked=t.target.checked,se(y()(ae))},checked:e.checked})]})}))]})}))]}),(0,g.jsxs)("div",{style:{width:450,padding:20,overflowY:"auto",overflowX:"hidden"},children:[(0,g.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,g.jsxs)("span",{children:[(0,g.jsx)("span",{style:{color:"#6B758B"},children:"已选"}),(0,g.jsx)("span",{style:{color:"#3061D0",marginLeft:3},children:null==ae?void 0:ae.filter((function(e){return e.checked})).length})]}),(0,g.jsx)("span",{onClick:function(){ae.map((function(e){e.checked=!1})),se(y()(ae))},style:{color:"#3061D0",cursor:"pointer"},children:"全部清除"})]}),null==ae||null===(i=ae.filter((function(e){return e.checked})))||void 0===i?void 0:i.map((function(e){return(0,g.jsxs)("div",{style:{display:"flex",marginTop:12,height:20,alignItems:"center",justifyContent:"space-between"},children:[aR(e.status||e.exercise_tips[0]),(0,g.jsx)(tc.Z,{title:null==e?void 0:e.name,children:(0,g.jsx)("span",{style:{width:"70%"},className:HI,children:null==e?void 0:e.name})}),(0,g.jsx)("i",{style:{marginLeft:10,cursor:"pointer"},onClick:function(){e.checked=!1,se(y()(ae))},className:"".concat(ZI," iconfont icon-weishezhi")})]})}))]})]})})]}),3===R.mode&&(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:bI,style:{display:"flex",alignItems:"center"},children:(0,g.jsxs)("div",{style:{flex:1},children:["评测设置",(0,g.jsxs)("span",{style:{marginLeft:20,color:"#9096A3",fontSize:"12px",fontWeight:"normal"},children:["答题起止时间:",(0,g.jsxs)("span",{style:{margin:"0 5px",color:"#165DFF",fontSize:"12px",fontWeight:"normal"},children:[null==R?void 0:R.start_time,"~",null==R?void 0:R.end_time]}),((0,Sd.eB)()||(null==R||null===(o=R.permission)||void 0===o?void 0:o.editable))&&(0,g.jsxs)("a",{style:{marginLeft:10,color:"#165DFF",display:"inline-flex"},onClick:function(){u({type:"competitions/setActionTabs",payload:{key:"7"}})},children:[(0,g.jsx)("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF",marginRight:3}})," 编辑"]})]})]})}),(0,g.jsxs)(Sc.Z,{form:w,layout:"vertical",scrollToFirstError:!0,className:WI,onValuesChange:function(){},children:[(0,g.jsx)(Sc.Z.Item,{className:DI,label:"评测服务器配置",colon:!1,name:"evaluation_setting",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,g.jsx)(oR,{placeholder:"请填写评测服务器配置,格式为:服务器ip 端口 账号 密码,多台服务器用多行表示,如:127.0.0.1 22 root Qz_123123 127.0.0.2 22 root Qz_123123",rows:6,autoSize:{minRows:6,maxRows:999},disabled:!(0,Sd.Ny)()&&(null==R?void 0:R.is_manager)})}),(0,g.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,g.jsx)(Sc.Z.Item,{style:{width:400},className:DI,label:"每日最多提交次数(未填则不限制)",colon:!1,name:"commit_num",rules:[{pattern:new RegExp(/^[1-9]\d*$/,"g"),message:"必须是正整数"}],children:(0,g.jsx)(nh,{disabled:!(0,Sd.Ny)()&&(null==R?void 0:R.is_manager),style:{width:400},autoComplete:"off",controls:!1,precision:0,min:1,className:NI,placeholder:"请输入提交次数",suffix:(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"次"})})}),(0,g.jsx)(Sc.Z.Item,{style:{width:400},className:DI,label:"评测时长(S)",colon:!1,name:"evaluation_time",rules:[{required:!0,pattern:new RegExp(/^[1-9]\d*$/,"g"),message:"必须是正整数"}],children:(0,g.jsx)(nh,{disabled:!(0,Sd.Ny)()&&(null==R?void 0:R.is_manager),style:{width:400},autoComplete:"off",controls:!1,precision:0,min:1,className:NI,placeholder:"请输入评测时长",suffix:(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"S"})})})]}),(null==f?void 0:f.isKd)&&(0,g.jsx)(Sc.Z.Item,{style:{width:400},className:DI,label:"每日最多验证次数(未填则不限制)",colon:!1,name:"validate_num",rules:[{pattern:new RegExp(/^[1-9]\d*$/,"g"),message:"必须是正整数"}],children:(0,g.jsx)(nh,{disabled:!(0,Sd.Ny)()&&(null==R?void 0:R.is_manager),style:{width:400},autoComplete:"off",controls:!1,precision:0,min:1,className:NI,placeholder:"请输入验证次数",suffix:(0,g.jsx)("span",{style:{color:"#c5c5c5"},children:"次"})})}),(0,g.jsx)(Sc.Z.Item,{className:DI,label:"运行脚本",colon:!1,name:"evaluation_script",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,g.jsx)(oR,{disabled:!(0,Sd.Ny)()&&(null==R?void 0:R.is_manager),placeholder:"请输入运行脚本",rows:6,autoSize:{minRows:6,maxRows:999}})})]}),(0,Sd.Ny)()&&(0,g.jsx)("div",{className:jI,children:(0,g.jsx)(uI,{className:$I,onClick:a()(r()().mark((function e(){var t,n,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w.validateFields();case 2:if(t=w.getFieldsValue(),!k){e.next=10;break}return e.next=6,(0,pd.ZP)("/api/competitions/".concat(G,"/create_work_settings.json"),{method:"post",body:h()({},t)});case 6:0===(null==(n=e.sent)?void 0:n.status)&&ec.ZP.info("更改成功"),e.next=14;break;case 10:return e.next=12,(0,pd.ZP)("/api/competitions/".concat(G,"/update_work_settings.json"),{method:"put",body:h()({},t)});case 12:0===(null==(i=e.sent)?void 0:i.status)&&ec.ZP.info("更改成功");case 14:case"end":return e.stop()}}),e)}))),children:"保存更改"})})]})]})})),lR="all___ZbAJW",cR="title___QPivo",uR="add_people___jqyIi",hR="people_icon___Gf35v",dR="content_user___mESiF",pR="content_left___JUfAC",fR="user_img_box___rq6y5",gR="user_img___tN5UW",mR="user_rule_create___i4hOF",vR="user_info___ncafT",yR="user_name___hqLNP",bR="user_school___m7TBE",wR="delete_text___j_0I0",xR="select_modal___j0vsx",SR=n(1560),kR=n(26724),_R=n.n(kR);n.p,n.p;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,n.p;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,n.p;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,n.p;var CR=["classroomList","loading","dispatch"],PR=(0,d.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t,n,i=e.classroomList,o=(e.loading,e.dispatch),s=Bl()(e,CR),u=((0,d.useParams)(),i.actionTabs),h=(0,c.useState)([]),p=l()(h,2),f=p[0],m=p[1],v=(0,c.useState)(!0),b=l()(v,2),w=b[0],x=b[1],S=(0,c.useState)(!1),k=l()(S,2),_=k[0],C=k[1],P=Sc.Z.useForm(),E=l()(P,1)[0],M=(0,c.useState)([]),L=l()(M,2),A=L[0],T=L[1],D=(0,c.useState)(0),N=l()(D,2),I=N[0],B=N[1],R=(0,c.useState)([]),O=l()(R,2),F=O[0],z=O[1],j=(0,c.useState)(!0),$=l()(j,2),H=$[0],Z=$[1];(0,c.useRef)();(0,c.useEffect)((function(){"添加管理员"===i.actionTabs.key&&(Z(!0),K())}),[i.actionTabs.key]);var K=function(){var e=a()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o({type:"classroomList/getSchoolList",payload:{}});case 2:t=e.sent,m(t.map((function(e){return{value:e}})));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),G=function(){var e=a()(r()().mark((function e(){var t,n,o,a,s=arguments;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=s.length>0&&void 0!==s[0]&&s[0])&&!w||_){e.next=11;break}return o=E.getFieldValue(),C(!0),B(t?1:I+1),e.next=7,(0,$L.pA)({id:i.actionTabs.id,page:t?1:I+1,type:(null==o?void 0:o.search_type)||"",school:(null==o?void 0:o.school_name)||"",keyword:(null==o?void 0:o.keyword)||""});case 7:a=e.sent,T(t?y()(null==a?void 0:a.data):[].concat(y()(A),y()(null==a?void 0:a.data))),C(!1),(null===(n=a.users)||void 0===n?void 0:n.length)<10&&x(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=function(){var e=a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:""==F?ec.ZP.error("请选择人数"):(console.log(F),(0,$L.q0)({id:null==s?void 0:s.competitionId,ids:F}).then((function(e){0==e.status?(ec.ZP.success("添加成功"),o({type:"classroomList/setActionTabs",payload:{}}),s.queryData()):ec.ZP.error(null==e?void 0:e.message)})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=[{title:"",dataIndex:"id",width:40,ellipsis:!0,render:function(e,t){return(0,g.jsx)(sI.Z,{value:t.id,checked:F.includes(String(t.id)),disabled:null==t?void 0:t.checked})}},{title:"姓名",width:100,ellipsis:!0,dataIndex:"name",render:function(e,t){return(0,g.jsx)(tc.Z,{placement:"bottom",title:e,children:(0,g.jsx)(d.Link,{className:"bold c-black",to:"/users/".concat(t.login),target:"_blank",children:e||"--"})})}},{title:"职业",dataIndex:"identity",width:130,ellipsis:!0,render:function(e){return(0,g.jsx)(tc.Z,{placement:"bottom",title:e,children:(0,g.jsx)("span",{children:e||"--"})})}},{title:"学号/工号",width:100,dataIndex:"student_id",ellipsis:!0,render:function(e){return(0,g.jsx)(tc.Z,{placement:"bottom",title:e,children:(0,g.jsx)("span",{children:e||"--"})})}},{title:"手机",width:100,dataIndex:"phone",ellipsis:!0,render:function(e){return(0,g.jsx)(tc.Z,{placement:"bottom",title:e,children:(0,g.jsx)("span",{children:e||"--"})})}},{title:"邮箱",dataIndex:"mail",width:100,ellipsis:!0,render:function(e){return(0,g.jsx)(tc.Z,{placement:"bottom",title:e,children:(0,g.jsx)("span",{children:e||"--"})})}},{title:"学校/单位",width:150,dataIndex:"school",ellipsis:!0,render:function(e){return(0,g.jsx)(tc.Z,{placement:"bottom",title:e,children:(0,g.jsx)("span",{children:e||"--"})})}},{title:"实名认证",dataIndex:"school_name",width:100,render:function(e){return e?"是":"否"}},{title:"状态",dataIndex:"checked",width:80,render:function(e){if(e)return(0,g.jsx)("span",{className:"c-green",children:"已添加"})}}];return(0,g.jsx)(hh.Z,{className:"modal_styles",centered:!0,title:"添加管理员",open:"添加管理员"===i.actionTabs.key,okText:"确定",cancelText:"取消",width:1100,zIndex:1e3,bodyStyle:{minHeight:200},onOk:a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:U();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){z([]),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,g.jsxs)("div",{style:{padding:"0 14px"},children:[(0,g.jsxs)(Sc.Z,{layout:"inline",form:E,initialValues:{school_name:"",keyword:"",search_type:"name"},children:[(0,g.jsx)(Sc.Z.Item,{name:"search_type",label:"搜索类型",children:(0,g.jsxs)(Fc.default,{style:{width:120},className:xR,children:[(0,g.jsx)(Fc.default.Option,{value:"name",children:"姓名"}),(0,g.jsx)(Fc.default.Option,{value:"phone",children:"手机号"}),(0,g.jsx)(Fc.default.Option,{value:"mail",children:"邮箱"})]})}),(0,g.jsx)(Sc.Z.Item,{name:"keyword",label:"搜索内容:",children:(0,g.jsx)(kc.Z,{allowClear:!0,style:{width:305},size:"middle",defaultValue:(null===(t=u.selectArrs)||void 0===t?void 0:t.category_name)||(null===(n=u.selectArrs)||void 0===n?void 0:n.name)})}),(0,g.jsx)(Sc.Z.Item,{name:"school_name",label:"单位:",children:(0,g.jsx)(SR.Z,{options:f,style:{width:306},size:"middle",placeholder:"请输入单位名称",filterOption:function(e,t){return-1!==t.value.toUpperCase().indexOf(e.toUpperCase())}})}),(0,g.jsx)(Sc.Z.Item,{style:{marginRight:0},children:(0,g.jsx)(Ml.ZP,{htmlType:"submit",type:"primary",size:"middle",onClick:function(){return function(){var e;if(""===(null===(e=E.getFieldValue())||void 0===e?void 0:e.keyword))return T([]),void ec.ZP.error("请输入搜索内容");Z(!1),x(!0),C(!1),z([]),setTimeout((function(){G(!0)}),200)}()},children:"搜索"})})]}),H&&(0,g.jsxs)("div",{className:"tc font16 c-light-black mt40 pb30",children:[(0,g.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUAukEPP/xw/ZUrVyb5/f4m+AAAgYia+iwCJsTSDuUMOMJD+7tB8e5Q3A/A9xzSS2DHjh0UiUQxWvY3zc3N/5VvWRUlIE888cSI9vZ2TfH7+v8AAD5A1m6QEKLPEcbIT/yl/AG8e9ERzreSmck/Go3S9u078MjOUCg018yzTsQdlIBgNOjw4cMTYAWSfv2VFcg4HBrvBsWdYLzHQYh3hWAJAAkHZyQQi8Xo1Vdfw4RirLKysvree++94ExOxlIt2JZes2bNmL5hUK37owehb6lE2r6M6gYpRxjKz90gYwpjNhac766uy9TRcYk6O7u09+7uborFpDYBWVVVRaNHj06YgNyyZSudPXsWP0S3BIPBN8zmaWd8zwICZzgSiUzs7e3VlL8PANUNwt+VRkaDBrpAcR8Af7s5IWZnY3k1LcxldHZ2UkdHh/bCZywxUf8DJNkGLhobJ9DUqVM1H+2DDz6kQ4cO4ZEfhUKhf81nvT0DyNq1a2+MxWJfIaIFRDSNiAKZJsVKS0v7h0KVBdDPChfzaJDdCnX5MixAJ3V2dmiK39UVB0DBgG5RuqB8tsrKSs1a4F11UzFq1draSqdPx5di4f9z5syhixcvaJOHRPRgKBS63+76mEkv74A8+OCDs7u7u39JRDfpC64mxdTSiEQIKtgZNtPKWeJeuXKlX/HjVgDW4FIfFJ39CwzTJQPFhuKPGDFCe1efhw8frv0v248VZtFbWlq02XRYkGuvvYY+/HAfulhvBIPBW2ysqumk8grImjVrvheLxf6DiEpgEcaPH081NWMIgmVn2HRbpn0AAMS7O3ErgPdLl+ATxLtFaoVtugQwQakUX1kCtJH6nA0AIzVBN2zTpk20f/9+gi7ATxFC7A8Gg58x8rxTcfIGyOrVq38gpQQcNG7cOLrhhhk8R2CxlaFMeuUf8AXiXaJsAMAnS7YA+r9LSkoslsz8Y6+++qpacoKHw6FQCBuy8hbyAsgDDzywuLe3dwPWHV133XU0eTIGojikkwD2Vaj+frIVwP/xfaaAYet0FgBdIPxieyXA4X/yySeVBTkfDAZH5rNsrgMCx3vNmjXvSSlnTJzYSDNmzMhn/T2RN37hVd9fdYGUD4D/w0IYAUD1+fUwAIBCm7zcunUr7dmjOek9oVAor/S6DsiaNWtui8ViL6HRliz5fME1nhWiAIDq7ytfYGA49BLBR8gU8Auv+vypukKDbREjRrZefPFF+CAyGAxa36FlpbGSnnEdkFWrVj1ARCumTZtGU6dOsaEK+U8Cw5z6ro8aDlXWAMOkmQL6+AoA/UiQsgQYsCimgB+Mhx9+uDgBWb169T4p5bTPfe6PtSHAQggAAL/8A5Nh8dEf9Tf6zZkChi4zWQAMZXNIlMDq1auLE5BVq1ZhM/KIW2/9U3JzdCSTAmKIMXkYVO8DGAEAs/T6OQC9H4DvOJiTAABBCIVCrvdy9CV1PfNVq1Zp6w5uv/3L5iSWQ+z4eiCsAxr41U+cGe7S9kWnCxjnzwQArAMHeyXAgNgMCIY6sXRBr/jKB4B1yAQAlkPoAUh2hAEAr+C1F4BsqTEgNgCC0aFjx47RsWPHNTjSBSg3+vnpukAAwI7Z4GyNzt8blwADkiMgODZm7969mu+AAEcYy6bVKFDyaBADYFw5vRCTAckBkMOHD9P773+gtWNtbS199rOfpQkTJrAV8IJm21QGBsQiIJhE+sMfdmnNcP3119PChQsZDJuU0kvJMCAWAMFI1IYNG7W1RwsWLKCZM2d6qU25LDZKgAGxAMiePXu14yrHjh1Ld955p43NwUl5TQIMiElA1GZ+vC9btkxzyDkMXgkwICYBuXjxIm3cuImtx+BlIqFmDIhJQM6cOUNbt/5e8zvgf3AY3BJgQEwCgnsl3n13Ozvng5uL/toxICYBiUZP0vbt22nRokU0ffr0IlGT4q0mA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtSkeKMwIAxI8Wq/gZozIAyIATUp3igMCANSvNpvoOYMCANiQE2KNwoDwoAUr/YbqDkDwoAYUJPijcKAMCDFq/0Gas6AMCAG1KR4ozAgDEjxar+BmjMgDIgBNSneKAwIA1K82m+g5gwIA2JATYo3CgPCgBSv9huoOQPCgBhQk+KNwoAwIMWr/QZqzoAwIAbUpHijMCAMSPFqv4GaMyAMiAE1Kd4oDAgDUrzab6DmDAgDYkBNijcKA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtTEu1FwrXZ3d7f2unLlivaO/6nbhHMtOQPCgOSqQ44/j8uKlPInw4Br8NKF6upqqqmpyal8DAgDkpMC2fUwFF0pv94a4DPuobcScC99U1OTdjW31cCAMCBWdcf0c+kAwP9hJZwIjY2NVFZWZjlpBoQBsaw8yQ+m8geUNYCFwPduBlgOWBBYEquBAWFATOmOVX/AVCY2RPb5fFRfX0/Dhg3LKTUGhAG5SoGc8Ady0tIMD8M6lJSUUGlpKQ0ZMqT/HaNYuVgOlSUDUqSA5MMfsAoJrAEgUAAABj0QVtM18hwDMkgB8Zo/kE0Z4S8oxU8GAHDkKzAgBQxIofgDSrlVV0j/669gyGUo1kl4GBCPA1Lo/oDeGtjhEzgJQ6q0GRCPAdLR0UHnz5/vnzl2an7AqqLl0x+wWuZcnmNAPATIxYsXKRqNuj5fkKxAgCCdQ5xPfyAXRbf6LAPiIUCOHDmiWQ43QiH6A27IJTkPBsRDgHzyySeW1x0lN2yq+YFC9wcYEBclsGrVKm3dw+0eAiQSiRC6WUYDIEg1IqS6R0bT4XjpJcAWxEOAYNVqa2srdXV19bcY+wP5xZcB8RAgShXgh2CiD36CV+cH8qu27uXOgHgQEPean3PKJgEGhAHJpiNF/T0DwoAUNQDZKs+AMCDZdKSov2dAGJCiBiBb5RkQBiSbjhT19wwIA1LUAGSrPAPCgGTTkaL+ngFhQIoagGyVZ0AYkGw6UlDfY/8MViHYtQKBAWFACgoAVVh13haW5ehf6hRGHBaHY3+wcDOXwIAwILnoj6PPqj336lxePQhGDqHDSudJkyblVEYGhAHJSYHseBj77pMtAf7OdDC10Xz56FGjkkqK58X9IBarUhCP4Rc/FQROnssLwcCCwJJYDWxB2IJY1Z2UzyVbA/1J7bZmZCCx4cOHUyAQMBAzfRQGhAExrUDKGqRylPN9Cgt2WcIxBxyjRo3K+fhRBoQBSQsIRoTS+QZGnGTT5Jl4AMO4ACH5lUt3KlX2DAgDchUEyjJYvbjGhJ5njKrfc68HARDYNc+RrawMSJEAAmVP1SVSd/plUxQnv9dbA3UIhQLCyXyNpM2ADDJAsk2gGVEKJ+KoY4hSdYvcsgZW6sWAFCAg+gk0vY/gBWugTmFJ5Rvw2bxWEI0/Y/2OLIt5FsI8iH6IVA+CHRNoFsUWb6y+S2sUBPpu0WA7mpQtiMcsCA6uVodX53vIFNYg2SdQUBSiNbDyo8CAeAiQc+fOUVtbm5V2zOkZdXtTcrdosFkDK0JiQDwEyOHDh7WRJieCmkBL1S2CpeCQWgIMiIcAsePwarcm0IoFKAbEQ4Cge4VuVraQbgIN1oGtQTbpmfueAfEQIFi+gQt02tvb+3fFubGcwpzKFFdsBsRDgCjVAyh4sTXIP4wMiAcByb9acAmUBBgQBoRpyCABBoQBYUAYkKslUAhLTVhz8y8BtiBsQfKvhR4uAQPCgHhYPZ0tGhaAYlj91KlT2vo3vDo6OrTVDGpFg9o0JoTYRkQHhRAfE9GOIUOGbFm+fHn2SSubqsCreW0SJCeTWQKAACsWDh06RGfOnNGG0y2GGBG9J4T4HRE9EwwGAY5jgQFxTLScMCSA24N37NhBuGrbiSCEaCGinwSDwTcdSd+JRDOlyU662xLPT37hcJi2b9/uGBgparXZ5/P9uLm5eYOdNWYLYqc0OS2t+7R161bNcmQKlZWVNGHCBKqpqaERI0YQ/sa5vmqpPzanXb58mS5evEgXLlzQtiMcP35c+ztTEEJsLCkp+cGKFSt22dEcDIgdUuQ0NAns27ePWlpaKN2pLA0NDRoUeFVXV1uS2qeffkrHjh3TXhkgvOzz+b7X3Ny81lImuocYkFwlWIDPY8ckfp3xwoiSesdqZfyajxkzxlSt8Gu/efNm+uijj1I+h2NI586dS6NHjzaVbrbIsFbwb7CfJ1UQQjwuhAg1Nzd3ZEsr3fcMiFXJFcBz6iTGZBiy7a3HyYhGIcHo1GuvvUZnz569SiITJ06kG2+80XYwkjMCKPB3jhw5kqpV3vf7/XetXLnygJUmY0CsSM2Dz2D+IBkEq6etwA9oamrKWkv4A88++6w2h6EP2CqwZMmSnK9AyFqApAiwJBs2bNCsYlKIEtGCUCiUkqBM+TAgZlshz/HVIdXJ3SM7D5owAgjyf+655wg+gT7A8txyyy1aVy0fAQ7966+/TqdPn07IXgixv6SkZOGKFSuuNnUZCsqA5KMVDeSp/AS9jwCldONY0mxdLJThpZdeumoId9q0abR48WLXjidNJ0aUDz7R/v37kyHZUlZW9sXly5d3GWgCLQoDYlRSDsXT39+h7yI5dYhEpmpgX31VVVVW/wO/0JgR14drrrmGbr75ZoekZC3Zt956iw4cSHQ9MAPf3Nz8Z0IIzMhnDQxIVhHZF0H5CcoqAAirfkIupVJ76zHvgBd8BrwbOaF97969tGXLloTsx48fT7feeqvndmLCCr/yyiva/Ik+CCG+HwwGf2FEhgyIESmZjAMTr/cR1Gc7/QSjRVIH0OlBABBWDqCDU75u3bqEI5Iw0XfHHXf0T/AZLZdb8eCzPf/889rCSBWEEJf8fv+M+++/P/X4sK5wDEgOLaXO6k2GwQ0/IbnY6tihZKtg5/56DOfq5xwA3ze+8Q0aNmxYDlJ0/tFLly7Rr3/96wSwhRDPB4PBr2bLnQHJJqG+7/XdIvU5H36C/pBqPQxOn8aIpR6/+x0W0A6E+fPn06xZswxKML/Rdu/eTe+8805CIfx+/x+tXLlye6aSMSBJ0lEHV+sdZgCRw/JsS5qh9xOUj2DUT7CUYZaH0Jc/evRofyw481//+tc953ekqwas/TPPPKPtPdF1tdYHg8HbGBADGoNxcwgvH90j/Pond42s+gkGqmo6CnyPp556KuFHYunSpdqaqkIKWL+1fv16fZExkjU50wQiWxAibVIp1VIJuxtf7yforYKdfoLdZUZ6WMaxc+fO/qQxGbhs2TInsnI8zd/85jfJk4g/DYVC/5wuYwaESBvTz7Y+yUzLqesLkq2C036CmTKaiYuuiX7GfN68eTR79mwzSXgm7q5du2jbNuzijQfMsAeDwc8wIBmayCog+rN69TDAOgyWgONYn3jiiYTq3HPPPXlbSpKrXLEUBd1FffD5fI3Nzc3HUqXNFoRI2+SDV6ag7vJItgpW5hNybWQ3n8cSdiwAVAHzHnfddZebRbA9r9/+9rcJ8yJ+v/87K1eufJgBySBqAAInHaNV6uBqPQxevvDSdg3SJYjdgXv27On/D5avz5kzx8ksHU8b/hT8Kl036xfBYPD7DIjjoh98Gbz88ssJSzW+9KUvub6M3W6pYrITk546QN4IBoO3MCB2S7oI0nv66acT5g4wcz5y5MiCrjnugsHMug6QT4LB4BQGpKCbNT+Ff+yxx6izs7M/829/+9tUXl6en8LYlGtXVxc9+uijekBOB4PBGgbEJgEXUzIPPPBAwuTpypUrC2b2PF07YVZ97dqB8xyEEFeCwWAZA1JMmm1TXRkQmwRpNBk+OM6opLwRj7tYLrcDA+KywHPMjp30HAVo5HEpZXk0Gv5mLEbffeGFF7Q1Crfz6e5GRJf3ODzM62ATnDlzZtzly50hIrFSSqmdRvbCCy9qOTIgDgrexqR5otBGYaqkotHopFis5ydE4h4pZYk+CwbEAYE7mCQvNbFRuKdOnQp0d3f/iCi2QkoqTZU0A2KjwF1Iihcr2iDkcDg8Rkr590TyL4moIlOSDIgNAnc5CV7ublHgUkpfJBL5KyL5MyllpZFkGBAjUvJWHN4wZaE9otHo9Fis50EpaZ6ZxxkQM9LyRlzecmuiHaSUQ8Lh8D8KIf8hnZ/BXSwTAi2QqHxog4GGiluN3nVSyrRbFLMlwxYkm4S8+f1gPPaHiOaFQqF3M0nc8I7CcDj8NSL5mJRyeC5NyIDkIr38PssHx6WQv5RSRCKRfyGSP8LnXJuIAclVgvl7frAcPVpSUiLnz5//y+nTp/+1ECLjfdQZFb6trW14d3f3k0TyK3Y1CwNilyTzk85gOLx6+vTr+y4IEi+UlpZ+q7a2tj2dNNMCgvVTkUjrK1LS5+1sCgbETmnmJ61Cvv6gvr6ebrxxbr/ghKCN9fUNtwohUt4ZkhIQLA8Jh8PPEskv290EDIjdEnU/vUK9QAcXAy1YMD/FBT/ipUAgcKcQoidZmlcBEp/8Cz8hpfymE6JnQJyQqvtp4uxi3E+I/d364NUr2IYPH0aLFi3STqxJFYQQT9fXB+5NvljnKkBaW1v/jUj+rVMiZ0Cckqz76RbKJZ44vmnx4kU0dOjQLEIS/97Q0PB3+kgJgLS2ti4SgjbBijglbgbEKcnmJ12vXwNdWVmpXUUNC5ItwHpISZ9raGhoUXH7AZFSVoTD4d1E8ppsCeXyPQOSi/S8+SzONX777bevug9QlXbSpEk0d+5c2+9Lx2F/O3bsSLjURy8hXA13ww0zTF4qKg4EAoFZQgjtKJd+QJzuWqmCMyDeVHI7SrVv3z5qaWlJe4VEQ0ODdmUCXtXV1ZayxCHauMYAr9bW1pRp4PDwGTOmU2Njo6U8iAa6WhogbW1tU3p6uvdLKf0WUzT8GANiWFQFGRG/6rjkMxwOZyw//AFYFpz1izvV0RWCr6BOwIdVwkAA/BwcOI07BgEF/s4URo8eTdOnT6eqKuv3tAshektKSqfV1tYe1AAJh8OrpIwF3WgRBsQNKec/DwCCZfKRSMSVwmAId9q0a7NeYW20MEL4VgcCgZCA7xGJhE9JKbN7MUZTzxCPAbFBiAWUBLpB8BOcAgVgXHvttVRTox15YFvATbj19YEaEQ6H75Qylng7o23ZXJ0QA+KgcD2aNEa6sCvRrmuw0X2qrw9QIFBPw4fntHY2o8SE8H1NtLa2/rJvq6wr4mVAXBGzpzJJXpqCa6MnT55M0WhUu5dFfy+kuo4O103AH8E5wIiP18iRVQSLgeun3QniVwBkK5Fc4E6GfOyPW3L2Qj6wGAcOHKCNGzdmLA4gaGpqokmTJpocknW6luL3IhxujUgp65zOSqXPFsQtSbubD0adcBkqLAJGnNTFqKm6Vcoa4CppLE3x6nUKQoioaG09gQkR186zZ0DcVVwncsO98QBA/8L8hJG75OfPn0+1tSlvGnCiqLmm2cWA5CrCQf487tJQICjLAKc7OcB3qKwcTrAKVVUjtbkN3Cjb0dHRHzV5qXkBiK6Lu1gF0EpuFRHKnAxDqok5ONAAAKNJAAJdJEz06e97P3jwE/rwww/7i47vliz5vOZsF0ro62Kxk14oDWZnOXFiorIIgAKf9b/2Ki+MJMVhiIMAKABDptt9r1zppjfffJO6u7v7iwwnHDv5CiuIrTzMW1gtZqm06BLpLQNgwDKO5IDh0zgI6CbFu0pGVsEmp7N37/sJCwiR7he+cHPavRiWKuXKQ+JXPFHoiqDdyQROMjYwKYugoIBTnRyw7ikOwQAQ2fdLZK8HLNPGjZsSJgWvv/56mjy5KfvDHoshhO9OXmrisUYxWhwMn2LkSHWT8I4hVgy3JoeKioo+fwFdJEAxgvA/J8L27YnLSgDdzTcvKbh7DfuXmkBIbi5WfPnl9drM6dKlt5qaFIpGT2qL37BtEqs1iylAXlB+vWU4e/ZsymXlUEjlK8Tfq1zr2qBMLS1bEppmzpw51NAQKLjm6l+siJK7udz9zTffokuXLmm/KmZGNIoFEDi2+sk2WAZ0m1JNuGEdkt55xmf3lmFcrfObN7doVk0F7PnAVtdCC1ctd0cF3Now9e677xKUfebMG7SNM0bDYAQEjnKqOYbkCTeMGGHkaMB5jvsOGG71SsCq3Z07/5BQHFj7UaOsbYzKb72SNkyhMG5tuT127Djt3r1b2355003Gl4DhbNht294lzMTOmjUrv/KzkHtnZ2dCFwmWIdUcA+YL1LAqfAV0k/C3fo7BQvaOPgLr9tZbGxKGiQOBAM2dO8fRfJ1JPM2W2z4r4vihDehCoJuFkRUc4FVXZ2wZGLodW7f+nmbMmEELFy50RjY2pYoupN55hpXA/5IDLEB8sm3AeQYMmeYYbCqirckMhklBCCTjoQ1KYm50tQ4fPkI4whJnFC1ceJOhNf1QMPxKYXHbsmXLbG3gXBLDdtDkYVVYi+Sg5hj0s89O7mXIpU5mnh08k4IaIpmP/enrajl6cJwSvhoOxHj87NmztL3JmQL65a+99ro2O3v33Xdr+wLcDnCWk4dVU024AfyBOYb47LOZAQm365VLfoNlUtDwwXF9kDh29KhqDAxdAhL4FghTpkymadOmZexefPDBh3To0CHCcS633XZbLu2a8Vk1x6B3oNHF0y+dUAlgL4PyFdTsc0WFa4ujHZOBkYQHz6SgiaNHlWCcOrw6WfAHDx6kffv2a0ulq6tH0nXXXZfWOij/Be84DAxj7LkG/RyDAiJ5l5vKA3MMybPPsIDFGgbDpKClw6tVgztx/UEqZTp79lPauXMnqb47xs+bmiYRlkcnO6zo4mA0C0DNnDmT5s2bZ3iER23q0VsGjNtn3tQz4ECnO9e1GAEZHJOCOVx/oLMktl6gk06ZYBUOHTqsLXJTa4fQfRk7dqw2lg6fQ60VOnGild577z1NsfGLPnv2bJo4caK2f1kF/aYe5TfAh0g1xzBkSCmNHFmtnYyhhlXV+UzFqPxG6vz225sTDq4upEnB+KU54mf19fU/zukCHb2g7LqCLZvw0eXBpBOGDtHH1Yd4f79KO2AM8WAJlJMMSwOA8B0sUaqRJKSFoVXEw2gYTsUAEF6acMsmHy98X8iTgkKIdiLx54FAwNBJPqauVLPjEk8zDYzuD7pf8Alg0lOtSs2UHqABVJhbqKsbq3XZuJtkpgWujgurjXks/Q9QoUwKCiH2+Xz+u+vq6t43KgVTgCBRXAMdiUR+RBT7oZVroI0WLFW89vZL1N5+kTD2DljQLevuxnuPZgUw2xyfbxhB1dWjqFhGk3KRqdlnjx8/Trt27e5/rBB2CgpB3US+n9fX1/9MCHH12v8MQjANiEorbk16HpSS5pkVMscvXAmoSV5VA6/vFBSCtvl8JSvMWA1961gGpM+a+CKRyHeJ5E+llJWF2+xccqMSgNXetm2b1vXFwMn8+fP6D5w2moYb8YQQF4nEP9XX1/9P8q1RZvLPCRCVUTgcHiOl/CGR/AsicmYnjplacVzHJYAhc4+O9HUSif8VQvw8EAiczlUQtgCiCnHq1KlAd3f3PxHFvuO2f5KrIPj5wpZAn5/xUGlp6U9ramoy371goqq2AqLyPXnyZFNvb/ePicQ9uDHXRHk4KkvAlATiN9PKp3y+kp/U1dUdNvWwgciOAKLyPXPmzLjLlztDRGKllNLe8+kNVI6jDF4JCCFOE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII=",width:"100",alt:""}),(0,g.jsx)("br",{}),(0,g.jsx)("p",{className:"mt20",children:"请搜索要添加的管理员"})]}),!H&&""==A&&!_&&(0,g.jsxs)("div",{className:"tc font16 c-light-black mt40 pb30",children:[(0,g.jsx)("img",{src:fc,width:"100",alt:""}),(0,g.jsx)("br",{}),(0,g.jsx)("p",{className:"mt20",children:"暂时还没有相关数据哦!"})]}),(!H&&""!=A||_)&&(0,g.jsxs)("section",{children:[(0,g.jsx)("div",{className:"flexd-table-header mt20",children:(0,g.jsx)(xA.Z,{pagination:!1,dataSource:[],columns:V})}),(0,g.jsx)("div",{style:{maxHeight:260,overflow:"auto"},children:(0,g.jsx)(_R(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){G()},hasMore:w,useWindow:!1,children:(0,g.jsx)(xA.Z,{loading:_,showHeader:!1,pagination:!1,dataSource:A,columns:V,onRow:function(e){return{onClick:function(e){e.currentTarget.querySelector("input").disabled||function(e){e=String(e);var t=F.indexOf(e);t<0?F.push(e):F.splice(t,1),z(y()(F))}(e.currentTarget.querySelector("input").value)}}}})})})]})]})})})),ER=["globalSetting","dispatch","user"],MR=(0,d.connect)((function(e){return{globalSetting:e.globalSetting,user:e.user}}))((function(e){e.globalSetting;var t,n=e.dispatch,i=e.user,o=Bl()(e,ER),s=(0,c.useState)([]),u=l()(s,2),h=u[0],d=u[1],p=(0,c.useState)(""),f=l()(p,2),m=f[0],v=f[1];(0,c.useEffect)((function(){y()}),[]);var y=function(){(0,$L.sL)(null==o?void 0:o.competitionId).then((function(e){if(0==(null==e?void 0:e.status)){var t;v(null==e||null===(t=e.creator)||void 0===t?void 0:t.id);var n=[];for(var i in n.push(null==e?void 0:e.creator),null==e?void 0:e.data)n.push(null==e?void 0:e.data[i]);d(n),null==o||o.loadingFunction(!1)}else ec.ZP.error(null==e?void 0:e.message)}))};return(0,g.jsxs)("div",{className:lR,children:[(0,g.jsx)("div",{className:cR,children:"管理员设置"}),(m==(null==i||null===(t=i.userInfo)||void 0===t?void 0:t.user_id)||(0,Sd.Ny)())&&(0,g.jsxs)("div",{className:uR,onClick:function(){n({type:"classroomList/setActionTabs",payload:{key:"添加管理员",id:null==o?void 0:o.competitionId}})},children:[(0,g.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABvZJREFUWEfNmGlsVFUUx8+5b5a+DhqpKCg0IagJikRFbOlMC8USoRZZLU4LrWCAiMsHg4krERFQE+WLCwaMlEU6UBZRquyUtjNFLIoBFOMaFYTIomBnOsu7x9w386bvvZlOZ9rUOF/e5C7n/t7/nnvuOQ/hf/7D/zkf9BiQTk4pAQndwGk0ANwYfWE6DQiNgMyDQ7cf6IkI3Qakb92DgQdriGAMAQECgnhG+QDUVyfxwENosc/GWz2/dAe0W4B0Yto9nHAXEc8RiyIiEJH6VPkEGEaf4scYXEDCCTh8a2umkBkD0nflA5UgHCXi/aMymSRLSoAC+Jxks4zAoZ4zmUBmDBg6NmMDEJ9pkEiTK6ZgbHc78DVFATfY7txc1WuAdKx6YJiCv4ndNC6iczq1IwFRbUMksmJWLt657nS6kBkpGGqtXMCBv5tg3MyTYnWGsMA2wvNerwD6j1auAE5PaSdWPJMLZjolOkURYUXWyI0LewUwcGTWagKaazZuPrUmlzQMR4DVct6H83sFsO3wrCUEsMgcVhKBoyFHhJ6oR0ZjpKo4Y0sceWtf6h3AlupSAvi0qyORcnGJlfbJq9nVK4B0crGt7fLPvwJRfw0ynSiowSDiOYfVnosjV4V7BVAYbWupmkeAq/Q3h/5qSxFlxAbPcxSsez9dOC1gZTJe+BW2Ha7eCATu+N1rsmA+5VH/Y7WOgrUzETF2Aaa3bEZxUDNJ3z9p95//eyURn5POMohsTfbVQx7FYYtD6YzXj+kWoGbA76ueSkBLCPjthmwmvgKeQAkWOfI3fJQpWNxvuztRPy945OFhEUUZDYADAbiI0mcsktRoz1t7sqf2e6RgTxdPZ36XgO1fVA5RwngbQz6AE+Nose3NzlvzWzLjdOqRq9STN/SDK8n6/Ufm5CJvHwcEEjLpDwL8Rs5f/3Mq0E4B6esqR8CvvE9Ebn0GygAWyS7P0qQAvoqNoj3bWVuZrD/QUvkiJ3pFC1HqTcPQ48i2zMU71rclm9MpoN/n3kQEM8xxDQEPZDtrS8zGAi3ueZzDKtHOGMyXCzyrzWP8vor9RHSvoSYQijPclF3gcacNGGhxFxPRQS1lNxx7hIB83fV98Za3glp70DdzOMfI55yDHAMMMLLk250fHteHpsCf5y4RgZysRGDIimVn7SEzZFIF/b6HPgGiiVo2lVBjoBQ3JlyhvS3UyomG6gsAhngqy2EbqW1dwFcxhkhpEADmuzy6S7jT4dz0QJeA1FrRrz2knOEi+Y2NNhtkgC/Lrs2LRXfAV76OAKvifqoWTVoBReuznXXVYlybd8ZiBFKzmMRkA0XKE5alrBswf90Fw44l+lL5bOKwJuXJQmiUnXVj6KvZ17QH/rnIBU9sYVWMWHrFEClLduTgXTV/BXwzDhGptXM89dKuSm0uYzhHLqirSQno9z24GYiXd9QVia/MEIN2ZH3RWRdo900/SgQj9EbjdTLSl9nObXeTr1xuJ+USAdrVcSaf0XySMVaX5dwSPZixn8EHRSLQ3jL9PBCp9W6nPzU8WMbJzi37A83TlgPSc/ot7rCOr8rObc8HfA+WACn7tLo+oaaK0+DFrIKt/fQJhQEw6J16OyfleOIpM2XIIlsGWCa7drwY9k0dE+FKgz6D1tazMKnY6tx+KOCdvBSIXtDqaHNJoI+LDKXhdtf2E0kVDHknP8aJv5NSvaiTCT/z2V0fu6h1vjUUPHuBgK7SK4SAV2z2AdeK5DToneQlIKfoZ0zKBwaKfg2u8C1AfLCwypA9bnPtiFeOBgVD3om14uboKqUX/QwhbO2T01eEkWBz2UcEMDn+rQPV6mOHvbB+ighDoSsXhP9ZRT8C7ARkBMCFFZUTAcZyoD4CBhE9NtfOiqQKBr33/w5EA5MHKpPnCjUkNsHqrN8d8pYtIDLWy4jsMZurfmXYVzaec566BtErgnjaXvjpoARAOlw6KBTmahKQ6CPGj0FaP2PwutW1+1lqKhsSxsiP+pvHBpabsKj+p2DT+NcA4JkuwpbhjFktLBdHffZ7TN3o1EjLhGk8omzt0v8MQuIRa9GefNEUar7vewC6OdqNP9gK99wi/oWb7vuckPLiuyIak14lHYYZStMthbu2GQDDzSXLiOD5ZIAJXxJiKyCAIlmtOTjqs8uR5pK3OcHjYj5DeMdSuP8JOlx6dSQcvkhAUkYvjmy5tXDvC0YFG8fuIoTxSQ2leGOUpIkW1776SNO9DxDQx1GjOMlSdOCTiHdcGXFlZ2cfk6JSJiqKCLstRQcnGAGbis8CUP/YFulmdX41qaeO4ZuSq+FpOlncR7lI6j0q5eC1OKzhn3BT8RtAtDBdn459vRNWz1mKGgYYADPZgv9ybJcp/38Jk2ytfwErhCtWL5ZsugAAAABJRU5ErkJggg==",className:hR}),"添加管理员"]}),(0,g.jsx)("div",{className:dR,children:h.map((function(e,t){var n,s,l;return(0,g.jsxs)("div",{className:pR,children:[(0,g.jsx)("div",{className:fR,children:(0,g.jsxs)("a",{href:"/users/".concat(e.login,"/classrooms"),target:"_blank",children:[(0,g.jsx)("img",{src:kl.Z.IMG_SERVER+"/images/"+(null==e?void 0:e.image_url),className:gR}),m==(null==e?void 0:e.id)&&(0,g.jsx)("div",{className:mR,children:"创建者"})]})}),(0,g.jsxs)("div",{className:vR,children:[(0,g.jsx)("div",{className:yR,children:null==e?void 0:e.name}),(0,g.jsx)("div",{className:bR,children:null==e?void 0:e.school})]}),m!=(null==e?void 0:e.id)&&(m==(null==i||null===(n=i.userInfo)||void 0===n?void 0:n.user_id)||1==(null==i||null===(s=i.userInfo)||void 0===s?void 0:s.role)||2==(null==i||null===(l=i.userInfo)||void 0===l?void 0:l.role))&&(0,g.jsx)("div",{className:wR,onClick:function(){var t,n;t=null==e?void 0:e.id,hh.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"删除提示",icon:null,content:"是否确定删除该管理员?",onOk:(n=a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,$L.qN)({id:null==o?void 0:o.competitionId,ids:[t]}).then((function(e){0==(null==e?void 0:e.status)?(ec.ZP.success("删除成功"),y()):ec.ZP.error(null==e?void 0:e.message)}));case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})})},children:"删除"})]},t)}))}),(0,g.jsx)(PR,{queryData:y,competitionId:null==o?void 0:o.competitionId})]})})),LR={flex_box_center:"flex_box_center___yg5U2",flex_space_between:"flex_space_between___RNHqN",flex_box_vertical_center:"flex_box_vertical_center___ZT47P",flex_box_center_end:"flex_box_center_end___X4Xs3",flex_box_column:"flex_box_column___OzmB0",all:"all___uSCy0",content:"content___pnhPh",content_left_red:"content_left_red___SmVi6",content_left_none:"content_left_none___jTbL2",content_left_flag:"content_left_flag___mae5L",content_left_info:"content_left_info___mISvV",content_left_title:"content_left_title___lcDeu",content_left_description:"content_left_description___Ris52",content_right:"content_right___AcQrD",content_right_span:"content_right_span___WiMTr",form_item:"form_item___eHCux",form_item_item:"form_item_item___IAs6n",fuzhi:"fuzhi___rSsFz",fuzhi_text:"fuzhi_text___UV3Dz",tijiao:"tijiao___AYAeP",tijiao_text:"tijiao_text___TC6tI",quetions_info:"quetions_info___qHhFg",scoremodal:"scoremodal___LmU2Z",title:"title___M1zQX",bottom:"bottom___P728Z",yes:"yes___gRJi8",no:"no___voaWW",form_item_item_select:"form_item_item_select___g8gNL"},AR="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAtxJREFUSEu9lktME1EUhv+/M51GayTGGCPGhRs1btqKGF0oAmHBaloejRbciS6NiUtjonHnxqWPlWEKCZVX3GkiPhJB5CEaiRASV2rUYAS6sK85ZqaUlFc7gOndzdz/nG/uueecOYSDdbyzMZDKpIMETotwP4hy20zwjZSvArx2K2rfyPnu8WLuWEgQMBqaTGRuQ3C4mCN7n5hyQbk+3trzeD39msATXc0HE8lkBwQnHYFWioghj6ZFhsOxL6u3VrwJdISqJCPdAtm9KdiiEcFZKmwcj/S+zPez7ISLsGcCcW8FlrMlmKLCunzoEtAKYzKRerfVk60OIWc1j7syF94loM/QBzd9Z8XCQQxNtPafyuYVADsbJRMrZudkn8AMSK+I7MvXu6g0W9lrA32G/tlx6hegkuyCF5cljm5AapZJiamJ1v4jtIs6nR5z8vUFNAmXi1fHIr33AtHgfRG0raV1q+ox+gz9JgQ3Ngu0QqiqatjqMv5o8K6YcmVdX8Qt+g39uQiqNwMk+MZDb/3b1ui8P6pfExN3CvkhMUBfe3AKkENrC2mSEhfBzlXpTg574K2zYMc6QjWmKU9FRCn84ZymzwguQGTHaoeYd8HVomrqp2Qi1SsQ35KGHKMXte9DfX8qO/UDqTRHBbKnaJTI+PpAYEaBcmb0Qs/3iieXtmfmfj4UkQiBD5rXVTPc0DsrIgwYoQGBVBWFZQULBUNKYpKadnY8HPtlqf3t+kV6tP6lZyPUJmI+cAizyn66aNJYJ9rm0aoHw7Hf+Y4DnefKJfN3UkTKnAKzSeOkLMhRVXPXjoZjcznn/nbdEKDFKczWWWXhuPCJoV2aVvciHIsHjOajpqQ+AuLaCNAu/I20NhKvlLK99Zm5H49E0LQRmDUN2K3NMtpI8yYwIkQFJNv4na5lzXvxlKX7PVnAkv+A7dBm55nSjBi5uyjpEJWDlnRMXNZNSjUIr0z1/znq/wN40G8Rfw3IyQAAAABJRU5ErkJggg==",TR="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAhdJREFUSEvFlr1vE0EQxd87O6KBFqREokSCFISCii8hKqhuz3KB+CtSBCEo4gJRBETLXwAFJl53VAniSxRIEJpEaZFwkTZQoMT70F3Ox+W4Dyu2jiusk2dufzuzb3aGGOORMech+SCvQZoFOQdJAAYgB5DeguzT2m9Vy7HMQa2WD+ceSTpbtVBoJ7kFz7vP1dV+kX8uUO32aezvP5d0eRxQ1ofkBzSbd9jtfv/Hlv1DQXAJUk/SyaPARt+Q3AEZsNf7mF7nUIQRzLk1AccmgSVQ4Dc870YamgDjNH6eNLKc9O6g2bw4Su9foDHvj3pmVdkIz5TWXomEFf6EatRwaKs+nMTORsOE6j0AGrNZJH0Cv0A+AzAv6WYelORLkJ/g3D0Bpwp8tmjtOardXtDe3tfCuiGf0NqleGMrkqL3lBof09q7sX1R0tPCtWZmLlBB0JFzyyXA17T21sguYxIoyQQWA19Iul1S9B3KmHVJ18vOJ2fhlUgAcWRF0eco9k0I3JZ0pkoQWWjaPx116caB7RC4K+l4FTCKKJPCcSNLnffPeoHA7n9JaZ2iWad8f1lAZypl4fuvBLTKy2K6hf9Q0oOSzS9M52oD+vC8L3BuScCJ0qstknbdl3dcT/W1pwh4MMfU14AjaJ0jRtIN6hyiEmidY+KhLlDXIJyto3AqwHDoQ7oKYA7AbOwzAPAD5Ds0Gn12uxtVXecPo4t94UegNcAAAAAASUVORK5CYII=",DR=["competitions","globalSetting","loading","dispatch","user"],NR=(0,d.connect)((function(e){var t=e.competitions,n=e.loading,i=e.globalSetting,r=e.user;return{competitions:t,globalSetting:i,loading:n.models.competitions,user:r}}))((function(e){var t=e.competitions,n=(e.globalSetting,e.loading),i=e.dispatch,o=e.user,s=Bl()(e,DR),u=Sc.Z.useForm(),d=l()(u,1)[0],p=(0,c.useState)(!0),f=l()(p,2),m=f[0],v=f[1],y=(0,c.useState)(!0),b=l()(y,2),w=b[0],x=b[1],S=(0,c.useState)(!0),k=l()(S,2),_=k[0],C=k[1],P=(0,c.useState)(!0),E=l()(P,2),M=E[0],L=E[1],A=(0,c.useState)(""),T=l()(A,2),D=T[0],N=T[1],I=(0,c.useState)(""),B=l()(I,2),R=B[0],O=B[1],F=(0,c.useState)(""),z=l()(F,2),j=z[0],$=z[1],H=(0,c.useState)(""),Z=l()(H,2),K=Z[0],G=Z[1],U=t.Header,V=(0,c.useState)(!1),W=l()(V,2),q=W[0],Y=W[1],X=(0,c.useState)([]),Q=l()(X,2),J=Q[0],ee=Q[1];console.log("Header:",U),(0,c.useEffect)((function(){te()}),[]);var te=function(){(0,$L.rZ)(null==s?void 0:s.competitionId).then((function(e){var t,n,i;v(null==e?void 0:e.name_finish),x(null==e?void 0:e.url_finish),C(null==e?void 0:e.time_finish),L(null==e?void 0:e.question_finish),N(null==e||null===(t=e.competition)||void 0===t?void 0:t.name),$(kA()(null==e||null===(n=e.competition)||void 0===n?void 0:n.start_time).format("YYYY-MM-DD HH:mm")+" ~ "+kA()(null==e||null===(i=e.competition)||void 0===i?void 0:i.end_time).format("YYYY-MM-DD HH:mm")),O("".concat(window.location.origin,"/competitions/detail/")+(null==e?void 0:e.identifier));var r="";for(var o in null==e?void 0:e.data){var a,l;if(Number(o)==Number((null==e?void 0:e.data.length)-1))r+="赛题"+(Number(o)+1)+":"+(null==e||null===(a=e.data[o])||void 0===a||null===(a=a.shixun)||void 0===a?void 0:a.name);else r+="赛题"+(Number(o)+1)+":"+(null==e||null===(l=e.data[o])||void 0===l||null===(l=l.shixun)||void 0===l?void 0:l.name)+"、"}G(r),d.setFieldValue("identifier",null==e?void 0:e.identifier),null==s||s.loadingFunction(!1)}))};return(0,g.jsxs)("div",{className:LR.all,children:[(0,g.jsxs)("div",{className:LR.content,children:[(0,g.jsxs)("div",{className:m?LR.content_left_none:LR.content_left_red,children:[(0,g.jsx)("img",{className:LR.content_left_flag,src:m?AR:TR}),(0,g.jsxs)("div",{className:LR.content_left_info,children:[(0,g.jsx)("div",{className:LR.content_left_title,children:"主标题设置"}),(0,g.jsx)("div",{className:LR.content_left_description,children:m?"您已设置主标题为:".concat(D):"请在设置中填写正确的竞赛主标题"})]})]}),m?(0,g.jsx)("div",{className:LR.content_right,onClick:function(){s.clickInformation("主标题")},children:"查看"}):(0,g.jsxs)("div",{className:LR.content_right,onClick:function(){s.clickInformation("主标题")},children:["去完善信息",(0,g.jsx)("i",{className:"iconfont icon-xiaojiantou",style:{fontSize:"10px"}})]})]}),(0,g.jsxs)("div",{className:LR.content,children:[(0,g.jsxs)("div",{className:w?LR.content_left_none:LR.content_left_red,children:[(0,g.jsx)("img",{className:LR.content_left_flag,src:w?AR:TR}),(0,g.jsxs)("div",{className:LR.content_left_info,children:[(0,g.jsx)("div",{className:LR.content_left_title,children:"网址设置"}),(0,g.jsxs)("div",{className:LR.content_left_description,children:[w&&(0,g.jsxs)("span",{children:["您已设置网址为:",(0,g.jsx)("a",{href:R,target:"_blank",children:R})]}),!w&&(0,g.jsx)("span",{children:"请在设置中填写正确的网址"})]})]})]}),w?(0,g.jsx)("div",{className:LR.content_right,onClick:function(){s.clickInformation("比赛地址")},children:"查看"}):(0,g.jsxs)("div",{className:LR.content_right,onClick:function(){s.clickInformation("比赛地址")},children:["去完善信息",(0,g.jsx)("i",{className:"iconfont icon-xiaojiantou",style:{fontSize:"10px"}})]})]}),(0,g.jsxs)("div",{className:LR.content,children:[(0,g.jsxs)("div",{className:_?LR.content_left_none:LR.content_left_red,children:[(0,g.jsx)("img",{className:LR.content_left_flag,src:_?AR:TR}),(0,g.jsxs)("div",{className:LR.content_left_info,children:[(0,g.jsx)("div",{className:LR.content_left_title,children:"竞赛时间"}),(0,g.jsx)("div",{className:LR.content_left_description,children:_?"您已设置竞赛时间为:".concat(j):"请在设置中填写正确的竞赛时间"})]})]}),_?(0,g.jsx)("div",{className:LR.content_right,onClick:function(){s.clickInformation("竞赛时间")},children:"查看"}):(0,g.jsxs)("div",{className:LR.content_right,onClick:function(){s.clickInformation("竞赛时间")},children:["去完善信息",(0,g.jsx)("i",{className:"iconfont icon-xiaojiantou",style:{fontSize:"10px"}})]})]}),(0,g.jsxs)("div",{className:LR.content,children:[(0,g.jsxs)("div",{className:M?LR.content_left_none:LR.content_left_red,children:[(0,g.jsx)("img",{className:LR.content_left_flag,src:M?AR:TR}),(0,g.jsxs)("div",{className:LR.content_left_info,children:[(0,g.jsx)("div",{className:LR.content_left_title,children:"赛题设置"}),1===U.mode&&(0,g.jsxs)("div",{children:[M&&(0,g.jsx)(tc.Z,{placement:"bottom",title:"您已经设置的:"+K,children:(0,g.jsxs)("div",{className:LR.content_left_description,children:["您已经设置的:",K]})}),!M&&(0,g.jsx)("div",{className:LR.content_left_description,children:"请在设置中填写正确的赛题设置"})]}),2===U.mode&&(0,g.jsxs)("div",{children:[U.course_id&&(0,g.jsx)(tc.Z,{placement:"bottom",title:"您已经成功设置:"+U.course_name+"为本次竞赛的课堂",children:(0,g.jsxs)("div",{className:LR.content_left_description,children:["您已经成功设置“",U.course_name,"”为本次竞赛的课堂"]})}),!U.course_id&&(0,g.jsx)("div",{className:LR.content_left_description,children:"请在设置中填写正确的赛题设置"})]})]})]}),M?(0,g.jsx)("div",{className:LR.content_right,onClick:s.clickQuetions,children:"查看"}):(0,g.jsxs)("div",{className:LR.content_right,onClick:s.clickQuetions,children:["去完善信息",(0,g.jsx)("i",{className:"iconfont icon-xiaojiantou",style:{fontSize:"10px"}})]})]}),m&&w&&_&&M&&(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:LR.content,children:[(0,g.jsx)(Sc.Z,{form:d,style:{marginLeft:22},labelCol:{flex:"100px"},children:(0,g.jsx)(Sc.Z.Item,{className:LR.form_item,colon:!1,name:"identifier",children:(0,g.jsx)(kc.Z,{prefix:"".concat(window.location.origin,"/competitions/detail/"),disabled:!0,className:LR.form_item_item})})}),(0,g.jsxs)("div",{className:LR.fuzhi,onClick:function(){var e=document.createElement("input");e.value="".concat(window.location.origin,"/competitions/detail/")+d.getFieldValue("identifier"),document.body.appendChild(e),e.select(),document.execCommand("Copy"),ec.ZP.success("复制成功"),e.remove()},children:[(0,g.jsx)("i",{className:"iconfont icon-fuzhi",style:{marginRight:"5px"}}),"复制"]}),(0,g.jsx)("div",{className:LR.fuzhi_text,children:"参赛人员可访问该网址参加比赛"})]})}),(0,g.jsxs)("div",{className:LR.content,children:[(0,g.jsx)(uI,{disabled:!(m&&w&&_&&M),type:"primary",className:LR.tijiao,onClick:a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Y(!0),(0,lI.GY)({display_aliases:!0}).then((function(e){ee(null==e?void 0:e.schools)})).then((function(){var e,t,n;d.setFieldsValue({sponsor_schools:null===(e=o.userInfo)||void 0===e?void 0:e.user_school_id,sponsor_user_name:null===(t=o.userInfo)||void 0===t?void 0:t.real_name,sponsor_user_phone:null===(n=o.userInfo)||void 0===n?void 0:n.phone})}));case 2:case"end":return e.stop()}}),e)}))),children:"提交审核"}),(0,g.jsx)("div",{className:"".concat(LR.tijiao_text," ").concat(m&&w&&_&&M?"":"c-red"),children:m&&w&&_&&M?"准备好后,您可发起审核":"请完成竞赛指引后,再提交审核"})]}),(0,g.jsxs)(hh.Z,{title:!1,footer:!1,open:q,width:610,className:LR.scoremodal,closable:!1,centered:!0,onCancel:function(){return Y(!1)},children:[(0,g.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,g.jsx)("div",{className:LR.title,children:"为了加快竞赛审核速度,请确认以下信息是否准确"}),(0,g.jsx)("span",{onClick:function(){return Y(!1)},style:{cursor:"pointer"},className:LR.close,children:(0,g.jsx)("i",{className:"iconfont icon-guanbi",style:{color:"#979797",fontSize:"15px"}})})]}),(0,g.jsx)("div",{className:LR.content,children:(0,g.jsxs)(Sc.Z,{form:d,className:LR.formWrap,onFinish:function(e){(0,$L.qt)(h()(h()({},e),{},{id:null==s?void 0:s.competitionId})).then((function(e){0==(null==e?void 0:e.status)?(ec.ZP.success("提交成功"),Y(!1),i({type:"competitions/getStaff",payload:{identifier:null==s?void 0:s.competitionId}}),i({type:"competitions/getHeader",payload:{identifier:null==s?void 0:s.competitionId}})):ec.ZP.error(null==e?void 0:e.message)}))},labelCol:{flex:"110px"},children:[(0,g.jsx)(Sc.Z.Item,{className:LR.form_item,label:"主办方",colon:!1,name:"sponsor_schools",children:(0,g.jsx)(Fc.default,{mode:"multiple",className:LR.form_item_item_select,options:J,fieldNames:{label:"name",value:"id"},placeholder:"请输入主办方",filterOption:function(e,t){var n;return(null!==(n=null==t?void 0:t.name)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())}})}),(0,g.jsx)(Sc.Z.Item,{className:LR.form_item,label:"主要负责人姓名",colon:!1,name:"sponsor_user_name",children:(0,g.jsx)(kc.Z,{className:LR.form_item_item,placeholder:"请输入主要负责人姓名"})}),(0,g.jsx)(Sc.Z.Item,{className:LR.form_item,label:"主要负责人电话",colon:!1,name:"sponsor_user_phone",rules:[{pattern:new RegExp(/^((0\d{2,3}(-)?\d{7,8})|(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8})$/,"g"),message:"必须是正确的座机号或者手机号"}],children:(0,g.jsx)(kc.Z,{className:LR.form_item_item,placeholder:"请输入主要负责人电话"})}),(0,g.jsx)("div",{className:LR.bottom,children:(0,g.jsxs)(Sc.Z.Item,{children:[(0,g.jsx)(Ml.ZP,{size:"middle",className:LR.no,onClick:function(){Y(!1)},children:"取消"}),(0,g.jsx)(Ml.ZP,{className:LR.yes,size:"middle",type:"primary",htmlType:"submit",loading:n,children:"保存"})]})})]})})]})]})})),IR="ModalStyle___cW8H3",BR=["competitions","globalSetting","dispatch","user","loadingFunction","loading"],RR=["key","name"],OR=(0,d.connect)((function(e){return{competitions:e.competitions,loading:e.loading.effects}}))((function(e){var t=e.competitions,n=(e.globalSetting,e.dispatch),i=(e.user,e.loadingFunction),o=void 0===i?function(e){}:i,s=e.loading,u=Bl()(e,BR),p=t.GuidesData,f=(0,d.useParams)().identifier,m=void 0===f?null==u?void 0:u.competitionId:f,v=(0,c.useRef)(),y=Sc.Z.useForm(),b=l()(y,1)[0],w=Sc.Z.useWatch("list",b),x=function(){var e=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("====",t),!(t.list.length<2)){e.next=4;break}return ec.ZP.warning("请至少添加2个赛程"),e.abrupt("return");case 4:return e.next=6,n({type:"competitions/postGuides",payload:h()({identifier:m},t)});case 6:0==e.sent.status&&(ec.ZP.success("更新成功"),n({type:"competitions/getHeader",payload:{identifier:m}}),S());case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(){n({type:"competitions/getGuides",payload:{identifier:m}})};return(0,c.useEffect)((function(){o(!1),S()}),[]),(0,c.useEffect)((function(){var e;b.setFieldsValue(h()(h()({},(null==p?void 0:p.data)||{}),{},{list:null==p||null===(e=p.data)||void 0===e||null===(e=e.list)||void 0===e?void 0:e.map((function(e){return h()(h()({},e),{},{competition_time:null!=e&&e.competition_time?kA()(null==e?void 0:e.competition_time):null})}))}))}),[p]),(0,g.jsx)(mh.Z,{spinning:!!s["competitions/getGuides"]||!!s["competitions/postGuides"],children:(0,g.jsx)("div",{className:"p30",children:(0,g.jsxs)(Sc.Z,{form:b,colon:!1,onFinish:x,initialValues:{list:[{},{}]},children:[(0,g.jsxs)(dh.Z,{wrap:!1,align:"middle",gutter:20,children:[(0,g.jsx)(bd.Z,{children:"赛程设置"}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{style:{marginBottom:0},name:"guides_is_hidden",valuePropName:"checked",children:(0,g.jsx)(sI.Z,{children:"隐藏"})})}),(0,g.jsx)(bd.Z,{flex:1,children:(0,g.jsx)(dh.Z,{wrap:!1,align:"middle",justify:"end",children:(0,g.jsx)(bd.Z,{children:(0,g.jsx)(sA,{icon:(0,g.jsx)("i",{className:"iconfont icon-xiaojiahao "}),onClick:function(){6!=(null==w?void 0:w.length)?v.current({}):ec.ZP.warning("赛程最多可添加6个")},children:"新增"})})})})]}),(0,g.jsx)("div",{className:"mt25 mb30",style:{padding:"14px 20px",background:"#F6F7F9",color:"#464F66"},children:"规则说明:在此版块管理员可以创建赛事的日程时间轴,每个赛程将在时间轴上按序号顺序依次排列。创建成功后将对平台用户公开,使用户能够轻松了解整个赛事的进度和安排。"}),(0,g.jsx)(Sc.Z.List,{name:"list",children:function(e,t){var n=t.add,i=t.remove;return v.current=n,(0,g.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:e.map((function(e,t){var n=e.key,r=e.name,o=Bl()(e,RR);return(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{style:{background:"#F6F7F9",padding:"10px 20px"},children:(0,g.jsxs)(dh.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,g.jsxs)(bd.Z,{children:["赛程",(0,_l.EM)(t+1)]}),(0,g.jsx)(bd.Z,{children:(0,g.jsx)("span",{className:"c-red current",onClick:function(){hh.Z.confirm({className:IR,icon:null,centered:!0,title:"提示",width:460,content:"确定要删除此赛程吗?删除后,请点击“保存更改”按钮以保存此次操作。",onOk:function(){i(r)}})},children:"删除"})})]})}),(0,g.jsx)("div",{className:"p20",style:{border:"1px solid #F1F1F1",borderTopColor:"transparent"},children:(0,g.jsxs)(dh.Z,{wrap:!1,align:"middle",gutter:40,children:[(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,h()(h()({label:"赛程名称"},o),{},{name:[r,"name"],rules:[{required:!0,message:"请输入赛程名称"},{whitespace:!0,message:"赛程名称不能全为空格"}],children:(0,g.jsx)(kc.Z,{placeholder:"请输入赛程名称",maxLength:10,showCount:!0,style:{width:360}})}))}),(0,g.jsx)(bd.Z,{flex:1,children:(0,g.jsx)(Sc.Z.Item,h()(h()({label:"赛程时间"},o),{},{name:[r,"competition_time"],rules:[{required:!0,validator:function(e,n){var i;return null===n?Promise.reject("请选择截止时间"):0!==t&&kA()(n).startOf("second")<=kA()(null==w||null===(i=w[t-1])||void 0===i?void 0:i.competition_time).startOf("second")?Promise.reject("当前赛程时间需晚于上一个赛程时间,请重新选择"):Promise.resolve()}}],children:(0,g.jsx)(aI,{style:{width:"100%"},placeholder:"请选择赛程时间",format:"YYYY-MM-DD HH:mm",disabledDate:0!==t&&function(e){var n;return(0,_l.Q8)(e,null,null,null==w||null===(n=w[t-1])||void 0===n?void 0:n.competition_time)},disabledTime:0!==t&&function(e){var n;return(0,_l.d0)(e,null==w||null===(n=w[t-1])||void 0===n?void 0:n.competition_time)},suffixIcon:(0,g.jsx)(g.Fragment,{}),showTime:{format:"HH:mm",defaultValue:kA()((0,_l.U6)(),"HH:mm")}})}))})]})})]},n)}))})}}),(0,g.jsx)(dh.Z,{className:"mt20",wrap:!1,justify:"end",gutter:20,children:(0,g.jsx)(bd.Z,{children:(0,g.jsx)(Sc.Z.Item,{children:(0,g.jsx)(Ml.ZP,{type:"primary",htmlType:"submit",children:"保存更改"})})})})]})})})})),FR=(0,d.connect)((function(e){return{user:e.user,competitions:e.competitions}}))((function(e){var t=e.competitions,n=e.dispatch,i=t.Header.identifier,r=t.actionTabs,o=["竞赛信息","评测设置","管理人员","竞赛指引"],a=(0,c.useState)(null==o?void 0:o[0]),s=l()(a,2),u=s[0],h=s[1],d=(0,c.useState)(!0),p=l()(d,2),f=p[0],m=p[1],v=(0,c.useState)(""),y=l()(v,2),b=y[0],w=y[1],x=function(e){h("竞赛信息"),"主标题"==e?w("name"):"比赛地址"==e?w("identifier"):"竞赛时间"==e&&w("start_time")};return(0,c.useEffect)((function(){"7"==(null==r?void 0:r.key)&&x("竞赛时间")}),[r.key]),(0,g.jsxs)("div",{className:"bg-white mt-20px-rem rounded-4px-rem text-14px-rem",style:{border:"1rem solid #F1F1F1"},children:[(0,g.jsx)("div",{className:"flex item-center py-18px-rem px-20px-rem",style:{color:"#232B40",borderBottom:"1rem solid #F1F1F1"},children:"基础设置"}),(0,g.jsxs)("div",{className:"flex",children:[(0,g.jsx)("div",{className:"py-14px-rem flex flex-col sticky",style:{width:"182rem",borderRight:"1rem solid #F1F1F1",top:0,maxHeight:"100vh"},children:null==o?void 0:o.map((function(e,t){return(0,g.jsxs)("div",{className:"flex item-center py-14px-rem px-20px-rem current-primary-hover relative ".concat(u==e?"current-primary":""),style:{background:u==e?"#F8F9FA":""},onClick:function(){h(e),n({type:"competitions/setActionTabs",payload:{key:""}}),m(!0)},children:[" ",e,u==e&&(0,g.jsx)("div",{className:"absolute h-full w-4px-rem",style:{background:"#000",borderRadius:"10rem 0 0 10rem",top:0,right:0}})]},t)}))}),(0,g.jsx)("div",{className:"flex-1",children:(0,g.jsxs)(mh.Z,{spinning:f,className:"h-full w-full",children:["竞赛信息"==u&&(0,g.jsx)(pI,{competitionId:i,loadingFunction:m,formName:b,isKd:!0}),"图片设置"==u&&(0,g.jsx)(vI,{competitionId:i,loadingFunction:m}),"评测设置"==u&&(0,g.jsx)(sR,{competitionId:i,loadingFunction:m,isKd:!0}),"赛程设置"==u&&(0,g.jsx)(OR,{competitionId:i,loadingFunction:m}),"管理人员"==u&&(0,g.jsx)(MR,{competitionId:i,loadingFunction:m}),"竞赛指引"==u&&(0,g.jsx)(NR,{competitions:t,clickInformation:x,clickQuetions:function(){h("评测设置")},competitionId:i,loadingFunction:m})]})})]})]})})),zR=(0,d.connect)((function(e){return{user:e.user,competitions:e.competitions}}))((function(e){var t,i,o,s,u=e.dispatch,h=e.competitions,p=h.actionTabs,f=h.Header,v=(0,d.useSearchParams)(),y=l()(v,1)[0],b=HL($L.g_,{}),w=l()(b,4),x=w[2],S=w[3],k=(void 0===S?{}:S).data,_=(void 0===k?{}:k).identifier,C=HL($L.OU,{}),P=l()(C,4),E=P[1],M=P[2],L=P[3],A=(void 0===L?{}:L).data,T=(void 0===A?{}:A).competition_modules,D=void 0===T?[]:T,N=[{label:"首页",key:"1",children:(0,g.jsx)(mh.Z,{spinning:E,children:(0,g.jsx)("div",{className:"bg-white mt-20px-rem mb-20px-rem rounded-4px-rem p-20px-rem flex flex-col gap-30px-rem",style:{border:"1rem solid #f1f1f1"},children:null==D?void 0:D.map((function(e){return(0,g.jsx)(ZL,{DataProps:e,onFinish:function(){var e=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:M({});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},null==e?void 0:e.id)}))})})},{label:"说明",key:"2",children:(0,g.jsx)(VL,{})},{label:"赛题",key:"3",children:(0,g.jsx)(WL,{})},{label:"提交结果",key:"4",children:(0,g.jsx)(g.Fragment,{children:"提交结果"}),hidden:!0},{label:"参赛队伍",key:"5",children:(0,g.jsx)(bA,{})},{label:"排行榜",key:"6",children:(0,g.jsx)(_A,{})},{label:"设置",key:"7",children:(0,g.jsx)(FR,{}),hidden:!(null!=f&&f.is_manager)}],I=(0,c.useState)(null!==(t=N.find((function(e){return e.key==y.get("type")})))&&void 0!==t&&t.hidden?null===(i=N[0])||void 0===i?void 0:i.key:y.get("type")||(null===(o=N[0])||void 0===o?void 0:o.key)),B=l()(I,2),R=B[0],O=B[1],F=function(){u({type:"competitions/getHeader",payload:{identifier:_}})};return(0,c.useEffect)((function(){x({}),M({})}),[]),(0,c.useEffect)((function(){_&&F()}),[_]),(0,c.useEffect)((function(){null==(null==f?void 0:f.enrolled)||null!=f&&f.enrolled||!(0,Sd.bg)()||f.is_manager||hh.Z.info({title:"提示",content:"请及时填写队伍信息,只有在参赛队伍页面完整显示队伍信息,且和赛题负责老师(18057983633)微信确认报名信息后才视为报名成功,否则视为报名不成功!"})}),[null==f?void 0:f.enrolled]),(0,g.jsxs)("div",{className:"text-14px-rem",children:[(0,g.jsxs)("div",{className:"w-full flex justify-between px-30px-rem py-10px-rem",style:{height:"200rem",background:"url(".concat(n(82075),") center / auto 100% no-repeat ")},children:[(0,g.jsx)("img",{src:n(67734),height:55,style:{height:"55rem"}}),(0,g.jsx)("img",{src:n(72647),height:55,style:{height:"55rem"}})]}),(0,g.jsx)("div",{className:"w-full flex item-center justify-center",style:{background:"linear-gradient( 90deg, #021D46 0%, #05113A 51%, #032250 100%)",height:"64rem"},children:(0,g.jsx)(m,{navData:N,activeKey:R,onChange:function(e){var t=e.item;O(null==t?void 0:t.key)},extra:(0,Sd.bg)()?(0,g.jsxs)("div",{className:"flex item-center gap-10px-rem",children:[(0,g.jsx)("div",{className:"current-primary-hover c-white",onClick:function(){u({type:"competitions/save",payload:{actionTabs:{key:"报名",params:{isEdit:null==f?void 0:f.enrolled}}}})},children:"账号管理中心"}),(0,g.jsx)("div",{className:"current-primary-hover c-white",onClick:function(){(0,KL.x)()},children:"退出"})]}):(0,g.jsx)("span",{className:"current c-white",onClick:function(){u({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})},children:" 登录 / 注册 "})})}),(0,g.jsx)("div",{className:"ml-auto mr-auto",style:{width:"1200rem"},children:null===(s=N.find((function(e){return(null==e?void 0:e.key)==R})))||void 0===s?void 0:s.children}),"报名"==(null==p?void 0:p.key)&&(0,g.jsx)(wA,{onFinish:function(){var e;F(),null!=p&&null!==(e=p.params)&&void 0!==e&&e.isEdit&&ic.Z.publish("competitionsTeamsData",{}),u({type:"competitions/save",payload:{actionTabs:{key:""}}})}})]})}))},71283:function(e,t,n){"use strict";n.d(t,{rX:function(){return f},xY:function(){return p},tJ:function(){return c},o1:function(){return u}});n(7557),n(41498);var i=n(94706),r=n(91662),o=n(13277),a=n(1079),s=n.p+"static/newqrcode.a8740efb.png",l=(n(32637),n(37712)),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return!(!u(e)||!h(e,t,n,i,r))},u=function(e){return!!(0,o.bg)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},h=function(e){var t,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=(0,i.getDvaApp)()._store.getState(),c=l.user;return!(null===(t=c.userInfo)||void 0===t||!t.profile_completed)||(n?e({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:o,isCurrentPage:s}}):r.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,a.xg)("/account/profile/edit"),d()}}),!1)},d=function(){r.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料?请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},p=function(){return!!(0,o.V9)()||(r.Z.warning({centered:!0,width:530,title:"提示",content:(0,l.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,l.jsx)("p",{children:"扫码加头歌助教,申请操作权限"}),(0,l.jsx)("img",{src:s,width:200})]}),okText:"我知道了",maskClosable:!0}),!1)},f=function(e,t){return!!e||(r.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{children:t||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"}),(0,l.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,l.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABgILAMgwe5cwJ5O3jVtaWgp+z8KKW+bOPvjuwq1bMaTD+OLG2+ks2/aSSS78FTMcYQEAIQgsACADgQUAZCCwAIAMBBYAkIHAAgAyLBnW4CxnS/fb9k4r7nk7W8LBClZUQbBiYIEVI2ycnXjFIjjCAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQU4bAGK25Fu/Besm03wm27i2/bEATbNmTbN6QoRzDkhCMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5F7Xpnpy2w7Ta8bawo4eDC6RVIf0YmufBXzCwKLIvaCgC2ceevGKeEAEAGAgsAyEBgAQAZCCwAIMPsRfdVq1aFw2GrW7llyxZ7dgfACEToV8ydvd9vkhV1CPBOvHOkvdNZeY0IwSkhAJCBwAIAMhBYAEAGAgsAyEBgAQAZCCwAICOPcVhUnke3rcg/lYktbLuT7eyet+0zIo16j3CEBQBkILAAgAwEFgCQgcACADIQWABABgILAMjIo1pDHit19K6zFXfxXTiwgMqz+FZ004Wc/YidHSJjsuILqjUAQHFCYAEAGQgsACADgQUAZCCwAIAMBBYAkGF21hxnKxZQqdJvW5Nsm1LEinbmXNy2vlNZ3DhnfwgWjbDBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgw+ywBpOsuMlKZZ3GN2RycdsKcriQC3cIlclH3FkOBEdYAEAGAgsAyEBgAQAZCCwAIAOBBQBkILAAgAz7JqHIiUqZfeONN8nZ4gS29d2KggcmWbF1Z4tnGN8QlZk+GI6wAIAQBBYAkIHAAgAyEFgAQAYCCwDIQGABABl5VGuw7Z63FSMYSN/NpTK1hEkuHC5AZdzMyPl14AgLAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkGG2WoMLa++bbKdxzvbIZN+pVL9wdqyDs01y4eKO/95xhAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIyKNaQ0623bA3eUPUhdMBmOym8XdaMdOH8b67cLYLZ1kxdsS2ARDOThTCcIQFAIQgsACADAQWAJCBwAIAMhBYAEAGAgsAyDBbrSGPLbmvEgDpDRnfum3VGqzYEJXSCC5skjtnkTAJR1gAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyqNdh2x93kOq1ovLM9smIQgG1lDEw2ydlhNzk5+7lb0U1n5+/AJBQAUJwQWABABgILAMhAYAEAGQgsACADgQUAZJidhMI2VlTpt22sQ045t27baAPjO8TZ2S5sG/hiRa0IZ4tSWNFO4zAJBQCMdAgsACADgQUAZCCwAIAMBBYAkIHAAgAyzA5rcPYpc2ebZFvjTXJ2h9h2v9/Zxhtf3OSGrJjpw2Q7c7LogyMzDguMsOKbN5LbCW6DU0IYcdasWTNhwgSnWwHDkce8hM7OOmcclUHtJtcJJi1ZsmTNmjU9/+vCT9PxankONn4gOMKCEeqZZ55ZtmyZ062A/OAIq8AbyglHWK510003rV27lrny08QRVo7VIrAKu6GcEFhuNnHixIMHD7rw00Rg5Vitsx2wIu+c/c2T/pIZbXkyqbceUxsOqrV16r46rf6A1tist7Xp7e2iIyYyaZFRGWPco3CPl5eEpNJSadQoeXy1PHmiMm2qUjNVmXSaVD6G+/1Od4Uxxp599tlFixbl7qkF/5wbX9x4k6xIB3d+FRFYdnQzJyo96m5DJqO3HM7s2p1+f3vmo13q3lrtaKuIdghVZcabxzlXFB4pkSvKlek1nlkzvXPneGbOkMZWcY/Hwd5VVlYePXo0R68RWMNd3CIILDu6mROJHolMRqs/kNr2burNrentO7SDjSKVKuD6uc8nnzbeO2e279KLffPOlydPdCS5+t0x7O0+Amu4i1sEgWVHN3NyeY/01mOpbe8mNm5ObXtHa2xmmmbt9mRZHl/tm3dB4Nr5vnnnS+Vj7OzsunXrbrzxxlNfR2ANe3GLILDs6GZOLu2REGp9Q/KFl+Lrn8/s2i2SSfs23bUH/H7PzBnBry70XzNfmTyR2fJoTlNT0/jx43PtDATWMBe3CALLjm7m5LoeCaHW1cfXPBv/w3Nq3X6m63ZsdCCSpNRMCS66PnjTDcrUyTbElhWJg8AqOASWHd3MyVU90ppb4qvXxZ56Rt1Xl8dFdKtxrkybGrp1SfDmRXL1WIs3hcAqZI8sYsk4LLNtct84F+Mc/0TzbnA8kXjx5c5fPpbevsPyC1XDI8veObPD3/1W4OoreTBg0UZcOGrJihGFtpVbsGjXIbAKjFZgZT7e3bHq0cTzm0Q84XRbhsCDgcDCBSU/uNNz9gxL1o/AcmhDeUFgFRiVwBLJZGL9xuhDP1f31Trdljwo02oi99wV+Oq1BR90isByakN5QWAVGInA0pqaOx56JLZ6rYjFnW5L3ngoGLp5cck935fHVRdytQgshzaUFwRWgbk/sNLvf9i+/GeprW+76OJ6vjj3Xfy50vt/4p17buFWicByZkN5QXmZkUQXyc2vHL/tjtSWtwinFWNMiNSWt47fdkdy8ytMp9wRyBMCa8RQ1dhTq9u+czeti1aDdWhfbdt37o49tZqpqtNtAZvYV17GOCqFPqwYSGXRiYlIZ2KPPxG9f6XeHjW5KreRSiOR5ctCS2/nXlMPIbpwAJ0Lf0dWbD0vmISi+Il0pvNXj0UfeFh0djrdlsLT26PtP/03kcmEv/Mtk5kF7odTwmKnqrHHnyjWtOoiOjujDzwce/wJnBsWPQRWURMi9vTa6P0rizitujva2Rm9f2Xs6bW0bybAUBBYxSy5+dXoigeL77pVTnp7NLriweTmV51uCFgIgVW00u9vP/GjFdrhI043xD7a4SMnfrQi/f52pxsCVkFgFSetqbl9+X3q3iIZwWCcure2ffl9WlOz0w0BS5gtL0Nlghxnh0rYPGhYpFLt9/yk87EnzGyUtPC3bi996Gfc5zO+CJXyMjk5+8CJSZhIdaRLPLsh9vRap1vhpNjTaxPPbnC6FVB4CKxik9m1O7ryEYpPNReQiMWjKx/JfLzb6YZAgSGwioqIJzoeeXQEXro6lbq3tuPnj7q/zhfkBYFVVBKbXkps2OR0K9wisWFTYtNLTrcCCgmBVTy05pbOXz2OY4oeIp7o/NXjWnOL0w2BgkFgFY/46nXp9z90uhXukn7/w/jqdU63AgrGbLUG45ytbeBsqQnzd4iH3CdqbV3rdUtw9epUyvSa8g3PKDVTB3+bC2d1craIgjtLOOAIq0jE16xHWuWk7q2Nr1nvdCugMBBYxUCtq4+ve86SVQvBdL3Pn7z0WzbfP13/IJtpAGOMsfi659S6ekv2D9gL9bCKQXLTS+q+usKvVzBp9Gipopyxk0fyqqodbBSZjKHFZVmedBr3+XsXz4uua43NTFXl08Yz5eQXNZPRDjUZbcBJ6r665KaXwt/7duF3EdgLgUWe3nosvn6j0bIqksR0vXvCVM67/wy4ai2wcH5k+bLu4xpJ0hqbjn9tqbq/nklDHZsLIZWWjvrFv3tmnT2c+Vk5F52x40u/q+5vGPX/fqlMnsR0nUmy+vc9x267Qxw5mt/k9ULE128M3nyjVD6mwHsf7IXAIi+17d3Mro+NvJN7veE7vyVVVqh792kNB9WDh/Rjx0VHh0ilezOF8z5hJMty9djedNB1pshGWyZLUlXFsKeYF50x7vMxIeSKip4ZvdRP9opEcoh0zpVlmV0fp7a9G7h2fmF2OjgEgUVcRk1s3CySqaHfKQTz+fxXXub73IVMFyKR0KMd+uEjWlOzWrtf3V+v7m/Qmpr11mPakaO9pTu7LiT1REC+53ambgoJJgQPBJjX2/OS1tTCFZmXlrIBDrBEOiOSyRyvJ1OJjZsDV13OPPjOE2b2wzN+N9f4XVKT91OtmA7AhVN1dFHrG1Lb3jHaNq9HKokwxpjEeSgoh4JydZXn3HO6m5hIing88/dPjn/j21r9gazjLBPtNPdJMsakkrAU6J3k2ff5C8f84XcDLiFJsaeeiT+1JudBVmrbO2p9gzK9Jo8WOPqltYJtG7II/rWhLbXtXe1Qk6G3CsH9fl4Szv23nPNggAcDUqSEJVMDXiHiLI8Q0nX9SKvW3DLErT0heDgklZX1vhCL6+3tojMmkkmpojy7zfKE8fKE8YNsMfa71UzXmZzjvFU71JTa9m5egQVug8AiTGQyqTe3Gr/TL0VKeCAw+Hu0xmY9Gu0bWKInpISqCdXYHTrO9RPtbf/0z0MXpdL14A3XRZYv6zmmS7zyWvS+h5imaQcOhW67mfv9Q26te00n2tVP9g2yodSbW0M3L2IeTK5DFQKLML35cHr7jjzeH4+n3tyqnHWmXFXRHV6nHImo++tFKt3zv9zr7XMNXlVZMmX0IEvTtLp6MUSecsaE1nI4+zq6ONGu/v0TputMUTyzzzF+Q1A/clRrbB7k/entO7Tmw/LECeZ2PDgGgUVY5uPd2qFGo++WJO3AobZv38VLI3L5GKmqUh43VpkyWamZKk86TR5fLY0qk8JhdX89U9WeIOM+b/Y6RDotdN3oSaEQ8qSJ/su/yBUl9309SdIONSZe+m/GeZ8Q5IzJMhNCKh/jmTPr1NX2+d+seFIPHtJPnBgksLRDjZmPdyOw6EJgEZb+4END9wd7CCHSaXHkqN5yhO36G2OMSRLzeKRwSBpVJo+rlieMT3/4Ud8xVn1+/CKeyGPuP133nHl62cr7BjwP5Tz15p+Tb2wdqLWeGWcoU6f0vKDure38zX+JRKI7knThn//lwIKret+we4+IxQcJLJFMpT/40H/llwr9UYBNEFhUiWQys2Nn/osJxhiT+5zl6W0n9ONt6r46JgST5d4fPOc8FOyzdCwm8p2sdPCxqQP9jRBMUQJXXymVRnpeS7ywufPRx5jouqYmmCR5P31eVke0zK7dTNNyXnHvkdmxUySTxq+LgavkEVi2VUGwYl4M295pxfiJnFvXW4/l/bSzokiREhGLi1Sqz0jRfoNFszfc9+BI7+hkeT4WM0y6rpx5uv/qK3pfaDuRfOX1rl507Slp9CjPWWf2viEazezeM+SK1b21euuxwW41DsW2CU2cnZnCtqIUecERFlVqwwHtaGseC+i6MmVS2cMPiERSO9SoHWpUDxzS6hu0I0f1Y20imWSZDBOMSVnhJUk80mcYhIh2iIya32MxgxtoVUJ4Pz1XmXRazwuZ7TsyH+3qbZsQ8tgqOesNWlOzdvDQkM8MaUdb1YYDZgILHITAokqt3S+iHXksIIQ0epT3U+dJo8q6X0ilRWen3npMa2pWGw6otfvV+gPq7j2Z3Xt6Hh6USkuz16G3nRjOg4Enpf705/T/fsCknlNOSd1XK9JdNyX7/YPMpdKSnvQRGTX+x436ifbswFKmTZVGj+rdIX//RD/eNmSYimiHWrvfN++Cgn8iYAMEFlXqvrr8ihYIIZWEs0dFcZ+X+0ZLY0YrZ0z3nXxPfN1zbd/8btdYBK7I2eM5GWPakaNM14d+8nkAiU0vd/z8l4xLJ69ddT/003/wBOt/bSvz0c7ky6/1eUmWvZ+em30pKv3RLpFKDdk2oWY0KypbgC0QWFRp9QfyXYSXlAwxZpJzrflwdw4Kwf3+7GveTNf1I0eMloXIxTN7ZuAr1/E+mSKYzxf4yrW5joxOjlZNp2NPrtYam7IPr6RIxPuZub1ricUzH+401DbB1Px3HbgEAosqrdHYEzk9OJdGj+LyoAcgQmj1Dd032oTgoSAv6z0lFKqqHztu5nnm0C2LgzfdcErDJN7/gWTOOJfC3ZfPUlu3JZ57oU+i6bo8ZZJy5unZeyOzZ6/Bi2taIyaypwqBRZXediK/BSQp/Zf3o//678q0GnnSBLm6WhpdJoVCvbXxGBPxhLq/oXeJsrLsi0QintBaj5l6nlmWuTx0dRqhaUywrrIKasOBjodW6a3H+p3reT8zVy4f031IxXnmk3264SJZelubiT6Ak/IILGdnfLDz1qkZtg2A0Nvb821ZZseuzI6dzOORgkFpzChp7FhlyiRl8iRl+lR5XLVUVck0TWts6v7ZCyFPGN9zmMMYEx0d+rHjhbxFOFDXWg4zXWNcUusb2u/5SWrbu/2vTMlyZuff2u76IdNPBtbHu0UyaTSwcu06275Lzs5yYtvvyKIN4QiLKtERy3sZiTPGmabp0aje3s5q96fffofJEvMo3B+QIiVSaUStb2C8Ox2UaVN5VmkXrblFb80zsPKq7sAYY0zd35B85XXGeeqtbcmXXhlo4rL0O++ls+vqSJLxWwHD2XXgDggsqkQmPfyF+40+VzXR0aFFo9qhRiZJ3Qnj8XjOOrPPk3r7G0RHNJ/A4npbe+qd97jPa/DKl360Nfbk6vT2HUySUlve6r4jKQQvKQl/8zZ5fLXQdc640NT46nV9hmXZtuvAUQgsqkTGwCMyeR2BnzwT7PqvFClRzpie/feZj3eL5FDjBrLjTJbS23ccW/T1PI6x0hmRSPYO1OralhBSaST09SU97RGpVGrL28N5Msn4rgNXQmAVL865z9f748+LpnvOmenJCiyRTKqf1HK/f/Ca7iKj9j4d3dUAzvOolOz19taHEEwkEl3jVLnPx/xZdbXSGZFIOLRbwUkILKq4RxGDDDoXQopEIivuVaZMEnr+VzqFUCaM7zPHjCSF71wa/NriQU4JucRjT61JrN/IZIkJIZWVlj74U+X0acOZTJBzEU+0/+S+zPsfMsZ4KCiFQj1/qcfjejQ67ALMHGXdycInRxX3eIeoLePz+i660DPzrMJszuv1fW7ox1lS297rPQ/1eLxzZnlmnzO8LYrOmFRa2lXuVCorzb78Lzpjoj067AEW3OMd5pLgNEsCy4q7pC4cwWCFPEaElIRYx6DPEgphbtKaYenb1OEc3GUtffKCGpPHVmXPnSNiMb0zNuwBFrwkNLwFuxe3ax4HF/6OrKg/kVeTMFU9Vf0eS87N/hlS+KD/O9x1yuOqedZDRfrxNpFIDnt9hnYduBJOCamSRo0a8j0ik2GaJvKrr8C595TnDVV1qNLsjDHGJalPLQchWEY10gAuyQNfyxdM8chTJmW/pB05KmIxpmmMc2Zg6Pwwdh24EwKLKnl89WB/zbmIdrT/aIUUKTU0uIGzrnKjodtu8V/+xey/UffVdqz8hX7ixBDHS5wxxjJ/29NdzpRz0dHR/uP7pNIhGiCEHvjSpaF//HrPgInUn7fFf79WpNPqnr1MkngwoNRMyV5ECocDV1/BGNdjsfT/vNdbNLkguw5cDIFFlTJ5Iht0wIBIp1NvbDU+FEvoeuCqL3tmnd3nxXi84//+R+y3vzfarKwR5yKVTr2xZYjDK86ZEHL5mFBWO9VP9sV+t7q7XjNjckW5Mmli9kL+L1/q++IljDMR7Tj29aWp1/6Ux3EWZ8rkiUbfDC6DwKJKnjaVK54hSmIZ/xlrmnfunNIHfypXj81+ObFhU/zZ57sLvZ+afYMf1wghjRmjnD6NDVgigov29szuPUyS+xy+SZx5PN2DIXRdHlctVVb0WU5RuMIYY7x8THDhgtSWt42PnOCKR5421eTOB6cgsKhSaqbwSIk4drwA69J1efKk0gdX9BsDkd7+UfShn4vOTibLgQVXej/7aSZO5gKXUlvfSr765mCnibrumTNr9G9/wwP+nEeCXJaTW986/rWlg48sVc48XcqesFqI7KD0XXKRMnWy+sk+g4/p8EiJUoPAosq+SSiMs+22scm+G2+8FVMMKJMmyhXluvnA0nV5bFXpA//iv/TiPi+3Hove/1DXVSSmatznC3/7H7MrfPo+d37mw51ay5FBBtNzRZFKI4NMNy2FQkMcpnm93s/MzQ4jtW4/D4XlsZXd+6Fmiv/KL3UOMuFzX3JFeXap+N6mWvCtM/m1Mfnjsq1HxhtvHoY1UCWVj1Gm15hdi65LY0aXPvAvweuvyQ4OkUp1PPLr5CuvdyeFxJNvbEn/dXv2op45s/3XXJXHYzfDap5cUe6dOyf7tcSml1Ov/ylrR0iBa6+Wxow2eLVOmV7TZwQ/kILAoor7/cMeRN5N16XKitL7fxJc/NU+51NCxH+/tvM3/5U9FZjeeiz+hz9mT0rIPZ7QLTdKVZVmiiYPeRXMc+45ytTJvS8kEqktbyde2CySveOwvHNm+y660OBlLM/sczApIV24hkWY97xzud+X3+TPPbrOBB/8aXDxV/pd/Um+sTX64MOis7P/6y+/pn7zNs+smT2veM6dFbjyy7EnnzY4qiCzZ6/WcKDn+jqXpfT2j5jWFYK5Uk9R/Jd9gQd7J3PVmlvUv38iMhl1X13PFTceDAQWLki+8vrJCXgGxP0+73nnWvBRgE0QWIR5zp4hTxivDmMOGE2Xp0ws+7efBa6d3y+V0n/9oH3Z8u7CWNkkSWtsSrz4SnZgcZ8v9A83J17+b4PlieO/W9356ONZNw050zQRT+SeHVrX5dMm+C65qE/zPtihtbSIVDr56uvZtwh8F12onDE9s2Pn4Jfe5QnjPWfPsO4TAavhlJAwqbrKO2d23ovpuufsM0c9uipw3YJ+P291z94Td/+fzMe7c//sdT2xYZN2qDH7Nc95cwLzLzd4VshDIamyQqqsPPmnQqquUmac4bvw/BxbFML3+QuVrCEIIpNJvvq6iCeYpiVffi27qr08YVzg6iuGDE3vnNlydZUFHwXYBEdYhHGPx3fpxfE/bjQ6CkkIxpjvC58vffCn3jmz+v2lure27a4fpt/73wEPUiQps3tP4sVXw3fc3tsGryd065LE5leNHGSF7/hG8KYb+oyEEIx7PNLJW349a2VCSKPKgjfdkD2RorqvLrX17a7DsfSOnem/vJ89KD9wzVWx3z6tNTUP0n7fpRcPMdEZuJvZSSisWNzZMQRWjN6wbqyDb9758oRx2oFDRjrGFCV4/TWR+5b3GzjOGFPr6k/84N7UG1uGGM2UTifWbwguWiiNHt3zmue82f4vXxp/ai2Th2i8NGa0NGY0G5IQTNd9l32hX0Gb5Euvage7z1VFtCPx4sv+yy7pGRyrnHWm79LPx3+/dqC1yhPG+eadP/A2C/+1Mcn4Ol04g4ZFTcIpIW3K5EmGZl3Xdam0NPLDH5T9x8pT0yqzY2fbHd9LvvanocdeSlJ6+0ept9/Nfo37fKHbbpEqy03dLsxubNsJqaI8fMc3sgdwaQcb4+s2ZB9Lpv68Tc06P+Veb/ArC3kkMlAzfPMuUPo+RA3kILCI8yiBa+fz7PLBpxJCmXHGqF+vKrnnrn5TzzNdT/152/Gl/5Ta+rahUjCci46O+Nr12aMKGGPez3wqMP+KggSW3h5N/c97wZtu8F3wmezXEy9szvwt6+KaJGn7G1JvvZP9Hu9nP+U556ycJ8jc7wtcOz97EkagCJ8feb5553tmnp3+6wcDvcH76fMiP7zbM2eWfuRoVqZwpmuJza92rHpUO3Awj+lnJCm15a3ka3/yfmpO70AtWfZ96QuJjS/qJ9r7DEBNJrXGZh7wG6sYwUVnLPbkav3o0eCy72tHjnZHjySp9Q2djz3B0pnsdopkMrFhk2/eZ7nXe3JGVcl3wWfT7/zl1HV7Zp49yPkgUMGtGOlv2+UAF17DcuRiWecvfn3i3hW5Q4FzuapSKivNUdBK07RDTSKRGMZkWXJVJS/rWzdG1bRDh0Q662FswXgoKI+vNl77RcTjWlOLFCnpMx6Vc9HRqTXlmF+e+3zyhPG94yS63tnc0n9XcF724Irw976dbzdtu2SDeYKNNgCBNezF3RNYal1968LF6t7agbY04AFOzgFQRugix1DPXEMT8j5PlKTcS+VMVcF6n8ce+J3K9Jry59dmj5g3CIHl1A4ZCK5hFQNl6uTgousH/GvOu8tUnfpn2Hd+pVzrzGvTA/0ZaKncXWNG3hlcdP0w0gpcKI8jrNzLO/pEuLP/BJnse2Ebr9bWtV63ZMCDrBFMmV5TvuEZR0rKOPvrsGJDVnQTk1CMRErN1NCtS4Y3dXsxk6TQrUtQAKto4PtdPII3L/LOPdfpVriLd+65wZsXOd0KKBgEVvGQq8eGv7OUBwPmV1UceDAQ/s7SfkWfgTQEVlEJLLgqcN0Cp1vhFoHrFgQWXOV0K6CQEFhFhQcDJXfdqUyf5nRDnKdMn1Zy15043iwyCKxi4zl7RmTZ93goaH5VdPFQMLLseyh9VXzsq9aQk8nn0W2r0p9znS4c19clcMN16b9u73zsCacb4pjQLYsDN1xn0cptG0FtG5M/Lju7iSOsIsR9vpJl3+9Xq3Pk8F1yUcmy72cX0oKigcAqTvK46tL7f1yAaXWoUabXlN7/Y3kcJqMvTgisouWdO6fsgRVyVaX5VVEhV1WWPbCi37RgUEwQWMXMP//yyIp7pdKI0w2xg1Qaiay41z//cqcbAhZCYBU1zkO3LI4sX8bDYfMrczMeDkeWLwvdsnj4j3MDBQisYqcooaW3R350dxFnFg+HIz+6O7T0dhQULXpurNZgkhWjDWwr5mVRj0Q6E3v8iej9K/X2aMF3jrOk0khk+bLQ0tu519R0OLaVHLCi7ogLG29ReRUEVoG76c7AYowxVY09vTa64kHt8JGC7x+nyFWVkRX3hm5ZbP7YyoW/edKNtyiwcEo4YihK6NYlo371sDKtSMY6KNNqRv3q4dCtS3AmOHIgsEYSSfLPv2L0k//pu+Qi2henOfddctHoJ//TP/8KlAAbUXBKWOBuuveUMIvW1Nzx0COx1WtFLF7YNduAh4KhmxeX3PP9wo4OdeFZFenG4xqWUQgsQ+tMJhPrN0Yf+rm6j1JVZWVaTeSeuwJfvZb7/YVdswt/86Qbj8AyCoFlXObj3R2rHk08v0nEExZtolB4MBBYuKDkB3daVIPBhb950o13PrBsa6sVc2oZZ1veuaTYg4gnEi++3PnLx9Lbd/ROjOoqsuydMzv83W8Frr7SuvpWVvzmXbhO4xvKCYFV+A2ZNNICq4vW3BJfvS721DPqvrqCzDhfGJwr06aGbl0SvHmR1ZWOXRguLvzOI7AKvyGTRmZgdTVIrauPr3k2/ofn1Lr97NSZou0kScrUKcEbrw/edIMydbIN9zRdGC4u/M4jsAq/IZNGbmCdbJZafyD5wub4+uczu3aLZNLm7XO/3zNzRvCrC/3XzFcmT7Rt+IULw8WF33kEVuE3ZNJID6yT9NZjqW3vJjZuTm17R2tstvzylizL46t98y4IXDvfN+98qXyMzf11Ybi48DuPwCr8hkxCYPVpZCaj1R9IbXs39ebW9PYd2sFGkUoVcs/4fPJp471zZvsuvdg373x58kTuMfVI4PBb4r5wceF3HoFV+A2ZhMDKSWQyesvhzK7d6fe3Zz7ape6t1Y62imiHUNU8LtJzzhWFR0rkinJleo1n1kzv3DmemTOksVVO5VR200ztHwTWcN+ZF7PjsKzolXG0fvNGkIg2kUzqrcfUhoNqbZ26r06rP6A1NultJ/T2dtERE5m0yKiMMe5RuMfLS0JSaak0qkweP06ePFGZNlWpmapMOk0qH1PwwZ/2sO3fY5NNMs62wYPm+47AchcSgTXCIbCGvU7zfceDowBABgILAMhAYAEAGQgsqtauXet0EwDshovu7pLXrqusrLzssssWLlx40UUXjR1r7aN20AMX3Ye9TvN9t6S2rMm2OjsOy2Q3c7KikowVWzfZ95Hzsyl4O40vnrOdVnwczn5pB4JTQgAgA4EFAGQgsACADAQWAJCBwAIAMhBYAECGfeVlnOXCqXSojMexopvO7qWcRsiX1njf3VlnCUdYAEAGAgsAyEBgAQAZCCwAIAOBBQBkILAAgIw8qjXYdpPVtkodVgzUoHIr2rbBCiZ7ZFvfnS0xYlvtDePFHoyz89eBIywAIAOBBQBkILAAgAwEFgCQgcACADIQWABARh7DGpx97N62ev5W3KO1besmpy0wyYXDBXKiUmLEWVZMgYFqDQAwgiCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIyGMSCks2774n161op8l12nbH3YUzkpCelcMkZ7+fJjdkUQkHHGEBABkILAAgA4EFAGQgsACADAQWAJCBwAIAMsgMa3DhU/vO3sV34Z1sk+s0zoVbd+E4D2fLq1gER1gAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDwmoTDOihoMxhc3eefVZEV9K7hwAg6T7XR2ZgrH780XvEkunGPFor7jCAsAyEBgAQAZCCwAIAOBBQBkILAAgAwEFgCQkUe1BmfLGFixIdv6bnydLpwXwzjbboTbtnXbyi04O6TD2flQMKwBAIoTAgsAyEBgAQAZCCwAIAOBBQBkILAAgIw8qjWYLGNg2/wIVrBitIELZ9BwdoeYXNy2cR623e/PyYq+W7FOi3YIjrAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGXlUazC7JUeLEzhbK8K2IR3FN3bEhTVCrOhmTi4cVGFbjwaCIywAIAOBBQBkILAAgAwEFgCQgcACADIQWABARh7VGkxytjyAyQ1ZcdvYtjoEVgyAoDLbhbPrNF7LxHiTbCvI4WydjIHgCAsAyEBgAQAZCCwAIAOBBQBkILAAgAwEFgCQkcewBioPvlsxAMK2u/gunHPB5OJWjJ+wbeSKs1u3YnHqRT5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIMFutYefOnRUVFVa3ctWqVStXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",width:200}),(0,l.jsxs)("div",{style:{marginLeft:"35px"},children:["群号:","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,a.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)}},86013:function(e,t,n){"use strict";var i=n(59301),r=n(19248);t.Z=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:i.createElement(r.Z,null)}),t}},40192:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(59301);function r(){const[,e]=i.useReducer((e=>e+1),0);return e}},52838:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(37645);const r={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"]}},o={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"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function s(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:s,offset:l,borderRadius:c,visibleFirst:u}=e,h=t/2,d={};return Object.keys(r).forEach((e=>{const p=s&&o[e]||r[e],f=Object.assign(Object.assign({},p),{offset:[0,0],dynamicInset:!0});switch(d[e]=f,a.has(e)&&(f.autoArrow=!1),e){case"top":case"topLeft":case"topRight":f.offset[1]=-h-l;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=h+l;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-h-l;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=h+l}const g=(0,i.wZ)({contentRadius:c,limitVerticalRadius:!0});if(s)switch(e){case"topLeft":case"bottomLeft":f.offset[0]=-g.arrowOffsetHorizontal-h;break;case"topRight":case"bottomRight":f.offset[0]=g.arrowOffsetHorizontal+h;break;case"leftTop":case"rightTop":f.offset[1]=2*-g.arrowOffsetHorizontal+h;break;case"leftBottom":case"rightBottom":f.offset[1]=2*g.arrowOffsetHorizontal-h}f.overflow=function(e,t,n,i){if(!1===i)return{adjustX:!1,adjustY:!1};const r=i&&"object"==typeof i?i:{},o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}const a=Object.assign(Object.assign({},o),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,g,t,n),u&&(f.htmlRegion="visibleFirst")})),d}},47999:function(e,t,n){"use strict";n.d(t,{c4:function(){return o}});var i=n(59301),r=n(57700);const o=["xxl","xl","lg","md","sm","xs"];t.ZP=()=>{const[,e]=(0,r.ZP)(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(o).reverse();return n.forEach(((e,i)=>{const r=e.toUpperCase(),o=`screen${r}Min`,a=`screen${r}`;if(!(t[o]<=t[a]))throw new Error(`${o}<=${a} fails : !(${t[o]}<=${t[a]})`);if(i{const e=new Map;let n=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return i=t,e.forEach((e=>e(i))),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(i),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.keys(t).forEach((e=>{const n=t[e],r=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},i),{[e]:n}))},o=window.matchMedia(n);o.addListener(r),this.matchHandlers[n]={mql:o,listener:r},r(o)}))},unregister(){Object.keys(t).forEach((e=>{const n=t[e],i=this.matchHandlers[n];null==i||i.mql.removeListener(null==i?void 0:i.listener)})),e.clear()}}}),[e])}},82855:function(e,t,n){"use strict";n.d(t,{F:function(){return a},Z:function(){return o}});var i=n(92310),r=n.n(i);function o(e,t,n){return r()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const a=(e,t)=>t||e},1560:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var i=n(2738),r=n(45915),o=n(75914),a=n(59301),s=n(92310),l=n.n(s),c=n(11592),u=n(75030),h=n(48755);const{Option:d}=o.default;function p(e){return(null==e?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const f=(e,t)=>{var n;const{prefixCls:r,className:s,popupClassName:f,dropdownClassName:g,children:m,dataSource:v}=e,y=(0,c.Z)(m);let b;1===y.length&&a.isValidElement(y[0])&&!p(y[0])&&([b]=y);const w=b?()=>b:void 0;let x;x=y.length&&p(y[0])?m:v?v.map((e=>{if(a.isValidElement(e))return e;switch(typeof e){case"string":return a.createElement(d,{key:e,value:e},e);case"object":{const{value:t}=e;return a.createElement(d,{key:t,value:t},e.text)}default:return}})):[];const{getPrefixCls:S}=a.useContext(h.E_),k=S("select",r),[_]=(0,u.Cn)("SelectLike",null===(n=e.dropdownStyle)||void 0===n?void 0:n.zIndex);return a.createElement(o.default,Object.assign({ref:t,suffixIcon:null},(0,i.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:k,popupClassName:f||g,dropdownStyle:Object.assign(Object.assign({},e.dropdownStyle),{zIndex:_}),className:l()(`${k}-auto-complete`,s),mode:o.default.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:w}),x)};var g=a.forwardRef(f);const{Option:m}=o.default,v=(0,r.Z)(g,"dropdownAlign",(e=>(0,i.Z)(e,["visible"]))),y=g;y.Option=m,y._InternalPanelDoNotUseOrYouWillBeFired=v;var b=y},62673:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var i=n(59301),r=n(92310),o=n.n(r),a=n(16632),s=n(8654),l=n(12919),c=n(63872),u=n(48755),h=n(2171),d=n(83397),p=n(56553);var f=i.createContext(null),g=n(36170),m=n(74632),v=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,className:y,rootClassName:b,children:w,indeterminate:x=!1,style:S,onMouseEnter:k,onMouseLeave:_,skipGroup:C=!1,disabled:P}=e,E=v(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:M,direction:L,checkbox:A}=i.useContext(u.E_),T=i.useContext(f),{isFormItemInput:D}=i.useContext(p.aM),N=i.useContext(h.Z),I=null!==(n=(null==T?void 0:T.disabled)||P)&&void 0!==n?n:N,B=i.useRef(E.value),R=i.useRef(null),O=(0,s.sQ)(t,R);i.useEffect((()=>{null==T||T.registerValue(E.value)}),[]),i.useEffect((()=>{if(!C)return E.value!==B.current&&(null==T||T.cancelValue(B.current),null==T||T.registerValue(E.value),B.current=E.value),()=>null==T?void 0:T.cancelValue(E.value)}),[E.value]),i.useEffect((()=>{var e;(null===(e=R.current)||void 0===e?void 0:e.input)&&(R.current.input.indeterminate=x)}),[x]);const F=M("checkbox",r),z=(0,d.Z)(F),[j,$,H]=(0,g.ZP)(F,z),Z=Object.assign({},E);T&&!C&&(Z.onChange=function(){E.onChange&&E.onChange.apply(E,arguments),T.toggleOption&&T.toggleOption({label:w,value:E.value})},Z.name=T.name,Z.checked=T.value.includes(E.value));const K=o()(`${F}-wrapper`,{[`${F}-rtl`]:"rtl"===L,[`${F}-wrapper-checked`]:Z.checked,[`${F}-wrapper-disabled`]:I,[`${F}-wrapper-in-form-item`]:D},null==A?void 0:A.className,y,b,H,z,$),G=o()({[`${F}-indeterminate`]:x},c.A,$),[U,V]=(0,m.Z)(Z.onClick);return j(i.createElement(l.Z,{component:"Checkbox",disabled:I},i.createElement("label",{className:K,style:Object.assign(Object.assign({},null==A?void 0:A.style),S),onMouseEnter:k,onMouseLeave:_,onClick:U},i.createElement(a.Z,Object.assign({},Z,{onClick:V,prefixCls:F,className:G,disabled:I,ref:O})),void 0!==w&&i.createElement("span",{className:`${F}-label`},w))))};var b=i.forwardRef(y),w=n(95190),x=n(2738),S=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{defaultValue:n,children:r,options:a=[],prefixCls:s,className:l,rootClassName:c,style:h,onChange:p}=e,m=S(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:v,direction:y}=i.useContext(u.E_),[k,_]=i.useState(m.value||n||[]),[C,P]=i.useState([]);i.useEffect((()=>{"value"in m&&_(m.value||[])}),[m.value]);const E=i.useMemo((()=>a.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[a]),M=v("checkbox",s),L=`${M}-group`,A=(0,d.Z)(M),[T,D,N]=(0,g.ZP)(M,A),I=(0,x.Z)(m,["value","disabled"]),B=a.length?E.map((e=>i.createElement(b,{prefixCls:M,key:e.value.toString(),disabled:"disabled"in e?e.disabled:m.disabled,value:e.value,checked:k.includes(e.value),onChange:e.onChange,className:`${L}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):r,R={toggleOption:e=>{const t=k.indexOf(e.value),n=(0,w.Z)(k);-1===t?n.push(e.value):n.splice(t,1),"value"in m||_(n),null==p||p(n.filter((e=>C.includes(e))).sort(((e,t)=>E.findIndex((t=>t.value===e))-E.findIndex((e=>e.value===t)))))},value:k,disabled:m.disabled,name:m.name,registerValue:e=>{P((t=>[].concat((0,w.Z)(t),[e])))},cancelValue:e=>{P((t=>t.filter((t=>t!==e))))}},O=o()(L,{[`${L}-rtl`]:"rtl"===y},l,c,N,A,D);return T(i.createElement("div",Object.assign({className:O,style:h},I,{ref:t}),i.createElement(f.Provider,{value:R},B)))}));var _=k;const C=b;C.Group=_,C.__ANT_CHECKBOX=!0;var P=C},36170:function(e,t,n){"use strict";n.d(t,{C2:function(){return l}});var i=n(66604),r=n(63356),o=n(51636),a=n(16931);const s=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,r.Wf)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},(0,r.Wf)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,r.oN)(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${(0,i.bf)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function l(e,t){const n=(0,o.IX)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[s(n)]}t.ZP=(0,a.I$)("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[l(n,e)]}))},74632:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(59301),r=n(16089);function o(e){const t=i.useRef(null),n=()=>{r.Z.cancel(t.current),t.current=null};return[()=>{n(),t.current=(0,r.Z)((()=>{t.current=null}))},i=>{t.current&&(i.stopPropagation(),n()),null==e||e(i)}]}},5269:function(e,t,n){"use strict";var i=n(5472);t.Z=i.Z},38406:function(e,t,n){"use strict";var i=n(59301),r=n(48755),o=n(584);t.Z=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,i.useContext)(r.E_),a=n("empty");switch(t){case"Table":case"List":return i.createElement(o.Z,{image:o.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return i.createElement(o.Z,{image:o.Z.PRESENTED_IMAGE_SIMPLE,className:`${a}-small`});case"Table.filter":return null;default:return i.createElement(o.Z,null)}}},22173:function(e,t,n){"use strict";n.d(t,{Z:function(){return V}});var i=n(59301),r=n(33853),o=n(38819),a=n(92310),s=n.n(a),l=n(96478),c=n(6089),u=n(18929),h=n(2738),d=n(75030);var p=e=>"object"!=typeof e&&"function"!=typeof e||null===e,f=n(52838),g=n(45915),m=n(22703),v=n(32383),y=n(55743),b=n(48755),w=n(83397),x=n(93041),S=n(78857),k=n(57700),_=n(66604),C=n(63356),P=n(46e3),E=n(93873),M=n(34925),L=n(37645),A=n(36305),T=n(16931),D=n(51636);var N=e=>{const{componentCls:t,menuCls:n,colorError:i,colorTextLightSolid:r}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:i,"&:hover":{color:r,backgroundColor:i}}}}}};const I=e=>{const{componentCls:t,menuCls:n,zIndexPopup:i,dropdownArrowDistance:r,sizePopupArrow:o,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:h,colorTextDisabled:d,fontSizeIcon:p,controlPaddingHorizontal:f,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:i,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:P.fJ},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:P.Qt},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:P.Uw},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:P.ly}}},(0,L.ZP)(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:i,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},(0,C.Wf)(e)),{[n]:Object.assign(Object.assign({padding:h,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,C.Qy)(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${(0,_.bf)(c)} ${(0,_.bf)(f)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,_.bf)(c)} ${(0,_.bf)(f)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,C.Qy)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:d,cursor:"not-allowed","&:hover":{color:d,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,_.bf)(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${(0,_.bf)(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(f).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:d,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[(0,P.oN)(e,"slide-up"),(0,P.oN)(e,"slide-down"),(0,E.Fm)(e,"move-up"),(0,E.Fm)(e,"move-down"),(0,M._y)(e,"zoom-big")]]};var B=(0,T.I$)("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:i,componentCls:r}=e,o=(0,D.IX)(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:i});return[I(o),N(o)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},(0,L.wZ)({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),(0,A.w)(e))),{resetStyle:!1});const R=e=>{var t;const{menu:n,arrow:a,prefixCls:g,children:_,trigger:C,disabled:P,dropdownRender:E,getPopupContainer:M,overlayClassName:L,rootClassName:A,overlayStyle:T,open:D,onOpenChange:N,visible:I,onVisibleChange:R,mouseEnterDelay:O=.15,mouseLeaveDelay:F=.1,autoAdjustOverflow:z=!0,placement:j="",overlay:$,transitionName:H}=e,{getPopupContainer:Z,getPrefixCls:K,direction:G,dropdown:U}=i.useContext(b.E_);(0,v.ln)("Dropdown");const V=i.useMemo((()=>{const e=K();return void 0!==H?H:j.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[K,j,H]),W=i.useMemo((()=>j?j.includes("Center")?j.slice(0,j.indexOf("Center")):j:"rtl"===G?"bottomRight":"bottomLeft"),[j,G]);const q=K("dropdown",g),Y=(0,w.Z)(q),[X,Q,J]=B(q,Y),[,ee]=(0,k.ZP)(),te=i.Children.only(p(_)?i.createElement("span",null,_):_),ne=(0,m.Tm)(te,{className:s()(`${q}-trigger`,{[`${q}-rtl`]:"rtl"===G},te.props.className),disabled:null!==(t=te.props.disabled)&&void 0!==t?t:P}),ie=P?[]:C,re=!!(null==ie?void 0:ie.includes("contextMenu")),[oe,ae]=(0,u.Z)(!1,{value:null!=D?D:I}),se=(0,c.Z)((e=>{null==N||N(e,{source:"trigger"}),null==R||R(e),ae(e)})),le=s()(L,A,Q,J,Y,null==U?void 0:U.className,{[`${q}-rtl`]:"rtl"===G}),ce=(0,f.Z)({arrowPointAtCenter:"object"==typeof a&&a.pointAtCenter,autoAdjustOverflow:z,offset:ee.marginXXS,arrowWidth:a?ee.sizePopupArrow:0,borderRadius:ee.borderRadius}),ue=i.useCallback((()=>{(null==n?void 0:n.selectable)&&(null==n?void 0:n.multiple)||(null==N||N(!1,{source:"menu"}),ae(!1))}),[null==n?void 0:n.selectable,null==n?void 0:n.multiple]),[he,de]=(0,d.Cn)("Dropdown",null==T?void 0:T.zIndex);let pe=i.createElement(l.Z,Object.assign({alignPoint:re},(0,h.Z)(e,["rootClassName"]),{mouseEnterDelay:O,mouseLeaveDelay:F,visible:oe,builtinPlacements:ce,arrow:!!a,overlayClassName:le,prefixCls:q,getPopupContainer:M||Z,transitionName:V,trigger:ie,overlay:()=>{let e;return e=(null==n?void 0:n.items)?i.createElement(x.Z,Object.assign({},n)):"function"==typeof $?$():$,E&&(e=E(e)),e=i.Children.only("string"==typeof e?i.createElement("span",null,e):e),i.createElement(S.J,{prefixCls:`${q}-menu`,rootClassName:s()(J,Y),expandIcon:i.createElement("span",{className:`${q}-menu-submenu-arrow`},"rtl"===G?i.createElement(r.Z,{className:`${q}-menu-submenu-arrow-icon`}):i.createElement(o.Z,{className:`${q}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ue,validator:e=>{let{mode:t}=e}},e)},placement:W,onVisibleChange:se,overlayStyle:Object.assign(Object.assign(Object.assign({},null==U?void 0:U.style),T),{zIndex:he})}),ne);return he&&(pe=i.createElement(y.Z.Provider,{value:de},pe)),X(pe)},O=(0,g.Z)(R,"align",void 0,"dropdown",(e=>e));R._InternalPanelDoNotUseOrYouWillBeFired=e=>i.createElement(O,Object.assign({},e),i.createElement("span",null));var F=R,z=n(18785),j=n(20743),$=n(77736),H=n(70045),Z=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{getPopupContainer:t,getPrefixCls:n,direction:r}=i.useContext(b.E_),{prefixCls:o,type:a="default",danger:l,disabled:c,loading:u,onClick:h,htmlType:d,children:p,className:f,menu:g,arrow:m,autoFocus:v,overlay:y,trigger:w,align:x,open:S,onOpenChange:k,placement:_,getPopupContainer:C,href:P,icon:E=i.createElement(z.Z,null),title:M,buttonsRender:L=(e=>e),mouseEnterDelay:A,mouseLeaveDelay:T,overlayClassName:D,overlayStyle:N,destroyPopupOnHide:I,dropdownRender:B}=e,R=Z(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),O=n("dropdown",o),K=`${O}-button`,G={menu:g,arrow:m,autoFocus:v,align:x,disabled:c,trigger:c?[]:w,onOpenChange:k,getPopupContainer:C||t,mouseEnterDelay:A,mouseLeaveDelay:T,overlayClassName:D,overlayStyle:N,destroyPopupOnHide:I,dropdownRender:B},{compactSize:U,compactItemClassnames:V}=(0,H.ri)(O,r),W=s()(K,V,f);"overlay"in e&&(G.overlay=y),"open"in e&&(G.open=S),G.placement="placement"in e?_:"rtl"===r?"bottomLeft":"bottomRight";const q=i.createElement(j.ZP,{type:a,danger:l,disabled:c,loading:u,onClick:h,htmlType:d,href:P,title:M},p),Y=i.createElement(j.ZP,{type:a,danger:l,icon:E}),[X,Q]=L([q,Y]);return i.createElement($.Z.Compact,Object.assign({className:W,size:U,block:!0},R),X,i.createElement(F,Object.assign({},G),Q))};K.__ANT_BUTTON=!0;var G=K;const U=F;U.Button=G;var V=U},584:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var i=n(59301),r=n(92310),o=n.n(r),a=n(9017),s=n(17835),l=n(57700);var c=()=>{const[,e]=(0,l.ZP)(),[t]=(0,a.Z)("Empty"),n=new s.t(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return i.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(null==t?void 0:t.description)||"Empty"),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.67)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),i.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),i.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),i.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),i.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),i.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),i.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},i.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),i.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};var u=()=>{const[,e]=(0,l.ZP)(),[t]=(0,a.Z)("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:c}=e,{borderColor:u,shadowColor:h,contentColor:d}=(0,i.useMemo)((()=>({borderColor:new s.t(n).onBackground(c).toHexString(),shadowColor:new s.t(r).onBackground(c).toHexString(),contentColor:new s.t(o).onBackground(c).toHexString()})),[n,r,o,c]);return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(null==t?void 0:t.description)||"Empty"),i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:h,cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:u},i.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),i.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:d}))))},h=n(16931),d=n(51636);const p=e=>{const{componentCls:t,margin:n,marginXS:i,marginXL:r,fontSize:o,lineHeight:a}=e;return{[t]:{marginInline:i,fontSize:o,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:i,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:i,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var f=(0,h.I$)("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:i}=e,r=(0,d.IX)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:i(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:i(n).mul(.875).equal()});return[p(r)]})),g=n(48755),m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{className:t,rootClassName:n,prefixCls:r,image:s=v,description:l,children:c,imageStyle:u,style:h,classNames:d,styles:p}=e,b=m(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:w,direction:x,className:S,style:k,classNames:_,styles:C}=(0,g.dj)("empty"),P=w("empty",r),[E,M,L]=f(P),[A]=(0,a.Z)("Empty"),T=void 0!==l?l:null==A?void 0:A.description,D="string"==typeof T?T:"empty";let N=null;return N="string"==typeof s?i.createElement("img",{alt:D,src:s}):s,E(i.createElement("div",Object.assign({className:o()(M,L,P,S,{[`${P}-normal`]:s===y,[`${P}-rtl`]:"rtl"===x},t,n,_.root,null==d?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},C.root),k),null==p?void 0:p.root),h)},b),i.createElement("div",{className:o()(`${P}-image`,_.image,null==d?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},u),C.image),null==p?void 0:p.image)},N),T&&i.createElement("div",{className:o()(`${P}-description`,_.description,null==d?void 0:d.description),style:Object.assign(Object.assign({},C.description),null==p?void 0:p.description)},T),c&&i.createElement("div",{className:o()(`${P}-footer`,_.footer,null==d?void 0:d.footer),style:Object.assign(Object.assign({},C.footer),null==p?void 0:p.footer)},c)))};b.PRESENTED_IMAGE_DEFAULT=v,b.PRESENTED_IMAGE_SIMPLE=y;var w=b},24971:function(e,t,n){"use strict";var i=n(59301),r=n(56553),o=n(48755);t.Z=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var a,s;const{variant:l,[e]:c}=i.useContext(o.E_),u=i.useContext(r.pg),h=null==c?void 0:c.variant;let d;d=void 0!==t?t:!1===n?"borderless":null!==(s=null!==(a=null!=u?u:h)&&void 0!==a?a:l)&&void 0!==s?s:"outlined";const p=o.tr.includes(d);return[d,p]}},43830:function(e,t,n){"use strict";n.d(t,{Z:function(){return Ve}});var i=n(56553),r=n(95190),o=n(59301),a=n(92310),s=n.n(a),l=n(77900),c=n(86641),u=n(83397);function h(e){const[t,n]=o.useState(e);return o.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}var d=n(66604),p=n(63356),f=n(34925),g=n(34961),m=n(51636),v=n(16931);var y=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},\n opacity ${e.motionDurationFast} ${e.motionEaseInOut},\n transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}};const b=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,d.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,d.bf)(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),w=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},x=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,p.Wf)(e)),b(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},w(e,e.controlHeightSM)),"&-large":Object.assign({},w(e,e.controlHeightLG))})}},S=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:i,antCls:r,labelRequiredMarkColor:o,labelColor:a,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:h}=e;return{[t]:Object.assign(Object.assign({},(0,p.Wf)(e)),{marginBottom:h,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden${r}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:a,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:f.kr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},k=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},_=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:i}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:i,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},C=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),P=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:i}=e;return{[`${n} ${n}-label`]:C(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${i}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},E=e=>{const{componentCls:t,formItemCls:n,antCls:i}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n ${i}-col-24${n}-label,\n ${i}-col-xl-24${n}-label`]:C(e)}},[`@media (max-width: ${(0,d.bf)(e.screenXSMax)})`]:[P(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${i}-col-xs-24${n}-label`]:C(e)}}}],[`@media (max-width: ${(0,d.bf)(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${i}-col-sm-24${n}-label`]:C(e)}}},[`@media (max-width: ${(0,d.bf)(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${i}-col-md-24${n}-label`]:C(e)}}},[`@media (max-width: ${(0,d.bf)(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${i}-col-lg-24${n}-label`]:C(e)}}}}},M=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,\n ${n}-col-24${t}-label,\n ${n}-col-xl-24${t}-label`]:C(e),[`@media (max-width: ${(0,d.bf)(e.screenXSMax)})`]:[P(e),{[t]:{[`${n}-col-xs-24${t}-label`]:C(e)}}],[`@media (max-width: ${(0,d.bf)(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:C(e)}},[`@media (max-width: ${(0,d.bf)(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:C(e)}},[`@media (max-width: ${(0,d.bf)(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:C(e)}}}},L=(e,t)=>(0,m.IX)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t});var A=(0,v.I$)("Form",((e,t)=>{let{rootPrefixCls:n}=t;const i=L(e,n);return[x(i),S(i),y(i),k(i,i.componentCls),k(i,i.formItemCls),_(i),E(i),M(i),(0,g.Z)(i),f.kr]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0})),{order:-1e3});const T=[];function D(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"==typeof e?e:`${t}-${i}`,error:e,errorStatus:n}}var N=e=>{let{help:t,helpStatus:n,errors:a=T,warnings:d=T,className:p,fieldId:f,onVisibleChanged:g}=e;const{prefixCls:m}=o.useContext(i.Rk),v=`${m}-item-explain`,y=(0,u.Z)(m),[b,w,x]=A(m,y),S=o.useMemo((()=>(0,c.Z)(m)),[m]),k=h(a),_=h(d),C=o.useMemo((()=>null!=t?[D(t,"help",n)]:[].concat((0,r.Z)(k.map(((e,t)=>D(e,"error","error",t)))),(0,r.Z)(_.map(((e,t)=>D(e,"warning","warning",t)))))),[t,n,k,_]),P=o.useMemo((()=>{const e={};return C.forEach((t=>{let{key:n}=t;e[n]=(e[n]||0)+1})),C.map(((t,n)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key})))}),[C]),E={};return f&&(E.id=`${f}_help`),b(o.createElement(l.ZP,{motionDeadline:S.motionDeadline,motionName:`${m}-show-help`,visible:!!P.length,onVisibleChanged:g},(e=>{const{className:t,style:n}=e;return o.createElement("div",Object.assign({},E,{className:s()(v,t,x,y,p,w),style:n}),o.createElement(l.V4,Object.assign({keys:P},(0,c.Z)(m),{motionName:`${m}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:i,className:r,style:a}=e;return o.createElement("div",{key:t,className:s()(r,{[`${v}-${i}`]:i}),style:a},n)})))})))},I=n(74034),B=n(48755),R=n(2171),O=n(31756),F=n(23069),z=n(76846);const j=e=>"object"==typeof e&&null!=e&&1===e.nodeType,$=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,H=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightot||o>e&&a=t&&s>=n?o-e-i:a>t&&sn?a-t+r:0,K=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},G=(e,t)=>{var n,i,r,o;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,h="function"==typeof c?c:e=>e!==c;if(!j(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,p=[];let f=e;for(;j(f)&&h(f);){if(f=K(f),f===d){p.push(f);break}null!=f&&f===document.body&&H(f)&&!H(document.documentElement)||null!=f&&H(f,u)&&p.push(f)}const g=null!=(i=null==(n=window.visualViewport)?void 0:n.width)?i:innerWidth,m=null!=(o=null==(r=window.visualViewport)?void 0:r.height)?o:innerHeight,{scrollX:v,scrollY:y}=window,{height:b,width:w,top:x,right:S,bottom:k,left:_}=e.getBoundingClientRect(),{top:C,right:P,bottom:E,left:M}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let L="start"===s||"nearest"===s?x-C:"end"===s?k+E:x+b/2-C+E,A="center"===l?_+w/2-M+P:"end"===l?S+P:_-M;const T=[];for(let e=0;e=0&&_>=0&&k<=m&&S<=g&&(t===d&&!H(t)||x>=r&&k<=c&&_>=u&&S<=o))return T;const h=getComputedStyle(t),f=parseInt(h.borderLeftWidth,10),C=parseInt(h.borderTopWidth,10),P=parseInt(h.borderRightWidth,10),E=parseInt(h.borderBottomWidth,10);let M=0,D=0;const N="offsetWidth"in t?t.offsetWidth-t.clientWidth-f-P:0,I="offsetHeight"in t?t.offsetHeight-t.clientHeight-C-E:0,B="offsetWidth"in t?0===t.offsetWidth?0:i/t.offsetWidth:0,R="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(d===t)M="start"===s?L:"end"===s?L-m:"nearest"===s?Z(y,y+m,m,C,E,y+L,y+L+b,b):L-m/2,D="start"===l?A:"center"===l?A-g/2:"end"===l?A-g:Z(v,v+g,g,f,P,v+A,v+A+w,w),M=Math.max(0,M+y),D=Math.max(0,D+v);else{M="start"===s?L-r-C:"end"===s?L-c+E+I:"nearest"===s?Z(r,c,n,C,E+I,L,L+b,b):L-(r+n/2)+I/2,D="start"===l?A-u-f:"center"===l?A-(u+i/2)+N/2:"end"===l?A-o+P+N:Z(u,o,i,f,P+N,A,A+w,w);const{scrollLeft:e,scrollTop:a}=t;M=0===R?0:Math.max(0,Math.min(a+M/R,t.scrollHeight-n/R+I)),D=0===B?0:Math.max(0,Math.min(e+D/B,t.scrollWidth-i/B+N)),L+=a-M,A+=e-D}T.push({el:t,top:M,left:D})}return T};function U(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(G(e,t));const i="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:r,top:o,left:a}of G(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=o-n.top+n.bottom,t=a-n.left+n.right;r.scroll({top:e,left:t,behavior:i})}}const V=["parentNode"];function W(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function q(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return V.includes(n)?`form_item_${n}`:n}function Y(e,t,n,i,r,o){let a=i;return void 0!==o?a=o:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||r&&n.validated)&&(a="success"),a}var X=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);rnull!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const i=Q(e);t?n.current[i]=t:delete n.current[i]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{focus:n}=t,r=X(t,["focus"]),o=J(e,i);o&&(U(o,Object.assign({scrollMode:"if-needed",block:"nearest"},r)),n&&i.focusField(e))},focusField:e=>{var t,n;const r=i.getFieldInstance(e);"function"==typeof(null==r?void 0:r.focus)?r.focus():null===(n=null===(t=J(e,i))||void 0===t?void 0:t.focus)||void 0===n||n.call(t)},getFieldInstance:e=>{const t=Q(e);return n.current[t]}})),[e,t]);return[i]}var te=n(98350),ne=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const n=o.useContext(R.Z),{getPrefixCls:r,direction:a,requiredMark:l,colon:c,scrollToFirstError:h,className:d,style:p}=(0,B.dj)("form"),{prefixCls:f,className:g,rootClassName:m,size:v,disabled:y=n,form:b,colon:w,labelAlign:x,labelWrap:S,labelCol:k,wrapperCol:_,hideRequiredMark:C,layout:P="horizontal",scrollToFirstError:E,requiredMark:M,onFinishFailed:L,name:T,style:D,feedbackIcons:N,variant:z}=e,j=ne(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),$=(0,O.Z)(v),H=o.useContext(te.Z);const Z=o.useMemo((()=>void 0!==M?M:!C&&(void 0===l||l)),[C,M,l]),K=null!=w?w:c,G=r("form",f),U=(0,u.Z)(G),[V,W,q]=A(G,U),Y=s()(G,`${G}-${P}`,{[`${G}-hide-required-mark`]:!1===Z,[`${G}-rtl`]:"rtl"===a,[`${G}-${$}`]:$},q,U,W,d,g,m),[X]=ee(b),{__INTERNAL__:Q}=X;Q.name=T;const J=o.useMemo((()=>({name:T,labelAlign:x,labelCol:k,labelWrap:S,wrapperCol:_,vertical:"vertical"===P,colon:K,requiredMark:Z,itemRef:Q.itemRef,form:X,feedbackIcons:N})),[T,x,k,_,P,K,Z,X,N]),ie=o.useRef(null);o.useImperativeHandle(t,(()=>{var e;return Object.assign(Object.assign({},X),{nativeElement:null===(e=ie.current)||void 0===e?void 0:e.nativeElement})}));const re=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=Object.assign(Object.assign({},n),e)),X.scrollToField(t,n)}};return V(o.createElement(i.pg.Provider,{value:z},o.createElement(R.n,{disabled:y},o.createElement(F.Z.Provider,{value:$},o.createElement(i.RV,{validateMessages:H},o.createElement(i.q3.Provider,{value:J},o.createElement(I.ZP,Object.assign({id:T},j,{name:T,onFinishFailed:e=>{if(null==L||L(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==E)return void re(E,t);void 0!==h&&re(h,t)}},form:X,ref:ie,style:Object.assign(Object.assign({},p),D),className:Y}))))))))};var re=o.forwardRef(ie),oe=n(41799),ae=n(8654),se=n(22703),le=n(32383),ce=n(11592);const ue=()=>{const{status:e,errors:t=[],warnings:n=[]}=o.useContext(i.aM);return{status:e,errors:t,warnings:n}};ue.Context=i.aM;var he=ue,de=n(16089);var pe=n(29194),fe=n(34280),ge=n(2738),me=n(65970),ve=n(70425),ye=n(5472);const be=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}};var we=(0,v.bk)(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const i=L(e,n);return[be(i)]})),xe=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,status:n,labelCol:r,wrapperCol:a,children:l,errors:c,warnings:u,_internalItemRender:h,extra:d,help:p,fieldId:f,marginBottom:g,onErrorVisibleChanged:m,label:v}=e,y=`${t}-item`,b=o.useContext(i.q3),w=o.useMemo((()=>{let e=Object.assign({},a||b.wrapperCol||{});if(null===v&&!r&&!a&&b.labelCol){[void 0,"xs","sm","md","lg","xl","xxl"].forEach((t=>{const n=t?[t]:[],i=(0,ve.U2)(b.labelCol,n),r="object"==typeof i?i:{},o=(0,ve.U2)(e,n);"span"in r&&!("offset"in("object"==typeof o?o:{}))&&r.span<24&&(e=(0,ve.t8)(e,[].concat(n,["offset"]),r.span))}))}return e}),[a,b]),x=s()(`${y}-control`,w.className),S=o.useMemo((()=>{const{labelCol:e,wrapperCol:t}=b;return xe(b,["labelCol","wrapperCol"])}),[b]),k=o.useRef(null),[_,C]=o.useState(0);(0,fe.Z)((()=>{d&&k.current?C(k.current.clientHeight):C(0)}),[d]);const P=o.createElement("div",{className:`${y}-control-input`},o.createElement("div",{className:`${y}-control-input-content`},l)),E=o.useMemo((()=>({prefixCls:t,status:n})),[t,n]),M=null!==g||c.length||u.length?o.createElement(i.Rk.Provider,{value:E},o.createElement(N,{fieldId:f,errors:c,warnings:u,help:p,helpStatus:n,className:`${y}-explain-connected`,onVisibleChanged:m})):null,L={};f&&(L.id=`${f}_extra`);const A=d?o.createElement("div",Object.assign({},L,{className:`${y}-extra`,ref:k}),d):null,T=M||A?o.createElement("div",{className:`${y}-additional`,style:g?{minHeight:g+_}:{}},M,A):null,D=h&&"pro_table_render"===h.mark&&h.render?h.render(e,{input:P,errorList:M,extra:A}):o.createElement(o.Fragment,null,P,T);return o.createElement(i.q3.Provider,{value:S},o.createElement(ye.Z,Object.assign({},w,{className:x}),D),o.createElement(we,{prefixCls:t}))},ke=n(14809),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Ce=n(7657),Pe=function(e,t){return o.createElement(Ce.Z,(0,ke.Z)({},e,{ref:t,icon:_e}))};var Ee=o.forwardRef(Pe),Me=n(9017),Le=n(85981),Ae=n(55544),Te=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,label:n,htmlFor:r,labelCol:a,labelAlign:l,colon:c,required:u,requiredMark:h,tooltip:d,vertical:p}=e;var f;const[g]=(0,Me.Z)("Form"),{labelAlign:m,labelCol:v,labelWrap:y,colon:b}=o.useContext(i.q3);if(!n)return null;const w=a||v||{},x=l||m,S=`${t}-item-label`,k=s()(S,"left"===x&&`${S}-left`,w.className,{[`${S}-wrap`]:!!y});let _=n;const C=!0===c||!1!==b&&!1!==c;C&&!p&&"string"==typeof n&&n.trim()&&(_=n.replace(/[:|:]\s*$/,""));const P=function(e){return e?"object"!=typeof e||o.isValidElement(e)?{title:e}:e:null}(d);if(P){const{icon:e=o.createElement(Ee,null)}=P,n=Te(P,["icon"]),i=o.createElement(Ae.Z,Object.assign({},n),o.cloneElement(e,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));_=o.createElement(o.Fragment,null,_,i)}const E="optional"===h,M="function"==typeof h,L=!1===h;let A;M?_=h(_,{required:!!u}):E&&!u&&(_=o.createElement(o.Fragment,null,_,o.createElement("span",{className:`${t}-item-optional`,title:""},(null==g?void 0:g.optional)||(null===(f=Le.Z.Form)||void 0===f?void 0:f.optional)))),L?A="hidden":(E||M)&&(A="optional");const T=s()({[`${t}-item-required`]:u,[`${t}-item-required-mark-${A}`]:A,[`${t}-item-no-colon`]:!C});return o.createElement(ye.Z,Object.assign({},w,{className:k}),o.createElement("label",{htmlFor:r,className:T,title:"string"==typeof n?n:""},_))},Ne=n(29679),Ie=n(19248),Be=n(96512),Re=n(58617);const Oe={success:Ne.Z,warning:Be.Z,error:Ie.Z,validating:Re.Z};function Fe(e){let{children:t,errors:n,warnings:r,hasFeedback:a,validateStatus:l,prefixCls:c,meta:u,noStyle:h}=e;const d=`${c}-item`,{feedbackIcons:p}=o.useContext(i.q3),f=Y(n,r,u,null,!!a,l),{isFormItemInput:g,status:m,hasFeedback:v,feedbackIcon:y}=o.useContext(i.aM),b=o.useMemo((()=>{var e;let t;if(a){const i=!0!==a&&a.icons||p,l=f&&(null===(e=null==i?void 0:i({status:f,errors:n,warnings:r}))||void 0===e?void 0:e[f]),c=f&&Oe[f];t=!1!==l&&c?o.createElement("span",{className:s()(`${d}-feedback-icon`,`${d}-feedback-icon-${f}`)},l||o.createElement(c,null)):null}const i={status:f||"",errors:n,warnings:r,hasFeedback:!!a,feedbackIcon:t,isFormItemInput:!0};return h&&(i.status=(null!=f?f:m)||"",i.isFormItemInput=g,i.hasFeedback=!!(null!=a?a:v),i.feedbackIcon=void 0!==a?i.feedbackIcon:y),i}),[f,a,h,g,m]);return o.createElement(i.aM.Provider,{value:b},t)}var ze=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{if(T&&E.current){const e=getComputedStyle(E.current);I(parseInt(e.marginBottom,10))}}),[T,D]);const B=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=e?M:p.errors,n=e?L:p.warnings;return Y(t,n,p,"",!!f,d)}(),R=s()(k,n,r,{[`${k}-with-help`]:A||M.length||L.length,[`${k}-has-feedback`]:B&&f,[`${k}-has-success`]:"success"===B,[`${k}-has-warning`]:"warning"===B,[`${k}-has-error`]:"error"===B,[`${k}-is-validating`]:"validating"===B,[`${k}-hidden`]:g,[`${k}-${x}`]:x});return o.createElement("div",{className:R,style:a,ref:E},o.createElement(me.Z,Object.assign({className:`${k}-row`},(0,ge.Z)(S,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),o.createElement(De,Object.assign({htmlFor:v},e,{requiredMark:_,required:null!=y?y:b,prefixCls:t,vertical:P})),o.createElement(Se,Object.assign({},e,p,{errors:M,warnings:L,prefixCls:t,status:B,help:l,marginBottom:N,onErrorVisibleChanged:e=>{e||I(null)}}),o.createElement(i.qI.Provider,{value:w},o.createElement(Fe,{prefixCls:t,meta:p,errors:p.errors,warnings:p.warnings,hasFeedback:f,validateStatus:B},m)))),!!N&&o.createElement("div",{className:`${k}-margin-offset`,style:{marginBottom:-N}}))}const $e=o.memo((e=>{let{children:t}=e;return t}),((e,t)=>function(e,t){const n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&n.every((n=>{const i=e[n],r=t[n];return i===r||"function"==typeof i||"function"==typeof r}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const He=function(e){const{name:t,noStyle:n,className:a,dependencies:l,prefixCls:c,shouldUpdate:h,rules:d,children:p,required:f,label:g,messageVariables:m,trigger:v="onChange",validateTrigger:y,hidden:b,help:w,layout:x}=e,{getPrefixCls:S}=o.useContext(B.E_),{name:k}=o.useContext(i.q3),_=function(e){if("function"==typeof e)return e;const t=(0,ce.Z)(e);return t.length<=1?t[0]:t}(p),C="function"==typeof _,P=o.useContext(i.qI),{validateTrigger:E}=o.useContext(I.zb),M=void 0!==y?y:E,L=!(null==t),T=S("form",c),D=(0,u.Z)(T),[N,R,O]=A(T,D);(0,le.ln)("Form.Item");const F=o.useContext(I.ZM),z=o.useRef(null),[j,$]=function(e){const[t,n]=o.useState(e),i=o.useRef(null),r=o.useRef([]),a=o.useRef(!1);return o.useEffect((()=>(a.current=!1,()=>{a.current=!0,de.Z.cancel(i.current),i.current=null})),[]),[t,function(e){a.current||(null===i.current&&(r.current=[],i.current=(0,de.Z)((()=>{i.current=null,n((e=>{let t=e;return r.current.forEach((e=>{t=e(t)})),t}))}))),r.current.push(e))}]}({}),[H,Z]=(0,oe.Z)((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),K=(e,t)=>{$((n=>{const i=Object.assign({},n),o=[].concat((0,r.Z)(e.name.slice(0,-1)),(0,r.Z)(t)).join("__SPLIT__");return e.destroy?delete i[o]:i[o]=e,i}))},[G,U]=o.useMemo((()=>{const e=(0,r.Z)(H.errors),t=(0,r.Z)(H.warnings);return Object.values(j).forEach((n=>{e.push.apply(e,(0,r.Z)(n.errors||[])),t.push.apply(t,(0,r.Z)(n.warnings||[]))})),[e,t]}),[j,H.errors,H.warnings]),V=function(){const{itemRef:e}=o.useContext(i.q3),t=o.useRef({});return function(n,i){const r=i&&"object"==typeof i&&(0,ae.C4)(i),o=n.join("_");return t.current.name===o&&t.current.originRef===r||(t.current.name=o,t.current.originRef=r,t.current.ref=(0,ae.sQ)(e(n),r)),t.current.ref}}();function Y(t,i,r){return n&&!b?o.createElement(Fe,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:H,errors:G,warnings:U,noStyle:!0},t):o.createElement(je,Object.assign({key:"row"},e,{className:s()(a,O,D,R),prefixCls:T,fieldId:i,isRequired:r,errors:G,warnings:U,meta:H,onSubItemMetaChange:K,layout:x}),t)}if(!L&&!C&&!l)return N(Y(_));let X={};return"string"==typeof g?X.label=g:t&&(X.label=String(t)),m&&(X=Object.assign(Object.assign({},X),m)),N(o.createElement(I.gN,Object.assign({},e,{messageVariables:X,trigger:v,validateTrigger:M,onMetaChange:e=>{const t=null==F?void 0:F.getKey(e.name);if(Z(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==w&&P){let n=e.name;if(e.destroy)n=z.current||n;else if(void 0!==t){const[e,i]=t;n=[e].concat((0,r.Z)(i)),z.current=n}P(e,n)}}}),((n,i,a)=>{const s=W(t).length&&i?i.name:[],c=q(s,k),u=void 0!==f?f:!!(null==d?void 0:d.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(a);return(null==t?void 0:t.required)&&!(null==t?void 0:t.warningOnly)}return!1}))),p=Object.assign({},n);let g=null;if(Array.isArray(_)&&L)g=_;else if(C&&(!h&&!l||L));else if(!l||C||L)if(o.isValidElement(_)){const t=Object.assign(Object.assign({},_.props),p);if(t.id||(t.id=c),w||G.length>0||U.length>0||e.extra){const n=[];(w||G.length>0)&&n.push(`${c}_help`),e.extra&&n.push(`${c}_extra`),t["aria-describedby"]=n.join(" ")}G.length>0&&(t["aria-invalid"]="true"),u&&(t["aria-required"]="true"),(0,ae.Yr)(_)&&(t.ref=V(s,_));new Set([].concat((0,r.Z)(W(v)),(0,r.Z)(W(M)))).forEach((e=>{t[e]=function(){for(var t,n,i,r,o,a=arguments.length,s=new Array(a),l=0;l{var{prefixCls:t,children:n}=e,r=Ke(e,["prefixCls","children"]);const{getPrefixCls:a}=o.useContext(B.E_),s=a("form",t),l=o.useMemo((()=>({prefixCls:s,status:"error"})),[s]);return o.createElement(I.aV,Object.assign({},r),((e,t,r)=>o.createElement(i.Rk.Provider,{value:l},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))};const Ue=re;Ue.Item=Ze,Ue.List=Ge,Ue.ErrorList=N,Ue.useForm=ee,Ue.useFormInstance=function(){const{form:e}=o.useContext(i.q3);return e},Ue.useWatch=I.qo,Ue.Provider=i.RV,Ue.create=()=>{};var Ve=Ue},98283:function(e,t,n){"use strict";const i=(0,n(59301).createContext)({});t.Z=i},5472:function(e,t,n){"use strict";var i=n(59301),r=n(92310),o=n.n(r),a=n(48755),s=n(98283),l=n(26705),c=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=i.useContext(a.E_),{gutter:d,wrap:p}=i.useContext(s.Z),{prefixCls:f,span:g,order:m,offset:v,push:y,pull:b,className:w,children:x,flex:S,style:k}=e,_=c(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=n("col",f),[P,E,M]=(0,l.cG)(C),L={};let A={};h.forEach((t=>{let n={};const i=e[t];"number"==typeof i?n.span=i:"object"==typeof i&&(n=i||{}),delete _[t],A=Object.assign(Object.assign({},A),{[`${C}-${t}-${n.span}`]:void 0!==n.span,[`${C}-${t}-order-${n.order}`]:n.order||0===n.order,[`${C}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${C}-${t}-push-${n.push}`]:n.push||0===n.push,[`${C}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${C}-rtl`]:"rtl"===r}),n.flex&&(A[`${C}-${t}-flex`]=!0,L[`--${C}-${t}-flex`]=u(n.flex))}));const T=o()(C,{[`${C}-${g}`]:void 0!==g,[`${C}-order-${m}`]:m,[`${C}-offset-${v}`]:v,[`${C}-push-${y}`]:y,[`${C}-pull-${b}`]:b},w,A,E,M),D={};if(d&&d[0]>0){const e=d[0]/2;D.paddingLeft=e,D.paddingRight=e}return S&&(D.flex=u(S),!1!==p||D.minWidth||(D.minWidth=0)),P(i.createElement("div",Object.assign({},_,{style:Object.assign(Object.assign(Object.assign({},D),k),L),className:T,ref:t}),x))}));t.Z=d},13783:function(e,t,n){"use strict";var i=n(59301),r=n(34280),o=n(40192),a=n(47999);t.Z=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,i.useRef)(t),s=(0,o.Z)(),l=(0,a.ZP)();return(0,r.Z)((()=>{const t=l.subscribe((t=>{n.current=t,e&&s()}));return()=>l.unsubscribe(t)}),[]),n.current}},65970:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(59301),r=n(92310),o=n.n(r),a=n(47999),s=n(48755),l=n(13783);var c=n(98283),u=n(26705),h=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n{const{prefixCls:n,justify:r,align:p,className:f,style:g,children:m,gutter:v=0,wrap:y}=e,b=h(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:w,direction:x}=i.useContext(s.E_),S=(0,l.Z)(!0,null),k=d(p,S),_=d(r,S),C=w("row",n),[P,E,M]=(0,u.VM)(C),L=function(e,t){const n=[void 0,void 0],i=Array.isArray(e)?e:[e,void 0],r=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return i.forEach(((e,t)=>{if("object"==typeof e&&null!==e)for(let i=0;i0?L[0]/-2:void 0;D&&(T.marginLeft=D,T.marginRight=D);const[N,I]=L;T.rowGap=I;const B=i.useMemo((()=>({gutter:[N,I],wrap:y})),[N,I,y]);return P(i.createElement(c.Z.Provider,{value:B},i.createElement("div",Object.assign({},b,{className:A,style:Object.assign(Object.assign({},T),g),ref:t}),m)))}))},49397:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var i=n(59301),r=n(92310),o=n.n(r),a=n(36901),s=n(8654),l=n(62487),c=n(86013),u=n(82855),h=n(48755),d=n(2171),p=n(83397),f=n(31756),g=n(56553),m=n(24971),v=n(70045),y=n(23826),b=n(53075);var w=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,bordered:r=!0,status:x,size:S,disabled:k,onBlur:_,onFocus:C,suffix:P,allowClear:E,addonAfter:M,addonBefore:L,className:A,style:T,styles:D,rootClassName:N,onChange:I,classNames:B,variant:R}=e,O=w(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:F,direction:z,allowClear:j,autoComplete:$,className:H,style:Z,classNames:K,styles:G}=(0,h.dj)("input"),U=F("input",n),V=(0,i.useRef)(null),W=(0,p.Z)(U),[q,Y,X]=(0,b.TI)(U,N),[Q]=(0,b.ZP)(U,W),{compactSize:J,compactItemClassnames:ee}=(0,v.ri)(U,z),te=(0,f.Z)((e=>{var t;return null!==(t=null!=S?S:J)&&void 0!==t?t:e})),ne=i.useContext(d.Z),ie=null!=k?k:ne,{status:re,hasFeedback:oe,feedbackIcon:ae}=(0,i.useContext)(g.aM),se=(0,u.F)(re,x),le=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!oe;(0,i.useRef)(le);const ce=(0,y.Z)(V,!0),ue=(oe||P)&&i.createElement(i.Fragment,null,P,oe&&ae),he=(0,c.Z)(null!=E?E:j),[de,pe]=(0,m.Z)("input",R,r);return q(Q(i.createElement(a.Z,Object.assign({ref:(0,s.sQ)(t,V),prefixCls:U,autoComplete:$},O,{disabled:ie,onBlur:e=>{ce(),null==_||_(e)},onFocus:e=>{ce(),null==C||C(e)},style:Object.assign(Object.assign({},Z),T),styles:Object.assign(Object.assign({},G),D),suffix:ue,allowClear:he,className:o()(A,N,X,W,ee,H),onChange:e=>{ce(),null==I||I(e)},addonBefore:L&&i.createElement(l.Z,{form:!0,space:!0},L),addonAfter:M&&i.createElement(l.Z,{form:!0,space:!0},M),classNames:Object.assign(Object.assign(Object.assign({},B),K),{input:o()({[`${U}-sm`]:"small"===te,[`${U}-lg`]:"large"===te,[`${U}-rtl`]:"rtl"===z},null==B?void 0:B.input,K.input,Y),variant:o()({[`${U}-${de}`]:pe},(0,u.Z)(U,se)),affixWrapper:o()({[`${U}-affix-wrapper-sm`]:"small"===te,[`${U}-affix-wrapper-lg`]:"large"===te,[`${U}-affix-wrapper-rtl`]:"rtl"===z},Y),wrapper:o()({[`${U}-group-rtl`]:"rtl"===z},Y),groupWrapper:o()({[`${U}-group-wrapper-sm`]:"small"===te,[`${U}-group-wrapper-lg`]:"large"===te,[`${U}-group-wrapper-rtl`]:"rtl"===z,[`${U}-group-wrapper-${de}`]:pe},(0,u.Z)(`${U}-group-wrapper`,se,oe),Y)})}))))}))},23826:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(59301);function r(e,t){const n=(0,i.useRef)([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,i,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(i=e.current)||void 0===i?void 0:i.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return(0,i.useEffect)((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}},10975:function(e,t,n){"use strict";n.d(t,{Z:function(){return ke}});var i=n(59301),r=n(92310),o=n.n(r),a=n(48755),s=n(56553),l=n(53075);var c=e=>{const{getPrefixCls:t,direction:n}=(0,i.useContext)(a.E_),{prefixCls:r,className:c}=e,u=t("input-group",r),h=t("input"),[d,p,f]=(0,l.ZP)(h),g=o()(u,f,{[`${u}-lg`]:"large"===e.size,[`${u}-sm`]:"small"===e.size,[`${u}-compact`]:e.compact,[`${u}-rtl`]:"rtl"===n},p,c),m=(0,i.useContext)(s.aM),v=(0,i.useMemo)((()=>Object.assign(Object.assign({},m),{isFormItemInput:!1})),[m]);return d(i.createElement("span",{className:g,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},i.createElement(s.aM.Provider,{value:v},e.children)))},u=n(49397),h=n(95190),d=n(6089),p=n(26112),f=n(82855),g=n(31756),m=n(16931),v=n(51636),y=n(64910);const b=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};var w=(0,m.I$)(["Input","OTP"],(e=>{const t=(0,v.IX)(e,(0,y.e)(e));return[b(t)]}),y.T),x=n(16089),S=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{value:n,onChange:r,onActiveChange:o,index:a,mask:s}=e,l=S(e,["value","onChange","onActiveChange","index","mask"]),c=n&&"string"==typeof s?s:n,h=i.useRef(null);i.useImperativeHandle(t,(()=>h.current));const d=()=>{(0,x.Z)((()=>{var e;const t=null===(e=h.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return i.createElement(u.Z,Object.assign({type:!0===s?"password":"text"},l,{ref:h,value:c,onInput:e=>{r(a,e.target.value)},onFocus:d,onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:i}=e;"ArrowLeft"===t?o(a-1):"ArrowRight"===t?o(a+1):"z"===t&&(n||i)&&e.preventDefault(),d()},onKeyUp:e=>{"Backspace"!==e.key||n||o(a-1),d()},onMouseDown:d,onMouseUp:d}))})),_=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{index:t,prefixCls:n,separator:r}=e,o="function"==typeof r?r(t):r;return o?i.createElement("span",{className:`${n}-separator`},o):null};var E=i.forwardRef(((e,t)=>{const{prefixCls:n,length:r=6,size:l,defaultValue:c,value:u,onChange:m,formatter:v,separator:y,variant:b,disabled:x,status:S,autoFocus:E,mask:M,type:L,onInput:A,inputMode:T}=e,D=_(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);const{getPrefixCls:N,direction:I}=i.useContext(a.E_),B=N("otp",n),R=(0,p.Z)(D,{aria:!0,data:!0,attr:!0}),[O,F,z]=w(B),j=(0,g.Z)((e=>null!=l?l:e)),$=i.useContext(s.aM),H=(0,f.F)($.status,S),Z=i.useMemo((()=>Object.assign(Object.assign({},$),{status:H,hasFeedback:!1,feedbackIcon:null})),[$,H]),K=i.useRef(null),G=i.useRef({});i.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=G.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;tv?v(e):e,[V,W]=i.useState((()=>C(U(c||""))));i.useEffect((()=>{void 0!==u&&W(C(u))}),[u]);const q=(0,d.Z)((e=>{W(e),A&&A(e),m&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>V[t]!==e))&&m(e.join(""))})),Y=(0,d.Z)(((e,t)=>{let n=(0,h.Z)(V);for(let t=0;t=0&&!n[e];e-=1)n.pop();const i=U(n.map((e=>e||" ")).join(""));return n=C(i).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),X=(e,t)=>{var n;const i=Y(e,t),o=Math.min(e+t.length,r-1);o!==e&&void 0!==i[e]&&(null===(n=G.current[o])||void 0===n||n.focus()),q(i)},Q=e=>{var t;null===(t=G.current[e])||void 0===t||t.focus()},J={variant:b,disabled:x,status:H,mask:M,type:L,inputMode:T};return O(i.createElement("div",Object.assign({},R,{ref:K,className:o()(B,{[`${B}-sm`]:"small"===j,[`${B}-lg`]:"large"===j,[`${B}-rtl`]:"rtl"===I},z,F)}),i.createElement(s.aM.Provider,{value:Z},Array.from({length:r}).map(((e,t)=>{const n=`otp-${t}`,o=V[t]||"";return i.createElement(i.Fragment,{key:n},i.createElement(k,Object.assign({ref:e=>{G.current[t]=e},index:t,size:j,htmlSize:1,className:`${B}-input`,onChange:X,value:o,onActiveChange:Q,autoFocus:0===t&&E},J)),te?i.createElement(N.Z,null):i.createElement(D,null),j={click:"onClick",hover:"onMouseOver"};var $=i.forwardRef(((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:s=!0,iconRender:l=z}=e,c=i.useContext(R.Z),h=null!=n?n:c,d="object"==typeof s&&void 0!==s.visible,[p,f]=(0,i.useState)((()=>!!d&&s.visible)),g=(0,i.useRef)(null);i.useEffect((()=>{d&&f(s.visible)}),[d,s]);const m=(0,O.Z)(g),v=()=>{var e;if(h)return;p&&m();const t=!p;f(t),"object"==typeof s&&(null===(e=s.onVisibleChange)||void 0===e||e.call(s,t))},{className:y,prefixCls:b,inputPrefixCls:w,size:x}=e,S=F(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:k}=i.useContext(a.E_),_=k("input",w),C=k("input-password",b),P=s&&(e=>{const t=j[r]||"",n=l(p),o={[t]:v,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return i.cloneElement(i.isValidElement(n)?n:i.createElement("span",null,n),o)})(C),E=o()(C,y,{[`${C}-${x}`]:!!x}),M=Object.assign(Object.assign({},(0,I.Z)(S,["suffix","iconRender","visibilityToggle"])),{type:p?"text":"password",className:E,prefixCls:_,suffix:P});return x&&(M.size=x),i.createElement(u.Z,Object.assign({ref:(0,B.sQ)(t,g)},M))})),H=n(47472),Z=n(22703),K=n(20743),G=n(70045),U=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,inputPrefixCls:r,className:s,size:l,suffix:c,enterButton:h=!1,addonAfter:d,loading:p,disabled:f,onSearch:m,onChange:v,onCompositionStart:y,onCompositionEnd:b}=e,w=U(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:x,direction:S}=i.useContext(a.E_),k=i.useRef(!1),_=x("input-search",n),C=x("input",r),{compactSize:P}=(0,G.ri)(_,S),E=(0,g.Z)((e=>{var t;return null!==(t=null!=l?l:P)&&void 0!==t?t:e})),M=i.useRef(null),L=e=>{var t;document.activeElement===(null===(t=M.current)||void 0===t?void 0:t.input)&&e.preventDefault()},A=e=>{var t,n;m&&m(null===(n=null===(t=M.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},T="boolean"==typeof h?i.createElement(H.Z,null):null,D=`${_}-button`;let N;const I=h||{},R=I.type&&!0===I.type.__ANT_BUTTON;N=R||"button"===I.type?(0,Z.Tm)(I,Object.assign({onMouseDown:L,onClick:e=>{var t,n;null===(n=null===(t=null==I?void 0:I.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),A(e)},key:"enterButton"},R?{className:D,size:E}:{})):i.createElement(K.ZP,{className:D,type:h?"primary":void 0,size:E,disabled:f,key:"enterButton",onMouseDown:L,onClick:A,loading:p,icon:T},h),d&&(N=[N,(0,Z.Tm)(d,{key:"addonAfter"})]);const O=o()(_,{[`${_}-rtl`]:"rtl"===S,[`${_}-${E}`]:!!E,[`${_}-with-button`]:!!h},s),F=Object.assign(Object.assign({},w),{className:O,prefixCls:C,type:"search"});return i.createElement(u.Z,Object.assign({ref:(0,B.sQ)(M,t),onPressEnter:e=>{k.current||p||A(e)}},F,{size:E,onCompositionStart:e=>{k.current=!0,null==y||y(e)},onCompositionEnd:e=>{k.current=!1,null==b||b(e)},addonAfter:N,suffix:c,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&m&&m(e.target.value,e,{source:"clear"}),null==v||v(e)},disabled:f}))})),q=n(4635),Y=n(20439),X=n(50298),Q=n(62646),J=n(36901),ee=n(66003),te=n(30292),ne=n(18929),ie=n(93664),re=n(29301),oe=n(34280),ae="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n",se=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],le={};function ce(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&le[n])return le[n];var i=window.getComputedStyle(e),r=i.getPropertyValue("box-sizing")||i.getPropertyValue("-moz-box-sizing")||i.getPropertyValue("-webkit-box-sizing"),o=parseFloat(i.getPropertyValue("padding-bottom"))+parseFloat(i.getPropertyValue("padding-top")),a=parseFloat(i.getPropertyValue("border-bottom-width"))+parseFloat(i.getPropertyValue("border-top-width")),s=se.map((function(e){return"".concat(e,":").concat(i.getPropertyValue(e))})).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:r};return t&&n&&(le[n]=l),l}var ue=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],he=i.forwardRef((function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,s=n.value,l=n.autoSize,c=n.onResize,u=n.className,h=n.style,d=n.disabled,p=n.onChange,f=(n.onInternalAutoSize,(0,Q.Z)(n,ue)),g=(0,ne.Z)(a,{value:s,postState:function(e){return null!=e?e:""}}),m=(0,X.Z)(g,2),v=m[0],y=m[1],b=i.useRef();i.useImperativeHandle(t,(function(){return{textArea:b.current}}));var w=i.useMemo((function(){return l&&"object"===(0,ie.Z)(l)?[l.minRows,l.maxRows]:[]}),[l]),S=(0,X.Z)(w,2),k=S[0],_=S[1],C=!!l,P=i.useState(2),E=(0,X.Z)(P,2),L=E[0],A=E[1],T=i.useState(),D=(0,X.Z)(T,2),N=D[0],I=D[1],B=function(){A(0)};(0,oe.Z)((function(){C&&B()}),[s,k,_,C]),(0,oe.Z)((function(){if(0===L)A(1);else if(1===L){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;V||((V=document.createElement("textarea")).setAttribute("tab-index","-1"),V.setAttribute("aria-hidden","true"),V.setAttribute("name","hiddenTextarea"),document.body.appendChild(V)),e.getAttribute("wrap")?V.setAttribute("wrap",e.getAttribute("wrap")):V.removeAttribute("wrap");var r=ce(e,t),o=r.paddingSize,a=r.borderSize,s=r.boxSizing,l=r.sizingStyle;V.setAttribute("style","".concat(l,";").concat(ae)),V.value=e.value||e.placeholder||"";var c,u=void 0,h=void 0,d=V.scrollHeight;if("border-box"===s?d+=a:"content-box"===s&&(d-=o),null!==n||null!==i){V.value=" ";var p=V.scrollHeight-o;null!==n&&(u=p*n,"border-box"===s&&(u=u+o+a),d=Math.max(u,d)),null!==i&&(h=p*i,"border-box"===s&&(h=h+o+a),c=d>h?"":"hidden",d=Math.min(h,d))}var f={height:d,overflowY:c,resize:"none"};return u&&(f.minHeight=u),h&&(f.maxHeight=h),f}(b.current,!1,k,_);A(2),I(e)}else!function(){try{if(document.activeElement===b.current){var e=b.current,t=e.selectionStart,n=e.selectionEnd,i=e.scrollTop;b.current.setSelectionRange(t,n),b.current.scrollTop=i}}catch(e){}}()}),[L]);var R=i.useRef(),O=function(){x.Z.cancel(R.current)};i.useEffect((function(){return O}),[]);var F=C?N:null,z=(0,Y.Z)((0,Y.Z)({},h),F);return 0!==L&&1!==L||(z.overflowY="hidden",z.overflowX="hidden"),i.createElement(re.Z,{onResize:function(e){2===L&&(null==c||c(e),l&&(O(),R.current=(0,x.Z)((function(){B()}))))},disabled:!(l||c)},i.createElement("textarea",(0,M.Z)({},f,{ref:b,style:z,className:o()(r,u,(0,q.Z)({},"".concat(r,"-disabled"),d)),disabled:d,value:v,onChange:function(e){y(e.target.value),null==p||p(e)}})))})),de=he,pe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],fe=i.forwardRef((function(e,t){var n,r=e.defaultValue,a=e.value,s=e.onFocus,l=e.onBlur,c=e.onChange,u=e.allowClear,d=e.maxLength,p=e.onCompositionStart,f=e.onCompositionEnd,g=e.suffix,m=e.prefixCls,v=void 0===m?"rc-textarea":m,y=e.showCount,b=e.count,w=e.className,x=e.style,S=e.disabled,k=e.hidden,_=e.classNames,C=e.styles,P=e.onResize,E=e.onClear,L=e.onPressEnter,A=e.readOnly,T=e.autoSize,D=e.onKeyDown,N=(0,Q.Z)(e,pe),I=(0,ne.Z)(r,{value:a,defaultValue:r}),B=(0,X.Z)(I,2),R=B[0],O=B[1],F=null==R?"":String(R),z=i.useState(!1),j=(0,X.Z)(z,2),$=j[0],H=j[1],Z=i.useRef(!1),K=i.useState(null),G=(0,X.Z)(K,2),U=G[0],V=G[1],W=(0,i.useRef)(null),ie=(0,i.useRef)(null),re=function(){var e;return null===(e=ie.current)||void 0===e?void 0:e.textArea},oe=function(){re().focus()};(0,i.useImperativeHandle)(t,(function(){var e;return{resizableTextArea:ie.current,focus:oe,blur:function(){re().blur()},nativeElement:(null===(e=W.current)||void 0===e?void 0:e.nativeElement)||re()}})),(0,i.useEffect)((function(){H((function(e){return!S&&e}))}),[S]);var ae=i.useState(null),se=(0,X.Z)(ae,2),le=se[0],ce=se[1];i.useEffect((function(){var e;le&&(e=re()).setSelectionRange.apply(e,(0,h.Z)(le))}),[le]);var ue,he=(0,ee.Z)(b,y),fe=null!==(n=he.max)&&void 0!==n?n:d,ge=Number(fe)>0,me=he.strategy(F),ve=!!fe&&me>fe,ye=function(e,t){var n=t;!Z.current&&he.exceedFormatter&&he.max&&he.strategy(t)>he.max&&t!==(n=he.exceedFormatter(t,{max:he.max}))&&ce([re().selectionStart||0,re().selectionEnd||0]),O(n),(0,te.rJ)(e.currentTarget,e,c,n)},be=g;he.show&&(ue=he.showFormatter?he.showFormatter({value:F,count:me,maxLength:fe}):"".concat(me).concat(ge?" / ".concat(fe):""),be=i.createElement(i.Fragment,null,be,i.createElement("span",{className:o()("".concat(v,"-data-count"),null==_?void 0:_.count),style:null==C?void 0:C.count},ue)));var we=!T&&!y&&!u;return i.createElement(J.Q,{ref:W,value:F,allowClear:u,handleReset:function(e){O(""),oe(),(0,te.rJ)(re(),e,c)},suffix:be,prefixCls:v,classNames:(0,Y.Z)((0,Y.Z)({},_),{},{affixWrapper:o()(null==_?void 0:_.affixWrapper,(0,q.Z)((0,q.Z)({},"".concat(v,"-show-count"),y),"".concat(v,"-textarea-allow-clear"),u))}),disabled:S,focused:$,className:o()(w,ve&&"".concat(v,"-out-of-range")),style:(0,Y.Z)((0,Y.Z)({},x),U&&!we?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ue?ue:void 0}},hidden:k,readOnly:A,onClear:E},i.createElement(de,(0,M.Z)({},N,{autoSize:T,maxLength:d,onKeyDown:function(e){"Enter"===e.key&&L&&L(e),null==D||D(e)},onChange:function(e){ye(e,e.target.value)},onFocus:function(e){H(!0),null==s||s(e)},onBlur:function(e){H(!1),null==l||l(e)},onCompositionStart:function(e){Z.current=!0,null==p||p(e)},onCompositionEnd:function(e){Z.current=!1,ye(e,e.currentTarget.value),null==f||f(e)},className:o()(null==_?void 0:_.textarea),style:(0,Y.Z)((0,Y.Z)({},null==C?void 0:C.textarea),{},{resize:null==x?void 0:x.resize}),disabled:S,prefixCls:v,onResize:function(e){var t;null==P||P(e),null!==(t=re())&&void 0!==t&&t.style.height&&V(!0)},ref:ie,readOnly:A})))})),ge=n(86013),me=n(83397),ve=n(24971);const ye=e=>{const{componentCls:t,paddingLG:n}=e,i=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[i]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${i}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${i}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}};var be=(0,m.I$)(["Input","TextArea"],(e=>{const t=(0,v.IX)(e,(0,y.e)(e));return[ye(t)]}),y.T,{resetFont:!1}),we=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,bordered:c=!0,size:u,disabled:h,status:d,allowClear:p,classNames:m,rootClassName:v,className:y,style:b,styles:w,variant:x,showCount:S,onMouseDown:k,onResize:_}=e,C=we(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);const{getPrefixCls:P,direction:E,allowClear:M,autoComplete:L,className:A,style:T,classNames:D,styles:N}=(0,a.dj)("textArea"),I=i.useContext(R.Z),B=null!=h?h:I,{status:O,hasFeedback:F,feedbackIcon:z}=i.useContext(s.aM),j=(0,f.F)(O,d),$=i.useRef(null);i.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=$.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;(0,te.nH)(null===(n=null===(t=$.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=$.current)||void 0===e?void 0:e.blur()}}}));const H=P("input",r),Z=(0,me.Z)(H),[K,U,V]=(0,l.TI)(H,v),[W]=be(H,Z),{compactSize:q,compactItemClassnames:Y}=(0,G.ri)(H,E),X=(0,g.Z)((e=>{var t;return null!==(t=null!=u?u:q)&&void 0!==t?t:e})),[Q,J]=(0,ve.Z)("textArea",x,c),ee=(0,ge.Z)(null!=p?p:M),[ne,ie]=i.useState(!1),[re,oe]=i.useState(!1);return K(W(i.createElement(fe,Object.assign({autoComplete:L},C,{style:Object.assign(Object.assign({},T),b),styles:Object.assign(Object.assign({},N),w),disabled:B,allowClear:ee,className:o()(V,Z,y,v,Y,A,re&&`${H}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},m),D),{textarea:o()({[`${H}-sm`]:"small"===X,[`${H}-lg`]:"large"===X},U,null==m?void 0:m.textarea,D.textarea,ne&&`${H}-mouse-active`),variant:o()({[`${H}-${Q}`]:J},(0,f.Z)(H,j)),affixWrapper:o()(`${H}-textarea-affix-wrapper`,{[`${H}-affix-wrapper-rtl`]:"rtl"===E,[`${H}-affix-wrapper-sm`]:"small"===X,[`${H}-affix-wrapper-lg`]:"large"===X,[`${H}-textarea-show-count`]:S||(null===(n=e.count)||void 0===n?void 0:n.show)},U)}),prefixCls:H,suffix:F&&i.createElement("span",{className:`${H}-textarea-suffix`},z),showCount:S,ref:$,onResize:e=>{var t,n;if(null==_||_(e),ne&&"function"==typeof getComputedStyle){const e=null===(n=null===(t=$.current)||void 0===t?void 0:t.nativeElement)||void 0===n?void 0:n.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&oe(!0)}},onMouseDown:e=>{ie(!0),null==k||k(e);const t=()=>{ie(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}}))))}));const Se=u.Z;Se.Group=c,Se.Search=W,Se.TextArea=xe,Se.Password=$,Se.OTP=E;var ke=Se},53075:function(e,t,n){"use strict";n.d(t,{TI:function(){return x},ik:function(){return p},nz:function(){return u},s7:function(){return f},x0:function(){return d}});var i=n(66604),r=n(63356),o=n(56119),a=n(16931),s=n(51636),l=n(64910),c=n(39082);const u=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),h=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${(0,i.bf)(t)} ${(0,i.bf)(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},d=e=>({padding:`${(0,i.bf)(e.paddingBlockSM)} ${(0,i.bf)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),p=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,i.bf)(e.paddingBlock)} ${(0,i.bf)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},u(e.colorTextPlaceholder)),{"&-lg":Object.assign({},h(e)),"&-sm":Object.assign({},d(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),f=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},h(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},d(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,i.bf)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${(0,i.bf)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,i.bf)(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${(0,i.bf)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${(0,i.bf)(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,r.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},g=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:i,calc:o}=e,a=o(n).sub(o(i).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,r.Wf)(e)),p(e)),(0,c.qG)(e)),(0,c.H8)(e)),(0,c.Mu)(e)),(0,c.vc)(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},m=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,i.bf)(e.inputAffixPadding)}`}}}},v=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:i,motionDurationSlow:r,colorIcon:o,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper-disabled`;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},p(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:i},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),m(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[l]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},y=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,r.Wf)(e)),f(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}}},(0,c.ir)(e)),(0,c.S5)(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},b=e=>{const{componentCls:t,antCls:n}=e,i=`${t}-search`;return{[i]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${i}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${i}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${i}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${i}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${i}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${i}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},w=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},x=(0,a.I$)(["Input","Shared"],(e=>{const t=(0,s.IX)(e,(0,l.e)(e));return[g(t),v(t)]}),l.T,{resetFont:!1});t.ZP=(0,a.I$)(["Input","Component"],(e=>{const t=(0,s.IX)(e,(0,l.e)(e));return[y(t),b(t),w(t),(0,o.c)(t)]}),l.T,{resetFont:!1})},64910:function(e,t,n){"use strict";n.d(t,{T:function(){return o},e:function(){return r}});var i=n(51636);function r(e){return(0,i.IX)(e,{inputAffixPadding:e.paddingXXS})}const o=e=>{const{controlHeight:t,fontSize:n,lineHeight:i,lineWidth:r,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:h,colorFillAlter:d,colorPrimaryHover:p,colorPrimary:f,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:v,colorWarningOutline:y,colorBgContainer:b,inputFontSize:w,inputFontSizeLG:x,inputFontSizeSM:S}=e,k=w||n,_=S||k,C=x||s,P=Math.round((t-k*i)/2*10)/10-r,E=Math.round((o-_*i)/2*10)/10-r,M=Math.ceil((a-C*l)/2*10)/10-r;return{paddingBlock:Math.max(P,0),paddingBlockSM:Math.max(E,0),paddingBlockLG:Math.max(M,0),paddingInline:c-r,paddingInlineSM:u-r,paddingInlineLG:h-r,addonBg:d,activeBorderColor:f,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${y}`,hoverBg:b,activeBg:b,inputFontSize:k,inputFontSizeLG:C,inputFontSizeSM:_}}},39082:function(e,t,n){"use strict";n.d(t,{$U:function(){return s},H8:function(){return g},Mu:function(){return d},S5:function(){return v},Xy:function(){return a},ir:function(){return h},qG:function(){return c},vc:function(){return w}});var i=n(66604),r=n(51636);const o=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),a=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},o((0,r.IX)(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),s=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),l=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},s(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),c=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},a(e))}),l(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),l(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),u=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),h=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},u(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),u(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},a(e))}})}),d=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},p=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null!==(n=null==t?void 0:t.inputColor)&&void 0!==n?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},f=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},p(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),g=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},a(e))}),f(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),f(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),m=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),v=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},m(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),m(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),y=(e,t)=>({background:e.colorBgContainer,borderWidth:`${(0,i.bf)(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),b=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},y(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),w=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},y(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),b(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),b(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)})},24303:function(e,t,n){"use strict";n.d(t,{D:function(){return k},Z:function(){return P}});var i=n(59301),r=n(14809),o={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"},a=n(7657),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s),c=n(33853),u=n(38819),h=n(92310),d=n.n(h),p=n(2738),f=n(48755),g=n(6989),m=n(66604),v=n(48923),y=n(16931);const b=e=>{const{componentCls:t,siderBg:n,motionDurationMid:i,motionDurationSlow:r,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:h,borderRadiusLG:d,lightSiderBg:p,lightTriggerColor:f,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${i}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:(0,m.bf)(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${i}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:h,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,m.bf)(d)} ${(0,m.bf)(d)} 0`,cursor:"pointer",transition:`background ${r} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${r}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,m.bf)(d)} 0 0 ${(0,m.bf)(d)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:f,background:g},[`${t}-zero-width-trigger`]:{color:f,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};var w=(0,y.I$)(["Layout","Sider"],(e=>[b(e)]),v.eh,{deprecatedTokens:v.jn}),x=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{let e=0;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,`${t}${e}`}})(),C=i.forwardRef(((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:s=!1,theme:h="dark",style:m={},collapsible:v=!1,reverseArrow:y=!1,width:b=200,collapsedWidth:C=80,zeroWidthTriggerStyle:P,breakpoint:E,onCollapse:M,onBreakpoint:L}=e,A=x(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:T}=(0,i.useContext)(g.V),[D,N]=(0,i.useState)("collapsed"in e?e.collapsed:s),[I,B]=(0,i.useState)(!1);(0,i.useEffect)((()=>{"collapsed"in e&&N(e.collapsed)}),[e.collapsed]);const R=(t,n)=>{"collapsed"in e||N(t),null==M||M(t,n)},{getPrefixCls:O,direction:F}=(0,i.useContext)(f.E_),z=O("layout-sider",n),[j,$,H]=w(z),Z=(0,i.useRef)(null);Z.current=e=>{B(e.matches),null==L||L(e.matches),D!==e.matches&&R(e.matches,"responsive")},(0,i.useEffect)((()=>{function e(e){return Z.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&E&&E in S){t=n(`screen and (max-width: ${S[E]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[E]),(0,i.useEffect)((()=>{const e=_("ant-sider-");return T.addSider(e),()=>T.removeSider(e)}),[]);const K=()=>{R(!D,"clickTrigger")},G=(0,p.Z)(A,["collapsed"]),U=D?C:b,V=(W=U,!Number.isNaN(Number.parseFloat(W))&&isFinite(W)?`${U}px`:String(U));var W;const q=0===parseFloat(String(C||0))?i.createElement("span",{onClick:K,className:d()(`${z}-zero-width-trigger`,`${z}-zero-width-trigger-${y?"right":"left"}`),style:P},o||i.createElement(l,null)):null,Y="rtl"===F==!y,X={expanded:Y?i.createElement(u.Z,null):i.createElement(c.Z,null),collapsed:Y?i.createElement(c.Z,null):i.createElement(u.Z,null)}[D?"collapsed":"expanded"],Q=null!==o?q||i.createElement("div",{className:`${z}-trigger`,onClick:K,style:{width:V}},o||X):null,J=Object.assign(Object.assign({},m),{flex:`0 0 ${V}`,maxWidth:V,minWidth:V,width:V}),ee=d()(z,`${z}-${h}`,{[`${z}-collapsed`]:!!D,[`${z}-has-trigger`]:v&&null!==o&&!q,[`${z}-below`]:!!I,[`${z}-zero-width`]:0===parseFloat(V)},r,$,H),te=i.useMemo((()=>({siderCollapsed:D})),[D]);return j(i.createElement(k.Provider,{value:te},i.createElement("aside",Object.assign({className:ee},G,{style:J,ref:t}),i.createElement("div",{className:`${z}-children`},a),v||I&&q?Q:null)))}));var P=C},6989:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});const i=n(59301).createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(e,t,n){"use strict";n.d(t,{eh:function(){return a},jn:function(){return s}});var i=n(66604),r=n(16931);const o=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:a,headerPadding:s,headerColor:l,footerPadding:c,fontSize:u,bodyBg:h,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:h,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:s,color:l,lineHeight:(0,i.bf)(a),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},a=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:i,colorText:r,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=1.25*i;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${c}px`,headerColor:r,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:i+2*a,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:i,zeroTriggerHeight:i,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:r}},s=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];t.ZP=(0,r.I$)("Layout",(e=>[o(e)]),a,{deprecatedTokens:s})},78857:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var i=n(59301),r=n(8654),o=n(62487),a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{children:n}=e,l=a(e,["children"]),c=i.useContext(s),u=i.useMemo((()=>Object.assign(Object.assign({},c),l)),[c,l.prefixCls,l.mode,l.selectable,l.rootClassName]),h=(0,r.t4)(n),d=(0,r.x1)(t,h?(0,r.C4)(n):null);return i.createElement(s.Provider,{value:u},i.createElement(o.Z,{space:!0},h?i.cloneElement(n,{ref:d}):n))}));t.Z=s},93041:function(e,t,n){"use strict";n.d(t,{Z:function(){return q}});var i=n(59301),r=n(28321),o=n(24303),a=n(18785),s=n(92310),l=n.n(s),c=n(6089),u=n(2738),h=n(86641),d=n(22703),p=n(48755),f=n(83397);var g=(0,i.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,dashed:o}=e,a=m(e,["prefixCls","className","dashed"]),{getPrefixCls:s}=i.useContext(p.E_),c=s("menu",t),u=l()({[`${c}-item-divider-dashed`]:!!o},n);return i.createElement(r.iz,Object.assign({className:u},a))},y=n(11592),b=n(55544);var w=e=>{var t;const{className:n,children:a,icon:s,title:c,danger:h,extra:p}=e,{prefixCls:f,firstLevel:m,direction:v,disableMenuItemTitleTooltip:w,inlineCollapsed:x}=i.useContext(g),{siderCollapsed:S}=i.useContext(o.D);let k=c;void 0===c?k=m?a:"":!1===c&&(k="");const _={title:k};S||x||(_.title=null,_.open=!1);const C=(0,y.Z)(a).length;let P=i.createElement(r.ck,Object.assign({},(0,u.Z)(e,["title","icon","danger"]),{className:l()({[`${f}-item-danger`]:h,[`${f}-item-only-child`]:1===(s?C+1:C)},n),title:"string"==typeof c?c:void 0}),(0,d.Tm)(s,{className:l()(i.isValidElement(s)?null===(t=s.props)||void 0===t?void 0:t.className:"",`${f}-item-icon`)}),(e=>{const t=null==a?void 0:a[0],n=i.createElement("span",{className:l()(`${f}-title-content`,{[`${f}-title-content-with-extra`]:!!p||0===p})},a);return(!s||i.isValidElement(a)&&"span"===a.type)&&a&&e&&m&&"string"==typeof t?i.createElement("div",{className:`${f}-inline-collapsed-noicon`},t.charAt(0)):n})(x));return w||(P=i.createElement(b.Z,Object.assign({},_,{placement:"rtl"===v?"left":"right",classNames:{root:`${f}-inline-collapsed-tooltip`}}),P)),P},x=n(78857),S=n(66604),k=n(17835),_=n(63356),C=n(34961),P=n(46e3),E=n(34925),M=n(16931),L=n(51636);var A=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:i,colorSplit:r,lineWidth:o,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:i,border:0,borderBottom:`${(0,S.bf)(o)} ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}};var T=e=>{let{componentCls:t,menuArrowOffset:n,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,S.bf)(i(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,S.bf)(n)})`}}}}};const D=e=>Object.assign({},(0,_.oN)(e));var N=(e,t)=>{const{componentCls:n,itemColor:i,itemSelectedColor:r,subMenuItemSelectedColor:o,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:h,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:g,itemPaddingInline:m,motionDurationMid:v,itemHoverColor:y,lineType:b,colorSplit:w,itemDisabledColor:x,dangerItemColor:k,dangerItemHoverColor:_,dangerItemSelectedColor:C,dangerItemActiveBg:P,dangerItemSelectedBg:E,popupBg:M,itemHoverBg:L,itemActiveBg:A,menuSubMenuBg:T,horizontalItemSelectedColor:N,horizontalItemSelectedBg:I,horizontalItemBorderRadius:B,horizontalItemHoverBg:R}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:i,background:s,[`&${n}-root:focus-visible`]:Object.assign({},D(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:i,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},D(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:L},"&:active":{backgroundColor:A}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:L},"&:active":{backgroundColor:A}}},[`${n}-item-danger`]:{color:k,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:_}},[`&${n}-item:active`]:{background:P}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:T},[`&${n}-popup > ${n}`]:{backgroundColor:M},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:M},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:B,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${(0,S.bf)(u)} solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:u,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:I,"&:hover":{backgroundColor:I},"&::after":{borderBottomWidth:u,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${(0,S.bf)(d)} ${b} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,S.bf)(h)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${f}`,`opacity ${v} ${f}`].join(",")}}}}}};const I=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:i,padding:r,menuArrowSize:o,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(o).add(r).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:(0,S.bf)(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:i,marginBlock:s,width:l},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:(0,S.bf)(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}};var B=e=>{const{componentCls:t,iconCls:n,itemHeight:i,colorTextLightSolid:r,dropdownWidth:o,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:h,motionDurationSlow:d,paddingXS:p,boxShadowSecondary:f,collapsedWidth:g,collapsedIconSize:m}=e,v={height:i,lineHeight:(0,S.bf)(i),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},I(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},I(e)),{boxShadow:f})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${(0,S.bf)(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${d}`,`background ${d}`,`padding ${h} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,S.bf)(e.calc(m).div(2).equal())} - ${(0,S.bf)(c)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:(0,S.bf)(i),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},_.vS),{paddingInline:p})}}]};const R=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:i,motionEaseInOut:r,motionEaseOut:o,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${r}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${i} ${o}`,`margin ${n} ${r}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${r}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},(0,_.Ro)()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},O=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:i,borderRadius:r,menuArrowSize:o,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${i}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${i}`,`transform ${n} ${i}`,`top ${n} ${i}`,`color ${n} ${i}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,S.bf)(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,S.bf)(a)})`}}}}},F=e=>{const{antCls:t,componentCls:n,fontSize:i,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:h,borderRadiusLG:d,subMenuItemBorderRadius:p,menuArrowSize:f,menuArrowOffset:g,lineType:m,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},(0,_.dF)()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_.Wf)(e)),(0,_.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:i,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${(0,S.bf)(s)} ${(0,S.bf)(l)}`,fontSize:y,lineHeight:v,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:m,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),R(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${(0,S.bf)(e.calc(i).mul(2).equal())} ${(0,S.bf)(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:h,borderRadius:d,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:d},R(e)),O(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),O(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,S.bf)(g)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,S.bf)(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${(0,S.bf)(e.calc(f).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,S.bf)(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,S.bf)(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},z=e=>{var t,n,i;const{colorPrimary:r,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:h,colorFillContent:d,lineWidth:p,lineWidthBold:f,controlItemBgActive:g,colorBgTextHover:m,controlHeightLG:v,lineHeight:y,colorBgElevated:b,marginXXS:w,padding:x,fontSize:S,controlHeightSM:_,fontSizeLG:C,colorTextLightSolid:P,colorErrorHover:E}=e,M=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,L=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,A=null!==(i=e.itemMarginInline)&&void 0!==i?i:e.marginXXS,T=new k.t(P).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:r,itemSelectedColor:r,subMenuItemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:u,itemBg:u,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:d,itemActiveBg:g,colorSubItemBg:h,subMenuItemBg:h,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:f,activeBarHeight:f,colorActiveBarBorderSize:p,activeBarBorderWidth:L,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:A,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:y,collapsedWidth:2*v,popupBg:b,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:1.15*v+"px",iconSize:S,iconMarginInlineEnd:_-S,collapsedIconSize:C,groupTitleFontSize:S,darkItemDisabledColor:new k.t(P).setA(.25).toRgbString(),darkItemColor:T,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:P,darkItemSelectedBg:r,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:T,darkItemHoverColor:P,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:P,darkDangerItemActiveBg:o,itemWidth:M?`calc(100% + ${L}px)`:`calc(100% - ${2*A}px)`}};var j=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=(0,M.I$)("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:i,darkItemColor:r,darkDangerItemColor:o,darkItemBg:a,darkSubMenuItemBg:s,darkItemSelectedColor:l,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:h,darkGroupTitleColor:d,darkItemHoverColor:p,darkItemDisabledColor:f,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:m,darkDangerItemActiveBg:v,popupBg:y,darkPopupBg:b}=e,w=e.calc(i).div(7).mul(5).equal(),x=(0,L.IX)(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:y}),S=(0,L.IX)(x,{itemColor:r,itemHoverColor:p,groupTitleColor:d,itemSelectedColor:l,subMenuItemSelectedColor:l,itemBg:a,popupBg:b,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:f,dangerItemColor:o,dangerItemHoverColor:g,dangerItemSelectedColor:m,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[F(x),A(x),B(x),N(x,"light"),N(S,"dark"),T(x),(0,C.Z)(x),(0,P.oN)(x,"slide-up"),(0,P.oN)(x,"slide-down"),(0,E._y)(x,"zoom-big")]}),z,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}});return i(e,t)},$=n(75030);var H=e=>{var t;const{popupClassName:n,icon:o,title:a,theme:s}=e,c=i.useContext(g),{prefixCls:h,inlineCollapsed:p,theme:f}=c,m=(0,r.Xl)();let v;if(o){const e=i.isValidElement(a)&&"span"===a.type;v=i.createElement(i.Fragment,null,(0,d.Tm)(o,{className:l()(i.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${h}-item-icon`)}),e?a:i.createElement("span",{className:`${h}-title-content`},a))}else v=p&&!m.length&&a&&"string"==typeof a?i.createElement("div",{className:`${h}-inline-collapsed-noicon`},a.charAt(0)):i.createElement("span",{className:`${h}-title-content`},a);const y=i.useMemo((()=>Object.assign(Object.assign({},c),{firstLevel:!1})),[c]),[b]=(0,$.Cn)("Menu");return i.createElement(g.Provider,{value:y},i.createElement(r.Wd,Object.assign({},(0,u.Z)(e,["icon"]),{title:v,popupClassName:l()(h,n,`${h}-${s||f}`),popupStyle:Object.assign({zIndex:b},e.popupStyle)})))},Z=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var n;const o=i.useContext(x.Z),s=o||{},{getPrefixCls:m,getPopupContainer:v,direction:y,menu:b}=i.useContext(p.E_),w=m(),{prefixCls:S,className:k,style:_,theme:C="light",expandIcon:P,_internalDisableMenuItemTitleTooltip:E,inlineCollapsed:M,siderCollapsed:L,rootClassName:A,mode:T,selectable:D,onClick:N,overflowedIndicatorPopupClassName:I}=e,B=Z(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),R=(0,u.Z)(B,["collapsedWidth"]);null===(n=s.validator)||void 0===n||n.call(s,{mode:T});const O=(0,c.Z)((function(){var e;null==N||N.apply(void 0,arguments),null===(e=s.onClick)||void 0===e||e.call(s)})),F=s.mode||T,z=null!=D?D:s.selectable,$=null!=M?M:L,H={horizontal:{motionName:`${w}-slide-up`},inline:(0,h.Z)(w),other:{motionName:`${w}-zoom-big`}},U=m("menu",S||s.prefixCls),V=(0,f.Z)(U),[W,q,Y]=j(U,V,!o),X=l()(`${U}-${C}`,null==b?void 0:b.className,k),Q=i.useMemo((()=>{var e,t;if("function"==typeof P||K(P))return P||null;if("function"==typeof s.expandIcon||K(s.expandIcon))return s.expandIcon||null;if("function"==typeof(null==b?void 0:b.expandIcon)||K(null==b?void 0:b.expandIcon))return(null==b?void 0:b.expandIcon)||null;const n=null!==(e=null!=P?P:null==s?void 0:s.expandIcon)&&void 0!==e?e:null==b?void 0:b.expandIcon;return(0,d.Tm)(n,{className:l()(`${U}-submenu-expand-icon`,i.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[P,null==s?void 0:s.expandIcon,null==b?void 0:b.expandIcon,U]),J=i.useMemo((()=>({prefixCls:U,inlineCollapsed:$||!1,direction:y,firstLevel:!0,theme:C,mode:F,disableMenuItemTitleTooltip:E})),[U,$,y,E,C]);return W(i.createElement(x.Z.Provider,{value:null},i.createElement(g.Provider,{value:J},i.createElement(r.ZP,Object.assign({getPopupContainer:v,overflowedIndicator:i.createElement(a.Z,null),overflowedIndicatorPopupClassName:l()(U,`${U}-${C}`,I),mode:F,selectable:z,onClick:O},R,{inlineCollapsed:$,style:Object.assign(Object.assign({},null==b?void 0:b.style),_),className:X,prefixCls:U,direction:y,defaultMotions:H,expandIcon:Q,ref:t,rootClassName:l()(A,q,s.rootClassName,Y,V),_internalComponents:G})))))}));var V=U;const W=(0,i.forwardRef)(((e,t)=>{const n=(0,i.useRef)(null),r=i.useContext(o.D);return(0,i.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),i.createElement(V,Object.assign({ref:n},e,r))}));W.Item=w,W.SubMenu=H,W.Divider=v,W.ItemGroup=r.BW;var q=W},98012:function(e,t,n){"use strict";n.d(t,{Z:function(){return se}});var i=n(59301),r=n(14809),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},a=n(7657),s=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var l=i.forwardRef(s),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},u=function(e,t){return i.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:c}))};var h=i.forwardRef(u),d=n(33853),p=n(38819),f=n(92310),g=n.n(f),m=n(4635),v=n(93664),y=n(20439),b=n(50298),w=n(18929),x=n(10228),S=n(26112),k=(n(48736),n(17119)),_=[10,20,50,100];var C=function(e){var t=e.pageSizeOptions,n=void 0===t?_:t,r=e.locale,o=e.changeSize,a=e.pageSize,s=e.goButton,l=e.quickGo,c=e.rootPrefixCls,u=e.disabled,h=e.buildOptionText,d=e.showSizeChanger,p=e.sizeChangerRender,f=i.useState(""),g=(0,b.Z)(f,2),m=g[0],v=g[1],y=function(){return!m||Number.isNaN(m)?void 0:Number(m)},w="function"==typeof h?h:function(e){return"".concat(e," ").concat(r.items_per_page)},S=function(e){""!==m&&(e.keyCode!==x.Z.ENTER&&"click"!==e.type||(v(""),null==l||l(y())))},k="".concat(c,"-options");if(!d&&!l)return null;var C=null,P=null,E=null;return d&&p&&(C=p({disabled:u,size:a,onSizeChange:function(e){null==o||o(Number(e))},"aria-label":r.page_size,className:"".concat(k,"-size-changer"),options:(n.some((function(e){return e.toString()===a.toString()}))?n:n.concat([a]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e){return{label:w(e),value:e}}))})),l&&(s&&(E="boolean"==typeof s?i.createElement("button",{type:"button",onClick:S,onKeyUp:S,disabled:u,className:"".concat(k,"-quick-jumper-button")},r.jump_to_confirm):i.createElement("span",{onClick:S,onKeyUp:S},s)),P=i.createElement("div",{className:"".concat(k,"-quick-jumper")},r.jump_to,i.createElement("input",{disabled:u,type:"text",value:m,onChange:function(e){v(e.target.value)},onKeyUp:S,onBlur:function(e){s||""===m||(v(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(c,"-item"))>=0)||null==l||l(y()))},"aria-label":r.page}),r.page,E)),i.createElement("li",{className:k},C,P)};var P=function(e){var t=e.rootPrefixCls,n=e.page,r=e.active,o=e.className,a=e.showTitle,s=e.onClick,l=e.onKeyPress,c=e.itemRender,u="".concat(t,"-item"),h=g()(u,"".concat(u,"-").concat(n),(0,m.Z)((0,m.Z)({},"".concat(u,"-active"),r),"".concat(u,"-disabled"),!n),o),d=c(n,"page",i.createElement("a",{rel:"nofollow"},n));return d?i.createElement("li",{title:a?String(n):null,className:h,onClick:function(){s(n)},onKeyDown:function(e){l(e,s,n)},tabIndex:0},d):null},E=function(e,t,n){return n};function M(){}function L(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function A(e,t,n){var i=void 0===e?t:e;return Math.floor((n-1)/i)+1}var T=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,o=e.selectPrefixCls,a=void 0===o?"rc-select":o,s=e.className,l=e.current,c=e.defaultCurrent,u=void 0===c?1:c,h=e.total,d=void 0===h?0:h,p=e.pageSize,f=e.defaultPageSize,_=void 0===f?10:f,T=e.onChange,D=void 0===T?M:T,N=e.hideOnSinglePage,I=e.align,B=e.showPrevNextJumpers,R=void 0===B||B,O=e.showQuickJumper,F=e.showLessItems,z=e.showTitle,j=void 0===z||z,$=e.onShowSizeChange,H=void 0===$?M:$,Z=e.locale,K=void 0===Z?k.Z:Z,G=e.style,U=e.totalBoundaryShowSizeChanger,V=void 0===U?50:U,W=e.disabled,q=e.simple,Y=e.showTotal,X=e.showSizeChanger,Q=void 0===X?d>V:X,J=e.sizeChangerRender,ee=e.pageSizeOptions,te=e.itemRender,ne=void 0===te?E:te,ie=e.jumpPrevIcon,re=e.jumpNextIcon,oe=e.prevIcon,ae=e.nextIcon,se=i.useRef(null),le=(0,w.Z)(10,{value:p,defaultValue:_}),ce=(0,b.Z)(le,2),ue=ce[0],he=ce[1],de=(0,w.Z)(1,{value:l,defaultValue:u,postState:function(e){return Math.max(1,Math.min(e,A(void 0,ue,d)))}}),pe=(0,b.Z)(de,2),fe=pe[0],ge=pe[1],me=i.useState(fe),ve=(0,b.Z)(me,2),ye=ve[0],be=ve[1];(0,i.useEffect)((function(){be(fe)}),[fe]);var we=Math.max(1,fe-(F?3:5)),xe=Math.min(A(void 0,ue,d),fe+(F?3:5));function Se(t,r){var o=t||i.createElement("button",{type:"button","aria-label":r,className:"".concat(n,"-item-link")});return"function"==typeof t&&(o=i.createElement(t,(0,y.Z)({},e))),o}function ke(e){var t=e.target.value,n=A(void 0,ue,d);return""===t?t:Number.isNaN(Number(t))?ye:t>=n?n:Number(t)}var _e=d>ue&&O;function Ce(e){var t=ke(e);switch(t!==ye&&be(t),e.keyCode){case x.Z.ENTER:Pe(t);break;case x.Z.UP:Pe(t-1);break;case x.Z.DOWN:Pe(t+1)}}function Pe(e){if(function(e){return L(e)&&e!==fe&&L(d)&&d>0}(e)&&!W){var t=A(void 0,ue,d),n=e;return e>t?n=t:e<1&&(n=1),n!==ye&&be(n),ge(n),null==D||D(n,ue),n}return fe}var Ee=fe>1,Me=fe2?n-2:0),r=2;rd?d:fe*ue])),Fe=null,ze=A(void 0,ue,d);if(N&&d<=ue)return null;var je=[],$e={rootPrefixCls:n,onClick:Pe,onKeyPress:Ne,showTitle:j,itemRender:ne,page:-1},He=fe-1>0?fe-1:0,Ze=fe+1=2*We&&3!==fe&&(je[0]=i.cloneElement(je[0],{className:g()("".concat(n,"-item-after-jump-prev"),je[0].props.className)}),je.unshift(Be)),ze-fe>=2*We&&fe!==ze-2){var it=je[je.length-1];je[je.length-1]=i.cloneElement(it,{className:g()("".concat(n,"-item-before-jump-next"),it.props.className)}),je.push(Fe)}1!==et&&je.unshift(i.createElement(P,(0,r.Z)({},$e,{key:1,page:1}))),tt!==ze&&je.push(i.createElement(P,(0,r.Z)({},$e,{key:ze,page:ze})))}var rt=function(e){var t=ne(e,"prev",Se(oe,"prev page"));return i.isValidElement(t)?i.cloneElement(t,{disabled:!Ee}):t}(He);if(rt){var ot=!Ee||!ze;rt=i.createElement("li",{title:j?K.prev_page:null,onClick:Le,tabIndex:ot?null:0,onKeyDown:function(e){Ne(e,Le)},className:g()("".concat(n,"-prev"),(0,m.Z)({},"".concat(n,"-disabled"),ot)),"aria-disabled":ot},rt)}var at,st,lt=function(e){var t=ne(e,"next",Se(ae,"next page"));return i.isValidElement(t)?i.cloneElement(t,{disabled:!Me}):t}(Ze);lt&&(q?(at=!Me,st=Ee?0:null):st=(at=!Me||!ze)?null:0,lt=i.createElement("li",{title:j?K.next_page:null,onClick:Ae,tabIndex:st,onKeyDown:function(e){Ne(e,Ae)},className:g()("".concat(n,"-next"),(0,m.Z)({},"".concat(n,"-disabled"),at)),"aria-disabled":at},lt));var ct=g()(n,s,(0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)({},"".concat(n,"-start"),"start"===I),"".concat(n,"-center"),"center"===I),"".concat(n,"-end"),"end"===I),"".concat(n,"-simple"),q),"".concat(n,"-disabled"),W));return i.createElement("ul",(0,r.Z)({className:ct,style:G,ref:se},Re),Oe,rt,q?Ve:je,lt,i.createElement(C,{locale:K,rootPrefixCls:n,disabled:W,selectPrefixCls:a,changeSize:function(e){var t=A(e,ue,d),n=fe>t&&0!==t?t:fe;he(e),be(n),null==H||H(fe,e),ge(n),null==D||D(n,e)},pageSize:ue,pageSizeOptions:ee,quickGo:_e?Pe:null,goButton:Ue,showSizeChanger:Q,sizeChangerRender:J}))},D=n(61852),N=n(48755),I=n(31756),B=n(13783),R=n(9017),O=n(75914),F=n(57700),z=n(66604),j=n(53075),$=n(64910),H=n(39082),Z=n(63356),K=n(51636),G=n(16931);const U=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},V=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:(0,z.bf)(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,z.bf)(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,z.bf)(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:(0,z.bf)(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:(0,z.bf)(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:(0,z.bf)(e.itemSizeSM),input:Object.assign(Object.assign({},(0,j.x0)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},W=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:(0,z.bf)(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:(0,z.bf)(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,z.bf)(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${(0,z.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${(0,z.bf)(e.inputOutlineOffset)} 0 ${(0,z.bf)(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},q=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:(0,z.bf)(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,z.bf)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:(0,z.bf)(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,j.ik)(e)),(0,H.$U)(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},(0,H.Xy)(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Y=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:(0,z.bf)(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${(0,z.bf)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,z.bf)(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},X=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Z.Wf)(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:(0,z.bf)(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Y(e)),q(e)),W(e)),V(e)),U(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Q=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,Z.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,Z.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,Z.oN)(e))}}}},J=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},(0,$.T)(e)),ee=e=>(0,K.IX)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,$.e)(e));var te=(0,G.I$)("Pagination",(e=>{const t=ee(e);return[X(t),Q(t)]}),J);const ne=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${(0,z.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}};var ie=(0,G.bk)(["Pagination","bordered"],(e=>{const t=ee(e);return[ne(t)]}),J);function re(e){return(0,i.useMemo)((()=>"boolean"==typeof e?[e,{}]:e&&"object"==typeof e?[!0,e]:[void 0,void 0]),[e])}var oe=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:a,style:s,size:c,locale:u,responsive:f,showSizeChanger:m,selectComponentClass:v,pageSizeOptions:y}=e,b=oe(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:w}=(0,B.Z)(f),[,x]=(0,F.ZP)(),{getPrefixCls:S,direction:k,showSizeChanger:_,className:C,style:P}=(0,N.dj)("pagination"),E=S("pagination",n),[M,L,A]=te(E),z=(0,I.Z)(c),j="small"===z||!(!w||z||!f),[$]=(0,R.Z)("Pagination",D.Z),H=Object.assign(Object.assign({},$),u),[Z,K]=re(m),[G,U]=re(_),V=null!=Z?Z:G,W=null!=K?K:U,q=v||O.default,Y=i.useMemo((()=>y?y.map((e=>Number(e))):void 0),[y]);const X=i.useMemo((()=>{const e=i.createElement("span",{className:`${E}-item-ellipsis`},"•••");return{prevIcon:i.createElement("button",{className:`${E}-item-link`,type:"button",tabIndex:-1},"rtl"===k?i.createElement(p.Z,null):i.createElement(d.Z,null)),nextIcon:i.createElement("button",{className:`${E}-item-link`,type:"button",tabIndex:-1},"rtl"===k?i.createElement(d.Z,null):i.createElement(p.Z,null)),jumpPrevIcon:i.createElement("a",{className:`${E}-item-link`},i.createElement("div",{className:`${E}-item-container`},"rtl"===k?i.createElement(h,{className:`${E}-item-link-icon`}):i.createElement(l,{className:`${E}-item-link-icon`}),e)),jumpNextIcon:i.createElement("a",{className:`${E}-item-link`},i.createElement("div",{className:`${E}-item-container`},"rtl"===k?i.createElement(l,{className:`${E}-item-link-icon`}):i.createElement(h,{className:`${E}-item-link-icon`}),e))}}),[k,E]),Q=S("select",r),J=g()({[`${E}-${t}`]:!!t,[`${E}-mini`]:j,[`${E}-rtl`]:"rtl"===k,[`${E}-bordered`]:x.wireframe},C,o,a,L,A),ee=Object.assign(Object.assign({},P),s);return M(i.createElement(i.Fragment,null,x.wireframe&&i.createElement(ie,{prefixCls:E}),i.createElement(T,Object.assign({},X,b,{style:ee,prefixCls:E,selectPrefixCls:Q,className:J,locale:H,pageSizeOptions:Y,showSizeChanger:V,sizeChangerRender:e=>{var t;const{disabled:n,size:r,onSizeChange:o,"aria-label":a,className:s,options:l}=e,{className:c,onChange:u}=W||{},h=null===(t=l.find((e=>String(e.value)===String(r))))||void 0===t?void 0:t.value;return i.createElement(q,Object.assign({disabled:n,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":a,options:l},W,{value:h,onChange:(e,t)=>{null==o||o(e),null==u||u(e,t)},size:j?"small":"middle",className:g()(s,c)}))}}))))},se=ae},47889:function(e,t,n){"use strict";n.d(t,{ZP:function(){return $}});var i=n(59301),r=n(92310),o=n.n(r),a=n(18929),s=n(26112),l=n(48755),c=n(83397),u=n(31756);const h=i.createContext(null),d=h.Provider;var p=h;const f=i.createContext(null),g=f.Provider;var m=n(16632),v=n(8654),y=n(12919),b=n(63872),w=n(74632),x=n(2171),S=n(56553),k=n(66604),_=n(63356),C=n(16931),P=n(51636);const E=e=>{const{componentCls:t,antCls:n}=e,i=`${t}-group`;return{[i]:Object.assign(Object.assign({},(0,_.Wf)(e)),{display:"inline-block",fontSize:0,[`&${i}-rtl`]:{direction:"rtl"},[`&${i}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},M=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:i,radioSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:h,colorTextDisabled:d,paddingXS:p,dotColorDisabled:f,lineType:g,radioColor:m,radioBgColor:v,calc:y}=e,b=`${t}-inner`,w=y(r).sub(y(4).mul(2)),x=y(1).mul(r).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,_.Wf)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,k.bf)(u)} ${g} ${i}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},(0,_.Wf)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${b}`]:{borderColor:i},[`${t}-input:focus-visible + ${b}`]:Object.assign({},(0,_.oN)(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:y(1).mul(r).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(r).div(-2).equal({unit:!0}),backgroundColor:m,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:i,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(r).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:h,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:f}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:d,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${y(w).div(r).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},L=e=>{const{buttonColor:t,controlHeight:n,componentCls:i,lineWidth:r,lineType:o,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:h,fontSizeLG:d,controlHeightLG:p,controlHeightSM:f,paddingXS:g,borderRadius:m,borderRadiusSM:v,borderRadiusLG:y,buttonCheckedBg:b,buttonSolidCheckedColor:w,colorTextDisabled:x,colorBgContainerDisabled:S,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:P,colorPrimary:E,colorPrimaryHover:M,colorPrimaryActive:L,buttonSolidCheckedBg:A,buttonSolidCheckedHoverBg:T,buttonSolidCheckedActiveBg:D,calc:N}=e;return{[`${i}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:(0,k.bf)(N(n).sub(N(r).mul(2)).equal()),background:h,border:`${(0,k.bf)(r)} ${o} ${a}`,borderBlockStartWidth:N(r).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${i}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:N(r).mul(-1).equal(),insetInlineStart:N(r).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,k.bf)(r)} ${o} ${a}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${i}-group-large &`]:{height:p,fontSize:d,lineHeight:(0,k.bf)(N(p).sub(N(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${i}-group-small &`]:{height:f,paddingInline:N(g).sub(r).equal(),paddingBlock:0,lineHeight:(0,k.bf)(N(f).sub(N(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},(0,_.oN)(e)),[`${i}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${i}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:b,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:M,borderColor:M,"&::before":{backgroundColor:M}},"&:active":{color:L,borderColor:L,"&::before":{backgroundColor:L}}},[`${i}-group-solid &-checked:not(${i}-button-wrapper-disabled)`]:{color:w,background:A,borderColor:A,"&:hover":{color:w,background:T,borderColor:T},"&:active":{color:w,background:D,borderColor:D}},"&-disabled":{color:x,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:S,borderColor:a}},[`&-disabled${i}-button-wrapper-checked`]:{color:P,backgroundColor:C,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}};var A=(0,C.I$)("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,i=`0 0 0 ${(0,k.bf)(n)} ${t}`,r=i,o=(0,P.IX)(e,{radioFocusShadow:i,radioButtonFocusShadow:r});return[E(o),M(o),L(o)]}),(e=>{const{wireframe:t,padding:n,marginXS:i,lineWidth:r,fontSizeLG:o,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:h,colorPrimaryHover:d,colorPrimaryActive:p,colorWhite:f}=e;return{radioSize:o,dotSize:t?o-8:o-2*(4+r),dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:h,buttonSolidCheckedHoverBg:d,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-r,wrapperMarginInlineEnd:i,radioColor:t?h:f,radioBgColor:t?s:h}}),{unitless:{radioSize:!0,dotSize:!0}}),T=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var n,r;const a=i.useContext(p),s=i.useContext(f),{getPrefixCls:u,direction:h,radio:d}=i.useContext(l.E_),g=i.useRef(null),k=(0,v.sQ)(t,g),{isFormItemInput:_}=i.useContext(S.aM);const C=t=>{var n,i;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(i=null==a?void 0:a.onChange)||void 0===i||i.call(a,t)},{prefixCls:P,className:E,rootClassName:M,children:L,style:D,title:N}=e,I=T(e,["prefixCls","className","rootClassName","children","style","title"]),B=u("radio",P),R="button"===((null==a?void 0:a.optionType)||s),O=R?`${B}-button`:B,F=(0,c.Z)(B),[z,j,$]=A(B,F),H=Object.assign({},I),Z=i.useContext(x.Z);a&&(H.name=a.name,H.onChange=C,H.checked=e.value===a.value,H.disabled=null!==(n=H.disabled)&&void 0!==n?n:a.disabled),H.disabled=null!==(r=H.disabled)&&void 0!==r?r:Z;const K=o()(`${O}-wrapper`,{[`${O}-wrapper-checked`]:H.checked,[`${O}-wrapper-disabled`]:H.disabled,[`${O}-wrapper-rtl`]:"rtl"===h,[`${O}-wrapper-in-form-item`]:_,[`${O}-wrapper-block`]:!!(null==a?void 0:a.block)},null==d?void 0:d.className,E,M,j,$,F),[G,U]=(0,w.Z)(H.onClick);return z(i.createElement(y.Z,{component:"Radio",disabled:H.disabled},i.createElement("label",{className:K,style:Object.assign(Object.assign({},null==d?void 0:d.style),D),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:N,onClick:G},i.createElement(m.Z,Object.assign({},H,{className:o()(H.className,{[b.A]:!R}),type:"radio",prefixCls:O,ref:k,onClick:U})),void 0!==L?i.createElement("span",{className:`${O}-label`},L):null)))};var N=i.forwardRef(D),I=n(80402);const B=i.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=i.useContext(l.E_),h=(0,I.Z)(),{prefixCls:p,className:f,rootClassName:g,options:m,buttonStyle:v="outline",disabled:y,children:b,size:w,style:x,id:S,optionType:k,name:_=h,defaultValue:C,value:P,block:E=!1,onChange:M,onMouseEnter:L,onMouseLeave:T,onFocus:D,onBlur:B}=e,[R,O]=(0,a.Z)(C,{value:P}),F=i.useCallback((t=>{const n=R,i=t.target.value;"value"in e||O(i),i!==n&&(null==M||M(t))}),[R,O,M]),z=n("radio",p),j=`${z}-group`,$=(0,c.Z)(z),[H,Z,K]=A(z,$);let G=b;m&&m.length>0&&(G=m.map((e=>"string"==typeof e||"number"==typeof e?i.createElement(N,{key:e.toString(),prefixCls:z,disabled:y,value:e,checked:R===e},e):i.createElement(N,{key:`radio-group-value-options-${e.value}`,prefixCls:z,disabled:e.disabled||y,value:e.value,checked:R===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const U=(0,u.Z)(w),V=o()(j,`${j}-${v}`,{[`${j}-${U}`]:U,[`${j}-rtl`]:"rtl"===r,[`${j}-block`]:E},f,g,Z,K,$),W=i.useMemo((()=>({onChange:F,value:R,disabled:y,name:_,optionType:k,block:E})),[F,R,y,_,k,E]);return H(i.createElement("div",Object.assign({},(0,s.Z)(e,{aria:!0,data:!0}),{className:V,style:x,onMouseEnter:L,onMouseLeave:T,onFocus:D,onBlur:B,id:S,ref:t}),i.createElement(d,{value:W},G)))}));var R=i.memo(B),O=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n}=i.useContext(l.E_),{prefixCls:r}=e,o=O(e,["prefixCls"]),a=n("radio",r);return i.createElement(g,{value:"button"},i.createElement(N,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))};var z=i.forwardRef(F);const j=N;j.Button=z,j.Group=R,j.__ANT_RADIO=!0;var $=j},77019:function(e,t,n){"use strict";var i=n(65970);t.Z=i.Z},75914:function(e,t,n){"use strict";n.d(t,{default:function(){return St}});var i=n(59301),r=n(92310),o=n.n(r),a=n(14809),s=n(95190),l=n(4635),c=n(20439),u=n(50298),h=n(62646),d=n(93664),p=n(18929),f=n(48736),g=n(34280),m=n(49658),v=n(8654),y=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,a=e.children,s=e.onMouseDown,l=e.onClick,c="function"==typeof n?n(r):n;return i.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==s||s(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==c?c:i.createElement("span",{className:o()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},a))},b=i.createContext(null);function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=i.useRef(null),n=i.useRef(null);function r(i){(i||null===t.current)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return i.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var x=n(10228);var S=n(26112),k=n(11780);var _=function(e,t,n){var i=(0,c.Z)((0,c.Z)({},e),n?t:{});return Object.keys(t).forEach((function(n){var r=t[n];"function"==typeof r&&(i[n]=function(){for(var t,i=arguments.length,o=new Array(i),a=0;aM&&(o="".concat(a.slice(0,M),"..."))}var s=function(t){t&&t.stopPropagation(),O(e)};return"function"==typeof B?re(i,o,t,r,s):ie(e,o,t,r,s)},renderRest:function(e){if(!s.length)return null;var t="function"==typeof I?I(e):I;return"function"==typeof B?re(void 0,t,!1,!1,void 0,!0):ie({title:t},t,!1)},suffix:oe,itemKey:D,maxCount:P});return i.createElement("span",{className:"".concat(ee,"-wrap")},ae,!s.length&&!te&&i.createElement("span",{className:"".concat(ee,"-placeholder")},f))},B=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,a=e.disabled,s=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,h=e.mode,d=e.open,p=e.values,f=e.placeholder,g=e.tabIndex,m=e.showSearch,v=e.searchValue,y=e.activeValue,b=e.maxLength,w=e.onInputKeyDown,x=e.onInputMouseDown,k=e.onInputChange,_=e.onInputPaste,C=e.onInputCompositionStart,P=e.onInputCompositionEnd,M=e.onInputBlur,L=e.title,A=i.useState(!1),D=(0,u.Z)(A,2),N=D[0],I=D[1],B="combobox"===h,R=B||m,O=p[0],F=v||"";B&&y&&!N&&(F=y),i.useEffect((function(){B&&I(!1)}),[B,y]);var z=!("combobox"!==h&&!d&&!m)&&!!F,j=void 0===L?T(O):L,$=i.useMemo((function(){return O?null:i.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:z?{visibility:"hidden"}:void 0},f)}),[O,z,f,n]);return i.createElement("span",{className:"".concat(n,"-selection-wrap")},i.createElement("span",{className:"".concat(n,"-selection-search")},i.createElement(E,{ref:o,prefixCls:n,id:r,open:d,inputElement:t,disabled:a,autoFocus:s,autoComplete:l,editable:R,activeDescendantId:c,value:F,onKeyDown:w,onMouseDown:x,onChange:function(e){I(!0),k(e)},onPaste:_,onCompositionStart:C,onCompositionEnd:P,onBlur:M,tabIndex:g,attrs:(0,S.Z)(e,!0),maxLength:B?b:void 0})),!B&&O?i.createElement("span",{className:"".concat(n,"-selection-item"),title:j,style:z?{visibility:"hidden"}:void 0},O.label):null,$)},R=function(e,t){var n=(0,i.useRef)(null),r=(0,i.useRef)(!1),o=e.prefixCls,s=e.open,l=e.mode,c=e.showSearch,h=e.tokenWithEnter,d=e.disabled,p=e.prefix,f=e.autoClearSearchValue,g=e.onSearch,m=e.onSearchSubmit,v=e.onToggleOpen,y=e.onInputKeyDown,b=e.onInputBlur,S=e.domRef;i.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var k=w(0),_=(0,u.Z)(k,2),C=_[0],P=_[1],E=(0,i.useRef)(null),M=function(e){!1!==g(e,!0,r.current)&&v(!0)},L={inputRef:n,onInputKeyDown:function(e){var t,i=e.which,o=n.current instanceof HTMLTextAreaElement;(o||!s||i!==x.Z.UP&&i!==x.Z.DOWN||e.preventDefault(),y&&y(e),i!==x.Z.ENTER||"tags"!==l||r.current||s||null==m||m(e.target.value),o&&!s&&~[x.Z.UP,x.Z.DOWN,x.Z.LEFT,x.Z.RIGHT].indexOf(i))||(t=i)&&![x.Z.ESC,x.Z.SHIFT,x.Z.BACKSPACE,x.Z.TAB,x.Z.WIN_KEY,x.Z.ALT,x.Z.META,x.Z.WIN_KEY_RIGHT,x.Z.CTRL,x.Z.SEMICOLON,x.Z.EQUALS,x.Z.CAPS_LOCK,x.Z.CONTEXT_MENU,x.Z.F1,x.Z.F2,x.Z.F3,x.Z.F4,x.Z.F5,x.Z.F6,x.Z.F7,x.Z.F8,x.Z.F9,x.Z.F10,x.Z.F11,x.Z.F12].includes(t)&&v(!0)},onInputMouseDown:function(){P(!0)},onInputChange:function(e){var t=e.target.value;if(h&&E.current&&/[\r\n]/.test(E.current)){var n=E.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,E.current)}E.current=null,M(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");E.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==l&&M(e.target.value)},onInputBlur:b},A="multiple"===l||"tags"===l?i.createElement(I,(0,a.Z)({},e,L)):i.createElement(B,(0,a.Z)({},e,L));return i.createElement("div",{ref:S,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=C();e.target===n.current||t||"combobox"===l&&d||e.preventDefault(),("combobox"===l||c&&t)&&s||(s&&!1!==f&&g("",!0,!1),v())}},p&&i.createElement("div",{className:"".concat(o,"-prefix")},p),A)};var O=i.forwardRef(R),F=n(65352),z=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],j=function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),s=e.children,u=e.popupElement,d=e.animation,p=e.transitionName,f=e.dropdownStyle,g=e.dropdownClassName,m=e.direction,v=void 0===m?"ltr":m,y=e.placement,b=e.builtinPlacements,w=e.dropdownMatchSelectWidth,x=e.dropdownRender,S=e.dropdownAlign,k=e.getPopupContainer,_=e.empty,C=e.getTriggerDOMNode,P=e.onPopupVisibleChange,E=e.onPopupMouseEnter,M=(0,h.Z)(e,z),L="".concat(n,"-dropdown"),A=u;x&&(A=x(u));var T=i.useMemo((function(){return b||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(w)}),[b,w]),D=d?"".concat(L,"-").concat(d):p,N="number"==typeof w,I=i.useMemo((function(){return N?null:!1===w?"minWidth":"width"}),[w,N]),B=f;N&&(B=(0,c.Z)((0,c.Z)({},B),{},{width:w}));var R=i.useRef(null);return i.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=R.current)||void 0===e?void 0:e.popupElement}}})),i.createElement(F.Z,(0,a.Z)({},M,{showAction:P?["click"]:[],hideAction:P?["click"]:[],popupPlacement:y||("rtl"===v?"bottomRight":"bottomLeft"),builtinPlacements:T,prefixCls:L,popupTransitionName:D,popup:i.createElement("div",{onMouseEnter:E},A),ref:R,stretch:I,popupAlign:S,popupVisible:r,getPopupContainer:k,popupClassName:o()(g,(0,l.Z)({},"".concat(L,"-empty"),_)),popupStyle:B,getTriggerDOMNode:C,onPopupVisibleChange:P}),s)};var $=i.forwardRef(j),H=n(21696);function Z(e,t){var n,i=e.key;return"value"in e&&(n=e.value),null!=i?i:void 0!==n?n:"rc-index-key-".concat(t)}function K(e){return void 0!==e&&!Number.isNaN(e)}function G(e,t){var n=e||{},i=n.label||(t?"children":"label");return{label:i,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||i}}function U(e){var t=(0,c.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,f.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var V=i.createContext(null);function W(e){var t=e.visible,n=e.values;if(!t)return null;return i.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes((0,d.Z)(t))?t:n})).join(", ")),n.length>50?", ...":null)}var q=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Y=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],X=function(e){return"tags"===e||"multiple"===e},Q=i.forwardRef((function(e,t){var n,r=e.id,f=e.prefixCls,x=e.className,S=e.showSearch,k=e.tagRender,_=e.direction,C=e.omitDomProps,P=e.displayValues,E=e.onDisplayValuesChange,M=e.emptyOptions,L=e.notFoundContent,A=void 0===L?"Not Found":L,T=e.onClear,D=e.mode,N=e.disabled,I=e.loading,B=e.getInputElement,R=e.getRawInputElement,F=e.open,z=e.defaultOpen,j=e.onDropdownVisibleChange,Z=e.activeValue,G=e.onActiveValueChange,U=e.activeDescendantId,Q=e.searchValue,J=e.autoClearSearchValue,ee=e.onSearch,te=e.onSearchSplit,ne=e.tokenSeparators,ie=e.allowClear,re=e.prefix,oe=e.suffixIcon,ae=e.clearIcon,se=e.OptionList,le=e.animation,ce=e.transitionName,ue=e.dropdownStyle,he=e.dropdownClassName,de=e.dropdownMatchSelectWidth,pe=e.dropdownRender,fe=e.dropdownAlign,ge=e.placement,me=e.builtinPlacements,ve=e.getPopupContainer,ye=e.showAction,be=void 0===ye?[]:ye,we=e.onFocus,xe=e.onBlur,Se=e.onKeyUp,ke=e.onKeyDown,_e=e.onMouseDown,Ce=(0,h.Z)(e,q),Pe=X(D),Ee=(void 0!==S?S:Pe)||"combobox"===D,Me=(0,c.Z)({},Ce);Y.forEach((function(e){delete Me[e]})),null==C||C.forEach((function(e){delete Me[e]}));var Le=i.useState(!1),Ae=(0,u.Z)(Le,2),Te=Ae[0],De=Ae[1];i.useEffect((function(){De((0,m.Z)())}),[]);var Ne=i.useRef(null),Ie=i.useRef(null),Be=i.useRef(null),Re=i.useRef(null),Oe=i.useRef(null),Fe=i.useRef(!1),ze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=i.useState(!1),n=(0,u.Z)(t,2),r=n[0],o=n[1],a=i.useRef(null),s=function(){window.clearTimeout(a.current)};return i.useEffect((function(){return s}),[]),[r,function(t,n){s(),a.current=window.setTimeout((function(){o(t),n&&n()}),e)},s]}(),je=(0,u.Z)(ze,3),$e=je[0],He=je[1],Ze=je[2];i.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Re.current)||void 0===e?void 0:e.focus,blur:null===(t=Re.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Oe.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:Ne.current||Ie.current}}));var Ke=i.useMemo((function(){var e;if("combobox"!==D)return Q;var t=null===(e=P[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[Q,D,P]),Ge="combobox"===D&&"function"==typeof B&&B()||null,Ue="function"==typeof R&&R(),Ve=(0,v.x1)(Ie,null==Ue||null===(n=Ue.props)||void 0===n?void 0:n.ref),We=i.useState(!1),qe=(0,u.Z)(We,2),Ye=qe[0],Xe=qe[1];(0,g.Z)((function(){Xe(!0)}),[]);var Qe=(0,p.Z)(!1,{defaultValue:z,value:F}),Je=(0,u.Z)(Qe,2),et=Je[0],tt=Je[1],nt=!!Ye&&et,it=!A&&M;(N||it&&nt&&"combobox"===D)&&(nt=!1);var rt=!it&&nt,ot=i.useCallback((function(e){var t=void 0!==e?e:!nt;N||(tt(t),nt!==t&&(null==j||j(t)))}),[N,nt,tt,j]),at=i.useMemo((function(){return(ne||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ne]),st=i.useContext(V)||{},lt=st.maxCount,ct=st.rawValues,ut=function(e,t,n){if(!(Pe&&K(lt)&&(null==ct?void 0:ct.size)>=lt)){var i=!0,r=e;null==G||G(null);var o=function(e,t,n){if(!t||!t.length)return null;var i=!1,r=function e(t,n){var r=(0,H.Z)(n),o=r[0],a=r.slice(1);if(!o)return[t];var l=t.split(o);return i=i||l.length>1,l.reduce((function(t,n){return[].concat((0,s.Z)(t),(0,s.Z)(e(n,a)))}),[]).filter(Boolean)}(e,t);return i?void 0!==n?r.slice(0,n):r:null}(e,ne,K(lt)?lt-ct.size:void 0),a=n?null:o;return"combobox"!==D&&a&&(r="",null==te||te(a),ot(!1),i=!1),ee&&Ke!==r&&ee(r,{source:t?"typing":"effect"}),i}};i.useEffect((function(){nt||Pe||"combobox"===D||ut("",!1,!1)}),[nt]),i.useEffect((function(){et&&N&&tt(!1),N&&!Fe.current&&He(!1)}),[N]);var ht=w(),dt=(0,u.Z)(ht,2),pt=dt[0],ft=dt[1],gt=i.useRef(!1),mt=i.useRef(!1),vt=[];i.useEffect((function(){return function(){vt.forEach((function(e){return clearTimeout(e)})),vt.splice(0,vt.length)}}),[]);var yt,bt=i.useState({}),wt=(0,u.Z)(bt,2)[1];Ue&&(yt=function(e){ot(e)}),function(e,t,n,r){var o=i.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},i.useEffect((function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var i=t.target;i.shadowRoot&&t.composed&&(i=t.composedPath()[0]||i),o.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(i)&&e!==i}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Ne.current,null===(e=Be.current)||void 0===e?void 0:e.getPopupElement()]}),rt,ot,!!Ue);var xt,St=i.useMemo((function(){return(0,c.Z)((0,c.Z)({},e),{},{notFoundContent:A,open:nt,triggerOpen:rt,id:r,showSearch:Ee,multiple:Pe,toggleOpen:ot})}),[e,A,rt,nt,r,Ee,Pe,ot]),kt=!!oe||I;kt&&(xt=i.createElement(y,{className:o()("".concat(f,"-arrow"),(0,l.Z)({},"".concat(f,"-arrow-loading"),I)),customizeIcon:oe,customizeIconProps:{loading:I,searchValue:Ke,open:nt,focused:$e,showSearch:Ee}}));var _t,Ct=function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=i.useMemo((function(){return"object"===(0,d.Z)(r)?r.clearIcon:o||void 0}),[r,o]),u=i.useMemo((function(){return!(a||!r||!n.length&&!s||"combobox"===l&&""===s)}),[r,a,n.length,s,l]);return{allowClear:u,clearIcon:i.createElement(y,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}(f,(function(){var e;null==T||T(),null===(e=Re.current)||void 0===e||e.focus(),E([],{type:"clear",values:P}),ut("",!1,!1)}),P,ie,ae,N,Ke,D),Pt=Ct.allowClear,Et=Ct.clearIcon,Mt=i.createElement(se,{ref:Oe}),Lt=o()(f,x,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(f,"-focused"),$e),"".concat(f,"-multiple"),Pe),"".concat(f,"-single"),!Pe),"".concat(f,"-allow-clear"),ie),"".concat(f,"-show-arrow"),kt),"".concat(f,"-disabled"),N),"".concat(f,"-loading"),I),"".concat(f,"-open"),nt),"".concat(f,"-customize-input"),Ge),"".concat(f,"-show-search"),Ee)),At=i.createElement($,{ref:Be,disabled:N,prefixCls:f,visible:rt,popupElement:Mt,animation:le,transitionName:ce,dropdownStyle:ue,dropdownClassName:he,direction:_,dropdownMatchSelectWidth:de,dropdownRender:pe,dropdownAlign:fe,placement:ge,builtinPlacements:me,getPopupContainer:ve,empty:M,getTriggerDOMNode:function(e){return Ie.current||e},onPopupVisibleChange:yt,onPopupMouseEnter:function(){wt({})}},Ue?i.cloneElement(Ue,{ref:Ve}):i.createElement(O,(0,a.Z)({},e,{domRef:Ie,prefixCls:f,inputElement:Ge,ref:Re,id:r,prefix:re,showSearch:Ee,autoClearSearchValue:J,mode:D,activeDescendantId:U,tagRender:k,values:P,open:nt,onToggleOpen:ot,activeValue:Z,searchValue:Ke,onSearch:ut,onSearchSubmit:function(e){e&&e.trim()&&ee(e,{source:"submit"})},onRemove:function(e){var t=P.filter((function(t){return t!==e}));E(t,{type:"remove",values:[e]})},tokenWithEnter:at,onInputBlur:function(){gt.current=!1}})));return _t=Ue?At:i.createElement("div",(0,a.Z)({className:Lt},Me,{ref:Ne,onMouseDown:function(e){var t,n=e.target,i=null===(t=Be.current)||void 0===t?void 0:t.getPopupElement();if(i&&i.contains(n)){var r=setTimeout((function(){var e,t=vt.indexOf(r);-1!==t&&vt.splice(t,1),Ze(),Te||i.contains(document.activeElement)||null===(e=Re.current)||void 0===e||e.focus()}));vt.push(r)}for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s=0;l-=1){var c=o[l];if(!c.disabled){o.splice(l,1),a=c;break}}a&&E(o,{type:"remove",values:[a]})}for(var u=arguments.length,h=new Array(u>1?u-1:0),d=1;d1?t-1:0),i=1;i=_}),[p,_,null==A?void 0:A.size]),$=function(e){e.preventDefault()},H=function(e){var t;null===(t=z.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},Z=i.useCallback((function(e){return"combobox"!==f&&A.has(e)}),[f,(0,s.Z)(A).toString(),A.size]),G=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=F.length,i=0;i1&&void 0!==arguments[1]&&arguments[1];Y(e);var n={source:t?"keyboard":"mouse"},i=F[e];i?P(i.value,e,n):P(null,-1,n)};(0,i.useEffect)((function(){X(!1!==E?G(0):-1)}),[F.length,g]);var Q=i.useCallback((function(e){return"combobox"===f?String(e).toLowerCase()===g.toLowerCase():A.has(e)}),[f,g,(0,s.Z)(A).toString(),A.size]);(0,i.useEffect)((function(){var e,t=setTimeout((function(){if(!p&&d&&1===A.size){var e=Array.from(A)[0],t=F.findIndex((function(t){var n=t.data;return g?String(n.value).startsWith(g):n.value===e}));-1!==t&&(X(t),H(t))}}));d&&(null===(e=z.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[d,g]);var J=function(e){void 0!==e&&M(e,{selected:!A.has(e)}),p||m(!1)};if(i.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case x.Z.N:case x.Z.P:case x.Z.UP:case x.Z.DOWN:var i=0;if(t===x.Z.UP?i=-1:t===x.Z.DOWN?i=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===x.Z.N?i=1:t===x.Z.P&&(i=-1)),0!==i){var r=G(q+i,i);H(r),X(r,!0)}break;case x.Z.TAB:case x.Z.ENTER:var o,a=F[q];!a||null!=a&&null!==(o=a.data)&&void 0!==o&&o.disabled||j?J(void 0):J(a.value),d&&e.preventDefault();break;case x.Z.ESC:m(!1),d&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){H(e)}}})),0===F.length)return i.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(O,"-empty"),onMouseDown:$},v);var ee=Object.keys(T).map((function(e){return T[e]})),te=function(e){return e.label};function ne(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var ie=function(e){var t=F[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,s=(0,S.Z)(n,!0),l=te(t);return t?i.createElement("div",(0,a.Z)({"aria-label":"string"!=typeof l||o?null:l},s,{key:e},ne(t,e),{"aria-selected":Q(r)}),r):null},ce={role:"listbox",id:"".concat(c,"_list")};return i.createElement(i.Fragment,null,D&&i.createElement("div",(0,a.Z)({},ce,{style:{height:0,width:0,overflow:"hidden"}}),ie(q-1),ie(q),ie(q+1)),i.createElement(ae.Z,{itemKey:"key",ref:z,data:F,height:I,itemHeight:B,fullHeight:!1,onMouseDown:$,onScroll:w,virtual:D,direction:N,innerProps:D?null:ce},(function(e,t){var n=e.group,r=e.groupOption,s=e.data,c=e.label,u=e.value,d=s.key;if(n){var p,f=null!==(p=s.title)&&void 0!==p?p:le(c)?c.toString():void 0;return i.createElement("div",{className:o()(O,"".concat(O,"-group"),s.className),title:f},void 0!==c?c:d)}var g=s.disabled,m=s.title,v=(s.children,s.style),b=s.className,w=(0,h.Z)(s,se),x=(0,oe.Z)(w,ee),k=Z(u),_=g||!k&&j,C="".concat(O,"-option"),P=o()(O,C,b,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(C,"-grouped"),r),"".concat(C,"-active"),q===t&&!_),"".concat(C,"-disabled"),_),"".concat(C,"-selected"),k)),E=te(e),M=!L||"function"==typeof L||k,A="number"==typeof E?E:E||u,T=le(A)?A.toString():void 0;return void 0!==m&&(T=m),i.createElement("div",(0,a.Z)({},(0,S.Z)(x),D?{}:ne(e,t),{"aria-selected":Q(u),className:P,title:T,onMouseMove:function(){q===t||_||X(t)},onClick:function(){_||J(u)},style:v}),i.createElement("div",{className:"".concat(C,"-content")},"function"==typeof R?R(e,{index:t}):A),i.isValidElement(L)||k,M&&i.createElement(y,{className:"".concat(O,"-option-state"),customizeIcon:L,customizeIconProps:{value:u,disabled:_,isSelected:k}},k?"✓":null))})))};var ue=i.forwardRef(ce);function he(e,t){return M(e).join("").toUpperCase().includes(t)}var de=n(47273),pe=0,fe=(0,de.Z)();function ge(e){var t=i.useState(),n=(0,u.Z)(t,2),r=n[0],o=n[1];return i.useEffect((function(){var e;o("rc_select_".concat((fe?(e=pe,pe+=1):e="TEST_OR_SSR",e)))}),[]),e||r}var me=n(11592),ve=["children","value"],ye=["children"];function be(e){var t=e,n=t.key,i=t.props,r=i.children,o=i.value,a=(0,h.Z)(i,ve);return(0,c.Z)({key:n,value:void 0!==o?o:n,children:r},a)}function we(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,me.Z)(e).map((function(e,n){if(!i.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,a=r.key,s=r.props,l=s.children,u=(0,h.Z)(s,ye);return t||!o?be(e):(0,c.Z)((0,c.Z)({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},u),{},{options:we(l)})})).filter((function(e){return e}))}var xe=function(e,t,n,r,o){return i.useMemo((function(){var i=e;!e&&(i=we(t));var a=new Map,s=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c0?e(t.options):t.options}):t}))},Oe=i.useMemo((function(){return E?Re(Be):Be}),[Be,E,le]),Fe=i.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,i=t.childrenAsData,r=[],o=G(n,!1),a=o.label,s=o.value,l=o.options,c=o.groupLabel;function u(e,t){Array.isArray(e)&&e.forEach((function(e){if(t||!(l in e)){var n=e[s];r.push({key:Z(e,r.length),groupOption:t,data:e,label:e[a],value:n})}else{var o=e[c];void 0===o&&i&&(o=e.label),r.push({key:Z(e,r.length),group:!0,data:e,label:o}),u(e[l],!0)}}))}return u(e,!1),r}(Oe,{fieldNames:oe,childrenAsData:ie})}),[Oe,oe,ie]),ze=function(e){var t=ve(e);if(Ce(t),Y&&(t.length!==Le.length||t.some((function(e,t){var n;return(null===(n=Le[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=q?t:t.map((function(e){return e.value})),i=t.map((function(e){return U(Ae(e.value))}));Y(ne?n:n[0],ne?i:i[0])}},je=i.useState(null),$e=(0,u.Z)(je,2),He=$e[0],Ze=$e[1],Ke=i.useState(0),Ge=(0,u.Z)(Ke,2),Ue=Ge[0],Ve=Ge[1],We=void 0!==I?I:"combobox"!==r,qe=i.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.source,o=void 0===i?"keyboard":i;Ve(t),g&&"combobox"===r&&null!==e&&"keyboard"===o&&Ze(String(e))}),[g,r]),Ye=function(e,t,n){var i=function(){var t,n=Ae(e);return[q?{label:null==n?void 0:n[oe.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,U(n)]};if(t&&S){var r=i(),o=(0,u.Z)(r,2),a=o[0],s=o[1];S(a,s)}else if(!t&&k&&"clear"!==n){var l=i(),c=(0,u.Z)(l,2),h=c[0],d=c[1];k(h,d)}},Xe=Se((function(e,t){var n,i=!ne||t.selected;n=i?ne?[].concat((0,s.Z)(Le),[e]):[e]:Le.filter((function(t){return t.value!==e})),ze(n),Ye(e,i),"combobox"===r?Ze(""):X&&!x||(ce(""),Ze(""))})),Qe=i.useMemo((function(){var e=!1!==R&&!1!==C;return(0,c.Z)((0,c.Z)({},de),{},{flattenOptions:Fe,onActiveValue:qe,defaultActiveFirstOption:We,onSelect:Xe,menuItemSelectedIcon:B,rawValues:De,fieldNames:oe,virtual:e,direction:O,listHeight:z,listItemHeight:$,childrenAsData:ie,maxCount:Q,optionRender:D})}),[Q,de,Fe,qe,We,Xe,B,De,oe,R,C,O,z,$,ie,D]);return i.createElement(V.Provider,{value:Qe},i.createElement(J,(0,a.Z)({},ee,{id:te,prefixCls:f,ref:t,omitDomProps:_e,mode:r,displayValues:Te,onDisplayValuesChange:function(e,t){ze(e);var n=t.type,i=t.values;"remove"!==n&&"clear"!==n||i.forEach((function(e){Ye(e.value,!1,n)}))},direction:O,searchValue:le,onSearch:function(e,t){if(ce(e),Ze(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&ze(e),null==b||b(e));else{var n=(e||"").trim();if(n){var i=Array.from(new Set([].concat((0,s.Z)(De),[n])));ze(i),Ye(n,!0),ce("")}}},autoClearSearchValue:x,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=fe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,s.Z)(De),(0,s.Z)(t))));ze(n),n.forEach((function(e){Ye(e,!0)}))},dropdownMatchSelectWidth:C,OptionList:ue,emptyOptions:!Fe.length,activeValue:He,activeDescendantId:"".concat(te,"_list_").concat(Ue)})))}));var Pe=Ce;Pe.Option=ie,Pe.OptGroup=te;var Ee=Pe,Me=n(75030),Le=n(86641),Ae=n(45915),Te=n(82855),De=n(48755),Ne=n(38406),Ie=n(2171),Be=n(83397),Re=n(31756),Oe=n(56553),Fe=n(24971),ze=n(70045),je=n(57700);var $e=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},He=n(63356),Ze=n(56119),Ke=n(16931),Ge=n(51636),Ue=n(46e3),Ve=n(93873);const We=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:i,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:i,boxSizing:"border-box"}};var qe=e=>{const{antCls:t,componentCls:n}=e,i=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${i}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,He.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${r}${s}bottomLeft,\n ${o}${s}bottomLeft\n `]:{animationName:Ue.fJ},[`\n ${r}${s}topLeft,\n ${o}${s}topLeft,\n ${r}${s}topRight,\n ${o}${s}topRight\n `]:{animationName:Ue.Qt},[`${a}${s}bottomLeft`]:{animationName:Ue.Uw},[`\n ${a}${s}topLeft,\n ${a}${s}topRight\n `]:{animationName:Ue.ly},"&-hidden":{display:"none"},[i]:Object.assign(Object.assign({},We(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},He.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${i}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${i}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${i}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${i}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},We(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Ue.oN)(e,"slide-up"),(0,Ue.oN)(e,"slide-down"),(0,Ve.Fm)(e,"move-up"),(0,Ve.Fm)(e,"move-down")]},Ye=n(26743),Xe=n(66604);function Qe(e,t){const{componentCls:n,inputPaddingHorizontalBase:i,borderRadius:r}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal();return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},(0,He.Wf)(e,!0)),{display:"flex",borderRadius:r,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:(0,Xe.bf)(o)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{display:"block",padding:0,lineHeight:(0,Xe.bf)(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-search,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Xe.bf)(i)}`,[`${n}-selection-search-input`]:{height:o,fontSize:e.fontSize},"&:after":{lineHeight:(0,Xe.bf)(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Xe.bf)(i)}`,"&:after":{display:"none"}}}}}}}function Je(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Qe(e),Qe((0,Ge.IX)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${(0,Xe.bf)(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Qe((0,Ge.IX)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const et=(e,t)=>{const{componentCls:n,antCls:i,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${(0,Xe.bf)(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${i}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${(0,Xe.bf)(r)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},tt=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},et(e,t))}),nt=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},et(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),tt(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),tt(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,Xe.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),it=(e,t)=>{const{componentCls:n,antCls:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${(0,Xe.bf)(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${i}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},rt=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},it(e,t))}),ot=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},it(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),rt(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),rt(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${(0,Xe.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),at=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${(0,Xe.bf)(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,Xe.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),st=(e,t)=>{const{componentCls:n,antCls:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${(0,Xe.bf)(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${i}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},lt=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},st(e,t))}),ct=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},st(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),lt(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),lt(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,Xe.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})});var ut=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},nt(e)),ot(e)),at(e)),ct(e))});const ht=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},dt=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},pt=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:i,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},(0,He.Wf)(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},ht(e)),dt(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},He.vS),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},He.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},(0,He.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},ft=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},pt(e),Je(e),(0,Ye.ZP)(e),qe(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,Ze.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var gt=(0,Ke.I$)("Select",((e,t)=>{let{rootPrefixCls:n}=t;const i=(0,Ge.IX)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[ft(i),ut(i)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:i,controlHeight:r,controlHeightSM:o,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:h,controlItemBgActive:d,controlItemBgHover:p,colorBgContainer:f,colorFillSecondary:g,colorBgContainerDisabled:m,colorTextDisabled:v,colorPrimaryHover:y,colorPrimary:b,controlOutline:w}=e,x=2*s,S=2*i,k=Math.min(r-x,r-S),_=Math.min(o-x,o-S),C=Math.min(a-x,a-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:h,optionSelectedBg:d,optionActiveBg:p,optionPadding:`${(r-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:f,clearBg:f,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:k,multipleItemHeightSM:_,multipleItemHeightLG:C,multipleSelectorBgDisabled:m,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:y,activeBorderColor:b,activeOutlineColor:w,selectAffixPadding:s}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),mt=n(68525);var vt=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,bordered:a,className:s,rootClassName:l,getPopupContainer:c,popupClassName:u,dropdownClassName:h,listHeight:d=256,placement:p,listItemHeight:f,size:g,disabled:m,notFoundContent:v,status:y,builtinPlacements:b,dropdownMatchSelectWidth:w,popupMatchSelectWidth:x,direction:S,style:k,allowClear:_,variant:C,dropdownStyle:P,transitionName:E,tagRender:M,maxCount:L,prefix:A}=e,T=vt(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:D,getPrefixCls:N,renderEmpty:I,direction:B,virtual:R,popupMatchSelectWidth:O,popupOverflow:F}=i.useContext(De.E_),z=(0,De.dj)("select"),[,j]=(0,je.ZP)(),$=null!=f?f:null==j?void 0:j.controlHeight,H=N("select",r),Z=N(),K=null!=S?S:B,{compactSize:G,compactItemClassnames:U}=(0,ze.ri)(H,K),[V,W]=(0,Fe.Z)("select",C,a),q=(0,Be.Z)(H),[Y,X,Q]=gt(H,q),J=i.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===yt?"combobox":t}),[e.mode]),ee="multiple"===J||"tags"===J,te=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ne=null!==(n=null!=x?x:w)&&void 0!==n?n:O,{status:ie,hasFeedback:re,isFormItemInput:ae,feedbackIcon:se}=i.useContext(Oe.aM),le=(0,Te.F)(ie,y);let ce;ce=void 0!==v?v:"combobox"===J?null:(null==I?void 0:I("Select"))||i.createElement(Ne.Z,{componentName:"Select"});const{suffixIcon:ue,itemIcon:he,removeIcon:de,clearIcon:pe}=(0,mt.Z)(Object.assign(Object.assign({},T),{multiple:ee,hasFeedback:re,feedbackIcon:se,showSuffixIcon:te,prefixCls:H,componentName:"Select"})),fe=!0===_?{clearIcon:pe}:_,ge=(0,oe.Z)(T,["suffixIcon","itemIcon"]),me=o()(u||h,{[`${H}-dropdown-${K}`]:"rtl"===K},l,Q,q,X),ve=(0,Re.Z)((e=>{var t;return null!==(t=null!=g?g:G)&&void 0!==t?t:e})),ye=i.useContext(Ie.Z),be=null!=m?m:ye,we=o()({[`${H}-lg`]:"large"===ve,[`${H}-sm`]:"small"===ve,[`${H}-rtl`]:"rtl"===K,[`${H}-${V}`]:W,[`${H}-in-form-item`]:ae},(0,Te.Z)(H,le,re),U,z.className,s,l,Q,q,X),xe=i.useMemo((()=>void 0!==p?p:"rtl"===K?"bottomRight":"bottomLeft"),[p,K]);const[Se]=(0,Me.Cn)("SelectLike",null==P?void 0:P.zIndex);return Y(i.createElement(Ee,Object.assign({ref:t,virtual:R,showSearch:z.showSearch},ge,{style:Object.assign(Object.assign({},z.style),k),dropdownMatchSelectWidth:ne,transitionName:(0,Le.m)(Z,"slide-up",E),builtinPlacements:$e(b,F),listHeight:d,listItemHeight:$,mode:J,prefixCls:H,placement:xe,direction:K,prefix:A,suffixIcon:ue,menuItemSelectedIcon:he,removeIcon:de,allowClear:fe,notFoundContent:ce,className:we,getPopupContainer:c||D,dropdownClassName:me,disabled:be,dropdownStyle:Object.assign(Object.assign({},P),{zIndex:Se}),maxCount:ee?L:void 0,tagRender:ee?M:void 0})))};const wt=i.forwardRef(bt),xt=(0,Ae.Z)(wt,"dropdownAlign");wt.SECRET_COMBOBOX_MODE_DO_NOT_USE=yt,wt.Option=ie,wt.OptGroup=te,wt._InternalPanelDoNotUseOrYouWillBeFired=xt;var St=wt},26743:function(e,t,n){"use strict";n.d(t,{_z:function(){return s},gp:function(){return a}});var i=n(66604),r=n(63356),o=n(51636);const a=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(o).equal(),0),itemHeight:(0,i.bf)(t),itemLineHeight:(0,i.bf)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},s=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:i,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:h}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:h,borderRadius:i,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(h).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:s,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,r.Ro)()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},l=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,l=e.multipleSelectItemHeight,c=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:i}=e;return e.calc(n).sub(t).div(2).sub(i).equal()})(e),u=t?`${n}-${t}`:"",h=a(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},s(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:h.basePadding,paddingBlock:h.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,i.bf)(r)} 0`,lineHeight:(0,i.bf)(l),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:h.itemHeight,lineHeight:(0,i.bf)(h.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,i.bf)(l),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(h.basePadding).equal()},[`${o}-item + ${o}-item,\n ${n}-prefix + ${n}-selection-wrap\n `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:h.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c).equal(),"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:(0,i.bf)(l),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(h.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function c(e,t){const{componentCls:n}=e,i={[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[l(e,t),i]}t.ZP=e=>{const{componentCls:t}=e,n=(0,o.IX)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),i=(0,o.IX)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[c(e),c(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},c(i,"lg")]}},68525:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var i=n(59301),r=n(40001),o=n(19248),a=n(99267),s=n(84105),l=n(58617),c=n(47472);function u(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:u,removeIcon:h,loading:d,multiple:p,hasFeedback:f,prefixCls:g,showSuffixIcon:m,feedbackIcon:v,showArrow:y,componentName:b}=e;const w=null!=n?n:i.createElement(o.Z,null),x=e=>null!==t||f||y?i.createElement(i.Fragment,null,!1!==m&&e,f&&v):null;let S=null;if(void 0!==t)S=x(t);else if(d)S=x(i.createElement(l.Z,{spin:!0}));else{const e=`${g}-suffix`;S=t=>{let{open:n,showSearch:r}=t;return x(n&&r?i.createElement(c.Z,{className:e}):i.createElement(s.Z,{className:e}))}}let k=null;k=void 0!==u?u:p?i.createElement(r.Z,null):null;let _=null;return _=void 0!==h?h:i.createElement(a.Z,null),{clearIcon:w,suffixIcon:S,itemIcon:k,removeIcon:_}}},77736:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var i=n(59301),r=n(92310),o=n.n(r),a=n(11592);function s(e){return["small","middle","large"].includes(e)}function l(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}var c=n(48755),u=n(70045);const h=i.createContext({latestIndex:0}),d=h.Provider;var p=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:s}=i.useContext(h);return null==r?null:i.createElement(i.Fragment,null,i.createElement("div",{className:t,style:a},r),n{var n;const{getPrefixCls:r,direction:u,size:h,className:m,style:v,classNames:y,styles:b}=(0,c.dj)("space"),{size:w=(null!=h?h:"small"),align:x,className:S,rootClassName:k,children:_,direction:C="horizontal",prefixCls:P,split:E,style:M,wrap:L=!1,classNames:A,styles:T}=e,D=g(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[N,I]=Array.isArray(w)?w:[w,w],B=s(I),R=s(N),O=l(I),F=l(N),z=(0,a.Z)(_,{keepEmpty:!0}),j=void 0===x&&"horizontal"===C?"center":x,$=r("space",P),[H,Z,K]=(0,f.Z)($),G=o()($,m,Z,`${$}-${C}`,{[`${$}-rtl`]:"rtl"===u,[`${$}-align-${j}`]:j,[`${$}-gap-row-${I}`]:B,[`${$}-gap-col-${N}`]:R},S,k,K),U=o()(`${$}-item`,null!==(n=null==A?void 0:A.item)&&void 0!==n?n:y.item);let V=0;const W=z.map(((e,t)=>{var n;null!=e&&(V=t);const r=(null==e?void 0:e.key)||`${U}-${t}`;return i.createElement(p,{className:U,key:r,index:t,split:E,style:null!==(n=null==T?void 0:T.item)&&void 0!==n?n:b.item},e)})),q=i.useMemo((()=>({latestIndex:V})),[V]);if(0===z.length)return null;const Y={};return L&&(Y.flexWrap="wrap"),!R&&F&&(Y.columnGap=N),!B&&O&&(Y.rowGap=I),H(i.createElement("div",Object.assign({ref:t,className:G,style:Object.assign(Object.assign(Object.assign({},Y),v),M)},D),i.createElement(d,{value:q},W)))}));m.Compact=u.ZP;var v=m},34961:function(e,t){"use strict";t.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},93873:function(e,t,n){"use strict";n.d(t,{Fm:function(){return d}});var i=n(66604),r=n(48746);const o=new i.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new i.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),s=new i.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new i.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),c=new i.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new i.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),h={"move-up":{inKeyframes:new i.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new i.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:o,outKeyframes:a},"move-left":{inKeyframes:s,outKeyframes:l},"move-right":{inKeyframes:c,outKeyframes:u}},d=(e,t)=>{const{antCls:n}=e,i=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=h[t];return[(0,r.R)(i,o,a,e.motionDurationMid),{[`\n ${i}-enter,\n ${i}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${i}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},46e3:function(e,t,n){"use strict";n.d(t,{Qt:function(){return s},Uw:function(){return a},fJ:function(){return o},ly:function(){return l},oN:function(){return f}});var i=n(66604),r=n(48746);const o=new i.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new i.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),s=new i.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),l=new i.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c=new i.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),u=new i.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),h=new i.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),d=new i.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),p={"slide-up":{inKeyframes:o,outKeyframes:a},"slide-down":{inKeyframes:s,outKeyframes:l},"slide-left":{inKeyframes:c,outKeyframes:u},"slide-right":{inKeyframes:h,outKeyframes:d}},f=(e,t)=>{const{antCls:n}=e,i=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=p[t];return[(0,r.R)(i,o,a,e.motionDurationMid),{[`\n ${i}-enter,\n ${i}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${i}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},37645:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l},qN:function(){return o},wZ:function(){return a}});var i=n(66604),r=n(36305);const o=8;function a(e){const{contentRadius:t,limitVerticalRadius:n}=e,i=t>12?t+2:12;return{arrowOffsetHorizontal:i,arrowOffsetVertical:n?o:i}}function s(e,t){return e?t:{}}function l(e,t,n){const{componentCls:o,boxShadowPopoverArrow:a,arrowOffsetVertical:l,arrowOffsetHorizontal:c}=e,{arrowDistance:u=0,arrowPlacement:h={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,r.W)(e,t,a)),{"&:before":{background:t}})]},s(!!h.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":c,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,i.bf)(c)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),s(!!h.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":c,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,i.bf)(c)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),s(!!h.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:l},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:l}})),s(!!h.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:l},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:l}}))}}},36305:function(e,t,n){"use strict";n.d(t,{W:function(){return o},w:function(){return r}});var i=n(66604);function r(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:i}=e,r=t/2,o=r,a=1*i/Math.sqrt(2),s=r-i*(1-1/Math.sqrt(2)),l=r-n*(1/Math.sqrt(2)),c=i*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*r-l,h=c,d=2*r-a,p=s,f=2*r-0,g=o,m=r*Math.sqrt(2)+i*(Math.sqrt(2)-2),v=i*(Math.sqrt(2)-1);return{arrowShadowWidth:m,arrowPath:`path('M 0 ${o} A ${i} ${i} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${u} ${h} L ${d} ${p} A ${i} ${i} 0 0 0 ${f} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*r-v}px 100%, ${v}px 100%)`}}const o=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:s,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,i.bf)(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}}},80480:function(e,t,n){"use strict";n.d(t,{Z:function(){return uo}});var i=n(59301),r={},o="rc-table-internal-hook",a=n(50298),s=n(6089),l=n(34280),c=n(13697),u=n(4676);function h(e){var t=i.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,r=e.children,o=i.useRef(n);o.current=n;var s=i.useState((function(){return{getValue:function(){return o.current},listeners:new Set}})),c=(0,a.Z)(s,1)[0];return(0,l.Z)((function(){(0,u.unstable_batchedUpdates)((function(){c.listeners.forEach((function(e){e(n)}))}))}),[n]),i.createElement(t.Provider,{value:c},r)},defaultValue:e}}function d(e,t){var n=(0,s.Z)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),r=i.useContext(null==e?void 0:e.Context),o=r||{},u=o.listeners,h=o.getValue,d=i.useRef();d.current=n(r?h():null==e?void 0:e.defaultValue);var p=i.useState({}),f=(0,a.Z)(p,2)[1];return(0,l.Z)((function(){if(r)return u.add(e),function(){u.delete(e)};function e(e){var t=n(e);(0,c.Z)(d.current,t,!0)||f({})}}),[r]),d.current}var p=n(14809),f=n(8654);function g(){var e=i.createContext(null);function t(){return i.useContext(e)}return{makeImmutable:function(n,r){var o=(0,f.Yr)(n),a=function(a,s){var l=o?{ref:s}:{},c=i.useRef(0),u=i.useRef(a);return null!==t()?i.createElement(n,(0,p.Z)({},a,l)):(r&&!r(u.current,a)||(c.current+=1),u.current=a,i.createElement(e.Provider,{value:c.current},i.createElement(n,(0,p.Z)({},a,l))))};return o?i.forwardRef(a):a},responseImmutable:function(e,n){var r=(0,f.Yr)(e),o=function(n,o){var a=r?{ref:o}:{};return t(),i.createElement(e,(0,p.Z)({},n,a))};return r?i.memo(i.forwardRef(o),n):i.memo(o,n)},useImmutableMark:t}}var m=g(),v=(m.makeImmutable,m.responseImmutable,m.useImmutableMark,g()),y=v.makeImmutable,b=v.responseImmutable,w=v.useImmutableMark,x=h();var S=n(93664),k=n(20439),_=n(4635),C=n(92310),P=n.n(C),E=n(80547),M=n(97938),L=n(48736),A=i.createContext({renderWithProps:!1});function T(e){var t=[],n={};return e.forEach((function(e){for(var i,r=e||{},o=r.key,a=r.dataIndex,s=o||(i=a,null==i?[]:Array.isArray(i)?i:[i]).join("-")||"RC_TABLE_KEY";n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)})),t}function D(e){return null!=e}function N(e,t,n,r,o,s){var l=i.useContext(A),u=w();return(0,E.Z)((function(){if(D(r))return[r];var a,s=null==t||""===t?[]:Array.isArray(t)?t:[t],c=(0,M.Z)(e,s),u=c,h=void 0;if(o){var d=o(c,e,n);!(a=d)||"object"!==(0,S.Z)(a)||Array.isArray(a)||i.isValidElement(a)?u=d:(u=d.children,h=d.props,l.renderWithProps=!0)}return[u,h]}),[u,e,r,t,o,n],(function(e,t){if(s){var n=(0,a.Z)(e,2)[1],i=(0,a.Z)(t,2)[1];return s(i,n)}return!!l.renderWithProps||!(0,c.Z)(e,t,!0)}))}var I=n(70425);function B(e){var t,n,r,o,s,l,c,u;var h=e.component,f=e.children,g=e.ellipsis,m=e.scope,v=e.prefixCls,y=e.className,b=e.align,w=e.record,C=e.render,E=e.dataIndex,M=e.renderIndex,L=e.shouldCellUpdate,A=e.index,T=e.rowType,D=e.colSpan,B=e.rowSpan,R=e.fixLeft,O=e.fixRight,F=e.firstFixLeft,z=e.lastFixLeft,j=e.firstFixRight,$=e.lastFixRight,H=e.appendNode,Z=e.additionalProps,K=void 0===Z?{}:Z,G=e.isSticky,U="".concat(v,"-cell"),V=d(x,["supportSticky","allColumnsFixedLeft","rowHoverable"]),W=V.supportSticky,q=V.allColumnsFixedLeft,Y=V.rowHoverable,X=N(w,E,M,f,C,L),Q=(0,a.Z)(X,2),J=Q[0],ee=Q[1],te={},ne="number"==typeof R&&W,ie="number"==typeof O&&W;ne&&(te.position="sticky",te.left=R),ie&&(te.position="sticky",te.right=O);var re=null!==(t=null!==(n=null!==(r=null==ee?void 0:ee.colSpan)&&void 0!==r?r:K.colSpan)&&void 0!==n?n:D)&&void 0!==t?t:1,oe=null!==(o=null!==(s=null!==(l=null==ee?void 0:ee.rowSpan)&&void 0!==l?l:K.rowSpan)&&void 0!==s?s:B)&&void 0!==o?o:1,ae=function(e,t){return d(x,(function(n){var i,r,o,a;return[(i=e,r=t||1,o=n.hoverStartRow,a=n.hoverEndRow,i<=a&&i+r-1>=o),n.onHover]}))}(A,oe),se=(0,a.Z)(ae,2),le=se[0],ce=se[1],ue=(0,I.zX)((function(e){var t;w&&ce(A,A+oe-1),null==K||null===(t=K.onMouseEnter)||void 0===t||t.call(K,e)})),he=(0,I.zX)((function(e){var t;w&&ce(-1,-1),null==K||null===(t=K.onMouseLeave)||void 0===t||t.call(K,e)}));if(0===re||0===oe)return null;var de=null!==(c=K.title)&&void 0!==c?c:function(e){var t,n=e.ellipsis,r=e.rowType,o=e.children,a=!0===n?{showTitle:!0}:n;return a&&(a.showTitle||"header"===r)&&("string"==typeof o||"number"==typeof o?t=o.toString():i.isValidElement(o)&&"string"==typeof o.props.children&&(t=o.props.children)),t}({rowType:T,ellipsis:g,children:J}),pe=P()(U,y,(u={},(0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)(u,"".concat(U,"-fix-left"),ne&&W),"".concat(U,"-fix-left-first"),F&&W),"".concat(U,"-fix-left-last"),z&&W),"".concat(U,"-fix-left-all"),z&&q&&W),"".concat(U,"-fix-right"),ie&&W),"".concat(U,"-fix-right-first"),j&&W),"".concat(U,"-fix-right-last"),$&&W),"".concat(U,"-ellipsis"),g),"".concat(U,"-with-append"),H),"".concat(U,"-fix-sticky"),(ne||ie)&&G&&W),(0,_.Z)(u,"".concat(U,"-row-hover"),!ee&&le)),K.className,null==ee?void 0:ee.className),fe={};b&&(fe.textAlign=b);var ge=(0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)({},null==ee?void 0:ee.style),te),fe),K.style),me=J;return"object"!==(0,S.Z)(me)||Array.isArray(me)||i.isValidElement(me)||(me=null),g&&(z||j)&&(me=i.createElement("span",{className:"".concat(U,"-content")},me)),i.createElement(h,(0,p.Z)({},ee,K,{className:pe,style:ge,title:de,scope:m,onMouseEnter:Y?ue:void 0,onMouseLeave:Y?he:void 0,colSpan:1!==re?re:null,rowSpan:1!==oe?oe:null}),H,me)}var R=i.memo(B);function O(e,t,n,i,r){var o,a,s=n[e]||{},l=n[t]||{};"left"===s.fixed?o=i.left["rtl"===r?t:e]:"right"===l.fixed&&(a=i.right["rtl"===r?e:t]);var c=!1,u=!1,h=!1,d=!1,p=n[t+1],f=n[e-1],g=p&&!p.fixed||f&&!f.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===r){if(void 0!==o)d=!(f&&"left"===f.fixed)&&g;else if(void 0!==a){h=!(p&&"right"===p.fixed)&&g}}else if(void 0!==o){c=!(p&&"left"===p.fixed)&&g}else if(void 0!==a){u=!(f&&"right"===f.fixed)&&g}return{fixLeft:o,fixRight:a,lastFixLeft:c,firstFixRight:u,lastFixRight:h,firstFixLeft:d,isSticky:i.isSticky}}var F=i.createContext({});var z=n(62646),j=["children"];function $(e){return e.children}$.Row=function(e){var t=e.children,n=(0,z.Z)(e,j);return i.createElement("tr",n,t)},$.Cell=function(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,a=void 0===o?1:o,s=e.rowSpan,l=e.align,c=d(x,["prefixCls","direction"]),u=c.prefixCls,h=c.direction,f=i.useContext(F),g=f.scrollColumnIndex,m=f.stickyOffsets,v=n+a-1+1===g?a+1:a,y=O(n,n+v-1,f.flattenColumns,m,h);return i.createElement(R,(0,p.Z)({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:v,rowSpan:s,render:function(){return r}},y))};var H=$;var Z=b((function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=d(x,"prefixCls"),a=r.length-1,s=r[a],l=i.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=s&&s.scrollbar?a:null}}),[s,r,a,n]);return i.createElement(F.Provider,{value:l},i.createElement("tfoot",{className:"".concat(o,"-summary")},t))})),K=H,G=n(29301),U=n(47273),V=function(e){if((0,U.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function W(e,t){return Array.isArray(e)||void 0===t?V(e):function(e,t){if(!V(e))return!1;var n=document.createElement("div"),i=n.style[e];return n.style[e]=t,n.style[e]!==i}(e,t)}var q=n(75152),Y=n(26112);function X(e,t,n,i,r,o,a){e.push({record:t,indent:n,index:a});var s=o(t),l=null==r?void 0:r.has(s);if(t&&Array.isArray(t[i])&&l)for(var c=0;c1?n-1:0),r=1;r=1)),style:(0,k.Z)((0,k.Z)({},n),null==b?void 0:b.style)}),m.map((function(e,t){var n=e.render,s=e.dataIndex,l=e.className,u=ie(f,e,t,c,o),m=u.key,v=u.fixedInfo,y=u.appendCellNode,b=u.additionalCellProps;return i.createElement(R,(0,p.Z)({className:l,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?d:h,prefixCls:g,key:m,record:r,index:o,renderIndex:a,dataIndex:s,render:n,shouldCellUpdate:e.shouldCellUpdate},v,{appendNode:y,additionalProps:b}))})));if(x&&(S.current||w)){var L=y(r,o,c+1,w);C=i.createElement(ee,{expanded:w,className:P()("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),E),prefixCls:g,component:u,cellComponent:h,colSpan:m.length,isEmpty:!1},L)}return i.createElement(i.Fragment,null,M,C)}));function oe(e){var t=e.columnKey,n=e.onColumnResize,r=i.useRef();return(0,l.Z)((function(){r.current&&n(t,r.current.offsetWidth)}),[]),i.createElement(G.Z,{data:t},i.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},i.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}var ae=n(29194);function se(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,o=i.useRef(null);return i.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0},ref:o},i.createElement(G.Z.Collection,{onBatchResize:function(e){(0,ae.Z)(o.current)&&e.forEach((function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)}))}},n.map((function(e){return i.createElement(oe,{key:e,columnKey:e,onColumnResize:r})}))))}var le=b((function(e){var t,n=e.data,r=e.measureColumnWidth,o=d(x,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=o.prefixCls,s=o.getComponent,l=o.onColumnResize,c=o.flattenColumns,u=o.getRowKey,h=o.expandedKeys,p=o.childrenColumnName,f=o.emptyNode,g=Q(n,p,h,u),m=i.useRef({renderWithProps:!1}),v=s(["body","wrapper"],"tbody"),y=s(["body","row"],"tr"),b=s(["body","cell"],"td"),w=s(["body","cell"],"th");t=n.length?g.map((function(e,t){var n=e.record,r=e.indent,o=e.index,a=u(n,t);return i.createElement(re,{key:a,rowKey:a,record:n,index:t,renderIndex:o,rowComponent:y,cellComponent:b,scopeCellComponent:w,indent:r})})):i.createElement(ee,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:y,cellComponent:b,colSpan:c.length,isEmpty:!0},f);var S=T(c);return i.createElement(A.Provider,{value:m.current},i.createElement(v,{className:"".concat(a,"-tbody")},r&&i.createElement(se,{prefixCls:a,columnsKey:S,onColumnResize:l}),t))})),ce=["expandable"],ue="RC_TABLE_INTERNAL_COL_DEFINE";var he=["columnType"];var de=function(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=d(x,["tableLayout"]).tableLayout,a=[],s=!1,l=(r||n.length)-1;l>=0;l-=1){var c=t[l],u=n&&n[l],h=void 0,f=void 0;if(u&&(h=u[ue],"auto"===o&&(f=u.minWidth)),c||f||h||s){var g=h||{},m=(g.columnType,(0,z.Z)(g,he));a.unshift(i.createElement("col",(0,p.Z)({key:l,style:{width:c,minWidth:f}},m))),s=!0}}return i.createElement("colgroup",null,a)},pe=n(95190),fe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var ge=i.forwardRef((function(e,t){var n=e.className,r=e.noData,o=e.columns,a=e.flattenColumns,s=e.colWidths,l=e.columCount,c=e.stickyOffsets,u=e.direction,h=e.fixHeader,p=e.stickyTopOffset,g=e.stickyBottomOffset,m=e.stickyClassName,v=e.onScroll,y=e.maxContentScroll,b=e.children,w=(0,z.Z)(e,fe),S=d(x,["prefixCls","scrollbarSize","isSticky","getComponent"]),C=S.prefixCls,E=S.scrollbarSize,M=S.isSticky,L=(0,S.getComponent)(["header","table"],"table"),A=M&&!h?0:E,T=i.useRef(null),D=i.useCallback((function(e){(0,f.mH)(t,e),(0,f.mH)(T,e)}),[]);i.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,i=t.deltaX;i&&(v({currentTarget:n,scrollLeft:n.scrollLeft+i}),e.preventDefault())}return null===(e=T.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),function(){var e;null===(e=T.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var N=i.useMemo((function(){return a.every((function(e){return e.width}))}),[a]),I=a[a.length-1],B={fixed:I?I.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},R=(0,i.useMemo)((function(){return A?[].concat((0,pe.Z)(o),[B]):o}),[A,o]),O=(0,i.useMemo)((function(){return A?[].concat((0,pe.Z)(a),[B]):a}),[A,a]),F=(0,i.useMemo)((function(){var e=c.right,t=c.left;return(0,k.Z)((0,k.Z)({},c),{},{left:"rtl"===u?[].concat((0,pe.Z)(t.map((function(e){return e+A}))),[0]):t,right:"rtl"===u?e:[].concat((0,pe.Z)(e.map((function(e){return e+A}))),[0]),isSticky:M})}),[A,c,M]),j=function(e,t){return(0,i.useMemo)((function(){for(var n=[],i=0;i1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:s,prefixCls:h,key:g[t]},l,{additionalProps:n,rowType:"header"}))})))};var ye=b((function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,a=d(x,["prefixCls","getComponent"]),s=a.prefixCls,l=a.getComponent,c=i.useMemo((function(){return function(e){var t=[];!function e(n,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];var o=i;return n.filter(Boolean).map((function(n){var i={key:n.key,className:n.className||"",children:n.title,column:n,colStart:o},a=1,s=n.children;return s&&s.length>0&&(a=e(s,o,r+1).reduce((function(e,t){return e+t}),0),i.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(i.rowSpan=n.rowSpan),i.colSpan=a,i.colEnd=i.colStart+a-1,t[r].push(i),o+=a,a}))}(e,0);for(var n=t.length,i=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},r=0;r1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var xe=["children"],Se=["fixed"];function ke(e){return(0,be.Z)(e).filter((function(e){return i.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,i=n.children,r=(0,z.Z)(n,xe),o=(0,k.Z)({key:t},r);return i&&(o.children=ke(i)),o}))}function _e(e){return e.filter((function(e){return e&&"object"===(0,S.Z)(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?(0,k.Z)((0,k.Z)({},e),{},{children:_e(t)}):e}))}function Ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===(0,S.Z)(e)})).reduce((function(e,n,i){var r=n.fixed,o=!0===r?"left":r,a="".concat(t,"-").concat(i),s=n.children;return s&&s.length>0?[].concat((0,pe.Z)(e),(0,pe.Z)(Ce(s,a).map((function(e){return(0,k.Z)({fixed:o},e)})))):[].concat((0,pe.Z)(e),[(0,k.Z)((0,k.Z)({key:a},n),{},{fixed:o})])}),[])}var Pe=function(e,t){var n=e.prefixCls,o=e.columns,s=e.children,l=e.expandable,c=e.expandedKeys,u=e.columnTitle,h=e.getRowKey,d=e.onTriggerExpand,p=e.expandIcon,f=e.rowExpandable,g=e.expandIconColumnIndex,m=e.direction,v=e.expandRowByClick,y=e.columnWidth,b=e.fixed,w=e.scrollWidth,x=e.clientWidth,S=i.useMemo((function(){return _e((o||ke(s)||[]).slice())}),[o,s]),C=i.useMemo((function(){if(l){var e=S.slice();if(!e.includes(r)){var t=g||0;t>=0&&(t||"left"===b||!b)&&e.splice(t,0,r),"right"===b&&e.splice(S.length,0,r)}0;var o=e.indexOf(r);e=e.filter((function(e,t){return e!==r||t===o}));var a,s=S[o];a=b||(s?s.fixed:null);var m=(0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)({},ue,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",u),"fixed",a),"className","".concat(n,"-row-expand-icon-cell")),"width",y),"render",(function(e,t,r){var o=h(t,r),a=c.has(o),s=!f||f(t),l=p({prefixCls:n,expanded:a,expandable:s,record:t,onExpand:d});return v?i.createElement("span",{onClick:function(e){return e.stopPropagation()}},l):l}));return e.map((function(e){return e===r?m:e}))}return S.filter((function(e){return e!==r}))}),[l,S,h,c,p,m]),P=i.useMemo((function(){var e=C;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,C,m]),E=i.useMemo((function(){return"rtl"===m?function(e){return e.map((function(e){var t=e.fixed,n=(0,z.Z)(e,Se),i=t;return"left"===t?i="right":"right"===t&&(i="left"),(0,k.Z)({fixed:i},n)}))}(Ce(P)):Ce(P)}),[P,m,w]),M=i.useMemo((function(){for(var e=-1,t=E.length-1;t>=0;t-=1){var n=E[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var i=0;i<=e;i+=1){var r=E[i].fixed;if("left"!==r&&!0!==r)return!0}var o=E.findIndex((function(e){return"right"===e.fixed}));if(o>=0)for(var a=o;a0){var i=0,r=0;e.forEach((function(e){var n=we(t,e.width);n?i+=n:r+=1}));var o=Math.max(t,n),a=Math.max(o-i,r),s=r,l=a/r,c=0,u=e.map((function(e){var n=(0,k.Z)({},e),i=we(t,n.width);if(i)n.width=i;else{var r=Math.floor(l);n.width=1===s?a:r,a-=r,s-=1}return c+=n.width,n}));if(c=n-g?A((function(e){return(0,k.Z)((0,k.Z)({},e),{},{isHiddenScrollBar:!0})})):A((function(e){return(0,k.Z)((0,k.Z)({},e),{},{isHiddenScrollBar:!1})}))}}))},j=function(e){A((function(t){return(0,k.Z)((0,k.Z)({},t),{},{scrollLeft:e/b*w||0})}))};return i.useImperativeHandle(t,(function(){return{setScrollLeft:j,checkScrollBarVisible:z}})),i.useEffect((function(){var e=Te(document.body,"mouseup",O,!1),t=Te(document.body,"mousemove",F,!1);return z(),function(){e.remove(),t.remove()}}),[S,I]),i.useEffect((function(){if(p.current){for(var e=[],t=(0,Ne.bn)(p.current);t;)e.push(t),t=t.parentElement;return e.forEach((function(e){return e.addEventListener("scroll",z,!1)})),window.addEventListener("resize",z,!1),window.addEventListener("scroll",z,!1),m.addEventListener("scroll",z,!1),function(){e.forEach((function(e){return e.removeEventListener("scroll",z)})),window.removeEventListener("resize",z),window.removeEventListener("scroll",z),m.removeEventListener("scroll",z)}}}),[m]),i.useEffect((function(){L.isHiddenScrollBar||A((function(e){var t=p.current;return t?(0,k.Z)((0,k.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[L.isHiddenScrollBar]),b<=w||!S||L.isHiddenScrollBar?null:i.createElement("div",{style:{height:(0,q.Z)(),width:w,bottom:g},className:"".concat(y,"-sticky-scroll")},i.createElement("div",{onMouseDown:function(e){e.persist(),T.current.delta=e.pageX-L.scrollLeft,T.current.x=0,B(!0),e.preventDefault()},ref:C,className:P()("".concat(y,"-sticky-scroll-bar"),(0,_.Z)({},"".concat(y,"-sticky-scroll-bar-active"),I)),style:{width:"".concat(S,"px"),transform:"translate3d(".concat(L.scrollLeft,"px, 0, 0)")}}))},Re=i.forwardRef(Be);var Oe=function(e){return null};var Fe=function(e){return null},ze="rc-table",je=[],$e={};function He(){return"No Data"}function Ze(e,t){var n=(0,k.Z)({rowKey:"key",prefixCls:ze,emptyText:He},e),r=n.prefixCls,u=n.className,h=n.rowClassName,d=n.style,f=n.data,g=n.rowKey,m=n.scroll,v=n.tableLayout,y=n.direction,b=n.title,w=n.footer,C=n.summary,L=n.caption,A=n.id,N=n.showHeader,I=n.components,B=n.emptyText,R=n.onRow,F=n.onHeaderRow,z=n.onScroll,j=n.internalHooks,$=n.transformColumns,K=n.internalRefs,U=n.tailor,V=n.getContainerWidth,X=n.sticky,Q=n.rowHoverable,J=void 0===Q||Q,ee=f||je,te=!!ee.length,ne=j===o;var ie=i.useCallback((function(e,t){return(0,M.Z)(I,e)||t}),[I]),re=i.useMemo((function(){return"function"==typeof g?g:function(e){return e&&e[g]}}),[g]),oe=ie(["body"]),ae=function(){var e=i.useState(-1),t=(0,a.Z)(e,2),n=t[0],r=t[1],o=i.useState(-1),s=(0,a.Z)(o,2),l=s[0],c=s[1];return[n,l,i.useCallback((function(e,t){r(e),c(t)}),[])]}(),se=(0,a.Z)(ae,3),ce=se[0],ue=se[1],he=se[2],pe=Ee(n,ee,re),fe=(0,a.Z)(pe,6),ge=fe[0],ve=fe[1],be=fe[2],we=fe[3],xe=fe[4],Se=fe[5],ke=null==m?void 0:m.x,_e=i.useState(0),Ce=(0,a.Z)(_e,2),Te=Ce[0],De=Ce[1],Ie=Pe((0,k.Z)((0,k.Z)((0,k.Z)({},n),ge),{},{expandable:!!ge.expandedRowRender,columnTitle:ge.columnTitle,expandedKeys:be,getRowKey:re,onTriggerExpand:Se,expandIcon:we,expandIconColumnIndex:ge.expandIconColumnIndex,direction:y,scrollWidth:ne&&U&&"number"==typeof ke?ke:null,clientWidth:Te}),ne?$:null),Be=(0,a.Z)(Ie,4),Oe=Be[0],Fe=Be[1],Ze=Be[2],Ke=Be[3],Ge=null!=Ze?Ze:ke,Ue=i.useMemo((function(){return{columns:Oe,flattenColumns:Fe}}),[Oe,Fe]),Ve=i.useRef(),We=i.useRef(),qe=i.useRef(),Ye=i.useRef();i.useImperativeHandle(t,(function(){return{nativeElement:Ve.current,scrollTo:function(e){var t,n;if(qe.current instanceof HTMLElement){var i=e.index,r=e.top,o=e.key;if("number"!=typeof(n=r)||Number.isNaN(n)){var a,s=null!=o?o:re(ee[i]);null===(a=qe.current.querySelector('[data-row-key="'.concat(s,'"]')))||void 0===a||a.scrollIntoView()}else{var l;null===(l=qe.current)||void 0===l||l.scrollTo({top:r})}}else null!==(t=qe.current)&&void 0!==t&&t.scrollTo&&qe.current.scrollTo(e)}}}));var Xe,Qe,Je,et=i.useRef(),tt=i.useState(!1),nt=(0,a.Z)(tt,2),it=nt[0],rt=nt[1],ot=i.useState(!1),at=(0,a.Z)(ot,2),st=at[0],lt=at[1],ct=i.useState(new Map),ut=(0,a.Z)(ct,2),ht=ut[0],dt=ut[1],pt=T(Fe).map((function(e){return ht.get(e)})),ft=i.useMemo((function(){return pt}),[pt.join("_")]),gt=Le(ft,Fe,y),mt=m&&D(m.y),vt=m&&D(Ge)||Boolean(ge.fixed),yt=vt&&Fe.some((function(e){return e.fixed})),bt=i.useRef(),wt=function(e,t){var n="object"===(0,S.Z)(e)?e:{},r=n.offsetHeader,o=void 0===r?0:r,a=n.offsetSummary,s=void 0===a?0:a,l=n.offsetScroll,c=void 0===l?0:l,u=n.getContainer,h=(void 0===u?function(){return Me}:u)()||Me,d=!!e;return i.useMemo((function(){return{isSticky:d,stickyClassName:d?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:s,offsetScroll:c,container:h}}),[d,c,o,s,t,h])}(X,r),xt=wt.isSticky,St=wt.offsetHeader,kt=wt.offsetSummary,_t=wt.offsetScroll,Ct=wt.stickyClassName,Pt=wt.container,Et=i.useMemo((function(){return null==C?void 0:C(ee)}),[C,ee]),Mt=(mt||xt)&&i.isValidElement(Et)&&Et.type===H&&Et.props.fixed;mt&&(Qe={overflowY:te?"scroll":"auto",maxHeight:m.y}),vt&&(Xe={overflowX:"auto"},mt||(Qe={overflowY:"hidden"}),Je={width:!0===Ge?"auto":Ge,minWidth:"100%"});var Lt=i.useCallback((function(e,t){dt((function(n){if(n.get(e)!==t){var i=new Map(n);return i.set(e,t),i}return n}))}),[]),At=function(e){var t=(0,i.useRef)(e||null),n=(0,i.useRef)();function r(){window.clearTimeout(n.current)}return(0,i.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),Tt=(0,a.Z)(At,2),Dt=Tt[0],Nt=Tt[1];function It(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var Bt=(0,s.Z)((function(e){var t,n=e.currentTarget,i=e.scrollLeft,r="rtl"===y,o="number"==typeof i?i:n.scrollLeft,a=n||$e;Nt()&&Nt()!==a||(Dt(a),It(o,We.current),It(o,qe.current),It(o,et.current),It(o,null===(t=bt.current)||void 0===t?void 0:t.setScrollLeft));var s=n||We.current;if(s){var l=ne&&U&&"number"==typeof Ge?Ge:s.scrollWidth,c=s.clientWidth;if(l===c)return rt(!1),void lt(!1);r?(rt(-o0)):(rt(o>0),lt(o1?b-N:0,B=(0,k.Z)((0,k.Z)((0,k.Z)({},M),u),{},{flex:"0 0 ".concat(N,"px"),width:"".concat(N,"px"),marginRight:I,pointerEvents:"auto"}),O=i.useMemo((function(){return f?D<=1:0===A||0===D||D>1}),[D,A,f]);O?B.visibility="hidden":f&&(B.height=null==g?void 0:g(D));var F=O?function(){return null}:m,z={};return 0!==D&&0!==A||(z.rowSpan=1,z.colSpan=1),i.createElement(R,(0,p.Z)({className:P()(y,h),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:s,prefixCls:t.prefixCls,key:S,record:c,index:a,renderIndex:l,dataIndex:v,render:F,shouldCellUpdate:n.shouldCellUpdate},_,{appendNode:C,additionalProps:(0,k.Z)((0,k.Z)({},E),{},{style:B},z)}))},Qe=["data","index","className","rowKey","style","extra","getHeight"],Je=i.forwardRef((function(e,t){var n,r=e.data,o=e.index,a=e.className,s=e.rowKey,l=e.style,c=e.extra,u=e.getHeight,h=(0,z.Z)(e,Qe),f=r.record,g=r.indent,m=r.index,v=d(x,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),y=v.scrollX,b=v.flattenColumns,w=v.prefixCls,S=v.fixColumn,C=v.componentWidth,E=d(qe,["getComponent"]).getComponent,M=J(f,s,o,g),L=E(["body","row"],"div"),A=E(["body","cell"],"div"),T=M.rowSupportExpand,D=M.expanded,N=M.rowProps,I=M.expandedRowRender,B=M.expandedRowClassName;if(T&&D){var O=I(f,o,g+1,D),F=ne(B,f,o,g),j={};S&&(j={style:(0,_.Z)({},"--virtual-width","".concat(C,"px"))});var $="".concat(w,"-expanded-row-cell");n=i.createElement(L,{className:P()("".concat(w,"-expanded-row"),"".concat(w,"-expanded-row-level-").concat(g+1),F)},i.createElement(R,{component:A,prefixCls:w,className:P()($,(0,_.Z)({},"".concat($,"-fixed"),S)),additionalProps:j},O))}var H=(0,k.Z)((0,k.Z)({},l),{},{width:y});c&&(H.position="absolute",H.pointerEvents="none");var Z=i.createElement(L,(0,p.Z)({},N,h,{"data-row-key":s,ref:T?null:t,className:P()(a,"".concat(w,"-row"),null==N?void 0:N.className,(0,_.Z)({},"".concat(w,"-row-extra"),c)),style:(0,k.Z)((0,k.Z)({},H),null==N?void 0:N.style)}),b.map((function(e,t){return i.createElement(Xe,{key:t,component:A,rowInfo:M,column:e,colIndex:t,indent:g,index:o,renderIndex:m,record:f,inverse:c,getHeight:u})})));return T?i.createElement("div",{ref:t},Z,n):Z}));var et=b(Je),tt=i.forwardRef((function(e,t){var n=e.data,r=e.onScroll,o=d(x,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),s=o.flattenColumns,l=o.onColumnResize,c=o.getRowKey,u=o.expandedKeys,h=o.prefixCls,p=o.childrenColumnName,f=o.scrollX,g=o.direction,m=d(qe),v=m.sticky,y=m.scrollY,b=m.listItemHeight,w=m.getComponent,k=m.onScroll,_=i.useRef(),C=Q(n,p,u,c),P=i.useMemo((function(){var e=0;return s.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[s]),E=i.useMemo((function(){return P.map((function(e){return e[2]}))}),[P]);i.useEffect((function(){P.forEach((function(e){var t=(0,a.Z)(e,2),n=t[0],i=t[1];l(n,i)}))}),[P]),i.useImperativeHandle(t,(function(){var e,t={scrollTo:function(e){var t;null===(t=_.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=_.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=_.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=_.current)||void 0===t||t.scrollTo({left:e})}}),t}));var M=function(e,t){var n,i=null===(n=C[t])||void 0===n?void 0:n.record,r=e.onCell;if(r){var o,a=r(i,t);return null!==(o=null==a?void 0:a.rowSpan)&&void 0!==o?o:1}return 1},L=i.useMemo((function(){return{columnsOffset:E}}),[E]),A="".concat(h,"-tbody"),T=w(["body","wrapper"]),D={};return v&&(D.position="sticky",D.bottom=0,"object"===(0,S.Z)(v)&&v.offsetScroll&&(D.bottom=v.offsetScroll)),i.createElement(Ye.Provider,{value:L},i.createElement(We.Z,{fullHeight:!1,ref:_,prefixCls:"".concat(A,"-virtual"),styles:{horizontalScrollBar:D},className:A,height:y,itemHeight:b||24,data:C,itemKey:function(e){return c(e.record)},component:T,scrollWidth:f,direction:g,onVirtualScroll:function(e){var t,n=e.x;r({currentTarget:null===(t=_.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:k,extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,o=e.offsetY;if(n<0)return null;for(var a=s.filter((function(e){return 0===M(e,t)})),l=t,u=function(e){if(!(a=a.filter((function(t){return 0===M(t,e)}))).length)return l=e,1},h=t;h>=0&&!u(h);h-=1);for(var d=s.filter((function(e){return 1!==M(e,n)})),p=n,f=function(e){if(!(d=d.filter((function(t){return 1!==M(t,e)}))).length)return p=Math.max(e-1,n),1},g=n;g1}))&&m.push(e)},y=l;y<=p;y+=1)v(y);return m.map((function(e){var t=C[e],n=c(t.record,e),a=r(n);return i.createElement(et,{key:e,data:t,rowKey:n,index:e,style:{top:-o+a.top},extra:!0,getHeight:function(t){var i=e+t-1,o=c(C[i].record,i),a=r(n,o);return a.bottom-a.top}})}))}},(function(e,t,n){var r=c(e.record,t);return i.createElement(et,{data:e,rowKey:r,index:t,style:n.style})})))}));var nt=b(tt),it=function(e,t){var n=t.ref,r=t.onScroll;return i.createElement(nt,{ref:n,data:e,onScroll:r})};function rt(e,t){var n=e.data,r=e.columns,a=e.scroll,s=e.sticky,l=e.prefixCls,c=void 0===l?ze:l,u=e.className,h=e.listItemHeight,d=e.components,f=e.onScroll,g=a||{},m=g.x,v=g.y;"number"!=typeof m&&(m=1),"number"!=typeof v&&(v=500);var y=(0,I.zX)((function(e,t){return(0,M.Z)(d,e)||t})),b=(0,I.zX)(f),w=i.useMemo((function(){return{sticky:s,scrollY:v,listItemHeight:h,getComponent:y,onScroll:b}}),[s,v,h,y,b]);return i.createElement(qe.Provider,{value:w},i.createElement(Ve,(0,p.Z)({},e,{className:P()(u,"".concat(c,"-virtual")),scroll:(0,k.Z)((0,k.Z)({},a),{},{x:m}),components:(0,k.Z)((0,k.Z)({},d),{},{body:null!=n&&n.length?it:void 0}),columns:r,internalHooks:o,tailor:!0,ref:t})))}var ot=i.forwardRef(rt);function at(e){return y(ot,e)}at();var st=e=>null;var lt=e=>null,ct=n(84105),ut=i.createContext(null),ht=i.createContext({}),dt=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd,a="".concat(t,"-indent-unit"),s=[],l=0;l1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(c,u){for(var h,d=vt(i?i.pos:"0",u),p=yt(c[o],d),f=0;f1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,i=t.processEntity,r=t.onProcessFinished,o=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=o||l,u={},h={},d={posEntities:u,keyEntities:h};return n&&(d=n(d)||d),St(e,(function(e){var t=e.node,n=e.index,r=e.pos,o=e.key,a=e.parentPos,s=e.level,l={node:t,nodes:e.nodes,index:n,key:o,pos:r,level:s},c=yt(o,r);u[r]=l,h[c]=l,l.parent=u[a],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),i&&i(l,d)}),{externalGetKey:c,childrenPropName:a,fieldNames:s}),r&&r(d),d}function _t(e,t){var n=t.expandedKeys,i=t.selectedKeys,r=t.loadedKeys,o=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=ft(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==i.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==o.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==s.indexOf(e),pos:String(u?u.pos:""),dragOver:l===e&&0===c,dragOverGapTop:l===e&&-1===c,dragOverGapBottom:l===e&&1===c}}function Ct(e){var t=e.data,n=e.expanded,i=e.selected,r=e.checked,o=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,h=e.pos,d=e.active,p=e.eventKey,f=(0,k.Z)((0,k.Z)({},t),{},{expanded:n,selected:i,checked:r,loaded:o,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:h,active:d,key:p});return"props"in f||Object.defineProperty(f,"props",{get:function(){return(0,L.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),f}var Pt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Et="open",Mt="close",Lt=function(e){var t,n,r,o=e.eventKey,s=e.className,l=e.style,c=e.dragOver,u=e.dragOverGapTop,h=e.dragOverGapBottom,d=e.isLeaf,f=e.isStart,g=e.isEnd,m=e.expanded,v=e.selected,y=e.checked,b=e.halfChecked,w=e.loading,x=e.domRef,S=e.active,C=e.data,E=e.onMouseMove,M=e.selectable,L=(0,z.Z)(e,Pt),A=i.useContext(ut),T=i.useContext(ht),D=i.useRef(null),N=i.useState(!1),I=(0,a.Z)(N,2),B=I[0],R=I[1],O=!!(A.disabled||e.disabled||null!==(t=T.nodeDisabled)&&void 0!==t&&t.call(T,C)),F=i.useMemo((function(){return!(!A.checkable||!1===e.checkable)&&A.checkable}),[A.checkable,e.checkable]),j=function(t){O||F&&!e.disableCheckbox&&A.onNodeCheck(t,Ct(e),!y)},$=i.useMemo((function(){return"boolean"==typeof M?M:A.selectable}),[M,A.selectable]),H=function(t){A.onNodeClick(t,Ct(e)),$?function(t){O||A.onNodeSelect(t,Ct(e))}(t):j(t)},Z=function(t){A.onNodeDoubleClick(t,Ct(e))},K=function(t){A.onNodeMouseEnter(t,Ct(e))},G=function(t){A.onNodeMouseLeave(t,Ct(e))},U=function(t){A.onNodeContextMenu(t,Ct(e))},V=i.useMemo((function(){return!(!A.draggable||A.draggable.nodeDraggable&&!A.draggable.nodeDraggable(C))}),[A.draggable,C]),W=function(t){w||A.onNodeExpand(t,Ct(e))},q=i.useMemo((function(){var e=(ft(A.keyEntities,o)||{}).children;return Boolean((e||[]).length)}),[A.keyEntities,o]),X=i.useMemo((function(){return!1!==d&&(d||!A.loadData&&!q||A.loadData&&e.loaded&&!q)}),[d,A.loadData,q,e.loaded]);i.useEffect((function(){w||"function"!=typeof A.loadData||!m||X||e.loaded||A.onNodeLoad(Ct(e))}),[w,A.loadData,A.onNodeLoad,m,X,e]);var Q=i.useMemo((function(){var e;return null!==(e=A.draggable)&&void 0!==e&&e.icon?i.createElement("span",{className:"".concat(A.prefixCls,"-draggable-icon")},A.draggable.icon):null}),[A.draggable]),J=function(t){var n=e.switcherIcon||A.switcherIcon;return"function"==typeof n?n((0,k.Z)((0,k.Z)({},e),{},{isLeaf:t})):n},ee=i.useMemo((function(){if(!F)return null;var t="boolean"!=typeof F?F:null;return i.createElement("span",{className:P()("".concat(A.prefixCls,"-checkbox"),(0,_.Z)((0,_.Z)((0,_.Z)({},"".concat(A.prefixCls,"-checkbox-checked"),y),"".concat(A.prefixCls,"-checkbox-indeterminate"),!y&&b),"".concat(A.prefixCls,"-checkbox-disabled"),O||e.disableCheckbox)),onClick:j,role:"checkbox","aria-checked":b?"mixed":y,"aria-disabled":O||e.disableCheckbox,"aria-label":"Select ".concat("string"==typeof e.title?e.title:"tree node")},t)}),[F,y,b,O,e.disableCheckbox,e.title]),te=i.useMemo((function(){return X?null:m?Et:Mt}),[X,m]),ne=i.useMemo((function(){return i.createElement("span",{className:P()("".concat(A.prefixCls,"-iconEle"),"".concat(A.prefixCls,"-icon__").concat(te||"docu"),(0,_.Z)({},"".concat(A.prefixCls,"-icon_loading"),w))})}),[A.prefixCls,te,w]),ie=i.useMemo((function(){var t=Boolean(A.draggable);return!e.disabled&&t&&A.dragOverNodeKey===o?A.dropIndicatorRender({dropPosition:A.dropPosition,dropLevelOffset:A.dropLevelOffset,indent:A.indent,prefixCls:A.prefixCls,direction:A.direction}):null}),[A.dropPosition,A.dropLevelOffset,A.indent,A.prefixCls,A.direction,A.draggable,A.dragOverNodeKey,A.dropIndicatorRender]),re=i.useMemo((function(){var t,n,r=e.title,o=void 0===r?"---":r,a="".concat(A.prefixCls,"-node-content-wrapper");if(A.showIcon){var s=e.icon||A.icon;t=s?i.createElement("span",{className:P()("".concat(A.prefixCls,"-iconEle"),"".concat(A.prefixCls,"-icon__customize"))},"function"==typeof s?s(e):s):ne}else A.loadData&&w&&(t=ne);return n="function"==typeof o?o(C):A.titleRender?A.titleRender(C):o,i.createElement("span",{ref:D,title:"string"==typeof o?o:"",className:P()(a,"".concat(a,"-").concat(te||"normal"),(0,_.Z)({},"".concat(A.prefixCls,"-node-selected"),!O&&(v||B))),onMouseEnter:K,onMouseLeave:G,onContextMenu:U,onClick:H,onDoubleClick:Z},t,i.createElement("span",{className:"".concat(A.prefixCls,"-title")},n),ie)}),[A.prefixCls,A.showIcon,e,A.icon,ne,A.titleRender,C,te,K,G,U,H,Z]),oe=(0,Y.Z)(L,{aria:!0,data:!0}),ae=(ft(A.keyEntities,o)||{}).level,se=g[g.length-1],le=!O&&V,ce=A.draggingNodeKey===o,ue=void 0!==M?{"aria-selected":!!M}:void 0;return i.createElement("div",(0,p.Z)({ref:x,role:"treeitem","aria-expanded":d?void 0:m,className:P()(s,"".concat(A.prefixCls,"-treenode"),(r={},(0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)(r,"".concat(A.prefixCls,"-treenode-disabled"),O),"".concat(A.prefixCls,"-treenode-switcher-").concat(m?"open":"close"),!d),"".concat(A.prefixCls,"-treenode-checkbox-checked"),y),"".concat(A.prefixCls,"-treenode-checkbox-indeterminate"),b),"".concat(A.prefixCls,"-treenode-selected"),v),"".concat(A.prefixCls,"-treenode-loading"),w),"".concat(A.prefixCls,"-treenode-active"),S),"".concat(A.prefixCls,"-treenode-leaf-last"),se),"".concat(A.prefixCls,"-treenode-draggable"),V),"dragging",ce),(0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)(r,"drop-target",A.dropTargetKey===o),"drop-container",A.dropContainerKey===o),"drag-over",!O&&c),"drag-over-gap-top",!O&&u),"drag-over-gap-bottom",!O&&h),"filter-node",null===(n=A.filterTreeNode)||void 0===n?void 0:n.call(A,Ct(e))),"".concat(A.prefixCls,"-treenode-leaf"),X))),style:l,draggable:le,onDragStart:le?function(t){t.stopPropagation(),R(!0),A.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch(e){}}:void 0,onDragEnter:V?function(t){t.preventDefault(),t.stopPropagation(),A.onNodeDragEnter(t,e)}:void 0,onDragOver:V?function(t){t.preventDefault(),t.stopPropagation(),A.onNodeDragOver(t,e)}:void 0,onDragLeave:V?function(t){t.stopPropagation(),A.onNodeDragLeave(t,e)}:void 0,onDrop:V?function(t){t.preventDefault(),t.stopPropagation(),R(!1),A.onNodeDrop(t,e)}:void 0,onDragEnd:V?function(t){t.stopPropagation(),R(!1),A.onNodeDragEnd(t,e)}:void 0,onMouseMove:E},ue,oe),i.createElement(pt,{prefixCls:A.prefixCls,level:ae,isStart:f,isEnd:g}),Q,function(){if(X){var e=J(!0);return!1!==e?i.createElement("span",{className:P()("".concat(A.prefixCls,"-switcher"),"".concat(A.prefixCls,"-switcher-noop"))},e):null}var t=J(!1);return!1!==t?i.createElement("span",{onClick:W,className:P()("".concat(A.prefixCls,"-switcher"),"".concat(A.prefixCls,"-switcher_").concat(m?Et:Mt))},t):null}(),ee,re)};Lt.isTreeNode=1;var At=Lt;function Tt(e,t){if(!e)return[];var n=e.slice(),i=n.indexOf(t);return i>=0&&n.splice(i,1),n}function Dt(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function Nt(e){return e.split("-")}function It(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var i=t.key,r=t.children;n.push(i),e(r)}))}(ft(t,e).children),n}function Bt(e){if(e.parent){var t=Nt(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Rt(e,t,n,i,r,o,a,s,l,c){var u,h=e.clientX,d=e.clientY,p=e.target.getBoundingClientRect(),f=p.top,g=p.height,m=(("rtl"===c?-1:1)*(((null==r?void 0:r.x)||0)-h)-12)/i,v=l.filter((function(e){var t;return null===(t=s[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),y=ft(s,n.eventKey);if(d-1.5?o({dragNode:M,dropNode:L,dropPosition:1})?_=1:A=!1:o({dragNode:M,dropNode:L,dropPosition:0})?_=0:o({dragNode:M,dropNode:L,dropPosition:1})?_=1:A=!1:o({dragNode:M,dropNode:L,dropPosition:1})?_=1:A=!1,{dropPosition:_,dropLevelOffset:C,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:k,dropContainerKey:0===_?null:(null===(u=y.parent)||void 0===u?void 0:u.key)||null,dropAllowed:A}}function Ot(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function Ft(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,S.Z)(e))return(0,L.ZP)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function zt(e,t){var n=new Set;function i(e){if(!n.has(e)){var r=ft(t,e);if(r){n.add(e);var o=r.parent;r.node.disabled||o&&i(o.key)}}}return(e||[]).forEach((function(e){i(e)})),(0,pe.Z)(n)}function jt(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function $t(e){var t=e||{},n=t.disabled,i=t.disableCheckbox,r=t.checkable;return!(!n&&!i)||!1===r}function Ht(e,t,n,i){var r,o=[];r=i||$t;var a,s=new Set(e.filter((function(e){var t=!!ft(n,e);return t||o.push(e),t}))),l=new Map,c=0;return Object.keys(n).forEach((function(e){var t=n[e],i=t.level,r=l.get(i);r||(r=new Set,l.set(i,r)),r.add(t),c=Math.max(c,i)})),(0,L.ZP)(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,i){for(var r=new Set(e),o=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,o=e.children,a=void 0===o?[]:o;r.has(t)&&!i(n)&&a.filter((function(e){return!i(e.node)})).forEach((function(e){r.add(e.key)}))}));for(var s=new Set,l=n;l>=0;l-=1)(t.get(l)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!i(n)&&e.parent&&!s.has(e.parent.key))if(i(e.parent.node))s.add(t.key);else{var a=!0,l=!1;(t.children||[]).filter((function(e){return!i(e.node)})).forEach((function(e){var t=e.key,n=r.has(t);a&&!n&&(a=!1),l||!n&&!o.has(t)||(l=!0)})),a&&r.add(t.key),l&&o.add(t.key),s.add(t.key)}}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(jt(o,r))}}(s,l,c,r):function(e,t,n,i,r){for(var o=new Set(e),a=new Set(t),s=0;s<=i;s+=1)(n.get(s)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,s=void 0===i?[]:i;o.has(t)||a.has(t)||r(n)||s.filter((function(e){return!r(e.node)})).forEach((function(e){o.delete(e.key)}))}));a=new Set;for(var l=new Set,c=i;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var i=!0,s=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);i&&!n&&(i=!1),s||!n&&!a.has(t)||(s=!0)})),i||o.delete(t.key),s&&a.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(jt(a,o))}}(s,t.halfCheckedKeys,l,c,r),a}var Zt=n(18929);var Kt=n(32383),Gt=n(62673),Ut=n(22173),Vt=n(47889);const Wt={},qt="SELECT_ALL",Yt="SELECT_INVERT",Xt="SELECT_NONE",Qt=[],Jt=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,pe.Z)(n),(0,pe.Z)(Jt(e,t[e]))))})),n};var en=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:a,onChange:s,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:h,onSelectMultiple:d,columnWidth:p,type:f,selections:g,fixed:m,renderCell:v,hideSelectAll:y,checkStrictly:b=!0}=t||{},{prefixCls:w,data:x,pageData:S,getRecordByKey:k,getRowKey:_,expandType:C,childrenColumnName:E,locale:M,getPopupContainer:L}=e,A=(0,Kt.ln)("Table"),[T,D]=function(e){const[t,n]=(0,i.useState)(null);return[(0,i.useCallback)(((i,r,o)=>{const a=null!=t?t:i,s=Math.min(a||0,i),l=Math.max(a||0,i),c=r.slice(s,l+1).map((t=>e(t))),u=c.some((e=>!o.has(e))),h=[];return c.forEach((e=>{u?(o.has(e)||h.push(e),o.add(e)):(o.delete(e),h.push(e))})),n(u?l:null),h}),[t]),e=>{n(e)}]}((e=>e)),[N,I]=(0,Zt.Z)(r||o||Qt,{value:r}),B=i.useRef(new Map),R=(0,i.useCallback)((e=>{if(n){const t=new Map;e.forEach((e=>{let n=k(e);!n&&B.current.has(e)&&(n=B.current.get(e)),t.set(e,n)})),B.current=t}}),[k,n]);i.useEffect((()=>{R(N)}),[N]);const O=(0,i.useMemo)((()=>Jt(E,S)),[E,S]),{keyEntities:F}=(0,i.useMemo)((()=>{if(b)return{keyEntities:null};let e=x;if(n){const t=new Set(O.map(((e,t)=>_(e,t)))),n=Array.from(B.current).reduce(((e,n)=>{let[i,r]=n;return t.has(i)?e:e.concat(r)}),[]);e=[].concat((0,pe.Z)(e),(0,pe.Z)(n))}return kt(e,{externalGetKey:_,childrenPropName:E})}),[x,_,b,E,n,O]),z=(0,i.useMemo)((()=>{const e=new Map;return O.forEach(((t,n)=>{const i=_(t,n),r=(a?a(t):null)||{};e.set(i,r)})),e}),[O,_,a]),j=(0,i.useCallback)((e=>{const t=_(e);let n;return n=z.has(t)?z.get(_(e)):a?a(e):void 0,!!(null==n?void 0:n.disabled)}),[z,_]),[$,H]=(0,i.useMemo)((()=>{if(b)return[N||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=Ht(N,!0,F,j);return[e||[],t]}),[N,b,F,j]),Z=(0,i.useMemo)((()=>{const e="radio"===f?$.slice(0,1):$;return new Set(e)}),[$,f]),K=(0,i.useMemo)((()=>"radio"===f?new Set:new Set(H)),[H,f]);i.useEffect((()=>{t||I(Qt)}),[!!t]);const G=(0,i.useCallback)(((e,t)=>{let i,r;R(e),n?(i=e,r=e.map((e=>B.current.get(e)))):(i=[],r=[],e.forEach((e=>{const t=k(e);void 0!==t&&(i.push(e),r.push(t))}))),I(i),null==s||s(i,r,{type:t})}),[I,k,s,n]),U=(0,i.useCallback)(((e,t,n,i)=>{if(l){const r=n.map((e=>k(e)));l(k(e),t,r,i)}G(n,"single")}),[l,k,G]),V=(0,i.useMemo)((()=>{if(!g||y)return null;return(!0===g?[qt,Yt,Xt]:g).map((e=>e===qt?{key:"all",text:M.selectionAll,onSelect(){G(x.map(((e,t)=>_(e,t))).filter((e=>{const t=z.get(e);return!(null==t?void 0:t.disabled)||Z.has(e)})),"all")}}:e===Yt?{key:"invert",text:M.selectInvert,onSelect(){const e=new Set(Z);S.forEach(((t,n)=>{const i=_(t,n),r=z.get(i);(null==r?void 0:r.disabled)||(e.has(i)?e.delete(i):e.add(i))}));const t=Array.from(e);u&&(A.deprecated(!1,"onSelectInvert","onChange"),u(t)),G(t,"invert")}}:e===Xt?{key:"none",text:M.selectNone,onSelect(){null==h||h(),G(Array.from(Z).filter((e=>{const t=z.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,i=arguments.length,r=new Array(i),o=0;o{var n;if(!t)return e.filter((e=>e!==Wt));let r=(0,pe.Z)(e);const o=new Set(Z),a=O.map(_).filter((e=>!z.get(e).disabled)),s=a.every((e=>o.has(e))),l=a.some((e=>o.has(e))),u=()=>{const e=[];s?a.forEach((t=>{o.delete(t),e.push(t)})):a.forEach((t=>{o.has(t)||(o.add(t),e.push(t))}));const t=Array.from(o);null==c||c(!s,t.map((e=>k(e))),e.map((e=>k(e)))),G(t,"all"),D(null)};let h,x,S;if("radio"!==f){let e;if(V){const t={getPopupContainer:L,items:V.map(((e,t)=>{const{key:n,text:i,onSelect:r}=e;return{key:null!=n?n:t,onClick:()=>{null==r||r(a)},label:i}}))};e=i.createElement("div",{className:`${w}-selection-extra`},i.createElement(Ut.Z,{menu:t,getPopupContainer:L},i.createElement("span",null,i.createElement(ct.Z,null))))}const t=O.map(((e,t)=>{const n=_(e,t),i=z.get(n)||{};return Object.assign({checked:o.has(n)},i)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===O.length,r=n&&t.every((e=>{let{checked:t}=e;return t})),c=n&&t.some((e=>{let{checked:t}=e;return t}));x=i.createElement(Gt.Z,{checked:n?r:!!O.length&&s,indeterminate:n?!r&&c:!s&&l,onChange:u,disabled:0===O.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),h=!y&&i.createElement("div",{className:`${w}-selection`},x,e)}S="radio"===f?(e,t,n)=>{const r=_(t,n),a=o.has(r),s=z.get(r);return{node:i.createElement(Vt.ZP,Object.assign({},s,{checked:a,onClick:e=>{var t;e.stopPropagation(),null===(t=null==s?void 0:s.onClick)||void 0===t||t.call(s,e)},onChange:e=>{var t;o.has(r)||U(r,!0,[r],e.nativeEvent),null===(t=null==s?void 0:s.onChange)||void 0===t||t.call(s,e)}})),checked:a}}:(e,t,n)=>{var r;const s=_(t,n),l=o.has(s),c=K.has(s),u=z.get(s);let h;return h="nest"===C?c:null!==(r=null==u?void 0:u.indeterminate)&&void 0!==r?r:c,{node:i.createElement(Gt.Z,Object.assign({},u,{indeterminate:h,checked:l,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),null===(t=null==u?void 0:u.onClick)||void 0===t||t.call(u,e)},onChange:e=>{var t;const{nativeEvent:n}=e,{shiftKey:i}=n,r=a.findIndex((e=>e===s)),c=$.some((e=>a.includes(e)));if(i&&b&&c){const e=T(r,a,o),t=Array.from(o);null==d||d(!l,t.map((e=>k(e))),e.map((e=>k(e)))),G(t,"multiple")}else{const e=$;if(b){const t=l?Tt(e,s):Dt(e,s);U(s,!l,t,n)}else{const t=Ht([].concat((0,pe.Z)(e),[s]),!0,F,j),{checkedKeys:i,halfCheckedKeys:r}=t;let o=i;if(l){const e=new Set(i);e.delete(s),o=Ht(Array.from(e),{checked:!1,halfCheckedKeys:r},F,j).checkedKeys}U(s,!l,o,n)}}D(l?null:r),null===(t=null==u?void 0:u.onChange)||void 0===t||t.call(u,e)}})),checked:l}};if(!r.includes(Wt))if(0===r.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[ue])||void 0===t?void 0:t.columnType)}))){const[e,...t]=r;r=[e,Wt].concat((0,pe.Z)(t))}else r=[Wt].concat((0,pe.Z)(r));const E=r.indexOf(Wt);r=r.filter(((e,t)=>e!==Wt||t===E));const M=r[E-1],A=r[E+1];let N=m;void 0===N&&(void 0!==(null==A?void 0:A.fixed)?N=A.fixed:void 0!==(null==M?void 0:M.fixed)&&(N=M.fixed)),N&&M&&"EXPAND_COLUMN"===(null===(n=M[ue])||void 0===n?void 0:n.columnType)&&void 0===M.fixed&&(M.fixed=N);const I=P()(`${w}-selection-col`,{[`${w}-selection-col-with-dropdown`]:g&&"checkbox"===f}),B={fixed:N,width:p,className:`${w}-selection-column`,title:(null==t?void 0:t.columnTitle)?"function"==typeof t.columnTitle?t.columnTitle(x):t.columnTitle:h,render:(e,t,n)=>{const{node:i,checked:r}=S(e,t,n);return v?v(r,t,n,i):i},onCell:t.onCell,[ue]:{className:I}};return r.map((e=>e===Wt?B:e))}),[_,O,t,$,Z,K,p,V,C,z,d,U,j]);return[W,Z]};function tn(e,t){return(0,i.useImperativeHandle)(e,(()=>{const e=t(),{nativeElement:n}=e;return"undefined"!=typeof Proxy?new Proxy(n,{get(t,n){return e[n]?e[n]:Reflect.get(t,n)}}):(r=e,(i=n)._antProxy=i._antProxy||{},Object.keys(r).forEach((e=>{if(!(e in i._antProxy)){const t=i[e];i._antProxy[e]=t,i[e]=r[e]}})),i);var i,r}))}function nn(e,t,n,i){const r=n-t;return(e/=i/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}function rn(e){return null!=e&&e===e.window}var on=e=>{var t,n;if("undefined"==typeof window)return 0;let i=0;return rn(e)?i=e.pageYOffset:e instanceof Document?i=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(i=e.scrollTop),e&&!rn(e)&&"number"!=typeof i&&(i=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),i};function an(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:i,duration:r=450}=t,o=n(),a=on(o),s=Date.now(),l=()=>{const t=Date.now()-s,n=nn(t>r?r:t,a,e,r);rn(o)?o.scrollTo(window.pageXOffset,n):o instanceof Document||"HTMLDocument"===o.constructor.name?o.documentElement.scrollTop=n:o.scrollTop=n,t{const{prefixCls:n,onExpand:r,record:o,expanded:a,expandable:s}=t,l=`${n}-row-expand-icon`;return i.createElement("button",{type:"button",onClick:e=>{r(o,e),e.stopPropagation()},className:P()(l,{[`${l}-spaced`]:!s,[`${l}-expanded`]:s&&a,[`${l}-collapsed`]:s&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}};const vn=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function yn(e,t){return t?`${t}-${e}`:`${e}`}const bn=(e,t)=>"function"==typeof e?e(t):e;var wn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},xn=n(7657),Sn=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:wn}))};var kn=i.forwardRef(Sn);var _n=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const i=n[t];void 0!==i&&(e[t]=i)}))}return e},Cn=n(40192);var Pn=n(20743),En=n(584),Mn=n(93041),Ln=n(78857),An=n(99153),Tn=n(84851),Dn=n(13028),Nn=n(19257),In=n(93046),Bn=n(10228);var Rn=function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r}return i.createElement("div",{style:o})};function On(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var Fn=n(77900);var zn=function(e,t){var n=i.useState(!1),r=(0,a.Z)(n,2),o=r[0],s=r[1];(0,l.Z)((function(){if(o)return e(),function(){t()}}),[o]),(0,l.Z)((function(){return s(!0),function(){s(!1)}}),[])},jn=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],$n=i.forwardRef((function(e,t){var n=e.className,r=e.style,o=e.motion,s=e.motionNodes,c=e.motionType,u=e.onMotionStart,h=e.onMotionEnd,d=e.active,f=e.treeNodeRequiredProps,g=(0,z.Z)(e,jn),m=i.useState(!0),v=(0,a.Z)(m,2),y=v[0],b=v[1],w=i.useContext(ut).prefixCls,x=s&&"hide"!==c;(0,l.Z)((function(){s&&x!==y&&b(x)}),[s]);var S=i.useRef(!1),k=function(){s&&!S.current&&(S.current=!0,h())};zn((function(){s&&u()}),k);return s?i.createElement(Fn.ZP,(0,p.Z)({ref:t,visible:y},o,{motionAppear:"show"===c,onVisibleChanged:function(e){x===e&&k()}}),(function(e,t){var n=e.className,r=e.style;return i.createElement("div",{ref:t,className:P()("".concat(w,"-treenode-motion"),n),style:r},s.map((function(e){var t=Object.assign({},(On(e.data),e.data)),n=e.title,r=e.key,o=e.isStart,a=e.isEnd;delete t.children;var s=_t(r,f);return i.createElement(At,(0,p.Z)({},t,s,{title:n,active:d,data:e.data,key:r,isStart:o,isEnd:a}))})))})):i.createElement(At,(0,p.Z)({domRef:t,className:n,style:r},g,{active:d}))}));var Hn=$n;function Zn(e,t,n){var i=e.findIndex((function(e){return e.key===n})),r=e[i+1],o=t.findIndex((function(e){return e.key===n}));if(r){var a=t.findIndex((function(e){return e.key===r.key}));return t.slice(o+1,a)}return t.slice(o+1)}var Kn=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Gn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Un=function(){},Vn="RC_TREE_MOTION_".concat(Math.random()),Wn={key:Vn},qn={key:Vn,level:0,index:0,pos:"0",node:Wn,nodes:[Wn]},Yn={parent:null,children:[],pos:qn.pos,data:Wn,title:null,key:Vn,isStart:[],isEnd:[]};function Xn(e,t,n,i){return!1!==t&&n?e.slice(0,Math.ceil(n/i)+1):e}function Qn(e){return yt(e.key,e.pos)}var Jn=i.forwardRef((function(e,t){var n=e.prefixCls,r=e.data,o=(e.selectable,e.checkable,e.expandedKeys),s=e.selectedKeys,c=e.checkedKeys,u=e.loadedKeys,h=e.loadingKeys,d=e.halfCheckedKeys,f=e.keyEntities,g=e.disabled,m=e.dragging,v=e.dragOverNodeKey,y=e.dropPosition,b=e.motion,w=e.height,x=e.itemHeight,S=e.virtual,k=e.scrollWidth,_=e.focusable,C=e.activeItem,P=e.focused,E=e.tabIndex,M=e.onKeyDown,L=e.onFocus,A=e.onBlur,T=e.onActiveChange,D=e.onListChangeStart,N=e.onListChangeEnd,I=(0,z.Z)(e,Kn),B=i.useRef(null),R=i.useRef(null);i.useImperativeHandle(t,(function(){return{scrollTo:function(e){B.current.scrollTo(e)},getIndentWidth:function(){return R.current.offsetWidth}}}));var O=i.useState(o),F=(0,a.Z)(O,2),j=F[0],$=F[1],H=i.useState(r),Z=(0,a.Z)(H,2),K=Z[0],G=Z[1],U=i.useState(r),V=(0,a.Z)(U,2),W=V[0],q=V[1],Y=i.useState([]),X=(0,a.Z)(Y,2),Q=X[0],J=X[1],ee=i.useState(null),te=(0,a.Z)(ee,2),ne=te[0],ie=te[1],re=i.useRef(r);function oe(){var e=re.current;G(e),q(e),J([]),ie(null),N()}re.current=r,(0,l.Z)((function(){$(o);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,i=t.length;if(1!==Math.abs(n-i))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var i=t.filter((function(e){return!n.has(e)}));return 1===i.length?i[0]:null}return n ").concat(t);return t}(C)),i.createElement("div",null,i.createElement("input",{style:Gn,disabled:!1===_||g,tabIndex:!1!==_?E:null,onKeyDown:M,onFocus:L,onBlur:A,value:"",onChange:Un,"aria-label":"for screen reader"})),i.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},i.createElement("div",{className:"".concat(n,"-indent")},i.createElement("div",{ref:R,className:"".concat(n,"-indent-unit")}))),i.createElement(We.Z,(0,p.Z)({},I,{data:ae,itemKey:Qn,height:w,fullHeight:!1,virtual:S,itemHeight:x,scrollWidth:k,prefixCls:"".concat(n,"-list"),ref:B,role:"tree",onVisibleChange:function(e){e.every((function(e){return Qn(e)!==Vn}))&&oe()}}),(function(e){var t=e.pos,n=Object.assign({},(On(e.data),e.data)),r=e.title,o=e.key,a=e.isStart,s=e.isEnd,l=yt(o,t);delete n.key,delete n.children;var c=_t(l,se);return i.createElement(Hn,(0,p.Z)({},n,c,{title:r,active:!!C&&o===C.key,pos:t,data:e.data,isStart:a,isEnd:s,motion:b,motionNodes:o===Vn?Q:null,motionType:ne,onMotionStart:D,onMotionEnd:oe,treeNodeRequiredProps:se,onMouseMove:function(){T(null)}}))})))}));var ei=Jn,ti=function(e){(0,Nn.Z)(n,e);var t=(0,In.Z)(n);function n(){var e;(0,An.Z)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2],o=e.state,a=o.dragChildrenKeys,s=o.dropPosition,l=o.dropTargetKey,c=o.dropTargetPos,u=o.dropAllowed;if(u){var h=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==l){var d=(0,k.Z)((0,k.Z)({},_t(l,e.getTreeNodeRequiredProps())),{},{active:(null===(i=e.getActiveItem())||void 0===i?void 0:i.key)===l,data:ft(e.state.keyEntities,l).node}),p=a.includes(l);(0,L.ZP)(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var f=Nt(c),g={event:t,node:Ct(d),dragNode:e.dragNodeProps?Ct(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(a),dropToGap:0!==s,dropPosition:s+Number(f[f.length-1])};r||null==h||h(g),e.dragNodeProps=null}}})),(0,_.Z)((0,Dn.Z)(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),(0,_.Z)((0,Dn.Z)(e),"triggerExpandActionExpand",(function(t,n){var i=e.state,r=i.expandedKeys,o=i.flattenNodes,a=n.expanded,s=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var l=o.filter((function(e){return e.key===s}))[0],c=Ct((0,k.Z)((0,k.Z)({},_t(s,e.getTreeNodeRequiredProps())),{},{data:l.data}));e.setExpandedKeys(a?Tt(r,s):Dt(r,s)),e.onNodeExpand(t,c)}})),(0,_.Z)((0,Dn.Z)(e),"onNodeClick",(function(t,n){var i=e.props,r=i.onClick;"click"===i.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)})),(0,_.Z)((0,Dn.Z)(e),"onNodeDoubleClick",(function(t,n){var i=e.props,r=i.onDoubleClick;"doubleClick"===i.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)})),(0,_.Z)((0,Dn.Z)(e),"onNodeSelect",(function(t,n){var i=e.state.selectedKeys,r=e.state,o=r.keyEntities,a=r.fieldNames,s=e.props,l=s.onSelect,c=s.multiple,u=n.selected,h=n[a.key],d=!u,p=(i=d?c?Dt(i,h):[h]:Tt(i,h)).map((function(e){var t=ft(o,e);return t?t.node:null})).filter(Boolean);e.setUncontrolledState({selectedKeys:i}),null==l||l(i,{event:"select",selected:d,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})})),(0,_.Z)((0,Dn.Z)(e),"onNodeCheck",(function(t,n,i){var r,o=e.state,a=o.keyEntities,s=o.checkedKeys,l=o.halfCheckedKeys,c=e.props,u=c.checkStrictly,h=c.onCheck,d=n.key,p={event:"check",node:n,checked:i,nativeEvent:t.nativeEvent};if(u){var f=i?Dt(s,d):Tt(s,d);r={checked:f,halfChecked:Tt(l,d)},p.checkedNodes=f.map((function(e){return ft(a,e)})).filter(Boolean).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:f})}else{var g=Ht([].concat((0,pe.Z)(s),[d]),!0,a),m=g.checkedKeys,v=g.halfCheckedKeys;if(!i){var y=new Set(m);y.delete(d);var b=Ht(Array.from(y),{checked:!1,halfCheckedKeys:v},a);m=b.checkedKeys,v=b.halfCheckedKeys}r=m,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,m.forEach((function(e){var t=ft(a,e);if(t){var n=t.node,i=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:i})}})),e.setUncontrolledState({checkedKeys:m},!1,{halfCheckedKeys:v})}null==h||h(r,p)})),(0,_.Z)((0,Dn.Z)(e),"onNodeLoad",(function(t){var n,i=t.key,r=ft(e.state.keyEntities,i);if(null==r||null===(n=r.children)||void 0===n||!n.length){var o=new Promise((function(n,r){e.setState((function(o){var a=o.loadedKeys,s=void 0===a?[]:a,l=o.loadingKeys,c=void 0===l?[]:l,u=e.props,h=u.loadData,d=u.onLoad;return!h||s.includes(i)||c.includes(i)?null:(h(t).then((function(){var r=Dt(e.state.loadedKeys,i);null==d||d(r,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:r}),e.setState((function(e){return{loadingKeys:Tt(e.loadingKeys,i)}})),n()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:Tt(e.loadingKeys,i)}})),e.loadingRetryTimes[i]=(e.loadingRetryTimes[i]||0)+1,e.loadingRetryTimes[i]>=10){var o=e.state.loadedKeys;(0,L.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:Dt(o,i)}),n()}r(t)})),{loadingKeys:Dt(c,i)})}))}));return o.catch((function(){})),o}})),(0,_.Z)((0,Dn.Z)(e),"onNodeMouseEnter",(function(t,n){var i=e.props.onMouseEnter;null==i||i({event:t,node:n})})),(0,_.Z)((0,Dn.Z)(e),"onNodeMouseLeave",(function(t,n){var i=e.props.onMouseLeave;null==i||i({event:t,node:n})})),(0,_.Z)((0,Dn.Z)(e),"onNodeContextMenu",(function(t,n){var i=e.props.onRightClick;i&&(t.preventDefault(),i({event:t,node:n}))})),(0,_.Z)((0,Dn.Z)(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,i=new Array(n),r=0;r1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,o=!0,a={};Object.keys(t).forEach((function(n){e.props.hasOwnProperty(n)?o=!1:(r=!0,a[n]=t[n])})),!r||n&&!o||e.setState((0,k.Z)((0,k.Z)({},a),i))}})),(0,_.Z)((0,Dn.Z)(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return(0,Tn.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,i=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:i}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,r=t.flattenNodes,o=t.keyEntities,a=t.draggingNodeKey,s=t.activeKey,l=t.dropLevelOffset,c=t.dropContainerKey,u=t.dropTargetKey,h=t.dropPosition,d=t.dragOverNodeKey,f=t.indent,g=this.props,m=g.prefixCls,v=g.className,y=g.style,b=g.showLine,w=g.focusable,x=g.tabIndex,k=void 0===x?0:x,C=g.selectable,E=g.showIcon,M=g.icon,L=g.switcherIcon,A=g.draggable,T=g.checkable,D=g.checkStrictly,N=g.disabled,I=g.motion,B=g.loadData,R=g.filterTreeNode,O=g.height,F=g.itemHeight,z=g.scrollWidth,j=g.virtual,$=g.titleRender,H=g.dropIndicatorRender,Z=g.onContextMenu,K=g.onScroll,G=g.direction,U=g.rootClassName,V=g.rootStyle,W=(0,Y.Z)(this.props,{aria:!0,data:!0});A&&(e="object"===(0,S.Z)(A)?A:"function"==typeof A?{nodeDraggable:A}:{});var q={prefixCls:m,selectable:C,showIcon:E,icon:M,switcherIcon:L,draggable:e,draggingNodeKey:a,checkable:T,checkStrictly:D,disabled:N,keyEntities:o,dropLevelOffset:l,dropContainerKey:c,dropTargetKey:u,dropPosition:h,dragOverNodeKey:d,indent:f,direction:G,dropIndicatorRender:H,loadData:B,filterTreeNode:R,titleRender:$,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return i.createElement(ut.Provider,{value:q},i.createElement("div",{className:P()(m,v,U,(0,_.Z)((0,_.Z)((0,_.Z)({},"".concat(m,"-show-line"),b),"".concat(m,"-focused"),n),"".concat(m,"-active-focused"),null!==s)),style:V},i.createElement(ei,(0,p.Z)({ref:this.listRef,prefixCls:m,style:y,data:r,disabled:N,selectable:C,checkable:!!T,motion:I,dragging:null!==a,height:O,itemHeight:F,virtual:j,focusable:w,focused:n,tabIndex:k,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Z,onScroll:K,scrollWidth:z},this.getTreeNodeRequiredProps(),W))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,i=t.prevProps,r={prevProps:e};function o(t){return!i&&e.hasOwnProperty(t)||i&&i[t]!==e[t]}var a=t.fieldNames;if(o("fieldNames")&&(a=bt(e.fieldNames),r.fieldNames=a),o("treeData")?n=e.treeData:o("children")&&((0,L.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=wt(e.children)),n){r.treeData=n;var s=kt(n,{fieldNames:a});r.keyEntities=(0,k.Z)((0,_.Z)({},Vn,qn),s.keyEntities)}var l,c=r.keyEntities||t.keyEntities;if(o("expandedKeys")||i&&o("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!i&&e.defaultExpandParent?zt(e.expandedKeys,c):e.expandedKeys;else if(!i&&e.defaultExpandAll){var u=(0,k.Z)({},c);delete u[Vn];var h=[];Object.keys(u).forEach((function(e){var t=u[e];t.children&&t.children.length&&h.push(t.key)})),r.expandedKeys=h}else!i&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?zt(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,n||r.expandedKeys){var d=xt(n||t.treeData,r.expandedKeys||t.expandedKeys,a);r.flattenNodes=d}if((e.selectable&&(o("selectedKeys")?r.selectedKeys=Ot(e.selectedKeys,e):!i&&e.defaultSelectedKeys&&(r.selectedKeys=Ot(e.defaultSelectedKeys,e))),e.checkable)&&(o("checkedKeys")?l=Ft(e.checkedKeys)||{}:!i&&e.defaultCheckedKeys?l=Ft(e.defaultCheckedKeys)||{}:n&&(l=Ft(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),l)){var p=l,f=p.checkedKeys,g=void 0===f?[]:f,m=p.halfCheckedKeys,v=void 0===m?[]:m;if(!e.checkStrictly){var y=Ht(g,!0,c);g=y.checkedKeys,v=y.halfCheckedKeys}r.checkedKeys=g,r.halfCheckedKeys=v}return o("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}]),n}(i.Component);(0,_.Z)(ti,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Rn,allowDrop:function(){return!0},expandAction:!1}),(0,_.Z)(ti,"TreeNode",At);var ni=ti,ii={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},ri=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:ii}))};var oi=i.forwardRef(ri),ai={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},si=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:ai}))};var li=i.forwardRef(si),ci={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},ui=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:ci}))};var hi=i.forwardRef(ui),di={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},pi=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:di}))};var fi=i.forwardRef(pi),gi=n(86641),mi=n(66604),vi=n(36170),yi=n(63356),bi=n(34961),wi=n(51636),xi=n(16931);const Si=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:i,directoryNodeSelectedColor:r,motionDurationMid:o,borderRadius:a,controlItemBgHover:s}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:a},"&:hover:before":{background:s}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:r},[`${t}-node-content-wrapper`]:{color:r,background:"transparent","&:before, &:hover:before":{background:i}}}}}},ki=new mi.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),_i=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Ci=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,mi.bf)(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Pi=(e,t)=>{const{treeCls:n,treeNodeCls:i,treeNodePadding:r,titleHeight:o,indentSize:a,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},(0,yi.Wf)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},(0,yi.oN)(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${i}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:ki,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[i]:{display:"flex",alignItems:"flex-start",marginBottom:r,lineHeight:(0,mi.bf)(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:r},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${i}-disabled${i}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${i}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${i}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,textAlign:"center",visibility:"visible",color:c},[`&${i}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},_i(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:o,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},Ci(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${i}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${i}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,mi.bf)(t.calc(o).div(2).equal())} !important`}})}},Ei=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=`.${e}`,r=`${i}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),a=(0,wi.IX)(t,{treeCls:i,treeNodeCls:r,treeNodePadding:o});return[Pi(e,a),n&&Si(a)].filter(Boolean)};var Mi=(0,xi.I$)("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:(0,vi.C2)(`${n}-checkbox`,e)},Ei(n,e),(0,bi.Z)(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:i}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:i,nodeSelectedColor:e.colorText}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));var Li=function(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:a="ltr"}=e,s="ltr"===a?"left":"right",l={[s]:-n*o+4,["ltr"===a?"right":"left"]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[s]=o+4}return i.createElement("div",{style:l,className:`${r}-drop-indicator`})},Ai={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Ti=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:Ai}))};var Di=i.forwardRef(Ti),Ni=n(58617),Ii={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Bi=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:Ii}))};var Ri=i.forwardRef(Bi),Oi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Fi=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:Oi}))};var zi=i.forwardRef(Fi),ji=n(22703);var $i=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o,switcherLoadingIcon:a}=e,{isLeaf:s,expanded:l,loading:c}=r;if(c)return i.isValidElement(a)?a:i.createElement(Ni.Z,{className:`${t}-switcher-loading-icon`});let u;if(o&&"object"==typeof o&&(u=o.showLeafIcon),s){if(!o)return null;if("boolean"!=typeof u&&u){const e="function"==typeof u?u(r):u,n=`${t}-switcher-line-custom-icon`;return i.isValidElement(e)?(0,ji.Tm)(e,{className:P()(e.props.className||"",n)}):e}return u?i.createElement(oi,{className:`${t}-switcher-line-icon`}):i.createElement("span",{className:`${t}-switcher-leaf-line`})}const h=`${t}-switcher-icon`,d="function"==typeof n?n(r):n;return i.isValidElement(d)?(0,ji.Tm)(d,{className:P()(d.props.className||"",h)}):void 0!==d?d:o?l?i.createElement(Ri,{className:`${t}-switcher-line-icon`}):i.createElement(zi,{className:`${t}-switcher-line-icon`}):i.createElement(Di,{className:h})};const Hi=i.forwardRef(((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:a,tree:s}=i.useContext(sn.E_),{prefixCls:l,className:c,showIcon:u=!1,showLine:h,switcherIcon:d,switcherLoadingIcon:p,blockNode:f=!1,children:g,checkable:m=!1,selectable:v=!0,draggable:y,motion:b,style:w}=e,x=r("tree",l),S=r(),k=null!=b?b:Object.assign(Object.assign({},(0,gi.Z)(S)),{motionAppear:!1}),_=Object.assign(Object.assign({},e),{checkable:m,selectable:v,showIcon:u,motion:k,blockNode:f,showLine:Boolean(h),dropIndicatorRender:Li}),[C,E,M]=Mi(x),[,L]=(0,gn.ZP)(),A=L.paddingXS/2+((null===(n=L.Tree)||void 0===n?void 0:n.titleHeight)||L.controlHeightSM),T=i.useMemo((()=>{if(!y)return!1;let e={};switch(typeof y){case"function":e.nodeDraggable=y;break;case"object":e=Object.assign({},y)}return!1!==e.icon&&(e.icon=e.icon||i.createElement(fi,null)),e}),[y]);return C(i.createElement(ni,Object.assign({itemHeight:A,ref:t,virtual:a},_,{style:Object.assign(Object.assign({},null==s?void 0:s.style),w),prefixCls:x,className:P()({[`${x}-icon-hide`]:!u,[`${x}-block-node`]:f,[`${x}-unselectable`]:!v,[`${x}-rtl`]:"rtl"===o},null==s?void 0:s.className,c,E,M),direction:o,checkable:m?i.createElement("span",{className:`${x}-checkbox-inner`}):m,selectable:v,switcherIcon:e=>i.createElement($i,{prefixCls:x,switcherIcon:d,switcherLoadingIcon:p,treeNodeProps:e,showLine:h}),draggable:T}),g))}));var Zi=Hi;function Ki(e,t,n){const{key:i,children:r}=n;e.forEach((function(e){const o=e[i],a=e[r];!1!==t(o,e)&&Ki(a||[],t,n)}))}function Gi(e){let{treeData:t,expandedKeys:n,startKey:i,endKey:r,fieldNames:o}=e;const a=[];let s=0;if(i&&i===r)return[i];if(!i||!r)return[];return Ki(t,(e=>{if(2===s)return!1;if(function(e){return e===i||e===r}(e)){if(a.push(e),0===s)s=1;else if(1===s)return s=2,!1}else 1===s&&a.push(e);return n.includes(e)}),bt(o)),a}function Ui(e,t,n){const i=(0,pe.Z)(t),r=[];return Ki(e,((e,t)=>{const n=i.indexOf(e);return-1!==n&&(r.push(t),i.splice(n,1)),!!i.length}),bt(n)),r}var Vi=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,a=Vi(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const s=i.useRef(null),l=i.useRef(null),[c,u]=i.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[h,d]=i.useState((()=>(()=>{const{keyEntities:e}=kt(qi(a));let t;return t=n?Object.keys(e):r?zt(a.expandedKeys||o||[],e):a.expandedKeys||o||[],t})()));i.useEffect((()=>{"selectedKeys"in a&&u(a.selectedKeys)}),[a.selectedKeys]),i.useEffect((()=>{"expandedKeys"in a&&d(a.expandedKeys)}),[a.expandedKeys]);const{getPrefixCls:p,direction:f}=i.useContext(sn.E_),{prefixCls:g,className:m,showIcon:v=!0,expandAction:y="click"}=a,b=Vi(a,["prefixCls","className","showIcon","expandAction"]),w=p("tree",g),x=P()(`${w}-directory`,{[`${w}-directory-rtl`]:"rtl"===f},m);return i.createElement(Zi,Object.assign({icon:Wi,ref:t,blockNode:!0},b,{showIcon:v,expandAction:y,prefixCls:w,className:x,expandedKeys:h,selectedKeys:c,onSelect:(e,t)=>{var n;const{multiple:i,fieldNames:r}=a,{node:o,nativeEvent:c}=t,{key:d=""}=o,p=qi(a),f=Object.assign(Object.assign({},t),{selected:!0}),g=(null==c?void 0:c.ctrlKey)||(null==c?void 0:c.metaKey),m=null==c?void 0:c.shiftKey;let v;i&&g?(v=e,s.current=d,l.current=v,f.selectedNodes=Ui(p,v,r)):i&&m?(v=Array.from(new Set([].concat((0,pe.Z)(l.current||[]),(0,pe.Z)(Gi({treeData:p,expandedKeys:h,startKey:d,endKey:s.current,fieldNames:r}))))),f.selectedNodes=Ui(p,v,r)):(v=[d],s.current=d,l.current=v,f.selectedNodes=Ui(p,v,r)),null===(n=a.onSelect)||void 0===n||n.call(a,v,f),"selectedKeys"in a||u(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in a||d(e),null===(n=a.onExpand)||void 0===n?void 0:n.call(a,e,t)}}))};var Xi=i.forwardRef(Yi);const Qi=Zi;Qi.DirectoryTree=Xi,Qi.TreeNode=At;var Ji=Qi,er=n(47472),tr=n(49397);var nr=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:a}=e;return n?i.createElement("div",{className:`${r}-filter-dropdown-search`},i.createElement(tr.Z,{prefix:i.createElement(er.Z,null),placeholder:o.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null};const ir=e=>{const{keyCode:t}=e;t===Bn.Z.ENTER&&e.stopPropagation()};var rr=i.forwardRef(((e,t)=>i.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:ir,ref:t},e.children)));function or(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:i}=e;t.push(n),i&&(t=[].concat((0,pe.Z)(t),(0,pe.Z)(or(i))))})),t}function ar(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function sr(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:a,filterSearch:s}=e;return t.map(((e,t)=>{const l=String(e.value);if(e.children)return{key:l||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:sr({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:a,filterSearch:s})};const c=o?Gt.Z:Vt.ZP,u={key:void 0!==e.value?l:t,label:i.createElement(i.Fragment,null,i.createElement(c,{checked:r.includes(l)}),i.createElement("span",null,e.text))};return a.trim()?"function"==typeof s?s(a,e)?u:null:ar(a,e.text)?u:null:u}))}function lr(e){return e||[]}var cr=e=>{var t,n,r,o;const{tablePrefixCls:a,prefixCls:s,column:l,dropdownPrefixCls:u,columnKey:h,filterOnClose:d,filterMultiple:p,filterMode:f="menu",filterSearch:g=!1,filterState:m,triggerFilter:v,locale:y,children:b,getPopupContainer:w,rootClassName:x}=e,{filterResetToDefaultFilteredValue:S,defaultFilteredValue:k,filterDropdownProps:_={},filterDropdownOpen:C,filterDropdownVisible:E,onFilterDropdownVisibleChange:M,onFilterDropdownOpenChange:L}=l,[A,T]=i.useState(!1),D=!(!m||!(null===(t=m.filteredKeys)||void 0===t?void 0:t.length)&&!m.forceFiltered),N=e=>{var t;T(e),null===(t=_.onOpenChange)||void 0===t||t.call(_,e),null==L||L(e),null==M||M(e)};const I=null!==(o=null!==(r=null!==(n=_.open)&&void 0!==n?n:C)&&void 0!==r?r:E)&&void 0!==o?o:A,B=null==m?void 0:m.filteredKeys,[R,O]=function(e){const t=i.useRef(e),n=(0,Cn.Z)();return[()=>t.current,e=>{t.current=e,n()}]}(lr(B)),F=e=>{let{selectedKeys:t}=e;O(t)},z=(e,t)=>{let{node:n,checked:i}=t;F(p?{selectedKeys:e}:{selectedKeys:i&&n.key?[n.key]:[]})};i.useEffect((()=>{A&&F({selectedKeys:lr(B)})}),[B]);const[j,$]=i.useState([]),H=e=>{$(e)},[Z,K]=i.useState(""),G=e=>{const{value:t}=e.target;K(t)};i.useEffect((()=>{A||K("")}),[A]);const U=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||m&&m.filteredKeys?(0,c.Z)(t,null==m?void 0:m.filteredKeys,!0)?null:void v({column:l,key:h,filteredKeys:t}):null},V=()=>{N(!1),U(R())},W=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&U([]),t&&N(!1),K(""),O(S?(k||[]).map((e=>String(e))):[])},q=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&N(!1),U(R())},Y=P()({[`${u}-menu-without-submenu`]:(X=l.filters||[],!X.some((e=>{let{children:t}=e;return t})))});var X;const Q=e=>{if(e.target.checked){const e=or(null==l?void 0:l.filters).map((e=>String(e)));O(e)}else O([])},J=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),i={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(i.children=J({filters:e.children})),i}))},ee=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>ee(e))))||[]})};let te;const{direction:ne,renderEmpty:ie}=i.useContext(sn.E_);if("function"==typeof l.filterDropdown)te=l.filterDropdown({prefixCls:`${u}-custom`,setSelectedKeys:e=>F({selectedKeys:e}),selectedKeys:R(),confirm:q,clearFilters:W,filters:l.filters,visible:I,close:()=>{N(!1)}});else if(l.filterDropdown)te=l.filterDropdown;else{const e=R()||[],t=()=>{var t,n;const r=null!==(t=null==ie?void 0:ie("Table.filter"))&&void 0!==t?t:i.createElement(En.Z,{image:En.Z.PRESENTED_IMAGE_SIMPLE,description:y.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(l.filters||[]).length)return r;if("tree"===f)return i.createElement(i.Fragment,null,i.createElement(nr,{filterSearch:g,value:Z,onChange:G,tablePrefixCls:a,locale:y}),i.createElement("div",{className:`${a}-filter-dropdown-tree`},p?i.createElement(Gt.Z,{checked:e.length===or(l.filters).length,indeterminate:e.length>0&&e.length"function"==typeof g?g(Z,ee(e)):ar(Z,e.title):void 0})));const o=sr({filters:l.filters||[],filterSearch:g,prefixCls:s,filteredKeys:R(),filterMultiple:p,searchValue:Z}),c=o.every((e=>null===e));return i.createElement(i.Fragment,null,i.createElement(nr,{filterSearch:g,value:Z,onChange:G,tablePrefixCls:a,locale:y}),c?r:i.createElement(Mn.Z,{selectable:!0,multiple:p,prefixCls:`${u}-menu`,className:Y,onSelect:F,onDeselect:F,selectedKeys:e,getPopupContainer:w,openKeys:j,onOpenChange:H,items:o}))},n=()=>S?(0,c.Z)((k||[]).map((e=>String(e))),e,!0):0===e.length;te=i.createElement(i.Fragment,null,t(),i.createElement("div",{className:`${s}-dropdown-btns`},i.createElement(Pn.ZP,{type:"link",size:"small",disabled:n(),onClick:()=>W()},y.filterReset),i.createElement(Pn.ZP,{type:"primary",size:"small",onClick:V},y.filterConfirm)))}l.filterDropdown&&(te=i.createElement(Ln.J,{selectable:void 0},te)),te=i.createElement(rr,{className:`${s}-dropdown`},te);const re=_n({trigger:["click"],placement:"rtl"===ne?"bottomLeft":"bottomRight",children:(()=>{let e;return e="function"==typeof l.filterIcon?l.filterIcon(D):l.filterIcon?l.filterIcon:i.createElement(kn,null),i.createElement("span",{role:"button",tabIndex:-1,className:P()(`${s}-trigger`,{active:D}),onClick:e=>{e.stopPropagation()}},e)})(),getPopupContainer:w},Object.assign(Object.assign({},_),{rootClassName:P()(x,_.rootClassName),open:I,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==B&&O(lr(B)),N(e),e||l.filterDropdown||!d||V())},dropdownRender:()=>"function"==typeof(null==_?void 0:_.dropdownRender)?_.dropdownRender(te):te}));return i.createElement("div",{className:`${s}-column`},i.createElement("span",{className:`${a}-column-title`},b),i.createElement(Ut.Z,Object.assign({},re)))};const ur=(e,t,n)=>{let i=[];return(e||[]).forEach(((e,r)=>{var o;const a=yn(r,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(o=null==t?void 0:t.map(String))&&void 0!==o?o:t),i.push({column:e,key:vn(e,a),filteredKeys:t,forceFiltered:e.filtered})}else i.push({column:e,key:vn(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(i=[].concat((0,pe.Z)(i),(0,pe.Z)(ur(e.children,t,a))))})),i};function hr(e,t,n,r,o,a,s,l,c){return n.map(((n,u)=>{const h=yn(u,l),{filterOnClose:d=!0,filterMultiple:p=!0,filterMode:f,filterSearch:g}=n;let m=n;if(m.filters||m.filterDropdown){const l=vn(m,h),u=r.find((e=>{let{key:t}=e;return l===t}));m=Object.assign(Object.assign({},m),{title:r=>i.createElement(cr,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:m,columnKey:l,filterState:u,filterOnClose:d,filterMultiple:p,filterMode:f,filterSearch:g,triggerFilter:a,locale:o,getPopupContainer:s,rootClassName:c},bn(n.title,r))})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:hr(e,t,m.children,r,o,a,s,h,c)})),m}))}const dr=e=>{const t={};return e.forEach((e=>{let{key:n,filteredKeys:i,column:r}=e;const o=n,{filters:a,filterDropdown:s}=r;if(s)t[o]=i||null;else if(Array.isArray(i)){const e=or(a);t[o]=e.filter((e=>i.includes(String(e))))}else t[o]=null})),t},pr=(e,t,n)=>t.reduce(((e,i)=>{const{column:{onFilter:r,filters:o},filteredKeys:a}=i;return r&&a&&a.length?e.map((e=>Object.assign({},e))).filter((e=>a.some((i=>{const a=or(o),s=a.findIndex((e=>String(e)===String(i))),l=-1!==s?a[s]:i;return e[n]&&(e[n]=pr(e[n],t,n)),r(l,e)})))):e}),e),fr=e=>e.flatMap((e=>"children"in e?[e].concat((0,pe.Z)(fr(e.children||[]))):[e]));var gr=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:a,locale:s,rootClassName:l}=e,c=((0,Kt.ln)("Table"),i.useMemo((()=>fr(r||[])),[r])),[u,h]=i.useState((()=>ur(c,!0))),d=i.useMemo((()=>{const e=ur(c,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:i}=e;void 0!==i?t=!1:n=!1})),t){const e=(c||[]).map(((e,t)=>vn(e,yn(t))));return u.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=c[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[c,u]),p=i.useMemo((()=>dr(d)),[d]),f=e=>{const t=d.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),h(t),o(dr(t),t)};return[e=>hr(t,n,e,d,s,f,a,void 0,l),d,p]};var mr=(e,t,n)=>{const r=i.useRef({});return[function(i){var o;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){const a=new Map;function s(e){e.forEach(((e,i)=>{const r=n(e,i);a.set(r,e),e&&"object"==typeof e&&t in e&&s(e[t]||[])}))}s(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return null===(o=r.current.kvMap)||void 0===o?void 0:o.get(i)}]},vr=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:yr}))),c=_n(s,a,{total:o>0?o:e}),u=Math.ceil((o||e)/c.pageSize);c.current>u&&(c.current=u||1);const h=(e,t)=>{l({current:null!=e?e:1,pageSize:t||c.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,i)=>{var r;n&&(null===(r=n.onChange)||void 0===r||r.call(n,e,i)),h(e,i),t(e,i||(null==c?void 0:c.pageSize))}}),h]},wr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},xr=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:wr}))};var Sr=i.forwardRef(xr),kr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},_r=function(e,t){return i.createElement(xn.Z,(0,p.Z)({},e,{ref:t,icon:kr}))};var Cr=i.forwardRef(_r),Pr=n(55544);const Er="ascend",Mr="descend",Lr=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,Ar=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,Tr=(e,t,n)=>{let i=[];const r=(e,t)=>{i.push({column:e,key:vn(e,t),multiplePriority:Lr(e),sortOrder:e.sortOrder})};return(e||[]).forEach(((e,o)=>{const a=yn(o,n);e.children?("sortOrder"in e&&r(e,a),i=[].concat((0,pe.Z)(i),(0,pe.Z)(Tr(e.children,t,a)))):e.sorter&&("sortOrder"in e?r(e,a):t&&e.defaultSortOrder&&i.push({column:e,key:vn(e,a),multiplePriority:Lr(e),sortOrder:e.defaultSortOrder}))})),i},Dr=(e,t,n,r,o,a,s,l)=>{const c=(t||[]).map(((t,c)=>{const u=yn(c,l);let h=t;if(h.sorter){const l=h.sortDirections||o,c=void 0===h.showSorterTooltip?s:h.showSorterTooltip,d=vn(h,u),p=n.find((e=>{let{key:t}=e;return t===d})),f=p?p.sortOrder:null,g=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(l,f);let m;if(t.sortIcon)m=t.sortIcon({sortOrder:f});else{const t=l.includes(Er)&&i.createElement(Cr,{className:P()(`${e}-column-sorter-up`,{active:f===Er})}),n=l.includes(Mr)&&i.createElement(Sr,{className:P()(`${e}-column-sorter-down`,{active:f===Mr})});m=i.createElement("span",{className:P()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},i.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:v,triggerAsc:y,triggerDesc:b}=a||{};let w=v;g===Mr?w=b:g===Er&&(w=y);const x="object"==typeof c?Object.assign({title:w},c):{title:w};h=Object.assign(Object.assign({},h),{className:P()(h.className,{[`${e}-column-sort`]:f}),title:n=>{const r=`${e}-column-sorters`,o=i.createElement("span",{className:`${e}-column-title`},bn(t.title,n)),a=i.createElement("div",{className:r},o,m);return c?"boolean"!=typeof c&&"sorter-icon"===(null==c?void 0:c.target)?i.createElement("div",{className:`${r} ${e}-column-sorters-tooltip-target-sorter`},o,i.createElement(Pr.Z,Object.assign({},x),m)):i.createElement(Pr.Z,Object.assign({},x),a):a},onHeaderCell:n=>{var i;const o=(null===(i=t.onHeaderCell)||void 0===i?void 0:i.call(t,n))||{},a=o.onClick,s=o.onKeyDown;o.onClick=e=>{r({column:t,key:d,sortOrder:g,multiplePriority:Lr(t)}),null==a||a(e)},o.onKeyDown=e=>{e.keyCode===Bn.Z.ENTER&&(r({column:t,key:d,sortOrder:g,multiplePriority:Lr(t)}),null==s||s(e))};const l=((e,t)=>{const n=bn(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),c=null==l?void 0:l.toString();return f&&(o["aria-sort"]="ascend"===f?"ascending":"descending"),o["aria-label"]=c||"",o.className=P()(o.className,`${e}-column-has-sorters`),o.tabIndex=0,t.ellipsis&&(o.title=(null!=l?l:"").toString()),o}})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:Dr(e,h.children,n,r,o,a,s,u)})),h}));return c},Nr=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Ir=e=>{const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(Nr);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},Nr(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Br=(e,t,n)=>{const i=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),r=e.slice(),o=i.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return Ar(t)&&n}));return o.length?r.sort(((e,t)=>{for(let n=0;n{const i=e[n];return i?Object.assign(Object.assign({},e),{[n]:Br(i,t,n)}):e})):r};var Rr=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:a,onSorterChange:s}=e,[l,c]=i.useState(Tr(n,!0)),u=(e,t)=>{const n=[];return e.forEach(((e,i)=>{const r=yn(i,t);if(n.push(vn(e,r)),Array.isArray(e.children)){const t=u(e.children,r);n.push.apply(n,(0,pe.Z)(t))}})),n},h=i.useMemo((()=>{let e=!0;const t=Tr(n,!1);if(!t.length){const e=u(n);return l.filter((t=>{let{key:n}=t;return e.includes(n)}))}const i=[];function r(t){e?i.push(t):i.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let o=null;return t.forEach((t=>{null===o?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:o=!0)):(o&&!1!==t.multiplePriority||(e=!1),r(t))})),i}),[n,l]),d=i.useMemo((()=>{var e,t;const n=h.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}}),[h]),p=e=>{let t;t=!1!==e.multiplePriority&&h.length&&!1!==h[0].multiplePriority?[].concat((0,pe.Z)(h.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],c(t),s(Ir(t),t)};return[e=>Dr(t,e,h,p,r,o,a),h,d,()=>Ir(h)]};const Or=(e,t)=>e.map((e=>{const n=Object.assign({},e);return n.title=bn(e.title,t),"children"in n&&(n.children=Or(n.children,t)),n}));var Fr=e=>[i.useCallback((t=>Or(t,e)),[e])];var zr=Ge(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:i}=t;return n!==i}));var jr=at(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:i}=t;return n!==i})),$r=n(17835);var Hr=e=>{const{componentCls:t,lineWidth:n,lineType:i,tableBorderColor:r,tableHeaderBg:o,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:l}=e,c=`${(0,mi.bf)(n)} ${i} ${r}`,u=(e,i,r)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,mi.bf)(l(i).mul(-1).equal())}\n ${(0,mi.bf)(l(l(r).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,mi.bf)(l(a).mul(-1).equal())} ${(0,mi.bf)(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,mi.bf)(n)} 0 ${(0,mi.bf)(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}};var Zr=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},yi.vS),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}};var Kr=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}};var Gr=e=>{const{componentCls:t,antCls:n,motionDurationSlow:i,lineWidth:r,paddingXS:o,lineType:a,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:h,tablePaddingHorizontal:d,tableExpandedRowBg:p,paddingXXS:f,expandIconMarginTop:g,expandIconSize:m,expandIconHalfInner:v,expandIconScale:y,calc:b}=e,w=`${(0,mi.bf)(r)} ${a} ${s}`,x=b(f).sub(r).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},(0,yi.Nd)(e)),{position:"relative",float:"left",width:m,height:m,color:"inherit",lineHeight:(0,mi.bf)(m),background:l,border:w,borderRadius:u,transform:`scale(${y})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${i} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:x,insetInlineStart:x,height:r},"&::after":{top:x,bottom:x,insetInlineStart:v,width:r,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${(0,mi.bf)(b(h).mul(-1).equal())} ${(0,mi.bf)(b(d).mul(-1).equal())}`,padding:`${(0,mi.bf)(h)} ${(0,mi.bf)(d)}`}}}};var Ur=e=>{const{componentCls:t,antCls:n,iconCls:i,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:o,paddingXXS:a,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:h,headerIconColor:d,fontSizeSM:p,tablePaddingHorizontal:f,borderRadius:g,motionDurationSlow:m,colorTextDescription:v,colorPrimary:y,tableHeaderFilterActiveBg:b,colorTextDisabled:w,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:k,controlItemBgActive:_,boxShadowSecondary:C,filterDropdownMenuBg:P,calc:E}=e,M=`${n}-dropdown`,L=`${t}-filter-dropdown`,A=`${n}-tree`,T=`${(0,mi.bf)(c)} ${u} ${h}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:E(a).mul(-1).equal(),marginInline:`${(0,mi.bf)(a)} ${(0,mi.bf)(E(f).div(2).mul(-1).equal())}`,padding:`0 ${(0,mi.bf)(a)}`,color:d,fontSize:p,borderRadius:g,cursor:"pointer",transition:`all ${m}`,"&:hover":{color:v,background:b},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[L]:Object.assign(Object.assign({},(0,yi.Wf)(e)),{minWidth:r,backgroundColor:x,borderRadius:g,boxShadow:C,overflow:"hidden",[`${M}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:P,"&:empty::after":{display:"block",padding:`${(0,mi.bf)(s)} 0`,color:w,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${L}-tree`]:{paddingBlock:`${(0,mi.bf)(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:k},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:_}}},[`${L}-search`]:{padding:s,borderBottom:T,"&-input":{input:{minWidth:o},[i]:{color:w}}},[`${L}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${L}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,mi.bf)(E(s).sub(c).equal())} ${(0,mi.bf)(s)}`,overflow:"hidden",borderTop:T}})}},{[`${n}-dropdown ${L}, ${L}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};var Vr=e=>{const{componentCls:t,lineWidth:n,colorSplit:i,motionDurationSlow:r,zIndexTableFixed:o,tableBg:a,zIndexTableSticky:s,calc:l}=e,c=i;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:o,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:l(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:l(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}};var Wr=e=>{const{componentCls:t,antCls:n,margin:i}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${(0,mi.bf)(i)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}};var qr=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${(0,mi.bf)(n)} ${(0,mi.bf)(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${(0,mi.bf)(n)} ${(0,mi.bf)(n)}`}}}}};var Yr=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}};var Xr=e=>{const{componentCls:t,antCls:n,iconCls:i,fontSizeIcon:r,padding:o,paddingXS:a,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:h,tableRowHoverBg:d,tablePaddingHorizontal:p,calc:f}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(r).add(f(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:f(c).add(f(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(r).add(f(o).div(4)).add(f(a).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:f(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,mi.bf)(f(p).div(4).equal()),[i]:{color:s,fontSize:r,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:h}}},[`> ${t}-cell-row-hover`]:{background:d}}}}}};var Qr=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:i}=e,r=(e,r,o,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${(0,mi.bf)(r)} ${(0,mi.bf)(o)}`},[`${t}-filter-trigger`]:{marginInlineEnd:(0,mi.bf)(i(o).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${(0,mi.bf)(i(r).mul(-1).equal())} ${(0,mi.bf)(i(o).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:(0,mi.bf)(i(r).mul(-1).equal()),marginInline:`${(0,mi.bf)(i(n).sub(o).equal())} ${(0,mi.bf)(i(o).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:(0,mi.bf)(i(o).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}};var Jr=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:i,headerIconColor:r,headerIconHoverColor:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:i,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}};var eo=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:i,tableScrollThumbBgHover:r,tableScrollThumbSize:o,tableScrollBg:a,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:h}=e,d=`${(0,mi.bf)(c)} ${u} ${h}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,mi.bf)(o)} !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:d,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:i,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}};var to=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:i,calc:r}=e,o=`${(0,mi.bf)(n)} ${e.lineType} ${i}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${(0,mi.bf)(r(n).mul(-1).equal())} 0 ${i}`}}}};var no=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:i,lineType:r,tableBorderColor:o,calc:a}=e,s=`${(0,mi.bf)(i)} ${r} ${o}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row, \n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,mi.bf)(i)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(i).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}};const io=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:i,tablePaddingHorizontal:r,tableExpandColumnWidth:o,lineWidth:a,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:h,tableHeaderTextColor:d,motionDurationMid:p,tableHeaderBg:f,tableHeaderCellSplitColor:g,tableFooterTextColor:m,tableFooterBg:v,calc:y}=e,b=`${(0,mi.bf)(a)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,yi.dF)()),{[t]:Object.assign(Object.assign({},(0,yi.Wf)(e)),{fontSize:c,background:u,borderRadius:`${(0,mi.bf)(h)} ${(0,mi.bf)(h)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,mi.bf)(h)} ${(0,mi.bf)(h)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${(0,mi.bf)(i)} ${(0,mi.bf)(r)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${(0,mi.bf)(i)} ${(0,mi.bf)(r)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:f,borderBottom:b,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:b,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:(0,mi.bf)(y(i).mul(-1).equal()),marginInline:`${(0,mi.bf)(y(o).sub(r).equal())}\n ${(0,mi.bf)(y(r).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:f,borderBottom:b,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${(0,mi.bf)(i)} ${(0,mi.bf)(r)}`,color:m,background:v}})}};var ro=(0,xi.I$)("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:i,controlInteractiveSize:r,headerBg:o,headerColor:a,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:h,rowSelectedHoverBg:d,rowExpandedBg:p,cellPaddingBlock:f,cellPaddingInline:g,cellPaddingBlockMD:m,cellPaddingInlineMD:v,cellPaddingBlockSM:y,cellPaddingInlineSM:b,borderColor:w,footerBg:x,footerColor:S,headerBorderRadius:k,cellFontSize:_,cellFontSizeMD:C,cellFontSizeSM:P,headerSplitColor:E,fixedHeaderSortActiveBg:M,headerFilterHoverBg:L,filterDropdownBg:A,expandIconBg:T,selectionColumnWidth:D,stickyScrollBarBg:N,calc:I}=e,B=(0,wi.IX)(e,{tableFontSize:_,tableBg:i,tableRadius:k,tablePaddingVertical:f,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:m,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:b,tableBorderColor:w,tableHeaderTextColor:a,tableHeaderBg:o,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:E,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:L,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:h,tableSelectedRowHoverBg:d,zIndexTableFixed:2,zIndexTableSticky:I(2).add(1).equal({unit:!1}),tableFontSizeMiddle:C,tableFontSizeSmall:P,tableSelectionColumnWidth:D,tableExpandIconBg:T,tableExpandColumnWidth:I(r).add(I(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[io(B),Wr(B),to(B),Jr(B),Ur(B),Hr(B),qr(B),Gr(B),to(B),Kr(B),Xr(B),Vr(B),eo(B),Zr(B),Qr(B),Yr(B),no(B)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:i,colorFillSecondary:r,colorFillContent:o,controlItemBgActive:a,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:h,borderRadiusLG:d,controlHeight:p,colorTextPlaceholder:f,fontSize:g,fontSizeSM:m,lineHeight:v,lineWidth:y,colorIcon:b,colorIconHover:w,opacityLoading:x,controlInteractiveSize:S}=e,k=new $r.t(r).onBackground(n).toHexString(),_=new $r.t(o).onBackground(n).toHexString(),C=new $r.t(t).onBackground(n).toHexString(),P=new $r.t(b),E=new $r.t(w),M=S/2-y,L=2*M+3*y;return{headerBg:C,headerColor:i,headerSortActiveBg:k,headerSortHoverBg:_,bodySortBg:C,rowHoverBg:C,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:h,headerBorderRadius:d,footerBg:C,footerColor:i,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:h,fixedHeaderSortActiveBg:k,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:f,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-3*y)/2-Math.ceil((1.4*m-3*y)/2),headerIconColor:P.clone().setA(P.a*x).toRgbString(),headerIconHoverColor:E.clone().setA(E.a*x).toRgbString(),expandIconHalfInner:M,expandIconSize:L,expandIconScale:S/L}}),{unitless:{expandIconScale:!0}});const oo=[],ao=(e,t)=>{var n,r;const{prefixCls:a,className:s,rootClassName:l,style:c,size:u,bordered:h,dropdownPrefixCls:d,dataSource:p,pagination:f,rowSelection:g,rowKey:m="key",rowClassName:v,columns:y,children:b,childrenColumnName:w,onChange:x,getPopupContainer:S,loading:k,expandIcon:_,expandable:C,expandedRowRender:E,expandIconColumnIndex:M,indentSize:L,scroll:A,sortDirections:T,locale:D,showSorterTooltip:N={target:"full-header"},virtual:I}=e;(0,Kt.ln)("Table");const B=i.useMemo((()=>y||ke(b)),[y,b]),R=i.useMemo((()=>B.some((e=>e.responsive))),[B]),O=(0,hn.Z)(R),F=i.useMemo((()=>{const e=new Set(Object.keys(O).filter((e=>O[e])));return B.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[B,O]),z=(0,gt.Z)(e,["className","style","columns"]),{locale:j=dn.Z,direction:$,table:H,renderEmpty:Z,getPrefixCls:K,getPopupContainer:G}=i.useContext(sn.E_),U=(0,un.Z)(u),V=Object.assign(Object.assign({},j.Table),D),W=p||oo,q=K("table",a),Y=K("dropdown",d),[,X]=(0,gn.ZP)(),Q=(0,cn.Z)(q),[J,ee,te]=ro(q,Q),ne=Object.assign(Object.assign({childrenColumnName:w,expandIconColumnIndex:M},C),{expandIcon:null!==(n=null==C?void 0:C.expandIcon)&&void 0!==n?n:null===(r=null==H?void 0:H.expandable)||void 0===r?void 0:r.expandIcon}),{childrenColumnName:ie="children"}=ne,re=i.useMemo((()=>W.some((e=>null==e?void 0:e[ie]))?"nest":E||(null==C?void 0:C.expandedRowRender)?"row":null),[W]),oe={body:i.useRef(null)},ae=function(e){return(t,n)=>{const i=t.querySelector(`.${e}-container`);let r=n;if(i){const e=getComputedStyle(i);r=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return r}}(q),se=i.useRef(null),le=i.useRef(null);tn(t,(()=>Object.assign(Object.assign({},le.current),{nativeElement:se.current})));const ce=i.useMemo((()=>"function"==typeof m?m:e=>null==e?void 0:e[m]),[m]),[ue]=mr(W,ie,ce),he={},de=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var i,r,o,a;const s=Object.assign(Object.assign({},he),e);n&&(null===(i=he.resetPagination)||void 0===i||i.call(he),(null===(r=s.pagination)||void 0===r?void 0:r.current)&&(s.pagination.current=1),f&&(null===(o=f.onChange)||void 0===o||o.call(f,1,null===(a=s.pagination)||void 0===a?void 0:a.pageSize))),A&&!1!==A.scrollToFirstRowOnChange&&oe.body.current&&an(0,{getContainer:()=>oe.body.current}),null==x||x(s.pagination,s.filters,s.sorter,{currentDataSource:pr(Br(W,s.sorterStates,ie),s.filterStates,ie),action:t})},[pe,fe,ge,me]=Rr({prefixCls:q,mergedColumns:F,onSorterChange:(e,t)=>{de({sorter:e,sorterStates:t},"sort",!1)},sortDirections:T||["ascend","descend"],tableLocale:V,showSorterTooltip:N}),ve=i.useMemo((()=>Br(W,fe,ie)),[W,fe]);he.sorter=me(),he.sorterStates=fe;const[ye,be,we]=gr({prefixCls:q,locale:V,dropdownPrefixCls:Y,mergedColumns:F,onFilterChange:(e,t)=>{de({filters:e,filterStates:t},"filter",!0)},getPopupContainer:S||G,rootClassName:P()(l,Q)}),xe=pr(ve,be,ie);he.filters=we,he.filterStates=be;const Se=i.useMemo((()=>{const e={};return Object.keys(we).forEach((t=>{null!==we[t]&&(e[t]=we[t])})),Object.assign(Object.assign({},ge),{filters:e})}),[ge,we]),[_e]=Fr(Se),[Ce,Pe]=br(xe.length,((e,t)=>{de({pagination:Object.assign(Object.assign({},he.pagination),{current:e,pageSize:t})},"paginate")}),f);he.pagination=!1===f?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},i=t&&"object"==typeof t?t:{};return Object.keys(i).forEach((t=>{const i=e[t];"function"!=typeof i&&(n[t]=i)})),n}(Ce,f),he.resetPagination=Pe;const Ee=i.useMemo((()=>{if(!1===f||!Ce.pageSize)return xe;const{current:e=1,total:t,pageSize:n=yr}=Ce;return xe.lengthn?xe.slice((e-1)*n,e*n):xe:xe.slice((e-1)*n,e*n)}),[!!f,xe,null==Ce?void 0:Ce.current,null==Ce?void 0:Ce.pageSize,null==Ce?void 0:Ce.total]),[Me,Le]=en({prefixCls:q,data:xe,pageData:Ee,getRowKey:ce,getRecordByKey:ue,expandType:re,childrenColumnName:ie,locale:V,getPopupContainer:S||G},g);ne.__PARENT_RENDER_ICON__=ne.expandIcon,ne.expandIcon=ne.expandIcon||_||mn(V),"nest"===re&&void 0===ne.expandIconColumnIndex?ne.expandIconColumnIndex=g?1:0:ne.expandIconColumnIndex>0&&g&&(ne.expandIconColumnIndex-=1),"number"!=typeof ne.indentSize&&(ne.indentSize="number"==typeof L?L:15);const Ae=i.useCallback((e=>_e(Me(ye(pe(e))))),[pe,ye,Me]);let Te,De,Ne;if(!1!==f&&(null==Ce?void 0:Ce.total)){let e;e=Ce.size?Ce.size:"small"===U||"middle"===U?"small":void 0;const t=t=>i.createElement(pn.Z,Object.assign({},Ce,{className:P()(`${q}-pagination ${q}-pagination-${t}`,Ce.className),size:e})),n="rtl"===$?"left":"right",{position:r}=Ce;if(null!==r&&Array.isArray(r)){const e=r.find((e=>e.includes("top"))),i=r.find((e=>e.includes("bottom"))),o=r.every((e=>"none"==`${e}`));e||i||o||(De=t(n)),e&&(Te=t(e.toLowerCase().replace("top",""))),i&&(De=t(i.toLowerCase().replace("bottom","")))}else De=t(n)}"boolean"==typeof k?Ne={spinning:k}:"object"==typeof k&&(Ne=Object.assign({spinning:!0},k));const Ie=P()(te,Q,`${q}-wrapper`,null==H?void 0:H.className,{[`${q}-wrapper-rtl`]:"rtl"===$},s,l,ee),Be=Object.assign(Object.assign({},null==H?void 0:H.style),c),Re=void 0!==(null==D?void 0:D.emptyText)?D.emptyText:(null==Z?void 0:Z("Table"))||i.createElement(ln.Z,{componentName:"Table"}),Oe=I?jr:zr,Fe={},ze=i.useMemo((()=>{const{fontSize:e,lineHeight:t,lineWidth:n,padding:i,paddingXS:r,paddingSM:o}=X,a=Math.floor(e*t);switch(U){case"middle":return 2*o+a+n;case"small":return 2*r+a+n;default:return 2*i+a+n}}),[X,U]);return I&&(Fe.listItemHeight=ze),J(i.createElement("div",{ref:se,className:Ie,style:Be},i.createElement(fn.Z,Object.assign({spinning:!1},Ne),Te,i.createElement(Oe,Object.assign({},Fe,z,{ref:le,columns:F,direction:$,expandable:ne,prefixCls:q,className:P()({[`${q}-middle`]:"middle"===U,[`${q}-small`]:"small"===U,[`${q}-bordered`]:h,[`${q}-empty`]:0===W.length},te,Q,ee),data:Ee,rowKey:ce,rowClassName:(e,t,n)=>{let i;return i="function"==typeof v?P()(v(e,t,n)):P()(v),P()({[`${q}-row-selected`]:Le.has(ce(e,t))},i)},emptyText:Re,internalHooks:o,internalRefs:oe,transformColumns:Ae,getContainerWidth:ae})),De)))};var so=i.forwardRef(ao);const lo=(e,t)=>{const n=i.useRef(0);return n.current+=1,i.createElement(so,Object.assign({},e,{ref:t,_renderTimes:n.current}))},co=i.forwardRef(lo);co.SELECTION_COLUMN=Wt,co.EXPAND_COLUMN=r,co.SELECTION_ALL=qt,co.SELECTION_INVERT=Yt,co.SELECTION_NONE=Xt,co.Column=st,co.ColumnGroup=lt,co.Summary=K;var uo=co},52017:function(e,t,n){"use strict";n.d(t,{Z:function(){return Ae}});var i=n(59301),r=n(99267),o=n(18785),a=n(14809),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},l=n(7657),c=function(e,t){return i.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:s}))};var u=i.forwardRef(c),h=n(92310),d=n.n(h),p=n(4635),f=n(20439),g=n(50298),m=n(93664),v=n(62646),y=n(18929),b=n(49658),w=(0,i.createContext)(null),x=n(95190),S=n(29301),k=n(6089),_=n(8654),C=n(16089),P=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,o=e.indicator,a=void 0===o?{}:o,s=a.size,l=a.align,c=void 0===l?"center":l,u=(0,i.useState)(),h=(0,g.Z)(u,2),d=h[0],p=h[1],f=(0,i.useRef)(),m=i.useCallback((function(e){return"function"==typeof s?s(e):"number"==typeof s?s:e}),[s]);function v(){C.Z.cancel(f.current)}return(0,i.useEffect)((function(){var e={};if(t)if(n){e.width=m(t.width);var i=r?"right":"left";"start"===c&&(e[i]=t[i]),"center"===c&&(e[i]=t[i]+t.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===c&&(e[i]=t[i]+t.width,e.transform="translateX(-100%)")}else e.height=m(t.height),"start"===c&&(e.top=t.top),"center"===c&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===c&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return v(),f.current=(0,C.Z)((function(){p(e)})),v}),[t,n,r,c,m]),{style:d}},E={width:0,height:0,left:0,top:0};function M(e,t){var n=i.useRef(e),r=i.useState({}),o=(0,g.Z)(r,2)[1];return[n.current,function(e){var i="function"==typeof e?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,o({})}]}var L=Math.pow(.995,20);var A=n(34280);function T(e){var t=(0,i.useState)(0),n=(0,g.Z)(t,2),r=n[0],o=n[1],a=(0,i.useRef)(0),s=(0,i.useRef)();return s.current=e,(0,A.o)((function(){var e;null===(e=s.current)||void 0===e||e.call(s)}),[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}var D={width:0,height:0,left:0,top:0,right:0};function N(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function I(e){return String(e).replace(/"/g,"TABS_DQ")}function B(e,t,n,i){return!(!n||i||!1===e||void 0===e&&(!1===t||null===t))}var R=i.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return r&&!1!==r.showAdd?i.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null})),O=R;var F=i.forwardRef((function(e,t){var n,r=e.position,o=e.prefixCls,a=e.extra;if(!a)return null;var s={};return"object"!==(0,m.Z)(a)||i.isValidElement(a)?s.right=a:s=a,"right"===r&&(n=s.right),"left"===r&&(n=s.left),n?i.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null})),z=n(96478),j=n(28321),$=n(10228),H=i.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,s=e.locale,l=e.mobile,c=e.more,u=void 0===c?{}:c,h=e.style,f=e.className,m=e.editable,v=e.tabBarGutter,y=e.rtl,b=e.removeAriaLabel,w=e.onTabClick,x=e.getPopupContainer,S=e.popupClassName,k=(0,i.useState)(!1),_=(0,g.Z)(k,2),C=_[0],P=_[1],E=(0,i.useState)(null),M=(0,g.Z)(E,2),L=M[0],A=M[1],T=u.icon,D=void 0===T?"More":T,N="".concat(r,"-more-popup"),I="".concat(n,"-dropdown"),R=null!==L?"".concat(N,"-").concat(L):null,F=null==s?void 0:s.dropdownAriaLabel;var H=i.createElement(j.ZP,{onClick:function(e){var t=e.key,n=e.domEvent;w(t,n),P(!1)},prefixCls:"".concat(I,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[L],"aria-label":void 0!==F?F:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,a=e.key,s=e.label,l=B(t,o,m,n);return i.createElement(j.sN,{key:a,id:"".concat(N,"-").concat(a),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(a),disabled:n},i.createElement("span",null,s),l&&i.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}(e,a)}},o||m.removeIcon||"×"))})));function Z(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===L}))||0,i=t.length,r=0;rt?"left":"right"})})),te=(0,g.Z)(ee,2),ne=te[0],ie=te[1],re=M(0,(function(e,t){!J&&A&&A({direction:e>t?"top":"bottom"})})),oe=(0,g.Z)(re,2),ae=oe[0],se=oe[1],le=(0,i.useState)([0,0]),ce=(0,g.Z)(le,2),ue=ce[0],he=ce[1],de=(0,i.useState)([0,0]),pe=(0,g.Z)(de,2),fe=pe[0],ge=pe[1],me=(0,i.useState)([0,0]),ve=(0,g.Z)(me,2),ye=ve[0],be=ve[1],we=(0,i.useState)([0,0]),xe=(0,g.Z)(we,2),Se=xe[0],ke=xe[1],_e=function(e){var t=(0,i.useRef)([]),n=(0,i.useState)({}),r=(0,g.Z)(n,2)[1],o=(0,i.useRef)("function"==typeof e?e():e),a=T((function(){var e=o.current;t.current.forEach((function(t){e=t(e)})),t.current=[],o.current=e,r({})}));return[o.current,function(e){t.current.push(e),a()}]}(new Map),Ce=(0,g.Z)(_e,2),Pe=Ce[0],Ee=Ce[1],Me=function(e,t,n){return(0,i.useMemo)((function(){for(var n,i=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||E,o=r.left+r.width,a=0;aOe?Oe:e}J&&c?(Re=0,Oe=Math.max(0,Ae-Ie)):(Re=Math.min(0,Ie-Ae),Oe=0);var ze=(0,i.useRef)(null),je=(0,i.useState)(),$e=(0,g.Z)(je,2),He=$e[0],Ze=$e[1];function Ke(){Ze(Date.now())}function Ge(){ze.current&&clearTimeout(ze.current)}!function(e,t){var n=(0,i.useState)(),r=(0,g.Z)(n,2),o=r[0],a=r[1],s=(0,i.useState)(0),l=(0,g.Z)(s,2),c=l[0],u=l[1],h=(0,i.useState)(0),d=(0,g.Z)(h,2),p=d[0],f=d[1],m=(0,i.useState)(),v=(0,g.Z)(m,2),y=v[0],b=v[1],w=(0,i.useRef)(),x=(0,i.useRef)(),S=(0,i.useRef)(null);S.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,i=t.screenY;a({x:n,y:i}),window.clearInterval(w.current)},onTouchMove:function(e){if(o){var n=e.touches[0],i=n.screenX,r=n.screenY;a({x:i,y:r});var s=i-o.x,l=r-o.y;t(s,l);var h=Date.now();u(h),f(h-c),b({x:s,y:l})}},onTouchEnd:function(){if(o&&(a(null),b(null),y)){var e=y.x/p,n=y.y/p,i=Math.abs(e),r=Math.abs(n);if(Math.max(i,r)<.1)return;var s=e,l=n;w.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(w.current):t(20*(s*=L),20*(l*=L))}),20)}},onWheel:function(e){var n=e.deltaX,i=e.deltaY,r=0,o=Math.abs(n),a=Math.abs(i);o===a?r="x"===x.current?n:i:o>a?(r=n,x.current="x"):(r=i,x.current="y"),t(-r,-r)&&e.preventDefault()}},i.useEffect((function(){function t(e){S.current.onTouchMove(e)}function n(e){S.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){S.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){S.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(q,(function(e,t){function n(e,t){e((function(e){return Fe(e+t)}))}return!!Ne&&(J?n(ie,e):n(se,t),Ge(),Ke(),!0)})),(0,i.useEffect)((function(){return Ge(),He&&(ze.current=setTimeout((function(){Ze(0)}),100)),Ge}),[He]);var Ue=function(e,t,n,r,o,a,s){var l,c,u,h=s.tabs,d=s.tabPosition,p=s.rtl;return["top","bottom"].includes(d)?(l="width",c=p?"right":"left",u=Math.abs(n)):(l="height",c="top",u=-n),(0,i.useMemo)((function(){if(!h.length)return[0,0];for(var n=h.length,i=n,r=0;rMath.floor(u+t)){i=r-1;break}}for(var a=0,s=n-1;s>=0;s-=1)if((e.get(h[s].key)||D)[c]=i?[0,0]:[a,i]}),[e,t,r,o,a,u,d,h.map((function(e){return e.key})).join("_"),p])}(Me,Ie,J?ne:ae,Ae,Te,De,(0,f.Z)((0,f.Z)({},e),{},{tabs:$})),Ve=(0,g.Z)(Ue,2),We=Ve[0],qe=Ve[1],Ye=(0,k.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=Me.get(e)||{width:0,height:0,left:0,right:0,top:0};if(J){var n=ne;c?t.rightne+Ie&&(n=t.right+t.width-Ie):t.left<-ne?n=-t.left:t.left+t.width>-ne+Ie&&(n=-(t.left+t.width-Ie)),se(0),ie(Fe(n))}else{var i=ae;t.top<-ae?i=-t.top:t.top+t.height>-ae+Ie&&(i=-(t.top+t.height-Ie)),ie(0),se(Fe(i))}})),Xe=(0,i.useState)(),Qe=(0,g.Z)(Xe,2),Je=Qe[0],et=Qe[1],tt=(0,i.useState)(!1),nt=(0,g.Z)(tt,2),it=nt[0],rt=nt[1],ot=$.filter((function(e){return!e.disabled})).map((function(e){return e.key})),at=function(e){var t=ot.indexOf(Je||l),n=ot.length,i=ot[(t+e+n)%n];et(i)},st=function(e){var t=e.code,n=c&&J,i=ot[0],r=ot[ot.length-1];switch(t){case"ArrowLeft":J&&at(n?1:-1);break;case"ArrowRight":J&&at(n?-1:1);break;case"ArrowUp":e.preventDefault(),J||at(-1);break;case"ArrowDown":e.preventDefault(),J||at(1);break;case"Home":e.preventDefault(),et(i);break;case"End":e.preventDefault(),et(r);break;case"Enter":case"Space":e.preventDefault(),C(l,e);break;case"Backspace":case"Delete":var o=ot.indexOf(Je),a=$.find((function(e){return e.key===Je}));B(null==a?void 0:a.closable,null==a?void 0:a.closeIcon,h,null==a?void 0:a.disabled)&&(e.preventDefault(),e.stopPropagation(),h.onEdit("remove",{key:Je,event:e}),o===ot.length-1?at(-1):at(1))}},lt={};J?lt[c?"marginRight":"marginLeft"]=y:lt.marginTop=y;var ct=$.map((function(e,t){var n=e.key;return i.createElement(K,{id:o,prefixCls:j,key:n,tab:e,style:0===t?void 0:lt,closable:e.closable,editable:h,active:n===l,focus:n===Je,renderWrapper:b,removeAriaLabel:null==m?void 0:m.removeAriaLabel,tabCount:ot.length,currentPosition:t+1,onClick:function(e){C(n,e)},onKeyDown:st,onFocus:function(){it||et(n),Ye(n),Ke(),q.current&&(c||(q.current.scrollLeft=0),q.current.scrollTop=0)},onBlur:function(){et(void 0)},onMouseDown:function(){rt(!0)},onMouseUp:function(){rt(!1)}})})),ut=function(){return Ee((function(){var e,t=new Map,n=null===(e=Y.current)||void 0===e?void 0:e.getBoundingClientRect();return $.forEach((function(e){var i,r=e.key,o=null===(i=Y.current)||void 0===i?void 0:i.querySelector('[data-node-key="'.concat(I(r),'"]'));if(o){var a=function(e,t){var n=e.offsetWidth,i=e.offsetHeight,r=e.offsetTop,o=e.offsetLeft,a=e.getBoundingClientRect(),s=a.width,l=a.height,c=a.left,u=a.top;return Math.abs(s-n)<1?[s,l,c-t.left,u-t.top]:[n,i,o,r]}(o,n),s=(0,g.Z)(a,4),l=s[0],c=s[1],u=s[2],h=s[3];t.set(r,{width:l,height:c,left:u,top:h})}})),t}))};(0,i.useEffect)((function(){ut()}),[$.map((function(e){return e.key})).join("_")]);var ht=T((function(){var e=G(H),t=G(V),n=G(W);he([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var i=G(Q);be(i);var r=G(X);ke(r);var o=G(Y);ge([o[0]-i[0],o[1]-i[1]]),ut()})),dt=$.slice(0,We),pt=$.slice(qe+1),ft=[].concat((0,x.Z)(dt),(0,x.Z)(pt)),gt=Me.get(l),mt=P({activeTabOffset:gt,horizontal:J,indicator:R,rtl:c}).style;(0,i.useEffect)((function(){Ye()}),[l,Re,Oe,N(gt),N(Me),J]),(0,i.useEffect)((function(){ht()}),[c]);var vt,yt,bt,wt,xt=!!ft.length,St="".concat(j,"-nav-wrap");return J?c?(yt=ne>0,vt=ne!==Oe):(vt=ne<0,yt=ne!==Re):(bt=ae<0,wt=ae!==Re),i.createElement(S.Z,{onResize:ht},i.createElement("div",{ref:(0,_.x1)(t,H),role:"tablist","aria-orientation":J?"horizontal":"vertical",className:d()("".concat(j,"-nav"),n),style:r,onKeyDown:function(){Ke()}},i.createElement(F,{ref:V,position:"left",extra:u,prefixCls:j}),i.createElement(S.Z,{onResize:ht},i.createElement("div",{className:d()(St,(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(St,"-ping-left"),vt),"".concat(St,"-ping-right"),yt),"".concat(St,"-ping-top"),bt),"".concat(St,"-ping-bottom"),wt)),ref:q},i.createElement(S.Z,{onResize:ht},i.createElement("div",{ref:Y,className:"".concat(j,"-nav-list"),style:{transform:"translate(".concat(ne,"px, ").concat(ae,"px)"),transition:He?"none":void 0}},ct,i.createElement(O,{ref:Q,prefixCls:j,locale:m,editable:h,style:(0,f.Z)((0,f.Z)({},0===ct.length?void 0:lt),{},{visibility:xt?"hidden":null})}),i.createElement("div",{className:d()("".concat(j,"-ink-bar"),(0,p.Z)({},"".concat(j,"-ink-bar-animated"),s.inkBar)),style:mt}))))),i.createElement(Z,(0,a.Z)({},e,{removeAriaLabel:null==m?void 0:m.removeAriaLabel,ref:X,prefixCls:j,tabs:ft,className:!xt&&Be,tabMoving:!!He})),i.createElement(F,{ref:W,position:"right",extra:u,prefixCls:j})))})),W=V,q=i.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,s=e.active,l=e.tabKey,c=e.children;return i.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!s,style:o,className:d()(n,s&&"".concat(n,"-active"),r),ref:t},c)}));var Y=q,X=["renderTabBar"],Q=["label","key"];var J=function(e){var t=e.renderTabBar,n=(0,v.Z)(e,X),r=i.useContext(w).tabs;return t?t((0,f.Z)((0,f.Z)({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=(0,v.Z)(e,Q);return i.createElement(Y,(0,a.Z)({tab:t,key:n,tabKey:n},r))}))}),W):i.createElement(W,n)},ee=n(77900),te=["key","forceRender","style","className","destroyInactiveTabPane"],ne=function(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,s=e.destroyInactiveTabPane,l=i.useContext(w),c=l.prefixCls,u=l.tabs,h=r.tabPane,g="".concat(c,"-tabpane");return i.createElement("div",{className:d()("".concat(c,"-content-holder"))},i.createElement("div",{className:d()("".concat(c,"-content"),"".concat(c,"-content-").concat(o),(0,p.Z)({},"".concat(c,"-content-animated"),h))},u.map((function(e){var o=e.key,l=e.forceRender,c=e.style,u=e.className,p=e.destroyInactiveTabPane,m=(0,v.Z)(e,te),y=o===n;return i.createElement(ee.ZP,(0,a.Z)({key:o,visible:y,forceRender:l,removeOnLeave:!(!s&&!p),leavedClassName:"".concat(g,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,s=e.className;return i.createElement(Y,(0,a.Z)({},m,{prefixCls:g,id:t,tabKey:o,animated:h,active:y,style:(0,f.Z)((0,f.Z)({},c),r),className:d()(u,s),ref:n}))}))}))))};n(48736);var ie=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],re=0,oe=i.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,o=void 0===r?"rc-tabs":r,s=e.className,l=e.items,c=e.direction,u=e.activeKey,h=e.defaultActiveKey,x=e.editable,S=e.animated,k=e.tabPosition,_=void 0===k?"top":k,C=e.tabBarGutter,P=e.tabBarStyle,E=e.tabBarExtraContent,M=e.locale,L=e.more,A=e.destroyInactiveTabPane,T=e.renderTabBar,D=e.onChange,N=e.onTabClick,I=e.onTabScroll,B=e.getPopupContainer,R=e.popupClassName,O=e.indicator,F=(0,v.Z)(e,ie),z=i.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===(0,m.Z)(e)&&"key"in e}))}),[l]),j="rtl"===c,$=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,f.Z)({inkBar:!0},"object"===(0,m.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(S),H=(0,i.useState)(!1),Z=(0,g.Z)(H,2),K=Z[0],G=Z[1];(0,i.useEffect)((function(){G((0,b.Z)())}),[]);var U=(0,y.Z)((function(){var e;return null===(e=z[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:h}),V=(0,g.Z)(U,2),W=V[0],q=V[1],Y=(0,i.useState)((function(){return z.findIndex((function(e){return e.key===W}))})),X=(0,g.Z)(Y,2),Q=X[0],ee=X[1];(0,i.useEffect)((function(){var e,t=z.findIndex((function(e){return e.key===W}));-1===t&&(t=Math.max(0,Math.min(Q,z.length-1)),q(null===(e=z[t])||void 0===e?void 0:e.key));ee(t)}),[z.map((function(e){return e.key})).join("_"),W,Q]);var te=(0,y.Z)(null,{value:n}),oe=(0,g.Z)(te,2),ae=oe[0],se=oe[1];(0,i.useEffect)((function(){n||(se("rc-tabs-".concat(re)),re+=1)}),[]);var le={id:ae,activeKey:W,animated:$,tabPosition:_,rtl:j,mobile:K},ce=(0,f.Z)((0,f.Z)({},le),{},{editable:x,locale:M,more:L,tabBarGutter:C,onTabClick:function(e,t){null==N||N(e,t);var n=e!==W;q(e),n&&(null==D||D(e))},onTabScroll:I,extra:E,style:P,panes:null,getPopupContainer:B,popupClassName:R,indicator:O});return i.createElement(w.Provider,{value:{tabs:z,prefixCls:o}},i.createElement("div",(0,a.Z)({ref:t,id:n,className:d()(o,"".concat(o,"-").concat(_),(0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(o,"-mobile"),K),"".concat(o,"-editable"),x),"".concat(o,"-rtl"),j),s)},F),i.createElement(J,(0,a.Z)({},ce,{renderTabBar:T})),i.createElement(ne,(0,a.Z)({destroyInactiveTabPane:A},le,{animated:$}))))}));var ae=oe,se=n(48755),le=n(83397),ce=n(31756),ue=n(86641);const he={motionAppear:!1,motionEnter:!0,motionLeave:!0};var de=n(11592),pe=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,ye.oN)(e,"slide-up"),(0,ye.oN)(e,"slide-down")]]};const we=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:i,cardGutter:r,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:i,border:`${(0,fe.bf)(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},(0,ge.oN)(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,fe.bf)(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,fe.bf)(e.borderRadiusLG)} ${(0,fe.bf)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,fe.bf)(e.borderRadiusLG)} ${(0,fe.bf)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,fe.bf)(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,fe.bf)(e.borderRadiusLG)} 0 0 ${(0,fe.bf)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,fe.bf)(e.borderRadiusLG)} ${(0,fe.bf)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},xe=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:i}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,ge.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,fe.bf)(i)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ge.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,fe.bf)(e.paddingXXS)} ${(0,fe.bf)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Se=e=>{const{componentCls:t,margin:n,colorBorderSecondary:i,horizontalMargin:r,verticalItemPadding:o,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,fe.bf)(e.lineWidth)} ${e.lineType} ${i}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,fe.bf)(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,fe.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,fe.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},ke=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:i,horizontalItemPaddingSM:r,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,fe.bf)(e.borderRadius)} ${(0,fe.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,fe.bf)(e.borderRadius)} ${(0,fe.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,fe.bf)(e.borderRadius)} ${(0,fe.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,fe.bf)(e.borderRadius)} 0 0 ${(0,fe.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i}}}}}},_e=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:i,iconCls:r,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},(0,ge.Qy)(e)),"&:hover":{color:i},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},(0,ge.oN)(e)),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${r}`]:{margin:0},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}},Ce=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:i,cardGutter:r,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[i]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,fe.bf)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,fe.bf)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,fe.bf)(o(e.marginXXS).mul(-1).equal())},[i]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Pe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:i,cardGutter:r,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:i,marginLeft:{_skip_check_:!0,value:r},padding:(0,fe.bf)(e.paddingXS),background:"transparent",border:`${(0,fe.bf)(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${(0,fe.bf)(e.borderRadiusLG)} ${(0,fe.bf)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},(0,ge.Qy)(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),_e(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},(0,ge.Qy)(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}};var Ee=(0,me.I$)("Tabs",(e=>{const t=(0,ve.IX)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,fe.bf)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,fe.bf)(e.horizontalItemGutter)}`});return[ke(t),Ce(t),Se(t),xe(t),we(t),Pe(t),be(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));var Me=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var t,n,a,s,l,c,h,p,f,g,m;const{type:v,className:y,rootClassName:b,size:w,onEdit:x,hideAdd:S,centered:k,addIcon:_,removeIcon:C,moreIcon:P,more:E,popupClassName:M,children:L,items:A,animated:T,style:D,indicatorSize:N,indicator:I}=e,B=Me(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:R}=B,{direction:O,tabs:F,getPrefixCls:z,getPopupContainer:j}=i.useContext(se.E_),$=z("tabs",R),H=(0,le.Z)($),[Z,K,G]=Ee($,H);let U;"editable-card"===v&&(U={onEdit:(e,t)=>{let{key:n,event:i}=t;null==x||x("add"===e?i:n,e)},removeIcon:null!==(t=null!=C?C:null==F?void 0:F.removeIcon)&&void 0!==t?t:i.createElement(r.Z,null),addIcon:(null!=_?_:null==F?void 0:F.addIcon)||i.createElement(u,null),showAdd:!0!==S});const V=z();const W=(0,ce.Z)(w),q=function(e,t){return e||function(e){return e.filter((e=>e))}((0,de.Z)(t).map((e=>{if(i.isValidElement(e)){const{key:t,props:n}=e,i=n||{},{tab:r}=i,o=pe(i,["tab"]);return Object.assign(Object.assign({key:String(t)},o),{label:r})}return null})))}(A,L),Y=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},he),{motionName:(0,ue.m)(e,"switch")})),t}($,T),X=Object.assign(Object.assign({},null==F?void 0:F.style),D),Q={align:null!==(n=null==I?void 0:I.align)&&void 0!==n?n:null===(a=null==F?void 0:F.indicator)||void 0===a?void 0:a.align,size:null!==(h=null!==(l=null!==(s=null==I?void 0:I.size)&&void 0!==s?s:N)&&void 0!==l?l:null===(c=null==F?void 0:F.indicator)||void 0===c?void 0:c.size)&&void 0!==h?h:null==F?void 0:F.indicatorSize};return Z(i.createElement(ae,Object.assign({direction:O,getPopupContainer:j},B,{items:q,className:d()({[`${$}-${W}`]:W,[`${$}-card`]:["card","editable-card"].includes(v),[`${$}-editable-card`]:"editable-card"===v,[`${$}-centered`]:k},null==F?void 0:F.className,y,b,K,G,H),popupClassName:d()(M,K,G,H),style:X,editable:U,more:Object.assign({icon:null!==(m=null!==(g=null!==(f=null===(p=null==F?void 0:F.more)||void 0===p?void 0:p.icon)&&void 0!==f?f:null==F?void 0:F.moreIcon)&&void 0!==g?g:P)&&void 0!==m?m:i.createElement(o.Z,null),transitionName:`${V}-slide-up`},E),prefixCls:$,animated:Y,indicator:Q})))};Le.TabPane=()=>null;var Ae=Le},55544:function(e,t,n){"use strict";n.d(t,{Z:function(){return V}});var i=n(59301),r=n(92310),o=n.n(r);function a(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,s=e.bodyClassName,l=e.className,c=e.style;return i.createElement("div",{className:o()("".concat(n,"-content"),l),style:c},i.createElement("div",{className:o()("".concat(n,"-inner"),s),id:r,role:"tooltip",style:a},"function"==typeof t?t():t))}var s=n(14809),l=n(20439),c=n(62646),u=n(65352),h={shiftX:64,adjustY:1},d={adjustX:1,shiftY:!0},p=[0,0],f={left:{points:["cr","cl"],overflow:d,offset:[-4,0],targetOffset:p},right:{points:["cl","cr"],overflow:d,offset:[4,0],targetOffset:p},top:{points:["bc","tc"],overflow:h,offset:[0,-4],targetOffset:p},bottom:{points:["tc","bc"],overflow:h,offset:[0,4],targetOffset:p},topLeft:{points:["bl","tl"],overflow:h,offset:[0,-4],targetOffset:p},leftTop:{points:["tr","tl"],overflow:d,offset:[-4,0],targetOffset:p},topRight:{points:["br","tr"],overflow:h,offset:[0,-4],targetOffset:p},rightTop:{points:["tl","tr"],overflow:d,offset:[4,0],targetOffset:p},bottomRight:{points:["tr","br"],overflow:h,offset:[0,4],targetOffset:p},rightBottom:{points:["bl","br"],overflow:d,offset:[4,0],targetOffset:p},bottomLeft:{points:["tl","bl"],overflow:h,offset:[0,4],targetOffset:p},leftBottom:{points:["br","bl"],overflow:d,offset:[-4,0],targetOffset:p}},g=n(80402),m=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],v=function(e,t){var n=e.overlayClassName,r=e.trigger,h=void 0===r?["hover"]:r,d=e.mouseEnterDelay,p=void 0===d?0:d,v=e.mouseLeaveDelay,y=void 0===v?.1:v,b=e.overlayStyle,w=e.prefixCls,x=void 0===w?"rc-tooltip":w,S=e.children,k=e.onVisibleChange,_=e.afterVisibleChange,C=e.transitionName,P=e.animation,E=e.motion,M=e.placement,L=void 0===M?"right":M,A=e.align,T=void 0===A?{}:A,D=e.destroyTooltipOnHide,N=void 0!==D&&D,I=e.defaultVisible,B=e.getTooltipContainer,R=e.overlayInnerStyle,O=(e.arrowContent,e.overlay),F=e.id,z=e.showArrow,j=void 0===z||z,$=e.classNames,H=e.styles,Z=(0,c.Z)(e,m),K=(0,g.Z)(F),G=(0,i.useRef)(null);(0,i.useImperativeHandle)(t,(function(){return G.current}));var U=(0,l.Z)({},Z);"visible"in e&&(U.popupVisible=e.visible);var V,W,q;return i.createElement(u.Z,(0,s.Z)({popupClassName:o()(n,null==$?void 0:$.root),prefixCls:x,popup:function(){return i.createElement(a,{key:"content",prefixCls:x,id:K,bodyClassName:null==$?void 0:$.body,overlayInnerStyle:(0,l.Z)((0,l.Z)({},R),null==H?void 0:H.body)},O)},action:h,builtinPlacements:f,popupPlacement:L,ref:G,popupAlign:T,getPopupContainer:B,onPopupVisibleChange:k,afterPopupVisibleChange:_,popupTransitionName:C,popupAnimation:P,popupMotion:E,defaultPopupVisible:I,autoDestroy:N,mouseLeaveDelay:y,popupStyle:(0,l.Z)((0,l.Z)({},b),null==H?void 0:H.root),mouseEnterDelay:p,arrow:j},U),(V=i.Children.only(S),W=(null==V?void 0:V.props)||{},q=(0,l.Z)((0,l.Z)({},W),{},{"aria-describedby":O?K:null}),i.cloneElement(S,q)))},y=(0,i.forwardRef)(v),b=n(18929),w=n(62487),x=n(75030),S=n(86641),k=n(52838),_=n(22703),C=n(32383),P=n(55743),E=n(57700),M=n(48755),L=n(66604),A=n(63356),T=n(34925),D=n(37645),N=n(36305),I=n(34998);function B(e,t){return I.i.reduce(((n,i)=>{const r=e[`${i}1`],o=e[`${i}3`],a=e[`${i}6`],s=e[`${i}7`];return Object.assign(Object.assign({},n),t(i,{lightColor:r,lightBorderColor:o,darkColor:a,textColor:s}))}),{})}var R=n(51636),O=n(16931);const F=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:i,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:h,arrowOffsetHorizontal:d,sizePopupArrow:p}=e,f=t(a).add(p).add(d).equal(),g=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,A.Wf)(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:i,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${(0,L.bf)(e.calc(u).div(2).equal())} ${(0,L.bf)(h)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:f},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,D.qN)}},[`${n}-content`]:{position:"relative"}}),B(e,((e,t)=>{let{darkColor:i}=t;return{[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:i},[`${n}-arrow`]:{"--antd-arrow-background-color":i}}}}))),{"&-rtl":{direction:"rtl"}})},(0,D.ZP)(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},z=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,D.wZ)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,N.w)((0,R.IX)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var j=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=(0,O.I$)("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:i}=e,r=(0,R.IX)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:i});return[F(r),(0,T._y)(e,"zoom-big-fast")]}),z,{resetStyle:!1,injectStyle:t});return n(e)},$=n(95190);const H=I.i.map((e=>`${e}-inverse`));function Z(e,t){const n=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?[].concat((0,$.Z)(H),(0,$.Z)(I.i)).includes(e):I.i.includes(e)}(t),i=o()({[`${e}-${t}`]:t&&n}),r={},a={};return t&&!n&&(r.background=t,a["--antd-arrow-background-color"]=t),{className:i,overlayStyle:r,arrowStyle:a}}var K=e=>{const{prefixCls:t,className:n,placement:r="top",title:s,color:l,overlayInnerStyle:c}=e,{getPrefixCls:u}=i.useContext(M.E_),h=u("tooltip",t),[d,p,f]=j(h),g=Z(h,l),m=g.arrowStyle,v=Object.assign(Object.assign({},c),g.overlayStyle),y=o()(p,f,h,`${h}-pure`,`${h}-placement-${r}`,n,g.className);return d(i.createElement("div",{className:y,style:m},i.createElement("div",{className:`${h}-arrow`}),i.createElement(a,Object.assign({},e,{className:p,prefixCls:h,overlayInnerStyle:v}),s)))},G=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var n,r;const{prefixCls:a,openClassName:s,getTooltipContainer:l,color:c,overlayInnerStyle:u,children:h,afterOpenChange:d,afterVisibleChange:p,destroyTooltipOnHide:f,arrow:g=!0,title:m,overlay:v,builtinPlacements:L,arrowPointAtCenter:A=!1,autoAdjustOverflow:T=!0,motion:D,getPopupContainer:N,placement:I="top",mouseEnterDelay:B=.1,mouseLeaveDelay:R=.1,overlayStyle:O,rootClassName:F,overlayClassName:z,styles:$,classNames:H}=e,K=G(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),U=!!g,[,V]=(0,E.ZP)(),{getPopupContainer:W,getPrefixCls:q,direction:Y,className:X,style:Q,classNames:J,styles:ee}=(0,M.dj)("tooltip"),te=(0,C.ln)("Tooltip"),ne=i.useRef(null),ie=()=>{var e;null===(e=ne.current)||void 0===e||e.forceAlign()};i.useImperativeHandle(t,(()=>{var e,t;return{forceAlign:ie,forcePopupAlign:()=>{te.deprecated(!1,"forcePopupAlign","forceAlign"),ie()},nativeElement:null===(e=ne.current)||void 0===e?void 0:e.nativeElement,popupElement:null===(t=ne.current)||void 0===t?void 0:t.popupElement}}));const[re,oe]=(0,b.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),ae=!m&&!v&&0!==m,se=i.useMemo((()=>{var e,t;let n=A;return"object"==typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:A),L||(0,k.Z)({arrowPointAtCenter:n,autoAdjustOverflow:T,arrowWidth:U?V.sizePopupArrow:0,borderRadius:V.borderRadius,offset:V.marginXXS,visibleFirst:!0})}),[A,g,L,V]),le=i.useMemo((()=>0===m?m:v||m||""),[v,m]),ce=i.createElement(w.Z,{space:!0},"function"==typeof le?le():le),ue=q("tooltip",a),he=q(),de=e["data-popover-inject"];let pe=re;"open"in e||"visible"in e||!ae||(pe=!1);const fe=i.isValidElement(h)&&!(0,_.M2)(h)?h:i.createElement("span",null,h),ge=fe.props,me=ge.className&&"string"!=typeof ge.className?ge.className:o()(ge.className,s||`${ue}-open`),[ve,ye,be]=j(ue,!de),we=Z(ue,c),xe=we.arrowStyle,Se=o()(z,{[`${ue}-rtl`]:"rtl"===Y},we.className,F,ye,be,X,J.root,null==H?void 0:H.root),ke=o()(J.body,null==H?void 0:H.body),[_e,Ce]=(0,x.Cn)("Tooltip",K.zIndex),Pe=i.createElement(y,Object.assign({},K,{zIndex:_e,showArrow:U,placement:I,mouseEnterDelay:B,mouseLeaveDelay:R,prefixCls:ue,classNames:{root:Se,body:ke},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xe),ee.root),Q),O),null==$?void 0:$.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},ee.body),u),null==$?void 0:$.body),we.overlayStyle)},getTooltipContainer:N||l||W,ref:ne,builtinPlacements:se,overlay:ce,visible:pe,onVisibleChange:t=>{var n,i;oe(!ae&&t),ae||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(i=e.onVisibleChange)||void 0===i||i.call(e,t))},afterVisibleChange:null!=d?d:p,arrowContent:i.createElement("span",{className:`${ue}-arrow-content`}),motion:{motionName:(0,S.m)(he,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!f}),pe?(0,_.Tm)(fe,{className:me}):fe);return ve(i.createElement(P.Z.Provider,{value:Ce},Pe))}));U._InternalPanelDoNotUseOrYouWillBeFired=K;var V=U},64018:function(){window.PR_SHOULD_USE_CONTINUATION=!0,function(){var e=window,t=["break,continue,do,else,for,if,return,while"],n=[[t,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],i=[n,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],r=[n,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],o=[n,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],a=[n,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",l=[t,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],c=[t,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],u=[t,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],h=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,d="str",p="com",f="typ",g="lit",m="pun",v="pln",y="atv";function b(e,t,n,i,r){if(n){var o={sourceNode:e,pre:1,langExtension:null,numberLines:null,sourceCode:n,spans:null,basePos:t,decorations:null};i(o),r.push.apply(r,o.decorations)}}var w=/\S/;function x(e){for(var t=void 0,n=e.firstChild;n;n=n.nextSibling){var i=n.nodeType;t=1===i?t?e:n:3===i&&w.test(n.nodeValue)?e:t}return t===e?void 0:t}function S(e,t){var n,i={};!function(){for(var r=e.concat(t),o=[],a={},s=0,l=r.length;s=0;)i[u.charAt(h)]=c;var d=c[1],p=""+d;a.hasOwnProperty(p)||(o.push(d),a[p]=null)}o.push(/[\0-\uffff]/),n=function(e){for(var t=0,n=!1,i=!1,r=0,o=e.length;r122||(u<65||h>90||n.push([32|Math.max(65,h),32|Math.min(u,90)]),u<97||h>122||n.push([-33&Math.max(97,h),-33&Math.min(u,122)]))}}n.sort((function(e,t){return e[0]-t[0]||t[1]-e[1]}));var d=[],p=[];for(o=0;of[0]&&(f[1]+1>f[0]&&r.push("-"),r.push(l(f[1])))}return r.push("]"),r.join("")}function u(e){for(var i=e.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),r=i.length,o=[],a=0,s=0;a=2&&"["===d?i[a]=c(h):"\\"!==d&&(i[a]=h.replace(/[a-zA-Z]/g,(function(e){var t=e.charCodeAt(0);return"["+String.fromCharCode(-33&t,32|t)+"]"})))}return i.join("")}var h=[];for(r=0,o=e.length;r=5&&"lang-"===y.substring(0,5))||w&&"string"==typeof w[1]||(g=!1,y="src"),g||(d[m]=y)}var k=u;if(u+=m.length,g){var _=w[1],C=m.indexOf(_),P=C+_.length;w[2]&&(C=(P=m.length-w[2].length)-_.length);var E=y.substring(5);b(l,s+k,m.substring(0,C),o,c),b(l,s+k+C,_,M(E,_),c),b(l,s+k+P,m.substring(P),o,c)}else c.push(s+k,y)}e.decorations=c};return o}function k(e){var t=[],n=[];e.tripleQuotedStrings?t.push([d,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]):e.multiLineStrings?t.push([d,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):t.push([d,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),e.verbatimStrings&&n.push([d,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var i=e.hashComments;i&&(e.cStyleComments?(i>1?t.push([p,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):t.push([p,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),n.push([d,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):t.push([p,/^#[^\r\n]*/,null,"#"])),e.cStyleComments&&(n.push([p,/^\/\/[^\r\n]*/,null]),n.push([p,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var r=e.regexLiterals;if(r){var o=r>1?"":"\n\r",a=o?".":"[\\S\\s]",s="/(?=[^/*"+o+"])(?:[^/\\x5B\\x5C"+o+"]|\\x5C"+a+"|\\x5B(?:[^\\x5C\\x5D"+o+"]|\\x5C"+a+")*(?:\\x5D|$))+/";n.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+s+")")])}var l=e.types;l&&n.push([f,l]);var c=(""+e.keywords).replace(/^ | $/g,"");c.length&&n.push(["kwd",new RegExp("^(?:"+c.replace(/[\s,]+/g,"|")+")\\b"),null]),t.push([v,/^\s+/,null," \r\n\t "]);var u="^.[^\\s\\w.$@'\"`/\\\\]*";return e.regexLiterals&&(u+="(?!s*/)"),n.push([g,/^@[a-z_$][a-z_$@0-9]*/i,null],[f,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[v,/^[a-z_$][a-z_$@0-9]*/i,null],[g,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[v,/^\\[\s\S]?/,null],[m,new RegExp(u),null]),S(t,n)}var _=k({keywords:[i,o,r,a,s,l,c,u],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function C(e,t,n){for(var i=/(?:^|\s)nocode(?:\s|$)/,r=/\r\n?|\n/,o=e.ownerDocument,a=o.createElement("li");e.firstChild;)a.appendChild(e.firstChild);var s=[a];function l(e){var t=e.nodeType;if(1!=t||i.test(e.className)){if((3==t||4==t)&&n){var a=e.nodeValue,s=a.match(r);if(s){var u=a.substring(0,s.index);e.nodeValue=u;var h=a.substring(s.index+s[0].length);if(h)e.parentNode.insertBefore(o.createTextNode(h),e.nextSibling);c(e),u||e.parentNode.removeChild(e)}}}else if("br"===e.nodeName)c(e),e.parentNode&&e.parentNode.removeChild(e);else for(var d=e.firstChild;d;d=d.nextSibling)l(d)}function c(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;for(var t,n=function e(t,n){var i=n?t.cloneNode(!1):t,r=t.parentNode;if(r){var o=e(r,1),a=t.nextSibling;o.appendChild(i);for(var s=a;s;s=a)a=s.nextSibling,o.appendChild(s)}return i}(e.nextSibling,0);(t=n.parentNode)&&1===t.nodeType;)n=t;s.push(n)}for(var u=0;u=0;){var r=n[i];P.hasOwnProperty(r)?e.console&&console.warn("cannot override language handler %s",r):P[r]=t}}function M(e,t){return e&&P.hasOwnProperty(e)||(e=/^\s*=w&&(u+=2),s>=x&&(p+=2)}}finally{v&&(v.style.display=y)}}(t)}catch(t){e.console&&console.log(t&&t.stack||t)}}function A(e,t,n){var i=n||!1,r=t||null,o=document.createElement("div");return o.innerHTML="
    "+e+"
    ",o=o.firstChild,i&&C(o,i,!0),L({langExtension:r,numberLines:i,sourceNode:o,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null}),o.innerHTML}function T(t,n){var i=n||document.body,r=i.ownerDocument||document;function o(e){return i.getElementsByTagName(e)}for(var a=[o("pre"),o("code"),o("xmp")],s=[],l=0;l]*(?:>|$)/],[p,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[m,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),E(S([[v,/^[\s]+/,null," \t\r\n"],[y,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[m,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),E(S([],[[y,/^[\s\S]+/]]),["uq.val"]),E(k({keywords:i,hashComments:!0,cStyleComments:!0,types:h}),["c","cc","cpp","cxx","cyc","m"]),E(k({keywords:"null,true,false"}),["json"]),E(k({keywords:o,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:h}),["cs"]),E(k({keywords:r,cStyleComments:!0}),["java"]),E(k({keywords:u,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),E(k({keywords:l,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),E(k({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),E(k({keywords:c,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),E(k({keywords:a,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),E(k({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),E(S([],[[d,/^[\s\S]+/]]),["regex"]);var D=e.PR={createSimpleLexer:S,registerLangHandler:E,sourceDecorator:k,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:y,PR_COMMENT:p,PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:g,PR_NOCODE:"nocode",PR_PLAIN:v,PR_PUNCTUATION:m,PR_SOURCE:"src",PR_STRING:d,PR_TAG:"tag",PR_TYPE:f,prettyPrintOne:A,prettyPrint:T},N=e.define;"function"==typeof N&&N.amd&&N("google-code-prettify",[],(function(){return D}))}()},99498:function(e,t,n){!function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=e.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var i=e.getOption("placeholder");"string"==typeof i&&(i=document.createTextNode(i)),n.appendChild(i),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function i(e){setTimeout((function(){var i=!1,r=e.getInputField();"TEXTAREA"==r.nodeName?i=!r.value:1==e.lineCount()&&(i=!/[^\u200b]/.test(r.querySelector(".CodeMirror-line").textContent)),i?n(e):t(e)}),20)}function r(e){a(e)&&n(e)}function o(e){var i=e.getWrapperElement(),r=a(e);i.className=i.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?n(e):t(e)}function a(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(n,a,s){var l=s&&s!=e.Init;if(a&&!l)n.on("blur",r),n.on("change",o),n.on("swapDoc",o),e.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){i(n)}),o(n);else if(!a&&l){n.off("blur",r),n.off("change",o),n.off("swapDoc",o),e.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),t(n);var c=n.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}a&&!n.hasFocus()&&r(n)}))}(n(89780))},25717:function(e,t,n){!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function i(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(r),t.state.closeBrackets=null),n&&(o(i(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(r))}));var r={Backspace:l,Enter:c};function o(e){for(var t=0;t=0;l--){var u=a[l].head;t.replaceRange("",n(u.line,u.ch-1),n(u.line,u.ch+1),"+delete")}}function c(t){var n=s(t),r=n&&i(n,"explode");if(!r||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a0;return{anchor:new n(t.anchor.line,t.anchor.ch+(i?-1:1)),head:new n(t.head.line,t.head.ch+(i?1:-1))}}function h(t,r){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=i(o,"pairs"),l=a.indexOf(r);if(-1==l)return e.Pass;for(var c,h=i(o,"closeBefore"),d=i(o,"triples"),f=a.charAt(l+1)==r,g=t.listSelections(),m=l%2==0,v=0;v1&&d.indexOf(r)>=0&&t.getRange(n(w.line,w.ch-2),w)==r+r){if(w.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(w.line,w.ch-2))))return e.Pass;y="addFour"}else if(f){var S=0==w.ch?" ":t.getRange(n(w.line,w.ch-1),w);if(e.isWordChar(x)||S==r||e.isWordChar(S))return e.Pass;y="both"}else{if(!m||!(0===x.length||/\s/.test(x)||h.indexOf(x)>-1))return e.Pass;y="both"}else y=f&&p(t,w)?"both":d.indexOf(r)>=0&&t.getRange(w,n(w.line,w.ch+3))==r+r+r?"skipThree":"skip";if(c){if(c!=y)return e.Pass}else c=y}var k=l%2?a.charAt(l-1):r,_=l%2?r:a.charAt(l+1);t.operation((function(){if("skip"==c)t.execCommand("goCharRight");else if("skipThree"==c)for(var e=0;e<3;e++)t.execCommand("goCharRight");else if("surround"==c){var n=t.getSelections();for(e=0;e'"]=function(e){return i(e)}),t.addKeyMap(a)}}));var t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function i(i){if(i.getOption("disableInput"))return e.Pass;for(var r=i.listSelections(),o=[],l=i.getOption("autoCloseTags"),c=0;cu.ch&&(g=g.slice(0,g.length-h.end+u.ch));var b=g.toLowerCase();if(!g||"string"==h.type&&(h.end!=u.ch||!/[\"\']/.test(h.string.charAt(h.string.length-1))||1==h.string.length)||"tag"==h.type&&f.close||h.string.indexOf("/")==u.ch-h.start-1||v&&a(v,b)>-1||s(i,d.mode.xmlCurrentContext&&d.mode.xmlCurrentContext(p)||[],g,u,!0))return e.Pass;var w="object"==typeof l&&l.emptyTags;if(w&&a(w,g)>-1)o[c]={text:"/>",newPos:e.Pos(u.line,u.ch+2)};else{var x=y&&a(y,b)>-1;o[c]={indent:x,text:">"+(x?"\n\n":"")+"",newPos:x?e.Pos(u.line+1,0):e.Pos(u.line,u.ch+1)}}}var S="object"==typeof l&&l.dontIndentOnAutoClose;for(c=r.length-1;c>=0;c--){var k=o[c];i.replaceRange(k.text,r[c].head,r[c].anchor,"+insert");var _=i.listSelections().slice(0);_[c]={head:k.newPos,anchor:k.newPos},i.setSelections(_),!S&&k.indent&&(i.indentLine(k.newPos.line,null,!0),i.indentLine(k.newPos.line+1,null,!0))}}function r(t,n){for(var i=t.listSelections(),r=[],o=n?"/":""!=t.getLine(u.line).charAt(h.end)&&(f+=">"),r[c]=f}if(t.replaceSelections(r),i=t.listSelections(),!l)for(c=0;c=0&&n[c]==i;c--)++l;for(r=s.to,c=1;c=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function l(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function c(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(s(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),i=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,i?"selfClose":"regular"}e.ch=t+1}}function u(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(l(e))continue;return}if(a(e,t+1)){r.lastIndex=t,e.ch=t;var n=r.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function h(e){for(;;){r.lastIndex=e.ch;var t=r.exec(e.text);if(!t){if(s(e))continue;return}if(a(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function d(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(l(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),i=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,i?"selfClose":"regular"}e.ch=t}}function p(e,n){for(var i=[];;){var r,o=h(e),a=e.line,s=e.ch-(o?o[0].length:0);if(!o||!(r=c(e)))return;if("selfClose"!=r)if(o[1]){for(var l=i.length-1;l>=0;--l)if(i[l]==o[2]){i.length=l;break}if(l<0&&(!n||n==o[2]))return{tag:o[2],from:t(a,s),to:t(e.line,e.ch)}}else i.push(o[2])}}function f(e,n){for(var i=[];;){var r=d(e);if(!r)return;if("selfClose"!=r){var o=e.line,a=e.ch,s=u(e);if(!s)return;if(s[1])i.push(s[2]);else{for(var l=i.length-1;l>=0;--l)if(i[l]==s[2]){i.length=l;break}if(l<0&&(!n||n==s[2]))return{tag:s[2],from:t(e.line,e.ch),to:t(o,a)}}}else u(e)}}e.registerHelper("fold","xml",(function(e,i){for(var r=new o(e,i.line,0);;){var a=h(r);if(!a||r.line!=i.line)return;var s=c(r);if(!s)return;if(!a[1]&&"selfClose"!=s){var l=t(r.line,r.ch),u=p(r,a[2]);return u&&n(u.from,l)>0?{from:l,to:u.from}:null}}})),e.findMatchingTag=function(e,i,r){var a=new o(e,i.line,i.ch,r);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var s=c(a),l=s&&t(a.line,a.ch),h=s&&u(a);if(s&&h&&!(n(a,i)>0)){var d={from:t(a.line,a.ch),to:l,tag:h[2]};return"selfClose"==s?{open:d,close:null,at:"open"}:h[1]?{open:f(a,h[2]),close:d,at:"close"}:{open:d,close:p(a=new o(e,l.line,l.ch,r),h[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,n,i){for(var r=new o(e,t.line,t.ch,n);;){var a=f(r,i);if(!a)break;var s=p(new o(e,t.line,t.ch,n),a.tag);if(s)return{open:a,close:s}}},e.scanForClosingTag=function(e,t,n,i){return p(new o(e,t.line,t.ch,i?{from:0,to:i}:null),n)}}(n(89780))},89780:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),i=/MSIE \d/.test(e),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=i||r||o,s=a&&(i?document.documentMode||6:+(o||r)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\//.test(e),h=/Opera\//.test(e),d=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),f=/PhantomJS/.test(e),g=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),m=/Android/.test(e),v=g||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),w=/win/i.test(t),x=h&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(h=!1,l=!0);var S=y&&(c||h&&(null==x||x<12.11)),k=n||a&&s>=9;function _(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C,P=function(e,t){var n=e.className,i=_(t).exec(n);if(i){var r=n.slice(i.index+i[0].length);e.className=n.slice(0,i.index)+(r?i[1]+r:"")}};function E(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function M(e,t){return E(e).appendChild(t)}function L(e,t,n,i){var r=document.createElement(e);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof t)r.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?B=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(B=function(e){try{e.select()}catch(e){}});var z=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function j(e,t){for(var n=0;n=t)return i+Math.min(a,t-r);if(r+=o-i,i=o+1,(r+=n-r%n)>=t)return i}}var V=[""];function W(e){for(;V.length<=e;)V.push(q(V)+" ");return V[e]}function q(e){return e[e.length-1]}function Y(e,t){for(var n=[],i=0;i"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function ie(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var re=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&re.test(e)}function ae(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var r=(t+n)/2,o=i<0?Math.ceil(r):Math.floor(r);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+i}}function le(e,t,n,i){if(!e)return i(t,n,"ltr",0);for(var r=!1,o=0;ot||t==n&&a.to==t)&&(i(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),r=!0)}r||i(t,n,"ltr")}var ce=null;function ue(e,t,n){var i;ce=null;for(var r=0;rt)return r;o.to==t&&(o.from!=o.to&&"before"==n?i=r:ce=r),o.from==t&&(o.from!=o.to&&"before"!=n?i=r:ce=r)}return null!=i?i:ce}var he=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!i.test(e))return!1;for(var u=e.length,h=[],d=0;d-1&&(i[t]=r.slice(0,o).concat(r.slice(o+1)))}}}function ve(e,t){var n=ge(e,t);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r0}function xe(e){e.prototype.on=function(e,t){fe(this,e,t)},e.prototype.off=function(e,t){me(this,e,t)}}function Se(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ke(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function _e(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ce(e){Se(e),ke(e)}function Pe(e){return e.target||e.srcElement}function Ee(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Me,Le,Ae=function(){if(a&&s<9)return!1;var e=L("div");return"draggable"in e||"dragDrop"in e}();function Te(e){if(null==Me){var t=L("span","​");M(e,L("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Me=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Me?L("span","​"):L("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function De(e){if(null!=Le)return Le;var t=M(e,document.createTextNode("AخA")),n=C(t,0,1).getBoundingClientRect(),i=C(t,1,2).getBoundingClientRect();return E(e),!(!n||n.left==n.right)&&(Le=i.right-n.right<3)}var Ne,Ie=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],i=e.length;t<=i;){var r=e.indexOf("\n",t);-1==r&&(r=e.length);var o=e.slice(t,"\r"==e.charAt(r-1)?r-1:r),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=r+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Be=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Re="oncopy"in(Ne=L("div"))||(Ne.setAttribute("oncopy","return;"),"function"==typeof Ne.oncopy),Oe=null;function Fe(e){if(null!=Oe)return Oe;var t=M(e,L("span","x")),n=t.getBoundingClientRect(),i=C(t,0,1).getBoundingClientRect();return Oe=Math.abs(n.left-i.left)>1}var ze={},je={};function $e(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),ze[e]=t}function He(e,t){je[e]=t}function Ze(e){if("string"==typeof e&&je.hasOwnProperty(e))e=je[e];else if(e&&"string"==typeof e.name&&je.hasOwnProperty(e.name)){var t=je[e.name];"string"==typeof t&&(t={name:t}),(e=J(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ze("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ze("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ke(e,t){t=Ze(t);var n=ze[t.name];if(!n)return Ke(e,"text/plain");var i=n(e,t);if(Ge.hasOwnProperty(t.name)){var r=Ge[t.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)i[a]=t.modeProps[a];return i}var Ge={};function Ue(e,t){O(t,Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={})}function Ve(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var i in t){var r=t[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function We(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function qe(e,t,n){return!e.startState||e.startState(t,n)}var Ye=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Xe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(t=e.first&&tn?ot(n,Xe(e,n).text.length):pt(t,Xe(e,t.line).text.length)}function pt(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}function ft(e,t){for(var n=[],i=0;i=this.string.length},Ye.prototype.sol=function(){return this.pos==this.lineStart},Ye.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ye.prototype.next=function(){if(this.post},Ye.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ye.prototype.skipToEnd=function(){this.pos=this.string.length},Ye.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ye.prototype.backUp=function(e){this.pos-=e},Ye.prototype.column=function(){return this.lastColumnPos0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return!1!==t&&(this.pos+=e.length),!0},Ye.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ye.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ye.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ye.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var gt=function(e,t){this.state=e,this.lookAhead=t},mt=function(e,t,n,i){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function vt(e,t,n,i){var r=[e.state.modeGen],o={};Pt(e,t.text,e.doc.mode,n,(function(e,t){return r.push(e,t)}),o,i);for(var a=n.state,s=function(i){n.baseTokens=r;var s=e.state.overlays[i],l=1,c=0;n.state=!0,Pt(e,t.text,s.mode,n,(function(e,t){for(var n=l;ce&&r.splice(l,1,e,r[l+1],i),l+=2,c=Math.min(e,i)}if(t)if(s.opaque)r.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Ve(e.doc.mode,i.state),o=vt(e,t,i);r&&(i.state=r),t.stateAfter=i.save(!r),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function bt(e,t,n){var i=e.doc,r=e.display;if(!i.mode.startState)return new mt(i,!0,t);var o=Et(e,t,n),a=o>i.first&&Xe(i,o-1).stateAfter,s=a?mt.fromSaved(i,a,o):new mt(i,qe(i.mode),o);return i.iter(o,t,(function(n){wt(e,n.text,s);var i=s.line;n.stateAfter=i==t-1||i%5==0||i>=r.viewFrom&&it.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},mt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},mt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mt.fromSaved=function(e,t,n){return t instanceof gt?new mt(e,Ve(e.mode,t.state),n,t.lookAhead):new mt(e,Ve(e.mode,t),n)},mt.prototype.save=function(e){var t=!1!==e?Ve(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gt(t,this.maxLookAhead):t};var kt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function _t(e,t,n,i){var r,o,a=e.doc,s=a.mode,l=Xe(a,(t=dt(a,t)).line),c=bt(e,t.line,n),u=new Ye(l.text,e.options.tabSize,c);for(i&&(o=[]);(i||u.pose.options.maxHighlightLength?(s=!1,a&&wt(e,t,i,h.pos),h.pos=t.length,l=null):l=Ct(St(n,h,i.state,d),o),d){var p=d[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||u!=l){for(;ca;--s){if(s<=o.first)return o.first;var l=Xe(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof gt?c.lookAhead:0)<=o.modeFrontier))return s;var u=F(l.text,null,e.options.tabSize);(null==r||i>u)&&(r=s-1,i=u)}return r}function Mt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;i--){var r=Xe(e,i).stateAfter;if(r&&(!(r instanceof gt)||i+r.lookAhead=t:o.to>t);(i||(i=[])).push(new Nt(a,o.from,s?null:o.to))}}return i}function Ft(e,t,n){var i;if(e)for(var r=0;r=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;b0)){var u=[l,1],h=at(c.from,s.from),d=at(c.to,s.to);(h<0||!a.inclusiveLeft&&!h)&&u.push({from:c.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&u.push({from:s.to,to:c.to}),r.splice.apply(r,u),l+=u.length-3}}return r}function Ht(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Ut(n,o.marker)<0)&&(n=o.marker)}return n}function Xt(e,t,n,i,r){var o=Xe(e,t),a=At&&o.markedSpans;if(a)for(var s=0;s=0&&h<=0||u<=0&&h>=0)&&(u<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?at(c.to,n)>=0:at(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?at(c.from,i)<=0:at(c.from,i)<0)))return!0}}}function Qt(e){for(var t;t=Wt(e);)e=t.find(-1,!0).line;return e}function Jt(e){for(var t;t=qt(e);)e=t.find(1,!0).line;return e}function en(e){for(var t,n;t=qt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function tn(e,t){var n=Xe(e,t),i=Qt(n);return n==i?t:tt(i)}function nn(e,t){if(t>e.lastLine())return t;var n,i=Xe(e,t);if(!rn(e,i))return t;for(;n=qt(i);)i=n.find(1,!0).line;return tt(i)+1}function rn(e,t){var n=At&&t.markedSpans;if(n)for(var i=void 0,r=0;rt.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var cn=function(e,t,n){this.text=e,Zt(this,t),this.height=n?n(this):1};function un(e,t,n,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ht(e),Zt(e,n);var r=i?i(e):1;r!=e.height&&et(e,r)}function hn(e){e.parent=null,Ht(e)}cn.prototype.lineNo=function(){return tt(this)},xe(cn);var dn={},pn={};function fn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?pn:dn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function gn(e,t){var n=A("span",null,null,l?"padding-right: .1px":null),i={pre:A("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var r=0;r<=(t.rest?t.rest.length:0);r++){var o=r?t.rest[r-1]:t.line,a=void 0;i.pos=0,i.addToken=vn,De(e.display.measure)&&(a=de(o,e.doc.direction))&&(i.addToken=bn(i.addToken,a)),i.map=[],xn(o,i,yt(e,o,t!=e.display.externalMeasured&&tt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(i.bgClass=I(o.styleClasses.bgClass,i.bgClass||"")),o.styleClasses.textClass&&(i.textClass=I(o.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(Te(e.display.measure))),0==r?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=i.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=I(i.pre.className,i.textClass||"")),i}function mn(e){var t=L("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function vn(e,t,n,i,r,o,l){if(t){var c,u=e.splitSpaces?yn(t,e.trailingSpace):t,h=e.cm.state.specialChars,d=!1;if(h.test(t)){c=document.createDocumentFragment();for(var p=0;;){h.lastIndex=p;var f=h.exec(t),g=f?f.index-p:t.length-p;if(g){var m=document.createTextNode(u.slice(p,p+g));a&&s<9?c.appendChild(L("span",[m])):c.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g}if(!f)break;p+=g+1;var v=void 0;if("\t"==f[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=c.appendChild(L("span",W(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==f[0]||"\n"==f[0]?((v=c.appendChild(L("span","\r"==f[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",f[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),a&&s<9?c.appendChild(L("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||i||r||d||o||l){var w=n||"";i&&(w+=i),r&&(w+=r);var x=L("span",[c],w,o);if(l)for(var S in l)l.hasOwnProperty(S)&&"style"!=S&&"class"!=S&&x.setAttribute(S,l[S]);return e.content.appendChild(x)}e.content.appendChild(c)}}function yn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,i="",r=0;rc&&h.from<=c);d++);if(h.to>=u)return e(n,i,r,o,a,s,l);e(n,i.slice(0,h.to-c),r,o,null,s,l),o=null,i=i.slice(h.to-c),c=h.to}}}function wn(e,t,n,i){var r=!i&&n.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!i&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function xn(e,t,n){var i=e.markedSpans,r=e.text,o=0;if(i)for(var a,s,l,c,u,h,d,p=r.length,f=0,g=1,m="",v=0;;){if(v==f){l=c=u=s="",d=null,h=null,v=1/0;for(var y=[],b=void 0,w=0;wf||S.collapsed&&x.to==f&&x.from==f)){if(null!=x.to&&x.to!=f&&v>x.to&&(v=x.to,c=""),S.className&&(l+=" "+S.className),S.css&&(s=(s?s+";":"")+S.css),S.startStyle&&x.from==f&&(u+=" "+S.startStyle),S.endStyle&&x.to==v&&(b||(b=[])).push(S.endStyle,x.to),S.title&&((d||(d={})).title=S.title),S.attributes)for(var k in S.attributes)(d||(d={}))[k]=S.attributes[k];S.collapsed&&(!h||Ut(h.marker,S)<0)&&(h=x)}else x.from>f&&v>x.from&&(v=x.from)}if(b)for(var _=0;_=p)break;for(var P=Math.min(p,v);;){if(m){var E=f+m.length;if(!h){var M=E>P?m.slice(0,P-f):m;t.addToken(t,M,a?a+l:l,u,f+M.length==v?c:"",s,d)}if(E>=P){m=m.slice(P-f),f=P;break}f=E,u=""}m=r.slice(o,o=n[g++]),a=fn(n[g++],t.cm.options)}}else for(var L=1;L2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Qn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var i=0;in)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function Jn(e,t){var n=tt(t=Qt(t)),i=e.display.externalMeasured=new Sn(e.doc,t,n);i.lineN=n;var r=i.built=gn(e,i);return i.text=r.pre,M(e.display.lineMeasure,r.pre),i}function ei(e,t,n,i){return ii(e,ni(e,t),n,i)}function ti(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(r=(o=l-s)-1,t>=l&&(a="right")),null!=r){if(i=e[c+2],s==l&&n==(i.insertLeft?"left":"right")&&(a=n),"left"==n&&0==r)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)i=e[2+(c-=3)],a="left";if("right"==n&&r==l-s)for(;c=0&&(n=e[r]).left==n.right;r--);return n}function li(e,t,n,i){var r,o=ai(t.map,n,i),l=o.node,c=o.start,u=o.end,h=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;c&&oe(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u0&&(h=i="right"),r=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==i?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!r||!r.left&&!r.right)){var f=l.parentNode.getClientRects()[0];r=f?{left:f.left,right:f.left+Ai(e.display),top:f.top,bottom:f.bottom}:oi}for(var g=r.top-t.rect.top,m=r.bottom-t.rect.top,v=(g+m)/2,y=t.view.measure.heights,b=0;b=i.text.length?(l=i.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var h=ue(s,l,c),d=ce,p=u(l,h,"before"==c);return null!=d&&(p.other=u(l,d,"before"!=c)),p}function wi(e,t){var n=0;t=dt(e.doc,t),e.options.lineWrapping||(n=Ai(e.display)*t.ch);var i=Xe(e.doc,t.line),r=an(i)+Gn(e.display);return{left:n,right:n,top:r,bottom:r+i.height}}function xi(e,t,n,i,r){var o=ot(e,t,n);return o.xRel=r,i&&(o.outside=i),o}function Si(e,t,n){var i=e.doc;if((n+=e.display.viewOffset)<0)return xi(i.first,0,null,-1,-1);var r=nt(i,n),o=i.first+i.size-1;if(r>o)return xi(i.first+i.size-1,Xe(i,o).text.length,null,1,1);t<0&&(t=0);for(var a=Xe(i,r);;){var s=Pi(e,a,r,t,n),l=Yt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==r)return c;a=Xe(i,r=c.line)}}function ki(e,t,n,i){i-=gi(t);var r=t.text.length,o=se((function(t){return ii(e,n,t-1).bottom<=i}),r,0);return{begin:o,end:r=se((function(t){return ii(e,n,t).top>i}),o,r)}}function _i(e,t,n,i){return n||(n=ni(e,t)),ki(e,t,n,mi(e,t,ii(e,n,i),"line").top)}function Ci(e,t,n,i){return!(e.bottom<=n)&&(e.top>n||(i?e.left:e.right)>t)}function Pi(e,t,n,i,r){r-=an(t);var o=ni(e,t),a=gi(t),s=0,l=t.text.length,c=!0,u=de(t,e.doc.direction);if(u){var h=(e.options.lineWrapping?Mi:Ei)(e,t,n,o,u,i,r);s=(c=1!=h.level)?h.from:h.to-1,l=c?h.to:h.from-1}var d,p,f=null,g=null,m=se((function(t){var n=ii(e,o,t);return n.top+=a,n.bottom+=a,!!Ci(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(f=t,g=n),!0)}),s,l),v=!1;if(g){var y=i-g.left=w.bottom?1:0}return xi(n,m=ae(t.text,m,1),p,v,i-d)}function Ei(e,t,n,i,r,o,a){var s=se((function(s){var l=r[s],c=1!=l.level;return Ci(bi(e,ot(n,c?l.to:l.from,c?"before":"after"),"line",t,i),o,a,!0)}),0,r.length-1),l=r[s];if(s>0){var c=1!=l.level,u=bi(e,ot(n,c?l.from:l.to,c?"after":"before"),"line",t,i);Ci(u,o,a,!0)&&u.top>a&&(l=r[s-1])}return l}function Mi(e,t,n,i,r,o,a){var s=ki(e,t,i,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,h=null,d=0;d=c||p.to<=l)){var f=ii(e,i,1!=p.level?Math.min(c,p.to)-1:Math.max(l,p.from)).right,g=fg)&&(u=p,h=g)}}return u||(u=r[r.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function Li(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ri){ri=L("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ri.appendChild(document.createTextNode("x")),ri.appendChild(L("br"));ri.appendChild(document.createTextNode("x"))}M(e.measure,ri);var n=ri.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),E(e.measure),n||1}function Ai(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=L("span","xxxxxxxxxx"),n=L("pre",[t],"CodeMirror-line-like");M(e.measure,n);var i=t.getBoundingClientRect(),r=(i.right-i.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function Ti(e){for(var t=e.display,n={},i={},r=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+r,i[s]=o.clientWidth}return{fixedPos:Di(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function Di(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ni(e){var t=Li(e.display),n=e.options.lineWrapping,i=n&&Math.max(5,e.display.scroller.clientWidth/Ai(e.display)-3);return function(r){if(rn(e.doc,r))return 0;var o=0;if(r.widgets)for(var a=0;a0&&(l=Xe(e.doc,c.line).text).length==c.ch){var u=F(l,l.length,e.options.tabSize)-l.length;c=ot(c.line,Math.max(0,Math.round((o-Vn(e.display).left)/Ai(e.display))-u))}return c}function Ri(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,i=0;it)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)At&&tn(e.doc,t)r.viewFrom?zi(e):(r.viewFrom+=i,r.viewTo+=i);else if(t<=r.viewFrom&&n>=r.viewTo)zi(e);else if(t<=r.viewFrom){var o=ji(e,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):zi(e)}else if(n>=r.viewTo){var a=ji(e,t,t,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):zi(e)}else{var s=ji(e,t,t,-1),l=ji(e,n,n+i,1);s&&l?(r.view=r.view.slice(0,s.index).concat(kn(e,s.lineN,l.lineN)).concat(r.view.slice(l.index)),r.viewTo+=i):zi(e)}var c=r.externalMeasured;c&&(n=r.lineN&&t=i.viewTo)){var o=i.view[Ri(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==j(a,n)&&a.push(n)}}}function zi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ji(e,t,n,i){var r,o=Ri(e,t),a=e.display.view;if(!At||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;r=s+a[o].size-t,o++}else r=s-t;t+=r,n+=r}for(;tn(e.doc,n)!=n;){if(o==(i<0?0:a.length-1))return null;n+=i*a[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function $i(e,t,n){var i=e.display;0==i.view.length||t>=i.viewTo||n<=i.viewFrom?(i.view=kn(e,t,n),i.viewFrom=t):(i.viewFrom>t?i.view=kn(e,t,i.viewFrom).concat(i.view):i.viewFromn&&(i.view=i.view.slice(0,Ri(e,n)))),i.viewTo=n}function Hi(e){for(var t=e.display.view,n=0,i=0;i=e.display.viewTo||s.to().line0?t.blinker=setInterval((function(){e.hasFocus()||Qi(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function qi(e){e.state.focused||(e.display.input.focus(),Xi(e))}function Yi(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Qi(e))}),100)}function Xi(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,N(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Wi(e))}function Qi(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,P(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Ji(e){for(var t=e.display,n=t.lineDiv.offsetTop,i=0;i.005||d<-.005)&&(et(r.line,l),er(r.line),r.rest))for(var p=0;pe.display.sizerWidth){var f=Math.ceil(c/Ai(e.display));f>e.display.maxLineLength&&(e.display.maxLineLength=f,e.display.maxLine=r.line,e.display.maxLineChanged=!0)}}}}function er(e){if(e.widgets)for(var t=0;t=a&&(o=nt(t,an(Xe(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function nr(e,t){if(!ye(e,"scrollCursorIntoView")){var n=e.display,i=n.sizer.getBoundingClientRect(),r=null;if(t.top+i.top<0?r=!0:t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),null!=r&&!f){var o=L("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Gn(e.display))+"px;\n height: "+(t.bottom-t.top+Wn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(r),e.display.lineSpace.removeChild(o)}}}function ir(e,t,n,i){var r;null==i&&(i=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?ot(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=bi(e,t),l=n&&n!=t?bi(e,n):s,c=or(e,r={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-i,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+i}),u=e.doc.scrollTop,h=e.doc.scrollLeft;if(null!=c.scrollTop&&(dr(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(fr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-h)>1&&(a=!0)),!a)break}return r}function rr(e,t){var n=or(e,t);null!=n.scrollTop&&dr(e,n.scrollTop),null!=n.scrollLeft&&fr(e,n.scrollLeft)}function or(e,t){var n=e.display,i=Li(e.display);t.top<0&&(t.top=0);var r=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Yn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Un(n),l=t.tops-i;if(t.topr+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=r&&(a.scrollTop=u)}var h=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-h,p=qn(e)-n.gutters.offsetWidth,f=t.right-t.left>p;return f&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+d-3&&(a.scrollLeft=t.right+(f?0:10)-p),a}function ar(e,t){null!=t&&(ur(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function sr(e){ur(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function lr(e,t,n){null==t&&null==n||ur(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function cr(e,t){ur(e),e.curOp.scrollToPos=t}function ur(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,hr(e,wi(e,t.from),wi(e,t.to),t.margin))}function hr(e,t,n,i){var r=or(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-i,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+i});lr(e,r.scrollLeft,r.scrollTop)}function dr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Zr(e,{top:t}),pr(e,t,!0),n&&Zr(e),Br(e,100))}function pr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function fr(e,t,n,i){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i||(e.doc.scrollLeft=t,Vr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function gr(e){var t=e.display,n=t.gutters.offsetWidth,i=Math.round(e.doc.height+Un(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+Wn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var mr=function(e,t,n){this.cm=n;var i=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=r.tabIndex=-1,e(i),e(r),fe(i,"scroll",(function(){i.clientHeight&&t(i.scrollTop,"vertical")})),fe(r,"scroll",(function(){r.clientWidth&&t(r.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};mr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0";var r=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:t?i:0}},mr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mr.prototype.zeroWidthHack=function(){var e=y&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new z,this.disableVert=new z},mr.prototype.enableZeroWidthBar=function(e,t,n){function i(){var r=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,i)}e.style.pointerEvents="auto",t.set(1e3,i)},mr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vr=function(){};function yr(e,t){t||(t=gr(e));var n=e.display.barWidth,i=e.display.barHeight;br(e,t);for(var r=0;r<4&&n!=e.display.barWidth||i!=e.display.barHeight;r++)n!=e.display.barWidth&&e.options.lineWrapping&&Ji(e),br(e,gr(e)),n=e.display.barWidth,i=e.display.barHeight}function br(e,t){var n=e.display,i=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}vr.prototype.update=function(){return{bottom:0,right:0}},vr.prototype.setScrollLeft=function(){},vr.prototype.setScrollTop=function(){},vr.prototype.clear=function(){};var wr={native:mr,null:vr};function xr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&P(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new wr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),fe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?fr(e,t):dr(e,t)}),e),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)}var Sr=0;function kr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Sr},Cn(e.curOp)}function _r(e){var t=e.curOp;t&&En(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Or(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Er(e){e.updatedDisplay=e.mustUpdate&&$r(e.cm,e.update)}function Mr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Ji(t),e.barMeasure=gr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ei(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Wn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-qn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Lr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,i=bt(e,t.highlightFrontier),r=[];t.iter(i.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(i.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ve(t.mode,i.state):null,l=vt(e,o,i,!0);s&&(i.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var h=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),d=0;!h&&dn)return Br(e,e.options.workDelay),!0})),t.highlightFrontier=i.line,t.modeFrontier=Math.max(t.modeFrontier,i.line),r.length&&Tr(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Hi(e))return!1;Wr(e)&&(zi(e),t.dims=Ti(e));var r=i.first+i.size,o=Math.max(t.visible.from-e.options.viewportMargin,i.first),a=Math.min(r,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(r,n.viewTo)),At&&(o=tn(e.doc,o),a=nn(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;$i(e,o,a),n.viewOffset=an(Xe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Hi(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=zr(e);return l>4&&(n.lineDiv.style.display="none"),Kr(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,jr(c),E(n.cursorDiv),E(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Br(e,400)),n.updateLineNumbers=null,!0}function Hr(e,t){for(var n=t.viewport,i=!0;;i=!1){if(i&&e.options.lineWrapping&&t.oldDisplayWidth!=qn(e))i&&(t.visible=tr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Un(e.display)-Yn(e),n.top)}),t.visible=tr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!$r(e,t))break;Ji(e);var r=gr(e);Zi(e),yr(e,r),Ur(e,r),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Zr(e,t){var n=new Or(e,t);if($r(e,n)){Ji(e),Hr(e,n);var i=gr(e);Zi(e),yr(e,i),Ur(e,i),n.finish()}}function Kr(e,t,n){var i=e.display,r=e.options.lineNumbers,o=i.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=i.view,u=i.viewFrom,h=0;h-1&&(p=!1),Tn(e,d,u,n)),p&&(E(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(rt(e.options,u)))),a=d.node.nextSibling}else{var f=zn(e,d,u,n);o.insertBefore(f,a)}u+=d.size}for(;a;)a=s(a)}function Gr(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Ur(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Wn(e)+"px"}function Vr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=Di(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,o=i+"px",a=0;as.clientWidth,u=s.scrollHeight>s.clientHeight;if(r&&c||o&&u){if(o&&y&&l)e:for(var d=t.target,p=a.view;d!=s;d=d.parentNode)for(var f=0;f=0&&at(e,i.to())<=0)return n}return-1};var oo=function(e,t){this.anchor=e,this.head=t};function ao(e,t,n){var i=e&&e.options.selectionsMayTouch,r=t[n];t.sort((function(e,t){return at(e.from(),t.from())})),n=j(t,r);for(var o=1;o0:l>=0){var c=ut(s.from(),a.from()),u=ct(s.to(),a.to()),h=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new oo(h?u:c,h?c:u))}}return new ro(t,n)}function so(e,t){return new ro([new oo(e,t||e)],0)}function lo(e){return e.text?ot(e.from.line+e.text.length-1,q(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function co(e,t){if(at(e,t.from)<0)return e;if(at(e,t.to)<=0)return lo(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=lo(t).ch-t.to.ch),ot(n,i)}function uo(e,t){for(var n=[],i=0;i1&&e.remove(s.line+1,f-1),e.insert(s.line+1,v)}Ln(e,"change",e,t)}function yo(e,t,n){function i(e,r,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),q(e.done)):void 0}function Po(e,t,n,i){var r=e.history;r.undone.length=0;var o,a,s=+new Date;if((r.lastOp==i||r.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&r.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Co(r,r.lastOp==i)))a=q(o.changes),0==at(t.from,t.to)&&0==at(t.from,a.to)?a.to=lo(t):o.changes.push(ko(e,t));else{var l=q(r.done);for(l&&l.ranges||Lo(e.sel,r.done),o={changes:[ko(e,t)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=s,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=t.origin,a||ve(e,"historyAdded")}function Eo(e,t,n,i){var r=t.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Mo(e,t,n,i){var r=e.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||Eo(e,o,q(r.done),t))?r.done[r.done.length-1]=t:Lo(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&!1!==i.clearRedo&&_o(r.undone)}function Lo(e,t){var n=q(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ao(e,t,n,i){var r=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,i),(function(n){n.markedSpans&&((r||(r=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function To(e){if(!e)return null;for(var t,n=0;n-1&&(q(s)[h]=c[h],delete c[h])}}}return i}function Bo(e,t,n,i){if(i){var r=e.anchor;if(n){var o=at(t,r)<0;o!=at(n,r)<0?(r=t,t=n):o!=at(t,n)<0&&(t=n)}return new oo(r,t)}return new oo(n||t,t)}function Ro(e,t,n,i,r){null==r&&(r=e.cm&&(e.cm.display.shift||e.extend)),Ho(e,new ro([Bo(e.sel.primary(),t,n,r)],0),i)}function Oo(e,t,n){for(var i=[],r=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(r&&(ve(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var h=l.find(i<0?1:-1),d=void 0;if((i<0?u:c)&&(h=qo(e,h,-i,h&&h.line==t.line?o:null)),h&&h.line==t.line&&(d=at(h,n))&&(i<0?d<0:d>0))return Vo(e,h,t,i,r)}var p=l.find(i<0?-1:1);return(i<0?c:u)&&(p=qo(e,p,i,p.line==t.line?o:null)),p?Vo(e,p,t,i,r):null}}return t}function Wo(e,t,n,i,r){var o=i||1,a=Vo(e,t,n,o,r)||!r&&Vo(e,t,n,o,!0)||Vo(e,t,n,-o,r)||!r&&Vo(e,t,n,-o,!0);return a||(e.cantEdit=!0,ot(e.first,0))}function qo(e,t,n,i){return n<0&&0==t.ch?t.line>e.first?dt(e,ot(t.line-1)):null:n>0&&t.ch==(i||Xe(e,t.line)).text.length?t.line=0;--r)Jo(e,{from:i[r].from,to:i[r].to,text:r?[""]:t.text,origin:t.origin});else Jo(e,t)}}function Jo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=at(t.from,t.to)){var n=uo(e,t);Po(e,t,n,e.cm?e.cm.curOp.id:NaN),na(e,t,n,zt(e,t));var i=[];yo(e,(function(e,n){n||-1!=j(i,e.history)||(sa(e.history,t),i.push(e.history)),na(e,t,null,zt(e,t))}))}}function ea(e,t,n){var i=e.cm&&e.cm.state.suppressEdits;if(!i||n){for(var r,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c=0;--p){var f=d(p);if(f)return f.v}}}}function ta(e,t){if(0!=t&&(e.first+=t,e.sel=new ro(Y(e.sel.ranges,(function(e){return new oo(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Oi(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;ie.lastLine())){if(t.from.lineo&&(t={from:t.from,to:ot(o,Xe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Qe(e,t.from,t.to),n||(n=uo(e,t)),e.cm?ia(e.cm,t,i):vo(e,t,i),Zo(e,n,Z),e.cantEdit&&Wo(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function ia(e,t,n){var i=e.doc,r=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=tt(Qt(Xe(i,o.line))),i.iter(l,a.line+1,(function(e){if(e==r.maxLine)return s=!0,!0}))),i.sel.contains(t.from,t.to)>-1&&be(e),vo(i,t,n,Ni(e)),e.options.lineWrapping||(i.iter(l,o.line+t.text.length,(function(e){var t=sn(e);t>r.maxLineLength&&(r.maxLine=e,r.maxLineLength=t,r.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),Mt(i,o.line),Br(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?Oi(e):o.line!=a.line||1!=t.text.length||mo(e.doc,t)?Oi(e,o.line,a.line+1,c):Fi(e,o.line,"text");var u=we(e,"changes"),h=we(e,"change");if(h||u){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};h&&Ln(e,"change",e,d),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function ra(e,t,n,i,r){var o;i||(i=n),at(i,n)<0&&(n=(o=[i,n])[0],i=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Qo(e,{from:n,to:i,text:t,origin:r})}function oa(e,t,n,i){n1||!(this.children[0]instanceof ca))){var s=[];this.collapse(s),this.children=[new ca(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=r.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var i=0;i0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=A("span",[o.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Xt(e,t.line,t,n,o)||t.line!=n.line&&Xt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Dt()}o.addToHistory&&Po(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(e){c&&o.collapsed&&!c.options.lineWrapping&&Qt(e)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&et(e,0),Rt(e,new Nt(o,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){rn(e,t)&&et(t,0)})),o.clearOnEnter&&fe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Tt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++fa,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)Oi(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)Fi(c,u,"text");o.atomic&&Go(c.doc),Ln(c,"markerAdded",c,o)}return o}ga.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&kr(e),we(this,"clear")){var n=this.find();n&&Ln(this,"clear",n.from,n.to)}for(var i=null,r=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=i&&e&&this.collapsed&&Oi(e,i,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Go(e.doc)),e&&Ln(e,"markerCleared",e,this,i,r),t&&_r(e),this.parent&&this.parent.clear()}},ga.prototype.find=function(e,t){var n,i;null==e&&"bookmark"==this.type&&(e=1);for(var r=0;r=0;l--)Qo(this,i[l]);s?$o(this,s):this.cm&&sr(this.cm)})),undo:Ir((function(){ea(this,"undo")})),redo:Ir((function(){ea(this,"redo")})),undoSelection:Ir((function(){ea(this,"undo",!0)})),redoSelection:Ir((function(){ea(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,i=0;i=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,n){e=dt(this,e),t=dt(this,t);var i=[],r=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&r!=e.line||null!=l.from&&r==t.line&&l.from>=t.ch||n&&!n(l.marker)||i.push(l.marker.parent||l.marker)}++r})),i},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var i=0;ie)return t=e,!0;e-=o,++n})),dt(this,ot(n,t))},indexFromPos:function(e){var t=(e=dt(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var h=e.dataTransfer.getData("Text");if(h){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),Zo(t.doc,so(n,n)),d)for(var p=0;p=0;t--)ra(e.doc,"",i[t].from,i[t].to,"+delete");sr(e)}))}function Va(e,t,n){var i=ae(e.text,t+n,n);return i<0||i>e.text.length?null:i}function Wa(e,t,n){var i=Va(e,t.ch,n);return null==i?null:new ot(t.line,i,n<0?"after":"before")}function qa(e,t,n,i,r){if(e){"rtl"==t.doc.direction&&(r=-r);var o=de(n,t.doc.direction);if(o){var a,s=r<0?q(o):o[0],l=r<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=ni(t,n);a=r<0?n.text.length-1:0;var u=ii(t,c,a).top;a=se((function(e){return ii(t,c,e).top==u}),r<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Va(n,a,1))}else a=r<0?s.to:s.from;return new ot(i,a,l)}}return new ot(i,r<0?n.text.length:0,r<0?"before":"after")}function Ya(e,t,n,i){var r=de(t,e.doc.direction);if(!r)return Wa(t,n,i);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ue(r,n.ch,n.sticky),a=r[o];if("ltr"==e.doc.direction&&a.level%2==0&&(i>0?a.to>n.ch:a.from=a.from&&d>=u.begin)){var p=h?"before":"after";return new ot(n.line,d,p)}}var f=function(e,t,i){for(var o=function(e,t){return t?new ot(n.line,l(e,1),"before"):new ot(n.line,e,"after")};e>=0&&e0==(1!=a.level),c=s?i.begin:l(i.end,-1);if(a.from<=c&&c0?u.end:l(u.begin,-1);return null==m||i>0&&m==t.text.length||!(g=f(i>0?0:r.length-1,i,c(m)))?null:g}Fa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Fa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Fa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Fa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Fa.default=y?Fa.macDefault:Fa.pcDefault;var Xa={selectAll:Yo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Z)},killLine:function(e){return Ua(e,(function(t){if(t.empty()){var n=Xe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)r=new ot(r.line,r.ch+1),e.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),ot(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var a=Xe(e.doc,r.line-1).text;a&&(r=new ot(r.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ot(r.line-1,a.length-1),r,"+transpose"))}n.push(new oo(r,r))}e.setSelections(n)}))},newlineAndIndent:function(e){return Tr(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var i=0;i-1&&(at((r=s.ranges[r]).from(),t)<0||t.xRel>0)&&(at(r.to(),t)>0||t.xRel<0)?Ss(e,i,t,o):_s(e,i,t,o)}function Ss(e,t,n,i){var r=e.display,o=!1,c=Dr(e,(function(t){l&&(r.scroller.draggable=!1),e.state.draggingText=!1,me(r.wrapper.ownerDocument,"mouseup",c),me(r.wrapper.ownerDocument,"mousemove",u),me(r.scroller,"dragstart",h),me(r.scroller,"drop",c),o||(Se(t),i.addNew||Ro(e.doc,n,null,null,i.extend),l&&!d||a&&9==s?setTimeout((function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()}),20):r.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},h=function(){return o=!0};l&&(r.scroller.draggable=!0),e.state.draggingText=c,c.copy=!i.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),fe(r.wrapper.ownerDocument,"mouseup",c),fe(r.wrapper.ownerDocument,"mousemove",u),fe(r.scroller,"dragstart",h),fe(r.scroller,"drop",c),Yi(e),setTimeout((function(){return r.input.focus()}),20)}function ks(e,t,n){if("char"==n)return new oo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new oo(ot(t.line,0),dt(e.doc,ot(t.line+1,0)));var i=n(e,t);return new oo(i.from,i.to)}function _s(e,t,n,i){var r=e.display,o=e.doc;Se(t);var a,s,l=o.sel,c=l.ranges;if(i.addNew&&!i.extend?(s=o.sel.contains(n),a=s>-1?c[s]:new oo(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==i.unit)i.addNew||(a=new oo(n,n)),n=Bi(e,t,!0,!0),s=-1;else{var u=ks(e,n,i.unit);a=i.extend?Bo(a,u.anchor,u.head,i.extend):u}i.addNew?-1==s?(s=c.length,Ho(o,ao(e,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==i.unit&&!i.extend?(Ho(o,ao(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Fo(o,s,a,K):(s=0,Ho(o,new ro([a],0),K),l=o.sel);var h=n;function d(t){if(0!=at(h,t))if(h=t,"rectangle"==i.unit){for(var r=[],c=e.options.tabSize,u=F(Xe(o,n.line).text,n.ch,c),d=F(Xe(o,t.line).text,t.ch,c),p=Math.min(u,d),f=Math.max(u,d),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var v=Xe(o,g).text,y=U(v,p,c);p==f?r.push(new oo(ot(g,y),ot(g,y))):v.length>y&&r.push(new oo(ot(g,y),ot(g,U(v,f,c))))}r.length||r.push(new oo(n,n)),Ho(o,ao(e,l.ranges.slice(0,s).concat(r),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=a,x=ks(e,t,i.unit),S=w.anchor;at(x.anchor,S)>0?(b=x.head,S=ut(w.from(),x.anchor)):(b=x.anchor,S=ct(w.to(),x.head));var k=l.ranges.slice(0);k[s]=Cs(e,new oo(dt(o,S),b)),Ho(o,ao(e,k,s),K)}}var p=r.wrapper.getBoundingClientRect(),f=0;function g(t){var n=++f,a=Bi(e,t,!0,"rectangle"==i.unit);if(a)if(0!=at(a,h)){e.curOp.focus=D(),d(a);var s=tr(r,o);(a.line>=s.to||a.linep.bottom?20:0;l&&setTimeout(Dr(e,(function(){f==n&&(r.scroller.scrollTop+=l,g(t))})),50)}}function m(t){e.state.selectingText=!1,f=1/0,t&&(Se(t),r.input.focus()),me(r.wrapper.ownerDocument,"mousemove",v),me(r.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null}var v=Dr(e,(function(e){0!==e.buttons&&Ee(e)?g(e):m(e)})),y=Dr(e,m);e.state.selectingText=y,fe(r.wrapper.ownerDocument,"mousemove",v),fe(r.wrapper.ownerDocument,"mouseup",y)}function Cs(e,t){var n=t.anchor,i=t.head,r=Xe(e.doc,n.line);if(0==at(n,i)&&n.sticky==i.sticky)return t;var o=de(r);if(!o)return t;var a=ue(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(i.line!=n.line)l=(i.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ue(o,i.ch,i.sticky),h=u-a||(i.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?h<0:h>0}var d=o[c+(l?-1:0)],p=l==(1==d.level),f=p?d.from:d.to,g=p?"after":"before";return n.ch==f&&n.sticky==g?t:new oo(new ot(n.line,f,g),i)}function Ps(e,t,n,i){var r,o;if(t.touches)r=t.touches[0].clientX,o=t.touches[0].clientY;else try{r=t.clientX,o=t.clientY}catch(e){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&Se(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!we(e,n))return _e(t);o-=s.top-a.viewOffset;for(var l=0;l=r)return ve(e,n,e,nt(e.doc,o),e.display.gutterSpecs[l].className,t),_e(t)}}function Es(e,t){return Ps(e,t,"gutterClick",!0)}function Ms(e,t){Kn(e.display,t)||Ls(e,t)||ye(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function Ls(e,t){return!!we(e,"gutterContextMenu")&&Ps(e,t,"gutterContextMenu",!1)}function As(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),di(e)}ms.prototype.compare=function(e,t,n){return this.time+gs>e&&0==at(t,this.pos)&&n==this.button};var Ts={toString:function(){return"CodeMirror.Init"}},Ds={},Ns={};function Is(e){var t=e.optionHandlers;function n(n,i,r,o){e.defaults[n]=i,r&&(t[n]=o?function(e,t,n){n!=Ts&&r(e,t,n)}:r)}e.defineOption=n,e.Init=Ts,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,fo(e)}),!0),n("indentUnit",2,fo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){go(e),di(e),Oi(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],i=e.doc.first;e.doc.iter((function(e){for(var r=0;;){var o=e.text.indexOf(t,r);if(-1==o)break;r=o+t.length,n.push(ot(i,o))}i++}));for(var r=n.length-1;r>=0;r--)ra(e.doc,t,n[r],ot(n[r].line,n[r].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ts&&e.refresh()})),n("specialCharPlaceholder",mn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){As(e),Xr(e)}),!0),n("keyMap","default",(function(e,t,n){var i=Ga(t),r=n!=Ts&&Ga(n);r&&r.detach&&r.detach(e,i),i.attach&&i.attach(e,r||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Rs,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=qr(t,e.options.lineNumbers),Xr(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Di(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return yr(e)}),!0),n("scrollbarStyle","native",(function(e){xr(e),yr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=qr(e.options.gutters,t),Xr(e)}),!0),n("firstLineNumber",1,Xr,!0),n("lineNumberFormatter",(function(e){return e}),Xr,!0),n("showCursorWhenSelecting",!1,Zi,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Qi(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Bs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Zi,!0),n("singleCursorHeightPerLine",!0,Zi,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,go,!0),n("addModeClass",!1,go,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,go,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Bs(e,t,n){if(!t!=!(n&&n!=Ts)){var i=e.display.dragFunctions,r=t?fe:me;r(e.display.scroller,"dragstart",i.start),r(e.display.scroller,"dragenter",i.enter),r(e.display.scroller,"dragover",i.over),r(e.display.scroller,"dragleave",i.leave),r(e.display.scroller,"drop",i.drop)}}function Rs(e){e.options.lineWrapping?(N(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(P(e.display.wrapper,"CodeMirror-wrap"),ln(e)),Ii(e),Oi(e),di(e),setTimeout((function(){return yr(e)}),100)}function Os(e,t){var n=this;if(!(this instanceof Os))return new Os(e,t);this.options=t=t?O(t):{},O(Ds,t,!1);var i=t.value;"string"==typeof i?i=new ka(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var r=new Os.inputStyles[t.inputStyle](this),o=this.display=new Qr(e,i,r,t);for(var c in o.wrapper.CodeMirror=this,As(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new z,keySeq:null,specialChars:null},t.autofocus&&!v&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Fs(this),Ta(),kr(this),this.curOp.forceUpdate=!0,bo(this,i),t.autofocus&&!v||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Xi(n)}),20):Qi(this),Ns)Ns.hasOwnProperty(c)&&Ns[c](this,t[c],Ts);Wr(this),t.finishInit&&t.finishInit(this);for(var u=0;u400}fe(t.scroller,"touchstart",(function(r){if(!ye(e,r)&&!o(r)&&!Es(e,r)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-i.end<=300?i:null},1==r.touches.length&&(t.activeTouch.left=r.touches[0].pageX,t.activeTouch.top=r.touches[0].pageY)}})),fe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),fe(t.scroller,"touchend",(function(n){var i=t.activeTouch;if(i&&!Kn(t,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!i.prev||l(i,i.prev)?new oo(a,a):!i.prev.prev||l(i,i.prev.prev)?e.findWordAt(a):new oo(ot(a.line,0),dt(e.doc,ot(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Se(n)}r()})),fe(t.scroller,"touchcancel",r),fe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(dr(e,t.scroller.scrollTop),fr(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))})),fe(t.scroller,"mousewheel",(function(t){return io(e,t)})),fe(t.scroller,"DOMMouseScroll",(function(t){return io(e,t)})),fe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ye(e,t)||Ce(t)},over:function(t){ye(e,t)||(Ea(e,t),Ce(t))},start:function(t){return Pa(e,t)},drop:Dr(e,Ca),leave:function(t){ye(e,t)||Ma(e)}};var c=t.input.getField();fe(c,"keyup",(function(t){return hs.call(e,t)})),fe(c,"keydown",Dr(e,cs)),fe(c,"keypress",Dr(e,ds)),fe(c,"focus",(function(t){return Xi(e,t)})),fe(c,"blur",(function(t){return Qi(e,t)}))}Os.defaults=Ds,Os.optionHandlers=Ns;var zs=[];function js(e,t,n,i){var r,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?r=bt(e,t).state:n="prev");var a=e.options.tabSize,s=Xe(o,t),l=F(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(i||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(r,s.text.slice(u.length),s.text))==H||c>150)){if(!i)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?F(Xe(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var h="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(c/a);p;--p)d+=a,h+="\t";if(da,l=Ie(t),c=null;if(s&&i.ranges.length>1)if($s&&$s.text.join("\n")==t){if(i.ranges.length%$s.text.length==0){c=[];for(var u=0;u<$s.text.length;u++)c.push(o.splitLines($s.text[u]))}}else l.length==i.ranges.length&&e.options.pasteLinesPerSelection&&(c=Y(l,(function(e){return[e]})));for(var h=e.curOp.updateInput,d=i.ranges.length-1;d>=0;d--){var p=i.ranges[d],f=p.from(),g=p.to();p.empty()&&(n&&n>0?f=ot(f.line,f.ch-n):e.state.overwrite&&!s?g=ot(g.line,Math.min(Xe(o,g.line).text.length,g.ch+q(l).length)):s&&$s&&$s.lineWise&&$s.text.join("\n")==l.join("\n")&&(f=g=ot(f.line,0)));var m={from:f,to:g,text:c?c[d%c.length]:l,origin:r||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Qo(e.doc,m),Ln(e,"inputRead",e,m)}t&&!s&&Gs(e,t),sr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ks(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Tr(t,(function(){return Zs(t,n,0,null,"paste")})),!0}function Gs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=e.getModeAt(r.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=js(e,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Xe(e.doc,r.head.line).text.slice(0,r.head.ch))&&(a=js(e,r.head.line,"smart"));a&&Ln(e,"electricInput",e,r.head.line)}}}function Us(e){for(var t=[],n=[],i=0;in&&(js(this,r.head.line,e,!0),n=r.head.line,i==this.doc.sel.primIndex&&sr(this));else{var o=r.from(),a=r.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Fo(this.doc,i,new oo(o,c[i].to()),Z)}}})),getTokenAt:function(e,t){return _t(this,e,t)},getLineTokens:function(e,t){return _t(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=dt(this.doc,e);var t,n=yt(this,Xe(this.doc,e.line)),i=0,r=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=i+r>>1;if((a?n[2*a-1]:0)>=o)r=a;else{if(!(n[2*a+1]o&&(e=o,r=!0),i=Xe(this.doc,e)}else i=e;return mi(this,i,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-an(i):0)},defaultTextHeight:function(){return Li(this.display)},defaultCharWidth:function(){return Ai(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,i,r){var o=this.display,a=(e=bi(this,dt(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==i)a=e.top;else if("above"==i||"near"==i){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==r?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==r?s=0:"middle"==r&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&rr(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Nr(cs),triggerOnKeyPress:Nr(ds),triggerOnKeyUp:hs,triggerOnMouseDown:Nr(ys),execCommand:function(e){if(Xa.hasOwnProperty(e))return Xa[e].call(null,this)},triggerElectric:Nr((function(e){Gs(this,e)})),findPosH:function(e,t,n,i){var r=1;t<0&&(r=-1,t=-t);for(var o=dt(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;i.5||this.options.lineWrapping)&&Ii(this),ve(this,"refresh",this)})),swapDoc:Nr((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),bo(this,e),di(this),this.display.input.reset(),lr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Ln(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},xe(e),e.registerHelper=function(t,i,r){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][i]=r},e.registerGlobalHelper=function(t,i,r,o){e.registerHelper(t,i,o),n[t]._global.push({pred:r,val:o})}}function Ys(e,t,n,i,r){var o=t,a=n,s=Xe(e,t.line),l=r&&"rtl"==e.direction?-n:n;function c(){var n=t.line+l;return!(n=e.first+e.size)&&(t=new ot(n,t.ch,t.sticky),s=Xe(e,n))}function u(o){var a;if("codepoint"==i){var u=s.text.charCodeAt(t.ch+(i>0?0:-1));a=isNaN(u)?null:new ot(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(u>=55296&&u<56320?2:1))),-n)}else a=r?Ya(e.cm,s,t,n):Wa(s,t,n);if(null==a){if(o||!c())return!1;t=qa(r,e.cm,s,t.line,l)}else t=a;return!0}if("char"==i||"codepoint"==i)u();else if("column"==i)u(!0);else if("word"==i||"group"==i)for(var h=null,d="group"==i,p=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||u(!f);f=!1){var g=s.text.charAt(t.ch)||"\n",m=ne(g,p)?"w":d&&"\n"==g?"n":!d||/\s/.test(g)?null:"p";if(!d||f||m||(m="s"),h&&h!=m){n<0&&(n=1,u(),t.sticky="after");break}if(m&&(h=m),n>0&&!u(!f))break}var v=Wo(e,t,o,a,!0);return st(o,v)&&(v.hitSide=!0),v}function Xs(e,t,n,i){var r,o,a=e.doc,s=t.left;if("page"==i){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*Li(e.display),3);r=(n>0?t.bottom:t.top)+n*c}else"line"==i&&(r=n>0?t.bottom+3:t.top-3);for(;(o=Si(e,s,r)).outside;){if(n<0?r<=0:r>=a.height){o.hitSide=!0;break}r+=5*n}return o}var Qs=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new z,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Js(e,t){var n=ti(e,t.line);if(!n||n.hidden)return null;var i=Xe(e.doc,t.line),r=Qn(n,i,t.line),o=de(i,e.doc.direction),a="left";o&&(a=ue(o,t.ch)%2?"right":"left");var s=ai(r.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function el(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function tl(e,t){return t&&(e.bad=!0),e}function nl(e,t,n,i,r){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function h(e){e&&(u(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void h(n);var o,p=t.getAttribute("cm-marker");if(p){var f=e.findMarks(ot(i,0),ot(r+1,0),c(+p));return void(f.length&&(o=f[0].find(0))&&h(Qe(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&u();for(var m=0;m=t.display.viewTo||o.line=t.display.viewFrom&&Js(t,r)||{node:l[0].measure.map[2],offset:0},u=o.linei.firstLine()&&(a=ot(a.line-1,Xe(i.doc,a.line-1).length)),s.ch==Xe(i.doc,s.line).text.length&&s.liner.viewTo-1)return!1;a.line==r.viewFrom||0==(e=Ri(i,a.line))?(t=tt(r.view[0].line),n=r.view[0].node):(t=tt(r.view[e].line),n=r.view[e-1].node.nextSibling);var l,c,u=Ri(i,s.line);if(u==r.view.length-1?(l=r.viewTo-1,c=r.lineDiv.lastChild):(l=tt(r.view[u+1].line)-1,c=r.view[u+1].node.previousSibling),!n)return!1;for(var h=i.doc.splitLines(nl(i,n,c,t,l)),d=Qe(i.doc,ot(t,0),ot(l,Xe(i.doc,l).text.length));h.length>1&&d.length>1;)if(q(h)==q(d))h.pop(),d.pop(),l--;else{if(h[0]!=d[0])break;h.shift(),d.shift(),t++}for(var p=0,f=0,g=h[0],m=d[0],v=Math.min(g.length,m.length);pa.ch&&y.charCodeAt(y.length-f-1)==b.charCodeAt(b.length-f-1);)p--,f++;h[h.length-1]=y.slice(0,y.length-f).replace(/^\u200b+/,""),h[0]=h[0].slice(p).replace(/\u200b+$/,"");var x=ot(t,p),S=ot(l,d.length?q(d).length-f:0);return h.length>1||h[0]||at(x,S)?(ra(i.doc,h,x,S,"+input"),!0):void 0},Qs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qs.prototype.reset=function(){this.forceCompositionEnd()},Qs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Qs.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Qs.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Tr(this.cm,(function(){return Oi(e.cm)}))},Qs.prototype.setUneditable=function(e){e.contentEditable="false"},Qs.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Dr(this.cm,Zs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Qs.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Qs.prototype.onContextMenu=function(){},Qs.prototype.resetPosition=function(){},Qs.prototype.needsContentAttribute=!0;var ol=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new z,this.hasSelection=!1,this.composing=null};function al(e,t){if((t=t?O(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=D();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function i(){e.value=s.getValue()}var r;if(e.form&&(fe(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var o=e.form;r=o.submit;try{var a=o.submit=function(){i(),o.submit=r,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=i,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,i(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(me(e.form,"submit",i),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=r))}},e.style.display="none";var s=Os((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function sl(e){e.off=me,e.on=fe,e.wheelEventPixels=no,e.Doc=ka,e.splitLines=Ie,e.countColumn=F,e.findColumn=U,e.isWordChar=te,e.Pass=H,e.signal=ve,e.Line=cn,e.changeEnd=lo,e.scrollbarModel=wr,e.Pos=ot,e.cmpPos=at,e.modes=ze,e.mimeModes=je,e.resolveMode=Ze,e.getMode=Ke,e.modeExtensions=Ge,e.extendMode=Ue,e.copyState=Ve,e.startState=qe,e.innerMode=We,e.commands=Xa,e.keyMap=Fa,e.keyName=Ka,e.isModifierKey=Ha,e.lookupKey=$a,e.normalizeKeyMap=ja,e.StringStream=Ye,e.SharedTextMarker=va,e.TextMarker=ga,e.LineWidget=ha,e.e_preventDefault=Se,e.e_stopPropagation=ke,e.e_stop=Ce,e.addClass=N,e.contains=T,e.rmClass=P,e.keyNames=Ia}ol.prototype.init=function(e){var t=this,n=this,i=this.cm;this.createField(e);var r=this.textarea;function o(e){if(!ye(i,e)){if(i.somethingSelected())Hs({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=Us(i);Hs({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,Z):(n.prevInput="",r.value=t.text.join("\n"),B(r))}"cut"==e.type&&(i.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(r.style.width="0px"),fe(r,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),fe(r,"paste",(function(e){ye(i,e)||Ks(e,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())})),fe(r,"cut",o),fe(r,"copy",o),fe(e.scroller,"paste",(function(t){if(!Kn(e,t)&&!ye(i,t)){if(!r.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,r.dispatchEvent(o)}})),fe(e.lineSpace,"selectstart",(function(t){Kn(e,t)||Se(t)})),fe(r,"compositionstart",(function(){var e=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}})),fe(r,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},ol.prototype.createField=function(e){this.wrapper=Ws(),this.textarea=this.wrapper.firstChild},ol.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ol.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,i=Ki(e);if(e.options.moveInputWithCursor){var r=bi(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+a.top-o.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+a.left-o.left))}return i},ol.prototype.showSelection=function(e){var t=this.cm.display;M(t.cursorDiv,e.cursors),M(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ol.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&B(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},ol.prototype.getField=function(){return this.textarea},ol.prototype.supportsTouch=function(){return!1},ol.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||D()!=this.textarea))try{this.textarea.focus()}catch(e){}},ol.prototype.blur=function(){this.textarea.blur()},ol.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ol.prototype.receivedFocus=function(){this.slowPoll()},ol.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},ol.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},ol.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!t.state.focused||Be(n)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=n.value;if(r==i&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===r||y&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(i.length,r.length);l1e3||r.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ol.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ol.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},ol.prototype.onContextMenu=function(e){var t=this,n=t.cm,i=n.display,r=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Bi(n,e),c=i.scroller.scrollTop;if(o&&!h){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Dr(n,Ho)(n.doc,so(o),Z);var u,d=r.style.cssText,p=t.wrapper.style.cssText,f=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",r.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=window.scrollY),i.input.focus(),l&&window.scrollTo(null,u),i.input.reset(),n.somethingSelected()||(r.value=t.prevInput=" "),t.contextMenuPending=v,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),a&&s>=9&&m(),k){Ce(e);var g=function(){me(window,"mouseup",g),setTimeout(v,20)};fe(window,"mouseup",g)}else setTimeout(v,50)}function m(){if(null!=r.selectionStart){var e=n.somethingSelected(),o="​"+(e?r.value:"");r.value="⇚",r.value=o,t.prevInput=e?"":"​",r.selectionStart=1,r.selectionEnd=o.length,i.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,r.style.cssText=d,a&&s<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=c),null!=r.selectionStart)){(!a||a&&s<9)&&m();var e=0,o=function(){i.selForContextMenu==n.doc.sel&&0==r.selectionStart&&r.selectionEnd>0&&"​"==t.prevInput?Dr(n,Yo)(n):e++<10?i.detectingSelectAll=setTimeout(o,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(o,200)}}},ol.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ol.prototype.setUneditable=function(){},ol.prototype.needsContentAttribute=!1,Is(Os),qs(Os);var ll="iter insert remove copy getEditor constructor".split(" ");for(var cl in ka.prototype)ka.prototype.hasOwnProperty(cl)&&j(ll,cl)<0&&(Os.prototype[cl]=function(e){return function(){return e.apply(this.doc,arguments)}}(ka.prototype[cl]));return xe(ka),Os.inputStyles={textarea:ol,contenteditable:Qs},Os.defineMode=function(e){Os.defaults.mode||"null"==e||(Os.defaults.mode=e),$e.apply(this,arguments)},Os.defineMIME=He,Os.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Os.defineMIME("text/plain","null"),Os.defineExtension=function(e,t){Os.prototype[e]=t},Os.defineDocExtension=function(e,t){ka.prototype[e]=t},Os.fromTextArea=al,sl(Os),Os.version="5.58.2",Os}()},25419:function(e,t,n){!function(e){"use strict";e.defineMode("markdown",(function(t,n){var i=e.getMode(t,"text/html"),r="null"==i.name;function o(n){if(e.findModeByName){var i=e.findModeByName(n);i&&(n=i.mime||i.mimes[0])}var r=e.getMode(t,n);return"null"==r.name?null:r}void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.fencedCodeBlockDefaultMode&&(n.fencedCodeBlockDefaultMode="text/plain"),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in a)a.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(a[s]=n.tokenTypeOverrides[s]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,h=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,d=/^ {0,3}(?:\={1,}|-{2,})\s*$/,p=/^[^#!\[\]*_\\<>` "'(~:]+/,f=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,v=" ";function y(e,t,n){return t.f=t.inline=n,n(e,t)}function b(e,t,n){return t.f=t.block=n,n(e,t)}function w(e){return!e||!/\S/.test(e.string)}function x(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==k){var n=r;if(!n){var o=e.innerMode(i,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=E,t.block=S,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function S(t,i){var r=t.column()===i.indentation,s=w(i.prevLine.stream),p=i.indentedCode,m=i.prevLine.hr,v=!1!==i.list,b=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var x=i.indentation;if(null===i.indentationDiff&&(i.indentationDiff=i.indentation,v)){for(i.list=null;x=4&&(p||i.prevLine.fencedCodeEnd||i.prevLine.header||s))return t.skipToEnd(),i.indentedCode=!0,a.code;if(t.eatSpace())return null;if(r&&i.indentation<=b&&(P=t.match(h))&&P[1].length<=6)return i.quote=0,i.header=P[1].length,i.thisLine.header=!0,n.highlightFormatting&&(i.formatting="header"),i.f=i.inline,C(i);if(i.indentation<=b&&t.eat(">"))return i.quote=r?1:i.quote+1,n.highlightFormatting&&(i.formatting="quote"),t.eatSpace(),C(i);if(!k&&!i.setext&&r&&i.indentation<=b&&(P=t.match(c))){var E=P[1]?"ol":"ul";return i.indentation=x+t.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,n.taskLists&&t.match(u,!1)&&(i.taskList=!0),i.f=i.inline,n.highlightFormatting&&(i.formatting=["list","list-"+E]),C(i)}return r&&i.indentation<=b&&(P=t.match(f,!0))?(i.quote=0,i.fencedEndRE=new RegExp(P[1]+"+ *$"),i.localMode=n.fencedCodeBlockHighlighting&&o(P[2]||n.fencedCodeBlockDefaultMode),i.localMode&&(i.localState=e.startState(i.localMode)),i.f=i.block=_,n.highlightFormatting&&(i.formatting="code-block"),i.code=-1,C(i)):i.setext||!(S&&v||i.quote||!1!==i.list||i.code||k||g.test(t.string))&&(P=t.lookAhead(1))&&(P=P.match(d))?(i.setext?(i.header=i.setext,i.setext=0,t.skipToEnd(),n.highlightFormatting&&(i.formatting="header")):(i.header="="==P[0].charAt(0)?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,C(i)):k?(t.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,a.hr):"["===t.peek()?y(t,i,D):y(t,i,i.inline)}function k(t,n){var o=i.token(t,n.htmlState);if(!r){var a=e.innerMode(i,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=E,n.block=S,n.htmlState=null)}return o}function _(e,t){var i,r=t.listStack[t.listStack.length-1]||0,o=t.indentation=e.quote?t.push(a.formatting+"-"+e.formatting[i]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(a.linkHref,"url"):(e.strong&&t.push(a.strong),e.em&&t.push(a.em),e.strikethrough&&t.push(a.strikethrough),e.emoji&&t.push(a.emoji),e.linkText&&t.push(a.linkText),e.code&&t.push(a.code),e.image&&t.push(a.image),e.imageAltText&&t.push(a.imageAltText,"link"),e.imageMarker&&t.push(a.imageMarker)),e.header&&t.push(a.header,a.header+"-"+e.header),e.quote&&(t.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.quote+"-"+e.quote):t.push(a.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var r=(e.listStack.length-1)%3;r?1===r?t.push(a.list2):t.push(a.list3):t.push(a.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function P(e,t){if(e.match(p,!0))return C(t)}function E(t,r){var o=r.text(t,r);if(void 0!==o)return o;if(r.list)return r.list=null,C(r);if(r.taskList)return" "===t.match(u,!0)[1]?r.taskOpen=!0:r.taskClosed=!0,n.highlightFormatting&&(r.formatting="task"),r.taskList=!1,C(r);if(r.taskOpen=!1,r.taskClosed=!1,r.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(r.formatting="header"),C(r);var s=t.next();if(r.linkTitle){r.linkTitle=!1;var l=s;"("===s&&(l=")");var c="^\\s*(?:[^"+(l=(l+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(t.match(new RegExp(c),!0))return a.linkHref}if("`"===s){var h=r.formatting;n.highlightFormatting&&(r.formatting="code"),t.eatWhile("`");var d=t.current().length;if(0!=r.code||r.quote&&1!=d){if(d==r.code){var p=C(r);return r.code=0,p}return r.formatting=h,C(r)}return r.code=d,C(r)}if(r.code)return C(r);if("\\"===s&&(t.next(),n.highlightFormatting)){var f=C(r),g=a.formatting+"-escape";return f?f+" "+g:g}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return r.imageMarker=!0,r.image=!0,n.highlightFormatting&&(r.formatting="image"),C(r);if("["===s&&r.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return r.imageMarker=!1,r.imageAltText=!0,n.highlightFormatting&&(r.formatting="image"),C(r);if("]"===s&&r.imageAltText){n.highlightFormatting&&(r.formatting="image");var f=C(r);return r.imageAltText=!1,r.image=!1,r.inline=r.f=L,f}if("["===s&&!r.image)return r.linkText&&t.match(/^.*?\]/)||(r.linkText=!0,n.highlightFormatting&&(r.formatting="link")),C(r);if("]"===s&&r.linkText){n.highlightFormatting&&(r.formatting="link");var f=C(r);return r.linkText=!1,r.inline=r.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?L:E,f}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return r.f=r.inline=M,n.highlightFormatting&&(r.formatting="link"),(f=C(r))?f+=" ":f="",f+a.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return r.f=r.inline=M,n.highlightFormatting&&(r.formatting="link"),(f=C(r))?f+=" ":f="",f+a.linkEmail;if(n.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var v=t.string.indexOf(">",t.pos);if(-1!=v){var y=t.string.substring(t.start,v);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(y)&&(r.md_inside=!0)}return t.backUp(1),r.htmlState=e.startState(i),b(t,r,k)}if(n.xml&&"<"===s&&t.match(/^\/\w*?>/))return r.md_inside=!1,"tag";if("*"===s||"_"===s){for(var w=1,x=1==t.pos?" ":t.string.charAt(t.pos-2);w<3&&t.eat(s);)w++;var S=t.peek()||" ",_=!/\s/.test(S)&&(!m.test(S)||/\s/.test(x)||m.test(x)),P=!/\s/.test(x)&&(!m.test(x)||/\s/.test(S)||m.test(S)),A=null,T=null;if(w%2&&(r.em||!_||"*"!==s&&P&&!m.test(x)?r.em!=s||!P||"*"!==s&&_&&!m.test(S)||(A=!1):A=!0),w>1&&(r.strong||!_||"*"!==s&&P&&!m.test(x)?r.strong!=s||!P||"*"!==s&&_&&!m.test(S)||(T=!1):T=!0),null!=T||null!=A)return n.highlightFormatting&&(r.formatting=null==A?"strong":null==T?"em":"strong em"),!0===A&&(r.em=s),!0===T&&(r.strong=s),p=C(r),!1===A&&(r.em=!1),!1===T&&(r.strong=!1),p}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return C(r);t.backUp(1)}if(n.strikethrough)if("~"===s&&t.eatWhile(s)){if(r.strikethrough)return n.highlightFormatting&&(r.formatting="strikethrough"),p=C(r),r.strikethrough=!1,p;if(t.match(/^[^\s]/,!1))return r.strikethrough=!0,n.highlightFormatting&&(r.formatting="strikethrough"),C(r)}else if(" "===s&&t.match(/^~~/,!0)){if(" "===t.peek())return C(r);t.backUp(2)}if(n.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){r.emoji=!0,n.highlightFormatting&&(r.formatting="emoji");var D=C(r);return r.emoji=!1,D}return" "===s&&(t.match(/^ +$/,!1)?r.trailingSpace++:r.trailingSpace&&(r.trailingSpaceNewLine=!0)),C(r)}function M(e,t){if(">"===e.next()){t.f=t.inline=E,n.highlightFormatting&&(t.formatting="link");var i=C(t);return i?i+=" ":i="",i+a.linkInline}return e.match(/^[^>]+/,!0),a.linkInline}function L(e,t){if(e.eatSpace())return null;var i=e.next();return"("===i||"["===i?(t.f=t.inline=T("("===i?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,C(t)):"error"}var A={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function T(e){return function(t,i){if(t.next()===e){i.f=i.inline=E,n.highlightFormatting&&(i.formatting="link-string");var r=C(i);return i.linkHref=!1,r}return t.match(A[e]),i.linkHref=!0,C(i)}}function D(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=N,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,C(t)):y(e,t,E)}function N(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=I,n.highlightFormatting&&(t.formatting="link");var i=C(t);return t.linkText=!1,i}return e.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function I(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=E,a.linkHref+" url")}var B={startState:function(){return{f:S,prevLine:{stream:null},thisLine:{stream:null},block:S,htmlState:null,indentation:0,inline:E,text:P,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(i,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return x(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=k)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,v).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==k?{state:e.htmlState,mode:i}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:B}},indent:function(t,n,r){return t.block==k&&i.indent?i.indent(t.htmlState,n,r):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},blankLine:x,getType:C,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return B}),"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}(n(89780),n(15525),n(98101))},98101:function(e,t,n){!function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t-1&&t.substring(r+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n0?e.cmdState[e.cmdState.length-1]:null}function r(e){var t=e.cmdState.pop();t&&t.closeBracket()}function o(e){for(var t=e.cmdState,n=t.length-1;n>=0;n--){var i=t[n];if("DEFAULT"!=i.name)return i}return{styleIdentifier:function(){return null}}}function a(e,t,n){return function(){this.name=e,this.bracketNo=0,this.style=t,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var s={};function l(e,t){e.f=t}function c(e,t){var r;if(e.match(/^\\[a-zA-Z@]+/)){var a=e.current().slice(1);return n(t,r=new(r=s.hasOwnProperty(a)?s[a]:s.DEFAULT)),l(t,h),r.style}if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/\\]/))return"tag";if(e.match("\\["))return l(t,(function(e,t){return u(e,t,"\\]")})),"keyword";if(e.match("\\("))return l(t,(function(e,t){return u(e,t,"\\)")})),"keyword";if(e.match("$$"))return l(t,(function(e,t){return u(e,t,"$$")})),"keyword";if(e.match("$"))return l(t,(function(e,t){return u(e,t,"$")})),"keyword";var c=e.next();return"%"==c?(e.skipToEnd(),"comment"):"}"==c||"]"==c?(r=i(t))?(r.closeBracket(c),l(t,h),"bracket"):"error":"{"==c||"["==c?(n(t,r=new(r=s.DEFAULT)),"bracket"):/\d/.test(c)?(e.eatWhile(/[\w.%]/),"atom"):(e.eatWhile(/[\w\-_]/),"begin"==(r=o(t)).name&&(r.argument=e.current()),r.styleIdentifier())}function u(e,t,n){if(e.eatSpace())return null;if(n&&e.match(n))return l(t,c),"keyword";if(e.match(/^\\[a-zA-Z@]+/))return"tag";if(e.match(/^[a-zA-Z]+/))return"variable-2";if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/]/))return"tag";if(e.match(/^[\^_&]/))return"tag";if(e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var i=e.next();return"{"==i||"}"==i||"["==i||"]"==i||"("==i||")"==i?"bracket":"%"==i?(e.skipToEnd(),"comment"):"error"}function h(e,t){var n=e.peek();return"{"==n||"["==n?(i(t).openBracket(n),e.eat(n),l(t,c),"bracket"):/[ \t\r]/.test(n)?(e.eat(n),null):(l(t,c),r(t),c(e,t))}return s.importmodule=a("importmodule","tag",["string","builtin"]),s.documentclass=a("documentclass","tag",["","atom"]),s.usepackage=a("usepackage","tag",["atom"]),s.begin=a("begin","tag",["atom"]),s.end=a("end","tag",["atom"]),s.label=a("label","tag",["atom"]),s.ref=a("ref","tag",["atom"]),s.eqref=a("eqref","tag",["atom"]),s.cite=a("cite","tag",["atom"]),s.bibitem=a("bibitem","tag",["atom"]),s.Bibitem=a("Bibitem","tag",["atom"]),s.RBibitem=a("RBibitem","tag",["atom"]),s.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{startState:function(){return{cmdState:[],f:t.inMathMode?function(e,t){return u(e,t)}:c}},copyState:function(e){return{cmdState:e.cmdState.slice(),f:e.f}},token:function(e,t){return t.f(e,t)},blankLine:function(e){e.f=c,e.cmdState.length=0},lineComment:"%"}})),e.defineMIME("text/x-stex","stex"),e.defineMIME("text/x-latex","stex")}(n(89780))},15525:function(e,t,n){!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(i,r){var o,a,s=i.indentUnit,l={},c=r.htmlMode?t:n;for(var u in c)l[u]=c[u];for(var u in r)l[u]=r[u];function h(e,t){function n(n){return t.tokenize=n,n(e,t)}var i=e.next();return"<"==i?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(f("atom","]]>")):null:e.match("--")?n(f("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(g(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=f("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=d,"tag bracket"):"&"==i?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function d(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=h,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=h,t.state=b,t.tagName=t.tagStart=null;var i=t.tokenize(e,t);return i?i+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=p(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=d;break}return"string"};return t.isInAttribute=!0,t}function f(e,t){return function(n,i){for(;!n.eol();){if(n.match(t)){i.tokenize=h;break}n.next()}return e}}function g(e){return function(t,n){for(var i;null!=(i=t.next());){if("<"==i)return n.tokenize=g(e+1),n.tokenize(t,n);if(">"==i){if(1==e){n.tokenize=h;break}return n.tokenize=g(e-1),n.tokenize(t,n)}}return"meta"}}function m(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function v(e){e.context&&(e.context=e.context.prev)}function y(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(t))return;v(e)}}function b(e,t,n){return"openTag"==e?(n.tagStart=t.column(),w):"closeTag"==e?x:b}function w(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",_):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",_(e,t,n)):(a="error",w)}function x(e,t,n){if("word"==e){var i=t.current();return n.context&&n.context.tagName!=i&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&v(n),n.context&&n.context.tagName==i||!1===l.matchClosing?(a="tag",S):(a="tag error",k)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",S(e,t,n)):(a="error",k)}function S(e,t,n){return"endTag"!=e?(a="error",S):(v(n),b)}function k(e,t,n){return a="error",S(e,t,n)}function _(e,t,n){if("word"==e)return a="attribute",C;if("endTag"==e||"selfcloseTag"==e){var i=n.tagName,r=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(i)?y(n,i):(y(n,i),n.context=new m(n,i,r==n.indented)),b}return a="error",_}function C(e,t,n){return"equals"==e?P:(l.allowMissing||(a="error"),_(e,t,n))}function P(e,t,n){return"string"==e?E:"word"==e&&l.allowUnquoted?(a="string",_):(a="error",_(e,t,n))}function E(e,t,n){return"string"==e?E:_(e,t,n)}return h.isInText=!0,{startState:function(e){var t={tokenize:h,state:b,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,i){var r=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(r&&r.noIndent)return e.Pass;if(t.tokenize!=d&&t.tokenize!=h)return i?i.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==P&&(e.state=_)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)n.tagName&&t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(89780))},25769:function(e,t,n){"use strict";var i=n(98040),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=i(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(i){if(i.stopPropagation(),t.format)if(i.preventDefault(),void 0===i.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=r[t.format]||r.default;window.clipboardData.setData(o,e)}else i.clipboardData.clearData(),i.clipboardData.setData(t.format,e);t.onCopy&&(i.preventDefault(),t.onCopy(i.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(i){n&&console.error("unable to copy using execCommand: ",i),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(i){n&&console.error("unable to copy using clipboardData: ",i),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},12378:function(e,t,n){"use strict";n.d(t,{$u:function(){return a},E9:function(){return o},FJ:function(){return c},KX:function(){return u},NB:function(){return y},S0:function(){return h},Vm:function(){return w},YI:function(){return d},ZA:function(){return r},Zt:function(){return s},al:function(){return m},bn:function(){return g},bx:function(){return p},rU:function(){return b},s_:function(){return f},uz:function(){return v},z6:function(){return l}}),e=n.hmd(e),function(){var t;function i(e){var t=0;return function(){return tt&&(t=Math.max(0,i+t)),(null==n||n>i)&&(n=i),0>(n=Number(n))&&(n=Math.max(0,i+n)),t=Number(t||0);t=e.length?e.push(n):e.splice(t,0,n):x("Cannot insert an object into an HTMLCollection or NodeList: "+n+" at "+t)}function L(e,t){Array.isArray(e)?t>=e.length?e.pop():e.splice(t,1):x("Cannot remove an object from an HTMLCollection or NodeList at "+t)}function A(){var e=z.pop();return void 0===e?[]:e}function T(e){e.length=0,z.push(e)}function D(e){if("function"==typeof e){if(e.className)return e.className;if(e.name)return e.name;var t=e.toString();if(""!==(t=t.substring(9,t.indexOf("(")).trim()))return e._className=t}else if(C(e)&&e.constructor)return D(e.constructor);return typeof e}function N(e){var t=e;return C(e)&&(e.text?t=e.text:e.name?t=e.name:void 0!==e.key?t=e.key:void 0!==e.id?t=e.id:e.constructor===Object&&(e.Text?t=e.Text:e.Name?t=e.Name:void 0!==e.Key?t=e.Key:void 0!==e.Id?t=e.Id:void 0!==e.ID&&(t=e.ID))),void 0===t?"undefined":null===t?"null":t.toString()}function I(e,t){if(e.hasOwnProperty(t))return!0;for(e=Object.getPrototypeOf(e);e&&e!==Function;){if(e.hasOwnProperty(t))return!0;var n=e.CA;if(n&&n[t])return!0;e=Object.getPrototypeOf(e)}return!1}function B(e,t,n){Object.defineProperty(wn.prototype,e,{get:t,set:n})}function R(e){for(var t=[],n=0;256>n;n++)t["0123456789abcdef".charAt(n>>4)+"0123456789abcdef".charAt(15&n)]=String.fromCharCode(n);e.length%2&&(e="0"+e),n=[];for(var i=0,r=0;rn;n++)t[n]=n;for(n=i=0;256>n;n++)i=(i+t[n]+119)%256,r=t[n],t[n]=t[i],t[i]=r;i=n=0;for(var o="",a=0;a-1||o.indexOf("© 1998-2021 Northwoods Software")>-1||o.indexOf("Not for distribution or production use")>-1||o.indexOf("gojs.net")>-1?"":o}void 0===m.requestAnimationFrame&&(void 0===m.setImmediate?m.requestAnimationFrame=function(e){m.setTimeout(e,0)}:m.requestAnimationFrame=m.setImmediate);var O=void 0!==m.navigator&&0this.key)return!1;var t=(e=e.s).length,n=++this.Za,i=this.qf;if(null!==i)for(;nthis.key)return!1;var t=--this.Za;return 0<=t?(this.key=t,this.value=e.s[t],!0):(this.de(),!1)},q.prototype.Ad=function(){return this.next()},q.prototype.first=function(){var e=this.Bb;this.qa=e.Ja;var t=e.s;return this.Za=e=t.length-1,0<=e?(t=t[e],this.key=e,this.value=t):null},q.prototype.any=function(e){var t=this.Bb;t.Hg=null;var n=(t=t.s).length;for(this.Za=n,--n;0<=n;n--)if(e(t[n]))return!0;return!1},q.prototype.all=function(e){var t=this.Bb;t.Hg=null;var n=(t=t.s).length;for(this.Za=n,--n;0<=n;n--)if(!e(t[n]))return!1;return!0},q.prototype.each=function(e){var t=this.Bb;t.Hg=null;var n=(t=t.s).length;for(this.Za=n,--n;0<=n;n--)e(t[n]);return this},q.prototype.map=function(e){var t=this.Bb;t.Hg=null;var n=[],i=(t=t.s).length;for(this.Za=i,--i;0<=i;i--)n.push(e(t[i]));return(e=new Y).s=n,e.xb(),e.iterator},q.prototype.filter=function(e){var t=this.Bb;t.Hg=null;var n=[],i=(t=t.s).length;for(this.Za=i,--i;0<=i;i--){var r=t[i];e(r)&&n.push(r)}return(e=new Y).s=n,e.xb(),e.iterator},q.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},q.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},d.Object.defineProperties(q.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),q.prototype.first=q.prototype.first,q.prototype.hasNext=q.prototype.Ad,q.prototype.next=q.prototype.next,q.prototype.reset=q.prototype.reset,q.className="ListIteratorBackwards",(t=Y.prototype).xb=function(){var e=this.Ja;999999999<++e&&(e=0),this.Ja=e},t.freeze=function(){return this._isFrozen=!0,this},t.ka=function(){return this._isFrozen=!1,this},t.toString=function(){return"List()#"+te(this)},t.add=function(e){return null===e||(this._isFrozen&&S(this,e),this.s.push(e),this.xb()),this},t.push=function(e){this.add(e)},t.addAll=function(e){if(null===e)return this;this._isFrozen&&S(this);var t=this.s;if(P(e))for(var n=e.length,i=0;ie||e>=t.length)&&k(e,"0 <= i < length",Y,"elt:i"),t[e]},t.get=function(e){return this.M(e)},t.cd=function(e,t){var n=this.s;(0>e||e>=n.length)&&k(e,"0 <= i < length",Y,"setElt:i"),this._isFrozen&&S(this,e),n[e]=t},t.set=function(e,t){this.cd(e,t)},t.first=function(){var e=this.s;return 0===e.length?null:e[0]},t.jc=function(){var e=this.s,t=e.length;return 0e&&k(e,">= 0",Y,"insertAt:i"),this._isFrozen&&S(this,e);var n=this.s;e>=n.length?n.push(t):n.splice(e,0,t),this.xb()},t.remove=function(e){if(null===e)return!1;this._isFrozen&&S(this,e);var t=this.s;return-1!==(e=t.indexOf(e))&&(e===t.length-1?t.pop():t.splice(e,1),this.xb(),!0)},t.delete=function(e){return this.remove(e)},t.mb=function(e){var t=this.s;(0>e||e>=t.length)&&k(e,"0 <= i < length",Y,"removeAt:i"),this._isFrozen&&S(this,e),e===t.length-1?t.pop():t.splice(e,1),this.xb()},t.removeRange=function(e,t){var n=this.s,i=n.length;if(0>e)e=0;else if(e>=i)return this;if(0>t)return this;if(t>=i&&(t=i-1),e>t)return this;this._isFrozen&&S(this);for(var r=e,o=t+1;o=o)return this;if((0>t||t>=r-1)&&k(t,"0 <= from < length",Y,"sortRange:from"),2===o)return 0=r)i.sort(e);else for((t=i.slice(0,n)).sort(e),e=0;e=r)for((n=i.slice(t)).sort(e),e=t;e=this.s.length)return U;var e=this.Sa;return null!==e?(e.reset(),e):new W(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return U;var e=this.Hg;return null!==e?(e.reset(),e):new q(this)}}}),Y.prototype.reverse=Y.prototype.reverse,Y.prototype.sortRange=Y.prototype.zi,Y.prototype.sort=Y.prototype.sort,Y.prototype.toSet=Y.prototype.Iv,Y.prototype.toArray=Y.prototype.Fa,Y.prototype.removeRange=Y.prototype.removeRange,Y.prototype.removeAt=Y.prototype.mb,Y.prototype.delete=Y.prototype.delete,Y.prototype.remove=Y.prototype.remove,Y.prototype.insertAt=Y.prototype.Gb,Y.prototype.pop=Y.prototype.pop,Y.prototype.last=Y.prototype.jc,Y.prototype.first=Y.prototype.first,Y.prototype.set=Y.prototype.set,Y.prototype.setElt=Y.prototype.cd,Y.prototype.get=Y.prototype.get,Y.prototype.elt=Y.prototype.M,Y.prototype.indexOf=Y.prototype.indexOf,Y.prototype.has=Y.prototype.has,Y.prototype.contains=Y.prototype.contains,Y.prototype.clear=Y.prototype.clear,Y.prototype.addAll=Y.prototype.addAll,Y.prototype.push=Y.prototype.push,Y.prototype.add=Y.prototype.add,Y.prototype.thaw=Y.prototype.ka,Y.prototype.freeze=Y.prototype.freeze,Y.className="List",X.prototype.reset=function(){var e=this.eg;e.Sa=null,this.qa=e.Ja,this.sa=null},X.prototype.next=function(){var e=this.eg;if(e.Ja!==this.qa&&null===this.key)return!1;var t=this.sa;return null!==(t=null===t?e.ea:t.va)?(this.sa=t,this.value=t.value,this.key=t.key,!0):(this.de(),!1)},X.prototype.Ad=function(){return this.next()},X.prototype.first=function(){var e=this.eg;if(this.qa=e.Ja,null!==(e=e.ea)){this.sa=e;var t=e.value;return this.key=e.key,this.value=t}return null},X.prototype.any=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;null!==t;){if(e(t.value))return!0;t=t.va}return!1},X.prototype.all=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;null!==t;){if(!e(t.value))return!1;t=t.va}return!0},X.prototype.each=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;null!==t;)e(t.value),t=t.va;return this},X.prototype.map=function(e){var t=this.eg;t.Sa=null;var n=new Y;for(t=t.ea;null!==t;)n.add(e(t.value)),t=t.va;return n.iterator},X.prototype.filter=function(e){var t=this.eg;t.Sa=null;var n=new Y;for(t=t.ea;null!==t;){var i=t.value;e(i)&&n.add(i),t=t.va}return n.iterator},X.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},X.prototype.toString=function(){return null!==this.sa?"SetIterator@"+this.sa.value:"SetIterator"},d.Object.defineProperties(X.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),X.prototype.first=X.prototype.first,X.prototype.hasNext=X.prototype.Ad,X.prototype.next=X.prototype.next,X.prototype.reset=X.prototype.reset,X.className="SetIterator",(t=Q.prototype).xb=function(){var e=this.Ja;999999999<++e&&(e=0),this.Ja=e},t.freeze=function(){return this._isFrozen=!0,this},t.ka=function(){return this._isFrozen=!1,this},t.toString=function(){return"Set()#"+te(this)},t.add=function(e){if(null===e)return this;this._isFrozen&&S(this,e);var t=e;return C(e)&&(t=ee(e)),void 0===this.Tb[t]&&(this.Sb++,e=new he(e,e),this.Tb[t]=e,null===(t=this.kf)?this.ea=e:(e.ll=t,t.va=e),this.kf=e,this.xb()),this},t.addAll=function(e){if(null===e)return this;if(this._isFrozen&&S(this),P(e))for(var t=e.length,n=0;n=this.Sb)return U;var e=this.Sa;return null!==e?(e.reset(),e):new X(this)}}}),Q.prototype.toList=Q.prototype.Hv,Q.prototype.toArray=Q.prototype.Fa,Q.prototype.clear=Q.prototype.clear,Q.prototype.retainAll=Q.prototype.pA,Q.prototype.removeAll=Q.prototype.hp,Q.prototype.delete=Q.prototype.delete,Q.prototype.remove=Q.prototype.remove,Q.prototype.first=Q.prototype.first,Q.prototype.containsAny=Q.prototype.Ty,Q.prototype.containsAll=Q.prototype.Sy,Q.prototype.has=Q.prototype.has,Q.prototype.contains=Q.prototype.contains,Q.prototype.addAll=Q.prototype.addAll,Q.prototype.add=Q.prototype.add,Q.prototype.thaw=Q.prototype.ka,Q.prototype.freeze=Q.prototype.freeze;var ne,ie,re,oe,ae,se=1;function le(e){this.ma=e,this.qa=e.Ja,this.sa=null}function ce(e){Q.call(this),J(this),this._isFrozen=!0,this.ma=e}function ue(e){this.ma=e,e.jf=null,this.qa=e.Ja,this.sa=null}function he(e,t){this.key=e,this.value=t,this.ll=this.va=null}function de(e){this.ma=e,e.Sa=null,this.qa=e.Ja,this.sa=null}function pe(e){J(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,"string"==typeof e&&x("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),void 0!==e&&this.addAll(e)}function fe(e,t){void 0===e?this.y=this.x=0:"number"==typeof e&&"number"==typeof t?(this.x=e,this.y=t):x("Invalid arguments to Point constructor: "+e+", "+t),this._isFrozen=!1}function ge(e){if("string"==typeof e){e=e.split(" ");for(var t=0,n=0;""===e[t];)t++;var i=e[t++];i&&(n=parseFloat(i));for(var r=0;""===e[t];)t++;return(i=e[t++])&&(r=parseFloat(i)),new fe(n,r)}return new fe}function me(e){return e.x.toString()+" "+e.y.toString()}function ve(e,t){if(0===e)return 0t?270:0;if(0===t)return 0e?n=0>t?n+180:180-n:0>t&&(n=360-n),n}function ye(e,t){return t.Cd(e),e}function be(e,t,n,i,r,o){var a=r-n,s=o-i,l=a*a+s*s,c=-(n-=e)*a-(i-=t)*s;return 0>=c||c>=l?(a=r-e,s=o-t,Math.min(n*n+i*i,a*a+s*s)):(e=a*i-s*n)*e/l}function we(e,t,n,i){return(e=n-e)*e+(t=i-t)*t}function xe(e,t,n,i){return t=i-t,0===(e=n-e)?0t?270:0:0===t?0e?i=0>t?i+180:180-i:0>t&&(i=360-i),i)}Q.className="Set",Q.uniqueHash=J,Q.hashIdUnique=ee,Q.hashId=te,le.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},le.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&null===this.key)return!1;var t=this.sa;return null!==(t=null===t?e.ea:t.va)?(this.sa=t,this.value=this.key=e=t.key,!0):(this.de(),!1)},le.prototype.Ad=function(){return this.next()},le.prototype.first=function(){var e=this.ma;return this.qa=e.Ja,null!==(e=e.ea)?(this.sa=e,this.value=this.key=e=e.key):null},le.prototype.any=function(e){var t=this.ma;for(this.sa=null,t=t.ea;null!==t;){if(e(t.key))return!0;t=t.va}return!1},le.prototype.all=function(e){var t=this.ma;for(this.sa=null,t=t.ea;null!==t;){if(!e(t.key))return!1;t=t.va}return!0},le.prototype.each=function(e){var t=this.ma;for(this.sa=null,t=t.ea;null!==t;)e(t.key),t=t.va;return this},le.prototype.map=function(e){var t=this.ma;this.sa=null;var n=new Y;for(t=t.ea;null!==t;)n.add(e(t.key)),t=t.va;return n.iterator},le.prototype.filter=function(e){var t=this.ma;this.sa=null;var n=new Y;for(t=t.ea;null!==t;){var i=t.key;e(i)&&n.add(i),t=t.va}return n.iterator},le.prototype.de=function(){this.value=this.key=null,this.qa=-1},le.prototype.toString=function(){return null!==this.sa?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},d.Object.defineProperties(le.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),le.prototype.first=le.prototype.first,le.prototype.hasNext=le.prototype.Ad,le.prototype.next=le.prototype.next,le.prototype.reset=le.prototype.reset,le.className="MapKeySetIterator",h(ce,Q),(t=ce.prototype).freeze=function(){return this},t.ka=function(){return this},t.toString=function(){return"MapKeySet("+this.ma.toString()+")"},t.add=function(){x("This Set is read-only: "+this.toString())},t.contains=function(e){return this.ma.contains(e)},t.has=function(e){return this.contains(e)},t.remove=function(){x("This Set is read-only: "+this.toString())},t.delete=function(e){return this.remove(e)},t.clear=function(){x("This Set is read-only: "+this.toString())},t.first=function(){var e=this.ma.ea;return null!==e?e.key:null},ce.prototype.any=function(e){for(var t=this.ma.ea;null!==t;){if(e(t.key))return!0;t=t.va}return!1},ce.prototype.all=function(e){for(var t=this.ma.ea;null!==t;){if(!e(t.key))return!1;t=t.va}return!0},ce.prototype.each=function(e){for(var t=this.ma.ea;null!==t;)e(t.key),t=t.va;return this},ce.prototype.map=function(e){for(var t=new Q,n=this.ma.ea;null!==n;)t.add(e(n.key)),n=n.va;return t},ce.prototype.filter=function(e){for(var t=new Q,n=this.ma.ea;null!==n;){var i=n.key;e(i)&&t.add(i),n=n.va}return t},ce.prototype.copy=function(){return new ce(this.ma)},ce.prototype.Iv=function(){var e,t=new Q,n=this.ma.Tb;for(e in n)t.add(n[e].key);return t},ce.prototype.Fa=function(){var e,t=this.ma.Tb,n=Array(this.ma.Sb),i=0;for(e in t)n[i]=t[e].key,i++;return n},ce.prototype.Hv=function(){var e,t=new Y,n=this.ma.Tb;for(e in n)t.add(n[e].key);return t},d.Object.defineProperties(ce.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?U:new le(this.ma)}}}),ce.prototype.toList=ce.prototype.Hv,ce.prototype.toArray=ce.prototype.Fa,ce.prototype.toSet=ce.prototype.Iv,ce.prototype.first=ce.prototype.first,ce.prototype.clear=ce.prototype.clear,ce.prototype.delete=ce.prototype.delete,ce.prototype.remove=ce.prototype.remove,ce.prototype.has=ce.prototype.has,ce.prototype.contains=ce.prototype.contains,ce.prototype.add=ce.prototype.add,ce.prototype.thaw=ce.prototype.ka,ce.prototype.freeze=ce.prototype.freeze,ce.className="MapKeySet",ue.prototype.reset=function(){var e=this.ma;e.jf=null,this.qa=e.Ja,this.sa=null},ue.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&null===this.key)return!1;var t=this.sa;return null!==(t=null===t?e.ea:t.va)?(this.sa=t,this.value=t.value,this.key=t.key,!0):(this.de(),!1)},ue.prototype.Ad=function(){return this.next()},ue.prototype.first=function(){var e=this.ma;if(this.qa=e.Ja,null!==(e=e.ea)){this.sa=e;var t=e.value;return this.key=e.key,this.value=t}return null},ue.prototype.any=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;null!==t;){if(e(t.value))return!0;t=t.va}return!1},ue.prototype.all=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;null!==t;){if(!e(t.value))return!1;t=t.va}return!0},ue.prototype.each=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;null!==t;)e(t.value),t=t.va;return this},ue.prototype.map=function(e){var t=this.ma;this.sa=t.jf=null;var n=new Y;for(t=t.ea;null!==t;)n.add(e(t.value)),t=t.va;return n.iterator},ue.prototype.filter=function(e){var t=this.ma;this.sa=t.jf=null;var n=new Y;for(t=t.ea;null!==t;){var i=t.value;e(i)&&n.add(i),t=t.va}return n.iterator},ue.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},ue.prototype.toString=function(){return null!==this.sa?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},d.Object.defineProperties(ue.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ue.prototype.first=ue.prototype.first,ue.prototype.hasNext=ue.prototype.Ad,ue.prototype.next=ue.prototype.next,ue.prototype.reset=ue.prototype.reset,ue.className="MapValueSetIterator",he.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},he.className="KeyValuePair",de.prototype.reset=function(){var e=this.ma;e.Sa=null,this.qa=e.Ja,this.sa=null},de.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&null===this.key)return!1;var t=this.sa;return null!==(t=null===t?e.ea:t.va)?(this.sa=t,this.key=t.key,this.value=t.value,!0):(this.de(),!1)},de.prototype.Ad=function(){return this.next()},de.prototype.first=function(){var e=this.ma;return this.qa=e.Ja,null!==(e=e.ea)?(this.sa=e,this.key=e.key,this.value=e.value,e):null},de.prototype.any=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;null!==t;){if(e(t))return!0;t=t.va}return!1},de.prototype.all=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;null!==t;){if(!e(t))return!1;t=t.va}return!0},de.prototype.each=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;null!==t;)e(t),t=t.va;return this},de.prototype.map=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new Y;for(t=t.ea;null!==t;)n.add(e(t)),t=t.va;return n.iterator},de.prototype.filter=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new Y;for(t=t.ea;null!==t;)e(t)&&n.add(t),t=t.va;return n.iterator},de.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},de.prototype.toString=function(){return null!==this.sa?"MapIterator@"+this.sa:"MapIterator"},d.Object.defineProperties(de.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),de.prototype.first=de.prototype.first,de.prototype.hasNext=de.prototype.Ad,de.prototype.next=de.prototype.next,de.prototype.reset=de.prototype.reset,de.className="MapIterator",(t=pe.prototype).xb=function(){var e=this.Ja;999999999<++e&&(e=0),this.Ja=e},t.freeze=function(){return this._isFrozen=!0,this},t.ka=function(){return this._isFrozen=!1,this},t.toString=function(){return"Map()#"+te(this)},t.add=function(e,t){this._isFrozen&&S(this,e);var n=e;C(e)&&(n=ee(e));var i=this.Tb[n];return void 0===i?(this.Sb++,e=new he(e,t),this.Tb[n]=e,null===(n=this.kf)?this.ea=e:(e.ll=n,n.va=e),this.kf=e,this.xb()):i.value=t,this},t.set=function(e,t){return this.add(e,t)},t.addAll=function(e){if(null===e)return this;if(P(e))for(var t=e.length,n=0;n=this.count)return U;var e=this.Sa;return null!==e?(e.reset(),e):new de(this)}},iteratorKeys:{get:function(){return 0>=this.count?U:new le(this)}},iteratorValues:{get:function(){if(0>=this.count)return U;var e=this.jf;return null!==e?(e.reset(),e):new ue(this)}}}),pe.prototype.toKeySet=pe.prototype.Lf,pe.prototype.toArray=pe.prototype.Fa,pe.prototype.clear=pe.prototype.clear,pe.prototype.delete=pe.prototype.delete,pe.prototype.remove=pe.prototype.remove,pe.prototype.get=pe.prototype.get,pe.prototype.getValue=pe.prototype.I,pe.prototype.has=pe.prototype.has,pe.prototype.contains=pe.prototype.contains,pe.prototype.first=pe.prototype.first,pe.prototype.addAll=pe.prototype.addAll,pe.prototype.set=pe.prototype.set,pe.prototype.add=pe.prototype.add,pe.prototype.thaw=pe.prototype.ka,pe.prototype.freeze=pe.prototype.freeze,pe.className="Map",fe.prototype.assign=function(e){return this.x=e.x,this.y=e.y,this},fe.prototype.h=function(e,t){return this.x=e,this.y=t,this},fe.prototype.sg=function(e,t){return this.x=e,this.y=t,this},fe.prototype.set=function(e){return this.x=e.x,this.y=e.y,this},fe.prototype.copy=function(){var e=new fe;return e.x=this.x,e.y=this.y,e},(t=fe.prototype).ja=function(){return this._isFrozen=!0,Object.freeze(this),this},t.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},t.freeze=function(){return this._isFrozen=!0,this},t.ka=function(){return Object.isFrozen(this)&&x("cannot thaw constant: "+this),this._isFrozen=!1,this},t.toString=function(){return"Point("+this.x+","+this.y+")"},t.D=function(e){return e instanceof fe&&(this.x===e.x&&this.y===e.y)},t.hi=function(e,t){return this.x===e&&this.y===t},t.Xa=function(e){return Zt.B(this.x,e.x)&&Zt.B(this.y,e.y)},t.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.re=function(e){return this.x-=e.x,this.y-=e.y,this},t.offset=function(e,t){return this.x+=e,this.y+=t,this},fe.prototype.rotate=function(e){if(0===e)return this;var t=this.x,n=this.y;if(0===t&&0===n)return this;if(360<=e?e-=360:0>e&&(e+=360),90===e){e=0;var i=1}else 180===e?(e=-1,i=0):270===e?(e=0,i=-1):(i=e*Math.PI/180,e=Math.cos(i),i=Math.sin(i));return this.x=e*t-i*n,this.y=i*t+e*n,this},(t=fe.prototype).scale=function(e,t){return this.x*=e,this.y*=t,this},t.Bf=function(e){var t=e.x-this.x;return t*t+(e=e.y-this.y)*e},t.zd=function(e,t){return(e-=this.x)*e+(t-=this.y)*t},t.normalize=function(){var e=this.x,t=this.y,n=Math.sqrt(e*e+t*t);return 0t.width+10+10+r||r>n+i)&&(n=e.height,e=e.y,i=t.y-10,!(e>t.height+10+10+i||i>n+e))}function He(e,t,n,i,r){var o=Math.min(e.x,t),a=Math.min(e.y,n);return t=Math.max(e.x+e.width,t+i),n=Math.max(e.y+e.height,n+r),e.x=o,e.y=a,e.width=t-o,e.height=n-a,e}function Ze(e,t,n,i,r,o,a,s){return void 0===a&&(a=0),void 0===s&&(s=0),e<=r&&r+a<=e+n&&t<=o&&o+s<=t+i}function Ke(e,t,n,i,r,o,a,s){return!(e>a+r||r>n+e)&&!(t>s+o||o>i+t)}Ae.className="Size",Ae.parse=Te,Ae.stringify=De,Ae.ZeroSize=Se=new Ae(0,0).ja(),Ae.OneSize=ke=new Ae(1,1).ja(),Ae.SixSize=_e=new Ae(6,6).ja(),Ae.EightSize=Ce=new Ae(8,8).ja(),Ae.TenSize=Pe=new Ae(10,10).ja(),Ae.InfiniteSize=Ee=new Ae(1/0,1/0).ja(),Ae.NoSize=Me=new Ae(NaN,NaN).ja(),Ae.parse=Te,Ae.stringify=De,(t=Ie.prototype).assign=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},t.h=function(e,t,n,i){return this.x=e,this.y=t,this.width=n,this.height=i,this},t.sg=function(e,t,n,i){return this.x=e,this.y=t,this.width=n,this.height=i,this},t.set=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},t.dd=function(e){return this.x=e.x,this.y=e.y,this},t.tA=function(e){return this.width=e.width,this.height=e.height,this},Ie.prototype.copy=function(){var e=new Ie;return e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e},(t=Ie.prototype).ja=function(){return this._isFrozen=!0,Object.freeze(this),this},t.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},t.freeze=function(){return this._isFrozen=!0,this},t.ka=function(){return Object.isFrozen(this)&&x("cannot thaw constant: "+this),this._isFrozen=!1,this},t.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},t.D=function(e){return e instanceof Ie&&(this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height)},t.hi=function(e,t,n,i){return this.x===e&&this.y===t&&this.width===n&&this.height===i},t.Xa=function(e){return Zt.B(this.x,e.x)&&Zt.B(this.y,e.y)&&Zt.B(this.width,e.width)&&Zt.B(this.height,e.height)},t.ca=function(e){return this.x<=e.x&&this.x+this.width>=e.x&&this.y<=e.y&&this.y+this.height>=e.y},t.Re=function(e){return this.x<=e.x&&e.x+e.width<=this.x+this.width&&this.y<=e.y&&e.y+e.height<=this.y+this.height},t.contains=function(e,t,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),this.x<=e&&e+n<=this.x+this.width&&this.y<=t&&t+i<=this.y+this.height},t.offset=function(e,t){return this.x+=e,this.y+=t,this},t.Bc=function(e,t){return ze(this,t,e,t,e)},t.Co=function(e){return ze(this,e.top,e.right,e.bottom,e.left)},t.Fv=function(e){return ze(this,-e.top,-e.right,-e.bottom,-e.left)},t.Hz=function(e,t,n,i){return ze(this,e,t,n,i)},t.Ex=function(e){return je(this,e.x,e.y,e.width,e.height)},t.Uu=function(e,t,n,i){return je(this,e,t,n,i)},t.Yc=function(e){return this.Vu(e.x,e.y,e.width,e.height)},t.Vu=function(e,t,n,i){var r=this.width,o=this.x;return!(1/0!==r&&1/0!==n&&(r+=o,n+=e,isNaN(n)||isNaN(r)||o>n||e>r))&&(e=this.height,n=this.y,!(1/0!==e&&1/0!==i&&(e+=n,i+=t,isNaN(i)||isNaN(e)||n>i||t>e)))},t.Ye=function(e){return He(this,e.x,e.y,0,0)},t.ed=function(e){return He(this,e.x,e.y,e.width,e.height)},t.Kv=function(e,t,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),He(this,e,t,n,i)},t.yi=function(e,t,n){return this.x=e-n.offsetX-n.x*this.width,this.y=t-n.offsetY-n.y*this.height,this},t.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.Mz=function(){return 0===this.width&&0===this.height},Ie.alloc=function(){var e=Ve.pop();return void 0===e?new Ie:e},Ie.allocAt=function(e,t,n,i){var r=Ve.pop();return void 0===r?new Ie(e,t,n,i):r.h(e,t,n,i)},Ie.free=function(e){Ve.push(e)},d.Object.defineProperties(Ie.prototype,{left:{get:function(){return this.x},set:function(e){this.x=e}},top:{get:function(){return this.y},set:function(e){this.y=e}},right:{get:function(){return this.x+this.width},set:function(e){this.x+=e-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(e){this.y+=e-(this.y+this.height)}},position:{get:function(){return new fe(this.x,this.y)},set:function(e){this.x=e.x,this.y=e.y}},size:{get:function(){return new Ae(this.width,this.height)},set:function(e){this.width=e.width,this.height=e.height}},center:{get:function(){return new fe(this.x+this.width/2,this.y+this.height/2)},set:function(e){this.x=e.x-this.width/2,this.y=e.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(e){this.x=e-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(e){this.y=e-this.height/2}}}),Ie.prototype.isEmpty=Ie.prototype.Mz,Ie.prototype.isReal=Ie.prototype.w,Ie.intersectsLineSegment=function(e,t,n,i,r,o,a,s){return Zt.Fx(e,t,n,i,r,o,a,s)},Ie.prototype.setSpot=Ie.prototype.yi,Ie.prototype.union=Ie.prototype.Kv,Ie.prototype.unionRect=Ie.prototype.ed,Ie.prototype.unionPoint=Ie.prototype.Ye,Ie.prototype.intersects=Ie.prototype.Vu,Ie.prototype.intersectsRect=Ie.prototype.Yc,Ie.prototype.intersect=Ie.prototype.Uu,Ie.prototype.intersectRect=Ie.prototype.Ex,Ie.prototype.grow=Ie.prototype.Hz,Ie.prototype.subtractMargin=Ie.prototype.Fv,Ie.prototype.addMargin=Ie.prototype.Co,Ie.prototype.inflate=Ie.prototype.Bc,Ie.prototype.offset=Ie.prototype.offset,Ie.prototype.contains=Ie.prototype.contains,Ie.prototype.containsRect=Ie.prototype.Re,Ie.prototype.containsPoint=Ie.prototype.ca,Ie.prototype.equalsApprox=Ie.prototype.Xa,Ie.prototype.equalTo=Ie.prototype.hi,Ie.prototype.equals=Ie.prototype.D,Ie.prototype.setSize=Ie.prototype.tA,Ie.prototype.setPoint=Ie.prototype.dd,Ie.prototype.set=Ie.prototype.set,Ie.prototype.setTo=Ie.prototype.sg;var Ge,Ue,Ve=[];function We(e,t,n,i){void 0===e?this.left=this.bottom=this.right=this.top=0:void 0===t?this.left=this.bottom=this.right=this.top=e:void 0===n?(this.top=e,this.right=t,this.bottom=e,this.left=t):void 0!==i?(this.top=e,this.right=t,this.bottom=n,this.left=i):x("Invalid arguments to Margin constructor: "+e+", "+t+", "+n+", "+i),this._isFrozen=!1}function qe(e){if("string"==typeof e){e=e.split(" ");for(var t=0,n=NaN;""===e[t];)t++;var i=e[t++];if(i&&(n=parseFloat(i)),isNaN(n))return new We;for(var r=NaN;""===e[t];)t++;if((i=e[t++])&&(r=parseFloat(i)),isNaN(r))return new We(n);for(var o=NaN;""===e[t];)t++;if((i=e[t++])&&(o=parseFloat(i)),isNaN(o))return new We(n,r);for(var a=NaN;""===e[t];)t++;return(i=e[t++])&&(a=parseFloat(i)),isNaN(a)?new We(n,r):new We(n,r,o,a)}return new We}function Ye(e){return e.top.toString()+" "+e.right.toString()+" "+e.bottom.toString()+" "+e.left.toString()}Ie.className="Rect",Ie.parse=Re,Ie.stringify=Oe,Ie.contains=Ze,Ie.intersects=Ke,Ie.ZeroRect=Ge=new Ie(0,0,0,0).ja(),Ie.NoRect=Ue=new Ie(NaN,NaN,NaN,NaN).ja(),Ie.parse=Re,Ie.stringify=Oe,Ie.contains=Ze,Ie.intersects=Ke,We.prototype.assign=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},We.prototype.sg=function(e,t,n,i){return this.top=e,this.right=t,this.bottom=n,this.left=i,this},We.prototype.set=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},We.prototype.copy=function(){var e=new We;return e.top=this.top,e.right=this.right,e.bottom=this.bottom,e.left=this.left,e},(t=We.prototype).ja=function(){return this._isFrozen=!0,Object.freeze(this),this},t.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},t.freeze=function(){return this._isFrozen=!0,this},t.ka=function(){return Object.isFrozen(this)&&x("cannot thaw constant: "+this),this._isFrozen=!1,this},t.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},t.D=function(e){return e instanceof We&&(this.top===e.top&&this.right===e.right&&this.bottom===e.bottom&&this.left===e.left)},t.hi=function(e,t,n,i){return this.top===e&&this.right===t&&this.bottom===n&&this.left===i},t.Xa=function(e){return Zt.B(this.top,e.top)&&Zt.B(this.right,e.right)&&Zt.B(this.bottom,e.bottom)&&Zt.B(this.left,e.left)},t.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},We.alloc=function(){var e=Bt.pop();return void 0===e?new We:e},We.free=function(e){Bt.push(e)},We.prototype.isReal=We.prototype.w,We.prototype.equalsApprox=We.prototype.Xa,We.prototype.equalTo=We.prototype.hi,We.prototype.equals=We.prototype.D,We.prototype.set=We.prototype.set,We.prototype.setTo=We.prototype.sg;var Xe,Qe,Je,et,tt,nt,it,rt,ot,at,st,lt,ct,ut,ht,dt,pt,ft,gt,mt,vt,yt,bt,wt,xt,St,kt,_t,Ct,Pt,Et,Mt,Lt,At,Tt,Dt,Nt,It,Bt=[];function Rt(e,t,n,i){void 0===e?this.offsetY=this.offsetX=this.y=this.x=0:(void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0),this.x=e,this.y=t,this.offsetX=n,this.offsetY=i),this._isFrozen=!1}function Ot(e,t){return e.x=NaN,e.y=NaN,e.offsetX=t,e}function Ft(e){if("string"==typeof e){if("None"===(e=e.trim()))return Je;if("TopLeft"===e)return et;if("Top"===e||"TopCenter"===e||"MiddleTop"===e)return tt;if("TopRight"===e)return nt;if("Left"===e||"LeftCenter"===e||"MiddleLeft"===e)return it;if("Center"===e)return rt;if("Right"===e||"RightCenter"===e||"MiddleRight"===e)return ot;if("BottomLeft"===e)return at;if("Bottom"===e||"BottomCenter"===e||"MiddleBottom"===e)return st;if("BottomRight"===e)return lt;if("TopSide"===e)return ct;if("LeftSide"===e)return ut;if("RightSide"===e)return ht;if("BottomSide"===e)return dt;if("TopBottomSides"===e)return pt;if("LeftRightSides"===e)return ft;if("TopLeftSides"===e)return gt;if("TopRightSides"===e)return mt;if("BottomLeftSides"===e)return vt;if("BottomRightSides"===e)return yt;if("NotTopSide"===e)return bt;if("NotLeftSide"===e)return wt;if("NotRightSide"===e)return xt;if("NotBottomSide"===e)return St;if("AllSides"===e)return kt;if("Default"===e)return _t;e=e.split(" ");for(var t=0,n=0;""===e[t];)t++;var i=e[t++];void 0!==i&&0e&&(e+=360),0===e)return this;if(this.translate(t,n),90===e){e=0;var i=1}else 180===e?(e=-1,i=0):270===e?(e=0,i=-1):(i=e*Math.PI/180,e=Math.cos(i),i=Math.sin(i));var r=this.m12*e+this.m22*i,o=this.m11*-i+this.m21*e,a=this.m12*-i+this.m22*e;return this.m11=this.m11*e+this.m21*i,this.m12=r,this.m21=o,this.m22=a,this.translate(-t,-n),this},(t=$t.prototype).translate=function(e,t){return this.dx+=this.m11*e+this.m21*t,this.dy+=this.m12*e+this.m22*t,this},t.scale=function(e,t){return void 0===t&&(t=e),this.m11*=e,this.m12*=e,this.m21*=t,this.m22*=t,this},t.Ga=function(e){var t=e.x,n=e.y;return e.h(t*this.m11+n*this.m21+this.dx,t*this.m12+n*this.m22+this.dy)},t.Cd=function(e){var t=1/(this.m11*this.m22-this.m12*this.m21),n=e.x,i=e.y;return e.h(n*this.m22*t+i*-this.m21*t+t*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*t+i*this.m11*t+t*(this.m12*this.dx-this.m11*this.dy))},t.Eu=function(e){var t=1/(this.m11*this.m22-this.m12*this.m21),n=1.25*e.x,i=1.2*e.y;return e.h(n*this.m22*t+i*-this.m21*t+t*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*t+i*this.m11*t+t*(this.m12*this.dx-this.m11*this.dy))},t.pp=function(e){var t=e.x,n=e.y,i=t+e.width,r=n+e.height,o=this.m11,a=this.m12,s=this.m21,l=this.m22,c=this.dx,u=this.dy,h=t*o+n*s+c,d=t*a+n*l+u,p=i*o+n*s+c,f=i*a+n*l+u;return n=t*o+r*s+c,t=t*a+r*l+u,o=i*o+r*s+c,i=i*a+r*l+u,r=Math.min(h,p),h=Math.max(h,p),p=Math.min(d,f),d=Math.max(d,f),r=Math.min(r,n),h=Math.max(h,n),p=Math.min(p,t),d=Math.max(d,t),r=Math.min(r,o),h=Math.max(h,o),p=Math.min(p,i),d=Math.max(d,i),e.h(r,p,h-r,d-p),e},$t.alloc=function(){var e=Ht.pop();return void 0===e?new $t:e},$t.free=function(e){Ht.push(e)},$t.prototype.transformRect=$t.prototype.pp,$t.prototype.transformPoint=$t.prototype.Ga,$t.prototype.scale=$t.prototype.scale,$t.prototype.translate=$t.prototype.translate,$t.prototype.rotate=$t.prototype.rotate,$t.prototype.invert=$t.prototype.Vj,$t.prototype.multiplyInverted=$t.prototype.bv,$t.prototype.multiply=$t.prototype.multiply,$t.prototype.reset=$t.prototype.reset,$t.prototype.isIdentity=$t.prototype.ws,$t.prototype.equals=$t.prototype.D,$t.prototype.setTransform=$t.prototype.setTransform,$t.prototype.set=$t.prototype.set;var Ht=[];$t.className="Transform",$t.xF="54a702f3e53909c447824c6706603faf4c";var Zt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(e){if(0>=e)return 0;var t=Zt.Uv;if(null===t){t=[];for(var n=0;2e3>=n;n++)t[n]=Math.sqrt(n);Zt.Uv=t}return 1>e?2e3>=(n=1/e)?1/t[0|n]:Math.sqrt(e):2e3>=e?t[0|e]:Math.sqrt(e)},B:function(e,t){return.5>(e-=t)&&-.5(e-=t)&&-5e-8=r&&(r=1e-6),eu-c){if(!(e-n>r||n-e>r))return!0;if((o=(i-t)/(n-e)*(o-e)+t)-r<=a&&a<=o+r)return!0}else{if(!(t-i>r||i-t>r))return!0;if((a=(n-e)/(i-t)*(a-t)+e)-r<=o&&o<=a+r)return!0}return!1},cs:function(e,t,n,i,r,o,a,s,l,c,u,h){if(Zt.Yb(e,t,a,s,h,n,i)&&Zt.Yb(e,t,a,s,h,r,o))return Zt.Yb(e,t,a,s,h,c,u);var d=(e+n)/2,p=(t+i)/2,f=(n+r)/2,g=(i+o)/2,m=((i=(d+f)/2)+(f=(f+(r=(r+a)/2))/2))/2,v=((n=(p+g)/2)+(g=(g+(o=(o+s)/2))/2))/2;return Zt.cs(e,t,d,p,i,n,m,v,l,c,u,h)||Zt.cs(m,v,f,g,r,o,a,s,l,c,u,h)},ax:function(e,t,n,i,r,o,a,s,l){var c=(n+r)/2,u=(i+o)/2;return l.h((((e+n)/2+c)/2+(c+(r+a)/2)/2)/2,(((t+i)/2+u)/2+(u+(o+s)/2)/2)/2),l},My:function(e,t,n,i,r,o,a,s){var l=(n+r)/2,c=(i+o)/2;return xe(((e+n)/2+l)/2,((t+i)/2+c)/2,(l+(r+a)/2)/2,(c+(o+s)/2)/2)},Dl:function(e,t,n,i,r,o,a,s,l,c){if(Zt.Yb(e,t,a,s,l,n,i)&&Zt.Yb(e,t,a,s,l,r,o))He(c,e,t,0,0),He(c,a,s,0,0);else{var u=(e+n)/2,h=(t+i)/2,d=(n+r)/2,p=(i+o)/2,f=((i=(u+d)/2)+(d=(d+(r=(r+a)/2))/2))/2,g=((n=(h+p)/2)+(p=(p+(o=(o+s)/2))/2))/2;Zt.Dl(e,t,u,h,i,n,f,g,l,c),Zt.Dl(f,g,d,p,r,o,a,s,l,c)}return c},Qe:function(e,t,n,i,r,o,a,s,l,c){if(Zt.Yb(e,t,a,s,l,n,i)&&Zt.Yb(e,t,a,s,l,r,o))0===c.length&&(c.push(e),c.push(t)),c.push(a),c.push(s);else{var u=(e+n)/2,h=(t+i)/2,d=(n+r)/2,p=(i+o)/2,f=((i=(u+d)/2)+(d=(d+(r=(r+a)/2))/2))/2,g=((n=(h+p)/2)+(p=(p+(o=(o+s)/2))/2))/2;Zt.Qe(e,t,u,h,i,n,f,g,l,c),Zt.Qe(f,g,d,p,r,o,a,s,l,c)}return c},jv:function(e,t,n,i,r,o,a,s,l,c){if(Zt.Yb(e,t,r,o,c,n,i))return Zt.Yb(e,t,r,o,c,s,l);var u=(e+n)/2,h=(t+i)/2,d=(u+(n=(n+r)/2))/2,p=(h+(i=(i+o)/2))/2;return Zt.jv(e,t,u,h,d,p,a,s,l,c)||Zt.jv(d,p,n,i,r,o,a,s,l,c)},OA:function(e,t,n,i,r,o,a){return a.h(((e+n)/2+(n+r)/2)/2,((t+i)/2+(i+o)/2)/2),a},iv:function(e,t,n,i,r,o,a,s){if(Zt.Yb(e,t,r,o,a,n,i))He(s,e,t,0,0),He(s,r,o,0,0);else{var l=(e+n)/2,c=(t+i)/2,u=(l+(n=(n+r)/2))/2,h=(c+(i=(i+o)/2))/2;Zt.iv(e,t,l,c,u,h,a,s),Zt.iv(u,h,n,i,r,o,a,s)}return s},ep:function(e,t,n,i,r,o,a,s){if(Zt.Yb(e,t,r,o,a,n,i))0===s.length&&(s.push(e),s.push(t)),s.push(r),s.push(o);else{var l=(e+n)/2,c=(t+i)/2,u=(l+(n=(n+r)/2))/2,h=(c+(i=(i+o)/2))/2;Zt.ep(e,t,l,c,u,h,a,s),Zt.ep(u,h,n,i,r,o,a,s)}return s},Eo:function(e,t,n,i,r,o,a,s,l,c,u,h,d,p){if(Zt.Yb(e,t,a,s,d,n,i)&&Zt.Yb(e,t,a,s,d,r,o))return!!Zt.Rl(e,t,a,s,l,c,u,h)&&(0!=(d=(e-a)*(c-h)-(t-s)*(l-u))&&(p.h(((e*s-t*a)*(l-u)-(e-a)*(l*h-c*u))/d,((e*s-t*a)*(c-h)-(t-s)*(l*h-c*u))/d),!0));var f=(e+n)/2,g=(t+i)/2,m=(n+r)/2,v=(i+o)/2,y=((i=(f+m)/2)+(m=(m+(r=(r+a)/2))/2))/2,b=((n=(g+v)/2)+(v=(v+(o=(o+s)/2))/2))/2,w=1/0,x=!1,S=0,k=0;return Zt.Eo(e,t,f,g,i,n,y,b,l,c,u,h,d,p)&&((e=(p.x-l)*(p.x-l)+(p.y-c)*(p.y-c))=u)return p;if((l>u?l-u:u-l)<(c>h?c-h:h-c)){if(te)return p}else if(ee)return p;0d&&p--}else{g=(t+i)/2;var m=(n+r)/2,v=(i+o)/2,y=((i=((f=(e+n)/2)+m)/2)+(m=(m+(r=(r+a)/2))/2))/2,b=((n=(g+v)/2)+(v=(v+(o=(o+s)/2))/2))/2;p+=Zt.Fo(e,t,f,g,i,n,y,b,l,c,u,h,d),p+=Zt.Fo(y,b,m,v,r,o,a,s,l,c,u,h,d)}return p},qh:function(e,t,n,i,r,o,a){return Zt.$(e,n)?(tt?(a.h(e,t),!1):(a.h(e,o),!0)):Zt.$(t,i)?(ee?(a.h(e,t),!1):(a.h(r,t),!0)):-5e-6>(r=((e-r)*(e-n)+(t-o)*(t-i))/((n-e)*(n-e)+(i-t)*(i-t)))?(a.h(e,t),!1):1.000005t?(l.h(e,t),!1):(l.h(e,n),!0)):(a=(i-t)/(n-e),Zt.$(s,a)?(Zt.qh(e,t,n,i,r,o,l),!1):(r=(a*e-s*r+o-t)/(a-s),Zt.$(a,0)?(ee?(l.h(e,t),!1):(l.h(r,t),!0)):Zt.qh(e,t,n,i,r,a*(r-e)+t,l))))},MA:function(e,t,n,i,r){return Zt.Ve(n.x,n.y,i.x,i.y,e.x,e.y,t.x,t.y,r)},KA:function(e,t,n,i,r,o,a,s,l,c){function u(n,i){var r=(n-e)*(n-e)+(i-t)*(i-t);r(n>e?n-e:e-n)){if(0>(d=1-(n-r)*(n-r)/(d*d)))return l;i=-c*(d=Math.sqrt(d))+o,u(n,c*d+o),u(n,i)}else{if(0>(d=(s=2*(n=(i-t)/(n-e))*(t-n*e)/(c*c)-2*n*o/(c*c)-2*r/(d*d))*s-4*(i=1/(d*d)+n*n/(c*c))*(2*n*e*o/(c*c)-2*t*o/(c*c)+o*o/(c*c)+r*r/(d*d)-1+(t-n*e)*(t-n*e)/(c*c))))return l;u(c=(-s+(d=Math.sqrt(d)))/(2*i),n*c-n*e+t),u(d=(-s-d)/(2*i),n*d-n*e+t)}return l},Ff:function(e,t,n,i,r,o,a,s,l){var c=1e21,u=e,h=t;if(Zt.Ve(e,t,e,i,r,o,a,s,l)){var d=(l.x-r)*(l.x-r)+(l.y-o)*(l.y-o);dc},us:function(e,t,n){return Zt.Fx(e.x,e.y,e.width,e.height,t.x,t.y,n.x,n.y)},Fx:function(e,t,n,i,r,o,a,s){var l=e+n,c=t+i;return r===a?(o=t):o===s?(r=e):!!(Ze(e,t,n,i,r,o)||Ze(e,t,n,i,a,s)||Zt.Rl(e,t,l,t,r,o,a,s)||Zt.Rl(l,t,l,c,r,o,a,s)||Zt.Rl(l,c,e,c,r,o,a,s)||Zt.Rl(e,c,e,t,r,o,a,s))},Rl:function(e,t,n,i,r,o,a,s){return e===n&&t===i&&r===a&&o===s?e===r&&t===o:0>=Zt.Fl(e,t,n,i,r,o)*Zt.Fl(e,t,n,i,a,s)&&0>=Zt.Fl(r,o,a,s,e,t)*Zt.Fl(r,o,a,s,n,i)},Fl:function(e,t,n,i,r,o){return n-=e,0===(o=(e=r-e)*(i-=t)-(t=o-t)*n)&&(0<(o=e*n+t*i)&&(0>(o=(e-n)*n+(t-i)*i)&&(o=0))),o},bp:function(e){return 0>e&&(e+=360),360<=e&&(e-=360),e},jx:function(e,t,n,i,r,o){var a=Math.PI;o||(i*=a/180,r*=a/180);var s=i>r?-1:1;o=[];var l=a/2,c=i;if(1e-5>(i=Math.min(2*a,Math.abs(r-i))))return l=c+s*Math.min(i,l),s=e+n*Math.cos(c),c=t+n*Math.sin(c),e+=n*Math.cos(l),t+=n*Math.sin(l),n=(s+e)/2,l=(c+t)/2,o.push([s,c,n,l,n,l,e,t]),o;for(;1e-5n,o=0>i;if(ec&&((t=.5*(s+l))!==s&&t!==l);++c){var u=e/(t+r),h=a/(t+o);if(0<(u=u*u+h*h-1))s=t;else{if(!(0>u))break;l=t}}n=r*n/(t+r)-n,i=o*i/(t+o)-i,n=Math.sqrt(n*n+i*i)}else n=Math.abs(i-t);else(o=e*n)<(i=e*e-t*t)?(i=o/i,o=t*Math.sqrt(Math.abs(1-i*i)),n=e*i-n,n=Math.sqrt(n*n+o*o)):n=Math.abs(n-e);return n},Ze:new Z,um:new Z,Mf:new Z,Nf:0,vm:100};function Kt(e){J(this),this.l=2,void 0===e&&(e=Kt.o),this.na=e,this.Ec=this.Dc=this.pd=this.od=0,e===Kt.o?this.ee=new Y:(null===Kt.V&&(Kt.V=(new Y).freeze()),this.ee=Kt.V),this.aq=this.ee.Ja,this.Ip=(new Ie).freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=et,this.gg=lt,this.Rk=this.Sk=NaN,this.Uf=ha}function Gt(e,t){return e.type===Kt.j&&t.type===Kt.o&&!!(1===t.figures.count&&(t=t.figures.M(0),1===t.segments.count&&Zt.B(e.startX,t.startX)&&Zt.B(e.startY,t.startY)&&(t=t.segments.M(0),t.type===rn&&Zt.B(e.endX,t.endX)&&Zt.B(e.endY,t.endY))))}function Ut(e,t,n){switch(e.type){case Kt.j:case Kt.u:case Kt.F:n?t.h(e.od,e.pd,0,0):He(t,e.od,e.pd,0,0),He(t,e.Dc,e.Ec,0,0);break;case Kt.o:var i=e.figures;e=i.s,i=i.length;for(var r=0;r=e)return 0;if((r>a?r-a:a-r)<(o>s?o-s:s-o)){if(os)return 0}else if(to)return 0}else if(ra)return 0}else if(cr)return 0;return 0(e=o%360)&&(e+=360),this.Ne=e,this.Vh=0,this.Wh=Math.max(i,0),this.Pg=Math.max(r,0),"boolean"==typeof a?a&&(this.isLargeArc=!0):"number"==typeof a&&a&&(this.isLargeArc=!0),s&&(this.isClockwiseArc=!0)):(this.Ne=i,this.Vh=r,e===sn&&(o=Math.max(o,0)),this.Wh=o,"number"==typeof a?(e===sn&&(a=Math.max(a,0)),this.Pg=a):this.Pg=0),this.ae=null}function en(e,t){if(null!==e.ae&&!1===t._isInvalidBounds)return e.ae;var n=e.radiusX,i=e.radiusY;if(void 0===i&&(i=n),0===n||0===i)return e.ae=[],e.ae;t=e.Ne;var r=e.Vh,o=Zt.jx(0,0,n=(p=(h*p+c*s)/(Math.sqrt(h*h+c*c)*Math.sqrt(p*p+s*s)))?a=Math.PI:1<=p&&(a=0),!l&&0a&&(a+=2*Math.PI),l=t>o?1:t/o,p=t>o?o/t:1,t=Zt.jx(0,0,t>o?t:o,u,u+a,!0),(o=$t.alloc()).reset(),o.translate(n,i),o.rotate(e.Ne,0,0),o.scale(l,p),Kt.Ha(t,o),$t.free(o),e.ae=t,e.ae}Zt.za=Zt.AA,Kt.prototype.copy=function(){var e=new Kt;if(e.l=-2&this.l,e.na=this.na,e.od=this.od,e.pd=this.pd,e.Dc=this.Dc,e.Ec=this.Ec,this.na===Kt.o){for(var t=this.ee.s,n=e.ee,i=0;ie?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(e)+" "+this.startY.toFixed(e)+"L"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);case Kt.u:var t=new Ie(this.startX,this.startY,0,0);return t.Kv(this.endX,this.endY,0,0),0>e?"M"+t.x.toString()+" "+t.y.toString()+"H"+t.right.toString()+"V"+t.bottom.toString()+"H"+t.left.toString()+"z":"M"+t.x.toFixed(e)+" "+t.y.toFixed(e)+"H"+t.right.toFixed(e)+"V"+t.bottom.toFixed(e)+"H"+t.left.toFixed(e)+"z";case Kt.F:if((t=new Ie(this.startX,this.startY,0,0)).Kv(this.endX,this.endY,0,0),0>e)return"M"+(e=t.left.toString()+" "+(t.y+t.height/2).toString())+"A"+(t.width/2).toString()+" "+(t.height/2).toString()+" 0 0 1 "+t.right.toString()+" "+(t.y+t.height/2).toString()+"A"+(t.width/2).toString()+" "+(t.height/2).toString()+" 0 0 1 "+e;var n=t.left.toFixed(e)+" "+(t.y+t.height/2).toFixed(e);return"M"+n+"A"+(t.width/2).toFixed(e)+" "+(t.height/2).toFixed(e)+" 0 0 1 "+t.right.toFixed(e)+" "+(t.y+t.height/2).toFixed(e)+"A"+(t.width/2).toFixed(e)+" "+(t.height/2).toFixed(e)+" 0 0 1 "+n;case Kt.o:t="";for(var i=(n=this.figures.s).length,r=0;r=w-1||null!==c[g+1].match(x)}function i(){return g++,c[g]}function r(e){var t=parseFloat(i()),n=parseFloat(i());m===m.toLowerCase()&&(t=b.x+t,n=b.y+n),e.h(t,n)}function o(){return r(b),b}function a(){return r(y),y}function s(){var e=v.toLowerCase();return"c"!==e&&"s"!==e&&"q"!==e&&"t"!==e?b:new fe(2*b.x-y.x,2*b.y-y.y)}void 0===t&&(t=!1);var l=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,c=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/,/gm," ")).replace(l,"$1 $2")).replace(l,"$1 $2")).replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2")).replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2")).replace(/[\s\r\t\n]+/gm," ")).replace(/^\s+|\s+$/g,"")).split(" ");for(e=0;e=w-1);)if(v=m,""!==(m=i()))switch(m.toUpperCase()){case"X":p=!0,h=u=!1;break;case"M":for(f=o(),null===e.mc||!0===p?(pu(e,f.x,f.y,u,!h,d),p=!1):e.moveTo(f.x,f.y),l.assign(b);!n();)f=o(),e.lineTo(f.x,f.y);break;case"L":for(;!n();)f=o(),e.lineTo(f.x,f.y);break;case"H":for(;!n();)b=new fe((m===m.toLowerCase()?b.x:0)+parseFloat(i()),b.y),e.lineTo(b.x,b.y);break;case"V":for(;!n();)b=new fe(b.x,(m===m.toLowerCase()?b.y:0)+parseFloat(i())),e.lineTo(b.x,b.y);break;case"C":for(;!n();){r(f=new fe);var S=a(),k=o();gu(e,f.x,f.y,S.x,S.y,k.x,k.y)}break;case"S":for(;!n();)f=s(),S=a(),k=o(),gu(e,f.x,f.y,S.x,S.y,k.x,k.y);break;case"Q":for(;!n();)f=a(),S=o(),mu(e,f.x,f.y,S.x,S.y);break;case"T":for(;!n();)y=f=s(),S=o(),mu(e,f.x,f.y,S.x,S.y);break;case"B":for(;!n();){f=parseFloat(i()),S=parseFloat(i()),k=parseFloat(i());var _=parseFloat(i()),C=parseFloat(i()),P=C,E=!1;n()||(P=parseFloat(i()),n()||(E=0!==parseFloat(i()))),m===m.toLowerCase()&&(k+=b.x,_+=b.y),e.arcTo(f,S,k,_,C,P,E)}break;case"A":for(;!n();)f=Math.abs(parseFloat(i())),S=Math.abs(parseFloat(i())),k=parseFloat(i()),C=_=!1,E=P=0,1===(P=i()).length?(_=!!parseFloat(P),C=!!parseFloat(i()),P=parseFloat(i())):2===P.length?(_=!!parseFloat(P[0]),C=!!parseFloat(P[1]),P=parseFloat(i())):(_=!!parseFloat(P[0]),C=!!parseFloat(P[1]),P=parseFloat(P.slice(2))),E=parseFloat(i()),m===m.toLowerCase()&&(P=b.x+P,E=b.y+E),b.h(P,E),vu(e,f,S,k,_,C,P,E);break;case"Z":fu(e),b.assign(l);break;case"F":for(f="",S=1;c[g+S];)if("0"===c[g+S])d=!0,S++;else if(null!==c[g+S].match(/[Uu]/))S++;else{if(null!==c[g+S].match(x)){f=c[g+S];break}S++}f.match(/[Mm]/)?u=!0:0(a=180*Math.atan2(t,e)/Math.PI)&&(a+=360),f.startAngle+=a),0>e&&(f.startAngle=180-f.startAngle,f.sweepAngle=-f.sweepAngle),0>i&&(f.startAngle=-f.startAngle,f.sweepAngle=-f.sweepAngle),f.radiusX*=Math.sqrt(e*e+n*n),void 0!==f.radiusY&&(f.radiusY*=Math.sqrt(t*t+i*i));break;case ln:if(a=f.endX,s=f.endY,f.endX=a*e+s*n+r,f.endY=a*t+s*i+o,0===f.radiusX||0===f.radiusY)break;0!==t&&(0>(a=180*Math.atan2(t,e)/Math.PI)&&(a+=360),f.xAxisRotation+=a),0>e&&(f.xAxisRotation=180-f.xAxisRotation,f.isClockwiseArc=!f.isClockwiseArc),0>i&&(f.xAxisRotation=-f.xAxisRotation,f.isClockwiseArc=!f.isClockwiseArc),f.radiusX*=Math.sqrt(e*e+n*n),f.radiusY*=Math.sqrt(t*t+i*i);break;default:x("Unknown Segment type: "+f.type)}}}}return this._isInvalidBounds=!0,this},t.ca=function(e,t){void 0===t&&(t=0);var n=this.od,i=this.pd,r=this.Dc,o=this.Ec;switch(this.type){case Kt.j:return Zt.Yb(n,i,r,o,t,e.x,e.y);case Kt.u:var a=Ie.allocAt(Math.min(n,r)-t,Math.min(i,o)-t,Math.abs(r-n)+2*t,Math.abs(o-i)+2*t);return e=a.ca(e),Ie.free(a),e;case Kt.F:a=Math.min(n,r)-t;var s=Math.min(i,o)-t;return n=(Math.abs(r-n)+2*t)/2,t=(Math.abs(o-i)+2*t)/2,0>=n||0>=t?!1:1>=(a=e.x-(a+n))*a/(n*n)+(s=e.y-(s+t))*s/(t*t);case Kt.o:return Vt(this,e,t,!0,!1);default:return!1}},t.Pu=function(e,t){if(0>e?e=0:1=o)return i=o-a,i=0===u?0:i/u,s=(n=n[s])[2*e],r=n[2*e+1],t.h(s+(n[2*e+2]-s)*i,r+(n[2*e+3]-r)*i),t;a+=u}}return t},t.wx=function(e){if(0>e?e=0:1=r)return t=(r=t[a])[2*e],n=r[2*e+1],i=r[2*e+2],e=r[2*e+3],1>Math.abs(i-t)&&1>Math.abs(e-n)?0:1>Math.abs(i-t)?0<=e-n?90:270:1>Math.abs(e-n)?0<=i-t?0:180:180*Math.atan2(e-n,i-t)/Math.PI;o+=c}}return NaN},t.Qu=function(e,t){if(0>e?e=0:1=o)return i=o-a,i=0===u?0:i/u,n=(u=n[s])[2*e],s=u[2*e+1],r=u[2*e+2],e=u[2*e+3],t[0]=n+(r-n)*i,t[1]=s+(e-s)*i,t[2]=1>Math.abs(r-n)&&1>Math.abs(e-s)?0:1>Math.abs(r-n)?0<=e-s?90:270:1>Math.abs(e-s)?0<=r-n?0:180:180*Math.atan2(e-s,r-n)/Math.PI,t;a+=u}}return t},t.xx=function(e){if(this.type===Kt.j){var t=this.startX,n=this.startY,i=this.endX,r=this.endY;if(t!==i||n!==r){var o=e.x;if(e=e.y,t===i){if(n=i?i===n?0:1:Math.abs(e-n)/(i-a)}if(n===r)return t=i?i===t?0:1:Math.abs(o-t)/(i-a);a=(i-t)*(i-t)+(r-n)*(r-n);var s=fe.alloc();return Zt.qh(t,n,i,r,o,e,s),e=s.x,o=s.y,fe.free(s),Math.sqrt(((e-t)*(e-t)+(o-n)*(o-n))/a)}}else{if(this.type!==Kt.u){t=this.flattenedSegments,n=this.flattenedLengths,o=this.flattenedTotalLength,i=fe.alloc(),r=1/0,s=a=0,v=t.length;for(var l=y=0,c=0;c(e=a/o)?0:1e?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(e)+" "+this.startY.toFixed(e),n=this.segments.s,i=n.length,r=0;re?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case rn:e=0>e?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case on:e=0>e?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(e)+" "+this.point1Y.toFixed(e)+" "+this.point2X.toFixed(e)+" "+this.point2Y.toFixed(e)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case an:e=0>e?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(e)+" "+this.point1Y.toFixed(e)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case sn:e=0>e?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(e)+" "+this.sweepAngle.toFixed(e)+" "+this.centerX.toFixed(e)+" "+this.centerY.toFixed(e)+" "+this.radiusX.toFixed(e)+" "+this.radiusY.toFixed(e);break;case ln:e=0>e?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(e)+" "+this.radiusY.toFixed(e)+" "+this.xAxisRotation.toFixed(e)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;default:e=this.type.toString()}return e+(this.isClosed?"z":"")},t.freeze=function(){return this._isFrozen=!0,this},t.ka=function(){return this._isFrozen=!1,this},t.close=function(){return this.isClosed=!0,this},d.Object.defineProperties(Jt.prototype,{_isFrozen:{get:function(){return 0!=(1&this.l)},set:function(e){this.l=e?1|this.l:-2&this.l}},_isInvalidBounds:{get:function(){return 0!=(2&this.l)},set:function(e){this.l=e?2|this.l:-3&this.l}},isClosed:{get:function(){return 0!=(8&this.l)},set:function(e){this.isClosed!==e&&(this.l=e?8|this.l:-9&this.l,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(e){this._isFrozen&&S(this,e),this.na=e,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(e){this._isFrozen&&S(this,e),this.Dc=e,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(e){this._isFrozen&&S(this,e),this.Ec=e,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(e){this._isFrozen&&S(this,e),this.Ne=e,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(e){this._isFrozen&&S(this,e),this.Vh=e,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(e){this._isFrozen&&S(this,e),this.Wh=e,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(e){this._isFrozen&&S(this,e),this.Pg=e,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(e){this._isFrozen&&S(this,e),this.Ne=e,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(e){this._isFrozen&&S(this,e),this.Vh=e,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(e){0>e&&k(e,">= zero",Jt,"radiusX"),this._isFrozen&&S(this,e),this.Wh=e,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(e){0>e&&k(e,">= zero",Jt,"radiusY"),this._isFrozen&&S(this,e),this.Pg=e,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(e){this._isFrozen&&S(this,e),0>(e%=360)&&(e+=360),this.Dc=e,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(e){this._isFrozen&&S(this,e),360e&&(e=-360),this.Ec=e,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return 0!=(4&this.l)},set:function(e){this._isFrozen&&S(this,e),this.l=e?4|this.l:-5&this.l,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return 0!=(16&this.l)},set:function(e){this._isFrozen&&S(this,e),this.l=e?16|this.l:-17&this.l,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(e){this._isFrozen&&S(this,e),0>(e%=360)&&(e+=360),this.Ne=e,this._isInvalidBounds=!0}}}),Jt.prototype.equalsApprox=Jt.prototype.Xa;var nn=new j(Jt,"Move",0),rn=new j(Jt,"Line",1),on=new j(Jt,"Bezier",2),an=new j(Jt,"QuadraticBezier",3),sn=new j(Jt,"Arc",4),ln=new j(Jt,"SvgArc",4);function cn(){this.H=null,this.xu=new fe(0,0).freeze(),this.mt=new fe(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}function un(){this.H=null,this.xa="",this.ar=this.Lr=null}function hn(){this.Fm=pn,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Jt.className="PathSegment",Jt.Move=nn,Jt.Line=rn,Jt.Bezier=on,Jt.QuadraticBezier=an,Jt.Arc=sn,Jt.SvgArc=ln,cn.prototype.copy=function(){var e=new cn;return this.clone(e)},cn.prototype.clone=function(e){return e.H=this.H,e.xu.assign(this.viewPoint),e.mt.assign(this.documentPoint),e.Rq=this.Rq,e.Bp=this.Bp,e.Cp=this.Cp,e.xq=this.xq,e.Tp=this.Tp,e.Wr=this.Wr,e.Ep=this.Ep,e.Rp=this.Rp,e.tq=this.tq,e.nq=this.nq,e.xg=this.xg,e.Zp=this.Zp,e.Rr=this.Rr,e.Nr=this.Nr,e.xd=this.xd,e},cn.prototype.toString=function(){var e="^";return 0!==this.modifiers&&(e+="M:"+this.modifiers),0!==this.button&&(e+="B:"+this.button),""!==this.key&&(e+="K:"+this.key),0!==this.clickCount&&(e+="C:"+this.clickCount),0!==this.delta&&(e+="D:"+this.delta),this.handled&&(e+="h"),this.bubbles&&(e+="b"),null!==this.documentPoint&&(e+="@"+this.documentPoint.toString()),e},cn.prototype.So=function(e,t){var n=this.diagram;return null===n||qr(n,e,t),t},cn.prototype.Bz=function(e,t){var n=this.diagram;return null===n||(qr(n,e,t),t.assign(n.Ps(t))),t},d.Object.defineProperties(cn.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},viewPoint:{get:function(){return this.xu},set:function(e){this.xu.assign(e)}},documentPoint:{get:function(){return this.mt},set:function(e){this.mt.assign(e)}},modifiers:{get:function(){return this.Rq},set:function(e){this.Rq=e}},button:{get:function(){return this.Bp},set:function(e){if(this.Bp=e,null===this.event)switch(e){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(e){this.Cp=e}},key:{get:function(){return this.xq},set:function(e){this.xq=e}},down:{get:function(){return this.Tp},set:function(e){this.Tp=e}},up:{get:function(){return this.Wr},set:function(e){this.Wr=e}},clickCount:{get:function(){return this.Ep},set:function(e){this.Ep=e}},delta:{get:function(){return this.Rp},set:function(e){this.Rp=e}},isMultiTouch:{get:function(){return this.tq},set:function(e){this.tq=e}},handled:{get:function(){return this.nq},set:function(e){this.nq=e}},bubbles:{get:function(){return this.xg},set:function(e){this.xg=e}},event:{get:function(){return this.Zp},set:function(e){this.Zp=e}},isTouchEvent:{get:function(){var e=this.event;return null!==e&&("touch"===e.pointerType||"pen"===e.pointerType)}},timestamp:{get:function(){return this.Rr},set:function(e){this.Rr=e}},targetDiagram:{get:function(){return this.Nr},set:function(e){this.Nr=e}},targetObject:{get:function(){return this.xd},set:function(e){this.xd=e}},control:{get:function(){return 0!=(1&this.modifiers)},set:function(e){this.modifiers=e?1|this.modifiers:-2&this.modifiers}},shift:{get:function(){return 0!=(4&this.modifiers)},set:function(e){this.modifiers=e?4|this.modifiers:-5&this.modifiers}},alt:{get:function(){return 0!=(2&this.modifiers)},set:function(e){this.modifiers=e?2|this.modifiers:-3&this.modifiers}},meta:{get:function(){return 0!=(8&this.modifiers)},set:function(e){this.modifiers=e?8|this.modifiers:-9&this.modifiers}},left:{get:function(){var e=this.event;return null===e||"mousedown"!==e.type&&"mouseup"!==e.type&&"pointerdown"!==e.type&&"pointerup"!==e.type?0!=(1&this.buttons):0===this.button},set:function(e){this.buttons=e?1|this.buttons:-2&this.buttons}},right:{get:function(){var e=this.event;return null===e||"mousedown"!==e.type&&"mouseup"!==e.type&&"pointerdown"!==e.type&&"pointerup"!==e.type?0!=(2&this.buttons):2===this.button},set:function(e){this.buttons=e?2|this.buttons:-3&this.buttons}},middle:{get:function(){var e=this.event;return null===e||"mousedown"!==e.type&&"mouseup"!==e.type&&"pointerdown"!==e.type&&"pointerup"!==e.type?0!=(4&this.buttons):1===this.button},set:function(e){this.buttons=e?4|this.buttons:-5&this.buttons}}}),cn.prototype.getMultiTouchDocumentPoint=cn.prototype.Bz,cn.prototype.getMultiTouchViewPoint=cn.prototype.So,cn.className="InputEvent",un.prototype.copy=function(){var e=new un;return e.H=this.H,e.xa=this.xa,e.Lr=this.Lr,e.ar=this.ar,e},un.prototype.toString=function(){var e="*"+this.name;return null!==this.subject&&(e+=":"+this.subject.toString()),null!==this.parameter&&(e+="("+this.parameter.toString()+")"),e},d.Object.defineProperties(un.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},subject:{get:function(){return this.Lr},set:function(e){this.Lr=e}},parameter:{get:function(){return this.ar},set:function(e){this.ar=e}}}),un.className="DiagramEvent",hn.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},hn.prototype.copy=function(){var e=new hn;e.Fm=this.Fm,e.Qq=this.Qq,e.rf=this.rf,e.cc=this.cc,e.H=this.H,e.Qn=this.Qn;var t=this.Sn;return e.Sn=C(t)&&"function"==typeof t.J?t.J():t,t=this.Rn,e.Rn=C(t)&&"function"==typeof t.J?t.J():t,t=this.Mn,e.Mn=C(t)&&"function"==typeof t.J?t.J():t,t=this.Ln,e.Ln=C(t)&&"function"==typeof t.J?t.J():t,e},hn.prototype.qb=function(e){e.classType===hn&&(this.change=e)},hn.prototype.toString=function(){var e="";return e=this.change===dn?e+"* ":this.change===pn?e+(null!==this.model?"!m":"!d"):e+(null!==this.model?"!m":"!d")+this.change,this.propertyName&&"string"==typeof this.propertyName&&(e+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(e+=" "+this.modelChange),e+=": ",this.change===dn?null!==this.oldValue&&(e+=" "+this.oldValue):(null!==this.object&&(e+=N(this.object)),null!==this.oldValue&&(e+=" old: "+N(this.oldValue)),null!==this.oldParam&&(e+=" "+this.oldParam),null!==this.newValue&&(e+=" new: "+N(this.newValue)),null!==this.newParam&&(e+=" "+this.newParam)),e},hn.prototype.I=function(e){return e?this.oldValue:this.newValue},hn.prototype.Dz=function(e){return e?this.oldParam:this.newParam},hn.prototype.canUndo=function(){return null!==this.model||null!==this.diagram},hn.prototype.undo=function(){this.canUndo()&&(null!==this.model?this.model.changeState(this,!0):null!==this.diagram&&this.diagram.changeState(this,!0))},hn.prototype.canRedo=function(){return null!==this.model||null!==this.diagram},hn.prototype.redo=function(){this.canRedo()&&(null!==this.model?this.model.changeState(this,!1):null!==this.diagram&&this.diagram.changeState(this,!1))},d.Object.defineProperties(hn.prototype,{model:{get:function(){return this.cc},set:function(e){this.cc=e}},diagram:{get:function(){return this.H},set:function(e){this.H=e}},change:{get:function(){return this.Fm},set:function(e){this.Fm=e}},modelChange:{get:function(){return this.Qq},set:function(e){this.Qq=e}},propertyName:{get:function(){return this.rf},set:function(e){this.rf=e}},isTransactionFinished:{get:function(){return this.Fm===dn&&("CommittedTransaction"===this.rf||"FinishedUndo"===this.rf||"FinishedRedo"===this.rf)}},object:{get:function(){return this.Qn},set:function(e){this.Qn=e}},oldValue:{get:function(){return this.Sn},set:function(e){this.Sn=e}},oldParam:{get:function(){return this.Rn},set:function(e){this.Rn=e}},newValue:{get:function(){return this.Mn},set:function(e){this.Mn=e}},newParam:{get:function(){return this.Ln},set:function(e){this.Ln=e}}}),hn.prototype.redo=hn.prototype.redo,hn.prototype.canRedo=hn.prototype.canRedo,hn.prototype.undo=hn.prototype.undo,hn.prototype.canUndo=hn.prototype.canUndo,hn.prototype.getParam=hn.prototype.Dz,hn.prototype.getValue=hn.prototype.I,hn.prototype.clear=hn.prototype.clear;var dn=new j(hn,"Transaction",-1),pn=new j(hn,"Property",0),fn=new j(hn,"Insert",1),gn=new j(hn,"Remove",2);function mn(){this.o=(new Y).freeze(),this.xa="",this.j=!1}function vn(){this.Pt=new Q,this.Jd=!1,this.u=(new Y).freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=(new Y).freeze(),this.hl=new Y,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}function yn(e,t,n){if(e.isUndoingRedoing)return!1;e.checksTransactionLevel&&1>e.transactionLevel&&_("Ending transaction without having started a transaction: "+n);var i=1===e.transactionLevel,r=e.currentTransaction;i&&t&&(e.isInternalTransaction||e.Ob("CommittingTransaction",n,r));var o=0;if(0=i&&(null!==(o=t.M(0))&&o.clear(),t.mb(0),e.Ce--)),0===i||0!==t.count&&t.get(t.count-1)===r||(t.add(r),e.Ce++),t.freeze()),e.isInternalTransaction||e.Ob("CommittedTransaction",n,r);else{e.Fe=!0;try{e.isEnabled&&null!==r&&(r.isComplete=!0,r.undo())}finally{e.isInternalTransaction||e.Ob("RolledBackTransaction",n,r),e.Fe=!1}null!==r&&r.clear()}return e.Np=null,e.isPendingClear&&e.clear(),e.isPendingClear=!1,e.isPendingUnmodified=!1,!0}if(e.isEnabled&&!t&&null!==r){for(e=o,r=(n=r.changes).count-1;r>=e;r--)null!==(t=n.M(r))&&t.undo(),n.ka(),n.mb(r);n.freeze()}return!1}function bn(){J(this),this.H=br,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new cn,this.Zr=-1}function wn(){bn.call(this),this.name="ToolManager",this.hb=new Y,this.ob=new Y,this.Hb=new Y,this.F=this.V=850,this.o=new Ae(2,2).ja(),this.Ha=5e3,this.ia=kn,this.u=Pn,this.Mp=this.j=null,this.zj=-1}function xn(e,t){e.standardMouseOver(),e.isBeyondDragSize()&&e.standardWaitAfter(e.isActive?e.holdDelay:e.hoverDelay,t.lastInput)}hn.className="ChangedEvent",hn.Transaction=dn,hn.Property=pn,hn.Insert=fn,hn.Remove=gn,mn.prototype.toString=function(e){var t="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(void 0!==e&&0t&&e.cd(t,i),t++);for(;e.length>t;)e.pop();e.freeze()}},d.Object.defineProperties(mn.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},isComplete:{get:function(){return this.j},set:function(e){this.j=e}}}),mn.prototype.optimize=mn.prototype.ak,mn.prototype.redo=mn.prototype.redo,mn.prototype.canRedo=mn.prototype.canRedo,mn.prototype.undo=mn.prototype.undo,mn.prototype.canUndo=mn.prototype.canUndo,mn.prototype.clear=mn.prototype.clear,mn.className="Transaction",vn.prototype.toString=function(e){var t="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;t+="[";for(var n=this.nestedTransactionNames.count,i=0;ithis.historyIndex;t--){var n=e.M(t);null!==n&&n.clear(),e.mb(t),this.rq=!0}e.freeze()}},vn.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(null!==(e=e.diagram)&&!1===e.pi||_("Change not within a transaction: "+n.toString()))}},vn.prototype.skipsEvent=function(e){if(null===e||0>e.change.value)return!0;if(null===(e=e.object))return!1;if(void 0!==e.layer){if(null!==(e=e.layer)&&e.isTemporary)return!0}else if(e.isTemporary)return!0;return!1},d.Object.defineProperties(vn.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(e){this.Jd=e}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndexr||Math.abs(t.y-e.y)>i},d.Object.defineProperties(bn.prototype,{diagram:{get:function(){return this.H},set:function(e){e instanceof Er&&(this.H=e)}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},isEnabled:{get:function(){return this.Jd},set:function(e){this.Jd=e}},isActive:{get:function(){return this.nb},set:function(e){this.nb=e}},transactionResult:{get:function(){return this.wm},set:function(e){this.wm=e}}}),bn.prototype.startTransaction=bn.prototype.Ea,bn.className="Tool",h(wn,bn),wn.prototype.initializeStandardTools=function(){},wn.prototype.updateAdornments=function(e){var t=this.currentToolTip;if(t instanceof Vu&&this.Mp===e){var n=t.adornedObject;(null!==e?n.part===e:null===n)?this.showToolTip(t,n):this.hideToolTip()}},wn.prototype.doMouseDown=function(){var e=this.diagram,t=e.lastInput;if(t.isTouchEvent&&this.gestureBehavior===En&&(t.bubbles=!1),t.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Mn)return void(t.bubbles=!0);if(this.gestureBehavior===En)return;if(e.currentTool.canStartMultiTouch())return void e.currentTool.standardPinchZoomStart()}for(var n=this.mouseDownTools.length,i=0;ir.right&&(n.x-=i.width+5/t.scale),n.xr.bottom?n.y-(i.height+5/t.scale):n.y+20/t.scale,n.yn.pointsCount)){var i=e.diagram;if(!i.isReadOnly){var r=e.Oe;if(null!==r){var o=null,a=null;null===n.fromNode&&(null!==(o=$n(e,n.i(0),!1))&&(a=o.part));var s=null,l=null;null===n.toNode&&(null!==(s=$n(e,n.i(n.pointsCount-1),!0))&&(l=s.part)),r.isValidLink(a,o,l,s)?t?(n.defaultFromPoint=n.i(0),n.defaultToPoint=n.i(n.pointsCount-1),n.suspendsRouting=!1,n.fromNode=a,null!==o&&(n.fromPortId=o.portId),n.toNode=l,null!==s&&(n.toPortId=s.portId),n.fromPort!==i.Mx&&i.R("LinkRelinked",n,i.Mx),n.toPort!==i.Nx&&i.R("LinkRelinked",n,i.Nx)):oi(r,a,o,l,s):oi(r,null,null,null,null)}}}}function Zn(e,t){var n=e.diagram;e.dragsLink&&Hn(e,!0),Tn(e);var i=e.findDragOverObject(t),r=n.lastInput;if(r.targetObject=i,null!==i){r.handled=!1;for(var o=i;null!==o;){var a=o.mouseDrop;if(null!==a&&(a(r,o),r.handled))break;Kn(e,r,o),o=jn(o)}}else null!==(o=n.mouseDrop)&&o(r);if(e.isActive||null!==Vn){for(r=(e.copiedParts||e.draggedParts).iterator;r.next();)(o=r.key)instanceof qu&&o.linksConnected.each((function(e){e.suspendsRouting=!1}));if(e.doDropOnto(t,i),e.isActive||null!==Vn){for(e=Ie.alloc(),t=n.selection.iterator;t.next();)(i=t.value)instanceof qu&&Gn(n,i,e);Ie.free(e)}}}function Kn(e,t,n){e=e.diagram,n=n.part,!e.handlesDragDropForTopLevelParts||!n.isTopLevel||n instanceof gh||null!==(n=e.mouseDrop)&&n(t)}function Gn(e,t,n){var i=!1;if(n=t.getAvoidableRect(n),e.viewportBounds.Re(n)&&(i=!0),0!==(e=e.Nu(n,(function(e){return e.part}),(function(e){return e instanceof xh}),!0,(function(e){return e instanceof xh}),i)).count)for(e=e.iterator;e.next();)!(n=e.value).Td(t)&&n.isAvoiding&&n.bb()}function Un(e,t,n,i){if(null===e.copiedParts){var r=e.diagram;if(!r.isReadOnly&&!r.isModelReadOnly){r.skipsUndoManager=!n,r.partManager.addsToTemporaryLayer=!n,e.startPoint=i.documentPoint,n=r.Kj(t,r,!0);var o=Ie.alloc();r=i=1/0;for(var a=-1/0,s=-1/0,l=t.iterator;l.next();){var c=l.value;if(c.isVisible()){var u=c.location;c=u.x,u=u.y,isNaN(c)||isNaN(u)||(ca&&(a=c),u>s&&(s=u))}}for(1/0===i?o.h(0,0,0,0):o.h(i,r,a-i,s-r),i=o.x+o.width/2,r=o.y+o.height/2,Ie.free(o),o=e.Fr,a=new pe,s=fe.alloc(),l=t.iterator;l.next();)(c=l.value)instanceof xh&&c.canCopy()&&(null!==(u=n.I(c))&&(u.points=c.points,_h(u,o.x-i,o.y-r),u.suspendsRouting=!0,a.add(u,e.Pd())));for(t=t.iterator;t.next();)(c=t.value).Zc()&&c.canCopy()&&(null!==(l=n.I(c))&&(c=c.location,s.h(o.x-(i-c.x),o.y-(r-c.y)),l.location=s,l.Va(),a.add(l,e.Pd(s))));fe.free(s),e.copiedParts=a,An(e,a.Lf()),null!==e.draggedLink&&(t=(n=e.draggedLink).routeBounds,_h(n,e.startPoint.x-(t.x+t.width/2),e.startPoint.y-(t.y+t.height/2))),e.doUpdateCursor(null)}}}wn.className="ToolManager",wn.WheelScroll=kn,wn.WheelZoom=_n,wn.WheelNone=Cn,wn.GestureZoom=Pn,wn.GestureCancel=En,wn.GestureNone=Mn,h(Ln,bn),Ln.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e.isReadOnly&&!e.allowDragOut||!e.allowMove&&!e.allowCopy&&!e.allowDragOut||!e.allowSelect)return!1;var t=e.lastInput;return!(!t.left||e.currentTool!==this&&(!this.isBeyondDragSize()||t.isTouchEvent&&t.timestamp-e.firstInput.timestamp=i&&(i=.1);var r=this,o=t.og(n,i,(function(t){return r.findValidLinkablePort(t,e)}),null,!0);for(i=1/0,t=null,o=o.iterator;o.next();){var a=o.value,s=a.part;if(s instanceof qu){var l=a.ga(rt,fe.alloc()),c=n.x-l.x,u=n.y-l.y;fe.free(l),(l=c*c+u*u)n){if(null!==this.originalLink&&e===this.originalFromNode&&t===this.originalFromPort)return!0;if(null===(t=t.portId)&&(t=""),e.Mo(t).count>=n)return!1}return!0},qn.prototype.isValidTo=function(e,t){if(null===e||null===t)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(null!==e.layer&&!e.layer.allowLink||!0!==t.toLinkable))return!1;var n=t.toMaxLinks;if(1/0>n){if(null!==this.originalLink&&e===this.originalToNode&&t===this.originalToPort)return!0;if(null===(t=t.portId)&&(t=""),e.Sd(t).count>=n)return!1}return!0},qn.prototype.isInSameNode=function(e,t){return null!==e&&null!==t&&(e===t||(e=e.part,t=t.part,null!==e&&e===t))},qn.prototype.isLinked=function(e,t){if(null===e||null===t)return!1;var n=e.part;if(!(n instanceof qu))return!1;null===(e=e.portId)&&(e="");var i=t.part;if(!(i instanceof qu))return!1;for(null===(t=t.portId)&&(t=""),t=i.Sd(t);t.next();)if((i=t.value).fromNode===n&&i.fromPortId===e)return!0;return!1},qn.prototype.isValidLink=function(e,t,n,i){if(!this.isValidFrom(e,t)||!this.isValidTo(n,i)||!(null===t||null===i||(t.fromLinkableSelfNode&&i.toLinkableSelfNode||!this.isInSameNode(t,i))&&(t.fromLinkableDuplicates&&i.toLinkableDuplicates||!this.isLinked(t,i)))||null!==this.originalLink&&(null!==e&&this.isLabelDependentOnLink(e,this.originalLink)||null!==n&&this.isLabelDependentOnLink(n,this.originalLink))||null!==e&&null!==n&&(null===e.data&&null!==n.data||null!==e.data&&null===n.data)||!this.isValidCycle(e,n,this.originalLink))return!1;if(null!==e){var r=e.linkValidation;if(null!==r&&!r(e,t,n,i,this.originalLink))return!1}return!(null!==n&&null!==(r=n.linkValidation)&&!r(e,t,n,i,this.originalLink))&&(null===(r=this.linkValidation)||r(e,t,n,i,this.originalLink))},qn.prototype.isLabelDependentOnLink=function(e,t){if(null===e)return!1;var n=e.labeledLink;if(null===n)return!1;if(n===t)return!0;var i=new Q;return i.add(e),Yn(this,n,t,i)},qn.prototype.isValidCycle=function(e,t,n){if(void 0===n&&(n=null),null===e||null===t)return this.isUnconnectedLinkValid;var i=this.diagram.validCycle;if(i!==Uo){if(i===Yo){if(null!==(i=n||this.temporaryLink)&&!i.isTreeLink)return!0;for(i=t.linksConnected;i.next();){var r=i.value;if(r!==n&&r.isTreeLink&&r.toNode===t)return!1}return!Xn(this,e,t,n,!0)}if(i===Xo){if(null!==(i=n||this.temporaryLink)&&!i.isTreeLink)return!0;for(i=e.linksConnected;i.next();)if((r=i.value)!==n&&r.isTreeLink&&r.fromNode===e)return!1;return!Xn(this,e,t,n,!0)}if(i===Vo)return e===t?e=!0:((i=new Q).add(t),e=Qn(this,i,e,t,n)),!e;if(i===Wo)return!Xn(this,e,t,n,!1);if(i===qo)return e===t?e=!0:((i=new Q).add(t),e=Jn(this,i,e,t,n)),!e}return!0},d.Object.defineProperties(qn.prototype,{portGravity:{get:function(){return this.te},set:function(e){0<=e&&(this.te=e)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(e){this.Ha=e}},linkingCursor:{get:function(){return this.u},set:function(e){this.u=e}},temporaryLink:{get:function(){return this.Ci},set:function(e){this.Ci=e}},temporaryFromNode:{get:function(){return this.Bi},set:function(e){(this.Bi=e)&&(this.j=e.port)}},temporaryFromPort:{get:function(){return this.j},set:function(e){if(null!==this.j){var t=this.j.panel;if(null!==t){var n=t.O.indexOf(this.j);t.mb(n),t.Gb(n,e)}}this.j=e}},temporaryToNode:{get:function(){return this.Di},set:function(e){(this.Di=e)&&(this.o=e.port)}},temporaryToPort:{get:function(){return this.o},set:function(e){if(null!==this.o){var t=this.o.panel;if(null!==t){var n=t.O.indexOf(this.o);t.mb(n),t.Gb(n,e)}}this.o=e}},originalLink:{get:function(){return this.Hb},set:function(e){this.Hb=e}},originalFromNode:{get:function(){return this.hb},set:function(e){this.hb=e}},originalFromPort:{get:function(){return this.ob},set:function(e){this.ob=e}},originalToNode:{get:function(){return this.Oc},set:function(e){this.Oc=e}},originalToPort:{get:function(){return this.Pc},set:function(e){this.Pc=e}},isForwards:{get:function(){return this.ia},set:function(e){this.ia=e}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(e){this.Pf=e}},linkValidation:{get:function(){return this.gj},set:function(e){this.gj=e}},portTargeted:{get:function(){return this.Of},set:function(e){this.Of=e}}}),qn.className="LinkingBaseTool",h(ei,qn),ei.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!(e.isReadOnly||e.isModelReadOnly||!e.allowLink||!e.model.xs()||!e.lastInput.left||e.currentTool!==this&&!this.isBeyondDragSize())&&null!==this.findLinkablePort()},ei.prototype.findLinkablePort=function(){var e=this.diagram,t=this.startObject;if(null===t&&(t=e.ic(e.firstInput.documentPoint,null,null)),null===t)return null;if(!((e=t.part)instanceof qu))return null;var n=this.direction;if(n===ti||n===ni){var i=this.findValidLinkablePort(t,!1);if(null!==i||this.startObject===e&&(i=e.port,this.findValidLinkablePort(i,!1)))return this.isForwards=!0,i}return(n===ti||n===ii)&&(null!==(t=this.findValidLinkablePort(t,!0))||this.startObject===e&&(t=e.port,this.findValidLinkablePort(t,!0)))?(this.isForwards=!1,t):null},ei.prototype.doActivate=function(){var e=this.diagram,t=this.findLinkablePort();null===t?this.stopTool():(this.Ea(this.name),e.isMouseCaptured=!0,e.currentCursor=this.linkingCursor,this.isForwards?(null!==this.temporaryToNode&&(this.temporaryToNode.location=e.lastInput.documentPoint),this.originalFromPort=t,(t=this.originalFromPort.part)instanceof qu&&(this.originalFromNode=t),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(null!==this.temporaryFromNode&&(this.temporaryFromNode.location=e.lastInput.documentPoint),this.originalToPort=t,(t=this.originalToPort.part)instanceof qu&&(this.originalToNode=t),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),e.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),e.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),null!==this.temporaryLink&&(null!==this.temporaryFromNode&&(this.temporaryLink.fromNode=this.temporaryFromNode),null!==this.temporaryToNode&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),e.add(this.temporaryLink)),this.isActive=!0)},ei.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;e.remove(this.temporaryLink),e.remove(this.temporaryFromNode),e.remove(this.temporaryToNode),e.isMouseCaptured=!1,e.currentCursor="",this.stopTransaction()},ei.prototype.doStop=function(){qn.prototype.doStop.call(this),this.startObject=null},ei.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram,t=this.transactionResult=null,n=null,i=null,r=null,o=null;try{var a=this.targetPort=this.findTargetPort(this.isForwards);if(null!==a){var s=a.part;s instanceof qu&&(this.isForwards?(null!==this.originalFromNode&&(t=this.originalFromNode,n=this.originalFromPort),i=s,r=a):(t=s,n=a,null!==this.originalToNode&&(i=this.originalToNode,r=this.originalToPort)))}else this.isForwards?null!==this.originalFromNode&&this.isUnconnectedLinkValid&&(t=this.originalFromNode,n=this.originalFromPort):null!==this.originalToNode&&this.isUnconnectedLinkValid&&(i=this.originalToNode,r=this.originalToPort);null!==t||null!==i?null!==(o=this.insertLink(t,n,i,r))?(null===a&&(this.isForwards?o.defaultToPoint=e.lastInput.documentPoint:o.defaultFromPoint=e.lastInput.documentPoint),e.allowSelect&&(e.R("ChangingSelection",e.selection),e.clearSelection(!0),o.isSelected=!0),this.transactionResult=this.name,e.R("LinkDrawn",o)):this.doNoLink(t,n,i,r):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),o&&e.allowSelect&&e.R("ChangedSelection",e.selection)}}},ei.prototype.isNewTreeLink=function(){var e=this.archetypeLinkData;if(null===e)return!0;if(e instanceof xh)return e.isTreeLink;var t=this.diagram;return null===t||(e=t.partManager.getLinkCategoryForData(e),null===(t=t.partManager.findLinkTemplateForCategory(e))||t.isTreeLink)},ei.prototype.insertLink=function(e,t,n,i){return this.diagram.partManager.insertLink(e,t,n,i)},ei.prototype.doNoLink=function(){},d.Object.defineProperties(ei.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(e){this.V=e}},archetypeLabelNodeData:{get:function(){return this.F},set:function(e){this.F=e}},direction:{get:function(){return this.K},set:function(e){this.K=e}},startObject:{get:function(){return this.Xd},set:function(e){this.Xd=e}}});var ti=new j(ei,"Either",0),ni=new j(ei,"ForwardsOnly",0),ii=new j(ei,"BackwardsOnly",0);function ri(){qn.call(this),this.name="Relinking";var e=new fc;e.figure="Diamond",e.desiredSize=Ce,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=0,this.V=e,(e=new fc).figure="Diamond",e.desiredSize=Ce,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=-1,this.Xd=e,this.F=null,this.Ew=new Ie}function oi(e,t,n,i,r){null!==t?(e.copyPortProperties(t,n,e.temporaryFromNode,e.temporaryFromPort,!1),e.diagram.add(e.temporaryFromNode)):e.diagram.remove(e.temporaryFromNode),null!==i?(e.copyPortProperties(i,r,e.temporaryToNode,e.temporaryToPort,!0),e.diagram.add(e.temporaryToNode)):e.diagram.remove(e.temporaryToNode)}function ai(){bn.call(this),this.name="LinkReshaping";var e=new fc;e.figure="Rectangle",e.desiredSize=_e,e.fill="lightblue",e.stroke="dodgerblue",this.o=e,(e=new fc).figure="Diamond",e.desiredSize=Ce,e.fill="lightblue",e.stroke="dodgerblue",e.cursor="move",this.u=e,this.F=3,this.Ts=this.j=null,this.Fw=new fe,this.Yq=new Y}function si(e,t,n,i,r,o){return o?Math.abs(t.y-n.y)t.firstPickIndex+1&&n=n.x)t=0>=n.y?t+225:1<=n.y?t+135:t+180;else if(1<=n.x)0>=n.y?t+=315:1<=n.y&&(t+=45);else if(0>=n.y)t+=270;else{if(!(1<=n.y))break e;t+=90}0>t?t+=360:360<=t&&(t-=360),e.cursor=22.5>t?"e-resize":67.5>t?"se-resize":112.5>t?"s-resize":157.5>t?"sw-resize":202.5>t?"w-resize":247.5>t?"nw-resize":292.5>t?"n-resize":337.5>t?"ne-resize":"e-resize"}else if(e instanceof El)for(e=e.elements;e.next();)this.updateResizeHandles(e.value,t)},di.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!(e.isReadOnly||!e.allowResize||!e.lastInput.left)&&null!==this.findToolHandleAt(e.firstInput.documentPoint,this.name)},di.prototype.doActivate=function(){var e=this.diagram;null===this.handle&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),null!==this.handle&&(this.adornedObject=this.handle.part.adornedObject,null!==this.adornedObject&&(e.isMouseCaptured=!0,e.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},di.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=e.isMouseCaptured=!1},di.prototype.stopTransaction=function(){var e=this.diagram,t=bn.prototype.stopTransaction.call(this);return t&&null!==e.undoManager.transactionToUndo&&e.undoManager.transactionToUndo.ak(),t},di.prototype.doCancel=function(){null!==this.adornedObject&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},di.prototype.doMouseMove=function(){var e=this.diagram;if(this.isActive){var t=this.rt,n=this.qt,i=this.pt,r=this.adornedObject.qs(e.lastInput.documentPoint,fe.alloc()),o=this.computeReshape();t=this.computeResize(r,this.handle.alignment,t,n,i,o),this.resize(t),e.bd(),fe.free(r)}},di.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){var t=this.rt,n=this.qt,i=this.pt,r=this.adornedObject.qs(e.lastInput.documentPoint,fe.alloc()),o=this.computeReshape();t=this.computeResize(r,this.handle.alignment,t,n,i,o),this.resize(t),fe.free(r),e.Ya(),this.transactionResult=this.name,e.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},di.prototype.resize=function(e){var t=this.diagram,n=this.adornedObject;if(null!==n){if(n.desiredSize=e.size,(e=n.part).Va(),n=n.ga(this.handle.alignment.gv()),e instanceof gh){var i=new Y;if(i.add(e),!this.dragsMembers&&null===e.placeholder){var r=new ka;r.dragsMembers=!1}t.moveParts(i,this.oppositePoint.copy().re(n),!0,r)}else e.location=e.location.copy().re(n).add(this.oppositePoint);t.bd()}},di.prototype.computeResize=function(e,t,n,i,r,o){t.Mc()&&(t=rt);var a=this.adornedObject.naturalBounds,s=a.x,l=a.y,c=a.x+a.width,u=a.y+a.height,h=1;if(!o){h=a.width;var d=a.height;0>=h&&(h=1),0>=d&&(d=1),h=d/h}return d=fe.alloc(),Zt.No(e.x,e.y,s,l,r.width,r.height,d),e=a.copy(),0>=t.x?0>=t.y?(e.x=Math.max(d.x,c-i.width),e.x=Math.min(e.x,c-n.width),e.width=Math.max(c-e.x,n.width),e.y=Math.max(d.y,u-i.height),e.y=Math.min(e.y,u-n.height),e.height=Math.max(u-e.y,n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(h*e.width,i.height),n.height),e.width=e.height/h):(e.width=Math.max(Math.min(e.height/h,i.width),n.width),e.height=h*e.width),e.x=c-e.width,e.y=u-e.height)):1<=t.y?(e.x=Math.max(d.x,c-i.width),e.x=Math.min(e.x,c-n.width),e.width=Math.max(c-e.x,n.width),e.height=Math.max(Math.min(d.y-l,i.height),n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(h*e.width,i.height),n.height),e.width=e.height/h):(e.width=Math.max(Math.min(e.height/h,i.width),n.width),e.height=h*e.width),e.x=c-e.width)):(e.x=Math.max(d.x,c-i.width),e.x=Math.min(e.x,c-n.width),e.width=c-e.x,o||(e.height=Math.max(Math.min(h*e.width,i.height),n.height),e.width=e.height/h,e.y=l+.5*(u-l-e.height))):1<=t.x?0>=t.y?(e.width=Math.max(Math.min(d.x-s,i.width),n.width),e.y=Math.max(d.y,u-i.height),e.y=Math.min(e.y,u-n.height),e.height=Math.max(u-e.y,n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(h*e.width,i.height),n.height),e.width=e.height/h):(e.width=Math.max(Math.min(e.height/h,i.width),n.width),e.height=h*e.width),e.y=u-e.height)):1<=t.y?(e.width=Math.max(Math.min(d.x-s,i.width),n.width),e.height=Math.max(Math.min(d.y-l,i.height),n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(h*e.width,i.height),n.height),e.width=e.height/h):(e.width=Math.max(Math.min(e.height/h,i.width),n.width),e.height=h*e.width))):(e.width=Math.max(Math.min(d.x-s,i.width),n.width),o||(e.height=Math.max(Math.min(h*e.width,i.height),n.height),e.width=e.height/h,e.y=l+.5*(u-l-e.height))):0>=t.y?(e.y=Math.max(d.y,u-i.height),e.y=Math.min(e.y,u-n.height),e.height=u-e.y,o||(e.width=Math.max(Math.min(e.height/h,i.width),n.width),e.height=h*e.width,e.x=s+.5*(c-s-e.width))):1<=t.y&&(e.height=Math.max(Math.min(d.y-l,i.height),n.height),o||(e.width=Math.max(Math.min(e.height/h,i.width),n.width),e.height=h*e.width,e.x=s+.5*(c-s-e.width))),fe.free(d),e},di.prototype.computeReshape=function(){var e=da;return this.adornedObject instanceof fc&&(e=vc(this.adornedObject)),!(e===pa||this.diagram.lastInput.shift)},di.prototype.computeMinSize=function(){var e=this.adornedObject.minSize.copy(),t=this.minSize;return!isNaN(t.width)&&t.width>e.width&&(e.width=t.width),!isNaN(t.height)&&t.height>e.height&&(e.height=t.height),e},di.prototype.computeMaxSize=function(){var e=this.adornedObject.maxSize.copy(),t=this.maxSize;return!isNaN(t.width)&&t.widthn?n+=360:360<=n&&(n-=360),n=Math.round(45*Math.round(n/45));var i=this.handleDistance;return 0===n?t.x=e.naturalBounds.width+i:45===n?(t.x=e.naturalBounds.width+i,t.y=e.naturalBounds.height+i):90===n?t.y=e.naturalBounds.height+i:135===n?(t.x=-i,t.y=e.naturalBounds.height+i):180===n?t.x=-i:225===n?(t.x=-i,t.y=-i):270===n?t.y=-i:315===n&&(t.x=e.naturalBounds.width+i,t.y=-i),e.ga(t)},pi.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new fe(NaN,NaN),this.isActive=e.isMouseCaptured=!1},pi.prototype.stopTransaction=function(){var e=this.diagram,t=bn.prototype.stopTransaction.call(this);return t&&null!==e.undoManager.transactionToUndo&&e.undoManager.transactionToUndo.ak(),t},pi.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},pi.prototype.doMouseMove=function(){var e=this.diagram;this.isActive&&(e=this.computeRotate(e.lastInput.documentPoint),this.rotate(e))},pi.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){e.delaysLayout=!1;var t=this.computeRotate(e.lastInput.documentPoint);this.rotate(t),e.Ya(),this.transactionResult=this.name,e.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},pi.prototype.rotate=function(e){var t=this.adornedObject;if(null!==t){t.angle=e,(t=t.part).Va();var n=t.locationObject,i=t.rotateObject;(n===i||n.rg(i))&&(n=this.Tn.copy(),t.location=n.re(this.rotationPoint).rotate(e-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},pi.prototype.computeRotate=function(e){e=this.rotationPoint.ab(e)-this.handleAngle;var t=this.adornedObject.panel;null!==t&&(e-=t.li()),360<=e?e-=360:0>e&&(e+=360),t=Math.min(Math.abs(this.snapAngleMultiple),180);var n=Math.min(Math.abs(this.snapAngleEpsilon),t/2);return!this.diagram.lastInput.shift&&0t-n&&(e=(Math.floor(e/t)+1)*t)),360<=e?e-=360:0>e&&(e+=360),e},d.Object.defineProperties(pi.prototype,{handleArchetype:{get:function(){return this.o},set:function(e){this.o=e}},handle:{get:function(){return this.j},set:function(e){if(null!==e&&!(e.part instanceof Vu))throw Error("new handle is not in an Adornment: "+e);this.j=e}},adornedObject:{get:function(){return this.ue},set:function(e){if(null!==e&&e.part instanceof Vu)throw Error("new handle must not be in an Adornment: "+e);this.ue=e}},snapAngleMultiple:{get:function(){return this.ia},set:function(e){this.ia=e}},snapAngleEpsilon:{get:function(){return this.V},set:function(e){this.V=e}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(e){this.kr=e.copy()}},handleAngle:{get:function(){return this.u},set:function(e){this.u=e}},handleDistance:{get:function(){return this.F},set:function(e){this.F=e}}}),pi.className="RotatingTool",B("rotatingTool",(function(){return this.findTool("Rotating")}),(function(e){this.gb("Rotating",e,this.mouseDownTools)})),h(fi,bn),fi.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},fi.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},fi.className="ClickSelectingTool",h(gi,bn),gi.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram,t=e.lastInput,n=e.ic(t.documentPoint,(function(e){for(;null!==e.panel&&!e.isActionable;)e=e.panel;return e}));return null!==n&&(!!n.isActionable&&(this.pk=n,e.Ck=e.ic(t.documentPoint,null,null),!0))},gi.prototype.doMouseDown=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;null!==t&&(e.targetObject=t,null!==t.actionDown&&t.actionDown(e,t))}else this.canStart()&&this.doActivate()},gi.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;null!==t&&(e.targetObject=t,null!==t.actionMove&&t.actionMove(e,t))}},gi.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;if(null===t)return;e.targetObject=t,null!==t.actionUp&&t.actionUp(e,t),this.standardMouseClick((function(e){for(;null!==e.panel&&(!e.isActionable||e!==t);)e=e.panel;return e}),(function(e){return e===t}))}this.stopTool()},gi.prototype.doCancel=function(){var e=this.diagram.lastInput,t=this.pk;null!==t&&(e.targetObject=t,null!==t.actionCancel&&t.actionCancel(e,t),this.stopTool())},gi.prototype.doStop=function(){this.pk=null},gi.className="ActionTool",h(mi,bn),mi.prototype.canStart=function(){if(!this.isEnabled||null===this.archetypeNodeData)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(1===e.lastInput.clickCount&&(this.mw=e.lastInput.viewPoint.copy()),2!==e.lastInput.clickCount||this.isBeyondDragSize(this.mw))return!1}else if(1!==e.lastInput.clickCount)return!1;return e.currentTool===this||null===e.Ol(e.lastInput.documentPoint,!0)},mi.prototype.doMouseUp=function(){var e=this.diagram;this.isActive&&this.insertPart(e.lastInput.documentPoint),this.stopTool()},mi.prototype.insertPart=function(e){var t=this.diagram,n=this.archetypeNodeData;if(null===n)return null;var i=null;try{if(t.R("ChangingSelection",t.selection),this.Ea(this.name),n instanceof Su)n.Zc()&&(Wl(n),null!==(i=n.copy())&&t.add(i));else if(null!==n){var r=t.model.copyNodeData(n);C(r)&&(t.model.xf(r),i=t.Lc(r))}if(null!==i){var o=fe.allocAt(e.x,e.y);this.isGridSnapEnabled&&uo(this.diagram,i,e,o),i.location=o,t.allowSelect&&(t.clearSelection(!0),i.isSelected=!0),fe.free(o)}t.Ya(),this.transactionResult=this.name,t.R("PartCreated",i)}finally{this.stopTransaction(),t.R("ChangedSelection",t.selection)}return i},d.Object.defineProperties(mi.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(e){this.Ri=e}},isDoubleClick:{get:function(){return this.o},set:function(e){this.o=e}},isGridSnapEnabled:{get:function(){return this.j},set:function(e){this.j=e}}}),mi.className="ClickCreatingTool",h(vi,bn),vi.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(!e.allowSelect)return!1;var t=e.lastInput;return!(!t.left||e.currentTool!==this&&(!this.isBeyondDragSize()||t.timestamp-e.firstInput.timestampr.right&&(n.x-=i.width+5/t.scale),n.xr.bottom&&(n.y-=i.height+5/t.scale),n.ye.lastInput.clickCount)},Li.prototype.doStart=function(){Ki=this,null!==this.textBlock&&this.doActivate()},Li.prototype.doActivate=function(){if(!this.isActive){var e=this.diagram;if(null!==e){var t=this.textBlock;if(null===t&&(t=e.ic(e.lastInput.documentPoint)),null!==t&&t instanceof Pc&&(this.textBlock=t,null!==t.part)){e.animationManager.Cc(),this.isActive=!0,this.qa=zi;var n=this.defaultTextEditor;null!==t.textEditor&&(n=t.textEditor),this.Zh=this.textBlock.copy();var i=new Ie(this.textBlock.ga(et),this.textBlock.ga(lt));e.tv(i),n.show(t,e,this),this.currentTextEditor=n}}}},Li.prototype.doCancel=function(){this.stopTool()},Li.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Li.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Di)},Li.prototype.acceptText=function(e){switch(e){case Di:this.qa===Zi?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():this.qa!==zi&&this.qa!==Hi&&this.qa!==ji||(this.qa=$i,Ai(this));break;case Ti:case Ii:case Ni:Ii===e&&!0===this.textBlock.isMultiline||this.qa!==zi&&this.qa!==Hi&&this.qa!==ji||(this.qa=$i,Ai(this))}},Li.prototype.doError=function(e,t){var n=this.textBlock;null!==n.errorFunction&&n.errorFunction(this,e,t),(e=this.currentTextEditor)&&e.show(n,this.diagram,this)},Li.prototype.doSuccess=function(e,t){var n=this.textBlock;null!==n.textEdited&&n.textEdited(n,e,t)},Li.prototype.doDeactivate=function(){var e=this.diagram;null!==e&&(this.qa=Fi,null!==this.currentTextEditor&&this.currentTextEditor.hide(e,this),this.textBlock=null,this.isActive=!1)},Li.prototype.doStop=function(){Ki=null},Li.prototype.isValidText=function(e,t,n){var i=this.textValidation;return!(null!==i&&!i(e,t,n))&&!(null!==(i=e.textValidation)&&!i(e,t,n))},Li.prototype.Lx=function(e){var t=this.Zh;return t.text=e,t.measure(this.textBlock.Ih,1/0),t},d.Object.defineProperties(Li.prototype,{textBlock:{get:function(){return this.ia},set:function(e){this.ia=e}},currentTextEditor:{get:function(){return this.o},set:function(e){this.o=e}},defaultTextEditor:{get:function(){return this.j},set:function(e){this.j=e}},starting:{get:function(){return this.V},set:function(e){this.V=e}},textValidation:{get:function(){return this.vj},set:function(e){this.vj=e}},minimumEditorScale:{get:function(){return this.u},set:function(e){this.u=e}},selectsTextOnActivate:{get:function(){return this.F},set:function(e){this.F=e}},state:{get:function(){return this.qa},set:function(e){this.qa!==e&&(this.qa=e)}}}),Li.prototype.measureTemporaryTextBlock=Li.prototype.Lx;var Ti=new j(Li,"LostFocus",0),Di=new j(Li,"MouseDown",1),Ni=new j(Li,"Tab",2),Ii=new j(Li,"Enter",3),Bi=new j(Li,"SingleClick",0),Ri=new j(Li,"SingleClickSelected",1),Oi=new j(Li,"DoubleClick",2),Fi=new j(Li,"StateNone",0),zi=new j(Li,"StateActive",1),ji=new j(Li,"StateEditing",2),$i=new j(Li,"StateValidating",3),Hi=new j(Li,"StateInvalid",4),Zi=new j(Li,"StateValidated",5),Ki=null;function Gi(e){rr||(nr(),rr=!0),this.H=br,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=or,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Q,this.ce=new lr,this.ce.Yd=this,this.Ei=new Q,this.pu=new Q,this.Sr=new Q,this.pr=new Q,e&&Object.assign(this,e)}function Ui(e,t){e.Jd&&e.canStart(t)&&(e.Zd.add(t),e.defaultAnimation.isAnimating&&e.Cc(),Qr(e.H),e.zb=!0)}function Vi(e){if(e.Jd&&e.zb){var t=e.ce,n=e.H,i=e.Zd.contains("Model");i&&(e.Ok=!0,e.Pk===or?(t.isViewportUnconstrained=!0,t.vc.clear(),t.add(n,"position",n.position.copy().offset(0,-200),n.position),t.add(n,"opacity",0,1)):e.Pk===sr&&t.vc.clear(),e.Qw=!(e.Pk!==ar||!n.du.D(n.pa)),n.R("InitialAnimationStarting",e)),i&&!e.Gh||0===t.vc.count?(e.Zd.clear(),e.zb=!1,t.vc.clear(),cr(t,n),e.Ok=!1,n.N()):(e.Zd.clear(),n.kg=!1,i=t.vc.get(n),n.autoScale!==Zo&&null!==i&&(delete i.start.scale,delete i.end.scale),m.requestAnimationFrame((function(){!1===e.zb||t.bc||(n.Gf("temporaryPixelRatio")&&Dr(n),Ir(n),e.zb=!1,t.start(),t.bc&&(Yi(e),n.Ya(),pr(t,0),Xr(n,!0),Xi(e),n.R("AnimationStarting",e)))})))}}function Wi(e){return e.Zd.contains("Trigger")&&1===e.Zd.count}function qi(e,t,n,i){e.isTicking||Wi(e)||t instanceof xh&&(null!==t.fromNode||null!==t.toNode)||e.ce.add(t,"position",n,i,!1)}function Yi(e){if(!e.vq){var t=e.H;e.Ow=t.skipsUndoManager,e.cw=t.skipsModelSourceBindings,t.skipsUndoManager=!0,t.skipsModelSourceBindings=!0,e.vq=!0}}function Xi(e){var t=e.H;t.skipsUndoManager=e.Ow,t.skipsModelSourceBindings=e.cw,e.vq=!1}function Qi(e,t,n){!e.zb||t.D(n)||Wi(e)||(e.H.pi||(t=n.copy()),ur(e.ce,e.H,"position",t,n))}function Ji(e,t,n){t.fd&&(t.Tg=n,e.pr.add(t))}function er(e,t){for(t=t.findLinksConnected();t.next();){var n=t.value;n.fd&&(n.Tg=n.points.copy(),e.pr.add(n))}}function tr(e,t,n,i,r){null===e&&(e=[0,0,0,0]),null===t&&(t=[0,0,0,0]);var o=e[0],a=e[1],s=e[2];e=e[3];var l=t[0],c=t[1],u=t[2];return t=t[3],0===s||100===s?(o=l,a=c):0!==u&&100!==u||(l=o,c=a),180o?o+=360:l+=360),"hsla("+(o=r(n,o,l-o,i)%360)+", "+(a=r(n,a,c-a,i))+"%, "+(s=r(n,s,u-s,i))+"%, "+(n=r(n,e,t-e,i))+")"}function nr(){function e(e,t,n,i,r,o){e.position=new fe(i(r,t.x,n.x-t.x,o),i(r,t.y,n.y-t.y,o))}var t=new pe;t.add("position:diagram",e),t.add("position",e),t.add("position:part",(function(e,t,n,i,r,o){re&&k(e,">= 1",Gi,"duration"),this.Dg=e}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(e){this.Gh=e}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(e){this.Pk=e}}}),Gi.prototype.stopAnimation=Gi.prototype.Cc;var ir=null,rr=!1,or=new j(Gi,"Default",1),ar=new j(Gi,"AnimateLocations",2),sr=new j(Gi,"None",3);function lr(e){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=fr,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=ne,this.vc=new pe,this.Tt=new pe,this.yl=new Q,this.Ut=new Q,this.dw=Qo,e&&Object.assign(this,e)}function cr(e,t){if(e.Tt.clear(),e.Wk=!1,e.au=0,e.Gd=NaN,0e.cn?e.Gd:i-e.Qd;t&&((r=e.gw)e.cn&&(e.ho&&!e.Wk?(e.Qd=+new Date,e.cn=e.Qd+e.Gd,e.Wk=!0):e.Ml(!1))}}}function pr(e,t){for(var n=e.Gd,i=e.vc.iterator,r=e.Wk;i.next();){var o=i.key;if(!(o instanceof Na&&null===o.diagram)){var a=i.value,s=r?a.end:a.start;a=r?a.start:a.end;var l,c=ir;for(l in a)"position"===l&&(a["position:placeholder"]||a["position:nodeCollapse"])||null===c.get(l)||c.get(l)(o,s[l],a[l],e.Lp,t,n,e)}}}function fr(e,t,n,i){return 1>(e/=i/2)?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function gr(e,t,n,i){return e===i?t+n:n*(1-Math.pow(2,-10*e/i))+t}function mr(e,t,n){this.start=e,this.end=t,this.Ku={},this.Hu=n,this.nv=!1}function vr(e,t,n){this.xd=null,this.rf=e,this.so=n||wr,this.uk=null,void 0!==t&&(this.uk=t,void 0===n&&(this.so=xr))}Gi.className="AnimationManager",Gi.defineAnimationEffect=function(e,t){rr||(nr(),rr=!0),ir.add(e,t)},Gi.Default=or,Gi.AnimateLocations=ar,Gi.None=sr,lr.prototype.suspend=function(){this.Xk=!0},lr.prototype.advanceTo=function(e,t){t&&(this.Xk=!1),this.ho&&e>=this.Gd&&(this.Wk=!0,e-=this.Gd),this.gw=e,dr(this,!0),Yi(this.Yd),Xr(this.H),Xi(this.Yd),this.H.redraw()},(t=lr.prototype).start=function(){if(0===this.vc.count||this.bc)return this;for(var e=this.H,t=this.vc.iterator;t.next();){var n=t.key;null===e&&(n instanceof Er?e=n:n instanceof Na&&(e=n.diagram))}return null===e?this:(this.H=e,this.Yd=e.animationManager,!1===(t=this.Yd).isEnabled||(this.Gd=isNaN(this.Dg)?t.duration:this.Dg,this.Lp=this.ot,t.Ok&&t.Pk===or&&this===t.defaultAnimation&&(this.Lp=gr,this.Gd=isNaN(this.Dg)?600===t.duration?900:t.duration:this.Dg),this.dw=e.scrollMode,this.isViewportUnconstrained&&(e.sj=Jo),Yi(t),this.yl.each((function(t){t.data=null,e.add(t)})),Xi(t),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,function(e,t){function n(){if(0this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),cr(this,null),n.Ml(this),t.$b())}},t.Cj=function(e,t){var n=t.actualBounds,i=null;if(t instanceof gh&&(i=t.placeholder),null!==i?(n=i.ga(et),i=i.padding,n.x+=i.left,n.y+=i.top,this.add(e,"position",n,e.position,!1)):this.add(e,"position",new fe(n.x+n.width/2,n.y+n.height/2),e.position,!1),this.add(e,"scale",.01,e.scale,!1),e instanceof gh)for(e=e.memberParts;e.next();)(i=e.value)instanceof qu&&this.Cj(i,t)},t.Aj=function(e,t){if(e.isVisible()){var n=null;if(t instanceof gh&&(n=t.placeholder),null!==n){var i=n.ga(et);n=n.padding,i.x+=n.left,i.y+=n.top,this.add(e,"position:placeholder",e.position,i,!0)}else this.add(e,"position:nodeCollapse",e.position,t,!0);if(this.add(e,"scale",e.scale,.01,!0),(i=this.vc).contains(e)&&(i.I(e).nv=!0),e instanceof gh)for(e=e.memberParts;e.next();)(i=e.value)instanceof qu&&this.Aj(i,t)}},t.Ez=function(e){var t=this.Tt.get(e);return null===t&&(t={},this.Tt.add(e,t)),t},d.Object.defineProperties(lr.prototype,{duration:{get:function(){return this.Dg},set:function(e){1>e&&k(e,">= 1",lr,"duration"),this.Dg=e}},reversible:{get:function(){return this.ho},set:function(e){this.ho=e}},runCount:{get:function(){return this.cu},set:function(e){0=r)return t;if(0>t&&(t=e.indexOf(n)),0>t)return-1;for(var o=t-1,a=NaN;0<=o&&(a=e.M(o).zOrder,isNaN(a));)o--;for(var s=t+1,l=NaN;si)for(;;){if(-1===o||a<=i){if(++o===t)break;return e.mb(t),e.Gb(o,n),o}for(a=NaN;0<=--o&&(a=e.M(o).zOrder,isNaN(a)););}else if(!isNaN(l)&&l=i){if(--s===t)break;return e.mb(t),e.Gb(s,n),s}for(l=NaN;++si&&s.containingGroup===n&&(i=a,0<=t))break}!(0>i)&&ir;r++)t[R("7ca11abfd7330390")](R(i[r-1]),10,15*r);for(t[n]=R("39f046ebb36e4b"),n=1;5>n;n++)t[R("7ca11abfd7330390")](R(i[n-1]),10,15*n);4===i.length&&"5"===i[0][0]&&"7"===i[3][0]||($t.prototype.Cd=$t.prototype.Eu),aa=e}}(),sa=!0),J(this),br=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,jo){var n=this,i=function(){n.removeEventListener(m.document,"DOMContentLoaded",i,!1),n.setRTL()};null!==m.document.body?this.setRTL():n.addEventListener(m.document,"DOMContentLoaded",i,!1)}this.ol=null,Fo.add("Model",Qd);var r=this;return this.Hb=function(e){var t=r.partManager;if(e.model===t.diagram.model&&t.diagram.aa){t.diagram.aa=!1;try{var n=e.change;""===e.modelChange&&n===pn&&t.updateDataBindings(e.object,e.propertyName)}finally{t.diagram.aa=!0}}},this.Oc=function(e){r.partManager.doModelChanged(e)},this.hu=this.ku=null,Mr(this),this.model=Ip(),this.Wg=!0,Br(this),this.layout=new Td,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new la,void 0!==e&&("string"==typeof e||m.Element&&e instanceof Element?Tr(this,e):t=e),this.vb=!1,t&&this.nm(t),this}function Mr(e){e.Yd=new Gi,e.Yd.Xe(e),e.Db=17,e.Gw=!1,e.tn=!1,e.bu="default",e.Wa=new Y,e.pj=new pe,e.nl="default",e.Tx(),e.Sx(),e.pb=1,e.pa=new fe(NaN,NaN).freeze(),e.du=new fe(NaN,NaN),e.Ca=1,e.Pp=1,e.zt=new fe(NaN,NaN).freeze(),e.At=NaN,e.Ot=1e-4,e.Mt=100,e.Ab=new $t,e.zu=new fe(NaN,NaN).freeze(),e.ut=new Ie(NaN,NaN,NaN,NaN).freeze(),e.rj=new We(0,0,0,0).freeze(),e.sj=Qo,e.nu=!1,e.Zt=null,e.fu=null,e.yh=Zo,e.zk=_t,e.Fg=Zo,e.pq=_t,e.yt=et,e.Bt=et,e.Fc=!0,e.pn=!1,e.De=new Q,e.Eh=new pe,e.Xm=!0,e.vp=250,e.vk=-1,e.xp=new We(16,16,16,16).freeze(),e.kg=!1,e.Jk=!1,e.fn=!0,e.bq=new cn,e.bq.diagram=e,e.Qg=new cn,e.Qg.diagram=e,e.cj=new cn,e.cj.diagram=e,e.zg=null,e.pf=null,e.qu=!1,function(e){function t(e){var t=e.toLowerCase(),r=new Y;n.add(e,r),n.add(t,r),i.add(e,e),i.add(t,e)}var n=new pe,i=new pe;t("InitialAnimationStarting"),t("AnimationStarting"),t("AnimationFinished"),t("BackgroundSingleClicked"),t("BackgroundDoubleClicked"),t("BackgroundContextClicked"),t("ClipboardChanged"),t("ClipboardPasted"),t("DocumentBoundsChanged"),t("ExternalObjectsDropped"),t("GainedFocus"),t("InitialLayoutCompleted"),t("LayoutCompleted"),t("LinkDrawn"),t("LinkRelinked"),t("LinkReshaped"),t("LostFocus"),t("Modified"),t("ObjectSingleClicked"),t("ObjectDoubleClicked"),t("ObjectContextClicked"),t("PartCreated"),t("PartResized"),t("PartRotated"),t("SelectionMoved"),t("SelectionCopied"),t("SelectionDeleting"),t("SelectionDeleted"),t("SelectionGrouped"),t("SelectionUngrouped"),t("ChangingSelection"),t("ChangedSelection"),t("SubGraphCollapsed"),t("SubGraphExpanded"),t("TextEdited"),t("TreeCollapsed"),t("TreeExpanded"),t("ViewportBoundsChanged"),t("InvalidateDraw"),e.iw=n,e.hw=i}(e),e.ai=new Q,e.Ht=!0,e.uu=ea,e.pw=!1,e.wu=Uo,e.it="auto",e.Op="auto",e.zh=null,e.Fh=null,e.Bh=null,e.Qh=null,e.Oh=null,e.Nh=null,e.Qt=null,e.Lh=null,e.xt=!1,e.Mh=null,e.Ph=null,e.$h=null,e.Ch=null,e.Rt=!1,e.Yt={},e.oj=[null,null],e.Wg=!1,e.Iw=!1,e.ou=!1,e.lt=!1,e.rw=!0,e.ld=!1,e.$i=!1,e.Tw=!0,e.Ce=-2,e.Og=new pe,e.Xn=new Y,e.Gg=!1,e.Jd=!0,e.Us=!0,e.Fi=!0,e.Gi=!0,e.Vs=!1,e.Ws=!0,e.Pi=!0,e.Hi=!0,e.Qi=!0,e.Ys=!0,e.Ii=!0,e.Ki=!0,e.Ji=!0,e.Li=!0,e.Mi=!0,e.Ni=!0,e.Oi=!0,e.Zs=!0,e.at=!0,e.qw=!1,e.Vk=!1,e.mn=!0,e.nn=!0,e.Xs=!0,e.$s=!0,e.iu=16,e.mu=16,e.qr=!1,e.gu=!1,e.lu=0,e.ju=0,e.yb=new We(5).freeze(),e.Hw=(new Q).freeze(),e.Nt=999999999,e.nw=(new Q).freeze(),e.Zi=!0,e.Ee=!0,e.vd=!0,e.Be=!1,e.gf=!1,e.xh=!0,e.hf=!1,e.sy=new Q,e.ow=new Q,e.Xh=null,e.aw=new Ae(8,8),e.bw=999,e.Bw=1,e.Jw=0,e.fc={scale:1,position:new fe,bounds:new Ie,Py:new Ae,bA:new Ae,Oz:!1},e.fc.canvasSize=e.fc.Py,e.fc.newCanvasSize=e.fc.bA,e.fc.isScroll=!1,e.Rw=new Ie(NaN,NaN,NaN,NaN).freeze(),e.wo=new Ae(NaN,NaN).freeze(),e.Sp=new Ie(NaN,NaN,NaN,NaN).freeze(),e.It=!1,e.Lg=new pe;var t=new qu,n=new Pc;n.bind(new $p("text","",N)),t.add(n),e.ny=t,e.Lg.add("",t),t=new qu,(n=new Pc).stroke="brown",n.bind(new $p("text","",N)),t.add(n),e.Lg.add("Comment",t),(t=new qu).selectable=!1,t.avoidable=!1,(n=new fc).figure="Ellipse",n.fill="black",n.stroke=null,n.desiredSize=new Ae(3,3).ja(),t.add(n),e.Lg.add("LinkLabel",t),e.Yi=new pe,(t=new gh).selectionObjectName="GROUPPANEL",t.type=El.Vertical,(n=new Pc).font="bold 12pt sans-serif",n.bind(new $p("text","",N)),t.add(n),(n=new El(El.Auto)).name="GROUPPANEL";var i=new fc;i.figure="Rectangle",i.fill="rgba(128,128,128,0.2)",i.stroke="black",n.add(i),(i=new wh).padding=new We(5,5,5,5).ja(),n.add(i),t.add(n),e.ly=t,e.Yi.add("",t),e.Kh=new pe,t=new xh,(n=new fc).isPanelMain=!0,t.add(n),(n=new fc).toArrow="Standard",n.fill="black",n.stroke=null,n.strokeWidth=0,t.add(n),e.my=t,e.Kh.add("",t),t=new xh,(n=new fc).isPanelMain=!0,n.stroke="brown",t.add(n),e.Kh.add("Comment",t),(t=new Vu).type=El.Auto,(n=new fc).fill=null,n.stroke="dodgerblue",n.strokeWidth=3,t.add(n),(n=new wh).margin=new We(1.5,1.5,1.5,1.5).ja(),t.add(n),e.St=t,e.wt=t,(t=new Vu).type=El.Link,(n=new fc).isPanelMain=!0,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,t.add(n),e.Kt=t,e.fe=null,e.mq=!1,e.Ck=null,e.partManager=new Qd,e.toolManager=new wn,e.toolManager.initializeStandardTools(),e.defaultTool=e.toolManager,e.currentTool=e.defaultTool,e.nt=null,e.Wm=new ka,e.Vt=null,e.Wt=null,e.Mr=!1,e.commandHandler=Ar(),e.eq=null,e.fq=ae,e.Pw=!1,e.Mb=1,e.Yh=null,e.Oq=1,e.Sq=0,e.zw=[0,0,0,0,0],e.Tq=0,e.yq=1,e.tw=0,e.uw=new fe,e.zy=500,e.wp=new fe,e.wq=!1}function Lr(e,t){e.animationManager.Cc(!0),e.Hw=(new Q).freeze(),e.nw=(new Q).freeze();var n=e.skipsUndoManager,i=null!==e.cc&&void 0!==e.cc;i&&(e.skipsUndoManager=!0);var r=null;null!==e.fe&&(null!==(r=e.fe.part)&&e.remove(r));var o=[],a=e.Wa.length;if(t){for(t=0;tMath.abs(t.deltaY)?-i:-r):void 0!==t.wheelDeltaX?(0!==t.wheelDeltaX&&(i=0Math.abs(t.wheelDeltaY)?-i:-r):void 0!==t.wheelDelta&&0!==t.wheelDelta&&(n.delta=0n||Math.abs(r.y-t.screenY)>n)?e.yq++:e.yq=1,i.clickCount=e.yq,e.tw=t.timeStamp,e.uw.sg(t.screenX,t.screenY),e.doMouseDown(),1===t.button?t.preventDefault():Vr(i,t)}},e.dk=function(t){if(e.isEnabled){e.Vk=!0;var n=e.oj;if(null===n[0]||n[0].pointerId!==t.pointerId&&n[0].pointerType===t.pointerType){if(null!==n[1]&&n[1].pointerId===t.pointerId)return void(n[1]=t);if(null!==n[0])return;n[0]=t}else n[0]=t;if(n[0].pointerId===t.pointerId){n=Ur(e,t,!1,!1,!1,null!==n[1]);var i=m.document.elementFromPoint(t.clientX,t.clientY)||null;null!==i&&void 0!==i.shadowRoot&&null!==i.shadowRoot&&(i=i.shadowRoot.elementFromPoint(t.clientX,t.clientY));var r=e,o=t;i&&i.H&&(o=t,r=i.H),n.targetDiagram=r,Wr(e,o,n),n.targetObject=null,e.doMouseMove(),Vr(n,t)}}},e.fk=function(t){if(e.isEnabled){e.Vk=!0;var n="touch"===t.pointerType||"pen"===t.pointerType,i=e.Yt;if(n&&e.qu)delete i[t.pointerId],t.preventDefault();else if(null===(i=e.oj)[0]||i[0].pointerId!==t.pointerId&&i[0].pointerType===t.pointerType)null!==i[1]&&i[1].pointerId===t.pointerId&&(i[1]=null);else{i[0]=null,i=Ur(e,t,!1,!0,!0,!1);var r=m.document.elementFromPoint(t.clientX,t.clientY)||null;null!==r&&void 0!==r.shadowRoot&&null!==r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(t.clientX,t.clientY)),null!==r&&r.H instanceof Er&&r.H!==e&&Wr(r.H,t,i),null===r&&(r=t.target),Wr(e,t,i),i.clickCount=e.yq,i.targetDiagram=Gr(t,r),i.targetObject=null,e.doMouseUp(),Vr(i,t),n&&(e.wq=!1)}}},e.ek=function(t){if(e.isEnabled){e.Vk=!1;var n=e.Yt;n[t.pointerId]&&delete n[t.pointerId],null!==(n=e.oj)[0]&&n[0].pointerId===t.pointerId&&(n[0]=null),null!==n[1]&&n[1].pointerId===t.pointerId&&(n[1]=null),"touch"!==t.pointerType&&"pen"!==t.pointerType&&((t=e.currentTool).cancelWaitAfter(),t.standardMouseOver())}},e.ck=function(t){var n=e.oj;null!==n[0]&&n[0].pointerId===t.pointerId?(n[0]=null,e.wq=!1):null!==n[1]&&n[1].pointerId===t.pointerId&&(n[1]=null)},e.Vp=i.Z["d"+xa[1]+xa[2]+"wI"+oa.slice(1,5)]["b"+Zp.slice(1,t)](i.Z,aa,t,t),i.Vc(!0),function(e){var t=e.ta.Oa;t instanceof HTMLCanvasElement||(t=e.div),e.addEventListener(t,"pointerdown",e.ui,!1),e.addEventListener(t,"pointermove",e.dk,!1),e.addEventListener(t,"pointerup",e.fk,!1),e.addEventListener(t,"pointerout",e.ek,!1),e.addEventListener(t,"pointercancel",e.ck,!1),e.addEventListener(t,"pointerenter",e.bz,!1),e.addEventListener(t,"pointerleave",e.cz,!1),e.addEventListener(t,"wheel",e.$j,!1),e.addEventListener(t,"keydown",e.Qz,!1),e.addEventListener(t,"keyup",e.Rz,!1),e.addEventListener(t,"blur",e.Ny,!1),e.addEventListener(t,"focus",e.Oy,!1),e.addEventListener(t,"selectstart",(function(e){return e.preventDefault(),!1}),!1),e.addEventListener(t,"contextmenu",(function(e){return e.preventDefault(),!1}),!1),e.addEventListener(m,"resize",e.Ov,!1)}(e),"svg"===e.nl&&(t=e.pj.get("svg"),e.Ka.appendChild(t.Oa),e.ib=t.context)}}function Dr(e){30n&&(t=n),te.maxScale&&(t=e.maxScale),t):t===Go?((t=l>s?(a-e.Db)/i:(o-e.Db)/r)>n&&(t=n),te.maxScale&&(t=e.maxScale),t):e.scale}function Hr(e,t,n,i,r,o){var a=fe.allocAt(e.pa.x,e.pa.y),s=a.x,l=a.y;if(null!==e.eq){var c=fe.alloc();s=(c=e.eq.ga(et,c)).x-e.fq.x/e.scale,l=c.y-e.fq.y/e.scale,r=Je,fe.free(c)}(o||e.scrollMode===Qo)&&(r.sb()&&(n>t.width&&(s=t.x+(r.x*t.width+r.offsetX)-(r.x*n-r.offsetX)),i>t.height&&(l=t.y+(r.y*t.height+r.offsetY)-(r.y*i-r.offsetY))),r=e.rj,o=n-t.width,nt.left?s=t.left:st.top?l=t.top:lt;t++){var n=e.De.iterator;if(null===n||0===e.De.count)break;e.De=new Q,e.Nv(n,e.De)}e.nodes.each((function(e){e instanceof gh&&0!=(65536&e.U)!=!1&&(e.U=65536^e.U)}))}}function Jr(e,t){for(var n=A(),i=A(),r=t.memberParts;r.next();){var o=r.value;o.isVisible()&&(o instanceof gh?(ts(o)||is(o)||Ru(o))&&Jr(e,o):o instanceof xh?o.fromNode===t||o.toNode===t?i.push(o):n.push(o):(o.measure(1/0,1/0),o.arrange()))}for(e=n.length,r=0;rx&&(v=k.left,y=k.right),m.height>S&&(b=k.top,w=k.bottom)):(v=k.left,y=k.right,b=k.top,w=k.bottom);var _=m.width+v+y,C=m.height+b+w,P=_>l/(k=e.scale),E=C>c/k;if(!(o||e.gf||e.Be||P||E))return!0;v=m.x-v,l=u.x,y=m.right+y,c=u.right+a,b=m.y-b;var M=u.y;m=m.bottom+w,u=u.bottom+s;var L="1px";if(w="1px",e.scrollMode===Qo&&(P||E)&&(P&&e.hasHorizontalScrollbar&&e.allowHorizontalScroll&&(P=1,v+1c+1&&(P=Math.max((y-c)*k+e.Aa,P)),x+a+1<_&&(P=Math.max((_-x)*k+e.Aa,P)),L=P.toString()+"px"),E&&e.hasVerticalScrollbar&&e.allowVerticalScroll&&(P=1,b+1u+1&&(P=Math.max((m-u)*k+e.ya,P)),S+s+1c+1&&(a=Math.max((y-c)*k+e.Aa,a)),x+1<_&&(a=Math.max((_-x)*k+e.Aa,a)),L=a.toString()+"px"),P="1px"!==L,a=e.ya,P!==e.Be&&(a=P?e.ya-e.Db:e.ya+e.Db),Cu+1&&(s=Math.max((m-u)*k+a,s)),S+1c+1&&(t=e.position.x*k)),e.tn)switch(e.bu){case"negative":t=-(f.scrollWidth-t-f.clientWidth);break;case"reverse":t=f.scrollWidth-t-f.clientWidth}return f.scrollLeft=t,e.hasVerticalScrollbar&&e.allowVerticalScroll&&(S+1u+1&&(f.scrollTop=e.position.y*k)),l=e.Aa,c=e.ya,f.style.width=l+(e.gf?e.Db:0)+"px",f.style.height=c+(e.Be?e.Db:0)+"px",n===l&&i===c&&!e.animationManager.zb||(n=Ie.allocAt(r,h,d,p),e.onViewportBoundsChanged(n,e.viewportBounds,k,o),Ie.free(n),!1)}function ao(e,t,n){var i=t.layer;null!==i&&i.diagram===e&&(t.isSelected=!1,t.isHighlighted=!1,t.C(2),n&&t.Lj(),0<=(n=i.pc(-1,t,!1))&&e.cb(gn,"parts",i,t,null,n,null),null!==(e=t.layerChanged)&&e(t,i,null))}function so(e,t,n,i,r,o){if(!t.contains(n)&&(void 0===o&&(o=!1),!i||o||n.canMove()||n.canCopy()))if(void 0===r&&(r=co(e)),n instanceof qu){if(t.add(n,e.Pd(r,n,n.location)),n instanceof gh&&(null!==n.placeholder||r.dragsMembers))for(o=n.memberParts;o.next();)so(e,t,o.value,i,r,r.groupsAlwaysMove);for(o=n.linksConnected;o.next();){var a=o.value;if(!t.contains(a)){var s=a.fromNode,l=a.toNode;null!==s&&t.contains(s)&&null!==l&&t.contains(l)&&so(e,t,a,i,r)}}if(r.dragsTree)for(n=n.Ou();n.next();)so(e,t,n.value,i,r)}else if(n instanceof xh)for(t.add(n,e.Pd(r,n)),n=n.labelNodes;n.next();)so(e,t,n.value,i,r);else n instanceof Vu||t.add(n,e.Pd(r,n,n.location))}function lo(e,t,n,i,r){if(null!==t&&0!==t.count){var o=fe.alloc(),a=fe.alloc();a.assign(n),isNaN(a.x)&&(a.x=0),isNaN(a.y)&&(a.y=0),(n=e.Mr)||ho(e,t);for(var s=A(),l=A(),c=t.iterator,u=fe.alloc();c.next();){var h=c.key,d=c.value;if(h.Zc()){var p=fo(e,h,t);null!==p?s.push(new Sa(h,d,p)):r&&!h.canMove()||(p=d.point,o.assign(p),e.computeMove(h,o.add(a),i,u),h.location=u,void 0===d.shifted&&(d.shifted=new fe),d.shifted.assign(u.re(p)))}else c.key instanceof xh&&l.push(c.sa)}for(fe.free(u),r=s.length,c=0;ce.maxScale&&(n=e.maxScale),o=fe.allocAt(e.pa.x+s/t-s/n,e.pa.y+l/t-l/n),e.position=o,fe.free(o),e.Ca=n,So(e),e.vb=!1,e.onViewportBoundsChanged(r,e.viewportBounds,t,!1),jr(e,!1),i.zb&&(Wi(i)||i.ce.add(i.H,"scale",t,e.Ca))}}function vo(e,t){var n=e.fe;if(null!==n&&n.visible){for(var i=Ae.alloc(),r=1,o=1,a=n.O.s,s=a.length,l=0;lu||(Dl(c.figure)?o=o*u/Zt.vx(o,u):r=r*u/Zt.vx(r,u))}if(a=n.gridCellSize,i.h(o*a.width,r*a.height),void 0!==t)r=t.width,o=t.height,e=t.x,a=t.y;else{if(t=Ie.alloc(),e=e.viewportBounds,t.h(e.x,e.y,e.width,e.height),!t.w())return void Ie.free(t);r=t.width,o=t.height,e=t.x,a=t.y,Ie.free(t)}n.width=r+2*i.width,n.height=o+2*i.height,t=fe.alloc(),Zt.No(e,a,0,0,i.width,i.height,t),t.offset(-i.width,-i.height),Ae.free(i),n.part.location=t,fe.free(t)}}function yo(e){var t=e.isModified;e.Tw!==t&&(e.Tw=t,e.R("Modified"))}function bo(e,t){for(var n=(t=t.O.s).length,i=0;i=i&&!o.defaultAnimation.isAnimating&&!o.zb&&(t||Ui(o,"Layout")),e.xh=!1;for(var a=e.ai.iterator;a.next();)Eo(e,a.value,t,i);r.isValidLayout||(!t||r.isRealtime||null===r.isRealtime||0===i?(r.doLayout(e),Qr(e),r.isValidLayout=!0):e.xh=!0)}finally{t=e.undoManager.isInternalTransaction,0===i&&(e.eb("Layout"),e.undoManager.isInternalTransaction=!1),!t||0!==i&&1!==i||Vi(o),e.aa=n}}}function Eo(e,t,n,i){if(null!==t){for(var r=t.gl.iterator;r.next();)Eo(e,r.value,n,i);null===(r=t.layout)||r.isValidLayout||(!n||r.isRealtime||0===i?(t.rh=!t.location.w(),r.doLayout(t),t.C(32),Jr(e,t),r.isValidLayout=!0):e.xh=!0)}}function Mo(e,t){var n=e.hw.I(t);return null!==n?n:e.hw.I(t.toLowerCase())}function Lo(e,t){var n=e.iw.I(t);return null!==n||null!==(n=e.iw.I(t.toLowerCase()))?n:void x("Unknown DiagramEvent name: "+t)}function Ao(e){if(e.animationManager.isTicking)return!1;var t=e.currentTool;return t!==e.toolManager.findTool("Dragging")||(!e.Mr||t.isComplexRoutingRealtime)}function To(e,t,n,i){var r=e.Xh;if(null===r&&(e.Xh=r=new pd(e.avoidanceCellSize)),r.vs||r.group!==n||r.Yx!==i){if(r.Hx=Math.max(r.Os+1,Math.floor(e.avoidanceLimit/e.avoidanceCellSize.width)),r.Ix=Math.max(r.Os+1,Math.floor(e.avoidanceLimit/e.avoidanceCellSize.height)),null!==n&&(n=Do(e,n)),null===n){t=Ie.alloc(),e.computeOccupiedArea(t),t.Bc(100,100),r.initialize(t);for(var o=e.nodes;o.next();){var a=o.value,s=a.layer;null!==s&&s.visible&&!s.isTemporary&&No(e,a,i,t)}Ie.free(t)}else{for(0l?t(n,r,s):m.requestAnimationFrame(i)}for(var r=n.callback,o=!0,a=e.Og.iterator;a.next();)if(!a.value[0].al){o=!1;break}if("function"!=typeof r||o)return t(n,r,e);var s=e,l=n.callbackTimeout||300,c=+new Date;return m.requestAnimationFrame((function(){i()})),null}function Oo(e,t,n,i){if(e.animationManager.Cc(),e.bd(),null===e.ta)return null;"object"!=typeof t&&x("properties argument must be an Object.");var r=t.size||null,o=t.scale||null;void 0!==t.scale&&isNaN(t.scale)&&(o="NaN");var a=t.maxSize;void 0===t.maxSize&&(a="SVG"===n?new Ae(1/0,1/0):new Ae(2e3,2e3));var s=t.position||null,l=t.parts||null,c=void 0===t.padding?1:t.padding,u=t.background||null,h=t.omitTemporary;void 0===h&&(h=!0);var d=t.document||document,p=t.elementFinished||null,f=t.showTemporary;void 0===f&&(f=!h),void 0===(t=t.showGrid)&&(t=f),null!==r&&isNaN(r.width)&&isNaN(r.height)&&(r=null),"number"==typeof c?c=new We(c):c instanceof We||x("MakeImage padding must be a Margin or a number."),c.left=Math.max(c.left,0),c.right=Math.max(c.right,0),c.top=Math.max(c.top,0),c.bottom=Math.max(c.bottom,0),e.ib.Vc(!0);var g=(h=new Ds(null,d,void 0,!0)).context;if(!(r||o||l||s))return h.width=e.Aa+Math.ceil(c.left+c.right),h.height=e.ya+Math.ceil(c.top+c.bottom),"SVG"===n?null===i?null:(i.resize(h.width,h.height,h.width,h.height),i.ownerDocument=d,i.hs=p,eo(e,i.context,c,new Ae(h.width,h.height),e.Ca,e.pa,l,u,f,t),i.context):(e.Xm=!1,eo(e,g,c,new Ae(h.width,h.height),e.Ca,e.pa,l,u,f,t),e.Xm=!0,h.context);var m=e.Pp,v=e.documentBounds.copy();if(v.Fv(e.yb),f)for(var y=e.Wa.s,b=y.length,w=0;wm?(o=m,r=v.width,v=v.height):(r=a.width,v=a.height):(r=v.width*o,v=v.height*o):(o=m,r=v.width,v=v.height),null!==c?(r+=s,v+=b):c=new We(0),null!==a&&(m=a.width,a=a.height,isNaN(m)&&(m=2e3),isNaN(a)&&(a=2e3),isFinite(m)&&(r=Math.min(r,m)),isFinite(a)&&(v=Math.min(v,a))),h.width=Math.ceil(r),h.height=Math.ceil(v),"SVG"===n?null===i?null:(i.resize(h.width,h.height,h.width,h.height),i.ownerDocument=d,i.hs=p,eo(e,i.context,c,new Ae(Math.ceil(r),Math.ceil(v)),o,y,l,u,f,t),i.context):(e.Xm=!1,eo(e,g,c,new Ae(Math.ceil(r),Math.ceil(v)),o,y,l,u,f,t),e.Xm=!0,h.context)}vr.className="AnimationTrigger",vr.Default=wr,vr.Immediate=xr,vr.Bundled=Sr,(t=kr.prototype).clear=function(){for(var e=this.Pa,t=0;t=e)return t;for(var n=0,i=0,r=0,o=0,a=0,s=this.Pa.iterator;s.next();){var l=s.value;l instanceof gh?r++:l instanceof qu?i++:l instanceof xh?o++:l instanceof Vu?a++:n++}if(s="",0n.Oq||s.height*r>n.Oq?t.gc(e,n):(r=t.actualBounds,o=t.naturalBounds,0===r.width||0===r.height||isNaN(r.x)||isNaN(r.y)||!t.isVisible()||(n=t.transform,null!==t.areaBackground&&(Ka(t,e,t.areaBackground,!0,!0,o,r),e.fillRect(r.x,r.y,r.width,r.height)),null===t.areaBackground&&null===t.background&&(Ka(t,e,"rgba(0,0,0,0.3)",!0,!1,o,r),e.fillRect(r.x,r.y,r.width,r.height)),null!==t.background&&(e.transform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),Ka(t,e,t.background,!0,!1,o,r),e.fillRect(0,0,o.width/2,o.height/2),n.ws()||(t=1/(n.m11*n.m22-n.m12*n.m21),e.transform(n.m22*t,-n.m12*t,-n.m21*t,n.m11*t,t*(n.m21*n.dy-n.m22*n.dx),t*(n.m12*n.dx-n.m11*n.dy)))))),i&&(e.restore(),e.Vc(!0))}},t.g=function(e,t,n,i,r){var o=this.diagram;null!==o&&o.cb(pn,e,this,t,n,i,r)},t.oi=function(e,t,n){var i=this.Pa;if(t.Ig=this,null===this&&Za(t),e>=i.count)e=i.count;else if(i.M(e)===t)return-1;return i.Gb(e,t),t.Vo(n),null!==(i=this.diagram)&&(n?i.N():i.oi(t)),Pr(this,e,t),e},t.pc=function(e,t,n){if(!n&&t.layer!==this&&null!==t.layer)return t.layer.pc(e,t,n);var i=this.Pa;if(0>e||e>=i.length){if(0>(e=i.indexOf(t)))return-1}else if(i.M(e)!==t&&0>(e=i.indexOf(t)))return-1;return t.Wo(n),i.mb(e),null!==(i=this.diagram)&&(n?i.N():i.pc(t)),t.Ig=null,Za(t),e},d.Object.defineProperties(kr.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(e){var t=this.xa;if(t!==e){var n=this.diagram;if(null!==n)for(""===t&&x("Cannot rename default Layer to: "+e),n=n.layers;n.next();)n.value.name===e&&x("Layer.name is already present in this diagram: "+e);for(this.xa=e,this.g("name",t,e),e=this.Pa.iterator;e.next();)e.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1=e)return t;for(var n=this.Wa.iterator;n.next();)t+="\n "+n.value.toString(e-1);return t},Er.prototype.addEventListener=function(e,t,n,i){e.addEventListener(t,n,{capture:i,passive:!1})},Er.prototype.removeEventListener=function(e,t,n,i){e.removeEventListener(t,n,{capture:i})},Er.prototype.computePixelRatio=function(){return null!==this.Yh?this.Yh:m.devicePixelRatio||1},Er.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Er.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Er.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Er.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Er.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Er.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Er.prototype.doFocus=function(){this.focus()},Er.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var e=m.scrollX||m.pageXOffset,t=m.scrollY||m.pageYOffset;this.ta.focus(),m.scrollTo(e,t)}},Er.prototype.Oy=function(){this.H.R("GainedFocus")},Er.prototype.Ny=function(){this.H.R("LostFocus")},Er.prototype.kx=function(e){if(null!==this.ta){var t=this.ku,n=this.hu;this.qr=!0;var i=this.documentBounds,r=this.viewportBounds,o=this.rj,a=i.x-o.left,s=i.y-o.top,l=i.width+o.left+o.right,c=i.height+o.top+o.bottom,u=i.right+o.right;o=i.bottom+o.bottom;var h=r.x;i=r.y;var d=r.width,p=r.height,f=r.right,g=r.bottom;r=this.scale;var m=e.scrollLeft;if(this.tn)switch(this.bu){case"negative":m=m+e.scrollWidth-e.clientWidth;break;case"reverse":m=e.scrollWidth-m-e.clientWidth}var v=m;df&&(this.position=m.h(-(t.scrollWidth-this.Aa)+v-this.Aa/r+u,this.position.y))),e.vy&&this.allowVerticalScroll&&(sg&&(this.position=m.h(this.position.x,-(t.scrollHeight-this.ya)+e.scrollTop-this.ya/r+o))),fe.free(m),this.vd=!0,this.Ee=this.qr=!1,i=this.documentBounds,r=this.viewportBounds,u=i.right,f=r.right,o=i.bottom,g=r.bottom,a=i.x,h=r.x,s=i.y,i=r.y,d>=l&&a>=h&&u<=f&&(n.style.width="1px"),p>=c&&s>=i&&o<=g&&(n.style.height="1px"))}},Er.prototype.computeBounds=function(e){return void 0===e&&(e=new Ie),Qr(this),zr(this,e)},Er.prototype.computePartsBounds=function(e,t){void 0===t&&(t=!1);var n=null;if(P(e))for(var i=0;ir/n?(o-(this.Be?this.Db:0))/i:(r-(this.gf?this.Db:0))/n:Math.min(o/i,r/n)}this.scale=r,this.position=new fe(e.x,e.y)}},t.Jy=function(e,t){this.Va();var n=this.documentBounds,i=this.viewportBounds;this.position=new fe(n.x+(e.x*n.width+e.offsetX)-(t.x*i.width-t.offsetX),n.y+(e.y*n.height+e.offsetY)-(t.y*i.height-t.offsetY))},t.zz=function(e){if(e instanceof Na){this.eq=e;var t=fe.alloc();this.fq=this.op(e.ga(et,t)),fe.free(t)}else this.eq=null,this.fq=ae},t.Ol=function(e,t){if(void 0===t&&(t=!0),t){if((e=Zr(this,e,(function(e){return e.part}),(function(e){return e.canSelect()})))instanceof Su)return e}else if((e=Zr(this,e,(function(e){return e.part})))instanceof Su)return e;return null},t.ic=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null),Qr(this);for(var i=this.Wa.iteratorBackwards;i.next();){var r=i.value;if(r.visible&&null!==(r=r.ic(e,t,n)))return r}return null},t.lz=function(e,t,n){return void 0===t&&(t=!0),function(e,t,n,i,r){for(void 0===n&&(n=null),void 0===i&&(i=null),r instanceof Y||r instanceof Q||(r=new Q),Qr(e),e=e.Wa.iteratorBackwards;e.next();){var o=e.value;o.visible&&!o.isTemporary&&o.ji(t,n,i,r)}return r}(this,e,(function(e){return e.part}),t?function(e){return e instanceof Su&&e.canSelect()}:null,n)},t.ji=function(e,t,n,i){void 0===t&&(t=null),void 0===n&&(n=null),i instanceof Y||i instanceof Q||(i=new Q),Qr(this);for(var r=this.Wa.iteratorBackwards;r.next();){var o=r.value;o.visible&&o.ji(e,t,n,i)}return i},t.ux=function(e,t,n,i){return void 0===t&&(t=!1),void 0===n&&(n=!0),function(e,t,n,i,r){var o=null;for(void 0===o&&(o=null),void 0===n&&(n=null),void 0===i&&(i=!1),r instanceof Y||r instanceof Q||(r=new Q),Qr(e),e=e.Wa.iteratorBackwards;e.next();){var a=e.value;a.visible&&!a.isTemporary&&a.Cf(t,o,n,i,r)}return r}(this,e,(function(e){return e instanceof Su&&(!n||e.canSelect())}),t,i)},t.Cf=function(e,t,n,i,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===i&&(i=!1),r instanceof Y||r instanceof Q||(r=new Q),Qr(this);for(var o=this.Wa.iteratorBackwards;o.next();){var a=o.value;a.visible&&a.Cf(e,t,n,i,r)}return r},t.Nu=function(e,t,n,i,r,o){var a=new Q;Qr(this);for(var s=this.Wa.iteratorBackwards;s.next();){var l=s.value;l.visible&&l.Nu(e,t,n,i,a,r,o)}return a},t.mz=function(e,t,n,i,r){return void 0===n&&(n=!0),void 0===i&&(i=!0),function(e,t,n,i,r,o){var a=null;void 0===a&&(a=null),void 0===i&&(i=null),void 0===r&&(r=!0),!1!==r&&!0!==r&&((r instanceof Y||r instanceof Q)&&(o=r),r=!0);for(o instanceof Y||o instanceof Q||(o=new Q),Qr(e),e=e.Wa.iteratorBackwards;e.next();){var s=e.value;s.visible&&!s.isTemporary&&s.og(t,n,a,i,r,o)}return o}(this,e,t,(function(e){return e instanceof Su&&(!i||e.canSelect())}),n,r)},t.og=function(e,t,n,i,r,o){void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r=!0),!1!==r&&!0!==r&&((r instanceof Y||r instanceof Q)&&(o=r),r=!0),o instanceof Y||o instanceof Q||(o=new Q),Qr(this);for(var a=this.Wa.iteratorBackwards;a.next();){var s=a.value;s.visible&&s.og(e,t,n,i,r,o)}return o},Er.prototype.acceptEvent=function(e){return Kr(this,e,e instanceof MouseEvent)},Er.prototype.Qz=function(e){var t=this.H;if(!this.H.isEnabled)return!1;var n=Kr(t,e,!1);switch(n.key=String.fromCharCode(e.which),n.down=!0,e.which){case 8:n.key="Backspace";break;case 33:n.key="PageUp";break;case 34:n.key="PageDown";break;case 35:n.key="End";break;case 36:n.key="Home";break;case 37:n.key="Left";break;case 38:n.key="Up";break;case 39:n.key="Right";break;case 40:n.key="Down";break;case 45:n.key="Insert";break;case 46:n.key="Del";break;case 48:n.key="0";break;case 187:case 61:case 107:n.key="Add";break;case 189:case 173:case 109:n.key="Subtract";break;case 27:n.key="Esc"}return t.doKeyDown(),Vr(n,e)},Er.prototype.Rz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Kr(t,e,!1);switch(n.key=String.fromCharCode(e.which),n.up=!0,e.which){case 8:n.key="Backspace";break;case 33:n.key="PageUp";break;case 34:n.key="PageDown";break;case 35:n.key="End";break;case 36:n.key="Home";break;case 37:n.key="Left";break;case 38:n.key="Up";break;case 39:n.key="Right";break;case 40:n.key="Down";break;case 45:n.key="Insert";break;case 46:n.key="Del"}return t.doKeyUp(),Vr(n,e)},Er.prototype.bz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Kr(t,e,!0);return null!==t.mouseEnter&&t.mouseEnter(n),t.currentTool.standardMouseOver(),Vr(n,e)},Er.prototype.cz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Kr(t,e,!0);return null!==t.mouseLeave&&t.mouseLeave(n),Vr(n,e)},Er.prototype.getMouse=function(e){var t=this.ta;if(null===t)return new fe(0,0);var n=t.getBoundingClientRect();return t=e.clientX-this.Aa/n.width*n.left,e=e.clientY-this.ya/n.height*n.top,null!==this.Ab?ye(new fe(t,e),this.Ab):new fe(t,e)},Er.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))},Er.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},(t=Er.prototype).Pz=function(){return this.kg},t.Xy=function(e){void 0===e&&(e=null);var t=this.animationManager,n=t.isEnabled;t.Cc(),t.isEnabled=!1,Xr(this),this.hf=!1,this.du=new fe(NaN,NaN),t.isEnabled=n,this.ld=!0;var i=this;null!==e&&b((function(){i.ld=!1,Ui(t,"Model"),e(i)}),1)},t.$b=function(e){if(void 0===e&&(e=!1),!0!==this.kg&&!(this.vb||!1===e&&this.ld)){this.kg=!0;var t=this;m.requestAnimationFrame((function(){t.kg&&t.bd()}))}},t.bd=function(){this.fn&&!this.kg||(this.fn&&(this.fn=!1),Xr(this))},t.Nv=function(e,t){for(e.reset();e.next();){var n=e.value;!n.Zc()||n instanceof gh||(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))}for(e.reset();e.next();)(n=e.value)instanceof gh&&n.isVisible()&&Jr(this,n);for(e.reset();e.next();)(n=e.value)instanceof xh&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n));for(e.reset();e.next();)(n=e.value)instanceof Vu&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))},t.Fd=function(e,t,n,i){if(this.vd||this.animationManager.isAnimating)for(var r=0;ri&&this.Ya(),this},t.Cy=function(e,t){go(this,e,t),e.Xe(this);var n=this.Wa,i=n.indexOf(e);0<=i&&(n.remove(e),null!==this.cc&&this.cb(gn,"layers",this,e,null,i,null));var r,o=n.count;for(r=0;ri&&this.Ya(),this},t.kA=function(e){if(e.diagram!==this&&x("Cannot remove a Layer from another Diagram: "+e+" of "+e.diagram),""!==e.name){var t=this.Wa,n=t.indexOf(e);if(t.remove(e)){for(t=e.Pa.copy().iterator;t.next();){var i=t.value,r=i.layerName;r!==e.name?i.layerName=r:i.layerName=""}null!==this.cc&&this.cb(gn,"layers",this,e,null,n,null),this.N(),this.Ya()}}},t.Qj=function(e){for(var t=this.layers;t.next();){var n=t.value;if(n.name===e)return n}return null},t.Yw=function(e){return null===this.pf&&(this.pf=new Y),this.pf.add(e),this.model.Pe(e),this},t.mA=function(e){null!==this.pf&&(this.pf.remove(e),0===this.pf.count&&(this.pf=null)),this.model.ik(e)},t.Pe=function(e){return null===this.zg&&(this.zg=new Y),this.zg.add(e),this},t.ik=function(e){null!==this.zg&&(this.zg.remove(e),0===this.zg.count&&(this.zg=null))},t.ds=function(e){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(e),e.change!==dn&&(this.isModified=!0),null!==this.zg)for(var t=this.zg,n=t.length,i=0;ih.Pa.indexOf(p)&&h.oi(d,p,f):(p.isSelected=!1,p.isHighlighted=!1,p.Wb(),h.pc(f?d:-1,p,f)))}else h instanceof Er?"number"==typeof d&&p instanceof kr&&(t?(p.Xe(this),this.Wa.Gb(d,p)):this.Wa.mb(d)):x("unknown ChangedEvent.Remove object: "+e.toString());this.isModified=!0}else i!==dn&&x("unknown ChangedEvent: "+e.toString())}finally{this.skipsModelSourceBindings=n}}},Er.prototype.Ea=function(e){return this.undoManager.Ea(e)},Er.prototype.eb=function(e){return this.undoManager.eb(e)},Er.prototype.Kf=function(){return this.undoManager.Kf()},Er.prototype.commit=function(e,t){void 0===t&&(t="");var n=this.skipsUndoManager;null===t&&(this.skipsUndoManager=!0,t=""),this.undoManager.Ea(t);var i=!1;try{e(this),i=!0}finally{i?this.undoManager.eb(t):this.undoManager.Kf(),this.skipsUndoManager=n}},Er.prototype.updateAllTargetBindings=function(e){this.partManager.updateAllTargetBindings(e)},Er.prototype.rp=function(){this.partManager.rp()},Er.prototype.onViewportBoundsChanged=function(e,t,n,i){if(!e.D(t)){void 0===i&&(i=!1),i||(this.Ee=!0),this.vd=!0;var r=this.layout;null===r||!r.isViewportSized||this.autoScale!==Zo||e.width===t.width&&e.height===t.height||r.C(),r=this.currentTool,!0===this.Vk&&r instanceof wn&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),xn(r,this)),this.vb||this.invalidateViewport(e,t),vo(this),this.fc.scale=n,this.fc.position.x=e.x,this.fc.position.y=e.y,this.fc.bounds.assign(e),this.fc.canvasSize.width=Math.round(e.width*n),this.fc.canvasSize.height=Math.round(e.height*n),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=i,this.R("ViewportBoundsChanged",this.fc,e),this.isVirtualized&&this.links.each((function(e){e.isAvoiding&&e.actualBounds.Yc(t)&&e.bb()}))}},Er.prototype.clearSelection=function(e){void 0===e&&(e=!1);var t=this.selection;if(0!==t.count){e||this.R("ChangingSelection",t);for(var n=t.Fa(),i=n.length,r=0;r=n.top&&0>=n.left&&0>=n.right&&0>=n.bottom)return t;var i=this.viewportBounds,r=this.scale;i=Ie.allocAt(0,0,i.width*r,i.height*r);var o=fe.allocAt(0,0);if(e.x>=i.x&&e.xi.x+i.width-n.right&&this.allowHorizontalScroll&&(a=Math.max(this.scrollHorizontalLineChange,1),a|=0,o.x+=a,e.x>i.x+i.width-n.right/2&&(o.x+=a),e.x>i.x+i.width-n.right/4&&(o.x+=4*a));return e.y>=i.y&&e.yi.y+i.height-n.bottom&&this.allowVerticalScroll&&(a=Math.max(this.scrollVerticalLineChange,1),a|=0,o.y+=a,e.y>i.y+i.height-n.bottom/2&&(o.y+=a),e.y>i.y+i.height-n.bottom/4&&(o.y+=4*a)),o.Xa(ne)||(t=new fe(t.x+o.x/r,t.y+o.y/r)),Ie.free(i),fe.free(o),t},(t=Er.prototype).Cs=function(){return null},t.av=function(){return null},t.bs=function(e,t){this.pj.add(e,t)},t.Fu=function(e){(this.Pw=e)||this.nodes.each((function(e){e instanceof gh&&(e.$p=null)}))},t.Wz=function(e){return jo?(void 0===e&&(e={}),e.returnType="Image",this.Jx(e)):null},t.Jx=function(e){return void 0===e&&(e={}),Ro(this,this.Xz,e)},t.Xz=function(e,t,n){var i=Oo(n,e,"canvas",null);if(null===i)return null;var r=null;if(null!==(n=i.Z.canvas))switch(r=e.returnType,r=void 0===r?"string":r.toLowerCase(),r){case oa+"data":r=i.getImageData(0,0,n.width,n.height);break;case oa:(i=(e.document||document).createElement("img")).src=n.toDataURL(e.type,e.details),r=i;break;case"blob":return"function"!=typeof t&&x('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),"function"==typeof n.toBlob?(n.toBlob(t,e.type,e.details),"toBlob"):(t(null),null);default:r=n.toDataURL(e.type,e.details)}return"function"==typeof t?(t(r),null):r},d.Object.defineProperties(Er.prototype,{renderer:{get:function(){return this.nl},set:function(e){this instanceof Pa||(""===e&&(e="default"),(e=e.toLowerCase())!==this.nl&&(this.nl=e,"default"===e||"canvas"===e?(null!==(e=this.pj.get("svg"))&&e.Oa.remove(),this.ta&&(this.ib=this.ta.context)):"svg"===e?(this.pj.contains("svg")?e=this.pj.get("svg"):(e=new vs(this,m.document),this.bs("svg",e)),null!==this.div&&this.div.appendChild(e.Oa),this.ib=e.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):"debug"!==e||this.pj.contains("SVG")||(e=new vs(this,m.document),this.bs("SVG",e),e.Oa.style.backgroundColor="whitesmoke",null!==this.div&&this.div.after(e.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(e){if(this.Ka!==e){var t=this.Ka;null!==t?(t.H=void 0,t.goDiagram=void 0,t.go=void 0,t.innerHTML="",null!==this.ta&&(t=this.ta.Oa,this.removeEventListener(t,"pointermove",this.dk,!1),this.removeEventListener(t,"pointerdown",this.ui,!1),this.removeEventListener(t,"pointerup",this.fk,!1),this.removeEventListener(t,"pointerout",this.ek,!1),this.removeEventListener(t,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),null!==(t=this.toolManager)&&(t.mouseDownTools.each((function(e){e.cancelWaitAfter()})),t.mouseMoveTools.each((function(e){e.cancelWaitAfter()})),t.mouseUpTools.each((function(e){e.cancelWaitAfter()}))),t.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(m,"resize",this.Ov,!1),this.removeEventListener(m,"wheel",this.$j,!0),br===this&&(br=null)):null===this.ui&&(this.hf=!1),this.Ka=null,null!==e&&((t=e.H)&&(t.div=null),Tr(this,e),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(e){this.nt!==e&&(this.nt=e,null!==e&&(this.Vt=e.fromPort,this.Wt=e.toPort))}},Mx:{get:function(){return this.Vt},set:function(e){this.Vt=e}},Nx:{get:function(){return this.Wt},set:function(e){this.Wt=e}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(e){this.Wg=e,this.cc.skipsUndoManager=e}},delaysLayout:{get:function(){return this.lt},set:function(e){this.lt=e}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1e&&k(e,">= 0",Er,"scrollHorizontalLineChange"),this.iu=e,this.g("scrollHorizontalLineChange",t,e))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(e){var t=this.mu;t!==e&&(0>e&&k(e,">= 0",Er,"scrollVerticalLineChange"),this.mu=e,this.g("scrollVerticalLineChange",t,e))}},lastInput:{get:function(){return this.cj},set:function(e){this.cj=e}},previousInput:{get:function(){return this.Qg},set:function(e){this.Qg=e}},firstInput:{get:function(){return this.bq},set:function(e){this.bq=e}},currentCursor:{get:function(){return this.it},set:function(e){if(""===e&&(e=this.Op),this.it!==e){var t=this.ta,n=this.Ka;if(null!==t&&null!==n){this.it=e;var i=t.style.cursor;t.style.cursor=e,n.style.cursor=e,t.style.cursor===i&&(t.style.cursor="-webkit-"+e,n.style.cursor="-webkit-"+e,t.style.cursor===i&&(t.style.cursor="-moz-"+e,n.style.cursor="-moz-"+e,t.style.cursor===i&&(t.style.cursor=e,n.style.cursor=e)))}}}},defaultCursor:{get:function(){return this.Op},set:function(e){""===e&&(e="auto");var t=this.Op;t!==e&&(this.Op=e,this.g("defaultCursor",t,e))}},click:{get:function(){return this.zh},set:function(e){var t=this.zh;t!==e&&(this.zh=e,this.g("click",t,e))}},doubleClick:{get:function(){return this.Fh},set:function(e){var t=this.Fh;t!==e&&(this.Fh=e,this.g("doubleClick",t,e))}},contextClick:{get:function(){return this.Bh},set:function(e){var t=this.Bh;t!==e&&(this.Bh=e,this.g("contextClick",t,e))}},mouseOver:{get:function(){return this.Qh},set:function(e){var t=this.Qh;t!==e&&(this.Qh=e,this.g("mouseOver",t,e))}},mouseHover:{get:function(){return this.Oh},set:function(e){var t=this.Oh;t!==e&&(this.Oh=e,this.g("mouseHover",t,e))}},mouseHold:{get:function(){return this.Nh},set:function(e){var t=this.Nh;t!==e&&(this.Nh=e,this.g("mouseHold",t,e))}},mouseDragOver:{get:function(){return this.Qt},set:function(e){var t=this.Qt;t!==e&&(this.Qt=e,this.g("mouseDragOver",t,e))}},mouseDrop:{get:function(){return this.Lh},set:function(e){var t=this.Lh;t!==e&&(this.Lh=e,this.g("mouseDrop",t,e))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(e){var t=this.xt;t!==e&&(this.xt=e,this.g("handlesDragDropForTopLevelParts",t,e))}},mouseEnter:{get:function(){return this.Mh},set:function(e){var t=this.Mh;t!==e&&(this.Mh=e,this.g("mouseEnter",t,e))}},mouseLeave:{get:function(){return this.Ph},set:function(e){var t=this.Ph;t!==e&&(this.Ph=e,this.g("mouseLeave",t,e))}},toolTip:{get:function(){return this.$h},set:function(e){var t=this.$h;t!==e&&(this.$h=e,this.g("toolTip",t,e))}},contextMenu:{get:function(){return this.Ch},set:function(e){var t=this.Ch;t!==e&&(this.Ch=e,this.g("contextMenu",t,e))}},commandHandler:{get:function(){return this.nb},set:function(e){this.nb!==e&&(this.nb=e,e.Xe(this))}},toolManager:{get:function(){return this.te},set:function(e){this.te!==e&&(this.te=e,e.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(e){var t=this.ob;t!==e&&(this.ob=e,e.diagram=this,this.currentTool===t&&(this.currentTool=e))}},currentTool:{get:function(){return this.hb},set:function(e){var t=this.hb;t&&(t.isActive&&t.doDeactivate(),t.cancelWaitAfter(),t.doStop()),null===e&&(e=this.defaultTool),null!==e&&(this.hb=e,e.diagram=this,e.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(e){var t=this.Nt;if(t!==e)if(0<=e&&!isNaN(e)){if(this.Nt=e,this.g("maxSelectionCount",t,e),!this.undoManager.isUndoingRedoing&&0<(e=this.selection.count-e)){this.R("ChangingSelection",this.selection),t=this.selection.Fa();for(var n=0;n= 0",Er,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(e){var t=this.St;t!==e&&(this.St=e,this.g("nodeSelectionAdornmentTemplate",t,e))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(e){var t=this.wt;t!==e&&(this.wt=e,this.g("groupSelectionAdornmentTemplate",t,e))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(e){var t=this.Kt;t!==e&&(this.Kt=e,this.g("linkSelectionAdornmentTemplate",t,e))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var e=this.undoManager;return e.isEnabled?null!==e.currentTransaction||this.rn&&this.Ce!==e.historyIndex:this.rn},set:function(e){if(this.rn!==e){this.rn=e;var t=this.undoManager;!e&&t.isEnabled&&(this.Ce=t.historyIndex),e||yo(this)}}},model:{get:function(){return this.cc},set:function(e){var t=this.cc;if(t!==e){this.currentTool.doCancel(),t&&t.undoManager!==e.undoManager&&t.undoManager.isInTransaction&&x("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var n=Lr(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var i=this.vb;this.vb=!0,Ui(this.animationManager,"Model"),t&&(null!==this.pf&&this.pf.each((function(e){return t.ik(e)})),t.ik(this.Oc)),this.cc=e,this.partManager=function(e){return null!==(e=Fo.get(e))?new e:new Qd}(this.cc.type);for(var r=0;rthis.scale&&(this.scale=e)):k(e,"> 0",Er,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(e){var t=this.Mt;t!==e&&(0 0",Er,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(e){this.zu.D(e)||(this.zu=e=e.J())}},contentAlignment:{get:function(){return this.zk},set:function(e){var t=this.zk;t.D(e)||(this.zk=e=e.J(),this.g("contentAlignment",t,e),jr(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(e){var t=this.pq;t.D(e)||(this.pq=e=e.J(),this.g("initialContentAlignment",t,e))}},padding:{get:function(){return this.yb},set:function(e){"number"==typeof e&&(e=new We(e));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.Ya(),this.g("padding",t,e))}},partManager:{get:function(){return this.Pc},set:function(e){var t=this.Pc;t!==e&&(null!==e.diagram&&x("Cannot share PartManagers between Diagrams: "+e.toString()),t&&t.Xe(null),this.Pc=e,e.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(e){var t=this.Sc;t!==e&&(this.Sc=e,e.diagram=this,e.group=null,this.xh=!0,this.g("layout",t,e),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(e){var t=this.Ht;if(t!==e&&(this.Ht=e,this.g("isTreePathToChildren",t,e),!this.undoManager.isUndoingRedoing))for(e=this.nodes;e.next();)rh(e.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(e){var t=this.uu;t!==e&&(e!==ea&&e!==ta&&e!==na&&x("Unknown Diagram.treeCollapsePolicy: "+e),this.uu=e,this.g("treeCollapsePolicy",t,e))}},Ue:{get:function(){return this.pw},set:function(e){this.pw=e}},avoidanceCellSize:{get:function(){return this.aw},set:function(e){this.Xh=null,this.aw=new Ae(Math.max(1,e.width),Math.max(1,e.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(e){this.bw=Math.max(1,e)}},autoScrollInterval:{get:function(){return this.vp},set:function(e){var t=this.vp;t!==e&&(this.vp=e,this.g("autoScrollInterval",t,e))}},autoScrollRegion:{get:function(){return this.xp},set:function(e){"number"==typeof e&&(e=new We(e));var t=this.xp;t.D(e)||(this.xp=e=e.J(),this.Ya(),this.g("autoScrollRegion",t,e))}}}),d.Object.defineProperties(Er,{licenseKey:{get:function(){return ia.jc()},set:function(e){ia.add(e.replace(/\s/g,""))}},version:{get:function(){return ra}}}),Er.prototype.makeImageData=Er.prototype.Jx,Er.prototype.makeImage=Er.prototype.Wz,Er.prototype.cacheGroupExternalLinks=Er.prototype.Fu,Er.prototype.addRenderer=Er.prototype.bs,Er.prototype.makeSVG=Er.prototype.av,Er.prototype.makeSvg=Er.prototype.Cs,Er.prototype.stopAutoScroll=Er.prototype.ug,Er.prototype.doAutoScroll=Er.prototype.gs,Er.prototype.isUnoccupied=Er.prototype.Yj,Er.prototype.raiseDiagramEvent=Er.prototype.R,Er.prototype.removeDiagramListener=Er.prototype.am,Er.prototype.addDiagramListener=Er.prototype.Bj,Er.prototype.findTreeRoots=Er.prototype.yz,Er.prototype.layoutDiagram=Er.prototype.Uz,Er.prototype.findTopLevelGroups=Er.prototype.qz,Er.prototype.findTopLevelNodesAndLinks=Er.prototype.rz,Er.prototype.ensureBounds=Er.prototype.Va,Er.prototype.findLinksByExample=Er.prototype.ls,Er.prototype.findNodesByExample=Er.prototype.ms,Er.prototype.findLinkForData=Er.prototype.Kc,Er.prototype.findNodeForData=Er.prototype.ii,Er.prototype.findPartForData=Er.prototype.Lc,Er.prototype.findLinkForKey=Er.prototype.findLinkForKey,Er.prototype.findNodeForKey=Er.prototype.Vb,Er.prototype.findPartForKey=Er.prototype.findPartForKey,Er.prototype.rebuildParts=Er.prototype.Wd,Er.prototype.transformViewToDoc=Er.prototype.Ps,Er.prototype.transformRectDocToView=Er.prototype.zA,Er.prototype.transformDocToView=Er.prototype.op,Er.prototype.centerRect=Er.prototype.es,Er.prototype.scrollToRect=Er.prototype.tv,Er.prototype.scroll=Er.prototype.scroll,Er.prototype.highlightCollection=Er.prototype.Jz,Er.prototype.highlight=Er.prototype.Iz,Er.prototype.selectCollection=Er.prototype.rA,Er.prototype.select=Er.prototype.select,Er.prototype.updateAllRelationshipsFromData=Er.prototype.rp,Er.prototype.updateAllTargetBindings=Er.prototype.updateAllTargetBindings,Er.prototype.commit=Er.prototype.commit,Er.prototype.rollbackTransaction=Er.prototype.Kf,Er.prototype.commitTransaction=Er.prototype.eb,Er.prototype.startTransaction=Er.prototype.Ea,Er.prototype.raiseChanged=Er.prototype.g,Er.prototype.raiseChangedEvent=Er.prototype.cb,Er.prototype.removeChangedListener=Er.prototype.ik,Er.prototype.addChangedListener=Er.prototype.Pe,Er.prototype.removeModelChangedListener=Er.prototype.mA,Er.prototype.addModelChangedListener=Er.prototype.Yw,Er.prototype.findLayer=Er.prototype.Qj,Er.prototype.removeLayer=Er.prototype.kA,Er.prototype.addLayerAfter=Er.prototype.Cy,Er.prototype.addLayerBefore=Er.prototype.Ww,Er.prototype.addLayer=Er.prototype.Al,Er.prototype.moveParts=Er.prototype.moveParts,Er.prototype.copyParts=Er.prototype.Kj,Er.prototype.removeParts=Er.prototype.Is,Er.prototype.remove=Er.prototype.remove,Er.prototype.add=Er.prototype.add,Er.prototype.clearDelayedGeometries=Er.prototype.bx,Er.prototype.setProperties=Er.prototype.nm,Er.prototype.attach=Er.prototype.Du,Er.prototype.set=Er.prototype.set,Er.prototype.resetInputOptions=Er.prototype.Sx,Er.prototype.setInputOption=Er.prototype.sA,Er.prototype.getInputOption=Er.prototype.Ql,Er.prototype.resetRenderingHints=Er.prototype.Tx,Er.prototype.setRenderingHint=Er.prototype.Xx,Er.prototype.getRenderingHint=Er.prototype.Gf,Er.prototype.maybeUpdate=Er.prototype.bd,Er.prototype.requestUpdate=Er.prototype.$b,Er.prototype.delayInitialization=Er.prototype.Xy,Er.prototype.isUpdateRequested=Er.prototype.Pz,Er.prototype.invalidateDocumentBounds=Er.prototype.Ya,Er.prototype.findObjectsNear=Er.prototype.og,Er.prototype.findPartsNear=Er.prototype.mz,Er.prototype.findObjectsIn=Er.prototype.Cf,Er.prototype.findPartsIn=Er.prototype.ux,Er.prototype.findObjectsAt=Er.prototype.ji,Er.prototype.findPartsAt=Er.prototype.lz,Er.prototype.findObjectAt=Er.prototype.ic,Er.prototype.findPartAt=Er.prototype.Ol,Er.prototype.focusObject=Er.prototype.zz,Er.prototype.alignDocument=Er.prototype.Jy,Er.prototype.zoomToRect=Er.prototype.BA,Er.prototype.zoomToFit=Er.prototype.zoomToFit,Er.prototype.diagramScroll=Er.prototype.kx,Er.prototype.focus=Er.prototype.focus;var Fo=new pe,zo=null,jo=void 0!==m.document,$o=null,Ho="",Zo=new j(Er,"None",0),Ko=new j(Er,"Uniform",1),Go=new j(Er,"UniformToFill",2),Uo=new j(Er,"CycleAll",10),Vo=new j(Er,"CycleNotDirected",11),Wo=new j(Er,"CycleNotDirectedFast",12),qo=new j(Er,"CycleNotUndirected",13),Yo=new j(Er,"CycleDestinationTree",14),Xo=new j(Er,"CycleSourceTree",15),Qo=new j(Er,"DocumentScroll",1),Jo=new j(Er,"InfiniteScroll",2),ea=new j(Er,"TreeParentCollapsed",21),ta=new j(Er,"AllParentsCollapsed",22),na=new j(Er,"AnyParentsCollapsed",23),ia=new Y,ra="2.3.10",oa="image",aa=null,sa=!1;function la(){this.wy=null,this.j="zz@orderNum","63ad05bbe23a1786468a4c741b6d2"===this._tk?this.Rc=this.j=!0:this.Rc=null}function ca(e,t){if(t.ib.setTransform(t.Mb,0,0,t.Mb,0,0),t.ib.yc(),null===e.Rc)e:{t="f";var n=m[R("76a715b2f73f148a")][R("72ba13b5")]||"";if(e.Rc=!0,jo){var i=Er[R("76a115b6ed251eaf4692")];if(i)for(var r=ia.iterator;r.next()&&!(6>(i=R(i=r.value).split(R("39e9"))).length);){var o=R(i[1]).split(".");if("7da71ca0"!==i[4])break;var a=R(v[R("6cae19")]).split(".");if(o[0]>a[0]||o[0]===a[0]&&o[1]>=a[1]){var s=m[R("74a900bae4370f8b51")][R("6fbb13a1c2311e8a57")].toLowerCase();if(a=s[R("73a612b6fb191d")](R("3aad1ab6e022098b4dc4")),o=R(i[2]),-1(a=t[R("73a612b6fb191d")](o))&&o!==R("7da71ca0ad381e90")&&(a=t[R("73a612b6fb191d")](R("76a715b2ef3e149757"))),0>a&&(a=t[R("73a612b6fb191d")](R("76a715b2ef3e149757"))),0>a&&(a=t[R("73a612b6fb191d")](R("2bfa41fdb3784bca12"))),0>a&&(a=n[R("73a612b6fb191d")](R("7baa19a6f76c1988428554"))),e.Rc=!(0<=a&&as),!e.Rc))break;if("#"===o[0]){a=m.document.createElement("div");for(var l=i[0].replace(/[A-Za-z]/g,"");4>l.length;)l+="9";if(s=l,l=l.substr(l.length-4),i="",i+=["gsh","gsf"][parseInt(l.substr(0,1),10)%2],i+=["Header","Background","Display","Feedback"][parseInt(l.substr(0,1),10)%4],a[R("79a417a0f0181a8946")]=i,m.document[R("78a712aa")]){m.document[R("78a712aa")][R("7bb806b6ed32388c4a875b")](a),l=m.getComputedStyle(a).getPropertyValue(R("78a704b7e62456904c9b12701b6532a8"));var c=m.getComputedStyle(a).getPropertyValue(R("75b817b0ea2202"));if(m.document[R("78a712aa")][R("68ad1bbcf533388c4a875b")](a),l){if(a=m[R("77a902b0eb1b1e804a8a")],c==="0."+parseInt(s,10)%100||-1!==l.indexOf(parseInt(o[1]+o[2],16))&&-1!==l.indexOf(parseInt(o[3]+o[4],16))){e.Rc=!1;break}if(a&&a(R("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(i="."+i,o=0;oi.updateDelay?i.N():i.o||(i.o=!0,setTimeout((function(){return i.redraw()}),i.updateDelay))},n.Of=function(){null!==i.observed&&Ma(i)},n.autoScale=Ko,n.vb=!1,t&&Object.assign(n,t),n}function Ea(e){var t=e.observed;if(null!==t){var n=e.drawsTemporaryLayers,i=e.drawsGrid&&n,r=t.grid;i&&null!==r&&r.visible&&!isNaN(r.width)&&!isNaN(r.height)&&(vo(t,r=Ie.alloc().assign(e.viewportBounds).ed(t.viewportBounds)),Ie.free(r),Qr(t));var o=e.Ab;o.reset(),1!==e.scale&&o.scale(e.scale),0===e.position.x&&0===e.position.y||o.translate(-e.position.x,-e.position.y),(r=e.ib).scale(e.Mb,e.Mb),r.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),r.yc(),o=(t=t.Wa.s).length;for(var a=0;ai||o>r)&&(ns(e,!0),e.measure(n>i?i:n,o>r?r:o,0,0));break;case ha:ns(e,!0),e.measure(i,r,0,0);break;case fa:ns(e,!0),e.measure(i,o,0,0);break;case ga:ns(e,!0),e.measure(n,r,0,0)}}}function Fa(e,t){return null!==t&&(jl(t)&&(t=t.panel),0!=(512&t.l)||(t.type===El.Auto||t.type===El.Spot)&&t.Pb()!==e)}function za(e,t,n,i){Ka(e,t,e.areaBackground,!0,!0,n,i),e.areaBackground instanceof Rs&&e.areaBackground.type===Qs?(t.beginPath(),t.rect(i.x,i.y,i.width,i.height),t.ng(e.areaBackground)):t.fillRect(i.x,i.y,i.width,i.height)}function ja(e,t,n,i){var r=e.kq(),o=n.x,a=n.y,s=n.width+r,l=n.height+r;Ka(e,t,e.Ma,!0,!1,n,i),e.Ma instanceof Rs&&e.Ma.type===Qs?(t.beginPath(),t.rect(o-r/2,a-r/2,s,l),t.ng(e.Ma)):t.fillRect(o-r/2,a-r/2,s,l)}function $a(e,t,n){for(var i=t.O.s,r=i.length,o=-1,a=0;ar)&&x("Must specify non-negative integer row for RowColumnDefinition "+t+", not: "+r),e.isRow=!0,e.index=r):void 0!==t.column&&((null==(r=t.column)||1/0===r||isNaN(r)||0>r)&&x("Must specify non-negative integer column for RowColumnDefinition "+t+", not: "+r),e.isRow=!1,e.index=r),r=new Z,t)"row"!==n&&"column"!==n&&(r[n]=t[n]);no(e,r)}else no(e,t);else x('Unknown initializer "'+t+'" for object being constructed by GraphObject.make: '+e)}function cs(e,t){hs.add(e,t)}function us(e,t,n){void 0===n&&(n=null);var i=e[1];if("function"==typeof n?n(i):"string"==typeof i)return e.splice(1,1),i;if(void 0===t)throw Error("no "+("function"==typeof n?"satisfactory":"string")+" argument for GraphObject builder "+e[0]);return t}ua.className="DraggingInfo",Sa.className="DraggingNodeInfoPair",ka.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Ae(NaN,NaN).freeze(),this.gridSnapCellSpot=et,this.gridSnapOrigin=new fe(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ka.className="DraggingOptions",h(_a,Er),_a.prototype.reset=function(){Er.prototype.reset.call(this),Ca(this)},_a.className="Palette",h(Pa,Er),Pa.prototype.computePixelRatio=function(){return 1},Pa.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var e=this.ta,t=this.ib;if(null!==e&&null!==t){if(io(this),null===this.ql){var n=new Ds(null);n.width=e.width,n.height=e.height,this.ql=n}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Ea(this)}finally{this.ta=e,this.ib=t}}}Er.prototype.redraw.call(this)},Pa.prototype.gc=function(){if(null===this.Ka&&x("No div specified"),null===this.ta&&x("No canvas specified"),!(this.ta instanceof vs)&&(_u(this.box),this.Fc)){var e=this.observed;if(null!==e&&!e.animationManager.defaultAnimation.isAnimating&&e.pi){io(this);var t=this.ta;(e=this.ib).Vc(!0),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t.width,t.height),1>this.updateDelay?Ea(this):null!==this.ql&&(e.drawImage(this.ql.Oa,0,0),(t=this.Ab).reset(),1!==this.scale&&t.scale(this.scale),0===this.position.x&&0===this.position.y||t.translate(-this.position.x,-this.position.y),e.scale(this.Mb,this.Mb),e.transform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),e.yc());for(var n=(t=this.Wa.s).length,i=0;ie&&(e=0),this.ia!==e&&(this.ia=e)}}}),Pa.className="Overview",h(La,Ln),La.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(null===e||!e.allowMove||!e.allowSelect)return!1;var t=e.observed;if(null===t)return!1;var n=e.lastInput;return!(!n.left||e.currentTool!==this&&(!this.isBeyondDragSize()||n.isTouchEvent&&n.timestamp-e.firstInput.timestampt.maxScale||(t.scale=e))},Aa.prototype.canDecreaseZoom=function(e){void 0===e&&(e=1/this.zoomFactor);var t=this.diagram;return t.autoScale===Zo&&(!((e=t.scale*e)t.maxScale)&&t.allowZoom)},Aa.prototype.increaseZoom=function(e){void 0===e&&(e=this.zoomFactor);var t=this.diagram;t.autoScale===Zo&&((e=t.scale*e)t.maxScale||(t.scale=e))},Aa.prototype.canIncreaseZoom=function(e){void 0===e&&(e=this.zoomFactor);var t=this.diagram;return t.autoScale===Zo&&(!((e=t.scale*e)t.maxScale)&&t.allowZoom)},Aa.prototype.resetZoom=function(e){void 0===e&&(e=this.defaultScale);var t=this.diagram;et.maxScale||(t.scale=e)},Aa.prototype.canResetZoom=function(e){void 0===e&&(e=this.defaultScale);var t=this.diagram;return!(et.maxScale)&&t.allowZoom},Aa.prototype.zoomToFit=function(){var e=this.diagram,t=e.animationManager;t.Cc(),e.redraw();var n=e.position,i=e.scale;Ui(t,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&i===this.Au&&!isNaN(this.Jt)&&e.documentBounds.D(this.yu)?(e.scale=this.Jt,e.position=this.sw,this.Au=NaN,this.yu=Ge):(this.Jt=i,this.sw=n.copy(),e.zoomToFit(),this.Au=e.scale,this.yu=e.documentBounds.copy()),Vi(t)},Aa.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Aa.prototype.scrollToPart=function(e){void 0===e&&(e=null);var t=this.diagram;if(t.Va(),null===e){try{null!==this.cg&&(this.cg.next()?e=this.cg.value:this.cg=null)}catch(e){this.cg=null}null===e&&(0(e=180*Math.atan2(e.m12,e.m11)/Math.PI)&&(e+=360),e},t.Df=function(){if(0!=(4096&this.l)==!1)return this.Kk;var e=this.Ca;return null!==this.panel?e*this.panel.Df():e},t.qs=function(e,t){return void 0===t&&(t=new fe),t.assign(e),this.oe.Cd(t),t},t.rs=function(e,t,n){return this.Sj(e.x,e.y,t.x,t.y,n)},t.Sj=function(e,t,n,i,r){var o=this.transform,a=1/(o.m11*o.m22-o.m12*o.m21),s=o.m22*a,l=-o.m12*a,c=-o.m21*a,u=o.m11*a,h=a*(o.m21*o.dy-o.m22*o.dx),d=a*(o.m12*o.dx-o.m11*o.dy);return null!==this.areaBackground?(o=this.actualBounds,Zt.Ff(o.left,o.top,o.right,o.bottom,e,t,n,i,r)):(a=e*s+t*c+h,e=e*l+t*u+d,t=n*s+i*c+h,n=n*l+i*u+d,r.h(0,0),i=this.naturalBounds,n=Zt.Ff(0,0,i.width,i.height,a,e,t,n,r),r.transform(o),n)},Na.prototype.measure=function(e,t,n,i){if(!1!==ts(this)){var r=this.Kg,o=r.right+r.left;r=r.top+r.bottom,e=Math.max(e-o,0),t=Math.max(t-r,0),n=Math.max((n||0)-o,0),i=Math.max((i||0)-r,0),o=this.angle,r=this.desiredSize;var a=this.kq();90===o||270===o?(e=isFinite(r.height)?r.height+a:e,t=isFinite(r.width)?r.width+a:t):(e=isFinite(r.width)?r.width+a:e,t=isFinite(r.height)?r.height+a:t),r=n||0,a=i||0;var s=this instanceof El;switch(Va(this,!0)){case da:a=r=0,s&&(t=e=1/0);break;case ha:isFinite(e)&&e>n&&(r=e),isFinite(t)&&t>i&&(a=t);break;case fa:isFinite(e)&&e>n&&(r=e),a=0,s&&(t=1/0);break;case ga:isFinite(t)&&t>i&&(a=t),r=0,s&&(e=1/0)}s=this.maxSize;var l=this.minSize;r>s.width&&l.widths.height&&l.heighte.height||this.Cb>e.width))&&(n=!0)),this.l=n?256|this.l:-257&this.l,this.Ib.w()||x("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(o,this.Ib),rs(this,!1),Ie.free(o)},(t=Na.prototype).eh=function(){},t.Xl=function(e,t){var n=this.part;null!==n&&null!==n.diagram&&(n.selectionObject!==this&&n.resizeObject!==this&&n.rotateObject!==this||Fu(n,!0),this.N(),Fe(e,t)||(n.oh(),this.Pn(n)))},t.Pn=function(e){null!==this.portId&&(Fu(e,!0),e instanceof qu&&Ju(e,this))},t.gc=function(e,t){if(!function(e,t,n){if(!(t instanceof ys))return!1;if(!e.visible||0===e.opacity||e.Dd()&&!e.isVisible())return null!==e.svg&&null!==e.svg.parentNode&&e.svg.remove(),!0;var i=e.panel,r=e.nk(t);if(e.kk(t,n,r))return null!==e.svg.parentElement?(e.Dd()&&(t.ti=e.svg),!0):(e.Dd()?(null!==t.ti?t.ti.after(e.svg):t.Nj.prepend(e.svg),t.ti=e.svg):i&&$a(e,i,e.svg),!0);if(e.Dd()&&e.isShadowed){var o=e.shadowOffset;t.Ev(o.x*n.scale*e.scale*n.Mb,o.y*n.scale*e.scale*n.Mb,e.shadowBlur),As(t),t.shadowColor=e.shadowColor}e instanceof Pc&&(t.font=e.font),t.yd=null;var a=e.transform;o=e instanceof El;var s=e instanceof El&&jl(e);0!=(4096&e.l)==!0&&Ga(e);var l=e.Ib;if(t.rb.ha=[1,0,0,1,0,0],t.o=!1,r&&(t.o=!0,o&&s?(Es(t,1,0,0,1,0,0),e.svg=t.ad):o?(Es(t,a.m11,a.m12,a.m21,a.m22,a.dx,a.dy),e.svg=t.ad):Es(t,1,0,0,1,0,0)),r=e.naturalBounds,null!==e.areaBackground){var c=a.copy().Vj();t.rb.ha=[c.m11,c.m12,c.m21,c.m22,c.dx,c.dy],za(e,t,r,l),t.rb.ha=[1,0,0,1,0,0],t.yd.gd=t.ad,t.yd.prepend(t.ad)}return o||(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy]),null!==e.background&&(o?(s&&(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy]),ja(e,t,r,l),s&&(t.rb.ha=[1,0,0,1,0,0])):(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy],ja(e,t,r,l)),t.yd.Ma=t.ad,t.yd.prepend(t.ad)),a=t.yd,r=e.part,s=!1,r&&n.Gf("drawShadows")&&(s=r.isShadowed),t.clipInsteadOfFill&&(s=!1),e.Dd()&&s&&As(t),s&&!0===e.shadowVisible?As(t):s&&!1===e.shadowVisible&&Ls(t),r=e.panel,s&&Fa(e,r)&&null===e.shadowVisible&&Ls(t),t.Il&&(c=n.computePixelRatio(),c="drop-shadow("+t.shadowOffsetX/c+"px "+t.shadowOffsetY/c+"px "+t.shadowBlur/c/2+"px "+t.shadowColor+")",null!==e.background&&a.Ma.setAttributeNS(null,"filter",c),null!==e.areaBackground&&a.gd.setAttributeNS(null,"filter",c)),s&&(null!==e.Ma||null!==e.areaBackground||Fa(e,r))?(Ya(e,!0),null===e.shadowVisible&&Ls(t)):Ya(e,!1),r=s,e.hh(t,n),o&&t.nh.pop(),t.o&&t.nh.pop(),a=t.Gv.hs,s=o?e.svg:t.yd,c=e.svg,o||null===c||s===c||c.parentNode!==e.panel.svg?(e.svg=s,null!==a&&null===s&&(Ms(t),t.nh.pop()),null===s||(e.$o(t,i,l,s),t.Il&&(n=n.computePixelRatio(),e.Dv(s,"drop-shadow("+t.shadowOffsetX/n+"px "+t.shadowOffsetY/n+"px "+t.shadowBlur/n/2+"px "+t.shadowColor+")")),r&&0!=(512&e.l)==!0&&As(t),e.Dd()&&Ls(t),n=e.Dd()?e.opacity*t.globalAlpha:e.opacity,1!==n&&s.setAttributeNS(null,"opacity",n.toString()),""!==e.filter&&s.setAttributeNS(null,"filter",e.filter),e.Dd()?(t.ti?t.ti.after(s):t.Nj.prepend(s),t.ti=s):null!==i&&$a(e,i,s),null!==a&&a(e,s)),!0):(e.svg.replaceWith(s),e.svg=s,null!==s&&e.$o(t,i,l,s),Ha(t,c),!0)}(this,e,t)&&this.visible){var n=this.opacity;if(0!==n){var i=1;1!==n&&(i=e.globalAlpha,e.globalAlpha=i*n);var r="";""!==this.filter&&(r=e.filter,e.filter=this.filter);var o=this instanceof El&&jl(this),a=this.Ib;if(o){var s=this.Ib,l=this.dc,c=this.areaBackground,u=this.Ma;null===c&&null===u||e.yc(),null!==c&&(Ka(this,e,c,!0,!0,l,s),c instanceof Rs&&c.type===Qs?(e.beginPath(),e.rect(s.x,s.y,s.width,s.height),e.ng(c)):e.fillRect(s.x,s.y,s.width,s.height)),null!==u&&(Ka(this,e,u,!0,!1,l,s),u instanceof Rs&&u.type===Qs?(e.beginPath(),e.rect(s.x,s.y,s.width,s.height),e.ng(u)):e.fillRect(s.x,s.y,s.width,s.height)),this.hh(e,t)}if(!o&&(o||0!==a.width&&0!==a.height&&!isNaN(a.x)&&!isNaN(a.y))){o=this.transform,s=this.panel,0!=(4096&this.l)==!0&&Ga(this),l=!1;var h,d=0;if((c=this.part)&&t.Gf("drawShadows")&&(l=c.isShadowed)&&(u=c.shadowOffset,d=Math.max(u.y,u.x)*t.scale*t.Mb),u=this.Dd(),!(h=t.$i||!u)){var p,f=this.naturalBounds,g=(h=this.wh).m11,m=h.m21,v=h.dx,y=h.m12,b=h.m22,w=h.dy,x=p=0;h=p*g+x*m+v;var S=p*y+x*b+w,k=(p=f.width+d)*g+(x=0)*m+v;p=p*y+x*b+w,x=Math.min(h,k);var _=Math.min(S,p),C=Math.max(h+0,k)-x,P=Math.max(S+0,p)-_;h=x,S=_,k=(p=f.width+d)*g+(x=f.height+d)*m+v,p=p*y+x*b+w,x=Math.min(h,k),_=Math.min(S,p),C=Math.max(h+C,k)-x,P=Math.max(S+P,p)-_,h=x,S=_,k=(p=0)*g+(x=f.height+d)*m+v,p=p*y+x*b+w,x=Math.min(h,k),_=Math.min(S,p),C=Math.max(h+C,k)-x,P=Math.max(S+P,p)-_,h=x,S=_,f=(d=t.viewportBounds).x,g=d.y,h=!(h>d.width+f||f>C+h||S>d.height+g||g>P+S)}if(h){if(h=0!=(256&this.l),e.clipInsteadOfFill&&(h=!1),this instanceof Pc&&(e.font=this.font),h){if(S=s.se()?s.naturalBounds:s.actualBounds,C=Math.max(a.x,S.x),P=Math.max(a.y,S.y),d=Math.min(a.right,S.right)-C,f=Math.min(a.bottom,S.bottom)-P,null!==(g=this.tb)&&(C=g.x,P=g.y,d=g.width,f=g.height),C>a.width+a.x||a.x>S.width+S.x)return 1!==n&&(e.globalAlpha=i),void(""!==this.filter&&(e.filter=r));e.save(),e.beginPath(),e.rect(C,P,d,f),e.clip()}if(u){if(!c.isVisible())return 1!==n&&(e.globalAlpha=i),void(""!==this.filter&&(e.filter=r));l&&(S=c.shadowOffset,e.Ev(S.x*t.scale*this.scale*t.Mb,S.y*t.scale*this.scale*t.Mb,c.shadowBlur),As(e),e.shadowColor=c.shadowColor)}l&&!0===this.shadowVisible?As(e):l&&!1===this.shadowVisible&&Ls(e),c=this.naturalBounds,null!==this.areaBackground&&(e.yc(),za(this,e,c,a)),e.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),l&&Fa(this,s)&&null===this.shadowVisible&&Ls(e),null!==this.Ma&&(e.yc(),ja(this,e,c,a)),l&&(null!==this.Ma||null!==this.areaBackground||Fa(this,s))?(Ya(this,!0),null===this.shadowVisible&&Ls(e)):Ya(this,!1),this.hh(e,t),l&&0!=(512&this.l)==!0&&As(e),u&&l&&Ls(e),h&&(e.restore(),e.Vc(this instanceof El)),o.ws()||(t=1/(o.m11*o.m22-o.m12*o.m21),e.transform(o.m22*t,-o.m12*t,-o.m21*t,o.m11*t,t*(o.m21*o.dy-o.m22*o.dx),t*(o.m12*o.dx-o.m11*o.dy)))}}1!==n&&(e.globalAlpha=i),""!==this.filter&&(e.filter=r)}}},t.Dv=function(){},t.$o=function(e,t,n,i){var r=0!=(256&this.l);if(e.clipInsteadOfFill&&(r=!1),r){var o=t.se()?t.naturalBounds:t.actualBounds;t=Math.max(n.x,o.x),r=Math.max(n.y,o.y);var a=Math.min(n.right,o.right)-t;n=Math.min(n.bottom,o.bottom)-r,null!==(o=this.tb)&&(t=o.x,r=o.y,a=o.width,n=o.height);var s=null;null!==(o=i.getAttribute("clip-path"))&&(s=e.svg.getElementById(o.split("#")[1].slice(0,-1))),null===s?(o="CLIP"+se++,s=e.Ud("clipPath",{id:o}),t=e.Ud("rect",{x:t,y:r,width:a,height:n}),this instanceof El&&(r=this.transform.copy().Vj(),t.setAttribute("transform","matrix("+r.m11+", "+r.m12+", "+r.m21+", "+r.m22+", "+r.dx+", "+r.dy+")")),s.appendChild(t),e.svg.appendChild(s),i.setAttributeNS(null,"clip-path","url(#"+o+")")):((e=s.firstElementChild).setAttribute("x",t.toString()),e.setAttribute("y",r.toString()),e.setAttribute("width",a.toString()),e.setAttribute("height",n.toString()))}else i.removeAttributeNS(null,"clip-path"),Ha(e,i)},t.hh=function(){},t.lv=function(){this.Uc=!0},t.kk=function(e,t,n){if(this.Uc)return this.lv(),this.Uc=!1;if(null===(t=this.svg))return!1;if(!this.visible)return t.remove(),!1;if("g"!==t.nodeName&&n||"g"===t.nodeName&&!n)return!1;var i=this.transform,r=this instanceof El&&jl(this);if(!(this instanceof El&&r))if(this instanceof ru){var o=this.bt;e.rb.ha=[i.m11,i.m12,i.m21,i.m22,i.dx,i.dy],null!==o&&ws(e,o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7]),n?t.lastElementChild.setAttributeNS(null,"transform",xs(e)):t.setAttributeNS(null,"transform",xs(e))}else if(!n||this instanceof El)t.setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")");else if(this instanceof fc){o=t.getElementsByTagName("path");for(var a=0;ae?e=0:1e||1=e&&x("GraphObject.scale for "+this+" must be greater than zero, not: "+e),this.Ca=e,this.v(),this.g("scale",t,e))}},angle:{get:function(){return this.Kb},set:function(e){var t=this.Kb;t!==e&&(0>(e%=360)&&(e+=360),t!==e&&(this.Kb=e,as(this),this.v(),this.g("angle",t,e)))}},desiredSize:{get:function(){return this.jd},set:function(e){var t=e.width,n=e.height,i=this.jd,r=i.width,o=i.height;(r===t||isNaN(r)&&isNaN(t))&&(o===n||isNaN(o)&&isNaN(n))||(this.jd=e=e.J(),this.v(),this instanceof fc&&this.qc(),this.g("desiredSize",i,e),Xa(this)&&(null!==(e=this.part)&&(Ba(this,e,"width"),Ba(this,e,"height"))))}},width:{get:function(){return this.jd.width},set:function(e){var t=this.jd.width;t===e||isNaN(t)&&isNaN(e)||(t=this.jd,this.jd=e=new Ae(e,this.jd.height).freeze(),this.v(),this instanceof fc&&this.qc(),this.g("desiredSize",t,e),Xa(this)&&(null!==(e=this.part)&&Ba(this,e,"width")))}},height:{get:function(){return this.jd.height},set:function(e){var t=this.jd.height;t===e||isNaN(t)&&isNaN(e)||(t=this.jd,this.jd=e=new Ae(this.jd.width,e).freeze(),this.v(),this instanceof fc&&this.qc(),this.g("desiredSize",t,e),Xa(this)&&(null!==(e=this.part)&&Ba(this,e,"height")))}},minSize:{get:function(){return null!==this.A?this.A.u:Se},set:function(e){var t=this.minSize;t.D(e)||(e=e.copy(),isNaN(e.width)&&(e.width=0),isNaN(e.height)&&(e.height=0),e.freeze(),Ia(this),this.A.u=e,this.v(),this.g("minSize",t,e))}},maxSize:{get:function(){return null!==this.A?this.A.o:Ee},set:function(e){var t=this.maxSize;t.D(e)||(e=e.copy(),isNaN(e.width)&&(e.width=1/0),isNaN(e.height)&&(e.height=1/0),e.freeze(),Ia(this),this.A.o=e,this.v(),this.g("maxSize",t,e))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(e){"number"==typeof e&&(e=new We(e));var t=this.Kg;t.D(e)||(this.Kg=e=e.J(),this.v(),this.g("margin",t,e))}},transform:{get:function(){return 0!=(2048&this.l)==!0&&Ga(this),this.Ab}},oe:{get:function(){return 0!=(4096&this.l)==!0&&Ga(this),this.wh}},animationTriggers:{get:function(){return null!==this.A?this.A.hb:null},set:function(e){this.animationTriggers!==e&&(Ia(this),this.A.hb=e)}},reshapingBehavior:{get:function(){return null!==this.A?this.A.Pf:da},set:function(e){this.reshapingBehavior!==e&&(Ia(this),this.A.Pf=e)}},alignment:{get:function(){return this.Jb},set:function(e){var t=this.Jb;t.D(e)||(e.Mc()&&!e.Xb()&&x("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+e),this.Jb=e=e.J(),Ua(this),this.g("alignment",t,e))}},column:{get:function(){return this.Ag},set:function(e){e=Math.round(e);var t=this.Ag;t!==e&&(0>e&&k(e,">= 0",Na,"column"),this.Ag=e,this.v(),this.g("column",t,e),null!==this.svg&&this.svg.remove())}},columnSpan:{get:function(){return null!==this.A?this.A.ob:1},set:function(e){e=Math.round(e);var t=this.columnSpan;t!==e&&(1>e&&k(e,">= 1",Na,"columnSpan"),Ia(this),this.A.ob=e,this.v(),this.g("columnSpan",t,e))}},row:{get:function(){return this.io},set:function(e){e=Math.round(e);var t=this.io;t!==e&&(0>e&&k(e,">= 0",Na,"row"),this.io=e,this.v(),this.g("row",t,e),null!==this.svg&&this.svg.remove())}},rowSpan:{get:function(){return null!==this.A?this.A.Bi:1},set:function(e){e=Math.round(e);var t=this.rowSpan;t!==e&&(1>e&&k(e,">= 1",Na,"rowSpan"),Ia(this),this.A.Bi=e,this.v(),this.g("rowSpan",t,e))}},spanAllocation:{get:function(){return null!==this.A?this.A.Di:null},set:function(e){var t=this.spanAllocation;t!==e&&(Ia(this),this.A.Di=e,this.v(),this.g("spanAllocation",t,e))}},alignmentFocus:{get:function(){return this.sk},set:function(e){var t=this.sk;t.D(e)||(this.sk=e=e.J(),this.v(),this.g("alignmentFocus",t,e))}},portId:{get:function(){return this.Yn},set:function(e){var t=this.Yn;if(t!==e){var n=this.part;null===n||n instanceof qu||x("Cannot set portID on a Link: "+e),null!==t&&null!==n&&sh(n,this),this.Yn=e,null!==e&&null!==n&&(n.Te=!0,ah(n,this)),this.g("portId",t,e)}}},toSpot:{get:function(){return null!==this.ba?this.ba.yj:Je},set:function(e){var t=this.toSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.yj=e,this.g("toSpot",t,e),os(this))}},toEndSegmentLength:{get:function(){return null!==this.ba?this.ba.wj:10},set:function(e){var t=this.toEndSegmentLength;t!==e&&(0>e&&k(e,">= 0",Na,"toEndSegmentLength"),this.Xc(),this.ba.wj=e,this.g("toEndSegmentLength",t,e),os(this))}},toShortLength:{get:function(){return null!==this.ba?this.ba.xj:0},set:function(e){var t=this.toShortLength;t!==e&&(this.Xc(),this.ba.xj=e,this.g("toShortLength",t,e),os(this))}},toLinkable:{get:function(){return null!==this.ba?this.ba.Tr:null},set:function(e){var t=this.toLinkable;t!==e&&(this.Xc(),this.ba.Tr=e,this.g("toLinkable",t,e))}},toMaxLinks:{get:function(){return null!==this.ba?this.ba.Ur:1/0},set:function(e){var t=this.toMaxLinks;t!==e&&(0>e&&k(e,">= 0",Na,"toMaxLinks"),this.Xc(),this.ba.Ur=e,this.g("toMaxLinks",t,e))}},fromSpot:{get:function(){return null!==this.ba?this.ba.Xi:Je},set:function(e){var t=this.fromSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.Xi=e,this.g("fromSpot",t,e),os(this))}},fromEndSegmentLength:{get:function(){return null!==this.ba?this.ba.Vi:10},set:function(e){var t=this.fromEndSegmentLength;t!==e&&(0>e&&k(e,">= 0",Na,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=e,this.g("fromEndSegmentLength",t,e),os(this))}},fromShortLength:{get:function(){return null!==this.ba?this.ba.Wi:0},set:function(e){var t=this.fromShortLength;t!==e&&(this.Xc(),this.ba.Wi=e,this.g("fromShortLength",t,e),os(this))}},fromLinkable:{get:function(){return null!==this.ba?this.ba.hq:null},set:function(e){var t=this.fromLinkable;t!==e&&(this.Xc(),this.ba.hq=e,this.g("fromLinkable",t,e))}},fromMaxLinks:{get:function(){return null!==this.ba?this.ba.iq:1/0},set:function(e){var t=this.fromMaxLinks;t!==e&&(0>e&&k(e,">= 0",Na,"fromMaxLinks"),this.Xc(),this.ba.iq=e,this.g("fromMaxLinks",t,e))}},cursor:{get:function(){return null!==this.A?this.A.j:""},set:function(e){var t=this.cursor;t!==e&&(Ia(this),this.A.j=e,this.g("cursor",t,e))}},click:{get:function(){return null!==this.A?this.A.zh:null},set:function(e){var t=this.click;t!==e&&(Ia(this),this.A.zh=e,this.g("click",t,e))}},doubleClick:{get:function(){return null!==this.A?this.A.Fh:null},set:function(e){var t=this.doubleClick;t!==e&&(Ia(this),this.A.Fh=e,this.g("doubleClick",t,e))}},contextClick:{get:function(){return null!==this.A?this.A.Bh:null},set:function(e){var t=this.contextClick;t!==e&&(Ia(this),this.A.Bh=e,this.g("contextClick",t,e))}},mouseEnter:{get:function(){return null!==this.A?this.A.Mh:null},set:function(e){var t=this.mouseEnter;t!==e&&(Ia(this),this.A.Mh=e,this.g("mouseEnter",t,e))}},mouseLeave:{get:function(){return null!==this.A?this.A.Ph:null},set:function(e){var t=this.mouseLeave;t!==e&&(Ia(this),this.A.Ph=e,this.g("mouseLeave",t,e))}},mouseOver:{get:function(){return null!==this.A?this.A.Qh:null},set:function(e){var t=this.mouseOver;t!==e&&(Ia(this),this.A.Qh=e,this.g("mouseOver",t,e))}},mouseHover:{get:function(){return null!==this.A?this.A.Oh:null},set:function(e){var t=this.mouseHover;t!==e&&(Ia(this),this.A.Oh=e,this.g("mouseHover",t,e))}},mouseHold:{get:function(){return null!==this.A?this.A.Nh:null},set:function(e){var t=this.mouseHold;t!==e&&(Ia(this),this.A.Nh=e,this.g("mouseHold",t,e))}},mouseDragEnter:{get:function(){return null!==this.A?this.A.Of:null},set:function(e){var t=this.mouseDragEnter;t!==e&&(Ia(this),this.A.Of=e,this.g("mouseDragEnter",t,e))}},mouseDragLeave:{get:function(){return null!==this.A?this.A.Xd:null},set:function(e){var t=this.mouseDragLeave;t!==e&&(Ia(this),this.A.Xd=e,this.g("mouseDragLeave",t,e))}},mouseDrop:{get:function(){return null!==this.A?this.A.Lh:null},set:function(e){var t=this.mouseDrop;t!==e&&(Ia(this),this.A.Lh=e,this.g("mouseDrop",t,e))}},actionDown:{get:function(){return null!==this.A?this.A.V:null},set:function(e){var t=this.actionDown;t!==e&&(Ia(this),this.A.V=e,this.g("actionDown",t,e))}},actionMove:{get:function(){return null!==this.A?this.A.ia:null},set:function(e){var t=this.actionMove;t!==e&&(Ia(this),this.A.ia=e,this.g("actionMove",t,e))}},actionUp:{get:function(){return null!==this.A?this.A.Ha:null},set:function(e){var t=this.actionUp;t!==e&&(Ia(this),this.A.Ha=e,this.g("actionUp",t,e))}},actionCancel:{get:function(){return null!==this.A?this.A.F:null},set:function(e){var t=this.actionCancel;t!==e&&(Ia(this),this.A.F=e,this.g("actionCancel",t,e))}},toolTip:{get:function(){return null!==this.A?this.A.$h:null},set:function(e){var t=this.toolTip;t!==e&&(Ia(this),this.A.$h=e,this.g("toolTip",t,e))}},contextMenu:{get:function(){return null!==this.A?this.A.Ch:null},set:function(e){var t=this.contextMenu;t!==e&&(Ia(this),this.A.Ch=e,this.g("contextMenu",t,e))}}}),Na.prototype.trigger=Na.prototype.Jv,Na.prototype.findBindingPanel=Na.prototype.ih,Na.prototype.findTemplateBinder=Na.prototype.pz,Na.prototype.setProperties=Na.prototype.nm,Na.prototype.apply=Na.prototype.apply,Na.prototype.attach=Na.prototype.Du,Na.prototype.set=Na.prototype.set,Na.prototype.isEnabledObject=Na.prototype.If,Na.prototype.isVisibleObject=Na.prototype.Ed,Na.prototype.isContainedBy=Na.prototype.rg,Na.prototype.getNearestIntersectionPoint=Na.prototype.rs,Na.prototype.getLocalPoint=Na.prototype.qs,Na.prototype.getDocumentScale=Na.prototype.Df,Na.prototype.getDocumentAngle=Na.prototype.li,Na.prototype.getDocumentBounds=Na.prototype.mi,Na.prototype.getDocumentPoint=Na.prototype.ga,Na.prototype.intersectsRect=Na.prototype.Yc,Na.prototype.containedInRect=Na.prototype.fh,Na.prototype.containsRect=Na.prototype.Re,Na.prototype.containsPoint=Na.prototype.ca,Na.prototype.raiseChanged=Na.prototype.g,Na.prototype.raiseChangedEvent=Na.prototype.cb,Na.prototype.addCopyProperty=Na.prototype.Vw;var hs=null;function ds(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=Se,this.o=Ee,this.hg=ma,this.ob=this.Bi=1,this.Pf=da,this.Pc=this.Ci=this.gd=null,this.Oc="category"}function ps(){this.u=-1/0,this.o=0,this.F=ne,this.rr=Wh,this.j=this.V="None"}function fs(){this.yj=this.Xi=_t,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}function gs(){this.ha=[1,0,0,1,0,0]}function ms(e){this.type=e,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}function vs(e,t,n){this.ownerDocument=e=void 0===t?m.document:t,this.cA="http://www.w3.org/2000/svg",void 0!==e&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new ys(this,n)}function ys(e,t){this.Gv=e,this.svg=e.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new gs,this.j=Ms(this),this.Nj=Ms(this,"gojs-diagram"),this.Hl=this.ti=null;var n=se++,i=this.Ud("clipPath",{id:"mainClip"+n});i.appendChild(this.Ud("rect",{x:0,y:0,width:e.width,height:e.height})),this.ww=i,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(i),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+n+")"),this.eA={},this.isTemporary=!!t,this.filter="",this.bk=null}function bs(e,t,n,i,r,o,a){void 0===e.Nj?Es(e,t,n,i,r,o,a):e.Nj.setAttribute("transform","matrix("+t+", "+n+", "+i+", "+r+", "+o+", "+a+")")}function ws(e,t,n,i,r,o,a,s,l){i=s/i,r=l/r,0===o&&0===a||e.rb.translate(o,a),1===i&&1===r||e.rb.scale(i,r),0===t&&0===n||e.rb.translate(-t,-n)}function xs(e){return"matrix("+(e=e.rb.ha)[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")"}function Ss(e,t,n,i){"fill"===t?ks(e,n):"stroke"===t&&Cs(e,n),null!==i&&(e=i.ha,n.transform="matrix("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")")}function ks(e,t){e.fillStyle instanceof ms?t.fill=Ps(e,e.fillStyle,!0):/^rgba\(/.test(e.fillStyle)?(e=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.fillStyle),t.fill="rgb("+e[1]+","+e[2]+","+e[3]+")",t["fill-opacity"]=e[4]):t.fill=e.fillStyle}function _s(e,t,n){n=n?"fill":"stroke",e.fillStyle instanceof ms?t.setAttributeNS(null,"fill",Ps(e,e.fillStyle,!0)):/^rgba\(/.test(e.fillStyle)?(e=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.fillStyle),t.setAttributeNS(null,n,"rgb("+e[1]+","+e[2]+","+e[3]+")"),t.setAttributeNS(null,n+"-opacity",e[4])):t.setAttributeNS(null,n,e.fillStyle)}function Cs(e,t){if(e.strokeStyle instanceof ms)t.stroke=Ps(e,e.strokeStyle,!1);else if(/^rgba\(/.test(e.strokeStyle)){var n=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.strokeStyle);t.stroke="rgb("+n[1]+","+n[2]+","+n[3]+")",t["stroke-opacity"]=n[4]}else t.stroke=e.strokeStyle;t["stroke-width"]=e.lineWidth,t["stroke-linecap"]=e.lineCap,t["stroke-linejoin"]=e.lineJoin,t["stroke-miterlimit"]=e.miterLimit,e.Ct&&(t["stroke-dasharray"]=e.Yg.toString(),t["stroke-dashoffset"]=e.uj)}function Ps(e,t,n){var i="";if(null!==(i=null!==e.Hl?e.Hl.getAttribute(n?"fill":"stroke"):null)&&-1!==i.indexOf("GRAD")?(i=i.split("#")[1].slice(0,-1),null!==(n=e.svg.getElementById(i))&&n.remove()):i="GRAD"+se++,"linear"===t.type)n=e.Ud("linearGradient",{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,id:i,gradientUnits:"userSpaceOnUse"});else{if("radial"!==t.type)throw Error("invalid gradient");n=e.Ud("radialGradient",{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,r1:t.r1,r2:t.r2,id:i})}var r=t.gx;t=r.length;for(var o=[],a=0;at.offset?1:-1})),r=0;re&&(e+=360),0!==e){if(this.translate(t,n),90===e){e=0;var i=1}else 180===e?(e=-1,i=0):270===e?(e=0,i=-1):(i=e*Math.PI/180,e=Math.cos(i),i=Math.sin(i));var r=this.ha[1]*e+this.ha[3]*i,o=this.ha[0]*-i+this.ha[2]*e,a=this.ha[1]*-i+this.ha[3]*e;this.ha[0]=this.ha[0]*e+this.ha[2]*i,this.ha[1]=r,this.ha[2]=o,this.ha[3]=a,this.translate(-t,-n)}},gs.className="STransform",ms.prototype.addColorStop=function(e,t){this.gx.push({offset:e,color:t})},ms.className="SGradient",vs.prototype.resize=function(e,t,n,i){return(this.width!==e||this.height!==t)&&(this.width=e,this.height=t,this.style.width=n+"px",this.style.height=i+"px",this.Oa.setAttributeNS(null,"width",n+"px"),this.Oa.setAttributeNS(null,"height",i+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+n+" "+i),this.context.ww.firstElementChild.setAttributeNS(null,"width",n+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",i+"px"),!0)},vs.prototype.Ud=function(e,t,n){if(e=this.ownerDocument.createElementNS(this.cA,e),C(t))for(var i in t)e.setAttributeNS("href"===i?"http://www.w3.org/1999/xlink":"",i,t[i]);return void 0!==n&&(e.textContent=n),e},vs.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},vs.prototype.focus=function(){this.Oa.focus()},vs.prototype.mx=function(){this.ownerDocument=null},d.Object.defineProperties(vs.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(e){this.Oa.setAttribute("width",e+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(e){this.Oa.setAttribute("height",e+"px")}},style:{get:function(){return this.Oa.style}}}),vs.className="SVGSurface",(t=ys.prototype).arc=function(e,t,n,i,r,o,a,s){var l=2*Math.PI,c=l-1e-6,u=n*Math.cos(i),h=n*Math.sin(i),d=e+u,p=t+h,f=o?0:1;i=o?i-r:r-i,(1e-6i&&(i=i%l+l),i>c?(this.path.push(["A",n,n,0,1,f,e-u,t-h]),this.path.push(["A",n,n,0,1,f,d,p])):1e-6=Math.PI),f,e+n*Math.cos(r),t+n*Math.sin(r)])},t.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},t.Se=function(e){this.addPath(this.path,this.rb,e||0)},t.bezierCurveTo=function(e,t,n,i,r,o){this.path.push(["C",e,t,n,i,r,o])},t.clearRect=function(){},t.clip=function(){this.Yl.clipPath=!0},t.closePath=function(){this.path.push(["z"])},t.createLinearGradient=function(e,t,n,i){var r=new ms("linear");return r.x1=e,r.y1=t,r.x2=n,r.y2=i,r},t.createPattern=function(e){var t="";e instanceof HTMLCanvasElement&&(t=e.toDataURL()),e instanceof HTMLImageElement&&(t=e.getAttribute("src"));var n=this.eA;if(n[t])return"url(#"+n[t]+")";var i="PATTERN"+se++,r={x:0,y:0,width:e.width,height:e.height,href:t};return(e=this.Ud("pattern",{width:e.width,height:e.height,id:i,patternUnits:"userSpaceOnUse"})).appendChild(this.Ud(oa,r)),this.svg.appendChild(e),n[t]=i,"url(#"+i+")"},t.createRadialGradient=function(e,t,n,i,r,o){var a=new ms("radial");return a.x1=e,a.y1=t,a.r1=n,a.x2=i,a.y2=r,a.r2=o,a},t.drawImage=function(e,t,n,i,r,o,a,s,l){var c="";e instanceof HTMLCanvasElement&&(c=e.toDataURL()),e instanceof HTMLImageElement&&(c=e.getAttribute("src"));var u=e instanceof HTMLImageElement?e.naturalWidth:e.width;e=e instanceof HTMLImageElement?e.naturalHeight:e.height,void 0===i&&(o=t,a=n,s=i=u,l=r=e),ws(this,t,n,i=i||0,r=r||0,o||0,a||0,s=s||0,l=l||0),o={x:0,y:0,width:u||i,height:e||r,href:c},Zt.$(i,s)&&Zt.$(r,l)?-1===c.toLowerCase().indexOf(".svg")&&-1===c.toLowerCase().indexOf("data:image/svg")&&(o.preserveAspectRatio="xMidYMid slice"):o.preserveAspectRatio="none",0===t&&0===n&&i===u&&r===e||(i+=t,r+=n,o["clip-path"]="path('M "+t+","+n+" L "+i+" "+n+" L "+i+" "+r+" L "+t+" "+r+" z')"),Ss(this,oa,o,this.rb),this.addElement(oa,o)},t.fill=function(e){e&&(this.Yl["fill-rule"]="evenodd"),ks(this,this.Yl)},t.ng=function(e,t){this.clipInsteadOfFill?this.clip():this.fill(t)},t.fillRect=function(e,t,n,i){Ss(this,"fill",e={x:(e=[e,t,n,i])[0],y:e[1],width:e[2],height:e[3]},this.rb),this.addElement("rect",e)},t.ox=function(e,t,n,i){Ss(this,"fill",e={x:e,y:t,width:n,height:i},this.rb),ks(this,e),this.svg.prepend(this.Ud("rect",e))},t.fillText=function(e,t,n){e=[e,t,n],"left"===(t=this.textAlign)?t="start":"right"===t?t="end":"center"===t&&(t="middle"),Ss(this,"fill",t={x:e[1],y:e[2],style:"font: "+this.font,"text-anchor":t},this.rb),this.addElement("text",t,e[0])},t.lineTo=function(e,t){this.path.push(["L",e,t])},t.moveTo=function(e,t){this.path.push(["M",e,t])},t.quadraticCurveTo=function(e,t,n,i){this.path.push(["Q",e,t,n,i])},t.rect=function(e,t,n,i){this.path.push(["M",e,t],["L",e+n,t],["L",e+n,t+i],["L",e,t+i],["z"])},t.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var e=this.stack.pop();this.fillStyle=e.fillStyle,this.font=e.font,this.globalAlpha=e.globalAlpha,this.lineCap=e.lineCap,this.lineDashOffset=e.lineDashOffset,this.lineJoin=e.lineJoin,this.lineWidth=e.lineWidth,this.miterLimit=e.miterLimit,this.shadowBlur=e.shadowBlur,this.shadowColor=e.shadowColor,this.shadowOffsetX=e.shadowOffsetX,this.shadowOffsetY=e.shadowOffsetY,this.strokeStyle=e.strokeStyle,this.textAlign=e.textAlign,this.bk=e.bk},t.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var e=[],t=0;tn?(this.scale(n/e,1),this.translate((e-n)/2,0)):n>e&&(this.scale(1,e/n),this.translate(0,(n-e)/2)),this.Hm?this.clip():this.fill(t),e>n?(this.translate(-(e-n)/2,0),this.scale(1/(n/e),1)):n>e&&(this.translate(0,-(n-e)/2),this.scale(1,1/(e/n)))}else this.Hm?this.clip():this.fill(t)},t.jk=function(){this.Hm||this.stroke()},t.Ev=function(e,t,n){this.Ar=e,this.Br=t,this.Vg=n},t.js=function(e,t){var n=this.Z;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)},t.fs=function(){var e=this.Z;void 0!==e.setLineDash&&(e.setLineDash(Is),e.lineDashOffset=0)},t.Vc=function(e){e&&(this.dt=""),this.ct=this.et=""},t.Hs=function(){},d.Object.defineProperties(Ns.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(e){this.ct!==e&&(this.ct=this.Z.fillStyle=e)}},font:{get:function(){return this.Z.font},set:function(e){this.dt!==e&&(this.dt=this.Z.font=e)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(e){this.Z.globalAlpha=e}},lineCap:{get:function(){return this.Z.lineCap},set:function(e){this.Z.lineCap=e}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(e){this.Z.lineDashOffset=e}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(e){this.Z.lineJoin=e}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(e){this.Z.lineWidth=e}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(e){this.Z.miterLimit=e}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(e){this.Z.shadowBlur=e}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(e){this.Z.shadowColor=e}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(e){this.Z.shadowOffsetX=e}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(e){this.Z.shadowOffsetY=e}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(e){this.et!==e&&(this.et=this.Z.strokeStyle=e)}},textAlign:{get:function(){return this.Z.textAlign},set:function(e){this.Z.textAlign=e}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(e){this.Z.imageSmoothingEnabled=e}},filter:{get:function(){return this.Z.filter},set:function(e){this.Z.filter=""===e?"none":e}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(e){this.Hm=e}}});var Is=Object.freeze([]);function Bs(){this.F=this.o=this.u=this.j=0}function Rs(e,t){ul||(qs(),ul=!0),J(this),this._isFrozen=!1,void 0===e?(this.na=Ys,this.xk="black"):"string"==typeof e?(this.na=Ys,this.xk=e):(this.na=e,this.xk="black"),(e=this.na)===Xs?(this.Qd=tt,this.Lk=st):this.Lk=this.Qd=e===Qs?rt:Je,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,t&&Object.assign(this,t)}function Os(e,t,n){return t=void 0===t||"number"!=typeof t?.2:t,n=void 0===n?el:n,Hs(e),$s(t,n)}function Fs(e,t,n){return t=void 0===t||"number"!=typeof t?.2:t,n=void 0===n?el:n,Hs(e),$s(-t,n)}function zs(e,t,n){Hs(e),e=al.j;var i=al.u,r=al.o,o=al.F;return Hs(t),void 0===n&&(n=.5),"rgba("+Math.round((al.j-e)*n+e)+", "+Math.round((al.u-i)*n+i)+", "+Math.round((al.o-r)*n+r)+", "+Math.round((al.F-o)*n+o)+")"}function js(e){return!!e&&(e instanceof Rs?e.Gx():(Hs(e),128>(299*al.j+587*al.u+114*al.o)/1e3))}function $s(e,t){switch(t){case el:t=100*Ks(al.j);var n=100*Ks(al.u),i=100*Ks(al.o);return ll.j=.4124564*t+.3575761*n+.1804375*i,ll.u=.2126729*t+.7151522*n+.072175*i,ll.o=.0193339*t+.119192*n+.9503041*i,ll.F=al.F,t=Us(ll.j/rl[0]),n=Us(ll.u/rl[1]),i=Us(ll.o/rl[2]),cl.j=116*n-16,cl.u=500*(t-n),cl.o=200*(n-i),cl.F=ll.F,cl.j=Math.min(100,Math.max(0,cl.j+100*e)),t=(e=(cl.j+16)/116)-cl.o/200,ll.j=rl[0]*Vs(cl.u/500+e),ll.u=rl[1]*(cl.j>il*nl?Math.pow(e,3):cl.j/il),ll.o=rl[2]*Vs(t),ll.F=cl.F,e=-.969266*ll.j+1.8760108*ll.u+.041556*ll.o,t=.0556434*ll.j+-.2040259*ll.u+1.0572252*ll.o,al.j=255*Gs((3.2404542*ll.j+-1.5371385*ll.u+-.4985314*ll.o)/100),al.u=255*Gs(e/100),al.o=255*Gs(t/100),al.F=ll.F,al.j=Math.round(al.j),255al.j&&(al.j=0),al.u=Math.round(al.u),255al.u&&(al.u=0),al.o=Math.round(al.o),255al.o&&(al.o=0),"rgba("+al.j+", "+al.u+", "+al.o+", "+al.F+")";case tl:return Zs(),sl.o=Math.min(100,Math.max(0,sl.o+100*e)),"hsla("+sl.j+", "+sl.u+"%, "+sl.o+"%, "+sl.F+")";default:x("Unknown color space: "+t)}}function Hs(e){ul||(qs(),ul=!0);var t=ol;if(null!==t){t.clearRect(0,0,1,1),t.fillStyle="#000000";var n=t.fillStyle;t.fillStyle=e,t.fillStyle!==n?(t.fillRect(0,0,1,1),e=t.getImageData(0,0,1,1).data,al.j=e[0],al.u=e[1],al.o=e[2],al.F=e[3]/255):(t.fillStyle="#FFFFFF",t.fillStyle=e,al.j=0,al.u=0,al.o=0,al.F=1)}}function Zs(){var e=al.j/255,t=al.u/255,n=al.o/255,i=Math.max(e,t,n),r=Math.min(e,t,n),o=i-r;if(r=(i+r)/2,0===o)var a=e=0;else{switch(i){case e:a=(t-n)/o%6;break;case t:a=(n-e)/o+2;break;case n:a=(e-t)/o+4}0>(a*=60)&&(a+=360),e=o/(1-Math.abs(2*r-1))}sl.j=Math.round(a),sl.u=Math.round(100*e),sl.o=Math.round(100*r),sl.F=al.F}function Ks(e){return.04045>=(e/=255)?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Gs(e){return.0031308>=e?12.92*e:1.055*Math.pow(e,1/2.4)-.055}function Us(e){return e>nl?Math.pow(e,1/3):(il*e+16)/116}function Vs(e){var t=e*e*e;return t>nl?t:(116*e-16)/il}function Ws(e,t){"string"!=typeof e&&(e instanceof Rs||x("Value for "+t+" must be a color string or a Brush, not "+e))}function qs(){ol=jo?new Ds(null,void 0,{willReadFrequently:!0}).context:null}Ns.className="CanvasSurfaceContext",Bs.className="ColorNumbers",Rs.prototype.copy=function(){var e=new Rs;return e.na=this.na,e.xk=this.xk,e.Qd=this.Qd.J(),e.Lk=this.Lk.J(),e.Gr=this.Gr,e.Xp=this.Xp,null!==this.we&&(e.we=this.we.copy()),e.cr=this.cr,e},(t=Rs.prototype).freeze=function(){return this._isFrozen=!0,null!==this.we&&this.we.freeze(),this},t.ka=function(){return Object.isFrozen(this)&&x("cannot thaw constant: "+this),this._isFrozen=!1,null!==this.we&&this.we.ka(),this},t.qb=function(e){e.classType===Rs&&(this.type=e)},t.toString=function(){var e="Brush(";if(this.type===Ys)e+=this.color;else if(e=this.type===Xs?e+"Linear ":this.type===Qs?e+"Radial ":this.type===Js?e+"Pattern ":e+"(unknown) ",e+=this.start+" "+this.end,null!==this.colorStops)for(var t=this.colorStops.iterator;t.next();)e+=" "+t.key+":"+t.value;return e+")"},t.addColorStop=function(e,t){return this._isFrozen&&S(this),("number"!=typeof e||!isFinite(e)||1e)&&k(e,"0 <= loc <= 1",Rs,"addColorStop:loc"),null===this.we&&(this.we=new pe),this.we.add(e,t),this.na===Ys&&(this.type=Xs),this.xe=null,this},t.Vz=function(e,t){if(this._isFrozen&&S(this),e=void 0===e||"number"!=typeof e?.2:e,t=void 0===t?el:t,this.type===Ys)Hs(this.color),this.color=$s(e,t);else if((this.type===Xs||this.type===Qs)&&null!==this.colorStops)for(var n=this.colorStops.iterator;n.next();)Hs(n.value),this.addColorStop(n.key,$s(e,t));return this},t.Wy=function(e,t){if(this._isFrozen&&S(this),e=void 0===e||"number"!=typeof e?.2:e,t=void 0===t?el:t,this.type===Ys)Hs(this.color),this.color=$s(-e,t);else if((this.type===Xs||this.type===Qs)&&null!==this.colorStops)for(var n=this.colorStops.iterator;n.next();)Hs(n.value),this.addColorStop(n.key,$s(-e,t));return this},t.Gx=function(){if(this.type===Ys)return js(this.color);if((this.type===Xs||this.type===Qs)&&null!==this.colorStops){var e=this.colorStops;if(this.type===Qs)return js(e.first().value);if(null!==e.get(.5))return js(e.get(.5));if(2===e.count)return js(zs((e=e.Fa())[0].value,e[1].value));for(var t=e.iterator,n=-1,i=-1,r=1,o=1;t.next();){var a=t.key,s=Math.abs(.5-t.key);r>o&&s=r&&si&&(o=n,n=i,i=o,o=r),r=i-n,js(zs(e.get(n),e.get(i),1-o/r))}return!1},d.Object.defineProperties(Rs.prototype,{type:{get:function(){return this.na},set:function(e){this._isFrozen&&S(this,e),this.na=e,this.start.Mc()&&(e===Xs?this.start=tt:e===Qs&&(this.start=rt)),this.end.Mc()&&(e===Xs?this.end=st:e===Qs&&(this.end=rt)),this.xe=null}},color:{get:function(){return this.xk},set:function(e){this._isFrozen&&S(this,e),this.xk=e,this.xe=null}},start:{get:function(){return this.Qd},set:function(e){this._isFrozen&&S(this,e),this.Qd=e.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(e){this._isFrozen&&S(this,e),this.Lk=e.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(e){this._isFrozen&&S(this,e),0>e&&k(e,">= zero",Rs,"startRadius"),this.Gr=e,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(e){this._isFrozen&&S(this,e),0>e&&k(e,">= zero",Rs,"endRadius"),this.Xp=e,this.xe=null}},colorStops:{get:function(){return this.we},set:function(e){this._isFrozen&&S(this,e),this.we=e,this.xe=null}},pattern:{get:function(){return this.cr},set:function(e){this._isFrozen&&S(this,e),this.cr=e,this.xe=null}}}),Rs.prototype.isDark=Rs.prototype.Gx,Rs.prototype.darkenBy=Rs.prototype.Wy,Rs.prototype.lightenBy=Rs.prototype.Vz,Rs.prototype.addColorStop=Rs.prototype.addColorStop;var Ys,Xs,Qs,Js,el,tl,nl=216/24389,il=24389/27,rl=[95.047,100,108.883],ol=null,al=new Bs,sl=new Bs,ll=new Bs,cl=new Bs,ul=!1;function hl(){this.xa="Base"}function dl(){this.xa="Base"}function pl(){this.xa="Base"}function fl(){this.xa="Base"}function gl(){this.xa="Base"}function ml(e,t,n){var i=null;if(e instanceof El&&""!==e.$e&&((i=e.fb(e.$e))===e&&(i=null)),null!==i)for(n&&e.arrange(0,0,t.width,t.height),t.assign(i.actualBounds),i=i.panel;i!==e;)i.transform.pp(t),i=i.panel}function vl(){this.xa="Base"}function yl(){this.xa="Base",this.name="Table"}function bl(){this.xa="Base"}function wl(){this.xa="Base"}function xl(){this.xa="Base"}function Sl(){this.xa="Base"}function kl(e,t,n,i){if(0>t)return e%t===n;if(e%t!==n)return!1;t=i.length;for(var r=0;ra.height)continue}else if(c.position>a.width)continue;var u=c.separatorStrokeWidth;isNaN(u)&&(u=n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth);var h=c.separatorStroke;if(null===h&&(h=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),0!==u&&null!==h){Ka(e,t,h,!1,!1,a,o),h=!1;var d=c.separatorDashArray;null===d&&(d=n?e.defaultRowSeparatorDashArray:e.defaultColumnSeparatorDashArray),null!==d&&(h=!0,t.js(d,0)),t.beginPath(),d=c.position+u,n?d>a.height&&(u-=d-a.height):d>a.width&&(u-=d-a.width),c=c.position+u/2,t.lineWidth=u,u=e.yb,n?(c+=u.top,d=a.width-u.right,t.moveTo(u.left,c),t.lineTo(d,c)):(c+=u.left,d=a.height-u.bottom,t.moveTo(c,u.top),t.lineTo(c,d)),t.stroke(),t.Se(),h&&t.fs()}}}}function Al(e,t,n,i,r){for(var o=i.length,a=e.actualBounds,s=e.naturalBounds,l=Tl(e,!0),c=Tl(e,!1),u=0;ud)){var p=h.Wc(),f=h.separatorStrokeWidth;isNaN(f)&&(f=n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth);var g=h.separatorStroke;null===g&&(g=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),null!==g&&h.index!==(n?l:c)||(f=0),p-=f,(f=h.position+f)+(p+=h.actual)>d&&(p=d-f),0>=p||(d=e.yb,Ka(e,t,h.background,!0,!1,s,a),n?t.fillRect(d.left,f+d.top,a.width-(d.left+d.right),p):t.fillRect(f+d.left,d.top,p,a.height-(d.top+d.bottom)))}}}}function Tl(e,t){for(var n=t?e.rowCount:e.columnCount,i=0;il.width||s.y>l.height||0>s.x+s.width||0>s.y+s.height||(a instanceof El&&$l(a,t,n,i),null!==t&&(a=t(a)),null===a||null!==n&&!n(a)||i.add(a))}}}function Hl(e){var t=null;return e instanceof fc&&((t=e.spot1)===_t&&(t=null),null!==(e=e.geometry)&&null===t&&(t=e.spot1)),null===t&&(t=et),t}function Zl(e){var t=null;return e instanceof fc&&((t=e.spot2)===_t&&(t=null),null!==(e=e.geometry)&&null===t&&(t=e.spot2)),null===t&&(t=lt),t}function Kl(e,t){e.l=t?16777216|e.l:-16777217&e.l}function Gl(e,t,n){var i=e.rowDefs;if(!(0>t)){if(i[t]=n instanceof lc?n:void 0,!n)for(t=i.length-1;0<=t&&void 0===i[t--];)i.length--;e.v()}}function Ul(e,t,n){var i=e.colDefs;if(!(0>t)){if(i[t]=n instanceof lc?n:void 0,!n)for(t=i.length-1;0<=t&&void 0===i[t--];)i.length--;e.v()}}function Vl(e){return null!==(e=e.allBindings)&&e._isFrozen}function Wl(e){var t=e.allBindings;if(null===t)null!==e.data&&x("Template cannot have .data be non-null: "+e),e.allBindings=t=new Y;else if(t._isFrozen)return;var n=new Y;Kl(e,!1),e.qm(e,(function(e,i){i.th();var r=i.localBindings;if(null!==r)for(Qa(i,!1),r=r.iterator;r.next();){var o=r.value;o.mode===Gp&&Qa(i,!0);var a=o.sourceName;null!==a&&("/"===a&&Kl(e,!0),null!==(a=Hp(o,e,i))&&(n.add(a),null===a.srcBindings&&(a.srcBindings=new Y),a.srcBindings.add(o))),t.add(o)}if(i instanceof El&&i.type===El.Table){if(0n;)e.pc(e.O.length-1,!1);else if(e.O.length<=n){n=t.length;for(var i=0;in)){var r=Jl(e,t);if(null!==(r=ec(e,r))){if(Wl(r),0!=(16777216&(r=r.copy()).l)){var o=e.ih();null!==o&&Kl(o,!0)}"object"==typeof t&&(null===e.ge&&(e.ge=new pe),e.ge.add(t,r)),o=n+ql(e),e.Gb(o,r),i&&(r.ub=t,Ql(e,o,n),r.ub=null),r.data=t}}}function Ql(e,t,n){for(e=e.O;tt.length&&(t="0"+t),2>i.length&&(i="0"+i),2>e.length&&(e="0"+e),"#"+t+i+e},Rs.isValidColor=function(e){if("black"===e)return!0;if(""===e)return!1;ul||(qs(),ul=!0);var t=ol;if(null===t)return!0;t.fillStyle="#000000";var n=t.fillStyle;return t.fillStyle=e,t.fillStyle!==n||(t.fillStyle="#FFFFFF",n=t.fillStyle,t.fillStyle=e,t.fillStyle!==n)},Rs.lighten=function(e){return Os(e)},Rs.lightenBy=Os,Rs.darken=function(e){return Fs(e)},Rs.darkenBy=Fs,Rs.mix=zs,Rs.isDark=js,hl.prototype.measure=function(){},hl.prototype.Yz=function(e,t,n,i,r){e.measure(t,n,i,r)},hl.prototype.arrange=function(){},hl.prototype.Ly=function(e,t,n,i,r,o){e.arrange(t,n,i,r,o)},hl.prototype.iA=function(e){e.Uj()},hl.prototype.gc=function(){},d.Object.defineProperties(hl.prototype,{name:{get:function(){return this.xa},set:function(e){this.xa=e}},classType:{get:function(){return El}}}),hl.prototype.remeasureObject=hl.prototype.iA,hl.prototype.arrangeElement=hl.prototype.Ly,hl.prototype.measureElement=hl.prototype.Yz,hl.className="PanelLayout",h(dl,hl),dl.prototype.measure=function(e,t,n,i,r,o,a){var s=i.length;e=Nl(e);for(var l=0;l_&&(O=Math.max(_-re,0));var oe=0===E.oa;E.oc=E.oc+O,E.actual=E.oa+O,_=Math.max(_-(O+(oe?re:0)),0)}if(1===U.columnSpan&&(X===da||X===ga)){var ae=(E=e.Eb($)).Wc();(O=Math.max(ne-E.actual,0))+ae>k&&(O=Math.max(k-ae,0));var se=0===E.oa;E.oc=E.oc+O,E.actual=E.oa+O,k=Math.max(k-(O+(se?ae:0)),0)}V&&U.Uj()}}}}}T(y);var le=0,ce=0;o=e.columnCount;for(var ue=0;ue=e.rowCount);tt++)E=e.Fb(Ye.row+tt),O=0,O=X===ha||X===ga?Math.max(E.minimum,0===Ze[Ye.row+tt]?E.maximum:Math.min(Ze[Ye.row+tt],E.maximum)):Math.max(E.minimum,isNaN(E.Hc)?E.maximum:Math.min(E.Hc,E.maximum)),He.height+=O,et+=E.minimum;for(var nt=1;nt=e.columnCount);nt++)E=e.Eb(Ye.column+nt),O=0,O=X===ha||X===fa?Math.max(E.minimum,0===Ke[Ye.column+nt]?E.maximum:Math.min(Ke[Ye.column+nt],E.maximum)):Math.max(E.minimum,isNaN(E.Hc)?E.maximum:Math.min(E.Hc,E.maximum)),He.width+=O,Je+=E.minimum;Ee.width+=He.width,Ee.height+=He.height;var it=Ye.margin,rt=it.right+it.left,ot=it.top+it.bottom;Ye.measure(Ee.width,Ee.height,Je,et);for(var at=Ye.measuredBounds,st=Math.max(at.width+rt,0),lt=Math.max(at.height+ot,0),ct=0,ut=0;ut=e.rowCount);ut++)ct+=(E=e.Fb(Ye.row+ut)).total||0;if(ct=ht)&&!(Ye.row+ft>=e.rowCount);ft++){var gt=(E=e.Fb(Ye.row+ft)).oa||0,mt=pt(Ye,E,dt);E.actual=Math.min(E.maximum,gt+mt),E.oa!==gt&&(ht-=E.oa-gt)}for(;0vt&&(E.actual=Math.min(E.maximum,vt+ht),E.oa!==vt&&(ht-=E.oa-vt)),0===E.index)break;E=e.Fb(E.index-1)}}for(var yt=0,bt=0;bt=e.columnCount);bt++)yt+=(E=e.Eb(Ye.column+bt)).total||0;if(yt=wt)&&!(Ye.column+kt>=e.columnCount);kt++){var _t=(E=e.Eb(Ye.column+kt)).oa||0,Ct=St(Ye,E,xt);E.actual=Math.min(E.maximum,_t+Ct),E.oa!==_t&&(wt-=E.oa-_t)}for(;0Pt&&(E.actual=Math.min(E.maximum,Pt+wt),E.oa!==Pt&&(wt-=E.oa-Pt)),0===E.index)break;E=e.Eb(E.index-1)}}}}T(b),Ae.free(He),Ae.free(Ee),void 0!==Ze&&T(Ze),void 0!==Ke&&T(Ke);var Et=0,Mt=0,Lt=e.desiredSize,At=e.maxSize;X=Va(e,!0);var Tt=ce=le=0,Dt=0;o=e.columnCount;for(var Nt=0;Nt=e.rowCount);E++){var M=e.Fb(y+E);0!==M.oa&&(v.height+=M.total)}for(E=1;E=e.columnCount);E++)0!==(M=e.Eb(w+E)).oa&&(v.width+=M.total);var L=x.oa+v.width,A=b.oa+v.height;E=s,M=l;var T=L,D=A,N=s,I=l,B=L,R=A;s+L>n.width&&(B=Math.max(n.width-s,0)),l+A>n.height&&(R=Math.max(n.height-l,0));var O=C.alignment;if(O.Xb()){(O=e.defaultAlignment).sb()||(O=rt);var F=O.x,z=O.y,j=O.offsetX;O=O.offsetY;var $=x.alignment,H=b.alignment;$.sb()&&(F=$.x,j=$.offsetX),H.sb()&&(z=H.y,O=H.offsetY)}else F=O.x,z=O.y,j=O.offsetX,O=O.offsetY;(isNaN(F)||isNaN(z))&&(z=F=.5,O=j=0),$=P.width,H=P.height;var Z=C.margin,K=Z.left+Z.right,G=Z.top+Z.bottom,U=Wa(C,b,x,!1);!isNaN(C.desiredSize.width)||U!==ha&&U!==fa||($=Math.max(L-K,0)),!isNaN(C.desiredSize.height)||U!==ha&&U!==ga||(H=Math.max(A-G,0)),L=C.maxSize,A=C.minSize,$=Math.min(L.width,$),H=Math.min(L.height,H),$=Math.max(A.width,$),L=(H=Math.max(A.height,H))+G,E+=T*F-($+K)*F+j+Z.left,M+=D*z-L*z+O+Z.top,C.visible&&(Ze(N,I,B,R,E,M,P.width,P.height)?C.arrange(E,M,$,H):C.arrange(E,M,$,H,new Ie(N,I,B,R)))}}for(Ae.free(v),e=0;e=(n=e.Df()*n.scale)&&(n=1);var i=e.gridCellSize,r=i.width;i=i.height;var o=e.naturalBounds,a=e.actualBounds,s=o.width,l=o.height,c=Math.ceil(s/r),u=Math.ceil(l/i),h=e.gridOrigin,d=h.x;h=h.y,t.save(),t.beginPath(),t.rect(0,0,s,l),t.clip(),t.Se();for(var p=[],f=e.O.s,g=f.length,m=0;mb)){v=Dl(v.figure);for(var w=0;wb&&y.push(x))}}}}for(g=(f=e.O.s).length,m=0;mr*(v=Math.abs(y))*n))){if(b=S.segmentIndex,isFinite(b)&&!isNaN(b)||(b=0),0>b&&(b=v-Math.min(-b,v)),b=Math.round(b%v),w=1,1!==(v=S.opacity)){if(0===v)continue;w=t.globalAlpha,t.globalAlpha=w*v}x=p[m];var k=!1,_=S.strokeDashArray;if(null!==_&&(k=!0,t.js(_,S.strokeDashOffset)),"LineV"===S.figure&&null!==S.stroke&&0h)y.measure(1/0,1/0,0,0),b=y.measuredBounds,n.ed(b),p.push(b);else{var w=y.segmentIndex,x=y.segmentFraction,S=y.alignmentFocus;S.Mc()&&(S=rt);var k=y.segmentOrientation,_=y.segmentOffset;if(isNaN(w)){var C=l.ua;b=A(),C.Qu(x,b);var P=fe.allocAt(b[0],b[1]);if(P.add(l.i(0)),C.type===Kt.j?P.offset(-C.startX,-C.startY):null!==(C=C.figures.first())&&P.offset(-C.startX,-C.startY),C=b[2],k!==Wh){var E=l.computeAngle(y,k,C);y.Kb=E}E=P.x-t.x;var M=P.y-t.y;fe.free(P),T(b)}else if(w<-h||w>=h)b=fe.alloc(),l.vg(),l.computeMidPoint(b),C=l.midAngle,k!==Wh&&(E=l.computeAngle(y,k,C),y.Kb=E),E=b.x-t.x,M=b.y-t.y,fe.free(b);else{if(E=0,0<=w?(M=u.M(w),b=wL+10?0<=w?C.ab(M):M.ab(C):L>P+10?0<=w?b.ab(E):E.ab(b):0<=w?C.ab(E):E.ab(C)}else C=0<=w?M.ab(b):b.ab(M);k!==Wh&&(E=l.computeAngle(y,k,C),y.Kb=E),E=M.x+(b.x-M.x)*x-t.x,M=M.y+(b.y-M.y)*x-t.y}y.measure(1/0,1/0,0,0),b=y.measuredBounds,P=y.naturalBounds;var D=0;y instanceof fc&&(D=y.strokeWidth),L=P.width+D;var N=P.height+D;f.reset(),f.translate(-b.x,-b.y),f.scale(y.scale,y.scale),f.rotate(k===Wh?y.angle:C,L/2,N/2),k!==nd&&k!==ad||f.rotate(90,L/2,N/2),k!==id&&k!==sd||f.rotate(-90,L/2,N/2),k===ld&&(45C||225C)&&f.rotate(-C,L/2,N/2),P=new Ie(0,0,L,N),g.xi(P,S),f.Ga(g),S=-g.x+D/2*y.scale,y=-g.y+D/2*y.scale,m.assign(_),D=isNaN(_.x);var I=isNaN(_.y);if(D||I){L=L/2+3,N=N/2+3;var B=45<=C&&135>=C,R=225<=C&&315>=C;k===Wh&&(B||R)?(m.x=I?L:_.y,m.y=D?N:_.x,B?0<=w||isNaN(w)&&.5>x||!D||(m.y=-N):R&&((0<=w||isNaN(w)&&.5>x)&&D&&(m.y=-N),I&&(m.x=-L))):(D&&(m.x=0<=w||isNaN(w)&&.5>x?L:-L),I&&(m.y=-N),m.rotate(C))}else m.rotate(C);E+=m.x,M+=m.y,P.set(b),P.h(E+S,M+y,b.width,b.height),p.push(P),n.ed(P)}}if(null!==a)for(i=a.labelNodes;i.next();)i.value.measure(1/0,1/0);e.jg=n,e.position.h(t.x+n.x,t.y+n.y),Be(r,n.width||0,n.height||0),$t.free(f),fe.free(g),fe.free(m)}}}},_l.prototype.arrange=function(e,t){var n=t.length;if(e instanceof Vu||e instanceof xh){var i=e,r=null;e instanceof Vu&&(i=(r=e).adornedPart);var o=e instanceof Vu?null:i.path,a=e.j;if(0!==a.length){var s=0;if(null!==o&&s=n)m=f=fe.alloc(),(p=h).vg(),p.computeMidPoint(m),p=h.midAngle,c!==Wh&&(h=h.computeAngle(a,c,p),a.angle=h),h=f.x,m=f.y,fe.free(f);else{if(g=0,0<=s?(f=t.s[s],m=sy+10?0<=s?p.ab(f):f.ab(p):y>v+10?0<=s?m.ab(g):g.ab(m):0<=s?p.ab(g):g.ab(p)}else p=0<=s?f.ab(m):m.ab(f);c!==Wh&&(h=h.computeAngle(a,c,p),a.angle=h),h=f.x+(m.x-f.x)*l,m=f.y+(m.y-f.y)*l}if(d.ys())a.location=new fe(h,m);else{d.Mc()&&(d=rt),(f=$t.alloc()).reset(),f.scale(a.scale,a.scale),f.rotate(a.angle,0,0);var b=a.naturalBounds;g=Ie.allocAt(0,0,b.width,b.height),(v=fe.alloc()).xi(g,d),f.Ga(v),d=-v.x,y=-v.y;var w=b.width,x=b.height;(b=fe.alloc()).assign(u);var S=isNaN(u.x),k=isNaN(u.y);if(S||k){w=w/2+3,x=x/2+3;var _=45<=p&&135>=p,C=225<=p&&315>=p;c===Wh&&(_||C)?(b.x=k?w:u.y,b.y=S?x:u.x,_?0<=s||isNaN(s)&&.5>l||!S||(b.y=-x):C&&((0<=s||isNaN(s)&&.5>l)&&S&&(b.y=-x),k&&(b.x=-w))):(S&&(b.x=0<=s||isNaN(s)&&.5>l?w:-w),k&&(b.y=-x),b.rotate(p))}else b.rotate(p);h+=b.x,m+=b.y,f.pp(g),d+=g.x,y+=g.y,s=fe.allocAt(h+d,m+y),a.move(s),fe.free(s),fe.free(b),fe.free(v),Ie.free(g),$t.free(f)}}null!==r?r.Ul(!1):i.Ul(!1),i=Mu(e),e.location.h(e.position.x+i.x,e.position.y+i.y),fe.free(i)}},h(Pl,hl),Pl.prototype.measure=function(e,t,n,i,r,o,a){var s=e.Pb();e.graduatedBounds=[];var l=s.margin,c=l.right+l.left,u=l.top+l.bottom;s.measure(t,n,o,a);var h=s.measuredBounds,d=new Ie(-l.left,-l.top,Math.max(h.width+c,0),Math.max(h.height+u,0));e.graduatedBounds.push(d),r.assign(d);for(var p=s.geometry,f=s.strokeWidth,g=p.flattenedSegments,m=p.flattenedLengths,v=p.flattenedTotalLength,y=g.length,b=0,w=0,x=A(),S=0;SL&&(L+=360),_.push(L)}b=E,w=M}x.push(_)}if(null===e.graduatedIntervals){for(var D=[],N=e.O.s,I=N.length,B=0;BF))for(var z=0;zF&&O.push($)}}}}e.graduatedIntervals=D}var H=e.graduatedIntervals,Z=e.O.s,K=Z.length,G=0,U=0,V=v;e.graduatedMarks=[];for(var W,q=0;qQ*X*v/e.graduatedRange&&null===Y.graduatedSkip)){var J=m[0][0],ee=0,te=0;U=v*Y.graduatedStart-1e-4,V=v*Y.graduatedEnd+1e-4;var ne=Q*X,ie=e.graduatedTickBase;if(iee.graduatedMin+ne&&(ie-=Math.floor((ie-e.graduatedMin)/ne)*ne);for(var oe=H[q],ae=ie,se=1e-6*e.graduatedMax,le=1;ie<=e.graduatedMax+se;le++){e:{for(var ce=oe.length,ue=0;ue-de){var pe=!1;break e}}pe=!0}if(pe&&(ie>e.graduatedMax&&(ie=e.graduatedMax),null===Y.graduatedSkip||Y instanceof Pc&&!Y.graduatedSkip(ie,Y)||Y instanceof fc&&!Y.graduatedSkip(ie,Y))&&((G=(ie-e.graduatedMin)*v/e.graduatedRange)>v&&(G=v),U<=G&&G<=V)){for(var ge=x[ee][te],me=m[ee][te];eeJ&&tewe&&.4995we?0we||.9995Ce){var Pe=1-Math.abs(.5-we);ge=(Se*Pe+_e*(1-Pe))%360;break e}}}ge=Se}if(Y instanceof Pc){var Ee="";null!==Y.graduatedFunction?Ee=null!=(Ee=Y.graduatedFunction(ie,Y))?Ee.toString():"":Ee=(+ie.toFixed(2)).toString(),""!==Ee&&W.push({$l:xe,angle:ge,text:Ee})}else W.push({$l:xe,angle:ge})}ie=ae+le*ne}}}e.graduatedMarks.push(W)}T(x);var Me=e.graduatedMarks;if(null!==Me)for(var Le=i.length,Ae=0;AeJe;Je++){switch(Je){case 0:Ze.h(Ke,Ge);break;case 1:Ze.h(Ke+ze,Ge);break;case 2:Ze.h(Ke,Ge+je);break;case 3:Ze.h(Ke+ze,Ge+je)}Ze.rotate(Qe+Te.angle),Ze.offset(Ye,Xe),0===We&&0===Je?Ue.h(Ze.x,Ze.y,0,0):Ue.Ye(Ze),Ze.offset(-Ye,-Xe),Ze.rotate(-Qe-Te.angle)}fe.free(Ze),null!==Ne.graduatedBounds&&Ne.graduatedBounds.push(Ue),He(Be,Ue.x,Ue.y,Ue.width,Ue.height)}else if(Te instanceof Pc){var et=e,nt=r;null===et.temporaryTextBlock&&(et.temporaryTextBlock=new Pc);var it=et.temporaryTextBlock;Mc(it,Te);var rt=Te.alignmentFocus;rt.Mc()&&(rt=tt);for(var ot=Te.segmentOrientation,at=Te.segmentOffset,st=new Ie,lt=0,ct=0,ut=0,ht=0,dt=0,pt=De.length,ft=0;ftut||225ut)&&wt.rotate(-ut,yt/2,bt/2);var xt=Ie.allocAt(0,0,yt,bt),St=fe.alloc();St.xi(xt,rt),wt.Ga(St);var kt=-St.x,_t=-St.y,Ct=fe.alloc();Ct.assign(at),isNaN(Ct.x)&&(Ct.x=yt/2+3),isNaN(Ct.y)&&(Ct.y=-(bt/2+3)),Ct.rotate(ut);var Pt=new Ie(lt+=Ct.x+kt,ct+=Ct.y+_t,mt.width,mt.height),Et=new Ie(mt.x,mt.y,mt.width,mt.height),Mt=new Ie(vt.x,vt.y,vt.width,vt.height);gt.Sz=ht,gt.lineCount=it.lineCount,gt.lines=[it.Cb,it.Ih,it.df,it.Le,it.Qc,it.Qb,it.ze],gt.actualBounds=Pt,gt.measuredBounds=Et,gt.naturalBounds=Mt,0===ft?st.assign(Pt):st.ed(Pt),fe.free(Ct),fe.free(St),Ie.free(xt),$t.free(wt)}null!==et.graduatedBounds&&et.graduatedBounds.push(st),He(nt,st.x,st.y,st.width,st.height)}ns(Te,!1)}}},Pl.prototype.arrange=function(e,t,n){if(null!==e.graduatedBounds){var i=e.Pb(),r=e.graduatedMarks;if(null!==r){var o=e.graduatedBounds,a=0,s=o[a];a++,null!==i&&i.arrange(s.x-n.x,s.y-n.y,s.width,s.height);for(var l=t.length,c=0;c=(a=e.Df()*n.scale)&&(a=1);for(var s=o.actualBounds,l=e.O.s,c=e.graduatedMarks,u=l.length,h=0;he.graduatedTickUnit*d.interval*o.geometry.flattenedTotalLength/e.graduatedRange*a&&null===d.graduatedSkip)){var g=d.measuredBounds,m=d.strokeWidth*d.scale,v=d.alignmentFocus;v.Mc()&&(v=tt);for(var y=0;yi&&r.set(f),fe.free(f)),fe.free(u),o&&r.transform(a),c},t.Gj=function(){for(var e=this.O.s,t=e.length,n=0;nn||o>i)&&(this.v(),this.measure(t>n?n:t,o>i?i:o,0,0));break;case ha:this.v(!0),this.measure(n+s,i+a,0,0);break;case fa:this.v(!0),this.measure(n+s,o+a,0,0);break;case ga:this.v(!0),this.measure(t+s,i+a,0,0)}}this.na.arrange(this,r,this.jg)}},t.gh=function(e){var t=this.naturalBounds,n=Nl(this);if(Ze(0,0,t.width,t.height,e.x,e.y)){for(var i=(t=this.O.s).length,r=fe.allocAt(0,0);i--;){var o=t[i];if((o.visible||o===n)&&(ye(r.set(e),o.transform),o.ca(r)))return fe.free(r),!0}return fe.free(r),null!==this.Ma||null!==this.areaBackground}return!1},t.ks=function(e){if(this.bindingId===e)return this;for(var t=this.O.s,n=t.length,i=0;id.width||h.y>d.height||0>h.x+h.width||0>h.y+h.height||(h=u,u=u instanceof El?u:null,(d=$t.alloc()).set(a),(null!==u?u.Cf(e,t,n,i,r,d):Ra(h,e,i,d))&&(null!==t&&(h=t(h)),null===h||null!==n&&!n(h)||r.add(h)),$t.free(d))}}return void 0===o&&$t.free(a),i}return void 0===o&&$t.free(a),!1},t.og=function(e,t,n,i,r,o){if(!1===this.pickable)return!1;void 0===n&&(n=null),void 0===i&&(i=null);var a=this.naturalBounds,s=this.se(),l=s?e:ye(fe.allocAt(e.x,e.y),this.transform),c=s?t:ye(fe.allocAt(t.x,t.y),this.transform),u=l.Bf(c),h=0m.width||g.y>m.height||0>g.x+g.width||0>g.y+g.height)||(f.se()?(g=f.transform,ye(l.set(e),g),ye(c.set(t),g)):(l.set(e),c.set(t)),g=f,(null!==(f=f instanceof El?f:null)?f.og(l,c,n,i,r,o):g.tx(l,c,r))&&(null!==n&&(g=n(g)),null===g||null!==i&&!i(g)||o.add(g)))}}fe.free(l),fe.free(c)}return r?h:a}return!1},t.add=function(e){for(var t=[],n=0;n=r.count&&e>=r.count)return;r.mb(o),i=o}else x("element "+t.toString()+" has panel "+n.toString()+" but is not contained by it.")}(0>e||e>r.count)&&(e=r.count),r.Gb(e,t),(0===e||t.isPanelMain)&&(this.$g=null),ts(this)||this.v(),t.v(!1),(null!==t.portId||t instanceof El&&!0===t.Te)&&(this.Te=!0),this.graduatedIntervals=null,this.If()||tc(this,t,!1),null!==(n=this.part)&&(n.Rh=null,n.ag=NaN,this.Te&&n instanceof qu&&(n.Te=!0),n.Te&&n instanceof qu&&(n.wc=null),null!==(r=this.diagram)&&r.undoManager.isUndoingRedoing||(-1!==i&&n.cb(gn,"elements",this,t,null,i,null),n.cb(fn,"elements",this,null,t,null,e)))},t.remove=function(e){for(var t=this.O.s,n=t.length,i=-1,r=0;re&&k(e,">= 0",El,"getRowDefinition:idx"),e=Math.round(e);var t=this.rowDefs;if(void 0===t[e]){var n=new lc;n.wi(this),n.isRow=!0,n.index=e,t[e]=n,this.cb(fn,"rowdefs",this,null,n,null,e)}return t[e]},t.oA=function(e){if(0>e&&k(e,">= 0",El,"removeRowDefinition:idx"),0!==this.rowCount){e=Math.round(e);var t=this.rowDefs,n=t[e];if(n){t[e]=void 0;for(var i=t.length-1;0<=i&&void 0===t[i--];)t.length--;this.cb(gn,"rowdefs",this,n,null,e,null),this.v()}}},t.Eb=function(e){0>e&&k(e,">= 0",El,"getColumnDefinition:idx"),e=Math.round(e);var t=this.colDefs;if(void 0===t[e]){var n=new lc;n.wi(this),n.isRow=!1,n.index=e,t[e]=n,this.cb(fn,"coldefs",this,null,n,null,e)}return t[e]},t.jA=function(e){if(0>e&&k(e,">= 0",El,"removeColumnDefinition:idx"),0!==this.columnCount){e=Math.round(e);var t=this.colDefs,n=t[e];if(n){t[e]=void 0;for(var i=t.length-1;0<=i&&void 0===t[i--];)t.length--;this.cb(gn,"coldefs",this,n,null,e,null),this.v()}}},t.Gy=function(e){var t=null;return e.isRow?t=this.Fb(e.index):e.isRow||(t=this.Eb(e.index)),t&&cc(t,e),this},t.Hy=function(e,t){return(e=this.Fb(e))&&cc(e,new lc(t)),this},t.By=function(e,t){return(e=this.Eb(e))&&cc(e,new lc(t)),this},t.nz=function(e){if(0>e||this.type!==El.Table||0===this.rowCount)return-1;for(var t=0,n=this.rowDefs,i=n.length,r=this.topIndex;re||this.type!==El.Table||0===this.columnCount)return-1;for(var t=0,n=this.colDefs,i=n.length,r=this.leftIndex;re;)this.pc(this.O.length-1,!1);Yl(this,this.itemArray)},d.Object.defineProperties(El.prototype,{type:{get:function(){return this.na},set:function(e){var t=this.na;t!==e&&(this.na=e,this.isAtomic=this.na===El.Grid,this.v(),this.g("type",t,e))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(e){"number"==typeof e?(0>e&&k(e,">= 0",El,"padding"),e=new We(e)):(0>e.left&&k(e.left,">= 0",El,"padding:value.left"),0>e.right&&k(e.right,">= 0",El,"padding:value.right"),0>e.top&&k(e.top,">= 0",El,"padding:value.top"),0>e.bottom&&k(e.bottom,">= 0",El,"padding:value.bottom"));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.v(),this.g("padding",t,e))}},defaultAlignment:{get:function(){return this.Tm},set:function(e){var t=this.Tm;t.D(e)||(this.Tm=e=e.J(),this.v(),this.g("defaultAlignment",t,e))}},defaultStretch:{get:function(){return this.Uf},set:function(e){var t=this.Uf;t!==e&&(this.Uf=e,this.v(),this.g("defaultStretch",t,e))}},defaultSeparatorPadding:{get:function(){return null!==this.T?this.T.Qp:Xe},set:function(e){"number"==typeof e&&(e=new We(e));var t=this.defaultSeparatorPadding;t.D(e)||(e=e.J(),null===this.T&&(this.T=new sc),this.T.Qp=e,this.v(),this.g("defaultSeparatorPadding",t,e))}},defaultRowSeparatorStroke:{get:function(){return null!==this.T?this.T.ia:null},set:function(e){var t=this.defaultRowSeparatorStroke;t!==e&&(null===e||"string"==typeof e||e instanceof Rs)&&(e instanceof Rs&&e.freeze(),null===this.T&&(this.T=new sc),this.T.ia=e,this.N(),this.g("defaultRowSeparatorStroke",t,e))}},defaultRowSeparatorStrokeWidth:{get:function(){return null!==this.T?this.T.Ha:1},set:function(e){var t=this.defaultRowSeparatorStrokeWidth;t!==e&&isFinite(e)&&0<=e&&(null===this.T&&(this.T=new sc),this.T.Ha=e,this.v(),this.g("defaultRowSeparatorStrokeWidth",t,e))}},defaultRowSeparatorDashArray:{get:function(){return null!==this.T?this.T.V:null},set:function(e){var t=this.defaultRowSeparatorDashArray;if(t!==e){if(null!==e){for(var n=e.length,i=0,r=0;re)&&x("Panel.topIndex must be greater than zero and a real number, not: "+e),null===this.T&&(this.T=new sc),this.T.Hb=e,this.v(),this.g("topIndex",t,e))}},leftIndex:{get:function(){return null!==this.T?this.T.hb:0},set:function(e){var t=this.leftIndex;t!==e&&((!isFinite(e)||0>e)&&x("Panel.leftIndex must be greater than zero and a real number, not: "+e),null===this.T&&(this.T=new sc),this.T.hb=e,this.v(),this.g("leftIndex",t,e))}},data:{get:function(){return this.ub},set:function(e){var t=this.ub;if(t!==e){var n=this instanceof Su&&!(this instanceof Vu);Wl(this),this.ub=e;var i=this.diagram;null!==i&&(n?(n=i.partManager,this instanceof xh?(null!==t&&n.bf.remove(t),null!==e&&n.bf.add(e,this)):this instanceof Su&&(null!==t&&n.cf.remove(t),null!==e&&n.cf.add(e,this))):null!==(n=this.panel)&&null!==n.ge&&(null!==t&&n.ge.remove(t),null!==e&&n.ge.add(e,this))),this.g("data",t,e),null!==i&&i.undoManager.isUndoingRedoing||null!==e&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(e){var t=this.zn;t!==e&&(this.zn=e,this.g("itemIndex",t,e))}},allBindings:{get:function(){return null!==this.A?this.A.nb:null},set:function(e){this.localBindings!==e&&(null===this.A&&(this.A=new ds),this.A.nb=e)}},itemArray:{get:function(){return this.Hh},set:function(e){var t=this.Hh;if(t!==e||null!==e&&function(e,t){for(var n=(e=e.O.s).length,i=t.length,r=0,o=null;re&&k(e,">= 0",lc,"height"),this.Hc=e,this.actual=this.oa,null!==this.panel&&this.panel.v(),this.Ob("height",t,e))}},width:{get:function(){return this.Hc},set:function(e){var t=this.Hc;t!==e&&(0>e&&k(e,">= 0",lc,"width"),this.Hc=e,this.actual=this.oa,null!==this.panel&&this.panel.v(),this.Ob("width",t,e))}},minimum:{get:function(){return this.jj},set:function(e){var t=this.jj;t!==e&&((0>e||!isFinite(e))&&k(e,">= 0",lc,"minimum"),this.jj=e,this.actual=this.oa,null!==this.panel&&this.panel.v(),this.Ob("minimum",t,e))}},maximum:{get:function(){return this.hj},set:function(e){var t=this.hj;t!==e&&(0>e&&k(e,">= 0",lc,"maximum"),this.hj=e,this.actual=this.oa,null!==this.panel&&this.panel.v(),this.Ob("maximum",t,e))}},alignment:{get:function(){return this.Jb},set:function(e){var t=this.Jb;t.D(e)||(this.Jb=e.J(),null!==this.panel&&this.panel.v(),this.Ob("alignment",t,e))}},stretch:{get:function(){return this.hg},set:function(e){var t=this.hg;t!==e&&(this.hg=e,null!==this.panel&&this.panel.v(),this.Ob("stretch",t,e))}},separatorPadding:{get:function(){return this.dg},set:function(e){"number"==typeof e&&(e=new We(e));var t=this.dg;null!==e&&null!==t&&t.D(e)||(null!==e&&(e=e.J()),this.dg=e,null!==this.panel&&this.panel.v(),this.Ob("separatorPadding",t,e))}},separatorStroke:{get:function(){return this.lo},set:function(e){var t=this.lo;t!==e&&(null!==e&&Ws(e,"RowColumnDefinition.separatorStroke"),e instanceof Rs&&e.freeze(),this.lo=e,null!==this.panel&&this.panel.v(),this.Ob("separatorStroke",t,e))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(e){var t=this.mo;t!==e&&(this.mo=e,null!==this.panel&&this.panel.v(),this.Ob("separatorStrokeWidth",t,e))}},separatorDashArray:{get:function(){return this.tj},set:function(e){var t=this.tj;if(t!==e){if(null!==e){for(var n=e.length,i=0,r=0;rr)){var o=i.measuredBounds,a=Math.max(1,o.width);o=o.height;for(var s,l,c,u,h,d,p=n[0],f=n[1],g=0,m=A(),v=2;vc&&(c=1),r=n=c,l=0!==(s=a/2),c=(d=m[v=0])[0],h=d[1],u=d[2],d=d[3];for(var y=0;.1<=g;){if(0===y&&(l?(r=n,r-=s,g-=s,l=!1):r=n,0===r&&(r=1)),r>g)return void T(m);r>d?(y=r-d,r=d):y=0;var b=Math.sqrt(r*r/(1+u*u));if(0>c&&(b=-b),p+=b,f+=u*b,e.translate(p,f),e.rotate(h),e.translate(-a/2,-o/2),0===y&&i.hh(e,t),e.translate(a/2,o/2),e.rotate(-h),e.translate(-p,-f),g-=r,d-=r,0!==y){if(++v===m.length)return void T(m);c=(d=m[v])[0],h=d[1],u=d[2],d=d[3],r=y}}T(m)}}function vc(e){var t=e.geometryStretch;return null!==e.Rd?t===ma?ha:t:t===ma?_c[e.figure].defaultStretch:t}function yc(e,t,n,i,r){return(t=(e=n.x-e)*e+(t=n.y-t)*t)n?e-n:n-e)<(t>i?t-i:i-t)?(e=te||Zt.$(l.y,e))&&(l.yt||Zt.$(l.x,t))&&(l.x=e&&i<=t):(e=i&&n<=e)}function xc(e){var t=e.diagram;null!==t&&t.undoManager.isUndoingRedoing||(e.segmentOrientation=td,"None"!==e.toArrow?(e.segmentIndex=-1,e.alignmentFocus=Tt):"None"!==e.fromArrow&&(e.segmentIndex=0,e.alignmentFocus=new Rt(1-Tt.x,Tt.y)))}function Sc(e){var t=kc[e];if(void 0===t){var n=e.toLowerCase();if("none"===n)return"None";if(void 0===(t=kc[n])){var i,r=null;for(i in Zt.um)if(i.toLowerCase()===n){r=i;break}if(null!==r)return e=Kt.parse(Zt.um[r],!1),kc[r]=e,n!==r&&(kc[n]=r),r}}return"string"==typeof t?t:t instanceof Kt?e:null}lc.className="RowColumnDefinition",lc.Default=hc,lc.None=dc,lc.ProportionalExtra=pc,h(fc,Na),fc.prototype.cloneProtected=function(e){Na.prototype.cloneProtected.call(this,e),e.ua=this.ua,e.Rd=this.Rd,e.an=this.an,e.Ui=this.Ui,e.xc=this.xc,e.ig=this.ig,null!==this.Yg&&(e.Yg=E(this.Yg)),null!==this.Na&&(e.Na=this.Na.nc?this.Na:this.Na.copy()),e.Un=this.Un,e.Vn=this.Vn,null!==this.fa&&(e.fa=this.fa.copy())},(t=fc.prototype).th=function(){Na.prototype.th.call(this),null!==this.Na&&(this.Na.nc=!0)},t.qb=function(e){e===da||e===pa||e===va||e===ma?this.geometryStretch=e:Na.prototype.qb.call(this,e)},t.toString=function(){return"Shape("+("None"!==this.figure?this.figure:"None"!==this.toArrow?this.toArrow:this.fromArrow)+")#"+te(this)},t.hh=function(e,t){var n=this.xc,i=this.Ui;if(null!==n||null!==i){var r=this.ua;if(null!==r){e.yc();var o=this.actualBounds,a=this.naturalBounds;null!==i&&Ka(this,e,i,!0,!1,a,o);var s=this.part,l=this.ig;if(null===n||0!==l||null===s||!this.isPanelMain&&s.Pb()!==this||(l=s.type===El.Link&&s instanceof Vu&&"Selection"===s.category&&s.adornedObject instanceof fc&&s.adornedPart.Pb()===s.adornedObject?s.adornedObject.strokeWidth:0),0===l&&(n=null),null!==n&&0!==l&&(Ka(this,e,n,!1,!1,a,o),e.lineWidth=l,e.lineJoin=this.strokeJoin,e.lineCap=this.strokeCap,e.miterLimit=this.strokeMiterLimit),o=!1,s&&t.Gf("drawShadows")&&(o=s.isShadowed),!1===e.Il&&(o=!1),s=!0,null===n||null!==i&&"transparent"!==i||(s=!1),a=!1,null!==(l=this.strokeDashArray)&&(a=!0,e.js(l,this.strokeDashOffset)),r.type===Kt.j)e.beginPath(),e.moveTo(r.startX,r.startY),e.lineTo(r.endX,r.endY),null!==n&&e.jk(),e.Se();else if(r.type===Kt.u){var c=r.startX;l=r.startY;var u=r.endX,h=r.endY;r=Math.min(c,u);var d=Math.min(l,h);c=Math.abs(u-c),l=Math.abs(h-l),e.beginPath(),e.rect(r,d,c,l),null!==i&&e.ng(i),null!==n&&(s&&o&&Ls(e),e.jk(),s&&o&&As(e)),e.Se()}else if(r.type===Kt.F)c=r.startX,l=r.startY,u=r.endX,h=r.endY,r=Math.abs(u-c)/2,d=Math.abs(h-l)/2,c=Math.min(c,u)+r,l=Math.min(l,h)+d,e.beginPath(),e.moveTo(c,l-d),e.bezierCurveTo(c+Zt.wg*r,l-d,c+r,l-Zt.wg*d,c+r,l),e.bezierCurveTo(c+r,l+Zt.wg*d,c+Zt.wg*r,l+d,c,l+d),e.bezierCurveTo(c-Zt.wg*r,l+d,c-r,l+Zt.wg*d,c-r,l),e.bezierCurveTo(c-r,l-Zt.wg*d,c-Zt.wg*r,l-d,c,l-d),e.closePath(),null!==i&&e.ng(i),null!==n&&(s&&o&&Ls(e),e.jk(),s&&o&&As(e)),e.Se();else if(r.type===Kt.o)for(l=(r=r.figures).length,d=0;dg.sweepAngle,null!==p?p.endX:c.startX,null!==p?p.endY:c.startY)}else if(0===(m=(p=en(g,c)).length))e.lineTo(g.centerX,g.centerY);else for(var v=0;v(n.startX-n.endX)*(e.x-n.endX)+(n.startY-n.endY)*(e.y-n.endY)||0>i)&&(Ie.free(o),Zt.Yb(n.startX,n.startY,n.endX,n.endY,r,e.x,e.y)));if(n.type===Kt.u){t=n.startX;var a=n.startY,s=n.endX;if(n=n.endY,o.x=Math.min(t,s),o.y=Math.min(a,n),o.width=Math.abs(s-t),o.height=Math.abs(n-a),null===this.fill){if(o.Bc(-i,-i),o.ca(e))return Ie.free(o),!1;o.Bc(i,i)}return null!==this.stroke&&o.Bc(r,r),e=o.ca(e),Ie.free(o),e}if(n.type===Kt.F){a=n.startX,r=n.startY,s=n.endX;var l=n.endY;if(n=Math.min(a,s),t=Math.min(r,l),a=Math.abs(s-a)/2,r=Math.abs(l-r)/2,n=e.x-(n+a),t=e.y-(t+r),null===this.fill){if(r-=i,0>=(a-=i)||0>=r||1>=n*n/(a*a)+t*t/(r*r))return Ie.free(o),!1;a+=i,r+=i}return null!==this.stroke&&(a+=i,r+=i),Ie.free(o),!(0>=a||0>=r)&&1>=n*n/(a*a)+t*t/(r*r)}if(n.type===Kt.o)return Ie.free(o),null===this.fill?qt(n,e.x,e.y,r):Vt(n,e,r,1=this.strokeWidth)u=Zt.Ve(c.startX,c.startY,c.endX,c.endY,o,a,s,l,r);else{if(c.startX===c.endX?(i=h,u=0):(t=(c.endY-c.startY)/(c.endX-c.startX),i=(u=h/Math.sqrt(1+t*t))*t),t=A(),e=new fe,Zt.Ve(c.startX+i,c.startY+u,c.endX+i,c.endY+u,o,a,s,l,e)&&t.push(e),e=new fe,Zt.Ve(c.startX-i,c.startY-u,c.endX-i,c.endY-u,o,a,s,l,e)&&t.push(e),e=new fe,Zt.Ve(c.startX+i,c.startY+u,c.startX-i,c.startY-u,o,a,s,l,e)&&t.push(e),e=new fe,Zt.Ve(c.endX+i,c.endY+u,c.endX-i,c.endY-u,o,a,s,l,e)&&t.push(e),0===(s=t.length))return T(t),!1;for(u=!0,l=1/0,i=0;iMath.abs(n)){if(0>e*e*n*n+c*c-(l=a-u-n*(o-i))*l){r.x=NaN,r.y=NaN,u=!1;break e}s=(-e*e*n*l+e*c*(h=Math.sqrt(e*e*n*n+c*c-l*l)))/(c*c+e*e*n*n)+i,e=(-e*e*n*l-e*c*h)/(c*c+e*e*n*n)+i,c=n*(s-i)+l+u,l=n*(e-i)+l+u,Math.abs((o-s)*(o-s))+Math.abs((a-c)*(a-c))(s-=s/(e*e)*(l=o-i)*l)){r.x=NaN,r.y=NaN,u=!1;break e}s=u+(l=Math.sqrt(s)),l=u-l,Math.abs(s-a)Math.abs(f)?(g*=.5/f,f=.5):0!==g&&.5>Math.abs(g)&&(f*=.5/g,g=.5),v-=f,y-=g;p.contains(v,y);)v-=f,y-=g;for(r.x=s,r.y=l,g=0;gr)return!0;return!1}if(n&&null!==this.fill&&this.gh(e,!0))return!0;var r=e.Bf(t),o=r;if(1.5=r||we(t,o,0,-h)>=r||we(t,o,0,h)>=r||we(t,o,u,0)>=r);if((e=Zt.$y(u,h,t,o))*e<=r)return!0}else if(t.type===Kt.o){if(o=(c=t.bounds).x,s=c.y,l=c.x+c.width,c=c.y+c.height,e.x>l&&e.xc&&e.yr&&be(e.x,e.y,o,s,l,s)>r&&be(e.x,e.y,l,c,o,c)>r&&be(e.x,e.y,l,c,l,s)>r)return!1;if(o=Math.sqrt(r),!n){for(n=t.figures,t=0;tr)return!1;for(l=(s=o.segments.s).length,c=0;cr)return!1;break;case on:var d=A();if(Zt.Qe(a,u,h.point1X,h.point1Y,h.point2X,h.point2Y,h.endX,h.endY,.8,d),a=i(d,e),T(d),a)return!1;if(a=h.endX,u=h.endY,e.zd(a,u)>r)return!1;break;case an:if(d=A(),Zt.ep(a,u,h.point1X,h.point1Y,h.endX,h.endY,.8,d),a=i(d,e),T(d),a)return!1;if(a=h.endX,u=h.endY,e.zd(a,u)>r)return!1;break;case sn:case ln:var p=(d=h.type===sn?en(h,o):tn(h,o,a,u)).length;if(0===p){if(a=h.type===sn?h.centerX:h.endX,u=h.type===sn?h.centerY:h.endY,e.zd(a,u)>r)return!1;break}h=null;for(var f=A(),g=0;g= 0",fc,"strokeWidth:value")}},strokeCap:{get:function(){return null!==this.Na?this.Na.Hr:"butt"},set:function(e){var t=this.strokeCap;t!==e&&("string"!=typeof e||"butt"!==e&&"round"!==e&&"square"!==e?k(e,'"butt", "round", or "square"',fc,"strokeCap"):(gc(this),this.Na.Hr=e,this.N(),this.g("strokeCap",t,e)))}},strokeJoin:{get:function(){return null!==this.Na?this.Na.Ir:"miter"},set:function(e){var t=this.strokeJoin;t!==e&&("string"!=typeof e||"miter"!==e&&"bevel"!==e&&"round"!==e?k(e,'"miter", "bevel", or "round"',fc,"strokeJoin"):(gc(this),this.Na.Ir=e,this.N(),this.g("strokeJoin",t,e)))}},strokeMiterLimit:{get:function(){return null!==this.Na?this.Na.Jr:10},set:function(e){var t=this.strokeMiterLimit;if(t!==e&&1<=e){gc(this),this.Na.Jr=e,this.N();var n=this.part;null!==n&&(n.ag=NaN),this.g("strokeMiterLimit",t,e)}}},strokeDashArray:{get:function(){return this.Yg},set:function(e){var t=this.Yg;if(t!==e){if(null!==e){for(var n=e.length,i=0,r=0;re?e=0:1e?e=0:1e.maxLines&&(e.l|=16777216))}function Ac(e,t,n,i){var r=e.formatting===Gc;r&&(t=t.trim());var o=0,a=e.Ae,s=e.spacingAbove+e.spacingBelow;s=Math.max(0,Nc(e)+s);var l=e.overflow===Kc?Ic(a):0;if(e.Gc>=e.maxLines)null!==i&&i.h(0,s);else if(a=t,e.wrap===zc){e.Le=1;var c=Dc(t);if(0===l||c<=n)e.Cb=Math.max(e.Cb,c),Lc(e,t,e.Cb),null!==i&&i.h(c,s);else{for(c=Dc((o=Tc(e,a))+(t=Tc(e,a=a.substr(o.length))));0n&&1n;){var h=1;for(c=Dc(t.substr(0,h)),u=0;c<=n;)h++,u=c,c=Dc(t.substr(0,h));if(1===h){var d=c;o=Math.max(o,c)}else d=u,o=Math.max(o,u);if(1>--h&&(h=1),Lc(e,t.substr(0,h),d),l++,t=t.substr(h),e.Gc+l>e.maxLines)break}for(c=Dc(t+(u=Tc(e,a)));0e.maxLines))break}e.Le=Math.min(e.maxLines,l),e.Cb=Math.max(e.Cb,o),null!==i&&i.h(e.Cb,s*e.Le)}}function Tc(e,t){if(e.wrap===Hc)return t.substr(0,1);for(var n=t.length,i=0,r=Vc;i=t.length?t:t.substr(0,i)}function Dc(e){return null===eu?8*e.length:eu.measureText(e).width}function Nc(e){if(null!==e.df)return e.df;var t=e.Ae;if(null===eu){var n=16;return e.df=n}return void 0!==Wc[t]&&5e3>qc?n=Wc[t]:(n=1.3*eu.measureText("M").width,Wc[t]=n,qc++),e.df=n}function Ic(e){if(null===eu)return 6;if(void 0!==Yc[e]&&5e3>Xc)var t=Yc[e];else t=eu.measureText(Qc).width,Yc[e]=t,Xc++;return t}function Bc(e,t){var n=e.ec.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),i=e.spacingAbove+e.spacingBelow;if(i=Math.max(0,Nc(e)+i),0===n.length)return e.Cb=0,e.Gc=1,i;if(!e.isMultiline){var r=n.indexOf("\n",0);0<=r&&(n=n.substr(0,r))}r=0;for(var o,a=e.Gc=0,s=!1;!s;){if(-1===(o=n.indexOf("\n",a))&&(o=n.length,s=!0),a<=o){if(a=n.substr(a,o-a),e.wrap!==zc){e.Le=0;var l=Ae.alloc();Ac(e,a,t,l),r+=l.height,Ae.free(l),e.Gc+=e.Le}else Ac(e,a,t,null),r+=i,e.Gc++;e.Gc===e.maxLines&&(s=!0)}a=o+1}return e.Lq=r}fc.className="Shape",fc.getFigureGenerators=function(){var e,t=new pe;for(e in Zt.Ze)e!==e.toLowerCase()&&t.add(e,Zt.Ze[e]);return t.freeze(),t},fc.defineFigureGenerator=function(e,t){var n=e.toLowerCase(),i=Zt.Ze;i[e]=t,i[n]=e},fc.getArrowheadGeometries=function(){var e=new pe;for(i in Zt.um)if(void 0===kc[i]){var t=Kt.parse(Zt.um[i],!1);kc[i]=t,(t=i.toLowerCase())!==i&&(kc[t]=i)}for(var n in kc)if(n!==n.toLowerCase()){var i=kc[n];i instanceof Kt&&e.add(n,i)}return e.freeze(),e},fc.defineArrowheadGeometry=function(e,t){var n=null;n="string"==typeof t?Kt.parse(t,!1):t,"none"!==(t=e.toLowerCase())&&e!==t||x("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+e);var i=kc;i[e]=n,i[t]=e},Cc.prototype.copy=function(){var e=new Cc;return e.Hr=this.Hr,e.Ir=this.Ir,e.Jr=this.Jr,e.uj=this.uj,e.br=this.br,e.jq=this.jq,e.fg=this.fg.J(),e.gg=this.gg.J(),e},h(Pc,Na),Pc.prototype.cloneProtected=function(e){Na.prototype.cloneProtected.call(this,e),e.ec=this.ec,e.xc=this.xc,e.Ae=this.Ae,e.Gc=this.Gc,e.Cb=this.Cb,e.Lq=this.Lq,e.Gm=this.Gm,null!==this.fa&&(e.fa=this.fa.copy()),null!==this.da&&(e.da=this.da.nc?this.da:this.da.copy()),e.Ih=this.Ih,e.df=this.df,e.Le=this.Le,e.Qc=this.Qc,e.Qb=this.Qb,e.ze=this.ze},(t=Pc.prototype).th=function(){Na.prototype.th.call(this),null!==this.da&&(this.da.nc=!0)},t.qb=function(e){e.classType===Pc?this.wrap=e:Na.prototype.qb.call(this,e)},t.toString=function(){return 22(h*h+u*u)*d*d&&(n=!0),t.ib!==e&&(n=!1),t.ib instanceof ys&&(n=!1),!1===t.Gf("textGreeking")&&(n=!1),t=this.spacingAbove,h=this.spacingBelow,this.flip){case ba:e.translate(r,0),e.scale(-1,1);break;case ya:e.translate(0,o),e.scale(1,-1);break;case wa:e.translate(r,o),e.scale(-1,-1)}if(e.yc(),o>(d=(t+a+h)*(u=this.Gc))&&(i=(i=this.verticalAlignment).y*o-i.y*d+i.offsetY),1===u&&null!==this.ze)(h=this.Cb)>r&&(h=r),this.Oj(this.ze,e,0,i+t,r,a,h,n,s,l,c);else if(null!==this.Qc&&null!==this.Qb)for(d=0;dr&&(p=r),i+=t,this.Oj(this.Qb[d],e,0,i,r,a,p,n,s,l,c),i+=a+h}switch(this.flip){case ba:e.scale(-1,1),e.translate(-r,0);break;case ya:e.scale(1,-1),e.translate(0,-o);break;case wa:e.scale(-1,-1),e.translate(-r,-o)}}},t.Oj=function(e,t,n,i,r,o,a,s,l,c,u){var h=0;if(s)"left"===l?h=0:"right"===l?h=r-a:"center"===l&&(h=(r-a)/2),t.fillRect(n+h,i+.25*o,a,1);else{if("left"===l?h=0:"right"===l?h=r:"center"===l&&(h=r/2),r=null!==Oc?Oc(this,o):.75*o,t.fillText(e,n+h,i+r),0===(e=o/20|0)&&(e=1),"right"===l?h-=a:"center"===l&&(h-=a/2),c){l=n+h,c=i+(s=null!==Fc?Fc(this,o):.8*o),r=n+h+a,s=i+s;var d=e;t.beginPath(),t.lineWidth=d,t.moveTo(l,c),t.lineTo(r,s),t.stroke(),t.Se(),t instanceof ys&&t.ad.classList.add("gojs-td")}u&&(u=i+o-o/2.2|0,0!=e%2&&(u+=.5),i=n+h,o=u,n=n+h+a,a=u,h=e,t.beginPath(),t.lineWidth=h,t.moveTo(i,o),t.lineTo(n,a),t.stroke(),t.Se(),t instanceof ys&&t.ad.classList.add("gojs-td"))}},t.kk=function(e,t,n){if(!Na.prototype.kk.call(this,e,t,n))return!1;if(Ka(this,e,this.xc,!0,!1,this.naturalBounds,this.actualBounds),n){if(0===this.svg.getElementsByTagName("text").length)return!0;for(t=this.svg.getElementsByClassName("gojs-td"),n=0;n=this.Qb.length))){for(this.l|=16777216,c=this.Qb[l],t=Math.max(1,e-t);Dc(c)>t&&1e?e=0:1e?e=0:1=(e=Math.floor(e))&&k(e,"> 0",Pc,"maxLines"),Ec(this),this.da.Jq=e,this.v(),this.g("maxLines",t,e))}},metrics:{get:function(){return{arrSize:null!==this.Qc?this.Qc:[this.Cb],arrText:null!==this.Qb?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(e){var t=this.Gm;t!==e&&(this.Gm=e,this.g("choices",t,e))}}});var Rc,Oc=null,Fc=null,zc=new j(Pc,"None",0),jc=new j(Pc,"WrapFit",1),$c=new j(Pc,"WrapDesiredSize",2),Hc=new j(Pc,"WrapBreakAll",3),Zc=new j(Pc,"OverflowClip",0),Kc=new j(Pc,"OverflowEllipsis",1),Gc=new j(Pc,"FormatTrim",0),Uc=new j(Pc,"FormatNone",0),Vc=/[ \u200b\u00ad]/,Wc=new Z,qc=0,Yc=new Z,Xc=0,Qc="...",Jc="",eu=null,tu=!1;function nu(){this.nc=!1,this.Hd=null,this.Xf=da,this.gq=Gc,this.Jq=1/0,this.$q=Zc,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Et,this.$r=$c}function iu(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}function ru(e,t){Na.call(this),this.Eg=null,this.qo="",this.Xg=Ue,this.Nk=ha,this.Zg=this.Hd=null,this.Mk=rt,this.Xf=da,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,"string"==typeof e?this.source=e:e&&Object.assign(this,e),t&&Object.assign(this,t)}function ou(e){void 0===e&&(e=""),""!==e?Rc[e]&&(delete Rc[e],su--):(Rc=new Z,su=0)}function au(e,t){t.qy||(t.Fq=function(n){t.sq=!0,t.ln=!1;var i=t.Bg.copy();if(null!=i){for(i=i.iterator;i.next();){var r=i.value;r.N();var o=t.getAttribute("src")||"",a=r.Og.I(o);if(null!==a)for(var s=a.length,l=0;l=i.width&&(o=o+f.offsetX+(h*f.x-i.width*f.x)),d>=i.height&&(a=a+f.offsetY+(d*f.y-i.height*f.y)),l=Math.min(i.width,h),s=Math.min(i.height,d);break;case ha:h=i.width,d=i.height;break;case pa:case va:p===pa?(h*=p=Math.min(i.height/d,i.width/h),d*=p):p===va&&(d*=p=Math.max(i.height/d,i.width/h),(h*=p)>=i.width&&(o=(o+f.offsetX+(h*f.x-i.width*f.x)/h)*l),d>=i.height&&(a=(a+f.offsetY+(d*f.y-i.height*f.y)/d)*s),l*=1/(h/i.width),s*=1/(d/i.height),h=i.width,d=i.height)}var g=h*(p=this.Df()*t.scale)*d*p,m=l*s/g,v=n.__goCache;p=null;var y=lu;if(!r){if(n.sq&&void 0!==v&&4y*y)for(null===v.gi&&(uu(v,4,c,u,n),uu(v,16,c,u,n)),c=(r=v.gi).length,u=0;ue)&&(e=5),e=Math.min(e,t/3);var i="rr"+t+","+n+","+(e=Math.min(e,n/3)),r=Zt.Mf[i];if(void 0!==r)return r;var o=e*Zt.wg;return r=(new Kt).add(new Qt(e,0,!0).add(new Jt(rn,t-e,0)).add(new Jt(on,t,e,t-o,0,t,o)).add(new Jt(rn,t,n-e)).add(new Jt(on,t-e,n,t,n-o,t-o,n)).add(new Jt(rn,e,n)).add(new Jt(on,0,n-e,o,n,0,n-o)).add(new Jt(rn,0,e)).add(new Jt(on,e,0,0,o,o,0).close())),1r.x&&e.y>r.y&&e.rightr.x&&t.y>r.y&&t.right=n.maxSelectionCount)){this.G^=4096;var i=!1;if(null!==n){i=n.skipsUndoManager,n.skipsUndoManager=!0;var r=n.selection;r.ka(),e?r.add(this):r.remove(this),r.freeze()}this.g("isSelected",t,e),this.Wb(),null!==(e=this.selectionChanged)&&e(this),null!==n&&(n.$b(),n.skipsUndoManager=i)}}}},isHighlighted:{get:function(){return 0!=(524288&this.G)},set:function(e){var t=0!=(524288&this.G);if(t!==e){this.G^=524288;var n=this.diagram;null!==n&&((n=n.highlighteds).ka(),e?n.add(this):n.remove(this),n.freeze()),this.g("isHighlighted",t,e),this.N(),null!==(e=this.highlightedChanged)&&e(this)}}},isShadowed:{get:function(){return 0!=(8192&this.G)},set:function(e){var t=0!=(8192&this.G);t!==e&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",t,e),this.N())}},isAnimated:{get:function(){return 0!=(262144&this.G)},set:function(e){var t=0!=(262144&this.G);t!==e&&(this.G^=262144,this.g("isAnimated",t,e))}},highlightedChanged:{get:function(){return null!==this.P?this.P.oq:null},set:function(e){var t=this.highlightedChanged;t!==e&&(ku(this),this.P.oq=e,this.g("highlightedChanged",t,e))}},selectionObjectName:{get:function(){return null!==this.P?this.P.vr:""},set:function(e){var t=this.selectionObjectName;t!==e&&(ku(this),this.P.vr=e,this.Ug=null,this.g("selectionObjectName",t,e))}},selectionAdornmentTemplate:{get:function(){return null!==this.P?this.P.tr:null},set:function(e){var t=this.selectionAdornmentTemplate;t!==e&&(ku(this),this.P.tr=e,this.g("selectionAdornmentTemplate",t,e))}},selectionObject:{get:function(){if(null===this.Ug){var e=this.selectionObjectName;null!==e&&""!==e?(e=this.fb(e),this.Ug=null!==e?e:this):this instanceof xh?(e=this.path,this.Ug=null!==e?e:this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return null!==this.P?this.P.ur:null},set:function(e){var t=this.selectionChanged;t!==e&&(ku(this),this.P.ur=e,this.g("selectionChanged",t,e))}},resizeAdornmentTemplate:{get:function(){return null!==this.P?this.P.fr:null},set:function(e){var t=this.resizeAdornmentTemplate;t!==e&&(ku(this),this.P.fr=e,this.g("resizeAdornmentTemplate",t,e))}},resizeObjectName:{get:function(){return null!==this.P?this.P.hr:""},set:function(e){var t=this.resizeObjectName;t!==e&&(ku(this),this.P.hr=e,this.g("resizeObjectName",t,e))}},resizeObject:{get:function(){var e=this.resizeObjectName;return""!==e&&null!==(e=this.fb(e))?e:this}},resizeCellSize:{get:function(){return null!==this.P?this.P.gr:Me},set:function(e){var t=this.resizeCellSize;t.D(e)||(e=e.J(),ku(this),this.P.gr=e,this.g("resizeCellSize",t,e))}},rotateAdornmentTemplate:{get:function(){return null!==this.P?this.P.ir:null},set:function(e){var t=this.rotateAdornmentTemplate;t!==e&&(ku(this),this.P.ir=e,this.g("rotateAdornmentTemplate",t,e))}},rotateObjectName:{get:function(){return null!==this.P?this.P.jr:""},set:function(e){var t=this.rotateObjectName;t!==e&&(ku(this),this.P.jr=e,this.g("rotateObjectName",t,e))}},rotateObject:{get:function(){var e=this.rotateObjectName;return""!==e&&null!==(e=this.fb(e))?e:this}},rotationSpot:{get:function(){return null!==this.P?this.P.lr:_t},set:function(e){var t=this.rotationSpot;t.D(e)||(e=e.J(),ku(this),this.P.lr=e,this.g("rotationSpot",t,e))}},text:{get:function(){return this.ec},set:function(e){var t=this.ec;t!==e&&(this.ec=e,this.g("text",t,e))}},containingGroup:{get:function(){return this.Ah},set:function(e){if(this.Zc()){var t=this.Ah;if(t!==e){null===e||this!==e&&!e.Td(this)||(this===e&&x("Cannot make a Group a member of itself: "+this.toString()),x("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+e.toString())),this.C(2);var n=this.diagram;if(null!==t?vh(t,this):this instanceof gh&&null!==n&&n.ai.remove(this),this.Ah=e,null!==e?mh(e,this):this instanceof gh&&null!==n&&n.ai.add(this),this.C(1),null!==n&&n.aa){var i=this.data,r=n.model;if(null!==i&&r.Xj()){var o=r.wa(null!==e?e.data:null);r.mp(i,o)}}if(null!==(i=this.containingGroupChanged)&&(r=!0,null!==n&&(r=n.aa,n.aa=!0),i(this,t,e),null!==n&&(n.aa=r)),this instanceof gh)for(Gu(n=new Q,this,!0,0,!0),n=n.iterator;n.next();)if((i=n.value)instanceof qu)for(i=i.linksConnected;i.next();)Sh(i.value);if(this instanceof qu){for(n=this.linksConnected;n.next();)Sh(n.value);null!==(n=this.labeledLink)&&Sh(n)}this.g("containingGroup",t,e),null!==e&&(null!==(t=e.layer)&&Pr(t,-1,e))}}else x("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return null!==this.P?this.P.Kp:null},set:function(e){var t=this.containingGroupChanged;t!==e&&(ku(this),this.P.Kp=e,this.g("containingGroupChanged",t,e))}},isTopLevel:{get:function(){return!(null!==this.containingGroup||this instanceof qu&&null!==this.labeledLink)}},layoutConditions:{get:function(){return null!==this.P?this.P.Cq:127},set:function(e){var t=this.layoutConditions;t!==e&&(ku(this),this.P.Cq=e,this.g("layoutConditions",t,e))}},dragComputation:{get:function(){return null!==this.P?this.P.Up:null},set:function(e){var t=this.dragComputation;t!==e&&(ku(this),this.P.Up=e,this.g("dragComputation",t,e))}},shadowOffset:{get:function(){return null!==this.P?this.P.zr:oe},set:function(e){var t=this.shadowOffset;t.D(e)||(e=e.J(),ku(this),this.P.zr=e,this.N(),this.g("shadowOffset",t,e))}},shadowColor:{get:function(){return null!==this.P?this.P.yr:"gray"},set:function(e){var t=this.shadowColor;t!==e&&(ku(this),this.P.yr=e,this.N(),this.g("shadowColor",t,e))}},shadowBlur:{get:function(){return null!==this.P?this.P.Vg:4},set:function(e){var t=this.shadowBlur;t!==e&&(ku(this),this.P.Vg=e,this.N(),this.g("shadowBlur",t,e))}}}),Su.prototype.invalidateLayout=Su.prototype.C,Su.prototype.findCommonContainingGroup=Su.prototype.px,Su.prototype.isMemberOf=Su.prototype.Td,Su.prototype.findTopLevelPart=Su.prototype.sz,Su.prototype.findSubGraphLevel=Su.prototype.oz,Su.prototype.ensureBounds=Su.prototype.Va,Su.prototype.getDocumentBounds=Su.prototype.mi,Su.prototype.findObject=Su.prototype.fb,Su.prototype.moveTo=Su.prototype.moveTo,Su.prototype.invalidateAdornments=Su.prototype.Wb,Su.prototype.clearAdornments=Su.prototype.Ej,Su.prototype.removeAdornment=Su.prototype.Jf,Su.prototype.addAdornment=Su.prototype.bh,Su.prototype.findAdornment=Su.prototype.Pj,Su.prototype.updateTargetBindings=Su.prototype.La;var Uu=!1;function Vu(e,t){void 0===e||e instanceof hl||"string"==typeof e?Su.call(this,e):(Su.call(this),e&&(t=e)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,t&&Object.assign(this,t)}function Wu(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Qe,this.er=ph,this.Kr=this.ij=this.Nq=this.Mq=null}function qu(e,t){void 0===e||e instanceof hl||"string"==typeof e?Su.call(this,e):(Su.call(this),e&&(t=e)),this.U=13,this.Ba=null,this.jb=new Y,this.wc=this.af=this.Yk=null,this.ci=!1,t&&Object.assign(this,t)}function Yu(e){null===e.Ba?e.Ba=new Wu:e.Ba.nc&&(e.Ba=e.Ba.copy())}function Xu(e,t){null!==t&&(null===e.af&&(e.af=new Q),e.af.add(t))}function Qu(e,t,n,i){if(null===t||null===e.af)return null;for(var r=e.af.iterator;r.next();){var o=r.value;if(o.Ds===e&&o.cv===t&&o.Ox===n&&o.Px===i||o.Ds===t&&o.cv===e&&o.Ox===i&&o.Px===n)return o}return null}function Ju(e,t){for(e=e.linksConnected;e.next();){var n=e.value;n.fromPort!==t&&n.toPort!==t||(eh(n.fromPort),eh(n.toPort),n.bb())}}function eh(e){if(null!==e){var t=e.Zn;null!==t&&t.Sl(),null===(t=(e=e.part).containingGroup)||e.isVisible()||eh(t.port)}}function th(e,t,n,i){if(null!==t&&!n.has(t)){n.add(t);var r=!0,o=e.diagram;null!==o&&(r=o.isTreePathToChildren),t.linksConnected.each((function(o){o.isTreeLink?(r?o.fromNode===t:o.toNode===t)&&th(e,r?o.toNode:o.fromNode,n,i):i.add(o)}))}}function nh(e,t,n){eh(n);var i=e.jb.contains(t);if(i||e.jb.add(t),!i||t.fromNode===t.toNode){var r=e.linkConnected;if(null!==r){var o=!0,a=e.diagram;null!==a&&(o=a.aa,a.aa=!0),r(e,t,n),null!==a&&(a.aa=o)}}!i&&t.isTreeLink&&(n=t.fromNode,t=t.toNode,null!==n&&null!==t&&n!==t&&(i=!0,null!==(e=e.diagram)&&(i=e.isTreePathToChildren),o=i?n:t,(r=i?t:n).ci||(r.ci=o),!o.isTreeLeaf||null!==e&&e.undoManager.isUndoingRedoing||(i?n===o&&(o.isTreeLeaf=!1):t===o&&(o.isTreeLeaf=!1))))}function ih(e,t,n){eh(n);var i=e.jb.remove(t),r=null;if(i||t.toNode===t.fromNode){var o=e.linkDisconnected;if(r=e.diagram,null!==o){var a=!0;null!==r&&(a=r.aa,r.aa=!0),o(e,t,n),null!==r&&(r.aa=a)}}i&&t.isTreeLink&&(n=!0,null!==r&&(n=r.isTreePathToChildren),e=n?t.toNode:t.fromNode,t=n?t.fromNode:t.toNode,null!==e&&(e.ci=!1),null===t||t.isTreeLeaf||(0===t.jb.count?(t.ci=null,null!==r&&r.undoManager.isUndoingRedoing||(t.isTreeLeaf=!0)):rh(t)))}function rh(e){if(e.ci=!1,0!==e.jb.count){var t=!0,n=e.diagram;if(null===n||!n.undoManager.isUndoingRedoing){for(null!==n&&(t=n.isTreePathToChildren),n=e.jb.iterator;n.next();){var i=n.value;if(i.isTreeLink)if(t){if(i.fromNode===e)return void(e.isTreeLeaf=!1)}else if(i.toNode===e)return void(e.isTreeLeaf=!1)}e.isTreeLeaf=!0}}}function oh(e){null===e.wc?e.wc=new pe:e.wc.clear(),e.qm(e,(function(e,t){ah(e,t)})),0===e.wc.count&&e.wc.add("",e)}function ah(e,t){var n=t.portId;null!==n&&null!==e.wc&&e.wc.add(n,t)}function sh(e,t,n){var i=t.portId;if(null!==i&&(null!==e.wc&&e.wc.remove(i),null!==(t=e.diagram)&&n)){for(n=null,e=e.findLinksConnected(i);e.next();)i=e.value,null===n&&(n=A()),n.push(i);if(null!==n){for(e=0;ee&&(e=1);var t=this.diagram;if(null!==t&&!t.Ue){t.Ue=!0;var n=new Q;n.add(this),ch(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===ea),t.Ue=!1}},qu.prototype.expandTree=function(e){void 0===e&&(e=2),2>e&&(e=2);var t=this.diagram;if(null!==t&&!t.Ue){t.Ue=!0;var n=new Q;n.add(this),hh(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===ea),t.Ue=!1}},d.Object.defineProperties(qu.prototype,{portSpreading:{get:function(){return null!==this.Ba?this.Ba.er:ph},set:function(e){var t=this.portSpreading;t!==e&&(Yu(this),this.Ba.er=e,this.g("portSpreading",t,e),null!==(e=this.diagram)&&e.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return 0!=(8&this.U)},set:function(e){var t=0!=(8&this.U);if(t!==e){this.U^=8;var n=this.diagram;null!==n&&Io(n,this),this.g("avoidable",t,e)}}},avoidableMargin:{get:function(){return null!==this.Ba?this.Ba.yp:Qe},set:function(e){"number"==typeof e&&(e=new We(e));var t=this.avoidableMargin;if(!t.D(e)){e=e.J(),Yu(this),this.Ba.yp=e;var n=this.diagram;null!==n&&Io(n,this),this.g("avoidableMargin",t,e)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return null!==this.Ba?this.Ba.Dq:null},set:function(e){var t=this.linkConnected;t!==e&&(Yu(this),this.Ba.Dq=e,this.g("linkConnected",t,e))}},linkDisconnected:{get:function(){return null!==this.Ba?this.Ba.Eq:null},set:function(e){var t=this.linkDisconnected;t!==e&&(Yu(this),this.Ba.Eq=e,this.g("linkDisconnected",t,e))}},linkValidation:{get:function(){return null!==this.Ba?this.Ba.gj:null},set:function(e){var t=this.linkValidation;t!==e&&(Yu(this),this.Ba.gj=e,this.g("linkValidation",t,e))}},isLinkLabel:{get:function(){return null!==this.Yk}},labeledLink:{get:function(){return this.Yk},set:function(e){var t=this.Yk;if(t!==e){var n=this.diagram,i=this.data;if(null!==t){if(null!==t.wd&&(t.wd.remove(this),t.v()),null!==n&&null!==i&&!n.undoManager.isUndoingRedoing){var r=t.data,o=n.model;if(null!==r&&o.ri()){var a=o.wa(i);void 0!==a&&o.Qx(r,a)}}this.containingGroup=null}this.Yk=e,null!==e&&(kh(e,this),null===n||null===i||n.undoManager.isUndoingRedoing||(r=e.data,n=n.model,null!==r&&n.ri()&&(void 0!==(i=n.wa(i))&&n.Bu(r,i))),this.containingGroup=e.containingGroup),Ua(this),this.g("labeledLink",t,e)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return null===this.wc&&oh(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return 0!=(1&this.U)},set:function(e){var t=0!=(1&this.U);if(t!==e){this.U^=1;var n=this.diagram;if(this.g("isTreeExpanded",t,e),null!==(t=this.treeExpandedChanged)){var i=!0;null!==n&&(i=n.aa,n.aa=!0),t(this),null!==n&&(n.aa=i)}null!==n&&n.undoManager.isUndoingRedoing?this.Zb(e):e?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return 0!=(2&this.U)},set:function(e){var t=0!=(2&this.U);t!==e&&(this.U^=2,this.g("wasTreeExpanded",t,e))}},treeExpandedChanged:{get:function(){return null!==this.Ba?this.Ba.Vr:null},set:function(e){var t=this.treeExpandedChanged;t!==e&&(Yu(this),this.Ba.Vr=e,this.g("treeExpandedChanged",t,e))}},isTreeLeaf:{get:function(){return 0!=(4&this.U)},set:function(e){var t=0!=(4&this.U);t!==e&&(this.U^=4,this.g("isTreeLeaf",t,e))}}}),qu.prototype.expandTree=qu.prototype.expandTree,qu.prototype.collapseTree=qu.prototype.collapseTree,qu.prototype.findTreeParts=qu.prototype.wz,qu.prototype.findTreeChildrenNodes=qu.prototype.Ou,qu.prototype.findTreeChildrenLinks=qu.prototype.Qo,qu.prototype.findTreeLevel=qu.prototype.uz,qu.prototype.findTreeParentChain=qu.prototype.vz,qu.prototype.findTreeParentNode=qu.prototype.pg,qu.prototype.findTreeParentLink=qu.prototype.kh,qu.prototype.findCommonTreeParent=qu.prototype.gz,qu.prototype.findTreeRoot=qu.prototype.xz,qu.prototype.isInTreeOf=qu.prototype.Nz,qu.prototype.findPort=qu.prototype.ns,qu.prototype.findLinksTo=qu.prototype.kz,qu.prototype.findLinksBetween=qu.prototype.jz,qu.prototype.findNodesInto=qu.prototype.Oo,qu.prototype.findNodesOutOf=qu.prototype.Po,qu.prototype.findNodesConnected=qu.prototype.Mu,qu.prototype.findLinksInto=qu.prototype.Sd,qu.prototype.findLinksOutOf=qu.prototype.Mo,qu.prototype.findExternalTreeLinksConnected=qu.prototype.qx,qu.prototype.invalidateConnectedLinks=qu.prototype.Bd,qu.prototype.invalidateLinkBundle=qu.prototype.Lz;var dh=new j(qu,"SpreadingNone",10),ph=new j(qu,"SpreadingEvenly",11),fh=new j(qu,"SpreadingPacked",12);function gh(e,t){void 0===e||e instanceof hl||"string"==typeof e?qu.call(this,e):(qu.call(this),e&&(t=e)),this.U|=4608,this.Gn=new Q,this.$a=null,this.Sc=new Td,this.Sc.group=this,this.gl=new Q,this.tb=this.$p=null,t&&Object.assign(this,t)}function mh(e,t){if(e.Gn.add(t)){t instanceof gh&&e.gl.add(t);var n=e.memberAdded;if(null!==n){var i=!0,r=e.diagram;null!==r&&(i=r.aa,r.aa=!0),n(e,t),null!==r&&(r.aa=i)}e.isVisible()&&e.isSubGraphExpanded||t.Zb(!1)}t instanceof xh&&!e.computesBoundsIncludingLinks||(null===(t=e.$a)&&(t=e),t.v())}function vh(e,t){if(e.Gn.remove(t)){t instanceof gh&&e.gl.remove(t);var n=e.memberRemoved;if(null!==n){var i=!0,r=e.diagram;null!==r&&(i=r.aa,r.aa=!0),n(e,t),null!==r&&(r.aa=i)}e.isVisible()&&e.isSubGraphExpanded||t.Zb(!0)}t instanceof xh&&!e.computesBoundsIncludingLinks||(null===(t=e.$a)&&(t=e),t.v())}function yh(e,t,n,i){for(var r=e.memberParts;r.next();){var o=r.value;if(o.Zb(!1),o instanceof gh&&o.isSubGraphExpanded&&(o.wasSubGraphExpanded=o.isSubGraphExpanded,yh(o,t,n,i)),o instanceof qu)o.Bd(t),n.Aj(o,i);else if(o instanceof xh)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!1}function bh(e,t,n,i){for(var r=e.memberParts;r.next();){var o=r.value;if(o.Zb(!0),o instanceof gh&&o.wasSubGraphExpanded&&(o.wasSubGraphExpanded=!1,bh(o,t,n,i)),o instanceof qu)o.Bd(t),n.Cj(o,i);else if(o instanceof xh)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!0}function wh(e){Na.call(this),this.yb=Xe,this.ko=new Ie(NaN,NaN,NaN,NaN),e&&Object.assign(this,e)}function xh(e){Su.call(this,El.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Wh,this.Om=0,this.Qm=Wh,this.Rm=NaN,this.qj=Kh,this.po=.5,this.wd=null,this.Nb=(new Y).freeze(),this.Tg=this.Mg=null,this.ml=new Ie,this.ua=new Kt,this.u=this.o=this.Sf=this.Wf=null,this.su=new fe,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],e&&Object.assign(this,e)}function Sh(e){var t=e.fromNode,n=e.toNode,i=null;if(i=null!==t?null!==n?t.px(n):t.containingGroup:null!==n?n.containingGroup:null,t=i,(n=e.Ah)!==t){null!==n&&vh(n,e),e.Ah=t,null!==t&&mh(t,e);var r=e.containingGroupChanged;if(null!==r){var o=!0,a=e.diagram;null!==a&&(o=a.aa,a.aa=!0),r(e,n,t),null!==a&&(a.aa=o)}!e.fd||e.Lw!==n&&e.Mw!==n||e.bb()}if(e.isLabeledLink)for(e=e.labelNodes;e.next();)e.value.containingGroup=i}function kh(e,t){null===e.wd&&(e.wd=new Q),e.wd.add(t),e.v()}function _h(e,t,n){if(0!==t||0!==n)if(0===e.pointsCount)e.defaultFromPoint&&e.defaultFromPoint.offset(t,n),e.defaultToPoint&&e.defaultToPoint.offset(t,n);else{for(var i=e.fd,r=new Y,o=e.Nb.iterator;o.next();){var a=o.value;r.add(new fe(a.x+t,a.y+n).freeze())}r.freeze(),o=e.Nb,e.Nb=r,a=e.diagram,isNaN(t)||isNaN(n)||null!==a&&a.animationManager.zb?e.v():(e.ke.h(e.ke.x+t,e.ke.y+n),e.pa.h(e.pa.x+t,e.pa.y+n),Ua(e)),i?Ch(e):(e.defaultFromPoint&&(e.defaultFromPoint=e.i(0)),e.defaultToPoint&&(e.defaultToPoint=e.i(e.pointsCount-1))),null!==a&&a.animationManager.zb&&Ji(a.animationManager,e,r),e.g("points",o,r)}}function Ch(e){0===e.Nb.count?e.fd=!1:(e.fd=!0,e.cq=null,e.vt=NaN,e.defaultFromPoint=e.i(0),e.defaultToPoint=e.i(e.pointsCount-1),Fh(e,!1))}function Ph(e,t){return Math.abs(t.x-e.x)>Math.abs(t.y-e.y)?(t.x>=e.x?t.x=e.x+9e9:t.x=e.x-9e9,t.y=e.y):(t.y>=e.y?t.y=e.y+9e9:t.y=e.y-9e9,t.x=e.x),t}function Eh(e,t){var n=t.Zn;return null===n&&((n=new Ed).port=t,n.node=t.part,t.Zn=n),Ld(n,e)}function Mh(e){return e===Je||.5===e.x&&.5===e.y}function Lh(e){return.5===e.x&&.5===e.y?e:rt}function Ah(e){if(null===e.diagram||!e.isAvoiding||!Ao(e.diagram))return!1;var t=e.points.s,n=t.length;if(4>n)return!1;e=To(e.diagram,!0,e.containingGroup,null);for(var i=1;ikd&&gd(t,u,h)!==c-1&&(gd(t,n-s,i)===c-1?(r=180,u=n-s,h=i):gd(t,n+s,i)===c-1?(r=0,u=n+s,h=i):gd(t,n,i-l)===c-1?(r=270,u=n,h=i-l):gd(t,n,i+l)===c-1&&(r=90,u=n,h=i+l));c>kd&&gd(t,u,h)===c-1;)n=u,i=h,0===r?u+=s:90===r?h+=l:180===r?u-=s:h-=l,--c;o?c>kd&&(180===r||0===r?n=Math.floor(n/s)*s+s/2:90!==r&&270!==r||(i=Math.floor(i/l)*l+l/2)):(n=Math.floor(n/s)*s+s/2,i=Math.floor(i/l)*l+l/2),c>kd&&(o=r,a=n,u=i,0===r?(o=90,u+=l):90===r?(o=180,a-=s):180===r?(o=270,u-=l):270===r&&(o=0,a+=s),gd(t,a,u)===c-1?Th(e,t,a,u,o,!1,o):(a=n,u=i,0===r?(o=270,u-=l):90===r?(o=0,a+=s):180===r?(o=90,u+=l):270===r&&(o=180,a-=s),gd(t,a,u)===c-1&&Th(e,t,a,u,o,!1,o))),e.yf(n,i)}function Dh(e,t,n,i){return e=n-e,isNaN(e)||1/0===e||-1/0===e?NaN:(0>e&&(e=-e),t=i-t,isNaN(t)||1/0===t||-1/0===t?NaN:(0>t&&(t=-t),Zt.$(e,0)?t:Zt.$(t,0)?e:Math.sqrt(e*e+t*t)))}function Nh(e,t,n,i){var r=e.pointsCount;if(2>r)return t;if(n){var o=e.i(1);if(n=o.x-i.x,o=o.y-i.y,0===(i=Dh(t.x,t.y,n,o)))return t;r=2===r?.5*i:i,(e=e.computeShortLength(!0))>r&&(e=r),r=e*(o-t.y)/i,t.x+=e*(n-t.x)/i,t.y+=r}else{if(n=(o=e.i(r-2)).x-i.x,o=o.y-i.y,0===(i=Dh(t.x,t.y,n,o)))return t;r=2===r?.5*i:i,(e=e.computeShortLength(!1))>r&&(e=r),r=e*(t.y-o)/i,t.x-=e*(t.x-n)/i,t.y-=r}return t}function Ih(e,t,n,i){for(var r=e.pointsCount,o=t;Zt.$(t.x,o.x)&&Zt.$(t.y,o.y);){if(n>=r)return r-1;o=e.i(n++)}if(!Zt.$(t.x,o.x)&&!Zt.$(t.y,o.y))return n-1;for(var a=o;Zt.$(t.x,o.x)&&Zt.$(o.x,a.x)&&(!i||(t.y>=o.y?o.y>=a.y:o.y<=a.y))||Zt.$(t.y,o.y)&&Zt.$(o.y,a.y)&&(!i||(t.x>=o.x?o.x>=a.x:o.x<=a.x));){if(n>=r)return r-1;a=e.i(n++)}return n-2}function Bh(e,t,n,i,r,o,a){if(!a&&Oh(e)){var s=(a=e.computeJumpLength())/2,l=[],c=0;if(e.isVisible()&&(c=function(e,t,n,i){var r=e.diagram;if(null===r||t.D(n))return 0;for(r=r.layers;r.next();){var o=r.value;if(null!==o&&o.visible)for(var a=(o=o.Pa.s).length,s=0;sh-a;)c--,h=Math.max(u-s,o.x);u=o.y-a+i,h+=n,p=o.y+i,e.curve===Yh?pu(t,h,p,!1):gu(t,d,u,h,u,h,p)}else if(Zt.B(r.x,o.x))if(r.yu-a;)c--,u=Math.max(h-s,o.y);h=o.x-a+n,p=o.x+n,u+=i,e.curve===Yh?pu(t,p,u,!1):gu(t,h,d,h,u,p,u)}}t.lineTo(o.x+n,o.y+i)}function Rh(e,t,n,i){for(var r=Zt.B(e.y,t.y),o=i.pointsCount,a=i.i(0),s=fe.alloc(),l=1;la.x&&u.x>=c.x||c.xa.y&&u.y>=c.y||c.ya&&Math.min(f,g)u&&!Zt.B(f,g)){s.x=u,s.y=a,u=!0;break e}}else if(Zt.B(h,p)&&Zt.B(f,g)&&Math.min(u,d)f&&Math.min(a,m)h&&!Zt.B(a,m)){s.x=f,s.y=h,u=!0;break e}s.x=0,s.y=0,u=!1}u&&(r?n.push(s.x):n.push(s.y)),a=c}fe.free(s)}function Oh(e){return(e=e.curve)===Xh||e===Yh}function Fh(e,t){(t||Oh(e))&&(null===(t=e.diagram)||t.animationManager.isTicking||t.Eh.contains(e)||0===e.ml.width&&0===e.ml.height||t.Eh.add(e,e.ml.copy()))}function zh(e,t,n){if(null!==t&&t.lk&&t.fd&&Oh(t)){var i=t.routeBounds;i.w()&&(e.routeBounds.Yc(i)||n.Yc(i))&&(e.usesSamePort(t)||t.qc())}}function jh(e){var t=e.ef;if(null!==t){var n=e.uf;if(null!==n&&isNaN(e.curviness)){for(var i=e.ff,r=e.vf,o=e=null,a=t.jb.s,s=a.length,l=0;lr&&(r=s.right),s.bottom>o&&(o=s.bottom)}}return isFinite(n)&&isFinite(i)?e.h(n,i,r-n,o-i):(t=t.location,e.h(t.x,t.y,0,0)),e},d.Object.defineProperties(wh.prototype,{padding:{get:function(){return this.yb},set:function(e){"number"==typeof e&&(e=new We(e));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.g("padding",t,e),this.v())}}}),wh.className="Placeholder",h(xh,Su),xh.prototype.cloneProtected=function(e){Su.prototype.cloneProtected.call(this,e),e.Qa=-113&this.Qa,e.ff=this.ff,e.gn=this.gn,e.vf=this.vf,e.uo=this.uo,e.qk=this.qk,e.Om=this.Om,e.Qm=this.Qm,e.Rm=this.Rm,e.qj=this.qj,e.po=this.po,null!==this.ba&&(e.ba=this.ba.copy())},(t=xh.prototype).Af=function(e){Su.prototype.Af.call(this,e),this.ff=e.ff,this.vf=e.vf,e.Mg=null,e.bb(),e.Sf=this.Sf;var t=e.fromPort;null!==t&&eh(t),null!==(e=e.toPort)&&eh(e)},t.qb=function(e){e.classType===xh?2==(2&e.value)?this.routing=e:e===qh||e===Yh||e===Xh?this.curve=e:e===Qh||e===Jh||e===ed?this.adjusting=e:e!==Kh&&e!==Wh&&x("Unknown Link enum value for a Link property: "+e):Su.prototype.qb.call(this,e)},t.Xc=function(){null===this.ba&&(this.ba=new fs)},t.si=function(){var e=this.fromNode;if(null!==e){var t=e.findVisibleNode();if(null!==t&&(e=t),is(e)||Ru(e))return!1}return null===(e=this.toNode)||(null!==(t=e.findVisibleNode())&&(e=t),!is(e)&&!Ru(e))},t.zv=function(){return!1},t.Av=function(){},t.Zc=function(){return!1},xh.prototype.computeAngle=function(e,t,n){return xh.computeAngle(t,n)},xh.computeAngle=function(e,t){switch(e){default:case Wh:e=0;break;case td:e=t;break;case nd:e=t+90;break;case id:e=t-90;break;case rd:e=t+180;break;case od:90<(e=Zt.bp(t))&&270>e&&(e-=180);break;case ad:90<(e=Zt.bp(t+90))&&270>e&&(e-=180);break;case sd:90<(e=Zt.bp(t-90))&&270>e&&(e-=180);break;case ld:if(45<(e=Zt.bp(t))&&135>e||225e)return 0;90e&&(e-=180)}return Zt.bp(e)},(t=xh.prototype).oh=function(){var e=this.containingGroup;null!==e&&this.fromNode!==e&&this.toNode!==e&&e.computesBoundsIncludingLinks&&Su.prototype.oh.call(this)},t.To=function(e){var t=this.fromNode;return e===t?this.toNode:t},t.Cz=function(e){var t=this.fromPort;return e===t?this.toPort:t},t.Vo=function(e){if(Su.prototype.Vo.call(this,e),Oh(this)&&this.Xo(this.actualBounds),!e){var t=null;null!==(e=this.ef)&&nh(e,this,t=this.fromPort);var n=this.uf;if(null!==n){var i=this.toPort;n===e&&i===t||nh(n,this,i)}jh(this)}},t.Wo=function(e){if(Su.prototype.Wo.call(this,e),Oh(this)&&this.Xo(this.actualBounds),!e){var t=null;null!==(e=this.ef)&&ih(e,this,t=this.fromPort);var n=this.uf;if(null!==n){var i=this.toPort;n===e&&i===t||ih(n,this,i)}$h(this)}},t.Lj=function(){if(this.fd=!0,null!==this.wd){var e=this.diagram;if(null!==e)for(var t=this.wd.copy().iterator;t.next();)e.remove(t.value)}null!==this.data&&(null!==(e=this.diagram)&&e.partManager.removeDataForLink(this))},xh.prototype.updateRelationshipsFromData=function(){if(null!==this.data){var e=this.diagram;null!==e&&e.partManager.updateRelationshipsFromData(this)}},xh.prototype.move=function(e,t){var n=t?this.location:this.position,i=n.x;isNaN(i)&&(i=0);var r=n.y;for(isNaN(r)&&(r=0),i=e.x-i,r=e.y-r,!0===t?Su.prototype.move.call(this,e,!1):(e=fe.allocAt(n.x+i,n.y+r),Su.prototype.move.call(this,e,!1),fe.free(e)),_h(this,i,r),e=this.labelNodes;e.next();)n=(t=e.value).position,t.moveTo(n.x+i,n.y+r)},xh.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var e=this.layer;return null===e||!!e.allowRelink&&!(null!==(e=e.diagram)&&!e.allowRelink)},xh.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var e=this.layer;return null===e||!!e.allowRelink&&!(null!==(e=e.diagram)&&!e.allowRelink)},xh.prototype.computeMidPoint=function(e){var t=this.pointsCount;if(0===t)return e.assign(ae),e;if(1===t)return e.assign(this.i(0)),e;if(2===t){var n=this.i(0),i=this.i(1);return e.h((n.x+i.x)/2,(n.y+i.y)/2),e}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===qh))return this.ua.Pu(.5,e),e.add(this.i(0)),n=this.ua.figures.first(),e.offset(-n.startX,-n.startY),e;if(this.computeCurve()===qh){if(3===t){n=this.i(0),i=this.i(1);var r=this.i(2);return Zt.ax(n.x,n.y,i.x,i.y,i.x,i.y,r.x,r.y,e),e}if(n=3*((i=(t-1)/3|0)/2|0),1==i%2){i=this.i(n),r=this.i(n+1);var o=this.i(n+2);n=this.i(n+3),Zt.ax(i.x,i.y,r.x,r.y,o.x,o.y,n.x,n.y,e)}else e.assign(this.i(n));return e}var a=this.flattenedLengths;for(n=this.flattenedTotalLength,r=o=i=0;in/2);)i+=r,o++;return t=this.i(o),o=this.i(o+1),1>Math.abs(t.x-o.x)?t.y>o.y?e.h(t.x,t.y-(n/2-i)):e.h(t.x,t.y+(n/2-i)):1>Math.abs(t.y-o.y)?t.x>o.x?e.h(t.x-(n/2-i),t.y):e.h(t.x+(n/2-i),t.y):(n=(n/2-i)/r,e.h(t.x+n*(o.x-t.x),t.y+n*(o.y-t.y))),e},xh.prototype.computeMidAngle=function(){var e=this.pointsCount;if(2>e)return NaN;if(2===e)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===qh))return this.ua.wx(.5);if(this.computeCurve()===qh&&4<=e){var t=(e-1)/3|0,n=3*(t/2|0);if(1==t%2){n=Math.floor(n),e=this.i(n),t=this.i(n+1);var i=this.i(n+2);return n=this.i(n+3),Zt.My(e.x,e.y,t.x,t.y,i.x,i.y,n.x,n.y)}if(0i/2);)o+=r,n++;if(t=this.i(n),i=this.i(n+1),1>Math.abs(t.x-i.x)&&1>Math.abs(t.y-i.y)){if(0Math.abs(t.x-i.x))return t.y>i.y?270:90;if(1>Math.abs(t.y-i.y))return t.x>i.x?180:0}return t.ab(i)},(t=xh.prototype).i=function(e){return this.Nb.s[e]},t.dd=function(e,t){this.Nb.cd(e,t)},t.L=function(e,t,n){this.Nb.cd(e,new fe(t,n))},t.Kz=function(e,t){this.Nb.Gb(e,t)},t.m=function(e,t,n){this.Nb.Gb(e,new fe(t,n))},t.ne=function(e){this.Nb.add(e)},t.yf=function(e,t){this.Nb.add(new fe(e,t))},t.pv=function(e){this.Nb.mb(e)},t.Fj=function(){this.Nb.clear()},t.uh=function(){null===this.Mg&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},t.zf=function(){if(null!==this.Mg){for(var e=this.Mg,t=this.Nb,n=1/0,i=1/0,r=e.s,o=r.length,a=0;ac&&(h=-h),m=u*((g=(0>l?-1:1)*h+p)-p)+f);var v=p=o.x+2*s/3,y=f=o.y+2*l/3;Zt.B(l,0)?y=0l?-1:1)*h+p)-p)+f,this.Fj(),this.ne(o),this.yf(g,m),this.yf(v,y),this.ne(d),this.dd(0,this.getLinkPoint(e,t,a,!0,!1,i,r)),this.dd(3,this.getLinkPoint(i,r,n,!1,!1,e,t))}else o=i,d=r,i=this.getLinkPoint(e,t,a,!0,!1,o,d),r=this.getLinkPoint(o,d,n,!1,!1,e,t),this.hasCurviness()?(d=r.x-i.x,n=r.y-i.y,a=this.computeCurviness(),o=e=i.x+d/2,s=t=i.y+n/2,Zt.B(n,0)?s=0a&&(o=-o),s=d*((o=(0>n?-1:1)*o+e)-e)+t),this.ne(i),this.yf(o,s),this.ne(r)):(this.ne(i),this.ne(r),s=Ie.alloc(),t.mi(s),l=s.ca(r),d.mi(s),c=s.ca(i),(l||c)&&(a=t.ga(Lh(a),new fe),this.dd(0,this.getLinkPointFromPoint(e,t,a,r,!0,a)),n=d.ga(Lh(n),new fe),this.dd(1,this.getLinkPointFromPoint(o,d,n,i,!1,n))),Ie.free(s))}else{h=this.isAvoiding,d&&(u&&h||c)&&this.Fj();var b=c?this.computeCurviness():0;h=this.getLinkPoint(e,t,a,!0,u,i,r),p=g=f=0,(u||!s||c)&&(m=this.computeEndSegmentLength(e,t,a,!0),p=this.getLinkDirection(e,t,h,a,!0,u,i,r),c&&(s||a.D(n)||!u&&1===a.x+n.x&&1===a.y+n.y)&&(p-=u?90:30,0>b&&(p-=180)),0>p?p+=360:360<=p&&(p-=360),c&&(m+=Math.abs(b)*(u?1:2)),0===p?f=m:90===p?g=m:180===p?f=-m:270===p?g=-m:(f=m*Math.cos(p*Math.PI/180),g=m*Math.sin(p*Math.PI/180)),a.Mc()&&c&&(m=t.ga(rt,fe.alloc()),v=fe.allocAt(m.x+1e3*f,m.y+1e3*g),this.getLinkPointFromPoint(e,t,m,v,!0,h),fe.free(m),fe.free(v))),m=this.getLinkPoint(i,r,n,!1,u,e,t);var w=y=v=0;if(u||!l||c){var x=this.computeEndSegmentLength(i,r,n,!1);w=this.getLinkDirection(i,r,m,n,!1,u,e,t),c&&(l||a.D(n)||!u&&1===a.x+n.x&&1===a.y+n.y)&&(w+=u?0:30,0>b&&(w+=180)),0>w?w+=360:360<=w&&(w-=360),c&&(x+=Math.abs(b)*(u?1:2)),0===w?v=x:90===w?y=x:180===w?v=-x:270===w?y=-x:(v=x*Math.cos(w*Math.PI/180),y=x*Math.sin(w*Math.PI/180)),n.Mc()&&c&&(n=r.ga(rt,fe.alloc()),a=fe.allocAt(n.x+1e3*v,n.y+1e3*y),this.getLinkPointFromPoint(i,r,n,a,!1,m),fe.free(n),fe.free(a))}n=h,(u||!s||c)&&(n=new fe(h.x+f,h.y+g)),a=m,(u||!l||c)&&(a=new fe(m.x+v,m.y+y)),!d&&!u&&s&&3=u.y&&e.y<=u.y+u.height?s.y=e.y:(n.Hf(ct)||n.Hf(dt))&&e.x>=u.x&&e.x<=u.x+u.width&&(s.x=e.x),fe.free(l),fe.free(c)}}return s}}return n=t.ga(Lh(n),fe.alloc()),this.pointsCount>(r?6:2)?(a=i?this.i(1):this.i(this.pointsCount-2),r&&(a=Ph(n,a.copy()))):(l=this.computeSpot(!i,a),o=fe.alloc(),a=a.ga(Lh(l),o),r&&(a=Ph(n,a)),fe.free(o)),this.getLinkPointFromPoint(e,t,n,a,i,s),fe.free(n),s},xh.prototype.getLinkDirection=function(e,t,n,i,r,o,a,s){e:if(i.sb())var l=i.x>i.y?i.x>1-i.y?0:i.x<1-i.y?270:315:i.x1-i.y?90:i.x<1-i.y?180:135:.5>i.x?225:.5(o?6:2)?(s=r?this.i(1):this.i(this.pointsCount-2),s=o?Ph(l,s.copy()):n):(n=fe.alloc(),s=s.ga(rt,n),fe.free(n)),n=Math.abs(s.x-l.x)>Math.abs(s.y-l.y)?s.x>=l.x?0:180:s.y>=l.y?90:270,fe.free(l),l=n}return i.Mc()&&a.Td(e)&&(360<=(l+=180)&&(l-=360)),Mh(i)||0===(e=t.li())||(45<=e&&135>e?l+=90:135<=e&&225>e?l+=180:225<=e&&315>e&&(l+=270),360<=l&&(l-=360)),l},xh.prototype.computeEndSegmentLength=function(e,t,n,i){return null!==t&&n.$c()&&null!==(e=Eh(this,t))?e.Ju:(e=i?this.fromEndSegmentLength:this.toEndSegmentLength,null!==t&&isNaN(e)&&(e=i?t.fromEndSegmentLength:t.toEndSegmentLength),isNaN(e)&&(e=10),e)},xh.prototype.computeSpot=function(e,t){return void 0===t&&(t=null),e?null===(e=t||this.fromPort)?e=rt:((t=this.fromSpot).Xb()&&(t=e.fromSpot),e=t===_t?Je:t):null===(e=t||this.toPort)?e=rt:((t=this.toSpot).Xb()&&(t=e.toSpot),e=t===_t?Je:t),e},xh.prototype.computeOtherPoint=function(e,t){return this.computeAdjusting()!==Wh&&4d.width||h.y>d.height||0>h.x+h.width||0>h.y+h.height)){if((h=$t.alloc()).set(a),u instanceof El)s=u.Cf(e,t,n,i,r,h);else if(this.path===u){if(u instanceof fc)if(s=e,d=i,!1===u.pickable)s=!1;else if(h.multiply(u.transform),d)e:{var p=s,f=h;if(u.fh(p,f))s=!0;else{if(void 0===f&&(f=u.transform,p.Re(u.actualBounds))){s=!0;break e}s=p.left,d=p.right;var g=p.top;p=p.bottom;var m=fe.alloc(),v=fe.alloc(),y=fe.alloc(),b=$t.alloc();b.set(f),b.bv(u.transform),b.Vj(),v.x=d,v.y=g,v.transform(b),m.x=s,m.y=g,m.transform(b),f=!1,wc(u,m,v,y)?f=!0:(m.x=d,m.y=p,m.transform(b),wc(u,m,v,y)?f=!0:(v.x=s,v.y=p,v.transform(b),wc(u,m,v,y)?f=!0:(m.x=s,m.y=g,m.transform(b),wc(u,m,v,y)&&(f=!0)))),$t.free(b),fe.free(m),fe.free(v),fe.free(y),s=f}}else s=u.fh(s,h)}else s=Ra(u,e,i,h);s&&(d=u,null!==t&&(d=t(u)),d&&(null===n||n(d))&&r.add(d)),$t.free(h)}}}return void 0===o&&$t.free(a),s||null!==this.background||null!==this.areaBackground}return void 0===o&&$t.free(a),!1},xh.prototype.computeCurve=function(){if(null===this.Wf){var e=this.fromPort,t=this.isOrthogonal;this.Wf=null!==e&&e===this.toPort&&!t}return this.Wf?qh:this.curve},xh.prototype.computeCorner=function(){if(this.curve===qh)return 0;var e=this.corner;return(isNaN(e)||0>e)&&(e=10),e},xh.prototype.findMidLabel=function(){for(var e=this.path,t=this.O.s,n=t.length,i=0;il?-Math.PI/2:Math.PI/2;else u=Math.atan(l/Math.abs(s)),0>s&&(u=Math.PI-u);a=t.x;var h=t.y;s=i.x-a;var d=i.y-h;for(l=Math.sqrt(s*s+d*d),Zt.$(s,0)?d=0>d?-Math.PI/2:Math.PI/2:(d=Math.atan(d/Math.abs(s)),0>s&&(d=Math.PI-d)),c=l/c,u=d-u,this.dd(e,t),e+=1;el?-Math.PI/2:Math.PI/2:(l=Math.atan(l/Math.abs(s)),0>s&&(l=Math.PI-l)),s=l+u,t*=c,this.L(e,a+t*Math.cos(s),h+t*Math.sin(s)));this.dd(n,i)}}return!0;case ed:if(o=this.i(e),h=this.i(n),!o.Xa(t)||!h.Xa(i)){r=o.x,o=o.y,c=((a=h.x)-r)*(a-r)+((h=h.y)-o)*(h-o),s=t.x,u=t.y,l=i.x,d=i.y;var p=1;if(0!=l-s){var f=(d-u)/(l-s);p=Math.sqrt(1+1/(f*f))}else f=9e9;for(this.dd(e,t),e+=1;et?t+=360:360<=t&&(t-=360),0>i?i+=360:360<=i&&(i-=360);var a=i;t=315<=t||45>t?0:45<=t&&135>t?90:135<=t&&225>t?180:270,i=315<=i||45>i?0:45<=i&&135>i?90:135<=i&&225>i?180:270;var s=r.actualBounds.copy(),l=o.actualBounds.copy();if(s.w()&&l.w()){s.Bc(hd,hd),l.Bc(hd,hd),s.Ye(e),l.Ye(n);var c=fe.alloc(),u=fe.alloc();0===t?n.x>e.x||270===i&&n.ye.x||90===i&&n.y>e.y&&l.right>e.x?(c.h(n.x,e.y),u.h(n.x,(e.y+n.y)/2),180===i?(c.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1),u.x=c.x,u.y=n.y):270===i&&n.ye.y?(c.x=e.xl.bottom)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):l.right,u.x=c.x,u.y=n.y):0===i&&e.xl.top&&e.ys.bottom)&&(180===i&&(l.ca(e)||s.ca(n))?c.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):n.ye.y&&(180===i||270===i)&&(c.y=this.computeMidOrthoPosition(e.x,s.bottom,n.x,Math.min(n.y,l.top),!0)),u.x=n.x,u.y=c.y),c.y>s.top&&c.y=s.left&&n.x<=e.x||e.x<=l.right&&e.x>=n.x?90!==i&&270!==i||(c.h(Math.max((e.x+n.x)/2,e.x),e.y),u.h(c.x,n.y)):(c.y=270===i||(0===i||180===i)&&n.ye.y&&l.lefte.y?(c.x=e.x>l.right?this.computeMidOrthoPosition(e.x,e.y,l.right,n.y,!1):e.x>l.left&&(270===i&&e.yl.bottom)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):l.left,u.x=c.x,u.y=n.y):180===i&&e.x>l.right&&e.y>l.top&&e.ys.bottom)&&(0===i&&(l.ca(e)||s.ca(n))?c.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):n.ye.y&&(0===i||270===i)&&(c.y=this.computeMidOrthoPosition(e.x,s.bottom,n.x,Math.min(n.y,l.top),!0)),u.x=n.x,u.y=c.y),c.y>s.top&&c.y=e.x||e.x>=l.left&&e.x<=n.x?90!==i&&270!==i||(c.h(Math.min((e.x+n.x)/2,e.x),e.y),u.h(c.x,n.y)):(c.y=270===i||(0===i||180===i)&&n.ye.y||180===i&&n.xe.y||0===i&&n.x>e.x&&l.bottom>e.y?(c.h(e.x,n.y),u.h((e.x+n.x)/2,n.y),270===i?(c.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0),u.x=n.x,u.y=c.y):180===i&&n.xe.x?(c.y=e.yl.right)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):l.bottom,u.x=n.x,u.y=c.y):90===i&&e.yl.left&&e.xs.right)&&(270===i&&(l.ca(e)||s.ca(n))?c.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):n.xe.x&&(270===i||180===i)&&(c.x=this.computeMidOrthoPosition(s.right,e.y,Math.min(n.x,l.left),n.y,!1)),u.x=c.x,u.y=n.y),c.x>s.left&&c.x=s.top&&n.y<=e.y||e.y<=l.bottom&&e.y>=n.y?0!==i&&180!==i||(c.h(e.x,Math.max((e.y+n.y)/2,e.y)),u.h(n.x,c.y)):(c.x=180===i||(90===i||270===i)&&n.xe.x&&l.top=e.x?(c.y=e.y>l.bottom?this.computeMidOrthoPosition(e.x,e.y,n.x,l.bottom,!0):e.y>l.top&&(180===i&&e.xl.right)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):l.top,u.x=n.x,u.y=c.y):270===i&&e.y>l.bottom&&e.x>l.left&&e.xs.right)&&(90===i&&(l.ca(e)||s.ca(n))?c.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):n.xe.x&&(90===i||180===i)&&(c.x=this.computeMidOrthoPosition(s.right,e.y,Math.min(n.x,l.left),n.y,!1)),u.x=c.x,u.y=n.y),c.x>s.left&&c.x=e.y||e.y>=l.top&&e.y<=n.y?0!==i&&180!==i||(c.h(e.x,Math.min((e.y+n.y)/2,e.y)),u.h(n.x,c.y)):(c.x=180===i||(90===i||270===i)&&n.x=_d&&(md(p),s.Bc(p.Ho*p.Hx,p.Go*p.Ix),wd(p,e,t,h,i,s,!1),l=gd(p,h.x,h.y)),!p.abort&&l<_d&&gd(p,h.x,h.y)!==Sd?(Th(this,p,h.x,h.y,i,!0,a),s=this.i(2),4>this.pointsCount?(0===t||180===t?(s.x=e.x,s.y=h.y):(s.x=h.x,s.y=e.y),this.L(2,s.x,s.y),this.m(3,s.x,s.y)):(a=this.i(3),0===t||180===t?Zt.B(s.x,a.x)?(s=0===t?Math.max(s.x,e.x):Math.min(s.x,e.x),this.L(2,s,e.y),this.L(3,s,a.y)):Zt.B(s.y,a.y)?(Math.abs(e.y-s.y)<=p.Go/2&&(this.L(2,s.x,e.y),this.L(3,a.x,e.y)),this.m(2,s.x,e.y)):this.L(2,e.x,s.y):90!==t&&270!==t||(Zt.B(s.y,a.y)?(s=90===t?Math.max(s.y,e.y):Math.min(s.y,e.y),this.L(2,e.x,s),this.L(3,a.x,s)):Zt.B(s.x,a.x)?(Math.abs(e.x-s.x)<=p.Ho/2&&(this.L(2,e.x,s.y),this.L(3,e.x,a.y)),this.m(2,e.x,s.y)):this.L(2,s.x,e.y))),null!==n&&(e=this.i(1),a=this.i(2),e.x!==a.x&&e.y!==a.y?0===t||180===t?this.m(2,e.x,a.y):this.m(2,a.x,e.y):0===t||180===t?this.m(2,r.x,n.y):this.m(2,n.x,r.y)),null!==f&&(0===i||180===i?this.yf(o.x,f.y):this.yf(f.x,o.y)),t=!0):t=!1}}}else t=!1;t||(this.ne(c.copy()),this.ne(u.copy())),fe.free(c),fe.free(u)}},xh.prototype.computeMidOrthoPosition=function(e,t,n,i,r){var o=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(o=this.computeCurviness()),r?(t+i)/2+o:(e+n)/2+o},xh.prototype.ez=function(e){var t=e.x;e=e.y;for(var n=this.i(0),i=this.i(1),r=be(t,e,n.x,n.y,i.x,i.y),o=0,a=1;athis.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),null!==(e=this.path)){e.ua=this.ua;for(var t=this.O.s,n=t.length,i=0;i=t&&(i=t-1),l=this.i(i),o.x=Math.min(l.x,o.x),o.y=Math.min(l.y,o.y);i=o.x,l=o.y}else{for(l=0;lm?f>p?(o.x=v-b,o.y=p-b,r.x=v+g,r.y=p+g):(o.x=v-b,o.y=p+b,r.x=v+g,r.y=p-g):f>p?(o.x=v+b,o.y=p-b,r.x=v-g,r.y=p+g):(o.x=v+b,o.y=p+b,r.x=v-g,r.y=p-g)),Zt.$(m,v)&&Zt.$(p,f)&&(p>d?(y>v?(o.x=v-b,o.y=p-b,r.x=v+g):(o.x=v+b,o.y=p-b,r.x=v-g),r.y=p+g):(y>v?(o.x=v-b,o.y=p+b,r.x=v+g):(o.x=v+b,o.y=p+b,r.x=v-g),r.y=p-g)),(Zt.$(m,v)&&Zt.$(v,y)||Zt.$(d,p)&&Zt.$(p,f))&&(m=.5*(m+y),d=.5*(d+f),o.x=m,o.y=d,r.x=m,r.y=d),(1===h||2===h&&Zt.$(a.x,this.i(0).x)&&Zt.$(a.y,this.i(0).y))&&(n.x=.5*(a.x+c.x),n.y=.5*(a.y+c.y)),gu(s,n.x-i,n.y-l,o.x-i,o.y-l,c.x-i,c.y-l),t.set(o),n.set(r),a=c}}c=a.x,a=a.y,u=this.i(this.pointsCount-1),0!==this.computeShortLength(!1)&&(u=Nh(this,u.copy(),!1,ne)),c=.5*(c+u.x),a=.5*(a+u.y),gu(s,r.x-i,r.y-l,c-i,a-l,u.x-i,u.y-l),fe.free(t),fe.free(n),fe.free(o),fe.free(r)}else for(n=3;n=t&&(n=t-1),r=this.i(n-1),a=this.i(n),n===t-1&&0!==this.computeShortLength(!1)&&(a=Nh(this,a.copy(),!1,ne)),gu(s,o.x-i,o.y-l,r.x-i,r.y-l,a.x-i,a.y-l);else{for((o=fe.alloc()).assign(this.i(0)),(r=fe.alloc()).assign(o),a=this.computeCorner(),h=1,c=0;h=t-1){if(o.D(u)){if(0===c)for(h=1;ho.x?d.x-f:d.x+f,y=v.y>d.y?d.y+b:d.y-b,Bh(this,s,h,m,o,v=fe.allocAt(w,x),g),fe.free(v),mu(s,d.x+h,d.y+m,p+h,y+m),o.h(p,y)}else Zt.B(o.x,d.x)&&Zt.B(d.y,v.y)?(f=Math.min(a,Math.abs(d.y-r.y)/2),f=b=Math.min(f,Math.abs(v.x-d.x)/2),Zt.B(b,0)?(Bh(this,s,h,m,o,d,g),o.assign(d)):(p=w=d.x,y=x=d.y,x=d.y>o.y?d.y-f:d.y+f,p=v.x>d.x?d.x+b:d.x-b,Bh(this,s,h,m,o,v=fe.allocAt(w,x),g),fe.free(v),mu(s,d.x+h,d.y+m,p+h,y+m),o.h(p,y))):(Bh(this,s,h,m,o,d,g),o.assign(d));r.assign(u),h=c}fe.free(o)}bu=s}else(s=this.i(1).copy()).x-=i,s.y-=l,0!==this.computeShortLength(!0)&&(r=Nh(this,r,!0,o)),0!==this.computeShortLength(!1)&&(s=Nh(this,s,!1,o)),e.type=Kt.j,e.startX=r.x,e.startY=r.y,e.endX=s.x,e.endY=s.y;return this.lk=!0,e},xh.prototype.computeJumpLength=function(){return 10},xh.prototype.Xo=function(e){var t=this.layer;if(null!==t&&t.visible&&!t.isTemporary){var n=t.diagram;if(null!==n&&!n.animationManager.isTicking){var i=!1;for(n=n.layers;n.next();){var r=n.value;if(r.visible)if(r===t){i=!0;for(var o=!1,a=(r=r.Pa.s).length,s=0;se&&k(e,">= 0",xh,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=e,this.g("fromEndSegmentLength",t,e),this.bb())}},fromShortLength:{get:function(){return null!==this.ba?this.ba.Wi:NaN},set:function(e){var t=this.fromShortLength;t!==e&&(this.Xc(),this.ba.Wi=e,this.qc(),this.g("fromShortLength",t,e))}},toSpot:{get:function(){return null!==this.ba?this.ba.yj:_t},set:function(e){var t=this.toSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.yj=e,this.g("toSpot",t,e),(t.$c()||e.$c())&&null!==this.toNode&&eh(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return null!==this.ba?this.ba.wj:NaN},set:function(e){var t=this.toEndSegmentLength;t!==e&&(0>e&&k(e,">= 0",xh,"toEndSegmentLength"),this.Xc(),this.ba.wj=e,this.g("toEndSegmentLength",t,e),this.bb())}},toShortLength:{get:function(){return null!==this.ba?this.ba.xj:NaN},set:function(e){var t=this.toShortLength;t!==e&&(this.Xc(),this.ba.xj=e,this.qc(),this.g("toShortLength",t,e))}},isLabeledLink:{get:function(){return null!==this.wd&&0=i&&(o=i-1);var s=this.i(o-1),l=this.i(o);Zt.Dl(r.x,r.y,a.x,a.y,s.x,s.y,l.x,l.y,.5,e),t=Math.min(l.x,t),n=Math.min(l.y,n),r=l}else for(r=this.i(0),o=this.i(1),t=Math.min(r.x,o.x),n=Math.min(r.y,o.y),e.h(r.x,r.y,0,0),e.Ye(o),r=2;r(i=r.y-i.y)&&(i=-i):Zt.$(i.y,r.y)?0>(i=r.x-i.x)&&(i=-i):i=Math.sqrt(i.Bf(r)),e.push(i)}}return this.cq}},flattenedTotalLength:{get:function(){var e=this.vt;if(isNaN(e)){for(var t=this.flattenedLengths,n=t.length,i=e=0;ithis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Mh(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var e=this.pointsCount;return 0===e?0:2>=e?e-1:this.isOrthogonal||!Mh(this.computeSpot(!1))?e-2:e-1}},adjusting:{get:function(){return this.qk},set:function(e){var t=this.qk;t!==e&&(this.qk=e,this.g("adjusting",t,e))}},corner:{get:function(){return this.Om},set:function(e){var t=this.Om;t!==e&&(this.Om=e,this.qc(),this.g("corner",t,e))}},curve:{get:function(){return this.Qm},set:function(e){var t=this.Qm;t!==e&&(this.Qm=e,this.bb(),this.qc(),Fh(this,t===Yh||t===Xh||e===Yh||e===Xh),this.g("curve",t,e))}},curviness:{get:function(){return this.Rm},set:function(e){var t=this.Rm;t!==e&&(this.Rm=e,this.bb(),this.qc(),this.g("curviness",t,e))}},routing:{get:function(){return this.qj},set:function(e){var t=this.qj;t!==e&&(this.qj=e,this.Wf=null,this.bb(),Fh(this,2==(2&t.value)||2==(2&e.value)),this.g("routing",t,e))}},smoothness:{get:function(){return this.po},set:function(e){var t=this.po;t!==e&&(this.po=e,this.qc(),this.g("smoothness",t,e))}},key:{get:function(){var e=this.diagram;if(null!==e&&e.model.ri())return e.model.Ac(this.data)}}}),xh.prototype.invalidateOtherJumpOvers=xh.prototype.Xo,xh.prototype.findClosestSegment=xh.prototype.ez,xh.prototype.updateRoute=xh.prototype.vg,xh.prototype.invalidateRoute=xh.prototype.bb,xh.prototype.rollbackRoute=xh.prototype.rv,xh.prototype.commitRoute=xh.prototype.zf,xh.prototype.startRoute=xh.prototype.uh,xh.prototype.clearPoints=xh.prototype.Fj,xh.prototype.removePoint=xh.prototype.pv,xh.prototype.addPointAt=xh.prototype.yf,xh.prototype.addPoint=xh.prototype.ne,xh.prototype.insertPointAt=xh.prototype.m,xh.prototype.insertPoint=xh.prototype.Kz,xh.prototype.setPointAt=xh.prototype.L,xh.prototype.setPoint=xh.prototype.dd,xh.prototype.getPoint=xh.prototype.i,xh.prototype.getOtherPort=xh.prototype.Cz,xh.prototype.getOtherNode=xh.prototype.To;var Hh=null,Zh=null,Kh=new j(xh,"Normal",1),Gh=new j(xh,"Orthogonal",2),Uh=new j(xh,"AvoidsNodes",6),Vh=new j(xh,"AvoidsNodesStraight",7),Wh=new j(xh,"None",0),qh=new j(xh,"Bezier",9),Yh=new j(xh,"JumpGap",10),Xh=new j(xh,"JumpOver",11),Qh=new j(xh,"End",17),Jh=new j(xh,"Scale",18),ed=new j(xh,"Stretch",19),td=new j(xh,"OrientAlong",21),nd=new j(xh,"OrientPlus90",22),id=new j(xh,"OrientMinus90",23),rd=new j(xh,"OrientOpposite",24),od=new j(xh,"OrientUpright",25),ad=new j(xh,"OrientPlus90Upright",26),sd=new j(xh,"OrientMinus90Upright",27),ld=new j(xh,"OrientUpright45",28),cd=16,ud=14,hd=8;function dd(e,t,n,i){J(this),this.Fe=this.qq=!1,this.Ds=e,this.Ox=t,this.cv=n,this.Px=i,this.links=[]}function pd(e){J(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=e.width,this.sc=e.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}function fd(e,t,n){return e.Nd<=t&&t<=e.En&&e.Od<=n&&n<=e.Fn}function gd(e,t,n){return fd(e,t,n)?(t-=e.Nd,t/=e.rc,n-=e.Od,n/=e.sc,e.ac[0|t][0|n]):Cd}function md(e){if(null!==e.ac)for(var t=0;t<=e.di;t++)for(var n=e.ac[t],i=0;i<=e.ei;i++)n[i]>=kd&&(n[i]=Cd)}function vd(e,t,n,i,r,o,a,s,l){if(!(ta||nl)){var c=0|t,u=0|n,h=e.ac[c][u];if(h>=kd&&h<_d)for(r?u+=i:c+=i,h+=1;o<=c&&c<=a&&s<=u&&u<=l&&!(h>=e.ac[c][u]);)e.ac[c][u]=h,h+=1,r?u+=i:c+=i;if(c=r?u:c,r)if(0c;n+=i)vd(e,t,n,1,!r,o,a,s,l),vd(e,t,n,-1,!r,o,a,s,l);else if(0c;t+=i)vd(e,t,n,1,!r,o,a,s,l),vd(e,t,n,-1,!r,o,a,s,l)}}function yd(e,t,n,i,r,o,a,s,l){t|=0,n|=0;var c=Sd,u=kd;for(e.ac[t][n]=u;c===Sd&&t>o&&ts&&no&&ts&&n=Math.abs(s-c)&&1>=Math.abs(l-u))e.abort=!0;else{var h=o.x;i=o.y,t=o.x+o.width;var d=o.y+o.height;h-=e.Nd,h/=e.rc,i-=e.Od,i/=e.sc,t-=e.Nd,t/=e.rc,d-=e.Od,d/=e.sc,o=Math.max(0,Math.min(e.di,0|h)),t=Math.min(e.di,Math.max(0,0|t)),h=Math.max(0,Math.min(e.ei,0|i)),d=Math.min(e.ei,Math.max(0,0|d)),l|=0,c|=0,u|=0;var p=0===n||90===n?1:-1;if(n=90===n||270===n,(i=e.ac)[s|=0][l]===Sd?(yd(e,s,l,p,n,o,t,h,d),yd(e,s,l,1,!n,o,t,h,d),yd(e,s,l,-1,!n,o,t,h,d)):yd(e,s,l,p,n,s,l,s,l),i[c][u]===Sd?(bd(e,c,u,0===r||90===r?1:-1,90===r||270===r,o,t,h,d),bd(e,c,u,1,!(90===r||270===r),o,t,h,d),bd(e,c,u,-1,!(90===r||270===r),o,t,h,d)):bd(e,c,u,p,n,c,u,c,u),n=A(),a&&xd(e,c,u,r,s,l,n))for(n[0]===c&&n[1]===u||(n.unshift(u),n.unshift(c)),n[n.length-2]===s&&n[n.length-1]===l||(n.push(s),n.push(l)),e=kd,r=n[n.length-2],a=n[n.length-1],i[r][a]=e++,o=n.length-4;0<=o;o-=2)for(r=n[o+2],a=n[o+3],t=n[o],c=n[o+1];t>r?r++:ta?a++:cr))break;u--}else{if(!(h>o))break;h--}var d=s[u][h];if(0===d||d===Pd)break;l=u,c=h}for(;;){if(u=i,h=l,d=c,0===i?do&&(u=270,d--):90===i?hr&&(u=180,h--):180===i?do&&(u=270,d--):hr&&(u=180,h--),h=s[h][d],u!==i&&0!==h&&h!==Pd){if(a.push(l),a.push(c),xd(e,l,c,u,r,o,a))return!0;a.pop(),a.pop()}if(s[l][c]=Pd,0===i){if(l===t)return!1;l--}else if(90===i){if(c===n)return!1;c--}else if(180===i){if(l===t)return!1;l++}else{if(c===n)return!1;c++}}}xh.className="Link",xh.Normal=Kh,xh.Orthogonal=Gh,xh.AvoidsNodes=Uh,xh.AvoidsNodesStraight=Vh,xh.None=Wh,xh.Bezier=qh,xh.JumpGap=Yh,xh.JumpOver=Xh,xh.End=Qh,xh.Scale=Jh,xh.Stretch=ed,xh.OrientAlong=td,xh.OrientPlus90=nd,xh.OrientMinus90=id,xh.OrientOpposite=rd,xh.OrientUpright=od,xh.OrientPlus90Upright=ad,xh.OrientMinus90Upright=sd,xh.OrientUpright45=ld,xh.EndSegmentStep=8,xh.CurvinessStart=cd,xh.SpacingMin=ud,xh.OrthoShortCut=hd,dd.prototype.Sl=function(){if(!this.qq){var e=this.links;0=e.width||0>=e.height)){var t=e.y,n=e.x+e.width,i=e.y+e.height;if(this.Nd=Math.floor((e.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((t-this.sc)/this.sc)*this.sc,this.En=Math.ceil((n+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((i+2*this.sc)/this.sc)*this.sc,e=1+(0|Math.ceil((this.En-this.Nd)/this.rc)),t=1+(0|Math.ceil((this.Fn-this.Od)/this.sc)),null===this.ac||this.dithis.En||e+nthis.Fn||t+ie&&(n+=e,e=0),0>t&&(r+=t,t=0),0>n||0>r)return!0;for(i=0|Math.min(e+n-1,this.di),n=0|Math.min(t+r-1,this.ei);e<=i;e++){r=this.ac[e];for(var o=t;o<=n;o++)if(r[o]===Sd)return!1}return!0},d.Object.defineProperties(pd.prototype,{bounds:{get:function(){return new Ie(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(e){0=n?180:0}switch(e=180*Math.atan2(e.height,e.width)/Math.PI,t){case 3:return n>e&&n<=180+e?180:270;case 5:return n>180-e&&n<=360-e?270:0;case 12:return n>e&&n<=180+e?90:0;case 10:return n>180-e&&n<=360-e?180:90;case 7:return 90180+e&&n<=360-e?270:0;case 13:return 180e&&180>=n?90:0;case 14:return n>e&&n<=180-e?90:n>180-e&&270>=n?180:0;case 11:return n>180-e&&n<=180+e?180:n>180+e?270:90}return i&&15!==t&&(0>(n-=15)&&(n+=360)),n>e&&n<180-e?90:n>=180-e&&n<=180+e?180:n>180+e&&n<360-e?270:0}function Ld(e,t){var n=e.pe;if(0===n.length){e:if(!e.ap){n=e.ap,e.ap=!0;var i=null,r=e.node,o=r instanceof gh?r:null;if(null===o||o.isSubGraphExpanded)var a=r.isTreeExpanded?r.findLinksConnected(e.port.portId):r.qx();else{if(!o.actualBounds.w()){e.ap=n;break e}a=(i=o).Lu()}o=e.pe.length=0;var s=e.port.ga(et,fe.alloc()),l=e.port.ga(lt,fe.alloc());for((r=Ie.allocAt(s.x,s.y,0,0)).Ye(l),fe.free(s),fe.free(l),s=fe.allocAt(r.x+r.width/2,r.y+r.height/2),l=e.port.li(),a=a.iterator;a.next();){var c=a.value;if(c.isVisible()&&c.fromPort!==c.toPort){var u=c.fromPort===e.port||null!==c.fromNode&&c.fromNode.Td(i),h=c.computeSpot(u,e.port);if(h.$c()&&null!==(u=u?c.toPort:c.fromPort)){var d=u.part;if(null!==d){var p=d.findVisibleNode();null!==p&&p!==d&&(u=(d=p).port),u=c.computeOtherPoint(d,u),d=s.ab(u),0>(d-=l)?d+=360:360<=d&&(d-=360),0===(h=Md(r,h,d,c.isOrthogonal))?(h=4,180d&&(d+=360)),void 0===(p=e.pe[o])?(p=new Ad(c,d,h),e.pe[o]=p):(p.link=c,p.angle=d,p.Nc=h),p.hv.set(u),o++}}}}for(fe.free(s),e.pe.sort(Ed.prototype.j),l=e.pe.length,i=-1,o=s=0;oMath.abs(g)?(y=Math.abs(g)/d,d=Math.abs(g)):y=1;break;case 2:p>Math.abs(b)?(y=Math.abs(b)/p,p=Math.abs(b)):y=1;break;case 1:h>Math.abs(g)?(y=Math.abs(g)/h,h=Math.abs(g)):y=1;break;default:u>Math.abs(b)?(y=Math.abs(b)/u,u=Math.abs(b)):y=1}v=0}var S=w.Zo;if(i===fh){switch(w=w.link.computeThickness(),w*=y,S.set(x),f){case 8:S.x=x.x+g/2+d/2-v-w/2;break;case 2:S.y=x.y+b/2+p/2-v-w/2;break;case 1:S.x=x.x+g/2-h/2+v+w/2;break;default:S.y=x.y+b/2-u/2+v+w/2}v+=w}else{var k=.5;i===ph&&(k=(w.Uo+1)/(w.Gl+1)),S.x=x.x+g*k,S.y=x.y+b*k}}}for(fe.free(s),fe.free(l),fe.free(a),fe.free(c),x=e.pe,o=0;ot?1:0:1:null!==t?-1:0}function $d(e){J(this),this.nb=e,this.qd=this.kd=this.$k=this.ub=null}function Hd(e){Td.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Ae(NaN,NaN).freeze(),this.tf=new Ae(10,10).freeze(),this.Jb=Gd,this.Rb=Ud,this.nd=Yd,this.hd=Zd,e&&Object.assign(this,e)}function Zd(e,t){return(e=e.text)<(t=t.text)?-1:e>t?1:0}pd.className="PositionArray",Ed.prototype.toString=function(){for(var e=this.pe,t=this.node.toString()+" "+e.length.toString()+":",n=0;nt.Nc?1:e.anglet.angle?1:0},Ed.prototype.computeEndSegmentLength=function(e){var t=e.link,n=t.computeEndSegmentLength(this.node,this.port,Je,t.fromPort===this.port),i=e.Uo;if(0>i)return n;var r=e.Gl;if(1>=r||!t.isOrthogonal)return n;t=e.hv;var o=e.Zo;return 2!==e.Nc&&8!==e.Nc||(i=r-1-i),((e=2===e.Nc||4===e.Nc)?t.y=t-1?(o=0,i=n,r+=a+20,a=0):o++}},Td.prototype.doMinimalNetworkLayout=function(){var e=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var t=this.arrangementOrigin.x,n=t,i=this.arrangementOrigin.y,r=0,o=0,a=this.network.vertexes.iterator;a.next();){var s=a.value.node;if(!(null===s||s instanceof xh)&&(Nd(s),this.rh(s))){var l=s.measuredBounds,c=l.width;l=l.height,s.moveTo(n,i),s instanceof gh&&(s.rh=!1),n+=Math.max(c,50)+20,o=Math.max(o,Math.max(l,50)),r>=e-1?(r=0,n=t,i+=o+20,o=0):r++}}},Td.prototype.rh=function(e){return!(e.location.w()&&!(e instanceof gh&&e.rh))},Td.prototype.ni=function(e,t){var n=this.boundsComputation;return null!==n?(t||(t=new Ie),n(e,this,t)):t?(t.set(e.actualBounds),t):e.actualBounds},Td.prototype.ex=function(e){var t=new Q;return e instanceof Er?(Dd(this,t,e.nodes,!0,null,!0,!0,!0),Dd(this,t,e.links,!0,null,!0,!0,!0),Dd(this,t,e.parts,!0,null,!0,!0,!0)):Dd(this,t,e instanceof gh?e.memberParts:e.iterator,!1,null,!0,!0,!0),t},Td.prototype.initialOrigin=function(e){var t=this.group;if(null!==t){var n=t.position.copy();return(isNaN(n.x)||isNaN(n.y))&&n.set(e),null!==(t=t.placeholder)&&(n=t.ga(et),(isNaN(n.x)||isNaN(n.y))&&n.set(e),e=t.padding,n.x+=e.left,n.y+=e.top),n}return e},d.Object.defineProperties(Td.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},group:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e,null!==e&&(this.H=e.diagram))}},isOngoing:{get:function(){return this.sn},set:function(e){this.sn!==e&&(this.sn=e)}},isInitial:{get:function(){return this.Gh},set:function(e){this.Gh=e,e||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(e){this.yn!==e&&(this.yn=e)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(e){this.vn!==e&&(this.vn=e)}},isRealtime:{get:function(){return this.un},set:function(e){this.un!==e&&(this.un=e)}},isValidLayout:{get:function(){return this.xn},set:function(e){this.xn!==e&&(this.xn=e,e||null!==(e=this.diagram)&&(e.xh=!0))}},network:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e,null!==e&&(e.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(e){this.Em!==e&&(this.Em=e,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(e){this.Am.D(e)||(this.Am.assign(e),this.C())}}}),Td.prototype.collectParts=Td.prototype.ex,Td.prototype.getLayoutBounds=Td.prototype.ni,Td.prototype.invalidateLayout=Td.prototype.C,Td.className="Layout",Id.prototype.clear=function(){if(this.wf)for(var e=this.wf.iterator;e.next();)e.value.clear();if(this.ye)for(e=this.ye.iterator;e.next();)e.value.clear();this.wf=new Q,this.ye=new Q,this.Es=new pe,this.zs=new pe},Id.prototype.toString=function(e){void 0===e&&(e=0);var t="LayoutNetwork"+(null!==this.layout?"("+this.layout.toString()+")":"");if(0>=e)return t;if(t+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1=o&&0>=a&&(o=1),t=this.spacing.width,isFinite(t)||(t=0),n=this.spacing.height,isFinite(n)||(n=0),null!==e&&e.Ea("Layout"),i=[],this.alignment){case Kd:var s=t,l=n,c=Ie.alloc(),u=Math.max(this.cellSize.width,1);if(!isFinite(u))for(var h=u=0;ho-1||0a)&&(i.push(new Ie(0,g,a+s,v)),m=0,f=p,g+=v,v=0),v=Math.max(v,S),d===Vd)w=-w.width;else w=0;if(b.moveTo(f+w,g),d===Vd)f-=x;else f+=x;m++}i.push(new Ie(0,g,a+s,v)),Ie.free(c);break;case Gd:for(l=a,u=o,h=t,d=n,a=Ie.alloc(),p=Math.max(this.cellSize.width,1),o=g=c=0,s=fe.alloc(),f=0;f=c&&(l-=c),c=b=0,x=Math.max(this.cellSize.height,1),w=o=0,S=!0,m=fe.alloc(),k=0;ku-1||0l){for(i.push(new Ie(0,S?y-o:y,l+h,w+o+d)),_=0;_c&&(o.width+=o.x-c,o.x=c);Ie.free(a)}for(s=o=a=r=0;sh)){var g=h+ql(f);f.pc(g,!0),Ql(f,g,h)}}t.isModified=!0}}finally{t.aa=!0}}}}},Qd.prototype.updateAllTargetBindings=function(e){void 0===e&&(e="");for(var t=this.parts.iterator;t.next();)t.value.La(e);for(t=this.nodes.iterator;t.next();)t.value.La(e);for(t=this.links.iterator;t.next();)t.value.La(e)},Qd.prototype.rp=function(){for(var e=this.H.model,t=new Q,n=e.nodeDataArray,i=0;i=i)return"[]";var r=new H;r.add("["),n&&1i)return;L(e.Tc,i)}Pp(e,"nodeDataArray",gn,"nodeDataArray",e,t,null,i,null),e.qp(t)}function Ap(e,t,n){if(void 0!==t){var i=e.Vf.I(t);null===i&&(i=new Q,e.Vf.add(t,i)),i.add(n)}}function Tp(e,t,n){if(void 0!==t){var i=e.Vf.I(t);i instanceof Q&&(null==n?e.Vf.remove(t):(i.remove(n),0===i.count&&e.Vf.remove(t)))}}function Dp(e,t){return void 0===t?null:(e=e.Vf.I(t))instanceof Q?e:null}function Np(e,t,n){if(e.copiesArrays&&Array.isArray(t)){var i=[];for(n=0;nt&&(t=e.length),M(e,t,n),Pp(this,"",fn,"",e,null,n,null,t)},t.ov=function(e,t){void 0===t&&(t=-1),e===this.Tc&&x("Model.removeArrayItem should not be called on the Model.nodeDataArray"),-1===t&&(t=e.length-1);var n=e[t];L(e,t),Pp(this,"",gn,"",e,n,null,t,null)},t.Ro=function(e){if(null===e)return"";var t=this.lj;return""===t||void 0===(t=Op(e,t))?"":"string"==typeof t?t:void x("getCategoryForNodeData found a non-string category for "+e+": "+t)},t.jm=function(e,t){if(null!==e){var n=this.lj;if(""!==n)if(this.lb(e)){var i=Op(e,n);void 0===i&&(i=""),i!==t&&(Fp(e,n,t),Pp(this,"nodeCategory",pn,n,e,i,t))}else Fp(e,n,t)}},t.lm=function(e,t){this.jm(t,this.Ro(e))},t.Tl=function(){return!1},t.Wj=function(){return!1},t.ri=function(){return!1},t.xs=function(){return!1},t.Xj=function(){return!1},d.Object.defineProperties(gp.prototype,{name:{get:function(){return this.xa},set:function(e){var t=this.xa;t!==e&&(this.xa=e,this.g("name",t,e))}},dataFormat:{get:function(){return this.Sm},set:function(e){var t=this.Sm;t!==e&&(this.Sm=e,this.g("dataFormat",t,e))}},isReadOnly:{get:function(){return this.Gg},set:function(e){var t=this.Gg;t!==e&&(this.Gg=e,this.g("isReadOnly",t,e))}},modelData:{get:function(){return this.j},set:function(e){var t=this.j;t!==e&&(this.j=e,this.g("modelData",t,e),this.La(e))}},undoManager:{get:function(){return this.o},set:function(e){var t=this.o;t!==e&&(null!==t&&t.Rx(this),this.o=e,null!==e&&e.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(e){this.Wg=e}},nodeKeyProperty:{get:function(){return this.Th},set:function(e){var t=this.Th;t!==e&&(""===e&&x("Model.nodeKeyProperty may not be the empty string"),0(i=e.md.indexOf(t)))return;e.md.splice(i,1)}if(Pp(e,"linkDataArray",gn,"linkDataArray",e,t,null,i,null),Tp(e,n=Wp(e,t,!0),t),Tp(e,n=Wp(e,t,!1),t),i=e.Ef(t),Array.isArray(i))for(var r=i.length,o=0;oi.indexOf(e.newValue)&&i.splice(n,0,e.newValue)))}else if(e.change===gn){if(n=e.oldParam,"linkDataArray"===e.modelChange)return void(C(e=e.oldValue)&&"number"==typeof n&&(i=this.Ac(e),t?(this.$f.add(e),this.md[n]!==e&&this.md.splice(n,0,e),void 0!==i&&this.wb.add(i,e)):(this.$f.remove(e),this.md[n]===e&&this.md.splice(n,1),void 0!==i&&this.wb.remove(i))));if("linkLabelKeys"===e.modelChange)return i=this.Ef(e.object),void(Array.isArray(i)&&"number"==typeof n&&(t?0>i.indexOf(e.newValue)&&i.splice(n,0,e.newValue):(n=i.indexOf(e.newValue),0<=n&&i.splice(n,1))))}gp.prototype.changeState.call(this,e,t)}},(t=Up.prototype).Vl=function(e){if(void 0!==e){var t=this.Ri;if(null!==t){var n=this.hc(e);null===n&&(Fp(n=this.copyNodeData(t),this.nodeKeyProperty,e),this.xf(n))}return e}},t.yx=function(e){return Wp(this,e,!0)},t.wv=function(e,t){qp(this,e,t,!0)},t.Bx=function(e){return Wp(this,e,!1)},t.Bv=function(e,t){qp(this,e,t,!1)},t.zx=function(e){return Yp(this,e,!0)},t.xv=function(e,t){Xp(this,e,t,!0)},t.Cx=function(e){return Yp(this,e,!1)},t.Cv=function(e,t){Xp(this,e,t,!1)},t.Ef=function(e){if(null===e)return nf;var t=this.je;return""===t||void 0===(e=Op(e,t))?nf:e},t.Ls=function(e,t){if(null!==e){var n=this.je;if(""!==n)if(this.Jc(e)){var i=Op(e,n);if(void 0===i&&(i=nf),i!==t){if(Array.isArray(i))for(var r=i.length,o=0;or||(i.splice(r,1),this.Jc(e)&&(Tp(this,t,e),Pp(this,"linkLabelKeys",gn,n,e,t,null,r,null)))}else void 0!==i&&x(n+" property is not an Array; cannot removeLabelKeyforLinkData: "+e)}}},t.Ac=function(e){if(null!==e){var t=this.Jh;if(""!==t&&void 0!==(t=Op(e,t))){if(Ep(t))return t;x("Key value for link data "+e+" is not a number or a string: "+t)}}},t.Ks=function(e,t){if(null!==e){var n=this.Jh;if(""!==n)if(this.Jc(e)){var i=Op(e,n);i!==t&&null===this.jh(t)&&(Fp(e,n,t),void 0!==i&&this.wb.remove(i),this.wb.add(t,e),Pp(this,"linkKey",pn,n,e,i,t),"string"==typeof n&&this.La(e,n))}else Fp(e,n,t)}},t.jh=function(e){return null===e&&x("GraphLinksModel.findLinkDataForKey:key must not be null"),void 0!==e&&Ep(e)?this.wb.I(e):null},t.Bs=function(e){if(null!==e){var t=this.Jh;if(""!==t){var n=this.Ac(e);if(void 0===n||this.wb.contains(n)){var i=this.cl;if(null!==i&&(null!=(n=i(this,e))&&!this.wb.contains(n)))return void Fp(e,t,n);if("string"==typeof n){for(i=2;this.wb.contains(n+i);)i++;Fp(e,t,n+i)}else if(void 0===n||"number"==typeof n){for(n=-this.wb.count-1;this.wb.contains(n);)n--;Fp(e,t,n)}}}}},t.Jc=function(e){return null!==e&&this.$f.contains(e)},t.fi=function(e){null!==e&&(ee(e),this.Jc(e)||Qp(this,e,!0))},t.Ey=function(e){if(Array.isArray(e))for(var t=e.length,n=0;nn){for(o=i+(r===xf?o:-o);0>o;)o+=360;180<(o%=360)&&(o-=360),o*=Math.PI/180,e.gt=o,hf(e,t,n,i,r)}else uf(e,t,n,i,r);e.Xr.commit(t)}function uf(e,t,n,i,r){var o=e.lc,a=e.Ti,s=e.Zm,l=o*Math.cos(i*Math.PI/180),c=e.me*Math.sin(i*Math.PI/180),u=t.Fa();if(3===u.length)u[0].centerX=o,u[0].centerY=0,u[1].centerX=u[0].centerX-u[0].width/2-u[1].width/2-a,u[1].y=u[0].y,u[2].centerX=(u[0].centerX+u[1].centerX)/2,u[2].y=u[0].y-u[2].height-a;else if(4===u.length)u[0].centerX=o,u[0].centerY=0,u[2].centerX=-u[0].centerX,u[2].centerY=u[0].centerY,u[1].centerX=0,u[1].y=Math.min(u[0].y,u[2].y)-u[1].height-a,u[3].centerX=0,u[3].y=Math.max(u[0].y+u[0].height+a,u[2].y+u[2].height+a);else{o=fe.alloc();for(var h=0;h=u.length-1));h++)df(e,l,c,u,h,r,o)||pf(e,l,c,u,h,r,o),l=o.x,c=o.y;if(fe.free(o),e.mj++,!(23Math.abs(p)?Math.abs(l-o)<(u[0].width+u[u.length-1].width)/2&&(a=0):a=0Math.abs(d)?0:d,l=Math.abs(o)>Math.abs(h)?0h:0e.mj?e.lc-a/(2*Math.PI):5>u.length&&10=h.length-1));d++)df(e,l,c,h,d,r,u)||pf(e,l,c,h,d,r,u),l=u.x,c=u.y;if(fe.free(u),e.mj++,!(23e.mj?e.lc-o/(2*Math.PI):e.lc-(0s){if((o=t-e)<-s)return a.x=o,a.y=c,!1;u=!0}}else if((o=t-e)<-s){if((o=t+e)>s)return a.x=o,a.y=c,!1;u=!0}return c=Math.sqrt(1-Math.min(1,o*o/(s*s)))*l,0>n!==u&&(c=-c),Math.abs(n-c)>(i[r].height+i[r+1].height)/2?(a.x=o,a.y=c,!1):(a.x=o,a.y=c,!0)}function pf(e,t,n,i,r,o,a){var s=e.lc,l=e.me,c=0;if(e=(i[r].height+i[r+1].height)/2+e.Ti,i=!1,0<=t!=(o===xf)){if((o=n-e)<-l){if((o=n+e)>l)return a.x=c,void(a.y=o);i=!0}}else if((o=n+e)>l){if((o=n-e)<-l)return a.x=c,void(a.y=o);i=!0}c=Math.sqrt(1-Math.min(1,o*o/(l*l)))*s,0>t!==i&&(c=-c),a.x=c,a.y=o}function ff(e,t,n,i,r){var o=e.ty;if(.001>Math.abs(e.Zm-1))return void 0!==i&&void 0!==r?r*t:2*Math.PI*t;e=t>n?Math.sqrt(t*t-n*n)/t:Math.sqrt(n*n-t*t)/n;for(var a=0,s=void 0!==i&&void 0!==r?r/(o+1):Math.PI/(2*(o+1)),l=0,c=0;c<=o;c++){l=void 0!==i&&void 0!==r?i+c*r/o:c*Math.PI/(2*o);var u=Math.sin(l);a+=Math.sqrt(1-e*e*u*u)*s}return void 0!==i&&void 0!==r?(t>n?t:n)*a:4*(t>n?t:n)*a}function gf(e,t,n,i,r){return t/(void 0!==i&&void 0!==r?ff(e,1,n,i,r):ff(e,1,n))}function mf(e,t,n,i,r){if(.001>Math.abs(e.Zm-1))return r/t;var o=t>n?Math.sqrt(t*t-n*n)/t:Math.sqrt(n*n-t*t)/n,a=0;e=2*Math.PI/(700*e.network.vertexes.count),t>n&&(i+=Math.PI/2);for(var s=0;;s++){var l=Math.sin(i+s*e);if((a+=(t>n?t:n)*Math.sqrt(1-o*o*l*l)*e)>=r)return s*e}}Up.className="GraphLinksModel",jp.GraphLinksModel=Up,gp.constructGraphLinksModel=gp.constructGraphLinksModel=function(){return new Up},gp.initDiagramModel=Ip=function(){return new Up},h(rf,gp),rf.constructGraphLinksModel=gp.constructGraphLinksModel,rf.prototype.cloneProtected=function(e){gp.prototype.cloneProtected.call(this,e),e.Ke=this.Ke,e.Nm=this.Nm,e.nj=this.nj},(t=rf.prototype).toString=function(e){if(void 0===e&&(e=0),2<=e)return this.np();var t=(""!==this.name?this.name:"")+" TreeModel";if(0=(e=this.network.vertexes).count)1===e.count&&((e=e.first()).centerX=0,e.centerY=0);else{var t=new Y;t.addAll(e.iterator),e=new Y;var n,i,r=new Y,o=this.sort(t),a=this.Jp,s=this.arrangement,l=this.nodeDiameterFormula,c=this.radius;(!isFinite(c)||0>=c)&&(c=NaN);var u=this.aspectRatio;(!isFinite(u)||0>=u)&&(u=1);var h=this.startAngle;isFinite(h)||(h=0);var d=this.sweepAngle;if((!isFinite(d)||360d)&&(d=360),t=this.spacing,isFinite(t)||(t=NaN),s===wf&&l===Tf?s=vf:s===wf&&l!==Tf&&(s=this.arrangement),(this.direction===kf||this.direction===_f)&&this.sorting!==Lf){for(l=0;!(l>=o.length)&&(e.add(o.M(l)),!(l+1>=o.length));l+=2)r.add(o.M(l+1));this.direction===kf?(this.arrangement===wf&&e.reverse(),(o=new Y).addAll(e),o.addAll(r)):(this.arrangement===wf&&r.reverse(),(o=new Y).addAll(r),o.addAll(e))}l=o.length;for(var p=i=n=0;pd&&(0===p||p===o.length-1)&&(g/=2),n+=g,i++}if(isNaN(c)||s===wf){if(isNaN(t)&&(t=6),s!==vf&&s!==wf){for(i=-1/0,a=0;ac?i=(c=n)*u:a=p/(360<=d?l:l-1)}if(this.kw=s,this.lc=c,this.Zm=u,this.lw=h,this.Wp=d,this.Ti=t,this.me=i,this.Jp=a,t=o,o=this.kw,s=this.lc,c=this.lw,u=this.Wp,h=this.Ti,d=this.me,l=this.Jp,this.direction!==kf&&this.direction!==_f||o!==wf)if(this.direction===kf||this.direction===_f){switch(a=0,o){case yf:a=180*mf(this,s,d,c,l)/Math.PI;break;case vf:l=t=0,null!==(a=e.first())&&(t=Bf(a,Math.PI/2)),null!==(a=r.first())&&(l=Bf(a,Math.PI/2)),a=180*mf(this,s,d,c,h+(t+l)/2)/Math.PI;break;case bf:a=u/t.length}if(this.direction===kf){switch(o){case yf:lf(this,e,c,Sf);break;case vf:sf(this,e,c,Sf);break;case bf:af(this,e,u/2,c,Sf)}switch(o){case yf:lf(this,r,c+a,xf);break;case vf:sf(this,r,c+a,xf);break;case bf:af(this,r,u/2,c+a,xf)}}else{switch(o){case yf:lf(this,r,c,Sf);break;case vf:sf(this,r,c,Sf);break;case bf:af(this,r,u/2,c,Sf)}switch(o){case yf:lf(this,e,c+a,xf);break;case vf:sf(this,e,c+a,xf);break;case bf:af(this,e,u/2,c+a,xf)}}}else switch(o){case yf:lf(this,t,c,this.direction);break;case vf:sf(this,t,c,this.direction);break;case bf:af(this,t,u,c,this.direction);break;case wf:cf(this,t,u,c,this.direction)}else cf(this,t,u,c-u/2,xf)}this.updateParts(),this.network=null,this.isValidLayout=!0},of.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},of.prototype.commitNodes=function(){var e=null!==this.group&&null!==this.group.placeholder&&this.group.isSubGraphExpanded,t=e?this.group.location.copy():null,n=this.actualCenter;e?n=new fe(0,0):(n.x=this.arrangementOrigin.x+this.lc,n.y=this.arrangementOrigin.y+this.me);for(var i=this.network.vertexes.iterator;i.next();){var r=i.value;r.x+=n.x,r.y+=n.y,r.commit()}e&&(this.group.Va(),e=this.group.position.copy(),n=this.group.location.copy(),t=t.re(n.re(e)),this.group.move(t),this.Zv=t.re(e))},of.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},of.prototype.sort=function(e){switch(this.sorting){case Cf:break;case Pf:e.reverse();break;case Ef:e.sort(this.comparer);break;case Mf:e.sort(this.comparer),e.reverse();break;case Lf:return this.ak(function(e){for(var t=[],n=0;nr&&(r=s,o=a)}else for(a=0;ar&&(r=s,o=a);for(n.add(e.M(o)),t[o]=-1,a=(o=e.M(o)).sourceEdges;a.next();)0>(r=e.indexOf(a.value.fromVertex))||0<=t[r]&&t[r]++;for(o=o.destinationEdges;o.next();)0>(r=e.indexOf(o.value.toVertex))||0<=t[r]&&t[r]++}return n}(e));default:x("Invalid sorting type.")}return e},of.prototype.ak=function(e){for(var t=[],n=0;nt[n].indexOf(r)&&t[n].push(r);for(i=i.sourceEdges;i.next();)(r=e.indexOf(i.value.fromVertex))!==n&&0>t[n].indexOf(r)&&t[n].push(r)}for(o=[],n=0;nt[n[f]].indexOf(n[f===n.length-1?0:f+1])&&p.push(f===n.length-1?0:f+1);if(0===p.length)for(f=0;fn.indexOf(S)||xn.indexOf(S)||x=g?x+1:x)))=g&&x++,(b=o[s[y]])>=g&&b++,x>b&&(w=b,b=x,x=w),b-x<(n.length+2)/2==(x(p=n.indexOf(t[c][d]))||p===u||(h+=pu?p-u:u-p)>a-f?1:-1);n.splice(0>h?u:u+1,0,l),i.splice(s,1),s--}else o=!1;if(o)break;n.push(i[0]),i.splice(0,1)}for(t=0;t=e?e:360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==wf&&e!==vf&&e!==yf&&e!==bf||(this.Rb=e,this.C())}},direction:{get:function(){return this.K},set:function(e){this.K===e||e!==xf&&e!==Sf&&e!==kf&&e!==_f||(this.K=e,this.C())}},sorting:{get:function(){return this.nd},set:function(e){this.nd===e||e!==Cf&&e!==Pf&&e!==Ef&&!Mf&&e!==Lf||(this.nd=e,this.C())}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e,this.C())}},spacing:{get:function(){return this.tf},set:function(e){this.tf!==e&&(this.tf=e,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(e){this.Nn===e||e!==Af&&e!==Tf||(this.Nn=e,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var vf=new j(of,"ConstantSpacing",0),yf=new j(of,"ConstantDistance",1),bf=new j(of,"ConstantAngle",2),wf=new j(of,"Packed",3),xf=new j(of,"Clockwise",4),Sf=new j(of,"Counterclockwise",5),kf=new j(of,"BidirectionalLeft",6),_f=new j(of,"BidirectionalRight",7),Cf=new j(of,"Forwards",8),Pf=new j(of,"Reverse",9),Ef=new j(of,"Ascending",10),Mf=new j(of,"Descending",11),Lf=new j(of,"Optimized",12),Af=new j(of,"Pythagorean",13),Tf=new j(of,"Circular",14);function Df(){this.Pl=-1/0,this.tm=this.mk=null}function Nf(e){Id.call(this,e)}function If(e){zd.call(this,e),this.u=this.Si=NaN}function Bf(e,t){var n=e.network;if(null===n)return NaN;if(null===(n=n.layout))return NaN;if(n.arrangement===wf)if(n.nodeDiameterFormula===Tf)e.Si=Math.max(e.width,e.height);else{if(n=Math.abs(Math.sin(t)),t=Math.abs(Math.cos(t)),0===n)return e.width;if(0===t)return e.height;e.Si=Math.min(e.height/n,e.width/t)}else e.Si=n.nodeDiameterFormula===Tf?Math.max(e.width,e.height):Math.sqrt(e.width*e.width+e.height*e.height);return e.Si}function Rf(e){$d.call(this,e)}function Of(e){Td.call(this),this.ah=null,this.An=0,this.$d=new Ae(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,e&&Object.assign(this,e)}function Ff(e,t,n){if(function(e,t){if(10e.network.vertexes.count)return!1;for(e.ah=e.network.vertexes.Fa(),(e=e.ah).sort((function(e,t){return null===e||null===t||e===t?0:t.Vd-e.Vd})),t=e.length-1;0<=t&&1>=e[t].Vd;)t--;return 1=(a=r.We.M(r.We.count-1).Rs-r.Vd))){for(var c=s=0,u=l.count-a;u(p=u*h)&&(p=1),a=((s=Zt.sqrt((s+p+c*c*4/(a*a))/p))-1)*u/2,s=(s-1)*h/2,r.bounds=new Ie(o-d.x-a,l-d.y-s,u+2*a,h+2*s),r.focus=new fe(d.x+a,d.y+s)}}return e.network=i,n}(e,t),o=Math.max(0,Math.max(Math.min(e.network.vertexes.count,n*(t+1)/11),10));for(e.maxIterations+=o,Ff(e,t+1,n),Hf(e,o),function(e,t){for(var n=e.network.vertexes.iterator;n.next();){var i=n.value;if(i.network=t,null!==i.We){var r=i.We.M(i.sv);i.Vd=r.Rs;var o=r.Sv,a=r.Tv;i.bounds=new Ie(i.centerX-o,i.centerY-a,r.Ss,r.Qs),i.focus=new fe(o,a),i.sv--}}for(n=e.network.edges.iterator;n.next();)n.value.network=t;e.network=t}(e,r),(t=r.vertexes.Fa()).sort((function(e,t){return null===e||null===t||e===t?0:t.Vd-e.Vd})),n=0;n=h.Vd?l++:(s=!0,c++,a+=Math.atan2(t.centerY-h.centerY,t.centerX-h.centerX))}if(0!==l)for(0>1)+c)*(0==s%2?1:-1),l.centerX=i+u*Math.cos(h),l.centerY=r+u*Math.sin(h),s++}}}function jf(e,t,n,i,r,o,a){var s=9e19,l=-1,c=0;e:for(;cu.y&&e[d].x-u.xu.x&&e[d].y-u.yt+o?(n=i+r-a,e=e-t-o,Zt.sqrt(n*n+e*e)):e+na+s?e>t+o?(n=i-a-s,e=e-t-o,Zt.sqrt(n*n+e*e)):e+nt+o?e-(t+o):e+n=t.length)return!1;var n=t[0];n.forceX=0,n.forceY=0;for(var i=n.centerX,r=i,o=n=n.centerY,a=1;ao-n)?t.sort((function(e,t){return null===e||null===t||e===t?0:e.centerX-t.centerX})):t.sort((function(e,t){return null===e||null===t||e===t?0:e.centerY-t.centerY})),n=e.Zf;var c=i=s=0;for(o=0;on||c-l>n){if(r)break}else if(u-p>n||p-u>n){if(!r)break}else{var f=$f(a,d);1>f?(null===(i=e.randomNumberGenerator)&&(e.randomNumberGenerator=i=new Wf),f=i.random(),s=i.random(),l>c?i=(1+(i=Math.abs(d.bounds.right-a.bounds.x)))*f:lp?c=(1+(c=Math.abs(d.bounds.bottom-a.bounds.y)))*s:l(h=$f(n,o))?(null===(h=e.randomNumberGenerator)&&(e.randomNumberGenerator=h=new Wf),s=h.random(),h=h.random(),i=(i>l?1:-1)*(1+(o.width>n.width?o.width:n.width))*s,c=(a>u?1:-1)*(1+(o.height>n.height?o.height:n.height))*h):(i=(l-i)/h*(s=s.stiffness*(h-s.length)),c=(u-a)/h*s),n.forceX+=i,n.forceY+=c,o.forceX-=i,o.forceY-=c;for(r=i=0;re.epsilonDistance*e.epsilonDistance}function Kf(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}function Gf(e){Id.call(this,e)}function Uf(e){zd.call(this,e),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}function Vf(e){$d.call(this,e),this.j=this.o=NaN}function Wf(){var e=0;void 0===e&&(e=42),this.seed=e,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}function qf(e){Td.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Dg,this.Zk=Bg,this.Qk=Fg,this.bj=4,this.rk=Hg,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new fe,this.He=[],this.He.length=100,this.xw=this.ve=0,e&&Object.assign(this,e)}function Yf(e){var t=e.fromVertex.node||e.fromVertex.data;return e=e.toVertex.node||e.toVertex.data,null===t&&null===e?8:null===t||null===e?4:1}function Xf(e){null===e.kj&&(e.kj=[]);for(var t=0,n=e.network.vertexes.iterator;n.next();){var i=n.value;e.kj[t]=i.layer,t++,e.kj[t]=i.column,t++,e.kj[t]=i.index,t++}return e.kj}function Qf(e,t){var n=0;for(e=e.network.vertexes.iterator;e.next();){var i=e.value;i.layer=t[n],n++,i.column=t[n],n++,i.index=t[n],n++}}function Jf(e,t,n){var i=Ag(e,t),r=e.tc[t];(null===e.Jn||e.Jn.lengtha)for(var h=a+1;hc;h--)(d=i[h]).near===u&&d.Dj===u.Dj||l++;if(0<=n)for(c=i[a].sourceEdgesArrayAccess,u=0;ug||d===g&&p>f)&&l++,md||g===d&&f>p)&&l++}}}if(0>=n)for(c=i[a].destinationEdgesArrayAccess,u=0;ug||d===g&&h>m)&&l++,fd||g===d&&m>h)&&l++);for(o[a*r+a]=l,c=a+1;c=n)for(l=i[a].destinationEdgesArrayAccess,b=i[c].destinationEdgesArrayAccess,u=0;u=n&&(l=s.sourceEdgesArrayAccess);var c=null;0<=n&&(c=s.destinationEdgesArrayAccess);var u=0,h=0,d=s.near;if(null!==d&&d.layer===s.layer&&(u+=d.column-1,h++),null!==l)for(d=0;d=n&&(l=s.sourceEdgesArrayAccess);var c=null;0<=n&&(c=s.destinationEdgesArrayAccess);var u=0,h=[],d=s.near;if(null!==d&&d.layer===s.layer&&(h[u]=d.column-1,u++),s=void 0,null!==l)for(d=0;d>1,o[a]=0!=(1&u)?h[c]:h[c-1]+h[c]>>1)}return Tg(e,t,i),o}function ig(e,t,n,i,r,o){if(t.component===i){if(t.component=n,r)for(var a=t.destinationEdges;a.next();){var s=a.value,l=s.toVertex,c=t.layer-l.layer;c===(s=e.linkMinLength(s))&&ig(e,l,n,i,r,o)}if(o)for(a=t.sourceEdges;a.next();)(c=(l=(s=a.value).fromVertex).layer-t.layer)===(s=e.linkMinLength(s))&&ig(e,l,n,i,r,o)}}function rg(e,t,n,i,r,o){if(t.component===i){if(t.component=n,r)for(var a=t.destinationEdges;a.next();)rg(e,a.value.toVertex,n,i,r,o);if(o)for(t=t.sourceEdges;t.next();)rg(e,t.value.fromVertex,n,i,r,o)}}function og(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid)return t}return null}function ag(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid){for(var n=!0,i=t.destinationEdges;i.next();)if(i.value.toVertex.valid){n=!1;break}if(n)return t}}return null}function sg(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid){for(var n=!0,i=t.sourceEdges;i.next();)if(i.value.fromVertex.valid){n=!1;break}if(n)return t}}return null}function lg(e,t){t.Ll=e.Kn,e.Kn++;for(var n=t.destinationEdges;n.next();){var i=n.value,r=i.toVertex;-1===r.Ll&&(i.forest=!0,lg(e,r))}t.finish=e.Kn,e.Kn++}function cg(e){for(var t=e.network.vertexes.iterator;t.next();){var n=ug(e,t.value);e.Ia=Math.max(n,e.Ia)}}function ug(e,t){var n=0;if(-1===t.layer){for(var i=t.destinationEdges;i.next();){var r=i.value,o=r.toVertex;r=e.linkMinLength(r),n=Math.max(n,ug(e,o)+r)}t.layer=n}else n=t.layer;return n}function hg(e,t){var n=0;if(-1===t.layer){for(var i=t.sourceEdges;i.next();){var r=i.value,o=r.fromVertex;r=e.linkMinLength(r),n=Math.max(n,hg(e,o)+r)}t.layer=n}else n=t.layer;return n}function dg(e,t){if(!t.valid){t.valid=!0;for(var n=t.destinationEdges;n.next();)dg(e,n.value.toVertex);for(n=e.network.vertexes.iterator;n.next();)n.value.component=-1;for(var i=t.sourceEdgesArrayAccess,r=i.length,o=0;oa&&ig(e,s,0,-1,!0,!1)}for(ig(e,t,1,-1,!0,!0);0!==t.component;){for(o=0,i=1/0,s=0,l=null,a=e.network.vertexes.iterator;a.next();){var c=a.value;if(1===c.component){var u=0,h=!1,d=c.sourceEdgesArrayAccess;r=d.length;for(var p=0;po)&&!u&&(s=a,o=c)}if(0>i){for(n.reset();n.next();)1===(i=n.value).component&&(i.layer-=r);t.component=0}else s.component=0}}}function pg(e,t,n){return 90===e.K?n&&!t.rev||!n&&t.rev?270:90:180===e.K?n&&!t.rev||!n&&t.rev?0:180:270===e.K?n&&!t.rev||!n&&t.rev?90:270:n&&!t.rev||!n&&t.rev?180:0}function fg(e,t){var n=t.layer;for(t.index=e.tc[n],e.tc[n]++,t=t.destinationEdgesArrayAccess,n=!0;n;){n=!1;for(var i=0;io.portFromColOffset&&(n=!0,t[i]=o,t[i+1]=r)}}for(n=0;no.portToColOffset&&(i=!0,t[n]=o,t[n+1]=r)}for(n=0;ni+1&&(d+=4*(y-i),p+=4*(y-(i+1)))}for((w=r[i].destinationEdges.iterator).reset();w.next();)if(b=(y=w.value).toVertex,y.valid&&b.layer===t){for(y=0;r[y]!==b;)y++;y===i+1&&(p+=1)}for((w=r[i+1].sourceEdges.iterator).reset();w.next();)if(b=(y=w.value).fromVertex,y.valid&&b.layer===t){for(y=0;r[y]!==b;)y++;yi+1&&(d+=4*(y-(i+1)),p+=4*(y-i))}for((w=r[i+1].destinationEdges.iterator).reset();w.next();)if(b=(y=w.value).toVertex,y.valid&&b.layer===t){for(y=0;r[y]!==b;)y++;y===i&&(d+=1)}y=b=0,w=a[r[i].index];var x=s[r[i].index],S=a[r[i+1].index],k=s[r[i+1].index];-1!==w&&(b+=Math.abs(w-f),y+=Math.abs(w-v)),-1!==x&&(b+=Math.abs(x-f),y+=Math.abs(x-v)),-1!==S&&(b+=Math.abs(S-g),y+=Math.abs(S-m)),-1!==k&&(b+=Math.abs(k-g),y+=Math.abs(k-m)),(pn)for(i=0;ii-1||u-r[i-1].column-1>h+e.nodeMinColumnSpace(r[i-1],!1)?u-1:u,h=i+1>=o||r[i+1].column-u-1>d+e.nodeMinColumnSpace(r[i+1],!0)?u+1:u;var f=d=0,g=0;if(0>=n)for(var m=r[i].sourceEdges.iterator;m.next();){var v=m.value,y=v.fromVertex;if(v.valid&&y.layer!==t){var b=Yf(v),w=v.portFromColOffset;v=v.portToColOffset,y=y.column,d+=(Math.abs(u+v-(y+w))+1)*b,f+=(Math.abs(p+v-(y+w))+1)*b,g+=(Math.abs(h+v-(y+w))+1)*b}}if(0<=n)for(m=r[i].destinationEdges.iterator;m.next();)y=(v=m.value).toVertex,v.valid&&y.layer!==t&&(b=Yf(v),w=v.portFromColOffset,v=v.portToColOffset,y=y.column,d+=(Math.abs(u+w-(y+v))+1)*b,f+=(Math.abs(p+w-(y+v))+1)*b,g+=(Math.abs(h+w-(y+v))+1)*b);v=w=b=0,m=a[r[i].index],y=s[r[i].index],-1!==m&&(b+=Math.abs(m-u),w+=Math.abs(m-p),v+=Math.abs(m-h)),-1!==y&&(b+=Math.abs(y-u),w+=Math.abs(y-p),v+=Math.abs(y-h)),f=a[n]?u=l:c<=a[n]&&(u=c));u!==s&&(o=!0,i[n].column=u)}Tg(e,t,i),e.normalize()}function xg(e,t){for(var n=!0,i=e.network.vertexes.iterator;i.next();){var r=i.value,o=e.nodeMinColumnSpace(r,!0),a=e.nodeMinColumnSpace(r,!1);if(r.column-o<=t&&r.column+a>=t){n=!1;break}}if(e=!1,n)for(i.reset();i.next();)(n=i.value).column>t&&(--n.column,e=!0);return e}function Sg(e,t){var n,i=t+1,r=[],o=[];for(n=0;n<=e.Ia;n++)r[n]=!1,o[n]=!1;for(var a=e.network.vertexes.iterator;a.next();){var s=(n=a.value).column-e.nodeMinColumnSpace(n,!0),l=n.column+e.nodeMinColumnSpace(n,!1);s<=t&&l>=t&&(r[n.layer]=!0),s<=i&&l>=i&&(o[n.layer]=!0)}for(s=!0,i=!1,n=0;n<=e.Ia;n++)s=s&&!(r[n]&&o[n]);if(s)for(a.reset();a.next();)(e=a.value).column>t&&(--e.column,i=!0);return i}function kg(e,t){for(var n=0;n<=e.Ra;n++)for(;xg(e,n););for(e.normalize(),n=0;no?Qf(e,r):at)for(n=e.Ra;0<=n;n--)for(r=Xf(e),i=(o=eg(e))+1;oo?Qf(e,r):an)for(i.reset();i.next();)(r=i.value).column+e.nodeMinColumnSpace(r,!1)>=t&&(r.component=e.le);for(e.le++,i.reset();i.next();)-1===(t=i.value).component&&(rg(e,t,e.le,-1,!0,!0),e.le++);var o;for(t=[],o=0;on)for(a=e.Ra;0n)for(i.reset();i.next();)r[(n=i.value).component]&&(n.column+=1)}function Cg(e,t,n,i){for(var o=90===e.K||270===e.K,a=r(t),s=a.next();!s.done;s=a.next()){var l=r(s.value);for(s=l.next();!s.done;s=l.next())(s=s.value).sd=s,s.shift=1/0,s.zc=NaN,s.qg=0}for(s=90===e.K||270===e.K,l=(a=r(t)).next();!l.done;l=a.next())for(var c=(l=r(l.value)).next();!c.done;c=l.next())if((c=c.value).root===c){for(var u=0,h=c;h.align!==c;){var d=h.align,p=s?h.width:h.height,f=s?d.width:d.height;if(n){var g=qg(h,d),m=g.portFromPos,v=g.portToPos;null!==g.link&&(h.node&&h.node!==g.link.fromNode&&(m=s?h.focusX:h.focusY),d.node&&d.node!==g.link.toNode&&(v=s?d.focusX:d.focusY))}else m=(g=qg(d,h)).portToPos,v=g.portFromPos,null!==g.link&&(h.node&&h.node!==g.link.toNode&&(m=s?h.focusX:h.focusY),d.node&&d.node!==g.link.fromNode&&(v=s?d.focusX:d.focusY));p=i?h.qg+(p-m)-(f-v):h.qg+m-v,d.qg=p,u=Math.min(u,p),h=h.align}h=c;do{h.qg=h.qg-u,h=h.align}while(h!==c)}for(s=(n=r(t)).next();!s.done;s=n.next())for(s=(a=r(s.value)).next();!s.done;s=a.next())(s=s.value).root===s&&Pg(e,s,t);for(n=0;n=t[n].length)&&(s=t[n][0]).sd===s){1/0===s.sd.shift&&(s.sd.shift=0),s=n,l=0;do{for(a=t[s][l];a.align!==a.root;)s++,0<(a=a.align).vi&&((l=Eg(a,t)).sd.shift=Math.min(l.sd.shift,a.sd.shift+a.zc+a.qg-(l.zc+l.qg+(o?l.width:l.height)+e.columnSpacing)));l=a.vi+1}while(s(e=e.vi)&&x("Could not determine previous vertex in layer"),t[n][e-1]}function Mg(e,t,n,i,r){if(!t||0===t.count)return n[r]=0,i[r]=0,1/0;var o=1/0,a=-1/0;return t.each((function(t){var n=t.key;t=t.value,n=90===e.K||270===e.K?n.width:n.height,ta&&(a=t+n)})),n[r]=o,i[r]=a,a-o}function Lg(e,t){return 270===e.K?t?Lt:Dt:90===e.K?t?Dt:Lt:180===e.K?t?At:Tt:t?Tt:At}function Ag(e,t){var n=e.tc[t];if(n>=e.He.length){for(var i=[],r=0;rthis.Pl||Math.abs(e)e&&0s?(r=d.x+d.width/2,o=d.y+d.height/2,c[0]=new fe(d.x+d.width+i.width,d.y),c[1]=new fe(d.x,d.y+d.height+i.height),s=2):(p=new fe((h=c[l=jf(c,s,r,o,d.width,d.height,i)]).x+d.width+i.width,h.y),d=new fe(h.x,h.y+d.height+i.height),l+1this.network.vertexes.count)return!1;for(var e=0,t=0,n=this.network.vertexes.first().bounds,i=this.network.vertexes.iterator;i.next();){if(i.value.bounds.Yc(n)&&2<++e)return!0;if(10i&&(t=i),n<-i?n=-i:n>i&&(n=i),e.centerX+=t,e.centerY+=n,t*t+n*n},Of.prototype.moveFixedVertex=function(){},Of.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Of.prototype.yv=function(){if(this.setsPortSpots)for(var e=this.network.edges.iterator;e.next();){var t=e.value.link;null!==t&&(t.fromSpot=_t,t.toSpot=_t)}},Of.prototype.commitNodes=function(){var e=0,t=0;if(this.arrangesToOrigin){var n=Ie.alloc();this.computeBounds(this.network,n),e=(t=this.arrangementOrigin).x-n.x,t=t.y-n.y,Ie.free(n)}n=Ie.alloc();for(var i=this.network.vertexes.iterator;i.next();){var r=i.value;0===e&&0===t||(n.assign(r.bounds),n.x+=e,n.y+=t,r.bounds=n),r.commit()}Ie.free(n)},Of.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},Of.prototype.springStiffness=function(e){return e=e.stiffness,isNaN(e)?this.Hk:e},Of.prototype.springLength=function(e){return e=e.length,isNaN(e)?this.Gk:e},Of.prototype.electricalCharge=function(e){return e=e.charge,isNaN(e)?this.Ek:e},Of.prototype.electricalFieldX=function(){return 0},Of.prototype.electricalFieldY=function(){return 0},Of.prototype.gravitationalMass=function(e){return e=e.mass,isNaN(e)?this.Fk:e},Of.prototype.gravitationalFieldX=function(){return 0},Of.prototype.gravitationalFieldY=function(){return 0},Of.prototype.isFixed=function(e){return e.isFixed},d.Object.defineProperties(Of.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(e){this.$d.D(e)||(this.$d.assign(e),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(e){this.Bm!==e&&(this.Bm=e,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(e){this.sf!==e&&(this.sf=e,this.C())}},comments:{get:function(){return this.td},set:function(e){this.td!==e&&(this.td=e,this.C())}},maxIterations:{get:function(){return this.dl},set:function(e){this.dl!==e&&0<=e&&(this.dl=e,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(e){this.$m!==e&&0g&&0g&&0e[this.Md]&&(this.Iq=e[n]-1,this.Md=n),e[n]t.toVertex.index&&(e.gm(t),t.rev=!0);break;case Dg:for(i=this.network.vertexes.iterator;i.next();)(e=i.value).Ll=-1,e.finish=-1;for(e=this.network.edges.iterator;e.next();)e.value.forest=!1;for(this.Kn=0,i.reset();i.next();)0===(t=i.value).sourceEdges.count&&lg(this,t);for(i.reset();i.next();)-1===(t=i.value).Ll&&lg(this,t);for(e.reset();e.next();)(i=e.value).forest||(n=(t=i.fromVertex).finish,o=(r=i.toVertex).finish,r.Lli){if(0>i)for(t.reset();t.next();)t.value.layer-=i;for(i=[],t.reset();t.next();)void 0===(r=i[(n=t.value).layer])?i[n.layer]=[n]:r.push(n);for(n=t=0;n=i;t--)n=vg(this,t,-1)||n;for((s=this.countCrossings())>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=e;t>=i;t--)n=vg(this,t,1)||n;for((s=this.countCrossings())>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=i;t<=e;t++)n=vg(this,t,1)||n;for(s>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=i;t<=e;t++)n=vg(this,t,-1)||n;for(s>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=e;t>=i;t--)n=vg(this,t,0)||n;for(s>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=i;t<=e;t++)n=vg(this,t,0)||n;s>=o?Qf(this,a):(o=s,a=Xf(this))}break;default:for(e=this.Ia,i=0,r=o+1;(t=this.countCrossings())=i;t--)n=vg(this,t,-1)||n;for((s=this.countCrossings())>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=e;t>=i;t--)n=vg(this,t,1)||n;for((s=this.countCrossings())>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=i;t<=e;t++)n=vg(this,t,1)||n;for(s>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=i;t<=e;t++)n=vg(this,t,-1)||n;for(s>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=e;t>=i;t--)n=vg(this,t,0)||n;for(s>=o?Qf(this,a):(o=s,a=Xf(this)),n=!0;n;)for(n=!1,t=i;t<=e;t++)n=vg(this,t,0)||n;s>=o?Qf(this,a):(o=s,a=Xf(this))}}Qf(this,a)},qf.prototype.straightenAndPack=function(){if(0===this.ve){var e=0!=(1&this.bg),t=0!=(this.bg&Kg);if(1e3>1)+8*i;this.Ra*=8}if(0!=(2&this.bg))for(n=!0;n;){for(n=!1,t=this.Md+1;t<=this.Ia;t++)n=yg(this,t,1)||n;for(t=this.Md-1;0<=t;t--)n=yg(this,t,-1)||n;n=yg(this,this.Md,0)||n}if(0!=(4&this.bg)){for(t=this.Md+1;t<=this.Ia;t++)wg(this,t,1);for(t=this.Md-1;0<=t;t--)wg(this,t,-1);wg(this,this.Md,0)}if(e&&(kg(this,-1),kg(this,1)),0!=(2&this.bg))for(n=!0;n;){for(n=!1,n=yg(this,this.Md,0)||n,t=this.Md+1;t<=this.Ia;t++)n=yg(this,t,0)||n;for(t=this.Md-1;0<=t;t--)n=yg(this,t,0)||n}}else!function(e){for(var t=A(),n=e.fl.length,i=0;i<=n;i++)t[i]=[];for(i=e.network.vertexes.iterator;i.next();){var o=i.value;t[n-o.layer][o.index]=o}n=new Q,function(e,t){for(var n=e.length,i=1;ih)&&t.add(d);a++}o=h}}}(t,n);var a=null,s=null,l=null,c=null,u=0!=(1&e.ve),h=0!=(2&e.ve),d=0!=(4&e.ve),p=0!=(8&e.ve);for(u&&(e.verticalAlignment(t,n,!0),a=Cg(e,t,!0,!1)),t.reverse(),d&&(e.verticalAlignment(t,n,!1),l=Cg(e,t,!1,!1)),i=r(t),o=i.next();!o.done;o=i.next())o.value.reverse();p&&(e.verticalAlignment(t,n,!1),c=Cg(e,t,!1,!0)),t.reverse(),h&&(e.verticalAlignment(t,n,!0),s=Cg(e,t,!0,!0)),T(t),e.u(a,s,l,c),e.network.vertexes.each((function(e){var t=A();u&&t.push(a.get(e)),h&&t.push(s.get(e)),d&&t.push(l.get(e)),p&&t.push(c.get(e)),t.sort((function(e,t){return e-t}));var n=t.length;n=(t[Math.floor((n-1)/2)]+t[Math.ceil((n-1)/2)])/2,T(t),e.zc=n}))}(this)},qf.prototype.verticalAlignment=function(e,t,n){!function(e){for(var t=0;ta;a++)if(t[a]){var s=Mg(this,t[a],i,r,a);sa;o={delta:o.delta},a++)t[a]&&(o.delta=0===a||2===a?i[n]-i[a]:r[n]-r[a],0!==o.delta&&t[a].each(function(e){return function(t){t.value+=e.delta}}(o)));T(i),T(r)},qf.prototype.commitLayout=function(){if(this.setsPortSpots)for(var e=Lg(this,!0),t=Lg(this,!1),n=this.network.edges.iterator;n.next();){var i=n.value.link;null!==i&&(i.fromSpot=e,i.toSpot=t)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},qf.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var e=0;e<=this.Ia;e++)this.he[e]=0,this.Ld[e]=0,this.Kd[e]=0,this.Ta[e]=0;for(e=this.network.vertexes.iterator;e.next();){var t=e.value,n=t.layer;this.he[n]=Math.max(this.he[n],this.nodeMinLayerSpace(t,!0)),this.Ld[n]=Math.max(this.Ld[n],this.nodeMinLayerSpace(t,!1))}t=0,n=this.ie;for(var i=0;i<=this.Ia;i++){var r=n;0>=this.he[i]+this.Ld[i]&&(r=0),0=h.bounds.bottom?(h=h.bounds.y+h.bounds.height,e.m(g++,w,h+S),e.m(g++,w,h),e.m(g++,w,h-b)):(e.m(g++,w,x+S),e.m(g++,w,x),e.m(g++,w,x-b)):270===this.K?x<=h.bounds.y?(h=h.bounds.y,e.m(g++,w,h-b),e.m(g++,w,h),e.m(g++,w,h+S)):(e.m(g++,w,x-b),e.m(g++,w,x),e.m(g++,w,x+S)):0===this.K&&(w>=h.bounds.right?(h=h.bounds.x+h.bounds.width,e.m(g++,h+S,x),e.m(g++,h,x),e.m(g++,h-b,x)):(e.m(g++,w+S,x),e.m(g++,w,x),e.m(g++,w-b,x)));else{e.m(g++,v,y);var k=0;180===this.K||0===this.K?((180===this.K?w>=h.bounds.right:w<=h.bounds.x)&&(k=(0===this.K?-b:S)/2),e.m(g++,v+k,x)):((270===this.K?x>=h.bounds.bottom:x<=h.bounds.y)&&(k=(90===this.K?-b:S)/2),e.m(g++,w,y+k)),e.m(g++,w,x)}}else b=Math.max(10,this.he[m.layer]),S=Math.max(10,this.Ld[m.layer]),d?180===this.K?(e.m(g++,w-b-f,x),e.m(g++,Math.min(w-b+f/2,w),x),e.m(g++,w,x),e.m(g++,w,x),e.m(g++,Math.max(w+S-f/2,w),x),e.m(g++,w+S+f,x)):90===this.K?(e.m(g++,w,x+S+f),e.m(g++,w,Math.max(x+S-f/2,x)),e.m(g++,w,x),e.m(g++,w,x),e.m(g++,w,Math.min(x-b+f/2,x)),e.m(g++,w,x-b-f)):270===this.K?(e.m(g++,w,x-b-f),e.m(g++,w,Math.min(x-b+f/2,x)),e.m(g++,w,x),e.m(g++,w,x),e.m(g++,w,Math.max(x+S-f/2,x)),e.m(g++,w,x+S+f)):(e.m(g++,w+S+f,x),e.m(g++,Math.max(w+S-f/2,w),x),e.m(g++,w,x),e.m(g++,w,x),e.m(g++,Math.min(w-b+f/2,w),x),e.m(g++,w-b-f,x)):e.m(g++,w,x)}h=m}(null===s||c!==Je||p)&&(v=e.i(g-1).x,y=e.i(g-1).y,w=e.i(g).x,x=e.i(g).y,p?(f=this.Ld[u.layer],180===this.K||0===this.K?((p=y)>=u.bounds.y&&p<=u.bounds.bottom&&(180===this.K?w>=u.bounds.x:w<=u.bounds.right)&&(h=u.centerX+(180===this.K?-f:f),p=p=u.bounds.x&&p<=u.bounds.right&&(270===this.K?x>=u.bounds.y:x<=u.bounds.bottom)&&(h=u.centerY+(270===this.K?-f:f),p=p=u.bounds.x?(h=u.bounds.x+u.bounds.width,e.L(g-2,h,y),e.L(g-1,h+S,y)):90===this.K&&x<=u.bounds.bottom?(h=u.bounds.y,e.L(g-2,v,h),e.L(g-1,v,h-b)):270===this.K&&x>=u.bounds.y?(h=u.bounds.y+u.bounds.height,e.L(g-2,v,h),e.L(g-1,v,h+S)):0===this.K&&w<=u.bounds.right&&(h=u.bounds.x,e.L(g-2,h,y),e.L(g-1,h-b,y))):(b=Math.max(10,this.he[u.layer]),S=Math.max(10,this.Ld[u.layer]),p=0,180===this.K||0===this.K?((180===this.K?w<=u.bounds.x:w>=u.bounds.right)&&(p=(0===this.K?S:-b)/2),e.m(g++,w+p,y)):((270===this.K?x<=u.bounds.y:x>=u.bounds.bottom)&&(p=(90===this.K?S:-b)/2),e.m(g++,v,x+p)),e.m(g++,w,x)))}else{for(;null!==u&&u!==h;){for(b=m=null,u=u.destinationEdges.iterator;u.next()&&((v=u.value).link!==n.link||(m=v.toVertex,null!==(b=v.fromVertex).node&&(b=null),null!==m.node)););if(null===m)break;m!==h&&(v=e.i(g-1).x,y=e.i(g-1).y,w=m.centerX,x=m.centerY,p?180===this.K||0===this.K?(null!==b?b.centerY:y)!==x&&(b=this.Ta[m.layer]+this.Rf.x,g===e.firstPickIndex+1&&(b=0===this.K?Math.max(b,v):Math.min(b,v)),e.m(g++,b,y),e.m(g++,b,x)):(null!==b?b.centerX:v)!==w&&(b=this.Ta[m.layer]+this.Rf.y,g===e.firstPickIndex+1&&(b=90===this.K?Math.max(b,y):Math.min(b,y)),e.m(g++,v,b),e.m(g++,w,b)):(b=Math.max(10,this.he[m.layer]),S=Math.max(10,this.Ld[m.layer]),d?180===this.K?(e.m(g++,w+S+f,x),e.m(g++,Math.max(w+S-f/2,w),x),e.m(g++,w,x),e.m(g++,w,x),e.m(g++,Math.min(w-b+f/2,w),x),e.m(g++,w-b-f,x)):90===this.K?(e.m(g++,w,x-b-f),e.m(g++,w,Math.min(x-b+f/2,x)),e.m(g++,w,x),e.m(g++,w,x),e.m(g++,w,Math.max(x+S-f/2,x)),e.m(g++,w,x+S+f)):270===this.K?(e.m(g++,w,x+S+f),e.m(g++,w,Math.max(x+S-f/2,x)),e.m(g++,w,x),e.m(g++,w,x),e.m(g++,w,Math.min(x-b+f/2,x)),e.m(g++,w,x-b-f)):(e.m(g++,w-b-f,x),e.m(g++,Math.min(w-b+f/2,w),x),e.m(g++,w,x),e.m(g++,w,x),e.m(g++,Math.max(w+S-f/2,w),x),e.m(g++,w+S+f,x)):180===this.K?(e.m(g++,w+S,x),e.m(g++,w-b,x)):90===this.K?(e.m(g++,w,x-b),e.m(g++,w,x+S)):270===this.K?(e.m(g++,w,x+S),e.m(g++,w,x-b)):(e.m(g++,w-b,x),e.m(g++,w+S,x)))),u=m}p&&(v=e.i(g-1).x,y=e.i(g-1).y,w=e.i(g).x,x=e.i(g).y,180===this.K||0===this.K?y!==x&&(b=0===this.K?Math.min(Math.max((w+v)/2,this.Ta[h.layer]+this.Rf.x),w):Math.max(Math.min((w+v)/2,this.Ta[h.layer]+this.Rf.x),w),e.m(g++,b,y),e.m(g++,b,x)):v!==w&&(b=90===this.K?Math.min(Math.max((x+y)/2,this.Ta[h.layer]+this.Rf.y),x):Math.max(Math.min((x+y)/2,this.Ta[h.layer]+this.Rf.y),x),e.m(g++,v,b),e.m(g++,w,b)))}null!==i&&d&&4<=e.pointsCount&&(null!==a&&(a=c===Je?e.getLinkPointFromPoint(r,a,a.ga(rt),e.i(3),!0):e.i(0),c===Je&&(c=e.i(2),i=e.i(3),90===this.direction||270===this.direction?(e.L(1,(a.x+c.x)/2,c.y),e.L(2,i.x,(c.y+i.y)/2)):(e.L(1,c.x,(a.y+c.y)/2),e.L(2,(c.x+i.x)/2,i.y))),a.w()||a.set(r.actualBounds.center),e.L(0,a.x,a.y)),null!==s&&(r=l===Je?e.getLinkPointFromPoint(o,s,s.ga(rt),e.i(e.pointsCount-4),!1):e.i(e.pointsCount-1),l===Je&&(s=e.i(e.pointsCount-3),l=e.i(e.pointsCount-4),90===this.direction||270===this.direction?(e.L(e.pointsCount-2,(r.x+s.x)/2,s.y),e.L(e.pointsCount-2,l.x,(s.y+l.y)/2)):(e.L(e.pointsCount-2,s.x,(r.y+s.y)/2),e.L(e.pointsCount-3,(s.x+l.x)/2,l.y))),r.w()||r.set(o.actualBounds.center),e.L(e.pointsCount-1,r.x,r.y))),e.zf(),n.commit()}}}this.avoidOrthogonalOverlaps()},qf.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var e=new Y,t=this.network.edges.iterator;t.next();){var n=t.value.link;null!==n&&n.isOrthogonal&&!e.contains(n)&&e.add(n)}if(0o.y&&(u=c.y>o.y?0:a.xo.x&&(u=c.x>o.x?0:a.yt.layer?1:e.rdt.rd?1:e.Ict.Ic?1:0:0},t.Ux=function(e,t){return e instanceof Gg&&t instanceof Gg&&e!==t?e.firstt.first||e.jt.j||e.rdt.rd?1:e.Ict.Ic?1:0:0},t.Js=function(e,t){return e instanceof Gg&&t instanceof Gg&&e!==t?e.jct.jc||e.jt.j||e.rdt.rd?1:e.Ict.Ic?1:0:0},t.B=function(e,t){return-1<(e-=t)&&1>e},t.zi=function(e,t,n,i){var r=e.length,o=i-n;if(!(1>=o))if((0>n||n>=r-1)&&x("not in range 0 <= from < length: "+n),2===o)0=r)e.sort(t);else for((n=e.slice(0,i)).sort(t),t=0;t=r)for((i=e.slice(n)).sort(t),t=n;te&&(this.bg=e,this.C())}},alignOption:{get:function(){return this.ve},set:function(e){this.ve!==e&&0<=e&&16>e&&(this.ve=e,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(e){this.sf!==e&&(this.sf=e,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(e){this.Cn!==e&&0<=e&&(this.Cn=e,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var Dg=new j(qf,"CycleDepthFirst",0),Ng=new j(qf,"CycleGreedy",1),Ig=new j(qf,"CycleFromLayers",2),Bg=new j(qf,"LayerOptimalLinkLength",0),Rg=new j(qf,"LayerLongestPathSink",1),Og=new j(qf,"LayerLongestPathSource",2),Fg=new j(qf,"InitDepthFirstOut",0),zg=new j(qf,"InitDepthFirstIn",1),jg=new j(qf,"InitNaive",2),$g=new j(qf,"AggressiveNone",0),Hg=new j(qf,"AggressiveLess",1),Zg=new j(qf,"AggressiveMore",2),Kg=8;function Gg(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}function Ug(e){Id.call(this,e)}function Vg(e){zd.call(this,e),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}function Wg(e,t){return e.index-t.index}function qg(e,t){if(!e.$n){for(var n=[],i=r(e.destinationEdgesArrayAccess),o=i.next();!o.done;o=i.next())(o=o.value).valid&&n.push(o);e.$n=n}for(n=(e=r(e.$n)).next();!n.done;n=e.next())if((n=n.value).toVertex===t)return n;x("Unable to find destination edge to given vertex")}function Yg(e){if(!e.co){for(var t=[],n=r(e.sourceEdgesArrayAccess),i=n.next();!i.done;i=n.next())(i=i.value).valid&&t.push(i.fromVertex);t.sort(Wg),e.co=t}return e.co}function Xg(e){if(!e.ao){for(var t=[],n=r(e.destinationEdgesArrayAccess),i=n.next();!i.done;i=n.next())(i=i.value).valid&&t.push(i.toVertex);t.sort(Wg),e.ao=t}return e.ao}function Qg(e){$d.call(this,e),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}function Jg(e){Td.call(this),this.Ub=new Q,this.Wn=Em,this.ud=Mm,this.vo=Km,this.Bq=Xm,this.$v=[],this.td=!0,this.Rb=Wm,this.$d=new Ae(10,10).freeze();var t=new ev(this);this.W=new tv(t),this.Y=new tv(t),this.ru=[],e&&Object.assign(this,e)}function em(e){var t=new Q;for(e=e.iterator;e.next();){var n=e.value;n.initialized||t.add(n)}return t}function tm(e,t){var n=999999,i=null;for(t=t.iterator;t.next();){var r=t.value;switch(e.ud){case Mm:r.sourceEdges.countt.level)return!1;e.removeChild(n.parent,n)}return!0}function rm(e,t){if(null!==t){e.initializeTreeVertexValues(t),t.alignment===zm&&e.sortTreeVertexChildren(t);for(var n=0,i=t.childrenCount,r=0,o=t.children,a=o.length,s=0;si?hm(e,t,r,E,b,w):dm(e,t,r,E,b,w)).x,b=w.width,w=w.height;break;case jm:for(d=0;dd&&(Sd&&(kh&&(h=0),135v&&(v=0)),t.la.h(h,v),t.Da.h(b,w)}}function hm(e,t,n,i,r,o){var a=n.length;if(0===a)return new Ie(i,0,r,o);if(1===a)return new Ie(i,0,r=(t=n[0]).Da.width,o=t.Da.height);for(var s=t.nodeSpacing,l=t.rowSpacing,c=90===Pm(t),u=0,h=0,d=0,p=0;pc&&(r-=c),o=Math.max(o,Math.max(p,d)+e+a.height),0>n.S.x&&(i=pm(t,n.S.x,!1,i,s))):(n.S.h(r+e,i+s/2-n.focus.y-n.la.y),r=Math.max(r,Math.max(f,h)+e+a.width),d=i+s/2-n.focus.y-n.la.y,o=Math.max(o,d+a.height),0>d&&(o-=d),0>n.S.y&&(i=pm(t,n.S.y,!0,i,s)))),new Ie(i,0,r,o)}function dm(e,t,n,i,r,o){var a=n.length;if(0===a)return new Ie(i,0,r,o);if(1===a)return new Ie(i,0,r=(n=n[0]).Da.width,o=n.Da.height);for(var s=t.nodeSpacing,l=t.rowSpacing,c=270===Pm(t),u=0,h=0,d=0,p=0;ph&&(r-=h),o=Math.max(o,Math.abs(Math.min(p,d))+e+u.height),0>l.S.x&&(i=pm(t,l.S.x,!1,i,s))):(l.S.h(-r-u.width-e,i+s/2-l.focus.y-l.la.y),r=Math.max(r,Math.abs(Math.min(f,h))+e+u.width),d=i+s/2-l.focus.y-l.la.y,o=Math.max(o,d+u.height),0>d&&(o-=d),0>l.S.y&&(i=pm(t,l.S.y,!0,i,s)))),t=0;tt&&(t=n+e.width),0>n&&(t-=n),t;case Rm:return e.width>t?e.width:t;case Om:return 2*e.focus.x>t?e.width:t+e.width-2*e.focus.x;case Fm:case zm:return Math.max(e.width,Math.max(t,n+e.width)-Math.min(0,n));case jm:return e.width-e.focus.x+e.nodeSpacing/2+t;case $m:return Math.max(e.width,e.focus.x+e.nodeSpacing/2+t);default:return t}}function gm(e,t,n){switch(e.alignment){case Bm:case Im:return n+e.height>t&&(t=n+e.height),0>n&&(t-=n),t;case Rm:return e.height>t?e.height:t;case Om:return 2*e.focus.y>t?e.height:t+e.height-2*e.focus.y;case Fm:case zm:return Math.max(e.height,Math.max(t,n+e.height)-Math.min(0,n));case jm:return e.height-e.focus.y+e.nodeSpacing/2+t;case $m:return Math.max(e.height,e.focus.y+e.nodeSpacing/2+t);default:return t}}function mm(e,t,n){switch(e){case Im:case Bm:t/=2,n/=2;break;case Rm:n=t=0;break;case Om:break;default:x("Unhandled alignment value "+e.toString())}return new fe(t,n)}function vm(e,t,n,i,r,o){ym(e,(t=mm(t,n,i)).x,t.y,r,o)}function ym(e,t,n,i,r){if(0!==t||0!==n)for(e=e.children;i<=r;i++){var o=e[i].S;o.x+=t,o.y+=n}}function bm(e,t,n,i){var r=t.parent;switch(e.ud){case Mm:for(e=t.sourceEdges;e.next();)(t=e.value).fromVertex===r&&t.relativePoint.h(n,i);break;case Lm:for(e=t.destinationEdges;e.next();)(t=e.value).toVertex===r&&t.relativePoint.h(n,i);break;default:x("Unhandled path value "+e.ud.toString())}}function wm(e,t,n){for(var i=0;ih.length||null===p||2>p.length))for(r=n=0;nc&&o.yo.y&&ct.length||null===n||2>n.length)i=null;else{for(u=Sm(e,t.length+n.length),i=o=l=0;ol;)c=n[o++],u[i++].h(c.x+r,c.y);for(n=Sm(e,i),l=0;lh.length||null===o||2>o.length)r=null;else{for(u=Sm(e,h.length+o.length),r=c=n=0;no;)l=h[n++],u[r++].h(l.x,l.y);for(o=Sm(e,r),n=0;nh.length||null===p||2>p.length))for(r=n=0;nl&&o.xo.x&&lt.length||null===n||2>n.length)i=null;else{for(u=Sm(e,t.length+n.length),i=o=l=0;ol;)c=n[o++],u[i++].h(c.x,c.y+r);for(n=Sm(e,i),l=0;lh.length||null===o||2>o.length)r=null;else{for(u=Sm(e,h.length+o.length),r=c=n=0;no;)l=h[n++],u[r++].h(l.x,l.y);for(o=Sm(e,r),n=0;n=(e=e.angle)?0:135>=e?90:225>=e?180:315>=e?270:0}qf.className="LayeredDigraphLayout",qf.CycleDepthFirst=Dg,qf.CycleGreedy=Ng,qf.CycleFromLayers=Ig,qf.LayerOptimalLinkLength=Bg,qf.LayerLongestPathSink=Rg,qf.LayerLongestPathSource=Og,qf.InitDepthFirstOut=Fg,qf.InitDepthFirstIn=zg,qf.InitNaive=jg,qf.AggressiveNone=$g,qf.AggressiveLess=Hg,qf.AggressiveMore=Zg,qf.PackNone=0,qf.PackExpand=1,qf.PackStraighten=2,qf.PackMedian=4,qf.PackAll=15,qf.AlignNone=0,qf.AlignUpperLeft=1,qf.AlignUpperRight=2,qf.AlignLowerLeft=4,qf.AlignLowerRight=8,qf.AlignAll=15,Gg.className="SegInfo",h(Ug,Id),Ug.prototype.createVertex=function(){return new Vg(this)},Ug.prototype.createEdge=function(){return new Qg(this)},Ug.className="LayeredDigraphNetwork",h(Vg,zd),Vg.prototype.Cl=function(e){zd.prototype.Cl.call(this,e),this.bo=this.co=null},Vg.prototype.Kl=function(e){zd.prototype.Kl.call(this,e),this.bo=this.co=null},Vg.prototype.zl=function(e){zd.prototype.zl.call(this,e),this.$n=this.ao=null},Vg.prototype.Jl=function(e){zd.prototype.Jl.call(this,e),this.$n=this.ao=null},d.Object.defineProperties(Vg.prototype,{layer:{get:function(){return this.Ig},set:function(e){this.Ig!==e&&(this.Ig=e)}},column:{get:function(){return this.Ag},set:function(e){this.Ag!==e&&(this.Ag=e)}},index:{get:function(){return this.Za},set:function(e){this.Za!==e&&(this.Za=e)}},component:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},near:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}}}),Vg.prototype.deleteDestinationEdge=Vg.prototype.Jl,Vg.prototype.addDestinationEdge=Vg.prototype.zl,Vg.prototype.deleteSourceEdge=Vg.prototype.Kl,Vg.prototype.addSourceEdge=Vg.prototype.Cl,Vg.className="LayeredDigraphVertex",h(Qg,$d),d.Object.defineProperties(Qg.prototype,{fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}},valid:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},rev:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},forest:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}},portFromPos:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},portToPos:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}},portFromColOffset:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},portToColOffset:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}}}),Qg.className="LayeredDigraphEdge",h(Jg,Td),Jg.prototype.cloneProtected=function(e){Td.prototype.cloneProtected.call(this,e),e.Wn=this.Wn,e.vo=this.vo,e.Bq=this.Bq,e.td=this.td,e.Rb=this.Rb,e.$d.assign(this.$d),e.W.copyInheritedPropertiesFrom(this.W),e.Y.copyInheritedPropertiesFrom(this.Y)},Jg.prototype.qb=function(e){e.classType===Jg?0===e.name.indexOf("Alignment")?this.alignment=e:0===e.name.indexOf("Arrangement")?this.arrangement=e:0===e.name.indexOf("Compaction")?this.compaction=e:0===e.name.indexOf("Path")?this.path=e:0===e.name.indexOf("Sorting")?this.sorting=e:0===e.name.indexOf("Style")?this.treeStyle=e:x("Unknown enum value: "+e):Td.prototype.qb.call(this,e)},Jg.prototype.createNetwork=function(){return new ev(this)},Jg.prototype.makeNetwork=function(e){function t(e){if(e instanceof qu)return!e.isLinkLabel&&"Comment"!==e.category;if(e instanceof xh){var t=e.fromNode;return null!==t&&!t.isLinkLabel&&"Comment"!==t.category&&(null!==(e=e.toNode)&&!e.isLinkLabel&&"Comment"!==e.category)}return!1}var n=this.createNetwork();return e instanceof Er?(n.lg(e.nodes,!0,t),n.lg(e.links,!0,t)):e instanceof gh?n.lg(e.memberParts,!1,t):n.lg(e.iterator,!1,t),n},Jg.prototype.doLayout=function(e){null===this.network&&(this.network=this.makeNetwork(e)),this.arrangement!==Ym&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var t=this.diagram;if(null===t&&e instanceof Er&&(t=e),this.path===Em&&null!==t?this.ud=t.isTreePathToChildren?Mm:Lm:this.ud=this.path===Em?Mm:this.path,0r?hm(this,e,a,D,v,y):dm(this,e,a,D,v,y)).x,v=y.width,y=y.height;break;case jm:for(w=0;wh&&(CR&&(ym(e,-R,0,L,N-1),wm(w,-R,0),wm(S,-R,0),R=0)}I.S.h(R,P),v=Math.max(v,k),y=Math.max(y,b+(0===E?0:f)+B.height),C=k}else 0h&&(PR&&(ym(e,0,-R,L,N-1),wm(w,0,-R),wm(S,0,-R),R=0)),I.S.h(C,R),y=Math.max(y,_),v=Math.max(v,b+(0===E?0:f)+B.width),P=_;M++}switch(0c&&(c=0),135g&&(g=0),l===$m&&(s+=d/2+e.focus.y),a+=i+n):t?(null===e.comments?i>v&&(a=(v=mm(l,i-v,0)).x,s=v.y,v=i,c=0):v=fm(e,v,c),0>c&&(a-=c,c=0),135y&&(a=(y=mm(l,0,m-y)).x,s=y.y,y=m,g=0):y=gm(e,y,g),0>g&&(s-=g,g=0),a+=i+n),0r[0].x?r[2].assign(r[1]):r[1].assign(r[2])),r[3].yr[0].x?r[3].assign(r[2]):r[2].assign(r[3])),E[0].h(c+i,0),E[1].h(E[0].x,m),E[2].yr[0].y?r[2].assign(r[1]):r[1].assign(r[2])),r[3].xr[0].y?r[3].assign(r[2]):r[2].assign(r[3])),E[0].h(0,g+m),E[1].h(i,E[0].y),E[2].x=e&&(this.W.nodeIndentPastParent=e,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(e){this.W.nodeSpacing!==e&&(this.W.nodeSpacing=e,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(e){this.W.layerSpacing!==e&&(this.W.layerSpacing=e,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(e){this.W.layerSpacingParentOverlap!==e&&0<=e&&1>=e&&(this.W.layerSpacingParentOverlap=e,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(e){this.W.compaction===e||e!==Hm&&e!==Zm||(this.W.compaction=e,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(e){this.W.breadthLimit!==e&&0<=e&&(this.W.breadthLimit=e,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(e){this.W.rowSpacing!==e&&(this.W.rowSpacing=e,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(e){this.W.rowIndent!==e&&0<=e&&(this.W.rowIndent=e,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(e){this.W.commentSpacing!==e&&(this.W.commentSpacing=e,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(e){this.W.commentMargin!==e&&(this.W.commentMargin=e,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(e){this.W.setsPortSpot!==e&&(this.W.setsPortSpot=e,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(e){this.W.portSpot.D(e)||(this.W.portSpot=e,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(e){this.W.setsChildPortSpot!==e&&(this.W.setsChildPortSpot=e,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(e){this.W.childPortSpot.D(e)||(this.W.childPortSpot=e,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(e){this.Y.sorting===e||e!==Am&&e!==Tm&&e!==Dm&&!Nm||(this.Y.sorting=e,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(e){this.Y.comparer!==e&&(this.Y.comparer=e,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(e){this.Y.angle===e||0!==e&&90!==e&&180!==e&&270!==e||(this.Y.angle=e,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(e){this.Y.alignment!==e&&(this.Y.alignment=e,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(e){this.Y.nodeIndent!==e&&0<=e&&(this.Y.nodeIndent=e,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(e){this.Y.nodeIndentPastParent!==e&&0<=e&&1>=e&&(this.Y.nodeIndentPastParent=e,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(e){this.Y.nodeSpacing!==e&&(this.Y.nodeSpacing=e,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(e){this.Y.layerSpacing!==e&&(this.Y.layerSpacing=e,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(e){this.Y.layerSpacingParentOverlap!==e&&0<=e&&1>=e&&(this.Y.layerSpacingParentOverlap=e,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(e){this.Y.compaction===e||e!==Hm&&e!==Zm||(this.Y.compaction=e,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(e){this.Y.breadthLimit!==e&&0<=e&&(this.Y.breadthLimit=e,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(e){this.Y.rowSpacing!==e&&(this.Y.rowSpacing=e,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(e){this.Y.rowIndent!==e&&0<=e&&(this.Y.rowIndent=e,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(e){this.Y.commentSpacing!==e&&(this.Y.commentSpacing=e,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(e){this.Y.commentMargin!==e&&(this.Y.commentMargin=e,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(e){this.Y.setsPortSpot!==e&&(this.Y.setsPortSpot=e,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(e){this.Y.portSpot.D(e)||(this.Y.portSpot=e,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(e){this.Y.setsChildPortSpot!==e&&(this.Y.setsChildPortSpot=e,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(e){this.Y.childPortSpot.D(e)||(this.Y.childPortSpot=e,this.C())}}});var Em=new j(Jg,"PathDefault",-1),Mm=new j(Jg,"PathDestination",0),Lm=new j(Jg,"PathSource",1),Am=new j(Jg,"SortingForwards",10),Tm=new j(Jg,"SortingReverse",11),Dm=new j(Jg,"SortingAscending",12),Nm=new j(Jg,"SortingDescending",13),Im=new j(Jg,"AlignmentCenterSubtrees",20),Bm=new j(Jg,"AlignmentCenterChildren",21),Rm=new j(Jg,"AlignmentStart",22),Om=new j(Jg,"AlignmentEnd",23),Fm=new j(Jg,"AlignmentBus",24),zm=new j(Jg,"AlignmentBusBranching",25),jm=new j(Jg,"AlignmentTopLeftBus",26),$m=new j(Jg,"AlignmentBottomRightBus",27),Hm=new j(Jg,"CompactionNone",30),Zm=new j(Jg,"CompactionBlock",31),Km=new j(Jg,"StyleLayered",40),Gm=new j(Jg,"StyleLastParents",41),Um=new j(Jg,"StyleAlternating",42),Vm=new j(Jg,"StyleRootOnly",43),Wm=new j(Jg,"ArrangementVertical",50),qm=new j(Jg,"ArrangementHorizontal",51),Ym=new j(Jg,"ArrangementFixedRoots",52),Xm=new j(Jg,"LayerIndividual",60),Qm=new j(Jg,"LayerSiblings",61),Jm=new j(Jg,"LayerUniform",62);function ev(e){Id.call(this,e)}function tv(e){zd.call(this,e),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new fe(0,0),this.Da=new Ae(0,0),this.la=new fe(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Am,this.hd=jd,this.Kb=0,this.Jb=Bm,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Zm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=_t,this.wr=!0,this.Dp=_t}function nv(e){$d.call(this,e),this.$t=new fe(0,0)}Jg.className="TreeLayout",Jg.PathDefault=Em,Jg.PathDestination=Mm,Jg.PathSource=Lm,Jg.SortingForwards=Am,Jg.SortingReverse=Tm,Jg.SortingAscending=Dm,Jg.SortingDescending=Nm,Jg.AlignmentCenterSubtrees=Im,Jg.AlignmentCenterChildren=Bm,Jg.AlignmentStart=Rm,Jg.AlignmentEnd=Om,Jg.AlignmentBus=Fm,Jg.AlignmentBusBranching=zm,Jg.AlignmentTopLeftBus=jm,Jg.AlignmentBottomRightBus=$m,Jg.CompactionNone=Hm,Jg.CompactionBlock=Zm,Jg.StyleLayered=Km,Jg.StyleLastParents=Gm,Jg.StyleAlternating=Um,Jg.StyleRootOnly=Vm,Jg.ArrangementVertical=Wm,Jg.ArrangementHorizontal=qm,Jg.ArrangementFixedRoots=Ym,Jg.LayerIndividual=Xm,Jg.LayerSiblings=Qm,Jg.LayerUniform=Jm,h(ev,Id),ev.prototype.createVertex=function(){return new tv(this)},ev.prototype.createEdge=function(){return new nv(this)},ev.className="TreeNetwork",h(tv,zd),tv.prototype.copyInheritedPropertiesFrom=function(e){null!==e&&(this.nd=e.sorting,this.hd=e.comparer,this.Kb=e.angle,this.Jb=e.alignment,this.Uq=e.nodeIndent,this.Vq=e.nodeIndentPastParent,this.Wq=e.nodeSpacing,this.ie=e.layerSpacing,this.Aq=e.layerSpacingParentOverlap,this.Hp=e.compaction,this.Ap=e.breadthLimit,this.nr=e.rowSpacing,this.mr=e.rowIndent,this.Gp=e.commentSpacing,this.Fp=e.commentMargin,this.xr=e.setsPortSpot,this.dr=e.portSpot,this.wr=e.setsChildPortSpot,this.Dp=e.childPortSpot)},d.Object.defineProperties(tv.prototype,{initialized:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}},parent:{get:function(){return this.hb},set:function(e){this.hb!==e&&(this.hb=e)}},children:{get:function(){return this.u},set:function(e){if(this.u!==e){if(null!==e)for(var t=e.length,n=0;np.y+n.rowIndent&&(o=Math.min(o,Math.max(h.y,o-t.computeNodeIndent(n))))):n.alignment===Rm?(o=i.top+r.y,0===r.y&&h.yp.x+n.rowIndent&&(o=Math.min(o,Math.max(h.x,o-t.computeNodeIndent(n))))):n.alignment===Rm?(o=i.left+r.x,0===r.x&&h.xp.y+n.rowIndent&&(o=Math.min(o,Math.max(h.y,o-t.computeNodeIndent(n))))):n.alignment===Rm?(o=i.top+r.y,0===r.y&&h.yp.x+n.rowIndent&&(o=Math.min(o,Math.max(h.x,o-t.computeNodeIndent(n))))):n.alignment===Rm?(o=i.left+r.x,0===r.x&&h.x0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},,,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position=0&&e=0&&t=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},,,,,function(e){function t(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},,function(e,t,n){var i=n(16).Beautifier,r=n(17).Options;e.exports=function(e,t){return new i(e,t).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(17).Options,r=n(2).Output,o=n(8).InputScanner,a=new(0,n(13).Directives)(/\/\*/,/\*\//),s=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,c=/\s/,u=/(?:\s|\n)+/g,h=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,d=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function p(e,t){this._source_text=e||"",this._options=new i(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}p.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},p.prototype.eatWhitespace=function(e){for(var t=c.test(this._input.peek()),n=0;c.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===n||n0&&this._indentLevel--},p.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===t&&(t="\n",e&&s.test(e||"")&&(t=e.match(s)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new r(this._options,n),this._input=new o(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var i,p,f=0,g=!1,m=!1,v=!1,y=!1,b=!1,w=this._ch,x=!1;i=""!==this._input.read(u),p=w,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),w=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var S=this._input.read(h),k=a.get_directives(S);k&&"start"===k.ignore&&(S+=a.readIgnored(this._input)),this.print_string(S),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(d)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(i),this.print_string(this._ch);var _=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);_.match(/[ :]$/)&&(_=this.eatString(": ").replace(/\s+$/,""),this.print_string(_),this._output.space_before_token=!0),0===f&&-1!==_.indexOf(":")&&(m=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(i),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var C=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);C.match(/[ :]$/)&&(C=this.eatString(": ").replace(/\s+$/,""),this.print_string(C),this._output.space_before_token=!0),0===f&&-1!==C.indexOf(":")?(m=!0,this.indent()):C in this.NESTED_AT_RULE?(this._nestedLevel+=1,C in this.CONDITIONAL_GROUP_RULE&&(v=!0)):0!==f||m||(y=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)m&&(m=!1,this.outdent()),y=!1,v?(v=!1,g=this._indentLevel>=this._nestedLevel):g=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&g&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===p?this._output.space_before_token=!1:","!==p&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===p&&this._output.trim(!0),m&&(this.outdent(),m=!1),this.print_string(this._ch),g=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var P=0;P"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||m||0!==f)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(i),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var L='"'===p||"'"===p;this.preserveSingleSpace(L||i),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&x&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&c.test(this._ch)&&(this._ch=""));return this._output.get_code(t)},e.exports.Beautifier=p},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},function(e){e.exports.Token=function(e,t,n,i){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position=0&&e=0&&t=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},function(e,t,n){var i=n(8).InputScanner,r=n(3).Token,o=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new i(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new o,this._reset();for(var t=new r(s.START,""),n=null,i=[],a=new o;t.type!==s.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)a.add(e),e=this._get_next_token(t,n);a.isEmpty()||(e.comments_before=a,a=new o),e.parent=n,this._is_opening(e)?(i.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=i.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){return new r(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=s},function(e){function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return 0===this.__tokens_length},t.prototype.hasNext=function(){return this.__position=0&&e/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}o.prototype=new i,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},o.prototype.read_options=function(e){var t=this._create();for(var n in r)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},o.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},o.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},o.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},o.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},e.exports.TemplatablePattern=o},,,,function(e,t,n){var i=n(19).Beautifier,r=n(20).Options;e.exports=function(e,t,n,r){return new i(e,t,n,r).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(20).Options,r=n(2).Output,o=n(21).Tokenizer,a=n(21).TOKEN,s=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,c=function(e,t){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new r(e,t)};c.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},c.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},c.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},c.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},c.prototype.print_preserved_newlines=function(e){var t=0;e.type!==a.TEXT&&e.previous.type!==a.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines0);return 0!==t},c.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},c.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},c.prototype.print_newline=function(e){this._output.add_new_line(e)},c.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},c.prototype.indent=function(){this.indent_level++},c.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},c.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var u=function(e,t){var n=null,i=null;return t.closed?("script"===e?n="text/javascript":"style"===e&&(n="text/css"),n=function(e){for(var t=null,n=e.next;n.type!==a.EOF&&e.closed!==n;){if(n.type===a.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===a.EQUALS&&n.next.next&&n.next.next.type===a.VALUE&&(t=n.next.next.text);break}n=n.next}return t}(t)||n,n.search("text/css")>-1?i="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?i="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":n.search(/test\/null/)>-1&&(i="null"),i):null};function h(e,t){return-1!==t.indexOf(e)}function d(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function p(e){this._printer=e,this._current_frame=null}function f(e,t,n,r){this._source_text=e||"",t=t||{},this._js_beautify=n,this._css_beautify=r,this._tag_stack=null;var o=new i(t,"html");this._options=o,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}p.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},p.prototype.record_tag=function(e){var t=new d(this._current_frame,e,this._printer.indent_level);this._current_frame=t},p.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},p.prototype._get_frame=function(e,t){for(var n=this._current_frame;n&&-1===e.indexOf(n.tag);){if(t&&-1!==t.indexOf(n.tag)){n=null;break}n=n.parent}return n},p.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)},p.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&s.test(e)&&(t=e.match(s)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0],i={text:"",type:""},r=new g(this._options),u=new c(this._options,n),h=new o(e,this._options).tokenize();this._tag_stack=new p(u);for(var d=null,f=h.next();f.type!==a.EOF;)f.type===a.TAG_OPEN||f.type===a.COMMENT?r=d=this._handle_tag_open(u,f,r,i,h):f.type===a.ATTRIBUTE||f.type===a.EQUALS||f.type===a.VALUE||f.type===a.TEXT&&!r.tag_complete?d=this._handle_inside_tag(u,f,r,i):f.type===a.TAG_CLOSE?d=this._handle_tag_close(u,f,r):f.type===a.TEXT?d=this._handle_text(u,f,r):f.type===a.CONTROL_FLOW_OPEN?d=this._handle_control_flow_open(u,f):f.type===a.CONTROL_FLOW_CLOSE?d=this._handle_control_flow_close(u,f):u.add_raw_token(f),i=d,f=h.next();return u._output.get_code(t)},f.prototype._handle_control_flow_open=function(e,t){var n={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),e.indent(),n},f.prototype._handle_control_flow_close=function(e,t){var n={text:t.text,type:t.type};return e.deindent(),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),n},f.prototype._handle_tag_close=function(e,t,n){var i={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):("<"===n.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(e.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||e.set_wrap_point(),i},f.prototype._handle_inside_tag=function(e,t,n,i){var r=n.has_wrapped_attrs,o={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):"{"===n.tag_start_char&&t.type===a.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===a.ATTRIBUTE?e.set_space_before_token(!0):(t.type===a.EQUALS||t.type===a.VALUE&&t.previous.type===a.EQUALS)&&e.set_space_before_token(!1),t.type===a.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),r=r||0!==t.newlines),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(i.type!==a.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),r=!0)),e.print_token(t),r=r||e.previous_token_wrapped(),n.has_wrapped_attrs=r),o},f.prototype._handle_text=function(e,t,n){var i={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),i},f.prototype._print_custom_beatifier_text=function(e,t,n){var i=this;if(""!==t.text){var r,o=t.text,a=1,s="",l="";"javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?r=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?r=this._css_beautify:"html"===n.custom_beautifier_name&&(r=function(e,t){return new f(e,t,i._js_beautify,i._css_beautify).beautify()}),"keep"===this._options.indent_scripts?a=0:"separate"===this._options.indent_scripts&&(a=-e.indent_level);var c=e.get_full_indent(a);if(o=o.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===o[0]&&o.match(/^(|]]>)$/.exec(o);if(!u)return void e.add_raw_token(t);s=c+u[1]+"\n",o=u[4],u[5]&&(l=c+u[5]),o=o.replace(/\n[ \t]*$/,""),(u[2]||-1!==u[3].indexOf("\n"))&&(u=u[3].match(/[ \t]+$/))&&(t.whitespace_before=u[0])}if(o)if(r){var h=function(){this.eol="\n"};h.prototype=this._options.raw_options,o=r(c+o,new h)}else{var d=t.whitespace_before;d&&(o=o.replace(new RegExp("\n("+d+")?","g"),"\n")),o=c+o.replace(/\n/g,"\n"+c)}s&&(o=o?s+o+"\n"+l:s+l),e.print_newline(!1),o&&(t.text=o,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},f.prototype._handle_tag_open=function(e,t,n,i,r){var o=this._get_tag_open_token(t);if(!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||t.type!==a.TAG_OPEN||o.is_start_tag?(e.traverse_whitespace(t),this._set_tag_position(e,t,o,n,i),o.is_inline_element||e.set_wrap_point(),e.print_token(t)):(e.add_raw_token(t),o.start_tag_token=this._tag_stack.try_pop(o.tag_name)),o.is_start_tag&&this._is_wrap_attributes_force){var s,l=0;do{(s=r.peek(l)).type===a.ATTRIBUTE&&(o.attr_count+=1),l+=1}while(s.type!==a.EOF&&s.type!==a.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(o.alignment_size=t.text.length+1),o.tag_complete||o.is_unformatted||(e.alignment_size=o.alignment_size),o};var g=function(e,t,n){if(this.parent=t||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",n){var i;this.tag_start_char=n.text[0],this.text=n.text,"<"===this.tag_start_char?(i=n.text.match(/^<([^\s>]*)/),this.tag_check=i?i[1]:""):(i=n.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=i?i[1]:"",(n.text.startsWith("{{#>")||n.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==n.next?this.tag_check=n.next.text.split(" ")[0]:this.tag_check=n.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),n.type===a.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||n.closed&&"/>"===n.closed.text;var r=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(r=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(!e.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(r)))}else this.tag_complete=!0};f.prototype._get_tag_open_token=function(e){var t=new g(this._options,this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||h(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&h(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&h(t.tag_check,this._options.content_unformatted),t.is_inline_element=h(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||"{"===t.tag_start_char,t},f.prototype._set_tag_position=function(e,t,n,i,r){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=u(n.tag_check,t)))),h(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1);"!--"===n.tag_name&&r.type===a.TAG_CLOSE&&i.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n))}else if(n.is_end_tag){var o=!1;o=(o=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(r.type===a.TAG_CLOSE&&n.start_tag_token===i)&&"TK_CONTENT"!==r.type,(n.is_content_unformatted||n.is_unformatted)&&(o=!1),o&&e.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===r.type&&!n.is_content_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n)},f.prototype._calcluate_parent_multiline=function(e,t){!t.parent||!e._output.just_added_newline()||(t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element||(t.parent.multiline_content=!0)};var m=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],v=["a","audio","del","ins","map","noscript","video"];f.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==m.indexOf(e.tag_name)){var n=e.parent.parent;n&&-1!==v.indexOf(n.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===e.tag_name?t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):"th"!==e.tag_name&&"td"!==e.tag_name||(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},e.exports.Beautifier=f},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}r.prototype=new i,e.exports.Options=r},function(e,t,n){var i=n(9).Tokenizer,r=n(9).TOKEN,o=n(13).Directives,a=n(14).TemplatablePattern,s=n(12).Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},c=new o(/<\!--/,/-->/),u=function(e,t){i.call(this,e,t),this._current_tag_name="";var n=new a(this._input).read_options(this._options),r=new s(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),word_control_flow_close_excluded:n.until(/[\n\r\t <}]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),angular_control_flow_start:r.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),handlebars_open:r.until(/[\n\r\t }]/),handlebars_raw_close:r.until(/}}/),comment:r.starting_with(//),cdata:r.starting_with(//),conditional_comment:r.starting_with(//),processing:r.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var o=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=r.matching(o).until_after(o)}};(u.prototype=new i)._is_comment=function(e){return!1},u.prototype._is_opening=function(e){return e.type===l.TAG_OPEN||e.type===l.CONTROL_FLOW_OPEN},u.prototype._is_closing=function(e,t){return e.type===l.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])||e.type===l.CONTROL_FLOW_CLOSE&&"}"===e.text&&t.text.endsWith("{")},u.prototype._reset=function(){this._current_tag_name=""},u.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(l.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(i,t))||this._read_attribute(i,e,t))||this._read_close(i,t))||this._read_script_and_style(i,e))||this._read_control_flows(i,t))||this._read_raw_content(i,e,t))||this._read_content_word(i,t))||this._read_comment_or_cdata(i))||this._read_processing(i))||this._read_open(i,t))||this._create_token(l.UNKNOWN,this._input.next())},u.prototype._read_comment_or_cdata=function(e){var t=null,n=null,i=null;"<"===e&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(i=c.get_directives(n))&&"start"===i.ignore&&(n+=c.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=i));return t},u.prototype._read_processing=function(e){var t=null,n=null;if("<"===e){var i=this._input.peek(1);"!"!==i&&"?"!==i||(n=(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=null)}return t},u.prototype._read_open=function(e,t){var n=null,i=null;return t&&t.type!==l.CONTROL_FLOW_OPEN||"<"===e&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),i=this._create_token(l.TAG_OPEN,n)),i},u.prototype._read_open_handlebars=function(e,t){var n=null,i=null;return t&&t.type!==l.CONTROL_FLOW_OPEN||(this._options.templating.includes("angular")||this._options.indent_handlebars)&&"{"===e&&"{"===this._input.peek(1)&&(this._options.indent_handlebars&&"!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),i=this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),i=this._create_token(l.TAG_OPEN,n))),i},u.prototype._read_control_flows=function(e,t){var n="",i=null;if(!this._options.templating.includes("angular"))return i;if("@"===e){if(""===(n=this.__patterns.angular_control_flow_start.read()))return i;for(var r=n.endsWith("(")?1:0,o=0;!n.endsWith("{")||r!==o;){var a=this._input.next();if(null===a)break;"("===a?r++:")"===a&&o++,n+=a}i=this._create_token(l.CONTROL_FLOW_OPEN,n)}else"}"===e&&t&&t.type===l.CONTROL_FLOW_OPEN&&(n=this._input.next(),i=this._create_token(l.CONTROL_FLOW_CLOSE,n));return i},u.prototype._read_close=function(e,t){var n=null,i=null;return t&&t.type===l.TAG_OPEN&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(n=this._input.next(),"/"===e&&(n+=this._input.next()),i=this._create_token(l.TAG_CLOSE,n)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(l.TAG_CLOSE,"}}"))),i},u.prototype._read_attribute=function(e,t,n){var i=null,r="";if(n&&"<"===n.text[0])if("="===e)i=this._create_token(l.EQUALS,this._input.next());else if('"'===e||"'"===e){var o=this._input.next();o+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(l.VALUE,o)}else(r=this.__patterns.attribute.read())&&(i=t.type===l.EQUALS?this._create_token(l.VALUE,r):this._create_token(l.ATTRIBUTE,r));return i},u.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},u.prototype._read_raw_content=function(e,t,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var r=t.opened.text.substr(1).toLowerCase();this._is_content_unformatted(r)&&(i=this._input.readUntil(new RegExp("","ig")))}return i?this._create_token(l.TEXT,i):null},u.prototype._read_script_and_style=function(e,t){if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var n=t.opened.text.substr(1).toLowerCase();if("script"===n||"style"===n){var i=this._read_comment_or_cdata(e);if(i)return i.type=l.TEXT,i;var r=this._input.readUntil(new RegExp("","ig"));if(r)return this._create_token(l.TEXT,r)}}return null},u.prototype._read_content_word=function(e,t){var n="";return this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(n=this.__patterns.unformatted_content_delimiter.read()),n||(n=t&&t.type===l.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),n?this._create_token(l.TEXT,n):null},e.exports.Tokenizer=u,e.exports.TOKEN=l}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}(18);o=n}();var a=o;i=[n,n(58553),n(87804)],r=function(e){var t=n(58553),i=n(87804);return{html_beautify:function(e,n){return a(e,n,t.js_beautify,i.css_beautify)}}}.apply(t,i),void 0===r||(e.exports=r)}()},58553:function(e,t){var n;!function(){var i;!function(){"use strict";var e=[function(e,t,n){var i=n(1).Beautifier,r=n(5).Options;e.exports=function(e,t){return new i(e,t).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(2).Output,r=n(3).Token,o=n(4),a=n(5).Options,s=n(7).Tokenizer,l=n(7).line_starters,c=n(7).positionable_operators,u=n(7).TOKEN;function h(e,t){return-1!==t.indexOf(e)}function d(e,t){return e&&e.type===u.RESERVED&&e.text===t}function p(e,t){return e&&e.type===u.RESERVED&&h(e.text,t)}var f=["case","return","do","if","throw","else","await","break","continue","async"],g=function(e){for(var t={},n=0;nn&&(n=e.line_indent_level)),{mode:t,parent:e,last_token:e?e.last_token:new r(u.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:n,alignment:0,line_indent_level:e?e.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0}},E.prototype._reset=function(e){var t=e.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new i(this._options,t),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(v);var n=new s(e,this._options);return this._tokens=n.tokenize(),e},E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._reset(this._source_text),t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&o.lineBreak.test(e||"")&&(t=e.match(o.lineBreak)[0]));for(var n=this._tokens.next();n;)this.handle_token(n),this._last_last_text=this._flags.last_token.text,this._flags.last_token=n,n=this._tokens.next();return this._output.get_code(t)},E.prototype.handle_token=function(e,t){e.type===u.START_EXPR?this.handle_start_expr(e):e.type===u.END_EXPR?this.handle_end_expr(e):e.type===u.START_BLOCK?this.handle_start_block(e):e.type===u.END_BLOCK?this.handle_end_block(e):e.type===u.WORD||e.type===u.RESERVED?this.handle_word(e):e.type===u.SEMICOLON?this.handle_semicolon(e):e.type===u.STRING?this.handle_string(e):e.type===u.EQUALS?this.handle_equals(e):e.type===u.OPERATOR?this.handle_operator(e):e.type===u.COMMA?this.handle_comma(e):e.type===u.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===u.COMMENT?this.handle_comment(e,t):e.type===u.DOT?this.handle_dot(e):e.type===u.EOF?this.handle_eof(e):(e.type,u.UNKNOWN,this.handle_unknown(e,t))},E.prototype.handle_whitespace_and_comments=function(e,t){var n=e.newlines,i=this._options.keep_array_indentation&&C(this._flags.mode);if(e.comments_before)for(var r=e.comments_before.next();r;)this.handle_whitespace_and_comments(r,t),this.handle_token(r,t),r=e.comments_before.next();if(i)for(var o=0;o0,t);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,t);for(var a=1;a0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},E.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},E.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===y&&_(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},E.prototype.start_of_object_property=function(){return this._flags.parent.mode===b&&this._flags.mode===y&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||p(this._flags.last_token,["get","set"]))},E.prototype.start_of_statement=function(e){var t=!1;return!!(t=(t=(t=(t=(t=(t=(t=t||p(this._flags.last_token,["var","let","const"])&&e.type===u.WORD)||d(this._flags.last_token,"do"))||!(this._flags.parent.mode===b&&this._flags.mode===y)&&p(this._flags.last_token,M)&&!e.newlines)||d(this._flags.last_token,"else")&&!(d(e,"if")&&!e.comments_before))||this._flags.last_token.type===u.END_EXPR&&(this._previous_flags.mode===x||this._previous_flags.mode===S))||this._flags.last_token.type===u.WORD&&this._flags.mode===v&&!this._flags.in_case&&!("--"===e.text||"++"===e.text)&&"function"!==this._last_last_text&&e.type!==u.WORD&&e.type!==u.RESERVED)||this._flags.mode===b&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||p(this._flags.last_token,["get","set"])))&&(this.set_mode(y),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,p(e,["do","for","if","while"])),!0)},E.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=k;if("["===e.text){if(this._flags.last_token.type===u.WORD||")"===this._flags.last_token.text)return p(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));t=w,C(this._flags.mode)&&("["!==this._flags.last_token.text&&(","!==this._flags.last_token.text||"]"!==this._last_last_text&&"}"!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline()),h(this._flags.last_token.type,[u.START_EXPR,u.END_EXPR,u.WORD,u.OPERATOR,u.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===u.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=x):h(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=S):h(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===e.whitespace_before?this._output.space_before_token=!1:(h(this._flags.last_token.text,l)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===u.EQUALS||this._flags.last_token.type===u.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===u.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var i=this._tokens.peek(-4);p(n,["async","function"])||"*"===n.text&&p(i,["async","function"])?this._output.space_before_token=!0:this._flags.mode===b?"{"!==n.text&&","!==n.text&&("*"!==n.text||"{"!==i.text&&","!==i.text)||(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===u.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(h(this._last_last_text,["function","yield"])||this._flags.mode===b&&h(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===u.START_BLOCK?this.print_newline():this._flags.last_token.type!==u.END_EXPR&&this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==u.COMMA||this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},E.prototype.handle_end_expr=function(e){for(;this._flags.mode===y;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,"]"===e.text&&C(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==u.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(e),this.restore_mode(),_(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===S&&(this._previous_flags.mode=k,this._flags.do_block=!1,this._flags.do_while=!1)},E.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===u.END_EXPR?(this.set_mode(v),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(v):n&&(h(n.text,[":",","])&&h(t.type,[u.STRING,u.WORD,u.RESERVED])||h(t.text,["get","set","..."])&&h(n.type,[u.WORD,u.RESERVED]))?h(this._last_last_text,["class","interface"])&&!h(n.text,[":",","])?this.set_mode(v):this.set_mode(b):this._flags.last_token.type===u.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(v):h(this._flags.last_token.type,[u.EQUALS,u.START_EXPR,u.COMMA,u.OPERATOR])||p(this._flags.last_token,["return","throw","import","default"])?this.set_mode(b):this.set_mode(v),this._flags.last_token&&p(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var i=!t.comments_before&&"}"===t.text,r=i&&"function"===this._flags.last_word&&this._flags.last_token.type===u.END_EXPR;if(this._options.brace_preserve_inline){var o=0,a=null;this._flags.inline_frame=!0;do{if(o+=1,(a=this._tokens.peek(o-1)).newlines){this._flags.inline_frame=!1;break}}while(a.type!==u.EOF&&(a.type!==u.END_BLOCK||a.opened!==e))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==u.OPERATOR&&(r||this._flags.last_token.type===u.EQUALS||p(this._flags.last_token,f)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!C(this._previous_flags.mode)||this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.COMMA||((this._flags.last_token.type===u.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===u.COMMA||this._flags.last_token.type===u.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==u.OPERATOR&&this._flags.last_token.type!==u.START_EXPR&&(h(this._flags.last_token.type,[u.START_BLOCK,u.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),i||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},E.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===y;)this.restore_mode();var t=this._flags.last_token.type===u.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:"expand"===this._options.brace_style?t||this.print_newline():t||(C(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(e)},E.prototype.handle_word=function(e){if(e.type===u.RESERVED)if(h(e.text,["set","get"])&&this._flags.mode!==b)e.type=u.WORD;else if("import"===e.text&&h(this._tokens.peek().text,["(","."]))e.type=u.WORD;else if(h(e.text,["as","from"])&&!this._flags.import_block)e.type=u.WORD;else if(this._flags.mode===b){":"===this._tokens.peek().text&&(e.type=u.WORD)}if(this.start_of_statement(e)?p(this._flags.last_token,["var","let","const"])&&e.type===u.WORD&&(this._flags.declaration_statement=!0):!e.newlines||P(this._flags.mode)||this._flags.last_token.type===u.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===u.EQUALS||!this._options.preserve_newlines&&p(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(e):(this.handle_whitespace_and_comments(e),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(d(e,"while"))return this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&d(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===y;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&p(e,["case","default"]))return this.print_newline(),this._flags.case_block||!this._flags.case_body&&!this._options.jslint_happy||this.deindent(),this._flags.case_body=!1,this.print_token(e),void(this._flags.in_case=!0);if(this._flags.last_token.type!==u.COMMA&&this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.EQUALS&&this._flags.last_token.type!==u.OPERATOR||this.start_of_object_property()||h(this._flags.last_token.text,["+","-"])&&":"===this._last_last_text&&this._flags.parent.mode===b||this.allow_wrap_or_preserved_newline(e),d(e,"function"))return(h(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!h(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==u.OPERATOR)&&(this._output.just_added_blankline()||e.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD?p(this._flags.last_token,["get","set","new","export"])||p(this._flags.last_token,M)||d(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===u.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!P(this._flags.mode)&&!C(this._flags.mode))&&this.print_newline(),this.print_token(e),void(this._flags.last_word=e.text);var t="NONE";(this._flags.last_token.type===u.END_BLOCK?this._previous_flags.inline_frame?t="SPACE":p(e,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines?t="NEWLINE":(t="SPACE",this._output.space_before_token=!0):t="NEWLINE":this._flags.last_token.type===u.SEMICOLON&&this._flags.mode===v?t="NEWLINE":this._flags.last_token.type===u.SEMICOLON&&P(this._flags.mode)?t="SPACE":this._flags.last_token.type===u.STRING?t="NEWLINE":this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD||"*"===this._flags.last_token.text&&(h(this._last_last_text,["function","yield"])||this._flags.mode===b&&h(this._last_last_text,["{",","]))?t="SPACE":this._flags.last_token.type===u.START_BLOCK?t=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===u.END_EXPR&&(this._output.space_before_token=!0,t="NEWLINE"),p(e,l)&&")"!==this._flags.last_token.text&&(t=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),p(e,["else","catch","finally"]))?(this._flags.last_token.type!==u.END_BLOCK||this._previous_flags.mode!==v||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this.print_newline():(this._output.trim(!0),"}"!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):"NEWLINE"===t?p(this._flags.last_token,f)||"declare"===this._flags.last_token.text&&p(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==u.END_EXPR?this._flags.last_token.type===u.START_EXPR&&p(e,["var","let","const"])||":"===this._flags.last_token.text||(d(e,"if")&&d(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):p(e,l)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&C(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===t&&(this._output.space_before_token=!0);!e.previous||e.previous.type!==u.WORD&&e.previous.type!==u.RESERVED||(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===u.RESERVED&&("do"===e.text?this._flags.do_block=!0:"if"===e.text?this._flags.if_block=!0:"import"===e.text?this._flags.import_block=!0:this._flags.import_block&&d(e,"from")&&(this._flags.import_block=!1))},E.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);for(var t=this._tokens.peek();!(this._flags.mode!==y||this._flags.if_block&&d(t,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)},E.prototype.handle_string=function(e){(!e.text.startsWith("`")||0!==e.newlines||""!==e.whitespace_before||")"!==e.previous.text&&this._flags.last_token.type!==u.WORD)&&(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===u.COMMA||this._flags.last_token.type===u.START_EXPR||this._flags.last_token.type===u.EQUALS||this._flags.last_token.type===u.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):!e.text.startsWith("`")||this._flags.last_token.type!==u.END_EXPR||"]"!==e.previous.text&&")"!==e.previous.text||0!==e.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(e)},E.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0},E.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(P(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)):this._flags.mode===b||this._flags.mode===y&&this._flags.parent.mode===b?(this._flags.mode===y&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)},E.prototype.handle_operator=function(e){var t="*"===e.text&&(p(this._flags.last_token,["function","yield"])||h(this._flags.last_token.type,[u.START_BLOCK,u.COMMA,u.END_BLOCK,u.SEMICOLON])),n=h(e.text,["-","+"])&&(h(this._flags.last_token.type,[u.START_BLOCK,u.START_EXPR,u.EQUALS,u.OPERATOR])||h(this._flags.last_token.text,l)||","===this._flags.last_token.text);if(this.start_of_statement(e));else{var i=!t;this.handle_whitespace_and_comments(e,i)}if("*"!==e.text||this._flags.last_token.type!==u.DOT)if("::"!==e.text)if(h(e.text,["-","+"])&&this.start_of_object_property())this.print_token(e);else{if(this._flags.last_token.type===u.OPERATOR&&h(this._options.operator_position,m)&&this.allow_wrap_or_preserved_newline(e),":"===e.text&&this._flags.in_case)return this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==u.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0));var r=!0,o=!0,a=!1;if(":"===e.text?0===this._flags.ternary_depth?r=!1:(this._flags.ternary_depth-=1,a=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!n&&!t&&this._options.preserve_newlines&&h(e.text,c)){var s=":"===e.text,d=s&&a,b=s&&!a;switch(this._options.operator_position){case g.before_newline:return this._output.space_before_token=!b,this.print_token(e),s&&!d||this.allow_wrap_or_preserved_newline(e),void(this._output.space_before_token=!0);case g.after_newline:return this._output.space_before_token=!0,!s||d?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),void(this._output.space_before_token=!0);case g.preserve_newline:return b||this.allow_wrap_or_preserved_newline(e),r=!(this._output.just_added_newline()||b),this._output.space_before_token=r,this.print_token(e),void(this._output.space_before_token=!0)}}if(t){this.allow_wrap_or_preserved_newline(e),r=!1;var w=this._tokens.peek();o=w&&h(w.type,[u.WORD,u.RESERVED])}else if("..."===e.text)this.allow_wrap_or_preserved_newline(e),r=this._flags.last_token.type===u.START_BLOCK,o=!1;else if(h(e.text,["--","++","!","~"])||n){if(this._flags.last_token.type!==u.COMMA&&this._flags.last_token.type!==u.START_EXPR||this.allow_wrap_or_preserved_newline(e),r=!1,o=!1,e.newlines&&("--"===e.text||"++"===e.text||"~"===e.text)){var x=p(this._flags.last_token,f)&&e.newlines;x&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(x,!0)}";"===this._flags.last_token.text&&P(this._flags.mode)&&(r=!0),this._flags.last_token.type===u.RESERVED?r=!0:this._flags.last_token.type===u.END_EXPR?r=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===u.OPERATOR&&(r=h(e.text,["--","-","++","+"])&&h(this._flags.last_token.text,["--","-","++","+"]),h(e.text,["+","-"])&&h(this._flags.last_token.text,["--","++"])&&(o=!0)),(this._flags.mode!==v||this._flags.inline_frame)&&this._flags.mode!==y||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()}this._output.space_before_token=this._output.space_before_token||r,this.print_token(e),this._output.space_before_token=o}else this.print_token(e);else this.print_token(e)},E.prototype.handle_block_comment=function(e,t){return this._output.raw?(this._output.add_raw_token(e),void(e.directives&&"end"===e.directives.preserve&&(this._output.raw=this._options.test_output_raw))):e.directives?(this.print_newline(!1,t),this.print_token(e),"start"===e.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):o.newline.test(e.text)||e.newlines?void this.print_block_commment(e,t):(this._output.space_before_token=!0,this.print_token(e),void(this._output.space_before_token=!0))},E.prototype.print_block_commment=function(e,t){var n,i=function(e){for(var t=[],n=(e=e.replace(o.allLineBreaks,"\n")).indexOf("\n");-1!==n;)t.push(e.substring(0,n)),n=(e=e.substring(n+1)).indexOf("\n");return e.length&&t.push(e),t}(e.text),r=!1,a=!1,s=e.whitespace_before,l=s.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(i[0]),this.print_newline(!1,t),i.length>1){for(r=function(e,t){for(var n=0;n0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},function(e){e.exports.Token=function(e,t,n,i){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},function(e,t){var n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",i="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",r="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",o="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",a="(?:"+o+"|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+i+"])",s="(?:"+o+"|["+n+i+r+"])*";t.identifier=new RegExp(a+s,"g"),t.identifierStart=new RegExp(a),t.identifierMatch=new RegExp("(?:"+o+"|["+n+i+r+"])+");t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp("\r\n|"+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g")},function(e,t,n){var i=n(6).Options,r=["before-newline","after-newline","preserve-newline"];function o(e){i.call(this,e,"js");var t=this.raw_options.brace_style||null;"expand-strict"===t?this.raw_options.brace_style="expand":"collapse-preserve-inline"===t?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var o=0;o>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),v=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";v=(v="\\?\\.(?!\\d) "+(v=v.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var y,b=new RegExp(v),w="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),x=w.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),S=new RegExp("^(?:"+x.join("|")+")$"),k=function(e,t){r.call(this,e,t),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new l(this._input),i=new c(this._input).read_options(this._options);this.__patterns={template:i,identifier:i.starting_with(s.identifier).matching(s.identifierMatch),number:n.matching(p),punct:n.matching(b),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(//),include:n.starting_with(/#include/).until_after(s.lineBreak),shebang:n.starting_with(/#!/).until_after(s.lineBreak),xml:n.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:i.until(/['\\\n\r\u2028\u2029]/),double_quote:i.until(/["\\\n\r\u2028\u2029]/),template_text:i.until(/[`\\$]/),template_expression:i.until(/[`}\\]/)}};(k.prototype=new r)._is_comment=function(e){return e.type===h.COMMENT||e.type===h.BLOCK_COMMENT||e.type===h.UNKNOWN},k.prototype._is_opening=function(e){return e.type===h.START_BLOCK||e.type===h.START_EXPR},k.prototype._is_closing=function(e,t){return(e.type===h.END_BLOCK||e.type===h.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},k.prototype._reset=function(){y=!1},k.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(h.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_non_javascript(i))||this._read_string(i))||this._read_pair(i,this._input.peek(1)))||this._read_word(e))||this._read_singles(i))||this._read_comment(i))||this._read_regexp(i,e))||this._read_xml(i,e))||this._read_punctuation())||this._create_token(h.UNKNOWN,this._input.next())},k.prototype._read_word=function(e){var t;return""!==(t=this.__patterns.identifier.read())?(t=t.replace(s.allLineBreaks,"\n"),e.type!==h.DOT&&(e.type!==h.RESERVED||"set"!==e.text&&"get"!==e.text)&&S.test(t)?"in"!==t&&"of"!==t||e.type!==h.WORD&&e.type!==h.STRING?this._create_token(h.RESERVED,t):this._create_token(h.OPERATOR,t):this._create_token(h.WORD,t)):""!==(t=this.__patterns.number.read())?this._create_token(h.WORD,t):void 0},k.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(h.START_EXPR,e):")"===e||"]"===e?t=this._create_token(h.END_EXPR,e):"{"===e?t=this._create_token(h.START_BLOCK,e):"}"===e?t=this._create_token(h.END_BLOCK,e):";"===e?t=this._create_token(h.SEMICOLON,e):"."===e&&g.test(this._input.peek(1))?t=this._create_token(h.DOT,e):","===e&&(t=this._create_token(h.COMMA,e)),t&&this._input.next(),t},k.prototype._read_pair=function(e,t){var n=null;return"#"===e&&"{"===t&&(n=this._create_token(h.START_BLOCK,e+t)),n&&(this._input.next(),this._input.next()),n},k.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)return"="===e?this._create_token(h.EQUALS,e):"?."===e?this._create_token(h.DOT,e):this._create_token(h.OPERATOR,e)},k.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read()))return this._create_token(h.UNKNOWN,t.trim()+"\n");if(t=this.__patterns.include.read())return this._create_token(h.UNKNOWN,t.trim()+"\n");e=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(f)){do{n+=e=this._input.next()}while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(h.WORD,n)}this._input.back()}else if("<"===e&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(s.newline);)t+=this._input.next();return y=!0,this._create_token(h.COMMENT,t)}}else if(y&&"-"===e&&(t=this.__patterns.html_comment_end.read()))return y=!1,this._create_token(h.COMMENT,t);return null},k.prototype._read_comment=function(e){var t=null;if("/"===e){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var i=d.get_directives(n);i&&"start"===i.ignore&&(n+=d.readIgnored(this._input)),n=n.replace(s.allLineBreaks,"\n"),(t=this._create_token(h.BLOCK_COMMENT,n)).directives=i}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),t=this._create_token(h.COMMENT,n))}return t},k.prototype._read_string=function(e){if("`"===e||"'"===e||'"'===e){var t=this._input.next();return this.has_char_escapes=!1,t+="`"===e?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(e),this.has_char_escapes&&this._options.unescape_strings&&(t=function(e){var t="",n=0,r=new i(e),o=null;for(;r.hasNext();)if((o=r.match(/([\s]|[^\\]|\\\\)+/g))&&(t+=o[0]),"\\"===r.peek()){if(r.next(),"x"===r.peek())o=r.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==r.peek()){t+="\\",r.hasNext()&&(t+=r.next());continue}(o=r.match(/u([0-9A-Fa-f]{4})/g))||(o=r.match(/u\{([0-9A-Fa-f]+)\}/g))}if(!o)return e;if((n=parseInt(o[1],16))>126&&n<=255&&0===o[0].indexOf("x"))return e;t+=n>=0&&n<32||n>1114111?"\\"+o[0]:34===n||39===n||92===n?"\\"+String.fromCharCode(n):String.fromCharCode(n)}return t}(t)),this._input.peek()===e&&(t+=this._input.next()),t=t.replace(s.allLineBreaks,"\n"),this._create_token(h.STRING,t)}return null},k.prototype._allow_regexp_or_xml=function(e){return e.type===h.RESERVED&&u(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===h.END_EXPR&&")"===e.text&&e.opened.previous.type===h.RESERVED&&u(e.opened.previous.text,["if","while","for"])||u(e.type,[h.COMMENT,h.START_EXPR,h.START_BLOCK,h.START,h.END_BLOCK,h.OPERATOR,h.EQUALS,h.EOF,h.SEMICOLON,h.COMMA])},k.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){for(var n=this._input.next(),i=!1,r=!1;this._input.hasNext()&&(i||r||this._input.peek()!==e)&&!this._input.testChar(s.newline);)n+=this._input.peek(),i?i=!1:(i="\\"===this._input.peek(),"["===this._input.peek()?r=!0:"]"===this._input.peek()&&(r=!1)),this._input.next();return this._input.peek()===e&&(n+=this._input.next(),n+=this._input.read(s.identifier)),this._create_token(h.STRING,n)}return null},k.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var n="",i=this.__patterns.xml.read_match();if(i){for(var r=i[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),o=0===r.indexOf("{"),a=0;i;){var l=!!i[1],c=i[2];if(!(!!i[i.length-1]||"![CDATA["===c.slice(0,8))&&(c===r||o&&c.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(l?--a:++a),n+=i[0],a<=0)break;i=this.__patterns.xml.read_match()}return i||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(s.allLineBreaks,"\n"),this._create_token(h.STRING,n)}}return null},k.prototype._read_string_recursive=function(e,t,n){var i,r;"'"===e?r=this.__patterns.single_quote:'"'===e?r=this.__patterns.double_quote:"`"===e?r=this.__patterns.template_text:"}"===e&&(r=this.__patterns.template_expression);for(var o=r.read(),a="";this._input.hasNext();){if((a=this._input.next())===e||!t&&s.newline.test(a)){this._input.back();break}"\\"===a&&this._input.hasNext()?("x"===(i=this._input.peek())||"u"===i?this.has_char_escapes=!0:"\r"===i&&"\n"===this._input.peek(1)&&this._input.next(),a+=this._input.next()):n&&("${"===n&&"$"===a&&"{"===this._input.peek()&&(a+=this._input.next()),n===a&&(a+="`"===e?this._read_string_recursive("}",t,"`"):this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(a+=this._input.next()))),o+=a+=r.read()}return o},e.exports.Tokenizer=k,e.exports.TOKEN=h,e.exports.positionable_operators=m.slice(),e.exports.line_starters=w.slice()},function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position=0&&e=0&&t=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},function(e,t,n){var i=n(8).InputScanner,r=n(3).Token,o=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new i(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new o,this._reset();for(var t=new r(s.START,""),n=null,i=[],a=new o;t.type!==s.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)a.add(e),e=this._get_next_token(t,n);a.isEmpty()||(e.comments_before=a,a=new o),e.parent=n,this._is_opening(e)?(i.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=i.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){return new r(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=s},function(e){function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return 0===this.__tokens_length},t.prototype.hasNext=function(){return this.__position=0&&e/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}o.prototype=new i,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},o.prototype.read_options=function(e){var t=this._create();for(var n in r)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},o.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},o.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},o.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},o.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},e.exports.TemplatablePattern=o}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}(0);i=n}();var r=i;void 0===(n=function(){return{js_beautify:r}}.apply(t,[]))||(e.exports=n)}()},15342:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){},function(e,t,n){"use strict";n.r(t),n(0);var i=function(){function e(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}return e.range=function(t,n){return n?t&&t.loc&&n.loc&&t.loc.lexer===n.loc.lexer?new e(t.loc.lexer,t.loc.start,n.loc.end):null:t&&t.loc},e}(),r=function(){function e(e,t){this.text=void 0,this.loc=void 0,this.text=e,this.loc=t}return e.prototype.range=function(t,n){return new e(n,i.range(this,t))},e}(),o=function e(t,n){this.position=void 0;var i,r="KaTeX parse error: "+t,o=n&&n.loc;if(o&&o.start<=o.end){var a=o.lexer.input;i=o.start;var s=o.end;i===a.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=a.slice(i,s).replace(/[^]/g,"$&̲");r+=(i>15?"…"+a.slice(i-15,i):a.slice(0,i))+l+(s+15":">","<":"<",'"':""","'":"'"},c=/[&><"']/g,u=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},h={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(c,(function(e){return l[e]}))},hyphenate:function(e){return e.replace(s,"-$1").toLowerCase()},getBaseElem:u,isCharacterBox:function(e){var t=u(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return null!=t?t[1]:"_relative"}},d=function(){function e(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,e=e||{},this.displayMode=h.deflt(e.displayMode,!1),this.output=h.deflt(e.output,"htmlAndMathml"),this.leqno=h.deflt(e.leqno,!1),this.fleqn=h.deflt(e.fleqn,!1),this.throwOnError=h.deflt(e.throwOnError,!0),this.errorColor=h.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,h.deflt(e.minRuleThickness,0)),this.colorIsTextColor=h.deflt(e.colorIsTextColor,!1),this.strict=h.deflt(e.strict,"warn"),this.trust=h.deflt(e.trust,!1),this.maxSize=Math.max(0,h.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,h.deflt(e.maxExpand,1e3))}var t=e.prototype;return t.reportNonstrict=function(e,t,n){var i=this.strict;if("function"==typeof i&&(i=i(e,t,n)),i&&"ignore"!==i){if(!0===i||"error"===i)throw new a("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===i?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+i+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,n){var i=this.strict;if("function"==typeof i)try{i=i(e,t,n)}catch(e){i="error"}return!(!i||"ignore"===i||!0!==i&&"error"!==i&&("warn"===i?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+i+"': "+t+" ["+e+"]"),1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=h.protocolFromUrl(e.url));var t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),p=function(){function e(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}var t=e.prototype;return t.sup=function(){return f[g[this.id]]},t.sub=function(){return f[m[this.id]]},t.fracNum=function(){return f[v[this.id]]},t.fracDen=function(){return f[y[this.id]]},t.cramp=function(){return f[b[this.id]]},t.text=function(){return f[w[this.id]]},t.isTight=function(){return this.size>=2},e}(),f=[new p(0,0,!1),new p(1,0,!0),new p(2,1,!1),new p(3,1,!0),new p(4,2,!1),new p(5,2,!0),new p(6,3,!1),new p(7,3,!0)],g=[4,5,4,5,6,7,6,7],m=[5,5,5,5,7,7,7,7],v=[2,3,4,5,6,7,6,7],y=[3,3,5,5,7,7,7,7],b=[1,1,3,3,5,5,7,7],w=[0,1,2,3,2,3,2,3],x={DISPLAY:f[0],TEXT:f[2],SCRIPT:f[4],SCRIPTSCRIPT:f[6]},S=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],k=[];function _(e){for(var t=0;t=k[t]&&e<=k[t+1])return!0;return!1}S.forEach((function(e){return e.blocks.forEach((function(e){return k.push.apply(k,e)}))}));var C=80,P={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},E=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return h.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t"},D=function(){function e(e,t,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,L.call(this,e,n,i),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return h.contains(this.classes,e)},t.toNode=function(){return A.call(this,"span")},t.toMarkup=function(){return T.call(this,"span")},e}(),N=function(){function e(e,t,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,L.call(this,t,i),this.children=n||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return h.contains(this.classes,e)},t.toNode=function(){return A.call(this,"a")},t.toMarkup=function(){return T.call(this,"a")},e}(),I=function(){function e(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}var t=e.prototype;return t.hasClass=function(e){return h.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e=""+this.alt+"=r[0]&&e<=r[1])return n.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=B[this.text])}var t=e.prototype;return t.hasClass=function(e){return h.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&((t=document.createElement("span")).style.marginRight=this.italic+"em"),this.classes.length>0&&((t=t||document.createElement("span")).className=M(this.classes)),this.style)this.style.hasOwnProperty(n)&&((t=t||document.createElement("span")).style[n]=this.style[n]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(i)&&(n+=h.hyphenate(i)+":"+this.style[i]+";");n&&(e=!0,t+=' style="'+h.escape(n)+'"');var r=h.escape(this.text);return e?(t+=">",t+=r,t+="
    "):r},e}(),O=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n":""},e}(),z=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e},t.toMarkup=function(){var e="",">"),Y(X,J,ce,":",":"),Y(X,J,ce,"≈","\\approx",!0),Y(X,J,ce,"≅","\\cong",!0),Y(X,J,ce,"≥","\\ge"),Y(X,J,ce,"≥","\\geq",!0),Y(X,J,ce,"←","\\gets"),Y(X,J,ce,">","\\gt"),Y(X,J,ce,"∈","\\in",!0),Y(X,J,ce,"","\\@not"),Y(X,J,ce,"⊂","\\subset",!0),Y(X,J,ce,"⊃","\\supset",!0),Y(X,J,ce,"⊆","\\subseteq",!0),Y(X,J,ce,"⊇","\\supseteq",!0),Y(X,ee,ce,"⊈","\\nsubseteq",!0),Y(X,ee,ce,"⊉","\\nsupseteq",!0),Y(X,J,ce,"⊨","\\models"),Y(X,J,ce,"←","\\leftarrow",!0),Y(X,J,ce,"≤","\\le"),Y(X,J,ce,"≤","\\leq",!0),Y(X,J,ce,"<","\\lt"),Y(X,J,ce,"→","\\rightarrow",!0),Y(X,J,ce,"→","\\to"),Y(X,ee,ce,"≱","\\ngeq",!0),Y(X,ee,ce,"≰","\\nleq",!0),Y(X,J,ue," ","\\ "),Y(X,J,ue," ","~"),Y(X,J,ue," ","\\space"),Y(X,J,ue," ","\\nobreakspace"),Y(Q,J,ue," ","\\ "),Y(Q,J,ue," ","~"),Y(Q,J,ue," ","\\space"),Y(Q,J,ue," ","\\nobreakspace"),Y(X,J,ue,null,"\\nobreak"),Y(X,J,ue,null,"\\allowbreak"),Y(X,J,le,",",","),Y(X,J,le,";",";"),Y(X,ee,ne,"⊼","\\barwedge",!0),Y(X,ee,ne,"⊻","\\veebar",!0),Y(X,J,ne,"⊙","\\odot",!0),Y(X,J,ne,"⊕","\\oplus",!0),Y(X,J,ne,"⊗","\\otimes",!0),Y(X,J,he,"∂","\\partial",!0),Y(X,J,ne,"⊘","\\oslash",!0),Y(X,ee,ne,"⊚","\\circledcirc",!0),Y(X,ee,ne,"⊡","\\boxdot",!0),Y(X,J,ne,"△","\\bigtriangleup"),Y(X,J,ne,"▽","\\bigtriangledown"),Y(X,J,ne,"†","\\dagger"),Y(X,J,ne,"⋄","\\diamond"),Y(X,J,ne,"⋆","\\star"),Y(X,J,ne,"◃","\\triangleleft"),Y(X,J,ne,"▹","\\triangleright"),Y(X,J,se,"{","\\{"),Y(Q,J,he,"{","\\{"),Y(Q,J,he,"{","\\textbraceleft"),Y(X,J,ie,"}","\\}"),Y(Q,J,he,"}","\\}"),Y(Q,J,he,"}","\\textbraceright"),Y(X,J,se,"{","\\lbrace"),Y(X,J,ie,"}","\\rbrace"),Y(X,J,se,"[","\\lbrack"),Y(Q,J,he,"[","\\lbrack"),Y(X,J,ie,"]","\\rbrack"),Y(Q,J,he,"]","\\rbrack"),Y(X,J,se,"(","\\lparen"),Y(X,J,ie,")","\\rparen"),Y(Q,J,he,"<","\\textless"),Y(Q,J,he,">","\\textgreater"),Y(X,J,se,"⌊","\\lfloor",!0),Y(X,J,ie,"⌋","\\rfloor",!0),Y(X,J,se,"⌈","\\lceil",!0),Y(X,J,ie,"⌉","\\rceil",!0),Y(X,J,he,"\\","\\backslash"),Y(X,J,he,"∣","|"),Y(X,J,he,"∣","\\vert"),Y(Q,J,he,"|","\\textbar"),Y(X,J,he,"∥","\\|"),Y(X,J,he,"∥","\\Vert"),Y(Q,J,he,"∥","\\textbardbl"),Y(Q,J,he,"~","\\textasciitilde"),Y(Q,J,he,"\\","\\textbackslash"),Y(Q,J,he,"^","\\textasciicircum"),Y(X,J,ce,"↑","\\uparrow",!0),Y(X,J,ce,"⇑","\\Uparrow",!0),Y(X,J,ce,"↓","\\downarrow",!0),Y(X,J,ce,"⇓","\\Downarrow",!0),Y(X,J,ce,"↕","\\updownarrow",!0),Y(X,J,ce,"⇕","\\Updownarrow",!0),Y(X,J,ae,"∐","\\coprod"),Y(X,J,ae,"⋁","\\bigvee"),Y(X,J,ae,"⋀","\\bigwedge"),Y(X,J,ae,"⨄","\\biguplus"),Y(X,J,ae,"⋂","\\bigcap"),Y(X,J,ae,"⋃","\\bigcup"),Y(X,J,ae,"∫","\\int"),Y(X,J,ae,"∫","\\intop"),Y(X,J,ae,"∬","\\iint"),Y(X,J,ae,"∭","\\iiint"),Y(X,J,ae,"∏","\\prod"),Y(X,J,ae,"∑","\\sum"),Y(X,J,ae,"⨂","\\bigotimes"),Y(X,J,ae,"⨁","\\bigoplus"),Y(X,J,ae,"⨀","\\bigodot"),Y(X,J,ae,"∮","\\oint"),Y(X,J,ae,"∯","\\oiint"),Y(X,J,ae,"∰","\\oiiint"),Y(X,J,ae,"⨆","\\bigsqcup"),Y(X,J,ae,"∫","\\smallint"),Y(Q,J,re,"…","\\textellipsis"),Y(X,J,re,"…","\\mathellipsis"),Y(Q,J,re,"…","\\ldots",!0),Y(X,J,re,"…","\\ldots",!0),Y(X,J,re,"⋯","\\@cdots",!0),Y(X,J,re,"⋱","\\ddots",!0),Y(X,J,he,"⋮","\\varvdots"),Y(X,J,te,"ˊ","\\acute"),Y(X,J,te,"ˋ","\\grave"),Y(X,J,te,"¨","\\ddot"),Y(X,J,te,"~","\\tilde"),Y(X,J,te,"ˉ","\\bar"),Y(X,J,te,"˘","\\breve"),Y(X,J,te,"ˇ","\\check"),Y(X,J,te,"^","\\hat"),Y(X,J,te,"⃗","\\vec"),Y(X,J,te,"˙","\\dot"),Y(X,J,te,"˚","\\mathring"),Y(X,J,oe,"ı","\\imath",!0),Y(X,J,oe,"ȷ","\\jmath",!0),Y(Q,J,he,"ı","\\i",!0),Y(Q,J,he,"ȷ","\\j",!0),Y(Q,J,he,"ß","\\ss",!0),Y(Q,J,he,"æ","\\ae",!0),Y(Q,J,he,"æ","\\ae",!0),Y(Q,J,he,"œ","\\oe",!0),Y(Q,J,he,"ø","\\o",!0),Y(Q,J,he,"Æ","\\AE",!0),Y(Q,J,he,"Œ","\\OE",!0),Y(Q,J,he,"Ø","\\O",!0),Y(Q,J,te,"ˊ","\\'"),Y(Q,J,te,"ˋ","\\`"),Y(Q,J,te,"ˆ","\\^"),Y(Q,J,te,"˜","\\~"),Y(Q,J,te,"ˉ","\\="),Y(Q,J,te,"˘","\\u"),Y(Q,J,te,"˙","\\."),Y(Q,J,te,"˚","\\r"),Y(Q,J,te,"ˇ","\\v"),Y(Q,J,te,"¨",'\\"'),Y(Q,J,te,"˝","\\H"),Y(Q,J,te,"◯","\\textcircled");var de={"--":!0,"---":!0,"``":!0,"''":!0};Y(Q,J,he,"–","--"),Y(Q,J,he,"–","\\textendash"),Y(Q,J,he,"—","---"),Y(Q,J,he,"—","\\textemdash"),Y(Q,J,he,"‘","`"),Y(Q,J,he,"‘","\\textquoteleft"),Y(Q,J,he,"’","'"),Y(Q,J,he,"’","\\textquoteright"),Y(Q,J,he,"“","``"),Y(Q,J,he,"“","\\textquotedblleft"),Y(Q,J,he,"”","''"),Y(Q,J,he,"”","\\textquotedblright"),Y(X,J,he,"°","\\degree",!0),Y(Q,J,he,"°","\\degree"),Y(Q,J,he,"°","\\textdegree",!0),Y(X,J,oe,"£","\\pounds"),Y(X,J,oe,"£","\\mathsterling",!0),Y(Q,J,oe,"£","\\pounds"),Y(Q,J,oe,"£","\\textsterling",!0),Y(X,ee,he,"✠","\\maltese"),Y(Q,ee,he,"✠","\\maltese"),Y(Q,J,ue," ","\\ "),Y(Q,J,ue," "," "),Y(Q,J,ue," ","~");for(var pe='0123456789/@."',fe=0;fe=5?0:e>=3?1:2]){var n=G[t]={cssEmPerMu:H.quad[t]/18};for(var i in H)H.hasOwnProperty(i)&&(n[i]=H[i][t])}return G[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();Be.BASESIZE=6;var Re=Be,Oe={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Fe={ex:!0,em:!0,mu:!0},ze=function(e){return"string"!=typeof e&&(e=e.unit),e in Oe||e in Fe||"ex"===e},je=function(e,t){var n;if(e.unit in Oe)n=Oe[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var i;if(i=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=i.fontMetrics().xHeight;else{if("em"!==e.unit)throw new a("Invalid unit: '"+e.unit+"'");n=i.fontMetrics().quad}i!==t&&(n*=i.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},$e=["\\imath","ı","\\jmath","ȷ","\\pounds","\\mathsterling","\\textsterling","£"],He=function(e,t,n){return q[n][e]&&q[n][e].replace&&(e=q[n][e].replace),{value:e,metrics:K(e,t,n)}},Ze=function(e,t,n,i,r){var o,a=He(e,t,n),s=a.metrics;if(e=a.value,s){var l=s.italic;("text"===n||i&&"mathit"===i.font)&&(l=0),o=new R(e,s.height,s.depth,l,s.skew,s.width,r)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+n+"'"),o=new R(e,0,0,0,0,0,r);if(i){o.maxFontSize=i.sizeMultiplier,i.style.isTight()&&o.classes.push("mtight");var c=i.getColor();c&&(o.style.color=c)}return o},Ke=function(e,t){if(M(e.classes)!==M(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},Ge=function(e){for(var t=0,n=0,i=0,r=0;rt&&(t=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=i},Ue=function(e,t,n,i){var r=new D(e,t,n,i);return Ge(r),r},Ve=function(e,t,n,i){return new D(e,t,n,i)},We=function(e){var t=new E(e);return Ge(t),t},qe=function(e,t,n){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}return i+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},Ye={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Xe={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Qe={fontMap:Ye,makeSymbol:Ze,mathsym:function(e,t,n,i){return void 0===i&&(i=[]),"boldsymbol"===n.font&&He(e,"Main-Bold",t).metrics?Ze(e,"Main-Bold",t,n,i.concat(["mathbf"])):"\\"===e||"main"===q[t][e].font?Ze(e,"Main-Regular",t,n,i):Ze(e,"AMS-Regular",t,n,i.concat(["amsrm"]))},makeSpan:Ue,makeSvgSpan:Ve,makeLineSpan:function(e,t,n){var i=Ue([e],[],t);return i.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),i.style.borderBottomWidth=i.height+"em",i.maxFontSize=1,i},makeAnchor:function(e,t,n,i){var r=new N(e,t,n,i);return Ge(r),r},makeFragment:We,wrapFragment:function(e,t){return e instanceof E?Ue([],[e],t):e},makeVList:function(e,t){for(var n=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],i=-t[0].shift-t[0].elem.depth,r=i,o=1;o0&&(o.push(Et(a,t)),a=[]),o.push(r[s]));a.length>0&&o.push(Et(a,t)),n&&((i=Et(wt(n,t,!0))).classes=["tag"],o.push(i));var c=gt(["katex-html"],o);if(c.setAttribute("aria-hidden","true"),i){var u=i.children[0];u.style.height=c.height+c.depth+"em",u.style.verticalAlign=-c.depth+"em"}return c}function Lt(e){return new E(e)}var At=function(){function e(e,t){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=e,this.attributes={},this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n"},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),Tt=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return h.escape(this.toText())},t.toText=function(){return this.text},e}(),Dt={MathNode:At,TextNode:Tt,SpaceNode:function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?" ⁣":e>=-.1667&&e<=-.1666?" ⁣":e>=-.2223&&e<=-.2222?" ⁣":e>=-.2778&&e<=-.2777?" ⁣":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e},t.toMarkup=function(){return this.character?""+this.character+"":''},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:Lt},Nt=function(e,t,n){return!q[t][e]||!q[t][e].replace||55349===e.charCodeAt(0)||de.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(e=q[t][e].replace),new Dt.TextNode(e)},It=function(e){return 1===e.length?e[0]:new Dt.MathNode("mrow",e)},Bt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var i=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var r=e.text;return h.contains(["\\imath","\\jmath"],r)?null:(q[i][r]&&q[i][r].replace&&(r=q[i][r].replace),K(r,Qe.fontMap[n].fontName,i)?Qe.fontMap[n].variant:null)},Rt=function(e,t,n){if(1===e.length){var i=Ft(e[0],t);return n&&i instanceof At&&"mo"===i.type&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var r,o=[],a=0;a0&&(p.text=p.text.slice(0,1)+"̸"+p.text.slice(1),o.pop())}}}o.push(s),r=s}return o},Ot=function(e,t,n){return It(Rt(e,t,n))},Ft=function(e,t){if(!e)return new Dt.MathNode("mrow");if(ht[e.type])return ht[e.type](e,t);throw new a("Got group of unknown type: '"+e.type+"'")};function zt(e,t,n,i){var r,o=Rt(e,n);r=1===o.length&&o[0]instanceof At&&h.contains(["mrow","mtable"],o[0].type)?o[0]:new Dt.MathNode("mrow",o);var a=new Dt.MathNode("annotation",[new Dt.TextNode(t)]);a.setAttribute("encoding","application/x-tex");var s=new Dt.MathNode("semantics",[r,a]),l=new Dt.MathNode("math",[s]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var c=i?"katex":"katex-mathml";return Qe.makeSpan([c],[l])}var jt=function(e){return new Re({style:e.displayMode?x.DISPLAY:x.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},$t=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=Qe.makeSpan(n,[e])}return e},Ht=function(e,t,n){var i,r=jt(n);if("mathml"===n.output)return zt(e,t,r,!0);if("html"===n.output){var o=Mt(e,r);i=Qe.makeSpan(["katex"],[o])}else{var a=zt(e,t,r,!1),s=Mt(e,r);i=Qe.makeSpan(["katex"],[a,s])}return $t(i,n)},Zt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋"},Kt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Gt=function(e,t,n,i){var r,o=e.height+e.depth+2*n;if(/fbox|color/.test(t)){if(r=Qe.makeSpan(["stretchy",t],[],i),"fbox"===t){var a=i.color&&i.getColor();a&&(r.style.borderColor=a)}}else{var s=[];/^[bx]cancel$/.test(t)&&s.push(new z({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&s.push(new z({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var l=new O(s,{width:"100%",height:o+"em"});r=Qe.makeSvgSpan([],[l],i)}return r.height=o,r.style.height=o+"em",r},Ut=function(e){var t=new Dt.MathNode("mo",[new Dt.TextNode(Zt[e.substr(1)])]);return t.setAttribute("stretchy","true"),t},Vt=function(e,t){var n=function(){var n=4e5,i=e.label.substr(1);if(h.contains(["widehat","widecheck","widetilde","utilde"],i)){var r,o,a,s="ordgroup"===(f=e.base).type?f.body.length:1;if(s>5)"widehat"===i||"widecheck"===i?(r=420,n=2364,a=.42,o=i+"4"):(r=312,n=2340,a=.34,o="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===i||"widecheck"===i?(n=[0,1062,2364,2364,2364][l],r=[0,239,300,360,420][l],a=[0,.24,.3,.3,.36,.42][l],o=i+l):(n=[0,600,1033,2339,2340][l],r=[0,260,286,306,312][l],a=[0,.26,.286,.3,.306,.34][l],o="tilde"+l)}var c=new F(o),u=new O([c],{width:"100%",height:a+"em",viewBox:"0 0 "+n+" "+r,preserveAspectRatio:"none"});return{span:Qe.makeSvgSpan([],[u],t),minWidth:0,height:a}}var d,p,f,g=[],m=Kt[i],v=m[0],y=m[1],b=m[2],w=b/1e3,x=v.length;if(1===x)d=["hide-tail"],p=[m[3]];else if(2===x)d=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==x)throw new Error("Correct katexImagesData or update code here to support\n "+x+" children.");d=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var S=0;S0&&(i.style.minWidth=r+"em"),i},Wt=function(e,t){var n,i,r,o=et(e,"supsub");o?(n=(i=Je(o.base,"accent")).base,o.base=n,r=function(e){if(e instanceof D)return e;throw new Error("Expected span but got "+String(e)+".")}(Pt(o,t)),o.base=i):n=(i=Je(e,"accent")).base;var a=Pt(n,t.havingCrampedStyle()),s=0;if(i.isShifty&&h.isCharacterBox(n)){var l=h.getBaseElem(n);s=j(Pt(l,t.havingCrampedStyle())).skew}var c,u=Math.min(a.height,t.fontMetrics().xHeight);if(i.isStretchy)c=Vt(i,t),c=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+2*s+"em)",marginLeft:2*s+"em"}:void 0}]},t);else{var d,p;"\\vec"===i.label?(d=Qe.staticSvg("vec",t),p=Qe.svgData.vec[1]):((d=j(d=Qe.makeOrd({mode:i.mode,text:i.label},t,"textord"))).italic=0,p=d.width),c=Qe.makeSpan(["accent-body"],[d]);var f="\\textcircled"===i.label;f&&(c.classes.push("accent-full"),u=a.height);var g=s;f||(g-=p/2),c.style.left=g+"em","\\textcircled"===i.label&&(c.style.top=".2em"),c=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-u},{type:"elem",elem:c}]},t)}var m=Qe.makeSpan(["mord","accent"],[c],t);return r?(r.children[0]=m,r.height=Math.max(m.height,r.height),r.classes[0]="mord",r):m},qt=function(e,t){var n=e.isStretchy?Ut(e.label):new Dt.MathNode("mo",[Nt(e.label,e.mode)]),i=new Dt.MathNode("mover",[Ft(e.base,t),n]);return i.setAttribute("accent","true"),i},Yt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));dt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var n=t[0],i=!Yt.test(e.funcName),r=!i||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:r,base:n}},htmlBuilder:Wt,mathmlBuilder:qt}),dt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=t[0];return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Wt,mathmlBuilder:qt}),dt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var n=e.parser,i=e.funcName,r=t[0];return{type:"accentUnder",mode:n.mode,label:i,base:r}},htmlBuilder:function(e,t){var n=Pt(e.base,t),i=Vt(e,t),r="\\utilde"===e.label?.12:0,o=Qe.makeVList({positionType:"bottom",positionData:i.height+r,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:r},{type:"elem",elem:n}]},t);return Qe.makeSpan(["mord","accentunder"],[o],t)},mathmlBuilder:function(e,t){var n=Ut(e.label),i=new Dt.MathNode("munder",[Ft(e.base,t),n]);return i.setAttribute("accentunder","true"),i}});var Xt=function(e){var t=new Dt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};dt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var i=e.parser,r=e.funcName;return{type:"xArrow",mode:i.mode,label:r,body:t[0],below:n[0]}},htmlBuilder:function(e,t){var n,i=t.style,r=t.havingStyle(i.sup()),o=Qe.wrapFragment(Pt(e.body,r,t),t);o.classes.push("x-arrow-pad"),e.below&&(r=t.havingStyle(i.sub()),(n=Qe.wrapFragment(Pt(e.below,r,t),t)).classes.push("x-arrow-pad"));var a,s=Vt(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,c=-t.fontMetrics().axisHeight-.5*s.height-.111;if((o.depth>.25||"\\xleftequilibrium"===e.label)&&(c-=o.depth),n){var u=-t.fontMetrics().axisHeight+n.height+.5*s.height+.111;a=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:c},{type:"elem",elem:s,shift:l},{type:"elem",elem:n,shift:u}]},t)}else a=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:c},{type:"elem",elem:s,shift:l}]},t);return a.children[0].children[0].children[1].classes.push("svg-align"),Qe.makeSpan(["mrel","x-arrow"],[a],t)},mathmlBuilder:function(e,t){var n,i=Ut(e.label);if(e.body){var r=Xt(Ft(e.body,t));if(e.below){var o=Xt(Ft(e.below,t));n=new Dt.MathNode("munderover",[i,o,r])}else n=new Dt.MathNode("mover",[i,r])}else if(e.below){var a=Xt(Ft(e.below,t));n=new Dt.MathNode("munder",[i,a])}else n=Xt(),n=new Dt.MathNode("mover",[i,n]);return n}}),dt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var n=e.parser,i=Je(t[0],"ordgroup").body,r="",o=0;o","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],pn=[0,1.2,1.8,2.4,3],fn=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],gn=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"stack"}],mn=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],vn=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},yn=function(e,t,n,i){for(var r=Math.min(2,3-i.style.size);rt)return n[r]}return n[n.length-1]},bn=function(e,t,n,i,r,o){var a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=h.contains(dn,e)?fn:h.contains(un,e)?mn:gn;var s=yn(e,t,a,i);return"small"===s.type?function(e,t,n,i,r,o){var a=Qe.makeSymbol(e,"Main-Regular",r,i),s=tn(a,t,i,o);return n&&nn(s,i,t),s}(e,s.style,n,i,r,o):"large"===s.type?rn(e,s.size,n,i,r,o):sn(e,t,n,i,r,o)},wn=function(e,t){var n,i,r=t.havingBaseSizing(),o=yn("\\surd",e*r.sizeMultiplier,mn,r),a=r.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,u=0;return"small"===o.type?(e<1?a=1:e<1.4&&(a=.7),c=(1+s)/a,(n=cn("sqrtMain",l=(1+s+ln)/a,u=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",i=.833/a):"large"===o.type?(u=1080*pn[o.size],c=(pn[o.size]+s)/a,l=(pn[o.size]+s+ln)/a,(n=cn("sqrtSize"+o.size,l,u,s,t)).style.minWidth="1.02em",i=1/a):(l=e+s+ln,c=e+s,u=Math.floor(1e3*e+s)+80,(n=cn("sqrtTall",l,u,s,t)).style.minWidth="0.742em",i=1.056),n.height=c,n.style.height=l+"em",{span:n,advanceWidth:i,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*a}},xn=function(e,t,n,i,r){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),h.contains(un,e)||h.contains(dn,e))return rn(e,t,!1,n,i,r);if(h.contains(hn,e))return sn(e,pn[t],!1,n,i,r);throw new a("Illegal delimiter: '"+e+"'")},Sn=bn,kn=function(e,t,n,i,r,o){var a=i.fontMetrics().axisHeight*i.sizeMultiplier,s=5/i.fontMetrics().ptPerEm,l=Math.max(t-a,n+a),c=Math.max(l/500*901,2*l-s);return bn(e,c,!0,i,r,o)},_n={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Cn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Pn(e,t){var n=it(e);if(n&&h.contains(Cn,n.text))return n;throw new a("Invalid delimiter: '"+(n?n.text:JSON.stringify(e))+"' after '"+t.funcName+"'",e)}function En(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}dt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(e,t){var n=Pn(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:_n[e.funcName].size,mclass:_n[e.funcName].mclass,delim:n.text}},htmlBuilder:function(e,t){return"."===e.delim?Qe.makeSpan([e.mclass]):xn(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(Nt(e.delim,e.mode));var n=new Dt.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),dt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(e,t){var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new a("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Pn(t[0],e).text,color:n}}}),dt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(e,t){var n=Pn(t[0],e),i=e.parser;++i.leftrightDepth;var r=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var o=Je(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:r,left:n.text,right:o.delim,rightColor:o.color}},htmlBuilder:function(e,t){En(e);for(var n,i,r=wt(e.body,t,!0,["mopen","mclose"]),o=0,a=0,s=!1,l=0;l-1?"mpadded":"menclose",[Ft(e.body,t)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var r=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+r+"em solid "+String(e.borderColor))}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};dt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(e,t,n){var i=e.parser,r=e.funcName,o=Je(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:i.mode,label:r,backgroundColor:o,body:a}},htmlBuilder:Mn,mathmlBuilder:Ln}),dt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(e,t,n){var i=e.parser,r=e.funcName,o=Je(t[0],"color-token").color,a=Je(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:i.mode,label:r,backgroundColor:a,borderColor:o,body:s}},htmlBuilder:Mn,mathmlBuilder:Ln}),dt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]}}}),dt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(e,t,n){var i=e.parser,r=e.funcName,o=t[0];return{type:"enclose",mode:i.mode,label:r,body:o}},htmlBuilder:Mn,mathmlBuilder:Ln});var An={};function Tn(e){for(var t=e.type,n=e.names,i=e.props,r=e.handler,o=e.htmlBuilder,a=e.mathmlBuilder,s={type:t,numArgs:i.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:r},l=0;l0&&(b+=.25),c.push({pos:b,isDashed:e[t]})}for(w(o[0]),n=0;n0&&(_<(M+=y)&&(_=M),M=0),e.addJot&&(_+=g),C.height=k,C.depth=_,b+=k,C.pos=b,b+=_+M,l[n]=C,w(o[n+1])}var L,A,T=b/2+t.fontMetrics().axisHeight,D=e.cols||[],N=[];for(i=0,A=0;i=s)){var F=void 0;(i>0||e.hskipBeforeAndAfter)&&0!==(F=h.deflt(I.pregap,p))&&((L=Qe.makeSpan(["arraycolsep"],[])).style.width=F+"em",N.push(L));var z=[];for(n=0;n0){for(var Z=Qe.makeLineSpan("hline",t,u),K=Qe.makeLineSpan("hdashline",t,u),G=[{type:"elem",elem:l,shift:0}];c.length>0;){var U=c.pop(),V=U.pos-T;U.isDashed?G.push({type:"elem",elem:K,shift:V}):G.push({type:"elem",elem:Z,shift:V})}l=Qe.makeVList({positionType:"individualShift",children:G},t)}return Qe.makeSpan(["mord"],[l],t)},Rn={c:"center ",l:"left ",r:"right "},On=function(e,t){var n=new Dt.MathNode("mtable",e.body.map((function(e){return new Dt.MathNode("mtr",e.map((function(e){return new Dt.MathNode("mtd",[Ft(e,t)])})))}))),i=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);n.setAttribute("rowspacing",i+"em");var r="",o="";if(e.cols){var a=e.cols,s="",l=!1,c=0,u=a.length;"separator"===a[0].type&&(r+="top ",c=1),"separator"===a[a.length-1].type&&(r+="bottom ",u-=1);for(var h=c;h0?"left ":"",r+=m[m.length-1].length>0?"right ":"";for(var v=1;v0&&h&&(f=1),i[d]={type:"align",align:p,pregap:f,postgap:0}}return r.colSeparationType=h?"align":"alignat",r};Tn({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var n={cols:(it(t[0])?[t[0]]:Je(t[0],"ordgroup").body).map((function(e){var t=nt(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new a("Unknown column alignment: "+t,e)})),hskipBeforeAndAfter:!0};return Nn(e.parser,n,In(e.envName))},htmlBuilder:Bn,mathmlBuilder:On}),Tn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName],n=Nn(e.parser,{hskipBeforeAndAfter:!1},In(e.envName));return t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:Bn,mathmlBuilder:On}),Tn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=Nn(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:Bn,mathmlBuilder:On}),Tn({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var n=(it(t[0])?[t[0]]:Je(t[0],"ordgroup").body).map((function(e){var t=nt(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new a("Unknown column alignment: "+t,e)}));if(n.length>1)throw new a("{subarray} can contain only one column");var i={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((i=Nn(e.parser,i,"script")).body[0].length>1)throw new a("{subarray} can contain only one column");return i},htmlBuilder:Bn,mathmlBuilder:On}),Tn({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(e){var t=Nn(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},In(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Bn,mathmlBuilder:On}),Tn({type:"array",names:["aligned"],props:{numArgs:0},handler:Fn,htmlBuilder:Bn,mathmlBuilder:On}),Tn({type:"array",names:["gathered"],props:{numArgs:0},handler:function(e){return Nn(e.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display")},htmlBuilder:Bn,mathmlBuilder:On}),Tn({type:"array",names:["alignedat"],props:{numArgs:1},handler:Fn,htmlBuilder:Bn,mathmlBuilder:On}),dt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new a(e.funcName+" valid only within array environment")}});var zn=An;dt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var n=e.parser,i=e.funcName,r=t[0];if("ordgroup"!==r.type)throw new a("Invalid environment name",r);for(var o="",s=0;s=x.SCRIPT.id?n.text():x.DISPLAY:"text"===e&&n.size===x.DISPLAY.size?n=x.TEXT:"script"===e?n=x.SCRIPT:"scriptscript"===e&&(n=x.SCRIPTSCRIPT),n},Wn=function(e,t){var n,i=Vn(e.size,t.style),r=i.fracNum(),o=i.fracDen();n=t.havingStyle(r);var a=Pt(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;a.height=a.height0?3*h:7*h,f=t.fontMetrics().denom1):(u>0?(d=t.fontMetrics().num2,p=h):(d=t.fontMetrics().num3,p=3*h),f=t.fontMetrics().denom2),c){var w=t.fontMetrics().axisHeight;d-a.depth-(w+.5*u)0&&(t="."===(t=e)?null:t),t};dt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var n=e.parser,i=t[4],r=t[5],o=et(t[0],"atom");o&&(o=tt(t[0],"open"));var a=o?Xn(o.text):null,s=et(t[1],"atom");s&&(s=tt(t[1],"close"));var l,c=s?Xn(s.text):null,u=Je(t[2],"size"),h=null;l=!!u.isBlank||(h=u.value).number>0;var d="auto",p=et(t[3],"ordgroup");if(p){if(p.body.length>0){var f=Je(p.body[0],"textord");d=Yn[Number(f.text)]}}else p=Je(t[3],"textord"),d=Yn[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:i,denom:r,continued:!1,hasBarLine:l,barSize:h,leftDelim:a,rightDelim:c,size:d}},htmlBuilder:Wn,mathmlBuilder:qn}),dt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var n=e.parser,i=(e.funcName,e.token);return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Je(t[0],"size").value,token:i}}}),dt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var n=e.parser,i=(e.funcName,t[0]),r=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Je(t[1],"infix").size),o=t[2],a=r.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:a,barSize:r,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Wn,mathmlBuilder:qn});var Qn=function(e,t){var n,i,r=t.style,o=et(e,"supsub");o?(n=o.sup?Pt(o.sup,t.havingStyle(r.sup()),t):Pt(o.sub,t.havingStyle(r.sub()),t),i=Je(o.base,"horizBrace")):i=Je(e,"horizBrace");var a,s=Pt(i.base,t.havingBaseStyle(x.DISPLAY)),l=Vt(i,t);if(i.isOver?(a=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:l}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(a=Qe.makeVList({positionType:"bottom",positionData:s.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var c=Qe.makeSpan(["mord",i.isOver?"mover":"munder"],[a],t);a=i.isOver?Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:n}]},t):Qe.makeVList({positionType:"bottom",positionData:c.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:c}]},t)}return Qe.makeSpan(["mord",i.isOver?"mover":"munder"],[a],t)};dt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var n=e.parser,i=e.funcName;return{type:"horizBrace",mode:n.mode,label:i,isOver:/^\\over/.test(i),base:t[0]}},htmlBuilder:Qn,mathmlBuilder:function(e,t){var n=Ut(e.label);return new Dt.MathNode(e.isOver?"mover":"munder",[Ft(e.base,t),n])}}),dt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,i=t[1],r=Je(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:r})?{type:"href",mode:n.mode,href:r,body:ft(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var n=wt(e.body,t,!1);return Qe.makeAnchor(e.href,[],n,t)},mathmlBuilder:function(e,t){var n=Ot(e.body,t);return n instanceof At||(n=new At("mrow",[n])),n.setAttribute("href",e.href),n}}),dt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var n=e.parser,i=Je(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var r=[],o=0;o0&&(i=je(e.totalheight,t)-n,i=Number(i.toFixed(2)));var r=0;e.width.number>0&&(r=je(e.width,t));var o={height:n+i+"em"};r>0&&(o.width=r+"em"),i>0&&(o.verticalAlign=-i+"em");var a=new I(e.src,e.alt,o);return a.height=n,a.depth=i,a},mathmlBuilder:function(e,t){var n=new Dt.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var i=je(e.height,t),r=0;if(e.totalheight.number>0&&(r=(r=je(e.totalheight,t)-i).toFixed(2),n.setAttribute("valign","-"+r+"em")),n.setAttribute("height",i+r+"em"),e.width.number>0){var o=je(e.width,t);n.setAttribute("width",o+"em")}return n.setAttribute("src",e.src),n}}),dt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t){var n=e.parser,i=e.funcName,r=Je(t[0],"size");if(n.settings.strict){var o="m"===i[1],a="mu"===r.value.unit;o?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, not "+r.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:r.value}},htmlBuilder:function(e,t){return Qe.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var n=je(e.dimension,t);return new Dt.SpaceNode(n)}}),dt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,i=e.funcName,r=t[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:r}},htmlBuilder:function(e,t){var n;"clap"===e.alignment?(n=Qe.makeSpan([],[Pt(e.body,t)]),n=Qe.makeSpan(["inner"],[n],t)):n=Qe.makeSpan(["inner"],[Pt(e.body,t)]);var i=Qe.makeSpan(["fix"],[]),r=Qe.makeSpan([e.alignment],[n,i],t),o=Qe.makeSpan(["strut"]);return o.style.height=r.height+r.depth+"em",o.style.verticalAlign=-r.depth+"em",r.children.unshift(o),r=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),Qe.makeSpan(["mord"],[r],t)},mathmlBuilder:function(e,t){var n=new Dt.MathNode("mpadded",[Ft(e.body,t)]);if("rlap"!==e.alignment){var i="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",i+"width")}return n.setAttribute("width","0px"),n}}),dt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=e.funcName,i=e.parser,r=i.mode;i.switchMode("math");var o="\\("===n?"\\)":"$",a=i.parseExpression(!1,o);return i.expect(o),i.switchMode(r),{type:"styling",mode:i.mode,style:"text",body:a}}}),dt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new a("Mismatched "+e.funcName)}});var ei=function(e,t){switch(t.style.size){case x.DISPLAY.size:return e.display;case x.TEXT.size:return e.text;case x.SCRIPT.size:return e.script;case x.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};dt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:ft(t[0]),text:ft(t[1]),script:ft(t[2]),scriptscript:ft(t[3])}},htmlBuilder:function(e,t){var n=ei(e,t),i=wt(n,t,!1);return Qe.makeFragment(i)},mathmlBuilder:function(e,t){var n=ei(e,t);return Ot(n,t)}});var ti=function(e,t,n,i,r,o,a){var s,l,c;if(e=Qe.makeSpan([],[e]),t){var u=Pt(t,i.havingStyle(r.sup()),i);l={elem:u,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var h=Pt(n,i.havingStyle(r.sub()),i);s={elem:h,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-h.height)}}if(l&&s){var d=i.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+a;c=Qe.makeVList({positionType:"bottom",positionData:d,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-o+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:o+"em"},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else if(s){var p=e.height-a;c=Qe.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-o+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e}]},i)}else{if(!l)return e;var f=e.depth+a;c=Qe.makeVList({positionType:"bottom",positionData:f,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:o+"em"},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}return Qe.makeSpan(["mop","op-limits"],[c],i)},ni=["\\smallint"],ii=function(e,t){var n,i,r,o=!1,a=et(e,"supsub");a?(n=a.sup,i=a.sub,r=Je(a.base,"op"),o=!0):r=Je(e,"op");var s,l=t.style,c=!1;if(l.size===x.DISPLAY.size&&r.symbol&&!h.contains(ni,r.name)&&(c=!0),r.symbol){var u=c?"Size2-Regular":"Size1-Regular",d="";if("\\oiint"!==r.name&&"\\oiiint"!==r.name||(d=r.name.substr(1),r.name="oiint"===d?"\\iint":"\\iiint"),s=Qe.makeSymbol(r.name,u,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),d.length>0){var p=s.italic,f=Qe.staticSvg(d+"Size"+(c?"2":"1"),t);s=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:0},{type:"elem",elem:f,shift:c?.08:0}]},t),r.name="\\"+d,s.classes.unshift("mop"),s.italic=p}}else if(r.body){var g=wt(r.body,t,!0);1===g.length&&g[0]instanceof R?(s=g[0]).classes[0]="mop":s=Qe.makeSpan(["mop"],Qe.tryCombineChars(g),t)}else{for(var m=[],v=1;v0){for(var l=r.body.map((function(e){var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),c=wt(l,t.withFont("mathrm"),!0),u=0;u=0?s.setAttribute("height","+"+r+"em"):(s.setAttribute("height",r+"em"),s.setAttribute("depth","+"+-r+"em")),s.setAttribute("voffset",r+"em"),s}});var ci=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];dt({type:"sizing",names:ci,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,i=e.funcName,r=e.parser,o=r.parseExpression(!1,n);return{type:"sizing",mode:r.mode,size:ci.indexOf(i)+1,body:o}},htmlBuilder:function(e,t){var n=t.havingSize(e.size);return li(e.body,n,t)},mathmlBuilder:function(e,t){var n=t.havingSize(e.size),i=Rt(e.body,n),r=new Dt.MathNode("mstyle",i);return r.setAttribute("mathsize",n.sizeMultiplier+"em"),r}}),dt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var i=e.parser,r=!1,o=!1,a=n[0]&&Je(n[0],"ordgroup");if(a)for(var s="",l=0;ln.height+n.depth+o&&(o=(o+h-n.height-n.depth)/2);var d=l.height-n.height-o-c;n.style.paddingLeft=u+"em";var p=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+d)},{type:"elem",elem:l},{type:"kern",size:c}]},t);if(e.index){var f=t.havingStyle(x.SCRIPTSCRIPT),g=Pt(e.index,f,t),m=.6*(p.height-p.depth),v=Qe.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:g}]},t),y=Qe.makeSpan(["root"],[v]);return Qe.makeSpan(["mord","sqrt"],[y,p],t)}return Qe.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder:function(e,t){var n=e.body,i=e.index;return i?new Dt.MathNode("mroot",[Ft(n,t),Ft(i,t)]):new Dt.MathNode("msqrt",[Ft(n,t)])}});var ui={display:x.DISPLAY,text:x.TEXT,script:x.SCRIPT,scriptscript:x.SCRIPTSCRIPT};dt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,i=e.funcName,r=e.parser,o=r.parseExpression(!0,n),a=i.slice(1,i.length-5);return{type:"styling",mode:r.mode,style:a,body:o}},htmlBuilder:function(e,t){var n=ui[e.style],i=t.havingStyle(n).withFont("");return li(e.body,i,t)},mathmlBuilder:function(e,t){var n=ui[e.style],i=t.havingStyle(n),r=Rt(e.body,i),o=new Dt.MathNode("mstyle",r),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return o.setAttribute("scriptlevel",a[0]),o.setAttribute("displaystyle",a[1]),o}}),pt({type:"supsub",htmlBuilder:function(e,t){var n=function(e,t){var n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===x.DISPLAY.size||n.alwaysHandleSupSub)?ii:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===x.DISPLAY.size||n.limits)?si:null:"accent"===n.type?h.isCharacterBox(n.base)?Wt:null:"horizBrace"===n.type&&!e.sub===n.isOver?Qn:null:null}(e,t);if(n)return n(e,t);var i,r,o,a=e.base,s=e.sup,l=e.sub,c=Pt(a,t),u=t.fontMetrics(),d=0,p=0,f=a&&h.isCharacterBox(a);if(s){var g=t.havingStyle(t.style.sup());i=Pt(s,g,t),f||(d=c.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(l){var m=t.havingStyle(t.style.sub());r=Pt(l,m,t),f||(p=c.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}o=t.style===x.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var v,y=t.sizeMultiplier,b=.5/u.ptPerEm/y+"em",w=null;if(r){var S=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(c instanceof R||S)&&(w=-c.italic+"em")}if(i&&r){d=Math.max(d,o,i.depth+.25*u.xHeight),p=Math.max(p,u.sub2);var k=4*u.defaultRuleThickness;if(d-i.depth-(r.height-p)0&&(d+=_,p-=_)}var C=[{type:"elem",elem:r,shift:p,marginRight:b,marginLeft:w},{type:"elem",elem:i,shift:-d,marginRight:b}];v=Qe.makeVList({positionType:"individualShift",children:C},t)}else if(r){p=Math.max(p,u.sub1,r.height-.8*u.xHeight);var P=[{type:"elem",elem:r,marginLeft:w,marginRight:b}];v=Qe.makeVList({positionType:"shift",positionData:p,children:P},t)}else{if(!i)throw new Error("supsub must have either sup or sub.");d=Math.max(d,o,i.depth+.25*u.xHeight),v=Qe.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:i,marginRight:b}]},t)}var E=_t(c,"right")||"mord";return Qe.makeSpan([E],[c,Qe.makeSpan(["msupsub"],[v])],t)},mathmlBuilder:function(e,t){var n,i=!1,r=et(e.base,"horizBrace");r&&!!e.sup===r.isOver&&(i=!0,n=r.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var o,a=[Ft(e.base,t)];if(e.sub&&a.push(Ft(e.sub,t)),e.sup&&a.push(Ft(e.sup,t)),i)o=n?"mover":"munder";else if(e.sub)if(e.sup){var s=e.base;o=s&&"op"===s.type&&s.limits&&t.style===x.DISPLAY||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(t.style===x.DISPLAY||s.limits)?"munderover":"msubsup"}else{var l=e.base;o=l&&"op"===l.type&&l.limits&&(t.style===x.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===x.DISPLAY)?"munder":"msub"}else{var c=e.base;o=c&&"op"===c.type&&c.limits&&(t.style===x.DISPLAY||c.alwaysHandleSupSub)||c&&"operatorname"===c.type&&c.alwaysHandleSupSub&&(c.limits||t.style===x.DISPLAY)?"mover":"msup"}return new Dt.MathNode(o,a)}}),pt({type:"atom",htmlBuilder:function(e,t){return Qe.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var n=new Dt.MathNode("mo",[Nt(e.text,e.mode)]);if("bin"===e.family){var i=Bt(e,t);"bold-italic"===i&&n.setAttribute("mathvariant",i)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var hi={mi:"italic",mn:"normal",mtext:"normal"};pt({type:"mathord",htmlBuilder:function(e,t){return Qe.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var n=new Dt.MathNode("mi",[Nt(e.text,e.mode,t)]),i=Bt(e,t)||"italic";return i!==hi[n.type]&&n.setAttribute("mathvariant",i),n}}),pt({type:"textord",htmlBuilder:function(e,t){return Qe.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var n,i=Nt(e.text,e.mode,t),r=Bt(e,t)||"normal";return n="text"===e.mode?new Dt.MathNode("mtext",[i]):/[0-9]/.test(e.text)?new Dt.MathNode("mn",[i]):"\\prime"===e.text?new Dt.MathNode("mo",[i]):new Dt.MathNode("mi",[i]),r!==hi[n.type]&&n.setAttribute("mathvariant",r),n}});var di={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},pi={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};pt({type:"spacing",htmlBuilder:function(e,t){if(pi.hasOwnProperty(e.text)){var n=pi[e.text].className||"";if("text"===e.mode){var i=Qe.makeOrd(e,t,"textord");return i.classes.push(n),i}return Qe.makeSpan(["mspace",n],[Qe.mathsym(e.text,e.mode,t)],t)}if(di.hasOwnProperty(e.text))return Qe.makeSpan(["mspace",di[e.text]],[],t);throw new a('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!pi.hasOwnProperty(e.text)){if(di.hasOwnProperty(e.text))return new Dt.MathNode("mspace");throw new a('Unknown type of space "'+e.text+'"')}return new Dt.MathNode("mtext",[new Dt.TextNode(" ")])}});var fi=function(){var e=new Dt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};pt({type:"tag",mathmlBuilder:function(e,t){var n=new Dt.MathNode("mtable",[new Dt.MathNode("mtr",[fi(),new Dt.MathNode("mtd",[Ot(e.body,t)]),fi(),new Dt.MathNode("mtd",[Ot(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var gi={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},mi={"\\textbf":"textbf","\\textmd":"textmd"},vi={"\\textit":"textit","\\textup":"textup"},yi=function(e,t){var n=e.font;return n?gi[n]?t.withTextFontFamily(gi[n]):mi[n]?t.withTextFontWeight(mi[n]):t.withTextFontShape(vi[n]):t};dt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(e,t){var n=e.parser,i=e.funcName,r=t[0];return{type:"text",mode:n.mode,body:ft(r),font:i}},htmlBuilder:function(e,t){var n=yi(e,t),i=wt(e.body,n,!0);return Qe.makeSpan(["mord","text"],Qe.tryCombineChars(i),n)},mathmlBuilder:function(e,t){var n=yi(e,t);return Ot(e.body,n)}}),dt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"underline",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var n=Pt(e.body,t),i=Qe.makeLineSpan("underline-line",t),r=t.fontMetrics().defaultRuleThickness,o=Qe.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:r},{type:"elem",elem:i},{type:"kern",size:3*r},{type:"elem",elem:n}]},t);return Qe.makeSpan(["mord","underline"],[o],t)},mathmlBuilder:function(e,t){var n=new Dt.MathNode("mo",[new Dt.TextNode("‾")]);n.setAttribute("stretchy","true");var i=new Dt.MathNode("munder",[Ft(e.body,t),n]);return i.setAttribute("accentunder","true"),i}}),dt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,n){throw new a("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=bi(e),i=[],r=t.havingStyle(t.style.text()),o=0;o0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var r=this.undefStack[this.undefStack.length-1];r&&!r.hasOwnProperty(e)&&(r[e]=this.current[e])}this.current[e]=t},e}(),Ai={},Ti=Ai;function Di(e,t){Ai[e]=t}Di("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),Di("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),Di("\\@ifnextchar",(function(e){var t=e.consumeArgs(3),n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),Di("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Di("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var Ni={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Di("\\char",(function(e){var t,n=e.popToken(),i="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])i=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new a("\\char` missing argument");i=n.text.charCodeAt(0)}else t=10;if(t){if(null==(i=Ni[n.text])||i>=t)throw new a("Invalid base-"+t+" digit "+n.text);for(var r;null!=(r=Ni[e.future().text])&&r":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Di("\\dots",(function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Ri?t=Ri[n]:("\\not"===n.substr(0,4)||n in q.math&&h.contains(["bin","rel"],q.math[n].group))&&(t="\\dotsb"),t}));var Oi={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Di("\\dotso",(function(e){return e.future().text in Oi?"\\ldots\\,":"\\ldots"})),Di("\\dotsc",(function(e){var t=e.future().text;return t in Oi&&","!==t?"\\ldots\\,":"\\ldots"})),Di("\\cdots",(function(e){return e.future().text in Oi?"\\@cdots\\,":"\\@cdots"})),Di("\\dotsb","\\cdots"),Di("\\dotsm","\\cdots"),Di("\\dotsi","\\!\\cdots"),Di("\\dotsx","\\ldots\\,"),Di("\\DOTSI","\\relax"),Di("\\DOTSB","\\relax"),Di("\\DOTSX","\\relax"),Di("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Di("\\,","\\tmspace+{3mu}{.1667em}"),Di("\\thinspace","\\,"),Di("\\>","\\mskip{4mu}"),Di("\\:","\\tmspace+{4mu}{.2222em}"),Di("\\medspace","\\:"),Di("\\;","\\tmspace+{5mu}{.2777em}"),Di("\\thickspace","\\;"),Di("\\!","\\tmspace-{3mu}{.1667em}"),Di("\\negthinspace","\\!"),Di("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Di("\\negthickspace","\\tmspace-{5mu}{.277em}"),Di("\\enspace","\\kern.5em "),Di("\\enskip","\\hskip.5em\\relax"),Di("\\quad","\\hskip1em\\relax"),Di("\\qquad","\\hskip2em\\relax"),Di("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Di("\\tag@paren","\\tag@literal{({#1})}"),Di("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new a("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Di("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Di("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Di("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Di("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Di("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Di("\\\\","\\newline"),Di("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Fi=$["Main-Regular"]["T".charCodeAt(0)][1]-.7*$["Main-Regular"]["A".charCodeAt(0)][1]+"em";Di("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Fi+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Di("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Fi+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Di("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Di("\\@hspace","\\hskip #1\\relax"),Di("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Di("\\ordinarycolon",":"),Di("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Di("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Di("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Di("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Di("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Di("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Di("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Di("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Di("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Di("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Di("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Di("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Di("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Di("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Di("∷","\\dblcolon"),Di("∹","\\eqcolon"),Di("≔","\\coloneqq"),Di("≕","\\eqqcolon"),Di("⩴","\\Coloneqq"),Di("\\ratio","\\vcentcolon"),Di("\\coloncolon","\\dblcolon"),Di("\\colonequals","\\coloneqq"),Di("\\coloncolonequals","\\Coloneqq"),Di("\\equalscolon","\\eqqcolon"),Di("\\equalscoloncolon","\\Eqqcolon"),Di("\\colonminus","\\coloneq"),Di("\\coloncolonminus","\\Coloneq"),Di("\\minuscolon","\\eqcolon"),Di("\\minuscoloncolon","\\Eqcolon"),Di("\\coloncolonapprox","\\Colonapprox"),Di("\\coloncolonsim","\\Colonsim"),Di("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Di("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Di("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Di("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Di("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Di("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Di("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Di("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Di("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Di("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Di("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Di("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Di("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Di("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Di("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Di("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Di("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Di("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Di("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Di("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Di("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Di("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Di("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Di("⟦","\\llbracket"),Di("⟧","\\rrbracket"),Di("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Di("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Di("⦃","\\lBrace"),Di("⦄","\\rBrace"),Di("\\darr","\\downarrow"),Di("\\dArr","\\Downarrow"),Di("\\Darr","\\Downarrow"),Di("\\lang","\\langle"),Di("\\rang","\\rangle"),Di("\\uarr","\\uparrow"),Di("\\uArr","\\Uparrow"),Di("\\Uarr","\\Uparrow"),Di("\\N","\\mathbb{N}"),Di("\\R","\\mathbb{R}"),Di("\\Z","\\mathbb{Z}"),Di("\\alef","\\aleph"),Di("\\alefsym","\\aleph"),Di("\\Alpha","\\mathrm{A}"),Di("\\Beta","\\mathrm{B}"),Di("\\bull","\\bullet"),Di("\\Chi","\\mathrm{X}"),Di("\\clubs","\\clubsuit"),Di("\\cnums","\\mathbb{C}"),Di("\\Complex","\\mathbb{C}"),Di("\\Dagger","\\ddagger"),Di("\\diamonds","\\diamondsuit"),Di("\\empty","\\emptyset"),Di("\\Epsilon","\\mathrm{E}"),Di("\\Eta","\\mathrm{H}"),Di("\\exist","\\exists"),Di("\\harr","\\leftrightarrow"),Di("\\hArr","\\Leftrightarrow"),Di("\\Harr","\\Leftrightarrow"),Di("\\hearts","\\heartsuit"),Di("\\image","\\Im"),Di("\\infin","\\infty"),Di("\\Iota","\\mathrm{I}"),Di("\\isin","\\in"),Di("\\Kappa","\\mathrm{K}"),Di("\\larr","\\leftarrow"),Di("\\lArr","\\Leftarrow"),Di("\\Larr","\\Leftarrow"),Di("\\lrarr","\\leftrightarrow"),Di("\\lrArr","\\Leftrightarrow"),Di("\\Lrarr","\\Leftrightarrow"),Di("\\Mu","\\mathrm{M}"),Di("\\natnums","\\mathbb{N}"),Di("\\Nu","\\mathrm{N}"),Di("\\Omicron","\\mathrm{O}"),Di("\\plusmn","\\pm"),Di("\\rarr","\\rightarrow"),Di("\\rArr","\\Rightarrow"),Di("\\Rarr","\\Rightarrow"),Di("\\real","\\Re"),Di("\\reals","\\mathbb{R}"),Di("\\Reals","\\mathbb{R}"),Di("\\Rho","\\mathrm{P}"),Di("\\sdot","\\cdot"),Di("\\sect","\\S"),Di("\\spades","\\spadesuit"),Di("\\sub","\\subset"),Di("\\sube","\\subseteq"),Di("\\supe","\\supseteq"),Di("\\Tau","\\mathrm{T}"),Di("\\thetasym","\\vartheta"),Di("\\weierp","\\wp"),Di("\\Zeta","\\mathrm{Z}"),Di("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Di("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Di("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Di("\\blue","\\textcolor{##6495ed}{#1}"),Di("\\orange","\\textcolor{##ffa500}{#1}"),Di("\\pink","\\textcolor{##ff00af}{#1}"),Di("\\red","\\textcolor{##df0030}{#1}"),Di("\\green","\\textcolor{##28ae7b}{#1}"),Di("\\gray","\\textcolor{gray}{#1}"),Di("\\purple","\\textcolor{##9d38bd}{#1}"),Di("\\blueA","\\textcolor{##ccfaff}{#1}"),Di("\\blueB","\\textcolor{##80f6ff}{#1}"),Di("\\blueC","\\textcolor{##63d9ea}{#1}"),Di("\\blueD","\\textcolor{##11accd}{#1}"),Di("\\blueE","\\textcolor{##0c7f99}{#1}"),Di("\\tealA","\\textcolor{##94fff5}{#1}"),Di("\\tealB","\\textcolor{##26edd5}{#1}"),Di("\\tealC","\\textcolor{##01d1c1}{#1}"),Di("\\tealD","\\textcolor{##01a995}{#1}"),Di("\\tealE","\\textcolor{##208170}{#1}"),Di("\\greenA","\\textcolor{##b6ffb0}{#1}"),Di("\\greenB","\\textcolor{##8af281}{#1}"),Di("\\greenC","\\textcolor{##74cf70}{#1}"),Di("\\greenD","\\textcolor{##1fab54}{#1}"),Di("\\greenE","\\textcolor{##0d923f}{#1}"),Di("\\goldA","\\textcolor{##ffd0a9}{#1}"),Di("\\goldB","\\textcolor{##ffbb71}{#1}"),Di("\\goldC","\\textcolor{##ff9c39}{#1}"),Di("\\goldD","\\textcolor{##e07d10}{#1}"),Di("\\goldE","\\textcolor{##a75a05}{#1}"),Di("\\redA","\\textcolor{##fca9a9}{#1}"),Di("\\redB","\\textcolor{##ff8482}{#1}"),Di("\\redC","\\textcolor{##f9685d}{#1}"),Di("\\redD","\\textcolor{##e84d39}{#1}"),Di("\\redE","\\textcolor{##bc2612}{#1}"),Di("\\maroonA","\\textcolor{##ffbde0}{#1}"),Di("\\maroonB","\\textcolor{##ff92c6}{#1}"),Di("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Di("\\maroonD","\\textcolor{##ca337c}{#1}"),Di("\\maroonE","\\textcolor{##9e034e}{#1}"),Di("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Di("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Di("\\purpleC","\\textcolor{##aa87ff}{#1}"),Di("\\purpleD","\\textcolor{##7854ab}{#1}"),Di("\\purpleE","\\textcolor{##543b78}{#1}"),Di("\\mintA","\\textcolor{##f5f9e8}{#1}"),Di("\\mintB","\\textcolor{##edf2df}{#1}"),Di("\\mintC","\\textcolor{##e0e5cc}{#1}"),Di("\\grayA","\\textcolor{##f6f7f7}{#1}"),Di("\\grayB","\\textcolor{##f0f1f2}{#1}"),Di("\\grayC","\\textcolor{##e3e5e6}{#1}"),Di("\\grayD","\\textcolor{##d6d8da}{#1}"),Di("\\grayE","\\textcolor{##babec2}{#1}"),Di("\\grayF","\\textcolor{##888d93}{#1}"),Di("\\grayG","\\textcolor{##626569}{#1}"),Di("\\grayH","\\textcolor{##3b3e40}{#1}"),Di("\\grayI","\\textcolor{##21242c}{#1}"),Di("\\kaBlue","\\textcolor{##314453}{#1}"),Di("\\kaGreen","\\textcolor{##71B307}{#1}");var zi={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},ji=function(){function e(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Li(Ti,t.macros),this.mode=n,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new Mi(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArgs=function(e){for(var t=[],n=0;nthis.settings.maxExpand)throw new a("Too many expansions: infinite loop or need to increase maxExpand setting");var i=n.tokens;if(n.numArgs)for(var r=this.consumeArgs(n.numArgs),o=(i=i.slice()).length-1;o>=0;--o){var s=i[o];if("#"===s.text){if(0===o)throw new a("Incomplete placeholder at end of macro body",s);if("#"===(s=i[--o]).text)i.splice(o+1,1);else{if(!/^[1-9]$/.test(s.text))throw new a("Not a valid argument number",s);var l;(l=i).splice.apply(l,[o,2].concat(r[+s.text-1]))}}}return this.pushTokens(i),i},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof r){if("\\relax"!==e.text)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){if(this.macros.get(e)){var t=[],n=this.stack.length;for(this.pushToken(new r(e));this.stack.length>n;)this.expandOnce()instanceof r&&t.push(this.stack.pop());return t}},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;var n="function"==typeof t?t(this):t;if("string"==typeof n){var i=0;if(-1!==n.indexOf("#"))for(var r=n.replace(/##/g,"");-1!==r.indexOf("#"+(i+1));)++i;for(var o=new Mi(n,this.settings),a=[],s=o.lex();"EOF"!==s.text;)a.push(s),s=o.lex();return a.reverse(),{tokens:a,numArgs:i}}return n},t.isDefined=function(e){return this.macros.has(e)||wi.hasOwnProperty(e)||q.math.hasOwnProperty(e)||q.text.hasOwnProperty(e)||zi.hasOwnProperty(e)},e}(),$i={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"}},Hi={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","č":"č","ĉ":"ĉ","ċ":"ċ","ď":"ď","ḋ":"ḋ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ĺ":"ĺ","ľ":"ľ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ď":"Ď","Ḋ":"Ḋ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ĺ":"Ĺ","Ľ":"Ľ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ť":"Ť","Ṫ":"Ṫ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},Zi=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new ji(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new a("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var e=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),e},t.parseExpression=function(t,n){for(var i=[];;){"math"===this.mode&&this.consumeSpaces();var r=this.fetch();if(-1!==e.endOfExpression.indexOf(r.text))break;if(n&&r.text===n)break;if(t&&wi[r.text]&&wi[r.text].infix)break;var o=this.parseAtom(n);if(!o)break;i.push(o)}return"text"===this.mode&&this.formLigatures(i),this.handleInfixNodes(i)},t.handleInfixNodes=function(e){for(var t,n=-1,i=0;i0&&!c||0===s&&!c&&"math"===this.mode,h=this.parseGroupOfType("argument to '"+e+"'",l,c,i,u);if(!h){if(c){o.push(null);continue}throw new a("Expected group after '"+e+"'",this.fetch())}(c?o:r).push(h)}return{args:r,optArgs:o}},t.parseGroupOfType=function(e,t,n,i,r){switch(t){case"color":return r&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return r&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,r);case"math":case"text":return this.parseGroup(e,n,i,void 0,t,r);case"hbox":var o=this.parseGroup(e,n,i,void 0,"text",r);return o?{type:"styling",mode:o.mode,body:[o],style:"text"}:o;case"raw":if(r&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;var s=this.parseStringGroup("raw",n,!0);if(s)return{type:"raw",mode:"text",string:s.text};throw new a("Expected raw group",this.fetch());case"original":case null:case void 0:return this.parseGroup(e,n,i,void 0,void 0,r);default:throw new a("Unknown group type as "+e,this.fetch())}},t.consumeSpaces=function(){for(;" "===this.fetch().text;)this.consume()},t.parseStringGroup=function(e,t,n){var i=t?"[":"{",r=t?"]":"}",o=this.fetch();if(o.text!==i){if(t)return null;if(n&&"EOF"!==o.text&&/[^{}[\]]/.test(o.text))return this.consume(),o}var s=this.mode;this.mode="text",this.expect(i);for(var l,c="",u=this.fetch(),h=0,d=u;(l=this.fetch()).text!==r||n&&h>0;){switch(l.text){case"EOF":throw new a("Unexpected end of input in "+e,u.range(d,c));case i:h++;break;case r:h--}c+=(d=l).text,this.consume()}return this.expect(r),this.mode=s,u.range(d,c)},t.parseRegexGroup=function(e,t){var n=this.mode;this.mode="text";for(var i,r=this.fetch(),o=r,s="";"EOF"!==(i=this.fetch()).text&&e.test(s+i.text);)s+=(o=i).text,this.consume();if(""===s)throw new a("Invalid "+t+": '"+r.text+"'",r);return this.mode=n,r.range(o,s)},t.parseColorGroup=function(e){var t=this.parseStringGroup("color",e);if(!t)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new a("Invalid color: '"+t.text+"'",t);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}},t.parseSizeGroup=function(e){var t,n=!1;if(!(t=e||"{"===this.fetch().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!i)throw new a("Invalid size: '"+t.text+"'",t);var r={number:+(i[1]+i[2]),unit:i[3]};if(!ze(r))throw new a("Invalid unit: '"+r.unit+"'",t);return{type:"size",mode:this.mode,value:r,isBlank:n}},t.parseUrlGroup=function(e,t){this.gullet.lexer.setCatcode("%",13);var n=this.parseStringGroup("url",e,!0);if(this.gullet.lexer.setCatcode("%",14),!n)return null;var i=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}},t.parseGroup=function(t,n,r,o,s,l){var c=this.mode;s&&this.switchMode(s),l&&this.consumeSpaces();var u,h=this.fetch(),d=h.text;if(n?"["===d:"{"===d||"\\begingroup"===d){this.consume();var p=e.endOfGroup[d];this.gullet.beginGroup();var f=this.parseExpression(!1,p),g=this.fetch();this.expect(p),this.gullet.endGroup(),u={type:"ordgroup",mode:this.mode,loc:i.range(h,g),body:f,semisimple:"\\begingroup"===d||void 0}}else if(n)u=null;else if(null==(u=this.parseFunction(o,t,r)||this.parseSymbol())&&"\\"===d[0]&&!zi.hasOwnProperty(d)){if(this.settings.throwOnError)throw new a("Undefined control sequence: "+d,h);u=this.formatUnsupportedCmd(d),this.consume()}return s&&this.switchMode(c),u},t.formLigatures=function(e){for(var t=e.length-1,n=0;n=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var l,c=q[this.mode][t].group,u=i.range(e);if(U.hasOwnProperty(c)){var h=c;l={type:"atom",mode:this.mode,family:h,loc:u,text:t}}else l={type:c,mode:this.mode,loc:u,text:t};o=l}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(_(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:i.range(e),text:t}}if(this.consume(),s)for(var d=0;de.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o={exports:{}};function a(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function s(e){o.exports.defaults=e}o.exports={defaults:a(),getDefaults:a,changeDefaults:s};var l=/[&<>"']/,c=/[&<>"']/g,u=/[<>"']|&(?!#?\w+;)/,h=/[<>"']|&(?!#?\w+;)/g,d={"&":"&","<":"<",">":">",'"':""","'":"'"},p=function(e){return d[e]};function f(e,t){if(t){if(l.test(e))return e.replace(c,p)}else if(u.test(e))return e.replace(h,p);return e}var g=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function m(e){return e.replace(g,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var v=/(^|[^\[])\^/g;function y(e,t){e=e.source||e,t=t||"";var n={replace:function(t,i){return i=(i=i.source||i).replace(v,"$1"),e=e.replace(t,i),n},getRegex:function(){return new RegExp(e,t)}};return n}var b=/[^\w:]/g,w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(e,t,n){if(e){var i;try{i=decodeURIComponent(m(n)).replace(b,"").toLowerCase()}catch(e){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!w.test(n)&&(n=P(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}var S={},k=/^[^:]+:\/*[^/]*$/,_=/^([^:]+:)[\s\S]*$/,C=/^([^:]+:\/*[^/]*)[\s\S]*$/;function P(e,t){S[" "+e]||(k.test(e)?S[" "+e]=e+"/":S[" "+e]=L(e,"/",!0));var n=-1===(e=S[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(_,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(C,"$1")+t:e+t}function E(e){for(var t,n,i=1;i=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/),i=0;if(n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}var N={escape:f,unescape:m,edit:y,cleanUrl:x,resolveUrl:P,noopTest:{exec:function(){}},merge:E,splitCells:M,rtrim:L,findClosingBracket:A,checkSanitizeDeprecation:T,repeatString:D},I=o.exports.defaults,B=N.rtrim,R=N.splitCells,O=N.escape,F=N.findClosingBracket;function z(e,t,n){var i=t.href,r=t.title?O(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:i,title:r,text:o}:{type:"image",raw:n,href:i,title:r,text:O(o)}}function j(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=i.length?e.slice(i.length):e})).join("\n")}var $=function(){function e(e){this.options=e||I}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:B(n,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=j(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:i}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var i=B(n,"#");this.options.pedantic?n=i.trim():i&&!/ $/.test(i)||(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:R(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var i,r=n.align.length;for(i=0;i ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,i,r,o,a,s,l,c,u,h=t[0],d=t[2],p=d.length>1,f={type:"list",raw:h,ordered:p,start:p?+d.slice(0,-1):"",loose:!1,items:[]},g=t[0].match(this.rules.block.item),m=!1,v=g.length;r=this.rules.block.listItemStart.exec(g[0]);for(var y=0;yr[1].length:o[1].length>=r[0].length||o[1].length>3){g.splice(y,2,g[y]+(!this.options.pedantic&&o[1].length/i.test(i[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):O(i[0]):i[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var i=B(n.slice(0,-1),"\\");if((n.length-i.length)%2==0)return}else{var r=F(t[2],"()");if(r>-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var a=t[2],s="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);l&&(a=l[1],s=l[3])}else s=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^$/.test(n)?a.slice(1):a.slice(1,-1)),z(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(!(i=t[i.toLowerCase()])||!i.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return z(n,i,n[0])}},t.emStrong=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.emStrong.lDelim.exec(e);if(i&&(!i[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var o,a,s=i[0].length-1,l=s,c=0,u="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+s);null!=(i=u.exec(t));)if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6])if(a=o.length,i[3]||i[4])l+=a;else if(!((i[5]||i[6])&&s%3)||(s+a)%3){if(!((l-=a)>0))return a=Math.min(a,a+l+c),Math.min(s,a)%2?{type:"em",raw:e.slice(0,s+i.index+a+1),text:e.slice(1,s+i.index+a)}:{type:"strong",raw:e.slice(0,s+i.index+a+1),text:e.slice(2,s+i.index+a-1)}}else c+=a}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=O(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,i,r=this.rules.inline.autolink.exec(e);if(r)return i="@"===r[2]?"mailto:"+(n=O(this.options.mangle?t(r[1]):r[1])):n=O(r[1]),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var i,r;if("@"===n[2])r="mailto:"+(i=O(this.options.mangle?t(n[0]):n[0]));else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);i=O(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},t.inlineText=function(e,t,n){var i,r=this.rules.inline.text.exec(e);if(r)return i=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):O(r[0]):r[0]:O(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:i}},e}(),H=N.noopTest,Z=N.edit,K=N.merge,G={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:H,table:H,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};G.def=Z(G.def).replace("label",G._label).replace("title",G._title).getRegex(),G.bullet=/(?:[*+-]|\d{1,9}[.)])/,G.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,G.item=Z(G.item,"gm").replace(/bull/g,G.bullet).getRegex(),G.listItemStart=Z(/^( *)(bull) */).replace("bull",G.bullet).getRegex(),G.list=Z(G.list).replace(/bull/g,G.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+G.def.source+")").getRegex(),G._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",G._comment=/|$)/,G.html=Z(G.html,"i").replace("comment",G._comment).replace("tag",G._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),G.paragraph=Z(G._paragraph).replace("hr",G.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",G._tag).getRegex(),G.blockquote=Z(G.blockquote).replace("paragraph",G.paragraph).getRegex(),G.normal=K({},G),G.gfm=K({},G.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),G.gfm.nptable=Z(G.gfm.nptable).replace("hr",G.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",G._tag).getRegex(),G.gfm.table=Z(G.gfm.table).replace("hr",G.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",G._tag).getRegex(),G.pedantic=K({},G.normal,{html:Z("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",G._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:H,paragraph:Z(G.normal._paragraph).replace("hr",G.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",G.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var U={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:H,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:H,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};U.punctuation=Z(U.punctuation).replace(/punctuation/g,U._punctuation).getRegex(),U.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,U.escapedEmSt=/\\\*|\\_/g,U._comment=Z(G._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),U.emStrong.lDelim=Z(U.emStrong.lDelim).replace(/punct/g,U._punctuation).getRegex(),U.emStrong.rDelimAst=Z(U.emStrong.rDelimAst,"g").replace(/punct/g,U._punctuation).getRegex(),U.emStrong.rDelimUnd=Z(U.emStrong.rDelimUnd,"g").replace(/punct/g,U._punctuation).getRegex(),U._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,U._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,U._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,U.autolink=Z(U.autolink).replace("scheme",U._scheme).replace("email",U._email).getRegex(),U._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,U.tag=Z(U.tag).replace("comment",U._comment).replace("attribute",U._attribute).getRegex(),U._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,U._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,U._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,U.link=Z(U.link).replace("label",U._label).replace("href",U._href).replace("title",U._title).getRegex(),U.reflink=Z(U.reflink).replace("label",U._label).getRegex(),U.reflinkSearch=Z(U.reflinkSearch,"g").replace("reflink",U.reflink).replace("nolink",U.nolink).getRegex(),U.normal=K({},U),U.pedantic=K({},U.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Z(/^!?\[(label)\]\((.*?)\)/).replace("label",U._label).getRegex(),reflink:Z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",U._label).getRegex()}),U.gfm=K({},U.normal,{escape:Z(U.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}var te=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||q,this.options.tokenizer=this.options.tokenizer||new W,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:Y.normal,inline:X.normal};this.options.pedantic?(t.block=Y.pedantic,t.inline=X.pedantic):this.options.gfm&&(t.block=Y.gfm,this.options.breaks?t.inline=X.breaks:t.inline=X.gfm),this.tokenizer.rules=t}e.lex=function(t,n){return new e(n).lex(t)},e.lexInline=function(t,n){return new e(n).inlineTokens(t)};var n=e.prototype;return n.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},n.blockTokens=function(e,t,n){var i,r,o,a;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),(a=t[t.length-1])&&"paragraph"===a.type?(a.raw+="\n"+i.raw,a.text+="\n"+i.text):t.push(i);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.nptable(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],n),t.push(i);else if(i=this.tokenizer.list(e)){for(e=e.substring(i.raw.length),o=i.items.length,r=0;r0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(c));)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,a.index)+"["+Q("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,a.index)+"["+Q("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,a.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(s||(l=""),s=!1,r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e,n,i)){e=e.substring(r.raw.length),n=r.inLink,i=r.inRawBlock;var h=t[t.length-1];h&&"text"===r.type&&"text"===h.type?(h.raw+=r.raw,h.text+=r.text):t.push(r)}else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);var d=t[t.length-1];"link"===r.type?(r.tokens=this.inlineTokens(r.text,[],!0,i),t.push(r)):d&&"text"===r.type&&"text"===d.type?(d.raw+=r.raw,d.text+=r.text):t.push(r)}else if(r=this.tokenizer.emStrong(e,c,l))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.autolink(e,ee))e=e.substring(r.raw.length),t.push(r);else if(n||!(r=this.tokenizer.url(e,ee))){if(r=this.tokenizer.inlineText(e,i,J))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(l=r.raw.slice(-1)),s=!0,(o=t[t.length-1])&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):t.push(r);else if(e){var p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}throw new Error(p)}}else e=e.substring(r.raw.length),t.push(r);return t},t(e,null,[{key:"rules",get:function(){return{block:Y,inline:X}}}]),e}(),ne=o.exports.defaults,ie=N.cleanUrl,re=N.escape,oe=function(){function e(e){this.options=e||ne}var t=e.prototype;return t.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,i);null!=r&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",i?'
    '+(n?e:re(e,!0))+"
    \n":"
    "+(n?e:re(e,!0))+"
    \n"},t.blockquote=function(e){return"
    \n"+e+"
    \n"},t.html=function(e){return e},t.heading=function(e,t,n,i){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},t.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},t.listitem=function(e){return"
  • "+e+"
  • \n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return"

    "+e+"

    \n"},t.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},t.tablerow=function(e){return"\n"+e+"\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
    ":"
    "},t.del=function(e){return""+e+""},t.link=function(e,t,n){if(null===(e=ie(this.options.sanitize,this.options.baseUrl,e)))return n;var i='"},t.image=function(e,t,n){if(null===(e=ie(this.options.sanitize,this.options.baseUrl,e)))return n;var i=''+n+'":">"},t.text=function(e){return e},e}(),ae=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),se=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do{n=e+"-"+ ++i}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),le=oe,ce=ae,ue=se,he=o.exports.defaults,de=N.unescape,pe=te,fe=function(){function e(e){this.options=e||he,this.options.renderer=this.options.renderer||new le,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ce,this.slugger=new ue}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,i,r,o,a,s,l,c,u,h,d,p,f,g,m,v,y,b,w="",x=e.length;for(n=0;n0&&"text"===m.tokens[0].type?(m.tokens[0].text=b+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=b+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:b}):g+=b),g+=this.parse(m.tokens,f),u+=this.renderer.listitem(g,y,v);w+=this.renderer.list(u,d,p);continue;case"html":w+=this.renderer.html(h.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(u=h.tokens?this.parseInline(h.tokens):h.text;n+1An error occurred:

    "+xe(e.message+"",!0)+"
    ";throw e}}return Ce.options=Ce.setOptions=function(e){return be(Ce.defaults,e),ke(Ce.defaults),Ce},Ce.getDefaults=Se,Ce.defaults=_e,Ce.use=function(e){var t=be({},e);if(e.renderer&&function(){var n=Ce.defaults.renderer||new me,i=function(t){var i=n[t];n[t]=function(){for(var r=arguments.length,o=new Array(r),a=0;aAn error occurred:

    "+xe(e.message+"",!0)+"
    ";throw e}},Ce.Parser=fe,Ce.parser=fe.parse,Ce.Renderer=me,Ce.TextRenderer=ve,Ce.Lexer=pe,Ce.lexer=pe.lex,Ce.Tokenizer=ge,Ce.Slugger=ye,Ce.parse=Ce,Ce}()},11690:function(e){const t=/[&<>"']/,n=/[&<>"']/g,i=/[<>"']|&(?!#?\w+;)/,r=/[<>"']|&(?!#?\w+;)/g,o={"&":"&","<":"<",">":">",'"':""","'":"'"},a=e=>o[e];const s=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function l(e){return e.replace(s,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const c=/(^|[^\[])\^/g;const u=/[^\w:]/g,h=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;const d={},p=/^[^:]+:\/*[^/]*$/,f=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function m(e,t){d[" "+e]||(p.test(e)?d[" "+e]=e+"/":d[" "+e]=v(e,"/",!0));const n=-1===(e=d[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(f,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(g,"$1")+t:e+t}function v(e,t,n){const i=e.length;if(0===i)return"";let r=0;for(;r(i=(i=i.source||i).replace(c,"$1"),e=e.replace(t,i),n),getRegex:()=>new RegExp(e,t)};return n},cleanUrl:function(e,t,n){if(e){let e;try{e=decodeURIComponent(l(n)).replace(u,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!h.test(n)&&(n=m(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},resolveUrl:m,noopTest:{exec:function(){}},merge:function(e){let t,n,i=1;for(;i{let i=!1,r=t;for(;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/);let i=0;if(n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}}},75918:function(e,t,n){"use strict";n.d(t,{Wi:function(){return l},Z0:function(){return c},aU:function(){return s},eZ:function(){return h},wY:function(){return u}});var i=n(4348),r=n(69323),o=n(13268),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))};class s extends r.JT{constructor(e,t="",n="",r=!0,o){super(),this._onDidChange=this._register(new i.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=n,this._enabled=r,this._actionCallback=o}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}run(e,t){return a(this,void 0,void 0,(function*(){this._actionCallback&&(yield this._actionCallback(e))}))}}class l extends r.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new i.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new i.Q5),this.onDidRun=this._onDidRun.event}run(e,t){return a(this,void 0,void 0,(function*(){if(!e.enabled)return;let n;this._onBeforeRun.fire({action:e});try{yield this.runAction(e,t)}catch(e){n=e}this._onDidRun.fire({action:e,error:n})}))}runAction(e,t){return a(this,void 0,void 0,(function*(){yield e.run(t)}))}}class c extends s{constructor(e){super(c.ID,e,e?"separator text":"separator"),this.checked=!1,this.enabled=!1}}c.ID="vs.actions.separator";class u{constructor(e,t,n,i){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=e,this.label=t,this.class=i,this._actions=n}get actions(){return this._actions}dispose(){}run(){return a(this,void 0,void 0,(function*(){}))}}class h extends s{constructor(){super(h.ID,o.N("submenu.empty","(empty)"),void 0,!1)}}h.ID="vs.actions.empty"},76068:function(e,t,n){"use strict";function i(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}n.d(t,{ok:function(){return i}})},52615:function(e,t,n){"use strict";n.d(t,{CM:function(){return a},JL:function(){return s},dT:function(){return c},fK:function(){return o},lA:function(){return l}});var i=n(4348);const r=new class{constructor(){this._icons=new Map,this._onDidRegister=new i.Q5}add(e){const t=this._icons.get(e.id);t?e.description?t.description=e.description:console.error(`Duplicate registration of codicon ${e.id}`):(this._icons.set(e.id,e),this._onDidRegister.fire(e))}get(e){return this._icons.get(e)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}},o=r;function a(e,t){return new l(e,t)}function s(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}class l{constructor(e,t,n){this.id=e,this.definition=t,this.description=n,r.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var c;!function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){if(e instanceof l)return["codicon","codicon-"+e.id];const i=t.exec(e.id);if(!i)return n(l.error);let[,r,o]=i;const a=["codicon","codicon-"+r];return o&&a.push("codicon-modifier-"+o.substr(1)),a}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")}}(c||(c={})),function(e){e.add=new e("add",{fontCharacter:"\\ea60"}),e.plus=new e("plus",e.add.definition),e.gistNew=new e("gist-new",e.add.definition),e.repoCreate=new e("repo-create",e.add.definition),e.lightbulb=new e("lightbulb",{fontCharacter:"\\ea61"}),e.lightBulb=new e("light-bulb",{fontCharacter:"\\ea61"}),e.repo=new e("repo",{fontCharacter:"\\ea62"}),e.repoDelete=new e("repo-delete",{fontCharacter:"\\ea62"}),e.gistFork=new e("gist-fork",{fontCharacter:"\\ea63"}),e.repoForked=new e("repo-forked",{fontCharacter:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{fontCharacter:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),e.recordKeys=new e("record-keys",{fontCharacter:"\\ea65"}),e.keyboard=new e("keyboard",{fontCharacter:"\\ea65"}),e.tag=new e("tag",{fontCharacter:"\\ea66"}),e.tagAdd=new e("tag-add",{fontCharacter:"\\ea66"}),e.tagRemove=new e("tag-remove",{fontCharacter:"\\ea66"}),e.person=new e("person",{fontCharacter:"\\ea67"}),e.personFollow=new e("person-follow",{fontCharacter:"\\ea67"}),e.personOutline=new e("person-outline",{fontCharacter:"\\ea67"}),e.personFilled=new e("person-filled",{fontCharacter:"\\ea67"}),e.gitBranch=new e("git-branch",{fontCharacter:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{fontCharacter:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{fontCharacter:"\\ea68"}),e.sourceControl=new e("source-control",{fontCharacter:"\\ea68"}),e.mirror=new e("mirror",{fontCharacter:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{fontCharacter:"\\ea69"}),e.star=new e("star",{fontCharacter:"\\ea6a"}),e.starAdd=new e("star-add",{fontCharacter:"\\ea6a"}),e.starDelete=new e("star-delete",{fontCharacter:"\\ea6a"}),e.starEmpty=new e("star-empty",{fontCharacter:"\\ea6a"}),e.comment=new e("comment",{fontCharacter:"\\ea6b"}),e.commentAdd=new e("comment-add",{fontCharacter:"\\ea6b"}),e.alert=new e("alert",{fontCharacter:"\\ea6c"}),e.warning=new e("warning",{fontCharacter:"\\ea6c"}),e.search=new e("search",{fontCharacter:"\\ea6d"}),e.searchSave=new e("search-save",{fontCharacter:"\\ea6d"}),e.logOut=new e("log-out",{fontCharacter:"\\ea6e"}),e.signOut=new e("sign-out",{fontCharacter:"\\ea6e"}),e.logIn=new e("log-in",{fontCharacter:"\\ea6f"}),e.signIn=new e("sign-in",{fontCharacter:"\\ea6f"}),e.eye=new e("eye",{fontCharacter:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{fontCharacter:"\\ea70"}),e.eyeWatch=new e("eye-watch",{fontCharacter:"\\ea70"}),e.circleFilled=new e("circle-filled",{fontCharacter:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{fontCharacter:"\\ea71"}),e.closeDirty=new e("close-dirty",{fontCharacter:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{fontCharacter:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),e.debugHint=new e("debug-hint",{fontCharacter:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{fontCharacter:"\\ea72"}),e.edit=new e("edit",{fontCharacter:"\\ea73"}),e.pencil=new e("pencil",{fontCharacter:"\\ea73"}),e.info=new e("info",{fontCharacter:"\\ea74"}),e.issueOpened=new e("issue-opened",{fontCharacter:"\\ea74"}),e.gistPrivate=new e("gist-private",{fontCharacter:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{fontCharacter:"\\ea75"}),e.lock=new e("lock",{fontCharacter:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{fontCharacter:"\\ea75"}),e.close=new e("close",{fontCharacter:"\\ea76"}),e.removeClose=new e("remove-close",{fontCharacter:"\\ea76"}),e.x=new e("x",{fontCharacter:"\\ea76"}),e.repoSync=new e("repo-sync",{fontCharacter:"\\ea77"}),e.sync=new e("sync",{fontCharacter:"\\ea77"}),e.clone=new e("clone",{fontCharacter:"\\ea78"}),e.desktopDownload=new e("desktop-download",{fontCharacter:"\\ea78"}),e.beaker=new e("beaker",{fontCharacter:"\\ea79"}),e.microscope=new e("microscope",{fontCharacter:"\\ea79"}),e.vm=new e("vm",{fontCharacter:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{fontCharacter:"\\ea7a"}),e.file=new e("file",{fontCharacter:"\\ea7b"}),e.fileText=new e("file-text",{fontCharacter:"\\ea7b"}),e.more=new e("more",{fontCharacter:"\\ea7c"}),e.ellipsis=new e("ellipsis",{fontCharacter:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{fontCharacter:"\\ea7c"}),e.mailReply=new e("mail-reply",{fontCharacter:"\\ea7d"}),e.reply=new e("reply",{fontCharacter:"\\ea7d"}),e.organization=new e("organization",{fontCharacter:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{fontCharacter:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{fontCharacter:"\\ea7e"}),e.newFile=new e("new-file",{fontCharacter:"\\ea7f"}),e.fileAdd=new e("file-add",{fontCharacter:"\\ea7f"}),e.newFolder=new e("new-folder",{fontCharacter:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{fontCharacter:"\\ea80"}),e.trash=new e("trash",{fontCharacter:"\\ea81"}),e.trashcan=new e("trashcan",{fontCharacter:"\\ea81"}),e.history=new e("history",{fontCharacter:"\\ea82"}),e.clock=new e("clock",{fontCharacter:"\\ea82"}),e.folder=new e("folder",{fontCharacter:"\\ea83"}),e.fileDirectory=new e("file-directory",{fontCharacter:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{fontCharacter:"\\ea83"}),e.logoGithub=new e("logo-github",{fontCharacter:"\\ea84"}),e.markGithub=new e("mark-github",{fontCharacter:"\\ea84"}),e.github=new e("github",{fontCharacter:"\\ea84"}),e.terminal=new e("terminal",{fontCharacter:"\\ea85"}),e.console=new e("console",{fontCharacter:"\\ea85"}),e.repl=new e("repl",{fontCharacter:"\\ea85"}),e.zap=new e("zap",{fontCharacter:"\\ea86"}),e.symbolEvent=new e("symbol-event",{fontCharacter:"\\ea86"}),e.error=new e("error",{fontCharacter:"\\ea87"}),e.stop=new e("stop",{fontCharacter:"\\ea87"}),e.variable=new e("variable",{fontCharacter:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{fontCharacter:"\\ea88"}),e.array=new e("array",{fontCharacter:"\\ea8a"}),e.symbolArray=new e("symbol-array",{fontCharacter:"\\ea8a"}),e.symbolModule=new e("symbol-module",{fontCharacter:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{fontCharacter:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{fontCharacter:"\\ea8b"}),e.symbolObject=new e("symbol-object",{fontCharacter:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{fontCharacter:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{fontCharacter:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{fontCharacter:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{fontCharacter:"\\ea8f"}),e.symbolNull=new e("symbol-null",{fontCharacter:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{fontCharacter:"\\ea90"}),e.symbolNumber=new e("symbol-number",{fontCharacter:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{fontCharacter:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{fontCharacter:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{fontCharacter:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{fontCharacter:"\\ea92"}),e.symbolKey=new e("symbol-key",{fontCharacter:"\\ea93"}),e.symbolText=new e("symbol-text",{fontCharacter:"\\ea93"}),e.symbolReference=new e("symbol-reference",{fontCharacter:"\\ea94"}),e.goToFile=new e("go-to-file",{fontCharacter:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{fontCharacter:"\\ea95"}),e.symbolValue=new e("symbol-value",{fontCharacter:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{fontCharacter:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{fontCharacter:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{fontCharacter:"\\ea97"}),e.archive=new e("archive",{fontCharacter:"\\ea98"}),e.arrowBoth=new e("arrow-both",{fontCharacter:"\\ea99"}),e.arrowDown=new e("arrow-down",{fontCharacter:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{fontCharacter:"\\ea9b"}),e.arrowRight=new e("arrow-right",{fontCharacter:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{fontCharacter:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{fontCharacter:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{fontCharacter:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{fontCharacter:"\\eaa0"}),e.arrowUp=new e("arrow-up",{fontCharacter:"\\eaa1"}),e.bell=new e("bell",{fontCharacter:"\\eaa2"}),e.bold=new e("bold",{fontCharacter:"\\eaa3"}),e.book=new e("book",{fontCharacter:"\\eaa4"}),e.bookmark=new e("bookmark",{fontCharacter:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{fontCharacter:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),e.briefcase=new e("briefcase",{fontCharacter:"\\eaac"}),e.broadcast=new e("broadcast",{fontCharacter:"\\eaad"}),e.browser=new e("browser",{fontCharacter:"\\eaae"}),e.bug=new e("bug",{fontCharacter:"\\eaaf"}),e.calendar=new e("calendar",{fontCharacter:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{fontCharacter:"\\eab1"}),e.check=new e("check",{fontCharacter:"\\eab2"}),e.checklist=new e("checklist",{fontCharacter:"\\eab3"}),e.chevronDown=new e("chevron-down",{fontCharacter:"\\eab4"}),e.dropDownButton=new e("drop-down-button",e.chevronDown.definition),e.chevronLeft=new e("chevron-left",{fontCharacter:"\\eab5"}),e.chevronRight=new e("chevron-right",{fontCharacter:"\\eab6"}),e.chevronUp=new e("chevron-up",{fontCharacter:"\\eab7"}),e.chromeClose=new e("chrome-close",{fontCharacter:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{fontCharacter:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{fontCharacter:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{fontCharacter:"\\eabb"}),e.circleOutline=new e("circle-outline",{fontCharacter:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),e.circleSlash=new e("circle-slash",{fontCharacter:"\\eabd"}),e.circuitBoard=new e("circuit-board",{fontCharacter:"\\eabe"}),e.clearAll=new e("clear-all",{fontCharacter:"\\eabf"}),e.clippy=new e("clippy",{fontCharacter:"\\eac0"}),e.closeAll=new e("close-all",{fontCharacter:"\\eac1"}),e.cloudDownload=new e("cloud-download",{fontCharacter:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{fontCharacter:"\\eac3"}),e.code=new e("code",{fontCharacter:"\\eac4"}),e.collapseAll=new e("collapse-all",{fontCharacter:"\\eac5"}),e.colorMode=new e("color-mode",{fontCharacter:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{fontCharacter:"\\eac7"}),e.compareChanges=new e("compare-changes",{fontCharacter:"\\eafd"}),e.creditCard=new e("credit-card",{fontCharacter:"\\eac9"}),e.dash=new e("dash",{fontCharacter:"\\eacc"}),e.dashboard=new e("dashboard",{fontCharacter:"\\eacd"}),e.database=new e("database",{fontCharacter:"\\eace"}),e.debugContinue=new e("debug-continue",{fontCharacter:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{fontCharacter:"\\ead0"}),e.debugPause=new e("debug-pause",{fontCharacter:"\\ead1"}),e.debugRestart=new e("debug-restart",{fontCharacter:"\\ead2"}),e.debugStart=new e("debug-start",{fontCharacter:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{fontCharacter:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{fontCharacter:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{fontCharacter:"\\ead6"}),e.debugStop=new e("debug-stop",{fontCharacter:"\\ead7"}),e.debug=new e("debug",{fontCharacter:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{fontCharacter:"\\ead9"}),e.deviceCamera=new e("device-camera",{fontCharacter:"\\eada"}),e.deviceMobile=new e("device-mobile",{fontCharacter:"\\eadb"}),e.diffAdded=new e("diff-added",{fontCharacter:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{fontCharacter:"\\eadd"}),e.diffModified=new e("diff-modified",{fontCharacter:"\\eade"}),e.diffRemoved=new e("diff-removed",{fontCharacter:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{fontCharacter:"\\eae0"}),e.diff=new e("diff",{fontCharacter:"\\eae1"}),e.discard=new e("discard",{fontCharacter:"\\eae2"}),e.editorLayout=new e("editor-layout",{fontCharacter:"\\eae3"}),e.emptyWindow=new e("empty-window",{fontCharacter:"\\eae4"}),e.exclude=new e("exclude",{fontCharacter:"\\eae5"}),e.extensions=new e("extensions",{fontCharacter:"\\eae6"}),e.eyeClosed=new e("eye-closed",{fontCharacter:"\\eae7"}),e.fileBinary=new e("file-binary",{fontCharacter:"\\eae8"}),e.fileCode=new e("file-code",{fontCharacter:"\\eae9"}),e.fileMedia=new e("file-media",{fontCharacter:"\\eaea"}),e.filePdf=new e("file-pdf",{fontCharacter:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{fontCharacter:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{fontCharacter:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{fontCharacter:"\\eaee"}),e.fileZip=new e("file-zip",{fontCharacter:"\\eaef"}),e.files=new e("files",{fontCharacter:"\\eaf0"}),e.filter=new e("filter",{fontCharacter:"\\eaf1"}),e.flame=new e("flame",{fontCharacter:"\\eaf2"}),e.foldDown=new e("fold-down",{fontCharacter:"\\eaf3"}),e.foldUp=new e("fold-up",{fontCharacter:"\\eaf4"}),e.fold=new e("fold",{fontCharacter:"\\eaf5"}),e.folderActive=new e("folder-active",{fontCharacter:"\\eaf6"}),e.folderOpened=new e("folder-opened",{fontCharacter:"\\eaf7"}),e.gear=new e("gear",{fontCharacter:"\\eaf8"}),e.gift=new e("gift",{fontCharacter:"\\eaf9"}),e.gistSecret=new e("gist-secret",{fontCharacter:"\\eafa"}),e.gist=new e("gist",{fontCharacter:"\\eafb"}),e.gitCommit=new e("git-commit",{fontCharacter:"\\eafc"}),e.gitCompare=new e("git-compare",{fontCharacter:"\\eafd"}),e.gitMerge=new e("git-merge",{fontCharacter:"\\eafe"}),e.githubAction=new e("github-action",{fontCharacter:"\\eaff"}),e.githubAlt=new e("github-alt",{fontCharacter:"\\eb00"}),e.globe=new e("globe",{fontCharacter:"\\eb01"}),e.grabber=new e("grabber",{fontCharacter:"\\eb02"}),e.graph=new e("graph",{fontCharacter:"\\eb03"}),e.gripper=new e("gripper",{fontCharacter:"\\eb04"}),e.heart=new e("heart",{fontCharacter:"\\eb05"}),e.home=new e("home",{fontCharacter:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{fontCharacter:"\\eb07"}),e.hubot=new e("hubot",{fontCharacter:"\\eb08"}),e.inbox=new e("inbox",{fontCharacter:"\\eb09"}),e.issueClosed=new e("issue-closed",{fontCharacter:"\\eba4"}),e.issueReopened=new e("issue-reopened",{fontCharacter:"\\eb0b"}),e.issues=new e("issues",{fontCharacter:"\\eb0c"}),e.italic=new e("italic",{fontCharacter:"\\eb0d"}),e.jersey=new e("jersey",{fontCharacter:"\\eb0e"}),e.json=new e("json",{fontCharacter:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{fontCharacter:"\\eb10"}),e.key=new e("key",{fontCharacter:"\\eb11"}),e.law=new e("law",{fontCharacter:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{fontCharacter:"\\eb13"}),e.linkExternal=new e("link-external",{fontCharacter:"\\eb14"}),e.link=new e("link",{fontCharacter:"\\eb15"}),e.listOrdered=new e("list-ordered",{fontCharacter:"\\eb16"}),e.listUnordered=new e("list-unordered",{fontCharacter:"\\eb17"}),e.liveShare=new e("live-share",{fontCharacter:"\\eb18"}),e.loading=new e("loading",{fontCharacter:"\\eb19"}),e.location=new e("location",{fontCharacter:"\\eb1a"}),e.mailRead=new e("mail-read",{fontCharacter:"\\eb1b"}),e.mail=new e("mail",{fontCharacter:"\\eb1c"}),e.markdown=new e("markdown",{fontCharacter:"\\eb1d"}),e.megaphone=new e("megaphone",{fontCharacter:"\\eb1e"}),e.mention=new e("mention",{fontCharacter:"\\eb1f"}),e.milestone=new e("milestone",{fontCharacter:"\\eb20"}),e.mortarBoard=new e("mortar-board",{fontCharacter:"\\eb21"}),e.move=new e("move",{fontCharacter:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{fontCharacter:"\\eb23"}),e.mute=new e("mute",{fontCharacter:"\\eb24"}),e.noNewline=new e("no-newline",{fontCharacter:"\\eb25"}),e.note=new e("note",{fontCharacter:"\\eb26"}),e.octoface=new e("octoface",{fontCharacter:"\\eb27"}),e.openPreview=new e("open-preview",{fontCharacter:"\\eb28"}),e.package_=new e("package",{fontCharacter:"\\eb29"}),e.paintcan=new e("paintcan",{fontCharacter:"\\eb2a"}),e.pin=new e("pin",{fontCharacter:"\\eb2b"}),e.play=new e("play",{fontCharacter:"\\eb2c"}),e.run=new e("run",{fontCharacter:"\\eb2c"}),e.plug=new e("plug",{fontCharacter:"\\eb2d"}),e.preserveCase=new e("preserve-case",{fontCharacter:"\\eb2e"}),e.preview=new e("preview",{fontCharacter:"\\eb2f"}),e.project=new e("project",{fontCharacter:"\\eb30"}),e.pulse=new e("pulse",{fontCharacter:"\\eb31"}),e.question=new e("question",{fontCharacter:"\\eb32"}),e.quote=new e("quote",{fontCharacter:"\\eb33"}),e.radioTower=new e("radio-tower",{fontCharacter:"\\eb34"}),e.reactions=new e("reactions",{fontCharacter:"\\eb35"}),e.references=new e("references",{fontCharacter:"\\eb36"}),e.refresh=new e("refresh",{fontCharacter:"\\eb37"}),e.regex=new e("regex",{fontCharacter:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{fontCharacter:"\\eb39"}),e.remote=new e("remote",{fontCharacter:"\\eb3a"}),e.remove=new e("remove",{fontCharacter:"\\eb3b"}),e.replaceAll=new e("replace-all",{fontCharacter:"\\eb3c"}),e.replace=new e("replace",{fontCharacter:"\\eb3d"}),e.repoClone=new e("repo-clone",{fontCharacter:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{fontCharacter:"\\eb3f"}),e.repoPull=new e("repo-pull",{fontCharacter:"\\eb40"}),e.repoPush=new e("repo-push",{fontCharacter:"\\eb41"}),e.report=new e("report",{fontCharacter:"\\eb42"}),e.requestChanges=new e("request-changes",{fontCharacter:"\\eb43"}),e.rocket=new e("rocket",{fontCharacter:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{fontCharacter:"\\eb45"}),e.rootFolder=new e("root-folder",{fontCharacter:"\\eb46"}),e.rss=new e("rss",{fontCharacter:"\\eb47"}),e.ruby=new e("ruby",{fontCharacter:"\\eb48"}),e.saveAll=new e("save-all",{fontCharacter:"\\eb49"}),e.saveAs=new e("save-as",{fontCharacter:"\\eb4a"}),e.save=new e("save",{fontCharacter:"\\eb4b"}),e.screenFull=new e("screen-full",{fontCharacter:"\\eb4c"}),e.screenNormal=new e("screen-normal",{fontCharacter:"\\eb4d"}),e.searchStop=new e("search-stop",{fontCharacter:"\\eb4e"}),e.server=new e("server",{fontCharacter:"\\eb50"}),e.settingsGear=new e("settings-gear",{fontCharacter:"\\eb51"}),e.settings=new e("settings",{fontCharacter:"\\eb52"}),e.shield=new e("shield",{fontCharacter:"\\eb53"}),e.smiley=new e("smiley",{fontCharacter:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{fontCharacter:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{fontCharacter:"\\eb56"}),e.splitVertical=new e("split-vertical",{fontCharacter:"\\eb57"}),e.squirrel=new e("squirrel",{fontCharacter:"\\eb58"}),e.starFull=new e("star-full",{fontCharacter:"\\eb59"}),e.starHalf=new e("star-half",{fontCharacter:"\\eb5a"}),e.symbolClass=new e("symbol-class",{fontCharacter:"\\eb5b"}),e.symbolColor=new e("symbol-color",{fontCharacter:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{fontCharacter:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{fontCharacter:"\\eb5e"}),e.symbolField=new e("symbol-field",{fontCharacter:"\\eb5f"}),e.symbolFile=new e("symbol-file",{fontCharacter:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{fontCharacter:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{fontCharacter:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{fontCharacter:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{fontCharacter:"\\eb64"}),e.symbolProperty=new e("symbol-property",{fontCharacter:"\\eb65"}),e.wrench=new e("wrench",{fontCharacter:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{fontCharacter:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{fontCharacter:"\\eb66"}),e.tasklist=new e("tasklist",{fontCharacter:"\\eb67"}),e.telescope=new e("telescope",{fontCharacter:"\\eb68"}),e.textSize=new e("text-size",{fontCharacter:"\\eb69"}),e.threeBars=new e("three-bars",{fontCharacter:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{fontCharacter:"\\eb6b"}),e.thumbsup=new e("thumbsup",{fontCharacter:"\\eb6c"}),e.tools=new e("tools",{fontCharacter:"\\eb6d"}),e.triangleDown=new e("triangle-down",{fontCharacter:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{fontCharacter:"\\eb6f"}),e.triangleRight=new e("triangle-right",{fontCharacter:"\\eb70"}),e.triangleUp=new e("triangle-up",{fontCharacter:"\\eb71"}),e.twitter=new e("twitter",{fontCharacter:"\\eb72"}),e.unfold=new e("unfold",{fontCharacter:"\\eb73"}),e.unlock=new e("unlock",{fontCharacter:"\\eb74"}),e.unmute=new e("unmute",{fontCharacter:"\\eb75"}),e.unverified=new e("unverified",{fontCharacter:"\\eb76"}),e.verified=new e("verified",{fontCharacter:"\\eb77"}),e.versions=new e("versions",{fontCharacter:"\\eb78"}),e.vmActive=new e("vm-active",{fontCharacter:"\\eb79"}),e.vmOutline=new e("vm-outline",{fontCharacter:"\\eb7a"}),e.vmRunning=new e("vm-running",{fontCharacter:"\\eb7b"}),e.watch=new e("watch",{fontCharacter:"\\eb7c"}),e.whitespace=new e("whitespace",{fontCharacter:"\\eb7d"}),e.wholeWord=new e("whole-word",{fontCharacter:"\\eb7e"}),e.window=new e("window",{fontCharacter:"\\eb7f"}),e.wordWrap=new e("word-wrap",{fontCharacter:"\\eb80"}),e.zoomIn=new e("zoom-in",{fontCharacter:"\\eb81"}),e.zoomOut=new e("zoom-out",{fontCharacter:"\\eb82"}),e.listFilter=new e("list-filter",{fontCharacter:"\\eb83"}),e.listFlat=new e("list-flat",{fontCharacter:"\\eb84"}),e.listSelection=new e("list-selection",{fontCharacter:"\\eb85"}),e.selection=new e("selection",{fontCharacter:"\\eb85"}),e.listTree=new e("list-tree",{fontCharacter:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{fontCharacter:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{fontCharacter:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{fontCharacter:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),e.symbolString=new e("symbol-string",{fontCharacter:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{fontCharacter:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{fontCharacter:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{fontCharacter:"\\eb90"}),e.callIncoming=new e("call-incoming",{fontCharacter:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{fontCharacter:"\\eb93"}),e.menu=new e("menu",{fontCharacter:"\\eb94"}),e.expandAll=new e("expand-all",{fontCharacter:"\\eb95"}),e.feedback=new e("feedback",{fontCharacter:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{fontCharacter:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),e.account=new e("account",{fontCharacter:"\\eb99"}),e.bellDot=new e("bell-dot",{fontCharacter:"\\eb9a"}),e.debugConsole=new e("debug-console",{fontCharacter:"\\eb9b"}),e.library=new e("library",{fontCharacter:"\\eb9c"}),e.output=new e("output",{fontCharacter:"\\eb9d"}),e.runAll=new e("run-all",{fontCharacter:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{fontCharacter:"\\eb9f"}),e.pinned=new e("pinned",{fontCharacter:"\\eba0"}),e.githubInverted=new e("github-inverted",{fontCharacter:"\\eba1"}),e.debugAlt=new e("debug-alt",{fontCharacter:"\\eb91"}),e.serverProcess=new e("server-process",{fontCharacter:"\\eba2"}),e.serverEnvironment=new e("server-environment",{fontCharacter:"\\eba3"}),e.pass=new e("pass",{fontCharacter:"\\eba4"}),e.stopCircle=new e("stop-circle",{fontCharacter:"\\eba5"}),e.playCircle=new e("play-circle",{fontCharacter:"\\eba6"}),e.record=new e("record",{fontCharacter:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{fontCharacter:"\\eba8"}),e.vmConnect=new e("vm-connect",{fontCharacter:"\\eba9"}),e.cloud=new e("cloud",{fontCharacter:"\\ebaa"}),e.merge=new e("merge",{fontCharacter:"\\ebab"}),e.exportIcon=new e("export",{fontCharacter:"\\ebac"}),e.graphLeft=new e("graph-left",{fontCharacter:"\\ebad"}),e.magnet=new e("magnet",{fontCharacter:"\\ebae"}),e.notebook=new e("notebook",{fontCharacter:"\\ebaf"}),e.redo=new e("redo",{fontCharacter:"\\ebb0"}),e.checkAll=new e("check-all",{fontCharacter:"\\ebb1"}),e.pinnedDirty=new e("pinned-dirty",{fontCharacter:"\\ebb2"}),e.passFilled=new e("pass-filled",{fontCharacter:"\\ebb3"}),e.circleLargeFilled=new e("circle-large-filled",{fontCharacter:"\\ebb4"}),e.circleLargeOutline=new e("circle-large-outline",{fontCharacter:"\\ebb5"}),e.combine=new e("combine",{fontCharacter:"\\ebb6"}),e.gather=new e("gather",{fontCharacter:"\\ebb6"}),e.table=new e("table",{fontCharacter:"\\ebb7"}),e.variableGroup=new e("variable-group",{fontCharacter:"\\ebb8"}),e.typeHierarchy=new e("type-hierarchy",{fontCharacter:"\\ebb9"}),e.typeHierarchySub=new e("type-hierarchy-sub",{fontCharacter:"\\ebba"}),e.typeHierarchySuper=new e("type-hierarchy-super",{fontCharacter:"\\ebbb"}),e.gitPullRequestCreate=new e("git-pull-request-create",{fontCharacter:"\\ebbc"}),e.runAbove=new e("run-above",{fontCharacter:"\\ebbd"}),e.runBelow=new e("run-below",{fontCharacter:"\\ebbe"}),e.notebookTemplate=new e("notebook-template",{fontCharacter:"\\ebbf"}),e.debugRerun=new e("debug-rerun",{fontCharacter:"\\ebc0"}),e.workspaceTrusted=new e("workspace-trusted",{fontCharacter:"\\ebc1"}),e.workspaceUntrusted=new e("workspace-untrusted",{fontCharacter:"\\ebc2"}),e.workspaceUnspecified=new e("workspace-unspecified",{fontCharacter:"\\ebc3"}),e.terminalCmd=new e("terminal-cmd",{fontCharacter:"\\ebc4"}),e.terminalDebian=new e("terminal-debian",{fontCharacter:"\\ebc5"}),e.terminalLinux=new e("terminal-linux",{fontCharacter:"\\ebc6"}),e.terminalPowershell=new e("terminal-powershell",{fontCharacter:"\\ebc7"}),e.terminalTmux=new e("terminal-tmux",{fontCharacter:"\\ebc8"}),e.terminalUbuntu=new e("terminal-ubuntu",{fontCharacter:"\\ebc9"}),e.terminalBash=new e("terminal-bash",{fontCharacter:"\\ebca"}),e.arrowSwap=new e("arrow-swap",{fontCharacter:"\\ebcb"}),e.copy=new e("copy",{fontCharacter:"\\ebcc"}),e.personAdd=new e("person-add",{fontCharacter:"\\ebcd"}),e.filterFilled=new e("filter-filled",{fontCharacter:"\\ebce"}),e.wand=new e("wand",{fontCharacter:"\\ebcf"}),e.debugLineByLine=new e("debug-line-by-line",{fontCharacter:"\\ebd0"}),e.inspect=new e("inspect",{fontCharacter:"\\ebd1"}),e.layers=new e("layers",{fontCharacter:"\\ebd2"}),e.layersDot=new e("layers-dot",{fontCharacter:"\\ebd3"}),e.layersActive=new e("layers-active",{fontCharacter:"\\ebd4"}),e.compass=new e("compass",{fontCharacter:"\\ebd5"}),e.compassDot=new e("compass-dot",{fontCharacter:"\\ebd6"}),e.compassActive=new e("compass-active",{fontCharacter:"\\ebd7"}),e.azure=new e("azure",{fontCharacter:"\\ebd8"}),e.issueDraft=new e("issue-draft",{fontCharacter:"\\ebd9"}),e.gitPullRequestClosed=new e("git-pull-request-closed",{fontCharacter:"\\ebda"}),e.gitPullRequestDraft=new e("git-pull-request-draft",{fontCharacter:"\\ebdb"}),e.debugAll=new e("debug-all",{fontCharacter:"\\ebdc"}),e.debugCoverage=new e("debug-coverage",{fontCharacter:"\\ebdd"}),e.runErrors=new e("run-errors",{fontCharacter:"\\ebde"}),e.folderLibrary=new e("folder-library",{fontCharacter:"\\ebdf"}),e.debugContinueSmall=new e("debug-continue-small",{fontCharacter:"\\ebe0"}),e.beakerStop=new e("beaker-stop",{fontCharacter:"\\ebe1"}),e.graphLine=new e("graph-line",{fontCharacter:"\\ebe2"}),e.graphScatter=new e("graph-scatter",{fontCharacter:"\\ebe3"}),e.pieChart=new e("pie-chart",{fontCharacter:"\\ebe4"}),e.bracket=new e("bracket",e.json.definition),e.bracketDot=new e("bracket-dot",{fontCharacter:"\\ebe5"}),e.bracketError=new e("bracket-error",{fontCharacter:"\\ebe6"}),e.lockSmall=new e("lock-small",{fontCharacter:"\\ebe7"}),e.azureDevops=new e("azure-devops",{fontCharacter:"\\ebe8"}),e.verifiedFilled=new e("verified-filled",{fontCharacter:"\\ebe9"})}(l||(l={}))},79881:function(e,t,n){"use strict";n.d(t,{B8:function(){return d},Cp:function(){return o},F0:function(){return c},L6:function(){return h},VV:function(){return l},b1:function(){return u},dL:function(){return r},ri:function(){return a}});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){l(e)||i.onUnexpectedError(e)}function o(e){l(e)||i.onUnexpectedExternalError(e)}function a(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e}const s="Canceled";function l(e){return e instanceof Error&&e.name===s&&e.message===s}function c(){const e=new Error(s);return e.name=e.message,e}function u(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function h(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class d extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}},4348:function(e,t,n){"use strict";n.d(t,{D0:function(){return h},E7:function(){return d},K3:function(){return u},Q5:function(){return c},ZD:function(){return p},ju:function(){return i}});var i,r=n(79881),o=n(69323),a=n(34502),s=n(95830);!function(e){function t(e){return(t,n=null,i)=>{let r,o=!1;return r=e((e=>{if(!o)return r?r.dispose():o=!0,t.call(n,e)}),null,i),o&&r.dispose(),r}}function n(e,t){return s(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)))}function i(e,t){return s(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)))}function r(e,t){return s(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)))}function a(e,t,i){let r=i;return n(e,(e=>(r=t(r,e),r)))}function s(e){let t;const n=new c({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function l(e,t,n=100,i=!1,r){let o,a,s,l=0;const u=new c({leakWarningThreshold:r,onFirstListenerAdd(){o=e((e=>{l++,a=t(a,e),i&&!s&&(u.fire(a),a=void 0),clearTimeout(s),s=setTimeout((()=>{const e=a;a=void 0,s=void 0,(!i||l>1)&&u.fire(e),l=0}),n)}))},onLastListenerRemove(){o.dispose()}});return u.event}function u(e,t=((e,t)=>e===t)){let n,i=!0;return r(e,(e=>{const r=i||!t(e,n);return i=!1,n=e,r}))}e.None=()=>o.JT.None,e.once=t,e.map=n,e.forEach=i,e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>(0,o.F8)(...e.map((e=>e((e=>t.call(n,e)),null,i))))},e.reduce=a,e.debounce=l,e.latch=u,e.split=function(t,n){return[e.filter(t,n),e.filter(t,(e=>!n(e)))]},e.buffer=function(e,t=!1,n=[]){let i=n.slice(),r=e((e=>{i?i.push(e):a.fire(e)}));const o=()=>{i&&i.forEach((e=>a.fire(e))),i=null},a=new c({onFirstListenerAdd(){r||(r=e((e=>a.fire(e))))},onFirstListenerDidAdd(){i&&(t?setTimeout(o):o())},onLastListenerRemove(){r&&r.dispose(),r=null}});return a.event};class h{constructor(e){this.event=e}map(e){return new h(n(this.event,e))}forEach(e){return new h(i(this.event,e))}filter(e){return new h(r(this.event,e))}reduce(e,t){return new h(a(this.event,e,t))}latch(){return new h(u(this.event))}debounce(e,t=100,n=!1,i){return new h(l(this.event,e,t,n,i))}on(e,t,n){return this.event(e,t,n)}once(e,n,i){return t(this.event)(e,n,i)}}e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new c({onFirstListenerAdd:()=>e.on(t,i),onLastListenerRemove:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new c({onFirstListenerAdd:()=>e.addEventListener(t,i),onLastListenerRemove:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((n=>t(e)(n)))}}(i||(i={}));class l{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${l._idPool++}`}start(e){this._stopWatch=new s.G(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}l._idPool=0;class c{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new l(this._options._profName):void 0}get event(){return this._event||(this._event=(e,t,n)=>{var i;this._listeners||(this._listeners=new a.S);const r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(t?[e,t]:e);r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const l=null===(i=this._leakageMon)||void 0===i?void 0:i.check(this._listeners.size),c=(0,o.OF)((()=>{if(l&&l(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}));return n instanceof o.SL?n.add(c):Array.isArray(n)&&n.push(c),c}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new a.S);for(let t of this._listeners)this._deliveryQueue.push([t,e]);for(null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){(0,r.dL)(e)}}null===(n=this._perfMon)||void 0===n||n.stop()}}dispose(){var e,t,n,i,r;this._disposed||(this._disposed=!0,null===(e=this._listeners)||void 0===e||e.clear(),null===(t=this._deliveryQueue)||void 0===t||t.clear(),null===(i=null===(n=this._options)||void 0===n?void 0:n.onLastListenerRemove)||void 0===i||i.call(n),null===(r=this._leakageMon)||void 0===r||r.dispose())}}class u extends c{constructor(e){super(e),this._isPaused=0,this._eventQueue=new a.S,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class h extends u{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(e)}}class d{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,i)=>e((e=>{const i=this.buffers[this.buffers.length-1];i?i.push((()=>t.call(n,e))):t.call(n,e)}),void 0,i)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach((e=>e())),n}}class p{constructor(){this.listening=!1,this.inputEvent=i.None,this.inputEventListener=o.JT.None,this.emitter=new c({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(e,t,n){"use strict";function i(e){const t=this;let n,i=!1;return function(){return i||(i=!0,n=e.apply(t,arguments)),n}}n.d(t,{I:function(){return i}})},88226:function(e,t,n){"use strict";var i;n.d(t,{$:function(){return i}}),function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const t=Object.freeze([]);e.empty=function(){return t},e.single=function*(e){yield e},e.from=function(e){return e||t},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.concat=function*(...e){for(const t of e)for(const e of t)yield e},e.concatNested=function*(e){for(const t of e)for(const e of t)yield e},e.reduce=function(e,t,n){let i=n;for(const n of e)i=t(i,n);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);te===t)){const i=e[Symbol.iterator](),r=t[Symbol.iterator]();for(;;){const e=i.next(),t=r.next();if(e.done!==t.done)return!1;if(e.done)return!0;if(!n(e.value,t.value))return!1}}}(i||(i={}))},69323:function(e,t,n){"use strict";n.d(t,{B9:function(){return d},F8:function(){return p},JT:function(){return m},Jz:function(){return y},OF:function(){return f},SL:function(){return g},Wf:function(){return h},XK:function(){return v},dk:function(){return c}});var i=n(17845),r=n(88226);let o=null;function a(e){return null==o||o.trackDisposable(e),e}function s(e){null==o||o.markAsDisposed(e)}function l(e,t){null==o||o.setParent(e,t)}function c(e){return null==o||o.markAsSingleton(e),e}class u extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function h(e){return"function"==typeof e.dispose&&0===e.dispose.length}function d(e){if(r.$.is(e)){let t=[];for(const n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new u(t);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function p(...e){const t=f((()=>d(e)));return function(e,t){if(o)for(const n of e)o.setParent(n,t)}(e,t),t}function f(e){const t=a({dispose:(0,i.I)((()=>{s(t),e()}))});return t}class g{constructor(){this._toDispose=new Set,this._isDisposed=!1,a(this)}dispose(){this._isDisposed||(s(this),this._isDisposed=!0,this.clear())}clear(){try{d(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?g.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}g.DISABLE_DISPOSED_WARNING=!1;class m{constructor(){this._store=new g,a(this),l(this._store,this)}dispose(){s(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}m.None=Object.freeze({dispose(){}});class v{constructor(){this._isDisposed=!1,a(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,s(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&l(e,null),e}}class y{constructor(e){this.object=e}dispose(){}}},34502:function(e,t,n){"use strict";n.d(t,{S:function(){return r}});class i{constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}i.Undefined=new i(void 0);class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let e=this._first;for(;e!==i.Undefined;){const t=e.next;e.prev=i.Undefined,e.next=i.Undefined,e=t}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==i.Undefined;)yield e.element,e=e.next}}},23345:function(e,t,n){"use strict";n.d(t,{$L:function(){return C},ED:function(){return x},IJ:function(){return k},OS:function(){return L},WE:function(){return E},dz:function(){return S},gn:function(){return P},li:function(){return v},r:function(){return D},tY:function(){return _},xS:function(){return M}});var i,r=n(97671);const o="en";let a,s,l=!1,c=!1,u=!1,h=!1,d=!1,p=!1,f=!1,g=null,m=null;const v="object"==typeof self?self:"object"==typeof n.g?n.g:{};let y;void 0!==v.vscode&&void 0!==v.vscode.process?y=v.vscode.process:void 0!==r&&(y=r);const b="string"==typeof(null===(i=null==y?void 0:y.versions)||void 0===i?void 0:i.electron)&&"renderer"===y.type;if("object"!=typeof navigator||b)if("object"==typeof y){l="win32"===y.platform,c="darwin"===y.platform,u="linux"===y.platform,h=u&&!!y.env.SNAP&&!!y.env.SNAP_REVISION,a=o,g=o;const e=y.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];a=t.locale,g=n||o,m=t._translationsConfigFile}catch(e){}d=!0}else console.error("Unable to resolve platform.");else s=navigator.userAgent,l=s.indexOf("Windows")>=0,c=s.indexOf("Macintosh")>=0,f=(s.indexOf("Macintosh")>=0||s.indexOf("iPad")>=0||s.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,u=s.indexOf("Linux")>=0,p=!0,a=navigator.language,g=a;let w=0;c?w=1:l?w=3:u&&(w=2);const x=l,S=c,k=u,_=d,C=p,P=f,E=s,M=function(){if(v.setImmediate)return v.setImmediate.bind(v);if("function"==typeof v.postMessage&&!v.importScripts){let e=[];v.addEventListener("message",(t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let n=0,i=e.length;n{const i=++t;e.push({id:i,callback:n}),v.postMessage({vscodeSetImmediateId:i},"*")}}if("function"==typeof(null==y?void 0:y.nextTick))return y.nextTick.bind(y);const e=Promise.resolve();return t=>e.then(t)}(),L=c||f?2:l?1:3;let A=!0,T=!1;function D(){if(!T){T=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);A=513===t[0]}return A}},95830:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var i=n(23345);const r=i.li.performance&&"function"==typeof i.li.performance.now;class o{constructor(e){this._highResolution=r&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new o(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?i.li.performance.now():Date.now()}}},82983:function(e,t,n){"use strict";function i(e){return!e||"string"!=typeof e||0===e.trim().length}n.d(t,{$i:function(){return H},C8:function(){return V},GF:function(){return p},HO:function(){return R},IO:function(){return f},K7:function(){return U},Kw:function(){return Y},LC:function(){return v},Mh:function(){return M},P1:function(){return L},PJ:function(){return X},Qe:function(){return Z},R1:function(){return d},RP:function(){return j},S6:function(){return Q},TT:function(){return x},Ut:function(){return F},V8:function(){return y},WU:function(){return o},YK:function(){return T},YU:function(){return a},ZG:function(){return A},ZH:function(){return N},ab:function(){return K},c1:function(){return W},df:function(){return C},ec:function(){return s},fi:function(){return J},fy:function(){return l},j3:function(){return c},j_:function(){return k},m5:function(){return i},mK:function(){return _},mr:function(){return g},oH:function(){return te},oL:function(){return u},ok:function(){return E},ow:function(){return b},qq:function(){return P},qu:function(){return w},rL:function(){return D},uS:function(){return q},un:function(){return h},uq:function(){return m},vH:function(){return B},xe:function(){return G},zY:function(){return S}});const r=/{(\d+)}/g;function o(e,...t){return 0===t.length?e:e.replace(r,(function(e,n){const i=parseInt(n,10);return isNaN(i)||i<0||i>=t.length?e:t[i]}))}function a(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function s(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t=" "){return u(c(e,t),t)}function c(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;for(;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function u(e,t){if(!e||!t)return e;const n=t.length,i=e.length;if(0===n||0===i)return e;let r=i,o=-1;for(;o=e.lastIndexOf(t,r-1),-1!==o&&o+n===r;){if(0===o)return"";r=o}return e.substring(0,r)}function h(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function d(e){return e.replace(/\*/g,"")}function p(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=s(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function f(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function g(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function m(e){return e.split(/\r\n|\r|\n/)}function v(e){for(let t=0,n=e.length;t=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function w(e,t){return et?1:0}function x(e,t,n=0,i=e.length,r=0,o=t.length){for(;no)return 1}const a=i-n,s=o-r;return as?1:0}function S(e,t){return k(e,t,0,e.length,0,t.length)}function k(e,t,n=0,i=e.length,r=0,o=t.length){for(;n=128||s>=128)return x(e.toLowerCase(),t.toLowerCase(),n,i,r,o);_(a)&&(a-=32),_(s)&&(s-=32);const l=a-s;if(0!==l)return l}const a=i-n,s=o-r;return as?1:0}function _(e){return e>=97&&e<=122}function C(e){return e>=65&&e<=90}function P(e,t){return e.length===t.length&&0===k(e,t)}function E(e,t){const n=t.length;return!(t.length>e.length)&&0===k(e,t,0,n)}function M(e,t){let n,i=Math.min(e.length,t.length);for(n=0;n1){const i=e.charCodeAt(t-2);if(A(i))return D(i,n)}return n}function B(e,t){const n=ee.getInstance(),i=t,r=e.length,o=N(e,r,t);t+=o>=65536?2:1;let a=n.getGraphemeBreakType(o);for(;t=65536?2:1,a=o}return t-i}function R(e,t){const n=ee.getInstance(),i=t,r=I(e,t);t-=r>=65536?2:1;let o=n.getGraphemeBreakType(r);for(;t>0;){const i=I(e,t),r=n.getGraphemeBreakType(i);if(J(r,o))break;t-=i>=65536?2:1,o=r}return i-t}const O=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function F(e){return O.test(e)}const z=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function j(e){return z.test(e)}const $=/^[\t\n\r\x20-\x7E]*$/;function H(e){return $.test(e)}const Z=/[\u2028\u2029]/;function K(e){return Z.test(e)}function G(e){for(let t=0,n=e.length;t=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function V(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129003||e>=129280&&e<=129535||e>=129648&&e<=129750}const W=String.fromCharCode(65279);function q(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function Y(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function X(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function Q(e){return ee.getInstance().getGraphemeBreakType(e)}function J(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class ee{constructor(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}static getInstance(){return ee._INSTANCE||(ee._INSTANCE=new ee),ee._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(et[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}function te(e,t){if(0===e)return 0;const n=function(e,t){let n=I(t,e);e-=ne(n);for(;ie(n)||65039===n||8419===n;){if(0===e)return;n=I(t,e),e-=ne(n)}if(!V(n))return;if(e>=0){const n=I(t,e);8205===n&&(e-=ne(n))}return e}(e,t);if(void 0!==n)return n;return e-=ne(I(t,e))}function ne(e){return e>=65536?2:1}function ie(e){return 127995<=e&&e<=127999}ee._INSTANCE=null},72999:function(e,t,n){"use strict";function i(e){return Array.isArray(e)}function r(e){return"string"==typeof e}function o(e){return!("object"!=typeof e||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function a(e){return"number"==typeof e&&!isNaN(e)}function s(e){return!0===e||!1===e}function l(e){return void 0===e}function c(e){return!u(e)}function u(e){return l(e)||null===e}function h(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function d(e){if(u(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"==typeof e}function f(e,t){const n=Math.min(e.length,t.length);for(let i=0;ifunction(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)};let i={};for(const t of e)i[t]=n(t);return i}function y(e){return null===e?void 0:e}function b(e,t="Unreachable"){throw new Error(t)}n.d(t,{$E:function(){return m},$K:function(){return c},D8:function(){return f},HD:function(){return r},IU:function(){return v},Jp:function(){return u},Kn:function(){return o},cW:function(){return d},f6:function(){return y},hj:function(){return a},jn:function(){return s},kJ:function(){return i},mf:function(){return p},o8:function(){return l},p_:function(){return h},vE:function(){return b}})},13268:function(e,t,n){"use strict";function i(e,t,...n){return function(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){const i=n[0];return void 0!==t[i]?t[i]:e})),n}(t,n)}n.d(t,{N:function(){return i}})},96236:function(e,t,n){"use strict";n.d(t,{BH:function(){return y},NZ:function(){return b},U8:function(){return w},co:function(){return v},eH:function(){return m},vr:function(){return g}});var i=n(75918),r=n(52615),o=n(4348),a=n(88226),s=n(69323),l=n(34502),c=n(35884),u=n(90689),h=n(16925),d=n(49055),p=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},f=function(e,t){return function(n,i){t(n,i,e)}};function g(e){return void 0!==e.command}class m{constructor(e){this.id=m._idPool++,this._debugName=e}}m._idPool=0,m.CommandPalette=new m("CommandPalette"),m.EditorContext=new m("EditorContext"),m.SimpleEditorContext=new m("SimpleEditorContext"),m.EditorContextCopy=new m("EditorContextCopy"),m.EditorContextPeek=new m("EditorContextPeek"),m.MenubarEditMenu=new m("MenubarEditMenu"),m.MenubarCopy=new m("MenubarCopy"),m.MenubarGoMenu=new m("MenubarGoMenu"),m.MenubarSelectionMenu=new m("MenubarSelectionMenu"),m.InlineCompletionsActions=new m("InlineCompletionsActions");const v=(0,h.yh)("menuService"),y=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new o.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:e=>e===m.CommandPalette}}addCommand(e){return this.addCommands(a.$.single(e))}addCommands(e){for(const t of e)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,s.OF)((()=>{let t=!1;for(const n of e)t=this._commands.delete(n.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)}))}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach(((t,n)=>e.set(n,t))),e}appendMenuItem(e,t){return this.appendMenuItems(a.$.single({id:e,item:t}))}appendMenuItems(e){const t=new Set,n=new l.S;for(const{id:i,item:r}of e){let e=this._menuItems.get(i);e||(e=new l.S,this._menuItems.set(i,e)),n.push(e.push(r)),t.add(i)}return this._onDidChangeMenu.fire(t),(0,s.OF)((()=>{if(n.size>0){for(let e of n)e();this._onDidChangeMenu.fire(t),n.clear()}}))}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===m.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const n of e)g(n)&&(t.add(n.command.id),n.alt&&t.add(n.alt.id));this._commands.forEach(((n,i)=>{t.has(i)||e.push({command:n})}))}};class b extends i.wY{constructor(e,t,n,i){super(`submenuitem.${e.submenu.id}`,"string"==typeof e.title?e.title:e.title.value,[],"submenu"),this.item=e,this._menuService=t,this._contextKeyService=n,this._options=i}get actions(){const e=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),n=t.getActions(this._options);t.dispose();for(const[,t]of n)t.length>0&&(e.push(...t),e.push(new i.Z0));return e.length&&e.pop(),e}}let w=class e{constructor(t,n,i,o,a){var s,l;if(this._commandService=a,this.id=t.id,this.label=(null==i?void 0:i.renderShortTitle)&&t.shortTitle?"string"==typeof t.shortTitle?t.shortTitle:t.shortTitle.value:"string"==typeof t.title?t.title:t.title.value,this.tooltip=null!==(l="string"==typeof t.tooltip?t.tooltip:null===(s=t.tooltip)||void 0===s?void 0:s.value)&&void 0!==l?l:"",this.enabled=!t.precondition||o.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){const e=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=o.contextMatchesRules(e.condition),this.checked&&e.tooltip&&(this.tooltip="string"==typeof e.tooltip?e.tooltip:e.tooltip.value),e.title&&(this.label="string"==typeof e.title?e.title:e.title.value)}this.item=t,this.alt=n?new e(n,void 0,i,o,a):void 0,this._options=i,d.kS.isThemeIcon(t.icon)&&(this.class=r.dT.asClassName(t.icon))}dispose(){}run(...e){var t,n;let i=[];return(null===(t=this._options)||void 0===t?void 0:t.arg)&&(i=[...i,this._options.arg]),(null===(n=this._options)||void 0===n?void 0:n.shouldForwardArgs)&&(i=[...i,...e]),this._commandService.executeCommand(this.id,...i)}};w=p([f(3,u.i6),f(4,c.H)],w)},35884:function(e,t,n){"use strict";n.d(t,{H:function(){return l},P:function(){return c}});var i=n(4348),r=n(88226),o=n(69323),a=n(34502),s=n(72999);const l=(0,n(16925).yh)("commandService"),c=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new i.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"==typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){const t=[];for(let n of e.description.args)t.push(n.constraint);const n=e.handler;e.handler=function(e,...i){return(0,s.D8)(i,t),n(e,...i)}}const{id:n}=e;let i=this._commands.get(n);i||(i=new a.S,this._commands.set(n,i));let r=i.unshift(e),l=(0,o.OF)((()=>{r();const e=this._commands.get(n);(null==e?void 0:e.isEmpty())&&this._commands.delete(n)}));return this._onDidRegisterCommand.fire(n),l}registerCommandAlias(e,t){return c.registerCommand(e,((e,...n)=>e.get(l).executeCommand(t,...n)))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return r.$.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const n=this.getCommand(t);n&&e.set(t,n)}return e}};c.registerCommand("noop",(()=>{}))},90689:function(e,t,n){"use strict";n.d(t,{Ao:function(){return c},Eq:function(){return D},Fb:function(){return u},K8:function(){return B},i6:function(){return T},uy:function(){return A}});var i=n(23345),r=n(82983),o=n(16925);let a=i.WE||"";const s=new Map;s.set("false",!1),s.set("true",!0),s.set("isMac",i.dz),s.set("isLinux",i.IJ),s.set("isWindows",i.ED),s.set("isWeb",i.$L),s.set("isMacNative",i.dz&&!i.$L),s.set("isEdge",a.indexOf("Edg/")>=0),s.set("isFirefox",a.indexOf("Firefox")>=0),s.set("isChrome",a.indexOf("Chrome")>=0),s.set("isSafari",a.indexOf("Safari")>=0);const l=Object.prototype.hasOwnProperty;class c{static has(e){return f.create(e)}static equals(e,t){return g.create(e,t)}static regex(e,t){return C.create(e,t)}static not(e){return b.create(e)}static and(...e){return M.create(e,null)}static or(...e){return L.create(e,null,!0)}static deserialize(e,t=!1){if(e)return this._deserializeOrExpression(e,t)}static _deserializeOrExpression(e,t){let n=e.split("||");return L.create(n.map((e=>this._deserializeAndExpression(e,t))),null,!0)}static _deserializeAndExpression(e,t){let n=e.split("&&");return M.create(n.map((e=>this._deserializeOne(e,t))),null)}static _deserializeOne(e,t){if((e=e.trim()).indexOf("!=")>=0){let n=e.split("!=");return y.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("==")>=0){let n=e.split("==");return g.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("=~")>=0){let n=e.split("=~");return C.create(n[0].trim(),this._deserializeRegexValue(n[1],t))}if(e.indexOf(" in ")>=0){let t=e.split(" in ");return m.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(e)){const t=e.split(">=");return S.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(e)){const t=e.split(">");return x.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(e)){const t=e.split("<=");return _.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(e)){const t=e.split("<");return k.create(t[0].trim(),t[1].trim())}return/^\!\s*/.test(e)?b.create(e.substr(1).trim()):f.create(e)}static _deserializeValue(e,t){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;let n=/^'([^']*)'$/.exec(e);return n?n[1].trim():e}static _deserializeRegexValue(e,t){if((0,r.m5)(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let n=e.indexOf("/"),i=e.lastIndexOf("/");if(n===i||n<0){if(t)throw new Error(`bad regexp-value '${e}', missing /-enclosure`);return console.warn(`bad regexp-value '${e}', missing /-enclosure`),null}let o=e.slice(n+1,i),a="i"===e[i+1]?"i":"";try{return new RegExp(o,a)}catch(n){if(t)throw new Error(`bad regexp-value '${e}', parse error: ${n}`);return console.warn(`bad regexp-value '${e}', parse error: ${n}`),null}}}function u(e,t){const n=e?e.substituteConstants():void 0,i=t?t.substituteConstants():void 0;return!n&&!i||!(!n||!i)&&n.equals(i)}function h(e,t){return e.cmp(t)}class d{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return p.INSTANCE}}d.INSTANCE=new d;class p{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return d.INSTANCE}}p.INSTANCE=new p;class f{constructor(e,t){this.key=e,this.negated=t,this.type=2}static create(e,t=null){const n=s.get(e);return"boolean"==typeof n?n?p.INSTANCE:d.INSTANCE:new f(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:N(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=s.get(this.key);return"boolean"==typeof e?e?p.INSTANCE:d.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this)),this.negated}}class g{constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}static create(e,t,n=null){if("boolean"==typeof t)return t?f.create(e,n):b.create(e,n);const i=s.get(e);if("boolean"==typeof i){return t===(i?"true":"false")?p.INSTANCE:d.INSTANCE}return new g(e,t,n)}cmp(e){return e.type!==this.type?this.type-e.type:I(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=s.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?p.INSTANCE:d.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=y.create(this.key,this.value,this)),this.negated}}class m{constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}static create(e,t){return new m(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:I(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.indexOf(n)>=0:"string"==typeof n&&"object"==typeof t&&null!==t&&l.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=v.create(this)),this.negated}}class v{constructor(e){this._actual=e,this.type=11}static create(e){return new v(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class y{constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}static create(e,t,n=null){if("boolean"==typeof t)return t?b.create(e,n):f.create(e,n);const i=s.get(e);if("boolean"==typeof i){return t===(i?"true":"false")?d.INSTANCE:p.INSTANCE}return new y(e,t,n)}cmp(e){return e.type!==this.type?this.type-e.type:I(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=s.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?d.INSTANCE:p.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=g.create(this.key,this.value,this)),this.negated}}class b{constructor(e,t){this.key=e,this.negated=t,this.type=3}static create(e,t=null){const n=s.get(e);return"boolean"==typeof n?n?d.INSTANCE:p.INSTANCE:new b(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:N(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=s.get(this.key);return"boolean"==typeof e?e?d.INSTANCE:p.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=f.create(this.key,this)),this.negated}}function w(e,t){if("string"==typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"==typeof e||"number"==typeof e?t(e):d.INSTANCE}class x{constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}static create(e,t,n=null){return w(t,(t=>new x(e,t,n)))}cmp(e){return e.type!==this.type?this.type-e.type:I(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=_.create(this.key,this.value,this)),this.negated}}class S{constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}static create(e,t,n=null){return w(t,(t=>new S(e,t,n)))}cmp(e){return e.type!==this.type?this.type-e.type:I(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this.value,this)),this.negated}}class k{constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}static create(e,t,n=null){return w(t,(t=>new k(e,t,n)))}cmp(e){return e.type!==this.type?this.type-e.type:I(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))new _(e,t,n)))}cmp(e){return e.type!==this.type?this.type-e.type:I(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this.key,this.value,this)),this.negated}}class C{constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}static create(e,t){return new C(e,t)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return tn?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this)),this.negated}}class P{constructor(e){this._actual=e,this.type=8}static create(e){return new P(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function E(e){let t=null;for(let n=0,i=e.length;ne.expr.length)return 1;for(let t=0,n=this.expr.length;t1;){const e=n[n.length-1];if(9!==e.type)break;n.pop();const t=n.pop(),i=0===n.length,r=L.create(e.expr.map((e=>M.create([e,t],null))),null,i);r&&(n.push(r),n.sort(h))}return 1===n.length?n[0]:new M(n,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(let t of this.expr)e.push(t.negate());this.negated=L.create(e,this,!0)}return this.negated}}class L{constructor(e,t){this.expr=e,this.negated=t,this.type=9}static create(e,t,n){return L._normalizeArr(e,t,n)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,n=this.expr.length;te.serialize())).join(" || ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),i=[];for(const e of R(t))for(const t of R(n))i.push(M.create([e,t],null));const r=0===e.length;e.unshift(L.create(i,null,r))}this.negated=e[0]}return this.negated}}class A extends f{constructor(e,t,n){super(e,null),this._defaultValue=t,"object"==typeof n?A._info.push(Object.assign(Object.assign({},n),{key:e})):!0!==n&&A._info.push({key:e,description:n,type:null!=t?typeof t:void 0})}static all(){return A._info.values()}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return g.create(this.key,e)}}A._info=[];const T=(0,o.yh)("contextKeyService"),D="setContext";function N(e,t){return et?1:0}function I(e,t,n,i){return en?1:ti?1:0}function B(e,t){if(6===t.type&&9!==e.type&&6!==e.type)for(const n of t.expr)if(e.equals(n))return!0;const n=R(e.negate()).concat(R(t));n.sort(h);for(let e=0;ee,i.serviceIds.set(e,t),t}function s(e){return function(t,n,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");o(e,t,i,!0)}}},44650:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var i=n(76068),r=n(72999);const o=new class{constructor(){this.data=new Map}add(e,t){i.ok(r.HD(e)),i.ok(r.Kn(t)),i.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},66213:function(e,t,n){"use strict";var i;n.d(t,{e:function(){return i}}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST="hc"}(i||(i={}))},49055:function(e,t,n){"use strict";n.d(t,{EN:function(){return d},IP:function(){return f},Ic:function(){return m},XE:function(){return c},bB:function(){return v},kS:function(){return h},m6:function(){return p}});var i=n(52615),r=n(4348),o=n(69323),a=n(16925),s=n(44650),l=n(66213);const c=(0,a.yh)("themeService");var u,h;function d(e){return{id:e}}function p(e){switch(e){case l.e.DARK:return"vs-dark";case l.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}!function(e){e.isThemeColor=function(e){return e&&"object"==typeof e&&"string"==typeof e.id}}(u||(u={})),function(e){e.isThemeIcon=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&(void 0===e.color||u.isThemeColor(e.color))};const t=new RegExp(`^\\$\\((${i.dT.iconNameExpression}(?:${i.dT.iconModifierExpression})?)\\)$`);e.fromString=function(e){const n=t.exec(e);if(!n)return;let[,i]=n;return{id:i}},e.modify=function(e,t){let n=e.id;const i=n.lastIndexOf("~");return-1!==i&&(n=n.substring(0,i)),t&&(n=`${n}~${t}`),{id:n}},e.isEqual=function(e,t){var n,i;return e.id===t.id&&(null===(n=e.color)||void 0===n?void 0:n.id)===(null===(i=t.color)||void 0===i?void 0:i.id)},e.asThemeIcon=function(e,t){return{id:e.id,color:t?d(t):void 0}},e.asClassNameArray=i.dT.asClassNameArray,e.asClassName=i.dT.asClassName,e.asCSSSelector=i.dT.asCSSSelector}(h||(h={}));const f={ThemingContribution:"base.contributions.theming"};let g=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.Q5}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,o.OF)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function m(e){return g.onColorThemeChange(e)}s.B.add(f.ThemingContribution,g);class v extends o.JT{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},16632:function(e,t,n){"use strict";var i=n(14809),r=n(20439),o=n(4635),a=n(50298),s=n(62646),l=n(92310),c=n.n(l),u=n(18929),h=n(59301),d=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],p=(0,h.forwardRef)((function(e,t){var n=e.prefixCls,l=void 0===n?"rc-checkbox":n,p=e.className,f=e.style,g=e.checked,m=e.disabled,v=e.defaultChecked,y=void 0!==v&&v,b=e.type,w=void 0===b?"checkbox":b,x=e.title,S=e.onChange,k=(0,s.Z)(e,d),_=(0,h.useRef)(null),C=(0,h.useRef)(null),P=(0,u.Z)(y,{value:g}),E=(0,a.Z)(P,2),M=E[0],L=E[1];(0,h.useImperativeHandle)(t,(function(){return{focus:function(e){var t;null===(t=_.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=_.current)||void 0===e||e.blur()},input:_.current,nativeElement:C.current}}));var A=c()(l,p,(0,o.Z)((0,o.Z)({},"".concat(l,"-checked"),M),"".concat(l,"-disabled"),m));return h.createElement("span",{className:A,title:x,style:f,ref:C},h.createElement("input",(0,i.Z)({},k,{className:"".concat(l,"-input"),ref:_,onChange:function(t){m||("checked"in e||L(t.target.checked),null==S||S({target:(0,r.Z)((0,r.Z)({},e),{},{type:w,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:m,checked:!!M,type:w})),h.createElement("span",{className:"".concat(l,"-inner")}))}));t.Z=p},96478:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var i=n(14809),r=n(4635),o=n(50298),a=n(62646),s=n(65352),l=n(92310),c=n.n(l),u=n(8654),h=n(59301),d=n(10228),p=n(16089),f=d.Z.ESC,g=d.Z.TAB;var m=(0,h.forwardRef)((function(e,t){var n=e.overlay,i=e.arrow,r=e.prefixCls,o=(0,h.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=(0,u.sQ)(t,(0,u.C4)(o));return h.createElement(h.Fragment,null,i&&h.createElement("div",{className:"".concat(r,"-arrow")}),h.cloneElement(o,{ref:(0,u.Yr)(o)?a:void 0}))})),v={adjustX:1,adjustY:1},y=[0,0],b={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:y},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:y},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:y},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:y},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:y},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:y}},w=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function x(e,t){var n,l=e.arrow,d=void 0!==l&&l,v=e.prefixCls,y=void 0===v?"rc-dropdown":v,x=e.transitionName,S=e.animation,k=e.align,_=e.placement,C=void 0===_?"bottomLeft":_,P=e.placements,E=void 0===P?b:P,M=e.getPopupContainer,L=e.showAction,A=e.hideAction,T=e.overlayClassName,D=e.overlayStyle,N=e.visible,I=e.trigger,B=void 0===I?["hover"]:I,R=e.autoFocus,O=e.overlay,F=e.children,z=e.onVisibleChange,j=(0,a.Z)(e,w),$=h.useState(),H=(0,o.Z)($,2),Z=H[0],K=H[1],G="visible"in e?N:Z,U=h.useRef(null),V=h.useRef(null),W=h.useRef(null);h.useImperativeHandle(t,(function(){return U.current}));var q=function(e){K(e),null==z||z(e)};!function(e){var t=e.visible,n=e.triggerRef,i=e.onVisibleChange,r=e.autoFocus,o=e.overlayRef,a=h.useRef(!1),s=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==i||i(!1))},l=function(){var e;return!(null===(e=o.current)||void 0===e||!e.focus||(o.current.focus(),a.current=!0,0))},c=function(e){switch(e.keyCode){case f:s();break;case g:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};h.useEffect((function(){return t?(window.addEventListener("keydown",c),r&&(0,p.Z)(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:G,triggerRef:W,onVisibleChange:q,autoFocus:R,overlayRef:V});var Y,X,Q,J=function(){return h.createElement(m,{ref:V,overlay:O,prefixCls:y,arrow:d})},ee=h.cloneElement(F,{className:c()(null===(n=F.props)||void 0===n?void 0:n.className,G&&(Y=e.openClassName,void 0!==Y?Y:"".concat(y,"-open"))),ref:(0,u.Yr)(F)?(0,u.sQ)(W,(0,u.C4)(F)):void 0}),te=A;return te||-1===B.indexOf("contextMenu")||(te=["click"]),h.createElement(s.Z,(0,i.Z)({builtinPlacements:E},j,{prefixCls:y,ref:U,popupClassName:c()(T,(0,r.Z)({},"".concat(y,"-show-arrow"),d)),popupStyle:D,action:B,showAction:L,hideAction:te,popupPlacement:C,popupAlign:k,popupTransitionName:x,popupAnimation:S,popupVisible:G,stretch:(X=e.minOverlayWidthMatchTrigger,Q=e.alignPoint,("minOverlayWidthMatchTrigger"in e?X:!Q)?"minWidth":""),popup:"function"==typeof O?J:J(),onPopupVisibleChange:q,onPopupClick:function(t){var n=e.onOverlayClick;K(!1),n&&n(t)},getPopupContainer:M}),ee)}var S=h.forwardRef(x)},66003:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(62646),r=n(20439),o=n(93664),a=n(59301),s=["show"];function l(e,t){return a.useMemo((function(){var n={};t&&(n.show="object"===(0,o.Z)(t)&&t.formatter?t.formatter:!!t);var a=n=(0,r.Z)((0,r.Z)({},n),e),l=a.show,c=(0,i.Z)(a,s);return(0,r.Z)((0,r.Z)({},c),{},{show:!!l,showFormatter:"function"==typeof l?l:void 0,strategy:c.strategy||function(e){return e.length}})}),[e,t])}},36901:function(e,t,n){"use strict";n.d(t,{Q:function(){return h},Z:function(){return b}});var i=n(20439),r=n(14809),o=n(4635),a=n(93664),s=n(92310),l=n.n(s),c=n(59301),u=n(30292),h=c.forwardRef((function(e,t){var n,s,h,d=e.inputElement,p=e.children,f=e.prefixCls,g=e.prefix,m=e.suffix,v=e.addonBefore,y=e.addonAfter,b=e.className,w=e.style,x=e.disabled,S=e.readOnly,k=e.focused,_=e.triggerFocus,C=e.allowClear,P=e.value,E=e.handleReset,M=e.hidden,L=e.classes,A=e.classNames,T=e.dataAttrs,D=e.styles,N=e.components,I=e.onClear,B=null!=p?p:d,R=(null==N?void 0:N.affixWrapper)||"span",O=(null==N?void 0:N.groupWrapper)||"span",F=(null==N?void 0:N.wrapper)||"span",z=(null==N?void 0:N.groupAddon)||"span",j=(0,c.useRef)(null),$=(0,u.X3)(e),H=(0,c.cloneElement)(B,{value:P,className:l()(null===(n=B.props)||void 0===n?void 0:n.className,!$&&(null==A?void 0:A.variant))||null}),Z=(0,c.useRef)(null);if(c.useImperativeHandle(t,(function(){return{nativeElement:Z.current||j.current}})),$){var K=null;if(C){var G=!x&&!S&&P,U="".concat(f,"-clear-icon"),V="object"===(0,a.Z)(C)&&null!=C&&C.clearIcon?C.clearIcon:"✖";K=c.createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null==E||E(e),null==I||I()},onMouseDown:function(e){return e.preventDefault()},className:l()(U,(0,o.Z)((0,o.Z)({},"".concat(U,"-hidden"),!G),"".concat(U,"-has-suffix"),!!m))},V)}var W="".concat(f,"-affix-wrapper"),q=l()(W,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(f,"-disabled"),x),"".concat(W,"-disabled"),x),"".concat(W,"-focused"),k),"".concat(W,"-readonly"),S),"".concat(W,"-input-with-clear-btn"),m&&C&&P),null==L?void 0:L.affixWrapper,null==A?void 0:A.affixWrapper,null==A?void 0:A.variant),Y=(m||C)&&c.createElement("span",{className:l()("".concat(f,"-suffix"),null==A?void 0:A.suffix),style:null==D?void 0:D.suffix},K,m);H=c.createElement(R,(0,r.Z)({className:q,style:null==D?void 0:D.affixWrapper,onClick:function(e){var t;null!==(t=j.current)&&void 0!==t&&t.contains(e.target)&&(null==_||_())}},null==T?void 0:T.affixWrapper,{ref:j}),g&&c.createElement("span",{className:l()("".concat(f,"-prefix"),null==A?void 0:A.prefix),style:null==D?void 0:D.prefix},g),H,Y)}if((0,u.He)(e)){var X="".concat(f,"-group"),Q="".concat(X,"-addon"),J="".concat(X,"-wrapper"),ee=l()("".concat(f,"-wrapper"),X,null==L?void 0:L.wrapper,null==A?void 0:A.wrapper),te=l()(J,(0,o.Z)({},"".concat(J,"-disabled"),x),null==L?void 0:L.group,null==A?void 0:A.groupWrapper);H=c.createElement(O,{className:te,ref:Z},c.createElement(F,{className:ee},v&&c.createElement(z,{className:Q},v),H,y&&c.createElement(z,{className:Q},y)))}return c.cloneElement(H,{className:l()(null===(s=H.props)||void 0===s?void 0:s.className,b)||null,style:(0,i.Z)((0,i.Z)({},null===(h=H.props)||void 0===h?void 0:h.style),w),hidden:M})})),d=n(95190),p=n(50298),f=n(62646),g=n(18929),m=n(2738),v=n(66003),y=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],b=(0,c.forwardRef)((function(e,t){var n=e.autoComplete,a=e.onChange,s=e.onFocus,b=e.onBlur,w=e.onPressEnter,x=e.onKeyDown,S=e.onKeyUp,k=e.prefixCls,_=void 0===k?"rc-input":k,C=e.disabled,P=e.htmlSize,E=e.className,M=e.maxLength,L=e.suffix,A=e.showCount,T=e.count,D=e.type,N=void 0===D?"text":D,I=e.classes,B=e.classNames,R=e.styles,O=e.onCompositionStart,F=e.onCompositionEnd,z=(0,f.Z)(e,y),j=(0,c.useState)(!1),$=(0,p.Z)(j,2),H=$[0],Z=$[1],K=(0,c.useRef)(!1),G=(0,c.useRef)(!1),U=(0,c.useRef)(null),V=(0,c.useRef)(null),W=function(e){U.current&&(0,u.nH)(U.current,e)},q=(0,g.Z)(e.defaultValue,{value:e.value}),Y=(0,p.Z)(q,2),X=Y[0],Q=Y[1],J=null==X?"":String(X),ee=(0,c.useState)(null),te=(0,p.Z)(ee,2),ne=te[0],ie=te[1],re=(0,v.Z)(T,A),oe=re.max||M,ae=re.strategy(J),se=!!oe&&ae>oe;(0,c.useImperativeHandle)(t,(function(){var e;return{focus:W,blur:function(){var e;null===(e=U.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var i;null===(i=U.current)||void 0===i||i.setSelectionRange(e,t,n)},select:function(){var e;null===(e=U.current)||void 0===e||e.select()},input:U.current,nativeElement:(null===(e=V.current)||void 0===e?void 0:e.nativeElement)||U.current}})),(0,c.useEffect)((function(){G.current&&(G.current=!1),Z((function(e){return(!e||!C)&&e}))}),[C]);var le=function(e,t,n){var i,r,o=t;if(!K.current&&re.exceedFormatter&&re.max&&re.strategy(t)>re.max)t!==(o=re.exceedFormatter(t,{max:re.max}))&&ie([(null===(i=U.current)||void 0===i?void 0:i.selectionStart)||0,(null===(r=U.current)||void 0===r?void 0:r.selectionEnd)||0]);else if("compositionEnd"===n.source)return;Q(o),U.current&&(0,u.rJ)(U.current,e,a,o)};(0,c.useEffect)((function(){var e;ne&&(null===(e=U.current)||void 0===e||e.setSelectionRange.apply(e,(0,d.Z)(ne)))}),[ne]);var ce,ue=function(e){le(e,e.target.value,{source:"change"})},he=function(e){K.current=!1,le(e,e.currentTarget.value,{source:"compositionEnd"}),null==F||F(e)},de=function(e){w&&"Enter"===e.key&&!G.current&&(G.current=!0,w(e)),null==x||x(e)},pe=function(e){"Enter"===e.key&&(G.current=!1),null==S||S(e)},fe=function(e){Z(!0),null==s||s(e)},ge=function(e){G.current&&(G.current=!1),Z(!1),null==b||b(e)},me=se&&"".concat(_,"-out-of-range");return c.createElement(h,(0,r.Z)({},z,{prefixCls:_,className:l()(E,me),handleReset:function(e){Q(""),W(),U.current&&(0,u.rJ)(U.current,e,a)},value:J,focused:H,triggerFocus:W,suffix:function(){var e=Number(oe)>0;if(L||re.show){var t=re.showFormatter?re.showFormatter({value:J,count:ae,maxLength:oe}):"".concat(ae).concat(e?" / ".concat(oe):"");return c.createElement(c.Fragment,null,re.show&&c.createElement("span",{className:l()("".concat(_,"-show-count-suffix"),(0,o.Z)({},"".concat(_,"-show-count-has-suffix"),!!L),null==B?void 0:B.count),style:(0,i.Z)({},null==R?void 0:R.count)},t),L)}return null}(),disabled:C,classes:I,classNames:B,styles:R}),(ce=(0,m.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),c.createElement("input",(0,r.Z)({autoComplete:n},ce,{onChange:ue,onFocus:fe,onBlur:ge,onKeyDown:de,onKeyUp:pe,className:l()(_,(0,o.Z)({},"".concat(_,"-disabled"),C),null==B?void 0:B.input),style:null==R?void 0:R.input,ref:U,size:P,type:N,onCompositionStart:function(e){K.current=!0,null==O||O(e)},onCompositionEnd:he}))))}))},30292:function(e,t,n){"use strict";function i(e){return!(!e.addonBefore&&!e.addonAfter)}function r(e){return!!(e.prefix||e.suffix||e.allowClear)}function o(e,t,n){var i=t.cloneNode(!0),r=Object.create(e,{target:{value:i},currentTarget:{value:i}});return i.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(i.selectionStart=t.selectionStart,i.selectionEnd=t.selectionEnd),i.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},r}function a(e,t,n,i){if(n){var r=t;"click"!==t.type?"file"===e.type||void 0===i?n(r):n(r=o(t,e,i)):n(r=o(t,e,""))}}function s(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var i=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}n.d(t,{He:function(){return i},X3:function(){return r},nH:function(){return s},rJ:function(){return a}})},28321:function(e,t,n){"use strict";n.d(t,{iz:function(){return je},ck:function(){return be},BW:function(){return Ze},sN:function(){return be},Wd:function(){return Fe},ZP:function(){return Xe},Xl:function(){return M}});var i=n(14809),r=n(4635),o=n(20439),a=n(95190),s=n(50298),l=n(62646),c=n(92310),u=n.n(c),h=n(11780),d=n(18929),p=n(13697),f=n(48736),g=n(59301),m=n(4676),v=g.createContext(null);function y(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function b(e){return y(g.useContext(v),e)}var w=n(80547),x=["children","locked"],S=g.createContext(null);function k(e){var t=e.children,n=e.locked,i=(0,l.Z)(e,x),r=g.useContext(S),a=(0,w.Z)((function(){return e=r,t=i,n=(0,o.Z)({},e),Object.keys(t).forEach((function(e){var i=t[e];void 0!==i&&(n[e]=i)})),n;var e,t,n}),[r,i],(function(e,t){return!(n||e[0]===t[0]&&(0,p.Z)(e[1],t[1],!0))}));return g.createElement(S.Provider,{value:a},t)}var _=[],C=g.createContext(null);function P(){return g.useContext(C)}var E=g.createContext(_);function M(e){var t=g.useContext(E);return g.useMemo((function(){return void 0!==e?[].concat((0,a.Z)(t),[e]):t}),[t,e])}var L=g.createContext(null),A=g.createContext({}),T=n(29194);function D(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,T.Z)(e)){var n=e.nodeName.toLowerCase(),i=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),o=Number(r),a=null;return r&&!Number.isNaN(o)?a=o:i&&null===a&&(a=0),i&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function N(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,a.Z)(e.querySelectorAll("*")).filter((function(e){return D(e,t)}));return D(e,t)&&n.unshift(e),n}var I=n(10228),B=n(16089),R=I.Z.LEFT,O=I.Z.RIGHT,F=I.Z.UP,z=I.Z.DOWN,j=I.Z.ENTER,$=I.Z.ESC,H=I.Z.HOME,Z=I.Z.END,K=[F,z,R,O];function G(e,t){return N(e,!0).filter((function(e){return t.has(e)}))}function U(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=G(e,t),o=r.length,a=r.findIndex((function(e){return n===e}));return i<0?-1===a?a=o-1:a-=1:i>0&&(a+=1),r[a=(a+o)%o]}var V=function(e,t){var n=new Set,i=new Map,r=new Map;return e.forEach((function(e){var o=document.querySelector("[data-menu-id='".concat(y(t,e),"']"));o&&(n.add(o),r.set(o,e),i.set(e,o))})),{elements:n,key2element:i,element2key:r}};function W(e,t,n,i,o,a,s,l,c,u){var h=g.useRef(),d=g.useRef();d.current=t;var p=function(){B.Z.cancel(h.current)};return g.useEffect((function(){return function(){p()}}),[]),function(f){var g=f.which;if([].concat(K,[j,$,H,Z]).includes(g)){var m=a(),v=V(m,i),y=v,b=y.elements,w=y.key2element,x=y.element2key,S=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(w.get(t),b),k=x.get(S),_=function(e,t,n,i){var o,a="prev",s="next",l="children",c="parent";if("inline"===e&&i===j)return{inlineTrigger:!0};var u=(0,r.Z)((0,r.Z)({},F,a),z,s),h=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},R,n?s:a),O,n?a:s),z,l),j,l),d=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},F,a),z,s),j,l),$,c),R,n?l:c),O,n?c:l);switch(null===(o={inline:u,horizontal:h,vertical:d,inlineSub:u,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[i]){case a:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===s(k,!0).length,n,g);if(!_&&g!==H&&g!==Z)return;(K.includes(g)||[H,Z].includes(g))&&f.preventDefault();var C=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var i=x.get(e);l(i),p(),h.current=(0,B.Z)((function(){d.current===i&&t.focus()}))}};if([H,Z].includes(g)||_.sibling||!S){var P,E,M=G(P=S&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(S):o.current,b);E=g===H?M[0]:g===Z?M[M.length-1]:U(P,b,S,_.offset),C(E)}else if(_.inlineTrigger)c(k);else if(_.offset>0)c(k,!0),p(),h.current=(0,B.Z)((function(){v=V(m,i);var e=S.getAttribute("aria-controls"),t=U(document.getElementById(e),v.elements);C(t)}),5);else if(_.offset<0){var L=s(k,!0),A=L[L.length-2],T=w.get(A);c(A,!1),C(T)}}null==u||u(f)}}var q="__RC_UTIL_PATH_SPLIT__",Y=function(e){return e.join(q)},X="rc-menu-more";function Q(){var e=g.useState({}),t=(0,s.Z)(e,2)[1],n=(0,g.useRef)(new Map),i=(0,g.useRef)(new Map),r=g.useState([]),o=(0,s.Z)(r,2),l=o[0],c=o[1],u=(0,g.useRef)(0),h=(0,g.useRef)(!1),d=(0,g.useCallback)((function(e,r){var o=Y(r);i.current.set(o,e),n.current.set(e,o),u.current+=1;var a,s=u.current;a=function(){s===u.current&&(h.current||t({}))},Promise.resolve().then(a)}),[]),p=(0,g.useCallback)((function(e,t){var r=Y(t);i.current.delete(r),n.current.delete(e)}),[]),f=(0,g.useCallback)((function(e){c(e)}),[]),m=(0,g.useCallback)((function(e,t){var i=n.current.get(e)||"",r=i.split(q);return t&&l.includes(r[0])&&r.unshift(X),r}),[l]),v=(0,g.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return m(e,!0).includes(t)}))}),[m]),y=(0,g.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(q),r=new Set;return(0,a.Z)(i.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(i.current.get(e))})),r}),[]);return g.useEffect((function(){return function(){h.current=!0}}),[]),{registerPath:d,unregisterPath:p,refreshOverflowKeys:f,isSubPathKey:v,getKeyPath:m,getKeys:function(){var e=(0,a.Z)(n.current.keys());return l.length&&e.push(X),e},getSubPathKeys:y}}function J(e){var t=g.useRef(e);t.current=e;var n=g.useCallback((function(){for(var e,n=arguments.length,i=new Array(n),r=0;r1&&(_.motionAppear=!1);var C=_.onVisibleChanged;return _.onVisibleChanged=function(e){return m.current||e||w(!0),null==C?void 0:C(e)},b?null:g.createElement(k,{mode:l,locked:!m.current},g.createElement(Ne.ZP,(0,i.Z)({visible:x},_,{forceRender:h,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),(function(e){var n=e.className,i=e.style;return g.createElement(ke,{id:t,className:n,style:i},a)})))}var Be=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Re=["active"],Oe=g.forwardRef((function(e,t){var n=e.style,a=e.className,c=e.title,d=e.eventKey,p=(e.warnKey,e.disabled),f=e.internalPopupClose,m=e.children,v=e.itemIcon,y=e.expandIcon,w=e.popupClassName,x=e.popupOffset,_=e.popupStyle,C=e.onClick,P=e.onMouseEnter,E=e.onMouseLeave,T=e.onTitleClick,D=e.onTitleMouseEnter,N=e.onTitleMouseLeave,I=(0,l.Z)(e,Be),B=b(d),R=g.useContext(S),O=R.prefixCls,F=R.mode,z=R.openKeys,j=R.disabled,$=R.overflowDisabled,H=R.activeKey,Z=R.selectedKeys,K=R.itemIcon,G=R.expandIcon,U=R.onItemClick,V=R.onOpenChange,W=R.onActive,q=g.useContext(A)._internalRenderSubMenuItem,Y=g.useContext(L).isSubPathKey,X=M(),Q="".concat(O,"-submenu"),ee=j||p,te=g.useRef(),ne=g.useRef();var ie=null!=v?v:K,re=null!=y?y:G,oe=z.includes(d),ae=!$&&oe,se=Y(Z,d),he=le(d,ee,D,N),pe=he.active,fe=(0,l.Z)(he,Re),ge=g.useState(!1),me=(0,s.Z)(ge,2),ve=me[0],ye=me[1],be=function(e){ee||ye(e)},we=g.useMemo((function(){return pe||"inline"!==F&&(ve||Y([H],d))}),[F,pe,H,ve,d,Y]),xe=ce(X.length),Se=J((function(e){null==C||C(de(e)),U(e)})),_e=B&&"".concat(B,"-popup"),Ce=g.useMemo((function(){return g.createElement(ue,{icon:"horizontal"!==F?re:void 0,props:(0,o.Z)((0,o.Z)({},e),{},{isOpen:ae,isSubMenu:!0})},g.createElement("i",{className:"".concat(Q,"-arrow")}))}),[F,re,e,ae,Q]),Pe=g.createElement("div",(0,i.Z)({role:"menuitem",style:xe,className:"".concat(Q,"-title"),tabIndex:ee?null:-1,ref:te,title:"string"==typeof c?c:null,"data-menu-id":$&&B?null:B,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":_e,"aria-disabled":ee,onClick:function(e){ee||(null==T||T({key:d,domEvent:e}),"inline"===F&&V(d,!oe))},onFocus:function(){W(d)}},fe),c,Ce),Ee=g.useRef(F);if("inline"!==F&&X.length>1?Ee.current="vertical":Ee.current=F,!$){var Me=Ee.current;Pe=g.createElement(De,{mode:Me,prefixCls:Q,visible:!f&&ae&&"inline"!==F,popupClassName:w,popupOffset:x,popupStyle:_,popup:g.createElement(k,{mode:"horizontal"===Me?"vertical":Me},g.createElement(ke,{id:_e,ref:ne},m)),disabled:ee,onVisibleChange:function(e){"inline"!==F&&V(d,e)}},Pe)}var Le=g.createElement(h.Z.Item,(0,i.Z)({ref:t,role:"none"},I,{component:"li",style:n,className:u()(Q,"".concat(Q,"-").concat(F),a,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(Q,"-open"),ae),"".concat(Q,"-active"),we),"".concat(Q,"-selected"),se),"".concat(Q,"-disabled"),ee)),onMouseEnter:function(e){be(!0),null==P||P({key:d,domEvent:e})},onMouseLeave:function(e){be(!1),null==E||E({key:d,domEvent:e})}}),Pe,!$&&g.createElement(Ie,{id:_e,open:ae,keyPath:X},m));return q&&(Le=q(Le,e,{selected:se,active:we,open:ae,disabled:ee})),g.createElement(k,{onItemClick:Se,mode:"horizontal"===F?"vertical":F,itemIcon:ie,expandIcon:re},Le)}));var Fe=g.forwardRef((function(e,t){var n,r=e.eventKey,o=e.children,a=M(r),s=Ce(o,a),l=P();return g.useEffect((function(){if(l)return l.registerPath(r,a),function(){l.unregisterPath(r,a)}}),[a]),n=l?s:g.createElement(Oe,(0,i.Z)({ref:t},e),s),g.createElement(E.Provider,{value:a},n)})),ze=n(93664);function je(e){var t=e.className,n=e.style,i=g.useContext(S).prefixCls;return P()?null:g.createElement("li",{role:"separator",className:u()("".concat(i,"-item-divider"),t),style:n})}var $e=["className","title","eventKey","children"],He=g.forwardRef((function(e,t){var n=e.className,r=e.title,o=(e.eventKey,e.children),a=(0,l.Z)(e,$e),s=g.useContext(S).prefixCls,c="".concat(s,"-item-group");return g.createElement("li",(0,i.Z)({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:u()(c,n)}),g.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof r?r:void 0},r),g.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}));var Ze=g.forwardRef((function(e,t){var n=e.eventKey,r=Ce(e.children,M(n));return P()?r:g.createElement(He,(0,i.Z)({ref:t},(0,ae.Z)(e,["warnKey"])),r)})),Ke=["label","children","key","type","extra"];function Ge(e,t,n){var r=t.item,o=t.group,a=t.submenu,s=t.divider;return(e||[]).map((function(e,c){if(e&&"object"===(0,ze.Z)(e)){var u=e,h=u.label,d=u.children,p=u.key,f=u.type,m=u.extra,v=(0,l.Z)(u,Ke),y=null!=p?p:"tmp-".concat(c);return d||"group"===f?"group"===f?g.createElement(o,(0,i.Z)({key:y},v,{title:h}),Ge(d,t,n)):g.createElement(a,(0,i.Z)({key:y},v,{title:h}),Ge(d,t,n)):"divider"===f?g.createElement(s,(0,i.Z)({key:y},v)):g.createElement(r,(0,i.Z)({key:y},v,{extra:m}),h,(!!m||0===m)&&g.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null})).filter((function(e){return e}))}function Ue(e,t,n,i,r){var a=e,s=(0,o.Z)({divider:je,item:be,group:Ze,submenu:Fe},i);return t&&(a=Ge(t,s,r)),Ce(a,n)}var Ve=["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"],We=[],qe=g.forwardRef((function(e,t){var n,c=e,f=c.prefixCls,y=void 0===f?"rc-menu":f,b=c.rootClassName,w=c.style,x=c.className,S=c.tabIndex,_=void 0===S?0:S,P=c.items,E=c.children,M=c.direction,T=c.id,D=c.mode,N=void 0===D?"vertical":D,I=c.inlineCollapsed,B=c.disabled,R=c.disabledOverflow,O=c.subMenuOpenDelay,F=void 0===O?.1:O,z=c.subMenuCloseDelay,j=void 0===z?.1:z,$=c.forceSubMenuRender,H=c.defaultOpenKeys,Z=c.openKeys,K=c.activeKey,U=c.defaultActiveFirst,q=c.selectable,Y=void 0===q||q,ne=c.multiple,ie=void 0!==ne&&ne,re=c.defaultSelectedKeys,oe=c.selectedKeys,ae=c.onSelect,se=c.onDeselect,le=c.inlineIndent,ce=void 0===le?24:le,ue=c.motion,he=c.defaultMotions,pe=c.triggerSubMenuAction,fe=void 0===pe?"hover":pe,ge=c.builtinPlacements,me=c.itemIcon,ve=c.expandIcon,ye=c.overflowedIndicator,we=void 0===ye?"...":ye,xe=c.overflowedIndicatorPopupClassName,Se=c.getPopupContainer,ke=c.onClick,_e=c.onOpenChange,Ce=c.onKeyDown,Pe=(c.openAnimation,c.openTransitionName,c._internalRenderMenuItem),Ee=c._internalRenderSubMenuItem,Me=c._internalComponents,Le=(0,l.Z)(c,Ve),Ae=g.useMemo((function(){return[Ue(E,P,We,Me,y),Ue(E,P,We,{},y)]}),[E,P,Me]),Te=(0,s.Z)(Ae,2),De=Te[0],Ne=Te[1],Ie=g.useState(!1),Be=(0,s.Z)(Ie,2),Re=Be[0],Oe=Be[1],ze=g.useRef(),je=function(e){var t=(0,d.Z)(e,{value:e}),n=(0,s.Z)(t,2),i=n[0],r=n[1];return g.useEffect((function(){te+=1;var e="".concat(ee,"-").concat(te);r("rc-menu-uuid-".concat(e))}),[]),i}(T),$e="rtl"===M;var He=(0,d.Z)(H,{value:Z,postState:function(e){return e||We}}),Ze=(0,s.Z)(He,2),Ke=Ze[0],Ge=Ze[1],qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){Ge(e),null==_e||_e(e)}t?(0,m.flushSync)(n):n()},Ye=g.useState(Ke),Xe=(0,s.Z)(Ye,2),Qe=Xe[0],Je=Xe[1],et=g.useRef(!1),tt=g.useMemo((function(){return"inline"!==N&&"vertical"!==N||!I?[N,!1]:["vertical",I]}),[N,I]),nt=(0,s.Z)(tt,2),it=nt[0],rt=nt[1],ot="inline"===it,at=g.useState(it),st=(0,s.Z)(at,2),lt=st[0],ct=st[1],ut=g.useState(rt),ht=(0,s.Z)(ut,2),dt=ht[0],pt=ht[1];g.useEffect((function(){ct(it),pt(rt),et.current&&(ot?Ge(Qe):qe(We))}),[it,rt]);var ft=g.useState(0),gt=(0,s.Z)(ft,2),mt=gt[0],vt=gt[1],yt=mt>=De.length-1||"horizontal"!==lt||R;g.useEffect((function(){ot&&Je(Ke)}),[Ke]),g.useEffect((function(){return et.current=!0,function(){et.current=!1}}),[]);var bt=Q(),wt=bt.registerPath,xt=bt.unregisterPath,St=bt.refreshOverflowKeys,kt=bt.isSubPathKey,_t=bt.getKeyPath,Ct=bt.getKeys,Pt=bt.getSubPathKeys,Et=g.useMemo((function(){return{registerPath:wt,unregisterPath:xt}}),[wt,xt]),Mt=g.useMemo((function(){return{isSubPathKey:kt}}),[kt]);g.useEffect((function(){St(yt?We:De.slice(mt+1).map((function(e){return e.key})))}),[mt,yt]);var Lt=(0,d.Z)(K||U&&(null===(n=De[0])||void 0===n?void 0:n.key),{value:K}),At=(0,s.Z)(Lt,2),Tt=At[0],Dt=At[1],Nt=J((function(e){Dt(e)})),It=J((function(){Dt(void 0)}));(0,g.useImperativeHandle)(t,(function(){return{list:ze.current,focus:function(e){var t,n,i=Ct(),r=V(i,je),o=r.elements,a=r.key2element,s=r.element2key,l=G(ze.current,o),c=null!=Tt?Tt:l[0]?s.get(l[0]):null===(t=De.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var Bt=(0,d.Z)(re||[],{value:oe,postState:function(e){return Array.isArray(e)?e:null==e?We:[e]}}),Rt=(0,s.Z)(Bt,2),Ot=Rt[0],Ft=Rt[1],zt=J((function(e){null==ke||ke(de(e)),function(e){if(Y){var t,n=e.key,i=Ot.includes(n);t=ie?i?Ot.filter((function(e){return e!==n})):[].concat((0,a.Z)(Ot),[n]):[n],Ft(t);var r=(0,o.Z)((0,o.Z)({},e),{},{selectedKeys:t});i?null==se||se(r):null==ae||ae(r)}!ie&&Ke.length&&"inline"!==lt&&qe(We)}(e)})),jt=J((function(e,t){var n=Ke.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==lt){var i=Pt(e);n=n.filter((function(e){return!i.has(e)}))}(0,p.Z)(Ke,n,!0)||qe(n,!0)})),$t=W(lt,Tt,$e,je,ze,Ct,_t,Dt,(function(e,t){var n=null!=t?t:!Ke.includes(e);jt(e,n)}),Ce);g.useEffect((function(){Oe(!0)}),[]);var Ht=g.useMemo((function(){return{_internalRenderMenuItem:Pe,_internalRenderSubMenuItem:Ee}}),[Pe,Ee]),Zt="horizontal"!==lt||R?De:De.map((function(e,t){return g.createElement(k,{key:e.key,overflowDisabled:t>mt},e)})),Kt=g.createElement(h.Z,(0,i.Z)({id:T,ref:ze,prefixCls:"".concat(y,"-overflow"),component:"ul",itemComponent:be,className:u()(y,"".concat(y,"-root"),"".concat(y,"-").concat(lt),x,(0,r.Z)((0,r.Z)({},"".concat(y,"-inline-collapsed"),dt),"".concat(y,"-rtl"),$e),b),dir:M,style:w,role:"menu",tabIndex:_,data:Zt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?De.slice(-t):null;return g.createElement(Fe,{eventKey:X,title:we,disabled:yt,internalPopupClose:0===t,popupClassName:xe},n)},maxCount:"horizontal"!==lt||R?h.Z.INVALIDATE:h.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){vt(e)},onKeyDown:$t},Le));return g.createElement(A.Provider,{value:Ht},g.createElement(v.Provider,{value:je},g.createElement(k,{prefixCls:y,rootClassName:b,mode:lt,openKeys:Ke,rtl:$e,disabled:B,motion:Re?ue:null,defaultMotions:Re?he:null,activeKey:Tt,onActive:Nt,onInactive:It,selectedKeys:Ot,inlineIndent:ce,subMenuOpenDelay:F,subMenuCloseDelay:j,forceSubMenuRender:$,builtinPlacements:ge,triggerSubMenuAction:fe,getPopupContainer:Se,itemIcon:me,expandIcon:ve,onItemClick:zt,onOpenChange:jt},g.createElement(L.Provider,{value:Mt},Kt),g.createElement("div",{style:{display:"none"},"aria-hidden":!0},g.createElement(C.Provider,{value:Et},Ne)))))})),Ye=qe;Ye.Item=be,Ye.SubMenu=Fe,Ye.ItemGroup=Ze,Ye.Divider=je;var Xe=Ye},11780:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var i=n(14809),r=n(20439),o=n(50298),a=n(62646),s=n(59301),l=n(92310),c=n.n(l),u=n(29301),h=n(34280),d=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],p=void 0;function f(e,t){var n=e.prefixCls,o=e.invalidate,l=e.item,h=e.renderItem,f=e.responsive,g=e.responsiveDisabled,m=e.registerSize,v=e.itemKey,y=e.className,b=e.style,w=e.children,x=e.display,S=e.order,k=e.component,_=void 0===k?"div":k,C=(0,a.Z)(e,d),P=f&&!x;function E(e){m(v,e)}s.useEffect((function(){return function(){E(null)}}),[]);var M,L=h&&l!==p?h(l,{index:S}):w;o||(M={opacity:P?0:1,height:P?0:p,overflowY:P?"hidden":p,order:f?S:p,pointerEvents:P?"none":p,position:P?"absolute":p});var A={};P&&(A["aria-hidden"]=!0);var T=s.createElement(_,(0,i.Z)({className:c()(!o&&n,y),style:(0,r.Z)((0,r.Z)({},M),b)},A,C,{ref:t}),L);return f&&(T=s.createElement(u.Z,{onResize:function(e){E(e.offsetWidth)},disabled:g},T)),T}var g=s.forwardRef(f);g.displayName="Item";var m=g,v=n(6089),y=n(4676),b=n(16089);function w(){var e=s.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,b.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,y.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function x(e,t){var n=s.useState(t),i=(0,o.Z)(n,2),r=i[0],a=i[1];return[r,(0,v.Z)((function(t){e((function(){a(t)}))}))]}var S=s.createContext(null),k=["component"],_=["className"],C=["className"],P=function(e,t){var n=s.useContext(S);if(!n){var r=e.component,o=void 0===r?"div":r,l=(0,a.Z)(e,k);return s.createElement(o,(0,i.Z)({},l,{ref:t}))}var u=n.className,h=(0,a.Z)(n,_),d=e.className,p=(0,a.Z)(e,C);return s.createElement(S.Provider,{value:null},s.createElement(m,(0,i.Z)({ref:t,className:c()(u,d)},h,p)))},E=s.forwardRef(P);E.displayName="RawItem";var M=E,L=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],A="responsive",T="invalidate";function D(e){return"+ ".concat(e.length," ...")}function N(e,t){var n=e.prefixCls,l=void 0===n?"rc-overflow":n,d=e.data,p=void 0===d?[]:d,f=e.renderItem,g=e.renderRawItem,v=e.itemKey,y=e.itemWidth,b=void 0===y?10:y,k=e.ssr,_=e.style,C=e.className,P=e.maxCount,E=e.renderRest,M=e.renderRawRest,N=e.suffix,I=e.component,B=void 0===I?"div":I,R=e.itemComponent,O=e.onVisibleChange,F=(0,a.Z)(e,L),z="full"===k,j=w(),$=x(j,null),H=(0,o.Z)($,2),Z=H[0],K=H[1],G=Z||0,U=x(j,new Map),V=(0,o.Z)(U,2),W=V[0],q=V[1],Y=x(j,0),X=(0,o.Z)(Y,2),Q=X[0],J=X[1],ee=x(j,0),te=(0,o.Z)(ee,2),ne=te[0],ie=te[1],re=x(j,0),oe=(0,o.Z)(re,2),ae=oe[0],se=oe[1],le=(0,s.useState)(null),ce=(0,o.Z)(le,2),ue=ce[0],he=ce[1],de=(0,s.useState)(null),pe=(0,o.Z)(de,2),fe=pe[0],ge=pe[1],me=s.useMemo((function(){return null===fe&&z?Number.MAX_SAFE_INTEGER:fe||0}),[fe,Z]),ve=(0,s.useState)(!1),ye=(0,o.Z)(ve,2),be=ye[0],we=ye[1],xe="".concat(l,"-item"),Se=Math.max(Q,ne),ke=P===A,_e=p.length&&ke,Ce=P===T,Pe=_e||"number"==typeof P&&p.length>P,Ee=(0,s.useMemo)((function(){var e=p;return _e?e=null===Z&&z?p:p.slice(0,Math.min(p.length,G/b)):"number"==typeof P&&(e=p.slice(0,P)),e}),[p,b,Z,P,_e]),Me=(0,s.useMemo)((function(){return _e?p.slice(me+1):p.slice(Ee.length)}),[p,Ee,_e,me]),Le=(0,s.useCallback)((function(e,t){var n;return"function"==typeof v?v(e):null!==(n=v&&(null==e?void 0:e[v]))&&void 0!==n?n:t}),[v]),Ae=(0,s.useCallback)(f||function(e){return e},[f]);function Te(e,t,n){(fe!==e||void 0!==t&&t!==ue)&&(ge(e),n||(we(eG){Te(i-1,e-r-ae+ne);break}}N&&Ne(0)+ae>G&&he(null)}}),[G,W,ne,ae,Le,Ee]);var Ie=be&&!!Me.length,Be={};null!==ue&&_e&&(Be={position:"absolute",left:ue,top:0});var Re={prefixCls:xe,responsive:_e,component:R,invalidate:Ce},Oe=g?function(e,t){var n=Le(e,t);return s.createElement(S.Provider,{key:n,value:(0,r.Z)((0,r.Z)({},Re),{},{order:t,item:e,itemKey:n,registerSize:De,display:t<=me})},g(e,t))}:function(e,t){var n=Le(e,t);return s.createElement(m,(0,i.Z)({},Re,{order:t,key:n,item:e,renderItem:Ae,itemKey:n,registerSize:De,display:t<=me}))},Fe={order:Ie?me:Number.MAX_SAFE_INTEGER,className:"".concat(xe,"-rest"),registerSize:function(e,t){ie(t),J(ne)},display:Ie},ze=E||D,je=M?s.createElement(S.Provider,{value:(0,r.Z)((0,r.Z)({},Re),Fe)},M(Me)):s.createElement(m,(0,i.Z)({},Re,Fe),"function"==typeof ze?ze(Me):ze),$e=s.createElement(B,(0,i.Z)({className:c()(!Ce&&l,C),style:_,ref:t},F),Ee.map(Oe),Pe?je:null,N&&s.createElement(m,(0,i.Z)({},Re,{responsive:ke,responsiveDisabled:!_e,order:me,className:"".concat(xe,"-suffix"),registerSize:function(e,t){se(t)},display:!0,style:Be}),N));return ke?s.createElement(u.Z,{onResize:function(e,t){K(t.clientWidth)},disabled:!_e},$e):$e}var I=s.forwardRef(N);I.displayName="Overflow",I.Item=M,I.RESPONSIVE=A,I.INVALIDATE=T;var B=I},29301:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var i=n(14809),r=n(59301),o=n(11592),a=(n(48736),n(20439)),s=n(93664),l=n(76846),c=n(8654),u=r.createContext(null);var h=n(76374),d=new Map;var p=new h.Z((function(e){e.forEach((function(e){var t,n=e.target;null===(t=d.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var f=n(99153),g=n(84851),m=n(19257),v=n(93046),y=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(){return(0,f.Z)(this,n),t.apply(this,arguments)}return(0,g.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function b(e,t){var n=e.children,i=e.disabled,o=r.useRef(null),h=r.useRef(null),f=r.useContext(u),g="function"==typeof n,m=g?n(o):n,v=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),b=!g&&r.isValidElement(m)&&(0,c.Yr)(m),w=b?(0,c.C4)(m):null,x=(0,c.x1)(w,o),S=function(){var e;return(0,l.ZP)(o.current)||(o.current&&"object"===(0,s.Z)(o.current)?(0,l.ZP)(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||(0,l.ZP)(h.current)};r.useImperativeHandle(t,(function(){return S()}));var k=r.useRef(e);k.current=e;var _=r.useCallback((function(e){var t=k.current,n=t.onResize,i=t.data,r=e.getBoundingClientRect(),o=r.width,s=r.height,l=e.offsetWidth,c=e.offsetHeight,u=Math.floor(o),h=Math.floor(s);if(v.current.width!==u||v.current.height!==h||v.current.offsetWidth!==l||v.current.offsetHeight!==c){var d={width:u,height:h,offsetWidth:l,offsetHeight:c};v.current=d;var p=l===Math.round(o)?o:l,g=c===Math.round(s)?s:c,m=(0,a.Z)((0,a.Z)({},d),{},{offsetWidth:p,offsetHeight:g});null==f||f(m,e,i),n&&Promise.resolve().then((function(){n(m,e)}))}}),[]);return r.useEffect((function(){var e,t,n=S();return n&&!i&&(e=n,t=_,d.has(e)||(d.set(e,new Set),p.observe(e)),d.get(e).add(t)),function(){return function(e,t){d.has(e)&&(d.get(e).delete(t),d.get(e).size||(p.unobserve(e),d.delete(e)))}(n,_)}}),[o.current,i]),r.createElement(y,{ref:h},b?r.cloneElement(m,{ref:x}):m)}var w=r.forwardRef(b);function x(e,t){var n=e.children;return("function"==typeof n?[n]:(0,o.Z)(n)).map((function(n,o){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(w,(0,i.Z)({},e,{key:a,ref:0===o?t:void 0}),n)}))}var S=r.forwardRef(x);S.Collection=function(e){var t=e.children,n=e.onBatchResize,i=r.useRef(0),o=r.useRef([]),a=r.useContext(u),s=r.useCallback((function(e,t,r){i.current+=1;var s=i.current;o.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){s===i.current&&(null==n||n(o.current),o.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(u.Provider,{value:s},t)};var k=S},49658:function(e,t){"use strict";t.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)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(null==e?void 0:e.substr(0,4))}},65283:function(e,t,n){"use strict";n.d(t,{Z:function(){return F}});var i=n(14809),r=n(93664),o=n(20439),a=n(4635),s=n(50298),l=n(62646),c=n(92310),u=n.n(c),h=n(29301),d=n(70425),p=n(34280),f=n(59301),g=n(4676),m=f.forwardRef((function(e,t){var n=e.height,r=e.offsetY,s=e.offsetX,l=e.children,c=e.prefixCls,d=e.onInnerResize,p=e.innerProps,g=e.rtl,m=e.extra,v={},y={display:"flex",flexDirection:"column"};return void 0!==r&&(v={height:n,position:"relative",overflow:"hidden"},y=(0,o.Z)((0,o.Z)({},y),{},(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({transform:"translateY(".concat(r,"px)")},g?"marginRight":"marginLeft",-s),"position","absolute"),"left",0),"right",0),"top",0))),f.createElement("div",{style:v},f.createElement(h.Z,{onResize:function(e){e.offsetHeight&&d&&d()}},f.createElement("div",(0,i.Z)({style:y,className:u()((0,a.Z)({},"".concat(c,"-holder-inner"),c)),ref:t},p),l,m)))}));m.displayName="Filler";var v=m;function y(e){var t=e.children,n=e.setRef,i=f.useCallback((function(e){n(e)}),[]);return f.cloneElement(t,{ref:i})}function b(e,t,n){var i=f.useState(e),r=(0,s.Z)(i,2),o=r[0],a=r[1],l=f.useState(null),c=(0,s.Z)(l,2),u=c[0],h=c[1];return f.useEffect((function(){var i=function(e,t,n){var i,r,o=e.length,a=t.length;if(0===o&&0===a)return null;o2&&void 0!==arguments[2]&&arguments[2],i=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&i?(clearTimeout(o.current),r.current=!1):i&&!r.current||a(),!r.current&&i}};function k(e,t,n,i,r,o,a){var s=(0,f.useRef)(0),l=(0,f.useRef)(null),c=(0,f.useRef)(null),u=(0,f.useRef)(!1),h=S(t,n,i,r);var d=(0,f.useRef)(null),p=(0,f.useRef)(null);return[function(t){if(e){w.Z.cancel(p.current),p.current=(0,w.Z)((function(){d.current=null}),2);var n=t.deltaX,i=t.deltaY,r=t.shiftKey,f=n,g=i;("sx"===d.current||!d.current&&r&&i&&!n)&&(f=i,g=0,d.current="sx");var m=Math.abs(f),v=Math.abs(g);null===d.current&&(d.current=o&&m>v?"x":"y"),"y"===d.current?function(e,t){if(w.Z.cancel(l.current),!h(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,s.current+=t,c.current=t,x||n.preventDefault(),l.current=(0,w.Z)((function(){var e=u.current?10:1;a(s.current*e,!1),s.current=0})))}}(t,g):function(e,t){a(t,!0),x||e.preventDefault()}(t,f)}},function(t){e&&(u.current=t.detail===c.current)}]}var _=n(99153),C=n(84851),P=function(){function e(){(0,_.Z)(this,e),(0,a.Z)(this,"maps",void 0),(0,a.Z)(this,"id",0),(0,a.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,C.Z)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function E(e){var t=parseFloat(e);return isNaN(t)?0:t}var M=14/15;function L(e){return Math.floor(Math.pow(e,.5))}function A(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var T=f.forwardRef((function(e,t){var n=e.prefixCls,i=e.rtl,r=e.scrollOffset,l=e.scrollRange,c=e.onStartMove,h=e.onStopMove,d=e.onScroll,p=e.horizontal,g=e.spinSize,m=e.containerSize,v=e.style,y=e.thumbStyle,b=e.showScrollBar,x=f.useState(!1),S=(0,s.Z)(x,2),k=S[0],_=S[1],C=f.useState(null),P=(0,s.Z)(C,2),E=P[0],M=P[1],L=f.useState(null),T=(0,s.Z)(L,2),D=T[0],N=T[1],I=!i,B=f.useRef(),R=f.useRef(),O=f.useState(b),F=(0,s.Z)(O,2),z=F[0],j=F[1],$=f.useRef(),H=function(){!0!==b&&!1!==b&&(clearTimeout($.current),j(!0),$.current=setTimeout((function(){j(!1)}),3e3))},Z=l-m||0,K=m-g||0,G=f.useMemo((function(){return 0===r||0===Z?0:r/Z*K}),[r,Z,K]),U=f.useRef({top:G,dragging:k,pageY:E,startTop:D});U.current={top:G,dragging:k,pageY:E,startTop:D};var V=function(e){_(!0),M(A(e,p)),N(U.current.top),c(),e.stopPropagation(),e.preventDefault()};f.useEffect((function(){var e=function(e){e.preventDefault()},t=B.current,n=R.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",V,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",V)}}),[]);var W=f.useRef();W.current=Z;var q=f.useRef();q.current=K,f.useEffect((function(){if(k){var e,t=function(t){var n=U.current,i=n.dragging,r=n.pageY,o=n.startTop;w.Z.cancel(e);var a=B.current.getBoundingClientRect(),s=m/(p?a.width:a.height);if(i){var l=(A(t,p)-r)*s,c=o;!I&&p?c-=l:c+=l;var u=W.current,h=q.current,f=h?c/h:0,g=Math.ceil(f*u);g=Math.max(g,0),g=Math.min(g,u),e=(0,w.Z)((function(){d(g,p)}))}},n=function(){_(!1),h()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),w.Z.cancel(e)}}}),[k]),f.useEffect((function(){return H(),function(){clearTimeout($.current)}}),[r]),f.useImperativeHandle(t,(function(){return{delayHidden:H}}));var Y="".concat(n,"-scrollbar"),X={position:"absolute",visibility:z?null:"hidden"},Q={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return p?(X.height=8,X.left=0,X.right=0,X.bottom=0,Q.height="100%",Q.width=g,I?Q.left=G:Q.right=G):(X.width=8,X.top=0,X.bottom=0,I?X.right=0:X.left=0,Q.width="100%",Q.height=g,Q.top=G),f.createElement("div",{ref:B,className:u()(Y,(0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(Y,"-horizontal"),p),"".concat(Y,"-vertical"),!p),"".concat(Y,"-visible"),z)),style:(0,o.Z)((0,o.Z)({},X),v),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:H},f.createElement("div",{ref:R,className:u()("".concat(Y,"-thumb"),(0,a.Z)({},"".concat(Y,"-thumb-moving"),k)),style:(0,o.Z)((0,o.Z)({},Q),y),onMouseDown:V}))}));function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,20),Math.floor(n)}var N=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],I=[],B={overflowY:"auto",overflowAnchor:"none"};function R(e,t){var n=e.prefixCls,c=void 0===n?"rc-virtual-list":n,m=e.className,x=e.height,_=e.itemHeight,C=e.fullHeight,R=void 0===C||C,O=e.style,F=e.data,z=e.children,j=e.itemKey,$=e.virtual,H=e.direction,Z=e.scrollWidth,K=e.component,G=void 0===K?"div":K,U=e.onScroll,V=e.onVirtualScroll,W=e.onVisibleChange,q=e.innerProps,Y=e.extraRender,X=e.styles,Q=e.showScrollBar,J=void 0===Q?"optional":Q,ee=(0,l.Z)(e,N),te=f.useCallback((function(e){return"function"==typeof j?j(e):null==e?void 0:e[j]}),[j]),ne=function(e,t,n){var i=f.useState(0),r=(0,s.Z)(i,2),o=r[0],a=r[1],l=(0,f.useRef)(new Map),c=(0,f.useRef)(new P),u=(0,f.useRef)(0);function h(){u.current+=1}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];h();var t=function(){var e=!1;l.current.forEach((function(t,n){if(t&&t.offsetParent){var i=t.offsetHeight,r=getComputedStyle(t),o=r.marginTop,a=r.marginBottom,s=i+E(o)+E(a);c.current.get(n)!==s&&(c.current.set(n,s),e=!0)}})),e&&a((function(e){return e+1}))};if(e)t();else{u.current+=1;var n=u.current;Promise.resolve().then((function(){n===u.current&&t()}))}}return(0,f.useEffect)((function(){return h}),[]),[function(i,r){var o=e(i),a=l.current.get(o);r?(l.current.set(o,r),d()):l.current.delete(o),!a!=!r&&(r?null==t||t(i):null==n||n(i))},d,c.current,o]}(te,null,null),ie=(0,s.Z)(ne,4),re=ie[0],oe=ie[1],ae=ie[2],se=ie[3],le=!(!1===$||!x||!_),ce=f.useMemo((function(){return Object.values(ae.maps).reduce((function(e,t){return e+t}),0)}),[ae.id,ae.maps]),ue=le&&F&&(Math.max(_*F.length,ce)>x||!!Z),he="rtl"===H,de=u()(c,(0,a.Z)({},"".concat(c,"-rtl"),he),m),pe=F||I,fe=(0,f.useRef)(),ge=(0,f.useRef)(),me=(0,f.useRef)(),ve=(0,f.useState)(0),ye=(0,s.Z)(ve,2),be=ye[0],we=ye[1],xe=(0,f.useState)(0),Se=(0,s.Z)(xe,2),ke=Se[0],_e=Se[1],Ce=(0,f.useState)(!1),Pe=(0,s.Z)(Ce,2),Ee=Pe[0],Me=Pe[1],Le=function(){Me(!0)},Ae=function(){Me(!1)},Te={getKey:te};function De(e){we((function(t){var n=function(e){var t=e;Number.isNaN(Xe.current)||(t=Math.min(t,Xe.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return fe.current.scrollTop=n,n}))}var Ne=(0,f.useRef)({start:0,end:pe.length}),Ie=(0,f.useRef)(),Be=b(pe,te),Re=(0,s.Z)(Be,1)[0];Ie.current=Re;var Oe=f.useMemo((function(){if(!le)return{scrollHeight:void 0,start:0,end:pe.length-1,offset:void 0};var e;if(!ue)return{scrollHeight:(null===(e=ge.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:pe.length-1,offset:void 0};for(var t,n,i,r=0,o=pe.length,a=0;a=be&&void 0===t&&(t=a,n=r),u>be+x&&void 0===i&&(i=a),r=u}return void 0===t&&(t=0,n=0,i=Math.ceil(x/_)),void 0===i&&(i=pe.length-1),{scrollHeight:r,start:t,end:i=Math.min(i+1,pe.length-1),offset:n}}),[ue,le,be,pe,se,x]),Fe=Oe.scrollHeight,ze=Oe.start,je=Oe.end,$e=Oe.offset;Ne.current.start=ze,Ne.current.end=je,f.useLayoutEffect((function(){var e=ae.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),i=pe[ze];if(i&&void 0===n)if(te(i)===t){var r=ae.get(t)-_;De((function(e){return e+r}))}}ae.resetRecord()}),[Fe]);var He=f.useState({width:0,height:x}),Ze=(0,s.Z)(He,2),Ke=Ze[0],Ge=Ze[1],Ue=(0,f.useRef)(),Ve=(0,f.useRef)(),We=f.useMemo((function(){return D(Ke.width,Z)}),[Ke.width,Z]),qe=f.useMemo((function(){return D(Ke.height,Fe)}),[Ke.height,Fe]),Ye=Fe-x,Xe=(0,f.useRef)(Ye);Xe.current=Ye;var Qe=be<=0,Je=be>=Ye,et=ke<=0,tt=ke>=Z,nt=S(Qe,Je,et,tt),it=function(){return{x:he?-ke:ke,y:be}},rt=(0,f.useRef)(it()),ot=(0,d.zX)((function(e){if(V){var t=(0,o.Z)((0,o.Z)({},it()),e);rt.current.x===t.x&&rt.current.y===t.y||(V(t),rt.current=t)}}));function at(e,t){var n=e;t?((0,g.flushSync)((function(){_e(n)})),ot()):De(n)}var st=function(e){var t=e,n=Z?Z-Ke.width:0;return t=Math.max(t,0),t=Math.min(t,n)},lt=(0,d.zX)((function(e,t){t?((0,g.flushSync)((function(){_e((function(t){return st(t+(he?-e:e))}))})),ot()):De((function(t){return t+e}))})),ct=k(le,Qe,Je,et,tt,!!Z,lt),ut=(0,s.Z)(ct,2),ht=ut[0],dt=ut[1];!function(e,t,n){var i,r=(0,f.useRef)(!1),o=(0,f.useRef)(0),a=(0,f.useRef)(0),s=(0,f.useRef)(null),l=(0,f.useRef)(null),c=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageX),i=Math.ceil(e.touches[0].pageY),s=o.current-t,c=a.current-i,u=Math.abs(s)>Math.abs(c);u?o.current=t:a.current=i;var h=n(u,u?s:c,!1,e);h&&e.preventDefault(),clearInterval(l.current),h&&(l.current=setInterval((function(){u?s*=M:c*=M;var e=Math.floor(u?s:c);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(l.current)}),16))}},u=function(){r.current=!1,i()},h=function(e){i(),1!==e.touches.length||r.current||(r.current=!0,o.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),s.current=e.target,s.current.addEventListener("touchmove",c,{passive:!1}),s.current.addEventListener("touchend",u,{passive:!0}))};i=function(){s.current&&(s.current.removeEventListener("touchmove",c),s.current.removeEventListener("touchend",u))},(0,p.Z)((function(){return e&&t.current.addEventListener("touchstart",h,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",h),i(),clearInterval(l.current)}}),[e])}(le,fe,(function(e,t,n,i){var r=i;return!nt(e,t,n)&&((!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),ht({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),function(e,t,n){f.useEffect((function(){var i=t.current;if(e&&i){var r,o,a=!1,s=function(){w.Z.cancel(r)},l=function e(){s(),r=(0,w.Z)((function(){n(o),e()}))},c=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},u=function(){a=!1,s()},h=function(e){if(a){var t=A(e,!1),n=i.getBoundingClientRect(),r=n.top,c=n.bottom;t<=r?(o=-L(r-t),l()):t>=c?(o=L(t-c),l()):s()}};return i.addEventListener("mousedown",c),i.ownerDocument.addEventListener("mouseup",u),i.ownerDocument.addEventListener("mousemove",h),function(){i.removeEventListener("mousedown",c),i.ownerDocument.removeEventListener("mouseup",u),i.ownerDocument.removeEventListener("mousemove",h),s()}}}),[e])}(ue,fe,(function(e){De((function(t){return t+e}))})),(0,p.Z)((function(){function e(e){var t=Qe&&e.detail<0,n=Je&&e.detail>0;!le||t||n||e.preventDefault()}var t=fe.current;return t.addEventListener("wheel",ht,{passive:!1}),t.addEventListener("DOMMouseScroll",dt,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",ht),t.removeEventListener("DOMMouseScroll",dt),t.removeEventListener("MozMousePixelScroll",e)}}),[le,Qe,Je]),(0,p.Z)((function(){if(Z){var e=st(ke);_e(e),ot({x:e})}}),[Ke.width,Z]);var pt=function(){var e,t;null===(e=Ue.current)||void 0===e||e.delayHidden(),null===(t=Ve.current)||void 0===t||t.delayHidden()},ft=function(e,t,n,i,a,l,c,u){var h=f.useRef(),d=f.useState(null),g=(0,s.Z)(d,2),m=g[0],v=g[1];return(0,p.Z)((function(){if(m&&m.times<10){if(!e.current)return void v((function(e){return(0,o.Z)({},e)}));l();var r=m.targetAlign,s=m.originAlign,u=m.index,h=m.offset,d=e.current.clientHeight,p=!1,f=r,g=null;if(d){for(var y=r||s,b=0,w=0,x=0,S=Math.min(t.length-1,u),k=0;k<=S;k+=1){var _=a(t[k]);w=b;var C=n.get(_);b=x=w+(void 0===C?i:C)}for(var P="top"===y?h:d-h,E=S;E>=0;E-=1){var M=a(t[E]),L=n.get(M);if(void 0===L){p=!0;break}if((P-=L)<=0)break}switch(y){case"top":g=w-h;break;case"bottom":g=x-d+h;break;default:var A=e.current.scrollTop;wA+d&&(f="bottom")}null!==g&&c(g),g!==m.lastTop&&(p=!0)}p&&v((0,o.Z)((0,o.Z)({},m),{},{times:m.times+1,targetAlign:f,lastTop:g}))}}),[m,e.current]),function(e){if(null!=e){if(w.Z.cancel(h.current),"number"==typeof e)c(e);else if(e&&"object"===(0,r.Z)(e)){var n,i=e.align;n="index"in e?e.index:t.findIndex((function(t){return a(t)===e.key}));var o=e.offset;v({times:0,index:n,offset:void 0===o?0:o,originAlign:i})}}else u()}}(fe,pe,ae,_,te,(function(){return oe(!0)}),De,pt);f.useImperativeHandle(t,(function(){return{nativeElement:me.current,getScrollInfo:it,scrollTo:function(e){var t;(t=e)&&"object"===(0,r.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&_e(st(e.left)),ft(e.top)):ft(e)}}})),(0,p.Z)((function(){if(W){var e=pe.slice(ze,je+1);W(e,pe)}}),[ze,je,pe]);var gt=function(e,t,n,i){var r=f.useMemo((function(){return[new Map,[]]}),[e,n.id,i]),o=(0,s.Z)(r,2),a=o[0],l=o[1];return function(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,s=a.get(r),c=a.get(o);if(void 0===s||void 0===c)for(var u=e.length,h=l.length;hx&&f.createElement(T,{ref:Ue,prefixCls:c,scrollOffset:be,scrollRange:Fe,rtl:he,onScroll:at,onStartMove:Le,onStopMove:Ae,spinSize:qe,containerSize:Ke.height,style:null==X?void 0:X.verticalScrollBar,thumbStyle:null==X?void 0:X.verticalScrollBarThumb,showScrollBar:J}),ue&&Z>Ke.width&&f.createElement(T,{ref:Ve,prefixCls:c,scrollOffset:ke,scrollRange:Z,rtl:he,onScroll:at,onStartMove:Le,onStopMove:Ae,spinSize:We,containerSize:Ke.width,horizontal:!0,style:null==X?void 0:X.horizontalScrollBar,thumbStyle:null==X?void 0:X.horizontalScrollBarThumb,showScrollBar:J}))}var O=f.forwardRef(R);O.displayName="List";var F=O},83145:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=o(n(59301)),r=o(n(25769));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return r&&(s?a?u.unshift(s):u.push(s):this.defaultLoader&&(a?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(i,c,u)}}]),t}(r.Component);l.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)},76374:function(e,t,n){"use strict";var i=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,i=Object.keys(t);n0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new i,k=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),i=new x(t,n,this);S.set(this,i)};["observe","unobserve","disconnect"].forEach((function(e){k.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}}));var _=void 0!==o.ResizeObserver?o.ResizeObserver:k;t.Z=_},98040:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],i=0;i=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function i(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function u(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function c(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],c=new r.t(e),s=c.toHsv(),l=5;l>0;l-=1){var f=new r.t({h:o(s,l,!0),s:i(s,l,!0),v:u(s,l,!0)});n.push(f)}n.push(c);for(var p=1;p<=4;p+=1){var d=new r.t({h:o(s,p),s:i(s,p),v:u(s,p)});n.push(d)}return"dark"===t.theme?a.map((function(e){var a=e.index,o=e.amount;return new r.t(t.backgroundColor||"#141414").mix(n[a],o).toHexString()})):n.map((function(e){return e.toHexString()}))}var s={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"},l=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];l.primary=l[5];var f=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];f.primary=f[5];var p=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];p.primary=p[5];var d=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];d.primary=d[5];var h=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];h.primary=h[5];var v=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];v.primary=v[5];var m=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];m.primary=m[5];var y=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];y.primary=y[5];var g=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];g.primary=g[5];var b=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];b.primary=b[5];var _=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];_.primary=_[5];var w=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];w.primary=w[5];var x=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];x.primary=x[5];var k={red:l,volcano:f,orange:p,gold:d,yellow:h,lime:v,green:m,cyan:y,blue:g,geekblue:b,purple:_,magenta:w,grey:x},E=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];E.primary=E[5];var S=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];S.primary=S[5];var C=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];C.primary=C[5];var P=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];P.primary=P[5];var O=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];O.primary=O[5];var j=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];j.primary=j[5];var A=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];A.primary=A[5];var T=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];T.primary=T[5];var I=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];I.primary=I[5];var M=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];M.primary=M[5];var R=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];R.primary=R[5];var L=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];L.primary=L[5];var Z=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Z.primary=Z[5]},51636:function(e,t,n){"use strict";n.d(t,{rb:function(){return R},IX:function(){return S}});var r=n(93664),a=n(50298),o=n(4635),i=n(20439),u=n(59301),c=n(66604),s=n(99153),l=n(84851),f=n(13028),p=n(19257),d=n(93046),h=(0,l.Z)((function e(){(0,s.Z)(this,e)})),v="CALC_UNIT",m=new RegExp(v,"g");function y(e){return"number"==typeof e?"".concat(e).concat(v):e}var g=function(e){(0,p.Z)(n,e);var t=(0,d.Z)(n);function n(e,a){var i;(0,s.Z)(this,n),i=t.call(this),(0,o.Z)((0,f.Z)(i),"result",""),(0,o.Z)((0,f.Z)(i),"unitlessCssVar",void 0),(0,o.Z)((0,f.Z)(i),"lowPriority",void 0);var u=(0,r.Z)(e);return i.unitlessCssVar=a,e instanceof n?i.result="(".concat(e.result,")"):"number"===u?i.result=y(e):"string"===u&&(i.result=e),i}return(0,l.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(y(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(y(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(m,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(h),b=function(e){(0,p.Z)(n,e);var t=(0,d.Z)(n);function n(e){var r;return(0,s.Z)(this,n),r=t.call(this),(0,o.Z)((0,f.Z)(r),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,l.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(h),_=function(e,t){var n="css"===e?g:b;return function(e){return new n(e,t)}},w=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};n(70425);var x=function(e,t,n,r){var o=(0,i.Z)({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var t,n=(0,a.Z)(e,2),r=n[0],i=n[1];(null!=o&&o[r]||null!=o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null==o?void 0:o[r]))}));var u=(0,i.Z)((0,i.Z)({},n),o);return Object.keys(u).forEach((function(e){u[e]===t[e]&&delete u[e]})),u},k="undefined"!=typeof CSSINJS_STATISTIC,E=!0;function S(){for(var e=arguments.length,t=new Array(e),n=0;n1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}());var I=function(e,t){return u.useMemo((function(){var n=T.get(t);if(n)return n;var r=e();return T.set(t,r),r}),t)},M=function(){return{}};var R=function(e){var t=e.useCSP,n=void 0===t?M:t,s=e.useToken,l=e.usePrefix,f=e.getResetStyles,p=e.getCommonStyle,d=e.getCompUnitless;function h(t,o,u){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h=Array.isArray(t)?t:[t,t],v=(0,a.Z)(h,1),m=v[0],y=h.join("-"),g=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,a=s(),h=a.theme,v=a.realToken,b=a.hashId,k=a.token,E=a.cssVar,C=l(),P=C.rootPrefixCls,T=C.iconPrefixCls,M=n(),R=E?"css":"js",L=I((function(){var e=new Set;return E&&Object.keys(d.unitless||{}).forEach((function(t){e.add((0,c.ks)(t,E.prefix)),e.add((0,c.ks)(t,w(m,E.prefix)))})),_(R,e)}),[R,m,null==E?void 0:E.prefix]),Z=A(R),D=Z.max,N=Z.min,$={theme:h,token:k,hashId:b,nonce:function(){return M.nonce},clientOnly:d.clientOnly,layer:g,order:d.order||-999};"function"==typeof f&&(0,c.xy)((0,i.Z)((0,i.Z)({},$),{},{clientOnly:!1,path:["Shared",P]}),(function(){return f(k,{prefix:{rootPrefixCls:P,iconPrefixCls:T},csp:M})}));var F=(0,c.xy)((0,i.Z)((0,i.Z)({},$),{},{path:[y,e,T]}),(function(){if(!1===d.injectStyle)return[];var n=O(k),a=n.token,i=n.flush,s=j(m,v,u),l=".".concat(e),f=x(m,v,s,{deprecatedTokens:d.deprecatedTokens});E&&s&&"object"===(0,r.Z)(s)&&Object.keys(s).forEach((function(e){s[e]="var(".concat((0,c.ks)(e,w(m,E.prefix)),")")}));var h=S(a,{componentCls:l,prefixCls:e,iconCls:".".concat(T),antCls:".".concat(P),calc:L,max:D,min:N},E?s:f),y=o(h,{hashId:b,prefixCls:e,rootPrefixCls:P,iconPrefixCls:T});i(m,f);var g="function"==typeof p?p(h,e,t,d.resetFont):null;return[!1===d.resetStyle?null:g,y]}));return[F,b]}}return{genStyleHooks:function(e,t,n,r){var l=Array.isArray(e)?e[0]:e;function f(e){return"".concat(String(l)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var p=(null==r?void 0:r.unitless)||{},v="function"==typeof d?d(e):{},m=(0,i.Z)((0,i.Z)({},v),{},(0,o.Z)({},f("zIndexPopup"),!0));Object.keys(p).forEach((function(e){m[f(e)]=p[e]}));var y=(0,i.Z)((0,i.Z)({},r),{},{unitless:m,prefixToken:f}),g=h(e,t,n,y),b=function(e,t,n){var r=n.unitless,a=n.injectStyle,o=void 0===a||a,i=n.prefixToken,l=n.ignore,f=function(a){var o=a.rootCls,u=a.cssVar,f=void 0===u?{}:u,p=s().realToken;return(0,c.CI)({path:[e],prefix:f.prefix,key:f.key,unitless:r,ignore:l,token:p,scope:o},(function(){var r=j(e,p,t),a=x(e,p,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((function(e){a[i(e)]=a[e],delete a[e]})),a})),null},p=function(t){var n=s().cssVar;return[function(r){return o&&n?u.createElement(u.Fragment,null,u.createElement(f,{rootCls:t,cssVar:n,component:e}),r):r},null==n?void 0:n.key]};return p}(l,n,y);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=g(e,t),r=(0,a.Z)(n,2),o=r[1],i=b(t),u=(0,a.Z)(i,2),c=u[0],s=u[1];return[c,o,s]}},genSubStyleComponent:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=h(e,t,n,(0,i.Z)({resetStyle:!1,order:-998},r)),o=function(e){var t=e.prefixCls,n=e.rootCls;return a(t,void 0===n?t:n),null};return o},genComponentStyleHook:h}}},66604:function(e,t,n){"use strict";n.d(t,{E4:function(){return pt},uP:function(){return S},V9:function(){return E},jG:function(){return R},IJ:function(){return mt},ks:function(){return H},bf:function(){return q},CI:function(){return lt},fp:function(){return oe},xy:function(){return ut}});var r=n(4635),a=n(50298),o=n(95190),i=n(20439);var u=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},c=n(810),s=n(59301),l=n.t(s,2),f=n(62646),p=n(80547),d=n(13697),h=n(99153),v=n(84851);function m(e){return e.join("%")}var y=function(){function e(t){(0,h.Z)(this,e),(0,r.Z)(this,"instanceId",void 0),(0,r.Z)(this,"cache",new Map),this.instanceId=t}return(0,v.Z)(e,[{key:"get",value:function(e){return this.opGet(m(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(m(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),g=["children"],b="data-token-hash",_="data-css-hash",w="__cssinjs_instance__";function x(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(_,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[w]=t[w]||e,t[w]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(_,"]"))).forEach((function(t){var n,a=t.getAttribute(_);r[a]?t[w]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[a]=!0}))}return new y(e)}var k=s.createContext({hashPriority:"low",cache:x(),defaultCache:!0}),E=function(e){var t=e.children,n=(0,f.Z)(e,g),r=s.useContext(k),a=(0,p.Z)((function(){var e=(0,i.Z)({},r);Object.keys(n).forEach((function(t){var r=n[t];void 0!==n[t]&&(e[t]=r)}));var t=n.cache;return e.cache=e.cache||x(),e.defaultCache=!t&&r.defaultCache,e}),[r,n],(function(e,t){return!(0,d.Z)(e[0],t[0],!0)||!(0,d.Z)(e[1],t[1],!0)}));return s.createElement(k.Provider,{value:a},t)},S=k,C=n(93664),P=n(47273),O="CALC_UNIT";new RegExp(O,"g");var j=function(){function e(){(0,h.Z)(this,e),(0,r.Z)(this,"cache",void 0),(0,r.Z)(this,"keys",void 0),(0,r.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,v.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a={map:this.cache};return e.forEach((function(e){var t;a?a=null===(t=a)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):a=void 0})),null!==(t=a)&&void 0!==t&&t.value&&r&&(a.value[1]=this.cacheCallTimes++),null===(n=a)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=(0,a.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),T+=1}return(0,v.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),M=new j;function R(e){var t=Array.isArray(e)?e:[e];return M.has(t)||M.set(t,new I(t)),M.get(t)}var L=new WeakMap,Z={};function D(e,t){for(var n=L,r=0;r3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(u)return e;var c=(0,i.Z)((0,i.Z)({},o),{},(a={},(0,r.Z)(a,b,t),(0,r.Z)(a,_,n),a)),s=Object.keys(c).map((function(e){var t=c[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).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()},U=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,a.Z)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},W=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,u=(0,a.Z)(e,2),c=u[0],s=u[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[c])o[c]=s;else if(!("string"!=typeof s&&"number"!=typeof s||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[c])){var l,f=H(c,null==n?void 0:n.prefix);r[f]="number"!=typeof s||null!=n&&null!==(l=n.unitless)&&void 0!==l&&l[c]?String(s):"".concat(s,"px"),o[c]="var(".concat(f,")")}})),[o,U(r,t,{scope:null==n?void 0:n.scope})]},V=n(34280),G=(0,i.Z)({},l).useInsertionEffect,Y=G?function(e,t,n){return G((function(){return e(),t()}),n)}:function(e,t,n){s.useMemo(e,n),(0,V.Z)((function(){return t(!0)}),n)},K=void 0!==(0,i.Z)({},l).useInsertionEffect?function(e){var t=[],n=!1;return s.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};var X=function(){return!1};function Q(e,t,n,r,i){var u=s.useContext(S).cache,c=m([e].concat((0,o.Z)(t))),l=K([c]),f=(X(),function(e){u.opUpdate(c,(function(t){var r=t||[void 0,void 0],o=(0,a.Z)(r,2),i=o[0];var u=[void 0===i?0:i,o[1]||n()];return e?e(u):u}))});s.useMemo((function(){f()}),[c]);var p=u.opGet(c)[1];return Y((function(){null==i||i(p)}),(function(e){return f((function(t){var n=(0,a.Z)(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(p)),[r+1,o]})),function(){u.opUpdate(c,(function(t){var n=t||[],o=(0,a.Z)(n,2),i=o[0],s=void 0===i?0:i,f=o[1];return 0===s-1?(l((function(){!e&&u.opGet(c)||null==r||r(f,!1)})),null):[s-1,f]}))}}),[c]),p}var J={},ee=new Map;function te(e){ee.set(e,(ee.get(e)||0)+1)}function ne(e,t){ee.set(e,(ee.get(e)||0)-1);var n=Array.from(ee.keys()),r=n.filter((function(e){return(ee.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(b,'="').concat(e,'"]')).forEach((function(e){var n;e[w]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),ee.delete(e)}))}var re=function(e,t,n,r){var a=n.getDerivativeToken(e),o=(0,i.Z)((0,i.Z)({},a),t);return r&&(o=r(o)),o},ae="token";function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,s.useContext)(S),l=r.cache.instanceId,f=r.container,p=n.salt,d=void 0===p?"":p,h=n.override,v=void 0===h?J:h,m=n.formatToken,y=n.getComputedToken,g=n.cssVar,x=D((function(){return Object.assign.apply(Object,[{}].concat((0,o.Z)(t)))}),t),k=$(x),E=$(v),C=g?$(g):"",P=Q(ae,[d,e.id,k,E,C],(function(){var t,n=y?y(x,v,e):re(x,v,e,m),r=(0,i.Z)({},n),o="";if(g){var c=W(n,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),s=(0,a.Z)(c,2);n=s[0],o=s[1]}var l=F(n,d);n._tokenKey=l,r._tokenKey=F(r,d);var f=null!==(t=null==g?void 0:g.key)&&void 0!==t?t:l;n._themeKey=f,te(f);var p="".concat("css","-").concat(u(l));return n._hashId=p,[n,p,r,o,(null==g?void 0:g.key)||""]}),(function(e){ne(e[0]._themeKey,l)}),(function(e){var t=(0,a.Z)(e,4),n=t[0],r=t[3];if(g&&r){var o=(0,c.hq)(r,u("css-variables-".concat(n._themeKey)),{mark:_,prepend:"queue",attachTo:f,priority:-999});o[w]=l,o.setAttribute(b,n._themeKey)}}));return P}var ie=n(14809),ue={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="comm",se="rule",le="decl",fe=Math.abs,pe=String.fromCharCode;Object.assign;function de(e){return e.trim()}function he(e,t,n){return e.replace(t,n)}function ve(e,t,n){return e.indexOf(t,n)}function me(e,t){return 0|e.charCodeAt(t)}function ye(e,t,n){return e.slice(t,n)}function ge(e){return e.length}function be(e,t){return t.push(e),e}function _e(e,t){for(var n="",r=0;r0?me(Pe,--Se):0,ke--,10===Ce&&(ke=1,xe--),Ce}function Ae(){return Ce=Se2||Re(Ce)>3?"":" "}function $e(e,t){for(;--t&&Ae()&&!(Ce<48||Ce>102||Ce>57&&Ce<65||Ce>70&&Ce<97););return Me(e,Ie()+(t<6&&32==Te()&&32==Ae()))}function Fe(e){for(;Ae();)switch(Ce){case e:return Se;case 34:case 39:34!==e&&39!==e&&Fe(Ce);break;case 40:41===e&&Fe(e);break;case 92:Ae()}return Se}function Be(e,t){for(;Ae()&&e+Ce!==57&&(e+Ce!==84||47!==Te()););return"/*"+Me(t,Se-1)+"*"+pe(47===e?e:Ae())}function qe(e){for(;!Re(Te());)Ae();return Me(e,Se)}function ze(e){return Ze(He("",null,null,null,[""],e=Le(e),0,[0],e))}function He(e,t,n,r,a,o,i,u,c){for(var s=0,l=0,f=i,p=0,d=0,h=0,v=1,m=1,y=1,g=0,b="",_=a,w=o,x=r,k=b;m;)switch(h=g,g=Ae()){case 40:if(108!=h&&58==me(k,f-1)){-1!=ve(k+=he(De(g),"&","&\f"),"&\f",fe(s?u[s-1]:0))&&(y=-1);break}case 34:case 39:case 91:k+=De(g);break;case 9:case 10:case 13:case 32:k+=Ne(h);break;case 92:k+=$e(Ie()-1,7);continue;case 47:switch(Te()){case 42:case 47:be(We(Be(Ae(),Ie()),t,n,c),c),5!=Re(h||1)&&5!=Re(Te()||1)||!ge(k)||" "===ye(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*v:u[s++]=ge(k)*y;case 125*v:case 59:case 0:switch(g){case 0:case 125:m=0;case 59+l:-1==y&&(k=he(k,/\f/g,"")),d>0&&(ge(k)-f||0===v&&47===h)&&be(d>32?Ve(k+";",r,n,f-1,c):Ve(he(k," ","")+";",r,n,f-2,c),c);break;case 59:k+=";";default:if(be(x=Ue(k,t,n,s,l,a,u,b,_=[],w=[],f,o),o),123===g)if(0===l)He(k,t,x,x,_,o,f,u,w);else{switch(p){case 99:if(110===me(k,3))break;case 108:if(97===me(k,2))break;default:l=0;case 100:case 109:case 115:}l?He(e,x,x,r&&be(Ue(e,x,x,0,0,a,u,b,a,_=[],f,w),w),a,w,f,u,r?_:w):He(k,x,x,x,[""],w,0,u,w)}}s=l=d=0,v=y=1,b=k="",f=i;break;case 58:f=1+ge(k),d=h;default:if(v<1)if(123==g)--v;else if(125==g&&0==v++&&125==je())continue;switch(k+=pe(g),g*v){case 38:y=l>0?1:(k+="\f",-1);break;case 44:u[s++]=(ge(k)-1)*y,y=1;break;case 64:45===Te()&&(k+=De(Ae())),p=Te(),l=f=ge(b=k+=qe(Ie())),g++;break;case 45:45===h&&2==ge(k)&&(v=0)}}return o}function Ue(e,t,n,r,a,o,i,u,c,s,l,f){for(var p=a-1,d=0===a?o:[""],h=function(e){return e.length}(d),v=0,m=0,y=0;v0?d[g]+" "+b:he(b,/&\f/g,d[g])))&&(c[y++]=_);return Oe(e,t,n,0===a?se:u,c,s,l,f)}function We(e,t,n,r){return Oe(e,t,n,ce,pe(Ce),ye(e,2,-2),0,r)}function Ve(e,t,n,r,a){return Oe(e,t,n,le,ye(e,0,r),ye(e,r+1,-1),r,a)}var Ge,Ye="data-ant-cssinjs-cache-path",Ke="_FILE_STYLE__";var Xe=!0;function Qe(e){return function(){if(!Ge&&(Ge={},(0,P.Z)())){var e=document.createElement("div");e.className=Ye,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,a.Z)(t,2),r=n[0],o=n[1];Ge[r]=o}));var n,r=document.querySelector("style[".concat(Ye,"]"));r&&(Xe=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Ge[e]}var Je="_multi_value_";function et(e){return _e(ze(e),we).replace(/\{%%%\:[^;];}/g,";")}function tt(e){return"object"===(0,C.Z)(e)&&e&&("_skip_check_"in e||Je in e)}function nt(e,t,n){if(!t)return e;var r=".".concat(t),a="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(a).concat(r.slice(i.length))].concat((0,o.Z)(n.slice(1))).join(" ")})).join(",")}var rt=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},u=r.root,c=r.injectHash,s=r.parentSelectors,l=n.hashId,f=n.layer,p=(n.path,n.hashPriority),d=n.transformers,h=void 0===d?[]:d,v=(n.linters,""),m={};function y(t){var r=t.getName(l);if(!m[r]){var o=e(t.style,n,{root:!1,parentSelectors:s}),i=(0,a.Z)(o,1)[0];m[r]="@keyframes ".concat(t.getName(l)).concat(i)}}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){Array.isArray(e)?g(e,t):e&&t.push(e)})),t}var b=g(Array.isArray(t)?t:[t]);return b.forEach((function(t){var r="string"!=typeof t||u?t:{};if("string"==typeof r)v+="".concat(r,"\n");else if(r._keyframe)y(r);else{var f=h.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(f).forEach((function(t){var r=f[t];if("object"!==(0,C.Z)(r)||!r||"animationName"===t&&r._keyframe||tt(r)){var d;function S(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;ue[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(y(t),r=t.getName(l)),v+="".concat(n,":").concat(r,";")}var h=null!==(d=null==r?void 0:r.value)&&void 0!==d?d:r;"object"===(0,C.Z)(r)&&null!=r&&r[Je]&&Array.isArray(h)?h.forEach((function(e){S(t,e)})):S(t,h)}else{var g=!1,b=t.trim(),_=!1;(u||c)&&l?b.startsWith("@")?g=!0:b=nt("&"===b?"":t,l,p):!u||l||"&"!==b&&""!==b||(b="",_=!0);var w=e(r,n,{root:_,injectHash:g,parentSelectors:[].concat((0,o.Z)(s),[b])}),x=(0,a.Z)(w,2),k=x[0],E=x[1];m=(0,i.Z)((0,i.Z)({},m),E),v+="".concat(b).concat(k)}}))}})),u?f&&(v&&(v="@layer ".concat(f.name," {").concat(v,"}")),f.dependencies&&(m["@layer ".concat(f.name)]=f.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(f.name,";")})).join("\n"))):v="{".concat(v,"}"),[v,m]};function at(e,t){return u("".concat(e.join("%")).concat(t))}function ot(){return null}var it="style";function ut(e,t){var n=e.token,u=e.path,l=e.hashId,f=e.layer,p=e.nonce,d=e.clientOnly,h=e.order,v=void 0===h?0:h,m=s.useContext(S),y=m.autoClear,g=(m.mock,m.defaultCache),x=m.hashPriority,k=m.container,E=m.ssrInline,C=m.transformers,O=m.linters,j=m.cache,A=m.layer,T=n._tokenKey,I=[T];A&&I.push("layer"),I.push.apply(I,(0,o.Z)(u));var M=B;var R=Q(it,I,(function(){var e=I.join("|");if(Qe(e)){var n=function(e){var t=Ge[e],n=null;if(t&&(0,P.Z)())if(Xe)n=Ke;else{var r=document.querySelector("style[".concat(_,'="').concat(Ge[e],'"]'));r?n=r.innerHTML:delete Ge[e]}return[n,t]}(e),r=(0,a.Z)(n,2),o=r[0],i=r[1];if(o)return[o,T,i,{},d,v]}var c=t(),s=rt(c,{hashId:l,hashPriority:x,layer:A?f:void 0,path:u.join("-"),transformers:C,linters:O}),p=(0,a.Z)(s,2),h=p[0],m=p[1],y=et(h),g=at(I,y);return[y,T,g,m,d,v]}),(function(e,t){var n=(0,a.Z)(e,3)[2];(t||y)&&B&&(0,c.jL)(n,{mark:_})}),(function(e){var t=(0,a.Z)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(M&&n!==Ke){var u={mark:_,prepend:!A&&"queue",attachTo:k,priority:v},s="function"==typeof p?p():p;s&&(u.csp={nonce:s});var l=[],f=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?l.push(e):f.push(e)})),l.forEach((function(e){(0,c.hq)(et(o[e]),"_layer-".concat(e),(0,i.Z)((0,i.Z)({},u),{},{prepend:!0}))}));var d=(0,c.hq)(n,r,u);d[w]=j.instanceId,d.setAttribute(b,T),f.forEach((function(e){(0,c.hq)(et(o[e]),"_effect-".concat(e),u)}))}})),L=(0,a.Z)(R,3),Z=L[0],D=L[1],N=L[2];return function(e){var t,n;E&&!M&&g?t=s.createElement("style",(0,ie.Z)({},(n={},(0,r.Z)(n,b,D),(0,r.Z)(n,_,N),n),{dangerouslySetInnerHTML:{__html:Z}})):t=s.createElement(ot,null);return s.createElement(s.Fragment,null,t,e)}}var ct,st="cssVar",lt=function(e,t){var n=e.key,r=e.prefix,i=e.unitless,u=e.ignore,l=e.token,f=e.scope,p=void 0===f?"":f,d=(0,s.useContext)(S),h=d.cache.instanceId,v=d.container,m=l._tokenKey,y=[].concat((0,o.Z)(e.path),[n,p,m]);return Q(st,y,(function(){var e=t(),o=W(e,n,{prefix:r,unitless:i,ignore:u,scope:p}),c=(0,a.Z)(o,2),s=c[0],l=c[1];return[s,l,at(y,l),n]}),(function(e){var t=(0,a.Z)(e,3)[2];B&&(0,c.jL)(t,{mark:_})}),(function(e){var t=(0,a.Z)(e,3),r=t[1],o=t[2];if(r){var i=(0,c.hq)(r,o,{mark:_,prepend:"queue",attachTo:v,priority:-999});i[w]=h,i.setAttribute(b,n)}}))};ct={},(0,r.Z)(ct,it,(function(e,t,n){var r=(0,a.Z)(e,6),o=r[0],i=r[1],u=r[2],c=r[3],s=r[4],l=r[5],f=(n||{}).plain;if(s)return null;var p=o,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)};return p=z(o,i,u,d,f),c&&Object.keys(c).forEach((function(e){if(!t[e]){t[e]=!0;var n=z(et(c[e]),i,"_effect-".concat(e),d,f);e.startsWith("@layer")?p=n+p:p+=n}})),[l,u,p]})),(0,r.Z)(ct,ae,(function(e,t,n){var r=(0,a.Z)(e,5),o=r[2],i=r[3],u=r[4],c=(n||{}).plain;if(!i)return null;var s=o._tokenKey;return[-999,s,z(i,u,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),(0,r.Z)(ct,st,(function(e,t,n){var r=(0,a.Z)(e,4),o=r[1],i=r[2],u=r[3],c=(n||{}).plain;if(!o)return null;return[-999,i,z(o,u,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]}));var ft=function(){function e(t,n){(0,h.Z)(this,e),(0,r.Z)(this,"name",void 0),(0,r.Z)(this,"style",void 0),(0,r.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,v.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}(),pt=ft;function dt(e){return e.notSplit=!0,e}var ht={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:dt(["borderTop","borderBottom"]),borderBlockStart:dt(["borderTop"]),borderBlockEnd:dt(["borderBottom"]),borderInline:dt(["borderLeft","borderRight"]),borderInlineStart:dt(["borderLeft"]),borderInlineEnd:dt(["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 vt(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var mt={visit:function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n],o=ht[n];if(!o||"number"!=typeof r&&"string"!=typeof r)t[n]=r;else{var i=function(e){if("number"==typeof e)return[[e],!1];var t=String(e).trim(),n=t.match(/(.*)(!important)/),r=(n?n[1]:t).trim().split(/\s+/),a=[],o=0;return[r.reduce((function(e,t){if(t.includes("(")||t.includes(")")){var n=t.split("(").length-1,r=t.split(")").length-1;o+=n-r}return o>=0&&a.push(t),0===o&&(e.push(a.join(" ")),a=[]),e}),[]),!!n]}(r),u=(0,a.Z)(i,2),c=u[0],s=u[1];o.length&&o.notSplit?o.forEach((function(e){t[e]=vt(r,s)})):1===o.length?t[o[0]]=vt(c[0],s):2===o.length?o.forEach((function(e,n){var r;t[e]=vt(null!==(r=c[n])&&void 0!==r?r:c[0],s)})):4===o.length?o.forEach((function(e,n){var r,a;t[e]=vt(null!==(r=null!==(a=c[n])&&void 0!==a?a:c[n-2])&&void 0!==r?r:c[0],s)})):t[n]=r}})),t}}},17835:function(e,t,n){"use strict";n.d(t,{t:function(){return c}});var r=n(4635);const a=Math.round;function o(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const i=(e,t,n)=>0===n?e:e/100;function u(e,t){const n=t||255;return e>n?n:e<0?0:e}class c{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,r.Z)(this,"isValid",!0),(0,r.Z)(this,"r",0),(0,r.Z)(this,"g",0),(0,r.Z)(this,"b",0),(0,r.Z)(this,"a",1),(0,r.Z)(this,"_h",void 0),(0,r.Z)(this,"_s",void 0),(0,r.Z)(this,"_l",void 0),(0,r.Z)(this,"_v",void 0),(0,r.Z)(this,"_max",void 0),(0,r.Z)(this,"_min",void 0),(0,r.Z)(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function a(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):a("rgb")?this.fromRgbString(n):a("hsl")?this.fromHslString(n):(a("hsv")||a("hsb"))&&this.fromHsvString(n)}else if(e instanceof c)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=u(e.r),this.g=u(e.g),this.b=u(e.b),this.a="number"==typeof e.a?u(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:a(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:a(o("r")),g:a(o("g")),b:a(o("b")),a:a(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>a((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=a(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=a(100*this.getSaturation()),n=a(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=u(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=a(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,u=0;const c=e/60,s=(1-Math.abs(2*n-1))*t,l=s*(1-Math.abs(c%2-1));c>=0&&c<1?(o=s,i=l):c>=1&&c<2?(o=l,i=s):c>=2&&c<3?(i=s,u=l):c>=3&&c<4?(i=l,u=s):c>=4&&c<5?(o=l,u=s):c>=5&&c<6&&(o=s,u=l);const f=n-s/2;this.r=a(255*(o+f)),this.g=a(255*(i+f)),this.b=a(255*(u+f))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=a(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,u=Math.floor(i),c=i-u,s=a(n*(1-t)*255),l=a(n*(1-t*c)*255),f=a(n*(1-t*(1-c))*255);switch(u){case 0:this.g=f,this.b=s;break;case 1:this.r=l,this.b=s;break;case 2:this.r=s,this.b=f;break;case 3:this.r=s,this.g=l;break;case 4:this.r=f,this.g=s;break;default:this.g=s,this.b=l}}fromHsvString(e){const t=o(e,i);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=o(e,i);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=o(e,((e,t)=>t.includes("%")?a(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}},7657:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(14809),a=n(50298),o=n(4635),i=n(62646),u=n(59301),c=n(92310),s=n.n(c),l=n(68361),f=n(18418),p=n(20439),d=n(93664),h=n(810),v=n(96452),m=n(48736);function y(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function g(e){return"object"===(0,d.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,d.Z)(e.icon)||"function"==typeof e.icon)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[y(n)]=r;return t}),{})}function _(e,t,n){return n?u.createElement(e.tag,(0,p.Z)((0,p.Z)({key:t},b(e.attrs)),n),(e.children||[]).map((function(n,r){return _(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):u.createElement(e.tag,(0,p.Z)({key:t},b(e.attrs)),(e.children||[]).map((function(n,r){return _(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function w(e){return(0,l.R_)(e)[0]}function x(e){return e?Array.isArray(e)?e:[e]:[]}var k=["icon","className","onClick","style","primaryColor","secondaryColor"],E={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var S=function(e){var t,n,r,a,o,c,s=e.icon,l=e.className,d=e.onClick,y=e.style,b=e.primaryColor,x=e.secondaryColor,S=(0,i.Z)(e,k),C=u.useRef(),P=E;if(b&&(P={primaryColor:b,secondaryColor:x||w(b)}),t=C,n=(0,u.useContext)(f.Z),r=n.csp,a=n.prefixCls,o=n.layer,c="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",a&&(c=c.replace(/anticon/g,a)),o&&(c="@layer ".concat(o," {\n").concat(c,"\n}")),(0,u.useEffect)((function(){var e=t.current,n=(0,v.A)(e);(0,h.hq)(c,"@ant-design-icons",{prepend:!o,csp:r,attachTo:n})}),[]),function(e,t){(0,m.ZP)(e,"[@ant-design/icons] ".concat(t))}(g(s),"icon should be icon definiton, but got ".concat(s)),!g(s))return null;var O=s;return O&&"function"==typeof O.icon&&(O=(0,p.Z)((0,p.Z)({},O),{},{icon:O.icon(P.primaryColor,P.secondaryColor)})),_(O.icon,"svg-".concat(O.name),(0,p.Z)((0,p.Z)({className:l,onClick:d,style:y,"data-icon":O.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},S),{},{ref:C}))};S.displayName="IconReact",S.getTwoToneColors=function(){return(0,p.Z)({},E)},S.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;E.primaryColor=t,E.secondaryColor=n||w(t),E.calculated=!!n};var C=S;function P(e){var t=x(e),n=(0,a.Z)(t,2),r=n[0],o=n[1];return C.setTwoToneColors({primaryColor:r,secondaryColor:o})}var O=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];P(l.iN.primary);var j=u.forwardRef((function(e,t){var n=e.className,c=e.icon,l=e.spin,p=e.rotate,d=e.tabIndex,h=e.onClick,v=e.twoToneColor,m=(0,i.Z)(e,O),y=u.useContext(f.Z),g=y.prefixCls,b=void 0===g?"anticon":g,_=y.rootClassName,w=s()(_,b,(0,o.Z)((0,o.Z)({},"".concat(b,"-").concat(c.name),!!c.name),"".concat(b,"-spin"),!!l||"loading"===c.name),n),k=d;void 0===k&&h&&(k=-1);var E=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,S=x(v),P=(0,a.Z)(S,2),j=P[0],A=P[1];return u.createElement("span",(0,r.Z)({role:"img","aria-label":c.name},m,{ref:t,tabIndex:k,onClick:h,className:w}),u.createElement(C,{icon:c,primaryColor:j,secondaryColor:A,style:E}))}));j.displayName="AntdIcon",j.getTwoToneColor=function(){var e=C.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},j.setTwoToneColor=P;var A=j},18418:function(e,t,n){"use strict";var r=(0,n(59301).createContext)({});t.Z=r},29679:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(14809),a=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},i=n(7657),u=function(e,t){return a.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=a.forwardRef(u)},19248:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(14809),a=n(59301),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},i=n(7657),u=function(e,t){return a.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=a.forwardRef(u)},99267:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(14809),a=n(59301),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},i=n(7657),u=function(e,t){return a.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=a.forwardRef(u)},96512:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(14809),a=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},i=n(7657),u=function(e,t){return a.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=a.forwardRef(u)},78987:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(14809),a=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},i=n(7657),u=function(e,t){return a.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=a.forwardRef(u)},58617:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(14809),a=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},i=n(7657),u=function(e,t){return a.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=a.forwardRef(u)},43403:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(50298),a=n(59301),o=n(4676),i=n(47273),u=(n(48736),n(8654)),c=a.createContext(null),s=n(95190),l=n(34280),f=[];var p=n(810),d=n(75152);var h="rc-util-locker-".concat(Date.now()),v=0;function m(e){var t=!!e,n=a.useState((function(){return v+=1,"".concat(h,"_").concat(v)})),o=(0,r.Z)(n,1)[0];(0,l.Z)((function(){if(t){var e=(0,d.o)(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,p.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else(0,p.jL)(o);return function(){(0,p.jL)(o)}}),[t,o])}var y=!1;var g=function(e){return!1!==e&&((0,i.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};var b=a.forwardRef((function(e,t){var n=e.open,p=e.autoLock,d=e.getContainer,h=(e.debug,e.autoDestroy),v=void 0===h||h,b=e.children,_=a.useState(n),w=(0,r.Z)(_,2),x=w[0],k=w[1],E=x||n;a.useEffect((function(){(v||n)&&k(n)}),[n,v]);var S=a.useState((function(){return g(d)})),C=(0,r.Z)(S,2),P=C[0],O=C[1];a.useEffect((function(){var e=g(d);O(null!=e?e:null)}));var j=function(e,t){var n=a.useState((function(){return(0,i.Z)()?document.createElement("div"):null})),o=(0,r.Z)(n,1)[0],u=a.useRef(!1),p=a.useContext(c),d=a.useState(f),h=(0,r.Z)(d,2),v=h[0],m=h[1],y=p||(u.current?void 0:function(e){m((function(t){return[e].concat((0,s.Z)(t))}))});function g(){o.parentElement||document.body.appendChild(o),u.current=!0}function b(){var e;null===(e=o.parentElement)||void 0===e||e.removeChild(o),u.current=!1}return(0,l.Z)((function(){return e?p?p(g):g():b(),b}),[e]),(0,l.Z)((function(){v.length&&(v.forEach((function(e){return e()})),m(f))}),[v]),[o,y]}(E&&!P),A=(0,r.Z)(j,2),T=A[0],I=A[1],M=null!=P?P:T;m(p&&n&&(0,i.Z)()&&(M===T||M===document.body));var R=null;b&&(0,u.Yr)(b)&&t&&(R=b.ref);var L=(0,u.x1)(R,t);if(!E||!(0,i.Z)()||void 0===P)return null;var Z,D=!1===M||("boolean"==typeof Z&&(y=Z),y),N=b;return t&&(N=a.cloneElement(b,{ref:L})),a.createElement(c.Provider,{value:I},D?N:(0,o.createPortal)(N,M))}))},1499:function(e,t){"use strict";var n=new function(e){var t={},n={channels:t,subscribe:function(e,n){return t[e]||(t[e]=[]),t[e].push(n),this.unsubscribe.bind(null,e,n)},unsubscribe:function(e,n){var r=t[e],a=-1;if(r){for(var o=0;o=0)return t[e].splice(a,1),!0}return!1},publish:function(e){if(!t[e])return!1;var n=Array.prototype.slice.call(arguments,1);return t[e].forEach((function(e){e.apply(null,n)})),this}};return e?Object.assign(e,n):n};t.Z=n},49264:function(e,t,n){"use strict";n.d(t,{zt:function(){return rr},$j:function(){return nr},Ue:function(){return kn}});var r={};n.r(r),n.d(r,{actionChannel:function(){return Xe},all:function(){return Fe},apply:function(){return He},call:function(){return ze},cancel:function(){return Ye},cancelled:function(){return Qe},cps:function(){return Ue},flush:function(){return Je},fork:function(){return We},getContext:function(){return et},join:function(){return Ge},put:function(){return $e},race:function(){return Be},select:function(){return Ke},setContext:function(){return tt},spawn:function(){return Ve},take:function(){return De},takeEvery:function(){return jt},takeLatest:function(){return At},takem:function(){return Ne},throttle:function(){return Tt}});n(82242);var a=n(59301),o=n(4635);function i(e){for(var t=1;t=0&&e.splice(n,1)}var Z=function(e){var t=Array(e.length);for(var n in e)I(e,n)&&(t[n]=e[n]);return t};function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=y({},e),n=new Promise((function(e,n){t.resolve=e,t.reject=n}));return t.promise=n,t}function N(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=void 0,r=new Promise((function(r){n=setTimeout((function(){return r(t)}),e)}));return r[k]=function(){return clearTimeout(n)},r}function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(){return++e}}var F=$(),B=function(e){throw e},q=function(e){return{value:e,done:!0}};function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments[3],a={name:n,next:e,throw:t,return:q};return r&&(a[w]=!0),"undefined"!=typeof Symbol&&(a[Symbol.iterator]=function(){return a}),a}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";"undefined"==typeof window?console.log("redux-saga "+e+": "+t+"\n"+(n&&n.stack||n)):console[e](t,n)}function U(e,t){return function(){return e.apply(void 0,arguments)}}var W=function(e,t){return e+" has been deprecated in favor of "+t+", please update your code"},V=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},G=function(e,t){return(e?e+".":"")+"setContext(props): argument "+t+" is not a plain object"},Y=function(e){return function(t){return e(Object.defineProperty(t,E,{value:!0}))}},K="Channel's Buffer overflow!",X={isEmpty:P,put:O,take:O};function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments[1],n=new Array(e),r=0,a=0,o=0,i=function(t){n[a]=t,a=(a+1)%e,r++},u=function(){if(0!=r){var t=n[o];return n[o]=null,r--,o=(o+1)%e,t}},c=function(){for(var e=[];r;)e.push(u());return e};return{isEmpty:function(){return 0==r},put:function(u){if(r0&&void 0!==arguments[0]?arguments[0]:ee(),t=!1,n=[];function r(){if(t&&n.length)throw V("Cannot have a closed channel with pending takers");if(n.length&&!e.isEmpty())throw V("Cannot have pending takers with non empty buffer")}function a(a){if(r(),A(a,M.notUndef,ve),!t){if(!n.length)return e.put(a);for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:J(),n=arguments[2];arguments.length>2&&A(n,M.func,"Invalid match function passed to eventChannel");var r=me(t),a=function(){r.__closed__||(o&&o(),r.close())},o=e((function(e){pe(e)?a():n&&!n(e)||r.put(e)}));if(r.__closed__&&o(),!M.func(o))throw new Error("in eventChannel: subscribe should return a function to unsubscribe");return{take:r.take,flush:r.flush,close:a}}function ge(e){var t=ye((function(t){return e((function(e){e[E]?t(e):oe((function(){return t(e)}))}))}));return se({},t,{take:function(e,n){arguments.length>1&&(A(n,M.func,"channel.take's matcher argument must be a function"),e[x]=n),t.take(e)}})}var be=b("IO"),_e="TAKE",we="PUT",xe="RACE",ke="CALL",Ee="CPS",Se="FORK",Ce="JOIN",Pe="CANCEL",Oe="SELECT",je="ACTION_CHANNEL",Ae="CANCELLED",Te="FLUSH",Ie="GET_CONTEXT",Me="SET_CONTEXT",Re="\n(HINT: if you are getting this errors in tests, consider using createMockTask from redux-saga/utils)",Le=function(e,t){var n;return(n={})[be]=!0,n[e]=t,n},Ze=function(e){return A(rt.fork(e),M.object,"detach(eff): argument must be a fork effect"),e[Se].detached=!0,e};function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*";if(arguments.length&&A(arguments[0],M.notUndef,"take(patternOrChannel): patternOrChannel is undefined"),M.pattern(e))return Le(_e,{pattern:e});if(M.channel(e))return Le(_e,{channel:e});throw new Error("take(patternOrChannel): argument "+String(e)+" is not valid channel or a valid pattern")}De.maybe=function(){var e=De.apply(void 0,arguments);return e[_e].maybe=!0,e};var Ne=U(De.maybe);function $e(e,t){return arguments.length>1?(A(e,M.notUndef,"put(channel, action): argument channel is undefined"),A(e,M.channel,"put(channel, action): argument "+e+" is not a valid channel"),A(t,M.notUndef,"put(channel, action): argument action is undefined")):(A(e,M.notUndef,"put(action): argument action is undefined"),t=e,e=null),Le(we,{channel:e,action:t})}function Fe(e){return Le("ALL",e)}function Be(e){return Le(xe,e)}function qe(e,t,n){A(t,M.notUndef,e+": argument fn is undefined");var r=null;if(M.array(t)){var a=t;r=a[0],t=a[1]}else if(t.fn){var o=t;r=o.context,t=o.fn}return r&&M.string(t)&&M.func(r[t])&&(t=r[t]),A(t,M.func,e+": argument "+t+" is not a function"),{context:r,fn:t,args:n}}function ze(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:[];return Le(ke,qe("apply",{context:e,fn:t},n))}function Ue(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1)return Fe(t.map((function(e){return Ge(e)})));var r=t[0];return A(r,M.notUndef,"join(task): argument task is undefined"),A(r,M.task,"join(task): argument "+r+" is not a valid Task object "+Re),Le(Ce,r)}function Ye(){for(var e=arguments.length,t=Array(e),n=0;n1)return Fe(t.map((function(e){return Ye(e)})));var r=t[0];return 1===t.length&&(A(r,M.notUndef,"cancel(task): argument task is undefined"),A(r,M.task,"cancel(task): argument "+r+" is not a valid Task object "+Re)),Le(Pe,r||S)}function Ke(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1&&(A(t,M.notUndef,"actionChannel(pattern, buffer): argument buffer is undefined"),A(t,M.buffer,"actionChannel(pattern, buffer): argument "+t+" is not a valid buffer")),Le(je,{pattern:e,buffer:t})}function Qe(){return Le(Ae,{})}function Je(e){return A(e,M.channel,"flush(channel): argument "+e+" is not valid channel"),Le(Te,e)}function et(e){return A(e,M.string,"getContext(prop): argument "+e+" is not a string"),Le(Ie,e)}function tt(e){return A(e,M.object,G(null,e)),Le(Me,e)}$e.resolve=function(){var e=$e.apply(void 0,arguments);return e[we].resolve=!0,e},$e.sync=U($e.resolve);var nt=function(e){return function(t){return t&&t[be]&&t[e]}},rt={take:nt(_e),put:nt(we),all:nt("ALL"),race:nt(xe),call:nt(ke),cps:nt(Ee),fork:nt(Se),join:nt(Ce),cancel:nt(Pe),select:nt(Oe),actionChannel:nt(je),cancelled:nt(Ae),flush:nt(Te),getContext:nt(Ie),setContext:nt(Me)},at=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(){return O},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"anonymous",c=arguments[8];A(e,M.iterator,ut);var s="[...effects]",l=U(K,W(s,"all("+s+")")),f=o.sagaMonitor,p=o.logger,d=o.onError,h=p||H,v=function(e){var t=e.sagaStack;!t&&e.stack&&(t=-1!==e.stack.split("\n")[0].indexOf(e.message)?e.stack:"Error: "+e.message+"\n"+e.stack),h("error","uncaught at "+u,t||e.message||e)},m=ge(t),y=Object.create(a);C.cancel=O;var g=ue(i,u,e,c),b={name:u,cancel:x,isRunning:!0},w=vt(0,b,P);function x(){b.isRunning&&!b.isCancelled&&(b.isCancelled=!0,C(st))}function E(){e._isRunning&&!e._isCancelled&&(e._isCancelled=!0,w.cancelAll(),P(st))}return c&&(c.cancel=E),e._isRunning=!0,C(),g;function C(t,n){if(!b.isRunning)throw new Error("Trying to resume an already finished generator");try{var r=void 0;n?r=e.throw(t):t===st?(b.isCancelled=!0,C.cancel(),r=M.func(e.return)?e.return(st):{done:!0,value:st}):r=t===ct?M.func(e.return)?e.return():{done:!0}:e.next(t),r.done?(b.isMainRunning=!1,b.cont&&b.cont(r.value)):j(r.value,i,"",C)}catch(e){b.isCancelled&&v(e),b.isMainRunning=!1,b.cont(e,!0)}}function P(t,n){e._isRunning=!1,m.close(),n?(t instanceof Error&&Object.defineProperty(t,"sagaStack",{value:"at "+u+" \n "+(t.sagaStack||t.stack),configurable:!0}),g.cont||(t instanceof Error&&d?d(t):v(t)),e._error=t,e._isAborted=!0,e._deferredEnd&&e._deferredEnd.reject(t)):(e._result=t,e._deferredEnd&&e._deferredEnd.resolve(t)),g.cont&&g.cont(t,n),g.joiners.forEach((function(e){return e.cb(t,n)})),g.joiners=null}function j(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments[3],a=F();f&&f.effectTriggered({effectId:a,parentEffectId:t,label:n,effect:e});var o=void 0;function i(e,t){o||(o=!0,r.cancel=O,f&&(t?f.effectRejected(a,e):f.effectResolved(a,e)),r(e,t))}i.cancel=O,r.cancel=function(){if(!o){o=!0;try{i.cancel()}catch(e){v(e)}i.cancel=O,f&&f.effectCancelled(a)}};var c=void 0;return M.promise(e)?T(e,i):M.helper(e)?z(yt(e),a,i):M.iterator(e)?I(e,a,u,i):M.array(e)?l(e,a,i):(c=rt.take(e))?N(c,i):(c=rt.put(e))?$(c,i):(c=rt.all(e))?K(c,a,i):(c=rt.race(e))?X(c,a,i):(c=rt.call(e))?B(c,a,i):(c=rt.cps(e))?q(c,i):(c=rt.fork(e))?z(c,a,i):(c=rt.join(e))?V(c,i):(c=rt.cancel(e))?Y(c,i):(c=rt.select(e))?Q(c,i):(c=rt.actionChannel(e))?J(c,i):(c=rt.flush(e))?ne(c,i):(c=rt.cancelled(e))?te(c,i):(c=rt.getContext(e))?re(c,i):(c=rt.setContext(e))?ae(c,i):i(e)}function T(e,t){var n=e[k];M.func(n)?t.cancel=n:M.func(e.abort)&&(t.cancel=function(){return e.abort()}),e.then(t,(function(e){return t(e,!0)}))}function I(e,a,i,u){gt(e,t,n,r,y,o,a,i,u)}function N(e,t){var n=e.channel,r=e.pattern,a=e.maybe;n=n||m;var o=function(e){return e instanceof Error?t(e,!0):pe(e)&&!a?t(ct):t(e)};try{n.take(o,ht(r))}catch(e){return t(e,!0)}t.cancel=o.cancel}function $(e,t){var r=e.channel,a=e.action,o=e.resolve;oe((function(){var e=void 0;try{e=(r?r.put:n)(a)}catch(e){if(r||o)return t(e,!0);v(e)}if(!o||!M.promise(e))return t(e);T(e,t)}))}function B(e,t,n){var r=e.context,a=e.fn,o=e.args,i=void 0;try{i=a.apply(r,o)}catch(e){return n(e,!0)}return M.promise(i)?T(i,n):M.iterator(i)?I(i,t,a.name,n):n(i)}function q(e,t){var n=e.context,r=e.fn,a=e.args;try{var o=function(e,n){return M.undef(e)?t(n):t(e,!0)};r.apply(n,a.concat(o)),o.cancel&&(t.cancel=function(){return o.cancel()})}catch(e){return t(e,!0)}}function z(e,a,i){var u=e.context,c=e.fn,s=e.args,l=e.detached,f=mt({context:u,fn:c,args:s});try{ie();var p=gt(f,t,n,r,y,o,a,c.name,l?null:O);l?i(p):f._isRunning?(w.addTask(p),i(p)):f._error?w.abort(f._error):i(p)}finally{ce()}}function V(e,t){if(e.isRunning()){var n={task:g,cb:t};t.cancel=function(){return L(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())}function Y(e,t){e===S&&(e=g),e.isRunning()&&e.cancel(),t()}function K(e,t,n){var r=Object.keys(e);if(!r.length)return n(M.array(e)?[]:{});var a=0,o=void 0,i={},u={};r.forEach((function(t){var c=function(u,c){o||(c||pe(u)||u===ct||u===st?(n.cancel(),n(u,c)):(i[t]=u,++a===r.length&&(o=!0,n(M.array(e)?Z(at({},i,{length:r.length})):i))))};c.cancel=O,u[t]=c})),n.cancel=function(){o||(o=!0,r.forEach((function(e){return u[e].cancel()})))},r.forEach((function(n){return j(e[n],t,n,u[n])}))}function X(e,t,n){var r=void 0,a=Object.keys(e),o={};a.forEach((function(t){var i=function(o,i){if(!r)if(i)n.cancel(),n(o,!0);else if(!pe(o)&&o!==ct&&o!==st){var u;n.cancel(),r=!0;var c=((u={})[t]=o,u);n(M.array(e)?[].slice.call(at({},c,{length:a.length})):c)}};i.cancel=O,o[t]=i})),n.cancel=function(){r||(r=!0,a.forEach((function(e){return o[e].cancel()})))},a.forEach((function(n){r||j(e[n],t,n,o[n])}))}function Q(e,t){var n=e.selector,a=e.args;try{t(n.apply(void 0,[r()].concat(a)))}catch(e){t(e,!0)}}function J(e,n){var r=e.pattern,a=e.buffer,o=ht(r);o.pattern=r,n(ye(t,a||ee(),o))}function te(e,t){t(!!b.isCancelled)}function ne(e,t){e.flush(t)}function re(e,t){t(y[e])}function ae(e,t){R(y,e),t()}function ue(e,t,n,r){var a,o,i;return n._deferredEnd=null,(o={})[_]=!0,o.id=e,o.name=t,(i={})[a="done"]=i[a]||{},i[a].get=function(){if(n._deferredEnd)return n._deferredEnd.promise;var e=D();return n._deferredEnd=e,n._isRunning||(n._error?e.reject(n._error):e.resolve(n._result)),e.promise},o.cont=r,o.joiners=[],o.cancel=E,o.isRunning=function(){return n._isRunning},o.isCancelled=function(){return n._isCancelled},o.isAborted=function(){return n._isAborted},o.result=function(){return n._result},o.error=function(){return n._error},o.setContext=function(e){A(e,M.object,G("task",e)),R(y,e)},it(o,i),o}}var bt="runSaga(storeInterface, saga, ...args): saga argument must be a Generator function!";function _t(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var xt={done:!0,value:void 0},kt={};function Et(e){return M.channel(e)?"channel":Array.isArray(e)?String(e.map((function(e){return String(e)}))):String(e)}function St(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"iterator",r=void 0,a=t;function o(t,n){if(a===kt)return xt;if(n)throw a=kt,n;r&&r(t);var o=e[a](),i=o[0],u=o[1],c=o[2];return r=c,(a=i)===kt?xt:u}return z(o,(function(e){return o(null,e)}),n,!0)}function Ct(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a2?n-2:0),a=2;a3?r-3:0),o=3;o2?n-2:0),a=2;a2?n-2:0),a=2;a3?r-3:0),o=3;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.context,n=void 0===t?{}:t,r=wt(e,["context"]),a=r.sagaMonitor,o=r.logger,i=r.onError;if(M.func(r))throw new Error("Saga middleware no longer accept Generator functions. Use sagaMiddleware.run instead");if(o&&!M.func(o))throw new Error("`options.logger` passed to the Saga middleware is not a function!");if(i&&!M.func(i))throw new Error("`options.onError` passed to the Saga middleware is not a function!");if(r.emitter&&!M.func(r.emitter))throw new Error("`options.emitter` passed to the Saga middleware is not a function!");function u(e){var t=e.getState,c=e.dispatch,s=de();return s.emit=(r.emitter||j)(s.emit),u.run=_t.bind(null,{context:n,subscribe:s.subscribe,dispatch:c,getState:t,sagaMonitor:a,logger:o,onError:i}),function(e){return function(t){a&&a.actionDispatched&&a.actionDispatched(t);var n=e(t);return s.emit(t),n}}}return u.run=function(){throw new Error("Before running a Saga, you must mount the Saga middleware on the Store using applyMiddleware")},u.setContext=function(e){A(e,M.object,G("sagaMiddleware",e)),R(n,e)},u},Mt=n(44520),Rt=n.n(Mt),Lt=n(93664),Zt=n(78639),Dt=n.n(Zt),Nt=n(95190),$t=n(21696),Ft=n(56754),Bt=n.n(Ft),qt=n(99153),zt=n(84851),Ht=n(89381),Ut=n.n(Ht),Wt=(n(60288),n(50298)),Vt=n(55267),Gt=n.n(Vt),Yt=Array.isArray.bind(Array),Kt=function(e){return"function"==typeof e},Xt=function(e){return e},Qt=function(){},Jt=function(e,t){for(var n=0,r=e.length;n-1&&(t[n]=e[n]),t}),{})}var on=function(){function e(){(0,qt.Z)(this,e),this._handleActions=null,this.hooks=rn.reduce((function(e,t){return e[t]=[],e}),{})}return(0,zt.Z)(e,[{key:"use",value:function(e){Rt()(Dt()(e),"plugin.use: plugin should be plain object");var t=this.hooks;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Rt()(t[n],"plugin.use: unknown plugin property: ".concat(n)),"_handleActions"===n?this._handleActions=e[n]:"extraEnhancers"===n?t[n]=e[n]:t[n].push(e[n]))}},{key:"apply",value:function(e,t){var n=this.hooks;Rt()(["onError","onHmr"].indexOf(e)>-1,"plugin.apply: hook ".concat(e," cannot be applied"));var r=n[e];return function(){if(r.length){var e=!0,n=!1,a=void 0;try{for(var o,i=r[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var u=o.value;u.apply(void 0,arguments)}}catch(e){n=!0,a=e}finally{try{e||null==i.return||i.return()}finally{if(n)throw a}}}else t&&t.apply(void 0,arguments)}}},{key:"get",value:function(e){var t,n=this.hooks;return Rt()(e in n,"plugin.get: hook ".concat(e," cannot be got")),"extraReducers"===e?function(e){var t={},n=!0,r=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done);n=!0){t=i({},t,o.value)}}catch(e){r=!0,a=e}finally{try{n||null==u.return||u.return()}finally{if(r)throw a}}return t}(n[e]):"onReducer"===e?(t=n[e],function(e){var n=!0,r=!1,a=void 0;try{for(var o,i=t[Symbol.iterator]();!(n=(o=i.next()).done);n=!0)e=(0,o.value)(e)}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}return e}):n[e]}}]),e}();function un(e){var t=e.reducers,n=e.initialState,r=e.plugin,a=e.sagaMiddleware,o=e.promiseMiddleware,i=e.createOpts.setupMiddlewares,u=void 0===i?Xt:i,c=r.get("extraEnhancers");Rt()(Yt(c),"[app.start] extraEnhancers should be array, but got ".concat((0,Lt.Z)(c)));var s=r.get("onAction"),l=u([o,a].concat((0,Nt.Z)(Ut()(s)))),f=v,p=[m.apply(void 0,(0,Nt.Z)(l))].concat((0,Nt.Z)(c));return d(t,n,f.apply(void 0,(0,Nt.Z)(p)))}function cn(e,t){var n="".concat(t.namespace).concat(en).concat(e),r=n.replace(/\/@@[^/]+?$/,"");return(Array.isArray(t.reducers)?t.reducers[0][r]:t.reducers&&t.reducers[r])||t.effects&&t.effects[r]?n:e}function sn(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return Gt().mark((function o(){var i;return Gt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:o.t0=Gt().keys(e);case 1:if((o.t1=o.t0()).done){o.next=7;break}if(i=o.t1.value,!Object.prototype.hasOwnProperty.call(e,i)){o.next=5;break}return o.delegateYield(Gt().mark((function o(){var u,c;return Gt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return u=ln(i,e[i],t,n,r,a),o.next=3,We(u);case 3:return c=o.sent,o.next=6,We(Gt().mark((function e(){return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,De("".concat(t.namespace,"/@@CANCEL_EFFECTS"));case 2:return e.next=4,Ye(c);case 4:case"end":return e.stop()}}),e)})));case 6:case"end":return o.stop()}}),o)}))(),"t2",5);case 5:o.next=1;break;case 7:case"end":return o.stop()}}),o)}))}function ln(e,t,n,a,o,i){var u,c,s=Gt().mark(v),l=t,f="takeEvery";if(Array.isArray(t)){var p=(0,Wt.Z)(t,1);l=p[0];var d=t[1];d&&d.type&&("throttle"===(f=d.type)&&(Rt()(d.ms,"app.start: opts.ms should be defined if type is throttle"),u=d.ms),"poll"===f&&(Rt()(d.delay,"app.start: opts.delay should be defined if type is poll"),c=d.delay)),Rt()(["watcher","takeEvery","takeLatest","throttle","poll"].indexOf(f)>-1,"app.start: effect type should be takeEvery, takeLatest, throttle, poll or watcher")}function h(){}function v(){var t,r,o,u,c,f,p,d,v,m=arguments;return Gt().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:for(t=m.length,r=new Array(t),o=0;o0?r[0]:{},c=u.__dva_resolve,f=void 0===c?h:c,p=u.__dva_reject,d=void 0===p?h:p,s.prev=2,s.next=5,$e({type:"".concat(e).concat(en,"@@start")});case 5:return s.next=7,l.apply(void 0,(0,Nt.Z)(r.concat(fn(n,i))));case 7:return v=s.sent,s.next=10,$e({type:"".concat(e).concat(en,"@@end")});case 10:f(v),s.next=17;break;case 13:s.prev=13,s.t0=s.catch(2),a(s.t0,{key:e,effectArgs:r}),s.t0._dontReject||d(s.t0);case 17:case"end":return s.stop()}}),s,null,[[2,13]])}var m=function(e,t,n,a){var o=!0,i=!1,u=void 0;try{for(var c,s=e[Symbol.iterator]();!(o=(c=s.next()).done);o=!0){t=(0,c.value)(t,r,n,a)}}catch(e){i=!0,u=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw u}}return t}(o,v,n,e);switch(f){case"watcher":return v;case"takeLatest":return Gt().mark((function t(){return Gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,At(e,m);case 2:case"end":return t.stop()}}),t)}));case"throttle":return Gt().mark((function t(){return Gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Tt(u,e,m);case 2:case"end":return t.stop()}}),t)}));case"poll":return Gt().mark((function t(){var n,a,o,i,u,s,l;return Gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=function(e,t){var r;return Gt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.call;case 1:return n.next=4,r(m,t);case 4:return n.next=6,r(a,c);case 6:n.next=1;break;case 8:case"end":return n.stop()}}),n)},a=function(e){return new Promise((function(t){return setTimeout(t,e)}))},n=Gt().mark(o),i=ze,u=De,s=Be;case 4:return t.next=7,u("".concat(e,"-start"));case 7:return l=t.sent,t.next=10,s([i(o,r,l),u("".concat(e,"-stop"))]);case 10:t.next=4;break;case 12:case"end":return t.stop()}}),t)}));default:return Gt().mark((function t(){return Gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jt(e,m);case 2:case"end":return t.stop()}}),t)}))}}function fn(e,t){function n(n,r){Rt()(n,"dispatch: action should be a plain Object with type");var a=t.namespacePrefixWarning;(void 0===a||a)&&Bt()(0!==n.indexOf("".concat(e.namespace).concat(en)),"[".concat(r,"] ").concat(n," should not be prefixed with namespace ").concat(e.namespace))}function a(t){var r=t.type;return n(r,"sagaEffects.put"),$e(i({},t,{type:cn(r,e)}))}return a.resolve=function(t){var r=t.type;return n(r,"sagaEffects.put.resolve"),$e.resolve(i({},t,{type:cn(r,e)}))},i({},r,{put:a,take:function(t){return"string"==typeof t?(n(t,"sagaEffects.take"),De(cn(t,e))):Array.isArray(t)?De(t.map((function(t){return"string"==typeof t?(n(t,"sagaEffects.take"),cn(t,e)):t}))):De(t)}})}function pn(e){return e}function dn(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:pn;return function(n,r){var a=r.type;return Rt()(a,"dispatch: action should be a plain Object with type"),e===a?t(n,r):n}}(t,e[t])})),r=dn.apply(void 0,(0,Nt.Z)(n));return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,n=arguments.length>1?arguments[1]:void 0;return r(e,n)}}function vn(e,t,n){return Array.isArray(e)?e[1]((n||hn)(e[0],t)):(n||hn)(e||{},t)}function mn(e){return function(){return function(t){return function(n){return function(t){if(!t||"string"!=typeof t)return!1;var n=t.split(en),r=(0,Wt.Z)(n,1)[0],a=e._models.filter((function(e){return e.namespace===r}))[0];if(a&&a.effects&&a.effects[t])return!0;return!1}(n.type)?new Promise((function(e,r){t(i({__dva_resolve:e,__dva_reject:r},n))})):t(n)}}}}function yn(e,t){return function(n){var r=n.type;return Rt()(r,"dispatch: action should be a plain Object with type"),Bt()(0!==r.indexOf("".concat(t.namespace).concat(en)),"dispatch: ".concat(r," should not be prefixed with namespace ").concat(t.namespace)),e(i({},n,{type:cn(r,t)}))}}function gn(e,t,n,r){var a=[],o=[];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var u=(0,e[i])({dispatch:yn(n._store.dispatch,t),history:n._history},r);Kt(u)?a.push(u):o.push(i)}return{funcs:a,nonFuncs:o}}function bn(e,t){if(e[t]){var n=e[t],r=n.funcs,a=n.nonFuncs;Bt()(0===a.length,"[app.unmodel] subscription should return unlistener function, check these subscriptions ".concat(a.join(", ")));var o=!0,i=!1,u=void 0;try{for(var c,s=r[Symbol.iterator]();!(o=(c=s.next()).done);o=!0){(0,c.value)()}}catch(e){i=!0,u=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw u}}delete e[t]}}var _n=Qt,wn=Jt,xn={namespace:"@@dva",state:0,reducers:{UPDATE:function(e){return e+1}}};function kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initialReducer,r=t.setupApp,a=void 0===r?_n:r,o=new on;o.use(an(e));var u={_models:[nn(i({},xn))],_store:null,_plugin:o,use:o.use.bind(o),model:c,start:p};return u;function c(e){var t=nn(i({},e));return u._models.push(t),t}function s(t,n,r,a){a=c(a);var i=u._store;i.asyncReducers[a.namespace]=vn(a.reducers,a.state,o._handleActions),i.replaceReducer(t()),a.effects&&i.runSaga(u._getSaga(a.effects,a,n,o.get("onEffect"),e)),a.subscriptions&&(r[a.namespace]=gn(a.subscriptions,a,u,n))}function l(e,t,n,r){var a=u._store;delete a.asyncReducers[r],delete t[r],a.replaceReducer(e()),a.dispatch({type:"@@dva/UPDATE"}),a.dispatch({type:"".concat(r,"/@@CANCEL_EFFECTS")}),bn(n,r),u._models=u._models.filter((function(e){return e.namespace!==r}))}function f(e,t,n,r,a){var o=u._store,i=a.namespace,c=wn(u._models,(function(e){return e.namespace===i}));~c&&(o.dispatch({type:"".concat(i,"/@@CANCEL_EFFECTS")}),delete o.asyncReducers[i],delete t[i],bn(n,i),u._models.splice(c,1)),u.model(a),o.dispatch({type:"@@dva/UPDATE"})}function p(){var r=function(e,t){e&&("string"==typeof e&&(e=new Error(e)),e.preventDefault=function(){e._dontReject=!0},o.apply("onError",(function(e){throw new Error(e.stack||e)}))(e,u._store.dispatch,t))},c=It(),p=mn(u);u._getSaga=sn.bind(null);var d=[],v=i({},n),m=!0,y=!1,g=void 0;try{for(var b,_=u._models[Symbol.iterator]();!(m=(b=_.next()).done);m=!0){var w=b.value;v[w.namespace]=vn(w.reducers,w.state,o._handleActions),w.effects&&d.push(u._getSaga(w.effects,w,r,o.get("onEffect"),e))}}catch(e){y=!0,g=e}finally{try{m||null==_.return||_.return()}finally{if(y)throw g}}var x=o.get("onReducer"),k=o.get("extraReducers");Rt()(Object.keys(k).every((function(e){return!(e in v)})),"[app.start] extraReducers is conflict with other reducers, reducers list: ".concat(Object.keys(v).join(", "))),u._store=un({reducers:$(),initialState:e.initialState||{},plugin:o,createOpts:t,sagaMiddleware:c,promiseMiddleware:p});var E=u._store;E.runSaga=c.run,E.asyncReducers={};var S=o.get("onStateChange"),C=!0,P=!1,O=void 0;try{for(var j,A=function(){var e=j.value;E.subscribe((function(){e(E.getState())}))},T=S[Symbol.iterator]();!(C=(j=T.next()).done);C=!0)A()}catch(e){P=!0,O=e}finally{try{C||null==T.return||T.return()}finally{if(P)throw O}}d.forEach(c.run),a(u);var I={},M=!0,R=!1,L=void 0;try{for(var Z,D=this._models[Symbol.iterator]();!(M=(Z=D.next()).done);M=!0){var N=Z.value;N.subscriptions&&(I[N.namespace]=gn(N.subscriptions,N,u,r))}}catch(e){R=!0,L=e}finally{try{M||null==D.return||D.return()}finally{if(R)throw L}}function $(){return x(h(i({},v,k,u._store?u._store.asyncReducers:{})))}u.model=s.bind(u,$,r,I),u.unmodel=l.bind(u,$,v,I),u.replaceModel=f.bind(u,$,v,I,r)}}var En=n(37573),Sn=n(45097),Cn=n(4676);let Pn=function(e){e()};const On=()=>Pn,jn=Symbol.for("react-redux-context"),An="undefined"!=typeof globalThis?globalThis:{};function Tn(){var e;if(!a.createContext)return{};const t=null!=(e=An[jn])?e:An[jn]=new Map;let n=t.get(a.createContext);return n||(n=a.createContext(null),t.set(a.createContext,n)),n}const In=Tn();let Mn=null;var Rn=n(14809),Ln=n(74126),Zn=n(94266),Dn=n.n(Zn),Nn=n(23265);const $n=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Fn(e,t,n,r,{areStatesEqual:a,areOwnPropsEqual:o,areStatePropsEqual:i}){let u,c,s,l,f,p=!1;function d(p,d){const h=!o(d,c),v=!a(p,u,d,c);return u=p,c=d,h&&v?(s=e(u,c),t.dependsOnOwnProps&&(l=t(r,c)),f=n(s,l,c),f):h?(e.dependsOnOwnProps&&(s=e(u,c)),t.dependsOnOwnProps&&(l=t(r,c)),f=n(s,l,c),f):v?function(){const t=e(u,c),r=!i(t,s);return s=t,r&&(f=n(s,l,c)),f}():f}return function(a,o){return p?d(a,o):(u=a,c=o,s=e(u,c),l=t(r,c),f=n(s,l,c),p=!0,f)}}function Bn(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function qn(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function zn(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=qn(e);let a=r(t,n);return"function"==typeof a&&(r.mapToProps=a,r.dependsOnOwnProps=qn(a),a=r(t,n)),a},r}}function Hn(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function Un(e,t,n){return(0,Rn.Z)({},n,e,t)}const Wn={notify(){},get:()=>[]};function Vn(e,t){let n,r=Wn,a=0,o=!1;function i(){s.onStateChange&&s.onStateChange()}function u(){a++,n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){const e=On();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,a=n={callback:e,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){r&&null!==t&&(r=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}())}function c(){a--,n&&0===a&&(n(),n=void 0,r.clear(),r=Wn)}const s={addNestedSub:function(e){u();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,u())},tryUnsubscribe:function(){o&&(o=!1,c())},getListeners:()=>r};return s}const Gn=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?a.useLayoutEffect:a.useEffect;function Yn(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Kn(e,t){if(Yn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r{throw new Error("uSES not initialized!")};const Jn=[null,null];function er(e,t,n,r,a,o){e.current=r,n.current=!1,a.current&&(a.current=null,o())}function tr(e,t){return e===t}var nr=function(e,t,n,{pure:r,areStatesEqual:o=tr,areOwnPropsEqual:i=Kn,areStatePropsEqual:u=Kn,areMergedPropsEqual:c=Kn,forwardRef:s=!1,context:l=In}={}){const f=l,p=function(e){return e?"function"==typeof e?zn(e):Hn(e,"mapStateToProps"):Bn((()=>({})))}(e),d=function(e){return e&&"object"==typeof e?Bn((t=>function(e,t){const n={};for(const r in e){const a=e[r];"function"==typeof a&&(n[r]=(...e)=>t(a(...e)))}return n}(e,t))):e?"function"==typeof e?zn(e):Hn(e,"mapDispatchToProps"):Bn((e=>({dispatch:e})))}(t),h=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let a,o=!1;return function(t,n,i){const u=e(t,n,i);return o?r(u,a)||(a=u):(o=!0,a=u),a}}}(e):Hn(e,"mergeProps"):()=>Un}(n),v=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:v,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:o,areStatePropsEqual:u,areOwnPropsEqual:i,areMergedPropsEqual:c};function l(t){const[n,o,i]=a.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=(0,Ln.Z)(t,Xn);return[t.context,e,n]}),[t]),u=a.useMemo((()=>n&&n.Consumer&&(0,Nn.isContextConsumer)(a.createElement(n.Consumer,null))?n:f),[n,f]),c=a.useContext(u),s=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),l=Boolean(c)&&Boolean(c.store);const p=s?t.store:c.store,d=l?c.getServerState:p.getState,h=a.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:a}=t,o=(0,Ln.Z)(t,$n);return Fn(n(e,o),r(e,o),a(e,o),e,o)}(p.dispatch,r)),[p]),[m,y]=a.useMemo((()=>{if(!v)return Jn;const e=Vn(p,s?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,s,c]),g=a.useMemo((()=>s?c:(0,Rn.Z)({},c,{subscription:m})),[s,c,m]),b=a.useRef(),_=a.useRef(i),w=a.useRef(),x=a.useRef(!1),k=(a.useRef(!1),a.useRef(!1)),E=a.useRef();Gn((()=>(k.current=!0,()=>{k.current=!1})),[]);const S=a.useMemo((()=>()=>w.current&&i===_.current?w.current:h(p.getState(),i)),[p,i]),C=a.useMemo((()=>e=>m?function(e,t,n,r,a,o,i,u,c,s,l){if(!e)return()=>{};let f=!1,p=null;const d=()=>{if(f||!u.current)return;const e=t.getState();let n,d;try{n=r(e,a.current)}catch(e){d=e,p=e}d||(p=null),n===o.current?i.current||s():(o.current=n,c.current=n,i.current=!0,l())};return n.onStateChange=d,n.trySubscribe(),d(),()=>{if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(v,p,m,h,_,b,x,k,w,y,e):()=>{}),[m]);var P,O,j;let A;P=er,O=[_,b,x,i,w,y],Gn((()=>P(...O)),j);try{A=Qn(C,S,d?()=>h(d(),i):S)}catch(e){throw E.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${E.current.stack}\n\n`),e}Gn((()=>{E.current=void 0,w.current=void 0,b.current=A}));const T=a.useMemo((()=>a.createElement(e,(0,Rn.Z)({},A,{ref:o}))),[o,e,A]);return a.useMemo((()=>v?a.createElement(u.Provider,{value:g},T):T),[u,T,g])}const m=a.memo(l);if(m.WrappedComponent=e,m.displayName=l.displayName=n,s){const t=a.forwardRef((function(e,t){return a.createElement(m,(0,Rn.Z)({},e,{reactReduxForwardedRef:t}))}));return t.displayName=n,t.WrappedComponent=e,Dn()(t,e)}return Dn()(m,e)}};var rr=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",noopCheck:i="once"}){const u=a.useMemo((()=>{const t=Vn(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:i}}),[e,r,o,i]),c=a.useMemo((()=>e.getState()),[e]);Gn((()=>{const{subscription:t}=u;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),c!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[u,c]);const s=t||In;return a.createElement(s.Provider,{value:u},n)};var ar,or;ar=Sn.useSyncExternalStoreWithSelector,Mn=ar,(e=>{Qn=e})(En.useSyncExternalStore),or=Cn.unstable_batchedUpdates,Pn=or;n(37712)},34362:function(e,t,n){"use strict";n.d(t,{fi:function(){return l},m8:function(){return r}});var r,a=n(31468),o=n.n(a),i=n(82242),u=n.n(i),c=n(19340),s="/";function l(e){var t;return t="hash"===e.type?(0,c.q_)():"memory"===e.type?(0,c.PP)(e):(0,c.lX)(),e.basename&&(s=e.basename),r=u()(u()({},t),{},{push:function(e,n){t.push(f(e,t),n)},replace:function(e,n){t.replace(f(e,t),n)},get location(){return t.location},get action(){return t.action}}),t}function f(e,t){if("string"==typeof e)return"".concat(p(s)).concat(e);if("object"===o()(e)){var n=t.location.pathname;return u()(u()({},e),{},{pathname:e.pathname?"".concat(p(s)).concat(e.pathname):n})}throw new Error("Unexpected to: ".concat(e))}function p(e){return"/"===e.slice(-1)?e.slice(0,-1):e}},29181:function(e,t,n){"use strict";n.d(t,{gD:function(){return Ze},We:function(){return De}});var r={};n.r(r),n.d(r,{dva:function(){return f}});var a={};n.r(a),n.d(a,{innerProvider:function(){return le}});var o={};n.r(o),n.d(o,{rootContainer:function(){return Pe}});var i={};n.r(i),n.d(i,{dataflowProvider:function(){return je}});var u={};n.r(u),n.d(u,{i18nProvider:function(){return Re}});var c=n(6767),s=n(61186),l=n.n(s);l().locale("ZH-cn");var f={config:{onError:function(e){c.ZP.error(e.message,3)}}},p=n(59301),d=n(12708),h=n.n(d),v=n(12373),m=n.n(v),y=n(44520),g=n.n(y),b=n(19747),_=n.n(b);function w(){return w=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}var S={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},C={rel:["amphtml","canonical","alternate"]},P={type:["application/ld+json"]},O={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"]},j=Object.keys(S).map((function(e){return S[e]})),A={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},T=Object.keys(A).reduce((function(e,t){return e[A[t]]=t,e}),{}),I=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},M=function(e){var t=I(e,S.TITLE),n=I(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=I(e,"defaultTitle");return t||r||void 0},R=function(e){return I(e,"onChangeClientState")||function(){}},L=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return w({},e,t)}),{})},Z=function(e,t){return t.filter((function(e){return void 0!==e[S.BASE]})).map((function(e){return e[S.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a/g,">").replace(/"/g,""").replace(/'/g,"'")},H=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},U=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[A[n]||n]=e[n],t}),t)},W=function(e,t){return t.map((function(t,n){var r,a=((r={key:n})["data-rh"]=!0,r);return Object.keys(t).forEach((function(e){var n=A[e]||e;"innerHTML"===n||"cssText"===n?a.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:a[n]=t[e]})),p.createElement(e,a)}))},V=function(e,t,n){switch(e){case S.TITLE:return{toComponent:function(){return n=t.titleAttributes,(r={key:e=t.title})["data-rh"]=!0,a=U(n,r),[p.createElement(S.TITLE,a,e)];var e,n,r,a},toString:function(){return function(e,t,n,r){var a=H(n),o=$(t);return a?"<"+e+' data-rh="true" '+a+">"+z(o,r)+"":"<"+e+' data-rh="true">'+z(o,r)+""}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return U(t)},toString:function(){return H(t)}};default:return{toComponent:function(){return W(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+z(r[t],n)+'"';return e?e+" "+a:a}),""),o=r.innerHTML||r.cssText||"",i=-1===q.indexOf(e);return t+"<"+e+' data-rh="true" '+a+(i?"/>":">"+o+"")}),"")}(e,t,n)}}}},G=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,o=e.noscriptTags,i=e.styleTags,u=e.title,c=void 0===u?"":u,s=e.titleAttributes,l=e.linkTags,f=e.metaTags,p=e.scriptTags,d={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var h=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,a=F(e.metaTags,O),o=F(t,C),i=F(n,P);return{priorityMethods:{toComponent:function(){return[].concat(W(S.META,a.priority),W(S.LINK,o.priority),W(S.SCRIPT,i.priority))},toString:function(){return V(S.META,a.priority,r)+" "+V(S.LINK,o.priority,r)+" "+V(S.SCRIPT,i.priority,r)}},metaTags:a.default,linkTags:o.default,scriptTags:i.default}}(e);d=h.priorityMethods,l=h.linkTags,f=h.metaTags,p=h.scriptTags}return{priority:d,base:V(S.BASE,t,r),bodyAttributes:V("bodyAttributes",n,r),htmlAttributes:V("htmlAttributes",a,r),link:V(S.LINK,l,r),meta:V(S.META,f,r),noscript:V(S.NOSCRIPT,o,r),script:V(S.SCRIPT,p,r),style:V(S.STYLE,i,r),title:V(S.TITLE,{title:c,titleAttributes:s},r)}},Y=[],K=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?Y:n.instances},add:function(e){(n.canUseDOM?Y:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?Y:n.instances).indexOf(e);(n.canUseDOM?Y:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=G({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},X=p.createContext({}),Q=h().shape({setHelmet:h().func,helmetInstances:h().shape({get:h().func,add:h().func,remove:h().func})}),J="undefined"!=typeof document,ee=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new K(r.props.context,t.canUseDOM),r}return x(t,e),t.prototype.render=function(){return p.createElement(X.Provider,{value:this.helmetData.value},this.props.children)},t}(p.Component);ee.canUseDOM=J,ee.propTypes={context:h().shape({helmet:h().shape()}),children:h().node.isRequired},ee.defaultProps={context:{}},ee.displayName="HelmetProvider";var te=function(e,t){var n,r=document.head||document.querySelector(S.HEAD),a=r.querySelectorAll(e+"[data-rh]"),o=[].slice.call(a),i=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&("innerHTML"===a?r.innerHTML=t.innerHTML:"cssText"===a?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(a,void 0===t[a]?"":t[a]));r.setAttribute("data-rh","true"),o.some((function(e,t){return n=t,r.isEqualNode(e)}))?o.splice(n,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:i}},ne=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),a=r?r.split(","):[],o=[].concat(a),i=Object.keys(t),u=0;u=0;f-=1)n.removeAttribute(o[f]);a.length===o.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==i.join(",")&&n.setAttribute("data-rh",i.join(","))}},re=function(e,t){var n=e.baseTag,r=e.htmlAttributes,a=e.linkTags,o=e.metaTags,i=e.noscriptTags,u=e.onChangeClientState,c=e.scriptTags,s=e.styleTags,l=e.title,f=e.titleAttributes;ne(S.BODY,e.bodyAttributes),ne(S.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=$(e)),ne(S.TITLE,t)}(l,f);var p={baseTag:te(S.BASE,n),linkTags:te(S.LINK,a),metaTags:te(S.META,o),noscriptTags:te(S.NOSCRIPT,i),scriptTags:te(S.SCRIPT,c),styleTags:te(S.STYLE,s)},d={},h={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(d[e]=n),r.length&&(h[e]=p[e].oldTags)})),t&&t(),u(e,d,h)},ae=null,oe=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return w({},r,((t={})[n.type]=[].concat(r[n.type]||[],[w({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,o=e.newChildProps,i=e.nestedChildren;switch(r.type){case S.TITLE:return w({},a,((t={})[r.type]=i,t.titleAttributes=w({},o),t));case S.BODY:return w({},a,{bodyAttributes:w({},o)});case S.HTML:return w({},a,{htmlAttributes:w({},o)});default:return w({},a,((n={})[r.type]=w({},o),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=w({},t);return Object.keys(e).forEach((function(t){var r;n=w({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return g()(j.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+j.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),g()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``} ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,r={};return p.Children.forEach(e,(function(e){if(e&&e.props){var a=e.props,o=a.children,i=E(a,ie),u=Object.keys(i).reduce((function(e,t){return e[T[t]||t]=i[t],e}),{}),c=e.type;switch("symbol"==typeof c?c=c.toString():n.warnOnInvalidChildren(e,o),c){case S.FRAGMENT:t=n.mapChildrenToProps(o,t);break;case S.LINK:case S.META:case S.NOSCRIPT:case S.SCRIPT:case S.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:u,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:u,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(r,t)},n.render=function(){var e=this.props,t=e.children,n=E(e,ue),r=w({},n),a=n.helmetData;return t&&(r=this.mapChildrenToProps(t,r)),!a||a instanceof K||(a=new K(a.context,a.instances)),a?p.createElement(oe,w({},r,{context:a.value,helmetData:void 0})):p.createElement(X.Consumer,null,(function(e){return p.createElement(oe,w({},r,{context:e}))}))},t}(p.Component);ce.propTypes={base:h().object,bodyAttributes:h().object,children:h().oneOfType([h().arrayOf(h().node),h().node]),defaultTitle:h().string,defer:h().bool,encodeSpecialCharacters:h().bool,htmlAttributes:h().object,link:h().arrayOf(h().object),meta:h().arrayOf(h().object),noscript:h().arrayOf(h().object),onChangeClientState:h().func,script:h().arrayOf(h().object),style:h().arrayOf(h().object),title:h().string,titleAttributes:h().object,titleTemplate:h().string,prioritizeSeoTags:h().bool,helmetData:h().object},ce.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},ce.displayName="Helmet";var se={},le=function(e){return p.createElement(ee,{context:se},e)},fe=n(39647),pe=n.n(fe),de=n(79800),he=n.n(de),ve=n(82242),me=n.n(ve),ye=n(60840),ge=n(94706),be=n(66604),_e=n(18773),we=n(28440),xe=n.n(we),ke=n(37712),Ee=["appConfig"],Se=null;function Ce(e){var t=e.children,n=p.useState((function(){var e=(Se||(Se=De().applyPlugins({key:"antd",type:ge.ApplyPluginsType.modify,initialValue:me()({},{componentSize:"middle"})})),Se);e.appConfig;return pe()(e,Ee)})),r=he()(n,2),a=r[0],o=r[1];return a.prefixCls&&ye.ZP.config({prefixCls:a.prefixCls}),a.iconPrefixCls&&ye.ZP.config({iconPrefixCls:a.iconPrefixCls}),a.theme&&ye.ZP.config({theme:a.theme}),t=(0,ke.jsx)(ye.ZP,me()(me()({},a),{},{children:t})),t=(0,ke.jsx)(be.V9,{hashPriority:"high",transformers:[be.IJ],children:t}),t=(0,ke.jsx)(_e.C.Provider,{value:function(e){o((function(t){return xe()({},t,"function"==typeof e?e(t):e)}))},children:(0,ke.jsx)(_e.S.Provider,{value:a,children:t})})}function Pe(e){return(0,ke.jsx)(Ce,{children:e})}var Oe=n(46587);function je(e,t){return p.createElement(Oe.j,t,e)}n(65517);var Ae=n(24050),Te=n(27813);var Ie="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?p.useLayoutEffect:p.useEffect,Me=function(e){var t,n=(0,Ae.Kd)(),r=p.useState(n),a=he()(r,2),o=a[0],i=a[1],u=p.useState((function(){return(0,Ae.lw)(o,!0)})),c=he()(u,2),s=c[0],f=c[1],d=function(e){var t;null!==l()&&void 0!==l()&&l().locale&&l().locale((null===(t=Ae.H8[e])||void 0===t?void 0:t.momentLocale)||"en");i(e),f((0,Ae.lw)(e))};Ie((function(){return Ae.B.on(Ae.PZ,d),function(){Ae.B.off(Ae.PZ,d)}}),[]);var h=me()({},Te.Z),v=(0,Ae.Mg)();return(0,ke.jsx)(ye.ZP,{direction:v,locale:(null===(t=Ae.H8[o])||void 0===t?void 0:t.antd)||h,children:(0,ke.jsx)(Ae.eU,{value:s,children:e.children})})};function Re(e){return p.createElement(Me,null,e)}var Le=null;function Ze(){var e;return Le=ge.PluginManager.create({plugins:[{apply:(e=r,e.default?"function"==typeof e.default?e.default():e.default:e),path:void 0},{apply:a,path:void 0},{apply:o,path:void 0},{apply:i,path:void 0},{apply:u,path:void 0}],validKeys:["patchRoutes","patchClientRoutes","modifyContextOpts","modifyClientRenderOpts","rootContainer","innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","render","onRouteChange","antd","dva","locale","qiankun"]})}function De(){return Le}},94706:function(e,t,n){"use strict";n.d(t,{ApplyPluginsType:function(){return L},Link:function(){return b},Outlet:function(){return i.j3},PluginManager:function(){return Z},connect:function(){return a.$j},getDvaApp:function(){return o.Q},history:function(){return D.m8},useAppData:function(){return m.Ov},useLocation:function(){return i.TH},useOutletContext:function(){return i.bx},useParams:function(){return i.UO},useSearchParams:function(){return p}});var r=n(59301);n(18773);var a=n(49264),o=n(46587),i=(n(24050),n(85573),n(82242),n(39647),n(37712),n(35338)),u=n(19340);function c(){return c=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}const l=["onClick","reloadDocument","replace","state","target","to"];const f=(0,r.forwardRef)((function(e,t){let{onClick:n,reloadDocument:a,replace:o=!1,state:f,target:p,to:d}=e,h=s(e,l),v=(0,i.oQ)(d),m=function(e,t){let{target:n,replace:a,state:o}=void 0===t?{}:t,c=(0,i.s0)(),s=(0,i.TH)(),l=(0,i.WU)(e);return(0,r.useCallback)((t=>{if(!(0!==t.button||n&&"_self"!==n||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t))){t.preventDefault();let n=!!a||(0,u.Ep)(s)===(0,u.Ep)(l);c(e,{replace:n,state:o})}}),[s,c,l,a,o,n,e])}(d,{replace:o,state:f,target:p});return(0,r.createElement)("a",c({},h,{href:v,onClick:function(e){n&&n(e),e.defaultPrevented||a||m(e)},ref:t,target:p}))}));function p(e){let t=(0,r.useRef)(d(e)),n=(0,i.TH)(),a=(0,r.useMemo)((()=>{let e=d(n.search);for(let n of t.current.keys())e.has(n)||t.current.getAll(n).forEach((t=>{e.append(n,t)}));return e}),[n.search]),o=(0,i.s0)();return[a,(0,r.useCallback)(((e,t)=>{o("?"+d(e),t)}),[o])]}function d(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}var h=n(38329),v=n(38127),m=n(91231),y=n(87296);var g=["prefetch"];var b=r.forwardRef((function(e,t){var n,a=e.prefetch,o=(0,v.Z)(e,g),i="undefined"!=typeof window&&window.__umi_route_prefetch__||{defaultPrefetch:"none",defaultPrefetchTimeout:50},u=i.defaultPrefetch,c=i.defaultPrefetchTimeout,s=(!0===a?"intent":!1===a?"none":a)||u;if(!["intent","render","viewport","none"].includes(s))throw new Error("Invalid prefetch value ".concat(s," found in Link component"));var l=(0,m.Ov)(),p="string"==typeof e.to?e.to:null===(n=e.to)||void 0===n?void 0:n.pathname,d=r.useRef(!1),b=function(e){var t=r.useRef(null);return r.useEffect((function(){e&&("function"==typeof e?e(t.current):e.current=t.current)})),t}(t);return(0,r.useLayoutEffect)((function(){var e;"render"!==s||d.current||(null===(e=l.preloadRoute)||void 0===e||e.call(l,p),d.current=!0)}),[s,p]),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("function"!=typeof IntersectionObserver)return null;var o=r.useRef("function"==typeof IntersectionObserver),i=r.useRef(null);r.useEffect((function(){if(e.current&&o.current&&!a.disabled)return i.current=new IntersectionObserver((function(e){var n=(0,y.Z)(e,1)[0];t(n)}),n),i.current.observe(e.current),function(){var e;null===(e=i.current)||void 0===e||e.disconnect()}}),[t,n,a.disabled,e]),i.current}(b,(function(e){var t;null!=e&&e.isIntersecting&&(null===(t=l.preloadRoute)||void 0===t||t.call(l,p))}),{rootMargin:"100px"},{disabled:"viewport"!==s}),p?r.createElement(f,(0,h.Z)({onMouseEnter:function(t){if("intent"===s){var n=t.target||{};n.preloadTimeout||(n.preloadTimeout=setTimeout((function(){var e;n.preloadTimeout=null,null===(e=l.preloadRoute)||void 0===e||e.call(l,p)}),e.prefetchTimeout||c))}},onMouseLeave:function(e){if("intent"===s){var t=e.target||{};t.preloadTimeout&&(clearTimeout(t.preloadTimeout),t.preloadTimeout=null)}},ref:b},o),e.children):null})),_=n(8616);function w(){w=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),u=new T(r||[]);return a(i,"_invoke",{value:P(e,n,u)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",v={};function m(){}function y(){}function g(){}var b={};s(b,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==n&&r.call(k,i)&&(b=k);var E=g.prototype=m.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(a,o,i,u){var c=f(e[a],e,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==(0,_.Z)(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,i,u)}),(function(e){n("throw",e,i,u)})):t.resolve(l).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function P(t,n,r){var a=p;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var u=r.delegate;if(u){var c=O(u,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=d;var s=f(t,n,r);if("normal"===s.type){if(a=r.done?h:"suspendedYield",s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=h,r.method="throw",r.arg=s.arg)}}}function O(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;A(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}var x=n(63579);function k(e,t,n,r,a,o,i){try{var u=e[o](i),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,a)}function E(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){k(o,r,a,i,u,"next",e)}function u(e){k(o,r,a,i,u,"throw",e)}i(void 0)}))}}var S=n(99227);function C(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,S.Z)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}var P=n(73825);var O=n(66160);function j(e){return(0,P.Z)(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,S.Z)(e)||(0,O.Z)()}var A=n(89878);function T(e,t){for(var n=0;n-1,"register failed, invalid key ".concat(n," ").concat(e.path?"from plugin ".concat(e.path):"",".")),t.hooks[n]=(t.hooks[n]||[]).concat(e.apply[n])}))}},{key:"getHooks",value:function(e){var t=j(e.split(".")),n=t[0],r=t.slice(1),a=this.hooks[n]||[];return r.length&&(a=a.map((function(e){try{var t,n=e,a=C(r);try{for(a.s();!(t=a.n()).done;)n=n[t.value]}catch(e){a.e(e)}finally{a.f()}return n}catch(e){return null}})).filter(Boolean)),a}},{key:"applyPlugins",value:function(e){var t=e.key,n=e.type,r=e.initialValue,a=e.args,o=e.async,i=this.getHooks(t)||[];switch(a&&M("object"===(0,_.Z)(a),"applyPlugins failed, args must be plain object."),o&&M(n===L.modify||n===L.event,"async only works with modify and event type."),n){case L.modify:return o?i.reduce(function(){var e=E(w().mark((function e(n,r){var o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(M("function"==typeof r||"object"===(0,_.Z)(r)||R(r),"applyPlugins failed, all hooks for key ".concat(t," must be function, plain object or Promise.")),!R(n)){e.next=5;break}return e.next=4,n;case 4:n=e.sent;case 5:if("function"!=typeof r){e.next=16;break}if(!R(o=r(n,a))){e.next=13;break}return e.next=10,o;case 10:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",o);case 14:e.next=21;break;case 16:if(!R(r)){e.next=20;break}return e.next=19,r;case 19:r=e.sent;case 20:return e.abrupt("return",(0,x.Z)((0,x.Z)({},n),r));case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),R(r)?r:Promise.resolve(r)):i.reduce((function(e,n){return M("function"==typeof n||"object"===(0,_.Z)(n),"applyPlugins failed, all hooks for key ".concat(t," must be function or plain object.")),"function"==typeof n?n(e,a):(0,x.Z)((0,x.Z)({},e),n)}),r);case L.event:return E(w().mark((function e(){var n,r,u,c;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=C(i),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=12;break}if(M("function"==typeof(u=r.value),"applyPlugins failed, all hooks for key ".concat(t," must be function.")),c=u(a),!o||!R(c)){e.next=10;break}return e.next=10,c;case 10:e.next=3;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(1),n.e(e.t0);case 17:return e.prev=17,n.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[1,14,17,20]])})))();case L.compose:return function(){return function(e){var t=e.fns,n=e.args;if(1===t.length)return t[0];var r=t.pop();return t.reduce((function(e,t){return function(){return t(e,n)}}),r)}({fns:i.concat(r),args:a})()}}}}],r=[{key:"create",value:function(t){var n=new e({validKeys:t.validKeys});return t.plugins.forEach((function(e){n.register(e)})),n}}],n&&T(t.prototype,n),r&&T(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),D=n(34362);n(31468)},18773:function(e,t,n){"use strict";n.d(t,{C:function(){return o},S:function(){return a}});var r=n(59301),a=r.createContext(null),o=r.createContext((function(){console.error("The 'useAntdConfigSetter()' method depends on the antd 'ConfigProvider', requires one of 'antd.configProvider' / 'antd.dark' / 'antd.compact' to be enabled.")}))},46587:function(e,t,n){"use strict";n.d(t,{j:function(){return Xl},Q:function(){return Ql}});var r=n(37205),a=n.n(r),o=n(82242),i=n.n(o),u=n(49264),c=n(89880),s=n.n(c),l=n(59301),f=n(94706),p=n(7557),d=n.n(p),h=n(41498),v=n.n(h),m=n(79723);function y(e){return g.apply(this,arguments)}function g(){return(g=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.login,"/avatar.json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return _.apply(this,arguments)}function _(){return(_=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.login,".json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e){return x.apply(this,arguments)}function x(){return(x=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/add_school_applies.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e){return E.apply(this,arguments)}function E(){return(E=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/schools/limit_list.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(e){return C.apply(this,arguments)}function C(){return(C=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/schools/".concat(t.id,"/departments/for_option.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function P(e){return O.apply(this,arguments)}function O(){return(O=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/add_department_applies.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return A.apply(this,arguments)}function A(){return(A=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.id,".json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function T(e){return I.apply(this,arguments)}function I(){return(I=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.login,"/authentication_apply.json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(e){return R.apply(this,arguments)}function R(){return(R=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.login,"/professional_auth_apply.json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function L(e){return Z.apply(this,arguments)}function Z(){return(Z=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.id,"/professional_auth_apply.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(e){return N.apply(this,arguments)}function N(){return(N=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.id,"/authentication_apply.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $(e){return F.apply(this,arguments)}function F(){return(F=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function B(e){return q.apply(this,arguments)}function q(){return(q=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.login,"/phone_bind.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function z(e){return H.apply(this,arguments)}function H(){return(H=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.login,"/email_bind.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function U(e){return W.apply(this,arguments)}function W(){return(W=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.login,"/password.json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function V(e){return G.apply(this,arguments)}function G(){return(G=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.basicInfoId,"/open_users/").concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Y={namespace:"account",state:{basicInfo:void 0,actionTabs:{key:"",params:{}}},effects:{updateAvatar:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(y,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},appplySchool:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(w,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getSchoolOption:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(k,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getDepartmentOption:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(S,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},appplyDepartment:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(P,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updateAccount:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(j,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},cancelRealNameAuth:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(T,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},cancelProfessionalAuth:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(M,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},applyProfessionalAuth:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(L,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},applyRealNameAuth:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(D,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getCode:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r($,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},bindPhone:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(B,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},bindEmail:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(z,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updatePassword:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(U,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},unbindAccount:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(V,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getBasicInfo:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(b,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{basicInfo:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},K=Y;function X(e){return Q.apply(this,arguments)}function Q(){return(Q=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/inform_up.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function J(e){return ee.apply(this,arguments)}function ee(){return(ee=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/inform_down.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var te={namespace:"announcement",state:{name:"普通试卷,随机试卷详情页面",loading:!0,actionTabs:{}},effects:{informDown:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(J,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},informUp:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(X,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},ne=te,re=n(78318),ae={namespace:"attachment",state:{name:"资源",loading:!0,detail:{},actionTabs:{}},effects:{allAttachment:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(re.SV,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{allList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},mineAttachment:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(re.zI,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{mineList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},fileImport:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(re.tO,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(re.Nm,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},updateVisits:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(re.H,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},oe=ae;function ie(e){return ue.apply(this,arguments)}function ue(){return(ue=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/board_list.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ce(e){return se.apply(this,arguments)}function se(){return(se=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/messages/".concat(t.boardId,".json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function le(e){return fe.apply(this,arguments)}function fe(){return(fe=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/messages/".concat(t.id,"/sticky_top.json"),{method:"put",body:{course_id:t.coursesId}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pe(e){return de.apply(this,arguments)}function de(){return(de=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/messages/".concat(t.id,"/sticky_top.json"),{method:"put",body:{course_id:t.coursesId}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function he(e){return ve.apply(this,arguments)}function ve(){return(ve=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/messages/".concat(t.boardId,"/reply_list.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function me(e){return ye.apply(this,arguments)}function ye(){return(ye=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/messages/".concat(t.boardId,"/reply.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ge(e){return be.apply(this,arguments)}function be(){return(be=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/praise_tread/like.json",{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _e(e){return we.apply(this,arguments)}function we(){return(we=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xe(e){return ke.apply(this,arguments)}function ke(){return(ke=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/commons/delete.json",{method:"delete",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ee={namespace:"boards",state:{name:"讨论",loading:!0,actionTabs:{},boardsDetail:{},boardsCategoryList:{}},effects:{getBoardsCategoryList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ie,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{boardsCategoryList:i()({},t.data)}});case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e)}))()},getBoardsDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ce,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{boardsDetail:i()({},t.data)}});case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e)}))()},setTopping:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(le,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},escTopping:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(pe,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getReplyList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(he,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{replyList:i()({},t.data)}});case 5:case"end":return e.stop()}}),e)}))()},createReply:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(me,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},replyLike:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ge,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},replyUnLike:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(_e,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteReply:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(xe,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},Se=Ee,Ce=n(85573),Pe=n.n(Ce),Oe=n(26613),je={namespace:"exercise",state:{name:"普通试卷,随机试卷详情页面",loading:!0,exerciseList:{},userExerciseList:{},statisticsList:{},exerciseCoursesList:{},brankList:{},editData:{},endGroups:{},actionTabs:{removeEventListenerExitScreen:!1},publishGroups:{},commonHeader:{},reviewExercise:{},reviewGroupExercise:{},workSetting:{},editRandomExercises:{},redoModal:{},exerciseUserInfo:{},examinationIntelligentSettings:{},exerciseExportHeadData:{},codeReviewDetail:{},exerciseIdentityPhotos:{},checkDomain:"kepukehuan.educoder.net"===window.document.domain||"test-kepukehuan.educoder.net"===window.document.domain,order_type:"",order:"",updateIndex:null,saveExerciseDownUsers:null,NormalResult:{},course_groups:[],SumupDetail:{},ScoreRangesData:{}},effects:{getScoreRangesData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.$Q,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{ScoreRangesData:null==t?void 0:t.data}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getQuestionResult:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe._U,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{NormalResult:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getUserExercise:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.xA,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{userExerciseList:i()({},(null==t?void 0:t.data)||{})}});case 5:return console.log("getUserExercise-res:",t),e.abrupt("return",null==t?void 0:t.data);case 7:case"end":return e.stop()}}),e)}))()},getExerciseIdentityPhotos:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.J,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{exerciseIdentityPhotos:i()({},(null==t?void 0:t.data)||{})}});case 5:return e.abrupt("return",null==t?void 0:t.data);case 6:case"end":return e.stop()}}),e)}))()},getExerciseExportHeadData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.iw,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{exerciseExportHeadData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getExerciseUserInfo:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.Ty,n);case 2:if(0!==(null==(t=e.sent)?void 0:t.status)){e.next=6;break}return e.next=6,a({type:"save",payload:i()({},{exerciseUserInfo:i()({},t.data)})});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getExaminationIntelligentSettings:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.sA,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{examinationIntelligentSettings:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getRandomEditExercises:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.yu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editRandomExercises:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getExerciseList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.G$,n);case 2:if(null!=(t=e.sent)&&t.total_exercise_users)try{localStorage.total_exercise_users=JSON.stringify(t.total_exercise_users)}catch(e){}return e.next=6,a({type:"save",payload:{exerciseList:i()({},t)}});case 6:return e.next=8,a({type:"save",payload:{order_type:n.order_type,order:n.order}});case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e)}))()},getExerciseStatistics:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe._u,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{statisticsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getBrankList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.n$,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{brankList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},saveBanks:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.lf,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getExerciseCourses:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.N3,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{exerciseCoursesList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},addExercise:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.uR,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},editExercise:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.qf,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getTagDiscipline:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.YY,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{tagDisciplineData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},editExerciseQuestion:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.Di,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},addExerciseQuestion:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.MK,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},exeriseMoveUpDown:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.GK,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getEndGroups:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.KE,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{endGroups:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getPublishGroups:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.ux,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{publishGroups:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCommonHeader:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.UK,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{commonHeader:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setCommonHeader:function(e,t){var n=e.payload,r=(e.callback,t.call,t.put),a=t.select;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((function(e){var t;return(null==e||null===(t=e.exercise)||void 0===t?void 0:t.commonHeader)||{}}));case 2:return t=e.sent,e.next=5,r({type:"save",payload:{commonHeader:i()(i()({},t),n)}});case 5:case"end":return e.stop()}}),e)}))()},getReviewExercise:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.BJ,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{reviewExercise:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},postReviewExercise:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.pu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{reviewExercise:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCentralizeReviewExercise:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.X4,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{reviewExercise:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},clearData:function(e,t){var n=e.payload,r=(e.callback,t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:Pe()({},n.key,{})});case 2:case"end":return e.stop()}}),e)}))()},getReviewGroupExercise:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.W4,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{reviewGroupExercise:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getWorkSetting:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.Ul,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{workSetting:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getRedoModal:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.tX,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{redoModal:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getRedoListModal:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.s,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{redoModal:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCodeReviewDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.Xn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{codeReviewDetail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},changeScore:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.gG,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},setUpdateIndex:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{updateIndex:"clear"===n?null:Math.random()}});case 2:case"end":return e.stop()}}),e)}))()},setSaveExerciseDownUsers:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{saveExerciseDownUsers:n}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},Ae=je;function Te(e){return Ie.apply(this,arguments)}function Ie(){return(Ie=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/graduation_tasks/".concat(t.categoryId,".json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Me(e){return Re.apply(this,arguments)}function Re(){return(Re=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/graduation_tasks/".concat(t.categoryId,"/tasks_list.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Le(e){return Ze.apply(this,arguments)}function Ze(){return(Ze=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_topics/").concat(t.categoryId,"/show_detail.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function De(e){return Ne.apply(this,arguments)}function Ne(){return(Ne=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_topics/").concat(t.categoryId,".json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $e(e){return Fe.apply(this,arguments)}function Fe(){return(Fe=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_topics/").concat(t.categoryId,"/refuse_student_topic.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Be(e){return qe.apply(this,arguments)}function qe(){return(qe=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_topics/").concat(t.categoryId,"/accept_student_topic.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ze(e){return He.apply(this,arguments)}function He(){return(He=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/show_comment.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ue(e){return We.apply(this,arguments)}function We(){return(We=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/reply_message.json",{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ve(e){return Ge.apply(this,arguments)}function Ge(){return(Ge=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/praise_tread/like.json",{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ye(e){return Ke.apply(this,arguments)}function Ke(){return(Ke=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xe(e){return Qe.apply(this,arguments)}function Qe(){return(Qe=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/commons/delete.json",{method:"delete",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Je(e){return et.apply(this,arguments)}function et(){return(et=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_topics/new.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function tt(e){return nt.apply(this,arguments)}function nt(){return(nt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_topics/").concat(t.categoryId,"/edit.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function rt(e){return at.apply(this,arguments)}function at(){return(at=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_topics"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ot(e){return it.apply(this,arguments)}function it(){return(it=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_topics/").concat(t.categoryId),{method:"put",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ut(e){return ct.apply(this,arguments)}function ct(){return(ct=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_tasks"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function st(e){return lt.apply(this,arguments)}function lt(){return(lt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/graduation_tasks/".concat(t.categoryId,".json"),{method:"put",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ft(e){return pt.apply(this,arguments)}function pt(){return(pt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/graduation_tasks/".concat(t.categoryId,"/edit.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var dt={namespace:"graduation",state:{name:"毕业设计",loading:!0,actionTabs:{},detailList:{},detailTaskList:{},replyList:{},detail:{},addTopicData:{},editTopicData:{},editTasksData:{}},effects:{getTopisDetailList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(De,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getTasksListDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Me,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailTaskList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getTopisDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Le,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getTasksDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Te,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{tasksDetail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},refuseTopic:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r($e,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},agreeTopic:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Be,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getReplyList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ze,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{replyList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},createReply:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ue,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},replyLike:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ve,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},replyUnLike:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ye,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteReply:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Xe,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},addTopicDefaultData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Je,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{addTopicData:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},editTopicDefaultData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(tt,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editTopicData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},editTasksDefaultData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ft,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editTasksData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},addTopic:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(rt,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},editTopic:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ot,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},addTasks:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ut,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},editTasks:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(st,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},ht=dt,vt=n(89392);function mt(e){return yt.apply(this,arguments)}function yt(){return(yt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/works_list.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gt(e){return bt.apply(this,arguments)}function bt(){return(bt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/shixun_homeworks/".concat(t.categoryId,"/student_works.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _t(e){return wt.apply(this,arguments)}function wt(){return(wt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/shixun_homeworks/".concat(t.categoryId,"/header_info.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xt(e){return kt.apply(this,arguments)}function kt(){return(kt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,".json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Et(e){return St.apply(this,arguments)}function St(){return(St=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/code_review_results.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ct(e){return Pt.apply(this,arguments)}function Pt(){return(Pt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/code_review_detail.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ot(e){return jt.apply(this,arguments)}function jt(){return(jt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/settings.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function At(e){return Tt.apply(this,arguments)}function Tt(){return(Tt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/update_settings.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function It(e){return Mt.apply(this,arguments)}function Mt(){return(Mt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/group_list.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Rt(e){return Lt.apply(this,arguments)}function Lt(){return(Lt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/works_list.xlsx"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Zt(e){return Dt.apply(this,arguments)}function Dt(){return(Dt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.coursesId,"/reference_answer.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Nt(e){return $t.apply(this,arguments)}function $t(){return($t=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/publish_groups.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ft(e){return Bt.apply(this,arguments)}function Bt(){return(Bt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/end_groups.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qt(e){return zt.apply(this,arguments)}function zt(){return(zt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/question_banks/bank_list.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ht(e){return Ut.apply(this,arguments)}function Ut(){return(Ut=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/question_banks/save_banks.json",{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wt(e){return Vt.apply(this,arguments)}function Vt(){return(Vt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/student_works/".concat(t.homeworkId,"/shixun_work_report.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Gt(e){return Yt.apply(this,arguments)}function Yt(){return(Yt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/homework_commons/user_hack_detail.json"),{method:"get",params:i()(i()({},t),{},{id:t.categoryId})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Kt(e){return Xt.apply(this,arguments)}function Xt(){return(Xt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/student_works/".concat(t.categoryId,"/adjust_review_score.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Qt(e){return Jt.apply(this,arguments)}function Jt(){return(Jt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/show_comment.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function en(e){return tn.apply(this,arguments)}function tn(){return(tn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/reply_message.json",{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function nn(e){return rn.apply(this,arguments)}function rn(){return(rn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/praise_tread/like.json",{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function an(e){return on.apply(this,arguments)}function on(){return(on=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function un(e){return cn.apply(this,arguments)}function cn(){return(cn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/commons/delete.json",{method:"delete",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function sn(e){return ln.apply(this,arguments)}function ln(){return(ln=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/update_explanation.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fn(e){return pn.apply(this,arguments)}function pn(){return(pn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.commonHomeworkId,"/student_works/new.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dn(e){return hn.apply(this,arguments)}function hn(){return(hn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/student_works/".concat(t.homeworkId,"/edit.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vn(e){return mn.apply(this,arguments)}function mn(){return(mn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/projects/search.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function yn(e){return gn.apply(this,arguments)}function gn(){return(gn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.commonHomeworkId,"/student_works/search_member_list.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function bn(e){return _n.apply(this,arguments)}function _n(){return(_n=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/homework_commons/new.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wn(e){return xn.apply(this,arguments)}function xn(){return(xn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/edit.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kn(e){return En.apply(this,arguments)}function En(){return(En=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_banks/".concat(t.id,".json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Sn(e){return Cn.apply(this,arguments)}function Cn(){return(Cn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/student_works/".concat(t.userId,".json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pn(e){return On.apply(this,arguments)}function On(){return(On=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/student_works/".concat(t.userId,"/supply_attachments.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function jn(e){return An.apply(this,arguments)}function An(){return(An=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/student_works/".concat(t.userId,"/comment_list.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Tn(e){return In.apply(this,arguments)}function In(){return(In=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/all_student_works.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mn(e){return Rn.apply(this,arguments)}function Rn(){return(Rn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/homework_commons/file_repeat_result.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ln(e){return Zn.apply(this,arguments)}function Zn(){return(Zn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.course_id,"/homework_commons/file_repeat_detail.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Dn={namespace:"shixunHomeworks",state:{name:"",loading:!0,workList:{},shixunWorkList:{},headerInfo:{},shixunWorkReport:{},codeReview:{},codeReviewDetail:{},workSetting:{},changeData:{},codeReviewCourse:{},referenceAnswer:{},publishGroups:{},endGroups:{},brankList:{},replyList:{},workDetail:{},commonHomeWorkAddDefaultData:{},studentWorkAddDefaultData:{},studentWorkEditDefaultData:{},commonHomeWorkEditDefaultData:{},studentWorkDetail:{},studentWorkSupplyDetail:{},studentWorkCommon:{},allStudentWorks:{},searchMemberList:{},searchProjectList:{},actionTabs:{key:""},listParams:{order:"all",page:1,limit:16,search:""},homeworkAssistantPermissions:{},shixunAssistantPermission:{},courseAssistantPermission:{}},effects:{getWorkList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(mt,n);case 2:t=e.sent;try{sessionStorage.all_student_works=JSON.stringify(t.all_student_works),sessionStorage.all_student_works_params=JSON.stringify(n),localStorage.setItem("all_student_works_param",JSON.stringify(n))}catch(e){}return e.next=6,a({type:"save",payload:{workList:i()({},t)}});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getShixunWorkHeadInfo:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(_t,n);case 2:return t=e.sent,e.next=6,a({type:"save",payload:{headerInfo:null==t?void 0:t.data}});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getShixunWorkList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(gt,n);case 2:t=e.sent;try{sessionStorage.all_student_works=JSON.stringify(t.all_student_works),sessionStorage.all_student_works_params=JSON.stringify(n),localStorage.setItem("all_student_works_param",JSON.stringify(n))}catch(e){}return e.next=6,a({type:"save",payload:{shixunWorkList:null==t?void 0:t.data,homeworkAssistantPermissions:t.homework_assistant_permissions,shixunAssistantPermission:t.shixun_assistant_permission,courseAssistantPermission:t.course_assistant_permission}});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getCodeReview:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Et,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{codeReview:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCodeReviewDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ct,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{codeReviewDetail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getWorkDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(xt,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{workDetail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},updateWork:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(sn,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getShixunWorkReport:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Wt,n);case 2:t=e.sent;try{t.all_student_works=JSON.parse(sessionStorage.all_student_works||"[]")}catch(e){}return e.next=6,a({type:"save",payload:{shixunWorkReport:i()({},t)}});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getShixunWorkReports:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Gt,n);case 2:t=e.sent;try{t.all_student_works=JSON.parse(sessionStorage.all_student_works||"[]")}catch(e){}return e.next=6,a({type:"save",payload:{shixunWorkReport:i()({},t)}});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getWorkSetting:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(t,o){var u,c;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ot,n);case 2:return null==(u=e.sent)||null===(t=u.group_settings)||void 0===t||t.map((function(e){e.value=e.group_name,e.id=e.group_id,e.group_id=[e.group_id]})),null==u||null===(o=u.allow_late_settings)||void 0===o||o.map((function(e){e.value=e.group_name,e.id=e.group_id,e.group_id=[e.group_id]})),c={shixun_evaluation:u.shixun_evaluation,challenge_settings:u.challenge_settings},e.next=8,a({type:"save",payload:{workSetting:i()({},u),changeData:(0,vt.cloneDeep)(c)}});case 8:return e.abrupt("return",u);case 9:case"end":return e.stop()}}),e)}))()},updateSetting:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(At,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getCodeReviewCourse:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(It,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{codeReviewCourse:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},exportShixunWorks:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Rt,n);case 2:e.sent;case 3:case"end":return e.stop()}}),e)}))()},getReferenceAnswer:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Zt,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{referenceAnswer:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getPublishGroups:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Nt,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{publishGroups:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getEndGroups:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ft,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{endGroups:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getBrankList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(qt,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{brankList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},changeScore:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Kt,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},saveBanks:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ht,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},addCommonHomeWorkDefaultData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(bn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{commonHomeWorkAddDefaultData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getSearchMemberList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(yn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{searchMemberList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getProjectList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(vn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{searchProjectList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},addStudentWorkDefaultData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{studentWorkAddDefaultData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},editStudentWorkDefaultData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(dn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{studentWorkEditDefaultData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},editCommonHomeWorkDefaultData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(wn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{commonHomeWorkEditDefaultData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},editCommonHomeWorkDefaultBankData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(kn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{commonHomeWorkEditDefaultData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getReplyList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qt,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{replyList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getStudentWorkDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Sn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{studentWorkDetail:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getStudentWorkSupplyDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Pn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{studentWorkSupplyDetail:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getStudentWorkCommon:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{studentWorkCommon:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getAllStudentWorks:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Tn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{allStudentWorks:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getFileRepeatResult:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Mn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{codeReview:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getFileRepeatDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ln,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{codeReviewDetail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},createReply:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(en,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},replyLike:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(nn,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},replyUnLike:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(an,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteReply:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(un,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Nn=Dn,$n=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/course_statistics/course_use_infos.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Fn=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/course_statistics/rank_list.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Bn=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/course_statistics/statistics_body.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),qn=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/course_statistics/statistics_header.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function zn(e){return Hn.apply(this,arguments)}function Hn(){return(Hn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.course_id,"/set_assistant_permissions.json"),{method:"post",body:i()({},t.permissions)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Un(e){return Wn.apply(this,arguments)}function Wn(){return(Wn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.course_id,"/assistant_permissions.json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vn(e){return Gn.apply(this,arguments)}function Gn(){return(Gn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(null==t?void 0:t.course_id,"/smart_plans/").concat(null==t?void 0:t.id,".json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Yn(e){return Kn.apply(this,arguments)}function Kn(){return(Kn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(null==t?void 0:t.course_id,"/smart_plans/").concat(null==t?void 0:t.id,"/item_banks.json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xn(e){return Qn.apply(this,arguments)}function Qn(){return(Qn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses.json",{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Jn(e){return er.apply(this,arguments)}function er(){return(er=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/intelligent_recommendations/according_course_recommend_shixuns.json",{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function tr(e){return nr.apply(this,arguments)}function nr(){return(nr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/top_banner.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function rr(e){return ar.apply(this,arguments)}function ar(){return(ar=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id||t.coursesId,"/left_banner.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function or(e){return ir.apply(this,arguments)}function ir(){return(ir=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/homework_commons.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ur(e){return cr.apply(this,arguments)}function cr(){return(cr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/homework_commons/list.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function sr(e){return lr.apply(this,arguments)}function lr(){return(lr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/graduation_topics.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fr(e){return pr.apply(this,arguments)}function pr(){return(pr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/graduation_tasks.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dr(e){return hr.apply(this,arguments)}function hr(){return(hr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/v2/courses/".concat(t.id,"/exercises.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vr(e){return mr.apply(this,arguments)}function mr(){return(mr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/polls.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function yr(e){return gr.apply(this,arguments)}function gr(){return(gr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/homework_commons.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function br(e){return _r.apply(this,arguments)}function _r(){return(_r=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/course_groups.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wr(e){return xr.apply(this,arguments)}function xr(){return(xr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/attendances.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kr(e){return Er.apply(this,arguments)}function Er(){return(Er=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/weapps/courses/".concat(t.coursesId,"/attendances.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Sr(e){return Cr.apply(this,arguments)}function Cr(){return(Cr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/attendances/".concat(t.id,"/edit.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pr(e){return Or.apply(this,arguments)}function Or(){return(Or=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/informs.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function jr(e){return Ar.apply(this,arguments)}function Ar(){return(Ar=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/files.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Tr(e){return Ir.apply(this,arguments)}function Ir(){return(Ir=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/course_videos.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mr(e){return Rr.apply(this,arguments)}function Rr(){return(Rr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/live_links.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Lr(e){return Zr.apply(this,arguments)}function Zr(){return(Zr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/mine.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Dr(e){return Nr.apply(this,arguments)}function Nr(){return(Nr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/boards/".concat(t.categoryId,"/messages.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $r(e){return Fr.apply(this,arguments)}function Fr(){return(Fr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/course_groups.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Br(e){return qr.apply(this,arguments)}function qr(){return(qr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/students.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function zr(e){return Hr.apply(this,arguments)}function Hr(){return(Hr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/statistics.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ur(e){return Wr.apply(this,arguments)}function Wr(){return(Wr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/work_score.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vr(e){return Gr.apply(this,arguments)}function Gr(){return(Gr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/act_score.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Yr(e){return Kr.apply(this,arguments)}function Kr(){return(Kr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/shixun_lists.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xr(e){return Qr.apply(this,arguments)}function Qr(){return(Qr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(null==t?void 0:t.course_id,"/homework_commons/impersonal_list.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Jr(e){return ea.apply(this,arguments)}function ea(){return(ea=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/homework_commons/create_shixun_homework.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ta(e){return na.apply(this,arguments)}function na(){return(na=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(null==t?void 0:t.course_id,"/homework_commons/create_collaborators.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ra(e){return aa.apply(this,arguments)}function aa(){return(aa=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/subject_lists.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oa(e){return ia.apply(this,arguments)}function ia(){return(ia=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/homework_commons/create_subject_homework.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ua(e){return ca.apply(this,arguments)}function ca(){return(ca=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/schools/school_list.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function sa(e){return la.apply(this,arguments)}function la(){return(la=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/search_course_list.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fa(e){return pa.apply(this,arguments)}function pa(){return(pa=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function da(e){return ha.apply(this,arguments)}function ha(){return(ha=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/add_school_applies.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function va(e){return ma.apply(this,arguments)}function ma(){return(ma=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/member_search.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ya(e){return ga.apply(this,arguments)}function ga(){return(ga=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.courseId,"/tasks_list.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ba(e){return _a.apply(this,arguments)}function _a(){return(_a=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.courseId,"/update_task_position.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wa(e){return xa.apply(this,arguments)}function xa(){return(xa=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/all_course_groups.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ka(e){return Ea.apply(this,arguments)}function Ea(){return(Ea=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/join_course_group.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Sa(e){return Ca.apply(this,arguments)}function Ca(){return(Ca=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/courseware.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pa(e){return Oa.apply(this,arguments)}function Oa(){return(Oa=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.course_id,"/course_ai_info.json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ja(e){return Aa.apply(this,arguments)}function Aa(){return(Aa=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.course_id,"/set_open_ai.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ta(e){return Ia.apply(this,arguments)}function Ia(){return(Ia=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(null==t?void 0:t.id,"/smart_plans.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ma=n(13277),Ra={namespace:"classroomList",state:{name:"",loading:!0,detailTopBanner:{copy_completed:!0},detailLeftMenus:{},detailLeftMenusNames:{},detailShixunsList:{},detailGraduationTopicsList:{},detailGraduationTaskList:{},detailExerciseList:{},detailPollsList:{},detailSmartPlanList:{},detailCommonHomeworksList:{},detailAttendancesList:{},detailAttendancesDetail:{},detailAnnouncementList:{},detailAttachmentList:{},detailCourseware:{},courseMine:{},detailVideoList:{},detailLiveVideoList:{},detailBoardList:{},courseGroups:{},allCourseGroups:{},detailCourseGroupsList:{},detailCoursStudentsList:{},detailCourseStatisticsList:{},detailAttendancesStatistic:{},detailCourseWorkscore:{},detailCourseActscore:{},coursesLists:{},shixunLists:{},schoolList:{},taskList:[],searchMemberList:{},actionTabs:{key:""},listParams:{order:"all",page:1,limit:16,search:""},shareStatus:!1,AssistantObject:{},SmartPlanInfo:{},SmartPlanItemBanks:{},updateData:"",courseAiData:{have_tiding:!1,is_open_ai:!1,name:""}},effects:{setCourseAiState:function(e,t){var n=e.payload,r=t.call,a=t.put;t.select;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ja,n);case 2:return e.next=4,a({type:"getCourseAiData",payload:n});case 4:case"end":return e.stop()}}),e)}))()},getCourseAiData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Pa,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{courseAiData:t.data}});case 5:case"end":return e.stop()}}),e)}))()},setAssistantPermissions:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(zn,n);case 2:case"end":return e.stop()}}),e)}))()},getAssistantPermissions:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,Ma.eB)()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,r(Un,n);case 4:return t=e.sent,e.next=7,a({type:"save",payload:{AssistantObject:t.permissions}});case 7:case"end":return e.stop()}}),e)}))()},getSmartPlanInfo:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Vn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SmartPlanInfo:null==t?void 0:t.data}});case 5:case"end":return e.stop()}}),e)}))()},getSmartPlanItemBanks:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Yn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SmartPlanItemBanks:null==t?void 0:t.data}});case 5:case"end":return e.stop()}}),e)}))()},getClassroom:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n,e.next=3,r(Xn,n);case 3:return o=e.sent,e.next=6,a({type:"save",payload:i()({listParams:t},o)});case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)}))()},getClassroomTopBanner:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(tr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailTopBanner:t.status?{copy_completed:!0}:i()({},t)}});case 5:return e.abrupt("return",t.status?{copy_completed:!0}:t);case 6:case"end":return e.stop()}}),e)}))()},getClassroomLeftMenus:function(e,t){var n=e.payload,r=t.call,o=t.put;return d()().mark((function e(){var t,u,c;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(rr,n);case 2:return t=e.sent,u=[].concat(a()((null==t?void 0:t.course_modules)||[]),a()((null==t?void 0:t.hidden_modules)||[])),c={},null==u||u.forEach((function(e){c[e.type]=e.name})),e.next=8,o({type:"save",payload:{detailLeftMenus:i()({},t),detailLeftMenusNames:c}});case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e)}))()},getClassroomShixunsList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(or,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailShixunsList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getClassroomTeacherShixunsList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ur,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailShixunsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getClassroomCommonList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(or,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCommonHomeworksList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getClassroomTeacherCommonList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ur,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCommonHomeworksList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getClassroomGraduationTopicsList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(sr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailGraduationTopicsList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getClassroomGraduationTaskList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailGraduationTaskList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getClassroomExercisesList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(dr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailExerciseList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getClassroomPollsList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(vr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailPollsList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getSmartPlans:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ta,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailSmartPlanList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getCourseGroups:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(br,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{courseGroups:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getAllCourseGroup:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(wa,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{allCourseGroups:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getClassroomCommonHomeworksList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(yr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCommonHomeworksList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getClassroomAttendancesList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(wr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailAttendancesList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getClassroomAttendancesStatistic:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(kr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailAttendancesStatistic:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getAttendanceDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Sr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailAttendancesDetail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getAnnouncementList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Pr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailAnnouncementList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getAttachmentList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailAttachmentList:i()({},t.data)}});case 5:case"end":return e.stop()}}),e)}))()},getCourseware:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Sa,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCourseware:i()({},t.data)}});case 5:case"end":return e.stop()}}),e)}))()},getVideoList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Tr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailVideoList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getLiveVideoList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Mr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailLiveVideoList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getCoursesMine:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Lr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{courseMine:i()({},t)}});case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e)}))()},getBoardList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Dr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailBoardList:i()({},t.data)}});case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e)}))()},getCourseGroupsList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r($r,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCourseGroupsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCourseStudentsList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Br,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCoursStudentsList:i()({},t)}});case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e)}))()},getCourseStatistics:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(zr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCourseStatisticsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCourseActscore:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Vr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCourseActscore:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCourseWorkscore:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ur,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCourseWorkscore:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getShixunLists:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Yr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{shixunLists:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getExperimentLists:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Xr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{shixunLists:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getShixunAiRecommendLists:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Jn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{shixunAiRecommendLists:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCoursesLists:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ra,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{coursesLists:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},createCoursesHomework:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(oa,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},createShixunHomework:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Jr,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},createExperiment:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ta,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getSchoolList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ua,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{schoolList:i()({},t.school_names)}});case 5:return e.abrupt("return",t.school_names);case 6:case"end":return e.stop()}}),e)}))()},searchSchoolTeacherList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(va,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{searchMemberList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getAllTaskList:function(e,t){var n=e.payload,r=(e.callback,t.call),o=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ya,n);case 2:return t=e.sent,e.next=5,o({type:"save",payload:{taskList:a()(t.tasks)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},updateTaskPosition:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ba,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{actionTabs:{key:""}}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},setUpdateData:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{updateData:n}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},La=Ra,Za={namespace:"newClassroom",state:{schoolList:[],searchCourseList:[],actionTabs:{key:"",params:{}}},effects:{getSchoolList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ua,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{schoolList:(null==t?void 0:t.school_names)||[]}});case 5:case"end":return e.stop()}}),e)}))()},getSearchCourseList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(sa,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{searchCourseList:(null==t?void 0:t.course_lists)||[]}});case 5:case"end":return e.stop()}}),e)}))()},submitCourses:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fa,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},appplySchool:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(da,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},joincoursegroup:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ka,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},Da=Za,Na={namespace:"classroomsOverview",state:{},effects:{getCourseUseInfos:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r($n,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{CourseUseInfos:t}});case 5:case"end":return e.stop()}}),e)}))()},getRankList:function(e,t){var n=e.payload,r=t.call,o=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Fn,n);case 2:return t=e.sent,e.next=5,o({type:"save",payload:{RankList:{teacher_list:[{rank:"排名",name:"姓名",course_num:"管理课",homework_num:"发布作业数",exercise_num:"发布考试数",resource_num:"上传资源数"}].concat(a()((null==t?void 0:t.teacher_list)||[])),student_list:[{rank:"排名",name:"姓名",student_id:"学号/工号",finish_num:"完成作业数",total_score:"总成绩"}].concat(a()((null==t?void 0:t.student_list)||[])),learn_course_list:[{rank:"排名",name:"教学课堂名称",num:"学习人数"}].concat(a()((null==t?void 0:t.learn_course_list)||[])),interact_course_list:[{rank:"排名",name:"教学课堂名称",num:"互动讨论数"}].concat(a()((null==t?void 0:t.interact_course_list)||[])),finish_course_list:[{rank:"排名",name:"教学课堂名称",num:"总完成数"}].concat(a()((null==t?void 0:t.finish_course_list)||[]))}}});case 5:case"end":return e.stop()}}),e)}))()},getStatisticsBody:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Bn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SBody:t}});case 5:case"end":return e.stop()}}),e)}))()},getStatisticsHeader:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(qn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SHeader:t}});case 5:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},$a=Na;function Fa(e){return Ba.apply(this,arguments)}function Ba(){return(Ba=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/polls/".concat(t.categoryId,"/poll_lists.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qa(e){return za.apply(this,arguments)}function za(){return(za=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/polls/".concat(t.categoryId,"/common_header.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ha(e){return Ua.apply(this,arguments)}function Ua(){return(Ua=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/polls/".concat(t.categoryId,"/poll_setting.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wa(e){return Va.apply(this,arguments)}function Va(){return(Va=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/polls/end_poll_modal.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ga(e){return Ya.apply(this,arguments)}function Ya(){return(Ya=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/polls/".concat(t.categoryId,"/publish_groups.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ka(e){return Xa.apply(this,arguments)}function Xa(){return(Xa=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/polls/".concat(t.categoryId,"/commit_result.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Qa(e){return Ja.apply(this,arguments)}function Ja(){return(Ja=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/question_banks/bank_list.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function eo(e){return to.apply(this,arguments)}function to(){return(to=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/question_banks/save_banks.json",{method:"POST",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function no(e){return ro.apply(this,arguments)}function ro(){return(ro=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/polls/publish_modal.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ao(e){return oo.apply(this,arguments)}function oo(){return(oo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/polls/".concat(t.categoryId,"/edit.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function io(e){return uo.apply(this,arguments)}function uo(){return(uo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/exercise_banks/".concat(t.topicId,".json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var co={namespace:"polls",state:{name:"普通试卷,随机试卷详情页面",loading:!0,pollsList:{},statisticsList:{},pollsCoursesList:{},brankList:{},actionTabs:{},commonHeader:{},pollSetting:{},endGroups:{},publishGroups:{},exerciseBanks:{}},effects:{getPollsList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Fa,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{pollsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCommonHeader:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(qa,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{commonHeader:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getPollsStatistics:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ka,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{statisticsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getBrankList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qa,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{brankList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},saveBanks:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(eo,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getPollsCourses:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(no,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{pollsCoursesList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getPollsSetting:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ha,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{pollSetting:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},editPolls:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ao,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editData:i()({},JSON.parse(JSON.stringify(t)))}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getEndGroups:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Wa,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{endGroups:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getPublishGroups:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ga,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{publishGroups:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getExerciseBanks:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(io,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{exerciseBanks:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},so=co;function lo(e){return fo.apply(this,arguments)}function fo(){return(fo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/teachers.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function po(e){return ho.apply(this,arguments)}function ho(){return(ho=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/apply_teachers.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vo(e){return mo.apply(this,arguments)}function mo(){return(mo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_group_list.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function yo(e){return go.apply(this,arguments)}function go(){return(go=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/all_course_groups.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function bo(e){return _o.apply(this,arguments)}function _o(){return(_o=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/set_course_group.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wo(e){return xo.apply(this,arguments)}function xo(){return(xo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/students.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ko={namespace:"teachers",state:{list:{},applyList:{},allCourseGroups:{},graduationGroupList:{},studentsList:{},actionTabs:{key:"",params:{}}},effects:{getList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(t){var o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(lo,n);case 2:return null==(o=e.sent)||null===(t=o.teacher_list)||void 0===t||t.map((function(e){return e.key=e.course_member_id,e})),e.next=6,a({type:"save",payload:{list:o}});case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)}))()},getStudentsList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(t){var o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(wo,n);case 2:return null==(o=e.sent)||null===(t=o.students)||void 0===t||t.map((function(e){return e.key=e.user_id,e})),e.next=6,a({type:"save",payload:{studentsList:o}});case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)}))()},getApplyList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(po,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{applyList:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getAllCourseGroups:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(yo,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{allCourseGroups:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getGraduationGroupList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(vo,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{graduationGroupList:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setAllCourseGroups:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(bo,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{setAllCourseGroups:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},Eo=ko;function So(e){return Co.apply(this,arguments)}function Co(){return(Co=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/watch_video_histories.json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Po(e){return Oo.apply(this,arguments)}function Oo(){return(Oo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/watch_statics.json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function jo(e){return Ao.apply(this,arguments)}function Ao(){return(Ao=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/course_videos/".concat(t.videoId,"/watch_histories.json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function To(e){return Io.apply(this,arguments)}function Io(){return(Io=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/own_watch_histories.json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mo(e){return Ro.apply(this,arguments)}function Ro(){return(Ro=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/video_items/".concat(t.id,".json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Lo(e){return Zo.apply(this,arguments)}function Zo(){return(Zo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.course_id,"/video_people_statics.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Do(e){return No.apply(this,arguments)}function No(){return(No=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.course_id,"/video_duration_statics.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $o(e){return Fo.apply(this,arguments)}function Fo(){return(Fo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/stages.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bo(e){return qo.apply(this,arguments)}function qo(){return(qo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(null==t?void 0:t.id,"/course_videos_tree.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var zo={namespace:"video",state:{name:"资源",loading:!0,actionTabs:{},videoStatisticsList:{},newVideoStatisticsList:{},videoDurationStatics:{},StudentvideoStatistics:{},videoPeopleStatics:{},videoStatistics:{},oneVideoStatisticsList:{}},effects:{getVideoStatisticsList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(So,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{videoStatisticsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getNewVideoStatisticsList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jo,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{newVideoStatisticsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getVideoPeopleStatics:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Lo,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{videoPeopleStatics:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getVideoDurationStatics:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Do,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{videoDurationStatics:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getVideoStatistics:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Po,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{videoStatistics:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getOneVideoStatisticsList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jo,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{oneVideoStatisticsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},getStudentVideoStatisticsList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(To,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{StudentvideoStatistics:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},Ho=zo,Uo=n(94414),Wo={namespace:"competitions",state:{name:"",loading:!0,listParams:{page:1,per_page:20,category:""},Staff:{},Header:{},competition_title:"",banner:"",competitions:[],count:"",RightItems:{},Prizes:{},Account:{},TabResultList:{},competition_team:{},all_team_member:{},actionTabs:{key:"",params:{}},GuidesData:{}},effects:{postGuides:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.cC,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getGuides:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Ax,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{GuidesData:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getWorkSubmitUpdateRes:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.zF,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n,e.next=3,r(Uo.bQ,n);case 3:return o=e.sent,e.next=6,a({type:"save",payload:i()({listParams:t},o)});case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)}))()},getMemberWorks:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.xx,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{MemberWorks:t||{}}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},addApplytojoincourse:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.qS,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},competitionTeams:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Pt,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getStaff:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Dh,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{Staff:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getHeader:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Pg,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{Header:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getItem:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.rV,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{RightItems:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},updateMdContent:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.zj,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getTeamList:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.aq,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getTeamDetail:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Ze,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},UpTeam:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.yS,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},DeleteTeam:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.ps,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},ExitTeam:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.vV,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},AddTeam:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.FU,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},AddPersonnel:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.R9,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},JoinTeam:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.zc,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getTeacher:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.jS,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getStudents:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.sK,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},SubmitTeam:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.rm,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},Reward:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Qp,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},ChartRules:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Ux,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},Charts:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.GQ,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},TabResults:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.ml,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{TabResultList:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},Results:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.u9,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},Prize:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.pU,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{Prizes:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},Accounts:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.XJ,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{Account:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getVerification:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Ni,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},PhoneBind:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.uZ,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},EmailBind:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.rk,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},Authentication:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Vy,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},Professional:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.tC,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},setleader:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.tO,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getShixun:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.qj,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getCourse:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.XR,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},competition_teams:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.zz,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{competition_team:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},all_team_members:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.$P,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{all_team_member:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Vo=Wo,Go=n(39647),Yo=n.n(Go),Ko=["id"],Xo=["ec_year_id","type","goal_value"],Qo=function(){var e=v()(d()().mark((function e(t){var n,r;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r=Yo()(t,Ko),e.abrupt("return",(0,m.ZP)("/api/ec_years/".concat(n,"/course_results.json"),{method:"get",params:r}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Jo=function(e){var t=document.createElement("iframe");t.src="/api/ec_years/".concat(e,"/course_results.xlsx"),t.style.display="none",document.body.appendChild(t)},ei=function(e){var t=e.ec_year_id;return(0,m.ZP)("/api/ec_years/".concat(t,"/course_results/get_class.json"),{method:"get"})},ti=function(e){var t=e.ec_year_id,n=e.id,r=e.class_name,a=void 0===r?null:r;return(0,m.ZP)("/api/ec_years/".concat(t,"/course_results/").concat(n,".json"),{method:"get",params:{class_name:a}})},ni=function(e){var t=e.ec_year_id;return(0,m.ZP)("/api/ec_courses/1/evaluations/compute_all_courses_data",{method:"post",body:{ec_year_id:t}})},ri=function(e){var t=e.ec_course_id;return(0,m.ZP)("/api/ec_courses/".concat(t,"/evaluations/evaluation_data"),{method:"POST"})},ai=function(e){var t=document.createElement("iframe");t.src="/api/ec_years/".concat(e,"/ec_graduation_results.xlsx"),t.style.display="none",document.body.appendChild(t)},oi=function(e){var t=e.ec_year_id;return(0,m.ZP)("/api/ec_years/".concat(t,"/ec_graduation_results/compute_all"),{method:"post"})},ii=function(e){var t=e.ec_year_id,n=e.id;return(0,m.ZP)("/api/ec_years/".concat(t,"/ec_graduation_results/compute_single?id=").concat(n),{method:"POST"})},ui=function(e){return(0,m.ZP)("/api/ec_years/".concat(e,"/ec_graduation_results.json"),{method:"get"})},ci=function(e){return(0,m.ZP)("/api/ec_years/".concat(e,"/ec_graduation_results/get_formulas.json"),{method:"get"})},si=function(e){var t=e.ec_year_id,n=e.formula_one,r=e.formula_two,a=e.formula_three;return(0,m.ZP)("/api/ec_years/".concat(t,"/ec_graduation_results/set_formulas.json"),{method:"PUT",body:{formula_one_id:n,formula_two_id:r,formula_three_id:a}})},li=function(e){var t=e.ec_year_id,n=e.id;return(0,m.ZP)("/api/ec_years/".concat(t,"/ec_graduation_results/").concat(n,".json"),{method:"get"})},fi=function(e){var t=e.ec_year_id,n=e.type,r=e.goal_value,a=Yo()(e,Xo),o="?type=".concat(n),u={method:"PUT"};return"all"===n&&(o+="&goal_value=".concat(r)),"each"===n&&(u=i()(i()({},u),{},{body:a})),(0,m.ZP)("/api/ec_years/".concat(t,"/ec_graduation_results/set_goal_value").concat(o),u)},pi=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/schools/".concat(t,"/ec_majors/get_major_list.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),di=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/ec_major_schools/".concat(t,"/ec_years/get_year_list.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),hi=function(e){var t=e.ec_year_id,n=e.school_id;return(0,m.ZP)("/api/ec_years/".concat(t,"/top_pages.json"),{method:"get",params:{school_id:n}})},vi=function(e){var t=e.id,n=e.name;return(0,m.ZP)("/api/ec_years/1/top_pages/".concat(t,"?name=").concat(n),{method:"PUT"})},mi=n(6767),yi=function(e,t){var n,r=e+"-engineering"+(null===(n=(0,Ma.eY)())||void 0===n?void 0:n.school_id),a=JSON.stringify(t);localStorage.setItem(r,a)},gi=function(e){var t,n=e+"-engineering"+(null===(t=(0,Ma.eY)())||void 0===t?void 0:t.school_id),r=localStorage.getItem(n);return null!==r&&"[object Object]"!==r?JSON.parse(r):[]},bi=["all"],_i=["认证专业","认证届别"],wi={namespace:"engineeringEvaluteList",state:{actionTabs:{key:"",params:{}},headerData:{dataSource:Pe()(Pe()({},_i[0],{width:235,placeholder:"请选择".concat(_i[0]),loading:"engineeringEvaluteList/getMajorList",dataList:[]}),_i[1],{width:138,placeholder:"请选择".concat(_i[1]),loading:"engineeringEvaluteList/getYearList",dataList:[]}),active:{}},tabListData:{total:0,pageNo:1,pageSize:20,dataSource:[]}},effects:{setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},getMajorList:function(e,t){e.payload;var n=t.call,r=t.put,a=t.select;return d()().mark((function e(){var t,o,i,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((function(e){return e.user}));case 2:if(t=e.sent,null==(o=t.userInfo)||!o.school_id){e.next=12;break}return e.next=7,n(pi,o.school_id);case 7:if(!(i=e.sent)||!i.data){e.next=12;break}return u=gi(null==o?void 0:o.login),e.next=12,r({type:"setMajorOrYearDataSource",payload:{key:_i[0],value:i.data.map((function(e){return{label:e.name,value:e.ec_major_school_id}})),active:i.data.length>0?u[0]||i.data[0].ec_major_school_id:void 0}});case 12:case"end":return e.stop()}}),e)}))()},getYearList:function(e,t){var n=e.payload,r=t.call,a=t.put,o=t.select;return d()().mark((function e(){var t,i,u,c;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(di,n.id);case 2:return t=e.sent,e.next=5,o((function(e){return e.user}));case 5:if(i=e.sent,u=i.userInfo,!t||!t.data){e.next=11;break}return c=gi(null==u?void 0:u.login),e.next=11,a({type:"setMajorOrYearDataSource",payload:{key:_i[1],value:t.data.map((function(e){return{label:e.year,value:e.ec_year_id}})),active:t.data.length>0?n.firstEnter?c[1]:t.data[0].ec_year_id:void 0}});case 11:case"end":return e.stop()}}),e)}))()},getCourseResults:function(e,t){var n=e.payload,r=void 0===n?{}:n,a=t.call,o=t.put,u=t.select;return d()().mark((function e(){var t,n,c,s,l,f,p,h,v,m,y,g;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.calc,n=r.page,c=r.per_page,e.next=3,u((function(e){return e.engineeringEvaluteList}));case 3:return s=e.sent,l=s.headerData,f=s.tabListData,e.next=8,u((function(e){return e.user}));case 8:if(p=e.sent,h=p.userInfo,!(v=l.active[_i[1]])){e.next=24;break}return m={id:v,page:n||1,per_page:c||f.pageSize},t&&(m=i()(i()({},m),{},{page:f.pageNo})),e.next=16,a(Qo,m);case 16:if(y=e.sent,g=[l.active[_i[0]],l.active[_i[1]]],yi(null==h?void 0:h.login,g),!y||!y.ec_courses){e.next=22;break}return e.next=22,o({type:"setCourseResults",payload:i()(i()({},f),{},{pageNo:m.page,total:y.count,pageSize:m.per_page||f.pageSize,dataSource:y.ec_courses.map((function(e,t){return i()(i()({},e),{},{key:m.page>1?(m.page-1)*m.per_page+t+1:t+1})}))})});case 22:e.next=26;break;case 24:return e.next=26,o({type:"setCourseResults",payload:i()(i()({},f),{},{pageNo:1,total:0,dataSource:[]})});case 26:case"end":return e.stop()}}),e)}))()},exportCourse:function(e,t){e.payload;var n=t.call,r=t.select;return d()().mark((function e(){var t,a;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r((function(e){return e.engineeringEvaluteList}));case 2:if(t=e.sent,!(a=t.headerData).active[_i[1]]){e.next=7;break}return e.next=7,n(Jo,a.active[_i[1]]);case 7:case"end":return e.stop()}}),e)}))()},compute:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o,i;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.all,o=Yo()(n,bi),e.next=3,r(t?ni:ri,o);case 3:if(!(i=e.sent)||0!==i.status){e.next=10;break}return mi.ZP.success("计算完成"),e.next=8,a({type:"getCourseResults",payload:{calc:!0}});case 8:e.next=11;break;case 10:mi.ZP.error(i.message);case 11:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},setMajorOrYearDataSource:function(e,t){var n=t.payload,r=e.headerData.active;return n.active&&(r=i()(i()({},r),{},Pe()({},n.key,n.active))),i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{dataSource:i()(i()({},e.headerData.dataSource),{},Pe()({},n.key,i()(i()({},e.headerData.dataSource[n.key]),{},{dataList:n.value}))),active:r})})},setMajorOrYearActive:function(e,t){var n=t.payload;return i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{active:i()(i()({},e.headerData.active),{},Pe()({},n.key,n.value))})})},setCourseResults:function(e,t){var n=t.payload;return i()(i()({},e),{},{tabListData:i()(i()({},e.tabListData),n)})}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},xi=wi,ki={namespace:"engineeringEvaluteDetail",state:{classDataSource:{active:null,dataList:[]},actionTabs:{key:"",params:{}},name:"",headerData:{dataSource:Pe()(Pe()({},_i[0],{width:235,placeholder:"请选择".concat(_i[0]),loading:"engineeringEvaluteDetail/getMajorList",dataList:[]}),_i[1],{width:138,placeholder:"请选择".concat(_i[1]),loading:"engineeringEvaluteDetail/getYearList",dataList:[]}),active:{}},tabListData:[],echartsData:{barData:{name:"",dataSource:{xData:[],yBarData:[],yLineData:[]}},lineData:{name:"",xData:[],seriesData:[]},scatterData:{}}},effects:{setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},getMajorList:function(e,t){e.payload;var n=t.call,r=t.put,a=t.select;return d()().mark((function e(){var t,o,i;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((function(e){return e.user}));case 2:if(t=e.sent,null==(o=t.userInfo)||!o.school_id){e.next=11;break}return e.next=7,n(pi,o.school_id);case 7:if(!(i=e.sent)||!i.data){e.next=11;break}return e.next=11,r({type:"setMajorOrYearDataSource",payload:{key:_i[0],value:i.data.map((function(e){return{label:e.name,value:e.ec_major_school_id}}))}});case 11:case"end":return e.stop()}}),e)}))()},getYearList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(di,n);case 2:if(!(t=e.sent)||!t.data){e.next=6;break}return e.next=6,a({type:"setMajorOrYearDataSource",payload:{key:_i[1],value:t.data.map((function(e){return{label:e.year,value:e.ec_year_id}}))}});case 6:case"end":return e.stop()}}),e)}))()},getCourseResultDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(n,"payload"),e.next=3,r(ti,n);case 3:if(!(t=e.sent)||!t.ec_course_target){e.next=7;break}return e.next=7,a({type:"setEchartsData",payload:t});case 7:case"end":return e.stop()}}),e)}))()},getCourseResultDetailClass:function(e,t){var n=e.payload,r=t.call,o=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ei,n);case 2:if(!(t=e.sent)||!t.class_name){e.next=6;break}return e.next=6,o({type:"save",payload:{classDataSource:{active:null,dataList:a()(t.class_name)}}});case 6:case"end":return e.stop()}}),e)}))()},setClassActive:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{classDataSource:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},setMajorOrYearDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{dataSource:i()(i()({},e.headerData.dataSource),{},Pe()({},n.key,i()(i()({},e.headerData.dataSource[n.key]),{},{dataList:n.value})))})})},setMajorOrYearActive:function(e,t){var n=t.payload;return i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{active:i()(i()({},e.headerData.active),{},Pe()({},n.key,n.value))})})},setEchartsData:function(e,t){var n=t.payload,r={name:n.course_name||"",dataSource:{xData:[],yBarData:[],yLineData:[]}},o={name:n.course_name||"",xData:[],seriesData:[]},u={};return n.ec_course_target.forEach((function(e,t){e.position=t+1,r=i()(i()({},r),{},{dataSource:{xData:[].concat(a()(r.dataSource.xData),[t+1]),yBarData:[].concat(a()(r.dataSource.yBarData),[e.actual_grade]),yLineData:[].concat(a()(r.dataSource.yLineData),[e.standard_grade])}});var n=[],o={min:[],max:[]},c=[],s=[],l=[];e.student_data.detail.forEach((function(t,r){var a=t.score;n.push(r+1),o.max.push(a>=e.student_data.goal_score?a:null),o.min.push(a>=e.student_data.goal_score?null:a),c.push(t.name),s.push(t.student_id),l.push(t.clazz)})),u[t+1]={name:t+1,average_score:e.student_data.average_score,goal_score:e.student_data.goal_score,xData:n,yData:o,name_data:c,student_ids:s,class_data:l,goal_scoreData:new Array(e.student_data.detail.length).fill(e.student_data.goal_score),average_scoreData:new Array(e.student_data.detail.length).fill(e.student_data.average_score)}})),n.history.forEach((function(e){o=i()(i()({},o),{},{xData:[].concat(a()(o.xData),[e.year]),seriesData:[].concat(a()(o.seriesData),[e.total_score])})})),i()(i()({},e),{},{name:n.course_name||"",tabListData:n.ec_course_target,echartsData:{barData:r,lineData:o,scatterData:u}})}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Ei=ki,Si={namespace:"engineering",state:{showMenu:!0,matrixVerify:{key:!1,params:{}},actionTabs:{key:"",params:{}}},effects:{setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},setShowMenu:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showMenu:n}});case 2:case"end":return e.stop()}}),e)}))()},setMatrixVerify:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{matrixVerify:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Ci=Si,Pi=n(70236),Oi=n.n(Pi),ji={namespace:"engineeringNavigtion",state:{actionTabs:{key:"",params:{}},headerData:{title:"认证导航",dataSource:Pe()(Pe()({},_i[0],{width:235,placeholder:"请选择".concat(_i[0]),loading:"engineeringNavigtion/getMajorList",dataList:[]}),_i[1],{width:138,placeholder:"请选择".concat(_i[1]),loading:"engineeringNavigtion/getYearList",dataList:[]}),active:{},name:"",tabBarContent:{user_name:"",user_school:"",user_type:""}},cardListData:{appraiseData:{norm:{title:"指标评价",result:"-",tabBarContent:[{icon:"icon-biyezhibiao",label:"毕业指标",value:"/engineering/graduated/index"},{icon:"icon-biyejuzhen",label:"毕业矩阵",value:"/engineering/graduated/matrix"}],listData:[{key:"graduation_count",icon:"icon-biyeyaoqiu1",backgroundColor:"#F2EBFB",textColor:"#713BDB",label:"毕业要求",value:"-",unit:"项"},{key:"graduation_subitem_count",icon:"icon-zhibiaodian",backgroundColor:"#FEF3EF",textColor:"#FF8B58",label:"指标点",value:"-",unit:"项"},{key:"graduation_achieve_count",icon:"icon-dacheng",backgroundColor:"#D7F5E6",textColor:"#07C160",label:"已达成毕业要求",value:"-",unit:"项"},{key:"graduation_not_achieve_count",icon:"icon-weidacheng",backgroundColor:"#F5F5F5",textColor:"#7C8184",label:"未达成毕业要求",value:"-",unit:"项"}]},course:{title:"课程评价",result:"-",tabBarContent:[{icon:"icon-kechengliebiao",label:"课程列表",value:"/engineering/course/list"},{icon:"icon-kechengjuzhen",label:"课程矩阵",value:"/engineering/course/matrix"}],listData:[{key:"course_count",icon:"icon-kechengshuliang",backgroundColor:"#E2F5FF",textColor:"#007AFF",label:"课程数量",value:"-",unit:"门"},{key:"course_target_count",icon:"icon-mubiao",backgroundColor:"#FEF8EF",textColor:"#FEB315",label:"课程目标",value:"-",unit:"项"},{key:"course_achieve_count",icon:"icon-dacheng",backgroundColor:"#D7F5E6",textColor:"#07C160",label:"已达成课程数量",value:"-",unit:"门"},{key:"course_not_achieve_count",icon:"icon-weidacheng",backgroundColor:"#F5F5F5",textColor:"#7C8184",label:"未达成课程数量",value:"-",unit:"门"}]}},teamData:{teach:{title:"授课团队",tabBarContent:"0人",listData:[]},work:{title:"工作团队",tabBarContent:"0人",listData:[]}}},totalListData:[{key:"student_count",title:"当前学生总数",value:0,icon:"icon-xuesheng1",backgroundColor:"rgba(201,236,255,0.51)",textColor:"#007AFF"},{key:"student_in_count",title:"转入学生总数",value:0,icon:"icon-zhuanru",backgroundColor:"rgba(119,241,174,0.4)",textColor:"#1FA363"},{key:"student_out_count",title:"转出学生总数",value:0,icon:"icon-zhuanchu",backgroundColor:"rgba(255,197,147,0.44)",textColor:"#FA6400"}]},effects:{setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},getMajorList:function(e,t){Oi()(e);var n=t.call,r=t.put,a=t.select;return d()().mark((function e(){var t,o,i,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((function(e){return e.user}));case 2:if(t=e.sent,null==(o=t.userInfo)||!o.school_id){e.next=12;break}return e.next=7,n(pi,o.school_id);case 7:if(!(i=e.sent)||!i.data){e.next=12;break}return u=gi(null==o?void 0:o.login),e.next=12,r({type:"setMajorOrYearDataSource",payload:{key:_i[0],value:i.data.map((function(e){return{label:e.name,value:e.ec_major_school_id}})),active:i.data.length>0?u[0]||i.data[0].ec_major_school_id:void 0}});case 12:case"end":return e.stop()}}),e)}))()},getYearList:function(e,t){var n=e.payload,r=t.call,a=t.put,o=t.select;return d()().mark((function e(){var t,i,u,c;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(di,n.id);case 2:return t=e.sent,e.next=5,o((function(e){return e.user}));case 5:if(i=e.sent,u=i.userInfo,!t||!t.data){e.next=11;break}return c=gi(null==u?void 0:u.login),e.next=11,a({type:"setMajorOrYearDataSource",payload:{key:_i[1],value:t.data.map((function(e){return{label:e.year,value:e.ec_year_id}})),active:t.data.length>0?n.firstEnter?c[1]:t.data[0].ec_year_id:void 0}});case 11:case"end":return e.stop()}}),e)}))()},getTopPage:function(e,t){Oi()(e);var n=t.call,r=t.put,a=t.select;return d()().mark((function e(){var t,o,i,u,c,s,l;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((function(e){return e.engineeringNavigtion}));case 2:return t=e.sent,o=t.headerData,e.next=6,a((function(e){return e.user}));case 6:if(i=e.sent,u=i.userInfo,c={},!o.active[_i[1]]||!u.school_id){e.next=18;break}return s=[o.active[_i[0]],o.active[_i[1]]],yi(null==u?void 0:u.login,s),e.next=14,n(hi,{ec_year_id:o.active[_i[1]],school_id:u.school_id});case 14:return(l=e.sent)&&l.data&&(c=l.data),e.next=18,r({type:"setTopPage",payload:c});case 18:case"end":return e.stop()}}),e)}))()},putTopPageName:function(e,t){var n=e.payload,r=e.callback,a=t.call;t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a(vi,n);case 3:t=e.sent,r(t),e.next=12;break;case 7:e.prev=7,e.t0=e.catch(0),o="",e.t0&&(o=JSON.stringify(e.t0),e.t0.message&&(o=e.t0.message)),r({message:o,status:999});case 12:case"end":return e.stop()}}),e,null,[[0,7]])}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},setMajorOrYearDataSource:function(e,t){var n=t.payload,r=e.headerData.active;return n.active&&(r=i()(i()({},r),{},Pe()({},n.key,n.active))),i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{dataSource:i()(i()({},e.headerData.dataSource),{},Pe()({},n.key,i()(i()({},e.headerData.dataSource[n.key]),{},{dataList:n.value}))),active:r})})},setMajorOrYearActive:function(e,t){var n=t.payload;return i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{active:i()(i()({},e.headerData.active),{},Pe()({},n.key,n.value))})})},setTopPage:function(e,t){var n=t.payload;return i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{name:n.name,tabBarContent:{user_name:n.user_name,user_school:n.user_school,user_type:n.user_type}}),cardListData:i()(i()({},e.cardListData),{},{appraiseData:i()(i()({},e.cardListData.appraiseData),{},{norm:i()(i()({},e.cardListData.appraiseData.norm),{},{result:n.graduaiton_result,listData:e.cardListData.appraiseData.norm.listData.map((function(e){return i()(i()({},e),{},{value:n[e.key]||0})}))}),course:i()(i()({},e.cardListData.appraiseData.course),{},{result:n.course_result,listData:e.cardListData.appraiseData.course.listData.map((function(e){return i()(i()({},e),{},{value:n[e.key]||0})}))})}),teamData:{teach:i()(i()({},e.cardListData.teamData.teach),{},{tabBarContent:"".concat(n.course_teachers?n.course_teachers.length:0,"人"),listData:n.course_teachers||[]}),work:i()(i()({},e.cardListData.teamData.work),{},{tabBarContent:"".concat(n.work_teachers?n.work_teachers.length:0,"人"),listData:n.work_teachers||[]})}}),totalListData:e.totalListData.map((function(e){return i()(i()({},e),{},{value:n[e.key]||0})}))})}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Ai=ji,Ti={namespace:"engineeringNormDetail",state:{actionTabs:{key:"",params:{}},dataSource:{name:"",goal_value:0,actual_value:0,subitems:[]}},effects:{setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},getGraduationResultDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(li,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{dataSource:t}});case 5:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},setDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{dataSource:n})}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Ii=Ti,Mi=["subitems"],Ri=["all"],Li={namespace:"engineeringNormList",state:{actionTabs:{key:"",params:{}},headerData:{dataSource:Pe()(Pe()({},_i[0],{width:235,placeholder:"请选择".concat(_i[0]),loading:"engineeringNormList/getMajorList",dataList:[]}),_i[1],{width:138,placeholder:"请选择".concat(_i[1]),loading:"engineeringNormList/getYearList",dataList:[]}),active:{}},tabListData:[],expandedRowKeys:[],all_goal_value:""},effects:{setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},getMajorList:function(e,t){Oi()(e);var n=t.call,r=t.put,a=t.select;return d()().mark((function e(){var t,o,i,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((function(e){return e.user}));case 2:if(t=e.sent,null==(o=t.userInfo)||!o.school_id){e.next=12;break}return e.next=7,n(pi,o.school_id);case 7:if(!(i=e.sent)||!i.data){e.next=12;break}return u=gi(null==o?void 0:o.login),e.next=12,r({type:"setMajorOrYearDataSource",payload:{key:_i[0],value:i.data.map((function(e){return{label:e.name,value:e.ec_major_school_id}})),active:i.data.length>0?u[0]||i.data[0].ec_major_school_id:void 0}});case 12:case"end":return e.stop()}}),e)}))()},getYearList:function(e,t){var n=e.payload,r=t.call,a=t.put,o=t.select;return d()().mark((function e(){var t,i,u,c;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(di,n.id);case 2:return t=e.sent,e.next=5,o((function(e){return e.user}));case 5:if(i=e.sent,u=i.userInfo,!t||!t.data){e.next=11;break}return c=gi(null==u?void 0:u.login),e.next=11,a({type:"setMajorOrYearDataSource",payload:{key:_i[1],value:t.data.map((function(e){return{label:e.year,value:e.ec_year_id}})),active:t.data.length>0?n.firstEnter?c[1]:t.data[0].ec_year_id:void 0}});case 11:case"end":return e.stop()}}),e)}))()},getGraduationResults:function(e,t){Oi()(e);var n=t.call,r=t.put,a=t.select;return d()().mark((function e(){var t,o,u,c,s,l,f,p,h,v;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((function(e){return e.engineeringNormList}));case 2:return t=e.sent,o=t.headerData,e.next=6,a((function(e){return e.user}));case 6:if(u=e.sent,c=u.userInfo,s=[],l=[],f="",!(p=o.active[_i[1]])){e.next=19;break}return h=[o.active[_i[0]],o.active[_i[1]]],yi(null==c?void 0:c.login,h),e.next=17,n(ui,p);case 17:(v=e.sent)&&v.graduation_requirements&&(f=v.all_goal_value||"",s=v.graduation_requirements.map((function(e){var t=e.subitems,n=Yo()(e,Mi);return l.push(n.id),i()(i()({},n),{},{children:t})})));case 19:return e.next=21,r({type:"save",payload:{tabListData:s,all_goal_value:f,expandedRowKeys:l}});case 21:case"end":return e.stop()}}),e)}))()},exportGraduation:function(e,t){Oi()(e);var n=t.call,r=t.select;return d()().mark((function e(){var t,a;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r((function(e){return e.engineeringNormList}));case 2:if(t=e.sent,!(a=t.headerData).active[_i[1]]){e.next=7;break}return e.next=7,n(ai,a.active[_i[1]]);case 7:case"end":return e.stop()}}),e)}))()},compute:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o,i;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.all,o=Yo()(n,Ri),e.next=3,r(t?oi:ii,o);case 3:if(!(i=e.sent)||0!==i.status){e.next=10;break}return mi.ZP.success("计算完成"),e.next=8,a({type:"getGraduationResults"});case 8:e.next=11;break;case 10:mi.ZP.error(i.message);case 11:case"end":return e.stop()}}),e)}))()},getFormulas:function(e,t){var n=e.callback,r=t.call,a=t.select;return d()().mark((function e(){var t,o,i;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((function(e){return e.engineeringNormList}));case 2:if(t=e.sent,!(o=t.headerData).active[_i[1]]){e.next=9;break}return e.next=7,r(ci,o.active[_i[1]]);case 7:i=e.sent,n(i);case 9:case"end":return e.stop()}}),e)}))()},setFormulas:function(e,t){var n=e.payload,r=e.callback,a=t.call;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(si,n);case 2:t=e.sent,r(t);case 4:case"end":return e.stop()}}),e)}))()},putGoalValue:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fi,n);case 2:if(!(t=e.sent)||0!==t.status){e.next=11;break}return mi.ZP.success("保存成功"),e.next=7,a({type:"save",payload:{actionTabs:{key:"",params:{}}}});case 7:return e.next=9,a({type:"getGraduationResults"});case 9:e.next=14;break;case 11:o="保存失败",t&&t.message&&(o=t.message),mi.ZP.error(o);case 14:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},setMajorOrYearDataSource:function(e,t){var n=t.payload,r=e.headerData.active;return n.active&&(r=i()(i()({},r),{},Pe()({},n.key,n.active))),i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{dataSource:i()(i()({},e.headerData.dataSource),{},Pe()({},n.key,i()(i()({},e.headerData.dataSource[n.key]),{},{dataList:n.value}))),active:r})})},setMajorOrYearActive:function(e,t){var n=t.payload;return i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{active:i()(i()({},e.headerData.active),{},Pe()({},n.key,n.value))})})}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Zi=Li;function Di(e){return Ni.apply(this,arguments)}function Ni(){return(Ni=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/memos.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $i(e){return Fi.apply(this,arguments)}function Fi(){return(Fi=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/discusses/forum_discusses.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bi(e){return qi.apply(this,arguments)}function qi(){return(qi=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/memos/".concat(t.id,".json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var zi={namespace:"forumsDetail",state:{forumsDetailData:{}},effects:{getForumsDetailData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Bi,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{forumsDetailData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setForumsDetailData:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{forumsDetailData:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Hi=zi,Ui={namespace:"forumsList",state:{forumsData:{},listParams:{page:1,order:"updated_at"}},effects:{getForumsData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r("shixun_discuss"===n.memoType?$i:Di,n);case 2:return t=e.sent,delete n.memoType,o=n,e.next=7,a({type:"save",payload:{listParams:o,forumsData:i()({},t)}});case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Wi=Ui,Vi=n(12554),Gi=n(67390),Yi={namespace:"globalSetting",state:{name:"全局配置",loading:!0,isIlearning:window.location.host.indexOf("learning.")>-1,showFooter:!0,showHeader:!0,showTip:!1,showHeaderFooter:!0,showHeaderFixed:!1,onlyShowBackTop:!0,onlyShowBackTopIcons:!0,operateModel:!1,operateModelPath:"",showQuestionBackTop:!1,theme:"defaults",shareData:{title:document.title,imgUrl:"https://ali-cdn.educoder.net/images/avatars/LaboratorySetting/1tab?t=1610677202",desc:""},globalLoading:{show:!1,text:""},updateData:{end_time:"",start_time:"",subject:"",system_score:"",system_update:!1},isSaiaDomain:"saia.educoder.net"==window.location.host},effects:{query:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Vi.D2,n);case 2:return t=e.sent,Xi(t),e.next=6,a({type:"save",payload:i()({},t)});case 6:case"end":return e.stop()}}),e)}))()},getSystemUpdate:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Vi.n0,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{updateData:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},setTheme:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Vi.n0,n);case 2:return e.sent,e.next=5,a({type:"save",payload:{theme:n||"default"}});case 5:case"end":return e.stop()}}),e)}))()},setShareData:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{shareData:n}});case 2:case"end":return e.stop()}}),e)}))()},setGlobalLoading:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{globalLoading:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},delayTipToggle:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showTip:n}});case 2:case"end":return e.stop()}}),e)}))()},headerToggle:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showHeader:n}});case 2:case"end":return e.stop()}}),e)}))()},footerToggle:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showFooter:n}});case 2:case"end":return e.stop()}}),e)}))()},headerFooterToggle:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showHeaderFooter:n}});case 2:case"end":return e.stop()}}),e)}))()},headerFixedToggle:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showHeaderFixed:n}});case 2:case"end":return e.stop()}}),e)}))()},onlyShowBackTopToggle:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{onlyShowBackTop:n}});case 2:case"end":return e.stop()}}),e)}))()},onlyShowBackTopIconToggle:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{onlyShowBackTopIcons:n}});case 2:case"end":return e.stop()}}),e)}))()},setOperateModel:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{operateModel:n}});case 2:case"end":return e.stop()}}),e)}))()},setOperateModelPath:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{operateModelPath:n}});case 2:case"end":return e.stop()}}),e)}))()},setShowQuestionBackTop:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showQuestionBackTop:n}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch;return e.history.listen((function(e){e.pathname}))}}},Ki=Yi,Xi=function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(window.self===window.top&&null!==(e=r.setting)&&void 0!==e&&e.tab_logo_url){var a=document.createElement("link"),o=document.getElementById("dynamic-favicon");a.id="dynamic-favicon",a.rel="shortcut icon",a.href=null!==(t=r.setting)&&void 0!==t&&t.tab_logo_url?"".concat(Gi.Z.IMG_SERVER,"/").concat(null===(n=r.setting)||void 0===n?void 0:n.tab_logo_url):"",o&&document.head.removeChild(o),document.head.appendChild(a);try{var i,u;if(null===(i=r.setting)||void 0===i||!i.main_site)document.querySelector('meta[name="keywords"]').content=null===(u=r.setting)||void 0===u?void 0:u.name,document.querySelector('meta[name="description"]').remove()}catch(e){}}},Qi=n(13071),Ji={namespace:"graduations",state:{actionTabs:{key:"",params:{}},details:{},menus:[],forTask:[],ownedList:[],students:{},years:[],graduation:{teachers_count:0,students_count:0,graduation_tasks_count:0},teachers:{},graduation_stages:[],Notices:{total_count:0,no_deal_count:0},Tasks:{data:[],count:0},updateIndex:1},effects:{getGraduationsStageDetails:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.Xh,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getGraduationsFinalScore:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.H3,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getDelGraduationsTasks:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.km,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getGraduationsTasks:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.Xw,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{Tasks:t}});case 5:case"end":return e.stop()}}),e)}))()},getGraduationsTeachers:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(t){var o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.AA,n);case 2:return null==(o=e.sent)||null===(t=o.data)||void 0===t||t.map((function(e){return e.key=e.id,e})),e.next=6,a({type:"save",payload:{teachers:o}});case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)}))()},getGraduationsStudents:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(t){var o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.eh,n);case 2:return null==(o=e.sent)||null===(t=o.data)||void 0===t||t.map((function(e){return e.key=e.id,e})),e.next=6,a({type:"save",payload:{students:o}});case 6:case"end":return e.stop()}}),e)}))()},getGraduationsNotices:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.Rk,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{Notices:t}});case 5:case"end":return e.stop()}}),e)}))()},getGraduationsInfo:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.F7,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{graduation:t.graduation}});case 5:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},setUpdateIndex:function(e,t){e.payload,t.call;var n=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:"save",payload:{updateIndex:Math.random()}});case 2:case"end":return e.stop()}}),e)}))()},getGraduationsDetails:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.Ou,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{details:(null==t?void 0:t.graduation)||{},menus:(null==t?void 0:t.data)||[],forTask:(null==t?void 0:t.for_task)||[]}});case 5:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}}},eu=Ji,tu=n(56007),nu={namespace:"homePage",state:{name:"首页",loading:!0},effects:{home:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(tu.Tt,{payload:n});case 2:return t=e.sent,e.next=5,a({type:"save",payload:i()(i()({},t),{},{isloading:!0})});case 5:case"end":return e.stop()}}),e)}))()},query:function(e,t){e.payload,t.call;var n=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:"save",payload:{name:"linlu"}});case 2:case"end":return e.stop()}}),e)}))()},getHomeNotice:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(tu.LA,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},UploadNotice:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(tu.S_,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},ru=nu,au={namespace:"innovation",state:{visibleModalName:"",hideRemindModal:!0,openForkModalPosition:"forkButton",simpleModalProps:{visible:!1}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},openModal:function(e,t){return i()(i()({},e),{},{visibleModalName:t.payload})},closeModal:function(e){return i()(i()({},e),{},{visibleModalName:""})},openSimpleModal:function(e,t){return i()(i()({},e),{},{simpleModalProps:i()({visible:!0},t.payload)})},closeSimpleModal:function(e){return i()(i()({},e),{},{simpleModalProps:{visible:!1}})}}},ou=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/paid_subjects/banner.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),iu=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/paid_subjects/top_category.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),uu=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/paid_subjects/hot_recommend_subjects.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),cu=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/paid_subjects/time_discount_subjects.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),su=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/paid_subjects.json",{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),lu=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/paid_subjects/all_tags.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fu=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/paid_subjects/user_comments.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),pu=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/paid_subjects/info_show.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),du={namespace:"intraincourse",state:{name:"用户登录模块",BannerList:[],Adv:{},TopCategoryList:[],HotList:[],DiscountList:[],SubjectList:{},Tags:[],UserComments:[],InfoShow:{}},effects:{getBannerList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o,i,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ou,n);case 2:return t=e.sent,o=t.data,i=o.adv,u=o.top_banner,e.next=8,a({type:"save",payload:{BannerList:u,Adv:i}});case 8:case"end":return e.stop()}}),e)}))()},getTopCategoryList:function(e,t){var n=e.payload,r=t.call,o=t.put;return d()().mark((function e(){var t,i;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(iu,n);case 2:return t=e.sent,i=t.data.top_category_list,e.next=6,o({type:"save",payload:{TopCategoryList:[{id:-1,name:"全部"}].concat(a()(i))}});case 6:case"end":return e.stop()}}),e)}))()},getHotList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(uu,n);case 2:return t=e.sent,o=t.data.hot_list,e.next=6,a({type:"save",payload:{HotList:o}});case 6:case"end":return e.stop()}}),e)}))()},getDiscountList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(cu,n);case 2:return t=e.sent,o=t.data.discount_list,e.next=6,a({type:"save",payload:{DiscountList:o}});case 6:case"end":return e.stop()}}),e)}))()},getPaidSubjects:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(su,n);case 2:return t=e.sent,o=t.data,e.next=6,a({type:"save",payload:{SubjectList:o}});case 6:case"end":return e.stop()}}),e)}))()},getTags:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(lu,n);case 2:return t=e.sent,o=t.data.list,e.next=6,a({type:"save",payload:{Tags:o}});case 6:case"end":return e.stop()}}),e)}))()},getUserComments:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fu,n);case 2:return t=e.sent,o=t.data.list,e.next=6,a({type:"save",payload:{UserComments:o}});case 6:case"end":return e.stop()}}),e)}))()},getInfoShow:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(pu,n);case 2:return t=e.sent,o=t.data,e.next=6,a({type:"save",payload:{InfoShow:o}});case 6:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}}},hu=du,vu={namespace:"loadingss",state:{global:!1,effects:{},models:{}}};function mu(e){return yu.apply(this,arguments)}function yu(){return(yu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/tidings.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gu(e){return bu.apply(this,arguments)}function bu(){return(bu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/".concat(t.userId,"/unread_message_info.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _u(e){return wu.apply(this,arguments)}function wu(){return(wu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/".concat(t.userId,"/private_messages.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xu(e){return ku.apply(this,arguments)}function ku(){return(ku=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/".concat(t.id,"/recent_contacts.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Eu(e){return Su.apply(this,arguments)}function Su(){return(Su=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users_for_private_messages.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Cu(e){return Pu.apply(this,arguments)}function Pu(){return(Pu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/".concat(t.userId,"/private_message_details.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ou={namespace:"messages",state:{tidingsList:[],privateMessage:[],unreadInfo:[],recentContacts:{},privateMessageDetails:{},userPrivateMessage:{},actionTabs:{key:"",params:{}}},effects:{getPrivateMessageDetails:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Cu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{privateMessageDetails:t||[]}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getTidings:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(mu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{tidingsList:t||[]}});case 5:case"end":return e.stop()}}),e)}))()},getPrivateMessages:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(_u,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{privateMessage:t||[]}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getUsersForPrivateMessages:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Eu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{userPrivateMessage:t||[]}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},unreadMessageInfo:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(gu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{unreadInfo:t||[]}});case 5:case"end":return e.stop()}}),e)}))()},getRecentContacts:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(xu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{recentContacts:t||[]}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},ju=Ou,Au=function(e){return(0,m.ZP)("/api/examination_banks/exist_course.json",{method:"post",body:e})},Tu=function(e){return(0,m.ZP)("/api/examination_banks/check_examination_banks.json",{method:"post",body:e})},Iu=function(e){return(0,m.ZP)("/api/examination_banks/".concat(e.id,"/copy.json"),{method:"post",body:e})},Mu=function(e){return(0,m.ZP)("/api/examination_banks/".concat(e.id,"/get_question_type_alias.json"),{method:"get",params:e})};function Ru(e){return Lu.apply(this,arguments)}function Lu(){return(Lu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/disciplines.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Zu(e){return Du.apply(this,arguments)}function Du(){return(Du=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/disciplines/by_examination_banks.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Nu(e){return $u.apply(this,arguments)}function $u(){return($u=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fu(e){return Bu.apply(this,arguments)}function Bu(){return(Bu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/set_public.json"),{method:"post"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qu(e){return zu.apply(this,arguments)}function zu(){return(zu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Hu(e){return Uu.apply(this,arguments)}function Uu(){return(Uu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/question_banks/my_courses.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Wu=function(e){return(0,m.ZP)("/api/examination_banks/batch_send_to_course.json",{method:"post",body:e})};function Vu(e){return Gu.apply(this,arguments)}function Gu(){return(Gu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/send_to_course.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Yu(e){return Ku.apply(this,arguments)}function Ku(){return(Ku=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,".json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xu(e){return Qu.apply(this,arguments)}function Qu(){return(Qu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/examination_banks_item_banks/").concat(t.itemId,"/set_score"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ju(e){return ec.apply(this,arguments)}function ec(){return(ec=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/examination_banks_item_banks/").concat(t.itemId,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function tc(e){return nc.apply(this,arguments)}function nc(){return(nc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/examination_banks_item_banks/batch_set_score.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function rc(e){return ac.apply(this,arguments)}function ac(){return(ac=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/examination_banks_item_banks/destroy_by_item_type.json"),{method:"delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oc(e){return ic.apply(this,arguments)}function ic(){return(ic=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/examination_banks_item_banks/").concat(t.itemId,"/adjust_position.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function uc(e){return cc.apply(this,arguments)}function cc(){return(cc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,".json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function sc(e){return lc.apply(this,arguments)}function lc(){return(lc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/teach_group_shares.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fc(e){return pc.apply(this,arguments)}function pc(){return(pc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/edit_exam.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dc(e){return hc.apply(this,arguments)}function hc(){return(hc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/examination_banks_item_banks/create_item_bank.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vc(e){return mc.apply(this,arguments)}function mc(){return(mc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t,"/exercise_header.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var yc=n(91232),gc=n.n(yc),bc=n(1079),_c=[{id:0,name:"单选题",nameType:"SINGLE"},{id:1,name:"多选题",nameType:"MULTIPLE"},{id:2,name:"判断题",nameType:"JUDGMENT"},{id:3,name:"填空题",nameType:"COMPLETION"},{id:4,name:"简答题",nameType:"SUBJECTIVE"},{id:5,name:"实训题",nameType:"PRACTICAL"},{id:6,name:"编程题",nameType:"PROGRAM"},{id:7,name:"组合题",nameType:"COMBINATION"},{id:8,name:"程序填空题",nameType:"BPROGRAM"}],wc=function(e,t){var n,r,a,o,u,c,s,l,f;if(e){var p=e||{},d=p.exam,h=p.single_questions,v=p.multiple_questions,m=p.judgement_questions,y=p.program_questions,g=p.completion_questions,b=p.subjective_questions,_=p.practical_questions,w=p.combination_questions,x=p.bprogram_questions,k=[i()({type:"SINGLE",question_type:0,name:(null==t||null===(n=t.find((function(e){return e.value==_c[0].nameType})))||void 0===n?void 0:n.name)||_c[0].name},h),i()({type:"MULTIPLE",question_type:1,name:(null==t||null===(r=t.find((function(e){return e.value==_c[1].nameType})))||void 0===r?void 0:r.name)||_c[1].name},v),i()({type:"JUDGMENT",question_type:2,name:(null==t||null===(a=t.find((function(e){return e.value==_c[2].nameType})))||void 0===a?void 0:a.name)||_c[2].name},m),i()({type:"PROGRAM",question_type:6,name:(null==t||null===(o=t.find((function(e){return e.value==_c[6].nameType})))||void 0===o?void 0:o.name)||_c[6].name},y),i()({type:"COMPLETION",question_type:3,name:(null==t||null===(u=t.find((function(e){return e.value==_c[3].nameType})))||void 0===u?void 0:u.name)||_c[3].name},g),i()({type:"SUBJECTIVE",question_type:4,name:(null==t||null===(c=t.find((function(e){return e.value==_c[4].nameType})))||void 0===c?void 0:c.name)||_c[4].name},b),i()({type:"PRACTICAL",question_type:5,name:(null==t||null===(s=t.find((function(e){return e.value==_c[5].nameType})))||void 0===s?void 0:s.name)||_c[5].name},_),i()({type:"COMBINATION",question_type:7,name:(null==t||null===(l=t.find((function(e){return e.value==_c[7].nameType})))||void 0===l?void 0:l.name)||_c[7].name},w),i()({type:"BPROGRAM",question_type:8,name:(null==t||null===(f=t.find((function(e){return e.value==_c[8].nameType})))||void 0===f?void 0:f.name)||_c[8].name},x)],E=[];if(e.sort_by_qustion_type){var S,C=gc()(e.qustion_type_order_name_en);try{var P=function(){var e=S.value;E.push(k.find((function(t){return t.type===e})))};for(C.s();!(S=C.n()).done;)P()}catch(e){C.e(e)}finally{C.f()}}return{exam:d,questionList:(e.sort_by_qustion_type?E:k).filter((function(e){return(null==e?void 0:e.questions_count)>0})).map((function(e,t){var n;return i()(i()({},e),{number:(0,bc.EM)(t+1),questions:null==e||null===(n=e.questions)||void 0===n?void 0:n.map((function(t){return i()(i()({},t),{},{shixun:t.examination_bank_shixun_challenges,question_type:e.question_type})}))})}))}}},xc=function(e){return null==e?void 0:e.map((function(e){var t=(e.sub_disciplines||[]).map((function(e){return{value:e.id,label:e.name}}));return{value:e.id,label:e.name,children:t}}))},kc={1:"一",2:"二",3:"三",4:"四",5:"五",6:"六",7:"七",8:"八"},Ec=function(e){if(e){var t=e||{},n=t.all_questions_count,r=t.all_score,a=t.single_questions,o=t.multiple_questions,u=t.judgement_questions,c=t.program_questions,s=t.completion_questions,l=t.subjective_questions,f=t.practical_questions,p=t.combination_questions;return{all_questions_count:n,all_score:r,questionList:[i()({type:"SINGLE",name:"单选题"},a),i()({type:"MULTIPLE",name:"多选题"},o),i()({type:"COMPLETION",name:"填空题"},s),i()({type:"JUDGMENT",name:"判断题"},u),i()({type:"SUBJECTIVE",name:"简答题"},l),i()({type:"PROGRAM",name:"编程题"},c),i()({type:"PRACTICAL",name:"实训题"},f),i()({type:"COMBINATION",name:"组合题"},p)].filter((function(e){return e.questions_count>0})).map((function(e,t){return i()(i()({},e),{number:kc[t+1]})}))}}},Sc={namespace:"paperlibrary",state:{paperData:void 0,disciplinesData:void 0,teachGroupData:void 0,courseOptions:[],actionTabs:{key:"",params:{}}},effects:{postExistCourse:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Au,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},postCheckExaminationBanks:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Tu,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},postPaperlibraryCopy:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Iu,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getDisciplines:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ru,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{disciplinesData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCustomDisciplines:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Zu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{disciplinesData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getEditDisciplines:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ru,n);case 2:return t=e.sent,o=null==t?void 0:t.disciplines,u=xc(o),e.next=7,a({type:"save",payload:{courseOptions:u,disciplinesData:i()({},t)}});case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e)}))()},getTeachGroupData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(sc,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{teachGroupData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getPaperData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o,i;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Yu,n);case 2:return t=e.sent,e.next=5,r(Mu,n);case 5:return o=e.sent,i=wc(t,o.data),e.next=9,a({type:"save",payload:{paperData:i}});case 9:return e.abrupt("return",t);case 10:case"end":return e.stop()}}),e)}))()},getPaperlibraryList:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Nu,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setPublic:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Fu,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},handleDelete:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(qu,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getCourseList:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Hu,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},postBatchSendToCourse:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Wu,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},sendToClass:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Vu,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},adjustPosition:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(oc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setScore:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Xu,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},handleDeleteEditQuestion:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ju,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},batchSetScore:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(tc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},batchDelete:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(rc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updatePaper:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(uc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Cc=Sc,Pc={namespace:"newExercisePaper",state:{loading:!0,exerciseExportHeadData:{},tagDisciplineData:{},editData:{},actionTabs:{removeEventListenerExitScreen:!1}},effects:{getExerciseExportHeadData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(vc,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{exerciseExportHeadData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},editExercise:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fc,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getTagDiscipline:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.YY,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{tagDisciplineData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},editExerciseQuestion:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(dc,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},addExerciseQuestion:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(dc,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},modifyTitle:function(e,t){var n=(0,vt.cloneDeep)(e);return n.editData.exercise.exercise_name=t.payload,n}},subscriptions:{setup:function(e){e.dispatch,e.history}}},Oc=Pc,jc=n(77233),Ac={namespace:"pathsDetail",state:{detail:{},rightData:{},Courses:{},stageData:[],StageChildrenData:{},discusses:{},actionTabs:{key:"",params:{}},isShowSchedule:!1,keywords:"",stage_id:null,visibleType:"All",editKey:-1},effects:{getDiscusses:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.Ax,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{discusses:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getKnowledgeGraphs:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.Bz,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detail:i()({},(null==t?void 0:t.data)||{})}});case 5:return e.abrupt("return",(null==t?void 0:t.data)||{});case 6:case"end":return e.stop()}}),e)}))()},getPathsDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.lk,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCourseDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.Sp,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getRightData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.AQ,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{rightData:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getCoureses:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.ue,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{Courses:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getStageChildrenData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.w4,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{StageChildrenData:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getStageData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(t,o,i,u){var c;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=null,null==n||!n.show_course_section){e.next=7;break}return e.next=4,r(jc.yN,n);case 4:c=e.sent,e.next=10;break;case 7:return e.next=9,r(jc.p,n);case 9:c=e.sent;case 10:return e.next=12,a({type:"save",payload:{stageData:(null===(t=c)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.stages)||(null===(o=c)||void 0===o?void 0:o.stages)||[],isShowSchedule:(null===(i=c)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.is_show_schedule)||(null===(u=c)||void 0===u?void 0:u.is_show_schedule)||!1}});case 12:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}}},Tc=Ac,Ic={namespace:"pathsList",state:{name:"",loading:!0,actionTabs:{key:"",params:{}},listParams:{sort:"desc",order:"new",page:1,limit:16,keyword:""}},effects:{getCourse:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n,e.next=3,r(jc.tS,n);case 3:return o=e.sent,e.next=6,a({type:"save",payload:i()({listParams:t},o)});case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)}))()},getMenus:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.fh,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{menus:t}});case 5:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},clearListParams:function(e,t){e.payload,t.call;var n=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:"save",payload:{listParams:{sort:"desc",order:"new",page:1,limit:16,keyword:""}}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Mc=Ic,Rc={namespace:"newCourse",state:{actionTabs:{key:"",params:{}}},effects:{editCourse:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.tu,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},submitCourse:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.pU,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getEditCourseData:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.mQ,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getSchoolOption:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.GY,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},appplySchool:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.bz,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Lc=Rc,Zc={namespace:"pathsOverview",state:{},effects:{getSubjectUseInfos:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.nq,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SubjectUseInfos:t}});case 5:case"end":return e.stop()}}),e)}))()},getRankList:function(e,t){var n=e.payload,r=t.call,o=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.Fg,n);case 2:return t=e.sent,e.next=5,o({type:"save",payload:{RankList:i()(i()({},t),{},{learn_list:[{rank:"排名",name:"实践课程名称",data:"学习人数"}].concat(a()((null==t?void 0:t.learn_list)||[]))})}});case 5:case"end":return e.stop()}}),e)}))()},getStatisticsBody:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.Gz,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SBody:t}});case 5:case"end":return e.stop()}}),e)}))()},getOnlineCount:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.hS,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{OnlineCount:null==t?void 0:t.data}});case 5:case"end":return e.stop()}}),e)}))()},getStatisticsHeader:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.Hl,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SHeader:t}});case 5:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Dc=Zc;function Nc(e){return $c.apply(this,arguments)}function $c(){return($c=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/disciplines.json",{method:"get",params:i()(i()({},t),{},{clazz:"ItemBanksGroup"})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fc(e){return Bc.apply(this,arguments)}function Bc(){return(Bc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets/basket_list.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qc(e){return zc.apply(this,arguments)}function zc(){return(zc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Hc(e){return Uc.apply(this,arguments)}function Uc(){return(Uc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks/list.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wc(e){return Vc.apply(this,arguments)}function Vc(){return(Vc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks/".concat(t.id,"/set_private.json"),{method:"post"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Gc(e){return Yc.apply(this,arguments)}function Yc(){return(Yc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks/".concat(t.id,"/set_public.json"),{method:"post"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Kc(e){return Xc.apply(this,arguments)}function Xc(){return(Xc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks/".concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Qc(e){return Jc.apply(this,arguments)}function Jc(){return(Jc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/problems/".concat(t.id,"/start.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function es(e){return ts.apply(this,arguments)}function ts(){return(ts=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets/".concat(t.id,".json"),{method:"delete",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ns(e){return rs.apply(this,arguments)}function rs(){return(rs=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function as(e){return os.apply(this,arguments)}function os(){return(os=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/cancel_items.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function is(e){return us.apply(this,arguments)}function us(){return(us=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets/delete_item_type.json",{method:"delete",body:{item_type:t.type}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function cs(e){return ss.apply(this,arguments)}function ss(){return(ss=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/cancel_items.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ls(e){return fs.apply(this,arguments)}function fs(){return(fs=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/tag_disciplines.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ps(e){return ds.apply(this,arguments)}function ds(){return(ds=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks/".concat(t.id,".json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function hs(e){return vs.apply(this,arguments)}function vs(){return(vs=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ms(e){return ys.apply(this,arguments)}function ys(){return(ys=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks/".concat(t.id,"/edit.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gs(e){return bs.apply(this,arguments)}function bs(){return(bs=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/problems/".concat(t.id,"/edit.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _s(e){return ws.apply(this,arguments)}function ws(){return(ws=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xs(e){return ks.apply(this,arguments)}function ks(){return(ks=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets/".concat(t.id,"/set_score.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Es(e){return Ss.apply(this,arguments)}function Ss(){return(Ss=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets/".concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Cs(e){return Ps.apply(this,arguments)}function Ps(){return(Ps=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets/batch_set_score.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Os(e){return js.apply(this,arguments)}function js(){return(js=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets/delete_item_type.json",{method:"delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function As(e){return Ts.apply(this,arguments)}function Ts(){return(Ts=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets/".concat(t.id,"/adjust_position.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Is(e){return Ms.apply(this,arguments)}function Ms(){return(Ms=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Rs(e){return Ls.apply(this,arguments)}function Ls(){return(Ls=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks_groups/mine.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Zs(e){return Ds.apply(this,arguments)}function Ds(){return(Ds=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/teach_group_shares.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ns(e){return(0,m.ZP)("/api/item_banks/cancel_public.json",{method:"post",body:{ids:a()(e.id)}})}var $s={namespace:"problemset",state:{disciplinesData:void 0,courseOptions:[],basketData:void 0,editData:void 0,groupData:void 0,teachGroupData:void 0,actionTabs:{key:"",params:{}},groupfolderList:{}},effects:{getGroup:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(qc,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{groupfolderList:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getDisciplines:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Nc,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{disciplinesData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getEditDisciplines:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Nc,n);case 2:return t=e.sent,o=null==t?void 0:t.disciplines,u=xc(o),e.next=7,a({type:"save",payload:{courseOptions:u,disciplinesData:i()({},t)}});case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e)}))()},getBasketList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Fc,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{basketData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getTeachGroupData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Zs,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{teachGroupData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getEditData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ms,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getEditDataBprogram:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(gs,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getGroupData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Rs,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{groupData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getItemBanks:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Hc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setPrivate:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Wc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},revokePublish:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ns,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setPublic:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Gc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},handleDelete:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Kc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},startExperience:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},cancel:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(es,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},select:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ns,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},examUnselectAll:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(as,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},basketDelete:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(is,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},unselectAll:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(cs,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},addKnowledge:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ls,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},editProblemset:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ps,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},addProblemset:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(hs,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Fs=$s,Bs={namespace:"problemsetPreview",state:{disciplinesData:void 0,courseOptions:[],paperData:void 0,actionTabs:{key:"",params:{}}},effects:{getPaperData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(_s,n);case 2:return t=e.sent,o=Ec(t),e.next=6,a({type:"save",payload:{paperData:o}});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getEditDisciplines:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Nc,n);case 2:return t=e.sent,o=null==t?void 0:t.disciplines,u=xc(o),e.next=7,a({type:"save",payload:{courseOptions:u,disciplinesData:i()({},t)}});case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e)}))()},setScore:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(xs,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},handleDelete:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Es,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},batchSetScore:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Cs,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},batchDelete:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Os,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},adjustPosition:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(As,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},newPreviewProblemset:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Is,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},qs=Bs;function zs(e){return Hs.apply(this,arguments)}function Hs(){return(Hs=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/restfuls.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Us(e){return Ws.apply(this,arguments)}function Ws(){return(Ws=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/restfuls/".concat(t.id,".json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Vs={namespace:"restful",state:{restful:void 0,restfulDetail:{},actionTabs:{key:"",params:{}}},effects:{getRestful:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(zs,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{restful:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getRestfulDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Us,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{restfulDetail:i()({},(null==t?void 0:t.data)||{})}});case 5:return e.abrupt("return",(null==t?void 0:t.data)||{});case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Gs=Vs,Ys=n(18240),Ks=function(){var e,t,n,r,a,o,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[{name:"内容审核情况",id:"Content",status:null==i||null===(e=i.content_info)||void 0===e?void 0:e.status,username:null==i||null===(t=i.content_info)||void 0===t?void 0:t.username,time:null==i||null===(n=i.content_info)||void 0===n?void 0:n.time},{name:"性能审核情况",id:"Performance",status:null==i||null===(r=i.perference_info)||void 0===r?void 0:r.status,username:null==i||null===(a=i.perference_info)||void 0===a?void 0:a.username,time:null==i||null===(o=i.perference_info)||void 0===o?void 0:o.time}]},Xs={namespace:"shixunsDetail",state:{detail:void 0,rightData:void 0,challenges:{is_jupyter:!0,is_jupyter_lab:!0}||null,auditSituationData:void 0,setting:void 0,challengesNew:{},challengesEdit:{},editChallengesQuestion:{},fileContent:{},hasStartedEnv:!1,repository:{},mirrorApplies:{},infoWithJupyterLab:{},actionTabs:{key:"",params:{}},pollDetail:{}},effects:{getStartAnswer:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.wX,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{pollDetail:null==t?void 0:t.data}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getShixunsDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Po,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getMirrorApplies:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.tX,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{mirrorApplies:i()({},(null==t?void 0:t.data)||{})}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getRightData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.AQ,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{rightData:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getChallengesData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.n5,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{challenges:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},saveCopyForExercise:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.FB,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},execJupyter:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.BK,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},execShixun:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Ir,n);case 2:return-3===(null==(t=e.sent)?void 0:t.status)&&(0,bc.eF)(),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)}))()},openChallenge:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.dK,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},challengeMoveUp:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.zD,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},challengeMoveDown:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.hn,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},cancelCollect:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.rs,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},collect:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.KM,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},searchUserCourses:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys._7,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},sendToCourse:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Q,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},cancelRelease:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Ne,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},cancelPublic:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Er,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},applyPublic:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.WO,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},release:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Ar,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updateAuditSituation:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.LP,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getCollaboratorsData:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.j8,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},addCollaborator:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.OV,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},addTeachGroupMember:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.l3,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getChangeManager:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.P2,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},changeManager:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.X$,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteCollaborators:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.xk,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getRankingList:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.h_,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getMirrorScript:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Z2,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getScriptContent:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Bj,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getCustomScript:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Wi,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updateSettingBasicInfo:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.ZO,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getShixunQuote:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Gr,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteShixun:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Ps,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},permanentClose:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.U9,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getDepartments:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Ql,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updatePermissionSetting:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.aH,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updateLearnSetting:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.yE,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updateSetting:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.m7,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getSetData:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.U0,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteDataSet:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.uo,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteGitFile:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.sr,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteGitFiles:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.p0,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},moveGitFile:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.IT,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},moveGitFiles:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.t2,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getRepository:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Ag,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{repository:i()({},t)}});case 5:return e.abrupt("return",i()({},t));case 6:case"end":return e.stop()}}),e)}))()},getRepositorys:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Wl,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{repository:i()({},t)}});case 5:return e.abrupt("return",i()({},t));case 6:case"end":return e.stop()}}),e)}))()},getSecretRepository:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.w,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{secretRepository:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},addRepositoryFile:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.v3,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},addRepositoryFiles:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.fL,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getRepositoryCommit:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Je,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getFileContent:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.LK,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{fileContent:i()(i()({},t),{},{params:n})}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getFileContents:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.nu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{fileContent:i()(i()({},t),{},{params:n})}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},updateRepositoryFile:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.kF,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updateRepositoryFiles:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.jq,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},uploadGitFolder:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Op,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updateCollaboratorEditable:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Dz,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getSettingsData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.DC,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{setting:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getChallengesNew:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.km,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{challengesNew:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getChallengesEdit:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.q0,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{challengesEdit:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getAuditSituationData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.GI,n);case 2:return t=e.sent,o=Ks(t),e.next=6,a({type:"save",payload:{auditSituationData:o}});case 6:case"end":return e.stop()}}),e)}))()},getEditChallengesQuestion:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.UQ,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editChallengesQuestion:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getInfoWithJupyterLab:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.mI,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{infoWithJupyterLab:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return console.log("reducers:",e,t),i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Qs=Xs,Js={namespace:"shixunsList",state:{name:"",loading:!0,listParams:{sort:"desc",order_by:"new",page:1,limit:16,keyword:"",status:0,diff:0,hideme:!1}},effects:{getShixuns:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.he,n);case 2:return t=e.sent,o=i()({},n),e.next=6,a({type:"save",payload:i()({listParams:o},t)});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getMenus:function(e,t){var n=e.payload,r=t.call,o=t.put;return d()().mark((function e(t){var i;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.I_,n);case 2:return null==(i=e.sent)||null===(t=i.disciplines)||void 0===t||t.map((function(e){return e.sub_repertoires=e.sub_disciplines,e})),e.next=6,o({type:"save",payload:{menus:a()((null==i?void 0:i.disciplines)||[])}});case 6:case"end":return e.stop()}}),e)}))()},clearListParams:function(e,t){e.payload,t.call;var n=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:"save",payload:{listParams:{sort:"desc",order_by:"new",page:1,limit:16,keyword:"",status:0,diff:0,hideme:!1}}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},el=Js,tl={namespace:"newShixuns",state:{newData:{},actionTabs:{key:"",params:{}},environmentData:{}},effects:{getNewShixunsData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.b8,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{newData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},deleteAttachment:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.OW,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},applyShixunMirror:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.EH,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},submitShixuns:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.eX,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getShixunsJupyterLab:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Gu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{newData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},getEnvironmentData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.K,n);case 2:return t=e.sent,console.log(t,"response"),e.next=6,a({type:"save",payload:{environmentData:i()({},t.data)}});case 6:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},nl=tl,rl={namespace:"shixunsOverview",state:{},effects:{getShixunUseInfos:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.e,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{ShixunUseInfos:t}});case 5:case"end":return e.stop()}}),e)}))()},getRankList:function(e,t){var n=e.payload,r=t.call,o=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Fg,n);case 2:return t=e.sent,e.next=5,o({type:"save",payload:{RankList:{user_list:[{rank:"排名",name:"姓名",role:"角色",student_id:"学号/工号",num:"通过关卡数"}].concat(a()((null==t?void 0:t.user_list)||[])),learn_list:[{rank:"排名",name:"实践项目名称",num:"学习人数"}].concat(a()((null==t?void 0:t.learn_list)||[])),clearance_list:[{rank:"排名",name:"实践项目名称",num:"通关数"}].concat(a()((null==t?void 0:t.clearance_list)||[])),quote_list:[{rank:"排名",name:"实践项目名称",num:"引用次数"}].concat(a()((null==t?void 0:t.quote_list)||[]))}}});case 5:case"end":return e.stop()}}),e)}))()},getStatisticsBody:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Gz,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SBody:t}});case 5:case"end":return e.stop()}}),e)}))()},getOnlineCount:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.hS,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{OnlineCount:null==t?void 0:t.data}});case 5:case"end":return e.stop()}}),e)}))()},getStatisticsHeader:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Hl,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SHeader:t}});case 5:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},al=rl;function ol(e){return il.apply(this,arguments)}function il(){return(il=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/shixuns/new.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ul(e){return cl.apply(this,arguments)}function cl(){return(cl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/shixuns/".concat(t.id,"/required_status.json"),{method:"Get",params:{}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var sl={namespace:"practiceSetting",state:{data:{},is_published:!0,updateIndex:1,id:"",questionName:"",base_info_warning:!1,challenges_warning:!1,repository_warning:!1,mirror_warning:!1,service_warning:!1,selectQuestionParams:{},newQuestion:null,user_name:"",user_image_url:"",title:"",windows_vnc:!0,isExistComplete:!1,sideBar:{tabsActive:"",selectPath:"",confirmLeave:!1}},effects:{setParams:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:i()({},n)});case 2:case"end":return e.stop()}}),e)}))()},getTestData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ol,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{data:t}});case 5:case"end":return e.stop()}}),e)}))()},setUpdateIndex:function(e,t){e.payload,t.call;var n=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:"save",payload:{updateIndex:Math.random()}});case 2:case"end":return e.stop()}}),e)}))()},getCommonData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ul,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:i()({},t.data)});case 5:case"end":return e.stop()}}),e)}))()},setSideBarTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"sideBar",payload:i()({},n)});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},sideBar:function(e,t){return i()(i()({},e),{},{sideBar:i()(i()({},e.sideBar),t.payload)})}},subscriptions:{setup:function(e){e.dispatch,e.history}}},ll=sl,fl=n(23003),pl={namespace:"userDetail",state:{systemUpdate:void 0,homepageInfo:void 0,homeworkBanksDetail:{},actionTabs:{key:"",params:{}}},effects:{getHomeworkBanksDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.JJ,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{homeworkBanksDetail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getSystemUpdate:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.n0,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{systemUpdate:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getHomepageInfo:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.DA,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{homepageInfo:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},signed:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.qN,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getCourses:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.Ho,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getShixuns:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.rV,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getPaths:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.w3,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getProjects:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.mW,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getVideos:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.WY,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getReviewVideos:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.Qx,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteVideo:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.FM,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getQuestionBanks:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.ai,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},topicsSetPublic:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.Cx,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},topicsDelete:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.WS,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},topicGetCourseList:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.gI,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},topicSendToClass:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("videos"!==n.object_type){e.next=4;break}return e.next=3,r(fl.Fn,n);case 3:case 6:return e.abrupt("return",e.sent);case 4:return e.next=6,r(fl.Ef,n);case 7:case"end":return e.stop()}}),e)}))()},logWatchHistory:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.lO,n);case 2:return t=e.sent,e.abrupt("return",null==t?void 0:t.log_id);case 4:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},dl=pl,hl=["to"],vl={namespace:"user",state:{name:"用户登录模块",showPopLogin:!1,showUpdateProfilePanel:!1,backurl:"",isCurrentPage:!1,showClosable:!1,bindAccountModalVisible:!1,userInfoForBindAccountModal:{},loginInfo:{login:"",password:""},userInfo:{},navigationInfo:{},loading:!0,actionTabs:{key:"",params:{},phone:""}},effects:{login:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t,a;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.to,a=Yo()(n,hl),e.next=3,r(fl.Es,a);case 3:if(!e.sent.status)try{t?f.history.replace(t):location.reload()}catch(e){}case 5:case"end":return e.stop()}}),e)}))()},showPopLogin:function(e,t){var n=e.payload,r=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showPopLogin:n.showPopLogin,showClosable:n.showClosable}});case 2:case"end":return e.stop()}}),e)}))()},showUpdateProfilePanel:function(e,t){var n=e.payload,r=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showUpdateProfilePanel:n.showUpdateProfilePanel,showClosable:n.showClosable,backurl:n.backurl,isCurrentPage:n.isCurrentPage}});case 2:case"end":return e.stop()}}),e)}))()},setBindAccountModal:function(e,t){var n=e.payload,r=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{bindAccountModalVisible:n.bindAccountModalVisible,userInfoForBindAccountModal:n.userInfoForBindAccountModal,loginInfo:n.loginInfo}});case 2:case"end":return e.stop()}}),e)}))()},getUserInfo:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.bG,i()({},n));case 2:return t=e.sent,localStorage.userInfo=JSON.stringify(t),e.next=6,a({type:"save",payload:{userInfo:i()({},t)}});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getNavigationInfo:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.x4,i()({},n));case 2:return t=e.sent,e.next=5,a({type:"save",payload:{navigationInfo:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}}},ml=vl;function yl(e){return gl.apply(this,arguments)}function gl(){return(gl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/online_learning.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var bl=function(){var e,t,n,r,a=window.location.href.split("/");if(a.includes("video")){var o=null===(e=a[a.length-1])||void 0===e?void 0:e.split("?")[0];o=Number(o);var i=null===(t=a[a.length-1])||void 0===t||null===(t=t.split("?")[1])||void 0===t?void 0:t.split("=")[1];return"subject_id"===(null===(n=a[a.length-1])||void 0===n||null===(n=n.split("?")[1])||void 0===n?void 0:n.split("=")[0])?{videoId:o,subject_id:i}:"new_video_id"===(null===(r=a[a.length-1])||void 0===r||null===(r=r.split("?")[1])||void 0===r?void 0:r.split("=")[0])?{videoId:o,new_video_id:i}:{videoId:o,course_id:i}}},_l={namespace:"videoDetail",state:{detail:{},actionTabs:{key:"",params:{}},videoTabs:{key:"",params:{}},stages:[],cust_seq:0,queryParams:bl(),videoList:[],attachmentList:[],selectParams:{checkBoxValue:!1,radioValue:1},active:{}},effects:{getVideoDetail:function(e,t){var n=e.payload,r=e.callback,a=t.call,o=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(Mo,n);case 2:if(t=e.sent,!r){e.next=7;break}r(t),e.next=9;break;case 7:return e.next=9,o({type:"save",payload:{detail:i()({},t)}});case 9:return e.abrupt("return",t);case 10:case"end":return e.stop()}}),e)}))()},setVideoValue:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{detail:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},setVideoTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{videoTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},setSelectValue:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{selectParams:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},getStageData:function(e,t){var n=e.payload,r=t.call,a=t.put,o=t.select;return d()().mark((function e(){var t,i,u,c,s,l,f,p,h,v;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r($o,n);case 2:return t=e.sent,e.next=5,r(jc.lk,{id:n.subject_id});case 5:return i=e.sent,e.next=8,o((function(e){return e.videoDetail}));case 8:return u=e.sent,c=u.queryParams,s=t.stages,f=[],p=[],h={},v=function e(t){t.forEach((function(t){String(t.id)===String(c.videoId)&&(h=t),"VideoItem"===t.item_type?f.push(t):"Attachment"===t.item_type&&p.push(t),t.children&&t.children.length&&e(t.children)}))},null==(l=void 0===s?[]:s)||l.forEach((function(e){v(e.items)})),window.filterVideoSign=[].concat(f),e.next=19,a({type:"save",payload:{stages:l,active:h,cust_seq:i.cust_seq,videoList:f,attachmentList:p}});case 19:case"end":return e.stop()}}),e)}))()},getVideoData:function(e,t){var n=e.payload,r=t.call,a=t.put;t.select;return d()().mark((function e(){var t,o,i,u,c;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Bo,n);case 2:return t=e.sent,o=t.categories,i=void 0===o?[]:o,u=t.coruse_videos,c=void 0===u?[]:u,e.next=6,a({type:"save",payload:{stages:(null==i?void 0:i.length)>0?i:[{coruse_videos:c,name:"未分配目录"}]}});case 6:case"end":return e.stop()}}),e)}))()},getCourseStageData:function(e,t){var n=e.payload,r=t.call,a=t.put,o=t.select;return d()().mark((function e(){var t,i,u,c,s,l,f,p;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(yl,n);case 2:return t=e.sent,e.next=5,o((function(e){return e.videoDetail}));case 5:return i=e.sent,u=i.queryParams,c=t.stages,s=[],l=[],f={},p=function e(t){t.forEach((function(t){String(t.id)===String(u.videoId)&&(f=t),"VideoItem"===t.item_type?s.push(t):"Attachment"===t.item_type&&l.push(t),t.children&&t.children.length&&e(t.children)}))},null==c||c.forEach((function(e){p(e.items)})),window.filterVideoSign=[].concat(s),e.next=16,a({type:"save",payload:{active:f,stages:c,cust_seq:!0,videoList:s,attachmentList:l}});case 16:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},handleListItemClick:function(e,t){var n=e.videoList,r=e.attachmentList,o=t.payload.videoId||t.payload.attachmentId,u=[].concat(a()(n),a()(r)).find((function(e){return"".concat(e.id)==="".concat(o)}));return i()(i()({},e),{},{active:u,queryParams:i()(i()({},bl()),t.payload)})}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},wl=_l,xl=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/base_statistic_data.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function kl(e){return El.apply(this,arguments)}function El(){return(El=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/discussions/").concat(t.id,".json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Sl(e){return Cl.apply(this,arguments)}function Cl(){return(Cl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/discussions/").concat(t.id,".json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pl(e){return Ol.apply(this,arguments)}function Ol(){return(Ol=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/discussions.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function jl(e){return Al.apply(this,arguments)}function Al(){return(Al=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/discussions.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Tl(e){return Il.apply(this,arguments)}function Il(){return(Il=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/good_lessons/").concat(t.id,"/add_resources.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ml(e){return Rl.apply(this,arguments)}function Rl(){return(Rl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/good_lessons/").concat(t.id,"/lesson_resources_list.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ll(e){return Zl.apply(this,arguments)}function Zl(){return(Zl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/good_lessons/").concat(t.id,".json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Dl(e){return Nl.apply(this,arguments)}function Nl(){return(Nl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/good_lessons/").concat(t.id,".json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $l(e){return Fl.apply(this,arguments)}function Fl(){return(Fl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/good_lessons.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bl(e){return ql.apply(this,arguments)}function ql(){return(ql=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/good_lessons.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function zl(e){return Hl.apply(this,arguments)}function Hl(){return(Hl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(null==t?void 0:t.id,".json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ul(e){return Wl.apply(this,arguments)}function Wl(){return(Wl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(null==t?void 0:t.id,"/modules.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Vl,Gl={namespace:"virtualSpaces",state:{showMenu:!0,loading:!0,actionTabs:{key:"",params:{},module_id:""},virtualSpacesDetails:{},menus:[],LessonsList:{},LessonDetail:{},LessonResList:{},DiscussionList:{},DiscussionDetail:{},Workplace:{BaseData:{}}},effects:{getBaseStatisticData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(xl,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{Workplace:{BaseData:t.data}}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},putEditDiscussion:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(kl,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getDiscussionDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Sl,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{DiscussionDetail:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},postDiscussionList:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Pl,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getDiscussionList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jl,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{DiscussionList:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},postAddLessonRes:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Tl,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getLessonResourcesList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ml,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{LessonResList:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},putGoodLessonsDetail:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Dl,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getGoodLessonsDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ll,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{LessonDetail:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},postGoodLessonsList:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r($l,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getGoodLessonsList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Bl,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{LessonsList:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},setShowMenu:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showMenu:n}});case 2:case"end":return e.stop()}}),e)}))()},getVirtualSpacesDetails:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(zl,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{virtualSpacesDetails:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},setVirtualSpacesLoading:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{loading:n}});case 2:case"end":return e.stop()}}),e)}))()},getVirtualSpacesMenus:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ul,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{menus:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Yl={model_1:{namespace:"account.index",model:K},model_2:{namespace:"classrooms.announcement",model:ne},model_3:{namespace:"classrooms.attachment",model:oe},model_4:{namespace:"classrooms.boards",model:Se},model_5:{namespace:"classrooms.exercise",model:Ae},model_6:{namespace:"classrooms.graduation",model:ht},model_7:{namespace:"classrooms.homeworks",model:Nn},model_8:{namespace:"classrooms.index",model:La},model_9:{namespace:"classrooms.new",model:Da},model_10:{namespace:"classrooms.overview",model:$a},model_11:{namespace:"classrooms.polls",model:so},model_12:{namespace:"classrooms.teacher",model:Eo},model_13:{namespace:"classrooms.video",model:Ho},model_14:{namespace:"competitions.index",model:Vo},model_15:{namespace:"engineering.evaluateDetail",model:Ei},model_16:{namespace:"engineering.evaluateList",model:xi},model_17:{namespace:"engineering.index",model:Ci},model_18:{namespace:"engineering.navigation",model:Ai},model_19:{namespace:"engineering.normDetail",model:Ii},model_20:{namespace:"engineering.normList",model:Zi},model_21:{namespace:"forums.detail",model:Hi},model_22:{namespace:"forums.index",model:Wi},model_23:{namespace:"globalSetting",model:Ki},model_24:{namespace:"graduations.index",model:eu},model_25:{namespace:"homePage",model:ru},model_26:{namespace:"innovation.index",model:au},model_27:{namespace:"intraincourse.index",model:hu},model_28:{namespace:"loading",model:vu},model_29:{namespace:"messages.index",model:ju},model_30:{namespace:"paperlibrary.index",model:Cc},model_31:{namespace:"paperlibrary.newPaper",model:Oc},model_32:{namespace:"paths.detail",model:Tc},model_33:{namespace:"paths.index",model:Mc},model_34:{namespace:"paths.new",model:Lc},model_35:{namespace:"paths.overview",model:Dc},model_36:{namespace:"problemset.index",model:Fs},model_37:{namespace:"problemset.preview",model:qs},model_38:{namespace:"resetFul.index",model:Gs},model_39:{namespace:"shixuns.detail",model:Qs},model_40:{namespace:"shixuns.index",model:el},model_41:{namespace:"shixuns.new",model:nl},model_42:{namespace:"shixuns.overview",model:al},model_43:{namespace:"shixuns.practiceSetting",model:ll},model_44:{namespace:"user.detail",model:dl},model_45:{namespace:"user.index",model:ml},model_46:{namespace:"video.detail",model:wl},model_47:{namespace:"virtualSpaces.index",model:Gl}},Kl=n(37712);function Xl(e){var t=(0,f.useAppData)().pluginManager,n=(0,l.useRef)(),r=t.applyPlugins({key:"dva",type:f.ApplyPluginsType.modify,initialValue:{}});if(!n.current){n.current=(0,u.Ue)(i()({history:f.history},r.config||{}),{initialReducer:{},setupMiddlewares:function(e){return a()(e)},setupApp:function(e){e._history=f.history}}),Vl=n.current,n.current.use(s()()),(r.plugins||[]).forEach((function(e){n.current.use(e)}));for(var o=0,c=Object.keys(Yl);o0){for(t=1,n=1;t1&&"}"===e)},le=Oe("\n",!1),fe=Ae("argNameOrNumber"),pe=Ae("argNumber"),de=Oe("0",!1),he=/^[1-9]/,ve=je([["1","9"]],!1,!1),me=/^[0-9]/,ye=je([["0","9"]],!1,!1),ge=Ae("argName"),be=0,_e=0,we=[{line:1,column:1}],xe=0,ke=[],Ee=0;if(void 0!==t.startRule){if(!(t.startRule in a))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=a[t.startRule]}function Se(){return e.substring(_e,be)}function Ce(){return Ie(_e,be)}function Pe(e,t){throw function(e,t){return new I(e,[],"",t)}(e,t=void 0!==t?t:Ie(_e,be))}function Oe(e,t){return{type:"literal",text:e,ignoreCase:t}}function je(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function Ae(e){return{type:"other",description:e}}function Te(t){var n,r=we[t];if(r)return r;for(n=t-1;!we[n];)n--;for(r={line:(r=we[n]).line,column:r.column};nxe&&(xe=be,ke=[]),ke.push(e))}function Re(e,t,n){return new I(I.buildMessage(e,t),e,t,n)}function Le(){return Ze()}function Ze(){var e,t;for(e=[],t=De();t!==r;)e.push(t),t=De();return e}function De(){var t;return(t=function(){var e,t;e=be,(t=Ne())!==r&&(_e=e,n=t,t=T({type:m.literal,value:n},at()));var n;return e=t,e}())===r&&(t=function(){var t,n,a,o;Ee++,t=be,123===e.charCodeAt(be)?(n=c,be++):(n=r,0===Ee&&Me(s));n!==r&&Ge()!==r&&(a=Je())!==r&&Ge()!==r?(125===e.charCodeAt(be)?(o=l,be++):(o=r,0===Ee&&Me(f)),o!==r?(_e=t,i=a,t=n=T({type:m.argument,value:i},at())):(be=t,t=r)):(be=t,t=r);var i;Ee--,t===r&&(n=r,0===Ee&&Me(u));return t}())===r&&(t=function(){var t;t=function(){var t,n,a,o,i,u,p,d,h;t=be,123===e.charCodeAt(be)?(n=c,be++):(n=r,0===Ee&&Me(s));n!==r&&Ge()!==r&&(a=Je())!==r&&Ge()!==r?(44===e.charCodeAt(be)?(o=k,be++):(o=r,0===Ee&&Me(E)),o!==r&&Ge()!==r?(e.substr(be,6)===S?(i=S,be+=6):(i=r,0===Ee&&Me(C)),i!==r&&Ge()!==r?(u=be,44===e.charCodeAt(be)?(p=k,be++):(p=r,0===Ee&&Me(E)),p!==r&&(d=Ge())!==r?(h=function(){var t,n,a;t=be,e.substr(be,2)===_?(n=_,be+=2):(n=r,0===Ee&&Me(w));n!==r?(a=function(){var e,t,n;if(e=be,t=[],n=Be(),n!==r)for(;n!==r;)t.push(n),n=Be();else t=r;t!==r&&(_e=e,t=T({type:0,tokens:t},at()));return e=t,e}(),a!==r?(_e=t,t=n=a):(be=t,t=r)):(be=t,t=r);t===r&&(t=be,_e=be,nt.push("numberArgStyle"),(n=(n=!0)?void 0:r)!==r&&(a=Ne())!==r?(_e=t,t=n=x(a)):(be=t,t=r));return t}(),h!==r?u=p=[p,d,h]:(be=u,u=r)):(be=u,u=r),u===r&&(u=null),u!==r&&(p=Ge())!==r?(125===e.charCodeAt(be)?(d=l,be++):(d=r,0===Ee&&Me(f)),d!==r?(_e=t,t=n=P(a,i,u)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r);return t}(),t===r&&(t=function(){var t,n,a,o,i,u,p,d,h;t=be,123===e.charCodeAt(be)?(n=c,be++):(n=r,0===Ee&&Me(s));n!==r&&Ge()!==r&&(a=Je())!==r&&Ge()!==r?(44===e.charCodeAt(be)?(o=k,be++):(o=r,0===Ee&&Me(E)),o!==r&&Ge()!==r?(e.substr(be,4)===N?(i=N,be+=4):(i=r,0===Ee&&Me($)),i===r&&(e.substr(be,4)===F?(i=F,be+=4):(i=r,0===Ee&&Me(B))),i!==r&&Ge()!==r?(u=be,44===e.charCodeAt(be)?(p=k,be++):(p=r,0===Ee&&Me(E)),p!==r&&(d=Ge())!==r?(h=function(){var t,n,a;t=be,e.substr(be,2)===_?(n=_,be+=2):(n=r,0===Ee&&Me(w));n!==r?(a=function(){var t,n,a,o;t=be,n=be,a=[],o=qe(),o===r&&(o=ze());if(o!==r)for(;o!==r;)a.push(o),(o=qe())===r&&(o=ze());else a=r;n=a!==r?e.substring(n,be):a;n!==r&&(_e=t,n=T({type:1,pattern:n},at()));return t=n,t}(),a!==r?(_e=t,t=n=a):(be=t,t=r)):(be=t,t=r);t===r&&(t=be,_e=be,nt.push("dateOrTimeArgStyle"),(n=(n=!0)?void 0:r)!==r&&(a=Ne())!==r?(_e=t,t=n=x(a)):(be=t,t=r));return t}(),h!==r?u=p=[p,d,h]:(be=u,u=r)):(be=u,u=r),u===r&&(u=null),u!==r&&(p=Ge())!==r?(125===e.charCodeAt(be)?(d=l,be++):(d=r,0===Ee&&Me(f)),d!==r?(_e=t,t=n=P(a,i,u)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r);return t}());return t}())===r&&(t=function(){var t,n,a,o,i,u,p,d,h,v,y;t=be,123===e.charCodeAt(be)?(n=c,be++):(n=r,0===Ee&&Me(s));if(n!==r)if(Ge()!==r)if((a=Je())!==r)if(Ge()!==r)if(44===e.charCodeAt(be)?(o=k,be++):(o=r,0===Ee&&Me(E)),o!==r)if(Ge()!==r)if(e.substr(be,6)===q?(i=q,be+=6):(i=r,0===Ee&&Me(z)),i===r&&(e.substr(be,13)===H?(i=H,be+=13):(i=r,0===Ee&&Me(U))),i!==r)if(Ge()!==r)if(44===e.charCodeAt(be)?(u=k,be++):(u=r,0===Ee&&Me(E)),u!==r)if(Ge()!==r)if(p=be,e.substr(be,7)===W?(d=W,be+=7):(d=r,0===Ee&&Me(V)),d!==r&&(h=Ge())!==r&&(v=Ye())!==r?p=d=[d,h,v]:(be=p,p=r),p===r&&(p=null),p!==r)if((d=Ge())!==r){if(h=[],(v=Ue())!==r)for(;v!==r;)h.push(v),v=Ue();else h=r;h!==r&&(v=Ge())!==r?(125===e.charCodeAt(be)?(y=l,be++):(y=r,0===Ee&&Me(f)),y!==r?(_e=t,n=function(e,t,n,r){return T({type:m.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:n?n[2]:0,options:r.reduce((function(e,t){var n=t.id,r=t.value,a=t.location;return n in e&&Pe('Duplicate option "'+n+'" in plural element: "'+Se()+'"',Ce()),e[n]={value:r,location:a},e}),{})},at())}(a,i,p,h),t=n):(be=t,t=r)):(be=t,t=r)}else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;return t}(),t===r&&(t=function(){var t,n,a,o,i,u,p,d,h;t=be,123===e.charCodeAt(be)?(n=c,be++):(n=r,0===Ee&&Me(s));if(n!==r)if(Ge()!==r)if((a=Je())!==r)if(Ge()!==r)if(44===e.charCodeAt(be)?(o=k,be++):(o=r,0===Ee&&Me(E)),o!==r)if(Ge()!==r)if(e.substr(be,6)===G?(i=G,be+=6):(i=r,0===Ee&&Me(Y)),i!==r)if(Ge()!==r)if(44===e.charCodeAt(be)?(u=k,be++):(u=r,0===Ee&&Me(E)),u!==r)if(Ge()!==r){if(p=[],(d=He())!==r)for(;d!==r;)p.push(d),d=He();else p=r;p!==r&&(d=Ge())!==r?(125===e.charCodeAt(be)?(h=l,be++):(h=r,0===Ee&&Me(f)),h!==r?(_e=t,n=function(e,t){return T({type:m.select,value:e,options:t.reduce((function(e,t){var n=t.id,r=t.value,a=t.location;return n in e&&Pe('Duplicate option "'+n+'" in select element: "'+Se()+'"',Ce()),e[n]={value:r,location:a},e}),{})},at())}(a,p),t=n):(be=t,t=r)):(be=t,t=r)}else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;return t}(),t===r&&(t=function(){var t,n;t=be,35===e.charCodeAt(be)?(n="#",be++):(n=r,0===Ee&&Me(i));n!==r&&(_e=t,n=T({type:m.pound},at()));return t=n,t}()))),t}function Ne(){var e,t,n;if(e=be,t=[],(n=Ke())===r&&(n=Xe())===r&&(n=Qe()),n!==r)for(;n!==r;)t.push(n),(n=Ke())===r&&(n=Xe())===r&&(n=Qe());else t=r;return t!==r&&(_e=e,t=t.join("")),e=t}function $e(){var t,n,a,o,i;if(Ee++,t=be,n=[],a=be,o=be,Ee++,(i=We())===r&&(d.test(e.charAt(be))?(i=e.charAt(be),be++):(i=r,0===Ee&&Me(h))),Ee--,i===r?o=void 0:(be=o,o=r),o!==r?(e.length>be?(i=e.charAt(be),be++):(i=r,0===Ee&&Me(v)),i!==r?a=o=[o,i]:(be=a,a=r)):(be=a,a=r),a!==r)for(;a!==r;)n.push(a),a=be,o=be,Ee++,(i=We())===r&&(d.test(e.charAt(be))?(i=e.charAt(be),be++):(i=r,0===Ee&&Me(h))),Ee--,i===r?o=void 0:(be=o,o=r),o!==r?(e.length>be?(i=e.charAt(be),be++):(i=r,0===Ee&&Me(v)),i!==r?a=o=[o,i]:(be=a,a=r)):(be=a,a=r);else n=r;return t=n!==r?e.substring(t,be):n,Ee--,t===r&&(n=r,0===Ee&&Me(p)),t}function Fe(){var t,n,a;return Ee++,t=be,47===e.charCodeAt(be)?(n="/",be++):(n=r,0===Ee&&Me(g)),n!==r&&(a=$e())!==r?(_e=t,t=n=a):(be=t,t=r),Ee--,t===r&&(n=r,0===Ee&&Me(y)),t}function Be(){var e,t,n,a,o;if(Ee++,e=be,(t=Ge())!==r)if((n=$e())!==r){for(a=[],o=Fe();o!==r;)a.push(o),o=Fe();a!==r?(_e=e,t=function(e,t){return{stem:e,options:t}}(n,a),e=t):(be=e,e=r)}else be=e,e=r;else be=e,e=r;return Ee--,e===r&&(t=r,0===Ee&&Me(b)),e}function qe(){var t,n,a,o;if(t=be,39===e.charCodeAt(be)?(n=O,be++):(n=r,0===Ee&&Me(j)),n!==r){if(a=[],(o=Ke())===r&&(A.test(e.charAt(be))?(o=e.charAt(be),be++):(o=r,0===Ee&&Me(M))),o!==r)for(;o!==r;)a.push(o),(o=Ke())===r&&(A.test(e.charAt(be))?(o=e.charAt(be),be++):(o=r,0===Ee&&Me(M)));else a=r;a!==r?(39===e.charCodeAt(be)?(o=O,be++):(o=r,0===Ee&&Me(j)),o!==r?t=n=[n,a,o]:(be=t,t=r)):(be=t,t=r)}else be=t,t=r;if(t===r)if(t=[],(n=Ke())===r&&(R.test(e.charAt(be))?(n=e.charAt(be),be++):(n=r,0===Ee&&Me(L))),n!==r)for(;n!==r;)t.push(n),(n=Ke())===r&&(R.test(e.charAt(be))?(n=e.charAt(be),be++):(n=r,0===Ee&&Me(L)));else t=r;return t}function ze(){var t,n;if(t=[],Z.test(e.charAt(be))?(n=e.charAt(be),be++):(n=r,0===Ee&&Me(D)),n!==r)for(;n!==r;)t.push(n),Z.test(e.charAt(be))?(n=e.charAt(be),be++):(n=r,0===Ee&&Me(D));else t=r;return t}function He(){var t,n,a,o,i,u,p;return t=be,Ge()!==r&&(n=tt())!==r&&Ge()!==r?(123===e.charCodeAt(be)?(a=c,be++):(a=r,0===Ee&&Me(s)),a!==r?(_e=be,nt.push("select"),(!0?void 0:r)!==r&&(o=Ze())!==r?(125===e.charCodeAt(be)?(i=l,be++):(i=r,0===Ee&&Me(f)),i!==r?(_e=t,u=n,p=o,nt.pop(),t=T({id:u,value:p},at())):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r),t}function Ue(){var t,n,a,o,i,u,p;return t=be,Ge()!==r?(n=function(){var t,n,a,o;return t=be,n=be,61===e.charCodeAt(be)?(a="=",be++):(a=r,0===Ee&&Me(K)),a!==r&&(o=Ye())!==r?n=a=[a,o]:(be=n,n=r),(t=n!==r?e.substring(t,be):n)===r&&(t=tt()),t}(),n!==r&&Ge()!==r?(123===e.charCodeAt(be)?(a=c,be++):(a=r,0===Ee&&Me(s)),a!==r?(_e=be,nt.push("plural"),(!0?void 0:r)!==r&&(o=Ze())!==r?(125===e.charCodeAt(be)?(i=l,be++):(i=r,0===Ee&&Me(f)),i!==r?(_e=t,u=n,p=o,nt.pop(),t=T({id:u,value:p},at())):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r),t}function We(){var t;return Ee++,Q.test(e.charAt(be))?(t=e.charAt(be),be++):(t=r,0===Ee&&Me(J)),Ee--,t===r&&(r,0===Ee&&Me(X)),t}function Ve(){var t;return Ee++,te.test(e.charAt(be))?(t=e.charAt(be),be++):(t=r,0===Ee&&Me(ne)),Ee--,t===r&&(r,0===Ee&&Me(ee)),t}function Ge(){var t,n,a;for(Ee++,t=be,n=[],a=We();a!==r;)n.push(a),a=We();return t=n!==r?e.substring(t,be):n,Ee--,t===r&&(n=r,0===Ee&&Me(re)),t}function Ye(){var t,n,a,o,i;return Ee++,t=be,45===e.charCodeAt(be)?(n="-",be++):(n=r,0===Ee&&Me(oe)),n===r&&(n=null),n!==r&&(a=et())!==r?(_e=t,o=n,t=n=(i=a)?o?-i:i:0):(be=t,t=r),Ee--,t===r&&(n=r,0===Ee&&Me(ae)),t}function Ke(){var t,n;return Ee++,t=be,e.substr(be,2)===ue?(n=ue,be+=2):(n=r,0===Ee&&Me(ce)),n!==r&&(_e=t,n="'"),Ee--,(t=n)===r&&(n=r,0===Ee&&Me(ie)),t}function Xe(){var t,n,a,o,i,u;if(t=be,39===e.charCodeAt(be)?(n=O,be++):(n=r,0===Ee&&Me(j)),n!==r)if(a=function(){var t,n,a,o;t=be,n=be,e.length>be?(a=e.charAt(be),be++):(a=r,0===Ee&&Me(v));a!==r?(_e=be,(o=(o="{"===(i=a)||"}"===i||rt()&&"#"===i)?void 0:r)!==r?n=a=[a,o]:(be=n,n=r)):(be=n,n=r);var i;t=n!==r?e.substring(t,be):n;return t}(),a!==r){for(o=be,i=[],e.substr(be,2)===ue?(u=ue,be+=2):(u=r,0===Ee&&Me(ce)),u===r&&(A.test(e.charAt(be))?(u=e.charAt(be),be++):(u=r,0===Ee&&Me(M)));u!==r;)i.push(u),e.substr(be,2)===ue?(u=ue,be+=2):(u=r,0===Ee&&Me(ce)),u===r&&(A.test(e.charAt(be))?(u=e.charAt(be),be++):(u=r,0===Ee&&Me(M)));(o=i!==r?e.substring(o,be):i)!==r?(39===e.charCodeAt(be)?(i=O,be++):(i=r,0===Ee&&Me(j)),i===r&&(i=null),i!==r?(_e=t,t=n=a+o.replace("''","'")):(be=t,t=r)):(be=t,t=r)}else be=t,t=r;else be=t,t=r;return t}function Qe(){var t,n,a,o;return t=be,n=be,e.length>be?(a=e.charAt(be),be++):(a=r,0===Ee&&Me(v)),a!==r?(_e=be,(o=(o=se(a))?void 0:r)!==r?n=a=[a,o]:(be=n,n=r)):(be=n,n=r),n===r&&(10===e.charCodeAt(be)?(n="\n",be++):(n=r,0===Ee&&Me(le))),t=n!==r?e.substring(t,be):n}function Je(){var t,n;return Ee++,t=be,(n=et())===r&&(n=tt()),t=n!==r?e.substring(t,be):n,Ee--,t===r&&(n=r,0===Ee&&Me(fe)),t}function et(){var t,n,a,o,i;if(Ee++,t=be,48===e.charCodeAt(be)?(n="0",be++):(n=r,0===Ee&&Me(de)),n!==r&&(_e=t,n=0),(t=n)===r){if(t=be,n=be,he.test(e.charAt(be))?(a=e.charAt(be),be++):(a=r,0===Ee&&Me(ve)),a!==r){for(o=[],me.test(e.charAt(be))?(i=e.charAt(be),be++):(i=r,0===Ee&&Me(ye));i!==r;)o.push(i),me.test(e.charAt(be))?(i=e.charAt(be),be++):(i=r,0===Ee&&Me(ye));o!==r?n=a=[a,o]:(be=n,n=r)}else be=n,n=r;n!==r&&(_e=t,n=parseInt(n.join(""),10)),t=n}return Ee--,t===r&&(n=r,0===Ee&&Me(pe)),t}function tt(){var t,n,a,o,i;if(Ee++,t=be,n=[],a=be,o=be,Ee++,(i=We())===r&&(i=Ve()),Ee--,i===r?o=void 0:(be=o,o=r),o!==r?(e.length>be?(i=e.charAt(be),be++):(i=r,0===Ee&&Me(v)),i!==r?a=o=[o,i]:(be=a,a=r)):(be=a,a=r),a!==r)for(;a!==r;)n.push(a),a=be,o=be,Ee++,(i=We())===r&&(i=Ve()),Ee--,i===r?o=void 0:(be=o,o=r),o!==r?(e.length>be?(i=e.charAt(be),be++):(i=r,0===Ee&&Me(v)),i!==r?a=o=[o,i]:(be=a,a=r)):(be=a,a=r);else n=r;return t=n!==r?e.substring(t,be):n,Ee--,t===r&&(n=r,0===Ee&&Me(ge)),t}var nt=["root"];function rt(){return"plural"===nt[nt.length-1]}function at(){return t&&t.captureLocation?{location:Ce()}:{}}if((n=o())!==r&&be===e.length)return n;throw n!==r&&be1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(H,(function(e,n,r){return"."===e?t.maximumFractionDigits=0:"+"===r?t.minimumFractionDigits=r.length:"#"===n[0]?t.maximumFractionDigits=n.length:(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+("string"==typeof r?r.length:0)),""})),a.options.length&&(t=B(B({},t),W(a.options[0])))}else if(U.test(a.stem))t=B(B({},t),W(a.stem));else{var o=V(a.stem);o&&(t=B(B({},t),o))}}return t}var K,X=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Q=function(){for(var e=0,t=0,n=arguments.length;t(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,oe=Date.now()+"@@",ie=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function ue(e,t,n){var r=e.tagName,a=e.outerHTML,o=e.textContent,i=e.childNodes;if(!r)return re(o||"",t);r=r.toLowerCase();var u=~ie.indexOf(r),c=n[r];if(c&&u)throw new J(r+" is a self-closing tag and can not be used, please use another tag name.");if(!i.length)return[a];var s=Array.prototype.slice.call(i).reduce((function(e,r){return e.concat(ue(r,t,n))}),[]);return c?"function"==typeof c?[c.apply(void 0,s)]:[c]:Q(["<"+r+">"],s,[""])}function ce(e,t,n,r,a,o){var i=ee(e,t,n,r,a,void 0,o),u={},c=i.reduce((function(e,t){if(0===t.type)return e+t.value;var n=Date.now()+"_"+ ++ne;return u[n]=t.value,e+"@@"+n+"@@"}),"");if(!ae.test(c))return re(c,u);if(!a)throw new J("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new J("Cannot format XML message without DOMParser");K||(K=new DOMParser);var s=K.parseFromString(''+c+"","text/html").getElementById(oe);if(!s)throw new J("Malformed HTML message "+c);var l=Object.keys(a).filter((function(e){return!!s.getElementsByTagName(e).length}));if(!l.length)return re(c,u);var f=l.filter((function(e){return e!==e.toLowerCase()}));if(f.length)throw new J("HTML tag must be lowercased but the following tags are not: "+f.join(", "));return Array.prototype.slice.call(s.childNodes).reduce((function(e,t){return e.concat(ue(t,u,a))}),[])}var se=function(){return se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<"']/g;function ve(e){return(""+e).replace(he,(function(e){return de[e.charCodeAt(0)]}))}function me(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}function ye(e,t){var n=t?"\n".concat(t.stack):"";return"[React Intl] ".concat(e).concat(n)}var ge={formats:{},messages:{},timeZone:void 0,textComponent:d.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function be(e,t,n,r){var a,o=e&&e[t];if(o&&(a=o[n]),a)return a;r(ye("No ".concat(t," format named: ").concat(n)))}var _e=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function we(e,t){var n=e.locale,r=e.formats,a=e.onError,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.format,u=i&&be(r,"number",i,a)||{},c=me(o,_e,u);return t(n,c)}function xe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return we(e,t,r).format(n)}catch(t){e.onError(ye("Error formatting number.",t))}return String(n)}function ke(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return we(e,t,r).formatToParts(n)}catch(t){e.onError(ye("Error formatting number.",t))}return[]}var Ee=["numeric","style"];function Se(e,t){var n=e.locale,r=e.formats,a=e.onError,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.format,u=!!i&&be(r,"relative",i,a)||{},c=me(o,Ee,u);return t(n,c)}function Ce(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};r||(r="second");var o=Intl.RelativeTimeFormat;o||e.onError(ye('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n'));try{return Se(e,t,a).format(n,r)}catch(t){e.onError(ye("Error formatting relative time.",t))}return String(n)}var Pe=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Oe(e,t,n){var r=e.locale,a=e.formats,o=e.onError,i=e.timeZone,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=u.format,s=Object.assign(Object.assign({},i&&{timeZone:i}),c&&be(a,t,c,o)),l=me(u,Pe,s);return"time"!==t||l.hour||l.minute||l.second||(l=Object.assign(Object.assign({},l),{hour:"numeric",minute:"numeric"})),n(r,l)}function je(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a="string"==typeof n?new Date(n||0):n;try{return Oe(e,"date",t,r).format(a)}catch(t){e.onError(ye("Error formatting date.",t))}return String(a)}function Ae(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a="string"==typeof n?new Date(n||0):n;try{return Oe(e,"time",t,r).format(a)}catch(t){e.onError(ye("Error formatting time.",t))}return String(a)}function Te(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a="string"==typeof n?new Date(n||0):n;try{return Oe(e,"date",t,r).formatToParts(a)}catch(t){e.onError(ye("Error formatting date.",t))}return[]}function Ie(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a="string"==typeof n?new Date(n||0):n;try{return Oe(e,"time",t,r).formatToParts(a)}catch(t){e.onError(ye("Error formatting time.",t))}return[]}var Me=["localeMatcher","type"];function Re(e,t,n){var r=e.locale,a=e.onError,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Intl.PluralRules||a(ye('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n'));var i=me(o,Me);try{return t(r,i).select(n)}catch(e){a(ye("Error formatting plural.",e))}return"other"}var Le=n(37205),Ze=n.n(Le);function De(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=Object.assign({timeZone:t},e[r]),n}),{})}function Ne(e,t){return Object.keys(Object.assign(Object.assign({},e),t)).reduce((function(n,r){return n[r]=Object.assign(Object.assign({},e[r]||{}),t[r]||{}),n}),{})}function $e(e,t){if(!t)return e;var n=fe.formats;return Object.assign(Object.assign(Object.assign({},n),e),{date:Ne(De(n.date,t),De(e.date||{},t)),time:Ne(De(n.time,t),De(e.time||{},t))})}var Fe=function(e){return d.createElement.apply(h,[d.Fragment,null].concat(Ze()(e)))};function Be(e,t){var n=e.locale,r=e.formats,a=e.messages,o=e.defaultLocale,i=e.defaultFormats,u=e.onError,c=e.timeZone,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=s.id,p=s.defaultMessage;pe(!!f,"[React Intl] An `id` must be provided to format a message.");var d=a&&a[String(f)];r=$e(r,c),i=$e(i,c);var h=[];if(d)try{var v=t.getMessageFormat(d,n,r,{formatters:t});h=v.formatHTMLMessage(l)}catch(e){u(ye('Error formatting message: "'.concat(f,'" for locale: "').concat(n,'"')+(p?", using default message as fallback.":""),e))}else(!p||n&&n.toLowerCase()!==o.toLowerCase())&&u(ye('Missing message: "'.concat(f,'" for locale: "').concat(n,'"')+(p?", using default message as fallback.":"")));if(!h.length&&p)try{var m=t.getMessageFormat(p,o,i);h=m.formatHTMLMessage(l)}catch(e){u(ye('Error formatting the default message for: "'.concat(f,'"'),e))}return h.length?1===h.length&&"string"==typeof h[0]?h[0]||p||String(f):Fe(h):(u(ye('Cannot format message: "'.concat(f,'", ')+"using message ".concat(d||p?"source":"id"," as fallback."))),"string"==typeof d?d||p||String(f):p||String(f))}function qe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=Object.keys(r).reduce((function(e,t){var n=r[t];return e[t]="string"==typeof n?ve(n):n,e}),{});return Be(e,t,n,a)}var ze=n(18947),He=n.n(ze),Ue=n(31468),We=n.n(Ue),Ve=["localeMatcher","type","style"],Ge=Date.now();function Ye(e){return"".concat(Ge,"_").concat(e,"_").concat(Ge)}function Ke(e,t,n){var r=e.locale,a=e.onError,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=Intl.ListFormat;i||a(ye('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n'));var u=me(o,Ve);try{var c={},s=n.map((function(e,t){if("object"===We()(e)){var n=Ye(t);return c[n]=e,n}return String(e)}));if(!Object.keys(c).length)return t(r,u).format(s);var l=t(r,u).formatToParts(s);return l.reduce((function(e,t){var n=t.value;return c[n]?e.push(c[n]):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[])}catch(e){a(ye("Error formatting list.",e))}return n}var Xe=["localeMatcher","style","type","fallback"];function Qe(e,t,n){var r=e.locale,a=e.onError,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=Intl.DisplayNames;i||a(ye('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n'));var u=me(o,Xe);try{return t(r,u).of(n)}catch(e){a(ye("Error formatting display name.",e))}}var Je=He()||ze;function et(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function tt(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames;return{getDateTimeFormat:F(Intl.DateTimeFormat,e.dateTime),getNumberFormat:F(Intl.NumberFormat,e.number),getMessageFormat:F(fe,e.message),getRelativeTimeFormat:F(t,e.relativeTime),getPluralRules:F(Intl.PluralRules,e.pluralRules),getListFormat:F(n,e.list),getDisplayNames:F(r,e.displayNames)}}(t),r=Object.assign(Object.assign({},ge),e),a=r.locale,o=r.defaultLocale,i=r.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&i?i(ye('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&i&&i(ye('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):(i&&i(ye('"locale" was not configured, using "'.concat(o,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details'))),r.locale=r.defaultLocale||"en"),Object.assign(Object.assign({},r),{formatters:n,formatNumber:xe.bind(null,r,n.getNumberFormat),formatNumberToParts:ke.bind(null,r,n.getNumberFormat),formatRelativeTime:Ce.bind(null,r,n.getRelativeTimeFormat),formatDate:je.bind(null,r,n.getDateTimeFormat),formatDateToParts:Te.bind(null,r,n.getDateTimeFormat),formatTime:Ae.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Ie.bind(null,r,n.getDateTimeFormat),formatPlural:Re.bind(null,r,n.getPluralRules),formatMessage:Be.bind(null,r,n),formatHTMLMessage:qe.bind(null,r,n),formatList:Ke.bind(null,r,n.getListFormat),formatDisplayName:Qe.bind(null,r,n.getDisplayNames)})}var nt=function(e){l()(n,e);var t=p()(n);function n(){var e;return i()(this,n),(e=t.apply(this,arguments)).cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},e.state={cache:e.cache,intl:tt(et(e.props),e.cache),prevConfig:et(e.props)},e}return c()(n,[{key:"render",value:function(){return pe(this.state.intl,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry."),d.createElement(g,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevConfig,r=t.cache,a=et(e);return Je(n,a)?null:{intl:tt(a,r),prevConfig:a}}}]),n}(d.PureComponent);nt.displayName="IntlProvider",nt.defaultProps=ge;var rt,at=n(29181),ot=n(3424),it=n.n(ot),ut=(n(85239),["cache"]),ct=new(it()),st=Symbol("LANG_CHANGE"),lt={},ft=function(e){return(0,at.We)().applyPlugins({key:"locale",type:"modify",initialValue:e})},pt=function(e){var t=ft(lt[e]),n=t.cache;return tt(a()(t,ut),n)},dt=function(e,t){return!rt||t||e?(e||(e=ht()),e&<[e]?pt(e):lt["zh-CN"]?pt("zh-CN"):tt({locale:"zh-CN",messages:{}})):rt},ht=function(){var e=ft({});return"function"==typeof(null==e?void 0:e.getLocale)?e.getLocale():(navigator.cookieEnabled&&"undefined"!=typeof localStorage?window.localStorage.getItem("umi_locale"):"")||"zh-CN"},vt=function(){var e=ht();return["he","ar","fa","ku"].filter((function(t){return e.startsWith(t)})).length?"rtl":"ltr"}},41889:function(e,t,n){"use strict";n(58988),n(37712)},78318:function(e,t,n){"use strict";n.d(t,{H:function(){return g},Nm:function(){return m},SV:function(){return l},fc:function(){return _},tO:function(){return h},zI:function(){return p}});var r=n(7557),a=n.n(r),o=n(82242),i=n.n(o),u=n(41498),c=n.n(u),s=n(79723);function l(e){return f.apply(this,arguments)}function f(){return(f=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/files/public_with_course_and_project",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return d.apply(this,arguments)}function d(){return(d=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/files/mine_with_course_and_project.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return v.apply(this,arguments)}function v(){return(v=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/files/import.json",{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return y.apply(this,arguments)}function y(){return(y=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/files/".concat(t.id,".json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return b.apply(this,arguments)}function b(){return(b=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/files/".concat(t.id,"/update_visits.json"),{method:"post"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return w.apply(this,arguments)}function w(){return(w=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/files/".concat(null==t?void 0:t.id,"/add_file_quantity.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},94414:function(e,t,n){"use strict";n.d(t,{$M:function(){return Le},$P:function(){return ft},Ax:function(){return _},B3:function(){return h},Dh:function(){return j},FU:function(){return V},GQ:function(){return se},IN:function(){return Ye},JM:function(){return rt},Mn:function(){return Ve},Ni:function(){return be},OU:function(){return y},Pg:function(){return T},Pt:function(){return P},Qp:function(){return oe},R9:function(){return Y},RG:function(){return d},Ux:function(){return ue},Vy:function(){return Pe},XJ:function(){return ye},XR:function(){return Me},Ze:function(){return $},aq:function(){return D},bQ:function(){return k},cC:function(){return b},eP:function(){return l},g_:function(){return g},iR:function(){return m},jS:function(){return J},lm:function(){return Xe},ml:function(){return de},o3:function(){return De},oK:function(){return f},pA:function(){return $e},pM:function(){return v},pS:function(){return tt},pU:function(){return ve},ps:function(){return U},q0:function(){return ze},qN:function(){return Ue},qS:function(){return S},qj:function(){return Te},qt:function(){return ut},rV:function(){return M},rZ:function(){return ot},rk:function(){return ke},rm:function(){return re},sK:function(){return te},sL:function(){return Be},su:function(){return Je},tC:function(){return Se},tO:function(){return je},u9:function(){return fe},uZ:function(){return we},vV:function(){return z},xx:function(){return dt},yS:function(){return B},zA:function(){return p},zF:function(){return w},zc:function(){return X},zj:function(){return L},zz:function(){return st}});var r=n(82242),a=n.n(r),o=n(7557),i=n.n(o),u=n(41498),c=n.n(u),s=n(79723),l=function(e){return(0,s.ZP)("/api/kd_competitions/rank_list.json",{method:"get",params:e})},f=function(e){return(0,s.ZP)("/api/kd_competitions/update_mine_team.json",{method:"put",body:e})},p=function(e){return(0,s.ZP)("/api/kd_competitions/enroll.json",{method:"post",body:e})},d=function(e){return(0,s.ZP)("/api/kd_competitions/all_teams.json",{method:"get",params:e})},h=function(e){return(0,s.ZP)("/api/kd_competitions/competition_question.json",{method:"get",params:e})},v=function(e){return(0,s.ZP)("/api/kd_competitions/describe.json",{method:"get",params:e})},m=function(e){return(0,s.ZP)("/api/kd_competitions/update_md_content.json",{method:"put",body:e})},y=function(e){return(0,s.ZP)("/api/kd_competitions/home.json",{method:"get",params:e})},g=function(e){return(0,s.ZP)("/api/kd_competitions/kd_competition_info.json",{method:"get",params:e})},b=function(e){return(0,s.ZP)("/api/competitions/".concat(e.identifier,"/create_guide.json"),{method:"post",body:e})},_=function(e){return(0,s.ZP)("/api/competitions/".concat(e.identifier,"/guides.json"),{method:"get",params:e})};function w(e){return x.apply(this,arguments)}function x(){return(x=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/update_result.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e){return E.apply(this,arguments)}function E(){return(E=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions.json",{method:"Get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(e){return C.apply(this,arguments)}function C(){return(C=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/courses/apply_to_join_course.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function P(e){return O.apply(this,arguments)}function O(){return(O=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams.json"),{method:"post"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return A.apply(this,arguments)}function A(){return(A=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_staff.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function T(e){return I.apply(this,arguments)}function I(){return(I=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/common_header.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(e){return R.apply(this,arguments)}function R(){return(R=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/".concat(t.url),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function L(e){return Z.apply(this,arguments)}function Z(){return(Z=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/update_md_content.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(e){return N.apply(this,arguments)}function N(){return(N=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $(e){return F.apply(this,arguments)}function F(){return(F=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams/").concat(t.Teannameid,"/edit.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function B(e){return q.apply(this,arguments)}function q(){return(q=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams/").concat(t.Teannameid,".json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function z(e){return H.apply(this,arguments)}function H(){return(H=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams/").concat(t.id,"/leave.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function U(e){return W.apply(this,arguments)}function W(){return(W=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams/").concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function V(e){return G.apply(this,arguments)}function G(){return(G=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Y(e){return K.apply(this,arguments)}function K(){return(K=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.id,"/add_managers.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function X(e){return Q.apply(this,arguments)}function Q(){return(Q=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams/join.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function J(e){return ee.apply(this,arguments)}function ee(){return(ee=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/teachers.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function te(e){return ne.apply(this,arguments)}function ne(){return(ne=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/students.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function re(e){return ae.apply(this,arguments)}function ae(){return(ae=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams/").concat(t.teamid,"/crud_team_members.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oe(e){return ie.apply(this,arguments)}function ie(){return(ie=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/competition_reward.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ue(e){return ce.apply(this,arguments)}function ce(){return(ce=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/chart_rules.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(e){return le.apply(this,arguments)}function le(){return(le=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/charts.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fe(e){return pe.apply(this,arguments)}function pe(){return(pe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/results.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function de(e){return he.apply(this,arguments)}function he(){return(he=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/md_tab_rules.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ve(e){return me.apply(this,arguments)}function me(){return(me=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/prize.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ye(e){return ge.apply(this,arguments)}function ge(){return(ge=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/accounts/".concat(t.id,".json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function be(e){return _e.apply(this,arguments)}function _e(){return(_e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function we(e){return xe.apply(this,arguments)}function xe(){return(xe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/accounts/".concat(t.userid,"/phone_bind.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ke(e){return Ee.apply(this,arguments)}function Ee(){return(Ee=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/accounts/".concat(t.userid,"/email_bind.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Se(e){return Ce.apply(this,arguments)}function Ce(){return(Ce=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/accounts/".concat(t.userid,"/professional_auth_apply.json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pe(e){return Oe.apply(this,arguments)}function Oe(){return(Oe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/accounts/".concat(t.userid,"/authentication_apply.json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function je(e){return Ae.apply(this,arguments)}function Ae(){return(Ae=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/prize_leader_account.json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Te(e){return Ie.apply(this,arguments)}function Ie(){return(Ie=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams/").concat(t.teamid,"/shixun_detail.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Me(e){return Re.apply(this,arguments)}function Re(){return(Re=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams/").concat(t.teamid,"/course_detail.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Le(e){return Ze.apply(this,arguments)}function Ze(){return(Ze=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.id,"/basic_setting.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function De(e){return Ne.apply(this,arguments)}function Ne(){return(Ne=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t,"/common_header.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $e(e){return Fe.apply(this,arguments)}function Fe(){return(Fe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(null==t?void 0:t.id,"/search_managers.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Be(e){return qe.apply(this,arguments)}function qe(){return(qe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t,"/get_managers.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ze(e){return He.apply(this,arguments)}function He(){return(He=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(null==t?void 0:t.id,"/add_managers.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ue(e){return We.apply(this,arguments)}function We(){return(We=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(null==t?void 0:t.id,"/delete_managers.json"),{method:"delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ve(e){return Ge.apply(this,arguments)}function Ge(){return(Ge=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t,"/get_picture.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ye(e){return Ke.apply(this,arguments)}function Ke(){return(Ke=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(null==t?void 0:t.id,"/identifier_exist.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xe(e){return Qe.apply(this,arguments)}function Qe(){return(Qe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t,"/get_shixun_settings.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Je(e){return et.apply(this,arguments)}function et(){return(et=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(null==t?void 0:t.id,"/shixun_add.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function tt(e){return nt.apply(this,arguments)}function nt(){return(nt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(null==t?void 0:t.id,"/shixun_delete.json"),{method:"delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function rt(e){return at.apply(this,arguments)}function at(){return(at=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(null==t?void 0:t.id,"/shixun_select.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ot(e){return it.apply(this,arguments)}function it(){return(it=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t,"/info_finish.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ut(e){return ct.apply(this,arguments)}function ct(){return(ct=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(null==t?void 0:t.id,"/competition_review.json"),{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function st(e){return lt.apply(this,arguments)}function lt(){return(lt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ft(e){return pt.apply(this,arguments)}function pt(){return(pt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/all_team_members.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dt(e){return ht.apply(this,arguments)}function ht(){return(ht=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_commit_records/member_works.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},26613:function(e,t,n){"use strict";n.d(t,{$Q:function(){return l},BJ:function(){return q},Di:function(){return I},G$:function(){return p},GK:function(){return Z},J:function(){return h},KE:function(){return N},MK:function(){return R},N3:function(){return x},Ty:function(){return ae},UK:function(){return E},Ul:function(){return G},W4:function(){return K},X4:function(){return W},Xn:function(){return oe},YY:function(){return A},_U:function(){return f},_u:function(){return m},gG:function(){return ue},gJ:function(){return se},iw:function(){return re},lf:function(){return _},n$:function(){return g},pu:function(){return H},qf:function(){return O},s:function(){return te},sA:function(){return Q},tX:function(){return ee},uR:function(){return C},ux:function(){return F},xA:function(){return ne},yu:function(){return J}});var r=n(82242),a=n.n(r),o=n(7557),i=n.n(o),u=n(41498),c=n.n(u),s=n(79723),l=function(e){return(0,s.ZP)("/api/exercises/".concat(null==e?void 0:e.exercise_id,"/statistics/score_ranges.json"),{method:"get",params:e})},f=function(e){return(0,s.ZP)("/api/exercises/".concat(null==e?void 0:e.id,"/exercise_question_result.json"),{method:"get",params:e})};function p(e){return d.apply(this,arguments)}function d(){return(d=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.categoryId,"/exercise_lists.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return v.apply(this,arguments)}function v(){return(v=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.categoryId,"/exercise_identity_photos.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return y.apply(this,arguments)}function y(){return(y=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.categoryId,"/exercise_result.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return b.apply(this,arguments)}function b(){return(b=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/question_banks/bank_list.json",{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return w.apply(this,arguments)}function w(){return(w=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/question_banks/save_banks.json",{method:"POST",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return k.apply(this,arguments)}function k(){return(k=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/courses/".concat(t.coursesId,"/exercises/publish_modal.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return S.apply(this,arguments)}function S(){return(S=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.categoryId,"/common_header.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return P.apply(this,arguments)}function P(){return(P=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/courses/".concat(t.coursesId,"/exercises.json"),{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return j.apply(this,arguments)}function j(){return(j=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.categoryId,".json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(e){return T.apply(this,arguments)}function T(){return(T=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/tag_disciplines.json",{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e){return M.apply(this,arguments)}function M(){return(M=c()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,delete t.id,e.abrupt("return",(0,s.ZP)("/api/exercise_questions/".concat(n,".json"),{method:"put",body:a()({},t)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(e){return L.apply(this,arguments)}function L(){return(L=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.categoryId,"/exercise_questions.json"),{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e){return D.apply(this,arguments)}function D(){return(D=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercise_questions/".concat(t.id,"/up_down.json"),{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(e){return $.apply(this,arguments)}function $(){return($=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/courses/".concat(t.coursesId,"/exercises/end_modal.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e){return B.apply(this,arguments)}function B(){return(B=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.categoryId,"/publish_groups.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(e){return z.apply(this,arguments)}function z(){return(z=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.exerciseId,"/user_exercise_detail.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function H(e){return U.apply(this,arguments)}function U(){return(U=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.exerciseId,"/consult_exercise.json"),{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function W(e){return V.apply(this,arguments)}function V(){return(V=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.exerciseId,"/teacher_appraise.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function G(e){return Y.apply(this,arguments)}function Y(){return(Y=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.categoryId,"/exercise_setting.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function K(e){return X.apply(this,arguments)}function X(){return(X=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.exerciseId,"/review_exercises_by_students.json"),{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Q(e){return(0,s.ZP)("/api/examination_intelligent_settings/optional_items.json",{method:"post",body:a()({},e)})}function J(e){return console.log("params:",e),(0,s.ZP)("/api/exercises/".concat(e.categoryId,"/edit.json"),{method:"get",params:a()({},e)})}function ee(e){return(0,s.ZP)("/api/exercises/".concat(e.categoryId,"/redo_modal.json"),{method:"get",params:a()({},e)})}function te(e){return(0,s.ZP)("/api/exercises/".concat(e.categoryId,"/student_redo_lists.json"),{method:"get",params:a()({},e)})}function ne(e){return(0,s.ZP)("/api/exercises/get_user_exercises.json",{method:"get",params:e})}function re(e){return(0,s.ZP)("/api/exercises/".concat(e.id,"/exercise_header.json"),{method:"get",params:a()({},e)})}function ae(e){return(0,s.ZP)("/api/exercises/".concat(e.categoryId,"/get_exercise_user_info.json"),{method:"get",params:a()({},e)})}function oe(e){return ie.apply(this,arguments)}function ie(){return(ie=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/courses/".concat(t.coursesId,"/exercises/code_review_detail.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ue(e){return ce.apply(this,arguments)}function ce(){return(ce=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercise_questions/".concat(t.question_id,"/adjust_score.json"),{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(e){return le.apply(this,arguments)}function le(){return(le=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/attachments/set_ecs_attachment.json",{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},12554:function(e,t,n){"use strict";n.d(t,{D2:function(){return c},n0:function(){return l},tk:function(){return p}});var r=n(7557),a=n.n(r),o=n(41498),i=n.n(o),u=n(79723);function c(){return s.apply(this,arguments)}function s(){return(s=i()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/setting.json",{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(){return f.apply(this,arguments)}function f(){return(f=i()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/users/system_update.json",{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return d.apply(this,arguments)}function d(){return(d=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/search_records",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},13071:function(e,t,n){"use strict";n.d(t,{AA:function(){return g},F7:function(){return C},H3:function(){return h},J3:function(){return f},NT:function(){return c},Ou:function(){return O},Ps:function(){return s},Rk:function(){return E},Wz:function(){return l},Xh:function(){return p},Xw:function(){return x},eh:function(){return m},km:function(){return _}});var r=n(7557),a=n.n(r),o=n(41498),i=n.n(o),u=n(79723);function c(e){return(0,u.ZP)("/api/schools/search.json",{method:"get",params:e})}function s(e){return(0,u.ZP)("/api/schools/".concat(e.id,"/departments/for_option.json"),{method:"get",params:e})}function l(e){return(0,u.ZP)("/api/graduations.json",{method:"POST",body:e})}function f(e){return(0,u.ZP)("/api/graduations.json",{method:"get",params:e})}function p(e){return d.apply(this,arguments)}function d(){return(d=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(t.identifier,"/graduation_stages/").concat(t.id,".json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return v.apply(this,arguments)}function v(){return(v=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(t.id,"/student_tasks/final_score.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return y.apply(this,arguments)}function y(){return(y=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(t.id,"/graduation_students.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return b.apply(this,arguments)}function b(){return(b=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(t.id,"/graduation_teachers.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return w.apply(this,arguments)}function w(){return(w=i()(a()().mark((function e(t){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(t.id,"/graduation_tasks/").concat(null===(n=t.ids)||void 0===n?void 0:n[0]),{method:"DELETE",body:{ids:t.ids}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return k.apply(this,arguments)}function k(){return(k=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(t.id,"/graduation_tasks.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return S.apply(this,arguments)}function S(){return(S=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(t.id,"/graduation_notices.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return P.apply(this,arguments)}function P(){return(P=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(t.id,".json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return j.apply(this,arguments)}function j(){return(j=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(null==t?void 0:t.id,"/common_header.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},56007:function(e,t,n){"use strict";n.d(t,{LA:function(){return h},S_:function(){return m},Tt:function(){return c},cR:function(){return l},vm:function(){return p}});var r=n(7557),a=n.n(r),o=n(41498),i=n.n(o),u=n(79723);function c(){return s.apply(this,arguments)}function s(){return(s=i()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/home/index.json",{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e){return f.apply(this,arguments)}function f(){return(f=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/courses/apply_to_join_course.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return d.apply(this,arguments)}function d(){return(d=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/project_applies.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return v.apply(this,arguments)}function v(){return(v=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/users/home_notice.json",{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return y.apply(this,arguments)}function y(){return(y=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/users/view_notice.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},77233:function(e,t,n){"use strict";n.d(t,{AQ:function(){return A},Ax:function(){return N},Bz:function(){return l},Fg:function(){return p},GY:function(){return F},Gz:function(){return d},Hl:function(){return h},Sp:function(){return O},bz:function(){return H},fh:function(){return g},hS:function(){return v},lk:function(){return C},mQ:function(){return E},nq:function(){return f},ol:function(){return q},p:function(){return R},pU:function(){return x},tS:function(){return m},tu:function(){return _},ue:function(){return I},w4:function(){return L},yN:function(){return Z}});var r=n(82242),a=n.n(r),o=n(7557),i=n.n(o),u=n(41498),c=n.n(u),s=n(79723),l=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/v2/knowledge_graphs/".concat(null==t?void 0:t.graphable_type,"/").concat(null==t?void 0:t.graphable_id),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/subject_statistics/subject_use_infos.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/subject_statistics/rank_list.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/subject_statistics/statistics_body.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/subject_statistics/statistics_header.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/subject_statistics/online_count.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function m(e){return y.apply(this,arguments)}function y(){return(y=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/paths.json",{method:"Get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return b.apply(this,arguments)}function b(){return(b=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/disciplines.json",{method:"Get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return w.apply(this,arguments)}function w(){return(w=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/paths/".concat(t.id,".json"),{method:"PUT",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return k.apply(this,arguments)}function k(){return(k=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/paths.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return S.apply(this,arguments)}function S(){return(S=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/paths/".concat(t.id,"/edit.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return P.apply(this,arguments)}function P(){return(P=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/paths/".concat(t.id,".json"),{method:"get",params:a()({identifier:t.id},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return j.apply(this,arguments)}function j(){return(j=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/courses/".concat(t.id,".json"),{method:"get",params:a()({identifier:t.id},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(e){return T.apply(this,arguments)}function T(){return(T=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/paths/".concat(t.id,"/right_banner.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e){return M.apply(this,arguments)}function M(){return(M=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/paths/".concat(t.id,"/spoc_courses.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var R=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/v2/stages.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),L=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/v2/stage_shixuns/".concat(t.id,"/children.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function Z(e){return D.apply(this,arguments)}function D(){return(D=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/stages.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(e){return $.apply(this,arguments)}function $(){return($=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/paths/".concat(t.pathId,"/discusses.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e){return B.apply(this,arguments)}function B(){return(B=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/schools/for_option.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(e){return z.apply(this,arguments)}function z(){return(z=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/schools/province_data.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function H(e){return U.apply(this,arguments)}function U(){return(U=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/add_school_applies.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},18240:function(e,t,n){"use strict";n.d(t,{AQ:function(){return x},Ag:function(){return mt},Ar:function(){return Q},BK:function(){return O},Bj:function(){return Ie},DC:function(){return Oe},Dz:function(){return Nt},EH:function(){return ae},Er:function(){return G},FB:function(){return C},Fg:function(){return h},GI:function(){return le},Gr:function(){return Ne},Gu:function(){return ce},Gz:function(){return d},Hl:function(){return f},IT:function(){return pt},I_:function(){return g},Ir:function(){return A},Je:function(){return Ct},K:function(){return Ft},KM:function(){return F},LK:function(){return Ot},LP:function(){return pe},Ne:function(){return W},OV:function(){return me},OW:function(){return ne},Op:function(){return Zt},P2:function(){return _e},Po:function(){return _},Ps:function(){return Fe},Q:function(){return H},Ql:function(){return He},Tr:function(){return Wt},U0:function(){return Qe},U9:function(){return qe},UQ:function(){return it},WO:function(){return K},Wi:function(){return Re},Wl:function(){return gt},X$:function(){return xe},Z2:function(){return Ae},ZO:function(){return Ze},_7:function(){return q},aH:function(){return We},b8:function(){return ee},dK:function(){return I},e:function(){return v},eX:function(){return ie},fL:function(){return Et},hS:function(){return p},h_:function(){return Ce},he:function(){return m},hn:function(){return Z},j8:function(){return he},jq:function(){return Rt},kF:function(){return It},km:function(){return nt},l3:function(){return ge},m7:function(){return Ke},mI:function(){return Ht},n5:function(){return E},nu:function(){return At},p0:function(){return lt},q0:function(){return at},rs:function(){return N},sr:function(){return ct},t2:function(){return ht},tX:function(){return qt},uo:function(){return et},v3:function(){return xt},w:function(){return _t},wX:function(){return l},xk:function(){return Ee},yE:function(){return Ge},zD:function(){return R}});var r=n(82242),a=n.n(r),o=n(7557),i=n.n(o),u=n(41498),c=n.n(u),s=n(79723),l=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixun_polls/start_answer.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixun_statistics/statistics_header.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixun_statistics/online_count.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixun_statistics/statistics_body.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixun_statistics/rank_list.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixun_statistics/shixun_use_infos.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function m(e){return y.apply(this,arguments)}function y(){return(y=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns.json",{method:"Get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return b.apply(this,arguments)}function b(){return(b=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/disciplines.json",{method:"Get",params:a()({source:"shixun"},t||{})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return w.apply(this,arguments)}function w(){return(w=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,".json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return k.apply(this,arguments)}function k(){return(k=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/show_right.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return S.apply(this,arguments)}function S(){return(S=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/challenges.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return P.apply(this,arguments)}function P(){return(P=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/save_copy_for_exercise.json"),{method:"post",body:{save_type:t.save_type}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return j.apply(this,arguments)}function j(){return(j=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/jupyter_exec.json").concat(t.reset?"?reset=".concat(t.reset):""),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(e){return T.apply(this,arguments)}function T(){return(T=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/shixun_exec.json").concat(t.reset?"?reset=".concat(t.reset):""),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e){return M.apply(this,arguments)}function M(){return(M=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)(t.url,{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(e){return L.apply(this,arguments)}function L(){return(L=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.shixun_identifier,"/challenges/").concat(t.challenge_id,"/index_up.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e){return D.apply(this,arguments)}function D(){return(D=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.shixun_identifier,"/challenges/").concat(t.challenge_id,"/index_down.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(e){return $.apply(this,arguments)}function $(){return($=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/collections/cancel.json",{method:"Delete",body:{container_id:t.container_id,container_type:t.container_type}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e){return B.apply(this,arguments)}function B(){return(B=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/collections.json",{method:"Post",body:{container_id:t.container_id,container_type:t.container_type}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(e){return z.apply(this,arguments)}function z(){return(z=c()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t||{}).id,e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(n,"/search_user_courses.json"),{method:"Get",params:t}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function H(e){return U.apply(this,arguments)}function U(){return(U=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(null==t?void 0:t.id,"/send_to_course.json"),{method:"Post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function W(e){return V.apply(this,arguments)}function V(){return(V=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/cancel_publish.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function G(e){return Y.apply(this,arguments)}function Y(){return(Y=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/cancel_apply_public.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function K(e){return X.apply(this,arguments)}function X(){return(X=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/apply_public.json"),{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Q(e){return J.apply(this,arguments)}function J(){return(J=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/publish.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ee(e){return te.apply(this,arguments)}function te(){return(te=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/jupyter_new.json",{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ne(e){return re.apply(this,arguments)}function re(){return(re=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/attachments/".concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ae(e){return oe.apply(this,arguments)}function oe(){return(oe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/apply_shixun_mirror.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ie(e){return ue.apply(this,arguments)}function ue(){return(ue=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ce(e){return se.apply(this,arguments)}function se(){return(se=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/jupyter_lab_new.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function le(e){return fe.apply(this,arguments)}function fe(){return(fe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/review_newest_record.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pe(e){return de.apply(this,arguments)}function de(){return(de=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/review_shixun.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function he(e){return ve.apply(this,arguments)}function ve(){return(ve=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/collaborators.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function me(e){return ye.apply(this,arguments)}function ye(){return(ye=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/shixun_members_added.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ge(e){return be.apply(this,arguments)}function be(){return(be=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.identifier,"/add_members_group.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _e(e){return we.apply(this,arguments)}function we(){return(we=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/change_manager.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xe(e){return ke.apply(this,arguments)}function ke(){return(ke=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/change_manager.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ee(e){return Se.apply(this,arguments)}function Se(){return(Se=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/collaborators_delete.json"),{method:"delete",body:{user_id:t.userId}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ce(e){return Pe.apply(this,arguments)}function Pe(){return(Pe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/ranking_list.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Oe(e){return je.apply(this,arguments)}function je(){return(je=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/settings.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ae(e){return Te.apply(this,arguments)}function Te(){return(Te=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/get_mirror_script.json",{method:"Get",params:{mirror_id:t.mirror_id}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ie(e){return Me.apply(this,arguments)}function Me(){return(Me=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/get_script_contents.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Re(e){return Le.apply(this,arguments)}function Le(){return(Le=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/get_custom_script.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ze(e){return De.apply(this,arguments)}function De(){return(De=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/update_for_jupyter.json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ne(e){return $e.apply(this,arguments)}function $e(){return($e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/shixun_quotes.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fe(e){return Be.apply(this,arguments)}function Be(){return(Be=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qe(e){return ze.apply(this,arguments)}function ze(){return(ze=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/close.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function He(e){return Ue.apply(this,arguments)}function Ue(){return(Ue=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/departments.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function We(e){return Ve.apply(this,arguments)}function Ve(){return(Ve=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/update_permission_setting.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ge(e){return Ye.apply(this,arguments)}function Ye(){return(Ye=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/update_learn_setting.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ke(e){return Xe.apply(this,arguments)}function Xe(){return(Xe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/update_setting"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Qe(e){return Je.apply(this,arguments)}function Je(){return(Je=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/get_data_sets.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function et(e){return tt.apply(this,arguments)}function tt(){return(tt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/destroy_data_sets.json"),{method:"Delete",body:{id:t.deleteId}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function nt(e){return rt.apply(this,arguments)}function rt(){return(rt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/challenges/new.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function at(e){return ot.apply(this,arguments)}function ot(){return(ot=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/challenges/").concat(t.challengesId,"/edit.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function it(e){return ut.apply(this,arguments)}function ut(){return(ut=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/challenges/").concat(t.challengesId,"/edit_choose_question.json"),{method:"get",params:a()(a()({},t),{},{choose_id:t.questionId})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ct(e){return st.apply(this,arguments)}function st(){return(st=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/delete_git_file.json"),{method:"Delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function lt(e){return ft.apply(this,arguments)}function ft(){return(ft=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/sci/projects/".concat(t.id,"/delete_git_file.json"),{method:"Delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pt(e){return dt.apply(this,arguments)}function dt(){return(dt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/mv_file.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ht(e){return vt.apply(this,arguments)}function vt(){return(vt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/sci/projects/".concat(t.id,"/mv_file.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function mt(e){return yt.apply(this,arguments)}function yt(){return(yt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/repository.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gt(e){return bt.apply(this,arguments)}function bt(){return(bt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/sci/projects/".concat(t.id,"/repository.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _t(e){return wt.apply(this,arguments)}function wt(){return(wt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/secret_repository.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xt(e){return kt.apply(this,arguments)}function kt(){return(kt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/add_file.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Et(e){return St.apply(this,arguments)}function St(){return(St=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/sci/projects/".concat(t.id,"/add_file.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ct(e){return Pt.apply(this,arguments)}function Pt(){return(Pt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/commits.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ot(e){return jt.apply(this,arguments)}function jt(){return(jt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/file_content.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function At(e){return Tt.apply(this,arguments)}function Tt(){return(Tt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/sci/projects/".concat(t.id,"/file_content.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function It(e){return Mt.apply(this,arguments)}function Mt(){return(Mt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/update_file.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Rt(e){return Lt.apply(this,arguments)}function Lt(){return(Lt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/sci/projects/".concat(t.id,"/update_file.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Zt(e){return Dt.apply(this,arguments)}function Dt(){return(Dt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/upload_git_folder.json"),{method:"post",body:{path:t.path,secret_repository:t.secret_repository}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Nt(e){return $t.apply(this,arguments)}function $t(){return($t=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.identifier,"/change_editable.json"),{method:"put",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ft(e){return Bt.apply(this,arguments)}function Bt(){return(Bt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/new.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qt(e){return zt.apply(this,arguments)}function zt(){return(zt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/mirror_applies/".concat(t.id,".json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ht(e){return Ut.apply(this,arguments)}function Ut(){return(Ut=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/jupyters/get_info_with_jupyter_lab.json",{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wt(e){return Vt.apply(this,arguments)}function Vt(){return(Vt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/check_shixun_copy.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},23003:function(e,t,n){"use strict";n.d(t,{Cx:function(){return q},DA:function(){return _},Ef:function(){return G},Es:function(){return l},Ex:function(){return oe},FM:function(){return Z},Fn:function(){return K},Gq:function(){return ue},Ho:function(){return E},IU:function(){return ee},JJ:function(){return Q},Ol:function(){return ne},Qx:function(){return R},WS:function(){return H},WY:function(){return I},ai:function(){return F},bG:function(){return h},c0:function(){return ie},gI:function(){return W},lO:function(){return N},mW:function(){return A},n0:function(){return g},o1:function(){return re},qN:function(){return x},rV:function(){return C},vR:function(){return p},w3:function(){return O},x4:function(){return m},z2:function(){return ae}});var r=n(82242),a=n.n(r),o=n(7557),i=n.n(o),u=n(41498),c=n.n(u),s=n(79723);function l(e){return f.apply(this,arguments)}function f(){return(f=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/accounts/login.json",{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return d.apply(this,arguments)}function d(){return(d=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/accounts/logout.json",{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return v.apply(this,arguments)}function v(){return(v=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/get_user_info.json",{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return y.apply(this,arguments)}function y(){return(y=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/get_notice.json",{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(){return b.apply(this,arguments)}function b(){return(b=c()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/system_update.json",{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return w.apply(this,arguments)}function w(){return(w=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/homepage_info.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return k.apply(this,arguments)}function k(){return(k=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/attendance.json",{method:"post"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return S.apply(this,arguments)}function S(){return(S=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/courses.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return P.apply(this,arguments)}function P(){return(P=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/shixuns.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return j.apply(this,arguments)}function j(){return(j=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/subjects.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(e){return T.apply(this,arguments)}function T(){return(T=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/projects.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e){return M.apply(this,arguments)}function M(){return(M=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/videos.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(e){return L.apply(this,arguments)}function L(){return(L=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/videos/review.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e){return D.apply(this,arguments)}function D(){return(D=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/videos/").concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(e){return $.apply(this,arguments)}function $(){return($=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/watch_video_histories.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e){return B.apply(this,arguments)}function B(){return(B=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/question_banks.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(e){return z.apply(this,arguments)}function z(){return(z=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/question_banks/multi_public.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function H(e){return U.apply(this,arguments)}function U(){return(U=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/question_banks/multi_delete.json",{method:"delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function W(e){return V.apply(this,arguments)}function V(){return(V=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/question_banks/my_courses.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function G(e){return Y.apply(this,arguments)}function Y(){return(Y=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/question_banks/send_to_course.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function K(e){return X.apply(this,arguments)}function X(){return(X=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/videos/").concat(t.object_id,"/create_course_video.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Q(e){return J.apply(this,arguments)}function J(){return(J=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/homework_banks/".concat(t.topicId,".json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ee(){return te.apply(this,arguments)}function te(){return(te=c()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/get_engineer_url.json",{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ne(e){return(0,s.ZP)("/api/accounts/valid_email_and_phone.json",{method:"get",params:e})}function re(e){return(0,s.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:e})}function ae(e){return(0,s.ZP)("/api/accounts/register.json",{method:"post",body:a()({},e)})}function oe(e){return(0,s.ZP)("/api/users/accounts/".concat(e.login,"/password.json"),{method:"put",body:a()({},e)})}function ie(e){return(0,s.ZP)("/api/accounts/reset_password.json",{method:"post",body:a()({},e)})}function ue(e){return(0,s.ZP)("/api/accounts/login_for_phone.json",{method:"get",params:a()({},e)})}},13277:function(e,t,n){"use strict";n.d(t,{JA:function(){return f},Ny:function(){return c},V9:function(){return l},bg:function(){return p},eB:function(){return s},eY:function(){return d}});var r=n(94706),a=function(e){return e[e.SuperAdmin=1]="SuperAdmin",e[e.Operation=2]="Operation",e[e.CertifiedTeacher=5]="CertifiedTeacher",e[e.TrainingProduction=8]="TrainingProduction",e[e.UncertifiedTeacher=12]="UncertifiedTeacher",e[e.Student=15]="Student",e}({}),o=function(e){return e[e.SuperAdmin=1]="SuperAdmin",e[e.Operation=2]="Operation",e[e.Admin=5]="Admin",e[e.Teacher=8]="Teacher",e[e.Assistant=12]="Assistant",e[e.Student=15]="Student",e}(o||{}),i=function(e){var t=(0,r.getDvaApp)()._store.getState().user.userInfo;return e.some((function(e){return e==(null==t?void 0:t.role)}))},u=function(e){var t=(0,r.getDvaApp)()._store.getState().user.userInfo;return!(null==t||!t.own)||e.some((function(e){var n;return e==(null==t||null===(n=t.course)||void 0===n?void 0:n.course_role)}))},c=function(){return i([a.SuperAdmin,a.Operation])},s=function(){return u([o.SuperAdmin,o.Operation,o.Admin,o.Teacher,o.Assistant])},l=function(){var e=(0,r.getDvaApp)()._store.getState(),t=e.user,n=t.userInfo;return!(null==n||!n.is_shixun_marker)||i([a.SuperAdmin,a.Operation,a.CertifiedTeacher,a.TrainingProduction])},f=function(){return i([a.Student])},p=function(){var e;return!(null===(e=(0,r.getDvaApp)()._store.getState().user.userInfo)||void 0===e||!e.login)},d=function(){return(0,r.getDvaApp)()._store.getState().user.userInfo}},657:function(e,t,n){"use strict";n.d(t,{F:function(){return r}});var r={load:"text/html",123:"application/vndlotus-1-2-3","3ds":"image/x-3ds","3g2":"video/3gpp","3ga":"video/3gpp","3gp":"video/3gpp","3gpp":"video/3gpp",602:"application/x-t602",669:"audio/x-mod","7z":"application/x-7z-compressed",a:"application/x-archive",aac:"audio/mp4",abw:"application/x-abiword",abwcrashed:"application/x-abiword",abwgz:"application/x-abiword",ac3:"audio/ac3",ace:"application/x-ace",adb:"text/x-adasrc",ads:"text/x-adasrc",afm:"application/x-font-afm",ag:"image/x-applix-graphics",ai:"application/illustrator",aif:"audio/x-aiff",aifc:"audio/x-aiff",aiff:"audio/x-aiff",al:"application/x-perl",alz:"application/x-alz",amr:"audio/amr",ani:"application/x-navi-animation","anim[1-9j]":"video/x-anim",anx:"application/annodex",ape:"audio/x-ape",arj:"application/x-arj",arw:"image/x-sony-arw",as:"application/x-applix-spreadsheet",asc:"text/plain",asf:"video/x-ms-asf",asp:"application/x-asp",ass:"text/x-ssa",asx:"audio/x-ms-asx",atom:"application/atom+xml",au:"audio/basic",avi:"video/x-msvideo",aw:"application/x-applix-word",awb:"audio/amr-wb",awk:"application/x-awk",axa:"audio/annodex",axv:"video/annodex",bak:"application/x-trash",bcpio:"application/x-bcpio",bdf:"application/x-font-bdf",bib:"text/x-bibtex",bin:"application/octet-stream",blend:"application/x-blender",blender:"application/x-blender",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip",c:"text/x-csrc","c++":"text/x-c++src",cab:"application/vndms-cab-compressed",cb7:"application/x-cb7",cbr:"application/x-cbr",cbt:"application/x-cbt",cbz:"application/x-cbz",cc:"text/x-c++src",cdf:"application/x-netcdf",cdr:"application/vndcorel-draw",cer:"application/x-x509-ca-cert",cert:"application/x-x509-ca-cert",cgm:"image/cgm",chm:"application/x-chm",chrt:"application/x-kchart",class:"application/x-java",cls:"text/x-tex",cmake:"text/x-cmake",cpio:"application/x-cpio",cpiogz:"application/x-cpio-compressed",cpp:"text/x-c++src",cr2:"image/x-canon-cr2",crt:"application/x-x509-ca-cert",crw:"image/x-canon-crw",cs:"text/x-csharp",csh:"application/x-csh",css:"text/css",cssl:"text/css",csv:"text/csv",cue:"application/x-cue",cur:"image/x-win-bitmap",cxx:"text/x-c++src",d:"text/x-dsrc",dar:"application/x-dar",dbf:"application/x-dbf",dc:"application/x-dc-rom",dcl:"text/x-dcl",dcm:"application/dicom",dcr:"image/x-kodak-dcr",dds:"image/x-dds",deb:"application/x-deb",der:"application/x-x509-ca-cert",desktop:"application/x-desktop",dia:"application/x-dia-diagram",diff:"text/x-patch",divx:"video/x-msvideo",djv:"image/vnddjvu",djvu:"image/vnddjvu",dng:"image/x-adobe-dng",doc:"application/msword",docbook:"application/docbook+xml",docm:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",docx:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",dot:"text/vndgraphviz",dsl:"text/x-dsl",dtd:"application/xml-dtd",dtx:"text/x-tex",dv:"video/dv",dvi:"application/x-dvi",dvibz2:"application/x-bzdvi",dvigz:"application/x-gzdvi",dwg:"image/vnddwg",dxf:"image/vnddxf",e:"text/x-eiffel",egon:"application/x-egon",eif:"text/x-eiffel",el:"text/x-emacs-lisp",emf:"image/x-emf",emp:"application/vndemusic-emusic_package",ent:"application/xml-external-parsed-entity",eps:"image/x-eps",epsbz2:"image/x-bzeps",epsgz:"image/x-gzeps",epsf:"image/x-eps",epsfbz2:"image/x-bzeps",epsfgz:"image/x-gzeps",epsi:"image/x-eps",epsibz2:"image/x-bzeps",epsigz:"image/x-gzeps",epub:"application/epub+zip",erl:"text/x-erlang",es:"application/ecmascript",etheme:"application/x-e-theme",etx:"text/x-setext",exe:"application/x-ms-dos-executable",exr:"image/x-exr",ez:"application/andrew-inset",f:"text/x-fortran",f90:"text/x-fortran",f95:"text/x-fortran",fb2:"application/x-fictionbook+xml",fig:"image/x-xfig",fits:"image/fits",fl:"application/x-fluid",flac:"audio/x-flac",flc:"video/x-flic",fli:"video/x-flic",flv:"video/x-flv",flw:"application/x-kivio",fo:"text/x-xslfo",for:"text/x-fortran",g3:"image/fax-g3",gb:"application/x-gameboy-rom",gba:"application/x-gba-rom",gcrd:"text/directory",ged:"application/x-gedcom",gedcom:"application/x-gedcom",gen:"application/x-genesis-rom",gf:"application/x-tex-gf",gg:"application/x-sms-rom",gif:"image/gif",glade:"application/x-glade",gmo:"application/x-gettext-translation",gnc:"application/x-gnucash",gnd:"application/gnunet-directory",gnucash:"application/x-gnucash",gnumeric:"application/x-gnumeric",gnuplot:"application/x-gnuplot",gp:"application/x-gnuplot",gpg:"application/pgp-encrypted",gplt:"application/x-gnuplot",gra:"application/x-graphite",gsf:"application/x-font-type1",gsm:"audio/x-gsm",gtar:"application/x-tar",gv:"text/vndgraphviz",gvp:"text/x-google-video-pointer",gz:"application/x-gzip",h:"text/x-chdr","h++":"text/x-c++hdr",hdf:"application/x-hdf",hh:"text/x-c++hdr",hp:"text/x-c++hdr",hpgl:"application/vndhp-hpgl",hpp:"text/x-c++hdr",hs:"text/x-haskell",htm:"text/html",html:"text/html",hwp:"application/x-hwp",hwt:"application/x-hwt",hxx:"text/x-c++hdr",ica:"application/x-ica",icb:"image/x-tga",icns:"image/x-icns",ico:"image/vndmicrosofticon",ics:"text/calendar",idl:"text/x-idl",ief:"image/ief",iff:"image/x-iff",ilbm:"image/x-ilbm",ime:"text/x-imelody",imy:"text/x-imelody",ins:"text/x-tex",iptables:"text/x-iptables",iso:"application/x-cd-image",iso9660:"application/x-cd-image",it:"audio/x-it",j2k:"image/jp2",jad:"text/vndsunj2meapp-descriptor",jar:"application/x-java-archive",java:"text/x-java",jng:"image/x-jng",jnlp:"application/x-java-jnlp-file",jp2:"image/jp2",jpc:"image/jp2",jpe:"image/jpeg",jpeg:"image/jpeg",jpf:"image/jp2",jpg:"image/jpeg",jpr:"application/x-jbuilder-project",jpx:"image/jp2",js:"application/javascript",json:"application/json",jsonp:"application/jsonp",k25:"image/x-kodak-k25",kar:"audio/midi",karbon:"application/x-karbon",kdc:"image/x-kodak-kdc",kdelnk:"application/x-desktop",kexi:"application/x-kexiproject-sqlite3",kexic:"application/x-kexi-connectiondata",kexis:"application/x-kexiproject-shortcut",kfo:"application/x-kformula",kil:"application/x-killustrator",kino:"application/smil",kml:"application/vndgoogle-earthkml+xml",kmz:"application/vndgoogle-earthkmz",kon:"application/x-kontour",kpm:"application/x-kpovmodeler",kpr:"application/x-kpresenter",kpt:"application/x-kpresenter",kra:"application/x-krita",ksp:"application/x-kspread",kud:"application/x-kugar",kwd:"application/x-kword",kwt:"application/x-kword",la:"application/x-shared-library-la",latex:"text/x-tex",ldif:"text/x-ldif",lha:"application/x-lha",lhs:"text/x-literate-haskell",lhz:"application/x-lhz",log:"text/x-log",ltx:"text/x-tex",lua:"text/x-lua",lwo:"image/x-lwo",lwob:"image/x-lwo",lws:"image/x-lws",ly:"text/x-lilypond",lyx:"application/x-lyx",lz:"application/x-lzip",lzh:"application/x-lha",lzma:"application/x-lzma",lzo:"application/x-lzop",m:"text/x-matlab",m15:"audio/x-mod",m2t:"video/mpeg",m3u:"audio/x-mpegurl",m3u8:"audio/x-mpegurl",m4:"application/x-m4",m4a:"audio/mp4",m4b:"audio/x-m4b",m4v:"video/mp4",mab:"application/x-markaby",man:"application/x-troff-man",mbox:"application/mbox",md:"application/x-genesis-rom",mdb:"application/vndms-access",mdi:"image/vndms-modi",me:"text/x-troff-me",med:"audio/x-mod",metalink:"application/metalink+xml",mgp:"application/x-magicpoint",mid:"audio/midi",midi:"audio/midi",mif:"application/x-mif",minipsf:"audio/x-minipsf",mka:"audio/x-matroska",mkv:"video/x-matroska",ml:"text/x-ocaml",mli:"text/x-ocaml",mm:"text/x-troff-mm",mmf:"application/x-smaf",mml:"text/mathml",mng:"video/x-mng",mo:"application/x-gettext-translation",mo3:"audio/x-mo3",moc:"text/x-moc",mod:"audio/x-mod",mof:"text/x-mof",moov:"video/quicktime",mov:"video/quicktime",movie:"video/x-sgi-movie","mp+":"audio/x-musepack",mp2:"video/mpeg",mp3:"audio/mpeg",mp4:"video/mp4",mpc:"audio/x-musepack",mpe:"video/mpeg",mpeg:"video/mpeg",mpg:"video/mpeg",mpga:"audio/mpeg",mpp:"audio/x-musepack",mrl:"text/x-mrml",mrml:"text/x-mrml",mrw:"image/x-minolta-mrw",ms:"text/x-troff-ms",msi:"application/x-msi",msod:"image/x-msod",msx:"application/x-msx-rom",mtm:"audio/x-mod",mup:"text/x-mup",mxf:"application/mxf",n64:"application/x-n64-rom",nb:"application/mathematica",nc:"application/x-netcdf",nds:"application/x-nintendo-ds-rom",nef:"image/x-nikon-nef",nes:"application/x-nes-rom",nfo:"text/x-nfo",not:"text/x-mup",nsc:"application/x-netshow-channel",nsv:"video/x-nsv",o:"application/x-object",obj:"application/x-tgif",ocl:"text/x-ocl",oda:"application/oda",odb:"application/vndoasisopendocumentdatabase",odc:"application/vndoasisopendocumentchart",odf:"application/vndoasisopendocumentformula",odg:"application/vndoasisopendocumentgraphics",odi:"application/vndoasisopendocumentimage",odm:"application/vndoasisopendocumenttext-master",odp:"application/vndoasisopendocumentpresentation",ods:"application/vndoasisopendocumentspreadsheet",odt:"application/vndoasisopendocumenttext",oga:"audio/ogg",ogg:"video/x-theora+ogg",ogm:"video/x-ogm+ogg",ogv:"video/ogg",ogx:"application/ogg",old:"application/x-trash",oleo:"application/x-oleo",opml:"text/x-opml+xml",ora:"image/openraster",orf:"image/x-olympus-orf",otc:"application/vndoasisopendocumentchart-template",otf:"application/x-font-otf",otg:"application/vndoasisopendocumentgraphics-template",oth:"application/vndoasisopendocumenttext-web",otp:"application/vndoasisopendocumentpresentation-template",ots:"application/vndoasisopendocumentspreadsheet-template",ott:"application/vndoasisopendocumenttext-template",owl:"application/rdf+xml",oxt:"application/vndopenofficeorgextension",p:"text/x-pascal",p10:"application/pkcs10",p12:"application/x-pkcs12",p7b:"application/x-pkcs7-certificates",p7s:"application/pkcs7-signature",pack:"application/x-java-pack200",pak:"application/x-pak",par2:"application/x-par2",pas:"text/x-pascal",patch:"text/x-patch",pbm:"image/x-portable-bitmap",pcd:"image/x-photo-cd",pcf:"application/x-cisco-vpn-settings",pcfgz:"application/x-font-pcf",pcfz:"application/x-font-pcf",pcl:"application/vndhp-pcl",pcx:"image/x-pcx",pdb:"chemical/x-pdb",pdc:"application/x-aportisdoc",pdf:"application/pdf",pdfbz2:"application/x-bzpdf",pdfgz:"application/x-gzpdf",pef:"image/x-pentax-pef",pem:"application/x-x509-ca-cert",perl:"application/x-perl",pfa:"application/x-font-type1",pfb:"application/x-font-type1",pfx:"application/x-pkcs12",pgm:"image/x-portable-graymap",pgn:"application/x-chess-pgn",pgp:"application/pgp-encrypted",php:"application/x-php",php3:"application/x-php",php4:"application/x-php",pict:"image/x-pict",pict1:"image/x-pict",pict2:"image/x-pict",pickle:"application/python-pickle",pk:"application/x-tex-pk",pkipath:"application/pkix-pkipath",pkr:"application/pgp-keys",pl:"application/x-perl",pla:"audio/x-iriver-pla",pln:"application/x-planperfect",pls:"audio/x-scpls",pm:"application/x-perl",png:"image/png",pnm:"image/x-portable-anymap",pntg:"image/x-macpaint",po:"text/x-gettext-translation",por:"application/x-spss-por",pot:"text/x-gettext-translation-template",ppm:"image/x-portable-pixmap",pps:"application/vndms-powerpoint",ppt:"application/vndms-powerpoint",pptm:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",pptx:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",ppz:"application/vndms-powerpoint",prc:"application/x-palm-database",ps:"application/postscript",psbz2:"application/x-bzpostscript",psgz:"application/x-gzpostscript",psd:"image/vndadobephotoshop",psf:"audio/x-psf",psfgz:"application/x-gz-font-linux-psf",psflib:"audio/x-psflib",psid:"audio/prssid",psw:"application/x-pocket-word",pw:"application/x-pw",py:"text/x-python",pyc:"application/x-python-bytecode",pyo:"application/x-python-bytecode",qif:"image/x-quicktime",qt:"video/quicktime",qtif:"image/x-quicktime",qtl:"application/x-quicktime-media-link",qtvr:"video/quicktime",ra:"audio/vndrn-realaudio",raf:"image/x-fuji-raf",ram:"application/ram",rar:"application/x-rar",ras:"image/x-cmu-raster",raw:"image/x-panasonic-raw",rax:"audio/vndrn-realaudio",rb:"application/x-ruby",rdf:"application/rdf+xml",rdfs:"application/rdf+xml",reg:"text/x-ms-regedit",rej:"application/x-reject",rgb:"image/x-rgb",rle:"image/rle",rm:"application/vndrn-realmedia",rmj:"application/vndrn-realmedia",rmm:"application/vndrn-realmedia",rms:"application/vndrn-realmedia",rmvb:"application/vndrn-realmedia",rmx:"application/vndrn-realmedia",roff:"text/troff",rp:"image/vndrn-realpix",rpm:"application/x-rpm",rss:"application/rss+xml",rt:"text/vndrn-realtext",rtf:"application/rtf",rtx:"text/richtext",rv:"video/vndrn-realvideo",rvx:"video/vndrn-realvideo",s3m:"audio/x-s3m",sam:"application/x-amipro",sami:"application/x-sami",sav:"application/x-spss-sav",scm:"text/x-scheme",sda:"application/vndstardivisiondraw",sdc:"application/vndstardivisioncalc",sdd:"application/vndstardivisionimpress",sdp:"application/sdp",sds:"application/vndstardivisionchart",sdw:"application/vndstardivisionwriter",sgf:"application/x-go-sgf",sgi:"image/x-sgi",sgl:"application/vndstardivisionwriter",sgm:"text/sgml",sgml:"text/sgml",sh:"application/x-shellscript",shar:"application/x-shar",shn:"application/x-shorten",siag:"application/x-siag",sid:"audio/prssid",sik:"application/x-trash",sis:"application/vndsymbianinstall",sisx:"x-epoc/x-sisx-app",sit:"application/x-stuffit",siv:"application/sieve",sk:"image/x-skencil",sk1:"image/x-skencil",skr:"application/pgp-keys",slk:"text/spreadsheet",smaf:"application/x-smaf",smc:"application/x-snes-rom",smd:"application/vndstardivisionmail",smf:"application/vndstardivisionmath",smi:"application/x-sami",smil:"application/smil",sml:"application/smil",sms:"application/x-sms-rom",snd:"audio/basic",so:"application/x-sharedlib",spc:"application/x-pkcs7-certificates",spd:"application/x-font-speedo",spec:"text/x-rpm-spec",spl:"application/x-shockwave-flash",spx:"audio/x-speex",sql:"text/x-sql",sr2:"image/x-sony-sr2",src:"application/x-wais-source",srf:"image/x-sony-srf",srt:"application/x-subrip",ssa:"text/x-ssa",stc:"application/vndsunxmlcalctemplate",std:"application/vndsunxmldrawtemplate",sti:"application/vndsunxmlimpresstemplate",stm:"audio/x-stm",stw:"application/vndsunxmlwritertemplate",sty:"text/x-tex",sub:"text/x-subviewer",sun:"image/x-sun-raster",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",svg:"image/svg+xml",svgz:"image/svg+xml-compressed",swf:"application/x-shockwave-flash",sxc:"application/vndsunxmlcalc",sxd:"application/vndsunxmldraw",sxg:"application/vndsunxmlwriterglobal",sxi:"application/vndsunxmlimpress",sxm:"application/vndsunxmlmath",sxw:"application/vndsunxmlwriter",sylk:"text/spreadsheet",t:"text/troff",t2t:"text/x-txt2tags",tar:"application/x-tar",tarbz:"application/x-bzip-compressed-tar",tarbz2:"application/x-bzip-compressed-tar",targz:"application/x-compressed-tar",tarlzma:"application/x-lzma-compressed-tar",tarlzo:"application/x-tzo",tarxz:"application/x-xz-compressed-tar",tarz:"application/x-tarz",tbz:"application/x-bzip-compressed-tar",tbz2:"application/x-bzip-compressed-tar",tcl:"text/x-tcl",tex:"text/x-tex",texi:"text/x-texinfo",texinfo:"text/x-texinfo",tga:"image/x-tga",tgz:"application/x-compressed-tar",theme:"application/x-theme",themepack:"application/x-windows-themepack",tif:"image/tiff",tiff:"image/tiff",tk:"text/x-tcl",tlz:"application/x-lzma-compressed-tar",tnef:"application/vndms-tnef",tnf:"application/vndms-tnef",toc:"application/x-cdrdao-toc",torrent:"application/x-bittorrent",tpic:"image/x-tga",tr:"text/troff",ts:"application/x-linguist",tsv:"text/tab-separated-values",tta:"audio/x-tta",ttc:"application/x-font-ttf",ttf:"application/x-font-ttf",ttx:"application/x-font-ttx",txt:"text/plain",txz:"application/x-xz-compressed-tar",tzo:"application/x-tzo",ufraw:"application/x-ufraw",ui:"application/x-designer",uil:"text/x-uil",ult:"audio/x-mod",uni:"audio/x-mod",uri:"text/x-uri",url:"text/x-uri",ustar:"application/x-ustar",vala:"text/x-vala",vapi:"text/x-vala",vcf:"text/directory",vcs:"text/calendar",vct:"text/directory",vda:"image/x-tga",vhd:"text/x-vhdl",vhdl:"text/x-vhdl",viv:"video/vivo",vivo:"video/vivo",vlc:"audio/x-mpegurl",vob:"video/mpeg",voc:"audio/x-voc",vor:"application/vndstardivisionwriter",vst:"image/x-tga",wav:"audio/x-wav",wax:"audio/x-ms-asx",wb1:"application/x-quattropro",wb2:"application/x-quattropro",wb3:"application/x-quattropro",wbmp:"image/vndwapwbmp",wcm:"application/vndms-works",wdb:"application/vndms-works",webm:"video/webm",wk1:"application/vndlotus-1-2-3",wk3:"application/vndlotus-1-2-3",wk4:"application/vndlotus-1-2-3",wks:"application/vndms-works",wma:"audio/x-ms-wma",wmf:"image/x-wmf",wml:"text/vndwapwml",wmls:"text/vndwapwmlscript",wmv:"video/x-ms-wmv",wmx:"audio/x-ms-asx",wp:"application/vndwordperfect",wp4:"application/vndwordperfect",wp5:"application/vndwordperfect",wp6:"application/vndwordperfect",wpd:"application/vndwordperfect",wpg:"application/x-wpg",wpl:"application/vndms-wpl",wpp:"application/vndwordperfect",wps:"application/vndms-works",wri:"application/x-mswrite",wrl:"model/vrml",wv:"audio/x-wavpack",wvc:"audio/x-wavpack-correction",wvp:"audio/x-wavpack",wvx:"audio/x-ms-asx",x3f:"image/x-sigma-x3f",xac:"application/x-gnucash",xbel:"application/x-xbel",xbl:"application/xml",xbm:"image/x-xbitmap",xcf:"image/x-xcf",xcfbz2:"image/x-compressed-xcf",xcfgz:"image/x-compressed-xcf",xhtml:"application/xhtml+xml",xi:"audio/x-xi",xla:"application/vndms-excel",xlc:"application/vndms-excel",xld:"application/vndms-excel",xlf:"application/x-xliff",xliff:"application/x-xliff",xll:"application/vndms-excel",xlm:"application/vndms-excel",xls:"application/vndms-excel",xlsm:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlsx:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlt:"application/vndms-excel",xlw:"application/vndms-excel",xm:"audio/x-xm",xmf:"audio/x-xmf",xmi:"text/x-xmi",xml:"application/xml",xpm:"image/x-xpixmap",xps:"application/vndms-xpsdocument",xsl:"application/xml",xslfo:"text/x-xslfo",xslt:"application/xml",xspf:"application/xspf+xml",xul:"application/vndmozillaxul+xml",xwd:"image/x-xwindowdump",xyz:"chemical/x-pdb",xz:"application/x-xz",w2p:"application/w2p",z:"application/x-compress",zabw:"application/x-abiword",zip:"application/zip"}},67390:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r,a,o,i={PROXY_SERVER:"https://172.16.100.14",API_SERVER:"http://172.16.100.14",REPORT_SERVER:"http://192.168.1.57:3001",IMG_SERVER:"https://new-testali-cdn.educoder.net",FORGE:"https://code.educoder.net/",SSH_SERVER:"wss://webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",TERMINAL_URL:"testsvc1.vnc.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},u={local:{API_SERVER:"http://localhost:3000",IMG_SERVER:"https://testali-cdn.educoder.net/",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://test-oldweb.educoder.net/",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},dev:i,newReactTest:{API_SERVER:function(){var e;switch(location.host){case"test4.educoder.net":e="https://test4-data.educoder.net";break;case"test3.educoder.net":e="https://test3-data.educoder.net";break;case"test2.educoder.net":e="https://test2-data.educoder.net";break;default:e="https://test-data.educoder.net"}return e}(),SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",IMG_SERVER:(a="https://new-testali-cdn.educoder.net",o=location.host,"test3.educoder.net"===o&&(a="https://test3-data.educoder.net"),"test4.educoder.net"===o&&(a="https://test4-data.educoder.net"),a),OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://test-oldweb.educoder.net/",QQLoginCB:encodeURIComponent("https://test-data.educoder.net"),TERMINAL_URL:"testsvc1.vnc.educoder.net",AI_PLATFORM_URL:"https://aitest.educoder.net"},preNewBuild:{API_SERVER:(r="https://pre-data.educoder.net","pre2.educoder.net"===location.host&&(r="https://pre-data2.educoder.net"),r),IMG_SERVER:"https://preali-cdn.educoder.net",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://pre-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",FORGE:"https://forge.educoder.net/",QQLoginCB:encodeURIComponent("https://pre.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},newBuild:{API_SERVER:function(){var e="https://data.educoder.net";return"kepukehuan.educoder.net"===document.domain?e="https://kepukehuan-data.educoder.net":"www.tokcoder.com"!==document.domain&&"tokcoder.com"!==document.domain||(e="https://data.tokcoder.com"),e}(),SSH_SERVER:"wss://webssh.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",SSH_Slice:"https://fu.educoder.net",IMG_SERVER:"https://ali-cdn.educoder.net",OFFICE_SERVER:"https://officeserver.educoder.net",CABLE_SERVER:"wss://data.educoder.net/cable",ONLYOFFICE:"https://office.educoder.net",OFFICE_IP:"https://officedata.educoder.net",FORGE:"https://code.educoder.net/",QQLoginCB:encodeURIComponent("https://www.educoder.net"),TERMINAL_URL:".jupyter.educoder.net",AI_PLATFORM_URL:"https://ai.educoder.net"},newTest:{API_SERVER:"https://test-data.educoder.net",IMG_SERVER:"https://test-data.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",FORGE:"http://test-oldweb.educoder.net/",QQLoginCB:encodeURIComponent("https://test-data.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},test:{API_SERVER:"",IMG_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"http://test-oldweb.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},preBuild:{API_SERVER:"",IMG_SERVER:"https://preali-cdn.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://forge.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},newWeb:{API_SERVER:"https://test-newweb.educoder.net",IMG_SERVER:"https://test-newweb.educoder.net/",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"http://test-oldweb.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},build:{API_SERVER:"",IMG_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://forge.educoder.net/",SSH_SERVER:"wss://webssh.educoder.net",SSH_Slice:"https://fu.educoder.net",OFFICE_SERVER:"https://officeserver.educoder.net",CABLE_SERVER:"wss://data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"https://officedata.educoder.net",QQLoginCB:encodeURIComponent("https://www.educoder.net"),TERMINAL_URL:".jupyter.educoder.net",AI_PLATFORM_URL:"https://aitest.educoder.net"}},c=u[window.ENV||"dev"]},79723:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Ee},IV:function(){return Oe}});var r=n(82242),a=n.n(r),o=n(31468),i=n.n(o),u=n(7557),c=n.n(u),s=n(41498),l=n.n(s),f=n(67390),p=n(59301),d=n(17004),h=n(48755),v=n(60840),m=n(11774),y=n(29679),g=n(19248),b=n(99267),_=n(96512),w=n(78987),x=n(58617),k=n(92310),E=n.n(k),S=n(40271),C=n(83397),P=n(66604),O=n(75030),j=n(63356),A=n(51636),T=n(16931);var I=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,a=`${t}-notice`,o=new P.E4("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[a]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new P.E4("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new P.E4("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[a]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new P.E4("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}};const M=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],R={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},L=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},Z=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},L(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Z(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},M.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[R[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))};const N=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:a,notificationMarginBottom:o,borderRadiusLG:i,colorSuccess:u,colorInfo:c,colorWarning:s,colorError:l,colorTextHeading:f,notificationBg:p,notificationPadding:d,notificationMarginEdge:h,notificationProgressBg:v,notificationProgressHeight:m,fontSize:y,lineHeight:g,width:b,notificationIconSize:_,colorText:w}=e,x=`${n}-notice`;return{position:"relative",marginBottom:o,marginInlineStart:"auto",background:p,borderRadius:i,boxShadow:r,[x]:{padding:d,width:b,maxWidth:`calc(100vw - ${(0,P.bf)(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:g,wordWrap:"break-word"},[`${x}-message`]:{marginBottom:e.marginXS,color:f,fontSize:a,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:y,color:w},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(_).equal(),fontSize:a},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(_).equal(),fontSize:y},[`${x}-icon`]:{position:"absolute",fontSize:_,lineHeight:1,[`&-success${t}`]:{color:u},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:s},[`&-error${t}`]:{color:l}},[`${x}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},(0,j.Qy)(e)),[`${x}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${(0,P.bf)(i)} * 2)`,left:{_skip_check_:!0,value:i},right:{_skip_check_:!0,value:i},bottom:0,blockSize:m,border:0,"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:v},"&::-webkit-progress-value":{borderRadius:i,background:v}},[`${x}-actions`]:{float:"right",marginTop:e.marginSM}}},$=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:a,motionEaseInOut:o}=e,i=`${t}-notice`,u=new P.E4("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},(0,j.Wf)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:o,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:o,animationFillMode:"both",animationDuration:a,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:u,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-actions`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:Object.assign({},N(e))}}]},F=e=>({zIndexPopup:e.zIndexPopupBase+O.u6+50,width:384}),B=e=>{const t=e.paddingMD,n=e.paddingLG;return(0,A.IX)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${(0,P.bf)(e.paddingMD)} ${(0,P.bf)(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})};var q=(0,T.I$)("Notification",(e=>{const t=B(e);return[$(t),I(t),D(t)]}),F),z=(0,T.bk)(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=B(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},N(n)),{width:n.width,maxWidth:`calc(100vw - ${(0,P.bf)(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),F),H=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,icon:n,type:r,message:a,description:o,actions:i,role:u="alert"}=e;let c=null;return n?c=p.createElement("span",{className:`${t}-icon`},n):r&&(c=p.createElement(W[r]||null,{className:E()(`${t}-icon`,`${t}-icon-${r}`)})),p.createElement("div",{className:E()({[`${t}-with-icon`]:c}),role:u},c,p.createElement("div",{className:`${t}-message`},a),p.createElement("div",{className:`${t}-description`},o),i&&p.createElement("div",{className:`${t}-actions`},i))};var G=e=>{const{prefixCls:t,className:n,icon:r,type:a,message:o,description:i,btn:u,actions:c,closable:s=!0,closeIcon:l,className:f}=e,d=H(e,["prefixCls","className","icon","type","message","description","btn","actions","closable","closeIcon","className"]),{getPrefixCls:v}=p.useContext(h.E_),m=null!=c?c:u;const y=t||v("notification"),g=`${y}-notice`,b=(0,C.Z)(y),[_,w,x]=q(y,b);return _(p.createElement("div",{className:E()(`${g}-pure-panel`,w,n,x,b)},p.createElement(z,{prefixCls:y}),p.createElement(S.qX,Object.assign({},d,{prefixCls:y,eventKey:"pure",duration:null,closable:s,className:E()({notificationClassName:f}),closeIcon:U(y,l),content:p.createElement(V,{prefixCls:g,icon:r,type:a,message:o,description:i,actions:m})}))))},Y=n(32383),K=n(57700);var X=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{let{children:t,prefixCls:n}=e;const r=(0,C.Z)(n),[a,o,i]=q(n,r);return a(p.createElement(S.JB,{classNames:{list:E()(o,i,r)}},t))},J=(e,t)=>{let{prefixCls:n,key:r}=t;return p.createElement(Q,{prefixCls:n,key:r},e)},ee=p.forwardRef(((e,t)=>{const{top:n,bottom:r,prefixCls:a,getContainer:o,maxCount:i,rtl:u,onAllRemoved:c,stack:s,duration:l,pauseOnHover:f=!0,showProgress:d}=e,{getPrefixCls:v,getPopupContainer:m,notification:y,direction:g}=(0,p.useContext)(h.E_),[,b]=(0,K.ZP)(),_=a||v("notification"),[w,x]=(0,S.lm)({prefixCls:_,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=n?n:24,null!=r?r:24),className:()=>E()({[`${_}-rtl`]:null!=u?u:"rtl"===g}),motion:()=>function(e){return{motionName:`${e}-fade`}}(_),closable:!0,closeIcon:U(_),duration:null!=l?l:4.5,getContainer:()=>(null==o?void 0:o())||(null==m?void 0:m())||document.body,maxCount:i,pauseOnHover:f,showProgress:d,onAllRemoved:c,renderNotifications:J,stack:!1!==s&&{threshold:"object"==typeof s?null==s?void 0:s.threshold:void 0,offset:8,gap:b.margin}});return p.useImperativeHandle(t,(()=>Object.assign(Object.assign({},w),{prefixCls:_,notification:y}))),x}));function te(e){const t=p.useRef(null),n=((0,Y.ln)("Notification"),p.useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:a,prefixCls:o,notification:i}=t.current,u=`${o}-notice`,{message:c,description:s,icon:l,type:f,btn:d,actions:h,className:v,style:m,role:y="alert",closeIcon:g,closable:b}=n,_=X(n,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]);const w=null!=h?h:d,x=U(u,function(e,t,n){return void 0!==e?e:void 0!==(null==t?void 0:t.closeIcon)?t.closeIcon:null==n?void 0:n.closeIcon}(g,e,i));return a(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:"topRight"},_),{content:p.createElement(V,{prefixCls:u,icon:l,type:f,message:c,description:s,actions:w,role:y}),className:E()(f&&`${u}-${f}`,v,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),m),closeIcon:x,closable:null!=b?b:!!x}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),r}),[]));return[n,p.createElement(ee,Object.assign({key:"notification-holder"},e,{ref:t}))]}let ne=null,re=e=>e(),ae=[],oe={};function ie(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:a,showProgress:o,pauseOnHover:i}=oe,u=(null==e?void 0:e())||document.body;return{getContainer:()=>u,rtl:t,maxCount:n,top:r,bottom:a,showProgress:o,pauseOnHover:i}}const ue=p.forwardRef(((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:a}=(0,p.useContext)(h.E_),o=oe.prefixCls||a("notification"),i=(0,p.useContext)(d.J),[u,c]=te(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),i.notification));return p.useEffect(r,[]),p.useImperativeHandle(t,(()=>{const e=Object.assign({},u);return Object.keys(e).forEach((t=>{e[t]=function(){return r(),u[t].apply(u,arguments)}})),{instance:e,sync:r}})),c})),ce=p.forwardRef(((e,t)=>{const[n,r]=p.useState(ie),a=()=>{r(ie)};p.useEffect(a,[]);const o=(0,v.w6)(),i=o.getRootPrefixCls(),u=o.getIconPrefixCls(),c=o.getTheme(),s=p.createElement(ue,{ref:t,sync:a,notificationConfig:n});return p.createElement(v.ZP,{prefixCls:i,iconPrefixCls:u,theme:c},o.holderRender?o.holderRender(s):s)}));function se(){if(!ne){const e=document.createDocumentFragment(),t={fragment:e};return ne=t,void re((()=>{(0,m.x)()(p.createElement(ce,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,se())}))}}),e)}))}ne.instance&&(ae.forEach((e=>{switch(e.type){case"open":re((()=>{ne.instance.open(Object.assign(Object.assign({},oe),e.config))}));break;case"destroy":re((()=>{null==ne||ne.instance.destroy(e.key)}))}})),ae=[])}function le(e){(0,v.w6)();ae.push({type:"open",config:e}),se()}const fe={open:le,destroy:e=>{ae.push({type:"destroy",key:e}),se()},config:function(e){oe=Object.assign(Object.assign({},oe),e),re((()=>{var e;null===(e=null==ne?void 0:ne.sync)||void 0===e||e.call(ne)}))},useNotification:function(e){return te(e)},_InternalPanelDoNotUseOrYouWillBeFired:G};["success","info","warning","error"].forEach((e=>{fe[e]=t=>le(Object.assign(Object.assign({},t),{type:e}))}));var pe,de=fe,he=n(91662),ve=n(6767),me=n(85582),ye=n.n(me),ge=n(94706),be=n(1079),_e={200:"服务器成功返回请求的数据。",201:"新建或修改数据成功。",202:"一个请求已经进入后台排队(异步任务)。",204:"删除数据成功。",400:"发出的请求有错误,服务器没有进行新建或修改数据的操作。",401:"用户没有权限(令牌、用户名、密码错误)。",403:"用户得到授权,但是访问是被禁止的。",404:"发出的请求针对的是不存在的记录,服务器没有进行操作。",406:"请求的格式不可得。",410:"请求的资源被永久删除,且不会再得到的。",422:"当创建一个对象时,发生一个验证错误。",500:"服务器发生错误,请检查服务器。",502:"网关错误。",503:"服务不可用,服务器暂时过载或维护。",504:"网关超时。"},we=function(e){try{"string"==typeof e&&(e=JSON.parse(e));return JSON.stringify(e).replace(/\/api\/attachments\/(\d+)/g,(function(e,t,n,r){var a=t||n||r;return"/api/attachments/"+(0,be.Jn)(a)})).replace(/\/attachments\/download\/(\d+)/g,(function(e,t,n){var r=t||n;return"/attachments/download/"+(0,be.Jn)(r)})).replace(/\(\s+\/api\/attachments\/(\d+)|\(\/api\/attachments\/(\d+)\//g,(function(e,t,n,r){var a=t||n||r;return"(/api/attachments/"+(0,be.Jn)(a)})).replace(/\"\/api\/attachments\/(\d+)\//g,(function(e,t,n){var r=t||n;return'"/api/attachments/'+(0,be.Jn)(r)})).replace(/\(\s+\/files\/uploads\/(\d+)|\"\/files\/uploads\/(\d+)\//g,(function(e,t,n){var r=t||n;return"(/files/uploads/"+(0,be.Jn)(r)})).replace(/\r\n/g,"\n")}catch(e){return null}},xe=function(){var e=l()(c()().mark((function e(t,n){var r,a,o,i;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.status>=200&&t.status<300)){e.next=2;break}return e.abrupt("return",t);case 2:return r=_e[t.status]||t.statusText,o=t.json(),e.next=6,o.then((function(e,n){setTimeout((function(){(0,ge.getDvaApp)()}),400),a=e.message,window.showNetworkErrorTip(e.message||"请求错误 ".concat(t.status,": ").concat(t.message)),de.error({style:{wordBreak:"break-all"},message:e.message||"请求错误 ".concat(t.status,": ").concat(t.message),description:e.message?"":r})}));case 6:throw(i=new Error(r)).name=t.status,i.response=t,{data:t,code:t.status,message:a||r};case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();var ke=function(e){e=e||{};var t="",n=function(n){"object"===i()(e[n])?Array.isArray(e[n])&&e[n].forEach((function(e,r){t+="&"+n+"[]="+e})):void 0!==e[n]&&(t+="&"+n+"="+(function(e){try{return decodeURIComponent(e),decodeURIComponent(encodeURIComponent(e))===e}catch(e){return!1}}(e[n])?e[n]:encodeURIComponent(e[n])))};for(var r in e)n(r);return t.substr(1)};function Ee(e,t,n,r){!t.method&&(t.method="get"),t.method=t.method.toUpperCase(),t.mode="cors";var o=a()({},t),i=(0,ge.getDvaApp)()._store.getState().user.userInfo,u=e+(o.body?JSON.stringify(o.body):""),s=(ye().sha256().update(u).digest("hex"),{});null!=i&&i.login&&(s.zzud=null==i?void 0:i.login,null!=i&&i.school_id&&(s.zzsud=null==i?void 0:i.school_id),o.params=a()(a()({},o.params||{}),s));var p=a()(a()({},{credentials:"include",withCredentials:!0}),JSON.parse(JSON.stringify(o)));"POST"!==p.method&&"PUT"!==p.method&&"PATCH"!==p.method&&"DELETE"!==p.method||(n?(p.headers=a()(a()({},p.headers),{},{"Pc-Authorization":(0,be.ej)("_educoder_session")}),p.body=o.body):(p.headers=a()({Accept:"application/json","Content-Type":"application/json; charset=utf-8","Pc-Authorization":(0,be.ej)("_educoder_session")},p.headers),p.body=JSON.stringify(o.body))),"GET"==p.method?(p.headers=a()(a()({Accept:"application/json","Content-Type":"application/json; charset=utf-8"},p.headers),{},{"Pc-Authorization":(0,be.ej)("_educoder_session")}),o.params&&ke(o.params)&&(e+="?"+ke(o.params))):s.zzud&&(e+="?"+ke(a()({},s)));o.expirys;var d=function(){var e=l()(c()().mark((function e(t){var n,r,a,o,i,u;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.arrayBuffer();case 2:n=e.sent,a=new Blob([n]);try{r=t.headers.get("Content-Disposition").split(";")[1].replace("filename=","").replace(/[\s+,\',\",\‘,\’,\“,\”,\<,\>,\《,\》]/g,"")}catch(e){r="userfiles.zip"}return o=document.createElement("a"),i=window.URL.createObjectURL(a),u=r,o.href=i,o.download=u,o.click(),window.URL.revokeObjectURL(i),e.abrupt("return",n);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=f.Z.API_SERVER;return("dev"===window.ENV||e.startsWith("http"))&&(h=""),"GET"==p.method&&p.params&&Object.keys(p.params).map((function(e){if(p.params[e])if(Array.isArray(p.params[e]));else try{p.params[e]=encodeURIComponent(decodeURIComponent(p.params[e]))}catch(t){p.params[e]=encodeURIComponent(p.params[e])}})),(0,be.Ec)(p,e),r&&(h=""),fetch(h+e,p).then((function(t){return xe(t,a()({url:f.Z.API_SERVER+e},p))})).then((function(e){return function(e,t){var n=e.headers.get("Content-Type");return n&&n.match(/application\/json/i)&&e.clone().text().then((function(){})),e}(e)})).then(function(){var t=l()(c()().mark((function t(n){var r,a,i,u,s,l;return c()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{(i=n.headers.get("cs"))&&(0,be.d8)("_educoder_session",i,1)}catch(e){}if(204!==n.status){t.next=3;break}return t.abrupt("return",n.text());case 3:if(!(n.headers.get("content-type").indexOf("application/json")>-1)){t.next=10;break}return t.next=6,n.json();case 6:u=t.sent;try{u=JSON.parse(we(u))}catch(e){}t.next=25;break;case 10:if("application/xml"!==p.headers["Content-Type"]){t.next=16;break}return t.next=13,n.text();case 13:u=t.sent,t.next=25;break;case 16:if(!(null!==(r=o.body)&&void 0!==r&&r.autoDownload||null!==(a=o.params)&&void 0!==a&&a.autoDownload)){t.next=22;break}return t.next=19,d(n);case 19:u=t.sent,t.next=25;break;case 22:return t.next=24,n.arrayBuffer();case 24:u=t.sent;case 25:try{401!==u.status||null!==(s=p.params)&&void 0!==s&&s.hidePopLogin&&null!==(l=p.body)&&void 0!==l&&l.hidePopLogin||(0,ge.getDvaApp)()._store.dispatch({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),402===u.status&&("2"===localStorage.getItem("addinfo")?(0,ge.getDvaApp)()._store.dispatch({type:"shixunHomeworks/setActionTabs",payload:{key:"填充信息弹窗"}}):(pe=pe||he.Z.confirm({visible:!1,okText:"确定",cancelText:"取消"})).update({centered:!0,visible:!0,title:"提示",content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){ge.history.push("/account/profile/edit")}}))}catch(e){console.log("fetcherr",e)}return Pe(u,e),t.abrupt("return",u);case 28:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){try{var n=t.code;if(t instanceof TypeError&&window.showNetworkErrorTip("".concat(e,'').concat(t.message,"")),n){if(401===n)return void(0,ge.getDvaApp)()._store.dispatch({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}});Pe(t,e)}else e.includes("/file/filePatchMerge")?(0,ge.getDvaApp)()._store.dispatch({type:"shixunHomeworks/setActionTabs",payload:{key:"分片专用504",params:p.body}}):"403"!==t.message&&window.showNetworkErrorTip("".concat(e,'').concat(t.message,""));return t}catch(t){}}))}var Se=!1,Ce=!1,Pe=function(e,t){if(-6==e.status&&!Ce)return Ce=!0,(0,be.d8)("_educoder_session","logout",1),(0,be.m5)(),setTimeout((function(){return Ce=!1}),500),void he.Z.info({title:"系统通知",content:e.message,okText:"知道了",maskStyle:{background:"#000"},onOk:function(){window.location.reload()}});if(-7==e.status){var n;Ce=!0,setTimeout((function(){return Ce=!1}),500);var r,a="";if(null!=e&&null!==(n=e.data)&&void 0!==n&&n.exercise_list)null==e||null===(r=e.data)||void 0===r||null===(r=r.exercise_list)||void 0===r||r.map((function(e){a+='
    《').concat(e.exercise_name,"》")}));return he.Z.info({title:"提示",content:p.createElement("div",{id:"fetchStatus7",className:"fetchStatus7"},""),maskClosable:!1,closeIcon:!1,width:550,maskStyle:{background:"#000"},okText:"返回首页",onOk:function(){window.location.href="/"}}),void setTimeout((function(){document.getElementById("fetchStatus7").innerHTML="
    您当前有正在进行的考试 ".concat(a," ,请在考试结束后访问该页面
    ")}),500)}if((-1==e.status||-2==e.status||-102==e.status||e.status>400)&&403!=e.status&&!Ce)return Ce=!0,setTimeout((function(){return Ce=!1}),500),void ve.ZP.warning({content:e.message,key:"message-key"});var o={403:"/403",404:"/404",500:"/500"};if(o[e.status]&&!Se){(0,ge.getDvaApp)()._store.getState().user.userInfo;throw window.location.pathname.indexOf("/users")>-1&&"kepukehuan.educoder.net"===document.domain&&(Se=!0),setTimeout((function(){return Se=!1}),500),sessionStorage.setItem("errorStatus",JSON.stringify(e)),Object.values(o).includes(window.location.pathname)?console.log("当前路径存在于 mapping 中, 不再执行跳转"):location.replace(o[e.status]),new Error("403")}};function Oe(e,t){return Ee("/api/".concat(e),{method:"delete",body:a()({},t||{})})}},80615:function(e,t,n){"use strict";n.d(t,{Bn:function(){return o},hw:function(){return a},mi:function(){return r}});var r="WTJJelpXRXdaakk0Tm1SbE56UTFPRFl5TXpnNVltWmtZVE0zTVdSalltST0=",a="WVdaak1UVmhOVEF3TkRRd05qZGlZemRsTVdZeFptSTROek5rT0daak1UYz0=",o="Y1dJeFpXRXdaakk0Tm1GblpqUTFPRFl5TXpnNVltWmtZVE0zTVdSalluQT0="},1079:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Dk:function(){return setDocumentTitle},EM:function(){return toChineseNumber},Ec:function(){return setHeader},FH:function(){return downLoadFile},HJ:function(){return handleValidatorName},IS:function(){return isWechatBrowser},Il:function(){return setThreeComponent},Jn:function(){return getImageUrl},L9:function(){return trackEvent},Ll:function(){return checkIsClientExam},M:function(){return setmiyah},Nd:function(){return downLoadLink},Or:function(){return toWechatLogin},Q8:function(){return disabledDate},Sv:function(){return downloadFile},U6:function(){return HalfPastOne},WX:function(){return isLocalApp},ZJ:function(){return toDataUrl},b9:function(){return isPc},d0:function(){return disabledTime},d8:function(){return setCookie},eF:function(){return bindPhone},ej:function(){return getCookie},m5:function(){return clearAllCookies},oP:function(){return getJsonFromUrl},s2:function(){return isMobileDevice},xg:function(){return openNewWindow},yC:function(){return compareVersion}});var _root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(37205),_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__),_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7557),_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__),_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(41498),_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__),_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(82242),_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__),_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(85573),_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__),_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_typeof_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(31468),_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_typeof_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v10_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_typeof_js__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(59301),_utils_authority__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(13277),antd__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(91662),_components_Exercise_ip__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(41889),_service_exercise__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(26613),_contentType__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(657),umi__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(94706),md5__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(93735),md5__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_12__),_env__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(67390),_components_mediator__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1499),crypto_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(28209),crypto_js__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(crypto_js__WEBPACK_IMPORTED_MODULE_15__),_key__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(80615),moment__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(61186),moment__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_16__),dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(33656),dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_17__),uuid__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(1012),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(37712),_location;moment__WEBPACK_IMPORTED_MODULE_16___default().extend(dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_17___default());var GetElementHeight=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var a=r?e.scrollHeight:e.offsetHeight;if("rem"===t){var o=n?"".concat(n):getComputedStyle(document.documentElement).fontSize,i=parseFloat(o),u=a/i;return u}return a},HighLightedContent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#2EC25B";return"string"==typeof t&&(t=[t]),e.replace(new RegExp("(".concat(t.join("|"),")"),"gi"),'$1'))},parseParams=function(e){e=e||{};var t="",n=function(n){"object"===_typeof(e[n])?Array.isArray(e[n])&&e[n].forEach((function(e,r){t+="&"+n+"[]="+e})):void 0!==e[n]&&(t+="&"+n+"="+e[n])};for(var r in e)n(r);return t.substr(1)},getKey=function(e){return window.atob(window.atob(e))};function bytesToSize(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var getTwoDecimalPlaces=function(e){return Math.round(Math.round(1e5*e)/1e3*100)/100},NewAntdDisabledDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=edayjs(null==t?void 0:t.endTime).endOf("day"),a=e1&&void 0!==arguments[1]?arguments[1]:null,n=parseInt(dayjs(e).format("HH")),r=(parseInt(dayjs(e).format("mm")),parseInt(dayjs().format("HH"))),a=parseInt(dayjs().format("mm"));parseInt(dayjs().format("ss"));function o(e,t){for(var n=[],r=e;rmoment__WEBPACK_IMPORTED_MODULE_16___default()(t).endOf("day"),u=e1?_jsxs(_Fragment,{children:[Math.round(e/1e4*100)/100,_jsx("i",{className:"font12",children:"w"})]}):e},toChineseNumber=function(e){for(var t=e.toString().replace(/(?=(\d{4})+$)/g,",").split(",").filter(Boolean),n=["零","一","二","三","四","五","六","七","八","九"],r=["","十","百","千"],a=["","万","亿"],o=function(e){for(var t="",a=0;a30?""+timeformat(e,"yyyy-MM-dd"):r>1?r+"天前":1==r?"昨天":a>=1?a+"小时前":o>=5?o+"分钟前":"刚刚"};function replaceParamVal(paramName,replaceWith){var oUrl=window.location.href.toString(),re=eval("/("+paramName+"=)([^&]*)/gi"),nUrl=oUrl.replace(re,paramName+"="+replaceWith);window.history.replaceState(null,"",nUrl)}var timeformat=function(e,t){"string"==typeof e&&(e.indexOf("T")>=0&&(e=e.replace("T"," ")),e=new Date(Date.parse(e.replace(/-/g,"/"))));var n={"M+":(e=new Date(e)).getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(var r in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(t)&&(t=t.replace(RegExp.$1,[["日","一","二","三","四","五","六"],["周日","周一","周二","周三","周四","周五","周六"],["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]][RegExp.$1.length-1][e.getDay()])),n)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[r]:("00"+n[r]).substr((""+n[r]).length)));return t},toTimeFormat=function(e){if(!e||e<0)return"0秒";console.log("time:",e);var t=e/86400,n=e/3600,r=e/60;return t>=1?parseInt(t.toString())+"天"+Math.floor(n%24)+"时"+Math.floor(r%60)+"分"+Math.floor(e%60)+"秒":n>1?parseInt(n.toString())+"时"+Math.floor(r%60)+"分"+Math.floor(e%60)+"秒":r>=1?parseInt(r.toString())+"分"+Math.floor(e%60)+"秒":Math.ceil(e)+"秒"},validateLength=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=0;if(e){n=e.length;for(var r=0;r=55296&&a<=56319&&(n--,r++)}}return n<=t};function buildTree(e,t){var n={},r=null;return e.forEach((function(e){n[e.properties.uuid]=_objectSpread(_objectSpread({},e),{},{children:[]})})),t.forEach((function(e){var t=n[e.startNodeUuid],r=n[e.endNodeUuid];t&&r&&t.children.push(r)})),e.forEach((function(e){!t.some((function(t){return t.endNodeUuid===e.properties.uuid}))&&(r=n[e.properties.uuid])})),r}var handleValidatorNickName=function(e,t,n){if(t){var r=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(t),a=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im.test(t);(!0===r||!0===a||t.length<2||t.length>=21)&&n("2-20位中英文、数字及下划线")}n()},handleValidatorName=function(e,t,n){if(t){var r=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(t),a=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im.test(t);(!0===r||!0===a||t.length<2||t.length>=21)&&n("2-20位中英文、数字")}n()},getHiddenName=function(e){if(!e)return"";for(var t=e.length-1,n="",r=0;r-1?".educoder.net":document.domain,";path=/;SameSite=None;secure")}var delCookie=function(e){document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"},clearAllCookies=function(){for(var e=document.cookie.split(";"),t=0;t-1?n.substr(0,r):n;document.cookie=a+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}};function downLoadLink(e,t){var n=document.createElement("a");document.body.appendChild(n),n.href=t,e&&(n.title=e,n.download=e);var r=document.createEvent("MouseEvents");r.initEvent("click",!1,!1),n.dispatchEvent(r),document.body.removeChild(n)}function getFirstLevelDomain(){var e=window.location.hostname,t=e.split(".").reverse();return t.length>2?[t[1],t[0]].join("."):e}function getBlob(e){return new Promise((function(t){var n=new window.XMLHttpRequest;(e.indexOf(getFirstLevelDomain())>-1||"localhost"===location.hostname&&e.indexOf("/api/")>-1)&&(n.withCredentials=!0),n.open("GET",e,!0),n.responseType="blob",n.onload=function(){200===n.status&&t(n.response)},n.send()}))}function saveAs(e,t){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(e,t);else{var n=document.createElement("a"),r=document.querySelector("body");n.href=window.URL.createObjectURL(e),n.download=t,n.style.display="none",r.appendChild(n),n.click(),r.removeChild(n),window.URL.revokeObjectURL(n.href)}}function download(e,t){getBlob(e).then((function(e){saveAs(e,t)}))}function downLoadFileIframe(e,t){return new Promise((function(e,n){var r,a=t,o=document.createElement("iframe");document.body.appendChild(o),o.src=a,o.style.display="none",o.addEventListener("load",(function(){setTimeout((function(){document.body.removeChild(o)}),1e3)}),!0),r=setInterval((function(){getCookie("fileDownload")&&(delCookie("fileDownload"),clearInterval(r),document.body.removeChild(o),e())}),1e3)}))}function downLoadFile(e,t){downLoadLink(e,t)}var setUrlQuery=function(e){var t=e.url,n=e.query;if(!t)return"";if(n){var r=[],a=function(e){n.hasOwnProperty(e)&&!isUnOrNull(n[e])&&("object"===_typeof(n[e])?n[e].map((function(t){r.push("".concat(e,"[]=").concat(t))})):r.push("".concat(e,"=").concat(n[e])))};for(var o in n)a(o);t=-1!==t.indexOf("?")?"".concat(t,"&").concat(r.join("&")):"".concat(t,"?").concat(r.join("&")),console.log("url1111",t)}return t};function isPc(){for(var e=navigator.userAgent,t=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],n=!0,r=0;r0){n=!1;break}return n}function isChrome(){var e=navigator.userAgent;return["Chrome"].some((function(t){return e.indexOf(t)>-1}))}function isFirefox(){var e=navigator.userAgent;return["Firefox"].some((function(t){return e.indexOf(t)>-1}))}function isChromeOrFirefox(){var e=navigator.userAgent;return["Chrome","Firefox"].some((function(t){return e.indexOf(t)>-1}))}var formatMoney=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null==t||null===(e=t.toString())||void 0===e?void 0:e.replace(/\B(?=(\d{3})+(?!\d))/g,",")},openNewWindow=function(e){var t=document.createElement("a");t.target="_blank",document.body.appendChild(t),t.href=e;var n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),t.dispatchEvent(n),document.body.removeChild(t)},openNewWindows=function(e){var t=document.createElement("a");document.body.appendChild(t),t.href=e;var n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),t.dispatchEvent(n),document.body.removeChild(t)},formatTextMiddleIntercept=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.length<=6?e:"".concat(e.substring(0,3),"...").concat(e.substring(e.length-3,e.length))},HalfPastOne=function(){var e=(new Date).getHours(),t=(new Date).getMinutes();return t>=30?(e++,t="00"):t="30",e+":"+t},DayHalfPastOne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"-",t=(new Date).getHours(),n=(new Date).getMinutes();return n>=30?(t++,n="00"):n="30",(new Date).toLocaleDateString().replace(/\//g,e)+" "+t+":"+n},Type=function(e){return e.Number="Number",e.String="String",e.Boolean="Boolean",e.Object="Object",e.Array="Array",e.Function="Function",e}(Type||{}),type=function(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)},isEmpty=function(e){return type(e)===Type.Array?0===e.length:type(e)===Type.Object?0===Object.keys(e).length:!e},rangeNumber=function(e,t){for(var n=[],r=e;r1&&void 0!==arguments[1]?arguments[1]:12,n=t/2-2,r=t/2+3;return e.length>t?e.substr(0,n)+"..."+e.substr(r,t):e},formatRate=function(e){return e>4.5?5:e>4&&e<=4.5?4.5:e>3.5&&e<=4?4:e>3&&e<=3.5?3.5:e>2.5&&e<=3?3:e>2&&e<=2.5?2.5:e>1.5&&e<=2?2:e>1&&e<=1.5?1.5:e>.5&&e<=1?1:e>0&&e<=.5?.5:0},isUnOrNull=function(e){return null==e};function getUrlToken(e,t){var n=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)"),"i"),r=t.substr(1).match(n);return null!=r?decodeURIComponent(r[2]):null}var getMessagesUrl=function(e){if(e.link_url)return window.open(e.link_url);switch(null==e?void 0:e.container_type){case"TeacherChangeUserInfo":return window.open("/account/profile");case"TeacherResetUserPassword":return window.open("/account/secure");case"ApplyUserAuthentication":return window.open("/account/certification")}switch(e.container_type){case"ApplyUserAuthentication":if("Apply"===e.tiding_type){if(1===e.auth_type)return window.open("/admins/identity_authentications");if(2===e.auth_type)return window.open("/admins/professional_authentications")}return"System"===e.tiding_type?window.open("/account/certification"):"Code"===e.tiding_type?window.open("/account/profile"):void 0;case"CancelUserAuthentication":case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddMajor":case"Major":return window.open("/account/profile");case"ApplyAddDepartment":return"Apply"===e.tiding_type?window.open("/admins/department_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAddSchools":return"Apply"===e.tiding_type?window.open("/admins/unit_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAction":switch(e.parent_container_type){case"ApplyShixun":if("Apply"===e.tiding_type)return window.open("/admins/shixun_authorizations");if("System"===e.tiding_type)return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"ApplySubject":if("Apply"===e.tiding_type)return window.open("/admins/subject_authorizations");if("System"===e.tiding_type)return window.open("/paths/".concat(e.parent_container_id));case"TrialAuthorization":if("Apply"===e.tiding_type)return window.open("/managements/trial_authorization");if("System"===e.tiding_type)return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));case"StudentJoinCourse":if("Apply"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));if("System"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/students"));case"DealCourse":case"TeacherJoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Course":if("Delete"===e.tiding_type)return;return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(e.container_id));case"JournalsForMessage":switch(e.parent_container_type){case"Principal":return"";case"HomeworkCommon":return"normal"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):"group"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):"practice"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":return window.open(e.link_url)}case"Memo":return window.open("/forums/".concat(e.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(e.trigger_user.login,"/classrooms"));case"PraiseTread":case"Grade":return"";case"JoinProject":case"ReporterJoinProject":case"DealProject":case"ManagerJoinProject":return window.open(ENV.FORGE+e.project_url);case"Poll":return e.parent_container_type,window.open("\t/classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"));case"Exercise":switch(e.parent_container_type){case"CommitExercise":case"ExerciseScore":return window.open("\t/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":case"DealStudentTopicSelect":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"GraduationTask":case"GraduationWork":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.parent_container_id));case"HomeworkCommon":switch(e.parent_container_type){case"AnonymousCommentFail":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));default:if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.trigger_user.id,"/review/").concat(e.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("".concat(ENV.API_SERVER,"/admins/mirror_repositories"));case"Journal":return window.open("/issues/".concat(e.parent_container_id));case"Issue":return window.open("/issues/".concat(e.container_id));case"PullRequest":return window.open(ENV.FORGE+e.project_url);case"Department":return window.open("/account/profile");case"Library":if("Apply"===e.tiding_type)return window.open("/admins/library_applies");if("System"===e.tiding_type)return window.open("/moop_cases/".concat(e.container_id));case"ProjectPackage":if("Destroyed"===e.tiding_type)return;return"Destroyed_end"===e.tiding_type?void 0:"Apply"===e.tiding_type?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(e.container_id));case"Discuss":return"Hack"===e.parent_container_type&&e.extra?window.open("/myproblems/".concat(e.extra,"/comment")):"ai_reply"===e.extra&&e.task_identifier?window.open("/tasks/".concat(e.task_identifier,"?extra=extra")):window.open("/shixuns/".concat(e.identifier,"/shixun_discuss"));case"Video":return"Apply"===e.tiding_type?window.open("/admins/video_applies"):"System"===e.tiding_type?window.open("/users/".concat(null===(t=userInfo())||void 0===t?void 0:t.login,"/videos")):"";var t;case"PublicCourseStart":return window.open("/classrooms/".concat(e.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(e.container_id));case"ResubmitStudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));case"AdjustScore":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(e.belong_container_id,"/course_videos?open=live"));case"Hack":if(e.extra&&"HackDelete"!==e.parent_container_type)return window.open("/problems/".concat(e.extra,"/edit"));default:return}},checkLocalOrPublicIp=null,_ref,checkDisabledExam=function(e){return new Promise(function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(n,r){var a;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,checkExam({id:null==e?void 0:e.exerciseId,coursesId:null==e?void 0:e.coursesId});case 2:if(0!==(null==(a=t.sent)?void 0:a.status)){t.next=6;break}return n(""),t.abrupt("return");case 6:setTimeout((function(){window.location.reload()}),2e3),r("");case 8:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}())},isKepuKehuan=function(){return location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1},startExercise=null,_ref4,httpBuildQuery=function e(t,n,r,a){if(console.log("param:",t),n=n||null,r=r||"&",a=a||null,!t)return"";return function(e){for(var t=new Array,n=0;n2&&/^[a-z]{2}$/.test(t[t.length-2])?t.slice(-3).join("."):t.slice(-2).join(".")}var setHeader=function(e,t){try{var n,r=Date.now(),a=(0,uuid__WEBPACK_IMPORTED_MODULE_19__.Z)(),o="method="+(null===(n=e.method)||void 0===n?void 0:n.toLocaleUpperCase())+"&ak="+getKey(_key__WEBPACK_IMPORTED_MODULE_20__.mi)+"&sk="+getKey(_key__WEBPACK_IMPORTED_MODULE_20__.hw)+"&time="+r;return e.headers["X-EDU-Type"]="pc",e.headers["X-EDU-Timestamp"]=r,e.headers["X-EDU-Signature"]=md5__WEBPACK_IMPORTED_MODULE_12___default()(window.btoa(o)),e.headers["Pc-Authorization"]=getCookie("_educoder_session"),e.headers["X-Original-Protocol"]=location.protocol,e.headers["X-Original-Host"]=location.host,e.headers["X-Request-Id"]=a,e}catch(n){console.log("error:",n,e,t)}},setThreeComponent=function(){var e;e=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=setHeader({method:t,headers:{}});e.call(this,t,n,r);try{n.indexOf(getTopLevelDomain())>-1&&(this.setRequestHeader("X-EDU-Type","pc"),this.setRequestHeader("X-EDU-Timestamps",a.headers["X-EDU-Timestamp"]),this.setRequestHeader("X-EDU-Signatures",a.headers["X-EDU-Signature"]),this.setRequestHeader("Pc-Authorization",getCookie("_educoder_session")))}catch(e){}},function(e){window.fetch=function(t,n){var r;return null!==(r=(n=n||{}).headers)&&void 0!==r&&r["X-EDU-Timestamp"]||setHeader(n),e.apply(this,arguments).then((function(e){return e}))}}(window.fetch)},parseUrl=function(e){var t={};return e.replace(/(\w+)=([^\#&]*)/gi,(function(e,n,r){t[n]=decodeURI(r)})),t},messageInfo=function(e,t){var n={1:"当前实践项目暂未发布,请联系本课堂教师。",2:"当前实践项目不存在,请联系本课堂教师。",3:"当前实践项目面向指定单位开放,请联系本课堂教师。",4:"当前实践项目将于".concat(t,"发布,请等待。")}[e];message.warning(n)},base64ToBlob=function(e,t){for(var n,r=window.atob(e),a=r.length,o=new Uint8Array(a),i=0;i0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.createElement("textarea");n.value=e,document.body.appendChild(n),n.select(),document.execCommand("Copy"),t||message.success("复制成功"),document.body.removeChild(n)},getJsonFromUrl=function(e){if(e||(e=window.location.search),!e)return{};var t=e.substring(1),n={};return t.split("&").forEach((function(e){var t=e.split("=");n[t[0]]=decodeURIComponent(t[1])})),n},arrTrans=function(e,t){if(!t)return null;var n=[];return t.forEach((function(t,r){var a=Math.floor(r/e);n[a]||(n[a]=[]),n[a].push(t)})),n},setDocumentTitle=function(e){checkIsClientExam()?document.title="头歌考试系统":""!==e&&e&&(document.title=e||(document.domain.indexOf(".educoder.net")>-1?"头歌实践教学平台":""))},checkIsClientExam=function(){var e;return null===(e=window)||void 0===e||null===(e=e.localStorage)||void 0===e?void 0:e.isClientExam},localSort={setItem:function(e,t,n){var r=e,a=localStorage.getItem(r),o=null!==a&&"[object Object]"!==a?JSON.parse(a):{};o[n]=t,localStorage.setItem(r,JSON.stringify(o))},getItem:function(e,t){var n=e,r=localStorage.getItem(n);return(null!==r&&"[object Object]"!==r?JSON.parse(r):{})[t]}},ImgSrcConvert=function(e){return null!=e&&e.startsWith("http")?e:ENV.IMG_SERVER+e},compareVersion=function(e){for(var t=getVersion(),n=e.split("."),r=t.split("."),a=Math.max(n.length,r.length);n.lengthu)return 1;if(i-1};function randomArray(e,t){var n,r,a=e.length;t=t||1;for(var o;0!==a;)r=Math.floor((o=void 0,((o=1e3*Math.sin(t++))-Math.floor(o))*a)),n=e[a-=1],e[a]=e[r],e[r]=n;return e}function pointerEvents(e){for(var t=document.getElementsByTagName("iframe"),n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!e)return"";var n=e.lastIndexOf("."),r=[e,""];if(-1!==n&&n!==e.length-1){var a=e.substring(0,n),o=e.substring(n+1);r=[a,o]}if(r[0].length>t){var i=r[0].slice(0,t)+"..."+r[1];return i}return e}function cutName(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"--";return e?(null==e?void 0:e.length)>=t?(null==e?void 0:e.slice(0,t))+"...":e:n}function timeContrast(e){return!e||moment().isBefore(moment(e))}function showTotal(e){return _jsxs("span",{className:"font14 c-grey-333",children:["共",_jsxs("span",{className:"c-light-primary",children:[" ",e," "]}),"条数据"]})}var formatRandomPaperData=function(e){var t={1:"一",2:"二",3:"三",4:"四",5:"五",6:"六",7:"七"};if(e){var n=e||{},r=n.exam,a=n.single_questions,o=n.multiple_questions,i=n.judgement_questions,u=n.program_questions,c=n.completion_questions,s=n.subjective_questions,l=n.practical_questions,f=n.combination_questions,p=n.bprogram_questions,d=[_objectSpread({type:"SINGLE",name:"单选题"},a),_objectSpread({type:"MULTIPLE",name:"多选题"},o),_objectSpread({type:"COMPLETION",name:"填空题"},c),_objectSpread({type:"JUDGMENT",name:"判断题"},i),_objectSpread({type:"SUBJECTIVE",name:"简答题"},s),_objectSpread({type:"PROGRAM",name:"编程题"},u),_objectSpread({type:"BPROGRAM",name:"程序填空题"},p),_objectSpread({type:"PRACTICAL",name:"实训题"},l),_objectSpread({type:"COMBINATION",name:"组合题"},f)],h=[],v=0,m=0,y=d.filter((function(e){return e.questions_count>0})).map((function(e,n){var r;return null===(r=e.questions)||void 0===r||r.forEach((function(e){h.push(e.id),v+=e.score,m+=1})),_objectSpread(_objectSpread({},e),{number:t[n+1]})}));return{all_questions_count:m,all_score:v,questionList:y,ids:h,exam:r}}},formatRandomPaperDatas=function(e){var t,n={1:"一",2:"二",3:"三",4:"四",5:"五",6:"六",7:"七"};if(e){var r=e||{},a=r.exam,o=r.single_questions,i=r.multiple_questions,u=r.judgement_questions,c=r.program_questions,s=r.completion_questions,l=r.subjective_questions,f=r.practical_questions,p=r.combination_questions,d=r.bprogram_questions,h=[_objectSpread({type:"SINGLE",name:"单选题"},o),_objectSpread({type:"MULTIPLE",name:"多选题"},i),_objectSpread({type:"COMPLETION",name:"填空题"},s),_objectSpread({type:"JUDGMENT",name:"判断题"},u),_objectSpread({type:"SUBJECTIVE",name:"简答题"},l),_objectSpread({type:"PROGRAM",name:"编程题"},c),_objectSpread({type:"BPROGRAM",name:"程序填空题"},d),_objectSpread({type:"PRACTICAL",name:"实训题"},f),_objectSpread({type:"COMBINATION",name:"组合题"},p)],v=[];null==a||null===(t=a.question_type_position)||void 0===t||t.map((function(e,t){null==h||h.map((function(t,n){e.type===t.type&&v.push(t)}))}));var m=[],y=0,g=0,b=v.filter((function(e){return e.questions_count>0})).map((function(e,t){var r;return null===(r=e.questions)||void 0===r||r.forEach((function(e){m.push(e.id),y+=e.score,g+=1})),_objectSpread(_objectSpread({},e),{number:n[t+1]})}));return{all_questions_count:g,all_score:y,questionList:b,ids:m,exam:a}}},isWechatBrowser=function(){return"micromessenger"==navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},toWechatLogin=function(){isWechatBrowser()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0955caba88bc37eb&redirect_uri=https%3A%2F%2Fwww.educoder.net%2fotherloginstart&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":window.location.href="/wxlogin.html"},isMobileDevice=function(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("Mobi")},sendAppStatus=function(e,t){try{var n;if(t){if(e.send(JSON.stringify({type:"toggleLockExit",data:!0})),null!=t&&t.forbid_screen&&e.send(JSON.stringify({type:"open-disabled-switchscreen"})),null!=t&&t.use_white_list&&e.send(JSON.stringify({type:"open-only-allow-runapp",data:null==t?void 0:t.white_list})),null!=t&&t.net_limit)e.send(JSON.stringify({type:"network-close",data:null==t||null===(n=t.net_limit_list)||void 0===n?void 0:n.split("\n")}))}else e.send(JSON.stringify({type:"toggleLockExit",data:!1})),e.send(JSON.stringify({type:"close-disabled-switchscreen"})),e.send(JSON.stringify({type:"close-only-allow-runapp"})),e.send(JSON.stringify({type:"network-open"}))}catch(e){}},addJumping=function(){var e=document.querySelector('a[title="增加填空"]'),t=null==e?void 0:e.querySelector("span");t&&(t.classList.remove("jumping-icon"),t.offsetWidth,t.classList.add("jumping-icon"),setTimeout((function(){var e;null==t||null===(e=t.classList)||void 0===e||e.remove("jumping-icon")}),2e3))},showClassroomsmodal=function(e){return!(null==e||!e.forbid_student_visit)&&(Modal.warning({title:"提示",icon:null,centered:!0,okText:"我知道了",content:_jsxs("span",{children:[_jsxs("span",{style:{fontWeight:600},children:[null==e?void 0:e.username,"老师 "]}),"已关闭该课堂,学生用户暂时无法访问 "]})}),!0)},getExamRestrictionInfo=function(e){var t=[];return e.is_locked&&t.push("考试解锁码"),e.login_restrict&&t.push("考试登录限制"),e.screen_open&&t.push("切屏后强制交卷"),e.ip_bind&&t.push("IP地址绑定"),"pub"!==e.ip_limit&&"inner"!==e.ip_limit||t.push("限制考试访问IP"),e.open_camera&&t.push("考试中启用拍照功能进行监考和行为分析"),e.identity_verify&&t.push("考试前人脸身份核验"),e.open_phone_video_recording&&t.push("考试中开启手机视频录制"),t.length>0?t.join("、"):""},releaseRuleDataAdjust=function(e){var t=e.reduce((function(e,t){var n="".concat(t.publish_time,"_").concat(t.end_time,"_").concat(t.is_admin);return e[n]?(e[n].group_name.push(t.group_name),e[n].group_id.push(t.group_id)):e[n]={publish_time:t.publish_time,end_time:t.end_time,is_admin:t.is_admin,group_name:[t.group_name],group_id:[t.group_id]},e}),{});return Object.values(t).map((function(e){return _objectSpread(_objectSpread({},e),{},{group_name:e.group_name.flat(),group_id:e.group_id.flat()})}))},aiReviewConfigformatChecks=function(e){if(!e||0===e.length)return!0;var t=new Set,n=new Set,r=!0,a=!0,o=null==e?void 0:e.reduce((function(e,o){return null!=t&&t.has(o.name)&&(r=!1),null==t||t.add(o.name),null!=n&&n.has(o.content)&&(a=!1),null==n||n.add(o.content),e+parseFloat(o.weight)}),0);return r?a?100==parseFloat(o.toFixed(2))||(message.warning("所有评分项目的权重之和必须为100%"),!1):(message.warning("评分标准内容不能重复!"),!1):(message.warning("评分项目内容不能重复!"),!1)}},91231:function(e,t,n){"use strict";n.d(t,{Il:function(){return u},Ov:function(){return c},T$:function(){return l}});var r=n(38127),a=n(59301),o=n(35338),i=["element"],u=a.createContext({});function c(){return a.useContext(u)}function s(){var e=(0,o.TH)(),t=c().clientRoutes;return(0,o.fp)(t,e.pathname)||[]}function l(){var e,t=(null===(e=s().slice(-1)[0])||void 0===e?void 0:e.route)||{};t.element;return(0,r.Z)(t,i)}},91392:function(e){var t={en_GB:"en-gb",en_US:"en",zh_CN:"zh-cn",zh_TW:"zh-tw"};e.exports=function(e,n,r){var a=n.prototype.locale;n.prototype.locale=function(e){var n;return"string"==typeof e&&(e=t[n=e]||n.split("_")[0]),a.call(this,e)}}},62487:function(e,t,n){"use strict";var r=n(59301),a=n(56553),o=n(70045);t.Z=e=>{const{space:t,form:n,children:i}=e;if(null==i)return null;let u=i;return n&&(u=r.createElement(a.Ux,{override:!0,status:!0},u)),t&&(u=r.createElement(o.BR,null,u)),u}},45915:function(e,t,n){"use strict";n.d(t,{i:function(){return u}});var r=n(59301),a=n(18929),o=n(60840),i=n(48755);function u(e){return t=>r.createElement(o.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}t.Z=(e,t,n,o,c)=>u((u=>{const{prefixCls:s,style:l}=u,f=r.useRef(null),[p,d]=r.useState(0),[h,v]=r.useState(0),[m,y]=(0,a.Z)(!1,{value:u.open}),{getPrefixCls:g}=r.useContext(i.E_),b=g(o||"select",s);r.useEffect((()=>{if(y(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;d(t.offsetHeight+8),v(t.offsetWidth)})),t=setInterval((()=>{var n;const r=c?`.${c(b)}`:`.${b}-dropdown`,a=null===(n=f.current)||void 0===n?void 0:n.querySelector(r);a&&(clearInterval(t),e.observe(a))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let _=Object.assign(Object.assign({},u),{style:Object.assign(Object.assign({},l),{margin:0}),open:m,visible:m,getPopupContainer:()=>f.current});n&&(_=n(_)),t&&Object.assign(_,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const w={paddingBottom:p,position:"relative",minWidth:h};return r.createElement("div",{ref:f,style:w},r.createElement(e,Object.assign({},_)))}))},78776:function(e,t,n){"use strict";n.d(t,{Z:function(){return l},w:function(){return i}});var r=n(59301),a=n(99267),o=n(26112);function i(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function u(e){const{closable:t,closeIcon:n}=e||{};return r.useMemo((()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e}),[t,n])}function c(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const s={};function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;const i=u(e),l=u(t),f="boolean"!=typeof i&&!!(null==i?void 0:i.disabled),p=r.useMemo((()=>Object.assign({closeIcon:r.createElement(a.Z,null)},n)),[n]),d=r.useMemo((()=>!1!==i&&(i?c(p,l,i):!1!==l&&(l?c(p,l):!!p.closable&&p))),[i,l,p]);return r.useMemo((()=>{if(!1===d)return[!1,null,f];const{closeIconRender:e}=p,{closeIcon:t}=d;let n=t;if(null!=n){e&&(n=e(t));const a=(0,o.Z)(d,!0);Object.keys(a).length&&(n=r.isValidElement(n)?r.cloneElement(n,a):r.createElement("span",Object.assign({},a),n))}return[!0,n,f]}),[d,p])}},75030:function(e,t,n){"use strict";n.d(t,{Cn:function(){return l},u6:function(){return u}});var r=n(59301),a=n(57700),o=n(55743);const i=100,u=1e3,c={Modal:i,Drawer:i,Popover:i,Popconfirm:i,Tooltip:i,Tour:i,FloatButton:i},s={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const l=(e,t)=>{const[,n]=(0,a.ZP)(),i=r.useContext(o.Z),u=e in c;let l;if(void 0!==t)l=[t,t];else{let r=null!=i?i:0;r+=u?(i?0:n.zIndexPopupBase)+c[e]:s[e],l=[void 0===i?t:r,r]}return l}},86641:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var r=n(48755);const a=()=>({height:0,opacity:0}),o=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},i=e=>({height:e?e.offsetHeight:0}),u=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,c=(e,t,n)=>void 0!==n?n:`${e}-${t}`;t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.Rf;return{motionName:`${e}-motion-collapse`,onAppearStart:a,onEnterStart:a,onAppearActive:o,onEnterActive:o,onLeaveStart:i,onLeaveActive:a,onAppearEnd:u,onEnterEnd:u,onLeaveEnd:u,motionDeadline:500}}},22703:function(e,t,n){"use strict";n.d(t,{M2:function(){return a},Tm:function(){return i},wm:function(){return o}});var r=n(59301);function a(e){return e&&r.isValidElement(e)&&e.type===r.Fragment}const o=(e,t,n)=>r.isValidElement(e)?r.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t;function i(e,t){return o(e,e,t)}},32383:function(e,t,n){"use strict";n.d(t,{G8:function(){return o},ln:function(){return i}});var r=n(59301);n(48736);function a(){}const o=r.createContext({}),i=()=>{const e=()=>{};return e.deprecated=a,e}},12919:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(59301),a=n(92310),o=n.n(a),i=n(29194),u=n(8654),c=n(48755),s=n(22703),l=n(16931);const f=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}};var p=(0,l.A1)("Wave",(e=>[f(e)])),d=n(6089),h=n(16089),v=n(57700),m=n(63872),y=n(77900),g=n(11774);function b(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function _(e){return Number.isNaN(e)?0:e}const w=e=>{const{className:t,target:n,component:a,registerUnmount:i}=e,c=r.useRef(null),s=r.useRef(null);r.useEffect((()=>{s.current=i()}),[]);const[l,f]=r.useState(null),[p,d]=r.useState([]),[v,g]=r.useState(0),[w,x]=r.useState(0),[k,E]=r.useState(0),[S,C]=r.useState(0),[P,O]=r.useState(!1),j={left:v,top:w,width:k,height:S,borderRadius:p.map((e=>`${e}px`)).join(" ")};function A(){const e=getComputedStyle(n);f(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return b(t)?t:b(n)?n:b(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:a}=e;g(t?n.offsetLeft:_(-parseFloat(r))),x(t?n.offsetTop:_(-parseFloat(a))),E(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:o,borderTopRightRadius:i,borderBottomLeftRadius:u,borderBottomRightRadius:c}=e;d([o,i,c,u].map((e=>_(parseFloat(e)))))}if(l&&(j["--wave-color"]=l),r.useEffect((()=>{if(n){const e=(0,h.Z)((()=>{A(),O(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(A),t.observe(n)),()=>{h.Z.cancel(e),null==t||t.disconnect()}}}),[]),!P)return null;const T=("Checkbox"===a||"Radio"===a)&&(null==n?void 0:n.classList.contains(m.A));return r.createElement(y.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=c.current)||void 0===n?void 0:n.parentElement;null===(r=s.current)||void 0===r||r.call(s).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:a}=e;return r.createElement("div",{ref:(0,u.sQ)(c,n),className:o()(t,a,{"wave-quick":T}),style:j})}))};var x=(e,t)=>{var n;const{component:a}=t;if("Checkbox"===a&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild);const i=(0,g.x)();let u=null;u=i(r.createElement(w,Object.assign({},t,{target:e,registerUnmount:function(){return u}})),o)};var k=(e,t,n)=>{const{wave:a}=r.useContext(c.E_),[,o,i]=(0,v.ZP)(),u=(0,d.Z)((r=>{const u=e.current;if((null==a?void 0:a.disabled)||!u)return;const c=u.querySelector(`.${m.A}`)||u,{showEffect:s}=a||{};(s||x)(c,{className:t,token:o,component:n,event:r,hashId:i})})),s=r.useRef(null);return e=>{h.Z.cancel(s.current),s.current=(0,h.Z)((()=>{u(e)}))}};var E=e=>{const{children:t,disabled:n,component:a}=e,{getPrefixCls:l}=(0,r.useContext)(c.E_),f=(0,r.useRef)(null),d=l("wave"),[,h]=p(d),v=k(f,o()(d,h),a);if(r.useEffect((()=>{const e=f.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!(0,i.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||v(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!r.isValidElement(t))return null!=t?t:null;const m=(0,u.Yr)(t)?(0,u.sQ)((0,u.C4)(t),f):f;return(0,s.Tm)(t,{ref:m})}},63872:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});const r=`${n(48755).Rf}-wave-target`},55743:function(e,t,n){"use strict";const r=n(59301).createContext(void 0);t.Z=r},17004:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var r=n(59301);const a=r.createContext({})},61670:function(e,t,n){"use strict";n.d(t,{Dn:function(){return f},aG:function(){return c},hU:function(){return p},nx:function(){return s}});var r=n(95190),a=n(59301),o=n(22703),i=n(34998);const u=/^[\u4E00-\u9FA5]{2}$/,c=u.test.bind(u);function s(e){return"danger"===e?{danger:!0}:{type:e}}function l(e){return"string"==typeof e}function f(e){return"text"===e||"link"===e}function p(e,t){let n=!1;const r=[];return a.Children.forEach(e,(e=>{const t=typeof e,a="string"===t||"number"===t;if(n&&a){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=a})),a.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&l(e.type)&&c(e.props.children)?(0,o.Tm)(e,{children:e.props.children.split("").join(n)}):l(e)?c(e)?a.createElement("span",null,e.split("").join(n)):a.createElement("span",null,e):(0,o.M2)(e)?a.createElement("span",null,e):e}(e,t)))}["default","primary","danger"].concat((0,r.Z)(i.i))},20743:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Ie}});var r=n(59301),a=n(92310),o=n.n(a),i=n(2738),u=n(8654),c=n(12919),s=n(48755),l=n(2171),f=n(31756),p=n(70045),d=n(57700),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n}=r.useContext(s.E_),{prefixCls:a,size:i,className:u}=e,c=h(e,["prefixCls","size","className"]),l=t("btn-group",a),[,,f]=(0,d.ZP)(),p=r.useMemo((()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}}),[i]);const m=o()(l,{[`${l}-${p}`]:p,[`${l}-rtl`]:"rtl"===n},u,f);return r.createElement(v.Provider,{value:i},r.createElement("div",Object.assign({},c,{className:m})))},y=n(61670),g=n(58617),b=n(77900);const _=(0,r.forwardRef)(((e,t)=>{const{className:n,style:a,children:i,prefixCls:u}=e,c=o()(`${u}-icon`,n);return r.createElement("span",{ref:t,className:c,style:a},i)}));var w=_;const x=(0,r.forwardRef)(((e,t)=>{const{prefixCls:n,className:a,style:i,iconClassName:u}=e,c=o()(`${n}-loading-icon`,a);return r.createElement(w,{prefixCls:n,className:c,style:i,ref:t},r.createElement(g.Z,{className:u}))})),k=()=>({width:0,opacity:0,transform:"scale(0)"}),E=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var S=e=>{const{prefixCls:t,loading:n,existIcon:a,className:i,style:u,mount:c}=e,s=!!n;return a?r.createElement(x,{prefixCls:t,className:i,style:u}):r.createElement(b.ZP,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:k,onAppearActive:E,onEnterStart:k,onEnterActive:E,onLeaveStart:E,onLeaveActive:k},((e,n)=>{let{className:a,style:c}=e;const s=Object.assign(Object.assign({},u),c);return r.createElement(x,{prefixCls:t,className:o()(i,a),style:s,ref:n})}))},C=n(66604),P=n(63356),O=n(34998),j=n(51636),A=n(16931);const T=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var I=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},T(`${t}-primary`,a),T(`${t}-danger`,o)]}},M=n(99153),R=n(84851),L=n(19257),Z=n(93046),D=n(20439),N=n(62646),$=n(93664),F=n(17835),B=["b"],q=["v"],z=function(e){return Math.round(Number(e||0))},H=function(e){(0,L.Z)(n,e);var t=(0,Z.Z)(n);function n(e){return(0,M.Z)(this,n),t.call(this,function(e){if(e instanceof F.t)return e;if(e&&"object"===(0,$.Z)(e)&&"h"in e&&"b"in e){var t=e,n=t.b,r=(0,N.Z)(t,B);return(0,D.Z)((0,D.Z)({},r),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return(0,R.Z)(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=z(100*e.s),n=z(100*e.b),r=z(e.h),a=e.a,o="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),i="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(a.toFixed(0===a?0:2),")");return 1===a?o:i}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,n=(0,N.Z)(e,q);return(0,D.Z)((0,D.Z)({},n),{},{b:t,a:this.a})}}]),n}(F.t),U=function(e){return e instanceof H?e:new H(e)};U("#1677ff");n(70425);let W=function(){return(0,R.Z)((function e(t){var n;if((0,M.Z)(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map((t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}})),this.metaColor=new H(this.colors[0].color.metaColor)):this.metaColor=new H(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)})):this.toHexString()===e.toHexString())}}])}();n(18929);const V=(e,t)=>{const{r:n,g:r,b:a,a:o}=e.toRgb(),i=new H(e.toRgbString()).onBackground(t).toHsv();return o<=.5?i.v>.5:.299*n+.587*r+.114*a>192};var G=n(45156),Y=n(28620);const K=e=>{const{paddingInline:t,onlyIconSize:n}=e;return(0,j.IX)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},X=e=>{var t,n,r,a,o,i;const u=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,l=null!==(a=e.contentLineHeight)&&void 0!==a?a:(0,G.D)(u),f=null!==(o=e.contentLineHeightSM)&&void 0!==o?o:(0,G.D)(c),p=null!==(i=e.contentLineHeightLG)&&void 0!==i?i:(0,G.D)(s),d=V(new W(e.colorBgSolid),"#fff")?"#000":"#fff",h=O.i.reduce(((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${(0,C.bf)(e.controlOutlineWidth)} 0 ${(0,Y.Z)(e[`${n}1`],e.colorBgContainer)}`})),{});return Object.assign(Object.assign({},h),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:d,contentFontSize:u,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:l,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-u*l)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*p)/2-e.lineWidth,0)})},Q=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:o,motionEaseInOut:i,marginXS:u,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,C.bf)(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:(0,P.Ro)(),"> a":{color:"currentColor"},"&:not(:disabled)":(0,P.Qy)(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:a,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map((e=>`${e} ${o} ${i}`)).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(u).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(u).mul(-1).equal()}}}}}},J=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),ee=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),te=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),ne=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),re=(e,t,n,r,a,o,i,u)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},J(e,Object.assign({background:t},i),Object.assign({background:t},u))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),ae=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},ne(e))}),oe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ie=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?oe:ae;return Object.assign(Object.assign({},a(e)),J(e.componentCls,t,n))},ue=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},ie(e,r,a))}),ce=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},ie(e,r,a))}),se=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),le=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},ie(e,n,r))}),fe=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},ie(e,r,a,n))}),pe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ue(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),se(e)),le(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),re(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),fe(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),de=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},ce(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),se(e)),le(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),fe(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),fe(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),re(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),he=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ue(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),ce(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),se(e)),le(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),fe(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),fe(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),re(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ve=e=>Object.assign(Object.assign({},fe(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),re(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),me=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:pe(e),[`${t}-color-primary`]:de(e),[`${t}-color-dangerous`]:he(e),[`${t}-color-link`]:ve(e)},(e=>{const{componentCls:t}=e;return O.i.reduce(((n,r)=>{const a=e[`${r}6`],o=e[`${r}1`],i=e[`${r}5`],u=e[`${r}2`],c=e[`${r}3`],s=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:a,boxShadow:e[`${r}ShadowColor`]},ue(e,e.colorTextLightSolid,a,{background:i},{background:s})),ce(e,a,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:s,borderColor:s,background:e.colorBgContainer})),se(e)),le(e,o,{background:u},{background:c})),fe(e,a,"link",{color:i},{color:s})),fe(e,a,"text",{color:i,background:o},{color:s,background:c}))})}),{})})(e))},ye=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ce(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),fe(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ue(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),fe(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ge=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:o,buttonPaddingHorizontal:i,iconCls:u,buttonPaddingVertical:c,buttonIconOnlyFontSize:s}=e;return[{[t]:{fontSize:a,height:r,padding:`${(0,C.bf)(c)} ${(0,C.bf)(i)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[u]:{fontSize:s}}}},{[`${n}${n}-circle${t}`]:ee(e)},{[`${n}${n}-round${t}`]:te(e)}]},be=e=>{const t=(0,j.IX)(e,{fontSize:e.contentFontSize});return ge(t,e.componentCls)},_e=e=>{const t=(0,j.IX)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return ge(t,`${e.componentCls}-sm`)},we=e=>{const t=(0,j.IX)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return ge(t,`${e.componentCls}-lg`)},xe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var ke=(0,A.I$)("Button",(e=>{const t=K(e);return[Q(t),be(t),_e(t),we(t),xe(t),me(t),ye(t),I(t)]}),X,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}}),Ee=n(56119);function Se(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Ce(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Se(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Pe=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,o=a(r).mul(-1).equal(),i=e=>{const a=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${a} + ${a}::before`]:{position:"absolute",top:e?o:0,insetInlineStart:e?0:o,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))};var Oe=(0,A.bk)(["Button","compact"],(e=>{const t=K(e);return[(0,Ee.c)(t),Ce(t),Pe(t)]}),X),je=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{var n,a;const{loading:d=!1,prefixCls:h,color:m,variant:g,type:b,danger:_=!1,shape:x="default",size:k,styles:E,disabled:C,className:P,rootClassName:O,children:j,icon:A,iconPosition:T="start",ghost:I=!1,block:M=!1,htmlType:R="button",classNames:L,style:Z={},autoInsertSpace:D,autoFocus:N}=e,$=je(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),F=b||"default",[B,q]=(0,r.useMemo)((()=>{if(m&&g)return[m,g];const e=Ae[F]||[];return _?["danger",e[1]]:e}),[b,m,g,_]),z="danger"===B?"dangerous":B,{getPrefixCls:H,direction:U,autoInsertSpace:W,className:V,style:G,classNames:Y,styles:K}=(0,s.dj)("button"),X=null===(n=null!=D?D:W)||void 0===n||n,Q=H("btn",h),[J,ee,te]=ke(Q),ne=(0,r.useContext)(l.Z),re=null!=C?C:ne,ae=(0,r.useContext)(v),oe=(0,r.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(d)),[d]),[ie,ue]=(0,r.useState)(oe.loading),[ce,se]=(0,r.useState)(!1),le=(0,r.useRef)(null),fe=(0,u.x1)(t,le),pe=1===r.Children.count(j)&&!A&&!(0,y.Dn)(q),de=(0,r.useRef)(!0);r.useEffect((()=>(de.current=!1,()=>{de.current=!0})),[]),(0,r.useEffect)((()=>{let e=null;return oe.delay>0?e=setTimeout((()=>{e=null,ue(!0)}),oe.delay):ue(oe.loading),function(){e&&(clearTimeout(e),e=null)}}),[oe]),(0,r.useEffect)((()=>{if(!le.current||!X)return;const e=le.current.textContent||"";pe&&(0,y.aG)(e)?ce||se(!0):ce&&se(!1)})),(0,r.useEffect)((()=>{N&&le.current&&le.current.focus()}),[]);const he=r.useCallback((t=>{var n;ie||re?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)}),[e.onClick,ie,re]);const{compactSize:ve,compactItemClassnames:me}=(0,p.ri)(Q,U),ye={large:"lg",small:"sm",middle:void 0},ge=(0,f.Z)((e=>{var t,n;return null!==(n=null!==(t=null!=k?k:ve)&&void 0!==t?t:ae)&&void 0!==n?n:e})),be=ge&&null!==(a=ye[ge])&&void 0!==a?a:"",_e=ie?"loading":A,we=(0,i.Z)($,["navigate"]),xe=o()(Q,ee,te,{[`${Q}-${x}`]:"default"!==x&&x,[`${Q}-${F}`]:F,[`${Q}-dangerous`]:_,[`${Q}-color-${z}`]:z,[`${Q}-variant-${q}`]:q,[`${Q}-${be}`]:be,[`${Q}-icon-only`]:!j&&0!==j&&!!_e,[`${Q}-background-ghost`]:I&&!(0,y.Dn)(q),[`${Q}-loading`]:ie,[`${Q}-two-chinese-chars`]:ce&&X&&!ie,[`${Q}-block`]:M,[`${Q}-rtl`]:"rtl"===U,[`${Q}-icon-end`]:"end"===T},me,P,O,V),Ee=Object.assign(Object.assign({},G),Z),Se=o()(null==L?void 0:L.icon,Y.icon),Ce=Object.assign(Object.assign({},(null==E?void 0:E.icon)||{}),K.icon||{}),Pe=A&&!ie?r.createElement(w,{prefixCls:Q,className:Se,style:Ce},A):d&&"object"==typeof d&&d.icon?r.createElement(w,{prefixCls:Q,className:Se,style:Ce},d.icon):r.createElement(S,{existIcon:!!A,prefixCls:Q,loading:ie,mount:de.current}),Te=j||0===j?(0,y.hU)(j,pe&&X):null;if(void 0!==we.href)return J(r.createElement("a",Object.assign({},we,{className:o()(xe,{[`${Q}-disabled`]:re}),href:re?void 0:we.href,style:Ee,onClick:he,ref:fe,tabIndex:re?-1:0}),Pe,Te));let Ie=r.createElement("button",Object.assign({},$,{type:R,className:xe,style:Ee,onClick:he,disabled:re,ref:fe}),Pe,Te,me&&r.createElement(Oe,{prefixCls:Q}));return(0,y.Dn)(q)||(Ie=r.createElement(c.Z,{component:"Button",disabled:ie},Ie)),J(Ie)}));Te.Group=m,Te.__ANT_BUTTON=!0;var Ie=Te},2171:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(59301);const a=r.createContext(!1),o=e=>{let{children:t,disabled:n}=e;const o=r.useContext(a);return r.createElement(a.Provider,{value:null!=n?n:o},t)};t.Z=a},23069:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(59301);const a=r.createContext(void 0),o=e=>{let{children:t,size:n}=e;const o=r.useContext(a);return r.createElement(a.Provider,{value:n||o},t)};t.Z=a},11774:function(e,t,n){"use strict";n.d(t,{x:function(){return w}});n(59301);var r,a=n(4676),o=n.t(a,2),i=n(70539),u=n(95764),c=n(93664),s=(0,n(20439).Z)({},o),l=s.version,f=s.render,p=s.unmountComponentAtNode;try{Number((l||"").split(".")[0])>=18&&(r=s.createRoot)}catch(e){}function d(e){var t=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,c.Z)(t)&&(t.usingClientEntryPoint=e)}var h="__rc_react_root__";function v(e,t){r?function(e,t){d(!0);var n=t[h]||r(t);d(!1),n.render(e),t[h]=n}(e,t):function(e,t){null==f||f(e,t)}(e,t)}function m(e){return y.apply(this,arguments)}function y(){return(y=(0,u.Z)((0,i.Z)().mark((function e(t){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[h])||void 0===e||e.unmount(),delete t[h]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){p(e)}function b(){return(b=(0,u.Z)((0,i.Z)().mark((function e(t){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===r){e.next=2;break}return e.abrupt("return",m(t));case 2:g(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}let _=(e,t)=>(v(e,t),()=>function(e){return b.apply(this,arguments)}(t));function w(){return _}},48755:function(e,t,n){"use strict";n.d(t,{E_:function(){return u},Rf:function(){return a},dj:function(){return l},oR:function(){return o},tr:function(){return i}});var r=n(59301);const a="ant",o="anticon",i=["outlined","borderless","filled","underlined"],u=r.createContext({getPrefixCls:(e,t)=>t||(e?`${a}-${e}`:a),iconPrefixCls:o}),{Consumer:c}=u,s={};function l(e){const t=r.useContext(u),{getPrefixCls:n,direction:a,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:s,styles:s},i),{getPrefixCls:n,direction:a,getPopupContainer:o})}},83397:function(e,t,n){"use strict";var r=n(57700);t.Z=e=>{const[,,,,t]=(0,r.ZP)();return t?`${e}-css-var`:""}},31756:function(e,t,n){"use strict";var r=n(59301),a=n(23069);t.Z=e=>{const t=r.useContext(a.Z);return r.useMemo((()=>e?"string"==typeof e?null!=e?e:t:"function"==typeof e?e(t):t:t),[e,t])}},60840:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Y},w6:function(){return W}});var r=n(59301),a=n.t(r,2),o=n(66604),i=n(18418),u=n(80547),c=n(24434),s=n(32383),l=n(98350),f=n(25012),p=n(22200);var d=e=>{const{locale:t={},children:n,_ANT_MARK__:a}=e;r.useEffect((()=>(0,f.f)(null==t?void 0:t.Modal)),[t]);const o=r.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return r.createElement(p.Z.Provider,{value:o},n)},h=n(85981),v=n(42146),m=n(29796),y=n(90820),g=n(48755),b=n(68361),_=n(17835),w=n(47273),x=n(810);const k=`-ant-${Date.now()}-${Math.random()}`;function E(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},a=(e,t)=>{const a=new _.t(e),o=(0,b.R_)(a.toRgbString());n[`${t}-color`]=r(a),n[`${t}-color-disabled`]=o[1],n[`${t}-color-hover`]=o[4],n[`${t}-color-active`]=o[6],n[`${t}-color-outline`]=a.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=o[0],n[`${t}-color-deprecated-border`]=o[2]};if(t.primaryColor){a(t.primaryColor,"primary");const e=new _.t(t.primaryColor),o=(0,b.R_)(e.toRgbString());o.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setA(.12*e.a)));const i=new _.t(o[0]);n["primary-color-active-deprecated-f-30"]=r(i,(e=>e.setA(.3*e.a))),n["primary-color-active-deprecated-d-02"]=r(i,(e=>e.darken(2)))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);(0,w.Z)()&&(0,x.hq)(n,`${k}-dynamic-theme`)}var S=n(2171),C=n(23069);var P=function(){return{componentDisabled:(0,r.useContext)(S.Z),componentSize:(0,r.useContext)(C.Z)}},O=n(13697);const j=Object.assign({},a),{useId:A}=j;var T=void 0===A?()=>"":A;var I=n(77900),M=n(57700);function R(e){const{children:t}=e,[,n]=(0,M.ZP)(),{motion:a}=n,o=r.useRef(!1);return o.current=o.current||!1===a,o.current?r.createElement(I.zt,{motion:a},t):t}var L=()=>null,Z=n(63356);var D=(e,t)=>{const[n,r]=(0,M.ZP)();return(0,o.xy)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[(0,Z.JT)(e)]))},N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a({getPrefixCls:(e,t)=>t||(e?`${H()}-${e}`:H()),getIconPrefixCls:U,getRootPrefixCls:()=>F||H(),getTheme:()=>q,holderRender:z}),V=e=>{const{children:t,csp:n,autoInsertSpaceInButton:a,alert:f,anchor:p,form:b,locale:_,componentSize:w,direction:x,space:k,splitter:E,virtual:P,dropdownMatchSelectWidth:j,popupMatchSelectWidth:A,popupOverflow:I,legacyLocale:M,parentContext:Z,iconPrefixCls:F,theme:B,componentDisabled:q,segmented:z,statistic:H,spin:U,calendar:W,carousel:V,cascader:G,collapse:Y,typography:K,checkbox:X,descriptions:Q,divider:J,drawer:ee,skeleton:te,steps:ne,image:re,layout:ae,list:oe,mentions:ie,modal:ue,progress:ce,result:se,slider:le,breadcrumb:fe,menu:pe,pagination:de,input:he,textArea:ve,empty:me,badge:ye,radio:ge,rate:be,switch:_e,transfer:we,avatar:xe,message:ke,tag:Ee,table:Se,card:Ce,tabs:Pe,timeline:Oe,timePicker:je,upload:Ae,notification:Te,tree:Ie,colorPicker:Me,datePicker:Re,rangePicker:Le,flex:Ze,wave:De,dropdown:Ne,warning:$e,tour:Fe,tooltip:Be,popover:qe,popconfirm:ze,floatButtonGroup:He,variant:Ue,inputNumber:We,treeSelect:Ve}=e,Ge=r.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const a=r||Z.getPrefixCls("");return t?`${a}-${t}`:a}),[Z.getPrefixCls,e.prefixCls]),Ye=F||Z.iconPrefixCls||g.oR,Ke=n||Z.csp;D(Ye,Ke);const Xe=function(e,t,n){var r;(0,s.ln)("ConfigProvider");const a=e||{},o=!1!==a.inherit&&t?t:Object.assign(Object.assign({},m.u_),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:m.u_.hashed,cssVar:null==t?void 0:t.cssVar}),i=T();return(0,u.Z)((()=>{var r,u;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach((t=>{c[t]=Object.assign(Object.assign({},c[t]),e.components[t])}));const s=`css-var-${i.replace(/:/g,"")}`,l=(null!==(r=a.cssVar)&&void 0!==r?r:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof o.cssVar?o.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(u=a.cssVar)||void 0===u?void 0:u.key)||s});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:c,cssVar:l})}),[a,o],((e,t)=>e.some(((e,n)=>{const r=t[n];return!(0,O.Z)(e,r,!0)}))))}(B,Z.theme,{prefixCls:Ge("")});const Qe={csp:Ke,autoInsertSpaceInButton:a,alert:f,anchor:p,locale:_||M,direction:x,space:k,splitter:E,virtual:P,popupMatchSelectWidth:null!=A?A:j,popupOverflow:I,getPrefixCls:Ge,iconPrefixCls:Ye,theme:Xe,segmented:z,statistic:H,spin:U,calendar:W,carousel:V,cascader:G,collapse:Y,typography:K,checkbox:X,descriptions:Q,divider:J,drawer:ee,skeleton:te,steps:ne,image:re,input:he,textArea:ve,layout:ae,list:oe,mentions:ie,modal:ue,progress:ce,result:se,slider:le,breadcrumb:fe,menu:pe,pagination:de,empty:me,badge:ye,radio:ge,rate:be,switch:_e,transfer:we,avatar:xe,message:ke,tag:Ee,table:Se,card:Ce,tabs:Pe,timeline:Oe,timePicker:je,upload:Ae,notification:Te,tree:Ie,colorPicker:Me,datePicker:Re,rangePicker:Le,flex:Ze,wave:De,dropdown:Ne,warning:$e,tour:Fe,tooltip:Be,popover:qe,popconfirm:ze,floatButtonGroup:He,variant:Ue,inputNumber:We,treeSelect:Ve};const Je=Object.assign({},Z);Object.keys(Qe).forEach((e=>{void 0!==Qe[e]&&(Je[e]=Qe[e])})),$.forEach((t=>{const n=e[t];n&&(Je[t]=n)})),void 0!==a&&(Je.button=Object.assign({autoInsertSpace:a},Je.button));const et=(0,u.Z)((()=>Je),Je,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),{layer:tt}=r.useContext(o.uP),nt=r.useMemo((()=>({prefixCls:Ye,csp:Ke,layer:tt?"antd":void 0})),[Ye,Ke,tt]);let rt=r.createElement(r.Fragment,null,r.createElement(L,{dropdownMatchSelectWidth:j}),t);const at=r.useMemo((()=>{var e,t,n,r;return(0,c.T)((null===(e=h.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=et.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=et.form)||void 0===r?void 0:r.validateMessages)||{},(null==b?void 0:b.validateMessages)||{})}),[et,null==b?void 0:b.validateMessages]);Object.keys(at).length>0&&(rt=r.createElement(l.Z.Provider,{value:at},rt)),_&&(rt=r.createElement(d,{locale:_,_ANT_MARK__:"internalMark"},rt)),(Ye||Ke)&&(rt=r.createElement(i.Z.Provider,{value:nt},rt)),w&&(rt=r.createElement(C.q,{size:w},rt)),rt=r.createElement(R,null,rt);const ot=r.useMemo((()=>{const e=Xe||{},{algorithm:t,token:n,components:r,cssVar:a}=e,i=N(e,["algorithm","token","components","cssVar"]),u=t&&(!Array.isArray(t)||t.length>0)?(0,o.jG)(t):v.Z,c={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=u:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=(0,o.jG)(r.algorithm)),delete r.algorithm),c[t]=r}));const s=Object.assign(Object.assign({},y.Z),n);return Object.assign(Object.assign({},i),{theme:u,token:s,components:c,override:Object.assign({override:s},c),cssVar:a})}),[Xe]);return B&&(rt=r.createElement(m.Mj.Provider,{value:ot},rt)),et.warning&&(rt=r.createElement(s.G8.Provider,{value:et.warning},rt)),void 0!==q&&(rt=r.createElement(S.n,{disabled:q},rt)),r.createElement(g.E_.Provider,{value:et},rt)},G=e=>{const t=r.useContext(g.E_),n=r.useContext(p.Z);return r.createElement(V,Object.assign({parentContext:t,legacyLocale:n},e))};G.ConfigContext=g.E_,G.SizeContext=C.Z,G.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;void 0!==t&&(F=t),void 0!==n&&(B=n),"holderRender"in e&&(z=a),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?q=r:E(H(),r))},G.useConfig=P,Object.defineProperty(G,"SizeContext",{get:()=>C.Z});var Y=G},57428:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(20439),a=n(75319),o=(0,r.Z)((0,r.Z)({},a.z),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"}),i=n(303);var u={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"]},o),timePickerLocale:Object.assign({},i.Z)}},56553:function(e,t,n){"use strict";n.d(t,{RV:function(){return c},Rk:function(){return s},Ux:function(){return f},aM:function(){return l},pg:function(){return p},q3:function(){return i},qI:function(){return u}});var r=n(59301),a=n(74034),o=n(2738);const i=r.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),u=r.createContext(null),c=e=>{const t=(0,o.Z)(e,["prefixCls"]);return r.createElement(a.RV,Object.assign({},t))},s=r.createContext({prefixCls:""}),l=r.createContext({});const f=e=>{let{children:t,status:n,override:a}=e;const o=r.useContext(l),i=r.useMemo((()=>{const e=Object.assign({},o);return a&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,a,o]);return r.createElement(l.Provider,{value:i},t)},p=r.createContext(void 0)},98350:function(e,t,n){"use strict";var r=n(59301);t.Z=(0,r.createContext)(void 0)},26705:function(e,t,n){"use strict";n.d(t,{VM:function(){return c},cG:function(){return l},hd:function(){return s}});var r=n(66604),a=n(16931),o=n(51636);const i=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},u=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let e=a;e>=0;e--)0===e?(o[`${r}${t}-${e}`]={display:"none"},o[`${r}-push-${e}`]={insetInlineStart:"auto"},o[`${r}-pull-${e}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${e}`]={marginInlineStart:0},o[`${r}${t}-order-${e}`]={order:0}):(o[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/a*100}%`,maxWidth:e/a*100+"%"}],o[`${r}${t}-push-${e}`]={insetInlineStart:e/a*100+"%"},o[`${r}${t}-pull-${e}`]={insetInlineEnd:e/a*100+"%"},o[`${r}${t}-offset-${e}`]={marginInlineStart:e/a*100+"%"},o[`${r}${t}-order-${e}`]={order:e});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o})(e,t),c=(0,a.I$)("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),s=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),l=(0,a.I$)("Grid",(e=>{const t=(0,o.IX)(e,{gridColumns:24}),n=s(t);return delete n.xs,[i(t),u(t,""),u(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${(0,r.bf)(t)})`]:Object.assign({},u(e,n))}))(t,n[e],`-${e}`))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})))},22200:function(e,t,n){"use strict";const r=(0,n(59301).createContext)(void 0);t.Z=r},85981:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(61852),a=n(57428),o=a.Z,i=n(303);const u="${label} is not a valid ${type}";var c={locale:"en",Pagination:r.Z,DatePicker:a.Z,TimePicker:i.Z,Calendar:o,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:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},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",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}}},9017:function(e,t,n){"use strict";var r=n(59301),a=n(22200),o=n(85981);t.Z=(e,t)=>{const n=r.useContext(a.Z);return[r.useMemo((()=>{var r;const a=t||o.Z[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof a?a():a),i||{})}),[e,t,n]),r.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?o.Z.locale:e}),[n])]}},27813:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(17119),a=n(20439),o=n(75319),i=(0,a.Z)((0,a.Z)({},o.z),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});var u={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};const c={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},i),timePickerLocale:Object.assign({},u)};c.lang.ok="确定";var s=c,l=s;const f="${label}不是一个有效的${type}";var p={locale:"zh-cn",Pagination:r.Z,DatePicker:s,TimePicker:u,Calendar:l,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:f,method:f,array:f,object:f,number:f,date:f,boolean:f,integer:f,float:f,regexp:f,email:f,url:f,hex:f},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}}},6767:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Y}});var r=n(95190),a=n(59301),o=n(17004),i=n(48755),u=n(60840),c=n(11774),s=n(29679),l=n(19248),f=n(96512),p=n(78987),d=n(58617),h=n(92310),v=n.n(h),m=n(40271),y=n(83397),g=n(66604),b=n(75030),_=n(63356),w=n(16931),x=n(51636);const k=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:o,colorError:i,colorWarning:u,colorInfo:c,fontSizeLG:s,motionEaseInOutCirc:l,motionDurationSlow:f,marginXS:p,paddingXS:d,borderRadiusLG:h,zIndexPopup:v,contentPadding:m,contentBg:y}=e,b=`${t}-notice`,w=new g.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:d,transform:"translateY(0)",opacity:1}}),x=new g.E4("MessageMoveOut",{"0%":{maxHeight:e.height,padding:d,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),k={padding:d,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:s},[`${b}-content`]:{display:"inline-block",padding:m,background:y,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:u},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},(0,_.Wf)(e)),{color:a,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:v,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:l},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:l},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},k)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},k),{padding:0,textAlign:"start"})}]};var E=(0,w.I$)("Message",(e=>{const t=(0,x.IX)(e,{height:150});return[k(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+b.u6+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}))),S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{let{prefixCls:t,type:n,icon:r,children:o}=e;return a.createElement("div",{className:v()(`${t}-custom-content`,`${t}-${n}`)},r||C[n],a.createElement("span",null,o))};var O=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:u}=e,c=S(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=a.useContext(i.E_),l=t||s("message"),f=(0,y.Z)(l),[p,d,h]=E(l,f);return p(a.createElement(m.qX,Object.assign({},c,{prefixCls:l,className:v()(n,d,`${l}-notice-pure-panel`,h,f),eventKey:"pure",duration:null,content:a.createElement(P,{prefixCls:l,type:r,icon:o},u)})))},j=n(99267),A=n(32383);function T(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{let{children:t,prefixCls:n}=e;const r=(0,y.Z)(n),[o,i,u]=E(n,r);return o(a.createElement(m.JB,{classNames:{list:v()(i,u,r)}},t))},L=(e,t)=>{let{prefixCls:n,key:r}=t;return a.createElement(R,{prefixCls:n,key:r},e)},Z=a.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:u,duration:c=M,rtl:s,transitionName:l,onAllRemoved:f}=e,{getPrefixCls:p,getPopupContainer:d,message:h,direction:y}=a.useContext(i.E_),g=r||p("message"),b=a.createElement("span",{className:`${g}-close-x`},a.createElement(j.Z,{className:`${g}-close-icon`})),[_,w]=(0,m.lm)({prefixCls:g,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>v()({[`${g}-rtl`]:null!=s?s:"rtl"===y}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(g,l),closable:!1,closeIcon:b,duration:c,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:u,onAllRemoved:f,renderNotifications:L});return a.useImperativeHandle(t,(()=>Object.assign(Object.assign({},_),{prefixCls:g,message:h}))),w}));let D=0;function N(e){const t=a.useRef(null),n=((0,A.ln)("Message"),a.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:r,prefixCls:o,message:i}=t.current,u=`${o}-notice`,{content:c,icon:s,type:l,key:f,className:p,style:d,onClose:h}=n,m=I(n,["content","icon","type","key","className","style","onClose"]);let y=f;return null==y&&(D+=1,y=`antd-message-${D}`),T((t=>(r(Object.assign(Object.assign({},m),{key:y,content:a.createElement(P,{prefixCls:o,type:l,icon:s},c),placement:"top",className:v()(l&&`${u}-${l}`,p,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),d),onClose:()=>{null==h||h(),t()}})),()=>{e(y)})))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{r[e]=(t,r,a)=>{let o,i,u;o=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?u=r:(i=r,u=a);const c=Object.assign(Object.assign({onClose:u,duration:i},o),{type:e});return n(c)}})),r}),[]));return[n,a.createElement(Z,Object.assign({key:"message-holder"},e,{ref:t}))]}let $=null,F=e=>e(),B=[],q={};function z(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=q,o=(null==e?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:a}}const H=a.forwardRef(((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:u}=(0,a.useContext)(i.E_),c=q.prefixCls||u("message"),s=(0,a.useContext)(o.J),[l,f]=N(Object.assign(Object.assign(Object.assign({},n),{prefixCls:c}),s.message));return a.useImperativeHandle(t,(()=>{const e=Object.assign({},l);return Object.keys(e).forEach((t=>{e[t]=function(){return r(),l[t].apply(l,arguments)}})),{instance:e,sync:r}})),f})),U=a.forwardRef(((e,t)=>{const[n,r]=a.useState(z),o=()=>{r(z)};a.useEffect(o,[]);const i=(0,u.w6)(),c=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),f=a.createElement(H,{ref:t,sync:o,messageConfig:n});return a.createElement(u.ZP,{prefixCls:c,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(f):f)}));function W(){if(!$){const e=document.createDocumentFragment(),t={fragment:e};return $=t,void F((()=>{(0,c.x)()(a.createElement(U,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,W())}))}}),e)}))}$.instance&&(B.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":F((()=>{const t=$.instance.open(Object.assign(Object.assign({},q),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":F((()=>{null==$||$.instance.destroy(e.key)}));break;default:F((()=>{var n;const a=(n=$.instance)[t].apply(n,(0,r.Z)(e.args));null==a||a.then(e.resolve),e.setCloseFn(a)}))}})),B=[])}function V(e,t){(0,u.w6)();const n=T((n=>{let r;const a={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return B.push(a),()=>{r?F((()=>{r()})):a.skipped=!0}}));return W(),n}const G={open:function(e){const t=T((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return B.push(r),()=>{n?F((()=>{n()})):r.skipped=!0}}));return W(),t},destroy:e=>{B.push({type:"destroy",key:e}),W()},config:function(e){q=Object.assign(Object.assign({},q),e),F((()=>{var e;null===(e=null==$?void 0:$.sync)||void 0===e||e.call($)}))},useMessage:function(e){return N(e)},_InternalPanelDoNotUseOrYouWillBeFired:O};["success","info","warning","error","loading"].forEach((e=>{G[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:u,emitEvent:c,isSilent:s,quitOnNullishReturnValue:l,actionFn:f}=e,p=a.useRef(!1),d=a.useRef(null),[h,v]=(0,g.Z)(!1),m=function(){null==i||i.apply(void 0,arguments)};a.useEffect((()=>{let e=null;return u&&(e=setTimeout((()=>{var e;null===(e=d.current)||void 0===e||e.focus({preventScroll:!0})}))),()=>{e&&clearTimeout(e)}}),[]);return a.createElement(b.ZP,Object.assign({},(0,_.nx)(t),{onClick:e=>{if(p.current)return;if(p.current=!0,!f)return void m();let t;if(c){if(t=f(e),l&&!w(t))return p.current=!1,void m(e)}else if(f.length)t=f(i),p.current=!1;else if(t=f(),!w(t))return void m();(e=>{w(e)&&(v(!0),e.then((function(){v(!1,!0),m.apply(void 0,arguments),p.current=!1}),(e=>{if(v(!1,!0),p.current=!1,!(null==s?void 0:s()))return Promise.reject(e)})))})(t)},loading:h,prefixCls:r},o,{ref:d}),n)};const k=a.createContext({}),{Provider:E}=k;var S=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:u,onCancel:c,onConfirm:s}=(0,a.useContext)(k);return o?a.createElement(x,{isSilent:r,actionFn:c,close:function(){null==u||u.apply(void 0,arguments),null==s||s(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},n):null};var C=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:u,onConfirm:c,onOk:s}=(0,a.useContext)(k);return a.createElement(x,{isSilent:n,type:u||"primary",actionFn:s,close:function(){null==t||t.apply(void 0,arguments),null==c||c(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${o}-btn`},i)},P=n(99267),O=n(14809),j=n(50298),A=n(43403),T=a.createContext({}),I=n(20439),M=n(48519),R=n(80402),L=n(10228),Z=n(26112);function D(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function N(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var a=e.document;"number"!=typeof(n=a.documentElement[r])&&(n=a.body[r])}return n}var $=n(77900),F=n(93664),B=n(8654),q=a.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),z={width:0,height:0,overflow:"hidden",outline:"none"},H={outline:"none"},U=a.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,u=e.ariaId,c=e.footer,s=e.closable,l=e.closeIcon,f=e.onClose,p=e.children,h=e.bodyStyle,v=e.bodyProps,m=e.modalRender,y=e.onMouseDown,g=e.onMouseUp,b=e.holderRef,_=e.visible,w=e.forceRender,x=e.width,k=e.height,E=e.classNames,S=e.styles,C=a.useContext(T).panel,P=(0,B.x1)(b,C),j=(0,a.useRef)(),A=(0,a.useRef)();a.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=j.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===A.current?j.current.focus({preventScroll:!0}):e||t!==j.current||A.current.focus({preventScroll:!0})}}}));var M={};void 0!==x&&(M.width=x),void 0!==k&&(M.height=k);var R=c?a.createElement("div",{className:d()("".concat(n,"-footer"),null==E?void 0:E.footer),style:(0,I.Z)({},null==S?void 0:S.footer)},c):null,L=i?a.createElement("div",{className:d()("".concat(n,"-header"),null==E?void 0:E.header),style:(0,I.Z)({},null==S?void 0:S.header)},a.createElement("div",{className:"".concat(n,"-title"),id:u},i)):null,D=(0,a.useMemo)((function(){return"object"===(0,F.Z)(s)&&null!==s?s:s?{closeIcon:null!=l?l:a.createElement("span",{className:"".concat(n,"-close-x")})}:{}}),[s,l,n]),N=(0,Z.Z)(D,!0),$="object"===(0,F.Z)(s)&&s.disabled,U=s?a.createElement("button",(0,O.Z)({type:"button",onClick:f,"aria-label":"Close"},N,{className:"".concat(n,"-close"),disabled:$}),D.closeIcon):null,W=a.createElement("div",{className:d()("".concat(n,"-content"),null==E?void 0:E.content),style:null==S?void 0:S.content},U,L,a.createElement("div",(0,O.Z)({className:d()("".concat(n,"-body"),null==E?void 0:E.body),style:(0,I.Z)((0,I.Z)({},h),null==S?void 0:S.body)},v),p),R);return a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?u:null,"aria-modal":"true",ref:P,style:(0,I.Z)((0,I.Z)({},o),M),className:d()(n,r),onMouseDown:y,onMouseUp:g},a.createElement("div",{ref:j,tabIndex:0,style:H},a.createElement(q,{shouldUpdate:_||w},m?m(W):W)),a.createElement("div",{tabIndex:0,ref:A,style:z}))}));var W=U,V=a.forwardRef((function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,u=e.visible,c=e.forceRender,s=e.destroyOnClose,l=e.motionName,f=e.ariaId,p=e.onVisibleChanged,h=e.mousePosition,v=(0,a.useRef)(),m=a.useState(),y=(0,j.Z)(m,2),g=y[0],b=y[1],_={};function w(){var e,t,n,r,a,o=(e=v.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow,n.left+=N(a),n.top+=N(a,!0),n);b(h&&(h.x||h.y)?"".concat(h.x-o.left,"px ").concat(h.y-o.top,"px"):"")}return g&&(_.transformOrigin=g),a.createElement($.ZP,{visible:u,onVisibleChanged:p,onAppearPrepare:w,onEnterPrepare:w,forceRender:c,motionName:l,removeOnLeave:s,ref:v},(function(u,c){var s=u.className,l=u.style;return a.createElement(W,(0,O.Z)({},e,{ref:t,title:r,ariaId:f,prefixCls:n,holderRef:c,style:(0,I.Z)((0,I.Z)((0,I.Z)({},l),o),_),className:d()(i,s)}))}))}));V.displayName="Content";var G=V,Y=function(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,u=e.className;return a.createElement($.ZP,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,r){var i=e.className,c=e.style;return a.createElement("div",(0,O.Z)({ref:r,style:(0,I.Z)((0,I.Z)({},c),n),className:d()("".concat(t,"-mask"),i,u)},o))}))},K=(n(48736),function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,i=void 0!==o&&o,u=e.keyboard,c=void 0===u||u,s=e.focusTriggerAfterClose,l=void 0===s||s,f=e.wrapStyle,p=e.wrapClassName,h=e.wrapProps,v=e.onClose,m=e.afterOpenChange,y=e.afterClose,g=e.transitionName,b=e.animation,_=e.closable,w=void 0===_||_,x=e.mask,k=void 0===x||x,E=e.maskTransitionName,S=e.maskAnimation,C=e.maskClosable,P=void 0===C||C,A=e.maskStyle,T=e.maskProps,N=e.rootClassName,$=e.classNames,F=e.styles;var B=(0,a.useRef)(),q=(0,a.useRef)(),z=(0,a.useRef)(),H=a.useState(i),U=(0,j.Z)(H,2),W=U[0],V=U[1],K=(0,R.Z)();function X(e){null==v||v(e)}var Q=(0,a.useRef)(!1),J=(0,a.useRef)(),ee=null;P&&(ee=function(e){Q.current?Q.current=!1:q.current===e.target&&X(e)}),(0,a.useEffect)((function(){i&&(V(!0),(0,M.Z)(q.current,document.activeElement)||(B.current=document.activeElement))}),[i]),(0,a.useEffect)((function(){return function(){clearTimeout(J.current)}}),[]);var te=(0,I.Z)((0,I.Z)((0,I.Z)({zIndex:r},f),null==F?void 0:F.wrapper),{},{display:W?null:"none"});return a.createElement("div",(0,O.Z)({className:d()("".concat(n,"-root"),N)},(0,Z.Z)(e,{data:!0})),a.createElement(Y,{prefixCls:n,visible:k&&i,motionName:D(n,E,S),style:(0,I.Z)((0,I.Z)({zIndex:r},A),null==F?void 0:F.mask),maskProps:T,className:null==$?void 0:$.mask}),a.createElement("div",(0,O.Z)({tabIndex:-1,onKeyDown:function(e){if(c&&e.keyCode===L.Z.ESC)return e.stopPropagation(),void X(e);i&&e.keyCode===L.Z.TAB&&z.current.changeActive(!e.shiftKey)},className:d()("".concat(n,"-wrap"),p,null==$?void 0:$.wrapper),ref:q,onClick:ee,style:te},h),a.createElement(G,(0,O.Z)({},e,{onMouseDown:function(){clearTimeout(J.current),Q.current=!0},onMouseUp:function(){J.current=setTimeout((function(){Q.current=!1}))},ref:z,closable:w,ariaId:K,prefixCls:n,visible:i&&W,onClose:X,onVisibleChanged:function(e){if(e)(0,M.Z)(q.current,document.activeElement)||null===(t=z.current)||void 0===t||t.focus();else{if(V(!1),k&&B.current&&l){try{B.current.focus({preventScroll:!0})}catch(e){}B.current=null}W&&(null==y||y())}var t;null==m||m(e)},motionName:D(n,g,b)}))))}),X=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,u=e.afterClose,c=e.panelRef,s=a.useState(t),l=(0,j.Z)(s,2),f=l[0],p=l[1],d=a.useMemo((function(){return{panel:c}}),[c]);return a.useEffect((function(){t&&p(!0)}),[t]),r||!i||f?a.createElement(T.Provider,{value:d},a.createElement(A.Z,{open:t||r||f,autoDestroy:!1,getContainer:n,autoLock:t||f},a.createElement(K,(0,O.Z)({},e,{destroyOnClose:i,afterClose:function(){null==u||u(),p(!1)}})))):null};X.displayName="Dialog";var Q=X,J=n(62487),ee=n(78776),te=n(47273);var ne=n(55743),re=n(83397),ae=n(458),oe=n(91190),ie=n(2171);var ue=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,a.useContext)(k);return a.createElement(b.ZP,Object.assign({onClick:n},e),t)};var ce=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=(0,a.useContext)(k);return a.createElement(b.ZP,Object.assign({},(0,_.nx)(n),{loading:e,onClick:o},t),r)},se=n(25012);function le(e,t){return a.createElement("span",{className:`${e}-close-x`},t||a.createElement(P.Z,{className:`${e}-close-icon`}))}const fe=e=>{const{okText:t,okType:n="primary",cancelText:o,confirmLoading:i,onOk:u,onCancel:c,okButtonProps:s,cancelButtonProps:l,footer:f}=e,[p]=(0,m.Z)("Modal",(0,se.A)()),d={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:t||(null==p?void 0:p.okText),cancelTextLocale:o||(null==p?void 0:p.cancelText),okType:n,onOk:u,onCancel:c},h=a.useMemo((()=>d),(0,r.Z)(Object.values(d)));let v;return"function"==typeof f||void 0===f?(v=a.createElement(a.Fragment,null,a.createElement(ue,null),a.createElement(ce,null)),"function"==typeof f&&(v=f(v,{OkBtn:ce,CancelBtn:ue})),v=a.createElement(E,{value:h},v)):v=f,a.createElement(ie.n,{disabled:!1},v)};var pe=n(66604),de=n(26705),he=n(63356),ve=n(99495),me=n(34925),ye=n(51636),ge=n(16931);function be(e){return{position:e,inset:0}}const _e=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},be("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},be("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:(0,ve.J$)(e)}]},we=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,pe.bf)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,he.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,pe.bf)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:(0,pe.bf)(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},(0,he.Qy)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,pe.bf)(e.borderRadiusLG)} ${(0,pe.bf)(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${(0,pe.bf)(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},xe=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},ke=e=>{const{componentCls:t}=e,n=(0,de.hd)(e);delete n.xs;const a=Object.keys(n).map((e=>({[`@media (min-width: ${(0,pe.bf)(n[e])})`]:{width:`var(--${t.replace(".","")}-${e}-width)`}})));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat((0,r.Z)(a))}}},Ee=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,ye.IX)(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Se=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${(0,pe.bf)(e.paddingMD)} ${(0,pe.bf)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,pe.bf)(e.padding)} ${(0,pe.bf)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,pe.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,pe.bf)(e.paddingXS)} ${(0,pe.bf)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,pe.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,pe.bf)(e.borderRadiusLG)} ${(0,pe.bf)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,pe.bf)(2*e.padding)} ${(0,pe.bf)(2*e.padding)} ${(0,pe.bf)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var Ce=(0,ge.I$)("Modal",(e=>{const t=Ee(e);return[we(t),xe(t),_e(t),(0,me._y)(t,"zoom"),ke(t)]}),Se,{unitless:{titleLineHeight:!0}}),Pe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{Oe={x:e.pageX,y:e.pageY},setTimeout((()=>{Oe=null}),100)};(0,te.Z)()&&window.document.documentElement&&document.documentElement.addEventListener("click",je,!0);var Ae=e=>{const{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:u,centered:c,getContainer:s,focusTriggerAfterClose:l=!0,style:f,visible:p,width:m=520,footer:y,classNames:g,styles:b,children:_,loading:w,confirmLoading:x,zIndex:k,mousePosition:E,onOk:S,onCancel:C}=e,O=Pe(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel"]),{getPopupContainer:j,getPrefixCls:A,direction:T,modal:I}=a.useContext(o.E_),M=e=>{x||null==C||C(e)};const R=A("modal",t),L=A(),Z=(0,re.Z)(R),[D,N,$]=Ce(R,Z),F=d()(u,{[`${R}-centered`]:null!=c?c:null==I?void 0:I.centered,[`${R}-wrap-rtl`]:"rtl"===T}),B=null===y||w?null:a.createElement(fe,Object.assign({},e,{onOk:e=>{null==S||S(e)},onCancel:M})),[q,z,H]=(0,ee.Z)((0,ee.w)(e),(0,ee.w)(I),{closable:!0,closeIcon:a.createElement(P.Z,{className:`${R}-close-icon`}),closeIconRender:e=>le(R,e)}),U=(0,oe.H)(`.${R}-content`),[W,V]=(0,h.Cn)("Modal",k),[G,Y]=a.useMemo((()=>m&&"object"==typeof m?[void 0,m]:[m,void 0]),[m]),K=a.useMemo((()=>{const e={};return Y&&Object.keys(Y).forEach((t=>{const n=Y[t];void 0!==n&&(e[`--${R}-${t}-width`]="number"==typeof n?`${n}px`:n)})),e}),[Y]);return D(a.createElement(J.Z,{form:!0,space:!0},a.createElement(ne.Z.Provider,{value:V},a.createElement(Q,Object.assign({width:G},O,{zIndex:W,getContainer:void 0===s?j:s,prefixCls:R,rootClassName:d()(N,r,$,Z),footer:B,visible:null!=i?i:p,mousePosition:null!=E?E:Oe,onClose:M,closable:q?{disabled:H,closeIcon:z}:q,closeIcon:z,focusTriggerAfterClose:l,transitionName:(0,v.m)(L,"zoom",e.transitionName),maskTransitionName:(0,v.m)(L,"fade",e.maskTransitionName),className:d()(N,n,null==I?void 0:I.className),style:Object.assign(Object.assign(Object.assign({},null==I?void 0:I.style),f),K),classNames:Object.assign(Object.assign(Object.assign({},null==I?void 0:I.classNames),g),{wrapper:d()(F,null==g?void 0:g.wrapper)}),styles:Object.assign(Object.assign({},null==I?void 0:I.styles),b),panelRef:U}),w?a.createElement(ae.Z,{active:!0,title:!1,paragraph:{rows:4},className:`${R}-body-skeleton`}):_))))};const Te=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:o,lineHeight:i,modalTitleHeight:u,fontHeight:c,confirmBodyPadding:s}=e,l=`${t}-confirm`;return{[l]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${l}-body-wrapper`]:Object.assign({},(0,he.dF)()),[`&${t} ${t}-body`]:{padding:s},[`${l}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(u).sub(a).equal()).div(2).equal()}},[`${l}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${(0,pe.bf)(e.marginSM)})`},[`${e.iconCls} + ${l}-paragraph`]:{maxWidth:`calc(100% - ${(0,pe.bf)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${l}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${l}-content`]:{color:e.colorText,fontSize:o,lineHeight:i},[`${l}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${l}-error ${l}-body > ${e.iconCls}`]:{color:e.colorError},[`${l}-warning ${l}-body > ${e.iconCls},\n ${l}-confirm ${l}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${l}-info ${l}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${l}-success ${l}-body > ${e.iconCls}`]:{color:e.colorSuccess}}};var Ie=(0,ge.bk)(["Modal","confirm"],(e=>{const t=Ee(e);return[Te(t)]}),Se,{order:-1e3}),Me=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);aj),(0,r.Z)(Object.values(j))),T=a.createElement(a.Fragment,null,a.createElement(S,null),a.createElement(C,null)),I=void 0!==e.title&&null!==e.title,M=`${u}-body`;return a.createElement("div",{className:`${u}-body-wrapper`},a.createElement("div",{className:d()(M,{[`${M}-has-title`]:I})},b,a.createElement("div",{className:`${u}-paragraph`},I&&a.createElement("span",{className:`${u}-title`},e.title),a.createElement("div",{className:`${u}-content`},e.content))),void 0===v||"function"==typeof v?a.createElement(E,{value:A},a.createElement("div",{className:`${u}-btns`},"function"==typeof v?v(T,{OkBtn:C,CancelBtn:S}):T)):v,a.createElement(Ie,{prefixCls:t}))}const Le=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:u,rootPrefixCls:c,bodyStyle:s,closable:l=!1,onConfirm:f,styles:p}=e;const m=`${i}-confirm`,g=e.width||416,b=e.style||{},_=void 0===e.mask||e.mask,w=void 0!==e.maskClosable&&e.maskClosable,x=d()(m,`${m}-${e.type}`,{[`${m}-rtl`]:"rtl"===o},e.className),[,k]=(0,y.ZP)(),E=a.useMemo((()=>void 0!==n?n:k.zIndexPopupBase+h.u6),[n,k]);return a.createElement(Ae,Object.assign({},e,{className:x,wrapClassName:d()({[`${m}-centered`]:!!e.centered},u),onCancel:()=>{null==t||t({triggerCancel:!0}),null==f||f(!1)},title:"",footer:null,transitionName:(0,v.m)(c||"","zoom",e.transitionName),maskTransitionName:(0,v.m)(c||"","fade",e.maskTransitionName),mask:_,maskClosable:w,style:b,styles:Object.assign({body:s,mask:r},p),width:g,zIndex:E,closable:l}),a.createElement(Re,Object.assign({},e,{confirmPrefixCls:m})))};var Ze=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return a.createElement(i.ZP,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},a.createElement(Le,Object.assign({},e)))};var De=[];let Ne="";function $e(){return Ne}const Fe=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:u}=e,c=(0,se.A)(),s=(0,a.useContext)(o.E_),l=$e()||s.getPrefixCls(),f=r||`${l}-modal`;let p=i;return!1===p&&(p=void 0),a.createElement(Ze,Object.assign({},e,{rootPrefixCls:l,prefixCls:f,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:null!=u?u:s.direction,locale:null!==(n=null===(t=s.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:c,getContainer:p}))};function Be(e){const t=(0,i.w6)();const n=document.createDocumentFragment();let o,c,s=Object.assign(Object.assign({},e),{close:p,open:!0});function l(){for(var t,n=arguments.length,a=new Array(n),o=0;onull==e?void 0:e.triggerCancel));var u;i&&(null===(t=e.onCancel)||void 0===t||(u=t).call.apply(u,[e,()=>{}].concat((0,r.Z)(a.slice(1)))));for(let e=0;e{const r=t.getPrefixCls(void 0,$e()),o=t.getIconPrefixCls(),s=t.getTheme(),l=a.createElement(Fe,Object.assign({},e)),f=(0,u.x)();c=f(a.createElement(i.ZP,{prefixCls:r,iconPrefixCls:o,theme:s},t.holderRender?t.holderRender(l):l),n)}))}function p(){for(var t=arguments.length,n=new Array(t),r=0;r{"function"==typeof e.afterClose&&e.afterClose(),l.apply(this,n)}}),s.visible&&delete s.visible,f(s)}return f(s),De.push(p),{destroy:p,update:function(e){s="function"==typeof e?e(s):Object.assign(Object.assign({},s),e),f(s)}}}function qe(e){return Object.assign(Object.assign({},e),{type:"warning"})}function ze(e){return Object.assign(Object.assign({},e),{type:"info"})}function He(e){return Object.assign(Object.assign({},e),{type:"success"})}function Ue(e){return Object.assign(Object.assign({},e),{type:"error"})}function We(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var Ve=n(45915),Ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:u,title:c,children:s,footer:l}=e,f=Ge(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=a.useContext(o.E_),h=p(),v=t||p("modal"),m=(0,re.Z)(h),[y,g,b]=Ce(v,m),_=`${v}-confirm`;let w={};return w=u?{closable:null!=i&&i,title:"",footer:"",children:a.createElement(Re,Object.assign({},e,{prefixCls:v,confirmPrefixCls:_,rootPrefixCls:h,content:s}))}:{closable:null==i||i,title:c,footer:null!==l&&a.createElement(fe,Object.assign({},e)),children:s},y(a.createElement(W,Object.assign({prefixCls:v,className:d()(g,`${v}-pure-panel`,u&&_,u&&`${_}-${u}`,n,b,m)},f,{closeIcon:le(v,r),closable:i},w)))}));var Ke=n(85981),Xe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{var n,{afterClose:i,config:u}=e,c=Xe(e,["afterClose","config"]);const[s,l]=a.useState(!0),[f,p]=a.useState(u),{direction:d,getPrefixCls:h}=a.useContext(o.E_),v=h("modal"),y=h(),g=function(){var e;l(!1);for(var t=arguments.length,n=new Array(t),a=0;anull==e?void 0:e.triggerCancel));var i;o&&(null===(e=f.onCancel)||void 0===e||(i=e).call.apply(i,[f,()=>{}].concat((0,r.Z)(n.slice(1)))))};a.useImperativeHandle(t,(()=>({destroy:g,update:e=>{p((t=>Object.assign(Object.assign({},t),e)))}})));const b=null!==(n=f.okCancel)&&void 0!==n?n:"confirm"===f.type,[_]=(0,m.Z)("Modal",Ke.Z.Modal);return a.createElement(Ze,Object.assign({prefixCls:v,rootPrefixCls:y},f,{close:g,open:s,afterClose:()=>{var e;i(),null===(e=f.afterClose)||void 0===e||e.call(f)},okText:f.okText||(b?null==_?void 0:_.okText:null==_?void 0:_.justOkText),direction:f.direction||d,cancelText:f.cancelText||(null==_?void 0:_.cancelText)},c))};var Je=a.forwardRef(Qe);let et=0;const tt=a.memo(a.forwardRef(((e,t)=>{const[n,o]=function(){const[e,t]=a.useState([]);return[e,a.useCallback((e=>(t((t=>[].concat((0,r.Z)(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return a.useImperativeHandle(t,(()=>({patchElement:o})),[]),a.createElement(a.Fragment,null,n)})));var nt=function(){const e=a.useRef(null),[t,n]=a.useState([]);a.useEffect((()=>{if(t.length){(0,r.Z)(t).forEach((e=>{e()})),n([])}}),[t]);const o=a.useCallback((t=>function(o){var i;et+=1;const u=a.createRef();let c;const s=new Promise((e=>{c=e}));let l,f=!1;const p=a.createElement(Je,{key:`modal-${et}`,config:t(o),ref:u,afterClose:()=>{null==l||l()},isSilent:()=>f,onConfirm:e=>{c(e)}});l=null===(i=e.current)||void 0===i?void 0:i.patchElement(p),l&&De.push(l);const d={destroy:()=>{function e(){var e;null===(e=u.current)||void 0===e||e.destroy()}u.current?e():n((t=>[].concat((0,r.Z)(t),[e])))},update:e=>{function t(){var t;null===(t=u.current)||void 0===t||t.update(e)}u.current?t():n((e=>[].concat((0,r.Z)(e),[t])))},then:e=>(f=!0,s.then(e))};return d}),[]);return[a.useMemo((()=>({info:o(ze),success:o(He),error:o(Ue),warning:o(qe),confirm:o(We)})),[]),a.createElement(tt,{key:"modal-holder",ref:e})]};function rt(e){return Be(qe(e))}const at=Ae;at.useModal=nt,at.info=function(e){return Be(ze(e))},at.success=function(e){return Be(He(e))},at.error=function(e){return Be(Ue(e))},at.warning=rt,at.warn=rt,at.confirm=function(e){return Be(We(e))},at.destroyAll=function(){for(;De.length;){const e=De.pop();e&&e()}},at.config=function(e){let{rootPrefixCls:t}=e;Ne=t},at._InternalPanelDoNotUseOrYouWillBeFired=Ye;var ot=at},25012:function(e,t,n){"use strict";n.d(t,{A:function(){return c},f:function(){return u}});var r=n(85981);let a=Object.assign({},r.Z.Modal),o=[];const i=()=>o.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),r.Z.Modal);function u(e){if(e){const t=Object.assign({},e);return o.push(t),a=i(),()=>{o=o.filter((e=>e!==t)),a=i()}}a=Object.assign({},r.Z.Modal)}function c(){return a}},458:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var r=n(59301),a=n(92310),o=n.n(a),i=n(48755),u=n(2738);var c=e=>{const{prefixCls:t,className:n,style:a,size:i,shape:u}=e,c=o()({[`${t}-lg`]:"large"===i,[`${t}-sm`]:"small"===i}),s=o()({[`${t}-circle`]:"circle"===u,[`${t}-square`]:"square"===u,[`${t}-round`]:"round"===u}),l=r.useMemo((()=>"number"==typeof i?{width:i,height:i,lineHeight:`${i}px`}:{}),[i]);return r.createElement("span",{className:o()(t,c,s,n),style:Object.assign(Object.assign({},l),a)})},s=n(66604),l=n(16931),f=n(51636);const p=new s.E4("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),d=e=>({height:e,lineHeight:(0,s.bf)(e)}),h=e=>Object.assign({width:e},d(e)),v=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:p,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),m=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},d(e)),y=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},h(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},h(a)),[`${t}${t}-sm`]:Object.assign({},h(o))}},g=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:u}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},m(t,u)),[`${r}-lg`]:Object.assign({},m(a,u)),[`${r}-sm`]:Object.assign({},m(o,u))}},b=e=>Object.assign({width:e},d(e)),_=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},b(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},b(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},w=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},x=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},d(e)),k=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:u}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:u(r).mul(2).equal(),minWidth:u(r).mul(2).equal()},x(r,u))},w(e,r,n)),{[`${n}-lg`]:Object.assign({},x(a,u))}),w(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},x(o,u))}),w(e,o,`${n}-sm`))},E=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:u,controlHeight:c,controlHeightLG:s,controlHeightSM:l,gradientFromColor:f,padding:p,marginSM:d,borderRadius:m,titleHeight:b,blockRadius:w,paragraphLiHeight:x,controlHeightXS:E,paragraphMarginTop:S}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},h(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},h(s)),[`${n}-sm`]:Object.assign({},h(l))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:b,background:f,borderRadius:w,[`+ ${a}`]:{marginBlockStart:l}},[a]:{padding:0,"> li":{width:"100%",height:x,listStyle:"none",background:f,borderRadius:w,"+ li":{marginBlockStart:E}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:d,[`+ ${a}`]:{marginBlockStart:S}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},k(e)),y(e)),g(e)),_(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${a} > li,\n ${n},\n ${o},\n ${i},\n ${u}\n `]:Object.assign({},v(e))}}};var S=(0,l.I$)("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=(0,f.IX)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[E(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var C=e=>{const{prefixCls:t,className:n,rootClassName:a,active:s,shape:l="circle",size:f="default"}=e,{getPrefixCls:p}=r.useContext(i.E_),d=p("skeleton",t),[h,v,m]=S(d),y=(0,u.Z)(e,["prefixCls","className"]),g=o()(d,`${d}-element`,{[`${d}-active`]:s},n,a,v,m);return h(r.createElement("div",{className:g},r.createElement(c,Object.assign({prefixCls:`${d}-avatar`,shape:l,size:f},y))))};var P=e=>{const{prefixCls:t,className:n,rootClassName:a,style:u,active:c}=e,{getPrefixCls:s}=r.useContext(i.E_),l=s("skeleton",t),[f,p,d]=S(l),h=o()(l,`${l}-element`,{[`${l}-active`]:c},n,a,p,d);return f(r.createElement("div",{className:h},r.createElement("div",{className:o()(`${l}-image`,n),style:u},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},r.createElement("title",null,"Image placeholder"),r.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${l}-image-path`})))))};var O=e=>{const{prefixCls:t,className:n,rootClassName:a,active:s,block:l,size:f="default"}=e,{getPrefixCls:p}=r.useContext(i.E_),d=p("skeleton",t),[h,v,m]=S(d),y=(0,u.Z)(e,["prefixCls"]),g=o()(d,`${d}-element`,{[`${d}-active`]:s,[`${d}-block`]:l},n,a,v,m);return h(r.createElement("div",{className:g},r.createElement(c,Object.assign({prefixCls:`${d}-input`,size:f},y))))};var j=e=>{const{prefixCls:t,className:n,rootClassName:a,style:u,active:c,children:s}=e,{getPrefixCls:l}=r.useContext(i.E_),f=l("skeleton",t),[p,d,h]=S(f),v=o()(f,`${f}-element`,{[`${f}-active`]:c},d,n,a,h);return p(r.createElement("div",{className:v},r.createElement("div",{className:o()(`${f}-image`,n),style:u},s)))};const A=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0};var T=e=>{const{prefixCls:t,className:n,style:a,rows:i=0}=e,u=Array.from({length:i}).map(((t,n)=>r.createElement("li",{key:n,style:{width:A(n,e)}})));return r.createElement("ul",{className:o()(t,n),style:a},u)};var I=e=>{let{prefixCls:t,className:n,width:a,style:i}=e;return r.createElement("h3",{className:o()(t,n),style:Object.assign({width:a},i)})};function M(e){return e&&"object"==typeof e?e:{}}const R=e=>{const{prefixCls:t,loading:n,className:a,rootClassName:u,style:s,children:l,avatar:f=!1,title:p=!0,paragraph:d=!0,active:h,round:v}=e,{getPrefixCls:m,direction:y,className:g,style:b}=(0,i.dj)("skeleton"),_=m("skeleton",t),[w,x,k]=S(_);if(n||!("loading"in e)){const e=!!f,t=!!p,n=!!d;let i,l;if(e){const e=Object.assign(Object.assign({prefixCls:`${_}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),M(f));i=r.createElement("div",{className:`${_}-header`},r.createElement(c,Object.assign({},e)))}if(t||n){let a,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${_}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),M(p));a=r.createElement(I,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${_}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),M(d));o=r.createElement(T,Object.assign({},n))}l=r.createElement("div",{className:`${_}-content`},a,o)}const m=o()(_,{[`${_}-with-avatar`]:e,[`${_}-active`]:h,[`${_}-rtl`]:"rtl"===y,[`${_}-round`]:v},g,a,u,x,k);return w(r.createElement("div",{className:m,style:Object.assign(Object.assign({},b),s)},i,l))}return null!=l?l:null};R.Button=e=>{const{prefixCls:t,className:n,rootClassName:a,active:s,block:l=!1,size:f="default"}=e,{getPrefixCls:p}=r.useContext(i.E_),d=p("skeleton",t),[h,v,m]=S(d),y=(0,u.Z)(e,["prefixCls"]),g=o()(d,`${d}-element`,{[`${d}-active`]:s,[`${d}-block`]:l},n,a,v,m);return h(r.createElement("div",{className:g},r.createElement(c,Object.assign({prefixCls:`${d}-button`,size:f},y))))},R.Avatar=C,R.Input=O,R.Image=P,R.Node=j;var L=R},70045:function(e,t,n){"use strict";n.d(t,{BR:function(){return d},ri:function(){return p}});var r=n(59301),a=n(92310),o=n.n(a),i=n(11592),u=n(48755),c=n(31756),s=n(31547),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const n=r.useContext(f),a=r.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:a,isLastItem:i}=n,u="vertical"===r?"-vertical-":"-";return o()(`${e}-compact${u}item`,{[`${e}-compact${u}first-item`]:a,[`${e}-compact${u}last-item`]:i,[`${e}-compact${u}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:a}},d=e=>{const{children:t}=e;return r.createElement(f.Provider,{value:null},t)},h=e=>{const{children:t}=e,n=l(e,["children"]);return r.createElement(f.Provider,{value:r.useMemo((()=>n),[n])},t)};t.ZP=e=>{const{getPrefixCls:t,direction:n}=r.useContext(u.E_),{size:a,direction:p,block:d,prefixCls:v,className:m,rootClassName:y,children:g}=e,b=l(e,["size","direction","block","prefixCls","className","rootClassName","children"]),_=(0,c.Z)((e=>null!=a?a:e)),w=t("space-compact",v),[x,k]=(0,s.Z)(w),E=o()(w,k,{[`${w}-rtl`]:"rtl"===n,[`${w}-block`]:d,[`${w}-vertical`]:"vertical"===p},m,y),S=r.useContext(f),C=(0,i.Z)(g),P=r.useMemo((()=>C.map(((e,t)=>{const n=(null==e?void 0:e.key)||`${w}-item-${t}`;return r.createElement(h,{key:n,compactSize:_,compactDirection:p,isFirstItem:0===t&&(!S||(null==S?void 0:S.isFirstItem)),isLastItem:t===C.length-1&&(!S||(null==S?void 0:S.isLastItem))},e)}))),[a,C,S]);return 0===C.length?null:x(r.createElement("div",Object.assign({className:E},b),P))}},31547:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(16931),a=n(51636);var o=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const i=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},u=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var c=(0,r.I$)("Space",(e=>{const t=(0,a.IX)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[i(t),u(t),o(t)]}),(()=>({})),{resetStyle:!1})},41622:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(59301),a=n(92310),o=n.n(a);function i(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,a=n||{},o=a.noTrailing,i=void 0!==o&&o,u=a.noLeading,c=void 0!==u&&u,s=a.debounceMode,l=void 0===s?void 0:s,f=!1,p=0;function d(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,a=new Array(n),o=0;oe?c?(p=Date.now(),i||(r=setTimeout(l?v:h,e))):h():!0!==i&&(r=setTimeout(l?v:h,void 0===l?e-s:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;d(),f=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}var u=n(48755),c=n(22703),s=n(34280);const l=80*Math.PI,f=e=>{const{dotClassName:t,style:n,hasCircleCls:a}=e;return r.createElement("circle",{className:o()(`${t}-circle`,{[`${t}-circle-bg`]:a}),r:40,cx:50,cy:50,strokeWidth:20,style:n})};var p=e=>{let{percent:t,prefixCls:n}=e;const a=`${n}-dot`,i=`${a}-holder`,u=`${i}-hidden`,[c,p]=r.useState(!1);(0,s.Z)((()=>{0!==t&&p(!0)}),[0!==t]);const d=Math.max(Math.min(t,100),0);if(!c)return null;const h={strokeDashoffset:""+l/4,strokeDasharray:`${l*d/100} ${l*(100-d)/100}`};return r.createElement("span",{className:o()(i,`${a}-progress`,d<=0&&u)},r.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d},r.createElement(f,{dotClassName:a,hasCircleCls:!0}),r.createElement(f,{dotClassName:a,style:h})))};function d(e){const{prefixCls:t,percent:n=0}=e,a=`${t}-dot`,i=`${a}-holder`,u=`${i}-hidden`;return r.createElement(r.Fragment,null,r.createElement("span",{className:o()(i,n>0&&u)},r.createElement("span",{className:o()(a,`${t}-dot-spin`)},[1,2,3,4].map((e=>r.createElement("i",{className:`${t}-dot-item`,key:e}))))),r.createElement(p,{prefixCls:t,percent:n}))}function h(e){const{prefixCls:t,indicator:n,percent:a}=e,i=`${t}-dot`;return n&&r.isValidElement(n)?(0,c.Tm)(n,{className:o()(n.props.className,i),percent:a}):r.createElement(d,{prefixCls:t,percent:a})}var v=n(66604),m=n(63356),y=n(16931),g=n(51636);const b=new v.E4("antSpinMove",{to:{opacity:1}}),_=new v.E4("antRotate",{to:{transform:"rotate(405deg)"}}),w=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},(0,m.Wf)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:b,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:_,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((t=>`${t} ${e.motionDurationSlow} ease`)).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}};var x=(0,y.I$)("Spin",(e=>{const t=(0,g.IX)(e,{spinDotDefault:e.colorTextDescription});return[w(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}));const k=[[30,.05],[70,.03],[96,.01]];var E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,spinning:a=!0,delay:c=0,className:s,rootClassName:l,size:f="default",tip:p,wrapperClassName:d,style:v,children:m,fullscreen:y=!1,indicator:g,percent:b}=e,_=E(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:w,direction:C,className:P,style:O,indicator:j}=(0,u.dj)("spin"),A=w("spin",n),[T,I,M]=x(A),[R,L]=r.useState((()=>a&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(a,c))),Z=function(e,t){const[n,a]=r.useState(0),o=r.useRef(null),i="auto"===t;return r.useEffect((()=>(i&&e&&(a(0),o.current=setInterval((()=>{a((e=>{const t=100-e;for(let n=0;n{clearInterval(o.current)})),[i,e]),i?n:t}(R,b);r.useEffect((()=>{if(a){const e=i(c,(()=>{L(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}L(!1)}),[c,a]);const D=r.useMemo((()=>void 0!==m&&!y),[m,y]);const N=o()(A,P,{[`${A}-sm`]:"small"===f,[`${A}-lg`]:"large"===f,[`${A}-spinning`]:R,[`${A}-show-text`]:!!p,[`${A}-rtl`]:"rtl"===C},s,!y&&l,I,M),$=o()(`${A}-container`,{[`${A}-blur`]:R}),F=null!==(t=null!=g?g:j)&&void 0!==t?t:S,B=Object.assign(Object.assign({},O),v),q=r.createElement("div",Object.assign({},_,{style:B,className:N,"aria-live":"polite","aria-busy":R}),r.createElement(h,{prefixCls:A,indicator:F,percent:Z}),p&&(D||y)?r.createElement("div",{className:`${A}-text`},p):null);return T(D?r.createElement("div",Object.assign({},_,{className:o()(`${A}-nested-loading`,d,I,M)}),R&&r.createElement("div",{key:"loading"},q),r.createElement("div",{className:$,key:"container"},m)):y?r.createElement("div",{className:o()(`${A}-fullscreen`,{[`${A}-fullscreen-show`]:R},l,I,M)},q):q)};C.setDefaultIndicator=e=>{S=e};var P=C},56119:function(e,t,n){"use strict";function r(e,t,n){const{focusElCls:r,focus:a,borderElCls:o}=n,i=o?"> *":"",u=["hover",a?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${i}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[u]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function a(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:Object.assign(Object.assign({},r(e,o,t)),a(n,o,t))}}n.d(t,{c:function(){return o}})},63356:function(e,t,n){"use strict";n.d(t,{JT:function(){return p},Lx:function(){return c},Nd:function(){return d},Qy:function(){return f},Ro:function(){return i},Wf:function(){return o},dF:function(){return u},du:function(){return s},oN:function(){return l},vS:function(){return a}});var r=n(66604);const a={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},o=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},i=()=>({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"}}),u=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),c=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),s=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return!1!==r&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},u),i),{[a]:i})}},l=(e,t)=>({outline:`${(0,r.bf)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),f=(e,t)=>({"&:focus-visible":Object.assign({},l(e,t))}),p=e=>({[`.${e}`]:Object.assign(Object.assign({},i()),{[`.${e} .${e}-icon`]:{display:"block"}})}),d=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},f(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}})},99495:function(e,t,n){"use strict";n.d(t,{J$:function(){return u}});var r=n(66604),a=n(48746);const o=new r.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),i=new r.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),u=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,u=t?"&":"";return[(0,a.R)(r,o,i,e.motionDurationMid,t),{[`\n ${u}${r}-enter,\n ${u}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${u}${r}-leave`]:{animationTimingFunction:"linear"}}]}},48746:function(e,t,n){"use strict";n.d(t,{R:function(){return o}});const r=e=>({animationDuration:e,animationFillMode:"both"}),a=e=>({animationDuration:e,animationFillMode:"both"}),o=function(e,t,n,o){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const u=i?"&":"";return{[`\n ${u}${e}-enter,\n ${u}${e}-appear\n `]:Object.assign(Object.assign({},r(o)),{animationPlayState:"paused"}),[`${u}${e}-leave`]:Object.assign(Object.assign({},a(o)),{animationPlayState:"paused"}),[`\n ${u}${e}-enter${e}-enter-active,\n ${u}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${u}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},34925:function(e,t,n){"use strict";n.d(t,{_y:function(){return g},kr:function(){return o}});var r=n(66604),a=n(48746);const o=new r.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),i=new r.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),u=new r.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),c=new r.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),s=new r.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),l=new r.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),f=new r.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),p=new r.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),d=new r.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),h=new r.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),v=new r.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),m=new r.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),y={zoom:{inKeyframes:o,outKeyframes:i},"zoom-big":{inKeyframes:u,outKeyframes:c},"zoom-big-fast":{inKeyframes:u,outKeyframes:c},"zoom-left":{inKeyframes:f,outKeyframes:p},"zoom-right":{inKeyframes:d,outKeyframes:h},"zoom-up":{inKeyframes:s,outKeyframes:l},"zoom-down":{inKeyframes:v,outKeyframes:m}},g=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=y[t];return[(0,a.R)(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},29796:function(e,t,n){"use strict";n.d(t,{Mj:function(){return i},u_:function(){return o}});var r=n(59301),a=n(90820);const o={token:a.Z,override:{override:a.Z},hashed:!0},i=r.createContext(o)},34998:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});const r=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},42146:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(66604),a=n(68361),o=n(90820),i=n(17835);var u=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};var c=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},s=n(45156);var l=e=>{const t=(0,s.Z)(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),a=n[1],o=n[0],i=n[2],u=r[1],c=r[0],l=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(u*a),fontHeightLG:Math.round(l*i),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const f=(e,t)=>new i.t(e).setA(t).toRgbString(),p=(e,t)=>new i.t(e).darken(t).toHexString(),d=e=>{const t=(0,a.R_)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},h=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:f(r,.88),colorTextSecondary:f(r,.65),colorTextTertiary:f(r,.45),colorTextQuaternary:f(r,.25),colorFill:f(r,.15),colorFillSecondary:f(r,.06),colorFillTertiary:f(r,.04),colorFillQuaternary:f(r,.02),colorBgSolid:f(r,1),colorBgSolidHover:f(r,.75),colorBgSolidActive:f(r,.95),colorBgLayout:p(n,4),colorBgContainer:p(n,0),colorBgElevated:p(n,0),colorBgSpotlight:f(r,.85),colorBgBlur:"transparent",colorBorder:p(n,15),colorBorderSecondary:p(n,6)}};const v=(0,r.jG)((function(e){a.ez.pink=a.ez.magenta,a.Ti.pink=a.Ti.magenta;const t=Object.keys(o.M).map((t=>{const n=e[t]===a.ez[t]?a.Ti[t]:(0,a.R_)(e[t]);return Array.from({length:10},(()=>1)).reduce(((e,r,a)=>(e[`${t}-${a+1}`]=n[a],e[`${t}${a+1}`]=n[a],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:a,colorWarning:o,colorError:u,colorInfo:c,colorPrimary:s,colorBgBase:l,colorTextBase:f}=e,p=n(s),d=n(a),h=n(o),v=n(u),m=n(c),y=r(l,f),g=n(e.colorLink||e.colorInfo),b=new i.t(v[1]).mix(new i.t(v[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:b,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new i.t("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:d,generateNeutralColorPalettes:h})),l(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),c(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:a+1},u(r))}(e))}));var m=v},90820:function(e,t,n){"use strict";n.d(t,{M:function(){return r}});const r={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"},a=Object.assign(Object.assign({},r),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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});t.Z=a},45156:function(e,t,n){"use strict";function r(e){return(e+8)/e}function a(e){const t=Array.from({length:10}).map(((t,n)=>{const r=n-1,a=e*Math.pow(Math.E,r/5),o=n>1?Math.floor(a):Math.ceil(a);return 2*Math.floor(o/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:r(e)})))}n.d(t,{D:function(){return r},Z:function(){return a}})},57700:function(e,t,n){"use strict";n.d(t,{ZP:function(){return y},NJ:function(){return d}});var r=n(59301),a=n(66604),o=n(29796),i=n(42146),u=n(90820),c=n(17835),s=n(28620),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{delete r[e]}));const a=Object.assign(Object.assign({},n),r),o=1200,i=1600;if(!1===a.motion){const e="0s";a.motionDurationFast=e,a.motionDurationMid=e,a.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:(0,s.Z)(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:(0,s.Z)(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:(0,s.Z)(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:3*a.lineWidth,lineWidth:a.lineWidth,controlOutlineWidth:2*a.lineWidth,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:(0,s.Z)(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:o,screenXLMin:o,screenXLMax:1599,screenXXL:i,screenXXLMin:i,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new c.t("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new c.t("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new c.t("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",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)"}),r)}var p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const r=n.getDerivativeToken(e),{override:a}=t,o=p(t,["override"]);let i=Object.assign(Object.assign({},r),{override:a});return i=f(i),o&&Object.entries(o).forEach((e=>{let[t,n]=e;const{theme:r}=n,a=p(n,["theme"]);let o=a;r&&(o=m(Object.assign(Object.assign({},i),a),{override:a},r)),i[t]=o})),i};function y(){const{token:e,hashed:t,theme:n,override:c,cssVar:s}=r.useContext(o.Mj),l=`5.24.6-${t||""}`,p=n||i.Z,[y,g,b]=(0,a.fp)(p,[u.Z,e],{salt:l,override:c,getComputedToken:m,formatToken:f,cssVar:s&&{prefix:s.prefix,key:s.key,unitless:d,ignore:h,preserve:v}});return[p,b,t?g:"",y,s]}},16931:function(e,t,n){"use strict";n.d(t,{A1:function(){return s},I$:function(){return c},bk:function(){return l}});var r=n(59301),a=n(51636),o=n(48755),i=n(63356),u=n(57700);const{genStyleHooks:c,genComponentStyleHook:s,genSubStyleComponent:l}=(0,a.rb)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,r.useContext)(o.E_);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=(0,u.ZP)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=(0,r.useContext)(o.E_);return null!=e?e:{}},getResetStyles:(e,t)=>{var n;const r=(0,i.Lx)(e);return[r,{"&":r},(0,i.JT)(null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:o.oR)]},getCommonStyle:i.du,getCompUnitless:()=>u.NJ})},28620:function(e,t,n){"use strict";var r=n(17835);function a(e){return e>=0&&e<=255}t.Z=function(e,t){const{r:n,g:o,b:i,a:u}=new r.t(e).toRgb();if(u<1)return e;const{r:c,g:s,b:l}=new r.t(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-c*(1-e))/e),u=Math.round((o-s*(1-e))/e),f=Math.round((i-l*(1-e))/e);if(a(t)&&a(u)&&a(f))return new r.t({r:t,g:u,b:f,a:Math.round(100*e)/100}).toRgbString()}return new r.t({r:n,g:o,b:i,a:1}).toRgbString()}},303:function(e,t){"use strict";t.Z={placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},91190:function(e,t,n){"use strict";n.d(t,{H:function(){return u}});var r=n(59301),a=n(6089);function o(){}const i=r.createContext({add:o,remove:o});function u(e){const t=r.useContext(i),n=r.useRef(null);return(0,a.Z)((r=>{if(r){const a=e?r.querySelector(e):r;t.add(a),n.current=a}else t.remove(n.current)}))}},67751:function(e){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,a=0;r>>6-2*a);return n}},e.exports=n},84452:function(e,t,n){var r;e.exports=(r=n(52952),n(35909),n(34905),n(28492),n(93617),function(){var e=r,t=e.lib.BlockCipher,n=e.algo,a=[],o=[],i=[],u=[],c=[],s=[],l=[],f=[],p=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var h=r^r<<1^r<<2^r<<3^r<<4;h=h>>>8^255&h^99,a[n]=h,o[h]=n;var v=e[n],m=e[v],y=e[m],g=257*e[h]^16843008*h;i[n]=g<<24|g>>>8,u[n]=g<<16|g>>>16,c[n]=g<<8|g>>>24,s[n]=g,g=16843009*y^65537*m^257*v^16843008*n,l[h]=g<<24|g>>>8,f[h]=g<<16|g>>>16,p[h]=g<<8|g>>>24,d[h]=g,n?(n=v^e[e[e[y^v]]],r^=e[e[r]]):n=r=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],i=0;i6&&i%n==4&&(s=a[s>>>24]<<24|a[s>>>16&255]<<16|a[s>>>8&255]<<8|a[255&s]):(s=a[(s=s<<8|s>>>24)>>>24]<<24|a[s>>>16&255]<<16|a[s>>>8&255]<<8|a[255&s],s^=h[i/n|0]<<24),o[i]=o[i-n]^s);for(var u=this._invKeySchedule=[],c=0;c>>24]]^f[a[s>>>16&255]]^p[a[s>>>8&255]]^d[a[255&s]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,i,u,c,s,a)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,l,f,p,d,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,a,o,i,u){for(var c=this._nRounds,s=e[t]^n[0],l=e[t+1]^n[1],f=e[t+2]^n[2],p=e[t+3]^n[3],d=4,h=1;h>>24]^a[l>>>16&255]^o[f>>>8&255]^i[255&p]^n[d++],m=r[l>>>24]^a[f>>>16&255]^o[p>>>8&255]^i[255&s]^n[d++],y=r[f>>>24]^a[p>>>16&255]^o[s>>>8&255]^i[255&l]^n[d++],g=r[p>>>24]^a[s>>>16&255]^o[l>>>8&255]^i[255&f]^n[d++];s=v,l=m,f=y,p=g}v=(u[s>>>24]<<24|u[l>>>16&255]<<16|u[f>>>8&255]<<8|u[255&p])^n[d++],m=(u[l>>>24]<<24|u[f>>>16&255]<<16|u[p>>>8&255]<<8|u[255&s])^n[d++],y=(u[f>>>24]<<24|u[p>>>16&255]<<16|u[s>>>8&255]<<8|u[255&l])^n[d++],g=(u[p>>>24]<<24|u[s>>>16&255]<<16|u[l>>>8&255]<<8|u[255&f])^n[d++],e[t]=v,e[t+1]=m,e[t+2]=y,e[t+3]=g},keySize:8});e.AES=t._createHelper(v)}(),r.AES)},93617:function(e,t,n){var r;e.exports=(r=n(52952),n(28492),void(r.lib.Cipher||function(e){var t=r,n=t.lib,a=n.Base,o=n.WordArray,i=n.BufferedBlockAlgorithm,u=t.enc,c=(u.Utf8,u.Base64),s=t.algo.EvpKDF,l=n.Cipher=i.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){i.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:y}return function(t){return{encrypt:function(n,r,a){return e(r).encrypt(t,n,r,a)},decrypt:function(n,r,a){return e(r).decrypt(t,n,r,a)}}}}()}),f=(n.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),p=n.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),d=f.CBC=function(){var t=p.extend();function n(t,n,r){var a,o=this._iv;o?(a=o,this._iv=e):a=this._prevBlock;for(var i=0;i>>2];e.sigBytes-=t}},v=(n.BlockCipher=l.extend({cfg:l.cfg.extend({mode:d,padding:h}),reset:function(){var e;l.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),n.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),m=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:t})}},y=n.SerializableCipher=a.extend({cfg:a.extend({format:m}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var a=e.createEncryptor(n,r),o=a.finalize(t),i=a.cfg;return v.create({ciphertext:o,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),g=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=o.random(8));var a=s.create({keySize:t+n}).compute(e,r),i=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,v.create({key:a,iv:i,salt:r})}},b=n.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:g}),encrypt:function(e,t,n,r){var a=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=a.iv;var o=y.encrypt.call(this,e,t,a.key,r);return o.mixIn(a),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var a=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=a.iv,y.decrypt.call(this,e,t,a.key,r)}})}()))},52952:function(e,t,n){var r;e.exports=(r=r||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(3828)}catch(e){}var a=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},u=i.lib={},c=u.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},s=u.WordArray=c.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||f).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,a=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[r+o>>>2]|=i<<24-(r+o)%4*8}else for(var u=0;u>>2]=n[u>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-a%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new s.init(n,t/2)}},p=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new s.init(n,t)}},d=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},h=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,a=r.words,o=r.sigBytes,i=this.blockSize,u=o/(4*i),c=(u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0))*i,l=e.min(4*c,o);if(c){for(var f=0;f>>6-i%4*2;a[o>>>2]|=u<<24-o%4*8,o++}return t.create(a,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var a=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,u=0;u<4&&o+.75*u>>6*(3-u)&63));var c=r.charAt(64);if(c)for(;a.length%4;)a.push(c);return a.join("")},parse:function(e){var t=e.length,r=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o>>6-i%4*2;a[o>>>2]|=u<<24-o%4*8,o++}return t.create(a,o)}e.enc.Base64url={stringify:function(e,t=!0){var n=e.words,r=e.sigBytes,a=t?this._safe_map:this._map;e.clamp();for(var o=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(n[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|n[i+2>>>2]>>>24-(i+2)%4*8&255,c=0;c<4&&i+.75*c>>6*(3-c)&63));var s=a.charAt(64);if(s)for(;o.length%4;)o.push(s);return o.join("")},parse:function(e,t=!0){var r=e.length,a=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],a=0;a>>2]>>>16-a%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var n=e.length,r=[],a=0;a>>1]|=e.charCodeAt(a)<<16-a%2*16;return t.create(r,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var n=e.length,r=[],o=0;o>>1]|=a(e.charCodeAt(o)<<16-o%2*16);return t.create(r,2*n)}}}(),r.enc.Utf16)},28492:function(e,t,n){var r,a,o,i,u,c,s,l;e.exports=(l=n(52952),n(49479),n(83760),a=(r=l).lib,o=a.Base,i=a.WordArray,u=r.algo,c=u.MD5,s=u.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,a=r.hasher.create(),o=i.create(),u=o.words,c=r.keySize,s=r.iterations;u.lengthr&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),u=a.words,c=o.words,s=0;s>>2]|=e[a]<<24-a%4*8;t.call(this,r,n)}else t.apply(this,arguments)};n.prototype=e}}(),r.lib.WordArray)},34905:function(e,t,n){var r;e.exports=(r=n(52952),function(e){var t=r,n=t.lib,a=n.WordArray,o=n.Hasher,i=t.algo,u=[];!function(){for(var t=0;t<64;t++)u[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=i.MD5=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,a=e[r];e[r]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var o=this._hash.words,i=e[t+0],c=e[t+1],d=e[t+2],h=e[t+3],v=e[t+4],m=e[t+5],y=e[t+6],g=e[t+7],b=e[t+8],_=e[t+9],w=e[t+10],x=e[t+11],k=e[t+12],E=e[t+13],S=e[t+14],C=e[t+15],P=o[0],O=o[1],j=o[2],A=o[3];P=s(P,O,j,A,i,7,u[0]),A=s(A,P,O,j,c,12,u[1]),j=s(j,A,P,O,d,17,u[2]),O=s(O,j,A,P,h,22,u[3]),P=s(P,O,j,A,v,7,u[4]),A=s(A,P,O,j,m,12,u[5]),j=s(j,A,P,O,y,17,u[6]),O=s(O,j,A,P,g,22,u[7]),P=s(P,O,j,A,b,7,u[8]),A=s(A,P,O,j,_,12,u[9]),j=s(j,A,P,O,w,17,u[10]),O=s(O,j,A,P,x,22,u[11]),P=s(P,O,j,A,k,7,u[12]),A=s(A,P,O,j,E,12,u[13]),j=s(j,A,P,O,S,17,u[14]),P=l(P,O=s(O,j,A,P,C,22,u[15]),j,A,c,5,u[16]),A=l(A,P,O,j,y,9,u[17]),j=l(j,A,P,O,x,14,u[18]),O=l(O,j,A,P,i,20,u[19]),P=l(P,O,j,A,m,5,u[20]),A=l(A,P,O,j,w,9,u[21]),j=l(j,A,P,O,C,14,u[22]),O=l(O,j,A,P,v,20,u[23]),P=l(P,O,j,A,_,5,u[24]),A=l(A,P,O,j,S,9,u[25]),j=l(j,A,P,O,h,14,u[26]),O=l(O,j,A,P,b,20,u[27]),P=l(P,O,j,A,E,5,u[28]),A=l(A,P,O,j,d,9,u[29]),j=l(j,A,P,O,g,14,u[30]),P=f(P,O=l(O,j,A,P,k,20,u[31]),j,A,m,4,u[32]),A=f(A,P,O,j,b,11,u[33]),j=f(j,A,P,O,x,16,u[34]),O=f(O,j,A,P,S,23,u[35]),P=f(P,O,j,A,c,4,u[36]),A=f(A,P,O,j,v,11,u[37]),j=f(j,A,P,O,g,16,u[38]),O=f(O,j,A,P,w,23,u[39]),P=f(P,O,j,A,E,4,u[40]),A=f(A,P,O,j,i,11,u[41]),j=f(j,A,P,O,h,16,u[42]),O=f(O,j,A,P,y,23,u[43]),P=f(P,O,j,A,_,4,u[44]),A=f(A,P,O,j,k,11,u[45]),j=f(j,A,P,O,C,16,u[46]),P=p(P,O=f(O,j,A,P,d,23,u[47]),j,A,i,6,u[48]),A=p(A,P,O,j,g,10,u[49]),j=p(j,A,P,O,S,15,u[50]),O=p(O,j,A,P,m,21,u[51]),P=p(P,O,j,A,k,6,u[52]),A=p(A,P,O,j,h,10,u[53]),j=p(j,A,P,O,w,15,u[54]),O=p(O,j,A,P,c,21,u[55]),P=p(P,O,j,A,b,6,u[56]),A=p(A,P,O,j,C,10,u[57]),j=p(j,A,P,O,y,15,u[58]),O=p(O,j,A,P,E,21,u[59]),P=p(P,O,j,A,v,6,u[60]),A=p(A,P,O,j,x,10,u[61]),j=p(j,A,P,O,d,15,u[62]),O=p(O,j,A,P,_,21,u[63]),o[0]=o[0]+P|0,o[1]=o[1]+O|0,o[2]=o[2]+j|0,o[3]=o[3]+A|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,a=8*t.sigBytes;n[a>>>5]|=128<<24-a%32;var o=e.floor(r/4294967296),i=r;n[15+(a+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(a+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var u=this._hash,c=u.words,s=0;s<4;s++){var l=c[s];c[s]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return u},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function s(e,t,n,r,a,o,i){var u=e+(t&n|~t&r)+a+i;return(u<>>32-o)+t}function l(e,t,n,r,a,o,i){var u=e+(t&r|n&~r)+a+i;return(u<>>32-o)+t}function f(e,t,n,r,a,o,i){var u=e+(t^n^r)+a+i;return(u<>>32-o)+t}function p(e,t,n,r,a,o,i){var u=e+(n^(t|~r))+a+i;return(u<>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),r.MD5)},2882:function(e,t,n){var r;e.exports=(r=n(52952),n(93617),r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();function t(e,t,n,r){var a,o=this._iv;o?(a=o.slice(0),this._iv=void 0):a=this._prevBlock,r.encryptBlock(a,0);for(var i=0;i>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var a=e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,a=r.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0),n(i);var u=i.slice(0);r.encryptBlock(u,0);for(var c=0;c>>2]|=a<<24-o%4*8,e.sigBytes+=a},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Ansix923)},2593:function(e,t,n){var r;e.exports=(r=n(52952),n(93617),r.pad.Iso10126={pad:function(e,t){var n=4*t,a=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Iso10126)},10829:function(e,t,n){var r;e.exports=(r=n(52952),n(93617),r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971)},18846:function(e,t,n){var r;e.exports=(r=n(52952),n(93617),r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding)},10265:function(e,t,n){var r;e.exports=(r=n(52952),n(93617),r.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},r.pad.ZeroPadding)},37248:function(e,t,n){var r,a,o,i,u,c,s,l,f;e.exports=(f=n(52952),n(49479),n(83760),a=(r=f).lib,o=a.Base,i=a.WordArray,u=r.algo,c=u.SHA1,s=u.HMAC,l=u.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=s.create(n.hasher,e),a=i.create(),o=i.create([1]),u=a.words,c=o.words,l=n.keySize,f=n.iterations;u.length>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var a=0;a<4;a++)c.call(this);for(a=0;a<8;a++)r[a]^=n[a+4&7];if(t){var o=t.words,i=o[0],u=o[1],s=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),l=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),f=s>>>16|4294901760&l,p=l<<16|65535&s;for(r[0]^=s,r[1]^=f,r[2]^=l,r[3]^=p,r[4]^=s,r[5]^=f,r[6]^=l,r[7]^=p,a=0;a<4;a++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)a[r]=16711935&(a[r]<<8|a[r]>>>24)|4278255360&(a[r]<<24|a[r]>>>8),e[t+r]^=a[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],a=65535&r,u=r>>>16,c=((a*a>>>17)+a*u>>>15)+u*u,s=((4294901760&r)*r|0)+((65535&r)*r|0);i[n]=c^s}e[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,e[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,e[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,e[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,e[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,e[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,e[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,e[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}e.RabbitLegacy=t._createHelper(u)}(),r.RabbitLegacy)},21865:function(e,t,n){var r;e.exports=(r=n(52952),n(35909),n(34905),n(28492),n(93617),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,a=[],o=[],i=[],u=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)a[n]^=r[n+4&7];if(t){var o=t.words,i=o[0],u=o[1],s=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),l=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),f=s>>>16|4294901760&l,p=l<<16|65535&s;for(a[0]^=s,a[1]^=f,a[2]^=l,a[3]^=p,a[4]^=s,a[5]^=f,a[6]^=l,a[7]^=p,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)a[r]=16711935&(a[r]<<8|a[r]>>>24)|4278255360&(a[r]<<24|a[r]>>>8),e[t+r]^=a[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],a=65535&r,u=r>>>16,c=((a*a>>>17)+a*u>>>15)+u*u,s=((4294901760&r)*r|0)+((65535&r)*r|0);i[n]=c^s}e[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,e[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,e[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,e[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,e[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,e[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,e[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,e[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}e.Rabbit=t._createHelper(u)}(),r.Rabbit)},22528:function(e,t,n){var r;e.exports=(r=n(52952),n(35909),n(34905),n(28492),n(93617),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,a=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],a=0;a<256;a++)r[a]=a;a=0;for(var o=0;a<256;a++){var i=a%n,u=t[i>>>2]>>>24-i%4*8&255;o=(o+r[a]+u)%256;var c=r[a];r[a]=r[o],r[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,a=0;a<4;a++){n=(n+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*a}return this._i=t,this._j=n,r}e.RC4=t._createHelper(a);var i=n.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(i)}(),r.RC4)},25824:function(e,t,n){var r;e.exports=(r=n(52952),function(e){var t=r,n=t.lib,a=n.WordArray,o=n.Hasher,i=t.algo,u=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),s=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=a.create([0,1518500249,1859775393,2400959708,2840853838]),p=a.create([1352829926,1548603684,1836072691,2053994217,0]),d=i.RIPEMD160=o.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,a=e[r];e[r]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var o,i,d,_,w,x,k,E,S,C,P,O=this._hash.words,j=f.words,A=p.words,T=u.words,I=c.words,M=s.words,R=l.words;for(x=o=O[0],k=i=O[1],E=d=O[2],S=_=O[3],C=w=O[4],n=0;n<80;n+=1)P=o+e[t+T[n]]|0,P+=n<16?h(i,d,_)+j[0]:n<32?v(i,d,_)+j[1]:n<48?m(i,d,_)+j[2]:n<64?y(i,d,_)+j[3]:g(i,d,_)+j[4],P=(P=b(P|=0,M[n]))+w|0,o=w,w=_,_=b(d,10),d=i,i=P,P=x+e[t+I[n]]|0,P+=n<16?g(k,E,S)+A[0]:n<32?y(k,E,S)+A[1]:n<48?m(k,E,S)+A[2]:n<64?v(k,E,S)+A[3]:h(k,E,S)+A[4],P=(P=b(P|=0,R[n]))+C|0,x=C,C=S,S=b(E,10),E=k,k=P;P=O[1]+d+S|0,O[1]=O[2]+_+C|0,O[2]=O[3]+w+x|0,O[3]=O[4]+o+k|0,O[4]=O[0]+i+E|0,O[0]=P},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var a=this._hash,o=a.words,i=0;i<5;i++){var u=o[i];o[i]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,n){return e^t^n}function v(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function y(e,t,n){return e&n|t&~n}function g(e,t,n){return e^(t|~n)}function b(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(d),t.HmacRIPEMD160=o._createHmacHelper(d)}(Math),r.RIPEMD160)},49479:function(e,t,n){var r,a,o,i,u,c,s,l;e.exports=(l=n(52952),a=(r=l).lib,o=a.WordArray,i=a.Hasher,u=r.algo,c=[],s=u.SHA1=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],a=n[1],o=n[2],i=n[3],u=n[4],s=0;s<80;s++){if(s<16)c[s]=0|e[t+s];else{var l=c[s-3]^c[s-8]^c[s-14]^c[s-16];c[s]=l<<1|l>>>31}var f=(r<<5|r>>>27)+u+c[s];f+=s<20?1518500249+(a&o|~a&i):s<40?1859775393+(a^o^i):s<60?(a&o|a&i|o&i)-1894007588:(a^o^i)-899497514,u=i,i=o,o=a<<30|a>>>2,a=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+a|0,n[2]=n[2]+o|0,n[3]=n[3]+i|0,n[4]=n[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),r.SHA1=i._createHelper(s),r.HmacSHA1=i._createHmacHelper(s),l.SHA1)},93653:function(e,t,n){var r,a,o,i,u,c;e.exports=(c=n(52952),n(2481),a=(r=c).lib.WordArray,o=r.algo,i=o.SHA256,u=o.SHA224=i.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}}),r.SHA224=i._createHelper(u),r.HmacSHA224=i._createHmacHelper(u),c.SHA224)},2481:function(e,t,n){var r;e.exports=(r=n(52952),function(e){var t=r,n=t.lib,a=n.WordArray,o=n.Hasher,i=t.algo,u=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,a=0;a<64;)t(r)&&(a<8&&(u[a]=n(e.pow(r,.5))),c[a]=n(e.pow(r,1/3)),a++),r++}();var s=[],l=i.SHA256=o.extend({_doReset:function(){this._hash=new a.init(u.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],a=n[1],o=n[2],i=n[3],u=n[4],l=n[5],f=n[6],p=n[7],d=0;d<64;d++){if(d<16)s[d]=0|e[t+d];else{var h=s[d-15],v=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,m=s[d-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;s[d]=v+s[d-7]+y+s[d-16]}var g=r&a^r&o^a&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=p+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&l^~u&f)+c[d]+s[d];p=f,f=l,l=u,u=i+_|0,i=o,o=a,a=r,r=_+(b+g)|0}n[0]=n[0]+r|0,n[1]=n[1]+a|0,n[2]=n[2]+o|0,n[3]=n[3]+i|0,n[4]=n[4]+u|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,a=8*t.sigBytes;return n[a>>>5]|=128<<24-a%32,n[14+(a+64>>>9<<4)]=e.floor(r/4294967296),n[15+(a+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),r.SHA256)},79421:function(e,t,n){var r;e.exports=(r=n(52952),n(41988),function(e){var t=r,n=t.lib,a=n.WordArray,o=n.Hasher,i=t.x64.Word,u=t.algo,c=[],s=[],l=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)s[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,o=0;o<24;o++){for(var u=0,f=0,p=0;p<7;p++){if(1&a){var d=(1<>>24)|4278255360&(o<<24|o>>>8),i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),(O=n[a]).high^=i,O.low^=o}for(var u=0;u<24;u++){for(var p=0;p<5;p++){for(var d=0,h=0,v=0;v<5;v++)d^=(O=n[p+5*v]).high,h^=O.low;var m=f[p];m.high=d,m.low=h}for(p=0;p<5;p++){var y=f[(p+4)%5],g=f[(p+1)%5],b=g.high,_=g.low;for(d=y.high^(b<<1|_>>>31),h=y.low^(_<<1|b>>>31),v=0;v<5;v++)(O=n[p+5*v]).high^=d,O.low^=h}for(var w=1;w<25;w++){var x=(O=n[w]).high,k=O.low,E=c[w];E<32?(d=x<>>32-E,h=k<>>32-E):(d=k<>>64-E,h=x<>>64-E);var S=f[s[w]];S.high=d,S.low=h}var C=f[0],P=n[0];for(C.high=P.high,C.low=P.low,p=0;p<5;p++)for(v=0;v<5;v++){var O=n[w=p+5*v],j=f[w],A=f[(p+1)%5+5*v],T=f[(p+2)%5+5*v];O.high=j.high^~A.high&T.high,O.low=j.low^~A.low&T.low}O=n[0];var I=l[u];O.high^=I.high,O.low^=I.low}},_doFinalize:function(){var t=this._data,n=t.words,r=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(e.ceil((r+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var i=this._state,u=this.cfg.outputLength/8,c=u/8,s=[],l=0;l>>24)|4278255360&(p<<24|p>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),s.push(d),s.push(p)}return new a.init(s,u)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=o._createHelper(p),t.HmacSHA3=o._createHmacHelper(p)}(Math),r.SHA3)},82307:function(e,t,n){var r,a,o,i,u,c,s,l;e.exports=(l=n(52952),n(41988),n(12133),a=(r=l).x64,o=a.Word,i=a.WordArray,u=r.algo,c=u.SHA512,s=u.SHA384=c.extend({_doReset:function(){this._hash=new i.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=16,e}}),r.SHA384=c._createHelper(s),r.HmacSHA384=c._createHmacHelper(s),l.SHA384)},12133:function(e,t,n){var r;e.exports=(r=n(52952),n(41988),function(){var e=r,t=e.lib.Hasher,n=e.x64,a=n.Word,o=n.WordArray,i=e.algo;function u(){return a.create.apply(a,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],s=[];!function(){for(var e=0;e<80;e++)s[e]=u()}();var l=i.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],a=n[1],o=n[2],i=n[3],u=n[4],l=n[5],f=n[6],p=n[7],d=r.high,h=r.low,v=a.high,m=a.low,y=o.high,g=o.low,b=i.high,_=i.low,w=u.high,x=u.low,k=l.high,E=l.low,S=f.high,C=f.low,P=p.high,O=p.low,j=d,A=h,T=v,I=m,M=y,R=g,L=b,Z=_,D=w,N=x,$=k,F=E,B=S,q=C,z=P,H=O,U=0;U<80;U++){var W,V,G=s[U];if(U<16)V=G.high=0|e[t+2*U],W=G.low=0|e[t+2*U+1];else{var Y=s[U-15],K=Y.high,X=Y.low,Q=(K>>>1|X<<31)^(K>>>8|X<<24)^K>>>7,J=(X>>>1|K<<31)^(X>>>8|K<<24)^(X>>>7|K<<25),ee=s[U-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ae=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=s[U-7],ie=oe.high,ue=oe.low,ce=s[U-16],se=ce.high,le=ce.low;V=(V=(V=Q+ie+((W=J+ue)>>>0>>0?1:0))+re+((W+=ae)>>>0>>0?1:0))+se+((W+=le)>>>0>>0?1:0),G.high=V,G.low=W}var fe,pe=D&$^~D&B,de=N&F^~N&q,he=j&T^j&M^T&M,ve=A&I^A&R^I&R,me=(j>>>28|A<<4)^(j<<30|A>>>2)^(j<<25|A>>>7),ye=(A>>>28|j<<4)^(A<<30|j>>>2)^(A<<25|j>>>7),ge=(D>>>14|N<<18)^(D>>>18|N<<14)^(D<<23|N>>>9),be=(N>>>14|D<<18)^(N>>>18|D<<14)^(N<<23|D>>>9),_e=c[U],we=_e.high,xe=_e.low,ke=z+ge+((fe=H+be)>>>0>>0?1:0),Ee=ye+ve;z=B,H=q,B=$,q=F,$=D,F=N,D=L+(ke=(ke=(ke=ke+pe+((fe+=de)>>>0>>0?1:0))+we+((fe+=xe)>>>0>>0?1:0))+V+((fe+=W)>>>0>>0?1:0))+((N=Z+fe|0)>>>0>>0?1:0)|0,L=M,Z=R,M=T,R=I,T=j,I=A,j=ke+(me+he+(Ee>>>0>>0?1:0))+((A=fe+Ee|0)>>>0>>0?1:0)|0}h=r.low=h+A,r.high=d+j+(h>>>0>>0?1:0),m=a.low=m+I,a.high=v+T+(m>>>0>>0?1:0),g=o.low=g+R,o.high=y+M+(g>>>0>>0?1:0),_=i.low=_+Z,i.high=b+L+(_>>>0>>0?1:0),x=u.low=x+N,u.high=w+D+(x>>>0>>0?1:0),E=l.low=E+F,l.high=k+$+(E>>>0>>0?1:0),C=f.low=C+q,f.high=S+B+(C>>>0>>0?1:0),O=p.low=O+H,p.high=P+z+(O>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(l),e.HmacSHA512=t._createHmacHelper(l)}(),r.SHA512)},61945:function(e,t,n){var r;e.exports=(r=n(52952),n(35909),n(34905),n(28492),n(93617),function(){var e=r,t=e.lib,n=t.WordArray,a=t.BlockCipher,o=e.algo,i=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],s=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=o.DES=a.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=i[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var a=this._subKeys=[],o=0;o<16;o++){var s=a[o]=[],l=c[o];for(n=0;n<24;n++)s[n/6|0]|=t[(u[n]-1+l)%28]<<31-n%6,s[4+(n/6|0)]|=t[28+(u[n+24]-1+l)%28]<<31-n%6;for(s[0]=s[0]<<1|s[0]>>>31,n=1;n<7;n++)s[n]=s[n]>>>4*(n-1)+3;s[7]=s[7]<<5|s[7]>>>27}var f=this._invSubKeys=[];for(n=0;n<16;n++)f[n]=a[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),p.call(this,1,1431655765);for(var r=0;r<16;r++){for(var a=n[r],o=this._lBlock,i=this._rBlock,u=0,c=0;c<8;c++)u|=s[c][((i^a[c])&l[c])>>>0];this._lBlock=i,this._rBlock=o^u}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,p.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),a=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(n.create(t)),this._des2=f.createEncryptor(n.create(r)),this._des3=f.createEncryptor(n.create(a))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=a._createHelper(h)}(),r.TripleDES)},41988:function(e,t,n){var r;e.exports=(r=n(52952),function(e){var t=r,n=t.lib,a=n.Base,o=n.WordArray,i=t.x64={};i.Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=a.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r=t?e:""+Array(t+1-r.length).join(n)+e},g={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),a=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(a,2,"0")},m:function e(t,n){if(t.date()1)return e(i[0])}else{var u=t.name;_[u]=t,a=u}return!r&&a&&(b=a),a||!r&&b},E=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},S=g;S.l=k,S.i=x,S.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var a=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return E(e)68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],l=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},f=function(e,t){var n,r=i.meridiem;if(r){for(var a=1;a<=24;a+=1)if(e.indexOf(r(a,0,t))>-1){n=a>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[o,function(e){this.afternoon=f(e,!1)}],a:[o,function(e){this.afternoon=f(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[r,c("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[a,c("week")],ww:[r,c("week")],M:[a,c("month")],MM:[r,c("month")],MMM:[o,function(e){var t=l("months"),n=(l("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=l("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(e){this.year=u(e)}],YYYY:[/\d{4}/,c("year")],Z:s,ZZ:s};function d(n){var r,a;r=n,a=i&&i.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||a[r]||e[r]||a[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),u=o.length,c=0;c-1)return new Date(("X"===t?1e3:1)*e);var a=d(t)(e),o=a.year,i=a.month,u=a.day,c=a.hours,s=a.minutes,l=a.seconds,f=a.milliseconds,p=a.zone,h=a.week,v=new Date,m=u||(o||i?1:v.getDate()),y=o||v.getFullYear(),g=0;o&&!i||(g=i>0?i-1:v.getMonth());var b,_=c||0,w=s||0,x=l||0,k=f||0;return p?new Date(Date.UTC(y,g,m,_,w,x,k+60*p.offset*1e3)):n?new Date(Date.UTC(y,g,m,_,w,x,k)):(b=new Date(y,g,m,_,w,x,k),h&&(b=r(b).week(h).toDate()),b)}catch(e){return new Date("")}}(t,u,r,n),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),l&&t!=this.format(u)&&(this.$d=new Date("")),i={}}else if(u instanceof Array)for(var p=u.length,h=1;h<=p;h+=1){o[1]=u[h-1];var v=n.apply(this,o);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}h===p&&(this.$d=new Date(""))}else a.call(this,e)}}}()},47477:function(e){e.exports=function(){"use strict";var e,t,n=1e3,r=6e4,a=36e5,o=864e5,i=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=31536e6,c=2628e6,s=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:u,months:c,days:o,hours:a,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},f=function(e){return e instanceof g},p=function(e,t,n){return new g(e,n,t.$l)},d=function(e){return t.p(e)+"s"},h=function(e){return e<0},v=function(e){return h(e)?Math.ceil(e):Math.floor(e)},m=function(e){return Math.abs(e)},y=function(e,t){return e?h(e)?{negative:!0,format:""+m(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},g=function(){function h(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return p(e*l[d(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){r.$d[d(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var a=e.match(s);if(a){var o=a.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var m=h.prototype;return m.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*l[n]}),0)},m.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=v(e/u),e%=u,this.$d.months=v(e/c),e%=c,this.$d.days=v(e/o),e%=o,this.$d.hours=v(e/a),e%=a,this.$d.minutes=v(e/r),e%=r,this.$d.seconds=v(e/n),e%=n,this.$d.milliseconds=e},m.toISOString=function(){var e=y(this.$d.years,"Y"),t=y(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=y(n,"D"),a=y(this.$d.hours,"H"),o=y(this.$d.minutes,"M"),i=this.$d.seconds||0;this.$d.milliseconds&&(i+=this.$d.milliseconds/1e3,i=Math.round(1e3*i)/1e3);var u=y(i,"S"),c=e.negative||t.negative||r.negative||a.negative||o.negative||u.negative,s=a.format||o.format||u.format?"T":"",l=(c?"-":"")+"P"+e.format+t.format+r.format+s+a.format+o.format+u.format;return"P"===l||"-P"===l?"P0D":l},m.toJSON=function(){return this.toISOString()},m.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(i,(function(e,t){return t||String(r[e])}))},m.as=function(e){return this.$ms/l[d(e)]},m.get=function(e){var t=this.$ms,n=d(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?v(t/l[n]):this.$d[n],t||0},m.add=function(e,t,n){var r;return r=t?e*l[d(t)]:f(e)?e.$ms:p(e,this).$ms,p(this.$ms+r*(n?-1:1),this)},m.subtract=function(e,t){return this.add(e,t,!0)},m.locale=function(e){var t=this.clone();return t.$l=e,t},m.clone=function(){return p(this.$ms,this)},m.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},m.valueOf=function(){return this.asMilliseconds()},m.milliseconds=function(){return this.get("milliseconds")},m.asMilliseconds=function(){return this.as("milliseconds")},m.seconds=function(){return this.get("seconds")},m.asSeconds=function(){return this.as("seconds")},m.minutes=function(){return this.get("minutes")},m.asMinutes=function(){return this.as("minutes")},m.hours=function(){return this.get("hours")},m.asHours=function(){return this.as("hours")},m.days=function(){return this.get("days")},m.asDays=function(){return this.as("days")},m.weeks=function(){return this.get("weeks")},m.asWeeks=function(){return this.as("weeks")},m.months=function(){return this.get("months")},m.asMonths=function(){return this.as("months")},m.years=function(){return this.get("years")},m.asYears=function(){return this.as("years")},h}(),b=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")};return function(n,r,a){e=a,t=a().$utils(),a.duration=function(e,t){var n=a.locale();return p(e,{$l:n},t)},a.isDuration=f;var o=r.prototype.add,i=r.prototype.subtract;r.prototype.add=function(e,t){return f(e)?b(this,e,1):o.bind(this)(e,t)},r.prototype.subtract=function(e,t){return f(e)?b(this,e,-1):i.bind(this)(e,t)}}}()},58862:function(e){e.exports=function(){"use strict";return function(e,t,n){n.isMoment=function(e){return n.isDayjs(e)}}}()},19277:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}()},34749:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}()},58319:function(e){e.exports=function(){"use strict";return function(e,t,n){var r=t.prototype,a=function(e){return e&&(e.indexOf?e:e.s)},o=function(e,t,n,r,o){var i=e.name?e:e.$locale(),u=a(i[t]),c=a(i[n]),s=u||c.map((function(e){return e.slice(0,r)}));if(!o)return s;var l=i.weekStart;return s.map((function(e,t){return s[(t+(l||0))%7]}))},i=function(){return n.Ls[n.locale()]},u=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):o(e,"months")},monthsShort:function(t){return t?t.format("MMM"):o(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):o(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):o(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):o(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return u(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=i();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return u(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return o(i(),"months")},n.monthsShort=function(){return o(i(),"monthsShort","months",3)},n.weekdays=function(e){return o(i(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return o(i(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return o(i(),"weekdaysMin","weekdays",2,e)}}}()},62053:function(e){e.exports=function(){"use strict";var e={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"};return function(t,n,r){var a=n.prototype,o=a.format;r.en.formats=e,a.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,a){var o=a&&a.toUpperCase();return r||n[a]||e[a]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return o.call(this,r)}}}()},59717:function(e){e.exports=function(){"use strict";return function(e,t,n){e=e||{};var r=t.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,n,a){return r.fromToBase(e,t,n,a)}n.en.relativeTime=a,r.fromToBase=function(t,r,o,i,u){for(var c,s,l,f=o.$locale().relativeTime||a,p=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],d=p.length,h=0;h0,m<=v.r||!v.r){m<=1&&h>0&&(v=p[h-1]);var y=f[v.l];u&&(m=u(""+m)),s="string"==typeof y?y.replace("%d",m):y(m,r,v.l,l);break}}if(r)return s;var g=l?f.future:f.past;return"function"==typeof g?g(s):g.replace("%s",s)},r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)};var i=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(i(this),e)},r.fromNow=function(e){return this.from(i(this),e)}}}()},23250:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,a){var o=r.prototype;o.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=a(this).startOf(t).add(1,t).date(r),i=a(this).endOf(e);if(o.isBefore(i))return 1}var u=a(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(u,e,!0);return c<0?a(this).startOf("week").week():Math.ceil(c)},o.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},74959:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}()},90111:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n0&&void 0!==arguments[0]?arguments[0]:{},n=e.namespace||i,u=e.only,c=void 0===u?[]:u,s=e.except,l=void 0===s?[]:s;if(c.length>0&&l.length>0)throw Error("It is ambiguous to configurate `only` and `except` items at the same time.");var f={global:!1,models:{},effects:{}},p=t({},n,(function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,i=arguments.length>1?arguments[1]:void 0,u=i.type,c=i.payload,s=c||{},l=s.namespace,p=s.actionType;switch(u){case a:e=r(r({},n),{},{global:!0,models:r(r({},n.models),{},t({},l,!0)),effects:r(r({},n.effects),{},t({},p,!0))});break;case o:var d=r(r({},n.effects),{},t({},p,!1)),h=r(r({},n.models),{},t({},l,Object.keys(d).some((function(e){return e.split("/")[0]===l&&d[e]})))),v=Object.keys(h).some((function(e){return h[e]}));e=r(r({},n),{},{global:v,models:h,effects:d});break;default:e=n}return e}));function d(e,t,n,r){var i=t.put,u=n.namespace;return 0===c.length&&0===l.length||c.length>0&&-1!==c.indexOf(r)||l.length>0&&-1===l.indexOf(r)?regeneratorRuntime.mark((function t(){var n=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i({type:a,payload:{namespace:u,actionType:r}});case 2:return t.next=4,e.apply(void 0,n);case 4:return t.next=6,i({type:o,payload:{namespace:u,actionType:r}});case 6:case"end":return t.stop()}}),t)})):e}return{extraReducers:p,onEffect:d}}},68192:function(e){"use strict";e.exports=function(){}},63474:function(e,t,n){"use strict";e.exports=n(71111)()?Object.assign:n(47597)},71111:function(e){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},47597:function(e,t,n){"use strict";var r=n(90721),a=n(58883),o=Math.max;e.exports=function(e,t){var n,i,u,c=o(arguments.length,2);for(e=Object(a(e)),u=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},i=1;i-1}},3424:function(e,t,n){"use strict";var r,a,o,i,u,c,s,l=n(35413),f=n(15895),p=Function.prototype.apply,d=Function.prototype.call,h=Object.create,v=Object.defineProperty,m=Object.defineProperties,y=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};a=function(e,t){var n,a;return f(t),a=this,r.call(this,e,n=function(){o.call(a,e,n),p.call(t,this,arguments)}),n.__eeOnceListener__=t,this},i=function(e){var t,n,r,a,o;if(y.call(this,"__ee__")&&(a=this.__ee__[e]))if("object"==typeof a){for(n=arguments.length,o=new Array(n-1),t=1;t=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,r[a++]=e>>>16&255,r[a++]=e>>>8&255,r[a++]=255&e}else for(r[a++]=255&e,r[a++]=e>>>8&255,r[a++]=e>>>16&255,r[a++]=e>>>24&255,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,o=8;othis.blockSize&&(e=(new this.Hash).update(e).digest()),a(e.length<=this.blockSize);for(var t=e.length;t>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},8631:function(e,t,n){"use strict";var r=n(61339),a=n(4603);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function i(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function u(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=a,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),a=0;a>6|192,n[r++]=63&i|128):o(e,a)?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++a)),n[r++]=i>>18|240,n[r++]=i>>12&63|128,n[r++]=i>>6&63|128,n[r++]=63&i|128):(n[r++]=i>>12|224,n[r++]=i>>6&63|128,n[r++]=63&i|128)}else for(a=0;a>>0}return i},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,a=0;r>>24,n[a+1]=o>>>16&255,n[a+2]=o>>>8&255,n[a+3]=255&o):(n[a+3]=o>>>24,n[a+2]=o>>>16&255,n[a+1]=o>>>8&255,n[a]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,a){return e+t+n+r+a>>>0},t.sum64=function(e,t,n,r){var a=e[t],o=r+e[t+1]>>>0,i=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,a,o,i,u){var c=0,s=t;return c+=(s=s+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,a,o,i,u){return t+r+o+u>>>0},t.sum64_5_hi=function(e,t,n,r,a,o,i,u,c,s){var l=0,f=t;return l+=(f=f+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,a,o,i,u,c,s){return t+r+o+u+s>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},19340:function(e,t,n){"use strict";n.d(t,{Ep:function(){return v},PP:function(){return l},aU:function(){return r},cP:function(){return m},lX:function(){return c},q_:function(){return s}});var r,a=n(14809);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));var o=function(e){return e};var i="beforeunload",u="popstate";function c(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,c=n.history;function s(){var e=n.location,t=e.pathname,r=e.search,a=e.hash,i=c.state||{};return[i.idx,o({pathname:t,search:r,hash:a,state:i.usr||null,key:i.key||"default"})]}var l=null;n.addEventListener(u,(function(){if(l)w.call(l),l=null;else{var e=r.Pop,t=s(),n=t[0],a=t[1];if(w.length){if(null!=n){var o=g-n;o&&(l={action:e,location:a,retry:function(){P(-1*o)}},P(o))}}else C(e)}}));var f=r.Pop,y=s(),g=y[0],b=y[1],_=d(),w=d();function x(e){return"string"==typeof e?e:v(e)}function k(e,t){return void 0===t&&(t=null),o((0,a.Z)({pathname:b.pathname,hash:"",search:""},"string"==typeof e?m(e):e,{state:t,key:h()}))}function E(e,t){return[{usr:e.state,key:e.key,idx:t},x(e)]}function S(e,t,n){return!w.length||(w.call({action:e,location:t,retry:n}),!1)}function C(e){f=e;var t=s();g=t[0],b=t[1],_.call({action:f,location:b})}function P(e){c.go(e)}null==g&&(g=0,c.replaceState((0,a.Z)({},c.state,{idx:g}),""));var O={get action(){return f},get location(){return b},createHref:x,push:function e(t,a){var o=r.Push,i=k(t,a);if(S(o,i,(function(){e(t,a)}))){var u=E(i,g+1),s=u[0],l=u[1];try{c.pushState(s,"",l)}catch(e){n.location.assign(l)}C(o)}},replace:function e(t,n){var a=r.Replace,o=k(t,n);if(S(a,o,(function(){e(t,n)}))){var i=E(o,g),u=i[0],s=i[1];c.replaceState(u,"",s),C(a)}},go:P,back:function(){P(-1)},forward:function(){P(1)},listen:function(e){return _.push(e)},block:function(e){var t=w.push(e);return 1===w.length&&n.addEventListener(i,p),function(){t(),w.length||n.removeEventListener(i,p)}}};return O}function s(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,c=n.history;function s(){var e=m(n.location.hash.substr(1)),t=e.pathname,r=void 0===t?"/":t,a=e.search,i=void 0===a?"":a,u=e.hash,s=void 0===u?"":u,l=c.state||{};return[l.idx,o({pathname:r,search:i,hash:s,state:l.usr||null,key:l.key||"default"})]}var l=null;function f(){if(l)x.call(l),l=null;else{var e=r.Pop,t=s(),n=t[0],a=t[1];if(x.length){if(null!=n){var o=b-n;o&&(l={action:e,location:a,retry:function(){O(-1*o)}},O(o))}}else P(e)}}n.addEventListener(u,f),n.addEventListener("hashchange",(function(){v(s()[1])!==v(_)&&f()}));var y=r.Pop,g=s(),b=g[0],_=g[1],w=d(),x=d();function k(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var r=n.location.href,a=r.indexOf("#");t=-1===a?r:r.slice(0,a)}return t}()+"#"+("string"==typeof e?e:v(e))}function E(e,t){return void 0===t&&(t=null),o((0,a.Z)({pathname:_.pathname,hash:"",search:""},"string"==typeof e?m(e):e,{state:t,key:h()}))}function S(e,t){return[{usr:e.state,key:e.key,idx:t},k(e)]}function C(e,t,n){return!x.length||(x.call({action:e,location:t,retry:n}),!1)}function P(e){y=e;var t=s();b=t[0],_=t[1],w.call({action:y,location:_})}function O(e){c.go(e)}null==b&&(b=0,c.replaceState((0,a.Z)({},c.state,{idx:b}),""));var j={get action(){return y},get location(){return _},createHref:k,push:function e(t,a){var o=r.Push,i=E(t,a);if(C(o,i,(function(){e(t,a)}))){var u=S(i,b+1),s=u[0],l=u[1];try{c.pushState(s,"",l)}catch(e){n.location.assign(l)}P(o)}},replace:function e(t,n){var a=r.Replace,o=E(t,n);if(C(a,o,(function(){e(t,n)}))){var i=S(o,b),u=i[0],s=i[1];c.replaceState(u,"",s),P(a)}},go:O,back:function(){O(-1)},forward:function(){O(1)},listen:function(e){return w.push(e)},block:function(e){var t=x.push(e);return 1===x.length&&n.addEventListener(i,p),function(){t(),x.length||n.removeEventListener(i,p)}}};return j}function l(e){void 0===e&&(e={});var t=e,n=t.initialEntries,i=void 0===n?["/"]:n,u=t.initialIndex,c=i.map((function(e){return o((0,a.Z)({pathname:"/",search:"",hash:"",state:null,key:h()},"string"==typeof e?m(e):e))})),s=f(null==u?c.length-1:u,0,c.length-1),l=r.Pop,p=c[s],y=d(),g=d();function b(e,t){return void 0===t&&(t=null),o((0,a.Z)({pathname:p.pathname,search:"",hash:""},"string"==typeof e?m(e):e,{state:t,key:h()}))}function _(e,t,n){return!g.length||(g.call({action:e,location:t,retry:n}),!1)}function w(e,t){l=e,p=t,y.call({action:l,location:p})}function x(e){var t=f(s+e,0,c.length-1),n=r.Pop,a=c[t];_(n,a,(function(){x(e)}))&&(s=t,w(n,a))}var k={get index(){return s},get action(){return l},get location(){return p},createHref:function(e){return"string"==typeof e?e:v(e)},push:function e(t,n){var a=r.Push,o=b(t,n);_(a,o,(function(){e(t,n)}))&&(s+=1,c.splice(s,c.length,o),w(a,o))},replace:function e(t,n){var a=r.Replace,o=b(t,n);_(a,o,(function(){e(t,n)}))&&(c[s]=o,w(a,o))},go:x,back:function(){x(-1)},forward:function(){x(1)},listen:function(e){return y.push(e)},block:function(e){return g.push(e)}};return k}function f(e,t,n){return Math.min(Math.max(e,t),n)}function p(e){e.preventDefault(),e.returnValue=""}function d(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function h(){return Math.random().toString(36).substr(2,8)}function v(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,a=void 0===r?"":r,o=e.hash,i=void 0===o?"":o;return a&&"?"!==a&&(n+="?"===a.charAt(0)?a:"?"+a),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}function m(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}},94266:function(e,t,n){"use strict";var r=n(99234),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(e){return r.isMemo(e)?i:u[e.$$typeof]||a}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=i;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var a=d(n);a&&a!==h&&e(t,a,r)}var i=l(n);f&&(i=i.concat(f(n)));for(var u=c(t),v=c(n),m=0;m1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,u&&a(n[0],n[1],u)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1&&e%1==0&&e-1}},54238:function(e,t,n){var r=n(67971);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},35365:function(e,t,n){var r=n(76414),a=n(99746),o=n(40164);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||a),string:new r}}},63765:function(e,t,n){var r=n(89819);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},12608:function(e,t,n){var r=n(89819);e.exports=function(e){return r(this,e).get(e)}},10203:function(e,t,n){var r=n(89819);e.exports=function(e){return r(this,e).has(e)}},11298:function(e,t,n){var r=n(89819);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},65294:function(e,t,n){var r=n(73893)(Object,"create");e.exports=r},97817:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},52495:function(e,t,n){e=n.nmd(e);var r=n(37675),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,i=o&&o.exports===a&&r.process,u=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=u},74702:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},31030:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},19652:function(e,t,n){var r=n(79628),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,u=a(o.length-t,0),c=Array(u);++i0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},31119:function(e,t,n){var r=n(99746);e.exports=function(){this.__data__=new r,this.size=0}},64399:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},81897:function(e){e.exports=function(e){return this.__data__.get(e)}},90558:function(e){e.exports=function(e){return this.__data__.has(e)}},64841:function(e,t,n){var r=n(99746),a=n(40164),o=n(52166);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!a||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(i)}return n.set(e,t),this.size=n.size,this}},63256:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},13503:function(e){e.exports=function(e){return function(){return e}}},43607:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},46962:function(e){e.exports=function(e){return e}},13053:function(e,t,n){var r=n(4977),a=n(93913),o=Object.prototype,i=o.hasOwnProperty,u=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return a(e)&&i.call(e,"callee")&&!u.call(e,"callee")};e.exports=c},80744:function(e){var t=Array.isArray;e.exports=t},24665:function(e,t,n){var r=n(9363),a=n(11156);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},41590:function(e,t,n){var r=n(24665),a=n(93913);e.exports=function(e){return a(e)&&r(e)}},57835:function(e,t,n){e=n.nmd(e);var r=n(33152),a=n(55950),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,u=i&&i.exports===o?r.Buffer:void 0,c=(u?u.isBuffer:void 0)||a;e.exports=c},9363:function(e,t,n){var r=n(86756),a=n(20816);e.exports=function(e){if(!a(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},11156:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},20816:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},93913:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},19308:function(e,t,n){var r=n(86756),a=n(49217),o=n(93913),i=Function.prototype,u=Object.prototype,c=i.toString,s=u.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=a(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},18397:function(e,t,n){var r=n(10766),a=n(38342),o=n(52495),i=o&&o.isTypedArray,u=i?a(i):r;e.exports=u},56730:function(e,t,n){var r=n(63333),a=n(33988),o=n(24665);e.exports=function(e){return o(e)?r(e,!0):a(e)}},89392:function(e,t,n){var r;e=n.nmd(e),function(){var a,o="Expected a function",i="__lodash_hash_undefined__",u="__lodash_placeholder__",c=16,s=32,l=64,f=128,p=256,d=1/0,h=9007199254740991,v=NaN,m=4294967295,y=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",s],["partialRight",l],["rearg",p]],g="[object Arguments]",b="[object Array]",_="[object Boolean]",w="[object Date]",x="[object Error]",k="[object Function]",E="[object GeneratorFunction]",S="[object Map]",C="[object Number]",P="[object Object]",O="[object Promise]",j="[object RegExp]",A="[object Set]",T="[object String]",I="[object Symbol]",M="[object WeakMap]",R="[object ArrayBuffer]",L="[object DataView]",Z="[object Float32Array]",D="[object Float64Array]",N="[object Int8Array]",$="[object Int16Array]",F="[object Int32Array]",B="[object Uint8Array]",q="[object Uint8ClampedArray]",z="[object Uint16Array]",H="[object Uint32Array]",U=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,K=RegExp(G.source),X=RegExp(Y.source),Q=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ae.source),ie=/^\s+/,ue=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ve=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Pe="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",je="\\ufe0e\\ufe0f",Ae="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Ie="["+Ee+"]",Me="["+Ae+"]",Re="["+Se+"]",Le="\\d+",Ze="["+Ce+"]",De="["+Pe+"]",Ne="[^"+Ee+Ae+Le+Ce+Pe+Oe+"]",$e="\\ud83c[\\udffb-\\udfff]",Fe="[^"+Ee+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Oe+"]",He="\\u200d",Ue="(?:"+De+"|"+Ne+")",We="(?:"+ze+"|"+Ne+")",Ve="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+Re+"|"+$e+")"+"?",Ke="["+je+"]?",Xe=Ke+Ye+("(?:"+He+"(?:"+[Fe,Be,qe].join("|")+")"+Ke+Ye+")*"),Qe="(?:"+[Ze,Be,qe].join("|")+")"+Xe,Je="(?:"+[Fe+Re+"?",Re,Be,qe,Ie].join("|")+")",et=RegExp(Te,"g"),tt=RegExp(Re,"g"),nt=RegExp($e+"(?="+$e+")|"+Je+Xe,"g"),rt=RegExp([ze+"?"+De+"+"+Ve+"(?="+[Me,ze,"$"].join("|")+")",We+"+"+Ge+"(?="+[Me,ze+Ue,"$"].join("|")+")",ze+"?"+Ue+"+"+Ve,ze+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,Qe].join("|"),"g"),at=RegExp("["+He+Ee+Se+je+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ut=-1,ct={};ct[Z]=ct[D]=ct[N]=ct[$]=ct[F]=ct[B]=ct[q]=ct[z]=ct[H]=!0,ct[g]=ct[b]=ct[R]=ct[_]=ct[L]=ct[w]=ct[x]=ct[k]=ct[S]=ct[C]=ct[P]=ct[j]=ct[A]=ct[T]=ct[M]=!1;var st={};st[g]=st[b]=st[R]=st[L]=st[_]=st[w]=st[Z]=st[D]=st[N]=st[$]=st[F]=st[S]=st[C]=st[P]=st[j]=st[A]=st[T]=st[I]=st[B]=st[q]=st[z]=st[H]=!0,st[x]=st[k]=st[M]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ft=parseFloat,pt=parseInt,dt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,vt=dt||ht||Function("return this")(),mt=t&&!t.nodeType&&t,yt=mt&&e&&!e.nodeType&&e,gt=yt&&yt.exports===mt,bt=gt&&dt.process,_t=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(e){}}(),wt=_t&&_t.isArrayBuffer,xt=_t&&_t.isDate,kt=_t&&_t.isMap,Et=_t&&_t.isRegExp,St=_t&&_t.isSet,Ct=_t&&_t.isTypedArray;function Pt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ot(e,t,n,r){for(var a=-1,o=null==e?0:e.length;++a-1}function Rt(e,t,n){for(var r=-1,a=null==e?0:e.length;++r-1;);return n}function rn(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}function an(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var on=Gt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),un=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function cn(e){return"\\"+lt[e]}function sn(e){return at.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function fn(e,t){return function(n){return e(t(n))}}function pn(e,t){for(var n=-1,r=e.length,a=0,o=[];++n",""":'"',"'":"'"});var bn=function e(t){var n,r=(t=null==t?vt:bn.defaults(vt.Object(),t,bn.pick(vt,it))).Array,ue=t.Date,Ee=t.Error,Se=t.Function,Ce=t.Math,Pe=t.Object,Oe=t.RegExp,je=t.String,Ae=t.TypeError,Te=r.prototype,Ie=Se.prototype,Me=Pe.prototype,Re=t["__core-js_shared__"],Le=Ie.toString,Ze=Me.hasOwnProperty,De=0,Ne=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",$e=Me.toString,Fe=Le.call(Pe),Be=vt._,qe=Oe("^"+Le.call(Ze).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=gt?t.Buffer:a,He=t.Symbol,Ue=t.Uint8Array,We=ze?ze.allocUnsafe:a,Ve=fn(Pe.getPrototypeOf,Pe),Ge=Pe.create,Ye=Me.propertyIsEnumerable,Ke=Te.splice,Xe=He?He.isConcatSpreadable:a,Qe=He?He.iterator:a,Je=He?He.toStringTag:a,nt=function(){try{var e=ho(Pe,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==vt.clearTimeout&&t.clearTimeout,lt=ue&&ue.now!==vt.Date.now&&ue.now,dt=t.setTimeout!==vt.setTimeout&&t.setTimeout,ht=Ce.ceil,mt=Ce.floor,yt=Pe.getOwnPropertySymbols,bt=ze?ze.isBuffer:a,_t=t.isFinite,Ft=Te.join,Gt=fn(Pe.keys,Pe),_n=Ce.max,wn=Ce.min,xn=ue.now,kn=t.parseInt,En=Ce.random,Sn=Te.reverse,Cn=ho(t,"DataView"),Pn=ho(t,"Map"),On=ho(t,"Promise"),jn=ho(t,"Set"),An=ho(t,"WeakMap"),Tn=ho(Pe,"create"),In=An&&new An,Mn={},Rn=Bo(Cn),Ln=Bo(Pn),Zn=Bo(On),Dn=Bo(jn),Nn=Bo(An),$n=He?He.prototype:a,Fn=$n?$n.valueOf:a,Bn=$n?$n.toString:a;function qn(e){if(au(e)&&!Vi(e)&&!(e instanceof Wn)){if(e instanceof Un)return e;if(Ze.call(e,"__wrapped__"))return qo(e)}return new Un(e)}var zn=function(){function e(){}return function(t){if(!ru(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function Hn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function lr(e,t,n,r,o,i){var u,c=1&t,s=2&t,l=4&t;if(n&&(u=o?n(e,r,o,i):n(e)),u!==a)return u;if(!ru(e))return e;var f=Vi(e);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ze.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Ta(e,u)}else{var p=yo(e),d=p==k||p==E;if(Xi(e))return Sa(e,c);if(p==P||p==g||d&&!o){if(u=s||d?{}:bo(e),!c)return s?function(e,t){return Ia(e,mo(e),t)}(e,function(e,t){return e&&Ia(t,Lu(t),e)}(u,e)):function(e,t){return Ia(e,vo(e),t)}(e,ir(u,e))}else{if(!st[p])return o?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case R:return Ca(e);case _:case w:return new r(+e);case L:return function(e,t){var n=t?Ca(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case Z:case D:case N:case $:case F:case B:case q:case z:case H:return Pa(e,n);case S:return new r;case C:case T:return new r(e);case j:return function(e){var t=new e.constructor(e.source,ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new r;case I:return a=e,Fn?Pe(Fn.call(a)):{}}var a}(e,p,c)}}i||(i=new Xn);var h=i.get(e);if(h)return h;i.set(e,u),su(e)?e.forEach((function(r){u.add(lr(r,t,n,r,e,i))})):ou(e)&&e.forEach((function(r,a){u.set(a,lr(r,t,n,a,e,i))}));var v=f?a:(l?s?io:oo:s?Lu:Ru)(e);return jt(v||e,(function(r,a){v&&(r=e[a=r]),rr(u,a,lr(r,t,n,a,e,i))})),u}function fr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Pe(e);r--;){var o=n[r],i=t[o],u=e[o];if(u===a&&!(o in e)||!i(u))return!1}return!0}function pr(e,t,n){if("function"!=typeof e)throw new Ae(o);return Ro((function(){e.apply(a,n)}),t)}function dr(e,t,n,r){var a=-1,o=Mt,i=!0,u=e.length,c=[],s=t.length;if(!u)return c;n&&(t=Lt(t,Jt(n))),r?(o=Rt,i=!1):t.length>=200&&(o=tn,i=!1,t=new Kn(t));e:for(;++a-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=ar(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(Pn||Gn),string:new Vn}},Yn.prototype.delete=function(e){var t=fo(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return fo(this,e).get(e)},Yn.prototype.has=function(e){return fo(this,e).has(e)},Yn.prototype.set=function(e,t){var n=fo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,i),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var hr=La(xr),vr=La(kr,!0);function mr(e,t){var n=!0;return hr(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function yr(e,t,n){for(var r=-1,o=e.length;++r0&&n(u)?t>1?br(u,t-1,n,r,a):Zt(a,u):r||(a[a.length]=u)}return a}var _r=Za(),wr=Za(!0);function xr(e,t){return e&&_r(e,t,Ru)}function kr(e,t){return e&&wr(e,t,Ru)}function Er(e,t){return It(t,(function(t){return eu(e[t])}))}function Sr(e,t){for(var n=0,r=(t=wa(t,e)).length;null!=e&&nt}function jr(e,t){return null!=e&&Ze.call(e,t)}function Ar(e,t){return null!=e&&t in Pe(e)}function Tr(e,t,n){for(var o=n?Rt:Mt,i=e[0].length,u=e.length,c=u,s=r(u),l=1/0,f=[];c--;){var p=e[c];c&&t&&(p=Lt(p,Jt(t))),l=wn(p.length,l),s[c]=!n&&(t||i>=120&&p.length>=120)?new Kn(c&&p):a}p=e[0];var d=-1,h=s[0];e:for(;++d=u?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Vr(e,t,n){for(var r=-1,a=t.length,o={};++r-1;)u!==e&&Ke.call(u,c,1),Ke.call(e,c,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==o){var o=a;wo(a)?Ke.call(e,a,1):da(e,a)}}return e}function Kr(e,t){return e+mt(En()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Lo(jo(e,t,ic),e+"")}function Jr(e){return Jn(zu(e))}function ea(e,t){var n=zu(e);return No(n,sr(t,0,n.length))}function ta(e,t,n,r){if(!ru(e))return e;for(var o=-1,i=(t=wa(t,e)).length,u=i-1,c=e;null!=c&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=r(o);++a>>1,i=e[o];null!==i&&!fu(i)&&(n?i<=t:i=200){var s=t?null:Xa(e);if(s)return dn(s);i=!1,a=tn,c=new Kn}else c=t?[]:u;e:for(;++r=r?e:oa(e,t,n)}var Ea=at||function(e){return vt.clearTimeout(e)};function Sa(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function Ca(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Pa(e,t){var n=t?Ca(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Oa(e,t){if(e!==t){var n=e!==a,r=null===e,o=e==e,i=fu(e),u=t!==a,c=null===t,s=t==t,l=fu(t);if(!c&&!l&&!i&&e>t||i&&u&&s&&!c&&!l||r&&u&&s||!n&&s||!o)return 1;if(!r&&!i&&!l&&e1?n[o-1]:a,u=o>2?n[2]:a;for(i=e.length>3&&"function"==typeof i?(o--,i):a,u&&xo(n[0],n[1],u)&&(i=o<3?a:i,o=1),t=Pe(t);++r-1?o[i?t[u]:u]:a}}function Ba(e){return ao((function(t){var n=t.length,r=n,i=Un.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new Ae(o);if(i&&!c&&"wrapper"==co(u))var c=new Un([],!0)}for(r=c?r:n;++r1&&b.reverse(),d&&lc))return!1;var l=i.get(e),f=i.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&n?new Kn:a;for(i.set(e,t),i.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return jt(y,(function(n){var r="_."+n[0];t&n[1]&&!Mt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(le):[]}(r),n)))}function Do(e){var t=0,n=0;return function(){var r=xn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}function No(e,t){var n=-1,r=e.length,o=r-1;for(t=t===a?r:t;++n1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,ci(e,n)}));function vi(e){var t=qn(e);return t.__chain__=!0,t}function mi(e,t){return t(e)}var yi=ao((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return cr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&wo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:mi,args:[o],thisArg:a}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(o)}));var gi=Ma((function(e,t,n){Ze.call(e,n)?++e[n]:ur(e,n,1)}));var bi=Fa(Wo),_i=Fa(Vo);function wi(e,t){return(Vi(e)?jt:hr)(e,lo(t,3))}function xi(e,t){return(Vi(e)?At:vr)(e,lo(t,3))}var ki=Ma((function(e,t,n){Ze.call(e,n)?e[n].push(t):ur(e,n,[t])}));var Ei=Qr((function(e,t,n){var a=-1,o="function"==typeof t,i=Yi(e)?r(e.length):[];return hr(e,(function(e){i[++a]=o?Pt(t,e,n):Ir(e,t,n)})),i})),Si=Ma((function(e,t,n){ur(e,n,t)}));function Ci(e,t){return(Vi(e)?Lt:Br)(e,lo(t,3))}var Pi=Ma((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Oi=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xo(e,t[0],t[1])?t=[]:n>2&&xo(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,br(t,1),[])})),ji=lt||function(){return vt.Date.now()};function Ai(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Ja(e,f,a,a,a,a,t)}function Ti(e,t){var n;if("function"!=typeof t)throw new Ae(o);return e=yu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Ii=Qr((function(e,t,n){var r=1;if(n.length){var a=pn(n,so(Ii));r|=s}return Ja(e,r,t,n,a)})),Mi=Qr((function(e,t,n){var r=3;if(n.length){var a=pn(n,so(Mi));r|=s}return Ja(t,r,e,n,a)}));function Ri(e,t,n){var r,i,u,c,s,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Ae(o);function v(t){var n=r,o=i;return r=i=a,f=t,c=e.apply(o,n)}function m(e){return f=e,s=Ro(g,t),p?v(e):c}function y(e){var n=e-l;return l===a||n>=t||n<0||d&&e-f>=u}function g(){var e=ji();if(y(e))return b(e);s=Ro(g,function(e){var n=t-(e-l);return d?wn(n,u-(e-f)):n}(e))}function b(e){return s=a,h&&r?v(e):(r=i=a,c)}function _(){var e=ji(),n=y(e);if(r=arguments,i=this,l=e,n){if(s===a)return m(l);if(d)return Ea(s),s=Ro(g,t),v(l)}return s===a&&(s=Ro(g,t)),c}return t=bu(t)||0,ru(n)&&(p=!!n.leading,u=(d="maxWait"in n)?_n(bu(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),_.cancel=function(){s!==a&&Ea(s),f=0,r=l=i=s=a},_.flush=function(){return s===a?c:b(ji())},_}var Li=Qr((function(e,t){return pr(e,1,t)})),Zi=Qr((function(e,t,n){return pr(e,bu(t)||0,n)}));function Di(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ae(o);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(Di.Cache||Yn),n}function Ni(e){if("function"!=typeof e)throw new Ae(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Di.Cache=Yn;var $i=xa((function(e,t){var n=(t=1==t.length&&Vi(t[0])?Lt(t[0],Jt(lo())):Lt(br(t,1),Jt(lo()))).length;return Qr((function(r){for(var a=-1,o=wn(r.length,n);++a=t})),Wi=Mr(function(){return arguments}())?Mr:function(e){return au(e)&&Ze.call(e,"callee")&&!Ye.call(e,"callee")},Vi=r.isArray,Gi=wt?Jt(wt):function(e){return au(e)&&Pr(e)==R};function Yi(e){return null!=e&&nu(e.length)&&!eu(e)}function Ki(e){return au(e)&&Yi(e)}var Xi=bt||bc,Qi=xt?Jt(xt):function(e){return au(e)&&Pr(e)==w};function Ji(e){if(!au(e))return!1;var t=Pr(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!uu(e)}function eu(e){if(!ru(e))return!1;var t=Pr(e);return t==k||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function tu(e){return"number"==typeof e&&e==yu(e)}function nu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ru(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function au(e){return null!=e&&"object"==typeof e}var ou=kt?Jt(kt):function(e){return au(e)&&yo(e)==S};function iu(e){return"number"==typeof e||au(e)&&Pr(e)==C}function uu(e){if(!au(e)||Pr(e)!=P)return!1;var t=Ve(e);if(null===t)return!0;var n=Ze.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==Fe}var cu=Et?Jt(Et):function(e){return au(e)&&Pr(e)==j};var su=St?Jt(St):function(e){return au(e)&&yo(e)==A};function lu(e){return"string"==typeof e||!Vi(e)&&au(e)&&Pr(e)==T}function fu(e){return"symbol"==typeof e||au(e)&&Pr(e)==I}var pu=Ct?Jt(Ct):function(e){return au(e)&&nu(e.length)&&!!ct[Pr(e)]};var du=Ga(Fr),hu=Ga((function(e,t){return e<=t}));function vu(e){if(!e)return[];if(Yi(e))return lu(e)?mn(e):Ta(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=yo(e);return(t==S?ln:t==A?dn:zu)(e)}function mu(e){return e?(e=bu(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function yu(e){var t=mu(e),n=t%1;return t==t?n?t-n:t:0}function gu(e){return e?sr(yu(e),0,m):0}function bu(e){if("number"==typeof e)return e;if(fu(e))return v;if(ru(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ru(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ye.test(e);return n||be.test(e)?pt(e.slice(2),n?2:8):me.test(e)?v:+e}function _u(e){return Ia(e,Lu(e))}function wu(e){return null==e?"":fa(e)}var xu=Ra((function(e,t){if(Co(t)||Yi(t))Ia(t,Ru(t),e);else for(var n in t)Ze.call(t,n)&&rr(e,n,t[n])})),ku=Ra((function(e,t){Ia(t,Lu(t),e)})),Eu=Ra((function(e,t,n,r){Ia(t,Lu(t),e,r)})),Su=Ra((function(e,t,n,r){Ia(t,Ru(t),e,r)})),Cu=ao(cr);var Pu=Qr((function(e,t){e=Pe(e);var n=-1,r=t.length,o=r>2?t[2]:a;for(o&&xo(t[0],t[1],o)&&(r=1);++n1),t})),Ia(e,io(e),n),r&&(n=lr(n,7,no));for(var a=t.length;a--;)da(n,t[a]);return n}));var $u=ao((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Au(e,n)}))}(e,t)}));function Fu(e,t){if(null==e)return{};var n=Lt(io(e),(function(e){return[e]}));return t=lo(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Bu=Qa(Ru),qu=Qa(Lu);function zu(e){return null==e?[]:en(e,Ru(e))}var Hu=Na((function(e,t,n){return t=t.toLowerCase(),e+(n?Uu(t):t)}));function Uu(e){return Ju(wu(e).toLowerCase())}function Wu(e){return(e=wu(e))&&e.replace(we,on).replace(tt,"")}var Vu=Na((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gu=Na((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Yu=Da("toLowerCase");var Ku=Na((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xu=Na((function(e,t,n){return e+(n?" ":"")+Ju(t)}));var Qu=Na((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ju=Da("toUpperCase");function ec(e,t,n){return e=wu(e),(t=n?a:t)===a?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}var tc=Qr((function(e,t){try{return Pt(e,a,t)}catch(e){return Ji(e)?e:new Ee(e)}})),nc=ao((function(e,t){return jt(t,(function(t){t=Fo(t),ur(e,t,Ii(e[t],e))})),e}));function rc(e){return function(){return e}}var ac=Ba(),oc=Ba(!0);function ic(e){return e}function uc(e){return Dr("function"==typeof e?e:lr(e,1))}var cc=Qr((function(e,t){return function(n){return Ir(n,e,t)}})),sc=Qr((function(e,t){return function(n){return Ir(e,n,t)}}));function lc(e,t,n){var r=Ru(t),a=Er(t,r);null!=n||ru(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=Er(t,Ru(t)));var o=!(ru(n)&&"chain"in n&&!n.chain),i=eu(e);return jt(a,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),a=n.__actions__=Ta(this.__actions__);return a.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Zt([this.value()],arguments))})})),e}function fc(){}var pc=Ua(Lt),dc=Ua(Tt),hc=Ua($t);function vc(e){return ko(e)?Vt(Fo(e)):function(e){return function(t){return Sr(t,e)}}(e)}var mc=Va(),yc=Va(!0);function gc(){return[]}function bc(){return!1}var _c=Ha((function(e,t){return e+t}),0),wc=Ka("ceil"),xc=Ha((function(e,t){return e/t}),1),kc=Ka("floor");var Ec,Sc=Ha((function(e,t){return e*t}),1),Cc=Ka("round"),Pc=Ha((function(e,t){return e-t}),0);return qn.after=function(e,t){if("function"!=typeof t)throw new Ae(o);return e=yu(e),function(){if(--e<1)return t.apply(this,arguments)}},qn.ary=Ai,qn.assign=xu,qn.assignIn=ku,qn.assignInWith=Eu,qn.assignWith=Su,qn.at=Cu,qn.before=Ti,qn.bind=Ii,qn.bindAll=nc,qn.bindKey=Mi,qn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Vi(e)?e:[e]},qn.chain=vi,qn.chunk=function(e,t,n){t=(n?xo(e,t,n):t===a)?1:_n(yu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,u=0,c=r(ht(o/t));io?0:o+n),(r=r===a||r>o?o:yu(r))<0&&(r+=o),r=n>r?0:gu(r);n>>0)?(e=wu(e))&&("string"==typeof t||null!=t&&!cu(t))&&!(t=fa(t))&&sn(e)?ka(mn(e),0,n):e.split(t,n):[]},qn.spread=function(e,t){if("function"!=typeof e)throw new Ae(o);return t=null==t?0:_n(yu(t),0),Qr((function(n){var r=n[t],a=ka(n,0,t);return r&&Zt(a,r),Pt(e,this,a)}))},qn.tail=function(e){var t=null==e?0:e.length;return t?oa(e,1,t):[]},qn.take=function(e,t,n){return e&&e.length?oa(e,0,(t=n||t===a?1:yu(t))<0?0:t):[]},qn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oa(e,(t=r-(t=n||t===a?1:yu(t)))<0?0:t,r):[]},qn.takeRightWhile=function(e,t){return e&&e.length?va(e,lo(t,3),!1,!0):[]},qn.takeWhile=function(e,t){return e&&e.length?va(e,lo(t,3)):[]},qn.tap=function(e,t){return t(e),e},qn.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new Ae(o);return ru(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Ri(e,t,{leading:r,maxWait:t,trailing:a})},qn.thru=mi,qn.toArray=vu,qn.toPairs=Bu,qn.toPairsIn=qu,qn.toPath=function(e){return Vi(e)?Lt(e,Fo):fu(e)?[e]:Ta($o(wu(e)))},qn.toPlainObject=_u,qn.transform=function(e,t,n){var r=Vi(e),a=r||Xi(e)||pu(e);if(t=lo(t,4),null==n){var o=e&&e.constructor;n=a?r?new o:[]:ru(e)&&eu(o)?zn(Ve(e)):{}}return(a?jt:xr)(e,(function(e,r,a){return t(n,e,r,a)})),n},qn.unary=function(e){return Ai(e,1)},qn.union=ai,qn.unionBy=oi,qn.unionWith=ii,qn.uniq=function(e){return e&&e.length?pa(e):[]},qn.uniqBy=function(e,t){return e&&e.length?pa(e,lo(t,2)):[]},qn.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?pa(e,a,t):[]},qn.unset=function(e,t){return null==e||da(e,t)},qn.unzip=ui,qn.unzipWith=ci,qn.update=function(e,t,n){return null==e?e:ha(e,t,_a(n))},qn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:ha(e,t,_a(n),r)},qn.values=zu,qn.valuesIn=function(e){return null==e?[]:en(e,Lu(e))},qn.without=si,qn.words=ec,qn.wrap=function(e,t){return Fi(_a(t),e)},qn.xor=li,qn.xorBy=fi,qn.xorWith=pi,qn.zip=di,qn.zipObject=function(e,t){return ga(e||[],t||[],rr)},qn.zipObjectDeep=function(e,t){return ga(e||[],t||[],ta)},qn.zipWith=hi,qn.entries=Bu,qn.entriesIn=qu,qn.extend=ku,qn.extendWith=Eu,lc(qn,qn),qn.add=_c,qn.attempt=tc,qn.camelCase=Hu,qn.capitalize=Uu,qn.ceil=wc,qn.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=bu(n))==n?n:0),t!==a&&(t=(t=bu(t))==t?t:0),sr(bu(e),t,n)},qn.clone=function(e){return lr(e,4)},qn.cloneDeep=function(e){return lr(e,5)},qn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:a)},qn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:a)},qn.conformsTo=function(e,t){return null==t||fr(e,t,Ru(t))},qn.deburr=Wu,qn.defaultTo=function(e,t){return null==e||e!=e?t:e},qn.divide=xc,qn.endsWith=function(e,t,n){e=wu(e),t=fa(t);var r=e.length,o=n=n===a?r:sr(yu(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},qn.eq=zi,qn.escape=function(e){return(e=wu(e))&&X.test(e)?e.replace(Y,un):e},qn.escapeRegExp=function(e){return(e=wu(e))&&oe.test(e)?e.replace(ae,"\\$&"):e},qn.every=function(e,t,n){var r=Vi(e)?Tt:mr;return n&&xo(e,t,n)&&(t=a),r(e,lo(t,3))},qn.find=bi,qn.findIndex=Wo,qn.findKey=function(e,t){return Bt(e,lo(t,3),xr)},qn.findLast=_i,qn.findLastIndex=Vo,qn.findLastKey=function(e,t){return Bt(e,lo(t,3),kr)},qn.floor=kc,qn.forEach=wi,qn.forEachRight=xi,qn.forIn=function(e,t){return null==e?e:_r(e,lo(t,3),Lu)},qn.forInRight=function(e,t){return null==e?e:wr(e,lo(t,3),Lu)},qn.forOwn=function(e,t){return e&&xr(e,lo(t,3))},qn.forOwnRight=function(e,t){return e&&kr(e,lo(t,3))},qn.get=ju,qn.gt=Hi,qn.gte=Ui,qn.has=function(e,t){return null!=e&&go(e,t,jr)},qn.hasIn=Au,qn.head=Yo,qn.identity=ic,qn.includes=function(e,t,n,r){e=Yi(e)?e:zu(e),n=n&&!r?yu(n):0;var a=e.length;return n<0&&(n=_n(a+n,0)),lu(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&zt(e,t,n)>-1},qn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:yu(n);return a<0&&(a=_n(r+a,0)),zt(e,t,a)},qn.inRange=function(e,t,n){return t=mu(t),n===a?(n=t,t=0):n=mu(n),function(e,t,n){return e>=wn(t,n)&&e<_n(t,n)}(e=bu(e),t,n)},qn.invoke=Mu,qn.isArguments=Wi,qn.isArray=Vi,qn.isArrayBuffer=Gi,qn.isArrayLike=Yi,qn.isArrayLikeObject=Ki,qn.isBoolean=function(e){return!0===e||!1===e||au(e)&&Pr(e)==_},qn.isBuffer=Xi,qn.isDate=Qi,qn.isElement=function(e){return au(e)&&1===e.nodeType&&!uu(e)},qn.isEmpty=function(e){if(null==e)return!0;if(Yi(e)&&(Vi(e)||"string"==typeof e||"function"==typeof e.splice||Xi(e)||pu(e)||Wi(e)))return!e.length;var t=yo(e);if(t==S||t==A)return!e.size;if(Co(e))return!Nr(e).length;for(var n in e)if(Ze.call(e,n))return!1;return!0},qn.isEqual=function(e,t){return Rr(e,t)},qn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:a)?n(e,t):a;return r===a?Rr(e,t,a,n):!!r},qn.isError=Ji,qn.isFinite=function(e){return"number"==typeof e&&_t(e)},qn.isFunction=eu,qn.isInteger=tu,qn.isLength=nu,qn.isMap=ou,qn.isMatch=function(e,t){return e===t||Lr(e,t,po(t))},qn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:a,Lr(e,t,po(t),n)},qn.isNaN=function(e){return iu(e)&&e!=+e},qn.isNative=function(e){if(So(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Zr(e)},qn.isNil=function(e){return null==e},qn.isNull=function(e){return null===e},qn.isNumber=iu,qn.isObject=ru,qn.isObjectLike=au,qn.isPlainObject=uu,qn.isRegExp=cu,qn.isSafeInteger=function(e){return tu(e)&&e>=-9007199254740991&&e<=h},qn.isSet=su,qn.isString=lu,qn.isSymbol=fu,qn.isTypedArray=pu,qn.isUndefined=function(e){return e===a},qn.isWeakMap=function(e){return au(e)&&yo(e)==M},qn.isWeakSet=function(e){return au(e)&&"[object WeakSet]"==Pr(e)},qn.join=function(e,t){return null==e?"":Ft.call(e,t)},qn.kebabCase=Vu,qn.last=Jo,qn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==a&&(o=(o=yu(n))<0?_n(r+o,0):wn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):qt(e,Ut,o,!0)},qn.lowerCase=Gu,qn.lowerFirst=Yu,qn.lt=du,qn.lte=hu,qn.max=function(e){return e&&e.length?yr(e,ic,Or):a},qn.maxBy=function(e,t){return e&&e.length?yr(e,lo(t,2),Or):a},qn.mean=function(e){return Wt(e,ic)},qn.meanBy=function(e,t){return Wt(e,lo(t,2))},qn.min=function(e){return e&&e.length?yr(e,ic,Fr):a},qn.minBy=function(e,t){return e&&e.length?yr(e,lo(t,2),Fr):a},qn.stubArray=gc,qn.stubFalse=bc,qn.stubObject=function(){return{}},qn.stubString=function(){return""},qn.stubTrue=function(){return!0},qn.multiply=Sc,qn.nth=function(e,t){return e&&e.length?Ur(e,yu(t)):a},qn.noConflict=function(){return vt._===this&&(vt._=Be),this},qn.noop=fc,qn.now=ji,qn.pad=function(e,t,n){e=wu(e);var r=(t=yu(t))?vn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Wa(mt(a),n)+e+Wa(ht(a),n)},qn.padEnd=function(e,t,n){e=wu(e);var r=(t=yu(t))?vn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=En();return wn(e+o*(t-e+ft("1e-"+((o+"").length-1))),t)}return Kr(e,t)},qn.reduce=function(e,t,n){var r=Vi(e)?Dt:Yt,a=arguments.length<3;return r(e,lo(t,4),n,a,hr)},qn.reduceRight=function(e,t,n){var r=Vi(e)?Nt:Yt,a=arguments.length<3;return r(e,lo(t,4),n,a,vr)},qn.repeat=function(e,t,n){return t=(n?xo(e,t,n):t===a)?1:yu(t),Xr(wu(e),t)},qn.replace=function(){var e=arguments,t=wu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},qn.result=function(e,t,n){var r=-1,o=(t=wa(t,e)).length;for(o||(o=1,e=a);++rh)return[];var n=m,r=wn(e,m);t=lo(t),e-=m;for(var a=Xt(r,t);++n=i)return e;var c=n-vn(r);if(c<1)return r;var s=u?ka(u,0,c).join(""):e.slice(0,c);if(o===a)return s+r;if(u&&(c+=s.length-c),cu(o)){if(e.slice(c).search(o)){var l,f=s;for(o.global||(o=Oe(o.source,wu(ve.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var p=l.index;s=s.slice(0,p===a?c:p)}}else if(e.indexOf(fa(o),c)!=c){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+r},qn.unescape=function(e){return(e=wu(e))&&K.test(e)?e.replace(G,gn):e},qn.uniqueId=function(e){var t=++De;return wu(e)+t},qn.upperCase=Qu,qn.upperFirst=Ju,qn.each=wi,qn.eachRight=xi,qn.first=Yo,lc(qn,(Ec={},xr(qn,(function(e,t){Ze.call(qn.prototype,t)||(Ec[t]=e)})),Ec),{chain:!1}),qn.VERSION="4.17.21",jt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){qn[e].placeholder=qn})),jt(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===a?1:_n(yu(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),jt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:lo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),jt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),jt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ic)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Ir(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Ni(lo(e)))},Wn.prototype.slice=function(e,t){e=yu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=yu(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(m)},xr(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=qn[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(qn.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,c=t instanceof Wn,s=u[0],l=c||Vi(t),f=function(e){var t=o.apply(qn,Zt([e],u));return r&&p?t[0]:t};l&&n&&"function"==typeof s&&1!=s.length&&(c=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=i&&!p,v=c&&!d;if(!i&&l){t=v?t:new Wn(this);var m=e.apply(t,u);return m.__actions__.push({func:mi,args:[f],thisArg:a}),new Un(m,p)}return h&&v?e.apply(this,u):(m=this.thru(f),h?r?m.value()[0]:m.value():m)})})),jt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);qn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(Vi(a)?a:[],e)}return this[n]((function(n){return t.apply(Vi(n)?n:[],e)}))}})),xr(Wn.prototype,(function(e,t){var n=qn[t];if(n){var r=n.name+"";Ze.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}})),Mn[qa(a,2).name]=[{name:"wrapper",func:a}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Ta(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ta(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ta(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Vi(e),r=t<0,a=n?e.length:0,o=function(e,t,n){var r=-1,a=n.length;for(;++r=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},qn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=qo(n);r.__index__=0,r.__values__=a,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},qn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:mi,args:[ri],thisArg:a}),new Un(t,this.__chain__)}return this.thru(ri)},qn.prototype.toJSON=qn.prototype.valueOf=qn.prototype.value=function(){return ma(this.__wrapped__,this.__actions__)},qn.prototype.first=qn.prototype.head,Qe&&(qn.prototype[Qe]=function(){return this}),qn}();vt._=bn,(r=function(){return bn}.call(t,n,t,e))===a||(e.exports=r)}.call(this)},28440:function(e,t,n){var r=n(50097),a=n(63323)((function(e,t,n){r(e,t,n)}));e.exports=a},55950:function(e){e.exports=function(){return!1}},20480:function(e,t,n){var r=n(95378),a=n(56730);e.exports=function(e){return r(e,a(e))}},93735:function(e,t,n){var r,a,o,i,u;r=n(75041),a=n(67751).utf8,o=n(78034),i=n(67751).bin,(u=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?i.stringToBytes(e):a.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),c=8*e.length,s=1732584193,l=-271733879,f=-1732584194,p=271733878,d=0;d>>24)|4278255360&(n[d]<<24|n[d]>>>8);n[c>>>5]|=128<>>9<<4)]=c;var h=u._ff,v=u._gg,m=u._hh,y=u._ii;for(d=0;d>>0,l=l+b>>>0,f=f+_>>>0,p=p+w>>>0}return r.endian([s,l,f,p])})._ff=function(e,t,n,r,a,o,i){var u=e+(t&n|~t&r)+(a>>>0)+i;return(u<>>32-o)+t},u._gg=function(e,t,n,r,a,o,i){var u=e+(t&r|n&~r)+(a>>>0)+i;return(u<>>32-o)+t},u._hh=function(e,t,n,r,a,o,i){var u=e+(t^n^r)+(a>>>0)+i;return(u<>>32-o)+t},u._ii=function(e,t,n,r,a,o,i){var u=e+(n^(t|~r))+(a>>>0)+i;return(u<>>32-o)+t},u._blocksize=16,u._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(u(e,t));return t&&t.asBytes?n:t&&t.asString?i.bytesToString(n):r.bytesToHex(n)}},61339:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},84126:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,u,c=a(e),s=1;s1)for(var n=1;n1?t-1:0),r=1;r=o)return e;switch(e){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch(e){return"[Circular]"}break;default:return e}}));return i}return e}function Z(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function D(e,t,n){var r=0,a=e.length;!function o(i){if(i&&i.length)n(i);else{var u=r;r+=1,u()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,W=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,V={integer:function(e){return V.number(e)&&parseInt(e,10)===e},float:function(e){return V.number(e)&&!V.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(0,S.Z)(e)&&!V.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(U)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(q)return q;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:".concat(a.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),i=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),u=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(o,"$")),s=function(e){return e&&e.exact?i:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(o).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?u:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(o).concat(t(e)),"g")};var l=s.v4().source,f=s.v6().source,p="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(l,"|").concat(f,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return q=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(W)}},G=function(e,t,n,r,a){if(e.required&&void 0===t)H(e,t,n,r,a);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?V[o](t)||r.push(L(a.messages.types[o],e.fullField,e.type)):o&&(0,S.Z)(t)!==e.type&&r.push(L(a.messages.types[o],e.fullField,e.type))}},Y={required:H,whitespace:function(e,t,n,r,a){(/^\s+$/.test(t)||""===t)&&r.push(L(a.messages.whitespace,e.fullField))},type:G,range:function(e,t,n,r,a){var o="number"==typeof e.len,i="number"==typeof e.min,u="number"==typeof e.max,c=t,s=null,l="number"==typeof t,f="string"==typeof t,p=Array.isArray(t);if(l?s="number":f?s="string":p&&(s="array"),!s)return!1;p&&(c=t.length),f&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?c!==e.len&&r.push(L(a.messages[s].len,e.fullField,e.len)):i&&!u&&ce.max?r.push(L(a.messages[s].max,e.fullField,e.max)):i&&u&&(ce.max)&&r.push(L(a.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,a){e[z]=Array.isArray(e[z])?e[z]:[],-1===e[z].indexOf(t)&&r.push(L(a.messages[z],e.fullField,e[z].join(", ")))},pattern:function(e,t,n,r,a){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(L(a.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(L(a.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},K=function(e,t,n,r,a){var o=[],i=Array.isArray(t)?"array":(0,S.Z)(t);Y.required(e,t,r,o,a,i),n(o)},X=function(e,t,n,r,a){var o=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t,o)&&!e.required)return n();Y.required(e,t,r,i,a,o),Z(t,o)||Y.type(e,t,r,i,a)}n(i)},Q={string:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t,"string")&&!e.required)return n();Y.required(e,t,r,o,a,"string"),Z(t,"string")||(Y.type(e,t,r,o,a),Y.range(e,t,r,o,a),Y.pattern(e,t,r,o,a),!0===e.whitespace&&Y.whitespace(e,t,r,o,a))}n(o)},method:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t)&&!e.required)return n();Y.required(e,t,r,o,a),void 0!==t&&Y.type(e,t,r,o,a)}n(o)},number:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Z(t)&&!e.required)return n();Y.required(e,t,r,o,a),void 0!==t&&(Y.type(e,t,r,o,a),Y.range(e,t,r,o,a))}n(o)},boolean:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t)&&!e.required)return n();Y.required(e,t,r,o,a),void 0!==t&&Y.type(e,t,r,o,a)}n(o)},regexp:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t)&&!e.required)return n();Y.required(e,t,r,o,a),Z(t)||Y.type(e,t,r,o,a)}n(o)},integer:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t)&&!e.required)return n();Y.required(e,t,r,o,a),void 0!==t&&(Y.type(e,t,r,o,a),Y.range(e,t,r,o,a))}n(o)},float:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t)&&!e.required)return n();Y.required(e,t,r,o,a),void 0!==t&&(Y.type(e,t,r,o,a),Y.range(e,t,r,o,a))}n(o)},array:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Y.required(e,t,r,o,a,"array"),null!=t&&(Y.type(e,t,r,o,a),Y.range(e,t,r,o,a))}n(o)},object:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t)&&!e.required)return n();Y.required(e,t,r,o,a),void 0!==t&&Y.type(e,t,r,o,a)}n(o)},enum:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t)&&!e.required)return n();Y.required(e,t,r,o,a),void 0!==t&&Y.enum(e,t,r,o,a)}n(o)},pattern:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t,"string")&&!e.required)return n();Y.required(e,t,r,o,a),Z(t,"string")||Y.pattern(e,t,r,o,a)}n(o)},date:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t,"date")&&!e.required)return n();var i;if(Y.required(e,t,r,o,a),!Z(t,"date"))i=t instanceof Date?t:new Date(t),Y.type(e,i,r,o,a),i&&Y.range(e,i.getTime(),r,o,a)}n(o)},url:X,hex:X,email:X,required:K,any:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t)&&!e.required)return n();Y.required(e,t,r,o,a)}n(o)}},J=function(){function e(t){(0,l.Z)(this,e),(0,v.Z)(this,"rules",null),(0,v.Z)(this,"_messages",P),this.define(t)}return(0,f.Z)(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,S.Z)(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=B(C(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=t,i=r,u=a;if("function"==typeof i&&(u=i,i={}),!this.rules||0===Object.keys(this.rules).length)return u&&u(null,o),Promise.resolve(o);function l(e){var t,n,r=[],a={};for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[],f=Array.isArray(r)?r:[r];!i.suppressWarning&&f.length&&e.warning("async-validator:",f),f.length&&void 0!==a.message&&(f=[].concat(a.message));var p=f.map(F(a,o));if(i.first&&p.length)return h[a.field]=1,n(p);if(u){if(a.required&&!t.value)return void 0!==a.message?p=[].concat(a.message).map(F(a,o)):i.error&&(p=[i.error(a,L(i.messages.required,a.field))]),n(p);var d={};a.defaultField&&Object.keys(t.value).map((function(e){d[e]=a.defaultField})),d=(0,c.Z)((0,c.Z)({},d),t.rule.fields);var v={};Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];v[e]=n.map(l.bind(null,e))}));var m=new e(v);m.messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),m.validate(t.value,t.rule.options||i,(function(e){var t=[];p&&p.length&&t.push.apply(t,(0,s.Z)(p)),e&&e.length&&t.push.apply(t,(0,s.Z)(e)),n(t.length?t:null)}))}else n(p)}if(u=u&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)r=a.asyncValidator(a,t.value,f,t.source,i);else if(a.validator){try{r=a.validator(a,t.value,f,t.source,i)}catch(e){var p,d;null===(p=(d=console).error)||void 0===p||p.call(d,e),i.suppressValidatorError||setTimeout((function(){throw e}),0),f(e.message)}!0===r?f():!1===r?f("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):r instanceof Array?f(r):r instanceof Error&&f(r.message)}r&&r.then&&r.then((function(){return f()}),(function(e){return f(e)}))}),(function(e){l(e)}),o)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Q.hasOwnProperty(e.type))throw new Error(L("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Q.required:Q[this.getType(e)]||void 0}}]),e}();(0,v.Z)(J,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Q[e]=t})),(0,v.Z)(J,"warning",(function(){})),(0,v.Z)(J,"messages",P),(0,v.Z)(J,"validators",Q);var ee=J,te="'${name}' is not a valid ${type}",ne={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:te,method:te,array:te,object:te,number:te,date:te,boolean:te,integer:te,float:te,regexp:te,email:te,url:te,hex:te},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},re=n(24434),ae=ee;function oe(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var ie="CODE_LOGIC_ERROR";function ue(e,t,n,r,a){return ce.apply(this,arguments)}function ce(){return ce=(0,u.Z)((0,i.Z)().mark((function e(t,n,a,o,u){var l,f,p,d,h,m,y,g,b;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=(0,c.Z)({},a)).ruleIndex,ae.warning=function(){},l.validator&&(f=l.validator,l.validator=function(){try{return f.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(ie)}}),p=null,l&&"array"===l.type&&l.defaultField&&(p=l.defaultField,delete l.defaultField),d=new ae((0,v.Z)({},t,[l])),h=(0,re.T)(ne,o.validateMessages),d.messages(h),m=[],e.prev=10,e.next=13,Promise.resolve(d.validate((0,v.Z)({},t,n),(0,c.Z)({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(m=e.t0.errors.map((function(e,t){var n=e.message,a=n===ie?h.default:n;return r.isValidElement(a)?r.cloneElement(a,{key:"error_".concat(t)}):a})));case 18:if(m.length||!p){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return ue("".concat(t,".").concat(n),e,p,o,u)})));case 21:return y=e.sent,e.abrupt("return",y.reduce((function(e,t){return[].concat((0,s.Z)(e),(0,s.Z)(t))}),[]));case 23:return g=(0,c.Z)((0,c.Z)({},a),{},{name:t,enum:(a.enum||[]).join(", ")},u),b=m.map((function(e){return"string"==typeof e?oe(e,g):e})),e.abrupt("return",b);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),ce.apply(this,arguments)}function se(e,t,n,r,a,o){var s,l=e.join("."),f=n.map((function(e,t){var n=e.validator,r=(0,c.Z)((0,c.Z)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var a=!1,o=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return me(t,e,n)}))}function me(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!(!e||!t)&&(!(!n&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function ye(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,S.Z)(t.target)&&e in t.target?t.target[e]:t}function ge(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat((0,s.Z)(e.slice(0,n)),[a],(0,s.Z)(e.slice(n,t)),(0,s.Z)(e.slice(t+1,r))):o<0?[].concat((0,s.Z)(e.slice(0,t)),(0,s.Z)(e.slice(t+1,n+1)),[a],(0,s.Z)(e.slice(n+1,r))):e}var be=["name"],_e=[];function we(e,t,n,r,a,o){return"function"==typeof e?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var xe=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;((0,l.Z)(this,n),a=t.call(this,e),(0,v.Z)((0,p.Z)(a),"state",{resetCount:0}),(0,v.Z)((0,p.Z)(a),"cancelRegisterFunc",null),(0,v.Z)((0,p.Z)(a),"mounted",!1),(0,v.Z)((0,p.Z)(a),"touched",!1),(0,v.Z)((0,p.Z)(a),"dirty",!1),(0,v.Z)((0,p.Z)(a),"validatePromise",void 0),(0,v.Z)((0,p.Z)(a),"prevValidating",void 0),(0,v.Z)((0,p.Z)(a),"errors",_e),(0,v.Z)((0,p.Z)(a),"warnings",_e),(0,v.Z)((0,p.Z)(a),"cancelRegister",(function(){var e=a.props,t=e.preserve,n=e.isListField,r=e.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(n,t,de(r)),a.cancelRegisterFunc=null})),(0,v.Z)((0,p.Z)(a),"getNamePath",(function(){var e=a.props,t=e.name,n=e.fieldContext.prefixName,r=void 0===n?[]:n;return void 0!==t?[].concat((0,s.Z)(r),(0,s.Z)(t)):[]})),(0,v.Z)((0,p.Z)(a),"getRules",(function(){var e=a.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),(0,v.Z)((0,p.Z)(a),"refresh",(function(){a.mounted&&a.setState((function(e){return{resetCount:e.resetCount+1}}))})),(0,v.Z)((0,p.Z)(a),"metaCache",null),(0,v.Z)((0,p.Z)(a),"triggerMetaEvent",(function(e){var t=a.props.onMetaChange;if(t){var n=(0,c.Z)((0,c.Z)({},a.getMeta()),{},{destroy:e});(0,y.Z)(a.metaCache,n)||t(n),a.metaCache=n}else a.metaCache=null})),(0,v.Z)((0,p.Z)(a),"onStoreChange",(function(e,t,n){var r=a.props,o=r.shouldUpdate,i=r.dependencies,u=void 0===i?[]:i,c=r.onReset,s=n.store,l=a.getNamePath(),f=a.getValue(e),p=a.getValue(s),d=t&&ve(t,l);switch("valueUpdate"!==n.type||"external"!==n.source||(0,y.Z)(f,p)||(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=_e,a.warnings=_e,a.triggerMetaEvent()),n.type){case"reset":if(!t||d)return a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=_e,a.warnings=_e,a.triggerMetaEvent(),null==c||c(),void a.refresh();break;case"remove":if(o&&we(o,e,s,f,p,n))return void a.reRender();break;case"setField":var h=n.data;if(d)return"touched"in h&&(a.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(a.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(a.errors=h.errors||_e),"warnings"in h&&(a.warnings=h.warnings||_e),a.dirty=!0,a.triggerMetaEvent(),void a.reRender();if("value"in h&&ve(t,l,!0))return void a.reRender();if(o&&!l.length&&we(o,e,s,f,p,n))return void a.reRender();break;case"dependenciesUpdate":if(u.map(de).some((function(e){return ve(n.relatedFields,e)})))return void a.reRender();break;default:if(d||(!u.length||l.length||o)&&we(o,e,s,f,p,n))return void a.reRender()}!0===o&&a.reRender()})),(0,v.Z)((0,p.Z)(a),"validateRules",(function(e){var t=a.getNamePath(),n=a.getValue(),r=e||{},o=r.triggerName,c=r.validateOnly,l=void 0!==c&&c,f=Promise.resolve().then((0,u.Z)((0,i.Z)().mark((function r(){var u,c,l,p,d,h,v;return(0,i.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(u=a.props,c=u.validateFirst,l=void 0!==c&&c,p=u.messageVariables,d=u.validateDebounce,h=a.getRules(),o&&(h=h.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||k(t).includes(o)}))),!d||!o){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(a.validatePromise===f){r.next=10;break}return r.abrupt("return",[]);case 10:return(v=se(t,n,h,e,l,p)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_e;if(a.validatePromise===f){var t;a.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,a=e.errors,o=void 0===a?_e:a;t?r.push.apply(r,(0,s.Z)(o)):n.push.apply(n,(0,s.Z)(o))})),a.errors=n,a.warnings=r,a.triggerMetaEvent(),a.reRender()}})),r.abrupt("return",v);case 13:case"end":return r.stop()}}),r)}))));return l||(a.validatePromise=f,a.dirty=!0,a.errors=_e,a.warnings=_e,a.triggerMetaEvent(),a.reRender()),f})),(0,v.Z)((0,p.Z)(a),"isFieldValidating",(function(){return!!a.validatePromise})),(0,v.Z)((0,p.Z)(a),"isFieldTouched",(function(){return a.touched})),(0,v.Z)((0,p.Z)(a),"isFieldDirty",(function(){return!(!a.dirty&&void 0===a.props.initialValue)||void 0!==(0,a.props.fieldContext.getInternalHooks(b).getInitialValue)(a.getNamePath())})),(0,v.Z)((0,p.Z)(a),"getErrors",(function(){return a.errors})),(0,v.Z)((0,p.Z)(a),"getWarnings",(function(){return a.warnings})),(0,v.Z)((0,p.Z)(a),"isListField",(function(){return a.props.isListField})),(0,v.Z)((0,p.Z)(a),"isList",(function(){return a.props.isList})),(0,v.Z)((0,p.Z)(a),"isPreserve",(function(){return a.props.preserve})),(0,v.Z)((0,p.Z)(a),"getMeta",(function(){return a.prevValidating=a.isFieldValidating(),{touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:null===a.validatePromise}})),(0,v.Z)((0,p.Z)(a),"getOnlyChild",(function(e){if("function"==typeof e){var t=a.getMeta();return(0,c.Z)((0,c.Z)({},a.getOnlyChild(e(a.getControlled(),t,a.props.fieldContext))),{},{isFunction:!0})}var n=(0,m.Z)(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),(0,v.Z)((0,p.Z)(a),"getValue",(function(e){var t=a.props.fieldContext.getFieldsValue,n=a.getNamePath();return(0,pe.Z)(e||t(!0),n)})),(0,v.Z)((0,p.Z)(a),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.props,n=t.name,r=t.trigger,o=t.validateTrigger,i=t.getValueFromEvent,u=t.normalize,s=t.valuePropName,l=t.getValueProps,f=t.fieldContext,p=void 0!==o?o:f.validateTrigger,d=a.getNamePath(),h=f.getInternalHooks,m=f.getFieldsValue,y=h(b),g=y.dispatch,_=a.getValue(),w=l||function(e){return(0,v.Z)({},s,e)},x=e[r],E=void 0!==n?w(_):{};var S=(0,c.Z)((0,c.Z)({},e),E);S[r]=function(){var e;a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r=0&&t<=n.length?(p.keys=[].concat((0,s.Z)(p.keys.slice(0,t)),[p.id],(0,s.Z)(p.keys.slice(t))),o([].concat((0,s.Z)(n.slice(0,t)),[e],(0,s.Z)(n.slice(t))))):(p.keys=[].concat((0,s.Z)(p.keys),[p.id]),o([].concat((0,s.Z)(n),[e]))),p.id+=1},remove:function(e){var t=u(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(p.keys=p.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=u();e<0||e>=n.length||t<0||t>=n.length||(p.keys=ge(p.keys,e,t),o(ge(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[]),a(f.map((function(e,t){var n=p.keys[t];return void 0===n&&(p.keys[t]=p.id,n=p.keys[t],p.id+=1),{name:t,key:n,isListField:!0}})),c,t)}))))},Se=n(50298);var Ce="__@field_split__";function Pe(e){return e.map((function(e){return"".concat((0,S.Z)(e),":").concat(e)})).join(Ce)}var Oe=function(){function e(){(0,l.Z)(this,e),(0,v.Z)(this,"kvs",new Map)}return(0,f.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(Pe(e),t)}},{key:"get",value:function(e){return this.kvs.get(Pe(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Pe(e))}},{key:"map",value:function(e){return(0,s.Z)(this.kvs.entries()).map((function(t){var n=(0,Se.Z)(t,2),r=n[0],a=n[1],o=r.split(Ce);return e({key:o.map((function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,Se.Z)(t,3),r=n[1],a=n[2];return"number"===r?Number(a):a})),value:a})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),je=Oe,Ae=["name"],Te=(0,f.Z)((function e(t){var n=this;(0,l.Z)(this,e),(0,v.Z)(this,"formHooked",!1),(0,v.Z)(this,"forceRootUpdate",void 0),(0,v.Z)(this,"subscribable",!0),(0,v.Z)(this,"store",{}),(0,v.Z)(this,"fieldEntities",[]),(0,v.Z)(this,"initialValues",{}),(0,v.Z)(this,"callbacks",{}),(0,v.Z)(this,"validateMessages",null),(0,v.Z)(this,"preserve",null),(0,v.Z)(this,"lastValidatePromise",null),(0,v.Z)(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),(0,v.Z)(this,"getInternalHooks",(function(e){return e===b?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):((0,g.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),(0,v.Z)(this,"useSubscribe",(function(e){n.subscribable=e})),(0,v.Z)(this,"prevWithoutPreserves",null),(0,v.Z)(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,a=(0,re.T)(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;a=(0,re.Z)(a,n,(0,pe.Z)(e,n))})),n.prevWithoutPreserves=null,n.updateStore(a)}})),(0,v.Z)(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new je;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),(0,v.Z)(this,"getInitialValue",(function(e){var t=(0,pe.Z)(n.initialValues,e);return e.length?(0,re.T)(t):t})),(0,v.Z)(this,"setCallbacks",(function(e){n.callbacks=e})),(0,v.Z)(this,"setValidateMessages",(function(e){n.validateMessages=e})),(0,v.Z)(this,"setPreserve",(function(e){n.preserve=e})),(0,v.Z)(this,"watchList",[]),(0,v.Z)(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),(0,v.Z)(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),(0,v.Z)(this,"timeoutId",null),(0,v.Z)(this,"warningUnhooked",(function(){0})),(0,v.Z)(this,"updateStore",(function(e){n.store=e})),(0,v.Z)(this,"getFieldEntities",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),(0,v.Z)(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new je;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),(0,v.Z)(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=de(e);return t.get(n)||{INVALIDATE_NAME_PATH:de(e)}}))})),(0,v.Z)(this,"getFieldsValue",(function(e,t){var r,a,o;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,a=t):e&&"object"===(0,S.Z)(e)&&(o=e.strict,a=e.filter),!0===r&&!a)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),u=[];return i.forEach((function(e){var t,n,i,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(o){if(null!==(i=(c=e).isList)&&void 0!==i&&i.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(a){var l="getMeta"in e?e.getMeta():null;a(l)&&u.push(s)}else u.push(s)})),he(n.store,u.map(de))})),(0,v.Z)(this,"getFieldValue",(function(e){n.warningUnhooked();var t=de(e);return(0,pe.Z)(n.store,t)})),(0,v.Z)(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:de(e[n]),errors:[],warnings:[]}}))})),(0,v.Z)(this,"getFieldError",(function(e){n.warningUnhooked();var t=de(e);return n.getFieldsError([t])[0].errors})),(0,v.Z)(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=de(e);return n.getFieldsError([t])[0].warnings})),(0,v.Z)(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=new je,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var a=t.get(r)||new Set;a.add({entity:e,value:n}),t.set(r,a)}}));var a,o=function(r){r.forEach((function(r){if(void 0!==r.props.initialValue){var a=r.getNamePath();if(void 0!==n.getInitialValue(a))(0,g.ZP)(!1,"Form already set 'initialValues' with path '".concat(a.join("."),"'. Field can not overwrite it."));else{var o=t.get(a);if(o&&o.size>1)(0,g.ZP)(!1,"Multiple Field with path '".concat(a.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var i=n.getFieldValue(a);r.isListField()||e.skipExist&&void 0!==i||n.updateStore((0,re.Z)(n.store,a,(0,s.Z)(o)[0].value))}}}}))};e.entities?a=e.entities:e.namePathList?(a=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=a).push.apply(n,(0,s.Z)((0,s.Z)(r).map((function(e){return e.entity}))))}))):a=r,o(a)})),(0,v.Z)(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore((0,re.T)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(de);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore((0,re.Z)(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),(0,v.Z)(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var a=e.name,i=(0,o.Z)(e,Ae),u=de(a);r.push(u),"value"in i&&n.updateStore((0,re.Z)(n.store,u,i.value)),n.notifyObservers(t,[u],{type:"setField",data:e})})),n.notifyWatch(r)})),(0,v.Z)(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=e.getMeta(),a=(0,c.Z)((0,c.Z)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(a,"originRCField",{value:!0}),a}))})),(0,v.Z)(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===(0,pe.Z)(n.store,r)&&n.updateStore((0,re.Z)(n.store,r,t))}})),(0,v.Z)(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),(0,v.Z)(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(a)&&(!r||o.length>1)){var i=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==i&&n.fieldEntities.every((function(e){return!me(e.getNamePath(),t)}))){var u=n.store;n.updateStore((0,re.Z)(u,t,i,!0)),n.notifyObservers(u,[t],{type:"remove"}),n.triggerDependenciesUpdate(u,t)}}n.notifyWatch([t])}})),(0,v.Z)(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var a=e.namePath,o=e.triggerName;n.validateFields([a],{triggerName:o})}})),(0,v.Z)(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var a=(0,c.Z)((0,c.Z)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,a)}))}else n.forceRootUpdate()})),(0,v.Z)(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat((0,s.Z)(r))}),r})),(0,v.Z)(this,"updateValue",(function(e,t){var r=de(e),a=n.store;n.updateStore((0,re.Z)(n.store,r,t)),n.notifyObservers(a,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var o=n.triggerDependenciesUpdate(a,r),i=n.callbacks.onValuesChange;i&&i(he(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat((0,s.Z)(o)))})),(0,v.Z)(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=(0,re.T)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),(0,v.Z)(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])})),(0,v.Z)(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],a=new je;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=de(t);a.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(a.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var a=n.getNamePath();n.isFieldDirty()&&a.length&&(r.push(a),e(a))}}))}(e),r})),(0,v.Z)(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var a=n.getFields();if(t){var o=new je;t.forEach((function(e){var t=e.name,n=e.errors;o.set(t,n)})),a.forEach((function(e){e.errors=o.get(e.name)||e.errors}))}var i=a.filter((function(t){var n=t.name;return ve(e,n)}));i.length&&r(i,a)}})),(0,v.Z)(this,"validateFields",(function(e,t){var r,a;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,a=t):a=e;var o=!!r,i=o?r.map(de):[],u=[],l=String(Date.now()),f=new Set,p=a||{},d=p.recursive,h=p.dirty;n.getFieldEntities(!0).forEach((function(e){if(o||i.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!h||e.isFieldDirty())){var t=e.getNamePath();if(f.add(t.join(l)),!o||ve(i,t,d)){var r=e.validateRules((0,c.Z)({validateMessages:(0,c.Z)((0,c.Z)({},ne),n.validateMessages)},a));u.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],a=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?a.push.apply(a,(0,s.Z)(n)):r.push.apply(r,(0,s.Z)(n))})),r.length?Promise.reject({name:t,errors:r,warnings:a}):{name:t,errors:r,warnings:a}})))}}}));var v=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(a,o){e.forEach((function(e,i){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[i]=e,n>0||(t&&o(r),a(r))}))}))})):Promise.resolve([])}(u);n.lastValidatePromise=v,v.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var m=v.then((function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(i),errorFields:t,outOfDate:n.lastValidatePromise!==v})}));m.catch((function(e){return e}));var y=i.filter((function(e){return f.has(e.join(l))}));return n.triggerOnFieldsChange(y),m})),(0,v.Z)(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));var Ie=function(e){var t=r.useRef(),n=r.useState({}),a=(0,Se.Z)(n,2)[1];if(!t.current)if(e)t.current=e;else{var o=new Te((function(){a({})}));t.current=o.getForm()}return[t.current]},Me=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Re=function(e){var t=e.validateMessages,n=e.onFormChange,a=e.onFormFinish,o=e.children,i=r.useContext(Me),u=r.useRef({});return r.createElement(Me.Provider,{value:(0,c.Z)((0,c.Z)({},i),{},{validateMessages:(0,c.Z)((0,c.Z)({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:u.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){a&&a(e,{values:t,forms:u.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(u.current=(0,c.Z)((0,c.Z)({},u.current),{},(0,v.Z)({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=(0,c.Z)({},u.current);delete t[e],u.current=t,i.unregisterForm(e)}})},o)},Le=Me,Ze=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],De=function(e,t){var n=e.name,i=e.initialValues,u=e.fields,l=e.form,f=e.preserve,p=e.children,d=e.component,h=void 0===d?"form":d,v=e.validateMessages,m=e.validateTrigger,y=void 0===m?"onChange":m,g=e.onValuesChange,_=e.onFieldsChange,k=e.onFinish,E=e.onFinishFailed,C=e.clearOnDestroy,P=(0,o.Z)(e,Ze),O=r.useRef(null),j=r.useContext(Le),A=Ie(l),T=(0,Se.Z)(A,1)[0],I=T.getInternalHooks(b),M=I.useSubscribe,R=I.setInitialValues,L=I.setCallbacks,Z=I.setValidateMessages,D=I.setPreserve,N=I.destroyForm;r.useImperativeHandle(t,(function(){return(0,c.Z)((0,c.Z)({},T),{},{nativeElement:O.current})})),r.useEffect((function(){return j.registerForm(n,T),function(){j.unregisterForm(n)}}),[j,T,n]),Z((0,c.Z)((0,c.Z)({},j.validateMessages),v)),L({onValuesChange:g,onFieldsChange:function(e){if(j.triggerFormChange(n,e),_){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:2;t();var o=(0,Q.Z)((function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)}));e.current=o},t]}(),s=(0,o.Z)(c,2),l=s[0],p=s[1];var d=t?ee:J;return X((function(){if(i!==j&&i!==M){var e=d.indexOf(i),t=d[e+1],r=n(i);false===r?u(t,!0):t&&l((function(e){function n(){e.isCanceled()||u(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),f.useEffect((function(){return function(){p()}}),[]),[function(){u(A,!0)},i]};function re(e,t,n,i){var u,c,s,l,p=i.motionEnter,d=void 0===p||p,h=i.motionAppear,v=void 0===h||h,m=i.motionLeave,y=void 0===m||m,g=i.motionDeadline,b=i.motionLeaveImmediately,_=i.onAppearPrepare,w=i.onEnterPrepare,j=i.onLeavePrepare,M=i.onAppearStart,L=i.onEnterStart,Z=i.onLeaveStart,D=i.onAppearActive,N=i.onEnterActive,$=i.onLeaveActive,F=i.onAppearEnd,B=i.onEnterEnd,q=i.onLeaveEnd,z=i.onVisibleChanged,H=(0,k.Z)(),U=(0,o.Z)(H,2),W=U[0],V=U[1],K=(u=S,c=f.useReducer((function(e){return e+1}),0),s=(0,o.Z)(c,2)[1],l=f.useRef(u),[(0,E.Z)((function(){return l.current})),(0,E.Z)((function(e){l.current="function"==typeof e?e(l.current):e,s()}))]),Q=(0,o.Z)(K,2),J=Q[0],ee=Q[1],re=(0,k.Z)(null),ae=(0,o.Z)(re,2),oe=ae[0],ie=ae[1],ue=J(),ce=(0,f.useRef)(!1),se=(0,f.useRef)(null);function le(){return n()}var fe=(0,f.useRef)(!1);function pe(){ee(S),ie(null,!0)}var de=(0,x.zX)((function(e){var t=J();if(t!==S){var n=le();if(!e||e.deadline||e.target===n){var r,a=fe.current;t===C&&a?r=null==F?void 0:F(n,e):t===P&&a?r=null==B?void 0:B(n,e):t===O&&a&&(r=null==q?void 0:q(n,e)),a&&!1!==r&&pe()}}})),he=function(e){var t=(0,f.useRef)();function n(t){t&&(t.removeEventListener(Y,e),t.removeEventListener(G,e))}return f.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(Y,e),r.addEventListener(G,e),t.current=r)},n]}(de),ve=(0,o.Z)(he,1)[0],me=function(e){switch(e){case C:return(0,r.Z)((0,r.Z)((0,r.Z)({},A,_),T,M),I,D);case P:return(0,r.Z)((0,r.Z)((0,r.Z)({},A,w),T,L),I,N);case O:return(0,r.Z)((0,r.Z)((0,r.Z)({},A,j),T,Z),I,$);default:return{}}},ye=f.useMemo((function(){return me(ue)}),[ue]),ge=ne(ue,!e,(function(e){if(e===A){var t=ye[A];return!!t&&t(le())}var n;we in ye&&ie((null===(n=ye[we])||void 0===n?void 0:n.call(ye,le(),null))||null);return we===I&&ue!==S&&(ve(le()),g>0&&(clearTimeout(se.current),se.current=setTimeout((function(){de({deadline:!0})}),g))),we===R&&pe(),true})),be=(0,o.Z)(ge,2),_e=be[0],we=be[1],xe=te(we);fe.current=xe;var ke=(0,f.useRef)(null);X((function(){if(!ce.current||ke.current!==t){V(t);var n,r=ce.current;ce.current=!0,!r&&t&&v&&(n=C),r&&t&&d&&(n=P),(r&&!t&&y||!r&&b&&!t&&y)&&(n=O);var a=me(n);n&&(e||a[A])?(ee(n),_e()):ee(S),ke.current=t}}),[t]),(0,f.useEffect)((function(){(ue===C&&!v||ue===P&&!d||ue===O&&!y)&&ee(S)}),[v,d,y]),(0,f.useEffect)((function(){return function(){ce.current=!1,clearTimeout(se.current)}}),[]);var Ee=f.useRef(!1);(0,f.useEffect)((function(){W&&(Ee.current=!0),void 0!==W&&ue===S&&((Ee.current||W)&&(null==z||z(W)),Ee.current=!0)}),[W,ue]);var Se=oe;return ye[A]&&we===T&&(Se=(0,a.Z)({transition:"none"},Se)),[ue,we,Se,null!=W?W:t]}var ae=function(e){var t=e;"object"===(0,i.Z)(e)&&(t=e.transitionSupport);var n=f.forwardRef((function(e,n){var i=e.visible,u=void 0===i||i,p=e.removeOnLeave,d=void 0===p||p,v=e.forceRender,m=e.children,y=e.motionName,g=e.leavedClassName,b=e.eventProps,_=function(e,n){return!(!e.motionName||!t||!1===n)}(e,f.useContext(h).motion),x=(0,f.useRef)(),k=(0,f.useRef)();var E=re(_,u,(function(){try{return x.current instanceof HTMLElement?x.current:(0,s.ZP)(k.current)}catch(e){return null}}),e),C=(0,o.Z)(E,4),P=C[0],O=C[1],j=C[2],I=C[3],M=f.useRef(I);I&&(M.current=!0);var R,L=f.useCallback((function(e){x.current=e,(0,l.mH)(n,e)}),[n]),Z=(0,a.Z)((0,a.Z)({},b),{},{visible:u});if(m)if(P===S)R=I?m((0,a.Z)({},Z),L):!d&&M.current&&g?m((0,a.Z)((0,a.Z)({},Z),{},{className:g}),L):v||!d&&!g?m((0,a.Z)((0,a.Z)({},Z),{},{style:{display:"none"}}),L):null;else{var D;O===A?D="prepare":te(O)?D="active":O===T&&(D="start");var N=K(y,"".concat(P,"-").concat(D));R=m((0,a.Z)((0,a.Z)({},Z),{},{className:c()(K(y,P),(0,r.Z)((0,r.Z)({},N,N&&D),y,"string"==typeof y)),style:j}),L)}else R=null;f.isValidElement(R)&&(0,l.Yr)(R)&&((0,l.C4)(R)||(R=f.cloneElement(R,{ref:L})));return f.createElement(w,{ref:k},R)}));return n.displayName="CSSMotion",n}(V),oe=n(14809),ie=n(13028),ue="add",ce="keep",se="remove",le="removed";function fe(e){var t;return t=e&&"object"===(0,i.Z)(e)&&"key"in e?e:{key:e},(0,a.Z)((0,a.Z)({},t),{},{key:String(t.key)})}function pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(fe)}function de(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=pe(e),u=pe(t);i.forEach((function(e){for(var t=!1,i=r;i1}));return s.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==se}))).forEach((function(t){t.key===e&&(t.status=ce)}))})),n}var he=["component","children","onVisibleChanged","onAllRemoved"],ve=["status"],me=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var ye=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ae,n=function(e){(0,g.Z)(o,e);var n=(0,b.Z)(o);function o(){var e;(0,m.Z)(this,o);for(var t=arguments.length,i=new Array(t),u=0;u0&&f,q=function(){S(g)};i.useEffect((function(){if(!F&&c>0){var e=Date.now()-N,t=setTimeout((function(){q()}),1e3*c-N);return function(){y&&clearTimeout(t),$(Date.now()-e)}}}),[c,F,C]),i.useEffect((function(){if(!F&&B&&(y||0===N)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame((function(e){var r=e+N-t,a=Math.min(r/(1e3*c),1);L(100*a),a<1&&n()}))}(),function(){y&&cancelAnimationFrame(e)}}}),[c,N,F,B,C]);var z=i.useMemo((function(){return"object"===(0,h.Z)(_)&&null!==_?_:_?{closeIcon:x}:{}}),[_,x]),H=(0,m.Z)(z,!0),U=100-(!R||R<0?0:R>100?100:R),W="".concat(n,"-notice");return i.createElement("div",(0,s.Z)({},k,{ref:t,className:p()(W,o,(0,l.Z)({},"".concat(W,"-closable"),_)),style:r,onMouseEnter:function(e){var t;T(!0),null==k||null===(t=k.onMouseEnter)||void 0===t||t.call(k,e)},onMouseLeave:function(e){var t;T(!1),null==k||null===(t=k.onMouseLeave)||void 0===t||t.call(k,e)},onClick:E}),i.createElement("div",{className:"".concat(W,"-content")},b),_&&i.createElement("a",(0,s.Z)({tabIndex:0,className:"".concat(W,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==v.Z.ENTER||q()},"aria-label":"Close"},H,{onClick:function(e){e.preventDefault(),e.stopPropagation(),q()}}),z.closeIcon),B&&i.createElement("progress",{className:"".concat(W,"-progress"),max:"100",value:U},U+"%"))})),g=i.createContext({}),b=function(e){var t=e.children,n=e.classNames;return i.createElement(g.Provider,{value:{classNames:n}},t)},_=function(e){var t,n,r,a={offset:8,threshold:3,gap:16};e&&"object"===(0,h.Z)(e)&&(a.offset=null!==(t=e.offset)&&void 0!==t?t:8,a.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,a.gap=null!==(r=e.gap)&&void 0!==r?r:16);return[!!e,a]},w=["className","style","classNames","styles"];var x=function(e){var t=e.configList,n=e.placement,c=e.prefixCls,f=e.className,h=e.style,v=e.motion,m=e.onAllNoticeRemoved,b=e.onNoticeClose,x=e.stack,k=(0,i.useContext)(g).classNames,E=(0,i.useRef)({}),S=(0,i.useState)(null),C=(0,a.Z)(S,2),P=C[0],O=C[1],j=(0,i.useState)([]),A=(0,a.Z)(j,2),T=A[0],I=A[1],M=t.map((function(e){return{config:e,key:String(e.key)}})),R=_(x),L=(0,a.Z)(R,2),Z=L[0],D=L[1],N=D.offset,$=D.threshold,F=D.gap,B=Z&&(T.length>0||M.length<=$),q="function"==typeof v?v(n):v;return(0,i.useEffect)((function(){Z&&T.length>1&&I((function(e){return e.filter((function(e){return M.some((function(t){var n=t.key;return e===n}))}))}))}),[T,M,Z]),(0,i.useEffect)((function(){var e,t;Z&&E.current[null===(e=M[M.length-1])||void 0===e?void 0:e.key]&&O(E.current[null===(t=M[M.length-1])||void 0===t?void 0:t.key])}),[M,Z]),i.createElement(d.V4,(0,s.Z)({key:n,className:p()(c,"".concat(c,"-").concat(n),null==k?void 0:k.list,f,(0,l.Z)((0,l.Z)({},"".concat(c,"-stack"),!!Z),"".concat(c,"-stack-expanded"),B)),style:h,keys:M,motionAppear:!0},q,{onAllRemoved:function(){m(n)}}),(function(e,t){var a=e.config,l=e.className,f=e.style,d=e.index,h=a,v=h.key,m=h.times,g=String(v),_=a,x=_.className,S=_.style,C=_.classNames,O=_.styles,j=(0,o.Z)(_,w),A=M.findIndex((function(e){return e.key===g})),R={};if(Z){var L=M.length-1-(A>-1?A:d-1),D="top"===n||"bottom"===n?"-50%":"0";if(L>0){var $,q,z;R.height=B?null===($=E.current[g])||void 0===$?void 0:$.offsetHeight:null==P?void 0:P.offsetHeight;for(var H=0,U=0;U-1?E.current[g]=e:delete E.current[g]},prefixCls:c,classNames:C,styles:O,className:p()(x,null==k?void 0:k.notice),style:S,times:m,key:v,eventKey:v,onNoticeClose:b,hovering:Z&&T.length>0})))}))};var k=i.forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-notification":n,s=e.container,l=e.motion,f=e.maxCount,p=e.className,d=e.style,h=e.onAllRemoved,v=e.stack,m=e.renderNotifications,y=i.useState([]),g=(0,a.Z)(y,2),b=g[0],_=g[1],w=function(e){var t,n=b.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),_((function(t){return t.filter((function(t){return t.key!==e}))}))};i.useImperativeHandle(t,(function(){return{open:function(e){_((function(t){var n,a=(0,r.Z)(t),o=a.findIndex((function(t){return t.key===e.key})),i=(0,u.Z)({},e);o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,a[o]=i):(i.times=0,a.push(i));return f>0&&a.length>f&&(a=a.slice(-f)),a}))},close:function(e){w(e)},destroy:function(){_([])}}}));var k=i.useState({}),E=(0,a.Z)(k,2),S=E[0],C=E[1];i.useEffect((function(){var e={};b.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(S).forEach((function(t){e[t]=e[t]||[]})),C(e)}),[b]);var P=function(e){C((function(t){var n=(0,u.Z)({},t);return(n[e]||[]).length||delete n[e],n}))},O=i.useRef(!1);if(i.useEffect((function(){Object.keys(S).length>0?O.current=!0:O.current&&(null==h||h(),O.current=!1)}),[S]),!s)return null;var j=Object.keys(S);return(0,c.createPortal)(i.createElement(i.Fragment,null,j.map((function(e){var t=S[e],n=i.createElement(x,{key:e,configList:t,placement:e,prefixCls:o,className:null==p?void 0:p(e),style:null==d?void 0:d(e),motion:l,onNoticeClose:w,onAllNoticeRemoved:P,stack:v});return m?m(n,{prefixCls:o,key:e}):n}))),s)})),E=n(70425),S=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],C=function(){return document.body},P=0;function O(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?C:t,u=e.motion,c=e.prefixCls,s=e.maxCount,l=e.className,f=e.style,p=e.onAllRemoved,d=e.stack,h=e.renderNotifications,v=(0,o.Z)(e,S),m=i.useState(),y=(0,a.Z)(m,2),g=y[0],b=y[1],_=i.useRef(),w=i.createElement(k,{container:g,ref:_,prefixCls:c,motion:u,maxCount:s,className:l,style:f,onAllRemoved:p,stack:d,renderNotifications:h}),x=i.useState([]),j=(0,a.Z)(x,2),A=j[0],T=j[1],I=(0,E.zX)((function(e){var t=O(v,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(P),P+=1),T((function(e){return[].concat((0,r.Z)(e),[{type:"open",config:t}])}))})),M=i.useMemo((function(){return{open:I,close:function(e){T((function(t){return[].concat((0,r.Z)(t),[{type:"close",key:e}])}))},destroy:function(){T((function(e){return[].concat((0,r.Z)(e),[{type:"destroy"}])}))}}}),[]);return i.useEffect((function(){b(n())})),i.useEffect((function(){var e,t;_.current&&A.length&&(A.forEach((function(e){switch(e.type){case"open":_.current.open(e.config);break;case"close":_.current.close(e.key);break;case"destroy":_.current.destroy()}})),T((function(n){return e===n&&t||(e=n,t=n.filter((function(e){return!A.includes(e)}))),t})))}),[A]),[M,w]}},61852:function(e,t){"use strict";t.Z={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"}},17119:function(e,t){"use strict";t.Z={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"}},75319:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});var r={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}},11592:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(34678),a=n(59301);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return a.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(o(e)):(0,r.Z)(e)&&e.props?n=n.concat(o(e.props.children,t)):n.push(e))})),n}},47273:function(e,t,n){"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{Z:function(){return r}})},48519:function(e,t,n){"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{Z:function(){return r}})},810:function(e,t,n){"use strict";n.d(t,{hq:function(){return g},jL:function(){return m}});var r=n(20439),a=n(47273),o=n(48519),i="data-rc-order",u="data-rc-priority",c="rc-util-key",s=new Map;function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):c}function f(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function p(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function d(e){return Array.from((s.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,a.Z)())return null;var n=t.csp,r=t.prepend,o=t.priority,c=void 0===o?0:o,s=p(r),l="prependQueue"===s,h=document.createElement("style");h.setAttribute(i,s),l&&c&&h.setAttribute(u,"".concat(c)),null!=n&&n.nonce&&(h.nonce=null==n?void 0:n.nonce),h.innerHTML=e;var v=f(t),m=v.firstChild;if(r){if(l){var y=(t.styles||d(v)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(i)))return!1;var t=Number(e.getAttribute(u)||0);return c>=t}));if(y.length)return v.insertBefore(h,y[y.length-1].nextSibling),h}v.insertBefore(h,m)}else v.appendChild(h);return h}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f(t);return(t.styles||d(n)).find((function(n){return n.getAttribute(l(t))===e}))}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=v(e,t);if(n){var r=f(t);r.removeChild(n)}}function y(e,t){var n=s.get(e);if(!n||!(0,o.Z)(document,n)){var r=h("",t),a=r.parentNode;s.set(e,a),e.removeChild(r)}}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=f(n),o=d(a),i=(0,r.Z)((0,r.Z)({},n),{},{styles:o});y(a,i);var u=v(t,i);if(u){var c,s,p;if(null!==(c=i.csp)&&void 0!==c&&c.nonce&&u.nonce!==(null===(s=i.csp)||void 0===s?void 0:s.nonce))u.nonce=null===(p=i.csp)||void 0===p?void 0:p.nonce;return u.innerHTML!==e&&(u.innerHTML=e),u}var m=h(e,i);return m.setAttribute(l(i),t),m}},76846:function(e,t,n){"use strict";n.d(t,{Sh:function(){return i},ZP:function(){return c},bn:function(){return u}});var r=n(93664),a=n(59301),o=n(4676);function i(e){return e instanceof HTMLElement||e instanceof SVGElement}function u(e){return e&&"object"===(0,r.Z)(e)&&i(e.nativeElement)?e.nativeElement:i(e)?e:null}function c(e){var t,n=u(e);return n||(e instanceof a.Component?null===(t=o.findDOMNode)||void 0===t?void 0:t.call(o,e):null)}},29194:function(e,t){"use strict";t.Z=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1}},96452:function(e,t,n){"use strict";function r(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function a(e){return function(e){return r(e)instanceof ShadowRoot}(e)?r(e):null}n.d(t,{A:function(){return a}})},10228:function(e,t){"use strict";var n={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(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE)return!0;if(e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY)return!0;if(e>=n.A&&e<=n.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=n},34678:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(93664),a=Symbol.for("react.element"),o=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(e){return e&&"object"===(0,r.Z)(e)&&(e.$$typeof===a||e.$$typeof===o)&&e.type===i}},75152:function(e,t,n){"use strict";n.d(t,{Z:function(){return i},o:function(){return u}});var r,a=n(810);function o(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var u=getComputedStyle(e);i.scrollbarColor=u.scrollbarColor,i.scrollbarWidth=u.scrollbarWidth;var c=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(c.width,10),l=parseInt(c.height,10);try{var f=s?"width: ".concat(c.width,";"):"",p=l?"height: ".concat(c.height,";"):"";(0,a.hq)("\n#".concat(t,"::-webkit-scrollbar {\n").concat(f,"\n").concat(p,"\n}"),t)}catch(e){console.error(e),r=s,o=l}}document.body.appendChild(n);var d=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,h=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),(0,a.jL)(t),{width:d,height:h}}function i(e){return"undefined"==typeof document?0:((e||void 0===r)&&(r=o()),r.width)}function u(e){return"undefined"!=typeof document&&e&&e instanceof Element?o(e):{width:0,height:0}}},6089:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(59301);function a(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),a=0;a2&&void 0!==arguments[2]&&arguments[2],o=new Set;function i(e,t){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=o.has(e);if((0,a.ZP)(!c,"Warning: There may be circular references"),c)return!1;if(e===t)return!0;if(n&&u>1)return!1;o.add(e);var s=u+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var l=0;lc")}))},95955:function(e,t,n){"use strict";var r=n(4112),a=TypeError;e.exports=function(e){if(r(e))throw new a("Can't call method on "+e);return e}},88134:function(e){"use strict";e.exports=function(e,t){return e===t||e!=e&&t!=t}},5370:function(e){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},93222:function(e,t,n){"use strict";var r,a=n(92916),o=n(13743),i=n(55327),u=n(90843),c=n(66011),s=n(30867),l=n(57106),f=a.Function,p=/MSIE .\./.test(c)||u&&((r=a.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));e.exports=function(e,t){var n=t?2:1;return p?function(r,a){var u=l(arguments.length,1)>n,c=i(r)?r:f(r),p=u?s(arguments,n):[],d=u?function(){o(c,this,p)}:c;return t?e(d,a):e(d)}:e}},61838:function(e,t,n){"use strict";var r=n(19691),a=n(57002),o=r.Set,i=r.add;e.exports=function(e){var t=new o;return a(e,(function(e){i(t,e)})),t}},10038:function(e,t,n){"use strict";var r=n(17442),a=n(19691),o=n(61838),i=n(108),u=n(88203),c=n(57002),s=n(43545),l=a.has,f=a.remove;e.exports=function(e){var t=r(this),n=u(e),a=o(t);return i(t)<=n.size?c(t,(function(e){n.includes(e)&&f(a,e)})):s(n.getIterator(),(function(e){l(t,e)&&f(a,e)})),a}},19691:function(e,t,n){"use strict";var r=n(94237),a=Set.prototype;e.exports={Set:Set,add:r(a.add),has:r(a.has),remove:r(a.delete),proto:a}},16049:function(e,t,n){"use strict";var r=n(17442),a=n(19691),o=n(108),i=n(88203),u=n(57002),c=n(43545),s=a.Set,l=a.add,f=a.has;e.exports=function(e){var t=r(this),n=i(e),a=new s;return o(t)>n.size?c(n.getIterator(),(function(e){f(t,e)&&l(a,e)})):u(t,(function(e){n.includes(e)&&l(a,e)})),a}},17616:function(e,t,n){"use strict";var r=n(17442),a=n(19691).has,o=n(108),i=n(88203),u=n(57002),c=n(43545),s=n(67996);e.exports=function(e){var t=r(this),n=i(e);if(o(t)<=n.size)return!1!==u(t,(function(e){if(n.includes(e))return!1}),!0);var l=n.getIterator();return!1!==c(l,(function(e){if(a(t,e))return s(l,"normal",!1)}))}},84833:function(e,t,n){"use strict";var r=n(17442),a=n(108),o=n(57002),i=n(88203);e.exports=function(e){var t=r(this),n=i(e);return!(a(t)>n.size)&&!1!==o(t,(function(e){if(!n.includes(e))return!1}),!0)}},51135:function(e,t,n){"use strict";var r=n(17442),a=n(19691).has,o=n(108),i=n(88203),u=n(43545),c=n(67996);e.exports=function(e){var t=r(this),n=i(e);if(o(t)3}))}},13764:function(e,t,n){"use strict";var r=n(94237),a=n(56902),o=n(69905),i=n(95955),u=r("".charAt),c=r("".charCodeAt),s=r("".slice),l=function(e){return function(t,n){var r,l,f=o(i(t)),p=a(n),d=f.length;return p<0||p>=d?e?"":void 0:(r=c(f,p))<55296||r>56319||p+1===d||(l=c(f,p+1))<56320||l>57343?e?u(f,p):r:e?s(f,p,p+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},98352:function(e,t,n){"use strict";var r=n(66011);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},85571:function(e,t,n){"use strict";var r=n(94237),a=n(61578),o=n(69905),i=n(71049),u=n(95955),c=r(i),s=r("".slice),l=Math.ceil,f=function(e){return function(t,n,r){var i,f,p=o(u(t)),d=a(n),h=p.length,v=void 0===r?" ":o(r);return d<=h||""===v?p:((f=c(v,l((i=d-h)/v.length))).length>i&&(f=s(f,0,i)),e?p+f:f+p)}};e.exports={start:f(!1),end:f(!0)}},79204:function(e,t,n){"use strict";var r=n(65911),a=n(94237),o=String.fromCharCode,i=r("String","fromCodePoint"),u=a("".charAt),c=a("".charCodeAt),s=a("".indexOf),l=a("".slice),f=function(e,t){var n=c(e,t);return n>=48&&n<=57},p=function(e,t,n){if(n>=e.length)return-1;for(var r=0;t=48&&e<=57?e-48:e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:-1};e.exports=function(e){for(var t,n="",r=0,a=0;(a=s(e,"\\",a))>-1;){if(n+=l(e,r,a),++a===e.length)return;var c=u(e,a++);switch(c){case"b":n+="\b";break;case"t":n+="\t";break;case"n":n+="\n";break;case"v":n+="\v";break;case"f":n+="\f";break;case"r":n+="\r";break;case"\r":a1114111)return;n+=i(t);break;default:if(f(c,0))return;n+=c}r=a}return n+l(e,r)}},93245:function(e,t,n){"use strict";var r=n(94237),a=2147483647,o=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,u="Overflow: input needs wider integers to process",c=RangeError,s=r(i.exec),l=Math.floor,f=String.fromCharCode,p=r("".charCodeAt),d=r([].join),h=r([].push),v=r("".replace),m=r("".split),y=r("".toLowerCase),g=function(e){return e+22+75*(e<26)},b=function(e,t,n){var r=0;for(e=n?l(e/700):e>>1,e+=l(e/t);e>455;)e=l(e/35),r+=36;return l(r+36*e/(e+38))},_=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n=55296&&a<=56319&&n=i&&r<_&&(_=r);var w=y+1;if(_-i>l((a-s)/w))throw new c(u);for(s+=(_-i)*w,i=_,n=0;na)throw new c(u);if(r===i){for(var x=s,k=36;;){var E=k<=v?1:k>=v+26?26:k-v;if(x0;(u>>>=1)&&(t+=t))1&u&&(n+=t);return n}},9591:function(e,t,n){"use strict";var r=n(52971).end,a=n(18105);e.exports=a("trimEnd")?function(){return r(this)}:"".trimEnd},18105:function(e,t,n){"use strict";var r=n(8090).PROPER,a=n(3338),o=n(19268);e.exports=function(e){return a((function(){return!!o[e]()||"​…᠎"!=="​…᠎"[e]()||r&&o[e].name!==e}))}},27374:function(e,t,n){"use strict";var r=n(52971).start,a=n(18105);e.exports=a("trimStart")?function(){return r(this)}:"".trimStart},52971:function(e,t,n){"use strict";var r=n(94237),a=n(95955),o=n(69905),i=n(19268),u=r("".replace),c=RegExp("^["+i+"]+"),s=RegExp("(^|[^"+i+"])["+i+"]+$"),l=function(e){return function(t){var n=o(a(t));return 1&e&&(n=u(n,c,"")),2&e&&(n=u(n,s,"$1")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},80426:function(e,t,n){"use strict";var r=n(92916),a=n(3338),o=n(46573),i=n(66994),u=n(91821),c=n(90946),s=r.structuredClone;e.exports=!!s&&!a((function(){if(u&&o>92||c&&o>94||i&&o>97)return!1;var e=new ArrayBuffer(8),t=s(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},42820:function(e,t,n){"use strict";var r=n(46573),a=n(3338),o=n(92916).String;e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},14311:function(e,t,n){"use strict";var r=n(89945),a=n(65911),o=n(59893),i=n(2291);e.exports=function(){var e=a("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,u=o("toPrimitive");t&&!t[u]&&i(t,u,(function(e){return r(n,this)}),{arity:1})}},69077:function(e,t,n){"use strict";var r=n(65911),a=n(94237),o=r("Symbol"),i=o.keyFor,u=a(o.prototype.valueOf);e.exports=o.isRegisteredSymbol||function(e){try{return void 0!==i(u(e))}catch(e){return!1}}},40443:function(e,t,n){"use strict";for(var r=n(77898),a=n(65911),o=n(94237),i=n(18446),u=n(59893),c=a("Symbol"),s=c.isWellKnownSymbol,l=a("Object","getOwnPropertyNames"),f=o(c.prototype.valueOf),p=r("wks"),d=0,h=l(c),v=h.length;d0?a(r(e),9007199254740991):0}},94029:function(e,t,n){"use strict";var r=n(95955),a=Object;e.exports=function(e){return a(r(e))}},64135:function(e,t,n){"use strict";var r=n(51358),a=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new a("Wrong offset");return n}},51358:function(e,t,n){"use strict";var r=n(56902),a=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new a("The argument can't be less than 0");return t}},97954:function(e,t,n){"use strict";var r=n(89945),a=n(31946),o=n(18446),i=n(53776),u=n(44759),c=n(59893),s=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!a(e)||o(e))return e;var n,c=i(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!a(n)||o(n))return n;throw new s("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},17818:function(e,t,n){"use strict";var r=n(97954),a=n(18446);e.exports=function(e){var t=r(e,"string");return a(t)?t:t+""}},77999:function(e,t,n){"use strict";var r=n(65911),a=n(55327),o=n(30360),i=n(31946),u=r("Set");e.exports=function(e){return function(e){return i(e)&&"number"==typeof e.size&&a(e.has)&&a(e.keys)}(e)?e:o(e)?new u(e):e}},68527:function(e,t,n){"use strict";var r={};r[n(59893)("toStringTag")]="z",e.exports="[object z]"===String(r)},69905:function(e,t,n){"use strict";var r=n(97607),a=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return a(e)}},86350:function(e){"use strict";var t=Math.round;e.exports=function(e){var n=t(e);return n<0?0:n>255?255:255&n}},11270:function(e,t,n){"use strict";var r=n(90946);e.exports=function(e){try{if(r)return Function('return require("'+e+'")')()}catch(e){}}},40593:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},69733:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(89945),i=n(35454),u=n(59627),c=n(58261),s=n(91669),l=n(56472),f=n(35012),p=n(68151),d=n(62896),h=n(61578),v=n(24225),m=n(64135),y=n(86350),g=n(17818),b=n(32621),_=n(97607),w=n(31946),x=n(18446),k=n(20132),E=n(16332),S=n(58218),C=n(80689).f,P=n(50706),O=n(90560).forEach,j=n(51996),A=n(64110),T=n(37691),I=n(71256),M=n(94844),R=n(25576),L=M.get,Z=M.set,D=M.enforce,N=T.f,$=I.f,F=a.RangeError,B=s.ArrayBuffer,q=B.prototype,z=s.DataView,H=c.NATIVE_ARRAY_BUFFER_VIEWS,U=c.TYPED_ARRAY_TAG,W=c.TypedArray,V=c.TypedArrayPrototype,G=c.aTypedArrayConstructor,Y=c.isTypedArray,K="BYTES_PER_ELEMENT",X="Wrong length",Q=function(e,t){G(e);for(var n=0,r=t.length,a=new e(r);r>n;)a[n]=t[n++];return a},J=function(e,t){A(e,t,{configurable:!0,get:function(){return L(this)[t]}})},ee=function(e){var t;return E(q,e)||"ArrayBuffer"===(t=_(e))||"SharedArrayBuffer"===t},te=function(e,t){return Y(e)&&!x(t)&&t in e&&d(+t)&&t>=0},ne=function(e,t){return t=g(t),te(e,t)?f(2,e[t]):$(e,t)},re=function(e,t,n){return t=g(t),!(te(e,t)&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?N(e,t,n):(e[t]=n.value,e)};i?(H||(I.f=ne,T.f=re,J(V,"buffer"),J(V,"byteOffset"),J(V,"byteLength"),J(V,"length")),r({target:"Object",stat:!0,forced:!H},{getOwnPropertyDescriptor:ne,defineProperty:re}),e.exports=function(e,t,n){var i=e.match(/\d+/)[0]/8,c=e+(n?"Clamped":"")+"Array",s="get"+e,f="set"+e,d=a[c],g=d,b=g&&g.prototype,_={},x=function(e,t){N(e,t,{get:function(){return function(e,t){var n=L(e);return n.view[s](t*i+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var a=L(e);a.view[f](t*i+a.byteOffset,n?y(r):r,!0)}(this,t,e)},enumerable:!0})};H?u&&(g=t((function(e,t,n,r){return l(e,b),R(w(t)?ee(t)?void 0!==r?new d(t,m(n,i),r):void 0!==n?new d(t,m(n,i)):new d(t):Y(t)?Q(g,t):o(P,g,t):new d(v(t)),e,g)})),S&&S(g,W),O(C(d),(function(e){e in g||p(g,e,d[e])})),g.prototype=b):(g=t((function(e,t,n,r){l(e,b);var a,u,c,s=0,f=0;if(w(t)){if(!ee(t))return Y(t)?Q(g,t):o(P,g,t);a=t,f=m(n,i);var p=t.byteLength;if(void 0===r){if(p%i)throw new F(X);if((u=p-f)<0)throw new F(X)}else if((u=h(r)*i)+f>p)throw new F(X);c=u/i}else c=v(t),a=new B(u=c*i);for(Z(e,{buffer:a,byteOffset:f,byteLength:u,length:c,view:new z(a)});s1?arguments[1]:void 0,E=void 0!==k,S=s(w);if(S&&!l(S))for(b=(g=c(w,S)).next,w=[];!(y=a(b,g)).done;)w.push(y.value);for(E&&x>2&&(k=r(k,arguments[2])),n=u(w),h=new(p(_))(n),v=f(h),t=0;n>t;t++)m=E?k(w[t],t):w[t],h[t]=v?d(m):+m;return h}},31384:function(e,t,n){"use strict";var r=n(58261),a=n(60473),o=r.aTypedArrayConstructor,i=r.getTypedArrayConstructor;e.exports=function(e){return o(a(e,i(e)))}},6145:function(e,t,n){"use strict";var r=n(94237),a=0,o=Math.random(),i=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++a+o,36)}},3299:function(e,t,n){"use strict";var r=n(3338),a=n(59893),o=n(35454),i=n(16697),u=a("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),n.delete("b",void 0),i&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(i||!o)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[u]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},14417:function(e,t,n){"use strict";var r=n(42820);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},93199:function(e,t,n){"use strict";var r=n(35454),a=n(3338);e.exports=r&&a((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},57106:function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(eg&&p(r,arguments[g]),r}));if(E.prototype=x,"Error"!==_?u?u(E,k):c(E,k,{name:!0}):h&&y in w&&(s(E,w,y),s(E,w,"prepareStackTrace")),c(E,w),!v)try{x.name!==_&&o(x,"name",_),x.constructor=E}catch(e){}return E}}},93074:function(e,t,n){"use strict";var r=n(94488),a=n(65911),o=n(13743),i=n(3338),u=n(78540),c="AggregateError",s=a(c),l=!i((function(){return 1!==s([1]).errors[0]}))&&i((function(){return 7!==s([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:u(c,(function(e){return function(t,n){return o(e,this,arguments)}}),l,!0)})},6555:function(e,t,n){"use strict";var r=n(94488),a=n(16332),o=n(53456),i=n(58218),u=n(24538),c=n(20132),s=n(68151),l=n(35012),f=n(73068),p=n(61888),d=n(62003),h=n(7825),v=n(59893)("toStringTag"),m=Error,y=[].push,g=function(e,t){var n,r=a(b,this);i?n=i(new m,r?o(this):b):(n=r?this:c(b),s(n,v,"Error")),void 0!==t&&s(n,"message",h(t)),p(n,g,n.stack,1),arguments.length>2&&f(n,arguments[2]);var u=[];return d(e,y,{that:u}),s(n,"errors",u),n};i?i(g,m):u(g,m,{name:!0});var b=g.prototype=c(m.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:g})},86357:function(e,t,n){"use strict";n(6555)},89170:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(91669),i=n(51996),u="ArrayBuffer",c=o[u];r({global:!0,constructor:!0,forced:a[u]!==c},{ArrayBuffer:c}),i(u)},84203:function(e,t,n){"use strict";var r=n(94488),a=n(34114),o=n(3338),i=n(91669),u=n(80449),c=n(51981),s=n(61578),l=n(60473),f=i.ArrayBuffer,p=i.DataView,d=p.prototype,h=a(f.prototype.slice),v=a(d.getUint8),m=a(d.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(h&&void 0===t)return h(u(this),e);for(var n=u(this).byteLength,r=c(e,n),a=c(void 0===t?n:t,n),o=new(l(this,f))(s(a-r)),i=new p(this),d=new p(o),y=0;r=0?r:n+r;return u<0||u>=n?void 0:t[u]}}),u("at")},2924:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(18589),i=n(31946),u=n(94029),c=n(82762),s=n(66434),l=n(69392),f=n(81427),p=n(17480),d=n(59893),h=n(46573),v=d("isConcatSpreadable"),m=h>=51||!a((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),y=function(e){if(!i(e))return!1;var t=e[v];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,arity:1,forced:!m||!p("concat")},{concat:function(e){var t,n,r,a,o,i=u(this),p=f(i,0),d=0;for(t=-1,r=arguments.length;t1?arguments[1]:void 0)}})},70365:function(e,t,n){"use strict";var r=n(94488),a=n(90560).findIndex,o=n(81181),i="findIndex",u=!0;i in[]&&Array(1)[i]((function(){u=!1})),r({target:"Array",proto:!0,forced:u},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o(i)},17482:function(e,t,n){"use strict";var r=n(94488),a=n(53279).findLastIndex,o=n(81181);r({target:"Array",proto:!0},{findLastIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLastIndex")},33717:function(e,t,n){"use strict";var r=n(94488),a=n(53279).findLast,o=n(81181);r({target:"Array",proto:!0},{findLast:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},11553:function(e,t,n){"use strict";var r=n(94488),a=n(90560).find,o=n(81181),i="find",u=!0;i in[]&&Array(1)[i]((function(){u=!1})),r({target:"Array",proto:!0,forced:u},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o(i)},65033:function(e,t,n){"use strict";var r=n(94488),a=n(3372),o=n(63335),i=n(94029),u=n(82762),c=n(81427);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),r=u(n);return o(e),(t=c(n,0)).length=a(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},23708:function(e,t,n){"use strict";var r=n(94488),a=n(3372),o=n(94029),i=n(82762),u=n(56902),c=n(81427);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),n=i(t),r=c(t,0);return r.length=a(r,t,t,n,0,void 0===e?1:u(e)),r}})},99382:function(e,t,n){"use strict";var r=n(94488),a=n(60255);r({target:"Array",stat:!0,forced:!n(35221)((function(e){Array.from(e)}))},{from:a})},88437:function(e,t,n){"use strict";var r=n(94488),a=n(22999).includes,o=n(3338),i=n(81181);r({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},11005:function(e,t,n){"use strict";var r=n(80524),a=n(81181),o=n(48074),i=n(94844),u=n(37691).f,c=n(24019),s=n(25587),l=n(16697),f=n(35454),p="Array Iterator",d=i.set,h=i.getterFor(p);e.exports=c(Array,"Array",(function(e,t){d(this,{type:p,target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,s(void 0,!0);switch(e.kind){case"keys":return s(n,!1);case"values":return s(t[n],!1)}return s([n,t[n]],!1)}),"values");var v=o.Arguments=o.Array;if(a("keys"),a("values"),a("entries"),!l&&f&&"values"!==v.name)try{u(v,"name",{value:"values"})}catch(e){}},70348:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(1835),i=n(80524),u=n(45601),c=a([].join);r({target:"Array",proto:!0,forced:o!==Object||!u("join",",")},{join:function(e){return c(i(this),void 0===e?",":e)}})},91550:function(e,t,n){"use strict";var r=n(94488),a=n(90560).map;r({target:"Array",proto:!0,forced:!n(17480)("map")},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},85223:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(39812),i=n(69392),u=Array;r({target:"Array",stat:!0,forced:a((function(){function e(){}return!(u.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new(o(this)?this:u)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},7154:function(e,t,n){"use strict";var r=n(94488),a=n(94029),o=n(82762),i=n(39428),u=n(66434);r({target:"Array",proto:!0,arity:1,forced:n(3338)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=a(this),n=o(t),r=arguments.length;u(n+r);for(var c=0;c79&&i<83||!o("reduceRight")},{reduceRight:function(e){return a(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},67788:function(e,t,n){"use strict";var r=n(94488),a=n(16370).left,o=n(45601),i=n(46573);r({target:"Array",proto:!0,forced:!n(90946)&&i>79&&i<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return a(this,e,t,t>1?arguments[1]:void 0)}})},9402:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(18589),i=a([].reverse),u=[1,2];r({target:"Array",proto:!0,forced:String(u)===String(u.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i(this)}})},62489:function(e,t,n){"use strict";var r=n(94488),a=n(18589),o=n(39812),i=n(31946),u=n(51981),c=n(82762),s=n(80524),l=n(69392),f=n(59893),p=n(17480),d=n(30867),h=p("slice"),v=f("species"),m=Array,y=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,f,p=s(this),h=c(p),g=u(e,h),b=u(void 0===t?h:t,h);if(a(p)&&(n=p.constructor,(o(n)&&(n===m||a(n.prototype))||i(n)&&null===(n=n[v]))&&(n=void 0),n===m||void 0===n))return d(p,g,b);for(r=new(void 0===n?m:n)(y(b-g,0)),f=0;g3)){if(h)return!0;if(m)return m<603;var e,t,n,r,a="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:t+r,v:n})}for(y.sort((function(e,t){return t.v-e.v})),r=0;rs(n)?1:-1}}(e)),n=u(a),r=0;r_-r+n;m--)p(b,m-1)}else if(n>r)for(m=_-r;m>w;m--)g=m+n-1,(y=m+r-1)in b?b[g]=b[y]:p(b,g);for(m=0;m94906265.62425156?i(t)+c:a(t-1+u(t-1)*u(t+1))}})},85660:function(e,t,n){"use strict";var r=n(94488),a=Math.asinh,o=Math.log,i=Math.sqrt;r({target:"Math",stat:!0,forced:!(a&&1/a(0)>0)},{asinh:function e(t){var n=+t;return isFinite(n)&&0!==n?n<0?-e(-n):o(n+i(n*n+1)):n}})},80031:function(e,t,n){"use strict";var r=n(94488),a=Math.atanh,o=Math.log;r({target:"Math",stat:!0,forced:!(a&&1/a(-0)<0)},{atanh:function(e){var t=+e;return 0===t?t:o((1+t)/(1-t))/2}})},34434:function(e,t,n){"use strict";var r=n(94488),a=n(37666),o=Math.abs,i=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return a(t)*i(o(t),1/3)}})},83579:function(e,t,n){"use strict";var r=n(94488),a=Math.floor,o=Math.log,i=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-a(o(t+.5)*i):32}})},74307:function(e,t,n){"use strict";var r=n(94488),a=n(10014),o=Math.cosh,i=Math.abs,u=Math.E;r({target:"Math",stat:!0,forced:!o||o(710)===1/0},{cosh:function(e){var t=a(i(e)-1)+1;return(t+1/(t*u*u))*(u/2)}})},97423:function(e,t,n){"use strict";var r=n(94488),a=n(10014);r({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},93321:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0},{fround:n(14894)})},82277:function(e,t,n){"use strict";var r=n(94488),a=Math.hypot,o=Math.abs,i=Math.sqrt;r({target:"Math",stat:!0,arity:2,forced:!!a&&a(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,a=0,u=0,c=arguments.length,s=0;u0?(r=n/s)*r:n;return s===1/0?1/0:s*i(a)}})},61425:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=Math.imul;r({target:"Math",stat:!0,forced:a((function(){return-5!==o(4294967295,5)||2!==o.length}))},{imul:function(e,t){var n=65535,r=+e,a=+t,o=n&r,i=n&a;return 0|o*i+((n&r>>>16)*i+o*(n&a>>>16)<<16>>>0)}})},61873:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0},{log10:n(53309)})},9307:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0},{log1p:n(25726)})},8821:function(e,t,n){"use strict";var r=n(94488),a=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return a(e)/o}})},64385:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0},{sign:n(37666)})},64099:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(10014),i=Math.abs,u=Math.exp,c=Math.E;r({target:"Math",stat:!0,forced:a((function(){return-2e-17!==Math.sinh(-2e-17)}))},{sinh:function(e){var t=+e;return i(t)<1?(o(t)-o(-t))/2:(u(t-1)-u(-t-1))*(c/2)}})},62455:function(e,t,n){"use strict";var r=n(94488),a=n(10014),o=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=+e,n=a(t),r=a(-t);return n===1/0?1:r===1/0?-1:(n-r)/(o(t)+o(-t))}})},79965:function(e,t,n){"use strict";n(94573)(Math,"Math",!0)},59118:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0},{trunc:n(3312)})},275:function(e,t,n){"use strict";var r=n(94488),a=n(16697),o=n(35454),i=n(92916),u=n(9699),c=n(94237),s=n(20865),l=n(32621),f=n(25576),p=n(16332),d=n(18446),h=n(97954),v=n(3338),m=n(80689).f,y=n(71256).f,g=n(37691).f,b=n(49228),_=n(52971).trim,w="Number",x=i[w],k=u[w],E=x.prototype,S=i.TypeError,C=c("".slice),P=c("".charCodeAt),O=function(e){var t=h(e,"number");return"bigint"==typeof t?t:j(t)},j=function(e){var t,n,r,a,o,i,u,c,s=h(e,"number");if(d(s))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=_(s),43===(t=P(s,0))||45===t){if(88===(n=P(s,2))||120===n)return NaN}else if(48===t){switch(P(s,1)){case 66:case 98:r=2,a=49;break;case 79:case 111:r=8,a=55;break;default:return+s}for(i=(o=C(s,2)).length,u=0;ua)return NaN;return parseInt(o,r)}return+s},A=s(w,!x(" 0o1")||!x("0b1")||x("+0x1")),T=function(e){return p(E,e)&&v((function(){b(e)}))},I=function(e){var t=arguments.length<1?0:x(O(e));return T(this)?f(Object(t),this,I):t};I.prototype=E,A&&!a&&(E.constructor=I),r({global:!0,constructor:!0,wrap:!0,forced:A},{Number:I});var M=function(e,t){for(var n,r=o?m(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),a=0;r.length>a;a++)l(t,n=r[a])&&!l(e,n)&&g(e,n,y(t,n))};a&&k&&M(u[w],k),(A||a)&&M(u[w],x)},31919:function(e,t,n){"use strict";n(94488)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},51284:function(e,t,n){"use strict";n(94488)({target:"Number",stat:!0},{isFinite:n(1222)})},10177:function(e,t,n){"use strict";n(94488)({target:"Number",stat:!0},{isInteger:n(62896)})},85690:function(e,t,n){"use strict";n(94488)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},92114:function(e,t,n){"use strict";var r=n(94488),a=n(62896),o=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return a(e)&&o(e)<=9007199254740991}})},1017:function(e,t,n){"use strict";n(94488)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},14480:function(e,t,n){"use strict";n(94488)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},40516:function(e,t,n){"use strict";var r=n(94488),a=n(31280);r({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},76345:function(e,t,n){"use strict";var r=n(94488),a=n(52446);r({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},7282:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(56902),i=n(49228),u=n(71049),c=n(53309),s=n(3338),l=RangeError,f=String,p=isFinite,d=Math.abs,h=Math.floor,v=Math.pow,m=Math.round,y=a(1..toExponential),g=a(u),b=a("".slice),_="-6.9000e-11"===y(-69e-12,4)&&"1.25e+0"===y(1.255,2)&&"1.235e+4"===y(12345,3)&&"3e+1"===y(25,0);r({target:"Number",proto:!0,forced:!_||!(s((function(){y(1,1/0)}))&&s((function(){y(1,-1/0)})))||!!s((function(){y(1/0,1/0),y(NaN,1/0)}))},{toExponential:function(e){var t=i(this);if(void 0===e)return y(t);var n=o(e);if(!p(t))return String(t);if(n<0||n>20)throw new l("Incorrect fraction digits");if(_)return y(t,n);var r="",a="",u=0,s="",w="";if(t<0&&(r="-",t=-t),0===t)u=0,a=g("0",n+1);else{var x=c(t);u=h(x);var k=0,E=v(10,u-n);2*t>=(2*(k=m(t/E))+1)*E&&(k+=1),k>=v(10,n+1)&&(k/=10,u+=1),a=f(k)}return 0!==n&&(a=b(a,0,1)+"."+b(a,1)),0===u?(s="+",w="0"):(s=u>0?"+":"-",w=f(d(u))),r+(a+="e"+s+w)}})},58055:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(56902),i=n(49228),u=n(71049),c=n(3338),s=RangeError,l=String,f=Math.floor,p=a(u),d=a("".slice),h=a(1..toFixed),v=function(e,t,n){return 0===t?n:t%2==1?v(e,t-1,n*e):v(e*e,t/2,n)},m=function(e,t,n){for(var r=-1,a=n;++r<6;)a+=t*e[r],e[r]=a%1e7,a=f(a/1e7)},y=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=f(r/t),r=r%t*1e7},g=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=l(e[t]);n=""===n?r:n+p("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:c((function(){return"0.000"!==h(8e-5,3)||"1"!==h(.9,0)||"1.25"!==h(1.255,2)||"1000000000000000128"!==h(0xde0b6b3a7640080,0)}))||!c((function(){h({})}))},{toFixed:function(e){var t,n,r,a,u=i(this),c=o(e),f=[0,0,0,0,0,0],h="",b="0";if(c<0||c>20)throw new s("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return l(u);if(u<0&&(h="-",u=-u),u>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*v(2,69,1))-69)<0?u*v(2,-t,1):u/v(2,t,1),n*=4503599627370496,(t=52-t)>0){for(m(f,0,n),r=c;r>=7;)m(f,1e7,0),r-=7;for(m(f,v(10,r,1),0),r=t-1;r>=23;)y(f,1<<23),r-=23;y(f,1<0?h+((a=b.length)<=c?"0."+p("0",c-a)+b:d(b,0,a-c)+"."+d(b,a-c)):h+b}})},31237:function(e,t,n){"use strict";var r=n(94488),a=n(80530);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},58580:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(25837),i=n(63335),u=n(94029),c=n(37691);a&&r({target:"Object",proto:!0,forced:o},{__defineGetter__:function(e,t){c.f(u(this),e,{get:i(t),enumerable:!0,configurable:!0})}})},7615:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(25837),i=n(63335),u=n(94029),c=n(37691);a&&r({target:"Object",proto:!0,forced:o},{__defineSetter__:function(e,t){c.f(u(this),e,{set:i(t),enumerable:!0,configurable:!0})}})},72820:function(e,t,n){"use strict";var r=n(94488),a=n(88698).entries;r({target:"Object",stat:!0},{entries:function(e){return a(e)}})},86070:function(e,t,n){"use strict";var r=n(94488),a=n(13247),o=n(3338),i=n(31946),u=n(2074).onFreeze,c=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){c(1)})),sham:!a},{freeze:function(e){return c&&i(e)?c(u(e)):e}})},23569:function(e,t,n){"use strict";var r=n(94488),a=n(62003),o=n(69392);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return a(e,(function(e,n){o(t,e,n)}),{AS_ENTRIES:!0}),t}})},55639:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(80524),i=n(71256).f,u=n(35454);r({target:"Object",stat:!0,forced:!u||a((function(){i(1)})),sham:!u},{getOwnPropertyDescriptor:function(e,t){return i(o(e),t)}})},63046:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(48662),i=n(80524),u=n(71256),c=n(69392);r({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),a=u.f,s=o(r),l={},f=0;s.length>f;)void 0!==(n=a(r,t=s[f++]))&&c(l,t,n);return l}})},464:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(53393).f;r({target:"Object",stat:!0,forced:a((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},67936:function(e,t,n){"use strict";var r=n(94488),a=n(42820),o=n(3338),i=n(92635),u=n(94029);r({target:"Object",stat:!0,forced:!a||o((function(){i.f(1)}))},{getOwnPropertySymbols:function(e){var t=i.f;return t?t(u(e)):[]}})},51082:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(94029),i=n(53456),u=n(4870);r({target:"Object",stat:!0,forced:a((function(){i(1)})),sham:!u},{getPrototypeOf:function(e){return i(o(e))}})},83850:function(e,t,n){"use strict";var r=n(94488),a=n(65911),o=n(94237),i=n(63335),u=n(95955),c=n(17818),s=n(62003),l=a("Object","create"),f=o([].push);r({target:"Object",stat:!0},{groupBy:function(e,t){u(e),i(t);var n=l(null),r=0;return s(e,(function(e){var a=c(t(e,r++));a in n?f(n[a],e):n[a]=[e]})),n}})},41990:function(e,t,n){"use strict";n(94488)({target:"Object",stat:!0},{hasOwn:n(32621)})},55888:function(e,t,n){"use strict";var r=n(94488),a=n(12477);r({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},53827:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(31946),i=n(29076),u=n(51424),c=Object.isFrozen;r({target:"Object",stat:!0,forced:u||a((function(){c(1)}))},{isFrozen:function(e){return!o(e)||(!(!u||"ArrayBuffer"!==i(e))||!!c&&c(e))}})},78143:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(31946),i=n(29076),u=n(51424),c=Object.isSealed;r({target:"Object",stat:!0,forced:u||a((function(){c(1)}))},{isSealed:function(e){return!o(e)||(!(!u||"ArrayBuffer"!==i(e))||!!c&&c(e))}})},15787:function(e,t,n){"use strict";n(94488)({target:"Object",stat:!0},{is:n(5370)})},66419:function(e,t,n){"use strict";var r=n(94488),a=n(94029),o=n(7733);r({target:"Object",stat:!0,forced:n(3338)((function(){o(1)}))},{keys:function(e){return o(a(e))}})},75765:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(25837),i=n(94029),u=n(17818),c=n(53456),s=n(71256).f;a&&r({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(e){var t,n=i(this),r=u(e);do{if(t=s(n,r))return t.get}while(n=c(n))}})},14645:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(25837),i=n(94029),u=n(17818),c=n(53456),s=n(71256).f;a&&r({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(e){var t,n=i(this),r=u(e);do{if(t=s(n,r))return t.set}while(n=c(n))}})},71122:function(e,t,n){"use strict";var r=n(94488),a=n(31946),o=n(2074).onFreeze,i=n(13247),u=n(3338),c=Object.preventExtensions;r({target:"Object",stat:!0,forced:u((function(){c(1)})),sham:!i},{preventExtensions:function(e){return c&&a(e)?c(o(e)):e}})},25070:function(e,t,n){"use strict";var r=n(94488),a=n(31946),o=n(2074).onFreeze,i=n(13247),u=n(3338),c=Object.seal;r({target:"Object",stat:!0,forced:u((function(){c(1)})),sham:!i},{seal:function(e){return c&&a(e)?c(o(e)):e}})},15954:function(e,t,n){"use strict";var r=n(68527),a=n(2291),o=n(28488);r||a(Object.prototype,"toString",o,{unsafe:!0})},4266:function(e,t,n){"use strict";var r=n(94488),a=n(88698).values;r({target:"Object",stat:!0},{values:function(e){return a(e)}})},49988:function(e,t,n){"use strict";var r=n(94488),a=n(31280);r({global:!0,forced:parseFloat!==a},{parseFloat:a})},38823:function(e,t,n){"use strict";var r=n(94488),a=n(52446);r({global:!0,forced:parseInt!==a},{parseInt:a})},4045:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(63335),i=n(73446),u=n(80734),c=n(62003);r({target:"Promise",stat:!0,forced:n(22093)},{allSettled:function(e){var t=this,n=i.f(t),r=n.resolve,s=n.reject,l=u((function(){var n=o(t.resolve),i=[],u=0,s=1;c(e,(function(e){var o=u++,c=!1;s++,a(n,t,e).then((function(e){c||(c=!0,i[o]={status:"fulfilled",value:e},--s||r(i))}),(function(e){c||(c=!0,i[o]={status:"rejected",reason:e},--s||r(i))}))})),--s||r(i)}));return l.error&&s(l.value),n.promise}})},12785:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(63335),i=n(73446),u=n(80734),c=n(62003);r({target:"Promise",stat:!0,forced:n(22093)},{all:function(e){var t=this,n=i.f(t),r=n.resolve,s=n.reject,l=u((function(){var n=o(t.resolve),i=[],u=0,l=1;c(e,(function(e){var o=u++,c=!1;l++,a(n,t,e).then((function(e){c||(c=!0,i[o]=e,--l||r(i))}),s)})),--l||r(i)}));return l.error&&s(l.value),n.promise}})},50747:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(63335),i=n(65911),u=n(73446),c=n(80734),s=n(62003),l=n(22093),f="No one promise resolved";r({target:"Promise",stat:!0,forced:l},{any:function(e){var t=this,n=i("AggregateError"),r=u.f(t),l=r.resolve,p=r.reject,d=c((function(){var r=o(t.resolve),i=[],u=0,c=1,d=!1;s(e,(function(e){var o=u++,s=!1;c++,a(r,t,e).then((function(e){s||d||(d=!0,l(e))}),(function(e){s||d||(s=!0,i[o]=e,--c||p(new n(i,f)))}))})),--c||p(new n(i,f))}));return d.error&&p(d.value),r.promise}})},41902:function(e,t,n){"use strict";var r=n(94488),a=n(16697),o=n(82830).CONSTRUCTOR,i=n(2451),u=n(65911),c=n(55327),s=n(2291),l=i&&i.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!a&&c(i)){var f=u("Promise").prototype.catch;l.catch!==f&&s(l,"catch",f,{unsafe:!0})}},90366:function(e,t,n){"use strict";var r,a,o,i=n(94488),u=n(16697),c=n(90946),s=n(92916),l=n(89945),f=n(2291),p=n(58218),d=n(94573),h=n(51996),v=n(63335),m=n(55327),y=n(31946),g=n(56472),b=n(60473),_=n(28887).set,w=n(72933),x=n(61810),k=n(80734),E=n(66790),S=n(94844),C=n(2451),P=n(82830),O=n(73446),j="Promise",A=P.CONSTRUCTOR,T=P.REJECTION_EVENT,I=P.SUBCLASSING,M=S.getterFor(j),R=S.set,L=C&&C.prototype,Z=C,D=L,N=s.TypeError,$=s.document,F=s.process,B=O.f,q=B,z=!!($&&$.createEvent&&s.dispatchEvent),H="unhandledrejection",U=function(e){var t;return!(!y(e)||!m(t=e.then))&&t},W=function(e,t){var n,r,a,o=t.value,i=1===t.state,u=i?e.ok:e.fail,c=e.resolve,s=e.reject,f=e.domain;try{u?(i||(2===t.rejection&&X(t),t.rejection=1),!0===u?n=o:(f&&f.enter(),n=u(o),f&&(f.exit(),a=!0)),n===e.promise?s(new N("Promise-chain cycle")):(r=U(n))?l(r,n,c,s):c(n)):s(o)}catch(e){f&&!a&&f.exit(),s(e)}},V=function(e,t){e.notified||(e.notified=!0,w((function(){for(var n,r=e.reactions;n=r.get();)W(n,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},G=function(e,t,n){var r,a;z?((r=$.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s.dispatchEvent(r)):r={promise:t,reason:n},!T&&(a=s["on"+e])?a(r):e===H&&x("Unhandled promise rejection",n)},Y=function(e){l(_,s,(function(){var t,n=e.facade,r=e.value;if(K(e)&&(t=k((function(){c?F.emit("unhandledRejection",r,n):G(H,n,r)})),e.rejection=c||K(e)?2:1,t.error))throw t.value}))},K=function(e){return 1!==e.rejection&&!e.parent},X=function(e){l(_,s,(function(){var t=e.facade;c?F.emit("rejectionHandled",t):G("rejectionhandled",t,e.value)}))},Q=function(e,t,n){return function(r){e(t,r,n)}},J=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,V(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new N("Promise can't be resolved itself");var r=U(t);r?w((function(){var n={done:!1};try{l(r,t,Q(ee,n,e),Q(J,n,e))}catch(t){J(n,t,e)}})):(e.value=t,e.state=1,V(e,!1))}catch(t){J({done:!1},t,e)}}};if(A&&(D=(Z=function(e){g(this,D),v(e),l(r,this);var t=M(this);try{e(Q(ee,t),Q(J,t))}catch(e){J(t,e)}}).prototype,(r=function(e){R(this,{type:j,done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:0,value:void 0})}).prototype=f(D,"then",(function(e,t){var n=M(this),r=B(b(this,Z));return n.parent=!0,r.ok=!m(e)||e,r.fail=m(t)&&t,r.domain=c?F.domain:void 0,0===n.state?n.reactions.add(r):w((function(){W(r,n)})),r.promise})),a=function(){var e=new r,t=M(e);this.promise=e,this.resolve=Q(ee,t),this.reject=Q(J,t)},O.f=B=function(e){return e===Z||undefined===e?new a(e):q(e)},!u&&m(C)&&L!==Object.prototype)){o=L.then,I||f(L,"then",(function(e,t){var n=this;return new Z((function(e,t){l(o,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete L.constructor}catch(e){}p&&p(L,D)}i({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:Z}),d(Z,j,!1,!0),h(j)},43595:function(e,t,n){"use strict";var r=n(94488),a=n(16697),o=n(2451),i=n(3338),u=n(65911),c=n(55327),s=n(60473),l=n(15597),f=n(2291),p=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&i((function(){p.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=s(this,u("Promise")),n=c(e);return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),!a&&c(o)){var d=u("Promise").prototype.finally;p.finally!==d&&f(p,"finally",d,{unsafe:!0})}},24627:function(e,t,n){"use strict";n(90366),n(12785),n(41902),n(20733),n(95693),n(81930)},20733:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(63335),i=n(73446),u=n(80734),c=n(62003);r({target:"Promise",stat:!0,forced:n(22093)},{race:function(e){var t=this,n=i.f(t),r=n.reject,s=u((function(){var i=o(t.resolve);c(e,(function(e){a(i,t,e).then(n.resolve,r)}))}));return s.error&&r(s.value),n.promise}})},95693:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(73446);r({target:"Promise",stat:!0,forced:n(82830).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return a(t.reject,void 0,e),t.promise}})},81930:function(e,t,n){"use strict";var r=n(94488),a=n(65911),o=n(16697),i=n(2451),u=n(82830).CONSTRUCTOR,c=n(15597),s=a("Promise"),l=o&&!u;r({target:"Promise",stat:!0,forced:o||u},{resolve:function(e){return c(l&&this===s?i:this,e)}})},92324:function(e,t,n){"use strict";var r=n(94488),a=n(73446);r({target:"Promise",stat:!0},{withResolvers:function(){var e=a.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},23551:function(e,t,n){"use strict";var r=n(94488),a=n(13743),o=n(63335),i=n(80449);r({target:"Reflect",stat:!0,forced:!n(3338)((function(){Reflect.apply((function(){}))}))},{apply:function(e,t,n){return a(o(e),t,i(n))}})},74521:function(e,t,n){"use strict";var r=n(94488),a=n(65911),o=n(13743),i=n(4645),u=n(6086),c=n(80449),s=n(31946),l=n(20132),f=n(3338),p=a("Reflect","construct"),d=Object.prototype,h=[].push,v=f((function(){function e(){}return!(p((function(){}),[],e)instanceof e)})),m=!f((function(){p((function(){}))})),y=v||m;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(e,t){u(e),c(t);var n=arguments.length<3?e:u(arguments[2]);if(m&&!v)return p(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return o(h,r,t),new(o(i,e,r))}var a=n.prototype,f=l(s(a)?a:d),y=o(e,f,t);return s(y)?y:f}})},57891:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(80449),i=n(17818),u=n(37691);r({target:"Reflect",stat:!0,forced:n(3338)((function(){Reflect.defineProperty(u.f({},1,{value:1}),1,{value:2})})),sham:!a},{defineProperty:function(e,t,n){o(e);var r=i(t);o(n);try{return u.f(e,r,n),!0}catch(e){return!1}}})},84138:function(e,t,n){"use strict";var r=n(94488),a=n(80449),o=n(71256).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=o(a(e),t);return!(n&&!n.configurable)&&delete e[t]}})},37135:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(80449),i=n(71256);r({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(e,t){return i.f(o(e),t)}})},6474:function(e,t,n){"use strict";var r=n(94488),a=n(80449),o=n(53456);r({target:"Reflect",stat:!0,sham:!n(4870)},{getPrototypeOf:function(e){return o(a(e))}})},51832:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(31946),i=n(80449),u=n(60516),c=n(71256),s=n(53456);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,l,f=arguments.length<3?t:arguments[2];return i(t)===f?t[n]:(r=c.f(t,n))?u(r)?r.value:void 0===r.get?void 0:a(r.get,f):o(l=s(t))?e(l,n,f):void 0}})},40135:function(e,t,n){"use strict";n(94488)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},7982:function(e,t,n){"use strict";var r=n(94488),a=n(80449),o=n(12477);r({target:"Reflect",stat:!0},{isExtensible:function(e){return a(e),o(e)}})},14893:function(e,t,n){"use strict";n(94488)({target:"Reflect",stat:!0},{ownKeys:n(48662)})},49233:function(e,t,n){"use strict";var r=n(94488),a=n(65911),o=n(80449);r({target:"Reflect",stat:!0,sham:!n(13247)},{preventExtensions:function(e){o(e);try{var t=a("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},42844:function(e,t,n){"use strict";var r=n(94488),a=n(80449),o=n(557),i=n(58218);i&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){a(e),o(t);try{return i(e,t),!0}catch(e){return!1}}})},92130:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(80449),i=n(31946),u=n(60516),c=n(3338),s=n(37691),l=n(71256),f=n(53456),p=n(35012);r({target:"Reflect",stat:!0,forced:c((function(){var e=function(){},t=s.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}))},{set:function e(t,n,r){var c,d,h,v=arguments.length<4?t:arguments[3],m=l.f(o(t),n);if(!m){if(i(d=f(t)))return e(d,n,r,v);m=p(0)}if(u(m)){if(!1===m.writable||!i(v))return!1;if(c=l.f(v,n)){if(c.get||c.set||!1===c.writable)return!1;c.value=r,s.f(v,n,c)}else s.f(v,n,p(0,r))}else{if(void 0===(h=m.set))return!1;a(h,v,r)}return!0}})},6536:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(94573);r({global:!0},{Reflect:{}}),o(a.Reflect,"Reflect",!0)},27228:function(e,t,n){"use strict";var r=n(35454),a=n(92916),o=n(94237),i=n(20865),u=n(25576),c=n(68151),s=n(20132),l=n(80689).f,f=n(16332),p=n(44639),d=n(69905),h=n(81644),v=n(19286),m=n(44166),y=n(2291),g=n(3338),b=n(32621),_=n(94844).enforce,w=n(51996),x=n(59893),k=n(6041),E=n(51224),S=x("match"),C=a.RegExp,P=C.prototype,O=a.SyntaxError,j=o(P.exec),A=o("".charAt),T=o("".replace),I=o("".indexOf),M=o("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,Z=/a/g,D=new C(L)!==L,N=v.MISSED_STICKY,$=v.UNSUPPORTED_Y,F=r&&(!D||N||k||E||g((function(){return Z[S]=!1,C(L)!==L||C(Z)===Z||"/a/i"!==String(C(L,"i"))})));if(i("RegExp",F)){for(var B=function(e,t){var n,r,a,o,i,l,v=f(P,this),m=p(e),y=void 0===t,g=[],w=e;if(!v&&m&&y&&e.constructor===B)return e;if((m||f(P,e))&&(e=e.source,y&&(t=h(w))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),w=e,k&&"dotAll"in L&&(r=!!t&&I(t,"s")>-1)&&(t=T(t,/s/g,"")),n=t,N&&"sticky"in L&&(a=!!t&&I(t,"y")>-1)&&$&&(t=T(t,/y/g,"")),E&&(o=function(e){for(var t,n=e.length,r=0,a="",o=[],i=s(null),u=!1,c=!1,l=0,f="";r<=n;r++){if("\\"===(t=A(e,r)))t+=A(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:j(R,M(e,r+1))&&(r+=2,c=!0),a+=t,l++;continue;case">"===t&&c:if(""===f||b(i,f))throw new O("Invalid capture group name");i[f]=!0,o[o.length]=[f,l],c=!1,f="";continue}c?f+=t:a+=t}return[a,o]}(e),e=o[0],g=o[1]),i=u(C(e,t),v?this:P,B),(r||a||g.length)&&(l=_(i),r&&(l.dotAll=!0,l.raw=B(function(e){for(var t,n=e.length,r=0,a="",o=!1;r<=n;r++)"\\"!==(t=A(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),a+=t):a+="[\\s\\S]":a+=t+A(e,++r);return a}(e),n)),a&&(l.sticky=!0),g.length&&(l.groups=g)),e!==w)try{c(i,"source",""===w?"(?:)":w)}catch(e){}return i},q=l(C),z=0;q.length>z;)m(B,C,q[z++]);P.constructor=B,B.prototype=P,y(a,"RegExp",B,{constructor:!0})}w("RegExp")},62921:function(e,t,n){"use strict";var r=n(35454),a=n(6041),o=n(29076),i=n(64110),u=n(94844).get,c=RegExp.prototype,s=TypeError;r&&a&&i(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!u(this).dotAll;throw new s("Incompatible receiver, RegExp required")}}})},44001:function(e,t,n){"use strict";var r=n(94488),a=n(88736);r({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},92262:function(e,t,n){"use strict";var r=n(92916),a=n(35454),o=n(64110),i=n(82163),u=n(3338),c=r.RegExp,s=c.prototype;a&&u((function(){var e=!0;try{c(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",a=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(o.hasIndices="d"),o)a(i,o[i]);return Object.getOwnPropertyDescriptor(s,"flags").get.call(t)!==r||n!==r}))&&o(s,"flags",{configurable:!0,get:i})},54744:function(e,t,n){"use strict";var r=n(35454),a=n(19286).MISSED_STICKY,o=n(29076),i=n(64110),u=n(94844).get,c=RegExp.prototype,s=TypeError;r&&a&&i(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!u(this).sticky;throw new s("Incompatible receiver, RegExp required")}}})},38214:function(e,t,n){"use strict";n(44001);var r,a,o=n(94488),i=n(89945),u=n(55327),c=n(80449),s=n(69905),l=(r=!1,(a=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===a.test("abc")&&r),f=/./.test;o({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=c(this),n=s(e),r=t.exec;if(!u(r))return i(f,t,n);var a=i(r,t,n);return null!==a&&(c(a),!0)}})},12756:function(e,t,n){"use strict";var r=n(8090).PROPER,a=n(2291),o=n(80449),i=n(69905),u=n(3338),c=n(81644),s="toString",l=RegExp.prototype[s],f=u((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),p=r&&l.name!==s;(f||p)&&a(RegExp.prototype,s,(function(){var e=o(this);return"/"+i(e.source)+"/"+i(c(e))}),{unsafe:!0})},69772:function(e,t,n){"use strict";n(48059)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(40942))},93379:function(e,t,n){"use strict";n(69772)},34932:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("anchor")},{anchor:function(e){return a(this,"a","name",e)}})},62007:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(95955),i=n(56902),u=n(69905),c=n(3338),s=a("".charAt);r({target:"String",proto:!0,forced:c((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(e){var t=u(o(this)),n=t.length,r=i(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:s(t,a)}})},81046:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("big")},{big:function(){return a(this,"big","","")}})},85744:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("blink")},{blink:function(){return a(this,"blink","","")}})},13494:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("bold")},{bold:function(){return a(this,"b","","")}})},90572:function(e,t,n){"use strict";var r=n(94488),a=n(13764).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return a(this,e)}})},37343:function(e,t,n){"use strict";var r,a=n(94488),o=n(34114),i=n(71256).f,u=n(61578),c=n(69905),s=n(41696),l=n(95955),f=n(86266),p=n(16697),d=o("".endsWith),h=o("".slice),v=Math.min,m=f("endsWith");a({target:"String",proto:!0,forced:!!(p||m||(r=i(String.prototype,"endsWith"),!r||r.writable))&&!m},{endsWith:function(e){var t=c(l(this));s(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,a=void 0===n?r:v(u(n),r),o=c(e);return d?d(t,o,a):h(t,a-o.length,a)===o}})},56338:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("fixed")},{fixed:function(){return a(this,"tt","","")}})},66755:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("fontcolor")},{fontcolor:function(e){return a(this,"font","color",e)}})},68709:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("fontsize")},{fontsize:function(e){return a(this,"font","size",e)}})},45945:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(51981),i=RangeError,u=String.fromCharCode,c=String.fromCodePoint,s=a([].join);r({target:"String",stat:!0,arity:1,forced:!!c&&1!==c.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw new i(t+" is not a valid code point");n[a]=t<65536?u(t):u(55296+((t-=65536)>>10),t%1024+56320)}return s(n,"")}})},75551:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(41696),i=n(95955),u=n(69905),c=n(86266),s=a("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~s(u(i(this)),u(o(e)),arguments.length>1?arguments[1]:void 0)}})},32493:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(95955),i=n(69905),u=a("".charCodeAt);r({target:"String",proto:!0},{isWellFormed:function(){for(var e=i(o(this)),t=e.length,n=0;n=56320||++n>=t||56320!=(64512&u(e,n))))return!1}return!0}})},4939:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("italics")},{italics:function(){return a(this,"i","","")}})},20852:function(e,t,n){"use strict";var r=n(13764).charAt,a=n(69905),o=n(94844),i=n(24019),u=n(25587),c="String Iterator",s=o.set,l=o.getterFor(c);i(String,"String",(function(e){s(this,{type:c,string:a(e),index:0})}),(function(){var e,t=l(this),n=t.string,a=t.index;return a>=n.length?u(void 0,!0):(e=r(n,a),t.index+=e.length,u(e,!1))}))},81927:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("link")},{link:function(e){return a(this,"a","href",e)}})},18827:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(34114),i=n(83126),u=n(25587),c=n(95955),s=n(61578),l=n(69905),f=n(80449),p=n(4112),d=n(29076),h=n(44639),v=n(81644),m=n(53776),y=n(2291),g=n(3338),b=n(59893),_=n(60473),w=n(52216),x=n(94338),k=n(94844),E=n(16697),S=b("matchAll"),C="RegExp String",P=C+" Iterator",O=k.set,j=k.getterFor(P),A=RegExp.prototype,T=TypeError,I=o("".indexOf),M=o("".matchAll),R=!!M&&!g((function(){M("a",/./)})),L=i((function(e,t,n,r){O(this,{type:P,regexp:e,string:t,global:n,unicode:r,done:!1})}),C,(function(){var e=j(this);if(e.done)return u(void 0,!0);var t=e.regexp,n=e.string,r=x(t,n);return null===r?(e.done=!0,u(void 0,!0)):e.global?(""===l(r[0])&&(t.lastIndex=w(n,s(t.lastIndex),e.unicode)),u(r,!1)):(e.done=!0,u(r,!1))})),Z=function(e){var t,n,r,a=f(this),o=l(e),i=_(a,RegExp),u=l(v(a));return t=new i(i===RegExp?a.source:a,u),n=!!~I(u,"g"),r=!!~I(u,"u"),t.lastIndex=s(a.lastIndex),new L(t,o,n,r)};r({target:"String",proto:!0,forced:R},{matchAll:function(e){var t,n,r,o,i=c(this);if(p(e)){if(R)return M(i,e)}else{if(h(e)&&(t=l(c(v(e))),!~I(t,"g")))throw new T("`.matchAll` does not allow non-global regexes");if(R)return M(i,e);if(void 0===(r=m(e,S))&&E&&"RegExp"===d(e)&&(r=Z),r)return a(r,e,i)}return n=l(i),o=new RegExp(e,"g"),E?a(Z,o,n):o[S](n)}}),E||S in A||y(A,S,Z)},46302:function(e,t,n){"use strict";var r=n(89945),a=n(8662),o=n(80449),i=n(4112),u=n(61578),c=n(69905),s=n(95955),l=n(53776),f=n(52216),p=n(94338);a("match",(function(e,t,n){return[function(t){var n=s(this),a=i(t)?void 0:l(t,e);return a?r(a,t,n):new RegExp(t)[e](c(n))},function(e){var r=o(this),a=c(e),i=n(t,r,a);if(i.done)return i.value;if(!r.global)return p(r,a);var s=r.unicode;r.lastIndex=0;for(var l,d=[],h=0;null!==(l=p(r,a));){var v=c(l[0]);d[h]=v,""===v&&(r.lastIndex=f(a,u(r.lastIndex),s)),h++}return 0===h?null:d}]}))},76718:function(e,t,n){"use strict";var r=n(94488),a=n(85571).end;r({target:"String",proto:!0,forced:n(98352)},{padEnd:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},79172:function(e,t,n){"use strict";var r=n(94488),a=n(85571).start;r({target:"String",proto:!0,forced:n(98352)},{padStart:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},32192:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(80524),i=n(94029),u=n(69905),c=n(82762),s=a([].push),l=a([].join);r({target:"String",stat:!0},{raw:function(e){var t=o(i(e).raw),n=c(t);if(!n)return"";for(var r=arguments.length,a=[],f=0;;){if(s(a,u(t[f++])),f===n)return l(a,"");fe.length?-1:""===t?n:g(e,t,n)};r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,o,h,k,E,S,C,P,O=i(this),j=0,A=0,T="";if(!c(e)){if((n=s(e))&&(r=l(i(p(e))),!~g(r,"g")))throw new y("`.replaceAll` does not allow non-global regexes");if(o=f(e,m))return a(o,e,O,t);if(v&&n)return b(l(O),e,t)}for(h=l(O),k=l(e),(E=u(t))||(t=l(t)),S=k.length,C=w(1,S),j=x(h,k,0);-1!==j;)P=E?l(t(k,j,h)):d(k,h,j,[],void 0,t),T+=_(h,A,j)+P,A=j+S,j=x(h,k,j+C);return A=A&&(j+=S(u,A,R)+I,A=R+M.length)}return j+S(u,A)}]}),!!u((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!C||P)},62925:function(e,t,n){"use strict";var r=n(89945),a=n(8662),o=n(80449),i=n(4112),u=n(95955),c=n(5370),s=n(69905),l=n(53776),f=n(94338);a("search",(function(e,t,n){return[function(t){var n=u(this),a=i(t)?void 0:l(t,e);return a?r(a,t,n):new RegExp(t)[e](s(n))},function(e){var r=o(this),a=s(e),i=n(t,r,a);if(i.done)return i.value;var u=r.lastIndex;c(u,0)||(r.lastIndex=0);var l=f(r,a);return c(r.lastIndex,u)||(r.lastIndex=u),null===l?-1:l.index}]}))},60462:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("small")},{small:function(){return a(this,"small","","")}})},9595:function(e,t,n){"use strict";var r=n(13743),a=n(89945),o=n(94237),i=n(8662),u=n(80449),c=n(4112),s=n(44639),l=n(95955),f=n(60473),p=n(52216),d=n(61578),h=n(69905),v=n(53776),m=n(71698),y=n(94338),g=n(88736),b=n(19286),_=n(3338),w=b.UNSUPPORTED_Y,x=4294967295,k=Math.min,E=[].push,S=o(/./.exec),C=o(E),P=o("".slice),O=!_((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));i("split",(function(e,t,n){var o;return o="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=h(l(this)),i=void 0===n?x:n>>>0;if(0===i)return[];if(void 0===e)return[o];if(!s(e))return a(t,o,e,i);for(var u,c,f,p=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),v=0,y=new RegExp(e.source,d+"g");(u=a(g,y,o))&&!((c=y.lastIndex)>v&&(C(p,P(o,v,u.index)),u.length>1&&u.index=i));)y.lastIndex===u.index&&y.lastIndex++;return v===o.length?!f&&S(y,"")||C(p,""):C(p,P(o,v)),p.length>i?m(p,0,i):p}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:a(t,this,e,n)}:t,[function(t,n){var r=l(this),i=c(t)?void 0:v(t,e);return i?a(i,t,r,n):a(o,h(r),t,n)},function(e,r){var a=u(this),i=h(e),c=n(o,a,i,r,o!==t);if(c.done)return c.value;var s=f(a,RegExp),l=a.unicode,v=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(w?"g":"y"),m=new s(w?"^(?:"+a.source+")":a,v),g=void 0===r?x:r>>>0;if(0===g)return[];if(0===i.length)return null===y(m,i)?[i]:[];for(var b=0,_=0,E=[];_1?arguments[1]:void 0,t.length)),r=c(e);return d?d(t,r,n):h(t,n,n+r.length)===r}})},72571:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("strike")},{strike:function(){return a(this,"strike","","")}})},71200:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("sub")},{sub:function(){return a(this,"sub","","")}})},85767:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("sup")},{sup:function(){return a(this,"sup","","")}})},53427:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(94237),i=n(95955),u=n(69905),c=n(3338),s=Array,l=o("".charAt),f=o("".charCodeAt),p=o([].join),d="".toWellFormed,h=d&&c((function(){return"1"!==a(d,1)}));r({target:"String",proto:!0,forced:h},{toWellFormed:function(){var e=u(i(this));if(h)return a(d,e);for(var t=e.length,n=s(t),r=0;r=56320||r+1>=t||56320!=(64512&f(e,r+1))?n[r]="�":(n[r]=l(e,r),n[++r]=l(e,r))}return p(n,"")}})},49257:function(e,t,n){"use strict";n(20189);var r=n(94488),a=n(9591);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},93980:function(e,t,n){"use strict";var r=n(94488),a=n(27374);r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},20189:function(e,t,n){"use strict";var r=n(94488),a=n(9591);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},72910:function(e,t,n){"use strict";n(93980);var r=n(94488),a=n(27374);r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},70878:function(e,t,n){"use strict";var r=n(94488),a=n(52971).trim;r({target:"String",proto:!0,forced:n(18105)("trim")},{trim:function(){return a(this)}})},64003:function(e,t,n){"use strict";n(94674)("asyncIterator")},39161:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(89945),i=n(94237),u=n(16697),c=n(35454),s=n(42820),l=n(3338),f=n(32621),p=n(16332),d=n(80449),h=n(80524),v=n(17818),m=n(69905),y=n(35012),g=n(20132),b=n(7733),_=n(80689),w=n(53393),x=n(92635),k=n(71256),E=n(37691),S=n(55666),C=n(27597),P=n(2291),O=n(64110),j=n(77898),A=n(11898),T=n(54406),I=n(6145),M=n(59893),R=n(38282),L=n(94674),Z=n(14311),D=n(94573),N=n(94844),$=n(90560).forEach,F=A("hidden"),B="Symbol",q="prototype",z=N.set,H=N.getterFor(B),U=Object[q],W=a.Symbol,V=W&&W[q],G=a.RangeError,Y=a.TypeError,K=a.QObject,X=k.f,Q=E.f,J=w.f,ee=C.f,te=i([].push),ne=j("symbols"),re=j("op-symbols"),ae=j("wks"),oe=!K||!K[q]||!K[q].findChild,ie=function(e,t,n){var r=X(U,t);r&&delete U[t],Q(e,t,n),r&&e!==U&&Q(U,t,r)},ue=c&&l((function(){return 7!==g(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?ie:Q,ce=function(e,t){var n=ne[e]=g(V);return z(n,{type:B,tag:e,description:t}),c||(n.description=t),n},se=function(e,t,n){e===U&&se(re,t,n),d(e);var r=v(t);return d(n),f(ne,r)?(n.enumerable?(f(e,F)&&e[F][r]&&(e[F][r]=!1),n=g(n,{enumerable:y(0,!1)})):(f(e,F)||Q(e,F,y(1,{})),e[F][r]=!0),ue(e,r,n)):Q(e,r,n)},le=function(e,t){d(e);var n=h(t),r=b(n).concat(he(n));return $(r,(function(t){c&&!o(fe,n,t)||se(e,t,n[t])})),e},fe=function(e){var t=v(e),n=o(ee,this,t);return!(this===U&&f(ne,t)&&!f(re,t))&&(!(n||!f(this,t)||!f(ne,t)||f(this,F)&&this[F][t])||n)},pe=function(e,t){var n=h(e),r=v(t);if(n!==U||!f(ne,r)||f(re,r)){var a=X(n,r);return!a||!f(ne,r)||f(n,F)&&n[F][r]||(a.enumerable=!0),a}},de=function(e){var t=J(h(e)),n=[];return $(t,(function(e){f(ne,e)||f(T,e)||te(n,e)})),n},he=function(e){var t=e===U,n=J(t?re:h(e)),r=[];return $(n,(function(e){!f(ne,e)||t&&!f(U,e)||te(r,ne[e])})),r};s||(W=function(){if(p(V,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=I(e),n=function(e){var r=void 0===this?a:this;r===U&&o(n,re,e),f(r,F)&&f(r[F],t)&&(r[F][t]=!1);var i=y(1,e);try{ue(r,t,i)}catch(e){if(!(e instanceof G))throw e;ie(r,t,i)}};return c&&oe&&ue(U,t,{configurable:!0,set:n}),ce(t,e)},P(V=W[q],"toString",(function(){return H(this).tag})),P(W,"withoutSetter",(function(e){return ce(I(e),e)})),C.f=fe,E.f=se,S.f=le,k.f=pe,_.f=w.f=de,x.f=he,R.f=function(e){return ce(M(e),e)},c&&(O(V,"description",{configurable:!0,get:function(){return H(this).description}}),u||P(U,"propertyIsEnumerable",fe,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!s,sham:!s},{Symbol:W}),$(b(ae),(function(e){L(e)})),r({target:B,stat:!0,forced:!s},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!c},{create:function(e,t){return void 0===t?g(e):le(g(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:pe}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:de}),Z(),D(W,B),T[F]=!0},44852:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(92916),i=n(94237),u=n(32621),c=n(55327),s=n(16332),l=n(69905),f=n(64110),p=n(24538),d=o.Symbol,h=d&&d.prototype;if(a&&c(d)&&(!("description"in h)||void 0!==d().description)){var v={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=s(h,this)?new d(e):void 0===e?d():d(e);return""===e&&(v[t]=!0),t};p(m,d),m.prototype=h,h.constructor=m;var y="Symbol(description detection)"===String(d("description detection")),g=i(h.valueOf),b=i(h.toString),_=/^Symbol\((.*)\)[^)]+$/,w=i("".replace),x=i("".slice);f(h,"description",{configurable:!0,get:function(){var e=g(this);if(u(v,e))return"";var t=b(e),n=y?x(t,7,-1):w(t,_,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},54524:function(e,t,n){"use strict";var r=n(94488),a=n(65911),o=n(32621),i=n(69905),u=n(77898),c=n(60798),s=u("string-to-symbol-registry"),l=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=i(e);if(o(s,t))return s[t];var n=a("Symbol")(t);return s[t]=n,l[n]=t,n}})},17898:function(e,t,n){"use strict";n(94674)("hasInstance")},40902:function(e,t,n){"use strict";n(94674)("isConcatSpreadable")},2259:function(e,t,n){"use strict";n(94674)("iterator")},68557:function(e,t,n){"use strict";n(39161),n(54524),n(32340),n(54226),n(67936)},32340:function(e,t,n){"use strict";var r=n(94488),a=n(32621),o=n(18446),i=n(40593),u=n(77898),c=n(60798),s=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!o(e))throw new TypeError(i(e)+" is not a symbol");if(a(s,e))return s[e]}})},69811:function(e,t,n){"use strict";n(94674)("matchAll")},14589:function(e,t,n){"use strict";n(94674)("match")},18114:function(e,t,n){"use strict";n(94674)("replace")},23844:function(e,t,n){"use strict";n(94674)("search")},39581:function(e,t,n){"use strict";n(94674)("species")},40632:function(e,t,n){"use strict";n(94674)("split")},22690:function(e,t,n){"use strict";var r=n(94674),a=n(14311);r("toPrimitive"),a()},7786:function(e,t,n){"use strict";var r=n(65911),a=n(94674),o=n(94573);a("toStringTag"),o(r("Symbol"),"Symbol")},99062:function(e,t,n){"use strict";n(94674)("unscopables")},35246:function(e,t,n){"use strict";var r=n(58261),a=n(82762),o=n(56902),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(e){var t=i(this),n=a(t),r=o(e),u=r>=0?r:n+r;return u<0||u>=n?void 0:t[u]}))},83470:function(e,t,n){"use strict";var r=n(94237),a=n(58261),o=r(n(92670)),i=a.aTypedArray;(0,a.exportTypedArrayMethod)("copyWithin",(function(e,t){return o(i(this),e,t,arguments.length>2?arguments[2]:void 0)}))},79641:function(e,t,n){"use strict";var r=n(58261),a=n(90560).every,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},72397:function(e,t,n){"use strict";var r=n(58261),a=n(75202),o=n(93303),i=n(97607),u=n(89945),c=n(94237),s=n(3338),l=r.aTypedArray,f=r.exportTypedArrayMethod,p=c("".slice);f("fill",(function(e){var t=arguments.length;l(this);var n="Big"===p(i(this),0,3)?o(e):+e;return u(a,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),s((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},24860:function(e,t,n){"use strict";var r=n(58261),a=n(90560).filter,o=n(27607),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=a(i(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},56233:function(e,t,n){"use strict";var r=n(58261),a=n(90560).findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},64344:function(e,t,n){"use strict";var r=n(58261),a=n(53279).findLastIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},59419:function(e,t,n){"use strict";var r=n(58261),a=n(53279).findLast,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},19320:function(e,t,n){"use strict";var r=n(58261),a=n(90560).find,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},84432:function(e,t,n){"use strict";n(69733)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},59022:function(e,t,n){"use strict";n(69733)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},5316:function(e,t,n){"use strict";var r=n(58261),a=n(90560).forEach,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},93744:function(e,t,n){"use strict";var r=n(59627);(0,n(58261).exportTypedArrayStaticMethod)("from",n(50706),r)},19299:function(e,t,n){"use strict";var r=n(58261),a=n(22999).includes,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},15286:function(e,t,n){"use strict";var r=n(58261),a=n(22999).indexOf,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},51054:function(e,t,n){"use strict";n(69733)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},60330:function(e,t,n){"use strict";n(69733)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},19363:function(e,t,n){"use strict";n(69733)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},91927:function(e,t,n){"use strict";var r=n(92916),a=n(3338),o=n(94237),i=n(58261),u=n(11005),c=n(59893)("iterator"),s=r.Uint8Array,l=o(u.values),f=o(u.keys),p=o(u.entries),d=i.aTypedArray,h=i.exportTypedArrayMethod,v=s&&s.prototype,m=!a((function(){v[c].call([1])})),y=!!v&&v.values&&v[c]===v.values&&"values"===v.values.name,g=function(){return l(d(this))};h("entries",(function(){return p(d(this))}),m),h("keys",(function(){return f(d(this))}),m),h("values",g,m||!y,{name:"values"}),h(c,g,m||!y,{name:"values"})},27730:function(e,t,n){"use strict";var r=n(58261),a=n(94237),o=r.aTypedArray,i=r.exportTypedArrayMethod,u=a([].join);i("join",(function(e){return u(o(this),e)}))},58707:function(e,t,n){"use strict";var r=n(58261),a=n(13743),o=n(55009),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return a(o,i(this),t>1?[e,arguments[1]]:[e])}))},41356:function(e,t,n){"use strict";var r=n(58261),a=n(90560).map,o=n(31384),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(e))(t)}))}))},51606:function(e,t,n){"use strict";var r=n(58261),a=n(59627),o=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(o(this))(t);t>e;)n[e]=arguments[e++];return n}),a)},38458:function(e,t,n){"use strict";var r=n(58261),a=n(16370).right,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return a(o(this),e,t,t>1?arguments[1]:void 0)}))},8966:function(e,t,n){"use strict";var r=n(58261),a=n(16370).left,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return a(o(this),e,t,t>1?arguments[1]:void 0)}))},71957:function(e,t,n){"use strict";var r=n(58261),a=r.aTypedArray,o=r.exportTypedArrayMethod,i=Math.floor;o("reverse",(function(){for(var e,t=this,n=a(t).length,r=i(n/2),o=0;o1?arguments[1]:void 0,1),n=c(e);if(m)return a(d,this,n,t);var r=this.length,o=i(n),s=0;if(o+t>r)throw new l("Wrong length");for(;so;)s[o]=n[o++];return s}),o((function(){new Int8Array(1).slice()})))},96519:function(e,t,n){"use strict";var r=n(58261),a=n(90560).some,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},95576:function(e,t,n){"use strict";var r=n(92916),a=n(34114),o=n(3338),i=n(63335),u=n(63668),c=n(58261),s=n(78177),l=n(17687),f=n(46573),p=n(19684),d=c.aTypedArray,h=c.exportTypedArrayMethod,v=r.Uint16Array,m=v&&a(v.prototype.sort),y=!(!m||o((function(){m(new v(2),null)}))&&o((function(){m(new v(2),{})}))),g=!!m&&!o((function(){if(f)return f<74;if(s)return s<67;if(l)return!0;if(p)return p<602;var e,t,n=new v(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(m(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));h("sort",(function(e){return void 0!==e&&i(e),g?m(this,e):u(d(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!g||y)},63079:function(e,t,n){"use strict";var r=n(58261),a=n(61578),o=n(51981),i=n(31384),u=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=u(this),r=n.length,c=o(e,r);return new(i(n))(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,a((void 0===t?r:o(t,r))-c))}))},8995:function(e,t,n){"use strict";var r=n(92916),a=n(13743),o=n(58261),i=n(3338),u=n(30867),c=r.Int8Array,s=o.aTypedArray,l=o.exportTypedArrayMethod,f=[].toLocaleString,p=!!c&&i((function(){f.call(new c(1))}));l("toLocaleString",(function(){return a(f,p?u(s(this)):s(this),u(arguments))}),i((function(){return[1,2].toLocaleString()!==new c([1,2]).toLocaleString()}))||!i((function(){c.prototype.toLocaleString.call([1,2])})))},23080:function(e,t,n){"use strict";var r=n(85903),a=n(58261),o=a.aTypedArray,i=a.exportTypedArrayMethod,u=a.getTypedArrayConstructor;i("toReversed",(function(){return r(o(this),u(this))}))},74701:function(e,t,n){"use strict";var r=n(58261),a=n(94237),o=n(63335),i=n(69478),u=r.aTypedArray,c=r.getTypedArrayConstructor,s=r.exportTypedArrayMethod,l=a(r.TypedArrayPrototype.sort);s("toSorted",(function(e){void 0!==e&&o(e);var t=u(this),n=i(c(t),t);return l(n,e)}))},91809:function(e,t,n){"use strict";var r=n(58261).exportTypedArrayMethod,a=n(3338),o=n(92916),i=n(94237),u=o.Uint8Array,c=u&&u.prototype||{},s=[].toString,l=i([].join);a((function(){s.call({})}))&&(s=function(){return l(this)});var f=c.toString!==s;r("toString",s,f)},64336:function(e,t,n){"use strict";n(69733)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},63914:function(e,t,n){"use strict";n(69733)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},55234:function(e,t,n){"use strict";n(69733)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},88104:function(e,t,n){"use strict";n(69733)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},77517:function(e,t,n){"use strict";var r=n(82041),a=n(58261),o=n(75406),i=n(56902),u=n(93303),c=a.aTypedArray,s=a.getTypedArrayConstructor,l=a.exportTypedArrayMethod,f=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();l("with",{with:function(e,t){var n=c(this),a=i(e),l=o(n)?u(t):+t;return r(n,s(n),a,l)}}.with,!f)},58453:function(e,t,n){"use strict";var r,a=n(13247),o=n(92916),i=n(94237),u=n(66477),c=n(2074),s=n(48059),l=n(39656),f=n(31946),p=n(94844).enforce,d=n(3338),h=n(40115),v=Object,m=Array.isArray,y=v.isExtensible,g=v.isFrozen,b=v.isSealed,_=v.freeze,w=v.seal,x={},k={},E=!o.ActiveXObject&&"ActiveXObject"in o,S=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},C=s("WeakMap",S,l),P=C.prototype,O=i(P.set);if(h)if(E){r=l.getConstructor(S,"WeakMap",!0),c.enable();var j=i(P.delete),A=i(P.has),T=i(P.get);u(P,{delete:function(e){if(f(e)&&!y(e)){var t=p(this);return t.frozen||(t.frozen=new r),j(this,e)||t.frozen.delete(e)}return j(this,e)},has:function(e){if(f(e)&&!y(e)){var t=p(this);return t.frozen||(t.frozen=new r),A(this,e)||t.frozen.has(e)}return A(this,e)},get:function(e){if(f(e)&&!y(e)){var t=p(this);return t.frozen||(t.frozen=new r),A(this,e)?T(this,e):t.frozen.get(e)}return T(this,e)},set:function(e,t){if(f(e)&&!y(e)){var n=p(this);n.frozen||(n.frozen=new r),A(this,e)?O(this,e,t):n.frozen.set(e,t)}else O(this,e,t);return this}})}else a&&d((function(){var e=_([]);return O(new C,e,1),!g(e)}))&&u(P,{set:function(e,t){var n;return m(e)&&(g(e)?n=x:b(e)&&(n=k)),O(this,e,t),n===x&&_(e),n===k&&w(e),this}})},55410:function(e,t,n){"use strict";n(58453)},65092:function(e,t,n){"use strict";n(48059)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(39656))},46161:function(e,t,n){"use strict";n(65092)},88900:function(e,t,n){"use strict";var r=n(35454),a=n(64110),o=n(93683),i=ArrayBuffer.prototype;r&&!("detached"in i)&&a(i,"detached",{configurable:!0,get:function(){return o(this)}})},81138:function(e,t,n){"use strict";var r=n(94488),a=n(39760);a&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return a(this,arguments.length?arguments[0]:void 0,!1)}})},54815:function(e,t,n){"use strict";var r=n(94488),a=n(39760);a&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return a(this,arguments.length?arguments[0]:void 0,!0)}})},2722:function(e,t,n){"use strict";var r=n(94488),a=n(90560).filterReject,o=n(81181);r({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("filterOut")},55885:function(e,t,n){"use strict";var r=n(94488),a=n(90560).filterReject,o=n(81181);r({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("filterReject")},91130:function(e,t,n){"use strict";n(94488)({target:"Array",stat:!0},{fromAsync:n(32278)})},64963:function(e,t,n){"use strict";var r=n(94488),a=n(45601),o=n(81181),i=n(33940);r({target:"Array",proto:!0,name:"groupToMap",forced:n(16697)||!a("groupByToMap")},{groupByToMap:i}),o("groupByToMap")},8604:function(e,t,n){"use strict";var r=n(94488),a=n(36444),o=n(45601),i=n(81181);r({target:"Array",proto:!0,forced:!o("groupBy")},{groupBy:function(e){var t=arguments.length>1?arguments[1]:void 0;return a(this,e,t)}}),i("groupBy")},25178:function(e,t,n){"use strict";var r=n(94488),a=n(81181),o=n(33940);r({target:"Array",proto:!0,forced:n(16697)},{groupToMap:o}),a("groupToMap")},39034:function(e,t,n){"use strict";var r=n(94488),a=n(36444),o=n(81181);r({target:"Array",proto:!0},{group:function(e){var t=arguments.length>1?arguments[1]:void 0;return a(this,e,t)}}),o("group")},1905:function(e,t,n){"use strict";var r=n(94488),a=n(18589),o=Object.isFrozen,i=function(e,t){if(!o||!a(e)||!o(e))return!1;for(var n,r=0,i=e.length;r1&&arguments[1]);return o([255&t,t>>8&255],10)}})},93236:function(e,t,n){"use strict";var r=n(94488),a=n(94237)(DataView.prototype.getUint8);r({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(e){return a(this,e)}})},42212:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(97607),i=n(24225),u=n(61618).pack,c=n(35175),s=TypeError,l=a(DataView.prototype.setUint16);r({target:"DataView",proto:!0},{setFloat16:function(e,t){if("DataView"!==o(this))throw new s("Incorrect receiver");var n=i(e),r=u(c(t),10,2);return l(this,n,r[1]<<8|r[0],arguments.length>2&&arguments[2])}})},63923:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(97607),i=n(24225),u=n(86350),c=TypeError,s=a(DataView.prototype.setUint8);r({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(e,t){if("DataView"!==o(this))throw new c("Incorrect receiver");var n=i(e);return s(this,n,u(t))}})},2278:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(65911),i=n(63335),u=n(56472),c=n(2291),s=n(66477),l=n(64110),f=n(59893),p=n(94844),d=n(5978),h=o("SuppressedError"),v=ReferenceError,m=f("dispose"),y=f("toStringTag"),g="DisposableStack",b=p.set,_=p.getterFor(g),w="sync-dispose",x="disposed",k=function(e){var t=_(e);if(t.state===x)throw new v(g+" already disposed");return t},E=function(){b(u(this,S),{type:g,state:"pending",stack:[]}),a||(this.disposed=!1)},S=E.prototype;s(S,{dispose:function(){var e=_(this);if(e.state!==x){e.state=x,a||(this.disposed=!0);for(var t,n=e.stack,r=n.length,o=!1;r;){var i=n[--r];n[r]=null;try{i()}catch(e){o?t=new h(e,t):(o=!0,t=e)}}if(e.stack=null,o)throw t}},use:function(e){return d(k(this),e,w),e},adopt:function(e,t){var n=k(this);return i(t),d(n,void 0,w,(function(){t(e)})),e},defer:function(e){var t=k(this);i(e),d(t,void 0,w,e)},move:function(){var e=k(this),t=new E;return _(t).stack=e.stack,e.stack=[],e.state=x,a||(this.disposed=!0),t}}),a&&l(S,"disposed",{configurable:!0,get:function(){return _(this).state===x}}),c(S,m,S.dispose,{name:"dispose"}),c(S,y,g,{nonWritable:!0}),r({global:!0,constructor:!0},{DisposableStack:E})},36955:function(e,t,n){"use strict";n(94488)({target:"Function",proto:!0,forced:!0},{demethodize:n(47739)})},77326:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(55327),i=n(15212),u=n(32621),c=n(35454),s=Object.getOwnPropertyDescriptor,l=/^\s*class\b/,f=a(l.exec);r({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(e){return o(e)&&!function(e){try{if(!c||!f(l,i(e)))return!1}catch(e){}var t=s(e,"prototype");return!!t&&u(t,"writable")&&!t.writable}(e)}})},53571:function(e,t,n){"use strict";n(94488)({target:"Function",stat:!0,forced:!0},{isConstructor:n(39812)})},28670:function(e,t,n){"use strict";var r=n(59893),a=n(37691).f,o=r("metadata"),i=Function.prototype;void 0===i[o]&&a(i,o,{value:null})},31050:function(e,t,n){"use strict";n(94488)({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:n(47739)})},96364:function(e,t,n){"use strict";n(94488)({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:n(24771)})},25321:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(56472),i=n(80449),u=n(55327),c=n(53456),s=n(64110),l=n(69392),f=n(3338),p=n(32621),d=n(59893),h=n(46571).IteratorPrototype,v=n(35454),m=n(16697),y="constructor",g="Iterator",b=d("toStringTag"),_=TypeError,w=a[g],x=m||!u(w)||w.prototype!==h||!f((function(){w({})})),k=function(){if(o(this,h),c(this)===h)throw new _("Abstract class Iterator not directly constructable")},E=function(e,t){v?s(h,e,{configurable:!0,get:function(){return t},set:function(t){if(i(this),this===h)throw new _("You can't redefine this property");p(this,e)?this[e]=t:l(this,e,t)}}):h[e]=t};p(h,b)||E(b,g),!x&&p(h,y)&&h[y]!==Object||E(y,k),k.prototype=h,r({global:!0,constructor:!0,forced:x},{Iterator:k})},46304:function(e,t,n){"use strict";var r=n(89945),a=n(2291),o=n(53776),i=n(32621),u=n(59893),c=n(46571).IteratorPrototype,s=u("dispose");i(c,s)||a(c,s,(function(){var e=o(this,"return");e&&r(e,this)}))},55163:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(80449),i=n(10731),u=n(2279),c=n(51358),s=n(20547),l=n(16697),f=s((function(){for(var e,t=this.iterator,n=this.next;this.remaining;)if(this.remaining--,e=o(a(n,t)),this.done=!!e.done)return;if(e=o(a(n,t)),!(this.done=!!e.done))return e.value}));r({target:"Iterator",proto:!0,real:!0,forced:l},{drop:function(e){o(this);var t=c(u(+e));return new f(i(this),{remaining:t})}})},78722:function(e,t,n){"use strict";var r=n(94488),a=n(62003),o=n(63335),i=n(80449),u=n(10731);r({target:"Iterator",proto:!0,real:!0},{every:function(e){i(this),o(e);var t=u(this),n=0;return!a(t,(function(t,r){if(!e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},35977:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(63335),i=n(80449),u=n(10731),c=n(20547),s=n(46319),l=n(16697),f=c((function(){for(var e,t,n=this.iterator,r=this.predicate,o=this.next;;){if(e=i(a(o,n)),this.done=!!e.done)return;if(t=e.value,s(n,r,[t,this.counter++],!0))return t}}));r({target:"Iterator",proto:!0,real:!0,forced:l},{filter:function(e){return i(this),o(e),new f(u(this),{predicate:e})}})},81848:function(e,t,n){"use strict";var r=n(94488),a=n(62003),o=n(63335),i=n(80449),u=n(10731);r({target:"Iterator",proto:!0,real:!0},{find:function(e){i(this),o(e);var t=u(this),n=0;return a(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},52867:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(63335),i=n(80449),u=n(10731),c=n(7157),s=n(20547),l=n(67996),f=n(16697),p=s((function(){for(var e,t,n=this.iterator,r=this.mapper;;){if(t=this.inner)try{if(!(e=i(a(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){l(n,"throw",e)}if(e=i(a(this.next,n)),this.done=!!e.done)return;try{this.inner=c(r(e.value,this.counter++),!1)}catch(e){l(n,"throw",e)}}}));r({target:"Iterator",proto:!0,real:!0,forced:f},{flatMap:function(e){return i(this),o(e),new p(u(this),{mapper:e,inner:null})}})},72211:function(e,t,n){"use strict";var r=n(94488),a=n(62003),o=n(63335),i=n(80449),u=n(10731);r({target:"Iterator",proto:!0,real:!0},{forEach:function(e){i(this),o(e);var t=u(this),n=0;a(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},84862:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(94029),i=n(16332),u=n(46571).IteratorPrototype,c=n(20547),s=n(7157),l=n(16697),f=c((function(){return a(this.next,this.iterator)}),!0);r({target:"Iterator",stat:!0,forced:l},{from:function(e){var t=s("string"==typeof e?o(e):e,!0);return i(u,t.iterator)?t.iterator:new f(t)}})},92381:function(e,t,n){"use strict";n(94488)({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:n(24771)})},19517:function(e,t,n){"use strict";var r=n(94488),a=n(2155);r({target:"Iterator",proto:!0,real:!0,forced:n(16697)},{map:a})},69667:function(e,t,n){"use strict";var r=n(94488),a=n(17243),o=TypeError;r({target:"Iterator",stat:!0,forced:!0},{range:function(e,t,n){if("number"==typeof e)return new a(e,t,n,"number",0,1);if("bigint"==typeof e)return new a(e,t,n,"bigint",BigInt(0),BigInt(1));throw new o("Incorrect Iterator.range arguments")}})},80820:function(e,t,n){"use strict";var r=n(94488),a=n(62003),o=n(63335),i=n(80449),u=n(10731),c=TypeError;r({target:"Iterator",proto:!0,real:!0},{reduce:function(e){i(this),o(e);var t=u(this),n=arguments.length<2,r=n?void 0:arguments[1],s=0;if(a(t,(function(t){n?(n=!1,r=t):r=e(r,t,s),s++}),{IS_RECORD:!0}),n)throw new c("Reduce of empty iterator with no initial value");return r}})},87873:function(e,t,n){"use strict";var r=n(94488),a=n(62003),o=n(63335),i=n(80449),u=n(10731);r({target:"Iterator",proto:!0,real:!0},{some:function(e){i(this),o(e);var t=u(this),n=0;return a(t,(function(t,r){if(e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},54609:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(80449),i=n(10731),u=n(2279),c=n(51358),s=n(20547),l=n(67996),f=n(16697),p=s((function(){var e=this.iterator;if(!this.remaining--)return this.done=!0,l(e,"normal",void 0);var t=o(a(this.next,e));return(this.done=!!t.done)?void 0:t.value}));r({target:"Iterator",proto:!0,real:!0,forced:f},{take:function(e){o(this);var t=c(u(+e));return new p(i(this),{remaining:t})}})},28566:function(e,t,n){"use strict";var r=n(94488),a=n(80449),o=n(62003),i=n(10731),u=[].push;r({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return o(i(a(this)),u,{that:e,IS_RECORD:!0}),e}})},51697:function(e,t,n){"use strict";var r=n(94488),a=n(80449),o=n(57975),i=n(80025),u=n(10731);r({target:"Iterator",proto:!0,real:!0,forced:n(16697)},{toAsync:function(){return new i(u(new o(u(a(this)))))}})},61872:function(e,t,n){"use strict";n(94488)({target:"JSON",stat:!0,forced:!n(82778)},{isRawJSON:n(83502)})},76077:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(92916),i=n(65911),u=n(94237),c=n(89945),s=n(55327),l=n(31946),f=n(18589),p=n(32621),d=n(69905),h=n(82762),v=n(69392),m=n(3338),y=n(70913),g=n(42820),b=o.JSON,_=o.Number,w=o.SyntaxError,x=b&&b.parse,k=i("Object","keys"),E=Object.getOwnPropertyDescriptor,S=u("".charAt),C=u("".slice),P=u(/./.exec),O=u([].push),j=/^\d$/,A=/^[1-9]$/,T=/^(?:-|\d)$/,I=/^[\t\n\r ]$/,M=function(e,t,n,r){var a,o,i,u,s,d=e[t],v=r&&d===r.value,m=v&&"string"==typeof r.source?{source:r.source}:{};if(l(d)){var y=f(d),g=v?r.nodes:y?[]:{};if(y)for(a=g.length,i=h(d),u=0;u1?arguments[1]:void 0);return!1!==i(t,(function(e,r){if(!n(e,r,t))return!1}),!0)}})},28220:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(42683),i=n(2786),u=n(95037),c=i.Map,s=i.set;r({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0),r=new c;return u(t,(function(e,a){n(e,a,t)&&s(r,a,e)})),r}})},49350:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(42683),i=n(95037);r({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0),r=i(t,(function(e,r){if(n(e,r,t))return{key:r}}),!0);return r&&r.key}})},62060:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(42683),i=n(95037);r({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0),r=i(t,(function(e,r){if(n(e,r,t))return{value:e}}),!0);return r&&r.value}})},20126:function(e,t,n){"use strict";n(94488)({target:"Map",stat:!0,forced:!0},{from:n(72846)})},18090:function(e,t,n){"use strict";var r=n(94488),a=n(88134),o=n(42683),i=n(95037);r({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===i(o(this),(function(t){if(a(t,e))return!0}),!0)}})},14309:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(62003),i=n(55327),u=n(63335),c=n(2786).Map;r({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new(i(this)?this:c);u(t);var r=u(n.set);return o(e,(function(e){a(r,n,t(e),e)})),n}})},17822:function(e,t,n){"use strict";var r=n(94488),a=n(42683),o=n(95037);r({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=o(a(this),(function(t,n){if(t===e)return{key:n}}),!0);return t&&t.key}})},83543:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(42683),i=n(2786),u=n(95037),c=i.Map,s=i.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0),r=new c;return u(t,(function(e,a){s(r,n(e,a,t),e)})),r}})},13853:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(42683),i=n(2786),u=n(95037),c=i.Map,s=i.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0),r=new c;return u(t,(function(e,a){s(r,a,n(e,a,t))})),r}})},25188:function(e,t,n){"use strict";var r=n(94488),a=n(42683),o=n(62003),i=n(2786).set;r({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=a(this),n=arguments.length,r=0;r1?arguments[1]:void 0);return!0===i(t,(function(e,r){if(n(e,r,t))return!0}),!0)}})},8774:function(e,t,n){"use strict";n(94488)({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:n(14615)})},6736:function(e,t,n){"use strict";var r=n(94488),a=n(63335),o=n(42683),i=n(2786),u=TypeError,c=i.get,s=i.has,l=i.set;r({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=o(this),r=arguments.length;a(t);var i=s(n,e);if(!i&&r<3)throw new u("Updating absent value");var f=i?c(n,e):a(r>2?arguments[2]:void 0)(e,n);return l(n,e,t(f,e,n)),n}})},94065:function(e,t,n){"use strict";n(94488)({target:"Map",proto:!0,real:!0,forced:!0},{upsert:n(14615)})},93036:function(e,t,n){"use strict";var r=n(94488),a=Math.min,o=Math.max;r({target:"Math",stat:!0,forced:!0},{clamp:function(e,t,n){return a(n,o(t,e))}})},75708:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},84624:function(e,t,n){"use strict";var r=n(94488),a=180/Math.PI;r({target:"Math",stat:!0,forced:!0},{degrees:function(e){return e*a}})},43710:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0},{f16round:n(35175)})},66233:function(e,t,n){"use strict";var r=n(94488),a=n(24619),o=n(14894);r({target:"Math",stat:!0,forced:!0},{fscale:function(e,t,n,r,i){return o(a(e,t,n,r,i))}})},92762:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0,forced:!0},{iaddh:function(e,t,n,r){var a=e>>>0,o=n>>>0;return(t>>>0)+(r>>>0)+((a&o|(a|o)&~(a+o>>>0))>>>31)|0}})},24467:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0,forced:!0},{imulh:function(e,t){var n=65535,r=+e,a=+t,o=r&n,i=a&n,u=r>>16,c=a>>16,s=(u*i>>>0)+(o*i>>>16);return u*c+(s>>16)+((o*c>>>0)+(s&n)>>16)}})},68465:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0,forced:!0},{isubh:function(e,t,n,r){var a=e>>>0,o=n>>>0;return(t>>>0)-(r>>>0)-((~a&o|~(a^o)&a-o>>>0)>>>31)|0}})},77004:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},83925:function(e,t,n){"use strict";var r=n(94488),a=Math.PI/180;r({target:"Math",stat:!0,forced:!0},{radians:function(e){return e*a}})},51117:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0,forced:!0},{scale:n(24619)})},87236:function(e,t,n){"use strict";var r=n(94488),a=n(80449),o=n(1222),i=n(83126),u=n(25587),c=n(94844),s="Seeded Random",l=s+" Generator",f=c.set,p=c.getterFor(l),d=TypeError,h=i((function(e){f(this,{type:l,seed:e%2147483647})}),s,(function(){var e=p(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return u((1073741823&t)/1073741823,!1)}));r({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=a(e).seed;if(!o(t))throw new d('Math.seededPRNG() argument should have a "seed" field with a finite value.');return new h(t)}})},83733:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0,forced:!0},{signbit:function(e){var t=+e;return t==t&&0===t?1/t==-1/0:t<0}})},92044:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0,forced:!0},{umulh:function(e,t){var n=65535,r=+e,a=+t,o=r&n,i=a&n,u=r>>>16,c=a>>>16,s=(u*i>>>0)+(o*i>>>16);return u*c+(s>>>16)+((o*c>>>0)+(s&n)>>>16)}})},29190:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(56902),i="Invalid number representation",u=RangeError,c=SyntaxError,s=TypeError,l=parseInt,f=Math.pow,p=/^[\d.a-z]+$/,d=a("".charAt),h=a(p.exec),v=a(1..toString),m=a("".slice),y=a("".split);r({target:"Number",stat:!0,forced:!0},{fromString:function(e,t){var n=1;if("string"!=typeof e)throw new s(i);if(!e.length)throw new c(i);if("-"===d(e,0)&&(n=-1,!(e=m(e,1)).length))throw new c(i);var r=void 0===t?10:o(t);if(r<2||r>36)throw new u("Invalid radix");if(!h(p,e))throw new c(i);var a=y(e,"."),g=l(a[0],r);if(a.length>1&&(g+=l(a[1],r)/f(r,a[1].length)),10===r&&v(g,r)!==e)throw new c(i);return n*g}})},10775:function(e,t,n){"use strict";var r=n(94488),a=n(17243);r({target:"Number",stat:!0,forced:!0},{range:function(e,t,n){return new a(e,t,n,"number",0,1)}})},19593:function(e,t,n){"use strict";var r=n(94488),a=n(20574);r({target:"Object",stat:!0,forced:!0},{iterateEntries:function(e){return new a(e,"entries")}})},26502:function(e,t,n){"use strict";var r=n(94488),a=n(20574);r({target:"Object",stat:!0,forced:!0},{iterateKeys:function(e){return new a(e,"keys")}})},10174:function(e,t,n){"use strict";var r=n(94488),a=n(20574);r({target:"Object",stat:!0,forced:!0},{iterateValues:function(e){return new a(e,"values")}})},76867:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(35454),i=n(51996),u=n(63335),c=n(80449),s=n(56472),l=n(55327),f=n(4112),p=n(31946),d=n(53776),h=n(2291),v=n(66477),m=n(64110),y=n(61810),g=n(59893),b=n(94844),_=g("observable"),w="Observable",x="Subscription",k="SubscriptionObserver",E=b.getterFor,S=b.set,C=E(w),P=E(x),O=E(k),j=function(e){this.observer=c(e),this.cleanup=void 0,this.subscriptionObserver=void 0};j.prototype={type:x,clean:function(){var e=this.cleanup;if(e){this.cleanup=void 0;try{e()}catch(e){y(e)}}},close:function(){if(!o){var e=this.facade,t=this.subscriptionObserver;e.closed=!0,t&&(t.closed=!0)}this.observer=void 0},isClosed:function(){return void 0===this.observer}};var A=function(e,t){var n,r=S(this,new j(e));o||(this.closed=!1);try{(n=d(e,"start"))&&a(n,e,this)}catch(e){y(e)}if(!r.isClosed()){var i=r.subscriptionObserver=new T(r);try{var c=t(i),s=c;f(c)||(r.cleanup=l(c.unsubscribe)?function(){s.unsubscribe()}:u(c))}catch(e){return void i.error(e)}r.isClosed()&&r.clean()}};A.prototype=v({},{unsubscribe:function(){var e=P(this);e.isClosed()||(e.close(),e.clean())}}),o&&m(A.prototype,"closed",{configurable:!0,get:function(){return P(this).isClosed()}});var T=function(e){S(this,{type:k,subscriptionState:e}),o||(this.closed=!1)};T.prototype=v({},{next:function(e){var t=O(this).subscriptionState;if(!t.isClosed()){var n=t.observer;try{var r=d(n,"next");r&&a(r,n,e)}catch(e){y(e)}}},error:function(e){var t=O(this).subscriptionState;if(!t.isClosed()){var n=t.observer;t.close();try{var r=d(n,"error");r?a(r,n,e):y(e)}catch(e){y(e)}t.clean()}},complete:function(){var e=O(this).subscriptionState;if(!e.isClosed()){var t=e.observer;e.close();try{var n=d(t,"complete");n&&a(n,t)}catch(e){y(e)}e.clean()}}}),o&&m(T.prototype,"closed",{configurable:!0,get:function(){return O(this).subscriptionState.isClosed()}});var I=function(e){s(this,M),S(this,{type:w,subscriber:u(e)})},M=I.prototype;v(M,{subscribe:function(e){var t=arguments.length;return new A(l(e)?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:p(e)?e:{},C(this).subscriber)}}),h(M,_,(function(){return this})),r({global:!0,constructor:!0,forced:!0},{Observable:I}),i(w)},14548:function(e,t,n){"use strict";var r=n(94488),a=n(65911),o=n(89945),i=n(80449),u=n(39812),c=n(85428),s=n(53776),l=n(62003),f=n(59893)("observable");r({target:"Observable",stat:!0,forced:!0},{from:function(e){var t=u(this)?this:a("Observable"),n=s(i(e),f);if(n){var r=i(o(n,e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}var p=c(e);return new t((function(e){l(p,(function(t,n){if(e.next(t),e.closed)return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}),e.complete()}))}})},96378:function(e,t,n){"use strict";n(76867),n(14548),n(6053)},6053:function(e,t,n){"use strict";var r=n(94488),a=n(65911),o=n(39812),i=a("Array");r({target:"Observable",stat:!0,forced:!0},{of:function(){for(var e=o(this)?this:a("Observable"),t=arguments.length,n=i(t),r=0;r?@[\\\\\\]^`{|}~"+i+"]","g");r({target:"RegExp",stat:!0,forced:!0},{escape:function(e){var t=o(e),n=u(t,0);return(n>47&&n<58?"\\x3":"")+c(t,s,"\\$&")}})},1220:function(e,t,n){"use strict";var r=n(94488),a=n(17442),o=n(19691).add;r({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=a(this),t=0,n=arguments.length;t1?arguments[1]:void 0);return!1!==i(t,(function(e){if(!n(e,e,t))return!1}),!0)}})},38487:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(17442),i=n(19691),u=n(57002),c=i.Set,s=i.add;r({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0),r=new c;return u(t,(function(e){n(e,e,t)&&s(r,e)})),r}})},29916:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(17442),i=n(57002);r({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0),r=i(t,(function(e){if(n(e,e,t))return{value:e}}),!0);return r&&r.value}})},25541:function(e,t,n){"use strict";n(94488)({target:"Set",stat:!0,forced:!0},{from:n(72846)})},34926:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(77999),i=n(16049);r({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return a(i,this,o(e))}})},45612:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(16049);r({target:"Set",proto:!0,real:!0,forced:!n(22627)("intersection")||a((function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))}))},{intersection:o})},68255:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(77999),i=n(17616);r({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return a(i,this,o(e))}})},98080:function(e,t,n){"use strict";var r=n(94488),a=n(17616);r({target:"Set",proto:!0,real:!0,forced:!n(22627)("isDisjointFrom")},{isDisjointFrom:a})},16450:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(77999),i=n(84833);r({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return a(i,this,o(e))}})},96351:function(e,t,n){"use strict";var r=n(94488),a=n(84833);r({target:"Set",proto:!0,real:!0,forced:!n(22627)("isSubsetOf")},{isSubsetOf:a})},86921:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(77999),i=n(51135);r({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return a(i,this,o(e))}})},60244:function(e,t,n){"use strict";var r=n(94488),a=n(51135);r({target:"Set",proto:!0,real:!0,forced:!n(22627)("isSupersetOf")},{isSupersetOf:a})},82928:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(17442),i=n(57002),u=n(69905),c=a([].join),s=a([].push);r({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=o(this),n=void 0===e?",":u(e),r=[];return i(t,(function(e){s(r,e)})),c(r,n)}})},42947:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(17442),i=n(19691),u=n(57002),c=i.Set,s=i.add;r({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0),r=new c;return u(t,(function(e){s(r,n(e,e,t))})),r}})},71568:function(e,t,n){"use strict";n(94488)({target:"Set",stat:!0,forced:!0},{of:n(48800)})},94194:function(e,t,n){"use strict";var r=n(94488),a=n(63335),o=n(17442),i=n(57002),u=TypeError;r({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=o(this),n=arguments.length<2,r=n?void 0:arguments[1];if(a(e),i(t,(function(a){n?(n=!1,r=a):r=e(r,a,a,t)})),n)throw new u("Reduce of empty set with no initial value");return r}})},30556:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(17442),i=n(57002);r({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0);return!0===i(t,(function(e){if(n(e,e,t))return!0}),!0)}})},93102:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(77999),i=n(36312);r({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return a(i,this,o(e))}})},32100:function(e,t,n){"use strict";var r=n(94488),a=n(36312);r({target:"Set",proto:!0,real:!0,forced:!n(22627)("symmetricDifference")},{symmetricDifference:a})},82074:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(77999),i=n(24667);r({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return a(i,this,o(e))}})},1821:function(e,t,n){"use strict";var r=n(94488),a=n(24667);r({target:"Set",proto:!0,real:!0,forced:!n(22627)("union")},{union:a})},13578:function(e,t,n){"use strict";var r=n(94488),a=n(13764).charAt,o=n(95955),i=n(56902),u=n(69905);r({target:"String",proto:!0,forced:!0},{at:function(e){var t=u(o(this)),n=t.length,r=i(e),c=r>=0?r:n+r;return c<0||c>=n?void 0:a(t,c)}})},62882:function(e,t,n){"use strict";var r=n(94488),a=n(83126),o=n(25587),i=n(95955),u=n(69905),c=n(94844),s=n(13764),l=s.codeAt,f=s.charAt,p="String Iterator",d=c.set,h=c.getterFor(p),v=a((function(e){d(this,{type:p,string:e,index:0})}),"String",(function(){var e,t=h(this),n=t.string,r=t.index;return r>=n.length?o(void 0,!0):(e=f(n,r),t.index+=e.length,o({codePoint:l(e,0),position:r},!1))}));r({target:"String",proto:!0,forced:!0},{codePoints:function(){return new v(u(i(this)))}})},59348:function(e,t,n){"use strict";n(94488)({target:"String",stat:!0,forced:!0},{cooked:n(67410)})},37457:function(e,t,n){"use strict";var r=n(13247),a=n(94488),o=n(86528),i=n(94237),u=n(13743),c=n(80449),s=n(94029),l=n(55327),f=n(82762),p=n(37691).f,d=n(71698),h=n(42530),v=n(67410),m=n(79204),y=n(19268),g=new h.WeakMap,b=h.get,_=h.has,w=h.set,x=Array,k=TypeError,E=Object.freeze||Object,S=Object.isFrozen,C=Math.min,P=i("".charAt),O=i("".slice),j=i("".split),A=i(/./.exec),T=/([\n\u2028\u2029]|\r\n?)/g,I=RegExp("^["+y+"]*"),M=RegExp("[^"+y+"]"),R="Invalid tag",L=function(e){var t=e.raw;if(r&&!S(t))throw new k("Raw template should be frozen");if(_(g,t))return b(g,t);var n=Z(t),a=N(n);return p(a,"raw",{value:E(n)}),E(a),w(g,t,a),a},Z=function(e){var t,n,r,a,o=s(e),i=f(o),u=x(i),c=x(i),l=0;if(!i)throw new k(R);for(;l0)throw new k("Invalid opening line");t[1]=""}if(d){if(1===t.length||A(M,t[t.length-1]))throw new k("Invalid closing line");t[t.length-2]="",t[t.length-1]=""}for(var h=2;h1?arguments[1]:void 0);return o(this,t)}),!0)},16315:function(e,t,n){"use strict";var r=n(58261),a=n(90560).filterReject,o=n(27607),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("filterReject",(function(e){var t=a(i(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}),!0)},56966:function(e,t,n){"use strict";var r=n(65911),a=n(6086),o=n(32278),i=n(58261),u=n(69478),c=i.aTypedArrayConstructor;(0,i.exportTypedArrayStaticMethod)("fromAsync",(function(e){var t=this,n=arguments.length,i=n>1?arguments[1]:void 0,s=n>2?arguments[2]:void 0;return new(r("Promise"))((function(n){a(t),n(o(e,i,s))})).then((function(e){return u(c(t),e)}))}),!0)},60239:function(e,t,n){"use strict";var r=n(58261),a=n(36444),o=n(31384),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("groupBy",(function(e){var t=arguments.length>1?arguments[1]:void 0;return a(i(this),e,t,o)}),!0)},49381:function(e,t,n){"use strict";var r=n(58261),a=n(82762),o=n(75406),i=n(51981),u=n(93303),c=n(56902),s=n(3338),l=r.aTypedArray,f=r.getTypedArrayConstructor,p=r.exportTypedArrayMethod,d=Math.max,h=Math.min;p("toSpliced",(function(e,t){var n,r,s,p,v,m,y,g=l(this),b=f(g),_=a(g),w=i(e,_),x=arguments.length,k=0;if(0===x)n=r=0;else if(1===x)n=0,r=_-w;else if(r=h(d(c(t),0),_-w),n=x-2){p=new b(n),s=o(p);for(var E=2;E1?i(arguments[1]):void 0,n="base64"===f(t)?p:d,r=!!t&&!!t.strict,a=r?e:y(e,_,"");if(a.length%4==0)"=="===g(a,-2)?a=g(a,0,-2):"="===g(a,-1)&&(a=g(a,0,-1));else if(r)throw new v("Input is not correctly padded");var o=a.length%4;switch(o){case 1:throw new v("Bad input length");case 2:a+="AA";break;case 3:a+="A"}for(var l=[],x=0,k=a.length,E=function(e){var t=m(a,x+e);if(!c(n,t))throw new v('Bad char in input: "'+t+'"');return n[t]<<18-6*e};x>16&255,S>>8&255,255&S)}var C=l.length;if(2===o){if(r&&0!==l[C-2])throw new v(w);C-=2}else if(3===o){if(r&&0!==l[C-1])throw new v(w);C--}return s(h,l,C)}})},57151:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(94237),i=n(79606),u=a.Uint8Array,c=a.SyntaxError,s=a.parseInt,l=/[^\da-f]/i,f=o(l.exec),p=o("".slice);u&&r({target:"Uint8Array",stat:!0,forced:!0},{fromHex:function(e){i(e);var t=e.length;if(t%2)throw new c("String should have an even number of characters");if(f(l,e))throw new c("String should only contain hex characters");for(var n=new u(t/2),r=0;r>6*t&63)};o+2>(-2*E&6)));return c}})},55182:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(65911),i=n(94237),u=n(89945),c=n(3338),s=n(69905),l=n(57106),f=n(66244).i2c,p=o("btoa"),d=i("".charAt),h=i("".charCodeAt),v=!!p&&!c((function(){return"aGk="!==p("hi")})),m=v&&!c((function(){p()})),y=v&&c((function(){return"bnVsbA=="!==p(null)})),g=v&&1!==p.length;r({global:!0,bind:!0,enumerable:!0,forced:!v||m||y||g},{btoa:function(e){if(l(arguments.length,1),v)return u(p,a,s(e));for(var t,n,r=s(e),i="",c=0,m=f;d(r,c)||(m="=",c%1);){if((n=h(r,c+=3/4))>255)throw new(o("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");i+=d(m,63&(t=t<<8|n)>>8-c%1*8)}return i}})},91472:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(28887).clear;r({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==o},{clearImmediate:o})},34366:function(e,t,n){"use strict";var r=n(92916),a=n(66749),o=n(9518),i=n(59594),u=n(68151),c=function(e){if(e&&e.forEach!==i)try{u(e,"forEach",i)}catch(t){e.forEach=i}};for(var s in a)a[s]&&c(r[s]&&r[s].prototype);c(o)},85425:function(e,t,n){"use strict";var r=n(92916),a=n(66749),o=n(9518),i=n(11005),u=n(68151),c=n(94573),s=n(59893)("iterator"),l=i.values,f=function(e,t){if(e){if(e[s]!==l)try{u(e,s,l)}catch(t){e[s]=l}if(c(e,t,!0),a[t])for(var n in i)if(e[n]!==i[n])try{u(e,n,i[n])}catch(t){e[n]=i[n]}}};for(var p in a)f(r[p]&&r[p].prototype,p);f(o,"DOMTokenList")},64522:function(e,t,n){"use strict";var r=n(94488),a=n(11270),o=n(65911),i=n(3338),u=n(20132),c=n(35012),s=n(37691).f,l=n(2291),f=n(64110),p=n(32621),d=n(56472),h=n(80449),v=n(13367),m=n(7825),y=n(52109),g=n(80739),b=n(94844),_=n(35454),w=n(16697),x="DOMException",k="DATA_CLONE_ERR",E=o("Error"),S=o(x)||function(){try{(new(o("MessageChannel")||a("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===k&&25===e.code)return e.constructor}}(),C=S&&S.prototype,P=E.prototype,O=b.set,j=b.getterFor(x),A="stack"in new E(x),T=function(e){return p(y,e)&&y[e].m?y[e].c:0},I=function(){d(this,M);var e=arguments.length,t=m(e<1?void 0:arguments[0]),n=m(e<2?void 0:arguments[1],"Error"),r=T(n);if(O(this,{type:x,name:n,message:t,code:r}),_||(this.name=n,this.message=t,this.code=r),A){var a=new E(t);a.name=x,s(this,"stack",c(1,g(a.stack,1)))}},M=I.prototype=u(P),R=function(e){return{enumerable:!0,configurable:!0,get:e}},L=function(e){return R((function(){return j(this)[e]}))};_&&(f(M,"code",L("code")),f(M,"message",L("message")),f(M,"name",L("name"))),s(M,"constructor",c(1,I));var Z=i((function(){return!(new S instanceof E)})),D=Z||i((function(){return P.toString!==v||"2: 1"!==String(new S(1,2))})),N=Z||i((function(){return 25!==new S(1,"DataCloneError").code})),$=Z||25!==S[k]||25!==C[k],F=w?D||N||$:Z;r({global:!0,constructor:!0,forced:F},{DOMException:F?I:S});var B=o(x),q=B.prototype;for(var z in D&&(w||S===B)&&l(q,"toString",v),N&&_&&S===B&&f(q,"code",R((function(){return T(h(this).name)}))),y)if(p(y,z)){var H=y[z],U=H.s,W=c(6,H.c);p(B,U)||s(B,U,W),p(q,U)||s(q,U,W)}},41599:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(65911),i=n(35012),u=n(37691).f,c=n(32621),s=n(56472),l=n(25576),f=n(7825),p=n(52109),d=n(80739),h=n(35454),v=n(16697),m="DOMException",y=o("Error"),g=o(m),b=function(){s(this,_);var e=arguments.length,t=f(e<1?void 0:arguments[0]),n=f(e<2?void 0:arguments[1],"Error"),r=new g(t,n),a=new y(t);return a.name=m,u(r,"stack",i(1,d(a.stack,1))),l(r,this,b),r},_=b.prototype=g.prototype,w="stack"in new y(m),x="stack"in new g(1,2),k=g&&h&&Object.getOwnPropertyDescriptor(a,m),E=!(!k||k.writable&&k.configurable),S=w&&!E&&!x;r({global:!0,constructor:!0,forced:v||S},{DOMException:S?b:g});var C=o(m),P=C.prototype;if(P.constructor!==C)for(var O in v||u(P,"constructor",i(1,C)),p)if(c(p,O)){var j=p[O],A=j.s;c(C,A)||u(C,A,i(6,j.c))}},86465:function(e,t,n){"use strict";var r=n(65911),a="DOMException";n(94573)(r(a),a)},78437:function(e,t,n){"use strict";n(91472),n(91700)},73624:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(72933),i=n(63335),u=n(57106),c=n(90946),s=a.process;r({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(e){u(arguments.length,1),i(e);var t=c&&s.domain;o(t?t.bind(e):e)}})},62059:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(64110),i=n(35454),u=TypeError,c=Object.defineProperty,s=a.self!==a;try{if(i){var l=Object.getOwnPropertyDescriptor(a,"self");!s&&l&&l.get&&l.enumerable||o(a,"self",{get:function(){return a},set:function(e){if(this!==a)throw new u("Illegal invocation");c(a,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:s},{self:a})}catch(e){}},91700:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(28887).set,i=n(93222),u=a.setImmediate?i(o,!1):o;r({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==u},{setImmediate:u})},10305:function(e,t,n){"use strict";var r,a=n(16697),o=n(94488),i=n(92916),u=n(65911),c=n(94237),s=n(3338),l=n(6145),f=n(55327),p=n(39812),d=n(4112),h=n(31946),v=n(18446),m=n(62003),y=n(80449),g=n(97607),b=n(32621),_=n(69392),w=n(68151),x=n(82762),k=n(57106),E=n(81644),S=n(2786),C=n(19691),P=n(57002),O=n(39311),j=n(25406),A=n(80426),T=i.Object,I=i.Array,M=i.Date,R=i.Error,L=i.TypeError,Z=i.PerformanceMark,D=u("DOMException"),N=S.Map,$=S.has,F=S.get,B=S.set,q=C.Set,z=C.add,H=C.has,U=u("Object","keys"),W=c([].push),V=c((!0).valueOf),G=c(1..valueOf),Y=c("".valueOf),K=c(M.prototype.getTime),X=l("structuredClone"),Q="DataCloneError",J="Transferring",ee=function(e){return!s((function(){var t=new i.Set([7]),n=e(t),r=e(T(7));return n===t||!n.has(7)||!h(r)||7!=+r}))&&e},te=function(e,t){return!s((function(){var n=new t,r=e({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof t&&r.a.stack===n.stack)}))},ne=i.structuredClone,re=a||!te(ne,R)||!te(ne,D)||(r=ne,!!s((function(){var e=r(new i.AggregateError([1],X,{cause:3}));return"AggregateError"!==e.name||1!==e.errors[0]||e.message!==X||3!==e.cause}))),ae=!ne&&ee((function(e){return new Z(X,{detail:e}).detail})),oe=ee(ne)||ae,ie=function(e){throw new D("Uncloneable type: "+e,Q)},ue=function(e,t){throw new D((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",Q)},ce=function(e,t){return oe||ue(t),oe(e)},se=function(e,t,n){if($(t,e))return F(t,e);var r,a,o,u,c,s;if("SharedArrayBuffer"===(n||g(e)))r=oe?oe(e):e;else{var l=i.DataView;l||f(e.slice)||ue("ArrayBuffer");try{if(f(e.slice)&&!e.resizable)r=e.slice(0);else{a=e.byteLength,o="maxByteLength"in e?{maxByteLength:e.maxByteLength}:void 0,r=new ArrayBuffer(a,o),u=new l(e),c=new l(r);for(s=0;s1&&!d(arguments[1])?y(arguments[1]):void 0,a=r?r.transfer:void 0;void 0!==a&&(t=new N,n=fe(a,t));var o=le(e,t);return n&&pe(n),o}})},91340:function(e,t,n){"use strict";n(11005);var r=n(94488),a=n(92916),o=n(89945),i=n(94237),u=n(35454),c=n(3299),s=n(2291),l=n(64110),f=n(66477),p=n(94573),d=n(83126),h=n(94844),v=n(56472),m=n(55327),y=n(32621),g=n(80666),b=n(97607),_=n(80449),w=n(31946),x=n(69905),k=n(20132),E=n(35012),S=n(85428),C=n(26006),P=n(25587),O=n(57106),j=n(59893),A=n(63668),T=j("iterator"),I="URLSearchParams",M=I+"Iterator",R=h.set,L=h.getterFor(I),Z=h.getterFor(M),D=Object.getOwnPropertyDescriptor,N=function(e){if(!u)return a[e];var t=D(a,e);return t&&t.value},$=N("fetch"),F=N("Request"),B=N("Headers"),q=F&&F.prototype,z=B&&B.prototype,H=a.RegExp,U=a.TypeError,W=a.decodeURIComponent,V=a.encodeURIComponent,G=i("".charAt),Y=i([].join),K=i([].push),X=i("".replace),Q=i([].shift),J=i([].splice),ee=i("".split),te=i("".slice),ne=/\+/g,re=Array(4),ae=function(e){return re[e-1]||(re[e-1]=H("((?:%[\\da-f]{2}){"+e+"})","gi"))},oe=function(e){try{return W(e)}catch(t){return e}},ie=function(e){var t=X(e,ne," "),n=4;try{return W(t)}catch(e){for(;n;)t=X(t,ae(n--),oe);return t}},ue=/[!'()~]|%20/g,ce={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},se=function(e){return ce[e]},le=function(e){return X(V(e),ue,se)},fe=d((function(e,t){R(this,{type:M,target:L(e).entries,index:0,kind:t})}),I,(function(){var e=Z(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,P(void 0,!0);var r=t[n];switch(e.kind){case"keys":return P(r.key,!1);case"values":return P(r.value,!1)}return P([r.key,r.value],!1)}),!0),pe=function(e){this.entries=[],this.url=null,void 0!==e&&(w(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===G(e,0)?te(e,1):e:x(e)))};pe.prototype={type:I,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,a,i,u,c,s=this.entries,l=C(e);if(l)for(n=(t=S(e,l)).next;!(r=o(n,t)).done;){if(i=(a=S(_(r.value))).next,(u=o(i,a)).done||(c=o(i,a)).done||!o(i,a).done)throw new U("Expected sequence with length 2");K(s,{key:x(u.value),value:x(c.value)})}else for(var f in e)y(e,f)&&K(s,{key:f,value:x(e[f])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,a=ee(e,"&"),o=0;o0?arguments[0]:void 0,t=R(this,new pe(e));u||(this.size=t.entries.length)},he=de.prototype;if(f(he,{append:function(e,t){var n=L(this);O(arguments.length,2),K(n.entries,{key:x(e),value:x(t)}),u||this.length++,n.updateURL()},delete:function(e){for(var t=L(this),n=O(arguments.length,1),r=t.entries,a=x(e),o=n<2?void 0:arguments[1],i=void 0===o?o:x(o),c=0;ct.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=L(this).entries,r=g(e,arguments.length>1?arguments[1]:void 0),a=0;a1?ye(arguments[1]):{})}}),m(F)){var ge=function(e){return v(this,q),new F(e,arguments.length>1?ye(arguments[1]):{})};q.constructor=ge,ge.prototype=q,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ge})}}e.exports={URLSearchParams:de,getState:L}},4890:function(e,t,n){"use strict";var r=n(2291),a=n(94237),o=n(69905),i=n(57106),u=URLSearchParams,c=u.prototype,s=a(c.append),l=a(c.delete),f=a(c.forEach),p=a([].push),d=new u("a=1&a=2&b=3");d.delete("a",1),d.delete("b",void 0),d+""!="a=2"&&r(c,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=[];f(this,(function(e,t){p(r,{key:t,value:e})})),i(t,1);for(var a,u=o(e),c=o(n),d=0,h=0,v=!1,m=r.length;d?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+/,ae=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,oe=/[\t\n\r]/g,ie=function(e){var t,n,r,a;if("number"==typeof e){for(t=[],n=0;n<4;n++)H(t,e%256),e=T(e/256);return L(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,a=0,o=0;o<8;o++)0!==e[o]?(a>n&&(t=r,n=a),r=null,a=0):(null===r&&(r=o),++a);return a>n&&(t=r,n=a),t}(e),n=0;n<8;n++)a&&0===e[n]||(a&&(a=!1),r===n?(t+=n?":":"::",a=!0):(t+=Z(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ue={},ce=h({},ue,{" ":1,'"':1,"<":1,">":1,"`":1}),se=h({},ce,{"#":1,"?":1,"{":1,"}":1}),le=h({},se,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var n=y(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},pe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},de=function(e,t){var n;return 2===e.length&&R(G,M(e,0))&&(":"===(n=M(e,1))||!t&&"|"===n)},he=function(e){var t;return e.length>1&&de(q(e,0,2))&&(2===e.length||"/"===(t=M(e,2))||"\\"===t||"?"===t||"#"===t)},ve=function(e){return"."===e||"%2e"===z(e)},me={},ye={},ge={},be={},_e={},we={},xe={},ke={},Ee={},Se={},Ce={},Pe={},Oe={},je={},Ae={},Te={},Ie={},Me={},Re={},Le={},Ze={},De=function(e,t,n){var r,a,o,i=b(e);if(t){if(a=this.parse(i))throw new j(a);this.searchParams=null}else{if(void 0!==n&&(r=new De(n,!0)),a=this.parse(i,null,r))throw new j(a);(o=P(new C)).bindURL(this),this.searchParams=o}};De.prototype={type:"URL",parse:function(e,t,n){var a,o,i,u,c,s=this,l=t||me,f=0,p="",h=!1,y=!1,g=!1;for(e=b(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=$(e,re,""),e=$(e,ae,"$1")),e=$(e,oe,""),a=v(e);f<=a.length;){switch(o=a[f],l){case me:if(!o||!R(G,o)){if(t)return U;l=ge;continue}p+=z(o),l=ye;break;case ye:if(o&&(R(Y,o)||"+"===o||"-"===o||"."===o))p+=z(o);else{if(":"!==o){if(t)return U;p="",l=ge,f=0;continue}if(t&&(s.isSpecial()!==d(pe,p)||"file"===p&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=p,t)return void(s.isSpecial()&&pe[s.scheme]===s.port&&(s.port=null));p="","file"===s.scheme?l=je:s.isSpecial()&&n&&n.scheme===s.scheme?l=be:s.isSpecial()?l=ke:"/"===a[f+1]?(l=_e,f++):(s.cannotBeABaseURL=!0,N(s.path,""),l=Re)}break;case ge:if(!n||n.cannotBeABaseURL&&"#"!==o)return U;if(n.cannotBeABaseURL&&"#"===o){s.scheme=n.scheme,s.path=m(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,l=Ze;break}l="file"===n.scheme?je:we;continue;case be:if("/"!==o||"/"!==a[f+1]){l=we;continue}l=Ee,f++;break;case _e:if("/"===o){l=Se;break}l=Me;continue;case we:if(s.scheme=n.scheme,o===r)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=m(n.path),s.query=n.query;else if("/"===o||"\\"===o&&s.isSpecial())l=xe;else if("?"===o)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=m(n.path),s.query="",l=Le;else{if("#"!==o){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=m(n.path),s.path.length--,l=Me;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=m(n.path),s.query=n.query,s.fragment="",l=Ze}break;case xe:if(!s.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,l=Me;continue}l=Se}else l=Ee;break;case ke:if(l=Ee,"/"!==o||"/"!==M(p,f+1))continue;f++;break;case Ee:if("/"!==o&&"\\"!==o){l=Se;continue}break;case Se:if("@"===o){h&&(p="%40"+p),h=!0,i=v(p);for(var _=0;_65535)return V;s.port=s.isSpecial()&&k===pe[s.scheme]?null:k,p=""}if(t)return;l=Ie;continue}return V}p+=o;break;case je:if(s.scheme="file","/"===o||"\\"===o)l=Ae;else{if(!n||"file"!==n.scheme){l=Me;continue}switch(o){case r:s.host=n.host,s.path=m(n.path),s.query=n.query;break;case"?":s.host=n.host,s.path=m(n.path),s.query="",l=Le;break;case"#":s.host=n.host,s.path=m(n.path),s.query=n.query,s.fragment="",l=Ze;break;default:he(L(m(a,f),""))||(s.host=n.host,s.path=m(n.path),s.shortenPath()),l=Me;continue}}break;case Ae:if("/"===o||"\\"===o){l=Te;break}n&&"file"===n.scheme&&!he(L(m(a,f),""))&&(de(n.path[0],!0)?N(s.path,n.path[0]):s.host=n.host),l=Me;continue;case Te:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&de(p))l=Me;else if(""===p){if(s.host="",t)return;l=Ie}else{if(u=s.parseHost(p))return u;if("localhost"===s.host&&(s.host=""),t)return;p="",l=Ie}continue}p+=o;break;case Ie:if(s.isSpecial()){if(l=Me,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==r&&(l=Me,"/"!==o))continue}else s.fragment="",l=Ze;else s.query="",l=Le;break;case Me:if(o===r||"/"===o||"\\"===o&&s.isSpecial()||!t&&("?"===o||"#"===o)){if(".."===(c=z(c=p))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(s.shortenPath(),"/"===o||"\\"===o&&s.isSpecial()||N(s.path,"")):ve(p)?"/"===o||"\\"===o&&s.isSpecial()||N(s.path,""):("file"===s.scheme&&!s.path.length&&de(p)&&(s.host&&(s.host=""),p=M(p,0)+":"),N(s.path,p)),p="","file"===s.scheme&&(o===r||"?"===o||"#"===o))for(;s.path.length>1&&""===s.path[0];)F(s.path);"?"===o?(s.query="",l=Le):"#"===o&&(s.fragment="",l=Ze)}else p+=fe(o,se);break;case Re:"?"===o?(s.query="",l=Le):"#"===o?(s.fragment="",l=Ze):o!==r&&(s.path[0]+=fe(o,ue));break;case Le:t||"#"!==o?o!==r&&("'"===o&&s.isSpecial()?s.query+="%27":s.query+="#"===o?"%23":fe(o,ue)):(s.fragment="",l=Ze);break;case Ze:o!==r&&(s.fragment+=fe(o,ce))}f++}},parseHost:function(e){var t,n,r;if("["===M(e,0)){if("]"!==M(e,e.length-1))return W;if(t=function(e){var t,n,r,a,o,i,u,c=[0,0,0,0,0,0,0,0],s=0,l=null,f=0,p=function(){return M(e,f)};if(":"===p()){if(":"!==M(e,1))return;f+=2,l=++s}for(;p();){if(8===s)return;if(":"!==p()){for(t=n=0;n<4&&R(ee,p());)t=16*t+A(p(),16),f++,n++;if("."===p()){if(0===n)return;if(f-=n,s>6)return;for(r=0;p();){if(a=null,r>0){if(!("."===p()&&r<4))return;f++}if(!R(K,p()))return;for(;R(K,p());){if(o=A(p(),10),null===a)a=o;else{if(0===a)return;a=10*a+o}if(a>255)return;f++}c[s]=256*c[s]+a,2!=++r&&4!==r||s++}if(4!==r)return;break}if(":"===p()){if(f++,!p())return}else if(p())return;c[s++]=t}else{if(null!==l)return;f++,l=++s}}if(null!==l)for(i=s-l,s=7;0!==s&&i>0;)u=c[s],c[s--]=c[l+i-1],c[l+--i]=u;else if(8!==s)return;return c}(q(e,1,-1)),!t)return W;this.host=t}else if(this.isSpecial()){if(e=g(e),R(te,e))return W;if(t=function(e){var t,n,r,a,o,i,u,c=B(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(n=[],r=0;r1&&"0"===M(a,0)&&(o=R(X,a)?16:8,a=q(a,8===o?1:2)),""===a)i=0;else{if(!R(10===o?J:8===o?Q:ee,a))return e;i=A(a,o)}N(n,i)}for(r=0;r=I(256,5-t))return null}else if(i>255)return null;for(u=D(n),r=0;r1?arguments[1]:void 0,r=E(t,new De(e,!1,n));o||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},$e=Ne.prototype,Fe=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(f($e,"href",Fe("serialize","setHref")),f($e,"origin",Fe("getOrigin")),f($e,"protocol",Fe("getProtocol","setProtocol")),f($e,"username",Fe("getUsername","setUsername")),f($e,"password",Fe("getPassword","setPassword")),f($e,"host",Fe("getHost","setHost")),f($e,"hostname",Fe("getHostname","setHostname")),f($e,"port",Fe("getPort","setPort")),f($e,"pathname",Fe("getPathname","setPathname")),f($e,"search",Fe("getSearch","setSearch")),f($e,"searchParams",Fe("getSearchParams")),f($e,"hash",Fe("getHash","setHash"))),l($e,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),l($e,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),O){var Be=O.createObjectURL,qe=O.revokeObjectURL;Be&&l(Ne,"createObjectURL",c(Be,O)),qe&&l(Ne,"revokeObjectURL",c(qe,O))}_(Ne,"URL"),a({global:!0,constructor:!0,forced:!i,sham:!o},{URL:Ne})},25204:function(e,t,n){"use strict";n(13588)},47803:function(e,t,n){"use strict";var r=n(94488),a=n(89945);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return a(URL.prototype.toString,this)}})},73825:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},65873:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(89878);function a(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},38329:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}n.d(t,{Z:function(){return r}})},87296:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(73825);var a=n(99227),o=n(66160);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,u=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return u}}(e,t)||(0,a.Z)(e,t)||(0,o.Z)()}},89878:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(8616);function a(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=(0,r.Z)(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:String(t)}},8616:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},99227:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(a=h===r)&&(u=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=e):o[0]<=d&&((a=n<2&&dr||r>h)&&(o[4]=n,o[5]=r,p.n=h,i=0))}if(a||n>1)return c;throw f=!0,r}return function(a,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),i=l,u=h;(t=i<2?e:u)||!f;){o||(i?i<3?(i>1&&(p.n=-1),d(i,u)):p.n=u:p.v=u);try{if(s=2,o){if(i||(a="next"),t=o[a]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,i<2&&(i=0)}else 1===i&&(t=o.return)&&t.call(o),i<2&&(u=TypeError("The iterator does not provide a '"+a+"' method"),i=1);o=e}else if((t=(f=p.n<0)?u:n.call(r,p))!==c)break}catch(t){o=e,i=1,u=t}finally{s=1}}return{value:t,done:f}}}(n,o,i),!0),l}var c={};function s(){}function l(){}function f(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(a(t={},r,(function(){return this})),t),d=f.prototype=s.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=f,a(d,"constructor",f),a(f,"constructor",l),l.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(d),a(d,i,"Generator"),a(d,r,(function(){return this})),a(d,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:u,m:h}})()}function i(e,t){function n(a,o,i,u){try{var c=e[a](o),s=c.value;return s instanceof r?t.resolve(s.v).then((function(e){n("next",e,i,u)}),(function(e){n("throw",e,i,u)})):t.resolve(s).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,u)}))}catch(e){u(e)}}var o;this.next||(a(i.prototype),a(i.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),a(this,"_invoke",(function(e,r,a){function i(){return new t((function(t,r){n(e,a,t,r)}))}return o=o?o.then(i,i):i()}),!0)}function u(e,t,n,r,a){return new i(o().w(e,t,n,r),a||Promise)}function c(e,t,n,r,a){var o=u(e,t,n,r,a);return o.next().then((function(e){return e.done?e.value:o.next()}))}function s(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}n.d(t,{Z:function(){return p}});var l=n(93664);function f(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError((0,l.Z)(e)+" is not iterable")}function p(){var e=o(),t=e.m(p),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function a(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var l={throw:1,return:2,break:3,continue:3};function d(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,l[e],t)},delegateYield:function(e,a,o){return t.resultName=a,n(r.d,f(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,a){r.p=t.prev,r.n=t.next;try{return e(n,a)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(p=function(){return{wrap:function(t,n,r,a){return e.w(d(t),n,r,a&&a.reverse())},isGeneratorFunction:a,mark:e.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:i,async:function(e,t,n,r,o){return(a(t)?u:c)(d(e),t,n,r,o)},keys:s,values:f}})()}},2386:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},50298:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(43577);var a=n(58750),o=n(22740);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,u=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return u}}(e,t)||(0,a.Z)(e,t)||(0,o.Z)()}},21696:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(43577),a=n(90017),o=n(58750),i=n(22740);function u(e){return(0,r.Z)(e)||(0,a.Z)(e)||(0,o.Z)(e)||(0,i.Z)()}},95190:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(87268);var a=n(90017),o=n(58750);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,a.Z)(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},95172:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(93664);function a(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=(0,r.Z)(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:t+""}},93664:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},58750:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(87268);function a(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},__webpack_module_cache__={},leafPrototypes,getProto,inProgress;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);__webpack_require__.r(n);var r={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var a=2&t&&e;"object"==typeof a&&!~leafPrototypes.indexOf(a);a=getProto(a))Object.getOwnPropertyNames(a).forEach((function(t){r[t]=function(){return e[t]}}));return r.default=function(){return e},__webpack_require__.d(n,r),n},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=function(e){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(t,n){return __webpack_require__.f[n](e,t),t}),[]))},__webpack_require__.u=function(e){return({1717:"layouts__index",7665:"p__NewCompetitions__index",9404:"monaco-editor"}[e]||e)+"."+{316:"0860b31b",354:"ae0cc73d",629:"0baf72c5",671:"707d03b5",741:"9ca1f1f6",981:"b4e5ecd1",1144:"dc597477",1154:"8ff4343e",1274:"64014abb",1462:"4b308275",1646:"b6aee730",1717:"8516850e",1880:"afad2ce1",2011:"998bab5d",2249:"cfc97c95",2386:"cb3ad213",2494:"341ee2d9",2538:"ef3964fd",2594:"5ba15f29",2837:"ef41443b",2969:"f2c22c79",3133:"89f1c833",3198:"dcb58c57",3421:"ec92495a",3550:"0ba594a6",3697:"aa0de325",3777:"30e1c7cd",3805:"c007be6c",3885:"2968565b",4014:"a042e7c0",4088:"72b31296",4347:"5e67a581",4354:"783d6469",4360:"e2b3ee42",4628:"8830b9f4",4685:"e451b386",4790:"a078491d",4797:"5459a571",4850:"20b04da1",5060:"f576b66d",5290:"8db25218",5321:"59afd38e",5354:"508397f0",5416:"a15145af",5434:"c57b269e",5494:"d134242a",5631:"d4656614",5679:"976b0ab8",5760:"9a81a5de",5764:"370e5f92",5876:"3c45e846",6045:"f88d2aea",6047:"9a6de779",6126:"9e89bacb",6378:"e451a33f",6634:"c5206d34",6656:"3fd1f977",7084:"c974cb96",7156:"ac292da3",7365:"3519dcf2",7591:"2d8e0476",7665:"86f6f67d",7686:"b825f202",7706:"55432fab",7964:"6a76ec2a",8089:"ddd5f23a",8161:"b977b96f",8302:"68de1f56",8350:"cd542869",8561:"8d6bb026",8737:"a15d5c87",8776:"ae351219",8842:"4eada2f4",8898:"fc7a3e13",8909:"7ebc828b",8920:"72b3286a",8963:"11c907f2",9104:"8ddea99d",9252:"d359cd5d",9260:"e18dc2bc",9404:"ef403842",9554:"47a07c2c",9559:"61b7aa99",9895:"700a7b8f",9928:"7afe8b8f",9950:"b27821a4",9968:"cf4e0178"}[e]+".async.js"},__webpack_require__.miniCssF=function(e){return({1717:"layouts__index",7665:"p__NewCompetitions__index",9404:"monaco-editor"}[e]||e)+"."+{1717:"b9728375",6656:"612ed78f",7665:"184e7e71",9404:"eef0059a"}[e]+".chunk.css"},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},inProgress={},__webpack_require__.l=function(e,t,n,r){if(inProgress[e])inProgress[e].push(t);else{var a,o;if(void 0!==n)for(var i=document.getElementsByTagName("script"),u=0;u0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("/")?e:"".concat(e,"/")}(window.umiServerLoaderPath||n),"__serverLoader?").concat(a);fetch(o,{credentials:"include"}).then((function(e){return e.json()})).then(r).catch(console.error)}var h=__webpack_require__(38127),v=__webpack_require__(38329),m=__webpack_require__(8616),y=["content"],g=["content"],b=/^(http:|https:)?\/\//;function _(e){return b.test(e)||e.startsWith("/")&&!e.startsWith("/*")||e.startsWith("./")||e.startsWith("../")}var w=function(){return s.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},x=function(e){var t,n=e.loaderData,r=e.htmlPageOpts,a=e.manifest,o=(null==a||null===(t=a.assets)||void 0===t?void 0:t["umi.css"])||"";return s.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(n||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(r||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(o,"'")}})};function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e)return _(e)?(0,u.Z)({src:e},t):{content:e};if("object"===(0,m.Z)(e))return(0,u.Z)((0,u.Z)({},e),t);throw new Error("Invalid script type: ".concat((0,m.Z)(e)))}var E=function(e){var t,n,r,a,o,i,u=e.htmlPageOpts;return s.createElement(s.Fragment,null,(null==u?void 0:u.title)&&s.createElement("title",null,u.title),null==u||null===(t=u.favicons)||void 0===t?void 0:t.map((function(e,t){return s.createElement("link",{key:t,rel:"shortcut icon",href:e})})),(null==u?void 0:u.description)&&s.createElement("meta",{name:"description",content:u.description}),(null==u||null===(n=u.keywords)||void 0===n?void 0:n.length)&&s.createElement("meta",{name:"keywords",content:u.keywords.join(",")}),null==u||null===(r=u.metas)||void 0===r?void 0:r.map((function(e){return s.createElement("meta",{key:e.name,name:e.name,content:e.content})})),null==u||null===(a=u.links)||void 0===a?void 0:a.map((function(e,t){return s.createElement("link",(0,v.Z)({key:t},e))})),null==u||null===(o=u.styles)||void 0===o?void 0:o.map((function(e,t){var n=function(e){return _(e)?{type:"link",href:e}:{type:"style",content:e}}(e),r=n.type,a=n.href,o=n.content;return"link"===r?s.createElement("link",{key:t,rel:"stylesheet",href:a}):"style"===r?s.createElement("style",{key:t},o):void 0})),null==u||null===(i=u.headScripts)||void 0===i?void 0:i.map((function(e,t){var n=k(e),r=n.content,a=(0,h.Z)(n,y);return s.createElement("script",(0,v.Z)({dangerouslySetInnerHTML:{__html:r},key:t},a))})))};function S(e){var t,n=e.children,r=e.loaderData,a=e.manifest,o=e.htmlPageOpts,i=e.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,u=e.mountElementId;if(null!=i&&i.pureHtml)return s.createElement("html",null,s.createElement("head",null),s.createElement("body",null,s.createElement(w,null),s.createElement("div",{id:u},n),s.createElement(x,{manifest:a,loaderData:r,htmlPageOpts:o})));if(null!=i&&i.pureApp)return s.createElement(s.Fragment,null,n);var c="undefined"==typeof window?null==a?void 0:a.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return s.createElement("html",{suppressHydrationWarning:!0,lang:(null==o?void 0:o.lang)||"en"},s.createElement("head",null,s.createElement("meta",{charSet:"utf-8"}),s.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),c&&s.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:c}),s.createElement(E,{htmlPageOpts:o})),s.createElement("body",null,s.createElement(w,null),s.createElement("div",{id:u},n),s.createElement(x,{manifest:a,loaderData:r,htmlPageOpts:o}),null==o||null===(t=o.scripts)||void 0===t?void 0:t.map((function(e,t){var n=k(e),r=n.content,a=(0,h.Z)(n,g);return s.createElement("script",(0,v.Z)({dangerouslySetInnerHTML:{__html:r},key:t},a))}))))}var C=s.createContext(void 0);var P=["redirect"];function O(e){var t=e.routesById,n=e.parentId,r=e.routeComponents,a=e.useStream,o=void 0===a||a;return Object.keys(t).filter((function(e){return t[e].parentId===n})).map((function(n){var a=function(e){var t=e.route,n=e.useStream,r=void 0===n||n,a=t.redirect,o=(0,h.Z)(t,P),i=e.reactRouter5Compat?T:I;return(0,u.Z)({element:a?s.createElement(j,{to:a}):s.createElement(C.Provider,{value:{route:e.route}},s.createElement(i,{loader:s.memo(e.routeComponent),loadingComponent:e.loadingComponent||A,hasChildren:e.hasChildren,useStream:r}))},o)}((0,u.Z)((0,u.Z)({route:t[n],routeComponent:r[n],loadingComponent:e.loadingComponent,reactRouter5Compat:e.reactRouter5Compat},e.reactRouter5Compat&&{hasChildren:Object.keys(t).filter((function(e){return t[e].parentId===n})).length>0}),{},{useStream:o})),i=O({routesById:t,routeComponents:r,parentId:a.id,loadingComponent:e.loadingComponent,reactRouter5Compat:e.reactRouter5Compat,useStream:o});return i.length>0&&(a.children=i,a.routes=i),a}))}function j(e){var t=(0,f.UO)(),n=(0,f.Gn)(e.to,t),r=(0,p.T$)(),a=(0,f.TH)();null!=r&&r.keepQuery&&(n+=a.search+a.hash);var o=(0,u.Z)((0,u.Z)({},e),{},{to:n});return s.createElement(f.Fg,(0,v.Z)({replace:!0},o))}function A(){return s.createElement("div",null)}function T(e){var t=s.useContext(C).route,n=(0,p.Ov)(),r=n.history,a=n.clientRoutes,o=(0,f.UO)(),i={params:o,isExact:!0,path:t.path,url:r.location.pathname},u=e.loader,c={location:r.location,match:i,history:r,params:o,route:t,routes:a};return e.useStream?s.createElement(s.Suspense,{fallback:s.createElement(e.loadingComponent,null)},s.createElement(u,c,e.hasChildren&&s.createElement(f.j3,null))):s.createElement(u,c,e.hasChildren&&s.createElement(f.j3,null))}function I(e){var t=e.loader;return e.useStream?s.createElement(s.Suspense,{fallback:s.createElement(e.loadingComponent,null)},s.createElement(t,null)):s.createElement(t,null)}function M(e){var t=e.history,n=s.useState({action:t.action,location:t.location}),r=(0,c.Z)(n,2),a=r[0],o=r[1];return(0,s.useLayoutEffect)((function(){return t.listen(o)}),[t]),(0,s.useLayoutEffect)((function(){function n(t){e.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:e.routes,clientRoutes:e.clientRoutes,location:t.location,action:t.action,basename:e.basename,isFirst:Boolean(t.isFirst)}})}return n({location:a.location,action:a.action,isFirst:!0}),t.listen(n)}),[t,e.routes,e.clientRoutes]),s.createElement(f.F0,{navigator:t,location:a.location,basename:e.basename},e.children)}function R(){var e=(0,p.Ov)().clientRoutes;return(0,f.V$)(e)}var L=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"];function Z(e){var t=e.rootElement||document.getElementById("root"),n=function(e,t){var n=e.basename||"/",r=O({routesById:e.routes,routeComponents:e.routeComponents,loadingComponent:e.loadingComponent,reactRouter5Compat:e.reactRouter5Compat,useStream:e.useStream});e.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:r}});for(var a=s.createElement(M,{basename:n,pluginManager:e.pluginManager,routes:e.routes,clientRoutes:r,history:e.history},t),o=0,l=L;o=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function i(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function u(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function c(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],c=new r.t(e),s=c.toHsv(),l=5;l>0;l-=1){var f=new r.t({h:o(s,l,!0),s:i(s,l,!0),v:u(s,l,!0)});n.push(f)}n.push(c);for(var p=1;p<=4;p+=1){var d=new r.t({h:o(s,p),s:i(s,p),v:u(s,p)});n.push(d)}return"dark"===t.theme?a.map((function(e){var a=e.index,o=e.amount;return new r.t(t.backgroundColor||"#141414").mix(n[a],o).toHexString()})):n.map((function(e){return e.toHexString()}))}var s={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"},l=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];l.primary=l[5];var f=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];f.primary=f[5];var p=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];p.primary=p[5];var d=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];d.primary=d[5];var h=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];h.primary=h[5];var v=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];v.primary=v[5];var m=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];m.primary=m[5];var y=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];y.primary=y[5];var g=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];g.primary=g[5];var b=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];b.primary=b[5];var _=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];_.primary=_[5];var w=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];w.primary=w[5];var x=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];x.primary=x[5];var k={red:l,volcano:f,orange:p,gold:d,yellow:h,lime:v,green:m,cyan:y,blue:g,geekblue:b,purple:_,magenta:w,grey:x},E=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];E.primary=E[5];var S=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];S.primary=S[5];var C=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];C.primary=C[5];var P=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];P.primary=P[5];var O=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];O.primary=O[5];var j=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];j.primary=j[5];var A=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];A.primary=A[5];var T=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];T.primary=T[5];var I=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];I.primary=I[5];var M=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];M.primary=M[5];var R=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];R.primary=R[5];var L=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];L.primary=L[5];var Z=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Z.primary=Z[5]},51636:function(e,t,n){"use strict";n.d(t,{rb:function(){return R},IX:function(){return S}});var r=n(93664),a=n(50298),o=n(4635),i=n(20439),u=n(59301),c=n(66604),s=n(99153),l=n(84851),f=n(13028),p=n(19257),d=n(93046),h=(0,l.Z)((function e(){(0,s.Z)(this,e)})),v="CALC_UNIT",m=new RegExp(v,"g");function y(e){return"number"==typeof e?"".concat(e).concat(v):e}var g=function(e){(0,p.Z)(n,e);var t=(0,d.Z)(n);function n(e,a){var i;(0,s.Z)(this,n),i=t.call(this),(0,o.Z)((0,f.Z)(i),"result",""),(0,o.Z)((0,f.Z)(i),"unitlessCssVar",void 0),(0,o.Z)((0,f.Z)(i),"lowPriority",void 0);var u=(0,r.Z)(e);return i.unitlessCssVar=a,e instanceof n?i.result="(".concat(e.result,")"):"number"===u?i.result=y(e):"string"===u&&(i.result=e),i}return(0,l.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(y(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(y(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(m,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(h),b=function(e){(0,p.Z)(n,e);var t=(0,d.Z)(n);function n(e){var r;return(0,s.Z)(this,n),r=t.call(this),(0,o.Z)((0,f.Z)(r),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,l.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(h),_=function(e,t){var n="css"===e?g:b;return function(e){return new n(e,t)}},w=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};n(70425);var x=function(e,t,n,r){var o=(0,i.Z)({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var t,n=(0,a.Z)(e,2),r=n[0],i=n[1];(null!=o&&o[r]||null!=o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null==o?void 0:o[r]))}));var u=(0,i.Z)((0,i.Z)({},n),o);return Object.keys(u).forEach((function(e){u[e]===t[e]&&delete u[e]})),u},k="undefined"!=typeof CSSINJS_STATISTIC,E=!0;function S(){for(var e=arguments.length,t=new Array(e),n=0;n1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}());var I=function(e,t){return u.useMemo((function(){var n=T.get(t);if(n)return n;var r=e();return T.set(t,r),r}),t)},M=function(){return{}};var R=function(e){var t=e.useCSP,n=void 0===t?M:t,s=e.useToken,l=e.usePrefix,f=e.getResetStyles,p=e.getCommonStyle,d=e.getCompUnitless;function h(t,o,u){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h=Array.isArray(t)?t:[t,t],v=(0,a.Z)(h,1),m=v[0],y=h.join("-"),g=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,a=s(),h=a.theme,v=a.realToken,b=a.hashId,k=a.token,E=a.cssVar,C=l(),P=C.rootPrefixCls,T=C.iconPrefixCls,M=n(),R=E?"css":"js",L=I((function(){var e=new Set;return E&&Object.keys(d.unitless||{}).forEach((function(t){e.add((0,c.ks)(t,E.prefix)),e.add((0,c.ks)(t,w(m,E.prefix)))})),_(R,e)}),[R,m,null==E?void 0:E.prefix]),Z=A(R),D=Z.max,N=Z.min,$={theme:h,token:k,hashId:b,nonce:function(){return M.nonce},clientOnly:d.clientOnly,layer:g,order:d.order||-999};"function"==typeof f&&(0,c.xy)((0,i.Z)((0,i.Z)({},$),{},{clientOnly:!1,path:["Shared",P]}),(function(){return f(k,{prefix:{rootPrefixCls:P,iconPrefixCls:T},csp:M})}));var F=(0,c.xy)((0,i.Z)((0,i.Z)({},$),{},{path:[y,e,T]}),(function(){if(!1===d.injectStyle)return[];var n=O(k),a=n.token,i=n.flush,s=j(m,v,u),l=".".concat(e),f=x(m,v,s,{deprecatedTokens:d.deprecatedTokens});E&&s&&"object"===(0,r.Z)(s)&&Object.keys(s).forEach((function(e){s[e]="var(".concat((0,c.ks)(e,w(m,E.prefix)),")")}));var h=S(a,{componentCls:l,prefixCls:e,iconCls:".".concat(T),antCls:".".concat(P),calc:L,max:D,min:N},E?s:f),y=o(h,{hashId:b,prefixCls:e,rootPrefixCls:P,iconPrefixCls:T});i(m,f);var g="function"==typeof p?p(h,e,t,d.resetFont):null;return[!1===d.resetStyle?null:g,y]}));return[F,b]}}return{genStyleHooks:function(e,t,n,r){var l=Array.isArray(e)?e[0]:e;function f(e){return"".concat(String(l)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var p=(null==r?void 0:r.unitless)||{},v="function"==typeof d?d(e):{},m=(0,i.Z)((0,i.Z)({},v),{},(0,o.Z)({},f("zIndexPopup"),!0));Object.keys(p).forEach((function(e){m[f(e)]=p[e]}));var y=(0,i.Z)((0,i.Z)({},r),{},{unitless:m,prefixToken:f}),g=h(e,t,n,y),b=function(e,t,n){var r=n.unitless,a=n.injectStyle,o=void 0===a||a,i=n.prefixToken,l=n.ignore,f=function(a){var o=a.rootCls,u=a.cssVar,f=void 0===u?{}:u,p=s().realToken;return(0,c.CI)({path:[e],prefix:f.prefix,key:f.key,unitless:r,ignore:l,token:p,scope:o},(function(){var r=j(e,p,t),a=x(e,p,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((function(e){a[i(e)]=a[e],delete a[e]})),a})),null},p=function(t){var n=s().cssVar;return[function(r){return o&&n?u.createElement(u.Fragment,null,u.createElement(f,{rootCls:t,cssVar:n,component:e}),r):r},null==n?void 0:n.key]};return p}(l,n,y);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=g(e,t),r=(0,a.Z)(n,2),o=r[1],i=b(t),u=(0,a.Z)(i,2),c=u[0],s=u[1];return[c,o,s]}},genSubStyleComponent:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=h(e,t,n,(0,i.Z)({resetStyle:!1,order:-998},r)),o=function(e){var t=e.prefixCls,n=e.rootCls;return a(t,void 0===n?t:n),null};return o},genComponentStyleHook:h}}},66604:function(e,t,n){"use strict";n.d(t,{E4:function(){return pt},uP:function(){return S},V9:function(){return E},jG:function(){return R},IJ:function(){return mt},ks:function(){return H},bf:function(){return q},CI:function(){return lt},fp:function(){return oe},xy:function(){return ut}});var r=n(4635),a=n(50298),o=n(95190),i=n(20439);var u=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},c=n(810),s=n(59301),l=n.t(s,2),f=n(62646),p=n(80547),d=n(13697),h=n(99153),v=n(84851);function m(e){return e.join("%")}var y=function(){function e(t){(0,h.Z)(this,e),(0,r.Z)(this,"instanceId",void 0),(0,r.Z)(this,"cache",new Map),this.instanceId=t}return(0,v.Z)(e,[{key:"get",value:function(e){return this.opGet(m(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(m(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),g=["children"],b="data-token-hash",_="data-css-hash",w="__cssinjs_instance__";function x(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(_,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[w]=t[w]||e,t[w]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(_,"]"))).forEach((function(t){var n,a=t.getAttribute(_);r[a]?t[w]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[a]=!0}))}return new y(e)}var k=s.createContext({hashPriority:"low",cache:x(),defaultCache:!0}),E=function(e){var t=e.children,n=(0,f.Z)(e,g),r=s.useContext(k),a=(0,p.Z)((function(){var e=(0,i.Z)({},r);Object.keys(n).forEach((function(t){var r=n[t];void 0!==n[t]&&(e[t]=r)}));var t=n.cache;return e.cache=e.cache||x(),e.defaultCache=!t&&r.defaultCache,e}),[r,n],(function(e,t){return!(0,d.Z)(e[0],t[0],!0)||!(0,d.Z)(e[1],t[1],!0)}));return s.createElement(k.Provider,{value:a},t)},S=k,C=n(93664),P=n(47273),O="CALC_UNIT";new RegExp(O,"g");var j=function(){function e(){(0,h.Z)(this,e),(0,r.Z)(this,"cache",void 0),(0,r.Z)(this,"keys",void 0),(0,r.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,v.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a={map:this.cache};return e.forEach((function(e){var t;a?a=null===(t=a)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):a=void 0})),null!==(t=a)&&void 0!==t&&t.value&&r&&(a.value[1]=this.cacheCallTimes++),null===(n=a)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=(0,a.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),T+=1}return(0,v.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),M=new j;function R(e){var t=Array.isArray(e)?e:[e];return M.has(t)||M.set(t,new I(t)),M.get(t)}var L=new WeakMap,Z={};function D(e,t){for(var n=L,r=0;r3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(u)return e;var c=(0,i.Z)((0,i.Z)({},o),{},(a={},(0,r.Z)(a,b,t),(0,r.Z)(a,_,n),a)),s=Object.keys(c).map((function(e){var t=c[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).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()},U=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,a.Z)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},W=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,u=(0,a.Z)(e,2),c=u[0],s=u[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[c])o[c]=s;else if(!("string"!=typeof s&&"number"!=typeof s||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[c])){var l,f=H(c,null==n?void 0:n.prefix);r[f]="number"!=typeof s||null!=n&&null!==(l=n.unitless)&&void 0!==l&&l[c]?String(s):"".concat(s,"px"),o[c]="var(".concat(f,")")}})),[o,U(r,t,{scope:null==n?void 0:n.scope})]},V=n(34280),G=(0,i.Z)({},l).useInsertionEffect,Y=G?function(e,t,n){return G((function(){return e(),t()}),n)}:function(e,t,n){s.useMemo(e,n),(0,V.Z)((function(){return t(!0)}),n)},K=void 0!==(0,i.Z)({},l).useInsertionEffect?function(e){var t=[],n=!1;return s.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};var X=function(){return!1};function Q(e,t,n,r,i){var u=s.useContext(S).cache,c=m([e].concat((0,o.Z)(t))),l=K([c]),f=(X(),function(e){u.opUpdate(c,(function(t){var r=t||[void 0,void 0],o=(0,a.Z)(r,2),i=o[0];var u=[void 0===i?0:i,o[1]||n()];return e?e(u):u}))});s.useMemo((function(){f()}),[c]);var p=u.opGet(c)[1];return Y((function(){null==i||i(p)}),(function(e){return f((function(t){var n=(0,a.Z)(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(p)),[r+1,o]})),function(){u.opUpdate(c,(function(t){var n=t||[],o=(0,a.Z)(n,2),i=o[0],s=void 0===i?0:i,f=o[1];return 0===s-1?(l((function(){!e&&u.opGet(c)||null==r||r(f,!1)})),null):[s-1,f]}))}}),[c]),p}var J={},ee=new Map;function te(e){ee.set(e,(ee.get(e)||0)+1)}function ne(e,t){ee.set(e,(ee.get(e)||0)-1);var n=Array.from(ee.keys()),r=n.filter((function(e){return(ee.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(b,'="').concat(e,'"]')).forEach((function(e){var n;e[w]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),ee.delete(e)}))}var re=function(e,t,n,r){var a=n.getDerivativeToken(e),o=(0,i.Z)((0,i.Z)({},a),t);return r&&(o=r(o)),o},ae="token";function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,s.useContext)(S),l=r.cache.instanceId,f=r.container,p=n.salt,d=void 0===p?"":p,h=n.override,v=void 0===h?J:h,m=n.formatToken,y=n.getComputedToken,g=n.cssVar,x=D((function(){return Object.assign.apply(Object,[{}].concat((0,o.Z)(t)))}),t),k=$(x),E=$(v),C=g?$(g):"",P=Q(ae,[d,e.id,k,E,C],(function(){var t,n=y?y(x,v,e):re(x,v,e,m),r=(0,i.Z)({},n),o="";if(g){var c=W(n,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),s=(0,a.Z)(c,2);n=s[0],o=s[1]}var l=F(n,d);n._tokenKey=l,r._tokenKey=F(r,d);var f=null!==(t=null==g?void 0:g.key)&&void 0!==t?t:l;n._themeKey=f,te(f);var p="".concat("css","-").concat(u(l));return n._hashId=p,[n,p,r,o,(null==g?void 0:g.key)||""]}),(function(e){ne(e[0]._themeKey,l)}),(function(e){var t=(0,a.Z)(e,4),n=t[0],r=t[3];if(g&&r){var o=(0,c.hq)(r,u("css-variables-".concat(n._themeKey)),{mark:_,prepend:"queue",attachTo:f,priority:-999});o[w]=l,o.setAttribute(b,n._themeKey)}}));return P}var ie=n(14809),ue={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="comm",se="rule",le="decl",fe=Math.abs,pe=String.fromCharCode;Object.assign;function de(e){return e.trim()}function he(e,t,n){return e.replace(t,n)}function ve(e,t,n){return e.indexOf(t,n)}function me(e,t){return 0|e.charCodeAt(t)}function ye(e,t,n){return e.slice(t,n)}function ge(e){return e.length}function be(e,t){return t.push(e),e}function _e(e,t){for(var n="",r=0;r0?me(Pe,--Se):0,ke--,10===Ce&&(ke=1,xe--),Ce}function Ae(){return Ce=Se2||Re(Ce)>3?"":" "}function $e(e,t){for(;--t&&Ae()&&!(Ce<48||Ce>102||Ce>57&&Ce<65||Ce>70&&Ce<97););return Me(e,Ie()+(t<6&&32==Te()&&32==Ae()))}function Fe(e){for(;Ae();)switch(Ce){case e:return Se;case 34:case 39:34!==e&&39!==e&&Fe(Ce);break;case 40:41===e&&Fe(e);break;case 92:Ae()}return Se}function Be(e,t){for(;Ae()&&e+Ce!==57&&(e+Ce!==84||47!==Te()););return"/*"+Me(t,Se-1)+"*"+pe(47===e?e:Ae())}function qe(e){for(;!Re(Te());)Ae();return Me(e,Se)}function ze(e){return Ze(He("",null,null,null,[""],e=Le(e),0,[0],e))}function He(e,t,n,r,a,o,i,u,c){for(var s=0,l=0,f=i,p=0,d=0,h=0,v=1,m=1,y=1,g=0,b="",_=a,w=o,x=r,k=b;m;)switch(h=g,g=Ae()){case 40:if(108!=h&&58==me(k,f-1)){-1!=ve(k+=he(De(g),"&","&\f"),"&\f",fe(s?u[s-1]:0))&&(y=-1);break}case 34:case 39:case 91:k+=De(g);break;case 9:case 10:case 13:case 32:k+=Ne(h);break;case 92:k+=$e(Ie()-1,7);continue;case 47:switch(Te()){case 42:case 47:be(We(Be(Ae(),Ie()),t,n,c),c),5!=Re(h||1)&&5!=Re(Te()||1)||!ge(k)||" "===ye(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*v:u[s++]=ge(k)*y;case 125*v:case 59:case 0:switch(g){case 0:case 125:m=0;case 59+l:-1==y&&(k=he(k,/\f/g,"")),d>0&&(ge(k)-f||0===v&&47===h)&&be(d>32?Ve(k+";",r,n,f-1,c):Ve(he(k," ","")+";",r,n,f-2,c),c);break;case 59:k+=";";default:if(be(x=Ue(k,t,n,s,l,a,u,b,_=[],w=[],f,o),o),123===g)if(0===l)He(k,t,x,x,_,o,f,u,w);else{switch(p){case 99:if(110===me(k,3))break;case 108:if(97===me(k,2))break;default:l=0;case 100:case 109:case 115:}l?He(e,x,x,r&&be(Ue(e,x,x,0,0,a,u,b,a,_=[],f,w),w),a,w,f,u,r?_:w):He(k,x,x,x,[""],w,0,u,w)}}s=l=d=0,v=y=1,b=k="",f=i;break;case 58:f=1+ge(k),d=h;default:if(v<1)if(123==g)--v;else if(125==g&&0==v++&&125==je())continue;switch(k+=pe(g),g*v){case 38:y=l>0?1:(k+="\f",-1);break;case 44:u[s++]=(ge(k)-1)*y,y=1;break;case 64:45===Te()&&(k+=De(Ae())),p=Te(),l=f=ge(b=k+=qe(Ie())),g++;break;case 45:45===h&&2==ge(k)&&(v=0)}}return o}function Ue(e,t,n,r,a,o,i,u,c,s,l,f){for(var p=a-1,d=0===a?o:[""],h=function(e){return e.length}(d),v=0,m=0,y=0;v0?d[g]+" "+b:he(b,/&\f/g,d[g])))&&(c[y++]=_);return Oe(e,t,n,0===a?se:u,c,s,l,f)}function We(e,t,n,r){return Oe(e,t,n,ce,pe(Ce),ye(e,2,-2),0,r)}function Ve(e,t,n,r,a){return Oe(e,t,n,le,ye(e,0,r),ye(e,r+1,-1),r,a)}var Ge,Ye="data-ant-cssinjs-cache-path",Ke="_FILE_STYLE__";var Xe=!0;function Qe(e){return function(){if(!Ge&&(Ge={},(0,P.Z)())){var e=document.createElement("div");e.className=Ye,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,a.Z)(t,2),r=n[0],o=n[1];Ge[r]=o}));var n,r=document.querySelector("style[".concat(Ye,"]"));r&&(Xe=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Ge[e]}var Je="_multi_value_";function et(e){return _e(ze(e),we).replace(/\{%%%\:[^;];}/g,";")}function tt(e){return"object"===(0,C.Z)(e)&&e&&("_skip_check_"in e||Je in e)}function nt(e,t,n){if(!t)return e;var r=".".concat(t),a="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(a).concat(r.slice(i.length))].concat((0,o.Z)(n.slice(1))).join(" ")})).join(",")}var rt=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},u=r.root,c=r.injectHash,s=r.parentSelectors,l=n.hashId,f=n.layer,p=(n.path,n.hashPriority),d=n.transformers,h=void 0===d?[]:d,v=(n.linters,""),m={};function y(t){var r=t.getName(l);if(!m[r]){var o=e(t.style,n,{root:!1,parentSelectors:s}),i=(0,a.Z)(o,1)[0];m[r]="@keyframes ".concat(t.getName(l)).concat(i)}}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){Array.isArray(e)?g(e,t):e&&t.push(e)})),t}var b=g(Array.isArray(t)?t:[t]);return b.forEach((function(t){var r="string"!=typeof t||u?t:{};if("string"==typeof r)v+="".concat(r,"\n");else if(r._keyframe)y(r);else{var f=h.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(f).forEach((function(t){var r=f[t];if("object"!==(0,C.Z)(r)||!r||"animationName"===t&&r._keyframe||tt(r)){var d;function S(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;ue[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(y(t),r=t.getName(l)),v+="".concat(n,":").concat(r,";")}var h=null!==(d=null==r?void 0:r.value)&&void 0!==d?d:r;"object"===(0,C.Z)(r)&&null!=r&&r[Je]&&Array.isArray(h)?h.forEach((function(e){S(t,e)})):S(t,h)}else{var g=!1,b=t.trim(),_=!1;(u||c)&&l?b.startsWith("@")?g=!0:b=nt("&"===b?"":t,l,p):!u||l||"&"!==b&&""!==b||(b="",_=!0);var w=e(r,n,{root:_,injectHash:g,parentSelectors:[].concat((0,o.Z)(s),[b])}),x=(0,a.Z)(w,2),k=x[0],E=x[1];m=(0,i.Z)((0,i.Z)({},m),E),v+="".concat(b).concat(k)}}))}})),u?f&&(v&&(v="@layer ".concat(f.name," {").concat(v,"}")),f.dependencies&&(m["@layer ".concat(f.name)]=f.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(f.name,";")})).join("\n"))):v="{".concat(v,"}"),[v,m]};function at(e,t){return u("".concat(e.join("%")).concat(t))}function ot(){return null}var it="style";function ut(e,t){var n=e.token,u=e.path,l=e.hashId,f=e.layer,p=e.nonce,d=e.clientOnly,h=e.order,v=void 0===h?0:h,m=s.useContext(S),y=m.autoClear,g=(m.mock,m.defaultCache),x=m.hashPriority,k=m.container,E=m.ssrInline,C=m.transformers,O=m.linters,j=m.cache,A=m.layer,T=n._tokenKey,I=[T];A&&I.push("layer"),I.push.apply(I,(0,o.Z)(u));var M=B;var R=Q(it,I,(function(){var e=I.join("|");if(Qe(e)){var n=function(e){var t=Ge[e],n=null;if(t&&(0,P.Z)())if(Xe)n=Ke;else{var r=document.querySelector("style[".concat(_,'="').concat(Ge[e],'"]'));r?n=r.innerHTML:delete Ge[e]}return[n,t]}(e),r=(0,a.Z)(n,2),o=r[0],i=r[1];if(o)return[o,T,i,{},d,v]}var c=t(),s=rt(c,{hashId:l,hashPriority:x,layer:A?f:void 0,path:u.join("-"),transformers:C,linters:O}),p=(0,a.Z)(s,2),h=p[0],m=p[1],y=et(h),g=at(I,y);return[y,T,g,m,d,v]}),(function(e,t){var n=(0,a.Z)(e,3)[2];(t||y)&&B&&(0,c.jL)(n,{mark:_})}),(function(e){var t=(0,a.Z)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(M&&n!==Ke){var u={mark:_,prepend:!A&&"queue",attachTo:k,priority:v},s="function"==typeof p?p():p;s&&(u.csp={nonce:s});var l=[],f=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?l.push(e):f.push(e)})),l.forEach((function(e){(0,c.hq)(et(o[e]),"_layer-".concat(e),(0,i.Z)((0,i.Z)({},u),{},{prepend:!0}))}));var d=(0,c.hq)(n,r,u);d[w]=j.instanceId,d.setAttribute(b,T),f.forEach((function(e){(0,c.hq)(et(o[e]),"_effect-".concat(e),u)}))}})),L=(0,a.Z)(R,3),Z=L[0],D=L[1],N=L[2];return function(e){var t,n;E&&!M&&g?t=s.createElement("style",(0,ie.Z)({},(n={},(0,r.Z)(n,b,D),(0,r.Z)(n,_,N),n),{dangerouslySetInnerHTML:{__html:Z}})):t=s.createElement(ot,null);return s.createElement(s.Fragment,null,t,e)}}var ct,st="cssVar",lt=function(e,t){var n=e.key,r=e.prefix,i=e.unitless,u=e.ignore,l=e.token,f=e.scope,p=void 0===f?"":f,d=(0,s.useContext)(S),h=d.cache.instanceId,v=d.container,m=l._tokenKey,y=[].concat((0,o.Z)(e.path),[n,p,m]);return Q(st,y,(function(){var e=t(),o=W(e,n,{prefix:r,unitless:i,ignore:u,scope:p}),c=(0,a.Z)(o,2),s=c[0],l=c[1];return[s,l,at(y,l),n]}),(function(e){var t=(0,a.Z)(e,3)[2];B&&(0,c.jL)(t,{mark:_})}),(function(e){var t=(0,a.Z)(e,3),r=t[1],o=t[2];if(r){var i=(0,c.hq)(r,o,{mark:_,prepend:"queue",attachTo:v,priority:-999});i[w]=h,i.setAttribute(b,n)}}))};ct={},(0,r.Z)(ct,it,(function(e,t,n){var r=(0,a.Z)(e,6),o=r[0],i=r[1],u=r[2],c=r[3],s=r[4],l=r[5],f=(n||{}).plain;if(s)return null;var p=o,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)};return p=z(o,i,u,d,f),c&&Object.keys(c).forEach((function(e){if(!t[e]){t[e]=!0;var n=z(et(c[e]),i,"_effect-".concat(e),d,f);e.startsWith("@layer")?p=n+p:p+=n}})),[l,u,p]})),(0,r.Z)(ct,ae,(function(e,t,n){var r=(0,a.Z)(e,5),o=r[2],i=r[3],u=r[4],c=(n||{}).plain;if(!i)return null;var s=o._tokenKey;return[-999,s,z(i,u,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),(0,r.Z)(ct,st,(function(e,t,n){var r=(0,a.Z)(e,4),o=r[1],i=r[2],u=r[3],c=(n||{}).plain;if(!o)return null;return[-999,i,z(o,u,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]}));var ft=function(){function e(t,n){(0,h.Z)(this,e),(0,r.Z)(this,"name",void 0),(0,r.Z)(this,"style",void 0),(0,r.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,v.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}(),pt=ft;function dt(e){return e.notSplit=!0,e}var ht={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:dt(["borderTop","borderBottom"]),borderBlockStart:dt(["borderTop"]),borderBlockEnd:dt(["borderBottom"]),borderInline:dt(["borderLeft","borderRight"]),borderInlineStart:dt(["borderLeft"]),borderInlineEnd:dt(["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 vt(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var mt={visit:function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n],o=ht[n];if(!o||"number"!=typeof r&&"string"!=typeof r)t[n]=r;else{var i=function(e){if("number"==typeof e)return[[e],!1];var t=String(e).trim(),n=t.match(/(.*)(!important)/),r=(n?n[1]:t).trim().split(/\s+/),a=[],o=0;return[r.reduce((function(e,t){if(t.includes("(")||t.includes(")")){var n=t.split("(").length-1,r=t.split(")").length-1;o+=n-r}return o>=0&&a.push(t),0===o&&(e.push(a.join(" ")),a=[]),e}),[]),!!n]}(r),u=(0,a.Z)(i,2),c=u[0],s=u[1];o.length&&o.notSplit?o.forEach((function(e){t[e]=vt(r,s)})):1===o.length?t[o[0]]=vt(c[0],s):2===o.length?o.forEach((function(e,n){var r;t[e]=vt(null!==(r=c[n])&&void 0!==r?r:c[0],s)})):4===o.length?o.forEach((function(e,n){var r,a;t[e]=vt(null!==(r=null!==(a=c[n])&&void 0!==a?a:c[n-2])&&void 0!==r?r:c[0],s)})):t[n]=r}})),t}}},17835:function(e,t,n){"use strict";n.d(t,{t:function(){return c}});var r=n(4635);const a=Math.round;function o(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const i=(e,t,n)=>0===n?e:e/100;function u(e,t){const n=t||255;return e>n?n:e<0?0:e}class c{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,r.Z)(this,"isValid",!0),(0,r.Z)(this,"r",0),(0,r.Z)(this,"g",0),(0,r.Z)(this,"b",0),(0,r.Z)(this,"a",1),(0,r.Z)(this,"_h",void 0),(0,r.Z)(this,"_s",void 0),(0,r.Z)(this,"_l",void 0),(0,r.Z)(this,"_v",void 0),(0,r.Z)(this,"_max",void 0),(0,r.Z)(this,"_min",void 0),(0,r.Z)(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function a(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):a("rgb")?this.fromRgbString(n):a("hsl")?this.fromHslString(n):(a("hsv")||a("hsb"))&&this.fromHsvString(n)}else if(e instanceof c)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=u(e.r),this.g=u(e.g),this.b=u(e.b),this.a="number"==typeof e.a?u(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:a(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:a(o("r")),g:a(o("g")),b:a(o("b")),a:a(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>a((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=a(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=a(100*this.getSaturation()),n=a(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=u(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=a(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,u=0;const c=e/60,s=(1-Math.abs(2*n-1))*t,l=s*(1-Math.abs(c%2-1));c>=0&&c<1?(o=s,i=l):c>=1&&c<2?(o=l,i=s):c>=2&&c<3?(i=s,u=l):c>=3&&c<4?(i=l,u=s):c>=4&&c<5?(o=l,u=s):c>=5&&c<6&&(o=s,u=l);const f=n-s/2;this.r=a(255*(o+f)),this.g=a(255*(i+f)),this.b=a(255*(u+f))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=a(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,u=Math.floor(i),c=i-u,s=a(n*(1-t)*255),l=a(n*(1-t*c)*255),f=a(n*(1-t*(1-c))*255);switch(u){case 0:this.g=f,this.b=s;break;case 1:this.r=l,this.b=s;break;case 2:this.r=s,this.b=f;break;case 3:this.r=s,this.g=l;break;case 4:this.r=f,this.g=s;break;default:this.g=s,this.b=l}}fromHsvString(e){const t=o(e,i);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=o(e,i);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=o(e,((e,t)=>t.includes("%")?a(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}},7657:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(14809),a=n(50298),o=n(4635),i=n(62646),u=n(59301),c=n(92310),s=n.n(c),l=n(68361),f=n(18418),p=n(20439),d=n(93664),h=n(810),v=n(96452),m=n(48736);function y(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function g(e){return"object"===(0,d.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,d.Z)(e.icon)||"function"==typeof e.icon)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[y(n)]=r;return t}),{})}function _(e,t,n){return n?u.createElement(e.tag,(0,p.Z)((0,p.Z)({key:t},b(e.attrs)),n),(e.children||[]).map((function(n,r){return _(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):u.createElement(e.tag,(0,p.Z)({key:t},b(e.attrs)),(e.children||[]).map((function(n,r){return _(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function w(e){return(0,l.R_)(e)[0]}function x(e){return e?Array.isArray(e)?e:[e]:[]}var k=["icon","className","onClick","style","primaryColor","secondaryColor"],E={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var S=function(e){var t,n,r,a,o,c,s=e.icon,l=e.className,d=e.onClick,y=e.style,b=e.primaryColor,x=e.secondaryColor,S=(0,i.Z)(e,k),C=u.useRef(),P=E;if(b&&(P={primaryColor:b,secondaryColor:x||w(b)}),t=C,n=(0,u.useContext)(f.Z),r=n.csp,a=n.prefixCls,o=n.layer,c="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",a&&(c=c.replace(/anticon/g,a)),o&&(c="@layer ".concat(o," {\n").concat(c,"\n}")),(0,u.useEffect)((function(){var e=t.current,n=(0,v.A)(e);(0,h.hq)(c,"@ant-design-icons",{prepend:!o,csp:r,attachTo:n})}),[]),function(e,t){(0,m.ZP)(e,"[@ant-design/icons] ".concat(t))}(g(s),"icon should be icon definiton, but got ".concat(s)),!g(s))return null;var O=s;return O&&"function"==typeof O.icon&&(O=(0,p.Z)((0,p.Z)({},O),{},{icon:O.icon(P.primaryColor,P.secondaryColor)})),_(O.icon,"svg-".concat(O.name),(0,p.Z)((0,p.Z)({className:l,onClick:d,style:y,"data-icon":O.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},S),{},{ref:C}))};S.displayName="IconReact",S.getTwoToneColors=function(){return(0,p.Z)({},E)},S.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;E.primaryColor=t,E.secondaryColor=n||w(t),E.calculated=!!n};var C=S;function P(e){var t=x(e),n=(0,a.Z)(t,2),r=n[0],o=n[1];return C.setTwoToneColors({primaryColor:r,secondaryColor:o})}var O=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];P(l.iN.primary);var j=u.forwardRef((function(e,t){var n=e.className,c=e.icon,l=e.spin,p=e.rotate,d=e.tabIndex,h=e.onClick,v=e.twoToneColor,m=(0,i.Z)(e,O),y=u.useContext(f.Z),g=y.prefixCls,b=void 0===g?"anticon":g,_=y.rootClassName,w=s()(_,b,(0,o.Z)((0,o.Z)({},"".concat(b,"-").concat(c.name),!!c.name),"".concat(b,"-spin"),!!l||"loading"===c.name),n),k=d;void 0===k&&h&&(k=-1);var E=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,S=x(v),P=(0,a.Z)(S,2),j=P[0],A=P[1];return u.createElement("span",(0,r.Z)({role:"img","aria-label":c.name},m,{ref:t,tabIndex:k,onClick:h,className:w}),u.createElement(C,{icon:c,primaryColor:j,secondaryColor:A,style:E}))}));j.displayName="AntdIcon",j.getTwoToneColor=function(){var e=C.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},j.setTwoToneColor=P;var A=j},18418:function(e,t,n){"use strict";var r=(0,n(59301).createContext)({});t.Z=r},29679:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(14809),a=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},i=n(7657),u=function(e,t){return a.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=a.forwardRef(u)},19248:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(14809),a=n(59301),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},i=n(7657),u=function(e,t){return a.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=a.forwardRef(u)},99267:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(14809),a=n(59301),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},i=n(7657),u=function(e,t){return a.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=a.forwardRef(u)},96512:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(14809),a=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},i=n(7657),u=function(e,t){return a.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=a.forwardRef(u)},78987:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(14809),a=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},i=n(7657),u=function(e,t){return a.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=a.forwardRef(u)},58617:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(14809),a=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},i=n(7657),u=function(e,t){return a.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:o}))};var c=a.forwardRef(u)},43403:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(50298),a=n(59301),o=n(4676),i=n(47273),u=(n(48736),n(8654)),c=a.createContext(null),s=n(95190),l=n(34280),f=[];var p=n(810),d=n(75152);var h="rc-util-locker-".concat(Date.now()),v=0;function m(e){var t=!!e,n=a.useState((function(){return v+=1,"".concat(h,"_").concat(v)})),o=(0,r.Z)(n,1)[0];(0,l.Z)((function(){if(t){var e=(0,d.o)(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,p.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else(0,p.jL)(o);return function(){(0,p.jL)(o)}}),[t,o])}var y=!1;var g=function(e){return!1!==e&&((0,i.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};var b=a.forwardRef((function(e,t){var n=e.open,p=e.autoLock,d=e.getContainer,h=(e.debug,e.autoDestroy),v=void 0===h||h,b=e.children,_=a.useState(n),w=(0,r.Z)(_,2),x=w[0],k=w[1],E=x||n;a.useEffect((function(){(v||n)&&k(n)}),[n,v]);var S=a.useState((function(){return g(d)})),C=(0,r.Z)(S,2),P=C[0],O=C[1];a.useEffect((function(){var e=g(d);O(null!=e?e:null)}));var j=function(e,t){var n=a.useState((function(){return(0,i.Z)()?document.createElement("div"):null})),o=(0,r.Z)(n,1)[0],u=a.useRef(!1),p=a.useContext(c),d=a.useState(f),h=(0,r.Z)(d,2),v=h[0],m=h[1],y=p||(u.current?void 0:function(e){m((function(t){return[e].concat((0,s.Z)(t))}))});function g(){o.parentElement||document.body.appendChild(o),u.current=!0}function b(){var e;null===(e=o.parentElement)||void 0===e||e.removeChild(o),u.current=!1}return(0,l.Z)((function(){return e?p?p(g):g():b(),b}),[e]),(0,l.Z)((function(){v.length&&(v.forEach((function(e){return e()})),m(f))}),[v]),[o,y]}(E&&!P),A=(0,r.Z)(j,2),T=A[0],I=A[1],M=null!=P?P:T;m(p&&n&&(0,i.Z)()&&(M===T||M===document.body));var R=null;b&&(0,u.Yr)(b)&&t&&(R=b.ref);var L=(0,u.x1)(R,t);if(!E||!(0,i.Z)()||void 0===P)return null;var Z,D=!1===M||("boolean"==typeof Z&&(y=Z),y),N=b;return t&&(N=a.cloneElement(b,{ref:L})),a.createElement(c.Provider,{value:I},D?N:(0,o.createPortal)(N,M))}))},1499:function(e,t){"use strict";var n=new function(e){var t={},n={channels:t,subscribe:function(e,n){return t[e]||(t[e]=[]),t[e].push(n),this.unsubscribe.bind(null,e,n)},unsubscribe:function(e,n){var r=t[e],a=-1;if(r){for(var o=0;o=0)return t[e].splice(a,1),!0}return!1},publish:function(e){if(!t[e])return!1;var n=Array.prototype.slice.call(arguments,1);return t[e].forEach((function(e){e.apply(null,n)})),this}};return e?Object.assign(e,n):n};t.Z=n},49264:function(e,t,n){"use strict";n.d(t,{zt:function(){return rr},$j:function(){return nr},Ue:function(){return kn}});var r={};n.r(r),n.d(r,{actionChannel:function(){return Xe},all:function(){return Fe},apply:function(){return He},call:function(){return ze},cancel:function(){return Ye},cancelled:function(){return Qe},cps:function(){return Ue},flush:function(){return Je},fork:function(){return We},getContext:function(){return et},join:function(){return Ge},put:function(){return $e},race:function(){return Be},select:function(){return Ke},setContext:function(){return tt},spawn:function(){return Ve},take:function(){return De},takeEvery:function(){return jt},takeLatest:function(){return At},takem:function(){return Ne},throttle:function(){return Tt}});n(82242);var a=n(59301),o=n(4635);function i(e){for(var t=1;t=0&&e.splice(n,1)}var Z=function(e){var t=Array(e.length);for(var n in e)I(e,n)&&(t[n]=e[n]);return t};function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=y({},e),n=new Promise((function(e,n){t.resolve=e,t.reject=n}));return t.promise=n,t}function N(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=void 0,r=new Promise((function(r){n=setTimeout((function(){return r(t)}),e)}));return r[k]=function(){return clearTimeout(n)},r}function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(){return++e}}var F=$(),B=function(e){throw e},q=function(e){return{value:e,done:!0}};function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments[3],a={name:n,next:e,throw:t,return:q};return r&&(a[w]=!0),"undefined"!=typeof Symbol&&(a[Symbol.iterator]=function(){return a}),a}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";"undefined"==typeof window?console.log("redux-saga "+e+": "+t+"\n"+(n&&n.stack||n)):console[e](t,n)}function U(e,t){return function(){return e.apply(void 0,arguments)}}var W=function(e,t){return e+" has been deprecated in favor of "+t+", please update your code"},V=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},G=function(e,t){return(e?e+".":"")+"setContext(props): argument "+t+" is not a plain object"},Y=function(e){return function(t){return e(Object.defineProperty(t,E,{value:!0}))}},K="Channel's Buffer overflow!",X={isEmpty:P,put:O,take:O};function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments[1],n=new Array(e),r=0,a=0,o=0,i=function(t){n[a]=t,a=(a+1)%e,r++},u=function(){if(0!=r){var t=n[o];return n[o]=null,r--,o=(o+1)%e,t}},c=function(){for(var e=[];r;)e.push(u());return e};return{isEmpty:function(){return 0==r},put:function(u){if(r0&&void 0!==arguments[0]?arguments[0]:ee(),t=!1,n=[];function r(){if(t&&n.length)throw V("Cannot have a closed channel with pending takers");if(n.length&&!e.isEmpty())throw V("Cannot have pending takers with non empty buffer")}function a(a){if(r(),A(a,M.notUndef,ve),!t){if(!n.length)return e.put(a);for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:J(),n=arguments[2];arguments.length>2&&A(n,M.func,"Invalid match function passed to eventChannel");var r=me(t),a=function(){r.__closed__||(o&&o(),r.close())},o=e((function(e){pe(e)?a():n&&!n(e)||r.put(e)}));if(r.__closed__&&o(),!M.func(o))throw new Error("in eventChannel: subscribe should return a function to unsubscribe");return{take:r.take,flush:r.flush,close:a}}function ge(e){var t=ye((function(t){return e((function(e){e[E]?t(e):oe((function(){return t(e)}))}))}));return se({},t,{take:function(e,n){arguments.length>1&&(A(n,M.func,"channel.take's matcher argument must be a function"),e[x]=n),t.take(e)}})}var be=b("IO"),_e="TAKE",we="PUT",xe="RACE",ke="CALL",Ee="CPS",Se="FORK",Ce="JOIN",Pe="CANCEL",Oe="SELECT",je="ACTION_CHANNEL",Ae="CANCELLED",Te="FLUSH",Ie="GET_CONTEXT",Me="SET_CONTEXT",Re="\n(HINT: if you are getting this errors in tests, consider using createMockTask from redux-saga/utils)",Le=function(e,t){var n;return(n={})[be]=!0,n[e]=t,n},Ze=function(e){return A(rt.fork(e),M.object,"detach(eff): argument must be a fork effect"),e[Se].detached=!0,e};function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*";if(arguments.length&&A(arguments[0],M.notUndef,"take(patternOrChannel): patternOrChannel is undefined"),M.pattern(e))return Le(_e,{pattern:e});if(M.channel(e))return Le(_e,{channel:e});throw new Error("take(patternOrChannel): argument "+String(e)+" is not valid channel or a valid pattern")}De.maybe=function(){var e=De.apply(void 0,arguments);return e[_e].maybe=!0,e};var Ne=U(De.maybe);function $e(e,t){return arguments.length>1?(A(e,M.notUndef,"put(channel, action): argument channel is undefined"),A(e,M.channel,"put(channel, action): argument "+e+" is not a valid channel"),A(t,M.notUndef,"put(channel, action): argument action is undefined")):(A(e,M.notUndef,"put(action): argument action is undefined"),t=e,e=null),Le(we,{channel:e,action:t})}function Fe(e){return Le("ALL",e)}function Be(e){return Le(xe,e)}function qe(e,t,n){A(t,M.notUndef,e+": argument fn is undefined");var r=null;if(M.array(t)){var a=t;r=a[0],t=a[1]}else if(t.fn){var o=t;r=o.context,t=o.fn}return r&&M.string(t)&&M.func(r[t])&&(t=r[t]),A(t,M.func,e+": argument "+t+" is not a function"),{context:r,fn:t,args:n}}function ze(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:[];return Le(ke,qe("apply",{context:e,fn:t},n))}function Ue(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1)return Fe(t.map((function(e){return Ge(e)})));var r=t[0];return A(r,M.notUndef,"join(task): argument task is undefined"),A(r,M.task,"join(task): argument "+r+" is not a valid Task object "+Re),Le(Ce,r)}function Ye(){for(var e=arguments.length,t=Array(e),n=0;n1)return Fe(t.map((function(e){return Ye(e)})));var r=t[0];return 1===t.length&&(A(r,M.notUndef,"cancel(task): argument task is undefined"),A(r,M.task,"cancel(task): argument "+r+" is not a valid Task object "+Re)),Le(Pe,r||S)}function Ke(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1&&(A(t,M.notUndef,"actionChannel(pattern, buffer): argument buffer is undefined"),A(t,M.buffer,"actionChannel(pattern, buffer): argument "+t+" is not a valid buffer")),Le(je,{pattern:e,buffer:t})}function Qe(){return Le(Ae,{})}function Je(e){return A(e,M.channel,"flush(channel): argument "+e+" is not valid channel"),Le(Te,e)}function et(e){return A(e,M.string,"getContext(prop): argument "+e+" is not a string"),Le(Ie,e)}function tt(e){return A(e,M.object,G(null,e)),Le(Me,e)}$e.resolve=function(){var e=$e.apply(void 0,arguments);return e[we].resolve=!0,e},$e.sync=U($e.resolve);var nt=function(e){return function(t){return t&&t[be]&&t[e]}},rt={take:nt(_e),put:nt(we),all:nt("ALL"),race:nt(xe),call:nt(ke),cps:nt(Ee),fork:nt(Se),join:nt(Ce),cancel:nt(Pe),select:nt(Oe),actionChannel:nt(je),cancelled:nt(Ae),flush:nt(Te),getContext:nt(Ie),setContext:nt(Me)},at=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:function(){return O},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"anonymous",c=arguments[8];A(e,M.iterator,ut);var s="[...effects]",l=U(K,W(s,"all("+s+")")),f=o.sagaMonitor,p=o.logger,d=o.onError,h=p||H,v=function(e){var t=e.sagaStack;!t&&e.stack&&(t=-1!==e.stack.split("\n")[0].indexOf(e.message)?e.stack:"Error: "+e.message+"\n"+e.stack),h("error","uncaught at "+u,t||e.message||e)},m=ge(t),y=Object.create(a);C.cancel=O;var g=ue(i,u,e,c),b={name:u,cancel:x,isRunning:!0},w=vt(0,b,P);function x(){b.isRunning&&!b.isCancelled&&(b.isCancelled=!0,C(st))}function E(){e._isRunning&&!e._isCancelled&&(e._isCancelled=!0,w.cancelAll(),P(st))}return c&&(c.cancel=E),e._isRunning=!0,C(),g;function C(t,n){if(!b.isRunning)throw new Error("Trying to resume an already finished generator");try{var r=void 0;n?r=e.throw(t):t===st?(b.isCancelled=!0,C.cancel(),r=M.func(e.return)?e.return(st):{done:!0,value:st}):r=t===ct?M.func(e.return)?e.return():{done:!0}:e.next(t),r.done?(b.isMainRunning=!1,b.cont&&b.cont(r.value)):j(r.value,i,"",C)}catch(e){b.isCancelled&&v(e),b.isMainRunning=!1,b.cont(e,!0)}}function P(t,n){e._isRunning=!1,m.close(),n?(t instanceof Error&&Object.defineProperty(t,"sagaStack",{value:"at "+u+" \n "+(t.sagaStack||t.stack),configurable:!0}),g.cont||(t instanceof Error&&d?d(t):v(t)),e._error=t,e._isAborted=!0,e._deferredEnd&&e._deferredEnd.reject(t)):(e._result=t,e._deferredEnd&&e._deferredEnd.resolve(t)),g.cont&&g.cont(t,n),g.joiners.forEach((function(e){return e.cb(t,n)})),g.joiners=null}function j(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments[3],a=F();f&&f.effectTriggered({effectId:a,parentEffectId:t,label:n,effect:e});var o=void 0;function i(e,t){o||(o=!0,r.cancel=O,f&&(t?f.effectRejected(a,e):f.effectResolved(a,e)),r(e,t))}i.cancel=O,r.cancel=function(){if(!o){o=!0;try{i.cancel()}catch(e){v(e)}i.cancel=O,f&&f.effectCancelled(a)}};var c=void 0;return M.promise(e)?T(e,i):M.helper(e)?z(yt(e),a,i):M.iterator(e)?I(e,a,u,i):M.array(e)?l(e,a,i):(c=rt.take(e))?N(c,i):(c=rt.put(e))?$(c,i):(c=rt.all(e))?K(c,a,i):(c=rt.race(e))?X(c,a,i):(c=rt.call(e))?B(c,a,i):(c=rt.cps(e))?q(c,i):(c=rt.fork(e))?z(c,a,i):(c=rt.join(e))?V(c,i):(c=rt.cancel(e))?Y(c,i):(c=rt.select(e))?Q(c,i):(c=rt.actionChannel(e))?J(c,i):(c=rt.flush(e))?ne(c,i):(c=rt.cancelled(e))?te(c,i):(c=rt.getContext(e))?re(c,i):(c=rt.setContext(e))?ae(c,i):i(e)}function T(e,t){var n=e[k];M.func(n)?t.cancel=n:M.func(e.abort)&&(t.cancel=function(){return e.abort()}),e.then(t,(function(e){return t(e,!0)}))}function I(e,a,i,u){gt(e,t,n,r,y,o,a,i,u)}function N(e,t){var n=e.channel,r=e.pattern,a=e.maybe;n=n||m;var o=function(e){return e instanceof Error?t(e,!0):pe(e)&&!a?t(ct):t(e)};try{n.take(o,ht(r))}catch(e){return t(e,!0)}t.cancel=o.cancel}function $(e,t){var r=e.channel,a=e.action,o=e.resolve;oe((function(){var e=void 0;try{e=(r?r.put:n)(a)}catch(e){if(r||o)return t(e,!0);v(e)}if(!o||!M.promise(e))return t(e);T(e,t)}))}function B(e,t,n){var r=e.context,a=e.fn,o=e.args,i=void 0;try{i=a.apply(r,o)}catch(e){return n(e,!0)}return M.promise(i)?T(i,n):M.iterator(i)?I(i,t,a.name,n):n(i)}function q(e,t){var n=e.context,r=e.fn,a=e.args;try{var o=function(e,n){return M.undef(e)?t(n):t(e,!0)};r.apply(n,a.concat(o)),o.cancel&&(t.cancel=function(){return o.cancel()})}catch(e){return t(e,!0)}}function z(e,a,i){var u=e.context,c=e.fn,s=e.args,l=e.detached,f=mt({context:u,fn:c,args:s});try{ie();var p=gt(f,t,n,r,y,o,a,c.name,l?null:O);l?i(p):f._isRunning?(w.addTask(p),i(p)):f._error?w.abort(f._error):i(p)}finally{ce()}}function V(e,t){if(e.isRunning()){var n={task:g,cb:t};t.cancel=function(){return L(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())}function Y(e,t){e===S&&(e=g),e.isRunning()&&e.cancel(),t()}function K(e,t,n){var r=Object.keys(e);if(!r.length)return n(M.array(e)?[]:{});var a=0,o=void 0,i={},u={};r.forEach((function(t){var c=function(u,c){o||(c||pe(u)||u===ct||u===st?(n.cancel(),n(u,c)):(i[t]=u,++a===r.length&&(o=!0,n(M.array(e)?Z(at({},i,{length:r.length})):i))))};c.cancel=O,u[t]=c})),n.cancel=function(){o||(o=!0,r.forEach((function(e){return u[e].cancel()})))},r.forEach((function(n){return j(e[n],t,n,u[n])}))}function X(e,t,n){var r=void 0,a=Object.keys(e),o={};a.forEach((function(t){var i=function(o,i){if(!r)if(i)n.cancel(),n(o,!0);else if(!pe(o)&&o!==ct&&o!==st){var u;n.cancel(),r=!0;var c=((u={})[t]=o,u);n(M.array(e)?[].slice.call(at({},c,{length:a.length})):c)}};i.cancel=O,o[t]=i})),n.cancel=function(){r||(r=!0,a.forEach((function(e){return o[e].cancel()})))},a.forEach((function(n){r||j(e[n],t,n,o[n])}))}function Q(e,t){var n=e.selector,a=e.args;try{t(n.apply(void 0,[r()].concat(a)))}catch(e){t(e,!0)}}function J(e,n){var r=e.pattern,a=e.buffer,o=ht(r);o.pattern=r,n(ye(t,a||ee(),o))}function te(e,t){t(!!b.isCancelled)}function ne(e,t){e.flush(t)}function re(e,t){t(y[e])}function ae(e,t){R(y,e),t()}function ue(e,t,n,r){var a,o,i;return n._deferredEnd=null,(o={})[_]=!0,o.id=e,o.name=t,(i={})[a="done"]=i[a]||{},i[a].get=function(){if(n._deferredEnd)return n._deferredEnd.promise;var e=D();return n._deferredEnd=e,n._isRunning||(n._error?e.reject(n._error):e.resolve(n._result)),e.promise},o.cont=r,o.joiners=[],o.cancel=E,o.isRunning=function(){return n._isRunning},o.isCancelled=function(){return n._isCancelled},o.isAborted=function(){return n._isAborted},o.result=function(){return n._result},o.error=function(){return n._error},o.setContext=function(e){A(e,M.object,G("task",e)),R(y,e)},it(o,i),o}}var bt="runSaga(storeInterface, saga, ...args): saga argument must be a Generator function!";function _t(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var xt={done:!0,value:void 0},kt={};function Et(e){return M.channel(e)?"channel":Array.isArray(e)?String(e.map((function(e){return String(e)}))):String(e)}function St(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"iterator",r=void 0,a=t;function o(t,n){if(a===kt)return xt;if(n)throw a=kt,n;r&&r(t);var o=e[a](),i=o[0],u=o[1],c=o[2];return r=c,(a=i)===kt?xt:u}return z(o,(function(e){return o(null,e)}),n,!0)}function Ct(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a2?n-2:0),a=2;a3?r-3:0),o=3;o2?n-2:0),a=2;a2?n-2:0),a=2;a3?r-3:0),o=3;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.context,n=void 0===t?{}:t,r=wt(e,["context"]),a=r.sagaMonitor,o=r.logger,i=r.onError;if(M.func(r))throw new Error("Saga middleware no longer accept Generator functions. Use sagaMiddleware.run instead");if(o&&!M.func(o))throw new Error("`options.logger` passed to the Saga middleware is not a function!");if(i&&!M.func(i))throw new Error("`options.onError` passed to the Saga middleware is not a function!");if(r.emitter&&!M.func(r.emitter))throw new Error("`options.emitter` passed to the Saga middleware is not a function!");function u(e){var t=e.getState,c=e.dispatch,s=de();return s.emit=(r.emitter||j)(s.emit),u.run=_t.bind(null,{context:n,subscribe:s.subscribe,dispatch:c,getState:t,sagaMonitor:a,logger:o,onError:i}),function(e){return function(t){a&&a.actionDispatched&&a.actionDispatched(t);var n=e(t);return s.emit(t),n}}}return u.run=function(){throw new Error("Before running a Saga, you must mount the Saga middleware on the Store using applyMiddleware")},u.setContext=function(e){A(e,M.object,G("sagaMiddleware",e)),R(n,e)},u},Mt=n(44520),Rt=n.n(Mt),Lt=n(93664),Zt=n(78639),Dt=n.n(Zt),Nt=n(95190),$t=n(21696),Ft=n(56754),Bt=n.n(Ft),qt=n(99153),zt=n(84851),Ht=n(89381),Ut=n.n(Ht),Wt=(n(60288),n(50298)),Vt=n(55267),Gt=n.n(Vt),Yt=Array.isArray.bind(Array),Kt=function(e){return"function"==typeof e},Xt=function(e){return e},Qt=function(){},Jt=function(e,t){for(var n=0,r=e.length;n-1&&(t[n]=e[n]),t}),{})}var on=function(){function e(){(0,qt.Z)(this,e),this._handleActions=null,this.hooks=rn.reduce((function(e,t){return e[t]=[],e}),{})}return(0,zt.Z)(e,[{key:"use",value:function(e){Rt()(Dt()(e),"plugin.use: plugin should be plain object");var t=this.hooks;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Rt()(t[n],"plugin.use: unknown plugin property: ".concat(n)),"_handleActions"===n?this._handleActions=e[n]:"extraEnhancers"===n?t[n]=e[n]:t[n].push(e[n]))}},{key:"apply",value:function(e,t){var n=this.hooks;Rt()(["onError","onHmr"].indexOf(e)>-1,"plugin.apply: hook ".concat(e," cannot be applied"));var r=n[e];return function(){if(r.length){var e=!0,n=!1,a=void 0;try{for(var o,i=r[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var u=o.value;u.apply(void 0,arguments)}}catch(e){n=!0,a=e}finally{try{e||null==i.return||i.return()}finally{if(n)throw a}}}else t&&t.apply(void 0,arguments)}}},{key:"get",value:function(e){var t,n=this.hooks;return Rt()(e in n,"plugin.get: hook ".concat(e," cannot be got")),"extraReducers"===e?function(e){var t={},n=!0,r=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done);n=!0){t=i({},t,o.value)}}catch(e){r=!0,a=e}finally{try{n||null==u.return||u.return()}finally{if(r)throw a}}return t}(n[e]):"onReducer"===e?(t=n[e],function(e){var n=!0,r=!1,a=void 0;try{for(var o,i=t[Symbol.iterator]();!(n=(o=i.next()).done);n=!0)e=(0,o.value)(e)}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}return e}):n[e]}}]),e}();function un(e){var t=e.reducers,n=e.initialState,r=e.plugin,a=e.sagaMiddleware,o=e.promiseMiddleware,i=e.createOpts.setupMiddlewares,u=void 0===i?Xt:i,c=r.get("extraEnhancers");Rt()(Yt(c),"[app.start] extraEnhancers should be array, but got ".concat((0,Lt.Z)(c)));var s=r.get("onAction"),l=u([o,a].concat((0,Nt.Z)(Ut()(s)))),f=v,p=[m.apply(void 0,(0,Nt.Z)(l))].concat((0,Nt.Z)(c));return d(t,n,f.apply(void 0,(0,Nt.Z)(p)))}function cn(e,t){var n="".concat(t.namespace).concat(en).concat(e),r=n.replace(/\/@@[^/]+?$/,"");return(Array.isArray(t.reducers)?t.reducers[0][r]:t.reducers&&t.reducers[r])||t.effects&&t.effects[r]?n:e}function sn(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return Gt().mark((function o(){var i;return Gt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:o.t0=Gt().keys(e);case 1:if((o.t1=o.t0()).done){o.next=7;break}if(i=o.t1.value,!Object.prototype.hasOwnProperty.call(e,i)){o.next=5;break}return o.delegateYield(Gt().mark((function o(){var u,c;return Gt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return u=ln(i,e[i],t,n,r,a),o.next=3,We(u);case 3:return c=o.sent,o.next=6,We(Gt().mark((function e(){return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,De("".concat(t.namespace,"/@@CANCEL_EFFECTS"));case 2:return e.next=4,Ye(c);case 4:case"end":return e.stop()}}),e)})));case 6:case"end":return o.stop()}}),o)}))(),"t2",5);case 5:o.next=1;break;case 7:case"end":return o.stop()}}),o)}))}function ln(e,t,n,a,o,i){var u,c,s=Gt().mark(v),l=t,f="takeEvery";if(Array.isArray(t)){var p=(0,Wt.Z)(t,1);l=p[0];var d=t[1];d&&d.type&&("throttle"===(f=d.type)&&(Rt()(d.ms,"app.start: opts.ms should be defined if type is throttle"),u=d.ms),"poll"===f&&(Rt()(d.delay,"app.start: opts.delay should be defined if type is poll"),c=d.delay)),Rt()(["watcher","takeEvery","takeLatest","throttle","poll"].indexOf(f)>-1,"app.start: effect type should be takeEvery, takeLatest, throttle, poll or watcher")}function h(){}function v(){var t,r,o,u,c,f,p,d,v,m=arguments;return Gt().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:for(t=m.length,r=new Array(t),o=0;o0?r[0]:{},c=u.__dva_resolve,f=void 0===c?h:c,p=u.__dva_reject,d=void 0===p?h:p,s.prev=2,s.next=5,$e({type:"".concat(e).concat(en,"@@start")});case 5:return s.next=7,l.apply(void 0,(0,Nt.Z)(r.concat(fn(n,i))));case 7:return v=s.sent,s.next=10,$e({type:"".concat(e).concat(en,"@@end")});case 10:f(v),s.next=17;break;case 13:s.prev=13,s.t0=s.catch(2),a(s.t0,{key:e,effectArgs:r}),s.t0._dontReject||d(s.t0);case 17:case"end":return s.stop()}}),s,null,[[2,13]])}var m=function(e,t,n,a){var o=!0,i=!1,u=void 0;try{for(var c,s=e[Symbol.iterator]();!(o=(c=s.next()).done);o=!0){t=(0,c.value)(t,r,n,a)}}catch(e){i=!0,u=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw u}}return t}(o,v,n,e);switch(f){case"watcher":return v;case"takeLatest":return Gt().mark((function t(){return Gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,At(e,m);case 2:case"end":return t.stop()}}),t)}));case"throttle":return Gt().mark((function t(){return Gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Tt(u,e,m);case 2:case"end":return t.stop()}}),t)}));case"poll":return Gt().mark((function t(){var n,a,o,i,u,s,l;return Gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=function(e,t){var r;return Gt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.call;case 1:return n.next=4,r(m,t);case 4:return n.next=6,r(a,c);case 6:n.next=1;break;case 8:case"end":return n.stop()}}),n)},a=function(e){return new Promise((function(t){return setTimeout(t,e)}))},n=Gt().mark(o),i=ze,u=De,s=Be;case 4:return t.next=7,u("".concat(e,"-start"));case 7:return l=t.sent,t.next=10,s([i(o,r,l),u("".concat(e,"-stop"))]);case 10:t.next=4;break;case 12:case"end":return t.stop()}}),t)}));default:return Gt().mark((function t(){return Gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jt(e,m);case 2:case"end":return t.stop()}}),t)}))}}function fn(e,t){function n(n,r){Rt()(n,"dispatch: action should be a plain Object with type");var a=t.namespacePrefixWarning;(void 0===a||a)&&Bt()(0!==n.indexOf("".concat(e.namespace).concat(en)),"[".concat(r,"] ").concat(n," should not be prefixed with namespace ").concat(e.namespace))}function a(t){var r=t.type;return n(r,"sagaEffects.put"),$e(i({},t,{type:cn(r,e)}))}return a.resolve=function(t){var r=t.type;return n(r,"sagaEffects.put.resolve"),$e.resolve(i({},t,{type:cn(r,e)}))},i({},r,{put:a,take:function(t){return"string"==typeof t?(n(t,"sagaEffects.take"),De(cn(t,e))):Array.isArray(t)?De(t.map((function(t){return"string"==typeof t?(n(t,"sagaEffects.take"),cn(t,e)):t}))):De(t)}})}function pn(e){return e}function dn(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:pn;return function(n,r){var a=r.type;return Rt()(a,"dispatch: action should be a plain Object with type"),e===a?t(n,r):n}}(t,e[t])})),r=dn.apply(void 0,(0,Nt.Z)(n));return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,n=arguments.length>1?arguments[1]:void 0;return r(e,n)}}function vn(e,t,n){return Array.isArray(e)?e[1]((n||hn)(e[0],t)):(n||hn)(e||{},t)}function mn(e){return function(){return function(t){return function(n){return function(t){if(!t||"string"!=typeof t)return!1;var n=t.split(en),r=(0,Wt.Z)(n,1)[0],a=e._models.filter((function(e){return e.namespace===r}))[0];if(a&&a.effects&&a.effects[t])return!0;return!1}(n.type)?new Promise((function(e,r){t(i({__dva_resolve:e,__dva_reject:r},n))})):t(n)}}}}function yn(e,t){return function(n){var r=n.type;return Rt()(r,"dispatch: action should be a plain Object with type"),Bt()(0!==r.indexOf("".concat(t.namespace).concat(en)),"dispatch: ".concat(r," should not be prefixed with namespace ").concat(t.namespace)),e(i({},n,{type:cn(r,t)}))}}function gn(e,t,n,r){var a=[],o=[];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var u=(0,e[i])({dispatch:yn(n._store.dispatch,t),history:n._history},r);Kt(u)?a.push(u):o.push(i)}return{funcs:a,nonFuncs:o}}function bn(e,t){if(e[t]){var n=e[t],r=n.funcs,a=n.nonFuncs;Bt()(0===a.length,"[app.unmodel] subscription should return unlistener function, check these subscriptions ".concat(a.join(", ")));var o=!0,i=!1,u=void 0;try{for(var c,s=r[Symbol.iterator]();!(o=(c=s.next()).done);o=!0){(0,c.value)()}}catch(e){i=!0,u=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw u}}delete e[t]}}var _n=Qt,wn=Jt,xn={namespace:"@@dva",state:0,reducers:{UPDATE:function(e){return e+1}}};function kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initialReducer,r=t.setupApp,a=void 0===r?_n:r,o=new on;o.use(an(e));var u={_models:[nn(i({},xn))],_store:null,_plugin:o,use:o.use.bind(o),model:c,start:p};return u;function c(e){var t=nn(i({},e));return u._models.push(t),t}function s(t,n,r,a){a=c(a);var i=u._store;i.asyncReducers[a.namespace]=vn(a.reducers,a.state,o._handleActions),i.replaceReducer(t()),a.effects&&i.runSaga(u._getSaga(a.effects,a,n,o.get("onEffect"),e)),a.subscriptions&&(r[a.namespace]=gn(a.subscriptions,a,u,n))}function l(e,t,n,r){var a=u._store;delete a.asyncReducers[r],delete t[r],a.replaceReducer(e()),a.dispatch({type:"@@dva/UPDATE"}),a.dispatch({type:"".concat(r,"/@@CANCEL_EFFECTS")}),bn(n,r),u._models=u._models.filter((function(e){return e.namespace!==r}))}function f(e,t,n,r,a){var o=u._store,i=a.namespace,c=wn(u._models,(function(e){return e.namespace===i}));~c&&(o.dispatch({type:"".concat(i,"/@@CANCEL_EFFECTS")}),delete o.asyncReducers[i],delete t[i],bn(n,i),u._models.splice(c,1)),u.model(a),o.dispatch({type:"@@dva/UPDATE"})}function p(){var r=function(e,t){e&&("string"==typeof e&&(e=new Error(e)),e.preventDefault=function(){e._dontReject=!0},o.apply("onError",(function(e){throw new Error(e.stack||e)}))(e,u._store.dispatch,t))},c=It(),p=mn(u);u._getSaga=sn.bind(null);var d=[],v=i({},n),m=!0,y=!1,g=void 0;try{for(var b,_=u._models[Symbol.iterator]();!(m=(b=_.next()).done);m=!0){var w=b.value;v[w.namespace]=vn(w.reducers,w.state,o._handleActions),w.effects&&d.push(u._getSaga(w.effects,w,r,o.get("onEffect"),e))}}catch(e){y=!0,g=e}finally{try{m||null==_.return||_.return()}finally{if(y)throw g}}var x=o.get("onReducer"),k=o.get("extraReducers");Rt()(Object.keys(k).every((function(e){return!(e in v)})),"[app.start] extraReducers is conflict with other reducers, reducers list: ".concat(Object.keys(v).join(", "))),u._store=un({reducers:$(),initialState:e.initialState||{},plugin:o,createOpts:t,sagaMiddleware:c,promiseMiddleware:p});var E=u._store;E.runSaga=c.run,E.asyncReducers={};var S=o.get("onStateChange"),C=!0,P=!1,O=void 0;try{for(var j,A=function(){var e=j.value;E.subscribe((function(){e(E.getState())}))},T=S[Symbol.iterator]();!(C=(j=T.next()).done);C=!0)A()}catch(e){P=!0,O=e}finally{try{C||null==T.return||T.return()}finally{if(P)throw O}}d.forEach(c.run),a(u);var I={},M=!0,R=!1,L=void 0;try{for(var Z,D=this._models[Symbol.iterator]();!(M=(Z=D.next()).done);M=!0){var N=Z.value;N.subscriptions&&(I[N.namespace]=gn(N.subscriptions,N,u,r))}}catch(e){R=!0,L=e}finally{try{M||null==D.return||D.return()}finally{if(R)throw L}}function $(){return x(h(i({},v,k,u._store?u._store.asyncReducers:{})))}u.model=s.bind(u,$,r,I),u.unmodel=l.bind(u,$,v,I),u.replaceModel=f.bind(u,$,v,I,r)}}var En=n(37573),Sn=n(45097),Cn=n(4676);let Pn=function(e){e()};const On=()=>Pn,jn=Symbol.for("react-redux-context"),An="undefined"!=typeof globalThis?globalThis:{};function Tn(){var e;if(!a.createContext)return{};const t=null!=(e=An[jn])?e:An[jn]=new Map;let n=t.get(a.createContext);return n||(n=a.createContext(null),t.set(a.createContext,n)),n}const In=Tn();let Mn=null;var Rn=n(14809),Ln=n(74126),Zn=n(94266),Dn=n.n(Zn),Nn=n(23265);const $n=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Fn(e,t,n,r,{areStatesEqual:a,areOwnPropsEqual:o,areStatePropsEqual:i}){let u,c,s,l,f,p=!1;function d(p,d){const h=!o(d,c),v=!a(p,u,d,c);return u=p,c=d,h&&v?(s=e(u,c),t.dependsOnOwnProps&&(l=t(r,c)),f=n(s,l,c),f):h?(e.dependsOnOwnProps&&(s=e(u,c)),t.dependsOnOwnProps&&(l=t(r,c)),f=n(s,l,c),f):v?function(){const t=e(u,c),r=!i(t,s);return s=t,r&&(f=n(s,l,c)),f}():f}return function(a,o){return p?d(a,o):(u=a,c=o,s=e(u,c),l=t(r,c),f=n(s,l,c),p=!0,f)}}function Bn(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function qn(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function zn(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=qn(e);let a=r(t,n);return"function"==typeof a&&(r.mapToProps=a,r.dependsOnOwnProps=qn(a),a=r(t,n)),a},r}}function Hn(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function Un(e,t,n){return(0,Rn.Z)({},n,e,t)}const Wn={notify(){},get:()=>[]};function Vn(e,t){let n,r=Wn,a=0,o=!1;function i(){s.onStateChange&&s.onStateChange()}function u(){a++,n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){const e=On();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,a=n={callback:e,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){r&&null!==t&&(r=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}())}function c(){a--,n&&0===a&&(n(),n=void 0,r.clear(),r=Wn)}const s={addNestedSub:function(e){u();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,u())},tryUnsubscribe:function(){o&&(o=!1,c())},getListeners:()=>r};return s}const Gn=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?a.useLayoutEffect:a.useEffect;function Yn(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Kn(e,t){if(Yn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r{throw new Error("uSES not initialized!")};const Jn=[null,null];function er(e,t,n,r,a,o){e.current=r,n.current=!1,a.current&&(a.current=null,o())}function tr(e,t){return e===t}var nr=function(e,t,n,{pure:r,areStatesEqual:o=tr,areOwnPropsEqual:i=Kn,areStatePropsEqual:u=Kn,areMergedPropsEqual:c=Kn,forwardRef:s=!1,context:l=In}={}){const f=l,p=function(e){return e?"function"==typeof e?zn(e):Hn(e,"mapStateToProps"):Bn((()=>({})))}(e),d=function(e){return e&&"object"==typeof e?Bn((t=>function(e,t){const n={};for(const r in e){const a=e[r];"function"==typeof a&&(n[r]=(...e)=>t(a(...e)))}return n}(e,t))):e?"function"==typeof e?zn(e):Hn(e,"mapDispatchToProps"):Bn((e=>({dispatch:e})))}(t),h=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let a,o=!1;return function(t,n,i){const u=e(t,n,i);return o?r(u,a)||(a=u):(o=!0,a=u),a}}}(e):Hn(e,"mergeProps"):()=>Un}(n),v=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:v,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:o,areStatePropsEqual:u,areOwnPropsEqual:i,areMergedPropsEqual:c};function l(t){const[n,o,i]=a.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=(0,Ln.Z)(t,Xn);return[t.context,e,n]}),[t]),u=a.useMemo((()=>n&&n.Consumer&&(0,Nn.isContextConsumer)(a.createElement(n.Consumer,null))?n:f),[n,f]),c=a.useContext(u),s=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),l=Boolean(c)&&Boolean(c.store);const p=s?t.store:c.store,d=l?c.getServerState:p.getState,h=a.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:a}=t,o=(0,Ln.Z)(t,$n);return Fn(n(e,o),r(e,o),a(e,o),e,o)}(p.dispatch,r)),[p]),[m,y]=a.useMemo((()=>{if(!v)return Jn;const e=Vn(p,s?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,s,c]),g=a.useMemo((()=>s?c:(0,Rn.Z)({},c,{subscription:m})),[s,c,m]),b=a.useRef(),_=a.useRef(i),w=a.useRef(),x=a.useRef(!1),k=(a.useRef(!1),a.useRef(!1)),E=a.useRef();Gn((()=>(k.current=!0,()=>{k.current=!1})),[]);const S=a.useMemo((()=>()=>w.current&&i===_.current?w.current:h(p.getState(),i)),[p,i]),C=a.useMemo((()=>e=>m?function(e,t,n,r,a,o,i,u,c,s,l){if(!e)return()=>{};let f=!1,p=null;const d=()=>{if(f||!u.current)return;const e=t.getState();let n,d;try{n=r(e,a.current)}catch(e){d=e,p=e}d||(p=null),n===o.current?i.current||s():(o.current=n,c.current=n,i.current=!0,l())};return n.onStateChange=d,n.trySubscribe(),d(),()=>{if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(v,p,m,h,_,b,x,k,w,y,e):()=>{}),[m]);var P,O,j;let A;P=er,O=[_,b,x,i,w,y],Gn((()=>P(...O)),j);try{A=Qn(C,S,d?()=>h(d(),i):S)}catch(e){throw E.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${E.current.stack}\n\n`),e}Gn((()=>{E.current=void 0,w.current=void 0,b.current=A}));const T=a.useMemo((()=>a.createElement(e,(0,Rn.Z)({},A,{ref:o}))),[o,e,A]);return a.useMemo((()=>v?a.createElement(u.Provider,{value:g},T):T),[u,T,g])}const m=a.memo(l);if(m.WrappedComponent=e,m.displayName=l.displayName=n,s){const t=a.forwardRef((function(e,t){return a.createElement(m,(0,Rn.Z)({},e,{reactReduxForwardedRef:t}))}));return t.displayName=n,t.WrappedComponent=e,Dn()(t,e)}return Dn()(m,e)}};var rr=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",noopCheck:i="once"}){const u=a.useMemo((()=>{const t=Vn(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:i}}),[e,r,o,i]),c=a.useMemo((()=>e.getState()),[e]);Gn((()=>{const{subscription:t}=u;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),c!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[u,c]);const s=t||In;return a.createElement(s.Provider,{value:u},n)};var ar,or;ar=Sn.useSyncExternalStoreWithSelector,Mn=ar,(e=>{Qn=e})(En.useSyncExternalStore),or=Cn.unstable_batchedUpdates,Pn=or;n(37712)},34362:function(e,t,n){"use strict";n.d(t,{fi:function(){return l},m8:function(){return r}});var r,a=n(31468),o=n.n(a),i=n(82242),u=n.n(i),c=n(19340),s="/";function l(e){var t;return t="hash"===e.type?(0,c.q_)():"memory"===e.type?(0,c.PP)(e):(0,c.lX)(),e.basename&&(s=e.basename),r=u()(u()({},t),{},{push:function(e,n){t.push(f(e,t),n)},replace:function(e,n){t.replace(f(e,t),n)},get location(){return t.location},get action(){return t.action}}),t}function f(e,t){if("string"==typeof e)return"".concat(p(s)).concat(e);if("object"===o()(e)){var n=t.location.pathname;return u()(u()({},e),{},{pathname:e.pathname?"".concat(p(s)).concat(e.pathname):n})}throw new Error("Unexpected to: ".concat(e))}function p(e){return"/"===e.slice(-1)?e.slice(0,-1):e}},29181:function(e,t,n){"use strict";n.d(t,{gD:function(){return Ze},We:function(){return De}});var r={};n.r(r),n.d(r,{dva:function(){return f}});var a={};n.r(a),n.d(a,{innerProvider:function(){return le}});var o={};n.r(o),n.d(o,{rootContainer:function(){return Pe}});var i={};n.r(i),n.d(i,{dataflowProvider:function(){return je}});var u={};n.r(u),n.d(u,{i18nProvider:function(){return Re}});var c=n(6767),s=n(61186),l=n.n(s);l().locale("ZH-cn");var f={config:{onError:function(e){c.ZP.error(e.message,3)}}},p=n(59301),d=n(12708),h=n.n(d),v=n(12373),m=n.n(v),y=n(44520),g=n.n(y),b=n(19747),_=n.n(b);function w(){return w=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}var S={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},C={rel:["amphtml","canonical","alternate"]},P={type:["application/ld+json"]},O={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"]},j=Object.keys(S).map((function(e){return S[e]})),A={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},T=Object.keys(A).reduce((function(e,t){return e[A[t]]=t,e}),{}),I=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},M=function(e){var t=I(e,S.TITLE),n=I(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=I(e,"defaultTitle");return t||r||void 0},R=function(e){return I(e,"onChangeClientState")||function(){}},L=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return w({},e,t)}),{})},Z=function(e,t){return t.filter((function(e){return void 0!==e[S.BASE]})).map((function(e){return e[S.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a/g,">").replace(/"/g,""").replace(/'/g,"'")},H=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},U=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[A[n]||n]=e[n],t}),t)},W=function(e,t){return t.map((function(t,n){var r,a=((r={key:n})["data-rh"]=!0,r);return Object.keys(t).forEach((function(e){var n=A[e]||e;"innerHTML"===n||"cssText"===n?a.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:a[n]=t[e]})),p.createElement(e,a)}))},V=function(e,t,n){switch(e){case S.TITLE:return{toComponent:function(){return n=t.titleAttributes,(r={key:e=t.title})["data-rh"]=!0,a=U(n,r),[p.createElement(S.TITLE,a,e)];var e,n,r,a},toString:function(){return function(e,t,n,r){var a=H(n),o=$(t);return a?"<"+e+' data-rh="true" '+a+">"+z(o,r)+"":"<"+e+' data-rh="true">'+z(o,r)+""}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return U(t)},toString:function(){return H(t)}};default:return{toComponent:function(){return W(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+z(r[t],n)+'"';return e?e+" "+a:a}),""),o=r.innerHTML||r.cssText||"",i=-1===q.indexOf(e);return t+"<"+e+' data-rh="true" '+a+(i?"/>":">"+o+"")}),"")}(e,t,n)}}}},G=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,o=e.noscriptTags,i=e.styleTags,u=e.title,c=void 0===u?"":u,s=e.titleAttributes,l=e.linkTags,f=e.metaTags,p=e.scriptTags,d={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var h=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,a=F(e.metaTags,O),o=F(t,C),i=F(n,P);return{priorityMethods:{toComponent:function(){return[].concat(W(S.META,a.priority),W(S.LINK,o.priority),W(S.SCRIPT,i.priority))},toString:function(){return V(S.META,a.priority,r)+" "+V(S.LINK,o.priority,r)+" "+V(S.SCRIPT,i.priority,r)}},metaTags:a.default,linkTags:o.default,scriptTags:i.default}}(e);d=h.priorityMethods,l=h.linkTags,f=h.metaTags,p=h.scriptTags}return{priority:d,base:V(S.BASE,t,r),bodyAttributes:V("bodyAttributes",n,r),htmlAttributes:V("htmlAttributes",a,r),link:V(S.LINK,l,r),meta:V(S.META,f,r),noscript:V(S.NOSCRIPT,o,r),script:V(S.SCRIPT,p,r),style:V(S.STYLE,i,r),title:V(S.TITLE,{title:c,titleAttributes:s},r)}},Y=[],K=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?Y:n.instances},add:function(e){(n.canUseDOM?Y:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?Y:n.instances).indexOf(e);(n.canUseDOM?Y:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=G({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},X=p.createContext({}),Q=h().shape({setHelmet:h().func,helmetInstances:h().shape({get:h().func,add:h().func,remove:h().func})}),J="undefined"!=typeof document,ee=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new K(r.props.context,t.canUseDOM),r}return x(t,e),t.prototype.render=function(){return p.createElement(X.Provider,{value:this.helmetData.value},this.props.children)},t}(p.Component);ee.canUseDOM=J,ee.propTypes={context:h().shape({helmet:h().shape()}),children:h().node.isRequired},ee.defaultProps={context:{}},ee.displayName="HelmetProvider";var te=function(e,t){var n,r=document.head||document.querySelector(S.HEAD),a=r.querySelectorAll(e+"[data-rh]"),o=[].slice.call(a),i=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&("innerHTML"===a?r.innerHTML=t.innerHTML:"cssText"===a?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(a,void 0===t[a]?"":t[a]));r.setAttribute("data-rh","true"),o.some((function(e,t){return n=t,r.isEqualNode(e)}))?o.splice(n,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:i}},ne=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),a=r?r.split(","):[],o=[].concat(a),i=Object.keys(t),u=0;u=0;f-=1)n.removeAttribute(o[f]);a.length===o.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==i.join(",")&&n.setAttribute("data-rh",i.join(","))}},re=function(e,t){var n=e.baseTag,r=e.htmlAttributes,a=e.linkTags,o=e.metaTags,i=e.noscriptTags,u=e.onChangeClientState,c=e.scriptTags,s=e.styleTags,l=e.title,f=e.titleAttributes;ne(S.BODY,e.bodyAttributes),ne(S.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=$(e)),ne(S.TITLE,t)}(l,f);var p={baseTag:te(S.BASE,n),linkTags:te(S.LINK,a),metaTags:te(S.META,o),noscriptTags:te(S.NOSCRIPT,i),scriptTags:te(S.SCRIPT,c),styleTags:te(S.STYLE,s)},d={},h={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(d[e]=n),r.length&&(h[e]=p[e].oldTags)})),t&&t(),u(e,d,h)},ae=null,oe=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return w({},r,((t={})[n.type]=[].concat(r[n.type]||[],[w({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,o=e.newChildProps,i=e.nestedChildren;switch(r.type){case S.TITLE:return w({},a,((t={})[r.type]=i,t.titleAttributes=w({},o),t));case S.BODY:return w({},a,{bodyAttributes:w({},o)});case S.HTML:return w({},a,{htmlAttributes:w({},o)});default:return w({},a,((n={})[r.type]=w({},o),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=w({},t);return Object.keys(e).forEach((function(t){var r;n=w({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return g()(j.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+j.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),g()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``} ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,r={};return p.Children.forEach(e,(function(e){if(e&&e.props){var a=e.props,o=a.children,i=E(a,ie),u=Object.keys(i).reduce((function(e,t){return e[T[t]||t]=i[t],e}),{}),c=e.type;switch("symbol"==typeof c?c=c.toString():n.warnOnInvalidChildren(e,o),c){case S.FRAGMENT:t=n.mapChildrenToProps(o,t);break;case S.LINK:case S.META:case S.NOSCRIPT:case S.SCRIPT:case S.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:u,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:u,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(r,t)},n.render=function(){var e=this.props,t=e.children,n=E(e,ue),r=w({},n),a=n.helmetData;return t&&(r=this.mapChildrenToProps(t,r)),!a||a instanceof K||(a=new K(a.context,a.instances)),a?p.createElement(oe,w({},r,{context:a.value,helmetData:void 0})):p.createElement(X.Consumer,null,(function(e){return p.createElement(oe,w({},r,{context:e}))}))},t}(p.Component);ce.propTypes={base:h().object,bodyAttributes:h().object,children:h().oneOfType([h().arrayOf(h().node),h().node]),defaultTitle:h().string,defer:h().bool,encodeSpecialCharacters:h().bool,htmlAttributes:h().object,link:h().arrayOf(h().object),meta:h().arrayOf(h().object),noscript:h().arrayOf(h().object),onChangeClientState:h().func,script:h().arrayOf(h().object),style:h().arrayOf(h().object),title:h().string,titleAttributes:h().object,titleTemplate:h().string,prioritizeSeoTags:h().bool,helmetData:h().object},ce.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},ce.displayName="Helmet";var se={},le=function(e){return p.createElement(ee,{context:se},e)},fe=n(39647),pe=n.n(fe),de=n(79800),he=n.n(de),ve=n(82242),me=n.n(ve),ye=n(60840),ge=n(94706),be=n(66604),_e=n(18773),we=n(28440),xe=n.n(we),ke=n(37712),Ee=["appConfig"],Se=null;function Ce(e){var t=e.children,n=p.useState((function(){var e=(Se||(Se=De().applyPlugins({key:"antd",type:ge.ApplyPluginsType.modify,initialValue:me()({},{componentSize:"middle"})})),Se);e.appConfig;return pe()(e,Ee)})),r=he()(n,2),a=r[0],o=r[1];return a.prefixCls&&ye.ZP.config({prefixCls:a.prefixCls}),a.iconPrefixCls&&ye.ZP.config({iconPrefixCls:a.iconPrefixCls}),a.theme&&ye.ZP.config({theme:a.theme}),t=(0,ke.jsx)(ye.ZP,me()(me()({},a),{},{children:t})),t=(0,ke.jsx)(be.V9,{hashPriority:"high",transformers:[be.IJ],children:t}),t=(0,ke.jsx)(_e.C.Provider,{value:function(e){o((function(t){return xe()({},t,"function"==typeof e?e(t):e)}))},children:(0,ke.jsx)(_e.S.Provider,{value:a,children:t})})}function Pe(e){return(0,ke.jsx)(Ce,{children:e})}var Oe=n(46587);function je(e,t){return p.createElement(Oe.j,t,e)}n(65517);var Ae=n(24050),Te=n(27813);var Ie="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?p.useLayoutEffect:p.useEffect,Me=function(e){var t,n=(0,Ae.Kd)(),r=p.useState(n),a=he()(r,2),o=a[0],i=a[1],u=p.useState((function(){return(0,Ae.lw)(o,!0)})),c=he()(u,2),s=c[0],f=c[1],d=function(e){var t;null!==l()&&void 0!==l()&&l().locale&&l().locale((null===(t=Ae.H8[e])||void 0===t?void 0:t.momentLocale)||"en");i(e),f((0,Ae.lw)(e))};Ie((function(){return Ae.B.on(Ae.PZ,d),function(){Ae.B.off(Ae.PZ,d)}}),[]);var h=me()({},Te.Z),v=(0,Ae.Mg)();return(0,ke.jsx)(ye.ZP,{direction:v,locale:(null===(t=Ae.H8[o])||void 0===t?void 0:t.antd)||h,children:(0,ke.jsx)(Ae.eU,{value:s,children:e.children})})};function Re(e){return p.createElement(Me,null,e)}var Le=null;function Ze(){var e;return Le=ge.PluginManager.create({plugins:[{apply:(e=r,e.default?"function"==typeof e.default?e.default():e.default:e),path:void 0},{apply:a,path:void 0},{apply:o,path:void 0},{apply:i,path:void 0},{apply:u,path:void 0}],validKeys:["patchRoutes","patchClientRoutes","modifyContextOpts","modifyClientRenderOpts","rootContainer","innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","render","onRouteChange","antd","dva","locale","qiankun"]})}function De(){return Le}},94706:function(e,t,n){"use strict";n.d(t,{ApplyPluginsType:function(){return L},Link:function(){return b},Outlet:function(){return i.j3},PluginManager:function(){return Z},connect:function(){return a.$j},getDvaApp:function(){return o.Q},history:function(){return D.m8},useAppData:function(){return m.Ov},useLocation:function(){return i.TH},useOutletContext:function(){return i.bx},useParams:function(){return i.UO},useSearchParams:function(){return p}});var r=n(59301);n(18773);var a=n(49264),o=n(46587),i=(n(24050),n(85573),n(82242),n(39647),n(37712),n(35338)),u=n(19340);function c(){return c=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}const l=["onClick","reloadDocument","replace","state","target","to"];const f=(0,r.forwardRef)((function(e,t){let{onClick:n,reloadDocument:a,replace:o=!1,state:f,target:p,to:d}=e,h=s(e,l),v=(0,i.oQ)(d),m=function(e,t){let{target:n,replace:a,state:o}=void 0===t?{}:t,c=(0,i.s0)(),s=(0,i.TH)(),l=(0,i.WU)(e);return(0,r.useCallback)((t=>{if(!(0!==t.button||n&&"_self"!==n||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t))){t.preventDefault();let n=!!a||(0,u.Ep)(s)===(0,u.Ep)(l);c(e,{replace:n,state:o})}}),[s,c,l,a,o,n,e])}(d,{replace:o,state:f,target:p});return(0,r.createElement)("a",c({},h,{href:v,onClick:function(e){n&&n(e),e.defaultPrevented||a||m(e)},ref:t,target:p}))}));function p(e){let t=(0,r.useRef)(d(e)),n=(0,i.TH)(),a=(0,r.useMemo)((()=>{let e=d(n.search);for(let n of t.current.keys())e.has(n)||t.current.getAll(n).forEach((t=>{e.append(n,t)}));return e}),[n.search]),o=(0,i.s0)();return[a,(0,r.useCallback)(((e,t)=>{o("?"+d(e),t)}),[o])]}function d(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}var h=n(38329),v=n(38127),m=n(91231),y=n(87296);var g=["prefetch"];var b=r.forwardRef((function(e,t){var n,a=e.prefetch,o=(0,v.Z)(e,g),i="undefined"!=typeof window&&window.__umi_route_prefetch__||{defaultPrefetch:"none",defaultPrefetchTimeout:50},u=i.defaultPrefetch,c=i.defaultPrefetchTimeout,s=(!0===a?"intent":!1===a?"none":a)||u;if(!["intent","render","viewport","none"].includes(s))throw new Error("Invalid prefetch value ".concat(s," found in Link component"));var l=(0,m.Ov)(),p="string"==typeof e.to?e.to:null===(n=e.to)||void 0===n?void 0:n.pathname,d=r.useRef(!1),b=function(e){var t=r.useRef(null);return r.useEffect((function(){e&&("function"==typeof e?e(t.current):e.current=t.current)})),t}(t);return(0,r.useLayoutEffect)((function(){var e;"render"!==s||d.current||(null===(e=l.preloadRoute)||void 0===e||e.call(l,p),d.current=!0)}),[s,p]),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("function"!=typeof IntersectionObserver)return null;var o=r.useRef("function"==typeof IntersectionObserver),i=r.useRef(null);r.useEffect((function(){if(e.current&&o.current&&!a.disabled)return i.current=new IntersectionObserver((function(e){var n=(0,y.Z)(e,1)[0];t(n)}),n),i.current.observe(e.current),function(){var e;null===(e=i.current)||void 0===e||e.disconnect()}}),[t,n,a.disabled,e]),i.current}(b,(function(e){var t;null!=e&&e.isIntersecting&&(null===(t=l.preloadRoute)||void 0===t||t.call(l,p))}),{rootMargin:"100px"},{disabled:"viewport"!==s}),p?r.createElement(f,(0,h.Z)({onMouseEnter:function(t){if("intent"===s){var n=t.target||{};n.preloadTimeout||(n.preloadTimeout=setTimeout((function(){var e;n.preloadTimeout=null,null===(e=l.preloadRoute)||void 0===e||e.call(l,p)}),e.prefetchTimeout||c))}},onMouseLeave:function(e){if("intent"===s){var t=e.target||{};t.preloadTimeout&&(clearTimeout(t.preloadTimeout),t.preloadTimeout=null)}},ref:b},o),e.children):null})),_=n(8616);function w(){w=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),u=new T(r||[]);return a(i,"_invoke",{value:P(e,n,u)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",v={};function m(){}function y(){}function g(){}var b={};s(b,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==n&&r.call(k,i)&&(b=k);var E=g.prototype=m.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(a,o,i,u){var c=f(e[a],e,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==(0,_.Z)(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,i,u)}),(function(e){n("throw",e,i,u)})):t.resolve(l).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function P(t,n,r){var a=p;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var u=r.delegate;if(u){var c=O(u,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=d;var s=f(t,n,r);if("normal"===s.type){if(a=r.done?h:"suspendedYield",s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=h,r.method="throw",r.arg=s.arg)}}}function O(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;A(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}var x=n(63579);function k(e,t,n,r,a,o,i){try{var u=e[o](i),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,a)}function E(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){k(o,r,a,i,u,"next",e)}function u(e){k(o,r,a,i,u,"throw",e)}i(void 0)}))}}var S=n(99227);function C(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,S.Z)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}var P=n(73825);var O=n(66160);function j(e){return(0,P.Z)(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,S.Z)(e)||(0,O.Z)()}var A=n(89878);function T(e,t){for(var n=0;n-1,"register failed, invalid key ".concat(n," ").concat(e.path?"from plugin ".concat(e.path):"",".")),t.hooks[n]=(t.hooks[n]||[]).concat(e.apply[n])}))}},{key:"getHooks",value:function(e){var t=j(e.split(".")),n=t[0],r=t.slice(1),a=this.hooks[n]||[];return r.length&&(a=a.map((function(e){try{var t,n=e,a=C(r);try{for(a.s();!(t=a.n()).done;)n=n[t.value]}catch(e){a.e(e)}finally{a.f()}return n}catch(e){return null}})).filter(Boolean)),a}},{key:"applyPlugins",value:function(e){var t=e.key,n=e.type,r=e.initialValue,a=e.args,o=e.async,i=this.getHooks(t)||[];switch(a&&M("object"===(0,_.Z)(a),"applyPlugins failed, args must be plain object."),o&&M(n===L.modify||n===L.event,"async only works with modify and event type."),n){case L.modify:return o?i.reduce(function(){var e=E(w().mark((function e(n,r){var o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(M("function"==typeof r||"object"===(0,_.Z)(r)||R(r),"applyPlugins failed, all hooks for key ".concat(t," must be function, plain object or Promise.")),!R(n)){e.next=5;break}return e.next=4,n;case 4:n=e.sent;case 5:if("function"!=typeof r){e.next=16;break}if(!R(o=r(n,a))){e.next=13;break}return e.next=10,o;case 10:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",o);case 14:e.next=21;break;case 16:if(!R(r)){e.next=20;break}return e.next=19,r;case 19:r=e.sent;case 20:return e.abrupt("return",(0,x.Z)((0,x.Z)({},n),r));case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),R(r)?r:Promise.resolve(r)):i.reduce((function(e,n){return M("function"==typeof n||"object"===(0,_.Z)(n),"applyPlugins failed, all hooks for key ".concat(t," must be function or plain object.")),"function"==typeof n?n(e,a):(0,x.Z)((0,x.Z)({},e),n)}),r);case L.event:return E(w().mark((function e(){var n,r,u,c;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=C(i),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=12;break}if(M("function"==typeof(u=r.value),"applyPlugins failed, all hooks for key ".concat(t," must be function.")),c=u(a),!o||!R(c)){e.next=10;break}return e.next=10,c;case 10:e.next=3;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(1),n.e(e.t0);case 17:return e.prev=17,n.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[1,14,17,20]])})))();case L.compose:return function(){return function(e){var t=e.fns,n=e.args;if(1===t.length)return t[0];var r=t.pop();return t.reduce((function(e,t){return function(){return t(e,n)}}),r)}({fns:i.concat(r),args:a})()}}}}],r=[{key:"create",value:function(t){var n=new e({validKeys:t.validKeys});return t.plugins.forEach((function(e){n.register(e)})),n}}],n&&T(t.prototype,n),r&&T(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),D=n(34362);n(31468)},18773:function(e,t,n){"use strict";n.d(t,{C:function(){return o},S:function(){return a}});var r=n(59301),a=r.createContext(null),o=r.createContext((function(){console.error("The 'useAntdConfigSetter()' method depends on the antd 'ConfigProvider', requires one of 'antd.configProvider' / 'antd.dark' / 'antd.compact' to be enabled.")}))},46587:function(e,t,n){"use strict";n.d(t,{j:function(){return Xl},Q:function(){return Ql}});var r=n(37205),a=n.n(r),o=n(82242),i=n.n(o),u=n(49264),c=n(89880),s=n.n(c),l=n(59301),f=n(94706),p=n(7557),d=n.n(p),h=n(41498),v=n.n(h),m=n(79723);function y(e){return g.apply(this,arguments)}function g(){return(g=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.login,"/avatar.json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return _.apply(this,arguments)}function _(){return(_=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.login,".json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e){return x.apply(this,arguments)}function x(){return(x=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/add_school_applies.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e){return E.apply(this,arguments)}function E(){return(E=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/schools/limit_list.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(e){return C.apply(this,arguments)}function C(){return(C=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/schools/".concat(t.id,"/departments/for_option.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function P(e){return O.apply(this,arguments)}function O(){return(O=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/add_department_applies.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return A.apply(this,arguments)}function A(){return(A=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.id,".json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function T(e){return I.apply(this,arguments)}function I(){return(I=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.login,"/authentication_apply.json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(e){return R.apply(this,arguments)}function R(){return(R=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.login,"/professional_auth_apply.json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function L(e){return Z.apply(this,arguments)}function Z(){return(Z=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.id,"/professional_auth_apply.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(e){return N.apply(this,arguments)}function N(){return(N=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.id,"/authentication_apply.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $(e){return F.apply(this,arguments)}function F(){return(F=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function B(e){return q.apply(this,arguments)}function q(){return(q=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.login,"/phone_bind.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function z(e){return H.apply(this,arguments)}function H(){return(H=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.login,"/email_bind.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function U(e){return W.apply(this,arguments)}function W(){return(W=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.login,"/password.json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function V(e){return G.apply(this,arguments)}function G(){return(G=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/accounts/".concat(t.basicInfoId,"/open_users/").concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Y={namespace:"account",state:{basicInfo:void 0,actionTabs:{key:"",params:{}}},effects:{updateAvatar:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(y,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},appplySchool:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(w,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getSchoolOption:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(k,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getDepartmentOption:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(S,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},appplyDepartment:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(P,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updateAccount:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(j,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},cancelRealNameAuth:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(T,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},cancelProfessionalAuth:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(M,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},applyProfessionalAuth:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(L,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},applyRealNameAuth:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(D,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getCode:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r($,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},bindPhone:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(B,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},bindEmail:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(z,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updatePassword:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(U,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},unbindAccount:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(V,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getBasicInfo:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(b,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{basicInfo:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},K=Y;function X(e){return Q.apply(this,arguments)}function Q(){return(Q=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/inform_up.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function J(e){return ee.apply(this,arguments)}function ee(){return(ee=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/inform_down.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var te={namespace:"announcement",state:{name:"普通试卷,随机试卷详情页面",loading:!0,actionTabs:{}},effects:{informDown:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(J,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},informUp:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(X,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},ne=te,re=n(78318),ae={namespace:"attachment",state:{name:"资源",loading:!0,detail:{},actionTabs:{}},effects:{allAttachment:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(re.SV,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{allList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},mineAttachment:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(re.zI,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{mineList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},fileImport:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(re.tO,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(re.Nm,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},updateVisits:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(re.H,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},oe=ae;function ie(e){return ue.apply(this,arguments)}function ue(){return(ue=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/board_list.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ce(e){return se.apply(this,arguments)}function se(){return(se=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/messages/".concat(t.boardId,".json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function le(e){return fe.apply(this,arguments)}function fe(){return(fe=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/messages/".concat(t.id,"/sticky_top.json"),{method:"put",body:{course_id:t.coursesId}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pe(e){return de.apply(this,arguments)}function de(){return(de=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/messages/".concat(t.id,"/sticky_top.json"),{method:"put",body:{course_id:t.coursesId}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function he(e){return ve.apply(this,arguments)}function ve(){return(ve=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/messages/".concat(t.boardId,"/reply_list.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function me(e){return ye.apply(this,arguments)}function ye(){return(ye=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/messages/".concat(t.boardId,"/reply.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ge(e){return be.apply(this,arguments)}function be(){return(be=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/praise_tread/like.json",{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _e(e){return we.apply(this,arguments)}function we(){return(we=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xe(e){return ke.apply(this,arguments)}function ke(){return(ke=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/commons/delete.json",{method:"delete",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ee={namespace:"boards",state:{name:"讨论",loading:!0,actionTabs:{},boardsDetail:{},boardsCategoryList:{}},effects:{getBoardsCategoryList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ie,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{boardsCategoryList:i()({},t.data)}});case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e)}))()},getBoardsDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ce,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{boardsDetail:i()({},t.data)}});case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e)}))()},setTopping:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(le,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},escTopping:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(pe,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getReplyList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(he,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{replyList:i()({},t.data)}});case 5:case"end":return e.stop()}}),e)}))()},createReply:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(me,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},replyLike:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ge,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},replyUnLike:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(_e,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteReply:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(xe,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},Se=Ee,Ce=n(85573),Pe=n.n(Ce),Oe=n(26613),je={namespace:"exercise",state:{name:"普通试卷,随机试卷详情页面",loading:!0,exerciseList:{},userExerciseList:{},statisticsList:{},exerciseCoursesList:{},brankList:{},editData:{},endGroups:{},actionTabs:{removeEventListenerExitScreen:!1},publishGroups:{},commonHeader:{},reviewExercise:{},reviewGroupExercise:{},workSetting:{},editRandomExercises:{},redoModal:{},exerciseUserInfo:{},examinationIntelligentSettings:{},exerciseExportHeadData:{},codeReviewDetail:{},exerciseIdentityPhotos:{},checkDomain:"kepukehuan.educoder.net"===window.document.domain||"test-kepukehuan.educoder.net"===window.document.domain,order_type:"",order:"",updateIndex:null,saveExerciseDownUsers:null,NormalResult:{},course_groups:[],SumupDetail:{},ScoreRangesData:{}},effects:{getScoreRangesData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.$Q,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{ScoreRangesData:null==t?void 0:t.data}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getQuestionResult:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe._U,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{NormalResult:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getUserExercise:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.xA,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{userExerciseList:i()({},(null==t?void 0:t.data)||{})}});case 5:return console.log("getUserExercise-res:",t),e.abrupt("return",null==t?void 0:t.data);case 7:case"end":return e.stop()}}),e)}))()},getExerciseIdentityPhotos:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.J,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{exerciseIdentityPhotos:i()({},(null==t?void 0:t.data)||{})}});case 5:return e.abrupt("return",null==t?void 0:t.data);case 6:case"end":return e.stop()}}),e)}))()},getExerciseExportHeadData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.iw,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{exerciseExportHeadData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getExerciseUserInfo:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.Ty,n);case 2:if(0!==(null==(t=e.sent)?void 0:t.status)){e.next=6;break}return e.next=6,a({type:"save",payload:i()({},{exerciseUserInfo:i()({},t.data)})});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getExaminationIntelligentSettings:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.sA,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{examinationIntelligentSettings:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getRandomEditExercises:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.yu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editRandomExercises:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getExerciseList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.G$,n);case 2:if(null!=(t=e.sent)&&t.total_exercise_users)try{localStorage.total_exercise_users=JSON.stringify(t.total_exercise_users)}catch(e){}return e.next=6,a({type:"save",payload:{exerciseList:i()({},t)}});case 6:return e.next=8,a({type:"save",payload:{order_type:n.order_type,order:n.order}});case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e)}))()},getExerciseStatistics:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe._u,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{statisticsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getBrankList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.n$,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{brankList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},saveBanks:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.lf,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getExerciseCourses:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.N3,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{exerciseCoursesList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},addExercise:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.uR,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},editExercise:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.qf,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getTagDiscipline:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.YY,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{tagDisciplineData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},editExerciseQuestion:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.Di,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},addExerciseQuestion:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.MK,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},exeriseMoveUpDown:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.GK,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getEndGroups:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.KE,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{endGroups:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getPublishGroups:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.ux,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{publishGroups:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCommonHeader:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.UK,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{commonHeader:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setCommonHeader:function(e,t){var n=e.payload,r=(e.callback,t.call,t.put),a=t.select;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((function(e){var t;return(null==e||null===(t=e.exercise)||void 0===t?void 0:t.commonHeader)||{}}));case 2:return t=e.sent,e.next=5,r({type:"save",payload:{commonHeader:i()(i()({},t),n)}});case 5:case"end":return e.stop()}}),e)}))()},getReviewExercise:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.BJ,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{reviewExercise:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},postReviewExercise:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.pu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{reviewExercise:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCentralizeReviewExercise:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.X4,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{reviewExercise:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},clearData:function(e,t){var n=e.payload,r=(e.callback,t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:Pe()({},n.key,{})});case 2:case"end":return e.stop()}}),e)}))()},getReviewGroupExercise:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.W4,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{reviewGroupExercise:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getWorkSetting:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.Ul,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{workSetting:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getRedoModal:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.tX,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{redoModal:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getRedoListModal:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.s,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{redoModal:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCodeReviewDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.Xn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{codeReviewDetail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},changeScore:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.gG,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},setUpdateIndex:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{updateIndex:"clear"===n?null:Math.random()}});case 2:case"end":return e.stop()}}),e)}))()},setSaveExerciseDownUsers:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{saveExerciseDownUsers:n}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},Ae=je;function Te(e){return Ie.apply(this,arguments)}function Ie(){return(Ie=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/graduation_tasks/".concat(t.categoryId,".json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Me(e){return Re.apply(this,arguments)}function Re(){return(Re=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/graduation_tasks/".concat(t.categoryId,"/tasks_list.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Le(e){return Ze.apply(this,arguments)}function Ze(){return(Ze=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_topics/").concat(t.categoryId,"/show_detail.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function De(e){return Ne.apply(this,arguments)}function Ne(){return(Ne=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_topics/").concat(t.categoryId,".json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $e(e){return Fe.apply(this,arguments)}function Fe(){return(Fe=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_topics/").concat(t.categoryId,"/refuse_student_topic.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Be(e){return qe.apply(this,arguments)}function qe(){return(qe=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_topics/").concat(t.categoryId,"/accept_student_topic.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ze(e){return He.apply(this,arguments)}function He(){return(He=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/show_comment.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ue(e){return We.apply(this,arguments)}function We(){return(We=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/reply_message.json",{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ve(e){return Ge.apply(this,arguments)}function Ge(){return(Ge=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/praise_tread/like.json",{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ye(e){return Ke.apply(this,arguments)}function Ke(){return(Ke=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xe(e){return Qe.apply(this,arguments)}function Qe(){return(Qe=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/commons/delete.json",{method:"delete",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Je(e){return et.apply(this,arguments)}function et(){return(et=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_topics/new.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function tt(e){return nt.apply(this,arguments)}function nt(){return(nt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_topics/").concat(t.categoryId,"/edit.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function rt(e){return at.apply(this,arguments)}function at(){return(at=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_topics"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ot(e){return it.apply(this,arguments)}function it(){return(it=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_topics/").concat(t.categoryId),{method:"put",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ut(e){return ct.apply(this,arguments)}function ct(){return(ct=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_tasks"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function st(e){return lt.apply(this,arguments)}function lt(){return(lt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/graduation_tasks/".concat(t.categoryId,".json"),{method:"put",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ft(e){return pt.apply(this,arguments)}function pt(){return(pt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/graduation_tasks/".concat(t.categoryId,"/edit.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var dt={namespace:"graduation",state:{name:"毕业设计",loading:!0,actionTabs:{},detailList:{},detailTaskList:{},replyList:{},detail:{},addTopicData:{},editTopicData:{},editTasksData:{}},effects:{getTopisDetailList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(De,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getTasksListDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Me,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailTaskList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getTopisDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Le,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getTasksDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Te,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{tasksDetail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},refuseTopic:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r($e,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},agreeTopic:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Be,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getReplyList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ze,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{replyList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},createReply:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ue,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},replyLike:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ve,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},replyUnLike:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ye,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteReply:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Xe,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},addTopicDefaultData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Je,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{addTopicData:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},editTopicDefaultData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(tt,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editTopicData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},editTasksDefaultData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ft,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editTasksData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},addTopic:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(rt,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},editTopic:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ot,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},addTasks:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ut,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},editTasks:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(st,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},ht=dt,vt=n(89392);function mt(e){return yt.apply(this,arguments)}function yt(){return(yt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/works_list.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gt(e){return bt.apply(this,arguments)}function bt(){return(bt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/shixun_homeworks/".concat(t.categoryId,"/student_works.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _t(e){return wt.apply(this,arguments)}function wt(){return(wt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/shixun_homeworks/".concat(t.categoryId,"/header_info.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xt(e){return kt.apply(this,arguments)}function kt(){return(kt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,".json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Et(e){return St.apply(this,arguments)}function St(){return(St=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/code_review_results.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ct(e){return Pt.apply(this,arguments)}function Pt(){return(Pt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/code_review_detail.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ot(e){return jt.apply(this,arguments)}function jt(){return(jt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/settings.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function At(e){return Tt.apply(this,arguments)}function Tt(){return(Tt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/update_settings.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function It(e){return Mt.apply(this,arguments)}function Mt(){return(Mt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/group_list.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Rt(e){return Lt.apply(this,arguments)}function Lt(){return(Lt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/works_list.xlsx"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Zt(e){return Dt.apply(this,arguments)}function Dt(){return(Dt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.coursesId,"/reference_answer.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Nt(e){return $t.apply(this,arguments)}function $t(){return($t=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/publish_groups.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ft(e){return Bt.apply(this,arguments)}function Bt(){return(Bt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/end_groups.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qt(e){return zt.apply(this,arguments)}function zt(){return(zt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/question_banks/bank_list.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ht(e){return Ut.apply(this,arguments)}function Ut(){return(Ut=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/question_banks/save_banks.json",{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wt(e){return Vt.apply(this,arguments)}function Vt(){return(Vt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/student_works/".concat(t.homeworkId,"/shixun_work_report.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Gt(e){return Yt.apply(this,arguments)}function Yt(){return(Yt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/homework_commons/user_hack_detail.json"),{method:"get",params:i()(i()({},t),{},{id:t.categoryId})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Kt(e){return Xt.apply(this,arguments)}function Xt(){return(Xt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/student_works/".concat(t.categoryId,"/adjust_review_score.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Qt(e){return Jt.apply(this,arguments)}function Jt(){return(Jt=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/show_comment.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function en(e){return tn.apply(this,arguments)}function tn(){return(tn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/reply_message.json",{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function nn(e){return rn.apply(this,arguments)}function rn(){return(rn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/praise_tread/like.json",{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function an(e){return on.apply(this,arguments)}function on(){return(on=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function un(e){return cn.apply(this,arguments)}function cn(){return(cn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/commons/delete.json",{method:"delete",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function sn(e){return ln.apply(this,arguments)}function ln(){return(ln=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/update_explanation.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fn(e){return pn.apply(this,arguments)}function pn(){return(pn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.commonHomeworkId,"/student_works/new.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dn(e){return hn.apply(this,arguments)}function hn(){return(hn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/student_works/".concat(t.homeworkId,"/edit.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vn(e){return mn.apply(this,arguments)}function mn(){return(mn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/projects/search.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function yn(e){return gn.apply(this,arguments)}function gn(){return(gn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.commonHomeworkId,"/student_works/search_member_list.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function bn(e){return _n.apply(this,arguments)}function _n(){return(_n=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/homework_commons/new.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wn(e){return xn.apply(this,arguments)}function xn(){return(xn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/edit.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kn(e){return En.apply(this,arguments)}function En(){return(En=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_banks/".concat(t.id,".json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Sn(e){return Cn.apply(this,arguments)}function Cn(){return(Cn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/student_works/".concat(t.userId,".json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pn(e){return On.apply(this,arguments)}function On(){return(On=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/student_works/".concat(t.userId,"/supply_attachments.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function jn(e){return An.apply(this,arguments)}function An(){return(An=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/student_works/".concat(t.userId,"/comment_list.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Tn(e){return In.apply(this,arguments)}function In(){return(In=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/homework_commons/".concat(t.categoryId,"/all_student_works.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mn(e){return Rn.apply(this,arguments)}function Rn(){return(Rn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/homework_commons/file_repeat_result.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ln(e){return Zn.apply(this,arguments)}function Zn(){return(Zn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.course_id,"/homework_commons/file_repeat_detail.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Dn={namespace:"shixunHomeworks",state:{name:"",loading:!0,workList:{},shixunWorkList:{},headerInfo:{},shixunWorkReport:{},codeReview:{},codeReviewDetail:{},workSetting:{},changeData:{},codeReviewCourse:{},referenceAnswer:{},publishGroups:{},endGroups:{},brankList:{},replyList:{},workDetail:{},commonHomeWorkAddDefaultData:{},studentWorkAddDefaultData:{},studentWorkEditDefaultData:{},commonHomeWorkEditDefaultData:{},studentWorkDetail:{},studentWorkSupplyDetail:{},studentWorkCommon:{},allStudentWorks:{},searchMemberList:{},searchProjectList:{},actionTabs:{key:""},listParams:{order:"all",page:1,limit:16,search:""},homeworkAssistantPermissions:{},shixunAssistantPermission:{},courseAssistantPermission:{}},effects:{getWorkList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(mt,n);case 2:t=e.sent;try{sessionStorage.all_student_works=JSON.stringify(t.all_student_works),sessionStorage.all_student_works_params=JSON.stringify(n),localStorage.setItem("all_student_works_param",JSON.stringify(n))}catch(e){}return e.next=6,a({type:"save",payload:{workList:i()({},t)}});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getShixunWorkHeadInfo:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(_t,n);case 2:return t=e.sent,e.next=6,a({type:"save",payload:{headerInfo:null==t?void 0:t.data}});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getShixunWorkList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(gt,n);case 2:t=e.sent;try{sessionStorage.all_student_works=JSON.stringify(t.all_student_works),sessionStorage.all_student_works_params=JSON.stringify(n),localStorage.setItem("all_student_works_param",JSON.stringify(n))}catch(e){}return e.next=6,a({type:"save",payload:{shixunWorkList:null==t?void 0:t.data,homeworkAssistantPermissions:t.homework_assistant_permissions,shixunAssistantPermission:t.shixun_assistant_permission,courseAssistantPermission:t.course_assistant_permission}});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getCodeReview:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Et,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{codeReview:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCodeReviewDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ct,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{codeReviewDetail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getWorkDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(xt,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{workDetail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},updateWork:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(sn,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getShixunWorkReport:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Wt,n);case 2:t=e.sent;try{t.all_student_works=JSON.parse(sessionStorage.all_student_works||"[]")}catch(e){}return e.next=6,a({type:"save",payload:{shixunWorkReport:i()({},t)}});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getShixunWorkReports:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Gt,n);case 2:t=e.sent;try{t.all_student_works=JSON.parse(sessionStorage.all_student_works||"[]")}catch(e){}return e.next=6,a({type:"save",payload:{shixunWorkReport:i()({},t)}});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getWorkSetting:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(t,o){var u,c;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ot,n);case 2:return null==(u=e.sent)||null===(t=u.group_settings)||void 0===t||t.map((function(e){e.value=e.group_name,e.id=e.group_id,e.group_id=[e.group_id]})),null==u||null===(o=u.allow_late_settings)||void 0===o||o.map((function(e){e.value=e.group_name,e.id=e.group_id,e.group_id=[e.group_id]})),c={shixun_evaluation:u.shixun_evaluation,challenge_settings:u.challenge_settings},e.next=8,a({type:"save",payload:{workSetting:i()({},u),changeData:(0,vt.cloneDeep)(c)}});case 8:return e.abrupt("return",u);case 9:case"end":return e.stop()}}),e)}))()},updateSetting:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(At,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getCodeReviewCourse:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(It,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{codeReviewCourse:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},exportShixunWorks:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Rt,n);case 2:e.sent;case 3:case"end":return e.stop()}}),e)}))()},getReferenceAnswer:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Zt,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{referenceAnswer:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getPublishGroups:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Nt,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{publishGroups:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getEndGroups:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ft,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{endGroups:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getBrankList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(qt,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{brankList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},changeScore:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Kt,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},saveBanks:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ht,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},addCommonHomeWorkDefaultData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(bn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{commonHomeWorkAddDefaultData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getSearchMemberList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(yn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{searchMemberList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getProjectList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(vn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{searchProjectList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},addStudentWorkDefaultData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{studentWorkAddDefaultData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},editStudentWorkDefaultData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(dn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{studentWorkEditDefaultData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},editCommonHomeWorkDefaultData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(wn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{commonHomeWorkEditDefaultData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},editCommonHomeWorkDefaultBankData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(kn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{commonHomeWorkEditDefaultData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getReplyList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qt,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{replyList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getStudentWorkDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Sn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{studentWorkDetail:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getStudentWorkSupplyDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Pn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{studentWorkSupplyDetail:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getStudentWorkCommon:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{studentWorkCommon:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getAllStudentWorks:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Tn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{allStudentWorks:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getFileRepeatResult:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Mn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{codeReview:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getFileRepeatDetail:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ln,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{codeReviewDetail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},createReply:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(en,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},replyLike:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(nn,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},replyUnLike:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(an,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteReply:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(un,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Nn=Dn,$n=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/course_statistics/course_use_infos.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Fn=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/course_statistics/rank_list.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Bn=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/course_statistics/statistics_body.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),qn=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/course_statistics/statistics_header.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function zn(e){return Hn.apply(this,arguments)}function Hn(){return(Hn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.course_id,"/set_assistant_permissions.json"),{method:"post",body:i()({},t.permissions)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Un(e){return Wn.apply(this,arguments)}function Wn(){return(Wn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.course_id,"/assistant_permissions.json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vn(e){return Gn.apply(this,arguments)}function Gn(){return(Gn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(null==t?void 0:t.course_id,"/smart_plans/").concat(null==t?void 0:t.id,".json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Yn(e){return Kn.apply(this,arguments)}function Kn(){return(Kn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(null==t?void 0:t.course_id,"/smart_plans/").concat(null==t?void 0:t.id,"/item_banks.json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xn(e){return Qn.apply(this,arguments)}function Qn(){return(Qn=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses.json",{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Jn(e){return er.apply(this,arguments)}function er(){return(er=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/intelligent_recommendations/according_course_recommend_shixuns.json",{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function tr(e){return nr.apply(this,arguments)}function nr(){return(nr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/top_banner.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function rr(e){return ar.apply(this,arguments)}function ar(){return(ar=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id||t.coursesId,"/left_banner.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function or(e){return ir.apply(this,arguments)}function ir(){return(ir=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/homework_commons.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ur(e){return cr.apply(this,arguments)}function cr(){return(cr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/homework_commons/list.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function sr(e){return lr.apply(this,arguments)}function lr(){return(lr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/graduation_topics.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fr(e){return pr.apply(this,arguments)}function pr(){return(pr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/graduation_tasks.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dr(e){return hr.apply(this,arguments)}function hr(){return(hr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/v2/courses/".concat(t.id,"/exercises.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vr(e){return mr.apply(this,arguments)}function mr(){return(mr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/polls.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function yr(e){return gr.apply(this,arguments)}function gr(){return(gr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/homework_commons.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function br(e){return _r.apply(this,arguments)}function _r(){return(_r=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/course_groups.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wr(e){return xr.apply(this,arguments)}function xr(){return(xr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/attendances.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kr(e){return Er.apply(this,arguments)}function Er(){return(Er=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/weapps/courses/".concat(t.coursesId,"/attendances.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Sr(e){return Cr.apply(this,arguments)}function Cr(){return(Cr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/attendances/".concat(t.id,"/edit.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pr(e){return Or.apply(this,arguments)}function Or(){return(Or=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/informs.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function jr(e){return Ar.apply(this,arguments)}function Ar(){return(Ar=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/files.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Tr(e){return Ir.apply(this,arguments)}function Ir(){return(Ir=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/course_videos.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mr(e){return Rr.apply(this,arguments)}function Rr(){return(Rr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/live_links.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Lr(e){return Zr.apply(this,arguments)}function Zr(){return(Zr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/mine.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Dr(e){return Nr.apply(this,arguments)}function Nr(){return(Nr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/boards/".concat(t.categoryId,"/messages.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $r(e){return Fr.apply(this,arguments)}function Fr(){return(Fr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/course_groups.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Br(e){return qr.apply(this,arguments)}function qr(){return(qr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/students.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function zr(e){return Hr.apply(this,arguments)}function Hr(){return(Hr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/statistics.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ur(e){return Wr.apply(this,arguments)}function Wr(){return(Wr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/work_score.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vr(e){return Gr.apply(this,arguments)}function Gr(){return(Gr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/act_score.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Yr(e){return Kr.apply(this,arguments)}function Kr(){return(Kr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/shixun_lists.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xr(e){return Qr.apply(this,arguments)}function Qr(){return(Qr=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(null==t?void 0:t.course_id,"/homework_commons/impersonal_list.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Jr(e){return ea.apply(this,arguments)}function ea(){return(ea=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/homework_commons/create_shixun_homework.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ta(e){return na.apply(this,arguments)}function na(){return(na=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(null==t?void 0:t.course_id,"/homework_commons/create_collaborators.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ra(e){return aa.apply(this,arguments)}function aa(){return(aa=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/subject_lists.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oa(e){return ia.apply(this,arguments)}function ia(){return(ia=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/homework_commons/create_subject_homework.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ua(e){return ca.apply(this,arguments)}function ca(){return(ca=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/schools/school_list.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function sa(e){return la.apply(this,arguments)}function la(){return(la=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/search_course_list.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fa(e){return pa.apply(this,arguments)}function pa(){return(pa=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function da(e){return ha.apply(this,arguments)}function ha(){return(ha=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/add_school_applies.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function va(e){return ma.apply(this,arguments)}function ma(){return(ma=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/member_search.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ya(e){return ga.apply(this,arguments)}function ga(){return(ga=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.courseId,"/tasks_list.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ba(e){return _a.apply(this,arguments)}function _a(){return(_a=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.courseId,"/update_task_position.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wa(e){return xa.apply(this,arguments)}function xa(){return(xa=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/all_course_groups.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ka(e){return Ea.apply(this,arguments)}function Ea(){return(Ea=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/join_course_group.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Sa(e){return Ca.apply(this,arguments)}function Ca(){return(Ca=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.id,"/courseware.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pa(e){return Oa.apply(this,arguments)}function Oa(){return(Oa=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.course_id,"/course_ai_info.json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ja(e){return Aa.apply(this,arguments)}function Aa(){return(Aa=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.course_id,"/set_open_ai.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ta(e){return Ia.apply(this,arguments)}function Ia(){return(Ia=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(null==t?void 0:t.id,"/smart_plans.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ma=n(13277),Ra={namespace:"classroomList",state:{name:"",loading:!0,detailTopBanner:{copy_completed:!0},detailLeftMenus:{},detailLeftMenusNames:{},detailShixunsList:{},detailGraduationTopicsList:{},detailGraduationTaskList:{},detailExerciseList:{},detailPollsList:{},detailSmartPlanList:{},detailCommonHomeworksList:{},detailAttendancesList:{},detailAttendancesDetail:{},detailAnnouncementList:{},detailAttachmentList:{},detailCourseware:{},courseMine:{},detailVideoList:{},detailLiveVideoList:{},detailBoardList:{},courseGroups:{},allCourseGroups:{},detailCourseGroupsList:{},detailCoursStudentsList:{},detailCourseStatisticsList:{},detailAttendancesStatistic:{},detailCourseWorkscore:{},detailCourseActscore:{},coursesLists:{},shixunLists:{},schoolList:{},taskList:[],searchMemberList:{},actionTabs:{key:""},listParams:{order:"all",page:1,limit:16,search:""},shareStatus:!1,AssistantObject:{},SmartPlanInfo:{},SmartPlanItemBanks:{},updateData:"",courseAiData:{have_tiding:!1,is_open_ai:!1,name:""}},effects:{setCourseAiState:function(e,t){var n=e.payload,r=t.call,a=t.put;t.select;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ja,n);case 2:return e.next=4,a({type:"getCourseAiData",payload:n});case 4:case"end":return e.stop()}}),e)}))()},getCourseAiData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Pa,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{courseAiData:t.data}});case 5:case"end":return e.stop()}}),e)}))()},setAssistantPermissions:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(zn,n);case 2:case"end":return e.stop()}}),e)}))()},getAssistantPermissions:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,Ma.eB)()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,r(Un,n);case 4:return t=e.sent,e.next=7,a({type:"save",payload:{AssistantObject:t.permissions}});case 7:case"end":return e.stop()}}),e)}))()},getSmartPlanInfo:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Vn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SmartPlanInfo:null==t?void 0:t.data}});case 5:case"end":return e.stop()}}),e)}))()},getSmartPlanItemBanks:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Yn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SmartPlanItemBanks:null==t?void 0:t.data}});case 5:case"end":return e.stop()}}),e)}))()},getClassroom:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n,e.next=3,r(Xn,n);case 3:return o=e.sent,e.next=6,a({type:"save",payload:i()({listParams:t},o)});case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)}))()},getClassroomTopBanner:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(tr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailTopBanner:t.status?{copy_completed:!0}:i()({},t)}});case 5:return e.abrupt("return",t.status?{copy_completed:!0}:t);case 6:case"end":return e.stop()}}),e)}))()},getClassroomLeftMenus:function(e,t){var n=e.payload,r=t.call,o=t.put;return d()().mark((function e(){var t,u,c;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(rr,n);case 2:return t=e.sent,u=[].concat(a()((null==t?void 0:t.course_modules)||[]),a()((null==t?void 0:t.hidden_modules)||[])),c={},null==u||u.forEach((function(e){c[e.type]=e.name})),e.next=8,o({type:"save",payload:{detailLeftMenus:i()({},t),detailLeftMenusNames:c}});case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e)}))()},getClassroomShixunsList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(or,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailShixunsList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getClassroomTeacherShixunsList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ur,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailShixunsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getClassroomCommonList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(or,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCommonHomeworksList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getClassroomTeacherCommonList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ur,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCommonHomeworksList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getClassroomGraduationTopicsList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(sr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailGraduationTopicsList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getClassroomGraduationTaskList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailGraduationTaskList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getClassroomExercisesList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(dr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailExerciseList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getClassroomPollsList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(vr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailPollsList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getSmartPlans:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ta,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailSmartPlanList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getCourseGroups:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(br,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{courseGroups:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getAllCourseGroup:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(wa,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{allCourseGroups:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getClassroomCommonHomeworksList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(yr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCommonHomeworksList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getClassroomAttendancesList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(wr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailAttendancesList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getClassroomAttendancesStatistic:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(kr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailAttendancesStatistic:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getAttendanceDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Sr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailAttendancesDetail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getAnnouncementList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Pr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailAnnouncementList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getAttachmentList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailAttachmentList:i()({},t.data)}});case 5:case"end":return e.stop()}}),e)}))()},getCourseware:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Sa,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCourseware:i()({},t.data)}});case 5:case"end":return e.stop()}}),e)}))()},getVideoList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Tr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailVideoList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getLiveVideoList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Mr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailLiveVideoList:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getCoursesMine:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Lr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{courseMine:i()({},t)}});case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e)}))()},getBoardList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Dr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailBoardList:i()({},t.data)}});case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e)}))()},getCourseGroupsList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r($r,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCourseGroupsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCourseStudentsList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Br,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCoursStudentsList:i()({},t)}});case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e)}))()},getCourseStatistics:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(zr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCourseStatisticsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCourseActscore:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Vr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCourseActscore:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCourseWorkscore:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ur,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detailCourseWorkscore:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getShixunLists:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Yr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{shixunLists:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getExperimentLists:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Xr,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{shixunLists:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getShixunAiRecommendLists:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Jn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{shixunAiRecommendLists:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCoursesLists:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ra,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{coursesLists:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},createCoursesHomework:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(oa,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},createShixunHomework:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Jr,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},createExperiment:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ta,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getSchoolList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ua,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{schoolList:i()({},t.school_names)}});case 5:return e.abrupt("return",t.school_names);case 6:case"end":return e.stop()}}),e)}))()},searchSchoolTeacherList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(va,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{searchMemberList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getAllTaskList:function(e,t){var n=e.payload,r=(e.callback,t.call),o=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ya,n);case 2:return t=e.sent,e.next=5,o({type:"save",payload:{taskList:a()(t.tasks)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},updateTaskPosition:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ba,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{actionTabs:{key:""}}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},setUpdateData:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{updateData:n}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},La=Ra,Za={namespace:"newClassroom",state:{schoolList:[],searchCourseList:[],actionTabs:{key:"",params:{}}},effects:{getSchoolList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ua,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{schoolList:(null==t?void 0:t.school_names)||[]}});case 5:case"end":return e.stop()}}),e)}))()},getSearchCourseList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(sa,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{searchCourseList:(null==t?void 0:t.course_lists)||[]}});case 5:case"end":return e.stop()}}),e)}))()},submitCourses:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fa,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},appplySchool:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(da,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},joincoursegroup:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ka,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},Da=Za,Na={namespace:"classroomsOverview",state:{},effects:{getCourseUseInfos:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r($n,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{CourseUseInfos:t}});case 5:case"end":return e.stop()}}),e)}))()},getRankList:function(e,t){var n=e.payload,r=t.call,o=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Fn,n);case 2:return t=e.sent,e.next=5,o({type:"save",payload:{RankList:{teacher_list:[{rank:"排名",name:"姓名",course_num:"管理课",homework_num:"发布作业数",exercise_num:"发布考试数",resource_num:"上传资源数"}].concat(a()((null==t?void 0:t.teacher_list)||[])),student_list:[{rank:"排名",name:"姓名",student_id:"学号/工号",finish_num:"完成作业数",total_score:"总成绩"}].concat(a()((null==t?void 0:t.student_list)||[])),learn_course_list:[{rank:"排名",name:"教学课堂名称",num:"学习人数"}].concat(a()((null==t?void 0:t.learn_course_list)||[])),interact_course_list:[{rank:"排名",name:"教学课堂名称",num:"互动讨论数"}].concat(a()((null==t?void 0:t.interact_course_list)||[])),finish_course_list:[{rank:"排名",name:"教学课堂名称",num:"总完成数"}].concat(a()((null==t?void 0:t.finish_course_list)||[]))}}});case 5:case"end":return e.stop()}}),e)}))()},getStatisticsBody:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Bn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SBody:t}});case 5:case"end":return e.stop()}}),e)}))()},getStatisticsHeader:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(qn,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SHeader:t}});case 5:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},$a=Na;function Fa(e){return Ba.apply(this,arguments)}function Ba(){return(Ba=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/polls/".concat(t.categoryId,"/poll_lists.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qa(e){return za.apply(this,arguments)}function za(){return(za=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/polls/".concat(t.categoryId,"/common_header.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ha(e){return Ua.apply(this,arguments)}function Ua(){return(Ua=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/polls/".concat(t.categoryId,"/poll_setting.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wa(e){return Va.apply(this,arguments)}function Va(){return(Va=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/polls/end_poll_modal.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ga(e){return Ya.apply(this,arguments)}function Ya(){return(Ya=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/polls/".concat(t.categoryId,"/publish_groups.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ka(e){return Xa.apply(this,arguments)}function Xa(){return(Xa=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/polls/".concat(t.categoryId,"/commit_result.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Qa(e){return Ja.apply(this,arguments)}function Ja(){return(Ja=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/question_banks/bank_list.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function eo(e){return to.apply(this,arguments)}function to(){return(to=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/question_banks/save_banks.json",{method:"POST",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function no(e){return ro.apply(this,arguments)}function ro(){return(ro=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/polls/publish_modal.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ao(e){return oo.apply(this,arguments)}function oo(){return(oo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/polls/".concat(t.categoryId,"/edit.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function io(e){return uo.apply(this,arguments)}function uo(){return(uo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/exercise_banks/".concat(t.topicId,".json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var co={namespace:"polls",state:{name:"普通试卷,随机试卷详情页面",loading:!0,pollsList:{},statisticsList:{},pollsCoursesList:{},brankList:{},actionTabs:{},commonHeader:{},pollSetting:{},endGroups:{},publishGroups:{},exerciseBanks:{}},effects:{getPollsList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Fa,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{pollsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCommonHeader:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(qa,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{commonHeader:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getPollsStatistics:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ka,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{statisticsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getBrankList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qa,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{brankList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},saveBanks:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(eo,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getPollsCourses:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(no,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{pollsCoursesList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getPollsSetting:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ha,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{pollSetting:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},editPolls:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ao,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editData:i()({},JSON.parse(JSON.stringify(t)))}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getEndGroups:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Wa,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{endGroups:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getPublishGroups:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ga,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{publishGroups:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getExerciseBanks:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(io,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{exerciseBanks:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},so=co;function lo(e){return fo.apply(this,arguments)}function fo(){return(fo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/teachers.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function po(e){return ho.apply(this,arguments)}function ho(){return(ho=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/apply_teachers.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vo(e){return mo.apply(this,arguments)}function mo(){return(mo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/graduation_group_list.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function yo(e){return go.apply(this,arguments)}function go(){return(go=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/all_course_groups.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function bo(e){return _o.apply(this,arguments)}function _o(){return(_o=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/set_course_group.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wo(e){return xo.apply(this,arguments)}function xo(){return(xo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/students.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ko={namespace:"teachers",state:{list:{},applyList:{},allCourseGroups:{},graduationGroupList:{},studentsList:{},actionTabs:{key:"",params:{}}},effects:{getList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(t){var o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(lo,n);case 2:return null==(o=e.sent)||null===(t=o.teacher_list)||void 0===t||t.map((function(e){return e.key=e.course_member_id,e})),e.next=6,a({type:"save",payload:{list:o}});case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)}))()},getStudentsList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(t){var o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(wo,n);case 2:return null==(o=e.sent)||null===(t=o.students)||void 0===t||t.map((function(e){return e.key=e.user_id,e})),e.next=6,a({type:"save",payload:{studentsList:o}});case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)}))()},getApplyList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(po,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{applyList:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getAllCourseGroups:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(yo,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{allCourseGroups:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getGraduationGroupList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(vo,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{graduationGroupList:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setAllCourseGroups:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(bo,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{setAllCourseGroups:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},Eo=ko;function So(e){return Co.apply(this,arguments)}function Co(){return(Co=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/watch_video_histories.json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Po(e){return Oo.apply(this,arguments)}function Oo(){return(Oo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/watch_statics.json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function jo(e){return Ao.apply(this,arguments)}function Ao(){return(Ao=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/course_videos/".concat(t.videoId,"/watch_histories.json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function To(e){return Io.apply(this,arguments)}function Io(){return(Io=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/own_watch_histories.json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mo(e){return Ro.apply(this,arguments)}function Ro(){return(Ro=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/video_items/".concat(t.id,".json"),{method:"Get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Lo(e){return Zo.apply(this,arguments)}function Zo(){return(Zo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.course_id,"/video_people_statics.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Do(e){return No.apply(this,arguments)}function No(){return(No=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.course_id,"/video_duration_statics.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $o(e){return Fo.apply(this,arguments)}function Fo(){return(Fo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/stages.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bo(e){return qo.apply(this,arguments)}function qo(){return(qo=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(null==t?void 0:t.id,"/course_videos_tree.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var zo={namespace:"video",state:{name:"资源",loading:!0,actionTabs:{},videoStatisticsList:{},newVideoStatisticsList:{},videoDurationStatics:{},StudentvideoStatistics:{},videoPeopleStatics:{},videoStatistics:{},oneVideoStatisticsList:{}},effects:{getVideoStatisticsList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(So,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{videoStatisticsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getNewVideoStatisticsList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jo,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{newVideoStatisticsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getVideoPeopleStatics:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Lo,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{videoPeopleStatics:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getVideoDurationStatics:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Do,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{videoDurationStatics:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getVideoStatistics:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Po,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{videoStatistics:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getOneVideoStatisticsList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jo,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{oneVideoStatisticsList:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},getStudentVideoStatisticsList:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(To,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{StudentvideoStatistics:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},Ho=zo,Uo=n(94414),Wo={namespace:"competitions",state:{name:"",loading:!0,listParams:{page:1,per_page:20,category:""},Staff:{},Header:{},competition_title:"",banner:"",competitions:[],count:"",RightItems:{},Prizes:{},Account:{},TabResultList:{},competition_team:{},all_team_member:{},actionTabs:{key:"",params:{}},GuidesData:{}},effects:{postGuides:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.cC,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getGuides:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Ax,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{GuidesData:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getWorkSubmitUpdateRes:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.zF,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n,e.next=3,r(Uo.bQ,n);case 3:return o=e.sent,e.next=6,a({type:"save",payload:i()({listParams:t},o)});case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)}))()},getMemberWorks:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.xx,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{MemberWorks:t||{}}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},addApplytojoincourse:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.qS,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},competitionTeams:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Pt,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getStaff:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Dh,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{Staff:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getHeader:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Pg,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{Header:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getItem:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.rV,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{RightItems:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},updateMdContent:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.zj,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getTeamList:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.aq,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getTeamDetail:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Ze,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},UpTeam:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.yS,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},DeleteTeam:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.ps,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},ExitTeam:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.vV,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},AddTeam:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.FU,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},AddPersonnel:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.R9,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},JoinTeam:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.zc,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getTeacher:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.jS,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getStudents:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.sK,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},SubmitTeam:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.rm,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},Reward:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Qp,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},ChartRules:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Ux,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},Charts:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.GQ,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},TabResults:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.ml,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{TabResultList:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},Results:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.u9,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},Prize:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.pU,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{Prizes:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},Accounts:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.XJ,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{Account:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getVerification:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Ni,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},PhoneBind:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.uZ,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},EmailBind:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.rk,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},Authentication:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.Vy,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},Professional:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.tC,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},setleader:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.tO,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getShixun:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.qj,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getCourse:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.XR,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},competition_teams:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.zz,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{competition_team:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},all_team_members:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Uo.$P,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{all_team_member:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Vo=Wo,Go=n(39647),Yo=n.n(Go),Ko=["id"],Xo=["ec_year_id","type","goal_value"],Qo=function(){var e=v()(d()().mark((function e(t){var n,r;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r=Yo()(t,Ko),e.abrupt("return",(0,m.ZP)("/api/ec_years/".concat(n,"/course_results.json"),{method:"get",params:r}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Jo=function(e){var t=document.createElement("iframe");t.src="/api/ec_years/".concat(e,"/course_results.xlsx"),t.style.display="none",document.body.appendChild(t)},ei=function(e){var t=e.ec_year_id;return(0,m.ZP)("/api/ec_years/".concat(t,"/course_results/get_class.json"),{method:"get"})},ti=function(e){var t=e.ec_year_id,n=e.id,r=e.class_name,a=void 0===r?null:r;return(0,m.ZP)("/api/ec_years/".concat(t,"/course_results/").concat(n,".json"),{method:"get",params:{class_name:a}})},ni=function(e){var t=e.ec_year_id;return(0,m.ZP)("/api/ec_courses/1/evaluations/compute_all_courses_data",{method:"post",body:{ec_year_id:t}})},ri=function(e){var t=e.ec_course_id;return(0,m.ZP)("/api/ec_courses/".concat(t,"/evaluations/evaluation_data"),{method:"POST"})},ai=function(e){var t=document.createElement("iframe");t.src="/api/ec_years/".concat(e,"/ec_graduation_results.xlsx"),t.style.display="none",document.body.appendChild(t)},oi=function(e){var t=e.ec_year_id;return(0,m.ZP)("/api/ec_years/".concat(t,"/ec_graduation_results/compute_all"),{method:"post"})},ii=function(e){var t=e.ec_year_id,n=e.id;return(0,m.ZP)("/api/ec_years/".concat(t,"/ec_graduation_results/compute_single?id=").concat(n),{method:"POST"})},ui=function(e){return(0,m.ZP)("/api/ec_years/".concat(e,"/ec_graduation_results.json"),{method:"get"})},ci=function(e){return(0,m.ZP)("/api/ec_years/".concat(e,"/ec_graduation_results/get_formulas.json"),{method:"get"})},si=function(e){var t=e.ec_year_id,n=e.formula_one,r=e.formula_two,a=e.formula_three;return(0,m.ZP)("/api/ec_years/".concat(t,"/ec_graduation_results/set_formulas.json"),{method:"PUT",body:{formula_one_id:n,formula_two_id:r,formula_three_id:a}})},li=function(e){var t=e.ec_year_id,n=e.id;return(0,m.ZP)("/api/ec_years/".concat(t,"/ec_graduation_results/").concat(n,".json"),{method:"get"})},fi=function(e){var t=e.ec_year_id,n=e.type,r=e.goal_value,a=Yo()(e,Xo),o="?type=".concat(n),u={method:"PUT"};return"all"===n&&(o+="&goal_value=".concat(r)),"each"===n&&(u=i()(i()({},u),{},{body:a})),(0,m.ZP)("/api/ec_years/".concat(t,"/ec_graduation_results/set_goal_value").concat(o),u)},pi=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/schools/".concat(t,"/ec_majors/get_major_list.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),di=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/ec_major_schools/".concat(t,"/ec_years/get_year_list.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),hi=function(e){var t=e.ec_year_id,n=e.school_id;return(0,m.ZP)("/api/ec_years/".concat(t,"/top_pages.json"),{method:"get",params:{school_id:n}})},vi=function(e){var t=e.id,n=e.name;return(0,m.ZP)("/api/ec_years/1/top_pages/".concat(t,"?name=").concat(n),{method:"PUT"})},mi=n(6767),yi=function(e,t){var n,r=e+"-engineering"+(null===(n=(0,Ma.eY)())||void 0===n?void 0:n.school_id),a=JSON.stringify(t);localStorage.setItem(r,a)},gi=function(e){var t,n=e+"-engineering"+(null===(t=(0,Ma.eY)())||void 0===t?void 0:t.school_id),r=localStorage.getItem(n);return null!==r&&"[object Object]"!==r?JSON.parse(r):[]},bi=["all"],_i=["认证专业","认证届别"],wi={namespace:"engineeringEvaluteList",state:{actionTabs:{key:"",params:{}},headerData:{dataSource:Pe()(Pe()({},_i[0],{width:235,placeholder:"请选择".concat(_i[0]),loading:"engineeringEvaluteList/getMajorList",dataList:[]}),_i[1],{width:138,placeholder:"请选择".concat(_i[1]),loading:"engineeringEvaluteList/getYearList",dataList:[]}),active:{}},tabListData:{total:0,pageNo:1,pageSize:20,dataSource:[]}},effects:{setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},getMajorList:function(e,t){e.payload;var n=t.call,r=t.put,a=t.select;return d()().mark((function e(){var t,o,i,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((function(e){return e.user}));case 2:if(t=e.sent,null==(o=t.userInfo)||!o.school_id){e.next=12;break}return e.next=7,n(pi,o.school_id);case 7:if(!(i=e.sent)||!i.data){e.next=12;break}return u=gi(null==o?void 0:o.login),e.next=12,r({type:"setMajorOrYearDataSource",payload:{key:_i[0],value:i.data.map((function(e){return{label:e.name,value:e.ec_major_school_id}})),active:i.data.length>0?u[0]||i.data[0].ec_major_school_id:void 0}});case 12:case"end":return e.stop()}}),e)}))()},getYearList:function(e,t){var n=e.payload,r=t.call,a=t.put,o=t.select;return d()().mark((function e(){var t,i,u,c;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(di,n.id);case 2:return t=e.sent,e.next=5,o((function(e){return e.user}));case 5:if(i=e.sent,u=i.userInfo,!t||!t.data){e.next=11;break}return c=gi(null==u?void 0:u.login),e.next=11,a({type:"setMajorOrYearDataSource",payload:{key:_i[1],value:t.data.map((function(e){return{label:e.year,value:e.ec_year_id}})),active:t.data.length>0?n.firstEnter?c[1]:t.data[0].ec_year_id:void 0}});case 11:case"end":return e.stop()}}),e)}))()},getCourseResults:function(e,t){var n=e.payload,r=void 0===n?{}:n,a=t.call,o=t.put,u=t.select;return d()().mark((function e(){var t,n,c,s,l,f,p,h,v,m,y,g;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.calc,n=r.page,c=r.per_page,e.next=3,u((function(e){return e.engineeringEvaluteList}));case 3:return s=e.sent,l=s.headerData,f=s.tabListData,e.next=8,u((function(e){return e.user}));case 8:if(p=e.sent,h=p.userInfo,!(v=l.active[_i[1]])){e.next=24;break}return m={id:v,page:n||1,per_page:c||f.pageSize},t&&(m=i()(i()({},m),{},{page:f.pageNo})),e.next=16,a(Qo,m);case 16:if(y=e.sent,g=[l.active[_i[0]],l.active[_i[1]]],yi(null==h?void 0:h.login,g),!y||!y.ec_courses){e.next=22;break}return e.next=22,o({type:"setCourseResults",payload:i()(i()({},f),{},{pageNo:m.page,total:y.count,pageSize:m.per_page||f.pageSize,dataSource:y.ec_courses.map((function(e,t){return i()(i()({},e),{},{key:m.page>1?(m.page-1)*m.per_page+t+1:t+1})}))})});case 22:e.next=26;break;case 24:return e.next=26,o({type:"setCourseResults",payload:i()(i()({},f),{},{pageNo:1,total:0,dataSource:[]})});case 26:case"end":return e.stop()}}),e)}))()},exportCourse:function(e,t){e.payload;var n=t.call,r=t.select;return d()().mark((function e(){var t,a;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r((function(e){return e.engineeringEvaluteList}));case 2:if(t=e.sent,!(a=t.headerData).active[_i[1]]){e.next=7;break}return e.next=7,n(Jo,a.active[_i[1]]);case 7:case"end":return e.stop()}}),e)}))()},compute:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o,i;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.all,o=Yo()(n,bi),e.next=3,r(t?ni:ri,o);case 3:if(!(i=e.sent)||0!==i.status){e.next=10;break}return mi.ZP.success("计算完成"),e.next=8,a({type:"getCourseResults",payload:{calc:!0}});case 8:e.next=11;break;case 10:mi.ZP.error(i.message);case 11:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},setMajorOrYearDataSource:function(e,t){var n=t.payload,r=e.headerData.active;return n.active&&(r=i()(i()({},r),{},Pe()({},n.key,n.active))),i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{dataSource:i()(i()({},e.headerData.dataSource),{},Pe()({},n.key,i()(i()({},e.headerData.dataSource[n.key]),{},{dataList:n.value}))),active:r})})},setMajorOrYearActive:function(e,t){var n=t.payload;return i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{active:i()(i()({},e.headerData.active),{},Pe()({},n.key,n.value))})})},setCourseResults:function(e,t){var n=t.payload;return i()(i()({},e),{},{tabListData:i()(i()({},e.tabListData),n)})}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},xi=wi,ki={namespace:"engineeringEvaluteDetail",state:{classDataSource:{active:null,dataList:[]},actionTabs:{key:"",params:{}},name:"",headerData:{dataSource:Pe()(Pe()({},_i[0],{width:235,placeholder:"请选择".concat(_i[0]),loading:"engineeringEvaluteDetail/getMajorList",dataList:[]}),_i[1],{width:138,placeholder:"请选择".concat(_i[1]),loading:"engineeringEvaluteDetail/getYearList",dataList:[]}),active:{}},tabListData:[],echartsData:{barData:{name:"",dataSource:{xData:[],yBarData:[],yLineData:[]}},lineData:{name:"",xData:[],seriesData:[]},scatterData:{}}},effects:{setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},getMajorList:function(e,t){e.payload;var n=t.call,r=t.put,a=t.select;return d()().mark((function e(){var t,o,i;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((function(e){return e.user}));case 2:if(t=e.sent,null==(o=t.userInfo)||!o.school_id){e.next=11;break}return e.next=7,n(pi,o.school_id);case 7:if(!(i=e.sent)||!i.data){e.next=11;break}return e.next=11,r({type:"setMajorOrYearDataSource",payload:{key:_i[0],value:i.data.map((function(e){return{label:e.name,value:e.ec_major_school_id}}))}});case 11:case"end":return e.stop()}}),e)}))()},getYearList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(di,n);case 2:if(!(t=e.sent)||!t.data){e.next=6;break}return e.next=6,a({type:"setMajorOrYearDataSource",payload:{key:_i[1],value:t.data.map((function(e){return{label:e.year,value:e.ec_year_id}}))}});case 6:case"end":return e.stop()}}),e)}))()},getCourseResultDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(n,"payload"),e.next=3,r(ti,n);case 3:if(!(t=e.sent)||!t.ec_course_target){e.next=7;break}return e.next=7,a({type:"setEchartsData",payload:t});case 7:case"end":return e.stop()}}),e)}))()},getCourseResultDetailClass:function(e,t){var n=e.payload,r=t.call,o=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ei,n);case 2:if(!(t=e.sent)||!t.class_name){e.next=6;break}return e.next=6,o({type:"save",payload:{classDataSource:{active:null,dataList:a()(t.class_name)}}});case 6:case"end":return e.stop()}}),e)}))()},setClassActive:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{classDataSource:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},setMajorOrYearDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{dataSource:i()(i()({},e.headerData.dataSource),{},Pe()({},n.key,i()(i()({},e.headerData.dataSource[n.key]),{},{dataList:n.value})))})})},setMajorOrYearActive:function(e,t){var n=t.payload;return i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{active:i()(i()({},e.headerData.active),{},Pe()({},n.key,n.value))})})},setEchartsData:function(e,t){var n=t.payload,r={name:n.course_name||"",dataSource:{xData:[],yBarData:[],yLineData:[]}},o={name:n.course_name||"",xData:[],seriesData:[]},u={};return n.ec_course_target.forEach((function(e,t){e.position=t+1,r=i()(i()({},r),{},{dataSource:{xData:[].concat(a()(r.dataSource.xData),[t+1]),yBarData:[].concat(a()(r.dataSource.yBarData),[e.actual_grade]),yLineData:[].concat(a()(r.dataSource.yLineData),[e.standard_grade])}});var n=[],o={min:[],max:[]},c=[],s=[],l=[];e.student_data.detail.forEach((function(t,r){var a=t.score;n.push(r+1),o.max.push(a>=e.student_data.goal_score?a:null),o.min.push(a>=e.student_data.goal_score?null:a),c.push(t.name),s.push(t.student_id),l.push(t.clazz)})),u[t+1]={name:t+1,average_score:e.student_data.average_score,goal_score:e.student_data.goal_score,xData:n,yData:o,name_data:c,student_ids:s,class_data:l,goal_scoreData:new Array(e.student_data.detail.length).fill(e.student_data.goal_score),average_scoreData:new Array(e.student_data.detail.length).fill(e.student_data.average_score)}})),n.history.forEach((function(e){o=i()(i()({},o),{},{xData:[].concat(a()(o.xData),[e.year]),seriesData:[].concat(a()(o.seriesData),[e.total_score])})})),i()(i()({},e),{},{name:n.course_name||"",tabListData:n.ec_course_target,echartsData:{barData:r,lineData:o,scatterData:u}})}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Ei=ki,Si={namespace:"engineering",state:{showMenu:!0,matrixVerify:{key:!1,params:{}},actionTabs:{key:"",params:{}}},effects:{setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},setShowMenu:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showMenu:n}});case 2:case"end":return e.stop()}}),e)}))()},setMatrixVerify:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{matrixVerify:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Ci=Si,Pi=n(70236),Oi=n.n(Pi),ji={namespace:"engineeringNavigtion",state:{actionTabs:{key:"",params:{}},headerData:{title:"认证导航",dataSource:Pe()(Pe()({},_i[0],{width:235,placeholder:"请选择".concat(_i[0]),loading:"engineeringNavigtion/getMajorList",dataList:[]}),_i[1],{width:138,placeholder:"请选择".concat(_i[1]),loading:"engineeringNavigtion/getYearList",dataList:[]}),active:{},name:"",tabBarContent:{user_name:"",user_school:"",user_type:""}},cardListData:{appraiseData:{norm:{title:"指标评价",result:"-",tabBarContent:[{icon:"icon-biyezhibiao",label:"毕业指标",value:"/engineering/graduated/index"},{icon:"icon-biyejuzhen",label:"毕业矩阵",value:"/engineering/graduated/matrix"}],listData:[{key:"graduation_count",icon:"icon-biyeyaoqiu1",backgroundColor:"#F2EBFB",textColor:"#713BDB",label:"毕业要求",value:"-",unit:"项"},{key:"graduation_subitem_count",icon:"icon-zhibiaodian",backgroundColor:"#FEF3EF",textColor:"#FF8B58",label:"指标点",value:"-",unit:"项"},{key:"graduation_achieve_count",icon:"icon-dacheng",backgroundColor:"#D7F5E6",textColor:"#07C160",label:"已达成毕业要求",value:"-",unit:"项"},{key:"graduation_not_achieve_count",icon:"icon-weidacheng",backgroundColor:"#F5F5F5",textColor:"#7C8184",label:"未达成毕业要求",value:"-",unit:"项"}]},course:{title:"课程评价",result:"-",tabBarContent:[{icon:"icon-kechengliebiao",label:"课程列表",value:"/engineering/course/list"},{icon:"icon-kechengjuzhen",label:"课程矩阵",value:"/engineering/course/matrix"}],listData:[{key:"course_count",icon:"icon-kechengshuliang",backgroundColor:"#E2F5FF",textColor:"#007AFF",label:"课程数量",value:"-",unit:"门"},{key:"course_target_count",icon:"icon-mubiao",backgroundColor:"#FEF8EF",textColor:"#FEB315",label:"课程目标",value:"-",unit:"项"},{key:"course_achieve_count",icon:"icon-dacheng",backgroundColor:"#D7F5E6",textColor:"#07C160",label:"已达成课程数量",value:"-",unit:"门"},{key:"course_not_achieve_count",icon:"icon-weidacheng",backgroundColor:"#F5F5F5",textColor:"#7C8184",label:"未达成课程数量",value:"-",unit:"门"}]}},teamData:{teach:{title:"授课团队",tabBarContent:"0人",listData:[]},work:{title:"工作团队",tabBarContent:"0人",listData:[]}}},totalListData:[{key:"student_count",title:"当前学生总数",value:0,icon:"icon-xuesheng1",backgroundColor:"rgba(201,236,255,0.51)",textColor:"#007AFF"},{key:"student_in_count",title:"转入学生总数",value:0,icon:"icon-zhuanru",backgroundColor:"rgba(119,241,174,0.4)",textColor:"#1FA363"},{key:"student_out_count",title:"转出学生总数",value:0,icon:"icon-zhuanchu",backgroundColor:"rgba(255,197,147,0.44)",textColor:"#FA6400"}]},effects:{setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},getMajorList:function(e,t){Oi()(e);var n=t.call,r=t.put,a=t.select;return d()().mark((function e(){var t,o,i,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((function(e){return e.user}));case 2:if(t=e.sent,null==(o=t.userInfo)||!o.school_id){e.next=12;break}return e.next=7,n(pi,o.school_id);case 7:if(!(i=e.sent)||!i.data){e.next=12;break}return u=gi(null==o?void 0:o.login),e.next=12,r({type:"setMajorOrYearDataSource",payload:{key:_i[0],value:i.data.map((function(e){return{label:e.name,value:e.ec_major_school_id}})),active:i.data.length>0?u[0]||i.data[0].ec_major_school_id:void 0}});case 12:case"end":return e.stop()}}),e)}))()},getYearList:function(e,t){var n=e.payload,r=t.call,a=t.put,o=t.select;return d()().mark((function e(){var t,i,u,c;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(di,n.id);case 2:return t=e.sent,e.next=5,o((function(e){return e.user}));case 5:if(i=e.sent,u=i.userInfo,!t||!t.data){e.next=11;break}return c=gi(null==u?void 0:u.login),e.next=11,a({type:"setMajorOrYearDataSource",payload:{key:_i[1],value:t.data.map((function(e){return{label:e.year,value:e.ec_year_id}})),active:t.data.length>0?n.firstEnter?c[1]:t.data[0].ec_year_id:void 0}});case 11:case"end":return e.stop()}}),e)}))()},getTopPage:function(e,t){Oi()(e);var n=t.call,r=t.put,a=t.select;return d()().mark((function e(){var t,o,i,u,c,s,l;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((function(e){return e.engineeringNavigtion}));case 2:return t=e.sent,o=t.headerData,e.next=6,a((function(e){return e.user}));case 6:if(i=e.sent,u=i.userInfo,c={},!o.active[_i[1]]||!u.school_id){e.next=18;break}return s=[o.active[_i[0]],o.active[_i[1]]],yi(null==u?void 0:u.login,s),e.next=14,n(hi,{ec_year_id:o.active[_i[1]],school_id:u.school_id});case 14:return(l=e.sent)&&l.data&&(c=l.data),e.next=18,r({type:"setTopPage",payload:c});case 18:case"end":return e.stop()}}),e)}))()},putTopPageName:function(e,t){var n=e.payload,r=e.callback,a=t.call;t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a(vi,n);case 3:t=e.sent,r(t),e.next=12;break;case 7:e.prev=7,e.t0=e.catch(0),o="",e.t0&&(o=JSON.stringify(e.t0),e.t0.message&&(o=e.t0.message)),r({message:o,status:999});case 12:case"end":return e.stop()}}),e,null,[[0,7]])}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},setMajorOrYearDataSource:function(e,t){var n=t.payload,r=e.headerData.active;return n.active&&(r=i()(i()({},r),{},Pe()({},n.key,n.active))),i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{dataSource:i()(i()({},e.headerData.dataSource),{},Pe()({},n.key,i()(i()({},e.headerData.dataSource[n.key]),{},{dataList:n.value}))),active:r})})},setMajorOrYearActive:function(e,t){var n=t.payload;return i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{active:i()(i()({},e.headerData.active),{},Pe()({},n.key,n.value))})})},setTopPage:function(e,t){var n=t.payload;return i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{name:n.name,tabBarContent:{user_name:n.user_name,user_school:n.user_school,user_type:n.user_type}}),cardListData:i()(i()({},e.cardListData),{},{appraiseData:i()(i()({},e.cardListData.appraiseData),{},{norm:i()(i()({},e.cardListData.appraiseData.norm),{},{result:n.graduaiton_result,listData:e.cardListData.appraiseData.norm.listData.map((function(e){return i()(i()({},e),{},{value:n[e.key]||0})}))}),course:i()(i()({},e.cardListData.appraiseData.course),{},{result:n.course_result,listData:e.cardListData.appraiseData.course.listData.map((function(e){return i()(i()({},e),{},{value:n[e.key]||0})}))})}),teamData:{teach:i()(i()({},e.cardListData.teamData.teach),{},{tabBarContent:"".concat(n.course_teachers?n.course_teachers.length:0,"人"),listData:n.course_teachers||[]}),work:i()(i()({},e.cardListData.teamData.work),{},{tabBarContent:"".concat(n.work_teachers?n.work_teachers.length:0,"人"),listData:n.work_teachers||[]})}}),totalListData:e.totalListData.map((function(e){return i()(i()({},e),{},{value:n[e.key]||0})}))})}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Ai=ji,Ti={namespace:"engineeringNormDetail",state:{actionTabs:{key:"",params:{}},dataSource:{name:"",goal_value:0,actual_value:0,subitems:[]}},effects:{setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},getGraduationResultDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(li,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{dataSource:t}});case 5:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},setDataSource:function(e,t){var n=t.payload;return i()(i()({},e),{},{dataSource:n})}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Ii=Ti,Mi=["subitems"],Ri=["all"],Li={namespace:"engineeringNormList",state:{actionTabs:{key:"",params:{}},headerData:{dataSource:Pe()(Pe()({},_i[0],{width:235,placeholder:"请选择".concat(_i[0]),loading:"engineeringNormList/getMajorList",dataList:[]}),_i[1],{width:138,placeholder:"请选择".concat(_i[1]),loading:"engineeringNormList/getYearList",dataList:[]}),active:{}},tabListData:[],expandedRowKeys:[],all_goal_value:""},effects:{setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},getMajorList:function(e,t){Oi()(e);var n=t.call,r=t.put,a=t.select;return d()().mark((function e(){var t,o,i,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((function(e){return e.user}));case 2:if(t=e.sent,null==(o=t.userInfo)||!o.school_id){e.next=12;break}return e.next=7,n(pi,o.school_id);case 7:if(!(i=e.sent)||!i.data){e.next=12;break}return u=gi(null==o?void 0:o.login),e.next=12,r({type:"setMajorOrYearDataSource",payload:{key:_i[0],value:i.data.map((function(e){return{label:e.name,value:e.ec_major_school_id}})),active:i.data.length>0?u[0]||i.data[0].ec_major_school_id:void 0}});case 12:case"end":return e.stop()}}),e)}))()},getYearList:function(e,t){var n=e.payload,r=t.call,a=t.put,o=t.select;return d()().mark((function e(){var t,i,u,c;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(di,n.id);case 2:return t=e.sent,e.next=5,o((function(e){return e.user}));case 5:if(i=e.sent,u=i.userInfo,!t||!t.data){e.next=11;break}return c=gi(null==u?void 0:u.login),e.next=11,a({type:"setMajorOrYearDataSource",payload:{key:_i[1],value:t.data.map((function(e){return{label:e.year,value:e.ec_year_id}})),active:t.data.length>0?n.firstEnter?c[1]:t.data[0].ec_year_id:void 0}});case 11:case"end":return e.stop()}}),e)}))()},getGraduationResults:function(e,t){Oi()(e);var n=t.call,r=t.put,a=t.select;return d()().mark((function e(){var t,o,u,c,s,l,f,p,h,v;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((function(e){return e.engineeringNormList}));case 2:return t=e.sent,o=t.headerData,e.next=6,a((function(e){return e.user}));case 6:if(u=e.sent,c=u.userInfo,s=[],l=[],f="",!(p=o.active[_i[1]])){e.next=19;break}return h=[o.active[_i[0]],o.active[_i[1]]],yi(null==c?void 0:c.login,h),e.next=17,n(ui,p);case 17:(v=e.sent)&&v.graduation_requirements&&(f=v.all_goal_value||"",s=v.graduation_requirements.map((function(e){var t=e.subitems,n=Yo()(e,Mi);return l.push(n.id),i()(i()({},n),{},{children:t})})));case 19:return e.next=21,r({type:"save",payload:{tabListData:s,all_goal_value:f,expandedRowKeys:l}});case 21:case"end":return e.stop()}}),e)}))()},exportGraduation:function(e,t){Oi()(e);var n=t.call,r=t.select;return d()().mark((function e(){var t,a;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r((function(e){return e.engineeringNormList}));case 2:if(t=e.sent,!(a=t.headerData).active[_i[1]]){e.next=7;break}return e.next=7,n(ai,a.active[_i[1]]);case 7:case"end":return e.stop()}}),e)}))()},compute:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o,i;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.all,o=Yo()(n,Ri),e.next=3,r(t?oi:ii,o);case 3:if(!(i=e.sent)||0!==i.status){e.next=10;break}return mi.ZP.success("计算完成"),e.next=8,a({type:"getGraduationResults"});case 8:e.next=11;break;case 10:mi.ZP.error(i.message);case 11:case"end":return e.stop()}}),e)}))()},getFormulas:function(e,t){var n=e.callback,r=t.call,a=t.select;return d()().mark((function e(){var t,o,i;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((function(e){return e.engineeringNormList}));case 2:if(t=e.sent,!(o=t.headerData).active[_i[1]]){e.next=9;break}return e.next=7,r(ci,o.active[_i[1]]);case 7:i=e.sent,n(i);case 9:case"end":return e.stop()}}),e)}))()},setFormulas:function(e,t){var n=e.payload,r=e.callback,a=t.call;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(si,n);case 2:t=e.sent,r(t);case 4:case"end":return e.stop()}}),e)}))()},putGoalValue:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fi,n);case 2:if(!(t=e.sent)||0!==t.status){e.next=11;break}return mi.ZP.success("保存成功"),e.next=7,a({type:"save",payload:{actionTabs:{key:"",params:{}}}});case 7:return e.next=9,a({type:"getGraduationResults"});case 9:e.next=14;break;case 11:o="保存失败",t&&t.message&&(o=t.message),mi.ZP.error(o);case 14:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},setMajorOrYearDataSource:function(e,t){var n=t.payload,r=e.headerData.active;return n.active&&(r=i()(i()({},r),{},Pe()({},n.key,n.active))),i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{dataSource:i()(i()({},e.headerData.dataSource),{},Pe()({},n.key,i()(i()({},e.headerData.dataSource[n.key]),{},{dataList:n.value}))),active:r})})},setMajorOrYearActive:function(e,t){var n=t.payload;return i()(i()({},e),{},{headerData:i()(i()({},e.headerData),{},{active:i()(i()({},e.headerData.active),{},Pe()({},n.key,n.value))})})}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Zi=Li;function Di(e){return Ni.apply(this,arguments)}function Ni(){return(Ni=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/memos.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $i(e){return Fi.apply(this,arguments)}function Fi(){return(Fi=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/discusses/forum_discusses.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bi(e){return qi.apply(this,arguments)}function qi(){return(qi=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/memos/".concat(t.id,".json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var zi={namespace:"forumsDetail",state:{forumsDetailData:{}},effects:{getForumsDetailData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Bi,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{forumsDetailData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setForumsDetailData:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{forumsDetailData:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Hi=zi,Ui={namespace:"forumsList",state:{forumsData:{},listParams:{page:1,order:"updated_at"}},effects:{getForumsData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r("shixun_discuss"===n.memoType?$i:Di,n);case 2:return t=e.sent,delete n.memoType,o=n,e.next=7,a({type:"save",payload:{listParams:o,forumsData:i()({},t)}});case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Wi=Ui,Vi=n(12554),Gi=n(67390),Yi={namespace:"globalSetting",state:{name:"全局配置",loading:!0,isIlearning:window.location.host.indexOf("learning.")>-1,showFooter:!0,showHeader:!0,showTip:!1,showHeaderFooter:!0,showHeaderFixed:!1,onlyShowBackTop:!0,onlyShowBackTopIcons:!0,operateModel:!1,operateModelPath:"",showQuestionBackTop:!1,theme:"defaults",shareData:{title:document.title,imgUrl:"https://ali-cdn.educoder.net/images/avatars/LaboratorySetting/1tab?t=1610677202",desc:""},globalLoading:{show:!1,text:""},updateData:{end_time:"",start_time:"",subject:"",system_score:"",system_update:!1},isSaiaDomain:"saia.educoder.net"==window.location.host},effects:{query:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Vi.D2,n);case 2:return t=e.sent,Xi(t),e.next=6,a({type:"save",payload:i()({},t)});case 6:case"end":return e.stop()}}),e)}))()},getSystemUpdate:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Vi.n0,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{updateData:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},setTheme:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Vi.n0,n);case 2:return e.sent,e.next=5,a({type:"save",payload:{theme:n||"default"}});case 5:case"end":return e.stop()}}),e)}))()},setShareData:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{shareData:n}});case 2:case"end":return e.stop()}}),e)}))()},setGlobalLoading:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{globalLoading:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},delayTipToggle:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showTip:n}});case 2:case"end":return e.stop()}}),e)}))()},headerToggle:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showHeader:n}});case 2:case"end":return e.stop()}}),e)}))()},footerToggle:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showFooter:n}});case 2:case"end":return e.stop()}}),e)}))()},headerFooterToggle:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showHeaderFooter:n}});case 2:case"end":return e.stop()}}),e)}))()},headerFixedToggle:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showHeaderFixed:n}});case 2:case"end":return e.stop()}}),e)}))()},onlyShowBackTopToggle:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{onlyShowBackTop:n}});case 2:case"end":return e.stop()}}),e)}))()},onlyShowBackTopIconToggle:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{onlyShowBackTopIcons:n}});case 2:case"end":return e.stop()}}),e)}))()},setOperateModel:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{operateModel:n}});case 2:case"end":return e.stop()}}),e)}))()},setOperateModelPath:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{operateModelPath:n}});case 2:case"end":return e.stop()}}),e)}))()},setShowQuestionBackTop:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showQuestionBackTop:n}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch;return e.history.listen((function(e){e.pathname}))}}},Ki=Yi,Xi=function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(window.self===window.top&&null!==(e=r.setting)&&void 0!==e&&e.tab_logo_url){var a=document.createElement("link"),o=document.getElementById("dynamic-favicon");a.id="dynamic-favicon",a.rel="shortcut icon",a.href=null!==(t=r.setting)&&void 0!==t&&t.tab_logo_url?"".concat(Gi.Z.IMG_SERVER,"/").concat(null===(n=r.setting)||void 0===n?void 0:n.tab_logo_url):"",o&&document.head.removeChild(o),document.head.appendChild(a);try{var i,u;if(null===(i=r.setting)||void 0===i||!i.main_site)document.querySelector('meta[name="keywords"]').content=null===(u=r.setting)||void 0===u?void 0:u.name,document.querySelector('meta[name="description"]').remove()}catch(e){}}},Qi=n(13071),Ji={namespace:"graduations",state:{actionTabs:{key:"",params:{}},details:{},menus:[],forTask:[],ownedList:[],students:{},years:[],graduation:{teachers_count:0,students_count:0,graduation_tasks_count:0},teachers:{},graduation_stages:[],Notices:{total_count:0,no_deal_count:0},Tasks:{data:[],count:0},updateIndex:1},effects:{getGraduationsStageDetails:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.Xh,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getGraduationsFinalScore:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.H3,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getDelGraduationsTasks:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.km,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getGraduationsTasks:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.Xw,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{Tasks:t}});case 5:case"end":return e.stop()}}),e)}))()},getGraduationsTeachers:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(t){var o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.AA,n);case 2:return null==(o=e.sent)||null===(t=o.data)||void 0===t||t.map((function(e){return e.key=e.id,e})),e.next=6,a({type:"save",payload:{teachers:o}});case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)}))()},getGraduationsStudents:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(t){var o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.eh,n);case 2:return null==(o=e.sent)||null===(t=o.data)||void 0===t||t.map((function(e){return e.key=e.id,e})),e.next=6,a({type:"save",payload:{students:o}});case 6:case"end":return e.stop()}}),e)}))()},getGraduationsNotices:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.Rk,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{Notices:t}});case 5:case"end":return e.stop()}}),e)}))()},getGraduationsInfo:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.F7,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{graduation:t.graduation}});case 5:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},setUpdateIndex:function(e,t){e.payload,t.call;var n=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:"save",payload:{updateIndex:Math.random()}});case 2:case"end":return e.stop()}}),e)}))()},getGraduationsDetails:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qi.Ou,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{details:(null==t?void 0:t.graduation)||{},menus:(null==t?void 0:t.data)||[],forTask:(null==t?void 0:t.for_task)||[]}});case 5:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}}},eu=Ji,tu=n(56007),nu={namespace:"homePage",state:{name:"首页",loading:!0},effects:{home:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(tu.Tt,{payload:n});case 2:return t=e.sent,e.next=5,a({type:"save",payload:i()(i()({},t),{},{isloading:!0})});case 5:case"end":return e.stop()}}),e)}))()},query:function(e,t){e.payload,t.call;var n=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:"save",payload:{name:"linlu"}});case 2:case"end":return e.stop()}}),e)}))()},getHomeNotice:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(tu.LA,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},UploadNotice:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(tu.S_,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},ru=nu,au={namespace:"innovation",state:{visibleModalName:"",hideRemindModal:!0,openForkModalPosition:"forkButton",simpleModalProps:{visible:!1}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},openModal:function(e,t){return i()(i()({},e),{},{visibleModalName:t.payload})},closeModal:function(e){return i()(i()({},e),{},{visibleModalName:""})},openSimpleModal:function(e,t){return i()(i()({},e),{},{simpleModalProps:i()({visible:!0},t.payload)})},closeSimpleModal:function(e){return i()(i()({},e),{},{simpleModalProps:{visible:!1}})}}},ou=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/paid_subjects/banner.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),iu=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/paid_subjects/top_category.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),uu=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/paid_subjects/hot_recommend_subjects.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),cu=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/paid_subjects/time_discount_subjects.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),su=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/paid_subjects.json",{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),lu=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/paid_subjects/all_tags.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fu=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/paid_subjects/user_comments.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),pu=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/paid_subjects/info_show.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),du={namespace:"intraincourse",state:{name:"用户登录模块",BannerList:[],Adv:{},TopCategoryList:[],HotList:[],DiscountList:[],SubjectList:{},Tags:[],UserComments:[],InfoShow:{}},effects:{getBannerList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o,i,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ou,n);case 2:return t=e.sent,o=t.data,i=o.adv,u=o.top_banner,e.next=8,a({type:"save",payload:{BannerList:u,Adv:i}});case 8:case"end":return e.stop()}}),e)}))()},getTopCategoryList:function(e,t){var n=e.payload,r=t.call,o=t.put;return d()().mark((function e(){var t,i;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(iu,n);case 2:return t=e.sent,i=t.data.top_category_list,e.next=6,o({type:"save",payload:{TopCategoryList:[{id:-1,name:"全部"}].concat(a()(i))}});case 6:case"end":return e.stop()}}),e)}))()},getHotList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(uu,n);case 2:return t=e.sent,o=t.data.hot_list,e.next=6,a({type:"save",payload:{HotList:o}});case 6:case"end":return e.stop()}}),e)}))()},getDiscountList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(cu,n);case 2:return t=e.sent,o=t.data.discount_list,e.next=6,a({type:"save",payload:{DiscountList:o}});case 6:case"end":return e.stop()}}),e)}))()},getPaidSubjects:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(su,n);case 2:return t=e.sent,o=t.data,e.next=6,a({type:"save",payload:{SubjectList:o}});case 6:case"end":return e.stop()}}),e)}))()},getTags:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(lu,n);case 2:return t=e.sent,o=t.data.list,e.next=6,a({type:"save",payload:{Tags:o}});case 6:case"end":return e.stop()}}),e)}))()},getUserComments:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fu,n);case 2:return t=e.sent,o=t.data.list,e.next=6,a({type:"save",payload:{UserComments:o}});case 6:case"end":return e.stop()}}),e)}))()},getInfoShow:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(pu,n);case 2:return t=e.sent,o=t.data,e.next=6,a({type:"save",payload:{InfoShow:o}});case 6:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}}},hu=du,vu={namespace:"loadingss",state:{global:!1,effects:{},models:{}}};function mu(e){return yu.apply(this,arguments)}function yu(){return(yu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/tidings.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gu(e){return bu.apply(this,arguments)}function bu(){return(bu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/".concat(t.userId,"/unread_message_info.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _u(e){return wu.apply(this,arguments)}function wu(){return(wu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/".concat(t.userId,"/private_messages.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xu(e){return ku.apply(this,arguments)}function ku(){return(ku=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/".concat(t.id,"/recent_contacts.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Eu(e){return Su.apply(this,arguments)}function Su(){return(Su=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users_for_private_messages.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Cu(e){return Pu.apply(this,arguments)}function Pu(){return(Pu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/users/".concat(t.userId,"/private_message_details.json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ou={namespace:"messages",state:{tidingsList:[],privateMessage:[],unreadInfo:[],recentContacts:{},privateMessageDetails:{},userPrivateMessage:{},actionTabs:{key:"",params:{}}},effects:{getPrivateMessageDetails:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Cu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{privateMessageDetails:t||[]}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getTidings:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(mu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{tidingsList:t||[]}});case 5:case"end":return e.stop()}}),e)}))()},getPrivateMessages:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(_u,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{privateMessage:t||[]}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getUsersForPrivateMessages:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Eu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{userPrivateMessage:t||[]}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},unreadMessageInfo:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(gu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{unreadInfo:t||[]}});case 5:case"end":return e.stop()}}),e)}))()},getRecentContacts:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(xu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{recentContacts:t||[]}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},ju=Ou,Au=function(e){return(0,m.ZP)("/api/examination_banks/exist_course.json",{method:"post",body:e})},Tu=function(e){return(0,m.ZP)("/api/examination_banks/check_examination_banks.json",{method:"post",body:e})},Iu=function(e){return(0,m.ZP)("/api/examination_banks/".concat(e.id,"/copy.json"),{method:"post",body:e})},Mu=function(e){return(0,m.ZP)("/api/examination_banks/".concat(e.id,"/get_question_type_alias.json"),{method:"get",params:e})};function Ru(e){return Lu.apply(this,arguments)}function Lu(){return(Lu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/disciplines.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Zu(e){return Du.apply(this,arguments)}function Du(){return(Du=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/disciplines/by_examination_banks.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Nu(e){return $u.apply(this,arguments)}function $u(){return($u=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fu(e){return Bu.apply(this,arguments)}function Bu(){return(Bu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/set_public.json"),{method:"post"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qu(e){return zu.apply(this,arguments)}function zu(){return(zu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Hu(e){return Uu.apply(this,arguments)}function Uu(){return(Uu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/question_banks/my_courses.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Wu=function(e){return(0,m.ZP)("/api/examination_banks/batch_send_to_course.json",{method:"post",body:e})};function Vu(e){return Gu.apply(this,arguments)}function Gu(){return(Gu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/send_to_course.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Yu(e){return Ku.apply(this,arguments)}function Ku(){return(Ku=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,".json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xu(e){return Qu.apply(this,arguments)}function Qu(){return(Qu=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/examination_banks_item_banks/").concat(t.itemId,"/set_score"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ju(e){return ec.apply(this,arguments)}function ec(){return(ec=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/examination_banks_item_banks/").concat(t.itemId,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function tc(e){return nc.apply(this,arguments)}function nc(){return(nc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/examination_banks_item_banks/batch_set_score.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function rc(e){return ac.apply(this,arguments)}function ac(){return(ac=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/examination_banks_item_banks/destroy_by_item_type.json"),{method:"delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oc(e){return ic.apply(this,arguments)}function ic(){return(ic=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/examination_banks_item_banks/").concat(t.itemId,"/adjust_position.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function uc(e){return cc.apply(this,arguments)}function cc(){return(cc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,".json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function sc(e){return lc.apply(this,arguments)}function lc(){return(lc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/teach_group_shares.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fc(e){return pc.apply(this,arguments)}function pc(){return(pc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/edit_exam.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dc(e){return hc.apply(this,arguments)}function hc(){return(hc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t.id,"/examination_banks_item_banks/create_item_bank.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vc(e){return mc.apply(this,arguments)}function mc(){return(mc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/".concat(t,"/exercise_header.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var yc=n(91232),gc=n.n(yc),bc=n(1079),_c=[{id:0,name:"单选题",nameType:"SINGLE"},{id:1,name:"多选题",nameType:"MULTIPLE"},{id:2,name:"判断题",nameType:"JUDGMENT"},{id:3,name:"填空题",nameType:"COMPLETION"},{id:4,name:"简答题",nameType:"SUBJECTIVE"},{id:5,name:"实训题",nameType:"PRACTICAL"},{id:6,name:"编程题",nameType:"PROGRAM"},{id:7,name:"组合题",nameType:"COMBINATION"},{id:8,name:"程序填空题",nameType:"BPROGRAM"}],wc=function(e,t){var n,r,a,o,u,c,s,l,f;if(e){var p=e||{},d=p.exam,h=p.single_questions,v=p.multiple_questions,m=p.judgement_questions,y=p.program_questions,g=p.completion_questions,b=p.subjective_questions,_=p.practical_questions,w=p.combination_questions,x=p.bprogram_questions,k=[i()({type:"SINGLE",question_type:0,name:(null==t||null===(n=t.find((function(e){return e.value==_c[0].nameType})))||void 0===n?void 0:n.name)||_c[0].name},h),i()({type:"MULTIPLE",question_type:1,name:(null==t||null===(r=t.find((function(e){return e.value==_c[1].nameType})))||void 0===r?void 0:r.name)||_c[1].name},v),i()({type:"JUDGMENT",question_type:2,name:(null==t||null===(a=t.find((function(e){return e.value==_c[2].nameType})))||void 0===a?void 0:a.name)||_c[2].name},m),i()({type:"PROGRAM",question_type:6,name:(null==t||null===(o=t.find((function(e){return e.value==_c[6].nameType})))||void 0===o?void 0:o.name)||_c[6].name},y),i()({type:"COMPLETION",question_type:3,name:(null==t||null===(u=t.find((function(e){return e.value==_c[3].nameType})))||void 0===u?void 0:u.name)||_c[3].name},g),i()({type:"SUBJECTIVE",question_type:4,name:(null==t||null===(c=t.find((function(e){return e.value==_c[4].nameType})))||void 0===c?void 0:c.name)||_c[4].name},b),i()({type:"PRACTICAL",question_type:5,name:(null==t||null===(s=t.find((function(e){return e.value==_c[5].nameType})))||void 0===s?void 0:s.name)||_c[5].name},_),i()({type:"COMBINATION",question_type:7,name:(null==t||null===(l=t.find((function(e){return e.value==_c[7].nameType})))||void 0===l?void 0:l.name)||_c[7].name},w),i()({type:"BPROGRAM",question_type:8,name:(null==t||null===(f=t.find((function(e){return e.value==_c[8].nameType})))||void 0===f?void 0:f.name)||_c[8].name},x)],E=[];if(e.sort_by_qustion_type){var S,C=gc()(e.qustion_type_order_name_en);try{var P=function(){var e=S.value;E.push(k.find((function(t){return t.type===e})))};for(C.s();!(S=C.n()).done;)P()}catch(e){C.e(e)}finally{C.f()}}return{exam:d,questionList:(e.sort_by_qustion_type?E:k).filter((function(e){return(null==e?void 0:e.questions_count)>0})).map((function(e,t){var n;return i()(i()({},e),{number:(0,bc.EM)(t+1),questions:null==e||null===(n=e.questions)||void 0===n?void 0:n.map((function(t){return i()(i()({},t),{},{shixun:t.examination_bank_shixun_challenges,question_type:e.question_type})}))})}))}}},xc=function(e){return null==e?void 0:e.map((function(e){var t=(e.sub_disciplines||[]).map((function(e){return{value:e.id,label:e.name}}));return{value:e.id,label:e.name,children:t}}))},kc={1:"一",2:"二",3:"三",4:"四",5:"五",6:"六",7:"七",8:"八"},Ec=function(e){if(e){var t=e||{},n=t.all_questions_count,r=t.all_score,a=t.single_questions,o=t.multiple_questions,u=t.judgement_questions,c=t.program_questions,s=t.completion_questions,l=t.subjective_questions,f=t.practical_questions,p=t.combination_questions;return{all_questions_count:n,all_score:r,questionList:[i()({type:"SINGLE",name:"单选题"},a),i()({type:"MULTIPLE",name:"多选题"},o),i()({type:"COMPLETION",name:"填空题"},s),i()({type:"JUDGMENT",name:"判断题"},u),i()({type:"SUBJECTIVE",name:"简答题"},l),i()({type:"PROGRAM",name:"编程题"},c),i()({type:"PRACTICAL",name:"实训题"},f),i()({type:"COMBINATION",name:"组合题"},p)].filter((function(e){return e.questions_count>0})).map((function(e,t){return i()(i()({},e),{number:kc[t+1]})}))}}},Sc={namespace:"paperlibrary",state:{paperData:void 0,disciplinesData:void 0,teachGroupData:void 0,courseOptions:[],actionTabs:{key:"",params:{}}},effects:{postExistCourse:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Au,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},postCheckExaminationBanks:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Tu,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},postPaperlibraryCopy:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Iu,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getDisciplines:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ru,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{disciplinesData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCustomDisciplines:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Zu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{disciplinesData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getEditDisciplines:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ru,n);case 2:return t=e.sent,o=null==t?void 0:t.disciplines,u=xc(o),e.next=7,a({type:"save",payload:{courseOptions:u,disciplinesData:i()({},t)}});case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e)}))()},getTeachGroupData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(sc,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{teachGroupData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getPaperData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o,i;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Yu,n);case 2:return t=e.sent,e.next=5,r(Mu,n);case 5:return o=e.sent,i=wc(t,o.data),e.next=9,a({type:"save",payload:{paperData:i}});case 9:return e.abrupt("return",t);case 10:case"end":return e.stop()}}),e)}))()},getPaperlibraryList:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Nu,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setPublic:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Fu,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},handleDelete:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(qu,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getCourseList:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Hu,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},postBatchSendToCourse:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Wu,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},sendToClass:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Vu,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},adjustPosition:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(oc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setScore:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Xu,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},handleDeleteEditQuestion:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ju,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},batchSetScore:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(tc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},batchDelete:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(rc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updatePaper:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(uc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Cc=Sc,Pc={namespace:"newExercisePaper",state:{loading:!0,exerciseExportHeadData:{},tagDisciplineData:{},editData:{},actionTabs:{removeEventListenerExitScreen:!1}},effects:{getExerciseExportHeadData:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(vc,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{exerciseExportHeadData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},editExercise:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fc,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getTagDiscipline:function(e,t){var n=e.payload,r=(e.callback,t.call),a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Oe.YY,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{tagDisciplineData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},editExerciseQuestion:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(dc,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},addExerciseQuestion:function(e,t){var n=e.payload,r=(e.callback,t.call);t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(dc,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},modifyTitle:function(e,t){var n=(0,vt.cloneDeep)(e);return n.editData.exercise.exercise_name=t.payload,n}},subscriptions:{setup:function(e){e.dispatch,e.history}}},Oc=Pc,jc=n(77233),Ac={namespace:"pathsDetail",state:{detail:{},rightData:{},Courses:{},stageData:[],StageChildrenData:{},discusses:{},actionTabs:{key:"",params:{}},isShowSchedule:!1,keywords:"",stage_id:null,visibleType:"All",editKey:-1},effects:{getDiscusses:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.Ax,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{discusses:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getKnowledgeGraphs:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.Bz,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detail:i()({},(null==t?void 0:t.data)||{})}});case 5:return e.abrupt("return",(null==t?void 0:t.data)||{});case 6:case"end":return e.stop()}}),e)}))()},getPathsDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.lk,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getCourseDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.Sp,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getRightData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.AQ,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{rightData:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getCoureses:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.ue,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{Courses:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getStageChildrenData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.w4,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{StageChildrenData:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getStageData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(t,o,i,u){var c;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=null,null==n||!n.show_course_section){e.next=7;break}return e.next=4,r(jc.yN,n);case 4:c=e.sent,e.next=10;break;case 7:return e.next=9,r(jc.p,n);case 9:c=e.sent;case 10:return e.next=12,a({type:"save",payload:{stageData:(null===(t=c)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.stages)||(null===(o=c)||void 0===o?void 0:o.stages)||[],isShowSchedule:(null===(i=c)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.is_show_schedule)||(null===(u=c)||void 0===u?void 0:u.is_show_schedule)||!1}});case 12:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}}},Tc=Ac,Ic={namespace:"pathsList",state:{name:"",loading:!0,actionTabs:{key:"",params:{}},listParams:{sort:"desc",order:"new",page:1,limit:16,keyword:""}},effects:{getCourse:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n,e.next=3,r(jc.tS,n);case 3:return o=e.sent,e.next=6,a({type:"save",payload:i()({listParams:t},o)});case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)}))()},getMenus:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.fh,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{menus:t}});case 5:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},clearListParams:function(e,t){e.payload,t.call;var n=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:"save",payload:{listParams:{sort:"desc",order:"new",page:1,limit:16,keyword:""}}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Mc=Ic,Rc={namespace:"newCourse",state:{actionTabs:{key:"",params:{}}},effects:{editCourse:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.tu,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},submitCourse:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.pU,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getEditCourseData:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.mQ,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getSchoolOption:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.GY,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},appplySchool:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.bz,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Lc=Rc,Zc={namespace:"pathsOverview",state:{},effects:{getSubjectUseInfos:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.nq,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SubjectUseInfos:t}});case 5:case"end":return e.stop()}}),e)}))()},getRankList:function(e,t){var n=e.payload,r=t.call,o=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.Fg,n);case 2:return t=e.sent,e.next=5,o({type:"save",payload:{RankList:i()(i()({},t),{},{learn_list:[{rank:"排名",name:"实践课程名称",data:"学习人数"}].concat(a()((null==t?void 0:t.learn_list)||[]))})}});case 5:case"end":return e.stop()}}),e)}))()},getStatisticsBody:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.Gz,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SBody:t}});case 5:case"end":return e.stop()}}),e)}))()},getOnlineCount:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.hS,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{OnlineCount:null==t?void 0:t.data}});case 5:case"end":return e.stop()}}),e)}))()},getStatisticsHeader:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jc.Hl,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SHeader:t}});case 5:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Dc=Zc;function Nc(e){return $c.apply(this,arguments)}function $c(){return($c=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/disciplines.json",{method:"get",params:i()(i()({},t),{},{clazz:"ItemBanksGroup"})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fc(e){return Bc.apply(this,arguments)}function Bc(){return(Bc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets/basket_list.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qc(e){return zc.apply(this,arguments)}function zc(){return(zc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Hc(e){return Uc.apply(this,arguments)}function Uc(){return(Uc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks/list.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wc(e){return Vc.apply(this,arguments)}function Vc(){return(Vc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks/".concat(t.id,"/set_private.json"),{method:"post"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Gc(e){return Yc.apply(this,arguments)}function Yc(){return(Yc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks/".concat(t.id,"/set_public.json"),{method:"post"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Kc(e){return Xc.apply(this,arguments)}function Xc(){return(Xc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks/".concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Qc(e){return Jc.apply(this,arguments)}function Jc(){return(Jc=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/problems/".concat(t.id,"/start.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function es(e){return ts.apply(this,arguments)}function ts(){return(ts=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets/".concat(t.id,".json"),{method:"delete",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ns(e){return rs.apply(this,arguments)}function rs(){return(rs=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function as(e){return os.apply(this,arguments)}function os(){return(os=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/cancel_items.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function is(e){return us.apply(this,arguments)}function us(){return(us=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets/delete_item_type.json",{method:"delete",body:{item_type:t.type}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function cs(e){return ss.apply(this,arguments)}function ss(){return(ss=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks/cancel_items.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ls(e){return fs.apply(this,arguments)}function fs(){return(fs=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/tag_disciplines.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ps(e){return ds.apply(this,arguments)}function ds(){return(ds=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks/".concat(t.id,".json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function hs(e){return vs.apply(this,arguments)}function vs(){return(vs=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ms(e){return ys.apply(this,arguments)}function ys(){return(ys=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks/".concat(t.id,"/edit.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gs(e){return bs.apply(this,arguments)}function bs(){return(bs=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/problems/".concat(t.id,"/edit.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _s(e){return ws.apply(this,arguments)}function ws(){return(ws=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xs(e){return ks.apply(this,arguments)}function ks(){return(ks=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets/".concat(t.id,"/set_score.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Es(e){return Ss.apply(this,arguments)}function Ss(){return(Ss=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets/".concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Cs(e){return Ps.apply(this,arguments)}function Ps(){return(Ps=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets/batch_set_score.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Os(e){return js.apply(this,arguments)}function js(){return(js=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets/delete_item_type.json",{method:"delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function As(e){return Ts.apply(this,arguments)}function Ts(){return(Ts=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_baskets/".concat(t.id,"/adjust_position.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Is(e){return Ms.apply(this,arguments)}function Ms(){return(Ms=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/examination_banks.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Rs(e){return Ls.apply(this,arguments)}function Ls(){return(Ls=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/item_banks_groups/mine.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Zs(e){return Ds.apply(this,arguments)}function Ds(){return(Ds=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/teach_group_shares.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ns(e){return(0,m.ZP)("/api/item_banks/cancel_public.json",{method:"post",body:{ids:a()(e.id)}})}var $s={namespace:"problemset",state:{disciplinesData:void 0,courseOptions:[],basketData:void 0,editData:void 0,groupData:void 0,teachGroupData:void 0,actionTabs:{key:"",params:{}},groupfolderList:{}},effects:{getGroup:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(qc,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{groupfolderList:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getDisciplines:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Nc,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{disciplinesData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getEditDisciplines:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Nc,n);case 2:return t=e.sent,o=null==t?void 0:t.disciplines,u=xc(o),e.next=7,a({type:"save",payload:{courseOptions:u,disciplinesData:i()({},t)}});case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e)}))()},getBasketList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Fc,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{basketData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getTeachGroupData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Zs,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{teachGroupData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getEditData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ms,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getEditDataBprogram:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(gs,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getGroupData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Rs,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{groupData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getItemBanks:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Hc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setPrivate:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Wc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},revokePublish:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ns,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setPublic:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Gc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},handleDelete:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Kc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},startExperience:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Qc,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},cancel:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(es,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},select:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ns,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},examUnselectAll:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(as,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},basketDelete:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(is,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},unselectAll:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(cs,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},addKnowledge:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ls,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},editProblemset:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ps,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},addProblemset:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(hs,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Fs=$s,Bs={namespace:"problemsetPreview",state:{disciplinesData:void 0,courseOptions:[],paperData:void 0,actionTabs:{key:"",params:{}}},effects:{getPaperData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(_s,n);case 2:return t=e.sent,o=Ec(t),e.next=6,a({type:"save",payload:{paperData:o}});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getEditDisciplines:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Nc,n);case 2:return t=e.sent,o=null==t?void 0:t.disciplines,u=xc(o),e.next=7,a({type:"save",payload:{courseOptions:u,disciplinesData:i()({},t)}});case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e)}))()},setScore:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(xs,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},handleDelete:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Es,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},batchSetScore:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Cs,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},batchDelete:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Os,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},adjustPosition:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(As,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},newPreviewProblemset:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Is,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},qs=Bs;function zs(e){return Hs.apply(this,arguments)}function Hs(){return(Hs=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/restfuls.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Us(e){return Ws.apply(this,arguments)}function Ws(){return(Ws=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/restfuls/".concat(t.id,".json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Vs={namespace:"restful",state:{restful:void 0,restfulDetail:{},actionTabs:{key:"",params:{}}},effects:{getRestful:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(zs,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{restful:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getRestfulDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Us,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{restfulDetail:i()({},(null==t?void 0:t.data)||{})}});case 5:return e.abrupt("return",(null==t?void 0:t.data)||{});case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Gs=Vs,Ys=n(18240),Ks=function(){var e,t,n,r,a,o,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[{name:"内容审核情况",id:"Content",status:null==i||null===(e=i.content_info)||void 0===e?void 0:e.status,username:null==i||null===(t=i.content_info)||void 0===t?void 0:t.username,time:null==i||null===(n=i.content_info)||void 0===n?void 0:n.time},{name:"性能审核情况",id:"Performance",status:null==i||null===(r=i.perference_info)||void 0===r?void 0:r.status,username:null==i||null===(a=i.perference_info)||void 0===a?void 0:a.username,time:null==i||null===(o=i.perference_info)||void 0===o?void 0:o.time}]},Xs={namespace:"shixunsDetail",state:{detail:void 0,rightData:void 0,challenges:{is_jupyter:!0,is_jupyter_lab:!0}||null,auditSituationData:void 0,setting:void 0,challengesNew:{},challengesEdit:{},editChallengesQuestion:{},fileContent:{},hasStartedEnv:!1,repository:{},mirrorApplies:{},infoWithJupyterLab:{},actionTabs:{key:"",params:{}},pollDetail:{}},effects:{getStartAnswer:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.wX,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{pollDetail:null==t?void 0:t.data}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getShixunsDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Po,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{detail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getMirrorApplies:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.tX,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{mirrorApplies:i()({},(null==t?void 0:t.data)||{})}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getRightData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.AQ,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{rightData:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getChallengesData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.n5,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{challenges:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},saveCopyForExercise:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.FB,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},execJupyter:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.BK,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},execShixun:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Ir,n);case 2:return-3===(null==(t=e.sent)?void 0:t.status)&&(0,bc.eF)(),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)}))()},openChallenge:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.dK,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},challengeMoveUp:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.zD,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},challengeMoveDown:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.hn,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},cancelCollect:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.rs,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},collect:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.KM,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},searchUserCourses:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys._7,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},sendToCourse:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Q,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},cancelRelease:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Ne,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},cancelPublic:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Er,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},applyPublic:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.WO,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},release:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Ar,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updateAuditSituation:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.LP,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getCollaboratorsData:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.j8,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},addCollaborator:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.OV,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},addTeachGroupMember:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.l3,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getChangeManager:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.P2,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},changeManager:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.X$,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteCollaborators:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.xk,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getRankingList:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.h_,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getMirrorScript:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Z2,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getScriptContent:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Bj,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getCustomScript:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Wi,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updateSettingBasicInfo:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.ZO,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getShixunQuote:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Gr,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteShixun:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Ps,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},permanentClose:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.U9,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getDepartments:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Ql,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updatePermissionSetting:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.aH,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updateLearnSetting:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.yE,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updateSetting:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.m7,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getSetData:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.U0,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteDataSet:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.uo,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteGitFile:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.sr,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteGitFiles:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.p0,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},moveGitFile:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.IT,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},moveGitFiles:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.t2,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getRepository:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Ag,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{repository:i()({},t)}});case 5:return e.abrupt("return",i()({},t));case 6:case"end":return e.stop()}}),e)}))()},getRepositorys:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Wl,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{repository:i()({},t)}});case 5:return e.abrupt("return",i()({},t));case 6:case"end":return e.stop()}}),e)}))()},getSecretRepository:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.w,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{secretRepository:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},addRepositoryFile:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.v3,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},addRepositoryFiles:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.fL,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getRepositoryCommit:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Je,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getFileContent:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.LK,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{fileContent:i()(i()({},t),{},{params:n})}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getFileContents:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.nu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{fileContent:i()(i()({},t),{},{params:n})}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},updateRepositoryFile:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.kF,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updateRepositoryFiles:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.jq,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},uploadGitFolder:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Op,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},updateCollaboratorEditable:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Dz,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getSettingsData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.DC,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{setting:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getChallengesNew:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.km,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{challengesNew:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},getChallengesEdit:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.q0,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{challengesEdit:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getAuditSituationData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.GI,n);case 2:return t=e.sent,o=Ks(t),e.next=6,a({type:"save",payload:{auditSituationData:o}});case 6:case"end":return e.stop()}}),e)}))()},getEditChallengesQuestion:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.UQ,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{editChallengesQuestion:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getInfoWithJupyterLab:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.mI,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{infoWithJupyterLab:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return console.log("reducers:",e,t),i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Qs=Xs,Js={namespace:"shixunsList",state:{name:"",loading:!0,listParams:{sort:"desc",order_by:"new",page:1,limit:16,keyword:"",status:0,diff:0,hideme:!1}},effects:{getShixuns:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t,o;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.he,n);case 2:return t=e.sent,o=i()({},n),e.next=6,a({type:"save",payload:i()({listParams:o},t)});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getMenus:function(e,t){var n=e.payload,r=t.call,o=t.put;return d()().mark((function e(t){var i;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.I_,n);case 2:return null==(i=e.sent)||null===(t=i.disciplines)||void 0===t||t.map((function(e){return e.sub_repertoires=e.sub_disciplines,e})),e.next=6,o({type:"save",payload:{menus:a()((null==i?void 0:i.disciplines)||[])}});case 6:case"end":return e.stop()}}),e)}))()},clearListParams:function(e,t){e.payload,t.call;var n=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:"save",payload:{listParams:{sort:"desc",order_by:"new",page:1,limit:16,keyword:"",status:0,diff:0,hideme:!1}}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},el=Js,tl={namespace:"newShixuns",state:{newData:{},actionTabs:{key:"",params:{}},environmentData:{}},effects:{getNewShixunsData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.b8,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{newData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},deleteAttachment:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.OW,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},applyShixunMirror:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.EH,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},submitShixuns:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.eX,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getShixunsJupyterLab:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Gu,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{newData:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},getEnvironmentData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.K,n);case 2:return t=e.sent,console.log(t,"response"),e.next=6,a({type:"save",payload:{environmentData:i()({},t.data)}});case 6:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){e.dispatch,e.history}}},nl=tl,rl={namespace:"shixunsOverview",state:{},effects:{getShixunUseInfos:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.e,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{ShixunUseInfos:t}});case 5:case"end":return e.stop()}}),e)}))()},getRankList:function(e,t){var n=e.payload,r=t.call,o=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Fg,n);case 2:return t=e.sent,e.next=5,o({type:"save",payload:{RankList:{user_list:[{rank:"排名",name:"姓名",role:"角色",student_id:"学号/工号",num:"通过关卡数"}].concat(a()((null==t?void 0:t.user_list)||[])),learn_list:[{rank:"排名",name:"实践项目名称",num:"学习人数"}].concat(a()((null==t?void 0:t.learn_list)||[])),clearance_list:[{rank:"排名",name:"实践项目名称",num:"通关数"}].concat(a()((null==t?void 0:t.clearance_list)||[])),quote_list:[{rank:"排名",name:"实践项目名称",num:"引用次数"}].concat(a()((null==t?void 0:t.quote_list)||[]))}}});case 5:case"end":return e.stop()}}),e)}))()},getStatisticsBody:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Gz,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SBody:t}});case 5:case"end":return e.stop()}}),e)}))()},getOnlineCount:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.hS,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{OnlineCount:null==t?void 0:t.data}});case 5:case"end":return e.stop()}}),e)}))()},getStatisticsHeader:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ys.Hl,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{SHeader:t}});case 5:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},al=rl;function ol(e){return il.apply(this,arguments)}function il(){return(il=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/shixuns/new.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ul(e){return cl.apply(this,arguments)}function cl(){return(cl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/shixuns/".concat(t.id,"/required_status.json"),{method:"Get",params:{}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var sl={namespace:"practiceSetting",state:{data:{},is_published:!0,updateIndex:1,id:"",questionName:"",base_info_warning:!1,challenges_warning:!1,repository_warning:!1,mirror_warning:!1,service_warning:!1,selectQuestionParams:{},newQuestion:null,user_name:"",user_image_url:"",title:"",windows_vnc:!0,isExistComplete:!1,sideBar:{tabsActive:"",selectPath:"",confirmLeave:!1}},effects:{setParams:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:i()({},n)});case 2:case"end":return e.stop()}}),e)}))()},getTestData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ol,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{data:t}});case 5:case"end":return e.stop()}}),e)}))()},setUpdateIndex:function(e,t){e.payload,t.call;var n=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:"save",payload:{updateIndex:Math.random()}});case 2:case"end":return e.stop()}}),e)}))()},getCommonData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(ul,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:i()({},t.data)});case 5:case"end":return e.stop()}}),e)}))()},setSideBarTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"sideBar",payload:i()({},n)});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},sideBar:function(e,t){return i()(i()({},e),{},{sideBar:i()(i()({},e.sideBar),t.payload)})}},subscriptions:{setup:function(e){e.dispatch,e.history}}},ll=sl,fl=n(23003),pl={namespace:"userDetail",state:{systemUpdate:void 0,homepageInfo:void 0,homeworkBanksDetail:{},actionTabs:{key:"",params:{}}},effects:{getHomeworkBanksDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.JJ,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{homeworkBanksDetail:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getSystemUpdate:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.n0,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{systemUpdate:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},getHomepageInfo:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.DA,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{homepageInfo:i()({},t)}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},signed:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.qN,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getCourses:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.Ho,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getShixuns:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.rV,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getPaths:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.w3,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getProjects:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.mW,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getVideos:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.WY,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getReviewVideos:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.Qx,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},deleteVideo:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.FM,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},getQuestionBanks:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.ai,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},topicsSetPublic:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.Cx,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},topicsDelete:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.WS,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},topicGetCourseList:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.gI,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))()},topicSendToClass:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("videos"!==n.object_type){e.next=4;break}return e.next=3,r(fl.Fn,n);case 3:case 6:return e.abrupt("return",e.sent);case 4:return e.next=6,r(fl.Ef,n);case 7:case"end":return e.stop()}}),e)}))()},logWatchHistory:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.lO,n);case 2:return t=e.sent,e.abrupt("return",null==t?void 0:t.log_id);case 4:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},dl=pl,hl=["to"],vl={namespace:"user",state:{name:"用户登录模块",showPopLogin:!1,showUpdateProfilePanel:!1,backurl:"",isCurrentPage:!1,showClosable:!1,bindAccountModalVisible:!1,userInfoForBindAccountModal:{},loginInfo:{login:"",password:""},userInfo:{},navigationInfo:{},loading:!0,actionTabs:{key:"",params:{},phone:""}},effects:{login:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t,a;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.to,a=Yo()(n,hl),e.next=3,r(fl.Es,a);case 3:if(!e.sent.status)try{t?f.history.replace(t):location.reload()}catch(e){}case 5:case"end":return e.stop()}}),e)}))()},showPopLogin:function(e,t){var n=e.payload,r=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showPopLogin:n.showPopLogin,showClosable:n.showClosable}});case 2:case"end":return e.stop()}}),e)}))()},showUpdateProfilePanel:function(e,t){var n=e.payload,r=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showUpdateProfilePanel:n.showUpdateProfilePanel,showClosable:n.showClosable,backurl:n.backurl,isCurrentPage:n.isCurrentPage}});case 2:case"end":return e.stop()}}),e)}))()},setBindAccountModal:function(e,t){var n=e.payload,r=t.put;return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{bindAccountModalVisible:n.bindAccountModalVisible,userInfoForBindAccountModal:n.userInfoForBindAccountModal,loginInfo:n.loginInfo}});case 2:case"end":return e.stop()}}),e)}))()},getUserInfo:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.bG,i()({},n));case 2:return t=e.sent,localStorage.userInfo=JSON.stringify(t),e.next=6,a({type:"save",payload:{userInfo:i()({},t)}});case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()},getNavigationInfo:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(fl.x4,i()({},n));case 2:return t=e.sent,e.next=5,a({type:"save",payload:{navigationInfo:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}}},ml=vl;function yl(e){return gl.apply(this,arguments)}function gl(){return(gl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/courses/".concat(t.coursesId,"/online_learning.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var bl=function(){var e,t,n,r,a=window.location.href.split("/");if(a.includes("video")){var o=null===(e=a[a.length-1])||void 0===e?void 0:e.split("?")[0];o=Number(o);var i=null===(t=a[a.length-1])||void 0===t||null===(t=t.split("?")[1])||void 0===t?void 0:t.split("=")[1];return"subject_id"===(null===(n=a[a.length-1])||void 0===n||null===(n=n.split("?")[1])||void 0===n?void 0:n.split("=")[0])?{videoId:o,subject_id:i}:"new_video_id"===(null===(r=a[a.length-1])||void 0===r||null===(r=r.split("?")[1])||void 0===r?void 0:r.split("=")[0])?{videoId:o,new_video_id:i}:{videoId:o,course_id:i}}},_l={namespace:"videoDetail",state:{detail:{},actionTabs:{key:"",params:{}},videoTabs:{key:"",params:{}},stages:[],cust_seq:0,queryParams:bl(),videoList:[],attachmentList:[],selectParams:{checkBoxValue:!1,radioValue:1},active:{}},effects:{getVideoDetail:function(e,t){var n=e.payload,r=e.callback,a=t.call,o=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(Mo,n);case 2:if(t=e.sent,!r){e.next=7;break}r(t),e.next=9;break;case 7:return e.next=9,o({type:"save",payload:{detail:i()({},t)}});case 9:return e.abrupt("return",t);case 10:case"end":return e.stop()}}),e)}))()},setVideoValue:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{detail:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},setVideoTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{videoTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},setSelectValue:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{selectParams:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},getStageData:function(e,t){var n=e.payload,r=t.call,a=t.put,o=t.select;return d()().mark((function e(){var t,i,u,c,s,l,f,p,h,v;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r($o,n);case 2:return t=e.sent,e.next=5,r(jc.lk,{id:n.subject_id});case 5:return i=e.sent,e.next=8,o((function(e){return e.videoDetail}));case 8:return u=e.sent,c=u.queryParams,s=t.stages,f=[],p=[],h={},v=function e(t){t.forEach((function(t){String(t.id)===String(c.videoId)&&(h=t),"VideoItem"===t.item_type?f.push(t):"Attachment"===t.item_type&&p.push(t),t.children&&t.children.length&&e(t.children)}))},null==(l=void 0===s?[]:s)||l.forEach((function(e){v(e.items)})),window.filterVideoSign=[].concat(f),e.next=19,a({type:"save",payload:{stages:l,active:h,cust_seq:i.cust_seq,videoList:f,attachmentList:p}});case 19:case"end":return e.stop()}}),e)}))()},getVideoData:function(e,t){var n=e.payload,r=t.call,a=t.put;t.select;return d()().mark((function e(){var t,o,i,u,c;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Bo,n);case 2:return t=e.sent,o=t.categories,i=void 0===o?[]:o,u=t.coruse_videos,c=void 0===u?[]:u,e.next=6,a({type:"save",payload:{stages:(null==i?void 0:i.length)>0?i:[{coruse_videos:c,name:"未分配目录"}]}});case 6:case"end":return e.stop()}}),e)}))()},getCourseStageData:function(e,t){var n=e.payload,r=t.call,a=t.put,o=t.select;return d()().mark((function e(){var t,i,u,c,s,l,f,p;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(yl,n);case 2:return t=e.sent,e.next=5,o((function(e){return e.videoDetail}));case 5:return i=e.sent,u=i.queryParams,c=t.stages,s=[],l=[],f={},p=function e(t){t.forEach((function(t){String(t.id)===String(u.videoId)&&(f=t),"VideoItem"===t.item_type?s.push(t):"Attachment"===t.item_type&&l.push(t),t.children&&t.children.length&&e(t.children)}))},null==c||c.forEach((function(e){p(e.items)})),window.filterVideoSign=[].concat(s),e.next=16,a({type:"save",payload:{active:f,stages:c,cust_seq:!0,videoList:s,attachmentList:l}});case 16:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)},handleListItemClick:function(e,t){var n=e.videoList,r=e.attachmentList,o=t.payload.videoId||t.payload.attachmentId,u=[].concat(a()(n),a()(r)).find((function(e){return"".concat(e.id)==="".concat(o)}));return i()(i()({},e),{},{active:u,queryParams:i()(i()({},bl()),t.payload)})}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},wl=_l,xl=function(){var e=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/base_statistic_data.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function kl(e){return El.apply(this,arguments)}function El(){return(El=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/discussions/").concat(t.id,".json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Sl(e){return Cl.apply(this,arguments)}function Cl(){return(Cl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/discussions/").concat(t.id,".json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pl(e){return Ol.apply(this,arguments)}function Ol(){return(Ol=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/discussions.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function jl(e){return Al.apply(this,arguments)}function Al(){return(Al=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/discussions.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Tl(e){return Il.apply(this,arguments)}function Il(){return(Il=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/good_lessons/").concat(t.id,"/add_resources.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ml(e){return Rl.apply(this,arguments)}function Rl(){return(Rl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/good_lessons/").concat(t.id,"/lesson_resources_list.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ll(e){return Zl.apply(this,arguments)}function Zl(){return(Zl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/good_lessons/").concat(t.id,".json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Dl(e){return Nl.apply(this,arguments)}function Nl(){return(Nl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/good_lessons/").concat(t.id,".json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $l(e){return Fl.apply(this,arguments)}function Fl(){return(Fl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/good_lessons.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bl(e){return ql.apply(this,arguments)}function ql(){return(ql=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/good_lessons.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function zl(e){return Hl.apply(this,arguments)}function Hl(){return(Hl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(null==t?void 0:t.id,".json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ul(e){return Wl.apply(this,arguments)}function Wl(){return(Wl=v()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.ZP)("/api/virtual_classrooms/".concat(null==t?void 0:t.id,"/modules.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Vl,Gl={namespace:"virtualSpaces",state:{showMenu:!0,loading:!0,actionTabs:{key:"",params:{},module_id:""},virtualSpacesDetails:{},menus:[],LessonsList:{},LessonDetail:{},LessonResList:{},DiscussionList:{},DiscussionDetail:{},Workplace:{BaseData:{}}},effects:{getBaseStatisticData:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(xl,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{Workplace:{BaseData:t.data}}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},putEditDiscussion:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(kl,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getDiscussionDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Sl,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{DiscussionDetail:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},postDiscussionList:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Pl,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getDiscussionList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(jl,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{DiscussionList:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},postAddLessonRes:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Tl,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getLessonResourcesList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ml,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{LessonResList:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},putGoodLessonsDetail:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Dl,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getGoodLessonsDetail:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ll,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{LessonDetail:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},postGoodLessonsList:function(e,t){var n=e.payload,r=t.call;t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r($l,n);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))()},getGoodLessonsList:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Bl,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{LessonsList:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()},setActionTabs:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{actionTabs:i()({},n)}});case 2:case"end":return e.stop()}}),e)}))()},setShowMenu:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{showMenu:n}});case 2:case"end":return e.stop()}}),e)}))()},getVirtualSpacesDetails:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(zl,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{virtualSpacesDetails:i()({},t)}});case 5:case"end":return e.stop()}}),e)}))()},setVirtualSpacesLoading:function(e,t){var n=e.payload,r=(t.call,t.put);return d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"save",payload:{loading:n}});case 2:case"end":return e.stop()}}),e)}))()},getVirtualSpacesMenus:function(e,t){var n=e.payload,r=t.call,a=t.put;return d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Ul,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:{menus:t}});case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)}))()}},reducers:{save:function(e,t){return i()(i()({},e),t.payload)}},subscriptions:{setup:function(e){var t=e.dispatch;return e.history.listen((function(e){"/"===e.pathname&&t({type:"query"})}))}}},Yl={model_1:{namespace:"account.index",model:K},model_2:{namespace:"classrooms.announcement",model:ne},model_3:{namespace:"classrooms.attachment",model:oe},model_4:{namespace:"classrooms.boards",model:Se},model_5:{namespace:"classrooms.exercise",model:Ae},model_6:{namespace:"classrooms.graduation",model:ht},model_7:{namespace:"classrooms.homeworks",model:Nn},model_8:{namespace:"classrooms.index",model:La},model_9:{namespace:"classrooms.new",model:Da},model_10:{namespace:"classrooms.overview",model:$a},model_11:{namespace:"classrooms.polls",model:so},model_12:{namespace:"classrooms.teacher",model:Eo},model_13:{namespace:"classrooms.video",model:Ho},model_14:{namespace:"competitions.index",model:Vo},model_15:{namespace:"engineering.evaluateDetail",model:Ei},model_16:{namespace:"engineering.evaluateList",model:xi},model_17:{namespace:"engineering.index",model:Ci},model_18:{namespace:"engineering.navigation",model:Ai},model_19:{namespace:"engineering.normDetail",model:Ii},model_20:{namespace:"engineering.normList",model:Zi},model_21:{namespace:"forums.detail",model:Hi},model_22:{namespace:"forums.index",model:Wi},model_23:{namespace:"globalSetting",model:Ki},model_24:{namespace:"graduations.index",model:eu},model_25:{namespace:"homePage",model:ru},model_26:{namespace:"innovation.index",model:au},model_27:{namespace:"intraincourse.index",model:hu},model_28:{namespace:"loading",model:vu},model_29:{namespace:"messages.index",model:ju},model_30:{namespace:"paperlibrary.index",model:Cc},model_31:{namespace:"paperlibrary.newPaper",model:Oc},model_32:{namespace:"paths.detail",model:Tc},model_33:{namespace:"paths.index",model:Mc},model_34:{namespace:"paths.new",model:Lc},model_35:{namespace:"paths.overview",model:Dc},model_36:{namespace:"problemset.index",model:Fs},model_37:{namespace:"problemset.preview",model:qs},model_38:{namespace:"resetFul.index",model:Gs},model_39:{namespace:"shixuns.detail",model:Qs},model_40:{namespace:"shixuns.index",model:el},model_41:{namespace:"shixuns.new",model:nl},model_42:{namespace:"shixuns.overview",model:al},model_43:{namespace:"shixuns.practiceSetting",model:ll},model_44:{namespace:"user.detail",model:dl},model_45:{namespace:"user.index",model:ml},model_46:{namespace:"video.detail",model:wl},model_47:{namespace:"virtualSpaces.index",model:Gl}},Kl=n(37712);function Xl(e){var t=(0,f.useAppData)().pluginManager,n=(0,l.useRef)(),r=t.applyPlugins({key:"dva",type:f.ApplyPluginsType.modify,initialValue:{}});if(!n.current){n.current=(0,u.Ue)(i()({history:f.history},r.config||{}),{initialReducer:{},setupMiddlewares:function(e){return a()(e)},setupApp:function(e){e._history=f.history}}),Vl=n.current,n.current.use(s()()),(r.plugins||[]).forEach((function(e){n.current.use(e)}));for(var o=0,c=Object.keys(Yl);o0){for(t=1,n=1;t1&&"}"===e)},le=Oe("\n",!1),fe=Ae("argNameOrNumber"),pe=Ae("argNumber"),de=Oe("0",!1),he=/^[1-9]/,ve=je([["1","9"]],!1,!1),me=/^[0-9]/,ye=je([["0","9"]],!1,!1),ge=Ae("argName"),be=0,_e=0,we=[{line:1,column:1}],xe=0,ke=[],Ee=0;if(void 0!==t.startRule){if(!(t.startRule in a))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=a[t.startRule]}function Se(){return e.substring(_e,be)}function Ce(){return Ie(_e,be)}function Pe(e,t){throw function(e,t){return new I(e,[],"",t)}(e,t=void 0!==t?t:Ie(_e,be))}function Oe(e,t){return{type:"literal",text:e,ignoreCase:t}}function je(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function Ae(e){return{type:"other",description:e}}function Te(t){var n,r=we[t];if(r)return r;for(n=t-1;!we[n];)n--;for(r={line:(r=we[n]).line,column:r.column};nxe&&(xe=be,ke=[]),ke.push(e))}function Re(e,t,n){return new I(I.buildMessage(e,t),e,t,n)}function Le(){return Ze()}function Ze(){var e,t;for(e=[],t=De();t!==r;)e.push(t),t=De();return e}function De(){var t;return(t=function(){var e,t;e=be,(t=Ne())!==r&&(_e=e,n=t,t=T({type:m.literal,value:n},at()));var n;return e=t,e}())===r&&(t=function(){var t,n,a,o;Ee++,t=be,123===e.charCodeAt(be)?(n=c,be++):(n=r,0===Ee&&Me(s));n!==r&&Ge()!==r&&(a=Je())!==r&&Ge()!==r?(125===e.charCodeAt(be)?(o=l,be++):(o=r,0===Ee&&Me(f)),o!==r?(_e=t,i=a,t=n=T({type:m.argument,value:i},at())):(be=t,t=r)):(be=t,t=r);var i;Ee--,t===r&&(n=r,0===Ee&&Me(u));return t}())===r&&(t=function(){var t;t=function(){var t,n,a,o,i,u,p,d,h;t=be,123===e.charCodeAt(be)?(n=c,be++):(n=r,0===Ee&&Me(s));n!==r&&Ge()!==r&&(a=Je())!==r&&Ge()!==r?(44===e.charCodeAt(be)?(o=k,be++):(o=r,0===Ee&&Me(E)),o!==r&&Ge()!==r?(e.substr(be,6)===S?(i=S,be+=6):(i=r,0===Ee&&Me(C)),i!==r&&Ge()!==r?(u=be,44===e.charCodeAt(be)?(p=k,be++):(p=r,0===Ee&&Me(E)),p!==r&&(d=Ge())!==r?(h=function(){var t,n,a;t=be,e.substr(be,2)===_?(n=_,be+=2):(n=r,0===Ee&&Me(w));n!==r?(a=function(){var e,t,n;if(e=be,t=[],n=Be(),n!==r)for(;n!==r;)t.push(n),n=Be();else t=r;t!==r&&(_e=e,t=T({type:0,tokens:t},at()));return e=t,e}(),a!==r?(_e=t,t=n=a):(be=t,t=r)):(be=t,t=r);t===r&&(t=be,_e=be,nt.push("numberArgStyle"),(n=(n=!0)?void 0:r)!==r&&(a=Ne())!==r?(_e=t,t=n=x(a)):(be=t,t=r));return t}(),h!==r?u=p=[p,d,h]:(be=u,u=r)):(be=u,u=r),u===r&&(u=null),u!==r&&(p=Ge())!==r?(125===e.charCodeAt(be)?(d=l,be++):(d=r,0===Ee&&Me(f)),d!==r?(_e=t,t=n=P(a,i,u)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r);return t}(),t===r&&(t=function(){var t,n,a,o,i,u,p,d,h;t=be,123===e.charCodeAt(be)?(n=c,be++):(n=r,0===Ee&&Me(s));n!==r&&Ge()!==r&&(a=Je())!==r&&Ge()!==r?(44===e.charCodeAt(be)?(o=k,be++):(o=r,0===Ee&&Me(E)),o!==r&&Ge()!==r?(e.substr(be,4)===N?(i=N,be+=4):(i=r,0===Ee&&Me($)),i===r&&(e.substr(be,4)===F?(i=F,be+=4):(i=r,0===Ee&&Me(B))),i!==r&&Ge()!==r?(u=be,44===e.charCodeAt(be)?(p=k,be++):(p=r,0===Ee&&Me(E)),p!==r&&(d=Ge())!==r?(h=function(){var t,n,a;t=be,e.substr(be,2)===_?(n=_,be+=2):(n=r,0===Ee&&Me(w));n!==r?(a=function(){var t,n,a,o;t=be,n=be,a=[],o=qe(),o===r&&(o=ze());if(o!==r)for(;o!==r;)a.push(o),(o=qe())===r&&(o=ze());else a=r;n=a!==r?e.substring(n,be):a;n!==r&&(_e=t,n=T({type:1,pattern:n},at()));return t=n,t}(),a!==r?(_e=t,t=n=a):(be=t,t=r)):(be=t,t=r);t===r&&(t=be,_e=be,nt.push("dateOrTimeArgStyle"),(n=(n=!0)?void 0:r)!==r&&(a=Ne())!==r?(_e=t,t=n=x(a)):(be=t,t=r));return t}(),h!==r?u=p=[p,d,h]:(be=u,u=r)):(be=u,u=r),u===r&&(u=null),u!==r&&(p=Ge())!==r?(125===e.charCodeAt(be)?(d=l,be++):(d=r,0===Ee&&Me(f)),d!==r?(_e=t,t=n=P(a,i,u)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r);return t}());return t}())===r&&(t=function(){var t,n,a,o,i,u,p,d,h,v,y;t=be,123===e.charCodeAt(be)?(n=c,be++):(n=r,0===Ee&&Me(s));if(n!==r)if(Ge()!==r)if((a=Je())!==r)if(Ge()!==r)if(44===e.charCodeAt(be)?(o=k,be++):(o=r,0===Ee&&Me(E)),o!==r)if(Ge()!==r)if(e.substr(be,6)===q?(i=q,be+=6):(i=r,0===Ee&&Me(z)),i===r&&(e.substr(be,13)===H?(i=H,be+=13):(i=r,0===Ee&&Me(U))),i!==r)if(Ge()!==r)if(44===e.charCodeAt(be)?(u=k,be++):(u=r,0===Ee&&Me(E)),u!==r)if(Ge()!==r)if(p=be,e.substr(be,7)===W?(d=W,be+=7):(d=r,0===Ee&&Me(V)),d!==r&&(h=Ge())!==r&&(v=Ye())!==r?p=d=[d,h,v]:(be=p,p=r),p===r&&(p=null),p!==r)if((d=Ge())!==r){if(h=[],(v=Ue())!==r)for(;v!==r;)h.push(v),v=Ue();else h=r;h!==r&&(v=Ge())!==r?(125===e.charCodeAt(be)?(y=l,be++):(y=r,0===Ee&&Me(f)),y!==r?(_e=t,n=function(e,t,n,r){return T({type:m.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:n?n[2]:0,options:r.reduce((function(e,t){var n=t.id,r=t.value,a=t.location;return n in e&&Pe('Duplicate option "'+n+'" in plural element: "'+Se()+'"',Ce()),e[n]={value:r,location:a},e}),{})},at())}(a,i,p,h),t=n):(be=t,t=r)):(be=t,t=r)}else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;return t}(),t===r&&(t=function(){var t,n,a,o,i,u,p,d,h;t=be,123===e.charCodeAt(be)?(n=c,be++):(n=r,0===Ee&&Me(s));if(n!==r)if(Ge()!==r)if((a=Je())!==r)if(Ge()!==r)if(44===e.charCodeAt(be)?(o=k,be++):(o=r,0===Ee&&Me(E)),o!==r)if(Ge()!==r)if(e.substr(be,6)===G?(i=G,be+=6):(i=r,0===Ee&&Me(Y)),i!==r)if(Ge()!==r)if(44===e.charCodeAt(be)?(u=k,be++):(u=r,0===Ee&&Me(E)),u!==r)if(Ge()!==r){if(p=[],(d=He())!==r)for(;d!==r;)p.push(d),d=He();else p=r;p!==r&&(d=Ge())!==r?(125===e.charCodeAt(be)?(h=l,be++):(h=r,0===Ee&&Me(f)),h!==r?(_e=t,n=function(e,t){return T({type:m.select,value:e,options:t.reduce((function(e,t){var n=t.id,r=t.value,a=t.location;return n in e&&Pe('Duplicate option "'+n+'" in select element: "'+Se()+'"',Ce()),e[n]={value:r,location:a},e}),{})},at())}(a,p),t=n):(be=t,t=r)):(be=t,t=r)}else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;return t}(),t===r&&(t=function(){var t,n;t=be,35===e.charCodeAt(be)?(n="#",be++):(n=r,0===Ee&&Me(i));n!==r&&(_e=t,n=T({type:m.pound},at()));return t=n,t}()))),t}function Ne(){var e,t,n;if(e=be,t=[],(n=Ke())===r&&(n=Xe())===r&&(n=Qe()),n!==r)for(;n!==r;)t.push(n),(n=Ke())===r&&(n=Xe())===r&&(n=Qe());else t=r;return t!==r&&(_e=e,t=t.join("")),e=t}function $e(){var t,n,a,o,i;if(Ee++,t=be,n=[],a=be,o=be,Ee++,(i=We())===r&&(d.test(e.charAt(be))?(i=e.charAt(be),be++):(i=r,0===Ee&&Me(h))),Ee--,i===r?o=void 0:(be=o,o=r),o!==r?(e.length>be?(i=e.charAt(be),be++):(i=r,0===Ee&&Me(v)),i!==r?a=o=[o,i]:(be=a,a=r)):(be=a,a=r),a!==r)for(;a!==r;)n.push(a),a=be,o=be,Ee++,(i=We())===r&&(d.test(e.charAt(be))?(i=e.charAt(be),be++):(i=r,0===Ee&&Me(h))),Ee--,i===r?o=void 0:(be=o,o=r),o!==r?(e.length>be?(i=e.charAt(be),be++):(i=r,0===Ee&&Me(v)),i!==r?a=o=[o,i]:(be=a,a=r)):(be=a,a=r);else n=r;return t=n!==r?e.substring(t,be):n,Ee--,t===r&&(n=r,0===Ee&&Me(p)),t}function Fe(){var t,n,a;return Ee++,t=be,47===e.charCodeAt(be)?(n="/",be++):(n=r,0===Ee&&Me(g)),n!==r&&(a=$e())!==r?(_e=t,t=n=a):(be=t,t=r),Ee--,t===r&&(n=r,0===Ee&&Me(y)),t}function Be(){var e,t,n,a,o;if(Ee++,e=be,(t=Ge())!==r)if((n=$e())!==r){for(a=[],o=Fe();o!==r;)a.push(o),o=Fe();a!==r?(_e=e,t=function(e,t){return{stem:e,options:t}}(n,a),e=t):(be=e,e=r)}else be=e,e=r;else be=e,e=r;return Ee--,e===r&&(t=r,0===Ee&&Me(b)),e}function qe(){var t,n,a,o;if(t=be,39===e.charCodeAt(be)?(n=O,be++):(n=r,0===Ee&&Me(j)),n!==r){if(a=[],(o=Ke())===r&&(A.test(e.charAt(be))?(o=e.charAt(be),be++):(o=r,0===Ee&&Me(M))),o!==r)for(;o!==r;)a.push(o),(o=Ke())===r&&(A.test(e.charAt(be))?(o=e.charAt(be),be++):(o=r,0===Ee&&Me(M)));else a=r;a!==r?(39===e.charCodeAt(be)?(o=O,be++):(o=r,0===Ee&&Me(j)),o!==r?t=n=[n,a,o]:(be=t,t=r)):(be=t,t=r)}else be=t,t=r;if(t===r)if(t=[],(n=Ke())===r&&(R.test(e.charAt(be))?(n=e.charAt(be),be++):(n=r,0===Ee&&Me(L))),n!==r)for(;n!==r;)t.push(n),(n=Ke())===r&&(R.test(e.charAt(be))?(n=e.charAt(be),be++):(n=r,0===Ee&&Me(L)));else t=r;return t}function ze(){var t,n;if(t=[],Z.test(e.charAt(be))?(n=e.charAt(be),be++):(n=r,0===Ee&&Me(D)),n!==r)for(;n!==r;)t.push(n),Z.test(e.charAt(be))?(n=e.charAt(be),be++):(n=r,0===Ee&&Me(D));else t=r;return t}function He(){var t,n,a,o,i,u,p;return t=be,Ge()!==r&&(n=tt())!==r&&Ge()!==r?(123===e.charCodeAt(be)?(a=c,be++):(a=r,0===Ee&&Me(s)),a!==r?(_e=be,nt.push("select"),(!0?void 0:r)!==r&&(o=Ze())!==r?(125===e.charCodeAt(be)?(i=l,be++):(i=r,0===Ee&&Me(f)),i!==r?(_e=t,u=n,p=o,nt.pop(),t=T({id:u,value:p},at())):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r),t}function Ue(){var t,n,a,o,i,u,p;return t=be,Ge()!==r?(n=function(){var t,n,a,o;return t=be,n=be,61===e.charCodeAt(be)?(a="=",be++):(a=r,0===Ee&&Me(K)),a!==r&&(o=Ye())!==r?n=a=[a,o]:(be=n,n=r),(t=n!==r?e.substring(t,be):n)===r&&(t=tt()),t}(),n!==r&&Ge()!==r?(123===e.charCodeAt(be)?(a=c,be++):(a=r,0===Ee&&Me(s)),a!==r?(_e=be,nt.push("plural"),(!0?void 0:r)!==r&&(o=Ze())!==r?(125===e.charCodeAt(be)?(i=l,be++):(i=r,0===Ee&&Me(f)),i!==r?(_e=t,u=n,p=o,nt.pop(),t=T({id:u,value:p},at())):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r),t}function We(){var t;return Ee++,Q.test(e.charAt(be))?(t=e.charAt(be),be++):(t=r,0===Ee&&Me(J)),Ee--,t===r&&(r,0===Ee&&Me(X)),t}function Ve(){var t;return Ee++,te.test(e.charAt(be))?(t=e.charAt(be),be++):(t=r,0===Ee&&Me(ne)),Ee--,t===r&&(r,0===Ee&&Me(ee)),t}function Ge(){var t,n,a;for(Ee++,t=be,n=[],a=We();a!==r;)n.push(a),a=We();return t=n!==r?e.substring(t,be):n,Ee--,t===r&&(n=r,0===Ee&&Me(re)),t}function Ye(){var t,n,a,o,i;return Ee++,t=be,45===e.charCodeAt(be)?(n="-",be++):(n=r,0===Ee&&Me(oe)),n===r&&(n=null),n!==r&&(a=et())!==r?(_e=t,o=n,t=n=(i=a)?o?-i:i:0):(be=t,t=r),Ee--,t===r&&(n=r,0===Ee&&Me(ae)),t}function Ke(){var t,n;return Ee++,t=be,e.substr(be,2)===ue?(n=ue,be+=2):(n=r,0===Ee&&Me(ce)),n!==r&&(_e=t,n="'"),Ee--,(t=n)===r&&(n=r,0===Ee&&Me(ie)),t}function Xe(){var t,n,a,o,i,u;if(t=be,39===e.charCodeAt(be)?(n=O,be++):(n=r,0===Ee&&Me(j)),n!==r)if(a=function(){var t,n,a,o;t=be,n=be,e.length>be?(a=e.charAt(be),be++):(a=r,0===Ee&&Me(v));a!==r?(_e=be,(o=(o="{"===(i=a)||"}"===i||rt()&&"#"===i)?void 0:r)!==r?n=a=[a,o]:(be=n,n=r)):(be=n,n=r);var i;t=n!==r?e.substring(t,be):n;return t}(),a!==r){for(o=be,i=[],e.substr(be,2)===ue?(u=ue,be+=2):(u=r,0===Ee&&Me(ce)),u===r&&(A.test(e.charAt(be))?(u=e.charAt(be),be++):(u=r,0===Ee&&Me(M)));u!==r;)i.push(u),e.substr(be,2)===ue?(u=ue,be+=2):(u=r,0===Ee&&Me(ce)),u===r&&(A.test(e.charAt(be))?(u=e.charAt(be),be++):(u=r,0===Ee&&Me(M)));(o=i!==r?e.substring(o,be):i)!==r?(39===e.charCodeAt(be)?(i=O,be++):(i=r,0===Ee&&Me(j)),i===r&&(i=null),i!==r?(_e=t,t=n=a+o.replace("''","'")):(be=t,t=r)):(be=t,t=r)}else be=t,t=r;else be=t,t=r;return t}function Qe(){var t,n,a,o;return t=be,n=be,e.length>be?(a=e.charAt(be),be++):(a=r,0===Ee&&Me(v)),a!==r?(_e=be,(o=(o=se(a))?void 0:r)!==r?n=a=[a,o]:(be=n,n=r)):(be=n,n=r),n===r&&(10===e.charCodeAt(be)?(n="\n",be++):(n=r,0===Ee&&Me(le))),t=n!==r?e.substring(t,be):n}function Je(){var t,n;return Ee++,t=be,(n=et())===r&&(n=tt()),t=n!==r?e.substring(t,be):n,Ee--,t===r&&(n=r,0===Ee&&Me(fe)),t}function et(){var t,n,a,o,i;if(Ee++,t=be,48===e.charCodeAt(be)?(n="0",be++):(n=r,0===Ee&&Me(de)),n!==r&&(_e=t,n=0),(t=n)===r){if(t=be,n=be,he.test(e.charAt(be))?(a=e.charAt(be),be++):(a=r,0===Ee&&Me(ve)),a!==r){for(o=[],me.test(e.charAt(be))?(i=e.charAt(be),be++):(i=r,0===Ee&&Me(ye));i!==r;)o.push(i),me.test(e.charAt(be))?(i=e.charAt(be),be++):(i=r,0===Ee&&Me(ye));o!==r?n=a=[a,o]:(be=n,n=r)}else be=n,n=r;n!==r&&(_e=t,n=parseInt(n.join(""),10)),t=n}return Ee--,t===r&&(n=r,0===Ee&&Me(pe)),t}function tt(){var t,n,a,o,i;if(Ee++,t=be,n=[],a=be,o=be,Ee++,(i=We())===r&&(i=Ve()),Ee--,i===r?o=void 0:(be=o,o=r),o!==r?(e.length>be?(i=e.charAt(be),be++):(i=r,0===Ee&&Me(v)),i!==r?a=o=[o,i]:(be=a,a=r)):(be=a,a=r),a!==r)for(;a!==r;)n.push(a),a=be,o=be,Ee++,(i=We())===r&&(i=Ve()),Ee--,i===r?o=void 0:(be=o,o=r),o!==r?(e.length>be?(i=e.charAt(be),be++):(i=r,0===Ee&&Me(v)),i!==r?a=o=[o,i]:(be=a,a=r)):(be=a,a=r);else n=r;return t=n!==r?e.substring(t,be):n,Ee--,t===r&&(n=r,0===Ee&&Me(ge)),t}var nt=["root"];function rt(){return"plural"===nt[nt.length-1]}function at(){return t&&t.captureLocation?{location:Ce()}:{}}if((n=o())!==r&&be===e.length)return n;throw n!==r&&be1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(H,(function(e,n,r){return"."===e?t.maximumFractionDigits=0:"+"===r?t.minimumFractionDigits=r.length:"#"===n[0]?t.maximumFractionDigits=n.length:(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+("string"==typeof r?r.length:0)),""})),a.options.length&&(t=B(B({},t),W(a.options[0])))}else if(U.test(a.stem))t=B(B({},t),W(a.stem));else{var o=V(a.stem);o&&(t=B(B({},t),o))}}return t}var K,X=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Q=function(){for(var e=0,t=0,n=arguments.length;t(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,oe=Date.now()+"@@",ie=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function ue(e,t,n){var r=e.tagName,a=e.outerHTML,o=e.textContent,i=e.childNodes;if(!r)return re(o||"",t);r=r.toLowerCase();var u=~ie.indexOf(r),c=n[r];if(c&&u)throw new J(r+" is a self-closing tag and can not be used, please use another tag name.");if(!i.length)return[a];var s=Array.prototype.slice.call(i).reduce((function(e,r){return e.concat(ue(r,t,n))}),[]);return c?"function"==typeof c?[c.apply(void 0,s)]:[c]:Q(["<"+r+">"],s,[""])}function ce(e,t,n,r,a,o){var i=ee(e,t,n,r,a,void 0,o),u={},c=i.reduce((function(e,t){if(0===t.type)return e+t.value;var n=Date.now()+"_"+ ++ne;return u[n]=t.value,e+"@@"+n+"@@"}),"");if(!ae.test(c))return re(c,u);if(!a)throw new J("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new J("Cannot format XML message without DOMParser");K||(K=new DOMParser);var s=K.parseFromString(''+c+"","text/html").getElementById(oe);if(!s)throw new J("Malformed HTML message "+c);var l=Object.keys(a).filter((function(e){return!!s.getElementsByTagName(e).length}));if(!l.length)return re(c,u);var f=l.filter((function(e){return e!==e.toLowerCase()}));if(f.length)throw new J("HTML tag must be lowercased but the following tags are not: "+f.join(", "));return Array.prototype.slice.call(s.childNodes).reduce((function(e,t){return e.concat(ue(t,u,a))}),[])}var se=function(){return se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<"']/g;function ve(e){return(""+e).replace(he,(function(e){return de[e.charCodeAt(0)]}))}function me(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}function ye(e,t){var n=t?"\n".concat(t.stack):"";return"[React Intl] ".concat(e).concat(n)}var ge={formats:{},messages:{},timeZone:void 0,textComponent:d.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function be(e,t,n,r){var a,o=e&&e[t];if(o&&(a=o[n]),a)return a;r(ye("No ".concat(t," format named: ").concat(n)))}var _e=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function we(e,t){var n=e.locale,r=e.formats,a=e.onError,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.format,u=i&&be(r,"number",i,a)||{},c=me(o,_e,u);return t(n,c)}function xe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return we(e,t,r).format(n)}catch(t){e.onError(ye("Error formatting number.",t))}return String(n)}function ke(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return we(e,t,r).formatToParts(n)}catch(t){e.onError(ye("Error formatting number.",t))}return[]}var Ee=["numeric","style"];function Se(e,t){var n=e.locale,r=e.formats,a=e.onError,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.format,u=!!i&&be(r,"relative",i,a)||{},c=me(o,Ee,u);return t(n,c)}function Ce(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};r||(r="second");var o=Intl.RelativeTimeFormat;o||e.onError(ye('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n'));try{return Se(e,t,a).format(n,r)}catch(t){e.onError(ye("Error formatting relative time.",t))}return String(n)}var Pe=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Oe(e,t,n){var r=e.locale,a=e.formats,o=e.onError,i=e.timeZone,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=u.format,s=Object.assign(Object.assign({},i&&{timeZone:i}),c&&be(a,t,c,o)),l=me(u,Pe,s);return"time"!==t||l.hour||l.minute||l.second||(l=Object.assign(Object.assign({},l),{hour:"numeric",minute:"numeric"})),n(r,l)}function je(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a="string"==typeof n?new Date(n||0):n;try{return Oe(e,"date",t,r).format(a)}catch(t){e.onError(ye("Error formatting date.",t))}return String(a)}function Ae(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a="string"==typeof n?new Date(n||0):n;try{return Oe(e,"time",t,r).format(a)}catch(t){e.onError(ye("Error formatting time.",t))}return String(a)}function Te(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a="string"==typeof n?new Date(n||0):n;try{return Oe(e,"date",t,r).formatToParts(a)}catch(t){e.onError(ye("Error formatting date.",t))}return[]}function Ie(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a="string"==typeof n?new Date(n||0):n;try{return Oe(e,"time",t,r).formatToParts(a)}catch(t){e.onError(ye("Error formatting time.",t))}return[]}var Me=["localeMatcher","type"];function Re(e,t,n){var r=e.locale,a=e.onError,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Intl.PluralRules||a(ye('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n'));var i=me(o,Me);try{return t(r,i).select(n)}catch(e){a(ye("Error formatting plural.",e))}return"other"}var Le=n(37205),Ze=n.n(Le);function De(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=Object.assign({timeZone:t},e[r]),n}),{})}function Ne(e,t){return Object.keys(Object.assign(Object.assign({},e),t)).reduce((function(n,r){return n[r]=Object.assign(Object.assign({},e[r]||{}),t[r]||{}),n}),{})}function $e(e,t){if(!t)return e;var n=fe.formats;return Object.assign(Object.assign(Object.assign({},n),e),{date:Ne(De(n.date,t),De(e.date||{},t)),time:Ne(De(n.time,t),De(e.time||{},t))})}var Fe=function(e){return d.createElement.apply(h,[d.Fragment,null].concat(Ze()(e)))};function Be(e,t){var n=e.locale,r=e.formats,a=e.messages,o=e.defaultLocale,i=e.defaultFormats,u=e.onError,c=e.timeZone,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=s.id,p=s.defaultMessage;pe(!!f,"[React Intl] An `id` must be provided to format a message.");var d=a&&a[String(f)];r=$e(r,c),i=$e(i,c);var h=[];if(d)try{var v=t.getMessageFormat(d,n,r,{formatters:t});h=v.formatHTMLMessage(l)}catch(e){u(ye('Error formatting message: "'.concat(f,'" for locale: "').concat(n,'"')+(p?", using default message as fallback.":""),e))}else(!p||n&&n.toLowerCase()!==o.toLowerCase())&&u(ye('Missing message: "'.concat(f,'" for locale: "').concat(n,'"')+(p?", using default message as fallback.":"")));if(!h.length&&p)try{var m=t.getMessageFormat(p,o,i);h=m.formatHTMLMessage(l)}catch(e){u(ye('Error formatting the default message for: "'.concat(f,'"'),e))}return h.length?1===h.length&&"string"==typeof h[0]?h[0]||p||String(f):Fe(h):(u(ye('Cannot format message: "'.concat(f,'", ')+"using message ".concat(d||p?"source":"id"," as fallback."))),"string"==typeof d?d||p||String(f):p||String(f))}function qe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=Object.keys(r).reduce((function(e,t){var n=r[t];return e[t]="string"==typeof n?ve(n):n,e}),{});return Be(e,t,n,a)}var ze=n(18947),He=n.n(ze),Ue=n(31468),We=n.n(Ue),Ve=["localeMatcher","type","style"],Ge=Date.now();function Ye(e){return"".concat(Ge,"_").concat(e,"_").concat(Ge)}function Ke(e,t,n){var r=e.locale,a=e.onError,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=Intl.ListFormat;i||a(ye('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n'));var u=me(o,Ve);try{var c={},s=n.map((function(e,t){if("object"===We()(e)){var n=Ye(t);return c[n]=e,n}return String(e)}));if(!Object.keys(c).length)return t(r,u).format(s);var l=t(r,u).formatToParts(s);return l.reduce((function(e,t){var n=t.value;return c[n]?e.push(c[n]):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[])}catch(e){a(ye("Error formatting list.",e))}return n}var Xe=["localeMatcher","style","type","fallback"];function Qe(e,t,n){var r=e.locale,a=e.onError,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=Intl.DisplayNames;i||a(ye('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n'));var u=me(o,Xe);try{return t(r,u).of(n)}catch(e){a(ye("Error formatting display name.",e))}}var Je=He()||ze;function et(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function tt(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames;return{getDateTimeFormat:F(Intl.DateTimeFormat,e.dateTime),getNumberFormat:F(Intl.NumberFormat,e.number),getMessageFormat:F(fe,e.message),getRelativeTimeFormat:F(t,e.relativeTime),getPluralRules:F(Intl.PluralRules,e.pluralRules),getListFormat:F(n,e.list),getDisplayNames:F(r,e.displayNames)}}(t),r=Object.assign(Object.assign({},ge),e),a=r.locale,o=r.defaultLocale,i=r.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&i?i(ye('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&i&&i(ye('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):(i&&i(ye('"locale" was not configured, using "'.concat(o,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details'))),r.locale=r.defaultLocale||"en"),Object.assign(Object.assign({},r),{formatters:n,formatNumber:xe.bind(null,r,n.getNumberFormat),formatNumberToParts:ke.bind(null,r,n.getNumberFormat),formatRelativeTime:Ce.bind(null,r,n.getRelativeTimeFormat),formatDate:je.bind(null,r,n.getDateTimeFormat),formatDateToParts:Te.bind(null,r,n.getDateTimeFormat),formatTime:Ae.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Ie.bind(null,r,n.getDateTimeFormat),formatPlural:Re.bind(null,r,n.getPluralRules),formatMessage:Be.bind(null,r,n),formatHTMLMessage:qe.bind(null,r,n),formatList:Ke.bind(null,r,n.getListFormat),formatDisplayName:Qe.bind(null,r,n.getDisplayNames)})}var nt=function(e){l()(n,e);var t=p()(n);function n(){var e;return i()(this,n),(e=t.apply(this,arguments)).cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},e.state={cache:e.cache,intl:tt(et(e.props),e.cache),prevConfig:et(e.props)},e}return c()(n,[{key:"render",value:function(){return pe(this.state.intl,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry."),d.createElement(g,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevConfig,r=t.cache,a=et(e);return Je(n,a)?null:{intl:tt(a,r),prevConfig:a}}}]),n}(d.PureComponent);nt.displayName="IntlProvider",nt.defaultProps=ge;var rt,at=n(29181),ot=n(3424),it=n.n(ot),ut=(n(85239),["cache"]),ct=new(it()),st=Symbol("LANG_CHANGE"),lt={},ft=function(e){return(0,at.We)().applyPlugins({key:"locale",type:"modify",initialValue:e})},pt=function(e){var t=ft(lt[e]),n=t.cache;return tt(a()(t,ut),n)},dt=function(e,t){return!rt||t||e?(e||(e=ht()),e&<[e]?pt(e):lt["zh-CN"]?pt("zh-CN"):tt({locale:"zh-CN",messages:{}})):rt},ht=function(){var e=ft({});return"function"==typeof(null==e?void 0:e.getLocale)?e.getLocale():(navigator.cookieEnabled&&"undefined"!=typeof localStorage?window.localStorage.getItem("umi_locale"):"")||"zh-CN"},vt=function(){var e=ht();return["he","ar","fa","ku"].filter((function(t){return e.startsWith(t)})).length?"rtl":"ltr"}},41889:function(e,t,n){"use strict";n(58988),n(37712)},78318:function(e,t,n){"use strict";n.d(t,{H:function(){return g},Nm:function(){return m},SV:function(){return l},fc:function(){return _},tO:function(){return h},zI:function(){return p}});var r=n(7557),a=n.n(r),o=n(82242),i=n.n(o),u=n(41498),c=n.n(u),s=n(79723);function l(e){return f.apply(this,arguments)}function f(){return(f=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/files/public_with_course_and_project",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return d.apply(this,arguments)}function d(){return(d=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/files/mine_with_course_and_project.json",{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return v.apply(this,arguments)}function v(){return(v=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/files/import.json",{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return y.apply(this,arguments)}function y(){return(y=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/files/".concat(t.id,".json"),{method:"get",params:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return b.apply(this,arguments)}function b(){return(b=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/files/".concat(t.id,"/update_visits.json"),{method:"post"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return w.apply(this,arguments)}function w(){return(w=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/files/".concat(null==t?void 0:t.id,"/add_file_quantity.json"),{method:"post",body:i()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},94414:function(e,t,n){"use strict";n.d(t,{$M:function(){return Le},$P:function(){return ft},Ax:function(){return _},B3:function(){return h},Dh:function(){return j},FU:function(){return V},GQ:function(){return se},IN:function(){return Ye},JM:function(){return rt},Mn:function(){return Ve},Ni:function(){return be},OU:function(){return y},Pg:function(){return T},Pt:function(){return P},Qp:function(){return oe},R9:function(){return Y},RG:function(){return d},Ux:function(){return ue},Vy:function(){return Pe},XJ:function(){return ye},XR:function(){return Me},Ze:function(){return $},aq:function(){return D},bQ:function(){return k},cC:function(){return b},eP:function(){return l},g_:function(){return g},iR:function(){return m},jS:function(){return J},lm:function(){return Xe},ml:function(){return de},o3:function(){return De},oK:function(){return f},pA:function(){return $e},pM:function(){return v},pS:function(){return tt},pU:function(){return ve},ps:function(){return U},q0:function(){return ze},qN:function(){return Ue},qS:function(){return S},qj:function(){return Te},qt:function(){return ut},rV:function(){return M},rZ:function(){return ot},rk:function(){return ke},rm:function(){return re},sK:function(){return te},sL:function(){return Be},su:function(){return Je},tC:function(){return Se},tO:function(){return je},u9:function(){return fe},uZ:function(){return we},vV:function(){return z},xx:function(){return dt},yS:function(){return B},zA:function(){return p},zF:function(){return w},zc:function(){return X},zj:function(){return L},zz:function(){return st}});var r=n(82242),a=n.n(r),o=n(7557),i=n.n(o),u=n(41498),c=n.n(u),s=n(79723),l=function(e){return(0,s.ZP)("/api/kd_competitions/rank_list.json",{method:"get",params:e})},f=function(e){return(0,s.ZP)("/api/kd_competitions/update_mine_team.json",{method:"put",body:e})},p=function(e){return(0,s.ZP)("/api/kd_competitions/enroll.json",{method:"post",body:e})},d=function(e){return(0,s.ZP)("/api/kd_competitions/all_teams.json",{method:"get",params:e})},h=function(e){return(0,s.ZP)("/api/kd_competitions/competition_question.json",{method:"get",params:e})},v=function(e){return(0,s.ZP)("/api/kd_competitions/describe.json",{method:"get",params:e})},m=function(e){return(0,s.ZP)("/api/kd_competitions/update_md_content.json",{method:"put",body:e})},y=function(e){return(0,s.ZP)("/api/kd_competitions/home.json",{method:"get",params:e})},g=function(e){return(0,s.ZP)("/api/kd_competitions/kd_competition_info.json",{method:"get",params:e})},b=function(e){return(0,s.ZP)("/api/competitions/".concat(e.identifier,"/create_guide.json"),{method:"post",body:e})},_=function(e){return(0,s.ZP)("/api/competitions/".concat(e.identifier,"/guides.json"),{method:"get",params:e})};function w(e){return x.apply(this,arguments)}function x(){return(x=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/update_result.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e){return E.apply(this,arguments)}function E(){return(E=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions.json",{method:"Get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(e){return C.apply(this,arguments)}function C(){return(C=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/courses/apply_to_join_course.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function P(e){return O.apply(this,arguments)}function O(){return(O=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams.json"),{method:"post"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return A.apply(this,arguments)}function A(){return(A=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_staff.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function T(e){return I.apply(this,arguments)}function I(){return(I=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/common_header.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(e){return R.apply(this,arguments)}function R(){return(R=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/".concat(t.url),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function L(e){return Z.apply(this,arguments)}function Z(){return(Z=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/update_md_content.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(e){return N.apply(this,arguments)}function N(){return(N=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $(e){return F.apply(this,arguments)}function F(){return(F=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams/").concat(t.Teannameid,"/edit.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function B(e){return q.apply(this,arguments)}function q(){return(q=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams/").concat(t.Teannameid,".json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function z(e){return H.apply(this,arguments)}function H(){return(H=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams/").concat(t.id,"/leave.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function U(e){return W.apply(this,arguments)}function W(){return(W=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams/").concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function V(e){return G.apply(this,arguments)}function G(){return(G=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Y(e){return K.apply(this,arguments)}function K(){return(K=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.id,"/add_managers.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function X(e){return Q.apply(this,arguments)}function Q(){return(Q=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams/join.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function J(e){return ee.apply(this,arguments)}function ee(){return(ee=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/teachers.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function te(e){return ne.apply(this,arguments)}function ne(){return(ne=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/students.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function re(e){return ae.apply(this,arguments)}function ae(){return(ae=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams/").concat(t.teamid,"/crud_team_members.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oe(e){return ie.apply(this,arguments)}function ie(){return(ie=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/competition_reward.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ue(e){return ce.apply(this,arguments)}function ce(){return(ce=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/chart_rules.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(e){return le.apply(this,arguments)}function le(){return(le=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/charts.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fe(e){return pe.apply(this,arguments)}function pe(){return(pe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/results.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function de(e){return he.apply(this,arguments)}function he(){return(he=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/md_tab_rules.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ve(e){return me.apply(this,arguments)}function me(){return(me=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/prize.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ye(e){return ge.apply(this,arguments)}function ge(){return(ge=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/accounts/".concat(t.id,".json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function be(e){return _e.apply(this,arguments)}function _e(){return(_e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function we(e){return xe.apply(this,arguments)}function xe(){return(xe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/accounts/".concat(t.userid,"/phone_bind.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ke(e){return Ee.apply(this,arguments)}function Ee(){return(Ee=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/accounts/".concat(t.userid,"/email_bind.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Se(e){return Ce.apply(this,arguments)}function Ce(){return(Ce=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/accounts/".concat(t.userid,"/professional_auth_apply.json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pe(e){return Oe.apply(this,arguments)}function Oe(){return(Oe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/accounts/".concat(t.userid,"/authentication_apply.json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function je(e){return Ae.apply(this,arguments)}function Ae(){return(Ae=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/prize_leader_account.json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Te(e){return Ie.apply(this,arguments)}function Ie(){return(Ie=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams/").concat(t.teamid,"/shixun_detail.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Me(e){return Re.apply(this,arguments)}function Re(){return(Re=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams/").concat(t.teamid,"/course_detail.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Le(e){return Ze.apply(this,arguments)}function Ze(){return(Ze=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.id,"/basic_setting.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function De(e){return Ne.apply(this,arguments)}function Ne(){return(Ne=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t,"/common_header.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $e(e){return Fe.apply(this,arguments)}function Fe(){return(Fe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(null==t?void 0:t.id,"/search_managers.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Be(e){return qe.apply(this,arguments)}function qe(){return(qe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t,"/get_managers.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ze(e){return He.apply(this,arguments)}function He(){return(He=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(null==t?void 0:t.id,"/add_managers.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ue(e){return We.apply(this,arguments)}function We(){return(We=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(null==t?void 0:t.id,"/delete_managers.json"),{method:"delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ve(e){return Ge.apply(this,arguments)}function Ge(){return(Ge=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t,"/get_picture.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ye(e){return Ke.apply(this,arguments)}function Ke(){return(Ke=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(null==t?void 0:t.id,"/identifier_exist.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xe(e){return Qe.apply(this,arguments)}function Qe(){return(Qe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t,"/get_shixun_settings.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Je(e){return et.apply(this,arguments)}function et(){return(et=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(null==t?void 0:t.id,"/shixun_add.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function tt(e){return nt.apply(this,arguments)}function nt(){return(nt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(null==t?void 0:t.id,"/shixun_delete.json"),{method:"delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function rt(e){return at.apply(this,arguments)}function at(){return(at=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(null==t?void 0:t.id,"/shixun_select.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ot(e){return it.apply(this,arguments)}function it(){return(it=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t,"/info_finish.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ut(e){return ct.apply(this,arguments)}function ct(){return(ct=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(null==t?void 0:t.id,"/competition_review.json"),{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function st(e){return lt.apply(this,arguments)}function lt(){return(lt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_teams.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ft(e){return pt.apply(this,arguments)}function pt(){return(pt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/all_team_members.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dt(e){return ht.apply(this,arguments)}function ht(){return(ht=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/competitions/".concat(t.identifier,"/competition_commit_records/member_works.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},26613:function(e,t,n){"use strict";n.d(t,{$Q:function(){return l},BJ:function(){return q},Di:function(){return I},G$:function(){return p},GK:function(){return Z},J:function(){return h},KE:function(){return N},MK:function(){return R},N3:function(){return x},Ty:function(){return ae},UK:function(){return E},Ul:function(){return G},W4:function(){return K},X4:function(){return W},Xn:function(){return oe},YY:function(){return A},_U:function(){return f},_u:function(){return m},gG:function(){return ue},gJ:function(){return se},iw:function(){return re},lf:function(){return _},n$:function(){return g},pu:function(){return H},qf:function(){return O},s:function(){return te},sA:function(){return Q},tX:function(){return ee},uR:function(){return C},ux:function(){return F},xA:function(){return ne},yu:function(){return J}});var r=n(82242),a=n.n(r),o=n(7557),i=n.n(o),u=n(41498),c=n.n(u),s=n(79723),l=function(e){return(0,s.ZP)("/api/exercises/".concat(null==e?void 0:e.exercise_id,"/statistics/score_ranges.json"),{method:"get",params:e})},f=function(e){return(0,s.ZP)("/api/exercises/".concat(null==e?void 0:e.id,"/exercise_question_result.json"),{method:"get",params:e})};function p(e){return d.apply(this,arguments)}function d(){return(d=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.categoryId,"/exercise_lists.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return v.apply(this,arguments)}function v(){return(v=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.categoryId,"/exercise_identity_photos.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return y.apply(this,arguments)}function y(){return(y=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.categoryId,"/exercise_result.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return b.apply(this,arguments)}function b(){return(b=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/question_banks/bank_list.json",{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return w.apply(this,arguments)}function w(){return(w=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/question_banks/save_banks.json",{method:"POST",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return k.apply(this,arguments)}function k(){return(k=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/courses/".concat(t.coursesId,"/exercises/publish_modal.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return S.apply(this,arguments)}function S(){return(S=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.categoryId,"/common_header.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return P.apply(this,arguments)}function P(){return(P=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/courses/".concat(t.coursesId,"/exercises.json"),{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return j.apply(this,arguments)}function j(){return(j=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.categoryId,".json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(e){return T.apply(this,arguments)}function T(){return(T=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/tag_disciplines.json",{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e){return M.apply(this,arguments)}function M(){return(M=c()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,delete t.id,e.abrupt("return",(0,s.ZP)("/api/exercise_questions/".concat(n,".json"),{method:"put",body:a()({},t)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(e){return L.apply(this,arguments)}function L(){return(L=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.categoryId,"/exercise_questions.json"),{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e){return D.apply(this,arguments)}function D(){return(D=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercise_questions/".concat(t.id,"/up_down.json"),{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(e){return $.apply(this,arguments)}function $(){return($=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/courses/".concat(t.coursesId,"/exercises/end_modal.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e){return B.apply(this,arguments)}function B(){return(B=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.categoryId,"/publish_groups.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(e){return z.apply(this,arguments)}function z(){return(z=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.exerciseId,"/user_exercise_detail.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function H(e){return U.apply(this,arguments)}function U(){return(U=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.exerciseId,"/consult_exercise.json"),{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function W(e){return V.apply(this,arguments)}function V(){return(V=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.exerciseId,"/teacher_appraise.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function G(e){return Y.apply(this,arguments)}function Y(){return(Y=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.categoryId,"/exercise_setting.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function K(e){return X.apply(this,arguments)}function X(){return(X=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercises/".concat(t.exerciseId,"/review_exercises_by_students.json"),{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Q(e){return(0,s.ZP)("/api/examination_intelligent_settings/optional_items.json",{method:"post",body:a()({},e)})}function J(e){return console.log("params:",e),(0,s.ZP)("/api/exercises/".concat(e.categoryId,"/edit.json"),{method:"get",params:a()({},e)})}function ee(e){return(0,s.ZP)("/api/exercises/".concat(e.categoryId,"/redo_modal.json"),{method:"get",params:a()({},e)})}function te(e){return(0,s.ZP)("/api/exercises/".concat(e.categoryId,"/student_redo_lists.json"),{method:"get",params:a()({},e)})}function ne(e){return(0,s.ZP)("/api/exercises/get_user_exercises.json",{method:"get",params:e})}function re(e){return(0,s.ZP)("/api/exercises/".concat(e.id,"/exercise_header.json"),{method:"get",params:a()({},e)})}function ae(e){return(0,s.ZP)("/api/exercises/".concat(e.categoryId,"/get_exercise_user_info.json"),{method:"get",params:a()({},e)})}function oe(e){return ie.apply(this,arguments)}function ie(){return(ie=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/courses/".concat(t.coursesId,"/exercises/code_review_detail.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ue(e){return ce.apply(this,arguments)}function ce(){return(ce=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/exercise_questions/".concat(t.question_id,"/adjust_score.json"),{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(e){return le.apply(this,arguments)}function le(){return(le=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/attachments/set_ecs_attachment.json",{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},12554:function(e,t,n){"use strict";n.d(t,{D2:function(){return c},n0:function(){return l},tk:function(){return p}});var r=n(7557),a=n.n(r),o=n(41498),i=n.n(o),u=n(79723);function c(){return s.apply(this,arguments)}function s(){return(s=i()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/setting.json",{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(){return f.apply(this,arguments)}function f(){return(f=i()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/users/system_update.json",{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return d.apply(this,arguments)}function d(){return(d=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/search_records",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},13071:function(e,t,n){"use strict";n.d(t,{AA:function(){return g},F7:function(){return C},H3:function(){return h},J3:function(){return f},NT:function(){return c},Ou:function(){return O},Ps:function(){return s},Rk:function(){return E},Wz:function(){return l},Xh:function(){return p},Xw:function(){return x},eh:function(){return m},km:function(){return _}});var r=n(7557),a=n.n(r),o=n(41498),i=n.n(o),u=n(79723);function c(e){return(0,u.ZP)("/api/schools/search.json",{method:"get",params:e})}function s(e){return(0,u.ZP)("/api/schools/".concat(e.id,"/departments/for_option.json"),{method:"get",params:e})}function l(e){return(0,u.ZP)("/api/graduations.json",{method:"POST",body:e})}function f(e){return(0,u.ZP)("/api/graduations.json",{method:"get",params:e})}function p(e){return d.apply(this,arguments)}function d(){return(d=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(t.identifier,"/graduation_stages/").concat(t.id,".json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return v.apply(this,arguments)}function v(){return(v=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(t.id,"/student_tasks/final_score.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return y.apply(this,arguments)}function y(){return(y=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(t.id,"/graduation_students.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return b.apply(this,arguments)}function b(){return(b=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(t.id,"/graduation_teachers.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return w.apply(this,arguments)}function w(){return(w=i()(a()().mark((function e(t){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(t.id,"/graduation_tasks/").concat(null===(n=t.ids)||void 0===n?void 0:n[0]),{method:"DELETE",body:{ids:t.ids}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return k.apply(this,arguments)}function k(){return(k=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(t.id,"/graduation_tasks.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return S.apply(this,arguments)}function S(){return(S=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(t.id,"/graduation_notices.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return P.apply(this,arguments)}function P(){return(P=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(t.id,".json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return j.apply(this,arguments)}function j(){return(j=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/graduations/".concat(null==t?void 0:t.id,"/common_header.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},56007:function(e,t,n){"use strict";n.d(t,{LA:function(){return h},S_:function(){return m},Tt:function(){return c},cR:function(){return l},vm:function(){return p}});var r=n(7557),a=n.n(r),o=n(41498),i=n.n(o),u=n(79723);function c(){return s.apply(this,arguments)}function s(){return(s=i()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/home/index.json",{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e){return f.apply(this,arguments)}function f(){return(f=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/courses/apply_to_join_course.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return d.apply(this,arguments)}function d(){return(d=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/project_applies.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return v.apply(this,arguments)}function v(){return(v=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/users/home_notice.json",{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return y.apply(this,arguments)}function y(){return(y=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.ZP)("/api/users/view_notice.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},77233:function(e,t,n){"use strict";n.d(t,{AQ:function(){return A},Ax:function(){return N},Bz:function(){return l},Fg:function(){return p},GY:function(){return F},Gz:function(){return d},Hl:function(){return h},Sp:function(){return O},bz:function(){return H},fh:function(){return g},hS:function(){return v},lk:function(){return C},mQ:function(){return E},nq:function(){return f},ol:function(){return q},p:function(){return R},pU:function(){return x},tS:function(){return m},tu:function(){return _},ue:function(){return I},w4:function(){return L},yN:function(){return Z}});var r=n(82242),a=n.n(r),o=n(7557),i=n.n(o),u=n(41498),c=n.n(u),s=n(79723),l=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/v2/knowledge_graphs/".concat(null==t?void 0:t.graphable_type,"/").concat(null==t?void 0:t.graphable_id),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/subject_statistics/subject_use_infos.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/subject_statistics/rank_list.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/subject_statistics/statistics_body.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/subject_statistics/statistics_header.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/subject_statistics/online_count.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function m(e){return y.apply(this,arguments)}function y(){return(y=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/paths.json",{method:"Get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return b.apply(this,arguments)}function b(){return(b=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/disciplines.json",{method:"Get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return w.apply(this,arguments)}function w(){return(w=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/paths/".concat(t.id,".json"),{method:"PUT",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return k.apply(this,arguments)}function k(){return(k=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/paths.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return S.apply(this,arguments)}function S(){return(S=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/paths/".concat(t.id,"/edit.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return P.apply(this,arguments)}function P(){return(P=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/paths/".concat(t.id,".json"),{method:"get",params:a()({identifier:t.id},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return j.apply(this,arguments)}function j(){return(j=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/courses/".concat(t.id,".json"),{method:"get",params:a()({identifier:t.id},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(e){return T.apply(this,arguments)}function T(){return(T=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/paths/".concat(t.id,"/right_banner.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e){return M.apply(this,arguments)}function M(){return(M=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/paths/".concat(t.id,"/spoc_courses.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var R=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/v2/stages.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),L=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/v2/stage_shixuns/".concat(t.id,"/children.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function Z(e){return D.apply(this,arguments)}function D(){return(D=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/stages.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(e){return $.apply(this,arguments)}function $(){return($=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/paths/".concat(t.pathId,"/discusses.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e){return B.apply(this,arguments)}function B(){return(B=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/schools/for_option.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(e){return z.apply(this,arguments)}function z(){return(z=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/schools/province_data.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function H(e){return U.apply(this,arguments)}function U(){return(U=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/add_school_applies.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},18240:function(e,t,n){"use strict";n.d(t,{AQ:function(){return x},Ag:function(){return mt},Ar:function(){return Q},BK:function(){return O},Bj:function(){return Ie},DC:function(){return Oe},Dz:function(){return Nt},EH:function(){return ae},Er:function(){return G},FB:function(){return C},Fg:function(){return h},GI:function(){return le},Gr:function(){return Ne},Gu:function(){return ce},Gz:function(){return d},Hl:function(){return f},IT:function(){return pt},I_:function(){return g},Ir:function(){return A},Je:function(){return Ct},K:function(){return Ft},KM:function(){return F},LK:function(){return Ot},LP:function(){return pe},Ne:function(){return W},OV:function(){return me},OW:function(){return ne},Op:function(){return Zt},P2:function(){return _e},Po:function(){return _},Ps:function(){return Fe},Q:function(){return H},Ql:function(){return He},Tr:function(){return Wt},U0:function(){return Qe},U9:function(){return qe},UQ:function(){return it},WO:function(){return K},Wi:function(){return Re},Wl:function(){return gt},X$:function(){return xe},Z2:function(){return Ae},ZO:function(){return Ze},_7:function(){return q},aH:function(){return We},b8:function(){return ee},dK:function(){return I},e:function(){return v},eX:function(){return ie},fL:function(){return Et},hS:function(){return p},h_:function(){return Ce},he:function(){return m},hn:function(){return Z},j8:function(){return he},jq:function(){return Rt},kF:function(){return It},km:function(){return nt},l3:function(){return ge},m7:function(){return Ke},mI:function(){return Ht},n5:function(){return E},nu:function(){return At},p0:function(){return lt},q0:function(){return at},rs:function(){return N},sr:function(){return ct},t2:function(){return ht},tX:function(){return qt},uo:function(){return et},v3:function(){return xt},w:function(){return _t},wX:function(){return l},xk:function(){return Ee},yE:function(){return Ge},zD:function(){return R}});var r=n(82242),a=n.n(r),o=n(7557),i=n.n(o),u=n(41498),c=n.n(u),s=n(79723),l=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixun_polls/start_answer.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixun_statistics/statistics_header.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixun_statistics/online_count.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixun_statistics/statistics_body.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixun_statistics/rank_list.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixun_statistics/shixun_use_infos.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function m(e){return y.apply(this,arguments)}function y(){return(y=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns.json",{method:"Get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return b.apply(this,arguments)}function b(){return(b=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/disciplines.json",{method:"Get",params:a()({source:"shixun"},t||{})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return w.apply(this,arguments)}function w(){return(w=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,".json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return k.apply(this,arguments)}function k(){return(k=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/show_right.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return S.apply(this,arguments)}function S(){return(S=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/challenges.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return P.apply(this,arguments)}function P(){return(P=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/save_copy_for_exercise.json"),{method:"post",body:{save_type:t.save_type}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return j.apply(this,arguments)}function j(){return(j=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/jupyter_exec.json").concat(t.reset?"?reset=".concat(t.reset):""),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(e){return T.apply(this,arguments)}function T(){return(T=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/shixun_exec.json").concat(t.reset?"?reset=".concat(t.reset):""),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e){return M.apply(this,arguments)}function M(){return(M=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)(t.url,{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(e){return L.apply(this,arguments)}function L(){return(L=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.shixun_identifier,"/challenges/").concat(t.challenge_id,"/index_up.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e){return D.apply(this,arguments)}function D(){return(D=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.shixun_identifier,"/challenges/").concat(t.challenge_id,"/index_down.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(e){return $.apply(this,arguments)}function $(){return($=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/collections/cancel.json",{method:"Delete",body:{container_id:t.container_id,container_type:t.container_type}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e){return B.apply(this,arguments)}function B(){return(B=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/collections.json",{method:"Post",body:{container_id:t.container_id,container_type:t.container_type}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(e){return z.apply(this,arguments)}function z(){return(z=c()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t||{}).id,e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(n,"/search_user_courses.json"),{method:"Get",params:t}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function H(e){return U.apply(this,arguments)}function U(){return(U=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(null==t?void 0:t.id,"/send_to_course.json"),{method:"Post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function W(e){return V.apply(this,arguments)}function V(){return(V=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/cancel_publish.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function G(e){return Y.apply(this,arguments)}function Y(){return(Y=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/cancel_apply_public.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function K(e){return X.apply(this,arguments)}function X(){return(X=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/apply_public.json"),{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Q(e){return J.apply(this,arguments)}function J(){return(J=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/publish.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ee(e){return te.apply(this,arguments)}function te(){return(te=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/jupyter_new.json",{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ne(e){return re.apply(this,arguments)}function re(){return(re=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/attachments/".concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ae(e){return oe.apply(this,arguments)}function oe(){return(oe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/apply_shixun_mirror.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ie(e){return ue.apply(this,arguments)}function ue(){return(ue=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ce(e){return se.apply(this,arguments)}function se(){return(se=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/jupyter_lab_new.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function le(e){return fe.apply(this,arguments)}function fe(){return(fe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/review_newest_record.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pe(e){return de.apply(this,arguments)}function de(){return(de=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/review_shixun.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function he(e){return ve.apply(this,arguments)}function ve(){return(ve=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/collaborators.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function me(e){return ye.apply(this,arguments)}function ye(){return(ye=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/shixun_members_added.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ge(e){return be.apply(this,arguments)}function be(){return(be=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.identifier,"/add_members_group.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _e(e){return we.apply(this,arguments)}function we(){return(we=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/change_manager.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xe(e){return ke.apply(this,arguments)}function ke(){return(ke=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/change_manager.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ee(e){return Se.apply(this,arguments)}function Se(){return(Se=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/collaborators_delete.json"),{method:"delete",body:{user_id:t.userId}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ce(e){return Pe.apply(this,arguments)}function Pe(){return(Pe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/ranking_list.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Oe(e){return je.apply(this,arguments)}function je(){return(je=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/settings.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ae(e){return Te.apply(this,arguments)}function Te(){return(Te=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/get_mirror_script.json",{method:"Get",params:{mirror_id:t.mirror_id}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ie(e){return Me.apply(this,arguments)}function Me(){return(Me=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/get_script_contents.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Re(e){return Le.apply(this,arguments)}function Le(){return(Le=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/get_custom_script.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ze(e){return De.apply(this,arguments)}function De(){return(De=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/update_for_jupyter.json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ne(e){return $e.apply(this,arguments)}function $e(){return($e=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/shixun_quotes.json"),{method:"Get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fe(e){return Be.apply(this,arguments)}function Be(){return(Be=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qe(e){return ze.apply(this,arguments)}function ze(){return(ze=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/close.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function He(e){return Ue.apply(this,arguments)}function Ue(){return(Ue=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/departments.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function We(e){return Ve.apply(this,arguments)}function Ve(){return(Ve=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/update_permission_setting.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ge(e){return Ye.apply(this,arguments)}function Ye(){return(Ye=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/update_learn_setting.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ke(e){return Xe.apply(this,arguments)}function Xe(){return(Xe=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/update_setting"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Qe(e){return Je.apply(this,arguments)}function Je(){return(Je=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/get_data_sets.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function et(e){return tt.apply(this,arguments)}function tt(){return(tt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/destroy_data_sets.json"),{method:"Delete",body:{id:t.deleteId}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function nt(e){return rt.apply(this,arguments)}function rt(){return(rt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/challenges/new.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function at(e){return ot.apply(this,arguments)}function ot(){return(ot=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/challenges/").concat(t.challengesId,"/edit.json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function it(e){return ut.apply(this,arguments)}function ut(){return(ut=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/challenges/").concat(t.challengesId,"/edit_choose_question.json"),{method:"get",params:a()(a()({},t),{},{choose_id:t.questionId})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ct(e){return st.apply(this,arguments)}function st(){return(st=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/delete_git_file.json"),{method:"Delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function lt(e){return ft.apply(this,arguments)}function ft(){return(ft=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/sci/projects/".concat(t.id,"/delete_git_file.json"),{method:"Delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pt(e){return dt.apply(this,arguments)}function dt(){return(dt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/mv_file.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ht(e){return vt.apply(this,arguments)}function vt(){return(vt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/sci/projects/".concat(t.id,"/mv_file.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function mt(e){return yt.apply(this,arguments)}function yt(){return(yt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/repository.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gt(e){return bt.apply(this,arguments)}function bt(){return(bt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/sci/projects/".concat(t.id,"/repository.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _t(e){return wt.apply(this,arguments)}function wt(){return(wt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/secret_repository.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xt(e){return kt.apply(this,arguments)}function kt(){return(kt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/add_file.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Et(e){return St.apply(this,arguments)}function St(){return(St=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/sci/projects/".concat(t.id,"/add_file.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ct(e){return Pt.apply(this,arguments)}function Pt(){return(Pt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/commits.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ot(e){return jt.apply(this,arguments)}function jt(){return(jt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/file_content.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function At(e){return Tt.apply(this,arguments)}function Tt(){return(Tt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/sci/projects/".concat(t.id,"/file_content.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function It(e){return Mt.apply(this,arguments)}function Mt(){return(Mt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/update_file.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Rt(e){return Lt.apply(this,arguments)}function Lt(){return(Lt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/sci/projects/".concat(t.id,"/update_file.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Zt(e){return Dt.apply(this,arguments)}function Dt(){return(Dt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.id,"/upload_git_folder.json"),{method:"post",body:{path:t.path,secret_repository:t.secret_repository}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Nt(e){return $t.apply(this,arguments)}function $t(){return($t=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/".concat(t.identifier,"/change_editable.json"),{method:"put",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ft(e){return Bt.apply(this,arguments)}function Bt(){return(Bt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/new.json",{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qt(e){return zt.apply(this,arguments)}function zt(){return(zt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/mirror_applies/".concat(t.id,".json"),{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ht(e){return Ut.apply(this,arguments)}function Ut(){return(Ut=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/jupyters/get_info_with_jupyter_lab.json",{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wt(e){return Vt.apply(this,arguments)}function Vt(){return(Vt=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/shixuns/check_shixun_copy.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},23003:function(e,t,n){"use strict";n.d(t,{Cx:function(){return q},DA:function(){return _},Ef:function(){return G},Es:function(){return l},Ex:function(){return oe},FM:function(){return Z},Fn:function(){return K},Gq:function(){return ue},Ho:function(){return E},IU:function(){return ee},JJ:function(){return Q},Ol:function(){return ne},Qx:function(){return R},WS:function(){return H},WY:function(){return I},ai:function(){return F},bG:function(){return h},c0:function(){return ie},gI:function(){return W},lO:function(){return N},mW:function(){return A},n0:function(){return g},o1:function(){return re},qN:function(){return x},rV:function(){return C},vR:function(){return p},w3:function(){return O},x4:function(){return m},z2:function(){return ae}});var r=n(82242),a=n.n(r),o=n(7557),i=n.n(o),u=n(41498),c=n.n(u),s=n(79723);function l(e){return f.apply(this,arguments)}function f(){return(f=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/accounts/login.json",{method:"post",body:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return d.apply(this,arguments)}function d(){return(d=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/accounts/logout.json",{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return v.apply(this,arguments)}function v(){return(v=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/get_user_info.json",{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return y.apply(this,arguments)}function y(){return(y=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/get_notice.json",{method:"get",params:a()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(){return b.apply(this,arguments)}function b(){return(b=c()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/system_update.json",{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return w.apply(this,arguments)}function w(){return(w=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/homepage_info.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return k.apply(this,arguments)}function k(){return(k=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/attendance.json",{method:"post"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return S.apply(this,arguments)}function S(){return(S=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/courses.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return P.apply(this,arguments)}function P(){return(P=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/shixuns.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return j.apply(this,arguments)}function j(){return(j=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/subjects.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(e){return T.apply(this,arguments)}function T(){return(T=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/projects.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e){return M.apply(this,arguments)}function M(){return(M=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/videos.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(e){return L.apply(this,arguments)}function L(){return(L=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/videos/review.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e){return D.apply(this,arguments)}function D(){return(D=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/videos/").concat(t.id,".json"),{method:"delete"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(e){return $.apply(this,arguments)}function $(){return($=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/watch_video_histories.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e){return B.apply(this,arguments)}function B(){return(B=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/question_banks.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(e){return z.apply(this,arguments)}function z(){return(z=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/question_banks/multi_public.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function H(e){return U.apply(this,arguments)}function U(){return(U=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/question_banks/multi_delete.json",{method:"delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function W(e){return V.apply(this,arguments)}function V(){return(V=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/question_banks/my_courses.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function G(e){return Y.apply(this,arguments)}function Y(){return(Y=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/question_banks/send_to_course.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function K(e){return X.apply(this,arguments)}function X(){return(X=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/".concat(t.username,"/videos/").concat(t.object_id,"/create_course_video.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Q(e){return J.apply(this,arguments)}function J(){return(J=c()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/homework_banks/".concat(t.topicId,".json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ee(){return te.apply(this,arguments)}function te(){return(te=c()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.ZP)("/api/users/get_engineer_url.json",{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ne(e){return(0,s.ZP)("/api/accounts/valid_email_and_phone.json",{method:"get",params:e})}function re(e){return(0,s.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:e})}function ae(e){return(0,s.ZP)("/api/accounts/register.json",{method:"post",body:a()({},e)})}function oe(e){return(0,s.ZP)("/api/users/accounts/".concat(e.login,"/password.json"),{method:"put",body:a()({},e)})}function ie(e){return(0,s.ZP)("/api/accounts/reset_password.json",{method:"post",body:a()({},e)})}function ue(e){return(0,s.ZP)("/api/accounts/login_for_phone.json",{method:"get",params:a()({},e)})}},13277:function(e,t,n){"use strict";n.d(t,{JA:function(){return f},Ny:function(){return c},V9:function(){return l},bg:function(){return p},eB:function(){return s},eY:function(){return d}});var r=n(94706),a=function(e){return e[e.SuperAdmin=1]="SuperAdmin",e[e.Operation=2]="Operation",e[e.CertifiedTeacher=5]="CertifiedTeacher",e[e.TrainingProduction=8]="TrainingProduction",e[e.UncertifiedTeacher=12]="UncertifiedTeacher",e[e.Student=15]="Student",e}({}),o=function(e){return e[e.SuperAdmin=1]="SuperAdmin",e[e.Operation=2]="Operation",e[e.Admin=5]="Admin",e[e.Teacher=8]="Teacher",e[e.Assistant=12]="Assistant",e[e.Student=15]="Student",e}(o||{}),i=function(e){var t=(0,r.getDvaApp)()._store.getState().user.userInfo;return e.some((function(e){return e==(null==t?void 0:t.role)}))},u=function(e){var t=(0,r.getDvaApp)()._store.getState().user.userInfo;return!(null==t||!t.own)||e.some((function(e){var n;return e==(null==t||null===(n=t.course)||void 0===n?void 0:n.course_role)}))},c=function(){return i([a.SuperAdmin,a.Operation])},s=function(){return u([o.SuperAdmin,o.Operation,o.Admin,o.Teacher,o.Assistant])},l=function(){var e=(0,r.getDvaApp)()._store.getState(),t=e.user,n=t.userInfo;return!(null==n||!n.is_shixun_marker)||i([a.SuperAdmin,a.Operation,a.CertifiedTeacher,a.TrainingProduction])},f=function(){return i([a.Student])},p=function(){var e;return!(null===(e=(0,r.getDvaApp)()._store.getState().user.userInfo)||void 0===e||!e.login)},d=function(){return(0,r.getDvaApp)()._store.getState().user.userInfo}},657:function(e,t,n){"use strict";n.d(t,{F:function(){return r}});var r={load:"text/html",123:"application/vndlotus-1-2-3","3ds":"image/x-3ds","3g2":"video/3gpp","3ga":"video/3gpp","3gp":"video/3gpp","3gpp":"video/3gpp",602:"application/x-t602",669:"audio/x-mod","7z":"application/x-7z-compressed",a:"application/x-archive",aac:"audio/mp4",abw:"application/x-abiword",abwcrashed:"application/x-abiword",abwgz:"application/x-abiword",ac3:"audio/ac3",ace:"application/x-ace",adb:"text/x-adasrc",ads:"text/x-adasrc",afm:"application/x-font-afm",ag:"image/x-applix-graphics",ai:"application/illustrator",aif:"audio/x-aiff",aifc:"audio/x-aiff",aiff:"audio/x-aiff",al:"application/x-perl",alz:"application/x-alz",amr:"audio/amr",ani:"application/x-navi-animation","anim[1-9j]":"video/x-anim",anx:"application/annodex",ape:"audio/x-ape",arj:"application/x-arj",arw:"image/x-sony-arw",as:"application/x-applix-spreadsheet",asc:"text/plain",asf:"video/x-ms-asf",asp:"application/x-asp",ass:"text/x-ssa",asx:"audio/x-ms-asx",atom:"application/atom+xml",au:"audio/basic",avi:"video/x-msvideo",aw:"application/x-applix-word",awb:"audio/amr-wb",awk:"application/x-awk",axa:"audio/annodex",axv:"video/annodex",bak:"application/x-trash",bcpio:"application/x-bcpio",bdf:"application/x-font-bdf",bib:"text/x-bibtex",bin:"application/octet-stream",blend:"application/x-blender",blender:"application/x-blender",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip",c:"text/x-csrc","c++":"text/x-c++src",cab:"application/vndms-cab-compressed",cb7:"application/x-cb7",cbr:"application/x-cbr",cbt:"application/x-cbt",cbz:"application/x-cbz",cc:"text/x-c++src",cdf:"application/x-netcdf",cdr:"application/vndcorel-draw",cer:"application/x-x509-ca-cert",cert:"application/x-x509-ca-cert",cgm:"image/cgm",chm:"application/x-chm",chrt:"application/x-kchart",class:"application/x-java",cls:"text/x-tex",cmake:"text/x-cmake",cpio:"application/x-cpio",cpiogz:"application/x-cpio-compressed",cpp:"text/x-c++src",cr2:"image/x-canon-cr2",crt:"application/x-x509-ca-cert",crw:"image/x-canon-crw",cs:"text/x-csharp",csh:"application/x-csh",css:"text/css",cssl:"text/css",csv:"text/csv",cue:"application/x-cue",cur:"image/x-win-bitmap",cxx:"text/x-c++src",d:"text/x-dsrc",dar:"application/x-dar",dbf:"application/x-dbf",dc:"application/x-dc-rom",dcl:"text/x-dcl",dcm:"application/dicom",dcr:"image/x-kodak-dcr",dds:"image/x-dds",deb:"application/x-deb",der:"application/x-x509-ca-cert",desktop:"application/x-desktop",dia:"application/x-dia-diagram",diff:"text/x-patch",divx:"video/x-msvideo",djv:"image/vnddjvu",djvu:"image/vnddjvu",dng:"image/x-adobe-dng",doc:"application/msword",docbook:"application/docbook+xml",docm:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",docx:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",dot:"text/vndgraphviz",dsl:"text/x-dsl",dtd:"application/xml-dtd",dtx:"text/x-tex",dv:"video/dv",dvi:"application/x-dvi",dvibz2:"application/x-bzdvi",dvigz:"application/x-gzdvi",dwg:"image/vnddwg",dxf:"image/vnddxf",e:"text/x-eiffel",egon:"application/x-egon",eif:"text/x-eiffel",el:"text/x-emacs-lisp",emf:"image/x-emf",emp:"application/vndemusic-emusic_package",ent:"application/xml-external-parsed-entity",eps:"image/x-eps",epsbz2:"image/x-bzeps",epsgz:"image/x-gzeps",epsf:"image/x-eps",epsfbz2:"image/x-bzeps",epsfgz:"image/x-gzeps",epsi:"image/x-eps",epsibz2:"image/x-bzeps",epsigz:"image/x-gzeps",epub:"application/epub+zip",erl:"text/x-erlang",es:"application/ecmascript",etheme:"application/x-e-theme",etx:"text/x-setext",exe:"application/x-ms-dos-executable",exr:"image/x-exr",ez:"application/andrew-inset",f:"text/x-fortran",f90:"text/x-fortran",f95:"text/x-fortran",fb2:"application/x-fictionbook+xml",fig:"image/x-xfig",fits:"image/fits",fl:"application/x-fluid",flac:"audio/x-flac",flc:"video/x-flic",fli:"video/x-flic",flv:"video/x-flv",flw:"application/x-kivio",fo:"text/x-xslfo",for:"text/x-fortran",g3:"image/fax-g3",gb:"application/x-gameboy-rom",gba:"application/x-gba-rom",gcrd:"text/directory",ged:"application/x-gedcom",gedcom:"application/x-gedcom",gen:"application/x-genesis-rom",gf:"application/x-tex-gf",gg:"application/x-sms-rom",gif:"image/gif",glade:"application/x-glade",gmo:"application/x-gettext-translation",gnc:"application/x-gnucash",gnd:"application/gnunet-directory",gnucash:"application/x-gnucash",gnumeric:"application/x-gnumeric",gnuplot:"application/x-gnuplot",gp:"application/x-gnuplot",gpg:"application/pgp-encrypted",gplt:"application/x-gnuplot",gra:"application/x-graphite",gsf:"application/x-font-type1",gsm:"audio/x-gsm",gtar:"application/x-tar",gv:"text/vndgraphviz",gvp:"text/x-google-video-pointer",gz:"application/x-gzip",h:"text/x-chdr","h++":"text/x-c++hdr",hdf:"application/x-hdf",hh:"text/x-c++hdr",hp:"text/x-c++hdr",hpgl:"application/vndhp-hpgl",hpp:"text/x-c++hdr",hs:"text/x-haskell",htm:"text/html",html:"text/html",hwp:"application/x-hwp",hwt:"application/x-hwt",hxx:"text/x-c++hdr",ica:"application/x-ica",icb:"image/x-tga",icns:"image/x-icns",ico:"image/vndmicrosofticon",ics:"text/calendar",idl:"text/x-idl",ief:"image/ief",iff:"image/x-iff",ilbm:"image/x-ilbm",ime:"text/x-imelody",imy:"text/x-imelody",ins:"text/x-tex",iptables:"text/x-iptables",iso:"application/x-cd-image",iso9660:"application/x-cd-image",it:"audio/x-it",j2k:"image/jp2",jad:"text/vndsunj2meapp-descriptor",jar:"application/x-java-archive",java:"text/x-java",jng:"image/x-jng",jnlp:"application/x-java-jnlp-file",jp2:"image/jp2",jpc:"image/jp2",jpe:"image/jpeg",jpeg:"image/jpeg",jpf:"image/jp2",jpg:"image/jpeg",jpr:"application/x-jbuilder-project",jpx:"image/jp2",js:"application/javascript",json:"application/json",jsonp:"application/jsonp",k25:"image/x-kodak-k25",kar:"audio/midi",karbon:"application/x-karbon",kdc:"image/x-kodak-kdc",kdelnk:"application/x-desktop",kexi:"application/x-kexiproject-sqlite3",kexic:"application/x-kexi-connectiondata",kexis:"application/x-kexiproject-shortcut",kfo:"application/x-kformula",kil:"application/x-killustrator",kino:"application/smil",kml:"application/vndgoogle-earthkml+xml",kmz:"application/vndgoogle-earthkmz",kon:"application/x-kontour",kpm:"application/x-kpovmodeler",kpr:"application/x-kpresenter",kpt:"application/x-kpresenter",kra:"application/x-krita",ksp:"application/x-kspread",kud:"application/x-kugar",kwd:"application/x-kword",kwt:"application/x-kword",la:"application/x-shared-library-la",latex:"text/x-tex",ldif:"text/x-ldif",lha:"application/x-lha",lhs:"text/x-literate-haskell",lhz:"application/x-lhz",log:"text/x-log",ltx:"text/x-tex",lua:"text/x-lua",lwo:"image/x-lwo",lwob:"image/x-lwo",lws:"image/x-lws",ly:"text/x-lilypond",lyx:"application/x-lyx",lz:"application/x-lzip",lzh:"application/x-lha",lzma:"application/x-lzma",lzo:"application/x-lzop",m:"text/x-matlab",m15:"audio/x-mod",m2t:"video/mpeg",m3u:"audio/x-mpegurl",m3u8:"audio/x-mpegurl",m4:"application/x-m4",m4a:"audio/mp4",m4b:"audio/x-m4b",m4v:"video/mp4",mab:"application/x-markaby",man:"application/x-troff-man",mbox:"application/mbox",md:"application/x-genesis-rom",mdb:"application/vndms-access",mdi:"image/vndms-modi",me:"text/x-troff-me",med:"audio/x-mod",metalink:"application/metalink+xml",mgp:"application/x-magicpoint",mid:"audio/midi",midi:"audio/midi",mif:"application/x-mif",minipsf:"audio/x-minipsf",mka:"audio/x-matroska",mkv:"video/x-matroska",ml:"text/x-ocaml",mli:"text/x-ocaml",mm:"text/x-troff-mm",mmf:"application/x-smaf",mml:"text/mathml",mng:"video/x-mng",mo:"application/x-gettext-translation",mo3:"audio/x-mo3",moc:"text/x-moc",mod:"audio/x-mod",mof:"text/x-mof",moov:"video/quicktime",mov:"video/quicktime",movie:"video/x-sgi-movie","mp+":"audio/x-musepack",mp2:"video/mpeg",mp3:"audio/mpeg",mp4:"video/mp4",mpc:"audio/x-musepack",mpe:"video/mpeg",mpeg:"video/mpeg",mpg:"video/mpeg",mpga:"audio/mpeg",mpp:"audio/x-musepack",mrl:"text/x-mrml",mrml:"text/x-mrml",mrw:"image/x-minolta-mrw",ms:"text/x-troff-ms",msi:"application/x-msi",msod:"image/x-msod",msx:"application/x-msx-rom",mtm:"audio/x-mod",mup:"text/x-mup",mxf:"application/mxf",n64:"application/x-n64-rom",nb:"application/mathematica",nc:"application/x-netcdf",nds:"application/x-nintendo-ds-rom",nef:"image/x-nikon-nef",nes:"application/x-nes-rom",nfo:"text/x-nfo",not:"text/x-mup",nsc:"application/x-netshow-channel",nsv:"video/x-nsv",o:"application/x-object",obj:"application/x-tgif",ocl:"text/x-ocl",oda:"application/oda",odb:"application/vndoasisopendocumentdatabase",odc:"application/vndoasisopendocumentchart",odf:"application/vndoasisopendocumentformula",odg:"application/vndoasisopendocumentgraphics",odi:"application/vndoasisopendocumentimage",odm:"application/vndoasisopendocumenttext-master",odp:"application/vndoasisopendocumentpresentation",ods:"application/vndoasisopendocumentspreadsheet",odt:"application/vndoasisopendocumenttext",oga:"audio/ogg",ogg:"video/x-theora+ogg",ogm:"video/x-ogm+ogg",ogv:"video/ogg",ogx:"application/ogg",old:"application/x-trash",oleo:"application/x-oleo",opml:"text/x-opml+xml",ora:"image/openraster",orf:"image/x-olympus-orf",otc:"application/vndoasisopendocumentchart-template",otf:"application/x-font-otf",otg:"application/vndoasisopendocumentgraphics-template",oth:"application/vndoasisopendocumenttext-web",otp:"application/vndoasisopendocumentpresentation-template",ots:"application/vndoasisopendocumentspreadsheet-template",ott:"application/vndoasisopendocumenttext-template",owl:"application/rdf+xml",oxt:"application/vndopenofficeorgextension",p:"text/x-pascal",p10:"application/pkcs10",p12:"application/x-pkcs12",p7b:"application/x-pkcs7-certificates",p7s:"application/pkcs7-signature",pack:"application/x-java-pack200",pak:"application/x-pak",par2:"application/x-par2",pas:"text/x-pascal",patch:"text/x-patch",pbm:"image/x-portable-bitmap",pcd:"image/x-photo-cd",pcf:"application/x-cisco-vpn-settings",pcfgz:"application/x-font-pcf",pcfz:"application/x-font-pcf",pcl:"application/vndhp-pcl",pcx:"image/x-pcx",pdb:"chemical/x-pdb",pdc:"application/x-aportisdoc",pdf:"application/pdf",pdfbz2:"application/x-bzpdf",pdfgz:"application/x-gzpdf",pef:"image/x-pentax-pef",pem:"application/x-x509-ca-cert",perl:"application/x-perl",pfa:"application/x-font-type1",pfb:"application/x-font-type1",pfx:"application/x-pkcs12",pgm:"image/x-portable-graymap",pgn:"application/x-chess-pgn",pgp:"application/pgp-encrypted",php:"application/x-php",php3:"application/x-php",php4:"application/x-php",pict:"image/x-pict",pict1:"image/x-pict",pict2:"image/x-pict",pickle:"application/python-pickle",pk:"application/x-tex-pk",pkipath:"application/pkix-pkipath",pkr:"application/pgp-keys",pl:"application/x-perl",pla:"audio/x-iriver-pla",pln:"application/x-planperfect",pls:"audio/x-scpls",pm:"application/x-perl",png:"image/png",pnm:"image/x-portable-anymap",pntg:"image/x-macpaint",po:"text/x-gettext-translation",por:"application/x-spss-por",pot:"text/x-gettext-translation-template",ppm:"image/x-portable-pixmap",pps:"application/vndms-powerpoint",ppt:"application/vndms-powerpoint",pptm:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",pptx:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",ppz:"application/vndms-powerpoint",prc:"application/x-palm-database",ps:"application/postscript",psbz2:"application/x-bzpostscript",psgz:"application/x-gzpostscript",psd:"image/vndadobephotoshop",psf:"audio/x-psf",psfgz:"application/x-gz-font-linux-psf",psflib:"audio/x-psflib",psid:"audio/prssid",psw:"application/x-pocket-word",pw:"application/x-pw",py:"text/x-python",pyc:"application/x-python-bytecode",pyo:"application/x-python-bytecode",qif:"image/x-quicktime",qt:"video/quicktime",qtif:"image/x-quicktime",qtl:"application/x-quicktime-media-link",qtvr:"video/quicktime",ra:"audio/vndrn-realaudio",raf:"image/x-fuji-raf",ram:"application/ram",rar:"application/x-rar",ras:"image/x-cmu-raster",raw:"image/x-panasonic-raw",rax:"audio/vndrn-realaudio",rb:"application/x-ruby",rdf:"application/rdf+xml",rdfs:"application/rdf+xml",reg:"text/x-ms-regedit",rej:"application/x-reject",rgb:"image/x-rgb",rle:"image/rle",rm:"application/vndrn-realmedia",rmj:"application/vndrn-realmedia",rmm:"application/vndrn-realmedia",rms:"application/vndrn-realmedia",rmvb:"application/vndrn-realmedia",rmx:"application/vndrn-realmedia",roff:"text/troff",rp:"image/vndrn-realpix",rpm:"application/x-rpm",rss:"application/rss+xml",rt:"text/vndrn-realtext",rtf:"application/rtf",rtx:"text/richtext",rv:"video/vndrn-realvideo",rvx:"video/vndrn-realvideo",s3m:"audio/x-s3m",sam:"application/x-amipro",sami:"application/x-sami",sav:"application/x-spss-sav",scm:"text/x-scheme",sda:"application/vndstardivisiondraw",sdc:"application/vndstardivisioncalc",sdd:"application/vndstardivisionimpress",sdp:"application/sdp",sds:"application/vndstardivisionchart",sdw:"application/vndstardivisionwriter",sgf:"application/x-go-sgf",sgi:"image/x-sgi",sgl:"application/vndstardivisionwriter",sgm:"text/sgml",sgml:"text/sgml",sh:"application/x-shellscript",shar:"application/x-shar",shn:"application/x-shorten",siag:"application/x-siag",sid:"audio/prssid",sik:"application/x-trash",sis:"application/vndsymbianinstall",sisx:"x-epoc/x-sisx-app",sit:"application/x-stuffit",siv:"application/sieve",sk:"image/x-skencil",sk1:"image/x-skencil",skr:"application/pgp-keys",slk:"text/spreadsheet",smaf:"application/x-smaf",smc:"application/x-snes-rom",smd:"application/vndstardivisionmail",smf:"application/vndstardivisionmath",smi:"application/x-sami",smil:"application/smil",sml:"application/smil",sms:"application/x-sms-rom",snd:"audio/basic",so:"application/x-sharedlib",spc:"application/x-pkcs7-certificates",spd:"application/x-font-speedo",spec:"text/x-rpm-spec",spl:"application/x-shockwave-flash",spx:"audio/x-speex",sql:"text/x-sql",sr2:"image/x-sony-sr2",src:"application/x-wais-source",srf:"image/x-sony-srf",srt:"application/x-subrip",ssa:"text/x-ssa",stc:"application/vndsunxmlcalctemplate",std:"application/vndsunxmldrawtemplate",sti:"application/vndsunxmlimpresstemplate",stm:"audio/x-stm",stw:"application/vndsunxmlwritertemplate",sty:"text/x-tex",sub:"text/x-subviewer",sun:"image/x-sun-raster",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",svg:"image/svg+xml",svgz:"image/svg+xml-compressed",swf:"application/x-shockwave-flash",sxc:"application/vndsunxmlcalc",sxd:"application/vndsunxmldraw",sxg:"application/vndsunxmlwriterglobal",sxi:"application/vndsunxmlimpress",sxm:"application/vndsunxmlmath",sxw:"application/vndsunxmlwriter",sylk:"text/spreadsheet",t:"text/troff",t2t:"text/x-txt2tags",tar:"application/x-tar",tarbz:"application/x-bzip-compressed-tar",tarbz2:"application/x-bzip-compressed-tar",targz:"application/x-compressed-tar",tarlzma:"application/x-lzma-compressed-tar",tarlzo:"application/x-tzo",tarxz:"application/x-xz-compressed-tar",tarz:"application/x-tarz",tbz:"application/x-bzip-compressed-tar",tbz2:"application/x-bzip-compressed-tar",tcl:"text/x-tcl",tex:"text/x-tex",texi:"text/x-texinfo",texinfo:"text/x-texinfo",tga:"image/x-tga",tgz:"application/x-compressed-tar",theme:"application/x-theme",themepack:"application/x-windows-themepack",tif:"image/tiff",tiff:"image/tiff",tk:"text/x-tcl",tlz:"application/x-lzma-compressed-tar",tnef:"application/vndms-tnef",tnf:"application/vndms-tnef",toc:"application/x-cdrdao-toc",torrent:"application/x-bittorrent",tpic:"image/x-tga",tr:"text/troff",ts:"application/x-linguist",tsv:"text/tab-separated-values",tta:"audio/x-tta",ttc:"application/x-font-ttf",ttf:"application/x-font-ttf",ttx:"application/x-font-ttx",txt:"text/plain",txz:"application/x-xz-compressed-tar",tzo:"application/x-tzo",ufraw:"application/x-ufraw",ui:"application/x-designer",uil:"text/x-uil",ult:"audio/x-mod",uni:"audio/x-mod",uri:"text/x-uri",url:"text/x-uri",ustar:"application/x-ustar",vala:"text/x-vala",vapi:"text/x-vala",vcf:"text/directory",vcs:"text/calendar",vct:"text/directory",vda:"image/x-tga",vhd:"text/x-vhdl",vhdl:"text/x-vhdl",viv:"video/vivo",vivo:"video/vivo",vlc:"audio/x-mpegurl",vob:"video/mpeg",voc:"audio/x-voc",vor:"application/vndstardivisionwriter",vst:"image/x-tga",wav:"audio/x-wav",wax:"audio/x-ms-asx",wb1:"application/x-quattropro",wb2:"application/x-quattropro",wb3:"application/x-quattropro",wbmp:"image/vndwapwbmp",wcm:"application/vndms-works",wdb:"application/vndms-works",webm:"video/webm",wk1:"application/vndlotus-1-2-3",wk3:"application/vndlotus-1-2-3",wk4:"application/vndlotus-1-2-3",wks:"application/vndms-works",wma:"audio/x-ms-wma",wmf:"image/x-wmf",wml:"text/vndwapwml",wmls:"text/vndwapwmlscript",wmv:"video/x-ms-wmv",wmx:"audio/x-ms-asx",wp:"application/vndwordperfect",wp4:"application/vndwordperfect",wp5:"application/vndwordperfect",wp6:"application/vndwordperfect",wpd:"application/vndwordperfect",wpg:"application/x-wpg",wpl:"application/vndms-wpl",wpp:"application/vndwordperfect",wps:"application/vndms-works",wri:"application/x-mswrite",wrl:"model/vrml",wv:"audio/x-wavpack",wvc:"audio/x-wavpack-correction",wvp:"audio/x-wavpack",wvx:"audio/x-ms-asx",x3f:"image/x-sigma-x3f",xac:"application/x-gnucash",xbel:"application/x-xbel",xbl:"application/xml",xbm:"image/x-xbitmap",xcf:"image/x-xcf",xcfbz2:"image/x-compressed-xcf",xcfgz:"image/x-compressed-xcf",xhtml:"application/xhtml+xml",xi:"audio/x-xi",xla:"application/vndms-excel",xlc:"application/vndms-excel",xld:"application/vndms-excel",xlf:"application/x-xliff",xliff:"application/x-xliff",xll:"application/vndms-excel",xlm:"application/vndms-excel",xls:"application/vndms-excel",xlsm:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlsx:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlt:"application/vndms-excel",xlw:"application/vndms-excel",xm:"audio/x-xm",xmf:"audio/x-xmf",xmi:"text/x-xmi",xml:"application/xml",xpm:"image/x-xpixmap",xps:"application/vndms-xpsdocument",xsl:"application/xml",xslfo:"text/x-xslfo",xslt:"application/xml",xspf:"application/xspf+xml",xul:"application/vndmozillaxul+xml",xwd:"image/x-xwindowdump",xyz:"chemical/x-pdb",xz:"application/x-xz",w2p:"application/w2p",z:"application/x-compress",zabw:"application/x-abiword",zip:"application/zip"}},67390:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r,a,o,i={PROXY_SERVER:"https://172.16.100.14",API_SERVER:"http://172.16.100.14",REPORT_SERVER:"http://192.168.1.57:3001",IMG_SERVER:"https://new-testali-cdn.educoder.net",FORGE:"https://code.educoder.net/",SSH_SERVER:"wss://webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",TERMINAL_URL:"testsvc1.vnc.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},u={local:{API_SERVER:"http://localhost:3000",IMG_SERVER:"https://testali-cdn.educoder.net/",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://test-oldweb.educoder.net/",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},dev:i,newReactTest:{API_SERVER:function(){var e;switch(location.host){case"test4.educoder.net":e="https://test4-data.educoder.net";break;case"test3.educoder.net":e="https://test3-data.educoder.net";break;case"test2.educoder.net":e="https://test2-data.educoder.net";break;default:e="https://test-data.educoder.net"}return e}(),SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",IMG_SERVER:(a="https://new-testali-cdn.educoder.net",o=location.host,"test3.educoder.net"===o&&(a="https://test3-data.educoder.net"),"test4.educoder.net"===o&&(a="https://test4-data.educoder.net"),a),OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://test-oldweb.educoder.net/",QQLoginCB:encodeURIComponent("https://test-data.educoder.net"),TERMINAL_URL:"testsvc1.vnc.educoder.net",AI_PLATFORM_URL:"https://aitest.educoder.net"},preNewBuild:{API_SERVER:(r="https://pre-data.educoder.net","pre2.educoder.net"===location.host&&(r="https://pre-data2.educoder.net"),r),IMG_SERVER:"https://preali-cdn.educoder.net",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://pre-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",FORGE:"https://forge.educoder.net/",QQLoginCB:encodeURIComponent("https://pre.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},newBuild:{API_SERVER:function(){var e="https://data.educoder.net";return"kepukehuan.educoder.net"===document.domain?e="https://kepukehuan-data.educoder.net":"www.tokcoder.com"!==document.domain&&"tokcoder.com"!==document.domain||(e="https://data.tokcoder.com"),e}(),SSH_SERVER:"wss://webssh.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",SSH_Slice:"https://fu.educoder.net",IMG_SERVER:"https://ali-cdn.educoder.net",OFFICE_SERVER:"https://officeserver.educoder.net",CABLE_SERVER:"wss://data.educoder.net/cable",ONLYOFFICE:"https://office.educoder.net",OFFICE_IP:"https://officedata.educoder.net",FORGE:"https://code.educoder.net/",QQLoginCB:encodeURIComponent("https://www.educoder.net"),TERMINAL_URL:".jupyter.educoder.net",AI_PLATFORM_URL:"https://ai.educoder.net"},newTest:{API_SERVER:"https://test-data.educoder.net",IMG_SERVER:"https://test-data.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",FORGE:"http://test-oldweb.educoder.net/",QQLoginCB:encodeURIComponent("https://test-data.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},test:{API_SERVER:"",IMG_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"http://test-oldweb.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},preBuild:{API_SERVER:"",IMG_SERVER:"https://preali-cdn.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://forge.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},newWeb:{API_SERVER:"https://test-newweb.educoder.net",IMG_SERVER:"https://test-newweb.educoder.net/",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"http://test-oldweb.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},build:{API_SERVER:"",IMG_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://forge.educoder.net/",SSH_SERVER:"wss://webssh.educoder.net",SSH_Slice:"https://fu.educoder.net",OFFICE_SERVER:"https://officeserver.educoder.net",CABLE_SERVER:"wss://data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"https://officedata.educoder.net",QQLoginCB:encodeURIComponent("https://www.educoder.net"),TERMINAL_URL:".jupyter.educoder.net",AI_PLATFORM_URL:"https://aitest.educoder.net"}},c=u[window.ENV||"dev"]},79723:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Ee},IV:function(){return Oe}});var r=n(82242),a=n.n(r),o=n(31468),i=n.n(o),u=n(7557),c=n.n(u),s=n(41498),l=n.n(s),f=n(67390),p=n(59301),d=n(17004),h=n(48755),v=n(60840),m=n(11774),y=n(29679),g=n(19248),b=n(99267),_=n(96512),w=n(78987),x=n(58617),k=n(92310),E=n.n(k),S=n(40271),C=n(83397),P=n(66604),O=n(75030),j=n(63356),A=n(51636),T=n(16931);var I=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,a=`${t}-notice`,o=new P.E4("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[a]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new P.E4("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new P.E4("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[a]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new P.E4("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}};const M=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],R={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},L=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},Z=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},L(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Z(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},M.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[R[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))};const N=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:a,notificationMarginBottom:o,borderRadiusLG:i,colorSuccess:u,colorInfo:c,colorWarning:s,colorError:l,colorTextHeading:f,notificationBg:p,notificationPadding:d,notificationMarginEdge:h,notificationProgressBg:v,notificationProgressHeight:m,fontSize:y,lineHeight:g,width:b,notificationIconSize:_,colorText:w}=e,x=`${n}-notice`;return{position:"relative",marginBottom:o,marginInlineStart:"auto",background:p,borderRadius:i,boxShadow:r,[x]:{padding:d,width:b,maxWidth:`calc(100vw - ${(0,P.bf)(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:g,wordWrap:"break-word"},[`${x}-message`]:{marginBottom:e.marginXS,color:f,fontSize:a,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:y,color:w},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(_).equal(),fontSize:a},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(_).equal(),fontSize:y},[`${x}-icon`]:{position:"absolute",fontSize:_,lineHeight:1,[`&-success${t}`]:{color:u},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:s},[`&-error${t}`]:{color:l}},[`${x}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},(0,j.Qy)(e)),[`${x}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${(0,P.bf)(i)} * 2)`,left:{_skip_check_:!0,value:i},right:{_skip_check_:!0,value:i},bottom:0,blockSize:m,border:0,"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:v},"&::-webkit-progress-value":{borderRadius:i,background:v}},[`${x}-actions`]:{float:"right",marginTop:e.marginSM}}},$=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:a,motionEaseInOut:o}=e,i=`${t}-notice`,u=new P.E4("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},(0,j.Wf)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:o,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:o,animationFillMode:"both",animationDuration:a,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:u,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-actions`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:Object.assign({},N(e))}}]},F=e=>({zIndexPopup:e.zIndexPopupBase+O.u6+50,width:384}),B=e=>{const t=e.paddingMD,n=e.paddingLG;return(0,A.IX)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${(0,P.bf)(e.paddingMD)} ${(0,P.bf)(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})};var q=(0,T.I$)("Notification",(e=>{const t=B(e);return[$(t),I(t),D(t)]}),F),z=(0,T.bk)(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=B(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},N(n)),{width:n.width,maxWidth:`calc(100vw - ${(0,P.bf)(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),F),H=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,icon:n,type:r,message:a,description:o,actions:i,role:u="alert"}=e;let c=null;return n?c=p.createElement("span",{className:`${t}-icon`},n):r&&(c=p.createElement(W[r]||null,{className:E()(`${t}-icon`,`${t}-icon-${r}`)})),p.createElement("div",{className:E()({[`${t}-with-icon`]:c}),role:u},c,p.createElement("div",{className:`${t}-message`},a),p.createElement("div",{className:`${t}-description`},o),i&&p.createElement("div",{className:`${t}-actions`},i))};var G=e=>{const{prefixCls:t,className:n,icon:r,type:a,message:o,description:i,btn:u,actions:c,closable:s=!0,closeIcon:l,className:f}=e,d=H(e,["prefixCls","className","icon","type","message","description","btn","actions","closable","closeIcon","className"]),{getPrefixCls:v}=p.useContext(h.E_),m=null!=c?c:u;const y=t||v("notification"),g=`${y}-notice`,b=(0,C.Z)(y),[_,w,x]=q(y,b);return _(p.createElement("div",{className:E()(`${g}-pure-panel`,w,n,x,b)},p.createElement(z,{prefixCls:y}),p.createElement(S.qX,Object.assign({},d,{prefixCls:y,eventKey:"pure",duration:null,closable:s,className:E()({notificationClassName:f}),closeIcon:U(y,l),content:p.createElement(V,{prefixCls:g,icon:r,type:a,message:o,description:i,actions:m})}))))},Y=n(32383),K=n(57700);var X=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{let{children:t,prefixCls:n}=e;const r=(0,C.Z)(n),[a,o,i]=q(n,r);return a(p.createElement(S.JB,{classNames:{list:E()(o,i,r)}},t))},J=(e,t)=>{let{prefixCls:n,key:r}=t;return p.createElement(Q,{prefixCls:n,key:r},e)},ee=p.forwardRef(((e,t)=>{const{top:n,bottom:r,prefixCls:a,getContainer:o,maxCount:i,rtl:u,onAllRemoved:c,stack:s,duration:l,pauseOnHover:f=!0,showProgress:d}=e,{getPrefixCls:v,getPopupContainer:m,notification:y,direction:g}=(0,p.useContext)(h.E_),[,b]=(0,K.ZP)(),_=a||v("notification"),[w,x]=(0,S.lm)({prefixCls:_,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=n?n:24,null!=r?r:24),className:()=>E()({[`${_}-rtl`]:null!=u?u:"rtl"===g}),motion:()=>function(e){return{motionName:`${e}-fade`}}(_),closable:!0,closeIcon:U(_),duration:null!=l?l:4.5,getContainer:()=>(null==o?void 0:o())||(null==m?void 0:m())||document.body,maxCount:i,pauseOnHover:f,showProgress:d,onAllRemoved:c,renderNotifications:J,stack:!1!==s&&{threshold:"object"==typeof s?null==s?void 0:s.threshold:void 0,offset:8,gap:b.margin}});return p.useImperativeHandle(t,(()=>Object.assign(Object.assign({},w),{prefixCls:_,notification:y}))),x}));function te(e){const t=p.useRef(null),n=((0,Y.ln)("Notification"),p.useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:a,prefixCls:o,notification:i}=t.current,u=`${o}-notice`,{message:c,description:s,icon:l,type:f,btn:d,actions:h,className:v,style:m,role:y="alert",closeIcon:g,closable:b}=n,_=X(n,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]);const w=null!=h?h:d,x=U(u,function(e,t,n){return void 0!==e?e:void 0!==(null==t?void 0:t.closeIcon)?t.closeIcon:null==n?void 0:n.closeIcon}(g,e,i));return a(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:"topRight"},_),{content:p.createElement(V,{prefixCls:u,icon:l,type:f,message:c,description:s,actions:w,role:y}),className:E()(f&&`${u}-${f}`,v,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),m),closeIcon:x,closable:null!=b?b:!!x}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),r}),[]));return[n,p.createElement(ee,Object.assign({key:"notification-holder"},e,{ref:t}))]}let ne=null,re=e=>e(),ae=[],oe={};function ie(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:a,showProgress:o,pauseOnHover:i}=oe,u=(null==e?void 0:e())||document.body;return{getContainer:()=>u,rtl:t,maxCount:n,top:r,bottom:a,showProgress:o,pauseOnHover:i}}const ue=p.forwardRef(((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:a}=(0,p.useContext)(h.E_),o=oe.prefixCls||a("notification"),i=(0,p.useContext)(d.J),[u,c]=te(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),i.notification));return p.useEffect(r,[]),p.useImperativeHandle(t,(()=>{const e=Object.assign({},u);return Object.keys(e).forEach((t=>{e[t]=function(){return r(),u[t].apply(u,arguments)}})),{instance:e,sync:r}})),c})),ce=p.forwardRef(((e,t)=>{const[n,r]=p.useState(ie),a=()=>{r(ie)};p.useEffect(a,[]);const o=(0,v.w6)(),i=o.getRootPrefixCls(),u=o.getIconPrefixCls(),c=o.getTheme(),s=p.createElement(ue,{ref:t,sync:a,notificationConfig:n});return p.createElement(v.ZP,{prefixCls:i,iconPrefixCls:u,theme:c},o.holderRender?o.holderRender(s):s)}));function se(){if(!ne){const e=document.createDocumentFragment(),t={fragment:e};return ne=t,void re((()=>{(0,m.x)()(p.createElement(ce,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,se())}))}}),e)}))}ne.instance&&(ae.forEach((e=>{switch(e.type){case"open":re((()=>{ne.instance.open(Object.assign(Object.assign({},oe),e.config))}));break;case"destroy":re((()=>{null==ne||ne.instance.destroy(e.key)}))}})),ae=[])}function le(e){(0,v.w6)();ae.push({type:"open",config:e}),se()}const fe={open:le,destroy:e=>{ae.push({type:"destroy",key:e}),se()},config:function(e){oe=Object.assign(Object.assign({},oe),e),re((()=>{var e;null===(e=null==ne?void 0:ne.sync)||void 0===e||e.call(ne)}))},useNotification:function(e){return te(e)},_InternalPanelDoNotUseOrYouWillBeFired:G};["success","info","warning","error"].forEach((e=>{fe[e]=t=>le(Object.assign(Object.assign({},t),{type:e}))}));var pe,de=fe,he=n(91662),ve=n(6767),me=n(85582),ye=n.n(me),ge=n(94706),be=n(1079),_e={200:"服务器成功返回请求的数据。",201:"新建或修改数据成功。",202:"一个请求已经进入后台排队(异步任务)。",204:"删除数据成功。",400:"发出的请求有错误,服务器没有进行新建或修改数据的操作。",401:"用户没有权限(令牌、用户名、密码错误)。",403:"用户得到授权,但是访问是被禁止的。",404:"发出的请求针对的是不存在的记录,服务器没有进行操作。",406:"请求的格式不可得。",410:"请求的资源被永久删除,且不会再得到的。",422:"当创建一个对象时,发生一个验证错误。",500:"服务器发生错误,请检查服务器。",502:"网关错误。",503:"服务不可用,服务器暂时过载或维护。",504:"网关超时。"},we=function(e){try{"string"==typeof e&&(e=JSON.parse(e));return JSON.stringify(e).replace(/\/api\/attachments\/(\d+)/g,(function(e,t,n,r){var a=t||n||r;return"/api/attachments/"+(0,be.Jn)(a)})).replace(/\/attachments\/download\/(\d+)/g,(function(e,t,n){var r=t||n;return"/attachments/download/"+(0,be.Jn)(r)})).replace(/\(\s+\/api\/attachments\/(\d+)|\(\/api\/attachments\/(\d+)\//g,(function(e,t,n,r){var a=t||n||r;return"(/api/attachments/"+(0,be.Jn)(a)})).replace(/\"\/api\/attachments\/(\d+)\//g,(function(e,t,n){var r=t||n;return'"/api/attachments/'+(0,be.Jn)(r)})).replace(/\(\s+\/files\/uploads\/(\d+)|\"\/files\/uploads\/(\d+)\//g,(function(e,t,n){var r=t||n;return"(/files/uploads/"+(0,be.Jn)(r)})).replace(/\r\n/g,"\n")}catch(e){return null}},xe=function(){var e=l()(c()().mark((function e(t,n){var r,a,o,i;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.status>=200&&t.status<300)){e.next=2;break}return e.abrupt("return",t);case 2:return r=_e[t.status]||t.statusText,o=t.json(),e.next=6,o.then((function(e,n){setTimeout((function(){(0,ge.getDvaApp)()}),400),a=e.message,window.showNetworkErrorTip(e.message||"请求错误 ".concat(t.status,": ").concat(t.message)),de.error({style:{wordBreak:"break-all"},message:e.message||"请求错误 ".concat(t.status,": ").concat(t.message),description:e.message?"":r})}));case 6:throw(i=new Error(r)).name=t.status,i.response=t,{data:t,code:t.status,message:a||r};case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();var ke=function(e){e=e||{};var t="",n=function(n){"object"===i()(e[n])?Array.isArray(e[n])&&e[n].forEach((function(e,r){t+="&"+n+"[]="+e})):void 0!==e[n]&&(t+="&"+n+"="+(function(e){try{return decodeURIComponent(e),decodeURIComponent(encodeURIComponent(e))===e}catch(e){return!1}}(e[n])?e[n]:encodeURIComponent(e[n])))};for(var r in e)n(r);return t.substr(1)};function Ee(e,t,n,r){!t.method&&(t.method="get"),t.method=t.method.toUpperCase(),t.mode="cors";var o=a()({},t),i=(0,ge.getDvaApp)()._store.getState().user.userInfo,u=e+(o.body?JSON.stringify(o.body):""),s=(ye().sha256().update(u).digest("hex"),{});null!=i&&i.login&&(s.zzud=null==i?void 0:i.login,null!=i&&i.school_id&&(s.zzsud=null==i?void 0:i.school_id),o.params=a()(a()({},o.params||{}),s));var p=a()(a()({},{credentials:"include",withCredentials:!0}),JSON.parse(JSON.stringify(o)));"POST"!==p.method&&"PUT"!==p.method&&"PATCH"!==p.method&&"DELETE"!==p.method||(n?(p.headers=a()(a()({},p.headers),{},{"Pc-Authorization":(0,be.ej)("_educoder_session")}),p.body=o.body):(p.headers=a()({Accept:"application/json","Content-Type":"application/json; charset=utf-8","Pc-Authorization":(0,be.ej)("_educoder_session")},p.headers),p.body=JSON.stringify(o.body))),"GET"==p.method?(p.headers=a()(a()({Accept:"application/json","Content-Type":"application/json; charset=utf-8"},p.headers),{},{"Pc-Authorization":(0,be.ej)("_educoder_session")}),o.params&&ke(o.params)&&(e+="?"+ke(o.params))):s.zzud&&(e+="?"+ke(a()({},s)));o.expirys;var d=function(){var e=l()(c()().mark((function e(t){var n,r,a,o,i,u;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.arrayBuffer();case 2:n=e.sent,a=new Blob([n]);try{r=t.headers.get("Content-Disposition").split(";")[1].replace("filename=","").replace(/[\s+,\',\",\‘,\’,\“,\”,\<,\>,\《,\》]/g,"")}catch(e){r="userfiles.zip"}return o=document.createElement("a"),i=window.URL.createObjectURL(a),u=r,o.href=i,o.download=u,o.click(),window.URL.revokeObjectURL(i),e.abrupt("return",n);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=f.Z.API_SERVER;return("dev"===window.ENV||e.startsWith("http"))&&(h=""),"GET"==p.method&&p.params&&Object.keys(p.params).map((function(e){if(p.params[e])if(Array.isArray(p.params[e]));else try{p.params[e]=encodeURIComponent(decodeURIComponent(p.params[e]))}catch(t){p.params[e]=encodeURIComponent(p.params[e])}})),(0,be.Ec)(p,e),r&&(h=""),fetch(h+e,p).then((function(t){return xe(t,a()({url:f.Z.API_SERVER+e},p))})).then((function(e){return function(e,t){var n=e.headers.get("Content-Type");return n&&n.match(/application\/json/i)&&e.clone().text().then((function(){})),e}(e)})).then(function(){var t=l()(c()().mark((function t(n){var r,a,i,u,s,l;return c()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{(i=n.headers.get("cs"))&&(0,be.d8)("_educoder_session",i,1)}catch(e){}if(204!==n.status){t.next=3;break}return t.abrupt("return",n.text());case 3:if(!(n.headers.get("content-type").indexOf("application/json")>-1)){t.next=10;break}return t.next=6,n.json();case 6:u=t.sent;try{u=JSON.parse(we(u))}catch(e){}t.next=25;break;case 10:if("application/xml"!==p.headers["Content-Type"]){t.next=16;break}return t.next=13,n.text();case 13:u=t.sent,t.next=25;break;case 16:if(!(null!==(r=o.body)&&void 0!==r&&r.autoDownload||null!==(a=o.params)&&void 0!==a&&a.autoDownload)){t.next=22;break}return t.next=19,d(n);case 19:u=t.sent,t.next=25;break;case 22:return t.next=24,n.arrayBuffer();case 24:u=t.sent;case 25:try{401!==u.status||null!==(s=p.params)&&void 0!==s&&s.hidePopLogin&&null!==(l=p.body)&&void 0!==l&&l.hidePopLogin||(0,ge.getDvaApp)()._store.dispatch({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),402===u.status&&("2"===localStorage.getItem("addinfo")?(0,ge.getDvaApp)()._store.dispatch({type:"shixunHomeworks/setActionTabs",payload:{key:"填充信息弹窗"}}):(pe=pe||he.Z.confirm({visible:!1,okText:"确定",cancelText:"取消"})).update({centered:!0,visible:!0,title:"提示",content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){ge.history.push("/account/profile/edit")}}))}catch(e){console.log("fetcherr",e)}return Pe(u,e),t.abrupt("return",u);case 28:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){try{var n=t.code;if(t instanceof TypeError&&window.showNetworkErrorTip("".concat(e,'').concat(t.message,"")),n){if(401===n)return void(0,ge.getDvaApp)()._store.dispatch({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}});Pe(t,e)}else e.includes("/file/filePatchMerge")?(0,ge.getDvaApp)()._store.dispatch({type:"shixunHomeworks/setActionTabs",payload:{key:"分片专用504",params:p.body}}):"403"!==t.message&&window.showNetworkErrorTip("".concat(e,'').concat(t.message,""));return t}catch(t){}}))}var Se=!1,Ce=!1,Pe=function(e,t){if(-6==e.status&&!Ce)return Ce=!0,(0,be.d8)("_educoder_session","logout",1),(0,be.m5)(),setTimeout((function(){return Ce=!1}),500),void he.Z.info({title:"系统通知",content:e.message,okText:"知道了",maskStyle:{background:"#000"},onOk:function(){window.location.reload()}});if(-7==e.status){var n;Ce=!0,setTimeout((function(){return Ce=!1}),500);var r,a="";if(null!=e&&null!==(n=e.data)&&void 0!==n&&n.exercise_list)null==e||null===(r=e.data)||void 0===r||null===(r=r.exercise_list)||void 0===r||r.map((function(e){a+='《').concat(e.exercise_name,"》")}));return he.Z.info({title:"提示",content:p.createElement("div",{id:"fetchStatus7",className:"fetchStatus7"},""),maskClosable:!1,closeIcon:!1,width:550,maskStyle:{background:"#000"},okText:"返回首页",onOk:function(){window.location.href="/"}}),void setTimeout((function(){document.getElementById("fetchStatus7").innerHTML="
    您当前有正在进行的考试 ".concat(a," ,请在考试结束后访问该页面
    ")}),500)}if((-1==e.status||-2==e.status||-102==e.status||e.status>400)&&403!=e.status&&!Ce)return Ce=!0,setTimeout((function(){return Ce=!1}),500),void ve.ZP.warning({content:e.message,key:"message-key"});var o={403:"/403",404:"/404",500:"/500"};if(o[e.status]&&!Se){(0,ge.getDvaApp)()._store.getState().user.userInfo;throw window.location.pathname.indexOf("/users")>-1&&"kepukehuan.educoder.net"===document.domain&&(Se=!0),setTimeout((function(){return Se=!1}),500),sessionStorage.setItem("errorStatus",JSON.stringify(e)),Object.values(o).includes(window.location.pathname)?console.log("当前路径存在于 mapping 中, 不再执行跳转"):location.replace(o[e.status]),new Error("403")}};function Oe(e,t){return Ee("/api/".concat(e),{method:"delete",body:a()({},t||{})})}},80615:function(e,t,n){"use strict";n.d(t,{Bn:function(){return o},hw:function(){return a},mi:function(){return r}});var r="WTJJelpXRXdaakk0Tm1SbE56UTFPRFl5TXpnNVltWmtZVE0zTVdSalltST0=",a="WVdaak1UVmhOVEF3TkRRd05qZGlZemRsTVdZeFptSTROek5rT0daak1UYz0=",o="Y1dJeFpXRXdaakk0Tm1GblpqUTFPRFl5TXpnNVltWmtZVE0zTVdSalluQT0="},1079:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Dk:function(){return setDocumentTitle},EM:function(){return toChineseNumber},Ec:function(){return setHeader},FH:function(){return downLoadFile},HJ:function(){return handleValidatorName},IS:function(){return isWechatBrowser},Il:function(){return setThreeComponent},Jn:function(){return getImageUrl},L9:function(){return trackEvent},Ll:function(){return checkIsClientExam},M:function(){return setmiyah},Nd:function(){return downLoadLink},Or:function(){return toWechatLogin},Q8:function(){return disabledDate},Sv:function(){return downloadFile},U6:function(){return HalfPastOne},WX:function(){return isLocalApp},ZJ:function(){return toDataUrl},b9:function(){return isPc},d0:function(){return disabledTime},d8:function(){return setCookie},eF:function(){return bindPhone},ej:function(){return getCookie},m5:function(){return clearAllCookies},oP:function(){return getJsonFromUrl},s2:function(){return isMobileDevice},xg:function(){return openNewWindow},yC:function(){return compareVersion}});var _root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(37205),_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__),_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7557),_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__),_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(41498),_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__),_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(82242),_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__),_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(85573),_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__),_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_typeof_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(31468),_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_typeof_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v10_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_typeof_js__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(59301),_utils_authority__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(13277),antd__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(91662),_components_Exercise_ip__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(41889),_service_exercise__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(26613),_contentType__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(657),umi__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(94706),md5__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(93735),md5__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_12__),_env__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(67390),_components_mediator__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1499),crypto_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(28209),crypto_js__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(crypto_js__WEBPACK_IMPORTED_MODULE_15__),_key__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(80615),moment__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(61186),moment__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_16__),dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(33656),dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_17__),uuid__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(1012),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(37712),_location;moment__WEBPACK_IMPORTED_MODULE_16___default().extend(dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_17___default());var GetElementHeight=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var a=r?e.scrollHeight:e.offsetHeight;if("rem"===t){var o=n?"".concat(n):getComputedStyle(document.documentElement).fontSize,i=parseFloat(o),u=a/i;return u}return a},HighLightedContent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#2EC25B";return"string"==typeof t&&(t=[t]),e.replace(new RegExp("(".concat(t.join("|"),")"),"gi"),'$1'))},parseParams=function(e){e=e||{};var t="",n=function(n){"object"===_typeof(e[n])?Array.isArray(e[n])&&e[n].forEach((function(e,r){t+="&"+n+"[]="+e})):void 0!==e[n]&&(t+="&"+n+"="+e[n])};for(var r in e)n(r);return t.substr(1)},getKey=function(e){return window.atob(window.atob(e))};function bytesToSize(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var getTwoDecimalPlaces=function(e){return Math.round(Math.round(1e5*e)/1e3*100)/100},NewAntdDisabledDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=edayjs(null==t?void 0:t.endTime).endOf("day"),a=e1&&void 0!==arguments[1]?arguments[1]:null,n=parseInt(dayjs(e).format("HH")),r=(parseInt(dayjs(e).format("mm")),parseInt(dayjs().format("HH"))),a=parseInt(dayjs().format("mm"));parseInt(dayjs().format("ss"));function o(e,t){for(var n=[],r=e;rmoment__WEBPACK_IMPORTED_MODULE_16___default()(t).endOf("day"),u=e1?_jsxs(_Fragment,{children:[Math.round(e/1e4*100)/100,_jsx("i",{className:"font12",children:"w"})]}):e},toChineseNumber=function(e){for(var t=e.toString().replace(/(?=(\d{4})+$)/g,",").split(",").filter(Boolean),n=["零","一","二","三","四","五","六","七","八","九"],r=["","十","百","千"],a=["","万","亿"],o=function(e){for(var t="",a=0;a30?""+timeformat(e,"yyyy-MM-dd"):r>1?r+"天前":1==r?"昨天":a>=1?a+"小时前":o>=5?o+"分钟前":"刚刚"};function replaceParamVal(paramName,replaceWith){var oUrl=window.location.href.toString(),re=eval("/("+paramName+"=)([^&]*)/gi"),nUrl=oUrl.replace(re,paramName+"="+replaceWith);window.history.replaceState(null,"",nUrl)}var timeformat=function(e,t){"string"==typeof e&&(e.indexOf("T")>=0&&(e=e.replace("T"," ")),e=new Date(Date.parse(e.replace(/-/g,"/"))));var n={"M+":(e=new Date(e)).getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(var r in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(t)&&(t=t.replace(RegExp.$1,[["日","一","二","三","四","五","六"],["周日","周一","周二","周三","周四","周五","周六"],["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]][RegExp.$1.length-1][e.getDay()])),n)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[r]:("00"+n[r]).substr((""+n[r]).length)));return t},toTimeFormat=function(e){if(!e||e<0)return"0秒";console.log("time:",e);var t=e/86400,n=e/3600,r=e/60;return t>=1?parseInt(t.toString())+"天"+Math.floor(n%24)+"时"+Math.floor(r%60)+"分"+Math.floor(e%60)+"秒":n>1?parseInt(n.toString())+"时"+Math.floor(r%60)+"分"+Math.floor(e%60)+"秒":r>=1?parseInt(r.toString())+"分"+Math.floor(e%60)+"秒":Math.ceil(e)+"秒"},validateLength=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=0;if(e){n=e.length;for(var r=0;r=55296&&a<=56319&&(n--,r++)}}return n<=t};function buildTree(e,t){var n={},r=null;return e.forEach((function(e){n[e.properties.uuid]=_objectSpread(_objectSpread({},e),{},{children:[]})})),t.forEach((function(e){var t=n[e.startNodeUuid],r=n[e.endNodeUuid];t&&r&&t.children.push(r)})),e.forEach((function(e){!t.some((function(t){return t.endNodeUuid===e.properties.uuid}))&&(r=n[e.properties.uuid])})),r}var handleValidatorNickName=function(e,t,n){if(t){var r=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(t),a=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im.test(t);(!0===r||!0===a||t.length<2||t.length>=21)&&n("2-20位中英文、数字及下划线")}n()},handleValidatorName=function(e,t,n){if(t){var r=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(t),a=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im.test(t);(!0===r||!0===a||t.length<2||t.length>=21)&&n("2-20位中英文、数字")}n()},getHiddenName=function(e){if(!e)return"";for(var t=e.length-1,n="",r=0;r-1?".educoder.net":document.domain,";path=/;SameSite=None;secure")}var delCookie=function(e){document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"},clearAllCookies=function(){for(var e=document.cookie.split(";"),t=0;t-1?n.substr(0,r):n;document.cookie=a+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}};function downLoadLink(e,t){var n=document.createElement("a");document.body.appendChild(n),n.href=t,e&&(n.title=e,n.download=e);var r=document.createEvent("MouseEvents");r.initEvent("click",!1,!1),n.dispatchEvent(r),document.body.removeChild(n)}function getFirstLevelDomain(){var e=window.location.hostname,t=e.split(".").reverse();return t.length>2?[t[1],t[0]].join("."):e}function getBlob(e){return new Promise((function(t){var n=new window.XMLHttpRequest;(e.indexOf(getFirstLevelDomain())>-1||"localhost"===location.hostname&&e.indexOf("/api/")>-1)&&(n.withCredentials=!0),n.open("GET",e,!0),n.responseType="blob",n.onload=function(){200===n.status&&t(n.response)},n.send()}))}function saveAs(e,t){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(e,t);else{var n=document.createElement("a"),r=document.querySelector("body");n.href=window.URL.createObjectURL(e),n.download=t,n.style.display="none",r.appendChild(n),n.click(),r.removeChild(n),window.URL.revokeObjectURL(n.href)}}function download(e,t){getBlob(e).then((function(e){saveAs(e,t)}))}function downLoadFileIframe(e,t){return new Promise((function(e,n){var r,a=t,o=document.createElement("iframe");document.body.appendChild(o),o.src=a,o.style.display="none",o.addEventListener("load",(function(){setTimeout((function(){document.body.removeChild(o)}),1e3)}),!0),r=setInterval((function(){getCookie("fileDownload")&&(delCookie("fileDownload"),clearInterval(r),document.body.removeChild(o),e())}),1e3)}))}function downLoadFile(e,t){downLoadLink(e,t)}var setUrlQuery=function(e){var t=e.url,n=e.query;if(!t)return"";if(n){var r=[],a=function(e){n.hasOwnProperty(e)&&!isUnOrNull(n[e])&&("object"===_typeof(n[e])?n[e].map((function(t){r.push("".concat(e,"[]=").concat(t))})):r.push("".concat(e,"=").concat(n[e])))};for(var o in n)a(o);t=-1!==t.indexOf("?")?"".concat(t,"&").concat(r.join("&")):"".concat(t,"?").concat(r.join("&")),console.log("url1111",t)}return t};function isPc(){for(var e=navigator.userAgent,t=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],n=!0,r=0;r0){n=!1;break}return n}function isChrome(){var e=navigator.userAgent;return["Chrome"].some((function(t){return e.indexOf(t)>-1}))}function isFirefox(){var e=navigator.userAgent;return["Firefox"].some((function(t){return e.indexOf(t)>-1}))}function isChromeOrFirefox(){var e=navigator.userAgent;return["Chrome","Firefox"].some((function(t){return e.indexOf(t)>-1}))}var formatMoney=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null==t||null===(e=t.toString())||void 0===e?void 0:e.replace(/\B(?=(\d{3})+(?!\d))/g,",")},openNewWindow=function(e){var t=document.createElement("a");t.target="_blank",document.body.appendChild(t),t.href=e;var n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),t.dispatchEvent(n),document.body.removeChild(t)},openNewWindows=function(e){var t=document.createElement("a");document.body.appendChild(t),t.href=e;var n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),t.dispatchEvent(n),document.body.removeChild(t)},formatTextMiddleIntercept=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.length<=6?e:"".concat(e.substring(0,3),"...").concat(e.substring(e.length-3,e.length))},HalfPastOne=function(){var e=(new Date).getHours(),t=(new Date).getMinutes();return t>=30?(e++,t="00"):t="30",e+":"+t},DayHalfPastOne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"-",t=(new Date).getHours(),n=(new Date).getMinutes();return n>=30?(t++,n="00"):n="30",(new Date).toLocaleDateString().replace(/\//g,e)+" "+t+":"+n},Type=function(e){return e.Number="Number",e.String="String",e.Boolean="Boolean",e.Object="Object",e.Array="Array",e.Function="Function",e}(Type||{}),type=function(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)},isEmpty=function(e){return type(e)===Type.Array?0===e.length:type(e)===Type.Object?0===Object.keys(e).length:!e},rangeNumber=function(e,t){for(var n=[],r=e;r1&&void 0!==arguments[1]?arguments[1]:12,n=t/2-2,r=t/2+3;return e.length>t?e.substr(0,n)+"..."+e.substr(r,t):e},formatRate=function(e){return e>4.5?5:e>4&&e<=4.5?4.5:e>3.5&&e<=4?4:e>3&&e<=3.5?3.5:e>2.5&&e<=3?3:e>2&&e<=2.5?2.5:e>1.5&&e<=2?2:e>1&&e<=1.5?1.5:e>.5&&e<=1?1:e>0&&e<=.5?.5:0},isUnOrNull=function(e){return null==e};function getUrlToken(e,t){var n=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)"),"i"),r=t.substr(1).match(n);return null!=r?decodeURIComponent(r[2]):null}var getMessagesUrl=function(e){if(e.link_url)return window.open(e.link_url);switch(null==e?void 0:e.container_type){case"TeacherChangeUserInfo":return window.open("/account/profile");case"TeacherResetUserPassword":return window.open("/account/secure");case"ApplyUserAuthentication":return window.open("/account/certification")}switch(e.container_type){case"ApplyUserAuthentication":if("Apply"===e.tiding_type){if(1===e.auth_type)return window.open("/admins/identity_authentications");if(2===e.auth_type)return window.open("/admins/professional_authentications")}return"System"===e.tiding_type?window.open("/account/certification"):"Code"===e.tiding_type?window.open("/account/profile"):void 0;case"CancelUserAuthentication":case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddMajor":case"Major":return window.open("/account/profile");case"ApplyAddDepartment":return"Apply"===e.tiding_type?window.open("/admins/department_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAddSchools":return"Apply"===e.tiding_type?window.open("/admins/unit_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAction":switch(e.parent_container_type){case"ApplyShixun":if("Apply"===e.tiding_type)return window.open("/admins/shixun_authorizations");if("System"===e.tiding_type)return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"ApplySubject":if("Apply"===e.tiding_type)return window.open("/admins/subject_authorizations");if("System"===e.tiding_type)return window.open("/paths/".concat(e.parent_container_id));case"TrialAuthorization":if("Apply"===e.tiding_type)return window.open("/managements/trial_authorization");if("System"===e.tiding_type)return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));case"StudentJoinCourse":if("Apply"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));if("System"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/students"));case"DealCourse":case"TeacherJoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Course":if("Delete"===e.tiding_type)return;return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(e.container_id));case"JournalsForMessage":switch(e.parent_container_type){case"Principal":return"";case"HomeworkCommon":return"normal"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):"group"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):"practice"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":return window.open(e.link_url)}case"Memo":return window.open("/forums/".concat(e.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(e.trigger_user.login,"/classrooms"));case"PraiseTread":case"Grade":return"";case"JoinProject":case"ReporterJoinProject":case"DealProject":case"ManagerJoinProject":return window.open(ENV.FORGE+e.project_url);case"Poll":return e.parent_container_type,window.open("\t/classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"));case"Exercise":switch(e.parent_container_type){case"CommitExercise":case"ExerciseScore":return window.open("\t/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":case"DealStudentTopicSelect":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"GraduationTask":case"GraduationWork":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.parent_container_id));case"HomeworkCommon":switch(e.parent_container_type){case"AnonymousCommentFail":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));default:if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.trigger_user.id,"/review/").concat(e.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("".concat(ENV.API_SERVER,"/admins/mirror_repositories"));case"Journal":return window.open("/issues/".concat(e.parent_container_id));case"Issue":return window.open("/issues/".concat(e.container_id));case"PullRequest":return window.open(ENV.FORGE+e.project_url);case"Department":return window.open("/account/profile");case"Library":if("Apply"===e.tiding_type)return window.open("/admins/library_applies");if("System"===e.tiding_type)return window.open("/moop_cases/".concat(e.container_id));case"ProjectPackage":if("Destroyed"===e.tiding_type)return;return"Destroyed_end"===e.tiding_type?void 0:"Apply"===e.tiding_type?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(e.container_id));case"Discuss":return"Hack"===e.parent_container_type&&e.extra?window.open("/myproblems/".concat(e.extra,"/comment")):"ai_reply"===e.extra&&e.task_identifier?window.open("/tasks/".concat(e.task_identifier,"?extra=extra")):window.open("/shixuns/".concat(e.identifier,"/shixun_discuss"));case"Video":return"Apply"===e.tiding_type?window.open("/admins/video_applies"):"System"===e.tiding_type?window.open("/users/".concat(null===(t=userInfo())||void 0===t?void 0:t.login,"/videos")):"";var t;case"PublicCourseStart":return window.open("/classrooms/".concat(e.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(e.container_id));case"ResubmitStudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));case"AdjustScore":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(e.belong_container_id,"/course_videos?open=live"));case"Hack":if(e.extra&&"HackDelete"!==e.parent_container_type)return window.open("/problems/".concat(e.extra,"/edit"));default:return}},checkLocalOrPublicIp=null,_ref,checkDisabledExam=function(e){return new Promise(function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(n,r){var a;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,checkExam({id:null==e?void 0:e.exerciseId,coursesId:null==e?void 0:e.coursesId});case 2:if(0!==(null==(a=t.sent)?void 0:a.status)){t.next=6;break}return n(""),t.abrupt("return");case 6:setTimeout((function(){window.location.reload()}),2e3),r("");case 8:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}())},isKepuKehuan=function(){return location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1},startExercise=null,_ref4,httpBuildQuery=function e(t,n,r,a){if(console.log("param:",t),n=n||null,r=r||"&",a=a||null,!t)return"";return function(e){for(var t=new Array,n=0;n2&&/^[a-z]{2}$/.test(t[t.length-2])?t.slice(-3).join("."):t.slice(-2).join(".")}var setHeader=function(e,t){try{var n,r=Date.now(),a=(0,uuid__WEBPACK_IMPORTED_MODULE_19__.Z)(),o="method="+(null===(n=e.method)||void 0===n?void 0:n.toLocaleUpperCase())+"&ak="+getKey(_key__WEBPACK_IMPORTED_MODULE_20__.mi)+"&sk="+getKey(_key__WEBPACK_IMPORTED_MODULE_20__.hw)+"&time="+r;return e.headers["X-EDU-Type"]="pc",e.headers["X-EDU-Timestamp"]=r,e.headers["X-EDU-Signature"]=md5__WEBPACK_IMPORTED_MODULE_12___default()(window.btoa(o)),e.headers["Pc-Authorization"]=getCookie("_educoder_session"),e.headers["X-Original-Protocol"]=location.protocol,e.headers["X-Original-Host"]=location.host,e.headers["X-Request-Id"]=a,e}catch(n){console.log("error:",n,e,t)}},setThreeComponent=function(){var e;e=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=setHeader({method:t,headers:{}});e.call(this,t,n,r);try{n.indexOf(getTopLevelDomain())>-1&&(this.setRequestHeader("X-EDU-Type","pc"),this.setRequestHeader("X-EDU-Timestamps",a.headers["X-EDU-Timestamp"]),this.setRequestHeader("X-EDU-Signatures",a.headers["X-EDU-Signature"]),this.setRequestHeader("Pc-Authorization",getCookie("_educoder_session")))}catch(e){}},function(e){window.fetch=function(t,n){var r;return null!==(r=(n=n||{}).headers)&&void 0!==r&&r["X-EDU-Timestamp"]||setHeader(n),e.apply(this,arguments).then((function(e){return e}))}}(window.fetch)},parseUrl=function(e){var t={};return e.replace(/(\w+)=([^\#&]*)/gi,(function(e,n,r){t[n]=decodeURI(r)})),t},messageInfo=function(e,t){var n={1:"当前实践项目暂未发布,请联系本课堂教师。",2:"当前实践项目不存在,请联系本课堂教师。",3:"当前实践项目面向指定单位开放,请联系本课堂教师。",4:"当前实践项目将于".concat(t,"发布,请等待。")}[e];message.warning(n)},base64ToBlob=function(e,t){for(var n,r=window.atob(e),a=r.length,o=new Uint8Array(a),i=0;i0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.createElement("textarea");n.value=e,document.body.appendChild(n),n.select(),document.execCommand("Copy"),t||message.success("复制成功"),document.body.removeChild(n)},getJsonFromUrl=function(e){if(e||(e=window.location.search),!e)return{};var t=e.substring(1),n={};return t.split("&").forEach((function(e){var t=e.split("=");n[t[0]]=decodeURIComponent(t[1])})),n},arrTrans=function(e,t){if(!t)return null;var n=[];return t.forEach((function(t,r){var a=Math.floor(r/e);n[a]||(n[a]=[]),n[a].push(t)})),n},setDocumentTitle=function(e){checkIsClientExam()?document.title="头歌考试系统":""!==e&&e&&(document.title=e||(document.domain.indexOf(".educoder.net")>-1?"头歌实践教学平台":""))},checkIsClientExam=function(){var e;return null===(e=window)||void 0===e||null===(e=e.localStorage)||void 0===e?void 0:e.isClientExam},localSort={setItem:function(e,t,n){var r=e,a=localStorage.getItem(r),o=null!==a&&"[object Object]"!==a?JSON.parse(a):{};o[n]=t,localStorage.setItem(r,JSON.stringify(o))},getItem:function(e,t){var n=e,r=localStorage.getItem(n);return(null!==r&&"[object Object]"!==r?JSON.parse(r):{})[t]}},ImgSrcConvert=function(e){return null!=e&&e.startsWith("http")?e:ENV.IMG_SERVER+e},compareVersion=function(e){for(var t=getVersion(),n=e.split("."),r=t.split("."),a=Math.max(n.length,r.length);n.lengthu)return 1;if(i-1};function randomArray(e,t){var n,r,a=e.length;t=t||1;for(var o;0!==a;)r=Math.floor((o=void 0,((o=1e3*Math.sin(t++))-Math.floor(o))*a)),n=e[a-=1],e[a]=e[r],e[r]=n;return e}function pointerEvents(e){for(var t=document.getElementsByTagName("iframe"),n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!e)return"";var n=e.lastIndexOf("."),r=[e,""];if(-1!==n&&n!==e.length-1){var a=e.substring(0,n),o=e.substring(n+1);r=[a,o]}if(r[0].length>t){var i=r[0].slice(0,t)+"..."+r[1];return i}return e}function cutName(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"--";return e?(null==e?void 0:e.length)>=t?(null==e?void 0:e.slice(0,t))+"...":e:n}function timeContrast(e){return!e||moment().isBefore(moment(e))}function showTotal(e){return _jsxs("span",{className:"font14 c-grey-333",children:["共",_jsxs("span",{className:"c-light-primary",children:[" ",e," "]}),"条数据"]})}var formatRandomPaperData=function(e){var t={1:"一",2:"二",3:"三",4:"四",5:"五",6:"六",7:"七"};if(e){var n=e||{},r=n.exam,a=n.single_questions,o=n.multiple_questions,i=n.judgement_questions,u=n.program_questions,c=n.completion_questions,s=n.subjective_questions,l=n.practical_questions,f=n.combination_questions,p=n.bprogram_questions,d=[_objectSpread({type:"SINGLE",name:"单选题"},a),_objectSpread({type:"MULTIPLE",name:"多选题"},o),_objectSpread({type:"COMPLETION",name:"填空题"},c),_objectSpread({type:"JUDGMENT",name:"判断题"},i),_objectSpread({type:"SUBJECTIVE",name:"简答题"},s),_objectSpread({type:"PROGRAM",name:"编程题"},u),_objectSpread({type:"BPROGRAM",name:"程序填空题"},p),_objectSpread({type:"PRACTICAL",name:"实训题"},l),_objectSpread({type:"COMBINATION",name:"组合题"},f)],h=[],v=0,m=0,y=d.filter((function(e){return e.questions_count>0})).map((function(e,n){var r;return null===(r=e.questions)||void 0===r||r.forEach((function(e){h.push(e.id),v+=e.score,m+=1})),_objectSpread(_objectSpread({},e),{number:t[n+1]})}));return{all_questions_count:m,all_score:v,questionList:y,ids:h,exam:r}}},formatRandomPaperDatas=function(e){var t,n={1:"一",2:"二",3:"三",4:"四",5:"五",6:"六",7:"七"};if(e){var r=e||{},a=r.exam,o=r.single_questions,i=r.multiple_questions,u=r.judgement_questions,c=r.program_questions,s=r.completion_questions,l=r.subjective_questions,f=r.practical_questions,p=r.combination_questions,d=r.bprogram_questions,h=[_objectSpread({type:"SINGLE",name:"单选题"},o),_objectSpread({type:"MULTIPLE",name:"多选题"},i),_objectSpread({type:"COMPLETION",name:"填空题"},s),_objectSpread({type:"JUDGMENT",name:"判断题"},u),_objectSpread({type:"SUBJECTIVE",name:"简答题"},l),_objectSpread({type:"PROGRAM",name:"编程题"},c),_objectSpread({type:"BPROGRAM",name:"程序填空题"},d),_objectSpread({type:"PRACTICAL",name:"实训题"},f),_objectSpread({type:"COMBINATION",name:"组合题"},p)],v=[];null==a||null===(t=a.question_type_position)||void 0===t||t.map((function(e,t){null==h||h.map((function(t,n){e.type===t.type&&v.push(t)}))}));var m=[],y=0,g=0,b=v.filter((function(e){return e.questions_count>0})).map((function(e,t){var r;return null===(r=e.questions)||void 0===r||r.forEach((function(e){m.push(e.id),y+=e.score,g+=1})),_objectSpread(_objectSpread({},e),{number:n[t+1]})}));return{all_questions_count:g,all_score:y,questionList:b,ids:m,exam:a}}},isWechatBrowser=function(){return"micromessenger"==navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},toWechatLogin=function(){isWechatBrowser()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0955caba88bc37eb&redirect_uri=https%3A%2F%2Fwww.educoder.net%2fotherloginstart&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":window.location.href="/wxlogin.html"},isMobileDevice=function(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("Mobi")},sendAppStatus=function(e,t){try{var n;if(t){if(e.send(JSON.stringify({type:"toggleLockExit",data:!0})),null!=t&&t.forbid_screen&&e.send(JSON.stringify({type:"open-disabled-switchscreen"})),null!=t&&t.use_white_list&&e.send(JSON.stringify({type:"open-only-allow-runapp",data:null==t?void 0:t.white_list})),null!=t&&t.net_limit)e.send(JSON.stringify({type:"network-close",data:null==t||null===(n=t.net_limit_list)||void 0===n?void 0:n.split("\n")}))}else e.send(JSON.stringify({type:"toggleLockExit",data:!1})),e.send(JSON.stringify({type:"close-disabled-switchscreen"})),e.send(JSON.stringify({type:"close-only-allow-runapp"})),e.send(JSON.stringify({type:"network-open"}))}catch(e){}},addJumping=function(){var e=document.querySelector('a[title="增加填空"]'),t=null==e?void 0:e.querySelector("span");t&&(t.classList.remove("jumping-icon"),t.offsetWidth,t.classList.add("jumping-icon"),setTimeout((function(){var e;null==t||null===(e=t.classList)||void 0===e||e.remove("jumping-icon")}),2e3))},showClassroomsmodal=function(e){return!(null==e||!e.forbid_student_visit)&&(Modal.warning({title:"提示",icon:null,centered:!0,okText:"我知道了",content:_jsxs("span",{children:[_jsxs("span",{style:{fontWeight:600},children:[null==e?void 0:e.username,"老师 "]}),"已关闭该课堂,学生用户暂时无法访问 "]})}),!0)},getExamRestrictionInfo=function(e){var t=[];return e.is_locked&&t.push("考试解锁码"),e.login_restrict&&t.push("考试登录限制"),e.screen_open&&t.push("切屏后强制交卷"),e.ip_bind&&t.push("IP地址绑定"),"pub"!==e.ip_limit&&"inner"!==e.ip_limit||t.push("限制考试访问IP"),e.open_camera&&t.push("考试中启用拍照功能进行监考和行为分析"),e.identity_verify&&t.push("考试前人脸身份核验"),e.open_phone_video_recording&&t.push("考试中开启手机视频录制"),t.length>0?t.join("、"):""},releaseRuleDataAdjust=function(e){var t=e.reduce((function(e,t){var n="".concat(t.publish_time,"_").concat(t.end_time,"_").concat(t.is_admin);return e[n]?(e[n].group_name.push(t.group_name),e[n].group_id.push(t.group_id)):e[n]={publish_time:t.publish_time,end_time:t.end_time,is_admin:t.is_admin,group_name:[t.group_name],group_id:[t.group_id]},e}),{});return Object.values(t).map((function(e){return _objectSpread(_objectSpread({},e),{},{group_name:e.group_name.flat(),group_id:e.group_id.flat()})}))},aiReviewConfigformatChecks=function(e){if(!e||0===e.length)return!0;var t=new Set,n=new Set,r=!0,a=!0,o=null==e?void 0:e.reduce((function(e,o){return null!=t&&t.has(o.name)&&(r=!1),null==t||t.add(o.name),null!=n&&n.has(o.content)&&(a=!1),null==n||n.add(o.content),e+parseFloat(o.weight)}),0);return r?a?100==parseFloat(o.toFixed(2))||(message.warning("所有评分项目的权重之和必须为100%"),!1):(message.warning("评分标准内容不能重复!"),!1):(message.warning("评分项目内容不能重复!"),!1)}},91231:function(e,t,n){"use strict";n.d(t,{Il:function(){return u},Ov:function(){return c},T$:function(){return l}});var r=n(38127),a=n(59301),o=n(35338),i=["element"],u=a.createContext({});function c(){return a.useContext(u)}function s(){var e=(0,o.TH)(),t=c().clientRoutes;return(0,o.fp)(t,e.pathname)||[]}function l(){var e,t=(null===(e=s().slice(-1)[0])||void 0===e?void 0:e.route)||{};t.element;return(0,r.Z)(t,i)}},91392:function(e){var t={en_GB:"en-gb",en_US:"en",zh_CN:"zh-cn",zh_TW:"zh-tw"};e.exports=function(e,n,r){var a=n.prototype.locale;n.prototype.locale=function(e){var n;return"string"==typeof e&&(e=t[n=e]||n.split("_")[0]),a.call(this,e)}}},62487:function(e,t,n){"use strict";var r=n(59301),a=n(56553),o=n(70045);t.Z=e=>{const{space:t,form:n,children:i}=e;if(null==i)return null;let u=i;return n&&(u=r.createElement(a.Ux,{override:!0,status:!0},u)),t&&(u=r.createElement(o.BR,null,u)),u}},45915:function(e,t,n){"use strict";n.d(t,{i:function(){return u}});var r=n(59301),a=n(18929),o=n(60840),i=n(48755);function u(e){return t=>r.createElement(o.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}t.Z=(e,t,n,o,c)=>u((u=>{const{prefixCls:s,style:l}=u,f=r.useRef(null),[p,d]=r.useState(0),[h,v]=r.useState(0),[m,y]=(0,a.Z)(!1,{value:u.open}),{getPrefixCls:g}=r.useContext(i.E_),b=g(o||"select",s);r.useEffect((()=>{if(y(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;d(t.offsetHeight+8),v(t.offsetWidth)})),t=setInterval((()=>{var n;const r=c?`.${c(b)}`:`.${b}-dropdown`,a=null===(n=f.current)||void 0===n?void 0:n.querySelector(r);a&&(clearInterval(t),e.observe(a))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let _=Object.assign(Object.assign({},u),{style:Object.assign(Object.assign({},l),{margin:0}),open:m,visible:m,getPopupContainer:()=>f.current});n&&(_=n(_)),t&&Object.assign(_,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const w={paddingBottom:p,position:"relative",minWidth:h};return r.createElement("div",{ref:f,style:w},r.createElement(e,Object.assign({},_)))}))},78776:function(e,t,n){"use strict";n.d(t,{Z:function(){return l},w:function(){return i}});var r=n(59301),a=n(99267),o=n(26112);function i(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function u(e){const{closable:t,closeIcon:n}=e||{};return r.useMemo((()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e}),[t,n])}function c(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const s={};function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;const i=u(e),l=u(t),f="boolean"!=typeof i&&!!(null==i?void 0:i.disabled),p=r.useMemo((()=>Object.assign({closeIcon:r.createElement(a.Z,null)},n)),[n]),d=r.useMemo((()=>!1!==i&&(i?c(p,l,i):!1!==l&&(l?c(p,l):!!p.closable&&p))),[i,l,p]);return r.useMemo((()=>{if(!1===d)return[!1,null,f];const{closeIconRender:e}=p,{closeIcon:t}=d;let n=t;if(null!=n){e&&(n=e(t));const a=(0,o.Z)(d,!0);Object.keys(a).length&&(n=r.isValidElement(n)?r.cloneElement(n,a):r.createElement("span",Object.assign({},a),n))}return[!0,n,f]}),[d,p])}},75030:function(e,t,n){"use strict";n.d(t,{Cn:function(){return l},u6:function(){return u}});var r=n(59301),a=n(57700),o=n(55743);const i=100,u=1e3,c={Modal:i,Drawer:i,Popover:i,Popconfirm:i,Tooltip:i,Tour:i,FloatButton:i},s={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const l=(e,t)=>{const[,n]=(0,a.ZP)(),i=r.useContext(o.Z),u=e in c;let l;if(void 0!==t)l=[t,t];else{let r=null!=i?i:0;r+=u?(i?0:n.zIndexPopupBase)+c[e]:s[e],l=[void 0===i?t:r,r]}return l}},86641:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var r=n(48755);const a=()=>({height:0,opacity:0}),o=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},i=e=>({height:e?e.offsetHeight:0}),u=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,c=(e,t,n)=>void 0!==n?n:`${e}-${t}`;t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.Rf;return{motionName:`${e}-motion-collapse`,onAppearStart:a,onEnterStart:a,onAppearActive:o,onEnterActive:o,onLeaveStart:i,onLeaveActive:a,onAppearEnd:u,onEnterEnd:u,onLeaveEnd:u,motionDeadline:500}}},22703:function(e,t,n){"use strict";n.d(t,{M2:function(){return a},Tm:function(){return i},wm:function(){return o}});var r=n(59301);function a(e){return e&&r.isValidElement(e)&&e.type===r.Fragment}const o=(e,t,n)=>r.isValidElement(e)?r.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t;function i(e,t){return o(e,e,t)}},32383:function(e,t,n){"use strict";n.d(t,{G8:function(){return o},ln:function(){return i}});var r=n(59301);n(48736);function a(){}const o=r.createContext({}),i=()=>{const e=()=>{};return e.deprecated=a,e}},12919:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(59301),a=n(92310),o=n.n(a),i=n(29194),u=n(8654),c=n(48755),s=n(22703),l=n(16931);const f=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}};var p=(0,l.A1)("Wave",(e=>[f(e)])),d=n(6089),h=n(16089),v=n(57700),m=n(63872),y=n(77900),g=n(11774);function b(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function _(e){return Number.isNaN(e)?0:e}const w=e=>{const{className:t,target:n,component:a,registerUnmount:i}=e,c=r.useRef(null),s=r.useRef(null);r.useEffect((()=>{s.current=i()}),[]);const[l,f]=r.useState(null),[p,d]=r.useState([]),[v,g]=r.useState(0),[w,x]=r.useState(0),[k,E]=r.useState(0),[S,C]=r.useState(0),[P,O]=r.useState(!1),j={left:v,top:w,width:k,height:S,borderRadius:p.map((e=>`${e}px`)).join(" ")};function A(){const e=getComputedStyle(n);f(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return b(t)?t:b(n)?n:b(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:a}=e;g(t?n.offsetLeft:_(-parseFloat(r))),x(t?n.offsetTop:_(-parseFloat(a))),E(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:o,borderTopRightRadius:i,borderBottomLeftRadius:u,borderBottomRightRadius:c}=e;d([o,i,c,u].map((e=>_(parseFloat(e)))))}if(l&&(j["--wave-color"]=l),r.useEffect((()=>{if(n){const e=(0,h.Z)((()=>{A(),O(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(A),t.observe(n)),()=>{h.Z.cancel(e),null==t||t.disconnect()}}}),[]),!P)return null;const T=("Checkbox"===a||"Radio"===a)&&(null==n?void 0:n.classList.contains(m.A));return r.createElement(y.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=c.current)||void 0===n?void 0:n.parentElement;null===(r=s.current)||void 0===r||r.call(s).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:a}=e;return r.createElement("div",{ref:(0,u.sQ)(c,n),className:o()(t,a,{"wave-quick":T}),style:j})}))};var x=(e,t)=>{var n;const{component:a}=t;if("Checkbox"===a&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild);const i=(0,g.x)();let u=null;u=i(r.createElement(w,Object.assign({},t,{target:e,registerUnmount:function(){return u}})),o)};var k=(e,t,n)=>{const{wave:a}=r.useContext(c.E_),[,o,i]=(0,v.ZP)(),u=(0,d.Z)((r=>{const u=e.current;if((null==a?void 0:a.disabled)||!u)return;const c=u.querySelector(`.${m.A}`)||u,{showEffect:s}=a||{};(s||x)(c,{className:t,token:o,component:n,event:r,hashId:i})})),s=r.useRef(null);return e=>{h.Z.cancel(s.current),s.current=(0,h.Z)((()=>{u(e)}))}};var E=e=>{const{children:t,disabled:n,component:a}=e,{getPrefixCls:l}=(0,r.useContext)(c.E_),f=(0,r.useRef)(null),d=l("wave"),[,h]=p(d),v=k(f,o()(d,h),a);if(r.useEffect((()=>{const e=f.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!(0,i.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||v(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!r.isValidElement(t))return null!=t?t:null;const m=(0,u.Yr)(t)?(0,u.sQ)((0,u.C4)(t),f):f;return(0,s.Tm)(t,{ref:m})}},63872:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});const r=`${n(48755).Rf}-wave-target`},55743:function(e,t,n){"use strict";const r=n(59301).createContext(void 0);t.Z=r},17004:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var r=n(59301);const a=r.createContext({})},61670:function(e,t,n){"use strict";n.d(t,{Dn:function(){return f},aG:function(){return c},hU:function(){return p},nx:function(){return s}});var r=n(95190),a=n(59301),o=n(22703),i=n(34998);const u=/^[\u4E00-\u9FA5]{2}$/,c=u.test.bind(u);function s(e){return"danger"===e?{danger:!0}:{type:e}}function l(e){return"string"==typeof e}function f(e){return"text"===e||"link"===e}function p(e,t){let n=!1;const r=[];return a.Children.forEach(e,(e=>{const t=typeof e,a="string"===t||"number"===t;if(n&&a){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=a})),a.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&l(e.type)&&c(e.props.children)?(0,o.Tm)(e,{children:e.props.children.split("").join(n)}):l(e)?c(e)?a.createElement("span",null,e.split("").join(n)):a.createElement("span",null,e):(0,o.M2)(e)?a.createElement("span",null,e):e}(e,t)))}["default","primary","danger"].concat((0,r.Z)(i.i))},20743:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Ie}});var r=n(59301),a=n(92310),o=n.n(a),i=n(2738),u=n(8654),c=n(12919),s=n(48755),l=n(2171),f=n(31756),p=n(70045),d=n(57700),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n}=r.useContext(s.E_),{prefixCls:a,size:i,className:u}=e,c=h(e,["prefixCls","size","className"]),l=t("btn-group",a),[,,f]=(0,d.ZP)(),p=r.useMemo((()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}}),[i]);const m=o()(l,{[`${l}-${p}`]:p,[`${l}-rtl`]:"rtl"===n},u,f);return r.createElement(v.Provider,{value:i},r.createElement("div",Object.assign({},c,{className:m})))},y=n(61670),g=n(58617),b=n(77900);const _=(0,r.forwardRef)(((e,t)=>{const{className:n,style:a,children:i,prefixCls:u}=e,c=o()(`${u}-icon`,n);return r.createElement("span",{ref:t,className:c,style:a},i)}));var w=_;const x=(0,r.forwardRef)(((e,t)=>{const{prefixCls:n,className:a,style:i,iconClassName:u}=e,c=o()(`${n}-loading-icon`,a);return r.createElement(w,{prefixCls:n,className:c,style:i,ref:t},r.createElement(g.Z,{className:u}))})),k=()=>({width:0,opacity:0,transform:"scale(0)"}),E=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var S=e=>{const{prefixCls:t,loading:n,existIcon:a,className:i,style:u,mount:c}=e,s=!!n;return a?r.createElement(x,{prefixCls:t,className:i,style:u}):r.createElement(b.ZP,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:k,onAppearActive:E,onEnterStart:k,onEnterActive:E,onLeaveStart:E,onLeaveActive:k},((e,n)=>{let{className:a,style:c}=e;const s=Object.assign(Object.assign({},u),c);return r.createElement(x,{prefixCls:t,className:o()(i,a),style:s,ref:n})}))},C=n(66604),P=n(63356),O=n(34998),j=n(51636),A=n(16931);const T=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var I=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},T(`${t}-primary`,a),T(`${t}-danger`,o)]}},M=n(99153),R=n(84851),L=n(19257),Z=n(93046),D=n(20439),N=n(62646),$=n(93664),F=n(17835),B=["b"],q=["v"],z=function(e){return Math.round(Number(e||0))},H=function(e){(0,L.Z)(n,e);var t=(0,Z.Z)(n);function n(e){return(0,M.Z)(this,n),t.call(this,function(e){if(e instanceof F.t)return e;if(e&&"object"===(0,$.Z)(e)&&"h"in e&&"b"in e){var t=e,n=t.b,r=(0,N.Z)(t,B);return(0,D.Z)((0,D.Z)({},r),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return(0,R.Z)(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=z(100*e.s),n=z(100*e.b),r=z(e.h),a=e.a,o="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),i="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(a.toFixed(0===a?0:2),")");return 1===a?o:i}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,n=(0,N.Z)(e,q);return(0,D.Z)((0,D.Z)({},n),{},{b:t,a:this.a})}}]),n}(F.t),U=function(e){return e instanceof H?e:new H(e)};U("#1677ff");n(70425);let W=function(){return(0,R.Z)((function e(t){var n;if((0,M.Z)(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map((t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}})),this.metaColor=new H(this.colors[0].color.metaColor)):this.metaColor=new H(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)})):this.toHexString()===e.toHexString())}}])}();n(18929);const V=(e,t)=>{const{r:n,g:r,b:a,a:o}=e.toRgb(),i=new H(e.toRgbString()).onBackground(t).toHsv();return o<=.5?i.v>.5:.299*n+.587*r+.114*a>192};var G=n(45156),Y=n(28620);const K=e=>{const{paddingInline:t,onlyIconSize:n}=e;return(0,j.IX)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},X=e=>{var t,n,r,a,o,i;const u=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,l=null!==(a=e.contentLineHeight)&&void 0!==a?a:(0,G.D)(u),f=null!==(o=e.contentLineHeightSM)&&void 0!==o?o:(0,G.D)(c),p=null!==(i=e.contentLineHeightLG)&&void 0!==i?i:(0,G.D)(s),d=V(new W(e.colorBgSolid),"#fff")?"#000":"#fff",h=O.i.reduce(((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${(0,C.bf)(e.controlOutlineWidth)} 0 ${(0,Y.Z)(e[`${n}1`],e.colorBgContainer)}`})),{});return Object.assign(Object.assign({},h),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:d,contentFontSize:u,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:l,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-u*l)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*p)/2-e.lineWidth,0)})},Q=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:o,motionEaseInOut:i,marginXS:u,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,C.bf)(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:(0,P.Ro)(),"> a":{color:"currentColor"},"&:not(:disabled)":(0,P.Qy)(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:a,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map((e=>`${e} ${o} ${i}`)).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(u).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(u).mul(-1).equal()}}}}}},J=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),ee=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),te=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),ne=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),re=(e,t,n,r,a,o,i,u)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},J(e,Object.assign({background:t},i),Object.assign({background:t},u))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),ae=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},ne(e))}),oe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ie=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?oe:ae;return Object.assign(Object.assign({},a(e)),J(e.componentCls,t,n))},ue=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},ie(e,r,a))}),ce=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},ie(e,r,a))}),se=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),le=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},ie(e,n,r))}),fe=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},ie(e,r,a,n))}),pe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ue(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),se(e)),le(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),re(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),fe(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),de=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},ce(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),se(e)),le(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),fe(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),fe(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),re(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),he=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ue(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),ce(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),se(e)),le(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),fe(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),fe(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),re(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ve=e=>Object.assign(Object.assign({},fe(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),re(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),me=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:pe(e),[`${t}-color-primary`]:de(e),[`${t}-color-dangerous`]:he(e),[`${t}-color-link`]:ve(e)},(e=>{const{componentCls:t}=e;return O.i.reduce(((n,r)=>{const a=e[`${r}6`],o=e[`${r}1`],i=e[`${r}5`],u=e[`${r}2`],c=e[`${r}3`],s=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:a,boxShadow:e[`${r}ShadowColor`]},ue(e,e.colorTextLightSolid,a,{background:i},{background:s})),ce(e,a,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:s,borderColor:s,background:e.colorBgContainer})),se(e)),le(e,o,{background:u},{background:c})),fe(e,a,"link",{color:i},{color:s})),fe(e,a,"text",{color:i,background:o},{color:s,background:c}))})}),{})})(e))},ye=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ce(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),fe(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ue(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),fe(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ge=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:o,buttonPaddingHorizontal:i,iconCls:u,buttonPaddingVertical:c,buttonIconOnlyFontSize:s}=e;return[{[t]:{fontSize:a,height:r,padding:`${(0,C.bf)(c)} ${(0,C.bf)(i)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[u]:{fontSize:s}}}},{[`${n}${n}-circle${t}`]:ee(e)},{[`${n}${n}-round${t}`]:te(e)}]},be=e=>{const t=(0,j.IX)(e,{fontSize:e.contentFontSize});return ge(t,e.componentCls)},_e=e=>{const t=(0,j.IX)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return ge(t,`${e.componentCls}-sm`)},we=e=>{const t=(0,j.IX)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return ge(t,`${e.componentCls}-lg`)},xe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var ke=(0,A.I$)("Button",(e=>{const t=K(e);return[Q(t),be(t),_e(t),we(t),xe(t),me(t),ye(t),I(t)]}),X,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}}),Ee=n(56119);function Se(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Ce(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Se(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Pe=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,o=a(r).mul(-1).equal(),i=e=>{const a=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${a} + ${a}::before`]:{position:"absolute",top:e?o:0,insetInlineStart:e?0:o,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))};var Oe=(0,A.bk)(["Button","compact"],(e=>{const t=K(e);return[(0,Ee.c)(t),Ce(t),Pe(t)]}),X),je=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{var n,a;const{loading:d=!1,prefixCls:h,color:m,variant:g,type:b,danger:_=!1,shape:x="default",size:k,styles:E,disabled:C,className:P,rootClassName:O,children:j,icon:A,iconPosition:T="start",ghost:I=!1,block:M=!1,htmlType:R="button",classNames:L,style:Z={},autoInsertSpace:D,autoFocus:N}=e,$=je(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),F=b||"default",[B,q]=(0,r.useMemo)((()=>{if(m&&g)return[m,g];const e=Ae[F]||[];return _?["danger",e[1]]:e}),[b,m,g,_]),z="danger"===B?"dangerous":B,{getPrefixCls:H,direction:U,autoInsertSpace:W,className:V,style:G,classNames:Y,styles:K}=(0,s.dj)("button"),X=null===(n=null!=D?D:W)||void 0===n||n,Q=H("btn",h),[J,ee,te]=ke(Q),ne=(0,r.useContext)(l.Z),re=null!=C?C:ne,ae=(0,r.useContext)(v),oe=(0,r.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(d)),[d]),[ie,ue]=(0,r.useState)(oe.loading),[ce,se]=(0,r.useState)(!1),le=(0,r.useRef)(null),fe=(0,u.x1)(t,le),pe=1===r.Children.count(j)&&!A&&!(0,y.Dn)(q),de=(0,r.useRef)(!0);r.useEffect((()=>(de.current=!1,()=>{de.current=!0})),[]),(0,r.useEffect)((()=>{let e=null;return oe.delay>0?e=setTimeout((()=>{e=null,ue(!0)}),oe.delay):ue(oe.loading),function(){e&&(clearTimeout(e),e=null)}}),[oe]),(0,r.useEffect)((()=>{if(!le.current||!X)return;const e=le.current.textContent||"";pe&&(0,y.aG)(e)?ce||se(!0):ce&&se(!1)})),(0,r.useEffect)((()=>{N&&le.current&&le.current.focus()}),[]);const he=r.useCallback((t=>{var n;ie||re?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)}),[e.onClick,ie,re]);const{compactSize:ve,compactItemClassnames:me}=(0,p.ri)(Q,U),ye={large:"lg",small:"sm",middle:void 0},ge=(0,f.Z)((e=>{var t,n;return null!==(n=null!==(t=null!=k?k:ve)&&void 0!==t?t:ae)&&void 0!==n?n:e})),be=ge&&null!==(a=ye[ge])&&void 0!==a?a:"",_e=ie?"loading":A,we=(0,i.Z)($,["navigate"]),xe=o()(Q,ee,te,{[`${Q}-${x}`]:"default"!==x&&x,[`${Q}-${F}`]:F,[`${Q}-dangerous`]:_,[`${Q}-color-${z}`]:z,[`${Q}-variant-${q}`]:q,[`${Q}-${be}`]:be,[`${Q}-icon-only`]:!j&&0!==j&&!!_e,[`${Q}-background-ghost`]:I&&!(0,y.Dn)(q),[`${Q}-loading`]:ie,[`${Q}-two-chinese-chars`]:ce&&X&&!ie,[`${Q}-block`]:M,[`${Q}-rtl`]:"rtl"===U,[`${Q}-icon-end`]:"end"===T},me,P,O,V),Ee=Object.assign(Object.assign({},G),Z),Se=o()(null==L?void 0:L.icon,Y.icon),Ce=Object.assign(Object.assign({},(null==E?void 0:E.icon)||{}),K.icon||{}),Pe=A&&!ie?r.createElement(w,{prefixCls:Q,className:Se,style:Ce},A):d&&"object"==typeof d&&d.icon?r.createElement(w,{prefixCls:Q,className:Se,style:Ce},d.icon):r.createElement(S,{existIcon:!!A,prefixCls:Q,loading:ie,mount:de.current}),Te=j||0===j?(0,y.hU)(j,pe&&X):null;if(void 0!==we.href)return J(r.createElement("a",Object.assign({},we,{className:o()(xe,{[`${Q}-disabled`]:re}),href:re?void 0:we.href,style:Ee,onClick:he,ref:fe,tabIndex:re?-1:0}),Pe,Te));let Ie=r.createElement("button",Object.assign({},$,{type:R,className:xe,style:Ee,onClick:he,disabled:re,ref:fe}),Pe,Te,me&&r.createElement(Oe,{prefixCls:Q}));return(0,y.Dn)(q)||(Ie=r.createElement(c.Z,{component:"Button",disabled:ie},Ie)),J(Ie)}));Te.Group=m,Te.__ANT_BUTTON=!0;var Ie=Te},2171:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(59301);const a=r.createContext(!1),o=e=>{let{children:t,disabled:n}=e;const o=r.useContext(a);return r.createElement(a.Provider,{value:null!=n?n:o},t)};t.Z=a},23069:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(59301);const a=r.createContext(void 0),o=e=>{let{children:t,size:n}=e;const o=r.useContext(a);return r.createElement(a.Provider,{value:n||o},t)};t.Z=a},11774:function(e,t,n){"use strict";n.d(t,{x:function(){return w}});n(59301);var r,a=n(4676),o=n.t(a,2),i=n(70539),u=n(95764),c=n(93664),s=(0,n(20439).Z)({},o),l=s.version,f=s.render,p=s.unmountComponentAtNode;try{Number((l||"").split(".")[0])>=18&&(r=s.createRoot)}catch(e){}function d(e){var t=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,c.Z)(t)&&(t.usingClientEntryPoint=e)}var h="__rc_react_root__";function v(e,t){r?function(e,t){d(!0);var n=t[h]||r(t);d(!1),n.render(e),t[h]=n}(e,t):function(e,t){null==f||f(e,t)}(e,t)}function m(e){return y.apply(this,arguments)}function y(){return(y=(0,u.Z)((0,i.Z)().mark((function e(t){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[h])||void 0===e||e.unmount(),delete t[h]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){p(e)}function b(){return(b=(0,u.Z)((0,i.Z)().mark((function e(t){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===r){e.next=2;break}return e.abrupt("return",m(t));case 2:g(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}let _=(e,t)=>(v(e,t),()=>function(e){return b.apply(this,arguments)}(t));function w(){return _}},48755:function(e,t,n){"use strict";n.d(t,{E_:function(){return u},Rf:function(){return a},dj:function(){return l},oR:function(){return o},tr:function(){return i}});var r=n(59301);const a="ant",o="anticon",i=["outlined","borderless","filled","underlined"],u=r.createContext({getPrefixCls:(e,t)=>t||(e?`${a}-${e}`:a),iconPrefixCls:o}),{Consumer:c}=u,s={};function l(e){const t=r.useContext(u),{getPrefixCls:n,direction:a,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:s,styles:s},i),{getPrefixCls:n,direction:a,getPopupContainer:o})}},83397:function(e,t,n){"use strict";var r=n(57700);t.Z=e=>{const[,,,,t]=(0,r.ZP)();return t?`${e}-css-var`:""}},31756:function(e,t,n){"use strict";var r=n(59301),a=n(23069);t.Z=e=>{const t=r.useContext(a.Z);return r.useMemo((()=>e?"string"==typeof e?null!=e?e:t:"function"==typeof e?e(t):t:t),[e,t])}},60840:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Y},w6:function(){return W}});var r=n(59301),a=n.t(r,2),o=n(66604),i=n(18418),u=n(80547),c=n(24434),s=n(32383),l=n(98350),f=n(25012),p=n(22200);var d=e=>{const{locale:t={},children:n,_ANT_MARK__:a}=e;r.useEffect((()=>(0,f.f)(null==t?void 0:t.Modal)),[t]);const o=r.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return r.createElement(p.Z.Provider,{value:o},n)},h=n(85981),v=n(42146),m=n(29796),y=n(90820),g=n(48755),b=n(68361),_=n(17835),w=n(47273),x=n(810);const k=`-ant-${Date.now()}-${Math.random()}`;function E(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},a=(e,t)=>{const a=new _.t(e),o=(0,b.R_)(a.toRgbString());n[`${t}-color`]=r(a),n[`${t}-color-disabled`]=o[1],n[`${t}-color-hover`]=o[4],n[`${t}-color-active`]=o[6],n[`${t}-color-outline`]=a.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=o[0],n[`${t}-color-deprecated-border`]=o[2]};if(t.primaryColor){a(t.primaryColor,"primary");const e=new _.t(t.primaryColor),o=(0,b.R_)(e.toRgbString());o.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setA(.12*e.a)));const i=new _.t(o[0]);n["primary-color-active-deprecated-f-30"]=r(i,(e=>e.setA(.3*e.a))),n["primary-color-active-deprecated-d-02"]=r(i,(e=>e.darken(2)))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);(0,w.Z)()&&(0,x.hq)(n,`${k}-dynamic-theme`)}var S=n(2171),C=n(23069);var P=function(){return{componentDisabled:(0,r.useContext)(S.Z),componentSize:(0,r.useContext)(C.Z)}},O=n(13697);const j=Object.assign({},a),{useId:A}=j;var T=void 0===A?()=>"":A;var I=n(77900),M=n(57700);function R(e){const{children:t}=e,[,n]=(0,M.ZP)(),{motion:a}=n,o=r.useRef(!1);return o.current=o.current||!1===a,o.current?r.createElement(I.zt,{motion:a},t):t}var L=()=>null,Z=n(63356);var D=(e,t)=>{const[n,r]=(0,M.ZP)();return(0,o.xy)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[(0,Z.JT)(e)]))},N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a({getPrefixCls:(e,t)=>t||(e?`${H()}-${e}`:H()),getIconPrefixCls:U,getRootPrefixCls:()=>F||H(),getTheme:()=>q,holderRender:z}),V=e=>{const{children:t,csp:n,autoInsertSpaceInButton:a,alert:f,anchor:p,form:b,locale:_,componentSize:w,direction:x,space:k,splitter:E,virtual:P,dropdownMatchSelectWidth:j,popupMatchSelectWidth:A,popupOverflow:I,legacyLocale:M,parentContext:Z,iconPrefixCls:F,theme:B,componentDisabled:q,segmented:z,statistic:H,spin:U,calendar:W,carousel:V,cascader:G,collapse:Y,typography:K,checkbox:X,descriptions:Q,divider:J,drawer:ee,skeleton:te,steps:ne,image:re,layout:ae,list:oe,mentions:ie,modal:ue,progress:ce,result:se,slider:le,breadcrumb:fe,menu:pe,pagination:de,input:he,textArea:ve,empty:me,badge:ye,radio:ge,rate:be,switch:_e,transfer:we,avatar:xe,message:ke,tag:Ee,table:Se,card:Ce,tabs:Pe,timeline:Oe,timePicker:je,upload:Ae,notification:Te,tree:Ie,colorPicker:Me,datePicker:Re,rangePicker:Le,flex:Ze,wave:De,dropdown:Ne,warning:$e,tour:Fe,tooltip:Be,popover:qe,popconfirm:ze,floatButtonGroup:He,variant:Ue,inputNumber:We,treeSelect:Ve}=e,Ge=r.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const a=r||Z.getPrefixCls("");return t?`${a}-${t}`:a}),[Z.getPrefixCls,e.prefixCls]),Ye=F||Z.iconPrefixCls||g.oR,Ke=n||Z.csp;D(Ye,Ke);const Xe=function(e,t,n){var r;(0,s.ln)("ConfigProvider");const a=e||{},o=!1!==a.inherit&&t?t:Object.assign(Object.assign({},m.u_),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:m.u_.hashed,cssVar:null==t?void 0:t.cssVar}),i=T();return(0,u.Z)((()=>{var r,u;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach((t=>{c[t]=Object.assign(Object.assign({},c[t]),e.components[t])}));const s=`css-var-${i.replace(/:/g,"")}`,l=(null!==(r=a.cssVar)&&void 0!==r?r:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof o.cssVar?o.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(u=a.cssVar)||void 0===u?void 0:u.key)||s});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:c,cssVar:l})}),[a,o],((e,t)=>e.some(((e,n)=>{const r=t[n];return!(0,O.Z)(e,r,!0)}))))}(B,Z.theme,{prefixCls:Ge("")});const Qe={csp:Ke,autoInsertSpaceInButton:a,alert:f,anchor:p,locale:_||M,direction:x,space:k,splitter:E,virtual:P,popupMatchSelectWidth:null!=A?A:j,popupOverflow:I,getPrefixCls:Ge,iconPrefixCls:Ye,theme:Xe,segmented:z,statistic:H,spin:U,calendar:W,carousel:V,cascader:G,collapse:Y,typography:K,checkbox:X,descriptions:Q,divider:J,drawer:ee,skeleton:te,steps:ne,image:re,input:he,textArea:ve,layout:ae,list:oe,mentions:ie,modal:ue,progress:ce,result:se,slider:le,breadcrumb:fe,menu:pe,pagination:de,empty:me,badge:ye,radio:ge,rate:be,switch:_e,transfer:we,avatar:xe,message:ke,tag:Ee,table:Se,card:Ce,tabs:Pe,timeline:Oe,timePicker:je,upload:Ae,notification:Te,tree:Ie,colorPicker:Me,datePicker:Re,rangePicker:Le,flex:Ze,wave:De,dropdown:Ne,warning:$e,tour:Fe,tooltip:Be,popover:qe,popconfirm:ze,floatButtonGroup:He,variant:Ue,inputNumber:We,treeSelect:Ve};const Je=Object.assign({},Z);Object.keys(Qe).forEach((e=>{void 0!==Qe[e]&&(Je[e]=Qe[e])})),$.forEach((t=>{const n=e[t];n&&(Je[t]=n)})),void 0!==a&&(Je.button=Object.assign({autoInsertSpace:a},Je.button));const et=(0,u.Z)((()=>Je),Je,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),{layer:tt}=r.useContext(o.uP),nt=r.useMemo((()=>({prefixCls:Ye,csp:Ke,layer:tt?"antd":void 0})),[Ye,Ke,tt]);let rt=r.createElement(r.Fragment,null,r.createElement(L,{dropdownMatchSelectWidth:j}),t);const at=r.useMemo((()=>{var e,t,n,r;return(0,c.T)((null===(e=h.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=et.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=et.form)||void 0===r?void 0:r.validateMessages)||{},(null==b?void 0:b.validateMessages)||{})}),[et,null==b?void 0:b.validateMessages]);Object.keys(at).length>0&&(rt=r.createElement(l.Z.Provider,{value:at},rt)),_&&(rt=r.createElement(d,{locale:_,_ANT_MARK__:"internalMark"},rt)),(Ye||Ke)&&(rt=r.createElement(i.Z.Provider,{value:nt},rt)),w&&(rt=r.createElement(C.q,{size:w},rt)),rt=r.createElement(R,null,rt);const ot=r.useMemo((()=>{const e=Xe||{},{algorithm:t,token:n,components:r,cssVar:a}=e,i=N(e,["algorithm","token","components","cssVar"]),u=t&&(!Array.isArray(t)||t.length>0)?(0,o.jG)(t):v.Z,c={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=u:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=(0,o.jG)(r.algorithm)),delete r.algorithm),c[t]=r}));const s=Object.assign(Object.assign({},y.Z),n);return Object.assign(Object.assign({},i),{theme:u,token:s,components:c,override:Object.assign({override:s},c),cssVar:a})}),[Xe]);return B&&(rt=r.createElement(m.Mj.Provider,{value:ot},rt)),et.warning&&(rt=r.createElement(s.G8.Provider,{value:et.warning},rt)),void 0!==q&&(rt=r.createElement(S.n,{disabled:q},rt)),r.createElement(g.E_.Provider,{value:et},rt)},G=e=>{const t=r.useContext(g.E_),n=r.useContext(p.Z);return r.createElement(V,Object.assign({parentContext:t,legacyLocale:n},e))};G.ConfigContext=g.E_,G.SizeContext=C.Z,G.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;void 0!==t&&(F=t),void 0!==n&&(B=n),"holderRender"in e&&(z=a),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?q=r:E(H(),r))},G.useConfig=P,Object.defineProperty(G,"SizeContext",{get:()=>C.Z});var Y=G},57428:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(20439),a=n(75319),o=(0,r.Z)((0,r.Z)({},a.z),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"}),i=n(303);var u={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"]},o),timePickerLocale:Object.assign({},i.Z)}},56553:function(e,t,n){"use strict";n.d(t,{RV:function(){return c},Rk:function(){return s},Ux:function(){return f},aM:function(){return l},pg:function(){return p},q3:function(){return i},qI:function(){return u}});var r=n(59301),a=n(74034),o=n(2738);const i=r.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),u=r.createContext(null),c=e=>{const t=(0,o.Z)(e,["prefixCls"]);return r.createElement(a.RV,Object.assign({},t))},s=r.createContext({prefixCls:""}),l=r.createContext({});const f=e=>{let{children:t,status:n,override:a}=e;const o=r.useContext(l),i=r.useMemo((()=>{const e=Object.assign({},o);return a&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,a,o]);return r.createElement(l.Provider,{value:i},t)},p=r.createContext(void 0)},98350:function(e,t,n){"use strict";var r=n(59301);t.Z=(0,r.createContext)(void 0)},26705:function(e,t,n){"use strict";n.d(t,{VM:function(){return c},cG:function(){return l},hd:function(){return s}});var r=n(66604),a=n(16931),o=n(51636);const i=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},u=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let e=a;e>=0;e--)0===e?(o[`${r}${t}-${e}`]={display:"none"},o[`${r}-push-${e}`]={insetInlineStart:"auto"},o[`${r}-pull-${e}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${e}`]={marginInlineStart:0},o[`${r}${t}-order-${e}`]={order:0}):(o[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/a*100}%`,maxWidth:e/a*100+"%"}],o[`${r}${t}-push-${e}`]={insetInlineStart:e/a*100+"%"},o[`${r}${t}-pull-${e}`]={insetInlineEnd:e/a*100+"%"},o[`${r}${t}-offset-${e}`]={marginInlineStart:e/a*100+"%"},o[`${r}${t}-order-${e}`]={order:e});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o})(e,t),c=(0,a.I$)("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),s=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),l=(0,a.I$)("Grid",(e=>{const t=(0,o.IX)(e,{gridColumns:24}),n=s(t);return delete n.xs,[i(t),u(t,""),u(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${(0,r.bf)(t)})`]:Object.assign({},u(e,n))}))(t,n[e],`-${e}`))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})))},22200:function(e,t,n){"use strict";const r=(0,n(59301).createContext)(void 0);t.Z=r},85981:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(61852),a=n(57428),o=a.Z,i=n(303);const u="${label} is not a valid ${type}";var c={locale:"en",Pagination:r.Z,DatePicker:a.Z,TimePicker:i.Z,Calendar:o,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:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},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",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}}},9017:function(e,t,n){"use strict";var r=n(59301),a=n(22200),o=n(85981);t.Z=(e,t)=>{const n=r.useContext(a.Z);return[r.useMemo((()=>{var r;const a=t||o.Z[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof a?a():a),i||{})}),[e,t,n]),r.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?o.Z.locale:e}),[n])]}},27813:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(17119),a=n(20439),o=n(75319),i=(0,a.Z)((0,a.Z)({},o.z),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});var u={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};const c={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},i),timePickerLocale:Object.assign({},u)};c.lang.ok="确定";var s=c,l=s;const f="${label}不是一个有效的${type}";var p={locale:"zh-cn",Pagination:r.Z,DatePicker:s,TimePicker:u,Calendar:l,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:f,method:f,array:f,object:f,number:f,date:f,boolean:f,integer:f,float:f,regexp:f,email:f,url:f,hex:f},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}}},6767:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Y}});var r=n(95190),a=n(59301),o=n(17004),i=n(48755),u=n(60840),c=n(11774),s=n(29679),l=n(19248),f=n(96512),p=n(78987),d=n(58617),h=n(92310),v=n.n(h),m=n(40271),y=n(83397),g=n(66604),b=n(75030),_=n(63356),w=n(16931),x=n(51636);const k=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:o,colorError:i,colorWarning:u,colorInfo:c,fontSizeLG:s,motionEaseInOutCirc:l,motionDurationSlow:f,marginXS:p,paddingXS:d,borderRadiusLG:h,zIndexPopup:v,contentPadding:m,contentBg:y}=e,b=`${t}-notice`,w=new g.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:d,transform:"translateY(0)",opacity:1}}),x=new g.E4("MessageMoveOut",{"0%":{maxHeight:e.height,padding:d,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),k={padding:d,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:s},[`${b}-content`]:{display:"inline-block",padding:m,background:y,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:u},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},(0,_.Wf)(e)),{color:a,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:v,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:l},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:l},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},k)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},k),{padding:0,textAlign:"start"})}]};var E=(0,w.I$)("Message",(e=>{const t=(0,x.IX)(e,{height:150});return[k(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+b.u6+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}))),S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{let{prefixCls:t,type:n,icon:r,children:o}=e;return a.createElement("div",{className:v()(`${t}-custom-content`,`${t}-${n}`)},r||C[n],a.createElement("span",null,o))};var O=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:u}=e,c=S(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=a.useContext(i.E_),l=t||s("message"),f=(0,y.Z)(l),[p,d,h]=E(l,f);return p(a.createElement(m.qX,Object.assign({},c,{prefixCls:l,className:v()(n,d,`${l}-notice-pure-panel`,h,f),eventKey:"pure",duration:null,content:a.createElement(P,{prefixCls:l,type:r,icon:o},u)})))},j=n(99267),A=n(32383);function T(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{let{children:t,prefixCls:n}=e;const r=(0,y.Z)(n),[o,i,u]=E(n,r);return o(a.createElement(m.JB,{classNames:{list:v()(i,u,r)}},t))},L=(e,t)=>{let{prefixCls:n,key:r}=t;return a.createElement(R,{prefixCls:n,key:r},e)},Z=a.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:u,duration:c=M,rtl:s,transitionName:l,onAllRemoved:f}=e,{getPrefixCls:p,getPopupContainer:d,message:h,direction:y}=a.useContext(i.E_),g=r||p("message"),b=a.createElement("span",{className:`${g}-close-x`},a.createElement(j.Z,{className:`${g}-close-icon`})),[_,w]=(0,m.lm)({prefixCls:g,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>v()({[`${g}-rtl`]:null!=s?s:"rtl"===y}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(g,l),closable:!1,closeIcon:b,duration:c,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:u,onAllRemoved:f,renderNotifications:L});return a.useImperativeHandle(t,(()=>Object.assign(Object.assign({},_),{prefixCls:g,message:h}))),w}));let D=0;function N(e){const t=a.useRef(null),n=((0,A.ln)("Message"),a.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:r,prefixCls:o,message:i}=t.current,u=`${o}-notice`,{content:c,icon:s,type:l,key:f,className:p,style:d,onClose:h}=n,m=I(n,["content","icon","type","key","className","style","onClose"]);let y=f;return null==y&&(D+=1,y=`antd-message-${D}`),T((t=>(r(Object.assign(Object.assign({},m),{key:y,content:a.createElement(P,{prefixCls:o,type:l,icon:s},c),placement:"top",className:v()(l&&`${u}-${l}`,p,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),d),onClose:()=>{null==h||h(),t()}})),()=>{e(y)})))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{r[e]=(t,r,a)=>{let o,i,u;o=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?u=r:(i=r,u=a);const c=Object.assign(Object.assign({onClose:u,duration:i},o),{type:e});return n(c)}})),r}),[]));return[n,a.createElement(Z,Object.assign({key:"message-holder"},e,{ref:t}))]}let $=null,F=e=>e(),B=[],q={};function z(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=q,o=(null==e?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:a}}const H=a.forwardRef(((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:u}=(0,a.useContext)(i.E_),c=q.prefixCls||u("message"),s=(0,a.useContext)(o.J),[l,f]=N(Object.assign(Object.assign(Object.assign({},n),{prefixCls:c}),s.message));return a.useImperativeHandle(t,(()=>{const e=Object.assign({},l);return Object.keys(e).forEach((t=>{e[t]=function(){return r(),l[t].apply(l,arguments)}})),{instance:e,sync:r}})),f})),U=a.forwardRef(((e,t)=>{const[n,r]=a.useState(z),o=()=>{r(z)};a.useEffect(o,[]);const i=(0,u.w6)(),c=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),f=a.createElement(H,{ref:t,sync:o,messageConfig:n});return a.createElement(u.ZP,{prefixCls:c,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(f):f)}));function W(){if(!$){const e=document.createDocumentFragment(),t={fragment:e};return $=t,void F((()=>{(0,c.x)()(a.createElement(U,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,W())}))}}),e)}))}$.instance&&(B.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":F((()=>{const t=$.instance.open(Object.assign(Object.assign({},q),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":F((()=>{null==$||$.instance.destroy(e.key)}));break;default:F((()=>{var n;const a=(n=$.instance)[t].apply(n,(0,r.Z)(e.args));null==a||a.then(e.resolve),e.setCloseFn(a)}))}})),B=[])}function V(e,t){(0,u.w6)();const n=T((n=>{let r;const a={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return B.push(a),()=>{r?F((()=>{r()})):a.skipped=!0}}));return W(),n}const G={open:function(e){const t=T((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return B.push(r),()=>{n?F((()=>{n()})):r.skipped=!0}}));return W(),t},destroy:e=>{B.push({type:"destroy",key:e}),W()},config:function(e){q=Object.assign(Object.assign({},q),e),F((()=>{var e;null===(e=null==$?void 0:$.sync)||void 0===e||e.call($)}))},useMessage:function(e){return N(e)},_InternalPanelDoNotUseOrYouWillBeFired:O};["success","info","warning","error","loading"].forEach((e=>{G[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:u,emitEvent:c,isSilent:s,quitOnNullishReturnValue:l,actionFn:f}=e,p=a.useRef(!1),d=a.useRef(null),[h,v]=(0,g.Z)(!1),m=function(){null==i||i.apply(void 0,arguments)};a.useEffect((()=>{let e=null;return u&&(e=setTimeout((()=>{var e;null===(e=d.current)||void 0===e||e.focus({preventScroll:!0})}))),()=>{e&&clearTimeout(e)}}),[]);return a.createElement(b.ZP,Object.assign({},(0,_.nx)(t),{onClick:e=>{if(p.current)return;if(p.current=!0,!f)return void m();let t;if(c){if(t=f(e),l&&!w(t))return p.current=!1,void m(e)}else if(f.length)t=f(i),p.current=!1;else if(t=f(),!w(t))return void m();(e=>{w(e)&&(v(!0),e.then((function(){v(!1,!0),m.apply(void 0,arguments),p.current=!1}),(e=>{if(v(!1,!0),p.current=!1,!(null==s?void 0:s()))return Promise.reject(e)})))})(t)},loading:h,prefixCls:r},o,{ref:d}),n)};const k=a.createContext({}),{Provider:E}=k;var S=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:u,onCancel:c,onConfirm:s}=(0,a.useContext)(k);return o?a.createElement(x,{isSilent:r,actionFn:c,close:function(){null==u||u.apply(void 0,arguments),null==s||s(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},n):null};var C=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:u,onConfirm:c,onOk:s}=(0,a.useContext)(k);return a.createElement(x,{isSilent:n,type:u||"primary",actionFn:s,close:function(){null==t||t.apply(void 0,arguments),null==c||c(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${o}-btn`},i)},P=n(99267),O=n(14809),j=n(50298),A=n(43403),T=a.createContext({}),I=n(20439),M=n(48519),R=n(80402),L=n(10228),Z=n(26112);function D(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function N(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var a=e.document;"number"!=typeof(n=a.documentElement[r])&&(n=a.body[r])}return n}var $=n(77900),F=n(93664),B=n(8654),q=a.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),z={width:0,height:0,overflow:"hidden",outline:"none"},H={outline:"none"},U=a.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,u=e.ariaId,c=e.footer,s=e.closable,l=e.closeIcon,f=e.onClose,p=e.children,h=e.bodyStyle,v=e.bodyProps,m=e.modalRender,y=e.onMouseDown,g=e.onMouseUp,b=e.holderRef,_=e.visible,w=e.forceRender,x=e.width,k=e.height,E=e.classNames,S=e.styles,C=a.useContext(T).panel,P=(0,B.x1)(b,C),j=(0,a.useRef)(),A=(0,a.useRef)();a.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=j.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===A.current?j.current.focus({preventScroll:!0}):e||t!==j.current||A.current.focus({preventScroll:!0})}}}));var M={};void 0!==x&&(M.width=x),void 0!==k&&(M.height=k);var R=c?a.createElement("div",{className:d()("".concat(n,"-footer"),null==E?void 0:E.footer),style:(0,I.Z)({},null==S?void 0:S.footer)},c):null,L=i?a.createElement("div",{className:d()("".concat(n,"-header"),null==E?void 0:E.header),style:(0,I.Z)({},null==S?void 0:S.header)},a.createElement("div",{className:"".concat(n,"-title"),id:u},i)):null,D=(0,a.useMemo)((function(){return"object"===(0,F.Z)(s)&&null!==s?s:s?{closeIcon:null!=l?l:a.createElement("span",{className:"".concat(n,"-close-x")})}:{}}),[s,l,n]),N=(0,Z.Z)(D,!0),$="object"===(0,F.Z)(s)&&s.disabled,U=s?a.createElement("button",(0,O.Z)({type:"button",onClick:f,"aria-label":"Close"},N,{className:"".concat(n,"-close"),disabled:$}),D.closeIcon):null,W=a.createElement("div",{className:d()("".concat(n,"-content"),null==E?void 0:E.content),style:null==S?void 0:S.content},U,L,a.createElement("div",(0,O.Z)({className:d()("".concat(n,"-body"),null==E?void 0:E.body),style:(0,I.Z)((0,I.Z)({},h),null==S?void 0:S.body)},v),p),R);return a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?u:null,"aria-modal":"true",ref:P,style:(0,I.Z)((0,I.Z)({},o),M),className:d()(n,r),onMouseDown:y,onMouseUp:g},a.createElement("div",{ref:j,tabIndex:0,style:H},a.createElement(q,{shouldUpdate:_||w},m?m(W):W)),a.createElement("div",{tabIndex:0,ref:A,style:z}))}));var W=U,V=a.forwardRef((function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,u=e.visible,c=e.forceRender,s=e.destroyOnClose,l=e.motionName,f=e.ariaId,p=e.onVisibleChanged,h=e.mousePosition,v=(0,a.useRef)(),m=a.useState(),y=(0,j.Z)(m,2),g=y[0],b=y[1],_={};function w(){var e,t,n,r,a,o=(e=v.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow,n.left+=N(a),n.top+=N(a,!0),n);b(h&&(h.x||h.y)?"".concat(h.x-o.left,"px ").concat(h.y-o.top,"px"):"")}return g&&(_.transformOrigin=g),a.createElement($.ZP,{visible:u,onVisibleChanged:p,onAppearPrepare:w,onEnterPrepare:w,forceRender:c,motionName:l,removeOnLeave:s,ref:v},(function(u,c){var s=u.className,l=u.style;return a.createElement(W,(0,O.Z)({},e,{ref:t,title:r,ariaId:f,prefixCls:n,holderRef:c,style:(0,I.Z)((0,I.Z)((0,I.Z)({},l),o),_),className:d()(i,s)}))}))}));V.displayName="Content";var G=V,Y=function(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,u=e.className;return a.createElement($.ZP,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,r){var i=e.className,c=e.style;return a.createElement("div",(0,O.Z)({ref:r,style:(0,I.Z)((0,I.Z)({},c),n),className:d()("".concat(t,"-mask"),i,u)},o))}))},K=(n(48736),function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,i=void 0!==o&&o,u=e.keyboard,c=void 0===u||u,s=e.focusTriggerAfterClose,l=void 0===s||s,f=e.wrapStyle,p=e.wrapClassName,h=e.wrapProps,v=e.onClose,m=e.afterOpenChange,y=e.afterClose,g=e.transitionName,b=e.animation,_=e.closable,w=void 0===_||_,x=e.mask,k=void 0===x||x,E=e.maskTransitionName,S=e.maskAnimation,C=e.maskClosable,P=void 0===C||C,A=e.maskStyle,T=e.maskProps,N=e.rootClassName,$=e.classNames,F=e.styles;var B=(0,a.useRef)(),q=(0,a.useRef)(),z=(0,a.useRef)(),H=a.useState(i),U=(0,j.Z)(H,2),W=U[0],V=U[1],K=(0,R.Z)();function X(e){null==v||v(e)}var Q=(0,a.useRef)(!1),J=(0,a.useRef)(),ee=null;P&&(ee=function(e){Q.current?Q.current=!1:q.current===e.target&&X(e)}),(0,a.useEffect)((function(){i&&(V(!0),(0,M.Z)(q.current,document.activeElement)||(B.current=document.activeElement))}),[i]),(0,a.useEffect)((function(){return function(){clearTimeout(J.current)}}),[]);var te=(0,I.Z)((0,I.Z)((0,I.Z)({zIndex:r},f),null==F?void 0:F.wrapper),{},{display:W?null:"none"});return a.createElement("div",(0,O.Z)({className:d()("".concat(n,"-root"),N)},(0,Z.Z)(e,{data:!0})),a.createElement(Y,{prefixCls:n,visible:k&&i,motionName:D(n,E,S),style:(0,I.Z)((0,I.Z)({zIndex:r},A),null==F?void 0:F.mask),maskProps:T,className:null==$?void 0:$.mask}),a.createElement("div",(0,O.Z)({tabIndex:-1,onKeyDown:function(e){if(c&&e.keyCode===L.Z.ESC)return e.stopPropagation(),void X(e);i&&e.keyCode===L.Z.TAB&&z.current.changeActive(!e.shiftKey)},className:d()("".concat(n,"-wrap"),p,null==$?void 0:$.wrapper),ref:q,onClick:ee,style:te},h),a.createElement(G,(0,O.Z)({},e,{onMouseDown:function(){clearTimeout(J.current),Q.current=!0},onMouseUp:function(){J.current=setTimeout((function(){Q.current=!1}))},ref:z,closable:w,ariaId:K,prefixCls:n,visible:i&&W,onClose:X,onVisibleChanged:function(e){if(e)(0,M.Z)(q.current,document.activeElement)||null===(t=z.current)||void 0===t||t.focus();else{if(V(!1),k&&B.current&&l){try{B.current.focus({preventScroll:!0})}catch(e){}B.current=null}W&&(null==y||y())}var t;null==m||m(e)},motionName:D(n,g,b)}))))}),X=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,u=e.afterClose,c=e.panelRef,s=a.useState(t),l=(0,j.Z)(s,2),f=l[0],p=l[1],d=a.useMemo((function(){return{panel:c}}),[c]);return a.useEffect((function(){t&&p(!0)}),[t]),r||!i||f?a.createElement(T.Provider,{value:d},a.createElement(A.Z,{open:t||r||f,autoDestroy:!1,getContainer:n,autoLock:t||f},a.createElement(K,(0,O.Z)({},e,{destroyOnClose:i,afterClose:function(){null==u||u(),p(!1)}})))):null};X.displayName="Dialog";var Q=X,J=n(62487),ee=n(78776),te=n(47273);var ne=n(55743),re=n(83397),ae=n(458),oe=n(91190),ie=n(2171);var ue=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,a.useContext)(k);return a.createElement(b.ZP,Object.assign({onClick:n},e),t)};var ce=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=(0,a.useContext)(k);return a.createElement(b.ZP,Object.assign({},(0,_.nx)(n),{loading:e,onClick:o},t),r)},se=n(25012);function le(e,t){return a.createElement("span",{className:`${e}-close-x`},t||a.createElement(P.Z,{className:`${e}-close-icon`}))}const fe=e=>{const{okText:t,okType:n="primary",cancelText:o,confirmLoading:i,onOk:u,onCancel:c,okButtonProps:s,cancelButtonProps:l,footer:f}=e,[p]=(0,m.Z)("Modal",(0,se.A)()),d={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:t||(null==p?void 0:p.okText),cancelTextLocale:o||(null==p?void 0:p.cancelText),okType:n,onOk:u,onCancel:c},h=a.useMemo((()=>d),(0,r.Z)(Object.values(d)));let v;return"function"==typeof f||void 0===f?(v=a.createElement(a.Fragment,null,a.createElement(ue,null),a.createElement(ce,null)),"function"==typeof f&&(v=f(v,{OkBtn:ce,CancelBtn:ue})),v=a.createElement(E,{value:h},v)):v=f,a.createElement(ie.n,{disabled:!1},v)};var pe=n(66604),de=n(26705),he=n(63356),ve=n(99495),me=n(34925),ye=n(51636),ge=n(16931);function be(e){return{position:e,inset:0}}const _e=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},be("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},be("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:(0,ve.J$)(e)}]},we=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,pe.bf)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,he.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,pe.bf)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:(0,pe.bf)(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},(0,he.Qy)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,pe.bf)(e.borderRadiusLG)} ${(0,pe.bf)(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${(0,pe.bf)(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},xe=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},ke=e=>{const{componentCls:t}=e,n=(0,de.hd)(e);delete n.xs;const a=Object.keys(n).map((e=>({[`@media (min-width: ${(0,pe.bf)(n[e])})`]:{width:`var(--${t.replace(".","")}-${e}-width)`}})));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat((0,r.Z)(a))}}},Ee=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,ye.IX)(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Se=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${(0,pe.bf)(e.paddingMD)} ${(0,pe.bf)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,pe.bf)(e.padding)} ${(0,pe.bf)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,pe.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,pe.bf)(e.paddingXS)} ${(0,pe.bf)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,pe.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,pe.bf)(e.borderRadiusLG)} ${(0,pe.bf)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,pe.bf)(2*e.padding)} ${(0,pe.bf)(2*e.padding)} ${(0,pe.bf)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var Ce=(0,ge.I$)("Modal",(e=>{const t=Ee(e);return[we(t),xe(t),_e(t),(0,me._y)(t,"zoom"),ke(t)]}),Se,{unitless:{titleLineHeight:!0}}),Pe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{Oe={x:e.pageX,y:e.pageY},setTimeout((()=>{Oe=null}),100)};(0,te.Z)()&&window.document.documentElement&&document.documentElement.addEventListener("click",je,!0);var Ae=e=>{const{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:u,centered:c,getContainer:s,focusTriggerAfterClose:l=!0,style:f,visible:p,width:m=520,footer:y,classNames:g,styles:b,children:_,loading:w,confirmLoading:x,zIndex:k,mousePosition:E,onOk:S,onCancel:C}=e,O=Pe(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel"]),{getPopupContainer:j,getPrefixCls:A,direction:T,modal:I}=a.useContext(o.E_),M=e=>{x||null==C||C(e)};const R=A("modal",t),L=A(),Z=(0,re.Z)(R),[D,N,$]=Ce(R,Z),F=d()(u,{[`${R}-centered`]:null!=c?c:null==I?void 0:I.centered,[`${R}-wrap-rtl`]:"rtl"===T}),B=null===y||w?null:a.createElement(fe,Object.assign({},e,{onOk:e=>{null==S||S(e)},onCancel:M})),[q,z,H]=(0,ee.Z)((0,ee.w)(e),(0,ee.w)(I),{closable:!0,closeIcon:a.createElement(P.Z,{className:`${R}-close-icon`}),closeIconRender:e=>le(R,e)}),U=(0,oe.H)(`.${R}-content`),[W,V]=(0,h.Cn)("Modal",k),[G,Y]=a.useMemo((()=>m&&"object"==typeof m?[void 0,m]:[m,void 0]),[m]),K=a.useMemo((()=>{const e={};return Y&&Object.keys(Y).forEach((t=>{const n=Y[t];void 0!==n&&(e[`--${R}-${t}-width`]="number"==typeof n?`${n}px`:n)})),e}),[Y]);return D(a.createElement(J.Z,{form:!0,space:!0},a.createElement(ne.Z.Provider,{value:V},a.createElement(Q,Object.assign({width:G},O,{zIndex:W,getContainer:void 0===s?j:s,prefixCls:R,rootClassName:d()(N,r,$,Z),footer:B,visible:null!=i?i:p,mousePosition:null!=E?E:Oe,onClose:M,closable:q?{disabled:H,closeIcon:z}:q,closeIcon:z,focusTriggerAfterClose:l,transitionName:(0,v.m)(L,"zoom",e.transitionName),maskTransitionName:(0,v.m)(L,"fade",e.maskTransitionName),className:d()(N,n,null==I?void 0:I.className),style:Object.assign(Object.assign(Object.assign({},null==I?void 0:I.style),f),K),classNames:Object.assign(Object.assign(Object.assign({},null==I?void 0:I.classNames),g),{wrapper:d()(F,null==g?void 0:g.wrapper)}),styles:Object.assign(Object.assign({},null==I?void 0:I.styles),b),panelRef:U}),w?a.createElement(ae.Z,{active:!0,title:!1,paragraph:{rows:4},className:`${R}-body-skeleton`}):_))))};const Te=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:o,lineHeight:i,modalTitleHeight:u,fontHeight:c,confirmBodyPadding:s}=e,l=`${t}-confirm`;return{[l]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${l}-body-wrapper`]:Object.assign({},(0,he.dF)()),[`&${t} ${t}-body`]:{padding:s},[`${l}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(u).sub(a).equal()).div(2).equal()}},[`${l}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${(0,pe.bf)(e.marginSM)})`},[`${e.iconCls} + ${l}-paragraph`]:{maxWidth:`calc(100% - ${(0,pe.bf)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${l}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${l}-content`]:{color:e.colorText,fontSize:o,lineHeight:i},[`${l}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${l}-error ${l}-body > ${e.iconCls}`]:{color:e.colorError},[`${l}-warning ${l}-body > ${e.iconCls},\n ${l}-confirm ${l}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${l}-info ${l}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${l}-success ${l}-body > ${e.iconCls}`]:{color:e.colorSuccess}}};var Ie=(0,ge.bk)(["Modal","confirm"],(e=>{const t=Ee(e);return[Te(t)]}),Se,{order:-1e3}),Me=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);aj),(0,r.Z)(Object.values(j))),T=a.createElement(a.Fragment,null,a.createElement(S,null),a.createElement(C,null)),I=void 0!==e.title&&null!==e.title,M=`${u}-body`;return a.createElement("div",{className:`${u}-body-wrapper`},a.createElement("div",{className:d()(M,{[`${M}-has-title`]:I})},b,a.createElement("div",{className:`${u}-paragraph`},I&&a.createElement("span",{className:`${u}-title`},e.title),a.createElement("div",{className:`${u}-content`},e.content))),void 0===v||"function"==typeof v?a.createElement(E,{value:A},a.createElement("div",{className:`${u}-btns`},"function"==typeof v?v(T,{OkBtn:C,CancelBtn:S}):T)):v,a.createElement(Ie,{prefixCls:t}))}const Le=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:u,rootPrefixCls:c,bodyStyle:s,closable:l=!1,onConfirm:f,styles:p}=e;const m=`${i}-confirm`,g=e.width||416,b=e.style||{},_=void 0===e.mask||e.mask,w=void 0!==e.maskClosable&&e.maskClosable,x=d()(m,`${m}-${e.type}`,{[`${m}-rtl`]:"rtl"===o},e.className),[,k]=(0,y.ZP)(),E=a.useMemo((()=>void 0!==n?n:k.zIndexPopupBase+h.u6),[n,k]);return a.createElement(Ae,Object.assign({},e,{className:x,wrapClassName:d()({[`${m}-centered`]:!!e.centered},u),onCancel:()=>{null==t||t({triggerCancel:!0}),null==f||f(!1)},title:"",footer:null,transitionName:(0,v.m)(c||"","zoom",e.transitionName),maskTransitionName:(0,v.m)(c||"","fade",e.maskTransitionName),mask:_,maskClosable:w,style:b,styles:Object.assign({body:s,mask:r},p),width:g,zIndex:E,closable:l}),a.createElement(Re,Object.assign({},e,{confirmPrefixCls:m})))};var Ze=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return a.createElement(i.ZP,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},a.createElement(Le,Object.assign({},e)))};var De=[];let Ne="";function $e(){return Ne}const Fe=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:u}=e,c=(0,se.A)(),s=(0,a.useContext)(o.E_),l=$e()||s.getPrefixCls(),f=r||`${l}-modal`;let p=i;return!1===p&&(p=void 0),a.createElement(Ze,Object.assign({},e,{rootPrefixCls:l,prefixCls:f,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:null!=u?u:s.direction,locale:null!==(n=null===(t=s.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:c,getContainer:p}))};function Be(e){const t=(0,i.w6)();const n=document.createDocumentFragment();let o,c,s=Object.assign(Object.assign({},e),{close:p,open:!0});function l(){for(var t,n=arguments.length,a=new Array(n),o=0;onull==e?void 0:e.triggerCancel));var u;i&&(null===(t=e.onCancel)||void 0===t||(u=t).call.apply(u,[e,()=>{}].concat((0,r.Z)(a.slice(1)))));for(let e=0;e{const r=t.getPrefixCls(void 0,$e()),o=t.getIconPrefixCls(),s=t.getTheme(),l=a.createElement(Fe,Object.assign({},e)),f=(0,u.x)();c=f(a.createElement(i.ZP,{prefixCls:r,iconPrefixCls:o,theme:s},t.holderRender?t.holderRender(l):l),n)}))}function p(){for(var t=arguments.length,n=new Array(t),r=0;r{"function"==typeof e.afterClose&&e.afterClose(),l.apply(this,n)}}),s.visible&&delete s.visible,f(s)}return f(s),De.push(p),{destroy:p,update:function(e){s="function"==typeof e?e(s):Object.assign(Object.assign({},s),e),f(s)}}}function qe(e){return Object.assign(Object.assign({},e),{type:"warning"})}function ze(e){return Object.assign(Object.assign({},e),{type:"info"})}function He(e){return Object.assign(Object.assign({},e),{type:"success"})}function Ue(e){return Object.assign(Object.assign({},e),{type:"error"})}function We(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var Ve=n(45915),Ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:u,title:c,children:s,footer:l}=e,f=Ge(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=a.useContext(o.E_),h=p(),v=t||p("modal"),m=(0,re.Z)(h),[y,g,b]=Ce(v,m),_=`${v}-confirm`;let w={};return w=u?{closable:null!=i&&i,title:"",footer:"",children:a.createElement(Re,Object.assign({},e,{prefixCls:v,confirmPrefixCls:_,rootPrefixCls:h,content:s}))}:{closable:null==i||i,title:c,footer:null!==l&&a.createElement(fe,Object.assign({},e)),children:s},y(a.createElement(W,Object.assign({prefixCls:v,className:d()(g,`${v}-pure-panel`,u&&_,u&&`${_}-${u}`,n,b,m)},f,{closeIcon:le(v,r),closable:i},w)))}));var Ke=n(85981),Xe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{var n,{afterClose:i,config:u}=e,c=Xe(e,["afterClose","config"]);const[s,l]=a.useState(!0),[f,p]=a.useState(u),{direction:d,getPrefixCls:h}=a.useContext(o.E_),v=h("modal"),y=h(),g=function(){var e;l(!1);for(var t=arguments.length,n=new Array(t),a=0;anull==e?void 0:e.triggerCancel));var i;o&&(null===(e=f.onCancel)||void 0===e||(i=e).call.apply(i,[f,()=>{}].concat((0,r.Z)(n.slice(1)))))};a.useImperativeHandle(t,(()=>({destroy:g,update:e=>{p((t=>Object.assign(Object.assign({},t),e)))}})));const b=null!==(n=f.okCancel)&&void 0!==n?n:"confirm"===f.type,[_]=(0,m.Z)("Modal",Ke.Z.Modal);return a.createElement(Ze,Object.assign({prefixCls:v,rootPrefixCls:y},f,{close:g,open:s,afterClose:()=>{var e;i(),null===(e=f.afterClose)||void 0===e||e.call(f)},okText:f.okText||(b?null==_?void 0:_.okText:null==_?void 0:_.justOkText),direction:f.direction||d,cancelText:f.cancelText||(null==_?void 0:_.cancelText)},c))};var Je=a.forwardRef(Qe);let et=0;const tt=a.memo(a.forwardRef(((e,t)=>{const[n,o]=function(){const[e,t]=a.useState([]);return[e,a.useCallback((e=>(t((t=>[].concat((0,r.Z)(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return a.useImperativeHandle(t,(()=>({patchElement:o})),[]),a.createElement(a.Fragment,null,n)})));var nt=function(){const e=a.useRef(null),[t,n]=a.useState([]);a.useEffect((()=>{if(t.length){(0,r.Z)(t).forEach((e=>{e()})),n([])}}),[t]);const o=a.useCallback((t=>function(o){var i;et+=1;const u=a.createRef();let c;const s=new Promise((e=>{c=e}));let l,f=!1;const p=a.createElement(Je,{key:`modal-${et}`,config:t(o),ref:u,afterClose:()=>{null==l||l()},isSilent:()=>f,onConfirm:e=>{c(e)}});l=null===(i=e.current)||void 0===i?void 0:i.patchElement(p),l&&De.push(l);const d={destroy:()=>{function e(){var e;null===(e=u.current)||void 0===e||e.destroy()}u.current?e():n((t=>[].concat((0,r.Z)(t),[e])))},update:e=>{function t(){var t;null===(t=u.current)||void 0===t||t.update(e)}u.current?t():n((e=>[].concat((0,r.Z)(e),[t])))},then:e=>(f=!0,s.then(e))};return d}),[]);return[a.useMemo((()=>({info:o(ze),success:o(He),error:o(Ue),warning:o(qe),confirm:o(We)})),[]),a.createElement(tt,{key:"modal-holder",ref:e})]};function rt(e){return Be(qe(e))}const at=Ae;at.useModal=nt,at.info=function(e){return Be(ze(e))},at.success=function(e){return Be(He(e))},at.error=function(e){return Be(Ue(e))},at.warning=rt,at.warn=rt,at.confirm=function(e){return Be(We(e))},at.destroyAll=function(){for(;De.length;){const e=De.pop();e&&e()}},at.config=function(e){let{rootPrefixCls:t}=e;Ne=t},at._InternalPanelDoNotUseOrYouWillBeFired=Ye;var ot=at},25012:function(e,t,n){"use strict";n.d(t,{A:function(){return c},f:function(){return u}});var r=n(85981);let a=Object.assign({},r.Z.Modal),o=[];const i=()=>o.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),r.Z.Modal);function u(e){if(e){const t=Object.assign({},e);return o.push(t),a=i(),()=>{o=o.filter((e=>e!==t)),a=i()}}a=Object.assign({},r.Z.Modal)}function c(){return a}},458:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var r=n(59301),a=n(92310),o=n.n(a),i=n(48755),u=n(2738);var c=e=>{const{prefixCls:t,className:n,style:a,size:i,shape:u}=e,c=o()({[`${t}-lg`]:"large"===i,[`${t}-sm`]:"small"===i}),s=o()({[`${t}-circle`]:"circle"===u,[`${t}-square`]:"square"===u,[`${t}-round`]:"round"===u}),l=r.useMemo((()=>"number"==typeof i?{width:i,height:i,lineHeight:`${i}px`}:{}),[i]);return r.createElement("span",{className:o()(t,c,s,n),style:Object.assign(Object.assign({},l),a)})},s=n(66604),l=n(16931),f=n(51636);const p=new s.E4("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),d=e=>({height:e,lineHeight:(0,s.bf)(e)}),h=e=>Object.assign({width:e},d(e)),v=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:p,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),m=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},d(e)),y=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},h(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},h(a)),[`${t}${t}-sm`]:Object.assign({},h(o))}},g=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:u}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},m(t,u)),[`${r}-lg`]:Object.assign({},m(a,u)),[`${r}-sm`]:Object.assign({},m(o,u))}},b=e=>Object.assign({width:e},d(e)),_=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},b(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},b(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},w=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},x=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},d(e)),k=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:u}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:u(r).mul(2).equal(),minWidth:u(r).mul(2).equal()},x(r,u))},w(e,r,n)),{[`${n}-lg`]:Object.assign({},x(a,u))}),w(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},x(o,u))}),w(e,o,`${n}-sm`))},E=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:u,controlHeight:c,controlHeightLG:s,controlHeightSM:l,gradientFromColor:f,padding:p,marginSM:d,borderRadius:m,titleHeight:b,blockRadius:w,paragraphLiHeight:x,controlHeightXS:E,paragraphMarginTop:S}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},h(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},h(s)),[`${n}-sm`]:Object.assign({},h(l))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:b,background:f,borderRadius:w,[`+ ${a}`]:{marginBlockStart:l}},[a]:{padding:0,"> li":{width:"100%",height:x,listStyle:"none",background:f,borderRadius:w,"+ li":{marginBlockStart:E}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:d,[`+ ${a}`]:{marginBlockStart:S}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},k(e)),y(e)),g(e)),_(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${a} > li,\n ${n},\n ${o},\n ${i},\n ${u}\n `]:Object.assign({},v(e))}}};var S=(0,l.I$)("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=(0,f.IX)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[E(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var C=e=>{const{prefixCls:t,className:n,rootClassName:a,active:s,shape:l="circle",size:f="default"}=e,{getPrefixCls:p}=r.useContext(i.E_),d=p("skeleton",t),[h,v,m]=S(d),y=(0,u.Z)(e,["prefixCls","className"]),g=o()(d,`${d}-element`,{[`${d}-active`]:s},n,a,v,m);return h(r.createElement("div",{className:g},r.createElement(c,Object.assign({prefixCls:`${d}-avatar`,shape:l,size:f},y))))};var P=e=>{const{prefixCls:t,className:n,rootClassName:a,style:u,active:c}=e,{getPrefixCls:s}=r.useContext(i.E_),l=s("skeleton",t),[f,p,d]=S(l),h=o()(l,`${l}-element`,{[`${l}-active`]:c},n,a,p,d);return f(r.createElement("div",{className:h},r.createElement("div",{className:o()(`${l}-image`,n),style:u},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},r.createElement("title",null,"Image placeholder"),r.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${l}-image-path`})))))};var O=e=>{const{prefixCls:t,className:n,rootClassName:a,active:s,block:l,size:f="default"}=e,{getPrefixCls:p}=r.useContext(i.E_),d=p("skeleton",t),[h,v,m]=S(d),y=(0,u.Z)(e,["prefixCls"]),g=o()(d,`${d}-element`,{[`${d}-active`]:s,[`${d}-block`]:l},n,a,v,m);return h(r.createElement("div",{className:g},r.createElement(c,Object.assign({prefixCls:`${d}-input`,size:f},y))))};var j=e=>{const{prefixCls:t,className:n,rootClassName:a,style:u,active:c,children:s}=e,{getPrefixCls:l}=r.useContext(i.E_),f=l("skeleton",t),[p,d,h]=S(f),v=o()(f,`${f}-element`,{[`${f}-active`]:c},d,n,a,h);return p(r.createElement("div",{className:v},r.createElement("div",{className:o()(`${f}-image`,n),style:u},s)))};const A=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0};var T=e=>{const{prefixCls:t,className:n,style:a,rows:i=0}=e,u=Array.from({length:i}).map(((t,n)=>r.createElement("li",{key:n,style:{width:A(n,e)}})));return r.createElement("ul",{className:o()(t,n),style:a},u)};var I=e=>{let{prefixCls:t,className:n,width:a,style:i}=e;return r.createElement("h3",{className:o()(t,n),style:Object.assign({width:a},i)})};function M(e){return e&&"object"==typeof e?e:{}}const R=e=>{const{prefixCls:t,loading:n,className:a,rootClassName:u,style:s,children:l,avatar:f=!1,title:p=!0,paragraph:d=!0,active:h,round:v}=e,{getPrefixCls:m,direction:y,className:g,style:b}=(0,i.dj)("skeleton"),_=m("skeleton",t),[w,x,k]=S(_);if(n||!("loading"in e)){const e=!!f,t=!!p,n=!!d;let i,l;if(e){const e=Object.assign(Object.assign({prefixCls:`${_}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),M(f));i=r.createElement("div",{className:`${_}-header`},r.createElement(c,Object.assign({},e)))}if(t||n){let a,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${_}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),M(p));a=r.createElement(I,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${_}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),M(d));o=r.createElement(T,Object.assign({},n))}l=r.createElement("div",{className:`${_}-content`},a,o)}const m=o()(_,{[`${_}-with-avatar`]:e,[`${_}-active`]:h,[`${_}-rtl`]:"rtl"===y,[`${_}-round`]:v},g,a,u,x,k);return w(r.createElement("div",{className:m,style:Object.assign(Object.assign({},b),s)},i,l))}return null!=l?l:null};R.Button=e=>{const{prefixCls:t,className:n,rootClassName:a,active:s,block:l=!1,size:f="default"}=e,{getPrefixCls:p}=r.useContext(i.E_),d=p("skeleton",t),[h,v,m]=S(d),y=(0,u.Z)(e,["prefixCls"]),g=o()(d,`${d}-element`,{[`${d}-active`]:s,[`${d}-block`]:l},n,a,v,m);return h(r.createElement("div",{className:g},r.createElement(c,Object.assign({prefixCls:`${d}-button`,size:f},y))))},R.Avatar=C,R.Input=O,R.Image=P,R.Node=j;var L=R},70045:function(e,t,n){"use strict";n.d(t,{BR:function(){return d},ri:function(){return p}});var r=n(59301),a=n(92310),o=n.n(a),i=n(11592),u=n(48755),c=n(31756),s=n(31547),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const n=r.useContext(f),a=r.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:a,isLastItem:i}=n,u="vertical"===r?"-vertical-":"-";return o()(`${e}-compact${u}item`,{[`${e}-compact${u}first-item`]:a,[`${e}-compact${u}last-item`]:i,[`${e}-compact${u}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:a}},d=e=>{const{children:t}=e;return r.createElement(f.Provider,{value:null},t)},h=e=>{const{children:t}=e,n=l(e,["children"]);return r.createElement(f.Provider,{value:r.useMemo((()=>n),[n])},t)};t.ZP=e=>{const{getPrefixCls:t,direction:n}=r.useContext(u.E_),{size:a,direction:p,block:d,prefixCls:v,className:m,rootClassName:y,children:g}=e,b=l(e,["size","direction","block","prefixCls","className","rootClassName","children"]),_=(0,c.Z)((e=>null!=a?a:e)),w=t("space-compact",v),[x,k]=(0,s.Z)(w),E=o()(w,k,{[`${w}-rtl`]:"rtl"===n,[`${w}-block`]:d,[`${w}-vertical`]:"vertical"===p},m,y),S=r.useContext(f),C=(0,i.Z)(g),P=r.useMemo((()=>C.map(((e,t)=>{const n=(null==e?void 0:e.key)||`${w}-item-${t}`;return r.createElement(h,{key:n,compactSize:_,compactDirection:p,isFirstItem:0===t&&(!S||(null==S?void 0:S.isFirstItem)),isLastItem:t===C.length-1&&(!S||(null==S?void 0:S.isLastItem))},e)}))),[a,C,S]);return 0===C.length?null:x(r.createElement("div",Object.assign({className:E},b),P))}},31547:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(16931),a=n(51636);var o=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const i=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},u=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var c=(0,r.I$)("Space",(e=>{const t=(0,a.IX)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[i(t),u(t),o(t)]}),(()=>({})),{resetStyle:!1})},41622:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(59301),a=n(92310),o=n.n(a);function i(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,a=n||{},o=a.noTrailing,i=void 0!==o&&o,u=a.noLeading,c=void 0!==u&&u,s=a.debounceMode,l=void 0===s?void 0:s,f=!1,p=0;function d(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,a=new Array(n),o=0;oe?c?(p=Date.now(),i||(r=setTimeout(l?v:h,e))):h():!0!==i&&(r=setTimeout(l?v:h,void 0===l?e-s:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;d(),f=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}var u=n(48755),c=n(22703),s=n(34280);const l=80*Math.PI,f=e=>{const{dotClassName:t,style:n,hasCircleCls:a}=e;return r.createElement("circle",{className:o()(`${t}-circle`,{[`${t}-circle-bg`]:a}),r:40,cx:50,cy:50,strokeWidth:20,style:n})};var p=e=>{let{percent:t,prefixCls:n}=e;const a=`${n}-dot`,i=`${a}-holder`,u=`${i}-hidden`,[c,p]=r.useState(!1);(0,s.Z)((()=>{0!==t&&p(!0)}),[0!==t]);const d=Math.max(Math.min(t,100),0);if(!c)return null;const h={strokeDashoffset:""+l/4,strokeDasharray:`${l*d/100} ${l*(100-d)/100}`};return r.createElement("span",{className:o()(i,`${a}-progress`,d<=0&&u)},r.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d},r.createElement(f,{dotClassName:a,hasCircleCls:!0}),r.createElement(f,{dotClassName:a,style:h})))};function d(e){const{prefixCls:t,percent:n=0}=e,a=`${t}-dot`,i=`${a}-holder`,u=`${i}-hidden`;return r.createElement(r.Fragment,null,r.createElement("span",{className:o()(i,n>0&&u)},r.createElement("span",{className:o()(a,`${t}-dot-spin`)},[1,2,3,4].map((e=>r.createElement("i",{className:`${t}-dot-item`,key:e}))))),r.createElement(p,{prefixCls:t,percent:n}))}function h(e){const{prefixCls:t,indicator:n,percent:a}=e,i=`${t}-dot`;return n&&r.isValidElement(n)?(0,c.Tm)(n,{className:o()(n.props.className,i),percent:a}):r.createElement(d,{prefixCls:t,percent:a})}var v=n(66604),m=n(63356),y=n(16931),g=n(51636);const b=new v.E4("antSpinMove",{to:{opacity:1}}),_=new v.E4("antRotate",{to:{transform:"rotate(405deg)"}}),w=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},(0,m.Wf)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:b,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:_,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((t=>`${t} ${e.motionDurationSlow} ease`)).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}};var x=(0,y.I$)("Spin",(e=>{const t=(0,g.IX)(e,{spinDotDefault:e.colorTextDescription});return[w(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}));const k=[[30,.05],[70,.03],[96,.01]];var E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,spinning:a=!0,delay:c=0,className:s,rootClassName:l,size:f="default",tip:p,wrapperClassName:d,style:v,children:m,fullscreen:y=!1,indicator:g,percent:b}=e,_=E(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:w,direction:C,className:P,style:O,indicator:j}=(0,u.dj)("spin"),A=w("spin",n),[T,I,M]=x(A),[R,L]=r.useState((()=>a&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(a,c))),Z=function(e,t){const[n,a]=r.useState(0),o=r.useRef(null),i="auto"===t;return r.useEffect((()=>(i&&e&&(a(0),o.current=setInterval((()=>{a((e=>{const t=100-e;for(let n=0;n{clearInterval(o.current)})),[i,e]),i?n:t}(R,b);r.useEffect((()=>{if(a){const e=i(c,(()=>{L(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}L(!1)}),[c,a]);const D=r.useMemo((()=>void 0!==m&&!y),[m,y]);const N=o()(A,P,{[`${A}-sm`]:"small"===f,[`${A}-lg`]:"large"===f,[`${A}-spinning`]:R,[`${A}-show-text`]:!!p,[`${A}-rtl`]:"rtl"===C},s,!y&&l,I,M),$=o()(`${A}-container`,{[`${A}-blur`]:R}),F=null!==(t=null!=g?g:j)&&void 0!==t?t:S,B=Object.assign(Object.assign({},O),v),q=r.createElement("div",Object.assign({},_,{style:B,className:N,"aria-live":"polite","aria-busy":R}),r.createElement(h,{prefixCls:A,indicator:F,percent:Z}),p&&(D||y)?r.createElement("div",{className:`${A}-text`},p):null);return T(D?r.createElement("div",Object.assign({},_,{className:o()(`${A}-nested-loading`,d,I,M)}),R&&r.createElement("div",{key:"loading"},q),r.createElement("div",{className:$,key:"container"},m)):y?r.createElement("div",{className:o()(`${A}-fullscreen`,{[`${A}-fullscreen-show`]:R},l,I,M)},q):q)};C.setDefaultIndicator=e=>{S=e};var P=C},56119:function(e,t,n){"use strict";function r(e,t,n){const{focusElCls:r,focus:a,borderElCls:o}=n,i=o?"> *":"",u=["hover",a?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${i}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[u]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function a(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:Object.assign(Object.assign({},r(e,o,t)),a(n,o,t))}}n.d(t,{c:function(){return o}})},63356:function(e,t,n){"use strict";n.d(t,{JT:function(){return p},Lx:function(){return c},Nd:function(){return d},Qy:function(){return f},Ro:function(){return i},Wf:function(){return o},dF:function(){return u},du:function(){return s},oN:function(){return l},vS:function(){return a}});var r=n(66604);const a={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},o=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},i=()=>({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"}}),u=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),c=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),s=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return!1!==r&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},u),i),{[a]:i})}},l=(e,t)=>({outline:`${(0,r.bf)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),f=(e,t)=>({"&:focus-visible":Object.assign({},l(e,t))}),p=e=>({[`.${e}`]:Object.assign(Object.assign({},i()),{[`.${e} .${e}-icon`]:{display:"block"}})}),d=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},f(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}})},99495:function(e,t,n){"use strict";n.d(t,{J$:function(){return u}});var r=n(66604),a=n(48746);const o=new r.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),i=new r.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),u=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,u=t?"&":"";return[(0,a.R)(r,o,i,e.motionDurationMid,t),{[`\n ${u}${r}-enter,\n ${u}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${u}${r}-leave`]:{animationTimingFunction:"linear"}}]}},48746:function(e,t,n){"use strict";n.d(t,{R:function(){return o}});const r=e=>({animationDuration:e,animationFillMode:"both"}),a=e=>({animationDuration:e,animationFillMode:"both"}),o=function(e,t,n,o){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const u=i?"&":"";return{[`\n ${u}${e}-enter,\n ${u}${e}-appear\n `]:Object.assign(Object.assign({},r(o)),{animationPlayState:"paused"}),[`${u}${e}-leave`]:Object.assign(Object.assign({},a(o)),{animationPlayState:"paused"}),[`\n ${u}${e}-enter${e}-enter-active,\n ${u}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${u}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},34925:function(e,t,n){"use strict";n.d(t,{_y:function(){return g},kr:function(){return o}});var r=n(66604),a=n(48746);const o=new r.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),i=new r.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),u=new r.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),c=new r.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),s=new r.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),l=new r.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),f=new r.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),p=new r.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),d=new r.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),h=new r.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),v=new r.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),m=new r.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),y={zoom:{inKeyframes:o,outKeyframes:i},"zoom-big":{inKeyframes:u,outKeyframes:c},"zoom-big-fast":{inKeyframes:u,outKeyframes:c},"zoom-left":{inKeyframes:f,outKeyframes:p},"zoom-right":{inKeyframes:d,outKeyframes:h},"zoom-up":{inKeyframes:s,outKeyframes:l},"zoom-down":{inKeyframes:v,outKeyframes:m}},g=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=y[t];return[(0,a.R)(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},29796:function(e,t,n){"use strict";n.d(t,{Mj:function(){return i},u_:function(){return o}});var r=n(59301),a=n(90820);const o={token:a.Z,override:{override:a.Z},hashed:!0},i=r.createContext(o)},34998:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});const r=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},42146:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(66604),a=n(68361),o=n(90820),i=n(17835);var u=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};var c=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},s=n(45156);var l=e=>{const t=(0,s.Z)(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),a=n[1],o=n[0],i=n[2],u=r[1],c=r[0],l=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(u*a),fontHeightLG:Math.round(l*i),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const f=(e,t)=>new i.t(e).setA(t).toRgbString(),p=(e,t)=>new i.t(e).darken(t).toHexString(),d=e=>{const t=(0,a.R_)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},h=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:f(r,.88),colorTextSecondary:f(r,.65),colorTextTertiary:f(r,.45),colorTextQuaternary:f(r,.25),colorFill:f(r,.15),colorFillSecondary:f(r,.06),colorFillTertiary:f(r,.04),colorFillQuaternary:f(r,.02),colorBgSolid:f(r,1),colorBgSolidHover:f(r,.75),colorBgSolidActive:f(r,.95),colorBgLayout:p(n,4),colorBgContainer:p(n,0),colorBgElevated:p(n,0),colorBgSpotlight:f(r,.85),colorBgBlur:"transparent",colorBorder:p(n,15),colorBorderSecondary:p(n,6)}};const v=(0,r.jG)((function(e){a.ez.pink=a.ez.magenta,a.Ti.pink=a.Ti.magenta;const t=Object.keys(o.M).map((t=>{const n=e[t]===a.ez[t]?a.Ti[t]:(0,a.R_)(e[t]);return Array.from({length:10},(()=>1)).reduce(((e,r,a)=>(e[`${t}-${a+1}`]=n[a],e[`${t}${a+1}`]=n[a],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:a,colorWarning:o,colorError:u,colorInfo:c,colorPrimary:s,colorBgBase:l,colorTextBase:f}=e,p=n(s),d=n(a),h=n(o),v=n(u),m=n(c),y=r(l,f),g=n(e.colorLink||e.colorInfo),b=new i.t(v[1]).mix(new i.t(v[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:b,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new i.t("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:d,generateNeutralColorPalettes:h})),l(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),c(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:a+1},u(r))}(e))}));var m=v},90820:function(e,t,n){"use strict";n.d(t,{M:function(){return r}});const r={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"},a=Object.assign(Object.assign({},r),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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});t.Z=a},45156:function(e,t,n){"use strict";function r(e){return(e+8)/e}function a(e){const t=Array.from({length:10}).map(((t,n)=>{const r=n-1,a=e*Math.pow(Math.E,r/5),o=n>1?Math.floor(a):Math.ceil(a);return 2*Math.floor(o/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:r(e)})))}n.d(t,{D:function(){return r},Z:function(){return a}})},57700:function(e,t,n){"use strict";n.d(t,{ZP:function(){return y},NJ:function(){return d}});var r=n(59301),a=n(66604),o=n(29796),i=n(42146),u=n(90820),c=n(17835),s=n(28620),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{delete r[e]}));const a=Object.assign(Object.assign({},n),r),o=1200,i=1600;if(!1===a.motion){const e="0s";a.motionDurationFast=e,a.motionDurationMid=e,a.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:(0,s.Z)(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:(0,s.Z)(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:(0,s.Z)(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:3*a.lineWidth,lineWidth:a.lineWidth,controlOutlineWidth:2*a.lineWidth,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:(0,s.Z)(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:o,screenXLMin:o,screenXLMax:1599,screenXXL:i,screenXXLMin:i,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new c.t("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new c.t("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new c.t("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",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)"}),r)}var p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const r=n.getDerivativeToken(e),{override:a}=t,o=p(t,["override"]);let i=Object.assign(Object.assign({},r),{override:a});return i=f(i),o&&Object.entries(o).forEach((e=>{let[t,n]=e;const{theme:r}=n,a=p(n,["theme"]);let o=a;r&&(o=m(Object.assign(Object.assign({},i),a),{override:a},r)),i[t]=o})),i};function y(){const{token:e,hashed:t,theme:n,override:c,cssVar:s}=r.useContext(o.Mj),l=`5.24.6-${t||""}`,p=n||i.Z,[y,g,b]=(0,a.fp)(p,[u.Z,e],{salt:l,override:c,getComputedToken:m,formatToken:f,cssVar:s&&{prefix:s.prefix,key:s.key,unitless:d,ignore:h,preserve:v}});return[p,b,t?g:"",y,s]}},16931:function(e,t,n){"use strict";n.d(t,{A1:function(){return s},I$:function(){return c},bk:function(){return l}});var r=n(59301),a=n(51636),o=n(48755),i=n(63356),u=n(57700);const{genStyleHooks:c,genComponentStyleHook:s,genSubStyleComponent:l}=(0,a.rb)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,r.useContext)(o.E_);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=(0,u.ZP)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=(0,r.useContext)(o.E_);return null!=e?e:{}},getResetStyles:(e,t)=>{var n;const r=(0,i.Lx)(e);return[r,{"&":r},(0,i.JT)(null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:o.oR)]},getCommonStyle:i.du,getCompUnitless:()=>u.NJ})},28620:function(e,t,n){"use strict";var r=n(17835);function a(e){return e>=0&&e<=255}t.Z=function(e,t){const{r:n,g:o,b:i,a:u}=new r.t(e).toRgb();if(u<1)return e;const{r:c,g:s,b:l}=new r.t(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-c*(1-e))/e),u=Math.round((o-s*(1-e))/e),f=Math.round((i-l*(1-e))/e);if(a(t)&&a(u)&&a(f))return new r.t({r:t,g:u,b:f,a:Math.round(100*e)/100}).toRgbString()}return new r.t({r:n,g:o,b:i,a:1}).toRgbString()}},303:function(e,t){"use strict";t.Z={placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},91190:function(e,t,n){"use strict";n.d(t,{H:function(){return u}});var r=n(59301),a=n(6089);function o(){}const i=r.createContext({add:o,remove:o});function u(e){const t=r.useContext(i),n=r.useRef(null);return(0,a.Z)((r=>{if(r){const a=e?r.querySelector(e):r;t.add(a),n.current=a}else t.remove(n.current)}))}},67751:function(e){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,a=0;r>>6-2*a);return n}},e.exports=n},84452:function(e,t,n){var r;e.exports=(r=n(52952),n(35909),n(34905),n(28492),n(93617),function(){var e=r,t=e.lib.BlockCipher,n=e.algo,a=[],o=[],i=[],u=[],c=[],s=[],l=[],f=[],p=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var h=r^r<<1^r<<2^r<<3^r<<4;h=h>>>8^255&h^99,a[n]=h,o[h]=n;var v=e[n],m=e[v],y=e[m],g=257*e[h]^16843008*h;i[n]=g<<24|g>>>8,u[n]=g<<16|g>>>16,c[n]=g<<8|g>>>24,s[n]=g,g=16843009*y^65537*m^257*v^16843008*n,l[h]=g<<24|g>>>8,f[h]=g<<16|g>>>16,p[h]=g<<8|g>>>24,d[h]=g,n?(n=v^e[e[e[y^v]]],r^=e[e[r]]):n=r=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],i=0;i6&&i%n==4&&(s=a[s>>>24]<<24|a[s>>>16&255]<<16|a[s>>>8&255]<<8|a[255&s]):(s=a[(s=s<<8|s>>>24)>>>24]<<24|a[s>>>16&255]<<16|a[s>>>8&255]<<8|a[255&s],s^=h[i/n|0]<<24),o[i]=o[i-n]^s);for(var u=this._invKeySchedule=[],c=0;c>>24]]^f[a[s>>>16&255]]^p[a[s>>>8&255]]^d[a[255&s]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,i,u,c,s,a)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,l,f,p,d,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,a,o,i,u){for(var c=this._nRounds,s=e[t]^n[0],l=e[t+1]^n[1],f=e[t+2]^n[2],p=e[t+3]^n[3],d=4,h=1;h>>24]^a[l>>>16&255]^o[f>>>8&255]^i[255&p]^n[d++],m=r[l>>>24]^a[f>>>16&255]^o[p>>>8&255]^i[255&s]^n[d++],y=r[f>>>24]^a[p>>>16&255]^o[s>>>8&255]^i[255&l]^n[d++],g=r[p>>>24]^a[s>>>16&255]^o[l>>>8&255]^i[255&f]^n[d++];s=v,l=m,f=y,p=g}v=(u[s>>>24]<<24|u[l>>>16&255]<<16|u[f>>>8&255]<<8|u[255&p])^n[d++],m=(u[l>>>24]<<24|u[f>>>16&255]<<16|u[p>>>8&255]<<8|u[255&s])^n[d++],y=(u[f>>>24]<<24|u[p>>>16&255]<<16|u[s>>>8&255]<<8|u[255&l])^n[d++],g=(u[p>>>24]<<24|u[s>>>16&255]<<16|u[l>>>8&255]<<8|u[255&f])^n[d++],e[t]=v,e[t+1]=m,e[t+2]=y,e[t+3]=g},keySize:8});e.AES=t._createHelper(v)}(),r.AES)},93617:function(e,t,n){var r;e.exports=(r=n(52952),n(28492),void(r.lib.Cipher||function(e){var t=r,n=t.lib,a=n.Base,o=n.WordArray,i=n.BufferedBlockAlgorithm,u=t.enc,c=(u.Utf8,u.Base64),s=t.algo.EvpKDF,l=n.Cipher=i.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){i.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:y}return function(t){return{encrypt:function(n,r,a){return e(r).encrypt(t,n,r,a)},decrypt:function(n,r,a){return e(r).decrypt(t,n,r,a)}}}}()}),f=(n.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),p=n.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),d=f.CBC=function(){var t=p.extend();function n(t,n,r){var a,o=this._iv;o?(a=o,this._iv=e):a=this._prevBlock;for(var i=0;i>>2];e.sigBytes-=t}},v=(n.BlockCipher=l.extend({cfg:l.cfg.extend({mode:d,padding:h}),reset:function(){var e;l.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),n.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),m=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:t})}},y=n.SerializableCipher=a.extend({cfg:a.extend({format:m}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var a=e.createEncryptor(n,r),o=a.finalize(t),i=a.cfg;return v.create({ciphertext:o,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),g=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=o.random(8));var a=s.create({keySize:t+n}).compute(e,r),i=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,v.create({key:a,iv:i,salt:r})}},b=n.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:g}),encrypt:function(e,t,n,r){var a=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=a.iv;var o=y.encrypt.call(this,e,t,a.key,r);return o.mixIn(a),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var a=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=a.iv,y.decrypt.call(this,e,t,a.key,r)}})}()))},52952:function(e,t,n){var r;e.exports=(r=r||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(3828)}catch(e){}var a=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},u=i.lib={},c=u.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},s=u.WordArray=c.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||f).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,a=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[r+o>>>2]|=i<<24-(r+o)%4*8}else for(var u=0;u>>2]=n[u>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-a%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new s.init(n,t/2)}},p=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new s.init(n,t)}},d=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},h=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,a=r.words,o=r.sigBytes,i=this.blockSize,u=o/(4*i),c=(u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0))*i,l=e.min(4*c,o);if(c){for(var f=0;f>>6-i%4*2;a[o>>>2]|=u<<24-o%4*8,o++}return t.create(a,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var a=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,u=0;u<4&&o+.75*u>>6*(3-u)&63));var c=r.charAt(64);if(c)for(;a.length%4;)a.push(c);return a.join("")},parse:function(e){var t=e.length,r=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o>>6-i%4*2;a[o>>>2]|=u<<24-o%4*8,o++}return t.create(a,o)}e.enc.Base64url={stringify:function(e,t=!0){var n=e.words,r=e.sigBytes,a=t?this._safe_map:this._map;e.clamp();for(var o=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(n[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|n[i+2>>>2]>>>24-(i+2)%4*8&255,c=0;c<4&&i+.75*c>>6*(3-c)&63));var s=a.charAt(64);if(s)for(;o.length%4;)o.push(s);return o.join("")},parse:function(e,t=!0){var r=e.length,a=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],a=0;a>>2]>>>16-a%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var n=e.length,r=[],a=0;a>>1]|=e.charCodeAt(a)<<16-a%2*16;return t.create(r,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var n=e.length,r=[],o=0;o>>1]|=a(e.charCodeAt(o)<<16-o%2*16);return t.create(r,2*n)}}}(),r.enc.Utf16)},28492:function(e,t,n){var r,a,o,i,u,c,s,l;e.exports=(l=n(52952),n(49479),n(83760),a=(r=l).lib,o=a.Base,i=a.WordArray,u=r.algo,c=u.MD5,s=u.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,a=r.hasher.create(),o=i.create(),u=o.words,c=r.keySize,s=r.iterations;u.lengthr&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),u=a.words,c=o.words,s=0;s>>2]|=e[a]<<24-a%4*8;t.call(this,r,n)}else t.apply(this,arguments)};n.prototype=e}}(),r.lib.WordArray)},34905:function(e,t,n){var r;e.exports=(r=n(52952),function(e){var t=r,n=t.lib,a=n.WordArray,o=n.Hasher,i=t.algo,u=[];!function(){for(var t=0;t<64;t++)u[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=i.MD5=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,a=e[r];e[r]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var o=this._hash.words,i=e[t+0],c=e[t+1],d=e[t+2],h=e[t+3],v=e[t+4],m=e[t+5],y=e[t+6],g=e[t+7],b=e[t+8],_=e[t+9],w=e[t+10],x=e[t+11],k=e[t+12],E=e[t+13],S=e[t+14],C=e[t+15],P=o[0],O=o[1],j=o[2],A=o[3];P=s(P,O,j,A,i,7,u[0]),A=s(A,P,O,j,c,12,u[1]),j=s(j,A,P,O,d,17,u[2]),O=s(O,j,A,P,h,22,u[3]),P=s(P,O,j,A,v,7,u[4]),A=s(A,P,O,j,m,12,u[5]),j=s(j,A,P,O,y,17,u[6]),O=s(O,j,A,P,g,22,u[7]),P=s(P,O,j,A,b,7,u[8]),A=s(A,P,O,j,_,12,u[9]),j=s(j,A,P,O,w,17,u[10]),O=s(O,j,A,P,x,22,u[11]),P=s(P,O,j,A,k,7,u[12]),A=s(A,P,O,j,E,12,u[13]),j=s(j,A,P,O,S,17,u[14]),P=l(P,O=s(O,j,A,P,C,22,u[15]),j,A,c,5,u[16]),A=l(A,P,O,j,y,9,u[17]),j=l(j,A,P,O,x,14,u[18]),O=l(O,j,A,P,i,20,u[19]),P=l(P,O,j,A,m,5,u[20]),A=l(A,P,O,j,w,9,u[21]),j=l(j,A,P,O,C,14,u[22]),O=l(O,j,A,P,v,20,u[23]),P=l(P,O,j,A,_,5,u[24]),A=l(A,P,O,j,S,9,u[25]),j=l(j,A,P,O,h,14,u[26]),O=l(O,j,A,P,b,20,u[27]),P=l(P,O,j,A,E,5,u[28]),A=l(A,P,O,j,d,9,u[29]),j=l(j,A,P,O,g,14,u[30]),P=f(P,O=l(O,j,A,P,k,20,u[31]),j,A,m,4,u[32]),A=f(A,P,O,j,b,11,u[33]),j=f(j,A,P,O,x,16,u[34]),O=f(O,j,A,P,S,23,u[35]),P=f(P,O,j,A,c,4,u[36]),A=f(A,P,O,j,v,11,u[37]),j=f(j,A,P,O,g,16,u[38]),O=f(O,j,A,P,w,23,u[39]),P=f(P,O,j,A,E,4,u[40]),A=f(A,P,O,j,i,11,u[41]),j=f(j,A,P,O,h,16,u[42]),O=f(O,j,A,P,y,23,u[43]),P=f(P,O,j,A,_,4,u[44]),A=f(A,P,O,j,k,11,u[45]),j=f(j,A,P,O,C,16,u[46]),P=p(P,O=f(O,j,A,P,d,23,u[47]),j,A,i,6,u[48]),A=p(A,P,O,j,g,10,u[49]),j=p(j,A,P,O,S,15,u[50]),O=p(O,j,A,P,m,21,u[51]),P=p(P,O,j,A,k,6,u[52]),A=p(A,P,O,j,h,10,u[53]),j=p(j,A,P,O,w,15,u[54]),O=p(O,j,A,P,c,21,u[55]),P=p(P,O,j,A,b,6,u[56]),A=p(A,P,O,j,C,10,u[57]),j=p(j,A,P,O,y,15,u[58]),O=p(O,j,A,P,E,21,u[59]),P=p(P,O,j,A,v,6,u[60]),A=p(A,P,O,j,x,10,u[61]),j=p(j,A,P,O,d,15,u[62]),O=p(O,j,A,P,_,21,u[63]),o[0]=o[0]+P|0,o[1]=o[1]+O|0,o[2]=o[2]+j|0,o[3]=o[3]+A|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,a=8*t.sigBytes;n[a>>>5]|=128<<24-a%32;var o=e.floor(r/4294967296),i=r;n[15+(a+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(a+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var u=this._hash,c=u.words,s=0;s<4;s++){var l=c[s];c[s]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return u},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function s(e,t,n,r,a,o,i){var u=e+(t&n|~t&r)+a+i;return(u<>>32-o)+t}function l(e,t,n,r,a,o,i){var u=e+(t&r|n&~r)+a+i;return(u<>>32-o)+t}function f(e,t,n,r,a,o,i){var u=e+(t^n^r)+a+i;return(u<>>32-o)+t}function p(e,t,n,r,a,o,i){var u=e+(n^(t|~r))+a+i;return(u<>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),r.MD5)},2882:function(e,t,n){var r;e.exports=(r=n(52952),n(93617),r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();function t(e,t,n,r){var a,o=this._iv;o?(a=o.slice(0),this._iv=void 0):a=this._prevBlock,r.encryptBlock(a,0);for(var i=0;i>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var a=e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,a=r.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0),n(i);var u=i.slice(0);r.encryptBlock(u,0);for(var c=0;c>>2]|=a<<24-o%4*8,e.sigBytes+=a},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Ansix923)},2593:function(e,t,n){var r;e.exports=(r=n(52952),n(93617),r.pad.Iso10126={pad:function(e,t){var n=4*t,a=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Iso10126)},10829:function(e,t,n){var r;e.exports=(r=n(52952),n(93617),r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971)},18846:function(e,t,n){var r;e.exports=(r=n(52952),n(93617),r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding)},10265:function(e,t,n){var r;e.exports=(r=n(52952),n(93617),r.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},r.pad.ZeroPadding)},37248:function(e,t,n){var r,a,o,i,u,c,s,l,f;e.exports=(f=n(52952),n(49479),n(83760),a=(r=f).lib,o=a.Base,i=a.WordArray,u=r.algo,c=u.SHA1,s=u.HMAC,l=u.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=s.create(n.hasher,e),a=i.create(),o=i.create([1]),u=a.words,c=o.words,l=n.keySize,f=n.iterations;u.length>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var a=0;a<4;a++)c.call(this);for(a=0;a<8;a++)r[a]^=n[a+4&7];if(t){var o=t.words,i=o[0],u=o[1],s=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),l=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),f=s>>>16|4294901760&l,p=l<<16|65535&s;for(r[0]^=s,r[1]^=f,r[2]^=l,r[3]^=p,r[4]^=s,r[5]^=f,r[6]^=l,r[7]^=p,a=0;a<4;a++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)a[r]=16711935&(a[r]<<8|a[r]>>>24)|4278255360&(a[r]<<24|a[r]>>>8),e[t+r]^=a[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],a=65535&r,u=r>>>16,c=((a*a>>>17)+a*u>>>15)+u*u,s=((4294901760&r)*r|0)+((65535&r)*r|0);i[n]=c^s}e[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,e[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,e[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,e[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,e[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,e[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,e[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,e[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}e.RabbitLegacy=t._createHelper(u)}(),r.RabbitLegacy)},21865:function(e,t,n){var r;e.exports=(r=n(52952),n(35909),n(34905),n(28492),n(93617),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,a=[],o=[],i=[],u=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)a[n]^=r[n+4&7];if(t){var o=t.words,i=o[0],u=o[1],s=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),l=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),f=s>>>16|4294901760&l,p=l<<16|65535&s;for(a[0]^=s,a[1]^=f,a[2]^=l,a[3]^=p,a[4]^=s,a[5]^=f,a[6]^=l,a[7]^=p,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)a[r]=16711935&(a[r]<<8|a[r]>>>24)|4278255360&(a[r]<<24|a[r]>>>8),e[t+r]^=a[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],a=65535&r,u=r>>>16,c=((a*a>>>17)+a*u>>>15)+u*u,s=((4294901760&r)*r|0)+((65535&r)*r|0);i[n]=c^s}e[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,e[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,e[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,e[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,e[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,e[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,e[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,e[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}e.Rabbit=t._createHelper(u)}(),r.Rabbit)},22528:function(e,t,n){var r;e.exports=(r=n(52952),n(35909),n(34905),n(28492),n(93617),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,a=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],a=0;a<256;a++)r[a]=a;a=0;for(var o=0;a<256;a++){var i=a%n,u=t[i>>>2]>>>24-i%4*8&255;o=(o+r[a]+u)%256;var c=r[a];r[a]=r[o],r[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,a=0;a<4;a++){n=(n+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*a}return this._i=t,this._j=n,r}e.RC4=t._createHelper(a);var i=n.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(i)}(),r.RC4)},25824:function(e,t,n){var r;e.exports=(r=n(52952),function(e){var t=r,n=t.lib,a=n.WordArray,o=n.Hasher,i=t.algo,u=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),s=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=a.create([0,1518500249,1859775393,2400959708,2840853838]),p=a.create([1352829926,1548603684,1836072691,2053994217,0]),d=i.RIPEMD160=o.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,a=e[r];e[r]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var o,i,d,_,w,x,k,E,S,C,P,O=this._hash.words,j=f.words,A=p.words,T=u.words,I=c.words,M=s.words,R=l.words;for(x=o=O[0],k=i=O[1],E=d=O[2],S=_=O[3],C=w=O[4],n=0;n<80;n+=1)P=o+e[t+T[n]]|0,P+=n<16?h(i,d,_)+j[0]:n<32?v(i,d,_)+j[1]:n<48?m(i,d,_)+j[2]:n<64?y(i,d,_)+j[3]:g(i,d,_)+j[4],P=(P=b(P|=0,M[n]))+w|0,o=w,w=_,_=b(d,10),d=i,i=P,P=x+e[t+I[n]]|0,P+=n<16?g(k,E,S)+A[0]:n<32?y(k,E,S)+A[1]:n<48?m(k,E,S)+A[2]:n<64?v(k,E,S)+A[3]:h(k,E,S)+A[4],P=(P=b(P|=0,R[n]))+C|0,x=C,C=S,S=b(E,10),E=k,k=P;P=O[1]+d+S|0,O[1]=O[2]+_+C|0,O[2]=O[3]+w+x|0,O[3]=O[4]+o+k|0,O[4]=O[0]+i+E|0,O[0]=P},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var a=this._hash,o=a.words,i=0;i<5;i++){var u=o[i];o[i]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,n){return e^t^n}function v(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function y(e,t,n){return e&n|t&~n}function g(e,t,n){return e^(t|~n)}function b(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(d),t.HmacRIPEMD160=o._createHmacHelper(d)}(Math),r.RIPEMD160)},49479:function(e,t,n){var r,a,o,i,u,c,s,l;e.exports=(l=n(52952),a=(r=l).lib,o=a.WordArray,i=a.Hasher,u=r.algo,c=[],s=u.SHA1=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],a=n[1],o=n[2],i=n[3],u=n[4],s=0;s<80;s++){if(s<16)c[s]=0|e[t+s];else{var l=c[s-3]^c[s-8]^c[s-14]^c[s-16];c[s]=l<<1|l>>>31}var f=(r<<5|r>>>27)+u+c[s];f+=s<20?1518500249+(a&o|~a&i):s<40?1859775393+(a^o^i):s<60?(a&o|a&i|o&i)-1894007588:(a^o^i)-899497514,u=i,i=o,o=a<<30|a>>>2,a=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+a|0,n[2]=n[2]+o|0,n[3]=n[3]+i|0,n[4]=n[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),r.SHA1=i._createHelper(s),r.HmacSHA1=i._createHmacHelper(s),l.SHA1)},93653:function(e,t,n){var r,a,o,i,u,c;e.exports=(c=n(52952),n(2481),a=(r=c).lib.WordArray,o=r.algo,i=o.SHA256,u=o.SHA224=i.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}}),r.SHA224=i._createHelper(u),r.HmacSHA224=i._createHmacHelper(u),c.SHA224)},2481:function(e,t,n){var r;e.exports=(r=n(52952),function(e){var t=r,n=t.lib,a=n.WordArray,o=n.Hasher,i=t.algo,u=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,a=0;a<64;)t(r)&&(a<8&&(u[a]=n(e.pow(r,.5))),c[a]=n(e.pow(r,1/3)),a++),r++}();var s=[],l=i.SHA256=o.extend({_doReset:function(){this._hash=new a.init(u.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],a=n[1],o=n[2],i=n[3],u=n[4],l=n[5],f=n[6],p=n[7],d=0;d<64;d++){if(d<16)s[d]=0|e[t+d];else{var h=s[d-15],v=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,m=s[d-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;s[d]=v+s[d-7]+y+s[d-16]}var g=r&a^r&o^a&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=p+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&l^~u&f)+c[d]+s[d];p=f,f=l,l=u,u=i+_|0,i=o,o=a,a=r,r=_+(b+g)|0}n[0]=n[0]+r|0,n[1]=n[1]+a|0,n[2]=n[2]+o|0,n[3]=n[3]+i|0,n[4]=n[4]+u|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,a=8*t.sigBytes;return n[a>>>5]|=128<<24-a%32,n[14+(a+64>>>9<<4)]=e.floor(r/4294967296),n[15+(a+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),r.SHA256)},79421:function(e,t,n){var r;e.exports=(r=n(52952),n(41988),function(e){var t=r,n=t.lib,a=n.WordArray,o=n.Hasher,i=t.x64.Word,u=t.algo,c=[],s=[],l=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)s[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,o=0;o<24;o++){for(var u=0,f=0,p=0;p<7;p++){if(1&a){var d=(1<>>24)|4278255360&(o<<24|o>>>8),i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),(O=n[a]).high^=i,O.low^=o}for(var u=0;u<24;u++){for(var p=0;p<5;p++){for(var d=0,h=0,v=0;v<5;v++)d^=(O=n[p+5*v]).high,h^=O.low;var m=f[p];m.high=d,m.low=h}for(p=0;p<5;p++){var y=f[(p+4)%5],g=f[(p+1)%5],b=g.high,_=g.low;for(d=y.high^(b<<1|_>>>31),h=y.low^(_<<1|b>>>31),v=0;v<5;v++)(O=n[p+5*v]).high^=d,O.low^=h}for(var w=1;w<25;w++){var x=(O=n[w]).high,k=O.low,E=c[w];E<32?(d=x<>>32-E,h=k<>>32-E):(d=k<>>64-E,h=x<>>64-E);var S=f[s[w]];S.high=d,S.low=h}var C=f[0],P=n[0];for(C.high=P.high,C.low=P.low,p=0;p<5;p++)for(v=0;v<5;v++){var O=n[w=p+5*v],j=f[w],A=f[(p+1)%5+5*v],T=f[(p+2)%5+5*v];O.high=j.high^~A.high&T.high,O.low=j.low^~A.low&T.low}O=n[0];var I=l[u];O.high^=I.high,O.low^=I.low}},_doFinalize:function(){var t=this._data,n=t.words,r=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(e.ceil((r+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var i=this._state,u=this.cfg.outputLength/8,c=u/8,s=[],l=0;l>>24)|4278255360&(p<<24|p>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),s.push(d),s.push(p)}return new a.init(s,u)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=o._createHelper(p),t.HmacSHA3=o._createHmacHelper(p)}(Math),r.SHA3)},82307:function(e,t,n){var r,a,o,i,u,c,s,l;e.exports=(l=n(52952),n(41988),n(12133),a=(r=l).x64,o=a.Word,i=a.WordArray,u=r.algo,c=u.SHA512,s=u.SHA384=c.extend({_doReset:function(){this._hash=new i.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=16,e}}),r.SHA384=c._createHelper(s),r.HmacSHA384=c._createHmacHelper(s),l.SHA384)},12133:function(e,t,n){var r;e.exports=(r=n(52952),n(41988),function(){var e=r,t=e.lib.Hasher,n=e.x64,a=n.Word,o=n.WordArray,i=e.algo;function u(){return a.create.apply(a,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],s=[];!function(){for(var e=0;e<80;e++)s[e]=u()}();var l=i.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],a=n[1],o=n[2],i=n[3],u=n[4],l=n[5],f=n[6],p=n[7],d=r.high,h=r.low,v=a.high,m=a.low,y=o.high,g=o.low,b=i.high,_=i.low,w=u.high,x=u.low,k=l.high,E=l.low,S=f.high,C=f.low,P=p.high,O=p.low,j=d,A=h,T=v,I=m,M=y,R=g,L=b,Z=_,D=w,N=x,$=k,F=E,B=S,q=C,z=P,H=O,U=0;U<80;U++){var W,V,G=s[U];if(U<16)V=G.high=0|e[t+2*U],W=G.low=0|e[t+2*U+1];else{var Y=s[U-15],K=Y.high,X=Y.low,Q=(K>>>1|X<<31)^(K>>>8|X<<24)^K>>>7,J=(X>>>1|K<<31)^(X>>>8|K<<24)^(X>>>7|K<<25),ee=s[U-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ae=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=s[U-7],ie=oe.high,ue=oe.low,ce=s[U-16],se=ce.high,le=ce.low;V=(V=(V=Q+ie+((W=J+ue)>>>0>>0?1:0))+re+((W+=ae)>>>0>>0?1:0))+se+((W+=le)>>>0>>0?1:0),G.high=V,G.low=W}var fe,pe=D&$^~D&B,de=N&F^~N&q,he=j&T^j&M^T&M,ve=A&I^A&R^I&R,me=(j>>>28|A<<4)^(j<<30|A>>>2)^(j<<25|A>>>7),ye=(A>>>28|j<<4)^(A<<30|j>>>2)^(A<<25|j>>>7),ge=(D>>>14|N<<18)^(D>>>18|N<<14)^(D<<23|N>>>9),be=(N>>>14|D<<18)^(N>>>18|D<<14)^(N<<23|D>>>9),_e=c[U],we=_e.high,xe=_e.low,ke=z+ge+((fe=H+be)>>>0>>0?1:0),Ee=ye+ve;z=B,H=q,B=$,q=F,$=D,F=N,D=L+(ke=(ke=(ke=ke+pe+((fe+=de)>>>0>>0?1:0))+we+((fe+=xe)>>>0>>0?1:0))+V+((fe+=W)>>>0>>0?1:0))+((N=Z+fe|0)>>>0>>0?1:0)|0,L=M,Z=R,M=T,R=I,T=j,I=A,j=ke+(me+he+(Ee>>>0>>0?1:0))+((A=fe+Ee|0)>>>0>>0?1:0)|0}h=r.low=h+A,r.high=d+j+(h>>>0>>0?1:0),m=a.low=m+I,a.high=v+T+(m>>>0>>0?1:0),g=o.low=g+R,o.high=y+M+(g>>>0>>0?1:0),_=i.low=_+Z,i.high=b+L+(_>>>0>>0?1:0),x=u.low=x+N,u.high=w+D+(x>>>0>>0?1:0),E=l.low=E+F,l.high=k+$+(E>>>0>>0?1:0),C=f.low=C+q,f.high=S+B+(C>>>0>>0?1:0),O=p.low=O+H,p.high=P+z+(O>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(l),e.HmacSHA512=t._createHmacHelper(l)}(),r.SHA512)},61945:function(e,t,n){var r;e.exports=(r=n(52952),n(35909),n(34905),n(28492),n(93617),function(){var e=r,t=e.lib,n=t.WordArray,a=t.BlockCipher,o=e.algo,i=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],s=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=o.DES=a.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=i[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var a=this._subKeys=[],o=0;o<16;o++){var s=a[o]=[],l=c[o];for(n=0;n<24;n++)s[n/6|0]|=t[(u[n]-1+l)%28]<<31-n%6,s[4+(n/6|0)]|=t[28+(u[n+24]-1+l)%28]<<31-n%6;for(s[0]=s[0]<<1|s[0]>>>31,n=1;n<7;n++)s[n]=s[n]>>>4*(n-1)+3;s[7]=s[7]<<5|s[7]>>>27}var f=this._invSubKeys=[];for(n=0;n<16;n++)f[n]=a[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),p.call(this,1,1431655765);for(var r=0;r<16;r++){for(var a=n[r],o=this._lBlock,i=this._rBlock,u=0,c=0;c<8;c++)u|=s[c][((i^a[c])&l[c])>>>0];this._lBlock=i,this._rBlock=o^u}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,p.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),a=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(n.create(t)),this._des2=f.createEncryptor(n.create(r)),this._des3=f.createEncryptor(n.create(a))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=a._createHelper(h)}(),r.TripleDES)},41988:function(e,t,n){var r;e.exports=(r=n(52952),function(e){var t=r,n=t.lib,a=n.Base,o=n.WordArray,i=t.x64={};i.Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=a.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r=t?e:""+Array(t+1-r.length).join(n)+e},g={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),a=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(a,2,"0")},m:function e(t,n){if(t.date()1)return e(i[0])}else{var u=t.name;_[u]=t,a=u}return!r&&a&&(b=a),a||!r&&b},E=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},S=g;S.l=k,S.i=x,S.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var a=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return E(e)68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],l=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},f=function(e,t){var n,r=i.meridiem;if(r){for(var a=1;a<=24;a+=1)if(e.indexOf(r(a,0,t))>-1){n=a>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[o,function(e){this.afternoon=f(e,!1)}],a:[o,function(e){this.afternoon=f(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[r,c("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[a,c("week")],ww:[r,c("week")],M:[a,c("month")],MM:[r,c("month")],MMM:[o,function(e){var t=l("months"),n=(l("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=l("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(e){this.year=u(e)}],YYYY:[/\d{4}/,c("year")],Z:s,ZZ:s};function d(n){var r,a;r=n,a=i&&i.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||a[r]||e[r]||a[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),u=o.length,c=0;c-1)return new Date(("X"===t?1e3:1)*e);var a=d(t)(e),o=a.year,i=a.month,u=a.day,c=a.hours,s=a.minutes,l=a.seconds,f=a.milliseconds,p=a.zone,h=a.week,v=new Date,m=u||(o||i?1:v.getDate()),y=o||v.getFullYear(),g=0;o&&!i||(g=i>0?i-1:v.getMonth());var b,_=c||0,w=s||0,x=l||0,k=f||0;return p?new Date(Date.UTC(y,g,m,_,w,x,k+60*p.offset*1e3)):n?new Date(Date.UTC(y,g,m,_,w,x,k)):(b=new Date(y,g,m,_,w,x,k),h&&(b=r(b).week(h).toDate()),b)}catch(e){return new Date("")}}(t,u,r,n),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),l&&t!=this.format(u)&&(this.$d=new Date("")),i={}}else if(u instanceof Array)for(var p=u.length,h=1;h<=p;h+=1){o[1]=u[h-1];var v=n.apply(this,o);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}h===p&&(this.$d=new Date(""))}else a.call(this,e)}}}()},47477:function(e){e.exports=function(){"use strict";var e,t,n=1e3,r=6e4,a=36e5,o=864e5,i=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=31536e6,c=2628e6,s=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:u,months:c,days:o,hours:a,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},f=function(e){return e instanceof g},p=function(e,t,n){return new g(e,n,t.$l)},d=function(e){return t.p(e)+"s"},h=function(e){return e<0},v=function(e){return h(e)?Math.ceil(e):Math.floor(e)},m=function(e){return Math.abs(e)},y=function(e,t){return e?h(e)?{negative:!0,format:""+m(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},g=function(){function h(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return p(e*l[d(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){r.$d[d(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var a=e.match(s);if(a){var o=a.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var m=h.prototype;return m.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*l[n]}),0)},m.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=v(e/u),e%=u,this.$d.months=v(e/c),e%=c,this.$d.days=v(e/o),e%=o,this.$d.hours=v(e/a),e%=a,this.$d.minutes=v(e/r),e%=r,this.$d.seconds=v(e/n),e%=n,this.$d.milliseconds=e},m.toISOString=function(){var e=y(this.$d.years,"Y"),t=y(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=y(n,"D"),a=y(this.$d.hours,"H"),o=y(this.$d.minutes,"M"),i=this.$d.seconds||0;this.$d.milliseconds&&(i+=this.$d.milliseconds/1e3,i=Math.round(1e3*i)/1e3);var u=y(i,"S"),c=e.negative||t.negative||r.negative||a.negative||o.negative||u.negative,s=a.format||o.format||u.format?"T":"",l=(c?"-":"")+"P"+e.format+t.format+r.format+s+a.format+o.format+u.format;return"P"===l||"-P"===l?"P0D":l},m.toJSON=function(){return this.toISOString()},m.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(i,(function(e,t){return t||String(r[e])}))},m.as=function(e){return this.$ms/l[d(e)]},m.get=function(e){var t=this.$ms,n=d(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?v(t/l[n]):this.$d[n],t||0},m.add=function(e,t,n){var r;return r=t?e*l[d(t)]:f(e)?e.$ms:p(e,this).$ms,p(this.$ms+r*(n?-1:1),this)},m.subtract=function(e,t){return this.add(e,t,!0)},m.locale=function(e){var t=this.clone();return t.$l=e,t},m.clone=function(){return p(this.$ms,this)},m.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},m.valueOf=function(){return this.asMilliseconds()},m.milliseconds=function(){return this.get("milliseconds")},m.asMilliseconds=function(){return this.as("milliseconds")},m.seconds=function(){return this.get("seconds")},m.asSeconds=function(){return this.as("seconds")},m.minutes=function(){return this.get("minutes")},m.asMinutes=function(){return this.as("minutes")},m.hours=function(){return this.get("hours")},m.asHours=function(){return this.as("hours")},m.days=function(){return this.get("days")},m.asDays=function(){return this.as("days")},m.weeks=function(){return this.get("weeks")},m.asWeeks=function(){return this.as("weeks")},m.months=function(){return this.get("months")},m.asMonths=function(){return this.as("months")},m.years=function(){return this.get("years")},m.asYears=function(){return this.as("years")},h}(),b=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")};return function(n,r,a){e=a,t=a().$utils(),a.duration=function(e,t){var n=a.locale();return p(e,{$l:n},t)},a.isDuration=f;var o=r.prototype.add,i=r.prototype.subtract;r.prototype.add=function(e,t){return f(e)?b(this,e,1):o.bind(this)(e,t)},r.prototype.subtract=function(e,t){return f(e)?b(this,e,-1):i.bind(this)(e,t)}}}()},58862:function(e){e.exports=function(){"use strict";return function(e,t,n){n.isMoment=function(e){return n.isDayjs(e)}}}()},19277:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}()},34749:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}()},58319:function(e){e.exports=function(){"use strict";return function(e,t,n){var r=t.prototype,a=function(e){return e&&(e.indexOf?e:e.s)},o=function(e,t,n,r,o){var i=e.name?e:e.$locale(),u=a(i[t]),c=a(i[n]),s=u||c.map((function(e){return e.slice(0,r)}));if(!o)return s;var l=i.weekStart;return s.map((function(e,t){return s[(t+(l||0))%7]}))},i=function(){return n.Ls[n.locale()]},u=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):o(e,"months")},monthsShort:function(t){return t?t.format("MMM"):o(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):o(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):o(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):o(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return u(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=i();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return u(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return o(i(),"months")},n.monthsShort=function(){return o(i(),"monthsShort","months",3)},n.weekdays=function(e){return o(i(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return o(i(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return o(i(),"weekdaysMin","weekdays",2,e)}}}()},62053:function(e){e.exports=function(){"use strict";var e={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"};return function(t,n,r){var a=n.prototype,o=a.format;r.en.formats=e,a.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,a){var o=a&&a.toUpperCase();return r||n[a]||e[a]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return o.call(this,r)}}}()},59717:function(e){e.exports=function(){"use strict";return function(e,t,n){e=e||{};var r=t.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,n,a){return r.fromToBase(e,t,n,a)}n.en.relativeTime=a,r.fromToBase=function(t,r,o,i,u){for(var c,s,l,f=o.$locale().relativeTime||a,p=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],d=p.length,h=0;h0,m<=v.r||!v.r){m<=1&&h>0&&(v=p[h-1]);var y=f[v.l];u&&(m=u(""+m)),s="string"==typeof y?y.replace("%d",m):y(m,r,v.l,l);break}}if(r)return s;var g=l?f.future:f.past;return"function"==typeof g?g(s):g.replace("%s",s)},r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)};var i=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(i(this),e)},r.fromNow=function(e){return this.from(i(this),e)}}}()},23250:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,a){var o=r.prototype;o.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=a(this).startOf(t).add(1,t).date(r),i=a(this).endOf(e);if(o.isBefore(i))return 1}var u=a(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(u,e,!0);return c<0?a(this).startOf("week").week():Math.ceil(c)},o.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},74959:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}()},90111:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n0&&void 0!==arguments[0]?arguments[0]:{},n=e.namespace||i,u=e.only,c=void 0===u?[]:u,s=e.except,l=void 0===s?[]:s;if(c.length>0&&l.length>0)throw Error("It is ambiguous to configurate `only` and `except` items at the same time.");var f={global:!1,models:{},effects:{}},p=t({},n,(function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,i=arguments.length>1?arguments[1]:void 0,u=i.type,c=i.payload,s=c||{},l=s.namespace,p=s.actionType;switch(u){case a:e=r(r({},n),{},{global:!0,models:r(r({},n.models),{},t({},l,!0)),effects:r(r({},n.effects),{},t({},p,!0))});break;case o:var d=r(r({},n.effects),{},t({},p,!1)),h=r(r({},n.models),{},t({},l,Object.keys(d).some((function(e){return e.split("/")[0]===l&&d[e]})))),v=Object.keys(h).some((function(e){return h[e]}));e=r(r({},n),{},{global:v,models:h,effects:d});break;default:e=n}return e}));function d(e,t,n,r){var i=t.put,u=n.namespace;return 0===c.length&&0===l.length||c.length>0&&-1!==c.indexOf(r)||l.length>0&&-1===l.indexOf(r)?regeneratorRuntime.mark((function t(){var n=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i({type:a,payload:{namespace:u,actionType:r}});case 2:return t.next=4,e.apply(void 0,n);case 4:return t.next=6,i({type:o,payload:{namespace:u,actionType:r}});case 6:case"end":return t.stop()}}),t)})):e}return{extraReducers:p,onEffect:d}}},68192:function(e){"use strict";e.exports=function(){}},63474:function(e,t,n){"use strict";e.exports=n(71111)()?Object.assign:n(47597)},71111:function(e){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},47597:function(e,t,n){"use strict";var r=n(90721),a=n(58883),o=Math.max;e.exports=function(e,t){var n,i,u,c=o(arguments.length,2);for(e=Object(a(e)),u=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},i=1;i-1}},3424:function(e,t,n){"use strict";var r,a,o,i,u,c,s,l=n(35413),f=n(15895),p=Function.prototype.apply,d=Function.prototype.call,h=Object.create,v=Object.defineProperty,m=Object.defineProperties,y=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};a=function(e,t){var n,a;return f(t),a=this,r.call(this,e,n=function(){o.call(a,e,n),p.call(t,this,arguments)}),n.__eeOnceListener__=t,this},i=function(e){var t,n,r,a,o;if(y.call(this,"__ee__")&&(a=this.__ee__[e]))if("object"==typeof a){for(n=arguments.length,o=new Array(n-1),t=1;t=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,r[a++]=e>>>16&255,r[a++]=e>>>8&255,r[a++]=255&e}else for(r[a++]=255&e,r[a++]=e>>>8&255,r[a++]=e>>>16&255,r[a++]=e>>>24&255,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,o=8;othis.blockSize&&(e=(new this.Hash).update(e).digest()),a(e.length<=this.blockSize);for(var t=e.length;t>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},8631:function(e,t,n){"use strict";var r=n(61339),a=n(4603);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function i(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function u(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=a,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),a=0;a>6|192,n[r++]=63&i|128):o(e,a)?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++a)),n[r++]=i>>18|240,n[r++]=i>>12&63|128,n[r++]=i>>6&63|128,n[r++]=63&i|128):(n[r++]=i>>12|224,n[r++]=i>>6&63|128,n[r++]=63&i|128)}else for(a=0;a>>0}return i},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,a=0;r>>24,n[a+1]=o>>>16&255,n[a+2]=o>>>8&255,n[a+3]=255&o):(n[a+3]=o>>>24,n[a+2]=o>>>16&255,n[a+1]=o>>>8&255,n[a]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,a){return e+t+n+r+a>>>0},t.sum64=function(e,t,n,r){var a=e[t],o=r+e[t+1]>>>0,i=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,a,o,i,u){var c=0,s=t;return c+=(s=s+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,a,o,i,u){return t+r+o+u>>>0},t.sum64_5_hi=function(e,t,n,r,a,o,i,u,c,s){var l=0,f=t;return l+=(f=f+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,a,o,i,u,c,s){return t+r+o+u+s>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},19340:function(e,t,n){"use strict";n.d(t,{Ep:function(){return v},PP:function(){return l},aU:function(){return r},cP:function(){return m},lX:function(){return c},q_:function(){return s}});var r,a=n(14809);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));var o=function(e){return e};var i="beforeunload",u="popstate";function c(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,c=n.history;function s(){var e=n.location,t=e.pathname,r=e.search,a=e.hash,i=c.state||{};return[i.idx,o({pathname:t,search:r,hash:a,state:i.usr||null,key:i.key||"default"})]}var l=null;n.addEventListener(u,(function(){if(l)w.call(l),l=null;else{var e=r.Pop,t=s(),n=t[0],a=t[1];if(w.length){if(null!=n){var o=g-n;o&&(l={action:e,location:a,retry:function(){P(-1*o)}},P(o))}}else C(e)}}));var f=r.Pop,y=s(),g=y[0],b=y[1],_=d(),w=d();function x(e){return"string"==typeof e?e:v(e)}function k(e,t){return void 0===t&&(t=null),o((0,a.Z)({pathname:b.pathname,hash:"",search:""},"string"==typeof e?m(e):e,{state:t,key:h()}))}function E(e,t){return[{usr:e.state,key:e.key,idx:t},x(e)]}function S(e,t,n){return!w.length||(w.call({action:e,location:t,retry:n}),!1)}function C(e){f=e;var t=s();g=t[0],b=t[1],_.call({action:f,location:b})}function P(e){c.go(e)}null==g&&(g=0,c.replaceState((0,a.Z)({},c.state,{idx:g}),""));var O={get action(){return f},get location(){return b},createHref:x,push:function e(t,a){var o=r.Push,i=k(t,a);if(S(o,i,(function(){e(t,a)}))){var u=E(i,g+1),s=u[0],l=u[1];try{c.pushState(s,"",l)}catch(e){n.location.assign(l)}C(o)}},replace:function e(t,n){var a=r.Replace,o=k(t,n);if(S(a,o,(function(){e(t,n)}))){var i=E(o,g),u=i[0],s=i[1];c.replaceState(u,"",s),C(a)}},go:P,back:function(){P(-1)},forward:function(){P(1)},listen:function(e){return _.push(e)},block:function(e){var t=w.push(e);return 1===w.length&&n.addEventListener(i,p),function(){t(),w.length||n.removeEventListener(i,p)}}};return O}function s(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,c=n.history;function s(){var e=m(n.location.hash.substr(1)),t=e.pathname,r=void 0===t?"/":t,a=e.search,i=void 0===a?"":a,u=e.hash,s=void 0===u?"":u,l=c.state||{};return[l.idx,o({pathname:r,search:i,hash:s,state:l.usr||null,key:l.key||"default"})]}var l=null;function f(){if(l)x.call(l),l=null;else{var e=r.Pop,t=s(),n=t[0],a=t[1];if(x.length){if(null!=n){var o=b-n;o&&(l={action:e,location:a,retry:function(){O(-1*o)}},O(o))}}else P(e)}}n.addEventListener(u,f),n.addEventListener("hashchange",(function(){v(s()[1])!==v(_)&&f()}));var y=r.Pop,g=s(),b=g[0],_=g[1],w=d(),x=d();function k(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var r=n.location.href,a=r.indexOf("#");t=-1===a?r:r.slice(0,a)}return t}()+"#"+("string"==typeof e?e:v(e))}function E(e,t){return void 0===t&&(t=null),o((0,a.Z)({pathname:_.pathname,hash:"",search:""},"string"==typeof e?m(e):e,{state:t,key:h()}))}function S(e,t){return[{usr:e.state,key:e.key,idx:t},k(e)]}function C(e,t,n){return!x.length||(x.call({action:e,location:t,retry:n}),!1)}function P(e){y=e;var t=s();b=t[0],_=t[1],w.call({action:y,location:_})}function O(e){c.go(e)}null==b&&(b=0,c.replaceState((0,a.Z)({},c.state,{idx:b}),""));var j={get action(){return y},get location(){return _},createHref:k,push:function e(t,a){var o=r.Push,i=E(t,a);if(C(o,i,(function(){e(t,a)}))){var u=S(i,b+1),s=u[0],l=u[1];try{c.pushState(s,"",l)}catch(e){n.location.assign(l)}P(o)}},replace:function e(t,n){var a=r.Replace,o=E(t,n);if(C(a,o,(function(){e(t,n)}))){var i=S(o,b),u=i[0],s=i[1];c.replaceState(u,"",s),P(a)}},go:O,back:function(){O(-1)},forward:function(){O(1)},listen:function(e){return w.push(e)},block:function(e){var t=x.push(e);return 1===x.length&&n.addEventListener(i,p),function(){t(),x.length||n.removeEventListener(i,p)}}};return j}function l(e){void 0===e&&(e={});var t=e,n=t.initialEntries,i=void 0===n?["/"]:n,u=t.initialIndex,c=i.map((function(e){return o((0,a.Z)({pathname:"/",search:"",hash:"",state:null,key:h()},"string"==typeof e?m(e):e))})),s=f(null==u?c.length-1:u,0,c.length-1),l=r.Pop,p=c[s],y=d(),g=d();function b(e,t){return void 0===t&&(t=null),o((0,a.Z)({pathname:p.pathname,search:"",hash:""},"string"==typeof e?m(e):e,{state:t,key:h()}))}function _(e,t,n){return!g.length||(g.call({action:e,location:t,retry:n}),!1)}function w(e,t){l=e,p=t,y.call({action:l,location:p})}function x(e){var t=f(s+e,0,c.length-1),n=r.Pop,a=c[t];_(n,a,(function(){x(e)}))&&(s=t,w(n,a))}var k={get index(){return s},get action(){return l},get location(){return p},createHref:function(e){return"string"==typeof e?e:v(e)},push:function e(t,n){var a=r.Push,o=b(t,n);_(a,o,(function(){e(t,n)}))&&(s+=1,c.splice(s,c.length,o),w(a,o))},replace:function e(t,n){var a=r.Replace,o=b(t,n);_(a,o,(function(){e(t,n)}))&&(c[s]=o,w(a,o))},go:x,back:function(){x(-1)},forward:function(){x(1)},listen:function(e){return y.push(e)},block:function(e){return g.push(e)}};return k}function f(e,t,n){return Math.min(Math.max(e,t),n)}function p(e){e.preventDefault(),e.returnValue=""}function d(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function h(){return Math.random().toString(36).substr(2,8)}function v(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,a=void 0===r?"":r,o=e.hash,i=void 0===o?"":o;return a&&"?"!==a&&(n+="?"===a.charAt(0)?a:"?"+a),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}function m(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}},94266:function(e,t,n){"use strict";var r=n(99234),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(e){return r.isMemo(e)?i:u[e.$$typeof]||a}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=i;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var a=d(n);a&&a!==h&&e(t,a,r)}var i=l(n);f&&(i=i.concat(f(n)));for(var u=c(t),v=c(n),m=0;m1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,u&&a(n[0],n[1],u)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1&&e%1==0&&e-1}},54238:function(e,t,n){var r=n(67971);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},35365:function(e,t,n){var r=n(76414),a=n(99746),o=n(40164);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||a),string:new r}}},63765:function(e,t,n){var r=n(89819);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},12608:function(e,t,n){var r=n(89819);e.exports=function(e){return r(this,e).get(e)}},10203:function(e,t,n){var r=n(89819);e.exports=function(e){return r(this,e).has(e)}},11298:function(e,t,n){var r=n(89819);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},65294:function(e,t,n){var r=n(73893)(Object,"create");e.exports=r},97817:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},52495:function(e,t,n){e=n.nmd(e);var r=n(37675),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,i=o&&o.exports===a&&r.process,u=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=u},74702:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},31030:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},19652:function(e,t,n){var r=n(79628),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,u=a(o.length-t,0),c=Array(u);++i0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},31119:function(e,t,n){var r=n(99746);e.exports=function(){this.__data__=new r,this.size=0}},64399:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},81897:function(e){e.exports=function(e){return this.__data__.get(e)}},90558:function(e){e.exports=function(e){return this.__data__.has(e)}},64841:function(e,t,n){var r=n(99746),a=n(40164),o=n(52166);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!a||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(i)}return n.set(e,t),this.size=n.size,this}},63256:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},13503:function(e){e.exports=function(e){return function(){return e}}},43607:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},46962:function(e){e.exports=function(e){return e}},13053:function(e,t,n){var r=n(4977),a=n(93913),o=Object.prototype,i=o.hasOwnProperty,u=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return a(e)&&i.call(e,"callee")&&!u.call(e,"callee")};e.exports=c},80744:function(e){var t=Array.isArray;e.exports=t},24665:function(e,t,n){var r=n(9363),a=n(11156);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},41590:function(e,t,n){var r=n(24665),a=n(93913);e.exports=function(e){return a(e)&&r(e)}},57835:function(e,t,n){e=n.nmd(e);var r=n(33152),a=n(55950),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,u=i&&i.exports===o?r.Buffer:void 0,c=(u?u.isBuffer:void 0)||a;e.exports=c},9363:function(e,t,n){var r=n(86756),a=n(20816);e.exports=function(e){if(!a(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},11156:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},20816:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},93913:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},19308:function(e,t,n){var r=n(86756),a=n(49217),o=n(93913),i=Function.prototype,u=Object.prototype,c=i.toString,s=u.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=a(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},18397:function(e,t,n){var r=n(10766),a=n(38342),o=n(52495),i=o&&o.isTypedArray,u=i?a(i):r;e.exports=u},56730:function(e,t,n){var r=n(63333),a=n(33988),o=n(24665);e.exports=function(e){return o(e)?r(e,!0):a(e)}},89392:function(e,t,n){var r;e=n.nmd(e),function(){var a,o="Expected a function",i="__lodash_hash_undefined__",u="__lodash_placeholder__",c=16,s=32,l=64,f=128,p=256,d=1/0,h=9007199254740991,v=NaN,m=4294967295,y=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",s],["partialRight",l],["rearg",p]],g="[object Arguments]",b="[object Array]",_="[object Boolean]",w="[object Date]",x="[object Error]",k="[object Function]",E="[object GeneratorFunction]",S="[object Map]",C="[object Number]",P="[object Object]",O="[object Promise]",j="[object RegExp]",A="[object Set]",T="[object String]",I="[object Symbol]",M="[object WeakMap]",R="[object ArrayBuffer]",L="[object DataView]",Z="[object Float32Array]",D="[object Float64Array]",N="[object Int8Array]",$="[object Int16Array]",F="[object Int32Array]",B="[object Uint8Array]",q="[object Uint8ClampedArray]",z="[object Uint16Array]",H="[object Uint32Array]",U=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,K=RegExp(G.source),X=RegExp(Y.source),Q=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ae.source),ie=/^\s+/,ue=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ve=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Pe="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",je="\\ufe0e\\ufe0f",Ae="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Ie="["+Ee+"]",Me="["+Ae+"]",Re="["+Se+"]",Le="\\d+",Ze="["+Ce+"]",De="["+Pe+"]",Ne="[^"+Ee+Ae+Le+Ce+Pe+Oe+"]",$e="\\ud83c[\\udffb-\\udfff]",Fe="[^"+Ee+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Oe+"]",He="\\u200d",Ue="(?:"+De+"|"+Ne+")",We="(?:"+ze+"|"+Ne+")",Ve="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+Re+"|"+$e+")"+"?",Ke="["+je+"]?",Xe=Ke+Ye+("(?:"+He+"(?:"+[Fe,Be,qe].join("|")+")"+Ke+Ye+")*"),Qe="(?:"+[Ze,Be,qe].join("|")+")"+Xe,Je="(?:"+[Fe+Re+"?",Re,Be,qe,Ie].join("|")+")",et=RegExp(Te,"g"),tt=RegExp(Re,"g"),nt=RegExp($e+"(?="+$e+")|"+Je+Xe,"g"),rt=RegExp([ze+"?"+De+"+"+Ve+"(?="+[Me,ze,"$"].join("|")+")",We+"+"+Ge+"(?="+[Me,ze+Ue,"$"].join("|")+")",ze+"?"+Ue+"+"+Ve,ze+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,Qe].join("|"),"g"),at=RegExp("["+He+Ee+Se+je+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ut=-1,ct={};ct[Z]=ct[D]=ct[N]=ct[$]=ct[F]=ct[B]=ct[q]=ct[z]=ct[H]=!0,ct[g]=ct[b]=ct[R]=ct[_]=ct[L]=ct[w]=ct[x]=ct[k]=ct[S]=ct[C]=ct[P]=ct[j]=ct[A]=ct[T]=ct[M]=!1;var st={};st[g]=st[b]=st[R]=st[L]=st[_]=st[w]=st[Z]=st[D]=st[N]=st[$]=st[F]=st[S]=st[C]=st[P]=st[j]=st[A]=st[T]=st[I]=st[B]=st[q]=st[z]=st[H]=!0,st[x]=st[k]=st[M]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ft=parseFloat,pt=parseInt,dt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,vt=dt||ht||Function("return this")(),mt=t&&!t.nodeType&&t,yt=mt&&e&&!e.nodeType&&e,gt=yt&&yt.exports===mt,bt=gt&&dt.process,_t=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(e){}}(),wt=_t&&_t.isArrayBuffer,xt=_t&&_t.isDate,kt=_t&&_t.isMap,Et=_t&&_t.isRegExp,St=_t&&_t.isSet,Ct=_t&&_t.isTypedArray;function Pt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ot(e,t,n,r){for(var a=-1,o=null==e?0:e.length;++a-1}function Rt(e,t,n){for(var r=-1,a=null==e?0:e.length;++r-1;);return n}function rn(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}function an(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var on=Gt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),un=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function cn(e){return"\\"+lt[e]}function sn(e){return at.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function fn(e,t){return function(n){return e(t(n))}}function pn(e,t){for(var n=-1,r=e.length,a=0,o=[];++n",""":'"',"'":"'"});var bn=function e(t){var n,r=(t=null==t?vt:bn.defaults(vt.Object(),t,bn.pick(vt,it))).Array,ue=t.Date,Ee=t.Error,Se=t.Function,Ce=t.Math,Pe=t.Object,Oe=t.RegExp,je=t.String,Ae=t.TypeError,Te=r.prototype,Ie=Se.prototype,Me=Pe.prototype,Re=t["__core-js_shared__"],Le=Ie.toString,Ze=Me.hasOwnProperty,De=0,Ne=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",$e=Me.toString,Fe=Le.call(Pe),Be=vt._,qe=Oe("^"+Le.call(Ze).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=gt?t.Buffer:a,He=t.Symbol,Ue=t.Uint8Array,We=ze?ze.allocUnsafe:a,Ve=fn(Pe.getPrototypeOf,Pe),Ge=Pe.create,Ye=Me.propertyIsEnumerable,Ke=Te.splice,Xe=He?He.isConcatSpreadable:a,Qe=He?He.iterator:a,Je=He?He.toStringTag:a,nt=function(){try{var e=ho(Pe,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==vt.clearTimeout&&t.clearTimeout,lt=ue&&ue.now!==vt.Date.now&&ue.now,dt=t.setTimeout!==vt.setTimeout&&t.setTimeout,ht=Ce.ceil,mt=Ce.floor,yt=Pe.getOwnPropertySymbols,bt=ze?ze.isBuffer:a,_t=t.isFinite,Ft=Te.join,Gt=fn(Pe.keys,Pe),_n=Ce.max,wn=Ce.min,xn=ue.now,kn=t.parseInt,En=Ce.random,Sn=Te.reverse,Cn=ho(t,"DataView"),Pn=ho(t,"Map"),On=ho(t,"Promise"),jn=ho(t,"Set"),An=ho(t,"WeakMap"),Tn=ho(Pe,"create"),In=An&&new An,Mn={},Rn=Bo(Cn),Ln=Bo(Pn),Zn=Bo(On),Dn=Bo(jn),Nn=Bo(An),$n=He?He.prototype:a,Fn=$n?$n.valueOf:a,Bn=$n?$n.toString:a;function qn(e){if(au(e)&&!Vi(e)&&!(e instanceof Wn)){if(e instanceof Un)return e;if(Ze.call(e,"__wrapped__"))return qo(e)}return new Un(e)}var zn=function(){function e(){}return function(t){if(!ru(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function Hn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function lr(e,t,n,r,o,i){var u,c=1&t,s=2&t,l=4&t;if(n&&(u=o?n(e,r,o,i):n(e)),u!==a)return u;if(!ru(e))return e;var f=Vi(e);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ze.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Ta(e,u)}else{var p=yo(e),d=p==k||p==E;if(Xi(e))return Sa(e,c);if(p==P||p==g||d&&!o){if(u=s||d?{}:bo(e),!c)return s?function(e,t){return Ia(e,mo(e),t)}(e,function(e,t){return e&&Ia(t,Lu(t),e)}(u,e)):function(e,t){return Ia(e,vo(e),t)}(e,ir(u,e))}else{if(!st[p])return o?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case R:return Ca(e);case _:case w:return new r(+e);case L:return function(e,t){var n=t?Ca(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case Z:case D:case N:case $:case F:case B:case q:case z:case H:return Pa(e,n);case S:return new r;case C:case T:return new r(e);case j:return function(e){var t=new e.constructor(e.source,ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new r;case I:return a=e,Fn?Pe(Fn.call(a)):{}}var a}(e,p,c)}}i||(i=new Xn);var h=i.get(e);if(h)return h;i.set(e,u),su(e)?e.forEach((function(r){u.add(lr(r,t,n,r,e,i))})):ou(e)&&e.forEach((function(r,a){u.set(a,lr(r,t,n,a,e,i))}));var v=f?a:(l?s?io:oo:s?Lu:Ru)(e);return jt(v||e,(function(r,a){v&&(r=e[a=r]),rr(u,a,lr(r,t,n,a,e,i))})),u}function fr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Pe(e);r--;){var o=n[r],i=t[o],u=e[o];if(u===a&&!(o in e)||!i(u))return!1}return!0}function pr(e,t,n){if("function"!=typeof e)throw new Ae(o);return Ro((function(){e.apply(a,n)}),t)}function dr(e,t,n,r){var a=-1,o=Mt,i=!0,u=e.length,c=[],s=t.length;if(!u)return c;n&&(t=Lt(t,Jt(n))),r?(o=Rt,i=!1):t.length>=200&&(o=tn,i=!1,t=new Kn(t));e:for(;++a-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=ar(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(Pn||Gn),string:new Vn}},Yn.prototype.delete=function(e){var t=fo(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return fo(this,e).get(e)},Yn.prototype.has=function(e){return fo(this,e).has(e)},Yn.prototype.set=function(e,t){var n=fo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,i),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var hr=La(xr),vr=La(kr,!0);function mr(e,t){var n=!0;return hr(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function yr(e,t,n){for(var r=-1,o=e.length;++r0&&n(u)?t>1?br(u,t-1,n,r,a):Zt(a,u):r||(a[a.length]=u)}return a}var _r=Za(),wr=Za(!0);function xr(e,t){return e&&_r(e,t,Ru)}function kr(e,t){return e&&wr(e,t,Ru)}function Er(e,t){return It(t,(function(t){return eu(e[t])}))}function Sr(e,t){for(var n=0,r=(t=wa(t,e)).length;null!=e&&nt}function jr(e,t){return null!=e&&Ze.call(e,t)}function Ar(e,t){return null!=e&&t in Pe(e)}function Tr(e,t,n){for(var o=n?Rt:Mt,i=e[0].length,u=e.length,c=u,s=r(u),l=1/0,f=[];c--;){var p=e[c];c&&t&&(p=Lt(p,Jt(t))),l=wn(p.length,l),s[c]=!n&&(t||i>=120&&p.length>=120)?new Kn(c&&p):a}p=e[0];var d=-1,h=s[0];e:for(;++d=u?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Vr(e,t,n){for(var r=-1,a=t.length,o={};++r-1;)u!==e&&Ke.call(u,c,1),Ke.call(e,c,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==o){var o=a;wo(a)?Ke.call(e,a,1):da(e,a)}}return e}function Kr(e,t){return e+mt(En()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Lo(jo(e,t,ic),e+"")}function Jr(e){return Jn(zu(e))}function ea(e,t){var n=zu(e);return No(n,sr(t,0,n.length))}function ta(e,t,n,r){if(!ru(e))return e;for(var o=-1,i=(t=wa(t,e)).length,u=i-1,c=e;null!=c&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=r(o);++a>>1,i=e[o];null!==i&&!fu(i)&&(n?i<=t:i=200){var s=t?null:Xa(e);if(s)return dn(s);i=!1,a=tn,c=new Kn}else c=t?[]:u;e:for(;++r=r?e:oa(e,t,n)}var Ea=at||function(e){return vt.clearTimeout(e)};function Sa(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function Ca(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Pa(e,t){var n=t?Ca(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Oa(e,t){if(e!==t){var n=e!==a,r=null===e,o=e==e,i=fu(e),u=t!==a,c=null===t,s=t==t,l=fu(t);if(!c&&!l&&!i&&e>t||i&&u&&s&&!c&&!l||r&&u&&s||!n&&s||!o)return 1;if(!r&&!i&&!l&&e1?n[o-1]:a,u=o>2?n[2]:a;for(i=e.length>3&&"function"==typeof i?(o--,i):a,u&&xo(n[0],n[1],u)&&(i=o<3?a:i,o=1),t=Pe(t);++r-1?o[i?t[u]:u]:a}}function Ba(e){return ao((function(t){var n=t.length,r=n,i=Un.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new Ae(o);if(i&&!c&&"wrapper"==co(u))var c=new Un([],!0)}for(r=c?r:n;++r1&&b.reverse(),d&&lc))return!1;var l=i.get(e),f=i.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&n?new Kn:a;for(i.set(e,t),i.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return jt(y,(function(n){var r="_."+n[0];t&n[1]&&!Mt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(le):[]}(r),n)))}function Do(e){var t=0,n=0;return function(){var r=xn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}function No(e,t){var n=-1,r=e.length,o=r-1;for(t=t===a?r:t;++n1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,ci(e,n)}));function vi(e){var t=qn(e);return t.__chain__=!0,t}function mi(e,t){return t(e)}var yi=ao((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return cr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&wo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:mi,args:[o],thisArg:a}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(o)}));var gi=Ma((function(e,t,n){Ze.call(e,n)?++e[n]:ur(e,n,1)}));var bi=Fa(Wo),_i=Fa(Vo);function wi(e,t){return(Vi(e)?jt:hr)(e,lo(t,3))}function xi(e,t){return(Vi(e)?At:vr)(e,lo(t,3))}var ki=Ma((function(e,t,n){Ze.call(e,n)?e[n].push(t):ur(e,n,[t])}));var Ei=Qr((function(e,t,n){var a=-1,o="function"==typeof t,i=Yi(e)?r(e.length):[];return hr(e,(function(e){i[++a]=o?Pt(t,e,n):Ir(e,t,n)})),i})),Si=Ma((function(e,t,n){ur(e,n,t)}));function Ci(e,t){return(Vi(e)?Lt:Br)(e,lo(t,3))}var Pi=Ma((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Oi=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xo(e,t[0],t[1])?t=[]:n>2&&xo(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,br(t,1),[])})),ji=lt||function(){return vt.Date.now()};function Ai(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Ja(e,f,a,a,a,a,t)}function Ti(e,t){var n;if("function"!=typeof t)throw new Ae(o);return e=yu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Ii=Qr((function(e,t,n){var r=1;if(n.length){var a=pn(n,so(Ii));r|=s}return Ja(e,r,t,n,a)})),Mi=Qr((function(e,t,n){var r=3;if(n.length){var a=pn(n,so(Mi));r|=s}return Ja(t,r,e,n,a)}));function Ri(e,t,n){var r,i,u,c,s,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Ae(o);function v(t){var n=r,o=i;return r=i=a,f=t,c=e.apply(o,n)}function m(e){return f=e,s=Ro(g,t),p?v(e):c}function y(e){var n=e-l;return l===a||n>=t||n<0||d&&e-f>=u}function g(){var e=ji();if(y(e))return b(e);s=Ro(g,function(e){var n=t-(e-l);return d?wn(n,u-(e-f)):n}(e))}function b(e){return s=a,h&&r?v(e):(r=i=a,c)}function _(){var e=ji(),n=y(e);if(r=arguments,i=this,l=e,n){if(s===a)return m(l);if(d)return Ea(s),s=Ro(g,t),v(l)}return s===a&&(s=Ro(g,t)),c}return t=bu(t)||0,ru(n)&&(p=!!n.leading,u=(d="maxWait"in n)?_n(bu(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),_.cancel=function(){s!==a&&Ea(s),f=0,r=l=i=s=a},_.flush=function(){return s===a?c:b(ji())},_}var Li=Qr((function(e,t){return pr(e,1,t)})),Zi=Qr((function(e,t,n){return pr(e,bu(t)||0,n)}));function Di(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ae(o);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(Di.Cache||Yn),n}function Ni(e){if("function"!=typeof e)throw new Ae(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Di.Cache=Yn;var $i=xa((function(e,t){var n=(t=1==t.length&&Vi(t[0])?Lt(t[0],Jt(lo())):Lt(br(t,1),Jt(lo()))).length;return Qr((function(r){for(var a=-1,o=wn(r.length,n);++a=t})),Wi=Mr(function(){return arguments}())?Mr:function(e){return au(e)&&Ze.call(e,"callee")&&!Ye.call(e,"callee")},Vi=r.isArray,Gi=wt?Jt(wt):function(e){return au(e)&&Pr(e)==R};function Yi(e){return null!=e&&nu(e.length)&&!eu(e)}function Ki(e){return au(e)&&Yi(e)}var Xi=bt||bc,Qi=xt?Jt(xt):function(e){return au(e)&&Pr(e)==w};function Ji(e){if(!au(e))return!1;var t=Pr(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!uu(e)}function eu(e){if(!ru(e))return!1;var t=Pr(e);return t==k||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function tu(e){return"number"==typeof e&&e==yu(e)}function nu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ru(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function au(e){return null!=e&&"object"==typeof e}var ou=kt?Jt(kt):function(e){return au(e)&&yo(e)==S};function iu(e){return"number"==typeof e||au(e)&&Pr(e)==C}function uu(e){if(!au(e)||Pr(e)!=P)return!1;var t=Ve(e);if(null===t)return!0;var n=Ze.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==Fe}var cu=Et?Jt(Et):function(e){return au(e)&&Pr(e)==j};var su=St?Jt(St):function(e){return au(e)&&yo(e)==A};function lu(e){return"string"==typeof e||!Vi(e)&&au(e)&&Pr(e)==T}function fu(e){return"symbol"==typeof e||au(e)&&Pr(e)==I}var pu=Ct?Jt(Ct):function(e){return au(e)&&nu(e.length)&&!!ct[Pr(e)]};var du=Ga(Fr),hu=Ga((function(e,t){return e<=t}));function vu(e){if(!e)return[];if(Yi(e))return lu(e)?mn(e):Ta(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=yo(e);return(t==S?ln:t==A?dn:zu)(e)}function mu(e){return e?(e=bu(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function yu(e){var t=mu(e),n=t%1;return t==t?n?t-n:t:0}function gu(e){return e?sr(yu(e),0,m):0}function bu(e){if("number"==typeof e)return e;if(fu(e))return v;if(ru(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ru(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ye.test(e);return n||be.test(e)?pt(e.slice(2),n?2:8):me.test(e)?v:+e}function _u(e){return Ia(e,Lu(e))}function wu(e){return null==e?"":fa(e)}var xu=Ra((function(e,t){if(Co(t)||Yi(t))Ia(t,Ru(t),e);else for(var n in t)Ze.call(t,n)&&rr(e,n,t[n])})),ku=Ra((function(e,t){Ia(t,Lu(t),e)})),Eu=Ra((function(e,t,n,r){Ia(t,Lu(t),e,r)})),Su=Ra((function(e,t,n,r){Ia(t,Ru(t),e,r)})),Cu=ao(cr);var Pu=Qr((function(e,t){e=Pe(e);var n=-1,r=t.length,o=r>2?t[2]:a;for(o&&xo(t[0],t[1],o)&&(r=1);++n1),t})),Ia(e,io(e),n),r&&(n=lr(n,7,no));for(var a=t.length;a--;)da(n,t[a]);return n}));var $u=ao((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Au(e,n)}))}(e,t)}));function Fu(e,t){if(null==e)return{};var n=Lt(io(e),(function(e){return[e]}));return t=lo(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Bu=Qa(Ru),qu=Qa(Lu);function zu(e){return null==e?[]:en(e,Ru(e))}var Hu=Na((function(e,t,n){return t=t.toLowerCase(),e+(n?Uu(t):t)}));function Uu(e){return Ju(wu(e).toLowerCase())}function Wu(e){return(e=wu(e))&&e.replace(we,on).replace(tt,"")}var Vu=Na((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gu=Na((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Yu=Da("toLowerCase");var Ku=Na((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xu=Na((function(e,t,n){return e+(n?" ":"")+Ju(t)}));var Qu=Na((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ju=Da("toUpperCase");function ec(e,t,n){return e=wu(e),(t=n?a:t)===a?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}var tc=Qr((function(e,t){try{return Pt(e,a,t)}catch(e){return Ji(e)?e:new Ee(e)}})),nc=ao((function(e,t){return jt(t,(function(t){t=Fo(t),ur(e,t,Ii(e[t],e))})),e}));function rc(e){return function(){return e}}var ac=Ba(),oc=Ba(!0);function ic(e){return e}function uc(e){return Dr("function"==typeof e?e:lr(e,1))}var cc=Qr((function(e,t){return function(n){return Ir(n,e,t)}})),sc=Qr((function(e,t){return function(n){return Ir(e,n,t)}}));function lc(e,t,n){var r=Ru(t),a=Er(t,r);null!=n||ru(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=Er(t,Ru(t)));var o=!(ru(n)&&"chain"in n&&!n.chain),i=eu(e);return jt(a,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),a=n.__actions__=Ta(this.__actions__);return a.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Zt([this.value()],arguments))})})),e}function fc(){}var pc=Ua(Lt),dc=Ua(Tt),hc=Ua($t);function vc(e){return ko(e)?Vt(Fo(e)):function(e){return function(t){return Sr(t,e)}}(e)}var mc=Va(),yc=Va(!0);function gc(){return[]}function bc(){return!1}var _c=Ha((function(e,t){return e+t}),0),wc=Ka("ceil"),xc=Ha((function(e,t){return e/t}),1),kc=Ka("floor");var Ec,Sc=Ha((function(e,t){return e*t}),1),Cc=Ka("round"),Pc=Ha((function(e,t){return e-t}),0);return qn.after=function(e,t){if("function"!=typeof t)throw new Ae(o);return e=yu(e),function(){if(--e<1)return t.apply(this,arguments)}},qn.ary=Ai,qn.assign=xu,qn.assignIn=ku,qn.assignInWith=Eu,qn.assignWith=Su,qn.at=Cu,qn.before=Ti,qn.bind=Ii,qn.bindAll=nc,qn.bindKey=Mi,qn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Vi(e)?e:[e]},qn.chain=vi,qn.chunk=function(e,t,n){t=(n?xo(e,t,n):t===a)?1:_n(yu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,u=0,c=r(ht(o/t));io?0:o+n),(r=r===a||r>o?o:yu(r))<0&&(r+=o),r=n>r?0:gu(r);n>>0)?(e=wu(e))&&("string"==typeof t||null!=t&&!cu(t))&&!(t=fa(t))&&sn(e)?ka(mn(e),0,n):e.split(t,n):[]},qn.spread=function(e,t){if("function"!=typeof e)throw new Ae(o);return t=null==t?0:_n(yu(t),0),Qr((function(n){var r=n[t],a=ka(n,0,t);return r&&Zt(a,r),Pt(e,this,a)}))},qn.tail=function(e){var t=null==e?0:e.length;return t?oa(e,1,t):[]},qn.take=function(e,t,n){return e&&e.length?oa(e,0,(t=n||t===a?1:yu(t))<0?0:t):[]},qn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oa(e,(t=r-(t=n||t===a?1:yu(t)))<0?0:t,r):[]},qn.takeRightWhile=function(e,t){return e&&e.length?va(e,lo(t,3),!1,!0):[]},qn.takeWhile=function(e,t){return e&&e.length?va(e,lo(t,3)):[]},qn.tap=function(e,t){return t(e),e},qn.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new Ae(o);return ru(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Ri(e,t,{leading:r,maxWait:t,trailing:a})},qn.thru=mi,qn.toArray=vu,qn.toPairs=Bu,qn.toPairsIn=qu,qn.toPath=function(e){return Vi(e)?Lt(e,Fo):fu(e)?[e]:Ta($o(wu(e)))},qn.toPlainObject=_u,qn.transform=function(e,t,n){var r=Vi(e),a=r||Xi(e)||pu(e);if(t=lo(t,4),null==n){var o=e&&e.constructor;n=a?r?new o:[]:ru(e)&&eu(o)?zn(Ve(e)):{}}return(a?jt:xr)(e,(function(e,r,a){return t(n,e,r,a)})),n},qn.unary=function(e){return Ai(e,1)},qn.union=ai,qn.unionBy=oi,qn.unionWith=ii,qn.uniq=function(e){return e&&e.length?pa(e):[]},qn.uniqBy=function(e,t){return e&&e.length?pa(e,lo(t,2)):[]},qn.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?pa(e,a,t):[]},qn.unset=function(e,t){return null==e||da(e,t)},qn.unzip=ui,qn.unzipWith=ci,qn.update=function(e,t,n){return null==e?e:ha(e,t,_a(n))},qn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:ha(e,t,_a(n),r)},qn.values=zu,qn.valuesIn=function(e){return null==e?[]:en(e,Lu(e))},qn.without=si,qn.words=ec,qn.wrap=function(e,t){return Fi(_a(t),e)},qn.xor=li,qn.xorBy=fi,qn.xorWith=pi,qn.zip=di,qn.zipObject=function(e,t){return ga(e||[],t||[],rr)},qn.zipObjectDeep=function(e,t){return ga(e||[],t||[],ta)},qn.zipWith=hi,qn.entries=Bu,qn.entriesIn=qu,qn.extend=ku,qn.extendWith=Eu,lc(qn,qn),qn.add=_c,qn.attempt=tc,qn.camelCase=Hu,qn.capitalize=Uu,qn.ceil=wc,qn.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=bu(n))==n?n:0),t!==a&&(t=(t=bu(t))==t?t:0),sr(bu(e),t,n)},qn.clone=function(e){return lr(e,4)},qn.cloneDeep=function(e){return lr(e,5)},qn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:a)},qn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:a)},qn.conformsTo=function(e,t){return null==t||fr(e,t,Ru(t))},qn.deburr=Wu,qn.defaultTo=function(e,t){return null==e||e!=e?t:e},qn.divide=xc,qn.endsWith=function(e,t,n){e=wu(e),t=fa(t);var r=e.length,o=n=n===a?r:sr(yu(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},qn.eq=zi,qn.escape=function(e){return(e=wu(e))&&X.test(e)?e.replace(Y,un):e},qn.escapeRegExp=function(e){return(e=wu(e))&&oe.test(e)?e.replace(ae,"\\$&"):e},qn.every=function(e,t,n){var r=Vi(e)?Tt:mr;return n&&xo(e,t,n)&&(t=a),r(e,lo(t,3))},qn.find=bi,qn.findIndex=Wo,qn.findKey=function(e,t){return Bt(e,lo(t,3),xr)},qn.findLast=_i,qn.findLastIndex=Vo,qn.findLastKey=function(e,t){return Bt(e,lo(t,3),kr)},qn.floor=kc,qn.forEach=wi,qn.forEachRight=xi,qn.forIn=function(e,t){return null==e?e:_r(e,lo(t,3),Lu)},qn.forInRight=function(e,t){return null==e?e:wr(e,lo(t,3),Lu)},qn.forOwn=function(e,t){return e&&xr(e,lo(t,3))},qn.forOwnRight=function(e,t){return e&&kr(e,lo(t,3))},qn.get=ju,qn.gt=Hi,qn.gte=Ui,qn.has=function(e,t){return null!=e&&go(e,t,jr)},qn.hasIn=Au,qn.head=Yo,qn.identity=ic,qn.includes=function(e,t,n,r){e=Yi(e)?e:zu(e),n=n&&!r?yu(n):0;var a=e.length;return n<0&&(n=_n(a+n,0)),lu(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&zt(e,t,n)>-1},qn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:yu(n);return a<0&&(a=_n(r+a,0)),zt(e,t,a)},qn.inRange=function(e,t,n){return t=mu(t),n===a?(n=t,t=0):n=mu(n),function(e,t,n){return e>=wn(t,n)&&e<_n(t,n)}(e=bu(e),t,n)},qn.invoke=Mu,qn.isArguments=Wi,qn.isArray=Vi,qn.isArrayBuffer=Gi,qn.isArrayLike=Yi,qn.isArrayLikeObject=Ki,qn.isBoolean=function(e){return!0===e||!1===e||au(e)&&Pr(e)==_},qn.isBuffer=Xi,qn.isDate=Qi,qn.isElement=function(e){return au(e)&&1===e.nodeType&&!uu(e)},qn.isEmpty=function(e){if(null==e)return!0;if(Yi(e)&&(Vi(e)||"string"==typeof e||"function"==typeof e.splice||Xi(e)||pu(e)||Wi(e)))return!e.length;var t=yo(e);if(t==S||t==A)return!e.size;if(Co(e))return!Nr(e).length;for(var n in e)if(Ze.call(e,n))return!1;return!0},qn.isEqual=function(e,t){return Rr(e,t)},qn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:a)?n(e,t):a;return r===a?Rr(e,t,a,n):!!r},qn.isError=Ji,qn.isFinite=function(e){return"number"==typeof e&&_t(e)},qn.isFunction=eu,qn.isInteger=tu,qn.isLength=nu,qn.isMap=ou,qn.isMatch=function(e,t){return e===t||Lr(e,t,po(t))},qn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:a,Lr(e,t,po(t),n)},qn.isNaN=function(e){return iu(e)&&e!=+e},qn.isNative=function(e){if(So(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Zr(e)},qn.isNil=function(e){return null==e},qn.isNull=function(e){return null===e},qn.isNumber=iu,qn.isObject=ru,qn.isObjectLike=au,qn.isPlainObject=uu,qn.isRegExp=cu,qn.isSafeInteger=function(e){return tu(e)&&e>=-9007199254740991&&e<=h},qn.isSet=su,qn.isString=lu,qn.isSymbol=fu,qn.isTypedArray=pu,qn.isUndefined=function(e){return e===a},qn.isWeakMap=function(e){return au(e)&&yo(e)==M},qn.isWeakSet=function(e){return au(e)&&"[object WeakSet]"==Pr(e)},qn.join=function(e,t){return null==e?"":Ft.call(e,t)},qn.kebabCase=Vu,qn.last=Jo,qn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==a&&(o=(o=yu(n))<0?_n(r+o,0):wn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):qt(e,Ut,o,!0)},qn.lowerCase=Gu,qn.lowerFirst=Yu,qn.lt=du,qn.lte=hu,qn.max=function(e){return e&&e.length?yr(e,ic,Or):a},qn.maxBy=function(e,t){return e&&e.length?yr(e,lo(t,2),Or):a},qn.mean=function(e){return Wt(e,ic)},qn.meanBy=function(e,t){return Wt(e,lo(t,2))},qn.min=function(e){return e&&e.length?yr(e,ic,Fr):a},qn.minBy=function(e,t){return e&&e.length?yr(e,lo(t,2),Fr):a},qn.stubArray=gc,qn.stubFalse=bc,qn.stubObject=function(){return{}},qn.stubString=function(){return""},qn.stubTrue=function(){return!0},qn.multiply=Sc,qn.nth=function(e,t){return e&&e.length?Ur(e,yu(t)):a},qn.noConflict=function(){return vt._===this&&(vt._=Be),this},qn.noop=fc,qn.now=ji,qn.pad=function(e,t,n){e=wu(e);var r=(t=yu(t))?vn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Wa(mt(a),n)+e+Wa(ht(a),n)},qn.padEnd=function(e,t,n){e=wu(e);var r=(t=yu(t))?vn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=En();return wn(e+o*(t-e+ft("1e-"+((o+"").length-1))),t)}return Kr(e,t)},qn.reduce=function(e,t,n){var r=Vi(e)?Dt:Yt,a=arguments.length<3;return r(e,lo(t,4),n,a,hr)},qn.reduceRight=function(e,t,n){var r=Vi(e)?Nt:Yt,a=arguments.length<3;return r(e,lo(t,4),n,a,vr)},qn.repeat=function(e,t,n){return t=(n?xo(e,t,n):t===a)?1:yu(t),Xr(wu(e),t)},qn.replace=function(){var e=arguments,t=wu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},qn.result=function(e,t,n){var r=-1,o=(t=wa(t,e)).length;for(o||(o=1,e=a);++rh)return[];var n=m,r=wn(e,m);t=lo(t),e-=m;for(var a=Xt(r,t);++n=i)return e;var c=n-vn(r);if(c<1)return r;var s=u?ka(u,0,c).join(""):e.slice(0,c);if(o===a)return s+r;if(u&&(c+=s.length-c),cu(o)){if(e.slice(c).search(o)){var l,f=s;for(o.global||(o=Oe(o.source,wu(ve.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var p=l.index;s=s.slice(0,p===a?c:p)}}else if(e.indexOf(fa(o),c)!=c){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+r},qn.unescape=function(e){return(e=wu(e))&&K.test(e)?e.replace(G,gn):e},qn.uniqueId=function(e){var t=++De;return wu(e)+t},qn.upperCase=Qu,qn.upperFirst=Ju,qn.each=wi,qn.eachRight=xi,qn.first=Yo,lc(qn,(Ec={},xr(qn,(function(e,t){Ze.call(qn.prototype,t)||(Ec[t]=e)})),Ec),{chain:!1}),qn.VERSION="4.17.21",jt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){qn[e].placeholder=qn})),jt(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===a?1:_n(yu(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),jt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:lo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),jt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),jt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ic)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Ir(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Ni(lo(e)))},Wn.prototype.slice=function(e,t){e=yu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=yu(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(m)},xr(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=qn[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(qn.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,c=t instanceof Wn,s=u[0],l=c||Vi(t),f=function(e){var t=o.apply(qn,Zt([e],u));return r&&p?t[0]:t};l&&n&&"function"==typeof s&&1!=s.length&&(c=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=i&&!p,v=c&&!d;if(!i&&l){t=v?t:new Wn(this);var m=e.apply(t,u);return m.__actions__.push({func:mi,args:[f],thisArg:a}),new Un(m,p)}return h&&v?e.apply(this,u):(m=this.thru(f),h?r?m.value()[0]:m.value():m)})})),jt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);qn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(Vi(a)?a:[],e)}return this[n]((function(n){return t.apply(Vi(n)?n:[],e)}))}})),xr(Wn.prototype,(function(e,t){var n=qn[t];if(n){var r=n.name+"";Ze.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}})),Mn[qa(a,2).name]=[{name:"wrapper",func:a}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Ta(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ta(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ta(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Vi(e),r=t<0,a=n?e.length:0,o=function(e,t,n){var r=-1,a=n.length;for(;++r=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},qn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=qo(n);r.__index__=0,r.__values__=a,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},qn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:mi,args:[ri],thisArg:a}),new Un(t,this.__chain__)}return this.thru(ri)},qn.prototype.toJSON=qn.prototype.valueOf=qn.prototype.value=function(){return ma(this.__wrapped__,this.__actions__)},qn.prototype.first=qn.prototype.head,Qe&&(qn.prototype[Qe]=function(){return this}),qn}();vt._=bn,(r=function(){return bn}.call(t,n,t,e))===a||(e.exports=r)}.call(this)},28440:function(e,t,n){var r=n(50097),a=n(63323)((function(e,t,n){r(e,t,n)}));e.exports=a},55950:function(e){e.exports=function(){return!1}},20480:function(e,t,n){var r=n(95378),a=n(56730);e.exports=function(e){return r(e,a(e))}},93735:function(e,t,n){var r,a,o,i,u;r=n(75041),a=n(67751).utf8,o=n(78034),i=n(67751).bin,(u=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?i.stringToBytes(e):a.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),c=8*e.length,s=1732584193,l=-271733879,f=-1732584194,p=271733878,d=0;d>>24)|4278255360&(n[d]<<24|n[d]>>>8);n[c>>>5]|=128<>>9<<4)]=c;var h=u._ff,v=u._gg,m=u._hh,y=u._ii;for(d=0;d>>0,l=l+b>>>0,f=f+_>>>0,p=p+w>>>0}return r.endian([s,l,f,p])})._ff=function(e,t,n,r,a,o,i){var u=e+(t&n|~t&r)+(a>>>0)+i;return(u<>>32-o)+t},u._gg=function(e,t,n,r,a,o,i){var u=e+(t&r|n&~r)+(a>>>0)+i;return(u<>>32-o)+t},u._hh=function(e,t,n,r,a,o,i){var u=e+(t^n^r)+(a>>>0)+i;return(u<>>32-o)+t},u._ii=function(e,t,n,r,a,o,i){var u=e+(n^(t|~r))+(a>>>0)+i;return(u<>>32-o)+t},u._blocksize=16,u._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(u(e,t));return t&&t.asBytes?n:t&&t.asString?i.bytesToString(n):r.bytesToHex(n)}},61339:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},84126:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,u,c=a(e),s=1;s1)for(var n=1;n1?t-1:0),r=1;r=o)return e;switch(e){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch(e){return"[Circular]"}break;default:return e}}));return i}return e}function Z(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function D(e,t,n){var r=0,a=e.length;!function o(i){if(i&&i.length)n(i);else{var u=r;r+=1,u()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,W=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,V={integer:function(e){return V.number(e)&&parseInt(e,10)===e},float:function(e){return V.number(e)&&!V.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(0,S.Z)(e)&&!V.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(U)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(q)return q;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:".concat(a.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),i=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),u=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(o,"$")),s=function(e){return e&&e.exact?i:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(o).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?u:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(o).concat(t(e)),"g")};var l=s.v4().source,f=s.v6().source,p="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(l,"|").concat(f,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return q=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(W)}},G=function(e,t,n,r,a){if(e.required&&void 0===t)H(e,t,n,r,a);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?V[o](t)||r.push(L(a.messages.types[o],e.fullField,e.type)):o&&(0,S.Z)(t)!==e.type&&r.push(L(a.messages.types[o],e.fullField,e.type))}},Y={required:H,whitespace:function(e,t,n,r,a){(/^\s+$/.test(t)||""===t)&&r.push(L(a.messages.whitespace,e.fullField))},type:G,range:function(e,t,n,r,a){var o="number"==typeof e.len,i="number"==typeof e.min,u="number"==typeof e.max,c=t,s=null,l="number"==typeof t,f="string"==typeof t,p=Array.isArray(t);if(l?s="number":f?s="string":p&&(s="array"),!s)return!1;p&&(c=t.length),f&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?c!==e.len&&r.push(L(a.messages[s].len,e.fullField,e.len)):i&&!u&&ce.max?r.push(L(a.messages[s].max,e.fullField,e.max)):i&&u&&(ce.max)&&r.push(L(a.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,a){e[z]=Array.isArray(e[z])?e[z]:[],-1===e[z].indexOf(t)&&r.push(L(a.messages[z],e.fullField,e[z].join(", ")))},pattern:function(e,t,n,r,a){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(L(a.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(L(a.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},K=function(e,t,n,r,a){var o=[],i=Array.isArray(t)?"array":(0,S.Z)(t);Y.required(e,t,r,o,a,i),n(o)},X=function(e,t,n,r,a){var o=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t,o)&&!e.required)return n();Y.required(e,t,r,i,a,o),Z(t,o)||Y.type(e,t,r,i,a)}n(i)},Q={string:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t,"string")&&!e.required)return n();Y.required(e,t,r,o,a,"string"),Z(t,"string")||(Y.type(e,t,r,o,a),Y.range(e,t,r,o,a),Y.pattern(e,t,r,o,a),!0===e.whitespace&&Y.whitespace(e,t,r,o,a))}n(o)},method:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t)&&!e.required)return n();Y.required(e,t,r,o,a),void 0!==t&&Y.type(e,t,r,o,a)}n(o)},number:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Z(t)&&!e.required)return n();Y.required(e,t,r,o,a),void 0!==t&&(Y.type(e,t,r,o,a),Y.range(e,t,r,o,a))}n(o)},boolean:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t)&&!e.required)return n();Y.required(e,t,r,o,a),void 0!==t&&Y.type(e,t,r,o,a)}n(o)},regexp:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t)&&!e.required)return n();Y.required(e,t,r,o,a),Z(t)||Y.type(e,t,r,o,a)}n(o)},integer:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t)&&!e.required)return n();Y.required(e,t,r,o,a),void 0!==t&&(Y.type(e,t,r,o,a),Y.range(e,t,r,o,a))}n(o)},float:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t)&&!e.required)return n();Y.required(e,t,r,o,a),void 0!==t&&(Y.type(e,t,r,o,a),Y.range(e,t,r,o,a))}n(o)},array:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Y.required(e,t,r,o,a,"array"),null!=t&&(Y.type(e,t,r,o,a),Y.range(e,t,r,o,a))}n(o)},object:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t)&&!e.required)return n();Y.required(e,t,r,o,a),void 0!==t&&Y.type(e,t,r,o,a)}n(o)},enum:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t)&&!e.required)return n();Y.required(e,t,r,o,a),void 0!==t&&Y.enum(e,t,r,o,a)}n(o)},pattern:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t,"string")&&!e.required)return n();Y.required(e,t,r,o,a),Z(t,"string")||Y.pattern(e,t,r,o,a)}n(o)},date:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t,"date")&&!e.required)return n();var i;if(Y.required(e,t,r,o,a),!Z(t,"date"))i=t instanceof Date?t:new Date(t),Y.type(e,i,r,o,a),i&&Y.range(e,i.getTime(),r,o,a)}n(o)},url:X,hex:X,email:X,required:K,any:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Z(t)&&!e.required)return n();Y.required(e,t,r,o,a)}n(o)}},J=function(){function e(t){(0,l.Z)(this,e),(0,v.Z)(this,"rules",null),(0,v.Z)(this,"_messages",P),this.define(t)}return(0,f.Z)(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,S.Z)(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=B(C(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=t,i=r,u=a;if("function"==typeof i&&(u=i,i={}),!this.rules||0===Object.keys(this.rules).length)return u&&u(null,o),Promise.resolve(o);function l(e){var t,n,r=[],a={};for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[],f=Array.isArray(r)?r:[r];!i.suppressWarning&&f.length&&e.warning("async-validator:",f),f.length&&void 0!==a.message&&(f=[].concat(a.message));var p=f.map(F(a,o));if(i.first&&p.length)return h[a.field]=1,n(p);if(u){if(a.required&&!t.value)return void 0!==a.message?p=[].concat(a.message).map(F(a,o)):i.error&&(p=[i.error(a,L(i.messages.required,a.field))]),n(p);var d={};a.defaultField&&Object.keys(t.value).map((function(e){d[e]=a.defaultField})),d=(0,c.Z)((0,c.Z)({},d),t.rule.fields);var v={};Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];v[e]=n.map(l.bind(null,e))}));var m=new e(v);m.messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),m.validate(t.value,t.rule.options||i,(function(e){var t=[];p&&p.length&&t.push.apply(t,(0,s.Z)(p)),e&&e.length&&t.push.apply(t,(0,s.Z)(e)),n(t.length?t:null)}))}else n(p)}if(u=u&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)r=a.asyncValidator(a,t.value,f,t.source,i);else if(a.validator){try{r=a.validator(a,t.value,f,t.source,i)}catch(e){var p,d;null===(p=(d=console).error)||void 0===p||p.call(d,e),i.suppressValidatorError||setTimeout((function(){throw e}),0),f(e.message)}!0===r?f():!1===r?f("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):r instanceof Array?f(r):r instanceof Error&&f(r.message)}r&&r.then&&r.then((function(){return f()}),(function(e){return f(e)}))}),(function(e){l(e)}),o)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Q.hasOwnProperty(e.type))throw new Error(L("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Q.required:Q[this.getType(e)]||void 0}}]),e}();(0,v.Z)(J,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Q[e]=t})),(0,v.Z)(J,"warning",(function(){})),(0,v.Z)(J,"messages",P),(0,v.Z)(J,"validators",Q);var ee=J,te="'${name}' is not a valid ${type}",ne={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:te,method:te,array:te,object:te,number:te,date:te,boolean:te,integer:te,float:te,regexp:te,email:te,url:te,hex:te},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},re=n(24434),ae=ee;function oe(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var ie="CODE_LOGIC_ERROR";function ue(e,t,n,r,a){return ce.apply(this,arguments)}function ce(){return ce=(0,u.Z)((0,i.Z)().mark((function e(t,n,a,o,u){var l,f,p,d,h,m,y,g,b;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=(0,c.Z)({},a)).ruleIndex,ae.warning=function(){},l.validator&&(f=l.validator,l.validator=function(){try{return f.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(ie)}}),p=null,l&&"array"===l.type&&l.defaultField&&(p=l.defaultField,delete l.defaultField),d=new ae((0,v.Z)({},t,[l])),h=(0,re.T)(ne,o.validateMessages),d.messages(h),m=[],e.prev=10,e.next=13,Promise.resolve(d.validate((0,v.Z)({},t,n),(0,c.Z)({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(m=e.t0.errors.map((function(e,t){var n=e.message,a=n===ie?h.default:n;return r.isValidElement(a)?r.cloneElement(a,{key:"error_".concat(t)}):a})));case 18:if(m.length||!p){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return ue("".concat(t,".").concat(n),e,p,o,u)})));case 21:return y=e.sent,e.abrupt("return",y.reduce((function(e,t){return[].concat((0,s.Z)(e),(0,s.Z)(t))}),[]));case 23:return g=(0,c.Z)((0,c.Z)({},a),{},{name:t,enum:(a.enum||[]).join(", ")},u),b=m.map((function(e){return"string"==typeof e?oe(e,g):e})),e.abrupt("return",b);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),ce.apply(this,arguments)}function se(e,t,n,r,a,o){var s,l=e.join("."),f=n.map((function(e,t){var n=e.validator,r=(0,c.Z)((0,c.Z)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var a=!1,o=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return me(t,e,n)}))}function me(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!(!e||!t)&&(!(!n&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function ye(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,S.Z)(t.target)&&e in t.target?t.target[e]:t}function ge(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat((0,s.Z)(e.slice(0,n)),[a],(0,s.Z)(e.slice(n,t)),(0,s.Z)(e.slice(t+1,r))):o<0?[].concat((0,s.Z)(e.slice(0,t)),(0,s.Z)(e.slice(t+1,n+1)),[a],(0,s.Z)(e.slice(n+1,r))):e}var be=["name"],_e=[];function we(e,t,n,r,a,o){return"function"==typeof e?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var xe=function(e){(0,d.Z)(n,e);var t=(0,h.Z)(n);function n(e){var a;((0,l.Z)(this,n),a=t.call(this,e),(0,v.Z)((0,p.Z)(a),"state",{resetCount:0}),(0,v.Z)((0,p.Z)(a),"cancelRegisterFunc",null),(0,v.Z)((0,p.Z)(a),"mounted",!1),(0,v.Z)((0,p.Z)(a),"touched",!1),(0,v.Z)((0,p.Z)(a),"dirty",!1),(0,v.Z)((0,p.Z)(a),"validatePromise",void 0),(0,v.Z)((0,p.Z)(a),"prevValidating",void 0),(0,v.Z)((0,p.Z)(a),"errors",_e),(0,v.Z)((0,p.Z)(a),"warnings",_e),(0,v.Z)((0,p.Z)(a),"cancelRegister",(function(){var e=a.props,t=e.preserve,n=e.isListField,r=e.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(n,t,de(r)),a.cancelRegisterFunc=null})),(0,v.Z)((0,p.Z)(a),"getNamePath",(function(){var e=a.props,t=e.name,n=e.fieldContext.prefixName,r=void 0===n?[]:n;return void 0!==t?[].concat((0,s.Z)(r),(0,s.Z)(t)):[]})),(0,v.Z)((0,p.Z)(a),"getRules",(function(){var e=a.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),(0,v.Z)((0,p.Z)(a),"refresh",(function(){a.mounted&&a.setState((function(e){return{resetCount:e.resetCount+1}}))})),(0,v.Z)((0,p.Z)(a),"metaCache",null),(0,v.Z)((0,p.Z)(a),"triggerMetaEvent",(function(e){var t=a.props.onMetaChange;if(t){var n=(0,c.Z)((0,c.Z)({},a.getMeta()),{},{destroy:e});(0,y.Z)(a.metaCache,n)||t(n),a.metaCache=n}else a.metaCache=null})),(0,v.Z)((0,p.Z)(a),"onStoreChange",(function(e,t,n){var r=a.props,o=r.shouldUpdate,i=r.dependencies,u=void 0===i?[]:i,c=r.onReset,s=n.store,l=a.getNamePath(),f=a.getValue(e),p=a.getValue(s),d=t&&ve(t,l);switch("valueUpdate"!==n.type||"external"!==n.source||(0,y.Z)(f,p)||(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=_e,a.warnings=_e,a.triggerMetaEvent()),n.type){case"reset":if(!t||d)return a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=_e,a.warnings=_e,a.triggerMetaEvent(),null==c||c(),void a.refresh();break;case"remove":if(o&&we(o,e,s,f,p,n))return void a.reRender();break;case"setField":var h=n.data;if(d)return"touched"in h&&(a.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(a.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(a.errors=h.errors||_e),"warnings"in h&&(a.warnings=h.warnings||_e),a.dirty=!0,a.triggerMetaEvent(),void a.reRender();if("value"in h&&ve(t,l,!0))return void a.reRender();if(o&&!l.length&&we(o,e,s,f,p,n))return void a.reRender();break;case"dependenciesUpdate":if(u.map(de).some((function(e){return ve(n.relatedFields,e)})))return void a.reRender();break;default:if(d||(!u.length||l.length||o)&&we(o,e,s,f,p,n))return void a.reRender()}!0===o&&a.reRender()})),(0,v.Z)((0,p.Z)(a),"validateRules",(function(e){var t=a.getNamePath(),n=a.getValue(),r=e||{},o=r.triggerName,c=r.validateOnly,l=void 0!==c&&c,f=Promise.resolve().then((0,u.Z)((0,i.Z)().mark((function r(){var u,c,l,p,d,h,v;return(0,i.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(u=a.props,c=u.validateFirst,l=void 0!==c&&c,p=u.messageVariables,d=u.validateDebounce,h=a.getRules(),o&&(h=h.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||k(t).includes(o)}))),!d||!o){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(a.validatePromise===f){r.next=10;break}return r.abrupt("return",[]);case 10:return(v=se(t,n,h,e,l,p)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_e;if(a.validatePromise===f){var t;a.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,a=e.errors,o=void 0===a?_e:a;t?r.push.apply(r,(0,s.Z)(o)):n.push.apply(n,(0,s.Z)(o))})),a.errors=n,a.warnings=r,a.triggerMetaEvent(),a.reRender()}})),r.abrupt("return",v);case 13:case"end":return r.stop()}}),r)}))));return l||(a.validatePromise=f,a.dirty=!0,a.errors=_e,a.warnings=_e,a.triggerMetaEvent(),a.reRender()),f})),(0,v.Z)((0,p.Z)(a),"isFieldValidating",(function(){return!!a.validatePromise})),(0,v.Z)((0,p.Z)(a),"isFieldTouched",(function(){return a.touched})),(0,v.Z)((0,p.Z)(a),"isFieldDirty",(function(){return!(!a.dirty&&void 0===a.props.initialValue)||void 0!==(0,a.props.fieldContext.getInternalHooks(b).getInitialValue)(a.getNamePath())})),(0,v.Z)((0,p.Z)(a),"getErrors",(function(){return a.errors})),(0,v.Z)((0,p.Z)(a),"getWarnings",(function(){return a.warnings})),(0,v.Z)((0,p.Z)(a),"isListField",(function(){return a.props.isListField})),(0,v.Z)((0,p.Z)(a),"isList",(function(){return a.props.isList})),(0,v.Z)((0,p.Z)(a),"isPreserve",(function(){return a.props.preserve})),(0,v.Z)((0,p.Z)(a),"getMeta",(function(){return a.prevValidating=a.isFieldValidating(),{touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:null===a.validatePromise}})),(0,v.Z)((0,p.Z)(a),"getOnlyChild",(function(e){if("function"==typeof e){var t=a.getMeta();return(0,c.Z)((0,c.Z)({},a.getOnlyChild(e(a.getControlled(),t,a.props.fieldContext))),{},{isFunction:!0})}var n=(0,m.Z)(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),(0,v.Z)((0,p.Z)(a),"getValue",(function(e){var t=a.props.fieldContext.getFieldsValue,n=a.getNamePath();return(0,pe.Z)(e||t(!0),n)})),(0,v.Z)((0,p.Z)(a),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.props,n=t.name,r=t.trigger,o=t.validateTrigger,i=t.getValueFromEvent,u=t.normalize,s=t.valuePropName,l=t.getValueProps,f=t.fieldContext,p=void 0!==o?o:f.validateTrigger,d=a.getNamePath(),h=f.getInternalHooks,m=f.getFieldsValue,y=h(b),g=y.dispatch,_=a.getValue(),w=l||function(e){return(0,v.Z)({},s,e)},x=e[r],E=void 0!==n?w(_):{};var S=(0,c.Z)((0,c.Z)({},e),E);S[r]=function(){var e;a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r=0&&t<=n.length?(p.keys=[].concat((0,s.Z)(p.keys.slice(0,t)),[p.id],(0,s.Z)(p.keys.slice(t))),o([].concat((0,s.Z)(n.slice(0,t)),[e],(0,s.Z)(n.slice(t))))):(p.keys=[].concat((0,s.Z)(p.keys),[p.id]),o([].concat((0,s.Z)(n),[e]))),p.id+=1},remove:function(e){var t=u(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(p.keys=p.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=u();e<0||e>=n.length||t<0||t>=n.length||(p.keys=ge(p.keys,e,t),o(ge(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[]),a(f.map((function(e,t){var n=p.keys[t];return void 0===n&&(p.keys[t]=p.id,n=p.keys[t],p.id+=1),{name:t,key:n,isListField:!0}})),c,t)}))))},Se=n(50298);var Ce="__@field_split__";function Pe(e){return e.map((function(e){return"".concat((0,S.Z)(e),":").concat(e)})).join(Ce)}var Oe=function(){function e(){(0,l.Z)(this,e),(0,v.Z)(this,"kvs",new Map)}return(0,f.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(Pe(e),t)}},{key:"get",value:function(e){return this.kvs.get(Pe(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Pe(e))}},{key:"map",value:function(e){return(0,s.Z)(this.kvs.entries()).map((function(t){var n=(0,Se.Z)(t,2),r=n[0],a=n[1],o=r.split(Ce);return e({key:o.map((function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,Se.Z)(t,3),r=n[1],a=n[2];return"number"===r?Number(a):a})),value:a})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),je=Oe,Ae=["name"],Te=(0,f.Z)((function e(t){var n=this;(0,l.Z)(this,e),(0,v.Z)(this,"formHooked",!1),(0,v.Z)(this,"forceRootUpdate",void 0),(0,v.Z)(this,"subscribable",!0),(0,v.Z)(this,"store",{}),(0,v.Z)(this,"fieldEntities",[]),(0,v.Z)(this,"initialValues",{}),(0,v.Z)(this,"callbacks",{}),(0,v.Z)(this,"validateMessages",null),(0,v.Z)(this,"preserve",null),(0,v.Z)(this,"lastValidatePromise",null),(0,v.Z)(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),(0,v.Z)(this,"getInternalHooks",(function(e){return e===b?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):((0,g.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),(0,v.Z)(this,"useSubscribe",(function(e){n.subscribable=e})),(0,v.Z)(this,"prevWithoutPreserves",null),(0,v.Z)(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,a=(0,re.T)(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;a=(0,re.Z)(a,n,(0,pe.Z)(e,n))})),n.prevWithoutPreserves=null,n.updateStore(a)}})),(0,v.Z)(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new je;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),(0,v.Z)(this,"getInitialValue",(function(e){var t=(0,pe.Z)(n.initialValues,e);return e.length?(0,re.T)(t):t})),(0,v.Z)(this,"setCallbacks",(function(e){n.callbacks=e})),(0,v.Z)(this,"setValidateMessages",(function(e){n.validateMessages=e})),(0,v.Z)(this,"setPreserve",(function(e){n.preserve=e})),(0,v.Z)(this,"watchList",[]),(0,v.Z)(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),(0,v.Z)(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),(0,v.Z)(this,"timeoutId",null),(0,v.Z)(this,"warningUnhooked",(function(){0})),(0,v.Z)(this,"updateStore",(function(e){n.store=e})),(0,v.Z)(this,"getFieldEntities",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),(0,v.Z)(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new je;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),(0,v.Z)(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=de(e);return t.get(n)||{INVALIDATE_NAME_PATH:de(e)}}))})),(0,v.Z)(this,"getFieldsValue",(function(e,t){var r,a,o;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,a=t):e&&"object"===(0,S.Z)(e)&&(o=e.strict,a=e.filter),!0===r&&!a)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),u=[];return i.forEach((function(e){var t,n,i,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(o){if(null!==(i=(c=e).isList)&&void 0!==i&&i.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(a){var l="getMeta"in e?e.getMeta():null;a(l)&&u.push(s)}else u.push(s)})),he(n.store,u.map(de))})),(0,v.Z)(this,"getFieldValue",(function(e){n.warningUnhooked();var t=de(e);return(0,pe.Z)(n.store,t)})),(0,v.Z)(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:de(e[n]),errors:[],warnings:[]}}))})),(0,v.Z)(this,"getFieldError",(function(e){n.warningUnhooked();var t=de(e);return n.getFieldsError([t])[0].errors})),(0,v.Z)(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=de(e);return n.getFieldsError([t])[0].warnings})),(0,v.Z)(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=new je,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var a=t.get(r)||new Set;a.add({entity:e,value:n}),t.set(r,a)}}));var a,o=function(r){r.forEach((function(r){if(void 0!==r.props.initialValue){var a=r.getNamePath();if(void 0!==n.getInitialValue(a))(0,g.ZP)(!1,"Form already set 'initialValues' with path '".concat(a.join("."),"'. Field can not overwrite it."));else{var o=t.get(a);if(o&&o.size>1)(0,g.ZP)(!1,"Multiple Field with path '".concat(a.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var i=n.getFieldValue(a);r.isListField()||e.skipExist&&void 0!==i||n.updateStore((0,re.Z)(n.store,a,(0,s.Z)(o)[0].value))}}}}))};e.entities?a=e.entities:e.namePathList?(a=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=a).push.apply(n,(0,s.Z)((0,s.Z)(r).map((function(e){return e.entity}))))}))):a=r,o(a)})),(0,v.Z)(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore((0,re.T)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(de);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore((0,re.Z)(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),(0,v.Z)(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var a=e.name,i=(0,o.Z)(e,Ae),u=de(a);r.push(u),"value"in i&&n.updateStore((0,re.Z)(n.store,u,i.value)),n.notifyObservers(t,[u],{type:"setField",data:e})})),n.notifyWatch(r)})),(0,v.Z)(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=e.getMeta(),a=(0,c.Z)((0,c.Z)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(a,"originRCField",{value:!0}),a}))})),(0,v.Z)(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===(0,pe.Z)(n.store,r)&&n.updateStore((0,re.Z)(n.store,r,t))}})),(0,v.Z)(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),(0,v.Z)(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(a)&&(!r||o.length>1)){var i=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==i&&n.fieldEntities.every((function(e){return!me(e.getNamePath(),t)}))){var u=n.store;n.updateStore((0,re.Z)(u,t,i,!0)),n.notifyObservers(u,[t],{type:"remove"}),n.triggerDependenciesUpdate(u,t)}}n.notifyWatch([t])}})),(0,v.Z)(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var a=e.namePath,o=e.triggerName;n.validateFields([a],{triggerName:o})}})),(0,v.Z)(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var a=(0,c.Z)((0,c.Z)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,a)}))}else n.forceRootUpdate()})),(0,v.Z)(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat((0,s.Z)(r))}),r})),(0,v.Z)(this,"updateValue",(function(e,t){var r=de(e),a=n.store;n.updateStore((0,re.Z)(n.store,r,t)),n.notifyObservers(a,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var o=n.triggerDependenciesUpdate(a,r),i=n.callbacks.onValuesChange;i&&i(he(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat((0,s.Z)(o)))})),(0,v.Z)(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=(0,re.T)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),(0,v.Z)(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])})),(0,v.Z)(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],a=new je;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=de(t);a.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(a.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var a=n.getNamePath();n.isFieldDirty()&&a.length&&(r.push(a),e(a))}}))}(e),r})),(0,v.Z)(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var a=n.getFields();if(t){var o=new je;t.forEach((function(e){var t=e.name,n=e.errors;o.set(t,n)})),a.forEach((function(e){e.errors=o.get(e.name)||e.errors}))}var i=a.filter((function(t){var n=t.name;return ve(e,n)}));i.length&&r(i,a)}})),(0,v.Z)(this,"validateFields",(function(e,t){var r,a;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,a=t):a=e;var o=!!r,i=o?r.map(de):[],u=[],l=String(Date.now()),f=new Set,p=a||{},d=p.recursive,h=p.dirty;n.getFieldEntities(!0).forEach((function(e){if(o||i.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!h||e.isFieldDirty())){var t=e.getNamePath();if(f.add(t.join(l)),!o||ve(i,t,d)){var r=e.validateRules((0,c.Z)({validateMessages:(0,c.Z)((0,c.Z)({},ne),n.validateMessages)},a));u.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],a=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?a.push.apply(a,(0,s.Z)(n)):r.push.apply(r,(0,s.Z)(n))})),r.length?Promise.reject({name:t,errors:r,warnings:a}):{name:t,errors:r,warnings:a}})))}}}));var v=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(a,o){e.forEach((function(e,i){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[i]=e,n>0||(t&&o(r),a(r))}))}))})):Promise.resolve([])}(u);n.lastValidatePromise=v,v.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var m=v.then((function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(i),errorFields:t,outOfDate:n.lastValidatePromise!==v})}));m.catch((function(e){return e}));var y=i.filter((function(e){return f.has(e.join(l))}));return n.triggerOnFieldsChange(y),m})),(0,v.Z)(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));var Ie=function(e){var t=r.useRef(),n=r.useState({}),a=(0,Se.Z)(n,2)[1];if(!t.current)if(e)t.current=e;else{var o=new Te((function(){a({})}));t.current=o.getForm()}return[t.current]},Me=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Re=function(e){var t=e.validateMessages,n=e.onFormChange,a=e.onFormFinish,o=e.children,i=r.useContext(Me),u=r.useRef({});return r.createElement(Me.Provider,{value:(0,c.Z)((0,c.Z)({},i),{},{validateMessages:(0,c.Z)((0,c.Z)({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:u.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){a&&a(e,{values:t,forms:u.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(u.current=(0,c.Z)((0,c.Z)({},u.current),{},(0,v.Z)({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=(0,c.Z)({},u.current);delete t[e],u.current=t,i.unregisterForm(e)}})},o)},Le=Me,Ze=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],De=function(e,t){var n=e.name,i=e.initialValues,u=e.fields,l=e.form,f=e.preserve,p=e.children,d=e.component,h=void 0===d?"form":d,v=e.validateMessages,m=e.validateTrigger,y=void 0===m?"onChange":m,g=e.onValuesChange,_=e.onFieldsChange,k=e.onFinish,E=e.onFinishFailed,C=e.clearOnDestroy,P=(0,o.Z)(e,Ze),O=r.useRef(null),j=r.useContext(Le),A=Ie(l),T=(0,Se.Z)(A,1)[0],I=T.getInternalHooks(b),M=I.useSubscribe,R=I.setInitialValues,L=I.setCallbacks,Z=I.setValidateMessages,D=I.setPreserve,N=I.destroyForm;r.useImperativeHandle(t,(function(){return(0,c.Z)((0,c.Z)({},T),{},{nativeElement:O.current})})),r.useEffect((function(){return j.registerForm(n,T),function(){j.unregisterForm(n)}}),[j,T,n]),Z((0,c.Z)((0,c.Z)({},j.validateMessages),v)),L({onValuesChange:g,onFieldsChange:function(e){if(j.triggerFormChange(n,e),_){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:2;t();var o=(0,Q.Z)((function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)}));e.current=o},t]}(),s=(0,o.Z)(c,2),l=s[0],p=s[1];var d=t?ee:J;return X((function(){if(i!==j&&i!==M){var e=d.indexOf(i),t=d[e+1],r=n(i);false===r?u(t,!0):t&&l((function(e){function n(){e.isCanceled()||u(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),f.useEffect((function(){return function(){p()}}),[]),[function(){u(A,!0)},i]};function re(e,t,n,i){var u,c,s,l,p=i.motionEnter,d=void 0===p||p,h=i.motionAppear,v=void 0===h||h,m=i.motionLeave,y=void 0===m||m,g=i.motionDeadline,b=i.motionLeaveImmediately,_=i.onAppearPrepare,w=i.onEnterPrepare,j=i.onLeavePrepare,M=i.onAppearStart,L=i.onEnterStart,Z=i.onLeaveStart,D=i.onAppearActive,N=i.onEnterActive,$=i.onLeaveActive,F=i.onAppearEnd,B=i.onEnterEnd,q=i.onLeaveEnd,z=i.onVisibleChanged,H=(0,k.Z)(),U=(0,o.Z)(H,2),W=U[0],V=U[1],K=(u=S,c=f.useReducer((function(e){return e+1}),0),s=(0,o.Z)(c,2)[1],l=f.useRef(u),[(0,E.Z)((function(){return l.current})),(0,E.Z)((function(e){l.current="function"==typeof e?e(l.current):e,s()}))]),Q=(0,o.Z)(K,2),J=Q[0],ee=Q[1],re=(0,k.Z)(null),ae=(0,o.Z)(re,2),oe=ae[0],ie=ae[1],ue=J(),ce=(0,f.useRef)(!1),se=(0,f.useRef)(null);function le(){return n()}var fe=(0,f.useRef)(!1);function pe(){ee(S),ie(null,!0)}var de=(0,x.zX)((function(e){var t=J();if(t!==S){var n=le();if(!e||e.deadline||e.target===n){var r,a=fe.current;t===C&&a?r=null==F?void 0:F(n,e):t===P&&a?r=null==B?void 0:B(n,e):t===O&&a&&(r=null==q?void 0:q(n,e)),a&&!1!==r&&pe()}}})),he=function(e){var t=(0,f.useRef)();function n(t){t&&(t.removeEventListener(Y,e),t.removeEventListener(G,e))}return f.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(Y,e),r.addEventListener(G,e),t.current=r)},n]}(de),ve=(0,o.Z)(he,1)[0],me=function(e){switch(e){case C:return(0,r.Z)((0,r.Z)((0,r.Z)({},A,_),T,M),I,D);case P:return(0,r.Z)((0,r.Z)((0,r.Z)({},A,w),T,L),I,N);case O:return(0,r.Z)((0,r.Z)((0,r.Z)({},A,j),T,Z),I,$);default:return{}}},ye=f.useMemo((function(){return me(ue)}),[ue]),ge=ne(ue,!e,(function(e){if(e===A){var t=ye[A];return!!t&&t(le())}var n;we in ye&&ie((null===(n=ye[we])||void 0===n?void 0:n.call(ye,le(),null))||null);return we===I&&ue!==S&&(ve(le()),g>0&&(clearTimeout(se.current),se.current=setTimeout((function(){de({deadline:!0})}),g))),we===R&&pe(),true})),be=(0,o.Z)(ge,2),_e=be[0],we=be[1],xe=te(we);fe.current=xe;var ke=(0,f.useRef)(null);X((function(){if(!ce.current||ke.current!==t){V(t);var n,r=ce.current;ce.current=!0,!r&&t&&v&&(n=C),r&&t&&d&&(n=P),(r&&!t&&y||!r&&b&&!t&&y)&&(n=O);var a=me(n);n&&(e||a[A])?(ee(n),_e()):ee(S),ke.current=t}}),[t]),(0,f.useEffect)((function(){(ue===C&&!v||ue===P&&!d||ue===O&&!y)&&ee(S)}),[v,d,y]),(0,f.useEffect)((function(){return function(){ce.current=!1,clearTimeout(se.current)}}),[]);var Ee=f.useRef(!1);(0,f.useEffect)((function(){W&&(Ee.current=!0),void 0!==W&&ue===S&&((Ee.current||W)&&(null==z||z(W)),Ee.current=!0)}),[W,ue]);var Se=oe;return ye[A]&&we===T&&(Se=(0,a.Z)({transition:"none"},Se)),[ue,we,Se,null!=W?W:t]}var ae=function(e){var t=e;"object"===(0,i.Z)(e)&&(t=e.transitionSupport);var n=f.forwardRef((function(e,n){var i=e.visible,u=void 0===i||i,p=e.removeOnLeave,d=void 0===p||p,v=e.forceRender,m=e.children,y=e.motionName,g=e.leavedClassName,b=e.eventProps,_=function(e,n){return!(!e.motionName||!t||!1===n)}(e,f.useContext(h).motion),x=(0,f.useRef)(),k=(0,f.useRef)();var E=re(_,u,(function(){try{return x.current instanceof HTMLElement?x.current:(0,s.ZP)(k.current)}catch(e){return null}}),e),C=(0,o.Z)(E,4),P=C[0],O=C[1],j=C[2],I=C[3],M=f.useRef(I);I&&(M.current=!0);var R,L=f.useCallback((function(e){x.current=e,(0,l.mH)(n,e)}),[n]),Z=(0,a.Z)((0,a.Z)({},b),{},{visible:u});if(m)if(P===S)R=I?m((0,a.Z)({},Z),L):!d&&M.current&&g?m((0,a.Z)((0,a.Z)({},Z),{},{className:g}),L):v||!d&&!g?m((0,a.Z)((0,a.Z)({},Z),{},{style:{display:"none"}}),L):null;else{var D;O===A?D="prepare":te(O)?D="active":O===T&&(D="start");var N=K(y,"".concat(P,"-").concat(D));R=m((0,a.Z)((0,a.Z)({},Z),{},{className:c()(K(y,P),(0,r.Z)((0,r.Z)({},N,N&&D),y,"string"==typeof y)),style:j}),L)}else R=null;f.isValidElement(R)&&(0,l.Yr)(R)&&((0,l.C4)(R)||(R=f.cloneElement(R,{ref:L})));return f.createElement(w,{ref:k},R)}));return n.displayName="CSSMotion",n}(V),oe=n(14809),ie=n(13028),ue="add",ce="keep",se="remove",le="removed";function fe(e){var t;return t=e&&"object"===(0,i.Z)(e)&&"key"in e?e:{key:e},(0,a.Z)((0,a.Z)({},t),{},{key:String(t.key)})}function pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(fe)}function de(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=pe(e),u=pe(t);i.forEach((function(e){for(var t=!1,i=r;i1}));return s.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==se}))).forEach((function(t){t.key===e&&(t.status=ce)}))})),n}var he=["component","children","onVisibleChanged","onAllRemoved"],ve=["status"],me=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var ye=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ae,n=function(e){(0,g.Z)(o,e);var n=(0,b.Z)(o);function o(){var e;(0,m.Z)(this,o);for(var t=arguments.length,i=new Array(t),u=0;u0&&f,q=function(){S(g)};i.useEffect((function(){if(!F&&c>0){var e=Date.now()-N,t=setTimeout((function(){q()}),1e3*c-N);return function(){y&&clearTimeout(t),$(Date.now()-e)}}}),[c,F,C]),i.useEffect((function(){if(!F&&B&&(y||0===N)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame((function(e){var r=e+N-t,a=Math.min(r/(1e3*c),1);L(100*a),a<1&&n()}))}(),function(){y&&cancelAnimationFrame(e)}}}),[c,N,F,B,C]);var z=i.useMemo((function(){return"object"===(0,h.Z)(_)&&null!==_?_:_?{closeIcon:x}:{}}),[_,x]),H=(0,m.Z)(z,!0),U=100-(!R||R<0?0:R>100?100:R),W="".concat(n,"-notice");return i.createElement("div",(0,s.Z)({},k,{ref:t,className:p()(W,o,(0,l.Z)({},"".concat(W,"-closable"),_)),style:r,onMouseEnter:function(e){var t;T(!0),null==k||null===(t=k.onMouseEnter)||void 0===t||t.call(k,e)},onMouseLeave:function(e){var t;T(!1),null==k||null===(t=k.onMouseLeave)||void 0===t||t.call(k,e)},onClick:E}),i.createElement("div",{className:"".concat(W,"-content")},b),_&&i.createElement("a",(0,s.Z)({tabIndex:0,className:"".concat(W,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==v.Z.ENTER||q()},"aria-label":"Close"},H,{onClick:function(e){e.preventDefault(),e.stopPropagation(),q()}}),z.closeIcon),B&&i.createElement("progress",{className:"".concat(W,"-progress"),max:"100",value:U},U+"%"))})),g=i.createContext({}),b=function(e){var t=e.children,n=e.classNames;return i.createElement(g.Provider,{value:{classNames:n}},t)},_=function(e){var t,n,r,a={offset:8,threshold:3,gap:16};e&&"object"===(0,h.Z)(e)&&(a.offset=null!==(t=e.offset)&&void 0!==t?t:8,a.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,a.gap=null!==(r=e.gap)&&void 0!==r?r:16);return[!!e,a]},w=["className","style","classNames","styles"];var x=function(e){var t=e.configList,n=e.placement,c=e.prefixCls,f=e.className,h=e.style,v=e.motion,m=e.onAllNoticeRemoved,b=e.onNoticeClose,x=e.stack,k=(0,i.useContext)(g).classNames,E=(0,i.useRef)({}),S=(0,i.useState)(null),C=(0,a.Z)(S,2),P=C[0],O=C[1],j=(0,i.useState)([]),A=(0,a.Z)(j,2),T=A[0],I=A[1],M=t.map((function(e){return{config:e,key:String(e.key)}})),R=_(x),L=(0,a.Z)(R,2),Z=L[0],D=L[1],N=D.offset,$=D.threshold,F=D.gap,B=Z&&(T.length>0||M.length<=$),q="function"==typeof v?v(n):v;return(0,i.useEffect)((function(){Z&&T.length>1&&I((function(e){return e.filter((function(e){return M.some((function(t){var n=t.key;return e===n}))}))}))}),[T,M,Z]),(0,i.useEffect)((function(){var e,t;Z&&E.current[null===(e=M[M.length-1])||void 0===e?void 0:e.key]&&O(E.current[null===(t=M[M.length-1])||void 0===t?void 0:t.key])}),[M,Z]),i.createElement(d.V4,(0,s.Z)({key:n,className:p()(c,"".concat(c,"-").concat(n),null==k?void 0:k.list,f,(0,l.Z)((0,l.Z)({},"".concat(c,"-stack"),!!Z),"".concat(c,"-stack-expanded"),B)),style:h,keys:M,motionAppear:!0},q,{onAllRemoved:function(){m(n)}}),(function(e,t){var a=e.config,l=e.className,f=e.style,d=e.index,h=a,v=h.key,m=h.times,g=String(v),_=a,x=_.className,S=_.style,C=_.classNames,O=_.styles,j=(0,o.Z)(_,w),A=M.findIndex((function(e){return e.key===g})),R={};if(Z){var L=M.length-1-(A>-1?A:d-1),D="top"===n||"bottom"===n?"-50%":"0";if(L>0){var $,q,z;R.height=B?null===($=E.current[g])||void 0===$?void 0:$.offsetHeight:null==P?void 0:P.offsetHeight;for(var H=0,U=0;U-1?E.current[g]=e:delete E.current[g]},prefixCls:c,classNames:C,styles:O,className:p()(x,null==k?void 0:k.notice),style:S,times:m,key:v,eventKey:v,onNoticeClose:b,hovering:Z&&T.length>0})))}))};var k=i.forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-notification":n,s=e.container,l=e.motion,f=e.maxCount,p=e.className,d=e.style,h=e.onAllRemoved,v=e.stack,m=e.renderNotifications,y=i.useState([]),g=(0,a.Z)(y,2),b=g[0],_=g[1],w=function(e){var t,n=b.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),_((function(t){return t.filter((function(t){return t.key!==e}))}))};i.useImperativeHandle(t,(function(){return{open:function(e){_((function(t){var n,a=(0,r.Z)(t),o=a.findIndex((function(t){return t.key===e.key})),i=(0,u.Z)({},e);o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,a[o]=i):(i.times=0,a.push(i));return f>0&&a.length>f&&(a=a.slice(-f)),a}))},close:function(e){w(e)},destroy:function(){_([])}}}));var k=i.useState({}),E=(0,a.Z)(k,2),S=E[0],C=E[1];i.useEffect((function(){var e={};b.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(S).forEach((function(t){e[t]=e[t]||[]})),C(e)}),[b]);var P=function(e){C((function(t){var n=(0,u.Z)({},t);return(n[e]||[]).length||delete n[e],n}))},O=i.useRef(!1);if(i.useEffect((function(){Object.keys(S).length>0?O.current=!0:O.current&&(null==h||h(),O.current=!1)}),[S]),!s)return null;var j=Object.keys(S);return(0,c.createPortal)(i.createElement(i.Fragment,null,j.map((function(e){var t=S[e],n=i.createElement(x,{key:e,configList:t,placement:e,prefixCls:o,className:null==p?void 0:p(e),style:null==d?void 0:d(e),motion:l,onNoticeClose:w,onAllNoticeRemoved:P,stack:v});return m?m(n,{prefixCls:o,key:e}):n}))),s)})),E=n(70425),S=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],C=function(){return document.body},P=0;function O(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?C:t,u=e.motion,c=e.prefixCls,s=e.maxCount,l=e.className,f=e.style,p=e.onAllRemoved,d=e.stack,h=e.renderNotifications,v=(0,o.Z)(e,S),m=i.useState(),y=(0,a.Z)(m,2),g=y[0],b=y[1],_=i.useRef(),w=i.createElement(k,{container:g,ref:_,prefixCls:c,motion:u,maxCount:s,className:l,style:f,onAllRemoved:p,stack:d,renderNotifications:h}),x=i.useState([]),j=(0,a.Z)(x,2),A=j[0],T=j[1],I=(0,E.zX)((function(e){var t=O(v,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(P),P+=1),T((function(e){return[].concat((0,r.Z)(e),[{type:"open",config:t}])}))})),M=i.useMemo((function(){return{open:I,close:function(e){T((function(t){return[].concat((0,r.Z)(t),[{type:"close",key:e}])}))},destroy:function(){T((function(e){return[].concat((0,r.Z)(e),[{type:"destroy"}])}))}}}),[]);return i.useEffect((function(){b(n())})),i.useEffect((function(){var e,t;_.current&&A.length&&(A.forEach((function(e){switch(e.type){case"open":_.current.open(e.config);break;case"close":_.current.close(e.key);break;case"destroy":_.current.destroy()}})),T((function(n){return e===n&&t||(e=n,t=n.filter((function(e){return!A.includes(e)}))),t})))}),[A]),[M,w]}},61852:function(e,t){"use strict";t.Z={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"}},17119:function(e,t){"use strict";t.Z={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"}},75319:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});var r={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}},11592:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(34678),a=n(59301);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return a.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(o(e)):(0,r.Z)(e)&&e.props?n=n.concat(o(e.props.children,t)):n.push(e))})),n}},47273:function(e,t,n){"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{Z:function(){return r}})},48519:function(e,t,n){"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{Z:function(){return r}})},810:function(e,t,n){"use strict";n.d(t,{hq:function(){return g},jL:function(){return m}});var r=n(20439),a=n(47273),o=n(48519),i="data-rc-order",u="data-rc-priority",c="rc-util-key",s=new Map;function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):c}function f(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function p(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function d(e){return Array.from((s.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,a.Z)())return null;var n=t.csp,r=t.prepend,o=t.priority,c=void 0===o?0:o,s=p(r),l="prependQueue"===s,h=document.createElement("style");h.setAttribute(i,s),l&&c&&h.setAttribute(u,"".concat(c)),null!=n&&n.nonce&&(h.nonce=null==n?void 0:n.nonce),h.innerHTML=e;var v=f(t),m=v.firstChild;if(r){if(l){var y=(t.styles||d(v)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(i)))return!1;var t=Number(e.getAttribute(u)||0);return c>=t}));if(y.length)return v.insertBefore(h,y[y.length-1].nextSibling),h}v.insertBefore(h,m)}else v.appendChild(h);return h}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f(t);return(t.styles||d(n)).find((function(n){return n.getAttribute(l(t))===e}))}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=v(e,t);if(n){var r=f(t);r.removeChild(n)}}function y(e,t){var n=s.get(e);if(!n||!(0,o.Z)(document,n)){var r=h("",t),a=r.parentNode;s.set(e,a),e.removeChild(r)}}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=f(n),o=d(a),i=(0,r.Z)((0,r.Z)({},n),{},{styles:o});y(a,i);var u=v(t,i);if(u){var c,s,p;if(null!==(c=i.csp)&&void 0!==c&&c.nonce&&u.nonce!==(null===(s=i.csp)||void 0===s?void 0:s.nonce))u.nonce=null===(p=i.csp)||void 0===p?void 0:p.nonce;return u.innerHTML!==e&&(u.innerHTML=e),u}var m=h(e,i);return m.setAttribute(l(i),t),m}},76846:function(e,t,n){"use strict";n.d(t,{Sh:function(){return i},ZP:function(){return c},bn:function(){return u}});var r=n(93664),a=n(59301),o=n(4676);function i(e){return e instanceof HTMLElement||e instanceof SVGElement}function u(e){return e&&"object"===(0,r.Z)(e)&&i(e.nativeElement)?e.nativeElement:i(e)?e:null}function c(e){var t,n=u(e);return n||(e instanceof a.Component?null===(t=o.findDOMNode)||void 0===t?void 0:t.call(o,e):null)}},29194:function(e,t){"use strict";t.Z=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1}},96452:function(e,t,n){"use strict";function r(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function a(e){return function(e){return r(e)instanceof ShadowRoot}(e)?r(e):null}n.d(t,{A:function(){return a}})},10228:function(e,t){"use strict";var n={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(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE)return!0;if(e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY)return!0;if(e>=n.A&&e<=n.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=n},34678:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(93664),a=Symbol.for("react.element"),o=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(e){return e&&"object"===(0,r.Z)(e)&&(e.$$typeof===a||e.$$typeof===o)&&e.type===i}},75152:function(e,t,n){"use strict";n.d(t,{Z:function(){return i},o:function(){return u}});var r,a=n(810);function o(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var u=getComputedStyle(e);i.scrollbarColor=u.scrollbarColor,i.scrollbarWidth=u.scrollbarWidth;var c=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(c.width,10),l=parseInt(c.height,10);try{var f=s?"width: ".concat(c.width,";"):"",p=l?"height: ".concat(c.height,";"):"";(0,a.hq)("\n#".concat(t,"::-webkit-scrollbar {\n").concat(f,"\n").concat(p,"\n}"),t)}catch(e){console.error(e),r=s,o=l}}document.body.appendChild(n);var d=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,h=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),(0,a.jL)(t),{width:d,height:h}}function i(e){return"undefined"==typeof document?0:((e||void 0===r)&&(r=o()),r.width)}function u(e){return"undefined"!=typeof document&&e&&e instanceof Element?o(e):{width:0,height:0}}},6089:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(59301);function a(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),a=0;a2&&void 0!==arguments[2]&&arguments[2],o=new Set;function i(e,t){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=o.has(e);if((0,a.ZP)(!c,"Warning: There may be circular references"),c)return!1;if(e===t)return!0;if(n&&u>1)return!1;o.add(e);var s=u+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var l=0;lc")}))},95955:function(e,t,n){"use strict";var r=n(4112),a=TypeError;e.exports=function(e){if(r(e))throw new a("Can't call method on "+e);return e}},88134:function(e){"use strict";e.exports=function(e,t){return e===t||e!=e&&t!=t}},5370:function(e){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},93222:function(e,t,n){"use strict";var r,a=n(92916),o=n(13743),i=n(55327),u=n(90843),c=n(66011),s=n(30867),l=n(57106),f=a.Function,p=/MSIE .\./.test(c)||u&&((r=a.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));e.exports=function(e,t){var n=t?2:1;return p?function(r,a){var u=l(arguments.length,1)>n,c=i(r)?r:f(r),p=u?s(arguments,n):[],d=u?function(){o(c,this,p)}:c;return t?e(d,a):e(d)}:e}},61838:function(e,t,n){"use strict";var r=n(19691),a=n(57002),o=r.Set,i=r.add;e.exports=function(e){var t=new o;return a(e,(function(e){i(t,e)})),t}},10038:function(e,t,n){"use strict";var r=n(17442),a=n(19691),o=n(61838),i=n(108),u=n(88203),c=n(57002),s=n(43545),l=a.has,f=a.remove;e.exports=function(e){var t=r(this),n=u(e),a=o(t);return i(t)<=n.size?c(t,(function(e){n.includes(e)&&f(a,e)})):s(n.getIterator(),(function(e){l(t,e)&&f(a,e)})),a}},19691:function(e,t,n){"use strict";var r=n(94237),a=Set.prototype;e.exports={Set:Set,add:r(a.add),has:r(a.has),remove:r(a.delete),proto:a}},16049:function(e,t,n){"use strict";var r=n(17442),a=n(19691),o=n(108),i=n(88203),u=n(57002),c=n(43545),s=a.Set,l=a.add,f=a.has;e.exports=function(e){var t=r(this),n=i(e),a=new s;return o(t)>n.size?c(n.getIterator(),(function(e){f(t,e)&&l(a,e)})):u(t,(function(e){n.includes(e)&&l(a,e)})),a}},17616:function(e,t,n){"use strict";var r=n(17442),a=n(19691).has,o=n(108),i=n(88203),u=n(57002),c=n(43545),s=n(67996);e.exports=function(e){var t=r(this),n=i(e);if(o(t)<=n.size)return!1!==u(t,(function(e){if(n.includes(e))return!1}),!0);var l=n.getIterator();return!1!==c(l,(function(e){if(a(t,e))return s(l,"normal",!1)}))}},84833:function(e,t,n){"use strict";var r=n(17442),a=n(108),o=n(57002),i=n(88203);e.exports=function(e){var t=r(this),n=i(e);return!(a(t)>n.size)&&!1!==o(t,(function(e){if(!n.includes(e))return!1}),!0)}},51135:function(e,t,n){"use strict";var r=n(17442),a=n(19691).has,o=n(108),i=n(88203),u=n(43545),c=n(67996);e.exports=function(e){var t=r(this),n=i(e);if(o(t)3}))}},13764:function(e,t,n){"use strict";var r=n(94237),a=n(56902),o=n(69905),i=n(95955),u=r("".charAt),c=r("".charCodeAt),s=r("".slice),l=function(e){return function(t,n){var r,l,f=o(i(t)),p=a(n),d=f.length;return p<0||p>=d?e?"":void 0:(r=c(f,p))<55296||r>56319||p+1===d||(l=c(f,p+1))<56320||l>57343?e?u(f,p):r:e?s(f,p,p+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},98352:function(e,t,n){"use strict";var r=n(66011);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},85571:function(e,t,n){"use strict";var r=n(94237),a=n(61578),o=n(69905),i=n(71049),u=n(95955),c=r(i),s=r("".slice),l=Math.ceil,f=function(e){return function(t,n,r){var i,f,p=o(u(t)),d=a(n),h=p.length,v=void 0===r?" ":o(r);return d<=h||""===v?p:((f=c(v,l((i=d-h)/v.length))).length>i&&(f=s(f,0,i)),e?p+f:f+p)}};e.exports={start:f(!1),end:f(!0)}},79204:function(e,t,n){"use strict";var r=n(65911),a=n(94237),o=String.fromCharCode,i=r("String","fromCodePoint"),u=a("".charAt),c=a("".charCodeAt),s=a("".indexOf),l=a("".slice),f=function(e,t){var n=c(e,t);return n>=48&&n<=57},p=function(e,t,n){if(n>=e.length)return-1;for(var r=0;t=48&&e<=57?e-48:e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:-1};e.exports=function(e){for(var t,n="",r=0,a=0;(a=s(e,"\\",a))>-1;){if(n+=l(e,r,a),++a===e.length)return;var c=u(e,a++);switch(c){case"b":n+="\b";break;case"t":n+="\t";break;case"n":n+="\n";break;case"v":n+="\v";break;case"f":n+="\f";break;case"r":n+="\r";break;case"\r":a1114111)return;n+=i(t);break;default:if(f(c,0))return;n+=c}r=a}return n+l(e,r)}},93245:function(e,t,n){"use strict";var r=n(94237),a=2147483647,o=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,u="Overflow: input needs wider integers to process",c=RangeError,s=r(i.exec),l=Math.floor,f=String.fromCharCode,p=r("".charCodeAt),d=r([].join),h=r([].push),v=r("".replace),m=r("".split),y=r("".toLowerCase),g=function(e){return e+22+75*(e<26)},b=function(e,t,n){var r=0;for(e=n?l(e/700):e>>1,e+=l(e/t);e>455;)e=l(e/35),r+=36;return l(r+36*e/(e+38))},_=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n=55296&&a<=56319&&n=i&&r<_&&(_=r);var w=y+1;if(_-i>l((a-s)/w))throw new c(u);for(s+=(_-i)*w,i=_,n=0;na)throw new c(u);if(r===i){for(var x=s,k=36;;){var E=k<=v?1:k>=v+26?26:k-v;if(x0;(u>>>=1)&&(t+=t))1&u&&(n+=t);return n}},9591:function(e,t,n){"use strict";var r=n(52971).end,a=n(18105);e.exports=a("trimEnd")?function(){return r(this)}:"".trimEnd},18105:function(e,t,n){"use strict";var r=n(8090).PROPER,a=n(3338),o=n(19268);e.exports=function(e){return a((function(){return!!o[e]()||"​…᠎"!=="​…᠎"[e]()||r&&o[e].name!==e}))}},27374:function(e,t,n){"use strict";var r=n(52971).start,a=n(18105);e.exports=a("trimStart")?function(){return r(this)}:"".trimStart},52971:function(e,t,n){"use strict";var r=n(94237),a=n(95955),o=n(69905),i=n(19268),u=r("".replace),c=RegExp("^["+i+"]+"),s=RegExp("(^|[^"+i+"])["+i+"]+$"),l=function(e){return function(t){var n=o(a(t));return 1&e&&(n=u(n,c,"")),2&e&&(n=u(n,s,"$1")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},80426:function(e,t,n){"use strict";var r=n(92916),a=n(3338),o=n(46573),i=n(66994),u=n(91821),c=n(90946),s=r.structuredClone;e.exports=!!s&&!a((function(){if(u&&o>92||c&&o>94||i&&o>97)return!1;var e=new ArrayBuffer(8),t=s(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},42820:function(e,t,n){"use strict";var r=n(46573),a=n(3338),o=n(92916).String;e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},14311:function(e,t,n){"use strict";var r=n(89945),a=n(65911),o=n(59893),i=n(2291);e.exports=function(){var e=a("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,u=o("toPrimitive");t&&!t[u]&&i(t,u,(function(e){return r(n,this)}),{arity:1})}},69077:function(e,t,n){"use strict";var r=n(65911),a=n(94237),o=r("Symbol"),i=o.keyFor,u=a(o.prototype.valueOf);e.exports=o.isRegisteredSymbol||function(e){try{return void 0!==i(u(e))}catch(e){return!1}}},40443:function(e,t,n){"use strict";for(var r=n(77898),a=n(65911),o=n(94237),i=n(18446),u=n(59893),c=a("Symbol"),s=c.isWellKnownSymbol,l=a("Object","getOwnPropertyNames"),f=o(c.prototype.valueOf),p=r("wks"),d=0,h=l(c),v=h.length;d0?a(r(e),9007199254740991):0}},94029:function(e,t,n){"use strict";var r=n(95955),a=Object;e.exports=function(e){return a(r(e))}},64135:function(e,t,n){"use strict";var r=n(51358),a=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new a("Wrong offset");return n}},51358:function(e,t,n){"use strict";var r=n(56902),a=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new a("The argument can't be less than 0");return t}},97954:function(e,t,n){"use strict";var r=n(89945),a=n(31946),o=n(18446),i=n(53776),u=n(44759),c=n(59893),s=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!a(e)||o(e))return e;var n,c=i(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!a(n)||o(n))return n;throw new s("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},17818:function(e,t,n){"use strict";var r=n(97954),a=n(18446);e.exports=function(e){var t=r(e,"string");return a(t)?t:t+""}},77999:function(e,t,n){"use strict";var r=n(65911),a=n(55327),o=n(30360),i=n(31946),u=r("Set");e.exports=function(e){return function(e){return i(e)&&"number"==typeof e.size&&a(e.has)&&a(e.keys)}(e)?e:o(e)?new u(e):e}},68527:function(e,t,n){"use strict";var r={};r[n(59893)("toStringTag")]="z",e.exports="[object z]"===String(r)},69905:function(e,t,n){"use strict";var r=n(97607),a=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return a(e)}},86350:function(e){"use strict";var t=Math.round;e.exports=function(e){var n=t(e);return n<0?0:n>255?255:255&n}},11270:function(e,t,n){"use strict";var r=n(90946);e.exports=function(e){try{if(r)return Function('return require("'+e+'")')()}catch(e){}}},40593:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},69733:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(89945),i=n(35454),u=n(59627),c=n(58261),s=n(91669),l=n(56472),f=n(35012),p=n(68151),d=n(62896),h=n(61578),v=n(24225),m=n(64135),y=n(86350),g=n(17818),b=n(32621),_=n(97607),w=n(31946),x=n(18446),k=n(20132),E=n(16332),S=n(58218),C=n(80689).f,P=n(50706),O=n(90560).forEach,j=n(51996),A=n(64110),T=n(37691),I=n(71256),M=n(94844),R=n(25576),L=M.get,Z=M.set,D=M.enforce,N=T.f,$=I.f,F=a.RangeError,B=s.ArrayBuffer,q=B.prototype,z=s.DataView,H=c.NATIVE_ARRAY_BUFFER_VIEWS,U=c.TYPED_ARRAY_TAG,W=c.TypedArray,V=c.TypedArrayPrototype,G=c.aTypedArrayConstructor,Y=c.isTypedArray,K="BYTES_PER_ELEMENT",X="Wrong length",Q=function(e,t){G(e);for(var n=0,r=t.length,a=new e(r);r>n;)a[n]=t[n++];return a},J=function(e,t){A(e,t,{configurable:!0,get:function(){return L(this)[t]}})},ee=function(e){var t;return E(q,e)||"ArrayBuffer"===(t=_(e))||"SharedArrayBuffer"===t},te=function(e,t){return Y(e)&&!x(t)&&t in e&&d(+t)&&t>=0},ne=function(e,t){return t=g(t),te(e,t)?f(2,e[t]):$(e,t)},re=function(e,t,n){return t=g(t),!(te(e,t)&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?N(e,t,n):(e[t]=n.value,e)};i?(H||(I.f=ne,T.f=re,J(V,"buffer"),J(V,"byteOffset"),J(V,"byteLength"),J(V,"length")),r({target:"Object",stat:!0,forced:!H},{getOwnPropertyDescriptor:ne,defineProperty:re}),e.exports=function(e,t,n){var i=e.match(/\d+/)[0]/8,c=e+(n?"Clamped":"")+"Array",s="get"+e,f="set"+e,d=a[c],g=d,b=g&&g.prototype,_={},x=function(e,t){N(e,t,{get:function(){return function(e,t){var n=L(e);return n.view[s](t*i+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var a=L(e);a.view[f](t*i+a.byteOffset,n?y(r):r,!0)}(this,t,e)},enumerable:!0})};H?u&&(g=t((function(e,t,n,r){return l(e,b),R(w(t)?ee(t)?void 0!==r?new d(t,m(n,i),r):void 0!==n?new d(t,m(n,i)):new d(t):Y(t)?Q(g,t):o(P,g,t):new d(v(t)),e,g)})),S&&S(g,W),O(C(d),(function(e){e in g||p(g,e,d[e])})),g.prototype=b):(g=t((function(e,t,n,r){l(e,b);var a,u,c,s=0,f=0;if(w(t)){if(!ee(t))return Y(t)?Q(g,t):o(P,g,t);a=t,f=m(n,i);var p=t.byteLength;if(void 0===r){if(p%i)throw new F(X);if((u=p-f)<0)throw new F(X)}else if((u=h(r)*i)+f>p)throw new F(X);c=u/i}else c=v(t),a=new B(u=c*i);for(Z(e,{buffer:a,byteOffset:f,byteLength:u,length:c,view:new z(a)});s1?arguments[1]:void 0,E=void 0!==k,S=s(w);if(S&&!l(S))for(b=(g=c(w,S)).next,w=[];!(y=a(b,g)).done;)w.push(y.value);for(E&&x>2&&(k=r(k,arguments[2])),n=u(w),h=new(p(_))(n),v=f(h),t=0;n>t;t++)m=E?k(w[t],t):w[t],h[t]=v?d(m):+m;return h}},31384:function(e,t,n){"use strict";var r=n(58261),a=n(60473),o=r.aTypedArrayConstructor,i=r.getTypedArrayConstructor;e.exports=function(e){return o(a(e,i(e)))}},6145:function(e,t,n){"use strict";var r=n(94237),a=0,o=Math.random(),i=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++a+o,36)}},3299:function(e,t,n){"use strict";var r=n(3338),a=n(59893),o=n(35454),i=n(16697),u=a("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),n.delete("b",void 0),i&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(i||!o)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[u]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},14417:function(e,t,n){"use strict";var r=n(42820);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},93199:function(e,t,n){"use strict";var r=n(35454),a=n(3338);e.exports=r&&a((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},57106:function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(eg&&p(r,arguments[g]),r}));if(E.prototype=x,"Error"!==_?u?u(E,k):c(E,k,{name:!0}):h&&y in w&&(s(E,w,y),s(E,w,"prepareStackTrace")),c(E,w),!v)try{x.name!==_&&o(x,"name",_),x.constructor=E}catch(e){}return E}}},93074:function(e,t,n){"use strict";var r=n(94488),a=n(65911),o=n(13743),i=n(3338),u=n(78540),c="AggregateError",s=a(c),l=!i((function(){return 1!==s([1]).errors[0]}))&&i((function(){return 7!==s([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:u(c,(function(e){return function(t,n){return o(e,this,arguments)}}),l,!0)})},6555:function(e,t,n){"use strict";var r=n(94488),a=n(16332),o=n(53456),i=n(58218),u=n(24538),c=n(20132),s=n(68151),l=n(35012),f=n(73068),p=n(61888),d=n(62003),h=n(7825),v=n(59893)("toStringTag"),m=Error,y=[].push,g=function(e,t){var n,r=a(b,this);i?n=i(new m,r?o(this):b):(n=r?this:c(b),s(n,v,"Error")),void 0!==t&&s(n,"message",h(t)),p(n,g,n.stack,1),arguments.length>2&&f(n,arguments[2]);var u=[];return d(e,y,{that:u}),s(n,"errors",u),n};i?i(g,m):u(g,m,{name:!0});var b=g.prototype=c(m.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:g})},86357:function(e,t,n){"use strict";n(6555)},89170:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(91669),i=n(51996),u="ArrayBuffer",c=o[u];r({global:!0,constructor:!0,forced:a[u]!==c},{ArrayBuffer:c}),i(u)},84203:function(e,t,n){"use strict";var r=n(94488),a=n(34114),o=n(3338),i=n(91669),u=n(80449),c=n(51981),s=n(61578),l=n(60473),f=i.ArrayBuffer,p=i.DataView,d=p.prototype,h=a(f.prototype.slice),v=a(d.getUint8),m=a(d.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(h&&void 0===t)return h(u(this),e);for(var n=u(this).byteLength,r=c(e,n),a=c(void 0===t?n:t,n),o=new(l(this,f))(s(a-r)),i=new p(this),d=new p(o),y=0;r=0?r:n+r;return u<0||u>=n?void 0:t[u]}}),u("at")},2924:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(18589),i=n(31946),u=n(94029),c=n(82762),s=n(66434),l=n(69392),f=n(81427),p=n(17480),d=n(59893),h=n(46573),v=d("isConcatSpreadable"),m=h>=51||!a((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),y=function(e){if(!i(e))return!1;var t=e[v];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,arity:1,forced:!m||!p("concat")},{concat:function(e){var t,n,r,a,o,i=u(this),p=f(i,0),d=0;for(t=-1,r=arguments.length;t1?arguments[1]:void 0)}})},70365:function(e,t,n){"use strict";var r=n(94488),a=n(90560).findIndex,o=n(81181),i="findIndex",u=!0;i in[]&&Array(1)[i]((function(){u=!1})),r({target:"Array",proto:!0,forced:u},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o(i)},17482:function(e,t,n){"use strict";var r=n(94488),a=n(53279).findLastIndex,o=n(81181);r({target:"Array",proto:!0},{findLastIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLastIndex")},33717:function(e,t,n){"use strict";var r=n(94488),a=n(53279).findLast,o=n(81181);r({target:"Array",proto:!0},{findLast:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},11553:function(e,t,n){"use strict";var r=n(94488),a=n(90560).find,o=n(81181),i="find",u=!0;i in[]&&Array(1)[i]((function(){u=!1})),r({target:"Array",proto:!0,forced:u},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o(i)},65033:function(e,t,n){"use strict";var r=n(94488),a=n(3372),o=n(63335),i=n(94029),u=n(82762),c=n(81427);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),r=u(n);return o(e),(t=c(n,0)).length=a(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},23708:function(e,t,n){"use strict";var r=n(94488),a=n(3372),o=n(94029),i=n(82762),u=n(56902),c=n(81427);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),n=i(t),r=c(t,0);return r.length=a(r,t,t,n,0,void 0===e?1:u(e)),r}})},99382:function(e,t,n){"use strict";var r=n(94488),a=n(60255);r({target:"Array",stat:!0,forced:!n(35221)((function(e){Array.from(e)}))},{from:a})},88437:function(e,t,n){"use strict";var r=n(94488),a=n(22999).includes,o=n(3338),i=n(81181);r({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},11005:function(e,t,n){"use strict";var r=n(80524),a=n(81181),o=n(48074),i=n(94844),u=n(37691).f,c=n(24019),s=n(25587),l=n(16697),f=n(35454),p="Array Iterator",d=i.set,h=i.getterFor(p);e.exports=c(Array,"Array",(function(e,t){d(this,{type:p,target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,s(void 0,!0);switch(e.kind){case"keys":return s(n,!1);case"values":return s(t[n],!1)}return s([n,t[n]],!1)}),"values");var v=o.Arguments=o.Array;if(a("keys"),a("values"),a("entries"),!l&&f&&"values"!==v.name)try{u(v,"name",{value:"values"})}catch(e){}},70348:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(1835),i=n(80524),u=n(45601),c=a([].join);r({target:"Array",proto:!0,forced:o!==Object||!u("join",",")},{join:function(e){return c(i(this),void 0===e?",":e)}})},91550:function(e,t,n){"use strict";var r=n(94488),a=n(90560).map;r({target:"Array",proto:!0,forced:!n(17480)("map")},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},85223:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(39812),i=n(69392),u=Array;r({target:"Array",stat:!0,forced:a((function(){function e(){}return!(u.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new(o(this)?this:u)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},7154:function(e,t,n){"use strict";var r=n(94488),a=n(94029),o=n(82762),i=n(39428),u=n(66434);r({target:"Array",proto:!0,arity:1,forced:n(3338)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=a(this),n=o(t),r=arguments.length;u(n+r);for(var c=0;c79&&i<83||!o("reduceRight")},{reduceRight:function(e){return a(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},67788:function(e,t,n){"use strict";var r=n(94488),a=n(16370).left,o=n(45601),i=n(46573);r({target:"Array",proto:!0,forced:!n(90946)&&i>79&&i<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return a(this,e,t,t>1?arguments[1]:void 0)}})},9402:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(18589),i=a([].reverse),u=[1,2];r({target:"Array",proto:!0,forced:String(u)===String(u.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i(this)}})},62489:function(e,t,n){"use strict";var r=n(94488),a=n(18589),o=n(39812),i=n(31946),u=n(51981),c=n(82762),s=n(80524),l=n(69392),f=n(59893),p=n(17480),d=n(30867),h=p("slice"),v=f("species"),m=Array,y=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,f,p=s(this),h=c(p),g=u(e,h),b=u(void 0===t?h:t,h);if(a(p)&&(n=p.constructor,(o(n)&&(n===m||a(n.prototype))||i(n)&&null===(n=n[v]))&&(n=void 0),n===m||void 0===n))return d(p,g,b);for(r=new(void 0===n?m:n)(y(b-g,0)),f=0;g3)){if(h)return!0;if(m)return m<603;var e,t,n,r,a="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:t+r,v:n})}for(y.sort((function(e,t){return t.v-e.v})),r=0;rs(n)?1:-1}}(e)),n=u(a),r=0;r_-r+n;m--)p(b,m-1)}else if(n>r)for(m=_-r;m>w;m--)g=m+n-1,(y=m+r-1)in b?b[g]=b[y]:p(b,g);for(m=0;m94906265.62425156?i(t)+c:a(t-1+u(t-1)*u(t+1))}})},85660:function(e,t,n){"use strict";var r=n(94488),a=Math.asinh,o=Math.log,i=Math.sqrt;r({target:"Math",stat:!0,forced:!(a&&1/a(0)>0)},{asinh:function e(t){var n=+t;return isFinite(n)&&0!==n?n<0?-e(-n):o(n+i(n*n+1)):n}})},80031:function(e,t,n){"use strict";var r=n(94488),a=Math.atanh,o=Math.log;r({target:"Math",stat:!0,forced:!(a&&1/a(-0)<0)},{atanh:function(e){var t=+e;return 0===t?t:o((1+t)/(1-t))/2}})},34434:function(e,t,n){"use strict";var r=n(94488),a=n(37666),o=Math.abs,i=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return a(t)*i(o(t),1/3)}})},83579:function(e,t,n){"use strict";var r=n(94488),a=Math.floor,o=Math.log,i=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-a(o(t+.5)*i):32}})},74307:function(e,t,n){"use strict";var r=n(94488),a=n(10014),o=Math.cosh,i=Math.abs,u=Math.E;r({target:"Math",stat:!0,forced:!o||o(710)===1/0},{cosh:function(e){var t=a(i(e)-1)+1;return(t+1/(t*u*u))*(u/2)}})},97423:function(e,t,n){"use strict";var r=n(94488),a=n(10014);r({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},93321:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0},{fround:n(14894)})},82277:function(e,t,n){"use strict";var r=n(94488),a=Math.hypot,o=Math.abs,i=Math.sqrt;r({target:"Math",stat:!0,arity:2,forced:!!a&&a(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,a=0,u=0,c=arguments.length,s=0;u0?(r=n/s)*r:n;return s===1/0?1/0:s*i(a)}})},61425:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=Math.imul;r({target:"Math",stat:!0,forced:a((function(){return-5!==o(4294967295,5)||2!==o.length}))},{imul:function(e,t){var n=65535,r=+e,a=+t,o=n&r,i=n&a;return 0|o*i+((n&r>>>16)*i+o*(n&a>>>16)<<16>>>0)}})},61873:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0},{log10:n(53309)})},9307:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0},{log1p:n(25726)})},8821:function(e,t,n){"use strict";var r=n(94488),a=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return a(e)/o}})},64385:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0},{sign:n(37666)})},64099:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(10014),i=Math.abs,u=Math.exp,c=Math.E;r({target:"Math",stat:!0,forced:a((function(){return-2e-17!==Math.sinh(-2e-17)}))},{sinh:function(e){var t=+e;return i(t)<1?(o(t)-o(-t))/2:(u(t-1)-u(-t-1))*(c/2)}})},62455:function(e,t,n){"use strict";var r=n(94488),a=n(10014),o=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=+e,n=a(t),r=a(-t);return n===1/0?1:r===1/0?-1:(n-r)/(o(t)+o(-t))}})},79965:function(e,t,n){"use strict";n(94573)(Math,"Math",!0)},59118:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0},{trunc:n(3312)})},275:function(e,t,n){"use strict";var r=n(94488),a=n(16697),o=n(35454),i=n(92916),u=n(9699),c=n(94237),s=n(20865),l=n(32621),f=n(25576),p=n(16332),d=n(18446),h=n(97954),v=n(3338),m=n(80689).f,y=n(71256).f,g=n(37691).f,b=n(49228),_=n(52971).trim,w="Number",x=i[w],k=u[w],E=x.prototype,S=i.TypeError,C=c("".slice),P=c("".charCodeAt),O=function(e){var t=h(e,"number");return"bigint"==typeof t?t:j(t)},j=function(e){var t,n,r,a,o,i,u,c,s=h(e,"number");if(d(s))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=_(s),43===(t=P(s,0))||45===t){if(88===(n=P(s,2))||120===n)return NaN}else if(48===t){switch(P(s,1)){case 66:case 98:r=2,a=49;break;case 79:case 111:r=8,a=55;break;default:return+s}for(i=(o=C(s,2)).length,u=0;ua)return NaN;return parseInt(o,r)}return+s},A=s(w,!x(" 0o1")||!x("0b1")||x("+0x1")),T=function(e){return p(E,e)&&v((function(){b(e)}))},I=function(e){var t=arguments.length<1?0:x(O(e));return T(this)?f(Object(t),this,I):t};I.prototype=E,A&&!a&&(E.constructor=I),r({global:!0,constructor:!0,wrap:!0,forced:A},{Number:I});var M=function(e,t){for(var n,r=o?m(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),a=0;r.length>a;a++)l(t,n=r[a])&&!l(e,n)&&g(e,n,y(t,n))};a&&k&&M(u[w],k),(A||a)&&M(u[w],x)},31919:function(e,t,n){"use strict";n(94488)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},51284:function(e,t,n){"use strict";n(94488)({target:"Number",stat:!0},{isFinite:n(1222)})},10177:function(e,t,n){"use strict";n(94488)({target:"Number",stat:!0},{isInteger:n(62896)})},85690:function(e,t,n){"use strict";n(94488)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},92114:function(e,t,n){"use strict";var r=n(94488),a=n(62896),o=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return a(e)&&o(e)<=9007199254740991}})},1017:function(e,t,n){"use strict";n(94488)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},14480:function(e,t,n){"use strict";n(94488)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},40516:function(e,t,n){"use strict";var r=n(94488),a=n(31280);r({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},76345:function(e,t,n){"use strict";var r=n(94488),a=n(52446);r({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},7282:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(56902),i=n(49228),u=n(71049),c=n(53309),s=n(3338),l=RangeError,f=String,p=isFinite,d=Math.abs,h=Math.floor,v=Math.pow,m=Math.round,y=a(1..toExponential),g=a(u),b=a("".slice),_="-6.9000e-11"===y(-69e-12,4)&&"1.25e+0"===y(1.255,2)&&"1.235e+4"===y(12345,3)&&"3e+1"===y(25,0);r({target:"Number",proto:!0,forced:!_||!(s((function(){y(1,1/0)}))&&s((function(){y(1,-1/0)})))||!!s((function(){y(1/0,1/0),y(NaN,1/0)}))},{toExponential:function(e){var t=i(this);if(void 0===e)return y(t);var n=o(e);if(!p(t))return String(t);if(n<0||n>20)throw new l("Incorrect fraction digits");if(_)return y(t,n);var r="",a="",u=0,s="",w="";if(t<0&&(r="-",t=-t),0===t)u=0,a=g("0",n+1);else{var x=c(t);u=h(x);var k=0,E=v(10,u-n);2*t>=(2*(k=m(t/E))+1)*E&&(k+=1),k>=v(10,n+1)&&(k/=10,u+=1),a=f(k)}return 0!==n&&(a=b(a,0,1)+"."+b(a,1)),0===u?(s="+",w="0"):(s=u>0?"+":"-",w=f(d(u))),r+(a+="e"+s+w)}})},58055:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(56902),i=n(49228),u=n(71049),c=n(3338),s=RangeError,l=String,f=Math.floor,p=a(u),d=a("".slice),h=a(1..toFixed),v=function(e,t,n){return 0===t?n:t%2==1?v(e,t-1,n*e):v(e*e,t/2,n)},m=function(e,t,n){for(var r=-1,a=n;++r<6;)a+=t*e[r],e[r]=a%1e7,a=f(a/1e7)},y=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=f(r/t),r=r%t*1e7},g=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=l(e[t]);n=""===n?r:n+p("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:c((function(){return"0.000"!==h(8e-5,3)||"1"!==h(.9,0)||"1.25"!==h(1.255,2)||"1000000000000000128"!==h(0xde0b6b3a7640080,0)}))||!c((function(){h({})}))},{toFixed:function(e){var t,n,r,a,u=i(this),c=o(e),f=[0,0,0,0,0,0],h="",b="0";if(c<0||c>20)throw new s("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return l(u);if(u<0&&(h="-",u=-u),u>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*v(2,69,1))-69)<0?u*v(2,-t,1):u/v(2,t,1),n*=4503599627370496,(t=52-t)>0){for(m(f,0,n),r=c;r>=7;)m(f,1e7,0),r-=7;for(m(f,v(10,r,1),0),r=t-1;r>=23;)y(f,1<<23),r-=23;y(f,1<0?h+((a=b.length)<=c?"0."+p("0",c-a)+b:d(b,0,a-c)+"."+d(b,a-c)):h+b}})},31237:function(e,t,n){"use strict";var r=n(94488),a=n(80530);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},58580:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(25837),i=n(63335),u=n(94029),c=n(37691);a&&r({target:"Object",proto:!0,forced:o},{__defineGetter__:function(e,t){c.f(u(this),e,{get:i(t),enumerable:!0,configurable:!0})}})},7615:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(25837),i=n(63335),u=n(94029),c=n(37691);a&&r({target:"Object",proto:!0,forced:o},{__defineSetter__:function(e,t){c.f(u(this),e,{set:i(t),enumerable:!0,configurable:!0})}})},72820:function(e,t,n){"use strict";var r=n(94488),a=n(88698).entries;r({target:"Object",stat:!0},{entries:function(e){return a(e)}})},86070:function(e,t,n){"use strict";var r=n(94488),a=n(13247),o=n(3338),i=n(31946),u=n(2074).onFreeze,c=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){c(1)})),sham:!a},{freeze:function(e){return c&&i(e)?c(u(e)):e}})},23569:function(e,t,n){"use strict";var r=n(94488),a=n(62003),o=n(69392);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return a(e,(function(e,n){o(t,e,n)}),{AS_ENTRIES:!0}),t}})},55639:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(80524),i=n(71256).f,u=n(35454);r({target:"Object",stat:!0,forced:!u||a((function(){i(1)})),sham:!u},{getOwnPropertyDescriptor:function(e,t){return i(o(e),t)}})},63046:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(48662),i=n(80524),u=n(71256),c=n(69392);r({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),a=u.f,s=o(r),l={},f=0;s.length>f;)void 0!==(n=a(r,t=s[f++]))&&c(l,t,n);return l}})},464:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(53393).f;r({target:"Object",stat:!0,forced:a((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},67936:function(e,t,n){"use strict";var r=n(94488),a=n(42820),o=n(3338),i=n(92635),u=n(94029);r({target:"Object",stat:!0,forced:!a||o((function(){i.f(1)}))},{getOwnPropertySymbols:function(e){var t=i.f;return t?t(u(e)):[]}})},51082:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(94029),i=n(53456),u=n(4870);r({target:"Object",stat:!0,forced:a((function(){i(1)})),sham:!u},{getPrototypeOf:function(e){return i(o(e))}})},83850:function(e,t,n){"use strict";var r=n(94488),a=n(65911),o=n(94237),i=n(63335),u=n(95955),c=n(17818),s=n(62003),l=a("Object","create"),f=o([].push);r({target:"Object",stat:!0},{groupBy:function(e,t){u(e),i(t);var n=l(null),r=0;return s(e,(function(e){var a=c(t(e,r++));a in n?f(n[a],e):n[a]=[e]})),n}})},41990:function(e,t,n){"use strict";n(94488)({target:"Object",stat:!0},{hasOwn:n(32621)})},55888:function(e,t,n){"use strict";var r=n(94488),a=n(12477);r({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},53827:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(31946),i=n(29076),u=n(51424),c=Object.isFrozen;r({target:"Object",stat:!0,forced:u||a((function(){c(1)}))},{isFrozen:function(e){return!o(e)||(!(!u||"ArrayBuffer"!==i(e))||!!c&&c(e))}})},78143:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(31946),i=n(29076),u=n(51424),c=Object.isSealed;r({target:"Object",stat:!0,forced:u||a((function(){c(1)}))},{isSealed:function(e){return!o(e)||(!(!u||"ArrayBuffer"!==i(e))||!!c&&c(e))}})},15787:function(e,t,n){"use strict";n(94488)({target:"Object",stat:!0},{is:n(5370)})},66419:function(e,t,n){"use strict";var r=n(94488),a=n(94029),o=n(7733);r({target:"Object",stat:!0,forced:n(3338)((function(){o(1)}))},{keys:function(e){return o(a(e))}})},75765:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(25837),i=n(94029),u=n(17818),c=n(53456),s=n(71256).f;a&&r({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(e){var t,n=i(this),r=u(e);do{if(t=s(n,r))return t.get}while(n=c(n))}})},14645:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(25837),i=n(94029),u=n(17818),c=n(53456),s=n(71256).f;a&&r({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(e){var t,n=i(this),r=u(e);do{if(t=s(n,r))return t.set}while(n=c(n))}})},71122:function(e,t,n){"use strict";var r=n(94488),a=n(31946),o=n(2074).onFreeze,i=n(13247),u=n(3338),c=Object.preventExtensions;r({target:"Object",stat:!0,forced:u((function(){c(1)})),sham:!i},{preventExtensions:function(e){return c&&a(e)?c(o(e)):e}})},25070:function(e,t,n){"use strict";var r=n(94488),a=n(31946),o=n(2074).onFreeze,i=n(13247),u=n(3338),c=Object.seal;r({target:"Object",stat:!0,forced:u((function(){c(1)})),sham:!i},{seal:function(e){return c&&a(e)?c(o(e)):e}})},15954:function(e,t,n){"use strict";var r=n(68527),a=n(2291),o=n(28488);r||a(Object.prototype,"toString",o,{unsafe:!0})},4266:function(e,t,n){"use strict";var r=n(94488),a=n(88698).values;r({target:"Object",stat:!0},{values:function(e){return a(e)}})},49988:function(e,t,n){"use strict";var r=n(94488),a=n(31280);r({global:!0,forced:parseFloat!==a},{parseFloat:a})},38823:function(e,t,n){"use strict";var r=n(94488),a=n(52446);r({global:!0,forced:parseInt!==a},{parseInt:a})},4045:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(63335),i=n(73446),u=n(80734),c=n(62003);r({target:"Promise",stat:!0,forced:n(22093)},{allSettled:function(e){var t=this,n=i.f(t),r=n.resolve,s=n.reject,l=u((function(){var n=o(t.resolve),i=[],u=0,s=1;c(e,(function(e){var o=u++,c=!1;s++,a(n,t,e).then((function(e){c||(c=!0,i[o]={status:"fulfilled",value:e},--s||r(i))}),(function(e){c||(c=!0,i[o]={status:"rejected",reason:e},--s||r(i))}))})),--s||r(i)}));return l.error&&s(l.value),n.promise}})},12785:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(63335),i=n(73446),u=n(80734),c=n(62003);r({target:"Promise",stat:!0,forced:n(22093)},{all:function(e){var t=this,n=i.f(t),r=n.resolve,s=n.reject,l=u((function(){var n=o(t.resolve),i=[],u=0,l=1;c(e,(function(e){var o=u++,c=!1;l++,a(n,t,e).then((function(e){c||(c=!0,i[o]=e,--l||r(i))}),s)})),--l||r(i)}));return l.error&&s(l.value),n.promise}})},50747:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(63335),i=n(65911),u=n(73446),c=n(80734),s=n(62003),l=n(22093),f="No one promise resolved";r({target:"Promise",stat:!0,forced:l},{any:function(e){var t=this,n=i("AggregateError"),r=u.f(t),l=r.resolve,p=r.reject,d=c((function(){var r=o(t.resolve),i=[],u=0,c=1,d=!1;s(e,(function(e){var o=u++,s=!1;c++,a(r,t,e).then((function(e){s||d||(d=!0,l(e))}),(function(e){s||d||(s=!0,i[o]=e,--c||p(new n(i,f)))}))})),--c||p(new n(i,f))}));return d.error&&p(d.value),r.promise}})},41902:function(e,t,n){"use strict";var r=n(94488),a=n(16697),o=n(82830).CONSTRUCTOR,i=n(2451),u=n(65911),c=n(55327),s=n(2291),l=i&&i.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!a&&c(i)){var f=u("Promise").prototype.catch;l.catch!==f&&s(l,"catch",f,{unsafe:!0})}},90366:function(e,t,n){"use strict";var r,a,o,i=n(94488),u=n(16697),c=n(90946),s=n(92916),l=n(89945),f=n(2291),p=n(58218),d=n(94573),h=n(51996),v=n(63335),m=n(55327),y=n(31946),g=n(56472),b=n(60473),_=n(28887).set,w=n(72933),x=n(61810),k=n(80734),E=n(66790),S=n(94844),C=n(2451),P=n(82830),O=n(73446),j="Promise",A=P.CONSTRUCTOR,T=P.REJECTION_EVENT,I=P.SUBCLASSING,M=S.getterFor(j),R=S.set,L=C&&C.prototype,Z=C,D=L,N=s.TypeError,$=s.document,F=s.process,B=O.f,q=B,z=!!($&&$.createEvent&&s.dispatchEvent),H="unhandledrejection",U=function(e){var t;return!(!y(e)||!m(t=e.then))&&t},W=function(e,t){var n,r,a,o=t.value,i=1===t.state,u=i?e.ok:e.fail,c=e.resolve,s=e.reject,f=e.domain;try{u?(i||(2===t.rejection&&X(t),t.rejection=1),!0===u?n=o:(f&&f.enter(),n=u(o),f&&(f.exit(),a=!0)),n===e.promise?s(new N("Promise-chain cycle")):(r=U(n))?l(r,n,c,s):c(n)):s(o)}catch(e){f&&!a&&f.exit(),s(e)}},V=function(e,t){e.notified||(e.notified=!0,w((function(){for(var n,r=e.reactions;n=r.get();)W(n,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},G=function(e,t,n){var r,a;z?((r=$.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s.dispatchEvent(r)):r={promise:t,reason:n},!T&&(a=s["on"+e])?a(r):e===H&&x("Unhandled promise rejection",n)},Y=function(e){l(_,s,(function(){var t,n=e.facade,r=e.value;if(K(e)&&(t=k((function(){c?F.emit("unhandledRejection",r,n):G(H,n,r)})),e.rejection=c||K(e)?2:1,t.error))throw t.value}))},K=function(e){return 1!==e.rejection&&!e.parent},X=function(e){l(_,s,(function(){var t=e.facade;c?F.emit("rejectionHandled",t):G("rejectionhandled",t,e.value)}))},Q=function(e,t,n){return function(r){e(t,r,n)}},J=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,V(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new N("Promise can't be resolved itself");var r=U(t);r?w((function(){var n={done:!1};try{l(r,t,Q(ee,n,e),Q(J,n,e))}catch(t){J(n,t,e)}})):(e.value=t,e.state=1,V(e,!1))}catch(t){J({done:!1},t,e)}}};if(A&&(D=(Z=function(e){g(this,D),v(e),l(r,this);var t=M(this);try{e(Q(ee,t),Q(J,t))}catch(e){J(t,e)}}).prototype,(r=function(e){R(this,{type:j,done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:0,value:void 0})}).prototype=f(D,"then",(function(e,t){var n=M(this),r=B(b(this,Z));return n.parent=!0,r.ok=!m(e)||e,r.fail=m(t)&&t,r.domain=c?F.domain:void 0,0===n.state?n.reactions.add(r):w((function(){W(r,n)})),r.promise})),a=function(){var e=new r,t=M(e);this.promise=e,this.resolve=Q(ee,t),this.reject=Q(J,t)},O.f=B=function(e){return e===Z||undefined===e?new a(e):q(e)},!u&&m(C)&&L!==Object.prototype)){o=L.then,I||f(L,"then",(function(e,t){var n=this;return new Z((function(e,t){l(o,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete L.constructor}catch(e){}p&&p(L,D)}i({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:Z}),d(Z,j,!1,!0),h(j)},43595:function(e,t,n){"use strict";var r=n(94488),a=n(16697),o=n(2451),i=n(3338),u=n(65911),c=n(55327),s=n(60473),l=n(15597),f=n(2291),p=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&i((function(){p.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=s(this,u("Promise")),n=c(e);return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),!a&&c(o)){var d=u("Promise").prototype.finally;p.finally!==d&&f(p,"finally",d,{unsafe:!0})}},24627:function(e,t,n){"use strict";n(90366),n(12785),n(41902),n(20733),n(95693),n(81930)},20733:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(63335),i=n(73446),u=n(80734),c=n(62003);r({target:"Promise",stat:!0,forced:n(22093)},{race:function(e){var t=this,n=i.f(t),r=n.reject,s=u((function(){var i=o(t.resolve);c(e,(function(e){a(i,t,e).then(n.resolve,r)}))}));return s.error&&r(s.value),n.promise}})},95693:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(73446);r({target:"Promise",stat:!0,forced:n(82830).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return a(t.reject,void 0,e),t.promise}})},81930:function(e,t,n){"use strict";var r=n(94488),a=n(65911),o=n(16697),i=n(2451),u=n(82830).CONSTRUCTOR,c=n(15597),s=a("Promise"),l=o&&!u;r({target:"Promise",stat:!0,forced:o||u},{resolve:function(e){return c(l&&this===s?i:this,e)}})},92324:function(e,t,n){"use strict";var r=n(94488),a=n(73446);r({target:"Promise",stat:!0},{withResolvers:function(){var e=a.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},23551:function(e,t,n){"use strict";var r=n(94488),a=n(13743),o=n(63335),i=n(80449);r({target:"Reflect",stat:!0,forced:!n(3338)((function(){Reflect.apply((function(){}))}))},{apply:function(e,t,n){return a(o(e),t,i(n))}})},74521:function(e,t,n){"use strict";var r=n(94488),a=n(65911),o=n(13743),i=n(4645),u=n(6086),c=n(80449),s=n(31946),l=n(20132),f=n(3338),p=a("Reflect","construct"),d=Object.prototype,h=[].push,v=f((function(){function e(){}return!(p((function(){}),[],e)instanceof e)})),m=!f((function(){p((function(){}))})),y=v||m;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(e,t){u(e),c(t);var n=arguments.length<3?e:u(arguments[2]);if(m&&!v)return p(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return o(h,r,t),new(o(i,e,r))}var a=n.prototype,f=l(s(a)?a:d),y=o(e,f,t);return s(y)?y:f}})},57891:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(80449),i=n(17818),u=n(37691);r({target:"Reflect",stat:!0,forced:n(3338)((function(){Reflect.defineProperty(u.f({},1,{value:1}),1,{value:2})})),sham:!a},{defineProperty:function(e,t,n){o(e);var r=i(t);o(n);try{return u.f(e,r,n),!0}catch(e){return!1}}})},84138:function(e,t,n){"use strict";var r=n(94488),a=n(80449),o=n(71256).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=o(a(e),t);return!(n&&!n.configurable)&&delete e[t]}})},37135:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(80449),i=n(71256);r({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(e,t){return i.f(o(e),t)}})},6474:function(e,t,n){"use strict";var r=n(94488),a=n(80449),o=n(53456);r({target:"Reflect",stat:!0,sham:!n(4870)},{getPrototypeOf:function(e){return o(a(e))}})},51832:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(31946),i=n(80449),u=n(60516),c=n(71256),s=n(53456);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,l,f=arguments.length<3?t:arguments[2];return i(t)===f?t[n]:(r=c.f(t,n))?u(r)?r.value:void 0===r.get?void 0:a(r.get,f):o(l=s(t))?e(l,n,f):void 0}})},40135:function(e,t,n){"use strict";n(94488)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},7982:function(e,t,n){"use strict";var r=n(94488),a=n(80449),o=n(12477);r({target:"Reflect",stat:!0},{isExtensible:function(e){return a(e),o(e)}})},14893:function(e,t,n){"use strict";n(94488)({target:"Reflect",stat:!0},{ownKeys:n(48662)})},49233:function(e,t,n){"use strict";var r=n(94488),a=n(65911),o=n(80449);r({target:"Reflect",stat:!0,sham:!n(13247)},{preventExtensions:function(e){o(e);try{var t=a("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},42844:function(e,t,n){"use strict";var r=n(94488),a=n(80449),o=n(557),i=n(58218);i&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){a(e),o(t);try{return i(e,t),!0}catch(e){return!1}}})},92130:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(80449),i=n(31946),u=n(60516),c=n(3338),s=n(37691),l=n(71256),f=n(53456),p=n(35012);r({target:"Reflect",stat:!0,forced:c((function(){var e=function(){},t=s.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}))},{set:function e(t,n,r){var c,d,h,v=arguments.length<4?t:arguments[3],m=l.f(o(t),n);if(!m){if(i(d=f(t)))return e(d,n,r,v);m=p(0)}if(u(m)){if(!1===m.writable||!i(v))return!1;if(c=l.f(v,n)){if(c.get||c.set||!1===c.writable)return!1;c.value=r,s.f(v,n,c)}else s.f(v,n,p(0,r))}else{if(void 0===(h=m.set))return!1;a(h,v,r)}return!0}})},6536:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(94573);r({global:!0},{Reflect:{}}),o(a.Reflect,"Reflect",!0)},27228:function(e,t,n){"use strict";var r=n(35454),a=n(92916),o=n(94237),i=n(20865),u=n(25576),c=n(68151),s=n(20132),l=n(80689).f,f=n(16332),p=n(44639),d=n(69905),h=n(81644),v=n(19286),m=n(44166),y=n(2291),g=n(3338),b=n(32621),_=n(94844).enforce,w=n(51996),x=n(59893),k=n(6041),E=n(51224),S=x("match"),C=a.RegExp,P=C.prototype,O=a.SyntaxError,j=o(P.exec),A=o("".charAt),T=o("".replace),I=o("".indexOf),M=o("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,Z=/a/g,D=new C(L)!==L,N=v.MISSED_STICKY,$=v.UNSUPPORTED_Y,F=r&&(!D||N||k||E||g((function(){return Z[S]=!1,C(L)!==L||C(Z)===Z||"/a/i"!==String(C(L,"i"))})));if(i("RegExp",F)){for(var B=function(e,t){var n,r,a,o,i,l,v=f(P,this),m=p(e),y=void 0===t,g=[],w=e;if(!v&&m&&y&&e.constructor===B)return e;if((m||f(P,e))&&(e=e.source,y&&(t=h(w))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),w=e,k&&"dotAll"in L&&(r=!!t&&I(t,"s")>-1)&&(t=T(t,/s/g,"")),n=t,N&&"sticky"in L&&(a=!!t&&I(t,"y")>-1)&&$&&(t=T(t,/y/g,"")),E&&(o=function(e){for(var t,n=e.length,r=0,a="",o=[],i=s(null),u=!1,c=!1,l=0,f="";r<=n;r++){if("\\"===(t=A(e,r)))t+=A(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:j(R,M(e,r+1))&&(r+=2,c=!0),a+=t,l++;continue;case">"===t&&c:if(""===f||b(i,f))throw new O("Invalid capture group name");i[f]=!0,o[o.length]=[f,l],c=!1,f="";continue}c?f+=t:a+=t}return[a,o]}(e),e=o[0],g=o[1]),i=u(C(e,t),v?this:P,B),(r||a||g.length)&&(l=_(i),r&&(l.dotAll=!0,l.raw=B(function(e){for(var t,n=e.length,r=0,a="",o=!1;r<=n;r++)"\\"!==(t=A(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),a+=t):a+="[\\s\\S]":a+=t+A(e,++r);return a}(e),n)),a&&(l.sticky=!0),g.length&&(l.groups=g)),e!==w)try{c(i,"source",""===w?"(?:)":w)}catch(e){}return i},q=l(C),z=0;q.length>z;)m(B,C,q[z++]);P.constructor=B,B.prototype=P,y(a,"RegExp",B,{constructor:!0})}w("RegExp")},62921:function(e,t,n){"use strict";var r=n(35454),a=n(6041),o=n(29076),i=n(64110),u=n(94844).get,c=RegExp.prototype,s=TypeError;r&&a&&i(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!u(this).dotAll;throw new s("Incompatible receiver, RegExp required")}}})},44001:function(e,t,n){"use strict";var r=n(94488),a=n(88736);r({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},92262:function(e,t,n){"use strict";var r=n(92916),a=n(35454),o=n(64110),i=n(82163),u=n(3338),c=r.RegExp,s=c.prototype;a&&u((function(){var e=!0;try{c(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",a=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(o.hasIndices="d"),o)a(i,o[i]);return Object.getOwnPropertyDescriptor(s,"flags").get.call(t)!==r||n!==r}))&&o(s,"flags",{configurable:!0,get:i})},54744:function(e,t,n){"use strict";var r=n(35454),a=n(19286).MISSED_STICKY,o=n(29076),i=n(64110),u=n(94844).get,c=RegExp.prototype,s=TypeError;r&&a&&i(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!u(this).sticky;throw new s("Incompatible receiver, RegExp required")}}})},38214:function(e,t,n){"use strict";n(44001);var r,a,o=n(94488),i=n(89945),u=n(55327),c=n(80449),s=n(69905),l=(r=!1,(a=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===a.test("abc")&&r),f=/./.test;o({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=c(this),n=s(e),r=t.exec;if(!u(r))return i(f,t,n);var a=i(r,t,n);return null!==a&&(c(a),!0)}})},12756:function(e,t,n){"use strict";var r=n(8090).PROPER,a=n(2291),o=n(80449),i=n(69905),u=n(3338),c=n(81644),s="toString",l=RegExp.prototype[s],f=u((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),p=r&&l.name!==s;(f||p)&&a(RegExp.prototype,s,(function(){var e=o(this);return"/"+i(e.source)+"/"+i(c(e))}),{unsafe:!0})},69772:function(e,t,n){"use strict";n(48059)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(40942))},93379:function(e,t,n){"use strict";n(69772)},34932:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("anchor")},{anchor:function(e){return a(this,"a","name",e)}})},62007:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(95955),i=n(56902),u=n(69905),c=n(3338),s=a("".charAt);r({target:"String",proto:!0,forced:c((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(e){var t=u(o(this)),n=t.length,r=i(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:s(t,a)}})},81046:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("big")},{big:function(){return a(this,"big","","")}})},85744:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("blink")},{blink:function(){return a(this,"blink","","")}})},13494:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("bold")},{bold:function(){return a(this,"b","","")}})},90572:function(e,t,n){"use strict";var r=n(94488),a=n(13764).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return a(this,e)}})},37343:function(e,t,n){"use strict";var r,a=n(94488),o=n(34114),i=n(71256).f,u=n(61578),c=n(69905),s=n(41696),l=n(95955),f=n(86266),p=n(16697),d=o("".endsWith),h=o("".slice),v=Math.min,m=f("endsWith");a({target:"String",proto:!0,forced:!!(p||m||(r=i(String.prototype,"endsWith"),!r||r.writable))&&!m},{endsWith:function(e){var t=c(l(this));s(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,a=void 0===n?r:v(u(n),r),o=c(e);return d?d(t,o,a):h(t,a-o.length,a)===o}})},56338:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("fixed")},{fixed:function(){return a(this,"tt","","")}})},66755:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("fontcolor")},{fontcolor:function(e){return a(this,"font","color",e)}})},68709:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("fontsize")},{fontsize:function(e){return a(this,"font","size",e)}})},45945:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(51981),i=RangeError,u=String.fromCharCode,c=String.fromCodePoint,s=a([].join);r({target:"String",stat:!0,arity:1,forced:!!c&&1!==c.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw new i(t+" is not a valid code point");n[a]=t<65536?u(t):u(55296+((t-=65536)>>10),t%1024+56320)}return s(n,"")}})},75551:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(41696),i=n(95955),u=n(69905),c=n(86266),s=a("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~s(u(i(this)),u(o(e)),arguments.length>1?arguments[1]:void 0)}})},32493:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(95955),i=n(69905),u=a("".charCodeAt);r({target:"String",proto:!0},{isWellFormed:function(){for(var e=i(o(this)),t=e.length,n=0;n=56320||++n>=t||56320!=(64512&u(e,n))))return!1}return!0}})},4939:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("italics")},{italics:function(){return a(this,"i","","")}})},20852:function(e,t,n){"use strict";var r=n(13764).charAt,a=n(69905),o=n(94844),i=n(24019),u=n(25587),c="String Iterator",s=o.set,l=o.getterFor(c);i(String,"String",(function(e){s(this,{type:c,string:a(e),index:0})}),(function(){var e,t=l(this),n=t.string,a=t.index;return a>=n.length?u(void 0,!0):(e=r(n,a),t.index+=e.length,u(e,!1))}))},81927:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("link")},{link:function(e){return a(this,"a","href",e)}})},18827:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(34114),i=n(83126),u=n(25587),c=n(95955),s=n(61578),l=n(69905),f=n(80449),p=n(4112),d=n(29076),h=n(44639),v=n(81644),m=n(53776),y=n(2291),g=n(3338),b=n(59893),_=n(60473),w=n(52216),x=n(94338),k=n(94844),E=n(16697),S=b("matchAll"),C="RegExp String",P=C+" Iterator",O=k.set,j=k.getterFor(P),A=RegExp.prototype,T=TypeError,I=o("".indexOf),M=o("".matchAll),R=!!M&&!g((function(){M("a",/./)})),L=i((function(e,t,n,r){O(this,{type:P,regexp:e,string:t,global:n,unicode:r,done:!1})}),C,(function(){var e=j(this);if(e.done)return u(void 0,!0);var t=e.regexp,n=e.string,r=x(t,n);return null===r?(e.done=!0,u(void 0,!0)):e.global?(""===l(r[0])&&(t.lastIndex=w(n,s(t.lastIndex),e.unicode)),u(r,!1)):(e.done=!0,u(r,!1))})),Z=function(e){var t,n,r,a=f(this),o=l(e),i=_(a,RegExp),u=l(v(a));return t=new i(i===RegExp?a.source:a,u),n=!!~I(u,"g"),r=!!~I(u,"u"),t.lastIndex=s(a.lastIndex),new L(t,o,n,r)};r({target:"String",proto:!0,forced:R},{matchAll:function(e){var t,n,r,o,i=c(this);if(p(e)){if(R)return M(i,e)}else{if(h(e)&&(t=l(c(v(e))),!~I(t,"g")))throw new T("`.matchAll` does not allow non-global regexes");if(R)return M(i,e);if(void 0===(r=m(e,S))&&E&&"RegExp"===d(e)&&(r=Z),r)return a(r,e,i)}return n=l(i),o=new RegExp(e,"g"),E?a(Z,o,n):o[S](n)}}),E||S in A||y(A,S,Z)},46302:function(e,t,n){"use strict";var r=n(89945),a=n(8662),o=n(80449),i=n(4112),u=n(61578),c=n(69905),s=n(95955),l=n(53776),f=n(52216),p=n(94338);a("match",(function(e,t,n){return[function(t){var n=s(this),a=i(t)?void 0:l(t,e);return a?r(a,t,n):new RegExp(t)[e](c(n))},function(e){var r=o(this),a=c(e),i=n(t,r,a);if(i.done)return i.value;if(!r.global)return p(r,a);var s=r.unicode;r.lastIndex=0;for(var l,d=[],h=0;null!==(l=p(r,a));){var v=c(l[0]);d[h]=v,""===v&&(r.lastIndex=f(a,u(r.lastIndex),s)),h++}return 0===h?null:d}]}))},76718:function(e,t,n){"use strict";var r=n(94488),a=n(85571).end;r({target:"String",proto:!0,forced:n(98352)},{padEnd:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},79172:function(e,t,n){"use strict";var r=n(94488),a=n(85571).start;r({target:"String",proto:!0,forced:n(98352)},{padStart:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},32192:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(80524),i=n(94029),u=n(69905),c=n(82762),s=a([].push),l=a([].join);r({target:"String",stat:!0},{raw:function(e){var t=o(i(e).raw),n=c(t);if(!n)return"";for(var r=arguments.length,a=[],f=0;;){if(s(a,u(t[f++])),f===n)return l(a,"");fe.length?-1:""===t?n:g(e,t,n)};r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,o,h,k,E,S,C,P,O=i(this),j=0,A=0,T="";if(!c(e)){if((n=s(e))&&(r=l(i(p(e))),!~g(r,"g")))throw new y("`.replaceAll` does not allow non-global regexes");if(o=f(e,m))return a(o,e,O,t);if(v&&n)return b(l(O),e,t)}for(h=l(O),k=l(e),(E=u(t))||(t=l(t)),S=k.length,C=w(1,S),j=x(h,k,0);-1!==j;)P=E?l(t(k,j,h)):d(k,h,j,[],void 0,t),T+=_(h,A,j)+P,A=j+S,j=x(h,k,j+C);return A=A&&(j+=S(u,A,R)+I,A=R+M.length)}return j+S(u,A)}]}),!!u((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!C||P)},62925:function(e,t,n){"use strict";var r=n(89945),a=n(8662),o=n(80449),i=n(4112),u=n(95955),c=n(5370),s=n(69905),l=n(53776),f=n(94338);a("search",(function(e,t,n){return[function(t){var n=u(this),a=i(t)?void 0:l(t,e);return a?r(a,t,n):new RegExp(t)[e](s(n))},function(e){var r=o(this),a=s(e),i=n(t,r,a);if(i.done)return i.value;var u=r.lastIndex;c(u,0)||(r.lastIndex=0);var l=f(r,a);return c(r.lastIndex,u)||(r.lastIndex=u),null===l?-1:l.index}]}))},60462:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("small")},{small:function(){return a(this,"small","","")}})},9595:function(e,t,n){"use strict";var r=n(13743),a=n(89945),o=n(94237),i=n(8662),u=n(80449),c=n(4112),s=n(44639),l=n(95955),f=n(60473),p=n(52216),d=n(61578),h=n(69905),v=n(53776),m=n(71698),y=n(94338),g=n(88736),b=n(19286),_=n(3338),w=b.UNSUPPORTED_Y,x=4294967295,k=Math.min,E=[].push,S=o(/./.exec),C=o(E),P=o("".slice),O=!_((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));i("split",(function(e,t,n){var o;return o="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=h(l(this)),i=void 0===n?x:n>>>0;if(0===i)return[];if(void 0===e)return[o];if(!s(e))return a(t,o,e,i);for(var u,c,f,p=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),v=0,y=new RegExp(e.source,d+"g");(u=a(g,y,o))&&!((c=y.lastIndex)>v&&(C(p,P(o,v,u.index)),u.length>1&&u.index=i));)y.lastIndex===u.index&&y.lastIndex++;return v===o.length?!f&&S(y,"")||C(p,""):C(p,P(o,v)),p.length>i?m(p,0,i):p}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:a(t,this,e,n)}:t,[function(t,n){var r=l(this),i=c(t)?void 0:v(t,e);return i?a(i,t,r,n):a(o,h(r),t,n)},function(e,r){var a=u(this),i=h(e),c=n(o,a,i,r,o!==t);if(c.done)return c.value;var s=f(a,RegExp),l=a.unicode,v=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(w?"g":"y"),m=new s(w?"^(?:"+a.source+")":a,v),g=void 0===r?x:r>>>0;if(0===g)return[];if(0===i.length)return null===y(m,i)?[i]:[];for(var b=0,_=0,E=[];_1?arguments[1]:void 0,t.length)),r=c(e);return d?d(t,r,n):h(t,n,n+r.length)===r}})},72571:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("strike")},{strike:function(){return a(this,"strike","","")}})},71200:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("sub")},{sub:function(){return a(this,"sub","","")}})},85767:function(e,t,n){"use strict";var r=n(94488),a=n(95994);r({target:"String",proto:!0,forced:n(17691)("sup")},{sup:function(){return a(this,"sup","","")}})},53427:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(94237),i=n(95955),u=n(69905),c=n(3338),s=Array,l=o("".charAt),f=o("".charCodeAt),p=o([].join),d="".toWellFormed,h=d&&c((function(){return"1"!==a(d,1)}));r({target:"String",proto:!0,forced:h},{toWellFormed:function(){var e=u(i(this));if(h)return a(d,e);for(var t=e.length,n=s(t),r=0;r=56320||r+1>=t||56320!=(64512&f(e,r+1))?n[r]="�":(n[r]=l(e,r),n[++r]=l(e,r))}return p(n,"")}})},49257:function(e,t,n){"use strict";n(20189);var r=n(94488),a=n(9591);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},93980:function(e,t,n){"use strict";var r=n(94488),a=n(27374);r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},20189:function(e,t,n){"use strict";var r=n(94488),a=n(9591);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},72910:function(e,t,n){"use strict";n(93980);var r=n(94488),a=n(27374);r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},70878:function(e,t,n){"use strict";var r=n(94488),a=n(52971).trim;r({target:"String",proto:!0,forced:n(18105)("trim")},{trim:function(){return a(this)}})},64003:function(e,t,n){"use strict";n(94674)("asyncIterator")},39161:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(89945),i=n(94237),u=n(16697),c=n(35454),s=n(42820),l=n(3338),f=n(32621),p=n(16332),d=n(80449),h=n(80524),v=n(17818),m=n(69905),y=n(35012),g=n(20132),b=n(7733),_=n(80689),w=n(53393),x=n(92635),k=n(71256),E=n(37691),S=n(55666),C=n(27597),P=n(2291),O=n(64110),j=n(77898),A=n(11898),T=n(54406),I=n(6145),M=n(59893),R=n(38282),L=n(94674),Z=n(14311),D=n(94573),N=n(94844),$=n(90560).forEach,F=A("hidden"),B="Symbol",q="prototype",z=N.set,H=N.getterFor(B),U=Object[q],W=a.Symbol,V=W&&W[q],G=a.RangeError,Y=a.TypeError,K=a.QObject,X=k.f,Q=E.f,J=w.f,ee=C.f,te=i([].push),ne=j("symbols"),re=j("op-symbols"),ae=j("wks"),oe=!K||!K[q]||!K[q].findChild,ie=function(e,t,n){var r=X(U,t);r&&delete U[t],Q(e,t,n),r&&e!==U&&Q(U,t,r)},ue=c&&l((function(){return 7!==g(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?ie:Q,ce=function(e,t){var n=ne[e]=g(V);return z(n,{type:B,tag:e,description:t}),c||(n.description=t),n},se=function(e,t,n){e===U&&se(re,t,n),d(e);var r=v(t);return d(n),f(ne,r)?(n.enumerable?(f(e,F)&&e[F][r]&&(e[F][r]=!1),n=g(n,{enumerable:y(0,!1)})):(f(e,F)||Q(e,F,y(1,{})),e[F][r]=!0),ue(e,r,n)):Q(e,r,n)},le=function(e,t){d(e);var n=h(t),r=b(n).concat(he(n));return $(r,(function(t){c&&!o(fe,n,t)||se(e,t,n[t])})),e},fe=function(e){var t=v(e),n=o(ee,this,t);return!(this===U&&f(ne,t)&&!f(re,t))&&(!(n||!f(this,t)||!f(ne,t)||f(this,F)&&this[F][t])||n)},pe=function(e,t){var n=h(e),r=v(t);if(n!==U||!f(ne,r)||f(re,r)){var a=X(n,r);return!a||!f(ne,r)||f(n,F)&&n[F][r]||(a.enumerable=!0),a}},de=function(e){var t=J(h(e)),n=[];return $(t,(function(e){f(ne,e)||f(T,e)||te(n,e)})),n},he=function(e){var t=e===U,n=J(t?re:h(e)),r=[];return $(n,(function(e){!f(ne,e)||t&&!f(U,e)||te(r,ne[e])})),r};s||(W=function(){if(p(V,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=I(e),n=function(e){var r=void 0===this?a:this;r===U&&o(n,re,e),f(r,F)&&f(r[F],t)&&(r[F][t]=!1);var i=y(1,e);try{ue(r,t,i)}catch(e){if(!(e instanceof G))throw e;ie(r,t,i)}};return c&&oe&&ue(U,t,{configurable:!0,set:n}),ce(t,e)},P(V=W[q],"toString",(function(){return H(this).tag})),P(W,"withoutSetter",(function(e){return ce(I(e),e)})),C.f=fe,E.f=se,S.f=le,k.f=pe,_.f=w.f=de,x.f=he,R.f=function(e){return ce(M(e),e)},c&&(O(V,"description",{configurable:!0,get:function(){return H(this).description}}),u||P(U,"propertyIsEnumerable",fe,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!s,sham:!s},{Symbol:W}),$(b(ae),(function(e){L(e)})),r({target:B,stat:!0,forced:!s},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!c},{create:function(e,t){return void 0===t?g(e):le(g(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:pe}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:de}),Z(),D(W,B),T[F]=!0},44852:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(92916),i=n(94237),u=n(32621),c=n(55327),s=n(16332),l=n(69905),f=n(64110),p=n(24538),d=o.Symbol,h=d&&d.prototype;if(a&&c(d)&&(!("description"in h)||void 0!==d().description)){var v={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=s(h,this)?new d(e):void 0===e?d():d(e);return""===e&&(v[t]=!0),t};p(m,d),m.prototype=h,h.constructor=m;var y="Symbol(description detection)"===String(d("description detection")),g=i(h.valueOf),b=i(h.toString),_=/^Symbol\((.*)\)[^)]+$/,w=i("".replace),x=i("".slice);f(h,"description",{configurable:!0,get:function(){var e=g(this);if(u(v,e))return"";var t=b(e),n=y?x(t,7,-1):w(t,_,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},54524:function(e,t,n){"use strict";var r=n(94488),a=n(65911),o=n(32621),i=n(69905),u=n(77898),c=n(60798),s=u("string-to-symbol-registry"),l=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=i(e);if(o(s,t))return s[t];var n=a("Symbol")(t);return s[t]=n,l[n]=t,n}})},17898:function(e,t,n){"use strict";n(94674)("hasInstance")},40902:function(e,t,n){"use strict";n(94674)("isConcatSpreadable")},2259:function(e,t,n){"use strict";n(94674)("iterator")},68557:function(e,t,n){"use strict";n(39161),n(54524),n(32340),n(54226),n(67936)},32340:function(e,t,n){"use strict";var r=n(94488),a=n(32621),o=n(18446),i=n(40593),u=n(77898),c=n(60798),s=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!o(e))throw new TypeError(i(e)+" is not a symbol");if(a(s,e))return s[e]}})},69811:function(e,t,n){"use strict";n(94674)("matchAll")},14589:function(e,t,n){"use strict";n(94674)("match")},18114:function(e,t,n){"use strict";n(94674)("replace")},23844:function(e,t,n){"use strict";n(94674)("search")},39581:function(e,t,n){"use strict";n(94674)("species")},40632:function(e,t,n){"use strict";n(94674)("split")},22690:function(e,t,n){"use strict";var r=n(94674),a=n(14311);r("toPrimitive"),a()},7786:function(e,t,n){"use strict";var r=n(65911),a=n(94674),o=n(94573);a("toStringTag"),o(r("Symbol"),"Symbol")},99062:function(e,t,n){"use strict";n(94674)("unscopables")},35246:function(e,t,n){"use strict";var r=n(58261),a=n(82762),o=n(56902),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(e){var t=i(this),n=a(t),r=o(e),u=r>=0?r:n+r;return u<0||u>=n?void 0:t[u]}))},83470:function(e,t,n){"use strict";var r=n(94237),a=n(58261),o=r(n(92670)),i=a.aTypedArray;(0,a.exportTypedArrayMethod)("copyWithin",(function(e,t){return o(i(this),e,t,arguments.length>2?arguments[2]:void 0)}))},79641:function(e,t,n){"use strict";var r=n(58261),a=n(90560).every,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},72397:function(e,t,n){"use strict";var r=n(58261),a=n(75202),o=n(93303),i=n(97607),u=n(89945),c=n(94237),s=n(3338),l=r.aTypedArray,f=r.exportTypedArrayMethod,p=c("".slice);f("fill",(function(e){var t=arguments.length;l(this);var n="Big"===p(i(this),0,3)?o(e):+e;return u(a,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),s((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},24860:function(e,t,n){"use strict";var r=n(58261),a=n(90560).filter,o=n(27607),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=a(i(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},56233:function(e,t,n){"use strict";var r=n(58261),a=n(90560).findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},64344:function(e,t,n){"use strict";var r=n(58261),a=n(53279).findLastIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},59419:function(e,t,n){"use strict";var r=n(58261),a=n(53279).findLast,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},19320:function(e,t,n){"use strict";var r=n(58261),a=n(90560).find,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},84432:function(e,t,n){"use strict";n(69733)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},59022:function(e,t,n){"use strict";n(69733)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},5316:function(e,t,n){"use strict";var r=n(58261),a=n(90560).forEach,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},93744:function(e,t,n){"use strict";var r=n(59627);(0,n(58261).exportTypedArrayStaticMethod)("from",n(50706),r)},19299:function(e,t,n){"use strict";var r=n(58261),a=n(22999).includes,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},15286:function(e,t,n){"use strict";var r=n(58261),a=n(22999).indexOf,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},51054:function(e,t,n){"use strict";n(69733)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},60330:function(e,t,n){"use strict";n(69733)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},19363:function(e,t,n){"use strict";n(69733)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},91927:function(e,t,n){"use strict";var r=n(92916),a=n(3338),o=n(94237),i=n(58261),u=n(11005),c=n(59893)("iterator"),s=r.Uint8Array,l=o(u.values),f=o(u.keys),p=o(u.entries),d=i.aTypedArray,h=i.exportTypedArrayMethod,v=s&&s.prototype,m=!a((function(){v[c].call([1])})),y=!!v&&v.values&&v[c]===v.values&&"values"===v.values.name,g=function(){return l(d(this))};h("entries",(function(){return p(d(this))}),m),h("keys",(function(){return f(d(this))}),m),h("values",g,m||!y,{name:"values"}),h(c,g,m||!y,{name:"values"})},27730:function(e,t,n){"use strict";var r=n(58261),a=n(94237),o=r.aTypedArray,i=r.exportTypedArrayMethod,u=a([].join);i("join",(function(e){return u(o(this),e)}))},58707:function(e,t,n){"use strict";var r=n(58261),a=n(13743),o=n(55009),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return a(o,i(this),t>1?[e,arguments[1]]:[e])}))},41356:function(e,t,n){"use strict";var r=n(58261),a=n(90560).map,o=n(31384),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(e))(t)}))}))},51606:function(e,t,n){"use strict";var r=n(58261),a=n(59627),o=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(o(this))(t);t>e;)n[e]=arguments[e++];return n}),a)},38458:function(e,t,n){"use strict";var r=n(58261),a=n(16370).right,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return a(o(this),e,t,t>1?arguments[1]:void 0)}))},8966:function(e,t,n){"use strict";var r=n(58261),a=n(16370).left,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return a(o(this),e,t,t>1?arguments[1]:void 0)}))},71957:function(e,t,n){"use strict";var r=n(58261),a=r.aTypedArray,o=r.exportTypedArrayMethod,i=Math.floor;o("reverse",(function(){for(var e,t=this,n=a(t).length,r=i(n/2),o=0;o1?arguments[1]:void 0,1),n=c(e);if(m)return a(d,this,n,t);var r=this.length,o=i(n),s=0;if(o+t>r)throw new l("Wrong length");for(;so;)s[o]=n[o++];return s}),o((function(){new Int8Array(1).slice()})))},96519:function(e,t,n){"use strict";var r=n(58261),a=n(90560).some,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},95576:function(e,t,n){"use strict";var r=n(92916),a=n(34114),o=n(3338),i=n(63335),u=n(63668),c=n(58261),s=n(78177),l=n(17687),f=n(46573),p=n(19684),d=c.aTypedArray,h=c.exportTypedArrayMethod,v=r.Uint16Array,m=v&&a(v.prototype.sort),y=!(!m||o((function(){m(new v(2),null)}))&&o((function(){m(new v(2),{})}))),g=!!m&&!o((function(){if(f)return f<74;if(s)return s<67;if(l)return!0;if(p)return p<602;var e,t,n=new v(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(m(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));h("sort",(function(e){return void 0!==e&&i(e),g?m(this,e):u(d(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!g||y)},63079:function(e,t,n){"use strict";var r=n(58261),a=n(61578),o=n(51981),i=n(31384),u=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=u(this),r=n.length,c=o(e,r);return new(i(n))(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,a((void 0===t?r:o(t,r))-c))}))},8995:function(e,t,n){"use strict";var r=n(92916),a=n(13743),o=n(58261),i=n(3338),u=n(30867),c=r.Int8Array,s=o.aTypedArray,l=o.exportTypedArrayMethod,f=[].toLocaleString,p=!!c&&i((function(){f.call(new c(1))}));l("toLocaleString",(function(){return a(f,p?u(s(this)):s(this),u(arguments))}),i((function(){return[1,2].toLocaleString()!==new c([1,2]).toLocaleString()}))||!i((function(){c.prototype.toLocaleString.call([1,2])})))},23080:function(e,t,n){"use strict";var r=n(85903),a=n(58261),o=a.aTypedArray,i=a.exportTypedArrayMethod,u=a.getTypedArrayConstructor;i("toReversed",(function(){return r(o(this),u(this))}))},74701:function(e,t,n){"use strict";var r=n(58261),a=n(94237),o=n(63335),i=n(69478),u=r.aTypedArray,c=r.getTypedArrayConstructor,s=r.exportTypedArrayMethod,l=a(r.TypedArrayPrototype.sort);s("toSorted",(function(e){void 0!==e&&o(e);var t=u(this),n=i(c(t),t);return l(n,e)}))},91809:function(e,t,n){"use strict";var r=n(58261).exportTypedArrayMethod,a=n(3338),o=n(92916),i=n(94237),u=o.Uint8Array,c=u&&u.prototype||{},s=[].toString,l=i([].join);a((function(){s.call({})}))&&(s=function(){return l(this)});var f=c.toString!==s;r("toString",s,f)},64336:function(e,t,n){"use strict";n(69733)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},63914:function(e,t,n){"use strict";n(69733)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},55234:function(e,t,n){"use strict";n(69733)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},88104:function(e,t,n){"use strict";n(69733)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},77517:function(e,t,n){"use strict";var r=n(82041),a=n(58261),o=n(75406),i=n(56902),u=n(93303),c=a.aTypedArray,s=a.getTypedArrayConstructor,l=a.exportTypedArrayMethod,f=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();l("with",{with:function(e,t){var n=c(this),a=i(e),l=o(n)?u(t):+t;return r(n,s(n),a,l)}}.with,!f)},58453:function(e,t,n){"use strict";var r,a=n(13247),o=n(92916),i=n(94237),u=n(66477),c=n(2074),s=n(48059),l=n(39656),f=n(31946),p=n(94844).enforce,d=n(3338),h=n(40115),v=Object,m=Array.isArray,y=v.isExtensible,g=v.isFrozen,b=v.isSealed,_=v.freeze,w=v.seal,x={},k={},E=!o.ActiveXObject&&"ActiveXObject"in o,S=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},C=s("WeakMap",S,l),P=C.prototype,O=i(P.set);if(h)if(E){r=l.getConstructor(S,"WeakMap",!0),c.enable();var j=i(P.delete),A=i(P.has),T=i(P.get);u(P,{delete:function(e){if(f(e)&&!y(e)){var t=p(this);return t.frozen||(t.frozen=new r),j(this,e)||t.frozen.delete(e)}return j(this,e)},has:function(e){if(f(e)&&!y(e)){var t=p(this);return t.frozen||(t.frozen=new r),A(this,e)||t.frozen.has(e)}return A(this,e)},get:function(e){if(f(e)&&!y(e)){var t=p(this);return t.frozen||(t.frozen=new r),A(this,e)?T(this,e):t.frozen.get(e)}return T(this,e)},set:function(e,t){if(f(e)&&!y(e)){var n=p(this);n.frozen||(n.frozen=new r),A(this,e)?O(this,e,t):n.frozen.set(e,t)}else O(this,e,t);return this}})}else a&&d((function(){var e=_([]);return O(new C,e,1),!g(e)}))&&u(P,{set:function(e,t){var n;return m(e)&&(g(e)?n=x:b(e)&&(n=k)),O(this,e,t),n===x&&_(e),n===k&&w(e),this}})},55410:function(e,t,n){"use strict";n(58453)},65092:function(e,t,n){"use strict";n(48059)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(39656))},46161:function(e,t,n){"use strict";n(65092)},88900:function(e,t,n){"use strict";var r=n(35454),a=n(64110),o=n(93683),i=ArrayBuffer.prototype;r&&!("detached"in i)&&a(i,"detached",{configurable:!0,get:function(){return o(this)}})},81138:function(e,t,n){"use strict";var r=n(94488),a=n(39760);a&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return a(this,arguments.length?arguments[0]:void 0,!1)}})},54815:function(e,t,n){"use strict";var r=n(94488),a=n(39760);a&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return a(this,arguments.length?arguments[0]:void 0,!0)}})},2722:function(e,t,n){"use strict";var r=n(94488),a=n(90560).filterReject,o=n(81181);r({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("filterOut")},55885:function(e,t,n){"use strict";var r=n(94488),a=n(90560).filterReject,o=n(81181);r({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("filterReject")},91130:function(e,t,n){"use strict";n(94488)({target:"Array",stat:!0},{fromAsync:n(32278)})},64963:function(e,t,n){"use strict";var r=n(94488),a=n(45601),o=n(81181),i=n(33940);r({target:"Array",proto:!0,name:"groupToMap",forced:n(16697)||!a("groupByToMap")},{groupByToMap:i}),o("groupByToMap")},8604:function(e,t,n){"use strict";var r=n(94488),a=n(36444),o=n(45601),i=n(81181);r({target:"Array",proto:!0,forced:!o("groupBy")},{groupBy:function(e){var t=arguments.length>1?arguments[1]:void 0;return a(this,e,t)}}),i("groupBy")},25178:function(e,t,n){"use strict";var r=n(94488),a=n(81181),o=n(33940);r({target:"Array",proto:!0,forced:n(16697)},{groupToMap:o}),a("groupToMap")},39034:function(e,t,n){"use strict";var r=n(94488),a=n(36444),o=n(81181);r({target:"Array",proto:!0},{group:function(e){var t=arguments.length>1?arguments[1]:void 0;return a(this,e,t)}}),o("group")},1905:function(e,t,n){"use strict";var r=n(94488),a=n(18589),o=Object.isFrozen,i=function(e,t){if(!o||!a(e)||!o(e))return!1;for(var n,r=0,i=e.length;r1&&arguments[1]);return o([255&t,t>>8&255],10)}})},93236:function(e,t,n){"use strict";var r=n(94488),a=n(94237)(DataView.prototype.getUint8);r({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(e){return a(this,e)}})},42212:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(97607),i=n(24225),u=n(61618).pack,c=n(35175),s=TypeError,l=a(DataView.prototype.setUint16);r({target:"DataView",proto:!0},{setFloat16:function(e,t){if("DataView"!==o(this))throw new s("Incorrect receiver");var n=i(e),r=u(c(t),10,2);return l(this,n,r[1]<<8|r[0],arguments.length>2&&arguments[2])}})},63923:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(97607),i=n(24225),u=n(86350),c=TypeError,s=a(DataView.prototype.setUint8);r({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(e,t){if("DataView"!==o(this))throw new c("Incorrect receiver");var n=i(e);return s(this,n,u(t))}})},2278:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(65911),i=n(63335),u=n(56472),c=n(2291),s=n(66477),l=n(64110),f=n(59893),p=n(94844),d=n(5978),h=o("SuppressedError"),v=ReferenceError,m=f("dispose"),y=f("toStringTag"),g="DisposableStack",b=p.set,_=p.getterFor(g),w="sync-dispose",x="disposed",k=function(e){var t=_(e);if(t.state===x)throw new v(g+" already disposed");return t},E=function(){b(u(this,S),{type:g,state:"pending",stack:[]}),a||(this.disposed=!1)},S=E.prototype;s(S,{dispose:function(){var e=_(this);if(e.state!==x){e.state=x,a||(this.disposed=!0);for(var t,n=e.stack,r=n.length,o=!1;r;){var i=n[--r];n[r]=null;try{i()}catch(e){o?t=new h(e,t):(o=!0,t=e)}}if(e.stack=null,o)throw t}},use:function(e){return d(k(this),e,w),e},adopt:function(e,t){var n=k(this);return i(t),d(n,void 0,w,(function(){t(e)})),e},defer:function(e){var t=k(this);i(e),d(t,void 0,w,e)},move:function(){var e=k(this),t=new E;return _(t).stack=e.stack,e.stack=[],e.state=x,a||(this.disposed=!0),t}}),a&&l(S,"disposed",{configurable:!0,get:function(){return _(this).state===x}}),c(S,m,S.dispose,{name:"dispose"}),c(S,y,g,{nonWritable:!0}),r({global:!0,constructor:!0},{DisposableStack:E})},36955:function(e,t,n){"use strict";n(94488)({target:"Function",proto:!0,forced:!0},{demethodize:n(47739)})},77326:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(55327),i=n(15212),u=n(32621),c=n(35454),s=Object.getOwnPropertyDescriptor,l=/^\s*class\b/,f=a(l.exec);r({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(e){return o(e)&&!function(e){try{if(!c||!f(l,i(e)))return!1}catch(e){}var t=s(e,"prototype");return!!t&&u(t,"writable")&&!t.writable}(e)}})},53571:function(e,t,n){"use strict";n(94488)({target:"Function",stat:!0,forced:!0},{isConstructor:n(39812)})},28670:function(e,t,n){"use strict";var r=n(59893),a=n(37691).f,o=r("metadata"),i=Function.prototype;void 0===i[o]&&a(i,o,{value:null})},31050:function(e,t,n){"use strict";n(94488)({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:n(47739)})},96364:function(e,t,n){"use strict";n(94488)({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:n(24771)})},25321:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(56472),i=n(80449),u=n(55327),c=n(53456),s=n(64110),l=n(69392),f=n(3338),p=n(32621),d=n(59893),h=n(46571).IteratorPrototype,v=n(35454),m=n(16697),y="constructor",g="Iterator",b=d("toStringTag"),_=TypeError,w=a[g],x=m||!u(w)||w.prototype!==h||!f((function(){w({})})),k=function(){if(o(this,h),c(this)===h)throw new _("Abstract class Iterator not directly constructable")},E=function(e,t){v?s(h,e,{configurable:!0,get:function(){return t},set:function(t){if(i(this),this===h)throw new _("You can't redefine this property");p(this,e)?this[e]=t:l(this,e,t)}}):h[e]=t};p(h,b)||E(b,g),!x&&p(h,y)&&h[y]!==Object||E(y,k),k.prototype=h,r({global:!0,constructor:!0,forced:x},{Iterator:k})},46304:function(e,t,n){"use strict";var r=n(89945),a=n(2291),o=n(53776),i=n(32621),u=n(59893),c=n(46571).IteratorPrototype,s=u("dispose");i(c,s)||a(c,s,(function(){var e=o(this,"return");e&&r(e,this)}))},55163:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(80449),i=n(10731),u=n(2279),c=n(51358),s=n(20547),l=n(16697),f=s((function(){for(var e,t=this.iterator,n=this.next;this.remaining;)if(this.remaining--,e=o(a(n,t)),this.done=!!e.done)return;if(e=o(a(n,t)),!(this.done=!!e.done))return e.value}));r({target:"Iterator",proto:!0,real:!0,forced:l},{drop:function(e){o(this);var t=c(u(+e));return new f(i(this),{remaining:t})}})},78722:function(e,t,n){"use strict";var r=n(94488),a=n(62003),o=n(63335),i=n(80449),u=n(10731);r({target:"Iterator",proto:!0,real:!0},{every:function(e){i(this),o(e);var t=u(this),n=0;return!a(t,(function(t,r){if(!e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},35977:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(63335),i=n(80449),u=n(10731),c=n(20547),s=n(46319),l=n(16697),f=c((function(){for(var e,t,n=this.iterator,r=this.predicate,o=this.next;;){if(e=i(a(o,n)),this.done=!!e.done)return;if(t=e.value,s(n,r,[t,this.counter++],!0))return t}}));r({target:"Iterator",proto:!0,real:!0,forced:l},{filter:function(e){return i(this),o(e),new f(u(this),{predicate:e})}})},81848:function(e,t,n){"use strict";var r=n(94488),a=n(62003),o=n(63335),i=n(80449),u=n(10731);r({target:"Iterator",proto:!0,real:!0},{find:function(e){i(this),o(e);var t=u(this),n=0;return a(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},52867:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(63335),i=n(80449),u=n(10731),c=n(7157),s=n(20547),l=n(67996),f=n(16697),p=s((function(){for(var e,t,n=this.iterator,r=this.mapper;;){if(t=this.inner)try{if(!(e=i(a(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){l(n,"throw",e)}if(e=i(a(this.next,n)),this.done=!!e.done)return;try{this.inner=c(r(e.value,this.counter++),!1)}catch(e){l(n,"throw",e)}}}));r({target:"Iterator",proto:!0,real:!0,forced:f},{flatMap:function(e){return i(this),o(e),new p(u(this),{mapper:e,inner:null})}})},72211:function(e,t,n){"use strict";var r=n(94488),a=n(62003),o=n(63335),i=n(80449),u=n(10731);r({target:"Iterator",proto:!0,real:!0},{forEach:function(e){i(this),o(e);var t=u(this),n=0;a(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},84862:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(94029),i=n(16332),u=n(46571).IteratorPrototype,c=n(20547),s=n(7157),l=n(16697),f=c((function(){return a(this.next,this.iterator)}),!0);r({target:"Iterator",stat:!0,forced:l},{from:function(e){var t=s("string"==typeof e?o(e):e,!0);return i(u,t.iterator)?t.iterator:new f(t)}})},92381:function(e,t,n){"use strict";n(94488)({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:n(24771)})},19517:function(e,t,n){"use strict";var r=n(94488),a=n(2155);r({target:"Iterator",proto:!0,real:!0,forced:n(16697)},{map:a})},69667:function(e,t,n){"use strict";var r=n(94488),a=n(17243),o=TypeError;r({target:"Iterator",stat:!0,forced:!0},{range:function(e,t,n){if("number"==typeof e)return new a(e,t,n,"number",0,1);if("bigint"==typeof e)return new a(e,t,n,"bigint",BigInt(0),BigInt(1));throw new o("Incorrect Iterator.range arguments")}})},80820:function(e,t,n){"use strict";var r=n(94488),a=n(62003),o=n(63335),i=n(80449),u=n(10731),c=TypeError;r({target:"Iterator",proto:!0,real:!0},{reduce:function(e){i(this),o(e);var t=u(this),n=arguments.length<2,r=n?void 0:arguments[1],s=0;if(a(t,(function(t){n?(n=!1,r=t):r=e(r,t,s),s++}),{IS_RECORD:!0}),n)throw new c("Reduce of empty iterator with no initial value");return r}})},87873:function(e,t,n){"use strict";var r=n(94488),a=n(62003),o=n(63335),i=n(80449),u=n(10731);r({target:"Iterator",proto:!0,real:!0},{some:function(e){i(this),o(e);var t=u(this),n=0;return a(t,(function(t,r){if(e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},54609:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(80449),i=n(10731),u=n(2279),c=n(51358),s=n(20547),l=n(67996),f=n(16697),p=s((function(){var e=this.iterator;if(!this.remaining--)return this.done=!0,l(e,"normal",void 0);var t=o(a(this.next,e));return(this.done=!!t.done)?void 0:t.value}));r({target:"Iterator",proto:!0,real:!0,forced:f},{take:function(e){o(this);var t=c(u(+e));return new p(i(this),{remaining:t})}})},28566:function(e,t,n){"use strict";var r=n(94488),a=n(80449),o=n(62003),i=n(10731),u=[].push;r({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return o(i(a(this)),u,{that:e,IS_RECORD:!0}),e}})},51697:function(e,t,n){"use strict";var r=n(94488),a=n(80449),o=n(57975),i=n(80025),u=n(10731);r({target:"Iterator",proto:!0,real:!0,forced:n(16697)},{toAsync:function(){return new i(u(new o(u(a(this)))))}})},61872:function(e,t,n){"use strict";n(94488)({target:"JSON",stat:!0,forced:!n(82778)},{isRawJSON:n(83502)})},76077:function(e,t,n){"use strict";var r=n(94488),a=n(35454),o=n(92916),i=n(65911),u=n(94237),c=n(89945),s=n(55327),l=n(31946),f=n(18589),p=n(32621),d=n(69905),h=n(82762),v=n(69392),m=n(3338),y=n(70913),g=n(42820),b=o.JSON,_=o.Number,w=o.SyntaxError,x=b&&b.parse,k=i("Object","keys"),E=Object.getOwnPropertyDescriptor,S=u("".charAt),C=u("".slice),P=u(/./.exec),O=u([].push),j=/^\d$/,A=/^[1-9]$/,T=/^(?:-|\d)$/,I=/^[\t\n\r ]$/,M=function(e,t,n,r){var a,o,i,u,s,d=e[t],v=r&&d===r.value,m=v&&"string"==typeof r.source?{source:r.source}:{};if(l(d)){var y=f(d),g=v?r.nodes:y?[]:{};if(y)for(a=g.length,i=h(d),u=0;u1?arguments[1]:void 0);return!1!==i(t,(function(e,r){if(!n(e,r,t))return!1}),!0)}})},28220:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(42683),i=n(2786),u=n(95037),c=i.Map,s=i.set;r({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0),r=new c;return u(t,(function(e,a){n(e,a,t)&&s(r,a,e)})),r}})},49350:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(42683),i=n(95037);r({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0),r=i(t,(function(e,r){if(n(e,r,t))return{key:r}}),!0);return r&&r.key}})},62060:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(42683),i=n(95037);r({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0),r=i(t,(function(e,r){if(n(e,r,t))return{value:e}}),!0);return r&&r.value}})},20126:function(e,t,n){"use strict";n(94488)({target:"Map",stat:!0,forced:!0},{from:n(72846)})},18090:function(e,t,n){"use strict";var r=n(94488),a=n(88134),o=n(42683),i=n(95037);r({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===i(o(this),(function(t){if(a(t,e))return!0}),!0)}})},14309:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(62003),i=n(55327),u=n(63335),c=n(2786).Map;r({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new(i(this)?this:c);u(t);var r=u(n.set);return o(e,(function(e){a(r,n,t(e),e)})),n}})},17822:function(e,t,n){"use strict";var r=n(94488),a=n(42683),o=n(95037);r({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=o(a(this),(function(t,n){if(t===e)return{key:n}}),!0);return t&&t.key}})},83543:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(42683),i=n(2786),u=n(95037),c=i.Map,s=i.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0),r=new c;return u(t,(function(e,a){s(r,n(e,a,t),e)})),r}})},13853:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(42683),i=n(2786),u=n(95037),c=i.Map,s=i.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0),r=new c;return u(t,(function(e,a){s(r,a,n(e,a,t))})),r}})},25188:function(e,t,n){"use strict";var r=n(94488),a=n(42683),o=n(62003),i=n(2786).set;r({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=a(this),n=arguments.length,r=0;r1?arguments[1]:void 0);return!0===i(t,(function(e,r){if(n(e,r,t))return!0}),!0)}})},8774:function(e,t,n){"use strict";n(94488)({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:n(14615)})},6736:function(e,t,n){"use strict";var r=n(94488),a=n(63335),o=n(42683),i=n(2786),u=TypeError,c=i.get,s=i.has,l=i.set;r({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=o(this),r=arguments.length;a(t);var i=s(n,e);if(!i&&r<3)throw new u("Updating absent value");var f=i?c(n,e):a(r>2?arguments[2]:void 0)(e,n);return l(n,e,t(f,e,n)),n}})},94065:function(e,t,n){"use strict";n(94488)({target:"Map",proto:!0,real:!0,forced:!0},{upsert:n(14615)})},93036:function(e,t,n){"use strict";var r=n(94488),a=Math.min,o=Math.max;r({target:"Math",stat:!0,forced:!0},{clamp:function(e,t,n){return a(n,o(t,e))}})},75708:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},84624:function(e,t,n){"use strict";var r=n(94488),a=180/Math.PI;r({target:"Math",stat:!0,forced:!0},{degrees:function(e){return e*a}})},43710:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0},{f16round:n(35175)})},66233:function(e,t,n){"use strict";var r=n(94488),a=n(24619),o=n(14894);r({target:"Math",stat:!0,forced:!0},{fscale:function(e,t,n,r,i){return o(a(e,t,n,r,i))}})},92762:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0,forced:!0},{iaddh:function(e,t,n,r){var a=e>>>0,o=n>>>0;return(t>>>0)+(r>>>0)+((a&o|(a|o)&~(a+o>>>0))>>>31)|0}})},24467:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0,forced:!0},{imulh:function(e,t){var n=65535,r=+e,a=+t,o=r&n,i=a&n,u=r>>16,c=a>>16,s=(u*i>>>0)+(o*i>>>16);return u*c+(s>>16)+((o*c>>>0)+(s&n)>>16)}})},68465:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0,forced:!0},{isubh:function(e,t,n,r){var a=e>>>0,o=n>>>0;return(t>>>0)-(r>>>0)-((~a&o|~(a^o)&a-o>>>0)>>>31)|0}})},77004:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},83925:function(e,t,n){"use strict";var r=n(94488),a=Math.PI/180;r({target:"Math",stat:!0,forced:!0},{radians:function(e){return e*a}})},51117:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0,forced:!0},{scale:n(24619)})},87236:function(e,t,n){"use strict";var r=n(94488),a=n(80449),o=n(1222),i=n(83126),u=n(25587),c=n(94844),s="Seeded Random",l=s+" Generator",f=c.set,p=c.getterFor(l),d=TypeError,h=i((function(e){f(this,{type:l,seed:e%2147483647})}),s,(function(){var e=p(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return u((1073741823&t)/1073741823,!1)}));r({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=a(e).seed;if(!o(t))throw new d('Math.seededPRNG() argument should have a "seed" field with a finite value.');return new h(t)}})},83733:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0,forced:!0},{signbit:function(e){var t=+e;return t==t&&0===t?1/t==-1/0:t<0}})},92044:function(e,t,n){"use strict";n(94488)({target:"Math",stat:!0,forced:!0},{umulh:function(e,t){var n=65535,r=+e,a=+t,o=r&n,i=a&n,u=r>>>16,c=a>>>16,s=(u*i>>>0)+(o*i>>>16);return u*c+(s>>>16)+((o*c>>>0)+(s&n)>>>16)}})},29190:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(56902),i="Invalid number representation",u=RangeError,c=SyntaxError,s=TypeError,l=parseInt,f=Math.pow,p=/^[\d.a-z]+$/,d=a("".charAt),h=a(p.exec),v=a(1..toString),m=a("".slice),y=a("".split);r({target:"Number",stat:!0,forced:!0},{fromString:function(e,t){var n=1;if("string"!=typeof e)throw new s(i);if(!e.length)throw new c(i);if("-"===d(e,0)&&(n=-1,!(e=m(e,1)).length))throw new c(i);var r=void 0===t?10:o(t);if(r<2||r>36)throw new u("Invalid radix");if(!h(p,e))throw new c(i);var a=y(e,"."),g=l(a[0],r);if(a.length>1&&(g+=l(a[1],r)/f(r,a[1].length)),10===r&&v(g,r)!==e)throw new c(i);return n*g}})},10775:function(e,t,n){"use strict";var r=n(94488),a=n(17243);r({target:"Number",stat:!0,forced:!0},{range:function(e,t,n){return new a(e,t,n,"number",0,1)}})},19593:function(e,t,n){"use strict";var r=n(94488),a=n(20574);r({target:"Object",stat:!0,forced:!0},{iterateEntries:function(e){return new a(e,"entries")}})},26502:function(e,t,n){"use strict";var r=n(94488),a=n(20574);r({target:"Object",stat:!0,forced:!0},{iterateKeys:function(e){return new a(e,"keys")}})},10174:function(e,t,n){"use strict";var r=n(94488),a=n(20574);r({target:"Object",stat:!0,forced:!0},{iterateValues:function(e){return new a(e,"values")}})},76867:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(35454),i=n(51996),u=n(63335),c=n(80449),s=n(56472),l=n(55327),f=n(4112),p=n(31946),d=n(53776),h=n(2291),v=n(66477),m=n(64110),y=n(61810),g=n(59893),b=n(94844),_=g("observable"),w="Observable",x="Subscription",k="SubscriptionObserver",E=b.getterFor,S=b.set,C=E(w),P=E(x),O=E(k),j=function(e){this.observer=c(e),this.cleanup=void 0,this.subscriptionObserver=void 0};j.prototype={type:x,clean:function(){var e=this.cleanup;if(e){this.cleanup=void 0;try{e()}catch(e){y(e)}}},close:function(){if(!o){var e=this.facade,t=this.subscriptionObserver;e.closed=!0,t&&(t.closed=!0)}this.observer=void 0},isClosed:function(){return void 0===this.observer}};var A=function(e,t){var n,r=S(this,new j(e));o||(this.closed=!1);try{(n=d(e,"start"))&&a(n,e,this)}catch(e){y(e)}if(!r.isClosed()){var i=r.subscriptionObserver=new T(r);try{var c=t(i),s=c;f(c)||(r.cleanup=l(c.unsubscribe)?function(){s.unsubscribe()}:u(c))}catch(e){return void i.error(e)}r.isClosed()&&r.clean()}};A.prototype=v({},{unsubscribe:function(){var e=P(this);e.isClosed()||(e.close(),e.clean())}}),o&&m(A.prototype,"closed",{configurable:!0,get:function(){return P(this).isClosed()}});var T=function(e){S(this,{type:k,subscriptionState:e}),o||(this.closed=!1)};T.prototype=v({},{next:function(e){var t=O(this).subscriptionState;if(!t.isClosed()){var n=t.observer;try{var r=d(n,"next");r&&a(r,n,e)}catch(e){y(e)}}},error:function(e){var t=O(this).subscriptionState;if(!t.isClosed()){var n=t.observer;t.close();try{var r=d(n,"error");r?a(r,n,e):y(e)}catch(e){y(e)}t.clean()}},complete:function(){var e=O(this).subscriptionState;if(!e.isClosed()){var t=e.observer;e.close();try{var n=d(t,"complete");n&&a(n,t)}catch(e){y(e)}e.clean()}}}),o&&m(T.prototype,"closed",{configurable:!0,get:function(){return O(this).subscriptionState.isClosed()}});var I=function(e){s(this,M),S(this,{type:w,subscriber:u(e)})},M=I.prototype;v(M,{subscribe:function(e){var t=arguments.length;return new A(l(e)?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:p(e)?e:{},C(this).subscriber)}}),h(M,_,(function(){return this})),r({global:!0,constructor:!0,forced:!0},{Observable:I}),i(w)},14548:function(e,t,n){"use strict";var r=n(94488),a=n(65911),o=n(89945),i=n(80449),u=n(39812),c=n(85428),s=n(53776),l=n(62003),f=n(59893)("observable");r({target:"Observable",stat:!0,forced:!0},{from:function(e){var t=u(this)?this:a("Observable"),n=s(i(e),f);if(n){var r=i(o(n,e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}var p=c(e);return new t((function(e){l(p,(function(t,n){if(e.next(t),e.closed)return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}),e.complete()}))}})},96378:function(e,t,n){"use strict";n(76867),n(14548),n(6053)},6053:function(e,t,n){"use strict";var r=n(94488),a=n(65911),o=n(39812),i=a("Array");r({target:"Observable",stat:!0,forced:!0},{of:function(){for(var e=o(this)?this:a("Observable"),t=arguments.length,n=i(t),r=0;r?@[\\\\\\]^`{|}~"+i+"]","g");r({target:"RegExp",stat:!0,forced:!0},{escape:function(e){var t=o(e),n=u(t,0);return(n>47&&n<58?"\\x3":"")+c(t,s,"\\$&")}})},1220:function(e,t,n){"use strict";var r=n(94488),a=n(17442),o=n(19691).add;r({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=a(this),t=0,n=arguments.length;t1?arguments[1]:void 0);return!1!==i(t,(function(e){if(!n(e,e,t))return!1}),!0)}})},38487:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(17442),i=n(19691),u=n(57002),c=i.Set,s=i.add;r({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0),r=new c;return u(t,(function(e){n(e,e,t)&&s(r,e)})),r}})},29916:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(17442),i=n(57002);r({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0),r=i(t,(function(e){if(n(e,e,t))return{value:e}}),!0);return r&&r.value}})},25541:function(e,t,n){"use strict";n(94488)({target:"Set",stat:!0,forced:!0},{from:n(72846)})},34926:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(77999),i=n(16049);r({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return a(i,this,o(e))}})},45612:function(e,t,n){"use strict";var r=n(94488),a=n(3338),o=n(16049);r({target:"Set",proto:!0,real:!0,forced:!n(22627)("intersection")||a((function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))}))},{intersection:o})},68255:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(77999),i=n(17616);r({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return a(i,this,o(e))}})},98080:function(e,t,n){"use strict";var r=n(94488),a=n(17616);r({target:"Set",proto:!0,real:!0,forced:!n(22627)("isDisjointFrom")},{isDisjointFrom:a})},16450:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(77999),i=n(84833);r({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return a(i,this,o(e))}})},96351:function(e,t,n){"use strict";var r=n(94488),a=n(84833);r({target:"Set",proto:!0,real:!0,forced:!n(22627)("isSubsetOf")},{isSubsetOf:a})},86921:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(77999),i=n(51135);r({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return a(i,this,o(e))}})},60244:function(e,t,n){"use strict";var r=n(94488),a=n(51135);r({target:"Set",proto:!0,real:!0,forced:!n(22627)("isSupersetOf")},{isSupersetOf:a})},82928:function(e,t,n){"use strict";var r=n(94488),a=n(94237),o=n(17442),i=n(57002),u=n(69905),c=a([].join),s=a([].push);r({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=o(this),n=void 0===e?",":u(e),r=[];return i(t,(function(e){s(r,e)})),c(r,n)}})},42947:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(17442),i=n(19691),u=n(57002),c=i.Set,s=i.add;r({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0),r=new c;return u(t,(function(e){s(r,n(e,e,t))})),r}})},71568:function(e,t,n){"use strict";n(94488)({target:"Set",stat:!0,forced:!0},{of:n(48800)})},94194:function(e,t,n){"use strict";var r=n(94488),a=n(63335),o=n(17442),i=n(57002),u=TypeError;r({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=o(this),n=arguments.length<2,r=n?void 0:arguments[1];if(a(e),i(t,(function(a){n?(n=!1,r=a):r=e(r,a,a,t)})),n)throw new u("Reduce of empty set with no initial value");return r}})},30556:function(e,t,n){"use strict";var r=n(94488),a=n(80666),o=n(17442),i=n(57002);r({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=o(this),n=a(e,arguments.length>1?arguments[1]:void 0);return!0===i(t,(function(e){if(n(e,e,t))return!0}),!0)}})},93102:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(77999),i=n(36312);r({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return a(i,this,o(e))}})},32100:function(e,t,n){"use strict";var r=n(94488),a=n(36312);r({target:"Set",proto:!0,real:!0,forced:!n(22627)("symmetricDifference")},{symmetricDifference:a})},82074:function(e,t,n){"use strict";var r=n(94488),a=n(89945),o=n(77999),i=n(24667);r({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return a(i,this,o(e))}})},1821:function(e,t,n){"use strict";var r=n(94488),a=n(24667);r({target:"Set",proto:!0,real:!0,forced:!n(22627)("union")},{union:a})},13578:function(e,t,n){"use strict";var r=n(94488),a=n(13764).charAt,o=n(95955),i=n(56902),u=n(69905);r({target:"String",proto:!0,forced:!0},{at:function(e){var t=u(o(this)),n=t.length,r=i(e),c=r>=0?r:n+r;return c<0||c>=n?void 0:a(t,c)}})},62882:function(e,t,n){"use strict";var r=n(94488),a=n(83126),o=n(25587),i=n(95955),u=n(69905),c=n(94844),s=n(13764),l=s.codeAt,f=s.charAt,p="String Iterator",d=c.set,h=c.getterFor(p),v=a((function(e){d(this,{type:p,string:e,index:0})}),"String",(function(){var e,t=h(this),n=t.string,r=t.index;return r>=n.length?o(void 0,!0):(e=f(n,r),t.index+=e.length,o({codePoint:l(e,0),position:r},!1))}));r({target:"String",proto:!0,forced:!0},{codePoints:function(){return new v(u(i(this)))}})},59348:function(e,t,n){"use strict";n(94488)({target:"String",stat:!0,forced:!0},{cooked:n(67410)})},37457:function(e,t,n){"use strict";var r=n(13247),a=n(94488),o=n(86528),i=n(94237),u=n(13743),c=n(80449),s=n(94029),l=n(55327),f=n(82762),p=n(37691).f,d=n(71698),h=n(42530),v=n(67410),m=n(79204),y=n(19268),g=new h.WeakMap,b=h.get,_=h.has,w=h.set,x=Array,k=TypeError,E=Object.freeze||Object,S=Object.isFrozen,C=Math.min,P=i("".charAt),O=i("".slice),j=i("".split),A=i(/./.exec),T=/([\n\u2028\u2029]|\r\n?)/g,I=RegExp("^["+y+"]*"),M=RegExp("[^"+y+"]"),R="Invalid tag",L=function(e){var t=e.raw;if(r&&!S(t))throw new k("Raw template should be frozen");if(_(g,t))return b(g,t);var n=Z(t),a=N(n);return p(a,"raw",{value:E(n)}),E(a),w(g,t,a),a},Z=function(e){var t,n,r,a,o=s(e),i=f(o),u=x(i),c=x(i),l=0;if(!i)throw new k(R);for(;l0)throw new k("Invalid opening line");t[1]=""}if(d){if(1===t.length||A(M,t[t.length-1]))throw new k("Invalid closing line");t[t.length-2]="",t[t.length-1]=""}for(var h=2;h1?arguments[1]:void 0);return o(this,t)}),!0)},16315:function(e,t,n){"use strict";var r=n(58261),a=n(90560).filterReject,o=n(27607),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("filterReject",(function(e){var t=a(i(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}),!0)},56966:function(e,t,n){"use strict";var r=n(65911),a=n(6086),o=n(32278),i=n(58261),u=n(69478),c=i.aTypedArrayConstructor;(0,i.exportTypedArrayStaticMethod)("fromAsync",(function(e){var t=this,n=arguments.length,i=n>1?arguments[1]:void 0,s=n>2?arguments[2]:void 0;return new(r("Promise"))((function(n){a(t),n(o(e,i,s))})).then((function(e){return u(c(t),e)}))}),!0)},60239:function(e,t,n){"use strict";var r=n(58261),a=n(36444),o=n(31384),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("groupBy",(function(e){var t=arguments.length>1?arguments[1]:void 0;return a(i(this),e,t,o)}),!0)},49381:function(e,t,n){"use strict";var r=n(58261),a=n(82762),o=n(75406),i=n(51981),u=n(93303),c=n(56902),s=n(3338),l=r.aTypedArray,f=r.getTypedArrayConstructor,p=r.exportTypedArrayMethod,d=Math.max,h=Math.min;p("toSpliced",(function(e,t){var n,r,s,p,v,m,y,g=l(this),b=f(g),_=a(g),w=i(e,_),x=arguments.length,k=0;if(0===x)n=r=0;else if(1===x)n=0,r=_-w;else if(r=h(d(c(t),0),_-w),n=x-2){p=new b(n),s=o(p);for(var E=2;E1?i(arguments[1]):void 0,n="base64"===f(t)?p:d,r=!!t&&!!t.strict,a=r?e:y(e,_,"");if(a.length%4==0)"=="===g(a,-2)?a=g(a,0,-2):"="===g(a,-1)&&(a=g(a,0,-1));else if(r)throw new v("Input is not correctly padded");var o=a.length%4;switch(o){case 1:throw new v("Bad input length");case 2:a+="AA";break;case 3:a+="A"}for(var l=[],x=0,k=a.length,E=function(e){var t=m(a,x+e);if(!c(n,t))throw new v('Bad char in input: "'+t+'"');return n[t]<<18-6*e};x>16&255,S>>8&255,255&S)}var C=l.length;if(2===o){if(r&&0!==l[C-2])throw new v(w);C-=2}else if(3===o){if(r&&0!==l[C-1])throw new v(w);C--}return s(h,l,C)}})},57151:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(94237),i=n(79606),u=a.Uint8Array,c=a.SyntaxError,s=a.parseInt,l=/[^\da-f]/i,f=o(l.exec),p=o("".slice);u&&r({target:"Uint8Array",stat:!0,forced:!0},{fromHex:function(e){i(e);var t=e.length;if(t%2)throw new c("String should have an even number of characters");if(f(l,e))throw new c("String should only contain hex characters");for(var n=new u(t/2),r=0;r>6*t&63)};o+2>(-2*E&6)));return c}})},55182:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(65911),i=n(94237),u=n(89945),c=n(3338),s=n(69905),l=n(57106),f=n(66244).i2c,p=o("btoa"),d=i("".charAt),h=i("".charCodeAt),v=!!p&&!c((function(){return"aGk="!==p("hi")})),m=v&&!c((function(){p()})),y=v&&c((function(){return"bnVsbA=="!==p(null)})),g=v&&1!==p.length;r({global:!0,bind:!0,enumerable:!0,forced:!v||m||y||g},{btoa:function(e){if(l(arguments.length,1),v)return u(p,a,s(e));for(var t,n,r=s(e),i="",c=0,m=f;d(r,c)||(m="=",c%1);){if((n=h(r,c+=3/4))>255)throw new(o("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");i+=d(m,63&(t=t<<8|n)>>8-c%1*8)}return i}})},91472:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(28887).clear;r({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==o},{clearImmediate:o})},34366:function(e,t,n){"use strict";var r=n(92916),a=n(66749),o=n(9518),i=n(59594),u=n(68151),c=function(e){if(e&&e.forEach!==i)try{u(e,"forEach",i)}catch(t){e.forEach=i}};for(var s in a)a[s]&&c(r[s]&&r[s].prototype);c(o)},85425:function(e,t,n){"use strict";var r=n(92916),a=n(66749),o=n(9518),i=n(11005),u=n(68151),c=n(94573),s=n(59893)("iterator"),l=i.values,f=function(e,t){if(e){if(e[s]!==l)try{u(e,s,l)}catch(t){e[s]=l}if(c(e,t,!0),a[t])for(var n in i)if(e[n]!==i[n])try{u(e,n,i[n])}catch(t){e[n]=i[n]}}};for(var p in a)f(r[p]&&r[p].prototype,p);f(o,"DOMTokenList")},64522:function(e,t,n){"use strict";var r=n(94488),a=n(11270),o=n(65911),i=n(3338),u=n(20132),c=n(35012),s=n(37691).f,l=n(2291),f=n(64110),p=n(32621),d=n(56472),h=n(80449),v=n(13367),m=n(7825),y=n(52109),g=n(80739),b=n(94844),_=n(35454),w=n(16697),x="DOMException",k="DATA_CLONE_ERR",E=o("Error"),S=o(x)||function(){try{(new(o("MessageChannel")||a("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===k&&25===e.code)return e.constructor}}(),C=S&&S.prototype,P=E.prototype,O=b.set,j=b.getterFor(x),A="stack"in new E(x),T=function(e){return p(y,e)&&y[e].m?y[e].c:0},I=function(){d(this,M);var e=arguments.length,t=m(e<1?void 0:arguments[0]),n=m(e<2?void 0:arguments[1],"Error"),r=T(n);if(O(this,{type:x,name:n,message:t,code:r}),_||(this.name=n,this.message=t,this.code=r),A){var a=new E(t);a.name=x,s(this,"stack",c(1,g(a.stack,1)))}},M=I.prototype=u(P),R=function(e){return{enumerable:!0,configurable:!0,get:e}},L=function(e){return R((function(){return j(this)[e]}))};_&&(f(M,"code",L("code")),f(M,"message",L("message")),f(M,"name",L("name"))),s(M,"constructor",c(1,I));var Z=i((function(){return!(new S instanceof E)})),D=Z||i((function(){return P.toString!==v||"2: 1"!==String(new S(1,2))})),N=Z||i((function(){return 25!==new S(1,"DataCloneError").code})),$=Z||25!==S[k]||25!==C[k],F=w?D||N||$:Z;r({global:!0,constructor:!0,forced:F},{DOMException:F?I:S});var B=o(x),q=B.prototype;for(var z in D&&(w||S===B)&&l(q,"toString",v),N&&_&&S===B&&f(q,"code",R((function(){return T(h(this).name)}))),y)if(p(y,z)){var H=y[z],U=H.s,W=c(6,H.c);p(B,U)||s(B,U,W),p(q,U)||s(q,U,W)}},41599:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(65911),i=n(35012),u=n(37691).f,c=n(32621),s=n(56472),l=n(25576),f=n(7825),p=n(52109),d=n(80739),h=n(35454),v=n(16697),m="DOMException",y=o("Error"),g=o(m),b=function(){s(this,_);var e=arguments.length,t=f(e<1?void 0:arguments[0]),n=f(e<2?void 0:arguments[1],"Error"),r=new g(t,n),a=new y(t);return a.name=m,u(r,"stack",i(1,d(a.stack,1))),l(r,this,b),r},_=b.prototype=g.prototype,w="stack"in new y(m),x="stack"in new g(1,2),k=g&&h&&Object.getOwnPropertyDescriptor(a,m),E=!(!k||k.writable&&k.configurable),S=w&&!E&&!x;r({global:!0,constructor:!0,forced:v||S},{DOMException:S?b:g});var C=o(m),P=C.prototype;if(P.constructor!==C)for(var O in v||u(P,"constructor",i(1,C)),p)if(c(p,O)){var j=p[O],A=j.s;c(C,A)||u(C,A,i(6,j.c))}},86465:function(e,t,n){"use strict";var r=n(65911),a="DOMException";n(94573)(r(a),a)},78437:function(e,t,n){"use strict";n(91472),n(91700)},73624:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(72933),i=n(63335),u=n(57106),c=n(90946),s=a.process;r({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(e){u(arguments.length,1),i(e);var t=c&&s.domain;o(t?t.bind(e):e)}})},62059:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(64110),i=n(35454),u=TypeError,c=Object.defineProperty,s=a.self!==a;try{if(i){var l=Object.getOwnPropertyDescriptor(a,"self");!s&&l&&l.get&&l.enumerable||o(a,"self",{get:function(){return a},set:function(e){if(this!==a)throw new u("Illegal invocation");c(a,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:s},{self:a})}catch(e){}},91700:function(e,t,n){"use strict";var r=n(94488),a=n(92916),o=n(28887).set,i=n(93222),u=a.setImmediate?i(o,!1):o;r({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==u},{setImmediate:u})},10305:function(e,t,n){"use strict";var r,a=n(16697),o=n(94488),i=n(92916),u=n(65911),c=n(94237),s=n(3338),l=n(6145),f=n(55327),p=n(39812),d=n(4112),h=n(31946),v=n(18446),m=n(62003),y=n(80449),g=n(97607),b=n(32621),_=n(69392),w=n(68151),x=n(82762),k=n(57106),E=n(81644),S=n(2786),C=n(19691),P=n(57002),O=n(39311),j=n(25406),A=n(80426),T=i.Object,I=i.Array,M=i.Date,R=i.Error,L=i.TypeError,Z=i.PerformanceMark,D=u("DOMException"),N=S.Map,$=S.has,F=S.get,B=S.set,q=C.Set,z=C.add,H=C.has,U=u("Object","keys"),W=c([].push),V=c((!0).valueOf),G=c(1..valueOf),Y=c("".valueOf),K=c(M.prototype.getTime),X=l("structuredClone"),Q="DataCloneError",J="Transferring",ee=function(e){return!s((function(){var t=new i.Set([7]),n=e(t),r=e(T(7));return n===t||!n.has(7)||!h(r)||7!=+r}))&&e},te=function(e,t){return!s((function(){var n=new t,r=e({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof t&&r.a.stack===n.stack)}))},ne=i.structuredClone,re=a||!te(ne,R)||!te(ne,D)||(r=ne,!!s((function(){var e=r(new i.AggregateError([1],X,{cause:3}));return"AggregateError"!==e.name||1!==e.errors[0]||e.message!==X||3!==e.cause}))),ae=!ne&&ee((function(e){return new Z(X,{detail:e}).detail})),oe=ee(ne)||ae,ie=function(e){throw new D("Uncloneable type: "+e,Q)},ue=function(e,t){throw new D((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",Q)},ce=function(e,t){return oe||ue(t),oe(e)},se=function(e,t,n){if($(t,e))return F(t,e);var r,a,o,u,c,s;if("SharedArrayBuffer"===(n||g(e)))r=oe?oe(e):e;else{var l=i.DataView;l||f(e.slice)||ue("ArrayBuffer");try{if(f(e.slice)&&!e.resizable)r=e.slice(0);else{a=e.byteLength,o="maxByteLength"in e?{maxByteLength:e.maxByteLength}:void 0,r=new ArrayBuffer(a,o),u=new l(e),c=new l(r);for(s=0;s1&&!d(arguments[1])?y(arguments[1]):void 0,a=r?r.transfer:void 0;void 0!==a&&(t=new N,n=fe(a,t));var o=le(e,t);return n&&pe(n),o}})},91340:function(e,t,n){"use strict";n(11005);var r=n(94488),a=n(92916),o=n(89945),i=n(94237),u=n(35454),c=n(3299),s=n(2291),l=n(64110),f=n(66477),p=n(94573),d=n(83126),h=n(94844),v=n(56472),m=n(55327),y=n(32621),g=n(80666),b=n(97607),_=n(80449),w=n(31946),x=n(69905),k=n(20132),E=n(35012),S=n(85428),C=n(26006),P=n(25587),O=n(57106),j=n(59893),A=n(63668),T=j("iterator"),I="URLSearchParams",M=I+"Iterator",R=h.set,L=h.getterFor(I),Z=h.getterFor(M),D=Object.getOwnPropertyDescriptor,N=function(e){if(!u)return a[e];var t=D(a,e);return t&&t.value},$=N("fetch"),F=N("Request"),B=N("Headers"),q=F&&F.prototype,z=B&&B.prototype,H=a.RegExp,U=a.TypeError,W=a.decodeURIComponent,V=a.encodeURIComponent,G=i("".charAt),Y=i([].join),K=i([].push),X=i("".replace),Q=i([].shift),J=i([].splice),ee=i("".split),te=i("".slice),ne=/\+/g,re=Array(4),ae=function(e){return re[e-1]||(re[e-1]=H("((?:%[\\da-f]{2}){"+e+"})","gi"))},oe=function(e){try{return W(e)}catch(t){return e}},ie=function(e){var t=X(e,ne," "),n=4;try{return W(t)}catch(e){for(;n;)t=X(t,ae(n--),oe);return t}},ue=/[!'()~]|%20/g,ce={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},se=function(e){return ce[e]},le=function(e){return X(V(e),ue,se)},fe=d((function(e,t){R(this,{type:M,target:L(e).entries,index:0,kind:t})}),I,(function(){var e=Z(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,P(void 0,!0);var r=t[n];switch(e.kind){case"keys":return P(r.key,!1);case"values":return P(r.value,!1)}return P([r.key,r.value],!1)}),!0),pe=function(e){this.entries=[],this.url=null,void 0!==e&&(w(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===G(e,0)?te(e,1):e:x(e)))};pe.prototype={type:I,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,a,i,u,c,s=this.entries,l=C(e);if(l)for(n=(t=S(e,l)).next;!(r=o(n,t)).done;){if(i=(a=S(_(r.value))).next,(u=o(i,a)).done||(c=o(i,a)).done||!o(i,a).done)throw new U("Expected sequence with length 2");K(s,{key:x(u.value),value:x(c.value)})}else for(var f in e)y(e,f)&&K(s,{key:f,value:x(e[f])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,a=ee(e,"&"),o=0;o0?arguments[0]:void 0,t=R(this,new pe(e));u||(this.size=t.entries.length)},he=de.prototype;if(f(he,{append:function(e,t){var n=L(this);O(arguments.length,2),K(n.entries,{key:x(e),value:x(t)}),u||this.length++,n.updateURL()},delete:function(e){for(var t=L(this),n=O(arguments.length,1),r=t.entries,a=x(e),o=n<2?void 0:arguments[1],i=void 0===o?o:x(o),c=0;ct.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=L(this).entries,r=g(e,arguments.length>1?arguments[1]:void 0),a=0;a1?ye(arguments[1]):{})}}),m(F)){var ge=function(e){return v(this,q),new F(e,arguments.length>1?ye(arguments[1]):{})};q.constructor=ge,ge.prototype=q,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ge})}}e.exports={URLSearchParams:de,getState:L}},4890:function(e,t,n){"use strict";var r=n(2291),a=n(94237),o=n(69905),i=n(57106),u=URLSearchParams,c=u.prototype,s=a(c.append),l=a(c.delete),f=a(c.forEach),p=a([].push),d=new u("a=1&a=2&b=3");d.delete("a",1),d.delete("b",void 0),d+""!="a=2"&&r(c,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=[];f(this,(function(e,t){p(r,{key:t,value:e})})),i(t,1);for(var a,u=o(e),c=o(n),d=0,h=0,v=!1,m=r.length;d?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+/,ae=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,oe=/[\t\n\r]/g,ie=function(e){var t,n,r,a;if("number"==typeof e){for(t=[],n=0;n<4;n++)H(t,e%256),e=T(e/256);return L(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,a=0,o=0;o<8;o++)0!==e[o]?(a>n&&(t=r,n=a),r=null,a=0):(null===r&&(r=o),++a);return a>n&&(t=r,n=a),t}(e),n=0;n<8;n++)a&&0===e[n]||(a&&(a=!1),r===n?(t+=n?":":"::",a=!0):(t+=Z(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ue={},ce=h({},ue,{" ":1,'"':1,"<":1,">":1,"`":1}),se=h({},ce,{"#":1,"?":1,"{":1,"}":1}),le=h({},se,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var n=y(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},pe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},de=function(e,t){var n;return 2===e.length&&R(G,M(e,0))&&(":"===(n=M(e,1))||!t&&"|"===n)},he=function(e){var t;return e.length>1&&de(q(e,0,2))&&(2===e.length||"/"===(t=M(e,2))||"\\"===t||"?"===t||"#"===t)},ve=function(e){return"."===e||"%2e"===z(e)},me={},ye={},ge={},be={},_e={},we={},xe={},ke={},Ee={},Se={},Ce={},Pe={},Oe={},je={},Ae={},Te={},Ie={},Me={},Re={},Le={},Ze={},De=function(e,t,n){var r,a,o,i=b(e);if(t){if(a=this.parse(i))throw new j(a);this.searchParams=null}else{if(void 0!==n&&(r=new De(n,!0)),a=this.parse(i,null,r))throw new j(a);(o=P(new C)).bindURL(this),this.searchParams=o}};De.prototype={type:"URL",parse:function(e,t,n){var a,o,i,u,c,s=this,l=t||me,f=0,p="",h=!1,y=!1,g=!1;for(e=b(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=$(e,re,""),e=$(e,ae,"$1")),e=$(e,oe,""),a=v(e);f<=a.length;){switch(o=a[f],l){case me:if(!o||!R(G,o)){if(t)return U;l=ge;continue}p+=z(o),l=ye;break;case ye:if(o&&(R(Y,o)||"+"===o||"-"===o||"."===o))p+=z(o);else{if(":"!==o){if(t)return U;p="",l=ge,f=0;continue}if(t&&(s.isSpecial()!==d(pe,p)||"file"===p&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=p,t)return void(s.isSpecial()&&pe[s.scheme]===s.port&&(s.port=null));p="","file"===s.scheme?l=je:s.isSpecial()&&n&&n.scheme===s.scheme?l=be:s.isSpecial()?l=ke:"/"===a[f+1]?(l=_e,f++):(s.cannotBeABaseURL=!0,N(s.path,""),l=Re)}break;case ge:if(!n||n.cannotBeABaseURL&&"#"!==o)return U;if(n.cannotBeABaseURL&&"#"===o){s.scheme=n.scheme,s.path=m(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,l=Ze;break}l="file"===n.scheme?je:we;continue;case be:if("/"!==o||"/"!==a[f+1]){l=we;continue}l=Ee,f++;break;case _e:if("/"===o){l=Se;break}l=Me;continue;case we:if(s.scheme=n.scheme,o===r)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=m(n.path),s.query=n.query;else if("/"===o||"\\"===o&&s.isSpecial())l=xe;else if("?"===o)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=m(n.path),s.query="",l=Le;else{if("#"!==o){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=m(n.path),s.path.length--,l=Me;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=m(n.path),s.query=n.query,s.fragment="",l=Ze}break;case xe:if(!s.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,l=Me;continue}l=Se}else l=Ee;break;case ke:if(l=Ee,"/"!==o||"/"!==M(p,f+1))continue;f++;break;case Ee:if("/"!==o&&"\\"!==o){l=Se;continue}break;case Se:if("@"===o){h&&(p="%40"+p),h=!0,i=v(p);for(var _=0;_65535)return V;s.port=s.isSpecial()&&k===pe[s.scheme]?null:k,p=""}if(t)return;l=Ie;continue}return V}p+=o;break;case je:if(s.scheme="file","/"===o||"\\"===o)l=Ae;else{if(!n||"file"!==n.scheme){l=Me;continue}switch(o){case r:s.host=n.host,s.path=m(n.path),s.query=n.query;break;case"?":s.host=n.host,s.path=m(n.path),s.query="",l=Le;break;case"#":s.host=n.host,s.path=m(n.path),s.query=n.query,s.fragment="",l=Ze;break;default:he(L(m(a,f),""))||(s.host=n.host,s.path=m(n.path),s.shortenPath()),l=Me;continue}}break;case Ae:if("/"===o||"\\"===o){l=Te;break}n&&"file"===n.scheme&&!he(L(m(a,f),""))&&(de(n.path[0],!0)?N(s.path,n.path[0]):s.host=n.host),l=Me;continue;case Te:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&de(p))l=Me;else if(""===p){if(s.host="",t)return;l=Ie}else{if(u=s.parseHost(p))return u;if("localhost"===s.host&&(s.host=""),t)return;p="",l=Ie}continue}p+=o;break;case Ie:if(s.isSpecial()){if(l=Me,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==r&&(l=Me,"/"!==o))continue}else s.fragment="",l=Ze;else s.query="",l=Le;break;case Me:if(o===r||"/"===o||"\\"===o&&s.isSpecial()||!t&&("?"===o||"#"===o)){if(".."===(c=z(c=p))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(s.shortenPath(),"/"===o||"\\"===o&&s.isSpecial()||N(s.path,"")):ve(p)?"/"===o||"\\"===o&&s.isSpecial()||N(s.path,""):("file"===s.scheme&&!s.path.length&&de(p)&&(s.host&&(s.host=""),p=M(p,0)+":"),N(s.path,p)),p="","file"===s.scheme&&(o===r||"?"===o||"#"===o))for(;s.path.length>1&&""===s.path[0];)F(s.path);"?"===o?(s.query="",l=Le):"#"===o&&(s.fragment="",l=Ze)}else p+=fe(o,se);break;case Re:"?"===o?(s.query="",l=Le):"#"===o?(s.fragment="",l=Ze):o!==r&&(s.path[0]+=fe(o,ue));break;case Le:t||"#"!==o?o!==r&&("'"===o&&s.isSpecial()?s.query+="%27":s.query+="#"===o?"%23":fe(o,ue)):(s.fragment="",l=Ze);break;case Ze:o!==r&&(s.fragment+=fe(o,ce))}f++}},parseHost:function(e){var t,n,r;if("["===M(e,0)){if("]"!==M(e,e.length-1))return W;if(t=function(e){var t,n,r,a,o,i,u,c=[0,0,0,0,0,0,0,0],s=0,l=null,f=0,p=function(){return M(e,f)};if(":"===p()){if(":"!==M(e,1))return;f+=2,l=++s}for(;p();){if(8===s)return;if(":"!==p()){for(t=n=0;n<4&&R(ee,p());)t=16*t+A(p(),16),f++,n++;if("."===p()){if(0===n)return;if(f-=n,s>6)return;for(r=0;p();){if(a=null,r>0){if(!("."===p()&&r<4))return;f++}if(!R(K,p()))return;for(;R(K,p());){if(o=A(p(),10),null===a)a=o;else{if(0===a)return;a=10*a+o}if(a>255)return;f++}c[s]=256*c[s]+a,2!=++r&&4!==r||s++}if(4!==r)return;break}if(":"===p()){if(f++,!p())return}else if(p())return;c[s++]=t}else{if(null!==l)return;f++,l=++s}}if(null!==l)for(i=s-l,s=7;0!==s&&i>0;)u=c[s],c[s--]=c[l+i-1],c[l+--i]=u;else if(8!==s)return;return c}(q(e,1,-1)),!t)return W;this.host=t}else if(this.isSpecial()){if(e=g(e),R(te,e))return W;if(t=function(e){var t,n,r,a,o,i,u,c=B(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(n=[],r=0;r1&&"0"===M(a,0)&&(o=R(X,a)?16:8,a=q(a,8===o?1:2)),""===a)i=0;else{if(!R(10===o?J:8===o?Q:ee,a))return e;i=A(a,o)}N(n,i)}for(r=0;r=I(256,5-t))return null}else if(i>255)return null;for(u=D(n),r=0;r1?arguments[1]:void 0,r=E(t,new De(e,!1,n));o||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},$e=Ne.prototype,Fe=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(f($e,"href",Fe("serialize","setHref")),f($e,"origin",Fe("getOrigin")),f($e,"protocol",Fe("getProtocol","setProtocol")),f($e,"username",Fe("getUsername","setUsername")),f($e,"password",Fe("getPassword","setPassword")),f($e,"host",Fe("getHost","setHost")),f($e,"hostname",Fe("getHostname","setHostname")),f($e,"port",Fe("getPort","setPort")),f($e,"pathname",Fe("getPathname","setPathname")),f($e,"search",Fe("getSearch","setSearch")),f($e,"searchParams",Fe("getSearchParams")),f($e,"hash",Fe("getHash","setHash"))),l($e,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),l($e,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),O){var Be=O.createObjectURL,qe=O.revokeObjectURL;Be&&l(Ne,"createObjectURL",c(Be,O)),qe&&l(Ne,"revokeObjectURL",c(qe,O))}_(Ne,"URL"),a({global:!0,constructor:!0,forced:!i,sham:!o},{URL:Ne})},25204:function(e,t,n){"use strict";n(13588)},47803:function(e,t,n){"use strict";var r=n(94488),a=n(89945);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return a(URL.prototype.toString,this)}})},73825:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},65873:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(89878);function a(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},38329:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}n.d(t,{Z:function(){return r}})},87296:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(73825);var a=n(99227),o=n(66160);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,u=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return u}}(e,t)||(0,a.Z)(e,t)||(0,o.Z)()}},89878:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(8616);function a(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=(0,r.Z)(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:String(t)}},8616:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},99227:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(a=h===r)&&(u=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=e):o[0]<=d&&((a=n<2&&dr||r>h)&&(o[4]=n,o[5]=r,p.n=h,i=0))}if(a||n>1)return c;throw f=!0,r}return function(a,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),i=l,u=h;(t=i<2?e:u)||!f;){o||(i?i<3?(i>1&&(p.n=-1),d(i,u)):p.n=u:p.v=u);try{if(s=2,o){if(i||(a="next"),t=o[a]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,i<2&&(i=0)}else 1===i&&(t=o.return)&&t.call(o),i<2&&(u=TypeError("The iterator does not provide a '"+a+"' method"),i=1);o=e}else if((t=(f=p.n<0)?u:n.call(r,p))!==c)break}catch(t){o=e,i=1,u=t}finally{s=1}}return{value:t,done:f}}}(n,o,i),!0),l}var c={};function s(){}function l(){}function f(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(a(t={},r,(function(){return this})),t),d=f.prototype=s.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=f,a(d,"constructor",f),a(f,"constructor",l),l.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(d),a(d,i,"Generator"),a(d,r,(function(){return this})),a(d,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:u,m:h}})()}function i(e,t){function n(a,o,i,u){try{var c=e[a](o),s=c.value;return s instanceof r?t.resolve(s.v).then((function(e){n("next",e,i,u)}),(function(e){n("throw",e,i,u)})):t.resolve(s).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,u)}))}catch(e){u(e)}}var o;this.next||(a(i.prototype),a(i.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),a(this,"_invoke",(function(e,r,a){function i(){return new t((function(t,r){n(e,a,t,r)}))}return o=o?o.then(i,i):i()}),!0)}function u(e,t,n,r,a){return new i(o().w(e,t,n,r),a||Promise)}function c(e,t,n,r,a){var o=u(e,t,n,r,a);return o.next().then((function(e){return e.done?e.value:o.next()}))}function s(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}n.d(t,{Z:function(){return p}});var l=n(93664);function f(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError((0,l.Z)(e)+" is not iterable")}function p(){var e=o(),t=e.m(p),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function a(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var l={throw:1,return:2,break:3,continue:3};function d(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,l[e],t)},delegateYield:function(e,a,o){return t.resultName=a,n(r.d,f(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,a){r.p=t.prev,r.n=t.next;try{return e(n,a)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(p=function(){return{wrap:function(t,n,r,a){return e.w(d(t),n,r,a&&a.reverse())},isGeneratorFunction:a,mark:e.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:i,async:function(e,t,n,r,o){return(a(t)?u:c)(d(e),t,n,r,o)},keys:s,values:f}})()}},2386:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},50298:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(43577);var a=n(58750),o=n(22740);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,u=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return u}}(e,t)||(0,a.Z)(e,t)||(0,o.Z)()}},21696:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(43577),a=n(90017),o=n(58750),i=n(22740);function u(e){return(0,r.Z)(e)||(0,a.Z)(e)||(0,o.Z)(e)||(0,i.Z)()}},95190:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(87268);var a=n(90017),o=n(58750);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,a.Z)(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},95172:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(93664);function a(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=(0,r.Z)(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:t+""}},93664:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},58750:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(87268);function a(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},__webpack_module_cache__={},leafPrototypes,getProto,inProgress;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);__webpack_require__.r(n);var r={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var a=2&t&&e;"object"==typeof a&&!~leafPrototypes.indexOf(a);a=getProto(a))Object.getOwnPropertyNames(a).forEach((function(t){r[t]=function(){return e[t]}}));return r.default=function(){return e},__webpack_require__.d(n,r),n},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=function(e){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(t,n){return __webpack_require__.f[n](e,t),t}),[]))},__webpack_require__.u=function(e){return({1717:"layouts__index",7665:"p__NewCompetitions__index",9404:"monaco-editor"}[e]||e)+"."+{316:"0860b31b",354:"ae0cc73d",629:"0baf72c5",671:"707d03b5",741:"9ca1f1f6",981:"b4e5ecd1",1144:"dc597477",1154:"8ff4343e",1274:"64014abb",1462:"4b308275",1646:"b6aee730",1717:"359c419c",1880:"afad2ce1",2011:"998bab5d",2249:"cfc97c95",2386:"cb3ad213",2494:"341ee2d9",2538:"ef3964fd",2594:"5ba15f29",2837:"ef41443b",2969:"f2c22c79",3133:"89f1c833",3198:"dcb58c57",3421:"ec92495a",3550:"0ba594a6",3697:"aa0de325",3777:"30e1c7cd",3805:"c007be6c",3885:"2968565b",4014:"a042e7c0",4088:"72b31296",4347:"5e67a581",4354:"783d6469",4360:"e2b3ee42",4628:"8830b9f4",4685:"e451b386",4790:"a078491d",4797:"5459a571",4850:"20b04da1",5060:"f576b66d",5290:"8db25218",5321:"59afd38e",5354:"508397f0",5416:"a15145af",5434:"c57b269e",5494:"d134242a",5631:"d4656614",5679:"976b0ab8",5760:"9a81a5de",5764:"370e5f92",5876:"3c45e846",6045:"f88d2aea",6047:"9a6de779",6126:"9e89bacb",6378:"e451a33f",6634:"c5206d34",6656:"3fd1f977",7084:"c974cb96",7156:"ac292da3",7365:"3519dcf2",7591:"2d8e0476",7665:"82607796",7686:"b825f202",7706:"55432fab",7964:"6a76ec2a",8089:"ddd5f23a",8161:"b977b96f",8302:"68de1f56",8350:"cd542869",8561:"8d6bb026",8737:"a15d5c87",8776:"ae351219",8842:"4eada2f4",8898:"fc7a3e13",8909:"7ebc828b",8920:"72b3286a",8963:"11c907f2",9104:"8ddea99d",9252:"d359cd5d",9260:"e18dc2bc",9404:"ef403842",9554:"47a07c2c",9559:"61b7aa99",9895:"700a7b8f",9928:"7afe8b8f",9950:"b27821a4",9968:"cf4e0178"}[e]+".async.js"},__webpack_require__.miniCssF=function(e){return({1717:"layouts__index",7665:"p__NewCompetitions__index",9404:"monaco-editor"}[e]||e)+"."+{1717:"b9728375",6656:"612ed78f",7665:"184e7e71",9404:"eef0059a"}[e]+".chunk.css"},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},inProgress={},__webpack_require__.l=function(e,t,n,r){if(inProgress[e])inProgress[e].push(t);else{var a,o;if(void 0!==n)for(var i=document.getElementsByTagName("script"),u=0;u0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("/")?e:"".concat(e,"/")}(window.umiServerLoaderPath||n),"__serverLoader?").concat(a);fetch(o,{credentials:"include"}).then((function(e){return e.json()})).then(r).catch(console.error)}var h=__webpack_require__(38127),v=__webpack_require__(38329),m=__webpack_require__(8616),y=["content"],g=["content"],b=/^(http:|https:)?\/\//;function _(e){return b.test(e)||e.startsWith("/")&&!e.startsWith("/*")||e.startsWith("./")||e.startsWith("../")}var w=function(){return s.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},x=function(e){var t,n=e.loaderData,r=e.htmlPageOpts,a=e.manifest,o=(null==a||null===(t=a.assets)||void 0===t?void 0:t["umi.css"])||"";return s.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(n||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(r||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(o,"'")}})};function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e)return _(e)?(0,u.Z)({src:e},t):{content:e};if("object"===(0,m.Z)(e))return(0,u.Z)((0,u.Z)({},e),t);throw new Error("Invalid script type: ".concat((0,m.Z)(e)))}var E=function(e){var t,n,r,a,o,i,u=e.htmlPageOpts;return s.createElement(s.Fragment,null,(null==u?void 0:u.title)&&s.createElement("title",null,u.title),null==u||null===(t=u.favicons)||void 0===t?void 0:t.map((function(e,t){return s.createElement("link",{key:t,rel:"shortcut icon",href:e})})),(null==u?void 0:u.description)&&s.createElement("meta",{name:"description",content:u.description}),(null==u||null===(n=u.keywords)||void 0===n?void 0:n.length)&&s.createElement("meta",{name:"keywords",content:u.keywords.join(",")}),null==u||null===(r=u.metas)||void 0===r?void 0:r.map((function(e){return s.createElement("meta",{key:e.name,name:e.name,content:e.content})})),null==u||null===(a=u.links)||void 0===a?void 0:a.map((function(e,t){return s.createElement("link",(0,v.Z)({key:t},e))})),null==u||null===(o=u.styles)||void 0===o?void 0:o.map((function(e,t){var n=function(e){return _(e)?{type:"link",href:e}:{type:"style",content:e}}(e),r=n.type,a=n.href,o=n.content;return"link"===r?s.createElement("link",{key:t,rel:"stylesheet",href:a}):"style"===r?s.createElement("style",{key:t},o):void 0})),null==u||null===(i=u.headScripts)||void 0===i?void 0:i.map((function(e,t){var n=k(e),r=n.content,a=(0,h.Z)(n,y);return s.createElement("script",(0,v.Z)({dangerouslySetInnerHTML:{__html:r},key:t},a))})))};function S(e){var t,n=e.children,r=e.loaderData,a=e.manifest,o=e.htmlPageOpts,i=e.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,u=e.mountElementId;if(null!=i&&i.pureHtml)return s.createElement("html",null,s.createElement("head",null),s.createElement("body",null,s.createElement(w,null),s.createElement("div",{id:u},n),s.createElement(x,{manifest:a,loaderData:r,htmlPageOpts:o})));if(null!=i&&i.pureApp)return s.createElement(s.Fragment,null,n);var c="undefined"==typeof window?null==a?void 0:a.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return s.createElement("html",{suppressHydrationWarning:!0,lang:(null==o?void 0:o.lang)||"en"},s.createElement("head",null,s.createElement("meta",{charSet:"utf-8"}),s.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),c&&s.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:c}),s.createElement(E,{htmlPageOpts:o})),s.createElement("body",null,s.createElement(w,null),s.createElement("div",{id:u},n),s.createElement(x,{manifest:a,loaderData:r,htmlPageOpts:o}),null==o||null===(t=o.scripts)||void 0===t?void 0:t.map((function(e,t){var n=k(e),r=n.content,a=(0,h.Z)(n,g);return s.createElement("script",(0,v.Z)({dangerouslySetInnerHTML:{__html:r},key:t},a))}))))}var C=s.createContext(void 0);var P=["redirect"];function O(e){var t=e.routesById,n=e.parentId,r=e.routeComponents,a=e.useStream,o=void 0===a||a;return Object.keys(t).filter((function(e){return t[e].parentId===n})).map((function(n){var a=function(e){var t=e.route,n=e.useStream,r=void 0===n||n,a=t.redirect,o=(0,h.Z)(t,P),i=e.reactRouter5Compat?T:I;return(0,u.Z)({element:a?s.createElement(j,{to:a}):s.createElement(C.Provider,{value:{route:e.route}},s.createElement(i,{loader:s.memo(e.routeComponent),loadingComponent:e.loadingComponent||A,hasChildren:e.hasChildren,useStream:r}))},o)}((0,u.Z)((0,u.Z)({route:t[n],routeComponent:r[n],loadingComponent:e.loadingComponent,reactRouter5Compat:e.reactRouter5Compat},e.reactRouter5Compat&&{hasChildren:Object.keys(t).filter((function(e){return t[e].parentId===n})).length>0}),{},{useStream:o})),i=O({routesById:t,routeComponents:r,parentId:a.id,loadingComponent:e.loadingComponent,reactRouter5Compat:e.reactRouter5Compat,useStream:o});return i.length>0&&(a.children=i,a.routes=i),a}))}function j(e){var t=(0,f.UO)(),n=(0,f.Gn)(e.to,t),r=(0,p.T$)(),a=(0,f.TH)();null!=r&&r.keepQuery&&(n+=a.search+a.hash);var o=(0,u.Z)((0,u.Z)({},e),{},{to:n});return s.createElement(f.Fg,(0,v.Z)({replace:!0},o))}function A(){return s.createElement("div",null)}function T(e){var t=s.useContext(C).route,n=(0,p.Ov)(),r=n.history,a=n.clientRoutes,o=(0,f.UO)(),i={params:o,isExact:!0,path:t.path,url:r.location.pathname},u=e.loader,c={location:r.location,match:i,history:r,params:o,route:t,routes:a};return e.useStream?s.createElement(s.Suspense,{fallback:s.createElement(e.loadingComponent,null)},s.createElement(u,c,e.hasChildren&&s.createElement(f.j3,null))):s.createElement(u,c,e.hasChildren&&s.createElement(f.j3,null))}function I(e){var t=e.loader;return e.useStream?s.createElement(s.Suspense,{fallback:s.createElement(e.loadingComponent,null)},s.createElement(t,null)):s.createElement(t,null)}function M(e){var t=e.history,n=s.useState({action:t.action,location:t.location}),r=(0,c.Z)(n,2),a=r[0],o=r[1];return(0,s.useLayoutEffect)((function(){return t.listen(o)}),[t]),(0,s.useLayoutEffect)((function(){function n(t){e.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:e.routes,clientRoutes:e.clientRoutes,location:t.location,action:t.action,basename:e.basename,isFirst:Boolean(t.isFirst)}})}return n({location:a.location,action:a.action,isFirst:!0}),t.listen(n)}),[t,e.routes,e.clientRoutes]),s.createElement(f.F0,{navigator:t,location:a.location,basename:e.basename},e.children)}function R(){var e=(0,p.Ov)().clientRoutes;return(0,f.V$)(e)}var L=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"];function Z(e){var t=e.rootElement||document.getElementById("root"),n=function(e,t){var n=e.basename||"/",r=O({routesById:e.routes,routeComponents:e.routeComponents,loadingComponent:e.loadingComponent,reactRouter5Compat:e.reactRouter5Compat,useStream:e.useStream});e.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:r}});for(var a=s.createElement(M,{basename:n,pluginManager:e.pluginManager,routes:e.routes,clientRoutes:r,history:e.history},t),o=0,l=L;o